@ckeditor/ckeditor5-ai 47.4.0-alpha.3 → 47.4.0-alpha.5

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 (292) 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/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  208. package/src/aichat/utils/eventnames.js +1 -1
  209. package/src/aichat/utils/promisequeue.js +1 -1
  210. package/src/aichathistory/aichathistory.js +1 -1
  211. package/src/aichathistory/aichathistorycontroller.js +1 -1
  212. package/src/aichathistory/aichathistoryui.js +1 -1
  213. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  214. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  215. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  216. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  217. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  219. package/src/aicore/aiconnector.js +1 -1
  220. package/src/aicore/aiediting.js +1 -1
  221. package/src/aicore/model/aicapabilities.js +1 -1
  222. package/src/aicore/model/aicontext.js +1 -1
  223. package/src/aicore/model/aiinteraction.js +1 -1
  224. package/src/aicore/model/aimodels.js +1 -1
  225. package/src/aicore/model/aireply.js +1 -1
  226. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  227. package/src/aicore/pipeline/airesponseparser.js +2 -2
  228. package/src/aicore/ui/aidisclaimerview.js +1 -1
  229. package/src/aicore/ui/aiskeleton.js +1 -1
  230. package/src/aicore/ui/aispinner.js +1 -1
  231. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  232. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  236. package/src/aicore/utils/common-translations.js +1 -1
  237. package/src/aicore/utils/createresizebutton.js +1 -1
  238. package/src/aicore/utils/documentposition.js +1 -1
  239. package/src/aicore/utils/documentrange.js +1 -1
  240. package/src/aicore/utils/eventnames.js +1 -1
  241. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  242. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  243. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  244. package/src/aicore/utils/htmlparser.js +1 -1
  245. package/src/aicore/utils/htmlstreamer.js +1 -1
  246. package/src/aicore/utils/scrollmanager.js +1 -1
  247. package/src/aieditorintegration/aieditorintegration.js +1 -1
  248. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  249. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  250. package/src/aiquickactions/aiquickactions.js +1 -1
  251. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  252. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  253. package/src/aiquickactions/aiquickactionsui.js +1 -1
  254. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  258. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  259. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  260. package/src/aireviewmode/aireviewmode.js +1 -1
  261. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  262. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  263. package/src/aireviewmode/aireviewmodeui.js +1 -1
  264. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  265. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  266. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  269. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  270. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  271. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  272. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  273. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  282. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  283. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  284. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  285. package/src/aitabs/aitabs.js +1 -1
  286. package/src/aitabs/aitabsmainview.js +1 -1
  287. package/src/aitabs/tabs/aitabsview.js +1 -1
  288. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  289. package/src/aitabs/tabs/tabpanelview.js +1 -1
  290. package/src/errors.js +1 -1
  291. package/src/errorsmap.js +1 -1
  292. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x46e6e3=_0x13c0;(function(_0x14676e,_0x34f1e6){const _0x23ca83=_0x13c0,_0x3e7af6=_0x14676e();while(!![]){try{const _0x5070f0=parseInt(_0x23ca83(0xaa))/0x1+-parseInt(_0x23ca83(0x92))/0x2*(-parseInt(_0x23ca83(0xa7))/0x3)+-parseInt(_0x23ca83(0xb6))/0x4*(-parseInt(_0x23ca83(0xa8))/0x5)+-parseInt(_0x23ca83(0x8a))/0x6*(-parseInt(_0x23ca83(0xac))/0x7)+parseInt(_0x23ca83(0x87))/0x8*(parseInt(_0x23ca83(0xa1))/0x9)+parseInt(_0x23ca83(0x90))/0xa*(-parseInt(_0x23ca83(0x8f))/0xb)+-parseInt(_0x23ca83(0x8e))/0xc;if(_0x5070f0===_0x34f1e6)break;else _0x3e7af6['push'](_0x3e7af6['shift']());}catch(_0x1b5f56){_0x3e7af6['push'](_0x3e7af6['shift']());}}}(_0x3f98,0x1a2ef));import{EmitterMixin as _0x275ba7}from'ckeditor5/src/utils.js';function _0x13c0(_0xf6b0bb,_0x4b4feb){const _0x3f98b7=_0x3f98();return _0x13c0=function(_0x13c0d6,_0x51bbe1){_0x13c0d6=_0x13c0d6-0x86;let _0x8f3937=_0x3f98b7[_0x13c0d6];return _0x8f3937;},_0x13c0(_0xf6b0bb,_0x4b4feb);}import{AIChatHistoryItem as _0x5b3824}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x275ba7(){[_0x46e6e3(0x9d)]=[];[_0x46e6e3(0xb5)];[_0x46e6e3(0xa3)];constructor({connector:_0x50e8a1,group:_0x110cd4}){const _0x13c958=_0x46e6e3;super(),this[_0x13c958(0xb5)]=_0x50e8a1,this[_0x13c958(0xa3)]=_0x110cd4;}async[_0x46e6e3(0x8b)](){const _0x17a6df=_0x46e6e3;try{const _0x5dfdad=this[_0x17a6df(0xb5)][_0x17a6df(0x9b)](this[_0x17a6df(0xa3)]),_0x147fa1=await _0x5dfdad[_0x17a6df(0x97)]();this[_0x17a6df(0xb2)](_0x147fa1);}catch(_0xe39848){this[_0x17a6df(0x88)](_0x17a6df(0xb4),{'error':_0xe39848,'operation':_0x17a6df(0x8b)});}}[_0x46e6e3(0x8c)](_0x1ed1cb){const _0x480a28=_0x46e6e3;this[_0x480a28(0x9d)][_0x480a28(0xa4)](_0x1ed1cb);}async[_0x46e6e3(0xa5)](_0x24702b){const _0x56c064=_0x46e6e3,_0x3e4abe=this[_0x56c064(0x9d)][_0x56c064(0x9f)](_0x257698=>_0x257698['id']===_0x24702b);if(-0x1===_0x3e4abe)return!0x1;try{return await this[_0x56c064(0xb5)][_0x56c064(0xad)](_0x24702b)[_0x56c064(0x86)](),this[_0x56c064(0x9d)][_0x56c064(0xb0)](_0x3e4abe,0x1),this[_0x56c064(0x88)](_0x56c064(0x91),{'itemId':_0x24702b}),!0x0;}catch(_0x47520f){return this[_0x56c064(0x88)](_0x56c064(0xb4),{'error':_0x47520f,'operation':_0x56c064(0xa5),'itemId':_0x24702b}),!0x1;}}[_0x46e6e3(0x99)](_0x106d9c){const _0x9b3ed=_0x46e6e3;return this[_0x9b3ed(0x9d)][_0x9b3ed(0x9c)](_0x46c2ce=>_0x46c2ce['id']===_0x106d9c);}async[_0x46e6e3(0x9e)](_0x110005,_0x2a0e8e){const _0x28d742=_0x46e6e3,_0x50fb2e=this[_0x28d742(0x99)](_0x110005);if(!_0x50fb2e)return!0x1;try{return await this[_0x28d742(0xb5)][_0x28d742(0x93)](_0x110005,{'title':_0x2a0e8e})[_0x28d742(0xa2)](),_0x50fb2e[_0x28d742(0xb3)](_0x2a0e8e),this[_0x28d742(0x88)](_0x28d742(0x95),{'itemId':_0x110005,'updates':{'title':_0x2a0e8e}}),!0x0;}catch(_0x3b85e7){return this[_0x28d742(0x88)](_0x28d742(0xb4),{'error':_0x3b85e7,'operation':_0x28d742(0x9e),'itemId':_0x110005}),!0x1;}}async[_0x46e6e3(0x96)](_0xcc75a0,_0x2578b7){const _0x4325e1=_0x46e6e3,_0x40dbd7=this[_0x4325e1(0x99)](_0xcc75a0);if(!_0x40dbd7)return!0x1;try{return await this[_0x4325e1(0xb5)][_0x4325e1(0x93)](_0xcc75a0,{'pinned':_0x2578b7})[_0x4325e1(0xa2)](),_0x40dbd7[_0x4325e1(0x9a)](_0x2578b7),this[_0x4325e1(0x88)](_0x4325e1(0x95),{'itemId':_0xcc75a0,'updates':{'pinned':_0x2578b7}}),!0x0;}catch(_0x5cc7bc){return this[_0x4325e1(0x88)](_0x4325e1(0xb4),{'error':_0x5cc7bc,'operation':_0x4325e1(0x96),'itemId':_0xcc75a0}),!0x1;}}[_0x46e6e3(0xb2)](_0x5be63d){const _0x38e406=_0x46e6e3;try{this[_0x38e406(0x9d)]=[],_0x5be63d[_0x38e406(0xab)](_0x303385=>{const _0x4d3302=_0x38e406;this[_0x4d3302(0x8c)](new _0x5b3824(_0x303385));}),this[_0x38e406(0x88)](_0x38e406(0xb1),{'items':[...this[_0x38e406(0x9d)]]});}catch(_0x771303){this[_0x38e406(0x88)](_0x38e406(0xb4),{'error':_0x771303,'operation':_0x38e406(0xb2)});}}[_0x46e6e3(0xaf)](_0x29930b={}){const _0x4d989d=_0x46e6e3,_0x1f58b7=void 0x0!==_0x29930b[_0x4d989d(0x94)]&&_0x29930b[_0x4d989d(0x94)],_0x2267c2=_0x29930b[_0x4d989d(0xa9)]?new Date(_0x29930b[_0x4d989d(0xa9)][_0x4d989d(0xa6)](),_0x29930b[_0x4d989d(0xa9)][_0x4d989d(0x8d)](),_0x29930b[_0x4d989d(0xa9)][_0x4d989d(0x89)]()):null,_0xb90772=_0x29930b['to']?new Date(_0x29930b['to'][_0x4d989d(0xa6)](),_0x29930b['to'][_0x4d989d(0x8d)](),_0x29930b['to'][_0x4d989d(0x89)]()):null;return this[_0x4d989d(0x9d)][_0x4d989d(0xae)](_0x2708d3=>{const _0x9c77a6=_0x4d989d;if(_0x2708d3[_0x9c77a6(0x94)]!==_0x1f58b7)return!0x1;if(_0xb90772){const _0x4d4774=new Date(_0x2708d3[_0x9c77a6(0xa0)][_0x9c77a6(0xa6)](),_0x2708d3[_0x9c77a6(0xa0)][_0x9c77a6(0x8d)](),_0x2708d3[_0x9c77a6(0xa0)][_0x9c77a6(0x89)]());return _0x2267c2?_0x2267c2[_0x9c77a6(0x98)]()===_0xb90772[_0x9c77a6(0x98)]()?_0x4d4774[_0x9c77a6(0x98)]()===_0x2267c2[_0x9c77a6(0x98)]():_0x4d4774<_0xb90772&&_0x4d4774>=_0x2267c2:_0x4d4774<_0xb90772;}return!0x0;});}}function _0x3f98(){const _0xd9e8f5=['updateTitle','error','connector','8dXneKh','execute','29856GDxGwv','fire','getDate','559590tmunzJ','init','addItem','getMonth','6783444kAyBKW','142043BycfCN','90ScZzIu','itemRemoved','191848bvdQvj','updateConversation','pinned','itemUpdated','updateItemPinned','getConversations','getTime','getItem','updatePinned','fetchConversations','find','items','updateItemTitle','findIndex','createdAt','297fQYNgu','getResult','group','push','removeItem','getFullYear','3tcAKuG','486515YOAfUB','from','188535gFWAiC','map','14QDriAO','deleteConversation','filter','getItems','splice','itemsLoaded','loadItems'];_0x3f98=function(){return _0xd9e8f5;};return _0x3f98();}
23
+ const _0x21a2fe=_0x4a8e;(function(_0x1f2b8c,_0x2f2a2a){const _0x1a7fdb=_0x4a8e,_0x1ddf71=_0x1f2b8c();while(!![]){try{const _0x33e7f5=parseInt(_0x1a7fdb(0x11c))/0x1+parseInt(_0x1a7fdb(0x122))/0x2+parseInt(_0x1a7fdb(0x131))/0x3*(parseInt(_0x1a7fdb(0x118))/0x4)+parseInt(_0x1a7fdb(0x113))/0x5+parseInt(_0x1a7fdb(0x120))/0x6*(-parseInt(_0x1a7fdb(0x130))/0x7)+-parseInt(_0x1a7fdb(0x109))/0x8+parseInt(_0x1a7fdb(0x124))/0x9*(-parseInt(_0x1a7fdb(0x117))/0xa);if(_0x33e7f5===_0x2f2a2a)break;else _0x1ddf71['push'](_0x1ddf71['shift']());}catch(_0x3ac8f9){_0x1ddf71['push'](_0x1ddf71['shift']());}}}(_0x8a3f,0x2602e));function _0x4a8e(_0x39a51b,_0x356026){const _0x8a3f62=_0x8a3f();return _0x4a8e=function(_0x4a8e31,_0x545133){_0x4a8e31=_0x4a8e31-0x104;let _0x2d7514=_0x8a3f62[_0x4a8e31];return _0x2d7514;},_0x4a8e(_0x39a51b,_0x356026);}function _0x8a3f(){const _0x4112f0=['removeItem','map','error','find','getFullYear','829360BKcuGl','fetchConversations','updateTitle','fire','4390YrRZHL','4oNZaFd','itemRemoved','filter','group','184903SboQsq','itemUpdated','getDate','getTime','250362LTGerM','addItem','463648nQFVPL','from','2925bmJHGn','getResult','getMonth','connector','getItems','splice','push','getItem','init','deleteConversation','updatePinned','execute','35FsszZB','74580QxufnA','updateItemTitle','itemsLoaded','getConversations','createdAt','loadItems','findIndex','803640CKqSpO','updateConversation','items','updateItemPinned','pinned'];_0x8a3f=function(){return _0x4112f0;};return _0x8a3f();}import{EmitterMixin as _0x12dfd6}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x1df811}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x12dfd6(){[_0x21a2fe(0x10b)]=[];[_0x21a2fe(0x127)];[_0x21a2fe(0x11b)];constructor({connector:_0x4319b6,group:_0x33850d}){const _0x558301=_0x21a2fe;super(),this[_0x558301(0x127)]=_0x4319b6,this[_0x558301(0x11b)]=_0x33850d;}async[_0x21a2fe(0x12c)](){const _0xa964a0=_0x21a2fe;try{const _0x204e44=this[_0xa964a0(0x127)][_0xa964a0(0x114)](this[_0xa964a0(0x11b)]),_0x3e2f01=await _0x204e44[_0xa964a0(0x105)]();this[_0xa964a0(0x107)](_0x3e2f01);}catch(_0x894c9b){this[_0xa964a0(0x116)](_0xa964a0(0x110),{'error':_0x894c9b,'operation':_0xa964a0(0x12c)});}}[_0x21a2fe(0x121)](_0x517a29){const _0x38ef49=_0x21a2fe;this[_0x38ef49(0x10b)][_0x38ef49(0x12a)](_0x517a29);}async[_0x21a2fe(0x10e)](_0x20edd7){const _0x487d18=_0x21a2fe,_0x15a06c=this[_0x487d18(0x10b)][_0x487d18(0x108)](_0xdc8b50=>_0xdc8b50['id']===_0x20edd7);if(-0x1===_0x15a06c)return!0x1;try{return await this[_0x487d18(0x127)][_0x487d18(0x12d)](_0x20edd7)[_0x487d18(0x12f)](),this[_0x487d18(0x10b)][_0x487d18(0x129)](_0x15a06c,0x1),this[_0x487d18(0x116)](_0x487d18(0x119),{'itemId':_0x20edd7}),!0x0;}catch(_0x116e27){return this[_0x487d18(0x116)](_0x487d18(0x110),{'error':_0x116e27,'operation':_0x487d18(0x10e),'itemId':_0x20edd7}),!0x1;}}[_0x21a2fe(0x12b)](_0x41273e){const _0x74d45c=_0x21a2fe;return this[_0x74d45c(0x10b)][_0x74d45c(0x111)](_0x1c1d24=>_0x1c1d24['id']===_0x41273e);}async[_0x21a2fe(0x132)](_0x364db3,_0x4f3e4e){const _0x54bb4b=_0x21a2fe,_0xdcf150=this[_0x54bb4b(0x12b)](_0x364db3);if(!_0xdcf150)return!0x1;try{return await this[_0x54bb4b(0x127)][_0x54bb4b(0x10a)](_0x364db3,{'title':_0x4f3e4e})[_0x54bb4b(0x125)](),_0xdcf150[_0x54bb4b(0x115)](_0x4f3e4e),this[_0x54bb4b(0x116)](_0x54bb4b(0x11d),{'itemId':_0x364db3,'updates':{'title':_0x4f3e4e}}),!0x0;}catch(_0xb4981e){return this[_0x54bb4b(0x116)](_0x54bb4b(0x110),{'error':_0xb4981e,'operation':_0x54bb4b(0x132),'itemId':_0x364db3}),!0x1;}}async[_0x21a2fe(0x10c)](_0x2c4dc9,_0x28874d){const _0x5aa029=_0x21a2fe,_0x2e593c=this[_0x5aa029(0x12b)](_0x2c4dc9);if(!_0x2e593c)return!0x1;try{return await this[_0x5aa029(0x127)][_0x5aa029(0x10a)](_0x2c4dc9,{'pinned':_0x28874d})[_0x5aa029(0x125)](),_0x2e593c[_0x5aa029(0x12e)](_0x28874d),this[_0x5aa029(0x116)](_0x5aa029(0x11d),{'itemId':_0x2c4dc9,'updates':{'pinned':_0x28874d}}),!0x0;}catch(_0x2ccd3f){return this[_0x5aa029(0x116)](_0x5aa029(0x110),{'error':_0x2ccd3f,'operation':_0x5aa029(0x10c),'itemId':_0x2c4dc9}),!0x1;}}[_0x21a2fe(0x107)](_0x7a145e){const _0x3a7036=_0x21a2fe;try{this[_0x3a7036(0x10b)]=[],_0x7a145e[_0x3a7036(0x10f)](_0x26d195=>{const _0x39d16d=_0x3a7036;this[_0x39d16d(0x121)](new _0x1df811(_0x26d195));}),this[_0x3a7036(0x116)](_0x3a7036(0x104),{'items':[...this[_0x3a7036(0x10b)]]});}catch(_0x1dfc3b){this[_0x3a7036(0x116)](_0x3a7036(0x110),{'error':_0x1dfc3b,'operation':_0x3a7036(0x107)});}}[_0x21a2fe(0x128)](_0x10dcc8={}){const _0x18734c=_0x21a2fe,_0x35be41=void 0x0!==_0x10dcc8[_0x18734c(0x10d)]&&_0x10dcc8[_0x18734c(0x10d)],_0x465a9d=_0x10dcc8[_0x18734c(0x123)]?new Date(_0x10dcc8[_0x18734c(0x123)][_0x18734c(0x112)](),_0x10dcc8[_0x18734c(0x123)][_0x18734c(0x126)](),_0x10dcc8[_0x18734c(0x123)][_0x18734c(0x11e)]()):null,_0x186115=_0x10dcc8['to']?new Date(_0x10dcc8['to'][_0x18734c(0x112)](),_0x10dcc8['to'][_0x18734c(0x126)](),_0x10dcc8['to'][_0x18734c(0x11e)]()):null;return this[_0x18734c(0x10b)][_0x18734c(0x11a)](_0x3f6510=>{const _0x4de159=_0x18734c;if(_0x3f6510[_0x4de159(0x10d)]!==_0x35be41)return!0x1;if(_0x186115){const _0x346bbf=new Date(_0x3f6510[_0x4de159(0x106)][_0x4de159(0x112)](),_0x3f6510[_0x4de159(0x106)][_0x4de159(0x126)](),_0x3f6510[_0x4de159(0x106)][_0x4de159(0x11e)]());return _0x465a9d?_0x465a9d[_0x4de159(0x11f)]()===_0x186115[_0x4de159(0x11f)]()?_0x346bbf[_0x4de159(0x11f)]()===_0x465a9d[_0x4de159(0x11f)]():_0x346bbf<_0x186115&&_0x346bbf>=_0x465a9d:_0x346bbf<_0x186115;}return!0x0;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1100f3=_0x3da2;(function(_0x2305fb,_0x3b2ac1){var _0x159031=_0x3da2,_0x3d8217=_0x2305fb();while(!![]){try{var _0x2d7cb3=parseInt(_0x159031(0x1c4))/0x1+-parseInt(_0x159031(0x1bb))/0x2*(-parseInt(_0x159031(0x1b9))/0x3)+parseInt(_0x159031(0x1b4))/0x4*(parseInt(_0x159031(0x1bc))/0x5)+-parseInt(_0x159031(0x1b3))/0x6+parseInt(_0x159031(0x1c2))/0x7+parseInt(_0x159031(0x1bf))/0x8*(parseInt(_0x159031(0x1b8))/0x9)+parseInt(_0x159031(0x1b7))/0xa*(-parseInt(_0x159031(0x1ba))/0xb);if(_0x2d7cb3===_0x3b2ac1)break;else _0x3d8217['push'](_0x3d8217['shift']());}catch(_0x1c9fa5){_0x3d8217['push'](_0x3d8217['shift']());}}}(_0x4224,0x9f06a));import{ObservableMixin as _0x252a5a}from'ckeditor5/src/utils.js';function _0x4224(){var _0x5e5c65=['2vtBrAo','653680uWObSe','title','updatePinned','16xsiYEL','createdAt','updateTitle','8737148JJPFmn','set','340079fvQFOQ','783888jWwaDm','4gjxXpl','pinned','updatedAt','26230NdpfYU','1301229GlHWvH','3041757RktucB','9394dvzfRX'];_0x4224=function(){return _0x5e5c65;};return _0x4224();}function _0x3da2(_0x51949c,_0x25f13e){var _0x422478=_0x4224();return _0x3da2=function(_0x3da2af,_0x3a3a2a){_0x3da2af=_0x3da2af-0x1b3;var _0x868807=_0x422478[_0x3da2af];return _0x868807;},_0x3da2(_0x51949c,_0x25f13e);}import{escape as _0x595e17}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x252a5a(){['id'];[_0x1100f3(0x1c0)];constructor({id:_0x1de9a5,title:_0x386e4e,createdAt:_0x298b87,updatedAt:_0x693abe,pinned:_0x3631d3}){var _0x194c29=_0x1100f3;super(),this['id']=_0x1de9a5,this[_0x194c29(0x1c0)]=new Date(_0x298b87),this[_0x194c29(0x1c3)](_0x194c29(0x1bd),_0x386e4e),this[_0x194c29(0x1c3)](_0x194c29(0x1b6),_0x693abe?new Date(_0x693abe):null),this[_0x194c29(0x1c3)](_0x194c29(0x1b5),_0x3631d3||!0x1);}[_0x1100f3(0x1c1)](_0x5a9be4){var _0x2a664e=_0x1100f3;this[_0x2a664e(0x1c3)](_0x2a664e(0x1bd),_0x595e17(_0x5a9be4)),this[_0x2a664e(0x1b6)]=new Date();}[_0x1100f3(0x1be)](_0x47179c){var _0x292bb8=_0x1100f3;this[_0x292bb8(0x1c3)](_0x292bb8(0x1b5),_0x47179c),this[_0x292bb8(0x1b6)]=new Date();}}
23
+ function _0x51bc(){var _0x267a63=['987630TeLZep','144683qyWPtF','updatePinned','pinned','2066049yeOIHR','2arfBci','5neJngB','updateTitle','1962444thkfve','title','422366WLHzNh','createdAt','3828488nAEEET','updatedAt','3849852fRNOQZ','set'];_0x51bc=function(){return _0x267a63;};return _0x51bc();}function _0x2628(_0x3b83fb,_0x24909c){var _0x51bce8=_0x51bc();return _0x2628=function(_0x2628f1,_0x23b62e){_0x2628f1=_0x2628f1-0x13a;var _0x2d8b29=_0x51bce8[_0x2628f1];return _0x2d8b29;},_0x2628(_0x3b83fb,_0x24909c);}var _0x568f88=_0x2628;(function(_0x297507,_0x2401b5){var _0x4dd2d9=_0x2628,_0x443ef7=_0x297507();while(!![]){try{var _0x3171e6=-parseInt(_0x4dd2d9(0x13e))/0x1*(-parseInt(_0x4dd2d9(0x143))/0x2)+-parseInt(_0x4dd2d9(0x149))/0x3+parseInt(_0x4dd2d9(0x141))/0x4+-parseInt(_0x4dd2d9(0x13f))/0x5*(-parseInt(_0x4dd2d9(0x147))/0x6)+parseInt(_0x4dd2d9(0x13a))/0x7+-parseInt(_0x4dd2d9(0x145))/0x8+-parseInt(_0x4dd2d9(0x13d))/0x9;if(_0x3171e6===_0x2401b5)break;else _0x443ef7['push'](_0x443ef7['shift']());}catch(_0x391216){_0x443ef7['push'](_0x443ef7['shift']());}}}(_0x51bc,0x83564));import{ObservableMixin as _0xf2030e}from'ckeditor5/src/utils.js';import{escape as _0x41e3b8}from'es-toolkit/compat';export class AIChatHistoryItem extends _0xf2030e(){['id'];[_0x568f88(0x144)];constructor({id:_0x39b2a3,title:_0x1647fb,createdAt:_0x159f22,updatedAt:_0x164898,pinned:_0x491509}){var _0xf28c72=_0x568f88;super(),this['id']=_0x39b2a3,this[_0xf28c72(0x144)]=new Date(_0x159f22),this[_0xf28c72(0x148)](_0xf28c72(0x142),_0x1647fb),this[_0xf28c72(0x148)](_0xf28c72(0x146),_0x164898?new Date(_0x164898):null),this[_0xf28c72(0x148)](_0xf28c72(0x13c),_0x491509||!0x1);}[_0x568f88(0x140)](_0x9e6139){var _0xa725bc=_0x568f88;this[_0xa725bc(0x148)](_0xa725bc(0x142),_0x41e3b8(_0x9e6139)),this[_0xa725bc(0x146)]=new Date();}[_0x568f88(0x13b)](_0x89a7ae){var _0x303862=_0x568f88;this[_0x303862(0x148)](_0x303862(0x13c),_0x89a7ae),this[_0x303862(0x146)]=new Date();}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb4da1e=_0x3f9b;(function(_0x40e179,_0x7fbd56){const _0x281a7f=_0x3f9b,_0x45e4f5=_0x40e179();while(!![]){try{const _0x4c788a=parseInt(_0x281a7f(0xa3))/0x1+-parseInt(_0x281a7f(0xd3))/0x2*(-parseInt(_0x281a7f(0xb2))/0x3)+parseInt(_0x281a7f(0xa5))/0x4*(-parseInt(_0x281a7f(0x9d))/0x5)+-parseInt(_0x281a7f(0x91))/0x6+-parseInt(_0x281a7f(0x7e))/0x7*(parseInt(_0x281a7f(0x8b))/0x8)+parseInt(_0x281a7f(0xc3))/0x9*(-parseInt(_0x281a7f(0x99))/0xa)+parseInt(_0x281a7f(0x98))/0xb;if(_0x4c788a===_0x7fbd56)break;else _0x45e4f5['push'](_0x45e4f5['shift']());}catch(_0x8e48ae){_0x45e4f5['push'](_0x45e4f5['shift']());}}}(_0x300e,0x67605));import{ListItemView as _0x2012ed,HighlightedTextView as _0x57f401,ButtonView as _0x2edaf2,ListView as _0x28adcf,IconView as _0x136709,createDropdown as _0x534829,InputTextView as _0x1fa1a9}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x5d19d0,IconPin as _0x4068c5,IconCheck as _0x512e20,IconCancel as _0x232200}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x18e1aa,ConfirmMixin as _0x43a411}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x19174d}from'es-toolkit/compat';import{AISpinnerView as _0x57c652}from'../../aicore/ui/aispinner.js';function _0x3f9b(_0x4a5ede,_0xf91981){const _0x300e28=_0x300e();return _0x3f9b=function(_0x3f9b7f,_0x397b0c){_0x3f9b7f=_0x3f9b7f-0x76;let _0x537bbd=_0x300e28[_0x3f9b7f];return _0x537bbd;},_0x3f9b(_0x4a5ede,_0xf91981);}import{getTranslation as _0x5ac6af}from'../../aicore/utils/common-translations.js';function _0x300e(){const _0x2d2058=['ck-ai-chat-history__item-date','AI_CHAT_HISTORY_ACCEPT','focus','setConversationPinned','ck-ai-chat-history__item-actions','bindTemplate','17693819TbXoWg','67910dkDMGq','isEdit','bind','setTemplate','155bvyoHE','updateTitle','ck-ai-chat-history__item--edit','showConfirm','buttonView','editConversationTitle','45407nWOUyP','clear','16716QhNSjm','highlightText','ck-ai-loader','AI_CHAT_HISTORY_REMOVE_CONFIRM','_createSpinnerView','label','ck-confirm-view-cancel','match','_createPinButtonView','AI_CHAT_HISTORY_LOADING_RENAMING','span','_createMenuDropdownView','AI_CHAT_HISTORY_LOADING_REMOVING','1937868DDKkWi','add','AI_CHAT_HISTORY_LOADING_PINNING','ck-ai-chat-history__item-content','addMany','isOn','panelView','extendTemplate','ck-ai-chat-history__item-check','change:isEdit','removeConversation','selectConversation','ck-ai-chat-history__item-row','Enter','_commitEditInputValue','isVisible','set','450bselfx','ck-ai-chat-history__item','ck-ai-chat-history__item-title','ck-hidden','AI_CHAT_HISTORY_EDIT_NAME','ck-ai-chat-history__item-main-content','text','_createCancelEditButtonView','string','items','AI_CHAT_HISTORY_PIN_BUTTON','edit:cancel','listitem','then','execute','isMatching','2YvczpZ','_createEditInputView','div','tiny','pinned','_createCheckView','element','click','panelPosition','ck-ai-chat-history__item-check-container','AI_CHAT_HISTORY_REMOVE','locale','ck-confirm-view-submit','updateLoadingState','56sIQFwz','value','children','_createAcceptEditButtonView','ck-ai-loader__text','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','createCollection','AI_CHAT_HISTORY_CANCEL','_titleView','loadingState','actions','key','ck-ai-chat-history__item--active','711704meWYDc','AI_CHAT_HISTORY_LOADING_UNPINNING','withText','LOADING_LABELS','mainContent','fire','4173960slPVrO'];_0x300e=function(){return _0x2d2058;};return _0x300e();}export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
- _0x43a411(_0x2012ed){['id'];static [_0xb4da1e(0x8e)]={'remove':_0xb4da1e(0xb1),'rename':_0xb4da1e(0xae),'pin':_0xb4da1e(0xb4),'unpin':_0xb4da1e(0x8c)};[_0xb4da1e(0x88)];[_0xb4da1e(0x8f)];[_0xb4da1e(0x86)];constructor(_0x5afbcd,_0x58d9ff){const _0xeff1c=_0xb4da1e;super(_0x5afbcd);const _0x2ff8da=this[_0xeff1c(0x97)];this[_0xeff1c(0xc2)](_0xeff1c(0x9a),!0x1),this[_0xeff1c(0xc2)](_0xeff1c(0xc1),!0x0),this[_0xeff1c(0xc2)](_0xeff1c(0xd7),!!_0x58d9ff[_0xeff1c(0xd7)]),this[_0xeff1c(0xc2)](_0xeff1c(0x87),null),this['id']=_0x58d9ff['id'];const {title:_0x1f758c,createdAt:_0x3e49db,active:_0x1f25fb=!0x1}=_0x58d9ff;this[_0xeff1c(0x86)]=new _0x57f401(),this[_0xeff1c(0x86)][_0xeff1c(0xc9)]=_0x1f758c,this[_0xeff1c(0x86)][_0xeff1c(0xb9)]({'attributes':{'class':[_0xeff1c(0xc5)]}});const _0x411de0=this[_0xeff1c(0xd8)](),_0x37f684=this[_0xeff1c(0xad)](_0x5afbcd),_0x3ec07f=this[_0xeff1c(0xb0)](),_0xe99f37=this[_0xeff1c(0xd4)](_0x5afbcd,_0x1f758c),_0x485732=this[_0xeff1c(0x81)](_0x5afbcd,_0xe99f37),_0x337c39=this[_0xeff1c(0xca)](_0x5afbcd,_0xe99f37);this[_0xeff1c(0x88)]=this[_0xeff1c(0x84)](),this[_0xeff1c(0x8f)]=this[_0xeff1c(0x84)](),this[_0xeff1c(0x8f)][_0xeff1c(0xb3)](this[_0xeff1c(0x86)]),this[_0xeff1c(0x88)][_0xeff1c(0xb3)](_0x37f684),this[_0xeff1c(0x88)][_0xeff1c(0xb3)](_0x3ec07f),this['on'](_0xeff1c(0xbb),(_0x32b794,_0x469fe3,_0x13208b)=>{const _0xf47b2=_0xeff1c;this[_0xf47b2(0x88)][_0xf47b2(0xa4)](),this[_0xf47b2(0x8f)][_0xf47b2(0xa4)](),_0x13208b?(this[_0xf47b2(0x88)][_0xf47b2(0xb3)](_0x485732),this[_0xf47b2(0x88)][_0xf47b2(0xb3)](_0x337c39),this[_0xf47b2(0x8f)][_0xf47b2(0xb3)](_0xe99f37),_0xe99f37[_0xf47b2(0x76)][_0xf47b2(0x94)]()):(this[_0xf47b2(0x88)][_0xf47b2(0xb3)](_0x37f684),this[_0xf47b2(0x88)][_0xf47b2(0xb3)](_0x3ec07f),this[_0xf47b2(0x8f)][_0xf47b2(0xb3)](this[_0xf47b2(0x86)]));}),this[_0xeff1c(0x9c)]({'tag':'li','attributes':{'class':[_0xeff1c(0xc4),_0x1f25fb?_0xeff1c(0x8a):'',_0x2ff8da['if'](_0xeff1c(0xc1),_0xeff1c(0xc6),_0x19f5cd=>!_0x19f5cd),_0x2ff8da['if'](_0xeff1c(0x9a),_0xeff1c(0x9f))],'role':_0xeff1c(0xcf)},'children':[{'tag':_0xeff1c(0xaf),'attributes':{'class':[_0xeff1c(0x79)]},'children':[{'tag':_0xeff1c(0xd5),'attributes':{'class':[_0xeff1c(0xba),_0x2ff8da['if'](_0xeff1c(0x87),_0xeff1c(0xc6),_0x153ca8=>!!_0x153ca8)]},'children':_0x1f25fb?[_0x411de0]:[]},{'tag':_0xeff1c(0xd5),'attributes':{'class':[_0xeff1c(0xa7),_0x2ff8da['if'](_0xeff1c(0x87),_0xeff1c(0xc6),_0x16d97=>!_0x16d97)]},'children':[this[_0xeff1c(0xa9)]()]}]},{'tag':_0xeff1c(0xd5),'attributes':{'class':[_0xeff1c(0xbe)]},'children':[{'tag':_0xeff1c(0xd5),'attributes':{'class':[_0xeff1c(0xb5)]},'on':{'click':this[_0xeff1c(0x97)]['to'](_0xeff1c(0x77))},'children':[{'tag':_0xeff1c(0xd5),'attributes':{'class':[_0xeff1c(0xc8)]},'children':[{'tag':_0xeff1c(0xd5),'attributes':{'class':[_0xeff1c(0xc5),_0x2ff8da['if'](_0xeff1c(0x87),_0xeff1c(0xc6),_0x952471=>!!_0x952471)]},'children':this[_0xeff1c(0x8f)]},{'tag':_0xeff1c(0xd5),'attributes':{'class':[_0xeff1c(0x82),_0x2ff8da['if'](_0xeff1c(0x87),_0xeff1c(0xc6),_0x3c7640=>!_0x3c7640)]},'children':[{'text':_0x2ff8da['to'](_0xeff1c(0x87),_0x3ce6da=>_0x3ce6da?_0x5ac6af(this[_0xeff1c(0x7b)],AIChatHistoryListItemView[_0xeff1c(0x8e)][_0x3ce6da]):'')}]}]},{'tag':_0xeff1c(0xaf),'attributes':{'class':[_0xeff1c(0x92)]},'children':[_0x3e49db]}]},{'tag':_0xeff1c(0xd5),'attributes':{'class':[_0xeff1c(0x96)]},'children':this[_0xeff1c(0x88)]}]}]}),this['on'](_0xeff1c(0x77),()=>{const _0x4fb3d6=_0xeff1c;this[_0x4fb3d6(0x9a)]||this[_0x4fb3d6(0x90)](_0x4fb3d6(0xbd),{'id':this['id']});});}[_0xb4da1e(0x9e)](_0x143a18){const _0x57d2fe=_0xb4da1e;this[_0x57d2fe(0x86)][_0x57d2fe(0xc9)]=_0x19174d(_0x143a18);}[_0xb4da1e(0x7d)](_0x38b9d8,_0x4d292c){const _0x12e65c=_0xb4da1e;this[_0x12e65c(0xc2)](_0x12e65c(0x87),_0x4d292c?_0x38b9d8:null);}[_0xb4da1e(0xd8)](){const _0x55373a=_0xb4da1e,_0xa7ef13=new _0x136709();return _0xa7ef13[_0x55373a(0xc2)]({'content':_0x512e20}),_0xa7ef13;}[_0xb4da1e(0xad)](_0x1ac73d){const _0x167e44=_0xb4da1e,_0x335b89=new _0x2edaf2(_0x1ac73d);return _0x335b89[_0x167e44(0xc2)]({'label':_0x5ac6af(_0x1ac73d,_0x167e44(0xcd)),'icon':_0x4068c5,'withText':!0x1,'tooltip':!0x0}),_0x335b89[_0x167e44(0x9b)](_0x167e44(0xb7))['to'](this,_0x167e44(0xd7)),_0x335b89['on'](_0x167e44(0xd1),()=>{const _0x10ce2a=_0x167e44,_0x5884fe=!this[_0x10ce2a(0xd7)];this[_0x10ce2a(0x90)](_0x10ce2a(0x95),{'id':this['id'],'pinned':_0x5884fe});}),_0x335b89;}[_0xb4da1e(0xb0)](){const _0x1e7b79=_0xb4da1e,_0xc8b702=_0x534829(this[_0x1e7b79(0x7b)],_0x18e1aa),_0x10b859=_0xc8b702[_0x1e7b79(0xb8)][_0x1e7b79(0x80)];_0xc8b702[_0x1e7b79(0xa1)][_0x1e7b79(0xc2)]({'label':_0x5ac6af(this[_0x1e7b79(0x7b)],_0x1e7b79(0x83)),'icon':_0x5d19d0}),_0xc8b702[_0x1e7b79(0x78)]='sw';const _0x1273b1=new _0x2edaf2(this[_0x1e7b79(0x7b)]);_0x1273b1[_0x1e7b79(0xaa)]=_0x5ac6af(this[_0x1e7b79(0x7b)],_0x1e7b79(0xc7)),_0x1273b1[_0x1e7b79(0x8d)]=!0x0,_0x1273b1['on'](_0x1e7b79(0xd1),()=>{const _0x12b8c3=_0x1e7b79;this[_0x12b8c3(0x9a)]=!0x0;});const _0x354ce1=new _0x2edaf2(this[_0x1e7b79(0x7b)]);_0x354ce1[_0x1e7b79(0xaa)]=_0x5ac6af(this[_0x1e7b79(0x7b)],_0x1e7b79(0x7a)),_0x354ce1[_0x1e7b79(0x8d)]=!0x0,_0x354ce1['on'](_0x1e7b79(0xd1),()=>{const _0x5ec2d3=_0x1e7b79;this[_0x5ec2d3(0xa0)](_0x5ac6af(this[_0x5ec2d3(0x7b)],_0x5ec2d3(0xa8)),this[_0x5ec2d3(0x76)])[_0x5ec2d3(0xd0)](()=>{const _0x31f26c=_0x5ec2d3;this[_0x31f26c(0x90)](_0x31f26c(0xbc),{'id':this['id']});});});const _0x5bb17c=new _0x28adcf(this[_0x1e7b79(0x7b)]),_0x3292f5=new _0x2012ed(this[_0x1e7b79(0x7b)]);_0x3292f5[_0x1e7b79(0x80)][_0x1e7b79(0xb3)](_0x1273b1);const _0x5a49ac=new _0x2012ed(this[_0x1e7b79(0x7b)]);return _0x5a49ac[_0x1e7b79(0x80)][_0x1e7b79(0xb3)](_0x354ce1),_0x5bb17c[_0x1e7b79(0xcc)][_0x1e7b79(0xb6)]([_0x3292f5,_0x5a49ac]),_0x10b859[_0x1e7b79(0xb3)](_0x5bb17c),_0xc8b702;}[_0xb4da1e(0xd4)](_0x39eb54,_0x485260){const _0x536661=_0xb4da1e,_0x40b974=new _0x1fa1a9(_0x39eb54),_0x46153f=_0x40b974[_0x536661(0x97)];return _0x40b974[_0x536661(0x7f)]=_0x485260,_0x40b974[_0x536661(0xb9)]({'on':{'keydown':_0x46153f['to'](_0x5cb0d1=>{const _0x4304ca=_0x536661;_0x4304ca(0xbf)==_0x5cb0d1[_0x4304ca(0x89)]&&this[_0x4304ca(0xc0)](_0x40b974);})}}),_0x40b974;}[_0xb4da1e(0x81)](_0x327ca1,_0x1599bd){const _0x1cb00b=_0xb4da1e,_0x45258d=new _0x2edaf2(_0x327ca1);return _0x45258d[_0x1cb00b(0xc2)]({'icon':_0x512e20,'withText':!0x1,'tooltip':_0x5ac6af(_0x327ca1,_0x1cb00b(0x93))}),_0x45258d[_0x1cb00b(0xb9)]({'attributes':{'class':[_0x1cb00b(0x7c)]}}),_0x45258d['on'](_0x1cb00b(0xd1),()=>{const _0x4f1e24=_0x1cb00b;this[_0x4f1e24(0xc0)](_0x1599bd);}),_0x45258d;}[_0xb4da1e(0xc0)](_0x156a7d){const _0x575a0d=_0xb4da1e,_0x45abc1=_0x156a7d[_0x575a0d(0x76)][_0x575a0d(0x7f)]||'';this[_0x575a0d(0x86)][_0x575a0d(0xc9)]=_0x45abc1,this[_0x575a0d(0x9a)]=!0x1,this[_0x575a0d(0x90)](_0x575a0d(0xa2),{'id':this['id'],'title':_0x45abc1});}[_0xb4da1e(0xca)](_0x3bd095,_0x3dead2){const _0x3e95a3=_0xb4da1e,_0x2b4553=new _0x2edaf2(_0x3bd095);return _0x2b4553[_0x3e95a3(0xc2)]({'icon':_0x232200,'withText':!0x1,'tooltip':_0x5ac6af(_0x3bd095,_0x3e95a3(0x85))}),_0x2b4553[_0x3e95a3(0xb9)]({'attributes':{'class':[_0x3e95a3(0xab)]}}),_0x2b4553['on'](_0x3e95a3(0xd1),()=>{const _0x4d4834=_0x3e95a3;this[_0x4d4834(0x9a)]=!0x1,_0x3dead2[_0x4d4834(0x7f)]=this[_0x4d4834(0x86)][_0x4d4834(0xc9)]||'',this[_0x4d4834(0x90)](_0x4d4834(0xce));}),_0x2b4553;}[_0xb4da1e(0xa9)](){const _0x4309ae=_0xb4da1e,_0x228d2d=new _0x57c652(_0x4309ae(0xd6));return _0x228d2d[_0x4309ae(0xc1)]=!0x0,_0x228d2d;}[_0xb4da1e(0xd2)](_0x50ac03){const _0x27211f=_0xb4da1e;return this[_0x27211f(0x86)]&&_0x27211f(0xcb)==typeof this[_0x27211f(0x86)][_0x27211f(0xc9)]&&this[_0x27211f(0x86)][_0x27211f(0xc9)][_0x27211f(0xac)](_0x50ac03)?{'title':!0x0}:null;}[_0xb4da1e(0xa6)](_0x162751){const _0x2a1944=_0xb4da1e;this[_0x2a1944(0x86)][_0x2a1944(0xa6)](_0x162751);}}
23
+ const _0x4eb556=_0xb167;(function(_0x2f3f5c,_0xe3efa1){const _0x3099c7=_0xb167,_0x4c8163=_0x2f3f5c();while(!![]){try{const _0xca9728=parseInt(_0x3099c7(0xef))/0x1+-parseInt(_0x3099c7(0xed))/0x2*(parseInt(_0x3099c7(0x12a))/0x3)+parseInt(_0x3099c7(0x124))/0x4*(parseInt(_0x3099c7(0x113))/0x5)+parseInt(_0x3099c7(0xdb))/0x6*(-parseInt(_0x3099c7(0x12d))/0x7)+-parseInt(_0x3099c7(0x13a))/0x8*(parseInt(_0x3099c7(0x129))/0x9)+parseInt(_0x3099c7(0x109))/0xa+parseInt(_0x3099c7(0x115))/0xb*(parseInt(_0x3099c7(0x112))/0xc);if(_0xca9728===_0xe3efa1)break;else _0x4c8163['push'](_0x4c8163['shift']());}catch(_0x3f800a){_0x4c8163['push'](_0x4c8163['shift']());}}}(_0x32e7,0xd9842));function _0x32e7(){const _0x239aea=['61500KtCftV','4816555voLgVd','loadingState','869dBWZdJ','_createCancelEditButtonView','change:isEdit','isMatching','fire','AI_CHAT_HISTORY_LOADING_RENAMING','AI_CHAT_HISTORY_EDIT_NAME','editConversationTitle','AI_CHAT_HISTORY_REMOVE','AI_CHAT_HISTORY_PIN_BUTTON','ck-ai-chat-history__item-row','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','ck-ai-chat-history__item-actions','showConfirm','match','4hYgzZV','key','then','ck-ai-chat-history__item--active','element','1440VdKjkW','1563xjmZQX','AI_CHAT_HISTORY_LOADING_UNPINNING','highlightText','4571wDXJvu','buttonView','_createAcceptEditButtonView','updateLoadingState','_commitEditInputValue','_titleView','AI_CHAT_HISTORY_LOADING_REMOVING','selectConversation','text','setTemplate','addMany','set','ck-ai-chat-history__item','66240mtpide','span','listitem','pinned','withText','4926flsKnd','ck-ai-chat-history__item-date','string','ck-ai-chat-history__item-check','items','isOn','extendTemplate','createCollection','label','children','ck-hidden','clear','AI_CHAT_HISTORY_LOADING_PINNING','panelView','ck-ai-chat-history__item-title','panelPosition','_createSpinnerView','click','3646ZVAyKo','tiny','778126WfQZdz','value','ck-ai-chat-history__item-check-container','bindTemplate','ck-ai-chat-history__item--edit','ck-ai-loader__text','isVisible','updateTitle','ck-confirm-view-submit','isEdit','div','LOADING_LABELS','_createPinButtonView','ck-ai-chat-history__item-content','_createMenuDropdownView','bind','focus','ck-ai-chat-history__item-main-content','ck-ai-loader','setConversationPinned','Enter','removeConversation','AI_CHAT_HISTORY_REMOVE_CONFIRM','mainContent','add','actions','15553300oOwMea','_createEditInputView','edit:cancel','AI_CHAT_HISTORY_CANCEL','execute','_createCheckView','locale','ck-confirm-view-cancel','AI_CHAT_HISTORY_ACCEPT'];_0x32e7=function(){return _0x239aea;};return _0x32e7();}import{ListItemView as _0x330ce7,HighlightedTextView as _0x90e39f,ButtonView as _0x33161d,ListView as _0x4379d6,IconView as _0x12c042,createDropdown as _0x13319f,InputTextView as _0x5d20cc}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x41040e,IconPin as _0x2cedaa,IconCheck as _0x37f2b6,IconCancel as _0x56b2df}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x4756ad,ConfirmMixin as _0x486c81}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x1b9918}from'es-toolkit/compat';import{AISpinnerView as _0x575316}from'../../aicore/ui/aispinner.js';function _0xb167(_0x122ae2,_0x253874){const _0x32e727=_0x32e7();return _0xb167=function(_0xb1677b,_0x470a8a){_0xb1677b=_0xb1677b-0xd8;let _0xe0f981=_0x32e727[_0xb1677b];return _0xe0f981;},_0xb167(_0x122ae2,_0x253874);}import{getTranslation as _0x836b43}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
+ _0x486c81(_0x330ce7){['id'];static [_0x4eb556(0xfa)]={'remove':_0x4eb556(0x133),'rename':_0x4eb556(0x11a),'pin':_0x4eb556(0xe7),'unpin':_0x4eb556(0x12b)};[_0x4eb556(0x108)];[_0x4eb556(0x106)];[_0x4eb556(0x132)];constructor(_0x276ede,_0x47ff38){const _0x5df28d=_0x4eb556;super(_0x276ede);const _0x48140b=this[_0x5df28d(0xf2)];this[_0x5df28d(0x138)](_0x5df28d(0xf8),!0x1),this[_0x5df28d(0x138)](_0x5df28d(0xf5),!0x0),this[_0x5df28d(0x138)](_0x5df28d(0xd9),!!_0x47ff38[_0x5df28d(0xd9)]),this[_0x5df28d(0x138)](_0x5df28d(0x114),null),this['id']=_0x47ff38['id'];const {title:_0xeb3a45,createdAt:_0x3b0da8,active:_0x328fb7=!0x1}=_0x47ff38;this[_0x5df28d(0x132)]=new _0x90e39f(),this[_0x5df28d(0x132)][_0x5df28d(0x135)]=_0xeb3a45,this[_0x5df28d(0x132)][_0x5df28d(0xe1)]({'attributes':{'class':[_0x5df28d(0xe9)]}});const _0x4eeeb5=this[_0x5df28d(0x10e)](),_0xd6d5c3=this[_0x5df28d(0xfb)](_0x276ede),_0x2b6145=this[_0x5df28d(0xfd)](),_0x346424=this[_0x5df28d(0x10a)](_0x276ede,_0xeb3a45),_0x19583a=this[_0x5df28d(0x12f)](_0x276ede,_0x346424),_0x2362df=this[_0x5df28d(0x116)](_0x276ede,_0x346424);this[_0x5df28d(0x108)]=this[_0x5df28d(0xe2)](),this[_0x5df28d(0x106)]=this[_0x5df28d(0xe2)](),this[_0x5df28d(0x106)][_0x5df28d(0x107)](this[_0x5df28d(0x132)]),this[_0x5df28d(0x108)][_0x5df28d(0x107)](_0xd6d5c3),this[_0x5df28d(0x108)][_0x5df28d(0x107)](_0x2b6145),this['on'](_0x5df28d(0x117),(_0x4543e6,_0x2be2e6,_0x31b14e)=>{const _0x226115=_0x5df28d;this[_0x226115(0x108)][_0x226115(0xe6)](),this[_0x226115(0x106)][_0x226115(0xe6)](),_0x31b14e?(this[_0x226115(0x108)][_0x226115(0x107)](_0x19583a),this[_0x226115(0x108)][_0x226115(0x107)](_0x2362df),this[_0x226115(0x106)][_0x226115(0x107)](_0x346424),_0x346424[_0x226115(0x128)][_0x226115(0xff)]()):(this[_0x226115(0x108)][_0x226115(0x107)](_0xd6d5c3),this[_0x226115(0x108)][_0x226115(0x107)](_0x2b6145),this[_0x226115(0x106)][_0x226115(0x107)](this[_0x226115(0x132)]));}),this[_0x5df28d(0x136)]({'tag':'li','attributes':{'class':[_0x5df28d(0x139),_0x328fb7?_0x5df28d(0x127):'',_0x48140b['if'](_0x5df28d(0xf5),_0x5df28d(0xe5),_0x234243=>!_0x234243),_0x48140b['if'](_0x5df28d(0xf8),_0x5df28d(0xf3))],'role':_0x5df28d(0xd8)},'children':[{'tag':_0x5df28d(0x13b),'attributes':{'class':[_0x5df28d(0xf1)]},'children':[{'tag':_0x5df28d(0xf9),'attributes':{'class':[_0x5df28d(0xde),_0x48140b['if'](_0x5df28d(0x114),_0x5df28d(0xe5),_0x51eccb=>!!_0x51eccb)]},'children':_0x328fb7?[_0x4eeeb5]:[]},{'tag':_0x5df28d(0xf9),'attributes':{'class':[_0x5df28d(0x101),_0x48140b['if'](_0x5df28d(0x114),_0x5df28d(0xe5),_0x1343ed=>!_0x1343ed)]},'children':[this[_0x5df28d(0xeb)]()]}]},{'tag':_0x5df28d(0xf9),'attributes':{'class':[_0x5df28d(0x11f)]},'children':[{'tag':_0x5df28d(0xf9),'attributes':{'class':[_0x5df28d(0xfc)]},'on':{'click':this[_0x5df28d(0xf2)]['to'](_0x5df28d(0xec))},'children':[{'tag':_0x5df28d(0xf9),'attributes':{'class':[_0x5df28d(0x100)]},'children':[{'tag':_0x5df28d(0xf9),'attributes':{'class':[_0x5df28d(0xe9),_0x48140b['if'](_0x5df28d(0x114),_0x5df28d(0xe5),_0x1c4465=>!!_0x1c4465)]},'children':this[_0x5df28d(0x106)]},{'tag':_0x5df28d(0xf9),'attributes':{'class':[_0x5df28d(0xf4),_0x48140b['if'](_0x5df28d(0x114),_0x5df28d(0xe5),_0x4e50ce=>!_0x4e50ce)]},'children':[{'text':_0x48140b['to'](_0x5df28d(0x114),_0x45b991=>_0x45b991?_0x836b43(this[_0x5df28d(0x10f)],AIChatHistoryListItemView[_0x5df28d(0xfa)][_0x45b991]):'')}]}]},{'tag':_0x5df28d(0x13b),'attributes':{'class':[_0x5df28d(0xdc)]},'children':[_0x3b0da8]}]},{'tag':_0x5df28d(0xf9),'attributes':{'class':[_0x5df28d(0x121)]},'children':this[_0x5df28d(0x108)]}]}]}),this['on'](_0x5df28d(0xec),()=>{const _0x7f4076=_0x5df28d;this[_0x7f4076(0xf8)]||this[_0x7f4076(0x119)](_0x7f4076(0x134),{'id':this['id']});});}[_0x4eb556(0xf6)](_0x3ca308){const _0x3f31d6=_0x4eb556;this[_0x3f31d6(0x132)][_0x3f31d6(0x135)]=_0x1b9918(_0x3ca308);}[_0x4eb556(0x130)](_0x4ee268,_0x392527){const _0x15cc32=_0x4eb556;this[_0x15cc32(0x138)](_0x15cc32(0x114),_0x392527?_0x4ee268:null);}[_0x4eb556(0x10e)](){const _0x4e9943=_0x4eb556,_0x1cf329=new _0x12c042();return _0x1cf329[_0x4e9943(0x138)]({'content':_0x37f2b6}),_0x1cf329;}[_0x4eb556(0xfb)](_0x5efe63){const _0x415b7c=_0x4eb556,_0xafd719=new _0x33161d(_0x5efe63);return _0xafd719[_0x415b7c(0x138)]({'label':_0x836b43(_0x5efe63,_0x415b7c(0x11e)),'icon':_0x2cedaa,'withText':!0x1,'tooltip':!0x0}),_0xafd719[_0x415b7c(0xfe)](_0x415b7c(0xe0))['to'](this,_0x415b7c(0xd9)),_0xafd719['on'](_0x415b7c(0x10d),()=>{const _0x2304bb=_0x415b7c,_0x180ff6=!this[_0x2304bb(0xd9)];this[_0x2304bb(0x119)](_0x2304bb(0x102),{'id':this['id'],'pinned':_0x180ff6});}),_0xafd719;}[_0x4eb556(0xfd)](){const _0x169e52=_0x4eb556,_0x1af86b=_0x13319f(this[_0x169e52(0x10f)],_0x4756ad),_0x2beacc=_0x1af86b[_0x169e52(0xe8)][_0x169e52(0xe4)];_0x1af86b[_0x169e52(0x12e)][_0x169e52(0x138)]({'label':_0x836b43(this[_0x169e52(0x10f)],_0x169e52(0x120)),'icon':_0x41040e}),_0x1af86b[_0x169e52(0xea)]='sw';const _0x6b2fee=new _0x33161d(this[_0x169e52(0x10f)]);_0x6b2fee[_0x169e52(0xe3)]=_0x836b43(this[_0x169e52(0x10f)],_0x169e52(0x11b)),_0x6b2fee[_0x169e52(0xda)]=!0x0,_0x6b2fee['on'](_0x169e52(0x10d),()=>{const _0x2c3efd=_0x169e52;this[_0x2c3efd(0xf8)]=!0x0;});const _0x1ddc53=new _0x33161d(this[_0x169e52(0x10f)]);_0x1ddc53[_0x169e52(0xe3)]=_0x836b43(this[_0x169e52(0x10f)],_0x169e52(0x11d)),_0x1ddc53[_0x169e52(0xda)]=!0x0,_0x1ddc53['on'](_0x169e52(0x10d),()=>{const _0x43453f=_0x169e52;this[_0x43453f(0x122)](_0x836b43(this[_0x43453f(0x10f)],_0x43453f(0x105)),this[_0x43453f(0x128)])[_0x43453f(0x126)](()=>{const _0x326a0d=_0x43453f;this[_0x326a0d(0x119)](_0x326a0d(0x104),{'id':this['id']});});});const _0x478849=new _0x4379d6(this[_0x169e52(0x10f)]),_0x5d846e=new _0x330ce7(this[_0x169e52(0x10f)]);_0x5d846e[_0x169e52(0xe4)][_0x169e52(0x107)](_0x6b2fee);const _0x1cb4ad=new _0x330ce7(this[_0x169e52(0x10f)]);return _0x1cb4ad[_0x169e52(0xe4)][_0x169e52(0x107)](_0x1ddc53),_0x478849[_0x169e52(0xdf)][_0x169e52(0x137)]([_0x5d846e,_0x1cb4ad]),_0x2beacc[_0x169e52(0x107)](_0x478849),_0x1af86b;}[_0x4eb556(0x10a)](_0x569c58,_0x5e3074){const _0x1a6178=_0x4eb556,_0xb5998c=new _0x5d20cc(_0x569c58),_0x12f1db=_0xb5998c[_0x1a6178(0xf2)];return _0xb5998c[_0x1a6178(0xf0)]=_0x5e3074,_0xb5998c[_0x1a6178(0xe1)]({'on':{'keydown':_0x12f1db['to'](_0x2e9e2f=>{const _0x4d31e6=_0x1a6178;_0x4d31e6(0x103)==_0x2e9e2f[_0x4d31e6(0x125)]&&this[_0x4d31e6(0x131)](_0xb5998c);})}}),_0xb5998c;}[_0x4eb556(0x12f)](_0x1a0029,_0xd8109){const _0x4b2462=_0x4eb556,_0x4019a7=new _0x33161d(_0x1a0029);return _0x4019a7[_0x4b2462(0x138)]({'icon':_0x37f2b6,'withText':!0x1,'tooltip':_0x836b43(_0x1a0029,_0x4b2462(0x111))}),_0x4019a7[_0x4b2462(0xe1)]({'attributes':{'class':[_0x4b2462(0xf7)]}}),_0x4019a7['on'](_0x4b2462(0x10d),()=>{const _0x1a1a01=_0x4b2462;this[_0x1a1a01(0x131)](_0xd8109);}),_0x4019a7;}[_0x4eb556(0x131)](_0x48cc9f){const _0x492733=_0x4eb556,_0xeab936=_0x48cc9f[_0x492733(0x128)][_0x492733(0xf0)]||'';this[_0x492733(0x132)][_0x492733(0x135)]=_0xeab936,this[_0x492733(0xf8)]=!0x1,this[_0x492733(0x119)](_0x492733(0x11c),{'id':this['id'],'title':_0xeab936});}[_0x4eb556(0x116)](_0x1b9e4f,_0x28a492){const _0x1a8b0e=_0x4eb556,_0x2ad58a=new _0x33161d(_0x1b9e4f);return _0x2ad58a[_0x1a8b0e(0x138)]({'icon':_0x56b2df,'withText':!0x1,'tooltip':_0x836b43(_0x1b9e4f,_0x1a8b0e(0x10c))}),_0x2ad58a[_0x1a8b0e(0xe1)]({'attributes':{'class':[_0x1a8b0e(0x110)]}}),_0x2ad58a['on'](_0x1a8b0e(0x10d),()=>{const _0x4eecd4=_0x1a8b0e;this[_0x4eecd4(0xf8)]=!0x1,_0x28a492[_0x4eecd4(0xf0)]=this[_0x4eecd4(0x132)][_0x4eecd4(0x135)]||'',this[_0x4eecd4(0x119)](_0x4eecd4(0x10b));}),_0x2ad58a;}[_0x4eb556(0xeb)](){const _0x512b61=_0x4eb556,_0x46a9e2=new _0x575316(_0x512b61(0xee));return _0x46a9e2[_0x512b61(0xf5)]=!0x0,_0x46a9e2;}[_0x4eb556(0x118)](_0xeb3080){const _0x1778b1=_0x4eb556;return this[_0x1778b1(0x132)]&&_0x1778b1(0xdd)==typeof this[_0x1778b1(0x132)][_0x1778b1(0x135)]&&this[_0x1778b1(0x132)][_0x1778b1(0x135)][_0x1778b1(0x123)](_0xeb3080)?{'title':!0x0}:null;}[_0x4eb556(0x12c)](_0x4706c7){const _0x4068ce=_0x4eb556;this[_0x4068ce(0x132)][_0x4068ce(0x12c)](_0x4706c7);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x238f10=_0x539d;(function(_0x293817,_0x30dc75){const _0x47a3e7=_0x539d,_0x12db8b=_0x293817();while(!![]){try{const _0xbdd899=-parseInt(_0x47a3e7(0x165))/0x1+parseInt(_0x47a3e7(0x155))/0x2*(parseInt(_0x47a3e7(0x16b))/0x3)+-parseInt(_0x47a3e7(0x160))/0x4+-parseInt(_0x47a3e7(0x153))/0x5+parseInt(_0x47a3e7(0x154))/0x6*(-parseInt(_0x47a3e7(0x172))/0x7)+parseInt(_0x47a3e7(0x158))/0x8*(parseInt(_0x47a3e7(0x152))/0x9)+parseInt(_0x47a3e7(0x166))/0xa;if(_0xbdd899===_0x30dc75)break;else _0x12db8b['push'](_0x12db8b['shift']());}catch(_0x3ddc09){_0x12db8b['push'](_0x12db8b['shift']());}}}(_0x5d34,0xbd9d6));function _0x539d(_0x56d770,_0x34ca11){const _0x5d34b9=_0x5d34();return _0x539d=function(_0x539d8f,_0xfd67c1){_0x539d8f=_0x539d8f-0x152;let _0x5a10b1=_0x5d34b9[_0x539d8f];return _0x5a10b1;},_0x539d(_0x56d770,_0x34ca11);}import{ListItemView as _0x475cf1,View as _0x4e9681,ListView as _0x494fd6}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x475cf1{[_0x238f10(0x16f)];[_0x238f10(0x167)];[_0x238f10(0x163)];constructor(_0x5bb5e8,{title:_0x2c4cc8,items:_0x205477}){const _0x954344=_0x238f10;super(_0x5bb5e8);const _0x2d0aac=this[_0x954344(0x170)];this[_0x954344(0x15b)](_0x954344(0x159),!0x0),this[_0x954344(0x16f)]=_0x2c4cc8,this[_0x954344(0x167)]=_0x205477;const _0x46d405=new _0x4e9681(_0x5bb5e8);_0x46d405[_0x954344(0x168)]({'tag':_0x954344(0x15e),'attributes':{'class':[_0x954344(0x16c)]},'children':[this[_0x954344(0x16f)]]}),this[_0x954344(0x163)]=new _0x494fd6(_0x5bb5e8),this[_0x954344(0x163)][_0x954344(0x157)][_0x954344(0x15f)](this[_0x954344(0x167)]),this[_0x954344(0x168)]({'tag':'li','attributes':{'class':[_0x954344(0x15d),_0x2d0aac['if'](_0x954344(0x159),_0x954344(0x156),_0x41bf31=>!_0x41bf31)]},'children':[_0x46d405,this[_0x954344(0x163)]]});}[_0x238f10(0x162)](_0x273e71){const _0x54d893=_0x238f10,_0x587de9=this[_0x54d893(0x167)][_0x54d893(0x164)];let _0x19620e=0x0;for(const _0x3066d4 of this[_0x54d893(0x167)]){if(_0x273e71){const _0x305207=_0x3066d4[_0x54d893(0x161)](_0x273e71);_0x3066d4[_0x54d893(0x159)]=!!_0x305207,_0x3066d4[_0x54d893(0x15c)](_0x273e71);}else _0x3066d4[_0x54d893(0x159)]=!0x0,_0x3066d4[_0x54d893(0x15c)](null);_0x3066d4[_0x54d893(0x159)]&&_0x19620e++;}return this[_0x54d893(0x159)]=_0x19620e>0x0,{'resultsCount':_0x19620e,'totalItemsCount':_0x587de9};}[_0x238f10(0x16d)](_0x2a89eb){const _0x433412=_0x238f10;return this[_0x433412(0x167)][_0x433412(0x16a)](_0xee1359=>_0xee1359['id']===_0x2a89eb);}[_0x238f10(0x169)](_0x55502d){const _0x2e2551=_0x238f10,_0x300f15=this[_0x2e2551(0x167)][_0x2e2551(0x15a)](_0x55502d);-0x1!==_0x300f15&&(this[_0x2e2551(0x167)][_0x2e2551(0x16e)](_0x300f15,0x1),this[_0x2e2551(0x163)][_0x2e2551(0x157)][_0x2e2551(0x171)](_0x55502d));}}function _0x5d34(){const _0x1db968=['ck-ai-chat-history__section-title','getItem','splice','title','bindTemplate','remove','21ExoWrj','27MjKHPn','553565KREJEa','2614908EWjsqT','81478bItbZr','ck-hidden','items','2552792TqCNPD','isVisible','indexOf','set','highlightText','ck-ai-chat-history__section','div','addMany','2144580iecEFm','isMatching','filter','_itemsListView','length','672087oJYIUF','12643330UHnpYI','itemsViews','setTemplate','removeItem','find','87DPurQO'];_0x5d34=function(){return _0x1db968;};return _0x5d34();}
23
+ const _0x3ef5fa=_0x140b;function _0x140b(_0x3f26a9,_0x3004ca){const _0x1f9040=_0x1f90();return _0x140b=function(_0x140bef,_0x52e0c1){_0x140bef=_0x140bef-0xca;let _0x209e08=_0x1f9040[_0x140bef];return _0x209e08;},_0x140b(_0x3f26a9,_0x3004ca);}(function(_0x2e608e,_0x7ffcb){const _0x44b7dc=_0x140b,_0x2ed209=_0x2e608e();while(!![]){try{const _0x10a341=parseInt(_0x44b7dc(0xdd))/0x1*(parseInt(_0x44b7dc(0xcf))/0x2)+parseInt(_0x44b7dc(0xdc))/0x3+-parseInt(_0x44b7dc(0xd0))/0x4+parseInt(_0x44b7dc(0xdb))/0x5+parseInt(_0x44b7dc(0xe1))/0x6+-parseInt(_0x44b7dc(0xe6))/0x7+parseInt(_0x44b7dc(0xe8))/0x8*(parseInt(_0x44b7dc(0xce))/0x9);if(_0x10a341===_0x7ffcb)break;else _0x2ed209['push'](_0x2ed209['shift']());}catch(_0x2f730f){_0x2ed209['push'](_0x2ed209['shift']());}}}(_0x1f90,0x7677c));import{ListItemView as _0x326373,View as _0x225755,ListView as _0x19a7db}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x326373{[_0x3ef5fa(0xe5)];[_0x3ef5fa(0xde)];[_0x3ef5fa(0xd9)];constructor(_0x2869b9,{title:_0x2164d1,items:_0x3bc826}){const _0x17f51d=_0x3ef5fa;super(_0x2869b9);const _0x2ca139=this[_0x17f51d(0xe2)];this[_0x17f51d(0xd4)](_0x17f51d(0xcd),!0x0),this[_0x17f51d(0xe5)]=_0x2164d1,this[_0x17f51d(0xde)]=_0x3bc826;const _0x49d1ec=new _0x225755(_0x2869b9);_0x49d1ec[_0x17f51d(0xe3)]({'tag':_0x17f51d(0xd5),'attributes':{'class':[_0x17f51d(0xe0)]},'children':[this[_0x17f51d(0xe5)]]}),this[_0x17f51d(0xd9)]=new _0x19a7db(_0x2869b9),this[_0x17f51d(0xd9)][_0x17f51d(0xd8)][_0x17f51d(0xdf)](this[_0x17f51d(0xde)]),this[_0x17f51d(0xe3)]({'tag':'li','attributes':{'class':[_0x17f51d(0xda),_0x2ca139['if'](_0x17f51d(0xcd),_0x17f51d(0xcb),_0x25c9af=>!_0x25c9af)]},'children':[_0x49d1ec,this[_0x17f51d(0xd9)]]});}[_0x3ef5fa(0xd6)](_0x49ac4c){const _0x4a334f=_0x3ef5fa,_0x1ef9a4=this[_0x4a334f(0xde)][_0x4a334f(0xe4)];let _0x39f00c=0x0;for(const _0xae2441 of this[_0x4a334f(0xde)]){if(_0x49ac4c){const _0x2a1bac=_0xae2441[_0x4a334f(0xcc)](_0x49ac4c);_0xae2441[_0x4a334f(0xcd)]=!!_0x2a1bac,_0xae2441[_0x4a334f(0xe7)](_0x49ac4c);}else _0xae2441[_0x4a334f(0xcd)]=!0x0,_0xae2441[_0x4a334f(0xe7)](null);_0xae2441[_0x4a334f(0xcd)]&&_0x39f00c++;}return this[_0x4a334f(0xcd)]=_0x39f00c>0x0,{'resultsCount':_0x39f00c,'totalItemsCount':_0x1ef9a4};}[_0x3ef5fa(0xd2)](_0x41abfa){const _0x38cdf0=_0x3ef5fa;return this[_0x38cdf0(0xde)][_0x38cdf0(0xd7)](_0x305ea9=>_0x305ea9['id']===_0x41abfa);}[_0x3ef5fa(0xca)](_0x1b3f2a){const _0x45362d=_0x3ef5fa,_0x25eb2a=this[_0x45362d(0xde)][_0x45362d(0xd3)](_0x1b3f2a);-0x1!==_0x25eb2a&&(this[_0x45362d(0xde)][_0x45362d(0xe9)](_0x25eb2a,0x1),this[_0x45362d(0xd9)][_0x45362d(0xd8)][_0x45362d(0xd1)](_0x1b3f2a));}}function _0x1f90(){const _0x444ff1=['38769vTxynf','2446ktEurg','itemsViews','addMany','ck-ai-chat-history__section-title','689406uwFwqc','bindTemplate','setTemplate','length','title','100310muGXJw','highlightText','518816qyQrWq','splice','removeItem','ck-hidden','isMatching','isVisible','27VDqWte','146MgFiCV','1412664pnuLOU','remove','getItem','indexOf','set','div','filter','find','items','_itemsListView','ck-ai-chat-history__section','1759010OAeQVp'];_0x1f90=function(){return _0x444ff1;};return _0x1f90();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3bdd(){const _0x4c6834=['sections','689406DKtxdx','2959475fTFdvn','788071bpAoRi','11987208MtBpRQ','2877350GtLsyR','addMany','extendTemplate','items','filter','2DhbNwQ','ck-ai-chat-history__sections','1944123eeelND','1573164LUysQr'];_0x3bdd=function(){return _0x4c6834;};return _0x3bdd();}const _0x332d20=_0x32bd;(function(_0x4c484b,_0x5ea329){const _0x560e20=_0x32bd,_0x2842b4=_0x4c484b();while(!![]){try{const _0x347782=parseInt(_0x560e20(0x1f3))/0x1+-parseInt(_0x560e20(0x1fa))/0x2*(-parseInt(_0x560e20(0x1fc))/0x3)+parseInt(_0x560e20(0x1fd))/0x4+parseInt(_0x560e20(0x1f2))/0x5+-parseInt(_0x560e20(0x1ff))/0x6+-parseInt(_0x560e20(0x1f5))/0x7+-parseInt(_0x560e20(0x1f4))/0x8;if(_0x347782===_0x5ea329)break;else _0x2842b4['push'](_0x2842b4['shift']());}catch(_0x409844){_0x2842b4['push'](_0x2842b4['shift']());}}}(_0x3bdd,0x60e92));import{ListView as _0x3e73c9}from'ckeditor5/src/ui.js';function _0x32bd(_0x5373e8,_0x25bc87){const _0x3bdd52=_0x3bdd();return _0x32bd=function(_0x32bd82,_0x5ee61b){_0x32bd82=_0x32bd82-0x1f2;let _0x47d11=_0x3bdd52[_0x32bd82];return _0x47d11;},_0x32bd(_0x5373e8,_0x25bc87);}export class AIChatHistorySectionListView extends _0x3e73c9{[_0x332d20(0x1fe)];constructor(_0x48edf4,_0x5019e8){const _0x3632d1=_0x332d20;super(_0x48edf4),this[_0x3632d1(0x1fe)]=_0x5019e8,this[_0x3632d1(0x1f8)][_0x3632d1(0x1f6)](this[_0x3632d1(0x1fe)]),this[_0x3632d1(0x1f7)]({'attributes':{'class':[_0x3632d1(0x1fb)]}});}[_0x332d20(0x1f9)](_0x329798){const _0x3f6ba9=_0x332d20;let _0x5c3e41=0x0,_0x4e34da=0x0;for(const _0x543ff7 of this[_0x3f6ba9(0x1fe)]){const {resultsCount:_0x298c25,totalItemsCount:_0x371c0f}=_0x543ff7[_0x3f6ba9(0x1f9)](_0x329798);_0x5c3e41+=_0x298c25,_0x4e34da+=_0x371c0f;}return{'resultsCount':_0x5c3e41,'totalItemsCount':_0x4e34da};}}
23
+ const _0x33e3d3=_0x326e;function _0x3ce3(){const _0x1fce58=['14814AKwgDw','1183PdDqKQ','items','addMany','35FNfRZL','850423ugUpHC','8554744nDXgKh','sections','152162NysINM','ck-ai-chat-history__sections','36xCINLM','18342027YCVthu','20694YiSZGF','6070qxdsLm','filter','extendTemplate','350420jVmAMt'];_0x3ce3=function(){return _0x1fce58;};return _0x3ce3();}function _0x326e(_0xede22e,_0x1003aa){const _0x3ce3aa=_0x3ce3();return _0x326e=function(_0x326e65,_0x191f5e){_0x326e65=_0x326e65-0x1df;let _0x3ab560=_0x3ce3aa[_0x326e65];return _0x3ab560;},_0x326e(_0xede22e,_0x1003aa);}(function(_0x51713b,_0x285d67){const _0x286dc3=_0x326e,_0x15e6be=_0x51713b();while(!![]){try{const _0x418847=-parseInt(_0x286dc3(0x1e9))/0x1+-parseInt(_0x286dc3(0x1ec))/0x2*(-parseInt(_0x286dc3(0x1ee))/0x3)+parseInt(_0x286dc3(0x1e3))/0x4*(-parseInt(_0x286dc3(0x1e8))/0x5)+parseInt(_0x286dc3(0x1df))/0x6*(-parseInt(_0x286dc3(0x1e5))/0x7)+parseInt(_0x286dc3(0x1ea))/0x8+-parseInt(_0x286dc3(0x1e4))/0x9*(parseInt(_0x286dc3(0x1e0))/0xa)+parseInt(_0x286dc3(0x1ef))/0xb;if(_0x418847===_0x285d67)break;else _0x15e6be['push'](_0x15e6be['shift']());}catch(_0x124a6f){_0x15e6be['push'](_0x15e6be['shift']());}}}(_0x3ce3,0x937cf));import{ListView as _0x3993db}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x3993db{[_0x33e3d3(0x1eb)];constructor(_0x4b91b8,_0x39a24d){const _0x3e12f4=_0x33e3d3;super(_0x4b91b8),this[_0x3e12f4(0x1eb)]=_0x39a24d,this[_0x3e12f4(0x1e6)][_0x3e12f4(0x1e7)](this[_0x3e12f4(0x1eb)]),this[_0x3e12f4(0x1e2)]({'attributes':{'class':[_0x3e12f4(0x1ed)]}});}[_0x33e3d3(0x1e1)](_0x525a72){const _0x1c4755=_0x33e3d3;let _0x5b4675=0x0,_0x3b2820=0x0;for(const _0x1766e1 of this[_0x1c4755(0x1eb)]){const {resultsCount:_0xcdc907,totalItemsCount:_0x5a2a0e}=_0x1766e1[_0x1c4755(0x1e1)](_0x525a72);_0x5b4675+=_0xcdc907,_0x3b2820+=_0x5a2a0e;}return{'resultsCount':_0x5b4675,'totalItemsCount':_0x3b2820};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x27b31f=_0x44ba;function _0xace5(){const _0x13a925=['151160oWHiug','updateHistoryItemsWithCategories','fieldView','hasItems','openChat','getItem','isVisible','sections','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','ck-ai-header\x20ck-ai-header_history','resizeButton','ck-ai-chat__start-conversation','bind','ck-ai-chat-history__empty-message','change:errorMessage','change:hasItems','execute','ck-ai-notification_error','removeItem','div','1367182qqPNMd','emptyView','set','ck-ai-notification_error__dismiss-button','value','ck-ai-chat-history__content','2680398FYGamX','ck-hidden','1686544HKRfAm','clear','element','setTemplate','updateItemLoadingState','addMany','_createSearchView','445959OpfENN','AI_CHAT_HISTORY_EMPTY_MESSAGE','skeletonView','mainErrorView','isMainErrorViewVisible','_createErrorView','isSearchViewVisible','_createSkeletonView','updateTitle','searchView','children','AI_CHAT_LABEL_NEW_CHAT','10kNREDO','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','render','length','AI_CHAT_HISTORY_HEADING','ltr','splice','removeHistoryItem','_createListItemViews','extendTemplate','indexOf','updateLoadingState','delegate','locale','7DcPSVV','some','queryView','aiHistory','change:isLoading','push','ck-ai-chat-history','isEmptyViewVisible','updateItemTitle','ck-reset_all','1249708pCyZWw','add','AI_CHAT_HISTORY_SEARCH_LABEL','ck-ai-chat-history__empty','search','3Kxowck','remove','isMaximized','title','ck-rounded-corners','_refreshSearch','isLoading','itemsViews','_createEmptyStateView','550okdymH','bindTemplate','ck-ai-notification','sectionsView','fire','errorMessage','items','_updateViewVisibility','3959178kViPeD'];_0xace5=function(){return _0x13a925;};return _0xace5();}(function(_0x16f4d8,_0x3a95cf){const _0x491f8=_0x44ba,_0x38282f=_0x16f4d8();while(!![]){try{const _0x4eb83d=-parseInt(_0x491f8(0x1b4))/0x1+-parseInt(_0x491f8(0x1a5))/0x2*(parseInt(_0x491f8(0x17f))/0x3)+-parseInt(_0x491f8(0x17a))/0x4*(-parseInt(_0x491f8(0x1c0))/0x5)+parseInt(_0x491f8(0x190))/0x6+-parseInt(_0x491f8(0x1ce))/0x7*(parseInt(_0x491f8(0x1ad))/0x8)+-parseInt(_0x491f8(0x1ab))/0x9+-parseInt(_0x491f8(0x191))/0xa*(-parseInt(_0x491f8(0x188))/0xb);if(_0x4eb83d===_0x3a95cf)break;else _0x38282f['push'](_0x38282f['shift']());}catch(_0x420789){_0x38282f['push'](_0x38282f['shift']());}}}(_0xace5,0x62397));import{View as _0x2f38ed,SearchTextView as _0x22d971,FormHeaderView as _0x853213,ButtonView as _0x3c4be4}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x330df8,IconCancel as _0x23942a,IconPlus as _0x1acbf9}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x5631e9}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x2be2e0}from'./aichathistorylistview.js';function _0x44ba(_0x550c89,_0x5ee37e){const _0xace5d=_0xace5();return _0x44ba=function(_0x44ba7d,_0x58f791){_0x44ba7d=_0x44ba7d-0x176;let _0x442e45=_0xace5d[_0x44ba7d];return _0x442e45;},_0x44ba(_0x550c89,_0x5ee37e);}import{AIChatHistoryListItemView as _0x2a0bb1}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0xef2835}from'../aichathistoryui.js';import{AISkeletonView as _0x508324,SKELETON_DEFINITIONS as _0x52d79f}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x232875}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x47013b}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x2f38ed{[_0x27b31f(0x1bd)];[_0x27b31f(0x1b7)];[_0x27b31f(0x1b6)];[_0x27b31f(0x1a6)];[_0x27b31f(0x18b)];[_0x27b31f(0x19b)];constructor(_0x2720b2,_0x3cabba){const _0x57f4d3=_0x27b31f;super(_0x2720b2),this[_0x57f4d3(0x1a7)](_0x57f4d3(0x194),!0x1),this[_0x57f4d3(0x1a7)](_0x57f4d3(0x185),!0x0),this[_0x57f4d3(0x1a7)](_0x57f4d3(0x18d),''),this[_0x57f4d3(0x1a7)](_0x57f4d3(0x181),!0x1),this[_0x57f4d3(0x1a7)](_0x57f4d3(0x1ba),!0x1),this[_0x57f4d3(0x1a7)](_0x57f4d3(0x177),!0x1),this[_0x57f4d3(0x1a7)](_0x57f4d3(0x1b8),!0x1);const _0x9a5784=new _0x853213(_0x2720b2,{'label':_0x47013b(_0x2720b2,_0x57f4d3(0x1c4)),'icon':_0x330df8,'class':_0x57f4d3(0x19a)});_0x3cabba&&(this[_0x57f4d3(0x19b)]=_0x232875(_0x2720b2,this),_0x9a5784[_0x57f4d3(0x1be)][_0x57f4d3(0x17b)](this[_0x57f4d3(0x19b)])),this[_0x57f4d3(0x18b)]=new _0x5631e9(_0x2720b2,[]),this[_0x57f4d3(0x18b)][_0x57f4d3(0x1cc)](..._0xef2835)['to'](this),this[_0x57f4d3(0x1b7)]=this[_0x57f4d3(0x1b9)](),this[_0x57f4d3(0x1b6)]=this[_0x57f4d3(0x1bb)](),this[_0x57f4d3(0x1a6)]=this[_0x57f4d3(0x187)](),this[_0x57f4d3(0x1bd)]=this[_0x57f4d3(0x1b3)](),this[_0x57f4d3(0x1b7)][_0x57f4d3(0x1c9)]({'attributes':{'class':[this[_0x57f4d3(0x189)]['if'](_0x57f4d3(0x1b8),_0x57f4d3(0x1ac),_0x588e66=>!_0x588e66)]}}),this['on'](_0x57f4d3(0x1d2),()=>this[_0x57f4d3(0x18f)]()),this['on'](_0x57f4d3(0x1a0),()=>this[_0x57f4d3(0x18f)]()),this['on'](_0x57f4d3(0x19f),()=>this[_0x57f4d3(0x18f)]()),this[_0x57f4d3(0x1b0)]({'tag':_0x57f4d3(0x1a4),'attributes':{'class':['ck',_0x57f4d3(0x179),_0x57f4d3(0x176),_0x57f4d3(0x183)],'dir':_0x57f4d3(0x1c5)},'children':[_0x9a5784,{'tag':_0x57f4d3(0x1a4),'attributes':{'class':[_0x57f4d3(0x1aa)]},'children':[this[_0x57f4d3(0x1b6)],this[_0x57f4d3(0x1b7)],this[_0x57f4d3(0x1a6)],this[_0x57f4d3(0x1bd)]]}]});}[_0x27b31f(0x18f)](){const _0x27d78b=_0x27b31f;this[_0x27d78b(0x1ba)]=!this[_0x27d78b(0x185)]&&this[_0x27d78b(0x194)],this[_0x27d78b(0x177)]=!this[_0x27d78b(0x185)]&&!this[_0x27d78b(0x194)]&&!this[_0x27d78b(0x18d)],this[_0x27d78b(0x1b8)]=!this[_0x27d78b(0x1ba)]&&!!this[_0x27d78b(0x18d)];}[_0x27b31f(0x1b3)](){const _0x2eae0b=_0x27b31f,_0x5d18f2=new _0x22d971(this[_0x2eae0b(0x1cd)],{'filteredView':this[_0x2eae0b(0x18b)],'queryView':{'label':_0x47013b(this[_0x2eae0b(0x1cd)],_0x2eae0b(0x17c))},'infoView':{'text':{'notFound':{'primary':_0x1e67f7=>_0x47013b(this[_0x2eae0b(0x1cd)],_0x2eae0b(0x199),_0x1e67f7),'secondary':_0x47013b(this[_0x2eae0b(0x1cd)],_0x2eae0b(0x1c1))}}}}),_0x33ac52=this[_0x2eae0b(0x1b9)]();return _0x33ac52[_0x2eae0b(0x1c9)]({'attributes':{'class':[this[_0x2eae0b(0x189)]['if'](_0x2eae0b(0x18d),_0x2eae0b(0x1ac),_0x5a5673=>!_0x5a5673)]}}),_0x5d18f2['on'](_0x2eae0b(0x1c2),()=>{const _0x422f27=_0x2eae0b;_0x5d18f2[_0x422f27(0x1be)][_0x422f27(0x17b)](_0x33ac52,0x1);}),_0x5d18f2[_0x2eae0b(0x1c9)]({'attributes':{'class':[this[_0x2eae0b(0x189)]['if'](_0x2eae0b(0x1ba),_0x2eae0b(0x1ac),_0xb9eda5=>!_0xb9eda5)]}}),_0x5d18f2;}[_0x27b31f(0x1bb)](){const _0x20b290=_0x27b31f,_0x4d544b=new _0x508324(this[_0x20b290(0x1cd)],_0x52d79f[_0x20b290(0x1d1)]);return _0x4d544b[_0x20b290(0x1c9)]({'attributes':{'class':[this[_0x20b290(0x189)]['if'](_0x20b290(0x185),_0x20b290(0x1ac),_0x44232c=>!_0x44232c)]}}),_0x4d544b;}[_0x27b31f(0x1b9)](){const _0x47aa10=_0x27b31f,_0x127c40=new _0x2f38ed(this[_0x47aa10(0x1cd)]),_0x2ab84e=new _0x3c4be4(this[_0x47aa10(0x1cd)]);_0x2ab84e[_0x47aa10(0x1a7)]({'withText':!0x1,'icon':_0x23942a,'class':_0x47aa10(0x1a8)}),_0x2ab84e[_0x47aa10(0x19d)](_0x47aa10(0x197))['to'](this,_0x47aa10(0x194),_0x1d0251=>!!_0x1d0251),_0x2ab84e['on'](_0x47aa10(0x1a1),()=>{const _0x3c2790=_0x47aa10;this[_0x3c2790(0x18d)]='';});const _0x3ac201=this[_0x47aa10(0x189)];return _0x127c40[_0x47aa10(0x1b0)]({'tag':_0x47aa10(0x1a4),'attributes':{'class':['ck',_0x47aa10(0x18a),_0x47aa10(0x1a2)]},'children':[{'tag':'p','children':[{'text':_0x3ac201['to'](_0x47aa10(0x18d))}]},_0x2ab84e]}),_0x127c40;}[_0x27b31f(0x187)](){const _0xe01323=_0x27b31f,_0x3f8685=new _0x3c4be4(this[_0xe01323(0x1cd)]);_0x3f8685[_0xe01323(0x1a7)]({'label':_0x47013b(this[_0xe01323(0x1cd)],_0xe01323(0x1bf)),'withText':!0x0,'icon':_0x1acbf9,'class':_0xe01323(0x19c)}),_0x3f8685['on'](_0xe01323(0x1a1),()=>{const _0x7e7a3e=_0xe01323;this[_0x7e7a3e(0x18c)](_0x7e7a3e(0x195));});const _0x59ca63=new _0x2f38ed(this[_0xe01323(0x1cd)]);return _0x59ca63[_0xe01323(0x1b0)]({'tag':_0xe01323(0x1a4),'attributes':{'class':[_0xe01323(0x17d),this[_0xe01323(0x189)]['if'](_0xe01323(0x177),_0xe01323(0x1ac),_0x2147be=>!_0x2147be)]},'children':[{'tag':'p','attributes':{'class':[_0xe01323(0x19e)]},'children':[_0x47013b(this[_0xe01323(0x1cd)],_0xe01323(0x1b5))]},_0x3f8685]}),_0x59ca63;}[_0x27b31f(0x1c8)](_0x135074,_0x10af49){const _0x3baad4=_0x27b31f,_0x1cb274=[];for(const _0xb8e3cd of _0x135074){const _0x175dfa=new _0x2a0bb1(_0x10af49,_0xb8e3cd);_0x175dfa[_0x3baad4(0x1cc)](..._0xef2835)['to'](this),_0x1cb274[_0x3baad4(0x1d3)](_0x175dfa);}return _0x1cb274;}[_0x27b31f(0x192)](_0x12d03f){const _0x3bd479=_0x27b31f,_0x28c448=this[_0x3bd479(0x1cd)]||'en',_0x2ed821=[];for(const _0x2e5261 of _0x12d03f){const _0x9d94a7=this[_0x3bd479(0x1c8)](_0x2e5261[_0x3bd479(0x18e)],_0x28c448);_0x2ed821[_0x3bd479(0x1d3)](new _0x2be2e0(_0x28c448,{'title':_0x2e5261[_0x3bd479(0x182)],'items':_0x9d94a7}));}this[_0x3bd479(0x18b)][_0x3bd479(0x198)]=_0x2ed821,this[_0x3bd479(0x18b)][_0x3bd479(0x18e)][_0x3bd479(0x1ae)](),this[_0x3bd479(0x18b)][_0x3bd479(0x18e)][_0x3bd479(0x1b2)](_0x2ed821),this[_0x3bd479(0x194)]=_0x12d03f[_0x3bd479(0x1cf)](_0xba3009=>_0xba3009[_0x3bd479(0x18e)][_0x3bd479(0x1c3)]>0x0),this[_0x3bd479(0x184)]();}[_0x27b31f(0x1c7)](_0x2ed153){const _0x26a087=_0x27b31f;for(const _0x4a7db2 of this[_0x26a087(0x18b)][_0x26a087(0x198)]){const _0x4282b4=_0x4a7db2[_0x26a087(0x196)](_0x2ed153);if(_0x4282b4){if(_0x4a7db2[_0x26a087(0x1a3)](_0x4282b4),0x0===_0x4a7db2[_0x26a087(0x186)][_0x26a087(0x1c3)]){const _0x4ea945=this[_0x26a087(0x18b)][_0x26a087(0x198)][_0x26a087(0x1ca)](_0x4a7db2);-0x1!==_0x4ea945&&(this[_0x26a087(0x18b)][_0x26a087(0x198)][_0x26a087(0x1c6)](_0x4ea945,0x1),this[_0x26a087(0x18b)][_0x26a087(0x18e)][_0x26a087(0x180)](_0x4a7db2));}this[_0x26a087(0x194)]=this[_0x26a087(0x18b)][_0x26a087(0x198)][_0x26a087(0x1c3)]>0x0,this[_0x26a087(0x184)]();break;}}}[_0x27b31f(0x178)](_0x4b507d,_0x5ee140){const _0x12ae7b=_0x27b31f;for(const _0x5f0464 of this[_0x12ae7b(0x18b)][_0x12ae7b(0x198)]){const _0x2eaf1b=_0x5f0464[_0x12ae7b(0x196)](_0x4b507d);if(_0x2eaf1b){_0x2eaf1b[_0x12ae7b(0x1bc)](_0x5ee140);break;}}}[_0x27b31f(0x1b1)](_0x501bc4,_0x504a6c,_0x1961e2){const _0x3968b3=_0x27b31f;for(const _0x47ce14 of this[_0x3968b3(0x18b)][_0x3968b3(0x198)]){const _0x121879=_0x47ce14[_0x3968b3(0x196)](_0x501bc4);if(_0x121879){_0x121879[_0x3968b3(0x1cb)](_0x504a6c,_0x1961e2);break;}}}[_0x27b31f(0x184)](){const _0x5a3317=_0x27b31f;if(this[_0x5a3317(0x194)]){const _0x7a4ade=this[_0x5a3317(0x1bd)][_0x5a3317(0x1d0)][_0x5a3317(0x193)]?.[_0x5a3317(0x1af)]?.[_0x5a3317(0x1a9)]||'';this[_0x5a3317(0x1bd)][_0x5a3317(0x17e)](_0x7a4ade);}}}
23
+ const _0x46a8d7=_0x510b;(function(_0x40899d,_0x5289a7){const _0x28fea0=_0x510b,_0xaeb2a=_0x40899d();while(!![]){try{const _0x55296b=parseInt(_0x28fea0(0x13d))/0x1*(parseInt(_0x28fea0(0x16c))/0x2)+parseInt(_0x28fea0(0x142))/0x3*(-parseInt(_0x28fea0(0x135))/0x4)+parseInt(_0x28fea0(0x183))/0x5*(-parseInt(_0x28fea0(0x173))/0x6)+parseInt(_0x28fea0(0x186))/0x7+parseInt(_0x28fea0(0x17f))/0x8*(-parseInt(_0x28fea0(0x15c))/0x9)+-parseInt(_0x28fea0(0x16b))/0xa*(parseInt(_0x28fea0(0x167))/0xb)+-parseInt(_0x28fea0(0x17a))/0xc*(-parseInt(_0x28fea0(0x175))/0xd);if(_0x55296b===_0x5289a7)break;else _0xaeb2a['push'](_0xaeb2a['shift']());}catch(_0x244bed){_0xaeb2a['push'](_0xaeb2a['shift']());}}}(_0x1e5e,0x9306b));import{View as _0x42c871,SearchTextView as _0x5cbc6b,FormHeaderView as _0x12f55b,ButtonView as _0x2e2985}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x16ee12,IconCancel as _0x5e8cb3,IconPlus as _0x5db4cf}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x1819d8}from'./aichathistorysectionlistview.js';function _0x1e5e(){const _0x264847=['ck-ai-notification','div','title','updateHistoryItemsWithCategories','change:isLoading','push','17nFdChC','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-hidden','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','length','61365xEAbhD','openChat','change:errorMessage','items','updateTitle','errorMessage','ck-ai-chat-history__empty-message','isEmptyViewVisible','aiHistory','_createEmptyStateView','remove','children','_createListItemViews','ltr','set','fire','AI_CHAT_HISTORY_SEARCH_LABEL','ck-reset_all','execute','ck-ai-chat-history__empty','AI_CHAT_LABEL_NEW_CHAT','ck-ai-notification_error__dismiss-button','locale','isMainErrorViewVisible','_refreshSearch','add','18ZovAeN','value','sections','element','setTemplate','searchView','isSearchViewVisible','_createErrorView','fieldView','updateItemLoadingState','skeletonView','66473bhKTpG','updateLoadingState','ck-ai-chat__start-conversation','delegate','220EJygNb','110770EyezaV','hasItems','addMany','removeItem','_updateViewVisibility','ck-ai-chat-history__content','bindTemplate','811182GqQwNV','clear','13ALjOff','_createSearchView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','emptyView','search','12973416MEtEJn','removeHistoryItem','updateItemTitle','_createSkeletonView','ck-rounded-corners','2679640ASnFYY','queryView','AI_CHAT_HISTORY_HEADING','indexOf','20MOhTmZ','sectionsView','isMaximized','1896545PBpjFz','getItem','ck-ai-header\x20ck-ai-header_history','ck-ai-chat-history','change:hasItems','render','resizeButton','isVisible','isLoading','ck-ai-notification_error','extendTemplate','bind','itemsViews','splice','mainErrorView','68oPqWHN','some'];_0x1e5e=function(){return _0x264847;};return _0x1e5e();}import{AIChatHistoryListView as _0x4f2d60}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x53ad51}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x9c5e60}from'../aichathistoryui.js';import{AISkeletonView as _0x138d99,SKELETON_DEFINITIONS as _0x1d65e8}from'../../aicore/ui/aiskeleton.js';function _0x510b(_0x2dcecd,_0x30c876){const _0x1e5e23=_0x1e5e();return _0x510b=function(_0x510b91,_0x113a73){_0x510b91=_0x510b91-0x12d;let _0x3ecfca=_0x1e5e23[_0x510b91];return _0x3ecfca;},_0x510b(_0x2dcecd,_0x30c876);}import{createResizeButton as _0x2d18eb}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x31cd13}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x42c871{[_0x46a8d7(0x161)];[_0x46a8d7(0x134)];[_0x46a8d7(0x166)];[_0x46a8d7(0x178)];[_0x46a8d7(0x184)];[_0x46a8d7(0x18c)];constructor(_0x3df03d,_0x3a346b){const _0x302f6f=_0x46a8d7;super(_0x3df03d),this[_0x302f6f(0x150)](_0x302f6f(0x16d),!0x1),this[_0x302f6f(0x150)](_0x302f6f(0x12e),!0x0),this[_0x302f6f(0x150)](_0x302f6f(0x147),''),this[_0x302f6f(0x150)](_0x302f6f(0x185),!0x1),this[_0x302f6f(0x150)](_0x302f6f(0x162),!0x1),this[_0x302f6f(0x150)](_0x302f6f(0x149),!0x1),this[_0x302f6f(0x150)](_0x302f6f(0x159),!0x1);const _0x2f686b=new _0x12f55b(_0x3df03d,{'label':_0x31cd13(_0x3df03d,_0x302f6f(0x181)),'icon':_0x16ee12,'class':_0x302f6f(0x188)});_0x3a346b&&(this[_0x302f6f(0x18c)]=_0x2d18eb(_0x3df03d,this),_0x2f686b[_0x302f6f(0x14d)][_0x302f6f(0x15b)](this[_0x302f6f(0x18c)])),this[_0x302f6f(0x184)]=new _0x1819d8(_0x3df03d,[]),this[_0x302f6f(0x184)][_0x302f6f(0x16a)](..._0x9c5e60)['to'](this),this[_0x302f6f(0x134)]=this[_0x302f6f(0x163)](),this[_0x302f6f(0x166)]=this[_0x302f6f(0x17d)](),this[_0x302f6f(0x178)]=this[_0x302f6f(0x14b)](),this[_0x302f6f(0x161)]=this[_0x302f6f(0x176)](),this[_0x302f6f(0x134)][_0x302f6f(0x130)]({'attributes':{'class':[this[_0x302f6f(0x172)]['if'](_0x302f6f(0x159),_0x302f6f(0x13f),_0x58d88e=>!_0x58d88e)]}}),this['on'](_0x302f6f(0x13b),()=>this[_0x302f6f(0x170)]()),this['on'](_0x302f6f(0x18a),()=>this[_0x302f6f(0x170)]()),this['on'](_0x302f6f(0x144),()=>this[_0x302f6f(0x170)]()),this[_0x302f6f(0x160)]({'tag':_0x302f6f(0x138),'attributes':{'class':['ck',_0x302f6f(0x153),_0x302f6f(0x189),_0x302f6f(0x17e)],'dir':_0x302f6f(0x14f)},'children':[_0x2f686b,{'tag':_0x302f6f(0x138),'attributes':{'class':[_0x302f6f(0x171)]},'children':[this[_0x302f6f(0x166)],this[_0x302f6f(0x134)],this[_0x302f6f(0x178)],this[_0x302f6f(0x161)]]}]});}[_0x46a8d7(0x170)](){const _0x2237da=_0x46a8d7;this[_0x2237da(0x162)]=!this[_0x2237da(0x12e)]&&this[_0x2237da(0x16d)],this[_0x2237da(0x149)]=!this[_0x2237da(0x12e)]&&!this[_0x2237da(0x16d)]&&!this[_0x2237da(0x147)],this[_0x2237da(0x159)]=!this[_0x2237da(0x162)]&&!!this[_0x2237da(0x147)];}[_0x46a8d7(0x176)](){const _0x1f8936=_0x46a8d7,_0x22d35c=new _0x5cbc6b(this[_0x1f8936(0x158)],{'filteredView':this[_0x1f8936(0x184)],'queryView':{'label':_0x31cd13(this[_0x1f8936(0x158)],_0x1f8936(0x152))},'infoView':{'text':{'notFound':{'primary':_0x2991a6=>_0x31cd13(this[_0x1f8936(0x158)],_0x1f8936(0x140),_0x2991a6),'secondary':_0x31cd13(this[_0x1f8936(0x158)],_0x1f8936(0x177))}}}}),_0x58c7e4=this[_0x1f8936(0x163)]();return _0x58c7e4[_0x1f8936(0x130)]({'attributes':{'class':[this[_0x1f8936(0x172)]['if'](_0x1f8936(0x147),_0x1f8936(0x13f),_0x2286f6=>!_0x2286f6)]}}),_0x22d35c['on'](_0x1f8936(0x18b),()=>{const _0x56caf5=_0x1f8936;_0x22d35c[_0x56caf5(0x14d)][_0x56caf5(0x15b)](_0x58c7e4,0x1);}),_0x22d35c[_0x1f8936(0x130)]({'attributes':{'class':[this[_0x1f8936(0x172)]['if'](_0x1f8936(0x162),_0x1f8936(0x13f),_0x5d568e=>!_0x5d568e)]}}),_0x22d35c;}[_0x46a8d7(0x17d)](){const _0x4bd705=_0x46a8d7,_0x3aee0b=new _0x138d99(this[_0x4bd705(0x158)],_0x1d65e8[_0x4bd705(0x14a)]);return _0x3aee0b[_0x4bd705(0x130)]({'attributes':{'class':[this[_0x4bd705(0x172)]['if'](_0x4bd705(0x12e),_0x4bd705(0x13f),_0xf5e308=>!_0xf5e308)]}}),_0x3aee0b;}[_0x46a8d7(0x163)](){const _0x3ad9bf=_0x46a8d7,_0x745471=new _0x42c871(this[_0x3ad9bf(0x158)]),_0x33026d=new _0x2e2985(this[_0x3ad9bf(0x158)]);_0x33026d[_0x3ad9bf(0x150)]({'withText':!0x1,'icon':_0x5e8cb3,'class':_0x3ad9bf(0x157)}),_0x33026d[_0x3ad9bf(0x131)](_0x3ad9bf(0x12d))['to'](this,_0x3ad9bf(0x16d),_0x1fe281=>!!_0x1fe281),_0x33026d['on'](_0x3ad9bf(0x154),()=>{const _0x29f716=_0x3ad9bf;this[_0x29f716(0x147)]='';});const _0x4ddc07=this[_0x3ad9bf(0x172)];return _0x745471[_0x3ad9bf(0x160)]({'tag':_0x3ad9bf(0x138),'attributes':{'class':['ck',_0x3ad9bf(0x137),_0x3ad9bf(0x12f)]},'children':[{'tag':'p','children':[{'text':_0x4ddc07['to'](_0x3ad9bf(0x147))}]},_0x33026d]}),_0x745471;}[_0x46a8d7(0x14b)](){const _0x4521b1=_0x46a8d7,_0x41542a=new _0x2e2985(this[_0x4521b1(0x158)]);_0x41542a[_0x4521b1(0x150)]({'label':_0x31cd13(this[_0x4521b1(0x158)],_0x4521b1(0x156)),'withText':!0x0,'icon':_0x5db4cf,'class':_0x4521b1(0x169)}),_0x41542a['on'](_0x4521b1(0x154),()=>{const _0x1a2999=_0x4521b1;this[_0x1a2999(0x151)](_0x1a2999(0x143));});const _0x18a919=new _0x42c871(this[_0x4521b1(0x158)]);return _0x18a919[_0x4521b1(0x160)]({'tag':_0x4521b1(0x138),'attributes':{'class':[_0x4521b1(0x155),this[_0x4521b1(0x172)]['if'](_0x4521b1(0x149),_0x4521b1(0x13f),_0x59f06d=>!_0x59f06d)]},'children':[{'tag':'p','attributes':{'class':[_0x4521b1(0x148)]},'children':[_0x31cd13(this[_0x4521b1(0x158)],_0x4521b1(0x13e))]},_0x41542a]}),_0x18a919;}[_0x46a8d7(0x14e)](_0x7a7a89,_0x4bde28){const _0x5cd38c=_0x46a8d7,_0x286e67=[];for(const _0x3b2e26 of _0x7a7a89){const _0x1d23f9=new _0x53ad51(_0x4bde28,_0x3b2e26);_0x1d23f9[_0x5cd38c(0x16a)](..._0x9c5e60)['to'](this),_0x286e67[_0x5cd38c(0x13c)](_0x1d23f9);}return _0x286e67;}[_0x46a8d7(0x13a)](_0x451677){const _0x1d13ab=_0x46a8d7,_0x57687b=this[_0x1d13ab(0x158)]||'en',_0x15543c=[];for(const _0x51a71a of _0x451677){const _0x48bde8=this[_0x1d13ab(0x14e)](_0x51a71a[_0x1d13ab(0x145)],_0x57687b);_0x15543c[_0x1d13ab(0x13c)](new _0x4f2d60(_0x57687b,{'title':_0x51a71a[_0x1d13ab(0x139)],'items':_0x48bde8}));}this[_0x1d13ab(0x184)][_0x1d13ab(0x15e)]=_0x15543c,this[_0x1d13ab(0x184)][_0x1d13ab(0x145)][_0x1d13ab(0x174)](),this[_0x1d13ab(0x184)][_0x1d13ab(0x145)][_0x1d13ab(0x16e)](_0x15543c),this[_0x1d13ab(0x16d)]=_0x451677[_0x1d13ab(0x136)](_0x42410a=>_0x42410a[_0x1d13ab(0x145)][_0x1d13ab(0x141)]>0x0),this[_0x1d13ab(0x15a)]();}[_0x46a8d7(0x17b)](_0x3cbfda){const _0x175660=_0x46a8d7;for(const _0xd0ac0d of this[_0x175660(0x184)][_0x175660(0x15e)]){const _0x173cd1=_0xd0ac0d[_0x175660(0x187)](_0x3cbfda);if(_0x173cd1){if(_0xd0ac0d[_0x175660(0x16f)](_0x173cd1),0x0===_0xd0ac0d[_0x175660(0x132)][_0x175660(0x141)]){const _0x2f31b8=this[_0x175660(0x184)][_0x175660(0x15e)][_0x175660(0x182)](_0xd0ac0d);-0x1!==_0x2f31b8&&(this[_0x175660(0x184)][_0x175660(0x15e)][_0x175660(0x133)](_0x2f31b8,0x1),this[_0x175660(0x184)][_0x175660(0x145)][_0x175660(0x14c)](_0xd0ac0d));}this[_0x175660(0x16d)]=this[_0x175660(0x184)][_0x175660(0x15e)][_0x175660(0x141)]>0x0,this[_0x175660(0x15a)]();break;}}}[_0x46a8d7(0x17c)](_0x2f925d,_0x3effc2){const _0x49e4ba=_0x46a8d7;for(const _0x4f8f25 of this[_0x49e4ba(0x184)][_0x49e4ba(0x15e)]){const _0x10182c=_0x4f8f25[_0x49e4ba(0x187)](_0x2f925d);if(_0x10182c){_0x10182c[_0x49e4ba(0x146)](_0x3effc2);break;}}}[_0x46a8d7(0x165)](_0x211bbf,_0x293519,_0x522104){const _0x3c1f35=_0x46a8d7;for(const _0x4ba1f5 of this[_0x3c1f35(0x184)][_0x3c1f35(0x15e)]){const _0x5738b2=_0x4ba1f5[_0x3c1f35(0x187)](_0x211bbf);if(_0x5738b2){_0x5738b2[_0x3c1f35(0x168)](_0x293519,_0x522104);break;}}}[_0x46a8d7(0x15a)](){const _0x45b20a=_0x46a8d7;if(this[_0x45b20a(0x16d)]){const _0x386921=this[_0x45b20a(0x161)][_0x45b20a(0x180)][_0x45b20a(0x164)]?.[_0x45b20a(0x15f)]?.[_0x45b20a(0x15d)]||'';this[_0x45b20a(0x161)][_0x45b20a(0x179)](_0x386921);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xcd2a03=_0x5483;(function(_0x17ecee,_0x33c4d9){const _0xdb371a=_0x5483,_0x4c9888=_0x17ecee();while(!![]){try{const _0x428c17=parseInt(_0xdb371a(0x203))/0x1+parseInt(_0xdb371a(0x20f))/0x2+parseInt(_0xdb371a(0x238))/0x3+parseInt(_0xdb371a(0x254))/0x4+-parseInt(_0xdb371a(0x206))/0x5*(-parseInt(_0xdb371a(0x1d5))/0x6)+-parseInt(_0xdb371a(0x1ee))/0x7+-parseInt(_0xdb371a(0x1db))/0x8;if(_0x428c17===_0x33c4d9)break;else _0x4c9888['push'](_0x4c9888['shift']());}catch(_0x49c440){_0x4c9888['push'](_0x4c9888['shift']());}}}(_0x585a,0x572b8));function _0x585a(){const _0x4fc3e0=['abortController','MAKE_LONGER','feed','/messages/','status','/files/','make-longer','/web-resources','make-tone-formal','474439GKjiEM','_sendApiRequest','/actions/custom/calls/','290760PDaPsI','limit','/documents','upsertCustomAIActionRating','toString','uploadUrl','deleteConversation','message','/web-resources/','1309290QVrHDb','/documents/','catch','/reviews/custom/calls/','continue','keys','AbortError','fetchConversationMessages','search','ai-request-aborted','fetchConversations','value','get','data','getReader','push','uploadFile','decode','MAKE_SHORTER','deleteFile','/models/1?','PATCH','traceId','length','ai.serviceUrl','GET','isOfficialPlugin','AIConnector','parse','releaseLock','_handleError','define','fetchDocument','uploadDocument','/ratings','attributes','FIX_GRAMMAR','read','/actions/system/','make-tone-casual','callCustomReview','2011941nyxUNZ','IMPROVE_WRITING','statusText','language','deleteDocument','config','https://ai.cke-cs.com/v1','TRANSLATE','_decoder','pluginName','modificationId','_token','init','updateConversation','/calls/','startConversation','queryAssistant','isPremiumPlugin','items','_apiUrl','true','body','fix-grammar','PUT','stringify','executeAction','/reviews/system/','json','1588132dXNgaJ','/conversations','Content-Type','requires','/conversations/','file','executeCustomAction','callSystemReview','text','positiveCount','upsertAIChatRating','/reviews/custom/calls','/files','POST','Bearer\x20','/messages','make-shorter','66OKMlzy','request','upsertAIReviewRating','group','100','translate','17088280qTiKNA','getModels','ai-request-failed','/actions/custom/calls','upsertCustomAIReviewRating','code','CloudServices','/conversations?','/calls','name','signal','CONTINUE','DELETE','reset','_getStreamReader','context','improve-writing','MAKE_TONE_CASUAL','then','2403471NeWMHX','totalCount','deleteWebResource','MAKE_TONE_FORMAL','upsertAIActionRating','token','excludeEmpty','ai-missing-token','fetchConversation','application/json','plugins','append'];_0x585a=function(){return _0x4fc3e0;};return _0x585a();}import{createParser as _0x90b4bd}from'eventsource-parser';import{ContextPlugin as _0xcfde16}from'ckeditor5/src/core.js';function _0x5483(_0x55a226,_0x3ad0cb){const _0x585a4a=_0x585a();return _0x5483=function(_0x5483b5,_0x5cbded){_0x5483b5=_0x5483b5-0x1c9;let _0x3f50e9=_0x585a4a[_0x5483b5];return _0x3f50e9;},_0x5483(_0x55a226,_0x3ad0cb);}import{CKEditorError as _0x488115}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x136996){const _0x27fc3e=_0x5483;_0x136996[_0x27fc3e(0x1e6)]=_0x27fc3e(0x213),_0x136996[_0x27fc3e(0x233)]=_0x27fc3e(0x24e),_0x136996[_0x27fc3e(0x239)]=_0x27fc3e(0x1eb),_0x136996[_0x27fc3e(0x1fb)]=_0x27fc3e(0x200),_0x136996[_0x27fc3e(0x221)]=_0x27fc3e(0x1d4),_0x136996[_0x27fc3e(0x1ec)]=_0x27fc3e(0x236),_0x136996[_0x27fc3e(0x1f1)]=_0x27fc3e(0x202),_0x136996[_0x27fc3e(0x23f)]=_0x27fc3e(0x1da);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0xcfde16{[_0xcd2a03(0x24b)];[_0xcd2a03(0x243)];[_0xcd2a03(0x240)];static get[_0xcd2a03(0x257)](){const _0x27c37f=_0xcd2a03;return[_0x27c37f(0x1e1)];}static get[_0xcd2a03(0x241)](){const _0xd9a384=_0xcd2a03;return _0xd9a384(0x22a);}static get[_0xcd2a03(0x229)](){return!0x0;}static get[_0xcd2a03(0x249)](){return!0x0;}constructor(_0x41fedf){const _0x28849b=_0xcd2a03;super(_0x41fedf),this[_0x28849b(0x1ea)][_0x28849b(0x23d)][_0x28849b(0x22e)](_0x28849b(0x227),_0x28849b(0x23e)),this[_0x28849b(0x24b)]=this[_0x28849b(0x1ea)][_0x28849b(0x23d)][_0x28849b(0x21b)](_0x28849b(0x227)),this[_0x28849b(0x243)]=null,this[_0x28849b(0x240)]=new TextDecoder();}[_0xcd2a03(0x244)](){const _0x3f6fa7=_0xcd2a03,_0x59146a=this[_0x3f6fa7(0x1ea)][_0x3f6fa7(0x1f8)][_0x3f6fa7(0x21b)](_0x3f6fa7(0x1e1));if(!_0x59146a[_0x3f6fa7(0x1f3)])throw new _0x488115(_0x3f6fa7(0x1f5),this);this[_0x3f6fa7(0x243)]=_0x59146a[_0x3f6fa7(0x1f3)];}[_0xcd2a03(0x247)](_0x3395e1,_0x457be9){const _0x1b3403=_0xcd2a03,_0x1a4584=this[_0x1b3403(0x204)](_0x1b3403(0x255),_0x1b3403(0x1d1),{'id':_0x3395e1,'group':_0x457be9});return{'getConversation':async()=>(await _0x1a4584[_0x1b3403(0x1d6)])[_0x1b3403(0x253)](),'abortController':_0x1a4584[_0x1b3403(0x1fa)]};}[_0xcd2a03(0x248)]({message:_0x6b8579,conversationId:_0x3ff35d,parts:_0x2cf089,capabilities:_0x31c4c6,model:_0xcf0cb5,quickActionData:_0x4e5dbf}){const _0x1b44a5=_0xcd2a03,_0x140e2a={..._0x4e5dbf&&{'quickActionData':_0x4e5dbf}},_0xa1dc39={'prompt':_0x6b8579,'content':_0x2cf089,'model':_0xcf0cb5,..._0x31c4c6&&{'capabilities':_0x31c4c6},...Object[_0x1b44a5(0x214)](_0x140e2a)[_0x1b44a5(0x226)]>0x0&&{'attributes':_0x140e2a}},_0x1fcb45=this[_0x1b44a5(0x204)](_0x1b44a5(0x258)+_0x3ff35d+_0x1b44a5(0x1d3),_0x1b44a5(0x1d1),_0xa1dc39);return{'getStream':async()=>{const _0x25e204=_0x1b44a5,_0x27b74a=(await _0x1fcb45[_0x25e204(0x1d6)])[_0x25e204(0x24d)];return this[_0x25e204(0x1e9)](_0x27b74a);},'abortController':_0x1fcb45[_0x1b44a5(0x1fa)]};}[_0xcd2a03(0x1ca)]({content:_0xcfd271,message:_0x5b3491,model:_0xd475a3,outputFormat:_0x5cf5ba}){const _0x19cf88=_0xcd2a03,_0x22bca6={'content':[{'type':_0x19cf88(0x1cc),'content':_0xcfd271}],'prompt':_0x5b3491,'model':_0xd475a3,'outputFormat':_0x5cf5ba},_0x50d80c=this[_0x19cf88(0x204)](_0x19cf88(0x1de),_0x19cf88(0x1d1),_0x22bca6);return{'getStream':async()=>{const _0xe7401f=_0x19cf88,_0x4ec200=(await _0x50d80c[_0xe7401f(0x1d6)])[_0xe7401f(0x24d)];return this[_0xe7401f(0x1e9)](_0x4ec200);},'abortController':_0x50d80c[_0x19cf88(0x1fa)]};}[_0xcd2a03(0x251)]({actionName:_0xb73763,content:_0x48b679,args:_0x51c866}){const _0x4def72=_0xcd2a03,_0xd67dd={'content':[{'type':_0x4def72(0x1cc),'content':_0x48b679}],'args':_0x51c866},_0xdebc64=this[_0x4def72(0x204)](_0x4def72(0x235)+_0xb73763+_0x4def72(0x1e3),_0x4def72(0x1d1),_0xd67dd);return{'getStream':async()=>{const _0x2b1a4a=_0x4def72,_0x5d41bc=(await _0xdebc64[_0x2b1a4a(0x1d6)])[_0x2b1a4a(0x24d)];return this[_0x2b1a4a(0x1e9)](_0x5d41bc);},'abortController':_0xdebc64[_0x4def72(0x1fa)]};}[_0xcd2a03(0x21f)](_0x10e7e6,_0x523982,_0x18c5b7){const _0x16c8fc=_0xcd2a03,_0x471958=new FormData();_0x471958[_0x16c8fc(0x1f9)](_0x16c8fc(0x1c9),_0x523982,_0x523982[_0x16c8fc(0x1e4)]),_0x18c5b7&&_0x471958[_0x16c8fc(0x1f9)](_0x16c8fc(0x232),JSON[_0x16c8fc(0x250)](_0x18c5b7));const _0xd58731=this[_0x16c8fc(0x204)](_0x16c8fc(0x258)+_0x10e7e6+_0x16c8fc(0x1d0),_0x16c8fc(0x1d1),_0x471958);return{'getId':async()=>(await _0xd58731[_0x16c8fc(0x1d6)])[_0x16c8fc(0x253)](),'abortController':_0xd58731[_0x16c8fc(0x1fa)]};}[_0xcd2a03(0x22f)](_0xd51bda,_0xab815d){const _0x2ed7fb=_0xcd2a03,_0x447138=this[_0x2ed7fb(0x204)](_0x2ed7fb(0x258)+_0xd51bda+_0x2ed7fb(0x210)+_0xab815d,_0x2ed7fb(0x228));return{'getDocument':async()=>(await _0x447138[_0x2ed7fb(0x1d6)])[_0x2ed7fb(0x253)](),'abortController':_0x447138[_0x2ed7fb(0x1fa)]};}[_0xcd2a03(0x230)](_0x47d441,_0x1f4940,_0x18aeaf){const _0x18f856=_0xcd2a03,_0x1b5c46={'content':_0x1f4940};_0x18aeaf&&(_0x1b5c46[_0x18f856(0x232)]=_0x18aeaf);const _0x125f2a=this[_0x18f856(0x204)](_0x18f856(0x258)+_0x47d441+_0x18f856(0x208),_0x18f856(0x1d1),_0x1b5c46);return{'getId':async()=>(await _0x125f2a[_0x18f856(0x1d6)])[_0x18f856(0x253)](),'abortController':_0x125f2a[_0x18f856(0x1fa)]};}[_0xcd2a03(0x219)](_0x7140ed,_0x1a00fb){const _0x137abc=_0xcd2a03,_0x5ceeaf=new URLSearchParams();_0x5ceeaf[_0x137abc(0x1f9)](_0x137abc(0x1f4),_0x137abc(0x24c)),_0x5ceeaf[_0x137abc(0x1f9)](_0x137abc(0x207),_0x137abc(0x1d9)),_0x5ceeaf[_0x137abc(0x1f9)](_0x137abc(0x1d8),_0x7140ed),_0x1a00fb&&_0x5ceeaf[_0x137abc(0x1f9)](_0x137abc(0x217),_0x1a00fb);const _0x4d951d=this[_0x137abc(0x204)](_0x137abc(0x1e2)+_0x5ceeaf[_0x137abc(0x20a)](),_0x137abc(0x228));return{'getConversations':async()=>{const _0x13cddc=_0x137abc,_0x471d1f=await _0x4d951d[_0x13cddc(0x1d6)];return(await _0x471d1f[_0x13cddc(0x253)]())[_0x13cddc(0x24a)];},'abortController':_0x4d951d[_0x137abc(0x1fa)]};}[_0xcd2a03(0x20c)](_0x232b2b){const _0x5aece5=_0xcd2a03,_0x4a7617=this[_0x5aece5(0x204)](_0x5aece5(0x258)+_0x232b2b,_0x5aece5(0x1e7));return{'execute':async()=>{const _0x326266=_0x5aece5;await _0x4a7617[_0x326266(0x1d6)];},'abortController':_0x4a7617[_0x5aece5(0x1fa)]};}[_0xcd2a03(0x245)](_0x5031e5,_0x1ad662){const _0x325905=_0xcd2a03,_0x43549c=this[_0x325905(0x204)](_0x325905(0x258)+_0x5031e5,_0x325905(0x224),_0x1ad662);return{'getResult':async()=>(await _0x43549c[_0x325905(0x1d6)],_0x1ad662),'abortController':_0x43549c[_0x325905(0x1fa)]};}[_0xcd2a03(0x1f6)](_0x51967a){const _0x5b83d3=_0xcd2a03,_0x306b2b=this[_0x5b83d3(0x204)](_0x5b83d3(0x258)+_0x51967a,_0x5b83d3(0x228));return{'getConversation':async()=>(await _0x306b2b[_0x5b83d3(0x1d6)])[_0x5b83d3(0x253)](),'abortController':_0x306b2b[_0x5b83d3(0x1fa)]};}[_0xcd2a03(0x216)](_0x3cb852){const _0x38a906=_0xcd2a03,_0x4c7e36=this[_0x38a906(0x204)](_0x38a906(0x258)+_0x3cb852+_0x38a906(0x1d3),_0x38a906(0x228));return{'getMessages':async()=>{const _0x55bf07=_0x38a906,_0x336d2c=await _0x4c7e36[_0x55bf07(0x1d6)];return(await _0x336d2c[_0x55bf07(0x253)]())[_0x55bf07(0x24a)];},'abortController':_0x4c7e36[_0x38a906(0x1fa)]};}[_0xcd2a03(0x20b)](_0x339644,_0x4861ec,_0xc77297){const _0x11b72a=_0xcd2a03,_0x508a7e=this[_0x11b72a(0x204)](_0x11b72a(0x258)+_0x339644+_0x11b72a(0x201),_0x11b72a(0x1d1),{'url':_0x4861ec,'attributes':_0xc77297});return{'getId':async()=>(await _0x508a7e[_0x11b72a(0x1d6)])[_0x11b72a(0x253)](),'abortController':_0x508a7e[_0x11b72a(0x1fa)]};}[_0xcd2a03(0x1dc)](_0x3423ae='en'){const _0x475280=_0xcd2a03,_0x15b8af=new URLSearchParams();_0x15b8af[_0x475280(0x1f9)](_0x475280(0x23b),_0x3423ae);const _0x479bd8=_0x475280(0x223)+_0x15b8af[_0x475280(0x20a)](),_0x401ec3=this[_0x475280(0x204)](_0x479bd8,_0x475280(0x228));return{'list':async()=>await(await _0x401ec3[_0x475280(0x1d6)])[_0x475280(0x253)](),'abortController':_0x401ec3[_0x475280(0x1fa)]};}[_0xcd2a03(0x222)](_0x4cae0c,_0x3acecb){const _0x3d0efb=_0xcd2a03,_0x2d295b=this[_0x3d0efb(0x204)](_0x3d0efb(0x258)+_0x4cae0c+_0x3d0efb(0x1ff)+_0x3acecb,_0x3d0efb(0x1e7));return{'execute':async()=>{const _0x3c126d=_0x3d0efb;await _0x2d295b[_0x3c126d(0x1d6)];},'abortController':_0x2d295b[_0x3d0efb(0x1fa)]};}[_0xcd2a03(0x23c)](_0x3b9669,_0x5c1497){const _0xd1e23=_0xcd2a03,_0x2e9d85=this[_0xd1e23(0x204)](_0xd1e23(0x258)+_0x3b9669+_0xd1e23(0x210)+_0x5c1497,_0xd1e23(0x1e7));return{'execute':async()=>{const _0x3d236d=_0xd1e23;await _0x2e9d85[_0x3d236d(0x1d6)];},'abortController':_0x2e9d85[_0xd1e23(0x1fa)]};}[_0xcd2a03(0x1f0)](_0x46628e,_0x11a3a4){const _0x334a87=_0xcd2a03,_0x48b9a1=this[_0x334a87(0x204)](_0x334a87(0x258)+_0x46628e+_0x334a87(0x20e)+_0x11a3a4,_0x334a87(0x1e7));return{'execute':async()=>{const _0x4ce17f=_0x334a87;await _0x48b9a1[_0x4ce17f(0x1d6)];},'abortController':_0x48b9a1[_0x334a87(0x1fa)]};}[_0xcd2a03(0x1cb)]({reviewName:_0x2854cc,content:_0x173bfc,args:_0x2527da}){const _0x5778f7=_0xcd2a03,_0xc65d7b=this[_0x5778f7(0x204)](_0x5778f7(0x252)+_0x2854cc+_0x5778f7(0x1e3),_0x5778f7(0x1d1),{'content':[{'type':_0x5778f7(0x1cc),'content':_0x173bfc}],'args':_0x2527da});return{'getStream':async()=>{const _0x1a4926=_0x5778f7,_0x33f7c2=(await _0xc65d7b[_0x1a4926(0x1d6)])[_0x1a4926(0x24d)];return this[_0x1a4926(0x1e9)](_0x33f7c2);},'abortController':_0xc65d7b[_0x5778f7(0x1fa)]};}[_0xcd2a03(0x237)]({content:_0x5be817,prompt:_0x13330d,model:_0x2f0881}){const _0x1d17fc=_0xcd2a03,_0x313e89=this[_0x1d17fc(0x204)](_0x1d17fc(0x1cf),_0x1d17fc(0x1d1),{'content':[{'type':_0x1d17fc(0x1cc),'content':_0x5be817}],'prompt':_0x13330d,'model':_0x2f0881});return{'getStream':async()=>{const _0x521def=_0x1d17fc,_0x2d7006=(await _0x313e89[_0x521def(0x1d6)])[_0x521def(0x24d)];return this[_0x521def(0x1e9)](_0x2d7006);},'abortController':_0x313e89[_0x1d17fc(0x1fa)]};}[_0xcd2a03(0x1ce)](_0x3afcd0,_0x3d4d7f,_0x173037){const _0x33eed4=_0xcd2a03,_0x4d0e0b=this[_0x33eed4(0x204)](_0x33eed4(0x258)+_0x3afcd0+_0x33eed4(0x1fd)+_0x3d4d7f+_0x33eed4(0x231),_0x33eed4(0x24f),{'positiveCount':_0x173037[_0x33eed4(0x1cd)],'totalCount':_0x173037[_0x33eed4(0x1ef)],'modificationId':_0x173037[_0x33eed4(0x242)]});return{'execute':async()=>{const _0x51d4eb=_0x33eed4;await _0x4d0e0b[_0x51d4eb(0x1d6)];},'abortController':_0x4d0e0b[_0x33eed4(0x1fa)]};}[_0xcd2a03(0x1f2)](_0x4e9171,_0x5b615c,_0xe1c9c){const _0x13ff65=_0xcd2a03,_0x52ee35=this[_0x13ff65(0x204)](_0x13ff65(0x235)+_0x4e9171+_0x13ff65(0x246)+_0x5b615c+_0x13ff65(0x231),_0x13ff65(0x24f),{'positiveCount':_0xe1c9c[_0x13ff65(0x1cd)],'totalCount':_0xe1c9c[_0x13ff65(0x1ef)]});return{'execute':async()=>{const _0x136c37=_0x13ff65;await _0x52ee35[_0x136c37(0x1d6)];},'abortController':_0x52ee35[_0x13ff65(0x1fa)]};}[_0xcd2a03(0x209)](_0x3de589,_0x57e7a5){const _0x453019=_0xcd2a03,_0x1ac504=this[_0x453019(0x204)](_0x453019(0x205)+_0x3de589+_0x453019(0x231),_0x453019(0x24f),{'positiveCount':_0x57e7a5[_0x453019(0x1cd)],'totalCount':_0x57e7a5[_0x453019(0x1ef)]});return{'execute':async()=>{const _0x11a81f=_0x453019;await _0x1ac504[_0x11a81f(0x1d6)];},'abortController':_0x1ac504[_0x453019(0x1fa)]};}[_0xcd2a03(0x1d7)](_0x4f910b,_0x115f1e,_0x4ca020,_0x9e1a75){const _0x5583df=_0xcd2a03,_0x1a0dd0=this[_0x5583df(0x204)](_0x5583df(0x252)+_0x4f910b+_0x5583df(0x246)+_0x115f1e+_0x5583df(0x231),_0x5583df(0x24f),{'positiveCount':_0x4ca020[_0x5583df(0x1cd)],'totalCount':_0x4ca020[_0x5583df(0x1ef)],'dataId':_0x9e1a75});return{'execute':async()=>{const _0x261d30=_0x5583df;await _0x1a0dd0[_0x261d30(0x1d6)];},'abortController':_0x1a0dd0[_0x5583df(0x1fa)]};}[_0xcd2a03(0x1df)](_0x4ec69f,_0x41498d,_0x5193a6){const _0x385843=_0xcd2a03,_0x445771=this[_0x385843(0x204)](_0x385843(0x212)+_0x4ec69f+_0x385843(0x231),_0x385843(0x24f),{'positiveCount':_0x41498d[_0x385843(0x1cd)],'totalCount':_0x41498d[_0x385843(0x1ef)],'dataId':_0x5193a6});return{'execute':async()=>{const _0x29d9bf=_0x385843;await _0x445771[_0x29d9bf(0x1d6)];},'abortController':_0x445771[_0x385843(0x1fa)]};}[_0xcd2a03(0x204)](_0x844ce2,_0x935ddb,_0x1df6ee){const _0x2ca5e6=_0xcd2a03,_0x2507c5=new AbortController(),_0x4119a0=_0x1df6ee instanceof FormData,_0x25853c={'Authorization':_0x2ca5e6(0x1d2)+this[_0x2ca5e6(0x243)]?.[_0x2ca5e6(0x21a)]};_0x1df6ee&&!_0x4119a0&&(_0x25853c[_0x2ca5e6(0x256)]=_0x2ca5e6(0x1f7));const _0xacc775={'method':_0x935ddb,'headers':_0x25853c,'signal':_0x2507c5[_0x2ca5e6(0x1e5)]};return _0x1df6ee&&(_0xacc775[_0x2ca5e6(0x24d)]=_0x4119a0?_0x1df6ee:JSON[_0x2ca5e6(0x250)](_0x1df6ee)),{'request':fetch(''+this[_0x2ca5e6(0x24b)]+_0x844ce2,_0xacc775)[_0x2ca5e6(0x211)](_0x44d301=>{const _0x5557d5=_0x2ca5e6;this[_0x5557d5(0x22d)](_0x44d301);})[_0x2ca5e6(0x1ed)](_0x4ab85c=>_0x4ab85c['ok']?_0x4ab85c:_0x4ab85c[_0x2ca5e6(0x253)]()[_0x2ca5e6(0x1ed)](_0x139361=>{const _0x5e1461=_0x2ca5e6;throw{'url':this[_0x5e1461(0x24b)],'path':_0x844ce2,'method':_0x935ddb,'body':_0x1df6ee,'status':(_0x4ab85c||{})[_0x5e1461(0x1fe)],'statusText':(_0x4ab85c||{})[_0x5e1461(0x23a)],'code':_0x139361[_0x5e1461(0x1e0)],'message':_0x139361[_0x5e1461(0x20d)],'traceId':_0x139361[_0x5e1461(0x225)]};})),'abortController':_0x2507c5};}async*[_0xcd2a03(0x1e9)](_0x1db3dc){const _0x5cd2cc=_0xcd2a03,_0x499eee=[],_0x2e20c7=_0x1db3dc[_0x5cd2cc(0x21d)](),_0x5e19a0=_0x90b4bd({'onError':_0x5a5e8c=>{const _0x56cc50=_0x5cd2cc;this[_0x56cc50(0x22d)](_0x5a5e8c);},'onEvent':_0x1c2fc0=>{const _0x5e9a01=_0x5cd2cc;_0x1c2fc0[_0x5e9a01(0x21c)]=JSON[_0x5e9a01(0x22b)](_0x1c2fc0[_0x5e9a01(0x21c)]),_0x499eee[_0x5e9a01(0x21e)](_0x1c2fc0);}});try{let _0x1e1285=!0x1;for(;!_0x1e1285;){const {done:_0x5b417f,value:_0x2a59a0}=await _0x2e20c7[_0x5cd2cc(0x234)]();_0x5b417f&&(_0x1e1285=!0x0),_0x5e19a0[_0x5cd2cc(0x1fc)](this[_0x5cd2cc(0x240)][_0x5cd2cc(0x220)](_0x2a59a0,{'stream':!0x0})),yield*_0x499eee,_0x499eee[_0x5cd2cc(0x226)]=0x0;}}catch(_0x427ba9){this[_0x5cd2cc(0x22d)](_0x427ba9);}finally{_0x2e20c7[_0x5cd2cc(0x22c)](),_0x5e19a0[_0x5cd2cc(0x1e8)]();}}[_0xcd2a03(0x22d)](_0x1fe36e){const _0x16eb4c=_0xcd2a03;if(_0x1fe36e instanceof _0x488115)throw _0x1fe36e;if(_0x1fe36e instanceof Error&&_0x16eb4c(0x215)===_0x1fe36e[_0x16eb4c(0x1e4)])throw new _0x488115(_0x16eb4c(0x218),this,{'originalError':_0x1fe36e});throw new _0x488115(_0x16eb4c(0x1dd),this,{'originalError':_0x1fe36e});}}
23
+ function _0xcc6c(_0x533cdf,_0x2a7b4f){const _0xe57660=_0xe576();return _0xcc6c=function(_0xcc6c9b,_0x4f3d6b){_0xcc6c9b=_0xcc6c9b-0x18c;let _0x251e67=_0xe57660[_0xcc6c9b];return _0x251e67;},_0xcc6c(_0x533cdf,_0x2a7b4f);}const _0x3fcda4=_0xcc6c;(function(_0x343822,_0x52e222){const _0x579868=_0xcc6c,_0x40ec35=_0x343822();while(!![]){try{const _0x10e090=parseInt(_0x579868(0x1f8))/0x1*(parseInt(_0x579868(0x20c))/0x2)+parseInt(_0x579868(0x210))/0x3*(-parseInt(_0x579868(0x1e5))/0x4)+-parseInt(_0x579868(0x1dd))/0x5*(parseInt(_0x579868(0x21c))/0x6)+-parseInt(_0x579868(0x1d8))/0x7+-parseInt(_0x579868(0x21a))/0x8+-parseInt(_0x579868(0x1d1))/0x9+-parseInt(_0x579868(0x21d))/0xa*(-parseInt(_0x579868(0x1e1))/0xb);if(_0x10e090===_0x52e222)break;else _0x40ec35['push'](_0x40ec35['shift']());}catch(_0x2ef936){_0x40ec35['push'](_0x40ec35['shift']());}}}(_0xe576,0x25c01));import{createParser as _0x712941}from'eventsource-parser';import{ContextPlugin as _0x545529}from'ckeditor5/src/core.js';import{CKEditorError as _0x5c9a53}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x1cacfc){const _0x3f1fbb=_0xcc6c;_0x1cacfc[_0x3f1fbb(0x1aa)]=_0x3f1fbb(0x20d),_0x1cacfc[_0x3f1fbb(0x1ea)]=_0x3f1fbb(0x1d7),_0x1cacfc[_0x3f1fbb(0x18c)]=_0x3f1fbb(0x1c5),_0x1cacfc[_0x3f1fbb(0x19d)]=_0x3f1fbb(0x20b),_0x1cacfc[_0x3f1fbb(0x1ac)]=_0x3f1fbb(0x1f6),_0x1cacfc[_0x3f1fbb(0x1f0)]=_0x3f1fbb(0x1d2),_0x1cacfc[_0x3f1fbb(0x199)]=_0x3f1fbb(0x19f),_0x1cacfc[_0x3f1fbb(0x21e)]=_0x3f1fbb(0x1cd);}(AIActionsNames||(AIActionsNames={}));function _0xe576(){const _0x16ef0c=['request','/documents','group','upsertAIReviewRating','callSystemReview','isPremiumPlugin','language','search','upsertAIChatRating','make-longer','2bYVExH','continue','application/json','/web-resources/','33CkAZDz','deleteFile','upsertCustomAIReviewRating','uploadUrl','uploadFile','reset','_apiUrl','_getStreamReader','abortController','signal','999128EqWfbQ','/actions/custom/calls','343302Trlxon','370CIFDCF','TRANSLATE','IMPROVE_WRITING','100','push','name','feed','updateConversation','/ratings','upsertCustomAIActionRating','fetchDocument','releaseLock','/files/','callCustomReview','/conversations/','MAKE_TONE_FORMAL','_token','fetchConversations','/reviews/custom/calls','MAKE_LONGER','traceId','make-tone-formal','/models/1?','keys','GET','PATCH','config','context','totalCount','init','/messages','/conversations?','CONTINUE','_sendApiRequest','MAKE_SHORTER','status','/conversations','AbortError','/web-resources','modificationId','value','ai-missing-token','attributes','/files','pluginName','catch','get','/reviews/custom/calls/','decode','append','plugins','_handleError','ai-request-failed','/actions/system/','define','statusText','message','items','read','improve-writing','executeCustomAction','stringify','getReader','json','/reviews/system/','/calls/','file','translate','ai-request-aborted','Content-Type','token','1756224LevgEM','make-tone-casual','body','positiveCount','limit','POST','fix-grammar','595210ObCOso','ai.serviceUrl','_decoder','data','parse','25KPGdyY','https://ai.cke-cs.com/v1','toString','startConversation','296417zSxFfU','code','queryAssistant','PUT','59044QlpuHJ','/messages/','excludeEmpty','length','AIConnector','FIX_GRAMMAR','deleteConversation','upsertAIActionRating','requires','uploadDocument','deleteWebResource','MAKE_TONE_CASUAL','CloudServices','executeAction','DELETE','text','/calls','make-shorter','true','11099LMfsCk','fetchConversationMessages','Bearer\x20','/actions/custom/calls/','/documents/','fetchConversation','then','deleteDocument','getModels','isOfficialPlugin'];_0xe576=function(){return _0x16ef0c;};return _0xe576();}export class AIConnector extends _0x545529{[_0x3fcda4(0x216)];[_0x3fcda4(0x19a)];[_0x3fcda4(0x1da)];static get[_0x3fcda4(0x1ed)](){const _0x440d12=_0x3fcda4;return[_0x440d12(0x1f1)];}static get[_0x3fcda4(0x1b6)](){const _0x12f04c=_0x3fcda4;return _0x12f04c(0x1e9);}static get[_0x3fcda4(0x201)](){return!0x0;}static get[_0x3fcda4(0x207)](){return!0x0;}constructor(_0x102455){const _0x1c2c77=_0x3fcda4;super(_0x102455),this[_0x1c2c77(0x1a5)][_0x1c2c77(0x1a4)][_0x1c2c77(0x1c0)](_0x1c2c77(0x1d9),_0x1c2c77(0x1de)),this[_0x1c2c77(0x216)]=this[_0x1c2c77(0x1a5)][_0x1c2c77(0x1a4)][_0x1c2c77(0x1b8)](_0x1c2c77(0x1d9)),this[_0x1c2c77(0x19a)]=null,this[_0x1c2c77(0x1da)]=new TextDecoder();}[_0x3fcda4(0x1a7)](){const _0x25be29=_0x3fcda4,_0x2059f0=this[_0x25be29(0x1a5)][_0x25be29(0x1bc)][_0x25be29(0x1b8)](_0x25be29(0x1f1));if(!_0x2059f0[_0x25be29(0x1d0)])throw new _0x5c9a53(_0x25be29(0x1b3),this);this[_0x25be29(0x19a)]=_0x2059f0[_0x25be29(0x1d0)];}[_0x3fcda4(0x1e0)](_0x5c83f2,_0x3ed9f7){const _0x52138d=_0x3fcda4,_0x32e616=this[_0x52138d(0x1ab)](_0x52138d(0x1ae),_0x52138d(0x1d6),{'id':_0x5c83f2,'group':_0x3ed9f7});return{'getConversation':async()=>(await _0x32e616[_0x52138d(0x202)])[_0x52138d(0x1c9)](),'abortController':_0x32e616[_0x52138d(0x218)]};}[_0x3fcda4(0x1e3)]({message:_0x4f9daa,conversationId:_0x7396e1,parts:_0x3ec6bf,capabilities:_0x462bea,model:_0x19b006,quickActionData:_0x511e8a}){const _0x506642=_0x3fcda4,_0x2a58ff={..._0x511e8a&&{'quickActionData':_0x511e8a}},_0x325581={'prompt':_0x4f9daa,'content':_0x3ec6bf,'model':_0x19b006,..._0x462bea&&{'capabilities':_0x462bea},...Object[_0x506642(0x1a1)](_0x2a58ff)[_0x506642(0x1e8)]>0x0&&{'attributes':_0x2a58ff}},_0x596e8a=this[_0x506642(0x1ab)](_0x506642(0x198)+_0x7396e1+_0x506642(0x1a8),_0x506642(0x1d6),_0x325581);return{'getStream':async()=>{const _0x226dc0=_0x506642,_0x52fb66=(await _0x596e8a[_0x226dc0(0x202)])[_0x226dc0(0x1d3)];return this[_0x226dc0(0x217)](_0x52fb66);},'abortController':_0x596e8a[_0x506642(0x218)]};}[_0x3fcda4(0x1c6)]({content:_0x3250c0,message:_0x1247b3,model:_0x434aa0,outputFormat:_0x5cb3f5}){const _0x59795b=_0x3fcda4,_0x2b652f={'content':[{'type':_0x59795b(0x1f4),'content':_0x3250c0}],'prompt':_0x1247b3,'model':_0x434aa0,'outputFormat':_0x5cb3f5},_0x13edcb=this[_0x59795b(0x1ab)](_0x59795b(0x21b),_0x59795b(0x1d6),_0x2b652f);return{'getStream':async()=>{const _0x4e89e3=_0x59795b,_0x58d5a2=(await _0x13edcb[_0x4e89e3(0x202)])[_0x4e89e3(0x1d3)];return this[_0x4e89e3(0x217)](_0x58d5a2);},'abortController':_0x13edcb[_0x59795b(0x218)]};}[_0x3fcda4(0x1f2)]({actionName:_0x378935,content:_0x5323c0,args:_0x517f5b}){const _0x2932c4=_0x3fcda4,_0x20c4e7={'content':[{'type':_0x2932c4(0x1f4),'content':_0x5323c0}],'args':_0x517f5b},_0x541697=this[_0x2932c4(0x1ab)](_0x2932c4(0x1bf)+_0x378935+_0x2932c4(0x1f5),_0x2932c4(0x1d6),_0x20c4e7);return{'getStream':async()=>{const _0xedcd8d=_0x2932c4,_0x301ed2=(await _0x541697[_0xedcd8d(0x202)])[_0xedcd8d(0x1d3)];return this[_0xedcd8d(0x217)](_0x301ed2);},'abortController':_0x541697[_0x2932c4(0x218)]};}[_0x3fcda4(0x214)](_0x1bf4d3,_0x1ebeb3,_0x3c2418){const _0x20591d=_0x3fcda4,_0x537429=new FormData();_0x537429[_0x20591d(0x1bb)](_0x20591d(0x1cc),_0x1ebeb3,_0x1ebeb3[_0x20591d(0x18f)]),_0x3c2418&&_0x537429[_0x20591d(0x1bb)](_0x20591d(0x1b4),JSON[_0x20591d(0x1c7)](_0x3c2418));const _0x3950c6=this[_0x20591d(0x1ab)](_0x20591d(0x198)+_0x1bf4d3+_0x20591d(0x1b5),_0x20591d(0x1d6),_0x537429);return{'getId':async()=>(await _0x3950c6[_0x20591d(0x202)])[_0x20591d(0x1c9)](),'abortController':_0x3950c6[_0x20591d(0x218)]};}[_0x3fcda4(0x194)](_0x375cb9,_0x53b319){const _0x5aa21a=_0x3fcda4,_0x12e988=this[_0x5aa21a(0x1ab)](_0x5aa21a(0x198)+_0x375cb9+_0x5aa21a(0x1fc)+_0x53b319,_0x5aa21a(0x1a2));return{'getDocument':async()=>(await _0x12e988[_0x5aa21a(0x202)])[_0x5aa21a(0x1c9)](),'abortController':_0x12e988[_0x5aa21a(0x218)]};}[_0x3fcda4(0x1ee)](_0x3f05cf,_0x2b2f67,_0x5cd121){const _0x101130=_0x3fcda4,_0x4ddd47={'content':_0x2b2f67};_0x5cd121&&(_0x4ddd47[_0x101130(0x1b4)]=_0x5cd121);const _0x19c94d=this[_0x101130(0x1ab)](_0x101130(0x198)+_0x3f05cf+_0x101130(0x203),_0x101130(0x1d6),_0x4ddd47);return{'getId':async()=>(await _0x19c94d[_0x101130(0x202)])[_0x101130(0x1c9)](),'abortController':_0x19c94d[_0x101130(0x218)]};}[_0x3fcda4(0x19b)](_0x3746cb,_0x1685a1){const _0x15ba7b=_0x3fcda4,_0x35b473=new URLSearchParams();_0x35b473[_0x15ba7b(0x1bb)](_0x15ba7b(0x1e7),_0x15ba7b(0x1f7)),_0x35b473[_0x15ba7b(0x1bb)](_0x15ba7b(0x1d5),_0x15ba7b(0x18d)),_0x35b473[_0x15ba7b(0x1bb)](_0x15ba7b(0x204),_0x3746cb),_0x1685a1&&_0x35b473[_0x15ba7b(0x1bb)](_0x15ba7b(0x209),_0x1685a1);const _0x55410b=this[_0x15ba7b(0x1ab)](_0x15ba7b(0x1a9)+_0x35b473[_0x15ba7b(0x1df)](),_0x15ba7b(0x1a2));return{'getConversations':async()=>{const _0x419357=_0x15ba7b,_0x559b71=await _0x55410b[_0x419357(0x202)];return(await _0x559b71[_0x419357(0x1c9)]())[_0x419357(0x1c3)];},'abortController':_0x55410b[_0x15ba7b(0x218)]};}[_0x3fcda4(0x1eb)](_0x2748ee){const _0x35aa46=_0x3fcda4,_0x2e5eba=this[_0x35aa46(0x1ab)](_0x35aa46(0x198)+_0x2748ee,_0x35aa46(0x1f3));return{'execute':async()=>{const _0x2c4678=_0x35aa46;await _0x2e5eba[_0x2c4678(0x202)];},'abortController':_0x2e5eba[_0x35aa46(0x218)]};}[_0x3fcda4(0x191)](_0x32682b,_0x1fba8e){const _0x317004=_0x3fcda4,_0x22103a=this[_0x317004(0x1ab)](_0x317004(0x198)+_0x32682b,_0x317004(0x1a3),_0x1fba8e);return{'getResult':async()=>(await _0x22103a[_0x317004(0x202)],_0x1fba8e),'abortController':_0x22103a[_0x317004(0x218)]};}[_0x3fcda4(0x1fd)](_0x4f3747){const _0x353e6a=_0x3fcda4,_0xbb7eaf=this[_0x353e6a(0x1ab)](_0x353e6a(0x198)+_0x4f3747,_0x353e6a(0x1a2));return{'getConversation':async()=>(await _0xbb7eaf[_0x353e6a(0x202)])[_0x353e6a(0x1c9)](),'abortController':_0xbb7eaf[_0x353e6a(0x218)]};}[_0x3fcda4(0x1f9)](_0x59aacd){const _0x540711=_0x3fcda4,_0x2258ed=this[_0x540711(0x1ab)](_0x540711(0x198)+_0x59aacd+_0x540711(0x1a8),_0x540711(0x1a2));return{'getMessages':async()=>{const _0x80edd8=_0x540711,_0x376846=await _0x2258ed[_0x80edd8(0x202)];return(await _0x376846[_0x80edd8(0x1c9)]())[_0x80edd8(0x1c3)];},'abortController':_0x2258ed[_0x540711(0x218)]};}[_0x3fcda4(0x213)](_0x10237e,_0x48ea1c,_0x39c5a3){const _0xdd0d57=_0x3fcda4,_0x349290=this[_0xdd0d57(0x1ab)](_0xdd0d57(0x198)+_0x10237e+_0xdd0d57(0x1b0),_0xdd0d57(0x1d6),{'url':_0x48ea1c,'attributes':_0x39c5a3});return{'getId':async()=>(await _0x349290[_0xdd0d57(0x202)])[_0xdd0d57(0x1c9)](),'abortController':_0x349290[_0xdd0d57(0x218)]};}[_0x3fcda4(0x200)](_0x4ee769='en'){const _0x53c2db=_0x3fcda4,_0x55b701=new URLSearchParams();_0x55b701[_0x53c2db(0x1bb)](_0x53c2db(0x208),_0x4ee769);const _0x40a7f8=_0x53c2db(0x1a0)+_0x55b701[_0x53c2db(0x1df)](),_0x38869d=this[_0x53c2db(0x1ab)](_0x40a7f8,_0x53c2db(0x1a2));return{'list':async()=>await(await _0x38869d[_0x53c2db(0x202)])[_0x53c2db(0x1c9)](),'abortController':_0x38869d[_0x53c2db(0x218)]};}[_0x3fcda4(0x211)](_0x290e4c,_0x2cbe30){const _0x2e182b=_0x3fcda4,_0x361337=this[_0x2e182b(0x1ab)](_0x2e182b(0x198)+_0x290e4c+_0x2e182b(0x196)+_0x2cbe30,_0x2e182b(0x1f3));return{'execute':async()=>{const _0x41bcee=_0x2e182b;await _0x361337[_0x41bcee(0x202)];},'abortController':_0x361337[_0x2e182b(0x218)]};}[_0x3fcda4(0x1ff)](_0x39fb82,_0x3e49f1){const _0x115eb5=_0x3fcda4,_0x30ab68=this[_0x115eb5(0x1ab)](_0x115eb5(0x198)+_0x39fb82+_0x115eb5(0x1fc)+_0x3e49f1,_0x115eb5(0x1f3));return{'execute':async()=>{const _0x4c8d34=_0x115eb5;await _0x30ab68[_0x4c8d34(0x202)];},'abortController':_0x30ab68[_0x115eb5(0x218)]};}[_0x3fcda4(0x1ef)](_0x86adee,_0x355a96){const _0x3fa88f=_0x3fcda4,_0x2617c7=this[_0x3fa88f(0x1ab)](_0x3fa88f(0x198)+_0x86adee+_0x3fa88f(0x20f)+_0x355a96,_0x3fa88f(0x1f3));return{'execute':async()=>{const _0x461ba8=_0x3fa88f;await _0x2617c7[_0x461ba8(0x202)];},'abortController':_0x2617c7[_0x3fa88f(0x218)]};}[_0x3fcda4(0x206)]({reviewName:_0x56c538,content:_0x1b0955,args:_0x4e5ab2}){const _0x3d260a=_0x3fcda4,_0x504aec=this[_0x3d260a(0x1ab)](_0x3d260a(0x1ca)+_0x56c538+_0x3d260a(0x1f5),_0x3d260a(0x1d6),{'content':[{'type':_0x3d260a(0x1f4),'content':_0x1b0955}],'args':_0x4e5ab2});return{'getStream':async()=>{const _0x5582e9=_0x3d260a,_0x548651=(await _0x504aec[_0x5582e9(0x202)])[_0x5582e9(0x1d3)];return this[_0x5582e9(0x217)](_0x548651);},'abortController':_0x504aec[_0x3d260a(0x218)]};}[_0x3fcda4(0x197)]({content:_0x2a5b66,prompt:_0x5e648a,model:_0x5d0e51}){const _0x58ba0c=_0x3fcda4,_0xf347e=this[_0x58ba0c(0x1ab)](_0x58ba0c(0x19c),_0x58ba0c(0x1d6),{'content':[{'type':_0x58ba0c(0x1f4),'content':_0x2a5b66}],'prompt':_0x5e648a,'model':_0x5d0e51});return{'getStream':async()=>{const _0x4eb444=_0x58ba0c,_0xba6589=(await _0xf347e[_0x4eb444(0x202)])[_0x4eb444(0x1d3)];return this[_0x4eb444(0x217)](_0xba6589);},'abortController':_0xf347e[_0x58ba0c(0x218)]};}[_0x3fcda4(0x20a)](_0x3f04e2,_0x441e1a,_0x3deb6d){const _0x432d7e=_0x3fcda4,_0x1026c7=this[_0x432d7e(0x1ab)](_0x432d7e(0x198)+_0x3f04e2+_0x432d7e(0x1e6)+_0x441e1a+_0x432d7e(0x192),_0x432d7e(0x1e4),{'positiveCount':_0x3deb6d[_0x432d7e(0x1d4)],'totalCount':_0x3deb6d[_0x432d7e(0x1a6)],'modificationId':_0x3deb6d[_0x432d7e(0x1b1)]});return{'execute':async()=>{const _0x2be726=_0x432d7e;await _0x1026c7[_0x2be726(0x202)];},'abortController':_0x1026c7[_0x432d7e(0x218)]};}[_0x3fcda4(0x1ec)](_0xf0905,_0x29a2cf,_0x3f637f){const _0x258d3f=_0x3fcda4,_0x4d425a=this[_0x258d3f(0x1ab)](_0x258d3f(0x1bf)+_0xf0905+_0x258d3f(0x1cb)+_0x29a2cf+_0x258d3f(0x192),_0x258d3f(0x1e4),{'positiveCount':_0x3f637f[_0x258d3f(0x1d4)],'totalCount':_0x3f637f[_0x258d3f(0x1a6)]});return{'execute':async()=>{const _0x1a9b7f=_0x258d3f;await _0x4d425a[_0x1a9b7f(0x202)];},'abortController':_0x4d425a[_0x258d3f(0x218)]};}[_0x3fcda4(0x193)](_0xf3bf8,_0x367722){const _0xd4f630=_0x3fcda4,_0x92a657=this[_0xd4f630(0x1ab)](_0xd4f630(0x1fb)+_0xf3bf8+_0xd4f630(0x192),_0xd4f630(0x1e4),{'positiveCount':_0x367722[_0xd4f630(0x1d4)],'totalCount':_0x367722[_0xd4f630(0x1a6)]});return{'execute':async()=>{const _0x35d2f2=_0xd4f630;await _0x92a657[_0x35d2f2(0x202)];},'abortController':_0x92a657[_0xd4f630(0x218)]};}[_0x3fcda4(0x205)](_0x2f107c,_0x5cb066,_0x45c23b,_0x309c3c){const _0x67ecec=_0x3fcda4,_0x2fe165=this[_0x67ecec(0x1ab)](_0x67ecec(0x1ca)+_0x2f107c+_0x67ecec(0x1cb)+_0x5cb066+_0x67ecec(0x192),_0x67ecec(0x1e4),{'positiveCount':_0x45c23b[_0x67ecec(0x1d4)],'totalCount':_0x45c23b[_0x67ecec(0x1a6)],'dataId':_0x309c3c});return{'execute':async()=>{const _0x592223=_0x67ecec;await _0x2fe165[_0x592223(0x202)];},'abortController':_0x2fe165[_0x67ecec(0x218)]};}[_0x3fcda4(0x212)](_0x6f7169,_0x2080d9,_0x4b14d3){const _0x5d29e2=_0x3fcda4,_0x48b752=this[_0x5d29e2(0x1ab)](_0x5d29e2(0x1b9)+_0x6f7169+_0x5d29e2(0x192),_0x5d29e2(0x1e4),{'positiveCount':_0x2080d9[_0x5d29e2(0x1d4)],'totalCount':_0x2080d9[_0x5d29e2(0x1a6)],'dataId':_0x4b14d3});return{'execute':async()=>{const _0x1c43fc=_0x5d29e2;await _0x48b752[_0x1c43fc(0x202)];},'abortController':_0x48b752[_0x5d29e2(0x218)]};}[_0x3fcda4(0x1ab)](_0x43a609,_0x121d0f,_0x3fa836){const _0x4e7679=_0x3fcda4,_0x2d2828=new AbortController(),_0x5e6775=_0x3fa836 instanceof FormData,_0x1b6f65={'Authorization':_0x4e7679(0x1fa)+this[_0x4e7679(0x19a)]?.[_0x4e7679(0x1b2)]};_0x3fa836&&!_0x5e6775&&(_0x1b6f65[_0x4e7679(0x1cf)]=_0x4e7679(0x20e));const _0x1c0f0b={'method':_0x121d0f,'headers':_0x1b6f65,'signal':_0x2d2828[_0x4e7679(0x219)]};return _0x3fa836&&(_0x1c0f0b[_0x4e7679(0x1d3)]=_0x5e6775?_0x3fa836:JSON[_0x4e7679(0x1c7)](_0x3fa836)),{'request':fetch(''+this[_0x4e7679(0x216)]+_0x43a609,_0x1c0f0b)[_0x4e7679(0x1b7)](_0x526907=>{const _0x2089a9=_0x4e7679;this[_0x2089a9(0x1bd)](_0x526907);})[_0x4e7679(0x1fe)](_0x18dc0b=>_0x18dc0b['ok']?_0x18dc0b:_0x18dc0b[_0x4e7679(0x1c9)]()[_0x4e7679(0x1fe)](_0x359d98=>{const _0xfbc43=_0x4e7679;throw{'url':this[_0xfbc43(0x216)],'path':_0x43a609,'method':_0x121d0f,'body':_0x3fa836,'status':(_0x18dc0b||{})[_0xfbc43(0x1ad)],'statusText':(_0x18dc0b||{})[_0xfbc43(0x1c1)],'code':_0x359d98[_0xfbc43(0x1e2)],'message':_0x359d98[_0xfbc43(0x1c2)],'traceId':_0x359d98[_0xfbc43(0x19e)]};})),'abortController':_0x2d2828};}async*[_0x3fcda4(0x217)](_0x343ee2){const _0x4ec2ad=_0x3fcda4,_0x259942=[],_0x256d09=_0x343ee2[_0x4ec2ad(0x1c8)](),_0x542edf=_0x712941({'onError':_0x143b3f=>{const _0x3b221d=_0x4ec2ad;this[_0x3b221d(0x1bd)](_0x143b3f);},'onEvent':_0x91b9fe=>{const _0x342022=_0x4ec2ad;_0x91b9fe[_0x342022(0x1db)]=JSON[_0x342022(0x1dc)](_0x91b9fe[_0x342022(0x1db)]),_0x259942[_0x342022(0x18e)](_0x91b9fe);}});try{let _0xa71a30=!0x1;for(;!_0xa71a30;){const {done:_0x51b449,value:_0x124da5}=await _0x256d09[_0x4ec2ad(0x1c4)]();_0x51b449&&(_0xa71a30=!0x0),_0x542edf[_0x4ec2ad(0x190)](this[_0x4ec2ad(0x1da)][_0x4ec2ad(0x1ba)](_0x124da5,{'stream':!0x0})),yield*_0x259942,_0x259942[_0x4ec2ad(0x1e8)]=0x0;}}catch(_0x3b9b76){this[_0x4ec2ad(0x1bd)](_0x3b9b76);}finally{_0x256d09[_0x4ec2ad(0x195)](),_0x542edf[_0x4ec2ad(0x215)]();}}[_0x3fcda4(0x1bd)](_0x4a53e7){const _0x19c68b=_0x3fcda4;if(_0x4a53e7 instanceof _0x5c9a53)throw _0x4a53e7;if(_0x4a53e7 instanceof Error&&_0x19c68b(0x1af)===_0x4a53e7[_0x19c68b(0x18f)])throw new _0x5c9a53(_0x19c68b(0x1ce),this,{'originalError':_0x4a53e7});throw new _0x5c9a53(_0x19c68b(0x1be),this,{'originalError':_0x4a53e7});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43da1e=_0x24c5;function _0x24c5(_0x2b23d1,_0x58e9fc){const _0x17fa20=_0x17fa();return _0x24c5=function(_0x24c56a,_0x226759){_0x24c56a=_0x24c56a-0x18d;let _0x4c32d8=_0x17fa20[_0x24c56a];return _0x4c32d8;},_0x24c5(_0x2b23d1,_0x58e9fc);}(function(_0x1bc5a1,_0x4e0a9b){const _0x463092=_0x24c5,_0x58d644=_0x1bc5a1();while(!![]){try{const _0x2caaf6=parseInt(_0x463092(0x1b0))/0x1+-parseInt(_0x463092(0x1c7))/0x2+-parseInt(_0x463092(0x1ab))/0x3+parseInt(_0x463092(0x1a8))/0x4+-parseInt(_0x463092(0x1ca))/0x5*(parseInt(_0x463092(0x1e0))/0x6)+parseInt(_0x463092(0x1a7))/0x7+parseInt(_0x463092(0x1ee))/0x8*(parseInt(_0x463092(0x1bc))/0x9);if(_0x2caaf6===_0x4e0a9b)break;else _0x58d644['push'](_0x58d644['shift']());}catch(_0x2d5874){_0x58d644['push'](_0x58d644['shift']());}}}(_0x17fa,0x37cba));function _0x17fa(){const _0x1f22a5=['processor',':start>','listenTo','substring','version','for','createRangeIn','length','sessionId','push','getStart','9vSIUfY','fromCharCode','markers','getDocumentData','isContent','_displayedFakeSelectionId','has','showFakeVisualSelection','ai-selection:',':end></','random','155942njcjUL','element','isAtEnd','15hqClQr','end','model','removeAllRanges','isOfficialPlugin','add','emptyElement','toView','getSelection','pluginName','_sessionId','getRoot','change','view','name','getChildren','toData','conversion','isBefore','getLastMatchingPosition','ready','containerElement','190446EtuCsa','addMarker','ai-selection','from','document','setAttribute','floor','_displayedFakeSelectionLocked','getMarkersGroup','sort','getSelectionText','selection','editors','editing','509816byCjfJ',':end>','getSelectedContent','markerToElement','afterInit','hideFakeVisualSelection','schema','trim','$textProxy','createRange','createUIElement','_integrateEditor','markerName','isPremiumPlugin','join','plugins','get','context','isOpening','editingDowncast','modelToViewWithIds',':start></','start','ck-ai-assistant-ui_theme','convertAiChatSelectionMarker','dataDowncast','AIEditing','indexOf','_getMarkersInDocumentOrder','_nextDataId','RealTimeCollaborationClient','markerToHighlight','isAfter','2761696FkyCPp','93480QhtFTJ','getWalker','ck-fake-ai-selection','1302465TDaunZ','data','removeMarker','_setDataIdsOnChildren','data-id','354262LLoqDb'];_0x17fa=function(){return _0x1f22a5;};return _0x17fa();}import{ViewDowncastWriter as _0x4805d1}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x1ff937,Editor as _0x36b101}from'ckeditor5/src/core.js';import{uid as _0x29437b}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x501734}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x43da1e(0x1e2);export class AIEditing extends _0x1ff937{[_0x43da1e(0x1c1)]=null;[_0x43da1e(0x1e7)]=!0x1;[_0x43da1e(0x1d4)];static get[_0x43da1e(0x1d3)](){const _0x14c6e1=_0x43da1e;return _0x14c6e1(0x1a0);}static get[_0x43da1e(0x1ce)](){return!0x0;}static get[_0x43da1e(0x193)](){return!0x0;}get[_0x43da1e(0x1b9)](){const _0xfd784a=_0x43da1e;if(!this[_0xfd784a(0x1d4)]){const _0x34a9ee=_0x501734(this[_0xfd784a(0x197)]),_0x3ceaeb=_0x34a9ee[_0xfd784a(0x195)][_0xfd784a(0x1c2)](_0xfd784a(0x1a4))&&_0x34a9ee[_0xfd784a(0x195)][_0xfd784a(0x196)](_0xfd784a(0x1a4))[_0xfd784a(0x1b9)];this[_0xfd784a(0x1d4)]=_0x3ceaeb||_0x29437b();}return this[_0xfd784a(0x1d4)];}[_0x43da1e(0x1bf)](){const _0x76c9aa=_0x43da1e,_0x4f07f2=_0x501734(this[_0x76c9aa(0x197)]),_0x494b1f=_0x4f07f2[_0x76c9aa(0x1cc)],_0x2367bb=_0x4f07f2[_0x76c9aa(0x1ac)][_0x76c9aa(0x1d1)](_0x494b1f[_0x76c9aa(0x1e4)][_0x76c9aa(0x1d5)](),{'convertAiChatSelectionMarker':!0x0}),_0x78faca=new _0x4805d1(_0x4f07f2[_0x76c9aa(0x1ed)][_0x76c9aa(0x1d7)][_0x76c9aa(0x1e4)]);this[_0x76c9aa(0x1ae)](_0x2367bb,_0x78faca);let _0x24b561=_0x4f07f2[_0x76c9aa(0x1ac)][_0x76c9aa(0x1b1)][_0x76c9aa(0x1da)](_0x2367bb);const _0x213a31=this[_0x76c9aa(0x1a2)](),_0x5ee749=[];for(const _0x3ee2a7 of _0x213a31){const _0x496bca='<'+_0x3ee2a7[_0x76c9aa(0x1d8)]+_0x76c9aa(0x19b)+_0x3ee2a7[_0x76c9aa(0x1d8)]+_0x76c9aa(0x1b2),_0x4365aa=_0x24b561[_0x76c9aa(0x1a1)](_0x496bca);_0x24b561=_0x24b561[_0x76c9aa(0x1b4)](0x0,_0x4365aa)+_0x24b561[_0x76c9aa(0x1b4)](_0x4365aa+_0x496bca[_0x76c9aa(0x1b8)]);const _0x4dbe5e='<'+_0x3ee2a7[_0x76c9aa(0x1d8)]+_0x76c9aa(0x1c5)+_0x3ee2a7[_0x76c9aa(0x1d8)]+_0x76c9aa(0x1ef),_0x538b67=_0x24b561[_0x76c9aa(0x1a1)](_0x4dbe5e);_0x24b561=_0x24b561[_0x76c9aa(0x1b4)](0x0,_0x538b67)+_0x24b561[_0x76c9aa(0x1b4)](_0x538b67+_0x4dbe5e[_0x76c9aa(0x1b8)]),_0x5ee749[_0x76c9aa(0x1ba)]({'markerName':_0x3ee2a7[_0x76c9aa(0x1d8)],'start':_0x4365aa,'end':_0x538b67,'htmlFragment':_0x24b561[_0x76c9aa(0x1b4)](_0x4365aa,_0x538b67)});}return{'content':_0x24b561,'version':_0x4f07f2[_0x76c9aa(0x1cc)][_0x76c9aa(0x1e4)][_0x76c9aa(0x1b5)],'sessionId':this[_0x76c9aa(0x1b9)],'selections':_0x5ee749};}async[_0x43da1e(0x1f2)](){const _0x5bf5b9=_0x43da1e;this[_0x5bf5b9(0x197)]instanceof _0x36b101?this[_0x5bf5b9(0x191)](this[_0x5bf5b9(0x197)]):this[_0x5bf5b9(0x1b3)](this[_0x5bf5b9(0x197)][_0x5bf5b9(0x1ec)],_0x5bf5b9(0x1cf),(_0xd3d4a4,_0x3ffe46)=>{const _0x1fbf0e=_0x5bf5b9;_0x3ffe46['on'](_0x1fbf0e(0x1de),()=>{const _0xa72a8c=_0x1fbf0e;this[_0xa72a8c(0x191)](_0x3ffe46);});});}[_0x43da1e(0x191)](_0x1ecaf1){const _0x180ee0=_0x43da1e;_0x1ecaf1[_0x180ee0(0x1db)][_0x180ee0(0x1b6)](_0x180ee0(0x199))[_0x180ee0(0x1a5)]({'model':_0x180ee0(0x1e2),'view':{'classes':[_0x180ee0(0x1aa),_0x180ee0(0x19d)],'priority':0xc}}),_0x1ecaf1[_0x180ee0(0x1db)][_0x180ee0(0x1b6)](_0x180ee0(0x19f))[_0x180ee0(0x1f1)]({'model':_0x180ee0(0x1e2),'view':(_0x5402ee,{writer:_0x40b3cd,options:_0x1e2f65})=>_0x1e2f65[_0x180ee0(0x19e)]?_0x40b3cd[_0x180ee0(0x190)](_0x5402ee[_0x180ee0(0x192)]+':'+(_0x5402ee[_0x180ee0(0x198)]?_0x180ee0(0x19c):_0x180ee0(0x1cb))):null});}[_0x43da1e(0x1c3)](_0xf4ef07,_0x58da66,_0x561c4b=!0x1,_0x15f9a0=!0x1){const _0x582efa=_0x43da1e;if(this[_0x582efa(0x1e7)]&&!_0x15f9a0)return!0x1;const _0xc6d604=_0x501734(this[_0x582efa(0x197)])[_0x582efa(0x1cc)];return _0xc6d604[_0x582efa(0x1d6)](_0x5e7fc8=>{const _0xf535c1=_0x582efa;this[_0xf535c1(0x1c1)]&&this[_0xf535c1(0x1f3)](this[_0xf535c1(0x1c1)]),this[_0xf535c1(0x1c1)]=_0x58da66,this[_0xf535c1(0x1e7)]=_0x561c4b;let _0x49d493=0x0;for(let _0x226765 of _0xf4ef07){const _0x25dd7b=_0xf535c1(0x1c4)+_0x49d493;if(_0x226765[_0xf535c1(0x19c)][_0xf535c1(0x1c9)]){const _0x404ee2=_0x226765[_0xf535c1(0x19c)][_0xf535c1(0x1dd)](({item:_0x38387a})=>!_0xc6d604[_0xf535c1(0x1f4)][_0xf535c1(0x1c0)](_0x38387a),{'boundaries':_0x226765});_0x226765=_0x5e7fc8[_0xf535c1(0x18f)](_0x404ee2,_0x226765[_0xf535c1(0x1cb)]);}_0x5e7fc8[_0xf535c1(0x1e1)](_0x25dd7b,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x226765}),_0x49d493++;}}),window[_0x582efa(0x1d2)]()?.[_0x582efa(0x1cd)](),!0x0;}[_0x43da1e(0x1f3)](_0x36860f){const _0x375790=_0x43da1e;if(this[_0x375790(0x1c1)]!=_0x36860f)return!0x1;this[_0x375790(0x1c1)]=null,this[_0x375790(0x1e7)]=!0x1;const _0x3f176a=_0x501734(this[_0x375790(0x197)]),_0x143fa6=_0x3f176a[_0x375790(0x1cc)][_0x375790(0x1be)][_0x375790(0x1e8)](_0x375790(0x1e2));return _0x3f176a[_0x375790(0x1cc)][_0x375790(0x1d6)](_0x48bacc=>{const _0x12280b=_0x375790;for(const _0x2d4e9c of _0x143fa6)_0x48bacc[_0x12280b(0x1ad)](_0x2d4e9c);}),!0x0;}[_0x43da1e(0x19a)](_0x3d030b){const _0x15ed44=_0x43da1e,_0x4b43b9=_0x501734(this[_0x15ed44(0x197)]),_0x522512=_0x4b43b9[_0x15ed44(0x1ac)][_0x15ed44(0x1d1)](_0x3d030b),_0xbb402b=new _0x4805d1(_0x4b43b9[_0x15ed44(0x1ed)][_0x15ed44(0x1d7)][_0x15ed44(0x1e4)]);return this[_0x15ed44(0x1ae)](_0x522512,_0xbb402b),_0x522512;}[_0x43da1e(0x1ae)](_0x43bdaa,_0x19694a){const _0x27e07f=_0x43da1e;let _0x32236b=!0x1;const _0x45b81c=new Set();for(const _0x4d1f44 of _0x43bdaa[_0x27e07f(0x1d9)]()){const _0x26b693=_0x4d1f44['is'](_0x27e07f(0x1d0))||_0x4d1f44['is'](_0x27e07f(0x1df));if(!_0x4d1f44['is'](_0x27e07f(0x1c8)))continue;(this[_0x27e07f(0x1ae)](_0x4d1f44,_0x19694a)||_0x26b693)&&(_0x19694a[_0x27e07f(0x1e5)](_0x27e07f(0x1af),this[_0x27e07f(0x1a3)](_0x45b81c),_0x4d1f44),_0x32236b=!0x0);}return _0x32236b;}[_0x43da1e(0x1a3)](_0x49bbeb){const _0x41657d=_0x43da1e;let _0x5deb08;do{_0x5deb08='';for(let _0x50ec12=0x0;_0x50ec12<0x4;_0x50ec12++)_0x5deb08+=String[_0x41657d(0x1bd)](0x61+Math[_0x41657d(0x1e6)](0x1a*Math[_0x41657d(0x1c6)]()));}while(_0x49bbeb[_0x41657d(0x1c2)](_0x5deb08));return _0x49bbeb[_0x41657d(0x1cf)](_0x5deb08),_0x5deb08;}[_0x43da1e(0x1ea)](){const _0x2b0121=_0x43da1e,{model:_0x316e47}=_0x501734(this[_0x2b0121(0x197)]),_0x4ec595=_0x316e47[_0x2b0121(0x1e4)][_0x2b0121(0x1eb)],_0x1df944=_0x316e47[_0x2b0121(0x1f0)](_0x4ec595),_0x4517fd=[],_0x2dd0b5=_0x316e47[_0x2b0121(0x1b7)](_0x1df944)[_0x2b0121(0x1a9)]();for(const {item:_0xba777}of _0x2dd0b5)_0xba777['is'](_0x2b0121(0x18e))?_0x4517fd[_0x2b0121(0x1ba)](_0xba777[_0x2b0121(0x1ac)]):_0xba777['is'](_0x2b0121(0x1c8))&&_0x4517fd[_0x2b0121(0x1b8)]>0x0&&'\x20'!==_0x4517fd[_0x4517fd[_0x2b0121(0x1b8)]-0x1]&&_0x4517fd[_0x2b0121(0x1ba)]('\x20');return'\x22'+_0x4517fd[_0x2b0121(0x194)]('')[_0x2b0121(0x18d)]()+'\x22';}[_0x43da1e(0x1a2)](){const _0x82d4c7=_0x43da1e,_0x497128=_0x501734(this[_0x82d4c7(0x197)])[_0x82d4c7(0x1cc)];return Array[_0x82d4c7(0x1e3)](_0x497128[_0x82d4c7(0x1be)][_0x82d4c7(0x1e8)](_0x82d4c7(0x1e2)))[_0x82d4c7(0x1e9)]((_0x135fc1,_0x214dc9)=>_0x135fc1[_0x82d4c7(0x1bb)]()[_0x82d4c7(0x1dc)](_0x214dc9[_0x82d4c7(0x1bb)]())?-0x1:_0x135fc1[_0x82d4c7(0x1bb)]()[_0x82d4c7(0x1a6)](_0x214dc9[_0x82d4c7(0x1bb)]())?0x1:0x0);}}
23
+ function _0x27f1(){const _0x4a6b2f=['editors','conversion','substring','toView','element','getSelection','getSelectionText',':start>','sort','isContent','processor','722047RUzOjE','emptyElement','createUIElement','9482896YKhyqa','end','trim','_sessionId','convertAiChatSelectionMarker','getSelectedContent','isPremiumPlugin','pluginName','isBefore','listenTo','length','ai-selection:','getDocumentData','removeAllRanges','2SczDrS','createRange','_displayedFakeSelectionId','$textProxy','isOfficialPlugin','AIEditing','push','_displayedFakeSelectionLocked','dataDowncast','view',':start></','from','isAfter','markerName','ck-ai-assistant-ui_theme','start','157094lavePF','showFakeVisualSelection','RealTimeCollaborationClient','hideFakeVisualSelection','824510KnQjCT','data-id','12dXINhH','fromCharCode','sessionId','join','ck-fake-ai-selection','schema','2230944PSmicp','14003217jgeRNa','indexOf','getLastMatchingPosition','plugins','name','modelToViewWithIds','selection','removeMarker','getChildren','containerElement','get','model','data','change','getRoot','editing','markerToElement','isAtEnd','_nextDataId','version','ai-selection',':end></','getWalker','_integrateEditor','_setDataIdsOnChildren','toData','getMarkersGroup','random','ready','editingDowncast',':end>','context','add','floor','for','markerToHighlight','_getMarkersInDocumentOrder','afterInit','isOpening','createRangeIn','document','addMarker','setAttribute','markers','has','getStart','2574618theGRC'];_0x27f1=function(){return _0x4a6b2f;};return _0x27f1();}function _0x27dc(_0xfeee84,_0x198ebf){const _0x27f15d=_0x27f1();return _0x27dc=function(_0x27dc0a,_0x2d7128){_0x27dc0a=_0x27dc0a-0x118;let _0x433e59=_0x27f15d[_0x27dc0a];return _0x433e59;},_0x27dc(_0xfeee84,_0x198ebf);}const _0x4a9d56=_0x27dc;(function(_0x5d183b,_0xa977f2){const _0x3c1095=_0x27dc,_0x592dbf=_0x5d183b();while(!![]){try{const _0xb238d8=-parseInt(_0x3c1095(0x129))/0x1*(parseInt(_0x3c1095(0x13a))/0x2)+parseInt(_0x3c1095(0x11d))/0x3+-parseInt(_0x3c1095(0x150))/0x4*(-parseInt(_0x3c1095(0x14e))/0x5)+parseInt(_0x3c1095(0x156))/0x6+parseInt(_0x3c1095(0x14a))/0x7+parseInt(_0x3c1095(0x12c))/0x8+-parseInt(_0x3c1095(0x157))/0x9;if(_0xb238d8===_0xa977f2)break;else _0x592dbf['push'](_0x592dbf['shift']());}catch(_0x37c849){_0x592dbf['push'](_0x592dbf['shift']());}}}(_0x27f1,0x9fcf4));import{ViewDowncastWriter as _0x109300}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x54291a,Editor as _0x31893e}from'ckeditor5/src/core.js';import{uid as _0xf687ec}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0xce1eec}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x4a9d56(0x16b);export class AIEditing extends _0x54291a{[_0x4a9d56(0x13c)]=null;[_0x4a9d56(0x141)]=!0x1;[_0x4a9d56(0x12f)];static get[_0x4a9d56(0x133)](){const _0x579072=_0x4a9d56;return _0x579072(0x13f);}static get[_0x4a9d56(0x13e)](){return!0x0;}static get[_0x4a9d56(0x132)](){return!0x0;}get[_0x4a9d56(0x152)](){const _0xbafdff=_0x4a9d56;if(!this[_0xbafdff(0x12f)]){const _0x1b368=_0xce1eec(this[_0xbafdff(0x176)]),_0x16f52d=_0x1b368[_0xbafdff(0x15a)][_0xbafdff(0x11b)](_0xbafdff(0x14c))&&_0x1b368[_0xbafdff(0x15a)][_0xbafdff(0x161)](_0xbafdff(0x14c))[_0xbafdff(0x152)];this[_0xbafdff(0x12f)]=_0x16f52d||_0xf687ec();}return this[_0xbafdff(0x12f)];}[_0x4a9d56(0x138)](){const _0x63f308=_0x4a9d56,_0x38f0c3=_0xce1eec(this[_0x63f308(0x176)]),_0xa3aab3=_0x38f0c3[_0x63f308(0x162)],_0x252ec2=_0x38f0c3[_0x63f308(0x163)][_0x63f308(0x121)](_0xa3aab3[_0x63f308(0x17f)][_0x63f308(0x165)](),{'convertAiChatSelectionMarker':!0x0}),_0x1c359a=new _0x109300(_0x38f0c3[_0x63f308(0x166)][_0x63f308(0x143)][_0x63f308(0x17f)]);this[_0x63f308(0x16f)](_0x252ec2,_0x1c359a);let _0x40e76c=_0x38f0c3[_0x63f308(0x163)][_0x63f308(0x128)][_0x63f308(0x170)](_0x252ec2);const _0x5d50fc=this[_0x63f308(0x17b)](),_0x5e306d=[];for(const _0x3613bc of _0x5d50fc){const _0x5521e2='<'+_0x3613bc[_0x63f308(0x15b)]+_0x63f308(0x144)+_0x3613bc[_0x63f308(0x15b)]+_0x63f308(0x125),_0x18c6f5=_0x40e76c[_0x63f308(0x158)](_0x5521e2);_0x40e76c=_0x40e76c[_0x63f308(0x120)](0x0,_0x18c6f5)+_0x40e76c[_0x63f308(0x120)](_0x18c6f5+_0x5521e2[_0x63f308(0x136)]);const _0x527704='<'+_0x3613bc[_0x63f308(0x15b)]+_0x63f308(0x16c)+_0x3613bc[_0x63f308(0x15b)]+_0x63f308(0x175),_0x2b5010=_0x40e76c[_0x63f308(0x158)](_0x527704);_0x40e76c=_0x40e76c[_0x63f308(0x120)](0x0,_0x2b5010)+_0x40e76c[_0x63f308(0x120)](_0x2b5010+_0x527704[_0x63f308(0x136)]),_0x5e306d[_0x63f308(0x140)]({'markerName':_0x3613bc[_0x63f308(0x15b)],'start':_0x18c6f5,'end':_0x2b5010,'htmlFragment':_0x40e76c[_0x63f308(0x120)](_0x18c6f5,_0x2b5010)});}return{'content':_0x40e76c,'version':_0x38f0c3[_0x63f308(0x162)][_0x63f308(0x17f)][_0x63f308(0x16a)],'sessionId':this[_0x63f308(0x152)],'selections':_0x5e306d};}async[_0x4a9d56(0x17c)](){const _0x542e9a=_0x4a9d56;this[_0x542e9a(0x176)]instanceof _0x31893e?this[_0x542e9a(0x16e)](this[_0x542e9a(0x176)]):this[_0x542e9a(0x135)](this[_0x542e9a(0x176)][_0x542e9a(0x11e)],_0x542e9a(0x177),(_0x3c7147,_0x36709e)=>{const _0x444727=_0x542e9a;_0x36709e['on'](_0x444727(0x173),()=>{const _0x11a247=_0x444727;this[_0x11a247(0x16e)](_0x36709e);});});}[_0x4a9d56(0x16e)](_0x7416be){const _0x1f94d0=_0x4a9d56;_0x7416be[_0x1f94d0(0x11f)][_0x1f94d0(0x179)](_0x1f94d0(0x174))[_0x1f94d0(0x17a)]({'model':_0x1f94d0(0x16b),'view':{'classes':[_0x1f94d0(0x154),_0x1f94d0(0x148)],'priority':0xc}}),_0x7416be[_0x1f94d0(0x11f)][_0x1f94d0(0x179)](_0x1f94d0(0x142))[_0x1f94d0(0x167)]({'model':_0x1f94d0(0x16b),'view':(_0x48777a,{writer:_0x2d9e09,options:_0x5e9682})=>_0x5e9682[_0x1f94d0(0x130)]?_0x2d9e09[_0x1f94d0(0x12b)](_0x48777a[_0x1f94d0(0x147)]+':'+(_0x48777a[_0x1f94d0(0x17d)]?_0x1f94d0(0x149):_0x1f94d0(0x12d))):null});}[_0x4a9d56(0x14b)](_0xb8b01c,_0x168ac8,_0x1b1dc6=!0x1,_0x430fff=!0x1){const _0x469307=_0x4a9d56;if(this[_0x469307(0x141)]&&!_0x430fff)return!0x1;const _0x2e91e0=_0xce1eec(this[_0x469307(0x176)])[_0x469307(0x162)];return _0x2e91e0[_0x469307(0x164)](_0x5587b7=>{const _0x3957c3=_0x469307;this[_0x3957c3(0x13c)]&&this[_0x3957c3(0x14d)](this[_0x3957c3(0x13c)]),this[_0x3957c3(0x13c)]=_0x168ac8,this[_0x3957c3(0x141)]=_0x1b1dc6;let _0x6f8d12=0x0;for(let _0x58b7c7 of _0xb8b01c){const _0x5ade9a=_0x3957c3(0x137)+_0x6f8d12;if(_0x58b7c7[_0x3957c3(0x149)][_0x3957c3(0x168)]){const _0x143a8d=_0x58b7c7[_0x3957c3(0x149)][_0x3957c3(0x159)](({item:_0x37ffe0})=>!_0x2e91e0[_0x3957c3(0x155)][_0x3957c3(0x127)](_0x37ffe0),{'boundaries':_0x58b7c7});_0x58b7c7=_0x5587b7[_0x3957c3(0x13b)](_0x143a8d,_0x58b7c7[_0x3957c3(0x12d)]);}_0x5587b7[_0x3957c3(0x118)](_0x5ade9a,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x58b7c7}),_0x6f8d12++;}}),window[_0x469307(0x123)]()?.[_0x469307(0x139)](),!0x0;}[_0x4a9d56(0x14d)](_0x3773a1){const _0x3b751e=_0x4a9d56;if(this[_0x3b751e(0x13c)]!=_0x3773a1)return!0x1;this[_0x3b751e(0x13c)]=null,this[_0x3b751e(0x141)]=!0x1;const _0x4aceac=_0xce1eec(this[_0x3b751e(0x176)]),_0x1f6d5d=_0x4aceac[_0x3b751e(0x162)][_0x3b751e(0x11a)][_0x3b751e(0x171)](_0x3b751e(0x16b));return _0x4aceac[_0x3b751e(0x162)][_0x3b751e(0x164)](_0x1a172b=>{const _0x5e601b=_0x3b751e;for(const _0x33e155 of _0x1f6d5d)_0x1a172b[_0x5e601b(0x15e)](_0x33e155);}),!0x0;}[_0x4a9d56(0x15c)](_0xee629f){const _0xafc825=_0x4a9d56,_0x4f7485=_0xce1eec(this[_0xafc825(0x176)]),_0x34188a=_0x4f7485[_0xafc825(0x163)][_0xafc825(0x121)](_0xee629f),_0x14e52a=new _0x109300(_0x4f7485[_0xafc825(0x166)][_0xafc825(0x143)][_0xafc825(0x17f)]);return this[_0xafc825(0x16f)](_0x34188a,_0x14e52a),_0x34188a;}[_0x4a9d56(0x16f)](_0x48e844,_0x536731){const _0x2827f0=_0x4a9d56;let _0x1a4995=!0x1;const _0x162546=new Set();for(const _0x137fc8 of _0x48e844[_0x2827f0(0x15f)]()){const _0x2ed194=_0x137fc8['is'](_0x2827f0(0x12a))||_0x137fc8['is'](_0x2827f0(0x160));if(!_0x137fc8['is'](_0x2827f0(0x122)))continue;(this[_0x2827f0(0x16f)](_0x137fc8,_0x536731)||_0x2ed194)&&(_0x536731[_0x2827f0(0x119)](_0x2827f0(0x14f),this[_0x2827f0(0x169)](_0x162546),_0x137fc8),_0x1a4995=!0x0);}return _0x1a4995;}[_0x4a9d56(0x169)](_0x4479f5){const _0x54c254=_0x4a9d56;let _0x4b1670;do{_0x4b1670='';for(let _0x1aaeda=0x0;_0x1aaeda<0x4;_0x1aaeda++)_0x4b1670+=String[_0x54c254(0x151)](0x61+Math[_0x54c254(0x178)](0x1a*Math[_0x54c254(0x172)]()));}while(_0x4479f5[_0x54c254(0x11b)](_0x4b1670));return _0x4479f5[_0x54c254(0x177)](_0x4b1670),_0x4b1670;}[_0x4a9d56(0x124)](){const _0x155b62=_0x4a9d56,{model:_0x59ae8b}=_0xce1eec(this[_0x155b62(0x176)]),_0x3e5801=_0x59ae8b[_0x155b62(0x17f)][_0x155b62(0x15d)],_0x395e8a=_0x59ae8b[_0x155b62(0x131)](_0x3e5801),_0x3ef01a=[],_0x5b7ddf=_0x59ae8b[_0x155b62(0x17e)](_0x395e8a)[_0x155b62(0x16d)]();for(const {item:_0x4377f7}of _0x5b7ddf)_0x4377f7['is'](_0x155b62(0x13d))?_0x3ef01a[_0x155b62(0x140)](_0x4377f7[_0x155b62(0x163)]):_0x4377f7['is'](_0x155b62(0x122))&&_0x3ef01a[_0x155b62(0x136)]>0x0&&'\x20'!==_0x3ef01a[_0x3ef01a[_0x155b62(0x136)]-0x1]&&_0x3ef01a[_0x155b62(0x140)]('\x20');return'\x22'+_0x3ef01a[_0x155b62(0x153)]('')[_0x155b62(0x12e)]()+'\x22';}[_0x4a9d56(0x17b)](){const _0xfb2eca=_0x4a9d56,_0x4f02f2=_0xce1eec(this[_0xfb2eca(0x176)])[_0xfb2eca(0x162)];return Array[_0xfb2eca(0x145)](_0x4f02f2[_0xfb2eca(0x11a)][_0xfb2eca(0x171)](_0xfb2eca(0x16b)))[_0xfb2eca(0x126)]((_0x1e6320,_0x58635b)=>_0x1e6320[_0xfb2eca(0x11c)]()[_0xfb2eca(0x134)](_0x58635b[_0xfb2eca(0x11c)]())?-0x1:_0x1e6320[_0xfb2eca(0x11c)]()[_0xfb2eca(0x146)](_0x58635b[_0xfb2eca(0x11c)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xe879(_0x2781b2,_0x58aa01){const _0x275b29=_0x275b();return _0xe879=function(_0xe879bc,_0x1aceb0){_0xe879bc=_0xe879bc-0xd3;let _0x50553c=_0x275b29[_0xe879bc];return _0x50553c;},_0xe879(_0x2781b2,_0x58aa01);}const _0x426adb=_0xe879;(function(_0x4577c3,_0x1a1f9b){const _0x101beb=_0xe879,_0x2ed346=_0x4577c3();while(!![]){try{const _0x46bee2=parseInt(_0x101beb(0xde))/0x1*(-parseInt(_0x101beb(0xe6))/0x2)+parseInt(_0x101beb(0xd3))/0x3*(-parseInt(_0x101beb(0xec))/0x4)+parseInt(_0x101beb(0xe1))/0x5*(parseInt(_0x101beb(0xd4))/0x6)+parseInt(_0x101beb(0xdb))/0x7+parseInt(_0x101beb(0xe8))/0x8*(-parseInt(_0x101beb(0xea))/0x9)+-parseInt(_0x101beb(0xd7))/0xa+-parseInt(_0x101beb(0xe7))/0xb*(-parseInt(_0x101beb(0xd5))/0xc);if(_0x46bee2===_0x1a1f9b)break;else _0x2ed346['push'](_0x2ed346['shift']());}catch(_0x5ca1cd){_0x2ed346['push'](_0x2ed346['shift']());}}}(_0x275b,0x84a09));import{EmitterMixin as _0x4a7c8a}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x426adb(0xe9)];function _0x275b(){const _0x4c9c9e=['_isWebSearchEnabled','2403642uaTVYU','1068WjztcH','22692696QFKQnq','setWebSearch','8816430Cvzvly','setReasoning','fire','toggleWebSearch','6189456JkisHs','reasoning','webSearch','113kZCHzM','getCapabilitiesConfig','init','15635oCCvUz','isWebSearchEnabled','_isReasoningEnabled','getCapabilitiesRequestData','reset','17684XZjktR','11upkCju','6992AnQOJw','capabilitiesUpdated','1098JUSepo','toggleReasoning','4PWClMw','isReasoningEnabled'];_0x275b=function(){return _0x4c9c9e;};return _0x275b();}export class AICapabilities extends _0x4a7c8a(){[_0x426adb(0xee)];[_0x426adb(0xe3)];constructor(){const _0x3aab3d=_0x426adb;super(),this[_0x3aab3d(0xee)]=!0x1,this[_0x3aab3d(0xe3)]=!0x1;}[_0x426adb(0xe0)](){const _0x181678=_0x426adb;this[_0x181678(0xe5)]();}[_0x426adb(0xe5)](){const _0x5e28d7=_0x426adb;this[_0x5e28d7(0xd6)](!0x1),this[_0x5e28d7(0xd8)](!0x1);}[_0x426adb(0xdf)](){const _0x33aeed=_0x426adb;return{'isWebSearchEnabled':this[_0x33aeed(0xee)],'isReasoningEnabled':this[_0x33aeed(0xe3)]};}static[_0x426adb(0xe4)](_0x3de93d){const _0x251ee5=_0x426adb,_0x4f2594={};return _0x3de93d&&_0x3de93d[_0x251ee5(0xe2)]&&(_0x4f2594[_0x251ee5(0xdd)]={}),_0x3de93d&&_0x3de93d[_0x251ee5(0xed)]&&(_0x4f2594[_0x251ee5(0xdc)]={}),_0x4f2594;}[_0x426adb(0xda)](){const _0x29a6e8=_0x426adb;this[_0x29a6e8(0xd6)](!this[_0x29a6e8(0xee)]);}[_0x426adb(0xeb)](){const _0xadf8a7=_0x426adb;this[_0xadf8a7(0xd8)](!this[_0xadf8a7(0xe3)]);}[_0x426adb(0xd6)](_0x193e14){const _0x238c19=_0x426adb;_0x193e14!==this[_0x238c19(0xee)]&&(this[_0x238c19(0xee)]=_0x193e14,this[_0x238c19(0xd9)](_0x238c19(0xe9),this[_0x238c19(0xdf)]()));}[_0x426adb(0xd8)](_0x52d6a7){const _0x3723fe=_0x426adb;_0x52d6a7!==this[_0x3723fe(0xe3)]&&(this[_0x3723fe(0xe3)]=_0x52d6a7,this[_0x3723fe(0xd9)](_0x3723fe(0xe9),this[_0x3723fe(0xdf)]()));}}
23
+ const _0x1626c2=_0x2cb1;(function(_0x483ab4,_0x57f457){const _0x47a1e6=_0x2cb1,_0x2262f7=_0x483ab4();while(!![]){try{const _0x3f81d3=-parseInt(_0x47a1e6(0x13b))/0x1+-parseInt(_0x47a1e6(0x12a))/0x2+parseInt(_0x47a1e6(0x132))/0x3*(parseInt(_0x47a1e6(0x12d))/0x4)+-parseInt(_0x47a1e6(0x129))/0x5*(-parseInt(_0x47a1e6(0x12b))/0x6)+-parseInt(_0x47a1e6(0x12e))/0x7*(-parseInt(_0x47a1e6(0x12f))/0x8)+parseInt(_0x47a1e6(0x127))/0x9+-parseInt(_0x47a1e6(0x126))/0xa*(-parseInt(_0x47a1e6(0x133))/0xb);if(_0x3f81d3===_0x57f457)break;else _0x2262f7['push'](_0x2262f7['shift']());}catch(_0x3d511d){_0x2262f7['push'](_0x2262f7['shift']());}}}(_0x4108,0x88b47));import{EmitterMixin as _0x1f0a35}from'ckeditor5/src/utils.js';function _0x2cb1(_0xfad502,_0x1af3f5){const _0x41086c=_0x4108();return _0x2cb1=function(_0x2cb16,_0x12deb8){_0x2cb16=_0x2cb16-0x126;let _0x230b98=_0x41086c[_0x2cb16];return _0x230b98;},_0x2cb1(_0xfad502,_0x1af3f5);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x1626c2(0x13f)];function _0x4108(){const _0x221063=['init','reset','setWebSearch','_isWebSearchEnabled','reasoning','isReasoningEnabled','318734OJdXlG','toggleWebSearch','fire','webSearch','capabilitiesUpdated','getCapabilitiesConfig','470RjPmAh','7012017tIibJH','getCapabilitiesRequestData','223865TPlihM','1788034xKvijy','12xzOGTV','_isReasoningEnabled','16gMwFgT','203PrbGNW','28312RMPNIO','isWebSearchEnabled','toggleReasoning','257718FaHaBe','107140TcEYTM','setReasoning'];_0x4108=function(){return _0x221063;};return _0x4108();}export class AICapabilities extends _0x1f0a35(){[_0x1626c2(0x138)];[_0x1626c2(0x12c)];constructor(){const _0xe165f4=_0x1626c2;super(),this[_0xe165f4(0x138)]=!0x1,this[_0xe165f4(0x12c)]=!0x1;}[_0x1626c2(0x135)](){const _0xf72761=_0x1626c2;this[_0xf72761(0x136)]();}[_0x1626c2(0x136)](){const _0x103fb9=_0x1626c2;this[_0x103fb9(0x137)](!0x1),this[_0x103fb9(0x134)](!0x1);}[_0x1626c2(0x140)](){const _0x17c860=_0x1626c2;return{'isWebSearchEnabled':this[_0x17c860(0x138)],'isReasoningEnabled':this[_0x17c860(0x12c)]};}static[_0x1626c2(0x128)](_0x14e171){const _0x4dc872=_0x1626c2,_0x4188cd={};return _0x14e171&&_0x14e171[_0x4dc872(0x130)]&&(_0x4188cd[_0x4dc872(0x13e)]={}),_0x14e171&&_0x14e171[_0x4dc872(0x13a)]&&(_0x4188cd[_0x4dc872(0x139)]={}),_0x4188cd;}[_0x1626c2(0x13c)](){const _0x1e189e=_0x1626c2;this[_0x1e189e(0x137)](!this[_0x1e189e(0x138)]);}[_0x1626c2(0x131)](){const _0x1e6bda=_0x1626c2;this[_0x1e6bda(0x134)](!this[_0x1e6bda(0x12c)]);}[_0x1626c2(0x137)](_0x3e22d7){const _0x1aaffc=_0x1626c2;_0x3e22d7!==this[_0x1aaffc(0x138)]&&(this[_0x1aaffc(0x138)]=_0x3e22d7,this[_0x1aaffc(0x13d)](_0x1aaffc(0x13f),this[_0x1aaffc(0x140)]()));}[_0x1626c2(0x134)](_0x452fe1){const _0x592d54=_0x1626c2;_0x452fe1!==this[_0x592d54(0x12c)]&&(this[_0x592d54(0x12c)]=_0x452fe1,this[_0x592d54(0x13d)](_0x592d54(0x13f),this[_0x592d54(0x140)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x152c45,_0x37e6fb){var _0x5d4db1=_0x3c7e,_0x57ab6d=_0x152c45();while(!![]){try{var _0x1ce045=parseInt(_0x5d4db1(0x1cd))/0x1*(-parseInt(_0x5d4db1(0x1c2))/0x2)+parseInt(_0x5d4db1(0x1cf))/0x3+parseInt(_0x5d4db1(0x1d3))/0x4*(-parseInt(_0x5d4db1(0x1cc))/0x5)+-parseInt(_0x5d4db1(0x1c3))/0x6*(-parseInt(_0x5d4db1(0x1bd))/0x7)+-parseInt(_0x5d4db1(0x1c5))/0x8*(-parseInt(_0x5d4db1(0x1cb))/0x9)+-parseInt(_0x5d4db1(0x1d2))/0xa+-parseInt(_0x5d4db1(0x1c7))/0xb*(-parseInt(_0x5d4db1(0x1ce))/0xc);if(_0x1ce045===_0x37e6fb)break;else _0x57ab6d['push'](_0x57ab6d['shift']());}catch(_0x28515b){_0x57ab6d['push'](_0x57ab6d['shift']());}}}(_0x4f45,0x9aacb));function _0x3c7e(_0x34b96d,_0x14c49a){var _0x4f451a=_0x4f45();return _0x3c7e=function(_0x3c7e87,_0x1bc20d){_0x3c7e87=_0x3c7e87-0x1ba;var _0x1bef73=_0x4f451a[_0x3c7e87];return _0x1bef73;},_0x3c7e(_0x34b96d,_0x14c49a);}export var AIContextItemType;function _0x4f45(){var _0x541ede=['2537944WjXFBS','SELECTION','5588YCemlm','markdown','URL','TEXT','9QvcNyz','2580cVnqOB','285031ieYctj','22452jLFJkR','2494005PvHiZR','file','selection','2459220zwNChR','2984VQdjiS','document','html','FILE','7PLKtNf','text','HTML','DOCUMENT','MARKDOWN','8UGkUgR','1832898Qqdtjk','web-resource'];_0x4f45=function(){return _0x541ede;};return _0x4f45();}!function(_0x4cd8c7){var _0x48dba0=_0x3c7e;_0x4cd8c7[_0x48dba0(0x1bc)]=_0x48dba0(0x1d0),_0x4cd8c7[_0x48dba0(0x1c0)]=_0x48dba0(0x1ba),_0x4cd8c7[_0x48dba0(0x1c9)]=_0x48dba0(0x1c4),_0x4cd8c7[_0x48dba0(0x1ca)]=_0x48dba0(0x1be),_0x4cd8c7[_0x48dba0(0x1c6)]=_0x48dba0(0x1d1);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x7a86c9){var _0x21fadf=_0x3c7e;_0x7a86c9[_0x21fadf(0x1ca)]=_0x21fadf(0x1be),_0x7a86c9[_0x21fadf(0x1c1)]=_0x21fadf(0x1c8),_0x7a86c9[_0x21fadf(0x1bf)]=_0x21fadf(0x1bb);}(AIContextTextResourceType||(AIContextTextResourceType={}));
23
+ (function(_0x26072d,_0x35da7a){var _0x2643d6=_0x7061,_0x43f516=_0x26072d();while(!![]){try{var _0x42ce18=-parseInt(_0x2643d6(0x1db))/0x1*(parseInt(_0x2643d6(0x1e7))/0x2)+-parseInt(_0x2643d6(0x1e6))/0x3+-parseInt(_0x2643d6(0x1e2))/0x4+-parseInt(_0x2643d6(0x1dd))/0x5*(-parseInt(_0x2643d6(0x1d5))/0x6)+-parseInt(_0x2643d6(0x1e8))/0x7+-parseInt(_0x2643d6(0x1d8))/0x8*(parseInt(_0x2643d6(0x1e5))/0x9)+-parseInt(_0x2643d6(0x1d7))/0xa*(-parseInt(_0x2643d6(0x1e3))/0xb);if(_0x42ce18===_0x35da7a)break;else _0x43f516['push'](_0x43f516['shift']());}catch(_0x45cd33){_0x43f516['push'](_0x43f516['shift']());}}}(_0xfc13,0x77c2d));export var AIContextItemType;!function(_0xac5c28){var _0x3c19c0=_0x7061;_0xac5c28[_0x3c19c0(0x1e9)]=_0x3c19c0(0x1d6),_0xac5c28[_0x3c19c0(0x1da)]=_0x3c19c0(0x1de),_0xac5c28[_0x3c19c0(0x1d3)]=_0x3c19c0(0x1e0),_0xac5c28[_0x3c19c0(0x1d4)]=_0x3c19c0(0x1e1),_0xac5c28[_0x3c19c0(0x1d2)]=_0x3c19c0(0x1dc);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;function _0x7061(_0x14ec51,_0x30fff1){var _0xfc1305=_0xfc13();return _0x7061=function(_0x7061f4,_0x2aa257){_0x7061f4=_0x7061f4-0x1d2;var _0x10a768=_0xfc1305[_0x7061f4];return _0x10a768;},_0x7061(_0x14ec51,_0x30fff1);}function _0xfc13(){var _0x4592ec=['web-resource','text','1496540SNbRTS','5104eXcXrN','MARKDOWN','81MZJpvI','1382346eSdRGZ','2hwumng','3559276inrmuE','FILE','HTML','SELECTION','URL','TEXT','102KpBBsd','file','55750tpBkre','515384qGeiCd','markdown','DOCUMENT','478931yImoVy','selection','89960DziUTN','document','html'];_0xfc13=function(){return _0x4592ec;};return _0xfc13();}!function(_0xd6fc07){var _0x4febff=_0x7061;_0xd6fc07[_0x4febff(0x1d4)]=_0x4febff(0x1e1),_0xd6fc07[_0x4febff(0x1e4)]=_0x4febff(0x1d9),_0xd6fc07[_0x4febff(0x1ea)]=_0x4febff(0x1df);}(AIContextTextResourceType||(AIContextTextResourceType={}));