@ckeditor/ckeditor5-ai 47.6.2-alpha.0 → 47.6.2-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
+ function _0x432f(){const _0xeb7931=['value','dialogClosed','AIChatBalloon','126LuCHpQ','focus','delegate','isTrackChangesOn','headerView','close','plugins','locale','toggleRotatorButtonsVisibility','ck-ai-chat-balloon','181240TkdHvs','applySuggestion','beforeDialogClosed','328911ldPIkp','_toggleRotatorButtonsInDialogHeader','rejectSuggestion','insertSuggestion','togglePartToolbarEnabled','Dialog','pluginName','bind','view','updateContent','remove','set','18VNqAQO','config','_createChatBalloonView','setState','showPrevious','isOfficialPlugin','2435529PUYUlj','55835NrpoVg','requires','366BURsaz','children','open','filter','showDiff','once','showNext','235656PLdfiW','commands','108XHVLmA','nextButtonView','aiChatBalloon','has','ai.availableReplyActions','_chatBalloonView','trackChanges','TrackChanges','previousButtonView','_restoreDefaultViewFocus','render','editor','areActionsDisabled','get','isPremiumPlugin','addMany','4bOrKqR','393066kzqhfu','AIBalloon','showRotator','902260jwDssQ'];_0x432f=function(){return _0xeb7931;};return _0x432f();}const _0x27488d=_0x485b;(function(_0x598fe4,_0x3f0af3){const _0x5e2281=_0x485b,_0x575fe3=_0x598fe4();while(!![]){try{const _0x5e8f5c=-parseInt(_0x5e2281(0xd8))/0x1*(parseInt(_0x5e2281(0xd9))/0x2)+parseInt(_0x5e2281(0xff))/0x3+parseInt(_0x5e2281(0x109))/0x4+-parseInt(_0x5e2281(0x100))/0x5*(-parseInt(_0x5e2281(0x102))/0x6)+-parseInt(_0x5e2281(0xe0))/0x7*(parseInt(_0x5e2281(0xea))/0x8)+parseInt(_0x5e2281(0xf9))/0x9*(-parseInt(_0x5e2281(0xdc))/0xa)+parseInt(_0x5e2281(0xed))/0xb*(parseInt(_0x5e2281(0x10b))/0xc);if(_0x5e8f5c===_0x3f0af3)break;else _0x575fe3['push'](_0x575fe3['shift']());}catch(_0x51de0d){_0x575fe3['push'](_0x575fe3['shift']());}}}(_0x432f,0x6d0d7));import{Plugin as _0x517d31}from'ckeditor5/src/core.js';function _0x485b(_0x9040e0,_0x5731f3){const _0x432f63=_0x432f();return _0x485b=function(_0x485bd3,_0x351aa0){_0x485bd3=_0x485bd3-0xd4;let _0x3da58f=_0x432f63[_0x485bd3];return _0x3da58f;},_0x485b(_0x9040e0,_0x5731f3);}import{AIBalloon as _0x505ce0}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0x5811f1}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x3a4e7f}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4eee4d}from'../aicore/utils/eventnames.js';import{Dialog as _0x5c387c}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x517d31{static get[_0x27488d(0x101)](){return[_0x5c387c,_0x505ce0];}static get[_0x27488d(0xf3)](){const _0x3d03ab=_0x27488d;return _0x3d03ab(0xdf);}static get[_0x27488d(0xfe)](){return!0x0;}static get[_0x27488d(0xd6)](){return!0x0;}[_0x27488d(0x110)];constructor(_0x2588fa){const _0x28753e=_0x27488d;super(_0x2588fa),this[_0x28753e(0xf8)](_0x28753e(0x106),!0x1);}[_0x27488d(0x104)](_0x27ceb3){const _0xa561da=_0x27488d,_0x4a881b=this[_0xa561da(0x116)];this[_0xa561da(0x110)]||(this[_0xa561da(0x110)]=this[_0xa561da(0xfb)]()),_0x4a881b[_0xa561da(0xe6)][_0xa561da(0xd5)](_0xa561da(0xda))[_0xa561da(0x104)]({..._0x27ceb3,'id':_0xa561da(0x10d),'class':_0xa561da(0xe9),'mainView':this[_0xa561da(0x110)]}),this[_0xa561da(0xee)](_0x27ceb3[_0xa561da(0xdb)]),this[_0xa561da(0x110)][_0xa561da(0xf1)](!_0x27ceb3[_0xa561da(0xd4)]),this[_0xa561da(0x114)]();}[_0x27488d(0xe5)](){const _0x5a0d43=_0x27488d;this[_0x5a0d43(0x116)][_0x5a0d43(0xe6)][_0x5a0d43(0xd5)](_0x5a0d43(0xda))[_0x5a0d43(0xe5)]();}[_0x27488d(0xf6)](_0x19828a){const _0xe03c72=_0x27488d;return this[_0xe03c72(0x110)]||(this[_0xe03c72(0x110)]=this[_0xe03c72(0xfb)]()),this[_0xe03c72(0x110)][_0xe03c72(0xf6)](_0x19828a);}[_0x27488d(0xfc)](_0x253341){const _0x5b2c4c=_0x27488d;this[_0x5b2c4c(0x110)]&&this[_0x5b2c4c(0x110)][_0x5b2c4c(0xfc)](_0x253341);}[_0x27488d(0xfb)](){const _0x45965e=_0x27488d,_0x19007f=this[_0x45965e(0x116)],_0x14a6de=_0x19007f[_0x45965e(0xe6)][_0x45965e(0xd5)](_0x45965e(0xda)),_0x29d580=_0x19007f[_0x45965e(0x10a)][_0x45965e(0xd5)](_0x45965e(0x111));let _0x493e64=_0x19007f[_0x45965e(0xfa)][_0x45965e(0xd5)](_0x45965e(0x10f))||[..._0x5811f1];_0x19007f[_0x45965e(0xe6)][_0x45965e(0x10e)](_0x45965e(0x112))||(_0x493e64=_0x493e64[_0x45965e(0x105)](_0x339931=>_0x45965e(0xf0)!=_0x339931));const _0x366a36=new _0x3a4e7f(_0x19007f[_0x45965e(0xe7)],{'availableActions':_0x493e64,'showApplyButton':!0x0,'showSuggestButton':!!_0x29d580});return _0x366a36[_0x45965e(0xf4)](_0x45965e(0x106))['to'](this),_0x366a36[_0x45965e(0xe2)](..._0x4eee4d)['to'](this),_0x366a36[_0x45965e(0xe2)](_0x45965e(0xfd),_0x45965e(0x108))['to'](this),_0x14a6de[_0x45965e(0xe2)](_0x45965e(0xde))['to'](this),_0x366a36['on'](_0x45965e(0xeb),this[_0x45965e(0x114)][_0x45965e(0xf4)](this)),_0x366a36['on'](_0x45965e(0xf0),this[_0x45965e(0x114)][_0x45965e(0xf4)](this)),_0x366a36['on'](_0x45965e(0xef),this[_0x45965e(0x114)][_0x45965e(0xf4)](this)),_0x29d580&&_0x366a36[_0x45965e(0xf4)](_0x45965e(0xe3))['to'](_0x29d580,_0x45965e(0xdd)),_0x366a36[_0x45965e(0x115)](),_0x366a36;}[_0x27488d(0xee)](_0x5b9850){const _0x3f82f4=_0x27488d,_0x166b62=this[_0x3f82f4(0x116)],_0x81f971=_0x166b62[_0x3f82f4(0xe6)][_0x3f82f4(0xd5)](_0x3f82f4(0xf2))[_0x3f82f4(0xf5)][_0x3f82f4(0xe4)][_0x3f82f4(0x103)];this[_0x3f82f4(0x110)][_0x3f82f4(0xe8)](_0x5b9850),_0x81f971[_0x3f82f4(0x10e)](this[_0x3f82f4(0x110)][_0x3f82f4(0x113)])||(_0x81f971[_0x3f82f4(0xd7)]([this[_0x3f82f4(0x110)][_0x3f82f4(0x113)],this[_0x3f82f4(0x110)][_0x3f82f4(0x10c)]],0x0),_0x166b62[_0x3f82f4(0xe6)][_0x3f82f4(0xd5)](_0x3f82f4(0xda))[_0x3f82f4(0x107)](_0x3f82f4(0xec),()=>{const _0x341d42=_0x3f82f4;_0x81f971[_0x341d42(0xf7)](this[_0x341d42(0x110)][_0x341d42(0x113)]),_0x81f971[_0x341d42(0xf7)](this[_0x341d42(0x110)][_0x341d42(0x10c)]);}));}[_0x27488d(0x114)](){const _0x2739a7=_0x27488d;this[_0x2739a7(0x110)][_0x2739a7(0xe1)]();}}
@@ -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 _0x2fb3da=_0xa9dc;(function(_0x3e5948,_0x141114){const _0x15ffd0=_0xa9dc,_0x10212e=_0x3e5948();while(!![]){try{const _0x17b889=-parseInt(_0x15ffd0(0x247))/0x1+parseInt(_0x15ffd0(0x22c))/0x2+-parseInt(_0x15ffd0(0x265))/0x3+parseInt(_0x15ffd0(0x1bf))/0x4+parseInt(_0x15ffd0(0x239))/0x5+-parseInt(_0x15ffd0(0x23f))/0x6+parseInt(_0x15ffd0(0x149))/0x7;if(_0x17b889===_0x141114)break;else _0x10212e['push'](_0x10212e['shift']());}catch(_0x387f1f){_0x10212e['push'](_0x10212e['shift']());}}}(_0x3dfc,0xd7680));import{ContextPlugin as _0x6a6b8c,Editor as _0x29a2c2}from'ckeditor5/src/core.js';import{BodyCollection as _0x406d49}from'ckeditor5/src/ui.js';import{CKEditorError as _0x431979,logError as _0x309d8c,scrollViewportToShowTarget as _0x2af423,uid as _0xc63f40}from'ckeditor5/src/utils.js';import{AIConnector as _0x2934f0}from'../aicore/aiconnector.js';import{AITabs as _0x33ee2c}from'../aitabs/aitabs.js';import{AIChatConversation as _0x3b9d4b}from'./model/aichatconversation.js';function _0xa9dc(_0x1cd39b,_0xd59896){const _0x3dfc9f=_0x3dfc();return _0xa9dc=function(_0xa9dc48,_0x52e63d){_0xa9dc48=_0xa9dc48-0x102;let _0x6d365d=_0x3dfc9f[_0xa9dc48];return _0x6d365d;},_0xa9dc(_0x1cd39b,_0xd59896);}function _0x3dfc(){const _0x59e0c8=['collaboration.channelId','addFeedItemUserMessage','startAutoScroll','sourcePosition','from','clearLoadingMessage','removeContextItem','removeFromContext','getDiff','interactionDestroyed','changes','baseVersion','webSearchStarted','config','forEach','clearConversationContextUI','uiId','version','getConversation','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','getAll','AI_CHAT_CONTEXT_INVALID_DATA','getFirstRange','toolDataReceived','getPath','ai.chat.initialConversation','AI_CHAT_ABORTED_MESSAGE','getAttribute','_handleStartConversation','path','selection','change','hideFakeVisualSelection','showPrevious','getChild','set','hasChanges','plugins','open','closeSourceResourceBalloon','redo','Showing\x20conversation\x20history...','contextSent','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','interactionCreated','streaming','addOperation','sendUserMessage','_applySuggestion','document','_aiConnector','focusPromptInput','resetWebSearchState','ai-chat-context-invalid-data','sourceId','getTransformedByOperation','showDiff','updateConversationTitle','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','contextItems','outdated','query','done','replyId','resource','scrollFeedToSuggestion','isDocumentOperation','AIChatBalloon','AIChatController','prepareLoadingMessage','start','TrackChangesEditing','locale','ai-chat-context-file-too-many-pages','AI_CHAT_CONTEXT_FILE_TOO_LARGE','activateTab','_createFromRanges','isOfficialPlugin','domConverter','_openBalloonFor','createConversation','indexes','stop','addResourceToContext','addContextItem','remove','createPositionAt','_logError','createReply','alignToTop','setAddContextOptions','abortPromptStream','getOperations','next','ai-chat-resource-load-failed','_getPresentableSiblingContentPartIndex','isUploadInProgress','addCurrentDocumentToContext','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','finishInteraction','startConversation','activeConversation','createdAt','partIndex','1352988kdHZcI','editing','contextItemLoadingEnded','revert','setModel','handleUserInteraction','map','handleRemovedConversation','setFeedItemRenderingStrategy','setConversationTitle','unshift','sourceResourcesLoaded','dialogClosed','_toggleWebSearch','toggleReasoning','_rejectSuggestion','setConversationContext','addCurrentDocumentToChatContext','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','interactionStarted','_setIsMaximized','getSelectionText','addDocumentToContext','_getAIChatInteractionAPI','removed','root','resizedTabs','toggleWebSearch','has','type','ai.models','aiChatBalloon','destroy','updateContent','new','updateCurrentDocumentInContext','loadSourceResources','batch','startsWith','history','ai.chat.context','sources','executeCustomItemCallback','ai-chat-url-upload-failed','mouseLeaveSuggestion','updateFeedItemAIReplySources','_aiChatModels','conversationInitialized','replyChangeGroupStateUpdated','isDisabled','selectModel','_currentPreviewedChangeGroup','sendMessage','uid','modification','length','upsertAIChatRating','getChildren','index','addContextOptionsChanged','Disliked\x20response','setSelectedModel','replyCreated','reasoningFinished','currentReply','$graveyard','range','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','mouseOverSuggestion','removeFeedInteraction','disableControls','indexOf','fetchConversations','ai-conversation-','commands','showFakeVisualSelection','AIEditing','delegate','updateFeedItemAIReplyContent','_removeFromContext','AIChatUI','addSelectionToContext','uploadProgressChanged','ai-chat-conversation-start-failed','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','addFileToContext','includes','resizeTabs','slice','resize','previous','addFeedItemError','like','detachFromDom','setContextItemLoading','listenTo','areActionsDisabled','ai-request-aborted','_batchToChanges','_getUserPresentableContentPartDocumentRange','AI_CHAT_UNTITLED_CONVERSATION','_registerToolDataCallback','resetConversationTitle','toggleLoadingSkeleton','push','pending','fetchConversation','TrackChanges','_updateRatings','1876938TiqjnK','ai.models.defaultModelId','updateFeedItemAIReplySuggestionContent','anchorId','lastInteraction','removeSelectionFromContext','_startConversationSafely','resetReasoningState','_showConversationHistory','contextItemAdded','interactionId','maxOffset','stopInteraction','6683865DtnKzO','bind','changeGroups','isCurrentDocumentInContext','addSelectionToChatContext','getContentParts','9765042llGlzN','get','setState','_applyOperationsAsSuggestions','ready','startInteraction','addFeedItemStaticMessage','_getLastCreatedConversationId','626799MPJENS','load','_aiChatUi','showNext','ai-chat-context-unsupported-type','setLoadingMessage','log','editors','addFeedInteractionHeader','AI_CHAT_INVALID_REQUEST','isStarted','rejected','applySuggestion','view','end','interactionFinished','data','ai-chat-controller-no-active-conversation','getRanges','Undo','context','isInContext','isCurrentDocumentInConversation','split','find','addFilesToContext','DocumentCompare','resourceStateChanged','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','options','786321jFoATk','addUrlToContext','AI_CHAT_GENERIC_ERROR','children','attachToDom','cloneNode','createRange','_aiChatBalloon','_integrateEditor','message','source','marker','main','selectedModel','close','current-document','undo','nextSibling','dislike','resources','requires','ai-chat-controller-mouse-over','getInteraction','reasoningStarted','AI_CHAT_RESOURCE_LOAD_FAILED','updateCapabilities','ai-chat-context-unsupported-file-type','resourceId','_flushLastInteractionUI','isLoading','static','accepted','rejectSuggestion','isModelAvailable','pluginName','_handleUIUserMessage','_bodyCollection','createPositionFromPath','getConversations','ai-chat-conversation-not-found','enableControls','_scrollToSuggestionRange','afterInit','sessionId','modelSelected','getChildAtOffset','node','_getDocumentRangeForReplyChanges','updateFeedItemAIReplySuggestionPartState','loadConversation','getGroupId','getDocumentData','replyContentUpdated','chat','howMany','AI_CHAT_UNABLE_TO_START_CONVERSATION','_aiChatBalloonShowDiff','lastCreated','_toggleReasoning','Liked\x20response','ai-chat-context-file-too-large','addFeedItemAISuggestion','text','setIsMaximized','ai-chat-context-form-data-size-limits-exceeded','rootName','mapper','messageId','init','populateSourceResourceBalloon','setChangeGroupState','ai-no-track-changes','getDocumentContext','_insertSuggestion','contextItemRemoved','findIndex','showChangeInText','data-id','resetMessageInput','capabilitiesUpdated','updateResourceState','callback','AITabs','ai-chat-conversation-init-failed','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','viewRangeToDom','webSearchFinished','ai-chat-missing-channel-id','clearPendingContextUI','error','add','ai-chat-invalid-request','ai-chat-file-upload-failed','isPremiumPlugin','getReply','setFeedItemAIReplySuggestionPartActive','getInteractionAndReplyById','state','model','parse','toString','AI_BALLOON_HEADER_TITLE','_aiEditing','contextItem','AIConnector','removeSelectionFromChatContext','setIsUploadInProgress','delete','addFeedItemCustomElement','5496596Wmbzac','toViewRange','_updateReplyContent','replies','getRoot','documentContextContent','content','addFeedItemAIReply','toggleSuggestionDisplayMode','applyOperation','ai-chat-source-resources-load-failed','_stopLastInteraction','insertSuggestion','filter'];_0x3dfc=function(){return _0x59e0c8;};return _0x3dfc();}import{getTranslation as _0x61ecef}from'../aicore/utils/common-translations.js';import{AIModels as _0xaadfb5}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x274ef8}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x9abce7,DATA_ID_MODEL_ATTRIBUTE as _0x3ab391}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x3a0939,getOperationsFromReply as _0x2ca132}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x329751,getMinimalSelection as _0x44f01f}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x5cbaa6,_DetachOperation as _0x51eae6}from'ckeditor5/src/engine.js';import{findOne as _0x3b9499,getAttribute as _0x439b9c,serialize as _0x433789,Document as _0x1d6823,findByAttribute as _0x13c50d}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x6a6b8c{[_0x2fb3da(0x142)];[_0x2fb3da(0x189)];[_0x2fb3da(0x249)];[_0x2fb3da(0x1ed)];[_0x2fb3da(0x26c)];[_0x2fb3da(0x221)]=new Map();[_0x2fb3da(0x1f2)]=null;[_0x2fb3da(0x289)];static get[_0x2fb3da(0x279)](){return[_0x2934f0,_0x9abce7];}static get[_0x2fb3da(0x287)](){const _0x32b5f7=_0x2fb3da;return _0x32b5f7(0x19b);}static get[_0x2fb3da(0x1a4)](){return!0x0;}static get[_0x2fb3da(0x139)](){return!0x0;}[_0x2fb3da(0x120)](){const _0x47f0e0=_0x2fb3da;this[_0x47f0e0(0x289)]=new _0x406d49(this[_0x47f0e0(0x25b)][_0x47f0e0(0x19f)]),this[_0x47f0e0(0x289)][_0x47f0e0(0x269)](),this[_0x47f0e0(0x189)]=this[_0x47f0e0(0x25b)][_0x47f0e0(0x17c)][_0x47f0e0(0x240)](_0x47f0e0(0x144)),this[_0x47f0e0(0x249)]=this[_0x47f0e0(0x25b)][_0x47f0e0(0x17c)][_0x47f0e0(0x240)](_0x47f0e0(0x20f)),this[_0x47f0e0(0x142)]=this[_0x47f0e0(0x25b)][_0x47f0e0(0x17c)][_0x47f0e0(0x240)](_0x47f0e0(0x20b)),this[_0x47f0e0(0x1ed)]=new _0xaadfb5({'connector':this[_0x47f0e0(0x189)],'config':this[_0x47f0e0(0x25b)][_0x47f0e0(0x164)][_0x47f0e0(0x240)](_0x47f0e0(0x1dd)),'locale':this[_0x47f0e0(0x25b)][_0x47f0e0(0x19f)]});const _0x540b88=this[_0x47f0e0(0x25b)][_0x47f0e0(0x17c)][_0x47f0e0(0x240)](_0x47f0e0(0x12e));this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1bb),()=>{const _0x364b86=_0x47f0e0;this[_0x364b86(0x232)]();}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x186),(_0xfbd031,_0x7bbee2)=>{const _0x65c06c=_0x47f0e0;this[_0x65c06c(0x288)]({'userMessage':_0x7bbee2});}),this[_0x47f0e0(0x21e)](_0x540b88,_0x47f0e0(0x1d9),(_0x4c918a,_0x474748)=>{const _0x4799df=_0x47f0e0;this[_0x4799df(0x1d3)](_0x474748);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x216),()=>{const _0xf034a4=_0x47f0e0;_0x540b88[_0xf034a4(0x218)]();}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1b2),async()=>{const _0xc3c5cf=_0x47f0e0;await this[_0xc3c5cf(0x154)](),await this[_0xc3c5cf(0x281)](),this[_0xc3c5cf(0x145)]();}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1d5),()=>{const _0x58c610=_0x47f0e0;this[_0x58c610(0x1d0)]();}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x214),(_0xf6f508,_0x5c1959)=>{const _0xa61c58=_0x47f0e0;this[_0xa61c58(0x1bc)]?.[_0xa61c58(0x260)](Array[_0xa61c58(0x15b)](_0x5c1959));}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x266),(_0x5553bc,_0x1be8a3)=>{const _0x355681=_0x47f0e0;this[_0x355681(0x1bc)]?.[_0x355681(0x266)](_0x1be8a3);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1e9),(_0x5d7c07,_0x3070b4)=>{const _0x637da2=_0x47f0e0;_0x3070b4[_0x637da2(0x12d)](this[_0x637da2(0x25b)]);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1aa),(_0x50cec3,_0x1c53c5)=>{const _0x2b505c=_0x47f0e0;this[_0x2b505c(0x1bc)]?.[_0x2b505c(0x1aa)](_0x1c53c5[_0x2b505c(0x26f)],_0x1c53c5[_0x2b505c(0x197)]);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x15d),(_0x42b937,_0x19d82f)=>{const _0x5630ff=_0x47f0e0;this[_0x5630ff(0x20e)](_0x19d82f);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1e3),(_0x5babe4,_0x1251f1)=>{const _0x600c25=_0x47f0e0;this[_0x600c25(0x1bc)]?.[_0x600c25(0x1e3)](_0x1251f1[_0x600c25(0x18d)],_0x1251f1[_0x600c25(0x194)],_0x1251f1[_0x600c25(0x1f4)]);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1da),()=>{const _0x14b238=_0x47f0e0;this[_0x14b238(0x1cc)]();}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1cd),()=>{const _0xd2ec9a=_0x47f0e0;this[_0xd2ec9a(0x116)]();}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1f1),(_0x39831a,_0x268867)=>{const _0x35a0af=_0x47f0e0;this[_0x35a0af(0x1bc)]?.[_0x35a0af(0x1c3)](_0x268867);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x21b),(_0xc444ed,{replyId:_0x1f09f0})=>{const _0x11267e=_0x47f0e0;console[_0x11267e(0x24d)](_0x11267e(0x117),_0x1f09f0);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x277),(_0x3276d9,{replyId:_0x23cf28})=>{const _0x48ef06=_0x47f0e0;console[_0x48ef06(0x24d)](_0x48ef06(0x1fb),_0x23cf28);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x155),(_0x38a47d,_0x570a6c)=>{const _0x4eefc8=_0x47f0e0;this[_0x4eefc8(0x125)](_0x570a6c);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x128),(_0x170d63,{replyId:_0x599d60,partIndex:_0x2bc48c})=>{const _0x16f2fb=_0x47f0e0;this[_0x16f2fb(0x114)]=this[_0x16f2fb(0x249)][_0x16f2fb(0x18f)],this[_0x16f2fb(0x1a6)](_0x599d60,_0x2bc48c);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x203),(_0x23226a,{replyId:_0x4e55f5,partIndex:_0x155b77})=>{const _0x6c18a=_0x47f0e0,_0x29ec25=this[_0x6c18a(0x10b)](_0x4e55f5,_0x155b77);_0x29ec25&&_0x6c18a(0x200)!=_0x29ec25[_0x6c18a(0x201)][_0x6c18a(0x1d8)][_0x6c18a(0x11d)]&&this[_0x6c18a(0x142)][_0x6c18a(0x20a)]([_0x29ec25[_0x6c18a(0x201)]],_0x6c18a(0x27a));}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1eb),()=>{const _0x1cf817=_0x47f0e0;this[_0x1cf817(0x142)][_0x1cf817(0x177)](_0x1cf817(0x27a));}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x253),(_0x3bea81,_0x40d329)=>{const _0x4a341a=_0x47f0e0;this[_0x4a341a(0x142)][_0x4a341a(0x177)](_0x4a341a(0x27a)),this[_0x4a341a(0x187)](_0x40d329);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x151),async(_0x461266,{replyId:_0x2b4892,showDiff:_0x983c32})=>{const _0x173134=_0x47f0e0,{reply:_0x423a6e}=this[_0x173134(0x13c)](_0x2b4892),_0x34f296=_0x423a6e[_0x173134(0x23e)]({'showDiff':_0x983c32});await this[_0x173134(0x249)][_0x173134(0x22e)]({'id':_0x423a6e['id'],'parts':_0x34f296,'renderingStrategy':_0x173134(0x283)});}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x285),(_0x3ebd8c,{replyId:_0x2b8f28,partIndex:_0x2bac80})=>{const _0x5e5256=_0x47f0e0;this[_0x5e5256(0x1ce)]({'replyId':_0x2b8f28,'partIndex':_0x2bac80}),this[_0x5e5256(0x142)][_0x5e5256(0x177)](_0x5e5256(0x27a));}),this[_0x47f0e0(0x25b)][_0x47f0e0(0x17c)][_0x47f0e0(0x1db)](_0x47f0e0(0x19a))&&(this[_0x47f0e0(0x26c)]=this[_0x47f0e0(0x25b)][_0x47f0e0(0x17c)][_0x47f0e0(0x240)](_0x47f0e0(0x19a)),this[_0x47f0e0(0x17a)](_0x47f0e0(0x114),!0x1),this[_0x47f0e0(0x26c)][_0x47f0e0(0x23a)](_0x47f0e0(0x18f))['to'](this,_0x47f0e0(0x114)),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x26c)],_0x47f0e0(0x151),()=>{const _0xb836c1=_0x47f0e0,{replyId:_0x431948,partIndex:_0x799d4a}=this[_0xb836c1(0x1f2)];this[_0xb836c1(0x114)]=!this[_0xb836c1(0x114)];const {reply:_0x3ed1c1}=this[_0xb836c1(0x13c)](_0x431948),_0xd0f76c=_0x3ed1c1[_0xb836c1(0x23e)]({'showDiff':this[_0xb836c1(0x114)],'groupIndex':_0x799d4a});this[_0xb836c1(0x26c)][_0xb836c1(0x1e0)]({'part':_0xd0f76c[0x0],'renderingStrategy':_0xb836c1(0x283),'keepErrors':!0x0});}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x26c)],_0x47f0e0(0x253),()=>{const _0xe41b93=_0x47f0e0,{replyId:_0x13e82f,partIndex:_0x678650}=this[_0xe41b93(0x1f2)];this[_0xe41b93(0x187)]({'replyId':_0x13e82f,'partIndex':_0x678650}),this[_0xe41b93(0x26c)][_0xe41b93(0x241)](_0xe41b93(0x284));}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x26c)],_0x47f0e0(0x155),()=>{const _0x9b5475=_0x47f0e0,{replyId:_0x23b579,partIndex:_0x1850f4}=this[_0x9b5475(0x1f2)];this[_0x9b5475(0x125)]({'replyId':_0x23b579,'partIndex':_0x1850f4}),this[_0x9b5475(0x26c)][_0x9b5475(0x241)](_0x9b5475(0x284));}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x26c)],_0x47f0e0(0x285),()=>{const _0x565b7c=_0x47f0e0,{replyId:_0x1311c1,partIndex:_0xb8695d}=this[_0x565b7c(0x1f2)];this[_0x565b7c(0x1ce)]({'replyId':_0x1311c1,'partIndex':_0xb8695d}),this[_0x565b7c(0x26c)][_0x565b7c(0x241)](_0x565b7c(0x252));}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x26c)],_0x47f0e0(0x24a),()=>{const _0x4cf70d=_0x47f0e0,{replyId:_0x565830,partIndex:_0x37e0b3}=this[_0x4cf70d(0x1f2)],_0x3387eb=this[_0x4cf70d(0x1b6)](_0x565830,_0x37e0b3,_0x4cf70d(0x1b4));null!==_0x3387eb&&this[_0x4cf70d(0x1a6)](_0x565830,_0x3387eb);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x26c)],_0x47f0e0(0x178),()=>{const _0x3987df=_0x47f0e0,{replyId:_0x3349a7,partIndex:_0x3b332b}=this[_0x3987df(0x1f2)],_0x2d931b=this[_0x3987df(0x1b6)](_0x3349a7,_0x3b332b,_0x3987df(0x219));null!==_0x2d931b&&this[_0x3987df(0x1a6)](_0x3349a7,_0x2d931b);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x26c)],_0x47f0e0(0x1cb),(_0x525c5f,{id:_0x4202f6})=>{const _0x5a9bf9=_0x47f0e0;if(_0x5a9bf9(0x1de)!==_0x4202f6)return;const {replyId:_0x1dd2ad,partIndex:_0x411b4e}=this[_0x5a9bf9(0x1f2)];this[_0x5a9bf9(0x1f2)]=null,this[_0x5a9bf9(0x249)][_0x5a9bf9(0x13b)]({'id':_0x1dd2ad,'index':_0x411b4e,'isActive':!0x1});}));}async[_0x2fb3da(0x106)](){const _0x5889a8=_0x2fb3da;this[_0x5889a8(0x25b)]instanceof _0x29a2c2?this[_0x5889a8(0x26d)](this[_0x5889a8(0x25b)]):this[_0x5889a8(0x21e)](this[_0x5889a8(0x25b)][_0x5889a8(0x24e)],_0x5889a8(0x136),(_0x49996f,_0xea7ec6)=>{const _0x4f4440=_0x5889a8;_0xea7ec6['on'](_0x4f4440(0x243),()=>{const _0x65fd78=_0x4f4440;this[_0x65fd78(0x26d)](_0xea7ec6);});});const _0xce8ccf=this[_0x5889a8(0x25b)][_0x5889a8(0x164)][_0x5889a8(0x240)](_0x5889a8(0x170));let _0x2b6b11=_0xce8ccf;if(_0x5889a8(0x115)!=_0xce8ccf||(_0x2b6b11=await this[_0x5889a8(0x246)](),_0x2b6b11))return _0x5889a8(0x1e1)==_0x2b6b11?this[_0x5889a8(0x232)]():this[_0x5889a8(0x10d)](_0x2b6b11);}async[_0x2fb3da(0x1df)](){const _0x10175e=_0x2fb3da;return await this[_0x10175e(0x154)](),this[_0x10175e(0x289)][_0x10175e(0x21c)](),super[_0x10175e(0x1df)]();}[_0x2fb3da(0x125)](_0x127c3e){const _0x259f67=_0x2fb3da,_0x4041f8=_0x274ef8(this[_0x259f67(0x25b)]);if(!_0x4041f8[_0x259f67(0x17c)][_0x259f67(0x1db)](_0x259f67(0x22a)))throw new _0x431979(_0x259f67(0x123),null);const _0x4eedf8=this[_0x259f67(0x25b)][_0x259f67(0x17c)][_0x259f67(0x240)](_0x259f67(0x261)),{reply:_0x1f3a32,interaction:_0x505b35}=this[_0x259f67(0x13c)](_0x127c3e[_0x259f67(0x196)]),_0x4008bd=this[_0x259f67(0x10b)](_0x127c3e[_0x259f67(0x196)],_0x127c3e[_0x259f67(0x1be)]),_0x52c95c=void 0x0!==_0x127c3e[_0x259f67(0x1be)]?[_0x1f3a32[_0x259f67(0x23b)][_0x127c3e[_0x259f67(0x1be)]]]:_0x1f3a32[_0x259f67(0x23b)][_0x259f67(0x156)](_0x487815=>_0x259f67(0x228)==_0x487815[_0x259f67(0x13d)]),_0x5e36ef=_0x52c95c[_0x259f67(0x1c5)](_0x1818bb=>_0x1f3a32[_0x259f67(0x23b)][_0x259f67(0x206)](_0x1818bb));if(!_0x4008bd||_0x259f67(0x200)==_0x4008bd[_0x259f67(0x201)][_0x259f67(0x1d8)][_0x259f67(0x11d)])return void _0x5e36ef[_0x259f67(0x165)](_0x5d3f95=>_0x1f3a32[_0x259f67(0x122)](_0x5d3f95,_0x259f67(0x193)));_0x5e36ef[_0x259f67(0x165)](_0x596c45=>_0x1f3a32[_0x259f67(0x122)](_0x596c45,_0x259f67(0x284)));const _0x501d1c=_0x2ca132({'editor':_0x4041f8,'reply':_0x1f3a32,'interaction':_0x505b35,'groups':_0x52c95c,'transform':!0x0,'documentCompare':_0x4eedf8,'documentCompareOptions':{'anchor':_0x259f67(0x271),'markDeletions':!0x0}});let _0x4bebbb;_0x4008bd&&this[_0x259f67(0x105)](_0x4008bd[_0x259f67(0x201)]),_0x4041f8[_0x259f67(0x13e)][_0x259f67(0x176)](_0x5c467d=>{const _0x280b9e=_0x259f67;_0x4bebbb=_0x5c467d[_0x280b9e(0x1e4)],_0x4041f8[_0x280b9e(0x17c)][_0x280b9e(0x240)](_0x280b9e(0x19e))[_0x280b9e(0x242)](_0x501d1c),this[_0x280b9e(0x142)][_0x280b9e(0x177)](_0x280b9e(0x27a));}),this[_0x259f67(0x221)][_0x259f67(0x17a)](_0x4bebbb,{'interactionId':_0x505b35['id'],'replyId':_0x1f3a32['id'],'indexes':_0x5e36ef[_0x259f67(0x217)]()}),this[_0x259f67(0x22b)](_0x1f3a32);}[_0x2fb3da(0x187)](_0xe7984){const _0x4a40e0=_0x2fb3da,_0x1c9942=_0x274ef8(this[_0x4a40e0(0x25b)]),_0x33c0b0=this[_0x4a40e0(0x25b)][_0x4a40e0(0x17c)][_0x4a40e0(0x240)](_0x9abce7),{reply:_0x30a5d6,interaction:_0x3d1249}=this[_0x4a40e0(0x13c)](_0xe7984[_0x4a40e0(0x196)]),_0x2c4250=this[_0x4a40e0(0x10b)](_0xe7984[_0x4a40e0(0x196)],_0xe7984[_0x4a40e0(0x1be)]),_0x5c507c=void 0x0!==_0xe7984[_0x4a40e0(0x1be)]?[_0x30a5d6[_0x4a40e0(0x23b)][_0xe7984[_0x4a40e0(0x1be)]]]:_0x30a5d6[_0x4a40e0(0x23b)][_0x4a40e0(0x156)](_0x4ebdc0=>_0x4a40e0(0x228)==_0x4ebdc0[_0x4a40e0(0x13d)]),_0x2c74c5=_0x5c507c[_0x4a40e0(0x1c5)](_0x28729b=>_0x30a5d6[_0x4a40e0(0x23b)][_0x4a40e0(0x206)](_0x28729b));if(!_0x2c4250||_0x4a40e0(0x200)==_0x2c4250[_0x4a40e0(0x201)][_0x4a40e0(0x1d8)][_0x4a40e0(0x11d)])return void _0x2c74c5[_0x4a40e0(0x165)](_0x4af5a=>_0x30a5d6[_0x4a40e0(0x122)](_0x4af5a,_0x4a40e0(0x193)));_0x2c74c5[_0x4a40e0(0x165)](_0x1e4605=>_0x30a5d6[_0x4a40e0(0x122)](_0x1e4605,_0x4a40e0(0x284)));const _0x9048de=_0x2ca132({'editor':_0x1c9942,'reply':_0x30a5d6,'interaction':_0x3d1249,'groups':_0x5c507c,'transform':!0x0,'documentCompare':_0x33c0b0,'documentCompareOptions':{'anchor':_0x4a40e0(0x271),'markDeletions':!0x1}});let _0x57b027;_0x2c4250&&this[_0x4a40e0(0x105)](_0x2c4250[_0x4a40e0(0x201)]),_0x1c9942[_0x4a40e0(0x13e)][_0x4a40e0(0x176)](_0x32f0d6=>{const _0x2f2a24=_0x4a40e0;_0x57b027=_0x32f0d6[_0x2f2a24(0x1e4)];for(const _0x14257e of _0x9048de)_0x14257e[_0x2f2a24(0x162)]=_0x1c9942[_0x2f2a24(0x13e)][_0x2f2a24(0x188)][_0x2f2a24(0x168)],_0x3a0939(_0x1c9942,_0x14257e),_0x32f0d6[_0x2f2a24(0x1e4)][_0x2f2a24(0x185)](_0x14257e),_0x1c9942[_0x2f2a24(0x13e)][_0x2f2a24(0x152)](_0x14257e);}),this[_0x4a40e0(0x221)][_0x4a40e0(0x17a)](_0x57b027,{'interactionId':_0x3d1249['id'],'replyId':_0x30a5d6['id'],'indexes':_0x2c74c5[_0x4a40e0(0x217)]()}),this[_0x4a40e0(0x22b)](_0x30a5d6);}[_0x2fb3da(0x1ce)](_0x57577d){const _0x2c3fce=_0x2fb3da,{reply:_0x43934f}=this[_0x2c3fce(0x13c)](_0x57577d[_0x2c3fce(0x196)]);_0x43934f[_0x2c3fce(0x122)](_0x57577d[_0x2c3fce(0x1be)],_0x2c3fce(0x252));}[_0x2fb3da(0x1a6)](_0x12b0a8,_0x323d60){const _0x4fd45e=_0x2fb3da;if(!this[_0x4fd45e(0x26c)])return;const {reply:_0x12ad66}=this[_0x4fd45e(0x13c)](_0x12b0a8),_0x249fc9=_0x12ad66[_0x4fd45e(0x23e)]({'showDiff':this[_0x4fd45e(0x114)]});let _0x23939e,_0x18c17b;if(void 0x0!==_0x323d60?(_0x18c17b=_0x249fc9[_0x4fd45e(0x25f)](_0x44c1f6=>_0x44c1f6[_0x4fd45e(0x1f9)]==_0x323d60),_0x23939e=_0x18c17b?.[_0x4fd45e(0x1f9)]):(_0x18c17b=_0x249fc9[0x0],_0x23939e=_0x18c17b[_0x4fd45e(0x1f9)]),this[_0x4fd45e(0x1f2)]?.[_0x4fd45e(0x196)]==_0x12b0a8&&this[_0x4fd45e(0x1f2)]?.[_0x4fd45e(0x1be)]==_0x23939e)return;const _0x45ecb9=this[_0x4fd45e(0x222)](_0x12b0a8,_0x12ad66,_0x18c17b);if(!_0x45ecb9)return void this[_0x4fd45e(0x26c)][_0x4fd45e(0x273)]();this[_0x4fd45e(0x1f2)]={'replyId':_0x12b0a8,'partIndex':_0x23939e},this[_0x4fd45e(0x105)](_0x45ecb9,!0x0);const _0x4502c7=this[_0x4fd45e(0x1b6)](_0x12b0a8,_0x23939e,_0x4fd45e(0x1b4));this[_0x4fd45e(0x26c)][_0x4fd45e(0x1e0)]({'part':_0x18c17b,'renderingStrategy':_0x4fd45e(0x283)}),this[_0x4fd45e(0x26c)][_0x4fd45e(0x17d)]({'index':_0x23939e,'title':_0x61ecef(this[_0x4fd45e(0x25b)][_0x4fd45e(0x19f)],_0x4fd45e(0x141),(_0x23939e+0x1)[_0x4fd45e(0x140)]()),'showRotator':null!==_0x4502c7,'ranges':[_0x45ecb9],'areActionsDisabled':_0x12ad66[_0x4fd45e(0x21f)]}),this[_0x4fd45e(0x26c)][_0x4fd45e(0x241)](_0x4fd45e(0x228)),this[_0x4fd45e(0x249)][_0x4fd45e(0x198)](_0x12b0a8,_0x23939e),this[_0x4fd45e(0x249)][_0x4fd45e(0x13b)]({'id':_0x12b0a8,'index':_0x23939e,'isActive':!0x0});}[_0x2fb3da(0x1b6)](_0x25ae00,_0x11cb3b,_0x34ee86){const _0xc34ff1=_0x2fb3da,{reply:_0x4a795a}=this[_0xc34ff1(0x13c)](_0x25ae00),_0x4cfd3b=_0x4a795a[_0xc34ff1(0x23e)]({'showDiff':this[_0xc34ff1(0x114)]});if(0x1==_0x4cfd3b[_0xc34ff1(0x1f6)])return null;const _0xda1a6a=_0x4cfd3b[_0xc34ff1(0x127)](_0x2bd5ab=>_0x2bd5ab[_0xc34ff1(0x1f9)]==_0x11cb3b),_0x5268ab=_0xc34ff1(0x1b4)==_0x34ee86?0x1:-0x1;let _0x31ac33=_0x4cfd3b['at']((_0xda1a6a+_0x5268ab)%_0x4cfd3b[_0xc34ff1(0x1f6)])[_0xc34ff1(0x1f9)],_0x4a43a7=_0x4cfd3b[_0x31ac33];for(;!this[_0xc34ff1(0x222)](_0x25ae00,_0x4a795a,_0x4a43a7);){if(_0x31ac33=_0x4cfd3b['at']((_0x31ac33+_0x5268ab)%_0x4cfd3b[_0xc34ff1(0x1f6)])[_0xc34ff1(0x1f9)],_0x31ac33===_0xda1a6a)return null;_0x4a43a7=_0x4cfd3b[_0x31ac33];}return _0x31ac33;}[_0x2fb3da(0x222)](_0x2a65ff,_0x3dab9f,_0x17ff97){const _0x4bc83b=_0x2fb3da,_0x132848=_0x3dab9f[_0x4bc83b(0x23b)];if(!_0x17ff97[_0x4bc83b(0x17b)])return null;const _0xe129d9=_0x132848[_0x4bc83b(0x25f)](_0x228151=>_0x228151[_0x4bc83b(0x1f9)]==_0x17ff97[_0x4bc83b(0x1f9)]);if(_0x4bc83b(0x228)!==_0xe129d9?.[_0x4bc83b(0x13d)])return null;const _0x5f025b=this[_0x4bc83b(0x10b)](_0x2a65ff,_0x17ff97[_0x4bc83b(0x1f9)]);if(!_0x5f025b)return null;const {range:_0x2dd1f5,currentIndex:_0xe663f5}=_0x5f025b;return _0x4bc83b(0x200)==_0x2dd1f5[_0x4bc83b(0x1d8)][_0x4bc83b(0x11d)]?(_0x3dab9f[_0x4bc83b(0x122)](_0xe663f5,_0x4bc83b(0x193)),null):_0x5f025b[_0x4bc83b(0x201)];}[_0x2fb3da(0x10b)](_0x21cf0d,_0x2353b9){const _0x2bed18=_0x2fb3da,_0x197a4b=_0x274ef8(this[_0x2bed18(0x25b)]),{reply:_0x2d659f,interaction:_0x251d62}=this[_0x2bed18(0x13c)](_0x21cf0d),_0x1415f1=_0x2d659f[_0x2bed18(0x23b)][_0x2bed18(0x156)](_0x364491=>_0x2bed18(0x228)==_0x364491[_0x2bed18(0x13d)]),_0xad411b=_0x1415f1[_0x2bed18(0x1c5)](_0x15721d=>_0x2d659f[_0x2bed18(0x23b)][_0x2bed18(0x206)](_0x15721d));void 0x0===_0x2353b9&&(_0x2353b9=_0xad411b[0x0]);const _0x739b83=_0xad411b[_0x2bed18(0x206)](_0x2353b9);if(-0x1==_0x739b83)return null;const _0x3019d5=_0x1415f1[_0x739b83],_0x53d8fc=new _0x1d6823([]),_0x361018=new _0x1d6823([]);for(const _0x32570f of _0x3019d5[_0x2bed18(0x161)])if(_0x2bed18(0x1d7)!=_0x32570f[_0x2bed18(0x1dc)]&&_0x361018[_0x2bed18(0x268)][_0x2bed18(0x227)](_0x32570f[_0x2bed18(0x10a)][_0x2bed18(0x26a)](!0x0)),_0x2bed18(0x1e1)!=_0x32570f[_0x2bed18(0x1dc)]){const _0x267c3d=_0x3b9499(_0x19fb70=>_0x439b9c(_0x19fb70,_0x2bed18(0x129))==_0x32570f['id'],_0x2d659f[_0x2bed18(0x14e)],!0x0);_0x53d8fc[_0x2bed18(0x268)][_0x2bed18(0x227)](_0x267c3d[_0x2bed18(0x26a)](!0x0));}if(0x0==_0x53d8fc[_0x2bed18(0x268)][_0x2bed18(0x1f6)]){if(_0x3019d5[_0x2bed18(0x161)][0x0][_0x2bed18(0x22f)]){const _0x22e970=_0x13c50d(_0x2bed18(0x129),_0x3019d5[_0x2bed18(0x161)][0x0][_0x2bed18(0x22f)],_0x2d659f[_0x2bed18(0x14e)]);_0x53d8fc[_0x2bed18(0x268)][_0x2bed18(0x1c9)](_0x22e970[_0x2bed18(0x26a)](!0x0)),_0x361018[_0x2bed18(0x268)][_0x2bed18(0x1c9)](_0x22e970[_0x2bed18(0x26a)](!0x0)),_0x22e970[_0x2bed18(0x276)]&&(_0x53d8fc[_0x2bed18(0x268)][_0x2bed18(0x227)](_0x22e970[_0x2bed18(0x276)][_0x2bed18(0x26a)](!0x0)),_0x361018[_0x2bed18(0x268)][_0x2bed18(0x227)](_0x22e970[_0x2bed18(0x276)][_0x2bed18(0x26a)](!0x0)));}else{const _0x299414=_0x2d659f[_0x2bed18(0x14e)][_0x2bed18(0x268)][0x0];if(!_0x299414)return null;_0x53d8fc[_0x2bed18(0x268)][_0x2bed18(0x227)](_0x299414[_0x2bed18(0x26a)](!0x0)),_0x361018[_0x2bed18(0x268)][_0x2bed18(0x227)](_0x299414[_0x2bed18(0x26a)](!0x0));}}const _0x226df4=_0x251d62[_0x2bed18(0x124)](),_0x19e770=_0x197a4b[_0x2bed18(0x257)][_0x2bed18(0x13f)](_0x226df4[_0x2bed18(0x14f)]),_0x3483c2=_0x433789(_0x53d8fc),_0x4848eb=_0x197a4b[_0x2bed18(0x257)][_0x2bed18(0x13f)](_0x3483c2),_0x352161=_0x197a4b[_0x2bed18(0x257)][_0x2bed18(0x13f)](_0x3483c2),_0x435e0f=_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x1ad)](_0x4848eb,0x0),_0x4aac15=_0x433789(_0x361018),_0x1dbc3d={'anchor':_0x435e0f,'markDeletions':!0x1},_0x2a095c=_0x197a4b[_0x2bed18(0x17c)][_0x2bed18(0x240)](_0x9abce7)[_0x2bed18(0x15f)](_0x3483c2,_0x4aac15,_0x1dbc3d)[_0x2bed18(0x1b3)]();if(!_0x2a095c[_0x2bed18(0x1f6)])return null;_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x176)](_0x243b18=>{const _0x33d52b=_0x2bed18;for(const _0x159735 of _0x2a095c)if(_0x33d52b(0x1ac)==_0x159735[_0x33d52b(0x1dc)]){const _0x368c71=_0x159735[_0x33d52b(0x15a)],_0x8b04ac=_0x159735[_0x33d52b(0x112)],_0x1d2746=new _0x51eae6(_0x368c71,_0x8b04ac);_0x243b18[_0x33d52b(0x1e4)][_0x33d52b(0x185)](_0x1d2746),_0x197a4b[_0x33d52b(0x13e)][_0x33d52b(0x152)](_0x1d2746);}else _0x33d52b(0x270)!==_0x159735[_0x33d52b(0x1dc)]&&(_0x159735[_0x33d52b(0x162)]=null,_0x159735[_0x33d52b(0x199)]=!0x1,_0x243b18[_0x33d52b(0x1e4)][_0x33d52b(0x185)](_0x159735),_0x197a4b[_0x33d52b(0x13e)][_0x33d52b(0x152)](_0x159735));});const _0xbd7800=_0x44f01f(_0x197a4b,_0x2a095c,_0x4848eb);_0x329751(_0x197a4b[_0x2bed18(0x13e)],_0xbd7800);const _0x214057=_0xbd7800[_0x2bed18(0x16d)]()[_0x2bed18(0x19d)][_0x2bed18(0x174)][_0x2bed18(0x217)](),_0x526660=_0xbd7800[_0x2bed18(0x16d)]()[_0x2bed18(0x255)][_0x2bed18(0x174)][_0x2bed18(0x217)](),_0x269dd9=[];let _0x28a4de=_0x4848eb,_0x40d9fa=_0x352161;for(let _0x2df247=0x0;_0x2df247<_0x526660[_0x2bed18(0x1f6)];_0x2df247++){const _0x973f65=_0x28a4de[_0x2bed18(0x237)]-_0x526660[_0x2df247];_0x269dd9[_0x2df247]=_0x40d9fa[_0x2bed18(0x237)]-_0x973f65,_0x28a4de=_0x28a4de[_0x2bed18(0x109)](_0x526660[_0x2df247]),_0x40d9fa=_0x40d9fa[_0x2bed18(0x109)](_0x269dd9[_0x2df247]);}const _0x360d58=_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x26b)](_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x28a)](_0x352161,_0x214057),_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x28a)](_0x352161,_0x269dd9)),_0x769eae=_0x352161[_0x2bed18(0x179)](0x0)[_0x2bed18(0x172)](_0x3ab391),_0x432195=Array[_0x2bed18(0x15b)](_0x19e770[_0x2bed18(0x1f8)]())[_0x2bed18(0x25f)](_0x4d9736=>_0x4d9736[_0x2bed18(0x172)](_0x3ab391)==_0x769eae)[_0x2bed18(0x16f)](),_0x314b1d=_0x360d58[_0x2bed18(0x19d)][_0x2bed18(0x174)][_0x2bed18(0x217)](),_0x4fef7d=_0x360d58[_0x2bed18(0x255)][_0x2bed18(0x174)][_0x2bed18(0x217)]();_0x314b1d[0x0]=_0x432195[0x0]+_0x314b1d[0x0],_0x4fef7d[0x0]=_0x432195[0x0]+_0x4fef7d[0x0];let _0x52895b=_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x26b)](_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x28a)](_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x188)][_0x2bed18(0x14d)](),_0x314b1d),_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x28a)](_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x188)][_0x2bed18(0x14d)](),_0x4fef7d));const _0x332f8b=_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x188)][_0x2bed18(0x1e6)][_0x2bed18(0x1b3)](_0x226df4[_0x2bed18(0x168)]);for(const _0x44254a of _0x332f8b)_0x52895b=_0x5cbaa6[_0x2bed18(0x1a3)](_0x52895b[_0x2bed18(0x18e)](_0x44254a));return{'range':_0x52895b,'currentIndex':_0x2353b9};}[_0x2fb3da(0x26d)](_0x273523){const _0x1a13ae=_0x2fb3da;if(!_0x273523[_0x1a13ae(0x17c)][_0x1a13ae(0x1db)](_0x1a13ae(0x25a)))return;const _0x510e07=_0x273523[_0x1a13ae(0x209)][_0x1a13ae(0x240)](_0x1a13ae(0x275)),_0x1650bb=_0x273523[_0x1a13ae(0x209)][_0x1a13ae(0x240)](_0x1a13ae(0x17f));this[_0x1a13ae(0x21e)](_0x510e07,_0x1a13ae(0x1c2),(_0x4e5b24,_0x32507d,_0xf30a34)=>{const _0x226ee2=_0x1a13ae,_0x5ecce9=this[_0x226ee2(0x221)][_0x226ee2(0x240)](_0x32507d);if(!_0x5ecce9)return;const _0x42b96d=this[_0x226ee2(0x1bc)][_0x226ee2(0x27b)](_0x5ecce9[_0x226ee2(0x236)])[_0x226ee2(0x13a)](_0x5ecce9[_0x226ee2(0x196)]);_0x5ecce9[_0x226ee2(0x1a8)][_0x226ee2(0x165)](_0x479b41=>_0x42b96d[_0x226ee2(0x122)](_0x479b41,_0x226ee2(0x228))),this[_0x226ee2(0x221)][_0x226ee2(0x147)](_0x32507d),this[_0x226ee2(0x221)][_0x226ee2(0x17a)](_0xf30a34,_0x5ecce9);}),this[_0x1a13ae(0x21e)](_0x1650bb,_0x1a13ae(0x1c2),(_0x4c1449,_0x2bb79e,_0x13a497)=>{const _0x4cd539=_0x1a13ae,_0x47b31c=this[_0x4cd539(0x221)][_0x4cd539(0x240)](_0x2bb79e);if(!_0x47b31c)return;const _0x18024c=this[_0x4cd539(0x1bc)][_0x4cd539(0x27b)](_0x47b31c[_0x4cd539(0x236)])[_0x4cd539(0x13a)](_0x47b31c[_0x4cd539(0x196)]);_0x47b31c[_0x4cd539(0x1a8)][_0x4cd539(0x165)](_0x1e280c=>_0x18024c[_0x4cd539(0x122)](_0x1e280c,_0x4cd539(0x284))),this[_0x4cd539(0x221)][_0x4cd539(0x147)](_0x2bb79e),this[_0x4cd539(0x221)][_0x4cd539(0x17a)](_0x13a497,_0x47b31c);});}async[_0x2fb3da(0x10d)](_0x33ea00){const _0x3204c2=_0x2fb3da;this[_0x3204c2(0x25b)][_0x3204c2(0x17c)][_0x3204c2(0x1db)](_0x3204c2(0x19a))&&this[_0x3204c2(0x25b)][_0x3204c2(0x17c)][_0x3204c2(0x240)](_0x3204c2(0x19a))[_0x3204c2(0x273)](),(this[_0x3204c2(0x25b)][_0x3204c2(0x17c)][_0x3204c2(0x240)](_0x33ee2c)[_0x3204c2(0x254)][_0x3204c2(0x1a2)](_0x3204c2(0x111)),this[_0x3204c2(0x249)][_0x3204c2(0x1c7)](_0x3204c2(0x283)),this[_0x3204c2(0x249)][_0x3204c2(0x226)](!0x0),await this[_0x3204c2(0x154)]());try{await this[_0x3204c2(0x189)][_0x3204c2(0x229)](_0x33ea00)[_0x3204c2(0x169)](),await this[_0x3204c2(0x232)](_0x33ea00),this[_0x3204c2(0x190)]('\x20'),await this[_0x3204c2(0x1bc)][_0x3204c2(0x248)](_0x33ea00,this[_0x3204c2(0x142)][_0x3204c2(0x107)]),this[_0x3204c2(0x1bc)][_0x3204c2(0x25d)]()&&this[_0x3204c2(0x1d0)]();}catch(_0x4f7c8e){this[_0x3204c2(0x249)][_0x3204c2(0x21a)]({'errorMessage':_0x61ecef(this[_0x3204c2(0x25b)][_0x3204c2(0x19f)],_0x3204c2(0x1d1)),'id':_0x33ea00}),this[_0x3204c2(0x1ae)](new _0x431979(_0x3204c2(0x103),this,{'error':_0x4f7c8e}));}finally{this[_0x3204c2(0x249)][_0x3204c2(0x159)](),this[_0x3204c2(0x249)][_0x3204c2(0x1c7)](_0x3204c2(0x184)),this[_0x3204c2(0x249)][_0x3204c2(0x226)](!0x1);}}async[_0x2fb3da(0x246)](){const _0x598b0c=_0x2fb3da,_0x3ae728=this[_0x598b0c(0x189)][_0x598b0c(0x207)](this[_0x598b0c(0x10e)](),{'limit':0x1,'sortBy':_0x598b0c(0x1bd)});try{const _0x57b4d7=await _0x3ae728[_0x598b0c(0x102)]();return _0x57b4d7[_0x598b0c(0x1f6)]?_0x57b4d7[0x0]['id']:_0x598b0c(0x1e1);}catch(_0x4cccdf){return this[_0x598b0c(0x249)][_0x598b0c(0x21a)]({'errorMessage':_0x61ecef(this[_0x598b0c(0x25b)][_0x598b0c(0x19f)],_0x598b0c(0x1d1)),'id':_0xc63f40()}),this[_0x598b0c(0x1ae)](new _0x431979(_0x598b0c(0x12f),this,{'error':_0x4cccdf})),this[_0x598b0c(0x249)][_0x598b0c(0x226)](!0x1),this[_0x598b0c(0x249)][_0x598b0c(0x205)](),null;}}[_0x2fb3da(0x1c6)](_0x4ac5fa){const _0x4964d8=_0x2fb3da;this[_0x4964d8(0x1bc)]['id']===_0x4ac5fa&&this[_0x4964d8(0x232)]();}[_0x2fb3da(0x1d0)](){const _0x431a20=_0x2fb3da;this[_0x431a20(0x1bc)]?.[_0x431a20(0x1b8)](_0x61ecef(this[_0x431a20(0x25b)][_0x431a20(0x19f)],_0x431a20(0x1b9)));}async[_0x2fb3da(0x23d)](){const _0x124f4d=_0x2fb3da,_0x490b4d=this[_0x124f4d(0x142)][_0x124f4d(0x1d4)]();this[_0x124f4d(0x1bc)]?.[_0x124f4d(0x210)](_0x490b4d),this[_0x124f4d(0x1d0)]();}[_0x2fb3da(0x145)](){const _0x595cb4=_0x2fb3da;this[_0x595cb4(0x1bc)]?.[_0x595cb4(0x231)]();}[_0x2fb3da(0x18a)](){const _0x2cf3a7=_0x2fb3da;this[_0x2cf3a7(0x249)][_0x2cf3a7(0x18a)]();}async[_0x2fb3da(0x1bb)](){const _0x517d0a=_0x2fb3da;await this[_0x517d0a(0x232)]();}async[_0x2fb3da(0x1f3)]({message:_0x2b607f,attributes:_0x8bb9e6}){const _0x5946dd=_0x2fb3da;await this[_0x5946dd(0x288)]({'userMessage':_0x2b607f,'attributes':_0x8bb9e6});}[_0x2fb3da(0x10e)](){const _0x57455f=_0x2fb3da,_0x4f1985=this[_0x57455f(0x25b)][_0x57455f(0x164)][_0x57455f(0x240)](_0x57455f(0x157));if(!_0x4f1985)throw new _0x431979(_0x57455f(0x133),this);return _0x4f1985;}async[_0x2fb3da(0x232)](_0x3f0b6d){const _0x10d5a8=_0x2fb3da;try{this[_0x10d5a8(0x249)][_0x10d5a8(0x104)](),await this[_0x10d5a8(0x173)](_0x3f0b6d);}catch(_0x141f42){this[_0x10d5a8(0x249)][_0x10d5a8(0x21a)]({'errorMessage':_0x61ecef(this[_0x10d5a8(0x25b)][_0x10d5a8(0x19f)],_0x10d5a8(0x113)),'id':_0x3f0b6d||_0xc63f40()}),console[_0x10d5a8(0x135)](_0x141f42),this[_0x10d5a8(0x1bc)]=void 0x0,this[_0x10d5a8(0x249)][_0x10d5a8(0x205)]();}}async[_0x2fb3da(0x173)](_0xc56d1){const _0x5295e6=_0x2fb3da;let _0xbf2970;this[_0x5295e6(0x25b)][_0x5295e6(0x17c)][_0x5295e6(0x1db)](_0x5295e6(0x19a))&&this[_0x5295e6(0x25b)][_0x5295e6(0x17c)][_0x5295e6(0x240)](_0x5295e6(0x19a))[_0x5295e6(0x273)](),_0xc56d1||!this[_0x5295e6(0x1bc)]?_0xbf2970=this[_0x5295e6(0x25b)][_0x5295e6(0x164)][_0x5295e6(0x240)](_0x5295e6(0x22d)):this[_0x5295e6(0x249)][_0x5295e6(0x286)]&&(_0xbf2970=this[_0x5295e6(0x1bc)][_0x5295e6(0x272)]['id']),await this[_0x5295e6(0x154)]();const _0x27d3e8=this[_0x5295e6(0x10e)](),_0x4a7b20=_0xc56d1||_0xc63f40();this[_0x5295e6(0x1bc)]=new _0x3b9d4b({'connector':this[_0x5295e6(0x189)],'chatModels':this[_0x5295e6(0x1ed)],'selectedModelId':_0xbf2970,'conversationId':_0x4a7b20,'group':_0x27d3e8,'getEditor':()=>_0x274ef8(this[_0x5295e6(0x25b)]),'isFromHistory':!!_0xc56d1}),this[_0x5295e6(0x1bc)][_0x5295e6(0x20c)](_0x5295e6(0x16e),_0x5295e6(0x1d2))['to'](this),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1ee),(_0x4a0b3f,_0x50da35)=>{const _0x3757f2=_0x5295e6;this[_0x3757f2(0x249)][_0x3757f2(0x1a7)](_0x50da35),this[_0x3757f2(0x249)][_0x3757f2(0x12a)](),this[_0x3757f2(0x249)][_0x3757f2(0x134)](),this[_0x3757f2(0x249)][_0x3757f2(0x166)](),_0xc56d1||(this[_0x3757f2(0x249)][_0x3757f2(0x225)](),this[_0x3757f2(0x1d0)]());}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x211),(_0x52f6c9,_0x524882)=>{const _0x346364=_0x5295e6;this[_0x346364(0x249)][_0x346364(0x146)](_0x524882[_0x346364(0x1b7)]);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x183),(_0x460a4f,_0x555dce)=>{const _0x24f23b=_0x5295e6;this[_0x24f23b(0x249)][_0x24f23b(0x158)](_0x555dce);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x163),()=>{const _0x37bf62=_0x5295e6,_0x278e9b=this[_0x37bf62(0x249)][_0x37bf62(0x19c)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x37bf62(0x249)][_0x37bf62(0x24c)](_0x278e9b);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x27c),()=>{const _0x3e6b2f=_0x5295e6,_0x3ffa21=this[_0x3e6b2f(0x249)][_0x3e6b2f(0x19c)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x3e6b2f(0x249)][_0x3e6b2f(0x24c)](_0x3ffa21);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x132),(_0x44eb49,_0x56ab56)=>{const _0x2198da=_0x5295e6;this[_0x2198da(0x249)][_0x2198da(0x24f)](_0x56ab56,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1fe),(_0x1508d4,_0x1d7440)=>{const _0x208238=_0x5295e6;this[_0x208238(0x249)][_0x208238(0x24f)](_0x1d7440,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1d2),()=>{const _0x8081f0=_0x5295e6;this[_0x8081f0(0x249)][_0x8081f0(0x244)]();}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x256),async()=>{const _0x5d476c=_0x5295e6;await this[_0x5d476c(0x249)][_0x5d476c(0x1ba)]();}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x160),(_0x32023a,_0x31bfbc)=>{const _0x55d25e=_0x5295e6;this[_0x55d25e(0x249)][_0x55d25e(0x204)](_0x31bfbc['id']);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1c8),(_0x41c7be,_0x4f1524,_0x130298)=>{const _0x14dbf8=_0x5295e6;this[_0x14dbf8(0x190)](_0x4f1524,_0x130298);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1fd),(_0x5ef7c6,_0x13900d)=>{const _0x4362d5=_0x5295e6;_0x4362d5(0x11a)===_0x13900d[_0x4362d5(0x1dc)]?this[_0x4362d5(0x249)][_0x4362d5(0x150)](_0x13900d):this[_0x4362d5(0x249)][_0x4362d5(0x119)](_0x13900d);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x110),async(_0x58fdcb,_0x4acb57)=>{const _0x1fadc2=_0x5295e6;await this[_0x1fadc2(0x14b)]({'reply':_0x4acb57});}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1ef),(_0x14a3cf,{reply:_0x3ade7d,index:_0x3d8f9e,state:_0x16dd32})=>{const _0x2d3ece=_0x5295e6;this[_0x2d3ece(0x249)][_0x2d3ece(0x10c)]({'id':_0x3ade7d['id'],'index':_0x3d8f9e,'state':_0x16dd32}),this[_0x2d3ece(0x1f2)]?.[_0x2d3ece(0x196)][_0x2d3ece(0x215)](_0x3ade7d['id'])&&this[_0x2d3ece(0x1f2)]?.[_0x2d3ece(0x1be)]==_0x3d8f9e&&this[_0x2d3ece(0x26c)]?.[_0x2d3ece(0x241)](_0x16dd32);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x235),(_0x5bdcc9,_0x14f224)=>{const _0x1c8367=_0x5295e6;if(this[_0x1c8367(0x249)][_0x1c8367(0x1ab)](_0x14f224[_0x1c8367(0x143)],_0x14f224[_0x1c8367(0x282)]),_0x1c8367(0x175)===_0x14f224[_0x1c8367(0x143)][_0x1c8367(0x1dc)]){const _0x1ea5f1=[..._0x274ef8(this[_0x1c8367(0x25b)])[_0x1c8367(0x13e)][_0x1c8367(0x188)][_0x1c8367(0x175)][_0x1c8367(0x259)]()];this[_0x1c8367(0x142)][_0x1c8367(0x20a)](_0x1ea5f1,_0x1c8367(0x208)+this[_0x1c8367(0x1bc)]?.['id']);}}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x126),(_0x4e7222,_0x25a9db)=>{const _0x1b1229=_0x5295e6;this[_0x1b1229(0x249)][_0x1b1229(0x15d)](_0x25a9db[_0x1b1229(0x167)]),_0x1b1229(0x274)==_0x25a9db[_0x1b1229(0x167)]&&this[_0x1b1229(0x145)](),_0x1b1229(0x175)===_0x25a9db[_0x1b1229(0x1dc)]&&this[_0x1b1229(0x142)][_0x1b1229(0x177)](_0x1b1229(0x208)+this[_0x1b1229(0x1bc)]?.['id']);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1c1),(_0x15f9de,_0x1ff3a5)=>{const _0x4c0570=_0x5295e6;this[_0x4c0570(0x249)][_0x4c0570(0x21d)](_0x1ff3a5[_0x4c0570(0x143)][_0x4c0570(0x167)],_0x1ff3a5[_0x4c0570(0x282)]);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x181),(_0x3d763a,_0x4c9176)=>{const _0x1a4f6b=_0x5295e6;this[_0x1a4f6b(0x249)][_0x1a4f6b(0x1cf)](_0x4c9176[_0x1a4f6b(0x192)]);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1fa),(_0x2ecfe2,_0x34b93a)=>{const _0x1bdecc=_0x5295e6;this[_0x1bdecc(0x249)][_0x1bdecc(0x1b1)](_0x34b93a[_0x1bdecc(0x264)]);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1ca),(_0x35db9b,_0x6ef706)=>{const _0x43a797=_0x5295e6;this[_0x43a797(0x249)][_0x43a797(0x121)](_0x6ef706[_0x43a797(0x18d)],_0x6ef706[_0x43a797(0x26f)],_0x6ef706[_0x43a797(0x278)],_0x6ef706[_0x43a797(0x1f4)]);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x262),(_0x40c953,_0x19730b)=>{const _0x5537bd=_0x5295e6;this[_0x5537bd(0x249)][_0x5537bd(0x12c)](_0x19730b[_0x5537bd(0x18d)],_0x19730b[_0x5537bd(0x280)],_0x19730b[_0x5537bd(0x25c)]);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x12b),(_0x3632c4,_0x193b55)=>{const _0x449ffc=_0x5295e6;this[_0x449ffc(0x249)][_0x449ffc(0x27e)](_0x193b55);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x108),async(_0x56f03b,_0x578fcb)=>{const _0x450b2f=_0x5295e6,_0x2ea521=(await this[_0x450b2f(0x1ed)][_0x450b2f(0x16b)]())[_0x450b2f(0x25f)](_0x536c9b=>_0x536c9b['id']===_0x578fcb[_0x450b2f(0x272)]?.['id'])||null;this[_0x450b2f(0x249)][_0x450b2f(0x1fc)](_0x2ea521,_0x578fcb[_0x450b2f(0x1f0)]);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x135),(_0x2052db,{error:_0x3d6271,interactionId:_0xe85d20,fileName:_0x16c540,url:_0x353280,sourceId:_0x5368a4,sourceLabel:_0x430e2f})=>{const _0x2e5f54=_0x5295e6,_0xf37ed0=_0xe85d20?_0xe85d20+':'+_0xc63f40():_0xc63f40();_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x220))?this[_0x2e5f54(0x249)][_0x2e5f54(0x245)]({'staticMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x171)),'id':_0xf37ed0}):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x12f))||_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x212))?(this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x113)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271)):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x138))?this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x130),_0x16c540),'id':_0xf37ed0}):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x1ea))?this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x263),_0x353280),'id':_0xf37ed0}):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x18c))?this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x16c)),'id':_0xf37ed0}):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x24b))?this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x202)),'id':_0xf37ed0}):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x153))?(_0x5368a4&&this[_0x2e5f54(0x249)][_0x2e5f54(0x17e)](_0x5368a4),this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x191),_0x430e2f||_0x2e5f54(0x26f)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271)):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x1b5))?(this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x27d)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271)):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x137))?(this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x250)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271)):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x27f))?(this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x182)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271)):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x118))?(this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x1a1)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271)):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x1a0))?(this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x213)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271)):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x11c))?(this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x16a)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271)):(this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x267)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271));}),await this[_0x5295e6(0x1bc)][_0x5295e6(0x120)](this[_0x5295e6(0x25b)][_0x5295e6(0x164)][_0x5295e6(0x240)](_0x5295e6(0x1e7))),_0xc56d1||await this[_0x5295e6(0x1bc)][_0x5295e6(0x19d)]();}async[_0x2fb3da(0x288)]({userMessage:_0x5afbb0,attributes:_0x517dde}){const _0x2e1073=_0x2fb3da;if(!this[_0x2e1073(0x1bc)])throw new _0x431979(_0x2e1073(0x258));if(this[_0x2e1073(0x1bc)][_0x2e1073(0x23c)]()){const _0x4a50ee=await this[_0x2e1073(0x142)][_0x2e1073(0x10f)]();await this[_0x2e1073(0x1bc)][_0x2e1073(0x1e2)](_0x4a50ee);}this[_0x2e1073(0x1bc)]['id']&&this[_0x2e1073(0x1bc)][_0x2e1073(0x251)]&&await this[_0x2e1073(0x1bc)][_0x2e1073(0x1c4)]({'userMessage':_0x5afbb0,'attributes':_0x517dde});}[_0x2fb3da(0x234)](){const _0x343878=_0x2fb3da;console[_0x343878(0x24d)](_0x343878(0x180));}[_0x2fb3da(0x1d3)](_0x397ef6){const _0x30ff62=_0x2fb3da;this[_0x30ff62(0x249)][_0x30ff62(0x11b)](_0x397ef6);}[_0x2fb3da(0x1ae)](_0x2adc12){const _0x122532=_0x2fb3da;_0x309d8c(_0x2adc12[_0x122532(0x26e)]);}[_0x2fb3da(0x20e)](_0x11e015){const _0x2ecf8d=_0x2fb3da;this[_0x2ecf8d(0x1bc)]?.[_0x2ecf8d(0x15e)](_0x11e015);}[_0x2fb3da(0x1cc)](){const _0x1c849a=_0x2fb3da;this[_0x1c849a(0x1bc)]?.[_0x1c849a(0x1da)]();}[_0x2fb3da(0x116)](){const _0x433f90=_0x2fb3da;this[_0x433f90(0x1bc)]?.[_0x433f90(0x1cd)]();}[_0x2fb3da(0x13c)](_0x49603c){const _0x1a8fa3=_0x2fb3da,[_0x5513c8,_0x1c22b7]=_0x49603c[_0x1a8fa3(0x25e)](':'),_0x52e54e=this[_0x1a8fa3(0x1bc)][_0x1a8fa3(0x27b)](_0x5513c8),_0x1d0a70=_0x52e54e[_0x1a8fa3(0x13a)](_0x1c22b7);return{'interaction':_0x52e54e,'reply':_0x1d0a70};}[_0x2fb3da(0x105)](_0x17cbab,_0x575b17=!0x1){const _0x5b95b8=_0x2fb3da,_0x16d98e=_0x274ef8(this[_0x5b95b8(0x25b)]),_0xc890be={'target':_0x16d98e[_0x5b95b8(0x1c0)][_0x5b95b8(0x254)][_0x5b95b8(0x1a5)][_0x5b95b8(0x131)](_0x16d98e[_0x5b95b8(0x1c0)][_0x5b95b8(0x11e)][_0x5b95b8(0x14a)](_0x17cbab)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x575b17};_0x575b17&&(_0xc890be[_0x5b95b8(0x1b0)]=!0x0),_0x2af423(_0xc890be);}[_0x2fb3da(0x190)](_0x2edbb8,_0x343a49=!0x1){const _0xb26d7a=_0x2fb3da;this[_0xb26d7a(0x249)][_0xb26d7a(0x1c8)](_0x2edbb8||_0x61ecef(this[_0xb26d7a(0x25b)][_0xb26d7a(0x19f)],_0xb26d7a(0x223)),_0x343a49);}async[_0x2fb3da(0x14b)]({reply:_0x5e447e,renderingStrategy:_0xb8c9d3}){const _0x5f1b77=_0x2fb3da,{id:_0x3f0787,interactionId:_0x3ca9ec,isDone:_0x2fb07b,type:_0xe151c2,parsedContent:_0x530c7c}=_0x5e447e,_0x502b7d=_0x3ca9ec+':'+_0x3f0787;if(_0x5f1b77(0x1f5)===_0xe151c2){const _0x1d55e7=_0x5e447e[_0x5f1b77(0x23e)]({'showDiff':this[_0x5f1b77(0x249)][_0x5f1b77(0x18f)]});await this[_0x5f1b77(0x249)][_0x5f1b77(0x22e)]({'id':_0x502b7d,'parts':_0x1d55e7,'renderingStrategy':_0xb8c9d3,'isDone':_0x2fb07b});}else _0x5f1b77(0x11a)===_0xe151c2&&await this[_0x5f1b77(0x249)][_0x5f1b77(0x20d)]({'id':_0x502b7d,'parsedContent':_0x530c7c,'renderingStrategy':_0xb8c9d3,'isDone':_0x2fb07b});_0x2fb07b&&_0x5e447e[_0x5f1b77(0x1e8)][_0x5f1b77(0x1f6)]>0x0&&this[_0x5f1b77(0x249)][_0x5f1b77(0x1ec)](_0x502b7d,_0x5e447e[_0x5f1b77(0x1e8)]);}async[_0x2fb3da(0x154)](){const _0x2ca1bb=_0x2fb3da,_0x503f57=this[_0x2ca1bb(0x1bc)]?.[_0x2ca1bb(0x230)];_0x503f57&&(_0x503f57[_0x2ca1bb(0x1a9)](),this[_0x2ca1bb(0x249)][_0x2ca1bb(0x238)](_0x503f57));}async[_0x2fb3da(0x281)](){const _0x195e23=_0x2fb3da,_0x153961=this[_0x195e23(0x1bc)]?.[_0x195e23(0x230)];if(_0x153961){for await(const _0x2cbc76 of _0x153961[_0x195e23(0x14c)])await this[_0x195e23(0x14b)]({'reply':_0x2cbc76,'renderingStrategy':_0x195e23(0x283)});}}[_0x2fb3da(0x22b)](_0x7e355e){const _0x4fcfa7=_0x2fb3da,_0x20bf8c={'positiveCount':_0x7e355e[_0x4fcfa7(0x23b)][_0x4fcfa7(0x156)](_0x3a352d=>_0x4fcfa7(0x284)===_0x3a352d[_0x4fcfa7(0x13d)])[_0x4fcfa7(0x1f6)],'totalCount':_0x7e355e[_0x4fcfa7(0x23b)][_0x4fcfa7(0x1f6)],'modificationId':_0x7e355e['id']},_0x46e26a=this[_0x4fcfa7(0x1bc)][_0x4fcfa7(0x27b)](_0x7e355e[_0x4fcfa7(0x236)])[_0x4fcfa7(0x11f)];_0x46e26a&&this[_0x4fcfa7(0x189)][_0x4fcfa7(0x1f7)](this[_0x4fcfa7(0x1bc)]['id'],_0x46e26a,_0x20bf8c);}[_0x2fb3da(0x224)](_0x4bbefb){const _0x4926e4=_0x2fb3da;let _0x50da2c=null,_0x1e6cad=null;this['on'](_0x4926e4(0x16e),(_0x4d3a7d,_0x5b269f,_0x56ebbf)=>{const _0x35cc38=_0x4926e4;_0x56ebbf['id']!==_0x50da2c&&(_0x50da2c=_0x56ebbf['id'],_0x1e6cad=this[_0x35cc38(0x1d6)](_0x56ebbf)),_0x4bbefb(_0x5b269f,_0x1e6cad);});}[_0x2fb3da(0x1d6)](_0xf4e1a7){const _0x25ff8e=_0x2fb3da,_0x54e2b8=this[_0x25ff8e(0x249)],_0x4e75c7=()=>{const _0x1c11f4=_0x25ff8e;_0xf4e1a7[_0x1c11f4(0x18b)](),_0xf4e1a7[_0x1c11f4(0x233)](),_0x54e2b8[_0x1c11f4(0x15c)]();},_0x37c360=()=>{const _0x8d33d4=_0x25ff8e;_0xf4e1a7[_0x8d33d4(0x1ff)]&&(_0xf4e1a7[_0x8d33d4(0x1ff)][_0x8d33d4(0x195)](),_0xf4e1a7[_0x8d33d4(0x1ff)]=void 0x0);};return{'insertTextReply':(_0x1b99d4,_0x22e9ab)=>{const _0x41ed32=_0x25ff8e;_0x37c360(),_0x4e75c7();const _0x26415f=_0xf4e1a7[_0x41ed32(0x1ff)]=_0xf4e1a7[_0x41ed32(0x1af)]({'type':_0x41ed32(0x11a),'interactionId':_0xf4e1a7['id'],'content':_0x1b99d4,'id':_0x22e9ab||_0xc63f40()});return _0x37c360(),_0x26415f;},'insertCustomElement':async(_0x51d689,_0x37e832)=>(_0x37c360(),_0x4e75c7(),_0x54e2b8[_0x25ff8e(0x148)](_0x51d689,_0x37e832||_0xc63f40())),'setLoadingMessage':_0x8ed57=>{const _0x3c9c92=_0x25ff8e;_0x54e2b8[_0x3c9c92(0x24c)](_0x8ed57);},'clearLoadingMessage':()=>{const _0x164f18=_0x25ff8e;_0x54e2b8[_0x164f18(0x15c)]();}};}}
@@ -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
+ function _0x5ae9(_0x482c12,_0x3dc0af){const _0x1d7c4d=_0x1d7c();return _0x5ae9=function(_0x5ae9be,_0x3c007b){_0x5ae9be=_0x5ae9be-0x138;let _0x314a2a=_0x1d7c4d[_0x5ae9be];return _0x314a2a;},_0x5ae9(_0x482c12,_0x3dc0af);}const _0x388858=_0x5ae9;(function(_0x19ee11,_0x3784cc){const _0x584f50=_0x5ae9,_0x155062=_0x19ee11();while(!![]){try{const _0x25dc2b=-parseInt(_0x584f50(0x178))/0x1*(-parseInt(_0x584f50(0x19b))/0x2)+parseInt(_0x584f50(0x1cf))/0x3*(parseInt(_0x584f50(0x18f))/0x4)+-parseInt(_0x584f50(0x1b3))/0x5+-parseInt(_0x584f50(0x1aa))/0x6*(parseInt(_0x584f50(0x1a9))/0x7)+-parseInt(_0x584f50(0x152))/0x8+parseInt(_0x584f50(0x174))/0x9*(parseInt(_0x584f50(0x148))/0xa)+-parseInt(_0x584f50(0x161))/0xb;if(_0x25dc2b===_0x3784cc)break;else _0x155062['push'](_0x155062['shift']());}catch(_0x21a101){_0x155062['push'](_0x155062['shift']());}}}(_0x1d7c,0x51aaa));import{ContextPlugin as _0xca1bfd}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x9a3834}from'ckeditor5/src/utils.js';import{AIChatView as _0x23bb55}from'./ui/aichatview.js';import{AITabs as _0x17ab13}from'../aitabs/aitabs.js';import{getTranslation as _0xec21f}from'../aicore/utils/common-translations.js';import{IconAIChat as _0xaeb661}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x5caea6}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x2fd187}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x589fdb}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x3e26c0}from'../aicore/utils/geteditorfromcontext.js';function _0x1d7c(){const _0x3057b0=['isDone','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','commands','removeFeedItem','feedItemRenderingStrategy','getItemIds','populateSourceResourceBalloon','updateFeedItemAIReplySources','set','toggleSuggestionDisplayMode','markItemAsDone','displayedPrompt','bind','ai.availableReplyActions','closeSourceResourceBalloon','isOfficialPlugin','isVisible','resetMessageInput','isTrackChangesOn','1721133IxKUxg','setModel','abort','updateCapabilities','trackChanges','AITabs','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','setIsUploadInProgress','setModelList','enableModelSelector','last','setConversationTitle','plugins','ai.chat.welcomeMessage','setReasoning','stopInteraction','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','_getInputPlaceholder','availableModels','_isTrackChangesCommandValueBound','filter','ai.chat.context.searchInputVisibleFrom','setInputPlaceholder','attributes','enqueue','fire','has','showResizeButton','interaction-header','updateSuggestionPartState','queueEmptyPromise','chatHeader','chatFeed','clearPendingContextUI','prepareLoadingMessage','setLoadingMessage','clearLoadingMessage','values','focusPromptInput','_titleAnimationInterval','AI_CHAT_WELCOME_MESSAGE','length','error-message','contextItems','startInteraction','1754860welaGl','chat','isLoading','isPending','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','</p>','_promiseQueue','context','removeItem','find','639400xHRVlQ','updateResourceState','<p>','removeFeedInteraction','ai-reply','startsWith','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','addFeedItemUserMessage','children','locale','stopAutoScroll','isPremiumPlugin','addFeedInteractionHeader','delegate','value','1096700aPQWcj','get','conversation-start','options','ai-suggestion-reply','setContextItemLoading','setSuggestionPartActive','setFeedItemRenderingStrategy','hasFeedItem','ai.models.showModelSelector','clearConversationContextUI','capabilities','remove','requires','isBusy','createConversation','custom-element','destroy','updateReplyItem','9HHIqHy','setSelectedModel','updateFeedItemAIReplySuggestionPartState','_interactionPromiseResolver','77903fTxeTo','setAddContextOptions','updateFeedInteractionHeader','disableControls','showDiff','addContextItem','isReasoningEnabled','disableModelSelector','setConversationContext','interactionId','updateFeedItemAIReplyContent','addFeedItemAISuggestion','isMaximized','clear','scrollToSuggestion','addFeedItemCustomElement','isWebSearchEnabled','setPromptInputValue','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','updateWebSources','label','addFeedItemStaticMessage','scrollFeedToSuggestion','4pWkCEv','AIChatUI','startAutoScroll','addItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','streaming','userMessage','TrackChanges','enableControls','updateSuggestionItem','removeContextItem','finishInteraction','2kZgruz','resetConversationTitle','AI_CHAT_HEADING','setFeedItemAIReplySuggestionPartActive','setWebSearch','addFeedItemAIReply','addFeedItemError','insertSuggestion','user-message','chatControls','from','pluginName','renderingStrategy','markFeedItemAsDone','7hftLcy','1566438RNrIWW','toggleLoadingSkeleton','isModelAvailable','conversationCreated','forEach','setIsMaximized','areActionsDisabled','_view','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','259480HzwjFF','updateFeedItemAIReplySuggestionContent','isDisabled','addTab','then','hasItem','_animateConversationTitle','config','view'];_0x1d7c=function(){return _0x3057b0;};return _0x1d7c();}import{AI_REPLY_ACTIONS as _0x2e1133}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0xca1bfd{static get[_0x388858(0x16e)](){return[_0x17ab13];}[_0x388858(0x1b1)];static get[_0x388858(0x1a6)](){const _0x3d5444=_0x388858;return _0x3d5444(0x190);}static get[_0x388858(0x1cb)](){return!0x0;}static get[_0x388858(0x15d)](){return!0x0;}[_0x388858(0x1c0)]=_0x388858(0x194);[_0x388858(0x17c)]=!0x0;[_0x388858(0x14e)];[_0x388858(0x177)];[_0x388858(0x142)]=void 0x0;[_0x388858(0x1e2)]=!0x1;constructor(_0x36d8ca){const _0x2bd3ab=_0x388858;super(_0x36d8ca);const _0x239e3e=this[_0x2bd3ab(0x14f)][_0x2bd3ab(0x1db)][_0x2bd3ab(0x162)](_0x2bd3ab(0x1d4));this[_0x2bd3ab(0x1c4)](_0x2bd3ab(0x16f),!0x1),this[_0x2bd3ab(0x14e)]=new _0x2fd187(),this[_0x2bd3ab(0x1b1)]=new _0x23bb55(this[_0x2bd3ab(0x14f)][_0x2bd3ab(0x15b)],{'showResizeButton':_0x239e3e[_0x2bd3ab(0x1ea)],'contextResourcesSearchInputVisibleFrom':this[_0x2bd3ab(0x14f)][_0x2bd3ab(0x1ba)][_0x2bd3ab(0x162)](_0x2bd3ab(0x1e4))}),this[_0x2bd3ab(0x1b1)][_0x2bd3ab(0x15f)](..._0x589fdb)['to'](this),this[_0x2bd3ab(0x1b1)]['on'](_0x2bd3ab(0x1c5),(_0x2693e1,{showDiff:_0x100fe9})=>{const _0x4f6491=_0x2bd3ab;this[_0x4f6491(0x17c)]=_0x100fe9;}),_0x239e3e[_0x2bd3ab(0x1bb)][_0x2bd3ab(0x1b6)]({'id':_0x2bd3ab(0x149),'buttonLabel':_0xec21f(this[_0x2bd3ab(0x14f)][_0x2bd3ab(0x15b)],_0x2bd3ab(0x19d)),'buttonIcon':_0xaeb661,'order':0x0,'content':this[_0x2bd3ab(0x1b1)]}),this[_0x2bd3ab(0x1b1)][_0x2bd3ab(0x1a4)][_0x2bd3ab(0x1c8)](_0x2bd3ab(0x14a))['to'](this,_0x2bd3ab(0x16f),_0x1fb269=>_0x1fb269),this[_0x2bd3ab(0x1b1)][_0x2bd3ab(0x13b)][_0x2bd3ab(0x1c8)](_0x2bd3ab(0x14b))['to'](this,_0x2bd3ab(0x16f),_0x31fc0c=>_0x31fc0c),this[_0x2bd3ab(0x1b1)][_0x2bd3ab(0x1a4)][_0x2bd3ab(0x1e5)](this[_0x2bd3ab(0x1e0)]()),this[_0x2bd3ab(0x1c8)](_0x2bd3ab(0x1ac))['to'](this[_0x2bd3ab(0x1b1)][_0x2bd3ab(0x1a4)],_0x2bd3ab(0x1ac));}[_0x388858(0x172)](){const _0x7e2870=_0x388858;super[_0x7e2870(0x172)](),this[_0x7e2870(0x142)]&&clearInterval(this[_0x7e2870(0x142)]);}[_0x388858(0x170)](_0x2aa0fb){const _0x5c045f=_0x388858,_0x5516ad=this[_0x5c045f(0x14f)][_0x5c045f(0x1ba)][_0x5c045f(0x162)](_0x5c045f(0x1dc))??_0xec21f(this[_0x5c045f(0x14f)][_0x5c045f(0x15b)],_0x5c045f(0x143));this[_0x5c045f(0x1b1)][_0x5c045f(0x13b)][_0x5c045f(0x185)](),this[_0x5c045f(0x1b1)][_0x5c045f(0x1a4)][_0x5c045f(0x1d8)](),this[_0x5c045f(0x1b1)][_0x5c045f(0x1a4)][_0x5c045f(0x1d7)](_0x2aa0fb[_0x5c045f(0x1e1)],!this[_0x5c045f(0x14f)][_0x5c045f(0x1ba)][_0x5c045f(0x162)](_0x5c045f(0x16a))),this[_0x5c045f(0x18d)]({'id':_0x5c045f(0x163),'staticMessage':_0x5516ad}),this[_0x5c045f(0x1e8)](_0x5c045f(0x1ad));}[_0x388858(0x18d)]({id:_0x3e6c50,staticMessage:_0x2e640b}){const _0x157eb6=_0x388858;this[_0x157eb6(0x1b1)][_0x157eb6(0x13b)][_0x157eb6(0x192)](_0x157eb6(0x156),{'id':_0x3e6c50,'initialContent':_0x157eb6(0x154)+_0x2e640b+_0x157eb6(0x14d)});}[_0x388858(0x159)](_0x94e47d){const _0x31075a=_0x388858,_0x37d1a5=_0x94e47d[_0x31075a(0x1e6)]?.[_0x31075a(0x1c7)]||_0x94e47d[_0x31075a(0x195)];this[_0x31075a(0x1b1)][_0x31075a(0x13b)][_0x31075a(0x192)](_0x31075a(0x1a3),{'contextItems':Array[_0x31075a(0x1a5)](_0x94e47d[_0x31075a(0x146)][_0x31075a(0x140)]()),'initialContent':_0x31075a(0x154)+_0x37d1a5+_0x31075a(0x14d),'id':_0x94e47d['id']});}[_0x388858(0x1a1)]({errorMessage:_0x4fc995,id:_0x4fa47a}){const _0x547947=_0x388858;this[_0x547947(0x1b1)][_0x547947(0x13b)][_0x547947(0x192)](_0x547947(0x145),{'initialContent':_0x547947(0x154)+_0x4fc995+_0x547947(0x14d),'id':_0x4fa47a});}[_0x388858(0x1a0)](_0x287a77){const _0x3472e2=_0x388858;return this[_0x3472e2(0x14e)][_0x3472e2(0x1e7)](async()=>{const _0x3a9102=_0x3472e2;this[_0x3a9102(0x1b1)][_0x3a9102(0x13b)][_0x3a9102(0x192)](_0x3a9102(0x156),{'id':_0x287a77[_0x3a9102(0x181)]+':'+_0x287a77['id']}),this[_0x3a9102(0x13f)]();});}async[_0x388858(0x183)](_0x48ab6c){const _0x3565e1=_0x388858,_0x24a422=_0x3e26c0(this[_0x3565e1(0x14f)]);let _0x3136bb=_0x24a422[_0x3565e1(0x1ba)][_0x3565e1(0x162)](_0x3565e1(0x1c9))||[..._0x2e1133];if(_0x24a422[_0x3565e1(0x1db)][_0x3565e1(0x1e9)](_0x3565e1(0x196))){if(!this[_0x3565e1(0x1e2)]){this[_0x3565e1(0x1e2)]=!0x0;const _0x521ee4=_0x24a422[_0x3565e1(0x1be)][_0x3565e1(0x162)](_0x3565e1(0x1d3));this[_0x3565e1(0x1b1)][_0x3565e1(0x13b)][_0x3565e1(0x1c8)](_0x3565e1(0x1ce))['to'](_0x521ee4,_0x3565e1(0x160));}}else _0x3136bb=_0x3136bb[_0x3565e1(0x1e3)](_0x212ca7=>_0x3565e1(0x1a2)!=_0x212ca7);return this[_0x3565e1(0x14e)][_0x3565e1(0x1e7)](async()=>{const _0x1ad82d=_0x3565e1;this[_0x1ad82d(0x1b1)][_0x1ad82d(0x13b)][_0x1ad82d(0x192)](_0x1ad82d(0x165),{'id':_0x48ab6c[_0x1ad82d(0x181)]+':'+_0x48ab6c['id'],'areActionsDisabled':_0x48ab6c[_0x1ad82d(0x1b0)],'showDiff':this[_0x1ad82d(0x17c)],'availableActions':_0x3136bb}),this[_0x1ad82d(0x13f)]();});}[_0x388858(0x15e)](_0x3c9b1a,_0x24208f){const _0x137c0e=_0x388858,_0x54b3e1=this[_0x137c0e(0x1b1)][_0x137c0e(0x13b)][_0x137c0e(0x15a)][_0x137c0e(0x1d9)];if(_0x54b3e1 instanceof _0x5caea6)return this[_0x137c0e(0x1b1)][_0x137c0e(0x13b)][_0x137c0e(0x15a)][_0x137c0e(0x16d)](_0x54b3e1),void this[_0x137c0e(0x1b1)][_0x137c0e(0x13b)][_0x137c0e(0x192)](_0x137c0e(0x1eb),{'id':_0x3c9b1a['id'],'capabilities':{'isWebSearchEnabled':_0x54b3e1[_0x137c0e(0x16c)][_0x137c0e(0x188)]||_0x24208f[_0x137c0e(0x188)],'isReasoningEnabled':_0x54b3e1[_0x137c0e(0x16c)][_0x137c0e(0x17e)]||_0x24208f[_0x137c0e(0x17e)]}});this[_0x137c0e(0x1b1)][_0x137c0e(0x13b)][_0x137c0e(0x192)](_0x137c0e(0x1eb),{'id':_0x3c9b1a['id'],'capabilities':_0x24208f});}async[_0x388858(0x187)](_0x93ed6e,_0x492268){const _0x5ca6bf=_0x388858;let _0x11cebe;return await this[_0x5ca6bf(0x14e)][_0x5ca6bf(0x1e7)](async()=>{const _0xc90f0f=_0x5ca6bf;_0x11cebe=this[_0xc90f0f(0x1b1)][_0xc90f0f(0x13b)][_0xc90f0f(0x192)](_0xc90f0f(0x171),{'content':_0x93ed6e,'id':_0x492268});}),_0x11cebe;}[_0x388858(0x1bf)](_0x8360ef){const _0x131f8e=_0x388858;this[_0x131f8e(0x1b1)][_0x131f8e(0x13b)][_0x131f8e(0x150)](_0x8360ef);}[_0x388858(0x169)](_0x5b1689){const _0x20b72d=_0x388858;return this[_0x20b72d(0x1b1)][_0x20b72d(0x13b)][_0x20b72d(0x1b8)](_0x5b1689);}[_0x388858(0x17a)](_0x1f8682){const _0x85d518=_0x388858,_0x20f99c=this[_0x85d518(0x1b1)][_0x85d518(0x13b)][_0x85d518(0x15a)][_0x85d518(0x151)](_0x949c68=>_0x949c68[_0x85d518(0x164)]['id']==_0x1f8682['id']&&_0x949c68 instanceof _0x5caea6);_0x20f99c&&_0x20f99c[_0x85d518(0x1c4)](_0x85d518(0x1cc),_0x1f8682[_0x85d518(0x1cc)]);}async[_0x388858(0x182)](_0x37f81c){const _0x13b2c2=_0x388858,_0x121838=_0x37f81c[_0x13b2c2(0x1a7)]||this[_0x13b2c2(0x1c0)];return this[_0x13b2c2(0x14e)][_0x13b2c2(0x1e7)](async _0x31823a=>{const _0x4a93a5=_0x13b2c2;await this[_0x4a93a5(0x1b1)][_0x4a93a5(0x13b)][_0x4a93a5(0x173)]({..._0x37f81c,'abortSignal':_0x31823a,'renderingStrategy':_0x121838}),_0x37f81c[_0x4a93a5(0x1bc)]&&this[_0x4a93a5(0x1a8)](_0x37f81c['id']);});}[_0x388858(0x1c3)](_0x53bf72,_0x447de3){const _0x111c1b=_0x388858;this[_0x111c1b(0x1b1)][_0x111c1b(0x13b)][_0x111c1b(0x18b)](_0x53bf72,_0x447de3);}async[_0x388858(0x1b4)](_0x185be4){const _0x2a25e6=_0x388858,_0x26ce67=_0x185be4[_0x2a25e6(0x1a7)]||this[_0x2a25e6(0x1c0)];return this[_0x2a25e6(0x14e)][_0x2a25e6(0x1e7)](async _0x7522ba=>{const _0x5c4b22=_0x2a25e6;await this[_0x5c4b22(0x1b1)][_0x5c4b22(0x13b)][_0x5c4b22(0x198)]({..._0x185be4,'abortSignal':_0x7522ba,'renderingStrategy':_0x26ce67}),_0x185be4[_0x5c4b22(0x1bc)]&&this[_0x5c4b22(0x1a8)](_0x185be4['id']);});}[_0x388858(0x176)](_0x2fc971){const _0x3c80e8=_0x388858;this[_0x3c80e8(0x1b1)][_0x3c80e8(0x13b)][_0x3c80e8(0x138)](_0x2fc971);}[_0x388858(0x19e)](_0x588208){const _0x4ad2c1=_0x388858;this[_0x4ad2c1(0x1b1)][_0x4ad2c1(0x13b)][_0x4ad2c1(0x167)](_0x588208);}[_0x388858(0x1a8)](_0x13728f){const _0x15110d=_0x388858;this[_0x15110d(0x1b1)][_0x15110d(0x13b)][_0x15110d(0x1c6)](_0x13728f);}[_0x388858(0x155)](_0x489e8c){const _0x83ce01=_0x388858;this[_0x83ce01(0x1b1)][_0x83ce01(0x13b)][_0x83ce01(0x1c1)]()[_0x83ce01(0x1e3)](_0x4127c4=>_0x4127c4[_0x83ce01(0x157)](_0x489e8c))[_0x83ce01(0x1ae)](_0xdf2829=>this[_0x83ce01(0x1b1)][_0x83ce01(0x13b)][_0x83ce01(0x150)](_0xdf2829));}[_0x388858(0x147)](){const _0x176f7c=_0x388858,_0x409c41=this[_0x176f7c(0x13d)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x176f7c(0x13e)](_0x409c41),this[_0x176f7c(0x1b1)][_0x176f7c(0x1a4)][_0x176f7c(0x17f)](!this[_0x176f7c(0x14f)][_0x176f7c(0x1ba)][_0x176f7c(0x162)](_0x176f7c(0x16a))),this[_0x176f7c(0x16f)]=!0x0,this[_0x176f7c(0x1b1)][_0x176f7c(0x13b)][_0x176f7c(0x191)]();}[_0x388858(0x1de)](_0x1f766d){const _0x42f688=_0x388858;this[_0x42f688(0x14e)][_0x42f688(0x1d1)](),this[_0x42f688(0x1b1)][_0x42f688(0x13b)][_0x42f688(0x1c1)]()[_0x42f688(0x1e3)](_0x35c9e1=>_0x35c9e1[_0x42f688(0x157)](_0x1f766d['id']))[_0x42f688(0x1ae)](_0x6fa94f=>this[_0x42f688(0x1a8)](_0x6fa94f)),this[_0x42f688(0x16f)]=!0x1,this[_0x42f688(0x1b1)][_0x42f688(0x13b)][_0x42f688(0x15c)]();}async[_0x388858(0x19a)](){const _0x2af2e8=_0x388858;return this[_0x2af2e8(0x14e)][_0x2af2e8(0x139)][_0x2af2e8(0x1b7)](()=>{const _0x2beb14=_0x2af2e8;this[_0x2beb14(0x16f)]=!0x1,this[_0x2beb14(0x1b1)][_0x2beb14(0x13b)][_0x2beb14(0x15c)]();});}[_0x388858(0x17d)](_0x14e1c0,_0x1c99e0){const _0x23e146=_0x388858;this[_0x23e146(0x1b1)][_0x23e146(0x1a4)][_0x23e146(0x17d)](_0x14e1c0,_0x1c99e0);}[_0x388858(0x199)](_0x1ddfd1){const _0x4e4e76=_0x388858;this[_0x4e4e76(0x1b1)][_0x4e4e76(0x1a4)][_0x4e4e76(0x199)](_0x1ddfd1);}[_0x388858(0x166)](_0x4e6647,_0x4afb17){const _0x1f287f=_0x388858;this[_0x1f287f(0x1b1)][_0x1f287f(0x1a4)][_0x1f287f(0x166)](_0x4e6647,_0x4afb17);}[_0x388858(0x1d6)](_0xe3a981){const _0x2ed8a2=_0x388858;this[_0x2ed8a2(0x1b1)][_0x2ed8a2(0x1a4)][_0x2ed8a2(0x1d6)](_0xe3a981);}[_0x388858(0x180)](_0xd2bd5c){const _0x1590c2=_0x388858;this[_0x1590c2(0x1b1)][_0x1590c2(0x1a4)][_0x1590c2(0x180)](_0xd2bd5c);}[_0x388858(0x13c)](){const _0x182ac8=_0x388858;this[_0x182ac8(0x1b1)][_0x182ac8(0x1a4)][_0x182ac8(0x13c)]();}[_0x388858(0x16b)](){const _0x1d78e9=_0x388858;this[_0x1d78e9(0x1b1)][_0x1d78e9(0x1a4)][_0x1d78e9(0x16b)]();}[_0x388858(0x153)](_0x20e023,_0x4adb9c,_0x3405da){const _0x42e4e5=_0x388858;this[_0x42e4e5(0x1b1)][_0x42e4e5(0x1a4)][_0x42e4e5(0x153)](_0x20e023,_0x4adb9c,_0x3405da);}[_0x388858(0x1cd)](){const _0x1a9443=_0x388858;this[_0x1a9443(0x1b1)][_0x1a9443(0x1a4)][_0x1a9443(0x1cd)](),this[_0x1a9443(0x1b1)][_0x1a9443(0x1a4)][_0x1a9443(0x1e5)](this[_0x1a9443(0x1e0)]());}[_0x388858(0x179)](_0x5e93b7){const _0x94f86b=_0x388858;this[_0x94f86b(0x1b1)][_0x94f86b(0x1a4)][_0x94f86b(0x179)](_0x5e93b7);}[_0x388858(0x1d2)](_0x15949b){const _0x1db879=_0x388858;this[_0x1db879(0x1b1)][_0x1db879(0x1a4)][_0x1db879(0x19f)](_0x15949b[_0x1db879(0x188)]),this[_0x1db879(0x1b1)][_0x1db879(0x1a4)][_0x1db879(0x1dd)](_0x15949b[_0x1db879(0x17e)]),this[_0x1db879(0x1b1)][_0x1db879(0x1a4)][_0x1db879(0x1e5)](this[_0x1db879(0x1e0)](_0x15949b));}[_0x388858(0x175)](_0x2c72e5,_0x2bd34b){const _0x411aca=_0x388858;this[_0x411aca(0x1b1)][_0x411aca(0x1a4)][_0x411aca(0x1d0)](_0x2c72e5),_0x2bd34b&&this[_0x411aca(0x1b1)][_0x411aca(0x1a4)][_0x411aca(0x17f)](!0x1);}[_0x388858(0x168)](_0x26aad1){const _0x291ff7=_0x388858;this[_0x291ff7(0x1c0)]=_0x26aad1;}[_0x388858(0x1ab)](_0x1206ff){const _0x444d73=_0x388858;this[_0x444d73(0x1b1)][_0x444d73(0x13b)][_0x444d73(0x1ab)](_0x1206ff);}[_0x388858(0x19c)](){const _0x1895c4=_0x388858;this[_0x1895c4(0x1da)](_0xec21f(this[_0x1895c4(0x14f)][_0x1895c4(0x15b)],_0x1895c4(0x19d)));}[_0x388858(0x1da)](_0x6527a4,_0x686c5f=!0x1){const _0x25ce71=_0x388858;if(_0x686c5f&&!_0x9a3834()&&_0x6527a4[_0x25ce71(0x144)])return this[_0x25ce71(0x1b1)][_0x25ce71(0x13a)][_0x25ce71(0x18c)]='',void this[_0x25ce71(0x1b9)](_0x6527a4);this[_0x25ce71(0x1b1)][_0x25ce71(0x13a)][_0x25ce71(0x18c)]=_0x6527a4;}[_0x388858(0x13e)](_0x2ed891){const _0x5ef8b5=_0x388858;this[_0x5ef8b5(0x1b1)][_0x5ef8b5(0x13b)][_0x5ef8b5(0x13e)](_0x2ed891);}[_0x388858(0x13f)](){const _0x27d80c=_0x388858;this[_0x27d80c(0x1b1)][_0x27d80c(0x13b)][_0x27d80c(0x13e)]('');}[_0x388858(0x1b9)](_0x1b5771){const _0x284cc9=_0x388858;let _0x13ac7c=0x0;clearInterval(this[_0x284cc9(0x142)]),this[_0x284cc9(0x142)]=setInterval(()=>{const _0x27b327=_0x284cc9;this[_0x27b327(0x1b1)][_0x27b327(0x13a)][_0x27b327(0x18c)]=this[_0x27b327(0x1b1)][_0x27b327(0x13a)][_0x27b327(0x18c)]+_0x1b5771[_0x13ac7c],_0x13ac7c++,_0x13ac7c===_0x1b5771[_0x27b327(0x144)]&&clearInterval(this[_0x27b327(0x142)]);},0x1e);}[_0x388858(0x1af)](_0x5a7c23){const _0x396808=_0x388858;this[_0x396808(0x1b1)][_0x396808(0x13a)][_0x396808(0x184)]=_0x5a7c23;}[_0x388858(0x13d)](_0x57b856){const _0x2559c1=_0x388858;return _0x57b856[_0x2559c1(0x188)]&&_0x57b856[_0x2559c1(0x17e)]?_0xec21f(this[_0x2559c1(0x14f)][_0x2559c1(0x15b)],_0x2559c1(0x158)):_0x57b856[_0x2559c1(0x188)]?_0xec21f(this[_0x2559c1(0x14f)][_0x2559c1(0x15b)],_0x2559c1(0x1b2)):_0x57b856[_0x2559c1(0x17e)]?_0xec21f(this[_0x2559c1(0x14f)][_0x2559c1(0x15b)],_0x2559c1(0x1df)):_0xec21f(this[_0x2559c1(0x14f)][_0x2559c1(0x15b)],_0x2559c1(0x14c));}[_0x388858(0x1e0)](_0x4a5eea){const _0x16e6de=_0x388858;return _0x4a5eea?_0x4a5eea[_0x16e6de(0x188)]&&_0x4a5eea[_0x16e6de(0x17e)]?_0xec21f(this[_0x16e6de(0x14f)][_0x16e6de(0x15b)],_0x16e6de(0x18a)):_0x4a5eea[_0x16e6de(0x188)]?_0xec21f(this[_0x16e6de(0x14f)][_0x16e6de(0x15b)],_0x16e6de(0x193)):_0x4a5eea[_0x16e6de(0x17e)]?_0xec21f(this[_0x16e6de(0x14f)][_0x16e6de(0x15b)],_0x16e6de(0x1bd)):_0xec21f(this[_0x16e6de(0x14f)][_0x16e6de(0x15b)],_0x16e6de(0x1d5)):_0xec21f(this[_0x16e6de(0x14f)][_0x16e6de(0x15b)],_0x16e6de(0x1d5));}[_0x388858(0x1c2)](_0x31f975,_0x5d5022,_0x14080b,_0x967570){const _0x313fc0=_0x388858;this[_0x313fc0(0x1b1)][_0x313fc0(0x1c2)](_0x31f975,_0x5d5022,_0x14080b,_0x967570);}[_0x388858(0x1ca)](_0x1fc225){const _0xa06ced=_0x388858;this[_0xa06ced(0x1b1)][_0xa06ced(0x1ca)](_0x1fc225);}[_0x388858(0x189)](_0x5042f9){const _0x3eb109=_0x388858;this[_0x3eb109(0x1b1)][_0x3eb109(0x1a4)][_0x3eb109(0x189)](_0x5042f9);}[_0x388858(0x141)](_0x494e72=!0x1){const _0x4617c3=_0x388858;this[_0x4617c3(0x1b1)][_0x4617c3(0x1a4)][_0x4617c3(0x141)](_0x494e72);}[_0x388858(0x18e)](_0x5d4848,_0x44f563){const _0x371926=_0x388858;this[_0x371926(0x1b1)][_0x371926(0x13b)][_0x371926(0x186)](_0x5d4848,_0x44f563);}[_0x388858(0x191)](){const _0x308a9a=_0x388858;this[_0x308a9a(0x1b1)][_0x308a9a(0x13b)][_0x308a9a(0x191)]();}[_0x388858(0x17b)](){const _0x3f2b01=_0x388858;this[_0x3f2b01(0x1b1)][_0x3f2b01(0x1a4)][_0x3f2b01(0x1b5)]=!0x0;}[_0x388858(0x197)](){const _0x3196f4=_0x388858;this[_0x3196f4(0x1b1)][_0x3196f4(0x1a4)][_0x3196f4(0x1b5)]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3fea2e=_0x254f;(function(_0x417596,_0x511194){const _0x131c36=_0x254f,_0x4dab0c=_0x417596();while(!![]){try{const _0x38a64e=-parseInt(_0x131c36(0x1b5))/0x1+-parseInt(_0x131c36(0x1b2))/0x2*(parseInt(_0x131c36(0x1ca))/0x3)+-parseInt(_0x131c36(0x179))/0x4*(parseInt(_0x131c36(0x1c6))/0x5)+-parseInt(_0x131c36(0x185))/0x6*(parseInt(_0x131c36(0x155))/0x7)+parseInt(_0x131c36(0x1c8))/0x8*(-parseInt(_0x131c36(0x1da))/0x9)+parseInt(_0x131c36(0x1b7))/0xa+-parseInt(_0x131c36(0x1c0))/0xb*(-parseInt(_0x131c36(0x17d))/0xc);if(_0x38a64e===_0x511194)break;else _0x4dab0c['push'](_0x4dab0c['shift']());}catch(_0x2b57ac){_0x4dab0c['push'](_0x4dab0c['shift']());}}}(_0x52cd,0x25360));import{CKEditorError as _0x1e13a2,ObservableMixin as _0x525c8f,uid as _0x145148}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x448885,AIContextTextResourceType as _0x490edc}from'../../aicore/model/aicontext.js';import{escape as _0x572261}from'es-toolkit/compat';import{errorsMap as _0x1083a4}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x3fea2e(0x16f),_0x3fea2e(0x1a0),_0x3fea2e(0x189),_0x3fea2e(0x1e3),_0x3fea2e(0x173),_0x3fea2e(0x18c),_0x3fea2e(0x19b),_0x3fea2e(0x1bc),_0x3fea2e(0x152)];function _0x254f(_0x6145cc,_0x298c9){const _0x52cd46=_0x52cd();return _0x254f=function(_0x254f14,_0x5c053b){_0x254f14=_0x254f14-0x14d;let _0x4dd4cf=_0x52cd46[_0x254f14];return _0x4dd4cf;},_0x254f(_0x6145cc,_0x298c9);}export class AIChatContext extends _0x525c8f(){[_0x3fea2e(0x1c5)];[_0x3fea2e(0x19d)];[_0x3fea2e(0x188)];constructor({connector:_0x5774fe,config:_0x5f27bc,ownerId:_0x228963}){const _0x3816f0=_0x3fea2e;super(),this[_0x3816f0(0x1c5)]=_0x5774fe,this[_0x3816f0(0x19d)]=_0x5f27bc,this[_0x3816f0(0x188)]=_0x228963;}[_0x3fea2e(0x1b9)](){const _0x21ac1b=_0x3fea2e;this[_0x21ac1b(0x165)]=new Map(),this[_0x21ac1b(0x1a3)]=new Map(),this[_0x21ac1b(0x171)]=new Map(),this[_0x21ac1b(0x190)]=new Map(),this[_0x21ac1b(0x18f)]();}[_0x3fea2e(0x1b4)](){const _0x532a67=_0x3fea2e;return this[_0x532a67(0x165)];}async[_0x3fea2e(0x17a)](_0x19c1c2){const _0x1fb0c7=_0x3fea2e,_0x58d79a=await this[_0x1fb0c7(0x1ba)](_0x19c1c2);return this[_0x1fb0c7(0x1af)](_0x58d79a),_0x1fb0c7(0x192)===_0x58d79a[_0x1fb0c7(0x160)]&&this[_0x1fb0c7(0x1cb)](),_0x58d79a;}async[_0x3fea2e(0x1ba)](_0x531cf9){const _0x4955be=_0x3fea2e;if(_0x531cf9[_0x4955be(0x159)]===_0x448885[_0x4955be(0x166)]){const _0x80b550=await this[_0x4955be(0x1c5)][_0x4955be(0x177)](this[_0x4955be(0x188)],_0x531cf9['id'])[_0x4955be(0x1b3)]();return{'id':_0x4955be(0x192),'uiId':_0x4955be(0x192),'label':_0x4955be(0x175),'type':_0x531cf9[_0x4955be(0x159)],'content':_0x80b550[_0x4955be(0x154)],'hidden':this[_0x4955be(0x1a3)][_0x4955be(0x1ad)](_0x4955be(0x192)),'version':_0x80b550[_0x4955be(0x1c3)]?.[_0x4955be(0x1a2)],'sessionId':_0x80b550[_0x4955be(0x1c3)]?.[_0x4955be(0x1ab)]};}if(_0x531cf9[_0x4955be(0x159)]===_0x448885[_0x4955be(0x1c9)])return{'id':_0x531cf9['id'],'uiId':_0x531cf9['id'],'label':_0x531cf9[_0x4955be(0x16a)]?.[_0x4955be(0x151)]||_0x531cf9['id'],'type':_0x448885[_0x4955be(0x1c9)],'mcpServerName':_0x531cf9[_0x4955be(0x18e)],'toolName':_0x531cf9[_0x4955be(0x1b6)],'data':_0x531cf9[_0x4955be(0x16a)]||{}};return{'id':_0x531cf9['id'],'uiId':_0x531cf9['id'],'label':_0x531cf9[_0x4955be(0x1c3)]?.[_0x4955be(0x151)]||_0x531cf9[_0x4955be(0x1d6)]||_0x531cf9[_0x4955be(0x191)]||_0x531cf9['id'],'type':_0x531cf9[_0x4955be(0x159)],..._0x531cf9?.[_0x4955be(0x1c3)]?.[_0x4955be(0x1c2)]?{'resourceId':_0x531cf9[_0x4955be(0x1c3)]?.[_0x4955be(0x1c2)]}:{}};}[_0x3fea2e(0x1c1)](){const _0x24371a=_0x3fea2e;return new Map(this[_0x24371a(0x1a3)]);}[_0x3fea2e(0x15b)](_0x45b4f9){const _0x15a5cf=_0x3fea2e,_0x4bf2e3=this[_0x15a5cf(0x165)][_0x15a5cf(0x164)](_0x45b4f9);_0x4bf2e3?.[_0x15a5cf(0x183)]||this[_0x15a5cf(0x17f)](_0x45b4f9);}[_0x3fea2e(0x153)](){const _0x48348e=_0x3fea2e;if(0x0===this[_0x48348e(0x165)][_0x48348e(0x196)])return;for(const _0x390943 of this[_0x48348e(0x165)][_0x48348e(0x18a)]())this[_0x48348e(0x17f)](_0x390943[_0x48348e(0x160)]);const _0x38c33f=this[_0x48348e(0x1a3)][_0x48348e(0x164)](_0x48348e(0x192))||this[_0x48348e(0x165)][_0x48348e(0x164)](_0x48348e(0x192));_0x38c33f&&this[_0x48348e(0x1bd)]({..._0x38c33f,'isReadOnly':!0x0,'hidden':!0x0});}[_0x3fea2e(0x150)](_0x4bbc1d){const _0x4b21d8=_0x3fea2e;for(const _0x4baee0 of _0x4bbc1d[_0x4b21d8(0x18a)]())this[_0x4b21d8(0x1af)](_0x4baee0);this[_0x4b21d8(0x153)](),this[_0x4b21d8(0x195)](_0x4b21d8(0x1e3),{'contextItems':Array[_0x4b21d8(0x199)](this[_0x4b21d8(0x1c1)]()[_0x4b21d8(0x18a)]())});}[_0x3fea2e(0x1cd)](){const _0x11f19e=_0x3fea2e;return this[_0x11f19e(0x165)][_0x11f19e(0x1ad)](_0x11f19e(0x192));}[_0x3fea2e(0x1de)](){const _0xa48d03=_0x3fea2e;return this[_0xa48d03(0x165)][_0xa48d03(0x1ad)](_0xa48d03(0x157));}[_0x3fea2e(0x1dd)](){const _0x1b0c2f=_0x3fea2e;return this[_0x1b0c2f(0x1a3)][_0x1b0c2f(0x1ad)](_0x1b0c2f(0x192));}static[_0x3fea2e(0x198)](_0x809f3d){const _0x5ea4cb=_0x3fea2e;return Array[_0x5ea4cb(0x199)](_0x809f3d[_0x5ea4cb(0x18a)]())[_0x5ea4cb(0x1dc)](_0x30443c=>this[_0x5ea4cb(0x178)](_0x30443c))[_0x5ea4cb(0x1d9)](_0x158c29=>null!==_0x158c29);}async[_0x3fea2e(0x1d7)](_0x52cf08,_0x68e6f0,_0x2afce9=_0x448885[_0x3fea2e(0x1cc)]){const _0x19a264=_0x3fea2e,_0x19f7a0=_0x19a264(0x1b0)+_0x145148();this[_0x19a264(0x162)](_0x19f7a0);try{await Promise[_0x19a264(0x1a7)](_0x52cf08[_0x19a264(0x1dc)](async _0x1bf053=>{const _0x2b410b=_0x19a264,_0x34dcd3=_0x2b410b(0x184)+_0x145148(),_0x553f53=_0x572261(_0x1bf053[_0x2b410b(0x1d6)]);try{this[_0x2b410b(0x1bd)]({'type':_0x2afce9,'label':_0x68e6f0?.[_0x2b410b(0x151)]||_0x553f53,'uiId':_0x34dcd3,'resourceId':_0x68e6f0?.[_0x2b410b(0x1c2)]},!0x0);const _0x537615=this[_0x2b410b(0x1c5)][_0x2b410b(0x1a4)](this[_0x2b410b(0x188)],_0x1bf053,_0x68e6f0);this[_0x2b410b(0x171)][_0x2b410b(0x16b)](_0x34dcd3,_0x537615[_0x2b410b(0x1a1)]);const {id:_0x1bd344}=await _0x537615[_0x2b410b(0x1b1)]();this[_0x2b410b(0x171)][_0x2b410b(0x1ac)](_0x34dcd3),this[_0x2b410b(0x18d)]({'type':_0x2afce9,'id':_0x1bd344,'label':_0x68e6f0?.[_0x2b410b(0x151)]||_0x553f53,'uiId':_0x34dcd3,'resourceId':_0x68e6f0?.[_0x2b410b(0x1c2)]},!0x1);}catch(_0x4ae78e){this[_0x2b410b(0x171)][_0x2b410b(0x1ac)](_0x34dcd3);if(!(_0x4ae78e instanceof _0x1e13a2&&_0x4ae78e[_0x2b410b(0x182)][_0x2b410b(0x1a6)](_0x2b410b(0x15e)))){const _0x51f340=_0x1083a4[_0x2b410b(0x164)](_0x4ae78e[_0x2b410b(0x186)])||_0x2b410b(0x1bb),_0x2ccff4=new _0x1e13a2(_0x51f340,null,{'fileName':_0x553f53,..._0x4ae78e});_0x2ccff4[_0x2b410b(0x1d1)]=_0x4ae78e[_0x2b410b(0x1d1)],this[_0x2b410b(0x195)](_0x2b410b(0x173),{'error':_0x2ccff4});}this[_0x2b410b(0x17f)](_0x34dcd3);}}));}finally{this[_0x19a264(0x169)](_0x19f7a0);}}[_0x3fea2e(0x193)](_0x3d2593){const _0x16c6d3=_0x3fea2e;if(this[_0x16c6d3(0x1cd)]()||!this[_0x16c6d3(0x172)][_0x16c6d3(0x1d3)][_0x16c6d3(0x18b)])return;const _0x187fe7={'type':_0x448885[_0x16c6d3(0x166)],'uiId':_0x16c6d3(0x192),'label':_0x3d2593,'isReadOnly':this[_0x16c6d3(0x1a3)][_0x16c6d3(0x1ad)](_0x16c6d3(0x192)),'hidden':this[_0x16c6d3(0x1a3)][_0x16c6d3(0x1ad)](_0x16c6d3(0x192))};this[_0x16c6d3(0x1bd)](_0x187fe7);}async[_0x3fea2e(0x15c)](_0x3ff43d,_0x3d081d,_0x250766,_0x360925){const _0x151192=_0x3fea2e,_0x136921=this[_0x151192(0x165)][_0x151192(0x164)](_0x151192(0x192));if(_0x136921&&_0x3ff43d){_0x136921[_0x151192(0x157)]=_0x360925?_0x360925[_0x151192(0x1dc)](_0x5a1cff=>({'start':_0x5a1cff[_0x151192(0x156)],'end':_0x5a1cff[_0x151192(0x1a9)]})):[];try{if(_0x136921[_0x151192(0x1a2)]===_0x3d081d)return;const {id:_0x3fb1e8}=await this[_0x151192(0x1c5)][_0x151192(0x1a8)](this[_0x151192(0x188)],_0x3ff43d,{'version':_0x3d081d,'sessionId':_0x250766})[_0x151192(0x1b1)]();_0x136921['id']=_0x3fb1e8,_0x136921[_0x151192(0x154)]=_0x3ff43d,_0x136921[_0x151192(0x1a2)]=_0x3d081d,_0x136921[_0x151192(0x1ab)]=_0x250766;}catch(_0x313cb6){const _0x53ac07=new _0x1e13a2(_0x151192(0x14e),null);_0x53ac07[_0x151192(0x1d1)]=_0x313cb6[_0x151192(0x1d1)],this[_0x151192(0x195)](_0x151192(0x173),{'error':_0x53ac07});}}}[_0x3fea2e(0x1df)](_0x58cdd5){const _0x225209=_0x3fea2e;this[_0x225209(0x1bd)]({'type':_0x448885[_0x225209(0x1bf)],'label':_0x58cdd5,'uiId':_0x225209(0x157),'content':_0x58cdd5});}[_0x3fea2e(0x19a)](){const _0x5d95ed=_0x3fea2e;this[_0x5d95ed(0x17f)](_0x5d95ed(0x157));}async[_0x3fea2e(0x1aa)](_0xf6f1e6,_0x3dfdae){const _0x4a88d1=_0x3fea2e,_0x1db598=_0x4a88d1(0x1be)+_0x145148();this[_0x4a88d1(0x162)](_0x1db598);const _0x1c7f50=_0x4a88d1(0x1be)+_0x145148();try{this[_0x4a88d1(0x1bd)]({'type':_0x448885[_0x4a88d1(0x19c)],'label':_0x3dfdae?.[_0x4a88d1(0x151)]||_0xf6f1e6,'uiId':_0x1c7f50,'resourceId':_0x3dfdae?.[_0x4a88d1(0x1c2)]},!0x0);const _0x303144=this[_0x4a88d1(0x1c5)][_0x4a88d1(0x168)](this[_0x4a88d1(0x188)],_0xf6f1e6,_0x3dfdae);this[_0x4a88d1(0x171)][_0x4a88d1(0x16b)](_0x1c7f50,_0x303144[_0x4a88d1(0x1a1)]);const {id:_0x2b73c8}=await _0x303144[_0x4a88d1(0x1b1)]();this[_0x4a88d1(0x171)][_0x4a88d1(0x1ac)](_0x1c7f50),this[_0x4a88d1(0x18d)]({'type':_0x448885[_0x4a88d1(0x19c)],'id':_0x2b73c8,'label':_0x3dfdae?.[_0x4a88d1(0x151)]||_0xf6f1e6,'uiId':_0x1c7f50,'resourceId':_0x3dfdae?.[_0x4a88d1(0x1c2)]},!0x1);}catch(_0x52127f){this[_0x4a88d1(0x171)][_0x4a88d1(0x1ac)](_0x1c7f50),(_0x52127f[_0x4a88d1(0x182)][_0x4a88d1(0x1a6)](_0x4a88d1(0x15e))||this[_0x4a88d1(0x195)](_0x4a88d1(0x173),{'error':new _0x1e13a2(_0x4a88d1(0x167),this,{'url':_0xf6f1e6,'originalError':_0x52127f}),'url':_0xf6f1e6}),this[_0x4a88d1(0x17f)](_0x1c7f50));}finally{this[_0x4a88d1(0x169)](_0x1db598);}}[_0x3fea2e(0x187)](_0xe0d14){const _0x2c2067=_0x3fea2e;_0xe0d14['id']=_0xe0d14['id']??_0x145148()[_0x2c2067(0x19f)](0x0,0x15),this[_0x2c2067(0x165)][_0x2c2067(0x16b)](_0xe0d14[_0x2c2067(0x160)],_0xe0d14),this[_0x2c2067(0x195)](_0x2c2067(0x16f),{'contextItem':_0xe0d14,'isLoading':!0x1});}async[_0x3fea2e(0x16e)](_0x8ad087,_0x3ecb04,_0x201f3c){const _0x5b5669=_0x3fea2e,_0x345824=this[_0x5b5669(0x172)][_0x5b5669(0x158)][_0x5b5669(0x1db)](_0x169c15=>_0x169c15['id']===_0x8ad087);if(!_0x345824)return this[_0x5b5669(0x195)](_0x5b5669(0x173),{'error':new _0x1e13a2(_0x5b5669(0x15d),this,{'sourceId':_0x8ad087}),'sourceId':_0x8ad087}),[];try{const _0x1c0b91=(await _0x345824[_0x5b5669(0x16d)](_0x3ecb04))[_0x5b5669(0x1dc)](_0x12737b=>{const _0x5e6fc5=_0x5b5669,_0x155f0d=this[_0x5e6fc5(0x163)](_0x12737b['id']);return{..._0x12737b,'isInContext':_0x155f0d};});return _0x345824[_0x5b5669(0x14f)]=_0x1c0b91,this[_0x5b5669(0x195)](_0x5b5669(0x19b),{'sourceId':_0x8ad087,'source':_0x345824,'resources':_0x1c0b91,'uid':_0x201f3c}),_0x1c0b91;}catch(_0x311dce){return this[_0x5b5669(0x195)](_0x5b5669(0x173),{'error':new _0x1e13a2(_0x5b5669(0x1d8),this,{'sourceId':_0x8ad087,'originalError':_0x311dce}),'sourceId':_0x8ad087,'sourceLabel':_0x345824[_0x5b5669(0x151)]}),[];}}async[_0x3fea2e(0x181)](_0x45877f,_0x38c9ee){const _0x435b12=_0x3fea2e;if(this[_0x435b12(0x163)](_0x38c9ee['id']))return;let _0x865571=_0x38c9ee[_0x435b12(0x16a)];if(!_0x865571&&_0x45877f[_0x435b12(0x197)])try{_0x865571=await _0x45877f[_0x435b12(0x197)](_0x38c9ee['id']);}catch(_0x1f74de){return void this[_0x435b12(0x195)](_0x435b12(0x173),{'error':new _0x1e13a2(_0x435b12(0x17c),this,{'resourceId':_0x38c9ee['id'],'sourceId':_0x45877f['id'],'originalError':_0x1f74de}),'resourceId':_0x38c9ee['id'],'sourceId':_0x45877f['id']});}if(_0x865571)switch(_0x38c9ee[_0x435b12(0x159)]){case _0x448885[_0x435b12(0x19c)]:if(_0x435b12(0x1c4)!=typeof _0x865571)return void this[_0x435b12(0x195)](_0x435b12(0x173),{'error':new _0x1e13a2(_0x435b12(0x17e),this,{'resourceId':_0x38c9ee['id'],'sourceId':_0x45877f['id'],'expectedType':_0x435b12(0x1c4),'actualType':typeof _0x865571}),'resourceId':_0x38c9ee['id'],'sourceId':_0x45877f['id']});await this[_0x435b12(0x1aa)](_0x865571,{'label':_0x38c9ee[_0x435b12(0x151)],'resourceId':_0x38c9ee['id']});break;case _0x448885[_0x435b12(0x1cc)]:if(!(_0x865571 instanceof File))return void this[_0x435b12(0x195)](_0x435b12(0x173),{'error':new _0x1e13a2(_0x435b12(0x17e),this,{'resourceId':_0x38c9ee['id'],'sourceId':_0x45877f['id'],'expectedType':_0x435b12(0x1c7),'actualType':typeof _0x865571}),'resourceId':_0x38c9ee['id'],'sourceId':_0x45877f['id']});await this[_0x435b12(0x1d7)]([_0x865571],{'label':_0x38c9ee[_0x435b12(0x151)],'resourceId':_0x38c9ee['id']});break;case _0x448885[_0x435b12(0x1cf)]:if(_0x435b12(0x1b8)!=typeof _0x865571||!(_0x435b12(0x154)in _0x865571)||!(_0x435b12(0x159)in _0x865571))return void this[_0x435b12(0x195)](_0x435b12(0x173),{'error':new _0x1e13a2(_0x435b12(0x17e),this,{'resourceId':_0x38c9ee['id'],'sourceId':_0x45877f['id'],'expectedType':_0x435b12(0x1d4),'actualType':typeof _0x865571}),'resourceId':_0x38c9ee['id'],'sourceId':_0x45877f['id']});_0x865571=AIChatContext[_0x435b12(0x1d2)](_0x865571,_0x38c9ee[_0x435b12(0x151)]),await this[_0x435b12(0x1d7)]([_0x865571],{'label':_0x38c9ee[_0x435b12(0x151)],'resourceId':_0x38c9ee['id']},_0x448885[_0x435b12(0x1cf)]);break;case _0x448885[_0x435b12(0x1c9)]:break;default:this[_0x435b12(0x195)](_0x435b12(0x173),{'error':new _0x1e13a2(_0x435b12(0x1d5),this,{'resourceId':_0x38c9ee['id'],'sourceId':_0x45877f['id'],'resourceType':_0x38c9ee[_0x435b12(0x159)]}),'resourceId':_0x38c9ee['id'],'sourceId':_0x45877f['id']});}else this[_0x435b12(0x195)](_0x435b12(0x173),{'error':new _0x1e13a2(_0x435b12(0x14d),this,{'resourceId':_0x38c9ee['id'],'sourceId':_0x45877f['id']}),'resourceId':_0x38c9ee['id'],'sourceId':_0x45877f['id']});}static[_0x3fea2e(0x1d2)](_0x5a0e02,_0x4b3b8d){const _0x122141=_0x3fea2e;switch(_0x5a0e02[_0x122141(0x159)]){case _0x490edc[_0x122141(0x1d0)]:return new File([_0x5a0e02[_0x122141(0x154)]],_0x4b3b8d,{'type':_0x122141(0x17b)});case _0x490edc[_0x122141(0x1e1)]:return new File([_0x5a0e02[_0x122141(0x154)]],_0x4b3b8d,{'type':_0x122141(0x174)});default:return new File([_0x5a0e02[_0x122141(0x154)]],_0x4b3b8d,{'type':_0x122141(0x1e0)});}}static[_0x3fea2e(0x178)](_0x47acc2){const _0x4de578=_0x3fea2e;switch(_0x47acc2[_0x4de578(0x159)]){case _0x448885[_0x4de578(0x1cc)]:return{'type':_0x448885[_0x4de578(0x1cc)],'id':_0x47acc2['id']};case _0x448885[_0x4de578(0x19c)]:return{'type':_0x448885[_0x4de578(0x19c)],'id':_0x47acc2['id']};case _0x448885[_0x4de578(0x166)]:return{'type':_0x448885[_0x4de578(0x166)],'id':_0x47acc2['id'],..._0x47acc2[_0x4de578(0x157)]?.[_0x4de578(0x1a5)]&&{'selection':_0x47acc2[_0x4de578(0x157)]}};case _0x448885[_0x4de578(0x1cf)]:return{'type':_0x448885[_0x4de578(0x1cc)],'id':_0x47acc2['id']};case _0x448885[_0x4de578(0x1c9)]:{const _0x5285ef=_0x47acc2;return{'type':_0x448885[_0x4de578(0x1c9)],'mcpServerName':_0x5285ef[_0x4de578(0x18e)],'toolName':_0x5285ef[_0x4de578(0x1b6)],'data':_0x5285ef[_0x4de578(0x16a)],'id':_0x5285ef['id']};}default:return null;}}[_0x3fea2e(0x1bd)](_0x3aed1e,_0x35b846=!0x1){const _0x27dde9=_0x3fea2e;if(this[_0x27dde9(0x165)][_0x27dde9(0x16b)](_0x3aed1e[_0x27dde9(0x160)],_0x3aed1e),_0x3aed1e[_0x27dde9(0x1e2)]||this[_0x27dde9(0x195)](_0x27dde9(0x16f),{'contextItem':_0x3aed1e,'isLoading':_0x35b846}),_0x27dde9(0x192)===_0x3aed1e[_0x27dde9(0x160)]&&this[_0x27dde9(0x1cb)](),_0x3aed1e[_0x27dde9(0x1c2)]){const _0x174bed=this[_0x27dde9(0x15a)](_0x3aed1e[_0x27dde9(0x1c2)]);_0x174bed&&_0x174bed[_0x27dde9(0x170)](_0x26ec3d=>{const _0x5026ee=_0x27dde9;this[_0x5026ee(0x194)](_0x26ec3d,_0x3aed1e[_0x5026ee(0x1c2)],!0x0);});}}[_0x3fea2e(0x17f)](_0x24879d){const _0x4661b0=_0x3fea2e,_0x17b84e=this[_0x4661b0(0x165)][_0x4661b0(0x164)](_0x24879d),_0x271748=this[_0x4661b0(0x171)][_0x4661b0(0x164)](_0x24879d);if(_0x271748&&(_0x271748[_0x4661b0(0x180)](),this[_0x4661b0(0x171)][_0x4661b0(0x1ac)](_0x24879d)),_0x17b84e?.[_0x4661b0(0x1c2)]){const _0x3773ed=this[_0x4661b0(0x15a)](_0x17b84e[_0x4661b0(0x1c2)]);_0x3773ed&&_0x3773ed[_0x4661b0(0x170)](_0x132cc1=>{const _0x5ebea7=_0x4661b0;this[_0x5ebea7(0x194)](_0x132cc1,_0x17b84e[_0x5ebea7(0x1c2)],!0x1);});}this[_0x4661b0(0x165)][_0x4661b0(0x1ac)](_0x24879d),this[_0x4661b0(0x195)](_0x4661b0(0x1a0),{'uiId':_0x24879d,'type':_0x17b84e?.[_0x4661b0(0x159)]}),_0x4661b0(0x192)===_0x24879d&&this[_0x4661b0(0x1cb)]();}[_0x3fea2e(0x18d)](_0x518d93,_0x209321){const _0x28b18a=_0x3fea2e;if(this[_0x28b18a(0x165)][_0x28b18a(0x1ad)](_0x518d93[_0x28b18a(0x160)])&&(this[_0x28b18a(0x165)][_0x28b18a(0x16b)](_0x518d93[_0x28b18a(0x160)],_0x518d93),this[_0x28b18a(0x195)](_0x28b18a(0x189),{'contextItem':_0x518d93,'isLoading':_0x209321}),_0x518d93[_0x28b18a(0x1c2)])){const _0x166b3b=this[_0x28b18a(0x15a)](_0x518d93[_0x28b18a(0x1c2)]);_0x166b3b&&_0x166b3b[_0x28b18a(0x170)](_0x5634e0=>{const _0x28ea49=_0x28b18a;this[_0x28ea49(0x194)](_0x5634e0,_0x518d93[_0x28ea49(0x1c2)],!0x0);});}}[_0x3fea2e(0x1af)](_0x147d3f){const _0x49b2c2=_0x3fea2e;this[_0x49b2c2(0x1a3)][_0x49b2c2(0x16b)](_0x147d3f[_0x49b2c2(0x160)],_0x147d3f);}[_0x3fea2e(0x18f)](){const _0x13b53c=_0x3fea2e;this[_0x13b53c(0x172)]={'document':{'enabled':!0x1!==this[_0x13b53c(0x19d)]?.[_0x13b53c(0x1d3)]?.[_0x13b53c(0x18b)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x13b53c(0x19d)]?.[_0x13b53c(0x176)]?.[_0x13b53c(0x18b)]},'files':{'enabled':!0x1!==this[_0x13b53c(0x19d)]?.[_0x13b53c(0x15f)]?.[_0x13b53c(0x18b)]},'sources':this[_0x13b53c(0x1ae)](),'customItems':this[_0x13b53c(0x19d)]?.[_0x13b53c(0x1ce)]?.[_0x13b53c(0x1dc)](_0x269bdf=>({..._0x269bdf,'enabled':!0x0}))??[]},this[_0x13b53c(0x195)](_0x13b53c(0x18c),{'options':this[_0x13b53c(0x172)]});}[_0x3fea2e(0x1ae)](){const _0x400e89=_0x3fea2e;return this[_0x400e89(0x19d)]?.[_0x400e89(0x158)]?.[_0x400e89(0x1dc)](_0xd580cc=>({..._0xd580cc,'resources':[]}))??[];}[_0x3fea2e(0x1cb)](){const _0xc87528=_0x3fea2e,_0x4cafa2=this[_0xc87528(0x1cd)]()||this[_0xc87528(0x1dd)]();this[_0xc87528(0x172)][_0xc87528(0x1d3)][_0xc87528(0x161)]=_0x4cafa2,this[_0xc87528(0x195)](_0xc87528(0x18c),{'options':this[_0xc87528(0x172)]});}[_0x3fea2e(0x163)](_0x11a9f6){const _0x4e5eb2=_0x3fea2e;for(const _0x57ae63 of this[_0x4e5eb2(0x165)][_0x4e5eb2(0x18a)]())if(_0x57ae63[_0x4e5eb2(0x1c2)]===_0x11a9f6)return!0x0;for(const _0x3c9024 of this[_0x4e5eb2(0x1a3)][_0x4e5eb2(0x18a)]())if(_0x3c9024[_0x4e5eb2(0x1c2)]===_0x11a9f6)return!0x0;return!0x1;}[_0x3fea2e(0x15a)](_0x1ad180){const _0x49eb63=_0x3fea2e,_0x5ec430=[];for(const _0x121bb3 of this[_0x49eb63(0x172)][_0x49eb63(0x158)]){_0x121bb3[_0x49eb63(0x14f)][_0x49eb63(0x1db)](_0x3a2248=>_0x3a2248['id']===_0x1ad180)&&_0x5ec430[_0x49eb63(0x16c)](_0x121bb3['id']);}return 0x0===_0x5ec430[_0x49eb63(0x1a5)]?null:_0x5ec430;}[_0x3fea2e(0x194)](_0x3e63ad,_0x1e696a,_0x115c95){const _0x1b45cf=_0x3fea2e,_0x1447c2=this[_0x1b45cf(0x172)][_0x1b45cf(0x158)][_0x1b45cf(0x1db)](_0x9711ba=>_0x9711ba['id']===_0x3e63ad);if(!_0x1447c2)return;const _0x3398a1=_0x1447c2[_0x1b45cf(0x14f)][_0x1b45cf(0x1db)](_0x1b5a79=>_0x1b5a79['id']===_0x1e696a);_0x3398a1&&(_0x3398a1[_0x1b45cf(0x19e)]=_0x115c95,this[_0x1b45cf(0x195)](_0x1b45cf(0x1bc),{'sourceId':_0x3e63ad,'resourceId':_0x1e696a,'isInContext':_0x115c95}));}[_0x3fea2e(0x162)](_0x2ef528){const _0x53810b=_0x3fea2e;this[_0x53810b(0x190)][_0x53810b(0x16b)](_0x2ef528,!0x0),this[_0x53810b(0x190)][_0x53810b(0x196)]&&this[_0x53810b(0x195)](_0x53810b(0x152),{'isUploadInProgress':!0x0});}[_0x3fea2e(0x169)](_0x20c5c4){const _0x771d96=_0x3fea2e;this[_0x771d96(0x190)][_0x771d96(0x1ac)](_0x20c5c4),0x0===this[_0x771d96(0x190)][_0x771d96(0x196)]&&this[_0x771d96(0x195)](_0x771d96(0x152),{'isUploadInProgress':!0x1});}}function _0x52cd(){const _0xea815b=['size','getData','mapContextItemsToRequestData','from','removeSelectionFromContext','sourceResourcesLoaded','URL','_config','isInContext','substring','contextItemRemoved','abortController','version','_conversationContextItems','uploadFile','length','startsWith','all','uploadDocument','end','addUrlToContext','sessionId','delete','has','_getCustomSourcesInitialState','_addToConversationContextItem','files-','getId','354uSeaHJ','getDocument','getPendingContextItems','287645NXIVZz','toolName','712690EywiwO','object','init','_createContextItemFromContent','ai-chat-file-upload-failed','resourceStateChanged','_addContextItem','url-','SELECTION','458557yHOcyJ','getSentContextItems','resourceId','attributes','string','_connector','5930SWweoH','File','136BOSejl','TOOL','1821JeTXlZ','_toggleAddCurrentDocumentOptionVisibility','FILE','isCurrentDocumentInContext','customItems','TEXT','MARKDOWN','stack','_convertTextResourceToFile','document','object\x20with\x20content\x20and\x20type\x20properties','ai-chat-context-unsupported-type','name','addFilesToContext','ai-chat-source-resources-load-failed','filter','109395SLuDit','find','map','isCurrentDocumentInConversation','isSelectionInContext','addSelectionToContext','text/plain','HTML','hidden','contextSent','ai-chat-resource-no-data','ai-chat-document-upload-failed','resources','addToConversationContext','label','uploadProgressChanged','clearPendingContextItems','content','7qKcNqI','start','selection','sources','type','_findSourceIdsByResourceId','removeFromContext','updateCurrentDocument','ai-chat-source-not-found','ai-request-aborted','files','uiId','isHidden','_startUploadOperation','_isResourceInContext','get','_pendingContextItems','DOCUMENT','ai-chat-url-upload-failed','uploadUrl','_finishUploadOperation','data','set','push','getResources','loadSourceResources','contextItemAdded','forEach','_ongoingUploads','_addContextOptionsState','error','text/html','Current\x20document','urls','fetchDocument','_mapContextItemToRequestData','992PhhIBI','populateFromMessage','text/markdown','ai-chat-resource-load-failed','324dApulY','ai-chat-context-invalid-data','_removeContextItem','abort','addResourceToContext','message','isReadOnly','file-','891330THIEHt','code','addToolItemToContext','_ownerId','contextItemLoadingEnded','values','enabled','addContextOptionsChanged','_finishContextItemLoading','mcpServerName','_setAddContextOptionsDefaultState','_ongoingUploadOperations','url','current-document','addCurrentDocumentToContext','_updateResourceInContextState','fire'];_0x52cd=function(){return _0xea815b;};return _0x52cd();}
23
+ function _0x1848(){const _0xb22fd4=['60yyuTAh','URL','type','filter','text/html','_ownerId','files-','_mapContextItemToRequestData','isHidden','delete','getResources','_getCustomSourcesInitialState','attributes','get','code','Current\x20document','url-','_createContextItemFromContent','_addToConversationContextItem','mapContextItemsToRequestData','_ongoingUploadOperations','text/markdown','addCurrentDocumentToContext','sources','ai-chat-resource-load-failed','uploadDocument','_config','removeSelectionFromContext','fire','TOOL','8AJBQCx','ai-chat-context-invalid-data','substring','mcpServerName','HTML','object','addUrlToContext','clearPendingContextItems','abortController','contextSent','isCurrentDocumentInConversation','2347383MRzYAt','26630tnVTuU','document','ai-chat-url-upload-failed','1433061WAdiqP','end','name','4628796JJdYtD','_findSourceIdsByResourceId','push','file-','_finishUploadOperation','updateCurrentDocument','selection','current-document','urls','set','_ongoingUploads','MARKDOWN','url','_setAddContextOptionsDefaultState','find','data','from','addFilesToContext','ai-request-aborted','resources','resourceStateChanged','contextItemRemoved','_pendingContextItems','has','sessionId','files','uploadProgressChanged','resourceId','removeFromContext','length','SELECTION','ai-chat-resource-no-data','toolName','populateFromMessage','_addContextItem','FILE','addSelectionToContext','enabled','addToConversationContext','start','_finishContextItemLoading','_connector','addContextOptionsChanged','customItems','getSentContextItems','_startUploadOperation','values','isReadOnly','message','694296sjvLyq','13722720rUUSrA','forEach','isSelectionInContext','getDocument','_addContextOptionsState','sourceResourcesLoaded','TEXT','File','_conversationContextItems','uploadUrl','string','ai-chat-document-upload-failed','DOCUMENT','getId','_convertTextResourceToFile','addToolItemToContext','_updateResourceInContextState','uiId','1521mcgSQi','ai-chat-file-upload-failed','contextItemAdded','all','isCurrentDocumentInContext','loadSourceResources','version','_toggleAddCurrentDocumentOptionVisibility','contextItemLoadingEnded','hidden','size','startsWith','map','_isResourceInContext','getData','addResourceToContext','content','_removeContextItem','object\x20with\x20content\x20and\x20type\x20properties','abort','isInContext','getPendingContextItems','ai-chat-context-unsupported-type','ai-chat-source-not-found','init','uploadFile','ai-chat-source-resources-load-failed','4HSLdFf','text/plain','stack','fetchDocument','5409019edBdUu','label','error'];_0x1848=function(){return _0xb22fd4;};return _0x1848();}const _0x515cfc=_0x30da;(function(_0x20adcc,_0x2d4254){const _0x5adbce=_0x30da,_0x48c127=_0x20adcc();while(!![]){try{const _0x1178dd=parseInt(_0x5adbce(0x1d4))/0x1+-parseInt(_0x5adbce(0x236))/0x2*(parseInt(_0x5adbce(0x1d0))/0x3)+parseInt(_0x5adbce(0x1d7))/0x4+-parseInt(_0x5adbce(0x23d))/0x5*(-parseInt(_0x5adbce(0x208))/0x6)+-parseInt(_0x5adbce(0x23a))/0x7*(parseInt(_0x5adbce(0x25b))/0x8)+parseInt(_0x5adbce(0x21b))/0x9*(parseInt(_0x5adbce(0x1d1))/0xa)+-parseInt(_0x5adbce(0x209))/0xb;if(_0x1178dd===_0x2d4254)break;else _0x48c127['push'](_0x48c127['shift']());}catch(_0x4d0c8e){_0x48c127['push'](_0x48c127['shift']());}}}(_0x1848,0xcdfdc));import{CKEditorError as _0x2bede4,ObservableMixin as _0x5775fb,uid as _0x12b84c}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x25f048,AIContextTextResourceType as _0x56f282}from'../../aicore/model/aicontext.js';import{escape as _0x3f20d6}from'es-toolkit/compat';function _0x30da(_0x1b15ae,_0x59e35b){const _0x1848f4=_0x1848();return _0x30da=function(_0x30daaf,_0x46de11){_0x30daaf=_0x30daaf-0x1c6;let _0x23cde6=_0x1848f4[_0x30daaf];return _0x23cde6;},_0x30da(_0x1b15ae,_0x59e35b);}import{errorsMap as _0x40ff63}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x515cfc(0x21d),_0x515cfc(0x1ec),_0x515cfc(0x223),_0x515cfc(0x1ce),_0x515cfc(0x23c),_0x515cfc(0x201),_0x515cfc(0x20e),_0x515cfc(0x1eb),_0x515cfc(0x1f1)];export class AIChatContext extends _0x5775fb(){[_0x515cfc(0x200)];[_0x515cfc(0x257)];[_0x515cfc(0x242)];constructor({connector:_0x1f3030,config:_0x35b4c8,ownerId:_0x20a00d}){const _0x550dbf=_0x515cfc;super(),this[_0x550dbf(0x200)]=_0x1f3030,this[_0x550dbf(0x257)]=_0x35b4c8,this[_0x550dbf(0x242)]=_0x20a00d;}[_0x515cfc(0x233)](){const _0x41bf08=_0x515cfc;this[_0x41bf08(0x1ed)]=new Map(),this[_0x41bf08(0x211)]=new Map(),this[_0x41bf08(0x1e1)]=new Map(),this[_0x41bf08(0x251)]=new Map(),this[_0x41bf08(0x1e4)]();}[_0x515cfc(0x230)](){const _0x5c0317=_0x515cfc;return this[_0x5c0317(0x1ed)];}async[_0x515cfc(0x1f8)](_0x2a8031){const _0x598a95=_0x515cfc,_0x24cb63=await this[_0x598a95(0x24e)](_0x2a8031);return this[_0x598a95(0x24f)](_0x24cb63),_0x598a95(0x1de)===_0x24cb63[_0x598a95(0x21a)]&&this[_0x598a95(0x222)](),_0x24cb63;}async[_0x515cfc(0x24e)](_0xd3223d){const _0x4678e6=_0x515cfc;if(_0xd3223d[_0x4678e6(0x23f)]===_0x25f048[_0x4678e6(0x215)]){const _0x52ae49=await this[_0x4678e6(0x200)][_0x4678e6(0x239)](this[_0x4678e6(0x242)],_0xd3223d['id'])[_0x4678e6(0x20c)]();return{'id':_0x4678e6(0x1de),'uiId':_0x4678e6(0x1de),'label':_0x4678e6(0x24c),'type':_0xd3223d[_0x4678e6(0x23f)],'content':_0x52ae49[_0x4678e6(0x22b)],'hidden':this[_0x4678e6(0x211)][_0x4678e6(0x1ee)](_0x4678e6(0x1de)),'version':_0x52ae49[_0x4678e6(0x249)]?.[_0x4678e6(0x221)],'sessionId':_0x52ae49[_0x4678e6(0x249)]?.[_0x4678e6(0x1ef)]};}if(_0xd3223d[_0x4678e6(0x23f)]===_0x25f048[_0x4678e6(0x25a)])return{'id':_0xd3223d['id'],'uiId':_0xd3223d['id'],'label':_0xd3223d[_0x4678e6(0x1e6)]?.[_0x4678e6(0x23b)]||_0xd3223d['id'],'type':_0x25f048[_0x4678e6(0x25a)],'mcpServerName':_0xd3223d[_0x4678e6(0x1c8)],'toolName':_0xd3223d[_0x4678e6(0x1f7)],'data':_0xd3223d[_0x4678e6(0x1e6)]||{}};return{'id':_0xd3223d['id'],'uiId':_0xd3223d['id'],'label':_0xd3223d[_0x4678e6(0x249)]?.[_0x4678e6(0x23b)]||_0xd3223d[_0x4678e6(0x1d6)]||_0xd3223d[_0x4678e6(0x1e3)]||_0xd3223d['id'],'type':_0xd3223d[_0x4678e6(0x23f)],..._0xd3223d?.[_0x4678e6(0x249)]?.[_0x4678e6(0x1f2)]?{'resourceId':_0xd3223d[_0x4678e6(0x249)]?.[_0x4678e6(0x1f2)]}:{}};}[_0x515cfc(0x203)](){const _0x8f8279=_0x515cfc;return new Map(this[_0x8f8279(0x211)]);}[_0x515cfc(0x1f3)](_0x367e6b){const _0x136e3f=_0x515cfc,_0x2cf9f6=this[_0x136e3f(0x1ed)][_0x136e3f(0x24a)](_0x367e6b);_0x2cf9f6?.[_0x136e3f(0x206)]||this[_0x136e3f(0x22c)](_0x367e6b);}[_0x515cfc(0x1cc)](){const _0x33c9bc=_0x515cfc;if(0x0===this[_0x33c9bc(0x1ed)][_0x33c9bc(0x225)])return;for(const _0x23a8af of this[_0x33c9bc(0x1ed)][_0x33c9bc(0x205)]())this[_0x33c9bc(0x22c)](_0x23a8af[_0x33c9bc(0x21a)]);const _0x8a83d0=this[_0x33c9bc(0x211)][_0x33c9bc(0x24a)](_0x33c9bc(0x1de))||this[_0x33c9bc(0x1ed)][_0x33c9bc(0x24a)](_0x33c9bc(0x1de));_0x8a83d0&&this[_0x33c9bc(0x1f9)]({..._0x8a83d0,'isReadOnly':!0x0,'hidden':!0x0});}[_0x515cfc(0x1fd)](_0x4cd5e1){const _0xc9ef1c=_0x515cfc;for(const _0x27ccd9 of _0x4cd5e1[_0xc9ef1c(0x205)]())this[_0xc9ef1c(0x24f)](_0x27ccd9);this[_0xc9ef1c(0x1cc)](),this[_0xc9ef1c(0x259)](_0xc9ef1c(0x1ce),{'contextItems':Array[_0xc9ef1c(0x1e7)](this[_0xc9ef1c(0x203)]()[_0xc9ef1c(0x205)]())});}[_0x515cfc(0x21f)](){const _0xcc3388=_0x515cfc;return this[_0xcc3388(0x1ed)][_0xcc3388(0x1ee)](_0xcc3388(0x1de));}[_0x515cfc(0x20b)](){const _0x47677b=_0x515cfc;return this[_0x47677b(0x1ed)][_0x47677b(0x1ee)](_0x47677b(0x1dd));}[_0x515cfc(0x1cf)](){const _0x55506a=_0x515cfc;return this[_0x55506a(0x211)][_0x55506a(0x1ee)](_0x55506a(0x1de));}static[_0x515cfc(0x250)](_0x5adccc){const _0x2d627d=_0x515cfc;return Array[_0x2d627d(0x1e7)](_0x5adccc[_0x2d627d(0x205)]())[_0x2d627d(0x227)](_0x2ede17=>this[_0x2d627d(0x244)](_0x2ede17))[_0x2d627d(0x240)](_0x2b4a32=>null!==_0x2b4a32);}async[_0x515cfc(0x1e8)](_0x4bd081,_0x561036,_0xe5f7cf=_0x25f048[_0x515cfc(0x1fa)]){const _0x1cacae=_0x515cfc,_0x38c27c=_0x1cacae(0x243)+_0x12b84c();this[_0x1cacae(0x204)](_0x38c27c);try{await Promise[_0x1cacae(0x21e)](_0x4bd081[_0x1cacae(0x227)](async _0x2c3c61=>{const _0x2eaec4=_0x1cacae,_0xe0a02a=_0x2eaec4(0x1da)+_0x12b84c(),_0x479421=_0x3f20d6(_0x2c3c61[_0x2eaec4(0x1d6)]);try{this[_0x2eaec4(0x1f9)]({'type':_0xe5f7cf,'label':_0x561036?.[_0x2eaec4(0x23b)]||_0x479421,'uiId':_0xe0a02a,'resourceId':_0x561036?.[_0x2eaec4(0x1f2)]},!0x0);const _0x5054bf=this[_0x2eaec4(0x200)][_0x2eaec4(0x234)](this[_0x2eaec4(0x242)],_0x2c3c61,_0x561036);this[_0x2eaec4(0x1e1)][_0x2eaec4(0x1e0)](_0xe0a02a,_0x5054bf[_0x2eaec4(0x1cd)]);const {id:_0x2b2481}=await _0x5054bf[_0x2eaec4(0x216)]();this[_0x2eaec4(0x1e1)][_0x2eaec4(0x246)](_0xe0a02a),this[_0x2eaec4(0x1ff)]({'type':_0xe5f7cf,'id':_0x2b2481,'label':_0x561036?.[_0x2eaec4(0x23b)]||_0x479421,'uiId':_0xe0a02a,'resourceId':_0x561036?.[_0x2eaec4(0x1f2)]},!0x1);}catch(_0x1ea610){this[_0x2eaec4(0x1e1)][_0x2eaec4(0x246)](_0xe0a02a);if(!(_0x1ea610 instanceof _0x2bede4&&_0x1ea610[_0x2eaec4(0x207)][_0x2eaec4(0x226)](_0x2eaec4(0x1e9)))){const _0x3b8978=_0x40ff63[_0x2eaec4(0x24a)](_0x1ea610[_0x2eaec4(0x24b)])||_0x2eaec4(0x21c),_0x1acc1a=new _0x2bede4(_0x3b8978,null,{'fileName':_0x479421,..._0x1ea610});_0x1acc1a[_0x2eaec4(0x238)]=_0x1ea610[_0x2eaec4(0x238)],this[_0x2eaec4(0x259)](_0x2eaec4(0x23c),{'error':_0x1acc1a});}this[_0x2eaec4(0x22c)](_0xe0a02a);}}));}finally{this[_0x1cacae(0x1db)](_0x38c27c);}}[_0x515cfc(0x253)](_0x34330b){const _0x2d0653=_0x515cfc;if(this[_0x2d0653(0x21f)]()||!this[_0x2d0653(0x20d)][_0x2d0653(0x1d2)][_0x2d0653(0x1fc)])return;const _0x47ebe5={'type':_0x25f048[_0x2d0653(0x215)],'uiId':_0x2d0653(0x1de),'label':_0x34330b,'isReadOnly':this[_0x2d0653(0x211)][_0x2d0653(0x1ee)](_0x2d0653(0x1de)),'hidden':this[_0x2d0653(0x211)][_0x2d0653(0x1ee)](_0x2d0653(0x1de))};this[_0x2d0653(0x1f9)](_0x47ebe5);}async[_0x515cfc(0x1dc)](_0x397a65,_0x4f64b8,_0x1cc29e,_0x5b135b){const _0x14dbb6=_0x515cfc,_0x2aa5d5=this[_0x14dbb6(0x1ed)][_0x14dbb6(0x24a)](_0x14dbb6(0x1de));if(_0x2aa5d5&&_0x397a65){_0x2aa5d5[_0x14dbb6(0x1dd)]=_0x5b135b?_0x5b135b[_0x14dbb6(0x227)](_0x5f2f04=>({'start':_0x5f2f04[_0x14dbb6(0x1fe)],'end':_0x5f2f04[_0x14dbb6(0x1d5)]})):[];try{if(_0x2aa5d5[_0x14dbb6(0x221)]===_0x4f64b8)return;const {id:_0x32adca}=await this[_0x14dbb6(0x200)][_0x14dbb6(0x256)](this[_0x14dbb6(0x242)],_0x397a65,{'version':_0x4f64b8,'sessionId':_0x1cc29e})[_0x14dbb6(0x216)]();_0x2aa5d5['id']=_0x32adca,_0x2aa5d5[_0x14dbb6(0x22b)]=_0x397a65,_0x2aa5d5[_0x14dbb6(0x221)]=_0x4f64b8,_0x2aa5d5[_0x14dbb6(0x1ef)]=_0x1cc29e;}catch(_0x49a3e2){const _0x375d01=new _0x2bede4(_0x14dbb6(0x214),null);_0x375d01[_0x14dbb6(0x238)]=_0x49a3e2[_0x14dbb6(0x238)],this[_0x14dbb6(0x259)](_0x14dbb6(0x23c),{'error':_0x375d01});}}}[_0x515cfc(0x1fb)](_0x29837e){const _0x17c841=_0x515cfc;this[_0x17c841(0x1f9)]({'type':_0x25f048[_0x17c841(0x1f5)],'label':_0x29837e,'uiId':_0x17c841(0x1dd),'content':_0x29837e});}[_0x515cfc(0x258)](){const _0x32fded=_0x515cfc;this[_0x32fded(0x22c)](_0x32fded(0x1dd));}async[_0x515cfc(0x1cb)](_0x45eafd,_0x5acf40){const _0xfdab0b=_0x515cfc,_0x274b54=_0xfdab0b(0x24d)+_0x12b84c();this[_0xfdab0b(0x204)](_0x274b54);const _0x3416a5=_0xfdab0b(0x24d)+_0x12b84c();try{this[_0xfdab0b(0x1f9)]({'type':_0x25f048[_0xfdab0b(0x23e)],'label':_0x5acf40?.[_0xfdab0b(0x23b)]||_0x45eafd,'uiId':_0x3416a5,'resourceId':_0x5acf40?.[_0xfdab0b(0x1f2)]},!0x0);const _0x313a4a=this[_0xfdab0b(0x200)][_0xfdab0b(0x212)](this[_0xfdab0b(0x242)],_0x45eafd,_0x5acf40);this[_0xfdab0b(0x1e1)][_0xfdab0b(0x1e0)](_0x3416a5,_0x313a4a[_0xfdab0b(0x1cd)]);const {id:_0x36bf31}=await _0x313a4a[_0xfdab0b(0x216)]();this[_0xfdab0b(0x1e1)][_0xfdab0b(0x246)](_0x3416a5),this[_0xfdab0b(0x1ff)]({'type':_0x25f048[_0xfdab0b(0x23e)],'id':_0x36bf31,'label':_0x5acf40?.[_0xfdab0b(0x23b)]||_0x45eafd,'uiId':_0x3416a5,'resourceId':_0x5acf40?.[_0xfdab0b(0x1f2)]},!0x1);}catch(_0x1dfdbc){this[_0xfdab0b(0x1e1)][_0xfdab0b(0x246)](_0x3416a5),(_0x1dfdbc[_0xfdab0b(0x207)][_0xfdab0b(0x226)](_0xfdab0b(0x1e9))||this[_0xfdab0b(0x259)](_0xfdab0b(0x23c),{'error':new _0x2bede4(_0xfdab0b(0x1d3),this,{'url':_0x45eafd,'originalError':_0x1dfdbc}),'url':_0x45eafd}),this[_0xfdab0b(0x22c)](_0x3416a5));}finally{this[_0xfdab0b(0x1db)](_0x274b54);}}[_0x515cfc(0x218)](_0x570115){const _0x5a9a00=_0x515cfc;_0x570115['id']=_0x570115['id']??_0x12b84c()[_0x5a9a00(0x1c7)](0x0,0x15),this[_0x5a9a00(0x1ed)][_0x5a9a00(0x1e0)](_0x570115[_0x5a9a00(0x21a)],_0x570115),this[_0x5a9a00(0x259)](_0x5a9a00(0x21d),{'contextItem':_0x570115,'isLoading':!0x1});}async[_0x515cfc(0x220)](_0x10e160,_0x109daa,_0x27373c){const _0x2d79a7=_0x515cfc,_0x331615=this[_0x2d79a7(0x20d)][_0x2d79a7(0x254)][_0x2d79a7(0x1e5)](_0x178f03=>_0x178f03['id']===_0x10e160);if(!_0x331615)return this[_0x2d79a7(0x259)](_0x2d79a7(0x23c),{'error':new _0x2bede4(_0x2d79a7(0x232),this,{'sourceId':_0x10e160}),'sourceId':_0x10e160}),[];try{const _0x2bb7ef=(await _0x331615[_0x2d79a7(0x247)](_0x109daa))[_0x2d79a7(0x227)](_0xd52f8c=>{const _0x268609=_0x2d79a7,_0x48e7e7=this[_0x268609(0x228)](_0xd52f8c['id']);return{..._0xd52f8c,'isInContext':_0x48e7e7};});return _0x331615[_0x2d79a7(0x1ea)]=_0x2bb7ef,this[_0x2d79a7(0x259)](_0x2d79a7(0x20e),{'sourceId':_0x10e160,'source':_0x331615,'resources':_0x2bb7ef,'uid':_0x27373c}),_0x2bb7ef;}catch(_0x2746ec){return this[_0x2d79a7(0x259)](_0x2d79a7(0x23c),{'error':new _0x2bede4(_0x2d79a7(0x235),this,{'sourceId':_0x10e160,'originalError':_0x2746ec}),'sourceId':_0x10e160,'sourceLabel':_0x331615[_0x2d79a7(0x23b)]}),[];}}async[_0x515cfc(0x22a)](_0x2349a3,_0x496e1e){const _0x545f63=_0x515cfc;if(this[_0x545f63(0x228)](_0x496e1e['id']))return;let _0x3899e6=_0x496e1e[_0x545f63(0x1e6)];if(!_0x3899e6&&_0x2349a3[_0x545f63(0x229)])try{_0x3899e6=await _0x2349a3[_0x545f63(0x229)](_0x496e1e['id']);}catch(_0x4f2abe){return void this[_0x545f63(0x259)](_0x545f63(0x23c),{'error':new _0x2bede4(_0x545f63(0x255),this,{'resourceId':_0x496e1e['id'],'sourceId':_0x2349a3['id'],'originalError':_0x4f2abe}),'resourceId':_0x496e1e['id'],'sourceId':_0x2349a3['id']});}if(_0x3899e6)switch(_0x496e1e[_0x545f63(0x23f)]){case _0x25f048[_0x545f63(0x23e)]:if(_0x545f63(0x213)!=typeof _0x3899e6)return void this[_0x545f63(0x259)](_0x545f63(0x23c),{'error':new _0x2bede4(_0x545f63(0x1c6),this,{'resourceId':_0x496e1e['id'],'sourceId':_0x2349a3['id'],'expectedType':_0x545f63(0x213),'actualType':typeof _0x3899e6}),'resourceId':_0x496e1e['id'],'sourceId':_0x2349a3['id']});await this[_0x545f63(0x1cb)](_0x3899e6,{'label':_0x496e1e[_0x545f63(0x23b)],'resourceId':_0x496e1e['id']});break;case _0x25f048[_0x545f63(0x1fa)]:if(!(_0x3899e6 instanceof File))return void this[_0x545f63(0x259)](_0x545f63(0x23c),{'error':new _0x2bede4(_0x545f63(0x1c6),this,{'resourceId':_0x496e1e['id'],'sourceId':_0x2349a3['id'],'expectedType':_0x545f63(0x210),'actualType':typeof _0x3899e6}),'resourceId':_0x496e1e['id'],'sourceId':_0x2349a3['id']});await this[_0x545f63(0x1e8)]([_0x3899e6],{'label':_0x496e1e[_0x545f63(0x23b)],'resourceId':_0x496e1e['id']});break;case _0x25f048[_0x545f63(0x20f)]:if(_0x545f63(0x1ca)!=typeof _0x3899e6||!(_0x545f63(0x22b)in _0x3899e6)||!(_0x545f63(0x23f)in _0x3899e6))return void this[_0x545f63(0x259)](_0x545f63(0x23c),{'error':new _0x2bede4(_0x545f63(0x1c6),this,{'resourceId':_0x496e1e['id'],'sourceId':_0x2349a3['id'],'expectedType':_0x545f63(0x22d),'actualType':typeof _0x3899e6}),'resourceId':_0x496e1e['id'],'sourceId':_0x2349a3['id']});_0x3899e6=AIChatContext[_0x545f63(0x217)](_0x3899e6,_0x496e1e[_0x545f63(0x23b)]),await this[_0x545f63(0x1e8)]([_0x3899e6],{'label':_0x496e1e[_0x545f63(0x23b)],'resourceId':_0x496e1e['id']},_0x25f048[_0x545f63(0x20f)]);break;case _0x25f048[_0x545f63(0x25a)]:break;default:this[_0x545f63(0x259)](_0x545f63(0x23c),{'error':new _0x2bede4(_0x545f63(0x231),this,{'resourceId':_0x496e1e['id'],'sourceId':_0x2349a3['id'],'resourceType':_0x496e1e[_0x545f63(0x23f)]}),'resourceId':_0x496e1e['id'],'sourceId':_0x2349a3['id']});}else this[_0x545f63(0x259)](_0x545f63(0x23c),{'error':new _0x2bede4(_0x545f63(0x1f6),this,{'resourceId':_0x496e1e['id'],'sourceId':_0x2349a3['id']}),'resourceId':_0x496e1e['id'],'sourceId':_0x2349a3['id']});}static[_0x515cfc(0x217)](_0x50b440,_0xe61f61){const _0x453b2c=_0x515cfc;switch(_0x50b440[_0x453b2c(0x23f)]){case _0x56f282[_0x453b2c(0x1e2)]:return new File([_0x50b440[_0x453b2c(0x22b)]],_0xe61f61,{'type':_0x453b2c(0x252)});case _0x56f282[_0x453b2c(0x1c9)]:return new File([_0x50b440[_0x453b2c(0x22b)]],_0xe61f61,{'type':_0x453b2c(0x241)});default:return new File([_0x50b440[_0x453b2c(0x22b)]],_0xe61f61,{'type':_0x453b2c(0x237)});}}static[_0x515cfc(0x244)](_0x110c67){const _0x3ea454=_0x515cfc;switch(_0x110c67[_0x3ea454(0x23f)]){case _0x25f048[_0x3ea454(0x1fa)]:return{'type':_0x25f048[_0x3ea454(0x1fa)],'id':_0x110c67['id']};case _0x25f048[_0x3ea454(0x23e)]:return{'type':_0x25f048[_0x3ea454(0x23e)],'id':_0x110c67['id']};case _0x25f048[_0x3ea454(0x215)]:return{'type':_0x25f048[_0x3ea454(0x215)],'id':_0x110c67['id'],..._0x110c67[_0x3ea454(0x1dd)]?.[_0x3ea454(0x1f4)]&&{'selection':_0x110c67[_0x3ea454(0x1dd)]}};case _0x25f048[_0x3ea454(0x20f)]:return{'type':_0x25f048[_0x3ea454(0x1fa)],'id':_0x110c67['id']};case _0x25f048[_0x3ea454(0x25a)]:{const _0x1de2f8=_0x110c67;return{'type':_0x25f048[_0x3ea454(0x25a)],'mcpServerName':_0x1de2f8[_0x3ea454(0x1c8)],'toolName':_0x1de2f8[_0x3ea454(0x1f7)],'data':_0x1de2f8[_0x3ea454(0x1e6)],'id':_0x1de2f8['id']};}default:return null;}}[_0x515cfc(0x1f9)](_0x26e45a,_0x3e4f3d=!0x1){const _0x565d48=_0x515cfc;if(this[_0x565d48(0x1ed)][_0x565d48(0x1e0)](_0x26e45a[_0x565d48(0x21a)],_0x26e45a),_0x26e45a[_0x565d48(0x224)]||this[_0x565d48(0x259)](_0x565d48(0x21d),{'contextItem':_0x26e45a,'isLoading':_0x3e4f3d}),_0x565d48(0x1de)===_0x26e45a[_0x565d48(0x21a)]&&this[_0x565d48(0x222)](),_0x26e45a[_0x565d48(0x1f2)]){const _0x4d9480=this[_0x565d48(0x1d8)](_0x26e45a[_0x565d48(0x1f2)]);_0x4d9480&&_0x4d9480[_0x565d48(0x20a)](_0x3acf85=>{const _0x291049=_0x565d48;this[_0x291049(0x219)](_0x3acf85,_0x26e45a[_0x291049(0x1f2)],!0x0);});}}[_0x515cfc(0x22c)](_0x19155d){const _0x5b6488=_0x515cfc,_0x4deb3b=this[_0x5b6488(0x1ed)][_0x5b6488(0x24a)](_0x19155d),_0x6b7d14=this[_0x5b6488(0x1e1)][_0x5b6488(0x24a)](_0x19155d);if(_0x6b7d14&&(_0x6b7d14[_0x5b6488(0x22e)](),this[_0x5b6488(0x1e1)][_0x5b6488(0x246)](_0x19155d)),_0x4deb3b?.[_0x5b6488(0x1f2)]){const _0x1bd2e2=this[_0x5b6488(0x1d8)](_0x4deb3b[_0x5b6488(0x1f2)]);_0x1bd2e2&&_0x1bd2e2[_0x5b6488(0x20a)](_0x5711e0=>{const _0xa1b06f=_0x5b6488;this[_0xa1b06f(0x219)](_0x5711e0,_0x4deb3b[_0xa1b06f(0x1f2)],!0x1);});}this[_0x5b6488(0x1ed)][_0x5b6488(0x246)](_0x19155d),this[_0x5b6488(0x259)](_0x5b6488(0x1ec),{'uiId':_0x19155d,'type':_0x4deb3b?.[_0x5b6488(0x23f)]}),_0x5b6488(0x1de)===_0x19155d&&this[_0x5b6488(0x222)]();}[_0x515cfc(0x1ff)](_0x17af8c,_0x2a058c){const _0x347984=_0x515cfc;if(this[_0x347984(0x1ed)][_0x347984(0x1ee)](_0x17af8c[_0x347984(0x21a)])&&(this[_0x347984(0x1ed)][_0x347984(0x1e0)](_0x17af8c[_0x347984(0x21a)],_0x17af8c),this[_0x347984(0x259)](_0x347984(0x223),{'contextItem':_0x17af8c,'isLoading':_0x2a058c}),_0x17af8c[_0x347984(0x1f2)])){const _0x4d8864=this[_0x347984(0x1d8)](_0x17af8c[_0x347984(0x1f2)]);_0x4d8864&&_0x4d8864[_0x347984(0x20a)](_0x27644f=>{const _0x463332=_0x347984;this[_0x463332(0x219)](_0x27644f,_0x17af8c[_0x463332(0x1f2)],!0x0);});}}[_0x515cfc(0x24f)](_0x2a2363){const _0x370768=_0x515cfc;this[_0x370768(0x211)][_0x370768(0x1e0)](_0x2a2363[_0x370768(0x21a)],_0x2a2363);}[_0x515cfc(0x1e4)](){const _0x370c48=_0x515cfc;this[_0x370c48(0x20d)]={'document':{'enabled':!0x1!==this[_0x370c48(0x257)]?.[_0x370c48(0x1d2)]?.[_0x370c48(0x1fc)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x370c48(0x257)]?.[_0x370c48(0x1df)]?.[_0x370c48(0x1fc)]},'files':{'enabled':!0x1!==this[_0x370c48(0x257)]?.[_0x370c48(0x1f0)]?.[_0x370c48(0x1fc)]},'sources':this[_0x370c48(0x248)](),'customItems':this[_0x370c48(0x257)]?.[_0x370c48(0x202)]?.[_0x370c48(0x227)](_0x25865e=>({..._0x25865e,'enabled':!0x0}))??[]},this[_0x370c48(0x259)](_0x370c48(0x201),{'options':this[_0x370c48(0x20d)]});}[_0x515cfc(0x248)](){const _0x5dafef=_0x515cfc;return this[_0x5dafef(0x257)]?.[_0x5dafef(0x254)]?.[_0x5dafef(0x227)](_0x24a1ef=>({..._0x24a1ef,'resources':[]}))??[];}[_0x515cfc(0x222)](){const _0x59fa2f=_0x515cfc,_0x3f91c7=this[_0x59fa2f(0x21f)]()||this[_0x59fa2f(0x1cf)]();this[_0x59fa2f(0x20d)][_0x59fa2f(0x1d2)][_0x59fa2f(0x245)]=_0x3f91c7,this[_0x59fa2f(0x259)](_0x59fa2f(0x201),{'options':this[_0x59fa2f(0x20d)]});}[_0x515cfc(0x228)](_0x533967){const _0x349bde=_0x515cfc;for(const _0x163102 of this[_0x349bde(0x1ed)][_0x349bde(0x205)]())if(_0x163102[_0x349bde(0x1f2)]===_0x533967)return!0x0;for(const _0x464a11 of this[_0x349bde(0x211)][_0x349bde(0x205)]())if(_0x464a11[_0x349bde(0x1f2)]===_0x533967)return!0x0;return!0x1;}[_0x515cfc(0x1d8)](_0x11c14e){const _0x360743=_0x515cfc,_0x505a05=[];for(const _0x186494 of this[_0x360743(0x20d)][_0x360743(0x254)]){_0x186494[_0x360743(0x1ea)][_0x360743(0x1e5)](_0x49d7e5=>_0x49d7e5['id']===_0x11c14e)&&_0x505a05[_0x360743(0x1d9)](_0x186494['id']);}return 0x0===_0x505a05[_0x360743(0x1f4)]?null:_0x505a05;}[_0x515cfc(0x219)](_0x1ae4b8,_0x1582fe,_0x3e6f10){const _0x4b3f52=_0x515cfc,_0x2c8e98=this[_0x4b3f52(0x20d)][_0x4b3f52(0x254)][_0x4b3f52(0x1e5)](_0x47f4bb=>_0x47f4bb['id']===_0x1ae4b8);if(!_0x2c8e98)return;const _0x42f1cc=_0x2c8e98[_0x4b3f52(0x1ea)][_0x4b3f52(0x1e5)](_0x276737=>_0x276737['id']===_0x1582fe);_0x42f1cc&&(_0x42f1cc[_0x4b3f52(0x22f)]=_0x3e6f10,this[_0x4b3f52(0x259)](_0x4b3f52(0x1eb),{'sourceId':_0x1ae4b8,'resourceId':_0x1582fe,'isInContext':_0x3e6f10}));}[_0x515cfc(0x204)](_0x29fa82){const _0x317c8d=_0x515cfc;this[_0x317c8d(0x251)][_0x317c8d(0x1e0)](_0x29fa82,!0x0),this[_0x317c8d(0x251)][_0x317c8d(0x225)]&&this[_0x317c8d(0x259)](_0x317c8d(0x1f1),{'isUploadInProgress':!0x0});}[_0x515cfc(0x1db)](_0x491f8c){const _0x65f299=_0x515cfc;this[_0x65f299(0x251)][_0x65f299(0x246)](_0x491f8c),0x0===this[_0x65f299(0x251)][_0x65f299(0x225)]&&this[_0x65f299(0x259)](_0x65f299(0x1f1),{'isUploadInProgress':!0x1});}}