@ckeditor/ckeditor5-ai 47.2.0-alpha.4 → 47.2.0-alpha.6

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 (289) 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/aiballoondisclaimerview.js +1 -1
  175. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  176. package/src/aiballoon/ui/aiballoonview.js +1 -1
  177. package/src/aichat/aichat.js +1 -1
  178. package/src/aichat/aichatcontroller.js +1 -1
  179. package/src/aichat/aichatui.js +1 -1
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/model/aichatmodels.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/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/aichat/utils/scrollmanager.js +1 -1
  212. package/src/aichathistory/aichathistory.js +1 -1
  213. package/src/aichathistory/aichathistorycontroller.js +1 -1
  214. package/src/aichathistory/aichathistoryui.js +1 -1
  215. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  216. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  217. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  218. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  221. package/src/aicore/aiconnector.js +1 -1
  222. package/src/aicore/aiediting.js +1 -1
  223. package/src/aicore/model/aicapabilities.js +1 -1
  224. package/src/aicore/model/aicontext.js +1 -1
  225. package/src/aicore/model/aiinteraction.js +1 -1
  226. package/src/aicore/model/aimodels.js +1 -1
  227. package/src/aicore/model/aireply.js +1 -1
  228. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  229. package/src/aicore/pipeline/airesponseparser.js +2 -2
  230. package/src/aicore/ui/aidisclaimerview.js +1 -1
  231. package/src/aicore/ui/aiskeleton.js +1 -1
  232. package/src/aicore/ui/aispinner.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  238. package/src/aicore/utils/common-translations.js +1 -1
  239. package/src/aicore/utils/createresizebutton.js +1 -1
  240. package/src/aicore/utils/documentposition.js +1 -1
  241. package/src/aicore/utils/documentrange.js +1 -1
  242. package/src/aicore/utils/eventnames.js +1 -1
  243. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  244. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  245. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  246. package/src/aicore/utils/htmlparser.js +1 -1
  247. package/src/aicore/utils/htmlstreamer.js +1 -1
  248. package/src/aieditorintegration/aieditorintegration.js +1 -1
  249. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  250. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  251. package/src/aiquickactions/aiquickactions.js +1 -1
  252. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  253. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  254. package/src/aiquickactions/aiquickactionsui.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  258. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  259. package/src/aireviewmode/aireviewmode.js +1 -1
  260. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  261. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  262. package/src/aireviewmode/aireviewmodeui.js +1 -1
  263. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  264. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  265. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  269. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  270. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  271. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  272. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  273. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  281. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  282. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  283. package/src/aitabs/aitabs.js +1 -1
  284. package/src/aitabs/aitabsmainview.js +1 -1
  285. package/src/aitabs/tabs/aitabsview.js +1 -1
  286. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  287. package/src/aitabs/tabs/tabpanelview.js +1 -1
  288. package/src/errors.js +1 -1
  289. package/src/index.js +1 -1
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ee751=_0x39c2;(function(_0x2efe26,_0x9a33e7){const _0x54e30d=_0x39c2,_0x2d67f2=_0x2efe26();while(!![]){try{const _0x346ef5=parseInt(_0x54e30d(0x13b))/0x1+-parseInt(_0x54e30d(0xf6))/0x2*(parseInt(_0x54e30d(0x121))/0x3)+-parseInt(_0x54e30d(0x13e))/0x4+-parseInt(_0x54e30d(0x110))/0x5+parseInt(_0x54e30d(0x111))/0x6*(-parseInt(_0x54e30d(0xf8))/0x7)+-parseInt(_0x54e30d(0x12b))/0x8*(parseInt(_0x54e30d(0x10d))/0x9)+parseInt(_0x54e30d(0x114))/0xa;if(_0x346ef5===_0x9a33e7)break;else _0x2d67f2['push'](_0x2d67f2['shift']());}catch(_0x430650){_0x2d67f2['push'](_0x2d67f2['shift']());}}}(_0x2413,0x27110));function _0x39c2(_0x352c13,_0xca47bd){const _0x241354=_0x2413();return _0x39c2=function(_0x39c2d5,_0x17085c){_0x39c2d5=_0x39c2d5-0xe1;let _0x8ba6d=_0x241354[_0x39c2d5];return _0x8ba6d;},_0x39c2(_0x352c13,_0xca47bd);}import{ListItemView as _0x249edb,HighlightedTextView as _0x2ecfc4,ButtonView as _0x1c8378,ListView as _0x596afd,IconView as _0x1a655f,createDropdown as _0x440d9c,InputTextView as _0x5082bb}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x26482b,IconPin as _0x468eef,IconCheck as _0x57e9bc,IconCancel as _0x5c5e8a}from'ckeditor5/src/icons.js';function _0x2413(){const _0x4721c3=['value','_createMenuDropdownView','211722hvsvcW','_createCancelEditButtonView','isMatching','1145880RiZoUl','clear','ck-ai-loader','extendTemplate','AI_CHAT_HISTORY_ACCEPT','setTemplate','tiny','_createSpinnerView','pinned','_commitEditInputValue','ck-ai-chat-history__item-content','AI_CHAT_HISTORY_LOADING_REMOVING','AI_CHAT_HISTORY_PIN_BUTTON','ck-ai-chat-history__item-check-container','listitem','edit:cancel','isVisible','_createAcceptEditButtonView','set','add','removeConversation','actions','AI_CHAT_HISTORY_CANCEL','AI_CHAT_HISTORY_LOADING_RENAMING','ck-ai-chat-history__item-row','showConfirm','13730upOHut','AI_CHAT_HISTORY_REMOVE_CONFIRM','35GLLoHP','updateTitle','addMany','_titleView','highlightText','createCollection','label','ck-ai-chat-history__item-main-content','setConversationPinned','ck-ai-chat-history__item-date','buttonView','AI_CHAT_HISTORY_LOADING_UNPINNING','AI_CHAT_HISTORY_LOADING_PINNING','focus','isEdit','isOn','locale','_createEditInputView','ck-confirm-view-cancel','_createPinButtonView','updateLoadingState','9kkOCwd','match','_createCheckView','1029125KbTxcY','289290VvMmuN','ck-ai-loader__text','string','9540020BklwWl','element','bindTemplate','loadingState','selectConversation','ck-hidden','fire','bind','execute','ck-ai-chat-history__item','change:isEdit','ck-ai-chat-history__item-actions','children','63MtZogn','text','Enter','then','span','AI_CHAT_HISTORY_EDIT_NAME','panelPosition','ck-ai-chat-history__item-check','click','mainContent','1025384ZGknGX','key','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','ck-ai-chat-history__item--edit','items','ck-ai-chat-history__item--active','div','LOADING_LABELS','panelView','ck-confirm-view-submit','editConversationTitle','ck-ai-chat-history__item-title','withText','AI_CHAT_HISTORY_REMOVE'];_0x2413=function(){return _0x4721c3;};return _0x2413();}import{LateFocusDropdownButtonView as _0x2e248c,ConfirmMixin as _0x39a86b}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x25c8e1}from'es-toolkit/compat';import{AISpinnerView as _0xaa6bb1}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x544254}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
- _0x39a86b(_0x249edb){['id'];static [_0x1ee751(0x132)]={'remove':_0x1ee751(0xe7),'rename':_0x1ee751(0xf3),'pin':_0x1ee751(0x104),'unpin':_0x1ee751(0x103)};[_0x1ee751(0xf1)];[_0x1ee751(0x12a)];[_0x1ee751(0xfb)];constructor(_0x105a89,_0x137ca1){const _0x3a60f6=_0x1ee751;super(_0x105a89);const _0x4e3170=this[_0x3a60f6(0x116)];this[_0x3a60f6(0xee)](_0x3a60f6(0x106),!0x1),this[_0x3a60f6(0xee)](_0x3a60f6(0xec),!0x0),this[_0x3a60f6(0xee)](_0x3a60f6(0xe4),!!_0x137ca1[_0x3a60f6(0xe4)]),this[_0x3a60f6(0xee)](_0x3a60f6(0x117),null),this['id']=_0x137ca1['id'];const {title:_0x549b0e,createdAt:_0x597a32,active:_0x443794=!0x1}=_0x137ca1;this[_0x3a60f6(0xfb)]=new _0x2ecfc4(),this[_0x3a60f6(0xfb)][_0x3a60f6(0x122)]=_0x549b0e,this[_0x3a60f6(0xfb)][_0x3a60f6(0x141)]({'attributes':{'class':[_0x3a60f6(0x136)]}});const _0x2fb941=this[_0x3a60f6(0x10f)](),_0x3b0f0d=this[_0x3a60f6(0x10b)](_0x105a89),_0x534ec5=this[_0x3a60f6(0x13a)](),_0xd2d4d9=this[_0x3a60f6(0x109)](_0x105a89,_0x549b0e),_0x30bde5=this[_0x3a60f6(0xed)](_0x105a89,_0xd2d4d9),_0x3d79ee=this[_0x3a60f6(0x13c)](_0x105a89,_0xd2d4d9);this[_0x3a60f6(0xf1)]=this[_0x3a60f6(0xfd)](),this[_0x3a60f6(0x12a)]=this[_0x3a60f6(0xfd)](),this[_0x3a60f6(0x12a)][_0x3a60f6(0xef)](this[_0x3a60f6(0xfb)]),this[_0x3a60f6(0xf1)][_0x3a60f6(0xef)](_0x3b0f0d),this[_0x3a60f6(0xf1)][_0x3a60f6(0xef)](_0x534ec5),this['on'](_0x3a60f6(0x11e),(_0x3468cb,_0x4b394f,_0x48b9f9)=>{const _0x3ac689=_0x3a60f6;this[_0x3ac689(0xf1)][_0x3ac689(0x13f)](),this[_0x3ac689(0x12a)][_0x3ac689(0x13f)](),_0x48b9f9?(this[_0x3ac689(0xf1)][_0x3ac689(0xef)](_0x30bde5),this[_0x3ac689(0xf1)][_0x3ac689(0xef)](_0x3d79ee),this[_0x3ac689(0x12a)][_0x3ac689(0xef)](_0xd2d4d9),_0xd2d4d9[_0x3ac689(0x115)][_0x3ac689(0x105)]()):(this[_0x3ac689(0xf1)][_0x3ac689(0xef)](_0x3b0f0d),this[_0x3ac689(0xf1)][_0x3ac689(0xef)](_0x534ec5),this[_0x3ac689(0x12a)][_0x3ac689(0xef)](this[_0x3ac689(0xfb)]));}),this[_0x3a60f6(0xe1)]({'tag':'li','attributes':{'class':[_0x3a60f6(0x11d),_0x443794?_0x3a60f6(0x130):'',_0x4e3170['if'](_0x3a60f6(0xec),_0x3a60f6(0x119),_0x4a9d0c=>!_0x4a9d0c),_0x4e3170['if'](_0x3a60f6(0x106),_0x3a60f6(0x12e))],'role':_0x3a60f6(0xea)},'children':[{'tag':_0x3a60f6(0x125),'attributes':{'class':[_0x3a60f6(0xe9)]},'children':[{'tag':_0x3a60f6(0x131),'attributes':{'class':[_0x3a60f6(0x128),_0x4e3170['if'](_0x3a60f6(0x117),_0x3a60f6(0x119),_0x442057=>!!_0x442057)]},'children':_0x443794?[_0x2fb941]:[]},{'tag':_0x3a60f6(0x131),'attributes':{'class':[_0x3a60f6(0x140),_0x4e3170['if'](_0x3a60f6(0x117),_0x3a60f6(0x119),_0x2b2c61=>!_0x2b2c61)]},'children':[this[_0x3a60f6(0xe3)]()]}]},{'tag':_0x3a60f6(0x131),'attributes':{'class':[_0x3a60f6(0xf4)]},'children':[{'tag':_0x3a60f6(0x131),'attributes':{'class':[_0x3a60f6(0xe6)]},'on':{'click':this[_0x3a60f6(0x116)]['to'](_0x3a60f6(0x129))},'children':[{'tag':_0x3a60f6(0x131),'attributes':{'class':[_0x3a60f6(0xff)]},'children':[{'tag':_0x3a60f6(0x131),'attributes':{'class':[_0x3a60f6(0x136),_0x4e3170['if'](_0x3a60f6(0x117),_0x3a60f6(0x119),_0x188af2=>!!_0x188af2)]},'children':this[_0x3a60f6(0x12a)]},{'tag':_0x3a60f6(0x131),'attributes':{'class':[_0x3a60f6(0x112),_0x4e3170['if'](_0x3a60f6(0x117),_0x3a60f6(0x119),_0x17925f=>!_0x17925f)]},'children':[{'text':_0x4e3170['to'](_0x3a60f6(0x117),_0x21fb19=>_0x21fb19?_0x544254(this[_0x3a60f6(0x108)],AIChatHistoryListItemView[_0x3a60f6(0x132)][_0x21fb19]):'')}]}]},{'tag':_0x3a60f6(0x125),'attributes':{'class':[_0x3a60f6(0x101)]},'children':[_0x597a32]}]},{'tag':_0x3a60f6(0x131),'attributes':{'class':[_0x3a60f6(0x11f)]},'children':this[_0x3a60f6(0xf1)]}]}]}),this['on'](_0x3a60f6(0x129),()=>{const _0x2145ee=_0x3a60f6;this[_0x2145ee(0x106)]||this[_0x2145ee(0x11a)](_0x2145ee(0x118),{'id':this['id']});});}[_0x1ee751(0xf9)](_0x363d99){const _0x36c696=_0x1ee751;this[_0x36c696(0xfb)][_0x36c696(0x122)]=_0x25c8e1(_0x363d99);}[_0x1ee751(0x10c)](_0x3491bd,_0x2e8e1b){const _0x15cb74=_0x1ee751;this[_0x15cb74(0xee)](_0x15cb74(0x117),_0x2e8e1b?_0x3491bd:null);}[_0x1ee751(0x10f)](){const _0x37a5e1=_0x1ee751,_0x9f1a6f=new _0x1a655f();return _0x9f1a6f[_0x37a5e1(0xee)]({'content':_0x57e9bc}),_0x9f1a6f;}[_0x1ee751(0x10b)](_0x9e5f6f){const _0x4bd316=_0x1ee751,_0x21032a=new _0x1c8378(_0x9e5f6f);return _0x21032a[_0x4bd316(0xee)]({'label':_0x544254(_0x9e5f6f,_0x4bd316(0xe8)),'icon':_0x468eef,'withText':!0x1,'tooltip':!0x0}),_0x21032a[_0x4bd316(0x11b)](_0x4bd316(0x107))['to'](this,_0x4bd316(0xe4)),_0x21032a['on'](_0x4bd316(0x11c),()=>{const _0x28cf68=_0x4bd316,_0x125120=!this[_0x28cf68(0xe4)];this[_0x28cf68(0x11a)](_0x28cf68(0x100),{'id':this['id'],'pinned':_0x125120});}),_0x21032a;}[_0x1ee751(0x13a)](){const _0x4359d3=_0x1ee751,_0x1a1728=_0x440d9c(this[_0x4359d3(0x108)],_0x2e248c),_0x269a85=_0x1a1728[_0x4359d3(0x133)][_0x4359d3(0x120)];_0x1a1728[_0x4359d3(0x102)][_0x4359d3(0xee)]({'label':_0x544254(this[_0x4359d3(0x108)],_0x4359d3(0x12d)),'icon':_0x26482b}),_0x1a1728[_0x4359d3(0x127)]='sw';const _0x58dadb=new _0x1c8378(this[_0x4359d3(0x108)]);_0x58dadb[_0x4359d3(0xfe)]=_0x544254(this[_0x4359d3(0x108)],_0x4359d3(0x126)),_0x58dadb[_0x4359d3(0x137)]=!0x0,_0x58dadb['on'](_0x4359d3(0x11c),()=>{const _0x1db1f4=_0x4359d3;this[_0x1db1f4(0x106)]=!0x0;});const _0x5134ad=new _0x1c8378(this[_0x4359d3(0x108)]);_0x5134ad[_0x4359d3(0xfe)]=_0x544254(this[_0x4359d3(0x108)],_0x4359d3(0x138)),_0x5134ad[_0x4359d3(0x137)]=!0x0,_0x5134ad['on'](_0x4359d3(0x11c),()=>{const _0x1b335f=_0x4359d3;this[_0x1b335f(0xf5)](_0x544254(this[_0x1b335f(0x108)],_0x1b335f(0xf7)),this[_0x1b335f(0x115)])[_0x1b335f(0x124)](()=>{const _0x5ae3ec=_0x1b335f;this[_0x5ae3ec(0x11a)](_0x5ae3ec(0xf0),{'id':this['id']});});});const _0x443572=new _0x596afd(this[_0x4359d3(0x108)]),_0x18285f=new _0x249edb(this[_0x4359d3(0x108)]);_0x18285f[_0x4359d3(0x120)][_0x4359d3(0xef)](_0x58dadb);const _0xe40128=new _0x249edb(this[_0x4359d3(0x108)]);return _0xe40128[_0x4359d3(0x120)][_0x4359d3(0xef)](_0x5134ad),_0x443572[_0x4359d3(0x12f)][_0x4359d3(0xfa)]([_0x18285f,_0xe40128]),_0x269a85[_0x4359d3(0xef)](_0x443572),_0x1a1728;}[_0x1ee751(0x109)](_0x3993f9,_0x2f91b5){const _0x5e616f=_0x1ee751,_0x5a8255=new _0x5082bb(_0x3993f9),_0x34f281=_0x5a8255[_0x5e616f(0x116)];return _0x5a8255[_0x5e616f(0x139)]=_0x2f91b5,_0x5a8255[_0x5e616f(0x141)]({'on':{'keydown':_0x34f281['to'](_0x371822=>{const _0x3608bc=_0x5e616f;_0x3608bc(0x123)==_0x371822[_0x3608bc(0x12c)]&&this[_0x3608bc(0xe5)](_0x5a8255);})}}),_0x5a8255;}[_0x1ee751(0xed)](_0x329912,_0x2463f9){const _0x480eb4=_0x1ee751,_0x23b5cd=new _0x1c8378(_0x329912);return _0x23b5cd[_0x480eb4(0xee)]({'icon':_0x57e9bc,'withText':!0x1,'tooltip':_0x544254(_0x329912,_0x480eb4(0x142))}),_0x23b5cd[_0x480eb4(0x141)]({'attributes':{'class':[_0x480eb4(0x134)]}}),_0x23b5cd['on'](_0x480eb4(0x11c),()=>{const _0x59d4f3=_0x480eb4;this[_0x59d4f3(0xe5)](_0x2463f9);}),_0x23b5cd;}[_0x1ee751(0xe5)](_0x14430c){const _0x174d3c=_0x1ee751,_0x44a279=_0x14430c[_0x174d3c(0x115)][_0x174d3c(0x139)]||'';this[_0x174d3c(0xfb)][_0x174d3c(0x122)]=_0x44a279,this[_0x174d3c(0x106)]=!0x1,this[_0x174d3c(0x11a)](_0x174d3c(0x135),{'id':this['id'],'title':_0x44a279});}[_0x1ee751(0x13c)](_0x43c594,_0x3e0295){const _0xae3a60=_0x1ee751,_0xcf3a01=new _0x1c8378(_0x43c594);return _0xcf3a01[_0xae3a60(0xee)]({'icon':_0x5c5e8a,'withText':!0x1,'tooltip':_0x544254(_0x43c594,_0xae3a60(0xf2))}),_0xcf3a01[_0xae3a60(0x141)]({'attributes':{'class':[_0xae3a60(0x10a)]}}),_0xcf3a01['on'](_0xae3a60(0x11c),()=>{const _0x3305eb=_0xae3a60;this[_0x3305eb(0x106)]=!0x1,_0x3e0295[_0x3305eb(0x139)]=this[_0x3305eb(0xfb)][_0x3305eb(0x122)]||'',this[_0x3305eb(0x11a)](_0x3305eb(0xeb));}),_0xcf3a01;}[_0x1ee751(0xe3)](){const _0x38c11f=_0x1ee751,_0x4d2ddd=new _0xaa6bb1(_0x38c11f(0xe2));return _0x4d2ddd[_0x38c11f(0xec)]=!0x0,_0x4d2ddd;}[_0x1ee751(0x13d)](_0x5882ea){const _0xb54bbb=_0x1ee751;return this[_0xb54bbb(0xfb)]&&_0xb54bbb(0x113)==typeof this[_0xb54bbb(0xfb)][_0xb54bbb(0x122)]&&this[_0xb54bbb(0xfb)][_0xb54bbb(0x122)][_0xb54bbb(0x10e)](_0x5882ea)?{'title':!0x0}:null;}[_0x1ee751(0xfc)](_0xf05e2c){const _0x5b84b3=_0x1ee751;this[_0x5b84b3(0xfb)][_0x5b84b3(0xfc)](_0xf05e2c);}}
23
+ const _0x228cd2=_0x3348;(function(_0x4bf83a,_0x5b6bb4){const _0x329734=_0x3348,_0x36dda6=_0x4bf83a();while(!![]){try{const _0x41d3d0=parseInt(_0x329734(0xf7))/0x1+-parseInt(_0x329734(0xc2))/0x2+parseInt(_0x329734(0x109))/0x3+-parseInt(_0x329734(0xd5))/0x4*(-parseInt(_0x329734(0x105))/0x5)+-parseInt(_0x329734(0xfb))/0x6*(parseInt(_0x329734(0xf9))/0x7)+parseInt(_0x329734(0xcf))/0x8*(parseInt(_0x329734(0xbe))/0x9)+-parseInt(_0x329734(0x10a))/0xa;if(_0x41d3d0===_0x5b6bb4)break;else _0x36dda6['push'](_0x36dda6['shift']());}catch(_0x2bc443){_0x36dda6['push'](_0x36dda6['shift']());}}}(_0x5e1c,0x2e4f8));import{ListItemView as _0x194e85,HighlightedTextView as _0xda3256,ButtonView as _0x159628,ListView as _0x42a657,IconView as _0x51fa67,createDropdown as _0x20d389,InputTextView as _0x1ae4c8}from'ckeditor5/src/ui.js';function _0x3348(_0x5df4be,_0x4ce092){const _0x5e1cb9=_0x5e1c();return _0x3348=function(_0x334899,_0x5b7fbc){_0x334899=_0x334899-0xbe;let _0x234f5c=_0x5e1cb9[_0x334899];return _0x234f5c;},_0x3348(_0x5df4be,_0x4ce092);}import{IconThreeHorizontalDots as _0x5ab117,IconPin as _0x2bcffe,IconCheck as _0xc6bf78,IconCancel as _0x1832cb}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x53de8c,ConfirmMixin as _0x2fea3f}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x4d0cd9}from'es-toolkit/compat';function _0x5e1c(){const _0xbf4da7=['24264oGNryy','listitem','withText','ck-ai-chat-history__item--edit','6268AdFTtB','clear','_createSpinnerView','ck-ai-chat-history__item-content','setTemplate','updateLoadingState','match','value','div','buttonView','panelView','AI_CHAT_HISTORY_ACCEPT','_titleView','1016Igmqix','isMatching','ck-ai-chat-history__item--active','label','focus','ck-ai-chat-history__item-main-content','412xTaKpp','_createEditInputView','isOn','_createMenuDropdownView','text','element','ck-confirm-view-cancel','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','actions','ck-hidden','click','LOADING_LABELS','children','panelPosition','AI_CHAT_HISTORY_LOADING_REMOVING','set','createCollection','showConfirm','AI_CHAT_HISTORY_LOADING_UNPINNING','mainContent','ck-ai-chat-history__item-actions','then','ck-ai-chat-history__item','items','AI_CHAT_HISTORY_REMOVE','AI_CHAT_HISTORY_LOADING_PINNING','highlightText','ck-ai-loader__text','locale','_createCancelEditButtonView','selectConversation','pinned','bind','tiny','239399RaNFMB','updateTitle','88291UewGYD','addMany','6lrRmmN','AI_CHAT_HISTORY_PIN_BUTTON','key','AI_CHAT_HISTORY_EDIT_NAME','ck-ai-chat-history__item-check-container','_commitEditInputValue','edit:cancel','editConversationTitle','add','ck-ai-chat-history__item-check','15510LzKwGj','isVisible','removeConversation','isEdit','621369LdgxZt','9029850NgsxtI','_createAcceptEditButtonView','ck-ai-loader','setConversationPinned','bindTemplate','AI_CHAT_HISTORY_CANCEL','ck-ai-chat-history__item-date','ck-ai-chat-history__item-title','loadingState','span','execute','string','_createCheckView','ck-confirm-view-submit','AI_CHAT_HISTORY_REMOVE_CONFIRM','fire','AI_CHAT_HISTORY_LOADING_RENAMING','Enter','change:isEdit','_createPinButtonView','ck-ai-chat-history__item-row','extendTemplate'];_0x5e1c=function(){return _0xbf4da7;};return _0x5e1c();}import{AISpinnerView as _0x1544aa}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x1c10e6}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
+ _0x2fea3f(_0x194e85){['id'];static [_0x228cd2(0xe0)]={'remove':_0x228cd2(0xe3),'rename':_0x228cd2(0x11a),'pin':_0x228cd2(0xee),'unpin':_0x228cd2(0xe7)};[_0x228cd2(0xdd)];[_0x228cd2(0xe8)];[_0x228cd2(0xce)];constructor(_0x2d10df,_0x541cc0){const _0x1c0983=_0x228cd2;super(_0x2d10df);const _0x29463b=this[_0x1c0983(0x10e)];this[_0x1c0983(0xe4)](_0x1c0983(0x108),!0x1),this[_0x1c0983(0xe4)](_0x1c0983(0x106),!0x0),this[_0x1c0983(0xe4)](_0x1c0983(0xf4),!!_0x541cc0[_0x1c0983(0xf4)]),this[_0x1c0983(0xe4)](_0x1c0983(0x112),null),this['id']=_0x541cc0['id'];const {title:_0x1015d2,createdAt:_0x3d2c75,active:_0x3fb883=!0x1}=_0x541cc0;this[_0x1c0983(0xce)]=new _0xda3256(),this[_0x1c0983(0xce)][_0x1c0983(0xd9)]=_0x1015d2,this[_0x1c0983(0xce)][_0x1c0983(0x11f)]({'attributes':{'class':[_0x1c0983(0x111)]}});const _0x81c62b=this[_0x1c0983(0x116)](),_0x3e91f5=this[_0x1c0983(0x11d)](_0x2d10df),_0x3add2e=this[_0x1c0983(0xd8)](),_0x5e9f63=this[_0x1c0983(0xd6)](_0x2d10df,_0x1015d2),_0xf0a981=this[_0x1c0983(0x10b)](_0x2d10df,_0x5e9f63),_0x37a81a=this[_0x1c0983(0xf2)](_0x2d10df,_0x5e9f63);this[_0x1c0983(0xdd)]=this[_0x1c0983(0xe5)](),this[_0x1c0983(0xe8)]=this[_0x1c0983(0xe5)](),this[_0x1c0983(0xe8)][_0x1c0983(0x103)](this[_0x1c0983(0xce)]),this[_0x1c0983(0xdd)][_0x1c0983(0x103)](_0x3e91f5),this[_0x1c0983(0xdd)][_0x1c0983(0x103)](_0x3add2e),this['on'](_0x1c0983(0x11c),(_0x436103,_0x477d21,_0x27a8e1)=>{const _0x4fc989=_0x1c0983;this[_0x4fc989(0xdd)][_0x4fc989(0xc3)](),this[_0x4fc989(0xe8)][_0x4fc989(0xc3)](),_0x27a8e1?(this[_0x4fc989(0xdd)][_0x4fc989(0x103)](_0xf0a981),this[_0x4fc989(0xdd)][_0x4fc989(0x103)](_0x37a81a),this[_0x4fc989(0xe8)][_0x4fc989(0x103)](_0x5e9f63),_0x5e9f63[_0x4fc989(0xda)][_0x4fc989(0xd3)]()):(this[_0x4fc989(0xdd)][_0x4fc989(0x103)](_0x3e91f5),this[_0x4fc989(0xdd)][_0x4fc989(0x103)](_0x3add2e),this[_0x4fc989(0xe8)][_0x4fc989(0x103)](this[_0x4fc989(0xce)]));}),this[_0x1c0983(0xc6)]({'tag':'li','attributes':{'class':[_0x1c0983(0xeb),_0x3fb883?_0x1c0983(0xd1):'',_0x29463b['if'](_0x1c0983(0x106),_0x1c0983(0xde),_0x46488c=>!_0x46488c),_0x29463b['if'](_0x1c0983(0x108),_0x1c0983(0xc1))],'role':_0x1c0983(0xbf)},'children':[{'tag':_0x1c0983(0x113),'attributes':{'class':[_0x1c0983(0xff)]},'children':[{'tag':_0x1c0983(0xca),'attributes':{'class':[_0x1c0983(0x104),_0x29463b['if'](_0x1c0983(0x112),_0x1c0983(0xde),_0x514a2d=>!!_0x514a2d)]},'children':_0x3fb883?[_0x81c62b]:[]},{'tag':_0x1c0983(0xca),'attributes':{'class':[_0x1c0983(0x10c),_0x29463b['if'](_0x1c0983(0x112),_0x1c0983(0xde),_0x2e69a1=>!_0x2e69a1)]},'children':[this[_0x1c0983(0xc4)]()]}]},{'tag':_0x1c0983(0xca),'attributes':{'class':[_0x1c0983(0x11e)]},'children':[{'tag':_0x1c0983(0xca),'attributes':{'class':[_0x1c0983(0xc5)]},'on':{'click':this[_0x1c0983(0x10e)]['to'](_0x1c0983(0xdf))},'children':[{'tag':_0x1c0983(0xca),'attributes':{'class':[_0x1c0983(0xd4)]},'children':[{'tag':_0x1c0983(0xca),'attributes':{'class':[_0x1c0983(0x111),_0x29463b['if'](_0x1c0983(0x112),_0x1c0983(0xde),_0x2d3382=>!!_0x2d3382)]},'children':this[_0x1c0983(0xe8)]},{'tag':_0x1c0983(0xca),'attributes':{'class':[_0x1c0983(0xf0),_0x29463b['if'](_0x1c0983(0x112),_0x1c0983(0xde),_0x10f848=>!_0x10f848)]},'children':[{'text':_0x29463b['to'](_0x1c0983(0x112),_0x324acc=>_0x324acc?_0x1c10e6(this[_0x1c0983(0xf1)],AIChatHistoryListItemView[_0x1c0983(0xe0)][_0x324acc]):'')}]}]},{'tag':_0x1c0983(0x113),'attributes':{'class':[_0x1c0983(0x110)]},'children':[_0x3d2c75]}]},{'tag':_0x1c0983(0xca),'attributes':{'class':[_0x1c0983(0xe9)]},'children':this[_0x1c0983(0xdd)]}]}]}),this['on'](_0x1c0983(0xdf),()=>{const _0x199e1b=_0x1c0983;this[_0x199e1b(0x108)]||this[_0x199e1b(0x119)](_0x199e1b(0xf3),{'id':this['id']});});}[_0x228cd2(0xf8)](_0x3098fb){const _0x3647cd=_0x228cd2;this[_0x3647cd(0xce)][_0x3647cd(0xd9)]=_0x4d0cd9(_0x3098fb);}[_0x228cd2(0xc7)](_0x293560,_0x309fca){const _0x5ca0fc=_0x228cd2;this[_0x5ca0fc(0xe4)](_0x5ca0fc(0x112),_0x309fca?_0x293560:null);}[_0x228cd2(0x116)](){const _0xe54373=_0x228cd2,_0xae2f8=new _0x51fa67();return _0xae2f8[_0xe54373(0xe4)]({'content':_0xc6bf78}),_0xae2f8;}[_0x228cd2(0x11d)](_0x117a6e){const _0x35aa06=_0x228cd2,_0x30ff60=new _0x159628(_0x117a6e);return _0x30ff60[_0x35aa06(0xe4)]({'label':_0x1c10e6(_0x117a6e,_0x35aa06(0xfc)),'icon':_0x2bcffe,'withText':!0x1,'tooltip':!0x0}),_0x30ff60[_0x35aa06(0xf5)](_0x35aa06(0xd7))['to'](this,_0x35aa06(0xf4)),_0x30ff60['on'](_0x35aa06(0x114),()=>{const _0x8c77f4=_0x35aa06,_0x9722de=!this[_0x8c77f4(0xf4)];this[_0x8c77f4(0x119)](_0x8c77f4(0x10d),{'id':this['id'],'pinned':_0x9722de});}),_0x30ff60;}[_0x228cd2(0xd8)](){const _0x1ef9be=_0x228cd2,_0xa56b17=_0x20d389(this[_0x1ef9be(0xf1)],_0x53de8c),_0x401c44=_0xa56b17[_0x1ef9be(0xcc)][_0x1ef9be(0xe1)];_0xa56b17[_0x1ef9be(0xcb)][_0x1ef9be(0xe4)]({'label':_0x1c10e6(this[_0x1ef9be(0xf1)],_0x1ef9be(0xdc)),'icon':_0x5ab117}),_0xa56b17[_0x1ef9be(0xe2)]='sw';const _0x1e318f=new _0x159628(this[_0x1ef9be(0xf1)]);_0x1e318f[_0x1ef9be(0xd2)]=_0x1c10e6(this[_0x1ef9be(0xf1)],_0x1ef9be(0xfe)),_0x1e318f[_0x1ef9be(0xc0)]=!0x0,_0x1e318f['on'](_0x1ef9be(0x114),()=>{const _0x521c91=_0x1ef9be;this[_0x521c91(0x108)]=!0x0;});const _0x2ffacc=new _0x159628(this[_0x1ef9be(0xf1)]);_0x2ffacc[_0x1ef9be(0xd2)]=_0x1c10e6(this[_0x1ef9be(0xf1)],_0x1ef9be(0xed)),_0x2ffacc[_0x1ef9be(0xc0)]=!0x0,_0x2ffacc['on'](_0x1ef9be(0x114),()=>{const _0x4d7584=_0x1ef9be;this[_0x4d7584(0xe6)](_0x1c10e6(this[_0x4d7584(0xf1)],_0x4d7584(0x118)),this[_0x4d7584(0xda)])[_0x4d7584(0xea)](()=>{const _0x4df5f9=_0x4d7584;this[_0x4df5f9(0x119)](_0x4df5f9(0x107),{'id':this['id']});});});const _0xac87b1=new _0x42a657(this[_0x1ef9be(0xf1)]),_0x42773a=new _0x194e85(this[_0x1ef9be(0xf1)]);_0x42773a[_0x1ef9be(0xe1)][_0x1ef9be(0x103)](_0x1e318f);const _0x236e17=new _0x194e85(this[_0x1ef9be(0xf1)]);return _0x236e17[_0x1ef9be(0xe1)][_0x1ef9be(0x103)](_0x2ffacc),_0xac87b1[_0x1ef9be(0xec)][_0x1ef9be(0xfa)]([_0x42773a,_0x236e17]),_0x401c44[_0x1ef9be(0x103)](_0xac87b1),_0xa56b17;}[_0x228cd2(0xd6)](_0x1a17f3,_0x576c29){const _0x27171c=_0x228cd2,_0x2b3f44=new _0x1ae4c8(_0x1a17f3),_0x160fbc=_0x2b3f44[_0x27171c(0x10e)];return _0x2b3f44[_0x27171c(0xc9)]=_0x576c29,_0x2b3f44[_0x27171c(0x11f)]({'on':{'keydown':_0x160fbc['to'](_0x1e0cef=>{const _0x416018=_0x27171c;_0x416018(0x11b)==_0x1e0cef[_0x416018(0xfd)]&&this[_0x416018(0x100)](_0x2b3f44);})}}),_0x2b3f44;}[_0x228cd2(0x10b)](_0x4a2f24,_0x82510){const _0x2a4c2b=_0x228cd2,_0x56048b=new _0x159628(_0x4a2f24);return _0x56048b[_0x2a4c2b(0xe4)]({'icon':_0xc6bf78,'withText':!0x1,'tooltip':_0x1c10e6(_0x4a2f24,_0x2a4c2b(0xcd))}),_0x56048b[_0x2a4c2b(0x11f)]({'attributes':{'class':[_0x2a4c2b(0x117)]}}),_0x56048b['on'](_0x2a4c2b(0x114),()=>{const _0x4fea57=_0x2a4c2b;this[_0x4fea57(0x100)](_0x82510);}),_0x56048b;}[_0x228cd2(0x100)](_0x1c5e99){const _0xe81bf1=_0x228cd2,_0x355dfd=_0x1c5e99[_0xe81bf1(0xda)][_0xe81bf1(0xc9)]||'';this[_0xe81bf1(0xce)][_0xe81bf1(0xd9)]=_0x355dfd,this[_0xe81bf1(0x108)]=!0x1,this[_0xe81bf1(0x119)](_0xe81bf1(0x102),{'id':this['id'],'title':_0x355dfd});}[_0x228cd2(0xf2)](_0x5cff7b,_0xb368b5){const _0x24d6d1=_0x228cd2,_0x1530ca=new _0x159628(_0x5cff7b);return _0x1530ca[_0x24d6d1(0xe4)]({'icon':_0x1832cb,'withText':!0x1,'tooltip':_0x1c10e6(_0x5cff7b,_0x24d6d1(0x10f))}),_0x1530ca[_0x24d6d1(0x11f)]({'attributes':{'class':[_0x24d6d1(0xdb)]}}),_0x1530ca['on'](_0x24d6d1(0x114),()=>{const _0x2c8de8=_0x24d6d1;this[_0x2c8de8(0x108)]=!0x1,_0xb368b5[_0x2c8de8(0xc9)]=this[_0x2c8de8(0xce)][_0x2c8de8(0xd9)]||'',this[_0x2c8de8(0x119)](_0x2c8de8(0x101));}),_0x1530ca;}[_0x228cd2(0xc4)](){const _0x4a4c10=_0x228cd2,_0x4e87e0=new _0x1544aa(_0x4a4c10(0xf6));return _0x4e87e0[_0x4a4c10(0x106)]=!0x0,_0x4e87e0;}[_0x228cd2(0xd0)](_0x1660e2){const _0x5333ac=_0x228cd2;return this[_0x5333ac(0xce)]&&_0x5333ac(0x115)==typeof this[_0x5333ac(0xce)][_0x5333ac(0xd9)]&&this[_0x5333ac(0xce)][_0x5333ac(0xd9)][_0x5333ac(0xc8)](_0x1660e2)?{'title':!0x0}:null;}[_0x228cd2(0xef)](_0x28344d){const _0x275ab7=_0x228cd2;this[_0x275ab7(0xce)][_0x275ab7(0xef)](_0x28344d);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xfa6376=_0x530b;(function(_0x1c0b7a,_0x1d582d){const _0x24d1bc=_0x530b,_0x126aa2=_0x1c0b7a();while(!![]){try{const _0xa216f8=parseInt(_0x24d1bc(0xe0))/0x1+-parseInt(_0x24d1bc(0xec))/0x2*(-parseInt(_0x24d1bc(0xf3))/0x3)+parseInt(_0x24d1bc(0xed))/0x4+-parseInt(_0x24d1bc(0xe3))/0x5*(parseInt(_0x24d1bc(0xef))/0x6)+-parseInt(_0x24d1bc(0xe5))/0x7+-parseInt(_0x24d1bc(0xea))/0x8+-parseInt(_0x24d1bc(0xe7))/0x9*(-parseInt(_0x24d1bc(0xe2))/0xa);if(_0xa216f8===_0x1d582d)break;else _0x126aa2['push'](_0x126aa2['shift']());}catch(_0x3df023){_0x126aa2['push'](_0x126aa2['shift']());}}}(_0x4ea6,0xecac2));function _0x530b(_0x4d23ac,_0x822b97){const _0x4ea6df=_0x4ea6();return _0x530b=function(_0x530b85,_0x5679cc){_0x530b85=_0x530b85-0xdc;let _0x2e042e=_0x4ea6df[_0x530b85];return _0x2e042e;},_0x530b(_0x4d23ac,_0x822b97);}function _0x4ea6(){const _0x1363cd=['isMatching','find','ck-ai-chat-history__section','addMany','ck-ai-chat-history__section-title','bindTemplate','indexOf','items','splice','div','140317kwugyp','itemsViews','10uqgXpz','19005EIVrpX','length','4923240iFKsZO','isVisible','33417387iVRynE','filter','set','14723648xDCGQu','highlightText','1746094UxYhom','2627484BycFHh','removeItem','2952fTuBmu','getItem','_itemsListView','setTemplate','3gmknYq','title','ck-hidden','remove'];_0x4ea6=function(){return _0x1363cd;};return _0x4ea6();}import{ListItemView as _0x45cc37,View as _0x34486f,ListView as _0x20e316}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x45cc37{[_0xfa6376(0xf4)];[_0xfa6376(0xe1)];[_0xfa6376(0xf1)];constructor(_0x1ac849,{title:_0xef8ca2,items:_0x377b38}){const _0x4d09ae=_0xfa6376;super(_0x1ac849);const _0x2dc839=this[_0x4d09ae(0xfc)];this[_0x4d09ae(0xe9)](_0x4d09ae(0xe6),!0x0),this[_0x4d09ae(0xf4)]=_0xef8ca2,this[_0x4d09ae(0xe1)]=_0x377b38;const _0x1b0115=new _0x34486f(_0x1ac849);_0x1b0115[_0x4d09ae(0xf2)]({'tag':_0x4d09ae(0xdf),'attributes':{'class':[_0x4d09ae(0xfb)]},'children':[this[_0x4d09ae(0xf4)]]}),this[_0x4d09ae(0xf1)]=new _0x20e316(_0x1ac849),this[_0x4d09ae(0xf1)][_0x4d09ae(0xdd)][_0x4d09ae(0xfa)](this[_0x4d09ae(0xe1)]),this[_0x4d09ae(0xf2)]({'tag':'li','attributes':{'class':[_0x4d09ae(0xf9),_0x2dc839['if'](_0x4d09ae(0xe6),_0x4d09ae(0xf5),_0x4dc18c=>!_0x4dc18c)]},'children':[_0x1b0115,this[_0x4d09ae(0xf1)]]});}[_0xfa6376(0xe8)](_0x341bae){const _0x127276=_0xfa6376,_0x2b5845=this[_0x127276(0xe1)][_0x127276(0xe4)];let _0x3be91a=0x0;for(const _0x4d632b of this[_0x127276(0xe1)]){if(_0x341bae){const _0x41f999=_0x4d632b[_0x127276(0xf7)](_0x341bae);_0x4d632b[_0x127276(0xe6)]=!!_0x41f999,_0x4d632b[_0x127276(0xeb)](_0x341bae);}else _0x4d632b[_0x127276(0xe6)]=!0x0,_0x4d632b[_0x127276(0xeb)](null);_0x4d632b[_0x127276(0xe6)]&&_0x3be91a++;}return this[_0x127276(0xe6)]=_0x3be91a>0x0,{'resultsCount':_0x3be91a,'totalItemsCount':_0x2b5845};}[_0xfa6376(0xf0)](_0x2fc34d){const _0x11b2e6=_0xfa6376;return this[_0x11b2e6(0xe1)][_0x11b2e6(0xf8)](_0x265d88=>_0x265d88['id']===_0x2fc34d);}[_0xfa6376(0xee)](_0x43a61c){const _0xf746d7=_0xfa6376,_0x44af22=this[_0xf746d7(0xe1)][_0xf746d7(0xdc)](_0x43a61c);-0x1!==_0x44af22&&(this[_0xf746d7(0xe1)][_0xf746d7(0xde)](_0x44af22,0x1),this[_0xf746d7(0xf1)][_0xf746d7(0xdd)][_0xf746d7(0xf6)](_0x43a61c));}}
23
+ function _0x4548(_0x186c95,_0x490ac4){const _0x4eae08=_0x4eae();return _0x4548=function(_0x454853,_0x50e17e){_0x454853=_0x454853-0xf8;let _0x4ddc56=_0x4eae08[_0x454853];return _0x4ddc56;},_0x4548(_0x186c95,_0x490ac4);}function _0x4eae(){const _0xfd630b=['isVisible','setTemplate','title','bindTemplate','24286frQNPr','indexOf','itemsViews','3916250mHMTDO','addMany','set','ck-ai-chat-history__section-title','remove','div','48SwtKuY','2215241rgqHcJ','970gZstXs','ck-ai-chat-history__section','length','items','1913142XpNobv','3468BgFPKt','231976OxAqXe','_itemsListView','splice','find','18ULNiwz','filter','removeItem','ck-hidden','632424MdeEKA','getItem','highlightText','isMatching'];_0x4eae=function(){return _0xfd630b;};return _0x4eae();}const _0x33ab48=_0x4548;(function(_0x1c355d,_0x5d06ea){const _0x4bf97b=_0x4548,_0x18f1ac=_0x1c355d();while(!![]){try{const _0x5c0861=parseInt(_0x4bf97b(0x102))/0x1+parseInt(_0x4bf97b(0x112))/0x2*(parseInt(_0x4bf97b(0xfa))/0x3)+parseInt(_0x4bf97b(0x101))/0x4*(-parseInt(_0x4bf97b(0xfc))/0x5)+-parseInt(_0x4bf97b(0x100))/0x6+-parseInt(_0x4bf97b(0xfb))/0x7+parseInt(_0x4bf97b(0x10a))/0x8*(parseInt(_0x4bf97b(0x106))/0x9)+parseInt(_0x4bf97b(0x115))/0xa;if(_0x5c0861===_0x5d06ea)break;else _0x18f1ac['push'](_0x18f1ac['shift']());}catch(_0x366369){_0x18f1ac['push'](_0x18f1ac['shift']());}}}(_0x4eae,0x2a1bd));import{ListItemView as _0xd7fb0a,View as _0x485141,ListView as _0x3df9fe}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0xd7fb0a{[_0x33ab48(0x110)];[_0x33ab48(0x114)];[_0x33ab48(0x103)];constructor(_0xccff0f,{title:_0x1795c8,items:_0x1de505}){const _0x3c5371=_0x33ab48;super(_0xccff0f);const _0x4fdd17=this[_0x3c5371(0x111)];this[_0x3c5371(0x117)](_0x3c5371(0x10e),!0x0),this[_0x3c5371(0x110)]=_0x1795c8,this[_0x3c5371(0x114)]=_0x1de505;const _0x561a39=new _0x485141(_0xccff0f);_0x561a39[_0x3c5371(0x10f)]({'tag':_0x3c5371(0xf9),'attributes':{'class':[_0x3c5371(0x118)]},'children':[this[_0x3c5371(0x110)]]}),this[_0x3c5371(0x103)]=new _0x3df9fe(_0xccff0f),this[_0x3c5371(0x103)][_0x3c5371(0xff)][_0x3c5371(0x116)](this[_0x3c5371(0x114)]),this[_0x3c5371(0x10f)]({'tag':'li','attributes':{'class':[_0x3c5371(0xfd),_0x4fdd17['if'](_0x3c5371(0x10e),_0x3c5371(0x109),_0x23cc0c=>!_0x23cc0c)]},'children':[_0x561a39,this[_0x3c5371(0x103)]]});}[_0x33ab48(0x107)](_0x463a85){const _0x4c44ce=_0x33ab48,_0x7ce78c=this[_0x4c44ce(0x114)][_0x4c44ce(0xfe)];let _0x508810=0x0;for(const _0x22a5c5 of this[_0x4c44ce(0x114)]){if(_0x463a85){const _0x466563=_0x22a5c5[_0x4c44ce(0x10d)](_0x463a85);_0x22a5c5[_0x4c44ce(0x10e)]=!!_0x466563,_0x22a5c5[_0x4c44ce(0x10c)](_0x463a85);}else _0x22a5c5[_0x4c44ce(0x10e)]=!0x0,_0x22a5c5[_0x4c44ce(0x10c)](null);_0x22a5c5[_0x4c44ce(0x10e)]&&_0x508810++;}return this[_0x4c44ce(0x10e)]=_0x508810>0x0,{'resultsCount':_0x508810,'totalItemsCount':_0x7ce78c};}[_0x33ab48(0x10b)](_0x36dd60){const _0x441e0a=_0x33ab48;return this[_0x441e0a(0x114)][_0x441e0a(0x105)](_0x24f74a=>_0x24f74a['id']===_0x36dd60);}[_0x33ab48(0x108)](_0x37032e){const _0x25fa28=_0x33ab48,_0x5ed89b=this[_0x25fa28(0x114)][_0x25fa28(0x113)](_0x37032e);-0x1!==_0x5ed89b&&(this[_0x25fa28(0x114)][_0x25fa28(0x104)](_0x5ed89b,0x1),this[_0x25fa28(0x103)][_0x25fa28(0xff)][_0x25fa28(0xf8)](_0x37032e));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1368(_0x432c23,_0x2a143d){const _0x3afa37=_0x3afa();return _0x1368=function(_0x1368aa,_0x107c14){_0x1368aa=_0x1368aa-0x1b6;let _0x21379f=_0x3afa37[_0x1368aa];return _0x21379f;},_0x1368(_0x432c23,_0x2a143d);}const _0x5d60ba=_0x1368;(function(_0x316bb1,_0x3a7c61){const _0x20b708=_0x1368,_0x5700df=_0x316bb1();while(!![]){try{const _0x3d0414=parseInt(_0x20b708(0x1bf))/0x1+parseInt(_0x20b708(0x1be))/0x2+parseInt(_0x20b708(0x1bc))/0x3+-parseInt(_0x20b708(0x1bb))/0x4+-parseInt(_0x20b708(0x1c2))/0x5+-parseInt(_0x20b708(0x1c3))/0x6+-parseInt(_0x20b708(0x1c1))/0x7*(-parseInt(_0x20b708(0x1b6))/0x8);if(_0x3d0414===_0x3a7c61)break;else _0x5700df['push'](_0x5700df['shift']());}catch(_0x4b20bc){_0x5700df['push'](_0x5700df['shift']());}}}(_0x3afa,0x36c5d));import{ListView as _0x27d8a1}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x27d8a1{[_0x5d60ba(0x1c0)];constructor(_0x5d4b28,_0xb08e05){const _0xcc15be=_0x5d60ba;super(_0x5d4b28),this[_0xcc15be(0x1c0)]=_0xb08e05,this[_0xcc15be(0x1bd)][_0xcc15be(0x1b9)](this[_0xcc15be(0x1c0)]),this[_0xcc15be(0x1ba)]({'attributes':{'class':[_0xcc15be(0x1b8)]}});}[_0x5d60ba(0x1b7)](_0x14aee2){const _0x5ceb8d=_0x5d60ba;let _0x2682ea=0x0,_0x54e370=0x0;for(const _0x4ad918 of this[_0x5ceb8d(0x1c0)]){const {resultsCount:_0x5e032e,totalItemsCount:_0x119f19}=_0x4ad918[_0x5ceb8d(0x1b7)](_0x14aee2);_0x2682ea+=_0x5e032e,_0x54e370+=_0x119f19;}return{'resultsCount':_0x2682ea,'totalItemsCount':_0x54e370};}}function _0x3afa(){const _0x313f0b=['240565wPLHTD','sections','1770797cxvONM','2113065rZBMJT','2643906QDRaId','24LfnGoC','filter','ck-ai-chat-history__sections','addMany','extendTemplate','665216oQizBl','743736RnskKM','items','13054klQtIR'];_0x3afa=function(){return _0x313f0b;};return _0x3afa();}
23
+ const _0x3ec6bc=_0x3b29;(function(_0x1b9722,_0x3cf94c){const _0x2a585d=_0x3b29,_0x2887f8=_0x1b9722();while(!![]){try{const _0x88be5b=-parseInt(_0x2a585d(0x12f))/0x1+-parseInt(_0x2a585d(0x120))/0x2+-parseInt(_0x2a585d(0x123))/0x3*(parseInt(_0x2a585d(0x128))/0x4)+parseInt(_0x2a585d(0x125))/0x5*(parseInt(_0x2a585d(0x121))/0x6)+parseInt(_0x2a585d(0x124))/0x7+-parseInt(_0x2a585d(0x12e))/0x8*(parseInt(_0x2a585d(0x129))/0x9)+-parseInt(_0x2a585d(0x127))/0xa*(-parseInt(_0x2a585d(0x12c))/0xb);if(_0x88be5b===_0x3cf94c)break;else _0x2887f8['push'](_0x2887f8['shift']());}catch(_0x46a0be){_0x2887f8['push'](_0x2887f8['shift']());}}}(_0xc14c,0xd4c7c));import{ListView as _0x53e55f}from'ckeditor5/src/ui.js';function _0x3b29(_0x4731c3,_0x3cad0c){const _0xc14cfd=_0xc14c();return _0x3b29=function(_0x3b29fa,_0x540fe3){_0x3b29fa=_0x3b29fa-0x120;let _0x58295f=_0xc14cfd[_0x3b29fa];return _0x58295f;},_0x3b29(_0x4731c3,_0x3cad0c);}function _0xc14c(){const _0x32bed2=['items','8yxCZLb','1633217GPOysO','ck-ai-chat-history__sections','1216516PeNiSO','138WPgVpT','addMany','393NWGuVS','90027xKuKFF','302555ZsBVoR','sections','43280090oqHiUh','51764TDrHkY','8318961VPkPju','filter','extendTemplate','11dqlyzf'];_0xc14c=function(){return _0x32bed2;};return _0xc14c();}export class AIChatHistorySectionListView extends _0x53e55f{[_0x3ec6bc(0x126)];constructor(_0x2075b7,_0x4b152e){const _0x169d0f=_0x3ec6bc;super(_0x2075b7),this[_0x169d0f(0x126)]=_0x4b152e,this[_0x169d0f(0x12d)][_0x169d0f(0x122)](this[_0x169d0f(0x126)]),this[_0x169d0f(0x12b)]({'attributes':{'class':[_0x169d0f(0x130)]}});}[_0x3ec6bc(0x12a)](_0x28a461){const _0x5d538b=_0x3ec6bc;let _0x417f28=0x0,_0x155d11=0x0;for(const _0x312859 of this[_0x5d538b(0x126)]){const {resultsCount:_0x341777,totalItemsCount:_0x3022d7}=_0x312859[_0x5d538b(0x12a)](_0x28a461);_0x417f28+=_0x341777,_0x155d11+=_0x3022d7;}return{'resultsCount':_0x417f28,'totalItemsCount':_0x155d11};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2687f2=_0x2a94;(function(_0x33e177,_0x14472a){const _0x4b5457=_0x2a94,_0x353575=_0x33e177();while(!![]){try{const _0x3cf3ea=parseInt(_0x4b5457(0x181))/0x1+-parseInt(_0x4b5457(0x168))/0x2+-parseInt(_0x4b5457(0x17f))/0x3+parseInt(_0x4b5457(0x17c))/0x4+parseInt(_0x4b5457(0x18c))/0x5*(-parseInt(_0x4b5457(0x1a4))/0x6)+parseInt(_0x4b5457(0x14e))/0x7*(-parseInt(_0x4b5457(0x167))/0x8)+parseInt(_0x4b5457(0x18e))/0x9;if(_0x3cf3ea===_0x14472a)break;else _0x353575['push'](_0x353575['shift']());}catch(_0x2b140d){_0x353575['push'](_0x353575['shift']());}}}(_0x4aea,0x6772e));import{View as _0x36b455,SearchTextView as _0x276fa8,FormHeaderView as _0x2c3915,ButtonView as _0x308622}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x37fd09,IconCancel as _0x4d846a,IconPlus as _0x5d1582}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x36ebce}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x32c73a}from'./aichathistorylistview.js';function _0x2a94(_0x240b27,_0x15b18a){const _0x4aea60=_0x4aea();return _0x2a94=function(_0x2a947a,_0x187f4d){_0x2a947a=_0x2a947a-0x14e;let _0x30edbd=_0x4aea60[_0x2a947a];return _0x30edbd;},_0x2a94(_0x240b27,_0x15b18a);}import{AIChatHistoryListItemView as _0x28b94c}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x17b87c}from'../aichathistoryui.js';import{AISkeletonView as _0x5aa7bc,SKELETON_DEFINITIONS as _0x404e1a}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x3ee0de}from'../../aicore/utils/createresizebutton.js';function _0x4aea(){const _0x4f1c44=['add','push','search','updateHistoryItemsWithCategories','1345772kKfbHZ','isMaximized','isLoading','1517040WlPgRK','change:errorMessage','599936VFsMUh','clear','aiHistory','hasItems','items','render','some','length','setTemplate','extendTemplate','change:hasItems','2020AeOoMi','delegate','6374322NUTGmg','ck-ai-chat__start-conversation','errorMessage','change:isLoading','removeItem','_createSkeletonView','div','AI_CHAT_HISTORY_HEADING','fieldView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','_createErrorView','searchView','value','ck-ai-chat-history__empty','AI_CHAT_HISTORY_EMPTY_MESSAGE','skeletonView','bind','locale','emptyView','execute','indexOf','remove','3324XKveCE','getItem','ck-hidden','element','14BxEMSH','_createEmptyStateView','updateTitle','queryView','openChat','updateItemTitle','fire','sectionsView','errorView','updateLoadingState','ck-ai-chat-error__dismiss-button','ck-ai-chat-history','set','updateItemLoadingState','children','ck-reset_all','_refreshSearch','resizeButton','AI_CHAT_LABEL_NEW_CHAT','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_createListItemViews','ck-ai-chat-history__empty-message','_createSearchView','isEmptyViewVisible','title','852360KMvmJR','556650OgPmFV','isSearchViewVisible','AI_CHAT_HISTORY_SEARCH_LABEL','ltr','splice','bindTemplate','ck-rounded-corners','isVisible','itemsViews','ck-ai-chat-error','ck-ai-header\x20ck-ai-header_history','sections','ck-ai-chat-history__content','_updateViewVisibility','removeHistoryItem','addMany'];_0x4aea=function(){return _0x4f1c44;};return _0x4aea();}import{getTranslation as _0x4fd4d7}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x36b455{[_0x2687f2(0x199)];[_0x2687f2(0x156)];[_0x2687f2(0x19d)];[_0x2687f2(0x1a0)];[_0x2687f2(0x155)];[_0x2687f2(0x15f)];constructor(_0x134f21,_0x139b86){const _0x3bd5b2=_0x2687f2;super(_0x134f21),this[_0x3bd5b2(0x15a)](_0x3bd5b2(0x184),!0x1),this[_0x3bd5b2(0x15a)](_0x3bd5b2(0x17e),!0x0),this[_0x3bd5b2(0x15a)](_0x3bd5b2(0x190),''),this[_0x3bd5b2(0x15a)](_0x3bd5b2(0x17d),!0x1),this[_0x3bd5b2(0x15a)](_0x3bd5b2(0x169),!0x1),this[_0x3bd5b2(0x15a)](_0x3bd5b2(0x165),!0x1);const _0x5de675=new _0x2c3915(_0x134f21,{'label':_0x4fd4d7(_0x134f21,_0x3bd5b2(0x195)),'icon':_0x37fd09,'class':_0x3bd5b2(0x172)});_0x139b86&&(this[_0x3bd5b2(0x15f)]=_0x3ee0de(_0x134f21,this),_0x5de675[_0x3bd5b2(0x15c)][_0x3bd5b2(0x178)](this[_0x3bd5b2(0x15f)])),this[_0x3bd5b2(0x155)]=new _0x36ebce(_0x134f21,[]),this[_0x3bd5b2(0x155)][_0x3bd5b2(0x18d)](..._0x17b87c)['to'](this),this[_0x3bd5b2(0x156)]=this[_0x3bd5b2(0x198)](),this[_0x3bd5b2(0x19d)]=this[_0x3bd5b2(0x193)](),this[_0x3bd5b2(0x1a0)]=this[_0x3bd5b2(0x14f)](),this[_0x3bd5b2(0x199)]=this[_0x3bd5b2(0x164)](),this['on'](_0x3bd5b2(0x191),()=>this[_0x3bd5b2(0x175)]()),this['on'](_0x3bd5b2(0x18b),()=>this[_0x3bd5b2(0x175)]()),this['on'](_0x3bd5b2(0x180),()=>this[_0x3bd5b2(0x175)]()),this[_0x3bd5b2(0x189)]({'tag':_0x3bd5b2(0x194),'attributes':{'class':['ck',_0x3bd5b2(0x15d),_0x3bd5b2(0x159),_0x3bd5b2(0x16e)],'dir':_0x3bd5b2(0x16b)},'children':[_0x5de675,{'tag':_0x3bd5b2(0x194),'attributes':{'class':[_0x3bd5b2(0x174)]},'children':[this[_0x3bd5b2(0x19d)],this[_0x3bd5b2(0x156)],this[_0x3bd5b2(0x1a0)],this[_0x3bd5b2(0x199)]]}]});}[_0x2687f2(0x175)](){const _0x3bed88=_0x2687f2;this[_0x3bed88(0x169)]=!this[_0x3bed88(0x17e)]&&this[_0x3bed88(0x184)]&&!this[_0x3bed88(0x190)],this[_0x3bed88(0x165)]=!this[_0x3bed88(0x17e)]&&!this[_0x3bed88(0x184)]&&!this[_0x3bed88(0x190)];}[_0x2687f2(0x164)](){const _0x2b9984=_0x2687f2,_0x13b526=new _0x276fa8(this[_0x2b9984(0x19f)],{'filteredView':this[_0x2b9984(0x155)],'queryView':{'label':_0x4fd4d7(this[_0x2b9984(0x19f)],_0x2b9984(0x16a))},'infoView':{'text':{'notFound':{'primary':_0x3fe1b2=>_0x4fd4d7(this[_0x2b9984(0x19f)],_0x2b9984(0x161),_0x3fe1b2),'secondary':_0x4fd4d7(this[_0x2b9984(0x19f)],_0x2b9984(0x197))}}}});return _0x13b526['on'](_0x2b9984(0x186),()=>{const _0x3136bf=_0x2b9984;this[_0x3136bf(0x199)][_0x3136bf(0x15c)][_0x3136bf(0x178)](this[_0x3136bf(0x156)],0x1);}),_0x13b526[_0x2b9984(0x18a)]({'attributes':{'class':[this[_0x2b9984(0x16d)]['if'](_0x2b9984(0x169),_0x2b9984(0x1a6),_0x26ad28=>!_0x26ad28)]}}),_0x13b526;}[_0x2687f2(0x193)](){const _0x2477a0=_0x2687f2,_0x3c8b07=new _0x5aa7bc(this[_0x2477a0(0x19f)],_0x404e1a[_0x2477a0(0x183)]);return _0x3c8b07[_0x2477a0(0x18a)]({'attributes':{'class':[this[_0x2477a0(0x16d)]['if'](_0x2477a0(0x17e),_0x2477a0(0x1a6),_0x3b330f=>!_0x3b330f)]}}),_0x3c8b07;}[_0x2687f2(0x198)](){const _0x1d4301=_0x2687f2,_0x54400c=new _0x36b455(this[_0x1d4301(0x19f)]),_0x5ac646=new _0x308622(this[_0x1d4301(0x19f)]);return _0x5ac646[_0x1d4301(0x15a)]({'withText':!0x1,'icon':_0x4d846a,'class':_0x1d4301(0x158)}),_0x5ac646[_0x1d4301(0x19e)](_0x1d4301(0x16f))['to'](this,_0x1d4301(0x184),_0x52318f=>!!_0x52318f),_0x5ac646['on'](_0x1d4301(0x1a1),()=>{const _0x1e22cb=_0x1d4301;this[_0x1e22cb(0x190)]='';}),_0x54400c[_0x1d4301(0x189)]({'tag':_0x1d4301(0x194),'attributes':{'class':['ck',_0x1d4301(0x171),this[_0x1d4301(0x16d)]['if'](_0x1d4301(0x190),_0x1d4301(0x1a6),_0x48862f=>!_0x48862f)]},'children':[{'tag':'p','children':[{'text':this[_0x1d4301(0x16d)]['to'](_0x1d4301(0x190))}]},_0x5ac646]}),_0x54400c;}[_0x2687f2(0x14f)](){const _0x51e9b9=_0x2687f2,_0x5d40ac=new _0x308622(this[_0x51e9b9(0x19f)]);_0x5d40ac[_0x51e9b9(0x15a)]({'label':_0x4fd4d7(this[_0x51e9b9(0x19f)],_0x51e9b9(0x160)),'withText':!0x0,'icon':_0x5d1582,'class':_0x51e9b9(0x18f)}),_0x5d40ac['on'](_0x51e9b9(0x1a1),()=>{const _0x204a92=_0x51e9b9;this[_0x204a92(0x154)](_0x204a92(0x152));});const _0x484336=new _0x36b455(this[_0x51e9b9(0x19f)]);return _0x484336[_0x51e9b9(0x189)]({'tag':_0x51e9b9(0x194),'attributes':{'class':[_0x51e9b9(0x19b),this[_0x51e9b9(0x16d)]['if'](_0x51e9b9(0x165),_0x51e9b9(0x1a6),_0x3efece=>!_0x3efece)]},'children':[{'tag':'p','attributes':{'class':[_0x51e9b9(0x163)]},'children':[_0x4fd4d7(this[_0x51e9b9(0x19f)],_0x51e9b9(0x19c))]},_0x5d40ac]}),_0x484336;}[_0x2687f2(0x162)](_0x9b9370,_0x3316b4){const _0x5ebe8b=_0x2687f2,_0x41e444=[];for(const _0x57fa26 of _0x9b9370){const _0x1fcfc4=new _0x28b94c(_0x3316b4,_0x57fa26);_0x1fcfc4[_0x5ebe8b(0x18d)](..._0x17b87c)['to'](this),_0x41e444[_0x5ebe8b(0x179)](_0x1fcfc4);}return _0x41e444;}[_0x2687f2(0x17b)](_0x3d7f5c){const _0x28b4e0=_0x2687f2,_0x53f874=this[_0x28b4e0(0x19f)]||'en',_0x50f0aa=[];for(const _0x1869ab of _0x3d7f5c){const _0x33a8e4=this[_0x28b4e0(0x162)](_0x1869ab[_0x28b4e0(0x185)],_0x53f874);_0x50f0aa[_0x28b4e0(0x179)](new _0x32c73a(_0x53f874,{'title':_0x1869ab[_0x28b4e0(0x166)],'items':_0x33a8e4}));}this[_0x28b4e0(0x155)][_0x28b4e0(0x173)]=_0x50f0aa,this[_0x28b4e0(0x155)][_0x28b4e0(0x185)][_0x28b4e0(0x182)](),this[_0x28b4e0(0x155)][_0x28b4e0(0x185)][_0x28b4e0(0x177)](_0x50f0aa),this[_0x28b4e0(0x184)]=_0x3d7f5c[_0x28b4e0(0x187)](_0x199f98=>_0x199f98[_0x28b4e0(0x185)][_0x28b4e0(0x188)]>0x0),this[_0x28b4e0(0x15e)]();}[_0x2687f2(0x176)](_0x2b57bb){const _0xb0abbf=_0x2687f2;for(const _0x4d0203 of this[_0xb0abbf(0x155)][_0xb0abbf(0x173)]){const _0x1477c2=_0x4d0203[_0xb0abbf(0x1a5)](_0x2b57bb);if(_0x1477c2){if(_0x4d0203[_0xb0abbf(0x192)](_0x1477c2),0x0===_0x4d0203[_0xb0abbf(0x170)][_0xb0abbf(0x188)]){const _0x2ffbd6=this[_0xb0abbf(0x155)][_0xb0abbf(0x173)][_0xb0abbf(0x1a2)](_0x4d0203);-0x1!==_0x2ffbd6&&(this[_0xb0abbf(0x155)][_0xb0abbf(0x173)][_0xb0abbf(0x16c)](_0x2ffbd6,0x1),this[_0xb0abbf(0x155)][_0xb0abbf(0x185)][_0xb0abbf(0x1a3)](_0x4d0203));}this[_0xb0abbf(0x184)]=this[_0xb0abbf(0x155)][_0xb0abbf(0x173)][_0xb0abbf(0x188)]>0x0,this[_0xb0abbf(0x15e)]();break;}}}[_0x2687f2(0x153)](_0x4becf9,_0x40334c){const _0x1eddc0=_0x2687f2;for(const _0x5b3748 of this[_0x1eddc0(0x155)][_0x1eddc0(0x173)]){const _0x3bea96=_0x5b3748[_0x1eddc0(0x1a5)](_0x4becf9);if(_0x3bea96){_0x3bea96[_0x1eddc0(0x150)](_0x40334c);break;}}}[_0x2687f2(0x15b)](_0x63856a,_0x25c027,_0x34d7f){const _0x177b45=_0x2687f2;for(const _0x22a195 of this[_0x177b45(0x155)][_0x177b45(0x173)]){const _0x84c171=_0x22a195[_0x177b45(0x1a5)](_0x63856a);if(_0x84c171){_0x84c171[_0x177b45(0x157)](_0x25c027,_0x34d7f);break;}}}[_0x2687f2(0x15e)](){const _0x52ac81=_0x2687f2;if(this[_0x52ac81(0x184)]){const _0x3754c1=this[_0x52ac81(0x199)][_0x52ac81(0x151)][_0x52ac81(0x196)]?.[_0x52ac81(0x1a7)]?.[_0x52ac81(0x19a)]||'';this[_0x52ac81(0x199)][_0x52ac81(0x17a)](_0x3754c1);}}}
23
+ const _0x130f5f=_0x3c5c;(function(_0x3e7499,_0x25b82a){const _0x3d521a=_0x3c5c,_0x23ad8d=_0x3e7499();while(!![]){try{const _0x532169=parseInt(_0x3d521a(0x15b))/0x1+-parseInt(_0x3d521a(0x178))/0x2+parseInt(_0x3d521a(0x174))/0x3*(-parseInt(_0x3d521a(0x156))/0x4)+-parseInt(_0x3d521a(0x159))/0x5+-parseInt(_0x3d521a(0x17f))/0x6*(parseInt(_0x3d521a(0x152))/0x7)+parseInt(_0x3d521a(0x151))/0x8+parseInt(_0x3d521a(0x171))/0x9*(parseInt(_0x3d521a(0x154))/0xa);if(_0x532169===_0x25b82a)break;else _0x23ad8d['push'](_0x23ad8d['shift']());}catch(_0x15122c){_0x23ad8d['push'](_0x23ad8d['shift']());}}}(_0x832f,0xae3dd));import{View as _0x292eba,SearchTextView as _0x34a98f,FormHeaderView as _0x116150,ButtonView as _0x4a24ce}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x5cd265,IconCancel as _0x3ae46c,IconPlus as _0x1e76ff}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x427576}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x226648}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0xa79066}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3823a1}from'../aichathistoryui.js';import{AISkeletonView as _0x20045d,SKELETON_DEFINITIONS as _0x103fd3}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x5747d7}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x369c53}from'../../aicore/utils/common-translations.js';function _0x832f(){const _0x23c919=['addMany','981AicYxg','clear','aiHistory','39927JgxFeP','skeletonView','locale','fire','1688870EWYYZN','remove','title','_createListItemViews','bind','element','bindTemplate','258CXuyaH','ck-ai-chat-history','isVisible','AI_CHAT_LABEL_NEW_CHAT','ck-hidden','ltr','ck-ai-chat-error__dismiss-button','change:isLoading','delegate','resizeButton','some','isSearchViewVisible','emptyView','AI_CHAT_HISTORY_SEARCH_LABEL','sections','updateTitle','ck-ai-chat-history__empty','queryView','openChat','set','search','_refreshSearch','_createSkeletonView','push','itemsViews','ck-reset_all','updateItemTitle','fieldView','ck-ai-chat-history__content','execute','_createEmptyStateView','change:hasItems','updateItemLoadingState','ck-ai-chat-error','_createSearchView','setTemplate','_updateViewVisibility','_createErrorView','isLoading','indexOf','div','value','ck-ai-chat__start-conversation','items','hasItems','6761136asUYBP','230104PZvpwA','splice','207050gosHxp','ck-ai-header\x20ck-ai-header_history','88kFNvie','change:errorMessage','updateHistoryItemsWithCategories','5757085slWZhI','length','1313852kpempg','isEmptyViewVisible','errorView','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-ai-chat-history__empty-message','updateLoadingState','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','render','children','getItem','removeItem','errorMessage','isMaximized','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_HEADING','add','searchView','sectionsView','removeHistoryItem','ck-rounded-corners','extendTemplate'];_0x832f=function(){return _0x23c919;};return _0x832f();}function _0x3c5c(_0x37e898,_0x2d589f){const _0x832fff=_0x832f();return _0x3c5c=function(_0x3c5c0a,_0x3118f5){_0x3c5c0a=_0x3c5c0a-0x13b;let _0x5d6322=_0x832fff[_0x3c5c0a];return _0x5d6322;},_0x3c5c(_0x37e898,_0x2d589f);}export class AIChatHistoryView extends _0x292eba{[_0x130f5f(0x16b)];[_0x130f5f(0x15d)];[_0x130f5f(0x175)];[_0x130f5f(0x18b)];[_0x130f5f(0x16c)];[_0x130f5f(0x188)];constructor(_0x58b235,_0xfa269a){const _0x58a158=_0x130f5f;super(_0x58b235),this[_0x58a158(0x192)](_0x58a158(0x150),!0x1),this[_0x58a158(0x192)](_0x58a158(0x14a),!0x0),this[_0x58a158(0x192)](_0x58a158(0x166),''),this[_0x58a158(0x192)](_0x58a158(0x167),!0x1),this[_0x58a158(0x192)](_0x58a158(0x18a),!0x1),this[_0x58a158(0x192)](_0x58a158(0x15c),!0x1);const _0x3e0bbf=new _0x116150(_0x58b235,{'label':_0x369c53(_0x58b235,_0x58a158(0x169)),'icon':_0x5cd265,'class':_0x58a158(0x155)});_0xfa269a&&(this[_0x58a158(0x188)]=_0x5747d7(_0x58b235,this),_0x3e0bbf[_0x58a158(0x163)][_0x58a158(0x16a)](this[_0x58a158(0x188)])),this[_0x58a158(0x16c)]=new _0x427576(_0x58b235,[]),this[_0x58a158(0x16c)][_0x58a158(0x187)](..._0x3823a1)['to'](this),this[_0x58a158(0x15d)]=this[_0x58a158(0x149)](),this[_0x58a158(0x175)]=this[_0x58a158(0x195)](),this[_0x58a158(0x18b)]=this[_0x58a158(0x142)](),this[_0x58a158(0x16b)]=this[_0x58a158(0x146)](),this['on'](_0x58a158(0x186),()=>this[_0x58a158(0x148)]()),this['on'](_0x58a158(0x143),()=>this[_0x58a158(0x148)]()),this['on'](_0x58a158(0x157),()=>this[_0x58a158(0x148)]()),this[_0x58a158(0x147)]({'tag':_0x58a158(0x14c),'attributes':{'class':['ck',_0x58a158(0x13d),_0x58a158(0x180),_0x58a158(0x16e)],'dir':_0x58a158(0x184)},'children':[_0x3e0bbf,{'tag':_0x58a158(0x14c),'attributes':{'class':[_0x58a158(0x140)]},'children':[this[_0x58a158(0x175)],this[_0x58a158(0x15d)],this[_0x58a158(0x18b)],this[_0x58a158(0x16b)]]}]});}[_0x130f5f(0x148)](){const _0x1930e3=_0x130f5f;this[_0x1930e3(0x18a)]=!this[_0x1930e3(0x14a)]&&this[_0x1930e3(0x150)]&&!this[_0x1930e3(0x166)],this[_0x1930e3(0x15c)]=!this[_0x1930e3(0x14a)]&&!this[_0x1930e3(0x150)]&&!this[_0x1930e3(0x166)];}[_0x130f5f(0x146)](){const _0x26c6e0=_0x130f5f,_0x4db855=new _0x34a98f(this[_0x26c6e0(0x176)],{'filteredView':this[_0x26c6e0(0x16c)],'queryView':{'label':_0x369c53(this[_0x26c6e0(0x176)],_0x26c6e0(0x18c))},'infoView':{'text':{'notFound':{'primary':_0x3ee061=>_0x369c53(this[_0x26c6e0(0x176)],_0x26c6e0(0x161),_0x3ee061),'secondary':_0x369c53(this[_0x26c6e0(0x176)],_0x26c6e0(0x168))}}}});return _0x4db855['on'](_0x26c6e0(0x162),()=>{const _0x2e295b=_0x26c6e0;this[_0x2e295b(0x16b)][_0x2e295b(0x163)][_0x2e295b(0x16a)](this[_0x2e295b(0x15d)],0x1);}),_0x4db855[_0x26c6e0(0x16f)]({'attributes':{'class':[this[_0x26c6e0(0x17e)]['if'](_0x26c6e0(0x18a),_0x26c6e0(0x183),_0x551b87=>!_0x551b87)]}}),_0x4db855;}[_0x130f5f(0x195)](){const _0x3c82da=_0x130f5f,_0xfb9bad=new _0x20045d(this[_0x3c82da(0x176)],_0x103fd3[_0x3c82da(0x173)]);return _0xfb9bad[_0x3c82da(0x16f)]({'attributes':{'class':[this[_0x3c82da(0x17e)]['if'](_0x3c82da(0x14a),_0x3c82da(0x183),_0x7cd568=>!_0x7cd568)]}}),_0xfb9bad;}[_0x130f5f(0x149)](){const _0x57a3f6=_0x130f5f,_0xabf114=new _0x292eba(this[_0x57a3f6(0x176)]),_0x164b30=new _0x4a24ce(this[_0x57a3f6(0x176)]);return _0x164b30[_0x57a3f6(0x192)]({'withText':!0x1,'icon':_0x3ae46c,'class':_0x57a3f6(0x185)}),_0x164b30[_0x57a3f6(0x17c)](_0x57a3f6(0x181))['to'](this,_0x57a3f6(0x150),_0x3d9385=>!!_0x3d9385),_0x164b30['on'](_0x57a3f6(0x141),()=>{const _0x2138fd=_0x57a3f6;this[_0x2138fd(0x166)]='';}),_0xabf114[_0x57a3f6(0x147)]({'tag':_0x57a3f6(0x14c),'attributes':{'class':['ck',_0x57a3f6(0x145),this[_0x57a3f6(0x17e)]['if'](_0x57a3f6(0x166),_0x57a3f6(0x183),_0x2ec8ed=>!_0x2ec8ed)]},'children':[{'tag':'p','children':[{'text':this[_0x57a3f6(0x17e)]['to'](_0x57a3f6(0x166))}]},_0x164b30]}),_0xabf114;}[_0x130f5f(0x142)](){const _0x5885d3=_0x130f5f,_0x35461c=new _0x4a24ce(this[_0x5885d3(0x176)]);_0x35461c[_0x5885d3(0x192)]({'label':_0x369c53(this[_0x5885d3(0x176)],_0x5885d3(0x182)),'withText':!0x0,'icon':_0x1e76ff,'class':_0x5885d3(0x14e)}),_0x35461c['on'](_0x5885d3(0x141),()=>{const _0x523f7a=_0x5885d3;this[_0x523f7a(0x177)](_0x523f7a(0x191));});const _0x20ed6a=new _0x292eba(this[_0x5885d3(0x176)]);return _0x20ed6a[_0x5885d3(0x147)]({'tag':_0x5885d3(0x14c),'attributes':{'class':[_0x5885d3(0x18f),this[_0x5885d3(0x17e)]['if'](_0x5885d3(0x15c),_0x5885d3(0x183),_0x3387f1=>!_0x3387f1)]},'children':[{'tag':'p','attributes':{'class':[_0x5885d3(0x15f)]},'children':[_0x369c53(this[_0x5885d3(0x176)],_0x5885d3(0x15e))]},_0x35461c]}),_0x20ed6a;}[_0x130f5f(0x17b)](_0x91b57,_0x1316f7){const _0x4e3505=_0x130f5f,_0x596e14=[];for(const _0x41d098 of _0x91b57){const _0x3688de=new _0xa79066(_0x1316f7,_0x41d098);_0x3688de[_0x4e3505(0x187)](..._0x3823a1)['to'](this),_0x596e14[_0x4e3505(0x13b)](_0x3688de);}return _0x596e14;}[_0x130f5f(0x158)](_0x426600){const _0x3f7995=_0x130f5f,_0x4fa7c9=this[_0x3f7995(0x176)]||'en',_0x3dc6ef=[];for(const _0x4419ae of _0x426600){const _0x83f607=this[_0x3f7995(0x17b)](_0x4419ae[_0x3f7995(0x14f)],_0x4fa7c9);_0x3dc6ef[_0x3f7995(0x13b)](new _0x226648(_0x4fa7c9,{'title':_0x4419ae[_0x3f7995(0x17a)],'items':_0x83f607}));}this[_0x3f7995(0x16c)][_0x3f7995(0x18d)]=_0x3dc6ef,this[_0x3f7995(0x16c)][_0x3f7995(0x14f)][_0x3f7995(0x172)](),this[_0x3f7995(0x16c)][_0x3f7995(0x14f)][_0x3f7995(0x170)](_0x3dc6ef),this[_0x3f7995(0x150)]=_0x426600[_0x3f7995(0x189)](_0x157190=>_0x157190[_0x3f7995(0x14f)][_0x3f7995(0x15a)]>0x0),this[_0x3f7995(0x194)]();}[_0x130f5f(0x16d)](_0x3bde8c){const _0x4acdf9=_0x130f5f;for(const _0x375211 of this[_0x4acdf9(0x16c)][_0x4acdf9(0x18d)]){const _0x49a860=_0x375211[_0x4acdf9(0x164)](_0x3bde8c);if(_0x49a860){if(_0x375211[_0x4acdf9(0x165)](_0x49a860),0x0===_0x375211[_0x4acdf9(0x13c)][_0x4acdf9(0x15a)]){const _0x4ca112=this[_0x4acdf9(0x16c)][_0x4acdf9(0x18d)][_0x4acdf9(0x14b)](_0x375211);-0x1!==_0x4ca112&&(this[_0x4acdf9(0x16c)][_0x4acdf9(0x18d)][_0x4acdf9(0x153)](_0x4ca112,0x1),this[_0x4acdf9(0x16c)][_0x4acdf9(0x14f)][_0x4acdf9(0x179)](_0x375211));}this[_0x4acdf9(0x150)]=this[_0x4acdf9(0x16c)][_0x4acdf9(0x18d)][_0x4acdf9(0x15a)]>0x0,this[_0x4acdf9(0x194)]();break;}}}[_0x130f5f(0x13e)](_0x4a9c57,_0x159d8b){const _0x3b0371=_0x130f5f;for(const _0x58479c of this[_0x3b0371(0x16c)][_0x3b0371(0x18d)]){const _0x2c8e21=_0x58479c[_0x3b0371(0x164)](_0x4a9c57);if(_0x2c8e21){_0x2c8e21[_0x3b0371(0x18e)](_0x159d8b);break;}}}[_0x130f5f(0x144)](_0xcd3843,_0x45af46,_0xc74a3d){const _0x14c1f7=_0x130f5f;for(const _0x14d6a0 of this[_0x14c1f7(0x16c)][_0x14c1f7(0x18d)]){const _0x8715d8=_0x14d6a0[_0x14c1f7(0x164)](_0xcd3843);if(_0x8715d8){_0x8715d8[_0x14c1f7(0x160)](_0x45af46,_0xc74a3d);break;}}}[_0x130f5f(0x194)](){const _0x31867a=_0x130f5f;if(this[_0x31867a(0x150)]){const _0x14fd82=this[_0x31867a(0x16b)][_0x31867a(0x190)][_0x31867a(0x13f)]?.[_0x31867a(0x17d)]?.[_0x31867a(0x14d)]||'';this[_0x31867a(0x16b)][_0x31867a(0x193)](_0x14fd82);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x51e0ed=_0x515e;(function(_0x57ec7f,_0x3b6149){const _0x4068be=_0x515e,_0x41eda3=_0x57ec7f();while(!![]){try{const _0x3ca5cb=-parseInt(_0x4068be(0x1ee))/0x1+parseInt(_0x4068be(0x258))/0x2*(parseInt(_0x4068be(0x213))/0x3)+parseInt(_0x4068be(0x222))/0x4+-parseInt(_0x4068be(0x26f))/0x5+parseInt(_0x4068be(0x23e))/0x6*(-parseInt(_0x4068be(0x1f5))/0x7)+-parseInt(_0x4068be(0x262))/0x8+parseInt(_0x4068be(0x240))/0x9;if(_0x3ca5cb===_0x3b6149)break;else _0x41eda3['push'](_0x41eda3['shift']());}catch(_0x2d2a01){_0x41eda3['push'](_0x41eda3['shift']());}}}(_0x4bb9,0xd154b));import{createParser as _0x9dc336}from'eventsource-parser';function _0x4bb9(){const _0x2862ea=['/reviews/custom/calls/','make-shorter','then','continue','/ratings','file','config','abortController','group','getModels','queryAssistant','requires','push','PATCH','_decoder','MAKE_SHORTER','getReader','/messages/','plugins','_token','AbortError','token','FIX_GRAMMAR','make-tone-casual','AIConnector','upsertAIChatRating','/documents/','statusText','3kpwEXo','ai-request-failed','deleteDocument','define','DELETE','status','/reviews/system/','callCustomReview','feed','callSystemReview','deleteWebResource','ai.serviceUrl','attributes','Bearer\x20','/messages','5454736PqpEcq','Content-Type','executeAction','uploadUrl','init','text','decode','deleteConversation','CloudServices','true','ai-missing-token','/conversations/','fetchDocument','/files/','TRANSLATE','search','append','startConversation','ai-request-aborted','100','_sendApiRequest','upsertAIActionRating','translate','request','stringify','fetchConversationMessages','toString','/conversations?','6eAXxci','uploadFile','32157549UmShLx','/calls/','_apiUrl','body','data','upsertAIReviewRating','/reviews/custom/calls','fetchConversation','/models/1','isPremiumPlugin','fetchConversations','totalCount','executeCustomAction','isOfficialPlugin','upsertCustomAIReviewRating','CONTINUE','improve-writing','limit','IMPROVE_WRITING','/calls','reset','/actions/custom/calls/','name','releaseLock','807816TaLMYL','application/json','modificationId','value','fix-grammar','updateConversation','signal','catch','length','context','11894600oaHEzT','/conversations','MAKE_TONE_CASUAL','PUT','positiveCount','/documents','_handleError','excludeEmpty','GET','make-tone-formal','_getStreamReader','items','https://ai.cke-cs.com/v1','6698140ksOHBL','json','MAKE_LONGER','get','upsertCustomAIActionRating','keys','/web-resources','POST','uploadDocument','/actions/custom/calls','/files','parse','281565DDpaeS','/web-resources/','MAKE_TONE_FORMAL','read','deleteFile','make-longer','/actions/system/','9626512UMNHKm','pluginName'];_0x4bb9=function(){return _0x2862ea;};return _0x4bb9();}import{ContextPlugin as _0x35edf8}from'ckeditor5/src/core.js';import{CKEditorError as _0x349de8}from'ckeditor5/src/utils.js';export var AIActionsNames;function _0x515e(_0x1d9d4b,_0x2e1d22){const _0x4bb981=_0x4bb9();return _0x515e=function(_0x515ebc,_0x4f0358){_0x515ebc=_0x515ebc-0x1e7;let _0x1deab5=_0x4bb981[_0x515ebc];return _0x1deab5;},_0x515e(_0x1d9d4b,_0x2e1d22);}!function(_0x5036d3){const _0x1329cd=_0x515e;_0x5036d3[_0x1329cd(0x24f)]=_0x1329cd(0x1fa),_0x5036d3[_0x1329cd(0x20d)]=_0x1329cd(0x25c),_0x5036d3[_0x1329cd(0x252)]=_0x1329cd(0x250),_0x5036d3[_0x1329cd(0x271)]=_0x1329cd(0x1f3),_0x5036d3[_0x1329cd(0x206)]=_0x1329cd(0x1f8),_0x5036d3[_0x1329cd(0x264)]=_0x1329cd(0x20e),_0x5036d3[_0x1329cd(0x1f0)]=_0x1329cd(0x26b),_0x5036d3[_0x1329cd(0x230)]=_0x1329cd(0x238);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x35edf8{[_0x51e0ed(0x242)];[_0x51e0ed(0x20a)];[_0x51e0ed(0x205)];static get[_0x51e0ed(0x202)](){const _0x2cde27=_0x51e0ed;return[_0x2cde27(0x22a)];}static get[_0x51e0ed(0x1f6)](){const _0x149396=_0x51e0ed;return _0x149396(0x20f);}static get[_0x51e0ed(0x24d)](){return!0x0;}static get[_0x51e0ed(0x249)](){return!0x0;}constructor(_0x283da2){const _0x15c0d3=_0x51e0ed;super(_0x283da2),this[_0x15c0d3(0x261)][_0x15c0d3(0x1fd)][_0x15c0d3(0x216)](_0x15c0d3(0x21e),_0x15c0d3(0x26e)),this[_0x15c0d3(0x242)]=this[_0x15c0d3(0x261)][_0x15c0d3(0x1fd)][_0x15c0d3(0x272)](_0x15c0d3(0x21e)),this[_0x15c0d3(0x20a)]=null,this[_0x15c0d3(0x205)]=new TextDecoder();}[_0x51e0ed(0x226)](){const _0xc32aa0=_0x51e0ed,_0x4950a5=this[_0xc32aa0(0x261)][_0xc32aa0(0x209)][_0xc32aa0(0x272)](_0xc32aa0(0x22a));if(!_0x4950a5[_0xc32aa0(0x20c)])throw new _0x349de8(_0xc32aa0(0x22c),this);this[_0xc32aa0(0x20a)]=_0x4950a5[_0xc32aa0(0x20c)];}[_0x51e0ed(0x233)](_0x4df5a5,_0x4cef01){const _0x2c8c6f=_0x51e0ed,_0x320a0e=this[_0x2c8c6f(0x236)](_0x2c8c6f(0x263),_0x2c8c6f(0x1e9),{'id':_0x4df5a5,'group':_0x4cef01});return{'getConversation':async()=>(await _0x320a0e[_0x2c8c6f(0x239)])[_0x2c8c6f(0x270)](),'abortController':_0x320a0e[_0x2c8c6f(0x1fe)]};}[_0x51e0ed(0x201)]({message:_0x28765d,conversationId:_0x17fa4b,parts:_0x574f00,capabilities:_0x3ea7b2,model:_0x56de3d,quickActionData:_0x5aa6f2}){const _0x4a455e=_0x51e0ed,_0xc96158={..._0x5aa6f2&&{'quickActionData':_0x5aa6f2}},_0x1c566a={'prompt':_0x28765d,'content':_0x574f00,'model':_0x56de3d,..._0x3ea7b2&&{'capabilities':_0x3ea7b2},...Object[_0x4a455e(0x1e7)](_0xc96158)[_0x4a455e(0x260)]>0x0&&{'attributes':_0xc96158}},_0x55dc51=this[_0x4a455e(0x236)](_0x4a455e(0x22d)+_0x17fa4b+_0x4a455e(0x221),_0x4a455e(0x1e9),_0x1c566a);return{'getStream':async()=>{const _0x9b9642=_0x4a455e,_0x46948d=(await _0x55dc51[_0x9b9642(0x239)])[_0x9b9642(0x243)];return this[_0x9b9642(0x26c)](_0x46948d);},'abortController':_0x55dc51[_0x4a455e(0x1fe)]};}[_0x51e0ed(0x24c)]({content:_0xf823dd,message:_0x32cbba,model:_0x5b5a67,outputFormat:_0x297820}){const _0x53b71f=_0x51e0ed,_0x738cf4={'content':[{'type':_0x53b71f(0x227),'content':_0xf823dd}],'prompt':_0x32cbba,'model':_0x5b5a67,'outputFormat':_0x297820},_0x5ee86a=this[_0x53b71f(0x236)](_0x53b71f(0x1eb),_0x53b71f(0x1e9),_0x738cf4);return{'getStream':async()=>{const _0x58d60b=_0x53b71f,_0x289079=(await _0x5ee86a[_0x58d60b(0x239)])[_0x58d60b(0x243)];return this[_0x58d60b(0x26c)](_0x289079);},'abortController':_0x5ee86a[_0x53b71f(0x1fe)]};}[_0x51e0ed(0x224)]({actionName:_0x23d3dc,content:_0x534419,args:_0x532797}){const _0x45ebb3=_0x51e0ed,_0x5a55e2={'content':[{'type':_0x45ebb3(0x227),'content':_0x534419}],'args':_0x532797},_0x245bb2=this[_0x45ebb3(0x236)](_0x45ebb3(0x1f4)+_0x23d3dc+_0x45ebb3(0x253),_0x45ebb3(0x1e9),_0x5a55e2);return{'getStream':async()=>{const _0x536552=_0x45ebb3,_0x58a4d1=(await _0x245bb2[_0x536552(0x239)])[_0x536552(0x243)];return this[_0x536552(0x26c)](_0x58a4d1);},'abortController':_0x245bb2[_0x45ebb3(0x1fe)]};}[_0x51e0ed(0x23f)](_0x347a18,_0x953a3d,_0x3a8aaf){const _0x254bd0=_0x51e0ed,_0x586766=new FormData();_0x586766[_0x254bd0(0x232)](_0x254bd0(0x1fc),_0x953a3d,_0x953a3d[_0x254bd0(0x256)]),_0x3a8aaf&&_0x586766[_0x254bd0(0x232)](_0x254bd0(0x21f),JSON[_0x254bd0(0x23a)](_0x3a8aaf));const _0x508e3f=this[_0x254bd0(0x236)](_0x254bd0(0x22d)+_0x347a18+_0x254bd0(0x1ec),_0x254bd0(0x1e9),_0x586766);return{'getId':async()=>(await _0x508e3f[_0x254bd0(0x239)])[_0x254bd0(0x270)](),'abortController':_0x508e3f[_0x254bd0(0x1fe)]};}[_0x51e0ed(0x22e)](_0x23f324,_0x2f481d){const _0x1abf49=_0x51e0ed,_0x112052=this[_0x1abf49(0x236)](_0x1abf49(0x22d)+_0x23f324+_0x1abf49(0x211)+_0x2f481d,_0x1abf49(0x26a));return{'getDocument':async()=>(await _0x112052[_0x1abf49(0x239)])[_0x1abf49(0x270)](),'abortController':_0x112052[_0x1abf49(0x1fe)]};}[_0x51e0ed(0x1ea)](_0x4390b7,_0x4bc2b0,_0x83ac02){const _0x28ab75=_0x51e0ed,_0x46e4d6={'content':_0x4bc2b0};_0x83ac02&&(_0x46e4d6[_0x28ab75(0x21f)]=_0x83ac02);const _0x39a11f=this[_0x28ab75(0x236)](_0x28ab75(0x22d)+_0x4390b7+_0x28ab75(0x267),_0x28ab75(0x1e9),_0x46e4d6);return{'getId':async()=>(await _0x39a11f[_0x28ab75(0x239)])[_0x28ab75(0x270)](),'abortController':_0x39a11f[_0x28ab75(0x1fe)]};}[_0x51e0ed(0x24a)](_0x56a0d3,_0x1edc93){const _0x5ee1f8=_0x51e0ed,_0x1b7b83=new URLSearchParams();_0x1b7b83[_0x5ee1f8(0x232)](_0x5ee1f8(0x269),_0x5ee1f8(0x22b)),_0x1b7b83[_0x5ee1f8(0x232)](_0x5ee1f8(0x251),_0x5ee1f8(0x235)),_0x1b7b83[_0x5ee1f8(0x232)](_0x5ee1f8(0x1ff),_0x56a0d3),_0x1edc93&&_0x1b7b83[_0x5ee1f8(0x232)](_0x5ee1f8(0x231),_0x1edc93);const _0x1e6d74=this[_0x5ee1f8(0x236)](_0x5ee1f8(0x23d)+_0x1b7b83[_0x5ee1f8(0x23c)](),_0x5ee1f8(0x26a));return{'getConversations':async()=>{const _0x20e742=_0x5ee1f8,_0x4ba38e=await _0x1e6d74[_0x20e742(0x239)];return(await _0x4ba38e[_0x20e742(0x270)]())[_0x20e742(0x26d)];},'abortController':_0x1e6d74[_0x5ee1f8(0x1fe)]};}[_0x51e0ed(0x229)](_0x5cb549){const _0x1f6410=_0x51e0ed,_0x4eab71=this[_0x1f6410(0x236)](_0x1f6410(0x22d)+_0x5cb549,_0x1f6410(0x217));return{'execute':async()=>{const _0x4f9a0e=_0x1f6410;await _0x4eab71[_0x4f9a0e(0x239)];},'abortController':_0x4eab71[_0x1f6410(0x1fe)]};}[_0x51e0ed(0x25d)](_0xa9422a,_0x10110b){const _0x4613d1=_0x51e0ed,_0x26e3f2=this[_0x4613d1(0x236)](_0x4613d1(0x22d)+_0xa9422a,_0x4613d1(0x204),_0x10110b);return{'getResult':async()=>(await _0x26e3f2[_0x4613d1(0x239)],_0x10110b),'abortController':_0x26e3f2[_0x4613d1(0x1fe)]};}[_0x51e0ed(0x247)](_0x4c6746){const _0x2a6d18=_0x51e0ed,_0x34e455=this[_0x2a6d18(0x236)](_0x2a6d18(0x22d)+_0x4c6746,_0x2a6d18(0x26a));return{'getConversation':async()=>(await _0x34e455[_0x2a6d18(0x239)])[_0x2a6d18(0x270)](),'abortController':_0x34e455[_0x2a6d18(0x1fe)]};}[_0x51e0ed(0x23b)](_0x370d86){const _0x4cfc21=_0x51e0ed,_0x1466d9=this[_0x4cfc21(0x236)](_0x4cfc21(0x22d)+_0x370d86+_0x4cfc21(0x221),_0x4cfc21(0x26a));return{'getMessages':async()=>{const _0x41757b=_0x4cfc21,_0x51d33f=await _0x1466d9[_0x41757b(0x239)];return(await _0x51d33f[_0x41757b(0x270)]())[_0x41757b(0x26d)];},'abortController':_0x1466d9[_0x4cfc21(0x1fe)]};}[_0x51e0ed(0x225)](_0x17c219,_0x4d1516,_0x3c0b07){const _0x282b81=_0x51e0ed,_0x5169f0=this[_0x282b81(0x236)](_0x282b81(0x22d)+_0x17c219+_0x282b81(0x1e8),_0x282b81(0x1e9),{'url':_0x4d1516,'attributes':_0x3c0b07});return{'getId':async()=>(await _0x5169f0[_0x282b81(0x239)])[_0x282b81(0x270)](),'abortController':_0x5169f0[_0x282b81(0x1fe)]};}[_0x51e0ed(0x200)](){const _0x40cdd7=_0x51e0ed,_0x18c687=this[_0x40cdd7(0x236)](_0x40cdd7(0x248),_0x40cdd7(0x26a));return{'list':async()=>await(await _0x18c687[_0x40cdd7(0x239)])[_0x40cdd7(0x270)](),'abortController':_0x18c687[_0x40cdd7(0x1fe)]};}[_0x51e0ed(0x1f2)](_0x1f05cd,_0x887713){const _0x11de09=_0x51e0ed,_0x28b682=this[_0x11de09(0x236)](_0x11de09(0x22d)+_0x1f05cd+_0x11de09(0x22f)+_0x887713,_0x11de09(0x217));return{'execute':async()=>{const _0x547f64=_0x11de09;await _0x28b682[_0x547f64(0x239)];},'abortController':_0x28b682[_0x11de09(0x1fe)]};}[_0x51e0ed(0x215)](_0x320d1e,_0x4ab39c){const _0x1c08fb=_0x51e0ed,_0x161cd8=this[_0x1c08fb(0x236)](_0x1c08fb(0x22d)+_0x320d1e+_0x1c08fb(0x211)+_0x4ab39c,_0x1c08fb(0x217));return{'execute':async()=>{const _0x540ec5=_0x1c08fb;await _0x161cd8[_0x540ec5(0x239)];},'abortController':_0x161cd8[_0x1c08fb(0x1fe)]};}[_0x51e0ed(0x21d)](_0xbc6c5f,_0x2d8aed){const _0x3c6e14=_0x51e0ed,_0x33caa2=this[_0x3c6e14(0x236)](_0x3c6e14(0x22d)+_0xbc6c5f+_0x3c6e14(0x1ef)+_0x2d8aed,_0x3c6e14(0x217));return{'execute':async()=>{const _0x38ac38=_0x3c6e14;await _0x33caa2[_0x38ac38(0x239)];},'abortController':_0x33caa2[_0x3c6e14(0x1fe)]};}[_0x51e0ed(0x21c)]({reviewName:_0x32217d,content:_0x8d47bc,args:_0x394d1a}){const _0x4e2804=_0x51e0ed,_0x569b23=this[_0x4e2804(0x236)](_0x4e2804(0x219)+_0x32217d+_0x4e2804(0x253),_0x4e2804(0x1e9),{'content':[{'type':_0x4e2804(0x227),'content':_0x8d47bc}],'args':_0x394d1a});return{'getStream':async()=>{const _0x1ca8b5=_0x4e2804,_0x4a3c7d=(await _0x569b23[_0x1ca8b5(0x239)])[_0x1ca8b5(0x243)];return this[_0x1ca8b5(0x26c)](_0x4a3c7d);},'abortController':_0x569b23[_0x4e2804(0x1fe)]};}[_0x51e0ed(0x21a)]({content:_0x42b1cc,prompt:_0x2508e8,model:_0x568117}){const _0x6a9f70=_0x51e0ed,_0x5969ff=this[_0x6a9f70(0x236)](_0x6a9f70(0x246),_0x6a9f70(0x1e9),{'content':[{'type':_0x6a9f70(0x227),'content':_0x42b1cc}],'prompt':_0x2508e8,'model':_0x568117});return{'getStream':async()=>{const _0x1d00f4=_0x6a9f70,_0x4dc0ad=(await _0x5969ff[_0x1d00f4(0x239)])[_0x1d00f4(0x243)];return this[_0x1d00f4(0x26c)](_0x4dc0ad);},'abortController':_0x5969ff[_0x6a9f70(0x1fe)]};}[_0x51e0ed(0x210)](_0x5d41ac,_0x5a07df,_0x3acd3f){const _0x43fbc4=_0x51e0ed,_0x5ac81e=this[_0x43fbc4(0x236)](_0x43fbc4(0x22d)+_0x5d41ac+_0x43fbc4(0x208)+_0x5a07df+_0x43fbc4(0x1fb),_0x43fbc4(0x265),{'positiveCount':_0x3acd3f[_0x43fbc4(0x266)],'totalCount':_0x3acd3f[_0x43fbc4(0x24b)],'modificationId':_0x3acd3f[_0x43fbc4(0x25a)]});return{'execute':async()=>{const _0x9f99e6=_0x43fbc4;await _0x5ac81e[_0x9f99e6(0x239)];},'abortController':_0x5ac81e[_0x43fbc4(0x1fe)]};}[_0x51e0ed(0x237)](_0x527feb,_0x216b6a,_0xa09b07){const _0x4fff89=_0x51e0ed,_0x231ba5=this[_0x4fff89(0x236)](_0x4fff89(0x1f4)+_0x527feb+_0x4fff89(0x241)+_0x216b6a+_0x4fff89(0x1fb),_0x4fff89(0x265),{'positiveCount':_0xa09b07[_0x4fff89(0x266)],'totalCount':_0xa09b07[_0x4fff89(0x24b)]});return{'execute':async()=>{const _0x3a4e2e=_0x4fff89;await _0x231ba5[_0x3a4e2e(0x239)];},'abortController':_0x231ba5[_0x4fff89(0x1fe)]};}[_0x51e0ed(0x273)](_0x41e6c2,_0x3dd41e){const _0x4f6fcb=_0x51e0ed,_0x53aa23=this[_0x4f6fcb(0x236)](_0x4f6fcb(0x255)+_0x41e6c2+_0x4f6fcb(0x1fb),_0x4f6fcb(0x265),{'positiveCount':_0x3dd41e[_0x4f6fcb(0x266)],'totalCount':_0x3dd41e[_0x4f6fcb(0x24b)]});return{'execute':async()=>{const _0x2be315=_0x4f6fcb;await _0x53aa23[_0x2be315(0x239)];},'abortController':_0x53aa23[_0x4f6fcb(0x1fe)]};}[_0x51e0ed(0x245)](_0x1cc9ab,_0x258019,_0x1b6a2a,_0x1420a9){const _0x40dbfd=_0x51e0ed,_0x1eae76=this[_0x40dbfd(0x236)](_0x40dbfd(0x219)+_0x1cc9ab+_0x40dbfd(0x241)+_0x258019+_0x40dbfd(0x1fb),_0x40dbfd(0x265),{'positiveCount':_0x1b6a2a[_0x40dbfd(0x266)],'totalCount':_0x1b6a2a[_0x40dbfd(0x24b)],'dataId':_0x1420a9});return{'execute':async()=>{const _0x2b40d3=_0x40dbfd;await _0x1eae76[_0x2b40d3(0x239)];},'abortController':_0x1eae76[_0x40dbfd(0x1fe)]};}[_0x51e0ed(0x24e)](_0x4719ce,_0x455d13,_0x36ffb7){const _0x62d6dc=_0x51e0ed,_0x26dd1e=this[_0x62d6dc(0x236)](_0x62d6dc(0x1f7)+_0x4719ce+_0x62d6dc(0x1fb),_0x62d6dc(0x265),{'positiveCount':_0x455d13[_0x62d6dc(0x266)],'totalCount':_0x455d13[_0x62d6dc(0x24b)],'dataId':_0x36ffb7});return{'execute':async()=>{const _0x2e5271=_0x62d6dc;await _0x26dd1e[_0x2e5271(0x239)];},'abortController':_0x26dd1e[_0x62d6dc(0x1fe)]};}[_0x51e0ed(0x236)](_0x69655b,_0x63d4ed,_0x2bb954){const _0x578c60=_0x51e0ed,_0x11c32b=new AbortController(),_0x43d04a=_0x2bb954 instanceof FormData,_0x53ba43={'Authorization':_0x578c60(0x220)+this[_0x578c60(0x20a)]?.[_0x578c60(0x25b)]};_0x2bb954&&!_0x43d04a&&(_0x53ba43[_0x578c60(0x223)]=_0x578c60(0x259));const _0x3c3f08={'method':_0x63d4ed,'headers':_0x53ba43,'signal':_0x11c32b[_0x578c60(0x25e)]};return _0x2bb954&&(_0x3c3f08[_0x578c60(0x243)]=_0x43d04a?_0x2bb954:JSON[_0x578c60(0x23a)](_0x2bb954)),{'request':fetch(''+this[_0x578c60(0x242)]+_0x69655b,_0x3c3f08)[_0x578c60(0x25f)](_0x1b7de7=>{const _0x49cbc6=_0x578c60;this[_0x49cbc6(0x268)](_0x1b7de7);})[_0x578c60(0x1f9)](_0x3fcb74=>{const _0x41d6c9=_0x578c60;if(!_0x3fcb74['ok'])throw new _0x349de8(_0x41d6c9(0x214),this,{'url':this[_0x41d6c9(0x242)],'path':_0x69655b,'method':_0x63d4ed,'body':_0x2bb954,'status':(_0x3fcb74||{})[_0x41d6c9(0x218)],'statusText':(_0x3fcb74||{})[_0x41d6c9(0x212)]});return _0x3fcb74;}),'abortController':_0x11c32b};}async*[_0x51e0ed(0x26c)](_0x139431){const _0x8d6cd3=_0x51e0ed,_0x478c31=[],_0x4acdb6=_0x139431[_0x8d6cd3(0x207)](),_0x28a2c2=_0x9dc336({'onError':_0x54c766=>{const _0x4c0afd=_0x8d6cd3;this[_0x4c0afd(0x268)](_0x54c766);},'onEvent':_0xe51559=>{const _0x391f53=_0x8d6cd3;_0xe51559[_0x391f53(0x244)]=JSON[_0x391f53(0x1ed)](_0xe51559[_0x391f53(0x244)]),_0x478c31[_0x391f53(0x203)](_0xe51559);}});try{let _0x52c218=!0x1;for(;!_0x52c218;){const {done:_0x34d458,value:_0x36ead9}=await _0x4acdb6[_0x8d6cd3(0x1f1)]();_0x34d458&&(_0x52c218=!0x0),_0x28a2c2[_0x8d6cd3(0x21b)](this[_0x8d6cd3(0x205)][_0x8d6cd3(0x228)](_0x36ead9,{'stream':!0x0})),yield*_0x478c31,_0x478c31[_0x8d6cd3(0x260)]=0x0;}}catch(_0x2da931){this[_0x8d6cd3(0x268)](_0x2da931);}finally{_0x4acdb6[_0x8d6cd3(0x257)](),_0x28a2c2[_0x8d6cd3(0x254)]();}}[_0x51e0ed(0x268)](_0xbea7e){const _0x3bf90e=_0x51e0ed;if(_0xbea7e instanceof _0x349de8)throw _0xbea7e;if(_0xbea7e instanceof Error&&_0x3bf90e(0x20b)===_0xbea7e[_0x3bf90e(0x256)])throw new _0x349de8(_0x3bf90e(0x234),this,{'originalError':_0xbea7e});throw new _0x349de8(_0x3bf90e(0x214),this,{'originalError':_0xbea7e});}}
23
+ const _0x5e6912=_0xd176;(function(_0x4fb488,_0x35f540){const _0x5340aa=_0xd176,_0x76ca18=_0x4fb488();while(!![]){try{const _0x5cff3f=parseInt(_0x5340aa(0x223))/0x1*(-parseInt(_0x5340aa(0x243))/0x2)+parseInt(_0x5340aa(0x224))/0x3+parseInt(_0x5340aa(0x230))/0x4*(parseInt(_0x5340aa(0x234))/0x5)+-parseInt(_0x5340aa(0x1d8))/0x6*(-parseInt(_0x5340aa(0x22b))/0x7)+-parseInt(_0x5340aa(0x1fd))/0x8*(-parseInt(_0x5340aa(0x1dd))/0x9)+parseInt(_0x5340aa(0x1f2))/0xa*(parseInt(_0x5340aa(0x1f8))/0xb)+parseInt(_0x5340aa(0x1e4))/0xc*(-parseInt(_0x5340aa(0x1cc))/0xd);if(_0x5cff3f===_0x35f540)break;else _0x76ca18['push'](_0x76ca18['shift']());}catch(_0x15eec5){_0x76ca18['push'](_0x76ca18['shift']());}}}(_0x1e62,0x60d74));import{createParser as _0x29f899}from'eventsource-parser';import{ContextPlugin as _0x1f9265}from'ckeditor5/src/core.js';import{CKEditorError as _0xf2a25a}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x491e20){const _0xac07cd=_0xd176;_0x491e20[_0xac07cd(0x1f1)]=_0xac07cd(0x1f4),_0x491e20[_0xac07cd(0x240)]=_0xac07cd(0x233),_0x491e20[_0xac07cd(0x23b)]=_0xac07cd(0x23c),_0x491e20[_0xac07cd(0x205)]=_0xac07cd(0x200),_0x491e20[_0xac07cd(0x1f5)]=_0xac07cd(0x201),_0x491e20[_0xac07cd(0x232)]=_0xac07cd(0x1d3),_0x491e20[_0xac07cd(0x207)]=_0xac07cd(0x249),_0x491e20[_0xac07cd(0x239)]=_0xac07cd(0x1fb);}(AIActionsNames||(AIActionsNames={}));function _0xd176(_0x124f70,_0x1c7560){const _0x1e6208=_0x1e62();return _0xd176=function(_0xd17675,_0x3ad41b){_0xd17675=_0xd17675-0x1ca;let _0x2b872e=_0x1e6208[_0xd17675];return _0x2b872e;},_0xd176(_0x124f70,_0x1c7560);}export class AIConnector extends _0x1f9265{[_0x5e6912(0x21a)];[_0x5e6912(0x1e3)];[_0x5e6912(0x220)];static get[_0x5e6912(0x1d0)](){const _0x470adc=_0x5e6912;return[_0x470adc(0x23f)];}static get[_0x5e6912(0x1f9)](){const _0x3dc22c=_0x5e6912;return _0x3dc22c(0x242);}static get[_0x5e6912(0x210)](){return!0x0;}static get[_0x5e6912(0x22d)](){return!0x0;}constructor(_0x4fe247){const _0x47a1b0=_0x5e6912;super(_0x4fe247),this[_0x47a1b0(0x1e7)][_0x47a1b0(0x1ec)][_0x47a1b0(0x1f0)](_0x47a1b0(0x1dc),_0x47a1b0(0x1f3)),this[_0x47a1b0(0x21a)]=this[_0x47a1b0(0x1e7)][_0x47a1b0(0x1ec)][_0x47a1b0(0x219)](_0x47a1b0(0x1dc)),this[_0x47a1b0(0x1e3)]=null,this[_0x47a1b0(0x220)]=new TextDecoder();}[_0x5e6912(0x206)](){const _0x3e1b87=_0x5e6912,_0x5876e0=this[_0x3e1b87(0x1e7)][_0x3e1b87(0x250)][_0x3e1b87(0x219)](_0x3e1b87(0x23f));if(!_0x5876e0[_0x3e1b87(0x22f)])throw new _0xf2a25a(_0x3e1b87(0x221),this);this[_0x3e1b87(0x1e3)]=_0x5876e0[_0x3e1b87(0x22f)];}[_0x5e6912(0x24a)](_0x30884c,_0x5cc0c7){const _0x2fb453=_0x5e6912,_0x3a479e=this[_0x2fb453(0x244)](_0x2fb453(0x23d),_0x2fb453(0x246),{'id':_0x30884c,'group':_0x5cc0c7});return{'getConversation':async()=>(await _0x3a479e[_0x2fb453(0x256)])[_0x2fb453(0x235)](),'abortController':_0x3a479e[_0x2fb453(0x20b)]};}[_0x5e6912(0x218)]({message:_0x121548,conversationId:_0x2c8913,parts:_0x23085e,capabilities:_0xcdb4d7,model:_0x332369,quickActionData:_0x2491ce}){const _0xf6d857=_0x5e6912,_0xa42658={..._0x2491ce&&{'quickActionData':_0x2491ce}},_0x5071d7={'prompt':_0x121548,'content':_0x23085e,'model':_0x332369,..._0xcdb4d7&&{'capabilities':_0xcdb4d7},...Object[_0xf6d857(0x231)](_0xa42658)[_0xf6d857(0x1db)]>0x0&&{'attributes':_0xa42658}},_0x233bfe=this[_0xf6d857(0x244)](_0xf6d857(0x216)+_0x2c8913+_0xf6d857(0x21f),_0xf6d857(0x246),_0x5071d7);return{'getStream':async()=>{const _0x42e4c8=_0xf6d857,_0x5e8619=(await _0x233bfe[_0x42e4c8(0x256)])[_0x42e4c8(0x1fe)];return this[_0x42e4c8(0x257)](_0x5e8619);},'abortController':_0x233bfe[_0xf6d857(0x20b)]};}[_0x5e6912(0x1d2)]({content:_0x55bcd6,message:_0x2575d3,model:_0x46a1d2,outputFormat:_0x3333fa}){const _0x289bda=_0x5e6912,_0x6d4946={'content':[{'type':_0x289bda(0x1e5),'content':_0x55bcd6}],'prompt':_0x2575d3,'model':_0x46a1d2,'outputFormat':_0x3333fa},_0x451fe1=this[_0x289bda(0x244)](_0x289bda(0x1fa),_0x289bda(0x246),_0x6d4946);return{'getStream':async()=>{const _0x1afdfe=_0x289bda,_0x958200=(await _0x451fe1[_0x1afdfe(0x256)])[_0x1afdfe(0x1fe)];return this[_0x1afdfe(0x257)](_0x958200);},'abortController':_0x451fe1[_0x289bda(0x20b)]};}[_0x5e6912(0x21b)]({actionName:_0x899610,content:_0x1fb242,args:_0x3526a8}){const _0x544b5a=_0x5e6912,_0x13d93d={'content':[{'type':_0x544b5a(0x1e5),'content':_0x1fb242}],'args':_0x3526a8},_0x2dc75c=this[_0x544b5a(0x244)](_0x544b5a(0x254)+_0x899610+_0x544b5a(0x217),_0x544b5a(0x246),_0x13d93d);return{'getStream':async()=>{const _0x5cc3ef=_0x544b5a,_0x54b17c=(await _0x2dc75c[_0x5cc3ef(0x256)])[_0x5cc3ef(0x1fe)];return this[_0x5cc3ef(0x257)](_0x54b17c);},'abortController':_0x2dc75c[_0x544b5a(0x20b)]};}[_0x5e6912(0x1f6)](_0x3a54d3,_0x2da23c,_0x5f5c6e){const _0x4eb209=_0x5e6912,_0x327b7d=new FormData();_0x327b7d[_0x4eb209(0x228)](_0x4eb209(0x1e9),_0x2da23c,_0x2da23c[_0x4eb209(0x1d6)]),_0x5f5c6e&&_0x327b7d[_0x4eb209(0x228)](_0x4eb209(0x213),JSON[_0x4eb209(0x1e0)](_0x5f5c6e));const _0x5f316d=this[_0x4eb209(0x244)](_0x4eb209(0x216)+_0x3a54d3+_0x4eb209(0x1ca),_0x4eb209(0x246),_0x327b7d);return{'getId':async()=>(await _0x5f316d[_0x4eb209(0x256)])[_0x4eb209(0x235)](),'abortController':_0x5f316d[_0x4eb209(0x20b)]};}[_0x5e6912(0x1f7)](_0x2ba2d1,_0x5dd8cf){const _0xfc9c1c=_0x5e6912,_0x17530c=this[_0xfc9c1c(0x244)](_0xfc9c1c(0x216)+_0x2ba2d1+_0xfc9c1c(0x1fc)+_0x5dd8cf,_0xfc9c1c(0x20e));return{'getDocument':async()=>(await _0x17530c[_0xfc9c1c(0x256)])[_0xfc9c1c(0x235)](),'abortController':_0x17530c[_0xfc9c1c(0x20b)]};}[_0x5e6912(0x24d)](_0x57a2d0,_0x4a3e09,_0x2ca6c9){const _0x1865a0=_0x5e6912,_0x25d94d={'content':_0x4a3e09};_0x2ca6c9&&(_0x25d94d[_0x1865a0(0x213)]=_0x2ca6c9);const _0x1b7654=this[_0x1865a0(0x244)](_0x1865a0(0x216)+_0x57a2d0+_0x1865a0(0x245),_0x1865a0(0x246),_0x25d94d);return{'getId':async()=>(await _0x1b7654[_0x1865a0(0x256)])[_0x1865a0(0x235)](),'abortController':_0x1b7654[_0x1865a0(0x20b)]};}[_0x5e6912(0x212)](_0x33eef1,_0x5a6dbd){const _0x497bb9=_0x5e6912,_0x4c1d0f=new URLSearchParams();_0x4c1d0f[_0x497bb9(0x228)](_0x497bb9(0x1e2),_0x497bb9(0x1e6)),_0x4c1d0f[_0x497bb9(0x228)](_0x497bb9(0x251),_0x497bb9(0x222)),_0x4c1d0f[_0x497bb9(0x228)](_0x497bb9(0x23a),_0x33eef1),_0x5a6dbd&&_0x4c1d0f[_0x497bb9(0x228)](_0x497bb9(0x1d7),_0x5a6dbd);const _0x15cc31=this[_0x497bb9(0x244)](_0x497bb9(0x1e8)+_0x4c1d0f[_0x497bb9(0x24b)](),_0x497bb9(0x20e));return{'getConversations':async()=>{const _0x21841a=_0x497bb9,_0x4e6905=await _0x15cc31[_0x21841a(0x256)];return(await _0x4e6905[_0x21841a(0x235)]())[_0x21841a(0x214)];},'abortController':_0x15cc31[_0x497bb9(0x20b)]};}[_0x5e6912(0x20f)](_0x38f68c){const _0x3b556a=_0x5e6912,_0x165831=this[_0x3b556a(0x244)](_0x3b556a(0x216)+_0x38f68c,_0x3b556a(0x21d));return{'execute':async()=>{const _0x42deea=_0x3b556a;await _0x165831[_0x42deea(0x256)];},'abortController':_0x165831[_0x3b556a(0x20b)]};}[_0x5e6912(0x1d9)](_0x55f740,_0x2430f0){const _0x25a3a0=_0x5e6912,_0x5b3900=this[_0x25a3a0(0x244)](_0x25a3a0(0x216)+_0x55f740,_0x25a3a0(0x255),_0x2430f0);return{'getResult':async()=>(await _0x5b3900[_0x25a3a0(0x256)],_0x2430f0),'abortController':_0x5b3900[_0x25a3a0(0x20b)]};}[_0x5e6912(0x22c)](_0x19abcd){const _0x2e01ab=_0x5e6912,_0x36a9d0=this[_0x2e01ab(0x244)](_0x2e01ab(0x216)+_0x19abcd,_0x2e01ab(0x20e));return{'getConversation':async()=>(await _0x36a9d0[_0x2e01ab(0x256)])[_0x2e01ab(0x235)](),'abortController':_0x36a9d0[_0x2e01ab(0x20b)]};}[_0x5e6912(0x248)](_0x331a74){const _0x7f39c=_0x5e6912,_0x279fae=this[_0x7f39c(0x244)](_0x7f39c(0x216)+_0x331a74+_0x7f39c(0x21f),_0x7f39c(0x20e));return{'getMessages':async()=>{const _0x46a23d=_0x7f39c,_0x51421b=await _0x279fae[_0x46a23d(0x256)];return(await _0x51421b[_0x46a23d(0x235)]())[_0x46a23d(0x214)];},'abortController':_0x279fae[_0x7f39c(0x20b)]};}[_0x5e6912(0x1d4)](_0x2001e4,_0x3a7f81,_0xae79db){const _0x77b234=_0x5e6912,_0x17bfc7=this[_0x77b234(0x244)](_0x77b234(0x216)+_0x2001e4+_0x77b234(0x1d1),_0x77b234(0x246),{'url':_0x3a7f81,'attributes':_0xae79db});return{'getId':async()=>(await _0x17bfc7[_0x77b234(0x256)])[_0x77b234(0x235)](),'abortController':_0x17bfc7[_0x77b234(0x20b)]};}[_0x5e6912(0x24f)](){const _0x48a072=_0x5e6912,_0x3e8dda=this[_0x48a072(0x244)](_0x48a072(0x237),_0x48a072(0x20e));return{'list':async()=>await(await _0x3e8dda[_0x48a072(0x256)])[_0x48a072(0x235)](),'abortController':_0x3e8dda[_0x48a072(0x20b)]};}[_0x5e6912(0x1ee)](_0x502bf9,_0xb26a2){const _0x2a18e3=_0x5e6912,_0x2973ce=this[_0x2a18e3(0x244)](_0x2a18e3(0x216)+_0x502bf9+_0x2a18e3(0x24e)+_0xb26a2,_0x2a18e3(0x21d));return{'execute':async()=>{const _0xf0c4ff=_0x2a18e3;await _0x2973ce[_0xf0c4ff(0x256)];},'abortController':_0x2973ce[_0x2a18e3(0x20b)]};}[_0x5e6912(0x1cf)](_0x9196f3,_0x3c2ce0){const _0x2588d1=_0x5e6912,_0x2f3ca7=this[_0x2588d1(0x244)](_0x2588d1(0x216)+_0x9196f3+_0x2588d1(0x1fc)+_0x3c2ce0,_0x2588d1(0x21d));return{'execute':async()=>{const _0x207f02=_0x2588d1;await _0x2f3ca7[_0x207f02(0x256)];},'abortController':_0x2f3ca7[_0x2588d1(0x20b)]};}[_0x5e6912(0x204)](_0x2ab053,_0x10ec9e){const _0x534507=_0x5e6912,_0x37bb75=this[_0x534507(0x244)](_0x534507(0x216)+_0x2ab053+_0x534507(0x1ed)+_0x10ec9e,_0x534507(0x21d));return{'execute':async()=>{const _0x2fd228=_0x534507;await _0x37bb75[_0x2fd228(0x256)];},'abortController':_0x37bb75[_0x534507(0x20b)]};}[_0x5e6912(0x241)]({reviewName:_0x296e2a,content:_0xbee6ab,args:_0x1aaeb8}){const _0x4ce251=_0x5e6912,_0x368680=this[_0x4ce251(0x244)](_0x4ce251(0x22e)+_0x296e2a+_0x4ce251(0x217),_0x4ce251(0x246),{'content':[{'type':_0x4ce251(0x1e5),'content':_0xbee6ab}],'args':_0x1aaeb8});return{'getStream':async()=>{const _0x212333=_0x4ce251,_0x370e3b=(await _0x368680[_0x212333(0x256)])[_0x212333(0x1fe)];return this[_0x212333(0x257)](_0x370e3b);},'abortController':_0x368680[_0x4ce251(0x20b)]};}[_0x5e6912(0x1ff)]({content:_0x26290a,prompt:_0x33c513,model:_0x67a911}){const _0x1664e5=_0x5e6912,_0xd9bb91=this[_0x1664e5(0x244)](_0x1664e5(0x229),_0x1664e5(0x246),{'content':[{'type':_0x1664e5(0x1e5),'content':_0x26290a}],'prompt':_0x33c513,'model':_0x67a911});return{'getStream':async()=>{const _0x585b3b=_0x1664e5,_0x2fdf1a=(await _0xd9bb91[_0x585b3b(0x256)])[_0x585b3b(0x1fe)];return this[_0x585b3b(0x257)](_0x2fdf1a);},'abortController':_0xd9bb91[_0x1664e5(0x20b)]};}[_0x5e6912(0x24c)](_0x2db766,_0x22f540,_0x21651d){const _0x11dd18=_0x5e6912,_0x1d16d2=this[_0x11dd18(0x244)](_0x11dd18(0x216)+_0x2db766+_0x11dd18(0x236)+_0x22f540+_0x11dd18(0x1eb),_0x11dd18(0x20d),{'positiveCount':_0x21651d[_0x11dd18(0x208)],'totalCount':_0x21651d[_0x11dd18(0x1e1)],'modificationId':_0x21651d[_0x11dd18(0x252)]});return{'execute':async()=>{const _0x10ac00=_0x11dd18;await _0x1d16d2[_0x10ac00(0x256)];},'abortController':_0x1d16d2[_0x11dd18(0x20b)]};}[_0x5e6912(0x1cb)](_0x340bbb,_0xca2ecd,_0x5018c4){const _0x4317c3=_0x5e6912,_0x3cef63=this[_0x4317c3(0x244)](_0x4317c3(0x254)+_0x340bbb+_0x4317c3(0x215)+_0xca2ecd+_0x4317c3(0x1eb),_0x4317c3(0x20d),{'positiveCount':_0x5018c4[_0x4317c3(0x208)],'totalCount':_0x5018c4[_0x4317c3(0x1e1)]});return{'execute':async()=>{const _0x472bfe=_0x4317c3;await _0x3cef63[_0x472bfe(0x256)];},'abortController':_0x3cef63[_0x4317c3(0x20b)]};}[_0x5e6912(0x22a)](_0x5e4d31,_0x2dbd7b){const _0x2dff81=_0x5e6912,_0x294db6=this[_0x2dff81(0x244)](_0x2dff81(0x23e)+_0x5e4d31+_0x2dff81(0x1eb),_0x2dff81(0x20d),{'positiveCount':_0x2dbd7b[_0x2dff81(0x208)],'totalCount':_0x2dbd7b[_0x2dff81(0x1e1)]});return{'execute':async()=>{const _0x246db4=_0x2dff81;await _0x294db6[_0x246db4(0x256)];},'abortController':_0x294db6[_0x2dff81(0x20b)]};}[_0x5e6912(0x25a)](_0x2d2c88,_0xf9f7c6,_0x3631d0,_0x4e51c6){const _0x14868d=_0x5e6912,_0x258a49=this[_0x14868d(0x244)](_0x14868d(0x22e)+_0x2d2c88+_0x14868d(0x215)+_0xf9f7c6+_0x14868d(0x1eb),_0x14868d(0x20d),{'positiveCount':_0x3631d0[_0x14868d(0x208)],'totalCount':_0x3631d0[_0x14868d(0x1e1)],'dataId':_0x4e51c6});return{'execute':async()=>{const _0x5e70c3=_0x14868d;await _0x258a49[_0x5e70c3(0x256)];},'abortController':_0x258a49[_0x14868d(0x20b)]};}[_0x5e6912(0x226)](_0x276877,_0x474922,_0x24bf1a){const _0x3caacf=_0x5e6912,_0x4e9def=this[_0x3caacf(0x244)](_0x3caacf(0x247)+_0x276877+_0x3caacf(0x1eb),_0x3caacf(0x20d),{'positiveCount':_0x474922[_0x3caacf(0x208)],'totalCount':_0x474922[_0x3caacf(0x1e1)],'dataId':_0x24bf1a});return{'execute':async()=>{const _0x2b2f33=_0x3caacf;await _0x4e9def[_0x2b2f33(0x256)];},'abortController':_0x4e9def[_0x3caacf(0x20b)]};}[_0x5e6912(0x244)](_0x51487e,_0x3b1cbb,_0x30896c){const _0x396fd9=_0x5e6912,_0x54cc57=new AbortController(),_0x4793f6=_0x30896c instanceof FormData,_0x2f13db={'Authorization':_0x396fd9(0x253)+this[_0x396fd9(0x1e3)]?.[_0x396fd9(0x202)]};_0x30896c&&!_0x4793f6&&(_0x2f13db[_0x396fd9(0x1df)]=_0x396fd9(0x1ce));const _0x5bd07d={'method':_0x3b1cbb,'headers':_0x2f13db,'signal':_0x54cc57[_0x396fd9(0x1da)]};return _0x30896c&&(_0x5bd07d[_0x396fd9(0x1fe)]=_0x4793f6?_0x30896c:JSON[_0x396fd9(0x1e0)](_0x30896c)),{'request':fetch(''+this[_0x396fd9(0x21a)]+_0x51487e,_0x5bd07d)[_0x396fd9(0x1de)](_0x1d6dcc=>{const _0xc661d9=_0x396fd9;this[_0xc661d9(0x259)](_0x1d6dcc);})[_0x396fd9(0x258)](_0xbbe63e=>{const _0x3e588b=_0x396fd9;if(!_0xbbe63e['ok'])throw new _0xf2a25a(_0x3e588b(0x211),this,{'url':this[_0x3e588b(0x21a)],'path':_0x51487e,'method':_0x3b1cbb,'body':_0x30896c,'status':(_0xbbe63e||{})[_0x3e588b(0x21e)],'statusText':(_0xbbe63e||{})[_0x3e588b(0x1d5)]});return _0xbbe63e;}),'abortController':_0x54cc57};}async*[_0x5e6912(0x257)](_0x4debf7){const _0x5c360e=_0x5e6912,_0x1644a4=[],_0x4c0366=_0x4debf7[_0x5c360e(0x238)](),_0x5c91a6=_0x29f899({'onError':_0x306c66=>{const _0x56ca0f=_0x5c360e;this[_0x56ca0f(0x259)](_0x306c66);},'onEvent':_0x1826dd=>{const _0x32fd0b=_0x5c360e;_0x1826dd[_0x32fd0b(0x227)]=JSON[_0x32fd0b(0x20c)](_0x1826dd[_0x32fd0b(0x227)]),_0x1644a4[_0x32fd0b(0x225)](_0x1826dd);}});try{let _0x248327=!0x1;for(;!_0x248327;){const {done:_0x428073,value:_0x2a25e0}=await _0x4c0366[_0x5c360e(0x209)]();_0x428073&&(_0x248327=!0x0),_0x5c91a6[_0x5c360e(0x21c)](this[_0x5c360e(0x220)][_0x5c360e(0x203)](_0x2a25e0,{'stream':!0x0})),yield*_0x1644a4,_0x1644a4[_0x5c360e(0x1db)]=0x0;}}catch(_0x25eea7){this[_0x5c360e(0x259)](_0x25eea7);}finally{_0x4c0366[_0x5c360e(0x1cd)](),_0x5c91a6[_0x5c360e(0x20a)]();}}[_0x5e6912(0x259)](_0x185e7b){const _0x535c1f=_0x5e6912;if(_0x185e7b instanceof _0xf2a25a)throw _0x185e7b;if(_0x185e7b instanceof Error&&_0x535c1f(0x1ea)===_0x185e7b[_0x535c1f(0x1d6)])throw new _0xf2a25a(_0x535c1f(0x1ef),this,{'originalError':_0x185e7b});throw new _0xf2a25a(_0x535c1f(0x211),this,{'originalError':_0x185e7b});}}function _0x1e62(){const _0x1ed3c4=['Bearer\x20','/actions/system/','PATCH','request','_getStreamReader','then','_handleError','upsertAIReviewRating','/files','upsertAIActionRating','5768581xstjmt','releaseLock','application/json','deleteDocument','requires','/web-resources','executeCustomAction','make-tone-casual','uploadUrl','statusText','name','search','5100DryOsJ','updateConversation','signal','length','ai.serviceUrl','1234017cRofKK','catch','Content-Type','stringify','totalCount','excludeEmpty','_token','24VyoFNe','text','true','context','/conversations?','file','AbortError','/ratings','config','/web-resources/','deleteFile','ai-request-aborted','define','CONTINUE','20tcYVMl','https://ai.cke-cs.com/v1','continue','MAKE_SHORTER','uploadFile','fetchDocument','3512476AjBfOj','pluginName','/actions/custom/calls','translate','/documents/','32bpPGAX','body','callCustomReview','make-longer','make-shorter','value','decode','deleteWebResource','MAKE_LONGER','init','MAKE_TONE_FORMAL','positiveCount','read','reset','abortController','parse','PUT','GET','deleteConversation','isOfficialPlugin','ai-request-failed','fetchConversations','attributes','items','/calls/','/conversations/','/calls','queryAssistant','get','_apiUrl','executeAction','feed','DELETE','status','/messages','_decoder','ai-missing-token','100','4251TSGbZX','1201452uAYwYl','push','upsertCustomAIReviewRating','data','append','/reviews/custom/calls','upsertCustomAIActionRating','1708bwsiUT','fetchConversation','isPremiumPlugin','/reviews/system/','token','422244sIMrCr','keys','MAKE_TONE_CASUAL','fix-grammar','5BIzFhO','json','/messages/','/models/1','getReader','TRANSLATE','group','IMPROVE_WRITING','improve-writing','/conversations','/actions/custom/calls/','CloudServices','FIX_GRAMMAR','callSystemReview','AIConnector','290jlklpX','_sendApiRequest','/documents','POST','/reviews/custom/calls/','fetchConversationMessages','make-tone-formal','startConversation','toString','upsertAIChatRating','uploadDocument','/files/','getModels','plugins','limit','modificationId'];_0x1e62=function(){return _0x1ed3c4;};return _0x1e62();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x41b118=_0x2444;(function(_0x57255b,_0x1165ab){const _0x1b2f54=_0x2444,_0x4b2868=_0x57255b();while(!![]){try{const _0x5e8e84=parseInt(_0x1b2f54(0x12f))/0x1*(parseInt(_0x1b2f54(0x143))/0x2)+parseInt(_0x1b2f54(0x140))/0x3+-parseInt(_0x1b2f54(0x132))/0x4*(parseInt(_0x1b2f54(0xfe))/0x5)+parseInt(_0x1b2f54(0x138))/0x6*(parseInt(_0x1b2f54(0xea))/0x7)+parseInt(_0x1b2f54(0x106))/0x8*(-parseInt(_0x1b2f54(0x121))/0x9)+parseInt(_0x1b2f54(0xf9))/0xa*(-parseInt(_0x1b2f54(0x13d))/0xb)+parseInt(_0x1b2f54(0xfb))/0xc;if(_0x5e8e84===_0x1165ab)break;else _0x4b2868['push'](_0x4b2868['shift']());}catch(_0x386642){_0x4b2868['push'](_0x4b2868['shift']());}}}(_0x5ed2,0x22dc0));import{ViewDowncastWriter as _0x2d5255}from'ckeditor5/src/engine.js';function _0x2444(_0x2122b4,_0x4aa089){const _0x5ed210=_0x5ed2();return _0x2444=function(_0x24443e,_0x4081f7){_0x24443e=_0x24443e-0xe8;let _0x2ae5f4=_0x5ed210[_0x24443e];return _0x2ae5f4;},_0x2444(_0x2122b4,_0x4aa089);}import{ContextPlugin as _0x505b2a,Editor as _0x16745d}from'ckeditor5/src/core.js';import{uid as _0x169d4d}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x3811f7}from'./utils/geteditorfromcontext.js';function _0x5ed2(){const _0x1e86e0=['length','11AWPTpM','editing','convertAiChatSelectionMarker','498192bCILKT','context','createUIElement','546338Aceabz','containerElement','modelToViewWithIds','end','emptyElement','getDocumentData',':end></','ai-selection','getWalker',':end>',':start>','getRoot','$textProxy','_nextDataId',':start></','toView','isOpening','toData','124747DOdubs','isContent','plugins','start','AIEditing','afterInit','processor','RealTimeCollaborationClient','removeAllRanges','schema','isOfficialPlugin','document','data-id','markerToHighlight','name','1907860wcdBsR','get','2347836BkiSWQ','from','add','214935dhVwzj','removeMarker','push','fromCharCode','pluginName','isBefore','element','createRangeIn','168ZOfNPx','markerName','_setDataIdsOnChildren','floor','getMarkersGroup','_getMarkersInDocumentOrder','version','sort','setAttribute','trim','ai-selection:','markers','getChildren','_sessionId','ck-fake-ai-selection','isPremiumPlugin','conversion','isAfter','_displayedFakeSelectionLocked','ck-ai-assistant-ui_theme','listenTo','sessionId','for','view','_displayedFakeSelectionId','getSelectedContent','selection','99927ztRiqe','data','_integrateEditor','change','getStart','editors','showFakeVisualSelection','editingDowncast','model','getSelection','addMarker','getLastMatchingPosition','has','markerToElement','1sUfVUL','substring','isAtEnd','8DSJpqv','dataDowncast','ready','indexOf','getSelectionText','hideFakeVisualSelection','6qReXTy','join','createRange','random'];_0x5ed2=function(){return _0x1e86e0;};return _0x5ed2();}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x41b118(0x14a);export class AIEditing extends _0x505b2a{[_0x41b118(0x11e)]=null;[_0x41b118(0x118)]=!0x1;[_0x41b118(0x113)];static get[_0x41b118(0x102)](){const _0xad2f05=_0x41b118;return _0xad2f05(0xee);}static get[_0x41b118(0xf4)](){return!0x0;}static get[_0x41b118(0x115)](){return!0x0;}get[_0x41b118(0x11b)](){const _0x1ea9b0=_0x41b118;if(!this[_0x1ea9b0(0x113)]){const _0x1e9168=_0x3811f7(this[_0x1ea9b0(0x141)]),_0x239013=_0x1e9168[_0x1ea9b0(0xec)][_0x1ea9b0(0x12d)](_0x1ea9b0(0xf1))&&_0x1e9168[_0x1ea9b0(0xec)][_0x1ea9b0(0xfa)](_0x1ea9b0(0xf1))[_0x1ea9b0(0x11b)];this[_0x1ea9b0(0x113)]=_0x239013||_0x169d4d();}return this[_0x1ea9b0(0x113)];}[_0x41b118(0x148)](){const _0x3e318b=_0x41b118,_0x571cc8=_0x3811f7(this[_0x3e318b(0x141)]),_0x4bc312=_0x571cc8[_0x3e318b(0x129)],_0x2caac8=_0x571cc8[_0x3e318b(0x122)][_0x3e318b(0x152)](_0x4bc312[_0x3e318b(0xf5)][_0x3e318b(0x14e)](),{'convertAiChatSelectionMarker':!0x0}),_0x3969a9=new _0x2d5255(_0x571cc8[_0x3e318b(0x13e)][_0x3e318b(0x11d)][_0x3e318b(0xf5)]);this[_0x3e318b(0x108)](_0x2caac8,_0x3969a9);let _0x4127f2=_0x571cc8[_0x3e318b(0x122)][_0x3e318b(0xf0)][_0x3e318b(0xe9)](_0x2caac8);const _0x11f574=this[_0x3e318b(0x10b)](),_0x4fca79=[];for(const _0x435d29 of _0x11f574){const _0x5236f9='<'+_0x435d29[_0x3e318b(0xf8)]+_0x3e318b(0x151)+_0x435d29[_0x3e318b(0xf8)]+_0x3e318b(0x14d),_0x5f8613=_0x4127f2[_0x3e318b(0x135)](_0x5236f9);_0x4127f2=_0x4127f2[_0x3e318b(0x130)](0x0,_0x5f8613)+_0x4127f2[_0x3e318b(0x130)](_0x5f8613+_0x5236f9[_0x3e318b(0x13c)]);const _0x316543='<'+_0x435d29[_0x3e318b(0xf8)]+_0x3e318b(0x149)+_0x435d29[_0x3e318b(0xf8)]+_0x3e318b(0x14c),_0x5b5c64=_0x4127f2[_0x3e318b(0x135)](_0x316543);_0x4127f2=_0x4127f2[_0x3e318b(0x130)](0x0,_0x5b5c64)+_0x4127f2[_0x3e318b(0x130)](_0x5b5c64+_0x316543[_0x3e318b(0x13c)]),_0x4fca79[_0x3e318b(0x100)]({'markerName':_0x435d29[_0x3e318b(0xf8)],'start':_0x5f8613,'end':_0x5b5c64,'htmlFragment':_0x4127f2[_0x3e318b(0x130)](_0x5f8613,_0x5b5c64)});}return{'content':_0x4127f2,'version':_0x571cc8[_0x3e318b(0x129)][_0x3e318b(0xf5)][_0x3e318b(0x10c)],'sessionId':this[_0x3e318b(0x11b)],'selections':_0x4fca79};}async[_0x41b118(0xef)](){const _0x9101fb=_0x41b118;this[_0x9101fb(0x141)]instanceof _0x16745d?this[_0x9101fb(0x123)](this[_0x9101fb(0x141)]):this[_0x9101fb(0x11a)](this[_0x9101fb(0x141)][_0x9101fb(0x126)],_0x9101fb(0xfd),(_0x385ac4,_0x3c4fbf)=>{const _0x4ff0db=_0x9101fb;_0x3c4fbf['on'](_0x4ff0db(0x134),()=>{const _0x3869f4=_0x4ff0db;this[_0x3869f4(0x123)](_0x3c4fbf);});});}[_0x41b118(0x123)](_0x49778c){const _0xbddc48=_0x41b118;_0x49778c[_0xbddc48(0x116)][_0xbddc48(0x11c)](_0xbddc48(0x128))[_0xbddc48(0xf7)]({'model':_0xbddc48(0x14a),'view':{'classes':[_0xbddc48(0x114),_0xbddc48(0x119)],'priority':0xc}}),_0x49778c[_0xbddc48(0x116)][_0xbddc48(0x11c)](_0xbddc48(0x133))[_0xbddc48(0x12e)]({'model':_0xbddc48(0x14a),'view':(_0x1cdb77,{writer:_0x5697bc,options:_0xc6a05b})=>_0xc6a05b[_0xbddc48(0x13f)]?_0x5697bc[_0xbddc48(0x142)](_0x1cdb77[_0xbddc48(0x107)]+':'+(_0x1cdb77[_0xbddc48(0xe8)]?_0xbddc48(0xed):_0xbddc48(0x146))):null});}[_0x41b118(0x127)](_0x3e8d0b,_0x3eede9,_0x54d292=!0x1,_0x322efe=!0x1){const _0x296bc0=_0x41b118;if(this[_0x296bc0(0x118)]&&!_0x322efe)return!0x1;const _0x1814d0=_0x3811f7(this[_0x296bc0(0x141)])[_0x296bc0(0x129)];return _0x1814d0[_0x296bc0(0x124)](_0x248a17=>{const _0x3323fd=_0x296bc0;this[_0x3323fd(0x11e)]&&this[_0x3323fd(0x137)](this[_0x3323fd(0x11e)]),this[_0x3323fd(0x11e)]=_0x3eede9,this[_0x3323fd(0x118)]=_0x54d292;let _0x2a3aaf=0x0;for(let _0x625d9f of _0x3e8d0b){const _0x95a463=_0x3323fd(0x110)+_0x2a3aaf;if(_0x625d9f[_0x3323fd(0xed)][_0x3323fd(0x131)]){const _0x1d9dfc=_0x625d9f[_0x3323fd(0xed)][_0x3323fd(0x12c)](({item:_0x54a67b})=>!_0x1814d0[_0x3323fd(0xf3)][_0x3323fd(0xeb)](_0x54a67b),{'boundaries':_0x625d9f});_0x625d9f=_0x248a17[_0x3323fd(0x13a)](_0x1d9dfc,_0x625d9f[_0x3323fd(0x146)]);}_0x248a17[_0x3323fd(0x12b)](_0x95a463,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x625d9f}),_0x2a3aaf++;}}),window[_0x296bc0(0x12a)]()?.[_0x296bc0(0xf2)](),!0x0;}[_0x41b118(0x137)](_0x5e7485){const _0x4e5f1f=_0x41b118;if(this[_0x4e5f1f(0x11e)]!=_0x5e7485)return!0x1;this[_0x4e5f1f(0x11e)]=null,this[_0x4e5f1f(0x118)]=!0x1;const _0x354ad9=_0x3811f7(this[_0x4e5f1f(0x141)]),_0x16bb2c=_0x354ad9[_0x4e5f1f(0x129)][_0x4e5f1f(0x111)][_0x4e5f1f(0x10a)](_0x4e5f1f(0x14a));return _0x354ad9[_0x4e5f1f(0x129)][_0x4e5f1f(0x124)](_0x44ed94=>{const _0x1aa2ac=_0x4e5f1f;for(const _0x204c19 of _0x16bb2c)_0x44ed94[_0x1aa2ac(0xff)](_0x204c19);}),!0x0;}[_0x41b118(0x145)](_0x245ac7){const _0x227bdc=_0x41b118,_0x5ec312=_0x3811f7(this[_0x227bdc(0x141)]),_0x773e0f=_0x5ec312[_0x227bdc(0x122)][_0x227bdc(0x152)](_0x245ac7),_0x579f13=new _0x2d5255(_0x5ec312[_0x227bdc(0x13e)][_0x227bdc(0x11d)][_0x227bdc(0xf5)]);return this[_0x227bdc(0x108)](_0x773e0f,_0x579f13),_0x773e0f;}[_0x41b118(0x108)](_0x352037,_0x270ab7){const _0xb5df79=_0x41b118;let _0x359cb0=!0x1;const _0x50c38b=new Set();for(const _0x224c3 of _0x352037[_0xb5df79(0x112)]()){const _0x5992d3=_0x224c3['is'](_0xb5df79(0x147))||_0x224c3['is'](_0xb5df79(0x144));if(!_0x224c3['is'](_0xb5df79(0x104)))continue;(this[_0xb5df79(0x108)](_0x224c3,_0x270ab7)||_0x5992d3)&&(_0x270ab7[_0xb5df79(0x10e)](_0xb5df79(0xf6),this[_0xb5df79(0x150)](_0x50c38b),_0x224c3),_0x359cb0=!0x0);}return _0x359cb0;}[_0x41b118(0x150)](_0x5ef6a5){const _0x206054=_0x41b118;let _0x1436ac;do{_0x1436ac='';for(let _0x18eaab=0x0;_0x18eaab<0x4;_0x18eaab++)_0x1436ac+=String[_0x206054(0x101)](0x61+Math[_0x206054(0x109)](0x1a*Math[_0x206054(0x13b)]()));}while(_0x5ef6a5[_0x206054(0x12d)](_0x1436ac));return _0x5ef6a5[_0x206054(0xfd)](_0x1436ac),_0x1436ac;}[_0x41b118(0x136)](){const _0x515043=_0x41b118,{model:_0x5f0a69}=_0x3811f7(this[_0x515043(0x141)]),_0x269d9f=_0x5f0a69[_0x515043(0xf5)][_0x515043(0x120)],_0x2b1523=_0x5f0a69[_0x515043(0x11f)](_0x269d9f),_0x5c2bf6=[],_0x5388b0=_0x5f0a69[_0x515043(0x105)](_0x2b1523)[_0x515043(0x14b)]();for(const {item:_0x1045be}of _0x5388b0)_0x1045be['is'](_0x515043(0x14f))?_0x5c2bf6[_0x515043(0x100)](_0x1045be[_0x515043(0x122)]):_0x1045be['is'](_0x515043(0x104))&&_0x5c2bf6[_0x515043(0x13c)]>0x0&&'\x20'!==_0x5c2bf6[_0x5c2bf6[_0x515043(0x13c)]-0x1]&&_0x5c2bf6[_0x515043(0x100)]('\x20');return'\x22'+_0x5c2bf6[_0x515043(0x139)]('')[_0x515043(0x10f)]()+'\x22';}[_0x41b118(0x10b)](){const _0x327513=_0x41b118,_0x4372d4=_0x3811f7(this[_0x327513(0x141)])[_0x327513(0x129)];return Array[_0x327513(0xfc)](_0x4372d4[_0x327513(0x111)][_0x327513(0x10a)](_0x327513(0x14a)))[_0x327513(0x10d)]((_0x290c89,_0x4dc648)=>_0x290c89[_0x327513(0x125)]()[_0x327513(0x103)](_0x4dc648[_0x327513(0x125)]())?-0x1:_0x290c89[_0x327513(0x125)]()[_0x327513(0x117)](_0x4dc648[_0x327513(0x125)]())?0x1:0x0);}}
23
+ function _0xf663(_0x258dda,_0x48ab4c){const _0x47aa03=_0x47aa();return _0xf663=function(_0xf66325,_0x1d4039){_0xf66325=_0xf66325-0x12e;let _0x13cad7=_0x47aa03[_0xf66325];return _0x13cad7;},_0xf663(_0x258dda,_0x48ab4c);}const _0x3f1f5a=_0xf663;(function(_0x4d11c5,_0x19fc13){const _0xcb923f=_0xf663,_0x5091cc=_0x4d11c5();while(!![]){try{const _0x2504ae=-parseInt(_0xcb923f(0x195))/0x1+parseInt(_0xcb923f(0x15b))/0x2+-parseInt(_0xcb923f(0x151))/0x3+-parseInt(_0xcb923f(0x163))/0x4*(-parseInt(_0xcb923f(0x15d))/0x5)+-parseInt(_0xcb923f(0x189))/0x6+parseInt(_0xcb923f(0x179))/0x7*(-parseInt(_0xcb923f(0x14b))/0x8)+parseInt(_0xcb923f(0x146))/0x9;if(_0x2504ae===_0x19fc13)break;else _0x5091cc['push'](_0x5091cc['shift']());}catch(_0x3750b9){_0x5091cc['push'](_0x5091cc['shift']());}}}(_0x47aa,0x64dc6));import{ViewDowncastWriter as _0x2c4917}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x592ad3,Editor as _0x22f9fa}from'ckeditor5/src/core.js';import{uid as _0x16f5c5}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x23be6d}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x3f1f5a(0x188);function _0x47aa(){const _0x5c5833=['1410138VcHnPr','addMarker','document','getSelection','hideFakeVisualSelection','schema','start','_displayedFakeSelectionLocked','emptyElement','isContent','24246MqNLJC','convertAiChatSelectionMarker','2812290WcXkxt','data','showFakeVisualSelection','markerName','createRangeIn','getWalker','4DjDdnE','createRange','toData','getDocumentData','has','add','listenTo','afterInit','version','ready','processor','editors','_integrateEditor','trim','length','editing','getRoot','indexOf','isOpening','_setDataIdsOnChildren','removeMarker','change','1918EnBIMP','isAtEnd','get','isPremiumPlugin','name','dataDowncast','for','markerToElement','random','RealTimeCollaborationClient','end',':end>','ck-fake-ai-selection','selection','getSelectedContent','ai-selection','1708320UmuWda','fromCharCode','view','_nextDataId','getChildren','removeAllRanges','floor','_sessionId','push',':start>','substring','data-id','387871oIChuC','containerElement','from','setAttribute','createUIElement','editingDowncast','getSelectionText','_getMarkersInDocumentOrder','_displayedFakeSelectionId','isAfter','markerToHighlight','toView','ai-selection:','isOfficialPlugin',':start></','$textProxy','isBefore',':end></','element','getStart','getMarkersGroup','sessionId','model','ck-ai-assistant-ui_theme','plugins','12586356qgAGOL','getLastMatchingPosition','conversion','pluginName','join','12184ZOoIkU','AIEditing','markers','modelToViewWithIds','sort','context'];_0x47aa=function(){return _0x5c5833;};return _0x47aa();}export class AIEditing extends _0x592ad3{[_0x3f1f5a(0x135)]=null;[_0x3f1f5a(0x158)]=!0x1;[_0x3f1f5a(0x190)];static get[_0x3f1f5a(0x149)](){const _0x25546f=_0x3f1f5a;return _0x25546f(0x14c);}static get[_0x3f1f5a(0x13a)](){return!0x0;}static get[_0x3f1f5a(0x17c)](){return!0x0;}get[_0x3f1f5a(0x142)](){const _0x23c7d8=_0x3f1f5a;if(!this[_0x23c7d8(0x190)]){const _0x53133a=_0x23be6d(this[_0x23c7d8(0x150)]),_0x360cb9=_0x53133a[_0x23c7d8(0x145)][_0x23c7d8(0x167)](_0x23c7d8(0x182))&&_0x53133a[_0x23c7d8(0x145)][_0x23c7d8(0x17b)](_0x23c7d8(0x182))[_0x23c7d8(0x142)];this[_0x23c7d8(0x190)]=_0x360cb9||_0x16f5c5();}return this[_0x23c7d8(0x190)];}[_0x3f1f5a(0x166)](){const _0x14b86c=_0x3f1f5a,_0x3cc4c7=_0x23be6d(this[_0x14b86c(0x150)]),_0x59707e=_0x3cc4c7[_0x14b86c(0x143)],_0x49fb82=_0x3cc4c7[_0x14b86c(0x15e)][_0x14b86c(0x138)](_0x59707e[_0x14b86c(0x153)][_0x14b86c(0x173)](),{'convertAiChatSelectionMarker':!0x0}),_0xbae5fc=new _0x2c4917(_0x3cc4c7[_0x14b86c(0x172)][_0x14b86c(0x18b)][_0x14b86c(0x153)]);this[_0x14b86c(0x176)](_0x49fb82,_0xbae5fc);let _0x23168f=_0x3cc4c7[_0x14b86c(0x15e)][_0x14b86c(0x16d)][_0x14b86c(0x165)](_0x49fb82);const _0xb22162=this[_0x14b86c(0x134)](),_0x4c1912=[];for(const _0x1369b2 of _0xb22162){const _0x31966f='<'+_0x1369b2[_0x14b86c(0x17d)]+_0x14b86c(0x13b)+_0x1369b2[_0x14b86c(0x17d)]+_0x14b86c(0x192),_0x387ad7=_0x23168f[_0x14b86c(0x174)](_0x31966f);_0x23168f=_0x23168f[_0x14b86c(0x193)](0x0,_0x387ad7)+_0x23168f[_0x14b86c(0x193)](_0x387ad7+_0x31966f[_0x14b86c(0x171)]);const _0x2479e2='<'+_0x1369b2[_0x14b86c(0x17d)]+_0x14b86c(0x13e)+_0x1369b2[_0x14b86c(0x17d)]+_0x14b86c(0x184),_0xfe5daf=_0x23168f[_0x14b86c(0x174)](_0x2479e2);_0x23168f=_0x23168f[_0x14b86c(0x193)](0x0,_0xfe5daf)+_0x23168f[_0x14b86c(0x193)](_0xfe5daf+_0x2479e2[_0x14b86c(0x171)]),_0x4c1912[_0x14b86c(0x191)]({'markerName':_0x1369b2[_0x14b86c(0x17d)],'start':_0x387ad7,'end':_0xfe5daf,'htmlFragment':_0x23168f[_0x14b86c(0x193)](_0x387ad7,_0xfe5daf)});}return{'content':_0x23168f,'version':_0x3cc4c7[_0x14b86c(0x143)][_0x14b86c(0x153)][_0x14b86c(0x16b)],'sessionId':this[_0x14b86c(0x142)],'selections':_0x4c1912};}async[_0x3f1f5a(0x16a)](){const _0x256302=_0x3f1f5a;this[_0x256302(0x150)]instanceof _0x22f9fa?this[_0x256302(0x16f)](this[_0x256302(0x150)]):this[_0x256302(0x169)](this[_0x256302(0x150)][_0x256302(0x16e)],_0x256302(0x168),(_0x1daab5,_0x3e91c1)=>{const _0x301b53=_0x256302;_0x3e91c1['on'](_0x301b53(0x16c),()=>{const _0x2225c5=_0x301b53;this[_0x2225c5(0x16f)](_0x3e91c1);});});}[_0x3f1f5a(0x16f)](_0x505ee2){const _0x19e5fe=_0x3f1f5a;_0x505ee2[_0x19e5fe(0x148)][_0x19e5fe(0x17f)](_0x19e5fe(0x132))[_0x19e5fe(0x137)]({'model':_0x19e5fe(0x188),'view':{'classes':[_0x19e5fe(0x185),_0x19e5fe(0x144)],'priority':0xc}}),_0x505ee2[_0x19e5fe(0x148)][_0x19e5fe(0x17f)](_0x19e5fe(0x17e))[_0x19e5fe(0x180)]({'model':_0x19e5fe(0x188),'view':(_0x2df701,{writer:_0x562f89,options:_0x2aa1de})=>_0x2aa1de[_0x19e5fe(0x15c)]?_0x562f89[_0x19e5fe(0x131)](_0x2df701[_0x19e5fe(0x160)]+':'+(_0x2df701[_0x19e5fe(0x175)]?_0x19e5fe(0x157):_0x19e5fe(0x183))):null});}[_0x3f1f5a(0x15f)](_0x471533,_0x291f29,_0x108a8e=!0x1,_0x13fc9e=!0x1){const _0x42a1a9=_0x3f1f5a;if(this[_0x42a1a9(0x158)]&&!_0x13fc9e)return!0x1;const _0x32dda6=_0x23be6d(this[_0x42a1a9(0x150)])[_0x42a1a9(0x143)];return _0x32dda6[_0x42a1a9(0x178)](_0x533ad9=>{const _0x55781c=_0x42a1a9;this[_0x55781c(0x135)]&&this[_0x55781c(0x155)](this[_0x55781c(0x135)]),this[_0x55781c(0x135)]=_0x291f29,this[_0x55781c(0x158)]=_0x108a8e;let _0x461332=0x0;for(let _0x19169e of _0x471533){const _0x3647b6=_0x55781c(0x139)+_0x461332;if(_0x19169e[_0x55781c(0x157)][_0x55781c(0x17a)]){const _0x4cdb3f=_0x19169e[_0x55781c(0x157)][_0x55781c(0x147)](({item:_0x4d0cf0})=>!_0x32dda6[_0x55781c(0x156)][_0x55781c(0x15a)](_0x4d0cf0),{'boundaries':_0x19169e});_0x19169e=_0x533ad9[_0x55781c(0x164)](_0x4cdb3f,_0x19169e[_0x55781c(0x183)]);}_0x533ad9[_0x55781c(0x152)](_0x3647b6,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x19169e}),_0x461332++;}}),window[_0x42a1a9(0x154)]()?.[_0x42a1a9(0x18e)](),!0x0;}[_0x3f1f5a(0x155)](_0x46dbf2){const _0x55c1da=_0x3f1f5a;if(this[_0x55c1da(0x135)]!=_0x46dbf2)return!0x1;this[_0x55c1da(0x135)]=null,this[_0x55c1da(0x158)]=!0x1;const _0x4878a9=_0x23be6d(this[_0x55c1da(0x150)]),_0x58aa00=_0x4878a9[_0x55c1da(0x143)][_0x55c1da(0x14d)][_0x55c1da(0x141)](_0x55c1da(0x188));return _0x4878a9[_0x55c1da(0x143)][_0x55c1da(0x178)](_0x16479a=>{const _0x2a6611=_0x55c1da;for(const _0x378532 of _0x58aa00)_0x16479a[_0x2a6611(0x177)](_0x378532);}),!0x0;}[_0x3f1f5a(0x14e)](_0x2efa09){const _0x1e5089=_0x3f1f5a,_0x4e65d4=_0x23be6d(this[_0x1e5089(0x150)]),_0x54c8e9=_0x4e65d4[_0x1e5089(0x15e)][_0x1e5089(0x138)](_0x2efa09),_0x15bbad=new _0x2c4917(_0x4e65d4[_0x1e5089(0x172)][_0x1e5089(0x18b)][_0x1e5089(0x153)]);return this[_0x1e5089(0x176)](_0x54c8e9,_0x15bbad),_0x54c8e9;}[_0x3f1f5a(0x176)](_0x48a2bb,_0xa5ddf2){const _0x5096c0=_0x3f1f5a;let _0x568e7e=!0x1;const _0x1a17de=new Set();for(const _0x2fb47f of _0x48a2bb[_0x5096c0(0x18d)]()){const _0x27aa20=_0x2fb47f['is'](_0x5096c0(0x159))||_0x2fb47f['is'](_0x5096c0(0x12e));if(!_0x2fb47f['is'](_0x5096c0(0x13f)))continue;(this[_0x5096c0(0x176)](_0x2fb47f,_0xa5ddf2)||_0x27aa20)&&(_0xa5ddf2[_0x5096c0(0x130)](_0x5096c0(0x194),this[_0x5096c0(0x18c)](_0x1a17de),_0x2fb47f),_0x568e7e=!0x0);}return _0x568e7e;}[_0x3f1f5a(0x18c)](_0x7f4878){const _0x376ee2=_0x3f1f5a;let _0x164234;do{_0x164234='';for(let _0x252a24=0x0;_0x252a24<0x4;_0x252a24++)_0x164234+=String[_0x376ee2(0x18a)](0x61+Math[_0x376ee2(0x18f)](0x1a*Math[_0x376ee2(0x181)]()));}while(_0x7f4878[_0x376ee2(0x167)](_0x164234));return _0x7f4878[_0x376ee2(0x168)](_0x164234),_0x164234;}[_0x3f1f5a(0x133)](){const _0x5b2280=_0x3f1f5a,{model:_0x4a5d87}=_0x23be6d(this[_0x5b2280(0x150)]),_0x563bd5=_0x4a5d87[_0x5b2280(0x153)][_0x5b2280(0x186)],_0x2c51fa=_0x4a5d87[_0x5b2280(0x187)](_0x563bd5),_0x25c358=[],_0x37073a=_0x4a5d87[_0x5b2280(0x161)](_0x2c51fa)[_0x5b2280(0x162)]();for(const {item:_0x37bd1e}of _0x37073a)_0x37bd1e['is'](_0x5b2280(0x13c))?_0x25c358[_0x5b2280(0x191)](_0x37bd1e[_0x5b2280(0x15e)]):_0x37bd1e['is'](_0x5b2280(0x13f))&&_0x25c358[_0x5b2280(0x171)]>0x0&&'\x20'!==_0x25c358[_0x25c358[_0x5b2280(0x171)]-0x1]&&_0x25c358[_0x5b2280(0x191)]('\x20');return'\x22'+_0x25c358[_0x5b2280(0x14a)]('')[_0x5b2280(0x170)]()+'\x22';}[_0x3f1f5a(0x134)](){const _0x4503a2=_0x3f1f5a,_0x5be977=_0x23be6d(this[_0x4503a2(0x150)])[_0x4503a2(0x143)];return Array[_0x4503a2(0x12f)](_0x5be977[_0x4503a2(0x14d)][_0x4503a2(0x141)](_0x4503a2(0x188)))[_0x4503a2(0x14f)]((_0x191aba,_0x18f05e)=>_0x191aba[_0x4503a2(0x140)]()[_0x4503a2(0x13d)](_0x18f05e[_0x4503a2(0x140)]())?-0x1:_0x191aba[_0x4503a2(0x140)]()[_0x4503a2(0x136)](_0x18f05e[_0x4503a2(0x140)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x24848f=_0x218c;(function(_0x4479fd,_0x5e7ce7){const _0x4fabdb=_0x218c,_0x562e84=_0x4479fd();while(!![]){try{const _0x2fcf4d=-parseInt(_0x4fabdb(0x112))/0x1*(parseInt(_0x4fabdb(0x107))/0x2)+parseInt(_0x4fabdb(0x110))/0x3+parseInt(_0x4fabdb(0x11b))/0x4*(parseInt(_0x4fabdb(0x109))/0x5)+-parseInt(_0x4fabdb(0x102))/0x6*(-parseInt(_0x4fabdb(0x10a))/0x7)+parseInt(_0x4fabdb(0x10b))/0x8+parseInt(_0x4fabdb(0x10c))/0x9*(parseInt(_0x4fabdb(0x105))/0xa)+-parseInt(_0x4fabdb(0x118))/0xb;if(_0x2fcf4d===_0x5e7ce7)break;else _0x562e84['push'](_0x562e84['shift']());}catch(_0x49ccb3){_0x562e84['push'](_0x562e84['shift']());}}}(_0x3ae6,0xee836));import{EmitterMixin as _0x3ffc82}from'ckeditor5/src/utils.js';function _0x218c(_0x4a9727,_0x99ffab){const _0x3ae6fd=_0x3ae6();return _0x218c=function(_0x218c6e,_0x4a31c6){_0x218c6e=_0x218c6e-0x101;let _0x2ed98a=_0x3ae6fd[_0x218c6e];return _0x2ed98a;},_0x218c(_0x4a9727,_0x99ffab);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x24848f(0x11a)];export class AICapabilities extends _0x3ffc82(){[_0x24848f(0x10f)];[_0x24848f(0x104)];constructor(){const _0x527ae6=_0x24848f;super(),this[_0x527ae6(0x10f)]=!0x1,this[_0x527ae6(0x104)]=!0x1;}[_0x24848f(0x119)](){const _0x4f2e4a=_0x24848f;this[_0x4f2e4a(0x115)]();}[_0x24848f(0x115)](){const _0x522095=_0x24848f;this[_0x522095(0x10d)](!0x1),this[_0x522095(0x114)](!0x1);}[_0x24848f(0x111)](){const _0x1cab33=_0x24848f;return{'isWebSearchEnabled':this[_0x1cab33(0x10f)],'isReasoningEnabled':this[_0x1cab33(0x104)]};}static[_0x24848f(0x113)](_0x13e0e8){const _0x406f22=_0x24848f,_0x40da1b={};return _0x13e0e8&&_0x13e0e8[_0x406f22(0x10e)]&&(_0x40da1b[_0x406f22(0x116)]={}),_0x13e0e8&&_0x13e0e8[_0x406f22(0x101)]&&(_0x40da1b[_0x406f22(0x108)]={}),_0x40da1b;}[_0x24848f(0x103)](){const _0x20959b=_0x24848f;this[_0x20959b(0x10d)](!this[_0x20959b(0x10f)]);}[_0x24848f(0x106)](){const _0x78dff8=_0x24848f;this[_0x78dff8(0x114)](!this[_0x78dff8(0x104)]);}[_0x24848f(0x10d)](_0x18d496){const _0x104a32=_0x24848f;_0x18d496!==this[_0x104a32(0x10f)]&&(this[_0x104a32(0x10f)]=_0x18d496,this[_0x104a32(0x117)](_0x104a32(0x11a),this[_0x104a32(0x111)]()));}[_0x24848f(0x114)](_0x36c3e7){const _0x4f5d1e=_0x24848f;_0x36c3e7!==this[_0x4f5d1e(0x104)]&&(this[_0x4f5d1e(0x104)]=_0x36c3e7,this[_0x4f5d1e(0x117)](_0x4f5d1e(0x11a),this[_0x4f5d1e(0x111)]()));}}function _0x3ae6(){const _0x3241ab=['39221941HZllwA','init','capabilitiesUpdated','1580tKcozA','isReasoningEnabled','1433580uqVdYl','toggleWebSearch','_isReasoningEnabled','17526810LEdeNX','toggleReasoning','3686cDfxyD','reasoning','8405eFCWlq','14YMJCvV','5653464cPBCta','9EdbCTf','setWebSearch','isWebSearchEnabled','_isWebSearchEnabled','4322445bJopnz','getCapabilitiesConfig','271CdtKSo','getCapabilitiesRequestData','setReasoning','reset','webSearch','fire'];_0x3ae6=function(){return _0x3241ab;};return _0x3ae6();}
23
+ const _0x51a541=_0x120b;(function(_0x32d142,_0x790c6f){const _0x21194d=_0x120b,_0x8021d4=_0x32d142();while(!![]){try{const _0x26c7b6=-parseInt(_0x21194d(0x17a))/0x1*(-parseInt(_0x21194d(0x187))/0x2)+-parseInt(_0x21194d(0x17f))/0x3*(-parseInt(_0x21194d(0x18a))/0x4)+parseInt(_0x21194d(0x175))/0x5+-parseInt(_0x21194d(0x188))/0x6*(parseInt(_0x21194d(0x18d))/0x7)+-parseInt(_0x21194d(0x18e))/0x8+parseInt(_0x21194d(0x180))/0x9*(parseInt(_0x21194d(0x17b))/0xa)+parseInt(_0x21194d(0x181))/0xb;if(_0x26c7b6===_0x790c6f)break;else _0x8021d4['push'](_0x8021d4['shift']());}catch(_0x354522){_0x8021d4['push'](_0x8021d4['shift']());}}}(_0x1184,0x7c3cc));function _0x120b(_0x285e38,_0x53bdcd){const _0x1184aa=_0x1184();return _0x120b=function(_0x120b8c,_0x5a6784){_0x120b8c=_0x120b8c-0x174;let _0x5a3daf=_0x1184aa[_0x120b8c];return _0x5a3daf;},_0x120b(_0x285e38,_0x53bdcd);}import{EmitterMixin as _0x37e901}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x51a541(0x18c)];function _0x1184(){const _0xe16455=['4471920JIEtBR','_isWebSearchEnabled','305588ALNKCC','toggleReasoning','capabilitiesUpdated','7ScxNhI','4874512mRdRhp','getCapabilitiesConfig','2098585bydOAr','getCapabilitiesRequestData','reset','_isReasoningEnabled','reasoning','1xbpIhE','10RCmrUT','setReasoning','fire','toggleWebSearch','18ItmVGD','498006vryFAQ','2714118ruJLiI','setWebSearch','init','webSearch','isReasoningEnabled','isWebSearchEnabled','1366678GGCbtV'];_0x1184=function(){return _0xe16455;};return _0x1184();}export class AICapabilities extends _0x37e901(){[_0x51a541(0x189)];[_0x51a541(0x178)];constructor(){const _0x153c27=_0x51a541;super(),this[_0x153c27(0x189)]=!0x1,this[_0x153c27(0x178)]=!0x1;}[_0x51a541(0x183)](){const _0x37db68=_0x51a541;this[_0x37db68(0x177)]();}[_0x51a541(0x177)](){const _0x7a533e=_0x51a541;this[_0x7a533e(0x182)](!0x1),this[_0x7a533e(0x17c)](!0x1);}[_0x51a541(0x174)](){const _0x537356=_0x51a541;return{'isWebSearchEnabled':this[_0x537356(0x189)],'isReasoningEnabled':this[_0x537356(0x178)]};}static[_0x51a541(0x176)](_0x37d476){const _0x42f19c=_0x51a541,_0x49fdd2={};return _0x37d476&&_0x37d476[_0x42f19c(0x186)]&&(_0x49fdd2[_0x42f19c(0x184)]={}),_0x37d476&&_0x37d476[_0x42f19c(0x185)]&&(_0x49fdd2[_0x42f19c(0x179)]={}),_0x49fdd2;}[_0x51a541(0x17e)](){const _0x49192a=_0x51a541;this[_0x49192a(0x182)](!this[_0x49192a(0x189)]);}[_0x51a541(0x18b)](){const _0x10f659=_0x51a541;this[_0x10f659(0x17c)](!this[_0x10f659(0x178)]);}[_0x51a541(0x182)](_0x1d6c42){const _0x4d59d2=_0x51a541;_0x1d6c42!==this[_0x4d59d2(0x189)]&&(this[_0x4d59d2(0x189)]=_0x1d6c42,this[_0x4d59d2(0x17d)](_0x4d59d2(0x18c),this[_0x4d59d2(0x174)]()));}[_0x51a541(0x17c)](_0x2114e4){const _0x4df6dc=_0x51a541;_0x2114e4!==this[_0x4df6dc(0x178)]&&(this[_0x4df6dc(0x178)]=_0x2114e4,this[_0x4df6dc(0x17d)](_0x4df6dc(0x18c),this[_0x4df6dc(0x174)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x189e1e,_0x1e181c){var _0x42c6e4=_0x8365,_0x5ba332=_0x189e1e();while(!![]){try{var _0x8a93ab=-parseInt(_0x42c6e4(0x182))/0x1*(parseInt(_0x42c6e4(0x187))/0x2)+-parseInt(_0x42c6e4(0x184))/0x3+parseInt(_0x42c6e4(0x183))/0x4+-parseInt(_0x42c6e4(0x195))/0x5*(-parseInt(_0x42c6e4(0x18e))/0x6)+-parseInt(_0x42c6e4(0x192))/0x7*(parseInt(_0x42c6e4(0x191))/0x8)+-parseInt(_0x42c6e4(0x196))/0x9*(parseInt(_0x42c6e4(0x181))/0xa)+parseInt(_0x42c6e4(0x18d))/0xb;if(_0x8a93ab===_0x1e181c)break;else _0x5ba332['push'](_0x5ba332['shift']());}catch(_0x53529b){_0x5ba332['push'](_0x5ba332['shift']());}}}(_0x3ae5,0x443e5));function _0x3ae5(){var _0x165497=['569613iuLWST','html','selection','983924LzGgqb','text','URL','markdown','MARKDOWN','TEXT','14394468Bpbwpf','34980fZIFWF','HTML','document','3793352uHLYej','7cZkRvs','web-resource','file','50YeHeHl','18wXPRuu','FILE','SELECTION','DOCUMENT','1271370hesnuR','1CYsXrk','1291652HXuvCU'];_0x3ae5=function(){return _0x165497;};return _0x3ae5();}export var AIContextItemType;function _0x8365(_0x3b40cb,_0x240307){var _0x3ae5a6=_0x3ae5();return _0x8365=function(_0x836563,_0x19f841){_0x836563=_0x836563-0x17f;var _0x7ed9a8=_0x3ae5a6[_0x836563];return _0x7ed9a8;},_0x8365(_0x3b40cb,_0x240307);}!function(_0x4a21c9){var _0x313362=_0x8365;_0x4a21c9[_0x313362(0x197)]=_0x313362(0x194),_0x4a21c9[_0x313362(0x180)]=_0x313362(0x190),_0x4a21c9[_0x313362(0x189)]=_0x313362(0x193),_0x4a21c9[_0x313362(0x18c)]=_0x313362(0x188),_0x4a21c9[_0x313362(0x17f)]=_0x313362(0x186);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x400d3b){var _0x324331=_0x8365;_0x400d3b[_0x324331(0x18c)]=_0x324331(0x188),_0x400d3b[_0x324331(0x18b)]=_0x324331(0x18a),_0x400d3b[_0x324331(0x18f)]=_0x324331(0x185);}(AIContextTextResourceType||(AIContextTextResourceType={}));
23
+ (function(_0x3c4ae4,_0x31bd2b){var _0x2f2468=_0x3225,_0x129829=_0x3c4ae4();while(!![]){try{var _0x257782=-parseInt(_0x2f2468(0x1b9))/0x1+parseInt(_0x2f2468(0x1c4))/0x2*(parseInt(_0x2f2468(0x1c1))/0x3)+parseInt(_0x2f2468(0x1c5))/0x4+parseInt(_0x2f2468(0x1b4))/0x5+parseInt(_0x2f2468(0x1bd))/0x6+-parseInt(_0x2f2468(0x1c0))/0x7+-parseInt(_0x2f2468(0x1ba))/0x8*(parseInt(_0x2f2468(0x1af))/0x9);if(_0x257782===_0x31bd2b)break;else _0x129829['push'](_0x129829['shift']());}catch(_0x288467){_0x129829['push'](_0x129829['shift']());}}}(_0x5810,0xb57ec));function _0x3225(_0x12e7fc,_0x63bb87){var _0x58103d=_0x5810();return _0x3225=function(_0x322521,_0x58c4e2){_0x322521=_0x322521-0x1af;var _0x24c20d=_0x58103d[_0x322521];return _0x24c20d;},_0x3225(_0x12e7fc,_0x63bb87);}export var AIContextItemType;!function(_0x3b6ab1){var _0x28017b=_0x3225;_0x3b6ab1[_0x28017b(0x1bc)]=_0x28017b(0x1b2),_0x3b6ab1[_0x28017b(0x1b7)]=_0x28017b(0x1c2),_0x3b6ab1[_0x28017b(0x1b3)]=_0x28017b(0x1b6),_0x3b6ab1[_0x28017b(0x1b0)]=_0x28017b(0x1bb),_0x3b6ab1[_0x28017b(0x1c3)]=_0x28017b(0x1be);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x490652){var _0x2c7b0a=_0x3225;_0x490652[_0x2c7b0a(0x1b0)]=_0x2c7b0a(0x1bb),_0x490652[_0x2c7b0a(0x1b8)]=_0x2c7b0a(0x1b5),_0x490652[_0x2c7b0a(0x1bf)]=_0x2c7b0a(0x1b1);}(AIContextTextResourceType||(AIContextTextResourceType={}));function _0x5810(){var _0x17bf2c=['20574EsKaTZ','4958736xuYFcd','3357KPMERg','TEXT','html','file','URL','2948880wJWfgU','markdown','web-resource','DOCUMENT','MARKDOWN','453171MfMgFs','32584rnvLhs','text','FILE','7851090gjLzwV','selection','HTML','3603278scydiT','27irXioM','document','SELECTION'];_0x5810=function(){return _0x17bf2c;};return _0x5810();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ea14f=_0x22c0;function _0x3c6a(){const _0x11f3d1=['web-search','replies','reasoningStarted','abort','textDelta','44143ifaLxB','source','reasoningFinished','_finalizeInteraction','getStream','isStopped','appendContent','find','currentRequest','message-metadata','content','webSearchFinished','forEach','abortController','createReply','webSearchStarted','stop','push','event','2284608upkdZW','replyContentUpdated','start','callId','getDocumentContext','interactionFinished','ai-interaction-invalid-event-type','connector','replyChangeGroupStateUpdated','messageId','currentReply','123xgjViM','done','_isWebSearching','action-metadata','248IrwfRb','getReply','delegate','interactionCreated','destroy','actionCallId','setConversationTitle','data','ai-chat-interaction-error','1355084BFPXNE','19831feTLav','interactionStarted','fire','5jOadqZ','51320Edjcua','conversationTitle','reasoning','isDestroyed','2220XaIkJP','replyCreated','splice','4092hRKvmE','interactionDestroyed','error','length','_isReasoning','793158elklMK','sources','1179nDMSap','modification-delta','interactionStopped','sendRequest','stopListening','editor'];_0x3c6a=function(){return _0x11f3d1;};return _0x3c6a();}(function(_0x54d776,_0x57a52d){const _0x383b18=_0x22c0,_0xd7058e=_0x54d776();while(!![]){try{const _0x37b4eb=-parseInt(_0x383b18(0x1ab))/0x1*(-parseInt(_0x383b18(0x1c4))/0x2)+parseInt(_0x383b18(0x1a0))/0x3+-parseInt(_0x383b18(0x1b8))/0x4+parseInt(_0x383b18(0x1bc))/0x5*(-parseInt(_0x383b18(0x1c9))/0x6)+-parseInt(_0x383b18(0x1b9))/0x7*(parseInt(_0x383b18(0x1af))/0x8)+-parseInt(_0x383b18(0x1cb))/0x9*(parseInt(_0x383b18(0x1bd))/0xa)+parseInt(_0x383b18(0x1d6))/0xb*(parseInt(_0x383b18(0x1c1))/0xc);if(_0x37b4eb===_0x57a52d)break;else _0xd7058e['push'](_0xd7058e['shift']());}catch(_0x470f2e){_0xd7058e['push'](_0xd7058e['shift']());}}}(_0x3c6a,0x800e8));import{CKEditorError as _0x40592e,EmitterMixin as _0x2801aa,logWarning as _0xe63cb0,uid as _0x40a9e9}from'ckeditor5/src/utils.js';import{AIReply as _0x9d984e,isIgnoredReplyType as _0x137826,isValidReplyType as _0x1baf04,isReplyTitleType as _0x566223,isSourceType as _0x377e13}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x5ea14f(0x1b2),_0x5ea14f(0x1ba),_0x5ea14f(0x1cd),_0x5ea14f(0x1a5),_0x5ea14f(0x1c5),_0x5ea14f(0x1c2),_0x5ea14f(0x1a1),_0x5ea14f(0x1a8),_0x5ea14f(0x1b5),_0x5ea14f(0x19c),_0x5ea14f(0x198),_0x5ea14f(0x1d3),_0x5ea14f(0x18f),_0x5ea14f(0x1c6)];function _0x22c0(_0x3ffac7,_0x1261be){const _0x3c6a1d=_0x3c6a();return _0x22c0=function(_0x22c0fe,_0x5667ea){_0x22c0fe=_0x22c0fe-0x18f;let _0x3941b2=_0x3c6a1d[_0x22c0fe];return _0x3941b2;},_0x22c0(_0x3ffac7,_0x1261be);}export class AIInteraction extends _0x2801aa(){['id'];[_0x5ea14f(0x1d2)]=[];[_0x5ea14f(0x1aa)];[_0x5ea14f(0x1a9)];[_0x5ea14f(0x1b4)];[_0x5ea14f(0x195)];[_0x5ea14f(0x1a7)];[_0x5ea14f(0x192)]=!0x1;[_0x5ea14f(0x1c0)]=!0x1;[_0x5ea14f(0x1d0)];[_0x5ea14f(0x1c8)]=!0x1;[_0x5ea14f(0x1ad)]=!0x1;constructor({connector:_0x596d36,editor:_0x13f222}){const _0xa87258=_0x5ea14f;super(),this['id']=_0x40a9e9(),this[_0xa87258(0x1a7)]=_0x596d36,this[_0xa87258(0x192)]=!0x0,this[_0xa87258(0x1d0)]=_0x13f222;}async[_0x5ea14f(0x1a2)](){const _0x45af2a=_0x5ea14f;let _0x5f5431;const _0x435658=[];this[_0x45af2a(0x192)]=!0x1;try{this[_0x45af2a(0x195)]=await this[_0x45af2a(0x1ce)](),this[_0x45af2a(0x1bb)](_0x45af2a(0x1ba),this);const _0x25f920=await this[_0x45af2a(0x195)][_0x45af2a(0x191)]();for await(const _0x56b4c8 of _0x25f920){if(this[_0x45af2a(0x192)])return;if(_0x45af2a(0x1c6)===_0x56b4c8[_0x45af2a(0x19f)])return void this[_0x45af2a(0x1bb)](_0x45af2a(0x1c6),{'error':new _0x40592e(_0x45af2a(0x1b7),this)});if(_0x45af2a(0x196)!==_0x56b4c8[_0x45af2a(0x19f)]){if(_0x45af2a(0x1ae)!==_0x56b4c8[_0x45af2a(0x19f)]){if(_0x566223(_0x56b4c8[_0x45af2a(0x19f)])&&this[_0x45af2a(0x1b5)](_0x56b4c8[_0x45af2a(0x1b6)][_0x45af2a(0x1be)],!0x0),_0x377e13(_0x56b4c8[_0x45af2a(0x19f)]))_0x435658[_0x45af2a(0x19e)](_0x56b4c8[_0x45af2a(0x1b6)][_0x45af2a(0x1d7)]);else{if(_0x1baf04(_0x56b4c8[_0x45af2a(0x19f)])){if(_0x56b4c8[_0x45af2a(0x19f)]!==_0x5f5431){if(_0x5f5431=_0x56b4c8[_0x45af2a(0x19f)],_0x45af2a(0x1d1)===_0x56b4c8[_0x45af2a(0x19f)]){this[_0x45af2a(0x1ad)]||(this[_0x45af2a(0x1ad)]=!0x0,this[_0x45af2a(0x1bb)](_0x45af2a(0x19c),this));continue;}if(_0x45af2a(0x1bf)===_0x56b4c8[_0x45af2a(0x19f)]){this[_0x45af2a(0x1c8)]||(this[_0x45af2a(0x1c8)]=!0x0,this[_0x45af2a(0x1bb)](_0x45af2a(0x1d3),this));continue;}this[_0x45af2a(0x1c8)]&&(this[_0x45af2a(0x1c8)]=!0x1,this[_0x45af2a(0x1bb)](_0x45af2a(0x18f),this)),this[_0x45af2a(0x1ad)]&&(this[_0x45af2a(0x1ad)]=!0x1,this[_0x45af2a(0x1bb)](_0x45af2a(0x198),this)),this[_0x45af2a(0x1aa)]&&this[_0x45af2a(0x1aa)][_0x45af2a(0x1ac)](),this[_0x45af2a(0x1aa)]=this[_0x45af2a(0x19b)]({'type':_0x56b4c8[_0x45af2a(0x19f)],'interactionId':this['id'],'id':_0x56b4c8[_0x45af2a(0x1b6)]?.['id']}),_0x435658[_0x45af2a(0x1c7)]>0x0&&_0x45af2a(0x1cc)===_0x56b4c8[_0x45af2a(0x19f)]&&(this[_0x45af2a(0x1aa)][_0x45af2a(0x1ca)]=_0x435658[_0x45af2a(0x1c3)](0x0));}_0x56b4c8[_0x45af2a(0x1b6)][_0x45af2a(0x1d5)]&&this[_0x45af2a(0x1aa)][_0x45af2a(0x193)](_0x56b4c8[_0x45af2a(0x1b6)][_0x45af2a(0x1d5)]);}else _0x137826(_0x56b4c8[_0x45af2a(0x19f)])||_0xe63cb0(_0x45af2a(0x1a6),{'chunk':_0x56b4c8});}}else this[_0x45af2a(0x1b4)]=_0x56b4c8[_0x45af2a(0x1b6)][_0x45af2a(0x1a3)];}else this[_0x45af2a(0x1a9)]=_0x56b4c8[_0x45af2a(0x1b6)][_0x45af2a(0x1a9)];}}finally{this[_0x45af2a(0x192)]||(_0x435658[_0x45af2a(0x1c7)]>0x0&&(this[_0x45af2a(0x1aa)][_0x45af2a(0x1ca)]=_0x435658[_0x45af2a(0x1c3)](0x0)),this[_0x45af2a(0x190)](),this[_0x45af2a(0x1bb)](_0x45af2a(0x1a5),this));}}[_0x5ea14f(0x19d)](){const _0x1d8af1=_0x5ea14f;this[_0x1d8af1(0x192)]||(this[_0x1d8af1(0x190)](),this[_0x1d8af1(0x1bb)](_0x1d8af1(0x1cd),this));}[_0x5ea14f(0x1b0)](_0xeb9c6f){const _0x32a14f=_0x5ea14f;return this[_0x32a14f(0x1d2)][_0x32a14f(0x194)](_0x2554f5=>_0x2554f5['id']===_0xeb9c6f);}[_0x5ea14f(0x1b3)](){const _0x5bc3a2=_0x5ea14f;this[_0x5bc3a2(0x1c0)]||(this[_0x5bc3a2(0x19d)](),this[_0x5bc3a2(0x1d2)][_0x5bc3a2(0x199)](_0x4b369e=>_0x4b369e[_0x5bc3a2(0x1b3)]()),this[_0x5bc3a2(0x1d2)]=[],this[_0x5bc3a2(0x1c0)]=!0x0,this[_0x5bc3a2(0x1bb)](_0x5bc3a2(0x1c5),this),this[_0x5bc3a2(0x1cf)]());}[_0x5ea14f(0x19b)](_0x414299){const _0x1ebabb=_0x5ea14f,_0x5af6af=new _0x9d984e({'editor':this[_0x1ebabb(0x1d0)],'documentContextContent':this[_0x1ebabb(0x1a4)]()?.[_0x1ebabb(0x197)],..._0x414299});return this[_0x1ebabb(0x1d2)][_0x1ebabb(0x19e)](_0x5af6af),_0x5af6af[_0x1ebabb(0x1b1)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x1ebabb(0x1bb)](_0x1ebabb(0x1c2),_0x5af6af),_0x5af6af;}[_0x5ea14f(0x1b5)](_0x42d06b,_0x12fabc=!0x1){const _0xc3b437=_0x5ea14f;this[_0xc3b437(0x1bb)](_0xc3b437(0x1b5),_0x42d06b,_0x12fabc);}[_0x5ea14f(0x190)](){const _0x25ba06=_0x5ea14f;this[_0x25ba06(0x192)]=!0x0,this[_0x25ba06(0x195)]&&this[_0x25ba06(0x195)][_0x25ba06(0x19a)][_0x25ba06(0x1d4)](),this[_0x25ba06(0x1aa)]&&this[_0x25ba06(0x1aa)][_0x25ba06(0x1ac)](),this[_0x25ba06(0x195)]=this[_0x25ba06(0x1aa)]=void 0x0;}}
23
+ const _0x14efa6=_0x10da;(function(_0x2a11b6,_0xe9b415){const _0x1931ce=_0x10da,_0x5c7a48=_0x2a11b6();while(!![]){try{const _0x2ecade=-parseInt(_0x1931ce(0x171))/0x1*(-parseInt(_0x1931ce(0x177))/0x2)+parseInt(_0x1931ce(0x16b))/0x3*(-parseInt(_0x1931ce(0x15e))/0x4)+parseInt(_0x1931ce(0x157))/0x5*(parseInt(_0x1931ce(0x19a))/0x6)+-parseInt(_0x1931ce(0x169))/0x7*(parseInt(_0x1931ce(0x188))/0x8)+-parseInt(_0x1931ce(0x17d))/0x9*(-parseInt(_0x1931ce(0x16a))/0xa)+parseInt(_0x1931ce(0x196))/0xb*(parseInt(_0x1931ce(0x183))/0xc)+parseInt(_0x1931ce(0x165))/0xd;if(_0x2ecade===_0xe9b415)break;else _0x5c7a48['push'](_0x5c7a48['shift']());}catch(_0x4b40b0){_0x5c7a48['push'](_0x5c7a48['shift']());}}}(_0x395b,0xee460));import{CKEditorError as _0x457db6,EmitterMixin as _0x2d42cf,logWarning as _0x188bfd,uid as _0x5648de}from'ckeditor5/src/utils.js';function _0x395b(){const _0x695932=['destroy','find','web-search','interactionDestroyed','delegate','2045446qEeaZs','reasoningStarted','message-metadata','replies','9706417gAFrvC','10FzIfNF','144174iXLbKY','textDelta','conversationTitle','action-metadata','webSearchFinished','reasoning','199LZSVBT','currentReply','start','createReply','setConversationTitle','ai-interaction-invalid-event-type','5818THyEqq','messageId','isDestroyed','getReply','interactionCreated','sendRequest','7699203HQAlMd','modification-delta','data','splice','push','event','144gsWDdt','interactionFinished','callId','length','_finalizeInteraction','8DvJPcX','getDocumentContext','replyCreated','isStopped','editor','stopListening','getStream','actionCallId','abortController','stop','replyContentUpdated','content','done','interactionStopped','733777lGuVYb','fire','forEach','ai-chat-interaction-error','102KUVNqF','appendContent','sources','reasoningFinished','connector','webSearchStarted','source','401205fvILDk','abort','replyChangeGroupStateUpdated','error','currentRequest','_isReasoning','interactionStarted','116CfdeVb','_isWebSearching'];_0x395b=function(){return _0x695932;};return _0x395b();}import{AIReply as _0x56365d,isIgnoredReplyType as _0x5643c4,isValidReplyType as _0x60721a,isReplyTitleType as _0x4d59db,isSourceType as _0xef9e33}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x14efa6(0x17b),_0x14efa6(0x15d),_0x14efa6(0x195),_0x14efa6(0x184),_0x14efa6(0x163),_0x14efa6(0x18a),_0x14efa6(0x192),_0x14efa6(0x159),_0x14efa6(0x175),_0x14efa6(0x19f),_0x14efa6(0x16f),_0x14efa6(0x166),_0x14efa6(0x19d),_0x14efa6(0x15a)];function _0x10da(_0x2831b2,_0x3bd34a){const _0x395bee=_0x395b();return _0x10da=function(_0x10da33,_0x2f0c17){_0x10da33=_0x10da33-0x157;let _0x5b8a59=_0x395bee[_0x10da33];return _0x5b8a59;},_0x10da(_0x2831b2,_0x3bd34a);}export class AIInteraction extends _0x2d42cf(){['id'];[_0x14efa6(0x168)]=[];[_0x14efa6(0x172)];[_0x14efa6(0x178)];[_0x14efa6(0x18f)];[_0x14efa6(0x15b)];[_0x14efa6(0x19e)];[_0x14efa6(0x18b)]=!0x1;[_0x14efa6(0x179)]=!0x1;[_0x14efa6(0x18c)];[_0x14efa6(0x15c)]=!0x1;[_0x14efa6(0x15f)]=!0x1;constructor({connector:_0x274801,editor:_0x5dea0c}){const _0x4119fb=_0x14efa6;super(),this['id']=_0x5648de(),this[_0x4119fb(0x19e)]=_0x274801,this[_0x4119fb(0x18b)]=!0x0,this[_0x4119fb(0x18c)]=_0x5dea0c;}async[_0x14efa6(0x173)](){const _0x1fbeb2=_0x14efa6;let _0x360f7c;const _0x182321=[];this[_0x1fbeb2(0x18b)]=!0x1;try{this[_0x1fbeb2(0x15b)]=await this[_0x1fbeb2(0x17c)](),this[_0x1fbeb2(0x197)](_0x1fbeb2(0x15d),this);const _0x30efc5=await this[_0x1fbeb2(0x15b)][_0x1fbeb2(0x18e)]();for await(const _0xa32b24 of _0x30efc5){if(this[_0x1fbeb2(0x18b)])return;if(_0x1fbeb2(0x15a)===_0xa32b24[_0x1fbeb2(0x182)])return void this[_0x1fbeb2(0x197)](_0x1fbeb2(0x15a),{'error':new _0x457db6(_0x1fbeb2(0x199),this)});if(_0x1fbeb2(0x167)!==_0xa32b24[_0x1fbeb2(0x182)]){if(_0x1fbeb2(0x16e)!==_0xa32b24[_0x1fbeb2(0x182)]){if(_0x4d59db(_0xa32b24[_0x1fbeb2(0x182)])&&this[_0x1fbeb2(0x175)](_0xa32b24[_0x1fbeb2(0x17f)][_0x1fbeb2(0x16d)],!0x0),_0xef9e33(_0xa32b24[_0x1fbeb2(0x182)]))_0x182321[_0x1fbeb2(0x181)](_0xa32b24[_0x1fbeb2(0x17f)][_0x1fbeb2(0x1a0)]);else{if(_0x60721a(_0xa32b24[_0x1fbeb2(0x182)])){if(_0xa32b24[_0x1fbeb2(0x182)]!==_0x360f7c){if(_0x360f7c=_0xa32b24[_0x1fbeb2(0x182)],_0x1fbeb2(0x162)===_0xa32b24[_0x1fbeb2(0x182)]){this[_0x1fbeb2(0x15f)]||(this[_0x1fbeb2(0x15f)]=!0x0,this[_0x1fbeb2(0x197)](_0x1fbeb2(0x19f),this));continue;}if(_0x1fbeb2(0x170)===_0xa32b24[_0x1fbeb2(0x182)]){this[_0x1fbeb2(0x15c)]||(this[_0x1fbeb2(0x15c)]=!0x0,this[_0x1fbeb2(0x197)](_0x1fbeb2(0x166),this));continue;}this[_0x1fbeb2(0x15c)]&&(this[_0x1fbeb2(0x15c)]=!0x1,this[_0x1fbeb2(0x197)](_0x1fbeb2(0x19d),this)),this[_0x1fbeb2(0x15f)]&&(this[_0x1fbeb2(0x15f)]=!0x1,this[_0x1fbeb2(0x197)](_0x1fbeb2(0x16f),this)),this[_0x1fbeb2(0x172)]&&this[_0x1fbeb2(0x172)][_0x1fbeb2(0x194)](),this[_0x1fbeb2(0x172)]=this[_0x1fbeb2(0x174)]({'type':_0xa32b24[_0x1fbeb2(0x182)],'interactionId':this['id'],'id':_0xa32b24[_0x1fbeb2(0x17f)]?.['id']}),_0x182321[_0x1fbeb2(0x186)]>0x0&&_0x1fbeb2(0x17e)===_0xa32b24[_0x1fbeb2(0x182)]&&(this[_0x1fbeb2(0x172)][_0x1fbeb2(0x19c)]=_0x182321[_0x1fbeb2(0x180)](0x0));}_0xa32b24[_0x1fbeb2(0x17f)][_0x1fbeb2(0x16c)]&&this[_0x1fbeb2(0x172)][_0x1fbeb2(0x19b)](_0xa32b24[_0x1fbeb2(0x17f)][_0x1fbeb2(0x16c)]);}else _0x5643c4(_0xa32b24[_0x1fbeb2(0x182)])||_0x188bfd(_0x1fbeb2(0x176),{'chunk':_0xa32b24});}}else this[_0x1fbeb2(0x18f)]=_0xa32b24[_0x1fbeb2(0x17f)][_0x1fbeb2(0x185)];}else this[_0x1fbeb2(0x178)]=_0xa32b24[_0x1fbeb2(0x17f)][_0x1fbeb2(0x178)];}}finally{this[_0x1fbeb2(0x18b)]||(_0x182321[_0x1fbeb2(0x186)]>0x0&&(this[_0x1fbeb2(0x172)][_0x1fbeb2(0x19c)]=_0x182321[_0x1fbeb2(0x180)](0x0)),this[_0x1fbeb2(0x187)](),this[_0x1fbeb2(0x197)](_0x1fbeb2(0x184),this));}}[_0x14efa6(0x191)](){const _0x258be3=_0x14efa6;this[_0x258be3(0x18b)]||(this[_0x258be3(0x187)](),this[_0x258be3(0x197)](_0x258be3(0x195),this));}[_0x14efa6(0x17a)](_0xf806cb){const _0xe0e8aa=_0x14efa6;return this[_0xe0e8aa(0x168)][_0xe0e8aa(0x161)](_0x3bfa89=>_0x3bfa89['id']===_0xf806cb);}[_0x14efa6(0x160)](){const _0x22beca=_0x14efa6;this[_0x22beca(0x179)]||(this[_0x22beca(0x191)](),this[_0x22beca(0x168)][_0x22beca(0x198)](_0x19ac76=>_0x19ac76[_0x22beca(0x160)]()),this[_0x22beca(0x168)]=[],this[_0x22beca(0x179)]=!0x0,this[_0x22beca(0x197)](_0x22beca(0x163),this),this[_0x22beca(0x18d)]());}[_0x14efa6(0x174)](_0x5bbc72){const _0x3016d2=_0x14efa6,_0x502365=new _0x56365d({'editor':this[_0x3016d2(0x18c)],'documentContextContent':this[_0x3016d2(0x189)]()?.[_0x3016d2(0x193)],..._0x5bbc72});return this[_0x3016d2(0x168)][_0x3016d2(0x181)](_0x502365),_0x502365[_0x3016d2(0x164)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x3016d2(0x197)](_0x3016d2(0x18a),_0x502365),_0x502365;}[_0x14efa6(0x175)](_0x2d3f44,_0x1ff105=!0x1){const _0x411d3e=_0x14efa6;this[_0x411d3e(0x197)](_0x411d3e(0x175),_0x2d3f44,_0x1ff105);}[_0x14efa6(0x187)](){const _0x502fda=_0x14efa6;this[_0x502fda(0x18b)]=!0x0,this[_0x502fda(0x15b)]&&this[_0x502fda(0x15b)][_0x502fda(0x190)][_0x502fda(0x158)](),this[_0x502fda(0x172)]&&this[_0x502fda(0x172)][_0x502fda(0x194)](),this[_0x502fda(0x15b)]=this[_0x502fda(0x172)]=void 0x0;}}