@ckeditor/ckeditor5-ai 47.6.0 → 47.6.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.js +1 -1
  180. package/src/aichat/model/aichatconversation.d.ts +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/ui/aichatballoonview.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  210. package/src/aichat/utils/eventnames.js +1 -1
  211. package/src/aichat/utils/promisequeue.js +1 -1
  212. package/src/aichathistory/aichathistory.js +1 -1
  213. package/src/aichathistory/aichathistorycontroller.js +1 -1
  214. package/src/aichathistory/aichathistoryui.js +1 -1
  215. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  216. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  217. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  218. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  221. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  223. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  224. package/src/aicore/aiconnector.js +1 -1
  225. package/src/aicore/aiediting.js +1 -1
  226. package/src/aicore/model/aicapabilities.js +1 -1
  227. package/src/aicore/model/aicontext.js +1 -1
  228. package/src/aicore/model/aiinteraction.js +1 -1
  229. package/src/aicore/model/aimodels.js +1 -1
  230. package/src/aicore/model/aireply.js +1 -1
  231. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  232. package/src/aicore/pipeline/airesponseparser.js +2 -2
  233. package/src/aicore/ui/aidisclaimerview.js +1 -1
  234. package/src/aicore/ui/aiskeleton.js +1 -1
  235. package/src/aicore/ui/aispinner.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  246. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  247. package/src/aicore/utils/common-translations.js +1 -1
  248. package/src/aicore/utils/createresizebutton.js +1 -1
  249. package/src/aicore/utils/documentposition.js +1 -1
  250. package/src/aicore/utils/documentrange.js +1 -1
  251. package/src/aicore/utils/eventnames.js +1 -1
  252. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  253. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  254. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  255. package/src/aicore/utils/htmlparser.js +1 -1
  256. package/src/aicore/utils/htmlstreamer.js +1 -1
  257. package/src/aicore/utils/scrollmanager.js +1 -1
  258. package/src/aieditorintegration/aieditorintegration.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  260. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  261. package/src/aiquickactions/aiquickactions.js +1 -1
  262. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  263. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  264. package/src/aiquickactions/aiquickactionsui.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  268. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  271. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  272. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  273. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  274. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  275. package/src/aireviewcore/aireviewcoreui.js +1 -1
  276. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  277. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  280. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  281. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  292. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  294. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  295. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  296. package/src/aireviewmode/aireviewmode.js +1 -1
  297. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  298. package/src/aireviewmode/aireviewmodeui.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  300. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  301. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  303. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  304. package/src/aitabs/aitabs.js +1 -1
  305. package/src/aitabs/aitabsmainview.js +1 -1
  306. package/src/aitabs/tabs/aitabsview.js +1 -1
  307. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  308. package/src/aitabs/tabs/tabpanelview.js +1 -1
  309. package/src/aitranslate/aitranslate.js +1 -1
  310. package/src/aitranslate/aitranslatecontroller.js +1 -1
  311. package/src/aitranslate/aitranslateui.js +1 -1
  312. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  313. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  314. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  315. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  316. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  317. package/src/errors.js +1 -1
  318. package/src/errorsmap.js +1 -1
  319. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43477b=_0x13ab;function _0x2d8c(){const _0x12e2b0=['hideError','_updateDialog','rootName','width','length','top','editing','showFakeVisualSelection','listenTo','5zfbAvw','max','_isUpdatingMarkers','1170666cAUkPc','getVisible','_hideFakeVisualSelection','bind','updatePosition','view','isEqual','beforeDialogClosed','_calculateOptimalTopPosition','root','model','once','context','_showDialog','AI_BALLOON_SELECTION_REMOVED_ERROR','get','ai-balloon-','_calculateDialogPosition','markers','98zRElpp','69646SGSwdP','label','ai-selection','change','_getSelectionElements','dialogClosed','38687ElkuZt','AIBalloon','selectionRemoved','delegate','46377wgExmT','locale','562568VKdRWS','left','_currentConfig','hide','round','index','Dialog','open','showBlockingError','hideFakeVisualSelection','_showFakeVisualSelection','iconView','stopListening','content','startsWith','pluginName','show','ranges','end','differ','headerView','fire','getBoundingRect','high','document','plugins','isPremiumPlugin','ck-ai-balloon\x20','window','bottom','getMarkersGroup','isOfficialPlugin','map','requires','3410MXAjWv','860664iLUmqt','filter','height','_cleanupFakeVisualSelectionMarkerRemovalListener','18vdsBJx','start','_setupFakeVisualSelectionMarkerRemovalListener','ai-balloon-selection','getIntersection','1481319sLemKE','close','isOpen','mainView','getChangedMarkers','$graveyard'];_0x2d8c=function(){return _0x12e2b0;};return _0x2d8c();}(function(_0x4d236d,_0x1d7bad){const _0x4e8457=_0x13ab,_0x53cdb3=_0x4d236d();while(!![]){try{const _0xe52898=parseInt(_0x4e8457(0x17a))/0x1+parseInt(_0x4e8457(0x179))/0x2*(-parseInt(_0x4e8457(0x184))/0x3)+parseInt(_0x4e8457(0x14b))/0x4*(-parseInt(_0x4e8457(0x163))/0x5)+parseInt(_0x4e8457(0x166))/0x6+parseInt(_0x4e8457(0x154))/0x7+parseInt(_0x4e8457(0x186))/0x8*(-parseInt(_0x4e8457(0x14f))/0x9)+-parseInt(_0x4e8457(0x14a))/0xa*(-parseInt(_0x4e8457(0x180))/0xb);if(_0xe52898===_0x1d7bad)break;else _0x53cdb3['push'](_0x53cdb3['shift']());}catch(_0x37376f){_0x53cdb3['push'](_0x53cdb3['shift']());}}}(_0x2d8c,0x894c4));import{ContextPlugin as _0x3edd65}from'ckeditor5/src/core.js';function _0x13ab(_0x28b6f9,_0x7b35a2){const _0x2d8caf=_0x2d8c();return _0x13ab=function(_0x13ab81,_0x23b3a1){_0x13ab81=_0x13ab81-0x12e;let _0x91866b=_0x2d8caf[_0x13ab81];return _0x91866b;},_0x13ab(_0x28b6f9,_0x7b35a2);}import{AI_VISUAL_SELECTION_MARKER_NAME as _0x4123c0,AIEditing as _0x412907}from'../aicore/aiediting.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x549f49}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x2a3c64,Rect as _0x31a817,scrollViewportToShowTarget as _0x2fb82d}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x5a4d12}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x531c62}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x37f9c9}from'./ui/aiballoonview.js';export const AI_BALLOON_EVENT_NAMES=[..._0x37f9c9,_0x43477b(0x17f),_0x43477b(0x182)];const m=0xa;export class AIBalloon extends _0x3edd65{static get[_0x43477b(0x149)](){return[_0x412907];}static get[_0x43477b(0x137)](){const _0x32e016=_0x43477b;return _0x32e016(0x181);}static get[_0x43477b(0x147)](){return!0x0;}static get[_0x43477b(0x142)](){return!0x0;}[_0x43477b(0x156)]=!0x1;[_0x43477b(0x188)];[_0x43477b(0x165)]=!0x1;[_0x43477b(0x12f)](_0x6ed7ea){const _0x19e1dd=_0x43477b,{id:_0x535f97}=this[_0x19e1dd(0x188)]??{};this[_0x19e1dd(0x188)]=_0x6ed7ea;const {id:_0x4a86bb}=this[_0x19e1dd(0x188)];this[_0x19e1dd(0x156)]&&_0x535f97===_0x4a86bb?this[_0x19e1dd(0x15b)]():this[_0x19e1dd(0x173)]();}[_0x43477b(0x155)](){const _0x15db94=_0x43477b,_0x2efaae=_0x5a4d12(this[_0x15db94(0x172)])[_0x15db94(0x141)][_0x15db94(0x175)](_0x15db94(0x12e));_0x2efaae[_0x15db94(0x156)]&&this[_0x15db94(0x188)]&&_0x2efaae['id']===this[_0x15db94(0x188)]['id']&&_0x2efaae[_0x15db94(0x189)]();}[_0x43477b(0x15b)](){const _0x320ee8=_0x43477b,_0x4d0b1e=_0x5a4d12(this[_0x320ee8(0x172)])[_0x320ee8(0x141)][_0x320ee8(0x175)](_0x320ee8(0x12e)),{icon:_0x359500,title:_0x11d09d}=this[_0x320ee8(0x188)];_0x4d0b1e[_0x320ee8(0x16b)]?.[_0x320ee8(0x13c)]&&(_0x4d0b1e[_0x320ee8(0x16b)][_0x320ee8(0x13c)][_0x320ee8(0x17b)]=_0x11d09d,_0x4d0b1e[_0x320ee8(0x16b)][_0x320ee8(0x13c)][_0x320ee8(0x133)]&&_0x359500&&(_0x4d0b1e[_0x320ee8(0x16b)][_0x320ee8(0x13c)][_0x320ee8(0x133)][_0x320ee8(0x135)]=_0x359500)),this[_0x320ee8(0x165)]=!0x0,this[_0x320ee8(0x132)](),this[_0x320ee8(0x165)]=!0x1,_0x4d0b1e[_0x320ee8(0x16b)]?.[_0x320ee8(0x16a)]();}[_0x43477b(0x132)](){const _0x31e87a=_0x43477b;this[_0x31e87a(0x172)][_0x31e87a(0x141)][_0x31e87a(0x175)](_0x412907)[_0x31e87a(0x161)](this[_0x31e87a(0x188)][_0x31e87a(0x139)],_0x31e87a(0x176)+this[_0x31e87a(0x188)][_0x31e87a(0x18b)],!0x0,!0x0);}[_0x43477b(0x168)](_0xb0f10f){const _0x2df80c=_0x43477b;this[_0x2df80c(0x172)][_0x2df80c(0x141)][_0x2df80c(0x175)](_0x412907)[_0x2df80c(0x131)](_0x2df80c(0x176)+_0xb0f10f);}[_0x43477b(0x173)](){const _0x1cda16=_0x43477b,_0xf9b49e=_0x5a4d12(this[_0x1cda16(0x172)])[_0x1cda16(0x141)][_0x1cda16(0x175)](_0x1cda16(0x12e)),{id:_0x1c99e2,title:_0x802733,icon:_0x230b6b,class:_0x23e3ac,mainView:_0x4c1d77}=this[_0x1cda16(0x188)];_0x4c1d77[_0x1cda16(0x183)](..._0x37f9c9)['to'](this),_0xf9b49e[_0x1cda16(0x138)]({'title':_0x802733,'icon':_0x230b6b,'hasCloseButton':!0x0,'id':_0x1c99e2,'position':this[_0x1cda16(0x177)][_0x1cda16(0x169)](this),'className':_0x1cda16(0x143)+(_0x23e3ac||''),'content':_0x4c1d77,'onShow':_0x3e14b0=>{const _0x170b4=_0x1cda16;this[_0x170b4(0x132)](),this[_0x170b4(0x151)]();const _0x18c6a1=this[_0x170b4(0x17e)]();_0x18c6a1&&_0x18c6a1[0x0]&&_0x2fb82d({'target':_0x18c6a1[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x170b4(0x156)]=!0x0,_0x3e14b0[_0x170b4(0x171)](_0x170b4(0x189),()=>{const _0x40ac52=_0x170b4;this[_0x40ac52(0x13d)](_0x40ac52(0x16d),{'id':_0x1c99e2});},{'priority':_0x170b4(0x13f)});},'onHide':()=>{const _0x8a430f=_0x1cda16;this[_0x8a430f(0x168)](this[_0x8a430f(0x188)][_0x8a430f(0x18b)]),this[_0x8a430f(0x14e)](),this[_0x8a430f(0x13d)](_0x8a430f(0x17f),{'id':_0x1c99e2}),this[_0x8a430f(0x156)]=!0x1;}});}[_0x43477b(0x177)](_0x3d7cf8,_0x9fe1a7){const _0x29c376=_0x43477b;if(!_0x9fe1a7)return null;const _0x2ac856=this[_0x29c376(0x17e)]();if(!_0x2ac856||0x0===_0x2ac856[_0x29c376(0x15e)])return{'left':Math[_0x29c376(0x18a)](_0x9fe1a7[_0x29c376(0x187)]+_0x9fe1a7[_0x29c376(0x15d)]/0x2-_0x3d7cf8[_0x29c376(0x15d)]/0x2),'top':Math[_0x29c376(0x18a)](_0x9fe1a7[_0x29c376(0x15f)]+_0x9fe1a7[_0x29c376(0x14d)]/0x2-_0x3d7cf8[_0x29c376(0x14d)]/0x2)};const _0x25f02a=Math[_0x29c376(0x18a)](_0x9fe1a7[_0x29c376(0x187)]+_0x9fe1a7[_0x29c376(0x15d)]/0x2-_0x3d7cf8[_0x29c376(0x15d)]/0x2),_0x241ecb=_0x2ac856[_0x29c376(0x148)](_0x8289e5=>new _0x31a817(_0x8289e5)),_0x3cfaac=_0x3d7cf8[_0x29c376(0x14d)];return{'left':_0x25f02a,'top':this[_0x29c376(0x16e)](_0x241ecb,_0x3cfaac,_0x9fe1a7)};}[_0x43477b(0x16e)](_0x1a52b3,_0x5164a3,_0x2609d5){const _0x16772e=_0x43477b,_0x3ad117=new _0x31a817(_0x2a3c64[_0x16772e(0x144)]),_0x3fc967=_0x1a52b3[_0x16772e(0x148)](_0x33ae2c=>_0x33ae2c[_0x16772e(0x167)]())[_0x16772e(0x14c)](_0x5e750b=>_0x5e750b),_0x6fd32f=_0x31a817[_0x16772e(0x13e)](_0x3fc967);if(!_0x6fd32f)return Math[_0x16772e(0x18a)](_0x2609d5[_0x16772e(0x15f)]+_0x2609d5[_0x16772e(0x14d)]/0x2);const _0x5be539=_0x3ad117[_0x16772e(0x153)](_0x6fd32f);if(!_0x5be539)return Math[_0x16772e(0x18a)](_0x2609d5[_0x16772e(0x15f)]+_0x2609d5[_0x16772e(0x14d)]/0x2);const _0x60d572=_0x2609d5[_0x16772e(0x167)](),_0x4331ad=_0x60d572&&_0x6fd32f[_0x16772e(0x14d)]>_0x60d572[_0x16772e(0x14d)],_0x2e61e5=_0x5be539[_0x16772e(0x15f)],_0x11db62=_0x5be539[_0x16772e(0x145)];if(_0x4331ad){const _0x1fb107=(_0x60d572||_0x3ad117)[_0x16772e(0x14d)]/0x2-_0x5164a3/0x2,_0x2f5021=_0x2e61e5-m-_0x2609d5[_0x16772e(0x15f)],_0x40d619=_0x2609d5[_0x16772e(0x145)]-_0x11db62-m;return _0x2f5021>=_0x5164a3?Math[_0x16772e(0x164)](m,_0x2e61e5-_0x5164a3-m):_0x40d619>=_0x5164a3?_0x11db62+m:Math[_0x16772e(0x164)](m,_0x1fb107);}const _0x170eee=_0x2e61e5-_0x5164a3,_0x4963a3=_0x2609d5[_0x16772e(0x145)]-_0x11db62-m,_0x5a7e64=_0x2e61e5-m-_0x2609d5[_0x16772e(0x15f)];let _0x867595;if(_0x4963a3>=_0x5164a3)_0x867595=_0x11db62+m;else{if(_0x5a7e64>=_0x5164a3)_0x867595=_0x170eee-m;else _0x867595=_0x2e61e5+_0x6fd32f[_0x16772e(0x14d)]/0x2-_0x5164a3/0x2;}return _0x867595;}[_0x43477b(0x151)](){const _0x2bd829=_0x43477b,_0x1cffeb=_0x5a4d12(this[_0x2bd829(0x172)]);this[_0x2bd829(0x162)](_0x1cffeb[_0x2bd829(0x170)][_0x2bd829(0x140)],_0x2bd829(0x17d),()=>{const _0x46ad98=_0x2bd829;if(!this[_0x46ad98(0x165)]){for(const {name:_0x55243f,data:{newRange:_0x89115b}}of _0x1cffeb[_0x46ad98(0x170)][_0x46ad98(0x140)][_0x46ad98(0x13b)][_0x46ad98(0x158)]())if(_0x55243f[_0x46ad98(0x136)](_0x4123c0+':')&&(_0x89115b&&(_0x89115b[_0x46ad98(0x150)][_0x46ad98(0x16c)](_0x89115b[_0x46ad98(0x13a)])||_0x46ad98(0x159)==_0x89115b[_0x46ad98(0x16f)][_0x46ad98(0x15c)])||null==_0x89115b)){const _0x182df8=_0x531c62(this[_0x46ad98(0x172)][_0x46ad98(0x185)],_0x46ad98(0x174));this[_0x46ad98(0x188)][_0x46ad98(0x157)][_0x46ad98(0x130)](_0x182df8),this[_0x46ad98(0x13d)](_0x46ad98(0x182));}}});}[_0x43477b(0x14e)](){const _0xec4ff4=_0x43477b,_0x6d0ed0=_0x5a4d12(this[_0xec4ff4(0x172)]);this[_0xec4ff4(0x188)][_0xec4ff4(0x157)][_0xec4ff4(0x15a)](),this[_0xec4ff4(0x134)](_0x6d0ed0[_0xec4ff4(0x170)][_0xec4ff4(0x140)]);}[_0x43477b(0x17e)](){const _0x3e7ae0=_0x43477b,_0x2bc1bd=_0x5a4d12(this[_0x3e7ae0(0x172)]);return _0x549f49(_0x2bc1bd[_0x3e7ae0(0x160)],[..._0x2bc1bd[_0x3e7ae0(0x170)][_0x3e7ae0(0x178)][_0x3e7ae0(0x146)](_0x3e7ae0(0x17c)),..._0x2bc1bd[_0x3e7ae0(0x170)][_0x3e7ae0(0x178)][_0x3e7ae0(0x146)](_0x3e7ae0(0x152))]);}}
23
+ const _0x47255f=_0x3ee4;(function(_0x58e69c,_0x36c750){const _0x2d7f52=_0x3ee4,_0x4d9d84=_0x58e69c();while(!![]){try{const _0x223acf=parseInt(_0x2d7f52(0x1a3))/0x1*(parseInt(_0x2d7f52(0x170))/0x2)+-parseInt(_0x2d7f52(0x167))/0x3*(-parseInt(_0x2d7f52(0x177))/0x4)+parseInt(_0x2d7f52(0x187))/0x5*(parseInt(_0x2d7f52(0x17f))/0x6)+parseInt(_0x2d7f52(0x163))/0x7+parseInt(_0x2d7f52(0x199))/0x8*(parseInt(_0x2d7f52(0x18b))/0x9)+parseInt(_0x2d7f52(0x190))/0xa+parseInt(_0x2d7f52(0x162))/0xb*(-parseInt(_0x2d7f52(0x171))/0xc);if(_0x223acf===_0x36c750)break;else _0x4d9d84['push'](_0x4d9d84['shift']());}catch(_0x5dacf3){_0x4d9d84['push'](_0x4d9d84['shift']());}}}(_0x43bf,0x9b703));import{ContextPlugin as _0x5d23da}from'ckeditor5/src/core.js';function _0x43bf(){const _0x520f74=['5245803MwVwWB','markers','length','getIntersection','_showDialog','1974050pVOmMj','$graveyard','window','root','hideError','ranges','getMarkersGroup','AI_BALLOON_SELECTION_REMOVED_ERROR','requires','16rkjjms','context','listenTo','ai-selection','getChangedMarkers','iconView','showFakeVisualSelection','Dialog','_calculateDialogPosition','ai-balloon-','16843MvDWPN','map','width','selectionRemoved','_setupFakeVisualSelectionMarkerRemovalListener','beforeDialogClosed','differ','left','plugins','mainView','content','bind','max','_getSelectionElements','dialogClosed','_hideFakeVisualSelection','round','_showFakeVisualSelection','end','headerView','view','_currentConfig','fire','updatePosition','getVisible','_calculateOptimalTopPosition','ai-balloon-selection','ck-ai-balloon\x20','model','locale','11ykSQwx','8742041zvkazo','stopListening','height','startsWith','15jzMRQc','delegate','start','bottom','index','isPremiumPlugin','get','top','showBlockingError','134fDaQOS','51449784IAzIjS','pluginName','show','editing','hide','_isUpdatingMarkers','602488IDNmoG','isEqual','AIBalloon','hideFakeVisualSelection','getBoundingRect','_cleanupFakeVisualSelectionMarkerRemovalListener','document','high','6RLErmY','isOpen','once','filter','label','close','rootName','open','2152820MmboCQ','isOfficialPlugin','change','_updateDialog'];_0x43bf=function(){return _0x520f74;};return _0x43bf();}import{AI_VISUAL_SELECTION_MARKER_NAME as _0x3eae2c,AIEditing as _0x43c9b2}from'../aicore/aiediting.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x8a94f}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x4089bd,Rect as _0x2428cb,scrollViewportToShowTarget as _0x424689}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x5a2d6b}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x21a35f}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x31a2e5}from'./ui/aiballoonview.js';function _0x3ee4(_0x479c0b,_0x58599f){const _0x43bf2c=_0x43bf();return _0x3ee4=function(_0x3ee4dc,_0x495a9d){_0x3ee4dc=_0x3ee4dc-0x14f;let _0x1fd59c=_0x43bf2c[_0x3ee4dc];return _0x1fd59c;},_0x3ee4(_0x479c0b,_0x58599f);}export const AI_BALLOON_EVENT_NAMES=[..._0x31a2e5,_0x47255f(0x152),_0x47255f(0x1a6)];const $=0xa;export class AIBalloon extends _0x5d23da{static get[_0x47255f(0x198)](){return[_0x43c9b2];}static get[_0x47255f(0x172)](){const _0x58fcba=_0x47255f;return _0x58fcba(0x179);}static get[_0x47255f(0x188)](){return!0x0;}static get[_0x47255f(0x16c)](){return!0x0;}[_0x47255f(0x180)]=!0x1;[_0x47255f(0x159)];[_0x47255f(0x176)]=!0x1;[_0x47255f(0x186)](_0x3ab578){const _0x41cbe3=_0x47255f,{id:_0x4e1ded}=this[_0x41cbe3(0x159)]??{};this[_0x41cbe3(0x159)]=_0x3ab578;const {id:_0x212e36}=this[_0x41cbe3(0x159)];this[_0x41cbe3(0x180)]&&_0x4e1ded===_0x212e36?this[_0x41cbe3(0x18a)]():this[_0x41cbe3(0x18f)]();}[_0x47255f(0x184)](){const _0x2b1726=_0x47255f,_0x209552=_0x5a2d6b(this[_0x2b1726(0x19a)])[_0x2b1726(0x1ab)][_0x2b1726(0x16d)](_0x2b1726(0x1a0));_0x209552[_0x2b1726(0x180)]&&this[_0x2b1726(0x159)]&&_0x209552['id']===this[_0x2b1726(0x159)]['id']&&_0x209552[_0x2b1726(0x175)]();}[_0x47255f(0x18a)](){const _0x2f2ff5=_0x47255f,_0x247cf5=_0x5a2d6b(this[_0x2f2ff5(0x19a)])[_0x2f2ff5(0x1ab)][_0x2f2ff5(0x16d)](_0x2f2ff5(0x1a0)),{icon:_0x233f02,title:_0x1bdedf}=this[_0x2f2ff5(0x159)];_0x247cf5[_0x2f2ff5(0x158)]?.[_0x2f2ff5(0x157)]&&(_0x247cf5[_0x2f2ff5(0x158)][_0x2f2ff5(0x157)][_0x2f2ff5(0x183)]=_0x1bdedf,_0x247cf5[_0x2f2ff5(0x158)][_0x2f2ff5(0x157)][_0x2f2ff5(0x19e)]&&_0x233f02&&(_0x247cf5[_0x2f2ff5(0x158)][_0x2f2ff5(0x157)][_0x2f2ff5(0x19e)][_0x2f2ff5(0x1ad)]=_0x233f02)),this[_0x2f2ff5(0x176)]=!0x0,this[_0x2f2ff5(0x155)](),this[_0x2f2ff5(0x176)]=!0x1,_0x247cf5[_0x2f2ff5(0x158)]?.[_0x2f2ff5(0x15b)]();}[_0x47255f(0x155)](){const _0x389700=_0x47255f;this[_0x389700(0x19a)][_0x389700(0x1ab)][_0x389700(0x16d)](_0x43c9b2)[_0x389700(0x19f)](this[_0x389700(0x159)][_0x389700(0x195)],_0x389700(0x1a2)+this[_0x389700(0x159)][_0x389700(0x16b)],!0x0,!0x0);}[_0x47255f(0x153)](_0x2a3b09){const _0x4cfa23=_0x47255f;this[_0x4cfa23(0x19a)][_0x4cfa23(0x1ab)][_0x4cfa23(0x16d)](_0x43c9b2)[_0x4cfa23(0x17a)](_0x4cfa23(0x1a2)+_0x2a3b09);}[_0x47255f(0x18f)](){const _0x115732=_0x47255f,_0x247250=_0x5a2d6b(this[_0x115732(0x19a)])[_0x115732(0x1ab)][_0x115732(0x16d)](_0x115732(0x1a0)),{id:_0x4b16bf,title:_0x247ebe,icon:_0x3bbcee,class:_0x12fb60,mainView:_0x3f08f4}=this[_0x115732(0x159)];_0x3f08f4[_0x115732(0x168)](..._0x31a2e5)['to'](this),_0x247250[_0x115732(0x173)]({'title':_0x247ebe,'icon':_0x3bbcee,'hasCloseButton':!0x0,'id':_0x4b16bf,'position':this[_0x115732(0x1a1)][_0x115732(0x14f)](this),'className':_0x115732(0x15f)+(_0x12fb60||''),'content':_0x3f08f4,'onShow':_0x3ae093=>{const _0x3d4813=_0x115732;this[_0x3d4813(0x155)](),this[_0x3d4813(0x1a7)]();const _0x20f0e2=this[_0x3d4813(0x151)]();_0x20f0e2&&_0x20f0e2[0x0]&&_0x424689({'target':_0x20f0e2[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x3d4813(0x180)]=!0x0,_0x3ae093[_0x3d4813(0x181)](_0x3d4813(0x175),()=>{const _0x4a180d=_0x3d4813;this[_0x4a180d(0x15a)](_0x4a180d(0x1a8),{'id':_0x4b16bf});},{'priority':_0x3d4813(0x17e)});},'onHide':()=>{const _0x349a81=_0x115732;this[_0x349a81(0x153)](this[_0x349a81(0x159)][_0x349a81(0x16b)]),this[_0x349a81(0x17c)](),this[_0x349a81(0x15a)](_0x349a81(0x152),{'id':_0x4b16bf}),this[_0x349a81(0x180)]=!0x1;}});}[_0x47255f(0x1a1)](_0x65dae0,_0x2b633e){const _0x15602d=_0x47255f;if(!_0x2b633e)return null;const _0x4a6ef5=this[_0x15602d(0x151)]();if(!_0x4a6ef5||0x0===_0x4a6ef5[_0x15602d(0x18d)])return{'left':Math[_0x15602d(0x154)](_0x2b633e[_0x15602d(0x1aa)]+_0x2b633e[_0x15602d(0x1a5)]/0x2-_0x65dae0[_0x15602d(0x1a5)]/0x2),'top':Math[_0x15602d(0x154)](_0x2b633e[_0x15602d(0x16e)]+_0x2b633e[_0x15602d(0x165)]/0x2-_0x65dae0[_0x15602d(0x165)]/0x2)};const _0x3c0839=Math[_0x15602d(0x154)](_0x2b633e[_0x15602d(0x1aa)]+_0x2b633e[_0x15602d(0x1a5)]/0x2-_0x65dae0[_0x15602d(0x1a5)]/0x2),_0x14c6ba=_0x4a6ef5[_0x15602d(0x1a4)](_0x13dfb0=>new _0x2428cb(_0x13dfb0)),_0x46bc4a=_0x65dae0[_0x15602d(0x165)];return{'left':_0x3c0839,'top':this[_0x15602d(0x15d)](_0x14c6ba,_0x46bc4a,_0x2b633e)};}[_0x47255f(0x15d)](_0x2481b1,_0x348f19,_0x1144e6){const _0x39f662=_0x47255f,_0x5c2d40=new _0x2428cb(_0x4089bd[_0x39f662(0x192)]),_0x4d818c=_0x2481b1[_0x39f662(0x1a4)](_0x720706=>_0x720706[_0x39f662(0x15c)]())[_0x39f662(0x182)](_0x2524cd=>_0x2524cd),_0x2cdd51=_0x2428cb[_0x39f662(0x17b)](_0x4d818c);if(!_0x2cdd51)return Math[_0x39f662(0x154)](_0x1144e6[_0x39f662(0x16e)]+_0x1144e6[_0x39f662(0x165)]/0x2);const _0x5aa691=_0x5c2d40[_0x39f662(0x18e)](_0x2cdd51);if(!_0x5aa691)return Math[_0x39f662(0x154)](_0x1144e6[_0x39f662(0x16e)]+_0x1144e6[_0x39f662(0x165)]/0x2);const _0x3038b3=_0x1144e6[_0x39f662(0x15c)](),_0x465169=_0x3038b3&&_0x2cdd51[_0x39f662(0x165)]>_0x3038b3[_0x39f662(0x165)],_0x321045=_0x5aa691[_0x39f662(0x16e)],_0x2740b7=_0x5aa691[_0x39f662(0x16a)];if(_0x465169){const _0x3f8912=(_0x3038b3||_0x5c2d40)[_0x39f662(0x165)]/0x2-_0x348f19/0x2,_0x394716=_0x321045-$-_0x1144e6[_0x39f662(0x16e)],_0x14ae26=_0x1144e6[_0x39f662(0x16a)]-_0x2740b7-$;return _0x394716>=_0x348f19?Math[_0x39f662(0x150)]($,_0x321045-_0x348f19-$):_0x14ae26>=_0x348f19?_0x2740b7+$:Math[_0x39f662(0x150)]($,_0x3f8912);}const _0x5eed6f=_0x321045-_0x348f19,_0x5ee7fc=_0x1144e6[_0x39f662(0x16a)]-_0x2740b7-$,_0xf9424a=_0x321045-$-_0x1144e6[_0x39f662(0x16e)];let _0x1dc7d4;if(_0x5ee7fc>=_0x348f19)_0x1dc7d4=_0x2740b7+$;else{if(_0xf9424a>=_0x348f19)_0x1dc7d4=_0x5eed6f-$;else _0x1dc7d4=_0x321045+_0x2cdd51[_0x39f662(0x165)]/0x2-_0x348f19/0x2;}return _0x1dc7d4;}[_0x47255f(0x1a7)](){const _0x4f3e9b=_0x47255f,_0x3ac339=_0x5a2d6b(this[_0x4f3e9b(0x19a)]);this[_0x4f3e9b(0x19b)](_0x3ac339[_0x4f3e9b(0x160)][_0x4f3e9b(0x17d)],_0x4f3e9b(0x189),()=>{const _0x49968b=_0x4f3e9b;if(!this[_0x49968b(0x176)]){for(const {name:_0x19586f,data:{newRange:_0x7d2d90}}of _0x3ac339[_0x49968b(0x160)][_0x49968b(0x17d)][_0x49968b(0x1a9)][_0x49968b(0x19d)]())if(_0x19586f[_0x49968b(0x166)](_0x3eae2c+':')&&(_0x7d2d90&&(_0x7d2d90[_0x49968b(0x169)][_0x49968b(0x178)](_0x7d2d90[_0x49968b(0x156)])||_0x49968b(0x191)==_0x7d2d90[_0x49968b(0x193)][_0x49968b(0x185)])||null==_0x7d2d90)){const _0x3277a4=_0x21a35f(this[_0x49968b(0x19a)][_0x49968b(0x161)],_0x49968b(0x197));this[_0x49968b(0x159)][_0x49968b(0x1ac)][_0x49968b(0x16f)](_0x3277a4),this[_0x49968b(0x15a)](_0x49968b(0x1a6));}}});}[_0x47255f(0x17c)](){const _0x4d6206=_0x47255f,_0x51cb1e=_0x5a2d6b(this[_0x4d6206(0x19a)]);this[_0x4d6206(0x159)][_0x4d6206(0x1ac)][_0x4d6206(0x194)](),this[_0x4d6206(0x164)](_0x51cb1e[_0x4d6206(0x160)][_0x4d6206(0x17d)]);}[_0x47255f(0x151)](){const _0x318964=_0x47255f,_0x6cb229=_0x5a2d6b(this[_0x318964(0x19a)]);return _0x8a94f(_0x6cb229[_0x318964(0x174)],[..._0x6cb229[_0x318964(0x160)][_0x318964(0x18c)][_0x318964(0x196)](_0x318964(0x19c)),..._0x6cb229[_0x318964(0x160)][_0x318964(0x18c)][_0x318964(0x196)](_0x318964(0x15e))]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f6611=_0x3dd2;(function(_0x26560c,_0x3e1db9){const _0x22c193=_0x3dd2,_0x5aa37f=_0x26560c();while(!![]){try{const _0x10dfc=parseInt(_0x22c193(0x15b))/0x1*(parseInt(_0x22c193(0x14c))/0x2)+parseInt(_0x22c193(0x158))/0x3+-parseInt(_0x22c193(0x149))/0x4*(-parseInt(_0x22c193(0x154))/0x5)+-parseInt(_0x22c193(0x151))/0x6*(parseInt(_0x22c193(0x15c))/0x7)+-parseInt(_0x22c193(0x150))/0x8+parseInt(_0x22c193(0x14f))/0x9+-parseInt(_0x22c193(0x14e))/0xa;if(_0x10dfc===_0x3e1db9)break;else _0x5aa37f['push'](_0x5aa37f['shift']());}catch(_0x1d1a4f){_0x5aa37f['push'](_0x5aa37f['shift']());}}}(_0x3ad4,0x45608));function _0x3dd2(_0x58f1dd,_0x18fefd){const _0x3ad492=_0x3ad4();return _0x3dd2=function(_0x3dd2d3,_0x32cc44){_0x3dd2d3=_0x3dd2d3-0x147;let _0x47475b=_0x3ad492[_0x3dd2d3];return _0x47475b;},_0x3dd2(_0x58f1dd,_0x18fefd);}import{View as _0x17bb3f}from'ckeditor5/src/ui.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x3f6611(0x147),_0x3f6611(0x14a),_0x3f6611(0x161),_0x3f6611(0x162)];export class AIBalloonView extends _0x17bb3f{[_0x3f6611(0x14d)];constructor(_0x574ebd){const _0x4a7aba=_0x3f6611;super(_0x574ebd),this[_0x4a7aba(0x153)](_0x4a7aba(0x164),''),this[_0x4a7aba(0x153)](_0x4a7aba(0x15e),!0x1);}[_0x3f6611(0x165)](_0x50455d){const _0x1f893e=_0x3f6611;this[_0x1f893e(0x148)](_0x50455d);}[_0x3f6611(0x148)](_0x1b63c0){const _0x161e62=_0x3f6611;this[_0x161e62(0x14d)]||(this[_0x161e62(0x14d)]=this[_0x161e62(0x152)]()),this[_0x161e62(0x164)]=_0x1b63c0,this[_0x161e62(0x15e)]=!0x0;}[_0x3f6611(0x15a)](){const _0x7820b8=_0x3f6611;this[_0x7820b8(0x15e)]=!0x1;}[_0x3f6611(0x152)](){const _0x5b6531=_0x3f6611,_0x3d1298=new _0x17bb3f(this[_0x5b6531(0x15f)]),_0x48bd4f=new _0x17bb3f(this[_0x5b6531(0x15f)]);return _0x48bd4f[_0x5b6531(0x157)]({'tag':_0x5b6531(0x155),'attributes':{'class':['ck',_0x5b6531(0x15d)]},'children':[{'text':this[_0x5b6531(0x159)]['to'](_0x5b6531(0x164))}]}),_0x3d1298[_0x5b6531(0x157)]({'tag':_0x5b6531(0x163),'attributes':{'class':['ck',_0x5b6531(0x14b),_0x5b6531(0x156),this[_0x5b6531(0x159)]['if'](_0x5b6531(0x15e),_0x5b6531(0x160),_0x55c4bf=>!_0x55c4bf)]},'children':[_0x48bd4f]}),_0x3d1298;}}function _0x3ad4(){const _0x36e213=['ck-ai-suggestion__error-text','_isErrorVisible','locale','ck-hidden','showNext','showPrevious','div','_errorMessage','showBlockingError','applySuggestion','showError','209656WRDWPV','insertSuggestion','ck-ai-suggestion__error','70270jJdqaB','_errorView','3575690zzCCdc','4089501IVRJOq','1808352oHpaIn','3372jHjESy','_createErrorView','set','30BNKHIb','span','ck-ai-balloon-error','setTemplate','1546803crmxVy','bindTemplate','hideError','3MhSdfZ','6503YLaaSO'];_0x3ad4=function(){return _0x36e213;};return _0x3ad4();}
23
+ const _0x57f39e=_0x3e71;(function(_0x17fb6b,_0x21db0b){const _0x3a42ce=_0x3e71,_0x4bec57=_0x17fb6b();while(!![]){try{const _0x177b26=parseInt(_0x3a42ce(0x14e))/0x1*(parseInt(_0x3a42ce(0x150))/0x2)+parseInt(_0x3a42ce(0x147))/0x3+parseInt(_0x3a42ce(0x13f))/0x4+-parseInt(_0x3a42ce(0x13e))/0x5*(parseInt(_0x3a42ce(0x14c))/0x6)+-parseInt(_0x3a42ce(0x151))/0x7+parseInt(_0x3a42ce(0x144))/0x8*(-parseInt(_0x3a42ce(0x14a))/0x9)+-parseInt(_0x3a42ce(0x142))/0xa*(-parseInt(_0x3a42ce(0x135))/0xb);if(_0x177b26===_0x21db0b)break;else _0x4bec57['push'](_0x4bec57['shift']());}catch(_0x1d4637){_0x4bec57['push'](_0x4bec57['shift']());}}}(_0x4a6f,0x2956f));import{View as _0x28d7b9}from'ckeditor5/src/ui.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x57f39e(0x133),_0x57f39e(0x148),_0x57f39e(0x143),_0x57f39e(0x134)];function _0x4a6f(){const _0x23aff=['ck-ai-suggestion__error-text','295170IoKJKp','showBlockingError','43669NwzmMP','_createErrorView','2MyxKBU','1592045IiJjAQ','ck-hidden','applySuggestion','showPrevious','594ZvXYDU','set','ck-ai-suggestion__error','locale','span','ck-ai-balloon-error','_isErrorVisible','div','_errorMessage','5rEGnQC','967608iCfyGZ','_errorView','hideError','22070YPCYcn','showNext','4352fHviuu','setTemplate','showError','595272fRlqQW','insertSuggestion','bindTemplate','2601ooiBKD'];_0x4a6f=function(){return _0x23aff;};return _0x4a6f();}function _0x3e71(_0x1a307a,_0xd2ce77){const _0x4a6f31=_0x4a6f();return _0x3e71=function(_0x3e714c,_0xf52cdc){_0x3e714c=_0x3e714c-0x132;let _0x5f27a5=_0x4a6f31[_0x3e714c];return _0x5f27a5;},_0x3e71(_0x1a307a,_0xd2ce77);}export class AIBalloonView extends _0x28d7b9{[_0x57f39e(0x140)];constructor(_0x509b65){const _0x19a920=_0x57f39e;super(_0x509b65),this[_0x19a920(0x136)](_0x19a920(0x13d),''),this[_0x19a920(0x136)](_0x19a920(0x13b),!0x1);}[_0x57f39e(0x14d)](_0x8e3cff){const _0x52b203=_0x57f39e;this[_0x52b203(0x146)](_0x8e3cff);}[_0x57f39e(0x146)](_0x47d0ef){const _0x35e814=_0x57f39e;this[_0x35e814(0x140)]||(this[_0x35e814(0x140)]=this[_0x35e814(0x14f)]()),this[_0x35e814(0x13d)]=_0x47d0ef,this[_0x35e814(0x13b)]=!0x0;}[_0x57f39e(0x141)](){const _0x2e1098=_0x57f39e;this[_0x2e1098(0x13b)]=!0x1;}[_0x57f39e(0x14f)](){const _0x1241ae=_0x57f39e,_0xfca34b=new _0x28d7b9(this[_0x1241ae(0x138)]),_0x463ac4=new _0x28d7b9(this[_0x1241ae(0x138)]);return _0x463ac4[_0x1241ae(0x145)]({'tag':_0x1241ae(0x139),'attributes':{'class':['ck',_0x1241ae(0x14b)]},'children':[{'text':this[_0x1241ae(0x149)]['to'](_0x1241ae(0x13d))}]}),_0xfca34b[_0x1241ae(0x145)]({'tag':_0x1241ae(0x13c),'attributes':{'class':['ck',_0x1241ae(0x137),_0x1241ae(0x13a),this[_0x1241ae(0x149)]['if'](_0x1241ae(0x13b),_0x1241ae(0x132),_0x5a480e=>!_0x5a480e)]},'children':[_0x463ac4]}),_0xfca34b;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x357c41=_0x5ebf;function _0x3efa(){var _0x3df6c2=['isPremiumPlugin','requires','context','2019150bHQySM','new','addSelectionToChatContext','AIChat','registerToolDataCallback','4342534EuxxLW','plugins','39222ylOAvW','89854RGyvmh','ai.chat.initialConversation','1440hLqDfA','2879760IdWZuv','4VUZAwp','sendMessage','startConversation','config','define','_registerToolDataCallback','25443QQNDeo','ai.chat.context','get','removeSelectionFromChatContext','isOfficialPlugin','pluginName','focusPromptInput','6VowhHI','2674674qViVlj'];_0x3efa=function(){return _0x3df6c2;};return _0x3efa();}(function(_0x5ae27d,_0x1c0f6f){var _0x5ce575=_0x5ebf,_0x277a32=_0x5ae27d();while(!![]){try{var _0x476b73=parseInt(_0x5ce575(0x1ef))/0x1+parseInt(_0x5ce575(0x1f0))/0x2*(parseInt(_0x5ce575(0x201))/0x3)+-parseInt(_0x5ce575(0x1f4))/0x4*(parseInt(_0x5ce575(0x1e8))/0x5)+parseInt(_0x5ce575(0x202))/0x6+-parseInt(_0x5ce575(0x1ed))/0x7+parseInt(_0x5ce575(0x1f3))/0x8+-parseInt(_0x5ce575(0x1fa))/0x9*(-parseInt(_0x5ce575(0x1f2))/0xa);if(_0x476b73===_0x1c0f6f)break;else _0x277a32['push'](_0x277a32['shift']());}catch(_0x32adac){_0x277a32['push'](_0x277a32['shift']());}}}(_0x3efa,0x4d919));import{ContextPlugin as _0xdddbf7}from'ckeditor5/src/core.js';import{AIChatController as _0x5af89d}from'./aichatcontroller.js';import{AIEditing as _0x4ceda7}from'../aicore/aiediting.js';import{AIChatUI as _0x1bb912}from'./aichatui.js';import{AIChatHistory as _0x183277}from'../aichathistory/aichathistory.js';function _0x5ebf(_0x586e4d,_0x256586){var _0x3efa75=_0x3efa();return _0x5ebf=function(_0x5ebfaa,_0x551bfd){_0x5ebfaa=_0x5ebfaa-0x1e8;var _0x1676d5=_0x3efa75[_0x5ebfaa];return _0x1676d5;},_0x5ebf(_0x586e4d,_0x256586);}export class AIChat extends _0xdddbf7{static get[_0x357c41(0x204)](){return[_0x5af89d,_0x4ceda7,_0x1bb912,_0x183277];}static get[_0x357c41(0x1ff)](){var _0x15d4ad=_0x357c41;return _0x15d4ad(0x1eb);}static get[_0x357c41(0x1fe)](){return!0x0;}static get[_0x357c41(0x203)](){return!0x0;}constructor(_0x2b7bda){var _0x2dbda4=_0x357c41;super(_0x2b7bda),this[_0x2dbda4(0x205)][_0x2dbda4(0x1f7)][_0x2dbda4(0x1f8)](_0x2dbda4(0x1fb),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x2dbda4(0x205)][_0x2dbda4(0x1f7)][_0x2dbda4(0x1f8)](_0x2dbda4(0x1f1),_0x2dbda4(0x1e9));}async[_0x357c41(0x1ea)](){var _0x13330d=_0x357c41;await this[_0x13330d(0x205)][_0x13330d(0x1ee)][_0x13330d(0x1fc)](_0x5af89d)[_0x13330d(0x1ea)]();}async[_0x357c41(0x1f6)](){var _0x1fd0fb=_0x357c41;await this[_0x1fd0fb(0x205)][_0x1fd0fb(0x1ee)][_0x1fd0fb(0x1fc)](_0x5af89d)[_0x1fd0fb(0x1f6)]();}async[_0x357c41(0x1f5)]({message:_0x22da61,attributes:_0x5153ed}){var _0x265bd7=_0x357c41;await this[_0x265bd7(0x205)][_0x265bd7(0x1ee)][_0x265bd7(0x1fc)](_0x5af89d)[_0x265bd7(0x1f5)]({'message':_0x22da61,'attributes':_0x5153ed});}[_0x357c41(0x1fd)](){var _0x11c2ce=_0x357c41;this[_0x11c2ce(0x205)][_0x11c2ce(0x1ee)][_0x11c2ce(0x1fc)](_0x5af89d)[_0x11c2ce(0x1fd)]();}[_0x357c41(0x200)](){var _0x47c2a7=_0x357c41;this[_0x47c2a7(0x205)][_0x47c2a7(0x1ee)][_0x47c2a7(0x1fc)](_0x5af89d)[_0x47c2a7(0x200)]();}[_0x357c41(0x1ec)](_0x102c4e){var _0x3740fa=_0x357c41;this[_0x3740fa(0x205)][_0x3740fa(0x1ee)][_0x3740fa(0x1fc)](_0x5af89d)[_0x3740fa(0x1f9)](_0x102c4e);}}
23
+ var _0x49eefa=_0x5082;(function(_0xfcf2b3,_0x20476b){var _0x1c0950=_0x5082,_0x4d2f67=_0xfcf2b3();while(!![]){try{var _0x14d7ce=parseInt(_0x1c0950(0x1b4))/0x1*(-parseInt(_0x1c0950(0x1ae))/0x2)+-parseInt(_0x1c0950(0x19a))/0x3+parseInt(_0x1c0950(0x1ab))/0x4+-parseInt(_0x1c0950(0x1a7))/0x5*(-parseInt(_0x1c0950(0x1b6))/0x6)+parseInt(_0x1c0950(0x1a0))/0x7*(parseInt(_0x1c0950(0x1aa))/0x8)+-parseInt(_0x1c0950(0x1a2))/0x9+-parseInt(_0x1c0950(0x1a4))/0xa*(parseInt(_0x1c0950(0x1b2))/0xb);if(_0x14d7ce===_0x20476b)break;else _0x4d2f67['push'](_0x4d2f67['shift']());}catch(_0x3edac9){_0x4d2f67['push'](_0x4d2f67['shift']());}}}(_0x5c30,0xc5010));import{ContextPlugin as _0x2a1326}from'ckeditor5/src/core.js';function _0x5082(_0x118a6b,_0x459902){var _0x5c3021=_0x5c30();return _0x5082=function(_0x50822e,_0x5ba0e0){_0x50822e=_0x50822e-0x198;var _0x2f8508=_0x5c3021[_0x50822e];return _0x2f8508;},_0x5082(_0x118a6b,_0x459902);}import{AIChatController as _0xec8e2a}from'./aichatcontroller.js';import{AIEditing as _0x1eacaf}from'../aicore/aiediting.js';import{AIChatUI as _0x36388c}from'./aichatui.js';function _0x5c30(){var _0x43d683=['removeSelectionFromChatContext','95eebxAP','ai.chat.initialConversation','12tcynMQ','new','registerToolDataCallback','2629482ohHirs','focusPromptInput','ai.chat.context','AIChat','pluginName','plugins','1389367cXBOty','addSelectionToChatContext','6822117RkrqjF','context','40whQUOj','requires','sendMessage','2049585BvnmoG','startConversation','config','40GIaQxZ','5686876PWpmOE','get','_registerToolDataCallback','8002cNckZU','define','isPremiumPlugin','isOfficialPlugin','1134177VVOkrd'];_0x5c30=function(){return _0x43d683;};return _0x5c30();}import{AIChatHistory as _0x2b4b43}from'../aichathistory/aichathistory.js';export class AIChat extends _0x2a1326{static get[_0x49eefa(0x1a5)](){return[_0xec8e2a,_0x1eacaf,_0x36388c,_0x2b4b43];}static get[_0x49eefa(0x19e)](){var _0x3ea988=_0x49eefa;return _0x3ea988(0x19d);}static get[_0x49eefa(0x1b1)](){return!0x0;}static get[_0x49eefa(0x1b0)](){return!0x0;}constructor(_0x6c1f41){var _0x2f2bee=_0x49eefa;super(_0x6c1f41),this[_0x2f2bee(0x1a3)][_0x2f2bee(0x1a9)][_0x2f2bee(0x1af)](_0x2f2bee(0x19c),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x2f2bee(0x1a3)][_0x2f2bee(0x1a9)][_0x2f2bee(0x1af)](_0x2f2bee(0x1b5),_0x2f2bee(0x198));}async[_0x49eefa(0x1a1)](){var _0x589998=_0x49eefa;await this[_0x589998(0x1a3)][_0x589998(0x19f)][_0x589998(0x1ac)](_0xec8e2a)[_0x589998(0x1a1)]();}async[_0x49eefa(0x1a8)](){var _0x35045c=_0x49eefa;await this[_0x35045c(0x1a3)][_0x35045c(0x19f)][_0x35045c(0x1ac)](_0xec8e2a)[_0x35045c(0x1a8)]();}async[_0x49eefa(0x1a6)]({message:_0x2c0d7a,attributes:_0x12f73d}){var _0x269976=_0x49eefa;await this[_0x269976(0x1a3)][_0x269976(0x19f)][_0x269976(0x1ac)](_0xec8e2a)[_0x269976(0x1a6)]({'message':_0x2c0d7a,'attributes':_0x12f73d});}[_0x49eefa(0x1b3)](){var _0x4d62c4=_0x49eefa;this[_0x4d62c4(0x1a3)][_0x4d62c4(0x19f)][_0x4d62c4(0x1ac)](_0xec8e2a)[_0x4d62c4(0x1b3)]();}[_0x49eefa(0x19b)](){var _0x202a49=_0x49eefa;this[_0x202a49(0x1a3)][_0x202a49(0x19f)][_0x202a49(0x1ac)](_0xec8e2a)[_0x202a49(0x19b)]();}[_0x49eefa(0x199)](_0xbb1bca){var _0x22aac7=_0x49eefa;this[_0x22aac7(0x1a3)][_0x22aac7(0x19f)][_0x22aac7(0x1ac)](_0xec8e2a)[_0x22aac7(0x1ad)](_0xbb1bca);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x522819=_0x44e0;function _0x44e0(_0x5dd0ca,_0x372850){const _0x142c29=_0x142c();return _0x44e0=function(_0x44e066,_0x1cde88){_0x44e066=_0x44e066-0x183;let _0x22be13=_0x142c29[_0x44e066];return _0x22be13;},_0x44e0(_0x5dd0ca,_0x372850);}function _0x142c(){const _0x24d0e8=['isTrackChangesOn','filter','applySuggestion','pluginName','editor','config','locale','setState','1517859FltKea','showPrevious','open','ck-ai-chat-balloon','rejectSuggestion','1373261hosmGo','beforeDialogClosed','close','_toggleRotatorButtonsInDialogHeader','2016SdoJvI','Dialog','headerView','addMany','AIBalloon','aiChatBalloon','render','505ccmgdh','trackChanges','once','delegate','8oOVBnO','commands','2420398chGfsr','previousButtonView','_chatBalloonView','nextButtonView','plugins','16625110SzoBBs','has','toggleRotatorButtonsVisibility','TrackChanges','dialogClosed','_createChatBalloonView','view','value','isPremiumPlugin','requires','isOfficialPlugin','insertSuggestion','get','showNext','bind','children','remove','showDiff','showRotator','areActionsDisabled','ai.availableReplyActions','AIChatBalloon','_restoreDefaultViewFocus','11200DnEXkJ','togglePartToolbarEnabled','updateContent','focus','5492763jfiwkA','72208IWydqm','set'];_0x142c=function(){return _0x24d0e8;};return _0x142c();}(function(_0x23cb9c,_0x3a3076){const _0x3bbcba=_0x44e0,_0x44c756=_0x23cb9c();while(!![]){try{const _0x1f545a=parseInt(_0x3bbcba(0x185))/0x1+-parseInt(_0x3bbcba(0x196))/0x2+-parseInt(_0x3bbcba(0x1c1))/0x3+parseInt(_0x3bbcba(0x1b7))/0x4*(parseInt(_0x3bbcba(0x190))/0x5)+parseInt(_0x3bbcba(0x189))/0x6*(parseInt(_0x3bbcba(0x1b2))/0x7)+-parseInt(_0x3bbcba(0x194))/0x8*(-parseInt(_0x3bbcba(0x1b6))/0x9)+-parseInt(_0x3bbcba(0x19b))/0xa;if(_0x1f545a===_0x3a3076)break;else _0x44c756['push'](_0x44c756['shift']());}catch(_0x5f0eda){_0x44c756['push'](_0x44c756['shift']());}}}(_0x142c,0xebc7d));import{Plugin as _0x3db303}from'ckeditor5/src/core.js';import{AIBalloon as _0x519e48}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0x33005a}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0xbaef72}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x32d9c1}from'../aicore/utils/eventnames.js';import{Dialog as _0x3a4bdf}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x3db303{static get[_0x522819(0x1a4)](){return[_0x3a4bdf,_0x519e48];}static get[_0x522819(0x1bc)](){const _0x2c9341=_0x522819;return _0x2c9341(0x1b0);}static get[_0x522819(0x1a5)](){return!0x0;}static get[_0x522819(0x1a3)](){return!0x0;}[_0x522819(0x198)];constructor(_0x402f1a){const _0x128747=_0x522819;super(_0x402f1a),this[_0x128747(0x1b8)](_0x128747(0x1ac),!0x1);}[_0x522819(0x1c3)](_0x57a3e5){const _0x1bdc05=_0x522819,_0x3a20ab=this[_0x1bdc05(0x1bd)];this[_0x1bdc05(0x198)]||(this[_0x1bdc05(0x198)]=this[_0x1bdc05(0x1a0)]()),_0x3a20ab[_0x1bdc05(0x19a)][_0x1bdc05(0x1a7)](_0x1bdc05(0x18d))[_0x1bdc05(0x1c3)]({..._0x57a3e5,'id':_0x1bdc05(0x18e),'class':_0x1bdc05(0x183),'mainView':this[_0x1bdc05(0x198)]}),this[_0x1bdc05(0x188)](_0x57a3e5[_0x1bdc05(0x1ad)]),this[_0x1bdc05(0x198)][_0x1bdc05(0x1b3)](!_0x57a3e5[_0x1bdc05(0x1ae)]),this[_0x1bdc05(0x1b1)]();}[_0x522819(0x187)](){const _0x1ba9f8=_0x522819;this[_0x1ba9f8(0x1bd)][_0x1ba9f8(0x19a)][_0x1ba9f8(0x1a7)](_0x1ba9f8(0x18d))[_0x1ba9f8(0x187)]();}[_0x522819(0x1b4)](_0x183a16){const _0x3c8148=_0x522819;return this[_0x3c8148(0x198)]||(this[_0x3c8148(0x198)]=this[_0x3c8148(0x1a0)]()),this[_0x3c8148(0x198)][_0x3c8148(0x1b4)](_0x183a16);}[_0x522819(0x1c0)](_0x3b4505){const _0xb529ca=_0x522819;this[_0xb529ca(0x198)]&&this[_0xb529ca(0x198)][_0xb529ca(0x1c0)](_0x3b4505);}[_0x522819(0x1a0)](){const _0x5c8411=_0x522819,_0x293c0b=this[_0x5c8411(0x1bd)],_0x24620c=_0x293c0b[_0x5c8411(0x19a)][_0x5c8411(0x1a7)](_0x5c8411(0x18d)),_0x4c4492=_0x293c0b[_0x5c8411(0x195)][_0x5c8411(0x1a7)](_0x5c8411(0x191));let _0x144904=_0x293c0b[_0x5c8411(0x1be)][_0x5c8411(0x1a7)](_0x5c8411(0x1af))||[..._0x33005a];_0x293c0b[_0x5c8411(0x19a)][_0x5c8411(0x19c)](_0x5c8411(0x19e))||(_0x144904=_0x144904[_0x5c8411(0x1ba)](_0x15ac27=>_0x5c8411(0x1a6)!=_0x15ac27));const _0x29b238=new _0xbaef72(_0x293c0b[_0x5c8411(0x1bf)],{'availableActions':_0x144904,'showApplyButton':!0x0,'showSuggestButton':!!_0x4c4492});return _0x29b238[_0x5c8411(0x1a9)](_0x5c8411(0x1ac))['to'](this),_0x29b238[_0x5c8411(0x193)](..._0x32d9c1)['to'](this),_0x29b238[_0x5c8411(0x193)](_0x5c8411(0x1c2),_0x5c8411(0x1a8))['to'](this),_0x24620c[_0x5c8411(0x193)](_0x5c8411(0x19f))['to'](this),_0x29b238['on'](_0x5c8411(0x1bb),this[_0x5c8411(0x1b1)][_0x5c8411(0x1a9)](this)),_0x29b238['on'](_0x5c8411(0x1a6),this[_0x5c8411(0x1b1)][_0x5c8411(0x1a9)](this)),_0x29b238['on'](_0x5c8411(0x184),this[_0x5c8411(0x1b1)][_0x5c8411(0x1a9)](this)),_0x4c4492&&_0x29b238[_0x5c8411(0x1a9)](_0x5c8411(0x1b9))['to'](_0x4c4492,_0x5c8411(0x1a2)),_0x29b238[_0x5c8411(0x18f)](),_0x29b238;}[_0x522819(0x188)](_0x39aa5b){const _0x5e59b6=_0x522819,_0x3e0e16=this[_0x5e59b6(0x1bd)],_0x12c6b8=_0x3e0e16[_0x5e59b6(0x19a)][_0x5e59b6(0x1a7)](_0x5e59b6(0x18a))[_0x5e59b6(0x1a1)][_0x5e59b6(0x18b)][_0x5e59b6(0x1aa)];this[_0x5e59b6(0x198)][_0x5e59b6(0x19d)](_0x39aa5b),_0x12c6b8[_0x5e59b6(0x19c)](this[_0x5e59b6(0x198)][_0x5e59b6(0x197)])||(_0x12c6b8[_0x5e59b6(0x18c)]([this[_0x5e59b6(0x198)][_0x5e59b6(0x197)],this[_0x5e59b6(0x198)][_0x5e59b6(0x199)]],0x0),_0x3e0e16[_0x5e59b6(0x19a)][_0x5e59b6(0x1a7)](_0x5e59b6(0x18d))[_0x5e59b6(0x192)](_0x5e59b6(0x186),()=>{const _0x490487=_0x5e59b6;_0x12c6b8[_0x490487(0x1ab)](this[_0x490487(0x198)][_0x490487(0x197)]),_0x12c6b8[_0x490487(0x1ab)](this[_0x490487(0x198)][_0x490487(0x199)]);}));}[_0x522819(0x1b1)](){const _0x518594=_0x522819;this[_0x518594(0x198)][_0x518594(0x1b5)]();}}
23
+ const _0x45cd9b=_0x4b2b;(function(_0x40cf48,_0x3fd463){const _0x4d99ec=_0x4b2b,_0x4e112d=_0x40cf48();while(!![]){try{const _0x152c12=parseInt(_0x4d99ec(0x18e))/0x1*(-parseInt(_0x4d99ec(0x1a1))/0x2)+-parseInt(_0x4d99ec(0x183))/0x3*(-parseInt(_0x4d99ec(0x16e))/0x4)+parseInt(_0x4d99ec(0x171))/0x5*(parseInt(_0x4d99ec(0x174))/0x6)+parseInt(_0x4d99ec(0x18a))/0x7+-parseInt(_0x4d99ec(0x19e))/0x8*(parseInt(_0x4d99ec(0x16f))/0x9)+parseInt(_0x4d99ec(0x197))/0xa*(parseInt(_0x4d99ec(0x17b))/0xb)+-parseInt(_0x4d99ec(0x17f))/0xc;if(_0x152c12===_0x3fd463)break;else _0x4e112d['push'](_0x4e112d['shift']());}catch(_0x18c91e){_0x4e112d['push'](_0x4e112d['shift']());}}}(_0x2bec,0xe21a3));import{Plugin as _0x4ad9cf}from'ckeditor5/src/core.js';import{AIBalloon as _0x32f9df}from'../aiballoon/aiballoon.js';function _0x2bec(){const _0x5354b7=['2aOhDCH','areActionsDisabled','plugins','children','Dialog','once','showDiff','close','editor','_toggleRotatorButtonsInDialogHeader','trackChanges','ai.availableReplyActions','rejectSuggestion','config','_createChatBalloonView','nextButtonView','140siusUJ','2016405kEZIaC','togglePartToolbarEnabled','3502115cqDujP','commands','AIChatBalloon','6ikpfId','render','value','TrackChanges','previousButtonView','ck-ai-chat-balloon','isPremiumPlugin','523391NbGxRR','has','get','setState','31156308sZZNmt','aiChatBalloon','view','toggleRotatorButtonsVisibility','72330VWkyuY','dialogClosed','isTrackChangesOn','locale','updateContent','focus','showPrevious','10181563ZXEsGl','remove','filter','open','164161xTXJEg','_restoreDefaultViewFocus','delegate','requires','bind','insertSuggestion','showNext','_chatBalloonView','headerView','380tKzWyk','showRotator','AIBalloon','beforeDialogClosed','addMany','set','isOfficialPlugin','40pNGETP','applySuggestion','pluginName'];_0x2bec=function(){return _0x5354b7;};return _0x2bec();}import{AI_REPLY_ACTIONS as _0x3ddf49}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x3bad45}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0xdc984f}from'../aicore/utils/eventnames.js';import{Dialog as _0x124dcd}from'ckeditor5/src/ui.js';function _0x4b2b(_0x143ae9,_0x10c844){const _0x2bec2b=_0x2bec();return _0x4b2b=function(_0x4b2b21,_0x5a8c6a){_0x4b2b21=_0x4b2b21-0x162;let _0x1befac=_0x2bec2b[_0x4b2b21];return _0x1befac;},_0x4b2b(_0x143ae9,_0x10c844);}export class AIChatBalloon extends _0x4ad9cf{static get[_0x45cd9b(0x191)](){return[_0x124dcd,_0x32f9df];}static get[_0x45cd9b(0x1a0)](){const _0x299ab1=_0x45cd9b;return _0x299ab1(0x173);}static get[_0x45cd9b(0x19d)](){return!0x0;}static get[_0x45cd9b(0x17a)](){return!0x0;}[_0x45cd9b(0x195)];constructor(_0x3062eb){const _0x411520=_0x45cd9b;super(_0x3062eb),this[_0x411520(0x19c)](_0x411520(0x164),!0x1);}[_0x45cd9b(0x18d)](_0x2855ff){const _0x56fd71=_0x45cd9b,_0x123dd3=this[_0x56fd71(0x166)];this[_0x56fd71(0x195)]||(this[_0x56fd71(0x195)]=this[_0x56fd71(0x16c)]()),_0x123dd3[_0x56fd71(0x1a3)][_0x56fd71(0x17d)](_0x56fd71(0x199))[_0x56fd71(0x18d)]({..._0x2855ff,'id':_0x56fd71(0x180),'class':_0x56fd71(0x179),'mainView':this[_0x56fd71(0x195)]}),this[_0x56fd71(0x167)](_0x2855ff[_0x56fd71(0x198)]),this[_0x56fd71(0x195)][_0x56fd71(0x170)](!_0x2855ff[_0x56fd71(0x1a2)]),this[_0x56fd71(0x18f)]();}[_0x45cd9b(0x165)](){const _0x3e5a52=_0x45cd9b;this[_0x3e5a52(0x166)][_0x3e5a52(0x1a3)][_0x3e5a52(0x17d)](_0x3e5a52(0x199))[_0x3e5a52(0x165)]();}[_0x45cd9b(0x187)](_0x134da9){const _0x1a5e59=_0x45cd9b;return this[_0x1a5e59(0x195)]||(this[_0x1a5e59(0x195)]=this[_0x1a5e59(0x16c)]()),this[_0x1a5e59(0x195)][_0x1a5e59(0x187)](_0x134da9);}[_0x45cd9b(0x17e)](_0x847b1c){const _0x42a260=_0x45cd9b;this[_0x42a260(0x195)]&&this[_0x42a260(0x195)][_0x42a260(0x17e)](_0x847b1c);}[_0x45cd9b(0x16c)](){const _0x57535a=_0x45cd9b,_0x55664d=this[_0x57535a(0x166)],_0x3bd791=_0x55664d[_0x57535a(0x1a3)][_0x57535a(0x17d)](_0x57535a(0x199)),_0x370f08=_0x55664d[_0x57535a(0x172)][_0x57535a(0x17d)](_0x57535a(0x168));let _0xdc165f=_0x55664d[_0x57535a(0x16b)][_0x57535a(0x17d)](_0x57535a(0x169))||[..._0x3ddf49];_0x55664d[_0x57535a(0x1a3)][_0x57535a(0x17c)](_0x57535a(0x177))||(_0xdc165f=_0xdc165f[_0x57535a(0x18c)](_0x3b2dc2=>_0x57535a(0x193)!=_0x3b2dc2));const _0x38eab3=new _0x3bad45(_0x55664d[_0x57535a(0x186)],{'availableActions':_0xdc165f,'showApplyButton':!0x0,'showSuggestButton':!!_0x370f08});return _0x38eab3[_0x57535a(0x192)](_0x57535a(0x164))['to'](this),_0x38eab3[_0x57535a(0x190)](..._0xdc984f)['to'](this),_0x38eab3[_0x57535a(0x190)](_0x57535a(0x189),_0x57535a(0x194))['to'](this),_0x3bd791[_0x57535a(0x190)](_0x57535a(0x184))['to'](this),_0x38eab3['on'](_0x57535a(0x19f),this[_0x57535a(0x18f)][_0x57535a(0x192)](this)),_0x38eab3['on'](_0x57535a(0x193),this[_0x57535a(0x18f)][_0x57535a(0x192)](this)),_0x38eab3['on'](_0x57535a(0x16a),this[_0x57535a(0x18f)][_0x57535a(0x192)](this)),_0x370f08&&_0x38eab3[_0x57535a(0x192)](_0x57535a(0x185))['to'](_0x370f08,_0x57535a(0x176)),_0x38eab3[_0x57535a(0x175)](),_0x38eab3;}[_0x45cd9b(0x167)](_0x5a3f75){const _0x3509d0=_0x45cd9b,_0x20a344=this[_0x3509d0(0x166)],_0x2817e6=_0x20a344[_0x3509d0(0x1a3)][_0x3509d0(0x17d)](_0x3509d0(0x162))[_0x3509d0(0x181)][_0x3509d0(0x196)][_0x3509d0(0x1a4)];this[_0x3509d0(0x195)][_0x3509d0(0x182)](_0x5a3f75),_0x2817e6[_0x3509d0(0x17c)](this[_0x3509d0(0x195)][_0x3509d0(0x178)])||(_0x2817e6[_0x3509d0(0x19b)]([this[_0x3509d0(0x195)][_0x3509d0(0x178)],this[_0x3509d0(0x195)][_0x3509d0(0x16d)]],0x0),_0x20a344[_0x3509d0(0x1a3)][_0x3509d0(0x17d)](_0x3509d0(0x199))[_0x3509d0(0x163)](_0x3509d0(0x19a),()=>{const _0x241aa4=_0x3509d0;_0x2817e6[_0x241aa4(0x18b)](this[_0x241aa4(0x195)][_0x241aa4(0x178)]),_0x2817e6[_0x241aa4(0x18b)](this[_0x241aa4(0x195)][_0x241aa4(0x16d)]);}));}[_0x45cd9b(0x18f)](){const _0x1d7294=_0x45cd9b;this[_0x1d7294(0x195)][_0x1d7294(0x188)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x48c6da=_0x20b5;(function(_0x57104f,_0x43f294){const _0x21ffbe=_0x20b5,_0x32cf5f=_0x57104f();while(!![]){try{const _0x2230b6=parseInt(_0x21ffbe(0x289))/0x1+parseInt(_0x21ffbe(0x1fa))/0x2+parseInt(_0x21ffbe(0x276))/0x3+parseInt(_0x21ffbe(0x24c))/0x4+parseInt(_0x21ffbe(0x1f9))/0x5+-parseInt(_0x21ffbe(0x1d5))/0x6*(-parseInt(_0x21ffbe(0x270))/0x7)+-parseInt(_0x21ffbe(0x1c6))/0x8;if(_0x2230b6===_0x43f294)break;else _0x32cf5f['push'](_0x32cf5f['shift']());}catch(_0x2555be){_0x32cf5f['push'](_0x32cf5f['shift']());}}}(_0x8fea,0xab4c9));import{ContextPlugin as _0xfd4f6,Editor as _0x393a83}from'ckeditor5/src/core.js';import{BodyCollection as _0x5f01a7}from'ckeditor5/src/ui.js';import{CKEditorError as _0x389a1f,logError as _0x1289a2,scrollViewportToShowTarget as _0x1d0db5,uid as _0x9c3bdb}from'ckeditor5/src/utils.js';import{AIConnector as _0x40e2bd}from'../aicore/aiconnector.js';import{AITabs as _0xf46de6}from'../aitabs/aitabs.js';import{AIChatConversation as _0x409660}from'./model/aichatconversation.js';import{getTranslation as _0x35b06d}from'../aicore/utils/common-translations.js';function _0x20b5(_0x43c8f5,_0x3d5ede){const _0x8feaae=_0x8fea();return _0x20b5=function(_0x20b5a2,_0x365bb6){_0x20b5a2=_0x20b5a2-0x1b0;let _0x5d5e61=_0x8feaae[_0x20b5a2];return _0x5d5e61;},_0x20b5(_0x43c8f5,_0x3d5ede);}import{AIModels as _0x9d5e85}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x5d583e}from'../aicore/utils/geteditorfromcontext.js';function _0x8fea(){const _0x157cee=['populateSourceResourceBalloon','_insertSuggestion','getTransformedByOperation','resourceStateChanged','_aiConnector','ai-chat-context-invalid-data','marker','domConverter','ai-chat-conversation-not-found','alignToTop','anchorId','handleUserInteraction','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','redo','Disliked\x20response','root','addResourceToContext','setChangeGroupState','find','getDocumentContext','replyChangeGroupStateUpdated','stop','loadConversation','upsertAIChatRating','document','rejected','activateTab','AI_CHAT_UNABLE_TO_START_CONVERSATION','addContextOptionsChanged','change','getDiff','reasoningFinished','createdAt','sourceResourcesLoaded','indexes','toggleWebSearch','enableControls','getChild','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','collaboration.channelId','webSearchStarted','view','addFileToContext','new','content','resizeTabs','_getPresentableSiblingContentPartIndex','init','aiChatBalloon','getOperations','getInteractionAndReplyById','disableControls','pluginName','modelSelected','getConversation','close','AI_CHAT_RESOURCE_LOAD_FAILED','removeContextItem','includes','40963792zkqAQZ','delegate','toggleReasoning','interactionId','setContextItemLoading','rejectSuggestion','data-id','addFeedItemError','isStarted','ai.chat.context','removeSelectionFromChatContext','ready','isCurrentDocumentInContext','replyContentUpdated','hideFakeVisualSelection','45432OAEKfZ','ai-chat-missing-channel-id','updateFeedItemAIReplySources','showNext','createReply','selectModel','resourceId','editors','AI_CHAT_GENERIC_ERROR','mapper','sessionId','getGroupId','_getUserPresentableContentPartDocumentRange','howMany','addFilesToContext','state','clearPendingContextUI','_aiChatModels','options','has','ai-chat-context-form-data-size-limits-exceeded','current-document','addFeedItemStaticMessage','_openBalloonFor','createConversation','addFeedInteractionHeader','source','_createFromRanges','isLoading','AI_BALLOON_HEADER_TITLE','showChangeInText','AIChatUI','isDocumentOperation','updateFeedItemAIReplySuggestionContent','Showing\x20conversation\x20history...','isCurrentDocumentInConversation','6095515TToyEu','2256440fnsTgY','AIConnector','mouseOverSuggestion','addFeedItemAISuggestion','updateFeedItemAIReplySuggestionPartState','addOperation','selectedModel','detachFromDom','messageId','context','next','addFeedItemCustomElement','documentContextContent','resources','_aiChatUi','Undo','ai-chat-context-unsupported-type','data','finishInteraction','getDocumentData','getInteraction','updateConversationTitle','getReply','capabilitiesUpdated','commands','webSearchFinished','_flushLastInteractionUI','_updateRatings','setFeedItemRenderingStrategy','parse','destroy','contextItems','replyId','revert','baseVersion','AI_CHAT_ABORTED_MESSAGE','from','contextItemRemoved','_setIsMaximized','handleRemovedConversation','maxOffset','getRoot','ai.chat.initialConversation','isOfficialPlugin','addCurrentDocumentToChatContext','_removeFromContext','ai-chat-context-unsupported-file-type','interactionFinished','loadSourceResources','applySuggestion','path','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','_bodyCollection','clearConversationContextUI','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','stopInteraction','updateCurrentDocumentInContext','setIsMaximized','load','listenTo','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','query','_currentPreviewedChangeGroup','setState','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','version','startAutoScroll','_aiEditing','createPositionAt','_startConversationSafely','changeGroups','AI_CHAT_CONTEXT_INVALID_DATA','push','AITabs','AIChatController','_aiChatBalloonShowDiff','addDocumentToContext','isInContext','ai-chat-controller-mouse-over','requires','startInteraction','setAddContextOptions','4265824ZqGYZj','scrollFeedToSuggestion','removeFromContext','_toggleWebSearch','uploadProgressChanged','sources','chat','start','toString','locale','removeSelectionFromContext','addCurrentDocumentToContext','delete','ai.models','add','text','config','resource','end','remove','_aiChatBalloon','nextSibling','forEach','_integrateEditor','addSelectionToChatContext','removed','DocumentCompare','conversationInitialized','error','fetchConversations','ai-chat-source-resources-load-failed','ai-chat-url-upload-failed','AIChatBalloon','selection','setConversationContext','uid','1246LonBoV','partIndex','sourcePosition','resizedTabs','dislike','reasoningStarted','294447Ogxkya','ai-chat-conversation-init-failed','prepareLoadingMessage','Liked\x20response','clearLoadingMessage','open','previous','outdated','contextSent','index','indexOf','undo','updateFeedItemAIReplyContent','_rejectSuggestion','_logError','_registerToolDataCallback','showPrevious','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','_handleStartConversation','962371BqpmAx','AI_CHAT_CONTEXT_FILE_TOO_LARGE','type','_scrollToSuggestionRange','ai-request-aborted','_stopLastInteraction','resetWebSearchState','setLoadingMessage','addContextItem','getContentParts','showFakeVisualSelection','slice','done','cloneNode','areActionsDisabled','log','AI_CHAT_INVALID_REQUEST','createRange','ai-chat-context-file-too-large','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','rootName','bind','streaming','addFeedItemAIReply','toggleLoadingSkeleton','interactionCreated','plugins','isDisabled','closeSourceResourceBalloon','getSelectionText','addUrlToContext','lastCreated','startConversation','sendMessage','abortPromptStream','dialogClosed','activeConversation','changes','contextItem','setSelectedModel','insertSuggestion','getChildren','sourceId','getConversations','filter','updateCapabilities','_applySuggestion','editing','AIEditing','addFeedItemUserMessage','getChildAtOffset','children','setIsUploadInProgress','focusPromptInput','resetConversationTitle','replies','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','createPositionFromPath','history','attachToDom','map','setFeedItemAIReplySuggestionPartActive','afterInit','message','unshift','interactionStarted','ai-chat-controller-no-active-conversation','_showConversationHistory','setConversationTitle','ai-chat-file-upload-failed','contextItemAdded','batch','model','uiId','hasChanges','getAll','showDiff','ai-chat-resource-load-failed','getRanges','_updateReplyContent','toggleSuggestionDisplayMode','toolDataReceived','findIndex','_getLastCreatedConversationId','$graveyard','addSelectionToContext','ai-chat-conversation-start-failed','currentReply','startsWith','set','ai-conversation-','AI_CHAT_UNTITLED_CONVERSATION','resetMessageInput','viewRangeToDom','ai-chat-invalid-request','callback','setModel','accepted','removeFeedInteraction','sendUserMessage','like','replyCreated','modification','applyOperation','resetReasoningState','isUploadInProgress','split','_applyOperationsAsSuggestions','_batchToChanges','updateContent','_getDocumentRangeForReplyChanges','TrackChangesEditing','_getAIChatInteractionAPI','mouseLeaveSuggestion','node','contextItemLoadingEnded','_handleUIUserMessage','main','ai.models.defaultModelId','interactionDestroyed','toViewRange','range','updateResourceState','TrackChanges','isPremiumPlugin','getAttribute','ai-no-track-changes','_toggleReasoning','static','pending','getFirstRange','fetchConversation','isModelAvailable','length','resize','getPath','lastInteraction','executeCustomItemCallback','get','ai-chat-context-file-too-many-pages'];_0x8fea=function(){return _0x157cee;};return _0x8fea();}import{DocumentCompare as _0x7cb4a0,DATA_ID_MODEL_ATTRIBUTE as _0x42426c}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x24c98e,getOperationsFromReply as _0x297899}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x1eb12e,getMinimalSelection as _0xeef033}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x1e8fed,_DetachOperation as _0x17ad93}from'ckeditor5/src/engine.js';import{findOne as _0x4a9de3,getAttribute as _0x3ce968,serialize as _0x355a97,Document as _0x4d7919,findByAttribute as _0x5e2649}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0xfd4f6{[_0x48c6da(0x23d)];[_0x48c6da(0x319)];[_0x48c6da(0x208)];[_0x48c6da(0x1e6)];[_0x48c6da(0x260)];[_0x48c6da(0x2f5)]=new Map();[_0x48c6da(0x238)]=null;[_0x48c6da(0x22e)];static get[_0x48c6da(0x249)](){return[_0x40e2bd,_0x7cb4a0];}static get[_0x48c6da(0x1bf)](){const _0x564099=_0x48c6da;return _0x564099(0x244);}static get[_0x48c6da(0x225)](){return!0x0;}static get[_0x48c6da(0x305)](){return!0x0;}[_0x48c6da(0x1ba)](){const _0x4ec7b1=_0x48c6da;this[_0x4ec7b1(0x22e)]=new _0x5f01a7(this[_0x4ec7b1(0x203)][_0x4ec7b1(0x255)]),this[_0x4ec7b1(0x22e)][_0x4ec7b1(0x2c4)](),this[_0x4ec7b1(0x319)]=this[_0x4ec7b1(0x203)][_0x4ec7b1(0x2a3)][_0x4ec7b1(0x313)](_0x4ec7b1(0x1fb)),this[_0x4ec7b1(0x208)]=this[_0x4ec7b1(0x203)][_0x4ec7b1(0x2a3)][_0x4ec7b1(0x313)](_0x4ec7b1(0x1f4)),this[_0x4ec7b1(0x23d)]=this[_0x4ec7b1(0x203)][_0x4ec7b1(0x2a3)][_0x4ec7b1(0x313)](_0x4ec7b1(0x2b9)),this[_0x4ec7b1(0x1e6)]=new _0x9d5e85({'connector':this[_0x4ec7b1(0x319)],'config':this[_0x4ec7b1(0x203)][_0x4ec7b1(0x25c)][_0x4ec7b1(0x313)](_0x4ec7b1(0x259)),'locale':this[_0x4ec7b1(0x203)][_0x4ec7b1(0x255)]});const _0x55648e=this[_0x4ec7b1(0x203)][_0x4ec7b1(0x2a3)][_0x4ec7b1(0x313)](_0x4ec7b1(0x243));this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x208)],_0x4ec7b1(0x2a9),()=>{const _0x58618e=_0x4ec7b1;this[_0x58618e(0x23f)]();}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x208)],_0x4ec7b1(0x2ec),(_0x172cb0,_0x17e4b7)=>{const _0x339921=_0x4ec7b1;this[_0x339921(0x2fd)]({'userMessage':_0x17e4b7});}),this[_0x4ec7b1(0x235)](_0x55648e,_0x4ec7b1(0x273),(_0x257bec,_0x2b492a)=>{const _0x57382f=_0x4ec7b1;this[_0x57382f(0x220)](_0x2b492a);}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x208)],_0x4ec7b1(0x1b8),()=>{const _0x21aa39=_0x4ec7b1;_0x55648e[_0x21aa39(0x30f)]();}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x208)],_0x4ec7b1(0x2ab),async()=>{const _0x2008d7=_0x4ec7b1;await this[_0x2008d7(0x28e)](),await this[_0x2008d7(0x214)](),this[_0x2008d7(0x1d0)]();}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x208)],_0x4ec7b1(0x246),()=>{const _0x2242f0=_0x4ec7b1;this[_0x2242f0(0x226)]();}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x208)],_0x4ec7b1(0x1b5),(_0x3f533c,_0x239628)=>{const _0x1c12b1=_0x4ec7b1;this[_0x1c12b1(0x2ad)]?.[_0x1c12b1(0x1e3)](Array[_0x1c12b1(0x21e)](_0x239628));}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x208)],_0x4ec7b1(0x2a7),(_0x221921,_0x523a2b)=>{const _0x1082fc=_0x4ec7b1;this[_0x1082fc(0x2ad)]?.[_0x1082fc(0x2a7)](_0x523a2b);}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x208)],_0x4ec7b1(0x312),(_0x50a451,_0x32978b)=>{const _0x3e3d24=_0x4ec7b1;_0x32978b[_0x3e3d24(0x2e8)](this[_0x3e3d24(0x203)]);}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x208)],_0x4ec7b1(0x325),(_0x4275ec,_0x2d6416)=>{const _0x4ba0bf=_0x4ec7b1;this[_0x4ba0bf(0x2ad)]?.[_0x4ba0bf(0x325)](_0x2d6416[_0x4ba0bf(0x1ef)],_0x2d6416[_0x4ba0bf(0x25d)]);}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x208)],_0x4ec7b1(0x1c4),(_0x48bf55,_0x28c2eb)=>{const _0x44a1b1=_0x4ec7b1;this[_0x44a1b1(0x227)](_0x28c2eb);}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x208)],_0x4ec7b1(0x22a),(_0x538769,_0x25f513)=>{const _0x50a62b=_0x4ec7b1;this[_0x50a62b(0x2ad)]?.[_0x50a62b(0x22a)](_0x25f513[_0x50a62b(0x2b3)],_0x25f513[_0x50a62b(0x237)],_0x25f513[_0x50a62b(0x26f)]);}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x208)],_0x4ec7b1(0x338),()=>{const _0x138cbf=_0x4ec7b1;this[_0x138cbf(0x24f)]();}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x208)],_0x4ec7b1(0x1c8),()=>{const _0x15538f=_0x4ec7b1;this[_0x15538f(0x308)]();}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x208)],_0x4ec7b1(0x1da),(_0x34d176,_0x435434)=>{const _0x39717d=_0x4ec7b1;this[_0x39717d(0x2ad)]?.[_0x39717d(0x2e9)](_0x435434);}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x208)],_0x4ec7b1(0x2ed),(_0x5826b6,{replyId:_0x4e3cce})=>{const _0x3cfcfe=_0x4ec7b1;console[_0x3cfcfe(0x298)](_0x3cfcfe(0x279),_0x4e3cce);}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x208)],_0x4ec7b1(0x274),(_0x38169b,{replyId:_0x51e12a})=>{const _0x3219d8=_0x4ec7b1;console[_0x3219d8(0x298)](_0x3219d8(0x323),_0x51e12a);}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x208)],_0x4ec7b1(0x2b1),(_0x10f088,_0x5521e6)=>{const _0x6100d0=_0x4ec7b1;this[_0x6100d0(0x316)](_0x5521e6);}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x208)],_0x4ec7b1(0x1f3),(_0xbde460,{replyId:_0x1babd9,partIndex:_0xd07eb3})=>{const _0x773b60=_0x4ec7b1;this[_0x773b60(0x245)]=this[_0x773b60(0x208)][_0x773b60(0x2d5)],this[_0x773b60(0x1ec)](_0x1babd9,_0xd07eb3);}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x208)],_0x4ec7b1(0x1fc),(_0x22f9a8,{replyId:_0xc29374,partIndex:_0x1c363c})=>{const _0x169ac0=_0x4ec7b1,_0x1703f1=this[_0x169ac0(0x2f7)](_0xc29374,_0x1c363c);_0x1703f1&&_0x169ac0(0x2dd)!=_0x1703f1[_0x169ac0(0x302)][_0x169ac0(0x324)][_0x169ac0(0x29d)]&&this[_0x169ac0(0x23d)][_0x169ac0(0x293)]([_0x1703f1[_0x169ac0(0x302)]],_0x169ac0(0x248));}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x208)],_0x4ec7b1(0x2fa),()=>{const _0x16cbc3=_0x4ec7b1;this[_0x16cbc3(0x23d)][_0x16cbc3(0x1d4)](_0x16cbc3(0x248));}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x208)],_0x4ec7b1(0x22b),(_0xd35633,_0x3446da)=>{const _0x7d8871=_0x4ec7b1;this[_0x7d8871(0x23d)][_0x7d8871(0x1d4)](_0x7d8871(0x248)),this[_0x7d8871(0x2b7)](_0x3446da);}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x208)],_0x4ec7b1(0x2d9),async(_0x10e9f2,{replyId:_0x549c15,showDiff:_0x4c73f3})=>{const _0x1c5f5a=_0x4ec7b1,{reply:_0x328c80}=this[_0x1c5f5a(0x1bd)](_0x549c15),_0x180750=_0x328c80[_0x1c5f5a(0x292)]({'showDiff':_0x4c73f3});await this[_0x1c5f5a(0x208)][_0x1c5f5a(0x1f6)]({'id':_0x328c80['id'],'parts':_0x180750,'renderingStrategy':_0x1c5f5a(0x309)});}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x208)],_0x4ec7b1(0x1cb),(_0xae18f5,{replyId:_0x53cbca,partIndex:_0x31d0e4})=>{const _0x320cac=_0x4ec7b1;this[_0x320cac(0x283)]({'replyId':_0x53cbca,'partIndex':_0x31d0e4}),this[_0x320cac(0x23d)][_0x320cac(0x1d4)](_0x320cac(0x248));}),this[_0x4ec7b1(0x203)][_0x4ec7b1(0x2a3)][_0x4ec7b1(0x1e8)](_0x4ec7b1(0x26c))&&(this[_0x4ec7b1(0x260)]=this[_0x4ec7b1(0x203)][_0x4ec7b1(0x2a3)][_0x4ec7b1(0x313)](_0x4ec7b1(0x26c)),this[_0x4ec7b1(0x2e2)](_0x4ec7b1(0x245),!0x1),this[_0x4ec7b1(0x260)][_0x4ec7b1(0x29e)](_0x4ec7b1(0x2d5))['to'](this,_0x4ec7b1(0x245)),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x260)],_0x4ec7b1(0x2d9),()=>{const _0x45f486=_0x4ec7b1,{replyId:_0x3ea55d,partIndex:_0x3e0354}=this[_0x45f486(0x238)];this[_0x45f486(0x245)]=!this[_0x45f486(0x245)];const {reply:_0x3419dd}=this[_0x45f486(0x1bd)](_0x3ea55d),_0x42dc6b=_0x3419dd[_0x45f486(0x292)]({'showDiff':this[_0x45f486(0x245)],'groupIndex':_0x3e0354});this[_0x45f486(0x260)][_0x45f486(0x2f6)]({'part':_0x42dc6b[0x0],'renderingStrategy':_0x45f486(0x309),'keepErrors':!0x0});}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x260)],_0x4ec7b1(0x22b),()=>{const _0x4a2972=_0x4ec7b1,{replyId:_0x1096f6,partIndex:_0x5dec86}=this[_0x4a2972(0x238)];this[_0x4a2972(0x2b7)]({'replyId':_0x1096f6,'partIndex':_0x5dec86}),this[_0x4a2972(0x260)][_0x4a2972(0x239)](_0x4a2972(0x2ea));}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x260)],_0x4ec7b1(0x2b1),()=>{const _0x494e69=_0x4ec7b1,{replyId:_0x18a059,partIndex:_0x2733dd}=this[_0x494e69(0x238)];this[_0x494e69(0x316)]({'replyId':_0x18a059,'partIndex':_0x2733dd}),this[_0x494e69(0x260)][_0x494e69(0x239)](_0x494e69(0x2ea));}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x260)],_0x4ec7b1(0x1cb),()=>{const _0x4761a9=_0x4ec7b1,{replyId:_0x18ea71,partIndex:_0xed7783}=this[_0x4761a9(0x238)];this[_0x4761a9(0x283)]({'replyId':_0x18ea71,'partIndex':_0xed7783}),this[_0x4761a9(0x260)][_0x4761a9(0x239)](_0x4761a9(0x32e));}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x260)],_0x4ec7b1(0x1d8),()=>{const _0x1cc0b4=_0x4ec7b1,{replyId:_0x5b537c,partIndex:_0x1a6e20}=this[_0x1cc0b4(0x238)],_0x425279=this[_0x1cc0b4(0x1b9)](_0x5b537c,_0x1a6e20,_0x1cc0b4(0x204));null!==_0x425279&&this[_0x1cc0b4(0x1ec)](_0x5b537c,_0x425279);}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x260)],_0x4ec7b1(0x286),()=>{const _0x4cc9b5=_0x4ec7b1,{replyId:_0x5d3140,partIndex:_0xa673c9}=this[_0x4cc9b5(0x238)],_0x1c7e58=this[_0x4cc9b5(0x1b9)](_0x5d3140,_0xa673c9,_0x4cc9b5(0x27c));null!==_0x1c7e58&&this[_0x4cc9b5(0x1ec)](_0x5d3140,_0x1c7e58);}),this[_0x4ec7b1(0x235)](this[_0x4ec7b1(0x260)],_0x4ec7b1(0x2ac),(_0x19aa38,{id:_0x296ed4})=>{const _0x523632=_0x4ec7b1;if(_0x523632(0x1bb)!==_0x296ed4)return;const {replyId:_0x2b0a2d,partIndex:_0x59dda1}=this[_0x523632(0x238)];this[_0x523632(0x238)]=null,this[_0x523632(0x208)][_0x523632(0x2c6)]({'id':_0x2b0a2d,'index':_0x59dda1,'isActive':!0x1});}));}async[_0x48c6da(0x2c7)](){const _0xa8bcc4=_0x48c6da;this[_0xa8bcc4(0x203)]instanceof _0x393a83?this[_0xa8bcc4(0x263)](this[_0xa8bcc4(0x203)]):this[_0xa8bcc4(0x235)](this[_0xa8bcc4(0x203)][_0xa8bcc4(0x1dc)],_0xa8bcc4(0x25a),(_0x149ac2,_0x402f1e)=>{const _0x188c2d=_0xa8bcc4;_0x402f1e['on'](_0x188c2d(0x1d1),()=>{const _0x434cba=_0x188c2d;this[_0x434cba(0x263)](_0x402f1e);});});const _0x2c3d52=this[_0xa8bcc4(0x203)][_0xa8bcc4(0x25c)][_0xa8bcc4(0x313)](_0xa8bcc4(0x224));let _0x45584e=_0x2c3d52;if(_0xa8bcc4(0x2a8)!=_0x2c3d52||(_0x45584e=await this[_0xa8bcc4(0x2dc)](),_0x45584e))return _0xa8bcc4(0x1b6)==_0x45584e?this[_0xa8bcc4(0x23f)]():this[_0xa8bcc4(0x32b)](_0x45584e);}async[_0x48c6da(0x218)](){const _0x3ba824=_0x48c6da;return await this[_0x3ba824(0x28e)](),this[_0x3ba824(0x22e)][_0x3ba824(0x201)](),super[_0x3ba824(0x218)]();}[_0x48c6da(0x316)](_0x52136c){const _0x5ee0d7=_0x48c6da,_0x5ca860=_0x5d583e(this[_0x5ee0d7(0x203)]);if(!_0x5ca860[_0x5ee0d7(0x2a3)][_0x5ee0d7(0x1e8)](_0x5ee0d7(0x304)))throw new _0x389a1f(_0x5ee0d7(0x307),null);const _0x34e5c5=this[_0x5ee0d7(0x203)][_0x5ee0d7(0x2a3)][_0x5ee0d7(0x313)](_0x5ee0d7(0x266)),{reply:_0x504b9a,interaction:_0x407329}=this[_0x5ee0d7(0x1bd)](_0x52136c[_0x5ee0d7(0x21a)]),_0x9926b3=this[_0x5ee0d7(0x2f7)](_0x52136c[_0x5ee0d7(0x21a)],_0x52136c[_0x5ee0d7(0x271)]),_0x3dfb04=void 0x0!==_0x52136c[_0x5ee0d7(0x271)]?[_0x504b9a[_0x5ee0d7(0x240)][_0x52136c[_0x5ee0d7(0x271)]]]:_0x504b9a[_0x5ee0d7(0x240)][_0x5ee0d7(0x2b5)](_0x531c82=>_0x5ee0d7(0x30a)==_0x531c82[_0x5ee0d7(0x1e4)]),_0x44aa09=_0x3dfb04[_0x5ee0d7(0x2c5)](_0x42da50=>_0x504b9a[_0x5ee0d7(0x240)][_0x5ee0d7(0x280)](_0x42da50));if(!_0x9926b3||_0x5ee0d7(0x2dd)==_0x9926b3[_0x5ee0d7(0x302)][_0x5ee0d7(0x324)][_0x5ee0d7(0x29d)])return void _0x44aa09[_0x5ee0d7(0x262)](_0x22c06c=>_0x504b9a[_0x5ee0d7(0x326)](_0x22c06c,_0x5ee0d7(0x27d)));_0x44aa09[_0x5ee0d7(0x262)](_0xfaa360=>_0x504b9a[_0x5ee0d7(0x326)](_0xfaa360,_0x5ee0d7(0x2ea)));const _0x2271ec=_0x297899({'editor':_0x5ca860,'reply':_0x504b9a,'interaction':_0x407329,'groups':_0x3dfb04,'transform':!0x0,'documentCompare':_0x34e5c5,'documentCompareOptions':{'anchor':_0x5ee0d7(0x2fe),'markDeletions':!0x0}});let _0x2d6d26;_0x9926b3&&this[_0x5ee0d7(0x28c)](_0x9926b3[_0x5ee0d7(0x302)]),_0x5ca860[_0x5ee0d7(0x2d1)][_0x5ee0d7(0x332)](_0x2174cf=>{const _0x447470=_0x5ee0d7;_0x2d6d26=_0x2174cf[_0x447470(0x2d0)],_0x5ca860[_0x447470(0x2a3)][_0x447470(0x313)](_0x447470(0x2f8))[_0x447470(0x2f4)](_0x2271ec),this[_0x447470(0x23d)][_0x447470(0x1d4)](_0x447470(0x248));}),this[_0x5ee0d7(0x2f5)][_0x5ee0d7(0x2e2)](_0x2d6d26,{'interactionId':_0x407329['id'],'replyId':_0x504b9a['id'],'indexes':_0x44aa09[_0x5ee0d7(0x294)]()}),this[_0x5ee0d7(0x215)](_0x504b9a);}[_0x48c6da(0x2b7)](_0x5a01d8){const _0x92d9ec=_0x48c6da,_0x32e3e2=_0x5d583e(this[_0x92d9ec(0x203)]),_0x4a9c22=this[_0x92d9ec(0x203)][_0x92d9ec(0x2a3)][_0x92d9ec(0x313)](_0x7cb4a0),{reply:_0x3437ec,interaction:_0x15d4c6}=this[_0x92d9ec(0x1bd)](_0x5a01d8[_0x92d9ec(0x21a)]),_0x4aefe0=this[_0x92d9ec(0x2f7)](_0x5a01d8[_0x92d9ec(0x21a)],_0x5a01d8[_0x92d9ec(0x271)]),_0x352987=void 0x0!==_0x5a01d8[_0x92d9ec(0x271)]?[_0x3437ec[_0x92d9ec(0x240)][_0x5a01d8[_0x92d9ec(0x271)]]]:_0x3437ec[_0x92d9ec(0x240)][_0x92d9ec(0x2b5)](_0x5f421c=>_0x92d9ec(0x30a)==_0x5f421c[_0x92d9ec(0x1e4)]),_0x78ac52=_0x352987[_0x92d9ec(0x2c5)](_0x4bd0b1=>_0x3437ec[_0x92d9ec(0x240)][_0x92d9ec(0x280)](_0x4bd0b1));if(!_0x4aefe0||_0x92d9ec(0x2dd)==_0x4aefe0[_0x92d9ec(0x302)][_0x92d9ec(0x324)][_0x92d9ec(0x29d)])return void _0x78ac52[_0x92d9ec(0x262)](_0x4725a0=>_0x3437ec[_0x92d9ec(0x326)](_0x4725a0,_0x92d9ec(0x27d)));_0x78ac52[_0x92d9ec(0x262)](_0x22a26a=>_0x3437ec[_0x92d9ec(0x326)](_0x22a26a,_0x92d9ec(0x2ea)));const _0x1d1df0=_0x297899({'editor':_0x32e3e2,'reply':_0x3437ec,'interaction':_0x15d4c6,'groups':_0x352987,'transform':!0x0,'documentCompare':_0x4a9c22,'documentCompareOptions':{'anchor':_0x92d9ec(0x2fe),'markDeletions':!0x1}});let _0x40192e;_0x4aefe0&&this[_0x92d9ec(0x28c)](_0x4aefe0[_0x92d9ec(0x302)]),_0x32e3e2[_0x92d9ec(0x2d1)][_0x92d9ec(0x332)](_0x51a60a=>{const _0x5abb1b=_0x92d9ec;_0x40192e=_0x51a60a[_0x5abb1b(0x2d0)];for(const _0x176711 of _0x1d1df0)_0x176711[_0x5abb1b(0x21c)]=_0x32e3e2[_0x5abb1b(0x2d1)][_0x5abb1b(0x32d)][_0x5abb1b(0x23b)],_0x24c98e(_0x32e3e2,_0x176711),_0x51a60a[_0x5abb1b(0x2d0)][_0x5abb1b(0x1ff)](_0x176711),_0x32e3e2[_0x5abb1b(0x2d1)][_0x5abb1b(0x2f0)](_0x176711);}),this[_0x92d9ec(0x2f5)][_0x92d9ec(0x2e2)](_0x40192e,{'interactionId':_0x15d4c6['id'],'replyId':_0x3437ec['id'],'indexes':_0x78ac52[_0x92d9ec(0x294)]()}),this[_0x92d9ec(0x215)](_0x3437ec);}[_0x48c6da(0x283)](_0x3010a2){const _0x20e534=_0x48c6da,{reply:_0x1f65bc}=this[_0x20e534(0x1bd)](_0x3010a2[_0x20e534(0x21a)]);_0x1f65bc[_0x20e534(0x326)](_0x3010a2[_0x20e534(0x271)],_0x20e534(0x32e));}[_0x48c6da(0x1ec)](_0x4f26a9,_0x44e386){const _0x5de1de=_0x48c6da;if(!this[_0x5de1de(0x260)])return;const {reply:_0x1fa292}=this[_0x5de1de(0x1bd)](_0x4f26a9),_0xc17d1=_0x1fa292[_0x5de1de(0x292)]({'showDiff':this[_0x5de1de(0x245)]});let _0xa34b67,_0x1d74c4;if(void 0x0!==_0x44e386?(_0x1d74c4=_0xc17d1[_0x5de1de(0x327)](_0xb710c9=>_0xb710c9[_0x5de1de(0x27f)]==_0x44e386),_0xa34b67=_0x1d74c4?.[_0x5de1de(0x27f)]):(_0x1d74c4=_0xc17d1[0x0],_0xa34b67=_0x1d74c4[_0x5de1de(0x27f)]),this[_0x5de1de(0x238)]?.[_0x5de1de(0x21a)]==_0x4f26a9&&this[_0x5de1de(0x238)]?.[_0x5de1de(0x271)]==_0xa34b67)return;const _0x15ac23=this[_0x5de1de(0x1e1)](_0x4f26a9,_0x1fa292,_0x1d74c4);if(!_0x15ac23)return void this[_0x5de1de(0x260)][_0x5de1de(0x1c2)]();this[_0x5de1de(0x238)]={'replyId':_0x4f26a9,'partIndex':_0xa34b67},this[_0x5de1de(0x28c)](_0x15ac23,!0x0);const _0x57e733=this[_0x5de1de(0x1b9)](_0x4f26a9,_0xa34b67,_0x5de1de(0x204));this[_0x5de1de(0x260)][_0x5de1de(0x2f6)]({'part':_0x1d74c4,'renderingStrategy':_0x5de1de(0x309)}),this[_0x5de1de(0x260)][_0x5de1de(0x27b)]({'index':_0xa34b67,'title':_0x35b06d(this[_0x5de1de(0x203)][_0x5de1de(0x255)],_0x5de1de(0x1f2),(_0xa34b67+0x1)[_0x5de1de(0x254)]()),'showRotator':null!==_0x57e733,'ranges':[_0x15ac23],'areActionsDisabled':_0x1fa292[_0x5de1de(0x297)]}),this[_0x5de1de(0x260)][_0x5de1de(0x239)](_0x5de1de(0x30a)),this[_0x5de1de(0x208)][_0x5de1de(0x24d)](_0x4f26a9,_0xa34b67),this[_0x5de1de(0x208)][_0x5de1de(0x2c6)]({'id':_0x4f26a9,'index':_0xa34b67,'isActive':!0x0});}[_0x48c6da(0x1b9)](_0x1561ae,_0x3ebb29,_0x28ccd2){const _0x27c4c9=_0x48c6da,{reply:_0x4aef02}=this[_0x27c4c9(0x1bd)](_0x1561ae),_0x31ef85=_0x4aef02[_0x27c4c9(0x292)]({'showDiff':this[_0x27c4c9(0x245)]});if(0x1==_0x31ef85[_0x27c4c9(0x30e)])return null;const _0xde869b=_0x31ef85[_0x27c4c9(0x2db)](_0xa4b916=>_0xa4b916[_0x27c4c9(0x27f)]==_0x3ebb29),_0x5d6b20=_0x27c4c9(0x204)==_0x28ccd2?0x1:-0x1;let _0xf9303c=_0x31ef85['at']((_0xde869b+_0x5d6b20)%_0x31ef85[_0x27c4c9(0x30e)])[_0x27c4c9(0x27f)],_0x56e849=_0x31ef85[_0xf9303c];for(;!this[_0x27c4c9(0x1e1)](_0x1561ae,_0x4aef02,_0x56e849);){if(_0xf9303c=_0x31ef85['at']((_0xf9303c+_0x5d6b20)%_0x31ef85[_0x27c4c9(0x30e)])[_0x27c4c9(0x27f)],_0xf9303c===_0xde869b)return null;_0x56e849=_0x31ef85[_0xf9303c];}return _0xf9303c;}[_0x48c6da(0x1e1)](_0x53fabf,_0x3bf310,_0x31f68f){const _0x18a668=_0x48c6da,_0x279503=_0x3bf310[_0x18a668(0x240)];if(!_0x31f68f[_0x18a668(0x2d3)])return null;const _0x1ee822=_0x279503[_0x18a668(0x327)](_0xd5bd4c=>_0xd5bd4c[_0x18a668(0x27f)]==_0x31f68f[_0x18a668(0x27f)]);if(_0x18a668(0x30a)!==_0x1ee822?.[_0x18a668(0x1e4)])return null;const _0x478cd1=this[_0x18a668(0x2f7)](_0x53fabf,_0x31f68f[_0x18a668(0x27f)]);if(!_0x478cd1)return null;const {range:_0x337940,currentIndex:_0x177c84}=_0x478cd1;return _0x18a668(0x2dd)==_0x337940[_0x18a668(0x324)][_0x18a668(0x29d)]?(_0x3bf310[_0x18a668(0x326)](_0x177c84,_0x18a668(0x27d)),null):_0x478cd1[_0x18a668(0x302)];}[_0x48c6da(0x2f7)](_0x34d1ec,_0x2041c3){const _0x1bd8ee=_0x48c6da,_0x1f48ff=_0x5d583e(this[_0x1bd8ee(0x203)]),{reply:_0x15686c,interaction:_0x23d995}=this[_0x1bd8ee(0x1bd)](_0x34d1ec),_0x52ad60=_0x15686c[_0x1bd8ee(0x240)][_0x1bd8ee(0x2b5)](_0x426f97=>_0x1bd8ee(0x30a)==_0x426f97[_0x1bd8ee(0x1e4)]),_0x42c4e3=_0x52ad60[_0x1bd8ee(0x2c5)](_0x4e4fb3=>_0x15686c[_0x1bd8ee(0x240)][_0x1bd8ee(0x280)](_0x4e4fb3));void 0x0===_0x2041c3&&(_0x2041c3=_0x42c4e3[0x0]);const _0x4fc55f=_0x42c4e3[_0x1bd8ee(0x280)](_0x2041c3);if(-0x1==_0x4fc55f)return null;const _0x9f6a45=_0x52ad60[_0x4fc55f],_0x115e09=new _0x4d7919([]),_0x20bb69=new _0x4d7919([]);for(const _0x369a9f of _0x9f6a45[_0x1bd8ee(0x2ae)])if(_0x1bd8ee(0x265)!=_0x369a9f[_0x1bd8ee(0x28b)]&&_0x20bb69[_0x1bd8ee(0x2bc)][_0x1bd8ee(0x242)](_0x369a9f[_0x1bd8ee(0x2fb)][_0x1bd8ee(0x296)](!0x0)),_0x1bd8ee(0x1b6)!=_0x369a9f[_0x1bd8ee(0x28b)]){const _0x354d34=_0x4a9de3(_0x427ff5=>_0x3ce968(_0x427ff5,_0x1bd8ee(0x1cc))==_0x369a9f['id'],_0x15686c[_0x1bd8ee(0x206)],!0x0);_0x115e09[_0x1bd8ee(0x2bc)][_0x1bd8ee(0x242)](_0x354d34[_0x1bd8ee(0x296)](!0x0));}if(0x0==_0x115e09[_0x1bd8ee(0x2bc)][_0x1bd8ee(0x30e)]){if(_0x9f6a45[_0x1bd8ee(0x2ae)][0x0][_0x1bd8ee(0x31f)]){const _0x34bd27=_0x5e2649(_0x1bd8ee(0x1cc),_0x9f6a45[_0x1bd8ee(0x2ae)][0x0][_0x1bd8ee(0x31f)],_0x15686c[_0x1bd8ee(0x206)]);_0x115e09[_0x1bd8ee(0x2bc)][_0x1bd8ee(0x2c9)](_0x34bd27[_0x1bd8ee(0x296)](!0x0)),_0x20bb69[_0x1bd8ee(0x2bc)][_0x1bd8ee(0x2c9)](_0x34bd27[_0x1bd8ee(0x296)](!0x0)),_0x34bd27[_0x1bd8ee(0x261)]&&(_0x115e09[_0x1bd8ee(0x2bc)][_0x1bd8ee(0x242)](_0x34bd27[_0x1bd8ee(0x261)][_0x1bd8ee(0x296)](!0x0)),_0x20bb69[_0x1bd8ee(0x2bc)][_0x1bd8ee(0x242)](_0x34bd27[_0x1bd8ee(0x261)][_0x1bd8ee(0x296)](!0x0)));}else{const _0xf39c94=_0x15686c[_0x1bd8ee(0x206)][_0x1bd8ee(0x2bc)][0x0];if(!_0xf39c94)return null;_0x115e09[_0x1bd8ee(0x2bc)][_0x1bd8ee(0x242)](_0xf39c94[_0x1bd8ee(0x296)](!0x0)),_0x20bb69[_0x1bd8ee(0x2bc)][_0x1bd8ee(0x242)](_0xf39c94[_0x1bd8ee(0x296)](!0x0));}}const _0x1d60d7=_0x23d995[_0x1bd8ee(0x328)](),_0x32520b=_0x1f48ff[_0x1bd8ee(0x20b)][_0x1bd8ee(0x217)](_0x1d60d7[_0x1bd8ee(0x1b7)]),_0x49edf5=_0x355a97(_0x115e09),_0x51a684=_0x1f48ff[_0x1bd8ee(0x20b)][_0x1bd8ee(0x217)](_0x49edf5),_0x250fa9=_0x1f48ff[_0x1bd8ee(0x20b)][_0x1bd8ee(0x217)](_0x49edf5),_0x425eed=_0x1f48ff[_0x1bd8ee(0x2d1)][_0x1bd8ee(0x23e)](_0x51a684,0x0),_0x4a3304=_0x355a97(_0x20bb69),_0x177b49={'anchor':_0x425eed,'markDeletions':!0x1},_0x13d8d6=_0x1f48ff[_0x1bd8ee(0x2a3)][_0x1bd8ee(0x313)](_0x7cb4a0)[_0x1bd8ee(0x333)](_0x49edf5,_0x4a3304,_0x177b49)[_0x1bd8ee(0x1bc)]();if(!_0x13d8d6[_0x1bd8ee(0x30e)])return null;_0x1f48ff[_0x1bd8ee(0x2d1)][_0x1bd8ee(0x332)](_0x32ca98=>{const _0x39e533=_0x1bd8ee;for(const _0x105270 of _0x13d8d6)if(_0x39e533(0x25f)==_0x105270[_0x39e533(0x28b)]){const _0x578f4c=_0x105270[_0x39e533(0x272)],_0xf16795=_0x105270[_0x39e533(0x1e2)],_0x3e3801=new _0x17ad93(_0x578f4c,_0xf16795);_0x32ca98[_0x39e533(0x2d0)][_0x39e533(0x1ff)](_0x3e3801),_0x1f48ff[_0x39e533(0x2d1)][_0x39e533(0x2f0)](_0x3e3801);}else _0x39e533(0x31b)!==_0x105270[_0x39e533(0x28b)]&&(_0x105270[_0x39e533(0x21c)]=null,_0x105270[_0x39e533(0x1f5)]=!0x1,_0x32ca98[_0x39e533(0x2d0)][_0x39e533(0x1ff)](_0x105270),_0x1f48ff[_0x39e533(0x2d1)][_0x39e533(0x2f0)](_0x105270));});const _0x235798=_0xeef033(_0x1f48ff,_0x13d8d6,_0x51a684);_0x1eb12e(_0x1f48ff[_0x1bd8ee(0x2d1)],_0x235798);const _0x1039ba=_0x235798[_0x1bd8ee(0x30b)]()[_0x1bd8ee(0x253)][_0x1bd8ee(0x22c)][_0x1bd8ee(0x294)](),_0x3b8685=_0x235798[_0x1bd8ee(0x30b)]()[_0x1bd8ee(0x25e)][_0x1bd8ee(0x22c)][_0x1bd8ee(0x294)](),_0x23a344=[];let _0x42a196=_0x51a684,_0xb386a0=_0x250fa9;for(let _0x1adc6a=0x0;_0x1adc6a<_0x3b8685[_0x1bd8ee(0x30e)];_0x1adc6a++){const _0x191524=_0x42a196[_0x1bd8ee(0x222)]-_0x3b8685[_0x1adc6a];_0x23a344[_0x1adc6a]=_0xb386a0[_0x1bd8ee(0x222)]-_0x191524,_0x42a196=_0x42a196[_0x1bd8ee(0x2bb)](_0x3b8685[_0x1adc6a]),_0xb386a0=_0xb386a0[_0x1bd8ee(0x2bb)](_0x23a344[_0x1adc6a]);}const _0x5551b5=_0x1f48ff[_0x1bd8ee(0x2d1)][_0x1bd8ee(0x29a)](_0x1f48ff[_0x1bd8ee(0x2d1)][_0x1bd8ee(0x2c2)](_0x250fa9,_0x1039ba),_0x1f48ff[_0x1bd8ee(0x2d1)][_0x1bd8ee(0x2c2)](_0x250fa9,_0x23a344)),_0x43502a=_0x250fa9[_0x1bd8ee(0x1b0)](0x0)[_0x1bd8ee(0x306)](_0x42426c),_0x43276f=Array[_0x1bd8ee(0x21e)](_0x32520b[_0x1bd8ee(0x2b2)]())[_0x1bd8ee(0x327)](_0x1bc497=>_0x1bc497[_0x1bd8ee(0x306)](_0x42426c)==_0x43502a)[_0x1bd8ee(0x310)](),_0x29d47a=_0x5551b5[_0x1bd8ee(0x253)][_0x1bd8ee(0x22c)][_0x1bd8ee(0x294)](),_0x2d0890=_0x5551b5[_0x1bd8ee(0x25e)][_0x1bd8ee(0x22c)][_0x1bd8ee(0x294)]();_0x29d47a[0x0]=_0x43276f[0x0]+_0x29d47a[0x0],_0x2d0890[0x0]=_0x43276f[0x0]+_0x2d0890[0x0];let _0x3eb395=_0x1f48ff[_0x1bd8ee(0x2d1)][_0x1bd8ee(0x29a)](_0x1f48ff[_0x1bd8ee(0x2d1)][_0x1bd8ee(0x2c2)](_0x1f48ff[_0x1bd8ee(0x2d1)][_0x1bd8ee(0x32d)][_0x1bd8ee(0x223)](),_0x29d47a),_0x1f48ff[_0x1bd8ee(0x2d1)][_0x1bd8ee(0x2c2)](_0x1f48ff[_0x1bd8ee(0x2d1)][_0x1bd8ee(0x32d)][_0x1bd8ee(0x223)](),_0x2d0890));const _0x50e180=_0x1f48ff[_0x1bd8ee(0x2d1)][_0x1bd8ee(0x32d)][_0x1bd8ee(0x2c3)][_0x1bd8ee(0x1bc)](_0x1d60d7[_0x1bd8ee(0x23b)]);for(const _0x5496e7 of _0x50e180)_0x3eb395=_0x1e8fed[_0x1bd8ee(0x1f0)](_0x3eb395[_0x1bd8ee(0x317)](_0x5496e7));return{'range':_0x3eb395,'currentIndex':_0x2041c3};}[_0x48c6da(0x263)](_0x2de784){const _0x45b5d7=_0x48c6da;if(!_0x2de784[_0x45b5d7(0x2a3)][_0x45b5d7(0x1e8)](_0x45b5d7(0x209)))return;const _0x280a05=_0x2de784[_0x45b5d7(0x212)][_0x45b5d7(0x313)](_0x45b5d7(0x281)),_0xce3d8e=_0x2de784[_0x45b5d7(0x212)][_0x45b5d7(0x313)](_0x45b5d7(0x322));this[_0x45b5d7(0x235)](_0x280a05,_0x45b5d7(0x21b),(_0x350d53,_0x19d0e4,_0x4a2f70)=>{const _0x5d8ab1=_0x45b5d7,_0x324cbf=this[_0x5d8ab1(0x2f5)][_0x5d8ab1(0x313)](_0x19d0e4);if(!_0x324cbf)return;const _0x43f937=this[_0x5d8ab1(0x2ad)][_0x5d8ab1(0x20e)](_0x324cbf[_0x5d8ab1(0x1c9)])[_0x5d8ab1(0x210)](_0x324cbf[_0x5d8ab1(0x21a)]);_0x324cbf[_0x5d8ab1(0x337)][_0x5d8ab1(0x262)](_0x46b1b5=>_0x43f937[_0x5d8ab1(0x326)](_0x46b1b5,_0x5d8ab1(0x30a))),this[_0x5d8ab1(0x2f5)][_0x5d8ab1(0x258)](_0x19d0e4),this[_0x5d8ab1(0x2f5)][_0x5d8ab1(0x2e2)](_0x4a2f70,_0x324cbf);}),this[_0x45b5d7(0x235)](_0xce3d8e,_0x45b5d7(0x21b),(_0x60084e,_0x38d014,_0x59541d)=>{const _0x4b75fa=_0x45b5d7,_0x561134=this[_0x4b75fa(0x2f5)][_0x4b75fa(0x313)](_0x38d014);if(!_0x561134)return;const _0x4ed51c=this[_0x4b75fa(0x2ad)][_0x4b75fa(0x20e)](_0x561134[_0x4b75fa(0x1c9)])[_0x4b75fa(0x210)](_0x561134[_0x4b75fa(0x21a)]);_0x561134[_0x4b75fa(0x337)][_0x4b75fa(0x262)](_0x19cecd=>_0x4ed51c[_0x4b75fa(0x326)](_0x19cecd,_0x4b75fa(0x2ea))),this[_0x4b75fa(0x2f5)][_0x4b75fa(0x258)](_0x38d014),this[_0x4b75fa(0x2f5)][_0x4b75fa(0x2e2)](_0x59541d,_0x561134);});}async[_0x48c6da(0x32b)](_0x3477a2){const _0x1229a1=_0x48c6da;this[_0x1229a1(0x203)][_0x1229a1(0x2a3)][_0x1229a1(0x1e8)](_0x1229a1(0x26c))&&this[_0x1229a1(0x203)][_0x1229a1(0x2a3)][_0x1229a1(0x313)](_0x1229a1(0x26c))[_0x1229a1(0x1c2)](),(this[_0x1229a1(0x203)][_0x1229a1(0x2a3)][_0x1229a1(0x313)](_0xf46de6)[_0x1229a1(0x1b4)][_0x1229a1(0x32f)](_0x1229a1(0x252)),this[_0x1229a1(0x208)][_0x1229a1(0x216)](_0x1229a1(0x309)),this[_0x1229a1(0x208)][_0x1229a1(0x2a1)](!0x0),await this[_0x1229a1(0x28e)]());try{await this[_0x1229a1(0x319)][_0x1229a1(0x30c)](_0x3477a2)[_0x1229a1(0x1c1)](),await this[_0x1229a1(0x23f)](_0x3477a2),this[_0x1229a1(0x20f)]('\x20'),await this[_0x1229a1(0x2ad)][_0x1229a1(0x234)](_0x3477a2,this[_0x1229a1(0x23d)][_0x1229a1(0x1df)]),this[_0x1229a1(0x2ad)][_0x1229a1(0x1f8)]()&&this[_0x1229a1(0x226)]();}catch(_0x4d120d){this[_0x1229a1(0x208)][_0x1229a1(0x1cd)]({'errorMessage':_0x35b06d(this[_0x1229a1(0x203)][_0x1229a1(0x255)],_0x1229a1(0x321)),'id':_0x3477a2}),this[_0x1229a1(0x284)](new _0x389a1f(_0x1229a1(0x31d),this,{'error':_0x4d120d}));}finally{this[_0x1229a1(0x208)][_0x1229a1(0x23c)](),this[_0x1229a1(0x208)][_0x1229a1(0x216)](_0x1229a1(0x29f)),this[_0x1229a1(0x208)][_0x1229a1(0x2a1)](!0x1);}}async[_0x48c6da(0x2dc)](){const _0x391da4=_0x48c6da,_0x12004f=this[_0x391da4(0x319)][_0x391da4(0x269)](this[_0x391da4(0x1e0)](),{'limit':0x1,'sortBy':_0x391da4(0x335)});try{const _0x1e9e2c=await _0x12004f[_0x391da4(0x2b4)]();return _0x1e9e2c[_0x391da4(0x30e)]?_0x1e9e2c[0x0]['id']:_0x391da4(0x1b6);}catch(_0x5a1f5f){return this[_0x391da4(0x208)][_0x391da4(0x1cd)]({'errorMessage':_0x35b06d(this[_0x391da4(0x203)][_0x391da4(0x255)],_0x391da4(0x321)),'id':_0x9c3bdb()}),this[_0x391da4(0x284)](new _0x389a1f(_0x391da4(0x277),this,{'error':_0x5a1f5f})),this[_0x391da4(0x208)][_0x391da4(0x2a1)](!0x1),this[_0x391da4(0x208)][_0x391da4(0x1be)](),null;}}[_0x48c6da(0x221)](_0x3b8b2e){const _0x44ce26=_0x48c6da;this[_0x44ce26(0x2ad)]['id']===_0x3b8b2e&&this[_0x44ce26(0x23f)]();}[_0x48c6da(0x226)](){const _0x34d7e8=_0x48c6da;this[_0x34d7e8(0x2ad)]?.[_0x34d7e8(0x257)](_0x35b06d(this[_0x34d7e8(0x203)][_0x34d7e8(0x255)],_0x34d7e8(0x1b1)));}async[_0x48c6da(0x264)](){const _0x25f55c=_0x48c6da,_0x4de6b4=this[_0x25f55c(0x23d)][_0x25f55c(0x2a6)]();this[_0x25f55c(0x2ad)]?.[_0x25f55c(0x2de)](_0x4de6b4),this[_0x25f55c(0x226)]();}[_0x48c6da(0x1d0)](){const _0x4ceeaf=_0x48c6da;this[_0x4ceeaf(0x2ad)]?.[_0x4ceeaf(0x256)]();}[_0x48c6da(0x2be)](){const _0x30ca23=_0x48c6da;this[_0x30ca23(0x208)][_0x30ca23(0x2be)]();}async[_0x48c6da(0x2a9)](){const _0x543531=_0x48c6da;await this[_0x543531(0x23f)]();}async[_0x48c6da(0x2aa)]({message:_0x1352d3,attributes:_0x475887}){const _0x465f2b=_0x48c6da;await this[_0x465f2b(0x2fd)]({'userMessage':_0x1352d3,'attributes':_0x475887});}[_0x48c6da(0x1e0)](){const _0x5c4889=_0x48c6da,_0x1d8b51=this[_0x5c4889(0x203)][_0x5c4889(0x25c)][_0x5c4889(0x313)](_0x5c4889(0x1b2));if(!_0x1d8b51)throw new _0x389a1f(_0x5c4889(0x1d6),this);return _0x1d8b51;}async[_0x48c6da(0x23f)](_0x13864d){const _0x58e6ff=_0x48c6da;try{this[_0x58e6ff(0x208)][_0x58e6ff(0x339)](),await this[_0x58e6ff(0x288)](_0x13864d);}catch(_0x129a7e){this[_0x58e6ff(0x208)][_0x58e6ff(0x1cd)]({'errorMessage':_0x35b06d(this[_0x58e6ff(0x203)][_0x58e6ff(0x255)],_0x58e6ff(0x330)),'id':_0x13864d||_0x9c3bdb()}),console[_0x58e6ff(0x268)](_0x129a7e),this[_0x58e6ff(0x2ad)]=void 0x0,this[_0x58e6ff(0x208)][_0x58e6ff(0x1be)]();}}async[_0x48c6da(0x288)](_0x39cf7c){const _0x16119c=_0x48c6da;let _0x3612c9;this[_0x16119c(0x203)][_0x16119c(0x2a3)][_0x16119c(0x1e8)](_0x16119c(0x26c))&&this[_0x16119c(0x203)][_0x16119c(0x2a3)][_0x16119c(0x313)](_0x16119c(0x26c))[_0x16119c(0x1c2)](),_0x39cf7c||!this[_0x16119c(0x2ad)]?_0x3612c9=this[_0x16119c(0x203)][_0x16119c(0x25c)][_0x16119c(0x313)](_0x16119c(0x2ff)):this[_0x16119c(0x208)][_0x16119c(0x30d)]&&(_0x3612c9=this[_0x16119c(0x2ad)][_0x16119c(0x200)]['id']),await this[_0x16119c(0x28e)]();const _0x18b53f=this[_0x16119c(0x1e0)](),_0x211d71=_0x39cf7c||_0x9c3bdb();this[_0x16119c(0x2ad)]=new _0x409660({'connector':this[_0x16119c(0x319)],'chatModels':this[_0x16119c(0x1e6)],'selectedModelId':_0x3612c9,'conversationId':_0x211d71,'group':_0x18b53f,'getEditor':()=>_0x5d583e(this[_0x16119c(0x203)]),'isFromHistory':!!_0x39cf7c}),this[_0x16119c(0x2ad)][_0x16119c(0x1c7)](_0x16119c(0x2da),_0x16119c(0x2ca))['to'](this),this[_0x16119c(0x2ad)]['on'](_0x16119c(0x267),(_0x4f9502,_0x5dffd7)=>{const _0x1f4b65=_0x16119c;this[_0x1f4b65(0x208)][_0x1f4b65(0x1ed)](_0x5dffd7),this[_0x1f4b65(0x208)][_0x1f4b65(0x2e5)](),this[_0x1f4b65(0x208)][_0x1f4b65(0x1e5)](),this[_0x1f4b65(0x208)][_0x1f4b65(0x22f)](),_0x39cf7c||(this[_0x1f4b65(0x208)][_0x1f4b65(0x2bf)](),this[_0x1f4b65(0x226)]());}),this[_0x16119c(0x2ad)]['on'](_0x16119c(0x250),(_0x5758b2,_0x167641)=>{const _0x10f813=_0x16119c;this[_0x10f813(0x208)][_0x10f813(0x2bd)](_0x167641[_0x10f813(0x2f2)]);}),this[_0x16119c(0x2ad)]['on'](_0x16119c(0x2a2),(_0x47817f,_0x5d7345)=>{const _0x6b20cb=_0x16119c;this[_0x6b20cb(0x208)][_0x6b20cb(0x2ba)](_0x5d7345);}),this[_0x16119c(0x2ad)]['on'](_0x16119c(0x1b3),()=>{const _0xf39daa=_0x16119c,_0x1707b8=this[_0xf39daa(0x208)][_0xf39daa(0x278)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0xf39daa(0x208)][_0xf39daa(0x290)](_0x1707b8);}),this[_0x16119c(0x2ad)]['on'](_0x16119c(0x275),()=>{const _0x37a76a=_0x16119c,_0x2a6864=this[_0x37a76a(0x208)][_0x37a76a(0x278)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x37a76a(0x208)][_0x37a76a(0x290)](_0x2a6864);}),this[_0x16119c(0x2ad)]['on'](_0x16119c(0x213),(_0x140aa4,_0x17e9b3)=>{const _0x22d42a=_0x16119c;this[_0x22d42a(0x208)][_0x22d42a(0x1ee)](_0x17e9b3,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x16119c(0x2ad)]['on'](_0x16119c(0x334),(_0x18bf3c,_0x50f5c5)=>{const _0x204a33=_0x16119c;this[_0x204a33(0x208)][_0x204a33(0x1ee)](_0x50f5c5,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x16119c(0x2ad)]['on'](_0x16119c(0x2ca),()=>{const _0x1c9878=_0x16119c;this[_0x1c9878(0x208)][_0x1c9878(0x24a)]();}),this[_0x16119c(0x2ad)]['on'](_0x16119c(0x229),async()=>{const _0xfd40f8=_0x16119c;await this[_0xfd40f8(0x208)][_0xfd40f8(0x20c)]();}),this[_0x16119c(0x2ad)]['on'](_0x16119c(0x300),(_0x36a06d,_0x45a95e)=>{const _0x378c7a=_0x16119c;this[_0x378c7a(0x208)][_0x378c7a(0x2eb)](_0x45a95e['id']);}),this[_0x16119c(0x2ad)]['on'](_0x16119c(0x2cd),(_0x333e00,_0x39c2ba,_0x136376)=>{const _0x56c692=_0x16119c;this[_0x56c692(0x20f)](_0x39c2ba,_0x136376);}),this[_0x16119c(0x2ad)]['on'](_0x16119c(0x2ee),(_0x1a52b6,_0x541afa)=>{const _0x1f75be=_0x16119c;_0x1f75be(0x25b)===_0x541afa[_0x1f75be(0x28b)]?this[_0x1f75be(0x208)][_0x1f75be(0x2a0)](_0x541afa):this[_0x1f75be(0x208)][_0x1f75be(0x1fd)](_0x541afa);}),this[_0x16119c(0x2ad)]['on'](_0x16119c(0x1d3),async(_0x4c2b9c,_0x4e386b)=>{const _0x491db9=_0x16119c;await this[_0x491db9(0x2d8)]({'reply':_0x4e386b});}),this[_0x16119c(0x2ad)]['on'](_0x16119c(0x329),(_0x11d1ed,{reply:_0x34b035,index:_0x496c73,state:_0x15742e})=>{const _0x4cc9c0=_0x16119c;this[_0x4cc9c0(0x208)][_0x4cc9c0(0x1fe)]({'id':_0x34b035['id'],'index':_0x496c73,'state':_0x15742e}),this[_0x4cc9c0(0x238)]?.[_0x4cc9c0(0x21a)][_0x4cc9c0(0x1c5)](_0x34b035['id'])&&this[_0x4cc9c0(0x238)]?.[_0x4cc9c0(0x271)]==_0x496c73&&this[_0x4cc9c0(0x260)]?.[_0x4cc9c0(0x239)](_0x15742e);}),this[_0x16119c(0x2ad)]['on'](_0x16119c(0x2cf),(_0xdefc7e,_0x3b7d2d)=>{const _0x42ba0a=_0x16119c;if(this[_0x42ba0a(0x208)][_0x42ba0a(0x291)](_0x3b7d2d[_0x42ba0a(0x2af)],_0x3b7d2d[_0x42ba0a(0x1f1)]),_0x42ba0a(0x26d)===_0x3b7d2d[_0x42ba0a(0x2af)][_0x42ba0a(0x28b)]){const _0x2c1f81=[..._0x5d583e(this[_0x42ba0a(0x203)])[_0x42ba0a(0x2d1)][_0x42ba0a(0x32d)][_0x42ba0a(0x26d)][_0x42ba0a(0x2d7)]()];this[_0x42ba0a(0x23d)][_0x42ba0a(0x293)](_0x2c1f81,_0x42ba0a(0x2e3)+this[_0x42ba0a(0x2ad)]?.['id']);}}),this[_0x16119c(0x2ad)]['on'](_0x16119c(0x21f),(_0x1bcf9b,_0x6b73d)=>{const _0x5941df=_0x16119c;this[_0x5941df(0x208)][_0x5941df(0x1c4)](_0x6b73d[_0x5941df(0x2d2)]),_0x5941df(0x1ea)==_0x6b73d[_0x5941df(0x2d2)]&&this[_0x5941df(0x1d0)](),_0x5941df(0x26d)===_0x6b73d[_0x5941df(0x28b)]&&this[_0x5941df(0x23d)][_0x5941df(0x1d4)](_0x5941df(0x2e3)+this[_0x5941df(0x2ad)]?.['id']);}),this[_0x16119c(0x2ad)]['on'](_0x16119c(0x2fc),(_0x3fe166,_0x150918)=>{const _0x55e27d=_0x16119c;this[_0x55e27d(0x208)][_0x55e27d(0x1ca)](_0x150918[_0x55e27d(0x2af)][_0x55e27d(0x2d2)],_0x150918[_0x55e27d(0x1f1)]);}),this[_0x16119c(0x2ad)]['on'](_0x16119c(0x27e),(_0xc2857b,_0x1a6df4)=>{const _0x19fb7e=_0x16119c;this[_0x19fb7e(0x208)][_0x19fb7e(0x26e)](_0x1a6df4[_0x19fb7e(0x219)]);}),this[_0x16119c(0x2ad)]['on'](_0x16119c(0x331),(_0x670c70,_0x2b9f48)=>{const _0xb6016d=_0x16119c;this[_0xb6016d(0x208)][_0xb6016d(0x24b)](_0x2b9f48[_0xb6016d(0x1e7)]);}),this[_0x16119c(0x2ad)]['on'](_0x16119c(0x336),(_0x2842ca,_0x3cd93d)=>{const _0x2bf002=_0x16119c;this[_0x2bf002(0x208)][_0x2bf002(0x315)](_0x3cd93d[_0x2bf002(0x2b3)],_0x3cd93d[_0x2bf002(0x1ef)],_0x3cd93d[_0x2bf002(0x207)],_0x3cd93d[_0x2bf002(0x26f)]);}),this[_0x16119c(0x2ad)]['on'](_0x16119c(0x318),(_0x214461,_0x4ee6af)=>{const _0x2d43f7=_0x16119c;this[_0x2d43f7(0x208)][_0x2d43f7(0x303)](_0x4ee6af[_0x2d43f7(0x2b3)],_0x4ee6af[_0x2d43f7(0x1db)],_0x4ee6af[_0x2d43f7(0x247)]);}),this[_0x16119c(0x2ad)]['on'](_0x16119c(0x211),(_0x142707,_0x9ff60a)=>{const _0x5ae74b=_0x16119c;this[_0x5ae74b(0x208)][_0x5ae74b(0x2b6)](_0x9ff60a);}),this[_0x16119c(0x2ad)]['on'](_0x16119c(0x1c0),async(_0x44796a,_0xe8f61c)=>{const _0x3aef59=_0x16119c,_0x46e59d=(await this[_0x3aef59(0x1e6)][_0x3aef59(0x2d4)]())[_0x3aef59(0x327)](_0x15c4ac=>_0x15c4ac['id']===_0xe8f61c[_0x3aef59(0x200)]['id'])||null;this[_0x3aef59(0x208)][_0x3aef59(0x2b0)](_0x46e59d,_0xe8f61c[_0x3aef59(0x2a4)]);}),this[_0x16119c(0x2ad)]['on'](_0x16119c(0x268),(_0x393cc2,{error:_0x4194fe,interactionId:_0x378a24,fileName:_0x5471db,url:_0x50c61a,sourceId:_0x5aa359,sourceLabel:_0x46a438})=>{const _0x355ce2=_0x16119c,_0x5d4c01=_0x378a24?_0x378a24+':'+_0x9c3bdb():_0x9c3bdb();_0x4194fe[_0x355ce2(0x2c8)][_0x355ce2(0x2e1)](_0x355ce2(0x28d))?this[_0x355ce2(0x208)][_0x355ce2(0x1eb)]({'staticMessage':_0x35b06d(this[_0x355ce2(0x203)][_0x355ce2(0x255)],_0x355ce2(0x21d)),'id':_0x5d4c01}):_0x4194fe[_0x355ce2(0x2c8)][_0x355ce2(0x2e1)](_0x355ce2(0x277))||_0x4194fe[_0x355ce2(0x2c8)][_0x355ce2(0x2e1)](_0x355ce2(0x2df))?(this[_0x355ce2(0x208)][_0x355ce2(0x1cd)]({'errorMessage':_0x35b06d(this[_0x355ce2(0x203)][_0x355ce2(0x255)],_0x355ce2(0x330)),'id':_0x5d4c01}),this[_0x355ce2(0x284)](_0x4194fe)):_0x4194fe[_0x355ce2(0x2c8)][_0x355ce2(0x2e1)](_0x355ce2(0x2ce))?this[_0x355ce2(0x208)][_0x355ce2(0x1cd)]({'errorMessage':_0x35b06d(this[_0x355ce2(0x203)][_0x355ce2(0x255)],_0x355ce2(0x230),_0x5471db),'id':_0x5d4c01}):_0x4194fe[_0x355ce2(0x2c8)][_0x355ce2(0x2e1)](_0x355ce2(0x26b))?this[_0x355ce2(0x208)][_0x355ce2(0x1cd)]({'errorMessage':_0x35b06d(this[_0x355ce2(0x203)][_0x355ce2(0x255)],_0x355ce2(0x2c1),_0x50c61a),'id':_0x5d4c01}):_0x4194fe[_0x355ce2(0x2c8)][_0x355ce2(0x2e1)](_0x355ce2(0x31a))?this[_0x355ce2(0x208)][_0x355ce2(0x1cd)]({'errorMessage':_0x35b06d(this[_0x355ce2(0x203)][_0x355ce2(0x255)],_0x355ce2(0x241)),'id':_0x5d4c01}):_0x4194fe[_0x355ce2(0x2c8)][_0x355ce2(0x2e1)](_0x355ce2(0x20a))?this[_0x355ce2(0x208)][_0x355ce2(0x1cd)]({'errorMessage':_0x35b06d(this[_0x355ce2(0x203)][_0x355ce2(0x255)],_0x355ce2(0x287)),'id':_0x5d4c01}):_0x4194fe[_0x355ce2(0x2c8)][_0x355ce2(0x2e1)](_0x355ce2(0x26a))?(_0x5aa359&&this[_0x355ce2(0x208)][_0x355ce2(0x2a5)](_0x5aa359),this[_0x355ce2(0x208)][_0x355ce2(0x1cd)]({'errorMessage':_0x35b06d(this[_0x355ce2(0x203)][_0x355ce2(0x255)],_0x355ce2(0x29c),_0x46a438||_0x355ce2(0x1ef)),'id':_0x5d4c01}),this[_0x355ce2(0x284)](_0x4194fe)):_0x4194fe[_0x355ce2(0x2c8)][_0x355ce2(0x2e1)](_0x355ce2(0x2d6))?(this[_0x355ce2(0x208)][_0x355ce2(0x1cd)]({'errorMessage':_0x35b06d(this[_0x355ce2(0x203)][_0x355ce2(0x255)],_0x355ce2(0x1c3)),'id':_0x5d4c01}),this[_0x355ce2(0x284)](_0x4194fe)):_0x4194fe[_0x355ce2(0x2c8)][_0x355ce2(0x2e1)](_0x355ce2(0x2e7))?(this[_0x355ce2(0x208)][_0x355ce2(0x1cd)]({'errorMessage':_0x35b06d(this[_0x355ce2(0x203)][_0x355ce2(0x255)],_0x355ce2(0x299)),'id':_0x5d4c01}),this[_0x355ce2(0x284)](_0x4194fe)):_0x4194fe[_0x355ce2(0x2c8)][_0x355ce2(0x2e1)](_0x355ce2(0x228))?(this[_0x355ce2(0x208)][_0x355ce2(0x1cd)]({'errorMessage':_0x35b06d(this[_0x355ce2(0x203)][_0x355ce2(0x255)],_0x355ce2(0x236)),'id':_0x5d4c01}),this[_0x355ce2(0x284)](_0x4194fe)):_0x4194fe[_0x355ce2(0x2c8)][_0x355ce2(0x2e1)](_0x355ce2(0x29b))?(this[_0x355ce2(0x208)][_0x355ce2(0x1cd)]({'errorMessage':_0x35b06d(this[_0x355ce2(0x203)][_0x355ce2(0x255)],_0x355ce2(0x28a)),'id':_0x5d4c01}),this[_0x355ce2(0x284)](_0x4194fe)):_0x4194fe[_0x355ce2(0x2c8)][_0x355ce2(0x2e1)](_0x355ce2(0x314))?(this[_0x355ce2(0x208)][_0x355ce2(0x1cd)]({'errorMessage':_0x35b06d(this[_0x355ce2(0x203)][_0x355ce2(0x255)],_0x355ce2(0x22d)),'id':_0x5d4c01}),this[_0x355ce2(0x284)](_0x4194fe)):_0x4194fe[_0x355ce2(0x2c8)][_0x355ce2(0x2e1)](_0x355ce2(0x1e9))?(this[_0x355ce2(0x208)][_0x355ce2(0x1cd)]({'errorMessage':_0x35b06d(this[_0x355ce2(0x203)][_0x355ce2(0x255)],_0x355ce2(0x23a)),'id':_0x5d4c01}),this[_0x355ce2(0x284)](_0x4194fe)):(this[_0x355ce2(0x208)][_0x355ce2(0x1cd)]({'errorMessage':_0x35b06d(this[_0x355ce2(0x203)][_0x355ce2(0x255)],_0x355ce2(0x1dd)),'id':_0x5d4c01}),this[_0x355ce2(0x284)](_0x4194fe));}),await this[_0x16119c(0x2ad)][_0x16119c(0x1ba)](this[_0x16119c(0x203)][_0x16119c(0x25c)][_0x16119c(0x313)](_0x16119c(0x1cf))),_0x39cf7c||await this[_0x16119c(0x2ad)][_0x16119c(0x253)]();}async[_0x48c6da(0x2fd)]({userMessage:_0x2ccca8,attributes:_0x3980e1}){const _0x453c88=_0x48c6da;if(!this[_0x453c88(0x2ad)])throw new _0x389a1f(_0x453c88(0x2cb));if(this[_0x453c88(0x2ad)][_0x453c88(0x1d2)]()){const _0x5ad393=await this[_0x453c88(0x23d)][_0x453c88(0x20d)]();await this[_0x453c88(0x2ad)][_0x453c88(0x232)](_0x5ad393);}this[_0x453c88(0x2ad)]['id']&&this[_0x453c88(0x2ad)][_0x453c88(0x1ce)]&&await this[_0x453c88(0x2ad)][_0x453c88(0x320)]({'userMessage':_0x2ccca8,'attributes':_0x3980e1});}[_0x48c6da(0x2cc)](){const _0x567210=_0x48c6da;console[_0x567210(0x298)](_0x567210(0x1f7));}[_0x48c6da(0x220)](_0x246627){const _0x377760=_0x48c6da;this[_0x377760(0x208)][_0x377760(0x233)](_0x246627);}[_0x48c6da(0x284)](_0x7096cf){const _0x3d7f3e=_0x48c6da;_0x1289a2(_0x7096cf[_0x3d7f3e(0x2c8)]);}[_0x48c6da(0x227)](_0x3a9dd9){const _0x5437b2=_0x48c6da;this[_0x5437b2(0x2ad)]?.[_0x5437b2(0x24e)](_0x3a9dd9);}[_0x48c6da(0x24f)](){const _0x19a6b9=_0x48c6da;this[_0x19a6b9(0x2ad)]?.[_0x19a6b9(0x338)]();}[_0x48c6da(0x308)](){const _0x2d2513=_0x48c6da;this[_0x2d2513(0x2ad)]?.[_0x2d2513(0x1c8)]();}[_0x48c6da(0x1bd)](_0x2a7614){const _0x2f9925=_0x48c6da,[_0x5e2d93,_0x408cae]=_0x2a7614[_0x2f9925(0x2f3)](':'),_0x3c5847=this[_0x2f9925(0x2ad)][_0x2f9925(0x20e)](_0x5e2d93),_0x200e6e=_0x3c5847[_0x2f9925(0x210)](_0x408cae);return{'interaction':_0x3c5847,'reply':_0x200e6e};}[_0x48c6da(0x28c)](_0x5b17d8,_0x39f07b=!0x1){const _0x304d00=_0x48c6da,_0x62e952=_0x5d583e(this[_0x304d00(0x203)]),_0x5f5df8={'target':_0x62e952[_0x304d00(0x2b8)][_0x304d00(0x1b4)][_0x304d00(0x31c)][_0x304d00(0x2e6)](_0x62e952[_0x304d00(0x2b8)][_0x304d00(0x1de)][_0x304d00(0x301)](_0x5b17d8)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x39f07b};_0x39f07b&&(_0x5f5df8[_0x304d00(0x31e)]=!0x0),_0x1d0db5(_0x5f5df8);}[_0x48c6da(0x20f)](_0x540d2f,_0x274676=!0x1){const _0x44e951=_0x48c6da;this[_0x44e951(0x208)][_0x44e951(0x2cd)](_0x540d2f||_0x35b06d(this[_0x44e951(0x203)][_0x44e951(0x255)],_0x44e951(0x2e4)),_0x274676);}async[_0x48c6da(0x2d8)]({reply:_0x4a699a,renderingStrategy:_0x5cb8e1}){const _0x1c2f01=_0x48c6da,{id:_0x335be4,interactionId:_0x34a07b,isDone:_0x5df954,type:_0x34fa58,parsedContent:_0x3171d8}=_0x4a699a,_0x48b69c=_0x34a07b+':'+_0x335be4;if(_0x1c2f01(0x2ef)===_0x34fa58){const _0x3ba3b2=_0x4a699a[_0x1c2f01(0x292)]({'showDiff':this[_0x1c2f01(0x208)][_0x1c2f01(0x2d5)]});await this[_0x1c2f01(0x208)][_0x1c2f01(0x1f6)]({'id':_0x48b69c,'parts':_0x3ba3b2,'renderingStrategy':_0x5cb8e1,'isDone':_0x5df954});}else _0x1c2f01(0x25b)===_0x34fa58&&await this[_0x1c2f01(0x208)][_0x1c2f01(0x282)]({'id':_0x48b69c,'parsedContent':_0x3171d8,'renderingStrategy':_0x5cb8e1,'isDone':_0x5df954});_0x5df954&&_0x4a699a[_0x1c2f01(0x251)][_0x1c2f01(0x30e)]>0x0&&this[_0x1c2f01(0x208)][_0x1c2f01(0x1d7)](_0x48b69c,_0x4a699a[_0x1c2f01(0x251)]);}async[_0x48c6da(0x28e)](){const _0x313e5c=_0x48c6da,_0x53f196=this[_0x313e5c(0x2ad)]?.[_0x313e5c(0x311)];_0x53f196&&(_0x53f196[_0x313e5c(0x32a)](),this[_0x313e5c(0x208)][_0x313e5c(0x231)](_0x53f196));}async[_0x48c6da(0x214)](){const _0x3ee812=_0x48c6da,_0x425898=this[_0x3ee812(0x2ad)]?.[_0x3ee812(0x311)];if(_0x425898){for await(const _0x44c235 of _0x425898[_0x3ee812(0x2c0)])await this[_0x3ee812(0x2d8)]({'reply':_0x44c235,'renderingStrategy':_0x3ee812(0x309)});}}[_0x48c6da(0x215)](_0x126ad3){const _0xcc95ac=_0x48c6da,_0x2401fd={'positiveCount':_0x126ad3[_0xcc95ac(0x240)][_0xcc95ac(0x2b5)](_0x32be0b=>_0xcc95ac(0x2ea)===_0x32be0b[_0xcc95ac(0x1e4)])[_0xcc95ac(0x30e)],'totalCount':_0x126ad3[_0xcc95ac(0x240)][_0xcc95ac(0x30e)],'modificationId':_0x126ad3['id']},_0x503c50=this[_0xcc95ac(0x2ad)][_0xcc95ac(0x20e)](_0x126ad3[_0xcc95ac(0x1c9)])[_0xcc95ac(0x202)];_0x503c50&&this[_0xcc95ac(0x319)][_0xcc95ac(0x32c)](this[_0xcc95ac(0x2ad)]['id'],_0x503c50,_0x2401fd);}[_0x48c6da(0x285)](_0x1a3884){const _0xc979d1=_0x48c6da;let _0xc3130f=null,_0x201ad3=null;this['on'](_0xc979d1(0x2da),(_0x16c7b9,_0x50c2d1,_0x36a64e)=>{const _0x51b119=_0xc979d1;_0x36a64e['id']!==_0xc3130f&&(_0xc3130f=_0x36a64e['id'],_0x201ad3=this[_0x51b119(0x2f9)](_0x36a64e)),_0x1a3884(_0x50c2d1,_0x201ad3);});}[_0x48c6da(0x2f9)](_0x5d862d){const _0x33063c=_0x48c6da,_0x10a617=this[_0x33063c(0x208)],_0x8f8f58=()=>{const _0x12aa3c=_0x33063c;_0x5d862d[_0x12aa3c(0x28f)](),_0x5d862d[_0x12aa3c(0x2f1)](),_0x10a617[_0x12aa3c(0x27a)]();},_0x4c4bc9=()=>{const _0x5415a1=_0x33063c;_0x5d862d[_0x5415a1(0x2e0)]&&(_0x5d862d[_0x5415a1(0x2e0)][_0x5415a1(0x295)](),_0x5d862d[_0x5415a1(0x2e0)]=void 0x0);};return{'insertTextReply':(_0x12d7ca,_0x25739b)=>{const _0x6a6927=_0x33063c;_0x4c4bc9(),_0x8f8f58();const _0x5e0c60=_0x5d862d[_0x6a6927(0x2e0)]=_0x5d862d[_0x6a6927(0x1d9)]({'type':_0x6a6927(0x25b),'interactionId':_0x5d862d['id'],'content':_0x12d7ca,'id':_0x25739b||_0x9c3bdb()});return _0x4c4bc9(),_0x5e0c60;},'insertCustomElement':async(_0x488234,_0x110a73)=>(_0x4c4bc9(),_0x8f8f58(),_0x10a617[_0x33063c(0x205)](_0x488234,_0x110a73||_0x9c3bdb())),'setLoadingMessage':_0x34326f=>{const _0x40095f=_0x33063c;_0x10a617[_0x40095f(0x290)](_0x34326f);},'clearLoadingMessage':()=>{const _0x2511f9=_0x33063c;_0x10a617[_0x2511f9(0x27a)]();}};}}
23
+ const _0x1702d8=_0x38a6;(function(_0x5d764a,_0x154b3b){const _0x23545b=_0x38a6,_0xe36866=_0x5d764a();while(!![]){try{const _0x13054f=-parseInt(_0x23545b(0x2ad))/0x1*(parseInt(_0x23545b(0x28d))/0x2)+-parseInt(_0x23545b(0x37a))/0x3+parseInt(_0x23545b(0x315))/0x4+-parseInt(_0x23545b(0x32d))/0x5+-parseInt(_0x23545b(0x31d))/0x6+-parseInt(_0x23545b(0x359))/0x7*(parseInt(_0x23545b(0x201))/0x8)+parseInt(_0x23545b(0x2d3))/0x9;if(_0x13054f===_0x154b3b)break;else _0xe36866['push'](_0xe36866['shift']());}catch(_0x10cd1f){_0xe36866['push'](_0xe36866['shift']());}}}(_0x2572,0xbb679));import{ContextPlugin as _0x1deffc,Editor as _0x2b7956}from'ckeditor5/src/core.js';import{BodyCollection as _0x3d59d6}from'ckeditor5/src/ui.js';import{CKEditorError as _0x5214a0,logError as _0x4b9dd1,scrollViewportToShowTarget as _0x2651d7,uid as _0x1f1720}from'ckeditor5/src/utils.js';function _0x2572(){const _0x12c176=['locale','index','fetchConversation','_getDocumentRangeForReplyChanges','disableControls','changeGroups','addCurrentDocumentToContext','anchorId','rejectSuggestion','mapper','showNext','close','_insertSuggestion','listenTo','lastCreated','createRange','addFileToContext','contextItems','children','TrackChangesEditing','TrackChanges','requires','AI_CHAT_UNABLE_TO_START_CONVERSATION','abortPromptStream','map','model','replyChangeGroupStateUpdated','modification','mouseOverSuggestion','hideFakeVisualSelection','query','_getPresentableSiblingContentPartIndex','batch','afterInit','_getUserPresentableContentPartDocumentRange','partIndex','closeSourceResourceBalloon','_applyOperationsAsSuggestions','ai-conversation-','_updateReplyContent','loadSourceResources','showChangeInText','filter','webSearchStarted','static','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','isPremiumPlugin','ai-chat-conversation-start-failed','AI_CHAT_RESOURCE_LOAD_FAILED','ai-chat-context-unsupported-file-type','mouseLeaveSuggestion','addFeedItemAISuggestion','finishInteraction','documentContextContent','updateFeedItemAIReplySources','addCurrentDocumentToChatContext','applySuggestion','AI_CHAT_CONTEXT_FILE_TOO_LARGE','selectedModel','_aiEditing','delete','ai-chat-context-unsupported-type','unshift','_showConversationHistory','log','showDiff','resetMessageInput','getRoot','resetReasoningState','getChildren','state','isCurrentDocumentInConversation','modelSelected','_aiChatBalloonShowDiff','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','enableControls','webSearchFinished','startAutoScroll','AIConnector','AITabs','AI_BALLOON_HEADER_TITLE','setLoadingMessage','getInteraction','_handleUIUserMessage','options','AIEditing','has','reasoningStarted','destroy','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','removeSelectionFromContext','addOperation','populateSourceResourceBalloon','getAttribute','node','bind','_toggleReasoning','isCurrentDocumentInContext','focusPromptInput','getDiff','ai-chat-invalid-request','ai-chat-conversation-not-found','revert','getDocumentData','lastInteraction','handleUserInteraction','ai-chat-controller-mouse-over','AI_CHAT_GENERIC_ERROR','addFeedItemCustomElement','change','accepted','_createFromRanges','updateFeedItemAIReplySuggestionContent','ai-chat-resource-load-failed','addSelectionToContext','addResourceToContext','scrollFeedToSuggestion','ready','data','ai-chat-context-invalid-data','type','redo','AI_CHAT_INVALID_REQUEST','resources','AIChatBalloon','contextSent','Liked\x20response','toolDataReceived','_handleStartConversation','updateConversationTitle','1584FffWPG','handleRemovedConversation','addFilesToContext','setConversationContext','ai.chat.context','maxOffset','nextSibling','open','toggleLoadingSkeleton','toggleSuggestionDisplayMode','$graveyard','like','createConversation','ai-chat-url-upload-failed','getReply','addFeedItemError','forEach','ai-chat-context-form-data-size-limits-exceeded','isModelAvailable','_setIsMaximized','getPath','DocumentCompare','createPositionFromPath','isDocumentOperation','prepareLoadingMessage','ai-chat-controller-no-active-conversation','indexes','sourcePosition','uploadProgressChanged','ai-chat-file-upload-failed','setConversationTitle','stopInteraction','454JckTVC','set','sendUserMessage','isOfficialPlugin','_getAIChatInteractionAPI','_logError','_batchToChanges','executeCustomItemCallback','contextItemRemoved','AIChatUI','pending','sources','text','setIsMaximized','split','uiId','fetchConversations','conversationInitialized','addDocumentToContext','_bodyCollection','_stopLastInteraction','showPrevious','ai-chat-missing-channel-id','dialogClosed','add','parse','getChild','addFeedItemUserMessage','toViewRange','interactionId','_startConversationSafely','addSelectionToChatContext','addUrlToContext','_aiConnector','load','applyOperation','getAll','currentReply','45327024XgyBNO','startsWith','setIsUploadInProgress','addContextOptionsChanged','root','main','streaming','isStarted','_toggleWebSearch','isLoading','view','version','resizedTabs','addFeedInteractionHeader','Undo','source','removeContextItem','getDocumentContext','pluginName','setSelectedModel','toggleReasoning','AI_CHAT_UNTITLED_CONVERSATION','resizeTabs','ai-chat-context-file-too-many-pages','getInteractionAndReplyById','_rejectSuggestion','editors','_applySuggestion','getContentParts','startInteraction','capabilitiesUpdated','contextItem','history','attachToDom','createPositionAt','resetConversationTitle','ai-chat-conversation-init-failed','changes','length','setModel','_integrateEditor','callback','startConversation','context','addFeedItemAIReply','domConverter','removeSelectionFromChatContext','_currentPreviewedChangeGroup','findIndex','selection','updateResourceState','contextItemLoadingEnded','get','remove','current-document','aiChatBalloon','_aiChatModels','updateCapabilities','hasChanges','removed','content','new','ai-chat-source-resources-load-failed','_scrollToSuggestionRange','_openBalloonFor','setFeedItemRenderingStrategy','510284wyPWTK','Disliked\x20response','addContextItem','from','plugins','messageId','setAddContextOptions','activeConversation','8932524LTqgYP','toggleWebSearch','ai.models.defaultModelId','editing','ai-request-aborted','stop','alignToTop','uid','path','areActionsDisabled','ai.chat.initialConversation','setState','ai-chat-context-file-too-large','sourceId','indexOf','getConversation','2375015HccdKX','cloneNode','commands','_aiChatUi','removeFromContext','_flushLastInteractionUI','clearPendingContextUI','isInContext','updateContent','loadConversation','resourceStateChanged','delegate','showFakeVisualSelection','setFeedItemAIReplySuggestionPartActive','getOperations','interactionFinished','_updateRatings','getChildAtOffset','toString','collaboration.channelId','data-id','message','replyCreated','next','contextItemAdded','interactionDestroyed','reasoningFinished','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','init','sourceResourcesLoaded','setChangeGroupState','Showing\x20conversation\x20history...','sendMessage','insertSuggestion','interactionCreated','start','marker','includes','_removeFromContext','chat','resourceId','sessionId','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','document','168PTeMFn','replyId','updateCurrentDocumentInContext','end','push','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','_getLastCreatedConversationId','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','ai-no-track-changes','outdated','viewRangeToDom','upsertAIChatRating','done','rootName','removeFeedInteraction','slice','ai.models','clearLoadingMessage','getConversations','detachFromDom','createReply','config','updateFeedItemAIReplySuggestionPartState','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','isUploadInProgress','_aiChatBalloon','range','resetWebSearchState','baseVersion','undo','resize','getFirstRange','howMany','4440015cXVvTa','getTransformedByOperation','_registerToolDataCallback','activateTab','previous','setContextItemLoading','replies','addFeedItemStaticMessage','getSelectionText','updateFeedItemAIReplyContent','createdAt','AIChatController','dislike','find','AI_CHAT_ABORTED_MESSAGE','replyContentUpdated','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','rejected','197656xzGEtE','selectModel','getRanges','error','resource','AI_CHAT_CONTEXT_INVALID_DATA','isDisabled','interactionStarted','clearConversationContextUI','getGroupId'];_0x2572=function(){return _0x12c176;};return _0x2572();}import{AIConnector as _0x321498}from'../aicore/aiconnector.js';import{AITabs as _0x4be643}from'../aitabs/aitabs.js';import{AIChatConversation as _0x3fd626}from'./model/aichatconversation.js';import{getTranslation as _0x5ddcf9}from'../aicore/utils/common-translations.js';import{AIModels as _0xde3a4b}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x5a62a2}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x1d9b5e,DATA_ID_MODEL_ATTRIBUTE as _0x19eeee}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x1c90b5,getOperationsFromReply as _0x547a47}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x57cdc0,getMinimalSelection as _0x1ac5fa}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x228e25,_DetachOperation as _0x2c4d80}from'ckeditor5/src/engine.js';function _0x38a6(_0x5c3c41,_0x1abc2e){const _0x2572b7=_0x2572();return _0x38a6=function(_0x38a6ab,_0x475f26){_0x38a6ab=_0x38a6ab-0x1f4;let _0x69a5e8=_0x2572b7[_0x38a6ab];return _0x69a5e8;},_0x38a6(_0x5c3c41,_0x1abc2e);}import{findOne as _0x3a56f0,getAttribute as _0x72a9e6,serialize as _0x5b45d0,Document as _0x13cca0,findByAttribute as _0x1ad66e}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x1deffc{[_0x1702d8(0x246)];[_0x1702d8(0x2ce)];[_0x1702d8(0x330)];[_0x1702d8(0x30b)];[_0x1702d8(0x372)];[_0x1702d8(0x2b3)]=new Map();[_0x1702d8(0x302)]=null;[_0x1702d8(0x2c0)];static get[_0x1702d8(0x220)](){return[_0x321498,_0x1d9b5e];}static get[_0x1702d8(0x2e5)](){const _0x113d2a=_0x1702d8;return _0x113d2a(0x1fa);}static get[_0x1702d8(0x2b0)](){return!0x0;}static get[_0x1702d8(0x239)](){return!0x0;}[_0x1702d8(0x349)](){const _0x72f350=_0x1702d8;this[_0x72f350(0x2c0)]=new _0x3d59d6(this[_0x72f350(0x2fe)][_0x72f350(0x20b)]),this[_0x72f350(0x2c0)][_0x72f350(0x2f4)](),this[_0x72f350(0x2ce)]=this[_0x72f350(0x2fe)][_0x72f350(0x319)][_0x72f350(0x307)](_0x72f350(0x259)),this[_0x72f350(0x330)]=this[_0x72f350(0x2fe)][_0x72f350(0x319)][_0x72f350(0x307)](_0x72f350(0x2b6)),this[_0x72f350(0x246)]=this[_0x72f350(0x2fe)][_0x72f350(0x319)][_0x72f350(0x307)](_0x72f350(0x260)),this[_0x72f350(0x30b)]=new _0xde3a4b({'connector':this[_0x72f350(0x2ce)],'config':this[_0x72f350(0x2fe)][_0x72f350(0x36e)][_0x72f350(0x307)](_0x72f350(0x369)),'locale':this[_0x72f350(0x2fe)][_0x72f350(0x20b)]});const _0x487faf=this[_0x72f350(0x2fe)][_0x72f350(0x319)][_0x72f350(0x307)](_0x72f350(0x25a));this[_0x72f350(0x218)](this[_0x72f350(0x330)],_0x72f350(0x2fd),()=>{const _0x2d5dcb=_0x72f350;this[_0x2d5dcb(0x2cb)]();}),this[_0x72f350(0x218)](this[_0x72f350(0x330)],_0x72f350(0x2af),(_0x5d313a,_0x113b8f)=>{const _0x8b5ce2=_0x72f350;this[_0x8b5ce2(0x25e)]({'userMessage':_0x113b8f});}),this[_0x72f350(0x218)](_0x487faf,_0x72f350(0x2df),(_0x629741,_0x34bdd9)=>{const _0x3d56ed=_0x72f350;this[_0x3d56ed(0x2a0)](_0x34bdd9);}),this[_0x72f350(0x218)](this[_0x72f350(0x330)],_0x72f350(0x2e9),()=>{const _0x47f58a=_0x72f350;_0x487faf[_0x47f58a(0x377)]();}),this[_0x72f350(0x218)](this[_0x72f350(0x330)],_0x72f350(0x222),async()=>{const _0x4e65bb=_0x72f350;await this[_0x4e65bb(0x2c1)](),await this[_0x4e65bb(0x332)](),this[_0x4e65bb(0x301)]();}),this[_0x72f350(0x218)](this[_0x72f350(0x330)],_0x72f350(0x2bf),()=>{const _0x494de9=_0x72f350;this[_0x494de9(0x242)]();}),this[_0x72f350(0x218)](this[_0x72f350(0x330)],_0x72f350(0x21b),(_0x51606c,_0x3c69fc)=>{const _0x2acaf5=_0x72f350;this[_0x2acaf5(0x31c)]?.[_0x2acaf5(0x28f)](Array[_0x2acaf5(0x318)](_0x3c69fc));}),this[_0x72f350(0x218)](this[_0x72f350(0x330)],_0x72f350(0x2cd),(_0x3f5c72,_0x2ba83d)=>{const _0x15334f=_0x72f350;this[_0x15334f(0x31c)]?.[_0x15334f(0x2cd)](_0x2ba83d);}),this[_0x72f350(0x218)](this[_0x72f350(0x330)],_0x72f350(0x2b4),(_0x23aca0,_0x4df0ba)=>{const _0x4aa8e5=_0x72f350;_0x4df0ba[_0x4aa8e5(0x2fc)](this[_0x4aa8e5(0x2fe)]);}),this[_0x72f350(0x218)](this[_0x72f350(0x330)],_0x72f350(0x27e),(_0x144847,_0x376ec2)=>{const _0x1a523b=_0x72f350;this[_0x1a523b(0x31c)]?.[_0x1a523b(0x27e)](_0x376ec2[_0x1a523b(0x2e2)],_0x376ec2[_0x1a523b(0x205)]);}),this[_0x72f350(0x218)](this[_0x72f350(0x330)],_0x72f350(0x2e3),(_0x39d212,_0x4b23f0)=>{const _0x13a9a4=_0x72f350;this[_0x13a9a4(0x353)](_0x4b23f0);}),this[_0x72f350(0x218)](this[_0x72f350(0x330)],_0x72f350(0x233),(_0x55e10d,_0x51f6b1)=>{const _0x24ab6a=_0x72f350;this[_0x24ab6a(0x31c)]?.[_0x24ab6a(0x233)](_0x51f6b1[_0x24ab6a(0x32a)],_0x51f6b1[_0x24ab6a(0x229)],_0x51f6b1[_0x24ab6a(0x324)]);}),this[_0x72f350(0x218)](this[_0x72f350(0x330)],_0x72f350(0x31e),()=>{const _0x1abc28=_0x72f350;this[_0x1abc28(0x2db)]();}),this[_0x72f350(0x218)](this[_0x72f350(0x330)],_0x72f350(0x2e7),()=>{const _0x4e8ba6=_0x72f350;this[_0x4e8ba6(0x26b)]();}),this[_0x72f350(0x218)](this[_0x72f350(0x330)],_0x72f350(0x202),(_0x41f118,_0x5262c4)=>{const _0xad4701=_0x72f350;this[_0xad4701(0x31c)]?.[_0xad4701(0x2fa)](_0x5262c4);}),this[_0x72f350(0x218)](this[_0x72f350(0x330)],_0x72f350(0x298),(_0x1b6f76,{replyId:_0x1e6f69})=>{const _0x16d102=_0x72f350;console[_0x16d102(0x24b)](_0x16d102(0x289),_0x1e6f69);}),this[_0x72f350(0x218)](this[_0x72f350(0x330)],_0x72f350(0x1fb),(_0x1fe03d,{replyId:_0x43cf7a})=>{const _0x2bce21=_0x72f350;console[_0x2bce21(0x24b)](_0x2bce21(0x316),_0x43cf7a);}),this[_0x72f350(0x218)](this[_0x72f350(0x330)],_0x72f350(0x34e),(_0xac607d,_0x363ef2)=>{const _0x4e1eb9=_0x72f350;this[_0x4e1eb9(0x217)](_0x363ef2);}),this[_0x72f350(0x218)](this[_0x72f350(0x330)],_0x72f350(0x234),(_0x437310,{replyId:_0x504b9e,partIndex:_0x10900e})=>{const _0x5370a3=_0x72f350;this[_0x5370a3(0x254)]=this[_0x5370a3(0x330)][_0x5370a3(0x24c)],this[_0x5370a3(0x313)](_0x504b9e,_0x10900e);}),this[_0x72f350(0x218)](this[_0x72f350(0x330)],_0x72f350(0x227),(_0x22df86,{replyId:_0x418659,partIndex:_0x2ae24b})=>{const _0x19fc9a=_0x72f350,_0x24e610=this[_0x19fc9a(0x20e)](_0x418659,_0x2ae24b);_0x24e610&&_0x19fc9a(0x297)!=_0x24e610[_0x19fc9a(0x373)][_0x19fc9a(0x2d7)][_0x19fc9a(0x366)]&&this[_0x19fc9a(0x246)][_0x19fc9a(0x339)]([_0x24e610[_0x19fc9a(0x373)]],_0x19fc9a(0x275));}),this[_0x72f350(0x218)](this[_0x72f350(0x330)],_0x72f350(0x23d),()=>{const _0x274027=_0x72f350;this[_0x274027(0x246)][_0x274027(0x228)](_0x274027(0x275));}),this[_0x72f350(0x218)](this[_0x72f350(0x330)],_0x72f350(0x243),(_0x4a49b2,_0x3604ff)=>{const _0x4d2c72=_0x72f350;this[_0x4d2c72(0x246)][_0x4d2c72(0x228)](_0x4d2c72(0x275)),this[_0x4d2c72(0x2ee)](_0x3604ff);}),this[_0x72f350(0x218)](this[_0x72f350(0x330)],_0x72f350(0x296),async(_0x26cedb,{replyId:_0x1cfb52,showDiff:_0x20df7e})=>{const _0x67c8f1=_0x72f350,{reply:_0x161b84}=this[_0x67c8f1(0x2eb)](_0x1cfb52),_0x427d17=_0x161b84[_0x67c8f1(0x2ef)]({'showDiff':_0x20df7e});await this[_0x67c8f1(0x330)][_0x67c8f1(0x27b)]({'id':_0x161b84['id'],'parts':_0x427d17,'renderingStrategy':_0x67c8f1(0x237)});}),this[_0x72f350(0x218)](this[_0x72f350(0x330)],_0x72f350(0x213),(_0x19ab72,{replyId:_0xf936cd,partIndex:_0x16e5d8})=>{const _0x3ef450=_0x72f350;this[_0x3ef450(0x2ec)]({'replyId':_0xf936cd,'partIndex':_0x16e5d8}),this[_0x3ef450(0x246)][_0x3ef450(0x228)](_0x3ef450(0x275));}),this[_0x72f350(0x2fe)][_0x72f350(0x319)][_0x72f350(0x261)](_0x72f350(0x287))&&(this[_0x72f350(0x372)]=this[_0x72f350(0x2fe)][_0x72f350(0x319)][_0x72f350(0x307)](_0x72f350(0x287)),this[_0x72f350(0x2ae)](_0x72f350(0x254),!0x1),this[_0x72f350(0x372)][_0x72f350(0x26a)](_0x72f350(0x24c))['to'](this,_0x72f350(0x254)),this[_0x72f350(0x218)](this[_0x72f350(0x372)],_0x72f350(0x296),()=>{const _0x5663ff=_0x72f350,{replyId:_0x5f4c80,partIndex:_0x4d21a5}=this[_0x5663ff(0x302)];this[_0x5663ff(0x254)]=!this[_0x5663ff(0x254)];const {reply:_0x4710da}=this[_0x5663ff(0x2eb)](_0x5f4c80),_0x1384b7=_0x4710da[_0x5663ff(0x2ef)]({'showDiff':this[_0x5663ff(0x254)],'groupIndex':_0x4d21a5});this[_0x5663ff(0x372)][_0x5663ff(0x335)]({'part':_0x1384b7[0x0],'renderingStrategy':_0x5663ff(0x237),'keepErrors':!0x0});}),this[_0x72f350(0x218)](this[_0x72f350(0x372)],_0x72f350(0x243),()=>{const _0x54feb9=_0x72f350,{replyId:_0x1470d2,partIndex:_0x52300f}=this[_0x54feb9(0x302)];this[_0x54feb9(0x2ee)]({'replyId':_0x1470d2,'partIndex':_0x52300f}),this[_0x54feb9(0x372)][_0x54feb9(0x328)](_0x54feb9(0x279));}),this[_0x72f350(0x218)](this[_0x72f350(0x372)],_0x72f350(0x34e),()=>{const _0x197861=_0x72f350,{replyId:_0x3d1be5,partIndex:_0x4a46b5}=this[_0x197861(0x302)];this[_0x197861(0x217)]({'replyId':_0x3d1be5,'partIndex':_0x4a46b5}),this[_0x197861(0x372)][_0x197861(0x328)](_0x197861(0x279));}),this[_0x72f350(0x218)](this[_0x72f350(0x372)],_0x72f350(0x213),()=>{const _0x505b1a=_0x72f350,{replyId:_0x504be2,partIndex:_0x45cac3}=this[_0x505b1a(0x302)];this[_0x505b1a(0x2ec)]({'replyId':_0x504be2,'partIndex':_0x45cac3}),this[_0x505b1a(0x372)][_0x505b1a(0x328)](_0x505b1a(0x200));}),this[_0x72f350(0x218)](this[_0x72f350(0x372)],_0x72f350(0x215),()=>{const _0x4c42e3=_0x72f350,{replyId:_0x3a12a1,partIndex:_0xa843d6}=this[_0x4c42e3(0x302)],_0x208d6a=this[_0x4c42e3(0x22a)](_0x3a12a1,_0xa843d6,_0x4c42e3(0x344));null!==_0x208d6a&&this[_0x4c42e3(0x313)](_0x3a12a1,_0x208d6a);}),this[_0x72f350(0x218)](this[_0x72f350(0x372)],_0x72f350(0x2c2),()=>{const _0x7c1529=_0x72f350,{replyId:_0x32a43e,partIndex:_0x57ac56}=this[_0x7c1529(0x302)],_0x385503=this[_0x7c1529(0x22a)](_0x32a43e,_0x57ac56,_0x7c1529(0x37e));null!==_0x385503&&this[_0x7c1529(0x313)](_0x32a43e,_0x385503);}),this[_0x72f350(0x218)](this[_0x72f350(0x372)],_0x72f350(0x2c4),(_0x314149,{id:_0x6e587c})=>{const _0x521a96=_0x72f350;if(_0x521a96(0x30a)!==_0x6e587c)return;const {replyId:_0x5d60fd,partIndex:_0x166b75}=this[_0x521a96(0x302)];this[_0x521a96(0x302)]=null,this[_0x521a96(0x330)][_0x521a96(0x33a)]({'id':_0x5d60fd,'index':_0x166b75,'isActive':!0x1});}));}async[_0x1702d8(0x22c)](){const _0x4268c5=_0x1702d8;this[_0x4268c5(0x2fe)]instanceof _0x2b7956?this[_0x4268c5(0x2fb)](this[_0x4268c5(0x2fe)]):this[_0x4268c5(0x218)](this[_0x4268c5(0x2fe)][_0x4268c5(0x2ed)],_0x4268c5(0x2c5),(_0x35e416,_0x1cd6c1)=>{const _0x5e94f8=_0x4268c5;_0x1cd6c1['on'](_0x5e94f8(0x280),()=>{const _0x1c4af6=_0x5e94f8;this[_0x1c4af6(0x2fb)](_0x1cd6c1);});});const _0x5d0ebe=this[_0x4268c5(0x2fe)][_0x4268c5(0x36e)][_0x4268c5(0x307)](_0x4268c5(0x327));let _0x35de12=_0x5d0ebe;if(_0x4268c5(0x219)!=_0x5d0ebe||(_0x35de12=await this[_0x4268c5(0x35f)](),_0x35de12))return _0x4268c5(0x310)==_0x35de12?this[_0x4268c5(0x2cb)]():this[_0x4268c5(0x336)](_0x35de12);}async[_0x1702d8(0x263)](){const _0x33cd71=_0x1702d8;return await this[_0x33cd71(0x2c1)](),this[_0x33cd71(0x2c0)][_0x33cd71(0x36c)](),super[_0x33cd71(0x263)]();}[_0x1702d8(0x217)](_0x47bc29){const _0x25540d=_0x1702d8,_0x211724=_0x5a62a2(this[_0x25540d(0x2fe)]);if(!_0x211724[_0x25540d(0x319)][_0x25540d(0x261)](_0x25540d(0x21f)))throw new _0x5214a0(_0x25540d(0x361),null);const _0x211092=this[_0x25540d(0x2fe)][_0x25540d(0x319)][_0x25540d(0x307)](_0x25540d(0x2a2)),{reply:_0x5f0162,interaction:_0x32b9a3}=this[_0x25540d(0x2eb)](_0x47bc29[_0x25540d(0x35a)]),_0x12b203=this[_0x25540d(0x20e)](_0x47bc29[_0x25540d(0x35a)],_0x47bc29[_0x25540d(0x22e)]),_0x36db95=void 0x0!==_0x47bc29[_0x25540d(0x22e)]?[_0x5f0162[_0x25540d(0x210)][_0x47bc29[_0x25540d(0x22e)]]]:_0x5f0162[_0x25540d(0x210)][_0x25540d(0x235)](_0x4a74f3=>_0x25540d(0x2b7)==_0x4a74f3[_0x25540d(0x251)]),_0x453c16=_0x36db95[_0x25540d(0x223)](_0x171e38=>_0x5f0162[_0x25540d(0x210)][_0x25540d(0x32b)](_0x171e38));if(!_0x12b203||_0x25540d(0x297)==_0x12b203[_0x25540d(0x373)][_0x25540d(0x2d7)][_0x25540d(0x366)])return void _0x453c16[_0x25540d(0x29d)](_0x4a292f=>_0x5f0162[_0x25540d(0x34b)](_0x4a292f,_0x25540d(0x362)));_0x453c16[_0x25540d(0x29d)](_0x20d5fc=>_0x5f0162[_0x25540d(0x34b)](_0x20d5fc,_0x25540d(0x279)));const _0xef6630=_0x547a47({'editor':_0x211724,'reply':_0x5f0162,'interaction':_0x32b9a3,'groups':_0x36db95,'transform':!0x0,'documentCompare':_0x211092,'documentCompareOptions':{'anchor':_0x25540d(0x2d8),'markDeletions':!0x0}});let _0x9bee9a;_0x12b203&&this[_0x25540d(0x312)](_0x12b203[_0x25540d(0x373)]),_0x211724[_0x25540d(0x224)][_0x25540d(0x278)](_0x1bf4a1=>{const _0x363083=_0x25540d;_0x9bee9a=_0x1bf4a1[_0x363083(0x22b)],_0x211724[_0x363083(0x319)][_0x363083(0x307)](_0x363083(0x21e))[_0x363083(0x230)](_0xef6630),this[_0x363083(0x246)][_0x363083(0x228)](_0x363083(0x275));}),this[_0x25540d(0x2b3)][_0x25540d(0x2ae)](_0x9bee9a,{'interactionId':_0x32b9a3['id'],'replyId':_0x5f0162['id'],'indexes':_0x453c16[_0x25540d(0x368)]()}),this[_0x25540d(0x33d)](_0x5f0162);}[_0x1702d8(0x2ee)](_0x5e65c1){const _0x28aa02=_0x1702d8,_0x283279=_0x5a62a2(this[_0x28aa02(0x2fe)]),_0x5dd994=this[_0x28aa02(0x2fe)][_0x28aa02(0x319)][_0x28aa02(0x307)](_0x1d9b5e),{reply:_0x10fbed,interaction:_0x28adc4}=this[_0x28aa02(0x2eb)](_0x5e65c1[_0x28aa02(0x35a)]),_0x196458=this[_0x28aa02(0x20e)](_0x5e65c1[_0x28aa02(0x35a)],_0x5e65c1[_0x28aa02(0x22e)]),_0xd2d121=void 0x0!==_0x5e65c1[_0x28aa02(0x22e)]?[_0x10fbed[_0x28aa02(0x210)][_0x5e65c1[_0x28aa02(0x22e)]]]:_0x10fbed[_0x28aa02(0x210)][_0x28aa02(0x235)](_0x39335c=>_0x28aa02(0x2b7)==_0x39335c[_0x28aa02(0x251)]),_0x50e38a=_0xd2d121[_0x28aa02(0x223)](_0x34038b=>_0x10fbed[_0x28aa02(0x210)][_0x28aa02(0x32b)](_0x34038b));if(!_0x196458||_0x28aa02(0x297)==_0x196458[_0x28aa02(0x373)][_0x28aa02(0x2d7)][_0x28aa02(0x366)])return void _0x50e38a[_0x28aa02(0x29d)](_0x5b5648=>_0x10fbed[_0x28aa02(0x34b)](_0x5b5648,_0x28aa02(0x362)));_0x50e38a[_0x28aa02(0x29d)](_0x346520=>_0x10fbed[_0x28aa02(0x34b)](_0x346520,_0x28aa02(0x279)));const _0x5aa88b=_0x547a47({'editor':_0x283279,'reply':_0x10fbed,'interaction':_0x28adc4,'groups':_0xd2d121,'transform':!0x0,'documentCompare':_0x5dd994,'documentCompareOptions':{'anchor':_0x28aa02(0x2d8),'markDeletions':!0x1}});let _0x36befa;_0x196458&&this[_0x28aa02(0x312)](_0x196458[_0x28aa02(0x373)]),_0x283279[_0x28aa02(0x224)][_0x28aa02(0x278)](_0x5af9ee=>{const _0x11a3d9=_0x28aa02;_0x36befa=_0x5af9ee[_0x11a3d9(0x22b)];for(const _0x104dab of _0x5aa88b)_0x104dab[_0x11a3d9(0x375)]=_0x283279[_0x11a3d9(0x224)][_0x11a3d9(0x358)][_0x11a3d9(0x2de)],_0x1c90b5(_0x283279,_0x104dab),_0x5af9ee[_0x11a3d9(0x22b)][_0x11a3d9(0x266)](_0x104dab),_0x283279[_0x11a3d9(0x224)][_0x11a3d9(0x2d0)](_0x104dab);}),this[_0x28aa02(0x2b3)][_0x28aa02(0x2ae)](_0x36befa,{'interactionId':_0x28adc4['id'],'replyId':_0x10fbed['id'],'indexes':_0x50e38a[_0x28aa02(0x368)]()}),this[_0x28aa02(0x33d)](_0x10fbed);}[_0x1702d8(0x2ec)](_0x29fe4a){const _0x234c2a=_0x1702d8,{reply:_0x43c0e7}=this[_0x234c2a(0x2eb)](_0x29fe4a[_0x234c2a(0x35a)]);_0x43c0e7[_0x234c2a(0x34b)](_0x29fe4a[_0x234c2a(0x22e)],_0x234c2a(0x200));}[_0x1702d8(0x313)](_0x5a64ca,_0x2ee27b){const _0x13740f=_0x1702d8;if(!this[_0x13740f(0x372)])return;const {reply:_0x5272e4}=this[_0x13740f(0x2eb)](_0x5a64ca),_0x43c532=_0x5272e4[_0x13740f(0x2ef)]({'showDiff':this[_0x13740f(0x254)]});let _0x3846ab,_0x342f96;if(void 0x0!==_0x2ee27b?(_0x342f96=_0x43c532[_0x13740f(0x1fc)](_0x307018=>_0x307018[_0x13740f(0x20c)]==_0x2ee27b),_0x3846ab=_0x342f96?.[_0x13740f(0x20c)]):(_0x342f96=_0x43c532[0x0],_0x3846ab=_0x342f96[_0x13740f(0x20c)]),this[_0x13740f(0x302)]?.[_0x13740f(0x35a)]==_0x5a64ca&&this[_0x13740f(0x302)]?.[_0x13740f(0x22e)]==_0x3846ab)return;const _0xf1bd95=this[_0x13740f(0x22d)](_0x5a64ca,_0x5272e4,_0x342f96);if(!_0xf1bd95)return void this[_0x13740f(0x372)][_0x13740f(0x216)]();this[_0x13740f(0x302)]={'replyId':_0x5a64ca,'partIndex':_0x3846ab},this[_0x13740f(0x312)](_0xf1bd95,!0x0);const _0xcdb023=this[_0x13740f(0x22a)](_0x5a64ca,_0x3846ab,_0x13740f(0x344));this[_0x13740f(0x372)][_0x13740f(0x335)]({'part':_0x342f96,'renderingStrategy':_0x13740f(0x237)}),this[_0x13740f(0x372)][_0x13740f(0x294)]({'index':_0x3846ab,'title':_0x5ddcf9(this[_0x13740f(0x2fe)][_0x13740f(0x20b)],_0x13740f(0x25b),(_0x3846ab+0x1)[_0x13740f(0x33f)]()),'showRotator':null!==_0xcdb023,'ranges':[_0xf1bd95],'areActionsDisabled':_0x5272e4[_0x13740f(0x326)]}),this[_0x13740f(0x372)][_0x13740f(0x328)](_0x13740f(0x2b7)),this[_0x13740f(0x330)][_0x13740f(0x27f)](_0x5a64ca,_0x3846ab),this[_0x13740f(0x330)][_0x13740f(0x33a)]({'id':_0x5a64ca,'index':_0x3846ab,'isActive':!0x0});}[_0x1702d8(0x22a)](_0x13b802,_0x24984d,_0x5726a7){const _0x138d19=_0x1702d8,{reply:_0x45c384}=this[_0x138d19(0x2eb)](_0x13b802),_0x141b47=_0x45c384[_0x138d19(0x2ef)]({'showDiff':this[_0x138d19(0x254)]});if(0x1==_0x141b47[_0x138d19(0x2f9)])return null;const _0x967bc3=_0x141b47[_0x138d19(0x303)](_0x391929=>_0x391929[_0x138d19(0x20c)]==_0x24984d),_0xaa0645=_0x138d19(0x344)==_0x5726a7?0x1:-0x1;let _0x51f3e1=_0x141b47['at']((_0x967bc3+_0xaa0645)%_0x141b47[_0x138d19(0x2f9)])[_0x138d19(0x20c)],_0x31cc9f=_0x141b47[_0x51f3e1];for(;!this[_0x138d19(0x22d)](_0x13b802,_0x45c384,_0x31cc9f);){if(_0x51f3e1=_0x141b47['at']((_0x51f3e1+_0xaa0645)%_0x141b47[_0x138d19(0x2f9)])[_0x138d19(0x20c)],_0x51f3e1===_0x967bc3)return null;_0x31cc9f=_0x141b47[_0x51f3e1];}return _0x51f3e1;}[_0x1702d8(0x22d)](_0x4bbabf,_0x7492d7,_0x996370){const _0x305552=_0x1702d8,_0x3312a3=_0x7492d7[_0x305552(0x210)];if(!_0x996370[_0x305552(0x30d)])return null;const _0x4001d9=_0x3312a3[_0x305552(0x1fc)](_0x2d0aba=>_0x2d0aba[_0x305552(0x20c)]==_0x996370[_0x305552(0x20c)]);if(_0x305552(0x2b7)!==_0x4001d9?.[_0x305552(0x251)])return null;const _0x2c9f5c=this[_0x305552(0x20e)](_0x4bbabf,_0x996370[_0x305552(0x20c)]);if(!_0x2c9f5c)return null;const {range:_0x5e0979,currentIndex:_0x37b817}=_0x2c9f5c;return _0x305552(0x297)==_0x5e0979[_0x305552(0x2d7)][_0x305552(0x366)]?(_0x7492d7[_0x305552(0x34b)](_0x37b817,_0x305552(0x362)),null):_0x2c9f5c[_0x305552(0x373)];}[_0x1702d8(0x20e)](_0x3478b5,_0x50d3af){const _0x26f096=_0x1702d8,_0x2f25e2=_0x5a62a2(this[_0x26f096(0x2fe)]),{reply:_0x5bbd1c,interaction:_0x36dcd8}=this[_0x26f096(0x2eb)](_0x3478b5),_0xc6ea70=_0x5bbd1c[_0x26f096(0x210)][_0x26f096(0x235)](_0x314c93=>_0x26f096(0x2b7)==_0x314c93[_0x26f096(0x251)]),_0xbbbbf7=_0xc6ea70[_0x26f096(0x223)](_0x34c4b3=>_0x5bbd1c[_0x26f096(0x210)][_0x26f096(0x32b)](_0x34c4b3));void 0x0===_0x50d3af&&(_0x50d3af=_0xbbbbf7[0x0]);const _0x5e228d=_0xbbbbf7[_0x26f096(0x32b)](_0x50d3af);if(-0x1==_0x5e228d)return null;const _0x4dadef=_0xc6ea70[_0x5e228d],_0x5c8464=new _0x13cca0([]),_0x30c021=new _0x13cca0([]);for(const _0x54b9a4 of _0x4dadef[_0x26f096(0x2f8)])if(_0x26f096(0x30e)!=_0x54b9a4[_0x26f096(0x283)]&&_0x30c021[_0x26f096(0x21d)][_0x26f096(0x35d)](_0x54b9a4[_0x26f096(0x269)][_0x26f096(0x32e)](!0x0)),_0x26f096(0x310)!=_0x54b9a4[_0x26f096(0x283)]){const _0x4ee91f=_0x3a56f0(_0xa86e45=>_0x72a9e6(_0xa86e45,_0x26f096(0x341))==_0x54b9a4['id'],_0x5bbd1c[_0x26f096(0x240)],!0x0);_0x5c8464[_0x26f096(0x21d)][_0x26f096(0x35d)](_0x4ee91f[_0x26f096(0x32e)](!0x0));}if(0x0==_0x5c8464[_0x26f096(0x21d)][_0x26f096(0x2f9)]){if(_0x4dadef[_0x26f096(0x2f8)][0x0][_0x26f096(0x212)]){const _0x24d8d2=_0x1ad66e(_0x26f096(0x341),_0x4dadef[_0x26f096(0x2f8)][0x0][_0x26f096(0x212)],_0x5bbd1c[_0x26f096(0x240)]);_0x5c8464[_0x26f096(0x21d)][_0x26f096(0x249)](_0x24d8d2[_0x26f096(0x32e)](!0x0)),_0x30c021[_0x26f096(0x21d)][_0x26f096(0x249)](_0x24d8d2[_0x26f096(0x32e)](!0x0)),_0x24d8d2[_0x26f096(0x293)]&&(_0x5c8464[_0x26f096(0x21d)][_0x26f096(0x35d)](_0x24d8d2[_0x26f096(0x293)][_0x26f096(0x32e)](!0x0)),_0x30c021[_0x26f096(0x21d)][_0x26f096(0x35d)](_0x24d8d2[_0x26f096(0x293)][_0x26f096(0x32e)](!0x0)));}else{const _0x4af972=_0x5bbd1c[_0x26f096(0x240)][_0x26f096(0x21d)][0x0];if(!_0x4af972)return null;_0x5c8464[_0x26f096(0x21d)][_0x26f096(0x35d)](_0x4af972[_0x26f096(0x32e)](!0x0)),_0x30c021[_0x26f096(0x21d)][_0x26f096(0x35d)](_0x4af972[_0x26f096(0x32e)](!0x0));}}const _0x5c1c5f=_0x36dcd8[_0x26f096(0x2e4)](),_0xed246=_0x2f25e2[_0x26f096(0x281)][_0x26f096(0x2c6)](_0x5c1c5f[_0x26f096(0x30f)]),_0x216c8e=_0x5b45d0(_0x5c8464),_0x4211eb=_0x2f25e2[_0x26f096(0x281)][_0x26f096(0x2c6)](_0x216c8e),_0x463845=_0x2f25e2[_0x26f096(0x281)][_0x26f096(0x2c6)](_0x216c8e),_0x4f14b2=_0x2f25e2[_0x26f096(0x224)][_0x26f096(0x2f5)](_0x4211eb,0x0),_0x56f888=_0x5b45d0(_0x30c021),_0x1dd005={'anchor':_0x4f14b2,'markDeletions':!0x1},_0x47f738=_0x2f25e2[_0x26f096(0x319)][_0x26f096(0x307)](_0x1d9b5e)[_0x26f096(0x26e)](_0x216c8e,_0x56f888,_0x1dd005)[_0x26f096(0x33b)]();if(!_0x47f738[_0x26f096(0x2f9)])return null;_0x2f25e2[_0x26f096(0x224)][_0x26f096(0x278)](_0x5bbd00=>{const _0x146891=_0x26f096;for(const _0x31aa9b of _0x47f738)if(_0x146891(0x308)==_0x31aa9b[_0x146891(0x283)]){const _0x1e3fa9=_0x31aa9b[_0x146891(0x2a8)],_0xf78102=_0x31aa9b[_0x146891(0x379)],_0x3b4ed0=new _0x2c4d80(_0x1e3fa9,_0xf78102);_0x5bbd00[_0x146891(0x22b)][_0x146891(0x266)](_0x3b4ed0),_0x2f25e2[_0x146891(0x224)][_0x146891(0x2d0)](_0x3b4ed0);}else _0x146891(0x351)!==_0x31aa9b[_0x146891(0x283)]&&(_0x31aa9b[_0x146891(0x375)]=null,_0x31aa9b[_0x146891(0x2a4)]=!0x1,_0x5bbd00[_0x146891(0x22b)][_0x146891(0x266)](_0x31aa9b),_0x2f25e2[_0x146891(0x224)][_0x146891(0x2d0)](_0x31aa9b));});const _0x3be0e2=_0x1ac5fa(_0x2f25e2,_0x47f738,_0x4211eb);_0x57cdc0(_0x2f25e2[_0x26f096(0x224)],_0x3be0e2);const _0x3f1c60=_0x3be0e2[_0x26f096(0x378)]()[_0x26f096(0x350)][_0x26f096(0x325)][_0x26f096(0x368)](),_0x31a8df=_0x3be0e2[_0x26f096(0x378)]()[_0x26f096(0x35c)][_0x26f096(0x325)][_0x26f096(0x368)](),_0x5d3429=[];let _0x599d86=_0x4211eb,_0x4c28a1=_0x463845;for(let _0x23341d=0x0;_0x23341d<_0x31a8df[_0x26f096(0x2f9)];_0x23341d++){const _0x29dc77=_0x599d86[_0x26f096(0x292)]-_0x31a8df[_0x23341d];_0x5d3429[_0x23341d]=_0x4c28a1[_0x26f096(0x292)]-_0x29dc77,_0x599d86=_0x599d86[_0x26f096(0x33e)](_0x31a8df[_0x23341d]),_0x4c28a1=_0x4c28a1[_0x26f096(0x33e)](_0x5d3429[_0x23341d]);}const _0x1c371c=_0x2f25e2[_0x26f096(0x224)][_0x26f096(0x21a)](_0x2f25e2[_0x26f096(0x224)][_0x26f096(0x2a3)](_0x463845,_0x3f1c60),_0x2f25e2[_0x26f096(0x224)][_0x26f096(0x2a3)](_0x463845,_0x5d3429)),_0x1cc4b9=_0x463845[_0x26f096(0x2c7)](0x0)[_0x26f096(0x268)](_0x19eeee),_0x26cd61=Array[_0x26f096(0x318)](_0xed246[_0x26f096(0x250)]())[_0x26f096(0x1fc)](_0x3f5e6f=>_0x3f5e6f[_0x26f096(0x268)](_0x19eeee)==_0x1cc4b9)[_0x26f096(0x2a1)](),_0x11ca03=_0x1c371c[_0x26f096(0x350)][_0x26f096(0x325)][_0x26f096(0x368)](),_0x59691b=_0x1c371c[_0x26f096(0x35c)][_0x26f096(0x325)][_0x26f096(0x368)]();_0x11ca03[0x0]=_0x26cd61[0x0]+_0x11ca03[0x0],_0x59691b[0x0]=_0x26cd61[0x0]+_0x59691b[0x0];let _0x4d4b85=_0x2f25e2[_0x26f096(0x224)][_0x26f096(0x21a)](_0x2f25e2[_0x26f096(0x224)][_0x26f096(0x2a3)](_0x2f25e2[_0x26f096(0x224)][_0x26f096(0x358)][_0x26f096(0x24e)](),_0x11ca03),_0x2f25e2[_0x26f096(0x224)][_0x26f096(0x2a3)](_0x2f25e2[_0x26f096(0x224)][_0x26f096(0x358)][_0x26f096(0x24e)](),_0x59691b));const _0x225bce=_0x2f25e2[_0x26f096(0x224)][_0x26f096(0x358)][_0x26f096(0x2f3)][_0x26f096(0x33b)](_0x5c1c5f[_0x26f096(0x2de)]);for(const _0x59d401 of _0x225bce)_0x4d4b85=_0x228e25[_0x26f096(0x27a)](_0x4d4b85[_0x26f096(0x37b)](_0x59d401));return{'range':_0x4d4b85,'currentIndex':_0x50d3af};}[_0x1702d8(0x2fb)](_0x14e8dd){const _0x2f76db=_0x1702d8;if(!_0x14e8dd[_0x2f76db(0x319)][_0x2f76db(0x261)](_0x2f76db(0x2e1)))return;const _0x227196=_0x14e8dd[_0x2f76db(0x32f)][_0x2f76db(0x307)](_0x2f76db(0x376)),_0x53cbb7=_0x14e8dd[_0x2f76db(0x32f)][_0x2f76db(0x307)](_0x2f76db(0x284));this[_0x2f76db(0x218)](_0x227196,_0x2f76db(0x271),(_0x21a2ac,_0x41c70e,_0x210234)=>{const _0xdbcd71=_0x2f76db,_0x1e8050=this[_0xdbcd71(0x2b3)][_0xdbcd71(0x307)](_0x41c70e);if(!_0x1e8050)return;const _0x3c1b93=this[_0xdbcd71(0x31c)][_0xdbcd71(0x25d)](_0x1e8050[_0xdbcd71(0x2ca)])[_0xdbcd71(0x29b)](_0x1e8050[_0xdbcd71(0x35a)]);_0x1e8050[_0xdbcd71(0x2a7)][_0xdbcd71(0x29d)](_0x57935b=>_0x3c1b93[_0xdbcd71(0x34b)](_0x57935b,_0xdbcd71(0x2b7))),this[_0xdbcd71(0x2b3)][_0xdbcd71(0x247)](_0x41c70e),this[_0xdbcd71(0x2b3)][_0xdbcd71(0x2ae)](_0x210234,_0x1e8050);}),this[_0x2f76db(0x218)](_0x53cbb7,_0x2f76db(0x271),(_0x1d1cfb,_0x503fd2,_0x12af12)=>{const _0x277451=_0x2f76db,_0x3d2bc2=this[_0x277451(0x2b3)][_0x277451(0x307)](_0x503fd2);if(!_0x3d2bc2)return;const _0x1ff09f=this[_0x277451(0x31c)][_0x277451(0x25d)](_0x3d2bc2[_0x277451(0x2ca)])[_0x277451(0x29b)](_0x3d2bc2[_0x277451(0x35a)]);_0x3d2bc2[_0x277451(0x2a7)][_0x277451(0x29d)](_0xbb70e6=>_0x1ff09f[_0x277451(0x34b)](_0xbb70e6,_0x277451(0x279))),this[_0x277451(0x2b3)][_0x277451(0x247)](_0x503fd2),this[_0x277451(0x2b3)][_0x277451(0x2ae)](_0x12af12,_0x3d2bc2);});}async[_0x1702d8(0x336)](_0x294cfc){const _0x1a9024=_0x1702d8;this[_0x1a9024(0x2fe)][_0x1a9024(0x319)][_0x1a9024(0x261)](_0x1a9024(0x287))&&this[_0x1a9024(0x2fe)][_0x1a9024(0x319)][_0x1a9024(0x307)](_0x1a9024(0x287))[_0x1a9024(0x216)](),(this[_0x1a9024(0x2fe)][_0x1a9024(0x319)][_0x1a9024(0x307)](_0x4be643)[_0x1a9024(0x2dd)][_0x1a9024(0x37d)](_0x1a9024(0x354)),this[_0x1a9024(0x330)][_0x1a9024(0x314)](_0x1a9024(0x237)),this[_0x1a9024(0x330)][_0x1a9024(0x295)](!0x0),await this[_0x1a9024(0x2c1)]());try{await this[_0x1a9024(0x2ce)][_0x1a9024(0x20d)](_0x294cfc)[_0x1a9024(0x32c)](),await this[_0x1a9024(0x2cb)](_0x294cfc),this[_0x1a9024(0x28c)]('\x20'),await this[_0x1a9024(0x31c)][_0x1a9024(0x2cf)](_0x294cfc,this[_0x1a9024(0x246)][_0x1a9024(0x356)]),this[_0x1a9024(0x31c)][_0x1a9024(0x252)]()&&this[_0x1a9024(0x242)]();}catch(_0x3682cd){this[_0x1a9024(0x330)][_0x1a9024(0x29c)]({'errorMessage':_0x5ddcf9(this[_0x1a9024(0x2fe)][_0x1a9024(0x20b)],_0x1a9024(0x360)),'id':_0x294cfc}),this[_0x1a9024(0x2b2)](new _0x5214a0(_0x1a9024(0x270),this,{'error':_0x3682cd}));}finally{this[_0x1a9024(0x330)][_0x1a9024(0x258)](),this[_0x1a9024(0x330)][_0x1a9024(0x314)](_0x1a9024(0x2d9)),this[_0x1a9024(0x330)][_0x1a9024(0x295)](!0x1);}}async[_0x1702d8(0x35f)](){const _0x1c3a51=_0x1702d8,_0x559dc5=this[_0x1c3a51(0x2ce)][_0x1c3a51(0x2bd)](this[_0x1c3a51(0x20a)](),{'limit':0x1,'sortBy':_0x1c3a51(0x1f9)});try{const _0x2322a2=await _0x559dc5[_0x1c3a51(0x36b)]();return _0x2322a2[_0x1c3a51(0x2f9)]?_0x2322a2[0x0]['id']:_0x1c3a51(0x310);}catch(_0x18fbbf){return this[_0x1c3a51(0x330)][_0x1c3a51(0x29c)]({'errorMessage':_0x5ddcf9(this[_0x1c3a51(0x2fe)][_0x1c3a51(0x20b)],_0x1c3a51(0x360)),'id':_0x1f1720()}),this[_0x1c3a51(0x2b2)](new _0x5214a0(_0x1c3a51(0x2f7),this,{'error':_0x18fbbf})),this[_0x1c3a51(0x330)][_0x1c3a51(0x295)](!0x1),this[_0x1c3a51(0x330)][_0x1c3a51(0x20f)](),null;}}[_0x1702d8(0x28e)](_0x5b7121){const _0x3a9245=_0x1702d8;this[_0x3a9245(0x31c)]['id']===_0x5b7121&&this[_0x3a9245(0x2cb)]();}[_0x1702d8(0x242)](){const _0x24603b=_0x1702d8;this[_0x24603b(0x31c)]?.[_0x24603b(0x211)](_0x5ddcf9(this[_0x24603b(0x2fe)][_0x24603b(0x20b)],_0x24603b(0x238)));}async[_0x1702d8(0x2cc)](){const _0x26e061=_0x1702d8,_0x14cbf6=this[_0x26e061(0x246)][_0x26e061(0x1f7)]();this[_0x26e061(0x31c)]?.[_0x26e061(0x27d)](_0x14cbf6),this[_0x26e061(0x242)]();}[_0x1702d8(0x301)](){const _0x2223fe=_0x1702d8;this[_0x2223fe(0x31c)]?.[_0x2223fe(0x265)]();}[_0x1702d8(0x26d)](){const _0x5e2b3d=_0x1702d8;this[_0x5e2b3d(0x330)][_0x5e2b3d(0x26d)]();}async[_0x1702d8(0x2fd)](){const _0xa99c42=_0x1702d8;await this[_0xa99c42(0x2cb)]();}async[_0x1702d8(0x34d)]({message:_0x1ff326,attributes:_0x4a3993}){const _0x28ac4f=_0x1702d8;await this[_0x28ac4f(0x25e)]({'userMessage':_0x1ff326,'attributes':_0x4a3993});}[_0x1702d8(0x20a)](){const _0x102949=_0x1702d8,_0x83b5fb=this[_0x102949(0x2fe)][_0x102949(0x36e)][_0x102949(0x307)](_0x102949(0x340));if(!_0x83b5fb)throw new _0x5214a0(_0x102949(0x2c3),this);return _0x83b5fb;}async[_0x1702d8(0x2cb)](_0x46b9b8){const _0x547c04=_0x1702d8;try{this[_0x547c04(0x330)][_0x547c04(0x256)](),await this[_0x547c04(0x28b)](_0x46b9b8);}catch(_0x24e145){this[_0x547c04(0x330)][_0x547c04(0x29c)]({'errorMessage':_0x5ddcf9(this[_0x547c04(0x2fe)][_0x547c04(0x20b)],_0x547c04(0x221)),'id':_0x46b9b8||_0x1f1720()}),console[_0x547c04(0x204)](_0x24e145),this[_0x547c04(0x31c)]=void 0x0,this[_0x547c04(0x330)][_0x547c04(0x20f)]();}}async[_0x1702d8(0x28b)](_0x3eb02e){const _0x57ef48=_0x1702d8;let _0x149265;this[_0x57ef48(0x2fe)][_0x57ef48(0x319)][_0x57ef48(0x261)](_0x57ef48(0x287))&&this[_0x57ef48(0x2fe)][_0x57ef48(0x319)][_0x57ef48(0x307)](_0x57ef48(0x287))[_0x57ef48(0x216)](),_0x3eb02e||!this[_0x57ef48(0x31c)]?_0x149265=this[_0x57ef48(0x2fe)][_0x57ef48(0x36e)][_0x57ef48(0x307)](_0x57ef48(0x31f)):this[_0x57ef48(0x330)][_0x57ef48(0x29f)]&&(_0x149265=this[_0x57ef48(0x31c)][_0x57ef48(0x245)]['id']),await this[_0x57ef48(0x2c1)]();const _0x5eb6a9=this[_0x57ef48(0x20a)](),_0x28a95d=_0x3eb02e||_0x1f1720();this[_0x57ef48(0x31c)]=new _0x3fd626({'connector':this[_0x57ef48(0x2ce)],'chatModels':this[_0x57ef48(0x30b)],'selectedModelId':_0x149265,'conversationId':_0x28a95d,'group':_0x5eb6a9,'getEditor':()=>_0x5a62a2(this[_0x57ef48(0x2fe)]),'isFromHistory':!!_0x3eb02e}),this[_0x57ef48(0x31c)][_0x57ef48(0x338)](_0x57ef48(0x28a),_0x57ef48(0x208))['to'](this),this[_0x57ef48(0x31c)]['on'](_0x57ef48(0x2be),(_0x137d5d,_0x11edff)=>{const _0x5eb627=_0x57ef48;this[_0x5eb627(0x330)][_0x5eb627(0x299)](_0x11edff),this[_0x5eb627(0x330)][_0x5eb627(0x24d)](),this[_0x5eb627(0x330)][_0x5eb627(0x333)](),this[_0x5eb627(0x330)][_0x5eb627(0x209)](),_0x3eb02e||(this[_0x5eb627(0x330)][_0x5eb627(0x2f6)](),this[_0x5eb627(0x242)]());}),this[_0x57ef48(0x31c)]['on'](_0x57ef48(0x2a9),(_0x439384,_0x17b1a5)=>{const _0x15848c=_0x57ef48;this[_0x15848c(0x330)][_0x15848c(0x2d5)](_0x17b1a5[_0x15848c(0x371)]);}),this[_0x57ef48(0x31c)]['on'](_0x57ef48(0x34f),(_0x48f6df,_0x527d87)=>{const _0x6638b3=_0x57ef48;this[_0x6638b3(0x330)][_0x6638b3(0x2c8)](_0x527d87);}),this[_0x57ef48(0x31c)]['on'](_0x57ef48(0x236),()=>{const _0x36d83b=_0x57ef48,_0x2557f2=this[_0x36d83b(0x330)][_0x36d83b(0x2a5)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x36d83b(0x330)][_0x36d83b(0x25c)](_0x2557f2);}),this[_0x57ef48(0x31c)]['on'](_0x57ef48(0x262),()=>{const _0x3a739f=_0x57ef48,_0x504c5b=this[_0x3a739f(0x330)][_0x3a739f(0x2a5)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x3a739f(0x330)][_0x3a739f(0x25c)](_0x504c5b);}),this[_0x57ef48(0x31c)]['on'](_0x57ef48(0x257),(_0x1cbb22,_0x324270)=>{const _0x1702e9=_0x57ef48;this[_0x1702e9(0x330)][_0x1702e9(0x2e0)](_0x324270,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x57ef48(0x31c)]['on'](_0x57ef48(0x347),(_0x248bd2,_0x58c2fa)=>{const _0x33716d=_0x57ef48;this[_0x33716d(0x330)][_0x33716d(0x2e0)](_0x58c2fa,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x57ef48(0x31c)]['on'](_0x57ef48(0x208),()=>{const _0x10bbd3=_0x57ef48;this[_0x10bbd3(0x330)][_0x10bbd3(0x2f0)]();}),this[_0x57ef48(0x31c)]['on'](_0x57ef48(0x33c),async()=>{const _0x546797=_0x57ef48;await this[_0x546797(0x330)][_0x546797(0x23f)]();}),this[_0x57ef48(0x31c)]['on'](_0x57ef48(0x346),(_0x445c76,_0x17db7c)=>{const _0x46406b=_0x57ef48;this[_0x46406b(0x330)][_0x46406b(0x367)](_0x17db7c['id']);}),this[_0x57ef48(0x31c)]['on'](_0x57ef48(0x2ab),(_0x56edb6,_0xc1d18b,_0x4f2c0e)=>{const _0x5ee041=_0x57ef48;this[_0x5ee041(0x28c)](_0xc1d18b,_0x4f2c0e);}),this[_0x57ef48(0x31c)]['on'](_0x57ef48(0x343),(_0x14f209,_0x140e3a)=>{const _0x49e258=_0x57ef48;_0x49e258(0x2b9)===_0x140e3a[_0x49e258(0x283)]?this[_0x49e258(0x330)][_0x49e258(0x2ff)](_0x140e3a):this[_0x49e258(0x330)][_0x49e258(0x23e)](_0x140e3a);}),this[_0x57ef48(0x31c)]['on'](_0x57ef48(0x1fe),async(_0x31eccf,_0x3562a8)=>{const _0x5a1f1a=_0x57ef48;await this[_0x5a1f1a(0x232)]({'reply':_0x3562a8});}),this[_0x57ef48(0x31c)]['on'](_0x57ef48(0x225),(_0x135bf6,{reply:_0x32e075,index:_0x27f92d,state:_0x196a17})=>{const _0x5107f4=_0x57ef48;this[_0x5107f4(0x330)][_0x5107f4(0x36f)]({'id':_0x32e075['id'],'index':_0x27f92d,'state':_0x196a17}),this[_0x5107f4(0x302)]?.[_0x5107f4(0x35a)][_0x5107f4(0x352)](_0x32e075['id'])&&this[_0x5107f4(0x302)]?.[_0x5107f4(0x22e)]==_0x27f92d&&this[_0x5107f4(0x372)]?.[_0x5107f4(0x328)](_0x196a17);}),this[_0x57ef48(0x31c)]['on'](_0x57ef48(0x345),(_0x9390a,_0x5b8e5b)=>{const _0x52b40d=_0x57ef48;if(this[_0x52b40d(0x330)][_0x52b40d(0x317)](_0x5b8e5b[_0x52b40d(0x2f2)],_0x5b8e5b[_0x52b40d(0x2dc)]),_0x52b40d(0x304)===_0x5b8e5b[_0x52b40d(0x2f2)][_0x52b40d(0x283)]){const _0x4a8fb3=[..._0x5a62a2(this[_0x52b40d(0x2fe)])[_0x52b40d(0x224)][_0x52b40d(0x358)][_0x52b40d(0x304)][_0x52b40d(0x203)]()];this[_0x52b40d(0x246)][_0x52b40d(0x339)](_0x4a8fb3,_0x52b40d(0x231)+this[_0x52b40d(0x31c)]?.['id']);}}),this[_0x57ef48(0x31c)]['on'](_0x57ef48(0x2b5),(_0x3c25df,_0x1e55c5)=>{const _0x2ac95d=_0x57ef48;this[_0x2ac95d(0x330)][_0x2ac95d(0x2e3)](_0x1e55c5[_0x2ac95d(0x2bc)]),_0x2ac95d(0x309)==_0x1e55c5[_0x2ac95d(0x2bc)]&&this[_0x2ac95d(0x301)](),_0x2ac95d(0x304)===_0x1e55c5[_0x2ac95d(0x283)]&&this[_0x2ac95d(0x246)][_0x2ac95d(0x228)](_0x2ac95d(0x231)+this[_0x2ac95d(0x31c)]?.['id']);}),this[_0x57ef48(0x31c)]['on'](_0x57ef48(0x306),(_0x2a4b94,_0x527b49)=>{const _0x105b30=_0x57ef48;this[_0x105b30(0x330)][_0x105b30(0x1f4)](_0x527b49[_0x105b30(0x2f2)][_0x105b30(0x2bc)],_0x527b49[_0x105b30(0x2dc)]);}),this[_0x57ef48(0x31c)]['on'](_0x57ef48(0x288),(_0x576d5a,_0x21d2e6)=>{const _0x1206bd=_0x57ef48;this[_0x1206bd(0x330)][_0x1206bd(0x290)](_0x21d2e6[_0x1206bd(0x21c)]);}),this[_0x57ef48(0x31c)]['on'](_0x57ef48(0x2d6),(_0x26f2a2,_0x3f6fc5)=>{const _0x5b2ec9=_0x57ef48;this[_0x5b2ec9(0x330)][_0x5b2ec9(0x31b)](_0x3f6fc5[_0x5b2ec9(0x25f)]);}),this[_0x57ef48(0x31c)]['on'](_0x57ef48(0x34a),(_0x3a1905,_0x44ca3b)=>{const _0x2f2479=_0x57ef48;this[_0x2f2479(0x330)][_0x2f2479(0x267)](_0x44ca3b[_0x2f2479(0x32a)],_0x44ca3b[_0x2f2479(0x2e2)],_0x44ca3b[_0x2f2479(0x286)],_0x44ca3b[_0x2f2479(0x324)]);}),this[_0x57ef48(0x31c)]['on'](_0x57ef48(0x337),(_0x2413d6,_0x1678cd)=>{const _0x12c260=_0x57ef48;this[_0x12c260(0x330)][_0x12c260(0x305)](_0x1678cd[_0x12c260(0x32a)],_0x1678cd[_0x12c260(0x355)],_0x1678cd[_0x12c260(0x334)]);}),this[_0x57ef48(0x31c)]['on'](_0x57ef48(0x2f1),(_0x2f90af,_0x568f72)=>{const _0x3bcdb7=_0x57ef48;this[_0x3bcdb7(0x330)][_0x3bcdb7(0x30c)](_0x568f72);}),this[_0x57ef48(0x31c)]['on'](_0x57ef48(0x253),async(_0x1be3a9,_0x8a7142)=>{const _0x16bff2=_0x57ef48,_0x414ab5=(await this[_0x16bff2(0x30b)][_0x16bff2(0x2d1)]())[_0x16bff2(0x1fc)](_0x5df80f=>_0x5df80f['id']===_0x8a7142[_0x16bff2(0x245)]?.['id'])||null;this[_0x16bff2(0x330)][_0x16bff2(0x2e6)](_0x414ab5,_0x8a7142[_0x16bff2(0x207)]);}),this[_0x57ef48(0x31c)]['on'](_0x57ef48(0x204),(_0x4066e3,{error:_0xf7a2f5,interactionId:_0x4bc6d7,fileName:_0x4bbdf6,url:_0x4b4295,sourceId:_0x56277e,sourceLabel:_0x2af6a0})=>{const _0x58eb83=_0x57ef48,_0x55babb=_0x4bc6d7?_0x4bc6d7+':'+_0x1f1720():_0x1f1720();_0xf7a2f5[_0x58eb83(0x342)][_0x58eb83(0x2d4)](_0x58eb83(0x321))?this[_0x58eb83(0x330)][_0x58eb83(0x1f6)]({'staticMessage':_0x5ddcf9(this[_0x58eb83(0x2fe)][_0x58eb83(0x20b)],_0x58eb83(0x1fd)),'id':_0x55babb}):_0xf7a2f5[_0x58eb83(0x342)][_0x58eb83(0x2d4)](_0x58eb83(0x2f7))||_0xf7a2f5[_0x58eb83(0x342)][_0x58eb83(0x2d4)](_0x58eb83(0x23a))?(this[_0x58eb83(0x330)][_0x58eb83(0x29c)]({'errorMessage':_0x5ddcf9(this[_0x58eb83(0x2fe)][_0x58eb83(0x20b)],_0x58eb83(0x221)),'id':_0x55babb}),this[_0x58eb83(0x2b2)](_0xf7a2f5)):_0xf7a2f5[_0x58eb83(0x342)][_0x58eb83(0x2d4)](_0x58eb83(0x2aa))?this[_0x58eb83(0x330)][_0x58eb83(0x29c)]({'errorMessage':_0x5ddcf9(this[_0x58eb83(0x2fe)][_0x58eb83(0x20b)],_0x58eb83(0x264),_0x4bbdf6),'id':_0x55babb}):_0xf7a2f5[_0x58eb83(0x342)][_0x58eb83(0x2d4)](_0x58eb83(0x29a))?this[_0x58eb83(0x330)][_0x58eb83(0x29c)]({'errorMessage':_0x5ddcf9(this[_0x58eb83(0x2fe)][_0x58eb83(0x20b)],_0x58eb83(0x370),_0x4b4295),'id':_0x55babb}):_0xf7a2f5[_0x58eb83(0x342)][_0x58eb83(0x2d4)](_0x58eb83(0x282))?this[_0x58eb83(0x330)][_0x58eb83(0x29c)]({'errorMessage':_0x5ddcf9(this[_0x58eb83(0x2fe)][_0x58eb83(0x20b)],_0x58eb83(0x206)),'id':_0x55babb}):_0xf7a2f5[_0x58eb83(0x342)][_0x58eb83(0x2d4)](_0x58eb83(0x248))?this[_0x58eb83(0x330)][_0x58eb83(0x29c)]({'errorMessage':_0x5ddcf9(this[_0x58eb83(0x2fe)][_0x58eb83(0x20b)],_0x58eb83(0x35e)),'id':_0x55babb}):_0xf7a2f5[_0x58eb83(0x342)][_0x58eb83(0x2d4)](_0x58eb83(0x311))?(_0x56277e&&this[_0x58eb83(0x330)][_0x58eb83(0x22f)](_0x56277e),this[_0x58eb83(0x330)][_0x58eb83(0x29c)]({'errorMessage':_0x5ddcf9(this[_0x58eb83(0x2fe)][_0x58eb83(0x20b)],_0x58eb83(0x357),_0x2af6a0||_0x58eb83(0x2e2)),'id':_0x55babb}),this[_0x58eb83(0x2b2)](_0xf7a2f5)):_0xf7a2f5[_0x58eb83(0x342)][_0x58eb83(0x2d4)](_0x58eb83(0x27c))?(this[_0x58eb83(0x330)][_0x58eb83(0x29c)]({'errorMessage':_0x5ddcf9(this[_0x58eb83(0x2fe)][_0x58eb83(0x20b)],_0x58eb83(0x23b)),'id':_0x55babb}),this[_0x58eb83(0x2b2)](_0xf7a2f5)):_0xf7a2f5[_0x58eb83(0x342)][_0x58eb83(0x2d4)](_0x58eb83(0x26f))?(this[_0x58eb83(0x330)][_0x58eb83(0x29c)]({'errorMessage':_0x5ddcf9(this[_0x58eb83(0x2fe)][_0x58eb83(0x20b)],_0x58eb83(0x285)),'id':_0x55babb}),this[_0x58eb83(0x2b2)](_0xf7a2f5)):_0xf7a2f5[_0x58eb83(0x342)][_0x58eb83(0x2d4)](_0x58eb83(0x23c))?(this[_0x58eb83(0x330)][_0x58eb83(0x29c)]({'errorMessage':_0x5ddcf9(this[_0x58eb83(0x2fe)][_0x58eb83(0x20b)],_0x58eb83(0x348)),'id':_0x55babb}),this[_0x58eb83(0x2b2)](_0xf7a2f5)):_0xf7a2f5[_0x58eb83(0x342)][_0x58eb83(0x2d4)](_0x58eb83(0x329))?(this[_0x58eb83(0x330)][_0x58eb83(0x29c)]({'errorMessage':_0x5ddcf9(this[_0x58eb83(0x2fe)][_0x58eb83(0x20b)],_0x58eb83(0x244)),'id':_0x55babb}),this[_0x58eb83(0x2b2)](_0xf7a2f5)):_0xf7a2f5[_0x58eb83(0x342)][_0x58eb83(0x2d4)](_0x58eb83(0x2ea))?(this[_0x58eb83(0x330)][_0x58eb83(0x29c)]({'errorMessage':_0x5ddcf9(this[_0x58eb83(0x2fe)][_0x58eb83(0x20b)],_0x58eb83(0x255)),'id':_0x55babb}),this[_0x58eb83(0x2b2)](_0xf7a2f5)):_0xf7a2f5[_0x58eb83(0x342)][_0x58eb83(0x2d4)](_0x58eb83(0x29e))?(this[_0x58eb83(0x330)][_0x58eb83(0x29c)]({'errorMessage':_0x5ddcf9(this[_0x58eb83(0x2fe)][_0x58eb83(0x20b)],_0x58eb83(0x1ff)),'id':_0x55babb}),this[_0x58eb83(0x2b2)](_0xf7a2f5)):(this[_0x58eb83(0x330)][_0x58eb83(0x29c)]({'errorMessage':_0x5ddcf9(this[_0x58eb83(0x2fe)][_0x58eb83(0x20b)],_0x58eb83(0x276)),'id':_0x55babb}),this[_0x58eb83(0x2b2)](_0xf7a2f5));}),await this[_0x57ef48(0x31c)][_0x57ef48(0x349)](this[_0x57ef48(0x2fe)][_0x57ef48(0x36e)][_0x57ef48(0x307)](_0x57ef48(0x291))),_0x3eb02e||await this[_0x57ef48(0x31c)][_0x57ef48(0x350)]();}async[_0x1702d8(0x25e)]({userMessage:_0x2ec2f2,attributes:_0x52cff9}){const _0x1e83cb=_0x1702d8;if(!this[_0x1e83cb(0x31c)])throw new _0x5214a0(_0x1e83cb(0x2a6));if(this[_0x1e83cb(0x31c)][_0x1e83cb(0x26c)]()){const _0xe47392=await this[_0x1e83cb(0x246)][_0x1e83cb(0x272)]();await this[_0x1e83cb(0x31c)][_0x1e83cb(0x35b)](_0xe47392);}this[_0x1e83cb(0x31c)]['id']&&this[_0x1e83cb(0x31c)][_0x1e83cb(0x2da)]&&await this[_0x1e83cb(0x31c)][_0x1e83cb(0x274)]({'userMessage':_0x2ec2f2,'attributes':_0x52cff9});}[_0x1702d8(0x24a)](){const _0x289b8f=_0x1702d8;console[_0x289b8f(0x24b)](_0x289b8f(0x34c));}[_0x1702d8(0x2a0)](_0x57cff3){const _0x18a098=_0x1702d8;this[_0x18a098(0x330)][_0x18a098(0x2ba)](_0x57cff3);}[_0x1702d8(0x2b2)](_0x272d89){const _0x3f0df9=_0x1702d8;_0x4b9dd1(_0x272d89[_0x3f0df9(0x342)]);}[_0x1702d8(0x353)](_0x136238){const _0x1c2a3f=_0x1702d8;this[_0x1c2a3f(0x31c)]?.[_0x1c2a3f(0x331)](_0x136238);}[_0x1702d8(0x2db)](){const _0xc78b3a=_0x1702d8;this[_0xc78b3a(0x31c)]?.[_0xc78b3a(0x31e)]();}[_0x1702d8(0x26b)](){const _0x396b19=_0x1702d8;this[_0x396b19(0x31c)]?.[_0x396b19(0x2e7)]();}[_0x1702d8(0x2eb)](_0x2427fe){const _0x437ee5=_0x1702d8,[_0x29a55d,_0x202211]=_0x2427fe[_0x437ee5(0x2bb)](':'),_0x1e6509=this[_0x437ee5(0x31c)][_0x437ee5(0x25d)](_0x29a55d),_0xc422fd=_0x1e6509[_0x437ee5(0x29b)](_0x202211);return{'interaction':_0x1e6509,'reply':_0xc422fd};}[_0x1702d8(0x312)](_0x5a5b53,_0x1b984e=!0x1){const _0x4c99cb=_0x1702d8,_0x1a2556=_0x5a62a2(this[_0x4c99cb(0x2fe)]),_0x191154={'target':_0x1a2556[_0x4c99cb(0x320)][_0x4c99cb(0x2dd)][_0x4c99cb(0x300)][_0x4c99cb(0x363)](_0x1a2556[_0x4c99cb(0x320)][_0x4c99cb(0x214)][_0x4c99cb(0x2c9)](_0x5a5b53)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x1b984e};_0x1b984e&&(_0x191154[_0x4c99cb(0x323)]=!0x0),_0x2651d7(_0x191154);}[_0x1702d8(0x28c)](_0x337fe5,_0x42d5e1=!0x1){const _0x58f786=_0x1702d8;this[_0x58f786(0x330)][_0x58f786(0x2ab)](_0x337fe5||_0x5ddcf9(this[_0x58f786(0x2fe)][_0x58f786(0x20b)],_0x58f786(0x2e8)),_0x42d5e1);}async[_0x1702d8(0x232)]({reply:_0x11ba9b,renderingStrategy:_0x301644}){const _0x42dc9f=_0x1702d8,{id:_0x1bae2b,interactionId:_0x15768e,isDone:_0x293725,type:_0x5d6c17,parsedContent:_0x32e7ea}=_0x11ba9b,_0x55bdde=_0x15768e+':'+_0x1bae2b;if(_0x42dc9f(0x226)===_0x5d6c17){const _0x2713b5=_0x11ba9b[_0x42dc9f(0x2ef)]({'showDiff':this[_0x42dc9f(0x330)][_0x42dc9f(0x24c)]});await this[_0x42dc9f(0x330)][_0x42dc9f(0x27b)]({'id':_0x55bdde,'parts':_0x2713b5,'renderingStrategy':_0x301644,'isDone':_0x293725});}else _0x42dc9f(0x2b9)===_0x5d6c17&&await this[_0x42dc9f(0x330)][_0x42dc9f(0x1f8)]({'id':_0x55bdde,'parsedContent':_0x32e7ea,'renderingStrategy':_0x301644,'isDone':_0x293725});_0x293725&&_0x11ba9b[_0x42dc9f(0x2b8)][_0x42dc9f(0x2f9)]>0x0&&this[_0x42dc9f(0x330)][_0x42dc9f(0x241)](_0x55bdde,_0x11ba9b[_0x42dc9f(0x2b8)]);}async[_0x1702d8(0x2c1)](){const _0xc1848d=_0x1702d8,_0x1aceb7=this[_0xc1848d(0x31c)]?.[_0xc1848d(0x273)];_0x1aceb7&&(_0x1aceb7[_0xc1848d(0x322)](),this[_0xc1848d(0x330)][_0xc1848d(0x2ac)](_0x1aceb7));}async[_0x1702d8(0x332)](){const _0x3e907c=_0x1702d8,_0x320fd2=this[_0x3e907c(0x31c)]?.[_0x3e907c(0x273)];if(_0x320fd2){for await(const _0x501c91 of _0x320fd2[_0x3e907c(0x1f5)])await this[_0x3e907c(0x232)]({'reply':_0x501c91,'renderingStrategy':_0x3e907c(0x237)});}}[_0x1702d8(0x33d)](_0xb7d364){const _0x3a8423=_0x1702d8,_0x21c595={'positiveCount':_0xb7d364[_0x3a8423(0x210)][_0x3a8423(0x235)](_0x5a7967=>_0x3a8423(0x279)===_0x5a7967[_0x3a8423(0x251)])[_0x3a8423(0x2f9)],'totalCount':_0xb7d364[_0x3a8423(0x210)][_0x3a8423(0x2f9)],'modificationId':_0xb7d364['id']},_0x566ea7=this[_0x3a8423(0x31c)][_0x3a8423(0x25d)](_0xb7d364[_0x3a8423(0x2ca)])[_0x3a8423(0x31a)];_0x566ea7&&this[_0x3a8423(0x2ce)][_0x3a8423(0x364)](this[_0x3a8423(0x31c)]['id'],_0x566ea7,_0x21c595);}[_0x1702d8(0x37c)](_0x4fa8a4){const _0x5d1ff7=_0x1702d8;let _0x99970a=null,_0xa6ad64=null;this['on'](_0x5d1ff7(0x28a),(_0x43c8c8,_0x109a23,_0x5c17a8)=>{const _0x1140b=_0x5d1ff7;_0x5c17a8['id']!==_0x99970a&&(_0x99970a=_0x5c17a8['id'],_0xa6ad64=this[_0x1140b(0x2b1)](_0x5c17a8)),_0x4fa8a4(_0x109a23,_0xa6ad64);});}[_0x1702d8(0x2b1)](_0x241ea5){const _0x2c8b26=_0x1702d8,_0xa22161=this[_0x2c8b26(0x330)],_0x1625e4=()=>{const _0x51e881=_0x2c8b26;_0x241ea5[_0x51e881(0x374)](),_0x241ea5[_0x51e881(0x24f)](),_0xa22161[_0x51e881(0x36a)]();},_0x40a2fd=()=>{const _0x3c48a4=_0x2c8b26;_0x241ea5[_0x3c48a4(0x2d2)]&&(_0x241ea5[_0x3c48a4(0x2d2)][_0x3c48a4(0x365)](),_0x241ea5[_0x3c48a4(0x2d2)]=void 0x0);};return{'insertTextReply':(_0x326f30,_0x4bfe7e)=>{const _0x208c2d=_0x2c8b26;_0x40a2fd(),_0x1625e4();const _0x4f1616=_0x241ea5[_0x208c2d(0x2d2)]=_0x241ea5[_0x208c2d(0x36d)]({'type':_0x208c2d(0x2b9),'interactionId':_0x241ea5['id'],'content':_0x326f30,'id':_0x4bfe7e||_0x1f1720()});return _0x40a2fd(),_0x4f1616;},'insertCustomElement':async(_0x2c25ec,_0x55cac0)=>(_0x40a2fd(),_0x1625e4(),_0xa22161[_0x2c8b26(0x277)](_0x2c25ec,_0x55cac0||_0x1f1720())),'setLoadingMessage':_0x15f47=>{const _0x55e8cd=_0x2c8b26;_0xa22161[_0x55e8cd(0x25c)](_0x15f47);},'clearLoadingMessage':()=>{const _0xba8a78=_0x2c8b26;_0xa22161[_0xba8a78(0x36a)]();}};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36e189=_0x28da;function _0x28da(_0x4252e1,_0x30c3e7){const _0x25ccf4=_0x25cc();return _0x28da=function(_0x28da35,_0xe71ac){_0x28da35=_0x28da35-0x17d;let _0x18c98f=_0x25ccf4[_0x28da35];return _0x18c98f;},_0x28da(_0x4252e1,_0x30c3e7);}(function(_0x2a0abd,_0x16b5a3){const _0x1e974e=_0x28da,_0xfa5acc=_0x2a0abd();while(!![]){try{const _0x4e8d1b=-parseInt(_0x1e974e(0x19e))/0x1*(-parseInt(_0x1e974e(0x22d))/0x2)+parseInt(_0x1e974e(0x1f1))/0x3+parseInt(_0x1e974e(0x17e))/0x4+-parseInt(_0x1e974e(0x1b9))/0x5+parseInt(_0x1e974e(0x1ff))/0x6*(parseInt(_0x1e974e(0x1fa))/0x7)+parseInt(_0x1e974e(0x1d2))/0x8+-parseInt(_0x1e974e(0x20c))/0x9;if(_0x4e8d1b===_0x16b5a3)break;else _0xfa5acc['push'](_0xfa5acc['shift']());}catch(_0x43eca9){_0xfa5acc['push'](_0xfa5acc['shift']());}}}(_0x25cc,0x74396));function _0x25cc(){const _0x1004e3=['isTrackChangesOn','stopInteraction','isPremiumPlugin','createConversation','requires','addFeedItemStaticMessage','setConversationContext','_interactionPromiseResolver','updateResourceState','ai.models.showModelSelector','updateFeedItemAIReplySources','locale','options','removeFeedItem','ai.chat.welcomeMessage','bind','104MRWlFk','find','startsWith','setContextItemLoading','addFeedItemCustomElement','set','interactionId','closeSourceResourceBalloon','ai.availableReplyActions','view','feedItemRenderingStrategy','<p>','setIsMaximized','hasFeedItem','enqueue','disableControls','attributes','removeContextItem','availableModels','AI_CHAT_WELCOME_MESSAGE','destroy','areActionsDisabled','focusPromptInput','context','user-message','_titleAnimationInterval','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','4652505ijqlnF','_animateConversationTitle','updateFeedItemAIReplyContent','resetMessageInput','showResizeButton','TrackChanges','AITabs','_getInputPlaceholder','clear','queueEmptyPromise','insertSuggestion','_view','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','stopAutoScroll','forEach','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','setLoadingMessage','ai.chat.context.searchInputVisibleFrom','plugins','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','config','enableControls','resetConversationTitle','updateSuggestionPartState','addContextItem','841984ebBjdu','from','setIsUploadInProgress','fire','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','isMaximized','clearLoadingMessage','abort','getItemIds','delegate','addFeedItemError','setSuggestionPartActive','isVisible','displayedPrompt','updateReplyItem','renderingStrategy','label','showDiff','addFeedItemUserMessage','setInputPlaceholder','updateFeedItemAIReplySuggestionContent','_isTrackChangesCommandValueBound','isPending','setReasoning','pluginName','contextItems','isWebSearchEnabled','toggleSuggestionDisplayMode','markItemAsDone','setConversationTitle','isDisabled','2732340dPbCso','finishInteraction','scrollToSuggestion','interaction-header','streaming','populateSourceResourceBalloon','toggleLoadingSkeleton','clearConversationContextUI','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','2379482HGLAje','addFeedInteractionHeader','prepareLoadingMessage','isLoading','updateFeedItemAIReplySuggestionPartState','6JRApnr','setSelectedModel','removeFeedInteraction','chatHeader','markFeedItemAsDone','filter','chatFeed','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','length','then','hasItem','value','chat','11118258EHMVZH','conversation-start','commands','remove','children','chatControls','addItem','addTab','isOfficialPlugin','conversationCreated','values','isDone','AI_CHAT_HEADING','setWebSearch','isModelAvailable','disableModelSelector','capabilities','updateWebSources','AIChatUI','setModel','setAddContextOptions','startInteraction','updateCapabilities','last','</p>','isBusy','get','updateFeedInteractionHeader','has','ai-suggestion-reply','addFeedItemAISuggestion','_promiseQueue','ai-reply','13982Plcomp','clearPendingContextUI','userMessage','2235596vckWtk','custom-element','isReasoningEnabled','startAutoScroll','error-message','updateSuggestionItem','setPromptInputValue','trackChanges','setFeedItemAIReplySuggestionPartActive','setFeedItemRenderingStrategy','scrollFeedToSuggestion','removeItem','enableModelSelector','addFeedItemAIReply','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','setModelList'];_0x25cc=function(){return _0x1004e3;};return _0x25cc();}import{ContextPlugin as _0xcc1b8b}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x42e4cb}from'ckeditor5/src/utils.js';import{AIChatView as _0x321008}from'./ui/aichatview.js';import{AITabs as _0x111a6a}from'../aitabs/aitabs.js';import{getTranslation as _0xa7514e}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x5cc338}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x3b5a63}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x5462b7}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x51e7c3}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x2a2305}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x56c6f6}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0xcc1b8b{static get[_0x36e189(0x192)](){return[_0x111a6a];}[_0x36e189(0x1c4)];static get[_0x36e189(0x1ea)](){const _0x21b958=_0x36e189;return _0x21b958(0x21e);}static get[_0x36e189(0x214)](){return!0x0;}static get[_0x36e189(0x190)](){return!0x0;}[_0x36e189(0x1a8)]=_0x36e189(0x1f5);[_0x36e189(0x1e3)]=!0x0;[_0x36e189(0x22b)];[_0x36e189(0x195)];[_0x36e189(0x1b7)]=void 0x0;[_0x36e189(0x1e7)]=!0x1;constructor(_0x45b17e){const _0x99f0ec=_0x36e189;super(_0x45b17e);const _0x19f931=this[_0x99f0ec(0x1b5)][_0x99f0ec(0x1cb)][_0x99f0ec(0x226)](_0x99f0ec(0x1bf));this[_0x99f0ec(0x1a3)](_0x99f0ec(0x225),!0x1),this[_0x99f0ec(0x22b)]=new _0x5462b7(),this[_0x99f0ec(0x1c4)]=new _0x321008(this[_0x99f0ec(0x1b5)][_0x99f0ec(0x199)],{'showResizeButton':_0x19f931[_0x99f0ec(0x1bd)],'contextResourcesSearchInputVisibleFrom':this[_0x99f0ec(0x1b5)][_0x99f0ec(0x1cd)][_0x99f0ec(0x226)](_0x99f0ec(0x1ca))}),this[_0x99f0ec(0x1c4)][_0x99f0ec(0x1db)](..._0x51e7c3)['to'](this),this[_0x99f0ec(0x1c4)]['on'](_0x99f0ec(0x1ed),(_0x47cda8,{showDiff:_0x3619c1})=>{const _0x1146fe=_0x99f0ec;this[_0x1146fe(0x1e3)]=_0x3619c1;}),_0x19f931[_0x99f0ec(0x1a7)][_0x99f0ec(0x213)]({'id':_0x99f0ec(0x20b),'buttonLabel':_0xa7514e(this[_0x99f0ec(0x1b5)][_0x99f0ec(0x199)],_0x99f0ec(0x218)),'buttonIcon':_0x5cc338,'order':0x0,'content':this[_0x99f0ec(0x1c4)]}),this[_0x99f0ec(0x1c4)][_0x99f0ec(0x211)][_0x99f0ec(0x19d)](_0x99f0ec(0x1fd))['to'](this,_0x99f0ec(0x225),_0xe2a8a=>_0xe2a8a),this[_0x99f0ec(0x1c4)][_0x99f0ec(0x205)][_0x99f0ec(0x19d)](_0x99f0ec(0x1e8))['to'](this,_0x99f0ec(0x225),_0x5a62ab=>_0x5a62ab),this[_0x99f0ec(0x1c4)][_0x99f0ec(0x211)][_0x99f0ec(0x1e5)](this[_0x99f0ec(0x1c0)]()),this[_0x99f0ec(0x19d)](_0x99f0ec(0x21a))['to'](this[_0x99f0ec(0x1c4)][_0x99f0ec(0x211)],_0x99f0ec(0x21a));}[_0x36e189(0x1b2)](){const _0x434685=_0x36e189;super[_0x434685(0x1b2)](),this[_0x434685(0x1b7)]&&clearInterval(this[_0x434685(0x1b7)]);}[_0x36e189(0x191)](_0x5305b7){const _0x556870=_0x36e189,_0x9aa13a=this[_0x556870(0x1b5)][_0x556870(0x1cd)][_0x556870(0x226)](_0x556870(0x19c))??_0xa7514e(this[_0x556870(0x1b5)][_0x556870(0x199)],_0x556870(0x1b1));this[_0x556870(0x1c4)][_0x556870(0x205)][_0x556870(0x1c1)](),this[_0x556870(0x1c4)][_0x556870(0x211)][_0x556870(0x18a)](),this[_0x556870(0x1c4)][_0x556870(0x211)][_0x556870(0x18d)](_0x5305b7[_0x556870(0x1b0)],!this[_0x556870(0x1b5)][_0x556870(0x1cd)][_0x556870(0x226)](_0x556870(0x197))),this[_0x556870(0x193)]({'id':_0x556870(0x20d),'staticMessage':_0x9aa13a}),this[_0x556870(0x1d5)](_0x556870(0x215));}[_0x36e189(0x193)]({id:_0x62f6bd,staticMessage:_0x2b94cb}){const _0x42058b=_0x36e189;this[_0x42058b(0x1c4)][_0x42058b(0x205)][_0x42058b(0x212)](_0x42058b(0x22c),{'id':_0x62f6bd,'initialContent':_0x42058b(0x1a9)+_0x2b94cb+_0x42058b(0x224)});}[_0x36e189(0x1e4)](_0x201a3c){const _0x587e2c=_0x36e189,_0x5e8eef=_0x201a3c[_0x587e2c(0x1ae)]?.[_0x587e2c(0x1df)]||_0x201a3c[_0x587e2c(0x17d)];this[_0x587e2c(0x1c4)][_0x587e2c(0x205)][_0x587e2c(0x212)](_0x587e2c(0x1b6),{'contextItems':Array[_0x587e2c(0x1d3)](_0x201a3c[_0x587e2c(0x1eb)][_0x587e2c(0x216)]()),'initialContent':_0x587e2c(0x1a9)+_0x5e8eef+_0x587e2c(0x224),'id':_0x201a3c['id']});}[_0x36e189(0x1dc)]({errorMessage:_0x126ac9,id:_0x7eee50}){const _0x220733=_0x36e189;this[_0x220733(0x1c4)][_0x220733(0x205)][_0x220733(0x212)](_0x220733(0x182),{'initialContent':_0x220733(0x1a9)+_0x126ac9+_0x220733(0x224),'id':_0x7eee50});}[_0x36e189(0x18b)](_0x1324a4){const _0x13589f=_0x36e189;return this[_0x13589f(0x22b)][_0x13589f(0x1ac)](async()=>{const _0x503807=_0x13589f;this[_0x503807(0x1c4)][_0x503807(0x205)][_0x503807(0x212)](_0x503807(0x22c),{'id':_0x1324a4[_0x503807(0x1a4)]+':'+_0x1324a4['id']}),this[_0x503807(0x1d8)]();});}async[_0x36e189(0x22a)](_0x2f0a92){const _0x149436=_0x36e189,_0x559898=_0x2a2305(this[_0x149436(0x1b5)]);let _0x3c7284=_0x559898[_0x149436(0x1cd)][_0x149436(0x226)](_0x149436(0x1a6))||[..._0x56c6f6];if(_0x559898[_0x149436(0x1cb)][_0x149436(0x228)](_0x149436(0x1be))){if(!this[_0x149436(0x1e7)]){this[_0x149436(0x1e7)]=!0x0;const _0x14ec97=_0x559898[_0x149436(0x20e)][_0x149436(0x226)](_0x149436(0x185));this[_0x149436(0x1c4)][_0x149436(0x205)][_0x149436(0x19d)](_0x149436(0x18e))['to'](_0x14ec97,_0x149436(0x20a));}}else _0x3c7284=_0x3c7284[_0x149436(0x204)](_0x448507=>_0x149436(0x1c3)!=_0x448507);return this[_0x149436(0x22b)][_0x149436(0x1ac)](async()=>{const _0x2756c7=_0x149436;this[_0x2756c7(0x1c4)][_0x2756c7(0x205)][_0x2756c7(0x212)](_0x2756c7(0x229),{'id':_0x2f0a92[_0x2756c7(0x1a4)]+':'+_0x2f0a92['id'],'areActionsDisabled':_0x2f0a92[_0x2756c7(0x1b3)],'showDiff':this[_0x2756c7(0x1e3)],'availableActions':_0x3c7284}),this[_0x2756c7(0x1d8)]();});}[_0x36e189(0x1fb)](_0x5129ba,_0x1187e2){const _0x1e7b38=_0x36e189,_0x145513=this[_0x1e7b38(0x1c4)][_0x1e7b38(0x205)][_0x1e7b38(0x210)][_0x1e7b38(0x223)];if(_0x145513 instanceof _0x3b5a63)return this[_0x1e7b38(0x1c4)][_0x1e7b38(0x205)][_0x1e7b38(0x210)][_0x1e7b38(0x20f)](_0x145513),void this[_0x1e7b38(0x1c4)][_0x1e7b38(0x205)][_0x1e7b38(0x212)](_0x1e7b38(0x1f4),{'id':_0x5129ba['id'],'capabilities':{'isWebSearchEnabled':_0x145513[_0x1e7b38(0x21c)][_0x1e7b38(0x1ec)]||_0x1187e2[_0x1e7b38(0x1ec)],'isReasoningEnabled':_0x145513[_0x1e7b38(0x21c)][_0x1e7b38(0x180)]||_0x1187e2[_0x1e7b38(0x180)]}});this[_0x1e7b38(0x1c4)][_0x1e7b38(0x205)][_0x1e7b38(0x212)](_0x1e7b38(0x1f4),{'id':_0x5129ba['id'],'capabilities':_0x1187e2});}async[_0x36e189(0x1a2)](_0x25fed4,_0x2fe0c2){const _0x35b07c=_0x36e189;let _0x92dfa9;return await this[_0x35b07c(0x22b)][_0x35b07c(0x1ac)](async()=>{const _0x9f60d=_0x35b07c;_0x92dfa9=this[_0x9f60d(0x1c4)][_0x9f60d(0x205)][_0x9f60d(0x212)](_0x9f60d(0x17f),{'content':_0x25fed4,'id':_0x2fe0c2});}),_0x92dfa9;}[_0x36e189(0x19b)](_0x1eed66){const _0x5d7f04=_0x36e189;this[_0x5d7f04(0x1c4)][_0x5d7f04(0x205)][_0x5d7f04(0x189)](_0x1eed66);}[_0x36e189(0x1ab)](_0xf59f63){const _0x216a3f=_0x36e189;return this[_0x216a3f(0x1c4)][_0x216a3f(0x205)][_0x216a3f(0x209)](_0xf59f63);}[_0x36e189(0x227)](_0x303abe){const _0x17c02d=_0x36e189,_0x1d4ab6=this[_0x17c02d(0x1c4)][_0x17c02d(0x205)][_0x17c02d(0x210)][_0x17c02d(0x19f)](_0x2fa959=>_0x2fa959[_0x17c02d(0x19a)]['id']==_0x303abe['id']&&_0x2fa959 instanceof _0x3b5a63);_0x1d4ab6&&_0x1d4ab6[_0x17c02d(0x1a3)](_0x17c02d(0x1de),_0x303abe[_0x17c02d(0x1de)]);}async[_0x36e189(0x1bb)](_0xccd32e){const _0x49c602=_0x36e189,_0x2a0b04=_0xccd32e[_0x49c602(0x1e1)]||this[_0x49c602(0x1a8)];return this[_0x49c602(0x22b)][_0x49c602(0x1ac)](async _0x475ce8=>{const _0xd98854=_0x49c602;await this[_0xd98854(0x1c4)][_0xd98854(0x205)][_0xd98854(0x1e0)]({..._0xccd32e,'abortSignal':_0x475ce8,'renderingStrategy':_0x2a0b04}),_0xccd32e[_0xd98854(0x217)]&&this[_0xd98854(0x203)](_0xccd32e['id']);});}[_0x36e189(0x198)](_0x3433d2,_0x4ee6c5){const _0x12df20=_0x36e189;this[_0x12df20(0x1c4)][_0x12df20(0x205)][_0x12df20(0x21d)](_0x3433d2,_0x4ee6c5);}async[_0x36e189(0x1e6)](_0x2dc0ec){const _0x273acd=_0x36e189,_0x455d9d=_0x2dc0ec[_0x273acd(0x1e1)]||this[_0x273acd(0x1a8)];return this[_0x273acd(0x22b)][_0x273acd(0x1ac)](async _0x212d16=>{const _0x22945b=_0x273acd;await this[_0x22945b(0x1c4)][_0x22945b(0x205)][_0x22945b(0x183)]({..._0x2dc0ec,'abortSignal':_0x212d16,'renderingStrategy':_0x455d9d}),_0x2dc0ec[_0x22945b(0x217)]&&this[_0x22945b(0x203)](_0x2dc0ec['id']);});}[_0x36e189(0x1fe)](_0x4fd724){const _0x214870=_0x36e189;this[_0x214870(0x1c4)][_0x214870(0x205)][_0x214870(0x1d0)](_0x4fd724);}[_0x36e189(0x186)](_0x3876b6){const _0x2ef439=_0x36e189;this[_0x2ef439(0x1c4)][_0x2ef439(0x205)][_0x2ef439(0x1dd)](_0x3876b6);}[_0x36e189(0x203)](_0x3699ae){const _0x3697a7=_0x36e189;this[_0x3697a7(0x1c4)][_0x3697a7(0x205)][_0x3697a7(0x1ee)](_0x3699ae);}[_0x36e189(0x201)](_0x464cd9){const _0x3378dc=_0x36e189;this[_0x3378dc(0x1c4)][_0x3378dc(0x205)][_0x3378dc(0x1da)]()[_0x3378dc(0x204)](_0x14f942=>_0x14f942[_0x3378dc(0x1a0)](_0x464cd9))[_0x3378dc(0x1c7)](_0x470ea4=>this[_0x3378dc(0x1c4)][_0x3378dc(0x205)][_0x3378dc(0x189)](_0x470ea4));}[_0x36e189(0x221)](){const _0x569a4a=_0x36e189,_0x5538ea=this[_0x569a4a(0x1fc)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x569a4a(0x1c9)](_0x5538ea),this[_0x569a4a(0x1c4)][_0x569a4a(0x211)][_0x569a4a(0x21b)](!this[_0x569a4a(0x1b5)][_0x569a4a(0x1cd)][_0x569a4a(0x226)](_0x569a4a(0x197))),this[_0x569a4a(0x225)]=!0x0,this[_0x569a4a(0x1c4)][_0x569a4a(0x205)][_0x569a4a(0x181)]();}[_0x36e189(0x18f)](_0x53969c){const _0x389d10=_0x36e189;this[_0x389d10(0x22b)][_0x389d10(0x1d9)](),this[_0x389d10(0x1c4)][_0x389d10(0x205)][_0x389d10(0x1da)]()[_0x389d10(0x204)](_0xcc64ad=>_0xcc64ad[_0x389d10(0x1a0)](_0x53969c['id']))[_0x389d10(0x1c7)](_0x356b92=>this[_0x389d10(0x203)](_0x356b92)),this[_0x389d10(0x225)]=!0x1,this[_0x389d10(0x1c4)][_0x389d10(0x205)][_0x389d10(0x1c6)]();}async[_0x36e189(0x1f2)](){const _0x3a0d2c=_0x36e189;return this[_0x3a0d2c(0x22b)][_0x3a0d2c(0x1c2)][_0x3a0d2c(0x208)](()=>{const _0x28feff=_0x3a0d2c;this[_0x28feff(0x225)]=!0x1,this[_0x28feff(0x1c4)][_0x28feff(0x205)][_0x28feff(0x1c6)]();});}[_0x36e189(0x1d1)](_0x4319b8,_0x5be406){const _0x348cd3=_0x36e189;this[_0x348cd3(0x1c4)][_0x348cd3(0x211)][_0x348cd3(0x1d1)](_0x4319b8,_0x5be406);}[_0x36e189(0x1af)](_0x2b9e1b){const _0x43a0ff=_0x36e189;this[_0x43a0ff(0x1c4)][_0x43a0ff(0x211)][_0x43a0ff(0x1af)](_0x2b9e1b);}[_0x36e189(0x1a1)](_0x4cbd95,_0x56b4f3){const _0x16c23e=_0x36e189;this[_0x16c23e(0x1c4)][_0x16c23e(0x211)][_0x16c23e(0x1a1)](_0x4cbd95,_0x56b4f3);}[_0x36e189(0x1d4)](_0x259887){const _0x108b6a=_0x36e189;this[_0x108b6a(0x1c4)][_0x108b6a(0x211)][_0x108b6a(0x1d4)](_0x259887);}[_0x36e189(0x194)](_0x313b43){const _0x21380=_0x36e189;this[_0x21380(0x1c4)][_0x21380(0x211)][_0x21380(0x194)](_0x313b43);}[_0x36e189(0x22e)](){const _0x5de3ec=_0x36e189;this[_0x5de3ec(0x1c4)][_0x5de3ec(0x211)][_0x5de3ec(0x22e)]();}[_0x36e189(0x1f8)](){const _0xe19210=_0x36e189;this[_0xe19210(0x1c4)][_0xe19210(0x211)][_0xe19210(0x1f8)]();}[_0x36e189(0x196)](_0x392309,_0x4478f5,_0x2eedbb){const _0x21361d=_0x36e189;this[_0x21361d(0x1c4)][_0x21361d(0x211)][_0x21361d(0x196)](_0x392309,_0x4478f5,_0x2eedbb);}[_0x36e189(0x1bc)](){const _0x4f1845=_0x36e189;this[_0x4f1845(0x1c4)][_0x4f1845(0x211)][_0x4f1845(0x1bc)](),this[_0x4f1845(0x1c4)][_0x4f1845(0x211)][_0x4f1845(0x1e5)](this[_0x4f1845(0x1c0)]());}[_0x36e189(0x220)](_0x40b127){const _0xe0c67a=_0x36e189;this[_0xe0c67a(0x1c4)][_0xe0c67a(0x211)][_0xe0c67a(0x220)](_0x40b127);}[_0x36e189(0x222)](_0xb035d8){const _0x382c79=_0x36e189;this[_0x382c79(0x1c4)][_0x382c79(0x211)][_0x382c79(0x219)](_0xb035d8[_0x382c79(0x1ec)]),this[_0x382c79(0x1c4)][_0x382c79(0x211)][_0x382c79(0x1e9)](_0xb035d8[_0x382c79(0x180)]),this[_0x382c79(0x1c4)][_0x382c79(0x211)][_0x382c79(0x1e5)](this[_0x382c79(0x1c0)](_0xb035d8));}[_0x36e189(0x200)](_0x4e6a58,_0x309859){const _0x1d01d1=_0x36e189;this[_0x1d01d1(0x1c4)][_0x1d01d1(0x211)][_0x1d01d1(0x21f)](_0x4e6a58),_0x309859&&this[_0x1d01d1(0x1c4)][_0x1d01d1(0x211)][_0x1d01d1(0x21b)](!0x1);}[_0x36e189(0x187)](_0x3cd789){const _0x4cf69f=_0x36e189;this[_0x4cf69f(0x1a8)]=_0x3cd789;}[_0x36e189(0x1f7)](_0x434dc4){const _0x107070=_0x36e189;this[_0x107070(0x1c4)][_0x107070(0x205)][_0x107070(0x1f7)](_0x434dc4);}[_0x36e189(0x1cf)](){const _0x371a8a=_0x36e189;this[_0x371a8a(0x1ef)](_0xa7514e(this[_0x371a8a(0x1b5)][_0x371a8a(0x199)],_0x371a8a(0x218)));}[_0x36e189(0x1ef)](_0xcfd8d4,_0x1432b6=!0x1){const _0x123c3e=_0x36e189;if(_0x1432b6&&!_0x42e4cb()&&_0xcfd8d4[_0x123c3e(0x207)])return this[_0x123c3e(0x1c4)][_0x123c3e(0x202)][_0x123c3e(0x1e2)]='',void this[_0x123c3e(0x1ba)](_0xcfd8d4);this[_0x123c3e(0x1c4)][_0x123c3e(0x202)][_0x123c3e(0x1e2)]=_0xcfd8d4;}[_0x36e189(0x1c9)](_0x35aea1){const _0x2d5d26=_0x36e189;this[_0x2d5d26(0x1c4)][_0x2d5d26(0x205)][_0x2d5d26(0x1c9)](_0x35aea1);}[_0x36e189(0x1d8)](){const _0x129c60=_0x36e189;this[_0x129c60(0x1c4)][_0x129c60(0x205)][_0x129c60(0x1c9)]('');}[_0x36e189(0x1ba)](_0x246015){const _0x3de32f=_0x36e189;let _0x48c3a6=0x0;clearInterval(this[_0x3de32f(0x1b7)]),this[_0x3de32f(0x1b7)]=setInterval(()=>{const _0x2ac249=_0x3de32f;this[_0x2ac249(0x1c4)][_0x2ac249(0x202)][_0x2ac249(0x1e2)]=this[_0x2ac249(0x1c4)][_0x2ac249(0x202)][_0x2ac249(0x1e2)]+_0x246015[_0x48c3a6],_0x48c3a6++,_0x48c3a6===_0x246015[_0x2ac249(0x207)]&&clearInterval(this[_0x2ac249(0x1b7)]);},0x1e);}[_0x36e189(0x1aa)](_0x2cd171){const _0xeb6764=_0x36e189;this[_0xeb6764(0x1c4)][_0xeb6764(0x202)][_0xeb6764(0x1d7)]=_0x2cd171;}[_0x36e189(0x1fc)](_0x2ab83e){const _0x12bcfe=_0x36e189;return _0x2ab83e[_0x12bcfe(0x1ec)]&&_0x2ab83e[_0x12bcfe(0x180)]?_0xa7514e(this[_0x12bcfe(0x1b5)][_0x12bcfe(0x199)],_0x12bcfe(0x1b8)):_0x2ab83e[_0x12bcfe(0x1ec)]?_0xa7514e(this[_0x12bcfe(0x1b5)][_0x12bcfe(0x199)],_0x12bcfe(0x18c)):_0x2ab83e[_0x12bcfe(0x180)]?_0xa7514e(this[_0x12bcfe(0x1b5)][_0x12bcfe(0x199)],_0x12bcfe(0x1cc)):_0xa7514e(this[_0x12bcfe(0x1b5)][_0x12bcfe(0x199)],_0x12bcfe(0x1d6));}[_0x36e189(0x1c0)](_0x324148){const _0xeb724f=_0x36e189;return _0x324148?_0x324148[_0xeb724f(0x1ec)]&&_0x324148[_0xeb724f(0x180)]?_0xa7514e(this[_0xeb724f(0x1b5)][_0xeb724f(0x199)],_0xeb724f(0x1c5)):_0x324148[_0xeb724f(0x1ec)]?_0xa7514e(this[_0xeb724f(0x1b5)][_0xeb724f(0x199)],_0xeb724f(0x206)):_0x324148[_0xeb724f(0x180)]?_0xa7514e(this[_0xeb724f(0x1b5)][_0xeb724f(0x199)],_0xeb724f(0x1c8)):_0xa7514e(this[_0xeb724f(0x1b5)][_0xeb724f(0x199)],_0xeb724f(0x1f9)):_0xa7514e(this[_0xeb724f(0x1b5)][_0xeb724f(0x199)],_0xeb724f(0x1f9));}[_0x36e189(0x1f6)](_0x21423c,_0x5ddc39,_0x634e02,_0x53a15b){const _0x51ce2c=_0x36e189;this[_0x51ce2c(0x1c4)][_0x51ce2c(0x1f6)](_0x21423c,_0x5ddc39,_0x634e02,_0x53a15b);}[_0x36e189(0x1a5)](_0x33f2d0){const _0x383563=_0x36e189;this[_0x383563(0x1c4)][_0x383563(0x1a5)](_0x33f2d0);}[_0x36e189(0x184)](_0x36118e){const _0x48532b=_0x36e189;this[_0x48532b(0x1c4)][_0x48532b(0x211)][_0x48532b(0x184)](_0x36118e);}[_0x36e189(0x1b4)](_0x5cbaa7=!0x1){const _0x30a7e3=_0x36e189;this[_0x30a7e3(0x1c4)][_0x30a7e3(0x211)][_0x30a7e3(0x1b4)](_0x5cbaa7);}[_0x36e189(0x188)](_0x278444,_0x146e4b){const _0x3e3001=_0x36e189;this[_0x3e3001(0x1c4)][_0x3e3001(0x205)][_0x3e3001(0x1f3)](_0x278444,_0x146e4b);}[_0x36e189(0x181)](){const _0x816170=_0x36e189;this[_0x816170(0x1c4)][_0x816170(0x205)][_0x816170(0x181)]();}[_0x36e189(0x1ad)](){const _0x5e113a=_0x36e189;this[_0x5e113a(0x1c4)][_0x5e113a(0x211)][_0x5e113a(0x1f0)]=!0x0;}[_0x36e189(0x1ce)](){const _0x5f0ffa=_0x36e189;this[_0x5f0ffa(0x1c4)][_0x5f0ffa(0x211)][_0x5f0ffa(0x1f0)]=!0x1;}}
23
+ const _0xf35962=_0x39c1;(function(_0xc0888b,_0x2e2257){const _0x41bf46=_0x39c1,_0x266b20=_0xc0888b();while(!![]){try{const _0x529b8f=-parseInt(_0x41bf46(0x218))/0x1+parseInt(_0x41bf46(0x28e))/0x2+parseInt(_0x41bf46(0x253))/0x3*(parseInt(_0x41bf46(0x1ec))/0x4)+parseInt(_0x41bf46(0x1f8))/0x5+-parseInt(_0x41bf46(0x1fd))/0x6+-parseInt(_0x41bf46(0x21b))/0x7*(parseInt(_0x41bf46(0x1df))/0x8)+-parseInt(_0x41bf46(0x27f))/0x9*(-parseInt(_0x41bf46(0x1fe))/0xa);if(_0x529b8f===_0x2e2257)break;else _0x266b20['push'](_0x266b20['shift']());}catch(_0x135bd2){_0x266b20['push'](_0x266b20['shift']());}}}(_0x2838,0x9b184));import{ContextPlugin as _0x37b746}from'ckeditor5/src/core.js';function _0x2838(){const _0x50903b=['destroy','677964RfMZXu','isOfficialPlugin','stopAutoScroll','7TujZjC','addContextItem','children','updateCapabilities','<p>','streaming','length','ai-reply','chat','enqueue','addFeedItemCustomElement','setInputPlaceholder','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','isTrackChangesOn','find','AI_CHAT_HEADING','</p>','setConversationContext','isPremiumPlugin','ai.models.showModelSelector','populateSourceResourceBalloon','createConversation','bind','abort','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','_promiseQueue','resetConversationTitle','get','removeItem','toggleLoadingSkeleton','updateResourceState','updateSuggestionItem','setReasoning','_animateConversationTitle','clearConversationContextUI','setFeedItemAIReplySuggestionPartActive','addFeedItemUserMessage','chatControls','displayedPrompt','config','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','_titleAnimationInterval','setConversationTitle','error-message','custom-element','setModel','isVisible','addFeedItemAISuggestion','setPromptInputValue','AITabs','clearLoadingMessage','queueEmptyPromise','_isTrackChangesCommandValueBound','ai-suggestion-reply','isBusy','enableControls','153BejmyG','removeFeedItem','AI_CHAT_WELCOME_MESSAGE','plugins','hasFeedItem','feedItemRenderingStrategy','resetMessageInput','markFeedItemAsDone','set','setWebSearch','updateSuggestionPartState','isDone','chatHeader','isMaximized','showResizeButton','remove','finishInteraction','updateFeedItemAIReplySources','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','TrackChanges','updateWebSources','getItemIds','_getInputPlaceholder','toggleSuggestionDisplayMode','disableControls','closeSourceResourceBalloon','forEach','view','label','scrollToSuggestion','locale','removeContextItem','capabilities','attributes','isDisabled','updateFeedInteractionHeader','ai.chat.welcomeMessage','_view','enableModelSelector','setAddContextOptions','setLoadingMessage','clear','addFeedItemStaticMessage','startInteraction','279nDisGh','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','startAutoScroll','conversationCreated','filter','removeFeedInteraction','chatFeed','isPending','renderingStrategy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','pluginName','then','addTab','setFeedItemRenderingStrategy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','1659918umKLnu','interactionId','updateReplyItem','setIsMaximized','7925496XJSKIR','_interactionPromiseResolver','addFeedInteractionHeader','value','isModelAvailable','delegate','prepareLoadingMessage','setSuggestionPartActive','hasItem','from','showDiff','setSelectedModel','availableModels','69924OUOLQU','conversation-start','insertSuggestion','areActionsDisabled','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','options','setModelList','contextItems','isLoading','clearPendingContextUI','last','focusPromptInput','5964885YvZoHD','AIChatUI','markItemAsDone','stopInteraction','scrollFeedToSuggestion','4838622KNlrtJ','63190qbhJnv','addFeedItemAIReply','updateFeedItemAIReplyContent','ai.availableReplyActions','isWebSearchEnabled','has','user-message','trackChanges','requires','values','updateFeedItemAIReplySuggestionContent','disableModelSelector','addFeedItemError','updateFeedItemAIReplySuggestionPartState','commands','interaction-header','userMessage','ai.chat.context.searchInputVisibleFrom','startsWith','isReasoningEnabled','addItem','setIsUploadInProgress','context','setContextItemLoading','fire'];_0x2838=function(){return _0x50903b;};return _0x2838();}import{_isMotionReduced as _0x32af66}from'ckeditor5/src/utils.js';import{AIChatView as _0x106820}from'./ui/aichatview.js';import{AITabs as _0x2be80f}from'../aitabs/aitabs.js';import{getTranslation as _0x4db3f4}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x30248d}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x4053d5}from'./ui/feed/aichatfeedinteractionheaderview.js';function _0x39c1(_0x5d5687,_0x2af2f4){const _0x2838fe=_0x2838();return _0x39c1=function(_0x39c1e,_0x17eb8d){_0x39c1e=_0x39c1e-0x1dd;let _0x4ad033=_0x2838fe[_0x39c1e];return _0x4ad033;},_0x39c1(_0x5d5687,_0x2af2f4);}import{PromiseQueue as _0xda5bf0}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x27c2fb}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x28806f}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x44a0fe}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x37b746{static get[_0xf35962(0x206)](){return[_0x2be80f];}[_0xf35962(0x278)];static get[_0xf35962(0x289)](){const _0x64aadc=_0xf35962;return _0x64aadc(0x1f9);}static get[_0xf35962(0x219)](){return!0x0;}static get[_0xf35962(0x22d)](){return!0x0;}[_0xf35962(0x258)]=_0xf35962(0x220);[_0xf35962(0x1e9)]=!0x0;[_0xf35962(0x234)];[_0xf35962(0x1e0)];[_0xf35962(0x244)]=void 0x0;[_0xf35962(0x24f)]=!0x1;constructor(_0x2397b5){const _0x3d8917=_0xf35962;super(_0x2397b5);const _0x146bfa=this[_0x3d8917(0x214)][_0x3d8917(0x256)][_0x3d8917(0x236)](_0x3d8917(0x24c));this[_0x3d8917(0x25b)](_0x3d8917(0x251),!0x1),this[_0x3d8917(0x234)]=new _0xda5bf0(),this[_0x3d8917(0x278)]=new _0x106820(this[_0x3d8917(0x214)][_0x3d8917(0x271)],{'showResizeButton':_0x146bfa[_0x3d8917(0x261)],'contextResourcesSearchInputVisibleFrom':this[_0x3d8917(0x214)][_0x3d8917(0x242)][_0x3d8917(0x236)](_0x3d8917(0x20f))}),this[_0x3d8917(0x278)][_0x3d8917(0x1e4)](..._0x27c2fb)['to'](this),this[_0x3d8917(0x278)]['on'](_0x3d8917(0x26a),(_0x296232,{showDiff:_0x4347a1})=>{const _0x239772=_0x3d8917;this[_0x239772(0x1e9)]=_0x4347a1;}),_0x146bfa[_0x3d8917(0x26e)][_0x3d8917(0x28b)]({'id':_0x3d8917(0x223),'buttonLabel':_0x4db3f4(this[_0x3d8917(0x214)][_0x3d8917(0x271)],_0x3d8917(0x22a)),'buttonIcon':_0x30248d,'order':0x0,'content':this[_0x3d8917(0x278)]}),this[_0x3d8917(0x278)][_0x3d8917(0x240)][_0x3d8917(0x231)](_0x3d8917(0x1f4))['to'](this,_0x3d8917(0x251),_0xb81b92=>_0xb81b92),this[_0x3d8917(0x278)][_0x3d8917(0x285)][_0x3d8917(0x231)](_0x3d8917(0x286))['to'](this,_0x3d8917(0x251),_0x18d71e=>_0x18d71e),this[_0x3d8917(0x278)][_0x3d8917(0x240)][_0x3d8917(0x226)](this[_0x3d8917(0x269)]()),this[_0x3d8917(0x231)](_0x3d8917(0x1e3))['to'](this[_0x3d8917(0x278)][_0x3d8917(0x240)],_0x3d8917(0x1e3));}[_0xf35962(0x217)](){const _0x573922=_0xf35962;super[_0x573922(0x217)](),this[_0x573922(0x244)]&&clearInterval(this[_0x573922(0x244)]);}[_0xf35962(0x230)](_0x3fc7d2){const _0x152274=_0xf35962,_0x524664=this[_0x152274(0x214)][_0x152274(0x242)][_0x152274(0x236)](_0x152274(0x277))??_0x4db3f4(this[_0x152274(0x214)][_0x152274(0x271)],_0x152274(0x255));this[_0x152274(0x278)][_0x152274(0x285)][_0x152274(0x27c)](),this[_0x152274(0x278)][_0x152274(0x240)][_0x152274(0x279)](),this[_0x152274(0x278)][_0x152274(0x240)][_0x152274(0x1f2)](_0x3fc7d2[_0x152274(0x1eb)],!this[_0x152274(0x214)][_0x152274(0x242)][_0x152274(0x236)](_0x152274(0x22e))),this[_0x152274(0x27d)]({'id':_0x152274(0x1ed),'staticMessage':_0x524664}),this[_0x152274(0x216)](_0x152274(0x282));}[_0xf35962(0x27d)]({id:_0x141fd4,staticMessage:_0x30c29c}){const _0x387c85=_0xf35962;this[_0x387c85(0x278)][_0x387c85(0x285)][_0x387c85(0x212)](_0x387c85(0x222),{'id':_0x141fd4,'initialContent':_0x387c85(0x21f)+_0x30c29c+_0x387c85(0x22b)});}[_0xf35962(0x23f)](_0x31c801){const _0x38d9ba=_0xf35962,_0x1ead8d=_0x31c801[_0x38d9ba(0x274)]?.[_0x38d9ba(0x241)]||_0x31c801[_0x38d9ba(0x20e)];this[_0x38d9ba(0x278)][_0x38d9ba(0x285)][_0x38d9ba(0x212)](_0x38d9ba(0x204),{'contextItems':Array[_0x38d9ba(0x1e8)](_0x31c801[_0x38d9ba(0x1f3)][_0x38d9ba(0x207)]()),'initialContent':_0x38d9ba(0x21f)+_0x1ead8d+_0x38d9ba(0x22b),'id':_0x31c801['id']});}[_0xf35962(0x20a)]({errorMessage:_0x3bd1a3,id:_0x335992}){const _0x47d84d=_0xf35962;this[_0x47d84d(0x278)][_0x47d84d(0x285)][_0x47d84d(0x212)](_0x47d84d(0x246),{'initialContent':_0x47d84d(0x21f)+_0x3bd1a3+_0x47d84d(0x22b),'id':_0x335992});}[_0xf35962(0x1ff)](_0x45b4a9){const _0x4d9d33=_0xf35962;return this[_0x4d9d33(0x234)][_0x4d9d33(0x224)](async()=>{const _0x5aed98=_0x4d9d33;this[_0x5aed98(0x278)][_0x5aed98(0x285)][_0x5aed98(0x212)](_0x5aed98(0x222),{'id':_0x45b4a9[_0x5aed98(0x28f)]+':'+_0x45b4a9['id']}),this[_0x5aed98(0x24d)]();});}async[_0xf35962(0x24a)](_0x47d4aa){const _0x4a1a54=_0xf35962,_0x398cd5=_0x28806f(this[_0x4a1a54(0x214)]);let _0x57dfd7=_0x398cd5[_0x4a1a54(0x242)][_0x4a1a54(0x236)](_0x4a1a54(0x201))||[..._0x44a0fe];if(_0x398cd5[_0x4a1a54(0x256)][_0x4a1a54(0x203)](_0x4a1a54(0x266))){if(!this[_0x4a1a54(0x24f)]){this[_0x4a1a54(0x24f)]=!0x0;const _0xa9e3ef=_0x398cd5[_0x4a1a54(0x20c)][_0x4a1a54(0x236)](_0x4a1a54(0x205));this[_0x4a1a54(0x278)][_0x4a1a54(0x285)][_0x4a1a54(0x231)](_0x4a1a54(0x228))['to'](_0xa9e3ef,_0x4a1a54(0x1e2));}}else _0x57dfd7=_0x57dfd7[_0x4a1a54(0x283)](_0xd51c38=>_0x4a1a54(0x1ee)!=_0xd51c38);return this[_0x4a1a54(0x234)][_0x4a1a54(0x224)](async()=>{const _0x132f14=_0x4a1a54;this[_0x132f14(0x278)][_0x132f14(0x285)][_0x132f14(0x212)](_0x132f14(0x250),{'id':_0x47d4aa[_0x132f14(0x28f)]+':'+_0x47d4aa['id'],'areActionsDisabled':_0x47d4aa[_0x132f14(0x1ef)],'showDiff':this[_0x132f14(0x1e9)],'availableActions':_0x57dfd7}),this[_0x132f14(0x24d)]();});}[_0xf35962(0x1e1)](_0x2bed63,_0x53d801){const _0xdc44bc=_0xf35962,_0x3fd278=this[_0xdc44bc(0x278)][_0xdc44bc(0x285)][_0xdc44bc(0x21d)][_0xdc44bc(0x1f6)];if(_0x3fd278 instanceof _0x4053d5)return this[_0xdc44bc(0x278)][_0xdc44bc(0x285)][_0xdc44bc(0x21d)][_0xdc44bc(0x262)](_0x3fd278),void this[_0xdc44bc(0x278)][_0xdc44bc(0x285)][_0xdc44bc(0x212)](_0xdc44bc(0x20d),{'id':_0x2bed63['id'],'capabilities':{'isWebSearchEnabled':_0x3fd278[_0xdc44bc(0x273)][_0xdc44bc(0x202)]||_0x53d801[_0xdc44bc(0x202)],'isReasoningEnabled':_0x3fd278[_0xdc44bc(0x273)][_0xdc44bc(0x211)]||_0x53d801[_0xdc44bc(0x211)]}});this[_0xdc44bc(0x278)][_0xdc44bc(0x285)][_0xdc44bc(0x212)](_0xdc44bc(0x20d),{'id':_0x2bed63['id'],'capabilities':_0x53d801});}async[_0xf35962(0x225)](_0x3c88f8,_0x22a01a){const _0x2bea92=_0xf35962;let _0x4fa8f7;return await this[_0x2bea92(0x234)][_0x2bea92(0x224)](async()=>{const _0x1f39ef=_0x2bea92;_0x4fa8f7=this[_0x1f39ef(0x278)][_0x1f39ef(0x285)][_0x1f39ef(0x212)](_0x1f39ef(0x247),{'content':_0x3c88f8,'id':_0x22a01a});}),_0x4fa8f7;}[_0xf35962(0x254)](_0x3d3375){const _0x4d57a7=_0xf35962;this[_0x4d57a7(0x278)][_0x4d57a7(0x285)][_0x4d57a7(0x237)](_0x3d3375);}[_0xf35962(0x257)](_0x2cbe2c){const _0x232884=_0xf35962;return this[_0x232884(0x278)][_0x232884(0x285)][_0x232884(0x1e7)](_0x2cbe2c);}[_0xf35962(0x276)](_0x5c68be){const _0x29cf61=_0xf35962,_0x380ebe=this[_0x29cf61(0x278)][_0x29cf61(0x285)][_0x29cf61(0x21d)][_0x29cf61(0x229)](_0x379e83=>_0x379e83[_0x29cf61(0x1f1)]['id']==_0x5c68be['id']&&_0x379e83 instanceof _0x4053d5);_0x380ebe&&_0x380ebe[_0x29cf61(0x25b)](_0x29cf61(0x249),_0x5c68be[_0x29cf61(0x249)]);}async[_0xf35962(0x200)](_0x22ce41){const _0x38c8dd=_0xf35962,_0xb8fe83=_0x22ce41[_0x38c8dd(0x287)]||this[_0x38c8dd(0x258)];return this[_0x38c8dd(0x234)][_0x38c8dd(0x224)](async _0x5c44b2=>{const _0x11a036=_0x38c8dd;await this[_0x11a036(0x278)][_0x11a036(0x285)][_0x11a036(0x1dd)]({..._0x22ce41,'abortSignal':_0x5c44b2,'renderingStrategy':_0xb8fe83}),_0x22ce41[_0x11a036(0x25e)]&&this[_0x11a036(0x25a)](_0x22ce41['id']);});}[_0xf35962(0x264)](_0x390a80,_0x2f75ea){const _0x34fad4=_0xf35962;this[_0x34fad4(0x278)][_0x34fad4(0x285)][_0x34fad4(0x267)](_0x390a80,_0x2f75ea);}async[_0xf35962(0x208)](_0x49f42e){const _0x26946d=_0xf35962,_0x2c6dc8=_0x49f42e[_0x26946d(0x287)]||this[_0x26946d(0x258)];return this[_0x26946d(0x234)][_0x26946d(0x224)](async _0x9b9f96=>{const _0x51e8c7=_0x26946d;await this[_0x51e8c7(0x278)][_0x51e8c7(0x285)][_0x51e8c7(0x23a)]({..._0x49f42e,'abortSignal':_0x9b9f96,'renderingStrategy':_0x2c6dc8}),_0x49f42e[_0x51e8c7(0x25e)]&&this[_0x51e8c7(0x25a)](_0x49f42e['id']);});}[_0xf35962(0x20b)](_0x828404){const _0x205c1a=_0xf35962;this[_0x205c1a(0x278)][_0x205c1a(0x285)][_0x205c1a(0x25d)](_0x828404);}[_0xf35962(0x23e)](_0x392a75){const _0x3f01f2=_0xf35962;this[_0x3f01f2(0x278)][_0x3f01f2(0x285)][_0x3f01f2(0x1e6)](_0x392a75);}[_0xf35962(0x25a)](_0x456a27){const _0xafa3d=_0xf35962;this[_0xafa3d(0x278)][_0xafa3d(0x285)][_0xafa3d(0x1fa)](_0x456a27);}[_0xf35962(0x284)](_0x5247ac){const _0x314258=_0xf35962;this[_0x314258(0x278)][_0x314258(0x285)][_0x314258(0x268)]()[_0x314258(0x283)](_0x50b76d=>_0x50b76d[_0x314258(0x210)](_0x5247ac))[_0x314258(0x26d)](_0x9900cb=>this[_0x314258(0x278)][_0x314258(0x285)][_0x314258(0x237)](_0x9900cb));}[_0xf35962(0x27e)](){const _0x22ebfe=_0xf35962,_0x3d2ebc=this[_0x22ebfe(0x1e5)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x22ebfe(0x27b)](_0x3d2ebc),this[_0x22ebfe(0x278)][_0x22ebfe(0x240)][_0x22ebfe(0x209)](!this[_0x22ebfe(0x214)][_0x22ebfe(0x242)][_0x22ebfe(0x236)](_0x22ebfe(0x22e))),this[_0x22ebfe(0x251)]=!0x0,this[_0x22ebfe(0x278)][_0x22ebfe(0x285)][_0x22ebfe(0x281)]();}[_0xf35962(0x1fb)](_0x212412){const _0x15d15f=_0xf35962;this[_0x15d15f(0x234)][_0x15d15f(0x232)](),this[_0x15d15f(0x278)][_0x15d15f(0x285)][_0x15d15f(0x268)]()[_0x15d15f(0x283)](_0xddfdbc=>_0xddfdbc[_0x15d15f(0x210)](_0x212412['id']))[_0x15d15f(0x26d)](_0x5d9651=>this[_0x15d15f(0x25a)](_0x5d9651)),this[_0x15d15f(0x251)]=!0x1,this[_0x15d15f(0x278)][_0x15d15f(0x285)][_0x15d15f(0x21a)]();}async[_0xf35962(0x263)](){const _0xfb1454=_0xf35962;return this[_0xfb1454(0x234)][_0xfb1454(0x24e)][_0xfb1454(0x28a)](()=>{const _0x5ab900=_0xfb1454;this[_0x5ab900(0x251)]=!0x1,this[_0x5ab900(0x278)][_0x5ab900(0x285)][_0x5ab900(0x21a)]();});}[_0xf35962(0x21c)](_0x2b6364,_0x38e3dc){const _0x5ecb6e=_0xf35962;this[_0x5ecb6e(0x278)][_0x5ecb6e(0x240)][_0x5ecb6e(0x21c)](_0x2b6364,_0x38e3dc);}[_0xf35962(0x272)](_0x462ad4){const _0x1054f8=_0xf35962;this[_0x1054f8(0x278)][_0x1054f8(0x240)][_0x1054f8(0x272)](_0x462ad4);}[_0xf35962(0x215)](_0x1d94a2,_0x54aec){const _0x32a994=_0xf35962;this[_0x32a994(0x278)][_0x32a994(0x240)][_0x32a994(0x215)](_0x1d94a2,_0x54aec);}[_0xf35962(0x213)](_0x3f71a4){const _0x3ebcae=_0xf35962;this[_0x3ebcae(0x278)][_0x3ebcae(0x240)][_0x3ebcae(0x213)](_0x3f71a4);}[_0xf35962(0x22c)](_0xe56dbc){const _0x2652f6=_0xf35962;this[_0x2652f6(0x278)][_0x2652f6(0x240)][_0x2652f6(0x22c)](_0xe56dbc);}[_0xf35962(0x1f5)](){const _0x3d95c7=_0xf35962;this[_0x3d95c7(0x278)][_0x3d95c7(0x240)][_0x3d95c7(0x1f5)]();}[_0xf35962(0x23d)](){const _0x152170=_0xf35962;this[_0x152170(0x278)][_0x152170(0x240)][_0x152170(0x23d)]();}[_0xf35962(0x239)](_0x515d18,_0x4f68d3,_0x5d6d9f){const _0x2050a7=_0xf35962;this[_0x2050a7(0x278)][_0x2050a7(0x240)][_0x2050a7(0x239)](_0x515d18,_0x4f68d3,_0x5d6d9f);}[_0xf35962(0x259)](){const _0x5511c8=_0xf35962;this[_0x5511c8(0x278)][_0x5511c8(0x240)][_0x5511c8(0x259)](),this[_0x5511c8(0x278)][_0x5511c8(0x240)][_0x5511c8(0x226)](this[_0x5511c8(0x269)]());}[_0xf35962(0x27a)](_0x2d49f5){const _0x124ab0=_0xf35962;this[_0x124ab0(0x278)][_0x124ab0(0x240)][_0x124ab0(0x27a)](_0x2d49f5);}[_0xf35962(0x21e)](_0x342da9){const _0x1fd000=_0xf35962;this[_0x1fd000(0x278)][_0x1fd000(0x240)][_0x1fd000(0x25c)](_0x342da9[_0x1fd000(0x202)]),this[_0x1fd000(0x278)][_0x1fd000(0x240)][_0x1fd000(0x23b)](_0x342da9[_0x1fd000(0x211)]),this[_0x1fd000(0x278)][_0x1fd000(0x240)][_0x1fd000(0x226)](this[_0x1fd000(0x269)](_0x342da9));}[_0xf35962(0x1ea)](_0x5aecd9,_0x3c0590){const _0x4c34bc=_0xf35962;this[_0x4c34bc(0x278)][_0x4c34bc(0x240)][_0x4c34bc(0x248)](_0x5aecd9),_0x3c0590&&this[_0x4c34bc(0x278)][_0x4c34bc(0x240)][_0x4c34bc(0x209)](!0x1);}[_0xf35962(0x28c)](_0x546b8a){const _0x1f0357=_0xf35962;this[_0x1f0357(0x258)]=_0x546b8a;}[_0xf35962(0x238)](_0xc8c95f){const _0x592f10=_0xf35962;this[_0x592f10(0x278)][_0x592f10(0x285)][_0x592f10(0x238)](_0xc8c95f);}[_0xf35962(0x235)](){const _0x5c005c=_0xf35962;this[_0x5c005c(0x245)](_0x4db3f4(this[_0x5c005c(0x214)][_0x5c005c(0x271)],_0x5c005c(0x22a)));}[_0xf35962(0x245)](_0xe22c55,_0x440c3b=!0x1){const _0x43953f=_0xf35962;if(_0x440c3b&&!_0x32af66()&&_0xe22c55[_0x43953f(0x221)])return this[_0x43953f(0x278)][_0x43953f(0x25f)][_0x43953f(0x26f)]='',void this[_0x43953f(0x23c)](_0xe22c55);this[_0x43953f(0x278)][_0x43953f(0x25f)][_0x43953f(0x26f)]=_0xe22c55;}[_0xf35962(0x27b)](_0x57d18f){const _0x5eccbc=_0xf35962;this[_0x5eccbc(0x278)][_0x5eccbc(0x285)][_0x5eccbc(0x27b)](_0x57d18f);}[_0xf35962(0x24d)](){const _0x421e4b=_0xf35962;this[_0x421e4b(0x278)][_0x421e4b(0x285)][_0x421e4b(0x27b)]('');}[_0xf35962(0x23c)](_0x5da456){const _0x308aa4=_0xf35962;let _0x3e87e9=0x0;clearInterval(this[_0x308aa4(0x244)]),this[_0x308aa4(0x244)]=setInterval(()=>{const _0x5cf548=_0x308aa4;this[_0x5cf548(0x278)][_0x5cf548(0x25f)][_0x5cf548(0x26f)]=this[_0x5cf548(0x278)][_0x5cf548(0x25f)][_0x5cf548(0x26f)]+_0x5da456[_0x3e87e9],_0x3e87e9++,_0x3e87e9===_0x5da456[_0x5cf548(0x221)]&&clearInterval(this[_0x5cf548(0x244)]);},0x1e);}[_0xf35962(0x1de)](_0x3de441){const _0x2ea9cf=_0xf35962;this[_0x2ea9cf(0x278)][_0x2ea9cf(0x25f)][_0x2ea9cf(0x260)]=_0x3de441;}[_0xf35962(0x1e5)](_0x4b279d){const _0x561258=_0xf35962;return _0x4b279d[_0x561258(0x202)]&&_0x4b279d[_0x561258(0x211)]?_0x4db3f4(this[_0x561258(0x214)][_0x561258(0x271)],_0x561258(0x265)):_0x4b279d[_0x561258(0x202)]?_0x4db3f4(this[_0x561258(0x214)][_0x561258(0x271)],_0x561258(0x1f0)):_0x4b279d[_0x561258(0x211)]?_0x4db3f4(this[_0x561258(0x214)][_0x561258(0x271)],_0x561258(0x233)):_0x4db3f4(this[_0x561258(0x214)][_0x561258(0x271)],_0x561258(0x243));}[_0xf35962(0x269)](_0x1cde79){const _0x31095e=_0xf35962;return _0x1cde79?_0x1cde79[_0x31095e(0x202)]&&_0x1cde79[_0x31095e(0x211)]?_0x4db3f4(this[_0x31095e(0x214)][_0x31095e(0x271)],_0x31095e(0x28d)):_0x1cde79[_0x31095e(0x202)]?_0x4db3f4(this[_0x31095e(0x214)][_0x31095e(0x271)],_0x31095e(0x227)):_0x1cde79[_0x31095e(0x211)]?_0x4db3f4(this[_0x31095e(0x214)][_0x31095e(0x271)],_0x31095e(0x288)):_0x4db3f4(this[_0x31095e(0x214)][_0x31095e(0x271)],_0x31095e(0x280)):_0x4db3f4(this[_0x31095e(0x214)][_0x31095e(0x271)],_0x31095e(0x280));}[_0xf35962(0x22f)](_0x5488f2,_0x44a965,_0x1dece1,_0x7a01d6){const _0x425250=_0xf35962;this[_0x425250(0x278)][_0x425250(0x22f)](_0x5488f2,_0x44a965,_0x1dece1,_0x7a01d6);}[_0xf35962(0x26c)](_0x406288){const _0x234fff=_0xf35962;this[_0x234fff(0x278)][_0x234fff(0x26c)](_0x406288);}[_0xf35962(0x24b)](_0x123289){const _0x48b2ab=_0xf35962;this[_0x48b2ab(0x278)][_0x48b2ab(0x240)][_0x48b2ab(0x24b)](_0x123289);}[_0xf35962(0x1f7)](_0x154522=!0x1){const _0x57bbfd=_0xf35962;this[_0x57bbfd(0x278)][_0x57bbfd(0x240)][_0x57bbfd(0x1f7)](_0x154522);}[_0xf35962(0x1fc)](_0x2ec99e,_0x17eeee){const _0x238bcf=_0xf35962;this[_0x238bcf(0x278)][_0x238bcf(0x285)][_0x238bcf(0x270)](_0x2ec99e,_0x17eeee);}[_0xf35962(0x281)](){const _0x3028eb=_0xf35962;this[_0x3028eb(0x278)][_0x3028eb(0x285)][_0x3028eb(0x281)]();}[_0xf35962(0x26b)](){const _0x37d29b=_0xf35962;this[_0x37d29b(0x278)][_0x37d29b(0x240)][_0x37d29b(0x275)]=!0x0;}[_0xf35962(0x252)](){const _0xa48c9a=_0xf35962;this[_0xa48c9a(0x278)][_0xa48c9a(0x240)][_0xa48c9a(0x275)]=!0x1;}}