@ckeditor/ckeditor5-ai 47.7.0-alpha.0 → 47.7.0-alpha.2

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 _0x7db12c=_0x58c3;(function(_0x2d17aa,_0x4b3d5f){const _0x2ccfda=_0x58c3,_0x361be0=_0x2d17aa();while(!![]){try{const _0x86aaf5=-parseInt(_0x2ccfda(0x122))/0x1+-parseInt(_0x2ccfda(0xeb))/0x2+parseInt(_0x2ccfda(0x13a))/0x3+parseInt(_0x2ccfda(0x128))/0x4*(-parseInt(_0x2ccfda(0x113))/0x5)+parseInt(_0x2ccfda(0x10d))/0x6+-parseInt(_0x2ccfda(0x120))/0x7*(-parseInt(_0x2ccfda(0xed))/0x8)+parseInt(_0x2ccfda(0x10b))/0x9;if(_0x86aaf5===_0x4b3d5f)break;else _0x361be0['push'](_0x361be0['shift']());}catch(_0x38bc1d){_0x361be0['push'](_0x361be0['shift']());}}}(_0x422c,0x9f65f));import{ListItemView as _0x56c583,HighlightedTextView as _0x7ee74d,ButtonView as _0x3c2362,ListView as _0x4f17af,IconView as _0x247890,createDropdown as _0x55825b,InputTextView as _0x4f89c5}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x3dee14,IconPin as _0x537a21,IconCheck as _0x41b692,IconCancel as _0x12f5da}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x40aaa4,ConfirmMixin as _0x1da082}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x390a48}from'es-toolkit/compat';function _0x58c3(_0x477376,_0x248a97){const _0x422c83=_0x422c();return _0x58c3=function(_0x58c3a0,_0x2f1e58){_0x58c3a0=_0x58c3a0-0xe3;let _0xfed667=_0x422c83[_0x58c3a0];return _0xfed667;},_0x58c3(_0x477376,_0x248a97);}function _0x422c(){const _0x4531b9=['_createPinButtonView','552654NOXjBx','ck-ai-chat-history__item-content','editConversationTitle','Enter','span','removeConversation','4PNUGGo','withText','ck-ai-chat-history__item--active','AI_CHAT_HISTORY_EDIT_NAME','edit:cancel','_createCancelEditButtonView','addMany','_createSpinnerView','AI_CHAT_HISTORY_ACCEPT','ck-ai-chat-history__item-title','ck-ai-chat-history__item-check-container','_createCheckView','mainContent','updateLoadingState','clear','AI_CHAT_HISTORY_PIN_BUTTON','ck-ai-chat-history__item--edit','add','1246572PbRyvm','items','div','ck-confirm-view-submit','isOn','ck-ai-chat-history__item','ck-ai-chat-history__item-actions','pinned','execute','click','ck-hidden','match','loadingState','selectConversation','extendTemplate','listitem','updateTitle','value','357292hIVKcD','_createMenuDropdownView','1897080vWcbVe','createCollection','bind','highlightText','setConversationPinned','_titleView','isVisible','children','ck-ai-loader','panelPosition','_commitEditInputValue','showConfirm','_createAcceptEditButtonView','element','text','_createEditInputView','focus','AI_CHAT_HISTORY_CANCEL','setTemplate','AI_CHAT_HISTORY_LOADING_REMOVING','isMatching','change:isEdit','LOADING_LABELS','key','ck-confirm-view-cancel','actions','ck-ai-chat-history__item-row','fire','buttonView','string','5686434vNKAWT','set','3011160RaFRBq','bindTemplate','ck-ai-chat-history__item-check','ck-ai-chat-history__item-main-content','tiny','ck-ai-chat-history__item-date','5567775gGeecU','AI_CHAT_HISTORY_REMOVE','AI_CHAT_HISTORY_REMOVE_CONFIRM','locale','ck-ai-loader__text','AI_CHAT_HISTORY_LOADING_UNPINNING','AI_CHAT_HISTORY_LOADING_RENAMING','label','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','AI_CHAT_HISTORY_LOADING_PINNING','then','panelView','isEdit','28qPXThN'];_0x422c=function(){return _0x4531b9;};return _0x422c();}import{AISpinnerView as _0x3f7d03}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x3ae019}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
- _0x1da082(_0x56c583){['id'];static [_0x7db12c(0x103)]={'remove':_0x7db12c(0x100),'rename':_0x7db12c(0x119),'pin':_0x7db12c(0x11c),'unpin':_0x7db12c(0x118)};[_0x7db12c(0x106)];[_0x7db12c(0x134)];[_0x7db12c(0xf2)];constructor(_0x4f36da,_0x453bbc){const _0x404901=_0x7db12c;super(_0x4f36da);const _0x407545=this[_0x404901(0x10e)];this[_0x404901(0x10c)](_0x404901(0x11f),!0x1),this[_0x404901(0x10c)](_0x404901(0xf3),!0x0),this[_0x404901(0x10c)](_0x404901(0x141),!!_0x453bbc[_0x404901(0x141)]),this[_0x404901(0x10c)](_0x404901(0xe5),null),this['id']=_0x453bbc['id'];const {title:_0x2cb048,createdAt:_0x459541,active:_0x2ed501=!0x1}=_0x453bbc;this[_0x404901(0xf2)]=new _0x7ee74d(),this[_0x404901(0xf2)][_0x404901(0xfb)]=_0x2cb048,this[_0x404901(0xf2)][_0x404901(0xe7)]({'attributes':{'class':[_0x404901(0x131)]}});const _0x4fb361=this[_0x404901(0x133)](),_0x423bb3=this[_0x404901(0x121)](_0x4f36da),_0x26b857=this[_0x404901(0xec)](),_0x4021ed=this[_0x404901(0xfc)](_0x4f36da,_0x2cb048),_0xaa977e=this[_0x404901(0xf9)](_0x4f36da,_0x4021ed),_0x22efb3=this[_0x404901(0x12d)](_0x4f36da,_0x4021ed);this[_0x404901(0x106)]=this[_0x404901(0xee)](),this[_0x404901(0x134)]=this[_0x404901(0xee)](),this[_0x404901(0x134)][_0x404901(0x139)](this[_0x404901(0xf2)]),this[_0x404901(0x106)][_0x404901(0x139)](_0x423bb3),this[_0x404901(0x106)][_0x404901(0x139)](_0x26b857),this['on'](_0x404901(0x102),(_0x303881,_0x195335,_0x402f98)=>{const _0x1549b1=_0x404901;this[_0x1549b1(0x106)][_0x1549b1(0x136)](),this[_0x1549b1(0x134)][_0x1549b1(0x136)](),_0x402f98?(this[_0x1549b1(0x106)][_0x1549b1(0x139)](_0xaa977e),this[_0x1549b1(0x106)][_0x1549b1(0x139)](_0x22efb3),this[_0x1549b1(0x134)][_0x1549b1(0x139)](_0x4021ed),_0x4021ed[_0x1549b1(0xfa)][_0x1549b1(0xfd)]()):(this[_0x1549b1(0x106)][_0x1549b1(0x139)](_0x423bb3),this[_0x1549b1(0x106)][_0x1549b1(0x139)](_0x26b857),this[_0x1549b1(0x134)][_0x1549b1(0x139)](this[_0x1549b1(0xf2)]));}),this[_0x404901(0xff)]({'tag':'li','attributes':{'class':[_0x404901(0x13f),_0x2ed501?_0x404901(0x12a):'',_0x407545['if'](_0x404901(0xf3),_0x404901(0xe3),_0xb42ded=>!_0xb42ded),_0x407545['if'](_0x404901(0x11f),_0x404901(0x138))],'role':_0x404901(0xe8)},'children':[{'tag':_0x404901(0x126),'attributes':{'class':[_0x404901(0x132)]},'children':[{'tag':_0x404901(0x13c),'attributes':{'class':[_0x404901(0x10f),_0x407545['if'](_0x404901(0xe5),_0x404901(0xe3),_0x2e7fc6=>!!_0x2e7fc6)]},'children':_0x2ed501?[_0x4fb361]:[]},{'tag':_0x404901(0x13c),'attributes':{'class':[_0x404901(0xf5),_0x407545['if'](_0x404901(0xe5),_0x404901(0xe3),_0x4b8892=>!_0x4b8892)]},'children':[this[_0x404901(0x12f)]()]}]},{'tag':_0x404901(0x13c),'attributes':{'class':[_0x404901(0x107)]},'children':[{'tag':_0x404901(0x13c),'attributes':{'class':[_0x404901(0x123)]},'on':{'click':this[_0x404901(0x10e)]['to'](_0x404901(0x143))},'children':[{'tag':_0x404901(0x13c),'attributes':{'class':[_0x404901(0x110)]},'children':[{'tag':_0x404901(0x13c),'attributes':{'class':[_0x404901(0x131),_0x407545['if'](_0x404901(0xe5),_0x404901(0xe3),_0x36ef55=>!!_0x36ef55)]},'children':this[_0x404901(0x134)]},{'tag':_0x404901(0x13c),'attributes':{'class':[_0x404901(0x117),_0x407545['if'](_0x404901(0xe5),_0x404901(0xe3),_0x2d8ef4=>!_0x2d8ef4)]},'children':[{'text':_0x407545['to'](_0x404901(0xe5),_0x4cd3b8=>_0x4cd3b8?_0x3ae019(this[_0x404901(0x116)],AIChatHistoryListItemView[_0x404901(0x103)][_0x4cd3b8]):'')}]}]},{'tag':_0x404901(0x126),'attributes':{'class':[_0x404901(0x112)]},'children':[_0x459541]}]},{'tag':_0x404901(0x13c),'attributes':{'class':[_0x404901(0x140)]},'children':this[_0x404901(0x106)]}]}]}),this['on'](_0x404901(0x143),()=>{const _0x471d3b=_0x404901;this[_0x471d3b(0x11f)]||this[_0x471d3b(0x108)](_0x471d3b(0xe6),{'id':this['id']});});}[_0x7db12c(0xe9)](_0x5e8b92){const _0x358223=_0x7db12c;this[_0x358223(0xf2)][_0x358223(0xfb)]=_0x390a48(_0x5e8b92);}[_0x7db12c(0x135)](_0x11a8d5,_0x5030ab){const _0x385a2f=_0x7db12c;this[_0x385a2f(0x10c)](_0x385a2f(0xe5),_0x5030ab?_0x11a8d5:null);}[_0x7db12c(0x133)](){const _0x1b120b=_0x7db12c,_0x165660=new _0x247890();return _0x165660[_0x1b120b(0x10c)]({'content':_0x41b692}),_0x165660;}[_0x7db12c(0x121)](_0x4d6c28){const _0x49f17c=_0x7db12c,_0x14f4a3=new _0x3c2362(_0x4d6c28);return _0x14f4a3[_0x49f17c(0x10c)]({'label':_0x3ae019(_0x4d6c28,_0x49f17c(0x137)),'icon':_0x537a21,'withText':!0x1,'tooltip':!0x0}),_0x14f4a3[_0x49f17c(0xef)](_0x49f17c(0x13e))['to'](this,_0x49f17c(0x141)),_0x14f4a3['on'](_0x49f17c(0x142),()=>{const _0x205836=_0x49f17c,_0x3fd68e=!this[_0x205836(0x141)];this[_0x205836(0x108)](_0x205836(0xf1),{'id':this['id'],'pinned':_0x3fd68e});}),_0x14f4a3;}[_0x7db12c(0xec)](){const _0xf7871a=_0x7db12c,_0x497eda=_0x55825b(this[_0xf7871a(0x116)],_0x40aaa4),_0x8056f4=_0x497eda[_0xf7871a(0x11e)][_0xf7871a(0xf4)];_0x497eda[_0xf7871a(0x109)][_0xf7871a(0x10c)]({'label':_0x3ae019(this[_0xf7871a(0x116)],_0xf7871a(0x11b)),'icon':_0x3dee14}),_0x497eda[_0xf7871a(0xf6)]='sw';const _0x1142d8=new _0x3c2362(this[_0xf7871a(0x116)]);_0x1142d8[_0xf7871a(0x11a)]=_0x3ae019(this[_0xf7871a(0x116)],_0xf7871a(0x12b)),_0x1142d8[_0xf7871a(0x129)]=!0x0,_0x1142d8['on'](_0xf7871a(0x142),()=>{const _0x208f2d=_0xf7871a;this[_0x208f2d(0x11f)]=!0x0;});const _0x76c90b=new _0x3c2362(this[_0xf7871a(0x116)]);_0x76c90b[_0xf7871a(0x11a)]=_0x3ae019(this[_0xf7871a(0x116)],_0xf7871a(0x114)),_0x76c90b[_0xf7871a(0x129)]=!0x0,_0x76c90b['on'](_0xf7871a(0x142),()=>{const _0x599a44=_0xf7871a;this[_0x599a44(0xf8)](_0x3ae019(this[_0x599a44(0x116)],_0x599a44(0x115)),this[_0x599a44(0xfa)])[_0x599a44(0x11d)](()=>{const _0x215b08=_0x599a44;this[_0x215b08(0x108)](_0x215b08(0x127),{'id':this['id']});});});const _0x489218=new _0x4f17af(this[_0xf7871a(0x116)]),_0x42d8ea=new _0x56c583(this[_0xf7871a(0x116)]);_0x42d8ea[_0xf7871a(0xf4)][_0xf7871a(0x139)](_0x1142d8);const _0x10c74c=new _0x56c583(this[_0xf7871a(0x116)]);return _0x10c74c[_0xf7871a(0xf4)][_0xf7871a(0x139)](_0x76c90b),_0x489218[_0xf7871a(0x13b)][_0xf7871a(0x12e)]([_0x42d8ea,_0x10c74c]),_0x8056f4[_0xf7871a(0x139)](_0x489218),_0x497eda;}[_0x7db12c(0xfc)](_0x1ef139,_0x563f75){const _0xdebf3f=_0x7db12c,_0x541d85=new _0x4f89c5(_0x1ef139),_0x3458df=_0x541d85[_0xdebf3f(0x10e)];return _0x541d85[_0xdebf3f(0xea)]=_0x563f75,_0x541d85[_0xdebf3f(0xe7)]({'on':{'keydown':_0x3458df['to'](_0x1b8f72=>{const _0x11fcfd=_0xdebf3f;_0x11fcfd(0x125)==_0x1b8f72[_0x11fcfd(0x104)]&&this[_0x11fcfd(0xf7)](_0x541d85);})}}),_0x541d85;}[_0x7db12c(0xf9)](_0x838e0f,_0x28473a){const _0x852e3=_0x7db12c,_0x571c26=new _0x3c2362(_0x838e0f);return _0x571c26[_0x852e3(0x10c)]({'icon':_0x41b692,'withText':!0x1,'tooltip':_0x3ae019(_0x838e0f,_0x852e3(0x130))}),_0x571c26[_0x852e3(0xe7)]({'attributes':{'class':[_0x852e3(0x13d)]}}),_0x571c26['on'](_0x852e3(0x142),()=>{const _0x4d2b60=_0x852e3;this[_0x4d2b60(0xf7)](_0x28473a);}),_0x571c26;}[_0x7db12c(0xf7)](_0x3d1304){const _0x26b65e=_0x7db12c,_0x2653b6=_0x3d1304[_0x26b65e(0xfa)][_0x26b65e(0xea)]||'';this[_0x26b65e(0xf2)][_0x26b65e(0xfb)]=_0x2653b6,this[_0x26b65e(0x11f)]=!0x1,this[_0x26b65e(0x108)](_0x26b65e(0x124),{'id':this['id'],'title':_0x2653b6});}[_0x7db12c(0x12d)](_0x517d22,_0x433076){const _0x818fa7=_0x7db12c,_0x2ebf5a=new _0x3c2362(_0x517d22);return _0x2ebf5a[_0x818fa7(0x10c)]({'icon':_0x12f5da,'withText':!0x1,'tooltip':_0x3ae019(_0x517d22,_0x818fa7(0xfe))}),_0x2ebf5a[_0x818fa7(0xe7)]({'attributes':{'class':[_0x818fa7(0x105)]}}),_0x2ebf5a['on'](_0x818fa7(0x142),()=>{const _0x21b96c=_0x818fa7;this[_0x21b96c(0x11f)]=!0x1,_0x433076[_0x21b96c(0xea)]=this[_0x21b96c(0xf2)][_0x21b96c(0xfb)]||'',this[_0x21b96c(0x108)](_0x21b96c(0x12c));}),_0x2ebf5a;}[_0x7db12c(0x12f)](){const _0x2a1bce=_0x7db12c,_0x5da2c6=new _0x3f7d03(_0x2a1bce(0x111));return _0x5da2c6[_0x2a1bce(0xf3)]=!0x0,_0x5da2c6;}[_0x7db12c(0x101)](_0x21b610){const _0x4ea2ca=_0x7db12c;return this[_0x4ea2ca(0xf2)]&&_0x4ea2ca(0x10a)==typeof this[_0x4ea2ca(0xf2)][_0x4ea2ca(0xfb)]&&this[_0x4ea2ca(0xf2)][_0x4ea2ca(0xfb)][_0x4ea2ca(0xe4)](_0x21b610)?{'title':!0x0}:null;}[_0x7db12c(0xf0)](_0x2bb4ff){const _0x5b5037=_0x7db12c;this[_0x5b5037(0xf2)][_0x5b5037(0xf0)](_0x2bb4ff);}}
23
+ const _0x11307b=_0xcb61;(function(_0x5f4d58,_0x5a505c){const _0x4ce64b=_0xcb61,_0x24ef99=_0x5f4d58();while(!![]){try{const _0x4d901f=-parseInt(_0x4ce64b(0x1ac))/0x1+-parseInt(_0x4ce64b(0x1ae))/0x2*(parseInt(_0x4ce64b(0x18a))/0x3)+parseInt(_0x4ce64b(0x17e))/0x4+parseInt(_0x4ce64b(0x16c))/0x5*(-parseInt(_0x4ce64b(0x172))/0x6)+parseInt(_0x4ce64b(0x19d))/0x7+-parseInt(_0x4ce64b(0x175))/0x8*(-parseInt(_0x4ce64b(0x16e))/0x9)+-parseInt(_0x4ce64b(0x158))/0xa*(-parseInt(_0x4ce64b(0x192))/0xb);if(_0x4d901f===_0x5a505c)break;else _0x24ef99['push'](_0x24ef99['shift']());}catch(_0x55f1cd){_0x24ef99['push'](_0x24ef99['shift']());}}}(_0x1b22,0x2d676));import{ListItemView as _0x447a40,HighlightedTextView as _0xbd9f52,ButtonView as _0x517d4d,ListView as _0x1c698e,IconView as _0x5bc302,createDropdown as _0x4853b7,InputTextView as _0x284045}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x5e5298,IconPin as _0x22b5df,IconCheck as _0x716bfc,IconCancel as _0x45a092}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x40d08e,ConfirmMixin as _0x5d5e12}from'ckeditor5-collaboration/src/collaboration-core.js';function _0xcb61(_0x45d7aa,_0x3ab32e){const _0x1b2263=_0x1b22();return _0xcb61=function(_0xcb612f,_0x25cea6){_0xcb612f=_0xcb612f-0x14d;let _0x490f2c=_0x1b2263[_0xcb612f];return _0x490f2c;},_0xcb61(_0x45d7aa,_0x3ab32e);}import{escape as _0x3a063a}from'es-toolkit/compat';import{AISpinnerView as _0x52aff7}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x51cf82}from'../../aicore/utils/common-translations.js';function _0x1b22(){const _0x341fad=['ck-confirm-view-cancel','AI_CHAT_HISTORY_REMOVE','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','span','click','tiny','loadingState','isMatching','ck-ai-chat-history__item--edit','value','150ManPSn','string','Enter','key','ck-ai-chat-history__item-check','bindTemplate','_titleView','actions','children','setTemplate','highlightText','ck-ai-chat-history__item-row','execute','ck-ai-chat-history__item-date','_createCancelEditButtonView','AI_CHAT_HISTORY_CANCEL','mainContent','ck-hidden','LOADING_LABELS','ck-ai-chat-history__item-main-content','5LcrUdr','extendTemplate','18aMsCcC','clear','AI_CHAT_HISTORY_ACCEPT','AI_CHAT_HISTORY_LOADING_REMOVING','1442214GognQs','then','editConversationTitle','992952LTZkmP','showConfirm','panelPosition','edit:cancel','AI_CHAT_HISTORY_LOADING_RENAMING','updateLoadingState','ck-ai-loader__text','AI_CHAT_HISTORY_PIN_BUTTON','element','504896BXNyIN','_createSpinnerView','createCollection','pinned','text','ck-ai-chat-history__item-actions','buttonView','panelView','ck-ai-chat-history__item-title','isOn','_createMenuDropdownView','isEdit','18RpUxnI','set','locale','match','ck-ai-chat-history__item--active','_createPinButtonView','items','AI_CHAT_HISTORY_REMOVE_CONFIRM','26125YHvRtO','withText','focus','ck-ai-chat-history__item','change:isEdit','removeConversation','setConversationPinned','bind','_createEditInputView','selectConversation','ck-ai-chat-history__item-content','1932623vraUnF','div','ck-ai-loader','add','_commitEditInputValue','ck-ai-chat-history__item-check-container','fire','ck-confirm-view-submit','_createCheckView','listitem','addMany','AI_CHAT_HISTORY_LOADING_PINNING','updateTitle','AI_CHAT_HISTORY_LOADING_UNPINNING','_createAcceptEditButtonView','8487wQgwKZ','label','83782FrEtaK','isVisible','AI_CHAT_HISTORY_EDIT_NAME'];_0x1b22=function(){return _0x341fad;};return _0x1b22();}export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
+ _0x5d5e12(_0x447a40){['id'];static [_0x11307b(0x16a)]={'remove':_0x11307b(0x171),'rename':_0x11307b(0x179),'pin':_0x11307b(0x1a8),'unpin':_0x11307b(0x1aa)};[_0x11307b(0x15f)];[_0x11307b(0x168)];[_0x11307b(0x15e)];constructor(_0x552948,_0x4a9fe4){const _0x191e48=_0x11307b;super(_0x552948);const _0x5677d7=this[_0x191e48(0x15d)];this[_0x191e48(0x18b)](_0x191e48(0x189),!0x1),this[_0x191e48(0x18b)](_0x191e48(0x1af),!0x0),this[_0x191e48(0x18b)](_0x191e48(0x181),!!_0x4a9fe4[_0x191e48(0x181)]),this[_0x191e48(0x18b)](_0x191e48(0x154),null),this['id']=_0x4a9fe4['id'];const {title:_0x515b98,createdAt:_0x2c5083,active:_0x1abbe5=!0x1}=_0x4a9fe4;this[_0x191e48(0x15e)]=new _0xbd9f52(),this[_0x191e48(0x15e)][_0x191e48(0x182)]=_0x515b98,this[_0x191e48(0x15e)][_0x191e48(0x16d)]({'attributes':{'class':[_0x191e48(0x186)]}});const _0x11391f=this[_0x191e48(0x1a5)](),_0x5d3e57=this[_0x191e48(0x18f)](_0x552948),_0x249343=this[_0x191e48(0x188)](),_0x3866b9=this[_0x191e48(0x19a)](_0x552948,_0x515b98),_0x5512f6=this[_0x191e48(0x1ab)](_0x552948,_0x3866b9),_0x1f9040=this[_0x191e48(0x166)](_0x552948,_0x3866b9);this[_0x191e48(0x15f)]=this[_0x191e48(0x180)](),this[_0x191e48(0x168)]=this[_0x191e48(0x180)](),this[_0x191e48(0x168)][_0x191e48(0x1a0)](this[_0x191e48(0x15e)]),this[_0x191e48(0x15f)][_0x191e48(0x1a0)](_0x5d3e57),this[_0x191e48(0x15f)][_0x191e48(0x1a0)](_0x249343),this['on'](_0x191e48(0x196),(_0x411bc2,_0x1948af,_0x51b40a)=>{const _0x2a04a5=_0x191e48;this[_0x2a04a5(0x15f)][_0x2a04a5(0x16f)](),this[_0x2a04a5(0x168)][_0x2a04a5(0x16f)](),_0x51b40a?(this[_0x2a04a5(0x15f)][_0x2a04a5(0x1a0)](_0x5512f6),this[_0x2a04a5(0x15f)][_0x2a04a5(0x1a0)](_0x1f9040),this[_0x2a04a5(0x168)][_0x2a04a5(0x1a0)](_0x3866b9),_0x3866b9[_0x2a04a5(0x17d)][_0x2a04a5(0x194)]()):(this[_0x2a04a5(0x15f)][_0x2a04a5(0x1a0)](_0x5d3e57),this[_0x2a04a5(0x15f)][_0x2a04a5(0x1a0)](_0x249343),this[_0x2a04a5(0x168)][_0x2a04a5(0x1a0)](this[_0x2a04a5(0x15e)]));}),this[_0x191e48(0x161)]({'tag':'li','attributes':{'class':[_0x191e48(0x195),_0x1abbe5?_0x191e48(0x18e):'',_0x5677d7['if'](_0x191e48(0x1af),_0x191e48(0x169),_0x164d20=>!_0x164d20),_0x5677d7['if'](_0x191e48(0x189),_0x191e48(0x156))],'role':_0x191e48(0x1a6)},'children':[{'tag':_0x191e48(0x151),'attributes':{'class':[_0x191e48(0x1a2)]},'children':[{'tag':_0x191e48(0x19e),'attributes':{'class':[_0x191e48(0x15c),_0x5677d7['if'](_0x191e48(0x154),_0x191e48(0x169),_0x29a130=>!!_0x29a130)]},'children':_0x1abbe5?[_0x11391f]:[]},{'tag':_0x191e48(0x19e),'attributes':{'class':[_0x191e48(0x19f),_0x5677d7['if'](_0x191e48(0x154),_0x191e48(0x169),_0x19d437=>!_0x19d437)]},'children':[this[_0x191e48(0x17f)]()]}]},{'tag':_0x191e48(0x19e),'attributes':{'class':[_0x191e48(0x163)]},'children':[{'tag':_0x191e48(0x19e),'attributes':{'class':[_0x191e48(0x19c)]},'on':{'click':this[_0x191e48(0x15d)]['to'](_0x191e48(0x152))},'children':[{'tag':_0x191e48(0x19e),'attributes':{'class':[_0x191e48(0x16b)]},'children':[{'tag':_0x191e48(0x19e),'attributes':{'class':[_0x191e48(0x186),_0x5677d7['if'](_0x191e48(0x154),_0x191e48(0x169),_0x332ced=>!!_0x332ced)]},'children':this[_0x191e48(0x168)]},{'tag':_0x191e48(0x19e),'attributes':{'class':[_0x191e48(0x17b),_0x5677d7['if'](_0x191e48(0x154),_0x191e48(0x169),_0x33758c=>!_0x33758c)]},'children':[{'text':_0x5677d7['to'](_0x191e48(0x154),_0xe29e98=>_0xe29e98?_0x51cf82(this[_0x191e48(0x18c)],AIChatHistoryListItemView[_0x191e48(0x16a)][_0xe29e98]):'')}]}]},{'tag':_0x191e48(0x151),'attributes':{'class':[_0x191e48(0x165)]},'children':[_0x2c5083]}]},{'tag':_0x191e48(0x19e),'attributes':{'class':[_0x191e48(0x183)]},'children':this[_0x191e48(0x15f)]}]}]}),this['on'](_0x191e48(0x152),()=>{const _0x43c6ee=_0x191e48;this[_0x43c6ee(0x189)]||this[_0x43c6ee(0x1a3)](_0x43c6ee(0x19b),{'id':this['id']});});}[_0x11307b(0x1a9)](_0x31121d){const _0x586380=_0x11307b;this[_0x586380(0x15e)][_0x586380(0x182)]=_0x3a063a(_0x31121d);}[_0x11307b(0x17a)](_0x10258b,_0x5c1499){const _0x3e395b=_0x11307b;this[_0x3e395b(0x18b)](_0x3e395b(0x154),_0x5c1499?_0x10258b:null);}[_0x11307b(0x1a5)](){const _0x29e7d3=_0x11307b,_0x3c4200=new _0x5bc302();return _0x3c4200[_0x29e7d3(0x18b)]({'content':_0x716bfc}),_0x3c4200;}[_0x11307b(0x18f)](_0x2a4617){const _0x1d1767=_0x11307b,_0x569f0f=new _0x517d4d(_0x2a4617);return _0x569f0f[_0x1d1767(0x18b)]({'label':_0x51cf82(_0x2a4617,_0x1d1767(0x17c)),'icon':_0x22b5df,'withText':!0x1,'tooltip':!0x0}),_0x569f0f[_0x1d1767(0x199)](_0x1d1767(0x187))['to'](this,_0x1d1767(0x181)),_0x569f0f['on'](_0x1d1767(0x164),()=>{const _0x1c86bf=_0x1d1767,_0x24b824=!this[_0x1c86bf(0x181)];this[_0x1c86bf(0x1a3)](_0x1c86bf(0x198),{'id':this['id'],'pinned':_0x24b824});}),_0x569f0f;}[_0x11307b(0x188)](){const _0x261a35=_0x11307b,_0x40c4fe=_0x4853b7(this[_0x261a35(0x18c)],_0x40d08e),_0xc39895=_0x40c4fe[_0x261a35(0x185)][_0x261a35(0x160)];_0x40c4fe[_0x261a35(0x184)][_0x261a35(0x18b)]({'label':_0x51cf82(this[_0x261a35(0x18c)],_0x261a35(0x150)),'icon':_0x5e5298}),_0x40c4fe[_0x261a35(0x177)]='sw';const _0x5022d4=new _0x517d4d(this[_0x261a35(0x18c)]);_0x5022d4[_0x261a35(0x1ad)]=_0x51cf82(this[_0x261a35(0x18c)],_0x261a35(0x14d)),_0x5022d4[_0x261a35(0x193)]=!0x0,_0x5022d4['on'](_0x261a35(0x164),()=>{const _0x57e1dc=_0x261a35;this[_0x57e1dc(0x189)]=!0x0;});const _0x4c72ec=new _0x517d4d(this[_0x261a35(0x18c)]);_0x4c72ec[_0x261a35(0x1ad)]=_0x51cf82(this[_0x261a35(0x18c)],_0x261a35(0x14f)),_0x4c72ec[_0x261a35(0x193)]=!0x0,_0x4c72ec['on'](_0x261a35(0x164),()=>{const _0x494e92=_0x261a35;this[_0x494e92(0x176)](_0x51cf82(this[_0x494e92(0x18c)],_0x494e92(0x191)),this[_0x494e92(0x17d)])[_0x494e92(0x173)](()=>{const _0x4342c4=_0x494e92;this[_0x4342c4(0x1a3)](_0x4342c4(0x197),{'id':this['id']});});});const _0x4af5d9=new _0x1c698e(this[_0x261a35(0x18c)]),_0x4742a3=new _0x447a40(this[_0x261a35(0x18c)]);_0x4742a3[_0x261a35(0x160)][_0x261a35(0x1a0)](_0x5022d4);const _0x202d26=new _0x447a40(this[_0x261a35(0x18c)]);return _0x202d26[_0x261a35(0x160)][_0x261a35(0x1a0)](_0x4c72ec),_0x4af5d9[_0x261a35(0x190)][_0x261a35(0x1a7)]([_0x4742a3,_0x202d26]),_0xc39895[_0x261a35(0x1a0)](_0x4af5d9),_0x40c4fe;}[_0x11307b(0x19a)](_0x3fa3e6,_0x42f65d){const _0x112cb4=_0x11307b,_0x16f6e5=new _0x284045(_0x3fa3e6),_0x4c2451=_0x16f6e5[_0x112cb4(0x15d)];return _0x16f6e5[_0x112cb4(0x157)]=_0x42f65d,_0x16f6e5[_0x112cb4(0x16d)]({'on':{'keydown':_0x4c2451['to'](_0x3f6648=>{const _0x3bce3c=_0x112cb4;_0x3bce3c(0x15a)==_0x3f6648[_0x3bce3c(0x15b)]&&this[_0x3bce3c(0x1a1)](_0x16f6e5);})}}),_0x16f6e5;}[_0x11307b(0x1ab)](_0x3acf9a,_0x39bb5d){const _0x2adb89=_0x11307b,_0x44f9f0=new _0x517d4d(_0x3acf9a);return _0x44f9f0[_0x2adb89(0x18b)]({'icon':_0x716bfc,'withText':!0x1,'tooltip':_0x51cf82(_0x3acf9a,_0x2adb89(0x170))}),_0x44f9f0[_0x2adb89(0x16d)]({'attributes':{'class':[_0x2adb89(0x1a4)]}}),_0x44f9f0['on'](_0x2adb89(0x164),()=>{const _0x2311c8=_0x2adb89;this[_0x2311c8(0x1a1)](_0x39bb5d);}),_0x44f9f0;}[_0x11307b(0x1a1)](_0x3f05f1){const _0x20b8ed=_0x11307b,_0x4453dd=_0x3f05f1[_0x20b8ed(0x17d)][_0x20b8ed(0x157)]||'';this[_0x20b8ed(0x15e)][_0x20b8ed(0x182)]=_0x4453dd,this[_0x20b8ed(0x189)]=!0x1,this[_0x20b8ed(0x1a3)](_0x20b8ed(0x174),{'id':this['id'],'title':_0x4453dd});}[_0x11307b(0x166)](_0x29d037,_0x407633){const _0x5ce273=_0x11307b,_0x4bc410=new _0x517d4d(_0x29d037);return _0x4bc410[_0x5ce273(0x18b)]({'icon':_0x45a092,'withText':!0x1,'tooltip':_0x51cf82(_0x29d037,_0x5ce273(0x167))}),_0x4bc410[_0x5ce273(0x16d)]({'attributes':{'class':[_0x5ce273(0x14e)]}}),_0x4bc410['on'](_0x5ce273(0x164),()=>{const _0x10ce9a=_0x5ce273;this[_0x10ce9a(0x189)]=!0x1,_0x407633[_0x10ce9a(0x157)]=this[_0x10ce9a(0x15e)][_0x10ce9a(0x182)]||'',this[_0x10ce9a(0x1a3)](_0x10ce9a(0x178));}),_0x4bc410;}[_0x11307b(0x17f)](){const _0x19627f=_0x11307b,_0x153d85=new _0x52aff7(_0x19627f(0x153));return _0x153d85[_0x19627f(0x1af)]=!0x0,_0x153d85;}[_0x11307b(0x155)](_0x398b34){const _0x54463a=_0x11307b;return this[_0x54463a(0x15e)]&&_0x54463a(0x159)==typeof this[_0x54463a(0x15e)][_0x54463a(0x182)]&&this[_0x54463a(0x15e)][_0x54463a(0x182)][_0x54463a(0x18d)](_0x398b34)?{'title':!0x0}:null;}[_0x11307b(0x162)](_0x1e0292){const _0x51bdb1=_0x11307b;this[_0x51bdb1(0x15e)][_0x51bdb1(0x162)](_0x1e0292);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x52a7(){const _0x3dd509=['3276505LIwilk','102605fZtTLo','highlightText','1582344gxtRvS','removeItem','1506EMHris','set','getItem','indexOf','div','1485zYupQe','splice','2054228AotRVC','itemsViews','2Rahxyn','bindTemplate','ck-hidden','27160UPyKsq','setTemplate','ck-ai-chat-history__section-title','5663pDGIqn','addMany','filter','find','_itemsListView','items','length','remove','title','ck-ai-chat-history__section','isMatching','isVisible','6077100NNDdUK'];_0x52a7=function(){return _0x3dd509;};return _0x52a7();}const _0x5666c0=_0x3131;(function(_0x56e21e,_0x2d93f9){const _0x58e329=_0x3131,_0x471c98=_0x56e21e();while(!![]){try{const _0x2b7a39=parseInt(_0x58e329(0x180))/0x1*(-parseInt(_0x58e329(0x16c))/0x2)+-parseInt(_0x58e329(0x182))/0x3+parseInt(_0x58e329(0x16a))/0x4+parseInt(_0x58e329(0x17f))/0x5+parseInt(_0x58e329(0x184))/0x6*(-parseInt(_0x58e329(0x172))/0x7)+-parseInt(_0x58e329(0x16f))/0x8*(parseInt(_0x58e329(0x168))/0x9)+parseInt(_0x58e329(0x17e))/0xa;if(_0x2b7a39===_0x2d93f9)break;else _0x471c98['push'](_0x471c98['shift']());}catch(_0x1e2f40){_0x471c98['push'](_0x471c98['shift']());}}}(_0x52a7,0x5d931));import{ListItemView as _0x1569b1,View as _0x95e4cc,ListView as _0x29e460}from'ckeditor5/src/ui.js';function _0x3131(_0x584844,_0x43b712){const _0x52a77f=_0x52a7();return _0x3131=function(_0x313166,_0x4b9cbe){_0x313166=_0x313166-0x165;let _0x3c7469=_0x52a77f[_0x313166];return _0x3c7469;},_0x3131(_0x584844,_0x43b712);}export class AIChatHistoryListView extends _0x1569b1{[_0x5666c0(0x17a)];[_0x5666c0(0x16b)];[_0x5666c0(0x176)];constructor(_0x2fdc60,{title:_0x33f2bf,items:_0x542722}){const _0x8f35c8=_0x5666c0;super(_0x2fdc60);const _0x4c1074=this[_0x8f35c8(0x16d)];this[_0x8f35c8(0x185)](_0x8f35c8(0x17d),!0x0),this[_0x8f35c8(0x17a)]=_0x33f2bf,this[_0x8f35c8(0x16b)]=_0x542722;const _0x445b36=new _0x95e4cc(_0x2fdc60);_0x445b36[_0x8f35c8(0x170)]({'tag':_0x8f35c8(0x167),'attributes':{'class':[_0x8f35c8(0x171)]},'children':[this[_0x8f35c8(0x17a)]]}),this[_0x8f35c8(0x176)]=new _0x29e460(_0x2fdc60),this[_0x8f35c8(0x176)][_0x8f35c8(0x177)][_0x8f35c8(0x173)](this[_0x8f35c8(0x16b)]),this[_0x8f35c8(0x170)]({'tag':'li','attributes':{'class':[_0x8f35c8(0x17b),_0x4c1074['if'](_0x8f35c8(0x17d),_0x8f35c8(0x16e),_0x58cc99=>!_0x58cc99)]},'children':[_0x445b36,this[_0x8f35c8(0x176)]]});}[_0x5666c0(0x174)](_0x11c1c6){const _0x8145e2=_0x5666c0,_0x1864a4=this[_0x8145e2(0x16b)][_0x8145e2(0x178)];let _0x34751c=0x0;for(const _0x5eb36b of this[_0x8145e2(0x16b)]){if(_0x11c1c6){const _0x375709=_0x5eb36b[_0x8145e2(0x17c)](_0x11c1c6);_0x5eb36b[_0x8145e2(0x17d)]=!!_0x375709,_0x5eb36b[_0x8145e2(0x181)](_0x11c1c6);}else _0x5eb36b[_0x8145e2(0x17d)]=!0x0,_0x5eb36b[_0x8145e2(0x181)](null);_0x5eb36b[_0x8145e2(0x17d)]&&_0x34751c++;}return this[_0x8145e2(0x17d)]=_0x34751c>0x0,{'resultsCount':_0x34751c,'totalItemsCount':_0x1864a4};}[_0x5666c0(0x165)](_0x4f02a5){const _0x4a70c0=_0x5666c0;return this[_0x4a70c0(0x16b)][_0x4a70c0(0x175)](_0x1d9e43=>_0x1d9e43['id']===_0x4f02a5);}[_0x5666c0(0x183)](_0x5986a4){const _0x43dd63=_0x5666c0,_0x33bc14=this[_0x43dd63(0x16b)][_0x43dd63(0x166)](_0x5986a4);-0x1!==_0x33bc14&&(this[_0x43dd63(0x16b)][_0x43dd63(0x169)](_0x33bc14,0x1),this[_0x43dd63(0x176)][_0x43dd63(0x177)][_0x43dd63(0x179)](_0x5986a4));}}
23
+ function _0x5367(_0xdeacf3,_0x50386e){const _0x1ae99e=_0x1ae9();return _0x5367=function(_0x536732,_0x3863ea){_0x536732=_0x536732-0xf8;let _0x2be25f=_0x1ae99e[_0x536732];return _0x2be25f;},_0x5367(_0xdeacf3,_0x50386e);}const _0x2c9760=_0x5367;(function(_0x568d25,_0x152d35){const _0x2bc5dd=_0x5367,_0xf6fedb=_0x568d25();while(!![]){try{const _0x5358a9=parseInt(_0x2bc5dd(0x111))/0x1+-parseInt(_0x2bc5dd(0xf8))/0x2*(parseInt(_0x2bc5dd(0x10d))/0x3)+-parseInt(_0x2bc5dd(0x114))/0x4+-parseInt(_0x2bc5dd(0x101))/0x5+-parseInt(_0x2bc5dd(0x113))/0x6+parseInt(_0x2bc5dd(0x108))/0x7+parseInt(_0x2bc5dd(0x103))/0x8;if(_0x5358a9===_0x152d35)break;else _0xf6fedb['push'](_0xf6fedb['shift']());}catch(_0xbcde07){_0xf6fedb['push'](_0xf6fedb['shift']());}}}(_0x1ae9,0x21330));import{ListItemView as _0x1ecb2c,View as _0x224fd3,ListView as _0x23ded7}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x1ecb2c{[_0x2c9760(0x106)];[_0x2c9760(0x10f)];[_0x2c9760(0x115)];constructor(_0x27df26,{title:_0x18d61c,items:_0x4d30c4}){const _0x8b8684=_0x2c9760;super(_0x27df26);const _0x40150b=this[_0x8b8684(0x100)];this[_0x8b8684(0xff)](_0x8b8684(0x112),!0x0),this[_0x8b8684(0x106)]=_0x18d61c,this[_0x8b8684(0x10f)]=_0x4d30c4;const _0x53a7c2=new _0x224fd3(_0x27df26);_0x53a7c2[_0x8b8684(0x107)]({'tag':_0x8b8684(0xfe),'attributes':{'class':[_0x8b8684(0xfd)]},'children':[this[_0x8b8684(0x106)]]}),this[_0x8b8684(0x115)]=new _0x23ded7(_0x27df26),this[_0x8b8684(0x115)][_0x8b8684(0x10b)][_0x8b8684(0xfa)](this[_0x8b8684(0x10f)]),this[_0x8b8684(0x107)]({'tag':'li','attributes':{'class':[_0x8b8684(0x104),_0x40150b['if'](_0x8b8684(0x112),_0x8b8684(0xfc),_0x2f661a=>!_0x2f661a)]},'children':[_0x53a7c2,this[_0x8b8684(0x115)]]});}[_0x2c9760(0x10a)](_0x1c7bc6){const _0xc1eb83=_0x2c9760,_0x577242=this[_0xc1eb83(0x10f)][_0xc1eb83(0x116)];let _0x4522ec=0x0;for(const _0x41fc92 of this[_0xc1eb83(0x10f)]){if(_0x1c7bc6){const _0x4c54fb=_0x41fc92[_0xc1eb83(0x10c)](_0x1c7bc6);_0x41fc92[_0xc1eb83(0x112)]=!!_0x4c54fb,_0x41fc92[_0xc1eb83(0x102)](_0x1c7bc6);}else _0x41fc92[_0xc1eb83(0x112)]=!0x0,_0x41fc92[_0xc1eb83(0x102)](null);_0x41fc92[_0xc1eb83(0x112)]&&_0x4522ec++;}return this[_0xc1eb83(0x112)]=_0x4522ec>0x0,{'resultsCount':_0x4522ec,'totalItemsCount':_0x577242};}[_0x2c9760(0x10e)](_0x10931c){const _0x832a99=_0x2c9760;return this[_0x832a99(0x10f)][_0x832a99(0xfb)](_0x42f2cd=>_0x42f2cd['id']===_0x10931c);}[_0x2c9760(0xf9)](_0x114d42){const _0x14f532=_0x2c9760,_0x12caa2=this[_0x14f532(0x10f)][_0x14f532(0x110)](_0x114d42);-0x1!==_0x12caa2&&(this[_0x14f532(0x10f)][_0x14f532(0x109)](_0x12caa2,0x1),this[_0x14f532(0x115)][_0x14f532(0x10b)][_0x14f532(0x105)](_0x114d42));}}function _0x1ae9(){const _0x4368b7=['isMatching','3fbbXls','getItem','itemsViews','indexOf','191172KUIitf','isVisible','37272uEWXUI','700176dWyxTr','_itemsListView','length','406966TjmfMo','removeItem','addMany','find','ck-hidden','ck-ai-chat-history__section-title','div','set','bindTemplate','1095035tESNYQ','highlightText','4116672pRQpAY','ck-ai-chat-history__section','remove','title','setTemplate','237818oeVJCA','splice','filter','items'];_0x1ae9=function(){return _0x4368b7;};return _0x1ae9();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e267b=_0xe9d8;function _0x5e24(){const _0x2a2488=['5THDSGH','filter','1125688ARNgIK','36lGksZd','1244667RBuxYh','7251730obQgRB','9UFNwSn','addMany','4RJvXPa','4oCfGzV','sections','687138dJfACc','items','ck-ai-chat-history__sections','1741051PlIfPf','11vCOodh','3802498tGjzsV','88546nRmmLl','extendTemplate'];_0x5e24=function(){return _0x2a2488;};return _0x5e24();}(function(_0xf3f6dc,_0x478a22){const _0x31ed6e=_0xe9d8,_0x5d4e0f=_0xf3f6dc();while(!![]){try{const _0x3636f2=-parseInt(_0x31ed6e(0x14b))/0x1*(-parseInt(_0x31ed6e(0x141))/0x2)+parseInt(_0x31ed6e(0x147))/0x3*(-parseInt(_0x31ed6e(0x14c))/0x4)+-parseInt(_0x31ed6e(0x143))/0x5*(parseInt(_0x31ed6e(0x13b))/0x6)+parseInt(_0x31ed6e(0x140))/0x7+parseInt(_0x31ed6e(0x145))/0x8*(-parseInt(_0x31ed6e(0x149))/0x9)+parseInt(_0x31ed6e(0x148))/0xa*(parseInt(_0x31ed6e(0x13f))/0xb)+-parseInt(_0x31ed6e(0x146))/0xc*(parseInt(_0x31ed6e(0x13e))/0xd);if(_0x3636f2===_0x478a22)break;else _0x5d4e0f['push'](_0x5d4e0f['shift']());}catch(_0x28ae48){_0x5d4e0f['push'](_0x5d4e0f['shift']());}}}(_0x5e24,0x5b347));import{ListView as _0x1815bf}from'ckeditor5/src/ui.js';function _0xe9d8(_0x538dbc,_0xb05994){const _0x5e246b=_0x5e24();return _0xe9d8=function(_0xe9d8ab,_0x455636){_0xe9d8ab=_0xe9d8ab-0x13a;let _0x3daca8=_0x5e246b[_0xe9d8ab];return _0x3daca8;},_0xe9d8(_0x538dbc,_0xb05994);}export class AIChatHistorySectionListView extends _0x1815bf{[_0x1e267b(0x13a)];constructor(_0x30ed52,_0xe726be){const _0x2e8060=_0x1e267b;super(_0x30ed52),this[_0x2e8060(0x13a)]=_0xe726be,this[_0x2e8060(0x13c)][_0x2e8060(0x14a)](this[_0x2e8060(0x13a)]),this[_0x2e8060(0x142)]({'attributes':{'class':[_0x2e8060(0x13d)]}});}[_0x1e267b(0x144)](_0x28c941){const _0x496ef8=_0x1e267b;let _0x2ebe6b=0x0,_0xbe69b6=0x0;for(const _0xcc0af9 of this[_0x496ef8(0x13a)]){const {resultsCount:_0x295a09,totalItemsCount:_0x184b9d}=_0xcc0af9[_0x496ef8(0x144)](_0x28c941);_0x2ebe6b+=_0x295a09,_0xbe69b6+=_0x184b9d;}return{'resultsCount':_0x2ebe6b,'totalItemsCount':_0xbe69b6};}}
23
+ const _0x1d9c68=_0x3c39;(function(_0x3c0dac,_0x86feda){const _0x211ecb=_0x3c39,_0x22aaa5=_0x3c0dac();while(!![]){try{const _0x432b16=parseInt(_0x211ecb(0x1bb))/0x1*(parseInt(_0x211ecb(0x1b8))/0x2)+parseInt(_0x211ecb(0x1ad))/0x3*(parseInt(_0x211ecb(0x1ae))/0x4)+-parseInt(_0x211ecb(0x1b9))/0x5*(parseInt(_0x211ecb(0x1b7))/0x6)+-parseInt(_0x211ecb(0x1b4))/0x7+parseInt(_0x211ecb(0x1b6))/0x8*(-parseInt(_0x211ecb(0x1bc))/0x9)+parseInt(_0x211ecb(0x1bd))/0xa*(-parseInt(_0x211ecb(0x1b0))/0xb)+parseInt(_0x211ecb(0x1b5))/0xc;if(_0x432b16===_0x86feda)break;else _0x22aaa5['push'](_0x22aaa5['shift']());}catch(_0x2cbf05){_0x22aaa5['push'](_0x22aaa5['shift']());}}}(_0x50e2,0x97017));function _0x50e2(){const _0x1d15cc=['addMany','27hVuPth','1467wUOfwb','10180VTxyLp','ck-ai-chat-history__sections','29295vopkIK','484zvbPSb','extendTemplate','7095ssULFX','filter','sections','items','704382IZrYTD','15303552vvAAGx','26584PMNcFa','1286598AcewRc','7692VihqZw','15FqFjOZ'];_0x50e2=function(){return _0x1d15cc;};return _0x50e2();}function _0x3c39(_0x36652b,_0x4b8f5c){const _0x50e2f0=_0x50e2();return _0x3c39=function(_0x3c3932,_0x5dccc2){_0x3c3932=_0x3c3932-0x1ac;let _0x5bc72f=_0x50e2f0[_0x3c3932];return _0x5bc72f;},_0x3c39(_0x36652b,_0x4b8f5c);}import{ListView as _0x12b7d4}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x12b7d4{[_0x1d9c68(0x1b2)];constructor(_0xb94ff,_0xfc3746){const _0x3ccdea=_0x1d9c68;super(_0xb94ff),this[_0x3ccdea(0x1b2)]=_0xfc3746,this[_0x3ccdea(0x1b3)][_0x3ccdea(0x1ba)](this[_0x3ccdea(0x1b2)]),this[_0x3ccdea(0x1af)]({'attributes':{'class':[_0x3ccdea(0x1ac)]}});}[_0x1d9c68(0x1b1)](_0x5a2829){const _0x470722=_0x1d9c68;let _0xea65bc=0x0,_0x41b50b=0x0;for(const _0x134623 of this[_0x470722(0x1b2)]){const {resultsCount:_0x146ba1,totalItemsCount:_0x42dbb1}=_0x134623[_0x470722(0x1b1)](_0x5a2829);_0xea65bc+=_0x146ba1,_0x41b50b+=_0x42dbb1;}return{'resultsCount':_0xea65bc,'totalItemsCount':_0x41b50b};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f4b01=_0x11a4;(function(_0x4b126f,_0x43c39c){const _0x319f61=_0x11a4,_0x107ba0=_0x4b126f();while(!![]){try{const _0x383811=-parseInt(_0x319f61(0x215))/0x1*(parseInt(_0x319f61(0x1f6))/0x2)+-parseInt(_0x319f61(0x228))/0x3+-parseInt(_0x319f61(0x1f0))/0x4*(parseInt(_0x319f61(0x1f2))/0x5)+-parseInt(_0x319f61(0x201))/0x6*(-parseInt(_0x319f61(0x212))/0x7)+-parseInt(_0x319f61(0x231))/0x8*(-parseInt(_0x319f61(0x218))/0x9)+parseInt(_0x319f61(0x1ec))/0xa*(parseInt(_0x319f61(0x200))/0xb)+parseInt(_0x319f61(0x225))/0xc;if(_0x383811===_0x43c39c)break;else _0x107ba0['push'](_0x107ba0['shift']());}catch(_0x34323c){_0x107ba0['push'](_0x107ba0['shift']());}}}(_0x144b,0xeeecc));import{View as _0xf55871,SearchTextView as _0x45611d,FormHeaderView as _0x1db3f4,ButtonView as _0x217a45}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x249cb3,IconCancel as _0x5131ac,IconPlus as _0x2b7bd8}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0xe963a4}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x3bb2ab}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x2d3e2b}from'./aichathistorylistitemview.js';function _0x11a4(_0x5b3f16,_0x1a69c3){const _0x144b1=_0x144b();return _0x11a4=function(_0x11a48a,_0xab7f52){_0x11a48a=_0x11a48a-0x1e7;let _0x3b03dc=_0x144b1[_0x11a48a];return _0x3b03dc;},_0x11a4(_0x5b3f16,_0x1a69c3);}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x154452}from'../aichathistoryui.js';import{AISkeletonView as _0x292ed4,SKELETON_DEFINITIONS as _0x5ed03d}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x57fd1e}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x44a2fe}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0xf55871{[_0x1f4b01(0x23a)];[_0x1f4b01(0x230)];[_0x1f4b01(0x223)];[_0x1f4b01(0x21a)];[_0x1f4b01(0x1ef)];[_0x1f4b01(0x1f3)];constructor(_0xb376c,_0x5759ad){const _0x2a1c09=_0x1f4b01;super(_0xb376c),this[_0x2a1c09(0x21e)](_0x2a1c09(0x227),!0x1),this[_0x2a1c09(0x21e)](_0x2a1c09(0x219),!0x0),this[_0x2a1c09(0x21e)](_0x2a1c09(0x204),''),this[_0x2a1c09(0x21e)](_0x2a1c09(0x216),!0x1),this[_0x2a1c09(0x21e)](_0x2a1c09(0x244),!0x1),this[_0x2a1c09(0x21e)](_0x2a1c09(0x236),!0x1),this[_0x2a1c09(0x21e)](_0x2a1c09(0x237),!0x1);const _0x5095d8=new _0x1db3f4(_0xb376c,{'label':_0x44a2fe(_0xb376c,_0x2a1c09(0x213)),'icon':_0x249cb3,'class':_0x2a1c09(0x23b)});_0x5759ad&&(this[_0x2a1c09(0x1f3)]=_0x57fd1e(_0xb376c,this),_0x5095d8[_0x2a1c09(0x1ee)][_0x2a1c09(0x241)](this[_0x2a1c09(0x1f3)])),this[_0x2a1c09(0x1ef)]=new _0xe963a4(_0xb376c,[]),this[_0x2a1c09(0x1ef)][_0x2a1c09(0x22d)](..._0x154452)['to'](this),this[_0x2a1c09(0x230)]=this[_0x2a1c09(0x205)](),this[_0x2a1c09(0x223)]=this[_0x2a1c09(0x1fa)](),this[_0x2a1c09(0x21a)]=this[_0x2a1c09(0x214)](),this[_0x2a1c09(0x23a)]=this[_0x2a1c09(0x20d)](),this[_0x2a1c09(0x230)][_0x2a1c09(0x234)]({'attributes':{'class':[this[_0x2a1c09(0x22f)]['if'](_0x2a1c09(0x237),_0x2a1c09(0x21d),_0x3accbe=>!_0x3accbe)]}}),this['on'](_0x2a1c09(0x1fd),()=>this[_0x2a1c09(0x1f7)]()),this['on'](_0x2a1c09(0x242),()=>this[_0x2a1c09(0x1f7)]()),this['on'](_0x2a1c09(0x20a),()=>this[_0x2a1c09(0x1f7)]()),this[_0x2a1c09(0x245)]({'tag':_0x2a1c09(0x23c),'attributes':{'class':['ck',_0x2a1c09(0x1f1),_0x2a1c09(0x239),_0x2a1c09(0x224)],'dir':_0x2a1c09(0x240)},'children':[_0x5095d8,{'tag':_0x2a1c09(0x23c),'attributes':{'class':[_0x2a1c09(0x21c)]},'children':[this[_0x2a1c09(0x223)],this[_0x2a1c09(0x230)],this[_0x2a1c09(0x21a)],this[_0x2a1c09(0x23a)]]}]});}[_0x1f4b01(0x1f7)](){const _0x21213c=_0x1f4b01;this[_0x21213c(0x244)]=!this[_0x21213c(0x219)]&&this[_0x21213c(0x227)],this[_0x21213c(0x236)]=!this[_0x21213c(0x219)]&&!this[_0x21213c(0x227)]&&!this[_0x21213c(0x204)],this[_0x21213c(0x237)]=!this[_0x21213c(0x244)]&&!!this[_0x21213c(0x204)];}[_0x1f4b01(0x20d)](){const _0x599c2c=_0x1f4b01,_0x1db132=new _0x45611d(this[_0x599c2c(0x233)],{'filteredView':this[_0x599c2c(0x1ef)],'queryView':{'label':_0x44a2fe(this[_0x599c2c(0x233)],_0x599c2c(0x23f))},'infoView':{'text':{'notFound':{'primary':_0x151479=>_0x44a2fe(this[_0x599c2c(0x233)],_0x599c2c(0x221),_0x151479),'secondary':_0x44a2fe(this[_0x599c2c(0x233)],_0x599c2c(0x1e7))}}}}),_0x1ba4aa=this[_0x599c2c(0x205)]();return _0x1ba4aa[_0x599c2c(0x234)]({'attributes':{'class':[this[_0x599c2c(0x22f)]['if'](_0x599c2c(0x204),_0x599c2c(0x21d),_0x39c923=>!_0x39c923)]}}),_0x1db132['on'](_0x599c2c(0x207),()=>{const _0x4f3e5f=_0x599c2c;_0x1db132[_0x4f3e5f(0x1ee)][_0x4f3e5f(0x241)](_0x1ba4aa,0x1);}),_0x1db132[_0x599c2c(0x234)]({'attributes':{'class':[this[_0x599c2c(0x22f)]['if'](_0x599c2c(0x244),_0x599c2c(0x21d),_0x58891c=>!_0x58891c)]}}),_0x1db132;}[_0x1f4b01(0x1fa)](){const _0x2bf137=_0x1f4b01,_0x48822d=new _0x292ed4(this[_0x2bf137(0x233)],_0x5ed03d[_0x2bf137(0x238)]);return _0x48822d[_0x2bf137(0x234)]({'attributes':{'class':[this[_0x2bf137(0x22f)]['if'](_0x2bf137(0x219),_0x2bf137(0x21d),_0x2ca49b=>!_0x2ca49b)]}}),_0x48822d;}[_0x1f4b01(0x205)](){const _0x4f0fcf=_0x1f4b01,_0x3532fb=new _0xf55871(this[_0x4f0fcf(0x233)]),_0xf5a818=new _0x217a45(this[_0x4f0fcf(0x233)]);_0xf5a818[_0x4f0fcf(0x21e)]({'withText':!0x1,'icon':_0x5131ac,'class':_0x4f0fcf(0x23d)}),_0xf5a818[_0x4f0fcf(0x1fc)](_0x4f0fcf(0x235))['to'](this,_0x4f0fcf(0x227),_0x3121d6=>!!_0x3121d6),_0xf5a818['on'](_0x4f0fcf(0x210),()=>{const _0x48a3ca=_0x4f0fcf;this[_0x48a3ca(0x204)]='';});const _0x4fe303=this[_0x4f0fcf(0x22f)];return _0x3532fb[_0x4f0fcf(0x245)]({'tag':_0x4f0fcf(0x23c),'attributes':{'class':['ck',_0x4f0fcf(0x202),_0x4f0fcf(0x209)]},'children':[{'tag':'p','children':[{'text':_0x4fe303['to'](_0x4f0fcf(0x204))}]},_0xf5a818]}),_0x3532fb;}[_0x1f4b01(0x214)](){const _0x143973=_0x1f4b01,_0x33b1ef=new _0x217a45(this[_0x143973(0x233)]);_0x33b1ef[_0x143973(0x21e)]({'label':_0x44a2fe(this[_0x143973(0x233)],_0x143973(0x1fb)),'withText':!0x0,'icon':_0x2b7bd8,'class':_0x143973(0x20e)}),_0x33b1ef['on'](_0x143973(0x210),()=>{const _0x2fb8f5=_0x143973;this[_0x2fb8f5(0x1eb)](_0x2fb8f5(0x23e));});const _0x268a10=new _0xf55871(this[_0x143973(0x233)]);return _0x268a10[_0x143973(0x245)]({'tag':_0x143973(0x23c),'attributes':{'class':[_0x143973(0x22e),this[_0x143973(0x22f)]['if'](_0x143973(0x236),_0x143973(0x21d),_0x4298d6=>!_0x4298d6)]},'children':[{'tag':'p','attributes':{'class':[_0x143973(0x229)]},'children':[_0x44a2fe(this[_0x143973(0x233)],_0x143973(0x1ea))]},_0x33b1ef]}),_0x268a10;}[_0x1f4b01(0x20b)](_0x1de642,_0x142c55){const _0x3dce7c=_0x1f4b01,_0x4b3f6e=[];for(const _0x589da4 of _0x1de642){const _0xecac39=new _0x2d3e2b(_0x142c55,_0x589da4);_0xecac39[_0x3dce7c(0x22d)](..._0x154452)['to'](this),_0x4b3f6e[_0x3dce7c(0x22c)](_0xecac39);}return _0x4b3f6e;}[_0x1f4b01(0x20f)](_0x59a3d7){const _0xa9adcb=_0x1f4b01,_0x5874c8=this[_0xa9adcb(0x233)]||'en',_0x4b0d56=[];for(const _0x10e584 of _0x59a3d7){const _0x1362ee=this[_0xa9adcb(0x20b)](_0x10e584[_0xa9adcb(0x226)],_0x5874c8);_0x4b0d56[_0xa9adcb(0x22c)](new _0x3bb2ab(_0x5874c8,{'title':_0x10e584[_0xa9adcb(0x1f9)],'items':_0x1362ee}));}this[_0xa9adcb(0x1ef)][_0xa9adcb(0x217)]=_0x4b0d56,this[_0xa9adcb(0x1ef)][_0xa9adcb(0x226)][_0xa9adcb(0x208)](),this[_0xa9adcb(0x1ef)][_0xa9adcb(0x226)][_0xa9adcb(0x1e8)](_0x4b0d56),this[_0xa9adcb(0x227)]=_0x59a3d7[_0xa9adcb(0x1f8)](_0x42b7d7=>_0x42b7d7[_0xa9adcb(0x226)][_0xa9adcb(0x203)]>0x0),this[_0xa9adcb(0x1f4)]();}[_0x1f4b01(0x21b)](_0x3910e8){const _0x2a673c=_0x1f4b01;for(const _0x3c8dc7 of this[_0x2a673c(0x1ef)][_0x2a673c(0x217)]){const _0x2516b9=_0x3c8dc7[_0x2a673c(0x243)](_0x3910e8);if(_0x2516b9){if(_0x3c8dc7[_0x2a673c(0x211)](_0x2516b9),0x0===_0x3c8dc7[_0x2a673c(0x22a)][_0x2a673c(0x203)]){const _0x5a7afc=this[_0x2a673c(0x1ef)][_0x2a673c(0x217)][_0x2a673c(0x1ff)](_0x3c8dc7);-0x1!==_0x5a7afc&&(this[_0x2a673c(0x1ef)][_0x2a673c(0x217)][_0x2a673c(0x232)](_0x5a7afc,0x1),this[_0x2a673c(0x1ef)][_0x2a673c(0x226)][_0x2a673c(0x1fe)](_0x3c8dc7));}this[_0x2a673c(0x227)]=this[_0x2a673c(0x1ef)][_0x2a673c(0x217)][_0x2a673c(0x203)]>0x0,this[_0x2a673c(0x1f4)]();break;}}}[_0x1f4b01(0x22b)](_0x103d67,_0x87c30a){const _0x211fbc=_0x1f4b01;for(const _0x542705 of this[_0x211fbc(0x1ef)][_0x211fbc(0x217)]){const _0x404588=_0x542705[_0x211fbc(0x243)](_0x103d67);if(_0x404588){_0x404588[_0x211fbc(0x220)](_0x87c30a);break;}}}[_0x1f4b01(0x1f5)](_0x20c371,_0x16f122,_0x57a0c4){const _0x309955=_0x1f4b01;for(const _0x4377b1 of this[_0x309955(0x1ef)][_0x309955(0x217)]){const _0x2d4b67=_0x4377b1[_0x309955(0x243)](_0x20c371);if(_0x2d4b67){_0x2d4b67[_0x309955(0x20c)](_0x16f122,_0x57a0c4);break;}}}[_0x1f4b01(0x1f4)](){const _0x668e7a=_0x1f4b01;if(this[_0x668e7a(0x227)]){const _0x32044f=this[_0x668e7a(0x23a)][_0x668e7a(0x1ed)][_0x668e7a(0x1e9)]?.[_0x668e7a(0x222)]?.[_0x668e7a(0x21f)]||'';this[_0x668e7a(0x23a)][_0x668e7a(0x206)](_0x32044f);}}}function _0x144b(){const _0x50ded2=['length','errorMessage','_createErrorView','search','render','clear','ck-ai-notification_error','change:errorMessage','_createListItemViews','updateLoadingState','_createSearchView','ck-ai-chat__start-conversation','updateHistoryItemsWithCategories','execute','removeItem','7pvAQgw','AI_CHAT_HISTORY_HEADING','_createEmptyStateView','1fHUzdg','isMaximized','sections','3313053AhuiFL','isLoading','emptyView','removeHistoryItem','ck-ai-chat-history__content','ck-hidden','set','value','updateTitle','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','element','skeletonView','ck-rounded-corners','6970500XnVGIy','items','hasItems','4054386mIipks','ck-ai-chat-history__empty-message','itemsViews','updateItemTitle','push','delegate','ck-ai-chat-history__empty','bindTemplate','mainErrorView','24vLYOFR','splice','locale','extendTemplate','isVisible','isEmptyViewVisible','isMainErrorViewVisible','aiHistory','ck-ai-chat-history','searchView','ck-ai-header\x20ck-ai-header_history','div','ck-ai-notification_error__dismiss-button','openChat','AI_CHAT_HISTORY_SEARCH_LABEL','ltr','add','change:hasItems','getItem','isSearchViewVisible','setTemplate','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','addMany','fieldView','AI_CHAT_HISTORY_EMPTY_MESSAGE','fire','1970dQyJHz','queryView','children','sectionsView','176jgIuzz','ck-reset_all','147865JRClqE','resizeButton','_refreshSearch','updateItemLoadingState','643442XedPIJ','_updateViewVisibility','some','title','_createSkeletonView','AI_CHAT_LABEL_NEW_CHAT','bind','change:isLoading','remove','indexOf','48818rOBNQE','8361114AVjmgd','ck-ai-notification'];_0x144b=function(){return _0x50ded2;};return _0x144b();}
23
+ const _0x4544df=_0x2279;(function(_0x3c1098,_0x3394b1){const _0x25176c=_0x2279,_0x4de720=_0x3c1098();while(!![]){try{const _0x34a9ad=parseInt(_0x25176c(0xcf))/0x1*(-parseInt(_0x25176c(0xcd))/0x2)+parseInt(_0x25176c(0xe7))/0x3+parseInt(_0x25176c(0xb6))/0x4*(-parseInt(_0x25176c(0xac))/0x5)+-parseInt(_0x25176c(0xd7))/0x6+-parseInt(_0x25176c(0xf7))/0x7*(parseInt(_0x25176c(0xbb))/0x8)+-parseInt(_0x25176c(0xd2))/0x9*(-parseInt(_0x25176c(0xc6))/0xa)+parseInt(_0x25176c(0xe5))/0xb;if(_0x34a9ad===_0x3394b1)break;else _0x4de720['push'](_0x4de720['shift']());}catch(_0x49c65c){_0x4de720['push'](_0x4de720['shift']());}}}(_0x3295,0xda71d));import{View as _0x346095,SearchTextView as _0x503726,FormHeaderView as _0x2af532,ButtonView as _0x29f4ea}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x335801,IconCancel as _0x35c857,IconPlus as _0x53f69e}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x3ed519}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x20f96b}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x3c3dfa}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0xdff539}from'../aichathistoryui.js';import{AISkeletonView as _0x3e6c79,SKELETON_DEFINITIONS as _0x586dca}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x4b8b59}from'../../aicore/utils/createresizebutton.js';function _0x2279(_0x14a5f9,_0x3e13c1){const _0x3295b0=_0x3295();return _0x2279=function(_0x2279d6,_0xcead48){_0x2279d6=_0x2279d6-0xa8;let _0xac38eb=_0x3295b0[_0x2279d6];return _0xac38eb;},_0x2279(_0x14a5f9,_0x3e13c1);}import{getTranslation as _0x641a6e}from'../../aicore/utils/common-translations.js';function _0x3295(){const _0x36ac37=['ck-ai-header\x20ck-ai-header_history','some','updateItemLoadingState','removeItem','10njCimm','_createSearchView','div','children','AI_CHAT_LABEL_NEW_CHAT','AI_CHAT_HISTORY_SEARCH_LABEL','_createSkeletonView','1572jwzKQN','ck-reset_all','1597bNjyTz','add','errorMessage','13318758PBXxbY','render','queryView','addMany','_createListItemViews','6219882iGlXTm','remove','title','updateTitle','AI_CHAT_HISTORY_HEADING','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','indexOf','getItem','setTemplate','push','_createErrorView','ck-ai-notification_error__dismiss-button','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','clear','30177257sWaIXN','splice','2449254nChOxB','bind','aiHistory','ck-rounded-corners','updateItemTitle','locale','value','_createEmptyStateView','ck-ai-chat-history__content','isMaximized','bindTemplate','ck-ai-chat-history__empty','ck-hidden','mainErrorView','isVisible','search','4032091UtAdgV','extendTemplate','fieldView','_updateViewVisibility','_refreshSearch','hasItems','length','change:errorMessage','items','ck-ai-chat__start-conversation','isMainErrorViewVisible','element','updateLoadingState','isSearchViewVisible','change:hasItems','ck-ai-chat-history__empty-message','set','fire','itemsViews','3505015BwaMqA','removeHistoryItem','sectionsView','updateHistoryItemsWithCategories','searchView','ck-ai-notification','change:isLoading','resizeButton','execute','openChat','4tLeyty','delegate','AI_CHAT_HISTORY_EMPTY_MESSAGE','skeletonView','ck-ai-chat-history','16ZWMGnC','isLoading','sections','emptyView','ltr','ck-ai-notification_error','isEmptyViewVisible'];_0x3295=function(){return _0x36ac37;};return _0x3295();}export class AIChatHistoryView extends _0x346095{[_0x4544df(0xb0)];[_0x4544df(0xf4)];[_0x4544df(0xb9)];[_0x4544df(0xbe)];[_0x4544df(0xae)];[_0x4544df(0xb3)];constructor(_0x599508,_0x5ad0b8){const _0x124508=_0x4544df;super(_0x599508),this[_0x124508(0xa9)](_0x124508(0xfc),!0x1),this[_0x124508(0xa9)](_0x124508(0xbc),!0x0),this[_0x124508(0xa9)](_0x124508(0xd1),''),this[_0x124508(0xa9)](_0x124508(0xf0),!0x1),this[_0x124508(0xa9)](_0x124508(0x104),!0x1),this[_0x124508(0xa9)](_0x124508(0xc1),!0x1),this[_0x124508(0xa9)](_0x124508(0x101),!0x1);const _0x27f8bc=new _0x2af532(_0x599508,{'label':_0x641a6e(_0x599508,_0x124508(0xdb)),'icon':_0x335801,'class':_0x124508(0xc2)});_0x5ad0b8&&(this[_0x124508(0xb3)]=_0x4b8b59(_0x599508,this),_0x27f8bc[_0x124508(0xc9)][_0x124508(0xd0)](this[_0x124508(0xb3)])),this[_0x124508(0xae)]=new _0x3ed519(_0x599508,[]),this[_0x124508(0xae)][_0x124508(0xb7)](..._0xdff539)['to'](this),this[_0x124508(0xf4)]=this[_0x124508(0xe1)](),this[_0x124508(0xb9)]=this[_0x124508(0xcc)](),this[_0x124508(0xbe)]=this[_0x124508(0xee)](),this[_0x124508(0xb0)]=this[_0x124508(0xc7)](),this[_0x124508(0xf4)][_0x124508(0xf8)]({'attributes':{'class':[this[_0x124508(0xf1)]['if'](_0x124508(0x101),_0x124508(0xf3),_0x4d8918=>!_0x4d8918)]}}),this['on'](_0x124508(0xb2),()=>this[_0x124508(0xfa)]()),this['on'](_0x124508(0x105),()=>this[_0x124508(0xfa)]()),this['on'](_0x124508(0xfe),()=>this[_0x124508(0xfa)]()),this[_0x124508(0xdf)]({'tag':_0x124508(0xc8),'attributes':{'class':['ck',_0x124508(0xce),_0x124508(0xba),_0x124508(0xea)],'dir':_0x124508(0xbf)},'children':[_0x27f8bc,{'tag':_0x124508(0xc8),'attributes':{'class':[_0x124508(0xef)]},'children':[this[_0x124508(0xb9)],this[_0x124508(0xf4)],this[_0x124508(0xbe)],this[_0x124508(0xb0)]]}]});}[_0x4544df(0xfa)](){const _0x362caf=_0x4544df;this[_0x362caf(0x104)]=!this[_0x362caf(0xbc)]&&this[_0x362caf(0xfc)],this[_0x362caf(0xc1)]=!this[_0x362caf(0xbc)]&&!this[_0x362caf(0xfc)]&&!this[_0x362caf(0xd1)],this[_0x362caf(0x101)]=!this[_0x362caf(0x104)]&&!!this[_0x362caf(0xd1)];}[_0x4544df(0xc7)](){const _0x128825=_0x4544df,_0x1fb59b=new _0x503726(this[_0x128825(0xec)],{'filteredView':this[_0x128825(0xae)],'queryView':{'label':_0x641a6e(this[_0x128825(0xec)],_0x128825(0xcb))},'infoView':{'text':{'notFound':{'primary':_0x156c87=>_0x641a6e(this[_0x128825(0xec)],_0x128825(0xdc),_0x156c87),'secondary':_0x641a6e(this[_0x128825(0xec)],_0x128825(0xe3))}}}}),_0x29ba49=this[_0x128825(0xe1)]();return _0x29ba49[_0x128825(0xf8)]({'attributes':{'class':[this[_0x128825(0xf1)]['if'](_0x128825(0xd1),_0x128825(0xf3),_0x1cf7d6=>!_0x1cf7d6)]}}),_0x1fb59b['on'](_0x128825(0xd3),()=>{const _0x404cf3=_0x128825;_0x1fb59b[_0x404cf3(0xc9)][_0x404cf3(0xd0)](_0x29ba49,0x1);}),_0x1fb59b[_0x128825(0xf8)]({'attributes':{'class':[this[_0x128825(0xf1)]['if'](_0x128825(0x104),_0x128825(0xf3),_0x2db0d2=>!_0x2db0d2)]}}),_0x1fb59b;}[_0x4544df(0xcc)](){const _0x2f524b=_0x4544df,_0x2a9c09=new _0x3e6c79(this[_0x2f524b(0xec)],_0x586dca[_0x2f524b(0xe9)]);return _0x2a9c09[_0x2f524b(0xf8)]({'attributes':{'class':[this[_0x2f524b(0xf1)]['if'](_0x2f524b(0xbc),_0x2f524b(0xf3),_0x29ec12=>!_0x29ec12)]}}),_0x2a9c09;}[_0x4544df(0xe1)](){const _0x467fbe=_0x4544df,_0x3d2153=new _0x346095(this[_0x467fbe(0xec)]),_0x3f4311=new _0x29f4ea(this[_0x467fbe(0xec)]);_0x3f4311[_0x467fbe(0xa9)]({'withText':!0x1,'icon':_0x35c857,'class':_0x467fbe(0xe2)}),_0x3f4311[_0x467fbe(0xe8)](_0x467fbe(0xf5))['to'](this,_0x467fbe(0xfc),_0x327858=>!!_0x327858),_0x3f4311['on'](_0x467fbe(0xb4),()=>{const _0x492017=_0x467fbe;this[_0x492017(0xd1)]='';});const _0x2c8ebb=this[_0x467fbe(0xf1)];return _0x3d2153[_0x467fbe(0xdf)]({'tag':_0x467fbe(0xc8),'attributes':{'class':['ck',_0x467fbe(0xb1),_0x467fbe(0xc0)]},'children':[{'tag':'p','children':[{'text':_0x2c8ebb['to'](_0x467fbe(0xd1))}]},_0x3f4311]}),_0x3d2153;}[_0x4544df(0xee)](){const _0x37d38a=_0x4544df,_0x2698b7=new _0x29f4ea(this[_0x37d38a(0xec)]);_0x2698b7[_0x37d38a(0xa9)]({'label':_0x641a6e(this[_0x37d38a(0xec)],_0x37d38a(0xca)),'withText':!0x0,'icon':_0x53f69e,'class':_0x37d38a(0x100)}),_0x2698b7['on'](_0x37d38a(0xb4),()=>{const _0x2e33aa=_0x37d38a;this[_0x2e33aa(0xaa)](_0x2e33aa(0xb5));});const _0x4af573=new _0x346095(this[_0x37d38a(0xec)]);return _0x4af573[_0x37d38a(0xdf)]({'tag':_0x37d38a(0xc8),'attributes':{'class':[_0x37d38a(0xf2),this[_0x37d38a(0xf1)]['if'](_0x37d38a(0xc1),_0x37d38a(0xf3),_0x1f3208=>!_0x1f3208)]},'children':[{'tag':'p','attributes':{'class':[_0x37d38a(0xa8)]},'children':[_0x641a6e(this[_0x37d38a(0xec)],_0x37d38a(0xb8))]},_0x2698b7]}),_0x4af573;}[_0x4544df(0xd6)](_0x2bdc6b,_0x47320e){const _0x196cf7=_0x4544df,_0x1b48c1=[];for(const _0x1682e8 of _0x2bdc6b){const _0x385732=new _0x3c3dfa(_0x47320e,_0x1682e8);_0x385732[_0x196cf7(0xb7)](..._0xdff539)['to'](this),_0x1b48c1[_0x196cf7(0xe0)](_0x385732);}return _0x1b48c1;}[_0x4544df(0xaf)](_0x327c33){const _0x16284f=_0x4544df,_0x191468=this[_0x16284f(0xec)]||'en',_0x2a28d0=[];for(const _0x816a9 of _0x327c33){const _0x7b69f2=this[_0x16284f(0xd6)](_0x816a9[_0x16284f(0xff)],_0x191468);_0x2a28d0[_0x16284f(0xe0)](new _0x20f96b(_0x191468,{'title':_0x816a9[_0x16284f(0xd9)],'items':_0x7b69f2}));}this[_0x16284f(0xae)][_0x16284f(0xbd)]=_0x2a28d0,this[_0x16284f(0xae)][_0x16284f(0xff)][_0x16284f(0xe4)](),this[_0x16284f(0xae)][_0x16284f(0xff)][_0x16284f(0xd5)](_0x2a28d0),this[_0x16284f(0xfc)]=_0x327c33[_0x16284f(0xc3)](_0xaef687=>_0xaef687[_0x16284f(0xff)][_0x16284f(0xfd)]>0x0),this[_0x16284f(0xfb)]();}[_0x4544df(0xad)](_0x59a4b0){const _0x4ff809=_0x4544df;for(const _0x416b7a of this[_0x4ff809(0xae)][_0x4ff809(0xbd)]){const _0x2cd894=_0x416b7a[_0x4ff809(0xde)](_0x59a4b0);if(_0x2cd894){if(_0x416b7a[_0x4ff809(0xc5)](_0x2cd894),0x0===_0x416b7a[_0x4ff809(0xab)][_0x4ff809(0xfd)]){const _0x2d485d=this[_0x4ff809(0xae)][_0x4ff809(0xbd)][_0x4ff809(0xdd)](_0x416b7a);-0x1!==_0x2d485d&&(this[_0x4ff809(0xae)][_0x4ff809(0xbd)][_0x4ff809(0xe6)](_0x2d485d,0x1),this[_0x4ff809(0xae)][_0x4ff809(0xff)][_0x4ff809(0xd8)](_0x416b7a));}this[_0x4ff809(0xfc)]=this[_0x4ff809(0xae)][_0x4ff809(0xbd)][_0x4ff809(0xfd)]>0x0,this[_0x4ff809(0xfb)]();break;}}}[_0x4544df(0xeb)](_0x5d5fdf,_0x3c7cdb){const _0x4f0c4e=_0x4544df;for(const _0x548f36 of this[_0x4f0c4e(0xae)][_0x4f0c4e(0xbd)]){const _0x36fbdd=_0x548f36[_0x4f0c4e(0xde)](_0x5d5fdf);if(_0x36fbdd){_0x36fbdd[_0x4f0c4e(0xda)](_0x3c7cdb);break;}}}[_0x4544df(0xc4)](_0x154a43,_0x25a9dc,_0x186b55){const _0x3e07bb=_0x4544df;for(const _0x26fa16 of this[_0x3e07bb(0xae)][_0x3e07bb(0xbd)]){const _0x38a758=_0x26fa16[_0x3e07bb(0xde)](_0x154a43);if(_0x38a758){_0x38a758[_0x3e07bb(0x103)](_0x25a9dc,_0x186b55);break;}}}[_0x4544df(0xfb)](){const _0x5da919=_0x4544df;if(this[_0x5da919(0xfc)]){const _0x28a6d7=this[_0x5da919(0xb0)][_0x5da919(0xd4)][_0x5da919(0xf9)]?.[_0x5da919(0x102)]?.[_0x5da919(0xed)]||'';this[_0x5da919(0xb0)][_0x5da919(0xf6)](_0x28a6d7);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d1733=_0x5945;(function(_0x26e750,_0x5c46de){const _0x2c435f=_0x5945,_0x11de9a=_0x26e750();while(!![]){try{const _0x35a4f2=-parseInt(_0x2c435f(0x1b9))/0x1*(-parseInt(_0x2c435f(0x1b2))/0x2)+-parseInt(_0x2c435f(0x1d0))/0x3*(-parseInt(_0x2c435f(0x1c8))/0x4)+parseInt(_0x2c435f(0x1c0))/0x5*(parseInt(_0x2c435f(0x1f4))/0x6)+-parseInt(_0x2c435f(0x1a7))/0x7+-parseInt(_0x2c435f(0x1d7))/0x8+-parseInt(_0x2c435f(0x1ad))/0x9+parseInt(_0x2c435f(0x1f7))/0xa;if(_0x35a4f2===_0x5c46de)break;else _0x11de9a['push'](_0x11de9a['shift']());}catch(_0xdf04f8){_0x11de9a['push'](_0x11de9a['shift']());}}}(_0x3b3b,0x5cc70));function _0x3b3b(){const _0x1bd556=['reviewMode','setModel','_executeShortcut','_aiChatUI','context','check','40RLzsSx','getDefault','AIChat','string','label','destroy','execute','forEach','117099ckFsXd','_runChatShortcut','CHAT','addFeedItemCustomElement','chatModels','fire','init','5705048xJRIVH','find','_removeShortcuts','ai.chat.shortcuts','isPremiumPlugin','getModel','source','activateTab','custom','AITranslateUI','AIChatController','chat-shortcuts','render','type','AITabs','includes','_injectShortcuts','values','runReviewCheck','ai-chat-shortcuts-ai-tabs-not-found','args','isFromHistory','config','review','conversationCreated','_runTranslateShortcut','setWebSearch','element','interactionStarted','36ifuhsa','ai-chat-shortcuts-invalid-config','_switchTab','2926930XVxCKO','AIChatShortcuts','_validateShortcuts','AIReviewModeUI','_runReviewShortcut','params','REVIEW','language','TRANSLATE','_shortcutsView','focusPromptInput','ai-chat-shortcuts-review-mode-not-found','373100cTHiAX','requires','listenTo','view','pluginName','prompt','1594917DLGbhe','hasFeedItem','has','addCurrentDocumentToChatContext','isOfficialPlugin','717238pLDRzV','length','sendMessage','ai-chat-shortcuts-translate-not-found','activeConversation','chat','locale','1XFcOsY','removeFeedItem','setReasoning','get','plugins','translate','setPromptInputValue','235015mnOytZ','_shortcuts'];_0x3b3b=function(){return _0x1bd556;};return _0x3b3b();}import{AIChatUI as _0x21f2d2}from'../aichat/aichatui.js';import{ContextPlugin as _0x5ea8b5}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0x2559ac}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x4c7618}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const at=_0x4d1733(0x1e2);function _0x5945(_0x350115,_0x51afef){const _0x3b3bff=_0x3b3b();return _0x5945=function(_0x594554,_0x5d13a5){_0x594554=_0x594554-0x1a6;let _0x3f7efe=_0x3b3bff[_0x594554];return _0x3f7efe;},_0x5945(_0x350115,_0x51afef);}export var AIChatShortcutType;!function(_0x44c097){const _0x265720=_0x4d1733;_0x44c097[_0x265720(0x1d2)]=_0x265720(0x1b7),_0x44c097[_0x265720(0x1fd)]=_0x265720(0x1ee),_0x44c097[_0x265720(0x1ff)]=_0x265720(0x1be);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x5ea8b5{[_0x4d1733(0x1c1)];[_0x4d1733(0x200)];[_0x4d1733(0x1c5)];static get[_0x4d1733(0x1a8)](){return[_0x21f2d2];}static get[_0x4d1733(0x1ab)](){const _0x755d53=_0x4d1733;return _0x755d53(0x1f8);}static get[_0x4d1733(0x1b1)](){return!0x0;}static get[_0x4d1733(0x1db)](){return!0x0;}[_0x4d1733(0x1d6)](){const _0x3352da=_0x4d1733;this[_0x3352da(0x1c5)]=this[_0x3352da(0x1c6)][_0x3352da(0x1bd)][_0x3352da(0x1bc)](_0x21f2d2),this[_0x3352da(0x1c1)]=this[_0x3352da(0x1c6)][_0x3352da(0x1ed)][_0x3352da(0x1bc)](_0x3352da(0x1da))??[];const _0x10dbab=this[_0x3352da(0x1c6)][_0x3352da(0x1bd)][_0x3352da(0x1bc)](_0x3352da(0x1e1));this[_0x3352da(0x1c1)][_0x3352da(0x1b3)]&&(this[_0x3352da(0x1f9)](),this[_0x3352da(0x1c5)]['on'](_0x3352da(0x1ef),()=>{const _0x502fe2=_0x3352da;_0x10dbab[_0x502fe2(0x1b6)][_0x502fe2(0x1ec)]||this[_0x502fe2(0x1e7)]();}),this[_0x3352da(0x1a9)](_0x10dbab,_0x3352da(0x1f3),()=>{const _0x3da5b2=_0x3352da;this[_0x3da5b2(0x1d9)]();}));}[_0x4d1733(0x1f9)](){const _0x25bf58=_0x4d1733,_0xec6d02=Object[_0x25bf58(0x1e8)](AIChatShortcutType);this[_0x25bf58(0x1c1)][_0x25bf58(0x1cf)](_0x1c6923=>{const _0x48a8f6=_0x25bf58;let _0x1fffc1=!0x0;if(_0x1c6923['id']&&_0x1c6923[_0x48a8f6(0x1cc)]&&_0xec6d02[_0x48a8f6(0x1e6)](_0x1c6923[_0x48a8f6(0x1e4)])?_0x48a8f6(0x1b7)===_0x1c6923[_0x48a8f6(0x1e4)]&&(_0x1fffc1=_0x48a8f6(0x1cb)==typeof _0x1c6923[_0x48a8f6(0x1ac)]):_0x1fffc1=!0x1,!_0x1fffc1)throw new _0x4c7618(_0x48a8f6(0x1f5),this[_0x48a8f6(0x1c6)],{'shortcut':_0x1c6923});});}[_0x4d1733(0x1e7)](){const _0x5324ff=_0x4d1733,_0x41126f=this[_0x5324ff(0x1c6)][_0x5324ff(0x1bd)][_0x5324ff(0x1bc)](_0x21f2d2);this[_0x5324ff(0x200)]=new _0x2559ac(this[_0x5324ff(0x1c6)][_0x5324ff(0x1b8)],this[_0x5324ff(0x1c1)]),this[_0x5324ff(0x200)][_0x5324ff(0x1e3)](),_0x41126f[_0x5324ff(0x1d3)](this[_0x5324ff(0x200)][_0x5324ff(0x1f2)],at),this[_0x5324ff(0x200)]['on'](_0x5324ff(0x1ce),_0x3f6d15=>{const _0x2df1b6=_0x5324ff,_0x53f71d=_0x3f6d15[_0x2df1b6(0x1dd)]['id'];this[_0x2df1b6(0x1c4)](_0x53f71d);});}[_0x4d1733(0x1d9)](){const _0x2e6dba=_0x4d1733,_0x45cd7c=this[_0x2e6dba(0x1c6)][_0x2e6dba(0x1bd)][_0x2e6dba(0x1bc)](_0x21f2d2);_0x45cd7c[_0x2e6dba(0x1ae)](at)&&_0x45cd7c[_0x2e6dba(0x1ba)](at),this[_0x2e6dba(0x200)]?.[_0x2e6dba(0x1cd)]();}[_0x4d1733(0x1c4)](_0x1f074f){const _0x6c256f=_0x4d1733,_0x379475=this[_0x6c256f(0x1c1)][_0x6c256f(0x1d8)](_0x1daeb3=>_0x1daeb3['id']===_0x1f074f),_0x460ef4=_0x379475[_0x6c256f(0x1e4)];_0x6c256f(0x1b7)===_0x460ef4?this[_0x6c256f(0x1d1)](_0x379475):_0x6c256f(0x1ee)===_0x460ef4?_0x379475[_0x6c256f(0x1c7)]?this[_0x6c256f(0x1fb)](_0x379475):this[_0x6c256f(0x1f6)](_0x6c256f(0x1c2)):_0x6c256f(0x1be)===_0x460ef4&&(_0x379475[_0x6c256f(0x1fe)]?this[_0x6c256f(0x1f0)](_0x379475):this[_0x6c256f(0x1f6)](_0x6c256f(0x1be)));}[_0x4d1733(0x1f6)](_0x28aec2){const _0x3341a7=_0x4d1733;if(!this[_0x3341a7(0x1c6)][_0x3341a7(0x1bd)][_0x3341a7(0x1af)](_0x3341a7(0x1e5)))throw new _0x4c7618(_0x3341a7(0x1ea),this[_0x3341a7(0x1c6)],{'tabName':_0x28aec2});this[_0x3341a7(0x1c6)][_0x3341a7(0x1bd)][_0x3341a7(0x1bc)](_0x3341a7(0x1e5))[_0x3341a7(0x1aa)][_0x3341a7(0x1de)](_0x28aec2);}async[_0x4d1733(0x1d1)]({prompt:_0x2f3ceb,draftMode:_0x3717d4,useWebSearch:_0x2b3002=!0x1,useReasoning:_0x40a314=!0x1,model:_0x1a1a05}){const _0xd29c5c=_0x4d1733,_0x4bd527=this[_0xd29c5c(0x1c6)][_0xd29c5c(0x1bd)][_0xd29c5c(0x1bc)](_0xd29c5c(0x1ca)),_0x2737c2=this[_0xd29c5c(0x1c6)][_0xd29c5c(0x1bd)][_0xd29c5c(0x1bc)](_0xd29c5c(0x1e1)),_0x1b39e5=_0x2737c2[_0xd29c5c(0x1b6)];let _0x270d2c;_0x270d2c=_0x1a1a05?await _0x1b39e5[_0xd29c5c(0x1d4)][_0xd29c5c(0x1dc)](_0x1a1a05):await _0x1b39e5[_0xd29c5c(0x1d4)][_0xd29c5c(0x1c9)](),_0x270d2c&&await _0x1b39e5[_0xd29c5c(0x1c3)](_0x270d2c),_0x1b39e5[_0xd29c5c(0x1f1)](_0x2b3002),_0x1b39e5[_0xd29c5c(0x1bb)](_0x40a314),_0x2737c2[_0xd29c5c(0x1b0)](),_0x3717d4?(this[_0xd29c5c(0x1c5)][_0xd29c5c(0x1bf)](_0x2f3ceb),this[_0xd29c5c(0x1c5)][_0xd29c5c(0x201)](!0x0)):_0x4bd527[_0xd29c5c(0x1b4)]({'message':_0x2f3ceb});}[_0x4d1733(0x1fb)]({check:_0x1d7c5a,model:_0x2c96bf,prompt:_0x34e507,params:_0x98cf35}){const _0x3d1ffc=_0x4d1733;if(!this[_0x3d1ffc(0x1c6)][_0x3d1ffc(0x1bd)][_0x3d1ffc(0x1af)](_0x3d1ffc(0x1fa)))throw new _0x4c7618(_0x3d1ffc(0x1a6),this[_0x3d1ffc(0x1c6)]);this[_0x3d1ffc(0x1f6)](_0x3d1ffc(0x1c2));const _0x540624={'id':_0x1d7c5a,'isCustom':_0x3d1ffc(0x1df)===_0x1d7c5a};_0x2c96bf&&_0x34e507&&(_0x540624[_0x3d1ffc(0x1eb)]={'model':_0x2c96bf,'prompt':_0x34e507}),_0x98cf35&&(_0x540624[_0x3d1ffc(0x1fc)]=_0x98cf35),this[_0x3d1ffc(0x1c6)][_0x3d1ffc(0x1bd)][_0x3d1ffc(0x1bc)](_0x3d1ffc(0x1fa))[_0x3d1ffc(0x1d5)](_0x3d1ffc(0x1e9),_0x540624);}[_0x4d1733(0x1f0)]({language:_0x46d6b4}){const _0x547e8f=_0x4d1733;if(!this[_0x547e8f(0x1c6)][_0x547e8f(0x1bd)][_0x547e8f(0x1af)](_0x547e8f(0x1e0)))throw new _0x4c7618(_0x547e8f(0x1b5),this[_0x547e8f(0x1c6)]);this[_0x547e8f(0x1f6)](_0x547e8f(0x1be)),this[_0x547e8f(0x1c6)][_0x547e8f(0x1bd)][_0x547e8f(0x1bc)](_0x547e8f(0x1e0))[_0x547e8f(0x1d5)](_0x547e8f(0x1e9),{'id':_0x46d6b4,'args':{'language':_0x46d6b4}});}}
23
+ const _0x5d4ab5=_0xf3f9;(function(_0x41ea65,_0x5742d8){const _0x423787=_0xf3f9,_0x5a038c=_0x41ea65();while(!![]){try{const _0x164626=parseInt(_0x423787(0x137))/0x1+parseInt(_0x423787(0x119))/0x2*(-parseInt(_0x423787(0x13a))/0x3)+parseInt(_0x423787(0x132))/0x4+-parseInt(_0x423787(0x16b))/0x5*(-parseInt(_0x423787(0x12f))/0x6)+parseInt(_0x423787(0x12a))/0x7+parseInt(_0x423787(0x11a))/0x8+-parseInt(_0x423787(0x14f))/0x9;if(_0x164626===_0x5742d8)break;else _0x5a038c['push'](_0x5a038c['shift']());}catch(_0x771801){_0x5a038c['push'](_0x5a038c['shift']());}}}(_0x2b11,0x9d653));function _0xf3f9(_0x216ff7,_0x1398b7){const _0x2b11ab=_0x2b11();return _0xf3f9=function(_0xf3f9cb,_0x3e7cff){_0xf3f9cb=_0xf3f9cb-0x112;let _0x18d7bf=_0x2b11ab[_0xf3f9cb];return _0x18d7bf;},_0xf3f9(_0x216ff7,_0x1398b7);}import{AIChatUI as _0x2867d2}from'../aichat/aichatui.js';import{ContextPlugin as _0x1f60da}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0x4aff98}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x3d11ff}from'ckeditor5/src/utils.js';function _0x2b11(){const _0x231d65=['ai-chat-shortcuts-ai-tabs-not-found','getDefault','_runTranslateShortcut','5FCbzYN','AIChatShortcuts','listenTo','AIChatController','_shortcuts','init','removeFeedItem','runReviewCheck','setWebSearch','10848fnFhAA','4599568kfomrc','ai-chat-shortcuts-translate-not-found','_aiChatUI','execute','chat','focusPromptInput','language','type','addFeedItemCustomElement','render','conversationCreated','find','AIReviewModeUI','params','config','length','2352287hkFCou','AIChat','setReasoning','activateTab','AITranslateUI','5837742uZVAnx','_executeShortcut','translate','3579032UTXKaO','_runReviewShortcut','_switchTab','_injectShortcuts','pluginName','369837nurpGC','chat-shortcuts','get','93tsBanz','custom','ai.chat.shortcuts','CHAT','args','interactionStarted','_runChatShortcut','source','forEach','element','isOfficialPlugin','review','isFromHistory','hasFeedItem','isPremiumPlugin','locale','chatModels','_shortcutsView','addCurrentDocumentToChatContext','ai-chat-shortcuts-review-mode-not-found','plugins','21021336vQZwhS','context','destroy','values','REVIEW','string','activeConversation','AITabs','ai-chat-shortcuts-invalid-config','sendMessage','prompt','getModel','setModel','includes','reviewMode','check','setPromptInputValue','_removeShortcuts','TRANSLATE','_validateShortcuts','label','requires','has','view','fire'];_0x2b11=function(){return _0x231d65;};return _0x2b11();}import'../../theme/aichatshortcuts/aichatshortcuts.css';const Ut=_0x5d4ab5(0x138);export var AIChatShortcutType;!function(_0x4aee14){const _0x4c82b6=_0x5d4ab5;_0x4aee14[_0x4c82b6(0x13d)]=_0x4c82b6(0x11e),_0x4aee14[_0x4c82b6(0x153)]=_0x4c82b6(0x145),_0x4aee14[_0x4c82b6(0x161)]=_0x4c82b6(0x131);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x1f60da{[_0x5d4ab5(0x114)];[_0x5d4ab5(0x14b)];[_0x5d4ab5(0x11c)];static get[_0x5d4ab5(0x164)](){return[_0x2867d2];}static get[_0x5d4ab5(0x136)](){const _0x3800c9=_0x5d4ab5;return _0x3800c9(0x16c);}static get[_0x5d4ab5(0x144)](){return!0x0;}static get[_0x5d4ab5(0x148)](){return!0x0;}[_0x5d4ab5(0x115)](){const _0x2866ed=_0x5d4ab5;this[_0x2866ed(0x11c)]=this[_0x2866ed(0x150)][_0x2866ed(0x14e)][_0x2866ed(0x139)](_0x2867d2),this[_0x2866ed(0x114)]=this[_0x2866ed(0x150)][_0x2866ed(0x128)][_0x2866ed(0x139)](_0x2866ed(0x13c))??[];const _0x3e93e4=this[_0x2866ed(0x150)][_0x2866ed(0x14e)][_0x2866ed(0x139)](_0x2866ed(0x113));this[_0x2866ed(0x114)][_0x2866ed(0x129)]&&(this[_0x2866ed(0x162)](),this[_0x2866ed(0x11c)]['on'](_0x2866ed(0x124),()=>{const _0x10d5a8=_0x2866ed;_0x3e93e4[_0x10d5a8(0x155)][_0x10d5a8(0x146)]||this[_0x10d5a8(0x135)]();}),this[_0x2866ed(0x112)](_0x3e93e4,_0x2866ed(0x13f),()=>{const _0x55d1a8=_0x2866ed;this[_0x55d1a8(0x160)]();}));}[_0x5d4ab5(0x162)](){const _0x4bf2b6=_0x5d4ab5,_0x23f2b3=Object[_0x4bf2b6(0x152)](AIChatShortcutType);this[_0x4bf2b6(0x114)][_0x4bf2b6(0x142)](_0x2e6914=>{const _0x361b89=_0x4bf2b6;let _0x2bcbbf=!0x0;if(_0x2e6914['id']&&_0x2e6914[_0x361b89(0x163)]&&_0x23f2b3[_0x361b89(0x15c)](_0x2e6914[_0x361b89(0x121)])?_0x361b89(0x11e)===_0x2e6914[_0x361b89(0x121)]&&(_0x2bcbbf=_0x361b89(0x154)==typeof _0x2e6914[_0x361b89(0x159)]):_0x2bcbbf=!0x1,!_0x2bcbbf)throw new _0x3d11ff(_0x361b89(0x157),this[_0x361b89(0x150)],{'shortcut':_0x2e6914});});}[_0x5d4ab5(0x135)](){const _0x5af680=_0x5d4ab5,_0x5ed510=this[_0x5af680(0x150)][_0x5af680(0x14e)][_0x5af680(0x139)](_0x2867d2);this[_0x5af680(0x14b)]=new _0x4aff98(this[_0x5af680(0x150)][_0x5af680(0x149)],this[_0x5af680(0x114)]),this[_0x5af680(0x14b)][_0x5af680(0x123)](),_0x5ed510[_0x5af680(0x122)](this[_0x5af680(0x14b)][_0x5af680(0x143)],Ut),this[_0x5af680(0x14b)]['on'](_0x5af680(0x11d),_0x64cdba=>{const _0x49c95c=_0x5af680,_0x17978e=_0x64cdba[_0x49c95c(0x141)]['id'];this[_0x49c95c(0x130)](_0x17978e);});}[_0x5d4ab5(0x160)](){const _0x5778c0=_0x5d4ab5,_0x511351=this[_0x5778c0(0x150)][_0x5778c0(0x14e)][_0x5778c0(0x139)](_0x2867d2);_0x511351[_0x5778c0(0x147)](Ut)&&_0x511351[_0x5778c0(0x116)](Ut),this[_0x5778c0(0x14b)]?.[_0x5778c0(0x151)]();}[_0x5d4ab5(0x130)](_0xbfc5f3){const _0x6acb6e=_0x5d4ab5,_0x559b76=this[_0x6acb6e(0x114)][_0x6acb6e(0x125)](_0x45c907=>_0x45c907['id']===_0xbfc5f3),_0x180cad=_0x559b76[_0x6acb6e(0x121)];_0x6acb6e(0x11e)===_0x180cad?this[_0x6acb6e(0x140)](_0x559b76):_0x6acb6e(0x145)===_0x180cad?_0x559b76[_0x6acb6e(0x15e)]?this[_0x6acb6e(0x133)](_0x559b76):this[_0x6acb6e(0x134)](_0x6acb6e(0x15d)):_0x6acb6e(0x131)===_0x180cad&&(_0x559b76[_0x6acb6e(0x120)]?this[_0x6acb6e(0x16a)](_0x559b76):this[_0x6acb6e(0x134)](_0x6acb6e(0x131)));}[_0x5d4ab5(0x134)](_0x4e7b0a){const _0x3fe613=_0x5d4ab5;if(!this[_0x3fe613(0x150)][_0x3fe613(0x14e)][_0x3fe613(0x165)](_0x3fe613(0x156)))throw new _0x3d11ff(_0x3fe613(0x168),this[_0x3fe613(0x150)],{'tabName':_0x4e7b0a});this[_0x3fe613(0x150)][_0x3fe613(0x14e)][_0x3fe613(0x139)](_0x3fe613(0x156))[_0x3fe613(0x166)][_0x3fe613(0x12d)](_0x4e7b0a);}async[_0x5d4ab5(0x140)]({prompt:_0x2c90ae,draftMode:_0x5a3930,useWebSearch:_0x251d83=!0x1,useReasoning:_0x209a11=!0x1,model:_0x2ee2aa}){const _0x5292fd=_0x5d4ab5,_0x3bc69d=this[_0x5292fd(0x150)][_0x5292fd(0x14e)][_0x5292fd(0x139)](_0x5292fd(0x12b)),_0x1d5c67=this[_0x5292fd(0x150)][_0x5292fd(0x14e)][_0x5292fd(0x139)](_0x5292fd(0x113)),_0x3dafe3=_0x1d5c67[_0x5292fd(0x155)];let _0x2ef363;_0x2ef363=_0x2ee2aa?await _0x3dafe3[_0x5292fd(0x14a)][_0x5292fd(0x15a)](_0x2ee2aa):await _0x3dafe3[_0x5292fd(0x14a)][_0x5292fd(0x169)](),_0x2ef363&&await _0x3dafe3[_0x5292fd(0x15b)](_0x2ef363),_0x3dafe3[_0x5292fd(0x118)](_0x251d83),_0x3dafe3[_0x5292fd(0x12c)](_0x209a11),_0x1d5c67[_0x5292fd(0x14c)](),_0x5a3930?(this[_0x5292fd(0x11c)][_0x5292fd(0x15f)](_0x2c90ae),this[_0x5292fd(0x11c)][_0x5292fd(0x11f)](!0x0)):_0x3bc69d[_0x5292fd(0x158)]({'message':_0x2c90ae});}[_0x5d4ab5(0x133)]({check:_0x272f73,model:_0x2edf8c,prompt:_0x45cfed,params:_0x5b464a}){const _0x9bf382=_0x5d4ab5;if(!this[_0x9bf382(0x150)][_0x9bf382(0x14e)][_0x9bf382(0x165)](_0x9bf382(0x126)))throw new _0x3d11ff(_0x9bf382(0x14d),this[_0x9bf382(0x150)]);this[_0x9bf382(0x134)](_0x9bf382(0x15d));const _0x334a3d={'id':_0x272f73,'isCustom':_0x9bf382(0x13b)===_0x272f73};_0x2edf8c&&_0x45cfed&&(_0x334a3d[_0x9bf382(0x13e)]={'model':_0x2edf8c,'prompt':_0x45cfed}),_0x5b464a&&(_0x334a3d[_0x9bf382(0x127)]=_0x5b464a),this[_0x9bf382(0x150)][_0x9bf382(0x14e)][_0x9bf382(0x139)](_0x9bf382(0x126))[_0x9bf382(0x167)](_0x9bf382(0x117),_0x334a3d);}[_0x5d4ab5(0x16a)]({language:_0xe9b917}){const _0x297ec5=_0x5d4ab5;if(!this[_0x297ec5(0x150)][_0x297ec5(0x14e)][_0x297ec5(0x165)](_0x297ec5(0x12e)))throw new _0x3d11ff(_0x297ec5(0x11b),this[_0x297ec5(0x150)]);this[_0x297ec5(0x134)](_0x297ec5(0x131)),this[_0x297ec5(0x150)][_0x297ec5(0x14e)][_0x297ec5(0x139)](_0x297ec5(0x12e))[_0x297ec5(0x167)](_0x297ec5(0x117),{'id':_0xe9b917,'args':{'language':_0xe9b917}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4e78(_0x2256a1,_0x27fe68){const _0x1a0d48=_0x1a0d();return _0x4e78=function(_0x4e7804,_0x4b7b2a){_0x4e7804=_0x4e7804-0x1ef;let _0x432313=_0x1a0d48[_0x4e7804];return _0x432313;},_0x4e78(_0x2256a1,_0x27fe68);}const _0x531c1d=_0x4e78;(function(_0x31759c,_0x1cd3d7){const _0xf8500b=_0x4e78,_0x1d0de8=_0x31759c();while(!![]){try{const _0x1d54bd=-parseInt(_0xf8500b(0x1f6))/0x1*(-parseInt(_0xf8500b(0x1f8))/0x2)+parseInt(_0xf8500b(0x201))/0x3+parseInt(_0xf8500b(0x1f0))/0x4+parseInt(_0xf8500b(0x1fc))/0x5*(parseInt(_0xf8500b(0x200))/0x6)+parseInt(_0xf8500b(0x1fd))/0x7*(-parseInt(_0xf8500b(0x1ef))/0x8)+parseInt(_0xf8500b(0x1f5))/0x9*(parseInt(_0xf8500b(0x1fa))/0xa)+-parseInt(_0xf8500b(0x1f4))/0xb*(parseInt(_0xf8500b(0x1ff))/0xc);if(_0x1d54bd===_0x1cd3d7)break;else _0x1d0de8['push'](_0x1d0de8['shift']());}catch(_0x4300e0){_0x1d0de8['push'](_0x1d0de8['shift']());}}}(_0x1a0d,0x4074b));import{ListItemView as _0xcd6b4b,ListView as _0x9b31de,View as _0x31597a}from'ckeditor5/src/ui.js';function _0x1a0d(){const _0xf1f068=['10fMnRqt','707mViXsd','delegate','3915708tlhpaA','947184OGNrMr','642765BALZsJ','locale','listView','items','addMany','execute','3392iMvbjI','1376420jeqPTZ','map','children','ck-ai-chat-shortcuts','33EvkNBv','7722yyazOx','11929CxzIez','setTemplate','4glVnkp','add','4520AmokAx','div'];_0x1a0d=function(){return _0xf1f068;};return _0x1a0d();}import{AIChatShortcutView as _0x125ccb}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x31597a{[_0x531c1d(0x203)];constructor(_0x2c2d9f,_0x55ec48){const _0x42d5f1=_0x531c1d;super(_0x2c2d9f);const _0x382983=_0x55ec48[_0x42d5f1(0x1f1)](_0x443590=>{const _0x1addf7=_0x42d5f1,_0x26afbd=new _0xcd6b4b(this[_0x1addf7(0x202)]),_0x1a99b9=new _0x125ccb(this[_0x1addf7(0x202)],_0x443590);return _0x26afbd[_0x1addf7(0x1f2)][_0x1addf7(0x1f9)](_0x1a99b9),_0x1a99b9[_0x1addf7(0x1fe)](_0x1addf7(0x206))['to'](this),_0x26afbd;});this[_0x42d5f1(0x203)]=new _0x9b31de(this[_0x42d5f1(0x202)]),this[_0x42d5f1(0x203)][_0x42d5f1(0x204)][_0x42d5f1(0x205)](_0x382983),this[_0x42d5f1(0x1f7)]({'tag':_0x42d5f1(0x1fb),'attributes':{'class':['ck',_0x42d5f1(0x1f3)]},'children':[this[_0x42d5f1(0x203)]]});}}
23
+ function _0x14c7(_0x3a3239,_0x4efe8c){const _0x45a639=_0x45a6();return _0x14c7=function(_0x14c7f5,_0x5b29a8){_0x14c7f5=_0x14c7f5-0x64;let _0x313db=_0x45a639[_0x14c7f5];return _0x313db;},_0x14c7(_0x3a3239,_0x4efe8c);}const _0x3b5e01=_0x14c7;(function(_0x5f3ef6,_0x5ef790){const _0x546393=_0x14c7,_0xd15ba3=_0x5f3ef6();while(!![]){try{const _0x3e2ba6=parseInt(_0x546393(0x67))/0x1*(-parseInt(_0x546393(0x76))/0x2)+-parseInt(_0x546393(0x69))/0x3*(-parseInt(_0x546393(0x6e))/0x4)+-parseInt(_0x546393(0x71))/0x5*(-parseInt(_0x546393(0x66))/0x6)+parseInt(_0x546393(0x64))/0x7+parseInt(_0x546393(0x6c))/0x8*(parseInt(_0x546393(0x6f))/0x9)+-parseInt(_0x546393(0x75))/0xa+-parseInt(_0x546393(0x78))/0xb;if(_0x3e2ba6===_0x5ef790)break;else _0xd15ba3['push'](_0xd15ba3['shift']());}catch(_0x2b1e24){_0xd15ba3['push'](_0xd15ba3['shift']());}}}(_0x45a6,0xf02e5));function _0x45a6(){const _0x2b1380=['9rrKepG','locale','606335jXpBnJ','execute','delegate','addMany','3448550kpaLkG','3878BrgwXV','children','52756495ODbDkI','setTemplate','listView','13040510lAvzAq','ck-ai-chat-shortcuts','90jdCPxJ','201kicUMI','items','2913DDgvuP','map','add','12934344qWkAFB','div','5008MKIJzC'];_0x45a6=function(){return _0x2b1380;};return _0x45a6();}import{ListItemView as _0x5afa39,ListView as _0x34e84a,View as _0x253dbc}from'ckeditor5/src/ui.js';import{AIChatShortcutView as _0x290ca7}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x253dbc{[_0x3b5e01(0x7a)];constructor(_0x24f120,_0x50ac77){const _0x543d50=_0x3b5e01;super(_0x24f120);const _0x1751fd=_0x50ac77[_0x543d50(0x6a)](_0x12b6dc=>{const _0x3940b6=_0x543d50,_0x4622da=new _0x5afa39(this[_0x3940b6(0x70)]),_0x415a31=new _0x290ca7(this[_0x3940b6(0x70)],_0x12b6dc);return _0x4622da[_0x3940b6(0x77)][_0x3940b6(0x6b)](_0x415a31),_0x415a31[_0x3940b6(0x73)](_0x3940b6(0x72))['to'](this),_0x4622da;});this[_0x543d50(0x7a)]=new _0x34e84a(this[_0x543d50(0x70)]),this[_0x543d50(0x7a)][_0x543d50(0x68)][_0x543d50(0x74)](_0x1751fd),this[_0x543d50(0x79)]({'tag':_0x543d50(0x6d),'attributes':{'class':['ck',_0x543d50(0x65)]},'children':[this[_0x543d50(0x7a)]]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x3957b1,_0x36afaf){const _0x3643a3=_0xb701,_0x322f5a=_0x3957b1();while(!![]){try{const _0x306496=-parseInt(_0x3643a3(0x16d))/0x1+parseInt(_0x3643a3(0x166))/0x2*(parseInt(_0x3643a3(0x15d))/0x3)+parseInt(_0x3643a3(0x15b))/0x4+parseInt(_0x3643a3(0x165))/0x5*(-parseInt(_0x3643a3(0x168))/0x6)+parseInt(_0x3643a3(0x161))/0x7*(-parseInt(_0x3643a3(0x160))/0x8)+-parseInt(_0x3643a3(0x16c))/0x9*(-parseInt(_0x3643a3(0x164))/0xa)+parseInt(_0x3643a3(0x15c))/0xb;if(_0x306496===_0x36afaf)break;else _0x322f5a['push'](_0x322f5a['shift']());}catch(_0x3a15b4){_0x322f5a['push'](_0x322f5a['shift']());}}}(_0x706d,0x1c0c3));import{ButtonView as _0x2c88bd}from'ckeditor5/src/ui.js';function _0xb701(_0x3ca8a4,_0x1ed098){const _0x706dbc=_0x706d();return _0xb701=function(_0xb701ec,_0x3779da){_0xb701ec=_0xb701ec-0x15b;let _0x4d9fb5=_0x706dbc[_0xb701ec];return _0x4d9fb5;},_0xb701(_0x3ca8a4,_0x1ed098);}import{IconAIChat as _0x1c66b9,IconAIReview as _0x280931,IconAITranslate as _0x5e473f}from'@ckeditor/ckeditor5-icons';export class AIChatShortcutView extends _0x2c88bd{['id'];constructor(_0x26dc52,_0x218ba3){const _0xbfe1b7=_0xb701;super(_0x26dc52);const {id:_0x18f5dc,type:_0x4abd1e,icon:_0x4e2a54}=_0x218ba3;this['id']=_0x18f5dc,this[_0xbfe1b7(0x15e)]({'label':_0x218ba3[_0xbfe1b7(0x163)],'withText':!0x0,'class':_0xbfe1b7(0x15f)}),this[_0xbfe1b7(0x162)]({'attributes':{'data-cke-ai-shortcut-id':_0x218ba3['id']}}),_0x4e2a54?this[_0xbfe1b7(0x167)]=_0x4e2a54:_0xbfe1b7(0x16a)===_0x4abd1e?this[_0xbfe1b7(0x167)]=_0x1c66b9:_0xbfe1b7(0x169)===_0x4abd1e?this[_0xbfe1b7(0x167)]=_0x280931:_0xbfe1b7(0x16b)===_0x4abd1e&&(this[_0xbfe1b7(0x167)]=_0x5e473f);}}function _0x706d(){const _0x5a4ecc=['ck-ai-chat-shortcut','8OkamKm','396571XwMvgh','extendTemplate','label','57430IqFaqc','35alDGWe','2yOFeUl','icon','171144ybmWro','review','chat','translate','18cbYvQo','106311AaUaVQ','577476EIiqOa','1063744tppiyF','674868kJvJJP','set'];_0x706d=function(){return _0x5a4ecc;};return _0x706d();}
23
+ (function(_0xb6bb1c,_0x5c4bc0){const _0x443620=_0x3211,_0x108b15=_0xb6bb1c();while(!![]){try{const _0x395970=parseInt(_0x443620(0x18f))/0x1*(parseInt(_0x443620(0x181))/0x2)+-parseInt(_0x443620(0x182))/0x3+-parseInt(_0x443620(0x189))/0x4+-parseInt(_0x443620(0x185))/0x5*(parseInt(_0x443620(0x188))/0x6)+parseInt(_0x443620(0x180))/0x7*(parseInt(_0x443620(0x184))/0x8)+-parseInt(_0x443620(0x18b))/0x9*(-parseInt(_0x443620(0x186))/0xa)+parseInt(_0x443620(0x183))/0xb;if(_0x395970===_0x5c4bc0)break;else _0x108b15['push'](_0x108b15['shift']());}catch(_0x509ca8){_0x108b15['push'](_0x108b15['shift']());}}}(_0x4f15,0x72097));function _0x3211(_0x551708,_0x1f26a7){const _0x4f15e1=_0x4f15();return _0x3211=function(_0x32112b,_0x4d9798){_0x32112b=_0x32112b-0x180;let _0x129f93=_0x4f15e1[_0x32112b];return _0x129f93;},_0x3211(_0x551708,_0x1f26a7);}import{ButtonView as _0x124a9c}from'ckeditor5/src/ui.js';function _0x4f15(){const _0x2997f3=['ck-ai-chat-shortcut','4293653HcsKkm','39154lRoHce','65439XQZEku','4874716NyXqIU','8hfbdfo','5BBegVu','858730usGNLU','review','4424046hiWEvF','978084VBPJrV','chat','27ACahOC','extendTemplate','translate','set','8wZTTSi','icon','label'];_0x4f15=function(){return _0x2997f3;};return _0x4f15();}import{IconAIChat as _0xe5d0e3,IconAIReview as _0x4b4cb9,IconAITranslate as _0x399876}from'@ckeditor/ckeditor5-icons';export class AIChatShortcutView extends _0x124a9c{['id'];constructor(_0x33aff3,_0x26a193){const _0x61208c=_0x3211;super(_0x33aff3);const {id:_0x1a93e3,type:_0x3d6804,icon:_0x2310fa}=_0x26a193;this['id']=_0x1a93e3,this[_0x61208c(0x18e)]({'label':_0x26a193[_0x61208c(0x191)],'withText':!0x0,'class':_0x61208c(0x192)}),this[_0x61208c(0x18c)]({'attributes':{'data-cke-ai-shortcut-id':_0x26a193['id']}}),_0x2310fa?this[_0x61208c(0x190)]=_0x2310fa:_0x61208c(0x18a)===_0x3d6804?this[_0x61208c(0x190)]=_0xe5d0e3:_0x61208c(0x187)===_0x3d6804?this[_0x61208c(0x190)]=_0x4b4cb9:_0x61208c(0x18d)===_0x3d6804&&(this[_0x61208c(0x190)]=_0x399876);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2e17dc=_0x5c4a;(function(_0x42bb5d,_0xc3098d){const _0x502c14=_0x5c4a,_0x29cb20=_0x42bb5d();while(!![]){try{const _0x1b8145=parseInt(_0x502c14(0x158))/0x1+-parseInt(_0x502c14(0x17f))/0x2+parseInt(_0x502c14(0x13e))/0x3*(parseInt(_0x502c14(0x141))/0x4)+-parseInt(_0x502c14(0x177))/0x5+parseInt(_0x502c14(0x127))/0x6+parseInt(_0x502c14(0x11e))/0x7*(-parseInt(_0x502c14(0x12a))/0x8)+-parseInt(_0x502c14(0x110))/0x9*(-parseInt(_0x502c14(0xfe))/0xa);if(_0x1b8145===_0xc3098d)break;else _0x29cb20['push'](_0x29cb20['shift']());}catch(_0x76ee11){_0x29cb20['push'](_0x29cb20['shift']());}}}(_0x14f1,0xeff41));import{createParser as _0x5a1401}from'eventsource-parser';import{ContextPlugin as _0x5c4c8b}from'ckeditor5/src/core.js';function _0x14f1(){const _0x4de83a=['desc','/conversations/','fix-grammar','/actions/custom/calls/','/messages','fetchConversations','make-shorter','feed','2297169peHqFl','improve-writing','language','decode','upsertCustomAIActionRating','IMPROVE_WRITING','application/json','ai.serviceUrl','deleteFile','311646Udjdaf','context','excludeEmpty','8Qjgufh','queryAssistant','token','false','statusText','make-tone-formal','group','fetchConversationMessages','requires','name','file','deleteDocument','traceId','/web-resources','_sendApiRequest','message','MAKE_TONE_CASUAL','/web-resources/','updateConversation','/files','4914993seOsiL','/actions/system/','fetchDocument','4dtwqDz','ai-missing-token','uploadFile','/documents/','startConversation','modificationId','/messages/','upsertAIActionRating','stringify','/models/1?','AbortError','upsertAIReviewRating','CONTINUE','code','body','/reviews/custom/calls/','fetchConversation','attributes','callCustomReview','limit','createdAt','ai-request-aborted','init','1344743kFTzNt','/reviews/system/','uploadDocument','getReader','/actions/custom/calls','text','ai-request-failed','/conversations','catch','parse','json','uploadUrl','upsertAIChatRating','MAKE_SHORTER','config','PATCH','order','isPremiumPlugin','value','then','_getStreamReader','upsertCustomAIReviewRating','request','reset','_token','FIX_GRAMMAR','abortController','pluginName','DELETE','push','make-tone-casual','7750325koNCsH','positiveCount','read','MAKE_LONGER','POST','plugins','define','signal','3596280moLZxr','append','/files/','_handleError','Bearer\x20','/conversations?','continue','status','translate','true','sortBy','releaseLock','Content-Type','/documents','isOfficialPlugin','items','callSystemReview','_apiUrl','totalCount','/reviews/custom/calls','10RRxalN','100','length','TRANSLATE','https://ai.cke-cs.com/v1','data','executeAction','/calls','deleteWebResource','PUT','/calls/','/ratings','_decoder','deleteConversation','AIConnector','GET','CloudServices','toString','14617854DWuyjz','MAKE_TONE_FORMAL','get','executeCustomAction','getModels','make-longer'];_0x14f1=function(){return _0x4de83a;};return _0x14f1();}function _0x5c4a(_0x332bfc,_0x569e80){const _0x14f115=_0x14f1();return _0x5c4a=function(_0x5c4acd,_0x2f0543){_0x5c4acd=_0x5c4acd-0xfb;let _0x29b808=_0x14f115[_0x5c4acd];return _0x29b808;},_0x5c4a(_0x332bfc,_0x569e80);}import{CKEditorError as _0x1a9217}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x3d2748){const _0xc7133=_0x5c4a;_0x3d2748[_0xc7133(0x14d)]=_0xc7133(0x185),_0x3d2748[_0xc7133(0x171)]=_0xc7133(0x118),_0x3d2748[_0xc7133(0x123)]=_0xc7133(0x11f),_0x3d2748[_0xc7133(0x17a)]=_0xc7133(0x115),_0x3d2748[_0xc7133(0x165)]=_0xc7133(0x11c),_0x3d2748[_0xc7133(0x13a)]=_0xc7133(0x176),_0x3d2748[_0xc7133(0x111)]=_0xc7133(0x12f),_0x3d2748[_0xc7133(0x101)]=_0xc7133(0x187);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x5c4c8b{[_0x2e17dc(0xfb)];[_0x2e17dc(0x170)];[_0x2e17dc(0x10a)];static get[_0x2e17dc(0x132)](){const _0x3b5aa0=_0x2e17dc;return[_0x3b5aa0(0x10e)];}static get[_0x2e17dc(0x173)](){const _0x311cf=_0x2e17dc;return _0x311cf(0x10c);}static get[_0x2e17dc(0x18d)](){return!0x0;}static get[_0x2e17dc(0x169)](){return!0x0;}constructor(_0x115638){const _0x293053=_0x2e17dc;super(_0x115638),this[_0x293053(0x128)][_0x293053(0x166)][_0x293053(0x17d)](_0x293053(0x125),_0x293053(0x102)),this[_0x293053(0xfb)]=this[_0x293053(0x128)][_0x293053(0x166)][_0x293053(0x112)](_0x293053(0x125)),this[_0x293053(0x170)]=null,this[_0x293053(0x10a)]=new TextDecoder();}[_0x2e17dc(0x157)](){const _0x5721eb=_0x2e17dc,_0x207860=this[_0x5721eb(0x128)][_0x5721eb(0x17c)][_0x5721eb(0x112)](_0x5721eb(0x10e));if(!_0x207860[_0x5721eb(0x12c)])throw new _0x1a9217(_0x5721eb(0x142),this);this[_0x5721eb(0x170)]=_0x207860[_0x5721eb(0x12c)];}[_0x2e17dc(0x145)](_0x4f64a5,_0x5a9528){const _0x47e003=_0x2e17dc,_0x3a576d=this[_0x47e003(0x138)](_0x47e003(0x15f),_0x47e003(0x17b),{'id':_0x4f64a5,'group':_0x5a9528});return{'getConversation':async()=>(await _0x3a576d[_0x47e003(0x16e)])[_0x47e003(0x162)](),'abortController':_0x3a576d[_0x47e003(0x172)]};}[_0x2e17dc(0x12b)]({message:_0x2ae3ea,conversationId:_0x10696c,parts:_0x473b67,capabilities:_0x40aa12,model:_0x58cb3d,attributes:_0x4c6135}){const _0x4a701a=_0x2e17dc,_0x1d7248={'prompt':_0x2ae3ea,'content':_0x473b67,'model':_0x58cb3d,..._0x40aa12&&{'capabilities':_0x40aa12},..._0x4c6135&&{'attributes':_0x4c6135}},_0xb3593e=this[_0x4a701a(0x138)](_0x4a701a(0x117)+_0x10696c+_0x4a701a(0x11a),_0x4a701a(0x17b),_0x1d7248);return{'getStream':async()=>{const _0x32fefb=_0x4a701a,_0x29e9d0=(await _0xb3593e[_0x32fefb(0x16e)])[_0x32fefb(0x14f)];return this[_0x32fefb(0x16c)](_0x29e9d0);},'abortController':_0xb3593e[_0x4a701a(0x172)]};}[_0x2e17dc(0x113)]({content:_0x41e5cd,message:_0x3822e3,model:_0x497db6,outputFormat:_0xa6d917}){const _0x1c210e=_0x2e17dc,_0x143525={'content':[{'type':_0x1c210e(0x15d),'content':_0x41e5cd}],'prompt':_0x3822e3,'model':_0x497db6,'outputFormat':_0xa6d917},_0x200359=this[_0x1c210e(0x138)](_0x1c210e(0x15c),_0x1c210e(0x17b),_0x143525);return{'getStream':async()=>{const _0x39443c=_0x1c210e,_0x2148ac=(await _0x200359[_0x39443c(0x16e)])[_0x39443c(0x14f)];return this[_0x39443c(0x16c)](_0x2148ac);},'abortController':_0x200359[_0x1c210e(0x172)]};}[_0x2e17dc(0x104)]({actionName:_0xc5b367,content:_0x2d485d,args:_0x4277cb}){const _0x171f09=_0x2e17dc,_0x37cd12={'content':[{'type':_0x171f09(0x15d),'content':_0x2d485d}],'args':_0x4277cb},_0x8b0a9b=this[_0x171f09(0x138)](_0x171f09(0x13f)+_0xc5b367+_0x171f09(0x105),_0x171f09(0x17b),_0x37cd12);return{'getStream':async()=>{const _0x358d98=_0x171f09,_0x196615=(await _0x8b0a9b[_0x358d98(0x16e)])[_0x358d98(0x14f)];return this[_0x358d98(0x16c)](_0x196615);},'abortController':_0x8b0a9b[_0x171f09(0x172)]};}[_0x2e17dc(0x143)](_0x4e554d,_0xcea1e8,_0x2525ed){const _0x345df9=_0x2e17dc,_0xa3c32=new FormData();_0xa3c32[_0x345df9(0x180)](_0x345df9(0x134),_0xcea1e8,_0xcea1e8[_0x345df9(0x133)]),_0x2525ed&&_0xa3c32[_0x345df9(0x180)](_0x345df9(0x152),JSON[_0x345df9(0x149)](_0x2525ed));const _0x5230ad=this[_0x345df9(0x138)](_0x345df9(0x117)+_0x4e554d+_0x345df9(0x13d),_0x345df9(0x17b),_0xa3c32);return{'getId':async()=>(await _0x5230ad[_0x345df9(0x16e)])[_0x345df9(0x162)](),'abortController':_0x5230ad[_0x345df9(0x172)]};}[_0x2e17dc(0x140)](_0x3cbb00,_0x269fc3){const _0x3356e7=_0x2e17dc,_0x368286=this[_0x3356e7(0x138)](_0x3356e7(0x117)+_0x3cbb00+_0x3356e7(0x144)+_0x269fc3,_0x3356e7(0x10d));return{'getDocument':async()=>(await _0x368286[_0x3356e7(0x16e)])[_0x3356e7(0x162)](),'abortController':_0x368286[_0x3356e7(0x172)]};}[_0x2e17dc(0x15a)](_0x532343,_0xb53f47,_0x125a81){const _0x2711d6=_0x2e17dc,_0x258e3b={'content':_0xb53f47};_0x125a81&&(_0x258e3b[_0x2711d6(0x152)]=_0x125a81);const _0xa66998=this[_0x2711d6(0x138)](_0x2711d6(0x117)+_0x532343+_0x2711d6(0x18c),_0x2711d6(0x17b),_0x258e3b);return{'getId':async()=>(await _0xa66998[_0x2711d6(0x16e)])[_0x2711d6(0x162)](),'abortController':_0xa66998[_0x2711d6(0x172)]};}[_0x2e17dc(0x11b)](_0x39561a,_0x148b29={}){const _0x42562c=_0x2e17dc,_0x2162a5=new URLSearchParams();_0x2162a5[_0x42562c(0x180)](_0x42562c(0x130),_0x39561a),_0x2162a5[_0x42562c(0x180)](_0x42562c(0x129),!0x1!==_0x148b29[_0x42562c(0x129)]?_0x42562c(0x188):_0x42562c(0x12d)),_0x2162a5[_0x42562c(0x180)](_0x42562c(0x154),_0x148b29[_0x42562c(0x154)]?_0x148b29[_0x42562c(0x154)][_0x42562c(0x10f)]():_0x42562c(0xff)),_0x2162a5[_0x42562c(0x180)](_0x42562c(0x189),_0x148b29[_0x42562c(0x189)]?_0x148b29[_0x42562c(0x189)]:_0x42562c(0x155)),_0x2162a5[_0x42562c(0x180)](_0x42562c(0x168),_0x148b29[_0x42562c(0x168)]?_0x148b29[_0x42562c(0x168)]:_0x42562c(0x116));const _0x3fd376=this[_0x42562c(0x138)](_0x42562c(0x184)+_0x2162a5[_0x42562c(0x10f)](),_0x42562c(0x10d));return{'getConversations':async()=>{const _0x20d0c3=_0x42562c,_0x4e3d37=await _0x3fd376[_0x20d0c3(0x16e)];return(await _0x4e3d37[_0x20d0c3(0x162)]())[_0x20d0c3(0x18e)];},'abortController':_0x3fd376[_0x42562c(0x172)]};}[_0x2e17dc(0x10b)](_0x5b8b58){const _0x5ce209=_0x2e17dc,_0x77c310=this[_0x5ce209(0x138)](_0x5ce209(0x117)+_0x5b8b58,_0x5ce209(0x174));return{'execute':async()=>{const _0x1e4112=_0x5ce209;await _0x77c310[_0x1e4112(0x16e)];},'abortController':_0x77c310[_0x5ce209(0x172)]};}[_0x2e17dc(0x13c)](_0x5e3c4f,_0x39aa53){const _0x41b9e2=_0x2e17dc,_0x2fe183=this[_0x41b9e2(0x138)](_0x41b9e2(0x117)+_0x5e3c4f,_0x41b9e2(0x167),_0x39aa53);return{'getResult':async()=>(await _0x2fe183[_0x41b9e2(0x16e)],_0x39aa53),'abortController':_0x2fe183[_0x41b9e2(0x172)]};}[_0x2e17dc(0x151)](_0x1ed328){const _0x423973=_0x2e17dc,_0x16913a=this[_0x423973(0x138)](_0x423973(0x117)+_0x1ed328,_0x423973(0x10d));return{'getConversation':async()=>(await _0x16913a[_0x423973(0x16e)])[_0x423973(0x162)](),'abortController':_0x16913a[_0x423973(0x172)]};}[_0x2e17dc(0x131)](_0x10f45a){const _0x479951=_0x2e17dc,_0xfe315c=this[_0x479951(0x138)](_0x479951(0x117)+_0x10f45a+_0x479951(0x11a),_0x479951(0x10d));return{'getMessages':async()=>{const _0x566b15=_0x479951,_0x489c62=await _0xfe315c[_0x566b15(0x16e)];return(await _0x489c62[_0x566b15(0x162)]())[_0x566b15(0x18e)];},'abortController':_0xfe315c[_0x479951(0x172)]};}[_0x2e17dc(0x163)](_0x24c9b2,_0x2f1f82,_0x106536){const _0x26b793=_0x2e17dc,_0x35684e=this[_0x26b793(0x138)](_0x26b793(0x117)+_0x24c9b2+_0x26b793(0x137),_0x26b793(0x17b),{'url':_0x2f1f82,'attributes':_0x106536});return{'getId':async()=>(await _0x35684e[_0x26b793(0x16e)])[_0x26b793(0x162)](),'abortController':_0x35684e[_0x26b793(0x172)]};}[_0x2e17dc(0x114)](_0x51b901='en'){const _0x233c32=_0x2e17dc,_0x1164a5=new URLSearchParams();_0x1164a5[_0x233c32(0x180)](_0x233c32(0x120),_0x51b901);const _0x12cc32=_0x233c32(0x14a)+_0x1164a5[_0x233c32(0x10f)](),_0x2863e5=this[_0x233c32(0x138)](_0x12cc32,_0x233c32(0x10d));return{'list':async()=>await(await _0x2863e5[_0x233c32(0x16e)])[_0x233c32(0x162)](),'abortController':_0x2863e5[_0x233c32(0x172)]};}[_0x2e17dc(0x126)](_0x38c54c,_0x2ff225){const _0x3c33b1=_0x2e17dc,_0x5c212e=this[_0x3c33b1(0x138)](_0x3c33b1(0x117)+_0x38c54c+_0x3c33b1(0x181)+_0x2ff225,_0x3c33b1(0x174));return{'execute':async()=>{const _0x9053e=_0x3c33b1;await _0x5c212e[_0x9053e(0x16e)];},'abortController':_0x5c212e[_0x3c33b1(0x172)]};}[_0x2e17dc(0x135)](_0x3cbe42,_0x5dd3a9){const _0x5c09cb=_0x2e17dc,_0x1303cc=this[_0x5c09cb(0x138)](_0x5c09cb(0x117)+_0x3cbe42+_0x5c09cb(0x144)+_0x5dd3a9,_0x5c09cb(0x174));return{'execute':async()=>{const _0x3d30da=_0x5c09cb;await _0x1303cc[_0x3d30da(0x16e)];},'abortController':_0x1303cc[_0x5c09cb(0x172)]};}[_0x2e17dc(0x106)](_0x3294cd,_0x484c8f){const _0x1f931f=_0x2e17dc,_0x269701=this[_0x1f931f(0x138)](_0x1f931f(0x117)+_0x3294cd+_0x1f931f(0x13b)+_0x484c8f,_0x1f931f(0x174));return{'execute':async()=>{const _0x487a9a=_0x1f931f;await _0x269701[_0x487a9a(0x16e)];},'abortController':_0x269701[_0x1f931f(0x172)]};}[_0x2e17dc(0x18f)]({reviewName:_0x207d42,content:_0x281ec3,args:_0x4fac42}){const _0x284b05=_0x2e17dc,_0x388b8d=this[_0x284b05(0x138)](_0x284b05(0x159)+_0x207d42+_0x284b05(0x105),_0x284b05(0x17b),{'content':[{'type':_0x284b05(0x15d),'content':_0x281ec3}],'args':_0x4fac42});return{'getStream':async()=>{const _0x1a0117=_0x284b05,_0x33e530=(await _0x388b8d[_0x1a0117(0x16e)])[_0x1a0117(0x14f)];return this[_0x1a0117(0x16c)](_0x33e530);},'abortController':_0x388b8d[_0x284b05(0x172)]};}[_0x2e17dc(0x153)]({content:_0x37dabf,prompt:_0x43f883,model:_0x493131}){const _0x13437d=_0x2e17dc,_0x32f143=this[_0x13437d(0x138)](_0x13437d(0xfd),_0x13437d(0x17b),{'content':[{'type':_0x13437d(0x15d),'content':_0x37dabf}],'prompt':_0x43f883,'model':_0x493131});return{'getStream':async()=>{const _0x47383c=_0x13437d,_0x53b48a=(await _0x32f143[_0x47383c(0x16e)])[_0x47383c(0x14f)];return this[_0x47383c(0x16c)](_0x53b48a);},'abortController':_0x32f143[_0x13437d(0x172)]};}[_0x2e17dc(0x164)](_0x44f6aa,_0x4e6320,_0x7af6b5){const _0x8a6d1b=_0x2e17dc,_0x526c94=this[_0x8a6d1b(0x138)](_0x8a6d1b(0x117)+_0x44f6aa+_0x8a6d1b(0x147)+_0x4e6320+_0x8a6d1b(0x109),_0x8a6d1b(0x107),{'positiveCount':_0x7af6b5[_0x8a6d1b(0x178)],'totalCount':_0x7af6b5[_0x8a6d1b(0xfc)],'modificationId':_0x7af6b5[_0x8a6d1b(0x146)]});return{'execute':async()=>{const _0x5c2fc1=_0x8a6d1b;await _0x526c94[_0x5c2fc1(0x16e)];},'abortController':_0x526c94[_0x8a6d1b(0x172)]};}[_0x2e17dc(0x148)](_0x5bb01e,_0x49c8ba,_0x11f1cf){const _0x1744b4=_0x2e17dc,_0x328851=this[_0x1744b4(0x138)](_0x1744b4(0x13f)+_0x5bb01e+_0x1744b4(0x108)+_0x49c8ba+_0x1744b4(0x109),_0x1744b4(0x107),{'positiveCount':_0x11f1cf[_0x1744b4(0x178)],'totalCount':_0x11f1cf[_0x1744b4(0xfc)]});return{'execute':async()=>{const _0x190016=_0x1744b4;await _0x328851[_0x190016(0x16e)];},'abortController':_0x328851[_0x1744b4(0x172)]};}[_0x2e17dc(0x122)](_0x535d38,_0x8617e){const _0x49e0a1=_0x2e17dc,_0x39257c=this[_0x49e0a1(0x138)](_0x49e0a1(0x119)+_0x535d38+_0x49e0a1(0x109),_0x49e0a1(0x107),{'positiveCount':_0x8617e[_0x49e0a1(0x178)],'totalCount':_0x8617e[_0x49e0a1(0xfc)]});return{'execute':async()=>{const _0x256553=_0x49e0a1;await _0x39257c[_0x256553(0x16e)];},'abortController':_0x39257c[_0x49e0a1(0x172)]};}[_0x2e17dc(0x14c)](_0x1f93aa,_0x5e627f,_0x211b6a,_0x30519e){const _0xe86967=_0x2e17dc,_0x50708b=this[_0xe86967(0x138)](_0xe86967(0x159)+_0x1f93aa+_0xe86967(0x108)+_0x5e627f+_0xe86967(0x109),_0xe86967(0x107),{'positiveCount':_0x211b6a[_0xe86967(0x178)],'totalCount':_0x211b6a[_0xe86967(0xfc)],'dataId':_0x30519e});return{'execute':async()=>{const _0x31470b=_0xe86967;await _0x50708b[_0x31470b(0x16e)];},'abortController':_0x50708b[_0xe86967(0x172)]};}[_0x2e17dc(0x16d)](_0x9b91b3,_0x4ec0b1,_0x21cb8b){const _0x1260b7=_0x2e17dc,_0x28b957=this[_0x1260b7(0x138)](_0x1260b7(0x150)+_0x9b91b3+_0x1260b7(0x109),_0x1260b7(0x107),{'positiveCount':_0x4ec0b1[_0x1260b7(0x178)],'totalCount':_0x4ec0b1[_0x1260b7(0xfc)],'dataId':_0x21cb8b});return{'execute':async()=>{const _0x3fb4c3=_0x1260b7;await _0x28b957[_0x3fb4c3(0x16e)];},'abortController':_0x28b957[_0x1260b7(0x172)]};}[_0x2e17dc(0x138)](_0x3339d1,_0x3590c1,_0x3f9630){const _0x4eb241=_0x2e17dc,_0x69f6de=new AbortController(),_0x26050d=_0x3f9630 instanceof FormData,_0x2c2059={'Authorization':_0x4eb241(0x183)+this[_0x4eb241(0x170)]?.[_0x4eb241(0x16a)]};_0x3f9630&&!_0x26050d&&(_0x2c2059[_0x4eb241(0x18b)]=_0x4eb241(0x124));const _0x2ec5d7={'method':_0x3590c1,'headers':_0x2c2059,'signal':_0x69f6de[_0x4eb241(0x17e)]};return _0x3f9630&&(_0x2ec5d7[_0x4eb241(0x14f)]=_0x26050d?_0x3f9630:JSON[_0x4eb241(0x149)](_0x3f9630)),{'request':fetch(''+this[_0x4eb241(0xfb)]+_0x3339d1,_0x2ec5d7)[_0x4eb241(0x160)](_0x4740d2=>{const _0xb1f2a7=_0x4eb241;this[_0xb1f2a7(0x182)](_0x4740d2);})[_0x4eb241(0x16b)](_0x440936=>_0x440936['ok']?_0x440936:_0x440936[_0x4eb241(0x162)]()[_0x4eb241(0x16b)](_0x560298=>{const _0x15f67c=_0x4eb241;throw{'url':this[_0x15f67c(0xfb)],'path':_0x3339d1,'method':_0x3590c1,'body':_0x3f9630,'status':(_0x440936||{})[_0x15f67c(0x186)],'statusText':(_0x440936||{})[_0x15f67c(0x12e)],'code':_0x560298[_0x15f67c(0x14e)],'message':_0x560298[_0x15f67c(0x139)],'traceId':_0x560298[_0x15f67c(0x136)]};})),'abortController':_0x69f6de};}async*[_0x2e17dc(0x16c)](_0x5ddf33){const _0x201aa3=_0x2e17dc,_0x55737e=[],_0x4d1022=_0x5ddf33[_0x201aa3(0x15b)](),_0x2e67c5=_0x5a1401({'onError':_0x547ace=>{const _0x368bc6=_0x201aa3;this[_0x368bc6(0x182)](_0x547ace);},'onEvent':_0x13c5a0=>{const _0x4d2a11=_0x201aa3;_0x13c5a0[_0x4d2a11(0x103)]=JSON[_0x4d2a11(0x161)](_0x13c5a0[_0x4d2a11(0x103)]),_0x55737e[_0x4d2a11(0x175)](_0x13c5a0);}});try{let _0x25a3db=!0x1;for(;!_0x25a3db;){const {done:_0x273a89,value:_0x17586a}=await _0x4d1022[_0x201aa3(0x179)]();_0x273a89&&(_0x25a3db=!0x0),_0x2e67c5[_0x201aa3(0x11d)](this[_0x201aa3(0x10a)][_0x201aa3(0x121)](_0x17586a,{'stream':!0x0})),yield*_0x55737e,_0x55737e[_0x201aa3(0x100)]=0x0;}}catch(_0x29b389){this[_0x201aa3(0x182)](_0x29b389);}finally{_0x4d1022[_0x201aa3(0x18a)](),_0x2e67c5[_0x201aa3(0x16f)]();}}[_0x2e17dc(0x182)](_0x476de9){const _0x53ace7=_0x2e17dc;if(_0x476de9 instanceof _0x1a9217)throw _0x476de9;if(_0x476de9 instanceof Error&&_0x53ace7(0x14b)===_0x476de9[_0x53ace7(0x133)])throw new _0x1a9217(_0x53ace7(0x156),this,{'originalError':_0x476de9});throw new _0x1a9217(_0x53ace7(0x15e),this,{'originalError':_0x476de9});}}
23
+ const _0x1c9192=_0x4d5d;(function(_0x254e56,_0x2bfc51){const _0x4baafd=_0x4d5d,_0x1b230c=_0x254e56();while(!![]){try{const _0x132911=-parseInt(_0x4baafd(0x1cb))/0x1*(parseInt(_0x4baafd(0x1bf))/0x2)+-parseInt(_0x4baafd(0x17d))/0x3*(-parseInt(_0x4baafd(0x1b7))/0x4)+parseInt(_0x4baafd(0x192))/0x5+parseInt(_0x4baafd(0x15c))/0x6*(-parseInt(_0x4baafd(0x1d9))/0x7)+-parseInt(_0x4baafd(0x199))/0x8*(-parseInt(_0x4baafd(0x1bb))/0x9)+-parseInt(_0x4baafd(0x1df))/0xa*(parseInt(_0x4baafd(0x14e))/0xb)+parseInt(_0x4baafd(0x16a))/0xc;if(_0x132911===_0x2bfc51)break;else _0x1b230c['push'](_0x1b230c['shift']());}catch(_0x55301e){_0x1b230c['push'](_0x1b230c['shift']());}}}(_0x2fbd,0xe0512));import{createParser as _0x476379}from'eventsource-parser';import{ContextPlugin as _0xaa4a4e}from'ckeditor5/src/core.js';import{CKEditorError as _0x46340a}from'ckeditor5/src/utils.js';export var AIActionsNames;function _0x4d5d(_0x5c1da1,_0x30b44d){const _0x2fbdd7=_0x2fbd();return _0x4d5d=function(_0x4d5d29,_0x2a1e0c){_0x4d5d29=_0x4d5d29-0x14e;let _0x1c35bb=_0x2fbdd7[_0x4d5d29];return _0x1c35bb;},_0x4d5d(_0x5c1da1,_0x30b44d);}function _0x2fbd(){const _0x23f061=['statusText','true','fetchDocument','decode','/messages/','make-longer','2159452hCffMt','_handleError','improve-writing','ai.serviceUrl','9GZAADe','/conversations?','callSystemReview','attributes','66434LyBapN','FIX_GRAMMAR','executeCustomAction','GET','excludeEmpty','deleteFile','/web-resources/','getReader','make-tone-formal','read','stringify','/conversations','19rmUuWr','json','body','POST','MAKE_SHORTER','Content-Type','value','_token','startConversation','uploadUrl','ai-missing-token','positiveCount','/documents','fetchConversation','644EIVMZx','/reviews/custom/calls/','translate','context','executeAction','then','398350UWWExK','/ratings','upsertAIChatRating','toString','status','desc','506DVoQrR','abortController','get','_getStreamReader','_apiUrl','_sendApiRequest','plugins','isPremiumPlugin','fetchConversations','releaseLock','MAKE_LONGER','deleteDocument','pluginName','/messages','70152dpIMsO','/files','modificationId','group','queryAssistant','100','IMPROVE_WRITING','CloudServices','/calls','limit','traceId','code','callCustomReview','deleteConversation','4463784EdqLDD','catch','/actions/system/','upsertAIReviewRating','https://ai.cke-cs.com/v1','PATCH','uploadDocument','application/json','push','isOfficialPlugin','upsertAIActionRating','text','CONTINUE','message','_decoder','requires','false','language','token','9oUroGu','upsertCustomAIActionRating','length','order','/web-resources','/conversations/','sortBy','define','make-tone-casual','AIConnector','createdAt','/reviews/custom/calls','reset','MAKE_TONE_CASUAL','upsertCustomAIReviewRating','uploadFile','init','totalCount','signal','name','continue','5424365mdLuCX','/files/','TRANSLATE','AbortError','make-shorter','DELETE','feed','11052440ijUguz','MAKE_TONE_FORMAL','/actions/custom/calls/','Bearer\x20','updateConversation','ai-request-failed','data','/calls/','/reviews/system/','getModels','fix-grammar','PUT','/models/1?','request','file','items','append','/documents/','parse','deleteWebResource','/actions/custom/calls','config','ai-request-aborted','fetchConversationMessages'];_0x2fbd=function(){return _0x23f061;};return _0x2fbd();}!function(_0x43fd09){const _0x5507e4=_0x4d5d;_0x43fd09[_0x5507e4(0x176)]=_0x5507e4(0x191),_0x43fd09[_0x5507e4(0x1c0)]=_0x5507e4(0x1a3),_0x43fd09[_0x5507e4(0x162)]=_0x5507e4(0x1b9),_0x43fd09[_0x5507e4(0x158)]=_0x5507e4(0x1b6),_0x43fd09[_0x5507e4(0x1cf)]=_0x5507e4(0x196),_0x43fd09[_0x5507e4(0x18a)]=_0x5507e4(0x185),_0x43fd09[_0x5507e4(0x19a)]=_0x5507e4(0x1c7),_0x43fd09[_0x5507e4(0x194)]=_0x5507e4(0x1db);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0xaa4a4e{[_0x1c9192(0x152)];[_0x1c9192(0x1d2)];[_0x1c9192(0x178)];static get[_0x1c9192(0x179)](){const _0x54ccc5=_0x1c9192;return[_0x54ccc5(0x163)];}static get[_0x1c9192(0x15a)](){const _0x94bf0d=_0x1c9192;return _0x94bf0d(0x186);}static get[_0x1c9192(0x173)](){return!0x0;}static get[_0x1c9192(0x155)](){return!0x0;}constructor(_0x5c8ea5){const _0x37534c=_0x1c9192;super(_0x5c8ea5),this[_0x37534c(0x1dc)][_0x37534c(0x1ae)][_0x37534c(0x184)](_0x37534c(0x1ba),_0x37534c(0x16e)),this[_0x37534c(0x152)]=this[_0x37534c(0x1dc)][_0x37534c(0x1ae)][_0x37534c(0x150)](_0x37534c(0x1ba)),this[_0x37534c(0x1d2)]=null,this[_0x37534c(0x178)]=new TextDecoder();}[_0x1c9192(0x18d)](){const _0x5d6920=_0x1c9192,_0x3eab4e=this[_0x5d6920(0x1dc)][_0x5d6920(0x154)][_0x5d6920(0x150)](_0x5d6920(0x163));if(!_0x3eab4e[_0x5d6920(0x17c)])throw new _0x46340a(_0x5d6920(0x1d5),this);this[_0x5d6920(0x1d2)]=_0x3eab4e[_0x5d6920(0x17c)];}[_0x1c9192(0x1d3)](_0x5d98d4,_0x3d2d5e){const _0x577c6d=_0x1c9192,_0x10f384=this[_0x577c6d(0x153)](_0x577c6d(0x1ca),_0x577c6d(0x1ce),{'id':_0x5d98d4,'group':_0x3d2d5e});return{'getConversation':async()=>(await _0x10f384[_0x577c6d(0x1a6)])[_0x577c6d(0x1cc)](),'abortController':_0x10f384[_0x577c6d(0x14f)]};}[_0x1c9192(0x160)]({message:_0x19a149,conversationId:_0x39e29d,parts:_0x148119,capabilities:_0x1a6085,model:_0x13c3ff,attributes:_0x4da86b}){const _0xf31b99=_0x1c9192,_0x41d1a9={'prompt':_0x19a149,'content':_0x148119,'model':_0x13c3ff,..._0x1a6085&&{'capabilities':_0x1a6085},..._0x4da86b&&{'attributes':_0x4da86b}},_0x16918c=this[_0xf31b99(0x153)](_0xf31b99(0x182)+_0x39e29d+_0xf31b99(0x15b),_0xf31b99(0x1ce),_0x41d1a9);return{'getStream':async()=>{const _0x2218d8=_0xf31b99,_0x323185=(await _0x16918c[_0x2218d8(0x1a6)])[_0x2218d8(0x1cd)];return this[_0x2218d8(0x151)](_0x323185);},'abortController':_0x16918c[_0xf31b99(0x14f)]};}[_0x1c9192(0x1c1)]({content:_0x56270e,message:_0x47fc6b,model:_0x1bbd9b,outputFormat:_0x34cdba}){const _0xb81dd3=_0x1c9192,_0x52e258={'content':[{'type':_0xb81dd3(0x175),'content':_0x56270e}],'prompt':_0x47fc6b,'model':_0x1bbd9b,'outputFormat':_0x34cdba},_0x42bce3=this[_0xb81dd3(0x153)](_0xb81dd3(0x1ad),_0xb81dd3(0x1ce),_0x52e258);return{'getStream':async()=>{const _0x781e91=_0xb81dd3,_0x1b69ba=(await _0x42bce3[_0x781e91(0x1a6)])[_0x781e91(0x1cd)];return this[_0x781e91(0x151)](_0x1b69ba);},'abortController':_0x42bce3[_0xb81dd3(0x14f)]};}[_0x1c9192(0x1dd)]({actionName:_0x3265f0,content:_0x372ce3,args:_0x9870f8}){const _0xbd3825=_0x1c9192,_0xb9aa34={'content':[{'type':_0xbd3825(0x175),'content':_0x372ce3}],'args':_0x9870f8},_0x364b69=this[_0xbd3825(0x153)](_0xbd3825(0x16c)+_0x3265f0+_0xbd3825(0x164),_0xbd3825(0x1ce),_0xb9aa34);return{'getStream':async()=>{const _0x1375a1=_0xbd3825,_0x48aff5=(await _0x364b69[_0x1375a1(0x1a6)])[_0x1375a1(0x1cd)];return this[_0x1375a1(0x151)](_0x48aff5);},'abortController':_0x364b69[_0xbd3825(0x14f)]};}[_0x1c9192(0x18c)](_0x5ead6a,_0x345128,_0x16b5c7){const _0x290257=_0x1c9192,_0xa7d782=new FormData();_0xa7d782[_0x290257(0x1a9)](_0x290257(0x1a7),_0x345128,_0x345128[_0x290257(0x190)]),_0x16b5c7&&_0xa7d782[_0x290257(0x1a9)](_0x290257(0x1be),JSON[_0x290257(0x1c9)](_0x16b5c7));const _0x360ea4=this[_0x290257(0x153)](_0x290257(0x182)+_0x5ead6a+_0x290257(0x15d),_0x290257(0x1ce),_0xa7d782);return{'getId':async()=>(await _0x360ea4[_0x290257(0x1a6)])[_0x290257(0x1cc)](),'abortController':_0x360ea4[_0x290257(0x14f)]};}[_0x1c9192(0x1b3)](_0x3a7a5c,_0x519334){const _0x1b1e91=_0x1c9192,_0x11d995=this[_0x1b1e91(0x153)](_0x1b1e91(0x182)+_0x3a7a5c+_0x1b1e91(0x1aa)+_0x519334,_0x1b1e91(0x1c2));return{'getDocument':async()=>(await _0x11d995[_0x1b1e91(0x1a6)])[_0x1b1e91(0x1cc)](),'abortController':_0x11d995[_0x1b1e91(0x14f)]};}[_0x1c9192(0x170)](_0x3d29a6,_0x5d686f,_0x2fb1f0){const _0x374456=_0x1c9192,_0x142f57={'content':_0x5d686f};_0x2fb1f0&&(_0x142f57[_0x374456(0x1be)]=_0x2fb1f0);const _0x15bbd9=this[_0x374456(0x153)](_0x374456(0x182)+_0x3d29a6+_0x374456(0x1d7),_0x374456(0x1ce),_0x142f57);return{'getId':async()=>(await _0x15bbd9[_0x374456(0x1a6)])[_0x374456(0x1cc)](),'abortController':_0x15bbd9[_0x374456(0x14f)]};}[_0x1c9192(0x156)](_0x50b5ae,_0x4f3fb5={}){const _0x286193=_0x1c9192,_0x324dd8=new URLSearchParams();_0x324dd8[_0x286193(0x1a9)](_0x286193(0x15f),_0x50b5ae),_0x324dd8[_0x286193(0x1a9)](_0x286193(0x1c3),!0x1!==_0x4f3fb5[_0x286193(0x1c3)]?_0x286193(0x1b2):_0x286193(0x17a)),_0x324dd8[_0x286193(0x1a9)](_0x286193(0x165),_0x4f3fb5[_0x286193(0x165)]?_0x4f3fb5[_0x286193(0x165)][_0x286193(0x1e2)]():_0x286193(0x161)),_0x324dd8[_0x286193(0x1a9)](_0x286193(0x183),_0x4f3fb5[_0x286193(0x183)]?_0x4f3fb5[_0x286193(0x183)]:_0x286193(0x187)),_0x324dd8[_0x286193(0x1a9)](_0x286193(0x180),_0x4f3fb5[_0x286193(0x180)]?_0x4f3fb5[_0x286193(0x180)]:_0x286193(0x1e4));const _0x3e6e94=this[_0x286193(0x153)](_0x286193(0x1bc)+_0x324dd8[_0x286193(0x1e2)](),_0x286193(0x1c2));return{'getConversations':async()=>{const _0xc93e79=_0x286193,_0x2de568=await _0x3e6e94[_0xc93e79(0x1a6)];return(await _0x2de568[_0xc93e79(0x1cc)]())[_0xc93e79(0x1a8)];},'abortController':_0x3e6e94[_0x286193(0x14f)]};}[_0x1c9192(0x169)](_0x501f15){const _0x28ac1b=_0x1c9192,_0x302413=this[_0x28ac1b(0x153)](_0x28ac1b(0x182)+_0x501f15,_0x28ac1b(0x197));return{'execute':async()=>{const _0x364c97=_0x28ac1b;await _0x302413[_0x364c97(0x1a6)];},'abortController':_0x302413[_0x28ac1b(0x14f)]};}[_0x1c9192(0x19d)](_0x391330,_0x1f7a53){const _0x1b0b3a=_0x1c9192,_0x551373=this[_0x1b0b3a(0x153)](_0x1b0b3a(0x182)+_0x391330,_0x1b0b3a(0x16f),_0x1f7a53);return{'getResult':async()=>(await _0x551373[_0x1b0b3a(0x1a6)],_0x1f7a53),'abortController':_0x551373[_0x1b0b3a(0x14f)]};}[_0x1c9192(0x1d8)](_0x17c20b){const _0x53586f=_0x1c9192,_0x130d0c=this[_0x53586f(0x153)](_0x53586f(0x182)+_0x17c20b,_0x53586f(0x1c2));return{'getConversation':async()=>(await _0x130d0c[_0x53586f(0x1a6)])[_0x53586f(0x1cc)](),'abortController':_0x130d0c[_0x53586f(0x14f)]};}[_0x1c9192(0x1b0)](_0x1b516d){const _0x125d81=_0x1c9192,_0x1b13fd=this[_0x125d81(0x153)](_0x125d81(0x182)+_0x1b516d+_0x125d81(0x15b),_0x125d81(0x1c2));return{'getMessages':async()=>{const _0x42284b=_0x125d81,_0x38d960=await _0x1b13fd[_0x42284b(0x1a6)];return(await _0x38d960[_0x42284b(0x1cc)]())[_0x42284b(0x1a8)];},'abortController':_0x1b13fd[_0x125d81(0x14f)]};}[_0x1c9192(0x1d4)](_0x85105b,_0x30fbc6,_0x501088){const _0x3c7aa7=_0x1c9192,_0xb2d8a4=this[_0x3c7aa7(0x153)](_0x3c7aa7(0x182)+_0x85105b+_0x3c7aa7(0x181),_0x3c7aa7(0x1ce),{'url':_0x30fbc6,'attributes':_0x501088});return{'getId':async()=>(await _0xb2d8a4[_0x3c7aa7(0x1a6)])[_0x3c7aa7(0x1cc)](),'abortController':_0xb2d8a4[_0x3c7aa7(0x14f)]};}[_0x1c9192(0x1a2)](_0x31229b='en'){const _0x408a94=_0x1c9192,_0x2efcca=new URLSearchParams();_0x2efcca[_0x408a94(0x1a9)](_0x408a94(0x17b),_0x31229b);const _0x26ffb9=_0x408a94(0x1a5)+_0x2efcca[_0x408a94(0x1e2)](),_0xeba9c0=this[_0x408a94(0x153)](_0x26ffb9,_0x408a94(0x1c2));return{'list':async()=>await(await _0xeba9c0[_0x408a94(0x1a6)])[_0x408a94(0x1cc)](),'abortController':_0xeba9c0[_0x408a94(0x14f)]};}[_0x1c9192(0x1c4)](_0x2f9e6d,_0x3f3c35){const _0x13755c=_0x1c9192,_0x20c4a6=this[_0x13755c(0x153)](_0x13755c(0x182)+_0x2f9e6d+_0x13755c(0x193)+_0x3f3c35,_0x13755c(0x197));return{'execute':async()=>{const _0x4c9b9f=_0x13755c;await _0x20c4a6[_0x4c9b9f(0x1a6)];},'abortController':_0x20c4a6[_0x13755c(0x14f)]};}[_0x1c9192(0x159)](_0x1cffab,_0xe799ca){const _0x4ab744=_0x1c9192,_0x159718=this[_0x4ab744(0x153)](_0x4ab744(0x182)+_0x1cffab+_0x4ab744(0x1aa)+_0xe799ca,_0x4ab744(0x197));return{'execute':async()=>{const _0x32aaa7=_0x4ab744;await _0x159718[_0x32aaa7(0x1a6)];},'abortController':_0x159718[_0x4ab744(0x14f)]};}[_0x1c9192(0x1ac)](_0x3d0ded,_0x43912b){const _0x50dbc9=_0x1c9192,_0x207120=this[_0x50dbc9(0x153)](_0x50dbc9(0x182)+_0x3d0ded+_0x50dbc9(0x1c5)+_0x43912b,_0x50dbc9(0x197));return{'execute':async()=>{const _0x3985ec=_0x50dbc9;await _0x207120[_0x3985ec(0x1a6)];},'abortController':_0x207120[_0x50dbc9(0x14f)]};}[_0x1c9192(0x1bd)]({reviewName:_0x1bf423,content:_0x399e50,args:_0xd8fead}){const _0x56c223=_0x1c9192,_0x46fbdf=this[_0x56c223(0x153)](_0x56c223(0x1a1)+_0x1bf423+_0x56c223(0x164),_0x56c223(0x1ce),{'content':[{'type':_0x56c223(0x175),'content':_0x399e50}],'args':_0xd8fead});return{'getStream':async()=>{const _0x541e6b=_0x56c223,_0x8ee5e9=(await _0x46fbdf[_0x541e6b(0x1a6)])[_0x541e6b(0x1cd)];return this[_0x541e6b(0x151)](_0x8ee5e9);},'abortController':_0x46fbdf[_0x56c223(0x14f)]};}[_0x1c9192(0x168)]({content:_0x21126b,prompt:_0x25a691,model:_0x4582ae}){const _0x1f5b2b=_0x1c9192,_0x1fe41d=this[_0x1f5b2b(0x153)](_0x1f5b2b(0x188),_0x1f5b2b(0x1ce),{'content':[{'type':_0x1f5b2b(0x175),'content':_0x21126b}],'prompt':_0x25a691,'model':_0x4582ae});return{'getStream':async()=>{const _0x26d106=_0x1f5b2b,_0x101efe=(await _0x1fe41d[_0x26d106(0x1a6)])[_0x26d106(0x1cd)];return this[_0x26d106(0x151)](_0x101efe);},'abortController':_0x1fe41d[_0x1f5b2b(0x14f)]};}[_0x1c9192(0x1e1)](_0x59d3fd,_0x215c16,_0x3e8183){const _0x377e0d=_0x1c9192,_0x4d99c7=this[_0x377e0d(0x153)](_0x377e0d(0x182)+_0x59d3fd+_0x377e0d(0x1b5)+_0x215c16+_0x377e0d(0x1e0),_0x377e0d(0x1a4),{'positiveCount':_0x3e8183[_0x377e0d(0x1d6)],'totalCount':_0x3e8183[_0x377e0d(0x18e)],'modificationId':_0x3e8183[_0x377e0d(0x15e)]});return{'execute':async()=>{const _0x410c6b=_0x377e0d;await _0x4d99c7[_0x410c6b(0x1a6)];},'abortController':_0x4d99c7[_0x377e0d(0x14f)]};}[_0x1c9192(0x174)](_0x4a47fb,_0x1dfda1,_0x43b25e){const _0xf9b377=_0x1c9192,_0x358428=this[_0xf9b377(0x153)](_0xf9b377(0x16c)+_0x4a47fb+_0xf9b377(0x1a0)+_0x1dfda1+_0xf9b377(0x1e0),_0xf9b377(0x1a4),{'positiveCount':_0x43b25e[_0xf9b377(0x1d6)],'totalCount':_0x43b25e[_0xf9b377(0x18e)]});return{'execute':async()=>{const _0x141129=_0xf9b377;await _0x358428[_0x141129(0x1a6)];},'abortController':_0x358428[_0xf9b377(0x14f)]};}[_0x1c9192(0x17e)](_0x21b690,_0x3ba16d){const _0x12043c=_0x1c9192,_0x4a248f=this[_0x12043c(0x153)](_0x12043c(0x19b)+_0x21b690+_0x12043c(0x1e0),_0x12043c(0x1a4),{'positiveCount':_0x3ba16d[_0x12043c(0x1d6)],'totalCount':_0x3ba16d[_0x12043c(0x18e)]});return{'execute':async()=>{const _0x81e773=_0x12043c;await _0x4a248f[_0x81e773(0x1a6)];},'abortController':_0x4a248f[_0x12043c(0x14f)]};}[_0x1c9192(0x16d)](_0x59757f,_0x33c7b5,_0x2a8be7,_0x3cbfc6){const _0x33c2c8=_0x1c9192,_0x3851a8=this[_0x33c2c8(0x153)](_0x33c2c8(0x1a1)+_0x59757f+_0x33c2c8(0x1a0)+_0x33c7b5+_0x33c2c8(0x1e0),_0x33c2c8(0x1a4),{'positiveCount':_0x2a8be7[_0x33c2c8(0x1d6)],'totalCount':_0x2a8be7[_0x33c2c8(0x18e)],'dataId':_0x3cbfc6});return{'execute':async()=>{const _0xef21c0=_0x33c2c8;await _0x3851a8[_0xef21c0(0x1a6)];},'abortController':_0x3851a8[_0x33c2c8(0x14f)]};}[_0x1c9192(0x18b)](_0x3e86a5,_0x4b30d3,_0x171558){const _0x2f284a=_0x1c9192,_0x38e031=this[_0x2f284a(0x153)](_0x2f284a(0x1da)+_0x3e86a5+_0x2f284a(0x1e0),_0x2f284a(0x1a4),{'positiveCount':_0x4b30d3[_0x2f284a(0x1d6)],'totalCount':_0x4b30d3[_0x2f284a(0x18e)],'dataId':_0x171558});return{'execute':async()=>{const _0x194f7c=_0x2f284a;await _0x38e031[_0x194f7c(0x1a6)];},'abortController':_0x38e031[_0x2f284a(0x14f)]};}[_0x1c9192(0x153)](_0x416caa,_0x5c90f8,_0x229fd8){const _0x29551a=_0x1c9192,_0x33b0c6=new AbortController(),_0x5e1112=_0x229fd8 instanceof FormData,_0x5905a7={'Authorization':_0x29551a(0x19c)+this[_0x29551a(0x1d2)]?.[_0x29551a(0x1d1)]};_0x229fd8&&!_0x5e1112&&(_0x5905a7[_0x29551a(0x1d0)]=_0x29551a(0x171));const _0x1c5a53={'method':_0x5c90f8,'headers':_0x5905a7,'signal':_0x33b0c6[_0x29551a(0x18f)]};return _0x229fd8&&(_0x1c5a53[_0x29551a(0x1cd)]=_0x5e1112?_0x229fd8:JSON[_0x29551a(0x1c9)](_0x229fd8)),{'request':fetch(''+this[_0x29551a(0x152)]+_0x416caa,_0x1c5a53)[_0x29551a(0x16b)](_0x1be07e=>{const _0x4c8e6a=_0x29551a;this[_0x4c8e6a(0x1b8)](_0x1be07e);})[_0x29551a(0x1de)](_0x478efb=>_0x478efb['ok']?_0x478efb:_0x478efb[_0x29551a(0x1cc)]()[_0x29551a(0x1de)](_0x2f19e6=>{const _0x2f3da7=_0x29551a;throw{'url':this[_0x2f3da7(0x152)],'path':_0x416caa,'method':_0x5c90f8,'body':_0x229fd8,'status':(_0x478efb||{})[_0x2f3da7(0x1e3)],'statusText':(_0x478efb||{})[_0x2f3da7(0x1b1)],'code':_0x2f19e6[_0x2f3da7(0x167)],'message':_0x2f19e6[_0x2f3da7(0x177)],'traceId':_0x2f19e6[_0x2f3da7(0x166)]};})),'abortController':_0x33b0c6};}async*[_0x1c9192(0x151)](_0x1ef9bb){const _0x582dd2=_0x1c9192,_0x41ec55=[],_0x1e8046=_0x1ef9bb[_0x582dd2(0x1c6)](),_0x3a0515=_0x476379({'onError':_0x449527=>{const _0x76c6bb=_0x582dd2;this[_0x76c6bb(0x1b8)](_0x449527);},'onEvent':_0x2edb71=>{const _0x232c73=_0x582dd2;_0x2edb71[_0x232c73(0x19f)]=JSON[_0x232c73(0x1ab)](_0x2edb71[_0x232c73(0x19f)]),_0x41ec55[_0x232c73(0x172)](_0x2edb71);}});try{let _0x44877b=!0x1;for(;!_0x44877b;){const {done:_0x3f00e4,value:_0x4b835c}=await _0x1e8046[_0x582dd2(0x1c8)]();_0x3f00e4&&(_0x44877b=!0x0),_0x3a0515[_0x582dd2(0x198)](this[_0x582dd2(0x178)][_0x582dd2(0x1b4)](_0x4b835c,{'stream':!0x0})),yield*_0x41ec55,_0x41ec55[_0x582dd2(0x17f)]=0x0;}}catch(_0x1f2493){this[_0x582dd2(0x1b8)](_0x1f2493);}finally{_0x1e8046[_0x582dd2(0x157)](),_0x3a0515[_0x582dd2(0x189)]();}}[_0x1c9192(0x1b8)](_0x368906){const _0x2b75a6=_0x1c9192;if(_0x368906 instanceof _0x46340a)throw _0x368906;if(_0x368906 instanceof Error&&_0x2b75a6(0x195)===_0x368906[_0x2b75a6(0x190)])throw new _0x46340a(_0x2b75a6(0x1af),this,{'originalError':_0x368906});throw new _0x46340a(_0x2b75a6(0x19e),this,{'originalError':_0x368906});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x48f16f=_0x910b;(function(_0x4eb5fe,_0x292150){const _0x4f861f=_0x910b,_0x9b30cb=_0x4eb5fe();while(!![]){try{const _0xcedded=parseInt(_0x4f861f(0x205))/0x1+parseInt(_0x4f861f(0x201))/0x2*(parseInt(_0x4f861f(0x22f))/0x3)+parseInt(_0x4f861f(0x212))/0x4+-parseInt(_0x4f861f(0x1cf))/0x5*(parseInt(_0x4f861f(0x23a))/0x6)+parseInt(_0x4f861f(0x1f0))/0x7+-parseInt(_0x4f861f(0x1d2))/0x8+parseInt(_0x4f861f(0x1ea))/0x9*(-parseInt(_0x4f861f(0x228))/0xa);if(_0xcedded===_0x292150)break;else _0x9b30cb['push'](_0x9b30cb['shift']());}catch(_0x1bfe51){_0x9b30cb['push'](_0x9b30cb['shift']());}}}(_0x2479,0xb409a));import{ViewDowncastWriter as _0x3a1608}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x516b14,Editor as _0x43ba2f}from'ckeditor5/src/core.js';import{uid as _0x30500e}from'ckeditor5/src/utils.js';import{getTranslation as _0x51c60a}from'./utils/common-translations.js';import{getEditorFromContext as _0x10170b}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x48f16f(0x223);function _0x910b(_0x28c0ba,_0x3aa1c9){const _0x24795f=_0x2479();return _0x910b=function(_0x910bf4,_0x36ee5e){_0x910bf4=_0x910bf4-0x1cd;let _0x5af7c9=_0x24795f[_0x910bf4];return _0x5af7c9;},_0x910b(_0x28c0ba,_0x3aa1c9);}function _0x2479(){const _0x514ca2=['_getDocumentDataStringFromView','markers','processor','isPremiumPlugin','removeMarker','34ESItCT','isBefore','getItems','isAtEnd','1024103cFVsIS','getRanges','end','modelToDataWithIds','document','schema','start','locale','sort','getLastMatchingPosition','fromCharCode','viewToDom','element','3433444mgLGmL','ck-fake-ai-selection','random','has','_sessionId','getStart','listenTo','_integrateEditor','change','isContent','name','config','setAttribute','markerToHighlight','markerName','AIEditing','sessionId','ai-selection','plugins','getRoot',':end></','push','783220wdzgrp','from','pluginName','emptyElement','length','addMarker','htmlWriter','83310gHsXqE','define','trim','add','createRange','domConverter',':end>','ck-ai-assistant-ui_theme','isOfficialPlugin','selection',':start></','207846PyJDOu','for','getMarkersGroup','convertAiChatSelectionMarker','version','getSelectionText','hideFakeVisualSelection','indexOf','$textProxy','75LBTwyw','ai-selection:','_displayedFakeSelectionId','8426952QQMQzK','join','getChildren','context','dataDowncast','RealTimeCollaborationClient','floor','getSelection','conversion','get','substring','_displayedFakeSelectionLocked','afterInit','isOpening','editors','getHtml','_nextDataId',':start>','_getMarkersInDocumentOrder','ai.models.showModelSelector','editing','createUIElement','toData','_setOutputDataProcessor','63fJZelF','editingDowncast','_setDataIdsOnChildren','view','showFakeVisualSelection','_outputDataProcessor','3528826DsxxKK','markerToElement','containerElement','removeAllRanges','ready','data','toView','getDocumentData','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','isAfter','model','data-id'];_0x2479=function(){return _0x514ca2;};return _0x2479();}export class AIEditing extends _0x516b14{constructor(_0x4a1d35){const _0x271afc=_0x48f16f;super(_0x4a1d35),this[_0x271afc(0x1d5)][_0x271afc(0x21d)][_0x271afc(0x230)](_0x271afc(0x1e5),!0x0);}[_0x48f16f(0x1ef)];[_0x48f16f(0x1d1)]=null;[_0x48f16f(0x1dd)]=!0x1;[_0x48f16f(0x216)];static get[_0x48f16f(0x22a)](){const _0x25a7a6=_0x48f16f;return _0x25a7a6(0x221);}static get[_0x48f16f(0x237)](){return!0x0;}static get[_0x48f16f(0x1ff)](){return!0x0;}get[_0x48f16f(0x222)](){const _0xeb7160=_0x48f16f;if(!this[_0xeb7160(0x216)]){const _0x318f16=_0x10170b(this[_0xeb7160(0x1d5)]),_0x1eed9b=_0x318f16[_0xeb7160(0x224)][_0xeb7160(0x215)](_0xeb7160(0x1d7))&&_0x318f16[_0xeb7160(0x224)][_0xeb7160(0x1db)](_0xeb7160(0x1d7))[_0xeb7160(0x222)];this[_0xeb7160(0x216)]=_0x1eed9b||_0x30500e();}return this[_0xeb7160(0x216)];}async[_0x48f16f(0x1f7)](){const _0xda89b4=_0x48f16f,_0x36105d=_0x10170b(this[_0xda89b4(0x1d5)]),_0x2e43a2=_0x36105d[_0xda89b4(0x1fa)],_0xe615f3=_0x36105d[_0xda89b4(0x1f5)][_0xda89b4(0x1f6)](_0x2e43a2[_0xda89b4(0x209)][_0xda89b4(0x225)](),{'convertAiChatSelectionMarker':!0x0}),_0x10e050=new _0x3a1608(_0x36105d[_0xda89b4(0x1e6)][_0xda89b4(0x1ed)][_0xda89b4(0x209)]);this[_0xda89b4(0x1ec)](_0xe615f3,_0x10e050);let _0x1382a1=await this[_0xda89b4(0x1fc)](_0xe615f3);const _0x4e0576=this[_0xda89b4(0x1e4)](),_0x228c62=[];for(const _0x1a7d24 of _0x4e0576){const _0x9f22c9='<'+_0x1a7d24[_0xda89b4(0x21c)]+_0xda89b4(0x239)+_0x1a7d24[_0xda89b4(0x21c)]+_0xda89b4(0x1e3),_0x33ae90=_0x1382a1[_0xda89b4(0x1cd)](_0x9f22c9);_0x1382a1=_0x1382a1[_0xda89b4(0x1dc)](0x0,_0x33ae90)+_0x1382a1[_0xda89b4(0x1dc)](_0x33ae90+_0x9f22c9[_0xda89b4(0x22c)]);const _0x52c748='<'+_0x1a7d24[_0xda89b4(0x21c)]+_0xda89b4(0x226)+_0x1a7d24[_0xda89b4(0x21c)]+_0xda89b4(0x235),_0x503ec8=_0x1382a1[_0xda89b4(0x1cd)](_0x52c748);_0x1382a1=_0x1382a1[_0xda89b4(0x1dc)](0x0,_0x503ec8)+_0x1382a1[_0xda89b4(0x1dc)](_0x503ec8+_0x52c748[_0xda89b4(0x22c)]),_0x228c62[_0xda89b4(0x227)]({'markerName':_0x1a7d24[_0xda89b4(0x21c)],'start':_0x33ae90,'end':_0x503ec8,'htmlFragment':_0x1382a1[_0xda89b4(0x1dc)](_0x33ae90,_0x503ec8)});}return{'content':_0x1382a1,'version':_0x36105d[_0xda89b4(0x1fa)][_0xda89b4(0x209)][_0xda89b4(0x23e)],'sessionId':this[_0xda89b4(0x222)],'selections':_0x228c62};}async[_0x48f16f(0x1de)](){const _0x35c3b6=_0x48f16f;this[_0x35c3b6(0x1d5)]instanceof _0x43ba2f?this[_0x35c3b6(0x219)](this[_0x35c3b6(0x1d5)]):this[_0x35c3b6(0x218)](this[_0x35c3b6(0x1d5)][_0x35c3b6(0x1e0)],_0x35c3b6(0x232),(_0x2aa826,_0x4bed76)=>{const _0x34499d=_0x35c3b6;_0x4bed76['on'](_0x34499d(0x1f4),()=>{const _0x2ee676=_0x34499d;this[_0x2ee676(0x219)](_0x4bed76);});});}[_0x48f16f(0x1e9)](_0x500bd4){const _0x4355af=_0x48f16f;this[_0x4355af(0x1ef)]=_0x500bd4;}async[_0x48f16f(0x1fc)](_0x8586ee){const _0x341d76=_0x48f16f;let _0x7d8608;const _0x3f1599=_0x10170b(this[_0x341d76(0x1d5)]);if(this[_0x341d76(0x1ef)]){const _0x9dc88e=_0x3f1599[_0x341d76(0x1f5)][_0x341d76(0x1fe)][_0x341d76(0x234)][_0x341d76(0x210)](_0x8586ee),_0x46e9a1=await this[_0x341d76(0x1ef)](_0x9dc88e);_0x7d8608=_0x3f1599[_0x341d76(0x1f5)][_0x341d76(0x1fe)][_0x341d76(0x22e)][_0x341d76(0x1e1)](_0x46e9a1);}else _0x7d8608=_0x3f1599[_0x341d76(0x1f5)][_0x341d76(0x1fe)][_0x341d76(0x1e8)](_0x8586ee);return _0x7d8608;}[_0x48f16f(0x219)](_0x4e990d){const _0x35f5fd=_0x48f16f;_0x4e990d[_0x35f5fd(0x1da)][_0x35f5fd(0x23b)](_0x35f5fd(0x1eb))[_0x35f5fd(0x21f)]({'model':_0x35f5fd(0x223),'view':{'classes':[_0x35f5fd(0x213),_0x35f5fd(0x236)],'priority':0xc}}),_0x4e990d[_0x35f5fd(0x1da)][_0x35f5fd(0x23b)](_0x35f5fd(0x1d6))[_0x35f5fd(0x1f1)]({'model':_0x35f5fd(0x223),'view':(_0x4efc94,{writer:_0x5f2acc,options:_0x5cb32b})=>_0x5cb32b[_0x35f5fd(0x23d)]?_0x5f2acc[_0x35f5fd(0x1e7)](_0x4efc94[_0x35f5fd(0x220)]+':'+(_0x4efc94[_0x35f5fd(0x1df)]?_0x35f5fd(0x20b):_0x35f5fd(0x207))):null});}[_0x48f16f(0x1ee)](_0x13ab59,_0x4857c0,_0x51e2c5=!0x1,_0x512932=!0x1){const _0x4704ed=_0x48f16f;if(this[_0x4704ed(0x1dd)]&&!_0x512932)return!0x1;const _0x22dc51=_0x10170b(this[_0x4704ed(0x1d5)])[_0x4704ed(0x1fa)];return _0x22dc51[_0x4704ed(0x21a)](_0x34dc0e=>{const _0x789c9a=_0x4704ed;this[_0x789c9a(0x1d1)]&&this[_0x789c9a(0x240)](this[_0x789c9a(0x1d1)]),this[_0x789c9a(0x1d1)]=_0x4857c0,this[_0x789c9a(0x1dd)]=_0x51e2c5;let _0x49c309=0x0;for(let _0xfcbb74 of _0x13ab59){const _0x20bd4d=_0x789c9a(0x1d0)+_0x49c309;if(_0xfcbb74[_0x789c9a(0x20b)][_0x789c9a(0x204)]){const _0x4ea1c7=_0xfcbb74[_0x789c9a(0x20b)][_0x789c9a(0x20e)](({item:_0x3d3d2c})=>!_0x22dc51[_0x789c9a(0x20a)][_0x789c9a(0x21b)](_0x3d3d2c),{'boundaries':_0xfcbb74});_0xfcbb74=_0x34dc0e[_0x789c9a(0x233)](_0x4ea1c7,_0xfcbb74[_0x789c9a(0x207)]);}_0x34dc0e[_0x789c9a(0x22d)](_0x20bd4d,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0xfcbb74}),_0x49c309++;}}),window[_0x4704ed(0x1d9)]()?.[_0x4704ed(0x1f3)](),!0x0;}[_0x48f16f(0x240)](_0x24c45e){const _0x22184c=_0x48f16f;if(this[_0x22184c(0x1d1)]!=_0x24c45e)return!0x1;this[_0x22184c(0x1d1)]=null,this[_0x22184c(0x1dd)]=!0x1;const _0x4586a2=_0x10170b(this[_0x22184c(0x1d5)]),_0x41fee5=_0x4586a2[_0x22184c(0x1fa)][_0x22184c(0x1fd)][_0x22184c(0x23c)](_0x22184c(0x223));return _0x4586a2[_0x22184c(0x1fa)][_0x22184c(0x21a)](_0x29dd5a=>{const _0x468dd3=_0x22184c;for(const _0x1d371a of _0x41fee5)_0x29dd5a[_0x468dd3(0x200)](_0x1d371a);}),!0x0;}async[_0x48f16f(0x208)](_0x36c2ab){const _0x4b4cb2=_0x48f16f,_0x10386a=_0x10170b(this[_0x4b4cb2(0x1d5)]),_0x29093c=_0x10386a[_0x4b4cb2(0x1f5)][_0x4b4cb2(0x1f6)](_0x36c2ab),_0x55b524=new _0x3a1608(_0x10386a[_0x4b4cb2(0x1e6)][_0x4b4cb2(0x1ed)][_0x4b4cb2(0x209)]);return this[_0x4b4cb2(0x1ec)](_0x29093c,_0x55b524),this[_0x4b4cb2(0x1fc)](_0x29093c);}[_0x48f16f(0x1ec)](_0x4288d5,_0x91da9c){const _0x3dcf7b=_0x48f16f;let _0x10d80d=!0x1;const _0x8eac7e=new Set();for(const _0x8c6bb2 of _0x4288d5[_0x3dcf7b(0x1d4)]()){const _0x15ed7b=_0x8c6bb2['is'](_0x3dcf7b(0x22b))||_0x8c6bb2['is'](_0x3dcf7b(0x1f2));if(!_0x8c6bb2['is'](_0x3dcf7b(0x211)))continue;(this[_0x3dcf7b(0x1ec)](_0x8c6bb2,_0x91da9c)||_0x15ed7b)&&(_0x91da9c[_0x3dcf7b(0x21e)](_0x3dcf7b(0x1fb),this[_0x3dcf7b(0x1e2)](_0x8eac7e),_0x8c6bb2),_0x10d80d=!0x0);}return _0x10d80d;}[_0x48f16f(0x1e2)](_0x5b21d9){const _0x8f3328=_0x48f16f;let _0x5c93ce;do{_0x5c93ce='';for(let _0x28b6ae=0x0;_0x28b6ae<0x4;_0x28b6ae++)_0x5c93ce+=String[_0x8f3328(0x20f)](0x61+Math[_0x8f3328(0x1d8)](0x1a*Math[_0x8f3328(0x214)]()));}while(_0x5b21d9[_0x8f3328(0x215)](_0x5c93ce));return _0x5b21d9[_0x8f3328(0x232)](_0x5c93ce),_0x5c93ce;}[_0x48f16f(0x23f)](){const _0x39b289=_0x48f16f,{model:_0x90e41}=_0x10170b(this[_0x39b289(0x1d5)]),_0x1ff2eb=_0x90e41[_0x39b289(0x209)][_0x39b289(0x238)],_0x3491a6=[];for(const _0x1a10e2 of _0x1ff2eb[_0x39b289(0x206)]())for(const _0xd0a0a6 of _0x1a10e2[_0x39b289(0x203)]())_0xd0a0a6['is'](_0x39b289(0x1ce))?_0x3491a6[_0x39b289(0x227)](_0xd0a0a6[_0x39b289(0x1f5)]):_0xd0a0a6['is'](_0x39b289(0x211))&&_0x3491a6[_0x39b289(0x22c)]>0x0&&'\x20'!==_0x3491a6[_0x3491a6[_0x39b289(0x22c)]-0x1]&&_0x3491a6[_0x39b289(0x227)]('\x20');return _0x3491a6[_0x39b289(0x22c)]?'\x22'+_0x3491a6[_0x39b289(0x1d3)]('')[_0x39b289(0x231)]()+'\x22':_0x51c60a(this[_0x39b289(0x1d5)][_0x39b289(0x20c)],_0x39b289(0x1f8));}[_0x48f16f(0x1e4)](){const _0x4398f9=_0x48f16f,_0x34756d=_0x10170b(this[_0x4398f9(0x1d5)])[_0x4398f9(0x1fa)];return Array[_0x4398f9(0x229)](_0x34756d[_0x4398f9(0x1fd)][_0x4398f9(0x23c)](_0x4398f9(0x223)))[_0x4398f9(0x20d)]((_0x2a22a8,_0x5c4f29)=>_0x2a22a8[_0x4398f9(0x217)]()[_0x4398f9(0x202)](_0x5c4f29[_0x4398f9(0x217)]())?-0x1:_0x2a22a8[_0x4398f9(0x217)]()[_0x4398f9(0x1f9)](_0x5c4f29[_0x4398f9(0x217)]())?0x1:0x0);}}
23
+ const _0x44cccc=_0x41af;(function(_0x14764c,_0x41ca07){const _0x2f4919=_0x41af,_0x3eccb3=_0x14764c();while(!![]){try{const _0x8ac64c=-parseInt(_0x2f4919(0x10d))/0x1*(-parseInt(_0x2f4919(0x125))/0x2)+parseInt(_0x2f4919(0x153))/0x3+-parseInt(_0x2f4919(0x115))/0x4*(parseInt(_0x2f4919(0x100))/0x5)+-parseInt(_0x2f4919(0x142))/0x6*(-parseInt(_0x2f4919(0x13c))/0x7)+parseInt(_0x2f4919(0x101))/0x8+-parseInt(_0x2f4919(0x10c))/0x9*(parseInt(_0x2f4919(0x106))/0xa)+parseInt(_0x2f4919(0x111))/0xb*(parseInt(_0x2f4919(0x167))/0xc);if(_0x8ac64c===_0x41ca07)break;else _0x3eccb3['push'](_0x3eccb3['shift']());}catch(_0x436a42){_0x3eccb3['push'](_0x3eccb3['shift']());}}}(_0x1381,0x1d46e));import{ViewDowncastWriter as _0x4e02c2}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x275c7e,Editor as _0x17004b}from'ckeditor5/src/core.js';import{uid as _0xb0d081}from'ckeditor5/src/utils.js';import{getTranslation as _0xeb9a9a}from'./utils/common-translations.js';import{getEditorFromContext as _0x4014aa}from'./utils/geteditorfromcontext.js';function _0x41af(_0xadafeb,_0x396476){const _0x1381d4=_0x1381();return _0x41af=function(_0x41afd3,_0x118f79){_0x41afd3=_0x41afd3-0xfe;let _0xae5acf=_0x1381d4[_0x41afd3];return _0xae5acf;},_0x41af(_0xadafeb,_0x396476);}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x44cccc(0x16d);export class AIEditing extends _0x275c7e{constructor(_0x209e93){const _0x558e6f=_0x44cccc;super(_0x209e93),this[_0x558e6f(0x132)][_0x558e6f(0x160)][_0x558e6f(0x156)](_0x558e6f(0x146),!0x0);}[_0x44cccc(0x166)];[_0x44cccc(0x107)]=null;[_0x44cccc(0x123)]=!0x1;[_0x44cccc(0x131)];static get[_0x44cccc(0x137)](){const _0x2072b=_0x44cccc;return _0x2072b(0x154);}static get[_0x44cccc(0x171)](){return!0x0;}static get[_0x44cccc(0x10e)](){return!0x0;}get[_0x44cccc(0x151)](){const _0x1cd851=_0x44cccc;if(!this[_0x1cd851(0x131)]){const _0x2951a6=_0x4014aa(this[_0x1cd851(0x132)]),_0x582dd1=_0x2951a6[_0x1cd851(0x122)][_0x1cd851(0x16f)](_0x1cd851(0x114))&&_0x2951a6[_0x1cd851(0x122)][_0x1cd851(0x15f)](_0x1cd851(0x114))[_0x1cd851(0x151)];this[_0x1cd851(0x131)]=_0x582dd1||_0xb0d081();}return this[_0x1cd851(0x131)];}async[_0x44cccc(0x105)](){const _0x199d78=_0x44cccc,_0x92245f=_0x4014aa(this[_0x199d78(0x132)]),_0x1ab574=_0x92245f[_0x199d78(0x12f)],_0x4f2fc9=_0x92245f[_0x199d78(0x158)][_0x199d78(0x162)](_0x1ab574[_0x199d78(0x157)][_0x199d78(0x120)](),{'convertAiChatSelectionMarker':!0x0}),_0x39477c=new _0x4e02c2(_0x92245f[_0x199d78(0x138)][_0x199d78(0x13a)][_0x199d78(0x157)]);this[_0x199d78(0x119)](_0x4f2fc9,_0x39477c);let _0x3311ba=await this[_0x199d78(0x168)](_0x4f2fc9);const _0x553ba7=this[_0x199d78(0x13d)](),_0x3c4af8=[];for(const _0x518690 of _0x553ba7){const _0x4a3244='<'+_0x518690[_0x199d78(0x10b)]+_0x199d78(0x12a)+_0x518690[_0x199d78(0x10b)]+_0x199d78(0x15e),_0x21946d=_0x3311ba[_0x199d78(0x144)](_0x4a3244);_0x3311ba=_0x3311ba[_0x199d78(0x150)](0x0,_0x21946d)+_0x3311ba[_0x199d78(0x150)](_0x21946d+_0x4a3244[_0x199d78(0x169)]);const _0x21c49f='<'+_0x518690[_0x199d78(0x10b)]+_0x199d78(0x14b)+_0x518690[_0x199d78(0x10b)]+_0x199d78(0x149),_0x12bbed=_0x3311ba[_0x199d78(0x144)](_0x21c49f);_0x3311ba=_0x3311ba[_0x199d78(0x150)](0x0,_0x12bbed)+_0x3311ba[_0x199d78(0x150)](_0x12bbed+_0x21c49f[_0x199d78(0x169)]),_0x3c4af8[_0x199d78(0x11e)]({'markerName':_0x518690[_0x199d78(0x10b)],'start':_0x21946d,'end':_0x12bbed,'htmlFragment':_0x3311ba[_0x199d78(0x150)](_0x21946d,_0x12bbed)});}return{'content':_0x3311ba,'version':_0x92245f[_0x199d78(0x12f)][_0x199d78(0x157)][_0x199d78(0x108)],'sessionId':this[_0x199d78(0x151)],'selections':_0x3c4af8};}async[_0x44cccc(0x172)](){const _0x430f60=_0x44cccc;this[_0x430f60(0x132)]instanceof _0x17004b?this[_0x430f60(0x16e)](this[_0x430f60(0x132)]):this[_0x430f60(0x155)](this[_0x430f60(0x132)][_0x430f60(0xfe)],_0x430f60(0x159),(_0x3949d8,_0x3725a5)=>{const _0x61744f=_0x430f60;_0x3725a5['on'](_0x61744f(0x139),()=>{const _0xce120b=_0x61744f;this[_0xce120b(0x16e)](_0x3725a5);});});}[_0x44cccc(0xff)](_0x5207ff){const _0x4ee4c5=_0x44cccc;this[_0x4ee4c5(0x166)]=_0x5207ff;}async[_0x44cccc(0x168)](_0x32a329){const _0x500970=_0x44cccc;let _0x5b5073;const _0x114244=_0x4014aa(this[_0x500970(0x132)]);if(this[_0x500970(0x166)]){const _0x40ee2e=_0x114244[_0x500970(0x158)][_0x500970(0x12e)][_0x500970(0x13b)][_0x500970(0x126)](_0x32a329),_0x576e08=await this[_0x500970(0x166)](_0x40ee2e);_0x5b5073=_0x114244[_0x500970(0x158)][_0x500970(0x12e)][_0x500970(0x16c)][_0x500970(0x10f)](_0x576e08);}else _0x5b5073=_0x114244[_0x500970(0x158)][_0x500970(0x12e)][_0x500970(0x16a)](_0x32a329);return _0x5b5073;}[_0x44cccc(0x16e)](_0x20e79a){const _0x126f61=_0x44cccc;_0x20e79a[_0x126f61(0x14a)][_0x126f61(0x127)](_0x126f61(0x12b))[_0x126f61(0x116)]({'model':_0x126f61(0x16d),'view':{'classes':[_0x126f61(0x133),_0x126f61(0x143)],'priority':0xc}}),_0x20e79a[_0x126f61(0x14a)][_0x126f61(0x127)](_0x126f61(0x110))[_0x126f61(0x109)]({'model':_0x126f61(0x16d),'view':(_0x299bc9,{writer:_0x2306eb,options:_0x256868})=>_0x256868[_0x126f61(0x117)]?_0x2306eb[_0x126f61(0x14e)](_0x299bc9[_0x126f61(0x102)]+':'+(_0x299bc9[_0x126f61(0x161)]?_0x126f61(0x11c):_0x126f61(0x12c))):null});}[_0x44cccc(0x15a)](_0x55ed40,_0x290c40,_0x3ff9ff=!0x1,_0x45b71f=!0x1){const _0x224d4c=_0x44cccc;if(this[_0x224d4c(0x123)]&&!_0x45b71f)return!0x1;const _0x38d084=_0x4014aa(this[_0x224d4c(0x132)])[_0x224d4c(0x12f)];return _0x38d084[_0x224d4c(0x11f)](_0x2781e0=>{const _0x544b71=_0x224d4c;this[_0x544b71(0x107)]&&this[_0x544b71(0x148)](this[_0x544b71(0x107)]),this[_0x544b71(0x107)]=_0x290c40,this[_0x544b71(0x123)]=_0x3ff9ff;let _0x4c127f=0x0;for(let _0x1c6129 of _0x55ed40){const _0x6e5f2=_0x544b71(0x163)+_0x4c127f;if(_0x1c6129[_0x544b71(0x11c)][_0x544b71(0x134)]){const _0x5c4ed1=_0x1c6129[_0x544b71(0x11c)][_0x544b71(0x170)](({item:_0x57c01a})=>!_0x38d084[_0x544b71(0x16b)][_0x544b71(0x15b)](_0x57c01a),{'boundaries':_0x1c6129});_0x1c6129=_0x2781e0[_0x544b71(0x104)](_0x5c4ed1,_0x1c6129[_0x544b71(0x12c)]);}_0x2781e0[_0x544b71(0x164)](_0x6e5f2,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1c6129}),_0x4c127f++;}}),window[_0x224d4c(0x165)]()?.[_0x224d4c(0x113)](),!0x0;}[_0x44cccc(0x148)](_0x3c9811){const _0x2150bc=_0x44cccc;if(this[_0x2150bc(0x107)]!=_0x3c9811)return!0x1;this[_0x2150bc(0x107)]=null,this[_0x2150bc(0x123)]=!0x1;const _0x58e127=_0x4014aa(this[_0x2150bc(0x132)]),_0x50ce19=_0x58e127[_0x2150bc(0x12f)][_0x2150bc(0x118)][_0x2150bc(0x147)](_0x2150bc(0x16d));return _0x58e127[_0x2150bc(0x12f)][_0x2150bc(0x11f)](_0x4e6782=>{const _0x8b1bab=_0x2150bc;for(const _0x30bde6 of _0x50ce19)_0x4e6782[_0x8b1bab(0x15d)](_0x30bde6);}),!0x0;}async[_0x44cccc(0x136)](_0x4b0a02){const _0x191dc4=_0x44cccc,_0xd8966a=_0x4014aa(this[_0x191dc4(0x132)]),_0x386097=_0xd8966a[_0x191dc4(0x158)][_0x191dc4(0x162)](_0x4b0a02),_0x19475c=new _0x4e02c2(_0xd8966a[_0x191dc4(0x138)][_0x191dc4(0x13a)][_0x191dc4(0x157)]);return this[_0x191dc4(0x119)](_0x386097,_0x19475c),this[_0x191dc4(0x168)](_0x386097);}[_0x44cccc(0x119)](_0x38dc36,_0x105305){const _0x3f5fa1=_0x44cccc;let _0x1b29c8=!0x1;const _0x1ca322=new Set();for(const _0x454919 of _0x38dc36[_0x3f5fa1(0x11b)]()){const _0x20aa15=_0x454919['is'](_0x3f5fa1(0x103))||_0x454919['is'](_0x3f5fa1(0x12d));if(!_0x454919['is'](_0x3f5fa1(0x11d)))continue;(this[_0x3f5fa1(0x119)](_0x454919,_0x105305)||_0x20aa15)&&(_0x105305[_0x3f5fa1(0x152)](_0x3f5fa1(0x11a),this[_0x3f5fa1(0x14d)](_0x1ca322),_0x454919),_0x1b29c8=!0x0);}return _0x1b29c8;}[_0x44cccc(0x14d)](_0x1e6af7){const _0x2e7cce=_0x44cccc;let _0x471afa;do{_0x471afa='';for(let _0x289625=0x0;_0x289625<0x4;_0x289625++)_0x471afa+=String[_0x2e7cce(0x14f)](0x61+Math[_0x2e7cce(0x10a)](0x1a*Math[_0x2e7cce(0x140)]()));}while(_0x1e6af7[_0x2e7cce(0x16f)](_0x471afa));return _0x1e6af7[_0x2e7cce(0x159)](_0x471afa),_0x471afa;}[_0x44cccc(0x141)](){const _0x22d6da=_0x44cccc,{model:_0x48943d}=_0x4014aa(this[_0x22d6da(0x132)]),_0x32a0e6=_0x48943d[_0x22d6da(0x157)][_0x22d6da(0x13f)],_0x5bd053=[];for(const _0x196ed6 of _0x32a0e6[_0x22d6da(0x129)]())for(const _0x3eeba7 of _0x196ed6[_0x22d6da(0x124)]())_0x3eeba7['is'](_0x22d6da(0x145))?_0x5bd053[_0x22d6da(0x11e)](_0x3eeba7[_0x22d6da(0x158)]):_0x3eeba7['is'](_0x22d6da(0x11d))&&_0x5bd053[_0x22d6da(0x169)]>0x0&&'\x20'!==_0x5bd053[_0x5bd053[_0x22d6da(0x169)]-0x1]&&_0x5bd053[_0x22d6da(0x11e)]('\x20');return _0x5bd053[_0x22d6da(0x169)]?'\x22'+_0x5bd053[_0x22d6da(0x173)]('')[_0x22d6da(0x130)]()+'\x22':_0xeb9a9a(this[_0x22d6da(0x132)][_0x22d6da(0x135)],_0x22d6da(0x121));}[_0x44cccc(0x13d)](){const _0x46a229=_0x44cccc,_0x4bcbfc=_0x4014aa(this[_0x46a229(0x132)])[_0x46a229(0x12f)];return Array[_0x46a229(0x112)](_0x4bcbfc[_0x46a229(0x118)][_0x46a229(0x147)](_0x46a229(0x16d)))[_0x46a229(0x128)]((_0x5a1216,_0x4014ff)=>_0x5a1216[_0x46a229(0x15c)]()[_0x46a229(0x13e)](_0x4014ff[_0x46a229(0x15c)]())?-0x1:_0x5a1216[_0x46a229(0x15c)]()[_0x46a229(0x14c)](_0x4014ff[_0x46a229(0x15c)]())?0x1:0x0);}}function _0x1381(){const _0x25db3d=['convertAiChatSelectionMarker','markers','_setDataIdsOnChildren','data-id','getChildren','start','element','push','change','getRoot','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','plugins','_displayedFakeSelectionLocked','getItems','6wLBFZA','viewToDom','for','sort','getRanges',':start></','editingDowncast','end','containerElement','processor','model','trim','_sessionId','context','ck-fake-ai-selection','isAtEnd','locale','modelToDataWithIds','pluginName','editing','ready','view','domConverter','5285esMgDV','_getMarkersInDocumentOrder','isBefore','selection','random','getSelectionText','870zkSXvX','ck-ai-assistant-ui_theme','indexOf','$textProxy','ai.models.showModelSelector','getMarkersGroup','hideFakeVisualSelection',':end>','conversion',':end></','isAfter','_nextDataId','createUIElement','fromCharCode','substring','sessionId','setAttribute','255372TDSPAp','AIEditing','listenTo','define','document','data','add','showFakeVisualSelection','isContent','getStart','removeMarker',':start>','get','config','isOpening','toView','ai-selection:','addMarker','getSelection','_outputDataProcessor','16332nercBp','_getDocumentDataStringFromView','length','toData','schema','htmlWriter','ai-selection','_integrateEditor','has','getLastMatchingPosition','isOfficialPlugin','afterInit','join','editors','_setOutputDataProcessor','43970oSWvjo','215024JFhYtm','markerName','emptyElement','createRange','getDocumentData','14860QoZybd','_displayedFakeSelectionId','version','markerToElement','floor','name','729VyqiJl','10282AIZOXA','isPremiumPlugin','getHtml','dataDowncast','187LAHsWL','from','removeAllRanges','RealTimeCollaborationClient','16gWUfWR','markerToHighlight'];_0x1381=function(){return _0x25db3d;};return _0x1381();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3fdb94=_0x5065;(function(_0x4428dc,_0x4de7df){const _0x3023a4=_0x5065,_0x50da00=_0x4428dc();while(!![]){try{const _0x33432a=-parseInt(_0x3023a4(0xbe))/0x1+parseInt(_0x3023a4(0xb7))/0x2+-parseInt(_0x3023a4(0xb1))/0x3*(parseInt(_0x3023a4(0xac))/0x4)+-parseInt(_0x3023a4(0xa9))/0x5+-parseInt(_0x3023a4(0xae))/0x6*(parseInt(_0x3023a4(0xbd))/0x7)+parseInt(_0x3023a4(0xbc))/0x8+parseInt(_0x3023a4(0xb8))/0x9;if(_0x33432a===_0x4de7df)break;else _0x50da00['push'](_0x50da00['shift']());}catch(_0x4a500c){_0x50da00['push'](_0x50da00['shift']());}}}(_0x3c6c,0xda261));import{EmitterMixin as _0xc02342}from'ckeditor5/src/utils.js';function _0x5065(_0x5dbbfd,_0x40dfd4){const _0x3c6cf7=_0x3c6c();return _0x5065=function(_0x5065c9,_0x484dc0){_0x5065c9=_0x5065c9-0xa6;let _0x5d921a=_0x3c6cf7[_0x5065c9];return _0x5d921a;},_0x5065(_0x5dbbfd,_0x40dfd4);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x3fdb94(0xa7)];export class AICapabilities extends _0xc02342(){[_0x3fdb94(0xb9)];[_0x3fdb94(0xa8)];constructor(){const _0x32affa=_0x3fdb94;super(),this[_0x32affa(0xb9)]=!0x1,this[_0x32affa(0xa8)]=!0x1;}[_0x3fdb94(0xab)](){const _0x41b632=_0x3fdb94;this[_0x41b632(0xaf)]();}[_0x3fdb94(0xaf)](){const _0x3cd529=_0x3fdb94;this[_0x3cd529(0xba)](!0x1),this[_0x3cd529(0xb6)](!0x1);}[_0x3fdb94(0xbb)](){const _0x1f6b0a=_0x3fdb94;return{'isWebSearchEnabled':this[_0x1f6b0a(0xb9)],'isReasoningEnabled':this[_0x1f6b0a(0xa8)]};}static[_0x3fdb94(0xb3)](_0x4033bd){const _0x1b1234=_0x3fdb94,_0xc2bdfd={};return _0x4033bd&&_0x4033bd[_0x1b1234(0xb0)]&&(_0xc2bdfd[_0x1b1234(0xaa)]={}),_0x4033bd&&_0x4033bd[_0x1b1234(0xad)]&&(_0xc2bdfd[_0x1b1234(0xb2)]={}),_0xc2bdfd;}[_0x3fdb94(0xb4)](){const _0x1d3426=_0x3fdb94;this[_0x1d3426(0xba)](!this[_0x1d3426(0xb9)]);}[_0x3fdb94(0xa6)](){const _0x50a149=_0x3fdb94;this[_0x50a149(0xb6)](!this[_0x50a149(0xa8)]);}[_0x3fdb94(0xba)](_0x597081){const _0x10d9b2=_0x3fdb94;_0x597081!==this[_0x10d9b2(0xb9)]&&(this[_0x10d9b2(0xb9)]=_0x597081,this[_0x10d9b2(0xb5)](_0x10d9b2(0xa7),this[_0x10d9b2(0xbb)]()));}[_0x3fdb94(0xb6)](_0x2d6888){const _0x3e83de=_0x3fdb94;_0x2d6888!==this[_0x3e83de(0xa8)]&&(this[_0x3e83de(0xa8)]=_0x2d6888,this[_0x3e83de(0xb5)](_0x3e83de(0xa7),this[_0x3e83de(0xbb)]()));}}function _0x3c6c(){const _0xa3cd12=['isReasoningEnabled','606702yWIMJp','reset','isWebSearchEnabled','114609OQyXKj','reasoning','getCapabilitiesRequestData','toggleWebSearch','fire','setReasoning','1026008YKfmsw','24507693ZyjwvW','_isWebSearchEnabled','setWebSearch','getCapabilitiesConfig','8329208HpJefD','84xUvrvy','691367UarQCE','toggleReasoning','capabilitiesUpdated','_isReasoningEnabled','5102440OdPXZG','webSearch','init','48YnQsOH'];_0x3c6c=function(){return _0xa3cd12;};return _0x3c6c();}
23
+ const _0x58f0ff=_0x2902;function _0x2f84(){const _0x387420=['isWebSearchEnabled','13215444clLiTM','20487hbmSEI','40HdyNOZ','194riKbDr','getCapabilitiesConfig','toggleReasoning','1289040xXSthk','_isReasoningEnabled','reset','isReasoningEnabled','344673QUXskP','getCapabilitiesRequestData','27cfASqE','1390430xQWdqz','_isWebSearchEnabled','setWebSearch','capabilitiesUpdated','init','setReasoning','126044ICvePE','35OeBIqs','toggleWebSearch','reasoning','webSearch','fire','260732AoelQi'];_0x2f84=function(){return _0x387420;};return _0x2f84();}function _0x2902(_0x5ba0a8,_0x572c5b){const _0x2f8446=_0x2f84();return _0x2902=function(_0x290282,_0x5e1667){_0x290282=_0x290282-0x1d5;let _0x1a7ca2=_0x2f8446[_0x290282];return _0x1a7ca2;},_0x2902(_0x5ba0a8,_0x572c5b);}(function(_0x433472,_0x2b6112){const _0x1b3f8a=_0x2902,_0x406d0e=_0x433472();while(!![]){try{const _0x2802ed=-parseInt(_0x1b3f8a(0x1d6))/0x1+-parseInt(_0x1b3f8a(0x1e1))/0x2*(-parseInt(_0x1b3f8a(0x1df))/0x3)+parseInt(_0x1b3f8a(0x1dc))/0x4*(parseInt(_0x1b3f8a(0x1d7))/0x5)+parseInt(_0x1b3f8a(0x1e4))/0x6+parseInt(_0x1b3f8a(0x1e8))/0x7*(parseInt(_0x1b3f8a(0x1e0))/0x8)+-parseInt(_0x1b3f8a(0x1ea))/0x9*(-parseInt(_0x1b3f8a(0x1eb))/0xa)+-parseInt(_0x1b3f8a(0x1de))/0xb;if(_0x2802ed===_0x2b6112)break;else _0x406d0e['push'](_0x406d0e['shift']());}catch(_0x57ce77){_0x406d0e['push'](_0x406d0e['shift']());}}}(_0x2f84,0xa36e2));import{EmitterMixin as _0x1f38be}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x58f0ff(0x1ee)];export class AICapabilities extends _0x1f38be(){[_0x58f0ff(0x1ec)];[_0x58f0ff(0x1e5)];constructor(){const _0x3eeb8a=_0x58f0ff;super(),this[_0x3eeb8a(0x1ec)]=!0x1,this[_0x3eeb8a(0x1e5)]=!0x1;}[_0x58f0ff(0x1ef)](){const _0x4046d8=_0x58f0ff;this[_0x4046d8(0x1e6)]();}[_0x58f0ff(0x1e6)](){const _0x24f180=_0x58f0ff;this[_0x24f180(0x1ed)](!0x1),this[_0x24f180(0x1d5)](!0x1);}[_0x58f0ff(0x1e2)](){const _0x4e8d72=_0x58f0ff;return{'isWebSearchEnabled':this[_0x4e8d72(0x1ec)],'isReasoningEnabled':this[_0x4e8d72(0x1e5)]};}static[_0x58f0ff(0x1e9)](_0xea3165){const _0x2bfd77=_0x58f0ff,_0x244367={};return _0xea3165&&_0xea3165[_0x2bfd77(0x1dd)]&&(_0x244367[_0x2bfd77(0x1da)]={}),_0xea3165&&_0xea3165[_0x2bfd77(0x1e7)]&&(_0x244367[_0x2bfd77(0x1d9)]={}),_0x244367;}[_0x58f0ff(0x1d8)](){const _0x5cdad1=_0x58f0ff;this[_0x5cdad1(0x1ed)](!this[_0x5cdad1(0x1ec)]);}[_0x58f0ff(0x1e3)](){const _0x2a0b58=_0x58f0ff;this[_0x2a0b58(0x1d5)](!this[_0x2a0b58(0x1e5)]);}[_0x58f0ff(0x1ed)](_0x15eff6){const _0x29f48a=_0x58f0ff;_0x15eff6!==this[_0x29f48a(0x1ec)]&&(this[_0x29f48a(0x1ec)]=_0x15eff6,this[_0x29f48a(0x1db)](_0x29f48a(0x1ee),this[_0x29f48a(0x1e2)]()));}[_0x58f0ff(0x1d5)](_0x564570){const _0x30f850=_0x58f0ff;_0x564570!==this[_0x30f850(0x1e5)]&&(this[_0x30f850(0x1e5)]=_0x564570,this[_0x30f850(0x1db)](_0x30f850(0x1ee),this[_0x30f850(0x1e2)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x281389,_0x57e5df){var _0x36928c=_0x5671,_0x24e10c=_0x281389();while(!![]){try{var _0x16f189=-parseInt(_0x36928c(0x12c))/0x1+-parseInt(_0x36928c(0x12f))/0x2+-parseInt(_0x36928c(0x138))/0x3*(-parseInt(_0x36928c(0x11f))/0x4)+-parseInt(_0x36928c(0x132))/0x5*(parseInt(_0x36928c(0x123))/0x6)+-parseInt(_0x36928c(0x12d))/0x7*(parseInt(_0x36928c(0x120))/0x8)+-parseInt(_0x36928c(0x127))/0x9+-parseInt(_0x36928c(0x122))/0xa*(-parseInt(_0x36928c(0x133))/0xb);if(_0x16f189===_0x57e5df)break;else _0x24e10c['push'](_0x24e10c['shift']());}catch(_0x4693e1){_0x24e10c['push'](_0x24e10c['shift']());}}}(_0x3aa9,0xc62fa));export var AIContextItemType;!function(_0x42aecc){var _0x2ddf3c=_0x5671;_0x42aecc[_0x2ddf3c(0x128)]=_0x2ddf3c(0x125),_0x42aecc[_0x2ddf3c(0x126)]=_0x2ddf3c(0x131),_0x42aecc[_0x2ddf3c(0x11e)]=_0x2ddf3c(0x135),_0x42aecc[_0x2ddf3c(0x121)]=_0x2ddf3c(0x134),_0x42aecc[_0x2ddf3c(0x12e)]=_0x2ddf3c(0x129),_0x42aecc[_0x2ddf3c(0x136)]=_0x2ddf3c(0x137);}(AIContextItemType||(AIContextItemType={}));function _0x5671(_0x40e0a2,_0x33c345){var _0x3aa9b3=_0x3aa9();return _0x5671=function(_0x56713e,_0x3d4c97){_0x56713e=_0x56713e-0x11e;var _0x49c310=_0x3aa9b3[_0x56713e];return _0x49c310;},_0x5671(_0x40e0a2,_0x33c345);}export var AIContextTextResourceType;!function(_0x435049){var _0x14a619=_0x5671;_0x435049[_0x14a619(0x12e)]=_0x14a619(0x129),_0x435049[_0x14a619(0x12b)]=_0x14a619(0x124),_0x435049[_0x14a619(0x12a)]=_0x14a619(0x130);}(AIContextTextResourceType||(AIContextTextResourceType={}));function _0x3aa9(){var _0x389c6a=['selection','1061274kbfMmD','DOCUMENT','16suWfcA','30776kTQolO','URL','920bSJOxl','480RshvLu','markdown','mcp-tool-context','FILE','6328098dKcEIE','TOOL','text','HTML','MARKDOWN','1441998nWRmdh','588FPHbxf','TEXT','2358796wZcDIr','html','file','49310RFXqiD','458337MScPcr','web-resource','document','SELECTION'];_0x3aa9=function(){return _0x389c6a;};return _0x3aa9();}
23
+ function _0x31ce(_0x19f738,_0x5c0cad){var _0x5e8d5f=_0x5e8d();return _0x31ce=function(_0x31ce48,_0x165e2c){_0x31ce48=_0x31ce48-0x171;var _0x29a2da=_0x5e8d5f[_0x31ce48];return _0x29a2da;},_0x31ce(_0x19f738,_0x5c0cad);}(function(_0x2706bb,_0x106bc6){var _0x35caa9=_0x31ce,_0x520818=_0x2706bb();while(!![]){try{var _0x445148=parseInt(_0x35caa9(0x182))/0x1+parseInt(_0x35caa9(0x17d))/0x2*(parseInt(_0x35caa9(0x17a))/0x3)+parseInt(_0x35caa9(0x177))/0x4*(-parseInt(_0x35caa9(0x171))/0x5)+parseInt(_0x35caa9(0x187))/0x6+parseInt(_0x35caa9(0x183))/0x7*(parseInt(_0x35caa9(0x174))/0x8)+-parseInt(_0x35caa9(0x175))/0x9+-parseInt(_0x35caa9(0x179))/0xa*(-parseInt(_0x35caa9(0x17e))/0xb);if(_0x445148===_0x106bc6)break;else _0x520818['push'](_0x520818['shift']());}catch(_0x5790f1){_0x520818['push'](_0x520818['shift']());}}}(_0x5e8d,0xb7651));export var AIContextItemType;function _0x5e8d(){var _0x58b04b=['2cPCxjH','1788853KKKDPr','selection','DOCUMENT','FILE','1163888cPWNyu','3354561ZkirJi','html','file','SELECTION','615168nraiGO','URL','web-resource','mcp-tool-context','HTML','858580qCvlom','markdown','text','8EbNkMu','11966499XURpPU','TEXT','8FwfKai','TOOL','40pWZuGA','84291UHUlUp','document','MARKDOWN'];_0x5e8d=function(){return _0x58b04b;};return _0x5e8d();}!function(_0x690dcb){var _0x27630b=_0x31ce;_0x690dcb[_0x27630b(0x178)]=_0x27630b(0x18a),_0x690dcb[_0x27630b(0x181)]=_0x27630b(0x185),_0x690dcb[_0x27630b(0x180)]=_0x27630b(0x17b),_0x690dcb[_0x27630b(0x188)]=_0x27630b(0x189),_0x690dcb[_0x27630b(0x176)]=_0x27630b(0x173),_0x690dcb[_0x27630b(0x186)]=_0x27630b(0x17f);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x4583cb){var _0x1a696f=_0x31ce;_0x4583cb[_0x1a696f(0x176)]=_0x1a696f(0x173),_0x4583cb[_0x1a696f(0x17c)]=_0x1a696f(0x172),_0x4583cb[_0x1a696f(0x18b)]=_0x1a696f(0x184);}(AIContextTextResourceType||(AIContextTextResourceType={}));