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

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
- function _0x47ad(_0x5f0850,_0x3b9ffa){const _0x4e8f27=_0x4e8f();return _0x47ad=function(_0x47adf7,_0x515f2d){_0x47adf7=_0x47adf7-0x13c;let _0xd2c181=_0x4e8f27[_0x47adf7];return _0xd2c181;},_0x47ad(_0x5f0850,_0x3b9ffa);}const _0x533d87=_0x47ad;(function(_0xbccaef,_0x2ecd6e){const _0x23024f=_0x47ad,_0x349ca8=_0xbccaef();while(!![]){try{const _0x20701c=parseInt(_0x23024f(0x18c))/0x1*(parseInt(_0x23024f(0x168))/0x2)+parseInt(_0x23024f(0x19c))/0x3*(parseInt(_0x23024f(0x155))/0x4)+parseInt(_0x23024f(0x153))/0x5+-parseInt(_0x23024f(0x190))/0x6+-parseInt(_0x23024f(0x145))/0x7+parseInt(_0x23024f(0x143))/0x8+-parseInt(_0x23024f(0x149))/0x9*(parseInt(_0x23024f(0x196))/0xa);if(_0x20701c===_0x2ecd6e)break;else _0x349ca8['push'](_0x349ca8['shift']());}catch(_0x5d153){_0x349ca8['push'](_0x349ca8['shift']());}}}(_0x4e8f,0x8a523));function _0x4e8f(){const _0x3cf16f=['_createCancelEditButtonView','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','1528170vFLIEL','focus','ck-confirm-view-cancel','AI_CHAT_HISTORY_CANCEL','execute','ck-ai-chat-history__item-title','8430800ctyzVR','ck-confirm-view-submit','element','text','AI_CHAT_HISTORY_REMOVE_CONFIRM','_createEditInputView','12uwSUZF','change:isEdit','ck-hidden','div','set','isMatching','mainContent','_createAcceptEditButtonView','key','113112urQtpk','withText','2235541sFtmSe','span','label','listitem','18nntSJo','pinned','_createMenuDropdownView','fire','locale','buttonView','isVisible','bindTemplate','click','_createCheckView','4525425ZSNNDg','ck-ai-chat-history__item--edit','1080952iLBzBh','ck-ai-chat-history__item-content','ck-ai-chat-history__item-check-container','AI_CHAT_HISTORY_REMOVE','actions','children','AI_CHAT_HISTORY_EDIT_NAME','selectConversation','ck-ai-chat-history__item-actions','AI_CHAT_HISTORY_LOADING_REMOVING','items','value','showConfirm','edit:cancel','ck-ai-loader','updateLoadingState','ck-ai-loader__text','clear','ck-ai-chat-history__item','3510aOdwyl','loadingState','updateTitle','string','createCollection','isEdit','_createPinButtonView','ck-ai-chat-history__item-check','isOn','removeConversation','match','ck-ai-chat-history__item-row','extendTemplate','_createSpinnerView','editConversationTitle','then','bind','add','setConversationPinned','ck-ai-chat-history__item-date','addMany','setTemplate','highlightText','AI_CHAT_HISTORY_LOADING_PINNING','_commitEditInputValue','AI_CHAT_HISTORY_PIN_BUTTON','Enter','AI_CHAT_HISTORY_LOADING_RENAMING','_titleView','ck-ai-chat-history__item--active','LOADING_LABELS','tiny','ck-ai-chat-history__item-main-content','panelPosition','AI_CHAT_HISTORY_LOADING_UNPINNING','panelView','471imczjq','AI_CHAT_HISTORY_ACCEPT'];_0x4e8f=function(){return _0x3cf16f;};return _0x4e8f();}import{ListItemView as _0x2130de,HighlightedTextView as _0x16eec8,ButtonView as _0x72a98a,ListView as _0x27eee7,IconView as _0x2ec1d2,createDropdown as _0xc312bd,InputTextView as _0x1c05d8}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x2b17ee,IconPin as _0x358ce2,IconCheck as _0x1efb0,IconCancel as _0x3d0aeb}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x375fe7,ConfirmMixin as _0x1b07c8}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x138437}from'es-toolkit/compat';import{AISpinnerView as _0x1cb218}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x1e1fd3}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
- _0x1b07c8(_0x2130de){['id'];static [_0x533d87(0x186)]={'remove':_0x533d87(0x15e),'rename':_0x533d87(0x183),'pin':_0x533d87(0x17f),'unpin':_0x533d87(0x18a)};[_0x533d87(0x159)];[_0x533d87(0x140)];[_0x533d87(0x184)];constructor(_0x1526ab,_0x5abd4a){const _0x2c99cb=_0x533d87;super(_0x1526ab);const _0x3fe5b9=this[_0x2c99cb(0x150)];this[_0x2c99cb(0x13e)](_0x2c99cb(0x16d),!0x1),this[_0x2c99cb(0x13e)](_0x2c99cb(0x14f),!0x0),this[_0x2c99cb(0x13e)](_0x2c99cb(0x14a),!!_0x5abd4a[_0x2c99cb(0x14a)]),this[_0x2c99cb(0x13e)](_0x2c99cb(0x169),null),this['id']=_0x5abd4a['id'];const {title:_0x16edc6,createdAt:_0x368214,active:_0x11be7a=!0x1}=_0x5abd4a;this[_0x2c99cb(0x184)]=new _0x16eec8(),this[_0x2c99cb(0x184)][_0x2c99cb(0x199)]=_0x16edc6,this[_0x2c99cb(0x184)][_0x2c99cb(0x174)]({'attributes':{'class':[_0x2c99cb(0x195)]}});const _0x40d17c=this[_0x2c99cb(0x152)](),_0x57b352=this[_0x2c99cb(0x16e)](_0x1526ab),_0x21f5ed=this[_0x2c99cb(0x14b)](),_0x347b9c=this[_0x2c99cb(0x19b)](_0x1526ab,_0x16edc6),_0x5ed783=this[_0x2c99cb(0x141)](_0x1526ab,_0x347b9c),_0x56d80c=this[_0x2c99cb(0x18e)](_0x1526ab,_0x347b9c);this[_0x2c99cb(0x159)]=this[_0x2c99cb(0x16c)](),this[_0x2c99cb(0x140)]=this[_0x2c99cb(0x16c)](),this[_0x2c99cb(0x140)][_0x2c99cb(0x179)](this[_0x2c99cb(0x184)]),this[_0x2c99cb(0x159)][_0x2c99cb(0x179)](_0x57b352),this[_0x2c99cb(0x159)][_0x2c99cb(0x179)](_0x21f5ed),this['on'](_0x2c99cb(0x19d),(_0x30f724,_0x2fd7d5,_0x1d69d1)=>{const _0x9b2300=_0x2c99cb;this[_0x9b2300(0x159)][_0x9b2300(0x166)](),this[_0x9b2300(0x140)][_0x9b2300(0x166)](),_0x1d69d1?(this[_0x9b2300(0x159)][_0x9b2300(0x179)](_0x5ed783),this[_0x9b2300(0x159)][_0x9b2300(0x179)](_0x56d80c),this[_0x9b2300(0x140)][_0x9b2300(0x179)](_0x347b9c),_0x347b9c[_0x9b2300(0x198)][_0x9b2300(0x191)]()):(this[_0x9b2300(0x159)][_0x9b2300(0x179)](_0x57b352),this[_0x9b2300(0x159)][_0x9b2300(0x179)](_0x21f5ed),this[_0x9b2300(0x140)][_0x9b2300(0x179)](this[_0x9b2300(0x184)]));}),this[_0x2c99cb(0x17d)]({'tag':'li','attributes':{'class':[_0x2c99cb(0x167),_0x11be7a?_0x2c99cb(0x185):'',_0x3fe5b9['if'](_0x2c99cb(0x14f),_0x2c99cb(0x13c),_0x55c4f9=>!_0x55c4f9),_0x3fe5b9['if'](_0x2c99cb(0x16d),_0x2c99cb(0x154))],'role':_0x2c99cb(0x148)},'children':[{'tag':_0x2c99cb(0x146),'attributes':{'class':[_0x2c99cb(0x157)]},'children':[{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x16f),_0x3fe5b9['if'](_0x2c99cb(0x169),_0x2c99cb(0x13c),_0x19798a=>!!_0x19798a)]},'children':_0x11be7a?[_0x40d17c]:[]},{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x163),_0x3fe5b9['if'](_0x2c99cb(0x169),_0x2c99cb(0x13c),_0x1dd05c=>!_0x1dd05c)]},'children':[this[_0x2c99cb(0x175)]()]}]},{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x173)]},'children':[{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x156)]},'on':{'click':this[_0x2c99cb(0x150)]['to'](_0x2c99cb(0x151))},'children':[{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x188)]},'children':[{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x195),_0x3fe5b9['if'](_0x2c99cb(0x169),_0x2c99cb(0x13c),_0x2084b6=>!!_0x2084b6)]},'children':this[_0x2c99cb(0x140)]},{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x165),_0x3fe5b9['if'](_0x2c99cb(0x169),_0x2c99cb(0x13c),_0x598084=>!_0x598084)]},'children':[{'text':_0x3fe5b9['to'](_0x2c99cb(0x169),_0x4b9f38=>_0x4b9f38?_0x1e1fd3(this[_0x2c99cb(0x14d)],AIChatHistoryListItemView[_0x2c99cb(0x186)][_0x4b9f38]):'')}]}]},{'tag':_0x2c99cb(0x146),'attributes':{'class':[_0x2c99cb(0x17b)]},'children':[_0x368214]}]},{'tag':_0x2c99cb(0x13d),'attributes':{'class':[_0x2c99cb(0x15d)]},'children':this[_0x2c99cb(0x159)]}]}]}),this['on'](_0x2c99cb(0x151),()=>{const _0x260f80=_0x2c99cb;this[_0x260f80(0x16d)]||this[_0x260f80(0x14c)](_0x260f80(0x15c),{'id':this['id']});});}[_0x533d87(0x16a)](_0x295551){const _0x559514=_0x533d87;this[_0x559514(0x184)][_0x559514(0x199)]=_0x138437(_0x295551);}[_0x533d87(0x164)](_0x390320,_0x7eafba){const _0x1445a6=_0x533d87;this[_0x1445a6(0x13e)](_0x1445a6(0x169),_0x7eafba?_0x390320:null);}[_0x533d87(0x152)](){const _0x249bdd=_0x533d87,_0x441f0e=new _0x2ec1d2();return _0x441f0e[_0x249bdd(0x13e)]({'content':_0x1efb0}),_0x441f0e;}[_0x533d87(0x16e)](_0x53c784){const _0x25c09f=_0x533d87,_0xf41867=new _0x72a98a(_0x53c784);return _0xf41867[_0x25c09f(0x13e)]({'label':_0x1e1fd3(_0x53c784,_0x25c09f(0x181)),'icon':_0x358ce2,'withText':!0x1,'tooltip':!0x0}),_0xf41867[_0x25c09f(0x178)](_0x25c09f(0x170))['to'](this,_0x25c09f(0x14a)),_0xf41867['on'](_0x25c09f(0x194),()=>{const _0x4cd60f=_0x25c09f,_0xe4df92=!this[_0x4cd60f(0x14a)];this[_0x4cd60f(0x14c)](_0x4cd60f(0x17a),{'id':this['id'],'pinned':_0xe4df92});}),_0xf41867;}[_0x533d87(0x14b)](){const _0x26e754=_0x533d87,_0x98aad=_0xc312bd(this[_0x26e754(0x14d)],_0x375fe7),_0x2e8e2a=_0x98aad[_0x26e754(0x18b)][_0x26e754(0x15a)];_0x98aad[_0x26e754(0x14e)][_0x26e754(0x13e)]({'label':_0x1e1fd3(this[_0x26e754(0x14d)],_0x26e754(0x18f)),'icon':_0x2b17ee}),_0x98aad[_0x26e754(0x189)]='sw';const _0x41d6fe=new _0x72a98a(this[_0x26e754(0x14d)]);_0x41d6fe[_0x26e754(0x147)]=_0x1e1fd3(this[_0x26e754(0x14d)],_0x26e754(0x15b)),_0x41d6fe[_0x26e754(0x144)]=!0x0,_0x41d6fe['on'](_0x26e754(0x194),()=>{const _0x5bea58=_0x26e754;this[_0x5bea58(0x16d)]=!0x0;});const _0x3214be=new _0x72a98a(this[_0x26e754(0x14d)]);_0x3214be[_0x26e754(0x147)]=_0x1e1fd3(this[_0x26e754(0x14d)],_0x26e754(0x158)),_0x3214be[_0x26e754(0x144)]=!0x0,_0x3214be['on'](_0x26e754(0x194),()=>{const _0x233c83=_0x26e754;this[_0x233c83(0x161)](_0x1e1fd3(this[_0x233c83(0x14d)],_0x233c83(0x19a)),this[_0x233c83(0x198)])[_0x233c83(0x177)](()=>{const _0x4feabb=_0x233c83;this[_0x4feabb(0x14c)](_0x4feabb(0x171),{'id':this['id']});});});const _0x313870=new _0x27eee7(this[_0x26e754(0x14d)]),_0x543846=new _0x2130de(this[_0x26e754(0x14d)]);_0x543846[_0x26e754(0x15a)][_0x26e754(0x179)](_0x41d6fe);const _0x599ec7=new _0x2130de(this[_0x26e754(0x14d)]);return _0x599ec7[_0x26e754(0x15a)][_0x26e754(0x179)](_0x3214be),_0x313870[_0x26e754(0x15f)][_0x26e754(0x17c)]([_0x543846,_0x599ec7]),_0x2e8e2a[_0x26e754(0x179)](_0x313870),_0x98aad;}[_0x533d87(0x19b)](_0x373064,_0x58b84f){const _0xc053d9=_0x533d87,_0x1f87d8=new _0x1c05d8(_0x373064),_0xb5269a=_0x1f87d8[_0xc053d9(0x150)];return _0x1f87d8[_0xc053d9(0x160)]=_0x58b84f,_0x1f87d8[_0xc053d9(0x174)]({'on':{'keydown':_0xb5269a['to'](_0x16fe62=>{const _0x47ab0b=_0xc053d9;_0x47ab0b(0x182)==_0x16fe62[_0x47ab0b(0x142)]&&this[_0x47ab0b(0x180)](_0x1f87d8);})}}),_0x1f87d8;}[_0x533d87(0x141)](_0x1e52c0,_0x41b907){const _0x2984c2=_0x533d87,_0x73fb00=new _0x72a98a(_0x1e52c0);return _0x73fb00[_0x2984c2(0x13e)]({'icon':_0x1efb0,'withText':!0x1,'tooltip':_0x1e1fd3(_0x1e52c0,_0x2984c2(0x18d))}),_0x73fb00[_0x2984c2(0x174)]({'attributes':{'class':[_0x2984c2(0x197)]}}),_0x73fb00['on'](_0x2984c2(0x194),()=>{const _0x4c44b2=_0x2984c2;this[_0x4c44b2(0x180)](_0x41b907);}),_0x73fb00;}[_0x533d87(0x180)](_0x50f503){const _0x116fc0=_0x533d87,_0x39c75f=_0x50f503[_0x116fc0(0x198)][_0x116fc0(0x160)]||'';this[_0x116fc0(0x184)][_0x116fc0(0x199)]=_0x39c75f,this[_0x116fc0(0x16d)]=!0x1,this[_0x116fc0(0x14c)](_0x116fc0(0x176),{'id':this['id'],'title':_0x39c75f});}[_0x533d87(0x18e)](_0x5304ee,_0x4ff3d5){const _0xfe7217=_0x533d87,_0x5229ce=new _0x72a98a(_0x5304ee);return _0x5229ce[_0xfe7217(0x13e)]({'icon':_0x3d0aeb,'withText':!0x1,'tooltip':_0x1e1fd3(_0x5304ee,_0xfe7217(0x193))}),_0x5229ce[_0xfe7217(0x174)]({'attributes':{'class':[_0xfe7217(0x192)]}}),_0x5229ce['on'](_0xfe7217(0x194),()=>{const _0x4533c5=_0xfe7217;this[_0x4533c5(0x16d)]=!0x1,_0x4ff3d5[_0x4533c5(0x160)]=this[_0x4533c5(0x184)][_0x4533c5(0x199)]||'',this[_0x4533c5(0x14c)](_0x4533c5(0x162));}),_0x5229ce;}[_0x533d87(0x175)](){const _0x325fc1=_0x533d87,_0x1cae16=new _0x1cb218(_0x325fc1(0x187));return _0x1cae16[_0x325fc1(0x14f)]=!0x0,_0x1cae16;}[_0x533d87(0x13f)](_0x35ab72){const _0x4c344f=_0x533d87;return this[_0x4c344f(0x184)]&&_0x4c344f(0x16b)==typeof this[_0x4c344f(0x184)][_0x4c344f(0x199)]&&this[_0x4c344f(0x184)][_0x4c344f(0x199)][_0x4c344f(0x172)](_0x35ab72)?{'title':!0x0}:null;}[_0x533d87(0x17e)](_0x305d16){const _0x185023=_0x533d87;this[_0x185023(0x184)][_0x185023(0x17e)](_0x305d16);}}
23
+ const _0x4d4571=_0x582a;(function(_0x80183f,_0x1f1e40){const _0x4ee981=_0x582a,_0x13119f=_0x80183f();while(!![]){try{const _0x3611b3=parseInt(_0x4ee981(0x1f8))/0x1+parseInt(_0x4ee981(0x1ee))/0x2+-parseInt(_0x4ee981(0x22d))/0x3+-parseInt(_0x4ee981(0x20f))/0x4*(parseInt(_0x4ee981(0x20a))/0x5)+-parseInt(_0x4ee981(0x207))/0x6+-parseInt(_0x4ee981(0x22e))/0x7+parseInt(_0x4ee981(0x1f5))/0x8;if(_0x3611b3===_0x1f1e40)break;else _0x13119f['push'](_0x13119f['shift']());}catch(_0x308d51){_0x13119f['push'](_0x13119f['shift']());}}}(_0x13e0,0x431f4));import{ListItemView as _0x37f6b0,HighlightedTextView as _0x40d592,ButtonView as _0x474f70,ListView as _0x363e36,IconView as _0x30575a,createDropdown as _0x2b5439,InputTextView as _0x5c6e63}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x14342d,IconPin as _0x270198,IconCheck as _0x4be2b4,IconCancel as _0x2ee807}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x2a3d99,ConfirmMixin as _0x552c0f}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x13e0(){const _0xc4bb74=['element','bind','highlightText','Enter','ck-ai-chat-history__item-main-content','AI_CHAT_HISTORY_LOADING_RENAMING','clear','AI_CHAT_HISTORY_REMOVE','label','panelPosition','span','loadingState','listitem','value','click','mainContent','812050TCPeHk','buttonView','_createEditInputView','text','AI_CHAT_HISTORY_REMOVE_CONFIRM','updateLoadingState','ck-ai-chat-history__item-title','3512928QTCZle','ck-ai-chat-history__item--active','createCollection','464732sDocic','AI_CHAT_HISTORY_PIN_BUTTON','ck-ai-loader','ck-ai-chat-history__item','addMany','ck-ai-chat-history__item-content','isVisible','_createPinButtonView','_createSpinnerView','AI_CHAT_HISTORY_LOADING_REMOVING','isOn','_createAcceptEditButtonView','withText','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','set','14286uuGGFf','change:isEdit','key','5pvJiwn','div','setConversationPinned','edit:cancel','ck-ai-chat-history__item-check-container','787448dqSPFv','ck-ai-chat-history__item-actions','focus','selectConversation','add','ck-ai-loader__text','_titleView','AI_CHAT_HISTORY_LOADING_UNPINNING','AI_CHAT_HISTORY_LOADING_PINNING','ck-hidden','_createCancelEditButtonView','LOADING_LABELS','pinned','execute','actions','updateTitle','removeConversation','items','then','ck-ai-chat-history__item--edit','ck-confirm-view-cancel','ck-ai-chat-history__item-check','ck-ai-chat-history__item-date','panelView','editConversationTitle','isEdit','setTemplate','children','fire','_createCheckView','1262448zYXvEu','2904174oxEzKJ','tiny','extendTemplate','_commitEditInputValue','bindTemplate','showConfirm','ck-confirm-view-submit','match','_createMenuDropdownView','AI_CHAT_HISTORY_EDIT_NAME','AI_CHAT_HISTORY_CANCEL','isMatching','locale','ck-ai-chat-history__item-row','AI_CHAT_HISTORY_ACCEPT','string'];_0x13e0=function(){return _0xc4bb74;};return _0x13e0();}import{escape as _0x1e1a85}from'es-toolkit/compat';function _0x582a(_0x3f8aef,_0x20feb3){const _0x13e0bf=_0x13e0();return _0x582a=function(_0x582a1e,_0x517cd3){_0x582a1e=_0x582a1e-0x1e4;let _0x24994f=_0x13e0bf[_0x582a1e];return _0x24994f;},_0x582a(_0x3f8aef,_0x20feb3);}import{AISpinnerView as _0x193780}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x63e2e0}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
+ _0x552c0f(_0x37f6b0){['id'];static [_0x4d4571(0x21a)]={'remove':_0x4d4571(0x201),'rename':_0x4d4571(0x243),'pin':_0x4d4571(0x217),'unpin':_0x4d4571(0x216)};[_0x4d4571(0x21d)];[_0x4d4571(0x1ed)];[_0x4d4571(0x215)];constructor(_0x14c606,_0xf123d7){const _0x51957f=_0x4d4571;super(_0x14c606);const _0x1bb20e=this[_0x51957f(0x232)];this[_0x51957f(0x206)](_0x51957f(0x228),!0x1),this[_0x51957f(0x206)](_0x51957f(0x1fe),!0x0),this[_0x51957f(0x206)](_0x51957f(0x21b),!!_0xf123d7[_0x51957f(0x21b)]),this[_0x51957f(0x206)](_0x51957f(0x1e9),null),this['id']=_0xf123d7['id'];const {title:_0x577036,createdAt:_0x5a2ccb,active:_0x498295=!0x1}=_0xf123d7;this[_0x51957f(0x215)]=new _0x40d592(),this[_0x51957f(0x215)][_0x51957f(0x1f1)]=_0x577036,this[_0x51957f(0x215)][_0x51957f(0x230)]({'attributes':{'class':[_0x51957f(0x1f4)]}});const _0x452ba3=this[_0x51957f(0x22c)](),_0x285f33=this[_0x51957f(0x1ff)](_0x14c606),_0x56bea0=this[_0x51957f(0x236)](),_0x45fcce=this[_0x51957f(0x1f0)](_0x14c606,_0x577036),_0x43070c=this[_0x51957f(0x203)](_0x14c606,_0x45fcce),_0x597f50=this[_0x51957f(0x219)](_0x14c606,_0x45fcce);this[_0x51957f(0x21d)]=this[_0x51957f(0x1f7)](),this[_0x51957f(0x1ed)]=this[_0x51957f(0x1f7)](),this[_0x51957f(0x1ed)][_0x51957f(0x213)](this[_0x51957f(0x215)]),this[_0x51957f(0x21d)][_0x51957f(0x213)](_0x285f33),this[_0x51957f(0x21d)][_0x51957f(0x213)](_0x56bea0),this['on'](_0x51957f(0x208),(_0x2f1d05,_0x4bd034,_0x3e5ab9)=>{const _0xfcb96f=_0x51957f;this[_0xfcb96f(0x21d)][_0xfcb96f(0x1e4)](),this[_0xfcb96f(0x1ed)][_0xfcb96f(0x1e4)](),_0x3e5ab9?(this[_0xfcb96f(0x21d)][_0xfcb96f(0x213)](_0x43070c),this[_0xfcb96f(0x21d)][_0xfcb96f(0x213)](_0x597f50),this[_0xfcb96f(0x1ed)][_0xfcb96f(0x213)](_0x45fcce),_0x45fcce[_0xfcb96f(0x23e)][_0xfcb96f(0x211)]()):(this[_0xfcb96f(0x21d)][_0xfcb96f(0x213)](_0x285f33),this[_0xfcb96f(0x21d)][_0xfcb96f(0x213)](_0x56bea0),this[_0xfcb96f(0x1ed)][_0xfcb96f(0x213)](this[_0xfcb96f(0x215)]));}),this[_0x51957f(0x229)]({'tag':'li','attributes':{'class':[_0x51957f(0x1fb),_0x498295?_0x51957f(0x1f6):'',_0x1bb20e['if'](_0x51957f(0x1fe),_0x51957f(0x218),_0x455c79=>!_0x455c79),_0x1bb20e['if'](_0x51957f(0x228),_0x51957f(0x222))],'role':_0x51957f(0x1ea)},'children':[{'tag':_0x51957f(0x1e8),'attributes':{'class':[_0x51957f(0x20e)]},'children':[{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x224),_0x1bb20e['if'](_0x51957f(0x1e9),_0x51957f(0x218),_0x591791=>!!_0x591791)]},'children':_0x498295?[_0x452ba3]:[]},{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x1fa),_0x1bb20e['if'](_0x51957f(0x1e9),_0x51957f(0x218),_0x4c508c=>!_0x4c508c)]},'children':[this[_0x51957f(0x200)]()]}]},{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x23b)]},'children':[{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x1fd)]},'on':{'click':this[_0x51957f(0x232)]['to'](_0x51957f(0x1ec))},'children':[{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x242)]},'children':[{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x1f4),_0x1bb20e['if'](_0x51957f(0x1e9),_0x51957f(0x218),_0x57a9eb=>!!_0x57a9eb)]},'children':this[_0x51957f(0x1ed)]},{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x214),_0x1bb20e['if'](_0x51957f(0x1e9),_0x51957f(0x218),_0x4fd47b=>!_0x4fd47b)]},'children':[{'text':_0x1bb20e['to'](_0x51957f(0x1e9),_0xe8b1a7=>_0xe8b1a7?_0x63e2e0(this[_0x51957f(0x23a)],AIChatHistoryListItemView[_0x51957f(0x21a)][_0xe8b1a7]):'')}]}]},{'tag':_0x51957f(0x1e8),'attributes':{'class':[_0x51957f(0x225)]},'children':[_0x5a2ccb]}]},{'tag':_0x51957f(0x20b),'attributes':{'class':[_0x51957f(0x210)]},'children':this[_0x51957f(0x21d)]}]}]}),this['on'](_0x51957f(0x1ec),()=>{const _0x17b8cb=_0x51957f;this[_0x17b8cb(0x228)]||this[_0x17b8cb(0x22b)](_0x17b8cb(0x212),{'id':this['id']});});}[_0x4d4571(0x21e)](_0x4b7e1b){const _0x120bc3=_0x4d4571;this[_0x120bc3(0x215)][_0x120bc3(0x1f1)]=_0x1e1a85(_0x4b7e1b);}[_0x4d4571(0x1f3)](_0x4e3a12,_0x3cb12f){const _0x173033=_0x4d4571;this[_0x173033(0x206)](_0x173033(0x1e9),_0x3cb12f?_0x4e3a12:null);}[_0x4d4571(0x22c)](){const _0x3835df=_0x4d4571,_0x1d7b80=new _0x30575a();return _0x1d7b80[_0x3835df(0x206)]({'content':_0x4be2b4}),_0x1d7b80;}[_0x4d4571(0x1ff)](_0x49f083){const _0x1fcab8=_0x4d4571,_0x9d5610=new _0x474f70(_0x49f083);return _0x9d5610[_0x1fcab8(0x206)]({'label':_0x63e2e0(_0x49f083,_0x1fcab8(0x1f9)),'icon':_0x270198,'withText':!0x1,'tooltip':!0x0}),_0x9d5610[_0x1fcab8(0x23f)](_0x1fcab8(0x202))['to'](this,_0x1fcab8(0x21b)),_0x9d5610['on'](_0x1fcab8(0x21c),()=>{const _0x269216=_0x1fcab8,_0x2ff6e7=!this[_0x269216(0x21b)];this[_0x269216(0x22b)](_0x269216(0x20c),{'id':this['id'],'pinned':_0x2ff6e7});}),_0x9d5610;}[_0x4d4571(0x236)](){const _0x5e6945=_0x4d4571,_0x2d3078=_0x2b5439(this[_0x5e6945(0x23a)],_0x2a3d99),_0x53c1be=_0x2d3078[_0x5e6945(0x226)][_0x5e6945(0x22a)];_0x2d3078[_0x5e6945(0x1ef)][_0x5e6945(0x206)]({'label':_0x63e2e0(this[_0x5e6945(0x23a)],_0x5e6945(0x205)),'icon':_0x14342d}),_0x2d3078[_0x5e6945(0x1e7)]='sw';const _0x45cadc=new _0x474f70(this[_0x5e6945(0x23a)]);_0x45cadc[_0x5e6945(0x1e6)]=_0x63e2e0(this[_0x5e6945(0x23a)],_0x5e6945(0x237)),_0x45cadc[_0x5e6945(0x204)]=!0x0,_0x45cadc['on'](_0x5e6945(0x21c),()=>{const _0x5981c1=_0x5e6945;this[_0x5981c1(0x228)]=!0x0;});const _0x4b8be0=new _0x474f70(this[_0x5e6945(0x23a)]);_0x4b8be0[_0x5e6945(0x1e6)]=_0x63e2e0(this[_0x5e6945(0x23a)],_0x5e6945(0x1e5)),_0x4b8be0[_0x5e6945(0x204)]=!0x0,_0x4b8be0['on'](_0x5e6945(0x21c),()=>{const _0x291d76=_0x5e6945;this[_0x291d76(0x233)](_0x63e2e0(this[_0x291d76(0x23a)],_0x291d76(0x1f2)),this[_0x291d76(0x23e)])[_0x291d76(0x221)](()=>{const _0x340986=_0x291d76;this[_0x340986(0x22b)](_0x340986(0x21f),{'id':this['id']});});});const _0x561527=new _0x363e36(this[_0x5e6945(0x23a)]),_0x3f2505=new _0x37f6b0(this[_0x5e6945(0x23a)]);_0x3f2505[_0x5e6945(0x22a)][_0x5e6945(0x213)](_0x45cadc);const _0x31eff6=new _0x37f6b0(this[_0x5e6945(0x23a)]);return _0x31eff6[_0x5e6945(0x22a)][_0x5e6945(0x213)](_0x4b8be0),_0x561527[_0x5e6945(0x220)][_0x5e6945(0x1fc)]([_0x3f2505,_0x31eff6]),_0x53c1be[_0x5e6945(0x213)](_0x561527),_0x2d3078;}[_0x4d4571(0x1f0)](_0x519a1a,_0x49cfc7){const _0x279a87=_0x4d4571,_0x6e4c46=new _0x5c6e63(_0x519a1a),_0x344c2f=_0x6e4c46[_0x279a87(0x232)];return _0x6e4c46[_0x279a87(0x1eb)]=_0x49cfc7,_0x6e4c46[_0x279a87(0x230)]({'on':{'keydown':_0x344c2f['to'](_0x1c7829=>{const _0x29c9db=_0x279a87;_0x29c9db(0x241)==_0x1c7829[_0x29c9db(0x209)]&&this[_0x29c9db(0x231)](_0x6e4c46);})}}),_0x6e4c46;}[_0x4d4571(0x203)](_0x225821,_0x2b7ea6){const _0x5753bf=_0x4d4571,_0x319b5c=new _0x474f70(_0x225821);return _0x319b5c[_0x5753bf(0x206)]({'icon':_0x4be2b4,'withText':!0x1,'tooltip':_0x63e2e0(_0x225821,_0x5753bf(0x23c))}),_0x319b5c[_0x5753bf(0x230)]({'attributes':{'class':[_0x5753bf(0x234)]}}),_0x319b5c['on'](_0x5753bf(0x21c),()=>{const _0x2e1da4=_0x5753bf;this[_0x2e1da4(0x231)](_0x2b7ea6);}),_0x319b5c;}[_0x4d4571(0x231)](_0x34f14f){const _0x267466=_0x4d4571,_0x441e71=_0x34f14f[_0x267466(0x23e)][_0x267466(0x1eb)]||'';this[_0x267466(0x215)][_0x267466(0x1f1)]=_0x441e71,this[_0x267466(0x228)]=!0x1,this[_0x267466(0x22b)](_0x267466(0x227),{'id':this['id'],'title':_0x441e71});}[_0x4d4571(0x219)](_0x3e695a,_0x4ada9f){const _0x31c96b=_0x4d4571,_0x49ba43=new _0x474f70(_0x3e695a);return _0x49ba43[_0x31c96b(0x206)]({'icon':_0x2ee807,'withText':!0x1,'tooltip':_0x63e2e0(_0x3e695a,_0x31c96b(0x238))}),_0x49ba43[_0x31c96b(0x230)]({'attributes':{'class':[_0x31c96b(0x223)]}}),_0x49ba43['on'](_0x31c96b(0x21c),()=>{const _0x178a15=_0x31c96b;this[_0x178a15(0x228)]=!0x1,_0x4ada9f[_0x178a15(0x1eb)]=this[_0x178a15(0x215)][_0x178a15(0x1f1)]||'',this[_0x178a15(0x22b)](_0x178a15(0x20d));}),_0x49ba43;}[_0x4d4571(0x200)](){const _0x3132c0=_0x4d4571,_0x385491=new _0x193780(_0x3132c0(0x22f));return _0x385491[_0x3132c0(0x1fe)]=!0x0,_0x385491;}[_0x4d4571(0x239)](_0x21aef0){const _0x464561=_0x4d4571;return this[_0x464561(0x215)]&&_0x464561(0x23d)==typeof this[_0x464561(0x215)][_0x464561(0x1f1)]&&this[_0x464561(0x215)][_0x464561(0x1f1)][_0x464561(0x235)](_0x21aef0)?{'title':!0x0}:null;}[_0x4d4571(0x240)](_0x5ece06){const _0xbb7e54=_0x4d4571;this[_0xbb7e54(0x215)][_0xbb7e54(0x240)](_0x5ece06);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x40a904=_0x26e5;function _0x26e5(_0x23338d,_0x2dd7cd){const _0x3a799a=_0x3a79();return _0x26e5=function(_0x26e5f2,_0x233fe0){_0x26e5f2=_0x26e5f2-0x149;let _0x373ba3=_0x3a799a[_0x26e5f2];return _0x373ba3;},_0x26e5(_0x23338d,_0x2dd7cd);}(function(_0x3b63d6,_0x5b2712){const _0x13d39b=_0x26e5,_0x31cb0f=_0x3b63d6();while(!![]){try{const _0x36fe78=parseInt(_0x13d39b(0x156))/0x1+-parseInt(_0x13d39b(0x157))/0x2+parseInt(_0x13d39b(0x166))/0x3+-parseInt(_0x13d39b(0x150))/0x4+-parseInt(_0x13d39b(0x14a))/0x5*(-parseInt(_0x13d39b(0x153))/0x6)+-parseInt(_0x13d39b(0x159))/0x7+parseInt(_0x13d39b(0x162))/0x8;if(_0x36fe78===_0x5b2712)break;else _0x31cb0f['push'](_0x31cb0f['shift']());}catch(_0x30bd88){_0x31cb0f['push'](_0x31cb0f['shift']());}}}(_0x3a79,0x5500b));import{ListItemView as _0xfbe866,View as _0x36137a,ListView as _0x2c9d15}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0xfbe866{[_0x40a904(0x167)];[_0x40a904(0x15d)];[_0x40a904(0x14d)];constructor(_0x38b59d,{title:_0x5de841,items:_0x2540bd}){const _0x5b2cca=_0x40a904;super(_0x38b59d);const _0x3b480f=this[_0x5b2cca(0x15c)];this[_0x5b2cca(0x14f)](_0x5b2cca(0x14b),!0x0),this[_0x5b2cca(0x167)]=_0x5de841,this[_0x5b2cca(0x15d)]=_0x2540bd;const _0x3388a8=new _0x36137a(_0x38b59d);_0x3388a8[_0x5b2cca(0x164)]({'tag':_0x5b2cca(0x149),'attributes':{'class':[_0x5b2cca(0x14c)]},'children':[this[_0x5b2cca(0x167)]]}),this[_0x5b2cca(0x14d)]=new _0x2c9d15(_0x38b59d),this[_0x5b2cca(0x14d)][_0x5b2cca(0x165)][_0x5b2cca(0x15b)](this[_0x5b2cca(0x15d)]),this[_0x5b2cca(0x164)]({'tag':'li','attributes':{'class':[_0x5b2cca(0x161),_0x3b480f['if'](_0x5b2cca(0x14b),_0x5b2cca(0x15a),_0x1902b9=>!_0x1902b9)]},'children':[_0x3388a8,this[_0x5b2cca(0x14d)]]});}[_0x40a904(0x163)](_0x518c6c){const _0x5c7f8b=_0x40a904,_0x1f7401=this[_0x5c7f8b(0x15d)][_0x5c7f8b(0x15f)];let _0x5a60b7=0x0;for(const _0x5e4b79 of this[_0x5c7f8b(0x15d)]){if(_0x518c6c){const _0x198b9a=_0x5e4b79[_0x5c7f8b(0x158)](_0x518c6c);_0x5e4b79[_0x5c7f8b(0x14b)]=!!_0x198b9a,_0x5e4b79[_0x5c7f8b(0x155)](_0x518c6c);}else _0x5e4b79[_0x5c7f8b(0x14b)]=!0x0,_0x5e4b79[_0x5c7f8b(0x155)](null);_0x5e4b79[_0x5c7f8b(0x14b)]&&_0x5a60b7++;}return this[_0x5c7f8b(0x14b)]=_0x5a60b7>0x0,{'resultsCount':_0x5a60b7,'totalItemsCount':_0x1f7401};}[_0x40a904(0x15e)](_0x2e607e){const _0x39d545=_0x40a904;return this[_0x39d545(0x15d)][_0x39d545(0x154)](_0x5b559e=>_0x5b559e['id']===_0x2e607e);}[_0x40a904(0x14e)](_0x5a53f9){const _0x15e83b=_0x40a904,_0x5d8130=this[_0x15e83b(0x15d)][_0x15e83b(0x152)](_0x5a53f9);-0x1!==_0x5d8130&&(this[_0x15e83b(0x15d)][_0x15e83b(0x151)](_0x5d8130,0x1),this[_0x15e83b(0x14d)][_0x15e83b(0x165)][_0x15e83b(0x160)](_0x5a53f9));}}function _0x3a79(){const _0x23f3a2=['102426BJkHsm','find','highlightText','362826tTenii','125438HUnGOx','isMatching','2677150JTPUQP','ck-hidden','addMany','bindTemplate','itemsViews','getItem','length','remove','ck-ai-chat-history__section','1015920OiheKY','filter','setTemplate','items','623112jJfiCY','title','div','165dqzuHh','isVisible','ck-ai-chat-history__section-title','_itemsListView','removeItem','set','1870092PNrqVz','splice','indexOf'];_0x3a79=function(){return _0x23f3a2;};return _0x3a79();}
23
+ function _0x588e(){const _0x4f6153=['21416196eCyoXX','ck-ai-chat-history__section','addMany','2949222NnPvfF','isVisible','filter','set','removeItem','indexOf','bindTemplate','ck-ai-chat-history__section-title','length','2101lPGBLb','75470ECJtVn','502guBhxs','2641770MnsTvc','highlightText','setTemplate','926958XsWnca','itemsViews','_itemsListView','getItem','2024TSBbcx','remove','isMatching','div','title','splice','items','1481YTUAVM','37870OTedmX','5GifZFh','4XgZHmQ','find','ck-hidden'];_0x588e=function(){return _0x4f6153;};return _0x588e();}const _0x469c9b=_0x3831;function _0x3831(_0x5a90f8,_0x425496){const _0x588ece=_0x588e();return _0x3831=function(_0x383191,_0x187c0b){_0x383191=_0x383191-0x181;let _0x1645f1=_0x588ece[_0x383191];return _0x1645f1;},_0x3831(_0x5a90f8,_0x425496);}(function(_0x474cc5,_0x3b7d35){const _0x485d66=_0x3831,_0x2df645=_0x474cc5();while(!![]){try{const _0x348e28=parseInt(_0x485d66(0x1a2))/0x1*(parseInt(_0x485d66(0x193))/0x2)+parseInt(_0x485d66(0x197))/0x3*(-parseInt(_0x485d66(0x182))/0x4)+-parseInt(_0x485d66(0x181))/0x5*(parseInt(_0x485d66(0x188))/0x6)+parseInt(_0x485d66(0x1a3))/0x7*(parseInt(_0x485d66(0x19b))/0x8)+-parseInt(_0x485d66(0x194))/0x9+-parseInt(_0x485d66(0x192))/0xa*(parseInt(_0x485d66(0x191))/0xb)+parseInt(_0x485d66(0x185))/0xc;if(_0x348e28===_0x3b7d35)break;else _0x2df645['push'](_0x2df645['shift']());}catch(_0x3c522c){_0x2df645['push'](_0x2df645['shift']());}}}(_0x588e,0xf19ae));import{ListItemView as _0x145036,View as _0x31969c,ListView as _0x18120a}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x145036{[_0x469c9b(0x19f)];[_0x469c9b(0x198)];[_0x469c9b(0x199)];constructor(_0x346db5,{title:_0x353684,items:_0x18c6ec}){const _0x458229=_0x469c9b;super(_0x346db5);const _0x37b9ff=this[_0x458229(0x18e)];this[_0x458229(0x18b)](_0x458229(0x189),!0x0),this[_0x458229(0x19f)]=_0x353684,this[_0x458229(0x198)]=_0x18c6ec;const _0x401ce7=new _0x31969c(_0x346db5);_0x401ce7[_0x458229(0x196)]({'tag':_0x458229(0x19e),'attributes':{'class':[_0x458229(0x18f)]},'children':[this[_0x458229(0x19f)]]}),this[_0x458229(0x199)]=new _0x18120a(_0x346db5),this[_0x458229(0x199)][_0x458229(0x1a1)][_0x458229(0x187)](this[_0x458229(0x198)]),this[_0x458229(0x196)]({'tag':'li','attributes':{'class':[_0x458229(0x186),_0x37b9ff['if'](_0x458229(0x189),_0x458229(0x184),_0x1bda68=>!_0x1bda68)]},'children':[_0x401ce7,this[_0x458229(0x199)]]});}[_0x469c9b(0x18a)](_0x4a6c81){const _0x4bcbd2=_0x469c9b,_0x53b6ae=this[_0x4bcbd2(0x198)][_0x4bcbd2(0x190)];let _0x9ddecc=0x0;for(const _0x2c4057 of this[_0x4bcbd2(0x198)]){if(_0x4a6c81){const _0x3e441b=_0x2c4057[_0x4bcbd2(0x19d)](_0x4a6c81);_0x2c4057[_0x4bcbd2(0x189)]=!!_0x3e441b,_0x2c4057[_0x4bcbd2(0x195)](_0x4a6c81);}else _0x2c4057[_0x4bcbd2(0x189)]=!0x0,_0x2c4057[_0x4bcbd2(0x195)](null);_0x2c4057[_0x4bcbd2(0x189)]&&_0x9ddecc++;}return this[_0x4bcbd2(0x189)]=_0x9ddecc>0x0,{'resultsCount':_0x9ddecc,'totalItemsCount':_0x53b6ae};}[_0x469c9b(0x19a)](_0x25ed40){const _0x529d49=_0x469c9b;return this[_0x529d49(0x198)][_0x529d49(0x183)](_0x45cefa=>_0x45cefa['id']===_0x25ed40);}[_0x469c9b(0x18c)](_0x4bae2f){const _0x33ede3=_0x469c9b,_0x5752b1=this[_0x33ede3(0x198)][_0x33ede3(0x18d)](_0x4bae2f);-0x1!==_0x5752b1&&(this[_0x33ede3(0x198)][_0x33ede3(0x1a0)](_0x5752b1,0x1),this[_0x33ede3(0x199)][_0x33ede3(0x1a1)][_0x33ede3(0x19c)](_0x4bae2f));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1935(){const _0x1e42ba=['1614172SMLhPJ','items','4854884VBbDiE','98699IrjNFK','34BntyLr','ck-ai-chat-history__sections','108kygqpu','extendTemplate','947530jRvnzq','42JSVaHL','addMany','5fLHxje','58836zzhYsb','7293LgNhNO','filter','1786596wPuZaF','7649784btOycN','sections'];_0x1935=function(){return _0x1e42ba;};return _0x1935();}function _0x879a(_0x3d77dd,_0x4ce421){const _0x1935f7=_0x1935();return _0x879a=function(_0x879a8e,_0x20fad0){_0x879a8e=_0x879a8e-0x66;let _0x2a8c32=_0x1935f7[_0x879a8e];return _0x2a8c32;},_0x879a(_0x3d77dd,_0x4ce421);}const _0x39a667=_0x879a;(function(_0x27613c,_0xc05575){const _0x9b69d1=_0x879a,_0x239195=_0x27613c();while(!![]){try{const _0x5b99df=parseInt(_0x9b69d1(0x75))/0x1*(parseInt(_0x9b69d1(0x76))/0x2)+-parseInt(_0x9b69d1(0x6f))/0x3+parseInt(_0x9b69d1(0x74))/0x4*(parseInt(_0x9b69d1(0x6b))/0x5)+parseInt(_0x9b69d1(0x69))/0x6*(parseInt(_0x9b69d1(0x72))/0x7)+-parseInt(_0x9b69d1(0x70))/0x8+parseInt(_0x9b69d1(0x66))/0x9*(parseInt(_0x9b69d1(0x68))/0xa)+parseInt(_0x9b69d1(0x6d))/0xb*(-parseInt(_0x9b69d1(0x6c))/0xc);if(_0x5b99df===_0xc05575)break;else _0x239195['push'](_0x239195['shift']());}catch(_0x3e4910){_0x239195['push'](_0x239195['shift']());}}}(_0x1935,0xcd2b0));import{ListView as _0x3c4ea0}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x3c4ea0{[_0x39a667(0x71)];constructor(_0x289449,_0x3c8aa9){const _0x3c0165=_0x39a667;super(_0x289449),this[_0x3c0165(0x71)]=_0x3c8aa9,this[_0x3c0165(0x73)][_0x3c0165(0x6a)](this[_0x3c0165(0x71)]),this[_0x3c0165(0x67)]({'attributes':{'class':[_0x3c0165(0x77)]}});}[_0x39a667(0x6e)](_0x3e2688){const _0x557b60=_0x39a667;let _0x17c831=0x0,_0x2da9ee=0x0;for(const _0x47881c of this[_0x557b60(0x71)]){const {resultsCount:_0x1134b8,totalItemsCount:_0x329082}=_0x47881c[_0x557b60(0x6e)](_0x3e2688);_0x17c831+=_0x1134b8,_0x2da9ee+=_0x329082;}return{'resultsCount':_0x17c831,'totalItemsCount':_0x2da9ee};}}
23
+ const _0x208c18=_0x4f31;(function(_0x4da453,_0x2eb70a){const _0x21f72f=_0x4f31,_0x1b94bb=_0x4da453();while(!![]){try{const _0x471a8a=-parseInt(_0x21f72f(0x1e5))/0x1+-parseInt(_0x21f72f(0x1d9))/0x2+-parseInt(_0x21f72f(0x1e1))/0x3*(parseInt(_0x21f72f(0x1e0))/0x4)+-parseInt(_0x21f72f(0x1e6))/0x5*(-parseInt(_0x21f72f(0x1dc))/0x6)+parseInt(_0x21f72f(0x1e2))/0x7*(parseInt(_0x21f72f(0x1df))/0x8)+-parseInt(_0x21f72f(0x1db))/0x9*(-parseInt(_0x21f72f(0x1dd))/0xa)+-parseInt(_0x21f72f(0x1e4))/0xb*(parseInt(_0x21f72f(0x1ea))/0xc);if(_0x471a8a===_0x2eb70a)break;else _0x1b94bb['push'](_0x1b94bb['shift']());}catch(_0x37c0fd){_0x1b94bb['push'](_0x1b94bb['shift']());}}}(_0x4e09,0xdcd7f));import{ListView as _0x1db815}from'ckeditor5/src/ui.js';function _0x4f31(_0x120cf4,_0x3e87a0){const _0x4e09c5=_0x4e09();return _0x4f31=function(_0x4f31a6,_0x10ac20){_0x4f31a6=_0x4f31a6-0x1d9;let _0x5b9d29=_0x4e09c5[_0x4f31a6];return _0x5b9d29;},_0x4f31(_0x120cf4,_0x3e87a0);}function _0x4e09(){const _0x296b6c=['3575GWCYnp','1610413mInfNV','2898655kSplsm','ck-ai-chat-history__sections','items','filter','564AoLWoi','703146jbSjGH','extendTemplate','133029NfAzkE','12MYBDMu','930SyASex','addMany','3208aFFCdj','1967812dQDSbY','3owKwrJ','14658LYwXFv','sections'];_0x4e09=function(){return _0x296b6c;};return _0x4e09();}export class AIChatHistorySectionListView extends _0x1db815{[_0x208c18(0x1e3)];constructor(_0x4ee320,_0x26cb34){const _0x184103=_0x208c18;super(_0x4ee320),this[_0x184103(0x1e3)]=_0x26cb34,this[_0x184103(0x1e8)][_0x184103(0x1de)](this[_0x184103(0x1e3)]),this[_0x184103(0x1da)]({'attributes':{'class':[_0x184103(0x1e7)]}});}[_0x208c18(0x1e9)](_0x433d7e){const _0x430e20=_0x208c18;let _0x22ec31=0x0,_0x5056a3=0x0;for(const _0x34c433 of this[_0x430e20(0x1e3)]){const {resultsCount:_0x48cf21,totalItemsCount:_0xac9e0b}=_0x34c433[_0x430e20(0x1e9)](_0x433d7e);_0x22ec31+=_0x48cf21,_0x5056a3+=_0xac9e0b;}return{'resultsCount':_0x22ec31,'totalItemsCount':_0x5056a3};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2be234=_0xb64a;function _0xb64a(_0x51208f,_0x8728cc){const _0x4c8113=_0x4c81();return _0xb64a=function(_0xb64a4b,_0x1a8a65){_0xb64a4b=_0xb64a4b-0xb9;let _0x1097e5=_0x4c8113[_0xb64a4b];return _0x1097e5;},_0xb64a(_0x51208f,_0x8728cc);}(function(_0x560477,_0x370951){const _0x437c25=_0xb64a,_0x2f050f=_0x560477();while(!![]){try{const _0xddbd72=parseInt(_0x437c25(0x10e))/0x1+-parseInt(_0x437c25(0xf6))/0x2+-parseInt(_0x437c25(0x10a))/0x3+parseInt(_0x437c25(0x103))/0x4+parseInt(_0x437c25(0xc4))/0x5+-parseInt(_0x437c25(0xed))/0x6+parseInt(_0x437c25(0xff))/0x7*(parseInt(_0x437c25(0xd3))/0x8);if(_0xddbd72===_0x370951)break;else _0x2f050f['push'](_0x2f050f['shift']());}catch(_0x42b135){_0x2f050f['push'](_0x2f050f['shift']());}}}(_0x4c81,0xbc74a));import{View as _0x514e12,SearchTextView as _0x142b79,FormHeaderView as _0x3a8b08,ButtonView as _0xea74cc}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x812e8,IconCancel as _0x1179e3,IconPlus as _0x365b93}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x7ebdbc}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x1e5138}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x18c4af}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x254ffc}from'../aichathistoryui.js';function _0x4c81(){const _0x33eb07=['fieldView','hasItems','element','remove','isLoading','ck-ai-header\x20ck-ai-header_history','8209272PwWpxR','emptyView','ck-ai-notification','errorMessage','value','_createSearchView','search','length','fire','562922NEZXUt','change:hasItems','setTemplate','splice','ltr','bind','locale','updateLoadingState','AI_CHAT_HISTORY_SEARCH_LABEL','74970oIUCBF','queryView','ck-ai-chat-history__empty','ck-reset_all','3528720qDhEmo','ck-ai-notification_error','ck-ai-chat-history__empty-message','sections','removeItem','_createEmptyStateView','aiHistory','593841nelMgs','ck-ai-chat-history','title','ck-rounded-corners','627566Juerey','mainErrorView','_refreshSearch','ck-ai-notification_error__dismiss-button','ck-ai-chat-history__content','_createListItemViews','_updateViewVisibility','updateItemLoadingState','ck-hidden','isSearchViewVisible','push','isVisible','resizeButton','getItem','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','openChat','isMainErrorViewVisible','3139190rnxNkB','searchView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','change:errorMessage','addMany','some','ck-ai-chat__start-conversation','set','sectionsView','items','indexOf','updateTitle','children','_createSkeletonView','execute','360dfLieJ','updateHistoryItemsWithCategories','AI_CHAT_LABEL_NEW_CHAT','removeHistoryItem','AI_CHAT_HISTORY_EMPTY_MESSAGE','clear','isEmptyViewVisible','skeletonView','bindTemplate','AI_CHAT_HISTORY_HEADING','isMaximized','_createErrorView','extendTemplate','itemsViews','div','change:isLoading','updateItemTitle','render','add','delegate'];_0x4c81=function(){return _0x33eb07;};return _0x4c81();}import{AISkeletonView as _0x4e0d75,SKELETON_DEFINITIONS as _0x428719}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x5bb977}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x2aeadf}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x514e12{[_0x2be234(0xc5)];[_0x2be234(0x10f)];[_0x2be234(0xda)];[_0x2be234(0xee)];[_0x2be234(0xcc)];[_0x2be234(0xbf)];constructor(_0x76ed83,_0x3dad1d){const _0x324560=_0x2be234;super(_0x76ed83),this[_0x324560(0xcb)](_0x324560(0xe8),!0x1),this[_0x324560(0xcb)](_0x324560(0xeb),!0x0),this[_0x324560(0xcb)](_0x324560(0xf0),''),this[_0x324560(0xcb)](_0x324560(0xdd),!0x1),this[_0x324560(0xcb)](_0x324560(0xbc),!0x1),this[_0x324560(0xcb)](_0x324560(0xd9),!0x1),this[_0x324560(0xcb)](_0x324560(0xc3),!0x1);const _0x2a2447=new _0x3a8b08(_0x76ed83,{'label':_0x2aeadf(_0x76ed83,_0x324560(0xdc)),'icon':_0x812e8,'class':_0x324560(0xec)});_0x3dad1d&&(this[_0x324560(0xbf)]=_0x5bb977(_0x76ed83,this),_0x2a2447[_0x324560(0xd0)][_0x324560(0xe5)](this[_0x324560(0xbf)])),this[_0x324560(0xcc)]=new _0x7ebdbc(_0x76ed83,[]),this[_0x324560(0xcc)][_0x324560(0xe6)](..._0x254ffc)['to'](this),this[_0x324560(0x10f)]=this[_0x324560(0xde)](),this[_0x324560(0xda)]=this[_0x324560(0xd1)](),this[_0x324560(0xee)]=this[_0x324560(0x108)](),this[_0x324560(0xc5)]=this[_0x324560(0xf2)](),this[_0x324560(0x10f)][_0x324560(0xdf)]({'attributes':{'class':[this[_0x324560(0xdb)]['if'](_0x324560(0xc3),_0x324560(0xbb),_0x565948=>!_0x565948)]}}),this['on'](_0x324560(0xe2),()=>this[_0x324560(0xb9)]()),this['on'](_0x324560(0xf7),()=>this[_0x324560(0xb9)]()),this['on'](_0x324560(0xc7),()=>this[_0x324560(0xb9)]()),this[_0x324560(0xf8)]({'tag':_0x324560(0xe1),'attributes':{'class':['ck',_0x324560(0x102),_0x324560(0x10b),_0x324560(0x10d)],'dir':_0x324560(0xfa)},'children':[_0x2a2447,{'tag':_0x324560(0xe1),'attributes':{'class':[_0x324560(0x112)]},'children':[this[_0x324560(0xda)],this[_0x324560(0x10f)],this[_0x324560(0xee)],this[_0x324560(0xc5)]]}]});}[_0x2be234(0xb9)](){const _0x21fa18=_0x2be234;this[_0x21fa18(0xbc)]=!this[_0x21fa18(0xeb)]&&this[_0x21fa18(0xe8)],this[_0x21fa18(0xd9)]=!this[_0x21fa18(0xeb)]&&!this[_0x21fa18(0xe8)]&&!this[_0x21fa18(0xf0)],this[_0x21fa18(0xc3)]=!this[_0x21fa18(0xbc)]&&!!this[_0x21fa18(0xf0)];}[_0x2be234(0xf2)](){const _0x4e5df8=_0x2be234,_0x2e25b2=new _0x142b79(this[_0x4e5df8(0xfc)],{'filteredView':this[_0x4e5df8(0xcc)],'queryView':{'label':_0x2aeadf(this[_0x4e5df8(0xfc)],_0x4e5df8(0xfe))},'infoView':{'text':{'notFound':{'primary':_0x372c60=>_0x2aeadf(this[_0x4e5df8(0xfc)],_0x4e5df8(0xc1),_0x372c60),'secondary':_0x2aeadf(this[_0x4e5df8(0xfc)],_0x4e5df8(0xc6))}}}}),_0x4509d2=this[_0x4e5df8(0xde)]();return _0x4509d2[_0x4e5df8(0xdf)]({'attributes':{'class':[this[_0x4e5df8(0xdb)]['if'](_0x4e5df8(0xf0),_0x4e5df8(0xbb),_0x184441=>!_0x184441)]}}),_0x2e25b2['on'](_0x4e5df8(0xe4),()=>{const _0x58e721=_0x4e5df8;_0x2e25b2[_0x58e721(0xd0)][_0x58e721(0xe5)](_0x4509d2,0x1);}),_0x2e25b2[_0x4e5df8(0xdf)]({'attributes':{'class':[this[_0x4e5df8(0xdb)]['if'](_0x4e5df8(0xbc),_0x4e5df8(0xbb),_0x4e7483=>!_0x4e7483)]}}),_0x2e25b2;}[_0x2be234(0xd1)](){const _0x19d9da=_0x2be234,_0x50341f=new _0x4e0d75(this[_0x19d9da(0xfc)],_0x428719[_0x19d9da(0x109)]);return _0x50341f[_0x19d9da(0xdf)]({'attributes':{'class':[this[_0x19d9da(0xdb)]['if'](_0x19d9da(0xeb),_0x19d9da(0xbb),_0x41d0ad=>!_0x41d0ad)]}}),_0x50341f;}[_0x2be234(0xde)](){const _0x4287ee=_0x2be234,_0x47b6e7=new _0x514e12(this[_0x4287ee(0xfc)]),_0x3d74d2=new _0xea74cc(this[_0x4287ee(0xfc)]);_0x3d74d2[_0x4287ee(0xcb)]({'withText':!0x1,'icon':_0x1179e3,'class':_0x4287ee(0x111)}),_0x3d74d2[_0x4287ee(0xfb)](_0x4287ee(0xbe))['to'](this,_0x4287ee(0xe8),_0x303dac=>!!_0x303dac),_0x3d74d2['on'](_0x4287ee(0xd2),()=>{const _0x1697f0=_0x4287ee;this[_0x1697f0(0xf0)]='';});const _0x57b668=this[_0x4287ee(0xdb)];return _0x47b6e7[_0x4287ee(0xf8)]({'tag':_0x4287ee(0xe1),'attributes':{'class':['ck',_0x4287ee(0xef),_0x4287ee(0x104)]},'children':[{'tag':'p','children':[{'text':_0x57b668['to'](_0x4287ee(0xf0))}]},_0x3d74d2]}),_0x47b6e7;}[_0x2be234(0x108)](){const _0x405395=_0x2be234,_0x4b2124=new _0xea74cc(this[_0x405395(0xfc)]);_0x4b2124[_0x405395(0xcb)]({'label':_0x2aeadf(this[_0x405395(0xfc)],_0x405395(0xd5)),'withText':!0x0,'icon':_0x365b93,'class':_0x405395(0xca)}),_0x4b2124['on'](_0x405395(0xd2),()=>{const _0x5b37b9=_0x405395;this[_0x5b37b9(0xf5)](_0x5b37b9(0xc2));});const _0x248703=new _0x514e12(this[_0x405395(0xfc)]);return _0x248703[_0x405395(0xf8)]({'tag':_0x405395(0xe1),'attributes':{'class':[_0x405395(0x101),this[_0x405395(0xdb)]['if'](_0x405395(0xd9),_0x405395(0xbb),_0x23c826=>!_0x23c826)]},'children':[{'tag':'p','attributes':{'class':[_0x405395(0x105)]},'children':[_0x2aeadf(this[_0x405395(0xfc)],_0x405395(0xd7))]},_0x4b2124]}),_0x248703;}[_0x2be234(0x113)](_0xd10ebb,_0x2e20e0){const _0x292cca=_0x2be234,_0x224b03=[];for(const _0x56a619 of _0xd10ebb){const _0x1cafb3=new _0x18c4af(_0x2e20e0,_0x56a619);_0x1cafb3[_0x292cca(0xe6)](..._0x254ffc)['to'](this),_0x224b03[_0x292cca(0xbd)](_0x1cafb3);}return _0x224b03;}[_0x2be234(0xd4)](_0x31fecd){const _0x19f1b3=_0x2be234,_0x2b16c7=this[_0x19f1b3(0xfc)]||'en',_0x213cd9=[];for(const _0x4b6c01 of _0x31fecd){const _0x2a6fbf=this[_0x19f1b3(0x113)](_0x4b6c01[_0x19f1b3(0xcd)],_0x2b16c7);_0x213cd9[_0x19f1b3(0xbd)](new _0x1e5138(_0x2b16c7,{'title':_0x4b6c01[_0x19f1b3(0x10c)],'items':_0x2a6fbf}));}this[_0x19f1b3(0xcc)][_0x19f1b3(0x106)]=_0x213cd9,this[_0x19f1b3(0xcc)][_0x19f1b3(0xcd)][_0x19f1b3(0xd8)](),this[_0x19f1b3(0xcc)][_0x19f1b3(0xcd)][_0x19f1b3(0xc8)](_0x213cd9),this[_0x19f1b3(0xe8)]=_0x31fecd[_0x19f1b3(0xc9)](_0x30ae52=>_0x30ae52[_0x19f1b3(0xcd)][_0x19f1b3(0xf4)]>0x0),this[_0x19f1b3(0x110)]();}[_0x2be234(0xd6)](_0x4ca3fa){const _0xb65619=_0x2be234;for(const _0x3e9bb7 of this[_0xb65619(0xcc)][_0xb65619(0x106)]){const _0x404d3d=_0x3e9bb7[_0xb65619(0xc0)](_0x4ca3fa);if(_0x404d3d){if(_0x3e9bb7[_0xb65619(0x107)](_0x404d3d),0x0===_0x3e9bb7[_0xb65619(0xe0)][_0xb65619(0xf4)]){const _0x104cce=this[_0xb65619(0xcc)][_0xb65619(0x106)][_0xb65619(0xce)](_0x3e9bb7);-0x1!==_0x104cce&&(this[_0xb65619(0xcc)][_0xb65619(0x106)][_0xb65619(0xf9)](_0x104cce,0x1),this[_0xb65619(0xcc)][_0xb65619(0xcd)][_0xb65619(0xea)](_0x3e9bb7));}this[_0xb65619(0xe8)]=this[_0xb65619(0xcc)][_0xb65619(0x106)][_0xb65619(0xf4)]>0x0,this[_0xb65619(0x110)]();break;}}}[_0x2be234(0xe3)](_0x302047,_0x14a8a2){const _0x448d6a=_0x2be234;for(const _0x25d2ec of this[_0x448d6a(0xcc)][_0x448d6a(0x106)]){const _0x1e2f3e=_0x25d2ec[_0x448d6a(0xc0)](_0x302047);if(_0x1e2f3e){_0x1e2f3e[_0x448d6a(0xcf)](_0x14a8a2);break;}}}[_0x2be234(0xba)](_0x14768c,_0x2e95fb,_0x35d930){const _0x4536b0=_0x2be234;for(const _0x47ee69 of this[_0x4536b0(0xcc)][_0x4536b0(0x106)]){const _0x305f01=_0x47ee69[_0x4536b0(0xc0)](_0x14768c);if(_0x305f01){_0x305f01[_0x4536b0(0xfd)](_0x2e95fb,_0x35d930);break;}}}[_0x2be234(0x110)](){const _0x2cb241=_0x2be234;if(this[_0x2cb241(0xe8)]){const _0x41b62e=this[_0x2cb241(0xc5)][_0x2cb241(0x100)][_0x2cb241(0xe7)]?.[_0x2cb241(0xe9)]?.[_0x2cb241(0xf1)]||'';this[_0x2cb241(0xc5)][_0x2cb241(0xf3)](_0x41b62e);}}}
23
+ const _0x37f596=_0x2893;(function(_0xec30fb,_0x41b29d){const _0x2d8f05=_0x2893,_0x464382=_0xec30fb();while(!![]){try{const _0x29f07c=parseInt(_0x2d8f05(0x12c))/0x1+-parseInt(_0x2d8f05(0x135))/0x2+parseInt(_0x2d8f05(0x13e))/0x3+-parseInt(_0x2d8f05(0x147))/0x4+parseInt(_0x2d8f05(0x13f))/0x5*(-parseInt(_0x2d8f05(0x155))/0x6)+parseInt(_0x2d8f05(0x156))/0x7*(parseInt(_0x2d8f05(0x15e))/0x8)+-parseInt(_0x2d8f05(0x169))/0x9*(-parseInt(_0x2d8f05(0x121))/0xa);if(_0x29f07c===_0x41b29d)break;else _0x464382['push'](_0x464382['shift']());}catch(_0x18f504){_0x464382['push'](_0x464382['shift']());}}}(_0x428c,0x3bd86));import{View as _0x45f2bc,SearchTextView as _0x4e76bd,FormHeaderView as _0x3afe3b,ButtonView as _0x47136c}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x5a65f0,IconCancel as _0x135f2d,IconPlus as _0x47656f}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0xfd5b67}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0xbf3f86}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x5b0950}from'./aichathistorylistitemview.js';function _0x2893(_0x2c73d9,_0x2883af){const _0x428cab=_0x428c();return _0x2893=function(_0x289310,_0x1d47c1){_0x289310=_0x289310-0x119;let _0x3ff60a=_0x428cab[_0x289310];return _0x3ff60a;},_0x2893(_0x2c73d9,_0x2883af);}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3e06ba}from'../aichathistoryui.js';function _0x428c(){const _0x1eddd5=['253842KrkRcV','236180WcQEkE','isMaximized','set','removeItem','items','queryView','emptyView','setTemplate','1656288IdeKmA','skeletonView','ck-ai-chat-history__empty','isEmptyViewVisible','addMany','ck-ai-notification_error__dismiss-button','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','fire','openChat','AI_CHAT_HISTORY_HEADING','some','delegate','errorMessage','ck-ai-chat-history__content','48DGZFug','301xjoaDC','change:isLoading','_createEmptyStateView','removeHistoryItem','remove','title','ck-ai-notification','change:errorMessage','61064VYbiMi','_createErrorView','updateItemLoadingState','length','ck-reset_all','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','sectionsView','mainErrorView','sections','ck-ai-chat-history__empty-message','itemsViews','1679121JCDaxp','clear','getItem','extendTemplate','isLoading','fieldView','resizeButton','searchView','children','bindTemplate','updateLoadingState','change:hasItems','locale','render','_createSearchView','AI_CHAT_HISTORY_EMPTY_MESSAGE','add','hasItems','isVisible','execute','ck-ai-notification_error','20XChajo','isSearchViewVisible','_refreshSearch','value','push','search','indexOf','AI_CHAT_LABEL_NEW_CHAT','aiHistory','updateHistoryItemsWithCategories','element','297601gNLJnS','AI_CHAT_HISTORY_SEARCH_LABEL','ck-ai-chat__start-conversation','bind','_updateViewVisibility','updateItemTitle','_createSkeletonView','isMainErrorViewVisible','ltr','92972nDLBCw','updateTitle','div','_createListItemViews','ck-ai-header\x20ck-ai-header_history','splice','ck-ai-chat-history','ck-hidden','ck-rounded-corners'];_0x428c=function(){return _0x1eddd5;};return _0x428c();}import{AISkeletonView as _0xa1e543,SKELETON_DEFINITIONS as _0xed0d08}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x4e4a83}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x572a36}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x45f2bc{[_0x37f596(0x170)];[_0x37f596(0x165)];[_0x37f596(0x148)];[_0x37f596(0x145)];[_0x37f596(0x164)];[_0x37f596(0x16f)];constructor(_0x580660,_0x2d26da){const _0x4a0337=_0x37f596;super(_0x580660),this[_0x4a0337(0x141)](_0x4a0337(0x11d),!0x1),this[_0x4a0337(0x141)](_0x4a0337(0x16d),!0x0),this[_0x4a0337(0x141)](_0x4a0337(0x153),''),this[_0x4a0337(0x141)](_0x4a0337(0x140),!0x1),this[_0x4a0337(0x141)](_0x4a0337(0x122),!0x1),this[_0x4a0337(0x141)](_0x4a0337(0x14a),!0x1),this[_0x4a0337(0x141)](_0x4a0337(0x133),!0x1);const _0x22515a=new _0x3afe3b(_0x580660,{'label':_0x572a36(_0x580660,_0x4a0337(0x150)),'icon':_0x5a65f0,'class':_0x4a0337(0x139)});_0x2d26da&&(this[_0x4a0337(0x16f)]=_0x4e4a83(_0x580660,this),_0x22515a[_0x4a0337(0x171)][_0x4a0337(0x11c)](this[_0x4a0337(0x16f)])),this[_0x4a0337(0x164)]=new _0xfd5b67(_0x580660,[]),this[_0x4a0337(0x164)][_0x4a0337(0x152)](..._0x3e06ba)['to'](this),this[_0x4a0337(0x165)]=this[_0x4a0337(0x15f)](),this[_0x4a0337(0x148)]=this[_0x4a0337(0x132)](),this[_0x4a0337(0x145)]=this[_0x4a0337(0x158)](),this[_0x4a0337(0x170)]=this[_0x4a0337(0x11a)](),this[_0x4a0337(0x165)][_0x4a0337(0x16c)]({'attributes':{'class':[this[_0x4a0337(0x172)]['if'](_0x4a0337(0x133),_0x4a0337(0x13c),_0x2268d4=>!_0x2268d4)]}}),this['on'](_0x4a0337(0x157),()=>this[_0x4a0337(0x130)]()),this['on'](_0x4a0337(0x174),()=>this[_0x4a0337(0x130)]()),this['on'](_0x4a0337(0x15d),()=>this[_0x4a0337(0x130)]()),this[_0x4a0337(0x146)]({'tag':_0x4a0337(0x137),'attributes':{'class':['ck',_0x4a0337(0x162),_0x4a0337(0x13b),_0x4a0337(0x13d)],'dir':_0x4a0337(0x134)},'children':[_0x22515a,{'tag':_0x4a0337(0x137),'attributes':{'class':[_0x4a0337(0x154)]},'children':[this[_0x4a0337(0x148)],this[_0x4a0337(0x165)],this[_0x4a0337(0x145)],this[_0x4a0337(0x170)]]}]});}[_0x37f596(0x130)](){const _0x491023=_0x37f596;this[_0x491023(0x122)]=!this[_0x491023(0x16d)]&&this[_0x491023(0x11d)],this[_0x491023(0x14a)]=!this[_0x491023(0x16d)]&&!this[_0x491023(0x11d)]&&!this[_0x491023(0x153)],this[_0x491023(0x133)]=!this[_0x491023(0x122)]&&!!this[_0x491023(0x153)];}[_0x37f596(0x11a)](){const _0x17487b=_0x37f596,_0x12b872=new _0x4e76bd(this[_0x17487b(0x175)],{'filteredView':this[_0x17487b(0x164)],'queryView':{'label':_0x572a36(this[_0x17487b(0x175)],_0x17487b(0x12d))},'infoView':{'text':{'notFound':{'primary':_0x308faf=>_0x572a36(this[_0x17487b(0x175)],_0x17487b(0x14d),_0x308faf),'secondary':_0x572a36(this[_0x17487b(0x175)],_0x17487b(0x163))}}}}),_0x29f073=this[_0x17487b(0x15f)]();return _0x29f073[_0x17487b(0x16c)]({'attributes':{'class':[this[_0x17487b(0x172)]['if'](_0x17487b(0x153),_0x17487b(0x13c),_0x208dfc=>!_0x208dfc)]}}),_0x12b872['on'](_0x17487b(0x119),()=>{const _0x4857ca=_0x17487b;_0x12b872[_0x4857ca(0x171)][_0x4857ca(0x11c)](_0x29f073,0x1);}),_0x12b872[_0x17487b(0x16c)]({'attributes':{'class':[this[_0x17487b(0x172)]['if'](_0x17487b(0x122),_0x17487b(0x13c),_0x1828c8=>!_0x1828c8)]}}),_0x12b872;}[_0x37f596(0x132)](){const _0xe391da=_0x37f596,_0x29b140=new _0xa1e543(this[_0xe391da(0x175)],_0xed0d08[_0xe391da(0x129)]);return _0x29b140[_0xe391da(0x16c)]({'attributes':{'class':[this[_0xe391da(0x172)]['if'](_0xe391da(0x16d),_0xe391da(0x13c),_0x19c9b4=>!_0x19c9b4)]}}),_0x29b140;}[_0x37f596(0x15f)](){const _0x1a3bcc=_0x37f596,_0x5972cd=new _0x45f2bc(this[_0x1a3bcc(0x175)]),_0x16b1fb=new _0x47136c(this[_0x1a3bcc(0x175)]);_0x16b1fb[_0x1a3bcc(0x141)]({'withText':!0x1,'icon':_0x135f2d,'class':_0x1a3bcc(0x14c)}),_0x16b1fb[_0x1a3bcc(0x12f)](_0x1a3bcc(0x11e))['to'](this,_0x1a3bcc(0x11d),_0x51b2d7=>!!_0x51b2d7),_0x16b1fb['on'](_0x1a3bcc(0x11f),()=>{const _0x932e14=_0x1a3bcc;this[_0x932e14(0x153)]='';});const _0x2f92e2=this[_0x1a3bcc(0x172)];return _0x5972cd[_0x1a3bcc(0x146)]({'tag':_0x1a3bcc(0x137),'attributes':{'class':['ck',_0x1a3bcc(0x15c),_0x1a3bcc(0x120)]},'children':[{'tag':'p','children':[{'text':_0x2f92e2['to'](_0x1a3bcc(0x153))}]},_0x16b1fb]}),_0x5972cd;}[_0x37f596(0x158)](){const _0x46a3bc=_0x37f596,_0xd54ed3=new _0x47136c(this[_0x46a3bc(0x175)]);_0xd54ed3[_0x46a3bc(0x141)]({'label':_0x572a36(this[_0x46a3bc(0x175)],_0x46a3bc(0x128)),'withText':!0x0,'icon':_0x47656f,'class':_0x46a3bc(0x12e)}),_0xd54ed3['on'](_0x46a3bc(0x11f),()=>{const _0x47db70=_0x46a3bc;this[_0x47db70(0x14e)](_0x47db70(0x14f));});const _0x14ab30=new _0x45f2bc(this[_0x46a3bc(0x175)]);return _0x14ab30[_0x46a3bc(0x146)]({'tag':_0x46a3bc(0x137),'attributes':{'class':[_0x46a3bc(0x149),this[_0x46a3bc(0x172)]['if'](_0x46a3bc(0x14a),_0x46a3bc(0x13c),_0x404c3b=>!_0x404c3b)]},'children':[{'tag':'p','attributes':{'class':[_0x46a3bc(0x167)]},'children':[_0x572a36(this[_0x46a3bc(0x175)],_0x46a3bc(0x11b))]},_0xd54ed3]}),_0x14ab30;}[_0x37f596(0x138)](_0x29eef3,_0x1181fc){const _0x332e26=_0x37f596,_0x50206e=[];for(const _0xd51cca of _0x29eef3){const _0x1baae1=new _0x5b0950(_0x1181fc,_0xd51cca);_0x1baae1[_0x332e26(0x152)](..._0x3e06ba)['to'](this),_0x50206e[_0x332e26(0x125)](_0x1baae1);}return _0x50206e;}[_0x37f596(0x12a)](_0xdb6975){const _0x3622fd=_0x37f596,_0x362405=this[_0x3622fd(0x175)]||'en',_0x5cba96=[];for(const _0x55a928 of _0xdb6975){const _0x351664=this[_0x3622fd(0x138)](_0x55a928[_0x3622fd(0x143)],_0x362405);_0x5cba96[_0x3622fd(0x125)](new _0xbf3f86(_0x362405,{'title':_0x55a928[_0x3622fd(0x15b)],'items':_0x351664}));}this[_0x3622fd(0x164)][_0x3622fd(0x166)]=_0x5cba96,this[_0x3622fd(0x164)][_0x3622fd(0x143)][_0x3622fd(0x16a)](),this[_0x3622fd(0x164)][_0x3622fd(0x143)][_0x3622fd(0x14b)](_0x5cba96),this[_0x3622fd(0x11d)]=_0xdb6975[_0x3622fd(0x151)](_0x12c467=>_0x12c467[_0x3622fd(0x143)][_0x3622fd(0x161)]>0x0),this[_0x3622fd(0x123)]();}[_0x37f596(0x159)](_0x166d92){const _0x5dce56=_0x37f596;for(const _0x4da890 of this[_0x5dce56(0x164)][_0x5dce56(0x166)]){const _0x4ef4a1=_0x4da890[_0x5dce56(0x16b)](_0x166d92);if(_0x4ef4a1){if(_0x4da890[_0x5dce56(0x142)](_0x4ef4a1),0x0===_0x4da890[_0x5dce56(0x168)][_0x5dce56(0x161)]){const _0x1cbfd2=this[_0x5dce56(0x164)][_0x5dce56(0x166)][_0x5dce56(0x127)](_0x4da890);-0x1!==_0x1cbfd2&&(this[_0x5dce56(0x164)][_0x5dce56(0x166)][_0x5dce56(0x13a)](_0x1cbfd2,0x1),this[_0x5dce56(0x164)][_0x5dce56(0x143)][_0x5dce56(0x15a)](_0x4da890));}this[_0x5dce56(0x11d)]=this[_0x5dce56(0x164)][_0x5dce56(0x166)][_0x5dce56(0x161)]>0x0,this[_0x5dce56(0x123)]();break;}}}[_0x37f596(0x131)](_0x4fc99a,_0x2329a9){const _0x56353f=_0x37f596;for(const _0x4cf86b of this[_0x56353f(0x164)][_0x56353f(0x166)]){const _0x804169=_0x4cf86b[_0x56353f(0x16b)](_0x4fc99a);if(_0x804169){_0x804169[_0x56353f(0x136)](_0x2329a9);break;}}}[_0x37f596(0x160)](_0x4baf5e,_0x4eb411,_0x41aa4c){const _0x175d5c=_0x37f596;for(const _0x1a1e78 of this[_0x175d5c(0x164)][_0x175d5c(0x166)]){const _0x4a4084=_0x1a1e78[_0x175d5c(0x16b)](_0x4baf5e);if(_0x4a4084){_0x4a4084[_0x175d5c(0x173)](_0x4eb411,_0x41aa4c);break;}}}[_0x37f596(0x123)](){const _0x1274dd=_0x37f596;if(this[_0x1274dd(0x11d)]){const _0x54191f=this[_0x1274dd(0x170)][_0x1274dd(0x144)][_0x1274dd(0x16e)]?.[_0x1274dd(0x12b)]?.[_0x1274dd(0x124)]||'';this[_0x1274dd(0x170)][_0x1274dd(0x126)](_0x54191f);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2fe130=_0x2b5c;(function(_0x36f53f,_0x1b6ec4){const _0x596f3d=_0x2b5c,_0x16efb8=_0x36f53f();while(!![]){try{const _0x2570f4=parseInt(_0x596f3d(0x116))/0x1*(-parseInt(_0x596f3d(0xec))/0x2)+-parseInt(_0x596f3d(0x10a))/0x3*(parseInt(_0x596f3d(0xf5))/0x4)+-parseInt(_0x596f3d(0x111))/0x5*(parseInt(_0x596f3d(0xf4))/0x6)+-parseInt(_0x596f3d(0xe3))/0x7+parseInt(_0x596f3d(0xf2))/0x8+parseInt(_0x596f3d(0xee))/0x9+parseInt(_0x596f3d(0xf6))/0xa*(parseInt(_0x596f3d(0xe0))/0xb);if(_0x2570f4===_0x1b6ec4)break;else _0x16efb8['push'](_0x16efb8['shift']());}catch(_0x38a220){_0x16efb8['push'](_0x16efb8['shift']());}}}(_0x2bf5,0xc79a5));import{AIChatUI as _0xb6667a}from'../aichat/aichatui.js';import{ContextPlugin as _0x1eff52}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0x989325}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0xf8dd1c}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const Ut=_0x2fe130(0x11c);export var AIChatShortcutType;!function(_0x1d8876){const _0x224d4c=_0x2fe130;_0x1d8876[_0x224d4c(0x130)]=_0x224d4c(0x115),_0x1d8876[_0x224d4c(0xe1)]=_0x224d4c(0x112),_0x1d8876[_0x224d4c(0x13b)]=_0x224d4c(0x101);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x1eff52{[_0x2fe130(0x12c)];[_0x2fe130(0x10e)];[_0x2fe130(0x129)];static get[_0x2fe130(0x133)](){return[_0xb6667a];}static get[_0x2fe130(0xff)](){const _0x899629=_0x2fe130;return _0x899629(0x12a);}static get[_0x2fe130(0x120)](){return!0x0;}static get[_0x2fe130(0x134)](){return!0x0;}[_0x2fe130(0xf8)](){const _0x2c5cc1=_0x2fe130;this[_0x2c5cc1(0x129)]=this[_0x2c5cc1(0x118)][_0x2c5cc1(0x138)][_0x2c5cc1(0x105)](_0xb6667a),this[_0x2c5cc1(0x12c)]=this[_0x2c5cc1(0x118)][_0x2c5cc1(0x106)][_0x2c5cc1(0x105)](_0x2c5cc1(0x126))??[];const _0x6d7737=this[_0x2c5cc1(0x118)][_0x2c5cc1(0x138)][_0x2c5cc1(0x105)](_0x2c5cc1(0xfa));this[_0x2c5cc1(0x12c)][_0x2c5cc1(0x12e)]&&(this[_0x2c5cc1(0x11f)](),this[_0x2c5cc1(0x129)]['on'](_0x2c5cc1(0x10b),()=>{const _0x4cf5b9=_0x2c5cc1;_0x6d7737[_0x4cf5b9(0x114)][_0x4cf5b9(0xf7)]||this[_0x4cf5b9(0x135)]();}),this[_0x2c5cc1(0x137)](_0x6d7737,_0x2c5cc1(0xdf),()=>{const _0x1cf5fc=_0x2c5cc1;this[_0x1cf5fc(0xf9)]();}));}[_0x2fe130(0x11f)](){const _0x4be2c6=_0x2fe130,_0x72ae37=Object[_0x4be2c6(0x13a)](AIChatShortcutType);this[_0x4be2c6(0x12c)][_0x4be2c6(0x10f)](_0x1d60b0=>{const _0x49bfd2=_0x4be2c6;let _0x4e4b4f=!0x0;if(_0x1d60b0['id']&&_0x1d60b0[_0x49bfd2(0x11d)]&&_0x72ae37[_0x49bfd2(0xef)](_0x1d60b0[_0x49bfd2(0xe8)])?_0x49bfd2(0x115)===_0x1d60b0[_0x49bfd2(0xe8)]&&(_0x4e4b4f=_0x49bfd2(0x107)==typeof _0x1d60b0[_0x49bfd2(0xe9)]):_0x4e4b4f=!0x1,!_0x4e4b4f)throw new _0xf8dd1c(_0x49bfd2(0x127),this[_0x49bfd2(0x118)],{'shortcut':_0x1d60b0});});}[_0x2fe130(0x135)](){const _0x52233c=_0x2fe130,_0x3445bd=this[_0x52233c(0x118)][_0x52233c(0x138)][_0x52233c(0x105)](_0xb6667a);this[_0x52233c(0x10e)]=new _0x989325(this[_0x52233c(0x118)][_0x52233c(0x104)],this[_0x52233c(0x12c)]),this[_0x52233c(0x10e)][_0x52233c(0x103)](),_0x3445bd[_0x52233c(0x125)](this[_0x52233c(0x10e)][_0x52233c(0xf3)],Ut),this[_0x52233c(0x10e)]['on'](_0x52233c(0x10c),_0x3d99ed=>{const _0x1efd3a=_0x52233c,_0x59ce16=_0x3d99ed[_0x1efd3a(0x121)]['id'];this[_0x1efd3a(0x11a)](_0x59ce16);});}[_0x2fe130(0xf9)](){const _0x2e3c74=_0x2fe130,_0x1c9a6d=this[_0x2e3c74(0x118)][_0x2e3c74(0x138)][_0x2e3c74(0x105)](_0xb6667a);_0x1c9a6d[_0x2e3c74(0xeb)](Ut)&&_0x1c9a6d[_0x2e3c74(0xe5)](Ut),this[_0x2e3c74(0x10e)]?.[_0x2e3c74(0xf1)]();}[_0x2fe130(0x11a)](_0x4284fe){const _0x2a009e=_0x2fe130,_0x1ab921=this[_0x2a009e(0x12c)][_0x2a009e(0x131)](_0x24f27f=>_0x24f27f['id']===_0x4284fe),_0x14fb9d=_0x1ab921[_0x2a009e(0xe8)];_0x2a009e(0x115)===_0x14fb9d?this[_0x2a009e(0x11e)](_0x1ab921):_0x2a009e(0x112)===_0x14fb9d?_0x1ab921[_0x2a009e(0x119)]?this[_0x2a009e(0x124)](_0x1ab921):this[_0x2a009e(0xfd)](_0x2a009e(0x113)):_0x2a009e(0x101)===_0x14fb9d&&(_0x1ab921[_0x2a009e(0x109)]?this[_0x2a009e(0x100)](_0x1ab921):this[_0x2a009e(0xfd)](_0x2a009e(0x101)));}[_0x2fe130(0xfd)](_0x284cb1){const _0xbbac8a=_0x2fe130;if(!this[_0xbbac8a(0x118)][_0xbbac8a(0x138)][_0xbbac8a(0x110)](_0xbbac8a(0x123)))throw new _0xf8dd1c(_0xbbac8a(0x12d),this[_0xbbac8a(0x118)],{'tabName':_0x284cb1});this[_0xbbac8a(0x118)][_0xbbac8a(0x138)][_0xbbac8a(0x105)](_0xbbac8a(0x123))[_0xbbac8a(0x11b)][_0xbbac8a(0x128)](_0x284cb1);}async[_0x2fe130(0x11e)]({prompt:_0x429588,draftMode:_0x5efee4,useWebSearch:_0x397fbd=!0x1,useReasoning:_0x317cb1=!0x1,model:_0x12e7d0}){const _0x1ec382=_0x2fe130,_0x26f7c8=this[_0x1ec382(0x118)][_0x1ec382(0x138)][_0x1ec382(0x105)](_0x1ec382(0xfb)),_0x26f639=this[_0x1ec382(0x118)][_0x1ec382(0x138)][_0x1ec382(0x105)](_0x1ec382(0xfa)),_0x2d8a38=_0x26f639[_0x1ec382(0x114)];let _0x3c2c20;_0x3c2c20=_0x12e7d0?await _0x2d8a38[_0x1ec382(0xfe)][_0x1ec382(0xea)](_0x12e7d0):await _0x2d8a38[_0x1ec382(0xfe)][_0x1ec382(0x117)](),_0x3c2c20&&await _0x2d8a38[_0x1ec382(0xe2)](_0x3c2c20),_0x2d8a38[_0x1ec382(0xfc)](_0x397fbd),_0x2d8a38[_0x1ec382(0xe4)](_0x317cb1),_0x26f639[_0x1ec382(0xe7)](),_0x5efee4?(this[_0x1ec382(0x129)][_0x1ec382(0x10d)](_0x429588),this[_0x1ec382(0x129)][_0x1ec382(0x102)](!0x0)):_0x26f7c8[_0x1ec382(0xed)]({'message':_0x429588});}[_0x2fe130(0x124)]({check:_0x5e63e4,model:_0xa89d7e,prompt:_0x16b942,params:_0x2af6d1}){const _0x440f07=_0x2fe130;if(!this[_0x440f07(0x118)][_0x440f07(0x138)][_0x440f07(0x110)](_0x440f07(0x122)))throw new _0xf8dd1c(_0x440f07(0xe6),this[_0x440f07(0x118)]);this[_0x440f07(0xfd)](_0x440f07(0x113));const _0x732f83={'id':_0x5e63e4,'isCustom':_0x440f07(0x136)===_0x5e63e4};_0xa89d7e&&_0x16b942&&(_0x732f83[_0x440f07(0x132)]={'model':_0xa89d7e,'prompt':_0x16b942}),_0x2af6d1&&(_0x732f83[_0x440f07(0x12b)]=_0x2af6d1),this[_0x440f07(0x118)][_0x440f07(0x138)][_0x440f07(0x105)](_0x440f07(0x122))[_0x440f07(0xf0)](_0x440f07(0x108),_0x732f83);}[_0x2fe130(0x100)]({language:_0x26042f}){const _0x5b29f4=_0x2fe130;if(!this[_0x5b29f4(0x118)][_0x5b29f4(0x138)][_0x5b29f4(0x110)](_0x5b29f4(0x12f)))throw new _0xf8dd1c(_0x5b29f4(0x139),this[_0x5b29f4(0x118)]);this[_0x5b29f4(0xfd)](_0x5b29f4(0x101)),this[_0x5b29f4(0x118)][_0x5b29f4(0x138)][_0x5b29f4(0x105)](_0x5b29f4(0x12f))[_0x5b29f4(0xf0)](_0x5b29f4(0x108),{'id':_0x26042f,'args':{'language':_0x26042f}});}}function _0x2b5c(_0x3176c8,_0x522a91){const _0x2bf580=_0x2bf5();return _0x2b5c=function(_0x2b5c95,_0x348a1b){_0x2b5c95=_0x2b5c95-0xdf;let _0x2adb10=_0x2bf580[_0x2b5c95];return _0x2adb10;},_0x2b5c(_0x3176c8,_0x522a91);}function _0x2bf5(){const _0x4abdfa=['has','330JQZTtV','review','reviewMode','activeConversation','chat','1174981iigDMX','getDefault','context','check','_executeShortcut','view','chat-shortcuts','label','_runChatShortcut','_validateShortcuts','isOfficialPlugin','source','AIReviewModeUI','AITabs','_runReviewShortcut','addFeedItemCustomElement','ai.chat.shortcuts','ai-chat-shortcuts-invalid-config','activateTab','_aiChatUI','AIChatShortcuts','params','_shortcuts','ai-chat-shortcuts-ai-tabs-not-found','length','AITranslateUI','CHAT','find','args','requires','isPremiumPlugin','_injectShortcuts','custom','listenTo','plugins','ai-chat-shortcuts-translate-not-found','values','TRANSLATE','interactionStarted','8657uoodgI','REVIEW','setModel','827673IBZuYR','setReasoning','removeFeedItem','ai-chat-shortcuts-review-mode-not-found','addCurrentDocumentToChatContext','type','prompt','getModel','hasFeedItem','2EqQmzl','sendMessage','3301308MydToO','includes','fire','destroy','11282768FZIMKn','element','89346IQgVGZ','544688DtDiUt','34030Uclqia','isFromHistory','init','_removeShortcuts','AIChatController','AIChat','setWebSearch','_switchTab','chatModels','pluginName','_runTranslateShortcut','translate','focusPromptInput','render','locale','get','config','string','runReviewCheck','language','30ApVbAJ','conversationCreated','execute','setPromptInputValue','_shortcutsView','forEach'];_0x2bf5=function(){return _0x4abdfa;};return _0x2bf5();}
23
+ function _0x3a29(){const _0x499d86=['_runTranslateShortcut','ai.chat.shortcuts','custom','length','runReviewCheck','_aiChatUI','find','get','9sOzmZJ','_validateShortcuts','type','label','reviewMode','CHAT','REVIEW','view','plugins','AIChat','_switchTab','has','element','ai-chat-shortcuts-ai-tabs-not-found','activeConversation','render','activateTab','TRANSLATE','prompt','addCurrentDocumentToChatContext','removeFeedItem','isOfficialPlugin','locale','fire','config','_injectShortcuts','11180KlSmXb','includes','language','_runChatShortcut','isFromHistory','interactionStarted','source','setModel','addFeedItemCustomElement','string','16944100UjXlIX','AIReviewModeUI','forEach','AIChatController','values','focusPromptInput','init','AITranslateUI','_shortcutsView','ai-chat-shortcuts-review-mode-not-found','listenTo','_runReviewShortcut','ai-chat-shortcuts-invalid-config','1205wJPXse','chat-shortcuts','24EclmEK','params','_removeShortcuts','sendMessage','409360VyhJzM','requires','execute','pluginName','destroy','AIChatShortcuts','AITabs','setWebSearch','2345336YKNiqn','chat','ai-chat-shortcuts-translate-not-found','95298PjQzMW','11aBNhuJ','review','getModel','getDefault','hasFeedItem','_shortcuts','conversationCreated','isPremiumPlugin','args','context','36700836hZYFlI','translate','_executeShortcut','2179513hHslEX','setReasoning','chatModels','check','setPromptInputValue','2XYertV'];_0x3a29=function(){return _0x499d86;};return _0x3a29();}function _0x1568(_0x5abfe3,_0x5f39a1){const _0x3a29a0=_0x3a29();return _0x1568=function(_0x156892,_0x3f682b){_0x156892=_0x156892-0x104;let _0x5b5cd6=_0x3a29a0[_0x156892];return _0x5b5cd6;},_0x1568(_0x5abfe3,_0x5f39a1);}const _0x3f6819=_0x1568;(function(_0x37d213,_0x559b4f){const _0x530a11=_0x1568,_0x4cf06d=_0x37d213();while(!![]){try{const _0x1b81dd=parseInt(_0x530a11(0x154))/0x1+parseInt(_0x530a11(0x114))/0x2*(parseInt(_0x530a11(0x15f))/0x3)+parseInt(_0x530a11(0x137))/0x4*(parseInt(_0x530a11(0x14e))/0x5)+-parseInt(_0x530a11(0x150))/0x6*(parseInt(_0x530a11(0x10f))/0x7)+-parseInt(_0x530a11(0x15c))/0x8*(parseInt(_0x530a11(0x11d))/0x9)+-parseInt(_0x530a11(0x141))/0xa+-parseInt(_0x530a11(0x160))/0xb*(-parseInt(_0x530a11(0x10c))/0xc);if(_0x1b81dd===_0x559b4f)break;else _0x4cf06d['push'](_0x4cf06d['shift']());}catch(_0x49107e){_0x4cf06d['push'](_0x4cf06d['shift']());}}}(_0x3a29,0xe584f));import{AIChatUI as _0x16c1df}from'../aichat/aichatui.js';import{ContextPlugin as _0x48fc28}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0xa43ac}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x4c3dd4}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const at=_0x3f6819(0x14f);export var AIChatShortcutType;!function(_0x3d49be){const _0x4f3d83=_0x3f6819;_0x3d49be[_0x4f3d83(0x122)]=_0x4f3d83(0x15d),_0x3d49be[_0x4f3d83(0x123)]=_0x4f3d83(0x161),_0x3d49be[_0x4f3d83(0x12e)]=_0x4f3d83(0x10d);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x48fc28{[_0x3f6819(0x107)];[_0x3f6819(0x149)];[_0x3f6819(0x11a)];static get[_0x3f6819(0x155)](){return[_0x16c1df];}static get[_0x3f6819(0x157)](){const _0x52c252=_0x3f6819;return _0x52c252(0x159);}static get[_0x3f6819(0x132)](){return!0x0;}static get[_0x3f6819(0x109)](){return!0x0;}[_0x3f6819(0x147)](){const _0x2b55fc=_0x3f6819;this[_0x2b55fc(0x11a)]=this[_0x2b55fc(0x10b)][_0x2b55fc(0x125)][_0x2b55fc(0x11c)](_0x16c1df),this[_0x2b55fc(0x107)]=this[_0x2b55fc(0x10b)][_0x2b55fc(0x135)][_0x2b55fc(0x11c)](_0x2b55fc(0x116))??[];const _0x421078=this[_0x2b55fc(0x10b)][_0x2b55fc(0x125)][_0x2b55fc(0x11c)](_0x2b55fc(0x144));this[_0x2b55fc(0x107)][_0x2b55fc(0x118)]&&(this[_0x2b55fc(0x11e)](),this[_0x2b55fc(0x11a)]['on'](_0x2b55fc(0x108),()=>{const _0x2fd2ba=_0x2b55fc;_0x421078[_0x2fd2ba(0x12b)][_0x2fd2ba(0x13b)]||this[_0x2fd2ba(0x136)]();}),this[_0x2b55fc(0x14b)](_0x421078,_0x2b55fc(0x13c),()=>{const _0x4f79d0=_0x2b55fc;this[_0x4f79d0(0x152)]();}));}[_0x3f6819(0x11e)](){const _0x2ff074=_0x3f6819,_0x56fe77=Object[_0x2ff074(0x145)](AIChatShortcutType);this[_0x2ff074(0x107)][_0x2ff074(0x143)](_0x479ef0=>{const _0x3520cb=_0x2ff074;let _0x10fd7c=!0x0;if(_0x479ef0['id']&&_0x479ef0[_0x3520cb(0x120)]&&_0x56fe77[_0x3520cb(0x138)](_0x479ef0[_0x3520cb(0x11f)])?_0x3520cb(0x15d)===_0x479ef0[_0x3520cb(0x11f)]&&(_0x10fd7c=_0x3520cb(0x140)==typeof _0x479ef0[_0x3520cb(0x12f)]):_0x10fd7c=!0x1,!_0x10fd7c)throw new _0x4c3dd4(_0x3520cb(0x14d),this[_0x3520cb(0x10b)],{'shortcut':_0x479ef0});});}[_0x3f6819(0x136)](){const _0x79d6a2=_0x3f6819,_0x3e0bf2=this[_0x79d6a2(0x10b)][_0x79d6a2(0x125)][_0x79d6a2(0x11c)](_0x16c1df);this[_0x79d6a2(0x149)]=new _0xa43ac(this[_0x79d6a2(0x10b)][_0x79d6a2(0x133)],this[_0x79d6a2(0x107)]),this[_0x79d6a2(0x149)][_0x79d6a2(0x12c)](),_0x3e0bf2[_0x79d6a2(0x13f)](this[_0x79d6a2(0x149)][_0x79d6a2(0x129)],at),this[_0x79d6a2(0x149)]['on'](_0x79d6a2(0x156),_0x1af4ca=>{const _0x5bd3ef=_0x79d6a2,_0x513165=_0x1af4ca[_0x5bd3ef(0x13d)]['id'];this[_0x5bd3ef(0x10e)](_0x513165);});}[_0x3f6819(0x152)](){const _0x38ab5c=_0x3f6819,_0x52db45=this[_0x38ab5c(0x10b)][_0x38ab5c(0x125)][_0x38ab5c(0x11c)](_0x16c1df);_0x52db45[_0x38ab5c(0x106)](at)&&_0x52db45[_0x38ab5c(0x131)](at),this[_0x38ab5c(0x149)]?.[_0x38ab5c(0x158)]();}[_0x3f6819(0x10e)](_0x2ca14e){const _0x5b60f0=_0x3f6819,_0x45c7b8=this[_0x5b60f0(0x107)][_0x5b60f0(0x11b)](_0x25f8c5=>_0x25f8c5['id']===_0x2ca14e),_0xf40e5a=_0x45c7b8[_0x5b60f0(0x11f)];_0x5b60f0(0x15d)===_0xf40e5a?this[_0x5b60f0(0x13a)](_0x45c7b8):_0x5b60f0(0x161)===_0xf40e5a?_0x45c7b8[_0x5b60f0(0x112)]?this[_0x5b60f0(0x14c)](_0x45c7b8):this[_0x5b60f0(0x127)](_0x5b60f0(0x121)):_0x5b60f0(0x10d)===_0xf40e5a&&(_0x45c7b8[_0x5b60f0(0x139)]?this[_0x5b60f0(0x115)](_0x45c7b8):this[_0x5b60f0(0x127)](_0x5b60f0(0x10d)));}[_0x3f6819(0x127)](_0x5316b8){const _0x35689f=_0x3f6819;if(!this[_0x35689f(0x10b)][_0x35689f(0x125)][_0x35689f(0x128)](_0x35689f(0x15a)))throw new _0x4c3dd4(_0x35689f(0x12a),this[_0x35689f(0x10b)],{'tabName':_0x5316b8});this[_0x35689f(0x10b)][_0x35689f(0x125)][_0x35689f(0x11c)](_0x35689f(0x15a))[_0x35689f(0x124)][_0x35689f(0x12d)](_0x5316b8);}async[_0x3f6819(0x13a)]({prompt:_0x139f65,draftMode:_0x127dac,useWebSearch:_0x5125fa=!0x1,useReasoning:_0x182e77=!0x1,model:_0x1e99c3}){const _0x50880b=_0x3f6819,_0x2389b1=this[_0x50880b(0x10b)][_0x50880b(0x125)][_0x50880b(0x11c)](_0x50880b(0x126)),_0x278eac=this[_0x50880b(0x10b)][_0x50880b(0x125)][_0x50880b(0x11c)](_0x50880b(0x144)),_0x4e9185=_0x278eac[_0x50880b(0x12b)];let _0x4c24a6;_0x4c24a6=_0x1e99c3?await _0x4e9185[_0x50880b(0x111)][_0x50880b(0x104)](_0x1e99c3):await _0x4e9185[_0x50880b(0x111)][_0x50880b(0x105)](),_0x4c24a6&&await _0x4e9185[_0x50880b(0x13e)](_0x4c24a6),_0x4e9185[_0x50880b(0x15b)](_0x5125fa),_0x4e9185[_0x50880b(0x110)](_0x182e77),_0x278eac[_0x50880b(0x130)](),_0x127dac?(this[_0x50880b(0x11a)][_0x50880b(0x113)](_0x139f65),this[_0x50880b(0x11a)][_0x50880b(0x146)](!0x0)):_0x2389b1[_0x50880b(0x153)]({'message':_0x139f65});}[_0x3f6819(0x14c)]({check:_0x5e64b1,model:_0x306876,prompt:_0x2c7758,params:_0x12eaee}){const _0x202d3c=_0x3f6819;if(!this[_0x202d3c(0x10b)][_0x202d3c(0x125)][_0x202d3c(0x128)](_0x202d3c(0x142)))throw new _0x4c3dd4(_0x202d3c(0x14a),this[_0x202d3c(0x10b)]);this[_0x202d3c(0x127)](_0x202d3c(0x121));const _0x5d388d={'id':_0x5e64b1,'isCustom':_0x202d3c(0x117)===_0x5e64b1};_0x306876&&_0x2c7758&&(_0x5d388d[_0x202d3c(0x10a)]={'model':_0x306876,'prompt':_0x2c7758}),_0x12eaee&&(_0x5d388d[_0x202d3c(0x151)]=_0x12eaee),this[_0x202d3c(0x10b)][_0x202d3c(0x125)][_0x202d3c(0x11c)](_0x202d3c(0x142))[_0x202d3c(0x134)](_0x202d3c(0x119),_0x5d388d);}[_0x3f6819(0x115)]({language:_0x3c4175}){const _0x5b0d46=_0x3f6819;if(!this[_0x5b0d46(0x10b)][_0x5b0d46(0x125)][_0x5b0d46(0x128)](_0x5b0d46(0x148)))throw new _0x4c3dd4(_0x5b0d46(0x15e),this[_0x5b0d46(0x10b)]);this[_0x5b0d46(0x127)](_0x5b0d46(0x10d)),this[_0x5b0d46(0x10b)][_0x5b0d46(0x125)][_0x5b0d46(0x11c)](_0x5b0d46(0x148))[_0x5b0d46(0x134)](_0x5b0d46(0x119),{'id':_0x3c4175,'args':{'language':_0x3c4175}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x213ec4=_0x16da;function _0x38ae(){const _0x17c4f8=['addMany','3533424RwPdjV','ck-ai-chat-shortcuts','delegate','2476320VTqDsw','2126460SIEmSI','items','div','1520RPGxNC','execute','children','30645CweIBR','574523nUAgmg','listView','locale','setTemplate','add','1122459HeoBkZ','2QwflMV','25396JgjtHt','map','5260lvLCFP'];_0x38ae=function(){return _0x17c4f8;};return _0x38ae();}function _0x16da(_0x387f02,_0x3197bf){const _0x38ae1f=_0x38ae();return _0x16da=function(_0x16dab9,_0x38e4e9){_0x16dab9=_0x16dab9-0x1e6;let _0x313abf=_0x38ae1f[_0x16dab9];return _0x313abf;},_0x16da(_0x387f02,_0x3197bf);}(function(_0x369289,_0x4196a3){const _0x225bb7=_0x16da,_0x5d7d5b=_0x369289();while(!![]){try{const _0x4a4b58=parseInt(_0x225bb7(0x1f5))/0x1*(parseInt(_0x225bb7(0x1fb))/0x2)+parseInt(_0x225bb7(0x1fa))/0x3+parseInt(_0x225bb7(0x1ea))/0x4+-parseInt(_0x225bb7(0x1ed))/0x5+parseInt(_0x225bb7(0x1ee))/0x6+-parseInt(_0x225bb7(0x1e6))/0x7*(-parseInt(_0x225bb7(0x1f1))/0x8)+-parseInt(_0x225bb7(0x1f4))/0x9*(parseInt(_0x225bb7(0x1e8))/0xa);if(_0x4a4b58===_0x4196a3)break;else _0x5d7d5b['push'](_0x5d7d5b['shift']());}catch(_0x4aadd2){_0x5d7d5b['push'](_0x5d7d5b['shift']());}}}(_0x38ae,0x8fe9c));import{ListItemView as _0x53b14f,ListView as _0x5eac6e,View as _0x33d8c2}from'ckeditor5/src/ui.js';import{AIChatShortcutView as _0x38e810}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x33d8c2{[_0x213ec4(0x1f6)];constructor(_0x25ceac,_0x5c177d){const _0x4de01a=_0x213ec4;super(_0x25ceac);const _0x38ce1e=_0x5c177d[_0x4de01a(0x1e7)](_0x4139c4=>{const _0x129ad1=_0x4de01a,_0x27bd6d=new _0x53b14f(this[_0x129ad1(0x1f7)]),_0x2f4cad=new _0x38e810(this[_0x129ad1(0x1f7)],_0x4139c4);return _0x27bd6d[_0x129ad1(0x1f3)][_0x129ad1(0x1f9)](_0x2f4cad),_0x2f4cad[_0x129ad1(0x1ec)](_0x129ad1(0x1f2))['to'](this),_0x27bd6d;});this[_0x4de01a(0x1f6)]=new _0x5eac6e(this[_0x4de01a(0x1f7)]),this[_0x4de01a(0x1f6)][_0x4de01a(0x1ef)][_0x4de01a(0x1e9)](_0x38ce1e),this[_0x4de01a(0x1f8)]({'tag':_0x4de01a(0x1f0),'attributes':{'class':['ck',_0x4de01a(0x1eb)]},'children':[this[_0x4de01a(0x1f6)]]});}}
23
+ function _0x1316(_0x5a756b,_0x123368){const _0x526a0a=_0x526a();return _0x1316=function(_0x13162d,_0x396be9){_0x13162d=_0x13162d-0x7d;let _0x3fc7bb=_0x526a0a[_0x13162d];return _0x3fc7bb;},_0x1316(_0x5a756b,_0x123368);}function _0x526a(){const _0x494908=['add','setTemplate','840570hRtbMk','36902WFwGrg','118162EDdEib','1386680eoXhzO','2671190uFpbva','2181YiihHi','9IzetRe','7HuxsGp','items','children','ck-ai-chat-shortcuts','addMany','locale','div','listView','41110pxsXWG','execute','map','delegate','1916yoEMoO'];_0x526a=function(){return _0x494908;};return _0x526a();}const _0x91eae4=_0x1316;(function(_0x556b92,_0x5d4498){const _0x562bcf=_0x1316,_0x41be85=_0x556b92();while(!![]){try{const _0x2ceeb2=parseInt(_0x562bcf(0x85))/0x1+parseInt(_0x562bcf(0x86))/0x2+-parseInt(_0x562bcf(0x89))/0x3*(-parseInt(_0x562bcf(0x81))/0x4)+-parseInt(_0x562bcf(0x7d))/0x5+parseInt(_0x562bcf(0x84))/0x6*(-parseInt(_0x562bcf(0x8b))/0x7)+-parseInt(_0x562bcf(0x87))/0x8*(-parseInt(_0x562bcf(0x8a))/0x9)+-parseInt(_0x562bcf(0x88))/0xa;if(_0x2ceeb2===_0x5d4498)break;else _0x41be85['push'](_0x41be85['shift']());}catch(_0x4b820a){_0x41be85['push'](_0x41be85['shift']());}}}(_0x526a,0x31583));import{ListItemView as _0x994c94,ListView as _0x2060f5,View as _0x57a205}from'ckeditor5/src/ui.js';import{AIChatShortcutView as _0x1ef5df}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x57a205{[_0x91eae4(0x92)];constructor(_0x56032b,_0xda0799){const _0x498392=_0x91eae4;super(_0x56032b);const _0xdd72d4=_0xda0799[_0x498392(0x7f)](_0x599733=>{const _0x34fe59=_0x498392,_0x4012d0=new _0x994c94(this[_0x34fe59(0x90)]),_0x480a07=new _0x1ef5df(this[_0x34fe59(0x90)],_0x599733);return _0x4012d0[_0x34fe59(0x8d)][_0x34fe59(0x82)](_0x480a07),_0x480a07[_0x34fe59(0x80)](_0x34fe59(0x7e))['to'](this),_0x4012d0;});this[_0x498392(0x92)]=new _0x2060f5(this[_0x498392(0x90)]),this[_0x498392(0x92)][_0x498392(0x8c)][_0x498392(0x8f)](_0xdd72d4),this[_0x498392(0x83)]({'tag':_0x498392(0x91),'attributes':{'class':['ck',_0x498392(0x8e)]},'children':[this[_0x498392(0x92)]]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x9da29c,_0x1e95bb){const _0x44690d=_0x5530,_0x465436=_0x9da29c();while(!![]){try{const _0x28577b=parseInt(_0x44690d(0x1c2))/0x1+-parseInt(_0x44690d(0x1bd))/0x2+parseInt(_0x44690d(0x1b9))/0x3*(-parseInt(_0x44690d(0x1be))/0x4)+parseInt(_0x44690d(0x1b7))/0x5+-parseInt(_0x44690d(0x1c0))/0x6+-parseInt(_0x44690d(0x1c3))/0x7+parseInt(_0x44690d(0x1b6))/0x8;if(_0x28577b===_0x1e95bb)break;else _0x465436['push'](_0x465436['shift']());}catch(_0x4dccc6){_0x465436['push'](_0x465436['shift']());}}}(_0x1889,0x7ffa7));function _0x5530(_0x3d7a58,_0x317569){const _0x18894c=_0x1889();return _0x5530=function(_0x553014,_0x2090ea){_0x553014=_0x553014-0x1b6;let _0x11f75f=_0x18894c[_0x553014];return _0x11f75f;},_0x5530(_0x3d7a58,_0x317569);}import{ButtonView as _0x5b31e1}from'ckeditor5/src/ui.js';import{IconAIChat as _0x1a2053,IconAIReview as _0x37faf0,IconAITranslate as _0x1f810d}from'@ckeditor/ckeditor5-icons';function _0x1889(){const _0x55cbee=['13426544tbnTub','5209230pqwwPs','icon','2573973QYgubn','label','translate','chat','1975686LVzixg','4WErFMV','set','1101690nrJWyc','review','12344yrIiGf','1252020QfYJVM','extendTemplate','ck-ai-chat-shortcut'];_0x1889=function(){return _0x55cbee;};return _0x1889();}export class AIChatShortcutView extends _0x5b31e1{['id'];constructor(_0xc7cc78,_0x42aff4){const _0x255a11=_0x5530;super(_0xc7cc78);const {id:_0x1f96bb,type:_0x358ed7,icon:_0xb8bc35}=_0x42aff4;this['id']=_0x1f96bb,this[_0x255a11(0x1bf)]({'label':_0x42aff4[_0x255a11(0x1ba)],'withText':!0x0,'class':_0x255a11(0x1c5)}),this[_0x255a11(0x1c4)]({'attributes':{'data-cke-ai-shortcut-id':_0x42aff4['id']}}),_0xb8bc35?this[_0x255a11(0x1b8)]=_0xb8bc35:_0x255a11(0x1bc)===_0x358ed7?this[_0x255a11(0x1b8)]=_0x1a2053:_0x255a11(0x1c1)===_0x358ed7?this[_0x255a11(0x1b8)]=_0x37faf0:_0x255a11(0x1bb)===_0x358ed7&&(this[_0x255a11(0x1b8)]=_0x1f810d);}}
23
+ function _0x2b64(_0x2da87b,_0x144393){const _0x461e7a=_0x461e();return _0x2b64=function(_0x2b6417,_0x12b046){_0x2b6417=_0x2b6417-0x83;let _0x350303=_0x461e7a[_0x2b6417];return _0x350303;},_0x2b64(_0x2da87b,_0x144393);}function _0x461e(){const _0x1cafb9=['1734UQcAHB','icon','set','4549372CrZkSo','translate','extendTemplate','17486470yZwbAl','chat','9QyEyJe','1538550NOAawo','2429TDlgHj','label','review','11522488wLshau','44374DBugYl','ck-ai-chat-shortcut','2206785RkxyBz','56yXjJnq'];_0x461e=function(){return _0x1cafb9;};return _0x461e();}(function(_0x1b0558,_0x7f6093){const _0x84c21=_0x2b64,_0x36b484=_0x1b0558();while(!![]){try{const _0xae4ec4=parseInt(_0x84c21(0x93))/0x1*(-parseInt(_0x84c21(0x90))/0x2)+-parseInt(_0x84c21(0x8b))/0x3+-parseInt(_0x84c21(0x85))/0x4+parseInt(_0x84c21(0x92))/0x5+parseInt(_0x84c21(0x94))/0x6*(parseInt(_0x84c21(0x8c))/0x7)+parseInt(_0x84c21(0x8f))/0x8+parseInt(_0x84c21(0x8a))/0x9*(parseInt(_0x84c21(0x88))/0xa);if(_0xae4ec4===_0x7f6093)break;else _0x36b484['push'](_0x36b484['shift']());}catch(_0x35a829){_0x36b484['push'](_0x36b484['shift']());}}}(_0x461e,0xcc92d));import{ButtonView as _0x1a6ff9}from'ckeditor5/src/ui.js';import{IconAIChat as _0x25353c,IconAIReview as _0x44ee06,IconAITranslate as _0x3ec600}from'@ckeditor/ckeditor5-icons';export class AIChatShortcutView extends _0x1a6ff9{['id'];constructor(_0x4b301d,_0x372b3e){const _0x1f9e27=_0x2b64;super(_0x4b301d);const {id:_0x61dc68,type:_0x252b3e,icon:_0xb7ef81}=_0x372b3e;this['id']=_0x61dc68,this[_0x1f9e27(0x84)]({'label':_0x372b3e[_0x1f9e27(0x8d)],'withText':!0x0,'class':_0x1f9e27(0x91)}),this[_0x1f9e27(0x87)]({'attributes':{'data-cke-ai-shortcut-id':_0x372b3e['id']}}),_0xb7ef81?this[_0x1f9e27(0x83)]=_0xb7ef81:_0x1f9e27(0x89)===_0x252b3e?this[_0x1f9e27(0x83)]=_0x25353c:_0x1f9e27(0x8e)===_0x252b3e?this[_0x1f9e27(0x83)]=_0x44ee06:_0x1f9e27(0x86)===_0x252b3e&&(this[_0x1f9e27(0x83)]=_0x3ec600);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x17ed(){const _0x488a98=['2691543aMVzHW','message','uploadFile','upsertAIChatRating','stringify','getModels','/calls/','/reviews/custom/calls','translate','/conversations/','upsertCustomAIReviewRating','Content-Type','AbortError','/files/','code','make-longer','ai-request-failed','body','POST','parse','callSystemReview','group','4034560JasABJ','1695076cfNyUe','decode','name','deleteWebResource','fetchConversations','/models/1?','positiveCount','config','token','10szhXcj','upsertAIActionRating','statusText','_decoder','get','modificationId','continue','/files','requires','CloudServices','desc','isOfficialPlugin','ai-request-aborted','/web-resources','deleteFile','fix-grammar','toString','ai.serviceUrl','length','AIConnector','/ratings','context','/documents/','/reviews/system/','ai-missing-token','sortBy','catch','push','PUT','2305830wZvBaI','DELETE','init','/web-resources/','7829776FxNETV','application/json','/calls','true','releaseLock','abortController','read','https://ai.cke-cs.com/v1','_apiUrl','totalCount','value','executeCustomAction','TRANSLATE','upsertAIReviewRating','request','limit','items','attributes','createdAt','fetchDocument','/actions/system/','status','plugins','/actions/custom/calls/','define','_getStreamReader','isPremiumPlugin','updateConversation','file','/conversations?','traceId','CONTINUE','/messages','MAKE_LONGER','MAKE_SHORTER','make-tone-casual','text','uploadDocument','MAKE_TONE_FORMAL','executeAction','uploadUrl','IMPROVE_WRITING','/reviews/custom/calls/','FIX_GRAMMAR','upsertCustomAIActionRating','make-shorter','callCustomReview','_sendApiRequest','pluginName','21021219QdEJCR','fetchConversation','/actions/custom/calls','/documents','deleteDocument','startConversation','data','getReader','queryAssistant','then','order','/messages/','reset','json','_token','100','feed','append','/conversations','7pJuzhl','false','Bearer\x20','1vrbivr','language','PATCH','MAKE_TONE_CASUAL','signal','deleteConversation','fetchConversationMessages','improve-writing','excludeEmpty','1422366KADsIQ','GET','make-tone-formal','_handleError'];_0x17ed=function(){return _0x488a98;};return _0x17ed();}function _0xa1f8(_0x326371,_0x15b5df){const _0x17ed99=_0x17ed();return _0xa1f8=function(_0xa1f84d,_0x2fc761){_0xa1f84d=_0xa1f84d-0x1f4;let _0xad2218=_0x17ed99[_0xa1f84d];return _0xad2218;},_0xa1f8(_0x326371,_0x15b5df);}const _0x154e2e=_0xa1f8;(function(_0xb0c680,_0x27d4a7){const _0x231eff=_0xa1f8,_0xb264af=_0xb0c680();while(!![]){try{const _0x1faba3=parseInt(_0x231eff(0x208))/0x1*(-parseInt(_0x231eff(0x22c))/0x2)+parseInt(_0x231eff(0x215))/0x3+-parseInt(_0x231eff(0x22b))/0x4+parseInt(_0x231eff(0x252))/0x5+-parseInt(_0x231eff(0x211))/0x6+parseInt(_0x231eff(0x205))/0x7*(-parseInt(_0x231eff(0x256))/0x8)+-parseInt(_0x231eff(0x287))/0x9*(-parseInt(_0x231eff(0x235))/0xa);if(_0x1faba3===_0x27d4a7)break;else _0xb264af['push'](_0xb264af['shift']());}catch(_0x2dbc86){_0xb264af['push'](_0xb264af['shift']());}}}(_0x17ed,0x97dfd));import{createParser as _0xfdb986}from'eventsource-parser';import{ContextPlugin as _0x2f73e6}from'ckeditor5/src/core.js';import{CKEditorError as _0x56ce13}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x534215){const _0x41cfc4=_0xa1f8;_0x534215[_0x41cfc4(0x275)]=_0x41cfc4(0x23b),_0x534215[_0x41cfc4(0x281)]=_0x41cfc4(0x244),_0x534215[_0x41cfc4(0x27f)]=_0x41cfc4(0x20f),_0x534215[_0x41cfc4(0x277)]=_0x41cfc4(0x224),_0x534215[_0x41cfc4(0x278)]=_0x41cfc4(0x283),_0x534215[_0x41cfc4(0x20b)]=_0x41cfc4(0x279),_0x534215[_0x41cfc4(0x27c)]=_0x41cfc4(0x213),_0x534215[_0x41cfc4(0x262)]=_0x41cfc4(0x21d);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x2f73e6{[_0x154e2e(0x25e)];[_0x154e2e(0x200)];[_0x154e2e(0x238)];static get[_0x154e2e(0x23d)](){const _0xb36f2e=_0x154e2e;return[_0xb36f2e(0x23e)];}static get[_0x154e2e(0x286)](){const _0x3bf294=_0x154e2e;return _0x3bf294(0x248);}static get[_0x154e2e(0x240)](){return!0x0;}static get[_0x154e2e(0x270)](){return!0x0;}constructor(_0x2b238b){const _0x1e8068=_0x154e2e;super(_0x2b238b),this[_0x1e8068(0x24a)][_0x1e8068(0x233)][_0x1e8068(0x26e)](_0x1e8068(0x246),_0x1e8068(0x25d)),this[_0x1e8068(0x25e)]=this[_0x1e8068(0x24a)][_0x1e8068(0x233)][_0x1e8068(0x239)](_0x1e8068(0x246)),this[_0x1e8068(0x200)]=null,this[_0x1e8068(0x238)]=new TextDecoder();}[_0x154e2e(0x254)](){const _0x3ac557=_0x154e2e,_0x2dbec8=this[_0x3ac557(0x24a)][_0x3ac557(0x26c)][_0x3ac557(0x239)](_0x3ac557(0x23e));if(!_0x2dbec8[_0x3ac557(0x234)])throw new _0x56ce13(_0x3ac557(0x24d),this);this[_0x3ac557(0x200)]=_0x2dbec8[_0x3ac557(0x234)];}[_0x154e2e(0x1f7)](_0x274c44,_0x475c79){const _0x989b27=_0x154e2e,_0x50b915=this[_0x989b27(0x285)](_0x989b27(0x204),_0x989b27(0x227),{'id':_0x274c44,'group':_0x475c79});return{'getConversation':async()=>(await _0x50b915[_0x989b27(0x264)])[_0x989b27(0x1ff)](),'abortController':_0x50b915[_0x989b27(0x25b)]};}[_0x154e2e(0x1fa)]({message:_0x3afd9e,conversationId:_0x6cfdbd,parts:_0x3647b8,capabilities:_0x41a195,model:_0x778316,attributes:_0x59fdcb}){const _0x1eb729=_0x154e2e,_0x516deb={'prompt':_0x3afd9e,'content':_0x3647b8,'model':_0x778316,..._0x41a195&&{'capabilities':_0x41a195},..._0x59fdcb&&{'attributes':_0x59fdcb}},_0x1e5aff=this[_0x1eb729(0x285)](_0x1eb729(0x21e)+_0x6cfdbd+_0x1eb729(0x276),_0x1eb729(0x227),_0x516deb);return{'getStream':async()=>{const _0xb7706a=_0x1eb729,_0x3373e5=(await _0x1e5aff[_0xb7706a(0x264)])[_0xb7706a(0x226)];return this[_0xb7706a(0x26f)](_0x3373e5);},'abortController':_0x1e5aff[_0x1eb729(0x25b)]};}[_0x154e2e(0x261)]({content:_0x1ab38e,message:_0x427217,model:_0xb163b7,outputFormat:_0x151b89}){const _0x54ad2c=_0x154e2e,_0x1a4975={'content':[{'type':_0x54ad2c(0x27a),'content':_0x1ab38e}],'prompt':_0x427217,'model':_0xb163b7,'outputFormat':_0x151b89},_0x305f24=this[_0x54ad2c(0x285)](_0x54ad2c(0x1f4),_0x54ad2c(0x227),_0x1a4975);return{'getStream':async()=>{const _0x345cb8=_0x54ad2c,_0x5c6a04=(await _0x305f24[_0x345cb8(0x264)])[_0x345cb8(0x226)];return this[_0x345cb8(0x26f)](_0x5c6a04);},'abortController':_0x305f24[_0x54ad2c(0x25b)]};}[_0x154e2e(0x27d)]({actionName:_0x4ec561,content:_0xf0389f,args:_0x523110}){const _0x30d78e=_0x154e2e,_0x67523c={'content':[{'type':_0x30d78e(0x27a),'content':_0xf0389f}],'args':_0x523110},_0x5318fa=this[_0x30d78e(0x285)](_0x30d78e(0x26a)+_0x4ec561+_0x30d78e(0x258),_0x30d78e(0x227),_0x67523c);return{'getStream':async()=>{const _0x560240=_0x30d78e,_0x48bf2c=(await _0x5318fa[_0x560240(0x264)])[_0x560240(0x226)];return this[_0x560240(0x26f)](_0x48bf2c);},'abortController':_0x5318fa[_0x30d78e(0x25b)]};}[_0x154e2e(0x217)](_0x3202fd,_0x5380cd,_0x3b3aa4){const _0x311c1e=_0x154e2e,_0x2bb3f6=new FormData();_0x2bb3f6[_0x311c1e(0x203)](_0x311c1e(0x272),_0x5380cd,_0x5380cd[_0x311c1e(0x22e)]),_0x3b3aa4&&_0x2bb3f6[_0x311c1e(0x203)](_0x311c1e(0x267),JSON[_0x311c1e(0x219)](_0x3b3aa4));const _0x45d76a=this[_0x311c1e(0x285)](_0x311c1e(0x21e)+_0x3202fd+_0x311c1e(0x23c),_0x311c1e(0x227),_0x2bb3f6);return{'getId':async()=>(await _0x45d76a[_0x311c1e(0x264)])[_0x311c1e(0x1ff)](),'abortController':_0x45d76a[_0x311c1e(0x25b)]};}[_0x154e2e(0x269)](_0xf41bef,_0x133232){const _0x36f3a1=_0x154e2e,_0x29ddcf=this[_0x36f3a1(0x285)](_0x36f3a1(0x21e)+_0xf41bef+_0x36f3a1(0x24b)+_0x133232,_0x36f3a1(0x212));return{'getDocument':async()=>(await _0x29ddcf[_0x36f3a1(0x264)])[_0x36f3a1(0x1ff)](),'abortController':_0x29ddcf[_0x36f3a1(0x25b)]};}[_0x154e2e(0x27b)](_0x7dabbe,_0x510e9c,_0x5ed297){const _0xd59166=_0x154e2e,_0x8094a8={'content':_0x510e9c};_0x5ed297&&(_0x8094a8[_0xd59166(0x267)]=_0x5ed297);const _0x2186e1=this[_0xd59166(0x285)](_0xd59166(0x21e)+_0x7dabbe+_0xd59166(0x1f5),_0xd59166(0x227),_0x8094a8);return{'getId':async()=>(await _0x2186e1[_0xd59166(0x264)])[_0xd59166(0x1ff)](),'abortController':_0x2186e1[_0xd59166(0x25b)]};}[_0x154e2e(0x230)](_0x16cd57,_0x3ec070={}){const _0x3c0535=_0x154e2e,_0x5c0e55=new URLSearchParams();_0x5c0e55[_0x3c0535(0x203)](_0x3c0535(0x22a),_0x16cd57),_0x5c0e55[_0x3c0535(0x203)](_0x3c0535(0x210),!0x1!==_0x3ec070[_0x3c0535(0x210)]?_0x3c0535(0x259):_0x3c0535(0x206)),_0x5c0e55[_0x3c0535(0x203)](_0x3c0535(0x265),_0x3ec070[_0x3c0535(0x265)]?_0x3ec070[_0x3c0535(0x265)][_0x3c0535(0x245)]():_0x3c0535(0x201)),_0x5c0e55[_0x3c0535(0x203)](_0x3c0535(0x24e),_0x3ec070[_0x3c0535(0x24e)]?_0x3ec070[_0x3c0535(0x24e)]:_0x3c0535(0x268)),_0x5c0e55[_0x3c0535(0x203)](_0x3c0535(0x1fc),_0x3ec070[_0x3c0535(0x1fc)]?_0x3ec070[_0x3c0535(0x1fc)]:_0x3c0535(0x23f));const _0x5b1af6=this[_0x3c0535(0x285)](_0x3c0535(0x273)+_0x5c0e55[_0x3c0535(0x245)](),_0x3c0535(0x212));return{'getConversations':async()=>{const _0x339527=_0x3c0535,_0x1676b1=await _0x5b1af6[_0x339527(0x264)];return(await _0x1676b1[_0x339527(0x1ff)]())[_0x339527(0x266)];},'abortController':_0x5b1af6[_0x3c0535(0x25b)]};}[_0x154e2e(0x20d)](_0x2b457a){const _0x42cfd4=_0x154e2e,_0x512c67=this[_0x42cfd4(0x285)](_0x42cfd4(0x21e)+_0x2b457a,_0x42cfd4(0x253));return{'execute':async()=>{const _0x55591e=_0x42cfd4;await _0x512c67[_0x55591e(0x264)];},'abortController':_0x512c67[_0x42cfd4(0x25b)]};}[_0x154e2e(0x271)](_0x3d09f8,_0x3cc869){const _0x401c68=_0x154e2e,_0x2a9c8c=this[_0x401c68(0x285)](_0x401c68(0x21e)+_0x3d09f8,_0x401c68(0x20a),_0x3cc869);return{'getResult':async()=>(await _0x2a9c8c[_0x401c68(0x264)],_0x3cc869),'abortController':_0x2a9c8c[_0x401c68(0x25b)]};}[_0x154e2e(0x288)](_0x35f639){const _0x1706a1=_0x154e2e,_0x49fffa=this[_0x1706a1(0x285)](_0x1706a1(0x21e)+_0x35f639,_0x1706a1(0x212));return{'getConversation':async()=>(await _0x49fffa[_0x1706a1(0x264)])[_0x1706a1(0x1ff)](),'abortController':_0x49fffa[_0x1706a1(0x25b)]};}[_0x154e2e(0x20e)](_0x2503eb){const _0x5c472d=_0x154e2e,_0x23300c=this[_0x5c472d(0x285)](_0x5c472d(0x21e)+_0x2503eb+_0x5c472d(0x276),_0x5c472d(0x212));return{'getMessages':async()=>{const _0x45d74d=_0x5c472d,_0x12640e=await _0x23300c[_0x45d74d(0x264)];return(await _0x12640e[_0x45d74d(0x1ff)]())[_0x45d74d(0x266)];},'abortController':_0x23300c[_0x5c472d(0x25b)]};}[_0x154e2e(0x27e)](_0x575bd0,_0xd0c50b,_0x46a3df){const _0x58fab9=_0x154e2e,_0x4551f1=this[_0x58fab9(0x285)](_0x58fab9(0x21e)+_0x575bd0+_0x58fab9(0x242),_0x58fab9(0x227),{'url':_0xd0c50b,'attributes':_0x46a3df});return{'getId':async()=>(await _0x4551f1[_0x58fab9(0x264)])[_0x58fab9(0x1ff)](),'abortController':_0x4551f1[_0x58fab9(0x25b)]};}[_0x154e2e(0x21a)](_0x36a8e9='en'){const _0x2b501c=_0x154e2e,_0x30ddba=new URLSearchParams();_0x30ddba[_0x2b501c(0x203)](_0x2b501c(0x209),_0x36a8e9);const _0x5242c2=_0x2b501c(0x231)+_0x30ddba[_0x2b501c(0x245)](),_0x4f57db=this[_0x2b501c(0x285)](_0x5242c2,_0x2b501c(0x212));return{'list':async()=>await(await _0x4f57db[_0x2b501c(0x264)])[_0x2b501c(0x1ff)](),'abortController':_0x4f57db[_0x2b501c(0x25b)]};}[_0x154e2e(0x243)](_0x19b999,_0x5e0cf0){const _0x42e097=_0x154e2e,_0x159a0f=this[_0x42e097(0x285)](_0x42e097(0x21e)+_0x19b999+_0x42e097(0x222)+_0x5e0cf0,_0x42e097(0x253));return{'execute':async()=>{const _0xbabfbe=_0x42e097;await _0x159a0f[_0xbabfbe(0x264)];},'abortController':_0x159a0f[_0x42e097(0x25b)]};}[_0x154e2e(0x1f6)](_0x276349,_0x553741){const _0x571a93=_0x154e2e,_0x366472=this[_0x571a93(0x285)](_0x571a93(0x21e)+_0x276349+_0x571a93(0x24b)+_0x553741,_0x571a93(0x253));return{'execute':async()=>{const _0x28917e=_0x571a93;await _0x366472[_0x28917e(0x264)];},'abortController':_0x366472[_0x571a93(0x25b)]};}[_0x154e2e(0x22f)](_0x292405,_0x233ab1){const _0x26869e=_0x154e2e,_0x2601e1=this[_0x26869e(0x285)](_0x26869e(0x21e)+_0x292405+_0x26869e(0x255)+_0x233ab1,_0x26869e(0x253));return{'execute':async()=>{const _0x2d89d0=_0x26869e;await _0x2601e1[_0x2d89d0(0x264)];},'abortController':_0x2601e1[_0x26869e(0x25b)]};}[_0x154e2e(0x229)]({reviewName:_0x27799d,content:_0x1a26d9,args:_0x1dc6d0}){const _0x588f9a=_0x154e2e,_0x4c0053=this[_0x588f9a(0x285)](_0x588f9a(0x24c)+_0x27799d+_0x588f9a(0x258),_0x588f9a(0x227),{'content':[{'type':_0x588f9a(0x27a),'content':_0x1a26d9}],'args':_0x1dc6d0});return{'getStream':async()=>{const _0x3762cc=_0x588f9a,_0x1fa777=(await _0x4c0053[_0x3762cc(0x264)])[_0x3762cc(0x226)];return this[_0x3762cc(0x26f)](_0x1fa777);},'abortController':_0x4c0053[_0x588f9a(0x25b)]};}[_0x154e2e(0x284)]({content:_0x3943d1,prompt:_0x320363,model:_0x1bafda}){const _0x175c3f=_0x154e2e,_0x5544cd=this[_0x175c3f(0x285)](_0x175c3f(0x21c),_0x175c3f(0x227),{'content':[{'type':_0x175c3f(0x27a),'content':_0x3943d1}],'prompt':_0x320363,'model':_0x1bafda});return{'getStream':async()=>{const _0x3a73eb=_0x175c3f,_0x3e99ff=(await _0x5544cd[_0x3a73eb(0x264)])[_0x3a73eb(0x226)];return this[_0x3a73eb(0x26f)](_0x3e99ff);},'abortController':_0x5544cd[_0x175c3f(0x25b)]};}[_0x154e2e(0x218)](_0x437661,_0x36e880,_0x558799){const _0x5ba0c0=_0x154e2e,_0x475add=this[_0x5ba0c0(0x285)](_0x5ba0c0(0x21e)+_0x437661+_0x5ba0c0(0x1fd)+_0x36e880+_0x5ba0c0(0x249),_0x5ba0c0(0x251),{'positiveCount':_0x558799[_0x5ba0c0(0x232)],'totalCount':_0x558799[_0x5ba0c0(0x25f)],'modificationId':_0x558799[_0x5ba0c0(0x23a)]});return{'execute':async()=>{const _0x4cd14d=_0x5ba0c0;await _0x475add[_0x4cd14d(0x264)];},'abortController':_0x475add[_0x5ba0c0(0x25b)]};}[_0x154e2e(0x236)](_0x596123,_0x5718a9,_0x2a6b56){const _0xac99cf=_0x154e2e,_0x805895=this[_0xac99cf(0x285)](_0xac99cf(0x26a)+_0x596123+_0xac99cf(0x21b)+_0x5718a9+_0xac99cf(0x249),_0xac99cf(0x251),{'positiveCount':_0x2a6b56[_0xac99cf(0x232)],'totalCount':_0x2a6b56[_0xac99cf(0x25f)]});return{'execute':async()=>{const _0x438081=_0xac99cf;await _0x805895[_0x438081(0x264)];},'abortController':_0x805895[_0xac99cf(0x25b)]};}[_0x154e2e(0x282)](_0x4af965,_0x5b7918){const _0x4b04ed=_0x154e2e,_0x2dd047=this[_0x4b04ed(0x285)](_0x4b04ed(0x26d)+_0x4af965+_0x4b04ed(0x249),_0x4b04ed(0x251),{'positiveCount':_0x5b7918[_0x4b04ed(0x232)],'totalCount':_0x5b7918[_0x4b04ed(0x25f)]});return{'execute':async()=>{const _0x491195=_0x4b04ed;await _0x2dd047[_0x491195(0x264)];},'abortController':_0x2dd047[_0x4b04ed(0x25b)]};}[_0x154e2e(0x263)](_0x4be34d,_0x61a5,_0x5ece10,_0x448bd2){const _0x4dbb54=_0x154e2e,_0x1cf003=this[_0x4dbb54(0x285)](_0x4dbb54(0x24c)+_0x4be34d+_0x4dbb54(0x21b)+_0x61a5+_0x4dbb54(0x249),_0x4dbb54(0x251),{'positiveCount':_0x5ece10[_0x4dbb54(0x232)],'totalCount':_0x5ece10[_0x4dbb54(0x25f)],'dataId':_0x448bd2});return{'execute':async()=>{const _0x10b3be=_0x4dbb54;await _0x1cf003[_0x10b3be(0x264)];},'abortController':_0x1cf003[_0x4dbb54(0x25b)]};}[_0x154e2e(0x21f)](_0x1db5d8,_0x47f9d2,_0x5dd5a3){const _0x28f298=_0x154e2e,_0x3a5fc5=this[_0x28f298(0x285)](_0x28f298(0x280)+_0x1db5d8+_0x28f298(0x249),_0x28f298(0x251),{'positiveCount':_0x47f9d2[_0x28f298(0x232)],'totalCount':_0x47f9d2[_0x28f298(0x25f)],'dataId':_0x5dd5a3});return{'execute':async()=>{const _0x116f0f=_0x28f298;await _0x3a5fc5[_0x116f0f(0x264)];},'abortController':_0x3a5fc5[_0x28f298(0x25b)]};}[_0x154e2e(0x285)](_0x57e241,_0x202620,_0x946d89){const _0x38fc4f=_0x154e2e,_0x15a158=new AbortController(),_0x1638ff=_0x946d89 instanceof FormData,_0x3a6982={'Authorization':_0x38fc4f(0x207)+this[_0x38fc4f(0x200)]?.[_0x38fc4f(0x260)]};_0x946d89&&!_0x1638ff&&(_0x3a6982[_0x38fc4f(0x220)]=_0x38fc4f(0x257));const _0x31e777={'method':_0x202620,'headers':_0x3a6982,'signal':_0x15a158[_0x38fc4f(0x20c)]};return _0x946d89&&(_0x31e777[_0x38fc4f(0x226)]=_0x1638ff?_0x946d89:JSON[_0x38fc4f(0x219)](_0x946d89)),{'request':fetch(''+this[_0x38fc4f(0x25e)]+_0x57e241,_0x31e777)[_0x38fc4f(0x24f)](_0x50382f=>{const _0x1fd4be=_0x38fc4f;this[_0x1fd4be(0x214)](_0x50382f);})[_0x38fc4f(0x1fb)](_0x4a4bfd=>_0x4a4bfd['ok']?_0x4a4bfd:_0x4a4bfd[_0x38fc4f(0x1ff)]()[_0x38fc4f(0x1fb)](_0x26247f=>{const _0x30df26=_0x38fc4f;throw{'url':this[_0x30df26(0x25e)],'path':_0x57e241,'method':_0x202620,'body':_0x946d89,'status':(_0x4a4bfd||{})[_0x30df26(0x26b)],'statusText':(_0x4a4bfd||{})[_0x30df26(0x237)],'code':_0x26247f[_0x30df26(0x223)],'message':_0x26247f[_0x30df26(0x216)],'traceId':_0x26247f[_0x30df26(0x274)]};})),'abortController':_0x15a158};}async*[_0x154e2e(0x26f)](_0x1c7365){const _0xc92c0e=_0x154e2e,_0x4fe31c=[],_0x3ceec7=_0x1c7365[_0xc92c0e(0x1f9)](),_0x2b3634=_0xfdb986({'onError':_0x3888e5=>{const _0x6f288c=_0xc92c0e;this[_0x6f288c(0x214)](_0x3888e5);},'onEvent':_0x43e38e=>{const _0x3ba50c=_0xc92c0e;_0x43e38e[_0x3ba50c(0x1f8)]=JSON[_0x3ba50c(0x228)](_0x43e38e[_0x3ba50c(0x1f8)]),_0x4fe31c[_0x3ba50c(0x250)](_0x43e38e);}});try{let _0x5cb5cb=!0x1;for(;!_0x5cb5cb;){const {done:_0x862ed4,value:_0xe13df3}=await _0x3ceec7[_0xc92c0e(0x25c)]();_0x862ed4&&(_0x5cb5cb=!0x0),_0x2b3634[_0xc92c0e(0x202)](this[_0xc92c0e(0x238)][_0xc92c0e(0x22d)](_0xe13df3,{'stream':!0x0})),yield*_0x4fe31c,_0x4fe31c[_0xc92c0e(0x247)]=0x0;}}catch(_0x29e1f6){this[_0xc92c0e(0x214)](_0x29e1f6);}finally{_0x3ceec7[_0xc92c0e(0x25a)](),_0x2b3634[_0xc92c0e(0x1fe)]();}}[_0x154e2e(0x214)](_0x50fff0){const _0x43841f=_0x154e2e;if(_0x50fff0 instanceof _0x56ce13)throw _0x50fff0;if(_0x50fff0 instanceof Error&&_0x43841f(0x221)===_0x50fff0[_0x43841f(0x22e)])throw new _0x56ce13(_0x43841f(0x241),this,{'originalError':_0x50fff0});throw new _0x56ce13(_0x43841f(0x225),this,{'originalError':_0x50fff0});}}
23
+ const _0x524bb7=_0x1d06;(function(_0x237e0c,_0x1d58da){const _0x26d29c=_0x1d06,_0x201921=_0x237e0c();while(!![]){try{const _0x2fe776=parseInt(_0x26d29c(0xc0))/0x1+parseInt(_0x26d29c(0xee))/0x2+parseInt(_0x26d29c(0x128))/0x3*(parseInt(_0x26d29c(0xe0))/0x4)+-parseInt(_0x26d29c(0x118))/0x5*(parseInt(_0x26d29c(0x12a))/0x6)+-parseInt(_0x26d29c(0xfb))/0x7+parseInt(_0x26d29c(0x107))/0x8+-parseInt(_0x26d29c(0xb6))/0x9*(parseInt(_0x26d29c(0xd7))/0xa);if(_0x2fe776===_0x1d58da)break;else _0x201921['push'](_0x201921['shift']());}catch(_0x52d1e5){_0x201921['push'](_0x201921['shift']());}}}(_0x46dd,0xcfc79));import{createParser as _0x8a3a82}from'eventsource-parser';function _0x1d06(_0x40d5ee,_0x538380){const _0x46dd9c=_0x46dd();return _0x1d06=function(_0x1d0644,_0x241f84){_0x1d0644=_0x1d0644-0x9d;let _0x31511d=_0x46dd9c[_0x1d0644];return _0x31511d;},_0x1d06(_0x40d5ee,_0x538380);}import{ContextPlugin as _0x178cb9}from'ckeditor5/src/core.js';import{CKEditorError as _0x4d61db}from'ckeditor5/src/utils.js';export var AIActionsNames;function _0x46dd(){const _0x1dfd7f=['init','abortController','upsertAIChatRating','/conversations','2923230GkAmPP','queryAssistant','GET','executeCustomAction','improve-writing','context','deleteFile','/conversations/','/web-resources/','CloudServices','fetchConversations','language','request','3155537xZPEzm','define','POST','attributes','getReader','true','then','callSystemReview','AbortError','ai.serviceUrl','/messages/','https://ai.cke-cs.com/v1','1213192hLVDnT','plugins','_apiUrl','uploadUrl','fetchConversationMessages','push','/models/1?','FIX_GRAMMAR','fetchDocument','desc','PATCH','_handleError','group','Content-Type','get','/documents/','value','19010QgyzQj','/calls','fetchConversation','MAKE_TONE_FORMAL','isOfficialPlugin','/files','translate','status','read','feed','/messages','limit','token','uploadDocument','_sendApiRequest','pluginName','126hPnfQG','upsertCustomAIReviewRating','2046qTahDu','PUT','message','continue','positiveCount','totalCount','ai-request-aborted','excludeEmpty','sortBy','AIConnector','upsertAIReviewRating','/actions/custom/calls','statusText','name','MAKE_TONE_CASUAL','decode','text','toString','false','executeAction','signal','/web-resources','deleteWebResource','uploadFile','CONTINUE','order','make-longer','json','/reviews/system/','catch','releaseLock','updateConversation','_decoder','9vZrEGr','/actions/custom/calls/','/actions/system/','items','stringify','requires','code','upsertCustomAIActionRating','DELETE','/reviews/custom/calls/','862297YNAPQV','startConversation','/calls/','upsertAIActionRating','_token','getModels','/files/','/conversations?','IMPROVE_WRITING','callCustomReview','/ratings','/documents','deleteConversation','100','TRANSLATE','application/json','fix-grammar','length','traceId','ai-missing-token','_getStreamReader','modificationId','createdAt','6922330rTLqUE','deleteDocument','Bearer\x20','make-tone-formal','data','append','MAKE_LONGER','make-shorter','parse','77620sJqlom','file','ai-request-failed','config','make-tone-casual','body','reset','isPremiumPlugin','MAKE_SHORTER','/reviews/custom/calls'];_0x46dd=function(){return _0x1dfd7f;};return _0x46dd();}!function(_0x264bbd){const _0x20e62d=_0x1d06;_0x264bbd[_0x20e62d(0xad)]=_0x20e62d(0x12d),_0x264bbd[_0x20e62d(0x10e)]=_0x20e62d(0xd0),_0x264bbd[_0x20e62d(0xc8)]=_0x20e62d(0xf2),_0x264bbd[_0x20e62d(0xdd)]=_0x20e62d(0xaf),_0x264bbd[_0x20e62d(0xe8)]=_0x20e62d(0xde),_0x264bbd[_0x20e62d(0xa3)]=_0x20e62d(0xe4),_0x264bbd[_0x20e62d(0x11b)]=_0x20e62d(0xda),_0x264bbd[_0x20e62d(0xce)]=_0x20e62d(0x11e);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x178cb9{[_0x524bb7(0x109)];[_0x524bb7(0xc4)];[_0x524bb7(0xb5)];static get[_0x524bb7(0xbb)](){const _0x19e40a=_0x524bb7;return[_0x19e40a(0xf7)];}static get[_0x524bb7(0x127)](){const _0x309085=_0x524bb7;return _0x309085(0x9e);}static get[_0x524bb7(0x11c)](){return!0x0;}static get[_0x524bb7(0xe7)](){return!0x0;}constructor(_0x389694){const _0x2c00a7=_0x524bb7;super(_0x389694),this[_0x2c00a7(0xf3)][_0x2c00a7(0xe3)][_0x2c00a7(0xfc)](_0x2c00a7(0x104),_0x2c00a7(0x106)),this[_0x2c00a7(0x109)]=this[_0x2c00a7(0xf3)][_0x2c00a7(0xe3)][_0x2c00a7(0x115)](_0x2c00a7(0x104)),this[_0x2c00a7(0xc4)]=null,this[_0x2c00a7(0xb5)]=new TextDecoder();}[_0x524bb7(0xea)](){const _0x2656d9=_0x524bb7,_0x9ad423=this[_0x2656d9(0xf3)][_0x2656d9(0x108)][_0x2656d9(0x115)](_0x2656d9(0xf7));if(!_0x9ad423[_0x2656d9(0x124)])throw new _0x4d61db(_0x2656d9(0xd3),this);this[_0x2656d9(0xc4)]=_0x9ad423[_0x2656d9(0x124)];}[_0x524bb7(0xc1)](_0x28e0f5,_0x148bd7){const _0x10f95=_0x524bb7,_0x2258b7=this[_0x10f95(0x126)](_0x10f95(0xed),_0x10f95(0xfd),{'id':_0x28e0f5,'group':_0x148bd7});return{'getConversation':async()=>(await _0x2258b7[_0x10f95(0xfa)])[_0x10f95(0xb0)](),'abortController':_0x2258b7[_0x10f95(0xeb)]};}[_0x524bb7(0xef)]({message:_0x125e0f,conversationId:_0xc331e6,parts:_0x512979,capabilities:_0x56a63f,model:_0x29bcb2,attributes:_0x241960}){const _0x205345=_0x524bb7,_0x390eab={'prompt':_0x125e0f,'content':_0x512979,'model':_0x29bcb2,..._0x56a63f&&{'capabilities':_0x56a63f},..._0x241960&&{'attributes':_0x241960}},_0x5eba6e=this[_0x205345(0x126)](_0x205345(0xf5)+_0xc331e6+_0x205345(0x122),_0x205345(0xfd),_0x390eab);return{'getStream':async()=>{const _0x5db2f5=_0x205345,_0x11c501=(await _0x5eba6e[_0x5db2f5(0xfa)])[_0x5db2f5(0xe5)];return this[_0x5db2f5(0xd4)](_0x11c501);},'abortController':_0x5eba6e[_0x205345(0xeb)]};}[_0x524bb7(0xf1)]({content:_0x2e8f91,message:_0x463296,model:_0x2faabc,outputFormat:_0x582055}){const _0x1f8259=_0x524bb7,_0x9f7d29={'content':[{'type':_0x1f8259(0xa5),'content':_0x2e8f91}],'prompt':_0x463296,'model':_0x2faabc,'outputFormat':_0x582055},_0x469f48=this[_0x1f8259(0x126)](_0x1f8259(0xa0),_0x1f8259(0xfd),_0x9f7d29);return{'getStream':async()=>{const _0x3385ee=_0x1f8259,_0x2b6c2a=(await _0x469f48[_0x3385ee(0xfa)])[_0x3385ee(0xe5)];return this[_0x3385ee(0xd4)](_0x2b6c2a);},'abortController':_0x469f48[_0x1f8259(0xeb)]};}[_0x524bb7(0xa8)]({actionName:_0x43fa3b,content:_0x544307,args:_0x43f422}){const _0x22fcda=_0x524bb7,_0x814373={'content':[{'type':_0x22fcda(0xa5),'content':_0x544307}],'args':_0x43f422},_0x222caf=this[_0x22fcda(0x126)](_0x22fcda(0xb8)+_0x43fa3b+_0x22fcda(0x119),_0x22fcda(0xfd),_0x814373);return{'getStream':async()=>{const _0x5aa3c3=_0x22fcda,_0x3719c6=(await _0x222caf[_0x5aa3c3(0xfa)])[_0x5aa3c3(0xe5)];return this[_0x5aa3c3(0xd4)](_0x3719c6);},'abortController':_0x222caf[_0x22fcda(0xeb)]};}[_0x524bb7(0xac)](_0x5af6d3,_0x10a393,_0x41ac46){const _0x2f55fa=_0x524bb7,_0x390cf3=new FormData();_0x390cf3[_0x2f55fa(0xdc)](_0x2f55fa(0xe1),_0x10a393,_0x10a393[_0x2f55fa(0xa2)]),_0x41ac46&&_0x390cf3[_0x2f55fa(0xdc)](_0x2f55fa(0xfe),JSON[_0x2f55fa(0xba)](_0x41ac46));const _0x3520c4=this[_0x2f55fa(0x126)](_0x2f55fa(0xf5)+_0x5af6d3+_0x2f55fa(0x11d),_0x2f55fa(0xfd),_0x390cf3);return{'getId':async()=>(await _0x3520c4[_0x2f55fa(0xfa)])[_0x2f55fa(0xb0)](),'abortController':_0x3520c4[_0x2f55fa(0xeb)]};}[_0x524bb7(0x10f)](_0x5ca7f6,_0x316837){const _0x20d546=_0x524bb7,_0x417e85=this[_0x20d546(0x126)](_0x20d546(0xf5)+_0x5ca7f6+_0x20d546(0x116)+_0x316837,_0x20d546(0xf0));return{'getDocument':async()=>(await _0x417e85[_0x20d546(0xfa)])[_0x20d546(0xb0)](),'abortController':_0x417e85[_0x20d546(0xeb)]};}[_0x524bb7(0x125)](_0x459886,_0x43c56a,_0xca341d){const _0x35088e=_0x524bb7,_0x31a1eb={'content':_0x43c56a};_0xca341d&&(_0x31a1eb[_0x35088e(0xfe)]=_0xca341d);const _0x15c1c4=this[_0x35088e(0x126)](_0x35088e(0xf5)+_0x459886+_0x35088e(0xcb),_0x35088e(0xfd),_0x31a1eb);return{'getId':async()=>(await _0x15c1c4[_0x35088e(0xfa)])[_0x35088e(0xb0)](),'abortController':_0x15c1c4[_0x35088e(0xeb)]};}[_0x524bb7(0xf8)](_0x56dd1f,_0xb0ada9={}){const _0x55f706=_0x524bb7,_0x4ae46f=new URLSearchParams();_0x4ae46f[_0x55f706(0xdc)](_0x55f706(0x113),_0x56dd1f),_0x4ae46f[_0x55f706(0xdc)](_0x55f706(0x131),!0x1!==_0xb0ada9[_0x55f706(0x131)]?_0x55f706(0x100):_0x55f706(0xa7)),_0x4ae46f[_0x55f706(0xdc)](_0x55f706(0x123),_0xb0ada9[_0x55f706(0x123)]?_0xb0ada9[_0x55f706(0x123)][_0x55f706(0xa6)]():_0x55f706(0xcd)),_0x4ae46f[_0x55f706(0xdc)](_0x55f706(0x9d),_0xb0ada9[_0x55f706(0x9d)]?_0xb0ada9[_0x55f706(0x9d)]:_0x55f706(0xd6)),_0x4ae46f[_0x55f706(0xdc)](_0x55f706(0xae),_0xb0ada9[_0x55f706(0xae)]?_0xb0ada9[_0x55f706(0xae)]:_0x55f706(0x110));const _0x13f730=this[_0x55f706(0x126)](_0x55f706(0xc7)+_0x4ae46f[_0x55f706(0xa6)](),_0x55f706(0xf0));return{'getConversations':async()=>{const _0x1a89cb=_0x55f706,_0x113def=await _0x13f730[_0x1a89cb(0xfa)];return(await _0x113def[_0x1a89cb(0xb0)]())[_0x1a89cb(0xb9)];},'abortController':_0x13f730[_0x55f706(0xeb)]};}[_0x524bb7(0xcc)](_0x5b5b16){const _0x55e4ed=_0x524bb7,_0x57a7a3=this[_0x55e4ed(0x126)](_0x55e4ed(0xf5)+_0x5b5b16,_0x55e4ed(0xbe));return{'execute':async()=>{const _0x5d9930=_0x55e4ed;await _0x57a7a3[_0x5d9930(0xfa)];},'abortController':_0x57a7a3[_0x55e4ed(0xeb)]};}[_0x524bb7(0xb4)](_0x2dddc9,_0x4ceb1a){const _0x2efd98=_0x524bb7,_0x33eb9e=this[_0x2efd98(0x126)](_0x2efd98(0xf5)+_0x2dddc9,_0x2efd98(0x111),_0x4ceb1a);return{'getResult':async()=>(await _0x33eb9e[_0x2efd98(0xfa)],_0x4ceb1a),'abortController':_0x33eb9e[_0x2efd98(0xeb)]};}[_0x524bb7(0x11a)](_0xf4dc10){const _0x2aa76d=_0x524bb7,_0x46e027=this[_0x2aa76d(0x126)](_0x2aa76d(0xf5)+_0xf4dc10,_0x2aa76d(0xf0));return{'getConversation':async()=>(await _0x46e027[_0x2aa76d(0xfa)])[_0x2aa76d(0xb0)](),'abortController':_0x46e027[_0x2aa76d(0xeb)]};}[_0x524bb7(0x10b)](_0xec569c){const _0x2307de=_0x524bb7,_0x592028=this[_0x2307de(0x126)](_0x2307de(0xf5)+_0xec569c+_0x2307de(0x122),_0x2307de(0xf0));return{'getMessages':async()=>{const _0x3fad54=_0x2307de,_0x4f0260=await _0x592028[_0x3fad54(0xfa)];return(await _0x4f0260[_0x3fad54(0xb0)]())[_0x3fad54(0xb9)];},'abortController':_0x592028[_0x2307de(0xeb)]};}[_0x524bb7(0x10a)](_0x4723ba,_0x458026,_0x3a5645){const _0x56b2f4=_0x524bb7,_0x16da18=this[_0x56b2f4(0x126)](_0x56b2f4(0xf5)+_0x4723ba+_0x56b2f4(0xaa),_0x56b2f4(0xfd),{'url':_0x458026,'attributes':_0x3a5645});return{'getId':async()=>(await _0x16da18[_0x56b2f4(0xfa)])[_0x56b2f4(0xb0)](),'abortController':_0x16da18[_0x56b2f4(0xeb)]};}[_0x524bb7(0xc5)](_0x1f023f='en'){const _0x1e99d2=_0x524bb7,_0x5d7d31=new URLSearchParams();_0x5d7d31[_0x1e99d2(0xdc)](_0x1e99d2(0xf9),_0x1f023f);const _0x378037=_0x1e99d2(0x10d)+_0x5d7d31[_0x1e99d2(0xa6)](),_0x236dad=this[_0x1e99d2(0x126)](_0x378037,_0x1e99d2(0xf0));return{'list':async()=>await(await _0x236dad[_0x1e99d2(0xfa)])[_0x1e99d2(0xb0)](),'abortController':_0x236dad[_0x1e99d2(0xeb)]};}[_0x524bb7(0xf4)](_0x52fbc9,_0x3fa419){const _0x12f75a=_0x524bb7,_0x227a25=this[_0x12f75a(0x126)](_0x12f75a(0xf5)+_0x52fbc9+_0x12f75a(0xc6)+_0x3fa419,_0x12f75a(0xbe));return{'execute':async()=>{const _0x1edfec=_0x12f75a;await _0x227a25[_0x1edfec(0xfa)];},'abortController':_0x227a25[_0x12f75a(0xeb)]};}[_0x524bb7(0xd8)](_0x4f71f6,_0x29d043){const _0x128624=_0x524bb7,_0x252398=this[_0x128624(0x126)](_0x128624(0xf5)+_0x4f71f6+_0x128624(0x116)+_0x29d043,_0x128624(0xbe));return{'execute':async()=>{const _0x3eaac1=_0x128624;await _0x252398[_0x3eaac1(0xfa)];},'abortController':_0x252398[_0x128624(0xeb)]};}[_0x524bb7(0xab)](_0x24f903,_0x1c9e4e){const _0xedda0e=_0x524bb7,_0x241c6b=this[_0xedda0e(0x126)](_0xedda0e(0xf5)+_0x24f903+_0xedda0e(0xf6)+_0x1c9e4e,_0xedda0e(0xbe));return{'execute':async()=>{const _0xca4ee1=_0xedda0e;await _0x241c6b[_0xca4ee1(0xfa)];},'abortController':_0x241c6b[_0xedda0e(0xeb)]};}[_0x524bb7(0x102)]({reviewName:_0x25be81,content:_0xd11ec1,args:_0x31163d}){const _0x112265=_0x524bb7,_0xa2b61d=this[_0x112265(0x126)](_0x112265(0xb1)+_0x25be81+_0x112265(0x119),_0x112265(0xfd),{'content':[{'type':_0x112265(0xa5),'content':_0xd11ec1}],'args':_0x31163d});return{'getStream':async()=>{const _0x3058fa=_0x112265,_0x25ab4f=(await _0xa2b61d[_0x3058fa(0xfa)])[_0x3058fa(0xe5)];return this[_0x3058fa(0xd4)](_0x25ab4f);},'abortController':_0xa2b61d[_0x112265(0xeb)]};}[_0x524bb7(0xc9)]({content:_0xd9d4c6,prompt:_0x5f0d7b,model:_0x2182db}){const _0x44b3a7=_0x524bb7,_0x4fa05d=this[_0x44b3a7(0x126)](_0x44b3a7(0xe9),_0x44b3a7(0xfd),{'content':[{'type':_0x44b3a7(0xa5),'content':_0xd9d4c6}],'prompt':_0x5f0d7b,'model':_0x2182db});return{'getStream':async()=>{const _0x498d4f=_0x44b3a7,_0xe09b9b=(await _0x4fa05d[_0x498d4f(0xfa)])[_0x498d4f(0xe5)];return this[_0x498d4f(0xd4)](_0xe09b9b);},'abortController':_0x4fa05d[_0x44b3a7(0xeb)]};}[_0x524bb7(0xec)](_0x8fc410,_0x352839,_0x1cad08){const _0x15995f=_0x524bb7,_0x5650ec=this[_0x15995f(0x126)](_0x15995f(0xf5)+_0x8fc410+_0x15995f(0x105)+_0x352839+_0x15995f(0xca),_0x15995f(0x12b),{'positiveCount':_0x1cad08[_0x15995f(0x12e)],'totalCount':_0x1cad08[_0x15995f(0x12f)],'modificationId':_0x1cad08[_0x15995f(0xd5)]});return{'execute':async()=>{const _0x34c1b5=_0x15995f;await _0x5650ec[_0x34c1b5(0xfa)];},'abortController':_0x5650ec[_0x15995f(0xeb)]};}[_0x524bb7(0xc3)](_0x2ef57f,_0x215f18,_0x4b9c0a){const _0x44b9af=_0x524bb7,_0x5ce89a=this[_0x44b9af(0x126)](_0x44b9af(0xb8)+_0x2ef57f+_0x44b9af(0xc2)+_0x215f18+_0x44b9af(0xca),_0x44b9af(0x12b),{'positiveCount':_0x4b9c0a[_0x44b9af(0x12e)],'totalCount':_0x4b9c0a[_0x44b9af(0x12f)]});return{'execute':async()=>{const _0x38db0c=_0x44b9af;await _0x5ce89a[_0x38db0c(0xfa)];},'abortController':_0x5ce89a[_0x44b9af(0xeb)]};}[_0x524bb7(0xbd)](_0x50a39b,_0x197f4b){const _0x58e427=_0x524bb7,_0x934185=this[_0x58e427(0x126)](_0x58e427(0xb7)+_0x50a39b+_0x58e427(0xca),_0x58e427(0x12b),{'positiveCount':_0x197f4b[_0x58e427(0x12e)],'totalCount':_0x197f4b[_0x58e427(0x12f)]});return{'execute':async()=>{const _0xb58783=_0x58e427;await _0x934185[_0xb58783(0xfa)];},'abortController':_0x934185[_0x58e427(0xeb)]};}[_0x524bb7(0x9f)](_0x365899,_0xfae3b2,_0xe8baff,_0x29a4a3){const _0x2eab12=_0x524bb7,_0x43705b=this[_0x2eab12(0x126)](_0x2eab12(0xb1)+_0x365899+_0x2eab12(0xc2)+_0xfae3b2+_0x2eab12(0xca),_0x2eab12(0x12b),{'positiveCount':_0xe8baff[_0x2eab12(0x12e)],'totalCount':_0xe8baff[_0x2eab12(0x12f)],'dataId':_0x29a4a3});return{'execute':async()=>{const _0x164101=_0x2eab12;await _0x43705b[_0x164101(0xfa)];},'abortController':_0x43705b[_0x2eab12(0xeb)]};}[_0x524bb7(0x129)](_0x69dcd6,_0x501b2f,_0x20d04e){const _0x1499db=_0x524bb7,_0x1190b8=this[_0x1499db(0x126)](_0x1499db(0xbf)+_0x69dcd6+_0x1499db(0xca),_0x1499db(0x12b),{'positiveCount':_0x501b2f[_0x1499db(0x12e)],'totalCount':_0x501b2f[_0x1499db(0x12f)],'dataId':_0x20d04e});return{'execute':async()=>{const _0x11a2e2=_0x1499db;await _0x1190b8[_0x11a2e2(0xfa)];},'abortController':_0x1190b8[_0x1499db(0xeb)]};}[_0x524bb7(0x126)](_0x2b82a4,_0x419b45,_0x3f4626){const _0x4dc6e2=_0x524bb7,_0x4f48b3=new AbortController(),_0x472402=_0x3f4626 instanceof FormData,_0x5b0b11={'Authorization':_0x4dc6e2(0xd9)+this[_0x4dc6e2(0xc4)]?.[_0x4dc6e2(0x117)]};_0x3f4626&&!_0x472402&&(_0x5b0b11[_0x4dc6e2(0x114)]=_0x4dc6e2(0xcf));const _0x1e812d={'method':_0x419b45,'headers':_0x5b0b11,'signal':_0x4f48b3[_0x4dc6e2(0xa9)]};return _0x3f4626&&(_0x1e812d[_0x4dc6e2(0xe5)]=_0x472402?_0x3f4626:JSON[_0x4dc6e2(0xba)](_0x3f4626)),{'request':fetch(''+this[_0x4dc6e2(0x109)]+_0x2b82a4,_0x1e812d)[_0x4dc6e2(0xb2)](_0x3d2c2d=>{const _0x38a42b=_0x4dc6e2;this[_0x38a42b(0x112)](_0x3d2c2d);})[_0x4dc6e2(0x101)](_0x5887e6=>_0x5887e6['ok']?_0x5887e6:_0x5887e6[_0x4dc6e2(0xb0)]()[_0x4dc6e2(0x101)](_0x246fca=>{const _0x441836=_0x4dc6e2;throw{'url':this[_0x441836(0x109)],'path':_0x2b82a4,'method':_0x419b45,'body':_0x3f4626,'status':(_0x5887e6||{})[_0x441836(0x11f)],'statusText':(_0x5887e6||{})[_0x441836(0xa1)],'code':_0x246fca[_0x441836(0xbc)],'message':_0x246fca[_0x441836(0x12c)],'traceId':_0x246fca[_0x441836(0xd2)]};})),'abortController':_0x4f48b3};}async*[_0x524bb7(0xd4)](_0x2fc6e7){const _0x18592d=_0x524bb7,_0x2ba2e3=[],_0x42dcdf=_0x2fc6e7[_0x18592d(0xff)](),_0x119dfb=_0x8a3a82({'onError':_0xd7ed2d=>{const _0x3b0f6a=_0x18592d;this[_0x3b0f6a(0x112)](_0xd7ed2d);},'onEvent':_0x5968bc=>{const _0x1a059a=_0x18592d;_0x5968bc[_0x1a059a(0xdb)]=JSON[_0x1a059a(0xdf)](_0x5968bc[_0x1a059a(0xdb)]),_0x2ba2e3[_0x1a059a(0x10c)](_0x5968bc);}});try{let _0x217283=!0x1;for(;!_0x217283;){const {done:_0x221211,value:_0x7810e8}=await _0x42dcdf[_0x18592d(0x120)]();_0x221211&&(_0x217283=!0x0),_0x119dfb[_0x18592d(0x121)](this[_0x18592d(0xb5)][_0x18592d(0xa4)](_0x7810e8,{'stream':!0x0})),yield*_0x2ba2e3,_0x2ba2e3[_0x18592d(0xd1)]=0x0;}}catch(_0x3f593e){this[_0x18592d(0x112)](_0x3f593e);}finally{_0x42dcdf[_0x18592d(0xb3)](),_0x119dfb[_0x18592d(0xe6)]();}}[_0x524bb7(0x112)](_0x3744ea){const _0x10fb0c=_0x524bb7;if(_0x3744ea instanceof _0x4d61db)throw _0x3744ea;if(_0x3744ea instanceof Error&&_0x10fb0c(0x103)===_0x3744ea[_0x10fb0c(0xa2)])throw new _0x4d61db(_0x10fb0c(0x130),this,{'originalError':_0x3744ea});throw new _0x4d61db(_0x10fb0c(0xe2),this,{'originalError':_0x3744ea});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5dfc(_0x4b9380,_0x20fb3e){const _0x377b6c=_0x377b();return _0x5dfc=function(_0x5dfcb4,_0x465d3d){_0x5dfcb4=_0x5dfcb4-0x84;let _0x3d41fd=_0x377b6c[_0x5dfcb4];return _0x3d41fd;},_0x5dfc(_0x4b9380,_0x20fb3e);}function _0x377b(){const _0x43d72f=['dataDowncast','listenTo','_setOutputDataProcessor','hideFakeVisualSelection',':end>','sort','1206110NmzwxH','getRanges','domConverter','editors','removeMarker','getRoot','_integrateEditor',':start>','_displayedFakeSelectionLocked','210056SbXTKI','define','createUIElement','change','isAfter','floor','_getMarkersInDocumentOrder','context','element','end','ck-fake-ai-selection','getHtml','processor','ai-selection:','getStart','isPremiumPlugin','getSelectionText','editingDowncast','containerElement','63meHsnD','afterInit','setAttribute','fromCharCode','15540904hStbDI','createRange','addMarker','from','RealTimeCollaborationClient','getChildren','start','126ZeSUAj','convertAiChatSelectionMarker','isOfficialPlugin','_sessionId','isContent','conversion','document','pluginName','version','plugins','locale','name','127447HYSejN','trim','ck-ai-assistant-ui_theme','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','_displayedFakeSelectionId','getMarkersGroup','indexOf','getItems','push','modelToDataWithIds','AIEditing',':start></','isOpening','804294xvlggU','ready','_getDocumentDataStringFromView','for','config','selection','sessionId','random','data','data-id','markerToHighlight','markerToElement','viewToDom','$textProxy','ai-selection','22pGnnHR','markers','getDocumentData','model','_nextDataId','emptyElement','htmlWriter','126632cGatju','isAtEnd','getLastMatchingPosition',':end></','toView','toData','join','getSelection','markerName','ai.models.showModelSelector','_outputDataProcessor','isBefore','editing','schema','8588005aqyMKf','showFakeVisualSelection','_setDataIdsOnChildren','length','removeAllRanges','add','has','substring','view','get','153LjYbOz'];_0x377b=function(){return _0x43d72f;};return _0x377b();}const _0x39239a=_0x5dfc;(function(_0x31e1ec,_0x1e4134){const _0x2dfd12=_0x5dfc,_0x50daef=_0x31e1ec();while(!![]){try{const _0x33fd6a=-parseInt(_0x2dfd12(0xbc))/0x1*(parseInt(_0x2dfd12(0xd8))/0x2)+-parseInt(_0x2dfd12(0xf7))/0x3*(-parseInt(_0x2dfd12(0xdf))/0x4)+parseInt(_0x2dfd12(0xed))/0x5+parseInt(_0x2dfd12(0xc9))/0x6*(-parseInt(_0x2dfd12(0xa5))/0x7)+parseInt(_0x2dfd12(0xa9))/0x8+parseInt(_0x2dfd12(0xb0))/0x9*(-parseInt(_0x2dfd12(0x89))/0xa)+parseInt(_0x2dfd12(0x92))/0xb;if(_0x33fd6a===_0x1e4134)break;else _0x50daef['push'](_0x50daef['shift']());}catch(_0x20bffe){_0x50daef['push'](_0x50daef['shift']());}}}(_0x377b,0xf365c));import{ViewDowncastWriter as _0x1351c0}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x5c5bdb,Editor as _0x47c8de}from'ckeditor5/src/core.js';import{uid as _0x88b5b9}from'ckeditor5/src/utils.js';import{getTranslation as _0x321fbf}from'./utils/common-translations.js';import{getEditorFromContext as _0x5e54e0}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x39239a(0xd7);export class AIEditing extends _0x5c5bdb{constructor(_0x55197d){const _0x455f47=_0x39239a;super(_0x55197d),this[_0x455f47(0x99)][_0x455f47(0xcd)][_0x455f47(0x93)](_0x455f47(0xe8),!0x0);}[_0x39239a(0xe9)];[_0x39239a(0xc0)]=null;[_0x39239a(0x91)]=!0x1;[_0x39239a(0xb3)];static get[_0x39239a(0xb7)](){const _0x5490c4=_0x39239a;return _0x5490c4(0xc6);}static get[_0x39239a(0xb2)](){return!0x0;}static get[_0x39239a(0xa1)](){return!0x0;}get[_0x39239a(0xcf)](){const _0x25b444=_0x39239a;if(!this[_0x25b444(0xb3)]){const _0x3044ab=_0x5e54e0(this[_0x25b444(0x99)]),_0x3e94f5=_0x3044ab[_0x25b444(0xb9)][_0x25b444(0xf3)](_0x25b444(0xad))&&_0x3044ab[_0x25b444(0xb9)][_0x25b444(0xf6)](_0x25b444(0xad))[_0x25b444(0xcf)];this[_0x25b444(0xb3)]=_0x3e94f5||_0x88b5b9();}return this[_0x25b444(0xb3)];}async[_0x39239a(0xda)](){const _0x5be55b=_0x39239a,_0xa372e2=_0x5e54e0(this[_0x5be55b(0x99)]),_0x4ffb8e=_0xa372e2[_0x5be55b(0xdb)],_0x4ef907=_0xa372e2[_0x5be55b(0xd1)][_0x5be55b(0xe3)](_0x4ffb8e[_0x5be55b(0xb6)][_0x5be55b(0x8e)](),{'convertAiChatSelectionMarker':!0x0}),_0x11821e=new _0x1351c0(_0xa372e2[_0x5be55b(0xeb)][_0x5be55b(0xf5)][_0x5be55b(0xb6)]);this[_0x5be55b(0xef)](_0x4ef907,_0x11821e);let _0x1603b6=await this[_0x5be55b(0xcb)](_0x4ef907);const _0x198832=this[_0x5be55b(0x98)](),_0x3da300=[];for(const _0x338592 of _0x198832){const _0x1bd2db='<'+_0x338592[_0x5be55b(0xbb)]+_0x5be55b(0xc7)+_0x338592[_0x5be55b(0xbb)]+_0x5be55b(0x90),_0x8710c=_0x1603b6[_0x5be55b(0xc2)](_0x1bd2db);_0x1603b6=_0x1603b6[_0x5be55b(0xf4)](0x0,_0x8710c)+_0x1603b6[_0x5be55b(0xf4)](_0x8710c+_0x1bd2db[_0x5be55b(0xf0)]);const _0x357532='<'+_0x338592[_0x5be55b(0xbb)]+_0x5be55b(0xe2)+_0x338592[_0x5be55b(0xbb)]+_0x5be55b(0x87),_0xa9d843=_0x1603b6[_0x5be55b(0xc2)](_0x357532);_0x1603b6=_0x1603b6[_0x5be55b(0xf4)](0x0,_0xa9d843)+_0x1603b6[_0x5be55b(0xf4)](_0xa9d843+_0x357532[_0x5be55b(0xf0)]),_0x3da300[_0x5be55b(0xc4)]({'markerName':_0x338592[_0x5be55b(0xbb)],'start':_0x8710c,'end':_0xa9d843,'htmlFragment':_0x1603b6[_0x5be55b(0xf4)](_0x8710c,_0xa9d843)});}return{'content':_0x1603b6,'version':_0xa372e2[_0x5be55b(0xdb)][_0x5be55b(0xb6)][_0x5be55b(0xb8)],'sessionId':this[_0x5be55b(0xcf)],'selections':_0x3da300};}async[_0x39239a(0xa6)](){const _0x4d9fe7=_0x39239a;this[_0x4d9fe7(0x99)]instanceof _0x47c8de?this[_0x4d9fe7(0x8f)](this[_0x4d9fe7(0x99)]):this[_0x4d9fe7(0x84)](this[_0x4d9fe7(0x99)][_0x4d9fe7(0x8c)],_0x4d9fe7(0xf2),(_0x2d1f06,_0xc674a5)=>{const _0x3ab765=_0x4d9fe7;_0xc674a5['on'](_0x3ab765(0xca),()=>{const _0x44db7e=_0x3ab765;this[_0x44db7e(0x8f)](_0xc674a5);});});}[_0x39239a(0x85)](_0x1b6a02){const _0x1ff05f=_0x39239a;this[_0x1ff05f(0xe9)]=_0x1b6a02;}async[_0x39239a(0xcb)](_0xd9e583){const _0x584b87=_0x39239a;let _0x33e1b8;const _0x143fa4=_0x5e54e0(this[_0x584b87(0x99)]);if(this[_0x584b87(0xe9)]){const _0x33ddf0=_0x143fa4[_0x584b87(0xd1)][_0x584b87(0x9e)][_0x584b87(0x8b)][_0x584b87(0xd5)](_0xd9e583),_0x59bb39=await this[_0x584b87(0xe9)](_0x33ddf0);_0x33e1b8=_0x143fa4[_0x584b87(0xd1)][_0x584b87(0x9e)][_0x584b87(0xde)][_0x584b87(0x9d)](_0x59bb39);}else _0x33e1b8=_0x143fa4[_0x584b87(0xd1)][_0x584b87(0x9e)][_0x584b87(0xe4)](_0xd9e583);return _0x33e1b8;}[_0x39239a(0x8f)](_0x7e0407){const _0x39d589=_0x39239a;_0x7e0407[_0x39d589(0xb5)][_0x39d589(0xcc)](_0x39d589(0xa3))[_0x39d589(0xd3)]({'model':_0x39d589(0xd7),'view':{'classes':[_0x39d589(0x9c),_0x39d589(0xbe)],'priority':0xc}}),_0x7e0407[_0x39d589(0xb5)][_0x39d589(0xcc)](_0x39d589(0xf8))[_0x39d589(0xd4)]({'model':_0x39d589(0xd7),'view':(_0x15b342,{writer:_0x4a4565,options:_0x546754})=>_0x546754[_0x39d589(0xb1)]?_0x4a4565[_0x39d589(0x94)](_0x15b342[_0x39d589(0xe7)]+':'+(_0x15b342[_0x39d589(0xc8)]?_0x39d589(0xaf):_0x39d589(0x9b))):null});}[_0x39239a(0xee)](_0x1d850d,_0x894e8,_0x32d06c=!0x1,_0xf406db=!0x1){const _0x18659f=_0x39239a;if(this[_0x18659f(0x91)]&&!_0xf406db)return!0x1;const _0x583db4=_0x5e54e0(this[_0x18659f(0x99)])[_0x18659f(0xdb)];return _0x583db4[_0x18659f(0x95)](_0x509a83=>{const _0x6bb344=_0x18659f;this[_0x6bb344(0xc0)]&&this[_0x6bb344(0x86)](this[_0x6bb344(0xc0)]),this[_0x6bb344(0xc0)]=_0x894e8,this[_0x6bb344(0x91)]=_0x32d06c;let _0x13f91c=0x0;for(let _0x242f31 of _0x1d850d){const _0x1a6ef1=_0x6bb344(0x9f)+_0x13f91c;if(_0x242f31[_0x6bb344(0xaf)][_0x6bb344(0xe0)]){const _0x49a3d2=_0x242f31[_0x6bb344(0xaf)][_0x6bb344(0xe1)](({item:_0x184b47})=>!_0x583db4[_0x6bb344(0xec)][_0x6bb344(0xb4)](_0x184b47),{'boundaries':_0x242f31});_0x242f31=_0x509a83[_0x6bb344(0xaa)](_0x49a3d2,_0x242f31[_0x6bb344(0x9b)]);}_0x509a83[_0x6bb344(0xab)](_0x1a6ef1,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x242f31}),_0x13f91c++;}}),window[_0x18659f(0xe6)]()?.[_0x18659f(0xf1)](),!0x0;}[_0x39239a(0x86)](_0x20bb57){const _0x4c72b5=_0x39239a;if(this[_0x4c72b5(0xc0)]!=_0x20bb57)return!0x1;this[_0x4c72b5(0xc0)]=null,this[_0x4c72b5(0x91)]=!0x1;const _0x100552=_0x5e54e0(this[_0x4c72b5(0x99)]),_0x1ec321=_0x100552[_0x4c72b5(0xdb)][_0x4c72b5(0xd9)][_0x4c72b5(0xc1)](_0x4c72b5(0xd7));return _0x100552[_0x4c72b5(0xdb)][_0x4c72b5(0x95)](_0x45f0c4=>{const _0xaf86c1=_0x4c72b5;for(const _0x1554a7 of _0x1ec321)_0x45f0c4[_0xaf86c1(0x8d)](_0x1554a7);}),!0x0;}async[_0x39239a(0xc5)](_0x237d5a){const _0x2508da=_0x39239a,_0x5b0b80=_0x5e54e0(this[_0x2508da(0x99)]),_0x4b705c=_0x5b0b80[_0x2508da(0xd1)][_0x2508da(0xe3)](_0x237d5a),_0x427fca=new _0x1351c0(_0x5b0b80[_0x2508da(0xeb)][_0x2508da(0xf5)][_0x2508da(0xb6)]);return this[_0x2508da(0xef)](_0x4b705c,_0x427fca),this[_0x2508da(0xcb)](_0x4b705c);}[_0x39239a(0xef)](_0x5a39fd,_0x2954f8){const _0x91697b=_0x39239a;let _0x5587ef=!0x1;const _0x56b8e6=new Set();for(const _0x1e4c65 of _0x5a39fd[_0x91697b(0xae)]()){const _0x20f542=_0x1e4c65['is'](_0x91697b(0xdd))||_0x1e4c65['is'](_0x91697b(0xa4));if(!_0x1e4c65['is'](_0x91697b(0x9a)))continue;(this[_0x91697b(0xef)](_0x1e4c65,_0x2954f8)||_0x20f542)&&(_0x2954f8[_0x91697b(0xa7)](_0x91697b(0xd2),this[_0x91697b(0xdc)](_0x56b8e6),_0x1e4c65),_0x5587ef=!0x0);}return _0x5587ef;}[_0x39239a(0xdc)](_0x1b2ad6){const _0x1355f2=_0x39239a;let _0x161de0;do{_0x161de0='';for(let _0x277135=0x0;_0x277135<0x4;_0x277135++)_0x161de0+=String[_0x1355f2(0xa8)](0x61+Math[_0x1355f2(0x97)](0x1a*Math[_0x1355f2(0xd0)]()));}while(_0x1b2ad6[_0x1355f2(0xf3)](_0x161de0));return _0x1b2ad6[_0x1355f2(0xf2)](_0x161de0),_0x161de0;}[_0x39239a(0xa2)](){const _0x128be4=_0x39239a,{model:_0x4f802f}=_0x5e54e0(this[_0x128be4(0x99)]),_0x523b90=_0x4f802f[_0x128be4(0xb6)][_0x128be4(0xce)],_0x27d6d2=[];for(const _0x45a394 of _0x523b90[_0x128be4(0x8a)]())for(const _0x27bc09 of _0x45a394[_0x128be4(0xc3)]())_0x27bc09['is'](_0x128be4(0xd6))?_0x27d6d2[_0x128be4(0xc4)](_0x27bc09[_0x128be4(0xd1)]):_0x27bc09['is'](_0x128be4(0x9a))&&_0x27d6d2[_0x128be4(0xf0)]>0x0&&'\x20'!==_0x27d6d2[_0x27d6d2[_0x128be4(0xf0)]-0x1]&&_0x27d6d2[_0x128be4(0xc4)]('\x20');return _0x27d6d2[_0x128be4(0xf0)]?'\x22'+_0x27d6d2[_0x128be4(0xe5)]('')[_0x128be4(0xbd)]()+'\x22':_0x321fbf(this[_0x128be4(0x99)][_0x128be4(0xba)],_0x128be4(0xbf));}[_0x39239a(0x98)](){const _0x52a151=_0x39239a,_0xed43ed=_0x5e54e0(this[_0x52a151(0x99)])[_0x52a151(0xdb)];return Array[_0x52a151(0xac)](_0xed43ed[_0x52a151(0xd9)][_0x52a151(0xc1)](_0x52a151(0xd7)))[_0x52a151(0x88)]((_0x12789e,_0x4bcd78)=>_0x12789e[_0x52a151(0xa0)]()[_0x52a151(0xea)](_0x4bcd78[_0x52a151(0xa0)]())?-0x1:_0x12789e[_0x52a151(0xa0)]()[_0x52a151(0x96)](_0x4bcd78[_0x52a151(0xa0)]())?0x1:0x0);}}
23
+ const _0x1ffd0a=_0x9e8c;function _0x9e8c(_0x52a5f9,_0x1ba6eb){const _0x3b6efc=_0x3b6e();return _0x9e8c=function(_0x9e8cff,_0x56a2ad){_0x9e8cff=_0x9e8cff-0xe6;let _0x1a04cb=_0x3b6efc[_0x9e8cff];return _0x1a04cb;},_0x9e8c(_0x52a5f9,_0x1ba6eb);}(function(_0x1bf4c3,_0x5bf10c){const _0x3c54b3=_0x9e8c,_0x15dc41=_0x1bf4c3();while(!![]){try{const _0x4cc10d=parseInt(_0x3c54b3(0x104))/0x1+parseInt(_0x3c54b3(0xf9))/0x2+-parseInt(_0x3c54b3(0xf7))/0x3*(-parseInt(_0x3c54b3(0x13a))/0x4)+-parseInt(_0x3c54b3(0xed))/0x5+-parseInt(_0x3c54b3(0x10c))/0x6+parseInt(_0x3c54b3(0x120))/0x7*(parseInt(_0x3c54b3(0x115))/0x8)+-parseInt(_0x3c54b3(0x10b))/0x9;if(_0x4cc10d===_0x5bf10c)break;else _0x15dc41['push'](_0x15dc41['shift']());}catch(_0x24f81c){_0x15dc41['push'](_0x15dc41['shift']());}}}(_0x3b6e,0xc9a83));function _0x3b6e(){const _0x227c5c=['selection','getDocumentData','markerName','trim','22548429xlGlXe','2209128PPluxr','RealTimeCollaborationClient','getMarkersGroup','length','start','conversion','document','floor','removeAllRanges','8BsgIUk','domConverter','getLastMatchingPosition','from','plugins','isAfter','element','editors','version','_setDataIdsOnChildren','end','6444753pYKFAJ','_getDocumentDataStringFromView','containerElement','get','ready','toData','_getMarkersInDocumentOrder','htmlWriter','getSelection','substring','has','define','editing','_sessionId','sessionId','getStart','getRanges','view','markers','emptyElement','name','removeMarker','isOfficialPlugin','hideFakeVisualSelection','indexOf','fromCharCode','264TASSrc','isBefore','random','join','data','toView',':end>','change','_integrateEditor','ai.models.showModelSelector','add','locale','showFakeVisualSelection','ck-fake-ai-selection','for',':end></','_displayedFakeSelectionId','_setOutputDataProcessor','isOpening','editingDowncast','createUIElement','schema','_displayedFakeSelectionLocked','data-id','createRange','markerToHighlight','modelToDataWithIds','pluginName','addMarker','$textProxy',':start></','getHtml','push','config','dataDowncast','model','processor','setAttribute','906030mIuXCC','isAtEnd','markerToElement','listenTo','isPremiumPlugin','_outputDataProcessor',':start>','isContent','ai-selection','AIEditing','46245eEKksL','getRoot','2953518DOZBxu','getItems','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','ai-selection:','viewToDom','ck-ai-assistant-ui_theme','convertAiChatSelectionMarker','afterInit','_nextDataId','sort','getSelectionText','465934vsSldu','context','getChildren'];_0x3b6e=function(){return _0x227c5c;};return _0x3b6e();}import{ViewDowncastWriter as _0x5df79e}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x2f98a3,Editor as _0x4087ef}from'ckeditor5/src/core.js';import{uid as _0x1f453e}from'ckeditor5/src/utils.js';import{getTranslation as _0x1c8e30}from'./utils/common-translations.js';import{getEditorFromContext as _0x410050}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x1ffd0a(0xf5);export class AIEditing extends _0x2f98a3{constructor(_0x2a44a6){const _0x16c576=_0x1ffd0a;super(_0x2a44a6),this[_0x16c576(0x105)][_0x16c576(0xe8)][_0x16c576(0x12b)](_0x16c576(0x143),!0x0);}[_0x1ffd0a(0xf2)];[_0x1ffd0a(0x14a)]=null;[_0x1ffd0a(0x150)]=!0x1;[_0x1ffd0a(0x12d)];static get[_0x1ffd0a(0x155)](){const _0x3eb368=_0x1ffd0a;return _0x3eb368(0xf6);}static get[_0x1ffd0a(0x136)](){return!0x0;}static get[_0x1ffd0a(0xf1)](){return!0x0;}get[_0x1ffd0a(0x12e)](){const _0x250d1d=_0x1ffd0a;if(!this[_0x250d1d(0x12d)]){const _0x6ee90f=_0x410050(this[_0x250d1d(0x105)]),_0x508bfd=_0x6ee90f[_0x250d1d(0x119)][_0x250d1d(0x12a)](_0x250d1d(0x10d))&&_0x6ee90f[_0x250d1d(0x119)][_0x250d1d(0x123)](_0x250d1d(0x10d))[_0x250d1d(0x12e)];this[_0x250d1d(0x12d)]=_0x508bfd||_0x1f453e();}return this[_0x250d1d(0x12d)];}async[_0x1ffd0a(0x108)](){const _0x2122c5=_0x1ffd0a,_0x55a065=_0x410050(this[_0x2122c5(0x105)]),_0x1260c4=_0x55a065[_0x2122c5(0xea)],_0x35c8cb=_0x55a065[_0x2122c5(0x13e)][_0x2122c5(0x13f)](_0x1260c4[_0x2122c5(0x112)][_0x2122c5(0xf8)](),{'convertAiChatSelectionMarker':!0x0}),_0x2a2a16=new _0x5df79e(_0x55a065[_0x2122c5(0x12c)][_0x2122c5(0x131)][_0x2122c5(0x112)]);this[_0x2122c5(0x11e)](_0x35c8cb,_0x2a2a16);let _0x4517c5=await this[_0x2122c5(0x121)](_0x35c8cb);const _0x572be8=this[_0x2122c5(0x126)](),_0x1ce52e=[];for(const _0x13cf6e of _0x572be8){const _0x84d9af='<'+_0x13cf6e[_0x2122c5(0x134)]+_0x2122c5(0x158)+_0x13cf6e[_0x2122c5(0x134)]+_0x2122c5(0xf3),_0x36b7fb=_0x4517c5[_0x2122c5(0x138)](_0x84d9af);_0x4517c5=_0x4517c5[_0x2122c5(0x129)](0x0,_0x36b7fb)+_0x4517c5[_0x2122c5(0x129)](_0x36b7fb+_0x84d9af[_0x2122c5(0x10f)]);const _0xb1ae31='<'+_0x13cf6e[_0x2122c5(0x134)]+_0x2122c5(0x149)+_0x13cf6e[_0x2122c5(0x134)]+_0x2122c5(0x140),_0x7e4f59=_0x4517c5[_0x2122c5(0x138)](_0xb1ae31);_0x4517c5=_0x4517c5[_0x2122c5(0x129)](0x0,_0x7e4f59)+_0x4517c5[_0x2122c5(0x129)](_0x7e4f59+_0xb1ae31[_0x2122c5(0x10f)]),_0x1ce52e[_0x2122c5(0xe7)]({'markerName':_0x13cf6e[_0x2122c5(0x134)],'start':_0x36b7fb,'end':_0x7e4f59,'htmlFragment':_0x4517c5[_0x2122c5(0x129)](_0x36b7fb,_0x7e4f59)});}return{'content':_0x4517c5,'version':_0x55a065[_0x2122c5(0xea)][_0x2122c5(0x112)][_0x2122c5(0x11d)],'sessionId':this[_0x2122c5(0x12e)],'selections':_0x1ce52e};}async[_0x1ffd0a(0x100)](){const _0xbb554c=_0x1ffd0a;this[_0xbb554c(0x105)]instanceof _0x4087ef?this[_0xbb554c(0x142)](this[_0xbb554c(0x105)]):this[_0xbb554c(0xf0)](this[_0xbb554c(0x105)][_0xbb554c(0x11c)],_0xbb554c(0x144),(_0x1df93c,_0x19dfdd)=>{const _0x1bc2a6=_0xbb554c;_0x19dfdd['on'](_0x1bc2a6(0x124),()=>{const _0x4d8bed=_0x1bc2a6;this[_0x4d8bed(0x142)](_0x19dfdd);});});}[_0x1ffd0a(0x14b)](_0x8cc3b5){const _0x10b0c0=_0x1ffd0a;this[_0x10b0c0(0xf2)]=_0x8cc3b5;}async[_0x1ffd0a(0x121)](_0x499824){const _0x3727e7=_0x1ffd0a;let _0x6898c1;const _0x36d522=_0x410050(this[_0x3727e7(0x105)]);if(this[_0x3727e7(0xf2)]){const _0x5b4893=_0x36d522[_0x3727e7(0x13e)][_0x3727e7(0xeb)][_0x3727e7(0x116)][_0x3727e7(0xfd)](_0x499824),_0x304542=await this[_0x3727e7(0xf2)](_0x5b4893);_0x6898c1=_0x36d522[_0x3727e7(0x13e)][_0x3727e7(0xeb)][_0x3727e7(0x127)][_0x3727e7(0xe6)](_0x304542);}else _0x6898c1=_0x36d522[_0x3727e7(0x13e)][_0x3727e7(0xeb)][_0x3727e7(0x125)](_0x499824);return _0x6898c1;}[_0x1ffd0a(0x142)](_0x2f1b08){const _0x46c3d1=_0x1ffd0a;_0x2f1b08[_0x46c3d1(0x111)][_0x46c3d1(0x148)](_0x46c3d1(0x14d))[_0x46c3d1(0x153)]({'model':_0x46c3d1(0xf5),'view':{'classes':[_0x46c3d1(0x147),_0x46c3d1(0xfe)],'priority':0xc}}),_0x2f1b08[_0x46c3d1(0x111)][_0x46c3d1(0x148)](_0x46c3d1(0xe9))[_0x46c3d1(0xef)]({'model':_0x46c3d1(0xf5),'view':(_0x68cd30,{writer:_0x5cd266,options:_0x25f685})=>_0x25f685[_0x46c3d1(0xff)]?_0x5cd266[_0x46c3d1(0x14e)](_0x68cd30[_0x46c3d1(0x109)]+':'+(_0x68cd30[_0x46c3d1(0x14c)]?_0x46c3d1(0x110):_0x46c3d1(0x11f))):null});}[_0x1ffd0a(0x146)](_0x34fd4b,_0x6ea798,_0x4b9076=!0x1,_0xe11b5c=!0x1){const _0x400505=_0x1ffd0a;if(this[_0x400505(0x150)]&&!_0xe11b5c)return!0x1;const _0x196ded=_0x410050(this[_0x400505(0x105)])[_0x400505(0xea)];return _0x196ded[_0x400505(0x141)](_0x338162=>{const _0x234a13=_0x400505;this[_0x234a13(0x14a)]&&this[_0x234a13(0x137)](this[_0x234a13(0x14a)]),this[_0x234a13(0x14a)]=_0x6ea798,this[_0x234a13(0x150)]=_0x4b9076;let _0x1621ec=0x0;for(let _0x3f0ecb of _0x34fd4b){const _0x15dd2e=_0x234a13(0xfc)+_0x1621ec;if(_0x3f0ecb[_0x234a13(0x110)][_0x234a13(0xee)]){const _0x1ea3a8=_0x3f0ecb[_0x234a13(0x110)][_0x234a13(0x117)](({item:_0x43aa05})=>!_0x196ded[_0x234a13(0x14f)][_0x234a13(0xf4)](_0x43aa05),{'boundaries':_0x3f0ecb});_0x3f0ecb=_0x338162[_0x234a13(0x152)](_0x1ea3a8,_0x3f0ecb[_0x234a13(0x11f)]);}_0x338162[_0x234a13(0x156)](_0x15dd2e,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x3f0ecb}),_0x1621ec++;}}),window[_0x400505(0x128)]()?.[_0x400505(0x114)](),!0x0;}[_0x1ffd0a(0x137)](_0x56fdeb){const _0x4e8a87=_0x1ffd0a;if(this[_0x4e8a87(0x14a)]!=_0x56fdeb)return!0x1;this[_0x4e8a87(0x14a)]=null,this[_0x4e8a87(0x150)]=!0x1;const _0x4bd5ba=_0x410050(this[_0x4e8a87(0x105)]),_0x2cb1e7=_0x4bd5ba[_0x4e8a87(0xea)][_0x4e8a87(0x132)][_0x4e8a87(0x10e)](_0x4e8a87(0xf5));return _0x4bd5ba[_0x4e8a87(0xea)][_0x4e8a87(0x141)](_0x39d32c=>{const _0x543a69=_0x4e8a87;for(const _0x4a9b88 of _0x2cb1e7)_0x39d32c[_0x543a69(0x135)](_0x4a9b88);}),!0x0;}async[_0x1ffd0a(0x154)](_0x1a7a1b){const _0x1d5f73=_0x1ffd0a,_0x5f1cad=_0x410050(this[_0x1d5f73(0x105)]),_0x5ba8e4=_0x5f1cad[_0x1d5f73(0x13e)][_0x1d5f73(0x13f)](_0x1a7a1b),_0x24fae3=new _0x5df79e(_0x5f1cad[_0x1d5f73(0x12c)][_0x1d5f73(0x131)][_0x1d5f73(0x112)]);return this[_0x1d5f73(0x11e)](_0x5ba8e4,_0x24fae3),this[_0x1d5f73(0x121)](_0x5ba8e4);}[_0x1ffd0a(0x11e)](_0x5ccba9,_0x1c2c10){const _0x56d811=_0x1ffd0a;let _0x10c8db=!0x1;const _0x35627e=new Set();for(const _0x25ee1d of _0x5ccba9[_0x56d811(0x106)]()){const _0x11e7d4=_0x25ee1d['is'](_0x56d811(0x133))||_0x25ee1d['is'](_0x56d811(0x122));if(!_0x25ee1d['is'](_0x56d811(0x11b)))continue;(this[_0x56d811(0x11e)](_0x25ee1d,_0x1c2c10)||_0x11e7d4)&&(_0x1c2c10[_0x56d811(0xec)](_0x56d811(0x151),this[_0x56d811(0x101)](_0x35627e),_0x25ee1d),_0x10c8db=!0x0);}return _0x10c8db;}[_0x1ffd0a(0x101)](_0x1ee75a){const _0x2b33be=_0x1ffd0a;let _0x356f49;do{_0x356f49='';for(let _0x48d54a=0x0;_0x48d54a<0x4;_0x48d54a++)_0x356f49+=String[_0x2b33be(0x139)](0x61+Math[_0x2b33be(0x113)](0x1a*Math[_0x2b33be(0x13c)]()));}while(_0x1ee75a[_0x2b33be(0x12a)](_0x356f49));return _0x1ee75a[_0x2b33be(0x144)](_0x356f49),_0x356f49;}[_0x1ffd0a(0x103)](){const _0x496227=_0x1ffd0a,{model:_0x2ee9ef}=_0x410050(this[_0x496227(0x105)]),_0x55bcc0=_0x2ee9ef[_0x496227(0x112)][_0x496227(0x107)],_0x45f31f=[];for(const _0x3a1278 of _0x55bcc0[_0x496227(0x130)]())for(const _0x8dd2b6 of _0x3a1278[_0x496227(0xfa)]())_0x8dd2b6['is'](_0x496227(0x157))?_0x45f31f[_0x496227(0xe7)](_0x8dd2b6[_0x496227(0x13e)]):_0x8dd2b6['is'](_0x496227(0x11b))&&_0x45f31f[_0x496227(0x10f)]>0x0&&'\x20'!==_0x45f31f[_0x45f31f[_0x496227(0x10f)]-0x1]&&_0x45f31f[_0x496227(0xe7)]('\x20');return _0x45f31f[_0x496227(0x10f)]?'\x22'+_0x45f31f[_0x496227(0x13d)]('')[_0x496227(0x10a)]()+'\x22':_0x1c8e30(this[_0x496227(0x105)][_0x496227(0x145)],_0x496227(0xfb));}[_0x1ffd0a(0x126)](){const _0x5ada23=_0x1ffd0a,_0x904dd2=_0x410050(this[_0x5ada23(0x105)])[_0x5ada23(0xea)];return Array[_0x5ada23(0x118)](_0x904dd2[_0x5ada23(0x132)][_0x5ada23(0x10e)](_0x5ada23(0xf5)))[_0x5ada23(0x102)]((_0x1f2a39,_0x37d203)=>_0x1f2a39[_0x5ada23(0x12f)]()[_0x5ada23(0x13b)](_0x37d203[_0x5ada23(0x12f)]())?-0x1:_0x1f2a39[_0x5ada23(0x12f)]()[_0x5ada23(0x11a)](_0x37d203[_0x5ada23(0x12f)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a4eb3=_0x1a8e;(function(_0xe2c442,_0x359022){const _0x367e80=_0x1a8e,_0x1df28a=_0xe2c442();while(!![]){try{const _0x2c4f0c=-parseInt(_0x367e80(0xa1))/0x1*(parseInt(_0x367e80(0xa0))/0x2)+-parseInt(_0x367e80(0xa4))/0x3+parseInt(_0x367e80(0xa8))/0x4*(parseInt(_0x367e80(0x98))/0x5)+-parseInt(_0x367e80(0x9e))/0x6*(parseInt(_0x367e80(0x97))/0x7)+parseInt(_0x367e80(0xa7))/0x8+-parseInt(_0x367e80(0xa2))/0x9+parseInt(_0x367e80(0xb0))/0xa;if(_0x2c4f0c===_0x359022)break;else _0x1df28a['push'](_0x1df28a['shift']());}catch(_0x1c5fc3){_0x1df28a['push'](_0x1df28a['shift']());}}}(_0x1bf5,0x20c1e));import{EmitterMixin as _0x446f6f}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x1a4eb3(0xa3)];function _0x1a8e(_0x2489a0,_0x4bb36a){const _0x1bf576=_0x1bf5();return _0x1a8e=function(_0x1a8ea0,_0x4a4515){_0x1a8ea0=_0x1a8ea0-0x97;let _0x4b67bb=_0x1bf576[_0x1a8ea0];return _0x4b67bb;},_0x1a8e(_0x2489a0,_0x4bb36a);}export class AICapabilities extends _0x446f6f(){[_0x1a4eb3(0xad)];[_0x1a4eb3(0x99)];constructor(){const _0x2e4749=_0x1a4eb3;super(),this[_0x2e4749(0xad)]=!0x1,this[_0x2e4749(0x99)]=!0x1;}[_0x1a4eb3(0x9c)](){const _0x2b4b95=_0x1a4eb3;this[_0x2b4b95(0xae)]();}[_0x1a4eb3(0xae)](){const _0x468c4f=_0x1a4eb3;this[_0x468c4f(0x9b)](!0x1),this[_0x468c4f(0x9f)](!0x1);}[_0x1a4eb3(0xac)](){const _0x14aeae=_0x1a4eb3;return{'isWebSearchEnabled':this[_0x14aeae(0xad)],'isReasoningEnabled':this[_0x14aeae(0x99)]};}static[_0x1a4eb3(0x9d)](_0x3c77d2){const _0x40441f=_0x1a4eb3,_0xa09794={};return _0x3c77d2&&_0x3c77d2[_0x40441f(0xaf)]&&(_0xa09794[_0x40441f(0xaa)]={}),_0x3c77d2&&_0x3c77d2[_0x40441f(0xa6)]&&(_0xa09794[_0x40441f(0xa9)]={}),_0xa09794;}[_0x1a4eb3(0x9a)](){const _0xc384bd=_0x1a4eb3;this[_0xc384bd(0x9b)](!this[_0xc384bd(0xad)]);}[_0x1a4eb3(0xa5)](){const _0x262a09=_0x1a4eb3;this[_0x262a09(0x9f)](!this[_0x262a09(0x99)]);}[_0x1a4eb3(0x9b)](_0x52c3d3){const _0x5909bf=_0x1a4eb3;_0x52c3d3!==this[_0x5909bf(0xad)]&&(this[_0x5909bf(0xad)]=_0x52c3d3,this[_0x5909bf(0xab)](_0x5909bf(0xa3),this[_0x5909bf(0xac)]()));}[_0x1a4eb3(0x9f)](_0x569896){const _0x1d2b09=_0x1a4eb3;_0x569896!==this[_0x1d2b09(0x99)]&&(this[_0x1d2b09(0x99)]=_0x569896,this[_0x1d2b09(0xab)](_0x1d2b09(0xa3),this[_0x1d2b09(0xac)]()));}}function _0x1bf5(){const _0x20e135=['toggleReasoning','isReasoningEnabled','513216fwhoak','6976Ozqkbk','reasoning','webSearch','fire','getCapabilitiesConfig','_isWebSearchEnabled','reset','isWebSearchEnabled','4111470pqpVnr','15736RabGxi','465fBvRqp','_isReasoningEnabled','toggleWebSearch','setWebSearch','init','getCapabilitiesRequestData','594GdJghn','setReasoning','16182LPtLRe','11CIfxtp','1089738wZOaUE','capabilitiesUpdated','212046bgXwBg'];_0x1bf5=function(){return _0x20e135;};return _0x1bf5();}
23
+ function _0x45aa(){const _0x177341=['getCapabilitiesRequestData','toggleReasoning','1495FFprdt','reset','setReasoning','reasoning','_isReasoningEnabled','7BzJghI','8478936HKWRUM','12354OvGneD','isReasoningEnabled','306604HmgbQN','fire','11weuIPA','toggleWebSearch','getCapabilitiesConfig','21tfruAC','_isWebSearchEnabled','capabilitiesUpdated','3060mJFfZi','isWebSearchEnabled','init','95914cQasAo','setWebSearch','6653770yCAMYn','webSearch','2JaqGls','3894426PduNxi','335913JkQJKL'];_0x45aa=function(){return _0x177341;};return _0x45aa();}const _0x3f0e71=_0x2459;(function(_0x594285,_0x45ff40){const _0x198f7b=_0x2459,_0x55e099=_0x594285();while(!![]){try{const _0x140bfa=-parseInt(_0x198f7b(0x128))/0x1*(-parseInt(_0x198f7b(0x126))/0x2)+-parseInt(_0x198f7b(0x11c))/0x3*(-parseInt(_0x198f7b(0x117))/0x4)+-parseInt(_0x198f7b(0x10e))/0x5*(parseInt(_0x198f7b(0x115))/0x6)+parseInt(_0x198f7b(0x113))/0x7*(parseInt(_0x198f7b(0x114))/0x8)+parseInt(_0x198f7b(0x127))/0x9+-parseInt(_0x198f7b(0x124))/0xa*(-parseInt(_0x198f7b(0x119))/0xb)+-parseInt(_0x198f7b(0x11f))/0xc*(parseInt(_0x198f7b(0x122))/0xd);if(_0x140bfa===_0x45ff40)break;else _0x55e099['push'](_0x55e099['shift']());}catch(_0x290444){_0x55e099['push'](_0x55e099['shift']());}}}(_0x45aa,0x82395));import{EmitterMixin as _0x1e2986}from'ckeditor5/src/utils.js';function _0x2459(_0x190df7,_0x5dbc14){const _0x45aa5f=_0x45aa();return _0x2459=function(_0x2459b0,_0x2ba6e3){_0x2459b0=_0x2459b0-0x10e;let _0xf6c82b=_0x45aa5f[_0x2459b0];return _0xf6c82b;},_0x2459(_0x190df7,_0x5dbc14);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x3f0e71(0x11e)];export class AICapabilities extends _0x1e2986(){[_0x3f0e71(0x11d)];[_0x3f0e71(0x112)];constructor(){const _0x259fd5=_0x3f0e71;super(),this[_0x259fd5(0x11d)]=!0x1,this[_0x259fd5(0x112)]=!0x1;}[_0x3f0e71(0x121)](){const _0x3cdf89=_0x3f0e71;this[_0x3cdf89(0x10f)]();}[_0x3f0e71(0x10f)](){const _0x5d1fbd=_0x3f0e71;this[_0x5d1fbd(0x123)](!0x1),this[_0x5d1fbd(0x110)](!0x1);}[_0x3f0e71(0x11b)](){const _0x282a69=_0x3f0e71;return{'isWebSearchEnabled':this[_0x282a69(0x11d)],'isReasoningEnabled':this[_0x282a69(0x112)]};}static[_0x3f0e71(0x129)](_0x71793){const _0x32a9d2=_0x3f0e71,_0x49b5c7={};return _0x71793&&_0x71793[_0x32a9d2(0x120)]&&(_0x49b5c7[_0x32a9d2(0x125)]={}),_0x71793&&_0x71793[_0x32a9d2(0x116)]&&(_0x49b5c7[_0x32a9d2(0x111)]={}),_0x49b5c7;}[_0x3f0e71(0x11a)](){const _0x3e5e38=_0x3f0e71;this[_0x3e5e38(0x123)](!this[_0x3e5e38(0x11d)]);}[_0x3f0e71(0x12a)](){const _0x38b250=_0x3f0e71;this[_0x38b250(0x110)](!this[_0x38b250(0x112)]);}[_0x3f0e71(0x123)](_0x2cb9e8){const _0xbaae77=_0x3f0e71;_0x2cb9e8!==this[_0xbaae77(0x11d)]&&(this[_0xbaae77(0x11d)]=_0x2cb9e8,this[_0xbaae77(0x118)](_0xbaae77(0x11e),this[_0xbaae77(0x11b)]()));}[_0x3f0e71(0x110)](_0x3ef707){const _0x20663e=_0x3f0e71;_0x3ef707!==this[_0x20663e(0x112)]&&(this[_0x20663e(0x112)]=_0x3ef707,this[_0x20663e(0x118)](_0x20663e(0x11e),this[_0x20663e(0x11b)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0xcbadcc,_0x232657){var _0x5eb05c=_0x2d5f,_0x59a72b=_0xcbadcc();while(!![]){try{var _0x2b2113=parseInt(_0x5eb05c(0x1ba))/0x1*(-parseInt(_0x5eb05c(0x1b5))/0x2)+-parseInt(_0x5eb05c(0x1bb))/0x3*(parseInt(_0x5eb05c(0x1bc))/0x4)+-parseInt(_0x5eb05c(0x1b2))/0x5+-parseInt(_0x5eb05c(0x1b9))/0x6+parseInt(_0x5eb05c(0x1c2))/0x7+parseInt(_0x5eb05c(0x1c5))/0x8*(parseInt(_0x5eb05c(0x1b4))/0x9)+parseInt(_0x5eb05c(0x1c9))/0xa;if(_0x2b2113===_0x232657)break;else _0x59a72b['push'](_0x59a72b['shift']());}catch(_0x401dfa){_0x59a72b['push'](_0x59a72b['shift']());}}}(_0x11f7,0x3c748));export var AIContextItemType;!function(_0x49430c){var _0x5104ca=_0x2d5f;_0x49430c[_0x5104ca(0x1c0)]=_0x5104ca(0x1be),_0x49430c[_0x5104ca(0x1c6)]=_0x5104ca(0x1c4),_0x49430c[_0x5104ca(0x1b8)]=_0x5104ca(0x1bf),_0x49430c[_0x5104ca(0x1ca)]=_0x5104ca(0x1bd),_0x49430c[_0x5104ca(0x1c7)]=_0x5104ca(0x1b1),_0x49430c[_0x5104ca(0x1b7)]=_0x5104ca(0x1c8);}(AIContextItemType||(AIContextItemType={}));function _0x11f7(){var _0x38dcd9=['HTML','9LkmPPg','3768ovWsnq','MARKDOWN','SELECTION','DOCUMENT','1439172jVnzuL','3NhDLHc','198444ZxIkje','4VzLmpS','web-resource','mcp-tool-context','document','TOOL','markdown','2985164llrFtc','html','file','3576744hOkKTu','FILE','TEXT','selection','1201950DomDvO','URL','text','2172270EWqtOQ'];_0x11f7=function(){return _0x38dcd9;};return _0x11f7();}function _0x2d5f(_0x489cd4,_0x4fe16d){var _0x11f753=_0x11f7();return _0x2d5f=function(_0x2d5f42,_0x35658b){_0x2d5f42=_0x2d5f42-0x1b1;var _0x61493=_0x11f753[_0x2d5f42];return _0x61493;},_0x2d5f(_0x489cd4,_0x4fe16d);}export var AIContextTextResourceType;!function(_0x3d802c){var _0x2514d8=_0x2d5f;_0x3d802c[_0x2514d8(0x1c7)]=_0x2514d8(0x1b1),_0x3d802c[_0x2514d8(0x1b6)]=_0x2514d8(0x1c1),_0x3d802c[_0x2514d8(0x1b3)]=_0x2514d8(0x1c3);}(AIContextTextResourceType||(AIContextTextResourceType={}));
23
+ function _0xea14(_0x43adaf,_0x2ef1e2){var _0x2dde38=_0x2dde();return _0xea14=function(_0xea14f5,_0x5e83bb){_0xea14f5=_0xea14f5-0x169;var _0x1e7e71=_0x2dde38[_0xea14f5];return _0x1e7e71;},_0xea14(_0x43adaf,_0x2ef1e2);}function _0x2dde(){var _0x1754af=['3073448AJURbT','TEXT','HTML','URL','selection','71960vKxgps','693732jWOVYS','SELECTION','DOCUMENT','file','document','web-resource','markdown','7kdGmiu','134490aVpFPQ','767145GGpxTA','mcp-tool-context','TOOL','text','FILE','MARKDOWN','html','20622ccfCHe','450300MTTJmv'];_0x2dde=function(){return _0x1754af;};return _0x2dde();}(function(_0x47716b,_0x221c34){var _0x37c443=_0xea14,_0x7312d7=_0x47716b();while(!![]){try{var _0x5281d6=parseInt(_0x37c443(0x17d))/0x1*(parseInt(_0x37c443(0x16e))/0x2)+parseInt(_0x37c443(0x17e))/0x3+parseInt(_0x37c443(0x16f))/0x4+parseInt(_0x37c443(0x17f))/0x5+parseInt(_0x37c443(0x176))/0x6+-parseInt(_0x37c443(0x175))/0x7+-parseInt(_0x37c443(0x170))/0x8;if(_0x5281d6===_0x221c34)break;else _0x7312d7['push'](_0x7312d7['shift']());}catch(_0x15a254){_0x7312d7['push'](_0x7312d7['shift']());}}}(_0x2dde,0x196ec));export var AIContextItemType;!function(_0x48a6cb){var _0x2cada5=_0xea14;_0x48a6cb[_0x2cada5(0x169)]=_0x2cada5(0x180),_0x48a6cb[_0x2cada5(0x16b)]=_0x2cada5(0x179),_0x48a6cb[_0x2cada5(0x178)]=_0x2cada5(0x17a),_0x48a6cb[_0x2cada5(0x173)]=_0x2cada5(0x17b),_0x48a6cb[_0x2cada5(0x171)]=_0x2cada5(0x16a),_0x48a6cb[_0x2cada5(0x177)]=_0x2cada5(0x174);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x341859){var _0x34f9a8=_0xea14;_0x341859[_0x34f9a8(0x171)]=_0x34f9a8(0x16a),_0x341859[_0x34f9a8(0x16c)]=_0x34f9a8(0x17c),_0x341859[_0x34f9a8(0x172)]=_0x34f9a8(0x16d);}(AIContextTextResourceType||(AIContextTextResourceType={}));