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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 _0x4233a1=_0x4ca7;function _0x4f13(){const _0x31d549=['pinned','updateTitle','65442gfQBGa','filter','getTime','itemsLoaded','getItems','from','getFullYear','11DGZtiA','deleteConversation','3681sUZpUJ','2241400CtlhCw','getConversations','fire','init','push','find','loadItems','removeItem','500838grMmwF','715280KnLBEd','57225OIyrDt','467114tFWnKy','161jiVwxZ','map','itemRemoved','items','error','1UOsDpc','splice','connector','8536eKrXKB','getMonth','getResult','getItem','fetchConversations','findIndex','updatePinned','group','36zfwMlL','addItem','updateConversation','76paKesl','execute','itemUpdated','getDate','createdAt','updateItemTitle','updateItemPinned'];_0x4f13=function(){return _0x31d549;};return _0x4f13();}(function(_0x5d95f1,_0x105e42){const _0x36edb9=_0x4ca7,_0x2e6d51=_0x5d95f1();while(!![]){try{const _0x2dc72d=-parseInt(_0x36edb9(0x16e))/0x1*(-parseInt(_0x36edb9(0x19a))/0x2)+-parseInt(_0x36edb9(0x199))/0x3*(parseInt(_0x36edb9(0x17c))/0x4)+-parseInt(_0x36edb9(0x198))/0x5+-parseInt(_0x36edb9(0x185))/0x6*(-parseInt(_0x36edb9(0x19b))/0x7)+parseInt(_0x36edb9(0x171))/0x8*(parseInt(_0x36edb9(0x18e))/0x9)+parseInt(_0x36edb9(0x18f))/0xa*(-parseInt(_0x36edb9(0x18c))/0xb)+-parseInt(_0x36edb9(0x179))/0xc*(-parseInt(_0x36edb9(0x197))/0xd);if(_0x2dc72d===_0x105e42)break;else _0x2e6d51['push'](_0x2e6d51['shift']());}catch(_0x3ffe29){_0x2e6d51['push'](_0x2e6d51['shift']());}}}(_0x4f13,0x4ae5a));import{EmitterMixin as _0x4ca3dc}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x3608ab}from'./aichathistoryitem.js';function _0x4ca7(_0x359837,_0x2ae46f){const _0x4f13db=_0x4f13();return _0x4ca7=function(_0x4ca7f3,_0x4ea995){_0x4ca7f3=_0x4ca7f3-0x16e;let _0xef0da2=_0x4f13db[_0x4ca7f3];return _0xef0da2;},_0x4ca7(_0x359837,_0x2ae46f);}export class AIChatHistoryConversations extends _0x4ca3dc(){[_0x4233a1(0x19e)]=[];[_0x4233a1(0x170)];[_0x4233a1(0x178)];constructor({connector:_0x5873f6,group:_0x5b3446}){const _0xd2a1b6=_0x4233a1;super(),this[_0xd2a1b6(0x170)]=_0x5873f6,this[_0xd2a1b6(0x178)]=_0x5b3446;}async[_0x4233a1(0x192)](){const _0x1043b4=_0x4233a1;try{const _0x1e2e7a=this[_0x1043b4(0x170)][_0x1043b4(0x175)](this[_0x1043b4(0x178)]),_0x428071=await _0x1e2e7a[_0x1043b4(0x190)]();this[_0x1043b4(0x195)](_0x428071);}catch(_0x2de85e){this[_0x1043b4(0x191)](_0x1043b4(0x19f),{'error':_0x2de85e,'operation':_0x1043b4(0x192)});}}[_0x4233a1(0x17a)](_0xa79c57){const _0x9c6387=_0x4233a1;this[_0x9c6387(0x19e)][_0x9c6387(0x193)](_0xa79c57);}async[_0x4233a1(0x196)](_0x369824){const _0x4896bc=_0x4233a1,_0x2778c3=this[_0x4896bc(0x19e)][_0x4896bc(0x176)](_0x38a9e2=>_0x38a9e2['id']===_0x369824);if(-0x1===_0x2778c3)return!0x1;try{return await this[_0x4896bc(0x170)][_0x4896bc(0x18d)](_0x369824)[_0x4896bc(0x17d)](),this[_0x4896bc(0x19e)][_0x4896bc(0x16f)](_0x2778c3,0x1),this[_0x4896bc(0x191)](_0x4896bc(0x19d),{'itemId':_0x369824}),!0x0;}catch(_0x1445bf){return this[_0x4896bc(0x191)](_0x4896bc(0x19f),{'error':_0x1445bf,'operation':_0x4896bc(0x196),'itemId':_0x369824}),!0x1;}}[_0x4233a1(0x174)](_0x3a7e16){const _0x585c71=_0x4233a1;return this[_0x585c71(0x19e)][_0x585c71(0x194)](_0x165f70=>_0x165f70['id']===_0x3a7e16);}async[_0x4233a1(0x181)](_0x24332c,_0x3b96af){const _0x5c286a=_0x4233a1,_0x2ae093=this[_0x5c286a(0x174)](_0x24332c);if(!_0x2ae093)return!0x1;try{return await this[_0x5c286a(0x170)][_0x5c286a(0x17b)](_0x24332c,{'title':_0x3b96af})[_0x5c286a(0x173)](),_0x2ae093[_0x5c286a(0x184)](_0x3b96af),this[_0x5c286a(0x191)](_0x5c286a(0x17e),{'itemId':_0x24332c,'updates':{'title':_0x3b96af}}),!0x0;}catch(_0x5be56e){return this[_0x5c286a(0x191)](_0x5c286a(0x19f),{'error':_0x5be56e,'operation':_0x5c286a(0x181),'itemId':_0x24332c}),!0x1;}}async[_0x4233a1(0x182)](_0xea933f,_0x23861e){const _0x2f190b=_0x4233a1,_0x43e136=this[_0x2f190b(0x174)](_0xea933f);if(!_0x43e136)return!0x1;try{return await this[_0x2f190b(0x170)][_0x2f190b(0x17b)](_0xea933f,{'pinned':_0x23861e})[_0x2f190b(0x173)](),_0x43e136[_0x2f190b(0x177)](_0x23861e),this[_0x2f190b(0x191)](_0x2f190b(0x17e),{'itemId':_0xea933f,'updates':{'pinned':_0x23861e}}),!0x0;}catch(_0xbb414e){return this[_0x2f190b(0x191)](_0x2f190b(0x19f),{'error':_0xbb414e,'operation':_0x2f190b(0x182),'itemId':_0xea933f}),!0x1;}}[_0x4233a1(0x195)](_0x1368af){const _0x14ca8d=_0x4233a1;try{this[_0x14ca8d(0x19e)]=[],_0x1368af[_0x14ca8d(0x19c)](_0x259f84=>{const _0x13afc0=_0x14ca8d;this[_0x13afc0(0x17a)](new _0x3608ab(_0x259f84));}),this[_0x14ca8d(0x191)](_0x14ca8d(0x188),{'items':[...this[_0x14ca8d(0x19e)]]});}catch(_0x55f570){this[_0x14ca8d(0x191)](_0x14ca8d(0x19f),{'error':_0x55f570,'operation':_0x14ca8d(0x195)});}}[_0x4233a1(0x189)](_0x3f4bdb={}){const _0x5deb59=_0x4233a1,_0x585838=void 0x0!==_0x3f4bdb[_0x5deb59(0x183)]&&_0x3f4bdb[_0x5deb59(0x183)],_0x5c7a2e=_0x3f4bdb[_0x5deb59(0x18a)]?new Date(_0x3f4bdb[_0x5deb59(0x18a)][_0x5deb59(0x18b)](),_0x3f4bdb[_0x5deb59(0x18a)][_0x5deb59(0x172)](),_0x3f4bdb[_0x5deb59(0x18a)][_0x5deb59(0x17f)]()):null,_0x33d9ae=_0x3f4bdb['to']?new Date(_0x3f4bdb['to'][_0x5deb59(0x18b)](),_0x3f4bdb['to'][_0x5deb59(0x172)](),_0x3f4bdb['to'][_0x5deb59(0x17f)]()):null;return this[_0x5deb59(0x19e)][_0x5deb59(0x186)](_0x458235=>{const _0x506f87=_0x5deb59;if(_0x458235[_0x506f87(0x183)]!==_0x585838)return!0x1;if(_0x33d9ae){const _0x63e7a1=new Date(_0x458235[_0x506f87(0x180)][_0x506f87(0x18b)](),_0x458235[_0x506f87(0x180)][_0x506f87(0x172)](),_0x458235[_0x506f87(0x180)][_0x506f87(0x17f)]());return _0x5c7a2e?_0x5c7a2e[_0x506f87(0x187)]()===_0x33d9ae[_0x506f87(0x187)]()?_0x63e7a1[_0x506f87(0x187)]()===_0x5c7a2e[_0x506f87(0x187)]():_0x63e7a1<_0x33d9ae&&_0x63e7a1>=_0x5c7a2e:_0x63e7a1<_0x33d9ae;}return!0x0;});}}
23
+ const _0xf27d02=_0x594b;(function(_0x1c013d,_0x3825c2){const _0x1b8b17=_0x594b,_0x3cc4f7=_0x1c013d();while(!![]){try{const _0x30147f=-parseInt(_0x1b8b17(0xdd))/0x1+-parseInt(_0x1b8b17(0xef))/0x2*(parseInt(_0x1b8b17(0xc9))/0x3)+-parseInt(_0x1b8b17(0xe3))/0x4+parseInt(_0x1b8b17(0xe6))/0x5+parseInt(_0x1b8b17(0xcb))/0x6+-parseInt(_0x1b8b17(0xd3))/0x7*(parseInt(_0x1b8b17(0xd7))/0x8)+-parseInt(_0x1b8b17(0xda))/0x9*(-parseInt(_0x1b8b17(0xd8))/0xa);if(_0x30147f===_0x3825c2)break;else _0x3cc4f7['push'](_0x3cc4f7['shift']());}catch(_0x3bc100){_0x3cc4f7['push'](_0x3cc4f7['shift']());}}}(_0x682c,0xb0caf));import{EmitterMixin as _0x5f01f7}from'ckeditor5/src/utils.js';function _0x594b(_0x529097,_0x5889ad){const _0x682cea=_0x682c();return _0x594b=function(_0x594b48,_0x38cbf3){_0x594b48=_0x594b48-0xc3;let _0x1497af=_0x682cea[_0x594b48];return _0x1497af;},_0x594b(_0x529097,_0x5889ad);}function _0x682c(){const _0x38b3a6=['9ZYxzEr','group','7546560ehMOzJ','updateConversation','pinned','getFullYear','execute','removeItem','itemUpdated','getTime','7jmVVpd','map','error','updatePinned','6247072kUfzFU','30GTDZmk','loadItems','2805732tzOmds','createdAt','getConversations','816760PvFahr','findIndex','connector','getItem','deleteConversation','getResult','228928ofWOtw','updateItemTitle','itemRemoved','2348460cxZcvh','items','updateItemPinned','fire','updateTitle','itemsLoaded','filter','find','push','189118CADnkO','fetchConversations','getMonth','from','init','getDate','splice','addItem','getItems'];_0x682c=function(){return _0x38b3a6;};return _0x682c();}import{AIChatHistoryItem as _0x1dc3d0}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x5f01f7(){[_0xf27d02(0xe7)]=[];[_0xf27d02(0xdf)];[_0xf27d02(0xca)];constructor({connector:_0x4f2d55,group:_0x1a2798}){const _0x5082bd=_0xf27d02;super(),this[_0x5082bd(0xdf)]=_0x4f2d55,this[_0x5082bd(0xca)]=_0x1a2798;}async[_0xf27d02(0xc4)](){const _0x3343b5=_0xf27d02;try{const _0x387a87=this[_0x3343b5(0xdf)][_0x3343b5(0xf0)](this[_0x3343b5(0xca)]),_0x2558e8=await _0x387a87[_0x3343b5(0xdc)]();this[_0x3343b5(0xd9)](_0x2558e8);}catch(_0xd7b00d){this[_0x3343b5(0xe9)](_0x3343b5(0xd5),{'error':_0xd7b00d,'operation':_0x3343b5(0xc4)});}}[_0xf27d02(0xc7)](_0x293481){const _0x318325=_0xf27d02;this[_0x318325(0xe7)][_0x318325(0xee)](_0x293481);}async[_0xf27d02(0xd0)](_0x5cc629){const _0x41c48f=_0xf27d02,_0xd07d87=this[_0x41c48f(0xe7)][_0x41c48f(0xde)](_0x5a4fb3=>_0x5a4fb3['id']===_0x5cc629);if(-0x1===_0xd07d87)return!0x1;try{return await this[_0x41c48f(0xdf)][_0x41c48f(0xe1)](_0x5cc629)[_0x41c48f(0xcf)](),this[_0x41c48f(0xe7)][_0x41c48f(0xc6)](_0xd07d87,0x1),this[_0x41c48f(0xe9)](_0x41c48f(0xe5),{'itemId':_0x5cc629}),!0x0;}catch(_0x351efc){return this[_0x41c48f(0xe9)](_0x41c48f(0xd5),{'error':_0x351efc,'operation':_0x41c48f(0xd0),'itemId':_0x5cc629}),!0x1;}}[_0xf27d02(0xe0)](_0x3c0e26){const _0x30f25d=_0xf27d02;return this[_0x30f25d(0xe7)][_0x30f25d(0xed)](_0xbb3a2d=>_0xbb3a2d['id']===_0x3c0e26);}async[_0xf27d02(0xe4)](_0x1e7465,_0x34b4c6){const _0x4af4fc=_0xf27d02,_0x43a827=this[_0x4af4fc(0xe0)](_0x1e7465);if(!_0x43a827)return!0x1;try{return await this[_0x4af4fc(0xdf)][_0x4af4fc(0xcc)](_0x1e7465,{'title':_0x34b4c6})[_0x4af4fc(0xe2)](),_0x43a827[_0x4af4fc(0xea)](_0x34b4c6),this[_0x4af4fc(0xe9)](_0x4af4fc(0xd1),{'itemId':_0x1e7465,'updates':{'title':_0x34b4c6}}),!0x0;}catch(_0x163604){return this[_0x4af4fc(0xe9)](_0x4af4fc(0xd5),{'error':_0x163604,'operation':_0x4af4fc(0xe4),'itemId':_0x1e7465}),!0x1;}}async[_0xf27d02(0xe8)](_0x5a65be,_0x11c40d){const _0x36d7ad=_0xf27d02,_0x1879dd=this[_0x36d7ad(0xe0)](_0x5a65be);if(!_0x1879dd)return!0x1;try{return await this[_0x36d7ad(0xdf)][_0x36d7ad(0xcc)](_0x5a65be,{'pinned':_0x11c40d})[_0x36d7ad(0xe2)](),_0x1879dd[_0x36d7ad(0xd6)](_0x11c40d),this[_0x36d7ad(0xe9)](_0x36d7ad(0xd1),{'itemId':_0x5a65be,'updates':{'pinned':_0x11c40d}}),!0x0;}catch(_0x364882){return this[_0x36d7ad(0xe9)](_0x36d7ad(0xd5),{'error':_0x364882,'operation':_0x36d7ad(0xe8),'itemId':_0x5a65be}),!0x1;}}[_0xf27d02(0xd9)](_0x5f061d){const _0x507825=_0xf27d02;try{this[_0x507825(0xe7)]=[],_0x5f061d[_0x507825(0xd4)](_0x53d742=>{const _0x46d637=_0x507825;this[_0x46d637(0xc7)](new _0x1dc3d0(_0x53d742));}),this[_0x507825(0xe9)](_0x507825(0xeb),{'items':[...this[_0x507825(0xe7)]]});}catch(_0x475f5d){this[_0x507825(0xe9)](_0x507825(0xd5),{'error':_0x475f5d,'operation':_0x507825(0xd9)});}}[_0xf27d02(0xc8)](_0x5ad98b={}){const _0x475c6b=_0xf27d02,_0xb82c00=void 0x0!==_0x5ad98b[_0x475c6b(0xcd)]&&_0x5ad98b[_0x475c6b(0xcd)],_0xfb0d92=_0x5ad98b[_0x475c6b(0xc3)]?new Date(_0x5ad98b[_0x475c6b(0xc3)][_0x475c6b(0xce)](),_0x5ad98b[_0x475c6b(0xc3)][_0x475c6b(0xf1)](),_0x5ad98b[_0x475c6b(0xc3)][_0x475c6b(0xc5)]()):null,_0x54ad66=_0x5ad98b['to']?new Date(_0x5ad98b['to'][_0x475c6b(0xce)](),_0x5ad98b['to'][_0x475c6b(0xf1)](),_0x5ad98b['to'][_0x475c6b(0xc5)]()):null;return this[_0x475c6b(0xe7)][_0x475c6b(0xec)](_0x1b28be=>{const _0x49f574=_0x475c6b;if(_0x1b28be[_0x49f574(0xcd)]!==_0xb82c00)return!0x1;if(_0x54ad66){const _0xbb9cbf=new Date(_0x1b28be[_0x49f574(0xdb)][_0x49f574(0xce)](),_0x1b28be[_0x49f574(0xdb)][_0x49f574(0xf1)](),_0x1b28be[_0x49f574(0xdb)][_0x49f574(0xc5)]());return _0xfb0d92?_0xfb0d92[_0x49f574(0xd2)]()===_0x54ad66[_0x49f574(0xd2)]()?_0xbb9cbf[_0x49f574(0xd2)]()===_0xfb0d92[_0x49f574(0xd2)]():_0xbb9cbf<_0x54ad66&&_0xbb9cbf>=_0xfb0d92:_0xbb9cbf<_0x54ad66;}return!0x0;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x275937=_0x4c0e;(function(_0x4ed17d,_0x3d3abb){var _0x2f1db8=_0x4c0e,_0xe2c3be=_0x4ed17d();while(!![]){try{var _0x52df82=parseInt(_0x2f1db8(0xbb))/0x1*(-parseInt(_0x2f1db8(0xc6))/0x2)+-parseInt(_0x2f1db8(0xbd))/0x3+parseInt(_0x2f1db8(0xc7))/0x4+parseInt(_0x2f1db8(0xc9))/0x5+parseInt(_0x2f1db8(0xc5))/0x6*(parseInt(_0x2f1db8(0xbc))/0x7)+-parseInt(_0x2f1db8(0xc8))/0x8+-parseInt(_0x2f1db8(0xc3))/0x9;if(_0x52df82===_0x3d3abb)break;else _0xe2c3be['push'](_0xe2c3be['shift']());}catch(_0x306d77){_0xe2c3be['push'](_0xe2c3be['shift']());}}}(_0x45c5,0x642dc));import{ObservableMixin as _0xcfc3e4}from'ckeditor5/src/utils.js';import{escape as _0x5098f2}from'es-toolkit/compat';export class AIChatHistoryItem extends _0xcfc3e4(){['id'];[_0x275937(0xba)];constructor({id:_0x2640e8,title:_0x4b0a94,createdAt:_0x4e9a74,updatedAt:_0x461676,pinned:_0x3edf65}){var _0x129c1e=_0x275937;super(),this['id']=_0x2640e8,this[_0x129c1e(0xba)]=new Date(_0x4e9a74),this[_0x129c1e(0xbf)](_0x129c1e(0xc2),_0x4b0a94),this[_0x129c1e(0xbf)](_0x129c1e(0xbe),_0x461676?new Date(_0x461676):null),this[_0x129c1e(0xbf)](_0x129c1e(0xc4),_0x3edf65||!0x1);}[_0x275937(0xc0)](_0x4752d6){var _0x34b709=_0x275937;this[_0x34b709(0xbf)](_0x34b709(0xc2),_0x5098f2(_0x4752d6)),this[_0x34b709(0xbe)]=new Date();}[_0x275937(0xc1)](_0x506335){var _0x34c8b3=_0x275937;this[_0x34c8b3(0xbf)](_0x34c8b3(0xc4),_0x506335),this[_0x34c8b3(0xbe)]=new Date();}}function _0x4c0e(_0x3ebf1d,_0xd5767a){var _0x45c5d1=_0x45c5();return _0x4c0e=function(_0x4c0ec5,_0x5dd671){_0x4c0ec5=_0x4c0ec5-0xba;var _0x383fa2=_0x45c5d1[_0x4c0ec5];return _0x383fa2;},_0x4c0e(_0x3ebf1d,_0xd5767a);}function _0x45c5(){var _0x2d4ab6=['updateTitle','updatePinned','title','121914cptvmR','pinned','264dDVMop','4XLLrEj','2351228QlMbQX','3013296GSBkRc','1634685nOnQIP','createdAt','63025ERjnVs','65933TgRJCr','1207770mJIJTP','updatedAt','set'];_0x45c5=function(){return _0x2d4ab6;};return _0x45c5();}
23
+ var _0x4cbade=_0x54da;(function(_0x33f454,_0xd09653){var _0x4eb414=_0x54da,_0x1aa73b=_0x33f454();while(!![]){try{var _0x3c0049=parseInt(_0x4eb414(0x1a0))/0x1+-parseInt(_0x4eb414(0x1a9))/0x2+-parseInt(_0x4eb414(0x19f))/0x3*(parseInt(_0x4eb414(0x19c))/0x4)+parseInt(_0x4eb414(0x1a6))/0x5+parseInt(_0x4eb414(0x1a1))/0x6*(parseInt(_0x4eb414(0x1a7))/0x7)+parseInt(_0x4eb414(0x19e))/0x8*(parseInt(_0x4eb414(0x19b))/0x9)+-parseInt(_0x4eb414(0x1a2))/0xa;if(_0x3c0049===_0xd09653)break;else _0x1aa73b['push'](_0x1aa73b['shift']());}catch(_0x296a9b){_0x1aa73b['push'](_0x1aa73b['shift']());}}}(_0x2f38,0x84a5d));function _0x54da(_0x48403f,_0x25ae09){var _0x2f381a=_0x2f38();return _0x54da=function(_0x54dafd,_0x49f995){_0x54dafd=_0x54dafd-0x19b;var _0x1dd403=_0x2f381a[_0x54dafd];return _0x1dd403;},_0x54da(_0x48403f,_0x25ae09);}import{ObservableMixin as _0x517187}from'ckeditor5/src/utils.js';import{escape as _0x1b3034}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x517187(){['id'];[_0x4cbade(0x1a3)];constructor({id:_0x1d63ad,title:_0x3d2b83,createdAt:_0xe5c846,updatedAt:_0x167e1d,pinned:_0xa4b4cd}){var _0x356679=_0x4cbade;super(),this['id']=_0x1d63ad,this[_0x356679(0x1a3)]=new Date(_0xe5c846),this[_0x356679(0x1a5)](_0x356679(0x1a8),_0x3d2b83),this[_0x356679(0x1a5)](_0x356679(0x1ab),_0x167e1d?new Date(_0x167e1d):null),this[_0x356679(0x1a5)](_0x356679(0x1a4),_0xa4b4cd||!0x1);}[_0x4cbade(0x1aa)](_0x1b3ce1){var _0x1d2c05=_0x4cbade;this[_0x1d2c05(0x1a5)](_0x1d2c05(0x1a8),_0x1b3034(_0x1b3ce1)),this[_0x1d2c05(0x1ab)]=new Date();}[_0x4cbade(0x19d)](_0x409c99){var _0x2cc016=_0x4cbade;this[_0x2cc016(0x1a5)](_0x2cc016(0x1a4),_0x409c99),this[_0x2cc016(0x1ab)]=new Date();}}function _0x2f38(){var _0xcf1e12=['21RomgGb','title','704818SkGdhh','updateTitle','updatedAt','1521990qiXiLl','60404nvzbEj','updatePinned','8QWDAXh','57DNSIcz','411264wYoAkf','1028028PjpoaG','1643710uKmkpY','createdAt','pinned','set','1263180Dvtobg'];_0x2f38=function(){return _0xcf1e12;};return _0x2f38();}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f5a2c=_0x2a8b;(function(_0x55817d,_0x45649d){const _0x351982=_0x2a8b,_0x3f56b8=_0x55817d();while(!![]){try{const _0x51be1c=-parseInt(_0x351982(0x132))/0x1*(parseInt(_0x351982(0xf8))/0x2)+parseInt(_0x351982(0x11d))/0x3*(-parseInt(_0x351982(0xec))/0x4)+parseInt(_0x351982(0xdf))/0x5*(parseInt(_0x351982(0xe2))/0x6)+parseInt(_0x351982(0xed))/0x7+parseInt(_0x351982(0xf1))/0x8+parseInt(_0x351982(0xfc))/0x9+-parseInt(_0x351982(0xfd))/0xa;if(_0x51be1c===_0x45649d)break;else _0x3f56b8['push'](_0x3f56b8['shift']());}catch(_0xd60db5){_0x3f56b8['push'](_0x3f56b8['shift']());}}}(_0xa1e4,0xd4615));import{ListItemView as _0x1e2524,HighlightedTextView as _0x59a14b,ButtonView as _0x4dfcb9,ListView as _0x23f49e,IconView as _0x18b3cd,createDropdown as _0x3747c7,InputTextView as _0x322ec6}from'ckeditor5/src/ui.js';function _0xa1e4(){const _0x5e193e=['ck-ai-loader__text','_createPinButtonView','fire','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','570343ZIGukY','AI_CHAT_HISTORY_REMOVE','string','ck-ai-chat-history__item-content','children','AI_CHAT_HISTORY_CANCEL','ck-ai-chat-history__item-title','showConfirm','ck-ai-chat-history__item','then','items','Enter','selectConversation','_createEditInputView','updateLoadingState','5KHbFfz','ck-ai-chat-history__item-row','buttonView','9997902bQUtfn','AI_CHAT_HISTORY_PIN_BUTTON','add','withText','AI_CHAT_HISTORY_LOADING_RENAMING','div','value','setTemplate','isOn','clear','5925064ZGxwYF','3999681TMoxiO','focus','_createAcceptEditButtonView','edit:cancel','7398928XdgPIT','click','AI_CHAT_HISTORY_ACCEPT','bindTemplate','text','bind','mainContent','2oHuRud','isEdit','editConversationTitle','_createCheckView','9949167fQFJUo','13465110xsWffi','panelView','updateTitle','AI_CHAT_HISTORY_LOADING_PINNING','ck-ai-chat-history__item--edit','ck-ai-chat-history__item-actions','ck-ai-chat-history__item-check','loadingState','LOADING_LABELS','tiny','highlightText','isVisible','panelPosition','_createSpinnerView','_titleView','ck-ai-chat-history__item-main-content','setConversationPinned','ck-hidden','execute','locale','listitem','addMany','ck-confirm-view-cancel','_createMenuDropdownView','ck-ai-chat-history__item-date','ck-ai-chat-history__item-check-container','ck-ai-loader','key','label','AI_CHAT_HISTORY_LOADING_UNPINNING','match','createCollection','3sHqXot','AI_CHAT_HISTORY_LOADING_REMOVING','AI_CHAT_HISTORY_REMOVE_CONFIRM','ck-ai-chat-history__item--active','actions','pinned','ck-confirm-view-submit','isMatching','removeConversation','AI_CHAT_HISTORY_EDIT_NAME','change:isEdit','extendTemplate','_commitEditInputValue','span','set','_createCancelEditButtonView','element'];_0xa1e4=function(){return _0x5e193e;};return _0xa1e4();}import{IconThreeHorizontalDots as _0x1726f4,IconPin as _0x1633b8,IconCheck as _0x210647,IconCancel as _0x205267}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0xb0cd2,ConfirmMixin as _0x34d72f}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x4dba52}from'es-toolkit/compat';import{AISpinnerView as _0xb9437e}from'../../aicore/ui/aispinner.js';function _0x2a8b(_0x335944,_0x3d32a7){const _0xa1e411=_0xa1e4();return _0x2a8b=function(_0x2a8b87,_0x3d0b91){_0x2a8b87=_0x2a8b87-0xdd;let _0x480a49=_0xa1e411[_0x2a8b87];return _0x480a49;},_0x2a8b(_0x335944,_0x3d32a7);}import{getTranslation as _0x4c0f49}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
- _0x34d72f(_0x1e2524){['id'];static [_0x1f5a2c(0x105)]={'remove':_0x1f5a2c(0x11e),'rename':_0x1f5a2c(0xe6),'pin':_0x1f5a2c(0x100),'unpin':_0x1f5a2c(0x11a)};[_0x1f5a2c(0x121)];[_0x1f5a2c(0xf7)];[_0x1f5a2c(0x10b)];constructor(_0x500304,_0x1b3800){const _0x334286=_0x1f5a2c;super(_0x500304);const _0x1fa23b=this[_0x334286(0xf4)];this[_0x334286(0x12b)](_0x334286(0xf9),!0x1),this[_0x334286(0x12b)](_0x334286(0x108),!0x0),this[_0x334286(0x12b)](_0x334286(0x122),!!_0x1b3800[_0x334286(0x122)]),this[_0x334286(0x12b)](_0x334286(0x104),null),this['id']=_0x1b3800['id'];const {title:_0x3040b1,createdAt:_0x530520,active:_0x411136=!0x1}=_0x1b3800;this[_0x334286(0x10b)]=new _0x59a14b(),this[_0x334286(0x10b)][_0x334286(0xf5)]=_0x3040b1,this[_0x334286(0x10b)][_0x334286(0x128)]({'attributes':{'class':[_0x334286(0x138)]}});const _0x1a0a4a=this[_0x334286(0xfb)](),_0x59173a=this[_0x334286(0x12f)](_0x500304),_0x22a083=this[_0x334286(0x114)](),_0x8ee843=this[_0x334286(0xdd)](_0x500304,_0x3040b1),_0x3f79a0=this[_0x334286(0xef)](_0x500304,_0x8ee843),_0x5b43da=this[_0x334286(0x12c)](_0x500304,_0x8ee843);this[_0x334286(0x121)]=this[_0x334286(0x11c)](),this[_0x334286(0xf7)]=this[_0x334286(0x11c)](),this[_0x334286(0xf7)][_0x334286(0xe4)](this[_0x334286(0x10b)]),this[_0x334286(0x121)][_0x334286(0xe4)](_0x59173a),this[_0x334286(0x121)][_0x334286(0xe4)](_0x22a083),this['on'](_0x334286(0x127),(_0x2d804b,_0xc2a5be,_0x183bfa)=>{const _0x21c23b=_0x334286;this[_0x21c23b(0x121)][_0x21c23b(0xeb)](),this[_0x21c23b(0xf7)][_0x21c23b(0xeb)](),_0x183bfa?(this[_0x21c23b(0x121)][_0x21c23b(0xe4)](_0x3f79a0),this[_0x21c23b(0x121)][_0x21c23b(0xe4)](_0x5b43da),this[_0x21c23b(0xf7)][_0x21c23b(0xe4)](_0x8ee843),_0x8ee843[_0x21c23b(0x12d)][_0x21c23b(0xee)]()):(this[_0x21c23b(0x121)][_0x21c23b(0xe4)](_0x59173a),this[_0x21c23b(0x121)][_0x21c23b(0xe4)](_0x22a083),this[_0x21c23b(0xf7)][_0x21c23b(0xe4)](this[_0x21c23b(0x10b)]));}),this[_0x334286(0xe9)]({'tag':'li','attributes':{'class':[_0x334286(0x13a),_0x411136?_0x334286(0x120):'',_0x1fa23b['if'](_0x334286(0x108),_0x334286(0x10e),_0x6f81e=>!_0x6f81e),_0x1fa23b['if'](_0x334286(0xf9),_0x334286(0x101))],'role':_0x334286(0x111)},'children':[{'tag':_0x334286(0x12a),'attributes':{'class':[_0x334286(0x116)]},'children':[{'tag':_0x334286(0xe7),'attributes':{'class':[_0x334286(0x103),_0x1fa23b['if'](_0x334286(0x104),_0x334286(0x10e),_0x2bbebb=>!!_0x2bbebb)]},'children':_0x411136?[_0x1a0a4a]:[]},{'tag':_0x334286(0xe7),'attributes':{'class':[_0x334286(0x117),_0x1fa23b['if'](_0x334286(0x104),_0x334286(0x10e),_0x4f8784=>!_0x4f8784)]},'children':[this[_0x334286(0x10a)]()]}]},{'tag':_0x334286(0xe7),'attributes':{'class':[_0x334286(0xe0)]},'children':[{'tag':_0x334286(0xe7),'attributes':{'class':[_0x334286(0x135)]},'on':{'click':this[_0x334286(0xf4)]['to'](_0x334286(0xf2))},'children':[{'tag':_0x334286(0xe7),'attributes':{'class':[_0x334286(0x10c)]},'children':[{'tag':_0x334286(0xe7),'attributes':{'class':[_0x334286(0x138),_0x1fa23b['if'](_0x334286(0x104),_0x334286(0x10e),_0x470b08=>!!_0x470b08)]},'children':this[_0x334286(0xf7)]},{'tag':_0x334286(0xe7),'attributes':{'class':[_0x334286(0x12e),_0x1fa23b['if'](_0x334286(0x104),_0x334286(0x10e),_0x51b3fe=>!_0x51b3fe)]},'children':[{'text':_0x1fa23b['to'](_0x334286(0x104),_0x1180da=>_0x1180da?_0x4c0f49(this[_0x334286(0x110)],AIChatHistoryListItemView[_0x334286(0x105)][_0x1180da]):'')}]}]},{'tag':_0x334286(0x12a),'attributes':{'class':[_0x334286(0x115)]},'children':[_0x530520]}]},{'tag':_0x334286(0xe7),'attributes':{'class':[_0x334286(0x102)]},'children':this[_0x334286(0x121)]}]}]}),this['on'](_0x334286(0xf2),()=>{const _0x4255fa=_0x334286;this[_0x4255fa(0xf9)]||this[_0x4255fa(0x130)](_0x4255fa(0x13e),{'id':this['id']});});}[_0x1f5a2c(0xff)](_0x2bf98b){const _0x35ccc8=_0x1f5a2c;this[_0x35ccc8(0x10b)][_0x35ccc8(0xf5)]=_0x4dba52(_0x2bf98b);}[_0x1f5a2c(0xde)](_0x1fca6f,_0x2596f7){const _0x22b4c3=_0x1f5a2c;this[_0x22b4c3(0x12b)](_0x22b4c3(0x104),_0x2596f7?_0x1fca6f:null);}[_0x1f5a2c(0xfb)](){const _0x26acd5=_0x1f5a2c,_0x5cd368=new _0x18b3cd();return _0x5cd368[_0x26acd5(0x12b)]({'content':_0x210647}),_0x5cd368;}[_0x1f5a2c(0x12f)](_0x419821){const _0x42ce20=_0x1f5a2c,_0x4bd6cf=new _0x4dfcb9(_0x419821);return _0x4bd6cf[_0x42ce20(0x12b)]({'label':_0x4c0f49(_0x419821,_0x42ce20(0xe3)),'icon':_0x1633b8,'withText':!0x1,'tooltip':!0x0}),_0x4bd6cf[_0x42ce20(0xf6)](_0x42ce20(0xea))['to'](this,_0x42ce20(0x122)),_0x4bd6cf['on'](_0x42ce20(0x10f),()=>{const _0xe9bf9d=_0x42ce20,_0x74aa1a=!this[_0xe9bf9d(0x122)];this[_0xe9bf9d(0x130)](_0xe9bf9d(0x10d),{'id':this['id'],'pinned':_0x74aa1a});}),_0x4bd6cf;}[_0x1f5a2c(0x114)](){const _0x43ca1a=_0x1f5a2c,_0x1db5bd=_0x3747c7(this[_0x43ca1a(0x110)],_0xb0cd2),_0x495220=_0x1db5bd[_0x43ca1a(0xfe)][_0x43ca1a(0x136)];_0x1db5bd[_0x43ca1a(0xe1)][_0x43ca1a(0x12b)]({'label':_0x4c0f49(this[_0x43ca1a(0x110)],_0x43ca1a(0x131)),'icon':_0x1726f4}),_0x1db5bd[_0x43ca1a(0x109)]='sw';const _0x5d8119=new _0x4dfcb9(this[_0x43ca1a(0x110)]);_0x5d8119[_0x43ca1a(0x119)]=_0x4c0f49(this[_0x43ca1a(0x110)],_0x43ca1a(0x126)),_0x5d8119[_0x43ca1a(0xe5)]=!0x0,_0x5d8119['on'](_0x43ca1a(0x10f),()=>{const _0x43a8bc=_0x43ca1a;this[_0x43a8bc(0xf9)]=!0x0;});const _0x1a0942=new _0x4dfcb9(this[_0x43ca1a(0x110)]);_0x1a0942[_0x43ca1a(0x119)]=_0x4c0f49(this[_0x43ca1a(0x110)],_0x43ca1a(0x133)),_0x1a0942[_0x43ca1a(0xe5)]=!0x0,_0x1a0942['on'](_0x43ca1a(0x10f),()=>{const _0xb5a800=_0x43ca1a;this[_0xb5a800(0x139)](_0x4c0f49(this[_0xb5a800(0x110)],_0xb5a800(0x11f)),this[_0xb5a800(0x12d)])[_0xb5a800(0x13b)](()=>{const _0xeda293=_0xb5a800;this[_0xeda293(0x130)](_0xeda293(0x125),{'id':this['id']});});});const _0x34d0ca=new _0x23f49e(this[_0x43ca1a(0x110)]),_0x353b0c=new _0x1e2524(this[_0x43ca1a(0x110)]);_0x353b0c[_0x43ca1a(0x136)][_0x43ca1a(0xe4)](_0x5d8119);const _0x570241=new _0x1e2524(this[_0x43ca1a(0x110)]);return _0x570241[_0x43ca1a(0x136)][_0x43ca1a(0xe4)](_0x1a0942),_0x34d0ca[_0x43ca1a(0x13c)][_0x43ca1a(0x112)]([_0x353b0c,_0x570241]),_0x495220[_0x43ca1a(0xe4)](_0x34d0ca),_0x1db5bd;}[_0x1f5a2c(0xdd)](_0x3291f2,_0x40981){const _0x171c93=_0x1f5a2c,_0x1d7ab4=new _0x322ec6(_0x3291f2),_0x55722f=_0x1d7ab4[_0x171c93(0xf4)];return _0x1d7ab4[_0x171c93(0xe8)]=_0x40981,_0x1d7ab4[_0x171c93(0x128)]({'on':{'keydown':_0x55722f['to'](_0x37f03f=>{const _0x3c79a6=_0x171c93;_0x3c79a6(0x13d)==_0x37f03f[_0x3c79a6(0x118)]&&this[_0x3c79a6(0x129)](_0x1d7ab4);})}}),_0x1d7ab4;}[_0x1f5a2c(0xef)](_0x311e31,_0x14df50){const _0x5b9e5f=_0x1f5a2c,_0x41ab26=new _0x4dfcb9(_0x311e31);return _0x41ab26[_0x5b9e5f(0x12b)]({'icon':_0x210647,'withText':!0x1,'tooltip':_0x4c0f49(_0x311e31,_0x5b9e5f(0xf3))}),_0x41ab26[_0x5b9e5f(0x128)]({'attributes':{'class':[_0x5b9e5f(0x123)]}}),_0x41ab26['on'](_0x5b9e5f(0x10f),()=>{const _0x3b0525=_0x5b9e5f;this[_0x3b0525(0x129)](_0x14df50);}),_0x41ab26;}[_0x1f5a2c(0x129)](_0x45f443){const _0x23f584=_0x1f5a2c,_0x595725=_0x45f443[_0x23f584(0x12d)][_0x23f584(0xe8)]||'';this[_0x23f584(0x10b)][_0x23f584(0xf5)]=_0x595725,this[_0x23f584(0xf9)]=!0x1,this[_0x23f584(0x130)](_0x23f584(0xfa),{'id':this['id'],'title':_0x595725});}[_0x1f5a2c(0x12c)](_0x2245c2,_0x55c681){const _0x5243a2=_0x1f5a2c,_0x1d1eda=new _0x4dfcb9(_0x2245c2);return _0x1d1eda[_0x5243a2(0x12b)]({'icon':_0x205267,'withText':!0x1,'tooltip':_0x4c0f49(_0x2245c2,_0x5243a2(0x137))}),_0x1d1eda[_0x5243a2(0x128)]({'attributes':{'class':[_0x5243a2(0x113)]}}),_0x1d1eda['on'](_0x5243a2(0x10f),()=>{const _0x3234a0=_0x5243a2;this[_0x3234a0(0xf9)]=!0x1,_0x55c681[_0x3234a0(0xe8)]=this[_0x3234a0(0x10b)][_0x3234a0(0xf5)]||'',this[_0x3234a0(0x130)](_0x3234a0(0xf0));}),_0x1d1eda;}[_0x1f5a2c(0x10a)](){const _0x43f2af=_0x1f5a2c,_0x3885b7=new _0xb9437e(_0x43f2af(0x106));return _0x3885b7[_0x43f2af(0x108)]=!0x0,_0x3885b7;}[_0x1f5a2c(0x124)](_0x5969af){const _0x142092=_0x1f5a2c;return this[_0x142092(0x10b)]&&_0x142092(0x134)==typeof this[_0x142092(0x10b)][_0x142092(0xf5)]&&this[_0x142092(0x10b)][_0x142092(0xf5)][_0x142092(0x11b)](_0x5969af)?{'title':!0x0}:null;}[_0x1f5a2c(0x107)](_0x120678){const _0xd82cb5=_0x1f5a2c;this[_0xd82cb5(0x10b)][_0xd82cb5(0x107)](_0x120678);}}
23
+ function _0x58da(){const _0x5a5865=['change:isEdit','AI_CHAT_HISTORY_EDIT_NAME','span','buttonView','createCollection','_createAcceptEditButtonView','setTemplate','items','1382976QxXPXW','ck-ai-chat-history__item-date','ck-ai-chat-history__item-check-container','bindTemplate','_createCheckView','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','pinned','tiny','_titleView','128196qwycjI','_createPinButtonView','listitem','match','panelPosition','div','setConversationPinned','_createMenuDropdownView','edit:cancel','Enter','children','click','isOn','ck-hidden','AI_CHAT_HISTORY_LOADING_RENAMING','2072056IRSyYP','ck-confirm-view-submit','6SIEFeT','clear','ck-ai-chat-history__item-check','mainContent','_createEditInputView','removeConversation','showConfirm','extendTemplate','AI_CHAT_HISTORY_PIN_BUTTON','AI_CHAT_HISTORY_CANCEL','value','set','327736yBDtAa','updateTitle','text','isMatching','44073HzNHTL','string','bind','44746GOTkbJ','ck-ai-chat-history__item--active','ck-confirm-view-cancel','execute','focus','label','ck-ai-chat-history__item-title','add','fire','_createSpinnerView','ck-ai-chat-history__item-content','panelView','AI_CHAT_HISTORY_REMOVE_CONFIRM','AI_CHAT_HISTORY_LOADING_PINNING','loadingState','AI_CHAT_HISTORY_LOADING_REMOVING','AI_CHAT_HISTORY_LOADING_UNPINNING','updateLoadingState','addMany','ck-ai-chat-history__item','ck-ai-loader__text','LOADING_LABELS','7NHgovd','AI_CHAT_HISTORY_REMOVE','_createCancelEditButtonView','key','ck-ai-chat-history__item--edit','highlightText','160RwYlrm','isEdit','AI_CHAT_HISTORY_ACCEPT','actions','ck-ai-chat-history__item-actions','ck-ai-chat-history__item-main-content','withText','ck-ai-loader','element','ck-ai-chat-history__item-row','_commitEditInputValue','editConversationTitle','locale','173120rqvUUu','isVisible','selectConversation','then'];_0x58da=function(){return _0x5a5865;};return _0x58da();}const _0x73d3fe=_0x4df9;function _0x4df9(_0x59a8d6,_0x3277a5){const _0x58daa6=_0x58da();return _0x4df9=function(_0x4df969,_0x49528c){_0x4df969=_0x4df969-0x181;let _0x5a5d07=_0x58daa6[_0x4df969];return _0x5a5d07;},_0x4df9(_0x59a8d6,_0x3277a5);}(function(_0x411eeb,_0x45987b){const _0x93078=_0x4df9,_0x2080f3=_0x411eeb();while(!![]){try{const _0x571791=parseInt(_0x93078(0x196))/0x1*(parseInt(_0x93078(0x183))/0x2)+parseInt(_0x93078(0x1d4))/0x3+parseInt(_0x93078(0x18f))/0x4+parseInt(_0x93078(0x1bf))/0x5+parseInt(_0x93078(0x1cb))/0x6+parseInt(_0x93078(0x1ac))/0x7*(-parseInt(_0x93078(0x181))/0x8)+parseInt(_0x93078(0x193))/0x9*(-parseInt(_0x93078(0x1b2))/0xa);if(_0x571791===_0x45987b)break;else _0x2080f3['push'](_0x2080f3['shift']());}catch(_0x3de810){_0x2080f3['push'](_0x2080f3['shift']());}}}(_0x58da,0x2d929));import{ListItemView as _0x34376a,HighlightedTextView as _0xd4cd07,ButtonView as _0x5198b5,ListView as _0x55f76a,IconView as _0x2e0271,createDropdown as _0x29f4b9,InputTextView as _0x37e2d3}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x98f663,IconPin as _0x1787fd,IconCheck as _0x200f7a,IconCancel as _0x10f9d9}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x5db3f4,ConfirmMixin as _0x254a39}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x5ce1aa}from'es-toolkit/compat';import{AISpinnerView as _0x2b01a4}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x52c6c2}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
+ _0x254a39(_0x34376a){['id'];static [_0x73d3fe(0x1ab)]={'remove':_0x73d3fe(0x1a5),'rename':_0x73d3fe(0x1e2),'pin':_0x73d3fe(0x1a3),'unpin':_0x73d3fe(0x1a6)};[_0x73d3fe(0x1b5)];[_0x73d3fe(0x186)];[_0x73d3fe(0x1d3)];constructor(_0x1ec2cc,_0x5390fc){const _0x567fcc=_0x73d3fe;super(_0x1ec2cc);const _0x5b6477=this[_0x567fcc(0x1ce)];this[_0x567fcc(0x18e)](_0x567fcc(0x1b3),!0x1),this[_0x567fcc(0x18e)](_0x567fcc(0x1c0),!0x0),this[_0x567fcc(0x18e)](_0x567fcc(0x1d1),!!_0x5390fc[_0x567fcc(0x1d1)]),this[_0x567fcc(0x18e)](_0x567fcc(0x1a4),null),this['id']=_0x5390fc['id'];const {title:_0x449639,createdAt:_0x37ea2c,active:_0x554a38=!0x1}=_0x5390fc;this[_0x567fcc(0x1d3)]=new _0xd4cd07(),this[_0x567fcc(0x1d3)][_0x567fcc(0x191)]=_0x449639,this[_0x567fcc(0x1d3)][_0x567fcc(0x18a)]({'attributes':{'class':[_0x567fcc(0x19c)]}});const _0x355150=this[_0x567fcc(0x1cf)](),_0x3397ec=this[_0x567fcc(0x1d5)](_0x1ec2cc),_0x1fddaf=this[_0x567fcc(0x1db)](),_0x1a1c4e=this[_0x567fcc(0x187)](_0x1ec2cc,_0x449639),_0x29cba2=this[_0x567fcc(0x1c8)](_0x1ec2cc,_0x1a1c4e),_0x403978=this[_0x567fcc(0x1ae)](_0x1ec2cc,_0x1a1c4e);this[_0x567fcc(0x1b5)]=this[_0x567fcc(0x1c7)](),this[_0x567fcc(0x186)]=this[_0x567fcc(0x1c7)](),this[_0x567fcc(0x186)][_0x567fcc(0x19d)](this[_0x567fcc(0x1d3)]),this[_0x567fcc(0x1b5)][_0x567fcc(0x19d)](_0x3397ec),this[_0x567fcc(0x1b5)][_0x567fcc(0x19d)](_0x1fddaf),this['on'](_0x567fcc(0x1c3),(_0x44efb0,_0x249b8d,_0x2229a8)=>{const _0x4e2c15=_0x567fcc;this[_0x4e2c15(0x1b5)][_0x4e2c15(0x184)](),this[_0x4e2c15(0x186)][_0x4e2c15(0x184)](),_0x2229a8?(this[_0x4e2c15(0x1b5)][_0x4e2c15(0x19d)](_0x29cba2),this[_0x4e2c15(0x1b5)][_0x4e2c15(0x19d)](_0x403978),this[_0x4e2c15(0x186)][_0x4e2c15(0x19d)](_0x1a1c4e),_0x1a1c4e[_0x4e2c15(0x1ba)][_0x4e2c15(0x19a)]()):(this[_0x4e2c15(0x1b5)][_0x4e2c15(0x19d)](_0x3397ec),this[_0x4e2c15(0x1b5)][_0x4e2c15(0x19d)](_0x1fddaf),this[_0x4e2c15(0x186)][_0x4e2c15(0x19d)](this[_0x4e2c15(0x1d3)]));}),this[_0x567fcc(0x1c9)]({'tag':'li','attributes':{'class':[_0x567fcc(0x1a9),_0x554a38?_0x567fcc(0x197):'',_0x5b6477['if'](_0x567fcc(0x1c0),_0x567fcc(0x1e1),_0x18040c=>!_0x18040c),_0x5b6477['if'](_0x567fcc(0x1b3),_0x567fcc(0x1b0))],'role':_0x567fcc(0x1d6)},'children':[{'tag':_0x567fcc(0x1c5),'attributes':{'class':[_0x567fcc(0x1cd)]},'children':[{'tag':_0x567fcc(0x1d9),'attributes':{'class':[_0x567fcc(0x185),_0x5b6477['if'](_0x567fcc(0x1a4),_0x567fcc(0x1e1),_0x177971=>!!_0x177971)]},'children':_0x554a38?[_0x355150]:[]},{'tag':_0x567fcc(0x1d9),'attributes':{'class':[_0x567fcc(0x1b9),_0x5b6477['if'](_0x567fcc(0x1a4),_0x567fcc(0x1e1),_0x481231=>!_0x481231)]},'children':[this[_0x567fcc(0x19f)]()]}]},{'tag':_0x567fcc(0x1d9),'attributes':{'class':[_0x567fcc(0x1bb)]},'children':[{'tag':_0x567fcc(0x1d9),'attributes':{'class':[_0x567fcc(0x1a0)]},'on':{'click':this[_0x567fcc(0x1ce)]['to'](_0x567fcc(0x1df))},'children':[{'tag':_0x567fcc(0x1d9),'attributes':{'class':[_0x567fcc(0x1b7)]},'children':[{'tag':_0x567fcc(0x1d9),'attributes':{'class':[_0x567fcc(0x19c),_0x5b6477['if'](_0x567fcc(0x1a4),_0x567fcc(0x1e1),_0x478107=>!!_0x478107)]},'children':this[_0x567fcc(0x186)]},{'tag':_0x567fcc(0x1d9),'attributes':{'class':[_0x567fcc(0x1aa),_0x5b6477['if'](_0x567fcc(0x1a4),_0x567fcc(0x1e1),_0x5dae05=>!_0x5dae05)]},'children':[{'text':_0x5b6477['to'](_0x567fcc(0x1a4),_0x448374=>_0x448374?_0x52c6c2(this[_0x567fcc(0x1be)],AIChatHistoryListItemView[_0x567fcc(0x1ab)][_0x448374]):'')}]}]},{'tag':_0x567fcc(0x1c5),'attributes':{'class':[_0x567fcc(0x1cc)]},'children':[_0x37ea2c]}]},{'tag':_0x567fcc(0x1d9),'attributes':{'class':[_0x567fcc(0x1b6)]},'children':this[_0x567fcc(0x1b5)]}]}]}),this['on'](_0x567fcc(0x1df),()=>{const _0x2bc6e7=_0x567fcc;this[_0x2bc6e7(0x1b3)]||this[_0x2bc6e7(0x19e)](_0x2bc6e7(0x1c1),{'id':this['id']});});}[_0x73d3fe(0x190)](_0x230c56){const _0xe14b2b=_0x73d3fe;this[_0xe14b2b(0x1d3)][_0xe14b2b(0x191)]=_0x5ce1aa(_0x230c56);}[_0x73d3fe(0x1a7)](_0x58a5f2,_0x42d996){const _0x27785c=_0x73d3fe;this[_0x27785c(0x18e)](_0x27785c(0x1a4),_0x42d996?_0x58a5f2:null);}[_0x73d3fe(0x1cf)](){const _0x4ee9ee=_0x73d3fe,_0x2582c3=new _0x2e0271();return _0x2582c3[_0x4ee9ee(0x18e)]({'content':_0x200f7a}),_0x2582c3;}[_0x73d3fe(0x1d5)](_0x437e04){const _0x3ee091=_0x73d3fe,_0x599c13=new _0x5198b5(_0x437e04);return _0x599c13[_0x3ee091(0x18e)]({'label':_0x52c6c2(_0x437e04,_0x3ee091(0x18b)),'icon':_0x1787fd,'withText':!0x1,'tooltip':!0x0}),_0x599c13[_0x3ee091(0x195)](_0x3ee091(0x1e0))['to'](this,_0x3ee091(0x1d1)),_0x599c13['on'](_0x3ee091(0x199),()=>{const _0x924141=_0x3ee091,_0x41d558=!this[_0x924141(0x1d1)];this[_0x924141(0x19e)](_0x924141(0x1da),{'id':this['id'],'pinned':_0x41d558});}),_0x599c13;}[_0x73d3fe(0x1db)](){const _0x1cb37c=_0x73d3fe,_0x308ec5=_0x29f4b9(this[_0x1cb37c(0x1be)],_0x5db3f4),_0x3b3afb=_0x308ec5[_0x1cb37c(0x1a1)][_0x1cb37c(0x1de)];_0x308ec5[_0x1cb37c(0x1c6)][_0x1cb37c(0x18e)]({'label':_0x52c6c2(this[_0x1cb37c(0x1be)],_0x1cb37c(0x1d0)),'icon':_0x98f663}),_0x308ec5[_0x1cb37c(0x1d8)]='sw';const _0x51f1a9=new _0x5198b5(this[_0x1cb37c(0x1be)]);_0x51f1a9[_0x1cb37c(0x19b)]=_0x52c6c2(this[_0x1cb37c(0x1be)],_0x1cb37c(0x1c4)),_0x51f1a9[_0x1cb37c(0x1b8)]=!0x0,_0x51f1a9['on'](_0x1cb37c(0x199),()=>{const _0x5ebd49=_0x1cb37c;this[_0x5ebd49(0x1b3)]=!0x0;});const _0x462fdc=new _0x5198b5(this[_0x1cb37c(0x1be)]);_0x462fdc[_0x1cb37c(0x19b)]=_0x52c6c2(this[_0x1cb37c(0x1be)],_0x1cb37c(0x1ad)),_0x462fdc[_0x1cb37c(0x1b8)]=!0x0,_0x462fdc['on'](_0x1cb37c(0x199),()=>{const _0x543d3e=_0x1cb37c;this[_0x543d3e(0x189)](_0x52c6c2(this[_0x543d3e(0x1be)],_0x543d3e(0x1a2)),this[_0x543d3e(0x1ba)])[_0x543d3e(0x1c2)](()=>{const _0x2a160a=_0x543d3e;this[_0x2a160a(0x19e)](_0x2a160a(0x188),{'id':this['id']});});});const _0x43d4b3=new _0x55f76a(this[_0x1cb37c(0x1be)]),_0x124af7=new _0x34376a(this[_0x1cb37c(0x1be)]);_0x124af7[_0x1cb37c(0x1de)][_0x1cb37c(0x19d)](_0x51f1a9);const _0x1e0ed3=new _0x34376a(this[_0x1cb37c(0x1be)]);return _0x1e0ed3[_0x1cb37c(0x1de)][_0x1cb37c(0x19d)](_0x462fdc),_0x43d4b3[_0x1cb37c(0x1ca)][_0x1cb37c(0x1a8)]([_0x124af7,_0x1e0ed3]),_0x3b3afb[_0x1cb37c(0x19d)](_0x43d4b3),_0x308ec5;}[_0x73d3fe(0x187)](_0x6575ef,_0xc5186c){const _0x44362e=_0x73d3fe,_0x33d443=new _0x37e2d3(_0x6575ef),_0x21e576=_0x33d443[_0x44362e(0x1ce)];return _0x33d443[_0x44362e(0x18d)]=_0xc5186c,_0x33d443[_0x44362e(0x18a)]({'on':{'keydown':_0x21e576['to'](_0x4a752b=>{const _0x420c37=_0x44362e;_0x420c37(0x1dd)==_0x4a752b[_0x420c37(0x1af)]&&this[_0x420c37(0x1bc)](_0x33d443);})}}),_0x33d443;}[_0x73d3fe(0x1c8)](_0x3c49c5,_0x3b1de5){const _0x1b22dc=_0x73d3fe,_0x4520e2=new _0x5198b5(_0x3c49c5);return _0x4520e2[_0x1b22dc(0x18e)]({'icon':_0x200f7a,'withText':!0x1,'tooltip':_0x52c6c2(_0x3c49c5,_0x1b22dc(0x1b4))}),_0x4520e2[_0x1b22dc(0x18a)]({'attributes':{'class':[_0x1b22dc(0x182)]}}),_0x4520e2['on'](_0x1b22dc(0x199),()=>{const _0x1c77d1=_0x1b22dc;this[_0x1c77d1(0x1bc)](_0x3b1de5);}),_0x4520e2;}[_0x73d3fe(0x1bc)](_0x22513f){const _0x2bb7c=_0x73d3fe,_0x385e8b=_0x22513f[_0x2bb7c(0x1ba)][_0x2bb7c(0x18d)]||'';this[_0x2bb7c(0x1d3)][_0x2bb7c(0x191)]=_0x385e8b,this[_0x2bb7c(0x1b3)]=!0x1,this[_0x2bb7c(0x19e)](_0x2bb7c(0x1bd),{'id':this['id'],'title':_0x385e8b});}[_0x73d3fe(0x1ae)](_0x508e23,_0x195183){const _0x5581ca=_0x73d3fe,_0x421c64=new _0x5198b5(_0x508e23);return _0x421c64[_0x5581ca(0x18e)]({'icon':_0x10f9d9,'withText':!0x1,'tooltip':_0x52c6c2(_0x508e23,_0x5581ca(0x18c))}),_0x421c64[_0x5581ca(0x18a)]({'attributes':{'class':[_0x5581ca(0x198)]}}),_0x421c64['on'](_0x5581ca(0x199),()=>{const _0x2f17ff=_0x5581ca;this[_0x2f17ff(0x1b3)]=!0x1,_0x195183[_0x2f17ff(0x18d)]=this[_0x2f17ff(0x1d3)][_0x2f17ff(0x191)]||'',this[_0x2f17ff(0x19e)](_0x2f17ff(0x1dc));}),_0x421c64;}[_0x73d3fe(0x19f)](){const _0xd27e53=_0x73d3fe,_0x265770=new _0x2b01a4(_0xd27e53(0x1d2));return _0x265770[_0xd27e53(0x1c0)]=!0x0,_0x265770;}[_0x73d3fe(0x192)](_0x1aaa53){const _0x5c1a99=_0x73d3fe;return this[_0x5c1a99(0x1d3)]&&_0x5c1a99(0x194)==typeof this[_0x5c1a99(0x1d3)][_0x5c1a99(0x191)]&&this[_0x5c1a99(0x1d3)][_0x5c1a99(0x191)][_0x5c1a99(0x1d7)](_0x1aaa53)?{'title':!0x0}:null;}[_0x73d3fe(0x1b1)](_0x5813d2){const _0x4c683f=_0x73d3fe;this[_0x4c683f(0x1d3)][_0x4c683f(0x1b1)](_0x5813d2);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39b008=_0x3a31;function _0xf0a8(){const _0x330023=['title','ck-ai-chat-history__section-title','bindTemplate','ck-ai-chat-history__section','7176636GtbkLq','isVisible','removeItem','length','7QVHQkU','178340ysyNRI','ck-hidden','863528QSBxnd','_itemsListView','itemsViews','set','6688736CcqTGX','splice','setTemplate','isMatching','find','addMany','filter','9ZXZoNM','15VNcHgP','highlightText','remove','getItem','div','indexOf','15389630UyOSJU','items','788602cCERia','1278582BHTNrq'];_0xf0a8=function(){return _0x330023;};return _0xf0a8();}(function(_0x5bc353,_0xc98f98){const _0x5382de=_0x3a31,_0x4052a7=_0x5bc353();while(!![]){try{const _0x374e7b=-parseInt(_0x5382de(0x151))/0x1+parseInt(_0x5382de(0x152))/0x2+parseInt(_0x5382de(0x149))/0x3*(-parseInt(_0x5382de(0x13d))/0x4)+-parseInt(_0x5382de(0x13b))/0x5+parseInt(_0x5382de(0x157))/0x6+-parseInt(_0x5382de(0x13a))/0x7*(parseInt(_0x5382de(0x141))/0x8)+-parseInt(_0x5382de(0x148))/0x9*(-parseInt(_0x5382de(0x14f))/0xa);if(_0x374e7b===_0xc98f98)break;else _0x4052a7['push'](_0x4052a7['shift']());}catch(_0x3925c4){_0x4052a7['push'](_0x4052a7['shift']());}}}(_0xf0a8,0x9aedc));function _0x3a31(_0x43d621,_0x4bacff){const _0xf0a8c3=_0xf0a8();return _0x3a31=function(_0x3a310a,_0xc65ed2){_0x3a310a=_0x3a310a-0x138;let _0xe10198=_0xf0a8c3[_0x3a310a];return _0xe10198;},_0x3a31(_0x43d621,_0x4bacff);}import{ListItemView as _0x339733,View as _0x386806,ListView as _0x431b30}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x339733{[_0x39b008(0x153)];[_0x39b008(0x13f)];[_0x39b008(0x13e)];constructor(_0x1b91fe,{title:_0x27ed00,items:_0x512175}){const _0x25e48c=_0x39b008;super(_0x1b91fe);const _0x49f6ee=this[_0x25e48c(0x155)];this[_0x25e48c(0x140)](_0x25e48c(0x158),!0x0),this[_0x25e48c(0x153)]=_0x27ed00,this[_0x25e48c(0x13f)]=_0x512175;const _0x3cd265=new _0x386806(_0x1b91fe);_0x3cd265[_0x25e48c(0x143)]({'tag':_0x25e48c(0x14d),'attributes':{'class':[_0x25e48c(0x154)]},'children':[this[_0x25e48c(0x153)]]}),this[_0x25e48c(0x13e)]=new _0x431b30(_0x1b91fe),this[_0x25e48c(0x13e)][_0x25e48c(0x150)][_0x25e48c(0x146)](this[_0x25e48c(0x13f)]),this[_0x25e48c(0x143)]({'tag':'li','attributes':{'class':[_0x25e48c(0x156),_0x49f6ee['if'](_0x25e48c(0x158),_0x25e48c(0x13c),_0x5060c0=>!_0x5060c0)]},'children':[_0x3cd265,this[_0x25e48c(0x13e)]]});}[_0x39b008(0x147)](_0x4f77b0){const _0x1f323e=_0x39b008,_0xbd4a79=this[_0x1f323e(0x13f)][_0x1f323e(0x139)];let _0x3da7b5=0x0;for(const _0x3c69f3 of this[_0x1f323e(0x13f)]){if(_0x4f77b0){const _0x51df7c=_0x3c69f3[_0x1f323e(0x144)](_0x4f77b0);_0x3c69f3[_0x1f323e(0x158)]=!!_0x51df7c,_0x3c69f3[_0x1f323e(0x14a)](_0x4f77b0);}else _0x3c69f3[_0x1f323e(0x158)]=!0x0,_0x3c69f3[_0x1f323e(0x14a)](null);_0x3c69f3[_0x1f323e(0x158)]&&_0x3da7b5++;}return this[_0x1f323e(0x158)]=_0x3da7b5>0x0,{'resultsCount':_0x3da7b5,'totalItemsCount':_0xbd4a79};}[_0x39b008(0x14c)](_0x74fa4){const _0x20bfb0=_0x39b008;return this[_0x20bfb0(0x13f)][_0x20bfb0(0x145)](_0x19b27f=>_0x19b27f['id']===_0x74fa4);}[_0x39b008(0x138)](_0x5393e3){const _0x2bdce3=_0x39b008,_0x125635=this[_0x2bdce3(0x13f)][_0x2bdce3(0x14e)](_0x5393e3);-0x1!==_0x125635&&(this[_0x2bdce3(0x13f)][_0x2bdce3(0x142)](_0x125635,0x1),this[_0x2bdce3(0x13e)][_0x2bdce3(0x150)][_0x2bdce3(0x14b)](_0x5393e3));}}
23
+ const _0x49649d=_0x49ae;(function(_0x4cfcb4,_0x3cedc6){const _0x402eb4=_0x49ae,_0x34e7ca=_0x4cfcb4();while(!![]){try{const _0x1f0cdb=parseInt(_0x402eb4(0x163))/0x1+-parseInt(_0x402eb4(0x16b))/0x2+-parseInt(_0x402eb4(0x15e))/0x3+parseInt(_0x402eb4(0x15a))/0x4*(parseInt(_0x402eb4(0x155))/0x5)+-parseInt(_0x402eb4(0x153))/0x6+-parseInt(_0x402eb4(0x159))/0x7*(parseInt(_0x402eb4(0x156))/0x8)+parseInt(_0x402eb4(0x15b))/0x9*(parseInt(_0x402eb4(0x169))/0xa);if(_0x1f0cdb===_0x3cedc6)break;else _0x34e7ca['push'](_0x34e7ca['shift']());}catch(_0x1417ff){_0x34e7ca['push'](_0x34e7ca['shift']());}}}(_0x2778,0xdc2ca));function _0x49ae(_0x4b0848,_0x38006d){const _0x2778b9=_0x2778();return _0x49ae=function(_0x49aedc,_0x41ae94){_0x49aedc=_0x49aedc-0x150;let _0x8927e=_0x2778b9[_0x49aedc];return _0x8927e;},_0x49ae(_0x4b0848,_0x38006d);}import{ListItemView as _0x14fb21,View as _0x764985,ListView as _0x305f16}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x14fb21{[_0x49649d(0x151)];[_0x49649d(0x164)];[_0x49649d(0x16e)];constructor(_0x52e4c3,{title:_0xb9644f,items:_0x1acac0}){const _0x444d4f=_0x49649d;super(_0x52e4c3);const _0x2a60f7=this[_0x444d4f(0x16c)];this[_0x444d4f(0x162)](_0x444d4f(0x16f),!0x0),this[_0x444d4f(0x151)]=_0xb9644f,this[_0x444d4f(0x164)]=_0x1acac0;const _0x1efa96=new _0x764985(_0x52e4c3);_0x1efa96[_0x444d4f(0x154)]({'tag':_0x444d4f(0x167),'attributes':{'class':[_0x444d4f(0x165)]},'children':[this[_0x444d4f(0x151)]]}),this[_0x444d4f(0x16e)]=new _0x305f16(_0x52e4c3),this[_0x444d4f(0x16e)][_0x444d4f(0x16d)][_0x444d4f(0x16a)](this[_0x444d4f(0x164)]),this[_0x444d4f(0x154)]({'tag':'li','attributes':{'class':[_0x444d4f(0x15c),_0x2a60f7['if'](_0x444d4f(0x16f),_0x444d4f(0x15f),_0x334d98=>!_0x334d98)]},'children':[_0x1efa96,this[_0x444d4f(0x16e)]]});}[_0x49649d(0x168)](_0xe5a68e){const _0x5a422b=_0x49649d,_0x5160d0=this[_0x5a422b(0x164)][_0x5a422b(0x157)];let _0x5e9a7d=0x0;for(const _0x318552 of this[_0x5a422b(0x164)]){if(_0xe5a68e){const _0xd478b7=_0x318552[_0x5a422b(0x152)](_0xe5a68e);_0x318552[_0x5a422b(0x16f)]=!!_0xd478b7,_0x318552[_0x5a422b(0x160)](_0xe5a68e);}else _0x318552[_0x5a422b(0x16f)]=!0x0,_0x318552[_0x5a422b(0x160)](null);_0x318552[_0x5a422b(0x16f)]&&_0x5e9a7d++;}return this[_0x5a422b(0x16f)]=_0x5e9a7d>0x0,{'resultsCount':_0x5e9a7d,'totalItemsCount':_0x5160d0};}[_0x49649d(0x150)](_0x960cb8){const _0x27acfe=_0x49649d;return this[_0x27acfe(0x164)][_0x27acfe(0x161)](_0x5c3295=>_0x5c3295['id']===_0x960cb8);}[_0x49649d(0x15d)](_0x172092){const _0x2efd88=_0x49649d,_0x409608=this[_0x2efd88(0x164)][_0x2efd88(0x166)](_0x172092);-0x1!==_0x409608&&(this[_0x2efd88(0x164)][_0x2efd88(0x170)](_0x409608,0x1),this[_0x2efd88(0x16e)][_0x2efd88(0x16d)][_0x2efd88(0x158)](_0x172092));}}function _0x2778(){const _0xc2668c=['707YyJWsm','44KgrPbI','9770589fRQjUw','ck-ai-chat-history__section','removeItem','3639744LMnQnp','ck-hidden','highlightText','find','set','261567fOEymd','itemsViews','ck-ai-chat-history__section-title','indexOf','div','filter','10LgZVQj','addMany','515716UlioZn','bindTemplate','items','_itemsListView','isVisible','splice','getItem','title','isMatching','1355364TDAgen','setTemplate','617915VSnLCr','8536yNiOtR','length','remove'];_0x2778=function(){return _0xc2668c;};return _0x2778();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c8501=_0x15b2;(function(_0x758495,_0x16f88a){const _0x73bea=_0x15b2,_0x18e027=_0x758495();while(!![]){try{const _0x3f36d5=-parseInt(_0x73bea(0xb4))/0x1*(-parseInt(_0x73bea(0xba))/0x2)+-parseInt(_0x73bea(0xb7))/0x3+parseInt(_0x73bea(0xb6))/0x4+-parseInt(_0x73bea(0xac))/0x5*(parseInt(_0x73bea(0xbb))/0x6)+-parseInt(_0x73bea(0xb0))/0x7*(parseInt(_0x73bea(0xb8))/0x8)+parseInt(_0x73bea(0xb1))/0x9*(parseInt(_0x73bea(0xae))/0xa)+-parseInt(_0x73bea(0xb5))/0xb*(-parseInt(_0x73bea(0xaa))/0xc);if(_0x3f36d5===_0x16f88a)break;else _0x18e027['push'](_0x18e027['shift']());}catch(_0x571cbb){_0x18e027['push'](_0x18e027['shift']());}}}(_0x246d,0x786c0));function _0x15b2(_0x59a624,_0xaf74ff){const _0x246d4a=_0x246d();return _0x15b2=function(_0x15b299,_0x3ce046){_0x15b299=_0x15b299-0xaa;let _0x46305d=_0x246d4a[_0x15b299];return _0x46305d;},_0x15b2(_0x59a624,_0xaf74ff);}import{ListView as _0x1ed90a}from'ckeditor5/src/ui.js';function _0x246d(){const _0x4b15db=['filter','10VleluF','extendTemplate','485198eIkjSB','7614756HTzfIQ','items','sections','76631CtTncO','2008369YmoPWq','69496LMPmRN','2166225EPFZVp','88lmpVln','ck-ai-chat-history__sections','20xmYFsb','636MJpGSm','84WSLuRL','addMany','43870kvcYdX'];_0x246d=function(){return _0x4b15db;};return _0x246d();}export class AIChatHistorySectionListView extends _0x1ed90a{[_0x2c8501(0xb3)];constructor(_0x39343d,_0x276f68){const _0x3a41ea=_0x2c8501;super(_0x39343d),this[_0x3a41ea(0xb3)]=_0x276f68,this[_0x3a41ea(0xb2)][_0x3a41ea(0xab)](this[_0x3a41ea(0xb3)]),this[_0x3a41ea(0xaf)]({'attributes':{'class':[_0x3a41ea(0xb9)]}});}[_0x2c8501(0xad)](_0x310c87){const _0x45829c=_0x2c8501;let _0x2a8272=0x0,_0x38cb16=0x0;for(const _0x1335b2 of this[_0x45829c(0xb3)]){const {resultsCount:_0x2b6c11,totalItemsCount:_0x32a1a1}=_0x1335b2[_0x45829c(0xad)](_0x310c87);_0x2a8272+=_0x2b6c11,_0x38cb16+=_0x32a1a1;}return{'resultsCount':_0x2a8272,'totalItemsCount':_0x38cb16};}}
23
+ const _0x5c01ce=_0x2343;(function(_0x4b1c22,_0x23b28d){const _0x2480e8=_0x2343,_0x1e8064=_0x4b1c22();while(!![]){try{const _0x283f85=parseInt(_0x2480e8(0xec))/0x1*(-parseInt(_0x2480e8(0xf8))/0x2)+parseInt(_0x2480e8(0xf7))/0x3+parseInt(_0x2480e8(0xf9))/0x4*(-parseInt(_0x2480e8(0xfa))/0x5)+-parseInt(_0x2480e8(0xee))/0x6+-parseInt(_0x2480e8(0xf5))/0x7*(-parseInt(_0x2480e8(0xf4))/0x8)+parseInt(_0x2480e8(0xf6))/0x9+-parseInt(_0x2480e8(0xf0))/0xa;if(_0x283f85===_0x23b28d)break;else _0x1e8064['push'](_0x1e8064['shift']());}catch(_0x20cb04){_0x1e8064['push'](_0x1e8064['shift']());}}}(_0x328e,0x97774));function _0x2343(_0x5302f3,_0x47316f){const _0x328eda=_0x328e();return _0x2343=function(_0x234395,_0x9076e1){_0x234395=_0x234395-0xec;let _0x2d5b92=_0x328eda[_0x234395];return _0x2d5b92;},_0x2343(_0x5302f3,_0x47316f);}import{ListView as _0x3d64d2}from'ckeditor5/src/ui.js';function _0x328e(){const _0x22181d=['12bHpwyo','147010HMASJM','sections','481883KopLee','addMany','3047916bXMqLg','ck-ai-chat-history__sections','9250940vzKDIb','extendTemplate','items','filter','1770280JqbslK','28fhtSBj','10182186UVYBOz','3266886rYDRcn','4PKEjFh'];_0x328e=function(){return _0x22181d;};return _0x328e();}export class AIChatHistorySectionListView extends _0x3d64d2{[_0x5c01ce(0xfb)];constructor(_0x125bef,_0x5d553f){const _0x3271c0=_0x5c01ce;super(_0x125bef),this[_0x3271c0(0xfb)]=_0x5d553f,this[_0x3271c0(0xf2)][_0x3271c0(0xed)](this[_0x3271c0(0xfb)]),this[_0x3271c0(0xf1)]({'attributes':{'class':[_0x3271c0(0xef)]}});}[_0x5c01ce(0xf3)](_0x1aaa00){const _0x4303f4=_0x5c01ce;let _0x344e35=0x0,_0x26536d=0x0;for(const _0x42b334 of this[_0x4303f4(0xfb)]){const {resultsCount:_0x177cbf,totalItemsCount:_0x181579}=_0x42b334[_0x4303f4(0xf3)](_0x1aaa00);_0x344e35+=_0x177cbf,_0x26536d+=_0x181579;}return{'resultsCount':_0x344e35,'totalItemsCount':_0x26536d};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x26d3e2=_0x132e;(function(_0x2b1275,_0x1d2ecf){const _0x282ef6=_0x132e,_0x5bb9c7=_0x2b1275();while(!![]){try{const _0x4242ec=parseInt(_0x282ef6(0x1e0))/0x1*(-parseInt(_0x282ef6(0x1c6))/0x2)+parseInt(_0x282ef6(0x1be))/0x3+-parseInt(_0x282ef6(0x1e5))/0x4+parseInt(_0x282ef6(0x1df))/0x5*(-parseInt(_0x282ef6(0x1ac))/0x6)+-parseInt(_0x282ef6(0x1fb))/0x7*(parseInt(_0x282ef6(0x1e1))/0x8)+parseInt(_0x282ef6(0x1c4))/0x9*(parseInt(_0x282ef6(0x1f1))/0xa)+parseInt(_0x282ef6(0x1d1))/0xb;if(_0x4242ec===_0x1d2ecf)break;else _0x5bb9c7['push'](_0x5bb9c7['shift']());}catch(_0x46bbfa){_0x5bb9c7['push'](_0x5bb9c7['shift']());}}}(_0x4591,0x3f678));import{View as _0x439b79,SearchTextView as _0x2cd949,FormHeaderView as _0x35bc8e,ButtonView as _0x4310ec}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x3a209c,IconCancel as _0x4bc8f4,IconPlus as _0x263df9}from'ckeditor5/src/icons.js';function _0x4591(){const _0x120b5e=['isMainErrorViewVisible','ck-ai-chat-history__content','search','aiHistory','extendTemplate','removeItem','_createEmptyStateView','1596BQkgCP','isSearchViewVisible','set','isMaximized','ck-reset_all','fire','itemsViews','mainErrorView','_updateViewVisibility','ck-ai-chat-history__empty','execute','value','indexOf','addMany','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','2070LXRnuR','updateTitle','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','errorMessage','bind','ck-ai-header\x20ck-ai-header_history','isLoading','div','setTemplate','searchView','skeletonView','ck-ai-notification','openChat','_refreshSearch','_createSkeletonView','ck-ai-notification_error__dismiss-button','emptyView','children','1538076VbwzeH','change:hasItems','updateHistoryItemsWithCategories','splice','_createSearchView','remove','144rvorHs','queryView','2134Hdxkpr','ck-ai-chat__start-conversation','some','AI_CHAT_HISTORY_SEARCH_LABEL','getItem','sections','bindTemplate','_createErrorView','delegate','removeHistoryItem','clear','2956415ajrqrv','ck-ai-chat-history__empty-message','hasItems','ck-ai-notification_error','_createListItemViews','ck-rounded-corners','AI_CHAT_LABEL_NEW_CHAT','updateItemTitle','change:isLoading','AI_CHAT_HISTORY_EMPTY_MESSAGE','updateItemLoadingState','AI_CHAT_HISTORY_HEADING','push','render','3865RLhylY','9qqZlyw','1192okAyyk','element','ck-ai-chat-history','resizeButton','1171156NLVGHo','sectionsView','change:errorMessage','length','ltr','fieldView','add','updateLoadingState','isVisible','items','title','locale','50810UdaurK','isEmptyViewVisible','ck-hidden'];_0x4591=function(){return _0x120b5e;};return _0x4591();}import{AIChatHistorySectionListView as _0x4989f3}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0xaa7f3d}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x17239a}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x393051}from'../aichathistoryui.js';import{AISkeletonView as _0x4f6855,SKELETON_DEFINITIONS as _0x2c0a35}from'../../aicore/ui/aiskeleton.js';function _0x132e(_0x62eb71,_0x3807f9){const _0x4591db=_0x4591();return _0x132e=function(_0x132ecd,_0x50f945){_0x132ecd=_0x132ecd-0x19e;let _0x10ca11=_0x4591db[_0x132ecd];return _0x10ca11;},_0x132e(_0x62eb71,_0x3807f9);}import{createResizeButton as _0xe026d2}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x26b0cf}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x439b79{[_0x26d3e2(0x1b5)];[_0x26d3e2(0x1a4)];[_0x26d3e2(0x1b6)];[_0x26d3e2(0x1bc)];[_0x26d3e2(0x1e6)];[_0x26d3e2(0x1e4)];constructor(_0x2633c1,_0x11d7d7){const _0x34776a=_0x26d3e2;super(_0x2633c1),this[_0x34776a(0x19f)](_0x34776a(0x1d3),!0x1),this[_0x34776a(0x19f)](_0x34776a(0x1b2),!0x0),this[_0x34776a(0x19f)](_0x34776a(0x1af),''),this[_0x34776a(0x19f)](_0x34776a(0x1a0),!0x1),this[_0x34776a(0x19f)](_0x34776a(0x19e),!0x1),this[_0x34776a(0x19f)](_0x34776a(0x1f2),!0x1),this[_0x34776a(0x19f)](_0x34776a(0x1f4),!0x1);const _0x40b37e=new _0x35bc8e(_0x2633c1,{'label':_0x26b0cf(_0x2633c1,_0x34776a(0x1dc)),'icon':_0x3a209c,'class':_0x34776a(0x1b1)});_0x11d7d7&&(this[_0x34776a(0x1e4)]=_0xe026d2(_0x2633c1,this),_0x40b37e[_0x34776a(0x1bd)][_0x34776a(0x1eb)](this[_0x34776a(0x1e4)])),this[_0x34776a(0x1e6)]=new _0x4989f3(_0x2633c1,[]),this[_0x34776a(0x1e6)][_0x34776a(0x1ce)](..._0x393051)['to'](this),this[_0x34776a(0x1a4)]=this[_0x34776a(0x1cd)](),this[_0x34776a(0x1b6)]=this[_0x34776a(0x1ba)](),this[_0x34776a(0x1bc)]=this[_0x34776a(0x1fa)](),this[_0x34776a(0x1b5)]=this[_0x34776a(0x1c2)](),this[_0x34776a(0x1a4)][_0x34776a(0x1f8)]({'attributes':{'class':[this[_0x34776a(0x1cc)]['if'](_0x34776a(0x1f4),_0x34776a(0x1f3),_0x5828b8=>!_0x5828b8)]}}),this['on'](_0x34776a(0x1d9),()=>this[_0x34776a(0x1a5)]()),this['on'](_0x34776a(0x1bf),()=>this[_0x34776a(0x1a5)]()),this['on'](_0x34776a(0x1e7),()=>this[_0x34776a(0x1a5)]()),this[_0x34776a(0x1b4)]({'tag':_0x34776a(0x1b3),'attributes':{'class':['ck',_0x34776a(0x1a1),_0x34776a(0x1e3),_0x34776a(0x1d6)],'dir':_0x34776a(0x1e9)},'children':[_0x40b37e,{'tag':_0x34776a(0x1b3),'attributes':{'class':[_0x34776a(0x1f5)]},'children':[this[_0x34776a(0x1b6)],this[_0x34776a(0x1a4)],this[_0x34776a(0x1bc)],this[_0x34776a(0x1b5)]]}]});}[_0x26d3e2(0x1a5)](){const _0x1d54a7=_0x26d3e2;this[_0x1d54a7(0x19e)]=!this[_0x1d54a7(0x1b2)]&&this[_0x1d54a7(0x1d3)],this[_0x1d54a7(0x1f2)]=!this[_0x1d54a7(0x1b2)]&&!this[_0x1d54a7(0x1d3)]&&!this[_0x1d54a7(0x1af)],this[_0x1d54a7(0x1f4)]=!this[_0x1d54a7(0x19e)]&&!!this[_0x1d54a7(0x1af)];}[_0x26d3e2(0x1c2)](){const _0x3278b4=_0x26d3e2,_0x5ba7d5=new _0x2cd949(this[_0x3278b4(0x1f0)],{'filteredView':this[_0x3278b4(0x1e6)],'queryView':{'label':_0x26b0cf(this[_0x3278b4(0x1f0)],_0x3278b4(0x1c9))},'infoView':{'text':{'notFound':{'primary':_0x45110a=>_0x26b0cf(this[_0x3278b4(0x1f0)],_0x3278b4(0x1ae),_0x45110a),'secondary':_0x26b0cf(this[_0x3278b4(0x1f0)],_0x3278b4(0x1ab))}}}}),_0x416a30=this[_0x3278b4(0x1cd)]();return _0x416a30[_0x3278b4(0x1f8)]({'attributes':{'class':[this[_0x3278b4(0x1cc)]['if'](_0x3278b4(0x1af),_0x3278b4(0x1f3),_0x47bfde=>!_0x47bfde)]}}),_0x5ba7d5['on'](_0x3278b4(0x1de),()=>{const _0x4a8535=_0x3278b4;_0x5ba7d5[_0x4a8535(0x1bd)][_0x4a8535(0x1eb)](_0x416a30,0x1);}),_0x5ba7d5[_0x3278b4(0x1f8)]({'attributes':{'class':[this[_0x3278b4(0x1cc)]['if'](_0x3278b4(0x19e),_0x3278b4(0x1f3),_0x1e12d4=>!_0x1e12d4)]}}),_0x5ba7d5;}[_0x26d3e2(0x1ba)](){const _0x461056=_0x26d3e2,_0x11599b=new _0x4f6855(this[_0x461056(0x1f0)],_0x2c0a35[_0x461056(0x1f7)]);return _0x11599b[_0x461056(0x1f8)]({'attributes':{'class':[this[_0x461056(0x1cc)]['if'](_0x461056(0x1b2),_0x461056(0x1f3),_0x3d8fb0=>!_0x3d8fb0)]}}),_0x11599b;}[_0x26d3e2(0x1cd)](){const _0x1c9611=_0x26d3e2,_0xd64557=new _0x439b79(this[_0x1c9611(0x1f0)]),_0xbe79dd=new _0x4310ec(this[_0x1c9611(0x1f0)]);_0xbe79dd[_0x1c9611(0x19f)]({'withText':!0x1,'icon':_0x4bc8f4,'class':_0x1c9611(0x1bb)}),_0xbe79dd[_0x1c9611(0x1b0)](_0x1c9611(0x1ed))['to'](this,_0x1c9611(0x1d3),_0x5362ed=>!!_0x5362ed),_0xbe79dd['on'](_0x1c9611(0x1a7),()=>{const _0x2633ca=_0x1c9611;this[_0x2633ca(0x1af)]='';});const _0x45e432=this[_0x1c9611(0x1cc)];return _0xd64557[_0x1c9611(0x1b4)]({'tag':_0x1c9611(0x1b3),'attributes':{'class':['ck',_0x1c9611(0x1b7),_0x1c9611(0x1d4)]},'children':[{'tag':'p','children':[{'text':_0x45e432['to'](_0x1c9611(0x1af))}]},_0xbe79dd]}),_0xd64557;}[_0x26d3e2(0x1fa)](){const _0x20ead2=_0x26d3e2,_0x3bc61a=new _0x4310ec(this[_0x20ead2(0x1f0)]);_0x3bc61a[_0x20ead2(0x19f)]({'label':_0x26b0cf(this[_0x20ead2(0x1f0)],_0x20ead2(0x1d7)),'withText':!0x0,'icon':_0x263df9,'class':_0x20ead2(0x1c7)}),_0x3bc61a['on'](_0x20ead2(0x1a7),()=>{const _0x57ab82=_0x20ead2;this[_0x57ab82(0x1a2)](_0x57ab82(0x1b8));});const _0x3d9e96=new _0x439b79(this[_0x20ead2(0x1f0)]);return _0x3d9e96[_0x20ead2(0x1b4)]({'tag':_0x20ead2(0x1b3),'attributes':{'class':[_0x20ead2(0x1a6),this[_0x20ead2(0x1cc)]['if'](_0x20ead2(0x1f2),_0x20ead2(0x1f3),_0xd84573=>!_0xd84573)]},'children':[{'tag':'p','attributes':{'class':[_0x20ead2(0x1d2)]},'children':[_0x26b0cf(this[_0x20ead2(0x1f0)],_0x20ead2(0x1da))]},_0x3bc61a]}),_0x3d9e96;}[_0x26d3e2(0x1d5)](_0x452d85,_0x165bea){const _0x113265=_0x26d3e2,_0x3e85e9=[];for(const _0x504b10 of _0x452d85){const _0x265f7f=new _0x17239a(_0x165bea,_0x504b10);_0x265f7f[_0x113265(0x1ce)](..._0x393051)['to'](this),_0x3e85e9[_0x113265(0x1dd)](_0x265f7f);}return _0x3e85e9;}[_0x26d3e2(0x1c0)](_0x4abc3e){const _0x29883f=_0x26d3e2,_0x720b5b=this[_0x29883f(0x1f0)]||'en',_0x266bc1=[];for(const _0x1618a8 of _0x4abc3e){const _0xee1678=this[_0x29883f(0x1d5)](_0x1618a8[_0x29883f(0x1ee)],_0x720b5b);_0x266bc1[_0x29883f(0x1dd)](new _0xaa7f3d(_0x720b5b,{'title':_0x1618a8[_0x29883f(0x1ef)],'items':_0xee1678}));}this[_0x29883f(0x1e6)][_0x29883f(0x1cb)]=_0x266bc1,this[_0x29883f(0x1e6)][_0x29883f(0x1ee)][_0x29883f(0x1d0)](),this[_0x29883f(0x1e6)][_0x29883f(0x1ee)][_0x29883f(0x1aa)](_0x266bc1),this[_0x29883f(0x1d3)]=_0x4abc3e[_0x29883f(0x1c8)](_0x46d44f=>_0x46d44f[_0x29883f(0x1ee)][_0x29883f(0x1e8)]>0x0),this[_0x29883f(0x1b9)]();}[_0x26d3e2(0x1cf)](_0x49bf6d){const _0x418e71=_0x26d3e2;for(const _0x16e093 of this[_0x418e71(0x1e6)][_0x418e71(0x1cb)]){const _0x5c3fc4=_0x16e093[_0x418e71(0x1ca)](_0x49bf6d);if(_0x5c3fc4){if(_0x16e093[_0x418e71(0x1f9)](_0x5c3fc4),0x0===_0x16e093[_0x418e71(0x1a3)][_0x418e71(0x1e8)]){const _0x3f4f7b=this[_0x418e71(0x1e6)][_0x418e71(0x1cb)][_0x418e71(0x1a9)](_0x16e093);-0x1!==_0x3f4f7b&&(this[_0x418e71(0x1e6)][_0x418e71(0x1cb)][_0x418e71(0x1c1)](_0x3f4f7b,0x1),this[_0x418e71(0x1e6)][_0x418e71(0x1ee)][_0x418e71(0x1c3)](_0x16e093));}this[_0x418e71(0x1d3)]=this[_0x418e71(0x1e6)][_0x418e71(0x1cb)][_0x418e71(0x1e8)]>0x0,this[_0x418e71(0x1b9)]();break;}}}[_0x26d3e2(0x1d8)](_0x4fce7b,_0x5a6f7e){const _0x530a69=_0x26d3e2;for(const _0x119426 of this[_0x530a69(0x1e6)][_0x530a69(0x1cb)]){const _0x292dbb=_0x119426[_0x530a69(0x1ca)](_0x4fce7b);if(_0x292dbb){_0x292dbb[_0x530a69(0x1ad)](_0x5a6f7e);break;}}}[_0x26d3e2(0x1db)](_0x320d6d,_0x2fb753,_0x2ba43a){const _0x4b5950=_0x26d3e2;for(const _0x4234a5 of this[_0x4b5950(0x1e6)][_0x4b5950(0x1cb)]){const _0x102128=_0x4234a5[_0x4b5950(0x1ca)](_0x320d6d);if(_0x102128){_0x102128[_0x4b5950(0x1ec)](_0x2fb753,_0x2ba43a);break;}}}[_0x26d3e2(0x1b9)](){const _0x2b0626=_0x26d3e2;if(this[_0x2b0626(0x1d3)]){const _0x5db5b1=this[_0x2b0626(0x1b5)][_0x2b0626(0x1c5)][_0x2b0626(0x1ea)]?.[_0x2b0626(0x1e2)]?.[_0x2b0626(0x1a8)]||'';this[_0x2b0626(0x1b5)][_0x2b0626(0x1f6)](_0x5db5b1);}}}
23
+ const _0x2aa48e=_0x36b6;(function(_0x2257e1,_0x97172){const _0x41bad9=_0x36b6,_0x556153=_0x2257e1();while(!![]){try{const _0x316025=parseInt(_0x41bad9(0x168))/0x1+parseInt(_0x41bad9(0x19c))/0x2+-parseInt(_0x41bad9(0x1b8))/0x3*(-parseInt(_0x41bad9(0x1b1))/0x4)+-parseInt(_0x41bad9(0x1ab))/0x5*(-parseInt(_0x41bad9(0x19a))/0x6)+parseInt(_0x41bad9(0x1a6))/0x7*(-parseInt(_0x41bad9(0x1b9))/0x8)+-parseInt(_0x41bad9(0x16c))/0x9+-parseInt(_0x41bad9(0x1a4))/0xa;if(_0x316025===_0x97172)break;else _0x556153['push'](_0x556153['shift']());}catch(_0x4b54e4){_0x556153['push'](_0x556153['shift']());}}}(_0x4f1c,0x305f9));import{View as _0x2328e0,SearchTextView as _0x52750a,FormHeaderView as _0x4032e4,ButtonView as _0x26896c}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x216847,IconCancel as _0x149d52,IconPlus as _0x58cde4}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x2193ad}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0xd6de98}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x4981c8}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3664d4}from'../aichathistoryui.js';import{AISkeletonView as _0x1ccd9a,SKELETON_DEFINITIONS as _0x2be148}from'../../aicore/ui/aiskeleton.js';function _0x4f1c(){const _0x17d217=['clear','execute','mainErrorView','resizeButton','isMaximized','getItem','change:isLoading','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_updateViewVisibility','_createSkeletonView','ck-ai-chat-history__content','12EoDHRy','ck-ai-notification_error__dismiss-button','141698jKYRXH','ck-ai-chat-history','isSearchViewVisible','updateLoadingState','ck-ai-chat-history__empty-message','itemsViews','sectionsView','emptyView','1926440WSdQXS','removeHistoryItem','695471CdmxsT','AI_CHAT_HISTORY_SEARCH_LABEL','aiHistory','openChat','ck-ai-chat__start-conversation','133520wZAJvH','updateItemLoadingState','ck-rounded-corners','fire','AI_CHAT_LABEL_NEW_CHAT','searchView','8Ybwxdk','ltr','render','remove','updateItemTitle','isMainErrorViewVisible','bindTemplate','152295bQKWDt','8geuPcp','value','extendTemplate','div','isVisible','change:hasItems','ck-ai-notification','ck-ai-chat-history__empty','delegate','isEmptyViewVisible','add','splice','309604ZkmUJt','children','errorMessage','push','407313XTQAMg','locale','skeletonView','_createListItemViews','sections','element','some','ck-hidden','title','length','_refreshSearch','AI_CHAT_HISTORY_HEADING','search','change:errorMessage','ck-reset_all','_createSearchView','updateTitle','bind','AI_CHAT_HISTORY_EMPTY_MESSAGE','_createErrorView','indexOf','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','addMany','set','items','setTemplate','updateHistoryItemsWithCategories','isLoading','hasItems','_createEmptyStateView','queryView','ck-ai-header\x20ck-ai-header_history','removeItem','ck-ai-notification_error','fieldView'];_0x4f1c=function(){return _0x17d217;};return _0x4f1c();}import{createResizeButton as _0x14ea6c}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x5b786a}from'../../aicore/utils/common-translations.js';function _0x36b6(_0x34ae98,_0x5b9039){const _0x4f1cbe=_0x4f1c();return _0x36b6=function(_0x36b600,_0x130d48){_0x36b600=_0x36b600-0x15d;let _0x7137fc=_0x4f1cbe[_0x36b600];return _0x7137fc;},_0x36b6(_0x34ae98,_0x5b9039);}export class AIChatHistoryView extends _0x2328e0{[_0x2aa48e(0x1b0)];[_0x2aa48e(0x191)];[_0x2aa48e(0x16e)];[_0x2aa48e(0x1a3)];[_0x2aa48e(0x1a2)];[_0x2aa48e(0x192)];constructor(_0x27d6d8,_0x868e13){const _0xaf9851=_0x2aa48e;super(_0x27d6d8),this[_0xaf9851(0x183)](_0xaf9851(0x188),!0x1),this[_0xaf9851(0x183)](_0xaf9851(0x187),!0x0),this[_0xaf9851(0x183)](_0xaf9851(0x16a),''),this[_0xaf9851(0x183)](_0xaf9851(0x193),!0x1),this[_0xaf9851(0x183)](_0xaf9851(0x19e),!0x1),this[_0xaf9851(0x183)](_0xaf9851(0x165),!0x1),this[_0xaf9851(0x183)](_0xaf9851(0x1b6),!0x1);const _0x1c84b2=new _0x4032e4(_0x27d6d8,{'label':_0x5b786a(_0x27d6d8,_0xaf9851(0x177)),'icon':_0x216847,'class':_0xaf9851(0x18b)});_0x868e13&&(this[_0xaf9851(0x192)]=_0x14ea6c(_0x27d6d8,this),_0x1c84b2[_0xaf9851(0x169)][_0xaf9851(0x166)](this[_0xaf9851(0x192)])),this[_0xaf9851(0x1a2)]=new _0x2193ad(_0x27d6d8,[]),this[_0xaf9851(0x1a2)][_0xaf9851(0x164)](..._0x3664d4)['to'](this),this[_0xaf9851(0x191)]=this[_0xaf9851(0x17f)](),this[_0xaf9851(0x16e)]=this[_0xaf9851(0x198)](),this[_0xaf9851(0x1a3)]=this[_0xaf9851(0x189)](),this[_0xaf9851(0x1b0)]=this[_0xaf9851(0x17b)](),this[_0xaf9851(0x191)][_0xaf9851(0x15e)]({'attributes':{'class':[this[_0xaf9851(0x1b7)]['if'](_0xaf9851(0x1b6),_0xaf9851(0x173),_0x25225d=>!_0x25225d)]}}),this['on'](_0xaf9851(0x195),()=>this[_0xaf9851(0x197)]()),this['on'](_0xaf9851(0x161),()=>this[_0xaf9851(0x197)]()),this['on'](_0xaf9851(0x179),()=>this[_0xaf9851(0x197)]()),this[_0xaf9851(0x185)]({'tag':_0xaf9851(0x15f),'attributes':{'class':['ck',_0xaf9851(0x17a),_0xaf9851(0x19d),_0xaf9851(0x1ad)],'dir':_0xaf9851(0x1b2)},'children':[_0x1c84b2,{'tag':_0xaf9851(0x15f),'attributes':{'class':[_0xaf9851(0x199)]},'children':[this[_0xaf9851(0x16e)],this[_0xaf9851(0x191)],this[_0xaf9851(0x1a3)],this[_0xaf9851(0x1b0)]]}]});}[_0x2aa48e(0x197)](){const _0x34468c=_0x2aa48e;this[_0x34468c(0x19e)]=!this[_0x34468c(0x187)]&&this[_0x34468c(0x188)],this[_0x34468c(0x165)]=!this[_0x34468c(0x187)]&&!this[_0x34468c(0x188)]&&!this[_0x34468c(0x16a)],this[_0x34468c(0x1b6)]=!this[_0x34468c(0x19e)]&&!!this[_0x34468c(0x16a)];}[_0x2aa48e(0x17b)](){const _0x5e29fb=_0x2aa48e,_0x1f9997=new _0x52750a(this[_0x5e29fb(0x16d)],{'filteredView':this[_0x5e29fb(0x1a2)],'queryView':{'label':_0x5b786a(this[_0x5e29fb(0x16d)],_0x5e29fb(0x1a7))},'infoView':{'text':{'notFound':{'primary':_0x44fc5d=>_0x5b786a(this[_0x5e29fb(0x16d)],_0x5e29fb(0x196),_0x44fc5d),'secondary':_0x5b786a(this[_0x5e29fb(0x16d)],_0x5e29fb(0x181))}}}}),_0x30d964=this[_0x5e29fb(0x17f)]();return _0x30d964[_0x5e29fb(0x15e)]({'attributes':{'class':[this[_0x5e29fb(0x1b7)]['if'](_0x5e29fb(0x16a),_0x5e29fb(0x173),_0x48be7e=>!_0x48be7e)]}}),_0x1f9997['on'](_0x5e29fb(0x1b3),()=>{const _0x46bdd5=_0x5e29fb;_0x1f9997[_0x46bdd5(0x169)][_0x46bdd5(0x166)](_0x30d964,0x1);}),_0x1f9997[_0x5e29fb(0x15e)]({'attributes':{'class':[this[_0x5e29fb(0x1b7)]['if'](_0x5e29fb(0x19e),_0x5e29fb(0x173),_0x1eea6e=>!_0x1eea6e)]}}),_0x1f9997;}[_0x2aa48e(0x198)](){const _0x4b40a5=_0x2aa48e,_0x53d12e=new _0x1ccd9a(this[_0x4b40a5(0x16d)],_0x2be148[_0x4b40a5(0x1a8)]);return _0x53d12e[_0x4b40a5(0x15e)]({'attributes':{'class':[this[_0x4b40a5(0x1b7)]['if'](_0x4b40a5(0x187),_0x4b40a5(0x173),_0x45b185=>!_0x45b185)]}}),_0x53d12e;}[_0x2aa48e(0x17f)](){const _0xf951c1=_0x2aa48e,_0xded35c=new _0x2328e0(this[_0xf951c1(0x16d)]),_0x5ea2a4=new _0x26896c(this[_0xf951c1(0x16d)]);_0x5ea2a4[_0xf951c1(0x183)]({'withText':!0x1,'icon':_0x149d52,'class':_0xf951c1(0x19b)}),_0x5ea2a4[_0xf951c1(0x17d)](_0xf951c1(0x160))['to'](this,_0xf951c1(0x188),_0x4f4c6e=>!!_0x4f4c6e),_0x5ea2a4['on'](_0xf951c1(0x190),()=>{const _0x5640f7=_0xf951c1;this[_0x5640f7(0x16a)]='';});const _0x29bf21=this[_0xf951c1(0x1b7)];return _0xded35c[_0xf951c1(0x185)]({'tag':_0xf951c1(0x15f),'attributes':{'class':['ck',_0xf951c1(0x162),_0xf951c1(0x18d)]},'children':[{'tag':'p','children':[{'text':_0x29bf21['to'](_0xf951c1(0x16a))}]},_0x5ea2a4]}),_0xded35c;}[_0x2aa48e(0x189)](){const _0x1031ab=_0x2aa48e,_0x2fe34e=new _0x26896c(this[_0x1031ab(0x16d)]);_0x2fe34e[_0x1031ab(0x183)]({'label':_0x5b786a(this[_0x1031ab(0x16d)],_0x1031ab(0x1af)),'withText':!0x0,'icon':_0x58cde4,'class':_0x1031ab(0x1aa)}),_0x2fe34e['on'](_0x1031ab(0x190),()=>{const _0x5351ae=_0x1031ab;this[_0x5351ae(0x1ae)](_0x5351ae(0x1a9));});const _0x3c6858=new _0x2328e0(this[_0x1031ab(0x16d)]);return _0x3c6858[_0x1031ab(0x185)]({'tag':_0x1031ab(0x15f),'attributes':{'class':[_0x1031ab(0x163),this[_0x1031ab(0x1b7)]['if'](_0x1031ab(0x165),_0x1031ab(0x173),_0x3d6aef=>!_0x3d6aef)]},'children':[{'tag':'p','attributes':{'class':[_0x1031ab(0x1a0)]},'children':[_0x5b786a(this[_0x1031ab(0x16d)],_0x1031ab(0x17e))]},_0x2fe34e]}),_0x3c6858;}[_0x2aa48e(0x16f)](_0x1248d4,_0x2252ca){const _0x318597=_0x2aa48e,_0x43a66a=[];for(const _0x72543f of _0x1248d4){const _0x4f774d=new _0x4981c8(_0x2252ca,_0x72543f);_0x4f774d[_0x318597(0x164)](..._0x3664d4)['to'](this),_0x43a66a[_0x318597(0x16b)](_0x4f774d);}return _0x43a66a;}[_0x2aa48e(0x186)](_0x534d24){const _0x19f532=_0x2aa48e,_0x30a027=this[_0x19f532(0x16d)]||'en',_0x390e20=[];for(const _0xab88e7 of _0x534d24){const _0x4c938d=this[_0x19f532(0x16f)](_0xab88e7[_0x19f532(0x184)],_0x30a027);_0x390e20[_0x19f532(0x16b)](new _0xd6de98(_0x30a027,{'title':_0xab88e7[_0x19f532(0x174)],'items':_0x4c938d}));}this[_0x19f532(0x1a2)][_0x19f532(0x170)]=_0x390e20,this[_0x19f532(0x1a2)][_0x19f532(0x184)][_0x19f532(0x18f)](),this[_0x19f532(0x1a2)][_0x19f532(0x184)][_0x19f532(0x182)](_0x390e20),this[_0x19f532(0x188)]=_0x534d24[_0x19f532(0x172)](_0x29c67c=>_0x29c67c[_0x19f532(0x184)][_0x19f532(0x175)]>0x0),this[_0x19f532(0x176)]();}[_0x2aa48e(0x1a5)](_0x31023e){const _0x47c44f=_0x2aa48e;for(const _0x3ed31c of this[_0x47c44f(0x1a2)][_0x47c44f(0x170)]){const _0xf32b87=_0x3ed31c[_0x47c44f(0x194)](_0x31023e);if(_0xf32b87){if(_0x3ed31c[_0x47c44f(0x18c)](_0xf32b87),0x0===_0x3ed31c[_0x47c44f(0x1a1)][_0x47c44f(0x175)]){const _0x8b167a=this[_0x47c44f(0x1a2)][_0x47c44f(0x170)][_0x47c44f(0x180)](_0x3ed31c);-0x1!==_0x8b167a&&(this[_0x47c44f(0x1a2)][_0x47c44f(0x170)][_0x47c44f(0x167)](_0x8b167a,0x1),this[_0x47c44f(0x1a2)][_0x47c44f(0x184)][_0x47c44f(0x1b4)](_0x3ed31c));}this[_0x47c44f(0x188)]=this[_0x47c44f(0x1a2)][_0x47c44f(0x170)][_0x47c44f(0x175)]>0x0,this[_0x47c44f(0x176)]();break;}}}[_0x2aa48e(0x1b5)](_0x20c679,_0x2336c7){const _0x38fdb8=_0x2aa48e;for(const _0x252f20 of this[_0x38fdb8(0x1a2)][_0x38fdb8(0x170)]){const _0x4972c6=_0x252f20[_0x38fdb8(0x194)](_0x20c679);if(_0x4972c6){_0x4972c6[_0x38fdb8(0x17c)](_0x2336c7);break;}}}[_0x2aa48e(0x1ac)](_0x2ad416,_0x39ba07,_0x143384){const _0x1633ec=_0x2aa48e;for(const _0x245011 of this[_0x1633ec(0x1a2)][_0x1633ec(0x170)]){const _0x4c6d8f=_0x245011[_0x1633ec(0x194)](_0x2ad416);if(_0x4c6d8f){_0x4c6d8f[_0x1633ec(0x19f)](_0x39ba07,_0x143384);break;}}}[_0x2aa48e(0x176)](){const _0x11e933=_0x2aa48e;if(this[_0x11e933(0x188)]){const _0x5c1e34=this[_0x11e933(0x1b0)][_0x11e933(0x18a)][_0x11e933(0x18e)]?.[_0x11e933(0x171)]?.[_0x11e933(0x15d)]||'';this[_0x11e933(0x1b0)][_0x11e933(0x178)](_0x5c1e34);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x999e19=_0x45ba;function _0x45ba(_0x3e97b6,_0x507613){const _0x52cde1=_0x52cd();return _0x45ba=function(_0x45ba8b,_0xc44e02){_0x45ba8b=_0x45ba8b-0x15c;let _0x90f30a=_0x52cde1[_0x45ba8b];return _0x90f30a;},_0x45ba(_0x3e97b6,_0x507613);}(function(_0x257783,_0x16dc3a){const _0x2d269e=_0x45ba,_0x49e34d=_0x257783();while(!![]){try{const _0x550d3d=parseInt(_0x2d269e(0x19d))/0x1*(-parseInt(_0x2d269e(0x1d6))/0x2)+-parseInt(_0x2d269e(0x1b7))/0x3*(parseInt(_0x2d269e(0x1b8))/0x4)+-parseInt(_0x2d269e(0x15e))/0x5*(parseInt(_0x2d269e(0x164))/0x6)+-parseInt(_0x2d269e(0x1a5))/0x7*(-parseInt(_0x2d269e(0x19c))/0x8)+parseInt(_0x2d269e(0x1ef))/0x9*(parseInt(_0x2d269e(0x1b4))/0xa)+parseInt(_0x2d269e(0x199))/0xb*(-parseInt(_0x2d269e(0x178))/0xc)+parseInt(_0x2d269e(0x1bb))/0xd;if(_0x550d3d===_0x16dc3a)break;else _0x49e34d['push'](_0x49e34d['shift']());}catch(_0x3cc14c){_0x49e34d['push'](_0x49e34d['shift']());}}}(_0x52cd,0x79d02));import{createParser as _0x42e2dc}from'eventsource-parser';import{ContextPlugin as _0x267803}from'ckeditor5/src/core.js';import{CKEditorError as _0x13c841}from'ckeditor5/src/utils.js';function _0x52cd(){const _0x195e44=['data','9PQWAAg','value','getReader','fetchConversation','155gzhfyD','make-longer','upsertCustomAIReviewRating','releaseLock','fetchConversationMessages','uploadDocument','107334GRhFdM','DELETE','attributes','context','make-tone-formal','init','CloudServices','status','Bearer\x20','read','append','MAKE_TONE_CASUAL','feed','make-shorter','https://ai.cke-cs.com/v1','_decoder','limit','MAKE_TONE_FORMAL','fetchDocument','ai-request-aborted','85920FVVkeZ','text','group','isOfficialPlugin','plugins','/files','uploadUrl','deleteWebResource','AbortError','json','PUT','/reviews/system/','then','/actions/system/','config','MAKE_SHORTER','get','catch','ai-request-failed','parse','fetchConversations','FIX_GRAMMAR','/web-resources','CONTINUE','toString','stringify','decode','deleteConversation','queryAssistant','define','executeAction','/calls','Content-Type','638xXVYCo','pluginName','100','2457944cnEvhf','44FiovOH','positiveCount','token','GET','/web-resources/','message','/models/1?','/ratings','7EPniCm','upsertAIReviewRating','requires','/conversations?','deleteFile','/conversations','upsertAIActionRating','true','/messages/','excludeEmpty','PATCH','POST','fix-grammar','updateConversation','keys','5308690TQUham','body','MAKE_LONGER','3iJPAdD','3898292chTmHT','language','abortController','24446630rTCdTz','file','/reviews/custom/calls/','_handleError','request','upsertAIChatRating','startConversation','/conversations/','/documents/','code','continue','traceId','items','deleteDocument','AIConnector','callSystemReview','_getStreamReader','name','upsertCustomAIActionRating','executeCustomAction','TRANSLATE','signal','push','/files/','reset','_sendApiRequest','statusText','12512tMORQU','_apiUrl','ai.serviceUrl','modificationId','getModels','_token','/reviews/custom/calls','IMPROVE_WRITING','make-tone-casual','/documents','totalCount','uploadFile','/actions/custom/calls/','ai-missing-token','application/json','isPremiumPlugin','callCustomReview','/actions/custom/calls','search','translate','/messages','/calls/','length','improve-writing'];_0x52cd=function(){return _0x195e44;};return _0x52cd();}export var AIActionsNames;!function(_0x1507c1){const _0x4344eb=_0x45ba;_0x1507c1[_0x4344eb(0x18f)]=_0x4344eb(0x1c5),_0x1507c1[_0x4344eb(0x18d)]=_0x4344eb(0x1b1),_0x1507c1[_0x4344eb(0x1dd)]=_0x4344eb(0x1ed),_0x1507c1[_0x4344eb(0x1b6)]=_0x4344eb(0x15f),_0x1507c1[_0x4344eb(0x187)]=_0x4344eb(0x171),_0x1507c1[_0x4344eb(0x16f)]=_0x4344eb(0x1de),_0x1507c1[_0x4344eb(0x175)]=_0x4344eb(0x168),_0x1507c1[_0x4344eb(0x1cf)]=_0x4344eb(0x1e9);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x267803{[_0x999e19(0x1d7)];[_0x999e19(0x1db)];[_0x999e19(0x173)];static get[_0x999e19(0x1a7)](){const _0x40a448=_0x999e19;return[_0x40a448(0x16a)];}static get[_0x999e19(0x19a)](){const _0x3cb61d=_0x999e19;return _0x3cb61d(0x1c9);}static get[_0x999e19(0x17b)](){return!0x0;}static get[_0x999e19(0x1e5)](){return!0x0;}constructor(_0x526c1c){const _0x404b2f=_0x999e19;super(_0x526c1c),this[_0x404b2f(0x167)][_0x404b2f(0x186)][_0x404b2f(0x195)](_0x404b2f(0x1d8),_0x404b2f(0x172)),this[_0x404b2f(0x1d7)]=this[_0x404b2f(0x167)][_0x404b2f(0x186)][_0x404b2f(0x188)](_0x404b2f(0x1d8)),this[_0x404b2f(0x1db)]=null,this[_0x404b2f(0x173)]=new TextDecoder();}[_0x999e19(0x169)](){const _0x358109=_0x999e19,_0x4d58c5=this[_0x358109(0x167)][_0x358109(0x17c)][_0x358109(0x188)](_0x358109(0x16a));if(!_0x4d58c5[_0x358109(0x19f)])throw new _0x13c841(_0x358109(0x1e3),this);this[_0x358109(0x1db)]=_0x4d58c5[_0x358109(0x19f)];}[_0x999e19(0x1c1)](_0x4a8935,_0x39e632){const _0x2f33b3=_0x999e19,_0x1d624f=this[_0x2f33b3(0x1d4)](_0x2f33b3(0x1aa),_0x2f33b3(0x1b0),{'id':_0x4a8935,'group':_0x39e632});return{'getConversation':async()=>(await _0x1d624f[_0x2f33b3(0x1bf)])[_0x2f33b3(0x181)](),'abortController':_0x1d624f[_0x2f33b3(0x1ba)]};}[_0x999e19(0x194)]({message:_0xaae7a9,conversationId:_0x133b9e,parts:_0x1d69a9,capabilities:_0x34073c,model:_0x374672,quickActionData:_0x5904f9}){const _0x482af1=_0x999e19,_0x484560={..._0x5904f9&&{'quickActionData':_0x5904f9}},_0x394cb1={'prompt':_0xaae7a9,'content':_0x1d69a9,'model':_0x374672,..._0x34073c&&{'capabilities':_0x34073c},...Object[_0x482af1(0x1b3)](_0x484560)[_0x482af1(0x1ec)]>0x0&&{'attributes':_0x484560}},_0x4338e9=this[_0x482af1(0x1d4)](_0x482af1(0x1c2)+_0x133b9e+_0x482af1(0x1ea),_0x482af1(0x1b0),_0x394cb1);return{'getStream':async()=>{const _0x342ec1=_0x482af1,_0x270e3e=(await _0x4338e9[_0x342ec1(0x1bf)])[_0x342ec1(0x1b5)];return this[_0x342ec1(0x1cb)](_0x270e3e);},'abortController':_0x4338e9[_0x482af1(0x1ba)]};}[_0x999e19(0x1ce)]({content:_0x27d8b4,message:_0x3787e5,model:_0xd25eb1,outputFormat:_0x412f79}){const _0x2539c7=_0x999e19,_0x491d4d={'content':[{'type':_0x2539c7(0x179),'content':_0x27d8b4}],'prompt':_0x3787e5,'model':_0xd25eb1,'outputFormat':_0x412f79},_0x5a1f32=this[_0x2539c7(0x1d4)](_0x2539c7(0x1e7),_0x2539c7(0x1b0),_0x491d4d);return{'getStream':async()=>{const _0x4984f8=_0x2539c7,_0x907cb6=(await _0x5a1f32[_0x4984f8(0x1bf)])[_0x4984f8(0x1b5)];return this[_0x4984f8(0x1cb)](_0x907cb6);},'abortController':_0x5a1f32[_0x2539c7(0x1ba)]};}[_0x999e19(0x196)]({actionName:_0x5cce86,content:_0xce160f,args:_0x5e1aa2}){const _0x1d87d8=_0x999e19,_0x58828a={'content':[{'type':_0x1d87d8(0x179),'content':_0xce160f}],'args':_0x5e1aa2},_0x55d986=this[_0x1d87d8(0x1d4)](_0x1d87d8(0x185)+_0x5cce86+_0x1d87d8(0x197),_0x1d87d8(0x1b0),_0x58828a);return{'getStream':async()=>{const _0x97627c=_0x1d87d8,_0x5d628e=(await _0x55d986[_0x97627c(0x1bf)])[_0x97627c(0x1b5)];return this[_0x97627c(0x1cb)](_0x5d628e);},'abortController':_0x55d986[_0x1d87d8(0x1ba)]};}[_0x999e19(0x1e1)](_0x1345f1,_0x1089fe,_0xac7901){const _0x709ed1=_0x999e19,_0x8efb47=new FormData();_0x8efb47[_0x709ed1(0x16e)](_0x709ed1(0x1bc),_0x1089fe,_0x1089fe[_0x709ed1(0x1cc)]),_0xac7901&&_0x8efb47[_0x709ed1(0x16e)](_0x709ed1(0x166),JSON[_0x709ed1(0x191)](_0xac7901));const _0x387fac=this[_0x709ed1(0x1d4)](_0x709ed1(0x1c2)+_0x1345f1+_0x709ed1(0x17d),_0x709ed1(0x1b0),_0x8efb47);return{'getId':async()=>(await _0x387fac[_0x709ed1(0x1bf)])[_0x709ed1(0x181)](),'abortController':_0x387fac[_0x709ed1(0x1ba)]};}[_0x999e19(0x176)](_0x3e4eee,_0x2ec3c6){const _0x5ebcca=_0x999e19,_0x1de204=this[_0x5ebcca(0x1d4)](_0x5ebcca(0x1c2)+_0x3e4eee+_0x5ebcca(0x1c3)+_0x2ec3c6,_0x5ebcca(0x1a0));return{'getDocument':async()=>(await _0x1de204[_0x5ebcca(0x1bf)])[_0x5ebcca(0x181)](),'abortController':_0x1de204[_0x5ebcca(0x1ba)]};}[_0x999e19(0x163)](_0xa20387,_0x5c3e59,_0x3e51ba){const _0x578de7=_0x999e19,_0x1f15dc={'content':_0x5c3e59};_0x3e51ba&&(_0x1f15dc[_0x578de7(0x166)]=_0x3e51ba);const _0x9ea131=this[_0x578de7(0x1d4)](_0x578de7(0x1c2)+_0xa20387+_0x578de7(0x1df),_0x578de7(0x1b0),_0x1f15dc);return{'getId':async()=>(await _0x9ea131[_0x578de7(0x1bf)])[_0x578de7(0x181)](),'abortController':_0x9ea131[_0x578de7(0x1ba)]};}[_0x999e19(0x18c)](_0x3c48b4,_0x1da85c){const _0x404355=_0x999e19,_0x1a2942=new URLSearchParams();_0x1a2942[_0x404355(0x16e)](_0x404355(0x1ae),_0x404355(0x1ac)),_0x1a2942[_0x404355(0x16e)](_0x404355(0x174),_0x404355(0x19b)),_0x1a2942[_0x404355(0x16e)](_0x404355(0x17a),_0x3c48b4),_0x1da85c&&_0x1a2942[_0x404355(0x16e)](_0x404355(0x1e8),_0x1da85c);const _0x42495c=this[_0x404355(0x1d4)](_0x404355(0x1a8)+_0x1a2942[_0x404355(0x190)](),_0x404355(0x1a0));return{'getConversations':async()=>{const _0x28096c=_0x404355,_0x39b727=await _0x42495c[_0x28096c(0x1bf)];return(await _0x39b727[_0x28096c(0x181)]())[_0x28096c(0x1c7)];},'abortController':_0x42495c[_0x404355(0x1ba)]};}[_0x999e19(0x193)](_0xdca692){const _0x45d2c3=_0x999e19,_0x18f2ee=this[_0x45d2c3(0x1d4)](_0x45d2c3(0x1c2)+_0xdca692,_0x45d2c3(0x165));return{'execute':async()=>{const _0x29b535=_0x45d2c3;await _0x18f2ee[_0x29b535(0x1bf)];},'abortController':_0x18f2ee[_0x45d2c3(0x1ba)]};}[_0x999e19(0x1b2)](_0xec11a3,_0x4ff0c2){const _0x4aebd4=_0x999e19,_0x19908c=this[_0x4aebd4(0x1d4)](_0x4aebd4(0x1c2)+_0xec11a3,_0x4aebd4(0x1af),_0x4ff0c2);return{'getResult':async()=>(await _0x19908c[_0x4aebd4(0x1bf)],_0x4ff0c2),'abortController':_0x19908c[_0x4aebd4(0x1ba)]};}[_0x999e19(0x15d)](_0x43763b){const _0x587b98=_0x999e19,_0x16b3c4=this[_0x587b98(0x1d4)](_0x587b98(0x1c2)+_0x43763b,_0x587b98(0x1a0));return{'getConversation':async()=>(await _0x16b3c4[_0x587b98(0x1bf)])[_0x587b98(0x181)](),'abortController':_0x16b3c4[_0x587b98(0x1ba)]};}[_0x999e19(0x162)](_0x5538ef){const _0x5bfcb4=_0x999e19,_0x35b416=this[_0x5bfcb4(0x1d4)](_0x5bfcb4(0x1c2)+_0x5538ef+_0x5bfcb4(0x1ea),_0x5bfcb4(0x1a0));return{'getMessages':async()=>{const _0x43a775=_0x5bfcb4,_0x1969f1=await _0x35b416[_0x43a775(0x1bf)];return(await _0x1969f1[_0x43a775(0x181)]())[_0x43a775(0x1c7)];},'abortController':_0x35b416[_0x5bfcb4(0x1ba)]};}[_0x999e19(0x17e)](_0x2932fb,_0x2e35f8,_0x18638a){const _0x397e6a=_0x999e19,_0x5cfef5=this[_0x397e6a(0x1d4)](_0x397e6a(0x1c2)+_0x2932fb+_0x397e6a(0x18e),_0x397e6a(0x1b0),{'url':_0x2e35f8,'attributes':_0x18638a});return{'getId':async()=>(await _0x5cfef5[_0x397e6a(0x1bf)])[_0x397e6a(0x181)](),'abortController':_0x5cfef5[_0x397e6a(0x1ba)]};}[_0x999e19(0x1da)](_0x37a4a2='en'){const _0x4f764f=_0x999e19,_0x1cae19=new URLSearchParams();_0x1cae19[_0x4f764f(0x16e)](_0x4f764f(0x1b9),_0x37a4a2);const _0x461940=_0x4f764f(0x1a3)+_0x1cae19[_0x4f764f(0x190)](),_0x4d3e41=this[_0x4f764f(0x1d4)](_0x461940,_0x4f764f(0x1a0));return{'list':async()=>await(await _0x4d3e41[_0x4f764f(0x1bf)])[_0x4f764f(0x181)](),'abortController':_0x4d3e41[_0x4f764f(0x1ba)]};}[_0x999e19(0x1a9)](_0x19024d,_0x4cb4e2){const _0x23d999=_0x999e19,_0x2cf8ee=this[_0x23d999(0x1d4)](_0x23d999(0x1c2)+_0x19024d+_0x23d999(0x1d2)+_0x4cb4e2,_0x23d999(0x165));return{'execute':async()=>{const _0x578572=_0x23d999;await _0x2cf8ee[_0x578572(0x1bf)];},'abortController':_0x2cf8ee[_0x23d999(0x1ba)]};}[_0x999e19(0x1c8)](_0x5100c6,_0x9afb6d){const _0x5e0607=_0x999e19,_0x25219e=this[_0x5e0607(0x1d4)](_0x5e0607(0x1c2)+_0x5100c6+_0x5e0607(0x1c3)+_0x9afb6d,_0x5e0607(0x165));return{'execute':async()=>{const _0x1be8c2=_0x5e0607;await _0x25219e[_0x1be8c2(0x1bf)];},'abortController':_0x25219e[_0x5e0607(0x1ba)]};}[_0x999e19(0x17f)](_0x16858,_0x4b82e0){const _0x44fea=_0x999e19,_0x1c2875=this[_0x44fea(0x1d4)](_0x44fea(0x1c2)+_0x16858+_0x44fea(0x1a1)+_0x4b82e0,_0x44fea(0x165));return{'execute':async()=>{const _0x52472f=_0x44fea;await _0x1c2875[_0x52472f(0x1bf)];},'abortController':_0x1c2875[_0x44fea(0x1ba)]};}[_0x999e19(0x1ca)]({reviewName:_0x4da533,content:_0x5e26a5,args:_0x39dfcb}){const _0x1612c7=_0x999e19,_0x3c3674=this[_0x1612c7(0x1d4)](_0x1612c7(0x183)+_0x4da533+_0x1612c7(0x197),_0x1612c7(0x1b0),{'content':[{'type':_0x1612c7(0x179),'content':_0x5e26a5}],'args':_0x39dfcb});return{'getStream':async()=>{const _0x216410=_0x1612c7,_0x22fa5f=(await _0x3c3674[_0x216410(0x1bf)])[_0x216410(0x1b5)];return this[_0x216410(0x1cb)](_0x22fa5f);},'abortController':_0x3c3674[_0x1612c7(0x1ba)]};}[_0x999e19(0x1e6)]({content:_0x21bc01,prompt:_0x116dab,model:_0x1f4954}){const _0x4e5676=_0x999e19,_0x4b15e2=this[_0x4e5676(0x1d4)](_0x4e5676(0x1dc),_0x4e5676(0x1b0),{'content':[{'type':_0x4e5676(0x179),'content':_0x21bc01}],'prompt':_0x116dab,'model':_0x1f4954});return{'getStream':async()=>{const _0x1b5f1a=_0x4e5676,_0x4d97b8=(await _0x4b15e2[_0x1b5f1a(0x1bf)])[_0x1b5f1a(0x1b5)];return this[_0x1b5f1a(0x1cb)](_0x4d97b8);},'abortController':_0x4b15e2[_0x4e5676(0x1ba)]};}[_0x999e19(0x1c0)](_0xa48a06,_0x362375,_0x2b99f0){const _0x273f37=_0x999e19,_0x4ece05=this[_0x273f37(0x1d4)](_0x273f37(0x1c2)+_0xa48a06+_0x273f37(0x1ad)+_0x362375+_0x273f37(0x1a4),_0x273f37(0x182),{'positiveCount':_0x2b99f0[_0x273f37(0x19e)],'totalCount':_0x2b99f0[_0x273f37(0x1e0)],'modificationId':_0x2b99f0[_0x273f37(0x1d9)]});return{'execute':async()=>{const _0x5ef030=_0x273f37;await _0x4ece05[_0x5ef030(0x1bf)];},'abortController':_0x4ece05[_0x273f37(0x1ba)]};}[_0x999e19(0x1ab)](_0x3cd72e,_0x18f03f,_0x1f59d6){const _0x4a1b6f=_0x999e19,_0x50e197=this[_0x4a1b6f(0x1d4)](_0x4a1b6f(0x185)+_0x3cd72e+_0x4a1b6f(0x1eb)+_0x18f03f+_0x4a1b6f(0x1a4),_0x4a1b6f(0x182),{'positiveCount':_0x1f59d6[_0x4a1b6f(0x19e)],'totalCount':_0x1f59d6[_0x4a1b6f(0x1e0)]});return{'execute':async()=>{const _0x5f42c5=_0x4a1b6f;await _0x50e197[_0x5f42c5(0x1bf)];},'abortController':_0x50e197[_0x4a1b6f(0x1ba)]};}[_0x999e19(0x1cd)](_0x6dce0f,_0x5a60ec){const _0x498e2f=_0x999e19,_0x3406ae=this[_0x498e2f(0x1d4)](_0x498e2f(0x1e2)+_0x6dce0f+_0x498e2f(0x1a4),_0x498e2f(0x182),{'positiveCount':_0x5a60ec[_0x498e2f(0x19e)],'totalCount':_0x5a60ec[_0x498e2f(0x1e0)]});return{'execute':async()=>{const _0x3ff520=_0x498e2f;await _0x3406ae[_0x3ff520(0x1bf)];},'abortController':_0x3406ae[_0x498e2f(0x1ba)]};}[_0x999e19(0x1a6)](_0x2ce812,_0x1efe72,_0x369639,_0x5da46f){const _0x212197=_0x999e19,_0x319d30=this[_0x212197(0x1d4)](_0x212197(0x183)+_0x2ce812+_0x212197(0x1eb)+_0x1efe72+_0x212197(0x1a4),_0x212197(0x182),{'positiveCount':_0x369639[_0x212197(0x19e)],'totalCount':_0x369639[_0x212197(0x1e0)],'dataId':_0x5da46f});return{'execute':async()=>{const _0x51d011=_0x212197;await _0x319d30[_0x51d011(0x1bf)];},'abortController':_0x319d30[_0x212197(0x1ba)]};}[_0x999e19(0x160)](_0xeacabd,_0x35ea33,_0x3dd2f8){const _0x2bf5c1=_0x999e19,_0x54f489=this[_0x2bf5c1(0x1d4)](_0x2bf5c1(0x1bd)+_0xeacabd+_0x2bf5c1(0x1a4),_0x2bf5c1(0x182),{'positiveCount':_0x35ea33[_0x2bf5c1(0x19e)],'totalCount':_0x35ea33[_0x2bf5c1(0x1e0)],'dataId':_0x3dd2f8});return{'execute':async()=>{const _0x6be3b3=_0x2bf5c1;await _0x54f489[_0x6be3b3(0x1bf)];},'abortController':_0x54f489[_0x2bf5c1(0x1ba)]};}[_0x999e19(0x1d4)](_0x394025,_0x43ccd7,_0x5bc19d){const _0x20bb28=_0x999e19,_0xe8cc5=new AbortController(),_0x599cb3=_0x5bc19d instanceof FormData,_0x586e89={'Authorization':_0x20bb28(0x16c)+this[_0x20bb28(0x1db)]?.[_0x20bb28(0x1f0)]};_0x5bc19d&&!_0x599cb3&&(_0x586e89[_0x20bb28(0x198)]=_0x20bb28(0x1e4));const _0x32b2c3={'method':_0x43ccd7,'headers':_0x586e89,'signal':_0xe8cc5[_0x20bb28(0x1d0)]};return _0x5bc19d&&(_0x32b2c3[_0x20bb28(0x1b5)]=_0x599cb3?_0x5bc19d:JSON[_0x20bb28(0x191)](_0x5bc19d)),{'request':fetch(''+this[_0x20bb28(0x1d7)]+_0x394025,_0x32b2c3)[_0x20bb28(0x189)](_0xfdbd3a=>{const _0x3a60b7=_0x20bb28;this[_0x3a60b7(0x1be)](_0xfdbd3a);})[_0x20bb28(0x184)](_0xec1756=>_0xec1756['ok']?_0xec1756:_0xec1756[_0x20bb28(0x181)]()[_0x20bb28(0x184)](_0x44f358=>{const _0x527ab8=_0x20bb28;throw{'url':this[_0x527ab8(0x1d7)],'path':_0x394025,'method':_0x43ccd7,'body':_0x5bc19d,'status':(_0xec1756||{})[_0x527ab8(0x16b)],'statusText':(_0xec1756||{})[_0x527ab8(0x1d5)],'code':_0x44f358[_0x527ab8(0x1c4)],'message':_0x44f358[_0x527ab8(0x1a2)],'traceId':_0x44f358[_0x527ab8(0x1c6)]};})),'abortController':_0xe8cc5};}async*[_0x999e19(0x1cb)](_0x1ecf42){const _0x3761d0=_0x999e19,_0x14379a=[],_0x1b8e9f=_0x1ecf42[_0x3761d0(0x15c)](),_0x3ce99b=_0x42e2dc({'onError':_0x2ab245=>{const _0x103d05=_0x3761d0;this[_0x103d05(0x1be)](_0x2ab245);},'onEvent':_0x240ceb=>{const _0xca1376=_0x3761d0;_0x240ceb[_0xca1376(0x1ee)]=JSON[_0xca1376(0x18b)](_0x240ceb[_0xca1376(0x1ee)]),_0x14379a[_0xca1376(0x1d1)](_0x240ceb);}});try{let _0x100a88=!0x1;for(;!_0x100a88;){const {done:_0x102e4c,value:_0xdfc6a3}=await _0x1b8e9f[_0x3761d0(0x16d)]();_0x102e4c&&(_0x100a88=!0x0),_0x3ce99b[_0x3761d0(0x170)](this[_0x3761d0(0x173)][_0x3761d0(0x192)](_0xdfc6a3,{'stream':!0x0})),yield*_0x14379a,_0x14379a[_0x3761d0(0x1ec)]=0x0;}}catch(_0x43f139){this[_0x3761d0(0x1be)](_0x43f139);}finally{_0x1b8e9f[_0x3761d0(0x161)](),_0x3ce99b[_0x3761d0(0x1d3)]();}}[_0x999e19(0x1be)](_0x10068b){const _0x1ecfcf=_0x999e19;if(_0x10068b instanceof _0x13c841)throw _0x10068b;if(_0x10068b instanceof Error&&_0x1ecfcf(0x180)===_0x10068b[_0x1ecfcf(0x1cc)])throw new _0x13c841(_0x1ecfcf(0x177),this,{'originalError':_0x10068b});throw new _0x13c841(_0x1ecfcf(0x18a),this,{'originalError':_0x10068b});}}
23
+ const _0x47fb91=_0x2650;(function(_0x438aaa,_0x598610){const _0x16535c=_0x2650,_0x5406df=_0x438aaa();while(!![]){try{const _0x5a2795=-parseInt(_0x16535c(0x1d5))/0x1*(-parseInt(_0x16535c(0x1e3))/0x2)+parseInt(_0x16535c(0x239))/0x3+parseInt(_0x16535c(0x253))/0x4*(-parseInt(_0x16535c(0x251))/0x5)+parseInt(_0x16535c(0x200))/0x6*(-parseInt(_0x16535c(0x259))/0x7)+parseInt(_0x16535c(0x22a))/0x8+parseInt(_0x16535c(0x20b))/0x9+-parseInt(_0x16535c(0x1de))/0xa;if(_0x5a2795===_0x598610)break;else _0x5406df['push'](_0x5406df['shift']());}catch(_0x3cad55){_0x5406df['push'](_0x5406df['shift']());}}}(_0x25d4,0x8074f));import{createParser as _0x4434a8}from'eventsource-parser';import{ContextPlugin as _0x506264}from'ckeditor5/src/core.js';function _0x25d4(){const _0x2d376a=['/messages/','json','stringify','MAKE_TONE_CASUAL','/web-resources','_sendApiRequest','deleteDocument','1009495ExpncI','upsertAIActionRating','8ibUGIs','ai.serviceUrl','application/json','make-tone-formal','ai-request-aborted','/messages','4823ilBZbm','statusText','limit','AbortError','continue','then','fetchConversationMessages','POST','PUT','token','100','getReader','updateConversation','releaseLock','27226PkeZWu','/actions/system/','feed','length','/documents/','excludeEmpty','group','executeAction','positiveCount','22604280yqCldV','items','fix-grammar','/conversations?','push','74lMufIe','/conversations','attributes','context','/files/','Bearer\x20','_handleError','read','uploadFile','keys','isPremiumPlugin','/ratings','/calls/','modificationId','/models/1?','totalCount','search','catch','deleteConversation','/reviews/system/','make-tone-casual','data','CloudServices','fetchConversation','uploadUrl','/files','_getStreamReader','pluginName','deleteWebResource','1770ttmRaX','/web-resources/','callSystemReview','CONTINUE','init','/documents','/calls','/actions/custom/calls','get','config','FIX_GRAMMAR','7293042FLaaiE','name','fetchConversations','message','body','callCustomReview','isOfficialPlugin','ai-missing-token','/reviews/custom/calls/','decode','/actions/custom/calls/','text','MAKE_LONGER','MAKE_SHORTER','fetchDocument','reset','toString','traceId','getModels','file','/conversations/','IMPROVE_WRITING','signal','GET','/reviews/custom/calls','AIConnector','make-longer','uploadDocument','_apiUrl','plugins','_token','7648872cZgXNF','upsertCustomAIReviewRating','_decoder','make-shorter','append','PATCH','executeCustomAction','parse','queryAssistant','ai-request-failed','upsertAIChatRating','request','abortController','code','TRANSLATE','1859493SzjpOS','define','true','Content-Type','DELETE','MAKE_TONE_FORMAL','status','https://ai.cke-cs.com/v1','translate','deleteFile','upsertCustomAIActionRating','requires','startConversation','value','language','upsertAIReviewRating','improve-writing'];_0x25d4=function(){return _0x2d376a;};return _0x25d4();}import{CKEditorError as _0x31869f}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x4dc2ab){const _0x2d7435=_0x2650;_0x4dc2ab[_0x2d7435(0x203)]=_0x2d7435(0x25d),_0x4dc2ab[_0x2d7435(0x20a)]=_0x2d7435(0x1e0),_0x4dc2ab[_0x2d7435(0x220)]=_0x2d7435(0x249),_0x4dc2ab[_0x2d7435(0x217)]=_0x2d7435(0x225),_0x4dc2ab[_0x2d7435(0x218)]=_0x2d7435(0x22d),_0x4dc2ab[_0x2d7435(0x24d)]=_0x2d7435(0x1f7),_0x4dc2ab[_0x2d7435(0x23e)]=_0x2d7435(0x256),_0x4dc2ab[_0x2d7435(0x238)]=_0x2d7435(0x241);}(AIActionsNames||(AIActionsNames={}));function _0x2650(_0x1c9edd,_0x11a73e){const _0x25d42a=_0x25d4();return _0x2650=function(_0x265007,_0x4a96c8){_0x265007=_0x265007-0x1d4;let _0x1329d7=_0x25d42a[_0x265007];return _0x1329d7;},_0x2650(_0x1c9edd,_0x11a73e);}export class AIConnector extends _0x506264{[_0x47fb91(0x227)];[_0x47fb91(0x229)];[_0x47fb91(0x22c)];static get[_0x47fb91(0x244)](){const _0x3f5631=_0x47fb91;return[_0x3f5631(0x1f9)];}static get[_0x47fb91(0x1fe)](){const _0x1b7feb=_0x47fb91;return _0x1b7feb(0x224);}static get[_0x47fb91(0x211)](){return!0x0;}static get[_0x47fb91(0x1ed)](){return!0x0;}constructor(_0x6df2e7){const _0x53410d=_0x47fb91;super(_0x6df2e7),this[_0x53410d(0x1e6)][_0x53410d(0x209)][_0x53410d(0x23a)](_0x53410d(0x254),_0x53410d(0x240)),this[_0x53410d(0x227)]=this[_0x53410d(0x1e6)][_0x53410d(0x209)][_0x53410d(0x208)](_0x53410d(0x254)),this[_0x53410d(0x229)]=null,this[_0x53410d(0x22c)]=new TextDecoder();}[_0x47fb91(0x204)](){const _0x97589a=_0x47fb91,_0x592c41=this[_0x97589a(0x1e6)][_0x97589a(0x228)][_0x97589a(0x208)](_0x97589a(0x1f9));if(!_0x592c41[_0x97589a(0x262)])throw new _0x31869f(_0x97589a(0x212),this);this[_0x97589a(0x229)]=_0x592c41[_0x97589a(0x262)];}[_0x47fb91(0x245)](_0x365241,_0x13aff1){const _0x379ba9=_0x47fb91,_0x4ee629=this[_0x379ba9(0x24f)](_0x379ba9(0x1e4),_0x379ba9(0x260),{'id':_0x365241,'group':_0x13aff1});return{'getConversation':async()=>(await _0x4ee629[_0x379ba9(0x235)])[_0x379ba9(0x24b)](),'abortController':_0x4ee629[_0x379ba9(0x236)]};}[_0x47fb91(0x232)]({message:_0x587f47,conversationId:_0x477a4c,parts:_0x4a25e5,capabilities:_0x47bf56,model:_0x4266c4,quickActionData:_0x367ec1}){const _0x455235=_0x47fb91,_0x2a3da5={..._0x367ec1&&{'quickActionData':_0x367ec1}},_0x440150={'prompt':_0x587f47,'content':_0x4a25e5,'model':_0x4266c4,..._0x47bf56&&{'capabilities':_0x47bf56},...Object[_0x455235(0x1ec)](_0x2a3da5)[_0x455235(0x1d8)]>0x0&&{'attributes':_0x2a3da5}},_0x22ffcf=this[_0x455235(0x24f)](_0x455235(0x21f)+_0x477a4c+_0x455235(0x258),_0x455235(0x260),_0x440150);return{'getStream':async()=>{const _0x553385=_0x455235,_0x425cd7=(await _0x22ffcf[_0x553385(0x235)])[_0x553385(0x20f)];return this[_0x553385(0x1fd)](_0x425cd7);},'abortController':_0x22ffcf[_0x455235(0x236)]};}[_0x47fb91(0x230)]({content:_0x3c1050,message:_0x574495,model:_0x36673e,outputFormat:_0x5aaa71}){const _0x1abdc0=_0x47fb91,_0x39cc2f={'content':[{'type':_0x1abdc0(0x216),'content':_0x3c1050}],'prompt':_0x574495,'model':_0x36673e,'outputFormat':_0x5aaa71},_0x4ebb1d=this[_0x1abdc0(0x24f)](_0x1abdc0(0x207),_0x1abdc0(0x260),_0x39cc2f);return{'getStream':async()=>{const _0x41e953=_0x1abdc0,_0x470f6a=(await _0x4ebb1d[_0x41e953(0x235)])[_0x41e953(0x20f)];return this[_0x41e953(0x1fd)](_0x470f6a);},'abortController':_0x4ebb1d[_0x1abdc0(0x236)]};}[_0x47fb91(0x1dc)]({actionName:_0x524078,content:_0x1949df,args:_0x18fe22}){const _0x583899=_0x47fb91,_0x66ce49={'content':[{'type':_0x583899(0x216),'content':_0x1949df}],'args':_0x18fe22},_0x376c57=this[_0x583899(0x24f)](_0x583899(0x1d6)+_0x524078+_0x583899(0x206),_0x583899(0x260),_0x66ce49);return{'getStream':async()=>{const _0x573dab=_0x583899,_0x4b0445=(await _0x376c57[_0x573dab(0x235)])[_0x573dab(0x20f)];return this[_0x573dab(0x1fd)](_0x4b0445);},'abortController':_0x376c57[_0x583899(0x236)]};}[_0x47fb91(0x1eb)](_0x193e04,_0x2cd3ff,_0x248789){const _0x30b950=_0x47fb91,_0x324df2=new FormData();_0x324df2[_0x30b950(0x22e)](_0x30b950(0x21e),_0x2cd3ff,_0x2cd3ff[_0x30b950(0x20c)]),_0x248789&&_0x324df2[_0x30b950(0x22e)](_0x30b950(0x1e5),JSON[_0x30b950(0x24c)](_0x248789));const _0x32ce09=this[_0x30b950(0x24f)](_0x30b950(0x21f)+_0x193e04+_0x30b950(0x1fc),_0x30b950(0x260),_0x324df2);return{'getId':async()=>(await _0x32ce09[_0x30b950(0x235)])[_0x30b950(0x24b)](),'abortController':_0x32ce09[_0x30b950(0x236)]};}[_0x47fb91(0x219)](_0x1556ca,_0x57008f){const _0x275dfc=_0x47fb91,_0x3d567e=this[_0x275dfc(0x24f)](_0x275dfc(0x21f)+_0x1556ca+_0x275dfc(0x1d9)+_0x57008f,_0x275dfc(0x222));return{'getDocument':async()=>(await _0x3d567e[_0x275dfc(0x235)])[_0x275dfc(0x24b)](),'abortController':_0x3d567e[_0x275dfc(0x236)]};}[_0x47fb91(0x226)](_0x16001b,_0x2139ae,_0xf90be9){const _0x49c5e2=_0x47fb91,_0x1ce7c6={'content':_0x2139ae};_0xf90be9&&(_0x1ce7c6[_0x49c5e2(0x1e5)]=_0xf90be9);const _0x4d705d=this[_0x49c5e2(0x24f)](_0x49c5e2(0x21f)+_0x16001b+_0x49c5e2(0x205),_0x49c5e2(0x260),_0x1ce7c6);return{'getId':async()=>(await _0x4d705d[_0x49c5e2(0x235)])[_0x49c5e2(0x24b)](),'abortController':_0x4d705d[_0x49c5e2(0x236)]};}[_0x47fb91(0x20d)](_0x31ffcf,_0x5548b9){const _0x211421=_0x47fb91,_0x1b2834=new URLSearchParams();_0x1b2834[_0x211421(0x22e)](_0x211421(0x1da),_0x211421(0x23b)),_0x1b2834[_0x211421(0x22e)](_0x211421(0x25b),_0x211421(0x263)),_0x1b2834[_0x211421(0x22e)](_0x211421(0x1db),_0x31ffcf),_0x5548b9&&_0x1b2834[_0x211421(0x22e)](_0x211421(0x1f3),_0x5548b9);const _0x3199c3=this[_0x211421(0x24f)](_0x211421(0x1e1)+_0x1b2834[_0x211421(0x21b)](),_0x211421(0x222));return{'getConversations':async()=>{const _0x4976c4=_0x211421,_0x55efdc=await _0x3199c3[_0x4976c4(0x235)];return(await _0x55efdc[_0x4976c4(0x24b)]())[_0x4976c4(0x1df)];},'abortController':_0x3199c3[_0x211421(0x236)]};}[_0x47fb91(0x1f5)](_0x1468c1){const _0xda8c3c=_0x47fb91,_0x4b7191=this[_0xda8c3c(0x24f)](_0xda8c3c(0x21f)+_0x1468c1,_0xda8c3c(0x23d));return{'execute':async()=>{const _0x1cd4ba=_0xda8c3c;await _0x4b7191[_0x1cd4ba(0x235)];},'abortController':_0x4b7191[_0xda8c3c(0x236)]};}[_0x47fb91(0x265)](_0x2a7f2f,_0x562809){const _0x1841db=_0x47fb91,_0x103f0f=this[_0x1841db(0x24f)](_0x1841db(0x21f)+_0x2a7f2f,_0x1841db(0x22f),_0x562809);return{'getResult':async()=>(await _0x103f0f[_0x1841db(0x235)],_0x562809),'abortController':_0x103f0f[_0x1841db(0x236)]};}[_0x47fb91(0x1fa)](_0x32b8d1){const _0x2c7976=_0x47fb91,_0x359632=this[_0x2c7976(0x24f)](_0x2c7976(0x21f)+_0x32b8d1,_0x2c7976(0x222));return{'getConversation':async()=>(await _0x359632[_0x2c7976(0x235)])[_0x2c7976(0x24b)](),'abortController':_0x359632[_0x2c7976(0x236)]};}[_0x47fb91(0x25f)](_0x237e13){const _0x13c22b=_0x47fb91,_0x2bb493=this[_0x13c22b(0x24f)](_0x13c22b(0x21f)+_0x237e13+_0x13c22b(0x258),_0x13c22b(0x222));return{'getMessages':async()=>{const _0x4206f8=_0x13c22b,_0x31f1f5=await _0x2bb493[_0x4206f8(0x235)];return(await _0x31f1f5[_0x4206f8(0x24b)]())[_0x4206f8(0x1df)];},'abortController':_0x2bb493[_0x13c22b(0x236)]};}[_0x47fb91(0x1fb)](_0x41bf1c,_0x44d16a,_0x3b0081){const _0x4bcad3=_0x47fb91,_0xd5e7d8=this[_0x4bcad3(0x24f)](_0x4bcad3(0x21f)+_0x41bf1c+_0x4bcad3(0x24e),_0x4bcad3(0x260),{'url':_0x44d16a,'attributes':_0x3b0081});return{'getId':async()=>(await _0xd5e7d8[_0x4bcad3(0x235)])[_0x4bcad3(0x24b)](),'abortController':_0xd5e7d8[_0x4bcad3(0x236)]};}[_0x47fb91(0x21d)](_0x3aa6c2='en'){const _0x244b4f=_0x47fb91,_0x572245=new URLSearchParams();_0x572245[_0x244b4f(0x22e)](_0x244b4f(0x247),_0x3aa6c2);const _0x374531=_0x244b4f(0x1f1)+_0x572245[_0x244b4f(0x21b)](),_0x78703a=this[_0x244b4f(0x24f)](_0x374531,_0x244b4f(0x222));return{'list':async()=>await(await _0x78703a[_0x244b4f(0x235)])[_0x244b4f(0x24b)](),'abortController':_0x78703a[_0x244b4f(0x236)]};}[_0x47fb91(0x242)](_0x4bebe5,_0x1225ce){const _0x1c56c8=_0x47fb91,_0x176c74=this[_0x1c56c8(0x24f)](_0x1c56c8(0x21f)+_0x4bebe5+_0x1c56c8(0x1e7)+_0x1225ce,_0x1c56c8(0x23d));return{'execute':async()=>{const _0x42062c=_0x1c56c8;await _0x176c74[_0x42062c(0x235)];},'abortController':_0x176c74[_0x1c56c8(0x236)]};}[_0x47fb91(0x250)](_0x1ec6bb,_0x1ad675){const _0x131619=_0x47fb91,_0x5cd82f=this[_0x131619(0x24f)](_0x131619(0x21f)+_0x1ec6bb+_0x131619(0x1d9)+_0x1ad675,_0x131619(0x23d));return{'execute':async()=>{const _0x48555e=_0x131619;await _0x5cd82f[_0x48555e(0x235)];},'abortController':_0x5cd82f[_0x131619(0x236)]};}[_0x47fb91(0x1ff)](_0x507c06,_0x794d3c){const _0x5273f8=_0x47fb91,_0x1b5d9e=this[_0x5273f8(0x24f)](_0x5273f8(0x21f)+_0x507c06+_0x5273f8(0x201)+_0x794d3c,_0x5273f8(0x23d));return{'execute':async()=>{const _0x2d6630=_0x5273f8;await _0x1b5d9e[_0x2d6630(0x235)];},'abortController':_0x1b5d9e[_0x5273f8(0x236)]};}[_0x47fb91(0x202)]({reviewName:_0xe047cf,content:_0x5615d2,args:_0xa4dac4}){const _0x351f98=_0x47fb91,_0x23b880=this[_0x351f98(0x24f)](_0x351f98(0x1f6)+_0xe047cf+_0x351f98(0x206),_0x351f98(0x260),{'content':[{'type':_0x351f98(0x216),'content':_0x5615d2}],'args':_0xa4dac4});return{'getStream':async()=>{const _0x1e8b16=_0x351f98,_0x376b5f=(await _0x23b880[_0x1e8b16(0x235)])[_0x1e8b16(0x20f)];return this[_0x1e8b16(0x1fd)](_0x376b5f);},'abortController':_0x23b880[_0x351f98(0x236)]};}[_0x47fb91(0x210)]({content:_0x1fc615,prompt:_0x2f806f,model:_0xfdbcab}){const _0x3bf28d=_0x47fb91,_0x1d35a2=this[_0x3bf28d(0x24f)](_0x3bf28d(0x223),_0x3bf28d(0x260),{'content':[{'type':_0x3bf28d(0x216),'content':_0x1fc615}],'prompt':_0x2f806f,'model':_0xfdbcab});return{'getStream':async()=>{const _0x3f2e22=_0x3bf28d,_0x3e3ec3=(await _0x1d35a2[_0x3f2e22(0x235)])[_0x3f2e22(0x20f)];return this[_0x3f2e22(0x1fd)](_0x3e3ec3);},'abortController':_0x1d35a2[_0x3bf28d(0x236)]};}[_0x47fb91(0x234)](_0x2ba8af,_0x1a4a61,_0x1be450){const _0x3a83ae=_0x47fb91,_0x45084c=this[_0x3a83ae(0x24f)](_0x3a83ae(0x21f)+_0x2ba8af+_0x3a83ae(0x24a)+_0x1a4a61+_0x3a83ae(0x1ee),_0x3a83ae(0x261),{'positiveCount':_0x1be450[_0x3a83ae(0x1dd)],'totalCount':_0x1be450[_0x3a83ae(0x1f2)],'modificationId':_0x1be450[_0x3a83ae(0x1f0)]});return{'execute':async()=>{const _0x1dc78c=_0x3a83ae;await _0x45084c[_0x1dc78c(0x235)];},'abortController':_0x45084c[_0x3a83ae(0x236)]};}[_0x47fb91(0x252)](_0x4c51b6,_0x3e5cda,_0x33331d){const _0x5ceeb4=_0x47fb91,_0x436665=this[_0x5ceeb4(0x24f)](_0x5ceeb4(0x1d6)+_0x4c51b6+_0x5ceeb4(0x1ef)+_0x3e5cda+_0x5ceeb4(0x1ee),_0x5ceeb4(0x261),{'positiveCount':_0x33331d[_0x5ceeb4(0x1dd)],'totalCount':_0x33331d[_0x5ceeb4(0x1f2)]});return{'execute':async()=>{const _0x3945d4=_0x5ceeb4;await _0x436665[_0x3945d4(0x235)];},'abortController':_0x436665[_0x5ceeb4(0x236)]};}[_0x47fb91(0x243)](_0x552a88,_0x5a352e){const _0x4fef1f=_0x47fb91,_0x3e7504=this[_0x4fef1f(0x24f)](_0x4fef1f(0x215)+_0x552a88+_0x4fef1f(0x1ee),_0x4fef1f(0x261),{'positiveCount':_0x5a352e[_0x4fef1f(0x1dd)],'totalCount':_0x5a352e[_0x4fef1f(0x1f2)]});return{'execute':async()=>{const _0x825aba=_0x4fef1f;await _0x3e7504[_0x825aba(0x235)];},'abortController':_0x3e7504[_0x4fef1f(0x236)]};}[_0x47fb91(0x248)](_0x332dbe,_0xb9070,_0x864b14,_0x3540d9){const _0x1a10fd=_0x47fb91,_0x166f8c=this[_0x1a10fd(0x24f)](_0x1a10fd(0x1f6)+_0x332dbe+_0x1a10fd(0x1ef)+_0xb9070+_0x1a10fd(0x1ee),_0x1a10fd(0x261),{'positiveCount':_0x864b14[_0x1a10fd(0x1dd)],'totalCount':_0x864b14[_0x1a10fd(0x1f2)],'dataId':_0x3540d9});return{'execute':async()=>{const _0x2b4c5f=_0x1a10fd;await _0x166f8c[_0x2b4c5f(0x235)];},'abortController':_0x166f8c[_0x1a10fd(0x236)]};}[_0x47fb91(0x22b)](_0x2ccf8e,_0x38e811,_0x370c0a){const _0x2996e8=_0x47fb91,_0x4b02c2=this[_0x2996e8(0x24f)](_0x2996e8(0x213)+_0x2ccf8e+_0x2996e8(0x1ee),_0x2996e8(0x261),{'positiveCount':_0x38e811[_0x2996e8(0x1dd)],'totalCount':_0x38e811[_0x2996e8(0x1f2)],'dataId':_0x370c0a});return{'execute':async()=>{const _0xa90fe8=_0x2996e8;await _0x4b02c2[_0xa90fe8(0x235)];},'abortController':_0x4b02c2[_0x2996e8(0x236)]};}[_0x47fb91(0x24f)](_0x2d00bd,_0x1eb38c,_0x1697d3){const _0x13f1a2=_0x47fb91,_0x221849=new AbortController(),_0x120aff=_0x1697d3 instanceof FormData,_0x31d02a={'Authorization':_0x13f1a2(0x1e8)+this[_0x13f1a2(0x229)]?.[_0x13f1a2(0x246)]};_0x1697d3&&!_0x120aff&&(_0x31d02a[_0x13f1a2(0x23c)]=_0x13f1a2(0x255));const _0x4a9e5d={'method':_0x1eb38c,'headers':_0x31d02a,'signal':_0x221849[_0x13f1a2(0x221)]};return _0x1697d3&&(_0x4a9e5d[_0x13f1a2(0x20f)]=_0x120aff?_0x1697d3:JSON[_0x13f1a2(0x24c)](_0x1697d3)),{'request':fetch(''+this[_0x13f1a2(0x227)]+_0x2d00bd,_0x4a9e5d)[_0x13f1a2(0x1f4)](_0x51d6c4=>{const _0x317084=_0x13f1a2;this[_0x317084(0x1e9)](_0x51d6c4);})[_0x13f1a2(0x25e)](_0x302757=>_0x302757['ok']?_0x302757:_0x302757[_0x13f1a2(0x24b)]()[_0x13f1a2(0x25e)](_0x50456e=>{const _0x499749=_0x13f1a2;throw{'url':this[_0x499749(0x227)],'path':_0x2d00bd,'method':_0x1eb38c,'body':_0x1697d3,'status':(_0x302757||{})[_0x499749(0x23f)],'statusText':(_0x302757||{})[_0x499749(0x25a)],'code':_0x50456e[_0x499749(0x237)],'message':_0x50456e[_0x499749(0x20e)],'traceId':_0x50456e[_0x499749(0x21c)]};})),'abortController':_0x221849};}async*[_0x47fb91(0x1fd)](_0x332929){const _0x163daa=_0x47fb91,_0x5d59d0=[],_0x5b34a2=_0x332929[_0x163daa(0x264)](),_0x46d2f9=_0x4434a8({'onError':_0x345b38=>{const _0x295e12=_0x163daa;this[_0x295e12(0x1e9)](_0x345b38);},'onEvent':_0x29319b=>{const _0x123505=_0x163daa;_0x29319b[_0x123505(0x1f8)]=JSON[_0x123505(0x231)](_0x29319b[_0x123505(0x1f8)]),_0x5d59d0[_0x123505(0x1e2)](_0x29319b);}});try{let _0xfafdfc=!0x1;for(;!_0xfafdfc;){const {done:_0x397dfb,value:_0xc2ba96}=await _0x5b34a2[_0x163daa(0x1ea)]();_0x397dfb&&(_0xfafdfc=!0x0),_0x46d2f9[_0x163daa(0x1d7)](this[_0x163daa(0x22c)][_0x163daa(0x214)](_0xc2ba96,{'stream':!0x0})),yield*_0x5d59d0,_0x5d59d0[_0x163daa(0x1d8)]=0x0;}}catch(_0x11f77a){this[_0x163daa(0x1e9)](_0x11f77a);}finally{_0x5b34a2[_0x163daa(0x1d4)](),_0x46d2f9[_0x163daa(0x21a)]();}}[_0x47fb91(0x1e9)](_0x3d530d){const _0x18b235=_0x47fb91;if(_0x3d530d instanceof _0x31869f)throw _0x3d530d;if(_0x3d530d instanceof Error&&_0x18b235(0x25c)===_0x3d530d[_0x18b235(0x20c)])throw new _0x31869f(_0x18b235(0x257),this,{'originalError':_0x3d530d});throw new _0x31869f(_0x18b235(0x233),this,{'originalError':_0x3d530d});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xefcaca=_0xb995;function _0x532a(){const _0xaa3baf=['ai-selection:',':start>','getRoot','ai-selection','2127325uluFqr','13220298fyuHQR','has','_sessionId','55468XnctTV','conversion','editingDowncast','data-id','view','emptyElement','listenTo','isOfficialPlugin',':start></','createRange','from','isAtEnd','toView','trim','sort','containerElement','createUIElement','ck-fake-ai-selection','element','getMarkersGroup','112nbNpqD','getDocumentData','ready','processor','add','2311980tJCNwC','floor','push','markers','_setDataIdsOnChildren','$textProxy','isAfter','getSelectionText','schema',':end></','start','isOpening','getStart','convertAiChatSelectionMarker','getSelectedContent','hideFakeVisualSelection','isPremiumPlugin','getWalker','23292QAeNBV','_getMarkersInDocumentOrder','dataDowncast','isContent','835523BmyzrF','selection','afterInit','end','AIEditing','createRangeIn','change','removeMarker','plugins','markerName','get','getLastMatchingPosition','for','sessionId','markerToHighlight','length','indexOf','ck-ai-assistant-ui_theme','getSelection','_integrateEditor','_displayedFakeSelectionLocked',':end>','name','substring','pluginName','editors','random','isBefore','RealTimeCollaborationClient','fromCharCode','data','286072MtfQqD','context','addMarker','modelToViewWithIds','join','markerToElement','12ilxXSj','toData','showFakeVisualSelection','28gEgIyA','editing','removeAllRanges','document','getChildren','_displayedFakeSelectionId','setAttribute','version','model','_nextDataId'];_0x532a=function(){return _0xaa3baf;};return _0x532a();}(function(_0x1cb4e6,_0x31f6ac){const _0x5e0d3d=_0xb995,_0x3e865d=_0x1cb4e6();while(!![]){try{const _0x2010a1=-parseInt(_0x5e0d3d(0xf9))/0x1+parseInt(_0x5e0d3d(0x121))/0x2*(parseInt(_0x5e0d3d(0xf5))/0x3)+parseInt(_0x5e0d3d(0xca))/0x4+parseInt(_0x5e0d3d(0x12f))/0x5*(parseInt(_0x5e0d3d(0x11e))/0x6)+parseInt(_0x5e0d3d(0xde))/0x7*(-parseInt(_0x5e0d3d(0x118))/0x8)+parseInt(_0x5e0d3d(0xc7))/0x9+-parseInt(_0x5e0d3d(0xe3))/0xa;if(_0x2010a1===_0x31f6ac)break;else _0x3e865d['push'](_0x3e865d['shift']());}catch(_0x1e146f){_0x3e865d['push'](_0x3e865d['shift']());}}}(_0x532a,0xc42de));import{ViewDowncastWriter as _0xfcaa2d}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x4a4437,Editor as _0x448ee9}from'ckeditor5/src/core.js';function _0xb995(_0xd7d18d,_0x5bff28){const _0x532a0b=_0x532a();return _0xb995=function(_0xb995a8,_0x276876){_0xb995a8=_0xb995a8-0xc7;let _0x38cf1b=_0x532a0b[_0xb995a8];return _0x38cf1b;},_0xb995(_0xd7d18d,_0x5bff28);}import{uid as _0x4887ee}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x49ffdb}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0xefcaca(0x12e);export class AIEditing extends _0x4a4437{[_0xefcaca(0x126)]=null;[_0xefcaca(0x10d)]=!0x1;[_0xefcaca(0xc9)];static get[_0xefcaca(0x111)](){const _0x10d50c=_0xefcaca;return _0x10d50c(0xfd);}static get[_0xefcaca(0xd1)](){return!0x0;}static get[_0xefcaca(0xf3)](){return!0x0;}get[_0xefcaca(0x106)](){const _0x494a3f=_0xefcaca;if(!this[_0x494a3f(0xc9)]){const _0x1a29ac=_0x49ffdb(this[_0x494a3f(0x119)]),_0x40c60a=_0x1a29ac[_0x494a3f(0x101)][_0x494a3f(0xc8)](_0x494a3f(0x115))&&_0x1a29ac[_0x494a3f(0x101)][_0x494a3f(0x103)](_0x494a3f(0x115))[_0x494a3f(0x106)];this[_0x494a3f(0xc9)]=_0x40c60a||_0x4887ee();}return this[_0x494a3f(0xc9)];}[_0xefcaca(0xdf)](){const _0x3e817e=_0xefcaca,_0x18e97a=_0x49ffdb(this[_0x3e817e(0x119)]),_0x4c7c6b=_0x18e97a[_0x3e817e(0x129)],_0x3ce944=_0x18e97a[_0x3e817e(0x117)][_0x3e817e(0xd6)](_0x4c7c6b[_0x3e817e(0x124)][_0x3e817e(0x12d)](),{'convertAiChatSelectionMarker':!0x0}),_0x5100cc=new _0xfcaa2d(_0x18e97a[_0x3e817e(0x122)][_0x3e817e(0xce)][_0x3e817e(0x124)]);this[_0x3e817e(0xe7)](_0x3ce944,_0x5100cc);let _0xf14136=_0x18e97a[_0x3e817e(0x117)][_0x3e817e(0xe1)][_0x3e817e(0x11f)](_0x3ce944);const _0x517bc8=this[_0x3e817e(0xf6)](),_0x5c4076=[];for(const _0x255fb7 of _0x517bc8){const _0x4a493e='<'+_0x255fb7[_0x3e817e(0x10f)]+_0x3e817e(0xd2)+_0x255fb7[_0x3e817e(0x10f)]+_0x3e817e(0x12c),_0x5883eb=_0xf14136[_0x3e817e(0x109)](_0x4a493e);_0xf14136=_0xf14136[_0x3e817e(0x110)](0x0,_0x5883eb)+_0xf14136[_0x3e817e(0x110)](_0x5883eb+_0x4a493e[_0x3e817e(0x108)]);const _0x2228f1='<'+_0x255fb7[_0x3e817e(0x10f)]+_0x3e817e(0xec)+_0x255fb7[_0x3e817e(0x10f)]+_0x3e817e(0x10e),_0x152ed5=_0xf14136[_0x3e817e(0x109)](_0x2228f1);_0xf14136=_0xf14136[_0x3e817e(0x110)](0x0,_0x152ed5)+_0xf14136[_0x3e817e(0x110)](_0x152ed5+_0x2228f1[_0x3e817e(0x108)]),_0x5c4076[_0x3e817e(0xe5)]({'markerName':_0x255fb7[_0x3e817e(0x10f)],'start':_0x5883eb,'end':_0x152ed5,'htmlFragment':_0xf14136[_0x3e817e(0x110)](_0x5883eb,_0x152ed5)});}return{'content':_0xf14136,'version':_0x18e97a[_0x3e817e(0x129)][_0x3e817e(0x124)][_0x3e817e(0x128)],'sessionId':this[_0x3e817e(0x106)],'selections':_0x5c4076};}async[_0xefcaca(0xfb)](){const _0x4bb9d0=_0xefcaca;this[_0x4bb9d0(0x119)]instanceof _0x448ee9?this[_0x4bb9d0(0x10c)](this[_0x4bb9d0(0x119)]):this[_0x4bb9d0(0xd0)](this[_0x4bb9d0(0x119)][_0x4bb9d0(0x112)],_0x4bb9d0(0xe2),(_0x477707,_0x3e7516)=>{const _0x478c26=_0x4bb9d0;_0x3e7516['on'](_0x478c26(0xe0),()=>{const _0x14d0d8=_0x478c26;this[_0x14d0d8(0x10c)](_0x3e7516);});});}[_0xefcaca(0x10c)](_0x725eb){const _0x3a36aa=_0xefcaca;_0x725eb[_0x3a36aa(0xcb)][_0x3a36aa(0x105)](_0x3a36aa(0xcc))[_0x3a36aa(0x107)]({'model':_0x3a36aa(0x12e),'view':{'classes':[_0x3a36aa(0xdb),_0x3a36aa(0x10a)],'priority':0xc}}),_0x725eb[_0x3a36aa(0xcb)][_0x3a36aa(0x105)](_0x3a36aa(0xf7))[_0x3a36aa(0x11d)]({'model':_0x3a36aa(0x12e),'view':(_0x9098,{writer:_0x10eabc,options:_0x1cfcca})=>_0x1cfcca[_0x3a36aa(0xf0)]?_0x10eabc[_0x3a36aa(0xda)](_0x9098[_0x3a36aa(0x102)]+':'+(_0x9098[_0x3a36aa(0xee)]?_0x3a36aa(0xed):_0x3a36aa(0xfc))):null});}[_0xefcaca(0x120)](_0x3750e0,_0xbea206,_0x4857ce=!0x1,_0x156d91=!0x1){const _0x1b1287=_0xefcaca;if(this[_0x1b1287(0x10d)]&&!_0x156d91)return!0x1;const _0x3de6a8=_0x49ffdb(this[_0x1b1287(0x119)])[_0x1b1287(0x129)];return _0x3de6a8[_0x1b1287(0xff)](_0x3ace26=>{const _0xade842=_0x1b1287;this[_0xade842(0x126)]&&this[_0xade842(0xf2)](this[_0xade842(0x126)]),this[_0xade842(0x126)]=_0xbea206,this[_0xade842(0x10d)]=_0x4857ce;let _0x47a781=0x0;for(let _0x35b911 of _0x3750e0){const _0x557a34=_0xade842(0x12b)+_0x47a781;if(_0x35b911[_0xade842(0xed)][_0xade842(0xd5)]){const _0x53c6eb=_0x35b911[_0xade842(0xed)][_0xade842(0x104)](({item:_0x25b41c})=>!_0x3de6a8[_0xade842(0xeb)][_0xade842(0xf8)](_0x25b41c),{'boundaries':_0x35b911});_0x35b911=_0x3ace26[_0xade842(0xd3)](_0x53c6eb,_0x35b911[_0xade842(0xfc)]);}_0x3ace26[_0xade842(0x11a)](_0x557a34,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x35b911}),_0x47a781++;}}),window[_0x1b1287(0x10b)]()?.[_0x1b1287(0x123)](),!0x0;}[_0xefcaca(0xf2)](_0x15b1cd){const _0x224ac1=_0xefcaca;if(this[_0x224ac1(0x126)]!=_0x15b1cd)return!0x1;this[_0x224ac1(0x126)]=null,this[_0x224ac1(0x10d)]=!0x1;const _0xddb487=_0x49ffdb(this[_0x224ac1(0x119)]),_0x1e73ab=_0xddb487[_0x224ac1(0x129)][_0x224ac1(0xe6)][_0x224ac1(0xdd)](_0x224ac1(0x12e));return _0xddb487[_0x224ac1(0x129)][_0x224ac1(0xff)](_0x103789=>{const _0x25bbc2=_0x224ac1;for(const _0x55486e of _0x1e73ab)_0x103789[_0x25bbc2(0x100)](_0x55486e);}),!0x0;}[_0xefcaca(0x11b)](_0x68a270){const _0x185eb2=_0xefcaca,_0x434aec=_0x49ffdb(this[_0x185eb2(0x119)]),_0x2281de=_0x434aec[_0x185eb2(0x117)][_0x185eb2(0xd6)](_0x68a270),_0x333132=new _0xfcaa2d(_0x434aec[_0x185eb2(0x122)][_0x185eb2(0xce)][_0x185eb2(0x124)]);return this[_0x185eb2(0xe7)](_0x2281de,_0x333132),_0x2281de;}[_0xefcaca(0xe7)](_0x43e7d7,_0x4b2baf){const _0x1b12be=_0xefcaca;let _0x11c514=!0x1;const _0x426bc1=new Set();for(const _0x4b977a of _0x43e7d7[_0x1b12be(0x125)]()){const _0x26326f=_0x4b977a['is'](_0x1b12be(0xcf))||_0x4b977a['is'](_0x1b12be(0xd9));if(!_0x4b977a['is'](_0x1b12be(0xdc)))continue;(this[_0x1b12be(0xe7)](_0x4b977a,_0x4b2baf)||_0x26326f)&&(_0x4b2baf[_0x1b12be(0x127)](_0x1b12be(0xcd),this[_0x1b12be(0x12a)](_0x426bc1),_0x4b977a),_0x11c514=!0x0);}return _0x11c514;}[_0xefcaca(0x12a)](_0x466f63){const _0x32503b=_0xefcaca;let _0xffb91b;do{_0xffb91b='';for(let _0x202c2f=0x0;_0x202c2f<0x4;_0x202c2f++)_0xffb91b+=String[_0x32503b(0x116)](0x61+Math[_0x32503b(0xe4)](0x1a*Math[_0x32503b(0x113)]()));}while(_0x466f63[_0x32503b(0xc8)](_0xffb91b));return _0x466f63[_0x32503b(0xe2)](_0xffb91b),_0xffb91b;}[_0xefcaca(0xea)](){const _0x1dee55=_0xefcaca,{model:_0x2a63ff}=_0x49ffdb(this[_0x1dee55(0x119)]),_0x4e79cb=_0x2a63ff[_0x1dee55(0x124)][_0x1dee55(0xfa)],_0x4e7a6d=_0x2a63ff[_0x1dee55(0xf1)](_0x4e79cb),_0x36e7f4=[],_0x26c7ae=_0x2a63ff[_0x1dee55(0xfe)](_0x4e7a6d)[_0x1dee55(0xf4)]();for(const {item:_0x2f37e8}of _0x26c7ae)_0x2f37e8['is'](_0x1dee55(0xe8))?_0x36e7f4[_0x1dee55(0xe5)](_0x2f37e8[_0x1dee55(0x117)]):_0x2f37e8['is'](_0x1dee55(0xdc))&&_0x36e7f4[_0x1dee55(0x108)]>0x0&&'\x20'!==_0x36e7f4[_0x36e7f4[_0x1dee55(0x108)]-0x1]&&_0x36e7f4[_0x1dee55(0xe5)]('\x20');return'\x22'+_0x36e7f4[_0x1dee55(0x11c)]('')[_0x1dee55(0xd7)]()+'\x22';}[_0xefcaca(0xf6)](){const _0x336328=_0xefcaca,_0x3e7405=_0x49ffdb(this[_0x336328(0x119)])[_0x336328(0x129)];return Array[_0x336328(0xd4)](_0x3e7405[_0x336328(0xe6)][_0x336328(0xdd)](_0x336328(0x12e)))[_0x336328(0xd8)]((_0x283a68,_0x583750)=>_0x283a68[_0x336328(0xef)]()[_0x336328(0x114)](_0x583750[_0x336328(0xef)]())?-0x1:_0x283a68[_0x336328(0xef)]()[_0x336328(0xe9)](_0x583750[_0x336328(0xef)]())?0x1:0x0);}}
23
+ const _0x2e2a82=_0x31a7;(function(_0x154dd1,_0x2d2a6f){const _0x52447b=_0x31a7,_0x5514dc=_0x154dd1();while(!![]){try{const _0x1e6237=parseInt(_0x52447b(0x21d))/0x1*(-parseInt(_0x52447b(0x1ef))/0x2)+parseInt(_0x52447b(0x1f5))/0x3*(-parseInt(_0x52447b(0x22e))/0x4)+parseInt(_0x52447b(0x231))/0x5*(-parseInt(_0x52447b(0x1e5))/0x6)+-parseInt(_0x52447b(0x20c))/0x7*(parseInt(_0x52447b(0x1fb))/0x8)+-parseInt(_0x52447b(0x212))/0x9*(parseInt(_0x52447b(0x1df))/0xa)+parseInt(_0x52447b(0x1f9))/0xb*(-parseInt(_0x52447b(0x1ed))/0xc)+parseInt(_0x52447b(0x1e6))/0xd;if(_0x1e6237===_0x2d2a6f)break;else _0x5514dc['push'](_0x5514dc['shift']());}catch(_0x43ac74){_0x5514dc['push'](_0x5514dc['shift']());}}}(_0x2a72,0x188ad));import{ViewDowncastWriter as _0x5a8c2e}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x3d5c01,Editor as _0x5230d9}from'ckeditor5/src/core.js';function _0x2a72(){const _0x14688d=['emptyElement','model','get','isPremiumPlugin','start','7698isxBfk','markers','isAtEnd','data','1338689IyjxOQ','push','9768xvRmLv','setAttribute','toView','add','_integrateEditor','has',':end></','isOpening','_displayedFakeSelectionId','from','_nextDataId','indexOf','editors','ai-selection:','createUIElement',':end>','getWalker','518mQQgKy','plugins','context','listenTo','markerToHighlight','_displayedFakeSelectionLocked','31113FKBiHZ','AIEditing','showFakeVisualSelection','getMarkersGroup','isOfficialPlugin',':start></','getRoot','getLastMatchingPosition','selection','removeMarker','length','23esrUrU','getChildren','addMarker','data-id','isContent','hideFakeVisualSelection','random','getSelectedContent','end','$textProxy',':start>','view','getStart','editingDowncast','change','toData','afterInit','4SlAsnl','isAfter','fromCharCode','4645eStHEs','conversion','pluginName','ready','getDocumentData','getSelection','join','markerToElement','ck-ai-assistant-ui_theme','modelToViewWithIds','name','floor','substring','isBefore','element','sort','trim','dataDowncast','for','_getMarkersInDocumentOrder','getSelectionText','removeAllRanges','ai-selection','sessionId','editing','ck-fake-ai-selection','220BYycnk','createRange','_setDataIdsOnChildren','markerName','createRangeIn','version','348gSlivl','6944067dztziZ','processor','_sessionId','schema','containerElement','document','RealTimeCollaborationClient','12kxFatf','convertAiChatSelectionMarker','7746efHYGI'];_0x2a72=function(){return _0x14688d;};return _0x2a72();}function _0x31a7(_0x3dba41,_0x240d09){const _0x2a72d3=_0x2a72();return _0x31a7=function(_0x31a7e1,_0x1214e9){_0x31a7e1=_0x31a7e1-0x1d9;let _0x220aea=_0x2a72d3[_0x31a7e1];return _0x220aea;},_0x31a7(_0x3dba41,_0x240d09);}import{uid as _0x2521c4}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x234b99}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x2e2a82(0x1db);export class AIEditing extends _0x3d5c01{[_0x2e2a82(0x203)]=null;[_0x2e2a82(0x211)]=!0x1;[_0x2e2a82(0x1e8)];static get[_0x2e2a82(0x233)](){const _0x446382=_0x2e2a82;return _0x446382(0x213);}static get[_0x2e2a82(0x216)](){return!0x0;}static get[_0x2e2a82(0x1f3)](){return!0x0;}get[_0x2e2a82(0x1dc)](){const _0x2dd237=_0x2e2a82;if(!this[_0x2dd237(0x1e8)]){const _0x435df3=_0x234b99(this[_0x2dd237(0x20e)]),_0x5af881=_0x435df3[_0x2dd237(0x20d)][_0x2dd237(0x200)](_0x2dd237(0x1ec))&&_0x435df3[_0x2dd237(0x20d)][_0x2dd237(0x1f2)](_0x2dd237(0x1ec))[_0x2dd237(0x1dc)];this[_0x2dd237(0x1e8)]=_0x5af881||_0x2521c4();}return this[_0x2dd237(0x1e8)];}[_0x2e2a82(0x235)](){const _0x342ac0=_0x2e2a82,_0xf0ba50=_0x234b99(this[_0x342ac0(0x20e)]),_0x462dd5=_0xf0ba50[_0x342ac0(0x1f1)],_0x50fb39=_0xf0ba50[_0x342ac0(0x1f8)][_0x342ac0(0x1fd)](_0x462dd5[_0x342ac0(0x1eb)][_0x342ac0(0x218)](),{'convertAiChatSelectionMarker':!0x0}),_0x3d3dbc=new _0x5a8c2e(_0xf0ba50[_0x342ac0(0x1dd)][_0x342ac0(0x228)][_0x342ac0(0x1eb)]);this[_0x342ac0(0x1e1)](_0x50fb39,_0x3d3dbc);let _0x4fa8ca=_0xf0ba50[_0x342ac0(0x1f8)][_0x342ac0(0x1e7)][_0x342ac0(0x22c)](_0x50fb39);const _0x549545=this[_0x342ac0(0x244)](),_0x2f0e5a=[];for(const _0x3b3964 of _0x549545){const _0x184fc1='<'+_0x3b3964[_0x342ac0(0x23b)]+_0x342ac0(0x217)+_0x3b3964[_0x342ac0(0x23b)]+_0x342ac0(0x227),_0x269b43=_0x4fa8ca[_0x342ac0(0x206)](_0x184fc1);_0x4fa8ca=_0x4fa8ca[_0x342ac0(0x23d)](0x0,_0x269b43)+_0x4fa8ca[_0x342ac0(0x23d)](_0x269b43+_0x184fc1[_0x342ac0(0x21c)]);const _0x28ceed='<'+_0x3b3964[_0x342ac0(0x23b)]+_0x342ac0(0x201)+_0x3b3964[_0x342ac0(0x23b)]+_0x342ac0(0x20a),_0x31be8e=_0x4fa8ca[_0x342ac0(0x206)](_0x28ceed);_0x4fa8ca=_0x4fa8ca[_0x342ac0(0x23d)](0x0,_0x31be8e)+_0x4fa8ca[_0x342ac0(0x23d)](_0x31be8e+_0x28ceed[_0x342ac0(0x21c)]),_0x2f0e5a[_0x342ac0(0x1fa)]({'markerName':_0x3b3964[_0x342ac0(0x23b)],'start':_0x269b43,'end':_0x31be8e,'htmlFragment':_0x4fa8ca[_0x342ac0(0x23d)](_0x269b43,_0x31be8e)});}return{'content':_0x4fa8ca,'version':_0xf0ba50[_0x342ac0(0x1f1)][_0x342ac0(0x1eb)][_0x342ac0(0x1e4)],'sessionId':this[_0x342ac0(0x1dc)],'selections':_0x2f0e5a};}async[_0x2e2a82(0x22d)](){const _0x3bc5f6=_0x2e2a82;this[_0x3bc5f6(0x20e)]instanceof _0x5230d9?this[_0x3bc5f6(0x1ff)](this[_0x3bc5f6(0x20e)]):this[_0x3bc5f6(0x20f)](this[_0x3bc5f6(0x20e)][_0x3bc5f6(0x207)],_0x3bc5f6(0x1fe),(_0x5e77ac,_0x106539)=>{const _0x53953f=_0x3bc5f6;_0x106539['on'](_0x53953f(0x234),()=>{const _0x9f74d1=_0x53953f;this[_0x9f74d1(0x1ff)](_0x106539);});});}[_0x2e2a82(0x1ff)](_0x26acb6){const _0xe15d99=_0x2e2a82;_0x26acb6[_0xe15d99(0x232)][_0xe15d99(0x243)](_0xe15d99(0x22a))[_0xe15d99(0x210)]({'model':_0xe15d99(0x1db),'view':{'classes':[_0xe15d99(0x1de),_0xe15d99(0x239)],'priority':0xc}}),_0x26acb6[_0xe15d99(0x232)][_0xe15d99(0x243)](_0xe15d99(0x242))[_0xe15d99(0x238)]({'model':_0xe15d99(0x1db),'view':(_0x42eaad,{writer:_0x3e48ab,options:_0x323ea0})=>_0x323ea0[_0xe15d99(0x1ee)]?_0x3e48ab[_0xe15d99(0x209)](_0x42eaad[_0xe15d99(0x1e2)]+':'+(_0x42eaad[_0xe15d99(0x202)]?_0xe15d99(0x1f4):_0xe15d99(0x225))):null});}[_0x2e2a82(0x214)](_0x2c0135,_0x39c573,_0x193f8a=!0x1,_0x3fb6be=!0x1){const _0x3f1b99=_0x2e2a82;if(this[_0x3f1b99(0x211)]&&!_0x3fb6be)return!0x1;const _0x1ac140=_0x234b99(this[_0x3f1b99(0x20e)])[_0x3f1b99(0x1f1)];return _0x1ac140[_0x3f1b99(0x22b)](_0x25b8ff=>{const _0x23c411=_0x3f1b99;this[_0x23c411(0x203)]&&this[_0x23c411(0x222)](this[_0x23c411(0x203)]),this[_0x23c411(0x203)]=_0x39c573,this[_0x23c411(0x211)]=_0x193f8a;let _0x2d3c02=0x0;for(let _0x23c76b of _0x2c0135){const _0x1bbcdf=_0x23c411(0x208)+_0x2d3c02;if(_0x23c76b[_0x23c411(0x1f4)][_0x23c411(0x1f7)]){const _0x26da0e=_0x23c76b[_0x23c411(0x1f4)][_0x23c411(0x219)](({item:_0x543dc5})=>!_0x1ac140[_0x23c411(0x1e9)][_0x23c411(0x221)](_0x543dc5),{'boundaries':_0x23c76b});_0x23c76b=_0x25b8ff[_0x23c411(0x1e0)](_0x26da0e,_0x23c76b[_0x23c411(0x225)]);}_0x25b8ff[_0x23c411(0x21f)](_0x1bbcdf,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x23c76b}),_0x2d3c02++;}}),window[_0x3f1b99(0x236)]()?.[_0x3f1b99(0x1da)](),!0x0;}[_0x2e2a82(0x222)](_0x53aaa8){const _0x2e9881=_0x2e2a82;if(this[_0x2e9881(0x203)]!=_0x53aaa8)return!0x1;this[_0x2e9881(0x203)]=null,this[_0x2e9881(0x211)]=!0x1;const _0xbc825b=_0x234b99(this[_0x2e9881(0x20e)]),_0x4331a4=_0xbc825b[_0x2e9881(0x1f1)][_0x2e9881(0x1f6)][_0x2e9881(0x215)](_0x2e9881(0x1db));return _0xbc825b[_0x2e9881(0x1f1)][_0x2e9881(0x22b)](_0x1deadd=>{const _0x47d0c6=_0x2e9881;for(const _0x5e3965 of _0x4331a4)_0x1deadd[_0x47d0c6(0x21b)](_0x5e3965);}),!0x0;}[_0x2e2a82(0x23a)](_0x51fa82){const _0x401031=_0x2e2a82,_0x12c0a3=_0x234b99(this[_0x401031(0x20e)]),_0x4d7d15=_0x12c0a3[_0x401031(0x1f8)][_0x401031(0x1fd)](_0x51fa82),_0x239f23=new _0x5a8c2e(_0x12c0a3[_0x401031(0x1dd)][_0x401031(0x228)][_0x401031(0x1eb)]);return this[_0x401031(0x1e1)](_0x4d7d15,_0x239f23),_0x4d7d15;}[_0x2e2a82(0x1e1)](_0x5c3452,_0x1b2e7e){const _0x24cb7a=_0x2e2a82;let _0x26386a=!0x1;const _0x3168fa=new Set();for(const _0x39bd1e of _0x5c3452[_0x24cb7a(0x21e)]()){const _0x20bd27=_0x39bd1e['is'](_0x24cb7a(0x1f0))||_0x39bd1e['is'](_0x24cb7a(0x1ea));if(!_0x39bd1e['is'](_0x24cb7a(0x23f)))continue;(this[_0x24cb7a(0x1e1)](_0x39bd1e,_0x1b2e7e)||_0x20bd27)&&(_0x1b2e7e[_0x24cb7a(0x1fc)](_0x24cb7a(0x220),this[_0x24cb7a(0x205)](_0x3168fa),_0x39bd1e),_0x26386a=!0x0);}return _0x26386a;}[_0x2e2a82(0x205)](_0x9539bb){const _0x5859ef=_0x2e2a82;let _0x97a647;do{_0x97a647='';for(let _0x5f04a8=0x0;_0x5f04a8<0x4;_0x5f04a8++)_0x97a647+=String[_0x5859ef(0x230)](0x61+Math[_0x5859ef(0x23c)](0x1a*Math[_0x5859ef(0x223)]()));}while(_0x9539bb[_0x5859ef(0x200)](_0x97a647));return _0x9539bb[_0x5859ef(0x1fe)](_0x97a647),_0x97a647;}[_0x2e2a82(0x1d9)](){const _0x16eebb=_0x2e2a82,{model:_0x41ab16}=_0x234b99(this[_0x16eebb(0x20e)]),_0x19a68f=_0x41ab16[_0x16eebb(0x1eb)][_0x16eebb(0x21a)],_0x5f0f37=_0x41ab16[_0x16eebb(0x224)](_0x19a68f),_0x435415=[],_0x2e0ee6=_0x41ab16[_0x16eebb(0x1e3)](_0x5f0f37)[_0x16eebb(0x20b)]();for(const {item:_0x215a12}of _0x2e0ee6)_0x215a12['is'](_0x16eebb(0x226))?_0x435415[_0x16eebb(0x1fa)](_0x215a12[_0x16eebb(0x1f8)]):_0x215a12['is'](_0x16eebb(0x23f))&&_0x435415[_0x16eebb(0x21c)]>0x0&&'\x20'!==_0x435415[_0x435415[_0x16eebb(0x21c)]-0x1]&&_0x435415[_0x16eebb(0x1fa)]('\x20');return'\x22'+_0x435415[_0x16eebb(0x237)]('')[_0x16eebb(0x241)]()+'\x22';}[_0x2e2a82(0x244)](){const _0x4e9c48=_0x2e2a82,_0x469601=_0x234b99(this[_0x4e9c48(0x20e)])[_0x4e9c48(0x1f1)];return Array[_0x4e9c48(0x204)](_0x469601[_0x4e9c48(0x1f6)][_0x4e9c48(0x215)](_0x4e9c48(0x1db)))[_0x4e9c48(0x240)]((_0x372bc5,_0x53a713)=>_0x372bc5[_0x4e9c48(0x229)]()[_0x4e9c48(0x23e)](_0x53a713[_0x4e9c48(0x229)]())?-0x1:_0x372bc5[_0x4e9c48(0x229)]()[_0x4e9c48(0x22f)](_0x53a713[_0x4e9c48(0x229)]())?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 _0xb61df7=_0xd472;(function(_0x4956c6,_0x223b4b){const _0x351dd4=_0xd472,_0x376c6e=_0x4956c6();while(!![]){try{const _0x1cbc5c=parseInt(_0x351dd4(0x19e))/0x1+parseInt(_0x351dd4(0x1b0))/0x2+parseInt(_0x351dd4(0x19f))/0x3+-parseInt(_0x351dd4(0x1a8))/0x4+-parseInt(_0x351dd4(0x1a6))/0x5+-parseInt(_0x351dd4(0x1ac))/0x6*(-parseInt(_0x351dd4(0x1a9))/0x7)+-parseInt(_0x351dd4(0x19a))/0x8*(parseInt(_0x351dd4(0x198))/0x9);if(_0x1cbc5c===_0x223b4b)break;else _0x376c6e['push'](_0x376c6e['shift']());}catch(_0x46c57f){_0x376c6e['push'](_0x376c6e['shift']());}}}(_0x135f,0xca787));import{EmitterMixin as _0x256aad}from'ckeditor5/src/utils.js';function _0xd472(_0x2fe25d,_0x2aba40){const _0x135fde=_0x135f();return _0xd472=function(_0xd47263,_0x1b0ce7){_0xd47263=_0xd47263-0x198;let _0x412503=_0x135fde[_0xd47263];return _0x412503;},_0xd472(_0x2fe25d,_0x2aba40);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0xb61df7(0x1a3)];function _0x135f(){const _0x4b6fe3=['getCapabilitiesConfig','_isWebSearchEnabled','setReasoning','3172438DkAkhR','72MkpPyr','getCapabilitiesRequestData','873496DLAmbY','reset','isWebSearchEnabled','isReasoningEnabled','1165237ZvNeCH','1773027tXNwmt','toggleReasoning','reasoning','init','capabilitiesUpdated','toggleWebSearch','setWebSearch','5988835cExgvL','fire','2833700IHCGoN','1865794FWBvjm','webSearch','_isReasoningEnabled','6LheEAk'];_0x135f=function(){return _0x4b6fe3;};return _0x135f();}export class AICapabilities extends _0x256aad(){[_0xb61df7(0x1ae)];[_0xb61df7(0x1ab)];constructor(){const _0x513e95=_0xb61df7;super(),this[_0x513e95(0x1ae)]=!0x1,this[_0x513e95(0x1ab)]=!0x1;}[_0xb61df7(0x1a2)](){const _0x4119e0=_0xb61df7;this[_0x4119e0(0x19b)]();}[_0xb61df7(0x19b)](){const _0x13856a=_0xb61df7;this[_0x13856a(0x1a5)](!0x1),this[_0x13856a(0x1af)](!0x1);}[_0xb61df7(0x1ad)](){const _0x3ed830=_0xb61df7;return{'isWebSearchEnabled':this[_0x3ed830(0x1ae)],'isReasoningEnabled':this[_0x3ed830(0x1ab)]};}static[_0xb61df7(0x199)](_0x4c326c){const _0x281251=_0xb61df7,_0x4eb350={};return _0x4c326c&&_0x4c326c[_0x281251(0x19c)]&&(_0x4eb350[_0x281251(0x1aa)]={}),_0x4c326c&&_0x4c326c[_0x281251(0x19d)]&&(_0x4eb350[_0x281251(0x1a1)]={}),_0x4eb350;}[_0xb61df7(0x1a4)](){const _0x33c2fa=_0xb61df7;this[_0x33c2fa(0x1a5)](!this[_0x33c2fa(0x1ae)]);}[_0xb61df7(0x1a0)](){const _0xcf75f4=_0xb61df7;this[_0xcf75f4(0x1af)](!this[_0xcf75f4(0x1ab)]);}[_0xb61df7(0x1a5)](_0x5a30e3){const _0x2f971e=_0xb61df7;_0x5a30e3!==this[_0x2f971e(0x1ae)]&&(this[_0x2f971e(0x1ae)]=_0x5a30e3,this[_0x2f971e(0x1a7)](_0x2f971e(0x1a3),this[_0x2f971e(0x1ad)]()));}[_0xb61df7(0x1af)](_0x3ed276){const _0x4d15a3=_0xb61df7;_0x3ed276!==this[_0x4d15a3(0x1ab)]&&(this[_0x4d15a3(0x1ab)]=_0x3ed276,this[_0x4d15a3(0x1a7)](_0x4d15a3(0x1a3),this[_0x4d15a3(0x1ad)]()));}}
@@ -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={}));