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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.js +1 -1
  180. package/src/aichat/model/aichatconversation.js +1 -1
  181. package/src/aichat/model/aichatinteraction.js +1 -1
  182. package/src/aichat/ui/aichatballoonview.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  221. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.js +1 -1
  228. package/src/aicore/model/aimodels.js +1 -1
  229. package/src/aicore/model/aireply.js +1 -1
  230. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  231. package/src/aicore/pipeline/airesponseparser.js +2 -2
  232. package/src/aicore/ui/aidisclaimerview.js +1 -1
  233. package/src/aicore/ui/aiskeleton.js +1 -1
  234. package/src/aicore/ui/aispinner.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  246. package/src/aicore/utils/common-translations.js +1 -1
  247. package/src/aicore/utils/createresizebutton.js +1 -1
  248. package/src/aicore/utils/documentposition.js +1 -1
  249. package/src/aicore/utils/documentrange.js +1 -1
  250. package/src/aicore/utils/eventnames.js +1 -1
  251. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  252. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  253. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  254. package/src/aicore/utils/htmlparser.js +1 -1
  255. package/src/aicore/utils/htmlstreamer.js +1 -1
  256. package/src/aicore/utils/scrollmanager.js +1 -1
  257. package/src/aieditorintegration/aieditorintegration.js +1 -1
  258. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  260. package/src/aiquickactions/aiquickactions.js +1 -1
  261. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  262. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  263. package/src/aiquickactions/aiquickactionsui.js +1 -1
  264. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  268. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  271. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  272. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  273. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  274. package/src/aireviewcore/aireviewcoreui.js +1 -1
  275. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  276. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  277. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  280. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  281. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  292. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  294. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  295. package/src/aireviewmode/aireviewmode.js +1 -1
  296. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  297. package/src/aireviewmode/aireviewmodeui.js +1 -1
  298. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  300. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  301. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  303. package/src/aitabs/aitabs.js +1 -1
  304. package/src/aitabs/aitabsmainview.js +1 -1
  305. package/src/aitabs/tabs/aitabsview.js +1 -1
  306. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  307. package/src/aitabs/tabs/tabpanelview.js +1 -1
  308. package/src/aitranslate/aitranslate.js +1 -1
  309. package/src/aitranslate/aitranslatecontroller.js +1 -1
  310. package/src/aitranslate/aitranslateui.js +1 -1
  311. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  312. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  313. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  314. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  315. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  316. package/src/errors.js +1 -1
  317. package/src/errorsmap.js +1 -1
  318. package/src/index.js +1 -1
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d4571=_0x582a;(function(_0x80183f,_0x1f1e40){const _0x4ee981=_0x582a,_0x13119f=_0x80183f();while(!![]){try{const _0x3611b3=parseInt(_0x4ee981(0x1f8))/0x1+parseInt(_0x4ee981(0x1ee))/0x2+-parseInt(_0x4ee981(0x22d))/0x3+-parseInt(_0x4ee981(0x20f))/0x4*(parseInt(_0x4ee981(0x20a))/0x5)+-parseInt(_0x4ee981(0x207))/0x6+-parseInt(_0x4ee981(0x22e))/0x7+parseInt(_0x4ee981(0x1f5))/0x8;if(_0x3611b3===_0x1f1e40)break;else _0x13119f['push'](_0x13119f['shift']());}catch(_0x308d51){_0x13119f['push'](_0x13119f['shift']());}}}(_0x13e0,0x431f4));import{ListItemView as _0x37f6b0,HighlightedTextView as _0x40d592,ButtonView as _0x474f70,ListView as _0x363e36,IconView as _0x30575a,createDropdown as _0x2b5439,InputTextView as _0x5c6e63}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x14342d,IconPin as _0x270198,IconCheck as _0x4be2b4,IconCancel as _0x2ee807}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x2a3d99,ConfirmMixin as _0x552c0f}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x13e0(){const _0xc4bb74=['element','bind','highlightText','Enter','ck-ai-chat-history__item-main-content','AI_CHAT_HISTORY_LOADING_RENAMING','clear','AI_CHAT_HISTORY_REMOVE','label','panelPosition','span','loadingState','listitem','value','click','mainContent','812050TCPeHk','buttonView','_createEditInputView','text','AI_CHAT_HISTORY_REMOVE_CONFIRM','updateLoadingState','ck-ai-chat-history__item-title','3512928QTCZle','ck-ai-chat-history__item--active','createCollection','464732sDocic','AI_CHAT_HISTORY_PIN_BUTTON','ck-ai-loader','ck-ai-chat-history__item','addMany','ck-ai-chat-history__item-content','isVisible','_createPinButtonView','_createSpinnerView','AI_CHAT_HISTORY_LOADING_REMOVING','isOn','_createAcceptEditButtonView','withText','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','set','14286uuGGFf','change:isEdit','key','5pvJiwn','div','setConversationPinned','edit:cancel','ck-ai-chat-history__item-check-container','787448dqSPFv','ck-ai-chat-history__item-actions','focus','selectConversation','add','ck-ai-loader__text','_titleView','AI_CHAT_HISTORY_LOADING_UNPINNING','AI_CHAT_HISTORY_LOADING_PINNING','ck-hidden','_createCancelEditButtonView','LOADING_LABELS','pinned','execute','actions','updateTitle','removeConversation','items','then','ck-ai-chat-history__item--edit','ck-confirm-view-cancel','ck-ai-chat-history__item-check','ck-ai-chat-history__item-date','panelView','editConversationTitle','isEdit','setTemplate','children','fire','_createCheckView','1262448zYXvEu','2904174oxEzKJ','tiny','extendTemplate','_commitEditInputValue','bindTemplate','showConfirm','ck-confirm-view-submit','match','_createMenuDropdownView','AI_CHAT_HISTORY_EDIT_NAME','AI_CHAT_HISTORY_CANCEL','isMatching','locale','ck-ai-chat-history__item-row','AI_CHAT_HISTORY_ACCEPT','string'];_0x13e0=function(){return _0xc4bb74;};return _0x13e0();}import{escape as _0x1e1a85}from'es-toolkit/compat';function _0x582a(_0x3f8aef,_0x20feb3){const _0x13e0bf=_0x13e0();return _0x582a=function(_0x582a1e,_0x517cd3){_0x582a1e=_0x582a1e-0x1e4;let _0x24994f=_0x13e0bf[_0x582a1e];return _0x24994f;},_0x582a(_0x3f8aef,_0x20feb3);}import{AISpinnerView as _0x193780}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x63e2e0}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
- _0x552c0f(_0x37f6b0){['id'];static [_0x4d4571(0x21a)]={'remove':_0x4d4571(0x201),'rename':_0x4d4571(0x243),'pin':_0x4d4571(0x217),'unpin':_0x4d4571(0x216)};[_0x4d4571(0x21d)];[_0x4d4571(0x1ed)];[_0x4d4571(0x215)];constructor(_0x14c606,_0xf123d7){const _0x51957f=_0x4d4571;super(_0x14c606);const _0x1bb20e=this[_0x51957f(0x232)];this[_0x51957f(0x206)](_0x51957f(0x228),!0x1),this[_0x51957f(0x206)](_0x51957f(0x1fe),!0x0),this[_0x51957f(0x206)](_0x51957f(0x21b),!!_0xf123d7[_0x51957f(0x21b)]),this[_0x51957f(0x206)](_0x51957f(0x1e9),null),this['id']=_0xf123d7['id'];const {title:_0x577036,createdAt:_0x5a2ccb,active:_0x498295=!0x1}=_0xf123d7;this[_0x51957f(0x215)]=new _0x40d592(),this[_0x51957f(0x215)][_0x51957f(0x1f1)]=_0x577036,this[_0x51957f(0x215)][_0x51957f(0x230)]({'attributes':{'class':[_0x51957f(0x1f4)]}});const _0x452ba3=this[_0x51957f(0x22c)](),_0x285f33=this[_0x51957f(0x1ff)](_0x14c606),_0x56bea0=this[_0x51957f(0x236)](),_0x45fcce=this[_0x51957f(0x1f0)](_0x14c606,_0x577036),_0x43070c=this[_0x51957f(0x203)](_0x14c606,_0x45fcce),_0x597f50=this[_0x51957f(0x219)](_0x14c606,_0x45fcce);this[_0x51957f(0x21d)]=this[_0x51957f(0x1f7)](),this[_0x51957f(0x1ed)]=this[_0x51957f(0x1f7)](),this[_0x51957f(0x1ed)][_0x51957f(0x213)](this[_0x51957f(0x215)]),this[_0x51957f(0x21d)][_0x51957f(0x213)](_0x285f33),this[_0x51957f(0x21d)][_0x51957f(0x213)](_0x56bea0),this['on'](_0x51957f(0x208),(_0x2f1d05,_0x4bd034,_0x3e5ab9)=>{const _0xfcb96f=_0x51957f;this[_0xfcb96f(0x21d)][_0xfcb96f(0x1e4)](),this[_0xfcb96f(0x1ed)][_0xfcb96f(0x1e4)](),_0x3e5ab9?(this[_0xfcb96f(0x21d)][_0xfcb96f(0x213)](_0x43070c),this[_0xfcb96f(0x21d)][_0xfcb96f(0x213)](_0x597f50),this[_0xfcb96f(0x1ed)][_0xfcb96f(0x213)](_0x45fcce),_0x45fcce[_0xfcb96f(0x23e)][_0xfcb96f(0x211)]()):(this[_0xfcb96f(0x21d)][_0xfcb96f(0x213)](_0x285f33),this[_0xfcb96f(0x21d)][_0xfcb96f(0x213)](_0x56bea0),this[_0xfcb96f(0x1ed)][_0xfcb96f(0x213)](this[_0xfcb96f(0x215)]));}),this[_0x51957f(0x229)]({'tag':'li','attributes':{'class':[_0x51957f(0x1fb),_0x498295?_0x51957f(0x1f6):'',_0x1bb20e['if'](_0x51957f(0x1fe),_0x51957f(0x218),_0x455c79=>!_0x455c79),_0x1bb20e['if'](_0x51957f(0x228),_0x51957f(0x222))],'role':_0x51957f(0x1ea)},'children':[{'tag':_0x51957f(0x1e8),'attributes':{'class':[_0x51957f(0x20e)]},'children':[{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x224),_0x1bb20e['if'](_0x51957f(0x1e9),_0x51957f(0x218),_0x591791=>!!_0x591791)]},'children':_0x498295?[_0x452ba3]:[]},{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x1fa),_0x1bb20e['if'](_0x51957f(0x1e9),_0x51957f(0x218),_0x4c508c=>!_0x4c508c)]},'children':[this[_0x51957f(0x200)]()]}]},{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x23b)]},'children':[{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x1fd)]},'on':{'click':this[_0x51957f(0x232)]['to'](_0x51957f(0x1ec))},'children':[{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x242)]},'children':[{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x1f4),_0x1bb20e['if'](_0x51957f(0x1e9),_0x51957f(0x218),_0x57a9eb=>!!_0x57a9eb)]},'children':this[_0x51957f(0x1ed)]},{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x214),_0x1bb20e['if'](_0x51957f(0x1e9),_0x51957f(0x218),_0x4fd47b=>!_0x4fd47b)]},'children':[{'text':_0x1bb20e['to'](_0x51957f(0x1e9),_0xe8b1a7=>_0xe8b1a7?_0x63e2e0(this[_0x51957f(0x23a)],AIChatHistoryListItemView[_0x51957f(0x21a)][_0xe8b1a7]):'')}]}]},{'tag':_0x51957f(0x1e8),'attributes':{'class':[_0x51957f(0x225)]},'children':[_0x5a2ccb]}]},{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x210)]},'children':this[_0x51957f(0x21d)]}]}]}),this['on'](_0x51957f(0x1ec),()=>{const _0x17b8cb=_0x51957f;this[_0x17b8cb(0x228)]||this[_0x17b8cb(0x22b)](_0x17b8cb(0x212),{'id':this['id']});});}[_0x4d4571(0x21e)](_0x4b7e1b){const _0x120bc3=_0x4d4571;this[_0x120bc3(0x215)][_0x120bc3(0x1f1)]=_0x1e1a85(_0x4b7e1b);}[_0x4d4571(0x1f3)](_0x4e3a12,_0x3cb12f){const _0x173033=_0x4d4571;this[_0x173033(0x206)](_0x173033(0x1e9),_0x3cb12f?_0x4e3a12:null);}[_0x4d4571(0x22c)](){const _0x3835df=_0x4d4571,_0x1d7b80=new _0x30575a();return _0x1d7b80[_0x3835df(0x206)]({'content':_0x4be2b4}),_0x1d7b80;}[_0x4d4571(0x1ff)](_0x49f083){const _0x1fcab8=_0x4d4571,_0x9d5610=new _0x474f70(_0x49f083);return _0x9d5610[_0x1fcab8(0x206)]({'label':_0x63e2e0(_0x49f083,_0x1fcab8(0x1f9)),'icon':_0x270198,'withText':!0x1,'tooltip':!0x0}),_0x9d5610[_0x1fcab8(0x23f)](_0x1fcab8(0x202))['to'](this,_0x1fcab8(0x21b)),_0x9d5610['on'](_0x1fcab8(0x21c),()=>{const _0x269216=_0x1fcab8,_0x2ff6e7=!this[_0x269216(0x21b)];this[_0x269216(0x22b)](_0x269216(0x20c),{'id':this['id'],'pinned':_0x2ff6e7});}),_0x9d5610;}[_0x4d4571(0x236)](){const _0x5e6945=_0x4d4571,_0x2d3078=_0x2b5439(this[_0x5e6945(0x23a)],_0x2a3d99),_0x53c1be=_0x2d3078[_0x5e6945(0x226)][_0x5e6945(0x22a)];_0x2d3078[_0x5e6945(0x1ef)][_0x5e6945(0x206)]({'label':_0x63e2e0(this[_0x5e6945(0x23a)],_0x5e6945(0x205)),'icon':_0x14342d}),_0x2d3078[_0x5e6945(0x1e7)]='sw';const _0x45cadc=new _0x474f70(this[_0x5e6945(0x23a)]);_0x45cadc[_0x5e6945(0x1e6)]=_0x63e2e0(this[_0x5e6945(0x23a)],_0x5e6945(0x237)),_0x45cadc[_0x5e6945(0x204)]=!0x0,_0x45cadc['on'](_0x5e6945(0x21c),()=>{const _0x5981c1=_0x5e6945;this[_0x5981c1(0x228)]=!0x0;});const _0x4b8be0=new _0x474f70(this[_0x5e6945(0x23a)]);_0x4b8be0[_0x5e6945(0x1e6)]=_0x63e2e0(this[_0x5e6945(0x23a)],_0x5e6945(0x1e5)),_0x4b8be0[_0x5e6945(0x204)]=!0x0,_0x4b8be0['on'](_0x5e6945(0x21c),()=>{const _0x291d76=_0x5e6945;this[_0x291d76(0x233)](_0x63e2e0(this[_0x291d76(0x23a)],_0x291d76(0x1f2)),this[_0x291d76(0x23e)])[_0x291d76(0x221)](()=>{const _0x340986=_0x291d76;this[_0x340986(0x22b)](_0x340986(0x21f),{'id':this['id']});});});const _0x561527=new _0x363e36(this[_0x5e6945(0x23a)]),_0x3f2505=new _0x37f6b0(this[_0x5e6945(0x23a)]);_0x3f2505[_0x5e6945(0x22a)][_0x5e6945(0x213)](_0x45cadc);const _0x31eff6=new _0x37f6b0(this[_0x5e6945(0x23a)]);return _0x31eff6[_0x5e6945(0x22a)][_0x5e6945(0x213)](_0x4b8be0),_0x561527[_0x5e6945(0x220)][_0x5e6945(0x1fc)]([_0x3f2505,_0x31eff6]),_0x53c1be[_0x5e6945(0x213)](_0x561527),_0x2d3078;}[_0x4d4571(0x1f0)](_0x519a1a,_0x49cfc7){const _0x279a87=_0x4d4571,_0x6e4c46=new _0x5c6e63(_0x519a1a),_0x344c2f=_0x6e4c46[_0x279a87(0x232)];return _0x6e4c46[_0x279a87(0x1eb)]=_0x49cfc7,_0x6e4c46[_0x279a87(0x230)]({'on':{'keydown':_0x344c2f['to'](_0x1c7829=>{const _0x29c9db=_0x279a87;_0x29c9db(0x241)==_0x1c7829[_0x29c9db(0x209)]&&this[_0x29c9db(0x231)](_0x6e4c46);})}}),_0x6e4c46;}[_0x4d4571(0x203)](_0x225821,_0x2b7ea6){const _0x5753bf=_0x4d4571,_0x319b5c=new _0x474f70(_0x225821);return _0x319b5c[_0x5753bf(0x206)]({'icon':_0x4be2b4,'withText':!0x1,'tooltip':_0x63e2e0(_0x225821,_0x5753bf(0x23c))}),_0x319b5c[_0x5753bf(0x230)]({'attributes':{'class':[_0x5753bf(0x234)]}}),_0x319b5c['on'](_0x5753bf(0x21c),()=>{const _0x2e1da4=_0x5753bf;this[_0x2e1da4(0x231)](_0x2b7ea6);}),_0x319b5c;}[_0x4d4571(0x231)](_0x34f14f){const _0x267466=_0x4d4571,_0x441e71=_0x34f14f[_0x267466(0x23e)][_0x267466(0x1eb)]||'';this[_0x267466(0x215)][_0x267466(0x1f1)]=_0x441e71,this[_0x267466(0x228)]=!0x1,this[_0x267466(0x22b)](_0x267466(0x227),{'id':this['id'],'title':_0x441e71});}[_0x4d4571(0x219)](_0x3e695a,_0x4ada9f){const _0x31c96b=_0x4d4571,_0x49ba43=new _0x474f70(_0x3e695a);return _0x49ba43[_0x31c96b(0x206)]({'icon':_0x2ee807,'withText':!0x1,'tooltip':_0x63e2e0(_0x3e695a,_0x31c96b(0x238))}),_0x49ba43[_0x31c96b(0x230)]({'attributes':{'class':[_0x31c96b(0x223)]}}),_0x49ba43['on'](_0x31c96b(0x21c),()=>{const _0x178a15=_0x31c96b;this[_0x178a15(0x228)]=!0x1,_0x4ada9f[_0x178a15(0x1eb)]=this[_0x178a15(0x215)][_0x178a15(0x1f1)]||'',this[_0x178a15(0x22b)](_0x178a15(0x20d));}),_0x49ba43;}[_0x4d4571(0x200)](){const _0x3132c0=_0x4d4571,_0x385491=new _0x193780(_0x3132c0(0x22f));return _0x385491[_0x3132c0(0x1fe)]=!0x0,_0x385491;}[_0x4d4571(0x239)](_0x21aef0){const _0x464561=_0x4d4571;return this[_0x464561(0x215)]&&_0x464561(0x23d)==typeof this[_0x464561(0x215)][_0x464561(0x1f1)]&&this[_0x464561(0x215)][_0x464561(0x1f1)][_0x464561(0x235)](_0x21aef0)?{'title':!0x0}:null;}[_0x4d4571(0x240)](_0x5ece06){const _0xbb7e54=_0x4d4571;this[_0xbb7e54(0x215)][_0xbb7e54(0x240)](_0x5ece06);}}
23
+ const _0x1fb45f=_0x47c1;(function(_0x38c572,_0x3c9668){const _0x5a38bd=_0x47c1,_0x48a716=_0x38c572();while(!![]){try{const _0x538601=parseInt(_0x5a38bd(0xe5))/0x1*(parseInt(_0x5a38bd(0xb3))/0x2)+-parseInt(_0x5a38bd(0xa2))/0x3+-parseInt(_0x5a38bd(0xe7))/0x4*(parseInt(_0x5a38bd(0xe9))/0x5)+parseInt(_0x5a38bd(0xbe))/0x6+parseInt(_0x5a38bd(0xa8))/0x7+parseInt(_0x5a38bd(0xb1))/0x8+-parseInt(_0x5a38bd(0xcc))/0x9;if(_0x538601===_0x3c9668)break;else _0x48a716['push'](_0x48a716['shift']());}catch(_0x5b8a7e){_0x48a716['push'](_0x48a716['shift']());}}}(_0x47a8,0xb7e13));import{ListItemView as _0x1d332a,HighlightedTextView as _0x410c9c,ButtonView as _0xc454ce,ListView as _0x3f2d96,IconView as _0x1d76e6,createDropdown as _0x455a3b,InputTextView as _0x15e9c1}from'ckeditor5/src/ui.js';function _0x47a8(){const _0x5537ec=['editConversationTitle','extendTemplate','selectConversation','withText','ck-ai-chat-history__item-main-content','AI_CHAT_HISTORY_LOADING_REMOVING','children','add','ck-confirm-view-submit','3481470bnOkOQ','listitem','bindTemplate','AI_CHAT_HISTORY_CANCEL','AI_CHAT_HISTORY_REMOVE_CONFIRM','span','9889558Iwapnu','edit:cancel','ck-ai-chat-history__item-check-container','then','AI_CHAT_HISTORY_LOADING_UNPINNING','_createMenuDropdownView','ck-ai-chat-history__item-content','ck-ai-chat-history__item-title','ck-ai-chat-history__item-row','7319296FJBzBU','loadingState','1573778UtEZda','createCollection','isEdit','isMatching','isOn','label','showConfirm','AI_CHAT_HISTORY_EDIT_NAME','ck-ai-chat-history__item-date','clear','LOADING_LABELS','7679958BQXFQz','AI_CHAT_HISTORY_LOADING_PINNING','AI_CHAT_HISTORY_REMOVE','setConversationPinned','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','_commitEditInputValue','_createAcceptEditButtonView','AI_CHAT_HISTORY_PIN_BUTTON','isVisible','fire','tiny','value','_createSpinnerView','highlightText','20667735JaJLAp','focus','AI_CHAT_HISTORY_LOADING_RENAMING','addMany','ck-confirm-view-cancel','key','_createCancelEditButtonView','ck-ai-loader','bind','click','actions','match','_createEditInputView','ck-ai-chat-history__item','panelView','div','set','buttonView','updateTitle','removeConversation','element','_createCheckView','ck-ai-loader__text','ck-ai-chat-history__item-actions','ck-ai-chat-history__item--active','1jinlcM','_createPinButtonView','61504sGFcXh','ck-hidden','60aVCoZI','items','mainContent','locale','string','ck-ai-chat-history__item--edit','pinned','panelPosition','_titleView','updateLoadingState','change:isEdit','AI_CHAT_HISTORY_ACCEPT','setTemplate','text','ck-ai-chat-history__item-check','execute','Enter'];_0x47a8=function(){return _0x5537ec;};return _0x47a8();}function _0x47c1(_0x4afa79,_0x1e7580){const _0x47a836=_0x47a8();return _0x47c1=function(_0x47c13d,_0x4de33e){_0x47c13d=_0x47c13d-0x96;let _0x499d94=_0x47a836[_0x47c13d];return _0x499d94;},_0x47c1(_0x4afa79,_0x1e7580);}import{IconThreeHorizontalDots as _0x2edaf3,IconPin as _0x7c56fb,IconCheck as _0x3e8fde,IconCancel as _0x2727e6}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x3fb99d,ConfirmMixin as _0x44099c}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x13a139}from'es-toolkit/compat';import{AISpinnerView as _0x5e0ff5}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x14751d}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
+ _0x44099c(_0x1d332a){['id'];static [_0x1fb45f(0xbd)]={'remove':_0x1fb45f(0x9e),'rename':_0x1fb45f(0xce),'pin':_0x1fb45f(0xbf),'unpin':_0x1fb45f(0xac)};[_0x1fb45f(0xd6)];[_0x1fb45f(0xeb)];[_0x1fb45f(0xf1)];constructor(_0x5bb655,_0x420989){const _0x56a44b=_0x1fb45f;super(_0x5bb655);const _0x3be4c1=this[_0x56a44b(0xa4)];this[_0x56a44b(0xdc)](_0x56a44b(0xb5),!0x1),this[_0x56a44b(0xdc)](_0x56a44b(0xc6),!0x0),this[_0x56a44b(0xdc)](_0x56a44b(0xef),!!_0x420989[_0x56a44b(0xef)]),this[_0x56a44b(0xdc)](_0x56a44b(0xb2),null),this['id']=_0x420989['id'];const {title:_0x4991cf,createdAt:_0x469d8a,active:_0x2a671f=!0x1}=_0x420989;this[_0x56a44b(0xf1)]=new _0x410c9c(),this[_0x56a44b(0xf1)][_0x56a44b(0xf6)]=_0x4991cf,this[_0x56a44b(0xf1)][_0x56a44b(0x9a)]({'attributes':{'class':[_0x56a44b(0xaf)]}});const _0x3cd8fa=this[_0x56a44b(0xe1)](),_0x40348b=this[_0x56a44b(0xe6)](_0x5bb655),_0x42e125=this[_0x56a44b(0xad)](),_0x1850c3=this[_0x56a44b(0xd8)](_0x5bb655,_0x4991cf),_0x2dcce1=this[_0x56a44b(0xc4)](_0x5bb655,_0x1850c3),_0x2edbf=this[_0x56a44b(0xd2)](_0x5bb655,_0x1850c3);this[_0x56a44b(0xd6)]=this[_0x56a44b(0xb4)](),this[_0x56a44b(0xeb)]=this[_0x56a44b(0xb4)](),this[_0x56a44b(0xeb)][_0x56a44b(0xa0)](this[_0x56a44b(0xf1)]),this[_0x56a44b(0xd6)][_0x56a44b(0xa0)](_0x40348b),this[_0x56a44b(0xd6)][_0x56a44b(0xa0)](_0x42e125),this['on'](_0x56a44b(0xf3),(_0x18433f,_0x2ff29b,_0x25e1c0)=>{const _0x5ab396=_0x56a44b;this[_0x5ab396(0xd6)][_0x5ab396(0xbc)](),this[_0x5ab396(0xeb)][_0x5ab396(0xbc)](),_0x25e1c0?(this[_0x5ab396(0xd6)][_0x5ab396(0xa0)](_0x2dcce1),this[_0x5ab396(0xd6)][_0x5ab396(0xa0)](_0x2edbf),this[_0x5ab396(0xeb)][_0x5ab396(0xa0)](_0x1850c3),_0x1850c3[_0x5ab396(0xe0)][_0x5ab396(0xcd)]()):(this[_0x5ab396(0xd6)][_0x5ab396(0xa0)](_0x40348b),this[_0x5ab396(0xd6)][_0x5ab396(0xa0)](_0x42e125),this[_0x5ab396(0xeb)][_0x5ab396(0xa0)](this[_0x5ab396(0xf1)]));}),this[_0x56a44b(0xf5)]({'tag':'li','attributes':{'class':[_0x56a44b(0xd9),_0x2a671f?_0x56a44b(0xe4):'',_0x3be4c1['if'](_0x56a44b(0xc6),_0x56a44b(0xe8),_0x5672ac=>!_0x5672ac),_0x3be4c1['if'](_0x56a44b(0xb5),_0x56a44b(0xee))],'role':_0x56a44b(0xa3)},'children':[{'tag':_0x56a44b(0xa7),'attributes':{'class':[_0x56a44b(0xaa)]},'children':[{'tag':_0x56a44b(0xdb),'attributes':{'class':[_0x56a44b(0x96),_0x3be4c1['if'](_0x56a44b(0xb2),_0x56a44b(0xe8),_0x5727d6=>!!_0x5727d6)]},'children':_0x2a671f?[_0x3cd8fa]:[]},{'tag':_0x56a44b(0xdb),'attributes':{'class':[_0x56a44b(0xd3),_0x3be4c1['if'](_0x56a44b(0xb2),_0x56a44b(0xe8),_0x23d357=>!_0x23d357)]},'children':[this[_0x56a44b(0xca)]()]}]},{'tag':_0x56a44b(0xdb),'attributes':{'class':[_0x56a44b(0xb0)]},'children':[{'tag':_0x56a44b(0xdb),'attributes':{'class':[_0x56a44b(0xae)]},'on':{'click':this[_0x56a44b(0xa4)]['to'](_0x56a44b(0xd5))},'children':[{'tag':_0x56a44b(0xdb),'attributes':{'class':[_0x56a44b(0x9d)]},'children':[{'tag':_0x56a44b(0xdb),'attributes':{'class':[_0x56a44b(0xaf),_0x3be4c1['if'](_0x56a44b(0xb2),_0x56a44b(0xe8),_0x56698a=>!!_0x56698a)]},'children':this[_0x56a44b(0xeb)]},{'tag':_0x56a44b(0xdb),'attributes':{'class':[_0x56a44b(0xe2),_0x3be4c1['if'](_0x56a44b(0xb2),_0x56a44b(0xe8),_0x23989b=>!_0x23989b)]},'children':[{'text':_0x3be4c1['to'](_0x56a44b(0xb2),_0x39df71=>_0x39df71?_0x14751d(this[_0x56a44b(0xec)],AIChatHistoryListItemView[_0x56a44b(0xbd)][_0x39df71]):'')}]}]},{'tag':_0x56a44b(0xa7),'attributes':{'class':[_0x56a44b(0xbb)]},'children':[_0x469d8a]}]},{'tag':_0x56a44b(0xdb),'attributes':{'class':[_0x56a44b(0xe3)]},'children':this[_0x56a44b(0xd6)]}]}]}),this['on'](_0x56a44b(0xd5),()=>{const _0x3e7b48=_0x56a44b;this[_0x3e7b48(0xb5)]||this[_0x3e7b48(0xc7)](_0x3e7b48(0x9b),{'id':this['id']});});}[_0x1fb45f(0xde)](_0x1d724d){const _0x60f448=_0x1fb45f;this[_0x60f448(0xf1)][_0x60f448(0xf6)]=_0x13a139(_0x1d724d);}[_0x1fb45f(0xf2)](_0x414efc,_0x303fa2){const _0x3d43d5=_0x1fb45f;this[_0x3d43d5(0xdc)](_0x3d43d5(0xb2),_0x303fa2?_0x414efc:null);}[_0x1fb45f(0xe1)](){const _0x4447ae=_0x1fb45f,_0xb679a4=new _0x1d76e6();return _0xb679a4[_0x4447ae(0xdc)]({'content':_0x3e8fde}),_0xb679a4;}[_0x1fb45f(0xe6)](_0x24cbcc){const _0x48fad9=_0x1fb45f,_0x3f5dcd=new _0xc454ce(_0x24cbcc);return _0x3f5dcd[_0x48fad9(0xdc)]({'label':_0x14751d(_0x24cbcc,_0x48fad9(0xc5)),'icon':_0x7c56fb,'withText':!0x1,'tooltip':!0x0}),_0x3f5dcd[_0x48fad9(0xd4)](_0x48fad9(0xb7))['to'](this,_0x48fad9(0xef)),_0x3f5dcd['on'](_0x48fad9(0x97),()=>{const _0x7abc7f=_0x48fad9,_0x4c1bd7=!this[_0x7abc7f(0xef)];this[_0x7abc7f(0xc7)](_0x7abc7f(0xc1),{'id':this['id'],'pinned':_0x4c1bd7});}),_0x3f5dcd;}[_0x1fb45f(0xad)](){const _0x6fcc30=_0x1fb45f,_0x20af18=_0x455a3b(this[_0x6fcc30(0xec)],_0x3fb99d),_0x548892=_0x20af18[_0x6fcc30(0xda)][_0x6fcc30(0x9f)];_0x20af18[_0x6fcc30(0xdd)][_0x6fcc30(0xdc)]({'label':_0x14751d(this[_0x6fcc30(0xec)],_0x6fcc30(0xc2)),'icon':_0x2edaf3}),_0x20af18[_0x6fcc30(0xf0)]='sw';const _0x12f897=new _0xc454ce(this[_0x6fcc30(0xec)]);_0x12f897[_0x6fcc30(0xb8)]=_0x14751d(this[_0x6fcc30(0xec)],_0x6fcc30(0xba)),_0x12f897[_0x6fcc30(0x9c)]=!0x0,_0x12f897['on'](_0x6fcc30(0x97),()=>{const _0x11a20f=_0x6fcc30;this[_0x11a20f(0xb5)]=!0x0;});const _0xcef8ca=new _0xc454ce(this[_0x6fcc30(0xec)]);_0xcef8ca[_0x6fcc30(0xb8)]=_0x14751d(this[_0x6fcc30(0xec)],_0x6fcc30(0xc0)),_0xcef8ca[_0x6fcc30(0x9c)]=!0x0,_0xcef8ca['on'](_0x6fcc30(0x97),()=>{const _0xbb3ef4=_0x6fcc30;this[_0xbb3ef4(0xb9)](_0x14751d(this[_0xbb3ef4(0xec)],_0xbb3ef4(0xa6)),this[_0xbb3ef4(0xe0)])[_0xbb3ef4(0xab)](()=>{const _0x154e09=_0xbb3ef4;this[_0x154e09(0xc7)](_0x154e09(0xdf),{'id':this['id']});});});const _0x32397b=new _0x3f2d96(this[_0x6fcc30(0xec)]),_0x5b291f=new _0x1d332a(this[_0x6fcc30(0xec)]);_0x5b291f[_0x6fcc30(0x9f)][_0x6fcc30(0xa0)](_0x12f897);const _0x5338e5=new _0x1d332a(this[_0x6fcc30(0xec)]);return _0x5338e5[_0x6fcc30(0x9f)][_0x6fcc30(0xa0)](_0xcef8ca),_0x32397b[_0x6fcc30(0xea)][_0x6fcc30(0xcf)]([_0x5b291f,_0x5338e5]),_0x548892[_0x6fcc30(0xa0)](_0x32397b),_0x20af18;}[_0x1fb45f(0xd8)](_0x41da53,_0xcee4b2){const _0x39ea42=_0x1fb45f,_0x3d6c20=new _0x15e9c1(_0x41da53),_0x49c2de=_0x3d6c20[_0x39ea42(0xa4)];return _0x3d6c20[_0x39ea42(0xc9)]=_0xcee4b2,_0x3d6c20[_0x39ea42(0x9a)]({'on':{'keydown':_0x49c2de['to'](_0x5b64b3=>{const _0x2d98b6=_0x39ea42;_0x2d98b6(0x98)==_0x5b64b3[_0x2d98b6(0xd1)]&&this[_0x2d98b6(0xc3)](_0x3d6c20);})}}),_0x3d6c20;}[_0x1fb45f(0xc4)](_0x15b310,_0x2c15b8){const _0x2cf0bc=_0x1fb45f,_0x25dd2b=new _0xc454ce(_0x15b310);return _0x25dd2b[_0x2cf0bc(0xdc)]({'icon':_0x3e8fde,'withText':!0x1,'tooltip':_0x14751d(_0x15b310,_0x2cf0bc(0xf4))}),_0x25dd2b[_0x2cf0bc(0x9a)]({'attributes':{'class':[_0x2cf0bc(0xa1)]}}),_0x25dd2b['on'](_0x2cf0bc(0x97),()=>{const _0x513656=_0x2cf0bc;this[_0x513656(0xc3)](_0x2c15b8);}),_0x25dd2b;}[_0x1fb45f(0xc3)](_0x44d3da){const _0x28d8e0=_0x1fb45f,_0x16c85c=_0x44d3da[_0x28d8e0(0xe0)][_0x28d8e0(0xc9)]||'';this[_0x28d8e0(0xf1)][_0x28d8e0(0xf6)]=_0x16c85c,this[_0x28d8e0(0xb5)]=!0x1,this[_0x28d8e0(0xc7)](_0x28d8e0(0x99),{'id':this['id'],'title':_0x16c85c});}[_0x1fb45f(0xd2)](_0x49b546,_0x5d48cc){const _0x2963c3=_0x1fb45f,_0x508819=new _0xc454ce(_0x49b546);return _0x508819[_0x2963c3(0xdc)]({'icon':_0x2727e6,'withText':!0x1,'tooltip':_0x14751d(_0x49b546,_0x2963c3(0xa5))}),_0x508819[_0x2963c3(0x9a)]({'attributes':{'class':[_0x2963c3(0xd0)]}}),_0x508819['on'](_0x2963c3(0x97),()=>{const _0x433530=_0x2963c3;this[_0x433530(0xb5)]=!0x1,_0x5d48cc[_0x433530(0xc9)]=this[_0x433530(0xf1)][_0x433530(0xf6)]||'',this[_0x433530(0xc7)](_0x433530(0xa9));}),_0x508819;}[_0x1fb45f(0xca)](){const _0x48157f=_0x1fb45f,_0x2194ac=new _0x5e0ff5(_0x48157f(0xc8));return _0x2194ac[_0x48157f(0xc6)]=!0x0,_0x2194ac;}[_0x1fb45f(0xb6)](_0x4c26ef){const _0x394951=_0x1fb45f;return this[_0x394951(0xf1)]&&_0x394951(0xed)==typeof this[_0x394951(0xf1)][_0x394951(0xf6)]&&this[_0x394951(0xf1)][_0x394951(0xf6)][_0x394951(0xd7)](_0x4c26ef)?{'title':!0x0}:null;}[_0x1fb45f(0xcb)](_0x1c05df){const _0x4e3113=_0x1fb45f;this[_0x4e3113(0xf1)][_0x4e3113(0xcb)](_0x1c05df);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x588e(){const _0x4f6153=['21416196eCyoXX','ck-ai-chat-history__section','addMany','2949222NnPvfF','isVisible','filter','set','removeItem','indexOf','bindTemplate','ck-ai-chat-history__section-title','length','2101lPGBLb','75470ECJtVn','502guBhxs','2641770MnsTvc','highlightText','setTemplate','926958XsWnca','itemsViews','_itemsListView','getItem','2024TSBbcx','remove','isMatching','div','title','splice','items','1481YTUAVM','37870OTedmX','5GifZFh','4XgZHmQ','find','ck-hidden'];_0x588e=function(){return _0x4f6153;};return _0x588e();}const _0x469c9b=_0x3831;function _0x3831(_0x5a90f8,_0x425496){const _0x588ece=_0x588e();return _0x3831=function(_0x383191,_0x187c0b){_0x383191=_0x383191-0x181;let _0x1645f1=_0x588ece[_0x383191];return _0x1645f1;},_0x3831(_0x5a90f8,_0x425496);}(function(_0x474cc5,_0x3b7d35){const _0x485d66=_0x3831,_0x2df645=_0x474cc5();while(!![]){try{const _0x348e28=parseInt(_0x485d66(0x1a2))/0x1*(parseInt(_0x485d66(0x193))/0x2)+parseInt(_0x485d66(0x197))/0x3*(-parseInt(_0x485d66(0x182))/0x4)+-parseInt(_0x485d66(0x181))/0x5*(parseInt(_0x485d66(0x188))/0x6)+parseInt(_0x485d66(0x1a3))/0x7*(parseInt(_0x485d66(0x19b))/0x8)+-parseInt(_0x485d66(0x194))/0x9+-parseInt(_0x485d66(0x192))/0xa*(parseInt(_0x485d66(0x191))/0xb)+parseInt(_0x485d66(0x185))/0xc;if(_0x348e28===_0x3b7d35)break;else _0x2df645['push'](_0x2df645['shift']());}catch(_0x3c522c){_0x2df645['push'](_0x2df645['shift']());}}}(_0x588e,0xf19ae));import{ListItemView as _0x145036,View as _0x31969c,ListView as _0x18120a}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x145036{[_0x469c9b(0x19f)];[_0x469c9b(0x198)];[_0x469c9b(0x199)];constructor(_0x346db5,{title:_0x353684,items:_0x18c6ec}){const _0x458229=_0x469c9b;super(_0x346db5);const _0x37b9ff=this[_0x458229(0x18e)];this[_0x458229(0x18b)](_0x458229(0x189),!0x0),this[_0x458229(0x19f)]=_0x353684,this[_0x458229(0x198)]=_0x18c6ec;const _0x401ce7=new _0x31969c(_0x346db5);_0x401ce7[_0x458229(0x196)]({'tag':_0x458229(0x19e),'attributes':{'class':[_0x458229(0x18f)]},'children':[this[_0x458229(0x19f)]]}),this[_0x458229(0x199)]=new _0x18120a(_0x346db5),this[_0x458229(0x199)][_0x458229(0x1a1)][_0x458229(0x187)](this[_0x458229(0x198)]),this[_0x458229(0x196)]({'tag':'li','attributes':{'class':[_0x458229(0x186),_0x37b9ff['if'](_0x458229(0x189),_0x458229(0x184),_0x1bda68=>!_0x1bda68)]},'children':[_0x401ce7,this[_0x458229(0x199)]]});}[_0x469c9b(0x18a)](_0x4a6c81){const _0x4bcbd2=_0x469c9b,_0x53b6ae=this[_0x4bcbd2(0x198)][_0x4bcbd2(0x190)];let _0x9ddecc=0x0;for(const _0x2c4057 of this[_0x4bcbd2(0x198)]){if(_0x4a6c81){const _0x3e441b=_0x2c4057[_0x4bcbd2(0x19d)](_0x4a6c81);_0x2c4057[_0x4bcbd2(0x189)]=!!_0x3e441b,_0x2c4057[_0x4bcbd2(0x195)](_0x4a6c81);}else _0x2c4057[_0x4bcbd2(0x189)]=!0x0,_0x2c4057[_0x4bcbd2(0x195)](null);_0x2c4057[_0x4bcbd2(0x189)]&&_0x9ddecc++;}return this[_0x4bcbd2(0x189)]=_0x9ddecc>0x0,{'resultsCount':_0x9ddecc,'totalItemsCount':_0x53b6ae};}[_0x469c9b(0x19a)](_0x25ed40){const _0x529d49=_0x469c9b;return this[_0x529d49(0x198)][_0x529d49(0x183)](_0x45cefa=>_0x45cefa['id']===_0x25ed40);}[_0x469c9b(0x18c)](_0x4bae2f){const _0x33ede3=_0x469c9b,_0x5752b1=this[_0x33ede3(0x198)][_0x33ede3(0x18d)](_0x4bae2f);-0x1!==_0x5752b1&&(this[_0x33ede3(0x198)][_0x33ede3(0x1a0)](_0x5752b1,0x1),this[_0x33ede3(0x199)][_0x33ede3(0x1a1)][_0x33ede3(0x19c)](_0x4bae2f));}}
23
+ function _0x1c14(_0x36393c,_0x4e5483){const _0x2bd4e6=_0x2bd4();return _0x1c14=function(_0x1c1463,_0x2acdff){_0x1c1463=_0x1c1463-0x1cb;let _0x27d275=_0x2bd4e6[_0x1c1463];return _0x27d275;},_0x1c14(_0x36393c,_0x4e5483);}const _0x4fc4fe=_0x1c14;(function(_0x52d04a,_0x386815){const _0xaff34d=_0x1c14,_0x579fdc=_0x52d04a();while(!![]){try{const _0x2423fe=parseInt(_0xaff34d(0x1df))/0x1+parseInt(_0xaff34d(0x1dd))/0x2*(parseInt(_0xaff34d(0x1de))/0x3)+parseInt(_0xaff34d(0x1d4))/0x4*(-parseInt(_0xaff34d(0x1d7))/0x5)+parseInt(_0xaff34d(0x1d3))/0x6+-parseInt(_0xaff34d(0x1e5))/0x7+-parseInt(_0xaff34d(0x1dc))/0x8+parseInt(_0xaff34d(0x1d0))/0x9;if(_0x2423fe===_0x386815)break;else _0x579fdc['push'](_0x579fdc['shift']());}catch(_0x5a48df){_0x579fdc['push'](_0x579fdc['shift']());}}}(_0x2bd4,0xd22b1));import{ListItemView as _0x3545c2,View as _0x3eb248,ListView as _0x198c31}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x3545c2{[_0x4fc4fe(0x1e9)];[_0x4fc4fe(0x1e4)];[_0x4fc4fe(0x1d8)];constructor(_0x3c4e0e,{title:_0x2384c9,items:_0x2e7a45}){const _0x1efe0d=_0x4fc4fe;super(_0x3c4e0e);const _0x47f5a0=this[_0x1efe0d(0x1cf)];this[_0x1efe0d(0x1e3)](_0x1efe0d(0x1ea),!0x0),this[_0x1efe0d(0x1e9)]=_0x2384c9,this[_0x1efe0d(0x1e4)]=_0x2e7a45;const _0x1a3bfb=new _0x3eb248(_0x3c4e0e);_0x1a3bfb[_0x1efe0d(0x1ce)]({'tag':_0x1efe0d(0x1d2),'attributes':{'class':[_0x1efe0d(0x1db)]},'children':[this[_0x1efe0d(0x1e9)]]}),this[_0x1efe0d(0x1d8)]=new _0x198c31(_0x3c4e0e),this[_0x1efe0d(0x1d8)][_0x1efe0d(0x1e2)][_0x1efe0d(0x1d6)](this[_0x1efe0d(0x1e4)]),this[_0x1efe0d(0x1ce)]({'tag':'li','attributes':{'class':[_0x1efe0d(0x1da),_0x47f5a0['if'](_0x1efe0d(0x1ea),_0x1efe0d(0x1e8),_0x564cef=>!_0x564cef)]},'children':[_0x1a3bfb,this[_0x1efe0d(0x1d8)]]});}[_0x4fc4fe(0x1cc)](_0x52f04b){const _0x18e805=_0x4fc4fe,_0xf8fc04=this[_0x18e805(0x1e4)][_0x18e805(0x1d1)];let _0x6a32d4=0x0;for(const _0x207451 of this[_0x18e805(0x1e4)]){if(_0x52f04b){const _0xc86dd=_0x207451[_0x18e805(0x1e7)](_0x52f04b);_0x207451[_0x18e805(0x1ea)]=!!_0xc86dd,_0x207451[_0x18e805(0x1d9)](_0x52f04b);}else _0x207451[_0x18e805(0x1ea)]=!0x0,_0x207451[_0x18e805(0x1d9)](null);_0x207451[_0x18e805(0x1ea)]&&_0x6a32d4++;}return this[_0x18e805(0x1ea)]=_0x6a32d4>0x0,{'resultsCount':_0x6a32d4,'totalItemsCount':_0xf8fc04};}[_0x4fc4fe(0x1cd)](_0x2957bb){const _0x3a5af1=_0x4fc4fe;return this[_0x3a5af1(0x1e4)][_0x3a5af1(0x1e6)](_0x41b854=>_0x41b854['id']===_0x2957bb);}[_0x4fc4fe(0x1e1)](_0x3cbe0b){const _0x1d61f5=_0x4fc4fe,_0xb3743e=this[_0x1d61f5(0x1e4)][_0x1d61f5(0x1cb)](_0x3cbe0b);-0x1!==_0xb3743e&&(this[_0x1d61f5(0x1e4)][_0x1d61f5(0x1d5)](_0xb3743e,0x1),this[_0x1d61f5(0x1d8)][_0x1d61f5(0x1e2)][_0x1d61f5(0x1e0)](_0x3cbe0b));}}function _0x2bd4(){const _0x4d56bf=['4anYYXC','splice','addMany','6572525OlxiBc','_itemsListView','highlightText','ck-ai-chat-history__section','ck-ai-chat-history__section-title','3347504IlqIIK','2AZTduz','894939NfvDDf','216459XUNkyl','remove','removeItem','items','set','itemsViews','10936548AjCqJa','find','isMatching','ck-hidden','title','isVisible','indexOf','filter','getItem','setTemplate','bindTemplate','26846964YXSRSr','length','div','3950328BTZdjp'];_0x2bd4=function(){return _0x4d56bf;};return _0x2bd4();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x208c18=_0x4f31;(function(_0x4da453,_0x2eb70a){const _0x21f72f=_0x4f31,_0x1b94bb=_0x4da453();while(!![]){try{const _0x471a8a=-parseInt(_0x21f72f(0x1e5))/0x1+-parseInt(_0x21f72f(0x1d9))/0x2+-parseInt(_0x21f72f(0x1e1))/0x3*(parseInt(_0x21f72f(0x1e0))/0x4)+-parseInt(_0x21f72f(0x1e6))/0x5*(-parseInt(_0x21f72f(0x1dc))/0x6)+parseInt(_0x21f72f(0x1e2))/0x7*(parseInt(_0x21f72f(0x1df))/0x8)+-parseInt(_0x21f72f(0x1db))/0x9*(-parseInt(_0x21f72f(0x1dd))/0xa)+-parseInt(_0x21f72f(0x1e4))/0xb*(parseInt(_0x21f72f(0x1ea))/0xc);if(_0x471a8a===_0x2eb70a)break;else _0x1b94bb['push'](_0x1b94bb['shift']());}catch(_0x37c0fd){_0x1b94bb['push'](_0x1b94bb['shift']());}}}(_0x4e09,0xdcd7f));import{ListView as _0x1db815}from'ckeditor5/src/ui.js';function _0x4f31(_0x120cf4,_0x3e87a0){const _0x4e09c5=_0x4e09();return _0x4f31=function(_0x4f31a6,_0x10ac20){_0x4f31a6=_0x4f31a6-0x1d9;let _0x5b9d29=_0x4e09c5[_0x4f31a6];return _0x5b9d29;},_0x4f31(_0x120cf4,_0x3e87a0);}function _0x4e09(){const _0x296b6c=['3575GWCYnp','1610413mInfNV','2898655kSplsm','ck-ai-chat-history__sections','items','filter','564AoLWoi','703146jbSjGH','extendTemplate','133029NfAzkE','12MYBDMu','930SyASex','addMany','3208aFFCdj','1967812dQDSbY','3owKwrJ','14658LYwXFv','sections'];_0x4e09=function(){return _0x296b6c;};return _0x4e09();}export class AIChatHistorySectionListView extends _0x1db815{[_0x208c18(0x1e3)];constructor(_0x4ee320,_0x26cb34){const _0x184103=_0x208c18;super(_0x4ee320),this[_0x184103(0x1e3)]=_0x26cb34,this[_0x184103(0x1e8)][_0x184103(0x1de)](this[_0x184103(0x1e3)]),this[_0x184103(0x1da)]({'attributes':{'class':[_0x184103(0x1e7)]}});}[_0x208c18(0x1e9)](_0x433d7e){const _0x430e20=_0x208c18;let _0x22ec31=0x0,_0x5056a3=0x0;for(const _0x34c433 of this[_0x430e20(0x1e3)]){const {resultsCount:_0x48cf21,totalItemsCount:_0xac9e0b}=_0x34c433[_0x430e20(0x1e9)](_0x433d7e);_0x22ec31+=_0x48cf21,_0x5056a3+=_0xac9e0b;}return{'resultsCount':_0x22ec31,'totalItemsCount':_0x5056a3};}}
23
+ const _0x42b2be=_0x410d;(function(_0x473487,_0x3c401e){const _0x15e99b=_0x410d,_0x55c804=_0x473487();while(!![]){try{const _0x56f32a=parseInt(_0x15e99b(0x112))/0x1*(-parseInt(_0x15e99b(0x10c))/0x2)+parseInt(_0x15e99b(0x10e))/0x3+-parseInt(_0x15e99b(0x113))/0x4+parseInt(_0x15e99b(0x110))/0x5*(-parseInt(_0x15e99b(0x118))/0x6)+parseInt(_0x15e99b(0x10a))/0x7+parseInt(_0x15e99b(0x10d))/0x8*(parseInt(_0x15e99b(0x115))/0x9)+parseInt(_0x15e99b(0x114))/0xa;if(_0x56f32a===_0x3c401e)break;else _0x55c804['push'](_0x55c804['shift']());}catch(_0x399a4d){_0x55c804['push'](_0x55c804['shift']());}}}(_0x479e,0x1c4a3));function _0x410d(_0x263b64,_0x16e766){const _0x479efa=_0x479e();return _0x410d=function(_0x410dfb,_0x5e6b69){_0x410dfb=_0x410dfb-0x109;let _0x53b35f=_0x479efa[_0x410dfb];return _0x53b35f;},_0x410d(_0x263b64,_0x16e766);}function _0x479e(){const _0x2f70b7=['filter','50119aymtiC','849220avGJTx','3270830bFivIv','889281GiKKYw','ck-ai-chat-history__sections','extendTemplate','18VIykNI','items','1094170QZsJtz','sections','6TQFUSW','8pemQde','325314DfnAGU','addMany','353505VNyzVu'];_0x479e=function(){return _0x2f70b7;};return _0x479e();}import{ListView as _0x5d78c6}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x5d78c6{[_0x42b2be(0x10b)];constructor(_0x3e4574,_0x3bfcc0){const _0x120c92=_0x42b2be;super(_0x3e4574),this[_0x120c92(0x10b)]=_0x3bfcc0,this[_0x120c92(0x109)][_0x120c92(0x10f)](this[_0x120c92(0x10b)]),this[_0x120c92(0x117)]({'attributes':{'class':[_0x120c92(0x116)]}});}[_0x42b2be(0x111)](_0x3f7a22){const _0x377382=_0x42b2be;let _0xf96b28=0x0,_0x1be4e0=0x0;for(const _0x26ab8d of this[_0x377382(0x10b)]){const {resultsCount:_0x3f8ca5,totalItemsCount:_0x1f623d}=_0x26ab8d[_0x377382(0x111)](_0x3f7a22);_0xf96b28+=_0x3f8ca5,_0x1be4e0+=_0x1f623d;}return{'resultsCount':_0xf96b28,'totalItemsCount':_0x1be4e0};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x37f596=_0x2893;(function(_0xec30fb,_0x41b29d){const _0x2d8f05=_0x2893,_0x464382=_0xec30fb();while(!![]){try{const _0x29f07c=parseInt(_0x2d8f05(0x12c))/0x1+-parseInt(_0x2d8f05(0x135))/0x2+parseInt(_0x2d8f05(0x13e))/0x3+-parseInt(_0x2d8f05(0x147))/0x4+parseInt(_0x2d8f05(0x13f))/0x5*(-parseInt(_0x2d8f05(0x155))/0x6)+parseInt(_0x2d8f05(0x156))/0x7*(parseInt(_0x2d8f05(0x15e))/0x8)+-parseInt(_0x2d8f05(0x169))/0x9*(-parseInt(_0x2d8f05(0x121))/0xa);if(_0x29f07c===_0x41b29d)break;else _0x464382['push'](_0x464382['shift']());}catch(_0x18f504){_0x464382['push'](_0x464382['shift']());}}}(_0x428c,0x3bd86));import{View as _0x45f2bc,SearchTextView as _0x4e76bd,FormHeaderView as _0x3afe3b,ButtonView as _0x47136c}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x5a65f0,IconCancel as _0x135f2d,IconPlus as _0x47656f}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0xfd5b67}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0xbf3f86}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x5b0950}from'./aichathistorylistitemview.js';function _0x2893(_0x2c73d9,_0x2883af){const _0x428cab=_0x428c();return _0x2893=function(_0x289310,_0x1d47c1){_0x289310=_0x289310-0x119;let _0x3ff60a=_0x428cab[_0x289310];return _0x3ff60a;},_0x2893(_0x2c73d9,_0x2883af);}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3e06ba}from'../aichathistoryui.js';function _0x428c(){const _0x1eddd5=['253842KrkRcV','236180WcQEkE','isMaximized','set','removeItem','items','queryView','emptyView','setTemplate','1656288IdeKmA','skeletonView','ck-ai-chat-history__empty','isEmptyViewVisible','addMany','ck-ai-notification_error__dismiss-button','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','fire','openChat','AI_CHAT_HISTORY_HEADING','some','delegate','errorMessage','ck-ai-chat-history__content','48DGZFug','301xjoaDC','change:isLoading','_createEmptyStateView','removeHistoryItem','remove','title','ck-ai-notification','change:errorMessage','61064VYbiMi','_createErrorView','updateItemLoadingState','length','ck-reset_all','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','sectionsView','mainErrorView','sections','ck-ai-chat-history__empty-message','itemsViews','1679121JCDaxp','clear','getItem','extendTemplate','isLoading','fieldView','resizeButton','searchView','children','bindTemplate','updateLoadingState','change:hasItems','locale','render','_createSearchView','AI_CHAT_HISTORY_EMPTY_MESSAGE','add','hasItems','isVisible','execute','ck-ai-notification_error','20XChajo','isSearchViewVisible','_refreshSearch','value','push','search','indexOf','AI_CHAT_LABEL_NEW_CHAT','aiHistory','updateHistoryItemsWithCategories','element','297601gNLJnS','AI_CHAT_HISTORY_SEARCH_LABEL','ck-ai-chat__start-conversation','bind','_updateViewVisibility','updateItemTitle','_createSkeletonView','isMainErrorViewVisible','ltr','92972nDLBCw','updateTitle','div','_createListItemViews','ck-ai-header\x20ck-ai-header_history','splice','ck-ai-chat-history','ck-hidden','ck-rounded-corners'];_0x428c=function(){return _0x1eddd5;};return _0x428c();}import{AISkeletonView as _0xa1e543,SKELETON_DEFINITIONS as _0xed0d08}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x4e4a83}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x572a36}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x45f2bc{[_0x37f596(0x170)];[_0x37f596(0x165)];[_0x37f596(0x148)];[_0x37f596(0x145)];[_0x37f596(0x164)];[_0x37f596(0x16f)];constructor(_0x580660,_0x2d26da){const _0x4a0337=_0x37f596;super(_0x580660),this[_0x4a0337(0x141)](_0x4a0337(0x11d),!0x1),this[_0x4a0337(0x141)](_0x4a0337(0x16d),!0x0),this[_0x4a0337(0x141)](_0x4a0337(0x153),''),this[_0x4a0337(0x141)](_0x4a0337(0x140),!0x1),this[_0x4a0337(0x141)](_0x4a0337(0x122),!0x1),this[_0x4a0337(0x141)](_0x4a0337(0x14a),!0x1),this[_0x4a0337(0x141)](_0x4a0337(0x133),!0x1);const _0x22515a=new _0x3afe3b(_0x580660,{'label':_0x572a36(_0x580660,_0x4a0337(0x150)),'icon':_0x5a65f0,'class':_0x4a0337(0x139)});_0x2d26da&&(this[_0x4a0337(0x16f)]=_0x4e4a83(_0x580660,this),_0x22515a[_0x4a0337(0x171)][_0x4a0337(0x11c)](this[_0x4a0337(0x16f)])),this[_0x4a0337(0x164)]=new _0xfd5b67(_0x580660,[]),this[_0x4a0337(0x164)][_0x4a0337(0x152)](..._0x3e06ba)['to'](this),this[_0x4a0337(0x165)]=this[_0x4a0337(0x15f)](),this[_0x4a0337(0x148)]=this[_0x4a0337(0x132)](),this[_0x4a0337(0x145)]=this[_0x4a0337(0x158)](),this[_0x4a0337(0x170)]=this[_0x4a0337(0x11a)](),this[_0x4a0337(0x165)][_0x4a0337(0x16c)]({'attributes':{'class':[this[_0x4a0337(0x172)]['if'](_0x4a0337(0x133),_0x4a0337(0x13c),_0x2268d4=>!_0x2268d4)]}}),this['on'](_0x4a0337(0x157),()=>this[_0x4a0337(0x130)]()),this['on'](_0x4a0337(0x174),()=>this[_0x4a0337(0x130)]()),this['on'](_0x4a0337(0x15d),()=>this[_0x4a0337(0x130)]()),this[_0x4a0337(0x146)]({'tag':_0x4a0337(0x137),'attributes':{'class':['ck',_0x4a0337(0x162),_0x4a0337(0x13b),_0x4a0337(0x13d)],'dir':_0x4a0337(0x134)},'children':[_0x22515a,{'tag':_0x4a0337(0x137),'attributes':{'class':[_0x4a0337(0x154)]},'children':[this[_0x4a0337(0x148)],this[_0x4a0337(0x165)],this[_0x4a0337(0x145)],this[_0x4a0337(0x170)]]}]});}[_0x37f596(0x130)](){const _0x491023=_0x37f596;this[_0x491023(0x122)]=!this[_0x491023(0x16d)]&&this[_0x491023(0x11d)],this[_0x491023(0x14a)]=!this[_0x491023(0x16d)]&&!this[_0x491023(0x11d)]&&!this[_0x491023(0x153)],this[_0x491023(0x133)]=!this[_0x491023(0x122)]&&!!this[_0x491023(0x153)];}[_0x37f596(0x11a)](){const _0x17487b=_0x37f596,_0x12b872=new _0x4e76bd(this[_0x17487b(0x175)],{'filteredView':this[_0x17487b(0x164)],'queryView':{'label':_0x572a36(this[_0x17487b(0x175)],_0x17487b(0x12d))},'infoView':{'text':{'notFound':{'primary':_0x308faf=>_0x572a36(this[_0x17487b(0x175)],_0x17487b(0x14d),_0x308faf),'secondary':_0x572a36(this[_0x17487b(0x175)],_0x17487b(0x163))}}}}),_0x29f073=this[_0x17487b(0x15f)]();return _0x29f073[_0x17487b(0x16c)]({'attributes':{'class':[this[_0x17487b(0x172)]['if'](_0x17487b(0x153),_0x17487b(0x13c),_0x208dfc=>!_0x208dfc)]}}),_0x12b872['on'](_0x17487b(0x119),()=>{const _0x4857ca=_0x17487b;_0x12b872[_0x4857ca(0x171)][_0x4857ca(0x11c)](_0x29f073,0x1);}),_0x12b872[_0x17487b(0x16c)]({'attributes':{'class':[this[_0x17487b(0x172)]['if'](_0x17487b(0x122),_0x17487b(0x13c),_0x1828c8=>!_0x1828c8)]}}),_0x12b872;}[_0x37f596(0x132)](){const _0xe391da=_0x37f596,_0x29b140=new _0xa1e543(this[_0xe391da(0x175)],_0xed0d08[_0xe391da(0x129)]);return _0x29b140[_0xe391da(0x16c)]({'attributes':{'class':[this[_0xe391da(0x172)]['if'](_0xe391da(0x16d),_0xe391da(0x13c),_0x19c9b4=>!_0x19c9b4)]}}),_0x29b140;}[_0x37f596(0x15f)](){const _0x1a3bcc=_0x37f596,_0x5972cd=new _0x45f2bc(this[_0x1a3bcc(0x175)]),_0x16b1fb=new _0x47136c(this[_0x1a3bcc(0x175)]);_0x16b1fb[_0x1a3bcc(0x141)]({'withText':!0x1,'icon':_0x135f2d,'class':_0x1a3bcc(0x14c)}),_0x16b1fb[_0x1a3bcc(0x12f)](_0x1a3bcc(0x11e))['to'](this,_0x1a3bcc(0x11d),_0x51b2d7=>!!_0x51b2d7),_0x16b1fb['on'](_0x1a3bcc(0x11f),()=>{const _0x932e14=_0x1a3bcc;this[_0x932e14(0x153)]='';});const _0x2f92e2=this[_0x1a3bcc(0x172)];return _0x5972cd[_0x1a3bcc(0x146)]({'tag':_0x1a3bcc(0x137),'attributes':{'class':['ck',_0x1a3bcc(0x15c),_0x1a3bcc(0x120)]},'children':[{'tag':'p','children':[{'text':_0x2f92e2['to'](_0x1a3bcc(0x153))}]},_0x16b1fb]}),_0x5972cd;}[_0x37f596(0x158)](){const _0x46a3bc=_0x37f596,_0xd54ed3=new _0x47136c(this[_0x46a3bc(0x175)]);_0xd54ed3[_0x46a3bc(0x141)]({'label':_0x572a36(this[_0x46a3bc(0x175)],_0x46a3bc(0x128)),'withText':!0x0,'icon':_0x47656f,'class':_0x46a3bc(0x12e)}),_0xd54ed3['on'](_0x46a3bc(0x11f),()=>{const _0x47db70=_0x46a3bc;this[_0x47db70(0x14e)](_0x47db70(0x14f));});const _0x14ab30=new _0x45f2bc(this[_0x46a3bc(0x175)]);return _0x14ab30[_0x46a3bc(0x146)]({'tag':_0x46a3bc(0x137),'attributes':{'class':[_0x46a3bc(0x149),this[_0x46a3bc(0x172)]['if'](_0x46a3bc(0x14a),_0x46a3bc(0x13c),_0x404c3b=>!_0x404c3b)]},'children':[{'tag':'p','attributes':{'class':[_0x46a3bc(0x167)]},'children':[_0x572a36(this[_0x46a3bc(0x175)],_0x46a3bc(0x11b))]},_0xd54ed3]}),_0x14ab30;}[_0x37f596(0x138)](_0x29eef3,_0x1181fc){const _0x332e26=_0x37f596,_0x50206e=[];for(const _0xd51cca of _0x29eef3){const _0x1baae1=new _0x5b0950(_0x1181fc,_0xd51cca);_0x1baae1[_0x332e26(0x152)](..._0x3e06ba)['to'](this),_0x50206e[_0x332e26(0x125)](_0x1baae1);}return _0x50206e;}[_0x37f596(0x12a)](_0xdb6975){const _0x3622fd=_0x37f596,_0x362405=this[_0x3622fd(0x175)]||'en',_0x5cba96=[];for(const _0x55a928 of _0xdb6975){const _0x351664=this[_0x3622fd(0x138)](_0x55a928[_0x3622fd(0x143)],_0x362405);_0x5cba96[_0x3622fd(0x125)](new _0xbf3f86(_0x362405,{'title':_0x55a928[_0x3622fd(0x15b)],'items':_0x351664}));}this[_0x3622fd(0x164)][_0x3622fd(0x166)]=_0x5cba96,this[_0x3622fd(0x164)][_0x3622fd(0x143)][_0x3622fd(0x16a)](),this[_0x3622fd(0x164)][_0x3622fd(0x143)][_0x3622fd(0x14b)](_0x5cba96),this[_0x3622fd(0x11d)]=_0xdb6975[_0x3622fd(0x151)](_0x12c467=>_0x12c467[_0x3622fd(0x143)][_0x3622fd(0x161)]>0x0),this[_0x3622fd(0x123)]();}[_0x37f596(0x159)](_0x166d92){const _0x5dce56=_0x37f596;for(const _0x4da890 of this[_0x5dce56(0x164)][_0x5dce56(0x166)]){const _0x4ef4a1=_0x4da890[_0x5dce56(0x16b)](_0x166d92);if(_0x4ef4a1){if(_0x4da890[_0x5dce56(0x142)](_0x4ef4a1),0x0===_0x4da890[_0x5dce56(0x168)][_0x5dce56(0x161)]){const _0x1cbfd2=this[_0x5dce56(0x164)][_0x5dce56(0x166)][_0x5dce56(0x127)](_0x4da890);-0x1!==_0x1cbfd2&&(this[_0x5dce56(0x164)][_0x5dce56(0x166)][_0x5dce56(0x13a)](_0x1cbfd2,0x1),this[_0x5dce56(0x164)][_0x5dce56(0x143)][_0x5dce56(0x15a)](_0x4da890));}this[_0x5dce56(0x11d)]=this[_0x5dce56(0x164)][_0x5dce56(0x166)][_0x5dce56(0x161)]>0x0,this[_0x5dce56(0x123)]();break;}}}[_0x37f596(0x131)](_0x4fc99a,_0x2329a9){const _0x56353f=_0x37f596;for(const _0x4cf86b of this[_0x56353f(0x164)][_0x56353f(0x166)]){const _0x804169=_0x4cf86b[_0x56353f(0x16b)](_0x4fc99a);if(_0x804169){_0x804169[_0x56353f(0x136)](_0x2329a9);break;}}}[_0x37f596(0x160)](_0x4baf5e,_0x4eb411,_0x41aa4c){const _0x175d5c=_0x37f596;for(const _0x1a1e78 of this[_0x175d5c(0x164)][_0x175d5c(0x166)]){const _0x4a4084=_0x1a1e78[_0x175d5c(0x16b)](_0x4baf5e);if(_0x4a4084){_0x4a4084[_0x175d5c(0x173)](_0x4eb411,_0x41aa4c);break;}}}[_0x37f596(0x123)](){const _0x1274dd=_0x37f596;if(this[_0x1274dd(0x11d)]){const _0x54191f=this[_0x1274dd(0x170)][_0x1274dd(0x144)][_0x1274dd(0x16e)]?.[_0x1274dd(0x12b)]?.[_0x1274dd(0x124)]||'';this[_0x1274dd(0x170)][_0x1274dd(0x126)](_0x54191f);}}}
23
+ function _0x1ee2(_0x14a00e,_0x343f48){const _0x9b9881=_0x9b98();return _0x1ee2=function(_0x1ee2f1,_0x58e5dc){_0x1ee2f1=_0x1ee2f1-0x1de;let _0x15fe7e=_0x9b9881[_0x1ee2f1];return _0x15fe7e;},_0x1ee2(_0x14a00e,_0x343f48);}const _0x5281ac=_0x1ee2;(function(_0x2575dc,_0x5dc181){const _0xace6fd=_0x1ee2,_0x477f9e=_0x2575dc();while(!![]){try{const _0x146083=-parseInt(_0xace6fd(0x225))/0x1*(-parseInt(_0xace6fd(0x22e))/0x2)+-parseInt(_0xace6fd(0x223))/0x3*(-parseInt(_0xace6fd(0x20f))/0x4)+parseInt(_0xace6fd(0x232))/0x5*(-parseInt(_0xace6fd(0x20a))/0x6)+parseInt(_0xace6fd(0x22b))/0x7+parseInt(_0xace6fd(0x1ff))/0x8+parseInt(_0xace6fd(0x1ee))/0x9*(-parseInt(_0xace6fd(0x1e4))/0xa)+parseInt(_0xace6fd(0x220))/0xb*(-parseInt(_0xace6fd(0x205))/0xc);if(_0x146083===_0x5dc181)break;else _0x477f9e['push'](_0x477f9e['shift']());}catch(_0x3aaa10){_0x477f9e['push'](_0x477f9e['shift']());}}}(_0x9b98,0xb8c9e));import{View as _0xcf2616,SearchTextView as _0x23c086,FormHeaderView as _0x226995,ButtonView as _0x7e8ec2}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x1588f5,IconCancel as _0x511448,IconPlus as _0x4f4646}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x2d7446}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x1dc54c}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x164237}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x4fa433}from'../aichathistoryui.js';function _0x9b98(){const _0x3c0b09=['isLoading','946059MrVbGv','_refreshSearch','517156QGFQLa','AI_CHAT_LABEL_NEW_CHAT','resizeButton','AI_CHAT_HISTORY_SEARCH_LABEL','isMainErrorViewVisible','_createListItemViews','1811887Rdwsrs','updateHistoryItemsWithCategories','updateLoadingState','4NUUXow','updateItemLoadingState','fieldView','isEmptyViewVisible','5269000NwDmVP','removeHistoryItem','fire','children','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-hidden','ck-rounded-corners','updateItemTitle','aiHistory','length','_createSearchView','addMany','bindTemplate','ck-ai-chat__start-conversation','updateTitle','ck-ai-chat-history__empty','render','10FsMvJk','sections','emptyView','_createSkeletonView','_updateViewVisibility','ck-ai-notification','delegate','itemsViews','ck-reset_all','ck-ai-header\x20ck-ai-header_history','7411302YucilD','extendTemplate','ck-ai-chat-history','ck-ai-chat-history__empty-message','errorMessage','title','element','value','items','setTemplate','removeItem','change:errorMessage','splice','change:isLoading','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','clear','div','8365664NTkydi','queryView','skeletonView','add','getItem','search','185928ZkEKLm','ck-ai-notification_error','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','_createEmptyStateView','change:hasItems','6mNpyLB','searchView','execute','AI_CHAT_HISTORY_HEADING','mainErrorView','12FnJHRj','remove','isSearchViewVisible','set','some','ck-ai-notification_error__dismiss-button','ltr','isVisible','_createErrorView','openChat','hasItems','ck-ai-chat-history__content','locale','push','isMaximized','bind','indexOf','462IDnIla','sectionsView'];_0x9b98=function(){return _0x3c0b09;};return _0x9b98();}import{AISkeletonView as _0x4af8b5,SKELETON_DEFINITIONS as _0x57c80d}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x3e2ff7}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x172c3e}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0xcf2616{[_0x5281ac(0x20b)];[_0x5281ac(0x20e)];[_0x5281ac(0x201)];[_0x5281ac(0x1e6)];[_0x5281ac(0x221)];[_0x5281ac(0x227)];constructor(_0x427d91,_0x168e1a){const _0x46bc50=_0x5281ac;super(_0x427d91),this[_0x46bc50(0x212)](_0x46bc50(0x219),!0x1),this[_0x46bc50(0x212)](_0x46bc50(0x222),!0x0),this[_0x46bc50(0x212)](_0x46bc50(0x1f2),''),this[_0x46bc50(0x212)](_0x46bc50(0x21d),!0x1),this[_0x46bc50(0x212)](_0x46bc50(0x211),!0x1),this[_0x46bc50(0x212)](_0x46bc50(0x231),!0x1),this[_0x46bc50(0x212)](_0x46bc50(0x229),!0x1);const _0x13128a=new _0x226995(_0x427d91,{'label':_0x172c3e(_0x427d91,_0x46bc50(0x20d)),'icon':_0x1588f5,'class':_0x46bc50(0x1ed)});_0x168e1a&&(this[_0x46bc50(0x227)]=_0x3e2ff7(_0x427d91,this),_0x13128a[_0x46bc50(0x235)][_0x46bc50(0x202)](this[_0x46bc50(0x227)])),this[_0x46bc50(0x221)]=new _0x2d7446(_0x427d91,[]),this[_0x46bc50(0x221)][_0x46bc50(0x1ea)](..._0x4fa433)['to'](this),this[_0x46bc50(0x20e)]=this[_0x46bc50(0x217)](),this[_0x46bc50(0x201)]=this[_0x46bc50(0x1e7)](),this[_0x46bc50(0x1e6)]=this[_0x46bc50(0x208)](),this[_0x46bc50(0x20b)]=this[_0x46bc50(0x23c)](),this[_0x46bc50(0x20e)][_0x46bc50(0x1ef)]({'attributes':{'class':[this[_0x46bc50(0x1df)]['if'](_0x46bc50(0x229),_0x46bc50(0x237),_0x94b10c=>!_0x94b10c)]}}),this['on'](_0x46bc50(0x1fb),()=>this[_0x46bc50(0x1e8)]()),this['on'](_0x46bc50(0x209),()=>this[_0x46bc50(0x1e8)]()),this['on'](_0x46bc50(0x1f9),()=>this[_0x46bc50(0x1e8)]()),this[_0x46bc50(0x1f7)]({'tag':_0x46bc50(0x1fe),'attributes':{'class':['ck',_0x46bc50(0x1ec),_0x46bc50(0x1f0),_0x46bc50(0x238)],'dir':_0x46bc50(0x215)},'children':[_0x13128a,{'tag':_0x46bc50(0x1fe),'attributes':{'class':[_0x46bc50(0x21a)]},'children':[this[_0x46bc50(0x201)],this[_0x46bc50(0x20e)],this[_0x46bc50(0x1e6)],this[_0x46bc50(0x20b)]]}]});}[_0x5281ac(0x1e8)](){const _0x18dc5d=_0x5281ac;this[_0x18dc5d(0x211)]=!this[_0x18dc5d(0x222)]&&this[_0x18dc5d(0x219)],this[_0x18dc5d(0x231)]=!this[_0x18dc5d(0x222)]&&!this[_0x18dc5d(0x219)]&&!this[_0x18dc5d(0x1f2)],this[_0x18dc5d(0x229)]=!this[_0x18dc5d(0x211)]&&!!this[_0x18dc5d(0x1f2)];}[_0x5281ac(0x23c)](){const _0x45ecb6=_0x5281ac,_0x8005d0=new _0x23c086(this[_0x45ecb6(0x21b)],{'filteredView':this[_0x45ecb6(0x221)],'queryView':{'label':_0x172c3e(this[_0x45ecb6(0x21b)],_0x45ecb6(0x228))},'infoView':{'text':{'notFound':{'primary':_0x5d238e=>_0x172c3e(this[_0x45ecb6(0x21b)],_0x45ecb6(0x1fc),_0x5d238e),'secondary':_0x172c3e(this[_0x45ecb6(0x21b)],_0x45ecb6(0x207))}}}}),_0x44d872=this[_0x45ecb6(0x217)]();return _0x44d872[_0x45ecb6(0x1ef)]({'attributes':{'class':[this[_0x45ecb6(0x1df)]['if'](_0x45ecb6(0x1f2),_0x45ecb6(0x237),_0x5a1331=>!_0x5a1331)]}}),_0x8005d0['on'](_0x45ecb6(0x1e3),()=>{const _0x5e32e9=_0x45ecb6;_0x8005d0[_0x5e32e9(0x235)][_0x5e32e9(0x202)](_0x44d872,0x1);}),_0x8005d0[_0x45ecb6(0x1ef)]({'attributes':{'class':[this[_0x45ecb6(0x1df)]['if'](_0x45ecb6(0x211),_0x45ecb6(0x237),_0x4c16cb=>!_0x4c16cb)]}}),_0x8005d0;}[_0x5281ac(0x1e7)](){const _0x47008f=_0x5281ac,_0x222e5b=new _0x4af8b5(this[_0x47008f(0x21b)],_0x57c80d[_0x47008f(0x23a)]);return _0x222e5b[_0x47008f(0x1ef)]({'attributes':{'class':[this[_0x47008f(0x1df)]['if'](_0x47008f(0x222),_0x47008f(0x237),_0x29e786=>!_0x29e786)]}}),_0x222e5b;}[_0x5281ac(0x217)](){const _0x2e3c65=_0x5281ac,_0x3ab428=new _0xcf2616(this[_0x2e3c65(0x21b)]),_0x22143b=new _0x7e8ec2(this[_0x2e3c65(0x21b)]);_0x22143b[_0x2e3c65(0x212)]({'withText':!0x1,'icon':_0x511448,'class':_0x2e3c65(0x214)}),_0x22143b[_0x2e3c65(0x21e)](_0x2e3c65(0x216))['to'](this,_0x2e3c65(0x219),_0x4fe7c7=>!!_0x4fe7c7),_0x22143b['on'](_0x2e3c65(0x20c),()=>{const _0x3baff9=_0x2e3c65;this[_0x3baff9(0x1f2)]='';});const _0x35eae7=this[_0x2e3c65(0x1df)];return _0x3ab428[_0x2e3c65(0x1f7)]({'tag':_0x2e3c65(0x1fe),'attributes':{'class':['ck',_0x2e3c65(0x1e9),_0x2e3c65(0x206)]},'children':[{'tag':'p','children':[{'text':_0x35eae7['to'](_0x2e3c65(0x1f2))}]},_0x22143b]}),_0x3ab428;}[_0x5281ac(0x208)](){const _0xe2e202=_0x5281ac,_0x20f0b5=new _0x7e8ec2(this[_0xe2e202(0x21b)]);_0x20f0b5[_0xe2e202(0x212)]({'label':_0x172c3e(this[_0xe2e202(0x21b)],_0xe2e202(0x226)),'withText':!0x0,'icon':_0x4f4646,'class':_0xe2e202(0x1e0)}),_0x20f0b5['on'](_0xe2e202(0x20c),()=>{const _0x4f5bc6=_0xe2e202;this[_0x4f5bc6(0x234)](_0x4f5bc6(0x218));});const _0x401634=new _0xcf2616(this[_0xe2e202(0x21b)]);return _0x401634[_0xe2e202(0x1f7)]({'tag':_0xe2e202(0x1fe),'attributes':{'class':[_0xe2e202(0x1e2),this[_0xe2e202(0x1df)]['if'](_0xe2e202(0x231),_0xe2e202(0x237),_0x851b2f=>!_0x851b2f)]},'children':[{'tag':'p','attributes':{'class':[_0xe2e202(0x1f1)]},'children':[_0x172c3e(this[_0xe2e202(0x21b)],_0xe2e202(0x236))]},_0x20f0b5]}),_0x401634;}[_0x5281ac(0x22a)](_0x2cf07c,_0x36a096){const _0x509c0c=_0x5281ac,_0x319bc4=[];for(const _0x9403b4 of _0x2cf07c){const _0x12ccaa=new _0x164237(_0x36a096,_0x9403b4);_0x12ccaa[_0x509c0c(0x1ea)](..._0x4fa433)['to'](this),_0x319bc4[_0x509c0c(0x21c)](_0x12ccaa);}return _0x319bc4;}[_0x5281ac(0x22c)](_0x28e226){const _0x3c8596=_0x5281ac,_0x25c7de=this[_0x3c8596(0x21b)]||'en',_0x35ba23=[];for(const _0x271db3 of _0x28e226){const _0xbc91fd=this[_0x3c8596(0x22a)](_0x271db3[_0x3c8596(0x1f6)],_0x25c7de);_0x35ba23[_0x3c8596(0x21c)](new _0x1dc54c(_0x25c7de,{'title':_0x271db3[_0x3c8596(0x1f3)],'items':_0xbc91fd}));}this[_0x3c8596(0x221)][_0x3c8596(0x1e5)]=_0x35ba23,this[_0x3c8596(0x221)][_0x3c8596(0x1f6)][_0x3c8596(0x1fd)](),this[_0x3c8596(0x221)][_0x3c8596(0x1f6)][_0x3c8596(0x1de)](_0x35ba23),this[_0x3c8596(0x219)]=_0x28e226[_0x3c8596(0x213)](_0x29eda7=>_0x29eda7[_0x3c8596(0x1f6)][_0x3c8596(0x23b)]>0x0),this[_0x3c8596(0x224)]();}[_0x5281ac(0x233)](_0x18b814){const _0x49d5fb=_0x5281ac;for(const _0x673804 of this[_0x49d5fb(0x221)][_0x49d5fb(0x1e5)]){const _0xb7feca=_0x673804[_0x49d5fb(0x203)](_0x18b814);if(_0xb7feca){if(_0x673804[_0x49d5fb(0x1f8)](_0xb7feca),0x0===_0x673804[_0x49d5fb(0x1eb)][_0x49d5fb(0x23b)]){const _0x1d7551=this[_0x49d5fb(0x221)][_0x49d5fb(0x1e5)][_0x49d5fb(0x21f)](_0x673804);-0x1!==_0x1d7551&&(this[_0x49d5fb(0x221)][_0x49d5fb(0x1e5)][_0x49d5fb(0x1fa)](_0x1d7551,0x1),this[_0x49d5fb(0x221)][_0x49d5fb(0x1f6)][_0x49d5fb(0x210)](_0x673804));}this[_0x49d5fb(0x219)]=this[_0x49d5fb(0x221)][_0x49d5fb(0x1e5)][_0x49d5fb(0x23b)]>0x0,this[_0x49d5fb(0x224)]();break;}}}[_0x5281ac(0x239)](_0x48b6cf,_0x10b154){const _0x1a9396=_0x5281ac;for(const _0xe4f07a of this[_0x1a9396(0x221)][_0x1a9396(0x1e5)]){const _0x3eea3c=_0xe4f07a[_0x1a9396(0x203)](_0x48b6cf);if(_0x3eea3c){_0x3eea3c[_0x1a9396(0x1e1)](_0x10b154);break;}}}[_0x5281ac(0x22f)](_0xcb9329,_0x9948e6,_0x481d71){const _0x37ff6b=_0x5281ac;for(const _0xee93e8 of this[_0x37ff6b(0x221)][_0x37ff6b(0x1e5)]){const _0x573549=_0xee93e8[_0x37ff6b(0x203)](_0xcb9329);if(_0x573549){_0x573549[_0x37ff6b(0x22d)](_0x9948e6,_0x481d71);break;}}}[_0x5281ac(0x224)](){const _0x3d62fe=_0x5281ac;if(this[_0x3d62fe(0x219)]){const _0x2faae4=this[_0x3d62fe(0x20b)][_0x3d62fe(0x200)][_0x3d62fe(0x230)]?.[_0x3d62fe(0x1f4)]?.[_0x3d62fe(0x1f5)]||'';this[_0x3d62fe(0x20b)][_0x3d62fe(0x204)](_0x2faae4);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3a29(){const _0x499d86=['_runTranslateShortcut','ai.chat.shortcuts','custom','length','runReviewCheck','_aiChatUI','find','get','9sOzmZJ','_validateShortcuts','type','label','reviewMode','CHAT','REVIEW','view','plugins','AIChat','_switchTab','has','element','ai-chat-shortcuts-ai-tabs-not-found','activeConversation','render','activateTab','TRANSLATE','prompt','addCurrentDocumentToChatContext','removeFeedItem','isOfficialPlugin','locale','fire','config','_injectShortcuts','11180KlSmXb','includes','language','_runChatShortcut','isFromHistory','interactionStarted','source','setModel','addFeedItemCustomElement','string','16944100UjXlIX','AIReviewModeUI','forEach','AIChatController','values','focusPromptInput','init','AITranslateUI','_shortcutsView','ai-chat-shortcuts-review-mode-not-found','listenTo','_runReviewShortcut','ai-chat-shortcuts-invalid-config','1205wJPXse','chat-shortcuts','24EclmEK','params','_removeShortcuts','sendMessage','409360VyhJzM','requires','execute','pluginName','destroy','AIChatShortcuts','AITabs','setWebSearch','2345336YKNiqn','chat','ai-chat-shortcuts-translate-not-found','95298PjQzMW','11aBNhuJ','review','getModel','getDefault','hasFeedItem','_shortcuts','conversationCreated','isPremiumPlugin','args','context','36700836hZYFlI','translate','_executeShortcut','2179513hHslEX','setReasoning','chatModels','check','setPromptInputValue','2XYertV'];_0x3a29=function(){return _0x499d86;};return _0x3a29();}function _0x1568(_0x5abfe3,_0x5f39a1){const _0x3a29a0=_0x3a29();return _0x1568=function(_0x156892,_0x3f682b){_0x156892=_0x156892-0x104;let _0x5b5cd6=_0x3a29a0[_0x156892];return _0x5b5cd6;},_0x1568(_0x5abfe3,_0x5f39a1);}const _0x3f6819=_0x1568;(function(_0x37d213,_0x559b4f){const _0x530a11=_0x1568,_0x4cf06d=_0x37d213();while(!![]){try{const _0x1b81dd=parseInt(_0x530a11(0x154))/0x1+parseInt(_0x530a11(0x114))/0x2*(parseInt(_0x530a11(0x15f))/0x3)+parseInt(_0x530a11(0x137))/0x4*(parseInt(_0x530a11(0x14e))/0x5)+-parseInt(_0x530a11(0x150))/0x6*(parseInt(_0x530a11(0x10f))/0x7)+-parseInt(_0x530a11(0x15c))/0x8*(parseInt(_0x530a11(0x11d))/0x9)+-parseInt(_0x530a11(0x141))/0xa+-parseInt(_0x530a11(0x160))/0xb*(-parseInt(_0x530a11(0x10c))/0xc);if(_0x1b81dd===_0x559b4f)break;else _0x4cf06d['push'](_0x4cf06d['shift']());}catch(_0x49107e){_0x4cf06d['push'](_0x4cf06d['shift']());}}}(_0x3a29,0xe584f));import{AIChatUI as _0x16c1df}from'../aichat/aichatui.js';import{ContextPlugin as _0x48fc28}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0xa43ac}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x4c3dd4}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const at=_0x3f6819(0x14f);export var AIChatShortcutType;!function(_0x3d49be){const _0x4f3d83=_0x3f6819;_0x3d49be[_0x4f3d83(0x122)]=_0x4f3d83(0x15d),_0x3d49be[_0x4f3d83(0x123)]=_0x4f3d83(0x161),_0x3d49be[_0x4f3d83(0x12e)]=_0x4f3d83(0x10d);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x48fc28{[_0x3f6819(0x107)];[_0x3f6819(0x149)];[_0x3f6819(0x11a)];static get[_0x3f6819(0x155)](){return[_0x16c1df];}static get[_0x3f6819(0x157)](){const _0x52c252=_0x3f6819;return _0x52c252(0x159);}static get[_0x3f6819(0x132)](){return!0x0;}static get[_0x3f6819(0x109)](){return!0x0;}[_0x3f6819(0x147)](){const _0x2b55fc=_0x3f6819;this[_0x2b55fc(0x11a)]=this[_0x2b55fc(0x10b)][_0x2b55fc(0x125)][_0x2b55fc(0x11c)](_0x16c1df),this[_0x2b55fc(0x107)]=this[_0x2b55fc(0x10b)][_0x2b55fc(0x135)][_0x2b55fc(0x11c)](_0x2b55fc(0x116))??[];const _0x421078=this[_0x2b55fc(0x10b)][_0x2b55fc(0x125)][_0x2b55fc(0x11c)](_0x2b55fc(0x144));this[_0x2b55fc(0x107)][_0x2b55fc(0x118)]&&(this[_0x2b55fc(0x11e)](),this[_0x2b55fc(0x11a)]['on'](_0x2b55fc(0x108),()=>{const _0x2fd2ba=_0x2b55fc;_0x421078[_0x2fd2ba(0x12b)][_0x2fd2ba(0x13b)]||this[_0x2fd2ba(0x136)]();}),this[_0x2b55fc(0x14b)](_0x421078,_0x2b55fc(0x13c),()=>{const _0x4f79d0=_0x2b55fc;this[_0x4f79d0(0x152)]();}));}[_0x3f6819(0x11e)](){const _0x2ff074=_0x3f6819,_0x56fe77=Object[_0x2ff074(0x145)](AIChatShortcutType);this[_0x2ff074(0x107)][_0x2ff074(0x143)](_0x479ef0=>{const _0x3520cb=_0x2ff074;let _0x10fd7c=!0x0;if(_0x479ef0['id']&&_0x479ef0[_0x3520cb(0x120)]&&_0x56fe77[_0x3520cb(0x138)](_0x479ef0[_0x3520cb(0x11f)])?_0x3520cb(0x15d)===_0x479ef0[_0x3520cb(0x11f)]&&(_0x10fd7c=_0x3520cb(0x140)==typeof _0x479ef0[_0x3520cb(0x12f)]):_0x10fd7c=!0x1,!_0x10fd7c)throw new _0x4c3dd4(_0x3520cb(0x14d),this[_0x3520cb(0x10b)],{'shortcut':_0x479ef0});});}[_0x3f6819(0x136)](){const _0x79d6a2=_0x3f6819,_0x3e0bf2=this[_0x79d6a2(0x10b)][_0x79d6a2(0x125)][_0x79d6a2(0x11c)](_0x16c1df);this[_0x79d6a2(0x149)]=new _0xa43ac(this[_0x79d6a2(0x10b)][_0x79d6a2(0x133)],this[_0x79d6a2(0x107)]),this[_0x79d6a2(0x149)][_0x79d6a2(0x12c)](),_0x3e0bf2[_0x79d6a2(0x13f)](this[_0x79d6a2(0x149)][_0x79d6a2(0x129)],at),this[_0x79d6a2(0x149)]['on'](_0x79d6a2(0x156),_0x1af4ca=>{const _0x5bd3ef=_0x79d6a2,_0x513165=_0x1af4ca[_0x5bd3ef(0x13d)]['id'];this[_0x5bd3ef(0x10e)](_0x513165);});}[_0x3f6819(0x152)](){const _0x38ab5c=_0x3f6819,_0x52db45=this[_0x38ab5c(0x10b)][_0x38ab5c(0x125)][_0x38ab5c(0x11c)](_0x16c1df);_0x52db45[_0x38ab5c(0x106)](at)&&_0x52db45[_0x38ab5c(0x131)](at),this[_0x38ab5c(0x149)]?.[_0x38ab5c(0x158)]();}[_0x3f6819(0x10e)](_0x2ca14e){const _0x5b60f0=_0x3f6819,_0x45c7b8=this[_0x5b60f0(0x107)][_0x5b60f0(0x11b)](_0x25f8c5=>_0x25f8c5['id']===_0x2ca14e),_0xf40e5a=_0x45c7b8[_0x5b60f0(0x11f)];_0x5b60f0(0x15d)===_0xf40e5a?this[_0x5b60f0(0x13a)](_0x45c7b8):_0x5b60f0(0x161)===_0xf40e5a?_0x45c7b8[_0x5b60f0(0x112)]?this[_0x5b60f0(0x14c)](_0x45c7b8):this[_0x5b60f0(0x127)](_0x5b60f0(0x121)):_0x5b60f0(0x10d)===_0xf40e5a&&(_0x45c7b8[_0x5b60f0(0x139)]?this[_0x5b60f0(0x115)](_0x45c7b8):this[_0x5b60f0(0x127)](_0x5b60f0(0x10d)));}[_0x3f6819(0x127)](_0x5316b8){const _0x35689f=_0x3f6819;if(!this[_0x35689f(0x10b)][_0x35689f(0x125)][_0x35689f(0x128)](_0x35689f(0x15a)))throw new _0x4c3dd4(_0x35689f(0x12a),this[_0x35689f(0x10b)],{'tabName':_0x5316b8});this[_0x35689f(0x10b)][_0x35689f(0x125)][_0x35689f(0x11c)](_0x35689f(0x15a))[_0x35689f(0x124)][_0x35689f(0x12d)](_0x5316b8);}async[_0x3f6819(0x13a)]({prompt:_0x139f65,draftMode:_0x127dac,useWebSearch:_0x5125fa=!0x1,useReasoning:_0x182e77=!0x1,model:_0x1e99c3}){const _0x50880b=_0x3f6819,_0x2389b1=this[_0x50880b(0x10b)][_0x50880b(0x125)][_0x50880b(0x11c)](_0x50880b(0x126)),_0x278eac=this[_0x50880b(0x10b)][_0x50880b(0x125)][_0x50880b(0x11c)](_0x50880b(0x144)),_0x4e9185=_0x278eac[_0x50880b(0x12b)];let _0x4c24a6;_0x4c24a6=_0x1e99c3?await _0x4e9185[_0x50880b(0x111)][_0x50880b(0x104)](_0x1e99c3):await _0x4e9185[_0x50880b(0x111)][_0x50880b(0x105)](),_0x4c24a6&&await _0x4e9185[_0x50880b(0x13e)](_0x4c24a6),_0x4e9185[_0x50880b(0x15b)](_0x5125fa),_0x4e9185[_0x50880b(0x110)](_0x182e77),_0x278eac[_0x50880b(0x130)](),_0x127dac?(this[_0x50880b(0x11a)][_0x50880b(0x113)](_0x139f65),this[_0x50880b(0x11a)][_0x50880b(0x146)](!0x0)):_0x2389b1[_0x50880b(0x153)]({'message':_0x139f65});}[_0x3f6819(0x14c)]({check:_0x5e64b1,model:_0x306876,prompt:_0x2c7758,params:_0x12eaee}){const _0x202d3c=_0x3f6819;if(!this[_0x202d3c(0x10b)][_0x202d3c(0x125)][_0x202d3c(0x128)](_0x202d3c(0x142)))throw new _0x4c3dd4(_0x202d3c(0x14a),this[_0x202d3c(0x10b)]);this[_0x202d3c(0x127)](_0x202d3c(0x121));const _0x5d388d={'id':_0x5e64b1,'isCustom':_0x202d3c(0x117)===_0x5e64b1};_0x306876&&_0x2c7758&&(_0x5d388d[_0x202d3c(0x10a)]={'model':_0x306876,'prompt':_0x2c7758}),_0x12eaee&&(_0x5d388d[_0x202d3c(0x151)]=_0x12eaee),this[_0x202d3c(0x10b)][_0x202d3c(0x125)][_0x202d3c(0x11c)](_0x202d3c(0x142))[_0x202d3c(0x134)](_0x202d3c(0x119),_0x5d388d);}[_0x3f6819(0x115)]({language:_0x3c4175}){const _0x5b0d46=_0x3f6819;if(!this[_0x5b0d46(0x10b)][_0x5b0d46(0x125)][_0x5b0d46(0x128)](_0x5b0d46(0x148)))throw new _0x4c3dd4(_0x5b0d46(0x15e),this[_0x5b0d46(0x10b)]);this[_0x5b0d46(0x127)](_0x5b0d46(0x10d)),this[_0x5b0d46(0x10b)][_0x5b0d46(0x125)][_0x5b0d46(0x11c)](_0x5b0d46(0x148))[_0x5b0d46(0x134)](_0x5b0d46(0x119),{'id':_0x3c4175,'args':{'language':_0x3c4175}});}}
23
+ const _0x53e1f0=_0xe9c8;(function(_0x27e3ee,_0x369b97){const _0x5e8f8d=_0xe9c8,_0x40e74b=_0x27e3ee();while(!![]){try{const _0x201f34=parseInt(_0x5e8f8d(0x117))/0x1+-parseInt(_0x5e8f8d(0xe5))/0x2+parseInt(_0x5e8f8d(0xe6))/0x3*(-parseInt(_0x5e8f8d(0x131))/0x4)+-parseInt(_0x5e8f8d(0xe9))/0x5+parseInt(_0x5e8f8d(0x12c))/0x6*(-parseInt(_0x5e8f8d(0x105))/0x7)+-parseInt(_0x5e8f8d(0x121))/0x8+-parseInt(_0x5e8f8d(0x13b))/0x9*(-parseInt(_0x5e8f8d(0x110))/0xa);if(_0x201f34===_0x369b97)break;else _0x40e74b['push'](_0x40e74b['shift']());}catch(_0x30dee1){_0x40e74b['push'](_0x40e74b['shift']());}}}(_0x103d,0xd299f));import{AIChatUI as _0xacfca5}from'../aichat/aichatui.js';import{ContextPlugin as _0x24e37a}from'ckeditor5/src/core.js';function _0x103d(){const _0x58a8ed=['setPromptInputValue','ai-chat-shortcuts-invalid-config','init','find','fire','AIChatController','_injectShortcuts','CHAT','7DyNqVA','_runTranslateShortcut','runReviewCheck','_switchTab','chat','pluginName','label','_aiChatUI','prompt','addFeedItemCustomElement','custom','437170ZvvlbM','forEach','chatModels','language','interactionStarted','sendMessage','_removeShortcuts','197603qFxloB','removeFeedItem','string','reviewMode','values','view','render','check','ai.chat.shortcuts','addCurrentDocumentToChatContext','5441272KZVIyl','isFromHistory','context','focusPromptInput','chat-shortcuts','isPremiumPlugin','REVIEW','ai-chat-shortcuts-review-mode-not-found','activeConversation','AIChat','element','5652258baNbRz','includes','locale','AITranslateUI','review','287608uHImPI','_runReviewShortcut','_shortcuts','TRANSLATE','hasFeedItem','_runChatShortcut','setReasoning','execute','_validateShortcuts','length','1314jKxvCG','AITabs','args','type','setWebSearch','ai-chat-shortcuts-translate-not-found','1835680pCOnsC','63zxcfaw','activateTab','plugins','8338390IsqFiP','get','source','ai-chat-shortcuts-ai-tabs-not-found','has','setModel','getModel','translate','listenTo','AIChatShortcuts','_shortcutsView','destroy','_executeShortcut','config','AIReviewModeUI','isOfficialPlugin','params','conversationCreated','getDefault','requires'];_0x103d=function(){return _0x58a8ed;};return _0x103d();}import{AIChatShortcutsView as _0x891b17}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x67efcd}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';function _0xe9c8(_0x16a864,_0x1f3df6){const _0x103d56=_0x103d();return _0xe9c8=function(_0xe9c898,_0x56f6b9){_0xe9c898=_0xe9c898-0xe2;let _0x6017ea=_0x103d56[_0xe9c898];return _0x6017ea;},_0xe9c8(_0x16a864,_0x1f3df6);}const Ut=_0x53e1f0(0x125);export var AIChatShortcutType;!function(_0x3e4dfa){const _0x577b6e=_0x53e1f0;_0x3e4dfa[_0x577b6e(0x104)]=_0x577b6e(0x109),_0x3e4dfa[_0x577b6e(0x127)]=_0x577b6e(0x130),_0x3e4dfa[_0x577b6e(0x134)]=_0x577b6e(0xf0);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x24e37a{[_0x53e1f0(0x133)];[_0x53e1f0(0xf3)];[_0x53e1f0(0x10c)];static get[_0x53e1f0(0xfc)](){return[_0xacfca5];}static get[_0x53e1f0(0x10a)](){const _0x36c8e6=_0x53e1f0;return _0x36c8e6(0xf2);}static get[_0x53e1f0(0xf8)](){return!0x0;}static get[_0x53e1f0(0x126)](){return!0x0;}[_0x53e1f0(0xff)](){const _0x16fc1e=_0x53e1f0;this[_0x16fc1e(0x10c)]=this[_0x16fc1e(0x123)][_0x16fc1e(0xe8)][_0x16fc1e(0xea)](_0xacfca5),this[_0x16fc1e(0x133)]=this[_0x16fc1e(0x123)][_0x16fc1e(0xf6)][_0x16fc1e(0xea)](_0x16fc1e(0x11f))??[];const _0x3c8305=this[_0x16fc1e(0x123)][_0x16fc1e(0xe8)][_0x16fc1e(0xea)](_0x16fc1e(0x102));this[_0x16fc1e(0x133)][_0x16fc1e(0x13a)]&&(this[_0x16fc1e(0x139)](),this[_0x16fc1e(0x10c)]['on'](_0x16fc1e(0xfa),()=>{const _0x257ea5=_0x16fc1e;_0x3c8305[_0x257ea5(0x129)][_0x257ea5(0x122)]||this[_0x257ea5(0x103)]();}),this[_0x16fc1e(0xf1)](_0x3c8305,_0x16fc1e(0x114),()=>{const _0x87a316=_0x16fc1e;this[_0x87a316(0x116)]();}));}[_0x53e1f0(0x139)](){const _0x2a0d70=_0x53e1f0,_0x222e3c=Object[_0x2a0d70(0x11b)](AIChatShortcutType);this[_0x2a0d70(0x133)][_0x2a0d70(0x111)](_0xe53683=>{const _0x520101=_0x2a0d70;let _0x839794=!0x0;if(_0xe53683['id']&&_0xe53683[_0x520101(0x10b)]&&_0x222e3c[_0x520101(0x12d)](_0xe53683[_0x520101(0xe2)])?_0x520101(0x109)===_0xe53683[_0x520101(0xe2)]&&(_0x839794=_0x520101(0x119)==typeof _0xe53683[_0x520101(0x10d)]):_0x839794=!0x1,!_0x839794)throw new _0x67efcd(_0x520101(0xfe),this[_0x520101(0x123)],{'shortcut':_0xe53683});});}[_0x53e1f0(0x103)](){const _0x3d5722=_0x53e1f0,_0x10da6b=this[_0x3d5722(0x123)][_0x3d5722(0xe8)][_0x3d5722(0xea)](_0xacfca5);this[_0x3d5722(0xf3)]=new _0x891b17(this[_0x3d5722(0x123)][_0x3d5722(0x12e)],this[_0x3d5722(0x133)]),this[_0x3d5722(0xf3)][_0x3d5722(0x11d)](),_0x10da6b[_0x3d5722(0x10e)](this[_0x3d5722(0xf3)][_0x3d5722(0x12b)],Ut),this[_0x3d5722(0xf3)]['on'](_0x3d5722(0x138),_0x5033a7=>{const _0x58ad6a=_0x3d5722,_0x1d9d16=_0x5033a7[_0x58ad6a(0xeb)]['id'];this[_0x58ad6a(0xf5)](_0x1d9d16);});}[_0x53e1f0(0x116)](){const _0x21c6a0=_0x53e1f0,_0x5d1185=this[_0x21c6a0(0x123)][_0x21c6a0(0xe8)][_0x21c6a0(0xea)](_0xacfca5);_0x5d1185[_0x21c6a0(0x135)](Ut)&&_0x5d1185[_0x21c6a0(0x118)](Ut),this[_0x21c6a0(0xf3)]?.[_0x21c6a0(0xf4)]();}[_0x53e1f0(0xf5)](_0x58806a){const _0x1e5cc4=_0x53e1f0,_0x9cec8=this[_0x1e5cc4(0x133)][_0x1e5cc4(0x100)](_0x3a38db=>_0x3a38db['id']===_0x58806a),_0x397f30=_0x9cec8[_0x1e5cc4(0xe2)];_0x1e5cc4(0x109)===_0x397f30?this[_0x1e5cc4(0x136)](_0x9cec8):_0x1e5cc4(0x130)===_0x397f30?_0x9cec8[_0x1e5cc4(0x11e)]?this[_0x1e5cc4(0x132)](_0x9cec8):this[_0x1e5cc4(0x108)](_0x1e5cc4(0x11a)):_0x1e5cc4(0xf0)===_0x397f30&&(_0x9cec8[_0x1e5cc4(0x113)]?this[_0x1e5cc4(0x106)](_0x9cec8):this[_0x1e5cc4(0x108)](_0x1e5cc4(0xf0)));}[_0x53e1f0(0x108)](_0x391f55){const _0x1425f6=_0x53e1f0;if(!this[_0x1425f6(0x123)][_0x1425f6(0xe8)][_0x1425f6(0xed)](_0x1425f6(0x13c)))throw new _0x67efcd(_0x1425f6(0xec),this[_0x1425f6(0x123)],{'tabName':_0x391f55});this[_0x1425f6(0x123)][_0x1425f6(0xe8)][_0x1425f6(0xea)](_0x1425f6(0x13c))[_0x1425f6(0x11c)][_0x1425f6(0xe7)](_0x391f55);}async[_0x53e1f0(0x136)]({prompt:_0x2a71c8,draftMode:_0x56736f,useWebSearch:_0x267bc6=!0x1,useReasoning:_0xba1e57=!0x1,model:_0x559705}){const _0x5f5874=_0x53e1f0,_0x4296a8=this[_0x5f5874(0x123)][_0x5f5874(0xe8)][_0x5f5874(0xea)](_0x5f5874(0x12a)),_0x4d5439=this[_0x5f5874(0x123)][_0x5f5874(0xe8)][_0x5f5874(0xea)](_0x5f5874(0x102)),_0x5741ee=_0x4d5439[_0x5f5874(0x129)];let _0x4e1936;_0x4e1936=_0x559705?await _0x5741ee[_0x5f5874(0x112)][_0x5f5874(0xef)](_0x559705):await _0x5741ee[_0x5f5874(0x112)][_0x5f5874(0xfb)](),_0x4e1936&&await _0x5741ee[_0x5f5874(0xee)](_0x4e1936),_0x5741ee[_0x5f5874(0xe3)](_0x267bc6),_0x5741ee[_0x5f5874(0x137)](_0xba1e57),_0x4d5439[_0x5f5874(0x120)](),_0x56736f?(this[_0x5f5874(0x10c)][_0x5f5874(0xfd)](_0x2a71c8),this[_0x5f5874(0x10c)][_0x5f5874(0x124)](!0x0)):_0x4296a8[_0x5f5874(0x115)]({'message':_0x2a71c8});}[_0x53e1f0(0x132)]({check:_0x1da01a,model:_0x2de571,prompt:_0x10b6d3,params:_0x473d37}){const _0x373c87=_0x53e1f0;if(!this[_0x373c87(0x123)][_0x373c87(0xe8)][_0x373c87(0xed)](_0x373c87(0xf7)))throw new _0x67efcd(_0x373c87(0x128),this[_0x373c87(0x123)]);this[_0x373c87(0x108)](_0x373c87(0x11a));const _0x286d3c={'id':_0x1da01a,'isCustom':_0x373c87(0x10f)===_0x1da01a};_0x2de571&&_0x10b6d3&&(_0x286d3c[_0x373c87(0x13d)]={'model':_0x2de571,'prompt':_0x10b6d3}),_0x473d37&&(_0x286d3c[_0x373c87(0xf9)]=_0x473d37),this[_0x373c87(0x123)][_0x373c87(0xe8)][_0x373c87(0xea)](_0x373c87(0xf7))[_0x373c87(0x101)](_0x373c87(0x107),_0x286d3c);}[_0x53e1f0(0x106)]({language:_0x26fc07}){const _0x568fab=_0x53e1f0;if(!this[_0x568fab(0x123)][_0x568fab(0xe8)][_0x568fab(0xed)](_0x568fab(0x12f)))throw new _0x67efcd(_0x568fab(0xe4),this[_0x568fab(0x123)]);this[_0x568fab(0x108)](_0x568fab(0xf0)),this[_0x568fab(0x123)][_0x568fab(0xe8)][_0x568fab(0xea)](_0x568fab(0x12f))[_0x568fab(0x101)](_0x568fab(0x107),{'id':_0x26fc07,'args':{'language':_0x26fc07}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1316(_0x5a756b,_0x123368){const _0x526a0a=_0x526a();return _0x1316=function(_0x13162d,_0x396be9){_0x13162d=_0x13162d-0x7d;let _0x3fc7bb=_0x526a0a[_0x13162d];return _0x3fc7bb;},_0x1316(_0x5a756b,_0x123368);}function _0x526a(){const _0x494908=['add','setTemplate','840570hRtbMk','36902WFwGrg','118162EDdEib','1386680eoXhzO','2671190uFpbva','2181YiihHi','9IzetRe','7HuxsGp','items','children','ck-ai-chat-shortcuts','addMany','locale','div','listView','41110pxsXWG','execute','map','delegate','1916yoEMoO'];_0x526a=function(){return _0x494908;};return _0x526a();}const _0x91eae4=_0x1316;(function(_0x556b92,_0x5d4498){const _0x562bcf=_0x1316,_0x41be85=_0x556b92();while(!![]){try{const _0x2ceeb2=parseInt(_0x562bcf(0x85))/0x1+parseInt(_0x562bcf(0x86))/0x2+-parseInt(_0x562bcf(0x89))/0x3*(-parseInt(_0x562bcf(0x81))/0x4)+-parseInt(_0x562bcf(0x7d))/0x5+parseInt(_0x562bcf(0x84))/0x6*(-parseInt(_0x562bcf(0x8b))/0x7)+-parseInt(_0x562bcf(0x87))/0x8*(-parseInt(_0x562bcf(0x8a))/0x9)+-parseInt(_0x562bcf(0x88))/0xa;if(_0x2ceeb2===_0x5d4498)break;else _0x41be85['push'](_0x41be85['shift']());}catch(_0x4b820a){_0x41be85['push'](_0x41be85['shift']());}}}(_0x526a,0x31583));import{ListItemView as _0x994c94,ListView as _0x2060f5,View as _0x57a205}from'ckeditor5/src/ui.js';import{AIChatShortcutView as _0x1ef5df}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x57a205{[_0x91eae4(0x92)];constructor(_0x56032b,_0xda0799){const _0x498392=_0x91eae4;super(_0x56032b);const _0xdd72d4=_0xda0799[_0x498392(0x7f)](_0x599733=>{const _0x34fe59=_0x498392,_0x4012d0=new _0x994c94(this[_0x34fe59(0x90)]),_0x480a07=new _0x1ef5df(this[_0x34fe59(0x90)],_0x599733);return _0x4012d0[_0x34fe59(0x8d)][_0x34fe59(0x82)](_0x480a07),_0x480a07[_0x34fe59(0x80)](_0x34fe59(0x7e))['to'](this),_0x4012d0;});this[_0x498392(0x92)]=new _0x2060f5(this[_0x498392(0x90)]),this[_0x498392(0x92)][_0x498392(0x8c)][_0x498392(0x8f)](_0xdd72d4),this[_0x498392(0x83)]({'tag':_0x498392(0x91),'attributes':{'class':['ck',_0x498392(0x8e)]},'children':[this[_0x498392(0x92)]]});}}
23
+ function _0x1d31(_0x1fd6b7,_0xef0e0a){const _0xe0605c=_0xe060();return _0x1d31=function(_0x1d31d9,_0xbeea0a){_0x1d31d9=_0x1d31d9-0x12e;let _0x2d309a=_0xe0605c[_0x1d31d9];return _0x2d309a;},_0x1d31(_0x1fd6b7,_0xef0e0a);}const _0x514f31=_0x1d31;(function(_0x5ec313,_0x5a45b3){const _0x10c081=_0x1d31,_0x265533=_0x5ec313();while(!![]){try{const _0x477c7e=parseInt(_0x10c081(0x133))/0x1+-parseInt(_0x10c081(0x138))/0x2*(parseInt(_0x10c081(0x134))/0x3)+parseInt(_0x10c081(0x132))/0x4*(-parseInt(_0x10c081(0x13d))/0x5)+parseInt(_0x10c081(0x143))/0x6*(-parseInt(_0x10c081(0x144))/0x7)+-parseInt(_0x10c081(0x13c))/0x8*(-parseInt(_0x10c081(0x131))/0x9)+-parseInt(_0x10c081(0x136))/0xa+parseInt(_0x10c081(0x137))/0xb;if(_0x477c7e===_0x5a45b3)break;else _0x265533['push'](_0x265533['shift']());}catch(_0x44c7fc){_0x265533['push'](_0x265533['shift']());}}}(_0xe060,0x495f9));import{ListItemView as _0x1b7c64,ListView as _0x542b55,View as _0x3cf95c}from'ckeditor5/src/ui.js';import{AIChatShortcutView as _0x466788}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x3cf95c{[_0x514f31(0x12f)];constructor(_0x17fe33,_0x113648){const _0x55565d=_0x514f31;super(_0x17fe33);const _0x4fc84d=_0x113648[_0x55565d(0x141)](_0x1a926e=>{const _0xb2f9d6=_0x55565d,_0x970145=new _0x1b7c64(this[_0xb2f9d6(0x139)]),_0x24232c=new _0x466788(this[_0xb2f9d6(0x139)],_0x1a926e);return _0x970145[_0xb2f9d6(0x13a)][_0xb2f9d6(0x13e)](_0x24232c),_0x24232c[_0xb2f9d6(0x130)](_0xb2f9d6(0x142))['to'](this),_0x970145;});this[_0x55565d(0x12f)]=new _0x542b55(this[_0x55565d(0x139)]),this[_0x55565d(0x12f)][_0x55565d(0x13b)][_0x55565d(0x140)](_0x4fc84d),this[_0x55565d(0x13f)]({'tag':_0x55565d(0x135),'attributes':{'class':['ck',_0x55565d(0x12e)]},'children':[this[_0x55565d(0x12f)]]});}}function _0xe060(){const _0x40ddb5=['12RqEviS','30895EjKkFo','3gXMjvF','div','3001610TczahB','13878975HtttsG','824960JYzyLA','locale','children','items','5392stwoEn','492015gssZhU','add','setTemplate','addMany','map','execute','6rdKASs','1621137vMtWqj','ck-ai-chat-shortcuts','listView','delegate','3303hXYoln'];_0xe060=function(){return _0x40ddb5;};return _0xe060();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2b64(_0x2da87b,_0x144393){const _0x461e7a=_0x461e();return _0x2b64=function(_0x2b6417,_0x12b046){_0x2b6417=_0x2b6417-0x83;let _0x350303=_0x461e7a[_0x2b6417];return _0x350303;},_0x2b64(_0x2da87b,_0x144393);}function _0x461e(){const _0x1cafb9=['1734UQcAHB','icon','set','4549372CrZkSo','translate','extendTemplate','17486470yZwbAl','chat','9QyEyJe','1538550NOAawo','2429TDlgHj','label','review','11522488wLshau','44374DBugYl','ck-ai-chat-shortcut','2206785RkxyBz','56yXjJnq'];_0x461e=function(){return _0x1cafb9;};return _0x461e();}(function(_0x1b0558,_0x7f6093){const _0x84c21=_0x2b64,_0x36b484=_0x1b0558();while(!![]){try{const _0xae4ec4=parseInt(_0x84c21(0x93))/0x1*(-parseInt(_0x84c21(0x90))/0x2)+-parseInt(_0x84c21(0x8b))/0x3+-parseInt(_0x84c21(0x85))/0x4+parseInt(_0x84c21(0x92))/0x5+parseInt(_0x84c21(0x94))/0x6*(parseInt(_0x84c21(0x8c))/0x7)+parseInt(_0x84c21(0x8f))/0x8+parseInt(_0x84c21(0x8a))/0x9*(parseInt(_0x84c21(0x88))/0xa);if(_0xae4ec4===_0x7f6093)break;else _0x36b484['push'](_0x36b484['shift']());}catch(_0x35a829){_0x36b484['push'](_0x36b484['shift']());}}}(_0x461e,0xcc92d));import{ButtonView as _0x1a6ff9}from'ckeditor5/src/ui.js';import{IconAIChat as _0x25353c,IconAIReview as _0x44ee06,IconAITranslate as _0x3ec600}from'@ckeditor/ckeditor5-icons';export class AIChatShortcutView extends _0x1a6ff9{['id'];constructor(_0x4b301d,_0x372b3e){const _0x1f9e27=_0x2b64;super(_0x4b301d);const {id:_0x61dc68,type:_0x252b3e,icon:_0xb7ef81}=_0x372b3e;this['id']=_0x61dc68,this[_0x1f9e27(0x84)]({'label':_0x372b3e[_0x1f9e27(0x8d)],'withText':!0x0,'class':_0x1f9e27(0x91)}),this[_0x1f9e27(0x87)]({'attributes':{'data-cke-ai-shortcut-id':_0x372b3e['id']}}),_0xb7ef81?this[_0x1f9e27(0x83)]=_0xb7ef81:_0x1f9e27(0x89)===_0x252b3e?this[_0x1f9e27(0x83)]=_0x25353c:_0x1f9e27(0x8e)===_0x252b3e?this[_0x1f9e27(0x83)]=_0x44ee06:_0x1f9e27(0x86)===_0x252b3e&&(this[_0x1f9e27(0x83)]=_0x3ec600);}}
23
+ (function(_0x3c717d,_0x6b07a4){const _0xd1b810=_0x1770,_0x2d4f8f=_0x3c717d();while(!![]){try{const _0x21443b=parseInt(_0xd1b810(0x9e))/0x1+-parseInt(_0xd1b810(0x9f))/0x2*(-parseInt(_0xd1b810(0xa7))/0x3)+-parseInt(_0xd1b810(0xa3))/0x4*(parseInt(_0xd1b810(0x97))/0x5)+parseInt(_0xd1b810(0xa4))/0x6+parseInt(_0xd1b810(0x9c))/0x7+-parseInt(_0xd1b810(0xa5))/0x8+-parseInt(_0xd1b810(0xa0))/0x9*(-parseInt(_0xd1b810(0x96))/0xa);if(_0x21443b===_0x6b07a4)break;else _0x2d4f8f['push'](_0x2d4f8f['shift']());}catch(_0xaaf28c){_0x2d4f8f['push'](_0x2d4f8f['shift']());}}}(_0x5d81,0x56201));import{ButtonView as _0x51e1b6}from'ckeditor5/src/ui.js';function _0x5d81(){const _0x1bb014=['ck-ai-chat-shortcut','extendTemplate','3247034HFyyBk','translate','124290iaNbQO','5958xXvzxn','5121cwNDZX','set','icon','115476TkvqHU','815772VKfUDb','3060072RXXVtF','chat','276NMAJLZ','2990JlmJHl','75yrdpti','label','review'];_0x5d81=function(){return _0x1bb014;};return _0x5d81();}function _0x1770(_0x7f7964,_0x5bb8b9){const _0x5d8137=_0x5d81();return _0x1770=function(_0x1770ee,_0x1d2081){_0x1770ee=_0x1770ee-0x96;let _0x26b7b2=_0x5d8137[_0x1770ee];return _0x26b7b2;},_0x1770(_0x7f7964,_0x5bb8b9);}import{IconAIChat as _0x36cade,IconAIReview as _0x252d95,IconAITranslate as _0x110112}from'@ckeditor/ckeditor5-icons';export class AIChatShortcutView extends _0x51e1b6{['id'];constructor(_0x4ae6b2,_0x19d5ae){const _0x14e8ba=_0x1770;super(_0x4ae6b2);const {id:_0x3d2c8f,type:_0x1fd29f,icon:_0x1068b8}=_0x19d5ae;this['id']=_0x3d2c8f,this[_0x14e8ba(0xa1)]({'label':_0x19d5ae[_0x14e8ba(0x98)],'withText':!0x0,'class':_0x14e8ba(0x9a)}),this[_0x14e8ba(0x9b)]({'attributes':{'data-cke-ai-shortcut-id':_0x19d5ae['id']}}),_0x1068b8?this[_0x14e8ba(0xa2)]=_0x1068b8:_0x14e8ba(0xa6)===_0x1fd29f?this[_0x14e8ba(0xa2)]=_0x36cade:_0x14e8ba(0x99)===_0x1fd29f?this[_0x14e8ba(0xa2)]=_0x252d95:_0x14e8ba(0x9d)===_0x1fd29f&&(this[_0x14e8ba(0xa2)]=_0x110112);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x524bb7=_0x1d06;(function(_0x237e0c,_0x1d58da){const _0x26d29c=_0x1d06,_0x201921=_0x237e0c();while(!![]){try{const _0x2fe776=parseInt(_0x26d29c(0xc0))/0x1+parseInt(_0x26d29c(0xee))/0x2+parseInt(_0x26d29c(0x128))/0x3*(parseInt(_0x26d29c(0xe0))/0x4)+-parseInt(_0x26d29c(0x118))/0x5*(parseInt(_0x26d29c(0x12a))/0x6)+-parseInt(_0x26d29c(0xfb))/0x7+parseInt(_0x26d29c(0x107))/0x8+-parseInt(_0x26d29c(0xb6))/0x9*(parseInt(_0x26d29c(0xd7))/0xa);if(_0x2fe776===_0x1d58da)break;else _0x201921['push'](_0x201921['shift']());}catch(_0x52d1e5){_0x201921['push'](_0x201921['shift']());}}}(_0x46dd,0xcfc79));import{createParser as _0x8a3a82}from'eventsource-parser';function _0x1d06(_0x40d5ee,_0x538380){const _0x46dd9c=_0x46dd();return _0x1d06=function(_0x1d0644,_0x241f84){_0x1d0644=_0x1d0644-0x9d;let _0x31511d=_0x46dd9c[_0x1d0644];return _0x31511d;},_0x1d06(_0x40d5ee,_0x538380);}import{ContextPlugin as _0x178cb9}from'ckeditor5/src/core.js';import{CKEditorError as _0x4d61db}from'ckeditor5/src/utils.js';export var AIActionsNames;function _0x46dd(){const _0x1dfd7f=['init','abortController','upsertAIChatRating','/conversations','2923230GkAmPP','queryAssistant','GET','executeCustomAction','improve-writing','context','deleteFile','/conversations/','/web-resources/','CloudServices','fetchConversations','language','request','3155537xZPEzm','define','POST','attributes','getReader','true','then','callSystemReview','AbortError','ai.serviceUrl','/messages/','https://ai.cke-cs.com/v1','1213192hLVDnT','plugins','_apiUrl','uploadUrl','fetchConversationMessages','push','/models/1?','FIX_GRAMMAR','fetchDocument','desc','PATCH','_handleError','group','Content-Type','get','/documents/','value','19010QgyzQj','/calls','fetchConversation','MAKE_TONE_FORMAL','isOfficialPlugin','/files','translate','status','read','feed','/messages','limit','token','uploadDocument','_sendApiRequest','pluginName','126hPnfQG','upsertCustomAIReviewRating','2046qTahDu','PUT','message','continue','positiveCount','totalCount','ai-request-aborted','excludeEmpty','sortBy','AIConnector','upsertAIReviewRating','/actions/custom/calls','statusText','name','MAKE_TONE_CASUAL','decode','text','toString','false','executeAction','signal','/web-resources','deleteWebResource','uploadFile','CONTINUE','order','make-longer','json','/reviews/system/','catch','releaseLock','updateConversation','_decoder','9vZrEGr','/actions/custom/calls/','/actions/system/','items','stringify','requires','code','upsertCustomAIActionRating','DELETE','/reviews/custom/calls/','862297YNAPQV','startConversation','/calls/','upsertAIActionRating','_token','getModels','/files/','/conversations?','IMPROVE_WRITING','callCustomReview','/ratings','/documents','deleteConversation','100','TRANSLATE','application/json','fix-grammar','length','traceId','ai-missing-token','_getStreamReader','modificationId','createdAt','6922330rTLqUE','deleteDocument','Bearer\x20','make-tone-formal','data','append','MAKE_LONGER','make-shorter','parse','77620sJqlom','file','ai-request-failed','config','make-tone-casual','body','reset','isPremiumPlugin','MAKE_SHORTER','/reviews/custom/calls'];_0x46dd=function(){return _0x1dfd7f;};return _0x46dd();}!function(_0x264bbd){const _0x20e62d=_0x1d06;_0x264bbd[_0x20e62d(0xad)]=_0x20e62d(0x12d),_0x264bbd[_0x20e62d(0x10e)]=_0x20e62d(0xd0),_0x264bbd[_0x20e62d(0xc8)]=_0x20e62d(0xf2),_0x264bbd[_0x20e62d(0xdd)]=_0x20e62d(0xaf),_0x264bbd[_0x20e62d(0xe8)]=_0x20e62d(0xde),_0x264bbd[_0x20e62d(0xa3)]=_0x20e62d(0xe4),_0x264bbd[_0x20e62d(0x11b)]=_0x20e62d(0xda),_0x264bbd[_0x20e62d(0xce)]=_0x20e62d(0x11e);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x178cb9{[_0x524bb7(0x109)];[_0x524bb7(0xc4)];[_0x524bb7(0xb5)];static get[_0x524bb7(0xbb)](){const _0x19e40a=_0x524bb7;return[_0x19e40a(0xf7)];}static get[_0x524bb7(0x127)](){const _0x309085=_0x524bb7;return _0x309085(0x9e);}static get[_0x524bb7(0x11c)](){return!0x0;}static get[_0x524bb7(0xe7)](){return!0x0;}constructor(_0x389694){const _0x2c00a7=_0x524bb7;super(_0x389694),this[_0x2c00a7(0xf3)][_0x2c00a7(0xe3)][_0x2c00a7(0xfc)](_0x2c00a7(0x104),_0x2c00a7(0x106)),this[_0x2c00a7(0x109)]=this[_0x2c00a7(0xf3)][_0x2c00a7(0xe3)][_0x2c00a7(0x115)](_0x2c00a7(0x104)),this[_0x2c00a7(0xc4)]=null,this[_0x2c00a7(0xb5)]=new TextDecoder();}[_0x524bb7(0xea)](){const _0x2656d9=_0x524bb7,_0x9ad423=this[_0x2656d9(0xf3)][_0x2656d9(0x108)][_0x2656d9(0x115)](_0x2656d9(0xf7));if(!_0x9ad423[_0x2656d9(0x124)])throw new _0x4d61db(_0x2656d9(0xd3),this);this[_0x2656d9(0xc4)]=_0x9ad423[_0x2656d9(0x124)];}[_0x524bb7(0xc1)](_0x28e0f5,_0x148bd7){const _0x10f95=_0x524bb7,_0x2258b7=this[_0x10f95(0x126)](_0x10f95(0xed),_0x10f95(0xfd),{'id':_0x28e0f5,'group':_0x148bd7});return{'getConversation':async()=>(await _0x2258b7[_0x10f95(0xfa)])[_0x10f95(0xb0)](),'abortController':_0x2258b7[_0x10f95(0xeb)]};}[_0x524bb7(0xef)]({message:_0x125e0f,conversationId:_0xc331e6,parts:_0x512979,capabilities:_0x56a63f,model:_0x29bcb2,attributes:_0x241960}){const _0x205345=_0x524bb7,_0x390eab={'prompt':_0x125e0f,'content':_0x512979,'model':_0x29bcb2,..._0x56a63f&&{'capabilities':_0x56a63f},..._0x241960&&{'attributes':_0x241960}},_0x5eba6e=this[_0x205345(0x126)](_0x205345(0xf5)+_0xc331e6+_0x205345(0x122),_0x205345(0xfd),_0x390eab);return{'getStream':async()=>{const _0x5db2f5=_0x205345,_0x11c501=(await _0x5eba6e[_0x5db2f5(0xfa)])[_0x5db2f5(0xe5)];return this[_0x5db2f5(0xd4)](_0x11c501);},'abortController':_0x5eba6e[_0x205345(0xeb)]};}[_0x524bb7(0xf1)]({content:_0x2e8f91,message:_0x463296,model:_0x2faabc,outputFormat:_0x582055}){const _0x1f8259=_0x524bb7,_0x9f7d29={'content':[{'type':_0x1f8259(0xa5),'content':_0x2e8f91}],'prompt':_0x463296,'model':_0x2faabc,'outputFormat':_0x582055},_0x469f48=this[_0x1f8259(0x126)](_0x1f8259(0xa0),_0x1f8259(0xfd),_0x9f7d29);return{'getStream':async()=>{const _0x3385ee=_0x1f8259,_0x2b6c2a=(await _0x469f48[_0x3385ee(0xfa)])[_0x3385ee(0xe5)];return this[_0x3385ee(0xd4)](_0x2b6c2a);},'abortController':_0x469f48[_0x1f8259(0xeb)]};}[_0x524bb7(0xa8)]({actionName:_0x43fa3b,content:_0x544307,args:_0x43f422}){const _0x22fcda=_0x524bb7,_0x814373={'content':[{'type':_0x22fcda(0xa5),'content':_0x544307}],'args':_0x43f422},_0x222caf=this[_0x22fcda(0x126)](_0x22fcda(0xb8)+_0x43fa3b+_0x22fcda(0x119),_0x22fcda(0xfd),_0x814373);return{'getStream':async()=>{const _0x5aa3c3=_0x22fcda,_0x3719c6=(await _0x222caf[_0x5aa3c3(0xfa)])[_0x5aa3c3(0xe5)];return this[_0x5aa3c3(0xd4)](_0x3719c6);},'abortController':_0x222caf[_0x22fcda(0xeb)]};}[_0x524bb7(0xac)](_0x5af6d3,_0x10a393,_0x41ac46){const _0x2f55fa=_0x524bb7,_0x390cf3=new FormData();_0x390cf3[_0x2f55fa(0xdc)](_0x2f55fa(0xe1),_0x10a393,_0x10a393[_0x2f55fa(0xa2)]),_0x41ac46&&_0x390cf3[_0x2f55fa(0xdc)](_0x2f55fa(0xfe),JSON[_0x2f55fa(0xba)](_0x41ac46));const _0x3520c4=this[_0x2f55fa(0x126)](_0x2f55fa(0xf5)+_0x5af6d3+_0x2f55fa(0x11d),_0x2f55fa(0xfd),_0x390cf3);return{'getId':async()=>(await _0x3520c4[_0x2f55fa(0xfa)])[_0x2f55fa(0xb0)](),'abortController':_0x3520c4[_0x2f55fa(0xeb)]};}[_0x524bb7(0x10f)](_0x5ca7f6,_0x316837){const _0x20d546=_0x524bb7,_0x417e85=this[_0x20d546(0x126)](_0x20d546(0xf5)+_0x5ca7f6+_0x20d546(0x116)+_0x316837,_0x20d546(0xf0));return{'getDocument':async()=>(await _0x417e85[_0x20d546(0xfa)])[_0x20d546(0xb0)](),'abortController':_0x417e85[_0x20d546(0xeb)]};}[_0x524bb7(0x125)](_0x459886,_0x43c56a,_0xca341d){const _0x35088e=_0x524bb7,_0x31a1eb={'content':_0x43c56a};_0xca341d&&(_0x31a1eb[_0x35088e(0xfe)]=_0xca341d);const _0x15c1c4=this[_0x35088e(0x126)](_0x35088e(0xf5)+_0x459886+_0x35088e(0xcb),_0x35088e(0xfd),_0x31a1eb);return{'getId':async()=>(await _0x15c1c4[_0x35088e(0xfa)])[_0x35088e(0xb0)](),'abortController':_0x15c1c4[_0x35088e(0xeb)]};}[_0x524bb7(0xf8)](_0x56dd1f,_0xb0ada9={}){const _0x55f706=_0x524bb7,_0x4ae46f=new URLSearchParams();_0x4ae46f[_0x55f706(0xdc)](_0x55f706(0x113),_0x56dd1f),_0x4ae46f[_0x55f706(0xdc)](_0x55f706(0x131),!0x1!==_0xb0ada9[_0x55f706(0x131)]?_0x55f706(0x100):_0x55f706(0xa7)),_0x4ae46f[_0x55f706(0xdc)](_0x55f706(0x123),_0xb0ada9[_0x55f706(0x123)]?_0xb0ada9[_0x55f706(0x123)][_0x55f706(0xa6)]():_0x55f706(0xcd)),_0x4ae46f[_0x55f706(0xdc)](_0x55f706(0x9d),_0xb0ada9[_0x55f706(0x9d)]?_0xb0ada9[_0x55f706(0x9d)]:_0x55f706(0xd6)),_0x4ae46f[_0x55f706(0xdc)](_0x55f706(0xae),_0xb0ada9[_0x55f706(0xae)]?_0xb0ada9[_0x55f706(0xae)]:_0x55f706(0x110));const _0x13f730=this[_0x55f706(0x126)](_0x55f706(0xc7)+_0x4ae46f[_0x55f706(0xa6)](),_0x55f706(0xf0));return{'getConversations':async()=>{const _0x1a89cb=_0x55f706,_0x113def=await _0x13f730[_0x1a89cb(0xfa)];return(await _0x113def[_0x1a89cb(0xb0)]())[_0x1a89cb(0xb9)];},'abortController':_0x13f730[_0x55f706(0xeb)]};}[_0x524bb7(0xcc)](_0x5b5b16){const _0x55e4ed=_0x524bb7,_0x57a7a3=this[_0x55e4ed(0x126)](_0x55e4ed(0xf5)+_0x5b5b16,_0x55e4ed(0xbe));return{'execute':async()=>{const _0x5d9930=_0x55e4ed;await _0x57a7a3[_0x5d9930(0xfa)];},'abortController':_0x57a7a3[_0x55e4ed(0xeb)]};}[_0x524bb7(0xb4)](_0x2dddc9,_0x4ceb1a){const _0x2efd98=_0x524bb7,_0x33eb9e=this[_0x2efd98(0x126)](_0x2efd98(0xf5)+_0x2dddc9,_0x2efd98(0x111),_0x4ceb1a);return{'getResult':async()=>(await _0x33eb9e[_0x2efd98(0xfa)],_0x4ceb1a),'abortController':_0x33eb9e[_0x2efd98(0xeb)]};}[_0x524bb7(0x11a)](_0xf4dc10){const _0x2aa76d=_0x524bb7,_0x46e027=this[_0x2aa76d(0x126)](_0x2aa76d(0xf5)+_0xf4dc10,_0x2aa76d(0xf0));return{'getConversation':async()=>(await _0x46e027[_0x2aa76d(0xfa)])[_0x2aa76d(0xb0)](),'abortController':_0x46e027[_0x2aa76d(0xeb)]};}[_0x524bb7(0x10b)](_0xec569c){const _0x2307de=_0x524bb7,_0x592028=this[_0x2307de(0x126)](_0x2307de(0xf5)+_0xec569c+_0x2307de(0x122),_0x2307de(0xf0));return{'getMessages':async()=>{const _0x3fad54=_0x2307de,_0x4f0260=await _0x592028[_0x3fad54(0xfa)];return(await _0x4f0260[_0x3fad54(0xb0)]())[_0x3fad54(0xb9)];},'abortController':_0x592028[_0x2307de(0xeb)]};}[_0x524bb7(0x10a)](_0x4723ba,_0x458026,_0x3a5645){const _0x56b2f4=_0x524bb7,_0x16da18=this[_0x56b2f4(0x126)](_0x56b2f4(0xf5)+_0x4723ba+_0x56b2f4(0xaa),_0x56b2f4(0xfd),{'url':_0x458026,'attributes':_0x3a5645});return{'getId':async()=>(await _0x16da18[_0x56b2f4(0xfa)])[_0x56b2f4(0xb0)](),'abortController':_0x16da18[_0x56b2f4(0xeb)]};}[_0x524bb7(0xc5)](_0x1f023f='en'){const _0x1e99d2=_0x524bb7,_0x5d7d31=new URLSearchParams();_0x5d7d31[_0x1e99d2(0xdc)](_0x1e99d2(0xf9),_0x1f023f);const _0x378037=_0x1e99d2(0x10d)+_0x5d7d31[_0x1e99d2(0xa6)](),_0x236dad=this[_0x1e99d2(0x126)](_0x378037,_0x1e99d2(0xf0));return{'list':async()=>await(await _0x236dad[_0x1e99d2(0xfa)])[_0x1e99d2(0xb0)](),'abortController':_0x236dad[_0x1e99d2(0xeb)]};}[_0x524bb7(0xf4)](_0x52fbc9,_0x3fa419){const _0x12f75a=_0x524bb7,_0x227a25=this[_0x12f75a(0x126)](_0x12f75a(0xf5)+_0x52fbc9+_0x12f75a(0xc6)+_0x3fa419,_0x12f75a(0xbe));return{'execute':async()=>{const _0x1edfec=_0x12f75a;await _0x227a25[_0x1edfec(0xfa)];},'abortController':_0x227a25[_0x12f75a(0xeb)]};}[_0x524bb7(0xd8)](_0x4f71f6,_0x29d043){const _0x128624=_0x524bb7,_0x252398=this[_0x128624(0x126)](_0x128624(0xf5)+_0x4f71f6+_0x128624(0x116)+_0x29d043,_0x128624(0xbe));return{'execute':async()=>{const _0x3eaac1=_0x128624;await _0x252398[_0x3eaac1(0xfa)];},'abortController':_0x252398[_0x128624(0xeb)]};}[_0x524bb7(0xab)](_0x24f903,_0x1c9e4e){const _0xedda0e=_0x524bb7,_0x241c6b=this[_0xedda0e(0x126)](_0xedda0e(0xf5)+_0x24f903+_0xedda0e(0xf6)+_0x1c9e4e,_0xedda0e(0xbe));return{'execute':async()=>{const _0xca4ee1=_0xedda0e;await _0x241c6b[_0xca4ee1(0xfa)];},'abortController':_0x241c6b[_0xedda0e(0xeb)]};}[_0x524bb7(0x102)]({reviewName:_0x25be81,content:_0xd11ec1,args:_0x31163d}){const _0x112265=_0x524bb7,_0xa2b61d=this[_0x112265(0x126)](_0x112265(0xb1)+_0x25be81+_0x112265(0x119),_0x112265(0xfd),{'content':[{'type':_0x112265(0xa5),'content':_0xd11ec1}],'args':_0x31163d});return{'getStream':async()=>{const _0x3058fa=_0x112265,_0x25ab4f=(await _0xa2b61d[_0x3058fa(0xfa)])[_0x3058fa(0xe5)];return this[_0x3058fa(0xd4)](_0x25ab4f);},'abortController':_0xa2b61d[_0x112265(0xeb)]};}[_0x524bb7(0xc9)]({content:_0xd9d4c6,prompt:_0x5f0d7b,model:_0x2182db}){const _0x44b3a7=_0x524bb7,_0x4fa05d=this[_0x44b3a7(0x126)](_0x44b3a7(0xe9),_0x44b3a7(0xfd),{'content':[{'type':_0x44b3a7(0xa5),'content':_0xd9d4c6}],'prompt':_0x5f0d7b,'model':_0x2182db});return{'getStream':async()=>{const _0x498d4f=_0x44b3a7,_0xe09b9b=(await _0x4fa05d[_0x498d4f(0xfa)])[_0x498d4f(0xe5)];return this[_0x498d4f(0xd4)](_0xe09b9b);},'abortController':_0x4fa05d[_0x44b3a7(0xeb)]};}[_0x524bb7(0xec)](_0x8fc410,_0x352839,_0x1cad08){const _0x15995f=_0x524bb7,_0x5650ec=this[_0x15995f(0x126)](_0x15995f(0xf5)+_0x8fc410+_0x15995f(0x105)+_0x352839+_0x15995f(0xca),_0x15995f(0x12b),{'positiveCount':_0x1cad08[_0x15995f(0x12e)],'totalCount':_0x1cad08[_0x15995f(0x12f)],'modificationId':_0x1cad08[_0x15995f(0xd5)]});return{'execute':async()=>{const _0x34c1b5=_0x15995f;await _0x5650ec[_0x34c1b5(0xfa)];},'abortController':_0x5650ec[_0x15995f(0xeb)]};}[_0x524bb7(0xc3)](_0x2ef57f,_0x215f18,_0x4b9c0a){const _0x44b9af=_0x524bb7,_0x5ce89a=this[_0x44b9af(0x126)](_0x44b9af(0xb8)+_0x2ef57f+_0x44b9af(0xc2)+_0x215f18+_0x44b9af(0xca),_0x44b9af(0x12b),{'positiveCount':_0x4b9c0a[_0x44b9af(0x12e)],'totalCount':_0x4b9c0a[_0x44b9af(0x12f)]});return{'execute':async()=>{const _0x38db0c=_0x44b9af;await _0x5ce89a[_0x38db0c(0xfa)];},'abortController':_0x5ce89a[_0x44b9af(0xeb)]};}[_0x524bb7(0xbd)](_0x50a39b,_0x197f4b){const _0x58e427=_0x524bb7,_0x934185=this[_0x58e427(0x126)](_0x58e427(0xb7)+_0x50a39b+_0x58e427(0xca),_0x58e427(0x12b),{'positiveCount':_0x197f4b[_0x58e427(0x12e)],'totalCount':_0x197f4b[_0x58e427(0x12f)]});return{'execute':async()=>{const _0xb58783=_0x58e427;await _0x934185[_0xb58783(0xfa)];},'abortController':_0x934185[_0x58e427(0xeb)]};}[_0x524bb7(0x9f)](_0x365899,_0xfae3b2,_0xe8baff,_0x29a4a3){const _0x2eab12=_0x524bb7,_0x43705b=this[_0x2eab12(0x126)](_0x2eab12(0xb1)+_0x365899+_0x2eab12(0xc2)+_0xfae3b2+_0x2eab12(0xca),_0x2eab12(0x12b),{'positiveCount':_0xe8baff[_0x2eab12(0x12e)],'totalCount':_0xe8baff[_0x2eab12(0x12f)],'dataId':_0x29a4a3});return{'execute':async()=>{const _0x164101=_0x2eab12;await _0x43705b[_0x164101(0xfa)];},'abortController':_0x43705b[_0x2eab12(0xeb)]};}[_0x524bb7(0x129)](_0x69dcd6,_0x501b2f,_0x20d04e){const _0x1499db=_0x524bb7,_0x1190b8=this[_0x1499db(0x126)](_0x1499db(0xbf)+_0x69dcd6+_0x1499db(0xca),_0x1499db(0x12b),{'positiveCount':_0x501b2f[_0x1499db(0x12e)],'totalCount':_0x501b2f[_0x1499db(0x12f)],'dataId':_0x20d04e});return{'execute':async()=>{const _0x11a2e2=_0x1499db;await _0x1190b8[_0x11a2e2(0xfa)];},'abortController':_0x1190b8[_0x1499db(0xeb)]};}[_0x524bb7(0x126)](_0x2b82a4,_0x419b45,_0x3f4626){const _0x4dc6e2=_0x524bb7,_0x4f48b3=new AbortController(),_0x472402=_0x3f4626 instanceof FormData,_0x5b0b11={'Authorization':_0x4dc6e2(0xd9)+this[_0x4dc6e2(0xc4)]?.[_0x4dc6e2(0x117)]};_0x3f4626&&!_0x472402&&(_0x5b0b11[_0x4dc6e2(0x114)]=_0x4dc6e2(0xcf));const _0x1e812d={'method':_0x419b45,'headers':_0x5b0b11,'signal':_0x4f48b3[_0x4dc6e2(0xa9)]};return _0x3f4626&&(_0x1e812d[_0x4dc6e2(0xe5)]=_0x472402?_0x3f4626:JSON[_0x4dc6e2(0xba)](_0x3f4626)),{'request':fetch(''+this[_0x4dc6e2(0x109)]+_0x2b82a4,_0x1e812d)[_0x4dc6e2(0xb2)](_0x3d2c2d=>{const _0x38a42b=_0x4dc6e2;this[_0x38a42b(0x112)](_0x3d2c2d);})[_0x4dc6e2(0x101)](_0x5887e6=>_0x5887e6['ok']?_0x5887e6:_0x5887e6[_0x4dc6e2(0xb0)]()[_0x4dc6e2(0x101)](_0x246fca=>{const _0x441836=_0x4dc6e2;throw{'url':this[_0x441836(0x109)],'path':_0x2b82a4,'method':_0x419b45,'body':_0x3f4626,'status':(_0x5887e6||{})[_0x441836(0x11f)],'statusText':(_0x5887e6||{})[_0x441836(0xa1)],'code':_0x246fca[_0x441836(0xbc)],'message':_0x246fca[_0x441836(0x12c)],'traceId':_0x246fca[_0x441836(0xd2)]};})),'abortController':_0x4f48b3};}async*[_0x524bb7(0xd4)](_0x2fc6e7){const _0x18592d=_0x524bb7,_0x2ba2e3=[],_0x42dcdf=_0x2fc6e7[_0x18592d(0xff)](),_0x119dfb=_0x8a3a82({'onError':_0xd7ed2d=>{const _0x3b0f6a=_0x18592d;this[_0x3b0f6a(0x112)](_0xd7ed2d);},'onEvent':_0x5968bc=>{const _0x1a059a=_0x18592d;_0x5968bc[_0x1a059a(0xdb)]=JSON[_0x1a059a(0xdf)](_0x5968bc[_0x1a059a(0xdb)]),_0x2ba2e3[_0x1a059a(0x10c)](_0x5968bc);}});try{let _0x217283=!0x1;for(;!_0x217283;){const {done:_0x221211,value:_0x7810e8}=await _0x42dcdf[_0x18592d(0x120)]();_0x221211&&(_0x217283=!0x0),_0x119dfb[_0x18592d(0x121)](this[_0x18592d(0xb5)][_0x18592d(0xa4)](_0x7810e8,{'stream':!0x0})),yield*_0x2ba2e3,_0x2ba2e3[_0x18592d(0xd1)]=0x0;}}catch(_0x3f593e){this[_0x18592d(0x112)](_0x3f593e);}finally{_0x42dcdf[_0x18592d(0xb3)](),_0x119dfb[_0x18592d(0xe6)]();}}[_0x524bb7(0x112)](_0x3744ea){const _0x10fb0c=_0x524bb7;if(_0x3744ea instanceof _0x4d61db)throw _0x3744ea;if(_0x3744ea instanceof Error&&_0x10fb0c(0x103)===_0x3744ea[_0x10fb0c(0xa2)])throw new _0x4d61db(_0x10fb0c(0x130),this,{'originalError':_0x3744ea});throw new _0x4d61db(_0x10fb0c(0xe2),this,{'originalError':_0x3744ea});}}
23
+ const _0x34a402=_0x3242;(function(_0x5a7e68,_0x15a6d3){const _0x151b4b=_0x3242,_0x140029=_0x5a7e68();while(!![]){try{const _0x3b572=-parseInt(_0x151b4b(0xdc))/0x1+-parseInt(_0x151b4b(0xa2))/0x2*(-parseInt(_0x151b4b(0x125))/0x3)+parseInt(_0x151b4b(0xb7))/0x4+-parseInt(_0x151b4b(0x112))/0x5+parseInt(_0x151b4b(0xa1))/0x6*(parseInt(_0x151b4b(0x10c))/0x7)+parseInt(_0x151b4b(0xa7))/0x8*(-parseInt(_0x151b4b(0xb9))/0x9)+-parseInt(_0x151b4b(0x12b))/0xa*(parseInt(_0x151b4b(0x11a))/0xb);if(_0x3b572===_0x15a6d3)break;else _0x140029['push'](_0x140029['shift']());}catch(_0x10015a){_0x140029['push'](_0x140029['shift']());}}}(_0x1422,0x3ba8d));import{createParser as _0x1f5e5d}from'eventsource-parser';import{ContextPlugin as _0x5ed291}from'ckeditor5/src/core.js';import{CKEditorError as _0x3323ab}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x786f6a){const _0x1a4f22=_0x3242;_0x786f6a[_0x1a4f22(0xc9)]=_0x1a4f22(0xaf),_0x786f6a[_0x1a4f22(0xde)]=_0x1a4f22(0xc5),_0x786f6a[_0x1a4f22(0x116)]=_0x1a4f22(0xb6),_0x786f6a[_0x1a4f22(0xf8)]=_0x1a4f22(0xca),_0x786f6a[_0x1a4f22(0xed)]=_0x1a4f22(0xc8),_0x786f6a[_0x1a4f22(0x111)]=_0x1a4f22(0xad),_0x786f6a[_0x1a4f22(0x135)]=_0x1a4f22(0xf0),_0x786f6a[_0x1a4f22(0xd0)]=_0x1a4f22(0xf1);}(AIActionsNames||(AIActionsNames={}));function _0x3242(_0x41a387,_0x3e25ec){const _0x142272=_0x1422();return _0x3242=function(_0x32428f,_0x11ef45){_0x32428f=_0x32428f-0xa1;let _0x249e02=_0x142272[_0x32428f];return _0x249e02;},_0x3242(_0x41a387,_0x3e25ec);}export class AIConnector extends _0x5ed291{[_0x34a402(0x110)];[_0x34a402(0xe8)];[_0x34a402(0xb2)];static get[_0x34a402(0xd5)](){const _0x4ee583=_0x34a402;return[_0x4ee583(0xa6)];}static get[_0x34a402(0xff)](){const _0x377fc8=_0x34a402;return _0x377fc8(0x105);}static get[_0x34a402(0xe9)](){return!0x0;}static get[_0x34a402(0x103)](){return!0x0;}constructor(_0x21e3bc){const _0x23367b=_0x34a402;super(_0x21e3bc),this[_0x23367b(0x113)][_0x23367b(0xba)][_0x23367b(0x12c)](_0x23367b(0xe2),_0x23367b(0xf5)),this[_0x23367b(0x110)]=this[_0x23367b(0x113)][_0x23367b(0xba)][_0x23367b(0xe7)](_0x23367b(0xe2)),this[_0x23367b(0xe8)]=null,this[_0x23367b(0xb2)]=new TextDecoder();}[_0x34a402(0x107)](){const _0x4895db=_0x34a402,_0x1e7742=this[_0x4895db(0x113)][_0x4895db(0xd3)][_0x4895db(0xe7)](_0x4895db(0xa6));if(!_0x1e7742[_0x4895db(0xb0)])throw new _0x3323ab(_0x4895db(0xbf),this);this[_0x4895db(0xe8)]=_0x1e7742[_0x4895db(0xb0)];}[_0x34a402(0xd4)](_0x21d082,_0x3e4116){const _0x22dda4=_0x34a402,_0x9d37e1=this[_0x22dda4(0x131)](_0x22dda4(0x10d),_0x22dda4(0x119),{'id':_0x21d082,'group':_0x3e4116});return{'getConversation':async()=>(await _0x9d37e1[_0x22dda4(0xcc)])[_0x22dda4(0xa4)](),'abortController':_0x9d37e1[_0x22dda4(0xf2)]};}[_0x34a402(0x11c)]({message:_0x4fbfb6,conversationId:_0x9421ee,parts:_0x1868a4,capabilities:_0x2ef921,model:_0x4e1e8f,attributes:_0x49dda3}){const _0x39cb62=_0x34a402,_0x59f5d1={'prompt':_0x4fbfb6,'content':_0x1868a4,'model':_0x4e1e8f,..._0x2ef921&&{'capabilities':_0x2ef921},..._0x49dda3&&{'attributes':_0x49dda3}},_0x5b9a71=this[_0x39cb62(0x131)](_0x39cb62(0xf3)+_0x9421ee+_0x39cb62(0xf6),_0x39cb62(0x119),_0x59f5d1);return{'getStream':async()=>{const _0x1be60d=_0x39cb62,_0x1896a1=(await _0x5b9a71[_0x1be60d(0xcc)])[_0x1be60d(0x124)];return this[_0x1be60d(0xe1)](_0x1896a1);},'abortController':_0x5b9a71[_0x39cb62(0xf2)]};}[_0x34a402(0xdf)]({content:_0x1f574a,message:_0x30fa35,model:_0x58aa7f,outputFormat:_0x5cf744}){const _0x2874e0=_0x34a402,_0x41e27b={'content':[{'type':_0x2874e0(0xfc),'content':_0x1f574a}],'prompt':_0x30fa35,'model':_0x58aa7f,'outputFormat':_0x5cf744},_0x3d5a79=this[_0x2874e0(0x131)](_0x2874e0(0xe0),_0x2874e0(0x119),_0x41e27b);return{'getStream':async()=>{const _0x22ff1b=_0x2874e0,_0x4a10ec=(await _0x3d5a79[_0x22ff1b(0xcc)])[_0x22ff1b(0x124)];return this[_0x22ff1b(0xe1)](_0x4a10ec);},'abortController':_0x3d5a79[_0x2874e0(0xf2)]};}[_0x34a402(0x136)]({actionName:_0x4e6bb1,content:_0x4af840,args:_0x1f4a8a}){const _0x3048df=_0x34a402,_0xb1573a={'content':[{'type':_0x3048df(0xfc),'content':_0x4af840}],'args':_0x1f4a8a},_0x3894d4=this[_0x3048df(0x131)](_0x3048df(0xdd)+_0x4e6bb1+_0x3048df(0x134),_0x3048df(0x119),_0xb1573a);return{'getStream':async()=>{const _0x340f50=_0x3048df,_0x2063c8=(await _0x3894d4[_0x340f50(0xcc)])[_0x340f50(0x124)];return this[_0x340f50(0xe1)](_0x2063c8);},'abortController':_0x3894d4[_0x3048df(0xf2)]};}[_0x34a402(0x118)](_0x385d6a,_0x25d4a6,_0x342e9d){const _0x6e4e22=_0x34a402,_0x5ba5a3=new FormData();_0x5ba5a3[_0x6e4e22(0xce)](_0x6e4e22(0xe5),_0x25d4a6,_0x25d4a6[_0x6e4e22(0xfd)]),_0x342e9d&&_0x5ba5a3[_0x6e4e22(0xce)](_0x6e4e22(0xa8),JSON[_0x6e4e22(0x11f)](_0x342e9d));const _0x38aecb=this[_0x6e4e22(0x131)](_0x6e4e22(0xf3)+_0x385d6a+_0x6e4e22(0xd7),_0x6e4e22(0x119),_0x5ba5a3);return{'getId':async()=>(await _0x38aecb[_0x6e4e22(0xcc)])[_0x6e4e22(0xa4)](),'abortController':_0x38aecb[_0x6e4e22(0xf2)]};}[_0x34a402(0x12e)](_0x14e8ed,_0x8fc5cc){const _0x17dd0a=_0x34a402,_0x61f3ac=this[_0x17dd0a(0x131)](_0x17dd0a(0xf3)+_0x14e8ed+_0x17dd0a(0x102)+_0x8fc5cc,_0x17dd0a(0x101));return{'getDocument':async()=>(await _0x61f3ac[_0x17dd0a(0xcc)])[_0x17dd0a(0xa4)](),'abortController':_0x61f3ac[_0x17dd0a(0xf2)]};}[_0x34a402(0x115)](_0x490228,_0x90bff1,_0x3623ca){const _0x237cb9=_0x34a402,_0x4ae75e={'content':_0x90bff1};_0x3623ca&&(_0x4ae75e[_0x237cb9(0xa8)]=_0x3623ca);const _0x148ab2=this[_0x237cb9(0x131)](_0x237cb9(0xf3)+_0x490228+_0x237cb9(0x11d),_0x237cb9(0x119),_0x4ae75e);return{'getId':async()=>(await _0x148ab2[_0x237cb9(0xcc)])[_0x237cb9(0xa4)](),'abortController':_0x148ab2[_0x237cb9(0xf2)]};}[_0x34a402(0xee)](_0x59faff,_0x3f6b12={}){const _0x26f55a=_0x34a402,_0x135518=new URLSearchParams();_0x135518[_0x26f55a(0xce)](_0x26f55a(0xc3),_0x59faff),_0x135518[_0x26f55a(0xce)](_0x26f55a(0x11b),!0x1!==_0x3f6b12[_0x26f55a(0x11b)]?_0x26f55a(0x127):_0x26f55a(0x10f)),_0x135518[_0x26f55a(0xce)](_0x26f55a(0x129),_0x3f6b12[_0x26f55a(0x129)]?_0x3f6b12[_0x26f55a(0x129)][_0x26f55a(0xaa)]():_0x26f55a(0x108)),_0x135518[_0x26f55a(0xce)](_0x26f55a(0x100),_0x3f6b12[_0x26f55a(0x100)]?_0x3f6b12[_0x26f55a(0x100)]:_0x26f55a(0xcd)),_0x135518[_0x26f55a(0xce)](_0x26f55a(0xfa),_0x3f6b12[_0x26f55a(0xfa)]?_0x3f6b12[_0x26f55a(0xfa)]:_0x26f55a(0x132));const _0x255873=this[_0x26f55a(0x131)](_0x26f55a(0xec)+_0x135518[_0x26f55a(0xaa)](),_0x26f55a(0x101));return{'getConversations':async()=>{const _0x8ae2c0=_0x26f55a,_0x3903f3=await _0x255873[_0x8ae2c0(0xcc)];return(await _0x3903f3[_0x8ae2c0(0xa4)]())[_0x8ae2c0(0xd9)];},'abortController':_0x255873[_0x26f55a(0xf2)]};}[_0x34a402(0xfb)](_0x1b12f3){const _0x5efd5d=_0x34a402,_0x4f39e9=this[_0x5efd5d(0x131)](_0x5efd5d(0xf3)+_0x1b12f3,_0x5efd5d(0xb8));return{'execute':async()=>{const _0x322b72=_0x5efd5d;await _0x4f39e9[_0x322b72(0xcc)];},'abortController':_0x4f39e9[_0x5efd5d(0xf2)]};}[_0x34a402(0x121)](_0x1ebacf,_0x2ab07e){const _0x4ffbc7=_0x34a402,_0x4c1816=this[_0x4ffbc7(0x131)](_0x4ffbc7(0xf3)+_0x1ebacf,_0x4ffbc7(0x130),_0x2ab07e);return{'getResult':async()=>(await _0x4c1816[_0x4ffbc7(0xcc)],_0x2ab07e),'abortController':_0x4c1816[_0x4ffbc7(0xf2)]};}[_0x34a402(0x11e)](_0x2fac0e){const _0x571810=_0x34a402,_0x4ed444=this[_0x571810(0x131)](_0x571810(0xf3)+_0x2fac0e,_0x571810(0x101));return{'getConversation':async()=>(await _0x4ed444[_0x571810(0xcc)])[_0x571810(0xa4)](),'abortController':_0x4ed444[_0x571810(0xf2)]};}[_0x34a402(0x10a)](_0xd7a401){const _0x2525f5=_0x34a402,_0x28e015=this[_0x2525f5(0x131)](_0x2525f5(0xf3)+_0xd7a401+_0x2525f5(0xf6),_0x2525f5(0x101));return{'getMessages':async()=>{const _0x19a6d3=_0x2525f5,_0x4ce4f0=await _0x28e015[_0x19a6d3(0xcc)];return(await _0x4ce4f0[_0x19a6d3(0xa4)]())[_0x19a6d3(0xd9)];},'abortController':_0x28e015[_0x2525f5(0xf2)]};}[_0x34a402(0xbb)](_0x2e0fe7,_0x59d6e,_0x21375e){const _0x170d45=_0x34a402,_0x23c454=this[_0x170d45(0x131)](_0x170d45(0xf3)+_0x2e0fe7+_0x170d45(0xd8),_0x170d45(0x119),{'url':_0x59d6e,'attributes':_0x21375e});return{'getId':async()=>(await _0x23c454[_0x170d45(0xcc)])[_0x170d45(0xa4)](),'abortController':_0x23c454[_0x170d45(0xf2)]};}[_0x34a402(0x128)](_0x1d4933='en'){const _0xf22774=_0x34a402,_0x15ded4=new URLSearchParams();_0x15ded4[_0xf22774(0xce)](_0xf22774(0xc1),_0x1d4933);const _0x5072d1=_0xf22774(0xb1)+_0x15ded4[_0xf22774(0xaa)](),_0x32899a=this[_0xf22774(0x131)](_0x5072d1,_0xf22774(0x101));return{'list':async()=>await(await _0x32899a[_0xf22774(0xcc)])[_0xf22774(0xa4)](),'abortController':_0x32899a[_0xf22774(0xf2)]};}[_0x34a402(0xb5)](_0x181475,_0x3e3cca){const _0x510b5c=_0x34a402,_0x4e976a=this[_0x510b5c(0x131)](_0x510b5c(0xf3)+_0x181475+_0x510b5c(0xa9)+_0x3e3cca,_0x510b5c(0xb8));return{'execute':async()=>{const _0x3e4884=_0x510b5c;await _0x4e976a[_0x3e4884(0xcc)];},'abortController':_0x4e976a[_0x510b5c(0xf2)]};}[_0x34a402(0xae)](_0x587826,_0xbf7c99){const _0x4f0525=_0x34a402,_0x165314=this[_0x4f0525(0x131)](_0x4f0525(0xf3)+_0x587826+_0x4f0525(0x102)+_0xbf7c99,_0x4f0525(0xb8));return{'execute':async()=>{const _0x232d0b=_0x4f0525;await _0x165314[_0x232d0b(0xcc)];},'abortController':_0x165314[_0x4f0525(0xf2)]};}[_0x34a402(0xda)](_0x3e451e,_0x221be7){const _0x145ead=_0x34a402,_0x425ad0=this[_0x145ead(0x131)](_0x145ead(0xf3)+_0x3e451e+_0x145ead(0xe6)+_0x221be7,_0x145ead(0xb8));return{'execute':async()=>{const _0x522ba=_0x145ead;await _0x425ad0[_0x522ba(0xcc)];},'abortController':_0x425ad0[_0x145ead(0xf2)]};}[_0x34a402(0x12a)]({reviewName:_0x26e9ff,content:_0x5d125e,args:_0x2ca4c4}){const _0x2e5e4e=_0x34a402,_0x2be698=this[_0x2e5e4e(0x131)](_0x2e5e4e(0x104)+_0x26e9ff+_0x2e5e4e(0x134),_0x2e5e4e(0x119),{'content':[{'type':_0x2e5e4e(0xfc),'content':_0x5d125e}],'args':_0x2ca4c4});return{'getStream':async()=>{const _0x37a423=_0x2e5e4e,_0x5d7c8b=(await _0x2be698[_0x37a423(0xcc)])[_0x37a423(0x124)];return this[_0x37a423(0xe1)](_0x5d7c8b);},'abortController':_0x2be698[_0x2e5e4e(0xf2)]};}[_0x34a402(0xcb)]({content:_0x52cfc6,prompt:_0x48eee0,model:_0x39e6b8}){const _0x70a14=_0x34a402,_0x35eb52=this[_0x70a14(0x131)](_0x70a14(0xab),_0x70a14(0x119),{'content':[{'type':_0x70a14(0xfc),'content':_0x52cfc6}],'prompt':_0x48eee0,'model':_0x39e6b8});return{'getStream':async()=>{const _0x571003=_0x70a14,_0x20d36d=(await _0x35eb52[_0x571003(0xcc)])[_0x571003(0x124)];return this[_0x571003(0xe1)](_0x20d36d);},'abortController':_0x35eb52[_0x70a14(0xf2)]};}[_0x34a402(0xd6)](_0x22c077,_0x474f81,_0x3952ab){const _0x548990=_0x34a402,_0x7e3ac6=this[_0x548990(0x131)](_0x548990(0xf3)+_0x22c077+_0x548990(0xc0)+_0x474f81+_0x548990(0xb4),_0x548990(0xd1),{'positiveCount':_0x3952ab[_0x548990(0x114)],'totalCount':_0x3952ab[_0x548990(0xf7)],'modificationId':_0x3952ab[_0x548990(0xea)]});return{'execute':async()=>{const _0x28a1b6=_0x548990;await _0x7e3ac6[_0x28a1b6(0xcc)];},'abortController':_0x7e3ac6[_0x548990(0xf2)]};}[_0x34a402(0xdb)](_0x14596f,_0x2f45e0,_0x3156cc){const _0x405ab9=_0x34a402,_0x37526b=this[_0x405ab9(0x131)](_0x405ab9(0xdd)+_0x14596f+_0x405ab9(0x126)+_0x2f45e0+_0x405ab9(0xb4),_0x405ab9(0xd1),{'positiveCount':_0x3156cc[_0x405ab9(0x114)],'totalCount':_0x3156cc[_0x405ab9(0xf7)]});return{'execute':async()=>{const _0x250bfc=_0x405ab9;await _0x37526b[_0x250bfc(0xcc)];},'abortController':_0x37526b[_0x405ab9(0xf2)]};}[_0x34a402(0x106)](_0x421267,_0x9faee){const _0x40d54d=_0x34a402,_0x5dc8d8=this[_0x40d54d(0x131)](_0x40d54d(0xcf)+_0x421267+_0x40d54d(0xb4),_0x40d54d(0xd1),{'positiveCount':_0x9faee[_0x40d54d(0x114)],'totalCount':_0x9faee[_0x40d54d(0xf7)]});return{'execute':async()=>{const _0x5057c1=_0x40d54d;await _0x5dc8d8[_0x5057c1(0xcc)];},'abortController':_0x5dc8d8[_0x40d54d(0xf2)]};}[_0x34a402(0x117)](_0x116e81,_0xc46215,_0x38bb7a,_0x3660b5){const _0xd0edde=_0x34a402,_0xf35839=this[_0xd0edde(0x131)](_0xd0edde(0x104)+_0x116e81+_0xd0edde(0x126)+_0xc46215+_0xd0edde(0xb4),_0xd0edde(0xd1),{'positiveCount':_0x38bb7a[_0xd0edde(0x114)],'totalCount':_0x38bb7a[_0xd0edde(0xf7)],'dataId':_0x3660b5});return{'execute':async()=>{const _0x343cca=_0xd0edde;await _0xf35839[_0x343cca(0xcc)];},'abortController':_0xf35839[_0xd0edde(0xf2)]};}[_0x34a402(0xc2)](_0x28b026,_0x45bfc6,_0x3d2e6b){const _0x36a03b=_0x34a402,_0x929da3=this[_0x36a03b(0x131)](_0x36a03b(0xb3)+_0x28b026+_0x36a03b(0xb4),_0x36a03b(0xd1),{'positiveCount':_0x45bfc6[_0x36a03b(0x114)],'totalCount':_0x45bfc6[_0x36a03b(0xf7)],'dataId':_0x3d2e6b});return{'execute':async()=>{const _0x26efde=_0x36a03b;await _0x929da3[_0x26efde(0xcc)];},'abortController':_0x929da3[_0x36a03b(0xf2)]};}[_0x34a402(0x131)](_0x31bb96,_0x165df9,_0x38694e){const _0x4b1470=_0x34a402,_0x1f7f11=new AbortController(),_0x56b28e=_0x38694e instanceof FormData,_0x193fc0={'Authorization':_0x4b1470(0xef)+this[_0x4b1470(0xe8)]?.[_0x4b1470(0x122)]};_0x38694e&&!_0x56b28e&&(_0x193fc0[_0x4b1470(0xfe)]=_0x4b1470(0xe4));const _0x34ebc6={'method':_0x165df9,'headers':_0x193fc0,'signal':_0x1f7f11[_0x4b1470(0xbc)]};return _0x38694e&&(_0x34ebc6[_0x4b1470(0x124)]=_0x56b28e?_0x38694e:JSON[_0x4b1470(0x11f)](_0x38694e)),{'request':fetch(''+this[_0x4b1470(0x110)]+_0x31bb96,_0x34ebc6)[_0x4b1470(0x12f)](_0x3397ae=>{const _0x32c06d=_0x4b1470;this[_0x32c06d(0x133)](_0x3397ae);})[_0x4b1470(0x123)](_0x107387=>_0x107387['ok']?_0x107387:_0x107387[_0x4b1470(0xa4)]()[_0x4b1470(0x123)](_0x1fafd7=>{const _0x59f644=_0x4b1470;throw{'url':this[_0x59f644(0x110)],'path':_0x31bb96,'method':_0x165df9,'body':_0x38694e,'status':(_0x107387||{})[_0x59f644(0xbe)],'statusText':(_0x107387||{})[_0x59f644(0x120)],'code':_0x1fafd7[_0x59f644(0xbd)],'message':_0x1fafd7[_0x59f644(0xac)],'traceId':_0x1fafd7[_0x59f644(0xe3)]};})),'abortController':_0x1f7f11};}async*[_0x34a402(0xe1)](_0x4ce374){const _0x3ba0c9=_0x34a402,_0x9d5aec=[],_0xe5412f=_0x4ce374[_0x3ba0c9(0xc7)](),_0x19b223=_0x1f5e5d({'onError':_0x5a8512=>{const _0x221c63=_0x3ba0c9;this[_0x221c63(0x133)](_0x5a8512);},'onEvent':_0x3831b1=>{const _0x9c3ffd=_0x3ba0c9;_0x3831b1[_0x9c3ffd(0x10e)]=JSON[_0x9c3ffd(0xa3)](_0x3831b1[_0x9c3ffd(0x10e)]),_0x9d5aec[_0x9c3ffd(0xd2)](_0x3831b1);}});try{let _0x4cd3e8=!0x1;for(;!_0x4cd3e8;){const {done:_0x54e56b,value:_0x30a25e}=await _0xe5412f[_0x3ba0c9(0xc4)]();_0x54e56b&&(_0x4cd3e8=!0x0),_0x19b223[_0x3ba0c9(0xc6)](this[_0x3ba0c9(0xb2)][_0x3ba0c9(0x109)](_0x30a25e,{'stream':!0x0})),yield*_0x9d5aec,_0x9d5aec[_0x3ba0c9(0xeb)]=0x0;}}catch(_0x40c106){this[_0x3ba0c9(0x133)](_0x40c106);}finally{_0xe5412f[_0x3ba0c9(0xa5)](),_0x19b223[_0x3ba0c9(0x10b)]();}}[_0x34a402(0x133)](_0x5ec067){const _0x5a79e1=_0x34a402;if(_0x5ec067 instanceof _0x3323ab)throw _0x5ec067;if(_0x5ec067 instanceof Error&&_0x5a79e1(0xf9)===_0x5ec067[_0x5a79e1(0xfd)])throw new _0x3323ab(_0x5a79e1(0xf4),this,{'originalError':_0x5ec067});throw new _0x3323ab(_0x5a79e1(0x12d),this,{'originalError':_0x5ec067});}}function _0x1422(){const _0x4e810e=['deleteFile','improve-writing','1354776XNckjw','DELETE','765315TjEvFS','config','uploadUrl','signal','code','status','ai-missing-token','/messages/','language','upsertCustomAIReviewRating','group','read','fix-grammar','feed','getReader','make-shorter','CONTINUE','make-longer','callCustomReview','request','createdAt','append','/actions/custom/calls/','TRANSLATE','PUT','push','plugins','startConversation','requires','upsertAIChatRating','/files','/web-resources','items','deleteWebResource','upsertAIActionRating','448674juBdCG','/actions/system/','FIX_GRAMMAR','executeCustomAction','/actions/custom/calls','_getStreamReader','ai.serviceUrl','traceId','application/json','file','/web-resources/','get','_token','isOfficialPlugin','modificationId','length','/conversations?','MAKE_SHORTER','fetchConversations','Bearer\x20','make-tone-formal','translate','abortController','/conversations/','ai-request-aborted','https://ai.cke-cs.com/v1','/messages','totalCount','MAKE_LONGER','AbortError','order','deleteConversation','text','name','Content-Type','pluginName','sortBy','GET','/documents/','isPremiumPlugin','/reviews/system/','AIConnector','upsertCustomAIActionRating','init','100','decode','fetchConversationMessages','reset','7pXwWGb','/conversations','data','false','_apiUrl','MAKE_TONE_CASUAL','917330TjTHXF','context','positiveCount','uploadDocument','IMPROVE_WRITING','upsertAIReviewRating','uploadFile','POST','33ADLfwg','excludeEmpty','queryAssistant','/documents','fetchConversation','stringify','statusText','updateConversation','value','then','body','232602UNgsKe','/calls/','true','getModels','limit','callSystemReview','437050PFUBst','define','ai-request-failed','fetchDocument','catch','PATCH','_sendApiRequest','desc','_handleError','/calls','MAKE_TONE_FORMAL','executeAction','2752962NznyQs','12mxuCEM','parse','json','releaseLock','CloudServices','24kwGOdf','attributes','/files/','toString','/reviews/custom/calls','message','make-tone-casual','deleteDocument','continue','token','/models/1?','_decoder','/reviews/custom/calls/','/ratings'];_0x1422=function(){return _0x4e810e;};return _0x1422();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ffd0a=_0x9e8c;function _0x9e8c(_0x52a5f9,_0x1ba6eb){const _0x3b6efc=_0x3b6e();return _0x9e8c=function(_0x9e8cff,_0x56a2ad){_0x9e8cff=_0x9e8cff-0xe6;let _0x1a04cb=_0x3b6efc[_0x9e8cff];return _0x1a04cb;},_0x9e8c(_0x52a5f9,_0x1ba6eb);}(function(_0x1bf4c3,_0x5bf10c){const _0x3c54b3=_0x9e8c,_0x15dc41=_0x1bf4c3();while(!![]){try{const _0x4cc10d=parseInt(_0x3c54b3(0x104))/0x1+parseInt(_0x3c54b3(0xf9))/0x2+-parseInt(_0x3c54b3(0xf7))/0x3*(-parseInt(_0x3c54b3(0x13a))/0x4)+-parseInt(_0x3c54b3(0xed))/0x5+-parseInt(_0x3c54b3(0x10c))/0x6+parseInt(_0x3c54b3(0x120))/0x7*(parseInt(_0x3c54b3(0x115))/0x8)+-parseInt(_0x3c54b3(0x10b))/0x9;if(_0x4cc10d===_0x5bf10c)break;else _0x15dc41['push'](_0x15dc41['shift']());}catch(_0x24f81c){_0x15dc41['push'](_0x15dc41['shift']());}}}(_0x3b6e,0xc9a83));function _0x3b6e(){const _0x227c5c=['selection','getDocumentData','markerName','trim','22548429xlGlXe','2209128PPluxr','RealTimeCollaborationClient','getMarkersGroup','length','start','conversion','document','floor','removeAllRanges','8BsgIUk','domConverter','getLastMatchingPosition','from','plugins','isAfter','element','editors','version','_setDataIdsOnChildren','end','6444753pYKFAJ','_getDocumentDataStringFromView','containerElement','get','ready','toData','_getMarkersInDocumentOrder','htmlWriter','getSelection','substring','has','define','editing','_sessionId','sessionId','getStart','getRanges','view','markers','emptyElement','name','removeMarker','isOfficialPlugin','hideFakeVisualSelection','indexOf','fromCharCode','264TASSrc','isBefore','random','join','data','toView',':end>','change','_integrateEditor','ai.models.showModelSelector','add','locale','showFakeVisualSelection','ck-fake-ai-selection','for',':end></','_displayedFakeSelectionId','_setOutputDataProcessor','isOpening','editingDowncast','createUIElement','schema','_displayedFakeSelectionLocked','data-id','createRange','markerToHighlight','modelToDataWithIds','pluginName','addMarker','$textProxy',':start></','getHtml','push','config','dataDowncast','model','processor','setAttribute','906030mIuXCC','isAtEnd','markerToElement','listenTo','isPremiumPlugin','_outputDataProcessor',':start>','isContent','ai-selection','AIEditing','46245eEKksL','getRoot','2953518DOZBxu','getItems','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','ai-selection:','viewToDom','ck-ai-assistant-ui_theme','convertAiChatSelectionMarker','afterInit','_nextDataId','sort','getSelectionText','465934vsSldu','context','getChildren'];_0x3b6e=function(){return _0x227c5c;};return _0x3b6e();}import{ViewDowncastWriter as _0x5df79e}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x2f98a3,Editor as _0x4087ef}from'ckeditor5/src/core.js';import{uid as _0x1f453e}from'ckeditor5/src/utils.js';import{getTranslation as _0x1c8e30}from'./utils/common-translations.js';import{getEditorFromContext as _0x410050}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x1ffd0a(0xf5);export class AIEditing extends _0x2f98a3{constructor(_0x2a44a6){const _0x16c576=_0x1ffd0a;super(_0x2a44a6),this[_0x16c576(0x105)][_0x16c576(0xe8)][_0x16c576(0x12b)](_0x16c576(0x143),!0x0);}[_0x1ffd0a(0xf2)];[_0x1ffd0a(0x14a)]=null;[_0x1ffd0a(0x150)]=!0x1;[_0x1ffd0a(0x12d)];static get[_0x1ffd0a(0x155)](){const _0x3eb368=_0x1ffd0a;return _0x3eb368(0xf6);}static get[_0x1ffd0a(0x136)](){return!0x0;}static get[_0x1ffd0a(0xf1)](){return!0x0;}get[_0x1ffd0a(0x12e)](){const _0x250d1d=_0x1ffd0a;if(!this[_0x250d1d(0x12d)]){const _0x6ee90f=_0x410050(this[_0x250d1d(0x105)]),_0x508bfd=_0x6ee90f[_0x250d1d(0x119)][_0x250d1d(0x12a)](_0x250d1d(0x10d))&&_0x6ee90f[_0x250d1d(0x119)][_0x250d1d(0x123)](_0x250d1d(0x10d))[_0x250d1d(0x12e)];this[_0x250d1d(0x12d)]=_0x508bfd||_0x1f453e();}return this[_0x250d1d(0x12d)];}async[_0x1ffd0a(0x108)](){const _0x2122c5=_0x1ffd0a,_0x55a065=_0x410050(this[_0x2122c5(0x105)]),_0x1260c4=_0x55a065[_0x2122c5(0xea)],_0x35c8cb=_0x55a065[_0x2122c5(0x13e)][_0x2122c5(0x13f)](_0x1260c4[_0x2122c5(0x112)][_0x2122c5(0xf8)](),{'convertAiChatSelectionMarker':!0x0}),_0x2a2a16=new _0x5df79e(_0x55a065[_0x2122c5(0x12c)][_0x2122c5(0x131)][_0x2122c5(0x112)]);this[_0x2122c5(0x11e)](_0x35c8cb,_0x2a2a16);let _0x4517c5=await this[_0x2122c5(0x121)](_0x35c8cb);const _0x572be8=this[_0x2122c5(0x126)](),_0x1ce52e=[];for(const _0x13cf6e of _0x572be8){const _0x84d9af='<'+_0x13cf6e[_0x2122c5(0x134)]+_0x2122c5(0x158)+_0x13cf6e[_0x2122c5(0x134)]+_0x2122c5(0xf3),_0x36b7fb=_0x4517c5[_0x2122c5(0x138)](_0x84d9af);_0x4517c5=_0x4517c5[_0x2122c5(0x129)](0x0,_0x36b7fb)+_0x4517c5[_0x2122c5(0x129)](_0x36b7fb+_0x84d9af[_0x2122c5(0x10f)]);const _0xb1ae31='<'+_0x13cf6e[_0x2122c5(0x134)]+_0x2122c5(0x149)+_0x13cf6e[_0x2122c5(0x134)]+_0x2122c5(0x140),_0x7e4f59=_0x4517c5[_0x2122c5(0x138)](_0xb1ae31);_0x4517c5=_0x4517c5[_0x2122c5(0x129)](0x0,_0x7e4f59)+_0x4517c5[_0x2122c5(0x129)](_0x7e4f59+_0xb1ae31[_0x2122c5(0x10f)]),_0x1ce52e[_0x2122c5(0xe7)]({'markerName':_0x13cf6e[_0x2122c5(0x134)],'start':_0x36b7fb,'end':_0x7e4f59,'htmlFragment':_0x4517c5[_0x2122c5(0x129)](_0x36b7fb,_0x7e4f59)});}return{'content':_0x4517c5,'version':_0x55a065[_0x2122c5(0xea)][_0x2122c5(0x112)][_0x2122c5(0x11d)],'sessionId':this[_0x2122c5(0x12e)],'selections':_0x1ce52e};}async[_0x1ffd0a(0x100)](){const _0xbb554c=_0x1ffd0a;this[_0xbb554c(0x105)]instanceof _0x4087ef?this[_0xbb554c(0x142)](this[_0xbb554c(0x105)]):this[_0xbb554c(0xf0)](this[_0xbb554c(0x105)][_0xbb554c(0x11c)],_0xbb554c(0x144),(_0x1df93c,_0x19dfdd)=>{const _0x1bc2a6=_0xbb554c;_0x19dfdd['on'](_0x1bc2a6(0x124),()=>{const _0x4d8bed=_0x1bc2a6;this[_0x4d8bed(0x142)](_0x19dfdd);});});}[_0x1ffd0a(0x14b)](_0x8cc3b5){const _0x10b0c0=_0x1ffd0a;this[_0x10b0c0(0xf2)]=_0x8cc3b5;}async[_0x1ffd0a(0x121)](_0x499824){const _0x3727e7=_0x1ffd0a;let _0x6898c1;const _0x36d522=_0x410050(this[_0x3727e7(0x105)]);if(this[_0x3727e7(0xf2)]){const _0x5b4893=_0x36d522[_0x3727e7(0x13e)][_0x3727e7(0xeb)][_0x3727e7(0x116)][_0x3727e7(0xfd)](_0x499824),_0x304542=await this[_0x3727e7(0xf2)](_0x5b4893);_0x6898c1=_0x36d522[_0x3727e7(0x13e)][_0x3727e7(0xeb)][_0x3727e7(0x127)][_0x3727e7(0xe6)](_0x304542);}else _0x6898c1=_0x36d522[_0x3727e7(0x13e)][_0x3727e7(0xeb)][_0x3727e7(0x125)](_0x499824);return _0x6898c1;}[_0x1ffd0a(0x142)](_0x2f1b08){const _0x46c3d1=_0x1ffd0a;_0x2f1b08[_0x46c3d1(0x111)][_0x46c3d1(0x148)](_0x46c3d1(0x14d))[_0x46c3d1(0x153)]({'model':_0x46c3d1(0xf5),'view':{'classes':[_0x46c3d1(0x147),_0x46c3d1(0xfe)],'priority':0xc}}),_0x2f1b08[_0x46c3d1(0x111)][_0x46c3d1(0x148)](_0x46c3d1(0xe9))[_0x46c3d1(0xef)]({'model':_0x46c3d1(0xf5),'view':(_0x68cd30,{writer:_0x5cd266,options:_0x25f685})=>_0x25f685[_0x46c3d1(0xff)]?_0x5cd266[_0x46c3d1(0x14e)](_0x68cd30[_0x46c3d1(0x109)]+':'+(_0x68cd30[_0x46c3d1(0x14c)]?_0x46c3d1(0x110):_0x46c3d1(0x11f))):null});}[_0x1ffd0a(0x146)](_0x34fd4b,_0x6ea798,_0x4b9076=!0x1,_0xe11b5c=!0x1){const _0x400505=_0x1ffd0a;if(this[_0x400505(0x150)]&&!_0xe11b5c)return!0x1;const _0x196ded=_0x410050(this[_0x400505(0x105)])[_0x400505(0xea)];return _0x196ded[_0x400505(0x141)](_0x338162=>{const _0x234a13=_0x400505;this[_0x234a13(0x14a)]&&this[_0x234a13(0x137)](this[_0x234a13(0x14a)]),this[_0x234a13(0x14a)]=_0x6ea798,this[_0x234a13(0x150)]=_0x4b9076;let _0x1621ec=0x0;for(let _0x3f0ecb of _0x34fd4b){const _0x15dd2e=_0x234a13(0xfc)+_0x1621ec;if(_0x3f0ecb[_0x234a13(0x110)][_0x234a13(0xee)]){const _0x1ea3a8=_0x3f0ecb[_0x234a13(0x110)][_0x234a13(0x117)](({item:_0x43aa05})=>!_0x196ded[_0x234a13(0x14f)][_0x234a13(0xf4)](_0x43aa05),{'boundaries':_0x3f0ecb});_0x3f0ecb=_0x338162[_0x234a13(0x152)](_0x1ea3a8,_0x3f0ecb[_0x234a13(0x11f)]);}_0x338162[_0x234a13(0x156)](_0x15dd2e,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x3f0ecb}),_0x1621ec++;}}),window[_0x400505(0x128)]()?.[_0x400505(0x114)](),!0x0;}[_0x1ffd0a(0x137)](_0x56fdeb){const _0x4e8a87=_0x1ffd0a;if(this[_0x4e8a87(0x14a)]!=_0x56fdeb)return!0x1;this[_0x4e8a87(0x14a)]=null,this[_0x4e8a87(0x150)]=!0x1;const _0x4bd5ba=_0x410050(this[_0x4e8a87(0x105)]),_0x2cb1e7=_0x4bd5ba[_0x4e8a87(0xea)][_0x4e8a87(0x132)][_0x4e8a87(0x10e)](_0x4e8a87(0xf5));return _0x4bd5ba[_0x4e8a87(0xea)][_0x4e8a87(0x141)](_0x39d32c=>{const _0x543a69=_0x4e8a87;for(const _0x4a9b88 of _0x2cb1e7)_0x39d32c[_0x543a69(0x135)](_0x4a9b88);}),!0x0;}async[_0x1ffd0a(0x154)](_0x1a7a1b){const _0x1d5f73=_0x1ffd0a,_0x5f1cad=_0x410050(this[_0x1d5f73(0x105)]),_0x5ba8e4=_0x5f1cad[_0x1d5f73(0x13e)][_0x1d5f73(0x13f)](_0x1a7a1b),_0x24fae3=new _0x5df79e(_0x5f1cad[_0x1d5f73(0x12c)][_0x1d5f73(0x131)][_0x1d5f73(0x112)]);return this[_0x1d5f73(0x11e)](_0x5ba8e4,_0x24fae3),this[_0x1d5f73(0x121)](_0x5ba8e4);}[_0x1ffd0a(0x11e)](_0x5ccba9,_0x1c2c10){const _0x56d811=_0x1ffd0a;let _0x10c8db=!0x1;const _0x35627e=new Set();for(const _0x25ee1d of _0x5ccba9[_0x56d811(0x106)]()){const _0x11e7d4=_0x25ee1d['is'](_0x56d811(0x133))||_0x25ee1d['is'](_0x56d811(0x122));if(!_0x25ee1d['is'](_0x56d811(0x11b)))continue;(this[_0x56d811(0x11e)](_0x25ee1d,_0x1c2c10)||_0x11e7d4)&&(_0x1c2c10[_0x56d811(0xec)](_0x56d811(0x151),this[_0x56d811(0x101)](_0x35627e),_0x25ee1d),_0x10c8db=!0x0);}return _0x10c8db;}[_0x1ffd0a(0x101)](_0x1ee75a){const _0x2b33be=_0x1ffd0a;let _0x356f49;do{_0x356f49='';for(let _0x48d54a=0x0;_0x48d54a<0x4;_0x48d54a++)_0x356f49+=String[_0x2b33be(0x139)](0x61+Math[_0x2b33be(0x113)](0x1a*Math[_0x2b33be(0x13c)]()));}while(_0x1ee75a[_0x2b33be(0x12a)](_0x356f49));return _0x1ee75a[_0x2b33be(0x144)](_0x356f49),_0x356f49;}[_0x1ffd0a(0x103)](){const _0x496227=_0x1ffd0a,{model:_0x2ee9ef}=_0x410050(this[_0x496227(0x105)]),_0x55bcc0=_0x2ee9ef[_0x496227(0x112)][_0x496227(0x107)],_0x45f31f=[];for(const _0x3a1278 of _0x55bcc0[_0x496227(0x130)]())for(const _0x8dd2b6 of _0x3a1278[_0x496227(0xfa)]())_0x8dd2b6['is'](_0x496227(0x157))?_0x45f31f[_0x496227(0xe7)](_0x8dd2b6[_0x496227(0x13e)]):_0x8dd2b6['is'](_0x496227(0x11b))&&_0x45f31f[_0x496227(0x10f)]>0x0&&'\x20'!==_0x45f31f[_0x45f31f[_0x496227(0x10f)]-0x1]&&_0x45f31f[_0x496227(0xe7)]('\x20');return _0x45f31f[_0x496227(0x10f)]?'\x22'+_0x45f31f[_0x496227(0x13d)]('')[_0x496227(0x10a)]()+'\x22':_0x1c8e30(this[_0x496227(0x105)][_0x496227(0x145)],_0x496227(0xfb));}[_0x1ffd0a(0x126)](){const _0x5ada23=_0x1ffd0a,_0x904dd2=_0x410050(this[_0x5ada23(0x105)])[_0x5ada23(0xea)];return Array[_0x5ada23(0x118)](_0x904dd2[_0x5ada23(0x132)][_0x5ada23(0x10e)](_0x5ada23(0xf5)))[_0x5ada23(0x102)]((_0x1f2a39,_0x37d203)=>_0x1f2a39[_0x5ada23(0x12f)]()[_0x5ada23(0x13b)](_0x37d203[_0x5ada23(0x12f)]())?-0x1:_0x1f2a39[_0x5ada23(0x12f)]()[_0x5ada23(0x11a)](_0x37d203[_0x5ada23(0x12f)]())?0x1:0x0);}}
23
+ const _0x333953=_0x4a24;(function(_0x26c32b,_0xe6f12f){const _0x33090c=_0x4a24,_0x55b48f=_0x26c32b();while(!![]){try{const _0x3ff6ea=parseInt(_0x33090c(0x15c))/0x1+-parseInt(_0x33090c(0x17d))/0x2*(-parseInt(_0x33090c(0x177))/0x3)+-parseInt(_0x33090c(0x133))/0x4*(-parseInt(_0x33090c(0x126))/0x5)+-parseInt(_0x33090c(0x135))/0x6+parseInt(_0x33090c(0x11f))/0x7*(-parseInt(_0x33090c(0x132))/0x8)+parseInt(_0x33090c(0x179))/0x9+parseInt(_0x33090c(0x146))/0xa*(parseInt(_0x33090c(0x147))/0xb);if(_0x3ff6ea===_0xe6f12f)break;else _0x55b48f['push'](_0x55b48f['shift']());}catch(_0x44e257){_0x55b48f['push'](_0x55b48f['shift']());}}}(_0x362b,0x400d7));import{ViewDowncastWriter as _0x1c7e12}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x448157,Editor as _0x26f8f5}from'ckeditor5/src/core.js';import{uid as _0x114844}from'ckeditor5/src/utils.js';import{getTranslation as _0x5d2d17}from'./utils/common-translations.js';import{getEditorFromContext as _0x50a5ef}from'./utils/geteditorfromcontext.js';function _0x4a24(_0x11b3a5,_0x1a97a3){const _0x362bb3=_0x362b();return _0x4a24=function(_0x4a24db,_0x417432){_0x4a24db=_0x4a24db-0x113;let _0x189f1a=_0x362bb3[_0x4a24db];return _0x189f1a;},_0x4a24(_0x11b3a5,_0x1a97a3);}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x333953(0x167);function _0x362b(){const _0x552ec5=['_getMarkersInDocumentOrder','sessionId','toView',':end></','htmlWriter','_integrateEditor','getDocumentData',':start>','_nextDataId','createRange','has','join','RealTimeCollaborationClient','isPremiumPlugin','3INghLT','_setDataIdsOnChildren','1647369TbrVjl','ai.models.showModelSelector','afterInit','emptyElement','50708ImOxzj','sort','ready','selection','ai-selection:','processor','getMarkersGroup','version','floor','data-id','ck-ai-assistant-ui_theme','getItems','end','getRoot','markerToElement','convertAiChatSelectionMarker','conversion','schema','getStart','isOfficialPlugin','push','getSelectionText','editingDowncast','1772428eeCwMX','length','editing','toData','isOpening','_getDocumentDataStringFromView','getRanges','382570WIkbvx','getLastMatchingPosition','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','listenTo','dataDowncast','editors','trim','for','_setOutputDataProcessor','setAttribute','markerToHighlight','element','16QpfrzC','12ZeHJab','name','2468220FRfJME',':end>','document','ck-fake-ai-selection','isContent','hideFakeVisualSelection','isBefore','getHtml','markers','createUIElement','removeAllRanges','viewToDom','plugins','markerName','showFakeVisualSelection','substring','add','1406310EgVosy','33DuxxDt','indexOf','view','random','_outputDataProcessor','modelToDataWithIds','$textProxy','from','isAtEnd','pluginName','get','isAfter','locale','context','model','containerElement','_displayedFakeSelectionLocked',':start></','domConverter','_displayedFakeSelectionId','addMarker','320307gGTcNv','config','AIEditing','start','define','removeMarker','getSelection','fromCharCode','change','data','_sessionId','ai-selection','getChildren'];_0x362b=function(){return _0x552ec5;};return _0x362b();}export class AIEditing extends _0x448157{constructor(_0x35a380){const _0x4d4f3a=_0x333953;super(_0x35a380),this[_0x4d4f3a(0x154)][_0x4d4f3a(0x15d)][_0x4d4f3a(0x160)](_0x4d4f3a(0x17a),!0x0);}[_0x333953(0x14b)];[_0x333953(0x15a)]=null;[_0x333953(0x157)]=!0x1;[_0x333953(0x166)];static get[_0x333953(0x150)](){const _0x2df982=_0x333953;return _0x2df982(0x15e);}static get[_0x333953(0x11b)](){return!0x0;}static get[_0x333953(0x176)](){return!0x0;}get[_0x333953(0x16a)](){const _0x8e4c5c=_0x333953;if(!this[_0x8e4c5c(0x166)]){const _0x95d4dd=_0x50a5ef(this[_0x8e4c5c(0x154)]),_0x406490=_0x95d4dd[_0x8e4c5c(0x141)][_0x8e4c5c(0x173)](_0x8e4c5c(0x175))&&_0x95d4dd[_0x8e4c5c(0x141)][_0x8e4c5c(0x151)](_0x8e4c5c(0x175))[_0x8e4c5c(0x16a)];this[_0x8e4c5c(0x166)]=_0x406490||_0x114844();}return this[_0x8e4c5c(0x166)];}async[_0x333953(0x16f)](){const _0x200d55=_0x333953,_0x40d09c=_0x50a5ef(this[_0x200d55(0x154)]),_0x201019=_0x40d09c[_0x200d55(0x155)],_0x60d13d=_0x40d09c[_0x200d55(0x165)][_0x200d55(0x16b)](_0x201019[_0x200d55(0x137)][_0x200d55(0x115)](),{'convertAiChatSelectionMarker':!0x0}),_0x5cb56c=new _0x1c7e12(_0x40d09c[_0x200d55(0x121)][_0x200d55(0x149)][_0x200d55(0x137)]);this[_0x200d55(0x178)](_0x60d13d,_0x5cb56c);let _0x52be90=await this[_0x200d55(0x124)](_0x60d13d);const _0x37d3a2=this[_0x200d55(0x169)](),_0x370058=[];for(const _0x34389f of _0x37d3a2){const _0x5acfc1='<'+_0x34389f[_0x200d55(0x134)]+_0x200d55(0x158)+_0x34389f[_0x200d55(0x134)]+_0x200d55(0x170),_0x1b3f8f=_0x52be90[_0x200d55(0x148)](_0x5acfc1);_0x52be90=_0x52be90[_0x200d55(0x144)](0x0,_0x1b3f8f)+_0x52be90[_0x200d55(0x144)](_0x1b3f8f+_0x5acfc1[_0x200d55(0x120)]);const _0x4fd3d0='<'+_0x34389f[_0x200d55(0x134)]+_0x200d55(0x16c)+_0x34389f[_0x200d55(0x134)]+_0x200d55(0x136),_0x111bb4=_0x52be90[_0x200d55(0x148)](_0x4fd3d0);_0x52be90=_0x52be90[_0x200d55(0x144)](0x0,_0x111bb4)+_0x52be90[_0x200d55(0x144)](_0x111bb4+_0x4fd3d0[_0x200d55(0x120)]),_0x370058[_0x200d55(0x11c)]({'markerName':_0x34389f[_0x200d55(0x134)],'start':_0x1b3f8f,'end':_0x111bb4,'htmlFragment':_0x52be90[_0x200d55(0x144)](_0x1b3f8f,_0x111bb4)});}return{'content':_0x52be90,'version':_0x40d09c[_0x200d55(0x155)][_0x200d55(0x137)][_0x200d55(0x184)],'sessionId':this[_0x200d55(0x16a)],'selections':_0x370058};}async[_0x333953(0x17b)](){const _0x511e7e=_0x333953;this[_0x511e7e(0x154)]instanceof _0x26f8f5?this[_0x511e7e(0x16e)](this[_0x511e7e(0x154)]):this[_0x511e7e(0x129)](this[_0x511e7e(0x154)][_0x511e7e(0x12b)],_0x511e7e(0x145),(_0x3f884c,_0x5285b7)=>{const _0x4d4f11=_0x511e7e;_0x5285b7['on'](_0x4d4f11(0x17f),()=>{const _0x246b34=_0x4d4f11;this[_0x246b34(0x16e)](_0x5285b7);});});}[_0x333953(0x12e)](_0x508f31){const _0x4bb25=_0x333953;this[_0x4bb25(0x14b)]=_0x508f31;}async[_0x333953(0x124)](_0x234d78){const _0x5c2b58=_0x333953;let _0x7005cf;const _0xd35b88=_0x50a5ef(this[_0x5c2b58(0x154)]);if(this[_0x5c2b58(0x14b)]){const _0x333a52=_0xd35b88[_0x5c2b58(0x165)][_0x5c2b58(0x182)][_0x5c2b58(0x159)][_0x5c2b58(0x140)](_0x234d78),_0x1789df=await this[_0x5c2b58(0x14b)](_0x333a52);_0x7005cf=_0xd35b88[_0x5c2b58(0x165)][_0x5c2b58(0x182)][_0x5c2b58(0x16d)][_0x5c2b58(0x13c)](_0x1789df);}else _0x7005cf=_0xd35b88[_0x5c2b58(0x165)][_0x5c2b58(0x182)][_0x5c2b58(0x122)](_0x234d78);return _0x7005cf;}[_0x333953(0x16e)](_0x32b633){const _0x44cf1e=_0x333953;_0x32b633[_0x44cf1e(0x118)][_0x44cf1e(0x12d)](_0x44cf1e(0x11e))[_0x44cf1e(0x130)]({'model':_0x44cf1e(0x167),'view':{'classes':[_0x44cf1e(0x138),_0x44cf1e(0x187)],'priority':0xc}}),_0x32b633[_0x44cf1e(0x118)][_0x44cf1e(0x12d)](_0x44cf1e(0x12a))[_0x44cf1e(0x116)]({'model':_0x44cf1e(0x167),'view':(_0x36bfd8,{writer:_0x2216bc,options:_0x3c30ce})=>_0x3c30ce[_0x44cf1e(0x117)]?_0x2216bc[_0x44cf1e(0x13e)](_0x36bfd8[_0x44cf1e(0x142)]+':'+(_0x36bfd8[_0x44cf1e(0x123)]?_0x44cf1e(0x15f):_0x44cf1e(0x114))):null});}[_0x333953(0x143)](_0xbeda4d,_0x2d8b44,_0x3fca54=!0x1,_0x2b54d1=!0x1){const _0x14ba29=_0x333953;if(this[_0x14ba29(0x157)]&&!_0x2b54d1)return!0x1;const _0x563aad=_0x50a5ef(this[_0x14ba29(0x154)])[_0x14ba29(0x155)];return _0x563aad[_0x14ba29(0x164)](_0x5d66d3=>{const _0x2319e5=_0x14ba29;this[_0x2319e5(0x15a)]&&this[_0x2319e5(0x13a)](this[_0x2319e5(0x15a)]),this[_0x2319e5(0x15a)]=_0x2d8b44,this[_0x2319e5(0x157)]=_0x3fca54;let _0x12a314=0x0;for(let _0x395dfc of _0xbeda4d){const _0x1aa854=_0x2319e5(0x181)+_0x12a314;if(_0x395dfc[_0x2319e5(0x15f)][_0x2319e5(0x14f)]){const _0x4c813f=_0x395dfc[_0x2319e5(0x15f)][_0x2319e5(0x127)](({item:_0x5aafa6})=>!_0x563aad[_0x2319e5(0x119)][_0x2319e5(0x139)](_0x5aafa6),{'boundaries':_0x395dfc});_0x395dfc=_0x5d66d3[_0x2319e5(0x172)](_0x4c813f,_0x395dfc[_0x2319e5(0x114)]);}_0x5d66d3[_0x2319e5(0x15b)](_0x1aa854,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x395dfc}),_0x12a314++;}}),window[_0x14ba29(0x162)]()?.[_0x14ba29(0x13f)](),!0x0;}[_0x333953(0x13a)](_0x2902b6){const _0x5f45e1=_0x333953;if(this[_0x5f45e1(0x15a)]!=_0x2902b6)return!0x1;this[_0x5f45e1(0x15a)]=null,this[_0x5f45e1(0x157)]=!0x1;const _0x41bec0=_0x50a5ef(this[_0x5f45e1(0x154)]),_0x2e643b=_0x41bec0[_0x5f45e1(0x155)][_0x5f45e1(0x13d)][_0x5f45e1(0x183)](_0x5f45e1(0x167));return _0x41bec0[_0x5f45e1(0x155)][_0x5f45e1(0x164)](_0x57c2de=>{const _0x301314=_0x5f45e1;for(const _0x49367d of _0x2e643b)_0x57c2de[_0x301314(0x161)](_0x49367d);}),!0x0;}async[_0x333953(0x14c)](_0x5ea70c){const _0x355558=_0x333953,_0x3d1c4a=_0x50a5ef(this[_0x355558(0x154)]),_0x2567df=_0x3d1c4a[_0x355558(0x165)][_0x355558(0x16b)](_0x5ea70c),_0x583fcf=new _0x1c7e12(_0x3d1c4a[_0x355558(0x121)][_0x355558(0x149)][_0x355558(0x137)]);return this[_0x355558(0x178)](_0x2567df,_0x583fcf),this[_0x355558(0x124)](_0x2567df);}[_0x333953(0x178)](_0x1ff3ca,_0x3633a0){const _0x160d4b=_0x333953;let _0x6a488d=!0x1;const _0x1f7dc5=new Set();for(const _0x4ef11d of _0x1ff3ca[_0x160d4b(0x168)]()){const _0x4c7aed=_0x4ef11d['is'](_0x160d4b(0x17c))||_0x4ef11d['is'](_0x160d4b(0x156));if(!_0x4ef11d['is'](_0x160d4b(0x131)))continue;(this[_0x160d4b(0x178)](_0x4ef11d,_0x3633a0)||_0x4c7aed)&&(_0x3633a0[_0x160d4b(0x12f)](_0x160d4b(0x186),this[_0x160d4b(0x171)](_0x1f7dc5),_0x4ef11d),_0x6a488d=!0x0);}return _0x6a488d;}[_0x333953(0x171)](_0x3236ed){const _0x55b01d=_0x333953;let _0x45447e;do{_0x45447e='';for(let _0x1e3f29=0x0;_0x1e3f29<0x4;_0x1e3f29++)_0x45447e+=String[_0x55b01d(0x163)](0x61+Math[_0x55b01d(0x185)](0x1a*Math[_0x55b01d(0x14a)]()));}while(_0x3236ed[_0x55b01d(0x173)](_0x45447e));return _0x3236ed[_0x55b01d(0x145)](_0x45447e),_0x45447e;}[_0x333953(0x11d)](){const _0x31eb2c=_0x333953,{model:_0xd79853}=_0x50a5ef(this[_0x31eb2c(0x154)]),_0x43bed4=_0xd79853[_0x31eb2c(0x137)][_0x31eb2c(0x180)],_0x153226=[];for(const _0x301658 of _0x43bed4[_0x31eb2c(0x125)]())for(const _0xacaa79 of _0x301658[_0x31eb2c(0x113)]())_0xacaa79['is'](_0x31eb2c(0x14d))?_0x153226[_0x31eb2c(0x11c)](_0xacaa79[_0x31eb2c(0x165)]):_0xacaa79['is'](_0x31eb2c(0x131))&&_0x153226[_0x31eb2c(0x120)]>0x0&&'\x20'!==_0x153226[_0x153226[_0x31eb2c(0x120)]-0x1]&&_0x153226[_0x31eb2c(0x11c)]('\x20');return _0x153226[_0x31eb2c(0x120)]?'\x22'+_0x153226[_0x31eb2c(0x174)]('')[_0x31eb2c(0x12c)]()+'\x22':_0x5d2d17(this[_0x31eb2c(0x154)][_0x31eb2c(0x153)],_0x31eb2c(0x128));}[_0x333953(0x169)](){const _0x16e88d=_0x333953,_0x5db42c=_0x50a5ef(this[_0x16e88d(0x154)])[_0x16e88d(0x155)];return Array[_0x16e88d(0x14e)](_0x5db42c[_0x16e88d(0x13d)][_0x16e88d(0x183)](_0x16e88d(0x167)))[_0x16e88d(0x17e)]((_0x1d0654,_0x37da5b)=>_0x1d0654[_0x16e88d(0x11a)]()[_0x16e88d(0x13b)](_0x37da5b[_0x16e88d(0x11a)]())?-0x1:_0x1d0654[_0x16e88d(0x11a)]()[_0x16e88d(0x152)](_0x37da5b[_0x16e88d(0x11a)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x45aa(){const _0x177341=['getCapabilitiesRequestData','toggleReasoning','1495FFprdt','reset','setReasoning','reasoning','_isReasoningEnabled','7BzJghI','8478936HKWRUM','12354OvGneD','isReasoningEnabled','306604HmgbQN','fire','11weuIPA','toggleWebSearch','getCapabilitiesConfig','21tfruAC','_isWebSearchEnabled','capabilitiesUpdated','3060mJFfZi','isWebSearchEnabled','init','95914cQasAo','setWebSearch','6653770yCAMYn','webSearch','2JaqGls','3894426PduNxi','335913JkQJKL'];_0x45aa=function(){return _0x177341;};return _0x45aa();}const _0x3f0e71=_0x2459;(function(_0x594285,_0x45ff40){const _0x198f7b=_0x2459,_0x55e099=_0x594285();while(!![]){try{const _0x140bfa=-parseInt(_0x198f7b(0x128))/0x1*(-parseInt(_0x198f7b(0x126))/0x2)+-parseInt(_0x198f7b(0x11c))/0x3*(-parseInt(_0x198f7b(0x117))/0x4)+-parseInt(_0x198f7b(0x10e))/0x5*(parseInt(_0x198f7b(0x115))/0x6)+parseInt(_0x198f7b(0x113))/0x7*(parseInt(_0x198f7b(0x114))/0x8)+parseInt(_0x198f7b(0x127))/0x9+-parseInt(_0x198f7b(0x124))/0xa*(-parseInt(_0x198f7b(0x119))/0xb)+-parseInt(_0x198f7b(0x11f))/0xc*(parseInt(_0x198f7b(0x122))/0xd);if(_0x140bfa===_0x45ff40)break;else _0x55e099['push'](_0x55e099['shift']());}catch(_0x290444){_0x55e099['push'](_0x55e099['shift']());}}}(_0x45aa,0x82395));import{EmitterMixin as _0x1e2986}from'ckeditor5/src/utils.js';function _0x2459(_0x190df7,_0x5dbc14){const _0x45aa5f=_0x45aa();return _0x2459=function(_0x2459b0,_0x2ba6e3){_0x2459b0=_0x2459b0-0x10e;let _0xf6c82b=_0x45aa5f[_0x2459b0];return _0xf6c82b;},_0x2459(_0x190df7,_0x5dbc14);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x3f0e71(0x11e)];export class AICapabilities extends _0x1e2986(){[_0x3f0e71(0x11d)];[_0x3f0e71(0x112)];constructor(){const _0x259fd5=_0x3f0e71;super(),this[_0x259fd5(0x11d)]=!0x1,this[_0x259fd5(0x112)]=!0x1;}[_0x3f0e71(0x121)](){const _0x3cdf89=_0x3f0e71;this[_0x3cdf89(0x10f)]();}[_0x3f0e71(0x10f)](){const _0x5d1fbd=_0x3f0e71;this[_0x5d1fbd(0x123)](!0x1),this[_0x5d1fbd(0x110)](!0x1);}[_0x3f0e71(0x11b)](){const _0x282a69=_0x3f0e71;return{'isWebSearchEnabled':this[_0x282a69(0x11d)],'isReasoningEnabled':this[_0x282a69(0x112)]};}static[_0x3f0e71(0x129)](_0x71793){const _0x32a9d2=_0x3f0e71,_0x49b5c7={};return _0x71793&&_0x71793[_0x32a9d2(0x120)]&&(_0x49b5c7[_0x32a9d2(0x125)]={}),_0x71793&&_0x71793[_0x32a9d2(0x116)]&&(_0x49b5c7[_0x32a9d2(0x111)]={}),_0x49b5c7;}[_0x3f0e71(0x11a)](){const _0x3e5e38=_0x3f0e71;this[_0x3e5e38(0x123)](!this[_0x3e5e38(0x11d)]);}[_0x3f0e71(0x12a)](){const _0x38b250=_0x3f0e71;this[_0x38b250(0x110)](!this[_0x38b250(0x112)]);}[_0x3f0e71(0x123)](_0x2cb9e8){const _0xbaae77=_0x3f0e71;_0x2cb9e8!==this[_0xbaae77(0x11d)]&&(this[_0xbaae77(0x11d)]=_0x2cb9e8,this[_0xbaae77(0x118)](_0xbaae77(0x11e),this[_0xbaae77(0x11b)]()));}[_0x3f0e71(0x110)](_0x3ef707){const _0x20663e=_0x3f0e71;_0x3ef707!==this[_0x20663e(0x112)]&&(this[_0x20663e(0x112)]=_0x3ef707,this[_0x20663e(0x118)](_0x20663e(0x11e),this[_0x20663e(0x11b)]()));}}
23
+ function _0x4f4b(){const _0x3221a2=['getCapabilitiesRequestData','3UNcJTg','_isWebSearchEnabled','59263EhKDZJ','toggleReasoning','_isReasoningEnabled','setReasoning','4ofxeuc','24CjGRHb','init','616278eityEc','webSearch','capabilitiesUpdated','16849LEAxRc','fire','isReasoningEnabled','toggleWebSearch','34698KlHjEo','reset','1236265rbPNDL','isWebSearchEnabled','2098881Apuiyx','getCapabilitiesConfig','setWebSearch','7455620Vollpk','reasoning'];_0x4f4b=function(){return _0x3221a2;};return _0x4f4b();}const _0x3b41bc=_0x41f0;(function(_0x5c4856,_0x6f78fc){const _0x4b6eaf=_0x41f0,_0x105949=_0x5c4856();while(!![]){try{const _0x449d87=-parseInt(_0x4b6eaf(0x1dc))/0x1+-parseInt(_0x4b6eaf(0x1d0))/0x2*(-parseInt(_0x4b6eaf(0x1da))/0x3)+-parseInt(_0x4b6eaf(0x1e0))/0x4*(parseInt(_0x4b6eaf(0x1d2))/0x5)+-parseInt(_0x4b6eaf(0x1e3))/0x6+parseInt(_0x4b6eaf(0x1cc))/0x7*(parseInt(_0x4b6eaf(0x1e1))/0x8)+-parseInt(_0x4b6eaf(0x1d4))/0x9+parseInt(_0x4b6eaf(0x1d7))/0xa;if(_0x449d87===_0x6f78fc)break;else _0x105949['push'](_0x105949['shift']());}catch(_0xc35ba){_0x105949['push'](_0x105949['shift']());}}}(_0x4f4b,0x1f2ce));import{EmitterMixin as _0x29c4d5}from'ckeditor5/src/utils.js';function _0x41f0(_0x6924c3,_0x4a2c4f){const _0x4f4b12=_0x4f4b();return _0x41f0=function(_0x41f07f,_0x1d21f9){_0x41f07f=_0x41f07f-0x1ca;let _0x530de1=_0x4f4b12[_0x41f07f];return _0x530de1;},_0x41f0(_0x6924c3,_0x4a2c4f);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x3b41bc(0x1cb)];export class AICapabilities extends _0x29c4d5(){[_0x3b41bc(0x1db)];[_0x3b41bc(0x1de)];constructor(){const _0x2bb463=_0x3b41bc;super(),this[_0x2bb463(0x1db)]=!0x1,this[_0x2bb463(0x1de)]=!0x1;}[_0x3b41bc(0x1e2)](){const _0x46bfd8=_0x3b41bc;this[_0x46bfd8(0x1d1)]();}[_0x3b41bc(0x1d1)](){const _0x5213bf=_0x3b41bc;this[_0x5213bf(0x1d6)](!0x1),this[_0x5213bf(0x1df)](!0x1);}[_0x3b41bc(0x1d5)](){const _0x617300=_0x3b41bc;return{'isWebSearchEnabled':this[_0x617300(0x1db)],'isReasoningEnabled':this[_0x617300(0x1de)]};}static[_0x3b41bc(0x1d9)](_0x2645d7){const _0x346f39=_0x3b41bc,_0x1e75fe={};return _0x2645d7&&_0x2645d7[_0x346f39(0x1d3)]&&(_0x1e75fe[_0x346f39(0x1ca)]={}),_0x2645d7&&_0x2645d7[_0x346f39(0x1ce)]&&(_0x1e75fe[_0x346f39(0x1d8)]={}),_0x1e75fe;}[_0x3b41bc(0x1cf)](){const _0x391d50=_0x3b41bc;this[_0x391d50(0x1d6)](!this[_0x391d50(0x1db)]);}[_0x3b41bc(0x1dd)](){const _0x4d47c5=_0x3b41bc;this[_0x4d47c5(0x1df)](!this[_0x4d47c5(0x1de)]);}[_0x3b41bc(0x1d6)](_0x3261b5){const _0x1b9627=_0x3b41bc;_0x3261b5!==this[_0x1b9627(0x1db)]&&(this[_0x1b9627(0x1db)]=_0x3261b5,this[_0x1b9627(0x1cd)](_0x1b9627(0x1cb),this[_0x1b9627(0x1d5)]()));}[_0x3b41bc(0x1df)](_0x362fb8){const _0x33e58a=_0x3b41bc;_0x362fb8!==this[_0x33e58a(0x1de)]&&(this[_0x33e58a(0x1de)]=_0x362fb8,this[_0x33e58a(0x1cd)](_0x33e58a(0x1cb),this[_0x33e58a(0x1d5)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xea14(_0x43adaf,_0x2ef1e2){var _0x2dde38=_0x2dde();return _0xea14=function(_0xea14f5,_0x5e83bb){_0xea14f5=_0xea14f5-0x169;var _0x1e7e71=_0x2dde38[_0xea14f5];return _0x1e7e71;},_0xea14(_0x43adaf,_0x2ef1e2);}function _0x2dde(){var _0x1754af=['3073448AJURbT','TEXT','HTML','URL','selection','71960vKxgps','693732jWOVYS','SELECTION','DOCUMENT','file','document','web-resource','markdown','7kdGmiu','134490aVpFPQ','767145GGpxTA','mcp-tool-context','TOOL','text','FILE','MARKDOWN','html','20622ccfCHe','450300MTTJmv'];_0x2dde=function(){return _0x1754af;};return _0x2dde();}(function(_0x47716b,_0x221c34){var _0x37c443=_0xea14,_0x7312d7=_0x47716b();while(!![]){try{var _0x5281d6=parseInt(_0x37c443(0x17d))/0x1*(parseInt(_0x37c443(0x16e))/0x2)+parseInt(_0x37c443(0x17e))/0x3+parseInt(_0x37c443(0x16f))/0x4+parseInt(_0x37c443(0x17f))/0x5+parseInt(_0x37c443(0x176))/0x6+-parseInt(_0x37c443(0x175))/0x7+-parseInt(_0x37c443(0x170))/0x8;if(_0x5281d6===_0x221c34)break;else _0x7312d7['push'](_0x7312d7['shift']());}catch(_0x15a254){_0x7312d7['push'](_0x7312d7['shift']());}}}(_0x2dde,0x196ec));export var AIContextItemType;!function(_0x48a6cb){var _0x2cada5=_0xea14;_0x48a6cb[_0x2cada5(0x169)]=_0x2cada5(0x180),_0x48a6cb[_0x2cada5(0x16b)]=_0x2cada5(0x179),_0x48a6cb[_0x2cada5(0x178)]=_0x2cada5(0x17a),_0x48a6cb[_0x2cada5(0x173)]=_0x2cada5(0x17b),_0x48a6cb[_0x2cada5(0x171)]=_0x2cada5(0x16a),_0x48a6cb[_0x2cada5(0x177)]=_0x2cada5(0x174);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x341859){var _0x34f9a8=_0xea14;_0x341859[_0x34f9a8(0x171)]=_0x34f9a8(0x16a),_0x341859[_0x34f9a8(0x16c)]=_0x34f9a8(0x17c),_0x341859[_0x34f9a8(0x172)]=_0x34f9a8(0x16d);}(AIContextTextResourceType||(AIContextTextResourceType={}));
23
+ (function(_0xc16015,_0x2522b5){var _0x13a18b=_0x138d,_0x46b705=_0xc16015();while(!![]){try{var _0x1227a5=parseInt(_0x13a18b(0x19a))/0x1+parseInt(_0x13a18b(0x1ab))/0x2+-parseInt(_0x13a18b(0x1a8))/0x3*(parseInt(_0x13a18b(0x19d))/0x4)+parseInt(_0x13a18b(0x1a3))/0x5*(parseInt(_0x13a18b(0x1a7))/0x6)+-parseInt(_0x13a18b(0x195))/0x7+parseInt(_0x13a18b(0x1a6))/0x8+-parseInt(_0x13a18b(0x1ac))/0x9;if(_0x1227a5===_0x2522b5)break;else _0x46b705['push'](_0x46b705['shift']());}catch(_0x145667){_0x46b705['push'](_0x46b705['shift']());}}}(_0x5492,0x6c9c7));export var AIContextItemType;!function(_0x3f20d0){var _0x518cb7=_0x138d;_0x3f20d0[_0x518cb7(0x198)]=_0x518cb7(0x196),_0x3f20d0[_0x518cb7(0x1a1)]=_0x518cb7(0x1ad),_0x3f20d0[_0x518cb7(0x1a4)]=_0x518cb7(0x1a9),_0x3f20d0[_0x518cb7(0x19f)]=_0x518cb7(0x197),_0x3f20d0[_0x518cb7(0x1aa)]=_0x518cb7(0x19c),_0x3f20d0[_0x518cb7(0x19e)]=_0x518cb7(0x1a0);}(AIContextItemType||(AIContextItemType={}));function _0x5492(){var _0x582cf5=['1847238WyqEey','17565GtOdXK','document','TEXT','465280LYKKgz','1341585ggOurM','file','4054512ROCmFu','mcp-tool-context','web-resource','TOOL','MARKDOWN','124459wlIjcK','markdown','text','60aWAiuS','SELECTION','URL','selection','FILE','HTML','5idWjPR','DOCUMENT','html','4768040WcbefT'];_0x5492=function(){return _0x582cf5;};return _0x5492();}export var AIContextTextResourceType;function _0x138d(_0x3b25bd,_0x1294e2){var _0x549257=_0x5492();return _0x138d=function(_0x138d2f,_0x3a4826){_0x138d2f=_0x138d2f-0x195;var _0xdbb07d=_0x549257[_0x138d2f];return _0xdbb07d;},_0x138d(_0x3b25bd,_0x1294e2);}!function(_0x14c1c8){var _0x2760c6=_0x138d;_0x14c1c8[_0x2760c6(0x1aa)]=_0x2760c6(0x19c),_0x14c1c8[_0x2760c6(0x199)]=_0x2760c6(0x19b),_0x14c1c8[_0x2760c6(0x1a2)]=_0x2760c6(0x1a5);}(AIContextTextResourceType||(AIContextTextResourceType={}));