@ckeditor/ckeditor5-ai 47.6.2 → 47.7.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.js +1 -1
  180. package/src/aichat/model/aichatconversation.js +1 -1
  181. package/src/aichat/model/aichatinteraction.js +1 -1
  182. package/src/aichat/ui/aichatballoonview.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  221. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.js +1 -1
  228. package/src/aicore/model/aimodels.js +1 -1
  229. package/src/aicore/model/aireply.js +1 -1
  230. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  231. package/src/aicore/pipeline/airesponseparser.js +2 -2
  232. package/src/aicore/ui/aidisclaimerview.js +1 -1
  233. package/src/aicore/ui/aiskeleton.js +1 -1
  234. package/src/aicore/ui/aispinner.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  246. package/src/aicore/utils/common-translations.js +1 -1
  247. package/src/aicore/utils/createresizebutton.js +1 -1
  248. package/src/aicore/utils/documentposition.js +1 -1
  249. package/src/aicore/utils/documentrange.js +1 -1
  250. package/src/aicore/utils/eventnames.js +1 -1
  251. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  252. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  253. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  254. package/src/aicore/utils/htmlparser.js +1 -1
  255. package/src/aicore/utils/htmlstreamer.js +1 -1
  256. package/src/aicore/utils/scrollmanager.js +1 -1
  257. package/src/aieditorintegration/aieditorintegration.js +1 -1
  258. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  260. package/src/aiquickactions/aiquickactions.js +1 -1
  261. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  262. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  263. package/src/aiquickactions/aiquickactionsui.js +1 -1
  264. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  268. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  271. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  272. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  273. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  274. package/src/aireviewcore/aireviewcoreui.js +1 -1
  275. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  276. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  277. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  280. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  281. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  292. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  294. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  295. package/src/aireviewmode/aireviewmode.js +1 -1
  296. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  297. package/src/aireviewmode/aireviewmodeui.js +1 -1
  298. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  300. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  301. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  303. package/src/aitabs/aitabs.js +1 -1
  304. package/src/aitabs/aitabsmainview.js +1 -1
  305. package/src/aitabs/tabs/aitabsview.js +1 -1
  306. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  307. package/src/aitabs/tabs/tabpanelview.js +1 -1
  308. package/src/aitranslate/aitranslate.js +1 -1
  309. package/src/aitranslate/aitranslatecontroller.js +1 -1
  310. package/src/aitranslate/aitranslateui.js +1 -1
  311. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  312. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  313. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  314. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  315. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  316. package/src/errors.js +1 -1
  317. package/src/errorsmap.js +1 -1
  318. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb6a953=_0x2707;(function(_0x99ea79,_0x675acd){const _0x29d67b=_0x2707,_0x134469=_0x99ea79();while(!![]){try{const _0x27aef0=parseInt(_0x29d67b(0xdf))/0x1+-parseInt(_0x29d67b(0x102))/0x2*(parseInt(_0x29d67b(0xdb))/0x3)+-parseInt(_0x29d67b(0xeb))/0x4+-parseInt(_0x29d67b(0xec))/0x5*(parseInt(_0x29d67b(0xe1))/0x6)+parseInt(_0x29d67b(0x101))/0x7*(-parseInt(_0x29d67b(0xd7))/0x8)+-parseInt(_0x29d67b(0xf2))/0x9*(-parseInt(_0x29d67b(0xfe))/0xa)+-parseInt(_0x29d67b(0x10e))/0xb*(-parseInt(_0x29d67b(0xee))/0xc);if(_0x27aef0===_0x675acd)break;else _0x134469['push'](_0x134469['shift']());}catch(_0xc27539){_0x134469['push'](_0x134469['shift']());}}}(_0x54c0,0xca84d));function _0x2707(_0x474e4f,_0x42ad15){const _0x54c0fa=_0x54c0();return _0x2707=function(_0x270756,_0x19467b){_0x270756=_0x270756-0xd1;let _0xdc9eb1=_0x54c0fa[_0x270756];return _0xdc9eb1;},_0x2707(_0x474e4f,_0x42ad15);}import{Plugin as _0x51a0c7}from'ckeditor5/src/core.js';import{AIBalloon as _0x34c463}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0x230597}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0xfc38d5}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x308287}from'../aicore/utils/eventnames.js';function _0x54c0(){const _0x4dafa7=['_toggleRotatorButtonsInDialogHeader','showPrevious','previousButtonView','7578TNGTDu','editor','_chatBalloonView','config','requires','AIBalloon','_restoreDefaultViewFocus','locale','isTrackChangesOn','headerView','applySuggestion','ai.availableReplyActions','14470sXOWWy','addMany','showNext','5607Zeufad','2oTEfnD','pluginName','delegate','ck-ai-chat-balloon','updateContent','dialogClosed','Dialog','rejectSuggestion','value','focus','_createChatBalloonView','isPremiumPlugin','1738kNePqF','open','close','view','remove','once','commands','togglePartToolbarEnabled','plugins','isOfficialPlugin','set','get','2792LCakAf','aiChatBalloon','AIChatBalloon','TrackChanges','773271wHQuiE','has','nextButtonView','beforeDialogClosed','1318292ZRAoVJ','areActionsDisabled','220926NhhUau','children','showDiff','showRotator','setState','render','trackChanges','bind','toggleRotatorButtonsVisibility','insertSuggestion','4334120MyxfZZ','145zoFBjB','filter','74544eoocmg'];_0x54c0=function(){return _0x4dafa7;};return _0x54c0();}import{Dialog as _0x1911f3}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x51a0c7{static get[_0xb6a953(0xf6)](){return[_0x1911f3,_0x34c463];}static get[_0xb6a953(0x103)](){const _0x5bf395=_0xb6a953;return _0x5bf395(0xd9);}static get[_0xb6a953(0xd4)](){return!0x0;}static get[_0xb6a953(0x10d)](){return!0x0;}[_0xb6a953(0xf4)];constructor(_0x25dc7f){const _0x429e1a=_0xb6a953;super(_0x25dc7f),this[_0x429e1a(0xd5)](_0x429e1a(0xe3),!0x1);}[_0xb6a953(0x10f)](_0x32ef81){const _0x54ef74=_0xb6a953,_0x189c52=this[_0x54ef74(0xf3)];this[_0x54ef74(0xf4)]||(this[_0x54ef74(0xf4)]=this[_0x54ef74(0x10c)]()),_0x189c52[_0x54ef74(0xd3)][_0x54ef74(0xd6)](_0x54ef74(0xf7))[_0x54ef74(0x10f)]({..._0x32ef81,'id':_0x54ef74(0xd8),'class':_0x54ef74(0x105),'mainView':this[_0x54ef74(0xf4)]}),this[_0x54ef74(0xef)](_0x32ef81[_0x54ef74(0xe4)]),this[_0x54ef74(0xf4)][_0x54ef74(0xd2)](!_0x32ef81[_0x54ef74(0xe0)]),this[_0x54ef74(0xf8)]();}[_0xb6a953(0x110)](){const _0x51ea03=_0xb6a953;this[_0x51ea03(0xf3)][_0x51ea03(0xd3)][_0x51ea03(0xd6)](_0x51ea03(0xf7))[_0x51ea03(0x110)]();}[_0xb6a953(0x106)](_0x170520){const _0x67b50=_0xb6a953;return this[_0x67b50(0xf4)]||(this[_0x67b50(0xf4)]=this[_0x67b50(0x10c)]()),this[_0x67b50(0xf4)][_0x67b50(0x106)](_0x170520);}[_0xb6a953(0xe5)](_0x455de6){const _0x159766=_0xb6a953;this[_0x159766(0xf4)]&&this[_0x159766(0xf4)][_0x159766(0xe5)](_0x455de6);}[_0xb6a953(0x10c)](){const _0x104bdb=_0xb6a953,_0x18202f=this[_0x104bdb(0xf3)],_0x1fbd59=_0x18202f[_0x104bdb(0xd3)][_0x104bdb(0xd6)](_0x104bdb(0xf7)),_0x2a8e33=_0x18202f[_0x104bdb(0xd1)][_0x104bdb(0xd6)](_0x104bdb(0xe7));let _0x919c81=_0x18202f[_0x104bdb(0xf5)][_0x104bdb(0xd6)](_0x104bdb(0xfd))||[..._0x230597];_0x18202f[_0x104bdb(0xd3)][_0x104bdb(0xdc)](_0x104bdb(0xda))||(_0x919c81=_0x919c81[_0x104bdb(0xed)](_0x3b9bc5=>_0x104bdb(0xea)!=_0x3b9bc5));const _0x3d704c=new _0xfc38d5(_0x18202f[_0x104bdb(0xf9)],{'availableActions':_0x919c81,'showApplyButton':!0x0,'showSuggestButton':!!_0x2a8e33});return _0x3d704c[_0x104bdb(0xe8)](_0x104bdb(0xe3))['to'](this),_0x3d704c[_0x104bdb(0x104)](..._0x308287)['to'](this),_0x3d704c[_0x104bdb(0x104)](_0x104bdb(0xf0),_0x104bdb(0x100))['to'](this),_0x1fbd59[_0x104bdb(0x104)](_0x104bdb(0x107))['to'](this),_0x3d704c['on'](_0x104bdb(0xfc),this[_0x104bdb(0xf8)][_0x104bdb(0xe8)](this)),_0x3d704c['on'](_0x104bdb(0xea),this[_0x104bdb(0xf8)][_0x104bdb(0xe8)](this)),_0x3d704c['on'](_0x104bdb(0x109),this[_0x104bdb(0xf8)][_0x104bdb(0xe8)](this)),_0x2a8e33&&_0x3d704c[_0x104bdb(0xe8)](_0x104bdb(0xfa))['to'](_0x2a8e33,_0x104bdb(0x10a)),_0x3d704c[_0x104bdb(0xe6)](),_0x3d704c;}[_0xb6a953(0xef)](_0x24e614){const _0x33c026=_0xb6a953,_0x3f1f1e=this[_0x33c026(0xf3)],_0x267bb8=_0x3f1f1e[_0x33c026(0xd3)][_0x33c026(0xd6)](_0x33c026(0x108))[_0x33c026(0x111)][_0x33c026(0xfb)][_0x33c026(0xe2)];this[_0x33c026(0xf4)][_0x33c026(0xe9)](_0x24e614),_0x267bb8[_0x33c026(0xdc)](this[_0x33c026(0xf4)][_0x33c026(0xf1)])||(_0x267bb8[_0x33c026(0xff)]([this[_0x33c026(0xf4)][_0x33c026(0xf1)],this[_0x33c026(0xf4)][_0x33c026(0xdd)]],0x0),_0x3f1f1e[_0x33c026(0xd3)][_0x33c026(0xd6)](_0x33c026(0xf7))[_0x33c026(0x113)](_0x33c026(0xde),()=>{const _0x297230=_0x33c026;_0x267bb8[_0x297230(0x112)](this[_0x297230(0xf4)][_0x297230(0xf1)]),_0x267bb8[_0x297230(0x112)](this[_0x297230(0xf4)][_0x297230(0xdd)]);}));}[_0xb6a953(0xf8)](){const _0x46c8aa=_0xb6a953;this[_0x46c8aa(0xf4)][_0x46c8aa(0x10b)]();}}
23
+ const _0x3a83b2=_0xe6bb;(function(_0xbe659d,_0xe05e4f){const _0x5161e9=_0xe6bb,_0x5d703d=_0xbe659d();while(!![]){try{const _0x1d5133=-parseInt(_0x5161e9(0xba))/0x1+parseInt(_0x5161e9(0xc8))/0x2*(parseInt(_0x5161e9(0xd9))/0x3)+parseInt(_0x5161e9(0xbe))/0x4+-parseInt(_0x5161e9(0xd1))/0x5+-parseInt(_0x5161e9(0xaf))/0x6*(-parseInt(_0x5161e9(0xd4))/0x7)+parseInt(_0x5161e9(0xea))/0x8+-parseInt(_0x5161e9(0xb5))/0x9;if(_0x1d5133===_0xe05e4f)break;else _0x5d703d['push'](_0x5d703d['shift']());}catch(_0x500e3b){_0x5d703d['push'](_0x5d703d['shift']());}}}(_0x1a5a,0x524e3));import{Plugin as _0x2e123d}from'ckeditor5/src/core.js';import{AIBalloon as _0x235938}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0x42d5ff}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x3c57d0}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x3b6c5a}from'../aicore/utils/eventnames.js';function _0xe6bb(_0x5fe5a5,_0x41602c){const _0x1a5a7d=_0x1a5a();return _0xe6bb=function(_0xe6bbde,_0xc4098c){_0xe6bbde=_0xe6bbde-0xae;let _0x6bddf7=_0x1a5a7d[_0xe6bbde];return _0x6bddf7;},_0xe6bb(_0x5fe5a5,_0x41602c);}import{Dialog as _0xcc4fc0}from'ckeditor5/src/ui.js';function _0x1a5a(){const _0x56df5a=['showDiff','areActionsDisabled','requires','updateContent','children','plugins','bind','previousButtonView','dialogClosed','2tZKoTG','config','rejectSuggestion','focus','showRotator','_createChatBalloonView','open','_restoreDefaultViewFocus','delegate','322915fshEBF','showNext','get','84wizoOS','_toggleRotatorButtonsInDialogHeader','AIChatBalloon','AIBalloon','close','1044486cjpGkg','addMany','toggleRotatorButtonsVisibility','locale','commands','nextButtonView','beforeDialogClosed','showPrevious','trackChanges','setState','ai.availableReplyActions','set','isPremiumPlugin','applySuggestion','value','has','ck-ai-chat-balloon','3073000nEeXfx','editor','headerView','Dialog','pluginName','327960DPLlCN','isOfficialPlugin','view','remove','filter','_chatBalloonView','6334983rMFGZo','aiChatBalloon','render','once','insertSuggestion','580594TFasny','isTrackChangesOn','TrackChanges','togglePartToolbarEnabled','1191920KLRofs'];_0x1a5a=function(){return _0x56df5a;};return _0x1a5a();}export class AIChatBalloon extends _0x2e123d{static get[_0x3a83b2(0xc1)](){return[_0xcc4fc0,_0x235938];}static get[_0x3a83b2(0xae)](){const _0x4c01a3=_0x3a83b2;return _0x4c01a3(0xd6);}static get[_0x3a83b2(0xb0)](){return!0x0;}static get[_0x3a83b2(0xe5)](){return!0x0;}[_0x3a83b2(0xb4)];constructor(_0x5a5a4c){const _0x5b177b=_0x3a83b2;super(_0x5a5a4c),this[_0x5b177b(0xe4)](_0x5b177b(0xbf),!0x1);}[_0x3a83b2(0xce)](_0x2a4b03){const _0x5e3669=_0x3a83b2,_0x12acf2=this[_0x5e3669(0xeb)];this[_0x5e3669(0xb4)]||(this[_0x5e3669(0xb4)]=this[_0x5e3669(0xcd)]()),_0x12acf2[_0x5e3669(0xc4)][_0x5e3669(0xd3)](_0x5e3669(0xd7))[_0x5e3669(0xce)]({..._0x2a4b03,'id':_0x5e3669(0xb6),'class':_0x5e3669(0xe9),'mainView':this[_0x5e3669(0xb4)]}),this[_0x5e3669(0xd5)](_0x2a4b03[_0x5e3669(0xcc)]),this[_0x5e3669(0xb4)][_0x5e3669(0xbd)](!_0x2a4b03[_0x5e3669(0xc0)]),this[_0x5e3669(0xcf)]();}[_0x3a83b2(0xd8)](){const _0x37014c=_0x3a83b2;this[_0x37014c(0xeb)][_0x37014c(0xc4)][_0x37014c(0xd3)](_0x37014c(0xd7))[_0x37014c(0xd8)]();}[_0x3a83b2(0xc2)](_0x2cdbb1){const _0x485e24=_0x3a83b2;return this[_0x485e24(0xb4)]||(this[_0x485e24(0xb4)]=this[_0x485e24(0xcd)]()),this[_0x485e24(0xb4)][_0x485e24(0xc2)](_0x2cdbb1);}[_0x3a83b2(0xe2)](_0x2b3880){const _0x1726fa=_0x3a83b2;this[_0x1726fa(0xb4)]&&this[_0x1726fa(0xb4)][_0x1726fa(0xe2)](_0x2b3880);}[_0x3a83b2(0xcd)](){const _0x23c09b=_0x3a83b2,_0x22c910=this[_0x23c09b(0xeb)],_0x242b57=_0x22c910[_0x23c09b(0xc4)][_0x23c09b(0xd3)](_0x23c09b(0xd7)),_0xb989fe=_0x22c910[_0x23c09b(0xdd)][_0x23c09b(0xd3)](_0x23c09b(0xe1));let _0x21a870=_0x22c910[_0x23c09b(0xc9)][_0x23c09b(0xd3)](_0x23c09b(0xe3))||[..._0x42d5ff];_0x22c910[_0x23c09b(0xc4)][_0x23c09b(0xe8)](_0x23c09b(0xbc))||(_0x21a870=_0x21a870[_0x23c09b(0xb3)](_0x29702c=>_0x23c09b(0xb9)!=_0x29702c));const _0x3b11f6=new _0x3c57d0(_0x22c910[_0x23c09b(0xdc)],{'availableActions':_0x21a870,'showApplyButton':!0x0,'showSuggestButton':!!_0xb989fe});return _0x3b11f6[_0x23c09b(0xc5)](_0x23c09b(0xbf))['to'](this),_0x3b11f6[_0x23c09b(0xd0)](..._0x3b6c5a)['to'](this),_0x3b11f6[_0x23c09b(0xd0)](_0x23c09b(0xe0),_0x23c09b(0xd2))['to'](this),_0x242b57[_0x23c09b(0xd0)](_0x23c09b(0xc7))['to'](this),_0x3b11f6['on'](_0x23c09b(0xe6),this[_0x23c09b(0xcf)][_0x23c09b(0xc5)](this)),_0x3b11f6['on'](_0x23c09b(0xb9),this[_0x23c09b(0xcf)][_0x23c09b(0xc5)](this)),_0x3b11f6['on'](_0x23c09b(0xca),this[_0x23c09b(0xcf)][_0x23c09b(0xc5)](this)),_0xb989fe&&_0x3b11f6[_0x23c09b(0xc5)](_0x23c09b(0xbb))['to'](_0xb989fe,_0x23c09b(0xe7)),_0x3b11f6[_0x23c09b(0xb7)](),_0x3b11f6;}[_0x3a83b2(0xd5)](_0x50fd41){const _0x2b93cd=_0x3a83b2,_0x596743=this[_0x2b93cd(0xeb)],_0x323523=_0x596743[_0x2b93cd(0xc4)][_0x2b93cd(0xd3)](_0x2b93cd(0xed))[_0x2b93cd(0xb1)][_0x2b93cd(0xec)][_0x2b93cd(0xc3)];this[_0x2b93cd(0xb4)][_0x2b93cd(0xdb)](_0x50fd41),_0x323523[_0x2b93cd(0xe8)](this[_0x2b93cd(0xb4)][_0x2b93cd(0xc6)])||(_0x323523[_0x2b93cd(0xda)]([this[_0x2b93cd(0xb4)][_0x2b93cd(0xc6)],this[_0x2b93cd(0xb4)][_0x2b93cd(0xde)]],0x0),_0x596743[_0x2b93cd(0xc4)][_0x2b93cd(0xd3)](_0x2b93cd(0xd7))[_0x2b93cd(0xb8)](_0x2b93cd(0xdf),()=>{const _0x3bed92=_0x2b93cd;_0x323523[_0x3bed92(0xb2)](this[_0x3bed92(0xb4)][_0x3bed92(0xc6)]),_0x323523[_0x3bed92(0xb2)](this[_0x3bed92(0xb4)][_0x3bed92(0xde)]);}));}[_0x3a83b2(0xcf)](){const _0x5e2ab4=_0x3a83b2;this[_0x5e2ab4(0xb4)][_0x5e2ab4(0xcb)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1858dd=_0x5731;(function(_0x5263d6,_0x3f7d21){const _0x542681=_0x5731,_0x46ffd5=_0x5263d6();while(!![]){try{const _0x426ff0=parseInt(_0x542681(0x182))/0x1+-parseInt(_0x542681(0x1cf))/0x2*(parseInt(_0x542681(0x154))/0x3)+-parseInt(_0x542681(0x244))/0x4*(-parseInt(_0x542681(0x258))/0x5)+-parseInt(_0x542681(0x120))/0x6+parseInt(_0x542681(0x164))/0x7+parseInt(_0x542681(0x247))/0x8+-parseInt(_0x542681(0x155))/0x9*(-parseInt(_0x542681(0x1e8))/0xa);if(_0x426ff0===_0x3f7d21)break;else _0x46ffd5['push'](_0x46ffd5['shift']());}catch(_0x4623b8){_0x46ffd5['push'](_0x46ffd5['shift']());}}}(_0x1602,0x49479));import{ContextPlugin as _0x2b2eed,Editor as _0x2e49f1}from'ckeditor5/src/core.js';import{BodyCollection as _0x391435}from'ckeditor5/src/ui.js';import{CKEditorError as _0x58385f,logError as _0x233dba,scrollViewportToShowTarget as _0x531395,uid as _0x989407}from'ckeditor5/src/utils.js';import{AIConnector as _0x5755ad}from'../aicore/aiconnector.js';import{AITabs as _0xbdfbbe}from'../aitabs/aitabs.js';import{AIChatConversation as _0x12c3c9}from'./model/aichatconversation.js';import{getTranslation as _0x3acc4b}from'../aicore/utils/common-translations.js';import{AIModels as _0x13b4c5}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x5efda0}from'../aicore/utils/geteditorfromcontext.js';function _0x5731(_0x387077,_0x5aaa9c){const _0x160269=_0x1602();return _0x5731=function(_0x573155,_0x4eb6d6){_0x573155=_0x573155-0xd0;let _0x4cc8d4=_0x160269[_0x573155];return _0x4cc8d4;},_0x5731(_0x387077,_0x5aaa9c);}import{DocumentCompare as _0x503be0,DATA_ID_MODEL_ATTRIBUTE as _0x543aba}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x61bb10,getOperationsFromReply as _0x165316}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x1646cf,getMinimalSelection as _0x44f6e2}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x146edd,_DetachOperation as _0x5832fc}from'ckeditor5/src/engine.js';import{findOne as _0x28410a,getAttribute as _0x59e1d5,serialize as _0x448488,Document as _0x5573d5,findByAttribute as _0x27c6fa}from'../aicore/utils/htmlparser.js';function _0x1602(){const _0x5a35b2=['_removeFromContext','anchorId','editors','fetchConversations','$graveyard','marker','updateFeedItemAIReplySources','webSearchFinished','_batchToChanges','outdated','2254044laIJJs','error','ai.models','lastInteraction','getChildren','detachFromDom','type','TrackChanges','_aiChatModels','documentContextContent','TrackChangesEditing','start','reasoningStarted','addFeedItemAIReply','reasoningFinished','_logError','resetMessageInput','selection','sourceId','getChildAtOffset','next','addFeedItemError','addFeedItemStaticMessage','getInteractionAndReplyById','open','AIEditing','ai-chat-context-file-too-large','getRoot','streaming','contextItemAdded','isDisabled','createPositionAt','add','setConversationContext','Undo','upsertAIChatRating','uid','getDocumentContext','done','setContextItemLoading','startAutoScroll','removeSelectionFromChatContext','ai.models.defaultModelId','indexOf','previous','sendMessage','selectedModel','modification','ai-chat-file-upload-failed','context','attachToDom','DocumentCompare','3FpHPOq','280647uvIkis','revert','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','callback','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','getConversation','log','load','addSelectionToChatContext','mapper','plugins','ai-chat-url-upload-failed','ai-no-track-changes','addFeedItemUserMessage','ai-chat-conversation-init-failed','526729MBrJdA','updateConversationTitle','setConversationTitle','from','nextSibling','updateCurrentDocumentInContext','showNext','removeFeedInteraction','createConversation','slice','undo','split','state','rejected','insertSuggestion','getChild','has','document','resize','toggleSuggestionDisplayMode','sourcePosition','_applyOperationsAsSuggestions','getAttribute','_updateReplyContent','_applySuggestion','populateSourceResourceBalloon','executeCustomItemCallback','_aiChatBalloon','setIsMaximized','ai-conversation-','157040ftdwfv','pending','addFeedItemCustomElement','resetWebSearchState','loadSourceResources','getRanges','pluginName','getSelectionText','scrollFeedToSuggestion','ai.chat.context','init','selectModel','_getUserPresentableContentPartDocumentRange','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','ai-chat-conversation-start-failed','ai-chat-context-unsupported-type','interactionStarted','getGroupId','sourceResourcesLoaded','AI_BALLOON_HEADER_TITLE','disableControls','getOperations','findIndex','changeGroups','resources','_insertSuggestion','end','getDiff','ai-chat-controller-mouse-over','interactionCreated','config','enableControls','view','_stopLastInteraction','indexes','replyId','applySuggestion','getContentParts','getFirstRange','requires','_aiChatUi','Liked\x20response','setChangeGroupState','_startConversationSafely','updateContent','accepted','replies','interactionId','ai-chat-context-invalid-data','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','isPremiumPlugin','startsWith','node','toolDataReceived','activateTab','ai-chat-context-form-data-size-limits-exceeded','addDocumentToContext','activeConversation','createReply','get','interactionFinished','range','getAll','close','setFeedItemAIReplySuggestionPartActive','uiId','commands','query','AIConnector','forEach','createRange','_updateRatings','ai-chat-resource-load-failed','path','addOperation','afterInit','updateResourceState','894670pqDCyI','alignToTop','_rejectSuggestion','focusPromptInput','static','collaboration.channelId','isStarted','rejectSuggestion','showFakeVisualSelection','replyChangeGroupStateUpdated','AI_CHAT_ABORTED_MESSAGE','abortPromptStream','ai.chat.initialConversation','clearLoadingMessage','push','_toggleReasoning','_getAIChatInteractionAPI','_showConversationHistory','version','_getPresentableSiblingContentPartIndex','addContextItem','delete','listenTo','capabilitiesUpdated','destroy','110CuxPaK','length','_handleStartConversation','setState','main','finishInteraction','hasChanges','addSelectionToContext','createPositionFromPath','_flushLastInteractionUI','viewRangeToDom','getTransformedByOperation','_createFromRanges','_registerToolDataCallback','AI_CHAT_INVALID_REQUEST','toString','cloneNode','data-id','AI_CHAT_CONTEXT_INVALID_DATA','root','toViewRange','modelSelected','addCurrentDocumentToContext','setSelectedModel','AITabs','dislike','history','redo','mouseOverSuggestion','resourceId','updateFeedItemAIReplyContent','getConversations','clearConversationContextUI','resetConversationTitle','_integrateEditor','AI_CHAT_GENERIC_ERROR','contextItemRemoved','new','sources','getDocumentData','isLoading','resource','contextSent','contextItem','_getDocumentRangeForReplyChanges','partIndex','closeSourceResourceBalloon','isModelAvailable','_getLastCreatedConversationId','startInteraction','updateCapabilities','_aiChatBalloonShowDiff','prepareLoadingMessage','dialogClosed','addResourceToContext','getPath','AI_CHAT_UNTITLED_CONVERSATION','index','lastCreated','chat','interactionDestroyed','AIChatUI','_aiConnector','addFeedItemAISuggestion','resourceStateChanged','map','updateFeedItemAIReplySuggestionContent','createdAt','resetReasoningState','hideFakeVisualSelection','aiChatBalloon','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','getReply','_currentPreviewedChangeGroup','isOfficialPlugin','updateFeedItemAIReplySuggestionPartState','ai-chat-controller-no-active-conversation','contextItemLoadingEnded','clearPendingContextUI','ai-request-aborted','setLoadingMessage','remove','handleRemovedConversation','addCurrentDocumentToChatContext','resizedTabs','content','ai-chat-missing-channel-id','mouseLeaveSuggestion','ai-chat-context-unsupported-file-type','find','model','_scrollToSuggestionRange','10796LegjQI','startConversation','sendUserMessage','3368072JUDZTy','parse','showPrevious','set','setModel','_setIsMaximized','removeFromContext','removeContextItem','AI_CHAT_RESOURCE_LOAD_FAILED','current-document','setAddContextOptions','isCurrentDocumentInConversation','AI_CHAT_UNABLE_TO_START_CONVERSATION','rootName','addUrlToContext','stopInteraction','bind','235jiZhlG','baseVersion','message','change','_openBalloonFor','toggleLoadingSkeleton','resizeTabs','AI_CHAT_CONTEXT_FILE_TOO_LARGE','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','Disliked\x20response','changes','currentReply','webSearchStarted','filter','messageId','delegate','areActionsDisabled','sessionId','includes','_aiEditing','fetchConversation','ai-chat-source-resources-load-failed','ai-chat-invalid-request','showDiff','addFileToContext','howMany','toggleReasoning','like','_toggleWebSearch','domConverter','contextItems','AIChatBalloon','batch','addContextOptionsChanged','ai-chat-conversation-not-found','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','replyCreated','isCurrentDocumentInContext','children','showChangeInText','locale','handleUserInteraction','_bodyCollection','AIChatController','ready','toggleWebSearch','stop','uploadProgressChanged','_handleUIUserMessage','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','maxOffset','setFeedItemRenderingStrategy','replyContentUpdated','isInContext','text','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','removed','options','conversationInitialized','addFilesToContext','addFeedInteractionHeader','getInteraction','removeSelectionFromContext','isUploadInProgress','editing','isDocumentOperation','source','setIsUploadInProgress','loadConversation','data','ai-chat-context-file-too-many-pages','Showing\x20conversation\x20history...','unshift','applyOperation'];_0x1602=function(){return _0x5a35b2;};return _0x1602();}export class AIChatController extends _0x2b2eed{[_0x1858dd(0xdf)];[_0x1858dd(0x226)];[_0x1858dd(0x1aa)];[_0x1858dd(0x128)];[_0x1858dd(0x17f)];[_0x1858dd(0x11e)]=new Map();[_0x1858dd(0x231)]=null;[_0x1858dd(0xf6)];static get[_0x1858dd(0x1a9)](){return[_0x5755ad,_0x503be0];}static get[_0x1858dd(0x188)](){const _0x2a5ed3=_0x1858dd;return _0x2a5ed3(0xf7);}static get[_0x1858dd(0x232)](){return!0x0;}static get[_0x1858dd(0x1b4)](){return!0x0;}[_0x1858dd(0x18c)](){const _0x1e648c=_0x1858dd;this[_0x1e648c(0xf6)]=new _0x391435(this[_0x1e648c(0x151)][_0x1e648c(0xf4)]),this[_0x1e648c(0xf6)][_0x1e648c(0x152)](),this[_0x1e648c(0x226)]=this[_0x1e648c(0x151)][_0x1e648c(0x15f)][_0x1e648c(0x1bd)](_0x1e648c(0x1c6)),this[_0x1e648c(0x1aa)]=this[_0x1e648c(0x151)][_0x1e648c(0x15f)][_0x1e648c(0x1bd)](_0x1e648c(0x225)),this[_0x1e648c(0xdf)]=this[_0x1e648c(0x151)][_0x1e648c(0x15f)][_0x1e648c(0x1bd)](_0x1e648c(0x139)),this[_0x1e648c(0x128)]=new _0x13b4c5({'connector':this[_0x1e648c(0x226)],'config':this[_0x1e648c(0x151)][_0x1e648c(0x1a0)][_0x1e648c(0x1bd)](_0x1e648c(0x122)),'locale':this[_0x1e648c(0x151)][_0x1e648c(0xf4)]});const _0x29ee4=this[_0x1e648c(0x151)][_0x1e648c(0x15f)][_0x1e648c(0x1bd)](_0x1e648c(0x200));this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x245),()=>{const _0x5a6bb1=_0x1e648c;this[_0x5a6bb1(0x1ad)]();}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x246),(_0x1e6991,_0x15472d)=>{const _0x280bb5=_0x1e648c;this[_0x280bb5(0xfc)]({'userMessage':_0x15472d});}),this[_0x1e648c(0x1e5)](_0x29ee4,_0x1e648c(0x23c),(_0x48822f,_0x2ff7bf)=>{const _0x55f645=_0x1e648c;this[_0x55f645(0x24c)](_0x2ff7bf);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0xd2),()=>{const _0x29732f=_0x1e648c;_0x29ee4[_0x29732f(0x176)]();}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x1da),async()=>{const _0x47fc39=_0x1e648c;await this[_0x47fc39(0x1a3)](),await this[_0x47fc39(0x1f1)](),this[_0x47fc39(0x149)]();}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x1ba),()=>{const _0x542752=_0x1e648c;this[_0x542752(0x23b)]();}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0xe4),(_0x570e14,_0x3c041c)=>{const _0x1f1dc6=_0x1e648c;this[_0x1f1dc6(0x1bb)]?.[_0x1f1dc6(0x107)](Array[_0x1f1dc6(0x167)](_0x3c041c));}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x255),(_0x577369,_0x3c62cc)=>{const _0x3cc6c4=_0x1e648c;this[_0x3cc6c4(0x1bb)]?.[_0x3cc6c4(0x255)](_0x3c62cc);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x17e),(_0x5386be,_0x88827c)=>{const _0x26348c=_0x1e648c;_0x88827c[_0x26348c(0x158)](this[_0x26348c(0x151)]);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x21e),(_0x2df703,_0x2280ec)=>{const _0x40aabe=_0x1e648c;this[_0x40aabe(0x1bb)]?.[_0x40aabe(0x21e)](_0x2280ec[_0x40aabe(0x10e)],_0x2280ec[_0x40aabe(0x211)]);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x24e),(_0x4fe504,_0x597823)=>{const _0x1d2a5a=_0x1e648c;this[_0x1d2a5a(0x116)](_0x597823);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x186),(_0x4dde67,_0xc5b510)=>{const _0x5267c5=_0x1e648c;this[_0x5267c5(0x1bb)]?.[_0x5267c5(0x186)](_0xc5b510[_0x5267c5(0x132)],_0xc5b510[_0x5267c5(0x1c5)],_0xc5b510[_0x5267c5(0x144)]);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0xf9),()=>{const _0x31dcb8=_0x1e648c;this[_0x31dcb8(0xe8)]();}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0xe6),()=>{const _0x103223=_0x1e648c;this[_0x103223(0x1de)]();}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x18d),(_0x1e0ce2,_0x4daabe)=>{const _0x83ceca=_0x1e648c;this[_0x83ceca(0x1bb)]?.[_0x83ceca(0x24b)](_0x4daabe);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0xe7),(_0x51e573,{replyId:_0x37ea0b})=>{const _0x5a9e67=_0x1e648c;console[_0x5a9e67(0x15b)](_0x5a9e67(0x1ab),_0x37ea0b);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x201),(_0x4a4d95,{replyId:_0x1f738d})=>{const _0xd75351=_0x1e648c;console[_0xd75351(0x15b)](_0xd75351(0xd5),_0x1f738d);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x172),(_0x43780b,_0x1f54b7)=>{const _0x43a60c=_0x1e648c;this[_0x43a60c(0x19b)](_0x1f54b7);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0xf3),(_0x164bc6,{replyId:_0x299215,partIndex:_0x521f16})=>{const _0x31932c=_0x1e648c;this[_0x31932c(0x21b)]=this[_0x31932c(0x1aa)][_0x31932c(0xe3)],this[_0x31932c(0xd0)](_0x299215,_0x521f16);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x204),(_0x595cc4,{replyId:_0x2b7a00,partIndex:_0x225fec})=>{const _0x415ff3=_0x1e648c,_0x4b1131=this[_0x415ff3(0x214)](_0x2b7a00,_0x225fec);_0x4b1131&&_0x415ff3(0x11a)!=_0x4b1131[_0x415ff3(0x1bf)][_0x415ff3(0x1fb)][_0x415ff3(0x254)]&&this[_0x415ff3(0xdf)][_0x415ff3(0x1d7)]([_0x4b1131[_0x415ff3(0x1bf)]],_0x415ff3(0x19e));}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x23f),()=>{const _0x1717dd=_0x1e648c;this[_0x1717dd(0xdf)][_0x1717dd(0x22d)](_0x1717dd(0x19e));}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x1a6),(_0x29d36a,_0x3f0837)=>{const _0x359c18=_0x1e648c;this[_0x359c18(0xdf)][_0x359c18(0x22d)](_0x359c18(0x19e)),this[_0x359c18(0x17c)](_0x3f0837);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x177),async(_0xa41846,{replyId:_0x18152c,showDiff:_0x26f9f0})=>{const _0x2ea180=_0x1e648c,{reply:_0xc9f44a}=this[_0x2ea180(0x137)](_0x18152c),_0x168bdb=_0xc9f44a[_0x2ea180(0x1a7)]({'showDiff':_0x26f9f0});await this[_0x2ea180(0x1aa)][_0x2ea180(0x22a)]({'id':_0xc9f44a['id'],'parts':_0x168bdb,'renderingStrategy':_0x2ea180(0x1d3)});}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x1d6),(_0x37ac6c,{replyId:_0x1a50c7,partIndex:_0x256720})=>{const _0x14a7d3=_0x1e648c;this[_0x14a7d3(0x1d1)]({'replyId':_0x1a50c7,'partIndex':_0x256720}),this[_0x14a7d3(0xdf)][_0x14a7d3(0x22d)](_0x14a7d3(0x19e));}),this[_0x1e648c(0x151)][_0x1e648c(0x15f)][_0x1e648c(0x174)](_0x1e648c(0xeb))&&(this[_0x1e648c(0x17f)]=this[_0x1e648c(0x151)][_0x1e648c(0x15f)][_0x1e648c(0x1bd)](_0x1e648c(0xeb)),this[_0x1e648c(0x24a)](_0x1e648c(0x21b),!0x1),this[_0x1e648c(0x17f)][_0x1e648c(0x257)](_0x1e648c(0xe3))['to'](this,_0x1e648c(0x21b)),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x17f)],_0x1e648c(0x177),()=>{const _0x9f3fb4=_0x1e648c,{replyId:_0x5cc5d1,partIndex:_0x1d2315}=this[_0x9f3fb4(0x231)];this[_0x9f3fb4(0x21b)]=!this[_0x9f3fb4(0x21b)];const {reply:_0x58f5fa}=this[_0x9f3fb4(0x137)](_0x5cc5d1),_0x27cde5=_0x58f5fa[_0x9f3fb4(0x1a7)]({'showDiff':this[_0x9f3fb4(0x21b)],'groupIndex':_0x1d2315});this[_0x9f3fb4(0x17f)][_0x9f3fb4(0x1ae)]({'part':_0x27cde5[0x0],'renderingStrategy':_0x9f3fb4(0x1d3),'keepErrors':!0x0});}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x17f)],_0x1e648c(0x1a6),()=>{const _0x1a7674=_0x1e648c,{replyId:_0x541cb2,partIndex:_0x52634e}=this[_0x1a7674(0x231)];this[_0x1a7674(0x17c)]({'replyId':_0x541cb2,'partIndex':_0x52634e}),this[_0x1a7674(0x17f)][_0x1a7674(0x1eb)](_0x1a7674(0x1af));}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x17f)],_0x1e648c(0x172),()=>{const _0x360928=_0x1e648c,{replyId:_0x44e272,partIndex:_0xd42d7d}=this[_0x360928(0x231)];this[_0x360928(0x19b)]({'replyId':_0x44e272,'partIndex':_0xd42d7d}),this[_0x360928(0x17f)][_0x360928(0x1eb)](_0x360928(0x1af));}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x17f)],_0x1e648c(0x1d6),()=>{const _0x3b99a4=_0x1e648c,{replyId:_0x1140f5,partIndex:_0x43c592}=this[_0x3b99a4(0x231)];this[_0x3b99a4(0x1d1)]({'replyId':_0x1140f5,'partIndex':_0x43c592}),this[_0x3b99a4(0x17f)][_0x3b99a4(0x1eb)](_0x3b99a4(0x171));}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x17f)],_0x1e648c(0x16a),()=>{const _0x4baec4=_0x1e648c,{replyId:_0x31e74f,partIndex:_0x402886}=this[_0x4baec4(0x231)],_0xced8d=this[_0x4baec4(0x1e2)](_0x31e74f,_0x402886,_0x4baec4(0x134));null!==_0xced8d&&this[_0x4baec4(0xd0)](_0x31e74f,_0xced8d);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x17f)],_0x1e648c(0x249),()=>{const _0xea9647=_0x1e648c,{replyId:_0x1170a2,partIndex:_0x405466}=this[_0xea9647(0x231)],_0x4f994b=this[_0xea9647(0x1e2)](_0x1170a2,_0x405466,_0xea9647(0x14c));null!==_0x4f994b&&this[_0xea9647(0xd0)](_0x1170a2,_0x4f994b);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x17f)],_0x1e648c(0x21d),(_0x1cf533,{id:_0x3a55cb})=>{const _0xfc83a9=_0x1e648c;if(_0xfc83a9(0x22e)!==_0x3a55cb)return;const {replyId:_0x262aa0,partIndex:_0x469f8a}=this[_0xfc83a9(0x231)];this[_0xfc83a9(0x231)]=null,this[_0xfc83a9(0x1aa)][_0xfc83a9(0x1c2)]({'id':_0x262aa0,'index':_0x469f8a,'isActive':!0x1});}));}async[_0x1858dd(0x1cd)](){const _0x48b834=_0x1858dd;this[_0x48b834(0x151)]instanceof _0x2e49f1?this[_0x48b834(0x20a)](this[_0x48b834(0x151)]):this[_0x48b834(0x1e5)](this[_0x48b834(0x151)][_0x48b834(0x118)],_0x48b834(0x140),(_0x359609,_0x3f43c7)=>{const _0x5b3a9c=_0x48b834;_0x3f43c7['on'](_0x5b3a9c(0xf8),()=>{const _0x456b53=_0x5b3a9c;this[_0x456b53(0x20a)](_0x3f43c7);});});const _0x138cfe=this[_0x48b834(0x151)][_0x48b834(0x1a0)][_0x48b834(0x1bd)](_0x48b834(0x1db));let _0x87737c=_0x138cfe;if(_0x48b834(0x222)!=_0x138cfe||(_0x87737c=await this[_0x48b834(0x218)](),_0x87737c))return _0x48b834(0x20d)==_0x87737c?this[_0x48b834(0x1ad)]():this[_0x48b834(0x110)](_0x87737c);}async[_0x1858dd(0x1e7)](){const _0x2a1c04=_0x1858dd;return await this[_0x2a1c04(0x1a3)](),this[_0x2a1c04(0xf6)][_0x2a1c04(0x125)](),super[_0x2a1c04(0x1e7)]();}[_0x1858dd(0x19b)](_0xb6b143){const _0x4d8726=_0x1858dd,_0x47e281=_0x5efda0(this[_0x4d8726(0x151)]);if(!_0x47e281[_0x4d8726(0x15f)][_0x4d8726(0x174)](_0x4d8726(0x127)))throw new _0x58385f(_0x4d8726(0x161),null);const _0xecef08=this[_0x4d8726(0x151)][_0x4d8726(0x15f)][_0x4d8726(0x1bd)](_0x4d8726(0x153)),{reply:_0x5a77ad,interaction:_0x594cdd}=this[_0x4d8726(0x137)](_0xb6b143[_0x4d8726(0x1a5)]),_0x1be0f9=this[_0x4d8726(0x214)](_0xb6b143[_0x4d8726(0x1a5)],_0xb6b143[_0x4d8726(0x215)]),_0x2bda3c=void 0x0!==_0xb6b143[_0x4d8726(0x215)]?[_0x5a77ad[_0x4d8726(0x199)][_0xb6b143[_0x4d8726(0x215)]]]:_0x5a77ad[_0x4d8726(0x199)][_0x4d8726(0xd9)](_0x161239=>_0x4d8726(0x183)==_0x161239[_0x4d8726(0x170)]),_0x354372=_0x2bda3c[_0x4d8726(0x229)](_0x539061=>_0x5a77ad[_0x4d8726(0x199)][_0x4d8726(0x14b)](_0x539061));if(!_0x1be0f9||_0x4d8726(0x11a)==_0x1be0f9[_0x4d8726(0x1bf)][_0x4d8726(0x1fb)][_0x4d8726(0x254)])return void _0x354372[_0x4d8726(0x1c7)](_0x2eedd9=>_0x5a77ad[_0x4d8726(0x1ac)](_0x2eedd9,_0x4d8726(0x11f)));_0x354372[_0x4d8726(0x1c7)](_0x2ff93e=>_0x5a77ad[_0x4d8726(0x1ac)](_0x2ff93e,_0x4d8726(0x1af)));const _0xe4830f=_0x165316({'editor':_0x47e281,'reply':_0x5a77ad,'interaction':_0x594cdd,'groups':_0x2bda3c,'transform':!0x0,'documentCompare':_0xecef08,'documentCompareOptions':{'anchor':_0x4d8726(0x1ec),'markDeletions':!0x0}});let _0x50ded2;_0x1be0f9&&this[_0x4d8726(0x243)](_0x1be0f9[_0x4d8726(0x1bf)]),_0x47e281[_0x4d8726(0x242)][_0x4d8726(0x25b)](_0x19eb67=>{const _0x5dd9f7=_0x4d8726;_0x50ded2=_0x19eb67[_0x5dd9f7(0xec)],_0x47e281[_0x5dd9f7(0x15f)][_0x5dd9f7(0x1bd)](_0x5dd9f7(0x12a))[_0x5dd9f7(0x179)](_0xe4830f),this[_0x5dd9f7(0xdf)][_0x5dd9f7(0x22d)](_0x5dd9f7(0x19e));}),this[_0x4d8726(0x11e)][_0x4d8726(0x24a)](_0x50ded2,{'interactionId':_0x594cdd['id'],'replyId':_0x5a77ad['id'],'indexes':_0x354372[_0x4d8726(0x16d)]()}),this[_0x4d8726(0x1c9)](_0x5a77ad);}[_0x1858dd(0x17c)](_0x367c83){const _0x486837=_0x1858dd,_0x4920dd=_0x5efda0(this[_0x486837(0x151)]),_0xc1f704=this[_0x486837(0x151)][_0x486837(0x15f)][_0x486837(0x1bd)](_0x503be0),{reply:_0x288761,interaction:_0x2fdc25}=this[_0x486837(0x137)](_0x367c83[_0x486837(0x1a5)]),_0x35b43a=this[_0x486837(0x214)](_0x367c83[_0x486837(0x1a5)],_0x367c83[_0x486837(0x215)]),_0x32c3f0=void 0x0!==_0x367c83[_0x486837(0x215)]?[_0x288761[_0x486837(0x199)][_0x367c83[_0x486837(0x215)]]]:_0x288761[_0x486837(0x199)][_0x486837(0xd9)](_0xe6fe63=>_0x486837(0x183)==_0xe6fe63[_0x486837(0x170)]),_0xd508c4=_0x32c3f0[_0x486837(0x229)](_0x70983c=>_0x288761[_0x486837(0x199)][_0x486837(0x14b)](_0x70983c));if(!_0x35b43a||_0x486837(0x11a)==_0x35b43a[_0x486837(0x1bf)][_0x486837(0x1fb)][_0x486837(0x254)])return void _0xd508c4[_0x486837(0x1c7)](_0x1f7c14=>_0x288761[_0x486837(0x1ac)](_0x1f7c14,_0x486837(0x11f)));_0xd508c4[_0x486837(0x1c7)](_0x2946a3=>_0x288761[_0x486837(0x1ac)](_0x2946a3,_0x486837(0x1af)));const _0x44c0e2=_0x165316({'editor':_0x4920dd,'reply':_0x288761,'interaction':_0x2fdc25,'groups':_0x32c3f0,'transform':!0x0,'documentCompare':_0xc1f704,'documentCompareOptions':{'anchor':_0x486837(0x1ec),'markDeletions':!0x1}});let _0x12a61d;_0x35b43a&&this[_0x486837(0x243)](_0x35b43a[_0x486837(0x1bf)]),_0x4920dd[_0x486837(0x242)][_0x486837(0x25b)](_0x1a27c9=>{const _0x2e930a=_0x486837;_0x12a61d=_0x1a27c9[_0x2e930a(0xec)];for(const _0x1f6ded of _0x44c0e2)_0x1f6ded[_0x2e930a(0x259)]=_0x4920dd[_0x2e930a(0x242)][_0x2e930a(0x175)][_0x2e930a(0x1e1)],_0x61bb10(_0x4920dd,_0x1f6ded),_0x1a27c9[_0x2e930a(0xec)][_0x2e930a(0x1cc)](_0x1f6ded),_0x4920dd[_0x2e930a(0x242)][_0x2e930a(0x115)](_0x1f6ded);}),this[_0x486837(0x11e)][_0x486837(0x24a)](_0x12a61d,{'interactionId':_0x2fdc25['id'],'replyId':_0x288761['id'],'indexes':_0xd508c4[_0x486837(0x16d)]()}),this[_0x486837(0x1c9)](_0x288761);}[_0x1858dd(0x1d1)](_0x86cb16){const _0x43d2d3=_0x1858dd,{reply:_0x20e748}=this[_0x43d2d3(0x137)](_0x86cb16[_0x43d2d3(0x1a5)]);_0x20e748[_0x43d2d3(0x1ac)](_0x86cb16[_0x43d2d3(0x215)],_0x43d2d3(0x171));}[_0x1858dd(0xd0)](_0x161a4a,_0x3db9f4){const _0x35ccc6=_0x1858dd;if(!this[_0x35ccc6(0x17f)])return;const {reply:_0x341f81}=this[_0x35ccc6(0x137)](_0x161a4a),_0x10eeef=_0x341f81[_0x35ccc6(0x1a7)]({'showDiff':this[_0x35ccc6(0x21b)]});let _0x3ed7cc,_0x4b019e;if(void 0x0!==_0x3db9f4?(_0x4b019e=_0x10eeef[_0x35ccc6(0x241)](_0x423e6b=>_0x423e6b[_0x35ccc6(0x221)]==_0x3db9f4),_0x3ed7cc=_0x4b019e?.[_0x35ccc6(0x221)]):(_0x4b019e=_0x10eeef[0x0],_0x3ed7cc=_0x4b019e[_0x35ccc6(0x221)]),this[_0x35ccc6(0x231)]?.[_0x35ccc6(0x1a5)]==_0x161a4a&&this[_0x35ccc6(0x231)]?.[_0x35ccc6(0x215)]==_0x3ed7cc)return;const _0x8600f=this[_0x35ccc6(0x18e)](_0x161a4a,_0x341f81,_0x4b019e);if(!_0x8600f)return void this[_0x35ccc6(0x17f)][_0x35ccc6(0x1c1)]();this[_0x35ccc6(0x231)]={'replyId':_0x161a4a,'partIndex':_0x3ed7cc},this[_0x35ccc6(0x243)](_0x8600f,!0x0);const _0x4aa185=this[_0x35ccc6(0x1e2)](_0x161a4a,_0x3ed7cc,_0x35ccc6(0x134));this[_0x35ccc6(0x17f)][_0x35ccc6(0x1ae)]({'part':_0x4b019e,'renderingStrategy':_0x35ccc6(0x1d3)}),this[_0x35ccc6(0x17f)][_0x35ccc6(0x138)]({'index':_0x3ed7cc,'title':_0x3acc4b(this[_0x35ccc6(0x151)][_0x35ccc6(0xf4)],_0x35ccc6(0x195),(_0x3ed7cc+0x1)[_0x35ccc6(0x1f7)]()),'showRotator':null!==_0x4aa185,'ranges':[_0x8600f],'areActionsDisabled':_0x341f81[_0x35ccc6(0xdc)]}),this[_0x35ccc6(0x17f)][_0x35ccc6(0x1eb)](_0x35ccc6(0x183)),this[_0x35ccc6(0x1aa)][_0x35ccc6(0x18a)](_0x161a4a,_0x3ed7cc),this[_0x35ccc6(0x1aa)][_0x35ccc6(0x1c2)]({'id':_0x161a4a,'index':_0x3ed7cc,'isActive':!0x0});}[_0x1858dd(0x1e2)](_0x3f37c8,_0xc82857,_0x4fa1f4){const _0x2f83b6=_0x1858dd,{reply:_0x1c476b}=this[_0x2f83b6(0x137)](_0x3f37c8),_0x3488e3=_0x1c476b[_0x2f83b6(0x1a7)]({'showDiff':this[_0x2f83b6(0x21b)]});if(0x1==_0x3488e3[_0x2f83b6(0x1e9)])return null;const _0x359938=_0x3488e3[_0x2f83b6(0x198)](_0x5d8222=>_0x5d8222[_0x2f83b6(0x221)]==_0xc82857),_0x54ac0e=_0x2f83b6(0x134)==_0x4fa1f4?0x1:-0x1;let _0x1bb28c=_0x3488e3['at']((_0x359938+_0x54ac0e)%_0x3488e3[_0x2f83b6(0x1e9)])[_0x2f83b6(0x221)],_0x11b6f8=_0x3488e3[_0x1bb28c];for(;!this[_0x2f83b6(0x18e)](_0x3f37c8,_0x1c476b,_0x11b6f8);){if(_0x1bb28c=_0x3488e3['at']((_0x1bb28c+_0x54ac0e)%_0x3488e3[_0x2f83b6(0x1e9)])[_0x2f83b6(0x221)],_0x1bb28c===_0x359938)return null;_0x11b6f8=_0x3488e3[_0x1bb28c];}return _0x1bb28c;}[_0x1858dd(0x18e)](_0x33ec50,_0x46061c,_0x6d85df){const _0x13c3cc=_0x1858dd,_0x28e5f7=_0x46061c[_0x13c3cc(0x199)];if(!_0x6d85df[_0x13c3cc(0x1ee)])return null;const _0x5eed46=_0x28e5f7[_0x13c3cc(0x241)](_0x2aac05=>_0x2aac05[_0x13c3cc(0x221)]==_0x6d85df[_0x13c3cc(0x221)]);if(_0x13c3cc(0x183)!==_0x5eed46?.[_0x13c3cc(0x170)])return null;const _0x250e30=this[_0x13c3cc(0x214)](_0x33ec50,_0x6d85df[_0x13c3cc(0x221)]);if(!_0x250e30)return null;const {range:_0xd591b1,currentIndex:_0x4fdf1b}=_0x250e30;return _0x13c3cc(0x11a)==_0xd591b1[_0x13c3cc(0x1fb)][_0x13c3cc(0x254)]?(_0x46061c[_0x13c3cc(0x1ac)](_0x4fdf1b,_0x13c3cc(0x11f)),null):_0x250e30[_0x13c3cc(0x1bf)];}[_0x1858dd(0x214)](_0x190da6,_0x544673){const _0x32ac3c=_0x1858dd,_0x5decc9=_0x5efda0(this[_0x32ac3c(0x151)]),{reply:_0x129162,interaction:_0x1d0324}=this[_0x32ac3c(0x137)](_0x190da6),_0x374c77=_0x129162[_0x32ac3c(0x199)][_0x32ac3c(0xd9)](_0x17874=>_0x32ac3c(0x183)==_0x17874[_0x32ac3c(0x170)]),_0xb18853=_0x374c77[_0x32ac3c(0x229)](_0x3019aa=>_0x129162[_0x32ac3c(0x199)][_0x32ac3c(0x14b)](_0x3019aa));void 0x0===_0x544673&&(_0x544673=_0xb18853[0x0]);const _0x308354=_0xb18853[_0x32ac3c(0x14b)](_0x544673);if(-0x1==_0x308354)return null;const _0x26410e=_0x374c77[_0x308354],_0x27a03e=new _0x5573d5([]),_0x5b5481=new _0x5573d5([]);for(const _0x5833c9 of _0x26410e[_0x32ac3c(0xd6)])if(_0x32ac3c(0x104)!=_0x5833c9[_0x32ac3c(0x126)]&&_0x5b5481[_0x32ac3c(0xf2)][_0x32ac3c(0x1dd)](_0x5833c9[_0x32ac3c(0x1b6)][_0x32ac3c(0x1f8)](!0x0)),_0x32ac3c(0x20d)!=_0x5833c9[_0x32ac3c(0x126)]){const _0x38f192=_0x28410a(_0x2d47e6=>_0x59e1d5(_0x2d47e6,_0x32ac3c(0x1f9))==_0x5833c9['id'],_0x129162[_0x32ac3c(0x129)],!0x0);_0x27a03e[_0x32ac3c(0xf2)][_0x32ac3c(0x1dd)](_0x38f192[_0x32ac3c(0x1f8)](!0x0));}if(0x0==_0x27a03e[_0x32ac3c(0xf2)][_0x32ac3c(0x1e9)]){if(_0x26410e[_0x32ac3c(0xd6)][0x0][_0x32ac3c(0x117)]){const _0x33afce=_0x27c6fa(_0x32ac3c(0x1f9),_0x26410e[_0x32ac3c(0xd6)][0x0][_0x32ac3c(0x117)],_0x129162[_0x32ac3c(0x129)]);_0x27a03e[_0x32ac3c(0xf2)][_0x32ac3c(0x114)](_0x33afce[_0x32ac3c(0x1f8)](!0x0)),_0x5b5481[_0x32ac3c(0xf2)][_0x32ac3c(0x114)](_0x33afce[_0x32ac3c(0x1f8)](!0x0)),_0x33afce[_0x32ac3c(0x168)]&&(_0x27a03e[_0x32ac3c(0xf2)][_0x32ac3c(0x1dd)](_0x33afce[_0x32ac3c(0x168)][_0x32ac3c(0x1f8)](!0x0)),_0x5b5481[_0x32ac3c(0xf2)][_0x32ac3c(0x1dd)](_0x33afce[_0x32ac3c(0x168)][_0x32ac3c(0x1f8)](!0x0)));}else{const _0x4bcd6f=_0x129162[_0x32ac3c(0x129)][_0x32ac3c(0xf2)][0x0];if(!_0x4bcd6f)return null;_0x27a03e[_0x32ac3c(0xf2)][_0x32ac3c(0x1dd)](_0x4bcd6f[_0x32ac3c(0x1f8)](!0x0)),_0x5b5481[_0x32ac3c(0xf2)][_0x32ac3c(0x1dd)](_0x4bcd6f[_0x32ac3c(0x1f8)](!0x0));}}const _0x2cf6cb=_0x1d0324[_0x32ac3c(0x145)](),_0x328e74=_0x5decc9[_0x32ac3c(0x111)][_0x32ac3c(0x248)](_0x2cf6cb[_0x32ac3c(0x23d)]),_0xf309f3=_0x448488(_0x27a03e),_0x389259=_0x5decc9[_0x32ac3c(0x111)][_0x32ac3c(0x248)](_0xf309f3),_0x3db5a1=_0x5decc9[_0x32ac3c(0x111)][_0x32ac3c(0x248)](_0xf309f3),_0x415810=_0x5decc9[_0x32ac3c(0x242)][_0x32ac3c(0x13f)](_0x389259,0x0),_0x1e86c2=_0x448488(_0x5b5481),_0x12afe4={'anchor':_0x415810,'markDeletions':!0x1},_0x60566f=_0x5decc9[_0x32ac3c(0x15f)][_0x32ac3c(0x1bd)](_0x503be0)[_0x32ac3c(0x19d)](_0xf309f3,_0x1e86c2,_0x12afe4)[_0x32ac3c(0x197)]();if(!_0x60566f[_0x32ac3c(0x1e9)])return null;_0x5decc9[_0x32ac3c(0x242)][_0x32ac3c(0x25b)](_0x152de1=>{const _0x1bd9d3=_0x32ac3c;for(const _0x135a95 of _0x60566f)if(_0x1bd9d3(0x239)==_0x135a95[_0x1bd9d3(0x126)]){const _0x1cffe4=_0x135a95[_0x1bd9d3(0x178)],_0x50e405=_0x135a95[_0x1bd9d3(0xe5)],_0x45f27c=new _0x5832fc(_0x1cffe4,_0x50e405);_0x152de1[_0x1bd9d3(0xec)][_0x1bd9d3(0x1cc)](_0x45f27c),_0x5decc9[_0x1bd9d3(0x242)][_0x1bd9d3(0x115)](_0x45f27c);}else _0x1bd9d3(0x11b)!==_0x135a95[_0x1bd9d3(0x126)]&&(_0x135a95[_0x1bd9d3(0x259)]=null,_0x135a95[_0x1bd9d3(0x10d)]=!0x1,_0x152de1[_0x1bd9d3(0xec)][_0x1bd9d3(0x1cc)](_0x135a95),_0x5decc9[_0x1bd9d3(0x242)][_0x1bd9d3(0x115)](_0x135a95));});const _0x266993=_0x44f6e2(_0x5decc9,_0x60566f,_0x389259);_0x1646cf(_0x5decc9[_0x32ac3c(0x242)],_0x266993);const _0x4884cc=_0x266993[_0x32ac3c(0x1a8)]()[_0x32ac3c(0x12b)][_0x32ac3c(0x1cb)][_0x32ac3c(0x16d)](),_0x45c534=_0x266993[_0x32ac3c(0x1a8)]()[_0x32ac3c(0x19c)][_0x32ac3c(0x1cb)][_0x32ac3c(0x16d)](),_0x57c69d=[];let _0x422215=_0x389259,_0x33b0e6=_0x3db5a1;for(let _0x24c122=0x0;_0x24c122<_0x45c534[_0x32ac3c(0x1e9)];_0x24c122++){const _0x458e85=_0x422215[_0x32ac3c(0xfe)]-_0x45c534[_0x24c122];_0x57c69d[_0x24c122]=_0x33b0e6[_0x32ac3c(0xfe)]-_0x458e85,_0x422215=_0x422215[_0x32ac3c(0x133)](_0x45c534[_0x24c122]),_0x33b0e6=_0x33b0e6[_0x32ac3c(0x133)](_0x57c69d[_0x24c122]);}const _0x2799b7=_0x5decc9[_0x32ac3c(0x242)][_0x32ac3c(0x1c8)](_0x5decc9[_0x32ac3c(0x242)][_0x32ac3c(0x1f0)](_0x3db5a1,_0x4884cc),_0x5decc9[_0x32ac3c(0x242)][_0x32ac3c(0x1f0)](_0x3db5a1,_0x57c69d)),_0x36baa6=_0x3db5a1[_0x32ac3c(0x173)](0x0)[_0x32ac3c(0x17a)](_0x543aba),_0x388e62=Array[_0x32ac3c(0x167)](_0x328e74[_0x32ac3c(0x124)]())[_0x32ac3c(0x241)](_0x52ef7d=>_0x52ef7d[_0x32ac3c(0x17a)](_0x543aba)==_0x36baa6)[_0x32ac3c(0x21f)](),_0x2a7fa8=_0x2799b7[_0x32ac3c(0x12b)][_0x32ac3c(0x1cb)][_0x32ac3c(0x16d)](),_0x147663=_0x2799b7[_0x32ac3c(0x19c)][_0x32ac3c(0x1cb)][_0x32ac3c(0x16d)]();_0x2a7fa8[0x0]=_0x388e62[0x0]+_0x2a7fa8[0x0],_0x147663[0x0]=_0x388e62[0x0]+_0x147663[0x0];let _0x62f6a8=_0x5decc9[_0x32ac3c(0x242)][_0x32ac3c(0x1c8)](_0x5decc9[_0x32ac3c(0x242)][_0x32ac3c(0x1f0)](_0x5decc9[_0x32ac3c(0x242)][_0x32ac3c(0x175)][_0x32ac3c(0x13b)](),_0x2a7fa8),_0x5decc9[_0x32ac3c(0x242)][_0x32ac3c(0x1f0)](_0x5decc9[_0x32ac3c(0x242)][_0x32ac3c(0x175)][_0x32ac3c(0x13b)](),_0x147663));const _0x222413=_0x5decc9[_0x32ac3c(0x242)][_0x32ac3c(0x175)][_0x32ac3c(0x202)][_0x32ac3c(0x197)](_0x2cf6cb[_0x32ac3c(0x1e1)]);for(const _0x39f071 of _0x222413)_0x62f6a8=_0x146edd[_0x32ac3c(0x1f4)](_0x62f6a8[_0x32ac3c(0x1f3)](_0x39f071));return{'range':_0x62f6a8,'currentIndex':_0x544673};}[_0x1858dd(0x20a)](_0xe4be25){const _0x3be595=_0x1858dd;if(!_0xe4be25[_0x3be595(0x15f)][_0x3be595(0x174)](_0x3be595(0x142)))return;const _0x57466=_0xe4be25[_0x3be595(0x1c4)][_0x3be595(0x1bd)](_0x3be595(0x16e)),_0x3031ef=_0xe4be25[_0x3be595(0x1c4)][_0x3be595(0x1bd)](_0x3be595(0x203));this[_0x3be595(0x1e5)](_0x57466,_0x3be595(0x156),(_0x462f22,_0x33cb0c,_0x173b27)=>{const _0x106418=_0x3be595,_0xffbd7e=this[_0x106418(0x11e)][_0x106418(0x1bd)](_0x33cb0c);if(!_0xffbd7e)return;const _0x52f212=this[_0x106418(0x1bb)][_0x106418(0x109)](_0xffbd7e[_0x106418(0x1b1)])[_0x106418(0x230)](_0xffbd7e[_0x106418(0x1a5)]);_0xffbd7e[_0x106418(0x1a4)][_0x106418(0x1c7)](_0x2c4181=>_0x52f212[_0x106418(0x1ac)](_0x2c4181,_0x106418(0x183))),this[_0x106418(0x11e)][_0x106418(0x1e4)](_0x33cb0c),this[_0x106418(0x11e)][_0x106418(0x24a)](_0x173b27,_0xffbd7e);}),this[_0x3be595(0x1e5)](_0x3031ef,_0x3be595(0x156),(_0x3c5f80,_0x2028e3,_0x3929c7)=>{const _0x5d735f=_0x3be595,_0xc5d6e4=this[_0x5d735f(0x11e)][_0x5d735f(0x1bd)](_0x2028e3);if(!_0xc5d6e4)return;const _0xc0d2cd=this[_0x5d735f(0x1bb)][_0x5d735f(0x109)](_0xc5d6e4[_0x5d735f(0x1b1)])[_0x5d735f(0x230)](_0xc5d6e4[_0x5d735f(0x1a5)]);_0xc5d6e4[_0x5d735f(0x1a4)][_0x5d735f(0x1c7)](_0x1e795a=>_0xc0d2cd[_0x5d735f(0x1ac)](_0x1e795a,_0x5d735f(0x1af))),this[_0x5d735f(0x11e)][_0x5d735f(0x1e4)](_0x2028e3),this[_0x5d735f(0x11e)][_0x5d735f(0x24a)](_0x3929c7,_0xc5d6e4);});}async[_0x1858dd(0x110)](_0x1bf12f){const _0x17bfaf=_0x1858dd;this[_0x17bfaf(0x151)][_0x17bfaf(0x15f)][_0x17bfaf(0x174)](_0x17bfaf(0xeb))&&this[_0x17bfaf(0x151)][_0x17bfaf(0x15f)][_0x17bfaf(0x1bd)](_0x17bfaf(0xeb))[_0x17bfaf(0x1c1)](),(this[_0x17bfaf(0x151)][_0x17bfaf(0x15f)][_0x17bfaf(0x1bd)](_0xbdfbbe)[_0x17bfaf(0x1a2)][_0x17bfaf(0x1b8)](_0x17bfaf(0x223)),this[_0x17bfaf(0x1aa)][_0x17bfaf(0xff)](_0x17bfaf(0x1d3)),this[_0x17bfaf(0x1aa)][_0x17bfaf(0xd1)](!0x0),await this[_0x17bfaf(0x1a3)]());try{await this[_0x17bfaf(0x226)][_0x17bfaf(0xe0)](_0x1bf12f)[_0x17bfaf(0x15a)](),await this[_0x17bfaf(0x1ad)](_0x1bf12f),this[_0x17bfaf(0x165)]('\x20'),await this[_0x17bfaf(0x1bb)][_0x17bfaf(0x15c)](_0x1bf12f,this[_0x17bfaf(0xdf)][_0x17bfaf(0xdd)]),this[_0x17bfaf(0x1bb)][_0x17bfaf(0x252)]()&&this[_0x17bfaf(0x23b)]();}catch(_0x3194ff){this[_0x17bfaf(0x1aa)][_0x17bfaf(0x135)]({'errorMessage':_0x3acc4b(this[_0x17bfaf(0x151)][_0x17bfaf(0xf4)],_0x17bfaf(0x1b3)),'id':_0x1bf12f}),this[_0x17bfaf(0x12f)](new _0x58385f(_0x17bfaf(0xee),this,{'error':_0x3194ff}));}finally{this[_0x17bfaf(0x1aa)][_0x17bfaf(0x148)](),this[_0x17bfaf(0x1aa)][_0x17bfaf(0xff)](_0x17bfaf(0x13c)),this[_0x17bfaf(0x1aa)][_0x17bfaf(0xd1)](!0x1);}}async[_0x1858dd(0x218)](){const _0x16fa86=_0x1858dd,_0x4be18d=this[_0x16fa86(0x226)][_0x16fa86(0x119)](this[_0x16fa86(0x193)](),{'limit':0x1,'sortBy':_0x16fa86(0x22b)});try{const _0x2da99b=await _0x4be18d[_0x16fa86(0x207)]();return _0x2da99b[_0x16fa86(0x1e9)]?_0x2da99b[0x0]['id']:_0x16fa86(0x20d);}catch(_0x21b45c){return this[_0x16fa86(0x1aa)][_0x16fa86(0x135)]({'errorMessage':_0x3acc4b(this[_0x16fa86(0x151)][_0x16fa86(0xf4)],_0x16fa86(0x1b3)),'id':_0x989407()}),this[_0x16fa86(0x12f)](new _0x58385f(_0x16fa86(0x163),this,{'error':_0x21b45c})),this[_0x16fa86(0x1aa)][_0x16fa86(0xd1)](!0x1),this[_0x16fa86(0x1aa)][_0x16fa86(0x196)](),null;}}[_0x1858dd(0x23a)](_0x55f6d7){const _0x3ebac3=_0x1858dd;this[_0x3ebac3(0x1bb)]['id']===_0x55f6d7&&this[_0x3ebac3(0x1ad)]();}[_0x1858dd(0x23b)](){const _0x40c591=_0x1858dd;this[_0x40c591(0x1bb)]?.[_0x40c591(0x1fe)](_0x3acc4b(this[_0x40c591(0x151)][_0x40c591(0xf4)],_0x40c591(0x103)));}async[_0x1858dd(0x15d)](){const _0x2fbb62=_0x1858dd,_0x3446fb=this[_0x2fbb62(0xdf)][_0x2fbb62(0x189)]();this[_0x2fbb62(0x1bb)]?.[_0x2fbb62(0x1ef)](_0x3446fb),this[_0x2fbb62(0x23b)]();}[_0x1858dd(0x149)](){const _0x39af6f=_0x1858dd;this[_0x39af6f(0x1bb)]?.[_0x39af6f(0x10a)]();}[_0x1858dd(0x1d2)](){const _0x2e0a36=_0x1858dd;this[_0x2e0a36(0x1aa)][_0x2e0a36(0x1d2)]();}async[_0x1858dd(0x245)](){const _0x1113ce=_0x1858dd;await this[_0x1113ce(0x1ad)]();}async[_0x1858dd(0x14d)]({message:_0x27acf3,attributes:_0x452539}){const _0x12707e=_0x1858dd;await this[_0x12707e(0xfc)]({'userMessage':_0x27acf3,'attributes':_0x452539});}[_0x1858dd(0x193)](){const _0x458c65=_0x1858dd,_0x515b5d=this[_0x458c65(0x151)][_0x458c65(0x1a0)][_0x458c65(0x1bd)](_0x458c65(0x1d4));if(!_0x515b5d)throw new _0x58385f(_0x458c65(0x23e),this);return _0x515b5d;}async[_0x1858dd(0x1ad)](_0x5ab6a3){const _0x1ff9f6=_0x1858dd;try{this[_0x1ff9f6(0x1aa)][_0x1ff9f6(0x1a1)](),await this[_0x1ff9f6(0x1ea)](_0x5ab6a3);}catch(_0x242eff){this[_0x1ff9f6(0x1aa)][_0x1ff9f6(0x135)]({'errorMessage':_0x3acc4b(this[_0x1ff9f6(0x151)][_0x1ff9f6(0xf4)],_0x1ff9f6(0x253)),'id':_0x5ab6a3||_0x989407()}),console[_0x1ff9f6(0x121)](_0x242eff),this[_0x1ff9f6(0x1bb)]=void 0x0,this[_0x1ff9f6(0x1aa)][_0x1ff9f6(0x196)]();}}async[_0x1858dd(0x1ea)](_0x21d968){const _0x2ae7b6=_0x1858dd;let _0x293c1c;this[_0x2ae7b6(0x151)][_0x2ae7b6(0x15f)][_0x2ae7b6(0x174)](_0x2ae7b6(0xeb))&&this[_0x2ae7b6(0x151)][_0x2ae7b6(0x15f)][_0x2ae7b6(0x1bd)](_0x2ae7b6(0xeb))[_0x2ae7b6(0x1c1)](),_0x21d968||!this[_0x2ae7b6(0x1bb)]?_0x293c1c=this[_0x2ae7b6(0x151)][_0x2ae7b6(0x1a0)][_0x2ae7b6(0x1bd)](_0x2ae7b6(0x14a)):this[_0x2ae7b6(0x1aa)][_0x2ae7b6(0x217)]&&(_0x293c1c=this[_0x2ae7b6(0x1bb)][_0x2ae7b6(0x14e)]['id']),await this[_0x2ae7b6(0x1a3)]();const _0x6e2f31=this[_0x2ae7b6(0x193)](),_0xd14718=_0x21d968||_0x989407();this[_0x2ae7b6(0x1bb)]=new _0x12c3c9({'connector':this[_0x2ae7b6(0x226)],'chatModels':this[_0x2ae7b6(0x128)],'selectedModelId':_0x293c1c,'conversationId':_0xd14718,'group':_0x6e2f31,'getEditor':()=>_0x5efda0(this[_0x2ae7b6(0x151)]),'isFromHistory':!!_0x21d968}),this[_0x2ae7b6(0x1bb)][_0x2ae7b6(0xdb)](_0x2ae7b6(0x1b7),_0x2ae7b6(0x192))['to'](this),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x106),(_0x2e395b,_0x4b7d5d)=>{const _0x500a5d=_0x2ae7b6;this[_0x500a5d(0x1aa)][_0x500a5d(0x16c)](_0x4b7d5d),this[_0x500a5d(0x1aa)][_0x500a5d(0x130)](),this[_0x500a5d(0x1aa)][_0x500a5d(0x236)](),this[_0x500a5d(0x1aa)][_0x500a5d(0x208)](),_0x21d968||(this[_0x500a5d(0x1aa)][_0x500a5d(0x209)](),this[_0x500a5d(0x23b)]());}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0xfb),(_0x221a84,_0x253119)=>{const _0x383a6a=_0x2ae7b6;this[_0x383a6a(0x1aa)][_0x383a6a(0x10f)](_0x253119[_0x383a6a(0x10b)]);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x19f),(_0x2b913f,_0x14c5be)=>{const _0x33640d=_0x2ae7b6;this[_0x33640d(0x1aa)][_0x33640d(0x162)](_0x14c5be);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0xd8),()=>{const _0x10d617=_0x2ae7b6,_0x2ba57a=this[_0x10d617(0x1aa)][_0x10d617(0x21c)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x10d617(0x1aa)][_0x10d617(0x238)](_0x2ba57a);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x12c),()=>{const _0x26010d=_0x2ae7b6,_0x2fb50b=this[_0x26010d(0x1aa)][_0x26010d(0x21c)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x26010d(0x1aa)][_0x26010d(0x238)](_0x2fb50b);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x11d),(_0x2b364a,_0x149613)=>{const _0x3b96fb=_0x2ae7b6;this[_0x3b96fb(0x1aa)][_0x3b96fb(0x108)](_0x149613,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x12e),(_0x2802af,_0x3b54dc)=>{const _0x5b0560=_0x2ae7b6;this[_0x5b0560(0x1aa)][_0x5b0560(0x108)](_0x3b54dc,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x192),()=>{const _0x5b98fc=_0x2ae7b6;this[_0x5b98fc(0x1aa)][_0x5b98fc(0x219)]();}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x1be),async()=>{const _0x31f045=_0x2ae7b6;await this[_0x31f045(0x1aa)][_0x31f045(0x1ed)]();}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x224),(_0x4cc75a,_0x41c854)=>{const _0x105e8a=_0x2ae7b6;this[_0x105e8a(0x1aa)][_0x105e8a(0x16b)](_0x41c854['id']);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x166),(_0x22610c,_0xbab44,_0x379d20)=>{const _0x5976e7=_0x2ae7b6;this[_0x5976e7(0x165)](_0xbab44,_0x379d20);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0xf0),(_0x296e02,_0x2553ea)=>{const _0x327229=_0x2ae7b6;_0x327229(0x102)===_0x2553ea[_0x327229(0x126)]?this[_0x327229(0x1aa)][_0x327229(0x12d)](_0x2553ea):this[_0x327229(0x1aa)][_0x327229(0x227)](_0x2553ea);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x100),async(_0x23c900,_0x454d84)=>{const _0xa484c6=_0x2ae7b6;await this[_0xa484c6(0x17b)]({'reply':_0x454d84});}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x1d8),(_0x274607,{reply:_0xb99884,index:_0x23a55f,state:_0x23e432})=>{const _0x2a0903=_0x2ae7b6;this[_0x2a0903(0x1aa)][_0x2a0903(0x233)]({'id':_0xb99884['id'],'index':_0x23a55f,'state':_0x23e432}),this[_0x2a0903(0x231)]?.[_0x2a0903(0x1a5)][_0x2a0903(0xde)](_0xb99884['id'])&&this[_0x2a0903(0x231)]?.[_0x2a0903(0x215)]==_0x23a55f&&this[_0x2a0903(0x17f)]?.[_0x2a0903(0x1eb)](_0x23e432);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x13d),(_0x523a0b,_0x23b54d)=>{const _0x29d9df=_0x2ae7b6;if(this[_0x29d9df(0x1aa)][_0x29d9df(0x1e3)](_0x23b54d[_0x29d9df(0x213)],_0x23b54d[_0x29d9df(0x210)]),_0x29d9df(0x131)===_0x23b54d[_0x29d9df(0x213)][_0x29d9df(0x126)]){const _0x58d6d7=[..._0x5efda0(this[_0x29d9df(0x151)])[_0x29d9df(0x242)][_0x29d9df(0x175)][_0x29d9df(0x131)][_0x29d9df(0x187)]()];this[_0x29d9df(0xdf)][_0x29d9df(0x1d7)](_0x58d6d7,_0x29d9df(0x181)+this[_0x29d9df(0x1bb)]?.['id']);}}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x20c),(_0x2b6b94,_0x3636c6)=>{const _0x1f79d7=_0x2ae7b6;this[_0x1f79d7(0x1aa)][_0x1f79d7(0x24e)](_0x3636c6[_0x1f79d7(0x1c3)]),_0x1f79d7(0x250)==_0x3636c6[_0x1f79d7(0x1c3)]&&this[_0x1f79d7(0x149)](),_0x1f79d7(0x131)===_0x3636c6[_0x1f79d7(0x126)]&&this[_0x1f79d7(0xdf)][_0x1f79d7(0x22d)](_0x1f79d7(0x181)+this[_0x1f79d7(0x1bb)]?.['id']);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x235),(_0x59d8a4,_0x652774)=>{const _0x33a2a9=_0x2ae7b6;this[_0x33a2a9(0x1aa)][_0x33a2a9(0x147)](_0x652774[_0x33a2a9(0x213)][_0x33a2a9(0x1c3)],_0x652774[_0x33a2a9(0x210)]);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x212),(_0x96d36e,_0x25d4ec)=>{const _0x524a42=_0x2ae7b6;this[_0x524a42(0x1aa)][_0x524a42(0x141)](_0x25d4ec[_0x524a42(0xea)]);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0xed),(_0x210c24,_0xb64d3e)=>{const _0x4f5841=_0x2ae7b6;this[_0x4f5841(0x1aa)][_0x4f5841(0x251)](_0xb64d3e[_0x4f5841(0x105)]);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x194),(_0x1863c2,_0x4859e1)=>{const _0x243c18=_0x2ae7b6;this[_0x243c18(0x1aa)][_0x243c18(0x17d)](_0x4859e1[_0x243c18(0x132)],_0x4859e1[_0x243c18(0x10e)],_0x4859e1[_0x243c18(0x19a)],_0x4859e1[_0x243c18(0x144)]);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x228),(_0x31b3b6,_0x383330)=>{const _0x89c0c5=_0x2ae7b6;this[_0x89c0c5(0x1aa)][_0x89c0c5(0x1ce)](_0x383330[_0x89c0c5(0x132)],_0x383330[_0x89c0c5(0x205)],_0x383330[_0x89c0c5(0x101)]);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x1e6),(_0x31ea1f,_0x36df34)=>{const _0x3d97f4=_0x2ae7b6;this[_0x3d97f4(0x1aa)][_0x3d97f4(0x21a)](_0x36df34);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x1fd),async(_0x2a4144,_0x415bf0)=>{const _0x475367=_0x2ae7b6,_0x590c83=(await this[_0x475367(0x128)][_0x475367(0x1c0)]())[_0x475367(0x241)](_0x1731cc=>_0x1731cc['id']===_0x415bf0[_0x475367(0x14e)]?.['id'])||null;this[_0x475367(0x1aa)][_0x475367(0x1ff)](_0x590c83,_0x415bf0[_0x475367(0x13e)]);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x121),(_0x54d22e,{error:_0x7bff33,interactionId:_0x437e96,fileName:_0x4c80ad,url:_0x501999,sourceId:_0x21e6e0,sourceLabel:_0x1a7c54})=>{const _0x34b04a=_0x2ae7b6,_0x11a3c6=_0x437e96?_0x437e96+':'+_0x989407():_0x989407();_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0x237))?this[_0x34b04a(0x1aa)][_0x34b04a(0x136)]({'staticMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0x1d9)),'id':_0x11a3c6}):_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0x163))||_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0x190))?(this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0x253)),'id':_0x11a3c6}),this[_0x34b04a(0x12f)](_0x7bff33)):_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0x150))?this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0x159),_0x4c80ad),'id':_0x11a3c6}):_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0x160))?this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0xd4),_0x501999),'id':_0x11a3c6}):_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0x1b2))?this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0x1fa)),'id':_0x11a3c6}):_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0x191))?this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0x18f)),'id':_0x11a3c6}):_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0xe1))?(_0x21e6e0&&this[_0x34b04a(0x1aa)][_0x34b04a(0x216)](_0x21e6e0),this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0x22f),_0x1a7c54||_0x34b04a(0x10e)),'id':_0x11a3c6}),this[_0x34b04a(0x12f)](_0x7bff33)):_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0x1ca))?(this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0x24f)),'id':_0x11a3c6}),this[_0x34b04a(0x12f)](_0x7bff33)):_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0xe2))?(this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0x1f6)),'id':_0x11a3c6}),this[_0x34b04a(0x12f)](_0x7bff33)):_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0x240))?(this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0xef)),'id':_0x11a3c6}),this[_0x34b04a(0x12f)](_0x7bff33)):_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0x13a))?(this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0xd3)),'id':_0x11a3c6}),this[_0x34b04a(0x12f)](_0x7bff33)):_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0x112))?(this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0x157)),'id':_0x11a3c6}),this[_0x34b04a(0x12f)](_0x7bff33)):_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0x1b9))?(this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0xfd)),'id':_0x11a3c6}),this[_0x34b04a(0x12f)](_0x7bff33)):(this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0x20b)),'id':_0x11a3c6}),this[_0x34b04a(0x12f)](_0x7bff33));}),await this[_0x2ae7b6(0x1bb)][_0x2ae7b6(0x18c)](this[_0x2ae7b6(0x151)][_0x2ae7b6(0x1a0)][_0x2ae7b6(0x1bd)](_0x2ae7b6(0x18b))),_0x21d968||await this[_0x2ae7b6(0x1bb)][_0x2ae7b6(0x12b)]();}async[_0x1858dd(0xfc)]({userMessage:_0x1286a0,attributes:_0xa13516}){const _0x294604=_0x1858dd;if(!this[_0x294604(0x1bb)])throw new _0x58385f(_0x294604(0x234));if(this[_0x294604(0x1bb)][_0x294604(0xf1)]()){const _0x493df6=await this[_0x294604(0xdf)][_0x294604(0x20f)]();await this[_0x294604(0x1bb)][_0x294604(0x169)](_0x493df6);}this[_0x294604(0x1bb)]['id']&&this[_0x294604(0x1bb)][_0x294604(0x1d5)]&&await this[_0x294604(0x1bb)][_0x294604(0xf5)]({'userMessage':_0x1286a0,'attributes':_0xa13516});}[_0x1858dd(0x1e0)](){const _0x49aad4=_0x1858dd;console[_0x49aad4(0x15b)](_0x49aad4(0x113));}[_0x1858dd(0x24c)](_0x4837b8){const _0x552cf7=_0x1858dd;this[_0x552cf7(0x1aa)][_0x552cf7(0x180)](_0x4837b8);}[_0x1858dd(0x12f)](_0x1aca72){const _0xf34477=_0x1858dd;_0x233dba(_0x1aca72[_0xf34477(0x25a)]);}[_0x1858dd(0x116)](_0x49195c){const _0x2e80bb=_0x1858dd;this[_0x2e80bb(0x1bb)]?.[_0x2e80bb(0x24d)](_0x49195c);}[_0x1858dd(0xe8)](){const _0x5639f5=_0x1858dd;this[_0x5639f5(0x1bb)]?.[_0x5639f5(0xf9)]();}[_0x1858dd(0x1de)](){const _0x6caad7=_0x1858dd;this[_0x6caad7(0x1bb)]?.[_0x6caad7(0xe6)]();}[_0x1858dd(0x137)](_0x55f2e3){const _0x44a6bb=_0x1858dd,[_0x1b59e9,_0x5b4cba]=_0x55f2e3[_0x44a6bb(0x16f)](':'),_0x691df2=this[_0x44a6bb(0x1bb)][_0x44a6bb(0x109)](_0x1b59e9),_0x101889=_0x691df2[_0x44a6bb(0x230)](_0x5b4cba);return{'interaction':_0x691df2,'reply':_0x101889};}[_0x1858dd(0x243)](_0x29231a,_0x32b0e4=!0x1){const _0x5c548b=_0x1858dd,_0x1ef644=_0x5efda0(this[_0x5c548b(0x151)]),_0x4eca02={'target':_0x1ef644[_0x5c548b(0x10c)][_0x5c548b(0x1a2)][_0x5c548b(0xe9)][_0x5c548b(0x1f2)](_0x1ef644[_0x5c548b(0x10c)][_0x5c548b(0x15e)][_0x5c548b(0x1fc)](_0x29231a)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x32b0e4};_0x32b0e4&&(_0x4eca02[_0x5c548b(0x1d0)]=!0x0),_0x531395(_0x4eca02);}[_0x1858dd(0x165)](_0x9bfdb6,_0x4912dc=!0x1){const _0x3c0764=_0x1858dd;this[_0x3c0764(0x1aa)][_0x3c0764(0x166)](_0x9bfdb6||_0x3acc4b(this[_0x3c0764(0x151)][_0x3c0764(0xf4)],_0x3c0764(0x220)),_0x4912dc);}async[_0x1858dd(0x17b)]({reply:_0x466fbf,renderingStrategy:_0x1720d8}){const _0x5b1037=_0x1858dd,{id:_0x14bfca,interactionId:_0x33fa00,isDone:_0x21c8bb,type:_0x296a16,parsedContent:_0x5c70ae}=_0x466fbf,_0x55d7af=_0x33fa00+':'+_0x14bfca;if(_0x5b1037(0x14f)===_0x296a16){const _0xd92465=_0x466fbf[_0x5b1037(0x1a7)]({'showDiff':this[_0x5b1037(0x1aa)][_0x5b1037(0xe3)]});await this[_0x5b1037(0x1aa)][_0x5b1037(0x22a)]({'id':_0x55d7af,'parts':_0xd92465,'renderingStrategy':_0x1720d8,'isDone':_0x21c8bb});}else _0x5b1037(0x102)===_0x296a16&&await this[_0x5b1037(0x1aa)][_0x5b1037(0x206)]({'id':_0x55d7af,'parsedContent':_0x5c70ae,'renderingStrategy':_0x1720d8,'isDone':_0x21c8bb});_0x21c8bb&&_0x466fbf[_0x5b1037(0x20e)][_0x5b1037(0x1e9)]>0x0&&this[_0x5b1037(0x1aa)][_0x5b1037(0x11c)](_0x55d7af,_0x466fbf[_0x5b1037(0x20e)]);}async[_0x1858dd(0x1a3)](){const _0x94f95d=_0x1858dd,_0x1bdd07=this[_0x94f95d(0x1bb)]?.[_0x94f95d(0x123)];_0x1bdd07&&(_0x1bdd07[_0x94f95d(0xfa)](),this[_0x94f95d(0x1aa)][_0x94f95d(0x256)](_0x1bdd07));}async[_0x1858dd(0x1f1)](){const _0x652849=_0x1858dd,_0x3f4843=this[_0x652849(0x1bb)]?.[_0x652849(0x123)];if(_0x3f4843){for await(const _0x243d93 of _0x3f4843[_0x652849(0x1b0)])await this[_0x652849(0x17b)]({'reply':_0x243d93,'renderingStrategy':_0x652849(0x1d3)});}}[_0x1858dd(0x1c9)](_0x53a51e){const _0x2baeae=_0x1858dd,_0x4ba04f={'positiveCount':_0x53a51e[_0x2baeae(0x199)][_0x2baeae(0xd9)](_0x2bef01=>_0x2baeae(0x1af)===_0x2bef01[_0x2baeae(0x170)])[_0x2baeae(0x1e9)],'totalCount':_0x53a51e[_0x2baeae(0x199)][_0x2baeae(0x1e9)],'modificationId':_0x53a51e['id']},_0x4a5ee5=this[_0x2baeae(0x1bb)][_0x2baeae(0x109)](_0x53a51e[_0x2baeae(0x1b1)])[_0x2baeae(0xda)];_0x4a5ee5&&this[_0x2baeae(0x226)][_0x2baeae(0x143)](this[_0x2baeae(0x1bb)]['id'],_0x4a5ee5,_0x4ba04f);}[_0x1858dd(0x1f5)](_0x3bedf3){const _0x4d2791=_0x1858dd;let _0x1f1654=null,_0x3c1461=null;this['on'](_0x4d2791(0x1b7),(_0x5cdcf9,_0x40aa2d,_0x5c76a9)=>{const _0x215fad=_0x4d2791;_0x5c76a9['id']!==_0x1f1654&&(_0x1f1654=_0x5c76a9['id'],_0x3c1461=this[_0x215fad(0x1df)](_0x5c76a9)),_0x3bedf3(_0x40aa2d,_0x3c1461);});}[_0x1858dd(0x1df)](_0x338375){const _0x12ac07=_0x1858dd,_0x35ad65=this[_0x12ac07(0x1aa)],_0x441d23=()=>{const _0x9d267d=_0x12ac07;_0x338375[_0x9d267d(0x185)](),_0x338375[_0x9d267d(0x22c)](),_0x35ad65[_0x9d267d(0x1dc)]();},_0x495654=()=>{const _0x456aaf=_0x12ac07;_0x338375[_0x456aaf(0xd7)]&&(_0x338375[_0x456aaf(0xd7)][_0x456aaf(0x146)](),_0x338375[_0x456aaf(0xd7)]=void 0x0);};return{'insertTextReply':(_0x4a6c67,_0xcfdc37)=>{const _0x5536d5=_0x12ac07;_0x495654(),_0x441d23();const _0x37b947=_0x338375[_0x5536d5(0xd7)]=_0x338375[_0x5536d5(0x1bc)]({'type':_0x5536d5(0x102),'interactionId':_0x338375['id'],'content':_0x4a6c67,'id':_0xcfdc37||_0x989407()});return _0x495654(),_0x37b947;},'insertCustomElement':async(_0x1310e5,_0x40b391)=>(_0x495654(),_0x441d23(),_0x35ad65[_0x12ac07(0x184)](_0x1310e5,_0x40b391||_0x989407())),'setLoadingMessage':_0x3d3023=>{const _0x215d87=_0x12ac07;_0x35ad65[_0x215d87(0x238)](_0x3d3023);},'clearLoadingMessage':()=>{const _0x2182e3=_0x12ac07;_0x35ad65[_0x2182e3(0x1dc)]();}};}}
23
+ const _0x5027f0=_0x1799;(function(_0x526011,_0x3c6c16){const _0x317aaf=_0x1799,_0x14b5a1=_0x526011();while(!![]){try{const _0x349421=parseInt(_0x317aaf(0x29b))/0x1+parseInt(_0x317aaf(0x259))/0x2+parseInt(_0x317aaf(0x30b))/0x3+-parseInt(_0x317aaf(0x2d3))/0x4+-parseInt(_0x317aaf(0x241))/0x5+-parseInt(_0x317aaf(0x2f8))/0x6+-parseInt(_0x317aaf(0x2ab))/0x7*(parseInt(_0x317aaf(0x27b))/0x8);if(_0x349421===_0x3c6c16)break;else _0x14b5a1['push'](_0x14b5a1['shift']());}catch(_0x487909){_0x14b5a1['push'](_0x14b5a1['shift']());}}}(_0x38d9,0x84de5));import{ContextPlugin as _0x236b46,Editor as _0x1e36b8}from'ckeditor5/src/core.js';import{BodyCollection as _0x3f7636}from'ckeditor5/src/ui.js';function _0x38d9(){const _0x5178d3=['mouseLeaveSuggestion','filter','fetchConversation','areActionsDisabled','setFeedItemAIReplySuggestionPartActive','done','callback','changeGroups','ai-chat-invalid-request','_currentPreviewedChangeGroup','text','setIsMaximized','replyContentUpdated','interactionCreated','6272jrfyoO','getAttribute','conversationInitialized','replyCreated','modification','webSearchFinished','contextItemRemoved','resetMessageInput','ai-chat-controller-no-active-conversation','mapper','log','_registerToolDataCallback','replyChangeGroupStateUpdated','uploadProgressChanged','resize','ai.chat.initialConversation','ai-chat-context-unsupported-file-type','prepareLoadingMessage','_aiChatBalloon','replies','_scrollToSuggestionRange','detachFromDom','_aiChatUi','locale','sendMessage','ai-conversation-','marker','lastCreated','maxOffset','isOfficialPlugin','_getDocumentRangeForReplyChanges','loadSourceResources','source','contextItemAdded','populateSourceResourceBalloon','addFeedItemAIReply','uid','interactionId','document','_updateRatings','1873592reAeMd','ai.models.defaultModelId','_toggleWebSearch','index','_toggleReasoning','howMany','_startConversationSafely','updateFeedItemAIReplySources','reasoningFinished','_getUserPresentableContentPartDocumentRange','AI_CHAT_CONTEXT_FILE_TOO_LARGE','createReply','showDiff','ai.models','removeSelectionFromContext','createdAt','parse','ai-chat-context-file-too-many-pages','sources','isUploadInProgress','getChildAtOffset','has','message','addDocumentToContext','unshift','closeSourceResourceBalloon','addUrlToContext','toViewRange','setConversationTitle','updateFeedItemAIReplyContent','setIsUploadInProgress','upsertAIChatRating','map','clearConversationContextUI','options','setAddContextOptions','Disliked\x20response','6211416LcjiPC','AIEditing','ai-chat-file-upload-failed','children','toString','_aiEditing','resetWebSearchState','isPremiumPlugin','open','_applySuggestion','afterInit','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','getGroupId','messageId','updateResourceState','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','commands','_applyOperationsAsSuggestions','change','1789539djsRbr','error','toggleLoadingSkeleton','rejectSuggestion','ai-chat-source-resources-load-failed','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','config','close','interactionFinished','updateFeedItemAIReplySuggestionContent','nextSibling','version','attachToDom','removeFeedInteraction','Showing\x20conversation\x20history...','getTransformedByOperation','stop','from','ai-chat-context-invalid-data','AIChatController','collaboration.channelId','replyId','ai.chat.context','_openBalloonFor','reasoningStarted','query','_getPresentableSiblingContentPartIndex','rejected','interactionDestroyed','ai-chat-resource-load-failed','contextItem','push','resources','getDocumentContext','like','AI_CHAT_UNABLE_TO_START_CONVERSATION','revert','changes','includes','sourcePosition','activeConversation','getInteractionAndReplyById','streaming','getContentParts','add','pluginName','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','insertSuggestion','getRanges','createPositionAt','mouseOverSuggestion','_batchToChanges','toggleReasoning','getPath','next','updateCapabilities','disableControls','AIChatBalloon','node','_handleStartConversation','handleUserInteraction','AI_CHAT_RESOURCE_LOAD_FAILED','startAutoScroll','getInteraction','set','data','fetchConversations','startsWith','clearLoadingMessage','selectedModel','getOperations','selectModel','resizedTabs','outdated','addCurrentDocumentToChatContext','applyOperation','ai-chat-context-form-data-size-limits-exceeded','isStarted','applySuggestion','end','addFeedInteractionHeader','Liked\x20response','updateFeedItemAIReplySuggestionPartState','chat','requires','batch','focusPromptInput','_getAIChatInteractionAPI','load','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','ai-chat-context-unsupported-type','getRoot','resourceStateChanged','removed','delete','model','currentReply','isCurrentDocumentInContext','AI_CHAT_CONTEXT_INVALID_DATA','loadConversation','slice','_removeFromContext','_updateReplyContent','resourceId','toggleWebSearch','setModel','content','getFirstRange','updateCurrentDocumentInContext','AI_CHAT_UNTITLED_CONVERSATION','sourceId','removeSelectionFromChatContext','addFeedItemAISuggestion','hasChanges','abortPromptStream','forEach','modelSelected','bind','addFileToContext','capabilitiesUpdated','_bodyCollection','dialogClosed','_aiConnector','addFeedItemUserMessage','_handleUIUserMessage','documentContextContent','_showConversationHistory','_aiChatBalloonShowDiff','ai-chat-missing-channel-id','delegate','updateContent','_getLastCreatedConversationId','isDisabled','getDiff','DocumentCompare','root','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','editing','cloneNode','selection','ai-chat-context-file-too-large','Undo','isLoading','getReply','ai-chat-controller-mouse-over','alignToTop','updateConversationTitle','context','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','setConversationContext','showNext','_stopLastInteraction','length','aiChatBalloon','createRange','ai-no-track-changes','previous','getConversation','addOperation','start','findIndex','AI_CHAT_INVALID_REQUEST','range','resizeTabs','handleRemovedConversation','setLoadingMessage','viewRangeToDom','anchorId','setSelectedModel','getChild','createConversation','undo','addContextOptionsChanged','main','type','_aiChatModels','getSelectionText','get','removeContextItem','init','ai-chat-conversation-init-failed','uiId','activateTab','setState','AIConnector','TrackChanges','$graveyard','isCurrentDocumentInConversation','addResourceToContext','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','indexOf','editors','2310160FvHeyl','AITabs','pending','toolDataReceived','new','accepted','showFakeVisualSelection','startInteraction','AIChatUI','plugins','setFeedItemRenderingStrategy','resetReasoningState','clearPendingContextUI','contextSent','static','rootName','AI_BALLOON_HEADER_TITLE','enableControls','getDocumentData','scrollFeedToSuggestion','resource','addSelectionToChatContext','redo','view','2107342aDIGQx','isInContext','path','_logError','ai-chat-conversation-not-found','sourceResourcesLoaded','split','ai-chat-conversation-start-failed','_flushLastInteractionUI','sendUserMessage','lastInteraction','data-id','addFilesToContext','_rejectSuggestion','partIndex','_setIsMaximized','setContextItemLoading','contextItems','toggleSuggestionDisplayMode','setChangeGroupState','showChangeInText','addFeedItemCustomElement','TrackChangesEditing','destroy','getChildren','_insertSuggestion','resetConversationTitle','AI_CHAT_GENERIC_ERROR','dislike','find','_createFromRanges','domConverter','isModelAvailable','addContextItem','344ivtTbd','_integrateEditor','addFeedItemStaticMessage','ai-request-aborted','current-document','listenTo','addSelectionToContext','stopInteraction','indexes','ai-chat-url-upload-failed','AI_CHAT_ABORTED_MESSAGE','removeFromContext','webSearchStarted','baseVersion','contextItemLoadingEnded','hideFakeVisualSelection','createPositionFromPath','history','startConversation','isDocumentOperation','addCurrentDocumentToContext','remove','executeCustomItemCallback','finishInteraction','showPrevious','ready','getAll','addFeedItemError','interactionStarted','getConversations','state','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','898239BUozSv','sessionId'];_0x38d9=function(){return _0x5178d3;};return _0x38d9();}import{CKEditorError as _0x1cac1d,logError as _0x5d39d3,scrollViewportToShowTarget as _0x2d5201,uid as _0xc400fc}from'ckeditor5/src/utils.js';function _0x1799(_0x12adca,_0x1e1d81){const _0x38d9be=_0x38d9();return _0x1799=function(_0x17991e,_0x5d25cf){_0x17991e=_0x17991e-0x1a5;let _0x4be4be=_0x38d9be[_0x17991e];return _0x4be4be;},_0x1799(_0x12adca,_0x1e1d81);}import{AIConnector as _0x344017}from'../aicore/aiconnector.js';import{AITabs as _0x620505}from'../aitabs/aitabs.js';import{AIChatConversation as _0x126b86}from'./model/aichatconversation.js';import{getTranslation as _0x4e370c}from'../aicore/utils/common-translations.js';import{AIModels as _0x3404d3}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x22d5bb}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x1b0eca,DATA_ID_MODEL_ATTRIBUTE as _0x213e06}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x4e9a85,getOperationsFromReply as _0x4c9494}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x22d854,getMinimalSelection as _0x2b3d24}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x29ade5,_DetachOperation as _0x568343}from'ckeditor5/src/engine.js';import{findOne as _0x323a6d,getAttribute as _0x68ecf9,serialize as _0x417201,Document as _0x128a28,findByAttribute as _0x25ed47}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x236b46{[_0x5027f0(0x2fd)];[_0x5027f0(0x1fb)];[_0x5027f0(0x2c1)];[_0x5027f0(0x230)];[_0x5027f0(0x2bd)];[_0x5027f0(0x1b4)]=new Map();[_0x5027f0(0x2a6)]=null;[_0x5027f0(0x1f9)];static get[_0x5027f0(0x1d5)](){return[_0x344017,_0x1b0eca];}static get[_0x5027f0(0x1ae)](){const _0x42d8c4=_0x5027f0;return _0x42d8c4(0x31e);}static get[_0x5027f0(0x2c8)](){return!0x0;}static get[_0x5027f0(0x2ff)](){return!0x0;}[_0x5027f0(0x234)](){const _0x19d41e=_0x5027f0;this[_0x19d41e(0x1f9)]=new _0x3f7636(this[_0x19d41e(0x214)][_0x19d41e(0x2c2)]),this[_0x19d41e(0x1f9)][_0x19d41e(0x317)](),this[_0x19d41e(0x1fb)]=this[_0x19d41e(0x214)][_0x19d41e(0x24a)][_0x19d41e(0x232)](_0x19d41e(0x239)),this[_0x19d41e(0x2c1)]=this[_0x19d41e(0x214)][_0x19d41e(0x24a)][_0x19d41e(0x232)](_0x19d41e(0x249)),this[_0x19d41e(0x2fd)]=this[_0x19d41e(0x214)][_0x19d41e(0x24a)][_0x19d41e(0x232)](_0x19d41e(0x2f9)),this[_0x19d41e(0x230)]=new _0x3404d3({'connector':this[_0x19d41e(0x1fb)],'config':this[_0x19d41e(0x214)][_0x19d41e(0x311)][_0x19d41e(0x232)](_0x19d41e(0x2e0)),'locale':this[_0x19d41e(0x214)][_0x19d41e(0x2c2)]});const _0x196ad0=this[_0x19d41e(0x214)][_0x19d41e(0x24a)][_0x19d41e(0x232)](_0x19d41e(0x242));this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x28d),()=>{const _0x2dbabe=_0x19d41e;this[_0x2dbabe(0x2d9)]();}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x262),(_0x52f359,_0x4125e0)=>{const _0x6a6648=_0x19d41e;this[_0x6a6648(0x1fd)]({'userMessage':_0x4125e0});}),this[_0x19d41e(0x280)](_0x196ad0,_0x19d41e(0x1c9),(_0x157569,_0x21d333)=>{const _0x52d66c=_0x19d41e;this[_0x52d66c(0x268)](_0x21d333);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x224),()=>{const _0x514c06=_0x19d41e;_0x196ad0[_0x514c06(0x2b9)]();}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x1f3),async()=>{const _0x42a140=_0x19d41e;await this[_0x42a140(0x218)](),await this[_0x42a140(0x261)](),this[_0x42a140(0x1f0)]();}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x2ea),()=>{const _0x2ca215=_0x19d41e;this[_0x2ca215(0x1cb)]();}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x1f7),(_0x125251,_0x3217ce)=>{const _0x2a3182=_0x19d41e;this[_0x2a3182(0x1a9)]?.[_0x2a3182(0x265)](Array[_0x2a3182(0x31c)](_0x3217ce));}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x2ed),(_0x4f71c5,_0x2c9b19)=>{const _0x292185=_0x19d41e;this[_0x292185(0x1a9)]?.[_0x292185(0x2ed)](_0x2c9b19);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x291),(_0x5a3934,_0x559bfc)=>{const _0x80656a=_0x19d41e;_0x559bfc[_0x80656a(0x2a3)](this[_0x80656a(0x214)]);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x23d),(_0x4a8c8a,_0x5df2c4)=>{const _0x24c724=_0x19d41e;this[_0x24c724(0x1a9)]?.[_0x24c724(0x23d)](_0x5df2c4[_0x24c724(0x2cb)],_0x5df2c4[_0x24c724(0x255)]);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x233),(_0x58d49b,_0x3f3c4f)=>{const _0x405422=_0x19d41e;this[_0x405422(0x1e6)](_0x3f3c4f);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x2ca),(_0x142b80,_0x56caae)=>{const _0x5b08a6=_0x19d41e;this[_0x5b08a6(0x1a9)]?.[_0x5b08a6(0x2ca)](_0x56caae[_0x5b08a6(0x1ef)],_0x56caae[_0x5b08a6(0x324)],_0x56caae[_0x5b08a6(0x2cf)]);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x1e9),()=>{const _0x3900d0=_0x19d41e;this[_0x3900d0(0x2d5)]();}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x1b5),()=>{const _0x3c905c=_0x19d41e;this[_0x3c905c(0x2d7)]();}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x1c8),(_0x26a362,_0x5243a9)=>{const _0x5984c3=_0x19d41e;this[_0x5984c3(0x1a9)]?.[_0x5984c3(0x1ea)](_0x5243a9);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x32d),(_0x7c6539,{replyId:_0x2e4950})=>{const _0x127973=_0x19d41e;console[_0x127973(0x2b5)](_0x127973(0x1d2),_0x2e4950);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x275),(_0x428d62,{replyId:_0x180353})=>{const _0x289a40=_0x19d41e;console[_0x289a40(0x2b5)](_0x289a40(0x2f7),_0x180353);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x1b0),(_0x169d11,_0x3338e3)=>{const _0x5021e7=_0x19d41e;this[_0x5021e7(0x272)](_0x3338e3);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x26d),(_0x421f24,{replyId:_0xa31f0f,partIndex:_0x2288a6})=>{const _0x41557b=_0x19d41e;this[_0x41557b(0x200)]=this[_0x41557b(0x2c1)][_0x41557b(0x2df)],this[_0x41557b(0x322)](_0xa31f0f,_0x2288a6);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x1b3),(_0x1ea6bc,{replyId:_0x41337b,partIndex:_0xaa1bb9})=>{const _0x107008=_0x19d41e,_0x409862=this[_0x107008(0x2c9)](_0x41337b,_0xaa1bb9);_0x409862&&_0x107008(0x23b)!=_0x409862[_0x107008(0x223)][_0x107008(0x208)][_0x107008(0x250)]&&this[_0x107008(0x2fd)][_0x107008(0x247)]([_0x409862[_0x107008(0x223)]],_0x107008(0x211));}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x29d),()=>{const _0xb9f25c=_0x19d41e;this[_0xb9f25c(0x2fd)][_0xb9f25c(0x28a)](_0xb9f25c(0x211));}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x1cf),(_0x1450b0,_0x50ba66)=>{const _0x1c0a5e=_0x19d41e;this[_0x1c0a5e(0x2fd)][_0x1c0a5e(0x28a)](_0x1c0a5e(0x211)),this[_0x1c0a5e(0x301)](_0x50ba66);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x26b),async(_0x2b1d11,{replyId:_0x508def,showDiff:_0xeb9bbc})=>{const _0x555f81=_0x19d41e,{reply:_0x285005}=this[_0x555f81(0x1aa)](_0x508def),_0x26e021=_0x285005[_0x555f81(0x1ac)]({'showDiff':_0xeb9bbc});await this[_0x555f81(0x2c1)][_0x555f81(0x314)]({'id':_0x285005['id'],'parts':_0x26e021,'renderingStrategy':_0x555f81(0x24f)});}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2c1)],_0x19d41e(0x30e),(_0x5deae4,{replyId:_0x123926,partIndex:_0x523ea8})=>{const _0x15170b=_0x19d41e;this[_0x15170b(0x266)]({'replyId':_0x123926,'partIndex':_0x523ea8}),this[_0x15170b(0x2fd)][_0x15170b(0x28a)](_0x15170b(0x211));}),this[_0x19d41e(0x214)][_0x19d41e(0x24a)][_0x19d41e(0x2e8)](_0x19d41e(0x1ba))&&(this[_0x19d41e(0x2bd)]=this[_0x19d41e(0x214)][_0x19d41e(0x24a)][_0x19d41e(0x232)](_0x19d41e(0x1ba)),this[_0x19d41e(0x1c1)](_0x19d41e(0x200),!0x1),this[_0x19d41e(0x2bd)][_0x19d41e(0x1f6)](_0x19d41e(0x2df))['to'](this,_0x19d41e(0x200)),this[_0x19d41e(0x280)](this[_0x19d41e(0x2bd)],_0x19d41e(0x26b),()=>{const _0x49751b=_0x19d41e,{replyId:_0x537209,partIndex:_0x2bcb74}=this[_0x49751b(0x2a6)];this[_0x49751b(0x200)]=!this[_0x49751b(0x200)];const {reply:_0xebfd5f}=this[_0x49751b(0x1aa)](_0x537209),_0x1f64ad=_0xebfd5f[_0x49751b(0x1ac)]({'showDiff':this[_0x49751b(0x200)],'groupIndex':_0x2bcb74});this[_0x49751b(0x2bd)][_0x49751b(0x203)]({'part':_0x1f64ad[0x0],'renderingStrategy':_0x49751b(0x24f),'keepErrors':!0x0});}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2bd)],_0x19d41e(0x1cf),()=>{const _0x38ea59=_0x19d41e,{replyId:_0x29f3a2,partIndex:_0x3f562f}=this[_0x38ea59(0x2a6)];this[_0x38ea59(0x301)]({'replyId':_0x29f3a2,'partIndex':_0x3f562f}),this[_0x38ea59(0x2bd)][_0x38ea59(0x238)](_0x38ea59(0x246));}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2bd)],_0x19d41e(0x1b0),()=>{const _0x28a5fc=_0x19d41e,{replyId:_0x230550,partIndex:_0x3c2892}=this[_0x28a5fc(0x2a6)];this[_0x28a5fc(0x272)]({'replyId':_0x230550,'partIndex':_0x3c2892}),this[_0x28a5fc(0x2bd)][_0x28a5fc(0x238)](_0x28a5fc(0x246));}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2bd)],_0x19d41e(0x30e),()=>{const _0x1bab2a=_0x19d41e,{replyId:_0x280b91,partIndex:_0x37190a}=this[_0x1bab2a(0x2a6)];this[_0x1bab2a(0x266)]({'replyId':_0x280b91,'partIndex':_0x37190a}),this[_0x1bab2a(0x2bd)][_0x1bab2a(0x238)](_0x1bab2a(0x326));}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2bd)],_0x19d41e(0x217),()=>{const _0xa527fc=_0x19d41e,{replyId:_0x252f62,partIndex:_0x636846}=this[_0xa527fc(0x2a6)],_0x101221=this[_0xa527fc(0x325)](_0x252f62,_0x636846,_0xa527fc(0x1b7));null!==_0x101221&&this[_0xa527fc(0x322)](_0x252f62,_0x101221);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2bd)],_0x19d41e(0x293),()=>{const _0x534d4c=_0x19d41e,{replyId:_0x261b2c,partIndex:_0x3ccb46}=this[_0x534d4c(0x2a6)],_0x3c6caf=this[_0x534d4c(0x325)](_0x261b2c,_0x3ccb46,_0x534d4c(0x21d));null!==_0x3c6caf&&this[_0x534d4c(0x322)](_0x261b2c,_0x3c6caf);}),this[_0x19d41e(0x280)](this[_0x19d41e(0x2bd)],_0x19d41e(0x1fa),(_0x408265,{id:_0x597848})=>{const _0x5a583a=_0x19d41e;if(_0x5a583a(0x21a)!==_0x597848)return;const {replyId:_0x4e627c,partIndex:_0x3449a0}=this[_0x5a583a(0x2a6)];this[_0x5a583a(0x2a6)]=null,this[_0x5a583a(0x2c1)][_0x5a583a(0x2a1)]({'id':_0x4e627c,'index':_0x3449a0,'isActive':!0x1});}));}async[_0x5027f0(0x302)](){const _0x17be73=_0x5027f0;this[_0x17be73(0x214)]instanceof _0x1e36b8?this[_0x17be73(0x27c)](this[_0x17be73(0x214)]):this[_0x17be73(0x280)](this[_0x17be73(0x214)][_0x17be73(0x240)],_0x17be73(0x1ad),(_0x1453a2,_0x1e5d09)=>{const _0x31fd63=_0x17be73;_0x1e5d09['on'](_0x31fd63(0x294),()=>{const _0xeebca3=_0x31fd63;this[_0xeebca3(0x27c)](_0x1e5d09);});});const _0x322ba3=this[_0x17be73(0x214)][_0x17be73(0x311)][_0x17be73(0x232)](_0x17be73(0x2ba));let _0x52c9f3=_0x322ba3;if(_0x17be73(0x2c6)!=_0x322ba3||(_0x52c9f3=await this[_0x17be73(0x204)](),_0x52c9f3))return _0x17be73(0x245)==_0x52c9f3?this[_0x17be73(0x2d9)]():this[_0x17be73(0x1e4)](_0x52c9f3);}async[_0x5027f0(0x270)](){const _0x19ca13=_0x5027f0;return await this[_0x19ca13(0x218)](),this[_0x19ca13(0x1f9)][_0x19ca13(0x2c0)](),super[_0x19ca13(0x270)]();}[_0x5027f0(0x272)](_0x20dccd){const _0x237776=_0x5027f0,_0x52d5c1=_0x22d5bb(this[_0x237776(0x214)]);if(!_0x52d5c1[_0x237776(0x24a)][_0x237776(0x2e8)](_0x237776(0x23a)))throw new _0x1cac1d(_0x237776(0x21c),null);const _0x530adb=this[_0x237776(0x214)][_0x237776(0x24a)][_0x237776(0x232)](_0x237776(0x207)),{reply:_0x3bf25b,interaction:_0x35b404}=this[_0x237776(0x1aa)](_0x20dccd[_0x237776(0x320)]),_0x3d1ab6=this[_0x237776(0x2c9)](_0x20dccd[_0x237776(0x320)],_0x20dccd[_0x237776(0x267)]),_0x3e5af7=void 0x0!==_0x20dccd[_0x237776(0x267)]?[_0x3bf25b[_0x237776(0x2a4)][_0x20dccd[_0x237776(0x267)]]]:_0x3bf25b[_0x237776(0x2a4)][_0x237776(0x29e)](_0x1aa9f0=>_0x237776(0x243)==_0x1aa9f0[_0x237776(0x299)]),_0x55a270=_0x3e5af7[_0x237776(0x2f3)](_0xaa15d9=>_0x3bf25b[_0x237776(0x2a4)][_0x237776(0x23f)](_0xaa15d9));if(!_0x3d1ab6||_0x237776(0x23b)==_0x3d1ab6[_0x237776(0x223)][_0x237776(0x208)][_0x237776(0x250)])return void _0x55a270[_0x237776(0x1f4)](_0x418b31=>_0x3bf25b[_0x237776(0x26c)](_0x418b31,_0x237776(0x1ca)));_0x55a270[_0x237776(0x1f4)](_0x57e663=>_0x3bf25b[_0x237776(0x26c)](_0x57e663,_0x237776(0x246)));const _0x1a92a4=_0x4c9494({'editor':_0x52d5c1,'reply':_0x3bf25b,'interaction':_0x35b404,'groups':_0x3e5af7,'transform':!0x0,'documentCompare':_0x530adb,'documentCompareOptions':{'anchor':_0x237776(0x22e),'markDeletions':!0x0}});let _0x40006a;_0x3d1ab6&&this[_0x237776(0x2bf)](_0x3d1ab6[_0x237776(0x223)]),_0x52d5c1[_0x237776(0x1e0)][_0x237776(0x30a)](_0x3a59b4=>{const _0x551577=_0x237776;_0x40006a=_0x3a59b4[_0x551577(0x1d6)],_0x52d5c1[_0x551577(0x24a)][_0x551577(0x232)](_0x551577(0x26f))[_0x551577(0x309)](_0x1a92a4),this[_0x551577(0x2fd)][_0x551577(0x28a)](_0x551577(0x211));}),this[_0x237776(0x1b4)][_0x237776(0x1c1)](_0x40006a,{'interactionId':_0x35b404['id'],'replyId':_0x3bf25b['id'],'indexes':_0x55a270[_0x237776(0x1e5)]()}),this[_0x237776(0x2d2)](_0x3bf25b);}[_0x5027f0(0x301)](_0x348229){const _0x2c4f48=_0x5027f0,_0x5756a1=_0x22d5bb(this[_0x2c4f48(0x214)]),_0x390a14=this[_0x2c4f48(0x214)][_0x2c4f48(0x24a)][_0x2c4f48(0x232)](_0x1b0eca),{reply:_0x30eb92,interaction:_0x3e2d2e}=this[_0x2c4f48(0x1aa)](_0x348229[_0x2c4f48(0x320)]),_0x5456bd=this[_0x2c4f48(0x2c9)](_0x348229[_0x2c4f48(0x320)],_0x348229[_0x2c4f48(0x267)]),_0x4d4edc=void 0x0!==_0x348229[_0x2c4f48(0x267)]?[_0x30eb92[_0x2c4f48(0x2a4)][_0x348229[_0x2c4f48(0x267)]]]:_0x30eb92[_0x2c4f48(0x2a4)][_0x2c4f48(0x29e)](_0x40bd60=>_0x2c4f48(0x243)==_0x40bd60[_0x2c4f48(0x299)]),_0x192537=_0x4d4edc[_0x2c4f48(0x2f3)](_0x2b6f34=>_0x30eb92[_0x2c4f48(0x2a4)][_0x2c4f48(0x23f)](_0x2b6f34));if(!_0x5456bd||_0x2c4f48(0x23b)==_0x5456bd[_0x2c4f48(0x223)][_0x2c4f48(0x208)][_0x2c4f48(0x250)])return void _0x192537[_0x2c4f48(0x1f4)](_0x118251=>_0x30eb92[_0x2c4f48(0x26c)](_0x118251,_0x2c4f48(0x1ca)));_0x192537[_0x2c4f48(0x1f4)](_0x558941=>_0x30eb92[_0x2c4f48(0x26c)](_0x558941,_0x2c4f48(0x246)));const _0x452c4=_0x4c9494({'editor':_0x5756a1,'reply':_0x30eb92,'interaction':_0x3e2d2e,'groups':_0x4d4edc,'transform':!0x0,'documentCompare':_0x390a14,'documentCompareOptions':{'anchor':_0x2c4f48(0x22e),'markDeletions':!0x1}});let _0x2ce87e;_0x5456bd&&this[_0x2c4f48(0x2bf)](_0x5456bd[_0x2c4f48(0x223)]),_0x5756a1[_0x2c4f48(0x1e0)][_0x2c4f48(0x30a)](_0x152561=>{const _0x5ee0c7=_0x2c4f48;_0x2ce87e=_0x152561[_0x5ee0c7(0x1d6)];for(const _0x4d04e8 of _0x452c4)_0x4d04e8[_0x5ee0c7(0x288)]=_0x5756a1[_0x5ee0c7(0x1e0)][_0x5ee0c7(0x2d1)][_0x5ee0c7(0x316)],_0x4e9a85(_0x5756a1,_0x4d04e8),_0x152561[_0x5ee0c7(0x1d6)][_0x5ee0c7(0x21f)](_0x4d04e8),_0x5756a1[_0x5ee0c7(0x1e0)][_0x5ee0c7(0x1cc)](_0x4d04e8);}),this[_0x2c4f48(0x1b4)][_0x2c4f48(0x1c1)](_0x2ce87e,{'interactionId':_0x3e2d2e['id'],'replyId':_0x30eb92['id'],'indexes':_0x192537[_0x2c4f48(0x1e5)]()}),this[_0x2c4f48(0x2d2)](_0x30eb92);}[_0x5027f0(0x266)](_0x5a7d5f){const _0xa3cfd9=_0x5027f0,{reply:_0x52db6e}=this[_0xa3cfd9(0x1aa)](_0x5a7d5f[_0xa3cfd9(0x320)]);_0x52db6e[_0xa3cfd9(0x26c)](_0x5a7d5f[_0xa3cfd9(0x267)],_0xa3cfd9(0x326));}[_0x5027f0(0x322)](_0x5d16b8,_0x199d36){const _0x466928=_0x5027f0;if(!this[_0x466928(0x2bd)])return;const {reply:_0x1ca728}=this[_0x466928(0x1aa)](_0x5d16b8),_0x216e8f=_0x1ca728[_0x466928(0x1ac)]({'showDiff':this[_0x466928(0x200)]});let _0x53ed6d,_0x345268;if(void 0x0!==_0x199d36?(_0x345268=_0x216e8f[_0x466928(0x276)](_0x1e2c7d=>_0x1e2c7d[_0x466928(0x2d6)]==_0x199d36),_0x53ed6d=_0x345268?.[_0x466928(0x2d6)]):(_0x345268=_0x216e8f[0x0],_0x53ed6d=_0x345268[_0x466928(0x2d6)]),this[_0x466928(0x2a6)]?.[_0x466928(0x320)]==_0x5d16b8&&this[_0x466928(0x2a6)]?.[_0x466928(0x267)]==_0x53ed6d)return;const _0x3c7410=this[_0x466928(0x2dc)](_0x5d16b8,_0x1ca728,_0x345268);if(!_0x3c7410)return void this[_0x466928(0x2bd)][_0x466928(0x312)]();this[_0x466928(0x2a6)]={'replyId':_0x5d16b8,'partIndex':_0x53ed6d},this[_0x466928(0x2bf)](_0x3c7410,!0x0);const _0x29fb91=this[_0x466928(0x325)](_0x5d16b8,_0x53ed6d,_0x466928(0x1b7));this[_0x466928(0x2bd)][_0x466928(0x203)]({'part':_0x345268,'renderingStrategy':_0x466928(0x24f)}),this[_0x466928(0x2bd)][_0x466928(0x300)]({'index':_0x53ed6d,'title':_0x4e370c(this[_0x466928(0x214)][_0x466928(0x2c2)],_0x466928(0x251),(_0x53ed6d+0x1)[_0x466928(0x2fc)]()),'showRotator':null!==_0x29fb91,'ranges':[_0x3c7410],'areActionsDisabled':_0x1ca728[_0x466928(0x2a0)]}),this[_0x466928(0x2bd)][_0x466928(0x238)](_0x466928(0x243)),this[_0x466928(0x2c1)][_0x466928(0x254)](_0x5d16b8,_0x53ed6d),this[_0x466928(0x2c1)][_0x466928(0x2a1)]({'id':_0x5d16b8,'index':_0x53ed6d,'isActive':!0x0});}[_0x5027f0(0x325)](_0x3645ad,_0x41b7a9,_0x1404ce){const _0xa8c104=_0x5027f0,{reply:_0x1b9832}=this[_0xa8c104(0x1aa)](_0x3645ad),_0x5a42e0=_0x1b9832[_0xa8c104(0x1ac)]({'showDiff':this[_0xa8c104(0x200)]});if(0x1==_0x5a42e0[_0xa8c104(0x219)])return null;const _0x4bdad1=_0x5a42e0[_0xa8c104(0x221)](_0x1ba417=>_0x1ba417[_0xa8c104(0x2d6)]==_0x41b7a9),_0xa5a99f=_0xa8c104(0x1b7)==_0x1404ce?0x1:-0x1;let _0x242ba9=_0x5a42e0['at']((_0x4bdad1+_0xa5a99f)%_0x5a42e0[_0xa8c104(0x219)])[_0xa8c104(0x2d6)],_0x45a6b8=_0x5a42e0[_0x242ba9];for(;!this[_0xa8c104(0x2dc)](_0x3645ad,_0x1b9832,_0x45a6b8);){if(_0x242ba9=_0x5a42e0['at']((_0x242ba9+_0xa5a99f)%_0x5a42e0[_0xa8c104(0x219)])[_0xa8c104(0x2d6)],_0x242ba9===_0x4bdad1)return null;_0x45a6b8=_0x5a42e0[_0x242ba9];}return _0x242ba9;}[_0x5027f0(0x2dc)](_0x57988f,_0x2057c7,_0xb967d1){const _0x4c53bb=_0x5027f0,_0x440797=_0x2057c7[_0x4c53bb(0x2a4)];if(!_0xb967d1[_0x4c53bb(0x1f2)])return null;const _0x39f2ed=_0x440797[_0x4c53bb(0x276)](_0x380056=>_0x380056[_0x4c53bb(0x2d6)]==_0xb967d1[_0x4c53bb(0x2d6)]);if(_0x4c53bb(0x243)!==_0x39f2ed?.[_0x4c53bb(0x299)])return null;const _0x4b7123=this[_0x4c53bb(0x2c9)](_0x57988f,_0xb967d1[_0x4c53bb(0x2d6)]);if(!_0x4b7123)return null;const {range:_0x52f971,currentIndex:_0x23f244}=_0x4b7123;return _0x4c53bb(0x23b)==_0x52f971[_0x4c53bb(0x208)][_0x4c53bb(0x250)]?(_0x2057c7[_0x4c53bb(0x26c)](_0x23f244,_0x4c53bb(0x1ca)),null):_0x4b7123[_0x4c53bb(0x223)];}[_0x5027f0(0x2c9)](_0x393371,_0x1517ab){const _0x315e3f=_0x5027f0,_0x5e8e44=_0x22d5bb(this[_0x315e3f(0x214)]),{reply:_0x57acb8,interaction:_0x58cdc5}=this[_0x315e3f(0x1aa)](_0x393371),_0x81f660=_0x57acb8[_0x315e3f(0x2a4)][_0x315e3f(0x29e)](_0x5aaca9=>_0x315e3f(0x243)==_0x5aaca9[_0x315e3f(0x299)]),_0x2d58b3=_0x81f660[_0x315e3f(0x2f3)](_0x3ff419=>_0x57acb8[_0x315e3f(0x2a4)][_0x315e3f(0x23f)](_0x3ff419));void 0x0===_0x1517ab&&(_0x1517ab=_0x2d58b3[0x0]);const _0x121ae7=_0x2d58b3[_0x315e3f(0x23f)](_0x1517ab);if(-0x1==_0x121ae7)return null;const _0x793827=_0x81f660[_0x121ae7],_0x390dbb=new _0x128a28([]),_0x31a6cf=new _0x128a28([]);for(const _0x1923d5 of _0x793827[_0x315e3f(0x1a6)])if(_0x315e3f(0x1de)!=_0x1923d5[_0x315e3f(0x22f)]&&_0x31a6cf[_0x315e3f(0x2fb)][_0x315e3f(0x32a)](_0x1923d5[_0x315e3f(0x1bb)][_0x315e3f(0x20b)](!0x0)),_0x315e3f(0x245)!=_0x1923d5[_0x315e3f(0x22f)]){const _0xa2cfa0=_0x323a6d(_0x5bb4d=>_0x68ecf9(_0x5bb4d,_0x315e3f(0x264))==_0x1923d5['id'],_0x57acb8[_0x315e3f(0x1fe)],!0x0);_0x390dbb[_0x315e3f(0x2fb)][_0x315e3f(0x32a)](_0xa2cfa0[_0x315e3f(0x20b)](!0x0));}if(0x0==_0x390dbb[_0x315e3f(0x2fb)][_0x315e3f(0x219)]){if(_0x793827[_0x315e3f(0x1a6)][0x0][_0x315e3f(0x228)]){const _0x4fde13=_0x25ed47(_0x315e3f(0x264),_0x793827[_0x315e3f(0x1a6)][0x0][_0x315e3f(0x228)],_0x57acb8[_0x315e3f(0x1fe)]);_0x390dbb[_0x315e3f(0x2fb)][_0x315e3f(0x2eb)](_0x4fde13[_0x315e3f(0x20b)](!0x0)),_0x31a6cf[_0x315e3f(0x2fb)][_0x315e3f(0x2eb)](_0x4fde13[_0x315e3f(0x20b)](!0x0)),_0x4fde13[_0x315e3f(0x315)]&&(_0x390dbb[_0x315e3f(0x2fb)][_0x315e3f(0x32a)](_0x4fde13[_0x315e3f(0x315)][_0x315e3f(0x20b)](!0x0)),_0x31a6cf[_0x315e3f(0x2fb)][_0x315e3f(0x32a)](_0x4fde13[_0x315e3f(0x315)][_0x315e3f(0x20b)](!0x0)));}else{const _0x24188c=_0x57acb8[_0x315e3f(0x1fe)][_0x315e3f(0x2fb)][0x0];if(!_0x24188c)return null;_0x390dbb[_0x315e3f(0x2fb)][_0x315e3f(0x32a)](_0x24188c[_0x315e3f(0x20b)](!0x0)),_0x31a6cf[_0x315e3f(0x2fb)][_0x315e3f(0x32a)](_0x24188c[_0x315e3f(0x20b)](!0x0));}}const _0x10fc85=_0x58cdc5[_0x315e3f(0x32c)](),_0x28a3fe=_0x5e8e44[_0x315e3f(0x1c2)][_0x315e3f(0x2e3)](_0x10fc85[_0x315e3f(0x1eb)]),_0x3763d1=_0x417201(_0x390dbb),_0x107dd2=_0x5e8e44[_0x315e3f(0x1c2)][_0x315e3f(0x2e3)](_0x3763d1),_0x4a3c37=_0x5e8e44[_0x315e3f(0x1c2)][_0x315e3f(0x2e3)](_0x3763d1),_0x2b29ee=_0x5e8e44[_0x315e3f(0x1e0)][_0x315e3f(0x1b2)](_0x107dd2,0x0),_0x5b5752=_0x417201(_0x31a6cf),_0x4cf678={'anchor':_0x2b29ee,'markDeletions':!0x1},_0x37c793=_0x5e8e44[_0x315e3f(0x24a)][_0x315e3f(0x232)](_0x1b0eca)[_0x315e3f(0x206)](_0x3763d1,_0x5b5752,_0x4cf678)[_0x315e3f(0x1c7)]();if(!_0x37c793[_0x315e3f(0x219)])return null;_0x5e8e44[_0x315e3f(0x1e0)][_0x315e3f(0x30a)](_0x906524=>{const _0x3a9c00=_0x315e3f;for(const _0xc75d36 of _0x37c793)if(_0x3a9c00(0x290)==_0xc75d36[_0x3a9c00(0x22f)]){const _0x254970=_0xc75d36[_0x3a9c00(0x1a8)],_0x4be89e=_0xc75d36[_0x3a9c00(0x2d8)],_0x83e501=new _0x568343(_0x254970,_0x4be89e);_0x906524[_0x3a9c00(0x1d6)][_0x3a9c00(0x21f)](_0x83e501),_0x5e8e44[_0x3a9c00(0x1e0)][_0x3a9c00(0x1cc)](_0x83e501);}else _0x3a9c00(0x2c5)!==_0xc75d36[_0x3a9c00(0x22f)]&&(_0xc75d36[_0x3a9c00(0x288)]=null,_0xc75d36[_0x3a9c00(0x28e)]=!0x1,_0x906524[_0x3a9c00(0x1d6)][_0x3a9c00(0x21f)](_0xc75d36),_0x5e8e44[_0x3a9c00(0x1e0)][_0x3a9c00(0x1cc)](_0xc75d36));});const _0x58fb6b=_0x2b3d24(_0x5e8e44,_0x37c793,_0x107dd2);_0x22d854(_0x5e8e44[_0x315e3f(0x1e0)],_0x58fb6b);const _0x573a49=_0x58fb6b[_0x315e3f(0x1ec)]()[_0x315e3f(0x220)][_0x315e3f(0x25b)][_0x315e3f(0x1e5)](),_0x22d568=_0x58fb6b[_0x315e3f(0x1ec)]()[_0x315e3f(0x1d0)][_0x315e3f(0x25b)][_0x315e3f(0x1e5)](),_0x5bc0f9=[];let _0x2e7470=_0x107dd2,_0x32002b=_0x4a3c37;for(let _0x1d95aa=0x0;_0x1d95aa<_0x22d568[_0x315e3f(0x219)];_0x1d95aa++){const _0x378e1b=_0x2e7470[_0x315e3f(0x2c7)]-_0x22d568[_0x1d95aa];_0x5bc0f9[_0x1d95aa]=_0x32002b[_0x315e3f(0x2c7)]-_0x378e1b,_0x2e7470=_0x2e7470[_0x315e3f(0x2e7)](_0x22d568[_0x1d95aa]),_0x32002b=_0x32002b[_0x315e3f(0x2e7)](_0x5bc0f9[_0x1d95aa]);}const _0x135d7d=_0x5e8e44[_0x315e3f(0x1e0)][_0x315e3f(0x21b)](_0x5e8e44[_0x315e3f(0x1e0)][_0x315e3f(0x28b)](_0x4a3c37,_0x573a49),_0x5e8e44[_0x315e3f(0x1e0)][_0x315e3f(0x28b)](_0x4a3c37,_0x5bc0f9)),_0x313ea9=_0x4a3c37[_0x315e3f(0x22a)](0x0)[_0x315e3f(0x2ac)](_0x213e06),_0x599206=Array[_0x315e3f(0x31c)](_0x28a3fe[_0x315e3f(0x271)]())[_0x315e3f(0x276)](_0x1aba9e=>_0x1aba9e[_0x315e3f(0x2ac)](_0x213e06)==_0x313ea9)[_0x315e3f(0x1b6)](),_0xbf1f94=_0x135d7d[_0x315e3f(0x220)][_0x315e3f(0x25b)][_0x315e3f(0x1e5)](),_0x526a6e=_0x135d7d[_0x315e3f(0x1d0)][_0x315e3f(0x25b)][_0x315e3f(0x1e5)]();_0xbf1f94[0x0]=_0x599206[0x0]+_0xbf1f94[0x0],_0x526a6e[0x0]=_0x599206[0x0]+_0x526a6e[0x0];let _0x20c0bc=_0x5e8e44[_0x315e3f(0x1e0)][_0x315e3f(0x21b)](_0x5e8e44[_0x315e3f(0x1e0)][_0x315e3f(0x28b)](_0x5e8e44[_0x315e3f(0x1e0)][_0x315e3f(0x2d1)][_0x315e3f(0x1dc)](),_0xbf1f94),_0x5e8e44[_0x315e3f(0x1e0)][_0x315e3f(0x28b)](_0x5e8e44[_0x315e3f(0x1e0)][_0x315e3f(0x2d1)][_0x315e3f(0x1dc)](),_0x526a6e));const _0x156389=_0x5e8e44[_0x315e3f(0x1e0)][_0x315e3f(0x2d1)][_0x315e3f(0x28c)][_0x315e3f(0x1c7)](_0x10fc85[_0x315e3f(0x316)]);for(const _0x1f5839 of _0x156389)_0x20c0bc=_0x29ade5[_0x315e3f(0x277)](_0x20c0bc[_0x315e3f(0x31a)](_0x1f5839));return{'range':_0x20c0bc,'currentIndex':_0x1517ab};}[_0x5027f0(0x27c)](_0x4a1f4d){const _0x3eedb0=_0x5027f0;if(!_0x4a1f4d[_0x3eedb0(0x24a)][_0x3eedb0(0x2e8)](_0x3eedb0(0x20e)))return;const _0x19a493=_0x4a1f4d[_0x3eedb0(0x308)][_0x3eedb0(0x232)](_0x3eedb0(0x22c)),_0x375845=_0x4a1f4d[_0x3eedb0(0x308)][_0x3eedb0(0x232)](_0x3eedb0(0x257));this[_0x3eedb0(0x280)](_0x19a493,_0x3eedb0(0x1a5),(_0x4bdeff,_0x37a3e7,_0x537a00)=>{const _0x262485=_0x3eedb0,_0x43c4c4=this[_0x262485(0x1b4)][_0x262485(0x232)](_0x37a3e7);if(!_0x43c4c4)return;const _0x5eac72=this[_0x262485(0x1a9)][_0x262485(0x1c0)](_0x43c4c4[_0x262485(0x2d0)])[_0x262485(0x210)](_0x43c4c4[_0x262485(0x320)]);_0x43c4c4[_0x262485(0x283)][_0x262485(0x1f4)](_0x1c1357=>_0x5eac72[_0x262485(0x26c)](_0x1c1357,_0x262485(0x243))),this[_0x262485(0x1b4)][_0x262485(0x1df)](_0x37a3e7),this[_0x262485(0x1b4)][_0x262485(0x1c1)](_0x537a00,_0x43c4c4);}),this[_0x3eedb0(0x280)](_0x375845,_0x3eedb0(0x1a5),(_0x2aa665,_0xe23d22,_0x6e143c)=>{const _0x231fb8=_0x3eedb0,_0x9df0be=this[_0x231fb8(0x1b4)][_0x231fb8(0x232)](_0xe23d22);if(!_0x9df0be)return;const _0x2ef81b=this[_0x231fb8(0x1a9)][_0x231fb8(0x1c0)](_0x9df0be[_0x231fb8(0x2d0)])[_0x231fb8(0x210)](_0x9df0be[_0x231fb8(0x320)]);_0x9df0be[_0x231fb8(0x283)][_0x231fb8(0x1f4)](_0xa85068=>_0x2ef81b[_0x231fb8(0x26c)](_0xa85068,_0x231fb8(0x246))),this[_0x231fb8(0x1b4)][_0x231fb8(0x1df)](_0xe23d22),this[_0x231fb8(0x1b4)][_0x231fb8(0x1c1)](_0x6e143c,_0x9df0be);});}async[_0x5027f0(0x1e4)](_0x521d2c){const _0x1d8095=_0x5027f0;this[_0x1d8095(0x214)][_0x1d8095(0x24a)][_0x1d8095(0x2e8)](_0x1d8095(0x1ba))&&this[_0x1d8095(0x214)][_0x1d8095(0x24a)][_0x1d8095(0x232)](_0x1d8095(0x1ba))[_0x1d8095(0x312)](),(this[_0x1d8095(0x214)][_0x1d8095(0x24a)][_0x1d8095(0x232)](_0x620505)[_0x1d8095(0x258)][_0x1d8095(0x237)](_0x1d8095(0x1d4)),this[_0x1d8095(0x2c1)][_0x1d8095(0x24b)](_0x1d8095(0x24f)),this[_0x1d8095(0x2c1)][_0x1d8095(0x30d)](!0x0),await this[_0x1d8095(0x218)]());try{await this[_0x1d8095(0x1fb)][_0x1d8095(0x29f)](_0x521d2c)[_0x1d8095(0x21e)](),await this[_0x1d8095(0x2d9)](_0x521d2c),this[_0x1d8095(0x213)]('\x20'),await this[_0x1d8095(0x1a9)][_0x1d8095(0x1d9)](_0x521d2c,this[_0x1d8095(0x2fd)][_0x1d8095(0x29c)]),this[_0x1d8095(0x1a9)][_0x1d8095(0x23c)]()&&this[_0x1d8095(0x1cb)]();}catch(_0x2189fb){this[_0x1d8095(0x2c1)][_0x1d8095(0x296)]({'errorMessage':_0x4e370c(this[_0x1d8095(0x214)][_0x1d8095(0x2c2)],_0x1d8095(0x1da)),'id':_0x521d2c}),this[_0x1d8095(0x25c)](new _0x1cac1d(_0x1d8095(0x25d),this,{'error':_0x2189fb}));}finally{this[_0x1d8095(0x2c1)][_0x1d8095(0x1bf)](),this[_0x1d8095(0x2c1)][_0x1d8095(0x24b)](_0x1d8095(0x1ab)),this[_0x1d8095(0x2c1)][_0x1d8095(0x30d)](!0x1);}}async[_0x5027f0(0x204)](){const _0x5a7605=_0x5027f0,_0x4f2857=this[_0x5a7605(0x1fb)][_0x5a7605(0x1c3)](this[_0x5a7605(0x304)](),{'limit':0x1,'sortBy':_0x5a7605(0x2e2)});try{const _0x7453bf=await _0x4f2857[_0x5a7605(0x298)]();return _0x7453bf[_0x5a7605(0x219)]?_0x7453bf[0x0]['id']:_0x5a7605(0x245);}catch(_0x4c85c2){return this[_0x5a7605(0x2c1)][_0x5a7605(0x296)]({'errorMessage':_0x4e370c(this[_0x5a7605(0x214)][_0x5a7605(0x2c2)],_0x5a7605(0x1da)),'id':_0xc400fc()}),this[_0x5a7605(0x25c)](new _0x1cac1d(_0x5a7605(0x235),this,{'error':_0x4c85c2})),this[_0x5a7605(0x2c1)][_0x5a7605(0x30d)](!0x1),this[_0x5a7605(0x2c1)][_0x5a7605(0x1b9)](),null;}}[_0x5027f0(0x225)](_0xe3605d){const _0x4ffbc4=_0x5027f0;this[_0x4ffbc4(0x1a9)]['id']===_0xe3605d&&this[_0x4ffbc4(0x2d9)]();}[_0x5027f0(0x1cb)](){const _0x17cae5=_0x5027f0;this[_0x17cae5(0x1a9)]?.[_0x17cae5(0x28f)](_0x4e370c(this[_0x17cae5(0x214)][_0x17cae5(0x2c2)],_0x17cae5(0x307)));}async[_0x5027f0(0x256)](){const _0x334cf8=_0x5027f0,_0x2452a6=this[_0x334cf8(0x2fd)][_0x334cf8(0x231)]();this[_0x334cf8(0x1a9)]?.[_0x334cf8(0x281)](_0x2452a6),this[_0x334cf8(0x1cb)]();}[_0x5027f0(0x1f0)](){const _0x1da89e=_0x5027f0;this[_0x1da89e(0x1a9)]?.[_0x1da89e(0x2e1)]();}[_0x5027f0(0x1d7)](){const _0x26a183=_0x5027f0;this[_0x26a183(0x2c1)][_0x26a183(0x1d7)]();}async[_0x5027f0(0x28d)](){const _0x116e01=_0x5027f0;await this[_0x116e01(0x2d9)]();}async[_0x5027f0(0x2c3)]({message:_0x12dde6,attributes:_0x202bb5}){const _0x18cb1d=_0x5027f0;await this[_0x18cb1d(0x1fd)]({'userMessage':_0x12dde6,'attributes':_0x202bb5});}[_0x5027f0(0x304)](){const _0xc23f48=_0x5027f0,_0x5a2833=this[_0xc23f48(0x214)][_0xc23f48(0x311)][_0xc23f48(0x232)](_0xc23f48(0x31f));if(!_0x5a2833)throw new _0x1cac1d(_0xc23f48(0x201),this);return _0x5a2833;}async[_0x5027f0(0x2d9)](_0xa8c65c){const _0x39a383=_0x5027f0;try{this[_0x39a383(0x2c1)][_0x39a383(0x252)](),await this[_0x39a383(0x1bc)](_0xa8c65c);}catch(_0x120e05){this[_0x39a383(0x2c1)][_0x39a383(0x296)]({'errorMessage':_0x4e370c(this[_0x39a383(0x214)][_0x39a383(0x2c2)],_0x39a383(0x32e)),'id':_0xa8c65c||_0xc400fc()}),console[_0x39a383(0x30c)](_0x120e05),this[_0x39a383(0x1a9)]=void 0x0,this[_0x39a383(0x2c1)][_0x39a383(0x1b9)]();}}async[_0x5027f0(0x1bc)](_0x161138){const _0x50ffe7=_0x5027f0;let _0x1b2d7e;this[_0x50ffe7(0x214)][_0x50ffe7(0x24a)][_0x50ffe7(0x2e8)](_0x50ffe7(0x1ba))&&this[_0x50ffe7(0x214)][_0x50ffe7(0x24a)][_0x50ffe7(0x232)](_0x50ffe7(0x1ba))[_0x50ffe7(0x312)](),_0x161138||!this[_0x50ffe7(0x1a9)]?_0x1b2d7e=this[_0x50ffe7(0x214)][_0x50ffe7(0x311)][_0x50ffe7(0x232)](_0x50ffe7(0x2d4)):this[_0x50ffe7(0x2c1)][_0x50ffe7(0x279)]&&(_0x1b2d7e=this[_0x50ffe7(0x1a9)][_0x50ffe7(0x1c6)]['id']),await this[_0x50ffe7(0x218)]();const _0x1ea9cd=this[_0x50ffe7(0x304)](),_0x35428a=_0x161138||_0xc400fc();this[_0x50ffe7(0x1a9)]=new _0x126b86({'connector':this[_0x50ffe7(0x1fb)],'chatModels':this[_0x50ffe7(0x230)],'selectedModelId':_0x1b2d7e,'conversationId':_0x35428a,'group':_0x1ea9cd,'getEditor':()=>_0x22d5bb(this[_0x50ffe7(0x214)]),'isFromHistory':!!_0x161138}),this[_0x50ffe7(0x1a9)][_0x50ffe7(0x202)](_0x50ffe7(0x244),_0x50ffe7(0x297))['to'](this),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x2ad),(_0x4e462a,_0x118de5)=>{const _0x2ad52a=_0x50ffe7;this[_0x2ad52a(0x2c1)][_0x2ad52a(0x22b)](_0x118de5),this[_0x2ad52a(0x2c1)][_0x2ad52a(0x2b2)](),this[_0x2ad52a(0x2c1)][_0x2ad52a(0x24d)](),this[_0x2ad52a(0x2c1)][_0x2ad52a(0x2f4)](),_0x161138||(this[_0x2ad52a(0x2c1)][_0x2ad52a(0x273)](),this[_0x2ad52a(0x1cb)]());}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x2b8),(_0x1838c0,_0x32feb4)=>{const _0x316e0e=_0x50ffe7;this[_0x316e0e(0x2c1)][_0x316e0e(0x2f1)](_0x32feb4[_0x316e0e(0x2e6)]);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x2aa),(_0x314ab4,_0x4a60bf)=>{const _0x5f310b=_0x50ffe7;this[_0x5f310b(0x2c1)][_0x5f310b(0x1fc)](_0x4a60bf);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x287),()=>{const _0x422dfb=_0x50ffe7,_0xb45227=this[_0x422dfb(0x2c1)][_0x422dfb(0x2bc)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x422dfb(0x2c1)][_0x422dfb(0x226)](_0xb45227);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x323),()=>{const _0x46be7b=_0x50ffe7,_0x23c5fd=this[_0x46be7b(0x2c1)][_0x46be7b(0x2bc)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x46be7b(0x2c1)][_0x46be7b(0x226)](_0x23c5fd);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x2b0),(_0x19f9c9,_0x277199)=>{const _0x5ce8dc=_0x50ffe7;this[_0x5ce8dc(0x2c1)][_0x5ce8dc(0x1d1)](_0x277199,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x2db),(_0x5af0fe,_0x24b545)=>{const _0x53ab03=_0x50ffe7;this[_0x53ab03(0x2c1)][_0x53ab03(0x1d1)](_0x24b545,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x297),()=>{const _0x15d6d4=_0x50ffe7;this[_0x15d6d4(0x2c1)][_0x15d6d4(0x248)]();}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x313),async()=>{const _0x3c33f2=_0x50ffe7;await this[_0x3c33f2(0x2c1)][_0x3c33f2(0x292)]();}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x327),(_0x1c58a2,_0x154d1b)=>{const _0x3c49e0=_0x50ffe7;this[_0x3c49e0(0x2c1)][_0x3c49e0(0x318)](_0x154d1b['id']);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x2ef),(_0x26b9ec,_0x46748c,_0x55dd8c)=>{const _0x495039=_0x50ffe7;this[_0x495039(0x213)](_0x46748c,_0x55dd8c);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x2ae),(_0x119354,_0x48d092)=>{const _0x2c3a92=_0x50ffe7;_0x2c3a92(0x2a7)===_0x48d092[_0x2c3a92(0x22f)]?this[_0x2c3a92(0x2c1)][_0x2c3a92(0x2ce)](_0x48d092):this[_0x2c3a92(0x2c1)][_0x2c3a92(0x1f1)](_0x48d092);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x2a9),async(_0x2d03e3,_0x48e912)=>{const _0xd5cd0c=_0x50ffe7;await this[_0xd5cd0c(0x1e7)]({'reply':_0x48e912});}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x2b7),(_0x55cd02,{reply:_0x8851db,index:_0x2dcbab,state:_0x35c5bf})=>{const _0x2701a4=_0x50ffe7;this[_0x2701a4(0x2c1)][_0x2701a4(0x1d3)]({'id':_0x8851db['id'],'index':_0x2dcbab,'state':_0x35c5bf}),this[_0x2701a4(0x2a6)]?.[_0x2701a4(0x320)][_0x2701a4(0x1a7)](_0x8851db['id'])&&this[_0x2701a4(0x2a6)]?.[_0x2701a4(0x267)]==_0x2dcbab&&this[_0x2701a4(0x2bd)]?.[_0x2701a4(0x238)](_0x35c5bf);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x2cc),(_0x3f903b,_0x47771e)=>{const _0x21e40a=_0x50ffe7;if(this[_0x21e40a(0x2c1)][_0x21e40a(0x27a)](_0x47771e[_0x21e40a(0x329)],_0x47771e[_0x21e40a(0x20f)]),_0x21e40a(0x20c)===_0x47771e[_0x21e40a(0x329)][_0x21e40a(0x22f)]){const _0x17ed2f=[..._0x22d5bb(this[_0x21e40a(0x214)])[_0x21e40a(0x1e0)][_0x21e40a(0x2d1)][_0x21e40a(0x20c)][_0x21e40a(0x1b1)]()];this[_0x21e40a(0x2fd)][_0x21e40a(0x247)](_0x17ed2f,_0x21e40a(0x2c4)+this[_0x21e40a(0x1a9)]?.['id']);}}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x2b1),(_0x58b39c,_0x422d01)=>{const _0x3a21bc=_0x50ffe7;this[_0x3a21bc(0x2c1)][_0x3a21bc(0x233)](_0x422d01[_0x3a21bc(0x236)]),_0x3a21bc(0x27f)==_0x422d01[_0x3a21bc(0x236)]&&this[_0x3a21bc(0x1f0)](),_0x3a21bc(0x20c)===_0x422d01[_0x3a21bc(0x22f)]&&this[_0x3a21bc(0x2fd)][_0x3a21bc(0x28a)](_0x3a21bc(0x2c4)+this[_0x3a21bc(0x1a9)]?.['id']);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x289),(_0x82092b,_0x239909)=>{const _0x2e1570=_0x50ffe7;this[_0x2e1570(0x2c1)][_0x2e1570(0x269)](_0x239909[_0x2e1570(0x329)][_0x2e1570(0x236)],_0x239909[_0x2e1570(0x20f)]);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x24e),(_0x1490e6,_0x1d3798)=>{const _0x3f02e4=_0x50ffe7;this[_0x3f02e4(0x2c1)][_0x3f02e4(0x216)](_0x1d3798[_0x3f02e4(0x26a)]);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x22d),(_0x500f53,_0x391dbc)=>{const _0x40b19c=_0x50ffe7;this[_0x40b19c(0x2c1)][_0x40b19c(0x2f6)](_0x391dbc[_0x40b19c(0x2f5)]);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x25e),(_0x4dab87,_0x40a04c)=>{const _0x15d708=_0x50ffe7;this[_0x15d708(0x2c1)][_0x15d708(0x2cd)](_0x40a04c[_0x15d708(0x1ef)],_0x40a04c[_0x15d708(0x2cb)],_0x40a04c[_0x15d708(0x32b)],_0x40a04c[_0x15d708(0x2cf)]);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x1dd),(_0x2be9bd,_0xf66d9a)=>{const _0x17d499=_0x50ffe7;this[_0x17d499(0x2c1)][_0x17d499(0x306)](_0xf66d9a[_0x17d499(0x1ef)],_0xf66d9a[_0x17d499(0x1e8)],_0xf66d9a[_0x17d499(0x25a)]);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x1f8),(_0x38485f,_0x327e4d)=>{const _0x3456a9=_0x50ffe7;this[_0x3456a9(0x2c1)][_0x3456a9(0x1b8)](_0x327e4d);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x1f5),async(_0x5b85bd,_0x16b18c)=>{const _0x1c1e39=_0x50ffe7,_0x230a27=(await this[_0x1c1e39(0x230)][_0x1c1e39(0x295)]())[_0x1c1e39(0x276)](_0x13ee6d=>_0x13ee6d['id']===_0x16b18c[_0x1c1e39(0x1c6)]?.['id'])||null;this[_0x1c1e39(0x2c1)][_0x1c1e39(0x229)](_0x230a27,_0x16b18c[_0x1c1e39(0x205)]);}),this[_0x50ffe7(0x1a9)]['on'](_0x50ffe7(0x30c),(_0x56b90b,{error:_0xf38d8c,interactionId:_0x1ca3de,fileName:_0x11d636,url:_0x51e044,sourceId:_0x59cb85,sourceLabel:_0x2f63f8})=>{const _0x5031a0=_0x50ffe7,_0x1abee9=_0x1ca3de?_0x1ca3de+':'+_0xc400fc():_0xc400fc();_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x27e))?this[_0x5031a0(0x2c1)][_0x5031a0(0x27d)]({'staticMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x285)),'id':_0x1abee9}):_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x235))||_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x260))?(this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x32e)),'id':_0x1abee9}),this[_0x5031a0(0x25c)](_0xf38d8c)):_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x2fa))?this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x209),_0x11d636),'id':_0x1abee9}):_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x284))?this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x29a),_0x51e044),'id':_0x1abee9}):_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x31d))?this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x1e3)),'id':_0x1abee9}):_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x1db))?this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x303)),'id':_0x1abee9}):_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x30f))?(_0x59cb85&&this[_0x5031a0(0x2c1)][_0x5031a0(0x2ec)](_0x59cb85),this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x23e),_0x2f63f8||_0x5031a0(0x2cb)),'id':_0x1abee9}),this[_0x5031a0(0x25c)](_0xf38d8c)):_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x328))?(this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x1be)),'id':_0x1abee9}),this[_0x5031a0(0x25c)](_0xf38d8c)):_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x2a5))?(this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x222)),'id':_0x1abee9}),this[_0x5031a0(0x25c)](_0xf38d8c)):_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x2bb))?(this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x215)),'id':_0x1abee9}),this[_0x5031a0(0x25c)](_0xf38d8c)):_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x20d))?(this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x2dd)),'id':_0x1abee9}),this[_0x5031a0(0x25c)](_0xf38d8c)):_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x2e4))?(this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x310)),'id':_0x1abee9}),this[_0x5031a0(0x25c)](_0xf38d8c)):_0xf38d8c[_0x5031a0(0x2e9)][_0x5031a0(0x1c4)](_0x5031a0(0x1cd))?(this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x1af)),'id':_0x1abee9}),this[_0x5031a0(0x25c)](_0xf38d8c)):(this[_0x5031a0(0x2c1)][_0x5031a0(0x296)]({'errorMessage':_0x4e370c(this[_0x5031a0(0x214)][_0x5031a0(0x2c2)],_0x5031a0(0x274)),'id':_0x1abee9}),this[_0x5031a0(0x25c)](_0xf38d8c));}),await this[_0x50ffe7(0x1a9)][_0x50ffe7(0x234)](this[_0x50ffe7(0x214)][_0x50ffe7(0x311)][_0x50ffe7(0x232)](_0x50ffe7(0x321))),_0x161138||await this[_0x50ffe7(0x1a9)][_0x50ffe7(0x220)]();}async[_0x5027f0(0x1fd)]({userMessage:_0x4c13f6,attributes:_0x39503b}){const _0x49ec95=_0x5027f0;if(!this[_0x49ec95(0x1a9)])throw new _0x1cac1d(_0x49ec95(0x2b3));if(this[_0x49ec95(0x1a9)][_0x49ec95(0x1e2)]()){const _0xce98f8=await this[_0x49ec95(0x2fd)][_0x49ec95(0x253)]();await this[_0x49ec95(0x1a9)][_0x49ec95(0x1ed)](_0xce98f8);}this[_0x49ec95(0x1a9)]['id']&&this[_0x49ec95(0x1a9)][_0x49ec95(0x1ce)]&&await this[_0x49ec95(0x1a9)][_0x49ec95(0x1bd)]({'userMessage':_0x4c13f6,'attributes':_0x39503b});}[_0x5027f0(0x1ff)](){const _0x4fad0d=_0x5027f0;console[_0x4fad0d(0x2b5)](_0x4fad0d(0x319));}[_0x5027f0(0x268)](_0x19f736){const _0x3ed95d=_0x5027f0;this[_0x3ed95d(0x2c1)][_0x3ed95d(0x2a8)](_0x19f736);}[_0x5027f0(0x25c)](_0x27d80d){const _0x5ee159=_0x5027f0;_0x5d39d3(_0x27d80d[_0x5ee159(0x2e9)]);}[_0x5027f0(0x1e6)](_0x4be07a){const _0x3b6c02=_0x5027f0;this[_0x3b6c02(0x1a9)]?.[_0x3b6c02(0x286)](_0x4be07a);}[_0x5027f0(0x2d5)](){const _0x555cbb=_0x5027f0;this[_0x555cbb(0x1a9)]?.[_0x555cbb(0x1e9)]();}[_0x5027f0(0x2d7)](){const _0x3b0955=_0x5027f0;this[_0x3b0955(0x1a9)]?.[_0x3b0955(0x1b5)]();}[_0x5027f0(0x1aa)](_0x1fbd43){const _0x35f1a6=_0x5027f0,[_0x189731,_0xf5ee14]=_0x1fbd43[_0x35f1a6(0x25f)](':'),_0x501d12=this[_0x35f1a6(0x1a9)][_0x35f1a6(0x1c0)](_0x189731),_0x44656f=_0x501d12[_0x35f1a6(0x210)](_0xf5ee14);return{'interaction':_0x501d12,'reply':_0x44656f};}[_0x5027f0(0x2bf)](_0x43cbf5,_0x31d935=!0x1){const _0x514d09=_0x5027f0,_0x481c77=_0x22d5bb(this[_0x514d09(0x214)]),_0x1ba5f1={'target':_0x481c77[_0x514d09(0x20a)][_0x514d09(0x258)][_0x514d09(0x278)][_0x514d09(0x227)](_0x481c77[_0x514d09(0x20a)][_0x514d09(0x2b4)][_0x514d09(0x2ee)](_0x43cbf5)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x31d935};_0x31d935&&(_0x1ba5f1[_0x514d09(0x212)]=!0x0),_0x2d5201(_0x1ba5f1);}[_0x5027f0(0x213)](_0x410831,_0x2b702c=!0x1){const _0x1690fb=_0x5027f0;this[_0x1690fb(0x2c1)][_0x1690fb(0x2ef)](_0x410831||_0x4e370c(this[_0x1690fb(0x214)][_0x1690fb(0x2c2)],_0x1690fb(0x1ee)),_0x2b702c);}async[_0x5027f0(0x1e7)]({reply:_0x49d3e7,renderingStrategy:_0xa62801}){const _0x51f90e=_0x5027f0,{id:_0x345af0,interactionId:_0x238ce8,isDone:_0x373d9d,type:_0x11016e,parsedContent:_0x6cc0be}=_0x49d3e7,_0xf965a7=_0x238ce8+':'+_0x345af0;if(_0x51f90e(0x2af)===_0x11016e){const _0x2ec9fd=_0x49d3e7[_0x51f90e(0x1ac)]({'showDiff':this[_0x51f90e(0x2c1)][_0x51f90e(0x2df)]});await this[_0x51f90e(0x2c1)][_0x51f90e(0x314)]({'id':_0xf965a7,'parts':_0x2ec9fd,'renderingStrategy':_0xa62801,'isDone':_0x373d9d});}else _0x51f90e(0x2a7)===_0x11016e&&await this[_0x51f90e(0x2c1)][_0x51f90e(0x2f0)]({'id':_0xf965a7,'parsedContent':_0x6cc0be,'renderingStrategy':_0xa62801,'isDone':_0x373d9d});_0x373d9d&&_0x49d3e7[_0x51f90e(0x2e5)][_0x51f90e(0x219)]>0x0&&this[_0x51f90e(0x2c1)][_0x51f90e(0x2da)](_0xf965a7,_0x49d3e7[_0x51f90e(0x2e5)]);}async[_0x5027f0(0x218)](){const _0x1913c6=_0x5027f0,_0x2b52a5=this[_0x1913c6(0x1a9)]?.[_0x1913c6(0x263)];_0x2b52a5&&(_0x2b52a5[_0x1913c6(0x31b)](),this[_0x1913c6(0x2c1)][_0x1913c6(0x282)](_0x2b52a5));}async[_0x5027f0(0x261)](){const _0x13bef6=_0x5027f0,_0x590fe2=this[_0x13bef6(0x1a9)]?.[_0x13bef6(0x263)];if(_0x590fe2){for await(const _0x5af297 of _0x590fe2[_0x13bef6(0x2be)])await this[_0x13bef6(0x1e7)]({'reply':_0x5af297,'renderingStrategy':_0x13bef6(0x24f)});}}[_0x5027f0(0x2d2)](_0x31a737){const _0x365923=_0x5027f0,_0x2a2c45={'positiveCount':_0x31a737[_0x365923(0x2a4)][_0x365923(0x29e)](_0x5b0194=>_0x365923(0x246)===_0x5b0194[_0x365923(0x299)])[_0x365923(0x219)],'totalCount':_0x31a737[_0x365923(0x2a4)][_0x365923(0x219)],'modificationId':_0x31a737['id']},_0xdd06ef=this[_0x365923(0x1a9)][_0x365923(0x1c0)](_0x31a737[_0x365923(0x2d0)])[_0x365923(0x305)];_0xdd06ef&&this[_0x365923(0x1fb)][_0x365923(0x2f2)](this[_0x365923(0x1a9)]['id'],_0xdd06ef,_0x2a2c45);}[_0x5027f0(0x2b6)](_0x36d585){const _0x2d398d=_0x5027f0;let _0x4bc403=null,_0x463a40=null;this['on'](_0x2d398d(0x244),(_0x18eb2f,_0x383f35,_0xfa60b)=>{const _0x5b80a2=_0x2d398d;_0xfa60b['id']!==_0x4bc403&&(_0x4bc403=_0xfa60b['id'],_0x463a40=this[_0x5b80a2(0x1d8)](_0xfa60b)),_0x36d585(_0x383f35,_0x463a40);});}[_0x5027f0(0x1d8)](_0x4e4638){const _0x344f20=_0x5027f0,_0x4296ef=this[_0x344f20(0x2c1)],_0x1a4110=()=>{const _0x4c55b1=_0x344f20;_0x4e4638[_0x4c55b1(0x2fe)](),_0x4e4638[_0x4c55b1(0x24c)](),_0x4296ef[_0x4c55b1(0x1c5)]();},_0x3ac5f2=()=>{const _0x172671=_0x344f20;_0x4e4638[_0x172671(0x1e1)]&&(_0x4e4638[_0x172671(0x1e1)][_0x172671(0x2a2)](),_0x4e4638[_0x172671(0x1e1)]=void 0x0);};return{'insertTextReply':(_0x4f1a1a,_0x1066ab)=>{const _0x107bc6=_0x344f20;_0x3ac5f2(),_0x1a4110();const _0x47cebb=_0x4e4638[_0x107bc6(0x1e1)]=_0x4e4638[_0x107bc6(0x2de)]({'type':_0x107bc6(0x2a7),'interactionId':_0x4e4638['id'],'content':_0x4f1a1a,'id':_0x1066ab||_0xc400fc()});return _0x3ac5f2(),_0x47cebb;},'insertCustomElement':async(_0x314e34,_0x596ec9)=>(_0x3ac5f2(),_0x1a4110(),_0x4296ef[_0x344f20(0x26e)](_0x314e34,_0x596ec9||_0xc400fc())),'setLoadingMessage':_0x180ecc=>{const _0x5b2186=_0x344f20;_0x4296ef[_0x5b2186(0x226)](_0x180ecc);},'clearLoadingMessage':()=>{const _0xdaf9d3=_0x344f20;_0x4296ef[_0xdaf9d3(0x1c5)]();}};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1991b4=_0x2d92;(function(_0x34eb97,_0x43575e){const _0x3098da=_0x2d92,_0x1d0c5e=_0x34eb97();while(!![]){try{const _0x57a2b2=parseInt(_0x3098da(0x1a5))/0x1+-parseInt(_0x3098da(0x1c9))/0x2*(-parseInt(_0x3098da(0x20e))/0x3)+parseInt(_0x3098da(0x227))/0x4+-parseInt(_0x3098da(0x1d0))/0x5*(-parseInt(_0x3098da(0x1c3))/0x6)+-parseInt(_0x3098da(0x1da))/0x7*(parseInt(_0x3098da(0x1b0))/0x8)+parseInt(_0x3098da(0x1f7))/0x9+parseInt(_0x3098da(0x1fd))/0xa*(-parseInt(_0x3098da(0x1e9))/0xb);if(_0x57a2b2===_0x43575e)break;else _0x1d0c5e['push'](_0x1d0c5e['shift']());}catch(_0x38b666){_0x1d0c5e['push'](_0x1d0c5e['shift']());}}}(_0x30df,0x650c6));import{ContextPlugin as _0x415174}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x23ad55}from'ckeditor5/src/utils.js';import{AIChatView as _0x1367a0}from'./ui/aichatview.js';import{AITabs as _0xd3db3}from'../aitabs/aitabs.js';function _0x2d92(_0x2096bf,_0x12beb7){const _0x30df45=_0x30df();return _0x2d92=function(_0x2d92cf,_0xcc9804){_0x2d92cf=_0x2d92cf-0x176;let _0x98659e=_0x30df45[_0x2d92cf];return _0x98659e;},_0x2d92(_0x2096bf,_0x12beb7);}import{getTranslation as _0x23f727}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x355c86}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x1ffc5e}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x464f05}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x185abc}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x5f090e}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x22d29b}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x30df(){const _0x244404=['setConversationTitle','setIsUploadInProgress','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','677800EZgwtY','_titleAnimationInterval','setModelList','updateWebSources','prepareLoadingMessage','attributes','setSelectedModel','interaction-header','queueEmptyPromise','isDone','setFeedItemAIReplySuggestionPartActive','AIChatUI','setInputPlaceholder','value','bind','delegate','setModel','areActionsDisabled','requires','chatControls','ai.chat.welcomeMessage','view','setPromptInputValue','ai-suggestion-reply','chatFeed','getItemIds','capabilities','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','filter','label','renderingStrategy','set','startInteraction','ai.availableReplyActions','</p>','scrollToSuggestion','<p>','displayedPrompt','focusPromptInput','remove','enqueue','setIsMaximized','toggleSuggestionDisplayMode','startsWith','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','abort','showResizeButton','addFeedItemAISuggestion','removeFeedInteraction','updateCapabilities','221085DWLesT','isOfficialPlugin','addTab','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','setAddContextOptions','enableControls','interactionId','addFeedItemUserMessage','removeItem','destroy','closeSourceResourceBalloon','5442792AWTMzV','clearConversationContextUI','addFeedItemStaticMessage','chatHeader','isWebSearchEnabled','populateSourceResourceBalloon','error-message','streaming','AI_CHAT_WELCOME_MESSAGE','values','enableModelSelector','setSuggestionPartActive','markFeedItemAsDone','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','finishInteraction','setLoadingMessage','_getInputPlaceholder','addContextItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','66ZecSGc','pluginName','ai.chat.context.searchInputVisibleFrom','stopInteraction','updateFeedItemAIReplySuggestionContent','TrackChanges','15680TdJaYF','toggleLoadingSkeleton','conversation-start','createConversation','isMaximized','isPremiumPlugin','availableModels','1340fwGMxd','_interactionPromiseResolver','_animateConversationTitle','find','addFeedItemError','fire','options','resetConversationTitle','insertSuggestion','updateFeedItemAIReplySources','7eIyyOU','from','isDisabled','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','setFeedItemRenderingStrategy','userMessage','scrollFeedToSuggestion','hasItem','resetMessageInput','startAutoScroll','stopAutoScroll','setWebSearch','isPending','setContextItemLoading','55uEtZsB','clearLoadingMessage','trackChanges','markItemAsDone','has','isModelAvailable','chat','conversationCreated','removeFeedItem','user-message','context','setConversationContext','updateFeedInteractionHeader','length','6107985dxcTCW','locale','custom-element','disableControls','isReasoningEnabled','forEach','1570850MyRDgq','ai-reply','updateSuggestionItem','get','updateResourceState','clearPendingContextUI','hasFeedItem','commands','isTrackChangesOn','AI_CHAT_HEADING','_promiseQueue','_view','updateFeedItemAIReplySuggestionPartState','updateSuggestionPartState','addFeedInteractionHeader','setReasoning','clear','309KGdDzf','config','then','isLoading','_isTrackChangesCommandValueBound','addFeedItemAIReply','feedItemRenderingStrategy','isVisible','last','contextItems','addItem','updateReplyItem','children','removeContextItem','plugins','showDiff','updateFeedItemAIReplyContent','AITabs','isBusy','addFeedItemCustomElement','ai.models.showModelSelector','disableModelSelector'];_0x30df=function(){return _0x244404;};return _0x30df();}export class AIChatUI extends _0x415174{static get[_0x1991b4(0x185)](){return[_0xd3db3];}[_0x1991b4(0x208)];static get[_0x1991b4(0x1c4)](){const _0x4d9190=_0x1991b4;return _0x4d9190(0x17e);}static get[_0x1991b4(0x1a6)](){return!0x0;}static get[_0x1991b4(0x1ce)](){return!0x0;}[_0x1991b4(0x214)]=_0x1991b4(0x1b7);[_0x1991b4(0x21d)]=!0x0;[_0x1991b4(0x207)];[_0x1991b4(0x1d1)];[_0x1991b4(0x228)]=void 0x0;[_0x1991b4(0x212)]=!0x1;constructor(_0x80c29b){const _0x5a367e=_0x1991b4;super(_0x80c29b);const _0x2597c6=this[_0x5a367e(0x1f3)][_0x5a367e(0x21c)][_0x5a367e(0x200)](_0x5a367e(0x21f));this[_0x5a367e(0x192)](_0x5a367e(0x220),!0x1),this[_0x5a367e(0x207)]=new _0x464f05(),this[_0x5a367e(0x208)]=new _0x1367a0(this[_0x5a367e(0x1f3)][_0x5a367e(0x1f8)],{'showResizeButton':_0x2597c6[_0x5a367e(0x1a1)],'contextResourcesSearchInputVisibleFrom':this[_0x5a367e(0x1f3)][_0x5a367e(0x20f)][_0x5a367e(0x200)](_0x5a367e(0x1c5))}),this[_0x5a367e(0x208)][_0x5a367e(0x182)](..._0x185abc)['to'](this),this[_0x5a367e(0x208)]['on'](_0x5a367e(0x19d),(_0x5e265f,{showDiff:_0x4b41b6})=>{const _0x4a025c=_0x5a367e;this[_0x4a025c(0x21d)]=_0x4b41b6;}),_0x2597c6[_0x5a367e(0x188)][_0x5a367e(0x1a7)]({'id':_0x5a367e(0x1ef),'buttonLabel':_0x23f727(this[_0x5a367e(0x1f3)][_0x5a367e(0x1f8)],_0x5a367e(0x206)),'buttonIcon':_0x355c86,'order':0x0,'content':this[_0x5a367e(0x208)]}),this[_0x5a367e(0x208)][_0x5a367e(0x186)][_0x5a367e(0x181)](_0x5a367e(0x211))['to'](this,_0x5a367e(0x220),_0x2d4b3e=>_0x2d4b3e),this[_0x5a367e(0x208)][_0x5a367e(0x18b)][_0x5a367e(0x181)](_0x5a367e(0x1e7))['to'](this,_0x5a367e(0x220),_0x11b3e5=>_0x11b3e5),this[_0x5a367e(0x208)][_0x5a367e(0x186)][_0x5a367e(0x17f)](this[_0x5a367e(0x1c0)]()),this[_0x5a367e(0x181)](_0x5a367e(0x1ee))['to'](this[_0x5a367e(0x208)][_0x5a367e(0x186)],_0x5a367e(0x1ee));}[_0x1991b4(0x1ae)](){const _0x20ff53=_0x1991b4;super[_0x20ff53(0x1ae)](),this[_0x20ff53(0x228)]&&clearInterval(this[_0x20ff53(0x228)]);}[_0x1991b4(0x1cc)](_0x751f2){const _0x405a89=_0x1991b4,_0x1afac7=this[_0x405a89(0x1f3)][_0x405a89(0x20f)][_0x405a89(0x200)](_0x405a89(0x187))??_0x23f727(this[_0x405a89(0x1f3)][_0x405a89(0x1f8)],_0x405a89(0x1b8));this[_0x405a89(0x208)][_0x405a89(0x18b)][_0x405a89(0x20d)](),this[_0x405a89(0x208)][_0x405a89(0x186)][_0x405a89(0x1ba)](),this[_0x405a89(0x208)][_0x405a89(0x186)][_0x405a89(0x229)](_0x751f2[_0x405a89(0x1cf)],!this[_0x405a89(0x1f3)][_0x405a89(0x20f)][_0x405a89(0x200)](_0x405a89(0x222))),this[_0x405a89(0x1b2)]({'id':_0x405a89(0x1cb),'staticMessage':_0x1afac7}),this[_0x405a89(0x1d5)](_0x405a89(0x1f0));}[_0x1991b4(0x1b2)]({id:_0x8f2306,staticMessage:_0x1b1931}){const _0x443a87=_0x1991b4;this[_0x443a87(0x208)][_0x443a87(0x18b)][_0x443a87(0x218)](_0x443a87(0x1fe),{'id':_0x8f2306,'initialContent':_0x443a87(0x197)+_0x1b1931+_0x443a87(0x195)});}[_0x1991b4(0x1ac)](_0x5a60b2){const _0x19be5d=_0x1991b4,_0x58b3eb=_0x5a60b2[_0x19be5d(0x178)]?.[_0x19be5d(0x198)]||_0x5a60b2[_0x19be5d(0x1e0)];this[_0x19be5d(0x208)][_0x19be5d(0x18b)][_0x19be5d(0x218)](_0x19be5d(0x1f2),{'contextItems':Array[_0x19be5d(0x1db)](_0x5a60b2[_0x19be5d(0x217)][_0x19be5d(0x1b9)]()),'initialContent':_0x19be5d(0x197)+_0x58b3eb+_0x19be5d(0x195),'id':_0x5a60b2['id']});}[_0x1991b4(0x1d4)]({errorMessage:_0x334368,id:_0x4c84c3}){const _0x2dfde8=_0x1991b4;this[_0x2dfde8(0x208)][_0x2dfde8(0x18b)][_0x2dfde8(0x218)](_0x2dfde8(0x1b6),{'initialContent':_0x2dfde8(0x197)+_0x334368+_0x2dfde8(0x195),'id':_0x4c84c3});}[_0x1991b4(0x213)](_0x5eff94){const _0x321a11=_0x1991b4;return this[_0x321a11(0x207)][_0x321a11(0x19b)](async()=>{const _0x155371=_0x321a11;this[_0x155371(0x208)][_0x155371(0x18b)][_0x155371(0x218)](_0x155371(0x1fe),{'id':_0x5eff94[_0x155371(0x1ab)]+':'+_0x5eff94['id']}),this[_0x155371(0x1ea)]();});}async[_0x1991b4(0x1a2)](_0x5df796){const _0x4ff100=_0x1991b4,_0x51f732=_0x5f090e(this[_0x4ff100(0x1f3)]);let _0x31d47=_0x51f732[_0x4ff100(0x20f)][_0x4ff100(0x200)](_0x4ff100(0x194))||[..._0x22d29b];if(_0x51f732[_0x4ff100(0x21c)][_0x4ff100(0x1ed)](_0x4ff100(0x1c8))){if(!this[_0x4ff100(0x212)]){this[_0x4ff100(0x212)]=!0x0;const _0x99cee=_0x51f732[_0x4ff100(0x204)][_0x4ff100(0x200)](_0x4ff100(0x1eb));this[_0x4ff100(0x208)][_0x4ff100(0x18b)][_0x4ff100(0x181)](_0x4ff100(0x205))['to'](_0x99cee,_0x4ff100(0x180));}}else _0x31d47=_0x31d47[_0x4ff100(0x18f)](_0x321298=>_0x4ff100(0x1d8)!=_0x321298);return this[_0x4ff100(0x207)][_0x4ff100(0x19b)](async()=>{const _0x2a0d0c=_0x4ff100;this[_0x2a0d0c(0x208)][_0x2a0d0c(0x18b)][_0x2a0d0c(0x218)](_0x2a0d0c(0x18a),{'id':_0x5df796[_0x2a0d0c(0x1ab)]+':'+_0x5df796['id'],'areActionsDisabled':_0x5df796[_0x2a0d0c(0x184)],'showDiff':this[_0x2a0d0c(0x21d)],'availableActions':_0x31d47}),this[_0x2a0d0c(0x1ea)]();});}[_0x1991b4(0x20b)](_0x1891d7,_0xc1572d){const _0x121997=_0x1991b4,_0x2b0cf5=this[_0x121997(0x208)][_0x121997(0x18b)][_0x121997(0x21a)][_0x121997(0x216)];if(_0x2b0cf5 instanceof _0x1ffc5e)return this[_0x121997(0x208)][_0x121997(0x18b)][_0x121997(0x21a)][_0x121997(0x19a)](_0x2b0cf5),void this[_0x121997(0x208)][_0x121997(0x18b)][_0x121997(0x218)](_0x121997(0x17a),{'id':_0x1891d7['id'],'capabilities':{'isWebSearchEnabled':_0x2b0cf5[_0x121997(0x18d)][_0x121997(0x1b4)]||_0xc1572d[_0x121997(0x1b4)],'isReasoningEnabled':_0x2b0cf5[_0x121997(0x18d)][_0x121997(0x1fb)]||_0xc1572d[_0x121997(0x1fb)]}});this[_0x121997(0x208)][_0x121997(0x18b)][_0x121997(0x218)](_0x121997(0x17a),{'id':_0x1891d7['id'],'capabilities':_0xc1572d});}async[_0x1991b4(0x221)](_0x4891c6,_0x3a1350){const _0xe0dfc9=_0x1991b4;let _0x4c6238;return await this[_0xe0dfc9(0x207)][_0xe0dfc9(0x19b)](async()=>{const _0x1086e1=_0xe0dfc9;_0x4c6238=this[_0x1086e1(0x208)][_0x1086e1(0x18b)][_0x1086e1(0x218)](_0x1086e1(0x1f9),{'content':_0x4891c6,'id':_0x3a1350});}),_0x4c6238;}[_0x1991b4(0x1f1)](_0x1b29db){const _0x280938=_0x1991b4;this[_0x280938(0x208)][_0x280938(0x18b)][_0x280938(0x1ad)](_0x1b29db);}[_0x1991b4(0x203)](_0x53585f){const _0x28af9b=_0x1991b4;return this[_0x28af9b(0x208)][_0x28af9b(0x18b)][_0x28af9b(0x1e2)](_0x53585f);}[_0x1991b4(0x1f5)](_0x3ea978){const _0x38ffba=_0x1991b4,_0x33fec9=this[_0x38ffba(0x208)][_0x38ffba(0x18b)][_0x38ffba(0x21a)][_0x38ffba(0x1d3)](_0x4015af=>_0x4015af[_0x38ffba(0x1d6)]['id']==_0x3ea978['id']&&_0x4015af instanceof _0x1ffc5e);_0x33fec9&&_0x33fec9[_0x38ffba(0x192)](_0x38ffba(0x215),_0x3ea978[_0x38ffba(0x215)]);}async[_0x1991b4(0x21e)](_0x18020a){const _0x3294a4=_0x1991b4,_0x3538cd=_0x18020a[_0x3294a4(0x191)]||this[_0x3294a4(0x214)];return this[_0x3294a4(0x207)][_0x3294a4(0x19b)](async _0x4540fb=>{const _0x249687=_0x3294a4;await this[_0x249687(0x208)][_0x249687(0x18b)][_0x249687(0x219)]({..._0x18020a,'abortSignal':_0x4540fb,'renderingStrategy':_0x3538cd}),_0x18020a[_0x249687(0x17c)]&&this[_0x249687(0x1bc)](_0x18020a['id']);});}[_0x1991b4(0x1d9)](_0x4ceae6,_0x512e8e){const _0x44fddd=_0x1991b4;this[_0x44fddd(0x208)][_0x44fddd(0x18b)][_0x44fddd(0x176)](_0x4ceae6,_0x512e8e);}async[_0x1991b4(0x1c7)](_0x575403){const _0x105cf0=_0x1991b4,_0x3c1e0d=_0x575403[_0x105cf0(0x191)]||this[_0x105cf0(0x214)];return this[_0x105cf0(0x207)][_0x105cf0(0x19b)](async _0x12dd31=>{const _0x1f4017=_0x105cf0;await this[_0x1f4017(0x208)][_0x1f4017(0x18b)][_0x1f4017(0x1ff)]({..._0x575403,'abortSignal':_0x12dd31,'renderingStrategy':_0x3c1e0d}),_0x575403[_0x1f4017(0x17c)]&&this[_0x1f4017(0x1bc)](_0x575403['id']);});}[_0x1991b4(0x209)](_0x46838f){const _0x338ef6=_0x1991b4;this[_0x338ef6(0x208)][_0x338ef6(0x18b)][_0x338ef6(0x20a)](_0x46838f);}[_0x1991b4(0x17d)](_0x1bc443){const _0x271ccd=_0x1991b4;this[_0x271ccd(0x208)][_0x271ccd(0x18b)][_0x271ccd(0x1bb)](_0x1bc443);}[_0x1991b4(0x1bc)](_0x6c6b58){const _0x36de05=_0x1991b4;this[_0x36de05(0x208)][_0x36de05(0x18b)][_0x36de05(0x1ec)](_0x6c6b58);}[_0x1991b4(0x1a3)](_0x557eed){const _0x228473=_0x1991b4;this[_0x228473(0x208)][_0x228473(0x18b)][_0x228473(0x18c)]()[_0x228473(0x18f)](_0x2b5786=>_0x2b5786[_0x228473(0x19e)](_0x557eed))[_0x228473(0x1fc)](_0xfceef0=>this[_0x228473(0x208)][_0x228473(0x18b)][_0x228473(0x1ad)](_0xfceef0));}[_0x1991b4(0x193)](){const _0x12ee4d=_0x1991b4,_0x2cc579=this[_0x12ee4d(0x177)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x12ee4d(0x1bf)](_0x2cc579),this[_0x12ee4d(0x208)][_0x12ee4d(0x186)][_0x12ee4d(0x223)](!this[_0x12ee4d(0x1f3)][_0x12ee4d(0x20f)][_0x12ee4d(0x200)](_0x12ee4d(0x222))),this[_0x12ee4d(0x220)]=!0x0,this[_0x12ee4d(0x208)][_0x12ee4d(0x18b)][_0x12ee4d(0x1e4)]();}[_0x1991b4(0x1c6)](_0x3260f1){const _0x36623c=_0x1991b4;this[_0x36623c(0x207)][_0x36623c(0x1a0)](),this[_0x36623c(0x208)][_0x36623c(0x18b)][_0x36623c(0x18c)]()[_0x36623c(0x18f)](_0x28d3d2=>_0x28d3d2[_0x36623c(0x19e)](_0x3260f1['id']))[_0x36623c(0x1fc)](_0x158761=>this[_0x36623c(0x1bc)](_0x158761)),this[_0x36623c(0x220)]=!0x1,this[_0x36623c(0x208)][_0x36623c(0x18b)][_0x36623c(0x1e5)]();}async[_0x1991b4(0x1be)](){const _0x5d95af=_0x1991b4;return this[_0x5d95af(0x207)][_0x5d95af(0x17b)][_0x5d95af(0x210)](()=>{const _0x47f5c6=_0x5d95af;this[_0x47f5c6(0x220)]=!0x1,this[_0x47f5c6(0x208)][_0x47f5c6(0x18b)][_0x47f5c6(0x1e5)]();});}[_0x1991b4(0x1c1)](_0x58dc11,_0x36b9de){const _0x25abac=_0x1991b4;this[_0x25abac(0x208)][_0x25abac(0x186)][_0x25abac(0x1c1)](_0x58dc11,_0x36b9de);}[_0x1991b4(0x21b)](_0x3f9fb9){const _0x17e497=_0x1991b4;this[_0x17e497(0x208)][_0x17e497(0x186)][_0x17e497(0x21b)](_0x3f9fb9);}[_0x1991b4(0x1e8)](_0x572ee1,_0x5152d3){const _0x37d5e8=_0x1991b4;this[_0x37d5e8(0x208)][_0x37d5e8(0x186)][_0x37d5e8(0x1e8)](_0x572ee1,_0x5152d3);}[_0x1991b4(0x225)](_0x3724b7){const _0x2fb22c=_0x1991b4;this[_0x2fb22c(0x208)][_0x2fb22c(0x186)][_0x2fb22c(0x225)](_0x3724b7);}[_0x1991b4(0x1f4)](_0x49a9de){const _0x2748f2=_0x1991b4;this[_0x2748f2(0x208)][_0x2748f2(0x186)][_0x2748f2(0x1f4)](_0x49a9de);}[_0x1991b4(0x202)](){const _0x3c5e63=_0x1991b4;this[_0x3c5e63(0x208)][_0x3c5e63(0x186)][_0x3c5e63(0x202)]();}[_0x1991b4(0x1b1)](){const _0x2eb296=_0x1991b4;this[_0x2eb296(0x208)][_0x2eb296(0x186)][_0x2eb296(0x1b1)]();}[_0x1991b4(0x201)](_0x13e1de,_0x396778,_0x2cbc96){const _0x48b2f3=_0x1991b4;this[_0x48b2f3(0x208)][_0x48b2f3(0x186)][_0x48b2f3(0x201)](_0x13e1de,_0x396778,_0x2cbc96);}[_0x1991b4(0x1e3)](){const _0x45b55c=_0x1991b4;this[_0x45b55c(0x208)][_0x45b55c(0x186)][_0x45b55c(0x1e3)](),this[_0x45b55c(0x208)][_0x45b55c(0x186)][_0x45b55c(0x17f)](this[_0x45b55c(0x1c0)]());}[_0x1991b4(0x1a9)](_0x3bd381){const _0x520c04=_0x1991b4;this[_0x520c04(0x208)][_0x520c04(0x186)][_0x520c04(0x1a9)](_0x3bd381);}[_0x1991b4(0x1a4)](_0xd2f85c){const _0x48dcc0=_0x1991b4;this[_0x48dcc0(0x208)][_0x48dcc0(0x186)][_0x48dcc0(0x1e6)](_0xd2f85c[_0x48dcc0(0x1b4)]),this[_0x48dcc0(0x208)][_0x48dcc0(0x186)][_0x48dcc0(0x20c)](_0xd2f85c[_0x48dcc0(0x1fb)]),this[_0x48dcc0(0x208)][_0x48dcc0(0x186)][_0x48dcc0(0x17f)](this[_0x48dcc0(0x1c0)](_0xd2f85c));}[_0x1991b4(0x179)](_0x41c5db,_0x18ba88){const _0x5e4d8d=_0x1991b4;this[_0x5e4d8d(0x208)][_0x5e4d8d(0x186)][_0x5e4d8d(0x183)](_0x41c5db),_0x18ba88&&this[_0x5e4d8d(0x208)][_0x5e4d8d(0x186)][_0x5e4d8d(0x223)](!0x1);}[_0x1991b4(0x1df)](_0xa57f41){const _0x255fc9=_0x1991b4;this[_0x255fc9(0x214)]=_0xa57f41;}[_0x1991b4(0x1ca)](_0x3efed0){const _0x135311=_0x1991b4;this[_0x135311(0x208)][_0x135311(0x18b)][_0x135311(0x1ca)](_0x3efed0);}[_0x1991b4(0x1d7)](){const _0x423b8f=_0x1991b4;this[_0x423b8f(0x224)](_0x23f727(this[_0x423b8f(0x1f3)][_0x423b8f(0x1f8)],_0x423b8f(0x206)));}[_0x1991b4(0x224)](_0x35dd17,_0x22fd74=!0x1){const _0x45b3d1=_0x1991b4;if(_0x22fd74&&!_0x23ad55()&&_0x35dd17[_0x45b3d1(0x1f6)])return this[_0x45b3d1(0x208)][_0x45b3d1(0x1b3)][_0x45b3d1(0x190)]='',void this[_0x45b3d1(0x1d2)](_0x35dd17);this[_0x45b3d1(0x208)][_0x45b3d1(0x1b3)][_0x45b3d1(0x190)]=_0x35dd17;}[_0x1991b4(0x1bf)](_0x1f80d6){const _0x589ec4=_0x1991b4;this[_0x589ec4(0x208)][_0x589ec4(0x18b)][_0x589ec4(0x1bf)](_0x1f80d6);}[_0x1991b4(0x1ea)](){const _0x1d9059=_0x1991b4;this[_0x1d9059(0x208)][_0x1d9059(0x18b)][_0x1d9059(0x1bf)]('');}[_0x1991b4(0x1d2)](_0x10ca18){const _0x25c417=_0x1991b4;let _0x4cfa5c=0x0;clearInterval(this[_0x25c417(0x228)]),this[_0x25c417(0x228)]=setInterval(()=>{const _0x26090a=_0x25c417;this[_0x26090a(0x208)][_0x26090a(0x1b3)][_0x26090a(0x190)]=this[_0x26090a(0x208)][_0x26090a(0x1b3)][_0x26090a(0x190)]+_0x10ca18[_0x4cfa5c],_0x4cfa5c++,_0x4cfa5c===_0x10ca18[_0x26090a(0x1f6)]&&clearInterval(this[_0x26090a(0x228)]);},0x1e);}[_0x1991b4(0x19c)](_0x44c3d8){const _0x112ea1=_0x1991b4;this[_0x112ea1(0x208)][_0x112ea1(0x1b3)][_0x112ea1(0x1cd)]=_0x44c3d8;}[_0x1991b4(0x177)](_0x2e32b3){const _0x12f3be=_0x1991b4;return _0x2e32b3[_0x12f3be(0x1b4)]&&_0x2e32b3[_0x12f3be(0x1fb)]?_0x23f727(this[_0x12f3be(0x1f3)][_0x12f3be(0x1f8)],_0x12f3be(0x1a8)):_0x2e32b3[_0x12f3be(0x1b4)]?_0x23f727(this[_0x12f3be(0x1f3)][_0x12f3be(0x1f8)],_0x12f3be(0x1de)):_0x2e32b3[_0x12f3be(0x1fb)]?_0x23f727(this[_0x12f3be(0x1f3)][_0x12f3be(0x1f8)],_0x12f3be(0x1bd)):_0x23f727(this[_0x12f3be(0x1f3)][_0x12f3be(0x1f8)],_0x12f3be(0x19f));}[_0x1991b4(0x1c0)](_0x4fbd93){const _0x5da173=_0x1991b4;return _0x4fbd93?_0x4fbd93[_0x5da173(0x1b4)]&&_0x4fbd93[_0x5da173(0x1fb)]?_0x23f727(this[_0x5da173(0x1f3)][_0x5da173(0x1f8)],_0x5da173(0x1c2)):_0x4fbd93[_0x5da173(0x1b4)]?_0x23f727(this[_0x5da173(0x1f3)][_0x5da173(0x1f8)],_0x5da173(0x1dd)):_0x4fbd93[_0x5da173(0x1fb)]?_0x23f727(this[_0x5da173(0x1f3)][_0x5da173(0x1f8)],_0x5da173(0x226)):_0x23f727(this[_0x5da173(0x1f3)][_0x5da173(0x1f8)],_0x5da173(0x18e)):_0x23f727(this[_0x5da173(0x1f3)][_0x5da173(0x1f8)],_0x5da173(0x18e));}[_0x1991b4(0x1b5)](_0x372509,_0x15d9c0,_0x2c6972,_0x49cac0){const _0x3d2d35=_0x1991b4;this[_0x3d2d35(0x208)][_0x3d2d35(0x1b5)](_0x372509,_0x15d9c0,_0x2c6972,_0x49cac0);}[_0x1991b4(0x1af)](_0x1bdfe3){const _0x82cafd=_0x1991b4;this[_0x82cafd(0x208)][_0x82cafd(0x1af)](_0x1bdfe3);}[_0x1991b4(0x189)](_0x5c2ffe){const _0x27a81d=_0x1991b4;this[_0x27a81d(0x208)][_0x27a81d(0x186)][_0x27a81d(0x189)](_0x5c2ffe);}[_0x1991b4(0x199)](_0x4485e5=!0x1){const _0x1f2bcb=_0x1991b4;this[_0x1f2bcb(0x208)][_0x1f2bcb(0x186)][_0x1f2bcb(0x199)](_0x4485e5);}[_0x1991b4(0x1e1)](_0x6334b,_0x30d881){const _0x2ccc2f=_0x1991b4;this[_0x2ccc2f(0x208)][_0x2ccc2f(0x18b)][_0x2ccc2f(0x196)](_0x6334b,_0x30d881);}[_0x1991b4(0x1e4)](){const _0x25ece0=_0x1991b4;this[_0x25ece0(0x208)][_0x25ece0(0x18b)][_0x25ece0(0x1e4)]();}[_0x1991b4(0x1fa)](){const _0x12d34b=_0x1991b4;this[_0x12d34b(0x208)][_0x12d34b(0x186)][_0x12d34b(0x1dc)]=!0x0;}[_0x1991b4(0x1aa)](){const _0x114da1=_0x1991b4;this[_0x114da1(0x208)][_0x114da1(0x186)][_0x114da1(0x1dc)]=!0x1;}}
23
+ const _0x6176ee=_0x3372;(function(_0x330b34,_0x3f6a03){const _0x4e8583=_0x3372,_0x1daa2d=_0x330b34();while(!![]){try{const _0x5ab1b3=parseInt(_0x4e8583(0x134))/0x1*(parseInt(_0x4e8583(0x1a7))/0x2)+-parseInt(_0x4e8583(0x14b))/0x3*(parseInt(_0x4e8583(0x1c8))/0x4)+parseInt(_0x4e8583(0x1d2))/0x5+parseInt(_0x4e8583(0x1a6))/0x6*(-parseInt(_0x4e8583(0x1e4))/0x7)+-parseInt(_0x4e8583(0x1d7))/0x8+-parseInt(_0x4e8583(0x17e))/0x9*(parseInt(_0x4e8583(0x163))/0xa)+parseInt(_0x4e8583(0x1a9))/0xb;if(_0x5ab1b3===_0x3f6a03)break;else _0x1daa2d['push'](_0x1daa2d['shift']());}catch(_0x2b52ff){_0x1daa2d['push'](_0x1daa2d['shift']());}}}(_0x2c6e,0xe8ada));function _0x3372(_0x146efa,_0x4c2446){const _0x2c6e2a=_0x2c6e();return _0x3372=function(_0x3372dc,_0x413e4b){_0x3372dc=_0x3372dc-0x133;let _0x52d912=_0x2c6e2a[_0x3372dc];return _0x52d912;},_0x3372(_0x146efa,_0x4c2446);}import{ContextPlugin as _0x1569d2}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x528ce3}from'ckeditor5/src/utils.js';import{AIChatView as _0x5e1a78}from'./ui/aichatview.js';function _0x2c6e(){const _0x2f0755=['isReasoningEnabled','updateFeedInteractionHeader','setFeedItemRenderingStrategy','locale','_getInputPlaceholder','interaction-header','config','renderingStrategy','populateSourceResourceBalloon','ai.availableReplyActions','isPending','<p>','88lcodXs','updateReplyItem','setPromptInputValue','isPremiumPlugin','from','TrackChanges','AI_CHAT_WELCOME_MESSAGE','updateCapabilities','enqueue','updateFeedItemAIReplyContent','3640075vcryXs','value','remove','focusPromptInput','markFeedItemAsDone','13083760ToOQSF','isLoading','AIChatUI','chatControls','setModel','addFeedItemAISuggestion','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','destroy','_animateConversationTitle','displayedPrompt','isModelAvailable','toggleSuggestionDisplayMode','view','70826EXHwgI','isOfficialPlugin','interactionId','conversation-start','404945YGgLpa','enableModelSelector','last','chatHeader','requires','updateSuggestionItem','set','toggleLoadingSkeleton','user-message','resetMessageInput','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','AITabs','get','custom-element','abort','startInteraction','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','streaming','plugins','contextItems','areActionsDisabled','options','showResizeButton','247404DpYbKP','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','removeContextItem','disableControls','length','setIsUploadInProgress','updateSuggestionPartState','setSelectedModel','_isTrackChangesCommandValueBound','filter','updateFeedItemAIReplySources','setReasoning','ai.chat.context.searchInputVisibleFrom','updateResourceState','AI_CHAT_HEADING','conversationCreated','finishInteraction','feedItemRenderingStrategy','isMaximized','setFeedItemAIReplySuggestionPartActive','isDisabled','_titleAnimationInterval','has','queueEmptyPromise','5903990oeDSUG','context','trackChanges','createConversation','find','addFeedItemStaticMessage','forEach','hasFeedItem','addItem','clearLoadingMessage','stopInteraction','addFeedItemUserMessage','capabilities','setInputPlaceholder','addFeedItemAIReply','isDone','attributes','</p>','isWebSearchEnabled','startsWith','removeFeedItem','ai.models.showModelSelector','pluginName','setConversationTitle','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','clearConversationContextUI','setWebSearch','9NoHUEQ','clear','enableControls','setConversationContext','updateFeedItemAIReplySuggestionContent','insertSuggestion','isTrackChangesOn','then','setLoadingMessage','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','setSuggestionPartActive','addFeedItemCustomElement','startAutoScroll','stopAutoScroll','ai-reply','scrollFeedToSuggestion','commands','error-message','setContextItemLoading','fire','chatFeed','bind','userMessage','showDiff','setIsMaximized','getItemIds','addFeedInteractionHeader','chat','hasItem','updateWebSources','setAddContextOptions','_interactionPromiseResolver','children','closeSourceResourceBalloon','addContextItem','_view','addFeedItemError','isBusy','prepareLoadingMessage','delegate','516gtofWR','2EhHMLX','removeItem','52034433GcAfRj','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','clearPendingContextUI','ai.chat.welcomeMessage','removeFeedInteraction','scrollToSuggestion','markItemAsDone','label','disableModelSelector','ai-suggestion-reply','addTab','availableModels','updateFeedItemAIReplySuggestionPartState','resetConversationTitle','isVisible','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','setModelList','values','_promiseQueue'];_0x2c6e=function(){return _0x2f0755;};return _0x2c6e();}import{AITabs as _0x1b72fe}from'../aitabs/aitabs.js';import{getTranslation as _0x14725c}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x306729}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x1be2dc}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x232a0b}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3ddcd3}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0xb3b154}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x5b5cb1}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x1569d2{static get[_0x6176ee(0x138)](){return[_0x1b72fe];}[_0x6176ee(0x1a1)];static get[_0x6176ee(0x179)](){const _0x513d3c=_0x6176ee;return _0x513d3c(0x1d9);}static get[_0x6176ee(0x1e5)](){return!0x0;}static get[_0x6176ee(0x1cb)](){return!0x0;}[_0x6176ee(0x15c)]=_0x6176ee(0x145);[_0x6176ee(0x195)]=!0x0;[_0x6176ee(0x1bb)];[_0x6176ee(0x19d)];[_0x6176ee(0x160)]=void 0x0;[_0x6176ee(0x153)]=!0x1;constructor(_0xf3cb99){const _0x423615=_0x6176ee;super(_0xf3cb99);const _0x30d50d=this[_0x423615(0x164)][_0x423615(0x146)][_0x423615(0x140)](_0x423615(0x13f));this[_0x423615(0x13a)](_0x423615(0x1a3),!0x1),this[_0x423615(0x1bb)]=new _0x232a0b(),this[_0x423615(0x1a1)]=new _0x5e1a78(this[_0x423615(0x164)][_0x423615(0x1bf)],{'showResizeButton':_0x30d50d[_0x423615(0x14a)],'contextResourcesSearchInputVisibleFrom':this[_0x423615(0x164)][_0x423615(0x1c2)][_0x423615(0x140)](_0x423615(0x157))}),this[_0x423615(0x1a1)][_0x423615(0x1a5)](..._0x3ddcd3)['to'](this),this[_0x423615(0x1a1)]['on'](_0x423615(0x1e2),(_0x4917f1,{showDiff:_0x8b5343})=>{const _0x2a7857=_0x423615;this[_0x2a7857(0x195)]=_0x8b5343;}),_0x30d50d[_0x423615(0x1e3)][_0x423615(0x1b3)]({'id':_0x423615(0x199),'buttonLabel':_0x14725c(this[_0x423615(0x164)][_0x423615(0x1bf)],_0x423615(0x159)),'buttonIcon':_0x306729,'order':0x0,'content':this[_0x423615(0x1a1)]}),this[_0x423615(0x1a1)][_0x423615(0x1da)][_0x423615(0x193)](_0x423615(0x1d8))['to'](this,_0x423615(0x1a3),_0x96e94e=>_0x96e94e),this[_0x423615(0x1a1)][_0x423615(0x192)][_0x423615(0x193)](_0x423615(0x1c6))['to'](this,_0x423615(0x1a3),_0x51fdc1=>_0x51fdc1),this[_0x423615(0x1a1)][_0x423615(0x1da)][_0x423615(0x170)](this[_0x423615(0x1c0)]()),this[_0x423615(0x193)](_0x423615(0x1e1))['to'](this[_0x423615(0x1a1)][_0x423615(0x1da)],_0x423615(0x1e1));}[_0x6176ee(0x1de)](){const _0x2878cc=_0x6176ee;super[_0x2878cc(0x1de)](),this[_0x2878cc(0x160)]&&clearInterval(this[_0x2878cc(0x160)]);}[_0x6176ee(0x166)](_0x430fd6){const _0x459b2b=_0x6176ee,_0x56f416=this[_0x459b2b(0x164)][_0x459b2b(0x1c2)][_0x459b2b(0x140)](_0x459b2b(0x1ac))??_0x14725c(this[_0x459b2b(0x164)][_0x459b2b(0x1bf)],_0x459b2b(0x1ce));this[_0x459b2b(0x1a1)][_0x459b2b(0x192)][_0x459b2b(0x17f)](),this[_0x459b2b(0x1a1)][_0x459b2b(0x1da)][_0x459b2b(0x135)](),this[_0x459b2b(0x1a1)][_0x459b2b(0x1da)][_0x459b2b(0x1b9)](_0x430fd6[_0x459b2b(0x1b4)],!this[_0x459b2b(0x164)][_0x459b2b(0x1c2)][_0x459b2b(0x140)](_0x459b2b(0x178))),this[_0x459b2b(0x168)]({'id':_0x459b2b(0x133),'staticMessage':_0x56f416}),this[_0x459b2b(0x191)](_0x459b2b(0x15a));}[_0x6176ee(0x168)]({id:_0x5c399d,staticMessage:_0x1b581e}){const _0xa0dada=_0x6176ee;this[_0xa0dada(0x1a1)][_0xa0dada(0x192)][_0xa0dada(0x16b)](_0xa0dada(0x18c),{'id':_0x5c399d,'initialContent':_0xa0dada(0x1c7)+_0x1b581e+_0xa0dada(0x174)});}[_0x6176ee(0x16e)](_0xcfceeb){const _0xfbe76a=_0x6176ee,_0x83cc8a=_0xcfceeb[_0xfbe76a(0x173)]?.[_0xfbe76a(0x1e0)]||_0xcfceeb[_0xfbe76a(0x194)];this[_0xfbe76a(0x1a1)][_0xfbe76a(0x192)][_0xfbe76a(0x16b)](_0xfbe76a(0x13c),{'contextItems':Array[_0xfbe76a(0x1cc)](_0xcfceeb[_0xfbe76a(0x147)][_0xfbe76a(0x1ba)]()),'initialContent':_0xfbe76a(0x1c7)+_0x83cc8a+_0xfbe76a(0x174),'id':_0xcfceeb['id']});}[_0x6176ee(0x1a2)]({errorMessage:_0x333121,id:_0x1efd07}){const _0x448de7=_0x6176ee;this[_0x448de7(0x1a1)][_0x448de7(0x192)][_0x448de7(0x16b)](_0x448de7(0x18f),{'initialContent':_0x448de7(0x1c7)+_0x333121+_0x448de7(0x174),'id':_0x1efd07});}[_0x6176ee(0x171)](_0x3e0c18){const _0x445668=_0x6176ee;return this[_0x445668(0x1bb)][_0x445668(0x1d0)](async()=>{const _0x33437c=_0x445668;this[_0x33437c(0x1a1)][_0x33437c(0x192)][_0x33437c(0x16b)](_0x33437c(0x18c),{'id':_0x3e0c18[_0x33437c(0x1e6)]+':'+_0x3e0c18['id']}),this[_0x33437c(0x16c)]();});}async[_0x6176ee(0x1dc)](_0x416653){const _0x3c8f4b=_0x6176ee,_0x326c72=_0xb3b154(this[_0x3c8f4b(0x164)]);let _0x5f49f0=_0x326c72[_0x3c8f4b(0x1c2)][_0x3c8f4b(0x140)](_0x3c8f4b(0x1c5))||[..._0x5b5cb1];if(_0x326c72[_0x3c8f4b(0x146)][_0x3c8f4b(0x161)](_0x3c8f4b(0x1cd))){if(!this[_0x3c8f4b(0x153)]){this[_0x3c8f4b(0x153)]=!0x0;const _0x9e09f1=_0x326c72[_0x3c8f4b(0x18e)][_0x3c8f4b(0x140)](_0x3c8f4b(0x165));this[_0x3c8f4b(0x1a1)][_0x3c8f4b(0x192)][_0x3c8f4b(0x193)](_0x3c8f4b(0x184))['to'](_0x9e09f1,_0x3c8f4b(0x1d3));}}else _0x5f49f0=_0x5f49f0[_0x3c8f4b(0x154)](_0x12f09b=>_0x3c8f4b(0x183)!=_0x12f09b);return this[_0x3c8f4b(0x1bb)][_0x3c8f4b(0x1d0)](async()=>{const _0x36b366=_0x3c8f4b;this[_0x36b366(0x1a1)][_0x36b366(0x192)][_0x36b366(0x16b)](_0x36b366(0x1b2),{'id':_0x416653[_0x36b366(0x1e6)]+':'+_0x416653['id'],'areActionsDisabled':_0x416653[_0x36b366(0x148)],'showDiff':this[_0x36b366(0x195)],'availableActions':_0x5f49f0}),this[_0x36b366(0x16c)]();});}[_0x6176ee(0x198)](_0x3b0493,_0x5ba4b8){const _0x1f17a5=_0x6176ee,_0x508704=this[_0x1f17a5(0x1a1)][_0x1f17a5(0x192)][_0x1f17a5(0x19e)][_0x1f17a5(0x136)];if(_0x508704 instanceof _0x1be2dc)return this[_0x1f17a5(0x1a1)][_0x1f17a5(0x192)][_0x1f17a5(0x19e)][_0x1f17a5(0x1d4)](_0x508704),void this[_0x1f17a5(0x1a1)][_0x1f17a5(0x192)][_0x1f17a5(0x16b)](_0x1f17a5(0x1c1),{'id':_0x3b0493['id'],'capabilities':{'isWebSearchEnabled':_0x508704[_0x1f17a5(0x16f)][_0x1f17a5(0x175)]||_0x5ba4b8[_0x1f17a5(0x175)],'isReasoningEnabled':_0x508704[_0x1f17a5(0x16f)][_0x1f17a5(0x1bc)]||_0x5ba4b8[_0x1f17a5(0x1bc)]}});this[_0x1f17a5(0x1a1)][_0x1f17a5(0x192)][_0x1f17a5(0x16b)](_0x1f17a5(0x1c1),{'id':_0x3b0493['id'],'capabilities':_0x5ba4b8});}async[_0x6176ee(0x189)](_0x330de9,_0x40fb13){const _0x589265=_0x6176ee;let _0xbafbad;return await this[_0x589265(0x1bb)][_0x589265(0x1d0)](async()=>{const _0x3705ca=_0x589265;_0xbafbad=this[_0x3705ca(0x1a1)][_0x3705ca(0x192)][_0x3705ca(0x16b)](_0x3705ca(0x141),{'content':_0x330de9,'id':_0x40fb13});}),_0xbafbad;}[_0x6176ee(0x177)](_0x5aae1b){const _0x38f87a=_0x6176ee;this[_0x38f87a(0x1a1)][_0x38f87a(0x192)][_0x38f87a(0x1a8)](_0x5aae1b);}[_0x6176ee(0x16a)](_0x367ad4){const _0x3c6438=_0x6176ee;return this[_0x3c6438(0x1a1)][_0x3c6438(0x192)][_0x3c6438(0x19a)](_0x367ad4);}[_0x6176ee(0x1bd)](_0x57cd34){const _0x167208=_0x6176ee,_0xf7b64c=this[_0x167208(0x1a1)][_0x167208(0x192)][_0x167208(0x19e)][_0x167208(0x167)](_0x3ddb3b=>_0x3ddb3b[_0x167208(0x149)]['id']==_0x57cd34['id']&&_0x3ddb3b instanceof _0x1be2dc);_0xf7b64c&&_0xf7b64c[_0x167208(0x13a)](_0x167208(0x1b7),_0x57cd34[_0x167208(0x1b7)]);}async[_0x6176ee(0x1d1)](_0x382487){const _0x456289=_0x6176ee,_0x3ef3e6=_0x382487[_0x456289(0x1c3)]||this[_0x456289(0x15c)];return this[_0x456289(0x1bb)][_0x456289(0x1d0)](async _0x14e4b4=>{const _0x42a398=_0x456289;await this[_0x42a398(0x1a1)][_0x42a398(0x192)][_0x42a398(0x1c9)]({..._0x382487,'abortSignal':_0x14e4b4,'renderingStrategy':_0x3ef3e6}),_0x382487[_0x42a398(0x172)]&&this[_0x42a398(0x1d6)](_0x382487['id']);});}[_0x6176ee(0x155)](_0x1a13d2,_0x3d66e6){const _0x1894b9=_0x6176ee;this[_0x1894b9(0x1a1)][_0x1894b9(0x192)][_0x1894b9(0x19b)](_0x1a13d2,_0x3d66e6);}async[_0x6176ee(0x182)](_0x4110a7){const _0x15561b=_0x6176ee,_0x50e8c8=_0x4110a7[_0x15561b(0x1c3)]||this[_0x15561b(0x15c)];return this[_0x15561b(0x1bb)][_0x15561b(0x1d0)](async _0x246d1e=>{const _0x25c137=_0x15561b;await this[_0x25c137(0x1a1)][_0x25c137(0x192)][_0x25c137(0x139)]({..._0x4110a7,'abortSignal':_0x246d1e,'renderingStrategy':_0x50e8c8}),_0x4110a7[_0x25c137(0x172)]&&this[_0x25c137(0x1d6)](_0x4110a7['id']);});}[_0x6176ee(0x1b5)](_0x3607ab){const _0x1991fb=_0x6176ee;this[_0x1991fb(0x1a1)][_0x1991fb(0x192)][_0x1991fb(0x151)](_0x3607ab);}[_0x6176ee(0x15e)](_0xb88e58){const _0x10f148=_0x6176ee;this[_0x10f148(0x1a1)][_0x10f148(0x192)][_0x10f148(0x188)](_0xb88e58);}[_0x6176ee(0x1d6)](_0x9b3874){const _0x36f9bf=_0x6176ee;this[_0x36f9bf(0x1a1)][_0x36f9bf(0x192)][_0x36f9bf(0x1af)](_0x9b3874);}[_0x6176ee(0x1ad)](_0x4a1fea){const _0x18869e=_0x6176ee;this[_0x18869e(0x1a1)][_0x18869e(0x192)][_0x18869e(0x197)]()[_0x18869e(0x154)](_0x52ad8b=>_0x52ad8b[_0x18869e(0x176)](_0x4a1fea))[_0x18869e(0x169)](_0x2cef57=>this[_0x18869e(0x1a1)][_0x18869e(0x192)][_0x18869e(0x1a8)](_0x2cef57));}[_0x6176ee(0x143)](){const _0x3a6123=_0x6176ee,_0x349840=this[_0x3a6123(0x1a4)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x3a6123(0x186)](_0x349840),this[_0x3a6123(0x1a1)][_0x3a6123(0x1da)][_0x3a6123(0x1b1)](!this[_0x3a6123(0x164)][_0x3a6123(0x1c2)][_0x3a6123(0x140)](_0x3a6123(0x178))),this[_0x3a6123(0x1a3)]=!0x0,this[_0x3a6123(0x1a1)][_0x3a6123(0x192)][_0x3a6123(0x18a)]();}[_0x6176ee(0x16d)](_0x28e7ec){const _0x1da42b=_0x6176ee;this[_0x1da42b(0x1bb)][_0x1da42b(0x142)](),this[_0x1da42b(0x1a1)][_0x1da42b(0x192)][_0x1da42b(0x197)]()[_0x1da42b(0x154)](_0x5d3d65=>_0x5d3d65[_0x1da42b(0x176)](_0x28e7ec['id']))[_0x1da42b(0x169)](_0x2b4387=>this[_0x1da42b(0x1d6)](_0x2b4387)),this[_0x1da42b(0x1a3)]=!0x1,this[_0x1da42b(0x1a1)][_0x1da42b(0x192)][_0x1da42b(0x18b)]();}async[_0x6176ee(0x15b)](){const _0x2be500=_0x6176ee;return this[_0x2be500(0x1bb)][_0x2be500(0x162)][_0x2be500(0x185)](()=>{const _0x11a149=_0x2be500;this[_0x11a149(0x1a3)]=!0x1,this[_0x11a149(0x1a1)][_0x11a149(0x192)][_0x11a149(0x18b)]();});}[_0x6176ee(0x1a0)](_0x3f1cbb,_0x3b2736){const _0xa29896=_0x6176ee;this[_0xa29896(0x1a1)][_0xa29896(0x1da)][_0xa29896(0x1a0)](_0x3f1cbb,_0x3b2736);}[_0x6176ee(0x14d)](_0x1ab714){const _0x469bb8=_0x6176ee;this[_0x469bb8(0x1a1)][_0x469bb8(0x1da)][_0x469bb8(0x14d)](_0x1ab714);}[_0x6176ee(0x190)](_0x139771,_0x3bcaa5){const _0x192d83=_0x6176ee;this[_0x192d83(0x1a1)][_0x192d83(0x1da)][_0x192d83(0x190)](_0x139771,_0x3bcaa5);}[_0x6176ee(0x150)](_0x302fec){const _0x80c778=_0x6176ee;this[_0x80c778(0x1a1)][_0x80c778(0x1da)][_0x80c778(0x150)](_0x302fec);}[_0x6176ee(0x181)](_0x2f8d56){const _0x31e5cd=_0x6176ee;this[_0x31e5cd(0x1a1)][_0x31e5cd(0x1da)][_0x31e5cd(0x181)](_0x2f8d56);}[_0x6176ee(0x1ab)](){const _0x459309=_0x6176ee;this[_0x459309(0x1a1)][_0x459309(0x1da)][_0x459309(0x1ab)]();}[_0x6176ee(0x17c)](){const _0x44849a=_0x6176ee;this[_0x44849a(0x1a1)][_0x44849a(0x1da)][_0x44849a(0x17c)]();}[_0x6176ee(0x158)](_0xd983b8,_0x10c61f,_0x5204ee){const _0x466d1f=_0x6176ee;this[_0x466d1f(0x1a1)][_0x466d1f(0x1da)][_0x466d1f(0x158)](_0xd983b8,_0x10c61f,_0x5204ee);}[_0x6176ee(0x13d)](){const _0x19bfa8=_0x6176ee;this[_0x19bfa8(0x1a1)][_0x19bfa8(0x1da)][_0x19bfa8(0x13d)](),this[_0x19bfa8(0x1a1)][_0x19bfa8(0x1da)][_0x19bfa8(0x170)](this[_0x19bfa8(0x1c0)]());}[_0x6176ee(0x19c)](_0x8f028d){const _0x3ea6d0=_0x6176ee;this[_0x3ea6d0(0x1a1)][_0x3ea6d0(0x1da)][_0x3ea6d0(0x19c)](_0x8f028d);}[_0x6176ee(0x1cf)](_0x850559){const _0x548a1c=_0x6176ee;this[_0x548a1c(0x1a1)][_0x548a1c(0x1da)][_0x548a1c(0x17d)](_0x850559[_0x548a1c(0x175)]),this[_0x548a1c(0x1a1)][_0x548a1c(0x1da)][_0x548a1c(0x156)](_0x850559[_0x548a1c(0x1bc)]),this[_0x548a1c(0x1a1)][_0x548a1c(0x1da)][_0x548a1c(0x170)](this[_0x548a1c(0x1c0)](_0x850559));}[_0x6176ee(0x152)](_0x531099,_0x279a9b){const _0xf7a342=_0x6176ee;this[_0xf7a342(0x1a1)][_0xf7a342(0x1da)][_0xf7a342(0x1db)](_0x531099),_0x279a9b&&this[_0xf7a342(0x1a1)][_0xf7a342(0x1da)][_0xf7a342(0x1b1)](!0x1);}[_0x6176ee(0x1be)](_0x5aa570){const _0x128f59=_0x6176ee;this[_0x128f59(0x15c)]=_0x5aa570;}[_0x6176ee(0x13b)](_0x544f4a){const _0x51ef6d=_0x6176ee;this[_0x51ef6d(0x1a1)][_0x51ef6d(0x192)][_0x51ef6d(0x13b)](_0x544f4a);}[_0x6176ee(0x1b6)](){const _0x4849cd=_0x6176ee;this[_0x4849cd(0x17a)](_0x14725c(this[_0x4849cd(0x164)][_0x4849cd(0x1bf)],_0x4849cd(0x159)));}[_0x6176ee(0x17a)](_0x38c819,_0x52914e=!0x1){const _0x300b5b=_0x6176ee;if(_0x52914e&&!_0x528ce3()&&_0x38c819[_0x300b5b(0x14f)])return this[_0x300b5b(0x1a1)][_0x300b5b(0x137)][_0x300b5b(0x1b0)]='',void this[_0x300b5b(0x1df)](_0x38c819);this[_0x300b5b(0x1a1)][_0x300b5b(0x137)][_0x300b5b(0x1b0)]=_0x38c819;}[_0x6176ee(0x186)](_0x36f530){const _0x3bddbe=_0x6176ee;this[_0x3bddbe(0x1a1)][_0x3bddbe(0x192)][_0x3bddbe(0x186)](_0x36f530);}[_0x6176ee(0x16c)](){const _0x5507da=_0x6176ee;this[_0x5507da(0x1a1)][_0x5507da(0x192)][_0x5507da(0x186)]('');}[_0x6176ee(0x1df)](_0x5c23df){const _0x72b48a=_0x6176ee;let _0x18754a=0x0;clearInterval(this[_0x72b48a(0x160)]),this[_0x72b48a(0x160)]=setInterval(()=>{const _0x1fc0d7=_0x72b48a;this[_0x1fc0d7(0x1a1)][_0x1fc0d7(0x137)][_0x1fc0d7(0x1b0)]=this[_0x1fc0d7(0x1a1)][_0x1fc0d7(0x137)][_0x1fc0d7(0x1b0)]+_0x5c23df[_0x18754a],_0x18754a++,_0x18754a===_0x5c23df[_0x1fc0d7(0x14f)]&&clearInterval(this[_0x1fc0d7(0x160)]);},0x1e);}[_0x6176ee(0x196)](_0x33c2e0){const _0xe54f81=_0x6176ee;this[_0xe54f81(0x1a1)][_0xe54f81(0x137)][_0xe54f81(0x15d)]=_0x33c2e0;}[_0x6176ee(0x1a4)](_0x10bc35){const _0x5c12cf=_0x6176ee;return _0x10bc35[_0x5c12cf(0x175)]&&_0x10bc35[_0x5c12cf(0x1bc)]?_0x14725c(this[_0x5c12cf(0x164)][_0x5c12cf(0x1bf)],_0x5c12cf(0x1dd)):_0x10bc35[_0x5c12cf(0x175)]?_0x14725c(this[_0x5c12cf(0x164)][_0x5c12cf(0x1bf)],_0x5c12cf(0x187)):_0x10bc35[_0x5c12cf(0x1bc)]?_0x14725c(this[_0x5c12cf(0x164)][_0x5c12cf(0x1bf)],_0x5c12cf(0x13e)):_0x14725c(this[_0x5c12cf(0x164)][_0x5c12cf(0x1bf)],_0x5c12cf(0x14c));}[_0x6176ee(0x1c0)](_0x3f8d15){const _0x1e6551=_0x6176ee;return _0x3f8d15?_0x3f8d15[_0x1e6551(0x175)]&&_0x3f8d15[_0x1e6551(0x1bc)]?_0x14725c(this[_0x1e6551(0x164)][_0x1e6551(0x1bf)],_0x1e6551(0x1aa)):_0x3f8d15[_0x1e6551(0x175)]?_0x14725c(this[_0x1e6551(0x164)][_0x1e6551(0x1bf)],_0x1e6551(0x17b)):_0x3f8d15[_0x1e6551(0x1bc)]?_0x14725c(this[_0x1e6551(0x164)][_0x1e6551(0x1bf)],_0x1e6551(0x144)):_0x14725c(this[_0x1e6551(0x164)][_0x1e6551(0x1bf)],_0x1e6551(0x1b8)):_0x14725c(this[_0x1e6551(0x164)][_0x1e6551(0x1bf)],_0x1e6551(0x1b8));}[_0x6176ee(0x1c4)](_0xa3dd50,_0x1125c6,_0x5e04d7,_0x4474ba){const _0x213f1e=_0x6176ee;this[_0x213f1e(0x1a1)][_0x213f1e(0x1c4)](_0xa3dd50,_0x1125c6,_0x5e04d7,_0x4474ba);}[_0x6176ee(0x19f)](_0x2d2d35){const _0x2377e0=_0x6176ee;this[_0x2377e0(0x1a1)][_0x2377e0(0x19f)](_0x2d2d35);}[_0x6176ee(0x1ca)](_0x52fb2f){const _0x4968ef=_0x6176ee;this[_0x4968ef(0x1a1)][_0x4968ef(0x1da)][_0x4968ef(0x1ca)](_0x52fb2f);}[_0x6176ee(0x1d5)](_0x596dbd=!0x1){const _0x341069=_0x6176ee;this[_0x341069(0x1a1)][_0x341069(0x1da)][_0x341069(0x1d5)](_0x596dbd);}[_0x6176ee(0x18d)](_0x3f2ae5,_0x10fbd2){const _0x1ad9ac=_0x6176ee;this[_0x1ad9ac(0x1a1)][_0x1ad9ac(0x192)][_0x1ad9ac(0x1ae)](_0x3f2ae5,_0x10fbd2);}[_0x6176ee(0x18a)](){const _0xdded36=_0x6176ee;this[_0xdded36(0x1a1)][_0xdded36(0x192)][_0xdded36(0x18a)]();}[_0x6176ee(0x14e)](){const _0x3e0fd2=_0x6176ee;this[_0x3e0fd2(0x1a1)][_0x3e0fd2(0x1da)][_0x3e0fd2(0x15f)]=!0x0;}[_0x6176ee(0x180)](){const _0x5ca518=_0x6176ee;this[_0x5ca518(0x1a1)][_0x5ca518(0x1da)][_0x5ca518(0x15f)]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39d083=_0x1a21;(function(_0xf3516f,_0x4cf5c8){const _0x29dcb4=_0x1a21,_0x2cf1e8=_0xf3516f();while(!![]){try{const _0xdadbdc=-parseInt(_0x29dcb4(0xf1))/0x1*(parseInt(_0x29dcb4(0x12f))/0x2)+-parseInt(_0x29dcb4(0xdd))/0x3*(-parseInt(_0x29dcb4(0x13f))/0x4)+-parseInt(_0x29dcb4(0x125))/0x5*(-parseInt(_0x29dcb4(0x157))/0x6)+-parseInt(_0x29dcb4(0x105))/0x7+-parseInt(_0x29dcb4(0x13a))/0x8+-parseInt(_0x29dcb4(0xf4))/0x9+parseInt(_0x29dcb4(0xdb))/0xa;if(_0xdadbdc===_0x4cf5c8)break;else _0x2cf1e8['push'](_0x2cf1e8['shift']());}catch(_0x388b03){_0x2cf1e8['push'](_0x2cf1e8['shift']());}}}(_0x55f1,0x9c51a));import{CKEditorError as _0x1a561e,ObservableMixin as _0x2f3895,uid as _0x117d6e}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x1f0fd5,AIContextTextResourceType as _0x3d6043}from'../../aicore/model/aicontext.js';import{escape as _0x4f66b0}from'es-toolkit/compat';import{errorsMap as _0x1665c2}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x39d083(0xfe),_0x39d083(0x107),_0x39d083(0x15b),_0x39d083(0x12e),_0x39d083(0xd6),_0x39d083(0x142),_0x39d083(0x12b),_0x39d083(0x129),_0x39d083(0x15f)];function _0x55f1(){const _0x4e039c=['substring','FILE','message','populateFromMessage','_convertTextResourceToFile','has','object','uploadFile','files','ai-request-aborted','addSelectionToContext','ai-chat-url-upload-failed','isCurrentDocumentInContext','fire','from','customItems','_ongoingUploads','sources','addResourceToContext','2014164oyLQAH','_addToConversationContextItem','getPendingContextItems','addCurrentDocumentToContext','contextItemLoadingEnded','filter','code','delete','uploadProgressChanged','TOOL','removeSelectionFromContext','isSelectionInContext','object\x20with\x20content\x20and\x20type\x20properties','getResources','url','_pendingContextItems','urls','SELECTION','document','_updateResourceInContextState','error','_startUploadOperation','_ownerId','enabled','all','15358080AiyZBl','attributes','6798UvORfo','_findSourceIdsByResourceId','url-','File','values','TEXT','_setAddContextOptionsDefaultState','forEach','resources','ai-chat-context-invalid-data','ai-chat-resource-no-data','name','text/plain','addToConversationContext','MARKDOWN','selection','ai-chat-resource-load-failed','_isResourceInContext','Current\x20document','loadSourceResources','1RSnUMu','isHidden','ai-chat-source-resources-load-failed','9751545EEgmuI','resourceId','push','isInContext','ai-chat-context-unsupported-type','addToolItemToContext','uiId','_finishUploadOperation','clearPendingContextItems','addFilesToContext','contextItemAdded','current-document','files-','get','text/markdown','_mapContextItemToRequestData','length','1560601mvITkb','start','contextItemRemoved','getId','map','ai-chat-file-upload-failed','DOCUMENT','version','init','_removeContextItem','_connector','getDocument','_addContextItem','find','_ongoingUploadOperations','data','addUrlToContext','_createContextItemFromContent','text/html','uploadUrl','uploadDocument','_config','label','string','isReadOnly','_conversationContextItems','abort','updateCurrentDocument','startsWith','isCurrentDocumentInConversation','stack','file-','15rECjDF','ai-chat-source-not-found','sessionId','fetchDocument','resourceStateChanged','removeFromContext','sourceResourcesLoaded','getData','getSentContextItems','contextSent','1575626FThBqt','_addContextOptionsState','URL','content','type','toolName','_finishContextItemLoading','_getCustomSourcesInitialState','ai-chat-document-upload-failed','end','size','6424968PmFFAt','HTML','set','abortController','_toggleAddCurrentDocumentOptionVisibility','1756YYsgsH','hidden','mapContextItemsToRequestData','addContextOptionsChanged','mcpServerName'];_0x55f1=function(){return _0x4e039c;};return _0x55f1();}function _0x1a21(_0x156239,_0x5ed3c1){const _0x55f1d3=_0x55f1();return _0x1a21=function(_0x1a216b,_0xc3ffe){_0x1a216b=_0x1a216b-0xd1;let _0x2d010d=_0x55f1d3[_0x1a216b];return _0x2d010d;},_0x1a21(_0x156239,_0x5ed3c1);}export class AIChatContext extends _0x2f3895(){[_0x39d083(0x10f)];[_0x39d083(0x11a)];[_0x39d083(0xd8)];constructor({connector:_0x1f3f73,config:_0x42193d,ownerId:_0x4ba710}){const _0xf267ca=_0x39d083;super(),this[_0xf267ca(0x10f)]=_0x1f3f73,this[_0xf267ca(0x11a)]=_0x42193d,this[_0xf267ca(0xd8)]=_0x4ba710;}[_0x39d083(0x10d)](){const _0x2d4cfb=_0x39d083;this[_0x2d4cfb(0xd1)]=new Map(),this[_0x2d4cfb(0x11e)]=new Map(),this[_0x2d4cfb(0x154)]=new Map(),this[_0x2d4cfb(0x113)]=new Map(),this[_0x2d4cfb(0xe3)]();}[_0x39d083(0x159)](){const _0x408811=_0x39d083;return this[_0x408811(0xd1)];}async[_0x39d083(0x147)](_0x2e4bb7){const _0x9b0f8e=_0x39d083,_0x51d6a7=await this[_0x9b0f8e(0x116)](_0x2e4bb7);return this[_0x9b0f8e(0x158)](_0x51d6a7),_0x9b0f8e(0xff)===_0x51d6a7[_0x9b0f8e(0xfa)]&&this[_0x9b0f8e(0x13e)](),_0x51d6a7;}async[_0x39d083(0x116)](_0x27c3b8){const _0xb1d551=_0x39d083;if(_0x27c3b8[_0xb1d551(0x133)]===_0x1f0fd5[_0xb1d551(0x10b)]){const _0x52d8fa=await this[_0xb1d551(0x10f)][_0xb1d551(0x128)](this[_0xb1d551(0xd8)],_0x27c3b8['id'])[_0xb1d551(0x110)]();return{'id':_0xb1d551(0xff),'uiId':_0xb1d551(0xff),'label':_0xb1d551(0xef),'type':_0x27c3b8[_0xb1d551(0x133)],'content':_0x52d8fa[_0xb1d551(0x132)],'hidden':this[_0xb1d551(0x11e)][_0xb1d551(0x149)](_0xb1d551(0xff)),'version':_0x52d8fa[_0xb1d551(0xdc)]?.[_0xb1d551(0x10c)],'sessionId':_0x52d8fa[_0xb1d551(0xdc)]?.[_0xb1d551(0x127)]};}if(_0x27c3b8[_0xb1d551(0x133)]===_0x1f0fd5[_0xb1d551(0x160)])return{'id':_0x27c3b8['id'],'uiId':_0x27c3b8['id'],'label':_0x27c3b8[_0xb1d551(0x114)]?.[_0xb1d551(0x11b)]||_0x27c3b8['id'],'type':_0x1f0fd5[_0xb1d551(0x160)],'mcpServerName':_0x27c3b8[_0xb1d551(0x143)],'toolName':_0x27c3b8[_0xb1d551(0x134)],'data':_0x27c3b8[_0xb1d551(0x114)]||{}};return{'id':_0x27c3b8['id'],'uiId':_0x27c3b8['id'],'label':_0x27c3b8[_0xb1d551(0xdc)]?.[_0xb1d551(0x11b)]||_0x27c3b8[_0xb1d551(0xe8)]||_0x27c3b8[_0xb1d551(0x165)]||_0x27c3b8['id'],'type':_0x27c3b8[_0xb1d551(0x133)],..._0x27c3b8?.[_0xb1d551(0xdc)]?.[_0xb1d551(0xf5)]?{'resourceId':_0x27c3b8[_0xb1d551(0xdc)]?.[_0xb1d551(0xf5)]}:{}};}[_0x39d083(0x12d)](){const _0x218bb6=_0x39d083;return new Map(this[_0x218bb6(0x11e)]);}[_0x39d083(0x12a)](_0x18f1c7){const _0x27dca8=_0x39d083,_0x2a9962=this[_0x27dca8(0xd1)][_0x27dca8(0x101)](_0x18f1c7);_0x2a9962?.[_0x27dca8(0x11d)]||this[_0x27dca8(0x10e)](_0x18f1c7);}[_0x39d083(0xfc)](){const _0x159375=_0x39d083;if(0x0===this[_0x159375(0xd1)][_0x159375(0x139)])return;for(const _0x5d91ac of this[_0x159375(0xd1)][_0x159375(0xe1)]())this[_0x159375(0x10e)](_0x5d91ac[_0x159375(0xfa)]);const _0x5c053=this[_0x159375(0x11e)][_0x159375(0x101)](_0x159375(0xff))||this[_0x159375(0xd1)][_0x159375(0x101)](_0x159375(0xff));_0x5c053&&this[_0x159375(0x111)]({..._0x5c053,'isReadOnly':!0x0,'hidden':!0x0});}[_0x39d083(0xea)](_0x33af7c){const _0x52cf3f=_0x39d083;for(const _0x291537 of _0x33af7c[_0x52cf3f(0xe1)]())this[_0x52cf3f(0x158)](_0x291537);this[_0x52cf3f(0xfc)](),this[_0x52cf3f(0x151)](_0x52cf3f(0x12e),{'contextItems':Array[_0x52cf3f(0x152)](this[_0x52cf3f(0x12d)]()[_0x52cf3f(0xe1)]())});}[_0x39d083(0x150)](){const _0x35b5ae=_0x39d083;return this[_0x35b5ae(0xd1)][_0x35b5ae(0x149)](_0x35b5ae(0xff));}[_0x39d083(0x162)](){const _0x54d148=_0x39d083;return this[_0x54d148(0xd1)][_0x54d148(0x149)](_0x54d148(0xec));}[_0x39d083(0x122)](){const _0xc9fe13=_0x39d083;return this[_0xc9fe13(0x11e)][_0xc9fe13(0x149)](_0xc9fe13(0xff));}static[_0x39d083(0x141)](_0xc566ed){const _0x484991=_0x39d083;return Array[_0x484991(0x152)](_0xc566ed[_0x484991(0xe1)]())[_0x484991(0x109)](_0x1c5485=>this[_0x484991(0x103)](_0x1c5485))[_0x484991(0x15c)](_0x957f01=>null!==_0x957f01);}async[_0x39d083(0xfd)](_0x2c4380,_0xac8d04,_0xbb4896=_0x1f0fd5[_0x39d083(0x145)]){const _0x430b7b=_0x39d083,_0x444a2a=_0x430b7b(0x100)+_0x117d6e();this[_0x430b7b(0xd7)](_0x444a2a);try{await Promise[_0x430b7b(0xda)](_0x2c4380[_0x430b7b(0x109)](async _0x3b0d66=>{const _0x4f2ed8=_0x430b7b,_0xd73691=_0x4f2ed8(0x124)+_0x117d6e(),_0xacdfc6=_0x4f66b0(_0x3b0d66[_0x4f2ed8(0xe8)]);try{this[_0x4f2ed8(0x111)]({'type':_0xbb4896,'label':_0xac8d04?.[_0x4f2ed8(0x11b)]||_0xacdfc6,'uiId':_0xd73691,'resourceId':_0xac8d04?.[_0x4f2ed8(0xf5)]},!0x0);const _0x1823fc=this[_0x4f2ed8(0x10f)][_0x4f2ed8(0x14b)](this[_0x4f2ed8(0xd8)],_0x3b0d66,_0xac8d04);this[_0x4f2ed8(0x154)][_0x4f2ed8(0x13c)](_0xd73691,_0x1823fc[_0x4f2ed8(0x13d)]);const {id:_0x4a227a}=await _0x1823fc[_0x4f2ed8(0x108)]();this[_0x4f2ed8(0x154)][_0x4f2ed8(0x15e)](_0xd73691),this[_0x4f2ed8(0x135)]({'type':_0xbb4896,'id':_0x4a227a,'label':_0xac8d04?.[_0x4f2ed8(0x11b)]||_0xacdfc6,'uiId':_0xd73691,'resourceId':_0xac8d04?.[_0x4f2ed8(0xf5)]},!0x1);}catch(_0x2ce90a){this[_0x4f2ed8(0x154)][_0x4f2ed8(0x15e)](_0xd73691);if(!(_0x2ce90a instanceof _0x1a561e&&_0x2ce90a[_0x4f2ed8(0x146)][_0x4f2ed8(0x121)](_0x4f2ed8(0x14d)))){const _0x5d8e11=_0x1665c2[_0x4f2ed8(0x101)](_0x2ce90a[_0x4f2ed8(0x15d)])||_0x4f2ed8(0x10a),_0x3be718=new _0x1a561e(_0x5d8e11,null,{'fileName':_0xacdfc6,..._0x2ce90a});_0x3be718[_0x4f2ed8(0x123)]=_0x2ce90a[_0x4f2ed8(0x123)],this[_0x4f2ed8(0x151)](_0x4f2ed8(0xd6),{'error':_0x3be718});}this[_0x4f2ed8(0x10e)](_0xd73691);}}));}finally{this[_0x430b7b(0xfb)](_0x444a2a);}}[_0x39d083(0x15a)](_0x257257){const _0xb93a0=_0x39d083;if(this[_0xb93a0(0x150)]()||!this[_0xb93a0(0x130)][_0xb93a0(0xd4)][_0xb93a0(0xd9)])return;const _0x2a7613={'type':_0x1f0fd5[_0xb93a0(0x10b)],'uiId':_0xb93a0(0xff),'label':_0x257257,'isReadOnly':this[_0xb93a0(0x11e)][_0xb93a0(0x149)](_0xb93a0(0xff)),'hidden':this[_0xb93a0(0x11e)][_0xb93a0(0x149)](_0xb93a0(0xff))};this[_0xb93a0(0x111)](_0x2a7613);}async[_0x39d083(0x120)](_0x3fe2a1,_0x18ea29,_0x4f20a6,_0x1f12fd){const _0x5e6e64=_0x39d083,_0x630365=this[_0x5e6e64(0xd1)][_0x5e6e64(0x101)](_0x5e6e64(0xff));if(_0x630365&&_0x3fe2a1){_0x630365[_0x5e6e64(0xec)]=_0x1f12fd?_0x1f12fd[_0x5e6e64(0x109)](_0x452f04=>({'start':_0x452f04[_0x5e6e64(0x106)],'end':_0x452f04[_0x5e6e64(0x138)]})):[];try{if(_0x630365[_0x5e6e64(0x10c)]===_0x18ea29)return;const {id:_0x498857}=await this[_0x5e6e64(0x10f)][_0x5e6e64(0x119)](this[_0x5e6e64(0xd8)],_0x3fe2a1,{'version':_0x18ea29,'sessionId':_0x4f20a6})[_0x5e6e64(0x108)]();_0x630365['id']=_0x498857,_0x630365[_0x5e6e64(0x132)]=_0x3fe2a1,_0x630365[_0x5e6e64(0x10c)]=_0x18ea29,_0x630365[_0x5e6e64(0x127)]=_0x4f20a6;}catch(_0x439e15){const _0x2a162b=new _0x1a561e(_0x5e6e64(0x137),null);_0x2a162b[_0x5e6e64(0x123)]=_0x439e15[_0x5e6e64(0x123)],this[_0x5e6e64(0x151)](_0x5e6e64(0xd6),{'error':_0x2a162b});}}}[_0x39d083(0x14e)](_0x124ce2){const _0x28de24=_0x39d083;this[_0x28de24(0x111)]({'type':_0x1f0fd5[_0x28de24(0xd3)],'label':_0x124ce2,'uiId':_0x28de24(0xec),'content':_0x124ce2});}[_0x39d083(0x161)](){const _0xb2a59e=_0x39d083;this[_0xb2a59e(0x10e)](_0xb2a59e(0xec));}async[_0x39d083(0x115)](_0x2f253d,_0x15342a){const _0x3f1a3d=_0x39d083,_0x266aba=_0x3f1a3d(0xdf)+_0x117d6e();this[_0x3f1a3d(0xd7)](_0x266aba);const _0x3800e7=_0x3f1a3d(0xdf)+_0x117d6e();try{this[_0x3f1a3d(0x111)]({'type':_0x1f0fd5[_0x3f1a3d(0x131)],'label':_0x15342a?.[_0x3f1a3d(0x11b)]||_0x2f253d,'uiId':_0x3800e7,'resourceId':_0x15342a?.[_0x3f1a3d(0xf5)]},!0x0);const _0x44f559=this[_0x3f1a3d(0x10f)][_0x3f1a3d(0x118)](this[_0x3f1a3d(0xd8)],_0x2f253d,_0x15342a);this[_0x3f1a3d(0x154)][_0x3f1a3d(0x13c)](_0x3800e7,_0x44f559[_0x3f1a3d(0x13d)]);const {id:_0x4ddfa2}=await _0x44f559[_0x3f1a3d(0x108)]();this[_0x3f1a3d(0x154)][_0x3f1a3d(0x15e)](_0x3800e7),this[_0x3f1a3d(0x135)]({'type':_0x1f0fd5[_0x3f1a3d(0x131)],'id':_0x4ddfa2,'label':_0x15342a?.[_0x3f1a3d(0x11b)]||_0x2f253d,'uiId':_0x3800e7,'resourceId':_0x15342a?.[_0x3f1a3d(0xf5)]},!0x1);}catch(_0x17a547){this[_0x3f1a3d(0x154)][_0x3f1a3d(0x15e)](_0x3800e7),(_0x17a547[_0x3f1a3d(0x146)][_0x3f1a3d(0x121)](_0x3f1a3d(0x14d))||this[_0x3f1a3d(0x151)](_0x3f1a3d(0xd6),{'error':new _0x1a561e(_0x3f1a3d(0x14f),this,{'url':_0x2f253d,'originalError':_0x17a547}),'url':_0x2f253d}),this[_0x3f1a3d(0x10e)](_0x3800e7));}finally{this[_0x3f1a3d(0xfb)](_0x266aba);}}[_0x39d083(0xf9)](_0x3c4ead){const _0x59abe0=_0x39d083;_0x3c4ead['id']=_0x3c4ead['id']??_0x117d6e()[_0x59abe0(0x144)](0x0,0x15),this[_0x59abe0(0xd1)][_0x59abe0(0x13c)](_0x3c4ead[_0x59abe0(0xfa)],_0x3c4ead),this[_0x59abe0(0x151)](_0x59abe0(0xfe),{'contextItem':_0x3c4ead,'isLoading':!0x1});}async[_0x39d083(0xf0)](_0x83b0cf,_0x27566f,_0x103fb8){const _0x1480a7=_0x39d083,_0x2f9f2c=this[_0x1480a7(0x130)][_0x1480a7(0x155)][_0x1480a7(0x112)](_0x153a27=>_0x153a27['id']===_0x83b0cf);if(!_0x2f9f2c)return this[_0x1480a7(0x151)](_0x1480a7(0xd6),{'error':new _0x1a561e(_0x1480a7(0x126),this,{'sourceId':_0x83b0cf}),'sourceId':_0x83b0cf}),[];try{const _0x313ce9=(await _0x2f9f2c[_0x1480a7(0x164)](_0x27566f))[_0x1480a7(0x109)](_0x2de955=>{const _0x38a47b=_0x1480a7,_0x5c07fc=this[_0x38a47b(0xee)](_0x2de955['id']);return{..._0x2de955,'isInContext':_0x5c07fc};});return _0x2f9f2c[_0x1480a7(0xe5)]=_0x313ce9,this[_0x1480a7(0x151)](_0x1480a7(0x12b),{'sourceId':_0x83b0cf,'source':_0x2f9f2c,'resources':_0x313ce9,'uid':_0x103fb8}),_0x313ce9;}catch(_0x2e5183){return this[_0x1480a7(0x151)](_0x1480a7(0xd6),{'error':new _0x1a561e(_0x1480a7(0xf3),this,{'sourceId':_0x83b0cf,'originalError':_0x2e5183}),'sourceId':_0x83b0cf,'sourceLabel':_0x2f9f2c[_0x1480a7(0x11b)]}),[];}}async[_0x39d083(0x156)](_0x3b6529,_0x4b2ea2){const _0x3b6e85=_0x39d083;if(this[_0x3b6e85(0xee)](_0x4b2ea2['id']))return;let _0x1d397f=_0x4b2ea2[_0x3b6e85(0x114)];if(!_0x1d397f&&_0x3b6529[_0x3b6e85(0x12c)])try{_0x1d397f=await _0x3b6529[_0x3b6e85(0x12c)](_0x4b2ea2['id']);}catch(_0xebc98d){return void this[_0x3b6e85(0x151)](_0x3b6e85(0xd6),{'error':new _0x1a561e(_0x3b6e85(0xed),this,{'resourceId':_0x4b2ea2['id'],'sourceId':_0x3b6529['id'],'originalError':_0xebc98d}),'resourceId':_0x4b2ea2['id'],'sourceId':_0x3b6529['id']});}if(_0x1d397f)switch(_0x4b2ea2[_0x3b6e85(0x133)]){case _0x1f0fd5[_0x3b6e85(0x131)]:if(_0x3b6e85(0x11c)!=typeof _0x1d397f)return void this[_0x3b6e85(0x151)](_0x3b6e85(0xd6),{'error':new _0x1a561e(_0x3b6e85(0xe6),this,{'resourceId':_0x4b2ea2['id'],'sourceId':_0x3b6529['id'],'expectedType':_0x3b6e85(0x11c),'actualType':typeof _0x1d397f}),'resourceId':_0x4b2ea2['id'],'sourceId':_0x3b6529['id']});await this[_0x3b6e85(0x115)](_0x1d397f,{'label':_0x4b2ea2[_0x3b6e85(0x11b)],'resourceId':_0x4b2ea2['id']});break;case _0x1f0fd5[_0x3b6e85(0x145)]:if(!(_0x1d397f instanceof File))return void this[_0x3b6e85(0x151)](_0x3b6e85(0xd6),{'error':new _0x1a561e(_0x3b6e85(0xe6),this,{'resourceId':_0x4b2ea2['id'],'sourceId':_0x3b6529['id'],'expectedType':_0x3b6e85(0xe0),'actualType':typeof _0x1d397f}),'resourceId':_0x4b2ea2['id'],'sourceId':_0x3b6529['id']});await this[_0x3b6e85(0xfd)]([_0x1d397f],{'label':_0x4b2ea2[_0x3b6e85(0x11b)],'resourceId':_0x4b2ea2['id']});break;case _0x1f0fd5[_0x3b6e85(0xe2)]:if(_0x3b6e85(0x14a)!=typeof _0x1d397f||!(_0x3b6e85(0x132)in _0x1d397f)||!(_0x3b6e85(0x133)in _0x1d397f))return void this[_0x3b6e85(0x151)](_0x3b6e85(0xd6),{'error':new _0x1a561e(_0x3b6e85(0xe6),this,{'resourceId':_0x4b2ea2['id'],'sourceId':_0x3b6529['id'],'expectedType':_0x3b6e85(0x163),'actualType':typeof _0x1d397f}),'resourceId':_0x4b2ea2['id'],'sourceId':_0x3b6529['id']});_0x1d397f=AIChatContext[_0x3b6e85(0x148)](_0x1d397f,_0x4b2ea2[_0x3b6e85(0x11b)]),await this[_0x3b6e85(0xfd)]([_0x1d397f],{'label':_0x4b2ea2[_0x3b6e85(0x11b)],'resourceId':_0x4b2ea2['id']},_0x1f0fd5[_0x3b6e85(0xe2)]);break;case _0x1f0fd5[_0x3b6e85(0x160)]:break;default:this[_0x3b6e85(0x151)](_0x3b6e85(0xd6),{'error':new _0x1a561e(_0x3b6e85(0xf8),this,{'resourceId':_0x4b2ea2['id'],'sourceId':_0x3b6529['id'],'resourceType':_0x4b2ea2[_0x3b6e85(0x133)]}),'resourceId':_0x4b2ea2['id'],'sourceId':_0x3b6529['id']});}else this[_0x3b6e85(0x151)](_0x3b6e85(0xd6),{'error':new _0x1a561e(_0x3b6e85(0xe7),this,{'resourceId':_0x4b2ea2['id'],'sourceId':_0x3b6529['id']}),'resourceId':_0x4b2ea2['id'],'sourceId':_0x3b6529['id']});}static[_0x39d083(0x148)](_0xe89e19,_0x1c92a8){const _0x4a312=_0x39d083;switch(_0xe89e19[_0x4a312(0x133)]){case _0x3d6043[_0x4a312(0xeb)]:return new File([_0xe89e19[_0x4a312(0x132)]],_0x1c92a8,{'type':_0x4a312(0x102)});case _0x3d6043[_0x4a312(0x13b)]:return new File([_0xe89e19[_0x4a312(0x132)]],_0x1c92a8,{'type':_0x4a312(0x117)});default:return new File([_0xe89e19[_0x4a312(0x132)]],_0x1c92a8,{'type':_0x4a312(0xe9)});}}static[_0x39d083(0x103)](_0x542a32){const _0x1bfd6b=_0x39d083;switch(_0x542a32[_0x1bfd6b(0x133)]){case _0x1f0fd5[_0x1bfd6b(0x145)]:return{'type':_0x1f0fd5[_0x1bfd6b(0x145)],'id':_0x542a32['id']};case _0x1f0fd5[_0x1bfd6b(0x131)]:return{'type':_0x1f0fd5[_0x1bfd6b(0x131)],'id':_0x542a32['id']};case _0x1f0fd5[_0x1bfd6b(0x10b)]:return{'type':_0x1f0fd5[_0x1bfd6b(0x10b)],'id':_0x542a32['id'],..._0x542a32[_0x1bfd6b(0xec)]?.[_0x1bfd6b(0x104)]&&{'selection':_0x542a32[_0x1bfd6b(0xec)]}};case _0x1f0fd5[_0x1bfd6b(0xe2)]:return{'type':_0x1f0fd5[_0x1bfd6b(0x145)],'id':_0x542a32['id']};case _0x1f0fd5[_0x1bfd6b(0x160)]:{const _0x36cd68=_0x542a32;return{'type':_0x1f0fd5[_0x1bfd6b(0x160)],'mcpServerName':_0x36cd68[_0x1bfd6b(0x143)],'toolName':_0x36cd68[_0x1bfd6b(0x134)],'data':_0x36cd68[_0x1bfd6b(0x114)],'id':_0x36cd68['id']};}default:return null;}}[_0x39d083(0x111)](_0x2d248f,_0x17aab5=!0x1){const _0x5251c9=_0x39d083;if(this[_0x5251c9(0xd1)][_0x5251c9(0x13c)](_0x2d248f[_0x5251c9(0xfa)],_0x2d248f),_0x2d248f[_0x5251c9(0x140)]||this[_0x5251c9(0x151)](_0x5251c9(0xfe),{'contextItem':_0x2d248f,'isLoading':_0x17aab5}),_0x5251c9(0xff)===_0x2d248f[_0x5251c9(0xfa)]&&this[_0x5251c9(0x13e)](),_0x2d248f[_0x5251c9(0xf5)]){const _0x5031ba=this[_0x5251c9(0xde)](_0x2d248f[_0x5251c9(0xf5)]);_0x5031ba&&_0x5031ba[_0x5251c9(0xe4)](_0x55f414=>{const _0x3bf0cd=_0x5251c9;this[_0x3bf0cd(0xd5)](_0x55f414,_0x2d248f[_0x3bf0cd(0xf5)],!0x0);});}}[_0x39d083(0x10e)](_0x2cb653){const _0x2700e2=_0x39d083,_0x5530a8=this[_0x2700e2(0xd1)][_0x2700e2(0x101)](_0x2cb653),_0x56524a=this[_0x2700e2(0x154)][_0x2700e2(0x101)](_0x2cb653);if(_0x56524a&&(_0x56524a[_0x2700e2(0x11f)](),this[_0x2700e2(0x154)][_0x2700e2(0x15e)](_0x2cb653)),_0x5530a8?.[_0x2700e2(0xf5)]){const _0x255814=this[_0x2700e2(0xde)](_0x5530a8[_0x2700e2(0xf5)]);_0x255814&&_0x255814[_0x2700e2(0xe4)](_0x333e38=>{const _0x76ab4a=_0x2700e2;this[_0x76ab4a(0xd5)](_0x333e38,_0x5530a8[_0x76ab4a(0xf5)],!0x1);});}this[_0x2700e2(0xd1)][_0x2700e2(0x15e)](_0x2cb653),this[_0x2700e2(0x151)](_0x2700e2(0x107),{'uiId':_0x2cb653,'type':_0x5530a8?.[_0x2700e2(0x133)]}),_0x2700e2(0xff)===_0x2cb653&&this[_0x2700e2(0x13e)]();}[_0x39d083(0x135)](_0x28b03,_0x411756){const _0x11c8ef=_0x39d083;if(this[_0x11c8ef(0xd1)][_0x11c8ef(0x149)](_0x28b03[_0x11c8ef(0xfa)])&&(this[_0x11c8ef(0xd1)][_0x11c8ef(0x13c)](_0x28b03[_0x11c8ef(0xfa)],_0x28b03),this[_0x11c8ef(0x151)](_0x11c8ef(0x15b),{'contextItem':_0x28b03,'isLoading':_0x411756}),_0x28b03[_0x11c8ef(0xf5)])){const _0x34cae3=this[_0x11c8ef(0xde)](_0x28b03[_0x11c8ef(0xf5)]);_0x34cae3&&_0x34cae3[_0x11c8ef(0xe4)](_0x414030=>{const _0x277db4=_0x11c8ef;this[_0x277db4(0xd5)](_0x414030,_0x28b03[_0x277db4(0xf5)],!0x0);});}}[_0x39d083(0x158)](_0x6feb3c){const _0x51ac74=_0x39d083;this[_0x51ac74(0x11e)][_0x51ac74(0x13c)](_0x6feb3c[_0x51ac74(0xfa)],_0x6feb3c);}[_0x39d083(0xe3)](){const _0x38d264=_0x39d083;this[_0x38d264(0x130)]={'document':{'enabled':!0x1!==this[_0x38d264(0x11a)]?.[_0x38d264(0xd4)]?.[_0x38d264(0xd9)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x38d264(0x11a)]?.[_0x38d264(0xd2)]?.[_0x38d264(0xd9)]},'files':{'enabled':!0x1!==this[_0x38d264(0x11a)]?.[_0x38d264(0x14c)]?.[_0x38d264(0xd9)]},'sources':this[_0x38d264(0x136)](),'customItems':this[_0x38d264(0x11a)]?.[_0x38d264(0x153)]?.[_0x38d264(0x109)](_0x2de8d0=>({..._0x2de8d0,'enabled':!0x0}))??[]},this[_0x38d264(0x151)](_0x38d264(0x142),{'options':this[_0x38d264(0x130)]});}[_0x39d083(0x136)](){const _0x3a1480=_0x39d083;return this[_0x3a1480(0x11a)]?.[_0x3a1480(0x155)]?.[_0x3a1480(0x109)](_0x25d265=>({..._0x25d265,'resources':[]}))??[];}[_0x39d083(0x13e)](){const _0x178f5c=_0x39d083,_0xcb0bc0=this[_0x178f5c(0x150)]()||this[_0x178f5c(0x122)]();this[_0x178f5c(0x130)][_0x178f5c(0xd4)][_0x178f5c(0xf2)]=_0xcb0bc0,this[_0x178f5c(0x151)](_0x178f5c(0x142),{'options':this[_0x178f5c(0x130)]});}[_0x39d083(0xee)](_0x59b5bf){const _0x5c633b=_0x39d083;for(const _0x1432ed of this[_0x5c633b(0xd1)][_0x5c633b(0xe1)]())if(_0x1432ed[_0x5c633b(0xf5)]===_0x59b5bf)return!0x0;for(const _0x36acdb of this[_0x5c633b(0x11e)][_0x5c633b(0xe1)]())if(_0x36acdb[_0x5c633b(0xf5)]===_0x59b5bf)return!0x0;return!0x1;}[_0x39d083(0xde)](_0x402e48){const _0xbf9320=_0x39d083,_0x204c00=[];for(const _0x4ec206 of this[_0xbf9320(0x130)][_0xbf9320(0x155)]){_0x4ec206[_0xbf9320(0xe5)][_0xbf9320(0x112)](_0x1c1f5c=>_0x1c1f5c['id']===_0x402e48)&&_0x204c00[_0xbf9320(0xf6)](_0x4ec206['id']);}return 0x0===_0x204c00[_0xbf9320(0x104)]?null:_0x204c00;}[_0x39d083(0xd5)](_0x5c3c1d,_0x4bcabe,_0x38f388){const _0x3fbf52=_0x39d083,_0x493af6=this[_0x3fbf52(0x130)][_0x3fbf52(0x155)][_0x3fbf52(0x112)](_0x410723=>_0x410723['id']===_0x5c3c1d);if(!_0x493af6)return;const _0x4af7ff=_0x493af6[_0x3fbf52(0xe5)][_0x3fbf52(0x112)](_0x551f62=>_0x551f62['id']===_0x4bcabe);_0x4af7ff&&(_0x4af7ff[_0x3fbf52(0xf7)]=_0x38f388,this[_0x3fbf52(0x151)](_0x3fbf52(0x129),{'sourceId':_0x5c3c1d,'resourceId':_0x4bcabe,'isInContext':_0x38f388}));}[_0x39d083(0xd7)](_0x5c221a){const _0x841ebb=_0x39d083;this[_0x841ebb(0x113)][_0x841ebb(0x13c)](_0x5c221a,!0x0),this[_0x841ebb(0x113)][_0x841ebb(0x139)]&&this[_0x841ebb(0x151)](_0x841ebb(0x15f),{'isUploadInProgress':!0x0});}[_0x39d083(0xfb)](_0x24e926){const _0x39fa31=_0x39d083;this[_0x39fa31(0x113)][_0x39fa31(0x15e)](_0x24e926),0x0===this[_0x39fa31(0x113)][_0x39fa31(0x139)]&&this[_0x39fa31(0x151)](_0x39fa31(0x15f),{'isUploadInProgress':!0x1});}}
23
+ function _0x3b94(){const _0x7779f4=['files','isCurrentDocumentInConversation','version','sessionId','DOCUMENT','ai-request-aborted','getSentContextItems','contextItemLoadingEnded','_connector','document','SELECTION','getData','removeFromContext','url-','contextSent','addCurrentDocumentToContext','sources','start','_startUploadOperation','updateCurrentDocument','_ongoingUploadOperations','isReadOnly','_pendingContextItems','get','has','selection','fetchDocument','filter','length','188WQFosN','push','from','uploadDocument','data','_findSourceIdsByResourceId','792RpjxJu','isHidden','startsWith','addToConversationContext','FILE','removeSelectionFromContext','_setAddContextOptionsDefaultState','size','end','ai-chat-url-upload-failed','getResources','text/markdown','ai-chat-file-upload-failed','_addToConversationContextItem','URL','set','message','delete','getDocument','_mapContextItemToRequestData','File','_ownerId','isInContext','object','addUrlToContext','ai-chat-document-upload-failed','find','fire','ai-chat-resource-load-failed','contextItemAdded','_finishContextItemLoading','_getCustomSourcesInitialState','loadSourceResources','_convertTextResourceToFile','sourceResourcesLoaded','attributes','1902027mvOBUY','hidden','error','_toggleAddCurrentDocumentOptionVisibility','_isResourceInContext','ai-chat-context-unsupported-type','152155CcqJov','ai-chat-source-not-found','addToolItemToContext','getPendingContextItems','HTML','text/html','label','forEach','toolName','abortController','_addContextItem','1317162cTVAPc','_updateResourceInContextState','TOOL','file-','text/plain','_removeContextItem','all','2LEMSDG','378850hKpisB','addSelectionToContext','string','urls','resourceStateChanged','addFilesToContext','_conversationContextItems','abort','MARKDOWN','enabled','mcpServerName','contextItemRemoved','object\x20with\x20content\x20and\x20type\x20properties','init','addContextOptionsChanged','populateFromMessage','_config','1206318kEumIL','ai-chat-source-resources-load-failed','values','uiId','current-document','code','_createContextItemFromContent','getId','url','addResourceToContext','content','map','ai-chat-resource-no-data','Current\x20document','_ongoingUploads','customItems','TEXT','mapContextItemsToRequestData','isCurrentDocumentInContext','ai-chat-context-invalid-data','clearPendingContextItems','files-','isSelectionInContext','_addContextOptionsState','resourceId','uploadProgressChanged','_finishUploadOperation','uploadUrl','4246416TJNFEH','name','uploadFile','stack','type','substring','resources','587258WcdWjZ'];_0x3b94=function(){return _0x7779f4;};return _0x3b94();}const _0x4c43d5=_0x33af;(function(_0x1a4cc1,_0x29e313){const _0x12df2c=_0x33af,_0x30759f=_0x1a4cc1();while(!![]){try{const _0x43629a=parseInt(_0x12df2c(0x7d))/0x1*(-parseInt(_0x12df2c(0x10b))/0x2)+-parseInt(_0x12df2c(0xfa))/0x3+-parseInt(_0x12df2c(0xd0))/0x4*(parseInt(_0x12df2c(0x100))/0x5)+parseInt(_0x12df2c(0x8f))/0x6+parseInt(_0x12df2c(0xb2))/0x7+parseInt(_0x12df2c(0xab))/0x8+parseInt(_0x12df2c(0xd6))/0x9*(parseInt(_0x12df2c(0x7e))/0xa);if(_0x43629a===_0x29e313)break;else _0x30759f['push'](_0x30759f['shift']());}catch(_0x569e9b){_0x30759f['push'](_0x30759f['shift']());}}}(_0x3b94,0xbb8c9));import{CKEditorError as _0x2d4364,ObservableMixin as _0x1858a8,uid as _0x218167}from'ckeditor5/src/utils.js';function _0x33af(_0x4de831,_0x19a01c){const _0x3b94bb=_0x3b94();return _0x33af=function(_0x33af3e,_0x503fa7){_0x33af3e=_0x33af3e-0x7d;let _0x541cf7=_0x3b94bb[_0x33af3e];return _0x541cf7;},_0x33af(_0x4de831,_0x19a01c);}import{AIContextItemType as _0x4ce5ec,AIContextTextResourceType as _0x5e2d38}from'../../aicore/model/aicontext.js';import{escape as _0xca7685}from'es-toolkit/compat';import{errorsMap as _0x23da73}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x4c43d5(0xf3),_0x4c43d5(0x89),_0x4c43d5(0xba),_0x4c43d5(0xc1),_0x4c43d5(0xfc),_0x4c43d5(0x8c),_0x4c43d5(0xf8),_0x4c43d5(0x82),_0x4c43d5(0xa8)];export class AIChatContext extends _0x1858a8(){[_0x4c43d5(0xbb)];[_0x4c43d5(0x8e)];[_0x4c43d5(0xeb)];constructor({connector:_0x2bc180,config:_0x537409,ownerId:_0x5955fb}){const _0x45d8f1=_0x4c43d5;super(),this[_0x45d8f1(0xbb)]=_0x2bc180,this[_0x45d8f1(0x8e)]=_0x537409,this[_0x45d8f1(0xeb)]=_0x5955fb;}[_0x4c43d5(0x8b)](){const _0x326006=_0x4c43d5;this[_0x326006(0xc9)]=new Map(),this[_0x326006(0x84)]=new Map(),this[_0x326006(0x9d)]=new Map(),this[_0x326006(0xc7)]=new Map(),this[_0x326006(0xdc)]();}[_0x4c43d5(0x103)](){const _0x1b1332=_0x4c43d5;return this[_0x1b1332(0xc9)];}async[_0x4c43d5(0x8d)](_0x110a3c){const _0x1199af=_0x4c43d5,_0x1f6465=await this[_0x1199af(0x95)](_0x110a3c);return this[_0x1199af(0xe3)](_0x1f6465),_0x1199af(0x93)===_0x1f6465[_0x1199af(0x92)]&&this[_0x1199af(0xfd)](),_0x1f6465;}async[_0x4c43d5(0x95)](_0x25d153){const _0x4ba6b9=_0x4c43d5;if(_0x25d153[_0x4ba6b9(0xaf)]===_0x4ce5ec[_0x4ba6b9(0xb7)]){const _0x10cb91=await this[_0x4ba6b9(0xbb)][_0x4ba6b9(0xcd)](this[_0x4ba6b9(0xeb)],_0x25d153['id'])[_0x4ba6b9(0xe8)]();return{'id':_0x4ba6b9(0x93),'uiId':_0x4ba6b9(0x93),'label':_0x4ba6b9(0x9c),'type':_0x25d153[_0x4ba6b9(0xaf)],'content':_0x10cb91[_0x4ba6b9(0x99)],'hidden':this[_0x4ba6b9(0x84)][_0x4ba6b9(0xcb)](_0x4ba6b9(0x93)),'version':_0x10cb91[_0x4ba6b9(0xf9)]?.[_0x4ba6b9(0xb5)],'sessionId':_0x10cb91[_0x4ba6b9(0xf9)]?.[_0x4ba6b9(0xb6)]};}if(_0x25d153[_0x4ba6b9(0xaf)]===_0x4ce5ec[_0x4ba6b9(0x10d)])return{'id':_0x25d153['id'],'uiId':_0x25d153['id'],'label':_0x25d153[_0x4ba6b9(0xd4)]?.[_0x4ba6b9(0x106)]||_0x25d153['id'],'type':_0x4ce5ec[_0x4ba6b9(0x10d)],'mcpServerName':_0x25d153[_0x4ba6b9(0x88)],'toolName':_0x25d153[_0x4ba6b9(0x108)],'data':_0x25d153[_0x4ba6b9(0xd4)]||{}};return{'id':_0x25d153['id'],'uiId':_0x25d153['id'],'label':_0x25d153[_0x4ba6b9(0xf9)]?.[_0x4ba6b9(0x106)]||_0x25d153[_0x4ba6b9(0xac)]||_0x25d153[_0x4ba6b9(0x97)]||_0x25d153['id'],'type':_0x25d153[_0x4ba6b9(0xaf)],..._0x25d153?.[_0x4ba6b9(0xf9)]?.[_0x4ba6b9(0xa7)]?{'resourceId':_0x25d153[_0x4ba6b9(0xf9)]?.[_0x4ba6b9(0xa7)]}:{}};}[_0x4c43d5(0xb9)](){const _0x183124=_0x4c43d5;return new Map(this[_0x183124(0x84)]);}[_0x4c43d5(0xbf)](_0x3ffe78){const _0x417c97=_0x4c43d5,_0x324ddb=this[_0x417c97(0xc9)][_0x417c97(0xca)](_0x3ffe78);_0x324ddb?.[_0x417c97(0xc8)]||this[_0x417c97(0x110)](_0x3ffe78);}[_0x4c43d5(0xa3)](){const _0x469e54=_0x4c43d5;if(0x0===this[_0x469e54(0xc9)][_0x469e54(0xdd)])return;for(const _0x3d11d2 of this[_0x469e54(0xc9)][_0x469e54(0x91)]())this[_0x469e54(0x110)](_0x3d11d2[_0x469e54(0x92)]);const _0x383a32=this[_0x469e54(0x84)][_0x469e54(0xca)](_0x469e54(0x93))||this[_0x469e54(0xc9)][_0x469e54(0xca)](_0x469e54(0x93));_0x383a32&&this[_0x469e54(0x10a)]({..._0x383a32,'isReadOnly':!0x0,'hidden':!0x0});}[_0x4c43d5(0xd9)](_0x12c385){const _0x3ae536=_0x4c43d5;for(const _0x4dd982 of _0x12c385[_0x3ae536(0x91)]())this[_0x3ae536(0xe3)](_0x4dd982);this[_0x3ae536(0xa3)](),this[_0x3ae536(0xf1)](_0x3ae536(0xc1),{'contextItems':Array[_0x3ae536(0xd2)](this[_0x3ae536(0xb9)]()[_0x3ae536(0x91)]())});}[_0x4c43d5(0xa1)](){const _0x435126=_0x4c43d5;return this[_0x435126(0xc9)][_0x435126(0xcb)](_0x435126(0x93));}[_0x4c43d5(0xa5)](){const _0x3eba97=_0x4c43d5;return this[_0x3eba97(0xc9)][_0x3eba97(0xcb)](_0x3eba97(0xcc));}[_0x4c43d5(0xb4)](){const _0x2d554b=_0x4c43d5;return this[_0x2d554b(0x84)][_0x2d554b(0xcb)](_0x2d554b(0x93));}static[_0x4c43d5(0xa0)](_0x276a5b){const _0x3b245b=_0x4c43d5;return Array[_0x3b245b(0xd2)](_0x276a5b[_0x3b245b(0x91)]())[_0x3b245b(0x9a)](_0x1ec22a=>this[_0x3b245b(0xe9)](_0x1ec22a))[_0x3b245b(0xce)](_0x32c20b=>null!==_0x32c20b);}async[_0x4c43d5(0x83)](_0x53edc7,_0x1b2045,_0x5b3169=_0x4ce5ec[_0x4c43d5(0xda)]){const _0x1c4fd9=_0x4c43d5,_0x53f461=_0x1c4fd9(0xa4)+_0x218167();this[_0x1c4fd9(0xc5)](_0x53f461);try{await Promise[_0x1c4fd9(0x111)](_0x53edc7[_0x1c4fd9(0x9a)](async _0x5da161=>{const _0x16f0e2=_0x1c4fd9,_0x4eefaa=_0x16f0e2(0x10e)+_0x218167(),_0x3b1139=_0xca7685(_0x5da161[_0x16f0e2(0xac)]);try{this[_0x16f0e2(0x10a)]({'type':_0x5b3169,'label':_0x1b2045?.[_0x16f0e2(0x106)]||_0x3b1139,'uiId':_0x4eefaa,'resourceId':_0x1b2045?.[_0x16f0e2(0xa7)]},!0x0);const _0x13a9a1=this[_0x16f0e2(0xbb)][_0x16f0e2(0xad)](this[_0x16f0e2(0xeb)],_0x5da161,_0x1b2045);this[_0x16f0e2(0x9d)][_0x16f0e2(0xe5)](_0x4eefaa,_0x13a9a1[_0x16f0e2(0x109)]);const {id:_0xaaafbe}=await _0x13a9a1[_0x16f0e2(0x96)]();this[_0x16f0e2(0x9d)][_0x16f0e2(0xe7)](_0x4eefaa),this[_0x16f0e2(0xf4)]({'type':_0x5b3169,'id':_0xaaafbe,'label':_0x1b2045?.[_0x16f0e2(0x106)]||_0x3b1139,'uiId':_0x4eefaa,'resourceId':_0x1b2045?.[_0x16f0e2(0xa7)]},!0x1);}catch(_0x100517){this[_0x16f0e2(0x9d)][_0x16f0e2(0xe7)](_0x4eefaa);if(!(_0x100517 instanceof _0x2d4364&&_0x100517[_0x16f0e2(0xe6)][_0x16f0e2(0xd8)](_0x16f0e2(0xb8)))){const _0x52e5be=_0x23da73[_0x16f0e2(0xca)](_0x100517[_0x16f0e2(0x94)])||_0x16f0e2(0xe2),_0x5b6058=new _0x2d4364(_0x52e5be,null,{'fileName':_0x3b1139,..._0x100517});_0x5b6058[_0x16f0e2(0xae)]=_0x100517[_0x16f0e2(0xae)],this[_0x16f0e2(0xf1)](_0x16f0e2(0xfc),{'error':_0x5b6058});}this[_0x16f0e2(0x110)](_0x4eefaa);}}));}finally{this[_0x1c4fd9(0xa9)](_0x53f461);}}[_0x4c43d5(0xc2)](_0x4b9e93){const _0x4dfe85=_0x4c43d5;if(this[_0x4dfe85(0xa1)]()||!this[_0x4dfe85(0xa6)][_0x4dfe85(0xbc)][_0x4dfe85(0x87)])return;const _0x229a88={'type':_0x4ce5ec[_0x4dfe85(0xb7)],'uiId':_0x4dfe85(0x93),'label':_0x4b9e93,'isReadOnly':this[_0x4dfe85(0x84)][_0x4dfe85(0xcb)](_0x4dfe85(0x93)),'hidden':this[_0x4dfe85(0x84)][_0x4dfe85(0xcb)](_0x4dfe85(0x93))};this[_0x4dfe85(0x10a)](_0x229a88);}async[_0x4c43d5(0xc6)](_0x4b5691,_0x1e93e7,_0x5590e1,_0xf42897){const _0x389c0b=_0x4c43d5,_0x3a8737=this[_0x389c0b(0xc9)][_0x389c0b(0xca)](_0x389c0b(0x93));if(_0x3a8737&&_0x4b5691){_0x3a8737[_0x389c0b(0xcc)]=_0xf42897?_0xf42897[_0x389c0b(0x9a)](_0x5f3eba=>({'start':_0x5f3eba[_0x389c0b(0xc4)],'end':_0x5f3eba[_0x389c0b(0xde)]})):[];try{if(_0x3a8737[_0x389c0b(0xb5)]===_0x1e93e7)return;const {id:_0x244ea0}=await this[_0x389c0b(0xbb)][_0x389c0b(0xd3)](this[_0x389c0b(0xeb)],_0x4b5691,{'version':_0x1e93e7,'sessionId':_0x5590e1})[_0x389c0b(0x96)]();_0x3a8737['id']=_0x244ea0,_0x3a8737[_0x389c0b(0x99)]=_0x4b5691,_0x3a8737[_0x389c0b(0xb5)]=_0x1e93e7,_0x3a8737[_0x389c0b(0xb6)]=_0x5590e1;}catch(_0x356a42){const _0xdf4eae=new _0x2d4364(_0x389c0b(0xef),null);_0xdf4eae[_0x389c0b(0xae)]=_0x356a42[_0x389c0b(0xae)],this[_0x389c0b(0xf1)](_0x389c0b(0xfc),{'error':_0xdf4eae});}}}[_0x4c43d5(0x7f)](_0x5637b7){const _0x24254a=_0x4c43d5;this[_0x24254a(0x10a)]({'type':_0x4ce5ec[_0x24254a(0xbd)],'label':_0x5637b7,'uiId':_0x24254a(0xcc),'content':_0x5637b7});}[_0x4c43d5(0xdb)](){const _0x8615d9=_0x4c43d5;this[_0x8615d9(0x110)](_0x8615d9(0xcc));}async[_0x4c43d5(0xee)](_0x1bb8b3,_0x490cfb){const _0x52ea71=_0x4c43d5,_0x54a305=_0x52ea71(0xc0)+_0x218167();this[_0x52ea71(0xc5)](_0x54a305);const _0x573dd8=_0x52ea71(0xc0)+_0x218167();try{this[_0x52ea71(0x10a)]({'type':_0x4ce5ec[_0x52ea71(0xe4)],'label':_0x490cfb?.[_0x52ea71(0x106)]||_0x1bb8b3,'uiId':_0x573dd8,'resourceId':_0x490cfb?.[_0x52ea71(0xa7)]},!0x0);const _0x5503ec=this[_0x52ea71(0xbb)][_0x52ea71(0xaa)](this[_0x52ea71(0xeb)],_0x1bb8b3,_0x490cfb);this[_0x52ea71(0x9d)][_0x52ea71(0xe5)](_0x573dd8,_0x5503ec[_0x52ea71(0x109)]);const {id:_0x4677f4}=await _0x5503ec[_0x52ea71(0x96)]();this[_0x52ea71(0x9d)][_0x52ea71(0xe7)](_0x573dd8),this[_0x52ea71(0xf4)]({'type':_0x4ce5ec[_0x52ea71(0xe4)],'id':_0x4677f4,'label':_0x490cfb?.[_0x52ea71(0x106)]||_0x1bb8b3,'uiId':_0x573dd8,'resourceId':_0x490cfb?.[_0x52ea71(0xa7)]},!0x1);}catch(_0x103c44){this[_0x52ea71(0x9d)][_0x52ea71(0xe7)](_0x573dd8),(_0x103c44[_0x52ea71(0xe6)][_0x52ea71(0xd8)](_0x52ea71(0xb8))||this[_0x52ea71(0xf1)](_0x52ea71(0xfc),{'error':new _0x2d4364(_0x52ea71(0xdf),this,{'url':_0x1bb8b3,'originalError':_0x103c44}),'url':_0x1bb8b3}),this[_0x52ea71(0x110)](_0x573dd8));}finally{this[_0x52ea71(0xa9)](_0x54a305);}}[_0x4c43d5(0x102)](_0x437f95){const _0x2c4f85=_0x4c43d5;_0x437f95['id']=_0x437f95['id']??_0x218167()[_0x2c4f85(0xb0)](0x0,0x15),this[_0x2c4f85(0xc9)][_0x2c4f85(0xe5)](_0x437f95[_0x2c4f85(0x92)],_0x437f95),this[_0x2c4f85(0xf1)](_0x2c4f85(0xf3),{'contextItem':_0x437f95,'isLoading':!0x1});}async[_0x4c43d5(0xf6)](_0x45261a,_0xb1d53d,_0x2c3e74){const _0x4f705d=_0x4c43d5,_0x1913e4=this[_0x4f705d(0xa6)][_0x4f705d(0xc3)][_0x4f705d(0xf0)](_0x196bd4=>_0x196bd4['id']===_0x45261a);if(!_0x1913e4)return this[_0x4f705d(0xf1)](_0x4f705d(0xfc),{'error':new _0x2d4364(_0x4f705d(0x101),this,{'sourceId':_0x45261a}),'sourceId':_0x45261a}),[];try{const _0xcfe154=(await _0x1913e4[_0x4f705d(0xe0)](_0xb1d53d))[_0x4f705d(0x9a)](_0x5464e9=>{const _0x4a640e=_0x4f705d,_0x3838d6=this[_0x4a640e(0xfe)](_0x5464e9['id']);return{..._0x5464e9,'isInContext':_0x3838d6};});return _0x1913e4[_0x4f705d(0xb1)]=_0xcfe154,this[_0x4f705d(0xf1)](_0x4f705d(0xf8),{'sourceId':_0x45261a,'source':_0x1913e4,'resources':_0xcfe154,'uid':_0x2c3e74}),_0xcfe154;}catch(_0x3b19b3){return this[_0x4f705d(0xf1)](_0x4f705d(0xfc),{'error':new _0x2d4364(_0x4f705d(0x90),this,{'sourceId':_0x45261a,'originalError':_0x3b19b3}),'sourceId':_0x45261a,'sourceLabel':_0x1913e4[_0x4f705d(0x106)]}),[];}}async[_0x4c43d5(0x98)](_0xa01334,_0x3c89da){const _0x29812b=_0x4c43d5;if(this[_0x29812b(0xfe)](_0x3c89da['id']))return;let _0x113f88=_0x3c89da[_0x29812b(0xd4)];if(!_0x113f88&&_0xa01334[_0x29812b(0xbe)])try{_0x113f88=await _0xa01334[_0x29812b(0xbe)](_0x3c89da['id']);}catch(_0x101558){return void this[_0x29812b(0xf1)](_0x29812b(0xfc),{'error':new _0x2d4364(_0x29812b(0xf2),this,{'resourceId':_0x3c89da['id'],'sourceId':_0xa01334['id'],'originalError':_0x101558}),'resourceId':_0x3c89da['id'],'sourceId':_0xa01334['id']});}if(_0x113f88)switch(_0x3c89da[_0x29812b(0xaf)]){case _0x4ce5ec[_0x29812b(0xe4)]:if(_0x29812b(0x80)!=typeof _0x113f88)return void this[_0x29812b(0xf1)](_0x29812b(0xfc),{'error':new _0x2d4364(_0x29812b(0xa2),this,{'resourceId':_0x3c89da['id'],'sourceId':_0xa01334['id'],'expectedType':_0x29812b(0x80),'actualType':typeof _0x113f88}),'resourceId':_0x3c89da['id'],'sourceId':_0xa01334['id']});await this[_0x29812b(0xee)](_0x113f88,{'label':_0x3c89da[_0x29812b(0x106)],'resourceId':_0x3c89da['id']});break;case _0x4ce5ec[_0x29812b(0xda)]:if(!(_0x113f88 instanceof File))return void this[_0x29812b(0xf1)](_0x29812b(0xfc),{'error':new _0x2d4364(_0x29812b(0xa2),this,{'resourceId':_0x3c89da['id'],'sourceId':_0xa01334['id'],'expectedType':_0x29812b(0xea),'actualType':typeof _0x113f88}),'resourceId':_0x3c89da['id'],'sourceId':_0xa01334['id']});await this[_0x29812b(0x83)]([_0x113f88],{'label':_0x3c89da[_0x29812b(0x106)],'resourceId':_0x3c89da['id']});break;case _0x4ce5ec[_0x29812b(0x9f)]:if(_0x29812b(0xed)!=typeof _0x113f88||!(_0x29812b(0x99)in _0x113f88)||!(_0x29812b(0xaf)in _0x113f88))return void this[_0x29812b(0xf1)](_0x29812b(0xfc),{'error':new _0x2d4364(_0x29812b(0xa2),this,{'resourceId':_0x3c89da['id'],'sourceId':_0xa01334['id'],'expectedType':_0x29812b(0x8a),'actualType':typeof _0x113f88}),'resourceId':_0x3c89da['id'],'sourceId':_0xa01334['id']});_0x113f88=AIChatContext[_0x29812b(0xf7)](_0x113f88,_0x3c89da[_0x29812b(0x106)]),await this[_0x29812b(0x83)]([_0x113f88],{'label':_0x3c89da[_0x29812b(0x106)],'resourceId':_0x3c89da['id']},_0x4ce5ec[_0x29812b(0x9f)]);break;case _0x4ce5ec[_0x29812b(0x10d)]:break;default:this[_0x29812b(0xf1)](_0x29812b(0xfc),{'error':new _0x2d4364(_0x29812b(0xff),this,{'resourceId':_0x3c89da['id'],'sourceId':_0xa01334['id'],'resourceType':_0x3c89da[_0x29812b(0xaf)]}),'resourceId':_0x3c89da['id'],'sourceId':_0xa01334['id']});}else this[_0x29812b(0xf1)](_0x29812b(0xfc),{'error':new _0x2d4364(_0x29812b(0x9b),this,{'resourceId':_0x3c89da['id'],'sourceId':_0xa01334['id']}),'resourceId':_0x3c89da['id'],'sourceId':_0xa01334['id']});}static[_0x4c43d5(0xf7)](_0xfc93ad,_0x423555){const _0x3839f3=_0x4c43d5;switch(_0xfc93ad[_0x3839f3(0xaf)]){case _0x5e2d38[_0x3839f3(0x86)]:return new File([_0xfc93ad[_0x3839f3(0x99)]],_0x423555,{'type':_0x3839f3(0xe1)});case _0x5e2d38[_0x3839f3(0x104)]:return new File([_0xfc93ad[_0x3839f3(0x99)]],_0x423555,{'type':_0x3839f3(0x105)});default:return new File([_0xfc93ad[_0x3839f3(0x99)]],_0x423555,{'type':_0x3839f3(0x10f)});}}static[_0x4c43d5(0xe9)](_0x217439){const _0x5a28eb=_0x4c43d5;switch(_0x217439[_0x5a28eb(0xaf)]){case _0x4ce5ec[_0x5a28eb(0xda)]:return{'type':_0x4ce5ec[_0x5a28eb(0xda)],'id':_0x217439['id']};case _0x4ce5ec[_0x5a28eb(0xe4)]:return{'type':_0x4ce5ec[_0x5a28eb(0xe4)],'id':_0x217439['id']};case _0x4ce5ec[_0x5a28eb(0xb7)]:return{'type':_0x4ce5ec[_0x5a28eb(0xb7)],'id':_0x217439['id'],..._0x217439[_0x5a28eb(0xcc)]?.[_0x5a28eb(0xcf)]&&{'selection':_0x217439[_0x5a28eb(0xcc)]}};case _0x4ce5ec[_0x5a28eb(0x9f)]:return{'type':_0x4ce5ec[_0x5a28eb(0xda)],'id':_0x217439['id']};case _0x4ce5ec[_0x5a28eb(0x10d)]:{const _0x578c97=_0x217439;return{'type':_0x4ce5ec[_0x5a28eb(0x10d)],'mcpServerName':_0x578c97[_0x5a28eb(0x88)],'toolName':_0x578c97[_0x5a28eb(0x108)],'data':_0x578c97[_0x5a28eb(0xd4)],'id':_0x578c97['id']};}default:return null;}}[_0x4c43d5(0x10a)](_0x4cbbbb,_0x19766f=!0x1){const _0x5a8f88=_0x4c43d5;if(this[_0x5a8f88(0xc9)][_0x5a8f88(0xe5)](_0x4cbbbb[_0x5a8f88(0x92)],_0x4cbbbb),_0x4cbbbb[_0x5a8f88(0xfb)]||this[_0x5a8f88(0xf1)](_0x5a8f88(0xf3),{'contextItem':_0x4cbbbb,'isLoading':_0x19766f}),_0x5a8f88(0x93)===_0x4cbbbb[_0x5a8f88(0x92)]&&this[_0x5a8f88(0xfd)](),_0x4cbbbb[_0x5a8f88(0xa7)]){const _0x30f046=this[_0x5a8f88(0xd5)](_0x4cbbbb[_0x5a8f88(0xa7)]);_0x30f046&&_0x30f046[_0x5a8f88(0x107)](_0x22f13f=>{const _0x32d47c=_0x5a8f88;this[_0x32d47c(0x10c)](_0x22f13f,_0x4cbbbb[_0x32d47c(0xa7)],!0x0);});}}[_0x4c43d5(0x110)](_0xe022d5){const _0x31d238=_0x4c43d5,_0x341224=this[_0x31d238(0xc9)][_0x31d238(0xca)](_0xe022d5),_0x12bc86=this[_0x31d238(0x9d)][_0x31d238(0xca)](_0xe022d5);if(_0x12bc86&&(_0x12bc86[_0x31d238(0x85)](),this[_0x31d238(0x9d)][_0x31d238(0xe7)](_0xe022d5)),_0x341224?.[_0x31d238(0xa7)]){const _0x5825c8=this[_0x31d238(0xd5)](_0x341224[_0x31d238(0xa7)]);_0x5825c8&&_0x5825c8[_0x31d238(0x107)](_0x24e11b=>{const _0x5773da=_0x31d238;this[_0x5773da(0x10c)](_0x24e11b,_0x341224[_0x5773da(0xa7)],!0x1);});}this[_0x31d238(0xc9)][_0x31d238(0xe7)](_0xe022d5),this[_0x31d238(0xf1)](_0x31d238(0x89),{'uiId':_0xe022d5,'type':_0x341224?.[_0x31d238(0xaf)]}),_0x31d238(0x93)===_0xe022d5&&this[_0x31d238(0xfd)]();}[_0x4c43d5(0xf4)](_0x11c6a5,_0x5effc9){const _0x14fb43=_0x4c43d5;if(this[_0x14fb43(0xc9)][_0x14fb43(0xcb)](_0x11c6a5[_0x14fb43(0x92)])&&(this[_0x14fb43(0xc9)][_0x14fb43(0xe5)](_0x11c6a5[_0x14fb43(0x92)],_0x11c6a5),this[_0x14fb43(0xf1)](_0x14fb43(0xba),{'contextItem':_0x11c6a5,'isLoading':_0x5effc9}),_0x11c6a5[_0x14fb43(0xa7)])){const _0x3ca417=this[_0x14fb43(0xd5)](_0x11c6a5[_0x14fb43(0xa7)]);_0x3ca417&&_0x3ca417[_0x14fb43(0x107)](_0x1ae8b7=>{const _0x1c2ece=_0x14fb43;this[_0x1c2ece(0x10c)](_0x1ae8b7,_0x11c6a5[_0x1c2ece(0xa7)],!0x0);});}}[_0x4c43d5(0xe3)](_0x3e74b4){const _0x257d0e=_0x4c43d5;this[_0x257d0e(0x84)][_0x257d0e(0xe5)](_0x3e74b4[_0x257d0e(0x92)],_0x3e74b4);}[_0x4c43d5(0xdc)](){const _0x423db5=_0x4c43d5;this[_0x423db5(0xa6)]={'document':{'enabled':!0x1!==this[_0x423db5(0x8e)]?.[_0x423db5(0xbc)]?.[_0x423db5(0x87)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x423db5(0x8e)]?.[_0x423db5(0x81)]?.[_0x423db5(0x87)]},'files':{'enabled':!0x1!==this[_0x423db5(0x8e)]?.[_0x423db5(0xb3)]?.[_0x423db5(0x87)]},'sources':this[_0x423db5(0xf5)](),'customItems':this[_0x423db5(0x8e)]?.[_0x423db5(0x9e)]?.[_0x423db5(0x9a)](_0x150812=>({..._0x150812,'enabled':!0x0}))??[]},this[_0x423db5(0xf1)](_0x423db5(0x8c),{'options':this[_0x423db5(0xa6)]});}[_0x4c43d5(0xf5)](){const _0x47716a=_0x4c43d5;return this[_0x47716a(0x8e)]?.[_0x47716a(0xc3)]?.[_0x47716a(0x9a)](_0x2b817c=>({..._0x2b817c,'resources':[]}))??[];}[_0x4c43d5(0xfd)](){const _0x57c1b7=_0x4c43d5,_0x5c1116=this[_0x57c1b7(0xa1)]()||this[_0x57c1b7(0xb4)]();this[_0x57c1b7(0xa6)][_0x57c1b7(0xbc)][_0x57c1b7(0xd7)]=_0x5c1116,this[_0x57c1b7(0xf1)](_0x57c1b7(0x8c),{'options':this[_0x57c1b7(0xa6)]});}[_0x4c43d5(0xfe)](_0x371925){const _0x21b9b7=_0x4c43d5;for(const _0x3eea48 of this[_0x21b9b7(0xc9)][_0x21b9b7(0x91)]())if(_0x3eea48[_0x21b9b7(0xa7)]===_0x371925)return!0x0;for(const _0xd60bb7 of this[_0x21b9b7(0x84)][_0x21b9b7(0x91)]())if(_0xd60bb7[_0x21b9b7(0xa7)]===_0x371925)return!0x0;return!0x1;}[_0x4c43d5(0xd5)](_0x5ba5e4){const _0x58e76c=_0x4c43d5,_0x47cc99=[];for(const _0x55bf3c of this[_0x58e76c(0xa6)][_0x58e76c(0xc3)]){_0x55bf3c[_0x58e76c(0xb1)][_0x58e76c(0xf0)](_0x2ffc05=>_0x2ffc05['id']===_0x5ba5e4)&&_0x47cc99[_0x58e76c(0xd1)](_0x55bf3c['id']);}return 0x0===_0x47cc99[_0x58e76c(0xcf)]?null:_0x47cc99;}[_0x4c43d5(0x10c)](_0x330bb4,_0x21e5f7,_0x4c2c2a){const _0x14639d=_0x4c43d5,_0xb06b83=this[_0x14639d(0xa6)][_0x14639d(0xc3)][_0x14639d(0xf0)](_0x4d2803=>_0x4d2803['id']===_0x330bb4);if(!_0xb06b83)return;const _0x22fa9e=_0xb06b83[_0x14639d(0xb1)][_0x14639d(0xf0)](_0x554b5b=>_0x554b5b['id']===_0x21e5f7);_0x22fa9e&&(_0x22fa9e[_0x14639d(0xec)]=_0x4c2c2a,this[_0x14639d(0xf1)](_0x14639d(0x82),{'sourceId':_0x330bb4,'resourceId':_0x21e5f7,'isInContext':_0x4c2c2a}));}[_0x4c43d5(0xc5)](_0x19a851){const _0x506a42=_0x4c43d5;this[_0x506a42(0xc7)][_0x506a42(0xe5)](_0x19a851,!0x0),this[_0x506a42(0xc7)][_0x506a42(0xdd)]&&this[_0x506a42(0xf1)](_0x506a42(0xa8),{'isUploadInProgress':!0x0});}[_0x4c43d5(0xa9)](_0x264bf3){const _0x452c6b=_0x4c43d5;this[_0x452c6b(0xc7)][_0x452c6b(0xe7)](_0x264bf3),0x0===this[_0x452c6b(0xc7)][_0x452c6b(0xdd)]&&this[_0x452c6b(0xf1)](_0x452c6b(0xa8),{'isUploadInProgress':!0x1});}}