@ckeditor/ckeditor5-ai 47.7.4 → 47.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.js +1 -1
  180. package/src/aichat/model/aichatconversation.js +1 -1
  181. package/src/aichat/model/aichatinteraction.js +1 -1
  182. package/src/aichat/ui/aichatballoonview.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  221. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.js +1 -1
  228. package/src/aicore/model/aimodels.js +1 -1
  229. package/src/aicore/model/aireply.js +1 -1
  230. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  231. package/src/aicore/pipeline/airesponseparser.js +2 -2
  232. package/src/aicore/ui/aidisclaimerview.js +1 -1
  233. package/src/aicore/ui/aiskeleton.js +1 -1
  234. package/src/aicore/ui/aispinner.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  246. package/src/aicore/utils/common-translations.js +1 -1
  247. package/src/aicore/utils/createresizebutton.js +1 -1
  248. package/src/aicore/utils/documentposition.js +1 -1
  249. package/src/aicore/utils/documentrange.js +1 -1
  250. package/src/aicore/utils/eventnames.js +1 -1
  251. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  252. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  253. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  254. package/src/aicore/utils/htmlparser.js +1 -1
  255. package/src/aicore/utils/htmlstreamer.js +1 -1
  256. package/src/aicore/utils/scrollmanager.js +1 -1
  257. package/src/aieditorintegration/aieditorintegration.js +1 -1
  258. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  260. package/src/aiquickactions/aiquickactions.js +1 -1
  261. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  262. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  263. package/src/aiquickactions/aiquickactionsui.js +1 -1
  264. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  268. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  271. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  272. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  273. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  274. package/src/aireviewcore/aireviewcoreui.js +1 -1
  275. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  276. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  277. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  280. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  281. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  292. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  294. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  295. package/src/aireviewmode/aireviewmode.js +1 -1
  296. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  297. package/src/aireviewmode/aireviewmodeui.js +1 -1
  298. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  300. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  301. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  303. package/src/aitabs/aitabs.js +1 -1
  304. package/src/aitabs/aitabsmainview.js +1 -1
  305. package/src/aitabs/tabs/aitabsview.js +1 -1
  306. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  307. package/src/aitabs/tabs/tabpanelview.js +1 -1
  308. package/src/aitranslate/aitranslate.js +1 -1
  309. package/src/aitranslate/aitranslatecontroller.js +1 -1
  310. package/src/aitranslate/aitranslateui.js +1 -1
  311. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  312. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  313. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  314. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  315. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  316. package/src/errors.js +1 -1
  317. package/src/errorsmap.js +1 -1
  318. package/src/index.js +1 -1
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- 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 _0x1fb45f=_0x47c1;(function(_0x38c572,_0x3c9668){const _0x5a38bd=_0x47c1,_0x48a716=_0x38c572();while(!![]){try{const _0x538601=parseInt(_0x5a38bd(0xe5))/0x1*(parseInt(_0x5a38bd(0xb3))/0x2)+-parseInt(_0x5a38bd(0xa2))/0x3+-parseInt(_0x5a38bd(0xe7))/0x4*(parseInt(_0x5a38bd(0xe9))/0x5)+parseInt(_0x5a38bd(0xbe))/0x6+parseInt(_0x5a38bd(0xa8))/0x7+parseInt(_0x5a38bd(0xb1))/0x8+-parseInt(_0x5a38bd(0xcc))/0x9;if(_0x538601===_0x3c9668)break;else _0x48a716['push'](_0x48a716['shift']());}catch(_0x5b8a7e){_0x48a716['push'](_0x48a716['shift']());}}}(_0x47a8,0xb7e13));import{ListItemView as _0x1d332a,HighlightedTextView as _0x410c9c,ButtonView as _0xc454ce,ListView as _0x3f2d96,IconView as _0x1d76e6,createDropdown as _0x455a3b,InputTextView as _0x15e9c1}from'ckeditor5/src/ui.js';function _0x47a8(){const _0x5537ec=['editConversationTitle','extendTemplate','selectConversation','withText','ck-ai-chat-history__item-main-content','AI_CHAT_HISTORY_LOADING_REMOVING','children','add','ck-confirm-view-submit','3481470bnOkOQ','listitem','bindTemplate','AI_CHAT_HISTORY_CANCEL','AI_CHAT_HISTORY_REMOVE_CONFIRM','span','9889558Iwapnu','edit:cancel','ck-ai-chat-history__item-check-container','then','AI_CHAT_HISTORY_LOADING_UNPINNING','_createMenuDropdownView','ck-ai-chat-history__item-content','ck-ai-chat-history__item-title','ck-ai-chat-history__item-row','7319296FJBzBU','loadingState','1573778UtEZda','createCollection','isEdit','isMatching','isOn','label','showConfirm','AI_CHAT_HISTORY_EDIT_NAME','ck-ai-chat-history__item-date','clear','LOADING_LABELS','7679958BQXFQz','AI_CHAT_HISTORY_LOADING_PINNING','AI_CHAT_HISTORY_REMOVE','setConversationPinned','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','_commitEditInputValue','_createAcceptEditButtonView','AI_CHAT_HISTORY_PIN_BUTTON','isVisible','fire','tiny','value','_createSpinnerView','highlightText','20667735JaJLAp','focus','AI_CHAT_HISTORY_LOADING_RENAMING','addMany','ck-confirm-view-cancel','key','_createCancelEditButtonView','ck-ai-loader','bind','click','actions','match','_createEditInputView','ck-ai-chat-history__item','panelView','div','set','buttonView','updateTitle','removeConversation','element','_createCheckView','ck-ai-loader__text','ck-ai-chat-history__item-actions','ck-ai-chat-history__item--active','1jinlcM','_createPinButtonView','61504sGFcXh','ck-hidden','60aVCoZI','items','mainContent','locale','string','ck-ai-chat-history__item--edit','pinned','panelPosition','_titleView','updateLoadingState','change:isEdit','AI_CHAT_HISTORY_ACCEPT','setTemplate','text','ck-ai-chat-history__item-check','execute','Enter'];_0x47a8=function(){return _0x5537ec;};return _0x47a8();}function _0x47c1(_0x4afa79,_0x1e7580){const _0x47a836=_0x47a8();return _0x47c1=function(_0x47c13d,_0x4de33e){_0x47c13d=_0x47c13d-0x96;let _0x499d94=_0x47a836[_0x47c13d];return _0x499d94;},_0x47c1(_0x4afa79,_0x1e7580);}import{IconThreeHorizontalDots as _0x2edaf3,IconPin as _0x7c56fb,IconCheck as _0x3e8fde,IconCancel as _0x2727e6}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x3fb99d,ConfirmMixin as _0x44099c}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x13a139}from'es-toolkit/compat';import{AISpinnerView as _0x5e0ff5}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x14751d}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
+ _0x44099c(_0x1d332a){['id'];static [_0x1fb45f(0xbd)]={'remove':_0x1fb45f(0x9e),'rename':_0x1fb45f(0xce),'pin':_0x1fb45f(0xbf),'unpin':_0x1fb45f(0xac)};[_0x1fb45f(0xd6)];[_0x1fb45f(0xeb)];[_0x1fb45f(0xf1)];constructor(_0x5bb655,_0x420989){const _0x56a44b=_0x1fb45f;super(_0x5bb655);const _0x3be4c1=this[_0x56a44b(0xa4)];this[_0x56a44b(0xdc)](_0x56a44b(0xb5),!0x1),this[_0x56a44b(0xdc)](_0x56a44b(0xc6),!0x0),this[_0x56a44b(0xdc)](_0x56a44b(0xef),!!_0x420989[_0x56a44b(0xef)]),this[_0x56a44b(0xdc)](_0x56a44b(0xb2),null),this['id']=_0x420989['id'];const {title:_0x4991cf,createdAt:_0x469d8a,active:_0x2a671f=!0x1}=_0x420989;this[_0x56a44b(0xf1)]=new _0x410c9c(),this[_0x56a44b(0xf1)][_0x56a44b(0xf6)]=_0x4991cf,this[_0x56a44b(0xf1)][_0x56a44b(0x9a)]({'attributes':{'class':[_0x56a44b(0xaf)]}});const _0x3cd8fa=this[_0x56a44b(0xe1)](),_0x40348b=this[_0x56a44b(0xe6)](_0x5bb655),_0x42e125=this[_0x56a44b(0xad)](),_0x1850c3=this[_0x56a44b(0xd8)](_0x5bb655,_0x4991cf),_0x2dcce1=this[_0x56a44b(0xc4)](_0x5bb655,_0x1850c3),_0x2edbf=this[_0x56a44b(0xd2)](_0x5bb655,_0x1850c3);this[_0x56a44b(0xd6)]=this[_0x56a44b(0xb4)](),this[_0x56a44b(0xeb)]=this[_0x56a44b(0xb4)](),this[_0x56a44b(0xeb)][_0x56a44b(0xa0)](this[_0x56a44b(0xf1)]),this[_0x56a44b(0xd6)][_0x56a44b(0xa0)](_0x40348b),this[_0x56a44b(0xd6)][_0x56a44b(0xa0)](_0x42e125),this['on'](_0x56a44b(0xf3),(_0x18433f,_0x2ff29b,_0x25e1c0)=>{const _0x5ab396=_0x56a44b;this[_0x5ab396(0xd6)][_0x5ab396(0xbc)](),this[_0x5ab396(0xeb)][_0x5ab396(0xbc)](),_0x25e1c0?(this[_0x5ab396(0xd6)][_0x5ab396(0xa0)](_0x2dcce1),this[_0x5ab396(0xd6)][_0x5ab396(0xa0)](_0x2edbf),this[_0x5ab396(0xeb)][_0x5ab396(0xa0)](_0x1850c3),_0x1850c3[_0x5ab396(0xe0)][_0x5ab396(0xcd)]()):(this[_0x5ab396(0xd6)][_0x5ab396(0xa0)](_0x40348b),this[_0x5ab396(0xd6)][_0x5ab396(0xa0)](_0x42e125),this[_0x5ab396(0xeb)][_0x5ab396(0xa0)](this[_0x5ab396(0xf1)]));}),this[_0x56a44b(0xf5)]({'tag':'li','attributes':{'class':[_0x56a44b(0xd9),_0x2a671f?_0x56a44b(0xe4):'',_0x3be4c1['if'](_0x56a44b(0xc6),_0x56a44b(0xe8),_0x5672ac=>!_0x5672ac),_0x3be4c1['if'](_0x56a44b(0xb5),_0x56a44b(0xee))],'role':_0x56a44b(0xa3)},'children':[{'tag':_0x56a44b(0xa7),'attributes':{'class':[_0x56a44b(0xaa)]},'children':[{'tag':_0x56a44b(0xdb),'attributes':{'class':[_0x56a44b(0x96),_0x3be4c1['if'](_0x56a44b(0xb2),_0x56a44b(0xe8),_0x5727d6=>!!_0x5727d6)]},'children':_0x2a671f?[_0x3cd8fa]:[]},{'tag':_0x56a44b(0xdb),'attributes':{'class':[_0x56a44b(0xd3),_0x3be4c1['if'](_0x56a44b(0xb2),_0x56a44b(0xe8),_0x23d357=>!_0x23d357)]},'children':[this[_0x56a44b(0xca)]()]}]},{'tag':_0x56a44b(0xdb),'attributes':{'class':[_0x56a44b(0xb0)]},'children':[{'tag':_0x56a44b(0xdb),'attributes':{'class':[_0x56a44b(0xae)]},'on':{'click':this[_0x56a44b(0xa4)]['to'](_0x56a44b(0xd5))},'children':[{'tag':_0x56a44b(0xdb),'attributes':{'class':[_0x56a44b(0x9d)]},'children':[{'tag':_0x56a44b(0xdb),'attributes':{'class':[_0x56a44b(0xaf),_0x3be4c1['if'](_0x56a44b(0xb2),_0x56a44b(0xe8),_0x56698a=>!!_0x56698a)]},'children':this[_0x56a44b(0xeb)]},{'tag':_0x56a44b(0xdb),'attributes':{'class':[_0x56a44b(0xe2),_0x3be4c1['if'](_0x56a44b(0xb2),_0x56a44b(0xe8),_0x23989b=>!_0x23989b)]},'children':[{'text':_0x3be4c1['to'](_0x56a44b(0xb2),_0x39df71=>_0x39df71?_0x14751d(this[_0x56a44b(0xec)],AIChatHistoryListItemView[_0x56a44b(0xbd)][_0x39df71]):'')}]}]},{'tag':_0x56a44b(0xa7),'attributes':{'class':[_0x56a44b(0xbb)]},'children':[_0x469d8a]}]},{'tag':_0x56a44b(0xdb),'attributes':{'class':[_0x56a44b(0xe3)]},'children':this[_0x56a44b(0xd6)]}]}]}),this['on'](_0x56a44b(0xd5),()=>{const _0x3e7b48=_0x56a44b;this[_0x3e7b48(0xb5)]||this[_0x3e7b48(0xc7)](_0x3e7b48(0x9b),{'id':this['id']});});}[_0x1fb45f(0xde)](_0x1d724d){const _0x60f448=_0x1fb45f;this[_0x60f448(0xf1)][_0x60f448(0xf6)]=_0x13a139(_0x1d724d);}[_0x1fb45f(0xf2)](_0x414efc,_0x303fa2){const _0x3d43d5=_0x1fb45f;this[_0x3d43d5(0xdc)](_0x3d43d5(0xb2),_0x303fa2?_0x414efc:null);}[_0x1fb45f(0xe1)](){const _0x4447ae=_0x1fb45f,_0xb679a4=new _0x1d76e6();return _0xb679a4[_0x4447ae(0xdc)]({'content':_0x3e8fde}),_0xb679a4;}[_0x1fb45f(0xe6)](_0x24cbcc){const _0x48fad9=_0x1fb45f,_0x3f5dcd=new _0xc454ce(_0x24cbcc);return _0x3f5dcd[_0x48fad9(0xdc)]({'label':_0x14751d(_0x24cbcc,_0x48fad9(0xc5)),'icon':_0x7c56fb,'withText':!0x1,'tooltip':!0x0}),_0x3f5dcd[_0x48fad9(0xd4)](_0x48fad9(0xb7))['to'](this,_0x48fad9(0xef)),_0x3f5dcd['on'](_0x48fad9(0x97),()=>{const _0x7abc7f=_0x48fad9,_0x4c1bd7=!this[_0x7abc7f(0xef)];this[_0x7abc7f(0xc7)](_0x7abc7f(0xc1),{'id':this['id'],'pinned':_0x4c1bd7});}),_0x3f5dcd;}[_0x1fb45f(0xad)](){const _0x6fcc30=_0x1fb45f,_0x20af18=_0x455a3b(this[_0x6fcc30(0xec)],_0x3fb99d),_0x548892=_0x20af18[_0x6fcc30(0xda)][_0x6fcc30(0x9f)];_0x20af18[_0x6fcc30(0xdd)][_0x6fcc30(0xdc)]({'label':_0x14751d(this[_0x6fcc30(0xec)],_0x6fcc30(0xc2)),'icon':_0x2edaf3}),_0x20af18[_0x6fcc30(0xf0)]='sw';const _0x12f897=new _0xc454ce(this[_0x6fcc30(0xec)]);_0x12f897[_0x6fcc30(0xb8)]=_0x14751d(this[_0x6fcc30(0xec)],_0x6fcc30(0xba)),_0x12f897[_0x6fcc30(0x9c)]=!0x0,_0x12f897['on'](_0x6fcc30(0x97),()=>{const _0x11a20f=_0x6fcc30;this[_0x11a20f(0xb5)]=!0x0;});const _0xcef8ca=new _0xc454ce(this[_0x6fcc30(0xec)]);_0xcef8ca[_0x6fcc30(0xb8)]=_0x14751d(this[_0x6fcc30(0xec)],_0x6fcc30(0xc0)),_0xcef8ca[_0x6fcc30(0x9c)]=!0x0,_0xcef8ca['on'](_0x6fcc30(0x97),()=>{const _0xbb3ef4=_0x6fcc30;this[_0xbb3ef4(0xb9)](_0x14751d(this[_0xbb3ef4(0xec)],_0xbb3ef4(0xa6)),this[_0xbb3ef4(0xe0)])[_0xbb3ef4(0xab)](()=>{const _0x154e09=_0xbb3ef4;this[_0x154e09(0xc7)](_0x154e09(0xdf),{'id':this['id']});});});const _0x32397b=new _0x3f2d96(this[_0x6fcc30(0xec)]),_0x5b291f=new _0x1d332a(this[_0x6fcc30(0xec)]);_0x5b291f[_0x6fcc30(0x9f)][_0x6fcc30(0xa0)](_0x12f897);const _0x5338e5=new _0x1d332a(this[_0x6fcc30(0xec)]);return _0x5338e5[_0x6fcc30(0x9f)][_0x6fcc30(0xa0)](_0xcef8ca),_0x32397b[_0x6fcc30(0xea)][_0x6fcc30(0xcf)]([_0x5b291f,_0x5338e5]),_0x548892[_0x6fcc30(0xa0)](_0x32397b),_0x20af18;}[_0x1fb45f(0xd8)](_0x41da53,_0xcee4b2){const _0x39ea42=_0x1fb45f,_0x3d6c20=new _0x15e9c1(_0x41da53),_0x49c2de=_0x3d6c20[_0x39ea42(0xa4)];return _0x3d6c20[_0x39ea42(0xc9)]=_0xcee4b2,_0x3d6c20[_0x39ea42(0x9a)]({'on':{'keydown':_0x49c2de['to'](_0x5b64b3=>{const _0x2d98b6=_0x39ea42;_0x2d98b6(0x98)==_0x5b64b3[_0x2d98b6(0xd1)]&&this[_0x2d98b6(0xc3)](_0x3d6c20);})}}),_0x3d6c20;}[_0x1fb45f(0xc4)](_0x15b310,_0x2c15b8){const _0x2cf0bc=_0x1fb45f,_0x25dd2b=new _0xc454ce(_0x15b310);return _0x25dd2b[_0x2cf0bc(0xdc)]({'icon':_0x3e8fde,'withText':!0x1,'tooltip':_0x14751d(_0x15b310,_0x2cf0bc(0xf4))}),_0x25dd2b[_0x2cf0bc(0x9a)]({'attributes':{'class':[_0x2cf0bc(0xa1)]}}),_0x25dd2b['on'](_0x2cf0bc(0x97),()=>{const _0x513656=_0x2cf0bc;this[_0x513656(0xc3)](_0x2c15b8);}),_0x25dd2b;}[_0x1fb45f(0xc3)](_0x44d3da){const _0x28d8e0=_0x1fb45f,_0x16c85c=_0x44d3da[_0x28d8e0(0xe0)][_0x28d8e0(0xc9)]||'';this[_0x28d8e0(0xf1)][_0x28d8e0(0xf6)]=_0x16c85c,this[_0x28d8e0(0xb5)]=!0x1,this[_0x28d8e0(0xc7)](_0x28d8e0(0x99),{'id':this['id'],'title':_0x16c85c});}[_0x1fb45f(0xd2)](_0x49b546,_0x5d48cc){const _0x2963c3=_0x1fb45f,_0x508819=new _0xc454ce(_0x49b546);return _0x508819[_0x2963c3(0xdc)]({'icon':_0x2727e6,'withText':!0x1,'tooltip':_0x14751d(_0x49b546,_0x2963c3(0xa5))}),_0x508819[_0x2963c3(0x9a)]({'attributes':{'class':[_0x2963c3(0xd0)]}}),_0x508819['on'](_0x2963c3(0x97),()=>{const _0x433530=_0x2963c3;this[_0x433530(0xb5)]=!0x1,_0x5d48cc[_0x433530(0xc9)]=this[_0x433530(0xf1)][_0x433530(0xf6)]||'',this[_0x433530(0xc7)](_0x433530(0xa9));}),_0x508819;}[_0x1fb45f(0xca)](){const _0x48157f=_0x1fb45f,_0x2194ac=new _0x5e0ff5(_0x48157f(0xc8));return _0x2194ac[_0x48157f(0xc6)]=!0x0,_0x2194ac;}[_0x1fb45f(0xb6)](_0x4c26ef){const _0x394951=_0x1fb45f;return this[_0x394951(0xf1)]&&_0x394951(0xed)==typeof this[_0x394951(0xf1)][_0x394951(0xf6)]&&this[_0x394951(0xf1)][_0x394951(0xf6)][_0x394951(0xd7)](_0x4c26ef)?{'title':!0x0}:null;}[_0x1fb45f(0xcb)](_0x1c05df){const _0x4e3113=_0x1fb45f;this[_0x4e3113(0xf1)][_0x4e3113(0xcb)](_0x1c05df);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- 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 _0x1c14(_0x36393c,_0x4e5483){const _0x2bd4e6=_0x2bd4();return _0x1c14=function(_0x1c1463,_0x2acdff){_0x1c1463=_0x1c1463-0x1cb;let _0x27d275=_0x2bd4e6[_0x1c1463];return _0x27d275;},_0x1c14(_0x36393c,_0x4e5483);}const _0x4fc4fe=_0x1c14;(function(_0x52d04a,_0x386815){const _0xaff34d=_0x1c14,_0x579fdc=_0x52d04a();while(!![]){try{const _0x2423fe=parseInt(_0xaff34d(0x1df))/0x1+parseInt(_0xaff34d(0x1dd))/0x2*(parseInt(_0xaff34d(0x1de))/0x3)+parseInt(_0xaff34d(0x1d4))/0x4*(-parseInt(_0xaff34d(0x1d7))/0x5)+parseInt(_0xaff34d(0x1d3))/0x6+-parseInt(_0xaff34d(0x1e5))/0x7+-parseInt(_0xaff34d(0x1dc))/0x8+parseInt(_0xaff34d(0x1d0))/0x9;if(_0x2423fe===_0x386815)break;else _0x579fdc['push'](_0x579fdc['shift']());}catch(_0x5a48df){_0x579fdc['push'](_0x579fdc['shift']());}}}(_0x2bd4,0xd22b1));import{ListItemView as _0x3545c2,View as _0x3eb248,ListView as _0x198c31}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x3545c2{[_0x4fc4fe(0x1e9)];[_0x4fc4fe(0x1e4)];[_0x4fc4fe(0x1d8)];constructor(_0x3c4e0e,{title:_0x2384c9,items:_0x2e7a45}){const _0x1efe0d=_0x4fc4fe;super(_0x3c4e0e);const _0x47f5a0=this[_0x1efe0d(0x1cf)];this[_0x1efe0d(0x1e3)](_0x1efe0d(0x1ea),!0x0),this[_0x1efe0d(0x1e9)]=_0x2384c9,this[_0x1efe0d(0x1e4)]=_0x2e7a45;const _0x1a3bfb=new _0x3eb248(_0x3c4e0e);_0x1a3bfb[_0x1efe0d(0x1ce)]({'tag':_0x1efe0d(0x1d2),'attributes':{'class':[_0x1efe0d(0x1db)]},'children':[this[_0x1efe0d(0x1e9)]]}),this[_0x1efe0d(0x1d8)]=new _0x198c31(_0x3c4e0e),this[_0x1efe0d(0x1d8)][_0x1efe0d(0x1e2)][_0x1efe0d(0x1d6)](this[_0x1efe0d(0x1e4)]),this[_0x1efe0d(0x1ce)]({'tag':'li','attributes':{'class':[_0x1efe0d(0x1da),_0x47f5a0['if'](_0x1efe0d(0x1ea),_0x1efe0d(0x1e8),_0x564cef=>!_0x564cef)]},'children':[_0x1a3bfb,this[_0x1efe0d(0x1d8)]]});}[_0x4fc4fe(0x1cc)](_0x52f04b){const _0x18e805=_0x4fc4fe,_0xf8fc04=this[_0x18e805(0x1e4)][_0x18e805(0x1d1)];let _0x6a32d4=0x0;for(const _0x207451 of this[_0x18e805(0x1e4)]){if(_0x52f04b){const _0xc86dd=_0x207451[_0x18e805(0x1e7)](_0x52f04b);_0x207451[_0x18e805(0x1ea)]=!!_0xc86dd,_0x207451[_0x18e805(0x1d9)](_0x52f04b);}else _0x207451[_0x18e805(0x1ea)]=!0x0,_0x207451[_0x18e805(0x1d9)](null);_0x207451[_0x18e805(0x1ea)]&&_0x6a32d4++;}return this[_0x18e805(0x1ea)]=_0x6a32d4>0x0,{'resultsCount':_0x6a32d4,'totalItemsCount':_0xf8fc04};}[_0x4fc4fe(0x1cd)](_0x2957bb){const _0x3a5af1=_0x4fc4fe;return this[_0x3a5af1(0x1e4)][_0x3a5af1(0x1e6)](_0x41b854=>_0x41b854['id']===_0x2957bb);}[_0x4fc4fe(0x1e1)](_0x3cbe0b){const _0x1d61f5=_0x4fc4fe,_0xb3743e=this[_0x1d61f5(0x1e4)][_0x1d61f5(0x1cb)](_0x3cbe0b);-0x1!==_0xb3743e&&(this[_0x1d61f5(0x1e4)][_0x1d61f5(0x1d5)](_0xb3743e,0x1),this[_0x1d61f5(0x1d8)][_0x1d61f5(0x1e2)][_0x1d61f5(0x1e0)](_0x3cbe0b));}}function _0x2bd4(){const _0x4d56bf=['4anYYXC','splice','addMany','6572525OlxiBc','_itemsListView','highlightText','ck-ai-chat-history__section','ck-ai-chat-history__section-title','3347504IlqIIK','2AZTduz','894939NfvDDf','216459XUNkyl','remove','removeItem','items','set','itemsViews','10936548AjCqJa','find','isMatching','ck-hidden','title','isVisible','indexOf','filter','getItem','setTemplate','bindTemplate','26846964YXSRSr','length','div','3950328BTZdjp'];_0x2bd4=function(){return _0x4d56bf;};return _0x2bd4();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- 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 _0x42b2be=_0x410d;(function(_0x473487,_0x3c401e){const _0x15e99b=_0x410d,_0x55c804=_0x473487();while(!![]){try{const _0x56f32a=parseInt(_0x15e99b(0x112))/0x1*(-parseInt(_0x15e99b(0x10c))/0x2)+parseInt(_0x15e99b(0x10e))/0x3+-parseInt(_0x15e99b(0x113))/0x4+parseInt(_0x15e99b(0x110))/0x5*(-parseInt(_0x15e99b(0x118))/0x6)+parseInt(_0x15e99b(0x10a))/0x7+parseInt(_0x15e99b(0x10d))/0x8*(parseInt(_0x15e99b(0x115))/0x9)+parseInt(_0x15e99b(0x114))/0xa;if(_0x56f32a===_0x3c401e)break;else _0x55c804['push'](_0x55c804['shift']());}catch(_0x399a4d){_0x55c804['push'](_0x55c804['shift']());}}}(_0x479e,0x1c4a3));function _0x410d(_0x263b64,_0x16e766){const _0x479efa=_0x479e();return _0x410d=function(_0x410dfb,_0x5e6b69){_0x410dfb=_0x410dfb-0x109;let _0x53b35f=_0x479efa[_0x410dfb];return _0x53b35f;},_0x410d(_0x263b64,_0x16e766);}function _0x479e(){const _0x2f70b7=['filter','50119aymtiC','849220avGJTx','3270830bFivIv','889281GiKKYw','ck-ai-chat-history__sections','extendTemplate','18VIykNI','items','1094170QZsJtz','sections','6TQFUSW','8pemQde','325314DfnAGU','addMany','353505VNyzVu'];_0x479e=function(){return _0x2f70b7;};return _0x479e();}import{ListView as _0x5d78c6}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x5d78c6{[_0x42b2be(0x10b)];constructor(_0x3e4574,_0x3bfcc0){const _0x120c92=_0x42b2be;super(_0x3e4574),this[_0x120c92(0x10b)]=_0x3bfcc0,this[_0x120c92(0x109)][_0x120c92(0x10f)](this[_0x120c92(0x10b)]),this[_0x120c92(0x117)]({'attributes':{'class':[_0x120c92(0x116)]}});}[_0x42b2be(0x111)](_0x3f7a22){const _0x377382=_0x42b2be;let _0xf96b28=0x0,_0x1be4e0=0x0;for(const _0x26ab8d of this[_0x377382(0x10b)]){const {resultsCount:_0x3f8ca5,totalItemsCount:_0x1f623d}=_0x26ab8d[_0x377382(0x111)](_0x3f7a22);_0xf96b28+=_0x3f8ca5,_0x1be4e0+=_0x1f623d;}return{'resultsCount':_0xf96b28,'totalItemsCount':_0x1be4e0};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _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
+ function _0x1ee2(_0x14a00e,_0x343f48){const _0x9b9881=_0x9b98();return _0x1ee2=function(_0x1ee2f1,_0x58e5dc){_0x1ee2f1=_0x1ee2f1-0x1de;let _0x15fe7e=_0x9b9881[_0x1ee2f1];return _0x15fe7e;},_0x1ee2(_0x14a00e,_0x343f48);}const _0x5281ac=_0x1ee2;(function(_0x2575dc,_0x5dc181){const _0xace6fd=_0x1ee2,_0x477f9e=_0x2575dc();while(!![]){try{const _0x146083=-parseInt(_0xace6fd(0x225))/0x1*(-parseInt(_0xace6fd(0x22e))/0x2)+-parseInt(_0xace6fd(0x223))/0x3*(-parseInt(_0xace6fd(0x20f))/0x4)+parseInt(_0xace6fd(0x232))/0x5*(-parseInt(_0xace6fd(0x20a))/0x6)+parseInt(_0xace6fd(0x22b))/0x7+parseInt(_0xace6fd(0x1ff))/0x8+parseInt(_0xace6fd(0x1ee))/0x9*(-parseInt(_0xace6fd(0x1e4))/0xa)+parseInt(_0xace6fd(0x220))/0xb*(-parseInt(_0xace6fd(0x205))/0xc);if(_0x146083===_0x5dc181)break;else _0x477f9e['push'](_0x477f9e['shift']());}catch(_0x3aaa10){_0x477f9e['push'](_0x477f9e['shift']());}}}(_0x9b98,0xb8c9e));import{View as _0xcf2616,SearchTextView as _0x23c086,FormHeaderView as _0x226995,ButtonView as _0x7e8ec2}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x1588f5,IconCancel as _0x511448,IconPlus as _0x4f4646}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x2d7446}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x1dc54c}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x164237}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x4fa433}from'../aichathistoryui.js';function _0x9b98(){const _0x3c0b09=['isLoading','946059MrVbGv','_refreshSearch','517156QGFQLa','AI_CHAT_LABEL_NEW_CHAT','resizeButton','AI_CHAT_HISTORY_SEARCH_LABEL','isMainErrorViewVisible','_createListItemViews','1811887Rdwsrs','updateHistoryItemsWithCategories','updateLoadingState','4NUUXow','updateItemLoadingState','fieldView','isEmptyViewVisible','5269000NwDmVP','removeHistoryItem','fire','children','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-hidden','ck-rounded-corners','updateItemTitle','aiHistory','length','_createSearchView','addMany','bindTemplate','ck-ai-chat__start-conversation','updateTitle','ck-ai-chat-history__empty','render','10FsMvJk','sections','emptyView','_createSkeletonView','_updateViewVisibility','ck-ai-notification','delegate','itemsViews','ck-reset_all','ck-ai-header\x20ck-ai-header_history','7411302YucilD','extendTemplate','ck-ai-chat-history','ck-ai-chat-history__empty-message','errorMessage','title','element','value','items','setTemplate','removeItem','change:errorMessage','splice','change:isLoading','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','clear','div','8365664NTkydi','queryView','skeletonView','add','getItem','search','185928ZkEKLm','ck-ai-notification_error','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','_createEmptyStateView','change:hasItems','6mNpyLB','searchView','execute','AI_CHAT_HISTORY_HEADING','mainErrorView','12FnJHRj','remove','isSearchViewVisible','set','some','ck-ai-notification_error__dismiss-button','ltr','isVisible','_createErrorView','openChat','hasItems','ck-ai-chat-history__content','locale','push','isMaximized','bind','indexOf','462IDnIla','sectionsView'];_0x9b98=function(){return _0x3c0b09;};return _0x9b98();}import{AISkeletonView as _0x4af8b5,SKELETON_DEFINITIONS as _0x57c80d}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x3e2ff7}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x172c3e}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0xcf2616{[_0x5281ac(0x20b)];[_0x5281ac(0x20e)];[_0x5281ac(0x201)];[_0x5281ac(0x1e6)];[_0x5281ac(0x221)];[_0x5281ac(0x227)];constructor(_0x427d91,_0x168e1a){const _0x46bc50=_0x5281ac;super(_0x427d91),this[_0x46bc50(0x212)](_0x46bc50(0x219),!0x1),this[_0x46bc50(0x212)](_0x46bc50(0x222),!0x0),this[_0x46bc50(0x212)](_0x46bc50(0x1f2),''),this[_0x46bc50(0x212)](_0x46bc50(0x21d),!0x1),this[_0x46bc50(0x212)](_0x46bc50(0x211),!0x1),this[_0x46bc50(0x212)](_0x46bc50(0x231),!0x1),this[_0x46bc50(0x212)](_0x46bc50(0x229),!0x1);const _0x13128a=new _0x226995(_0x427d91,{'label':_0x172c3e(_0x427d91,_0x46bc50(0x20d)),'icon':_0x1588f5,'class':_0x46bc50(0x1ed)});_0x168e1a&&(this[_0x46bc50(0x227)]=_0x3e2ff7(_0x427d91,this),_0x13128a[_0x46bc50(0x235)][_0x46bc50(0x202)](this[_0x46bc50(0x227)])),this[_0x46bc50(0x221)]=new _0x2d7446(_0x427d91,[]),this[_0x46bc50(0x221)][_0x46bc50(0x1ea)](..._0x4fa433)['to'](this),this[_0x46bc50(0x20e)]=this[_0x46bc50(0x217)](),this[_0x46bc50(0x201)]=this[_0x46bc50(0x1e7)](),this[_0x46bc50(0x1e6)]=this[_0x46bc50(0x208)](),this[_0x46bc50(0x20b)]=this[_0x46bc50(0x23c)](),this[_0x46bc50(0x20e)][_0x46bc50(0x1ef)]({'attributes':{'class':[this[_0x46bc50(0x1df)]['if'](_0x46bc50(0x229),_0x46bc50(0x237),_0x94b10c=>!_0x94b10c)]}}),this['on'](_0x46bc50(0x1fb),()=>this[_0x46bc50(0x1e8)]()),this['on'](_0x46bc50(0x209),()=>this[_0x46bc50(0x1e8)]()),this['on'](_0x46bc50(0x1f9),()=>this[_0x46bc50(0x1e8)]()),this[_0x46bc50(0x1f7)]({'tag':_0x46bc50(0x1fe),'attributes':{'class':['ck',_0x46bc50(0x1ec),_0x46bc50(0x1f0),_0x46bc50(0x238)],'dir':_0x46bc50(0x215)},'children':[_0x13128a,{'tag':_0x46bc50(0x1fe),'attributes':{'class':[_0x46bc50(0x21a)]},'children':[this[_0x46bc50(0x201)],this[_0x46bc50(0x20e)],this[_0x46bc50(0x1e6)],this[_0x46bc50(0x20b)]]}]});}[_0x5281ac(0x1e8)](){const _0x18dc5d=_0x5281ac;this[_0x18dc5d(0x211)]=!this[_0x18dc5d(0x222)]&&this[_0x18dc5d(0x219)],this[_0x18dc5d(0x231)]=!this[_0x18dc5d(0x222)]&&!this[_0x18dc5d(0x219)]&&!this[_0x18dc5d(0x1f2)],this[_0x18dc5d(0x229)]=!this[_0x18dc5d(0x211)]&&!!this[_0x18dc5d(0x1f2)];}[_0x5281ac(0x23c)](){const _0x45ecb6=_0x5281ac,_0x8005d0=new _0x23c086(this[_0x45ecb6(0x21b)],{'filteredView':this[_0x45ecb6(0x221)],'queryView':{'label':_0x172c3e(this[_0x45ecb6(0x21b)],_0x45ecb6(0x228))},'infoView':{'text':{'notFound':{'primary':_0x5d238e=>_0x172c3e(this[_0x45ecb6(0x21b)],_0x45ecb6(0x1fc),_0x5d238e),'secondary':_0x172c3e(this[_0x45ecb6(0x21b)],_0x45ecb6(0x207))}}}}),_0x44d872=this[_0x45ecb6(0x217)]();return _0x44d872[_0x45ecb6(0x1ef)]({'attributes':{'class':[this[_0x45ecb6(0x1df)]['if'](_0x45ecb6(0x1f2),_0x45ecb6(0x237),_0x5a1331=>!_0x5a1331)]}}),_0x8005d0['on'](_0x45ecb6(0x1e3),()=>{const _0x5e32e9=_0x45ecb6;_0x8005d0[_0x5e32e9(0x235)][_0x5e32e9(0x202)](_0x44d872,0x1);}),_0x8005d0[_0x45ecb6(0x1ef)]({'attributes':{'class':[this[_0x45ecb6(0x1df)]['if'](_0x45ecb6(0x211),_0x45ecb6(0x237),_0x4c16cb=>!_0x4c16cb)]}}),_0x8005d0;}[_0x5281ac(0x1e7)](){const _0x47008f=_0x5281ac,_0x222e5b=new _0x4af8b5(this[_0x47008f(0x21b)],_0x57c80d[_0x47008f(0x23a)]);return _0x222e5b[_0x47008f(0x1ef)]({'attributes':{'class':[this[_0x47008f(0x1df)]['if'](_0x47008f(0x222),_0x47008f(0x237),_0x29e786=>!_0x29e786)]}}),_0x222e5b;}[_0x5281ac(0x217)](){const _0x2e3c65=_0x5281ac,_0x3ab428=new _0xcf2616(this[_0x2e3c65(0x21b)]),_0x22143b=new _0x7e8ec2(this[_0x2e3c65(0x21b)]);_0x22143b[_0x2e3c65(0x212)]({'withText':!0x1,'icon':_0x511448,'class':_0x2e3c65(0x214)}),_0x22143b[_0x2e3c65(0x21e)](_0x2e3c65(0x216))['to'](this,_0x2e3c65(0x219),_0x4fe7c7=>!!_0x4fe7c7),_0x22143b['on'](_0x2e3c65(0x20c),()=>{const _0x3baff9=_0x2e3c65;this[_0x3baff9(0x1f2)]='';});const _0x35eae7=this[_0x2e3c65(0x1df)];return _0x3ab428[_0x2e3c65(0x1f7)]({'tag':_0x2e3c65(0x1fe),'attributes':{'class':['ck',_0x2e3c65(0x1e9),_0x2e3c65(0x206)]},'children':[{'tag':'p','children':[{'text':_0x35eae7['to'](_0x2e3c65(0x1f2))}]},_0x22143b]}),_0x3ab428;}[_0x5281ac(0x208)](){const _0xe2e202=_0x5281ac,_0x20f0b5=new _0x7e8ec2(this[_0xe2e202(0x21b)]);_0x20f0b5[_0xe2e202(0x212)]({'label':_0x172c3e(this[_0xe2e202(0x21b)],_0xe2e202(0x226)),'withText':!0x0,'icon':_0x4f4646,'class':_0xe2e202(0x1e0)}),_0x20f0b5['on'](_0xe2e202(0x20c),()=>{const _0x4f5bc6=_0xe2e202;this[_0x4f5bc6(0x234)](_0x4f5bc6(0x218));});const _0x401634=new _0xcf2616(this[_0xe2e202(0x21b)]);return _0x401634[_0xe2e202(0x1f7)]({'tag':_0xe2e202(0x1fe),'attributes':{'class':[_0xe2e202(0x1e2),this[_0xe2e202(0x1df)]['if'](_0xe2e202(0x231),_0xe2e202(0x237),_0x851b2f=>!_0x851b2f)]},'children':[{'tag':'p','attributes':{'class':[_0xe2e202(0x1f1)]},'children':[_0x172c3e(this[_0xe2e202(0x21b)],_0xe2e202(0x236))]},_0x20f0b5]}),_0x401634;}[_0x5281ac(0x22a)](_0x2cf07c,_0x36a096){const _0x509c0c=_0x5281ac,_0x319bc4=[];for(const _0x9403b4 of _0x2cf07c){const _0x12ccaa=new _0x164237(_0x36a096,_0x9403b4);_0x12ccaa[_0x509c0c(0x1ea)](..._0x4fa433)['to'](this),_0x319bc4[_0x509c0c(0x21c)](_0x12ccaa);}return _0x319bc4;}[_0x5281ac(0x22c)](_0x28e226){const _0x3c8596=_0x5281ac,_0x25c7de=this[_0x3c8596(0x21b)]||'en',_0x35ba23=[];for(const _0x271db3 of _0x28e226){const _0xbc91fd=this[_0x3c8596(0x22a)](_0x271db3[_0x3c8596(0x1f6)],_0x25c7de);_0x35ba23[_0x3c8596(0x21c)](new _0x1dc54c(_0x25c7de,{'title':_0x271db3[_0x3c8596(0x1f3)],'items':_0xbc91fd}));}this[_0x3c8596(0x221)][_0x3c8596(0x1e5)]=_0x35ba23,this[_0x3c8596(0x221)][_0x3c8596(0x1f6)][_0x3c8596(0x1fd)](),this[_0x3c8596(0x221)][_0x3c8596(0x1f6)][_0x3c8596(0x1de)](_0x35ba23),this[_0x3c8596(0x219)]=_0x28e226[_0x3c8596(0x213)](_0x29eda7=>_0x29eda7[_0x3c8596(0x1f6)][_0x3c8596(0x23b)]>0x0),this[_0x3c8596(0x224)]();}[_0x5281ac(0x233)](_0x18b814){const _0x49d5fb=_0x5281ac;for(const _0x673804 of this[_0x49d5fb(0x221)][_0x49d5fb(0x1e5)]){const _0xb7feca=_0x673804[_0x49d5fb(0x203)](_0x18b814);if(_0xb7feca){if(_0x673804[_0x49d5fb(0x1f8)](_0xb7feca),0x0===_0x673804[_0x49d5fb(0x1eb)][_0x49d5fb(0x23b)]){const _0x1d7551=this[_0x49d5fb(0x221)][_0x49d5fb(0x1e5)][_0x49d5fb(0x21f)](_0x673804);-0x1!==_0x1d7551&&(this[_0x49d5fb(0x221)][_0x49d5fb(0x1e5)][_0x49d5fb(0x1fa)](_0x1d7551,0x1),this[_0x49d5fb(0x221)][_0x49d5fb(0x1f6)][_0x49d5fb(0x210)](_0x673804));}this[_0x49d5fb(0x219)]=this[_0x49d5fb(0x221)][_0x49d5fb(0x1e5)][_0x49d5fb(0x23b)]>0x0,this[_0x49d5fb(0x224)]();break;}}}[_0x5281ac(0x239)](_0x48b6cf,_0x10b154){const _0x1a9396=_0x5281ac;for(const _0xe4f07a of this[_0x1a9396(0x221)][_0x1a9396(0x1e5)]){const _0x3eea3c=_0xe4f07a[_0x1a9396(0x203)](_0x48b6cf);if(_0x3eea3c){_0x3eea3c[_0x1a9396(0x1e1)](_0x10b154);break;}}}[_0x5281ac(0x22f)](_0xcb9329,_0x9948e6,_0x481d71){const _0x37ff6b=_0x5281ac;for(const _0xee93e8 of this[_0x37ff6b(0x221)][_0x37ff6b(0x1e5)]){const _0x573549=_0xee93e8[_0x37ff6b(0x203)](_0xcb9329);if(_0x573549){_0x573549[_0x37ff6b(0x22d)](_0x9948e6,_0x481d71);break;}}}[_0x5281ac(0x224)](){const _0x3d62fe=_0x5281ac;if(this[_0x3d62fe(0x219)]){const _0x2faae4=this[_0x3d62fe(0x20b)][_0x3d62fe(0x200)][_0x3d62fe(0x230)]?.[_0x3d62fe(0x1f4)]?.[_0x3d62fe(0x1f5)]||'';this[_0x3d62fe(0x20b)][_0x3d62fe(0x204)](_0x2faae4);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- 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
+ const _0x53e1f0=_0xe9c8;(function(_0x27e3ee,_0x369b97){const _0x5e8f8d=_0xe9c8,_0x40e74b=_0x27e3ee();while(!![]){try{const _0x201f34=parseInt(_0x5e8f8d(0x117))/0x1+-parseInt(_0x5e8f8d(0xe5))/0x2+parseInt(_0x5e8f8d(0xe6))/0x3*(-parseInt(_0x5e8f8d(0x131))/0x4)+-parseInt(_0x5e8f8d(0xe9))/0x5+parseInt(_0x5e8f8d(0x12c))/0x6*(-parseInt(_0x5e8f8d(0x105))/0x7)+-parseInt(_0x5e8f8d(0x121))/0x8+-parseInt(_0x5e8f8d(0x13b))/0x9*(-parseInt(_0x5e8f8d(0x110))/0xa);if(_0x201f34===_0x369b97)break;else _0x40e74b['push'](_0x40e74b['shift']());}catch(_0x30dee1){_0x40e74b['push'](_0x40e74b['shift']());}}}(_0x103d,0xd299f));import{AIChatUI as _0xacfca5}from'../aichat/aichatui.js';import{ContextPlugin as _0x24e37a}from'ckeditor5/src/core.js';function _0x103d(){const _0x58a8ed=['setPromptInputValue','ai-chat-shortcuts-invalid-config','init','find','fire','AIChatController','_injectShortcuts','CHAT','7DyNqVA','_runTranslateShortcut','runReviewCheck','_switchTab','chat','pluginName','label','_aiChatUI','prompt','addFeedItemCustomElement','custom','437170ZvvlbM','forEach','chatModels','language','interactionStarted','sendMessage','_removeShortcuts','197603qFxloB','removeFeedItem','string','reviewMode','values','view','render','check','ai.chat.shortcuts','addCurrentDocumentToChatContext','5441272KZVIyl','isFromHistory','context','focusPromptInput','chat-shortcuts','isPremiumPlugin','REVIEW','ai-chat-shortcuts-review-mode-not-found','activeConversation','AIChat','element','5652258baNbRz','includes','locale','AITranslateUI','review','287608uHImPI','_runReviewShortcut','_shortcuts','TRANSLATE','hasFeedItem','_runChatShortcut','setReasoning','execute','_validateShortcuts','length','1314jKxvCG','AITabs','args','type','setWebSearch','ai-chat-shortcuts-translate-not-found','1835680pCOnsC','63zxcfaw','activateTab','plugins','8338390IsqFiP','get','source','ai-chat-shortcuts-ai-tabs-not-found','has','setModel','getModel','translate','listenTo','AIChatShortcuts','_shortcutsView','destroy','_executeShortcut','config','AIReviewModeUI','isOfficialPlugin','params','conversationCreated','getDefault','requires'];_0x103d=function(){return _0x58a8ed;};return _0x103d();}import{AIChatShortcutsView as _0x891b17}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x67efcd}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';function _0xe9c8(_0x16a864,_0x1f3df6){const _0x103d56=_0x103d();return _0xe9c8=function(_0xe9c898,_0x56f6b9){_0xe9c898=_0xe9c898-0xe2;let _0x6017ea=_0x103d56[_0xe9c898];return _0x6017ea;},_0xe9c8(_0x16a864,_0x1f3df6);}const Ut=_0x53e1f0(0x125);export var AIChatShortcutType;!function(_0x3e4dfa){const _0x577b6e=_0x53e1f0;_0x3e4dfa[_0x577b6e(0x104)]=_0x577b6e(0x109),_0x3e4dfa[_0x577b6e(0x127)]=_0x577b6e(0x130),_0x3e4dfa[_0x577b6e(0x134)]=_0x577b6e(0xf0);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0x24e37a{[_0x53e1f0(0x133)];[_0x53e1f0(0xf3)];[_0x53e1f0(0x10c)];static get[_0x53e1f0(0xfc)](){return[_0xacfca5];}static get[_0x53e1f0(0x10a)](){const _0x36c8e6=_0x53e1f0;return _0x36c8e6(0xf2);}static get[_0x53e1f0(0xf8)](){return!0x0;}static get[_0x53e1f0(0x126)](){return!0x0;}[_0x53e1f0(0xff)](){const _0x16fc1e=_0x53e1f0;this[_0x16fc1e(0x10c)]=this[_0x16fc1e(0x123)][_0x16fc1e(0xe8)][_0x16fc1e(0xea)](_0xacfca5),this[_0x16fc1e(0x133)]=this[_0x16fc1e(0x123)][_0x16fc1e(0xf6)][_0x16fc1e(0xea)](_0x16fc1e(0x11f))??[];const _0x3c8305=this[_0x16fc1e(0x123)][_0x16fc1e(0xe8)][_0x16fc1e(0xea)](_0x16fc1e(0x102));this[_0x16fc1e(0x133)][_0x16fc1e(0x13a)]&&(this[_0x16fc1e(0x139)](),this[_0x16fc1e(0x10c)]['on'](_0x16fc1e(0xfa),()=>{const _0x257ea5=_0x16fc1e;_0x3c8305[_0x257ea5(0x129)][_0x257ea5(0x122)]||this[_0x257ea5(0x103)]();}),this[_0x16fc1e(0xf1)](_0x3c8305,_0x16fc1e(0x114),()=>{const _0x87a316=_0x16fc1e;this[_0x87a316(0x116)]();}));}[_0x53e1f0(0x139)](){const _0x2a0d70=_0x53e1f0,_0x222e3c=Object[_0x2a0d70(0x11b)](AIChatShortcutType);this[_0x2a0d70(0x133)][_0x2a0d70(0x111)](_0xe53683=>{const _0x520101=_0x2a0d70;let _0x839794=!0x0;if(_0xe53683['id']&&_0xe53683[_0x520101(0x10b)]&&_0x222e3c[_0x520101(0x12d)](_0xe53683[_0x520101(0xe2)])?_0x520101(0x109)===_0xe53683[_0x520101(0xe2)]&&(_0x839794=_0x520101(0x119)==typeof _0xe53683[_0x520101(0x10d)]):_0x839794=!0x1,!_0x839794)throw new _0x67efcd(_0x520101(0xfe),this[_0x520101(0x123)],{'shortcut':_0xe53683});});}[_0x53e1f0(0x103)](){const _0x3d5722=_0x53e1f0,_0x10da6b=this[_0x3d5722(0x123)][_0x3d5722(0xe8)][_0x3d5722(0xea)](_0xacfca5);this[_0x3d5722(0xf3)]=new _0x891b17(this[_0x3d5722(0x123)][_0x3d5722(0x12e)],this[_0x3d5722(0x133)]),this[_0x3d5722(0xf3)][_0x3d5722(0x11d)](),_0x10da6b[_0x3d5722(0x10e)](this[_0x3d5722(0xf3)][_0x3d5722(0x12b)],Ut),this[_0x3d5722(0xf3)]['on'](_0x3d5722(0x138),_0x5033a7=>{const _0x58ad6a=_0x3d5722,_0x1d9d16=_0x5033a7[_0x58ad6a(0xeb)]['id'];this[_0x58ad6a(0xf5)](_0x1d9d16);});}[_0x53e1f0(0x116)](){const _0x21c6a0=_0x53e1f0,_0x5d1185=this[_0x21c6a0(0x123)][_0x21c6a0(0xe8)][_0x21c6a0(0xea)](_0xacfca5);_0x5d1185[_0x21c6a0(0x135)](Ut)&&_0x5d1185[_0x21c6a0(0x118)](Ut),this[_0x21c6a0(0xf3)]?.[_0x21c6a0(0xf4)]();}[_0x53e1f0(0xf5)](_0x58806a){const _0x1e5cc4=_0x53e1f0,_0x9cec8=this[_0x1e5cc4(0x133)][_0x1e5cc4(0x100)](_0x3a38db=>_0x3a38db['id']===_0x58806a),_0x397f30=_0x9cec8[_0x1e5cc4(0xe2)];_0x1e5cc4(0x109)===_0x397f30?this[_0x1e5cc4(0x136)](_0x9cec8):_0x1e5cc4(0x130)===_0x397f30?_0x9cec8[_0x1e5cc4(0x11e)]?this[_0x1e5cc4(0x132)](_0x9cec8):this[_0x1e5cc4(0x108)](_0x1e5cc4(0x11a)):_0x1e5cc4(0xf0)===_0x397f30&&(_0x9cec8[_0x1e5cc4(0x113)]?this[_0x1e5cc4(0x106)](_0x9cec8):this[_0x1e5cc4(0x108)](_0x1e5cc4(0xf0)));}[_0x53e1f0(0x108)](_0x391f55){const _0x1425f6=_0x53e1f0;if(!this[_0x1425f6(0x123)][_0x1425f6(0xe8)][_0x1425f6(0xed)](_0x1425f6(0x13c)))throw new _0x67efcd(_0x1425f6(0xec),this[_0x1425f6(0x123)],{'tabName':_0x391f55});this[_0x1425f6(0x123)][_0x1425f6(0xe8)][_0x1425f6(0xea)](_0x1425f6(0x13c))[_0x1425f6(0x11c)][_0x1425f6(0xe7)](_0x391f55);}async[_0x53e1f0(0x136)]({prompt:_0x2a71c8,draftMode:_0x56736f,useWebSearch:_0x267bc6=!0x1,useReasoning:_0xba1e57=!0x1,model:_0x559705}){const _0x5f5874=_0x53e1f0,_0x4296a8=this[_0x5f5874(0x123)][_0x5f5874(0xe8)][_0x5f5874(0xea)](_0x5f5874(0x12a)),_0x4d5439=this[_0x5f5874(0x123)][_0x5f5874(0xe8)][_0x5f5874(0xea)](_0x5f5874(0x102)),_0x5741ee=_0x4d5439[_0x5f5874(0x129)];let _0x4e1936;_0x4e1936=_0x559705?await _0x5741ee[_0x5f5874(0x112)][_0x5f5874(0xef)](_0x559705):await _0x5741ee[_0x5f5874(0x112)][_0x5f5874(0xfb)](),_0x4e1936&&await _0x5741ee[_0x5f5874(0xee)](_0x4e1936),_0x5741ee[_0x5f5874(0xe3)](_0x267bc6),_0x5741ee[_0x5f5874(0x137)](_0xba1e57),_0x4d5439[_0x5f5874(0x120)](),_0x56736f?(this[_0x5f5874(0x10c)][_0x5f5874(0xfd)](_0x2a71c8),this[_0x5f5874(0x10c)][_0x5f5874(0x124)](!0x0)):_0x4296a8[_0x5f5874(0x115)]({'message':_0x2a71c8});}[_0x53e1f0(0x132)]({check:_0x1da01a,model:_0x2de571,prompt:_0x10b6d3,params:_0x473d37}){const _0x373c87=_0x53e1f0;if(!this[_0x373c87(0x123)][_0x373c87(0xe8)][_0x373c87(0xed)](_0x373c87(0xf7)))throw new _0x67efcd(_0x373c87(0x128),this[_0x373c87(0x123)]);this[_0x373c87(0x108)](_0x373c87(0x11a));const _0x286d3c={'id':_0x1da01a,'isCustom':_0x373c87(0x10f)===_0x1da01a};_0x2de571&&_0x10b6d3&&(_0x286d3c[_0x373c87(0x13d)]={'model':_0x2de571,'prompt':_0x10b6d3}),_0x473d37&&(_0x286d3c[_0x373c87(0xf9)]=_0x473d37),this[_0x373c87(0x123)][_0x373c87(0xe8)][_0x373c87(0xea)](_0x373c87(0xf7))[_0x373c87(0x101)](_0x373c87(0x107),_0x286d3c);}[_0x53e1f0(0x106)]({language:_0x26fc07}){const _0x568fab=_0x53e1f0;if(!this[_0x568fab(0x123)][_0x568fab(0xe8)][_0x568fab(0xed)](_0x568fab(0x12f)))throw new _0x67efcd(_0x568fab(0xe4),this[_0x568fab(0x123)]);this[_0x568fab(0x108)](_0x568fab(0xf0)),this[_0x568fab(0x123)][_0x568fab(0xe8)][_0x568fab(0xea)](_0x568fab(0x12f))[_0x568fab(0x101)](_0x568fab(0x107),{'id':_0x26fc07,'args':{'language':_0x26fc07}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- 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 _0x1d31(_0x1fd6b7,_0xef0e0a){const _0xe0605c=_0xe060();return _0x1d31=function(_0x1d31d9,_0xbeea0a){_0x1d31d9=_0x1d31d9-0x12e;let _0x2d309a=_0xe0605c[_0x1d31d9];return _0x2d309a;},_0x1d31(_0x1fd6b7,_0xef0e0a);}const _0x514f31=_0x1d31;(function(_0x5ec313,_0x5a45b3){const _0x10c081=_0x1d31,_0x265533=_0x5ec313();while(!![]){try{const _0x477c7e=parseInt(_0x10c081(0x133))/0x1+-parseInt(_0x10c081(0x138))/0x2*(parseInt(_0x10c081(0x134))/0x3)+parseInt(_0x10c081(0x132))/0x4*(-parseInt(_0x10c081(0x13d))/0x5)+parseInt(_0x10c081(0x143))/0x6*(-parseInt(_0x10c081(0x144))/0x7)+-parseInt(_0x10c081(0x13c))/0x8*(-parseInt(_0x10c081(0x131))/0x9)+-parseInt(_0x10c081(0x136))/0xa+parseInt(_0x10c081(0x137))/0xb;if(_0x477c7e===_0x5a45b3)break;else _0x265533['push'](_0x265533['shift']());}catch(_0x44c7fc){_0x265533['push'](_0x265533['shift']());}}}(_0xe060,0x495f9));import{ListItemView as _0x1b7c64,ListView as _0x542b55,View as _0x3cf95c}from'ckeditor5/src/ui.js';import{AIChatShortcutView as _0x466788}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x3cf95c{[_0x514f31(0x12f)];constructor(_0x17fe33,_0x113648){const _0x55565d=_0x514f31;super(_0x17fe33);const _0x4fc84d=_0x113648[_0x55565d(0x141)](_0x1a926e=>{const _0xb2f9d6=_0x55565d,_0x970145=new _0x1b7c64(this[_0xb2f9d6(0x139)]),_0x24232c=new _0x466788(this[_0xb2f9d6(0x139)],_0x1a926e);return _0x970145[_0xb2f9d6(0x13a)][_0xb2f9d6(0x13e)](_0x24232c),_0x24232c[_0xb2f9d6(0x130)](_0xb2f9d6(0x142))['to'](this),_0x970145;});this[_0x55565d(0x12f)]=new _0x542b55(this[_0x55565d(0x139)]),this[_0x55565d(0x12f)][_0x55565d(0x13b)][_0x55565d(0x140)](_0x4fc84d),this[_0x55565d(0x13f)]({'tag':_0x55565d(0x135),'attributes':{'class':['ck',_0x55565d(0x12e)]},'children':[this[_0x55565d(0x12f)]]});}}function _0xe060(){const _0x40ddb5=['12RqEviS','30895EjKkFo','3gXMjvF','div','3001610TczahB','13878975HtttsG','824960JYzyLA','locale','children','items','5392stwoEn','492015gssZhU','add','setTemplate','addMany','map','execute','6rdKASs','1621137vMtWqj','ck-ai-chat-shortcuts','listView','delegate','3303hXYoln'];_0xe060=function(){return _0x40ddb5;};return _0xe060();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_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(_0x3c717d,_0x6b07a4){const _0xd1b810=_0x1770,_0x2d4f8f=_0x3c717d();while(!![]){try{const _0x21443b=parseInt(_0xd1b810(0x9e))/0x1+-parseInt(_0xd1b810(0x9f))/0x2*(-parseInt(_0xd1b810(0xa7))/0x3)+-parseInt(_0xd1b810(0xa3))/0x4*(parseInt(_0xd1b810(0x97))/0x5)+parseInt(_0xd1b810(0xa4))/0x6+parseInt(_0xd1b810(0x9c))/0x7+-parseInt(_0xd1b810(0xa5))/0x8+-parseInt(_0xd1b810(0xa0))/0x9*(-parseInt(_0xd1b810(0x96))/0xa);if(_0x21443b===_0x6b07a4)break;else _0x2d4f8f['push'](_0x2d4f8f['shift']());}catch(_0xaaf28c){_0x2d4f8f['push'](_0x2d4f8f['shift']());}}}(_0x5d81,0x56201));import{ButtonView as _0x51e1b6}from'ckeditor5/src/ui.js';function _0x5d81(){const _0x1bb014=['ck-ai-chat-shortcut','extendTemplate','3247034HFyyBk','translate','124290iaNbQO','5958xXvzxn','5121cwNDZX','set','icon','115476TkvqHU','815772VKfUDb','3060072RXXVtF','chat','276NMAJLZ','2990JlmJHl','75yrdpti','label','review'];_0x5d81=function(){return _0x1bb014;};return _0x5d81();}function _0x1770(_0x7f7964,_0x5bb8b9){const _0x5d8137=_0x5d81();return _0x1770=function(_0x1770ee,_0x1d2081){_0x1770ee=_0x1770ee-0x96;let _0x26b7b2=_0x5d8137[_0x1770ee];return _0x26b7b2;},_0x1770(_0x7f7964,_0x5bb8b9);}import{IconAIChat as _0x36cade,IconAIReview as _0x252d95,IconAITranslate as _0x110112}from'@ckeditor/ckeditor5-icons';export class AIChatShortcutView extends _0x51e1b6{['id'];constructor(_0x4ae6b2,_0x19d5ae){const _0x14e8ba=_0x1770;super(_0x4ae6b2);const {id:_0x3d2c8f,type:_0x1fd29f,icon:_0x1068b8}=_0x19d5ae;this['id']=_0x3d2c8f,this[_0x14e8ba(0xa1)]({'label':_0x19d5ae[_0x14e8ba(0x98)],'withText':!0x0,'class':_0x14e8ba(0x9a)}),this[_0x14e8ba(0x9b)]({'attributes':{'data-cke-ai-shortcut-id':_0x19d5ae['id']}}),_0x1068b8?this[_0x14e8ba(0xa2)]=_0x1068b8:_0x14e8ba(0xa6)===_0x1fd29f?this[_0x14e8ba(0xa2)]=_0x36cade:_0x14e8ba(0x99)===_0x1fd29f?this[_0x14e8ba(0xa2)]=_0x252d95:_0x14e8ba(0x9d)===_0x1fd29f&&(this[_0x14e8ba(0xa2)]=_0x110112);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- 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 _0x34a402=_0x3242;(function(_0x5a7e68,_0x15a6d3){const _0x151b4b=_0x3242,_0x140029=_0x5a7e68();while(!![]){try{const _0x3b572=-parseInt(_0x151b4b(0xdc))/0x1+-parseInt(_0x151b4b(0xa2))/0x2*(-parseInt(_0x151b4b(0x125))/0x3)+parseInt(_0x151b4b(0xb7))/0x4+-parseInt(_0x151b4b(0x112))/0x5+parseInt(_0x151b4b(0xa1))/0x6*(parseInt(_0x151b4b(0x10c))/0x7)+parseInt(_0x151b4b(0xa7))/0x8*(-parseInt(_0x151b4b(0xb9))/0x9)+-parseInt(_0x151b4b(0x12b))/0xa*(parseInt(_0x151b4b(0x11a))/0xb);if(_0x3b572===_0x15a6d3)break;else _0x140029['push'](_0x140029['shift']());}catch(_0x10015a){_0x140029['push'](_0x140029['shift']());}}}(_0x1422,0x3ba8d));import{createParser as _0x1f5e5d}from'eventsource-parser';import{ContextPlugin as _0x5ed291}from'ckeditor5/src/core.js';import{CKEditorError as _0x3323ab}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x786f6a){const _0x1a4f22=_0x3242;_0x786f6a[_0x1a4f22(0xc9)]=_0x1a4f22(0xaf),_0x786f6a[_0x1a4f22(0xde)]=_0x1a4f22(0xc5),_0x786f6a[_0x1a4f22(0x116)]=_0x1a4f22(0xb6),_0x786f6a[_0x1a4f22(0xf8)]=_0x1a4f22(0xca),_0x786f6a[_0x1a4f22(0xed)]=_0x1a4f22(0xc8),_0x786f6a[_0x1a4f22(0x111)]=_0x1a4f22(0xad),_0x786f6a[_0x1a4f22(0x135)]=_0x1a4f22(0xf0),_0x786f6a[_0x1a4f22(0xd0)]=_0x1a4f22(0xf1);}(AIActionsNames||(AIActionsNames={}));function _0x3242(_0x41a387,_0x3e25ec){const _0x142272=_0x1422();return _0x3242=function(_0x32428f,_0x11ef45){_0x32428f=_0x32428f-0xa1;let _0x249e02=_0x142272[_0x32428f];return _0x249e02;},_0x3242(_0x41a387,_0x3e25ec);}export class AIConnector extends _0x5ed291{[_0x34a402(0x110)];[_0x34a402(0xe8)];[_0x34a402(0xb2)];static get[_0x34a402(0xd5)](){const _0x4ee583=_0x34a402;return[_0x4ee583(0xa6)];}static get[_0x34a402(0xff)](){const _0x377fc8=_0x34a402;return _0x377fc8(0x105);}static get[_0x34a402(0xe9)](){return!0x0;}static get[_0x34a402(0x103)](){return!0x0;}constructor(_0x21e3bc){const _0x23367b=_0x34a402;super(_0x21e3bc),this[_0x23367b(0x113)][_0x23367b(0xba)][_0x23367b(0x12c)](_0x23367b(0xe2),_0x23367b(0xf5)),this[_0x23367b(0x110)]=this[_0x23367b(0x113)][_0x23367b(0xba)][_0x23367b(0xe7)](_0x23367b(0xe2)),this[_0x23367b(0xe8)]=null,this[_0x23367b(0xb2)]=new TextDecoder();}[_0x34a402(0x107)](){const _0x4895db=_0x34a402,_0x1e7742=this[_0x4895db(0x113)][_0x4895db(0xd3)][_0x4895db(0xe7)](_0x4895db(0xa6));if(!_0x1e7742[_0x4895db(0xb0)])throw new _0x3323ab(_0x4895db(0xbf),this);this[_0x4895db(0xe8)]=_0x1e7742[_0x4895db(0xb0)];}[_0x34a402(0xd4)](_0x21d082,_0x3e4116){const _0x22dda4=_0x34a402,_0x9d37e1=this[_0x22dda4(0x131)](_0x22dda4(0x10d),_0x22dda4(0x119),{'id':_0x21d082,'group':_0x3e4116});return{'getConversation':async()=>(await _0x9d37e1[_0x22dda4(0xcc)])[_0x22dda4(0xa4)](),'abortController':_0x9d37e1[_0x22dda4(0xf2)]};}[_0x34a402(0x11c)]({message:_0x4fbfb6,conversationId:_0x9421ee,parts:_0x1868a4,capabilities:_0x2ef921,model:_0x4e1e8f,attributes:_0x49dda3}){const _0x39cb62=_0x34a402,_0x59f5d1={'prompt':_0x4fbfb6,'content':_0x1868a4,'model':_0x4e1e8f,..._0x2ef921&&{'capabilities':_0x2ef921},..._0x49dda3&&{'attributes':_0x49dda3}},_0x5b9a71=this[_0x39cb62(0x131)](_0x39cb62(0xf3)+_0x9421ee+_0x39cb62(0xf6),_0x39cb62(0x119),_0x59f5d1);return{'getStream':async()=>{const _0x1be60d=_0x39cb62,_0x1896a1=(await _0x5b9a71[_0x1be60d(0xcc)])[_0x1be60d(0x124)];return this[_0x1be60d(0xe1)](_0x1896a1);},'abortController':_0x5b9a71[_0x39cb62(0xf2)]};}[_0x34a402(0xdf)]({content:_0x1f574a,message:_0x30fa35,model:_0x58aa7f,outputFormat:_0x5cf744}){const _0x2874e0=_0x34a402,_0x41e27b={'content':[{'type':_0x2874e0(0xfc),'content':_0x1f574a}],'prompt':_0x30fa35,'model':_0x58aa7f,'outputFormat':_0x5cf744},_0x3d5a79=this[_0x2874e0(0x131)](_0x2874e0(0xe0),_0x2874e0(0x119),_0x41e27b);return{'getStream':async()=>{const _0x22ff1b=_0x2874e0,_0x4a10ec=(await _0x3d5a79[_0x22ff1b(0xcc)])[_0x22ff1b(0x124)];return this[_0x22ff1b(0xe1)](_0x4a10ec);},'abortController':_0x3d5a79[_0x2874e0(0xf2)]};}[_0x34a402(0x136)]({actionName:_0x4e6bb1,content:_0x4af840,args:_0x1f4a8a}){const _0x3048df=_0x34a402,_0xb1573a={'content':[{'type':_0x3048df(0xfc),'content':_0x4af840}],'args':_0x1f4a8a},_0x3894d4=this[_0x3048df(0x131)](_0x3048df(0xdd)+_0x4e6bb1+_0x3048df(0x134),_0x3048df(0x119),_0xb1573a);return{'getStream':async()=>{const _0x340f50=_0x3048df,_0x2063c8=(await _0x3894d4[_0x340f50(0xcc)])[_0x340f50(0x124)];return this[_0x340f50(0xe1)](_0x2063c8);},'abortController':_0x3894d4[_0x3048df(0xf2)]};}[_0x34a402(0x118)](_0x385d6a,_0x25d4a6,_0x342e9d){const _0x6e4e22=_0x34a402,_0x5ba5a3=new FormData();_0x5ba5a3[_0x6e4e22(0xce)](_0x6e4e22(0xe5),_0x25d4a6,_0x25d4a6[_0x6e4e22(0xfd)]),_0x342e9d&&_0x5ba5a3[_0x6e4e22(0xce)](_0x6e4e22(0xa8),JSON[_0x6e4e22(0x11f)](_0x342e9d));const _0x38aecb=this[_0x6e4e22(0x131)](_0x6e4e22(0xf3)+_0x385d6a+_0x6e4e22(0xd7),_0x6e4e22(0x119),_0x5ba5a3);return{'getId':async()=>(await _0x38aecb[_0x6e4e22(0xcc)])[_0x6e4e22(0xa4)](),'abortController':_0x38aecb[_0x6e4e22(0xf2)]};}[_0x34a402(0x12e)](_0x14e8ed,_0x8fc5cc){const _0x17dd0a=_0x34a402,_0x61f3ac=this[_0x17dd0a(0x131)](_0x17dd0a(0xf3)+_0x14e8ed+_0x17dd0a(0x102)+_0x8fc5cc,_0x17dd0a(0x101));return{'getDocument':async()=>(await _0x61f3ac[_0x17dd0a(0xcc)])[_0x17dd0a(0xa4)](),'abortController':_0x61f3ac[_0x17dd0a(0xf2)]};}[_0x34a402(0x115)](_0x490228,_0x90bff1,_0x3623ca){const _0x237cb9=_0x34a402,_0x4ae75e={'content':_0x90bff1};_0x3623ca&&(_0x4ae75e[_0x237cb9(0xa8)]=_0x3623ca);const _0x148ab2=this[_0x237cb9(0x131)](_0x237cb9(0xf3)+_0x490228+_0x237cb9(0x11d),_0x237cb9(0x119),_0x4ae75e);return{'getId':async()=>(await _0x148ab2[_0x237cb9(0xcc)])[_0x237cb9(0xa4)](),'abortController':_0x148ab2[_0x237cb9(0xf2)]};}[_0x34a402(0xee)](_0x59faff,_0x3f6b12={}){const _0x26f55a=_0x34a402,_0x135518=new URLSearchParams();_0x135518[_0x26f55a(0xce)](_0x26f55a(0xc3),_0x59faff),_0x135518[_0x26f55a(0xce)](_0x26f55a(0x11b),!0x1!==_0x3f6b12[_0x26f55a(0x11b)]?_0x26f55a(0x127):_0x26f55a(0x10f)),_0x135518[_0x26f55a(0xce)](_0x26f55a(0x129),_0x3f6b12[_0x26f55a(0x129)]?_0x3f6b12[_0x26f55a(0x129)][_0x26f55a(0xaa)]():_0x26f55a(0x108)),_0x135518[_0x26f55a(0xce)](_0x26f55a(0x100),_0x3f6b12[_0x26f55a(0x100)]?_0x3f6b12[_0x26f55a(0x100)]:_0x26f55a(0xcd)),_0x135518[_0x26f55a(0xce)](_0x26f55a(0xfa),_0x3f6b12[_0x26f55a(0xfa)]?_0x3f6b12[_0x26f55a(0xfa)]:_0x26f55a(0x132));const _0x255873=this[_0x26f55a(0x131)](_0x26f55a(0xec)+_0x135518[_0x26f55a(0xaa)](),_0x26f55a(0x101));return{'getConversations':async()=>{const _0x8ae2c0=_0x26f55a,_0x3903f3=await _0x255873[_0x8ae2c0(0xcc)];return(await _0x3903f3[_0x8ae2c0(0xa4)]())[_0x8ae2c0(0xd9)];},'abortController':_0x255873[_0x26f55a(0xf2)]};}[_0x34a402(0xfb)](_0x1b12f3){const _0x5efd5d=_0x34a402,_0x4f39e9=this[_0x5efd5d(0x131)](_0x5efd5d(0xf3)+_0x1b12f3,_0x5efd5d(0xb8));return{'execute':async()=>{const _0x322b72=_0x5efd5d;await _0x4f39e9[_0x322b72(0xcc)];},'abortController':_0x4f39e9[_0x5efd5d(0xf2)]};}[_0x34a402(0x121)](_0x1ebacf,_0x2ab07e){const _0x4ffbc7=_0x34a402,_0x4c1816=this[_0x4ffbc7(0x131)](_0x4ffbc7(0xf3)+_0x1ebacf,_0x4ffbc7(0x130),_0x2ab07e);return{'getResult':async()=>(await _0x4c1816[_0x4ffbc7(0xcc)],_0x2ab07e),'abortController':_0x4c1816[_0x4ffbc7(0xf2)]};}[_0x34a402(0x11e)](_0x2fac0e){const _0x571810=_0x34a402,_0x4ed444=this[_0x571810(0x131)](_0x571810(0xf3)+_0x2fac0e,_0x571810(0x101));return{'getConversation':async()=>(await _0x4ed444[_0x571810(0xcc)])[_0x571810(0xa4)](),'abortController':_0x4ed444[_0x571810(0xf2)]};}[_0x34a402(0x10a)](_0xd7a401){const _0x2525f5=_0x34a402,_0x28e015=this[_0x2525f5(0x131)](_0x2525f5(0xf3)+_0xd7a401+_0x2525f5(0xf6),_0x2525f5(0x101));return{'getMessages':async()=>{const _0x19a6d3=_0x2525f5,_0x4ce4f0=await _0x28e015[_0x19a6d3(0xcc)];return(await _0x4ce4f0[_0x19a6d3(0xa4)]())[_0x19a6d3(0xd9)];},'abortController':_0x28e015[_0x2525f5(0xf2)]};}[_0x34a402(0xbb)](_0x2e0fe7,_0x59d6e,_0x21375e){const _0x170d45=_0x34a402,_0x23c454=this[_0x170d45(0x131)](_0x170d45(0xf3)+_0x2e0fe7+_0x170d45(0xd8),_0x170d45(0x119),{'url':_0x59d6e,'attributes':_0x21375e});return{'getId':async()=>(await _0x23c454[_0x170d45(0xcc)])[_0x170d45(0xa4)](),'abortController':_0x23c454[_0x170d45(0xf2)]};}[_0x34a402(0x128)](_0x1d4933='en'){const _0xf22774=_0x34a402,_0x15ded4=new URLSearchParams();_0x15ded4[_0xf22774(0xce)](_0xf22774(0xc1),_0x1d4933);const _0x5072d1=_0xf22774(0xb1)+_0x15ded4[_0xf22774(0xaa)](),_0x32899a=this[_0xf22774(0x131)](_0x5072d1,_0xf22774(0x101));return{'list':async()=>await(await _0x32899a[_0xf22774(0xcc)])[_0xf22774(0xa4)](),'abortController':_0x32899a[_0xf22774(0xf2)]};}[_0x34a402(0xb5)](_0x181475,_0x3e3cca){const _0x510b5c=_0x34a402,_0x4e976a=this[_0x510b5c(0x131)](_0x510b5c(0xf3)+_0x181475+_0x510b5c(0xa9)+_0x3e3cca,_0x510b5c(0xb8));return{'execute':async()=>{const _0x3e4884=_0x510b5c;await _0x4e976a[_0x3e4884(0xcc)];},'abortController':_0x4e976a[_0x510b5c(0xf2)]};}[_0x34a402(0xae)](_0x587826,_0xbf7c99){const _0x4f0525=_0x34a402,_0x165314=this[_0x4f0525(0x131)](_0x4f0525(0xf3)+_0x587826+_0x4f0525(0x102)+_0xbf7c99,_0x4f0525(0xb8));return{'execute':async()=>{const _0x232d0b=_0x4f0525;await _0x165314[_0x232d0b(0xcc)];},'abortController':_0x165314[_0x4f0525(0xf2)]};}[_0x34a402(0xda)](_0x3e451e,_0x221be7){const _0x145ead=_0x34a402,_0x425ad0=this[_0x145ead(0x131)](_0x145ead(0xf3)+_0x3e451e+_0x145ead(0xe6)+_0x221be7,_0x145ead(0xb8));return{'execute':async()=>{const _0x522ba=_0x145ead;await _0x425ad0[_0x522ba(0xcc)];},'abortController':_0x425ad0[_0x145ead(0xf2)]};}[_0x34a402(0x12a)]({reviewName:_0x26e9ff,content:_0x5d125e,args:_0x2ca4c4}){const _0x2e5e4e=_0x34a402,_0x2be698=this[_0x2e5e4e(0x131)](_0x2e5e4e(0x104)+_0x26e9ff+_0x2e5e4e(0x134),_0x2e5e4e(0x119),{'content':[{'type':_0x2e5e4e(0xfc),'content':_0x5d125e}],'args':_0x2ca4c4});return{'getStream':async()=>{const _0x37a423=_0x2e5e4e,_0x5d7c8b=(await _0x2be698[_0x37a423(0xcc)])[_0x37a423(0x124)];return this[_0x37a423(0xe1)](_0x5d7c8b);},'abortController':_0x2be698[_0x2e5e4e(0xf2)]};}[_0x34a402(0xcb)]({content:_0x52cfc6,prompt:_0x48eee0,model:_0x39e6b8}){const _0x70a14=_0x34a402,_0x35eb52=this[_0x70a14(0x131)](_0x70a14(0xab),_0x70a14(0x119),{'content':[{'type':_0x70a14(0xfc),'content':_0x52cfc6}],'prompt':_0x48eee0,'model':_0x39e6b8});return{'getStream':async()=>{const _0x571003=_0x70a14,_0x20d36d=(await _0x35eb52[_0x571003(0xcc)])[_0x571003(0x124)];return this[_0x571003(0xe1)](_0x20d36d);},'abortController':_0x35eb52[_0x70a14(0xf2)]};}[_0x34a402(0xd6)](_0x22c077,_0x474f81,_0x3952ab){const _0x548990=_0x34a402,_0x7e3ac6=this[_0x548990(0x131)](_0x548990(0xf3)+_0x22c077+_0x548990(0xc0)+_0x474f81+_0x548990(0xb4),_0x548990(0xd1),{'positiveCount':_0x3952ab[_0x548990(0x114)],'totalCount':_0x3952ab[_0x548990(0xf7)],'modificationId':_0x3952ab[_0x548990(0xea)]});return{'execute':async()=>{const _0x28a1b6=_0x548990;await _0x7e3ac6[_0x28a1b6(0xcc)];},'abortController':_0x7e3ac6[_0x548990(0xf2)]};}[_0x34a402(0xdb)](_0x14596f,_0x2f45e0,_0x3156cc){const _0x405ab9=_0x34a402,_0x37526b=this[_0x405ab9(0x131)](_0x405ab9(0xdd)+_0x14596f+_0x405ab9(0x126)+_0x2f45e0+_0x405ab9(0xb4),_0x405ab9(0xd1),{'positiveCount':_0x3156cc[_0x405ab9(0x114)],'totalCount':_0x3156cc[_0x405ab9(0xf7)]});return{'execute':async()=>{const _0x250bfc=_0x405ab9;await _0x37526b[_0x250bfc(0xcc)];},'abortController':_0x37526b[_0x405ab9(0xf2)]};}[_0x34a402(0x106)](_0x421267,_0x9faee){const _0x40d54d=_0x34a402,_0x5dc8d8=this[_0x40d54d(0x131)](_0x40d54d(0xcf)+_0x421267+_0x40d54d(0xb4),_0x40d54d(0xd1),{'positiveCount':_0x9faee[_0x40d54d(0x114)],'totalCount':_0x9faee[_0x40d54d(0xf7)]});return{'execute':async()=>{const _0x5057c1=_0x40d54d;await _0x5dc8d8[_0x5057c1(0xcc)];},'abortController':_0x5dc8d8[_0x40d54d(0xf2)]};}[_0x34a402(0x117)](_0x116e81,_0xc46215,_0x38bb7a,_0x3660b5){const _0xd0edde=_0x34a402,_0xf35839=this[_0xd0edde(0x131)](_0xd0edde(0x104)+_0x116e81+_0xd0edde(0x126)+_0xc46215+_0xd0edde(0xb4),_0xd0edde(0xd1),{'positiveCount':_0x38bb7a[_0xd0edde(0x114)],'totalCount':_0x38bb7a[_0xd0edde(0xf7)],'dataId':_0x3660b5});return{'execute':async()=>{const _0x343cca=_0xd0edde;await _0xf35839[_0x343cca(0xcc)];},'abortController':_0xf35839[_0xd0edde(0xf2)]};}[_0x34a402(0xc2)](_0x28b026,_0x45bfc6,_0x3d2e6b){const _0x36a03b=_0x34a402,_0x929da3=this[_0x36a03b(0x131)](_0x36a03b(0xb3)+_0x28b026+_0x36a03b(0xb4),_0x36a03b(0xd1),{'positiveCount':_0x45bfc6[_0x36a03b(0x114)],'totalCount':_0x45bfc6[_0x36a03b(0xf7)],'dataId':_0x3d2e6b});return{'execute':async()=>{const _0x26efde=_0x36a03b;await _0x929da3[_0x26efde(0xcc)];},'abortController':_0x929da3[_0x36a03b(0xf2)]};}[_0x34a402(0x131)](_0x31bb96,_0x165df9,_0x38694e){const _0x4b1470=_0x34a402,_0x1f7f11=new AbortController(),_0x56b28e=_0x38694e instanceof FormData,_0x193fc0={'Authorization':_0x4b1470(0xef)+this[_0x4b1470(0xe8)]?.[_0x4b1470(0x122)]};_0x38694e&&!_0x56b28e&&(_0x193fc0[_0x4b1470(0xfe)]=_0x4b1470(0xe4));const _0x34ebc6={'method':_0x165df9,'headers':_0x193fc0,'signal':_0x1f7f11[_0x4b1470(0xbc)]};return _0x38694e&&(_0x34ebc6[_0x4b1470(0x124)]=_0x56b28e?_0x38694e:JSON[_0x4b1470(0x11f)](_0x38694e)),{'request':fetch(''+this[_0x4b1470(0x110)]+_0x31bb96,_0x34ebc6)[_0x4b1470(0x12f)](_0x3397ae=>{const _0x32c06d=_0x4b1470;this[_0x32c06d(0x133)](_0x3397ae);})[_0x4b1470(0x123)](_0x107387=>_0x107387['ok']?_0x107387:_0x107387[_0x4b1470(0xa4)]()[_0x4b1470(0x123)](_0x1fafd7=>{const _0x59f644=_0x4b1470;throw{'url':this[_0x59f644(0x110)],'path':_0x31bb96,'method':_0x165df9,'body':_0x38694e,'status':(_0x107387||{})[_0x59f644(0xbe)],'statusText':(_0x107387||{})[_0x59f644(0x120)],'code':_0x1fafd7[_0x59f644(0xbd)],'message':_0x1fafd7[_0x59f644(0xac)],'traceId':_0x1fafd7[_0x59f644(0xe3)]};})),'abortController':_0x1f7f11};}async*[_0x34a402(0xe1)](_0x4ce374){const _0x3ba0c9=_0x34a402,_0x9d5aec=[],_0xe5412f=_0x4ce374[_0x3ba0c9(0xc7)](),_0x19b223=_0x1f5e5d({'onError':_0x5a8512=>{const _0x221c63=_0x3ba0c9;this[_0x221c63(0x133)](_0x5a8512);},'onEvent':_0x3831b1=>{const _0x9c3ffd=_0x3ba0c9;_0x3831b1[_0x9c3ffd(0x10e)]=JSON[_0x9c3ffd(0xa3)](_0x3831b1[_0x9c3ffd(0x10e)]),_0x9d5aec[_0x9c3ffd(0xd2)](_0x3831b1);}});try{let _0x4cd3e8=!0x1;for(;!_0x4cd3e8;){const {done:_0x54e56b,value:_0x30a25e}=await _0xe5412f[_0x3ba0c9(0xc4)]();_0x54e56b&&(_0x4cd3e8=!0x0),_0x19b223[_0x3ba0c9(0xc6)](this[_0x3ba0c9(0xb2)][_0x3ba0c9(0x109)](_0x30a25e,{'stream':!0x0})),yield*_0x9d5aec,_0x9d5aec[_0x3ba0c9(0xeb)]=0x0;}}catch(_0x40c106){this[_0x3ba0c9(0x133)](_0x40c106);}finally{_0xe5412f[_0x3ba0c9(0xa5)](),_0x19b223[_0x3ba0c9(0x10b)]();}}[_0x34a402(0x133)](_0x5ec067){const _0x5a79e1=_0x34a402;if(_0x5ec067 instanceof _0x3323ab)throw _0x5ec067;if(_0x5ec067 instanceof Error&&_0x5a79e1(0xf9)===_0x5ec067[_0x5a79e1(0xfd)])throw new _0x3323ab(_0x5a79e1(0xf4),this,{'originalError':_0x5ec067});throw new _0x3323ab(_0x5a79e1(0x12d),this,{'originalError':_0x5ec067});}}function _0x1422(){const _0x4e810e=['deleteFile','improve-writing','1354776XNckjw','DELETE','765315TjEvFS','config','uploadUrl','signal','code','status','ai-missing-token','/messages/','language','upsertCustomAIReviewRating','group','read','fix-grammar','feed','getReader','make-shorter','CONTINUE','make-longer','callCustomReview','request','createdAt','append','/actions/custom/calls/','TRANSLATE','PUT','push','plugins','startConversation','requires','upsertAIChatRating','/files','/web-resources','items','deleteWebResource','upsertAIActionRating','448674juBdCG','/actions/system/','FIX_GRAMMAR','executeCustomAction','/actions/custom/calls','_getStreamReader','ai.serviceUrl','traceId','application/json','file','/web-resources/','get','_token','isOfficialPlugin','modificationId','length','/conversations?','MAKE_SHORTER','fetchConversations','Bearer\x20','make-tone-formal','translate','abortController','/conversations/','ai-request-aborted','https://ai.cke-cs.com/v1','/messages','totalCount','MAKE_LONGER','AbortError','order','deleteConversation','text','name','Content-Type','pluginName','sortBy','GET','/documents/','isPremiumPlugin','/reviews/system/','AIConnector','upsertCustomAIActionRating','init','100','decode','fetchConversationMessages','reset','7pXwWGb','/conversations','data','false','_apiUrl','MAKE_TONE_CASUAL','917330TjTHXF','context','positiveCount','uploadDocument','IMPROVE_WRITING','upsertAIReviewRating','uploadFile','POST','33ADLfwg','excludeEmpty','queryAssistant','/documents','fetchConversation','stringify','statusText','updateConversation','value','then','body','232602UNgsKe','/calls/','true','getModels','limit','callSystemReview','437050PFUBst','define','ai-request-failed','fetchDocument','catch','PATCH','_sendApiRequest','desc','_handleError','/calls','MAKE_TONE_FORMAL','executeAction','2752962NznyQs','12mxuCEM','parse','json','releaseLock','CloudServices','24kwGOdf','attributes','/files/','toString','/reviews/custom/calls','message','make-tone-casual','deleteDocument','continue','token','/models/1?','_decoder','/reviews/custom/calls/','/ratings'];_0x1422=function(){return _0x4e810e;};return _0x1422();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- 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 _0x333953=_0x4a24;(function(_0x26c32b,_0xe6f12f){const _0x33090c=_0x4a24,_0x55b48f=_0x26c32b();while(!![]){try{const _0x3ff6ea=parseInt(_0x33090c(0x15c))/0x1+-parseInt(_0x33090c(0x17d))/0x2*(-parseInt(_0x33090c(0x177))/0x3)+-parseInt(_0x33090c(0x133))/0x4*(-parseInt(_0x33090c(0x126))/0x5)+-parseInt(_0x33090c(0x135))/0x6+parseInt(_0x33090c(0x11f))/0x7*(-parseInt(_0x33090c(0x132))/0x8)+parseInt(_0x33090c(0x179))/0x9+parseInt(_0x33090c(0x146))/0xa*(parseInt(_0x33090c(0x147))/0xb);if(_0x3ff6ea===_0xe6f12f)break;else _0x55b48f['push'](_0x55b48f['shift']());}catch(_0x44e257){_0x55b48f['push'](_0x55b48f['shift']());}}}(_0x362b,0x400d7));import{ViewDowncastWriter as _0x1c7e12}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x448157,Editor as _0x26f8f5}from'ckeditor5/src/core.js';import{uid as _0x114844}from'ckeditor5/src/utils.js';import{getTranslation as _0x5d2d17}from'./utils/common-translations.js';import{getEditorFromContext as _0x50a5ef}from'./utils/geteditorfromcontext.js';function _0x4a24(_0x11b3a5,_0x1a97a3){const _0x362bb3=_0x362b();return _0x4a24=function(_0x4a24db,_0x417432){_0x4a24db=_0x4a24db-0x113;let _0x189f1a=_0x362bb3[_0x4a24db];return _0x189f1a;},_0x4a24(_0x11b3a5,_0x1a97a3);}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x333953(0x167);function _0x362b(){const _0x552ec5=['_getMarkersInDocumentOrder','sessionId','toView',':end></','htmlWriter','_integrateEditor','getDocumentData',':start>','_nextDataId','createRange','has','join','RealTimeCollaborationClient','isPremiumPlugin','3INghLT','_setDataIdsOnChildren','1647369TbrVjl','ai.models.showModelSelector','afterInit','emptyElement','50708ImOxzj','sort','ready','selection','ai-selection:','processor','getMarkersGroup','version','floor','data-id','ck-ai-assistant-ui_theme','getItems','end','getRoot','markerToElement','convertAiChatSelectionMarker','conversion','schema','getStart','isOfficialPlugin','push','getSelectionText','editingDowncast','1772428eeCwMX','length','editing','toData','isOpening','_getDocumentDataStringFromView','getRanges','382570WIkbvx','getLastMatchingPosition','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','listenTo','dataDowncast','editors','trim','for','_setOutputDataProcessor','setAttribute','markerToHighlight','element','16QpfrzC','12ZeHJab','name','2468220FRfJME',':end>','document','ck-fake-ai-selection','isContent','hideFakeVisualSelection','isBefore','getHtml','markers','createUIElement','removeAllRanges','viewToDom','plugins','markerName','showFakeVisualSelection','substring','add','1406310EgVosy','33DuxxDt','indexOf','view','random','_outputDataProcessor','modelToDataWithIds','$textProxy','from','isAtEnd','pluginName','get','isAfter','locale','context','model','containerElement','_displayedFakeSelectionLocked',':start></','domConverter','_displayedFakeSelectionId','addMarker','320307gGTcNv','config','AIEditing','start','define','removeMarker','getSelection','fromCharCode','change','data','_sessionId','ai-selection','getChildren'];_0x362b=function(){return _0x552ec5;};return _0x362b();}export class AIEditing extends _0x448157{constructor(_0x35a380){const _0x4d4f3a=_0x333953;super(_0x35a380),this[_0x4d4f3a(0x154)][_0x4d4f3a(0x15d)][_0x4d4f3a(0x160)](_0x4d4f3a(0x17a),!0x0);}[_0x333953(0x14b)];[_0x333953(0x15a)]=null;[_0x333953(0x157)]=!0x1;[_0x333953(0x166)];static get[_0x333953(0x150)](){const _0x2df982=_0x333953;return _0x2df982(0x15e);}static get[_0x333953(0x11b)](){return!0x0;}static get[_0x333953(0x176)](){return!0x0;}get[_0x333953(0x16a)](){const _0x8e4c5c=_0x333953;if(!this[_0x8e4c5c(0x166)]){const _0x95d4dd=_0x50a5ef(this[_0x8e4c5c(0x154)]),_0x406490=_0x95d4dd[_0x8e4c5c(0x141)][_0x8e4c5c(0x173)](_0x8e4c5c(0x175))&&_0x95d4dd[_0x8e4c5c(0x141)][_0x8e4c5c(0x151)](_0x8e4c5c(0x175))[_0x8e4c5c(0x16a)];this[_0x8e4c5c(0x166)]=_0x406490||_0x114844();}return this[_0x8e4c5c(0x166)];}async[_0x333953(0x16f)](){const _0x200d55=_0x333953,_0x40d09c=_0x50a5ef(this[_0x200d55(0x154)]),_0x201019=_0x40d09c[_0x200d55(0x155)],_0x60d13d=_0x40d09c[_0x200d55(0x165)][_0x200d55(0x16b)](_0x201019[_0x200d55(0x137)][_0x200d55(0x115)](),{'convertAiChatSelectionMarker':!0x0}),_0x5cb56c=new _0x1c7e12(_0x40d09c[_0x200d55(0x121)][_0x200d55(0x149)][_0x200d55(0x137)]);this[_0x200d55(0x178)](_0x60d13d,_0x5cb56c);let _0x52be90=await this[_0x200d55(0x124)](_0x60d13d);const _0x37d3a2=this[_0x200d55(0x169)](),_0x370058=[];for(const _0x34389f of _0x37d3a2){const _0x5acfc1='<'+_0x34389f[_0x200d55(0x134)]+_0x200d55(0x158)+_0x34389f[_0x200d55(0x134)]+_0x200d55(0x170),_0x1b3f8f=_0x52be90[_0x200d55(0x148)](_0x5acfc1);_0x52be90=_0x52be90[_0x200d55(0x144)](0x0,_0x1b3f8f)+_0x52be90[_0x200d55(0x144)](_0x1b3f8f+_0x5acfc1[_0x200d55(0x120)]);const _0x4fd3d0='<'+_0x34389f[_0x200d55(0x134)]+_0x200d55(0x16c)+_0x34389f[_0x200d55(0x134)]+_0x200d55(0x136),_0x111bb4=_0x52be90[_0x200d55(0x148)](_0x4fd3d0);_0x52be90=_0x52be90[_0x200d55(0x144)](0x0,_0x111bb4)+_0x52be90[_0x200d55(0x144)](_0x111bb4+_0x4fd3d0[_0x200d55(0x120)]),_0x370058[_0x200d55(0x11c)]({'markerName':_0x34389f[_0x200d55(0x134)],'start':_0x1b3f8f,'end':_0x111bb4,'htmlFragment':_0x52be90[_0x200d55(0x144)](_0x1b3f8f,_0x111bb4)});}return{'content':_0x52be90,'version':_0x40d09c[_0x200d55(0x155)][_0x200d55(0x137)][_0x200d55(0x184)],'sessionId':this[_0x200d55(0x16a)],'selections':_0x370058};}async[_0x333953(0x17b)](){const _0x511e7e=_0x333953;this[_0x511e7e(0x154)]instanceof _0x26f8f5?this[_0x511e7e(0x16e)](this[_0x511e7e(0x154)]):this[_0x511e7e(0x129)](this[_0x511e7e(0x154)][_0x511e7e(0x12b)],_0x511e7e(0x145),(_0x3f884c,_0x5285b7)=>{const _0x4d4f11=_0x511e7e;_0x5285b7['on'](_0x4d4f11(0x17f),()=>{const _0x246b34=_0x4d4f11;this[_0x246b34(0x16e)](_0x5285b7);});});}[_0x333953(0x12e)](_0x508f31){const _0x4bb25=_0x333953;this[_0x4bb25(0x14b)]=_0x508f31;}async[_0x333953(0x124)](_0x234d78){const _0x5c2b58=_0x333953;let _0x7005cf;const _0xd35b88=_0x50a5ef(this[_0x5c2b58(0x154)]);if(this[_0x5c2b58(0x14b)]){const _0x333a52=_0xd35b88[_0x5c2b58(0x165)][_0x5c2b58(0x182)][_0x5c2b58(0x159)][_0x5c2b58(0x140)](_0x234d78),_0x1789df=await this[_0x5c2b58(0x14b)](_0x333a52);_0x7005cf=_0xd35b88[_0x5c2b58(0x165)][_0x5c2b58(0x182)][_0x5c2b58(0x16d)][_0x5c2b58(0x13c)](_0x1789df);}else _0x7005cf=_0xd35b88[_0x5c2b58(0x165)][_0x5c2b58(0x182)][_0x5c2b58(0x122)](_0x234d78);return _0x7005cf;}[_0x333953(0x16e)](_0x32b633){const _0x44cf1e=_0x333953;_0x32b633[_0x44cf1e(0x118)][_0x44cf1e(0x12d)](_0x44cf1e(0x11e))[_0x44cf1e(0x130)]({'model':_0x44cf1e(0x167),'view':{'classes':[_0x44cf1e(0x138),_0x44cf1e(0x187)],'priority':0xc}}),_0x32b633[_0x44cf1e(0x118)][_0x44cf1e(0x12d)](_0x44cf1e(0x12a))[_0x44cf1e(0x116)]({'model':_0x44cf1e(0x167),'view':(_0x36bfd8,{writer:_0x2216bc,options:_0x3c30ce})=>_0x3c30ce[_0x44cf1e(0x117)]?_0x2216bc[_0x44cf1e(0x13e)](_0x36bfd8[_0x44cf1e(0x142)]+':'+(_0x36bfd8[_0x44cf1e(0x123)]?_0x44cf1e(0x15f):_0x44cf1e(0x114))):null});}[_0x333953(0x143)](_0xbeda4d,_0x2d8b44,_0x3fca54=!0x1,_0x2b54d1=!0x1){const _0x14ba29=_0x333953;if(this[_0x14ba29(0x157)]&&!_0x2b54d1)return!0x1;const _0x563aad=_0x50a5ef(this[_0x14ba29(0x154)])[_0x14ba29(0x155)];return _0x563aad[_0x14ba29(0x164)](_0x5d66d3=>{const _0x2319e5=_0x14ba29;this[_0x2319e5(0x15a)]&&this[_0x2319e5(0x13a)](this[_0x2319e5(0x15a)]),this[_0x2319e5(0x15a)]=_0x2d8b44,this[_0x2319e5(0x157)]=_0x3fca54;let _0x12a314=0x0;for(let _0x395dfc of _0xbeda4d){const _0x1aa854=_0x2319e5(0x181)+_0x12a314;if(_0x395dfc[_0x2319e5(0x15f)][_0x2319e5(0x14f)]){const _0x4c813f=_0x395dfc[_0x2319e5(0x15f)][_0x2319e5(0x127)](({item:_0x5aafa6})=>!_0x563aad[_0x2319e5(0x119)][_0x2319e5(0x139)](_0x5aafa6),{'boundaries':_0x395dfc});_0x395dfc=_0x5d66d3[_0x2319e5(0x172)](_0x4c813f,_0x395dfc[_0x2319e5(0x114)]);}_0x5d66d3[_0x2319e5(0x15b)](_0x1aa854,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x395dfc}),_0x12a314++;}}),window[_0x14ba29(0x162)]()?.[_0x14ba29(0x13f)](),!0x0;}[_0x333953(0x13a)](_0x2902b6){const _0x5f45e1=_0x333953;if(this[_0x5f45e1(0x15a)]!=_0x2902b6)return!0x1;this[_0x5f45e1(0x15a)]=null,this[_0x5f45e1(0x157)]=!0x1;const _0x41bec0=_0x50a5ef(this[_0x5f45e1(0x154)]),_0x2e643b=_0x41bec0[_0x5f45e1(0x155)][_0x5f45e1(0x13d)][_0x5f45e1(0x183)](_0x5f45e1(0x167));return _0x41bec0[_0x5f45e1(0x155)][_0x5f45e1(0x164)](_0x57c2de=>{const _0x301314=_0x5f45e1;for(const _0x49367d of _0x2e643b)_0x57c2de[_0x301314(0x161)](_0x49367d);}),!0x0;}async[_0x333953(0x14c)](_0x5ea70c){const _0x355558=_0x333953,_0x3d1c4a=_0x50a5ef(this[_0x355558(0x154)]),_0x2567df=_0x3d1c4a[_0x355558(0x165)][_0x355558(0x16b)](_0x5ea70c),_0x583fcf=new _0x1c7e12(_0x3d1c4a[_0x355558(0x121)][_0x355558(0x149)][_0x355558(0x137)]);return this[_0x355558(0x178)](_0x2567df,_0x583fcf),this[_0x355558(0x124)](_0x2567df);}[_0x333953(0x178)](_0x1ff3ca,_0x3633a0){const _0x160d4b=_0x333953;let _0x6a488d=!0x1;const _0x1f7dc5=new Set();for(const _0x4ef11d of _0x1ff3ca[_0x160d4b(0x168)]()){const _0x4c7aed=_0x4ef11d['is'](_0x160d4b(0x17c))||_0x4ef11d['is'](_0x160d4b(0x156));if(!_0x4ef11d['is'](_0x160d4b(0x131)))continue;(this[_0x160d4b(0x178)](_0x4ef11d,_0x3633a0)||_0x4c7aed)&&(_0x3633a0[_0x160d4b(0x12f)](_0x160d4b(0x186),this[_0x160d4b(0x171)](_0x1f7dc5),_0x4ef11d),_0x6a488d=!0x0);}return _0x6a488d;}[_0x333953(0x171)](_0x3236ed){const _0x55b01d=_0x333953;let _0x45447e;do{_0x45447e='';for(let _0x1e3f29=0x0;_0x1e3f29<0x4;_0x1e3f29++)_0x45447e+=String[_0x55b01d(0x163)](0x61+Math[_0x55b01d(0x185)](0x1a*Math[_0x55b01d(0x14a)]()));}while(_0x3236ed[_0x55b01d(0x173)](_0x45447e));return _0x3236ed[_0x55b01d(0x145)](_0x45447e),_0x45447e;}[_0x333953(0x11d)](){const _0x31eb2c=_0x333953,{model:_0xd79853}=_0x50a5ef(this[_0x31eb2c(0x154)]),_0x43bed4=_0xd79853[_0x31eb2c(0x137)][_0x31eb2c(0x180)],_0x153226=[];for(const _0x301658 of _0x43bed4[_0x31eb2c(0x125)]())for(const _0xacaa79 of _0x301658[_0x31eb2c(0x113)]())_0xacaa79['is'](_0x31eb2c(0x14d))?_0x153226[_0x31eb2c(0x11c)](_0xacaa79[_0x31eb2c(0x165)]):_0xacaa79['is'](_0x31eb2c(0x131))&&_0x153226[_0x31eb2c(0x120)]>0x0&&'\x20'!==_0x153226[_0x153226[_0x31eb2c(0x120)]-0x1]&&_0x153226[_0x31eb2c(0x11c)]('\x20');return _0x153226[_0x31eb2c(0x120)]?'\x22'+_0x153226[_0x31eb2c(0x174)]('')[_0x31eb2c(0x12c)]()+'\x22':_0x5d2d17(this[_0x31eb2c(0x154)][_0x31eb2c(0x153)],_0x31eb2c(0x128));}[_0x333953(0x169)](){const _0x16e88d=_0x333953,_0x5db42c=_0x50a5ef(this[_0x16e88d(0x154)])[_0x16e88d(0x155)];return Array[_0x16e88d(0x14e)](_0x5db42c[_0x16e88d(0x13d)][_0x16e88d(0x183)](_0x16e88d(0x167)))[_0x16e88d(0x17e)]((_0x1d0654,_0x37da5b)=>_0x1d0654[_0x16e88d(0x11a)]()[_0x16e88d(0x13b)](_0x37da5b[_0x16e88d(0x11a)]())?-0x1:_0x1d0654[_0x16e88d(0x11a)]()[_0x16e88d(0x152)](_0x37da5b[_0x16e88d(0x11a)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- 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 _0x4f4b(){const _0x3221a2=['getCapabilitiesRequestData','3UNcJTg','_isWebSearchEnabled','59263EhKDZJ','toggleReasoning','_isReasoningEnabled','setReasoning','4ofxeuc','24CjGRHb','init','616278eityEc','webSearch','capabilitiesUpdated','16849LEAxRc','fire','isReasoningEnabled','toggleWebSearch','34698KlHjEo','reset','1236265rbPNDL','isWebSearchEnabled','2098881Apuiyx','getCapabilitiesConfig','setWebSearch','7455620Vollpk','reasoning'];_0x4f4b=function(){return _0x3221a2;};return _0x4f4b();}const _0x3b41bc=_0x41f0;(function(_0x5c4856,_0x6f78fc){const _0x4b6eaf=_0x41f0,_0x105949=_0x5c4856();while(!![]){try{const _0x449d87=-parseInt(_0x4b6eaf(0x1dc))/0x1+-parseInt(_0x4b6eaf(0x1d0))/0x2*(-parseInt(_0x4b6eaf(0x1da))/0x3)+-parseInt(_0x4b6eaf(0x1e0))/0x4*(parseInt(_0x4b6eaf(0x1d2))/0x5)+-parseInt(_0x4b6eaf(0x1e3))/0x6+parseInt(_0x4b6eaf(0x1cc))/0x7*(parseInt(_0x4b6eaf(0x1e1))/0x8)+-parseInt(_0x4b6eaf(0x1d4))/0x9+parseInt(_0x4b6eaf(0x1d7))/0xa;if(_0x449d87===_0x6f78fc)break;else _0x105949['push'](_0x105949['shift']());}catch(_0xc35ba){_0x105949['push'](_0x105949['shift']());}}}(_0x4f4b,0x1f2ce));import{EmitterMixin as _0x29c4d5}from'ckeditor5/src/utils.js';function _0x41f0(_0x6924c3,_0x4a2c4f){const _0x4f4b12=_0x4f4b();return _0x41f0=function(_0x41f07f,_0x1d21f9){_0x41f07f=_0x41f07f-0x1ca;let _0x530de1=_0x4f4b12[_0x41f07f];return _0x530de1;},_0x41f0(_0x6924c3,_0x4a2c4f);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x3b41bc(0x1cb)];export class AICapabilities extends _0x29c4d5(){[_0x3b41bc(0x1db)];[_0x3b41bc(0x1de)];constructor(){const _0x2bb463=_0x3b41bc;super(),this[_0x2bb463(0x1db)]=!0x1,this[_0x2bb463(0x1de)]=!0x1;}[_0x3b41bc(0x1e2)](){const _0x46bfd8=_0x3b41bc;this[_0x46bfd8(0x1d1)]();}[_0x3b41bc(0x1d1)](){const _0x5213bf=_0x3b41bc;this[_0x5213bf(0x1d6)](!0x1),this[_0x5213bf(0x1df)](!0x1);}[_0x3b41bc(0x1d5)](){const _0x617300=_0x3b41bc;return{'isWebSearchEnabled':this[_0x617300(0x1db)],'isReasoningEnabled':this[_0x617300(0x1de)]};}static[_0x3b41bc(0x1d9)](_0x2645d7){const _0x346f39=_0x3b41bc,_0x1e75fe={};return _0x2645d7&&_0x2645d7[_0x346f39(0x1d3)]&&(_0x1e75fe[_0x346f39(0x1ca)]={}),_0x2645d7&&_0x2645d7[_0x346f39(0x1ce)]&&(_0x1e75fe[_0x346f39(0x1d8)]={}),_0x1e75fe;}[_0x3b41bc(0x1cf)](){const _0x391d50=_0x3b41bc;this[_0x391d50(0x1d6)](!this[_0x391d50(0x1db)]);}[_0x3b41bc(0x1dd)](){const _0x4d47c5=_0x3b41bc;this[_0x4d47c5(0x1df)](!this[_0x4d47c5(0x1de)]);}[_0x3b41bc(0x1d6)](_0x3261b5){const _0x1b9627=_0x3b41bc;_0x3261b5!==this[_0x1b9627(0x1db)]&&(this[_0x1b9627(0x1db)]=_0x3261b5,this[_0x1b9627(0x1cd)](_0x1b9627(0x1cb),this[_0x1b9627(0x1d5)]()));}[_0x3b41bc(0x1df)](_0x362fb8){const _0x33e58a=_0x3b41bc;_0x362fb8!==this[_0x33e58a(0x1de)]&&(this[_0x33e58a(0x1de)]=_0x362fb8,this[_0x33e58a(0x1cd)](_0x33e58a(0x1cb),this[_0x33e58a(0x1d5)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_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(_0xc16015,_0x2522b5){var _0x13a18b=_0x138d,_0x46b705=_0xc16015();while(!![]){try{var _0x1227a5=parseInt(_0x13a18b(0x19a))/0x1+parseInt(_0x13a18b(0x1ab))/0x2+-parseInt(_0x13a18b(0x1a8))/0x3*(parseInt(_0x13a18b(0x19d))/0x4)+parseInt(_0x13a18b(0x1a3))/0x5*(parseInt(_0x13a18b(0x1a7))/0x6)+-parseInt(_0x13a18b(0x195))/0x7+parseInt(_0x13a18b(0x1a6))/0x8+-parseInt(_0x13a18b(0x1ac))/0x9;if(_0x1227a5===_0x2522b5)break;else _0x46b705['push'](_0x46b705['shift']());}catch(_0x145667){_0x46b705['push'](_0x46b705['shift']());}}}(_0x5492,0x6c9c7));export var AIContextItemType;!function(_0x3f20d0){var _0x518cb7=_0x138d;_0x3f20d0[_0x518cb7(0x198)]=_0x518cb7(0x196),_0x3f20d0[_0x518cb7(0x1a1)]=_0x518cb7(0x1ad),_0x3f20d0[_0x518cb7(0x1a4)]=_0x518cb7(0x1a9),_0x3f20d0[_0x518cb7(0x19f)]=_0x518cb7(0x197),_0x3f20d0[_0x518cb7(0x1aa)]=_0x518cb7(0x19c),_0x3f20d0[_0x518cb7(0x19e)]=_0x518cb7(0x1a0);}(AIContextItemType||(AIContextItemType={}));function _0x5492(){var _0x582cf5=['1847238WyqEey','17565GtOdXK','document','TEXT','465280LYKKgz','1341585ggOurM','file','4054512ROCmFu','mcp-tool-context','web-resource','TOOL','MARKDOWN','124459wlIjcK','markdown','text','60aWAiuS','SELECTION','URL','selection','FILE','HTML','5idWjPR','DOCUMENT','html','4768040WcbefT'];_0x5492=function(){return _0x582cf5;};return _0x5492();}export var AIContextTextResourceType;function _0x138d(_0x3b25bd,_0x1294e2){var _0x549257=_0x5492();return _0x138d=function(_0x138d2f,_0x3a4826){_0x138d2f=_0x138d2f-0x195;var _0xdbb07d=_0x549257[_0x138d2f];return _0xdbb07d;},_0x138d(_0x3b25bd,_0x1294e2);}!function(_0x14c1c8){var _0x2760c6=_0x138d;_0x14c1c8[_0x2760c6(0x1aa)]=_0x2760c6(0x19c),_0x14c1c8[_0x2760c6(0x199)]=_0x2760c6(0x19b),_0x14c1c8[_0x2760c6(0x1a2)]=_0x2760c6(0x1a5);}(AIContextTextResourceType||(AIContextTextResourceType={}));