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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.js +1 -1
  180. package/src/aichat/model/aichatconversation.js +1 -1
  181. package/src/aichat/model/aichatinteraction.js +1 -1
  182. package/src/aichat/ui/aichatballoonview.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  221. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.js +1 -1
  228. package/src/aicore/model/aimodels.js +1 -1
  229. package/src/aicore/model/aireply.js +1 -1
  230. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  231. package/src/aicore/pipeline/airesponseparser.js +2 -2
  232. package/src/aicore/ui/aidisclaimerview.js +1 -1
  233. package/src/aicore/ui/aiskeleton.js +1 -1
  234. package/src/aicore/ui/aispinner.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  246. package/src/aicore/utils/common-translations.js +1 -1
  247. package/src/aicore/utils/createresizebutton.js +1 -1
  248. package/src/aicore/utils/documentposition.js +1 -1
  249. package/src/aicore/utils/documentrange.js +1 -1
  250. package/src/aicore/utils/eventnames.js +1 -1
  251. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  252. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  253. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  254. package/src/aicore/utils/htmlparser.js +1 -1
  255. package/src/aicore/utils/htmlstreamer.js +1 -1
  256. package/src/aicore/utils/scrollmanager.js +1 -1
  257. package/src/aieditorintegration/aieditorintegration.js +1 -1
  258. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  260. package/src/aiquickactions/aiquickactions.js +1 -1
  261. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  262. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  263. package/src/aiquickactions/aiquickactionsui.js +1 -1
  264. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  268. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  271. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  272. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  273. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  274. package/src/aireviewcore/aireviewcoreui.js +1 -1
  275. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  276. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  277. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  280. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  281. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  292. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  294. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  295. package/src/aireviewmode/aireviewmode.js +1 -1
  296. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  297. package/src/aireviewmode/aireviewmodeui.js +1 -1
  298. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  300. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  301. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  303. package/src/aitabs/aitabs.js +1 -1
  304. package/src/aitabs/aitabsmainview.js +1 -1
  305. package/src/aitabs/tabs/aitabsview.js +1 -1
  306. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  307. package/src/aitabs/tabs/tabpanelview.js +1 -1
  308. package/src/aitranslate/aitranslate.js +1 -1
  309. package/src/aitranslate/aitranslatecontroller.js +1 -1
  310. package/src/aitranslate/aitranslateui.js +1 -1
  311. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  312. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  313. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  314. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  315. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  316. package/src/errors.js +1 -1
  317. package/src/errorsmap.js +1 -1
  318. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _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))]);}}
23
+ const _0x257160=_0x3bb4;(function(_0x10499c,_0x29e74c){const _0x21c98a=_0x3bb4,_0x3c164e=_0x10499c();while(!![]){try{const _0x4096ab=parseInt(_0x21c98a(0x175))/0x1*(-parseInt(_0x21c98a(0x1a9))/0x2)+parseInt(_0x21c98a(0x1ad))/0x3*(parseInt(_0x21c98a(0x19a))/0x4)+-parseInt(_0x21c98a(0x1bb))/0x5*(parseInt(_0x21c98a(0x1bc))/0x6)+-parseInt(_0x21c98a(0x1ae))/0x7+parseInt(_0x21c98a(0x171))/0x8+parseInt(_0x21c98a(0x1ba))/0x9*(-parseInt(_0x21c98a(0x1a1))/0xa)+parseInt(_0x21c98a(0x176))/0xb*(parseInt(_0x21c98a(0x1a5))/0xc);if(_0x4096ab===_0x29e74c)break;else _0x3c164e['push'](_0x3c164e['shift']());}catch(_0x413d0a){_0x3c164e['push'](_0x3c164e['shift']());}}}(_0x4c78,0xd435a));import{ContextPlugin as _0x42e606}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x16cd0d,AIEditing as _0x5216fe}from'../aicore/aiediting.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x5c15c5}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x4f7e22,Rect as _0x4b7e13,scrollViewportToShowTarget as _0x2a5eff}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x5b4ae1}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x2088bd}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x502944}from'./ui/aiballoonview.js';function _0x3bb4(_0x4b4bd5,_0x6d08dc){const _0x4c78e1=_0x4c78();return _0x3bb4=function(_0x3bb459,_0x1301a6){_0x3bb459=_0x3bb459-0x164;let _0x1d8a93=_0x4c78e1[_0x3bb459];return _0x1d8a93;},_0x3bb4(_0x4b4bd5,_0x6d08dc);}function _0x4c78(){const _0x590763=['AIBalloon','576qIQxWE','10gfyqEt','137622RpHQqw','_currentConfig','isOfficialPlugin','getMarkersGroup','model','max','mainView','end','iconView','plugins','once','filter','listenTo','stopListening','label','show','length','get','ck-ai-balloon\x20','isEqual','9477216yZnSEl','ai-selection','high','width','1213anMPLe','11RbcYHE','startsWith','fire','_showDialog','_calculateOptimalTopPosition','window','_calculateDialogPosition','Dialog','ranges','height','_cleanupFakeVisualSelectionMarkerRemovalListener','change','root','hideFakeVisualSelection','start','differ','_hideFakeVisualSelection','index','headerView','getBoundingRect','delegate','context','pluginName','$graveyard','updatePosition','_isUpdatingMarkers','beforeDialogClosed','selectionRemoved','isOpen','requires','getIntersection','close','bind','markers','document','round','1824RdSBBE','dialogClosed','open','rootName','getVisible','showBlockingError','editing','81140OLPSdt','ai-balloon-','left','hideError','7478148PyTzkx','getChangedMarkers','_getSelectionElements','view','2306cobNbP','locale','isPremiumPlugin','content','7752BUjsOS','1072162fiHTum','ai-balloon-selection','map','_updateDialog','top','_setupFakeVisualSelectionMarkerRemovalListener','_showFakeVisualSelection','AI_BALLOON_SELECTION_REMOVED_ERROR','bottom','showFakeVisualSelection','hide'];_0x4c78=function(){return _0x590763;};return _0x4c78();}export const AI_BALLOON_EVENT_NAMES=[..._0x502944,_0x257160(0x19b),_0x257160(0x191)];const L=0xa;export class AIBalloon extends _0x42e606{static get[_0x257160(0x193)](){return[_0x5216fe];}static get[_0x257160(0x18c)](){const _0x4de0e8=_0x257160;return _0x4de0e8(0x1b9);}static get[_0x257160(0x1be)](){return!0x0;}static get[_0x257160(0x1ab)](){return!0x0;}[_0x257160(0x192)]=!0x1;[_0x257160(0x1bd)];[_0x257160(0x18f)]=!0x1;[_0x257160(0x19c)](_0x218f31){const _0x345013=_0x257160,{id:_0x559202}=this[_0x345013(0x1bd)]??{};this[_0x345013(0x1bd)]=_0x218f31;const {id:_0x196533}=this[_0x345013(0x1bd)];this[_0x345013(0x192)]&&_0x559202===_0x196533?this[_0x345013(0x1b1)]():this[_0x345013(0x179)]();}[_0x257160(0x195)](){const _0x575738=_0x257160,_0x5c08c8=_0x5b4ae1(this[_0x575738(0x18b)])[_0x575738(0x166)][_0x575738(0x16e)](_0x575738(0x17d));_0x5c08c8[_0x575738(0x192)]&&this[_0x575738(0x1bd)]&&_0x5c08c8['id']===this[_0x575738(0x1bd)]['id']&&_0x5c08c8[_0x575738(0x1b8)]();}[_0x257160(0x1b1)](){const _0x382731=_0x257160,_0x5b7a50=_0x5b4ae1(this[_0x382731(0x18b)])[_0x382731(0x166)][_0x382731(0x16e)](_0x382731(0x17d)),{icon:_0x44829a,title:_0x49b865}=this[_0x382731(0x1bd)];_0x5b7a50[_0x382731(0x1a8)]?.[_0x382731(0x188)]&&(_0x5b7a50[_0x382731(0x1a8)][_0x382731(0x188)][_0x382731(0x16b)]=_0x49b865,_0x5b7a50[_0x382731(0x1a8)][_0x382731(0x188)][_0x382731(0x165)]&&_0x44829a&&(_0x5b7a50[_0x382731(0x1a8)][_0x382731(0x188)][_0x382731(0x165)][_0x382731(0x1ac)]=_0x44829a)),this[_0x382731(0x18f)]=!0x0,this[_0x382731(0x1b4)](),this[_0x382731(0x18f)]=!0x1,_0x5b7a50[_0x382731(0x1a8)]?.[_0x382731(0x18e)]();}[_0x257160(0x1b4)](){const _0x3ddb0c=_0x257160;this[_0x3ddb0c(0x18b)][_0x3ddb0c(0x166)][_0x3ddb0c(0x16e)](_0x5216fe)[_0x3ddb0c(0x1b7)](this[_0x3ddb0c(0x1bd)][_0x3ddb0c(0x17e)],_0x3ddb0c(0x1a2)+this[_0x3ddb0c(0x1bd)][_0x3ddb0c(0x187)],!0x0,!0x0);}[_0x257160(0x186)](_0x3b29c1){const _0x98af85=_0x257160;this[_0x98af85(0x18b)][_0x98af85(0x166)][_0x98af85(0x16e)](_0x5216fe)[_0x98af85(0x183)](_0x98af85(0x1a2)+_0x3b29c1);}[_0x257160(0x179)](){const _0x37f78a=_0x257160,_0x39393e=_0x5b4ae1(this[_0x37f78a(0x18b)])[_0x37f78a(0x166)][_0x37f78a(0x16e)](_0x37f78a(0x17d)),{id:_0xd28891,title:_0x17edfd,icon:_0x443467,class:_0x29875a,mainView:_0x41597b}=this[_0x37f78a(0x1bd)];_0x41597b[_0x37f78a(0x18a)](..._0x502944)['to'](this),_0x39393e[_0x37f78a(0x16c)]({'title':_0x17edfd,'icon':_0x443467,'hasCloseButton':!0x0,'id':_0xd28891,'position':this[_0x37f78a(0x17c)][_0x37f78a(0x196)](this),'className':_0x37f78a(0x16f)+(_0x29875a||''),'content':_0x41597b,'onShow':_0x1d7177=>{const _0x29d62d=_0x37f78a;this[_0x29d62d(0x1b4)](),this[_0x29d62d(0x1b3)]();const _0x3b0170=this[_0x29d62d(0x1a7)]();_0x3b0170&&_0x3b0170[0x0]&&_0x2a5eff({'target':_0x3b0170[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x29d62d(0x192)]=!0x0,_0x1d7177[_0x29d62d(0x167)](_0x29d62d(0x1b8),()=>{const _0x2b475e=_0x29d62d;this[_0x2b475e(0x178)](_0x2b475e(0x190),{'id':_0xd28891});},{'priority':_0x29d62d(0x173)});},'onHide':()=>{const _0x5691a4=_0x37f78a;this[_0x5691a4(0x186)](this[_0x5691a4(0x1bd)][_0x5691a4(0x187)]),this[_0x5691a4(0x180)](),this[_0x5691a4(0x178)](_0x5691a4(0x19b),{'id':_0xd28891}),this[_0x5691a4(0x192)]=!0x1;}});}[_0x257160(0x17c)](_0x47e8ba,_0x467d3a){const _0x2bf008=_0x257160;if(!_0x467d3a)return null;const _0x438dec=this[_0x2bf008(0x1a7)]();if(!_0x438dec||0x0===_0x438dec[_0x2bf008(0x16d)])return{'left':Math[_0x2bf008(0x199)](_0x467d3a[_0x2bf008(0x1a3)]+_0x467d3a[_0x2bf008(0x174)]/0x2-_0x47e8ba[_0x2bf008(0x174)]/0x2),'top':Math[_0x2bf008(0x199)](_0x467d3a[_0x2bf008(0x1b2)]+_0x467d3a[_0x2bf008(0x17f)]/0x2-_0x47e8ba[_0x2bf008(0x17f)]/0x2)};const _0x553f44=Math[_0x2bf008(0x199)](_0x467d3a[_0x2bf008(0x1a3)]+_0x467d3a[_0x2bf008(0x174)]/0x2-_0x47e8ba[_0x2bf008(0x174)]/0x2),_0x2a5bf3=_0x438dec[_0x2bf008(0x1b0)](_0x394208=>new _0x4b7e13(_0x394208)),_0x4057de=_0x47e8ba[_0x2bf008(0x17f)];return{'left':_0x553f44,'top':this[_0x2bf008(0x17a)](_0x2a5bf3,_0x4057de,_0x467d3a)};}[_0x257160(0x17a)](_0x318b7c,_0x2d54f9,_0x9b34e1){const _0xe10606=_0x257160,_0x44e1fa=new _0x4b7e13(_0x4f7e22[_0xe10606(0x17b)]),_0x21403c=_0x318b7c[_0xe10606(0x1b0)](_0x39a3e5=>_0x39a3e5[_0xe10606(0x19e)]())[_0xe10606(0x168)](_0x76697a=>_0x76697a),_0x316df0=_0x4b7e13[_0xe10606(0x189)](_0x21403c);if(!_0x316df0)return Math[_0xe10606(0x199)](_0x9b34e1[_0xe10606(0x1b2)]+_0x9b34e1[_0xe10606(0x17f)]/0x2);const _0x3ad1ad=_0x44e1fa[_0xe10606(0x194)](_0x316df0);if(!_0x3ad1ad)return Math[_0xe10606(0x199)](_0x9b34e1[_0xe10606(0x1b2)]+_0x9b34e1[_0xe10606(0x17f)]/0x2);const _0x38bca4=_0x9b34e1[_0xe10606(0x19e)](),_0x3c5739=_0x38bca4&&_0x316df0[_0xe10606(0x17f)]>_0x38bca4[_0xe10606(0x17f)],_0x1d88a9=_0x3ad1ad[_0xe10606(0x1b2)],_0x39b7f3=_0x3ad1ad[_0xe10606(0x1b6)];if(_0x3c5739){const _0x477266=(_0x38bca4||_0x44e1fa)[_0xe10606(0x17f)]/0x2-_0x2d54f9/0x2,_0x46b914=_0x1d88a9-L-_0x9b34e1[_0xe10606(0x1b2)],_0x4421a7=_0x9b34e1[_0xe10606(0x1b6)]-_0x39b7f3-L;return _0x46b914>=_0x2d54f9?Math[_0xe10606(0x1c1)](L,_0x1d88a9-_0x2d54f9-L):_0x4421a7>=_0x2d54f9?_0x39b7f3+L:Math[_0xe10606(0x1c1)](L,_0x477266);}const _0x4cb4c3=_0x1d88a9-_0x2d54f9,_0x449824=_0x9b34e1[_0xe10606(0x1b6)]-_0x39b7f3-L,_0x43c899=_0x1d88a9-L-_0x9b34e1[_0xe10606(0x1b2)];let _0x2cd8e1;if(_0x449824>=_0x2d54f9)_0x2cd8e1=_0x39b7f3+L;else{if(_0x43c899>=_0x2d54f9)_0x2cd8e1=_0x4cb4c3-L;else _0x2cd8e1=_0x1d88a9+_0x316df0[_0xe10606(0x17f)]/0x2-_0x2d54f9/0x2;}return _0x2cd8e1;}[_0x257160(0x1b3)](){const _0x395112=_0x257160,_0x57f671=_0x5b4ae1(this[_0x395112(0x18b)]);this[_0x395112(0x169)](_0x57f671[_0x395112(0x1c0)][_0x395112(0x198)],_0x395112(0x181),()=>{const _0xc4732=_0x395112;if(!this[_0xc4732(0x18f)]){for(const {name:_0x2e3d77,data:{newRange:_0x508577}}of _0x57f671[_0xc4732(0x1c0)][_0xc4732(0x198)][_0xc4732(0x185)][_0xc4732(0x1a6)]())if(_0x2e3d77[_0xc4732(0x177)](_0x16cd0d+':')&&(_0x508577&&(_0x508577[_0xc4732(0x184)][_0xc4732(0x170)](_0x508577[_0xc4732(0x164)])||_0xc4732(0x18d)==_0x508577[_0xc4732(0x182)][_0xc4732(0x19d)])||null==_0x508577)){const _0x209715=_0x2088bd(this[_0xc4732(0x18b)][_0xc4732(0x1aa)],_0xc4732(0x1b5));this[_0xc4732(0x1bd)][_0xc4732(0x1c2)][_0xc4732(0x19f)](_0x209715),this[_0xc4732(0x178)](_0xc4732(0x191));}}});}[_0x257160(0x180)](){const _0x56d067=_0x257160,_0x3550f3=_0x5b4ae1(this[_0x56d067(0x18b)]);this[_0x56d067(0x1bd)][_0x56d067(0x1c2)][_0x56d067(0x1a4)](),this[_0x56d067(0x16a)](_0x3550f3[_0x56d067(0x1c0)][_0x56d067(0x198)]);}[_0x257160(0x1a7)](){const _0x577851=_0x257160,_0x3feb1b=_0x5b4ae1(this[_0x577851(0x18b)]);return _0x5c15c5(_0x3feb1b[_0x577851(0x1a0)],[..._0x3feb1b[_0x577851(0x1c0)][_0x577851(0x197)][_0x577851(0x1bf)](_0x577851(0x172)),..._0x3feb1b[_0x577851(0x1c0)][_0x577851(0x197)][_0x577851(0x1bf)](_0x577851(0x1af))]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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;}}
23
+ const _0x4a03eb=_0x22fe;(function(_0x3e9c95,_0x24b119){const _0x3c1fb7=_0x22fe,_0x332b6b=_0x3e9c95();while(!![]){try{const _0x575a6e=parseInt(_0x3c1fb7(0x14e))/0x1*(-parseInt(_0x3c1fb7(0x152))/0x2)+parseInt(_0x3c1fb7(0x151))/0x3+-parseInt(_0x3c1fb7(0x14f))/0x4*(parseInt(_0x3c1fb7(0x15c))/0x5)+-parseInt(_0x3c1fb7(0x143))/0x6*(parseInt(_0x3c1fb7(0x159))/0x7)+-parseInt(_0x3c1fb7(0x15b))/0x8+-parseInt(_0x3c1fb7(0x146))/0x9+parseInt(_0x3c1fb7(0x144))/0xa;if(_0x575a6e===_0x24b119)break;else _0x332b6b['push'](_0x332b6b['shift']());}catch(_0x22dfed){_0x332b6b['push'](_0x332b6b['shift']());}}}(_0x425e,0x1b01f));import{View as _0x22e2b3}from'ckeditor5/src/ui.js';function _0x22fe(_0x468927,_0x3f0a2c){const _0x425e89=_0x425e();return _0x22fe=function(_0x22feec,_0x42c722){_0x22feec=_0x22feec-0x140;let _0xe2ae06=_0x425e89[_0x22feec];return _0xe2ae06;},_0x22fe(_0x468927,_0x3f0a2c);}export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x4a03eb(0x149),_0x4a03eb(0x148),_0x4a03eb(0x140),_0x4a03eb(0x150)];function _0x425e(){const _0x306e4d=['setTemplate','_isErrorVisible','_errorMessage','ck-hidden','showBlockingError','set','696017EtObXC','showError','1504936tUvcZu','100hhFzoP','_createErrorView','hideError','showNext','ck-ai-suggestion__error','div','6qmEetI','5760360ApuiMZ','locale','1435464BTOJdt','bindTemplate','insertSuggestion','applySuggestion','ck-ai-suggestion__error-text','ck-ai-balloon-error','span','_errorView','1879EJKJgC','21884MHyYdI','showPrevious','284427rUMpEP','4ntlqqT'];_0x425e=function(){return _0x306e4d;};return _0x425e();}export class AIBalloonView extends _0x22e2b3{[_0x4a03eb(0x14d)];constructor(_0x3d721e){const _0xe83e84=_0x4a03eb;super(_0x3d721e),this[_0xe83e84(0x158)](_0xe83e84(0x155),''),this[_0xe83e84(0x158)](_0xe83e84(0x154),!0x1);}[_0x4a03eb(0x157)](_0x528b15){const _0x22d41a=_0x4a03eb;this[_0x22d41a(0x15a)](_0x528b15);}[_0x4a03eb(0x15a)](_0x3b033a){const _0x50e28d=_0x4a03eb;this[_0x50e28d(0x14d)]||(this[_0x50e28d(0x14d)]=this[_0x50e28d(0x15d)]()),this[_0x50e28d(0x155)]=_0x3b033a,this[_0x50e28d(0x154)]=!0x0;}[_0x4a03eb(0x15e)](){const _0xe7aa8a=_0x4a03eb;this[_0xe7aa8a(0x154)]=!0x1;}[_0x4a03eb(0x15d)](){const _0x14f4fb=_0x4a03eb,_0x2e5049=new _0x22e2b3(this[_0x14f4fb(0x145)]),_0x359918=new _0x22e2b3(this[_0x14f4fb(0x145)]);return _0x359918[_0x14f4fb(0x153)]({'tag':_0x14f4fb(0x14c),'attributes':{'class':['ck',_0x14f4fb(0x14a)]},'children':[{'text':this[_0x14f4fb(0x147)]['to'](_0x14f4fb(0x155))}]}),_0x2e5049[_0x14f4fb(0x153)]({'tag':_0x14f4fb(0x142),'attributes':{'class':['ck',_0x14f4fb(0x141),_0x14f4fb(0x14b),this[_0x14f4fb(0x147)]['if'](_0x14f4fb(0x154),_0x14f4fb(0x156),_0x443419=>!_0x443419)]},'children':[_0x359918]}),_0x2e5049;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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);}}
23
+ var _0x48111e=_0x13a9;function _0x13a9(_0x37581e,_0x5d011a){var _0x47c091=_0x47c0();return _0x13a9=function(_0x13a942,_0x21e124){_0x13a942=_0x13a942-0x125;var _0x3eb235=_0x47c091[_0x13a942];return _0x3eb235;},_0x13a9(_0x37581e,_0x5d011a);}(function(_0xfa1c58,_0x3156d8){var _0x59b9a1=_0x13a9,_0x4a479a=_0xfa1c58();while(!![]){try{var _0x36bc9d=parseInt(_0x59b9a1(0x12a))/0x1+-parseInt(_0x59b9a1(0x12b))/0x2*(parseInt(_0x59b9a1(0x13a))/0x3)+parseInt(_0x59b9a1(0x138))/0x4+parseInt(_0x59b9a1(0x131))/0x5*(-parseInt(_0x59b9a1(0x132))/0x6)+parseInt(_0x59b9a1(0x130))/0x7+-parseInt(_0x59b9a1(0x13e))/0x8*(parseInt(_0x59b9a1(0x12f))/0x9)+-parseInt(_0x59b9a1(0x13b))/0xa*(-parseInt(_0x59b9a1(0x126))/0xb);if(_0x36bc9d===_0x3156d8)break;else _0x4a479a['push'](_0x4a479a['shift']());}catch(_0x1e5ace){_0x4a479a['push'](_0x4a479a['shift']());}}}(_0x47c0,0x62717));import{ContextPlugin as _0x45e0f4}from'ckeditor5/src/core.js';import{AIChatController as _0x54956d}from'./aichatcontroller.js';import{AIEditing as _0x54afef}from'../aicore/aiediting.js';import{AIChatUI as _0x3b1aa9}from'./aichatui.js';function _0x47c0(){var _0x638393=['isOfficialPlugin','sendMessage','ai.chat.context','3162609qYDzxM','3859443eMJJUU','5cmjvKe','1711746hXUWpC','pluginName','requires','config','registerToolDataCallback','removeSelectionFromChatContext','573816pJStzv','get','3849GqOdGA','10ClrSwl','AIChat','addSelectionToChatContext','16iFWyCV','ai.chat.initialConversation','startConversation','plugins','_registerToolDataCallback','new','isPremiumPlugin','9660167djYKiS','focusPromptInput','context','define','414911dPZqzH','930TiqHSK'];_0x47c0=function(){return _0x638393;};return _0x47c0();}import{AIChatHistory as _0x15b858}from'../aichathistory/aichathistory.js';export class AIChat extends _0x45e0f4{static get[_0x48111e(0x134)](){return[_0x54956d,_0x54afef,_0x3b1aa9,_0x15b858];}static get[_0x48111e(0x133)](){var _0x78f8d6=_0x48111e;return _0x78f8d6(0x13c);}static get[_0x48111e(0x12c)](){return!0x0;}static get[_0x48111e(0x125)](){return!0x0;}constructor(_0x4e8ba7){var _0x2f2199=_0x48111e;super(_0x4e8ba7),this[_0x2f2199(0x128)][_0x2f2199(0x135)][_0x2f2199(0x129)](_0x2f2199(0x12e),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x2f2199(0x128)][_0x2f2199(0x135)][_0x2f2199(0x129)](_0x2f2199(0x13f),_0x2f2199(0x143));}async[_0x48111e(0x13d)](){var _0x10ebd0=_0x48111e;await this[_0x10ebd0(0x128)][_0x10ebd0(0x141)][_0x10ebd0(0x139)](_0x54956d)[_0x10ebd0(0x13d)]();}async[_0x48111e(0x140)](){var _0x414394=_0x48111e;await this[_0x414394(0x128)][_0x414394(0x141)][_0x414394(0x139)](_0x54956d)[_0x414394(0x140)]();}async[_0x48111e(0x12d)]({message:_0xe6e2a,attributes:_0x47fb2c}){var _0x4424a8=_0x48111e;await this[_0x4424a8(0x128)][_0x4424a8(0x141)][_0x4424a8(0x139)](_0x54956d)[_0x4424a8(0x12d)]({'message':_0xe6e2a,'attributes':_0x47fb2c});}[_0x48111e(0x137)](){var _0x87c60c=_0x48111e;this[_0x87c60c(0x128)][_0x87c60c(0x141)][_0x87c60c(0x139)](_0x54956d)[_0x87c60c(0x137)]();}[_0x48111e(0x127)](){var _0x27860f=_0x48111e;this[_0x27860f(0x128)][_0x27860f(0x141)][_0x27860f(0x139)](_0x54956d)[_0x27860f(0x127)]();}[_0x48111e(0x136)](_0x17fd1a){var _0x23be21=_0x48111e;this[_0x23be21(0x128)][_0x23be21(0x141)][_0x23be21(0x139)](_0x54956d)[_0x23be21(0x142)](_0x17fd1a);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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)]();}}
23
+ const _0x4907e4=_0x3ef5;(function(_0x3a2c23,_0x130ae8){const _0x5e1e38=_0x3ef5,_0x394b5e=_0x3a2c23();while(!![]){try{const _0x3bbcb0=parseInt(_0x5e1e38(0x1cc))/0x1+parseInt(_0x5e1e38(0x1ea))/0x2*(parseInt(_0x5e1e38(0x1f6))/0x3)+-parseInt(_0x5e1e38(0x1c8))/0x4*(parseInt(_0x5e1e38(0x1e9))/0x5)+parseInt(_0x5e1e38(0x1e8))/0x6*(parseInt(_0x5e1e38(0x1c6))/0x7)+parseInt(_0x5e1e38(0x1cb))/0x8*(parseInt(_0x5e1e38(0x1ee))/0x9)+parseInt(_0x5e1e38(0x1ca))/0xa*(-parseInt(_0x5e1e38(0x1ef))/0xb)+-parseInt(_0x5e1e38(0x1fc))/0xc*(-parseInt(_0x5e1e38(0x1d3))/0xd);if(_0x3bbcb0===_0x130ae8)break;else _0x394b5e['push'](_0x394b5e['shift']());}catch(_0x58ddb0){_0x394b5e['push'](_0x394b5e['shift']());}}}(_0x49d9,0xf25c1));import{Plugin as _0x3fb66a}from'ckeditor5/src/core.js';import{AIBalloon as _0x344e58}from'../aiballoon/aiballoon.js';function _0x49d9(){const _0x486e8a=['isOfficialPlugin','plugins','aiChatBalloon','config','48660qMfksu','remove','beforeDialogClosed','commands','close','Dialog','204tOwSWt','applySuggestion','ck-ai-chat-balloon','delegate','headerView','has','AIBalloon','showPrevious','bind','isTrackChangesOn','TrackChanges','editor','setState','toggleRotatorButtonsVisibility','49hhQmDm','togglePartToolbarEnabled','12LyXFCI','previousButtonView','11428490GmGAvr','2270488rCRcmg','153400SLBUAa','rejectSuggestion','showDiff','ai.availableReplyActions','areActionsDisabled','open','set','1229709tsmbLJ','value','isPremiumPlugin','focus','filter','children','trackChanges','AIChatBalloon','once','showRotator','pluginName','requires','updateContent','_chatBalloonView','view','_restoreDefaultViewFocus','locale','showNext','dialogClosed','_toggleRotatorButtonsInDialogHeader','render','1134138vtZYTH','2568465fyJHEp','38lawITq','nextButtonView','addMany','insertSuggestion','9YvAKNV','11fPujQe','_createChatBalloonView','get'];_0x49d9=function(){return _0x486e8a;};return _0x49d9();}function _0x3ef5(_0xe16bf0,_0x124c49){const _0x49d958=_0x49d9();return _0x3ef5=function(_0x3ef518,_0x503b2c){_0x3ef518=_0x3ef518-0x1ba;let _0x284fee=_0x49d958[_0x3ef518];return _0x284fee;},_0x3ef5(_0xe16bf0,_0x124c49);}import{AI_REPLY_ACTIONS as _0x40b0e8}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x1fea93}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x368d91}from'../aicore/utils/eventnames.js';import{Dialog as _0x678d11}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x3fb66a{static get[_0x4907e4(0x1de)](){return[_0x678d11,_0x344e58];}static get[_0x4907e4(0x1dd)](){const _0x3500f8=_0x4907e4;return _0x3500f8(0x1da);}static get[_0x4907e4(0x1f2)](){return!0x0;}static get[_0x4907e4(0x1d5)](){return!0x0;}[_0x4907e4(0x1e0)];constructor(_0xcd5284){const _0x1df619=_0x4907e4;super(_0xcd5284),this[_0x1df619(0x1d2)](_0x1df619(0x1ce),!0x1);}[_0x4907e4(0x1d1)](_0x4048b0){const _0x2962a6=_0x4907e4,_0x5ac4a1=this[_0x2962a6(0x1c3)];this[_0x2962a6(0x1e0)]||(this[_0x2962a6(0x1e0)]=this[_0x2962a6(0x1f0)]()),_0x5ac4a1[_0x2962a6(0x1f3)][_0x2962a6(0x1f1)](_0x2962a6(0x1be))[_0x2962a6(0x1d1)]({..._0x4048b0,'id':_0x2962a6(0x1f4),'class':_0x2962a6(0x1ba),'mainView':this[_0x2962a6(0x1e0)]}),this[_0x2962a6(0x1e6)](_0x4048b0[_0x2962a6(0x1dc)]),this[_0x2962a6(0x1e0)][_0x2962a6(0x1c7)](!_0x4048b0[_0x2962a6(0x1d0)]),this[_0x2962a6(0x1e2)]();}[_0x4907e4(0x1fa)](){const _0x2602ad=_0x4907e4;this[_0x2602ad(0x1c3)][_0x2602ad(0x1f3)][_0x2602ad(0x1f1)](_0x2602ad(0x1be))[_0x2602ad(0x1fa)]();}[_0x4907e4(0x1df)](_0x17d2ac){const _0x49ded7=_0x4907e4;return this[_0x49ded7(0x1e0)]||(this[_0x49ded7(0x1e0)]=this[_0x49ded7(0x1f0)]()),this[_0x49ded7(0x1e0)][_0x49ded7(0x1df)](_0x17d2ac);}[_0x4907e4(0x1c4)](_0x28d6d3){const _0x205195=_0x4907e4;this[_0x205195(0x1e0)]&&this[_0x205195(0x1e0)][_0x205195(0x1c4)](_0x28d6d3);}[_0x4907e4(0x1f0)](){const _0x122d81=_0x4907e4,_0x22864f=this[_0x122d81(0x1c3)],_0x10ac08=_0x22864f[_0x122d81(0x1f3)][_0x122d81(0x1f1)](_0x122d81(0x1be)),_0x4b199a=_0x22864f[_0x122d81(0x1f9)][_0x122d81(0x1f1)](_0x122d81(0x1d9));let _0x313d85=_0x22864f[_0x122d81(0x1f5)][_0x122d81(0x1f1)](_0x122d81(0x1cf))||[..._0x40b0e8];_0x22864f[_0x122d81(0x1f3)][_0x122d81(0x1bd)](_0x122d81(0x1c2))||(_0x313d85=_0x313d85[_0x122d81(0x1d7)](_0x3db383=>_0x122d81(0x1ed)!=_0x3db383));const _0xbd3bdd=new _0x1fea93(_0x22864f[_0x122d81(0x1e3)],{'availableActions':_0x313d85,'showApplyButton':!0x0,'showSuggestButton':!!_0x4b199a});return _0xbd3bdd[_0x122d81(0x1c0)](_0x122d81(0x1ce))['to'](this),_0xbd3bdd[_0x122d81(0x1bb)](..._0x368d91)['to'](this),_0xbd3bdd[_0x122d81(0x1bb)](_0x122d81(0x1bf),_0x122d81(0x1e4))['to'](this),_0x10ac08[_0x122d81(0x1bb)](_0x122d81(0x1e5))['to'](this),_0xbd3bdd['on'](_0x122d81(0x1fd),this[_0x122d81(0x1e2)][_0x122d81(0x1c0)](this)),_0xbd3bdd['on'](_0x122d81(0x1ed),this[_0x122d81(0x1e2)][_0x122d81(0x1c0)](this)),_0xbd3bdd['on'](_0x122d81(0x1cd),this[_0x122d81(0x1e2)][_0x122d81(0x1c0)](this)),_0x4b199a&&_0xbd3bdd[_0x122d81(0x1c0)](_0x122d81(0x1c1))['to'](_0x4b199a,_0x122d81(0x1d4)),_0xbd3bdd[_0x122d81(0x1e7)](),_0xbd3bdd;}[_0x4907e4(0x1e6)](_0xbc6b83){const _0x13f514=_0x4907e4,_0x5809d9=this[_0x13f514(0x1c3)],_0x4183d6=_0x5809d9[_0x13f514(0x1f3)][_0x13f514(0x1f1)](_0x13f514(0x1fb))[_0x13f514(0x1e1)][_0x13f514(0x1bc)][_0x13f514(0x1d8)];this[_0x13f514(0x1e0)][_0x13f514(0x1c5)](_0xbc6b83),_0x4183d6[_0x13f514(0x1bd)](this[_0x13f514(0x1e0)][_0x13f514(0x1c9)])||(_0x4183d6[_0x13f514(0x1ec)]([this[_0x13f514(0x1e0)][_0x13f514(0x1c9)],this[_0x13f514(0x1e0)][_0x13f514(0x1eb)]],0x0),_0x5809d9[_0x13f514(0x1f3)][_0x13f514(0x1f1)](_0x13f514(0x1be))[_0x13f514(0x1db)](_0x13f514(0x1f8),()=>{const _0x417c9c=_0x13f514;_0x4183d6[_0x417c9c(0x1f7)](this[_0x417c9c(0x1e0)][_0x417c9c(0x1c9)]),_0x4183d6[_0x417c9c(0x1f7)](this[_0x417c9c(0x1e0)][_0x417c9c(0x1eb)]);}));}[_0x4907e4(0x1e2)](){const _0x5ee246=_0x4907e4;this[_0x5ee246(0x1e0)][_0x5ee246(0x1d6)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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)]();}};}}
23
+ const _0x5445bf=_0x2146;(function(_0x1edd6d,_0x289f68){const _0x29ec1a=_0x2146,_0x24b769=_0x1edd6d();while(!![]){try{const _0x2515d8=-parseInt(_0x29ec1a(0x1e5))/0x1+-parseInt(_0x29ec1a(0x1d7))/0x2+-parseInt(_0x29ec1a(0x2b2))/0x3+-parseInt(_0x29ec1a(0x2ad))/0x4*(parseInt(_0x29ec1a(0x255))/0x5)+parseInt(_0x29ec1a(0x2ab))/0x6+parseInt(_0x29ec1a(0x1e8))/0x7+parseInt(_0x29ec1a(0x24c))/0x8;if(_0x2515d8===_0x289f68)break;else _0x24b769['push'](_0x24b769['shift']());}catch(_0x8fef1c){_0x24b769['push'](_0x24b769['shift']());}}}(_0x41bf,0x33bd9));import{ContextPlugin as _0x4c1f5f,Editor as _0xa6309}from'ckeditor5/src/core.js';import{BodyCollection as _0x1a2c57}from'ckeditor5/src/ui.js';import{CKEditorError as _0x37642f,logError as _0x32f4ac,scrollViewportToShowTarget as _0x2cdfe0,uid as _0xafb963}from'ckeditor5/src/utils.js';function _0x41bf(){const _0x285269=['ai-chat-context-form-data-size-limits-exceeded','removeSelectionFromChatContext','get','children','config','handleRemovedConversation','handleUserInteraction','ai.models.defaultModelId','clearConversationContextUI','indexes','AI_CHAT_CONTEXT_INVALID_DATA','showChangeInText','partIndex','conversationInitialized','_getPresentableSiblingContentPartIndex','setFeedItemRenderingStrategy','ai-chat-conversation-not-found','_bodyCollection','$graveyard','_aiChatUi','main','applySuggestion','rejected','prepareLoadingMessage','focusPromptInput','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','sourceResourcesLoaded','interactionDestroyed','_logError','setSelectedModel','applyOperation','addCurrentDocumentToContext','replyChangeGroupStateUpdated','change','stop','ai-chat-invalid-request','getConversation','removeSelectionFromContext','find','getPath','getTransformedByOperation','getChildAtOffset','batch','message','areActionsDisabled','updateFeedItemAIReplySources','collaboration.channelId','resetMessageInput','finishInteraction','_insertSuggestion','index','_rejectSuggestion','activeConversation','isPremiumPlugin','setModel','AI_CHAT_ABORTED_MESSAGE','ai-chat-conversation-start-failed','filter','contextItemAdded','mouseOverSuggestion','data','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','_aiChatBalloon','rootName','ai-chat-context-file-too-large','getDiff','howMany','next','history','ai.chat.context','accepted','setIsUploadInProgress','domConverter','getGroupId','createRange','range','capabilitiesUpdated','_showConversationHistory','uid','ai-request-aborted','Undo','callback','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','ai-chat-source-resources-load-failed','forEach','aiChatBalloon','closeSourceResourceBalloon','ai-chat-controller-mouse-over','type','delete','dislike','getInteractionAndReplyById','webSearchStarted','cloneNode','_stopLastInteraction','updateContent','static','contextItemRemoved','editors','_openBalloonFor','getInteraction','AIChatBalloon','populateSourceResourceBalloon','startsWith','log','version','like','getConversations','toggleReasoning','Showing\x20conversation\x20history...','getRanges','ai-chat-context-unsupported-type','sourceId','resourceStateChanged','createdAt','contextSent','addFeedItemUserMessage','query','root','_toggleReasoning','fetchConversation','createConversation','updateResourceState','createReply','loadConversation','context','node','modelSelected','addFeedItemStaticMessage','close','updateConversationTitle','AI_CHAT_UNABLE_TO_START_CONVERSATION','isOfficialPlugin','clearLoadingMessage','toggleWebSearch','ai-chat-resource-load-failed','_batchToChanges','ai-chat-context-invalid-data','addFeedItemAIReply','sendUserMessage','setContextItemLoading','model','updateCapabilities','reasoningFinished','_getAIChatInteractionAPI','length','getDocumentContext','isDisabled','changes','webSearchFinished','_aiChatModels','currentReply','sources','_registerToolDataCallback','AIChatUI','outdated','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','addContextOptionsChanged','530446BqAMXK','removeFromContext','enableControls','source','addUrlToContext','updateFeedItemAIReplySuggestionPartState','load','_updateRatings','showPrevious','AI_BALLOON_HEADER_TITLE','getSelectionText','getAttribute','contextItemLoadingEnded','toggleSuggestionDisplayMode','339703SKLuiL','findIndex','detachFromDom','2481255JoeTWX','open','_flushLastInteractionUI','maxOffset','_getUserPresentableContentPartDocumentRange','editing','plugins','interactionStarted','sourcePosition','scrollFeedToSuggestion','done','toViewRange','toString','loadSourceResources','clearPendingContextUI','resizedTabs','showFakeVisualSelection','ai-chat-file-upload-failed','streaming','_startConversationSafely','stopInteraction','updateCurrentDocumentInContext','ai-chat-context-unsupported-file-type','contextItems','isLoading','setIsMaximized','remove','addOperation','ready','options','push','_handleStartConversation','isModelAvailable','isCurrentDocumentInConversation','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','listenTo','revert','addCurrentDocumentToChatContext','new','Liked\x20response','resetConversationTitle','toolDataReceived','start','setConversationTitle','anchorId','dialogClosed','getReply','_updateReplyContent','slice','lastInteraction','modification','replies','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','disableControls','nextSibling','ai-no-track-changes','uiId','Disliked\x20response','addDocumentToContext','AIEditing','split','ai-chat-url-upload-failed','resource','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','addSelectionToContext','destroy','parse','pending','isUploadInProgress','selection','insertSuggestion','redo','from','AI_CHAT_UNTITLED_CONVERSATION','getDocumentData','state','chat','_setIsMaximized','lastCreated','showNext','activateTab','addFeedItemCustomElement','AI_CHAT_INVALID_REQUEST','ai.models','fetchConversations','_getDocumentRangeForReplyChanges','afterInit','mapper','createPositionAt','rejectSuggestion','addFilesToContext','setConversationContext','AI_CHAT_RESOURCE_LOAD_FAILED','showDiff','_getLastCreatedConversationId','getAll','baseVersion','AITabs','resourceId','AI_CHAT_CONTEXT_FILE_TOO_LARGE','7740760FrmJCa','TrackChanges','uploadProgressChanged','removeFeedInteraction','isStarted','bind','startInteraction','has','updateFeedItemAIReplySuggestionContent','5uWzbeW','resources','ai-chat-controller-no-active-conversation','replyId','ai-chat-missing-channel-id','toggleLoadingSkeleton','changeGroups','selectModel','TrackChangesEditing','reasoningStarted','_currentPreviewedChangeGroup','setState','viewRangeToDom','abortPromptStream','includes','setFeedItemAIReplySuggestionPartActive','getOperations','undo','selectedModel','_aiConnector','set','setChangeGroupState','delegate','resize','resetWebSearchState','AIConnector','map','init','upsertAIChatRating','ai.chat.initialConversation','_aiEditing','DocumentCompare','contextItem','sendMessage','executeCustomItemCallback','hideFakeVisualSelection','AIChatController','removeContextItem','resetReasoningState','addResourceToContext','ai-conversation-','_applyOperationsAsSuggestions','end','path','ai-chat-context-file-too-many-pages','requires','error','attachToDom','startAutoScroll','setAddContextOptions','interactionFinished','ai-chat-conversation-init-failed','marker','hasChanges','locale','view','text','unshift','add','commands','isDocumentOperation','previous','AI_CHAT_GENERIC_ERROR','addFileToContext','interactionCreated','data-id','_scrollToSuggestionRange','messageId','addFeedItemAISuggestion','isInContext','_integrateEditor','_applySuggestion','addContextItem','alignToTop','_aiChatBalloonShowDiff','_handleUIUserMessage','getFirstRange','_toggleWebSearch','pluginName','resizeTabs','replyContentUpdated','interactionId','getChild','removed','createPositionFromPath','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','535398iWICFo','content','1592356HxSftW','isCurrentDocumentInContext','addFeedItemError','addSelectionToChatContext','startConversation','589047zVzCfM','document','_createFromRanges','addFeedInteractionHeader','getChildren','getRoot','getContentParts','indexOf','sessionId','setLoadingMessage','current-document','_removeFromContext','documentContextContent','replyCreated','updateFeedItemAIReplyContent','mouseLeaveSuggestion'];_0x41bf=function(){return _0x285269;};return _0x41bf();}import{AIConnector as _0x134032}from'../aicore/aiconnector.js';import{AITabs as _0x3608de}from'../aitabs/aitabs.js';import{AIChatConversation as _0x5eeb0c}from'./model/aichatconversation.js';import{getTranslation as _0x130df6}from'../aicore/utils/common-translations.js';import{AIModels as _0x10fadd}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x1cd8a8}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x2dafad,DATA_ID_MODEL_ATTRIBUTE as _0x4e7f6b}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x56c479,getOperationsFromReply as _0x2de689}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x4341ca,getMinimalSelection as _0x591691}from'../aicore/utils/getsuggestionpartsfromreply.js';function _0x2146(_0x152081,_0x85cccf){const _0x41bf5d=_0x41bf();return _0x2146=function(_0x2146c3,_0xd3aaaf){_0x2146c3=_0x2146c3-0x1d6;let _0x19f801=_0x41bf5d[_0x2146c3];return _0x19f801;},_0x2146(_0x152081,_0x85cccf);}import{ModelRange as _0x7d7dfd,_DetachOperation as _0x21ef70}from'ckeditor5/src/engine.js';import{findOne as _0x11fefc,getAttribute as _0x4280bc,serialize as _0x2b61cd,Document as _0x1d4d3c,findByAttribute as _0x183569}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x4c1f5f{[_0x5445bf(0x273)];[_0x5445bf(0x268)];[_0x5445bf(0x2d5)];[_0x5445bf(0x358)];[_0x5445bf(0x300)];[_0x5445bf(0x34a)]=new Map();[_0x5445bf(0x25f)]=null;[_0x5445bf(0x2d3)];static get[_0x5445bf(0x282)](){return[_0x134032,_0x2dafad];}static get[_0x5445bf(0x2a3)](){const _0x1bc913=_0x5445bf;return _0x1bc913(0x279);}static get[_0x5445bf(0x346)](){return!0x0;}static get[_0x5445bf(0x2f7)](){return!0x0;}[_0x5445bf(0x270)](){const _0x7a8a69=_0x5445bf;this[_0x7a8a69(0x2d3)]=new _0x1a2c57(this[_0x7a8a69(0x33f)][_0x7a8a69(0x28b)]),this[_0x7a8a69(0x2d3)][_0x7a8a69(0x284)](),this[_0x7a8a69(0x268)]=this[_0x7a8a69(0x33f)][_0x7a8a69(0x1ee)][_0x7a8a69(0x2c4)](_0x7a8a69(0x26e)),this[_0x7a8a69(0x2d5)]=this[_0x7a8a69(0x33f)][_0x7a8a69(0x1ee)][_0x7a8a69(0x2c4)](_0x7a8a69(0x35c)),this[_0x7a8a69(0x273)]=this[_0x7a8a69(0x33f)][_0x7a8a69(0x1ee)][_0x7a8a69(0x2c4)](_0x7a8a69(0x223)),this[_0x7a8a69(0x358)]=new _0x10fadd({'connector':this[_0x7a8a69(0x268)],'config':this[_0x7a8a69(0x33f)][_0x7a8a69(0x2c6)][_0x7a8a69(0x2c4)](_0x7a8a69(0x23b)),'locale':this[_0x7a8a69(0x33f)][_0x7a8a69(0x28b)]});const _0x446b1a=this[_0x7a8a69(0x33f)][_0x7a8a69(0x1ee)][_0x7a8a69(0x2c4)](_0x7a8a69(0x249));this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x2b1),()=>{const _0x3e2b68=_0x7a8a69;this[_0x3e2b68(0x1fb)]();}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x34d),(_0x6434cd,_0x549643)=>{const _0xdd29e7=_0x7a8a69;this[_0xdd29e7(0x2a0)]({'userMessage':_0x549643});}),this[_0x7a8a69(0x20b)](_0x446b1a,_0x7a8a69(0x1f7),(_0x5a82c5,_0x4799c2)=>{const _0x2fac8a=_0x7a8a69;this[_0x2fac8a(0x235)](_0x4799c2);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x2a4),()=>{const _0x9c1e24=_0x7a8a69;_0x446b1a[_0x9c1e24(0x26c)]();}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x262),async()=>{const _0x5f4478=_0x7a8a69;await this[_0x5f4478(0x320)](),await this[_0x5f4478(0x1ea)](),this[_0x5f4478(0x2c3)]();}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x222),()=>{const _0x2089b9=_0x7a8a69;this[_0x2089b9(0x20d)]();}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x294),(_0x547721,_0x2a2762)=>{const _0x14a781=_0x7a8a69;this[_0x14a781(0x2f6)]?.[_0x14a781(0x242)](Array[_0x14a781(0x230)](_0x2a2762));}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x1db),(_0x230acd,_0x27d9fe)=>{const _0x2995e7=_0x7a8a69;this[_0x2995e7(0x2f6)]?.[_0x2995e7(0x1db)](_0x27d9fe);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x277),(_0x30dedd,_0x59ec4a)=>{const _0x3a8cb4=_0x7a8a69;_0x59ec4a[_0x3a8cb4(0x313)](this[_0x3a8cb4(0x33f)]);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x27c),(_0x50b055,_0x3e3b93)=>{const _0x9422af=_0x7a8a69;this[_0x9422af(0x2f6)]?.[_0x9422af(0x27c)](_0x3e3b93[_0x9422af(0x1da)],_0x3e3b93[_0x9422af(0x226)]);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x27a),(_0x202090,_0xb5131b)=>{const _0xced8f8=_0x7a8a69;this[_0xced8f8(0x2bd)](_0xb5131b);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x1f5),(_0x582c75,_0x572e3c)=>{const _0xd66d66=_0x7a8a69;this[_0xd66d66(0x2f6)]?.[_0xd66d66(0x1f5)](_0x572e3c[_0xd66d66(0x332)],_0x572e3c[_0xd66d66(0x337)],_0x572e3c[_0xd66d66(0x310)]);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x348),()=>{const _0x5ad86f=_0x7a8a69;this[_0x5ad86f(0x2a2)]();}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x32e),()=>{const _0x20b5f9=_0x7a8a69;this[_0x20b5f9(0x339)]();}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x25c),(_0xfab047,_0x2714ae)=>{const _0x46c1a1=_0x7a8a69;this[_0x46c1a1(0x2f6)]?.[_0x46c1a1(0x2f8)](_0x2714ae);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x32c),(_0x35dfe6,{replyId:_0x492f2c})=>{const _0x17d017=_0x7a8a69;console[_0x17d017(0x32a)](_0x17d017(0x20f),_0x492f2c);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x31c),(_0x21815c,{replyId:_0xad8fd5})=>{const _0x543ab1=_0x7a8a69;console[_0x543ab1(0x32a)](_0x543ab1(0x221),_0xad8fd5);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x22e),(_0x35338c,_0x5a6ad5)=>{const _0x5e538f=_0x7a8a69;this[_0x5e538f(0x2f3)](_0x5a6ad5);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x2cd),(_0x5b7fe9,{replyId:_0x1d4593,partIndex:_0x4c0c78})=>{const _0x53bfb6=_0x7a8a69;this[_0x53bfb6(0x29f)]=this[_0x53bfb6(0x2d5)][_0x53bfb6(0x245)],this[_0x53bfb6(0x325)](_0x1d4593,_0x4c0c78);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x2fd),(_0x16108f,{replyId:_0x3504f4,partIndex:_0x393d44})=>{const _0x1c4285=_0x7a8a69,_0x5c151b=this[_0x1c4285(0x23d)](_0x3504f4,_0x393d44);_0x5c151b&&_0x1c4285(0x2d4)!=_0x5c151b[_0x1c4285(0x30d)][_0x1c4285(0x338)][_0x1c4285(0x301)]&&this[_0x1c4285(0x273)][_0x1c4285(0x1f8)]([_0x5c151b[_0x1c4285(0x30d)]],_0x1c4285(0x319));}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x2c1),()=>{const _0x456d69=_0x7a8a69;this[_0x456d69(0x273)][_0x456d69(0x278)](_0x456d69(0x319));}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x2d7),(_0x12d711,_0xff4fb6)=>{const _0x419441=_0x7a8a69;this[_0x419441(0x273)][_0x419441(0x278)](_0x419441(0x319)),this[_0x419441(0x29c)](_0xff4fb6);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x1e4),async(_0x128ecf,{replyId:_0x1f03c9,showDiff:_0x2453c1})=>{const _0x2d87b4=_0x7a8a69,{reply:_0x375286}=this[_0x2d87b4(0x31d)](_0x1f03c9),_0x5f2de7=_0x375286[_0x2d87b4(0x2b8)]({'showDiff':_0x2453c1});await this[_0x2d87b4(0x2d5)][_0x2d87b4(0x254)]({'id':_0x375286['id'],'parts':_0x5f2de7,'renderingStrategy':_0x2d87b4(0x322)});}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x2d5)],_0x7a8a69(0x241),(_0x55728c,{replyId:_0x4d850d,partIndex:_0x1487fa})=>{const _0x155821=_0x7a8a69;this[_0x155821(0x2f5)]({'replyId':_0x4d850d,'partIndex':_0x1487fa}),this[_0x155821(0x273)][_0x155821(0x278)](_0x155821(0x319));}),this[_0x7a8a69(0x33f)][_0x7a8a69(0x1ee)][_0x7a8a69(0x253)](_0x7a8a69(0x327))&&(this[_0x7a8a69(0x300)]=this[_0x7a8a69(0x33f)][_0x7a8a69(0x1ee)][_0x7a8a69(0x2c4)](_0x7a8a69(0x327)),this[_0x7a8a69(0x269)](_0x7a8a69(0x29f),!0x1),this[_0x7a8a69(0x300)][_0x7a8a69(0x251)](_0x7a8a69(0x245))['to'](this,_0x7a8a69(0x29f)),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x300)],_0x7a8a69(0x1e4),()=>{const _0x571499=_0x7a8a69,{replyId:_0x5ac10e,partIndex:_0x2f1ab1}=this[_0x571499(0x25f)];this[_0x571499(0x29f)]=!this[_0x571499(0x29f)];const {reply:_0x5a02c8}=this[_0x571499(0x31d)](_0x5ac10e),_0x3d665a=_0x5a02c8[_0x571499(0x2b8)]({'showDiff':this[_0x571499(0x29f)],'groupIndex':_0x2f1ab1});this[_0x571499(0x300)][_0x571499(0x321)]({'part':_0x3d665a[0x0],'renderingStrategy':_0x571499(0x322),'keepErrors':!0x0});}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x300)],_0x7a8a69(0x2d7),()=>{const _0x57f03b=_0x7a8a69,{replyId:_0x3121ce,partIndex:_0x253b06}=this[_0x57f03b(0x25f)];this[_0x57f03b(0x29c)]({'replyId':_0x3121ce,'partIndex':_0x253b06}),this[_0x57f03b(0x300)][_0x57f03b(0x260)](_0x57f03b(0x308));}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x300)],_0x7a8a69(0x22e),()=>{const _0x379185=_0x7a8a69,{replyId:_0x1338df,partIndex:_0x25d180}=this[_0x379185(0x25f)];this[_0x379185(0x2f3)]({'replyId':_0x1338df,'partIndex':_0x25d180}),this[_0x379185(0x300)][_0x379185(0x260)](_0x379185(0x308));}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x300)],_0x7a8a69(0x241),()=>{const _0x375f83=_0x7a8a69,{replyId:_0x298cd9,partIndex:_0x545de0}=this[_0x375f83(0x25f)];this[_0x375f83(0x2f5)]({'replyId':_0x298cd9,'partIndex':_0x545de0}),this[_0x375f83(0x300)][_0x375f83(0x260)](_0x375f83(0x2d8));}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x300)],_0x7a8a69(0x237),()=>{const _0x389a01=_0x7a8a69,{replyId:_0x94fe4c,partIndex:_0x182638}=this[_0x389a01(0x25f)],_0x2c93eb=this[_0x389a01(0x2d0)](_0x94fe4c,_0x182638,_0x389a01(0x305));null!==_0x2c93eb&&this[_0x389a01(0x325)](_0x94fe4c,_0x2c93eb);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x300)],_0x7a8a69(0x1df),()=>{const _0x2a3416=_0x7a8a69,{replyId:_0x428451,partIndex:_0x398890}=this[_0x2a3416(0x25f)],_0x18f096=this[_0x2a3416(0x2d0)](_0x428451,_0x398890,_0x2a3416(0x292));null!==_0x18f096&&this[_0x2a3416(0x325)](_0x428451,_0x18f096);}),this[_0x7a8a69(0x20b)](this[_0x7a8a69(0x300)],_0x7a8a69(0x215),(_0x27b690,{id:_0x3c1d3d})=>{const _0x2cd8c6=_0x7a8a69;if(_0x2cd8c6(0x317)!==_0x3c1d3d)return;const {replyId:_0x8459dd,partIndex:_0x3278d0}=this[_0x2cd8c6(0x25f)];this[_0x2cd8c6(0x25f)]=null,this[_0x2cd8c6(0x2d5)][_0x2cd8c6(0x264)]({'id':_0x8459dd,'index':_0x3278d0,'isActive':!0x1});}));}async[_0x5445bf(0x23e)](){const _0x5094da=_0x5445bf;this[_0x5094da(0x33f)]instanceof _0xa6309?this[_0x5094da(0x29b)](this[_0x5094da(0x33f)]):this[_0x5094da(0x20b)](this[_0x5094da(0x33f)][_0x5094da(0x324)],_0x5094da(0x28f),(_0x54a511,_0x19ae5b)=>{const _0x735f21=_0x5094da;_0x19ae5b['on'](_0x735f21(0x204),()=>{const _0x54d4d3=_0x735f21;this[_0x54d4d3(0x29b)](_0x19ae5b);});});const _0x33c4e2=this[_0x5094da(0x33f)][_0x5094da(0x2c6)][_0x5094da(0x2c4)](_0x5094da(0x272));let _0x20b4d6=_0x33c4e2;if(_0x5094da(0x236)!=_0x33c4e2||(_0x20b4d6=await this[_0x5094da(0x246)](),_0x20b4d6))return _0x5094da(0x20e)==_0x20b4d6?this[_0x5094da(0x1fb)]():this[_0x5094da(0x33e)](_0x20b4d6);}async[_0x5445bf(0x229)](){const _0x1288b8=_0x5445bf;return await this[_0x1288b8(0x320)](),this[_0x1288b8(0x2d3)][_0x1288b8(0x1e7)](),super[_0x1288b8(0x229)]();}[_0x5445bf(0x2f3)](_0x49f652){const _0xaa027b=_0x5445bf,_0xf23b17=_0x1cd8a8(this[_0xaa027b(0x33f)]);if(!_0xf23b17[_0xaa027b(0x1ee)][_0xaa027b(0x253)](_0xaa027b(0x24d)))throw new _0x37642f(_0xaa027b(0x21f),null);const _0x15de9e=this[_0xaa027b(0x33f)][_0xaa027b(0x1ee)][_0xaa027b(0x2c4)](_0xaa027b(0x274)),{reply:_0x2446fb,interaction:_0x267378}=this[_0xaa027b(0x31d)](_0x49f652[_0xaa027b(0x258)]),_0x4a3a1e=this[_0xaa027b(0x23d)](_0x49f652[_0xaa027b(0x258)],_0x49f652[_0xaa027b(0x2ce)]),_0x58e0c7=void 0x0!==_0x49f652[_0xaa027b(0x2ce)]?[_0x2446fb[_0xaa027b(0x25b)][_0x49f652[_0xaa027b(0x2ce)]]]:_0x2446fb[_0xaa027b(0x25b)][_0xaa027b(0x2fb)](_0x16c42c=>_0xaa027b(0x22b)==_0x16c42c[_0xaa027b(0x233)]),_0x2b0e2c=_0x58e0c7[_0xaa027b(0x26f)](_0x4a7430=>_0x2446fb[_0xaa027b(0x25b)][_0xaa027b(0x2b9)](_0x4a7430));if(!_0x4a3a1e||_0xaa027b(0x2d4)==_0x4a3a1e[_0xaa027b(0x30d)][_0xaa027b(0x338)][_0xaa027b(0x301)])return void _0x2b0e2c[_0xaa027b(0x316)](_0x59a1ef=>_0x2446fb[_0xaa027b(0x26a)](_0x59a1ef,_0xaa027b(0x35d)));_0x2b0e2c[_0xaa027b(0x316)](_0x121129=>_0x2446fb[_0xaa027b(0x26a)](_0x121129,_0xaa027b(0x308)));const _0x5ca64c=_0x2de689({'editor':_0xf23b17,'reply':_0x2446fb,'interaction':_0x267378,'groups':_0x58e0c7,'transform':!0x0,'documentCompare':_0x15de9e,'documentCompareOptions':{'anchor':_0xaa027b(0x2d6),'markDeletions':!0x0}});let _0x245057;_0x4a3a1e&&this[_0xaa027b(0x297)](_0x4a3a1e[_0xaa027b(0x30d)]),_0xf23b17[_0xaa027b(0x34f)][_0xaa027b(0x2e3)](_0x109217=>{const _0x4691ee=_0xaa027b;_0x245057=_0x109217[_0x4691ee(0x2ec)],_0xf23b17[_0x4691ee(0x1ee)][_0x4691ee(0x2c4)](_0x4691ee(0x25d))[_0x4691ee(0x27e)](_0x5ca64c),this[_0x4691ee(0x273)][_0x4691ee(0x278)](_0x4691ee(0x319));}),this[_0xaa027b(0x34a)][_0xaa027b(0x269)](_0x245057,{'interactionId':_0x267378['id'],'replyId':_0x2446fb['id'],'indexes':_0x2b0e2c[_0xaa027b(0x218)]()}),this[_0xaa027b(0x1de)](_0x2446fb);}[_0x5445bf(0x29c)](_0x509a45){const _0x192207=_0x5445bf,_0x47a044=_0x1cd8a8(this[_0x192207(0x33f)]),_0x1693f0=this[_0x192207(0x33f)][_0x192207(0x1ee)][_0x192207(0x2c4)](_0x2dafad),{reply:_0x357039,interaction:_0x38f5fa}=this[_0x192207(0x31d)](_0x509a45[_0x192207(0x258)]),_0x11bb40=this[_0x192207(0x23d)](_0x509a45[_0x192207(0x258)],_0x509a45[_0x192207(0x2ce)]),_0x18d0be=void 0x0!==_0x509a45[_0x192207(0x2ce)]?[_0x357039[_0x192207(0x25b)][_0x509a45[_0x192207(0x2ce)]]]:_0x357039[_0x192207(0x25b)][_0x192207(0x2fb)](_0x522777=>_0x192207(0x22b)==_0x522777[_0x192207(0x233)]),_0x331d70=_0x18d0be[_0x192207(0x26f)](_0x20f6fb=>_0x357039[_0x192207(0x25b)][_0x192207(0x2b9)](_0x20f6fb));if(!_0x11bb40||_0x192207(0x2d4)==_0x11bb40[_0x192207(0x30d)][_0x192207(0x338)][_0x192207(0x301)])return void _0x331d70[_0x192207(0x316)](_0x3a3027=>_0x357039[_0x192207(0x26a)](_0x3a3027,_0x192207(0x35d)));_0x331d70[_0x192207(0x316)](_0x7255ea=>_0x357039[_0x192207(0x26a)](_0x7255ea,_0x192207(0x308)));const _0x34dd2a=_0x2de689({'editor':_0x47a044,'reply':_0x357039,'interaction':_0x38f5fa,'groups':_0x18d0be,'transform':!0x0,'documentCompare':_0x1693f0,'documentCompareOptions':{'anchor':_0x192207(0x2d6),'markDeletions':!0x1}});let _0xb24e28;_0x11bb40&&this[_0x192207(0x297)](_0x11bb40[_0x192207(0x30d)]),_0x47a044[_0x192207(0x34f)][_0x192207(0x2e3)](_0x457ed0=>{const _0x498aa8=_0x192207;_0xb24e28=_0x457ed0[_0x498aa8(0x2ec)];for(const _0x1fa324 of _0x34dd2a)_0x1fa324[_0x498aa8(0x248)]=_0x47a044[_0x498aa8(0x34f)][_0x498aa8(0x2b3)][_0x498aa8(0x32b)],_0x56c479(_0x47a044,_0x1fa324),_0x457ed0[_0x498aa8(0x2ec)][_0x498aa8(0x203)](_0x1fa324),_0x47a044[_0x498aa8(0x34f)][_0x498aa8(0x2e0)](_0x1fa324);}),this[_0x192207(0x34a)][_0x192207(0x269)](_0xb24e28,{'interactionId':_0x38f5fa['id'],'replyId':_0x357039['id'],'indexes':_0x331d70[_0x192207(0x218)]()}),this[_0x192207(0x1de)](_0x357039);}[_0x5445bf(0x2f5)](_0x23738b){const _0x747454=_0x5445bf,{reply:_0x288e35}=this[_0x747454(0x31d)](_0x23738b[_0x747454(0x258)]);_0x288e35[_0x747454(0x26a)](_0x23738b[_0x747454(0x2ce)],_0x747454(0x2d8));}[_0x5445bf(0x325)](_0x39afd5,_0x48ce9b){const _0x10712f=_0x5445bf;if(!this[_0x10712f(0x300)])return;const {reply:_0x58e9c9}=this[_0x10712f(0x31d)](_0x39afd5),_0x552edb=_0x58e9c9[_0x10712f(0x2b8)]({'showDiff':this[_0x10712f(0x29f)]});let _0x4a999b,_0x2b7a68;if(void 0x0!==_0x48ce9b?(_0x2b7a68=_0x552edb[_0x10712f(0x2e8)](_0x33520c=>_0x33520c[_0x10712f(0x2f4)]==_0x48ce9b),_0x4a999b=_0x2b7a68?.[_0x10712f(0x2f4)]):(_0x2b7a68=_0x552edb[0x0],_0x4a999b=_0x2b7a68[_0x10712f(0x2f4)]),this[_0x10712f(0x25f)]?.[_0x10712f(0x258)]==_0x39afd5&&this[_0x10712f(0x25f)]?.[_0x10712f(0x2ce)]==_0x4a999b)return;const _0x23a9b9=this[_0x10712f(0x1ec)](_0x39afd5,_0x58e9c9,_0x2b7a68);if(!_0x23a9b9)return void this[_0x10712f(0x300)][_0x10712f(0x343)]();this[_0x10712f(0x25f)]={'replyId':_0x39afd5,'partIndex':_0x4a999b},this[_0x10712f(0x297)](_0x23a9b9,!0x0);const _0x36328c=this[_0x10712f(0x2d0)](_0x39afd5,_0x4a999b,_0x10712f(0x305));this[_0x10712f(0x300)][_0x10712f(0x321)]({'part':_0x2b7a68,'renderingStrategy':_0x10712f(0x322)}),this[_0x10712f(0x300)][_0x10712f(0x1e9)]({'index':_0x4a999b,'title':_0x130df6(this[_0x10712f(0x33f)][_0x10712f(0x28b)],_0x10712f(0x1e0),(_0x4a999b+0x1)[_0x10712f(0x1f4)]()),'showRotator':null!==_0x36328c,'ranges':[_0x23a9b9],'areActionsDisabled':_0x58e9c9[_0x10712f(0x2ee)]}),this[_0x10712f(0x300)][_0x10712f(0x260)](_0x10712f(0x22b)),this[_0x10712f(0x2d5)][_0x10712f(0x1f1)](_0x39afd5,_0x4a999b),this[_0x10712f(0x2d5)][_0x10712f(0x264)]({'id':_0x39afd5,'index':_0x4a999b,'isActive':!0x0});}[_0x5445bf(0x2d0)](_0x5dff48,_0x469bd2,_0x3948ff){const _0x318563=_0x5445bf,{reply:_0x324131}=this[_0x318563(0x31d)](_0x5dff48),_0x59db41=_0x324131[_0x318563(0x2b8)]({'showDiff':this[_0x318563(0x29f)]});if(0x1==_0x59db41[_0x318563(0x353)])return null;const _0x9dd389=_0x59db41[_0x318563(0x1e6)](_0x1728ce=>_0x1728ce[_0x318563(0x2f4)]==_0x469bd2),_0x1d7e85=_0x318563(0x305)==_0x3948ff?0x1:-0x1;let _0x58e3a2=_0x59db41['at']((_0x9dd389+_0x1d7e85)%_0x59db41[_0x318563(0x353)])[_0x318563(0x2f4)],_0x286fb9=_0x59db41[_0x58e3a2];for(;!this[_0x318563(0x1ec)](_0x5dff48,_0x324131,_0x286fb9);){if(_0x58e3a2=_0x59db41['at']((_0x58e3a2+_0x1d7e85)%_0x59db41[_0x318563(0x353)])[_0x318563(0x2f4)],_0x58e3a2===_0x9dd389)return null;_0x286fb9=_0x59db41[_0x58e3a2];}return _0x58e3a2;}[_0x5445bf(0x1ec)](_0x2489e2,_0x35fa81,_0x1d1a0f){const _0x475fbf=_0x5445bf,_0x3b769b=_0x35fa81[_0x475fbf(0x25b)];if(!_0x1d1a0f[_0x475fbf(0x28a)])return null;const _0x1e76d6=_0x3b769b[_0x475fbf(0x2e8)](_0x3a0de7=>_0x3a0de7[_0x475fbf(0x2f4)]==_0x1d1a0f[_0x475fbf(0x2f4)]);if(_0x475fbf(0x22b)!==_0x1e76d6?.[_0x475fbf(0x233)])return null;const _0x3004de=this[_0x475fbf(0x23d)](_0x2489e2,_0x1d1a0f[_0x475fbf(0x2f4)]);if(!_0x3004de)return null;const {range:_0x35f72a,currentIndex:_0x2c818c}=_0x3004de;return _0x475fbf(0x2d4)==_0x35f72a[_0x475fbf(0x338)][_0x475fbf(0x301)]?(_0x35fa81[_0x475fbf(0x26a)](_0x2c818c,_0x475fbf(0x35d)),null):_0x3004de[_0x475fbf(0x30d)];}[_0x5445bf(0x23d)](_0x4886d6,_0x4b9c8c){const _0x3544f7=_0x5445bf,_0x14cd2e=_0x1cd8a8(this[_0x3544f7(0x33f)]),{reply:_0x936479,interaction:_0x40ffc4}=this[_0x3544f7(0x31d)](_0x4886d6),_0x31e661=_0x936479[_0x3544f7(0x25b)][_0x3544f7(0x2fb)](_0x11d8b4=>_0x3544f7(0x22b)==_0x11d8b4[_0x3544f7(0x233)]),_0x37aa35=_0x31e661[_0x3544f7(0x26f)](_0x26dfaf=>_0x936479[_0x3544f7(0x25b)][_0x3544f7(0x2b9)](_0x26dfaf));void 0x0===_0x4b9c8c&&(_0x4b9c8c=_0x37aa35[0x0]);const _0x73b7ad=_0x37aa35[_0x3544f7(0x2b9)](_0x4b9c8c);if(-0x1==_0x73b7ad)return null;const _0x1650d2=_0x31e661[_0x73b7ad],_0x67dead=new _0x1d4d3c([]),_0x36b646=new _0x1d4d3c([]);for(const _0x2ac54c of _0x1650d2[_0x3544f7(0x356)])if(_0x3544f7(0x2a8)!=_0x2ac54c[_0x3544f7(0x31a)]&&_0x36b646[_0x3544f7(0x2c5)][_0x3544f7(0x206)](_0x2ac54c[_0x3544f7(0x340)][_0x3544f7(0x31f)](!0x0)),_0x3544f7(0x20e)!=_0x2ac54c[_0x3544f7(0x31a)]){const _0x483479=_0x11fefc(_0x449ad4=>_0x4280bc(_0x449ad4,_0x3544f7(0x296))==_0x2ac54c['id'],_0x936479[_0x3544f7(0x2be)],!0x0);_0x67dead[_0x3544f7(0x2c5)][_0x3544f7(0x206)](_0x483479[_0x3544f7(0x31f)](!0x0));}if(0x0==_0x67dead[_0x3544f7(0x2c5)][_0x3544f7(0x353)]){if(_0x1650d2[_0x3544f7(0x356)][0x0][_0x3544f7(0x214)]){const _0x1fb2e4=_0x183569(_0x3544f7(0x296),_0x1650d2[_0x3544f7(0x356)][0x0][_0x3544f7(0x214)],_0x936479[_0x3544f7(0x2be)]);_0x67dead[_0x3544f7(0x2c5)][_0x3544f7(0x28e)](_0x1fb2e4[_0x3544f7(0x31f)](!0x0)),_0x36b646[_0x3544f7(0x2c5)][_0x3544f7(0x28e)](_0x1fb2e4[_0x3544f7(0x31f)](!0x0)),_0x1fb2e4[_0x3544f7(0x21e)]&&(_0x67dead[_0x3544f7(0x2c5)][_0x3544f7(0x206)](_0x1fb2e4[_0x3544f7(0x21e)][_0x3544f7(0x31f)](!0x0)),_0x36b646[_0x3544f7(0x2c5)][_0x3544f7(0x206)](_0x1fb2e4[_0x3544f7(0x21e)][_0x3544f7(0x31f)](!0x0)));}else{const _0x4a818b=_0x936479[_0x3544f7(0x2be)][_0x3544f7(0x2c5)][0x0];if(!_0x4a818b)return null;_0x67dead[_0x3544f7(0x2c5)][_0x3544f7(0x206)](_0x4a818b[_0x3544f7(0x31f)](!0x0)),_0x36b646[_0x3544f7(0x2c5)][_0x3544f7(0x206)](_0x4a818b[_0x3544f7(0x31f)](!0x0));}}const _0x3c7bb5=_0x40ffc4[_0x3544f7(0x354)](),_0x26c5de=_0x14cd2e[_0x3544f7(0x2fe)][_0x3544f7(0x22a)](_0x3c7bb5[_0x3544f7(0x2ac)]),_0x52b672=_0x2b61cd(_0x67dead),_0x400b65=_0x14cd2e[_0x3544f7(0x2fe)][_0x3544f7(0x22a)](_0x52b672),_0xdf2cb8=_0x14cd2e[_0x3544f7(0x2fe)][_0x3544f7(0x22a)](_0x52b672),_0x22b1c3=_0x14cd2e[_0x3544f7(0x34f)][_0x3544f7(0x240)](_0x400b65,0x0),_0x22ac21=_0x2b61cd(_0x36b646),_0x301d02={'anchor':_0x22b1c3,'markDeletions':!0x1},_0x59995f=_0x14cd2e[_0x3544f7(0x1ee)][_0x3544f7(0x2c4)](_0x2dafad)[_0x3544f7(0x303)](_0x52b672,_0x22ac21,_0x301d02)[_0x3544f7(0x265)]();if(!_0x59995f[_0x3544f7(0x353)])return null;_0x14cd2e[_0x3544f7(0x34f)][_0x3544f7(0x2e3)](_0x4e9119=>{const _0x378f73=_0x3544f7;for(const _0x57771a of _0x59995f)if(_0x378f73(0x202)==_0x57771a[_0x378f73(0x31a)]){const _0x57a3c4=_0x57771a[_0x378f73(0x1f0)],_0x445997=_0x57771a[_0x378f73(0x304)],_0x58f936=new _0x21ef70(_0x57a3c4,_0x445997);_0x4e9119[_0x378f73(0x2ec)][_0x378f73(0x203)](_0x58f936),_0x14cd2e[_0x378f73(0x34f)][_0x378f73(0x2e0)](_0x58f936);}else _0x378f73(0x289)!==_0x57771a[_0x378f73(0x31a)]&&(_0x57771a[_0x378f73(0x248)]=null,_0x57771a[_0x378f73(0x291)]=!0x1,_0x4e9119[_0x378f73(0x2ec)][_0x378f73(0x203)](_0x57771a),_0x14cd2e[_0x378f73(0x34f)][_0x378f73(0x2e0)](_0x57771a));});const _0x4c130b=_0x591691(_0x14cd2e,_0x59995f,_0x400b65);_0x4341ca(_0x14cd2e[_0x3544f7(0x34f)],_0x4c130b);const _0x5db813=_0x4c130b[_0x3544f7(0x2a1)]()[_0x3544f7(0x212)][_0x3544f7(0x280)][_0x3544f7(0x218)](),_0x36ebd3=_0x4c130b[_0x3544f7(0x2a1)]()[_0x3544f7(0x27f)][_0x3544f7(0x280)][_0x3544f7(0x218)](),_0x11aa64=[];let _0x26ed0e=_0x400b65,_0x44fbfa=_0xdf2cb8;for(let _0x225939=0x0;_0x225939<_0x36ebd3[_0x3544f7(0x353)];_0x225939++){const _0x50b2e0=_0x26ed0e[_0x3544f7(0x1eb)]-_0x36ebd3[_0x225939];_0x11aa64[_0x225939]=_0x44fbfa[_0x3544f7(0x1eb)]-_0x50b2e0,_0x26ed0e=_0x26ed0e[_0x3544f7(0x2eb)](_0x36ebd3[_0x225939]),_0x44fbfa=_0x44fbfa[_0x3544f7(0x2eb)](_0x11aa64[_0x225939]);}const _0x34c615=_0x14cd2e[_0x3544f7(0x34f)][_0x3544f7(0x30c)](_0x14cd2e[_0x3544f7(0x34f)][_0x3544f7(0x2a9)](_0xdf2cb8,_0x5db813),_0x14cd2e[_0x3544f7(0x34f)][_0x3544f7(0x2a9)](_0xdf2cb8,_0x11aa64)),_0x1aaae9=_0xdf2cb8[_0x3544f7(0x2a7)](0x0)[_0x3544f7(0x1e2)](_0x4e7f6b),_0x1ff5fa=Array[_0x3544f7(0x230)](_0x26c5de[_0x3544f7(0x2b6)]())[_0x3544f7(0x2e8)](_0x1283de=>_0x1283de[_0x3544f7(0x1e2)](_0x4e7f6b)==_0x1aaae9)[_0x3544f7(0x2e9)](),_0x572f92=_0x34c615[_0x3544f7(0x212)][_0x3544f7(0x280)][_0x3544f7(0x218)](),_0x56003e=_0x34c615[_0x3544f7(0x27f)][_0x3544f7(0x280)][_0x3544f7(0x218)]();_0x572f92[0x0]=_0x1ff5fa[0x0]+_0x572f92[0x0],_0x56003e[0x0]=_0x1ff5fa[0x0]+_0x56003e[0x0];let _0x1a39d3=_0x14cd2e[_0x3544f7(0x34f)][_0x3544f7(0x30c)](_0x14cd2e[_0x3544f7(0x34f)][_0x3544f7(0x2a9)](_0x14cd2e[_0x3544f7(0x34f)][_0x3544f7(0x2b3)][_0x3544f7(0x2b7)](),_0x572f92),_0x14cd2e[_0x3544f7(0x34f)][_0x3544f7(0x2a9)](_0x14cd2e[_0x3544f7(0x34f)][_0x3544f7(0x2b3)][_0x3544f7(0x2b7)](),_0x56003e));const _0x571d74=_0x14cd2e[_0x3544f7(0x34f)][_0x3544f7(0x2b3)][_0x3544f7(0x306)][_0x3544f7(0x265)](_0x3c7bb5[_0x3544f7(0x32b)]);for(const _0x103298 of _0x571d74)_0x1a39d3=_0x7d7dfd[_0x3544f7(0x2b4)](_0x1a39d3[_0x3544f7(0x2ea)](_0x103298));return{'range':_0x1a39d3,'currentIndex':_0x4b9c8c};}[_0x5445bf(0x29b)](_0x43ab24){const _0x2f91b9=_0x5445bf;if(!_0x43ab24[_0x2f91b9(0x1ee)][_0x2f91b9(0x253)](_0x2f91b9(0x312)))return;const _0x4f9ca2=_0x43ab24[_0x2f91b9(0x290)][_0x2f91b9(0x2c4)](_0x2f91b9(0x266)),_0x4ae406=_0x43ab24[_0x2f91b9(0x290)][_0x2f91b9(0x2c4)](_0x2f91b9(0x22f));this[_0x2f91b9(0x20b)](_0x4f9ca2,_0x2f91b9(0x20c),(_0x32daf9,_0x7cec32,_0x2c0139)=>{const _0x371371=_0x2f91b9,_0x5724c1=this[_0x371371(0x34a)][_0x371371(0x2c4)](_0x7cec32);if(!_0x5724c1)return;const _0x2e3ef3=this[_0x371371(0x2f6)][_0x371371(0x326)](_0x5724c1[_0x371371(0x2a6)])[_0x371371(0x216)](_0x5724c1[_0x371371(0x258)]);_0x5724c1[_0x371371(0x2cb)][_0x371371(0x316)](_0x8e461d=>_0x2e3ef3[_0x371371(0x26a)](_0x8e461d,_0x371371(0x22b))),this[_0x371371(0x34a)][_0x371371(0x31b)](_0x7cec32),this[_0x371371(0x34a)][_0x371371(0x269)](_0x2c0139,_0x5724c1);}),this[_0x2f91b9(0x20b)](_0x4ae406,_0x2f91b9(0x20c),(_0x3a912c,_0x44c9ee,_0x27cec3)=>{const _0x20e71d=_0x2f91b9,_0x2fe3fa=this[_0x20e71d(0x34a)][_0x20e71d(0x2c4)](_0x44c9ee);if(!_0x2fe3fa)return;const _0x4d5441=this[_0x20e71d(0x2f6)][_0x20e71d(0x326)](_0x2fe3fa[_0x20e71d(0x2a6)])[_0x20e71d(0x216)](_0x2fe3fa[_0x20e71d(0x258)]);_0x2fe3fa[_0x20e71d(0x2cb)][_0x20e71d(0x316)](_0x105cec=>_0x4d5441[_0x20e71d(0x26a)](_0x105cec,_0x20e71d(0x308))),this[_0x20e71d(0x34a)][_0x20e71d(0x31b)](_0x44c9ee),this[_0x20e71d(0x34a)][_0x20e71d(0x269)](_0x27cec3,_0x2fe3fa);});}async[_0x5445bf(0x33e)](_0x5b7db5){const _0x623681=_0x5445bf;this[_0x623681(0x33f)][_0x623681(0x1ee)][_0x623681(0x253)](_0x623681(0x327))&&this[_0x623681(0x33f)][_0x623681(0x1ee)][_0x623681(0x2c4)](_0x623681(0x327))[_0x623681(0x343)](),(this[_0x623681(0x33f)][_0x623681(0x1ee)][_0x623681(0x2c4)](_0x3608de)[_0x623681(0x28c)][_0x623681(0x238)](_0x623681(0x234)),this[_0x623681(0x2d5)][_0x623681(0x2d1)](_0x623681(0x322)),this[_0x623681(0x2d5)][_0x623681(0x25a)](!0x0),await this[_0x623681(0x320)]());try{await this[_0x623681(0x268)][_0x623681(0x33a)](_0x5b7db5)[_0x623681(0x2e6)](),await this[_0x623681(0x1fb)](_0x5b7db5),this[_0x623681(0x344)]('\x20'),await this[_0x623681(0x2f6)][_0x623681(0x1dd)](_0x5b7db5,this[_0x623681(0x273)][_0x623681(0x2ba)]),this[_0x623681(0x2f6)][_0x623681(0x209)]()&&this[_0x623681(0x20d)]();}catch(_0x39343c){this[_0x623681(0x2d5)][_0x623681(0x2af)]({'errorMessage':_0x130df6(this[_0x623681(0x33f)][_0x623681(0x28b)],_0x623681(0x2ff)),'id':_0x5b7db5}),this[_0x623681(0x2de)](new _0x37642f(_0x623681(0x2d2),this,{'error':_0x39343c}));}finally{this[_0x623681(0x2d5)][_0x623681(0x285)](),this[_0x623681(0x2d5)][_0x623681(0x2d1)](_0x623681(0x1fa)),this[_0x623681(0x2d5)][_0x623681(0x25a)](!0x1);}}async[_0x5445bf(0x246)](){const _0x5e2803=_0x5445bf,_0x2c3fdf=this[_0x5e2803(0x268)][_0x5e2803(0x23c)](this[_0x5e2803(0x30b)](),{'limit':0x1,'sortBy':_0x5e2803(0x334)});try{const _0x23d801=await _0x2c3fdf[_0x5e2803(0x32d)]();return _0x23d801[_0x5e2803(0x353)]?_0x23d801[0x0]['id']:_0x5e2803(0x20e);}catch(_0x2f8b87){return this[_0x5e2803(0x2d5)][_0x5e2803(0x2af)]({'errorMessage':_0x130df6(this[_0x5e2803(0x33f)][_0x5e2803(0x28b)],_0x5e2803(0x2ff)),'id':_0xafb963()}),this[_0x5e2803(0x2de)](new _0x37642f(_0x5e2803(0x288),this,{'error':_0x2f8b87})),this[_0x5e2803(0x2d5)][_0x5e2803(0x25a)](!0x1),this[_0x5e2803(0x2d5)][_0x5e2803(0x21d)](),null;}}[_0x5445bf(0x2c7)](_0x38d607){const _0x14bb86=_0x5445bf;this[_0x14bb86(0x2f6)]['id']===_0x38d607&&this[_0x14bb86(0x1fb)]();}[_0x5445bf(0x20d)](){const _0x1b13e7=_0x5445bf;this[_0x1b13e7(0x2f6)]?.[_0x1b13e7(0x2e1)](_0x130df6(this[_0x1b13e7(0x33f)][_0x1b13e7(0x28b)],_0x1b13e7(0x35f)));}async[_0x5445bf(0x2b0)](){const _0x42c6ba=_0x5445bf,_0x1f14d8=this[_0x42c6ba(0x273)][_0x42c6ba(0x1e1)]();this[_0x42c6ba(0x2f6)]?.[_0x42c6ba(0x228)](_0x1f14d8),this[_0x42c6ba(0x20d)]();}[_0x5445bf(0x2c3)](){const _0x33f41e=_0x5445bf;this[_0x33f41e(0x2f6)]?.[_0x33f41e(0x2e7)]();}[_0x5445bf(0x2da)](){const _0x49ba28=_0x5445bf;this[_0x49ba28(0x2d5)][_0x49ba28(0x2da)]();}async[_0x5445bf(0x2b1)](){const _0x1cf49f=_0x5445bf;await this[_0x1cf49f(0x1fb)]();}async[_0x5445bf(0x276)]({message:_0x4b7182,attributes:_0x2c1132}){const _0x34f5b2=_0x5445bf;await this[_0x34f5b2(0x2a0)]({'userMessage':_0x4b7182,'attributes':_0x2c1132});}[_0x5445bf(0x30b)](){const _0x2d3fb0=_0x5445bf,_0x3a2904=this[_0x2d3fb0(0x33f)][_0x2d3fb0(0x2c6)][_0x2d3fb0(0x2c4)](_0x2d3fb0(0x2f0));if(!_0x3a2904)throw new _0x37642f(_0x2d3fb0(0x259),this);return _0x3a2904;}async[_0x5445bf(0x1fb)](_0x274eb8){const _0x48060b=_0x5445bf;try{this[_0x48060b(0x2d5)][_0x48060b(0x1d9)](),await this[_0x48060b(0x207)](_0x274eb8);}catch(_0xb08eda){this[_0x48060b(0x2d5)][_0x48060b(0x2af)]({'errorMessage':_0x130df6(this[_0x48060b(0x33f)][_0x48060b(0x28b)],_0x48060b(0x345)),'id':_0x274eb8||_0xafb963()}),console[_0x48060b(0x283)](_0xb08eda),this[_0x48060b(0x2f6)]=void 0x0,this[_0x48060b(0x2d5)][_0x48060b(0x21d)]();}}async[_0x5445bf(0x207)](_0x32852c){const _0x52ff67=_0x5445bf;let _0x802c71;this[_0x52ff67(0x33f)][_0x52ff67(0x1ee)][_0x52ff67(0x253)](_0x52ff67(0x327))&&this[_0x52ff67(0x33f)][_0x52ff67(0x1ee)][_0x52ff67(0x2c4)](_0x52ff67(0x327))[_0x52ff67(0x343)](),_0x32852c||!this[_0x52ff67(0x2f6)]?_0x802c71=this[_0x52ff67(0x33f)][_0x52ff67(0x2c6)][_0x52ff67(0x2c4)](_0x52ff67(0x2c9)):this[_0x52ff67(0x2d5)][_0x52ff67(0x208)]&&(_0x802c71=this[_0x52ff67(0x2f6)][_0x52ff67(0x267)]['id']),await this[_0x52ff67(0x320)]();const _0x150435=this[_0x52ff67(0x30b)](),_0x460c18=_0x32852c||_0xafb963();this[_0x52ff67(0x2f6)]=new _0x5eeb0c({'connector':this[_0x52ff67(0x268)],'chatModels':this[_0x52ff67(0x358)],'selectedModelId':_0x802c71,'conversationId':_0x460c18,'group':_0x150435,'getEditor':()=>_0x1cd8a8(this[_0x52ff67(0x33f)]),'isFromHistory':!!_0x32852c}),this[_0x52ff67(0x2f6)][_0x52ff67(0x26b)](_0x52ff67(0x211),_0x52ff67(0x1ef))['to'](this),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x2cf),(_0x1c0576,_0x4f1f2b)=>{const _0x2ba663=_0x52ff67;this[_0x2ba663(0x2d5)][_0x2ba663(0x33b)](_0x4f1f2b),this[_0x2ba663(0x2d5)][_0x2ba663(0x2f1)](),this[_0x2ba663(0x2d5)][_0x2ba663(0x1f6)](),this[_0x2ba663(0x2d5)][_0x2ba663(0x2ca)](),_0x32852c||(this[_0x2ba663(0x2d5)][_0x2ba663(0x210)](),this[_0x2ba663(0x20d)]());}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x24e),(_0x48d576,_0x2c50df)=>{const _0x3284ca=_0x52ff67;this[_0x3284ca(0x2d5)][_0x3284ca(0x309)](_0x2c50df[_0x3284ca(0x22c)]);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x295),(_0x16455d,_0x3567e4)=>{const _0x15e33f=_0x52ff67;this[_0x15e33f(0x2d5)][_0x15e33f(0x336)](_0x3567e4);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x31e),()=>{const _0x25ade6=_0x52ff67,_0x58cbc7=this[_0x25ade6(0x2d5)][_0x25ade6(0x2d9)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x25ade6(0x2d5)][_0x25ade6(0x2bb)](_0x58cbc7);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x25e),()=>{const _0x4c9eb3=_0x52ff67,_0x4f717d=this[_0x4c9eb3(0x2d5)][_0x4c9eb3(0x2d9)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x4c9eb3(0x2d5)][_0x4c9eb3(0x2bb)](_0x4f717d);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x357),(_0x24d8d6,_0x223ea9)=>{const _0x5ba58a=_0x52ff67;this[_0x5ba58a(0x2d5)][_0x5ba58a(0x2b5)](_0x223ea9,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x351),(_0x47b948,_0x20f066)=>{const _0x30fa33=_0x52ff67;this[_0x30fa33(0x2d5)][_0x30fa33(0x2b5)](_0x20f066,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x1ef),()=>{const _0x4e874e=_0x52ff67;this[_0x4e874e(0x2d5)][_0x4e874e(0x252)]();}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x287),async()=>{const _0x176cde=_0x52ff67;await this[_0x176cde(0x2d5)][_0x176cde(0x2f2)]();}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x2dd),(_0x35e3bc,_0x2dc0e8)=>{const _0x44841e=_0x52ff67;this[_0x44841e(0x2d5)][_0x44841e(0x24f)](_0x2dc0e8['id']);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x213),(_0x40055b,_0x1593bd,_0x1ce365)=>{const _0x481b05=_0x52ff67;this[_0x481b05(0x344)](_0x1593bd,_0x1ce365);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x2bf),(_0x3694bb,_0x57d008)=>{const _0x450b8c=_0x52ff67;_0x450b8c(0x28d)===_0x57d008[_0x450b8c(0x31a)]?this[_0x450b8c(0x2d5)][_0x450b8c(0x34c)](_0x57d008):this[_0x450b8c(0x2d5)][_0x450b8c(0x299)](_0x57d008);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x2a5),async(_0xb1f475,_0x3ae628)=>{const _0x5618ce=_0x52ff67;await this[_0x5618ce(0x217)]({'reply':_0x3ae628});}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x2e2),(_0x2692b9,{reply:_0x3bb131,index:_0x359d28,state:_0x5bfee9})=>{const _0x4f0bab=_0x52ff67;this[_0x4f0bab(0x2d5)][_0x4f0bab(0x1dc)]({'id':_0x3bb131['id'],'index':_0x359d28,'state':_0x5bfee9}),this[_0x4f0bab(0x25f)]?.[_0x4f0bab(0x258)][_0x4f0bab(0x263)](_0x3bb131['id'])&&this[_0x4f0bab(0x25f)]?.[_0x4f0bab(0x2ce)]==_0x359d28&&this[_0x4f0bab(0x300)]?.[_0x4f0bab(0x260)](_0x5bfee9);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x2fc),(_0xd54f8a,_0x3517ed)=>{const _0x47b122=_0x52ff67;if(this[_0x47b122(0x2d5)][_0x47b122(0x29d)](_0x3517ed[_0x47b122(0x275)],_0x3517ed[_0x47b122(0x200)]),_0x47b122(0x22d)===_0x3517ed[_0x47b122(0x275)][_0x47b122(0x31a)]){const _0x293909=[..._0x1cd8a8(this[_0x47b122(0x33f)])[_0x47b122(0x34f)][_0x47b122(0x2b3)][_0x47b122(0x22d)][_0x47b122(0x330)]()];this[_0x47b122(0x273)][_0x47b122(0x1f8)](_0x293909,_0x47b122(0x27d)+this[_0x47b122(0x2f6)]?.['id']);}}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x323),(_0x55c86b,_0x20ffc1)=>{const _0x125f40=_0x52ff67;this[_0x125f40(0x2d5)][_0x125f40(0x27a)](_0x20ffc1[_0x125f40(0x220)]),_0x125f40(0x2bc)==_0x20ffc1[_0x125f40(0x220)]&&this[_0x125f40(0x2c3)](),_0x125f40(0x22d)===_0x20ffc1[_0x125f40(0x31a)]&&this[_0x125f40(0x273)][_0x125f40(0x278)](_0x125f40(0x27d)+this[_0x125f40(0x2f6)]?.['id']);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x1e3),(_0x22583a,_0x4c7ff)=>{const _0x3435e1=_0x52ff67;this[_0x3435e1(0x2d5)][_0x3435e1(0x34e)](_0x4c7ff[_0x3435e1(0x275)][_0x3435e1(0x220)],_0x4c7ff[_0x3435e1(0x200)]);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x335),(_0xcf9b66,_0x12f119)=>{const _0x25ffe9=_0x52ff67;this[_0x25ffe9(0x2d5)][_0x25ffe9(0x243)](_0x12f119[_0x25ffe9(0x1ff)]);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x1d6),(_0x5dd0ce,_0x3f9a2d)=>{const _0x4e6054=_0x52ff67;this[_0x4e6054(0x2d5)][_0x4e6054(0x286)](_0x3f9a2d[_0x4e6054(0x205)]);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x2dc),(_0x23c67a,_0xddabe6)=>{const _0x68fba7=_0x52ff67;this[_0x68fba7(0x2d5)][_0x68fba7(0x328)](_0xddabe6[_0x68fba7(0x332)],_0xddabe6[_0x68fba7(0x1da)],_0xddabe6[_0x68fba7(0x256)],_0xddabe6[_0x68fba7(0x310)]);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x333),(_0x194f1b,_0xacdb15)=>{const _0x1d82aa=_0x52ff67;this[_0x1d82aa(0x2d5)][_0x1d82aa(0x33c)](_0xacdb15[_0x1d82aa(0x332)],_0xacdb15[_0x1d82aa(0x24a)],_0xacdb15[_0x1d82aa(0x29a)]);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x30e),(_0x595c4a,_0xfb731e)=>{const _0x25d49e=_0x52ff67;this[_0x25d49e(0x2d5)][_0x25d49e(0x350)](_0xfb731e);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x341),async(_0x37fa8d,_0x404b62)=>{const _0x452b71=_0x52ff67,_0x2fdf07=(await this[_0x452b71(0x358)][_0x452b71(0x247)]())[_0x452b71(0x2e8)](_0xa2e5e=>_0xa2e5e['id']===_0x404b62[_0x452b71(0x267)]?.['id'])||null;this[_0x452b71(0x2d5)][_0x452b71(0x2df)](_0x2fdf07,_0x404b62[_0x452b71(0x355)]);}),this[_0x52ff67(0x2f6)]['on'](_0x52ff67(0x283),(_0x139538,{error:_0x39c011,interactionId:_0x2c0600,fileName:_0x5c4aea,url:_0x29b41d,sourceId:_0x410d69,sourceLabel:_0x51d190})=>{const _0x3bdf1d=_0x52ff67,_0xaee724=_0x2c0600?_0x2c0600+':'+_0xafb963():_0xafb963();_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x311))?this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x342)]({'staticMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x2f9)),'id':_0xaee724}):_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x288))||_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x2fa))?(this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x345)),'id':_0xaee724}),this[_0x3bdf1d(0x2de)](_0x39c011)):_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x1f9))?this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x21c),_0x5c4aea),'id':_0xaee724}):_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x225))?this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x2db),_0x29b41d),'id':_0xaee724}):_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x34b))?this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x2cc)),'id':_0xaee724}):_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x331))?this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x35e)),'id':_0xaee724}):_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x315))?(_0x410d69&&this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x318)](_0x410d69),this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x314),_0x51d190||_0x3bdf1d(0x1da)),'id':_0xaee724}),this[_0x3bdf1d(0x2de)](_0x39c011)):_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x349))?(this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x244)),'id':_0xaee724}),this[_0x3bdf1d(0x2de)](_0x39c011)):_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x2e5))?(this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x23a)),'id':_0xaee724}),this[_0x3bdf1d(0x2de)](_0x39c011)):_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x1fe))?(this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x20a)),'id':_0xaee724}),this[_0x3bdf1d(0x2de)](_0x39c011)):_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x302))?(this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x24b)),'id':_0xaee724}),this[_0x3bdf1d(0x2de)](_0x39c011)):_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x281))?(this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x2aa)),'id':_0xaee724}),this[_0x3bdf1d(0x2de)](_0x39c011)):_0x39c011[_0x3bdf1d(0x2ed)][_0x3bdf1d(0x329)](_0x3bdf1d(0x2c2))?(this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x227)),'id':_0xaee724}),this[_0x3bdf1d(0x2de)](_0x39c011)):(this[_0x3bdf1d(0x2d5)][_0x3bdf1d(0x2af)]({'errorMessage':_0x130df6(this[_0x3bdf1d(0x33f)][_0x3bdf1d(0x28b)],_0x3bdf1d(0x293)),'id':_0xaee724}),this[_0x3bdf1d(0x2de)](_0x39c011));}),await this[_0x52ff67(0x2f6)][_0x52ff67(0x270)](this[_0x52ff67(0x33f)][_0x52ff67(0x2c6)][_0x52ff67(0x2c4)](_0x52ff67(0x307))),_0x32852c||await this[_0x52ff67(0x2f6)][_0x52ff67(0x212)]();}async[_0x5445bf(0x2a0)]({userMessage:_0x5988f8,attributes:_0x3cbaef}){const _0x5ad005=_0x5445bf;if(!this[_0x5ad005(0x2f6)])throw new _0x37642f(_0x5ad005(0x257));if(this[_0x5ad005(0x2f6)][_0x5ad005(0x2ae)]()){const _0x368720=await this[_0x5ad005(0x273)][_0x5ad005(0x232)]();await this[_0x5ad005(0x2f6)][_0x5ad005(0x1fd)](_0x368720);}this[_0x5ad005(0x2f6)]['id']&&this[_0x5ad005(0x2f6)][_0x5ad005(0x250)]&&await this[_0x5ad005(0x2f6)][_0x5ad005(0x2c8)]({'userMessage':_0x5988f8,'attributes':_0x3cbaef});}[_0x5445bf(0x30f)](){const _0x5ada8b=_0x5445bf;console[_0x5ada8b(0x32a)](_0x5ada8b(0x32f));}[_0x5445bf(0x235)](_0xbbcbe){const _0x6bdb51=_0x5445bf;this[_0x6bdb51(0x2d5)][_0x6bdb51(0x201)](_0xbbcbe);}[_0x5445bf(0x2de)](_0x3b3c09){const _0x57c951=_0x5445bf;_0x32f4ac(_0x3b3c09[_0x57c951(0x2ed)]);}[_0x5445bf(0x2bd)](_0x3c6be9){const _0x32ebb5=_0x5445bf;this[_0x32ebb5(0x2f6)]?.[_0x32ebb5(0x1d8)](_0x3c6be9);}[_0x5445bf(0x2a2)](){const _0x49913e=_0x5445bf;this[_0x49913e(0x2f6)]?.[_0x49913e(0x348)]();}[_0x5445bf(0x339)](){const _0x29bfaf=_0x5445bf;this[_0x29bfaf(0x2f6)]?.[_0x29bfaf(0x32e)]();}[_0x5445bf(0x31d)](_0x5e32d5){const _0x51f207=_0x5445bf,[_0x5dc2fa,_0x174bfd]=_0x5e32d5[_0x51f207(0x224)](':'),_0x1dd281=this[_0x51f207(0x2f6)][_0x51f207(0x326)](_0x5dc2fa),_0x37bf47=_0x1dd281[_0x51f207(0x216)](_0x174bfd);return{'interaction':_0x1dd281,'reply':_0x37bf47};}[_0x5445bf(0x297)](_0x418ff7,_0xba7568=!0x1){const _0x134fe7=_0x5445bf,_0x1fc5df=_0x1cd8a8(this[_0x134fe7(0x33f)]),_0x1a2bf4={'target':_0x1fc5df[_0x134fe7(0x1ed)][_0x134fe7(0x28c)][_0x134fe7(0x30a)][_0x134fe7(0x261)](_0x1fc5df[_0x134fe7(0x1ed)][_0x134fe7(0x23f)][_0x134fe7(0x1f3)](_0x418ff7)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0xba7568};_0xba7568&&(_0x1a2bf4[_0x134fe7(0x29e)]=!0x0),_0x2cdfe0(_0x1a2bf4);}[_0x5445bf(0x344)](_0x5e8014,_0x5cfb55=!0x1){const _0xfd4766=_0x5445bf;this[_0xfd4766(0x2d5)][_0xfd4766(0x213)](_0x5e8014||_0x130df6(this[_0xfd4766(0x33f)][_0xfd4766(0x28b)],_0xfd4766(0x231)),_0x5cfb55);}async[_0x5445bf(0x217)]({reply:_0x31488a,renderingStrategy:_0x321bd8}){const _0x1190ba=_0x5445bf,{id:_0x1e4ccf,interactionId:_0x3f7284,isDone:_0x4cc20e,type:_0x33b7ba,parsedContent:_0xaee533}=_0x31488a,_0x4996e1=_0x3f7284+':'+_0x1e4ccf;if(_0x1190ba(0x21a)===_0x33b7ba){const _0x5f0f29=_0x31488a[_0x1190ba(0x2b8)]({'showDiff':this[_0x1190ba(0x2d5)][_0x1190ba(0x245)]});await this[_0x1190ba(0x2d5)][_0x1190ba(0x254)]({'id':_0x4996e1,'parts':_0x5f0f29,'renderingStrategy':_0x321bd8,'isDone':_0x4cc20e});}else _0x1190ba(0x28d)===_0x33b7ba&&await this[_0x1190ba(0x2d5)][_0x1190ba(0x2c0)]({'id':_0x4996e1,'parsedContent':_0xaee533,'renderingStrategy':_0x321bd8,'isDone':_0x4cc20e});_0x4cc20e&&_0x31488a[_0x1190ba(0x35a)][_0x1190ba(0x353)]>0x0&&this[_0x1190ba(0x2d5)][_0x1190ba(0x2ef)](_0x4996e1,_0x31488a[_0x1190ba(0x35a)]);}async[_0x5445bf(0x320)](){const _0x5c17a9=_0x5445bf,_0x57a9f6=this[_0x5c17a9(0x2f6)]?.[_0x5c17a9(0x219)];_0x57a9f6&&(_0x57a9f6[_0x5c17a9(0x2e4)](),this[_0x5c17a9(0x2d5)][_0x5c17a9(0x1fc)](_0x57a9f6));}async[_0x5445bf(0x1ea)](){const _0xb648e5=_0x5445bf,_0x4b70d4=this[_0xb648e5(0x2f6)]?.[_0xb648e5(0x219)];if(_0x4b70d4){for await(const _0x3c2e03 of _0x4b70d4[_0xb648e5(0x21b)])await this[_0xb648e5(0x217)]({'reply':_0x3c2e03,'renderingStrategy':_0xb648e5(0x322)});}}[_0x5445bf(0x1de)](_0x459059){const _0x5d0f8c=_0x5445bf,_0x123361={'positiveCount':_0x459059[_0x5d0f8c(0x25b)][_0x5d0f8c(0x2fb)](_0x11a6e1=>_0x5d0f8c(0x308)===_0x11a6e1[_0x5d0f8c(0x233)])[_0x5d0f8c(0x353)],'totalCount':_0x459059[_0x5d0f8c(0x25b)][_0x5d0f8c(0x353)],'modificationId':_0x459059['id']},_0x58f5d3=this[_0x5d0f8c(0x2f6)][_0x5d0f8c(0x326)](_0x459059[_0x5d0f8c(0x2a6)])[_0x5d0f8c(0x298)];_0x58f5d3&&this[_0x5d0f8c(0x268)][_0x5d0f8c(0x271)](this[_0x5d0f8c(0x2f6)]['id'],_0x58f5d3,_0x123361);}[_0x5445bf(0x35b)](_0x15e102){const _0x252c05=_0x5445bf;let _0x1e41a7=null,_0x352990=null;this['on'](_0x252c05(0x211),(_0x5c2eaf,_0x5b4627,_0x55cc76)=>{const _0x55fb83=_0x252c05;_0x55cc76['id']!==_0x1e41a7&&(_0x1e41a7=_0x55cc76['id'],_0x352990=this[_0x55fb83(0x352)](_0x55cc76)),_0x15e102(_0x5b4627,_0x352990);});}[_0x5445bf(0x352)](_0xe1385e){const _0x18df21=_0x5445bf,_0x51b94a=this[_0x18df21(0x2d5)],_0x40b1b6=()=>{const _0x18a0f1=_0x18df21;_0xe1385e[_0x18a0f1(0x26d)](),_0xe1385e[_0x18a0f1(0x27b)](),_0x51b94a[_0x18a0f1(0x347)]();},_0x4a9911=()=>{const _0x51c142=_0x18df21;_0xe1385e[_0x51c142(0x359)]&&(_0xe1385e[_0x51c142(0x359)][_0x51c142(0x1f2)](),_0xe1385e[_0x51c142(0x359)]=void 0x0);};return{'insertTextReply':(_0x54ec78,_0x1036b5)=>{const _0x182aa5=_0x18df21;_0x4a9911(),_0x40b1b6();const _0x58b1a0=_0xe1385e[_0x182aa5(0x359)]=_0xe1385e[_0x182aa5(0x33d)]({'type':_0x182aa5(0x28d),'interactionId':_0xe1385e['id'],'content':_0x54ec78,'id':_0x1036b5||_0xafb963()});return _0x4a9911(),_0x58b1a0;},'insertCustomElement':async(_0x489810,_0x566778)=>(_0x4a9911(),_0x40b1b6(),_0x51b94a[_0x18df21(0x239)](_0x489810,_0x566778||_0xafb963())),'setLoadingMessage':_0x5149c6=>{const _0x22cd4d=_0x18df21;_0x51b94a[_0x22cd4d(0x2bb)](_0x5149c6);},'clearLoadingMessage':()=>{const _0x166166=_0x18df21;_0x51b94a[_0x166166(0x347)]();}};}}