@ckeditor/ckeditor5-ai 47.0.0-alpha.0 → 47.0.0-alpha.1

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 (295) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index-editor.css +105 -11
  3. package/dist/index.css +105 -11
  4. package/dist/index.js +4 -4
  5. package/dist/translations/af.js +1 -1
  6. package/dist/translations/af.umd.js +1 -1
  7. package/dist/translations/ar.js +1 -1
  8. package/dist/translations/ar.umd.js +1 -1
  9. package/dist/translations/ast.js +1 -1
  10. package/dist/translations/ast.umd.js +1 -1
  11. package/dist/translations/az.js +1 -1
  12. package/dist/translations/az.umd.js +1 -1
  13. package/dist/translations/be.js +1 -1
  14. package/dist/translations/be.umd.js +1 -1
  15. package/dist/translations/bg.js +1 -1
  16. package/dist/translations/bg.umd.js +1 -1
  17. package/dist/translations/bn.js +1 -1
  18. package/dist/translations/bn.umd.js +1 -1
  19. package/dist/translations/bs.js +1 -1
  20. package/dist/translations/bs.umd.js +1 -1
  21. package/dist/translations/ca.js +1 -1
  22. package/dist/translations/ca.umd.js +1 -1
  23. package/dist/translations/cs.js +1 -1
  24. package/dist/translations/cs.umd.js +1 -1
  25. package/dist/translations/da.js +1 -1
  26. package/dist/translations/da.umd.js +1 -1
  27. package/dist/translations/de-ch.js +1 -1
  28. package/dist/translations/de-ch.umd.js +1 -1
  29. package/dist/translations/de.js +1 -1
  30. package/dist/translations/de.umd.js +1 -1
  31. package/dist/translations/el.js +1 -1
  32. package/dist/translations/el.umd.js +1 -1
  33. package/dist/translations/en-au.js +1 -1
  34. package/dist/translations/en-au.umd.js +1 -1
  35. package/dist/translations/en-gb.js +1 -1
  36. package/dist/translations/en-gb.umd.js +1 -1
  37. package/dist/translations/en.js +1 -1
  38. package/dist/translations/en.umd.js +1 -1
  39. package/dist/translations/eo.js +1 -1
  40. package/dist/translations/eo.umd.js +1 -1
  41. package/dist/translations/es-co.js +1 -1
  42. package/dist/translations/es-co.umd.js +1 -1
  43. package/dist/translations/es.js +1 -1
  44. package/dist/translations/es.umd.js +1 -1
  45. package/dist/translations/et.js +1 -1
  46. package/dist/translations/et.umd.js +1 -1
  47. package/dist/translations/eu.js +1 -1
  48. package/dist/translations/eu.umd.js +1 -1
  49. package/dist/translations/fa.js +1 -1
  50. package/dist/translations/fa.umd.js +1 -1
  51. package/dist/translations/fi.js +1 -1
  52. package/dist/translations/fi.umd.js +1 -1
  53. package/dist/translations/fr.js +1 -1
  54. package/dist/translations/fr.umd.js +1 -1
  55. package/dist/translations/gl.js +1 -1
  56. package/dist/translations/gl.umd.js +1 -1
  57. package/dist/translations/gu.js +1 -1
  58. package/dist/translations/gu.umd.js +1 -1
  59. package/dist/translations/he.js +1 -1
  60. package/dist/translations/he.umd.js +1 -1
  61. package/dist/translations/hi.js +1 -1
  62. package/dist/translations/hi.umd.js +1 -1
  63. package/dist/translations/hr.js +1 -1
  64. package/dist/translations/hr.umd.js +1 -1
  65. package/dist/translations/hu.js +1 -1
  66. package/dist/translations/hu.umd.js +1 -1
  67. package/dist/translations/hy.js +1 -1
  68. package/dist/translations/hy.umd.js +1 -1
  69. package/dist/translations/id.js +1 -1
  70. package/dist/translations/id.umd.js +1 -1
  71. package/dist/translations/it.js +1 -1
  72. package/dist/translations/it.umd.js +1 -1
  73. package/dist/translations/ja.js +1 -1
  74. package/dist/translations/ja.umd.js +1 -1
  75. package/dist/translations/jv.js +1 -1
  76. package/dist/translations/jv.umd.js +1 -1
  77. package/dist/translations/kk.js +1 -1
  78. package/dist/translations/kk.umd.js +1 -1
  79. package/dist/translations/km.js +1 -1
  80. package/dist/translations/km.umd.js +1 -1
  81. package/dist/translations/kn.js +1 -1
  82. package/dist/translations/kn.umd.js +1 -1
  83. package/dist/translations/ko.js +1 -1
  84. package/dist/translations/ko.umd.js +1 -1
  85. package/dist/translations/ku.js +1 -1
  86. package/dist/translations/ku.umd.js +1 -1
  87. package/dist/translations/lt.js +1 -1
  88. package/dist/translations/lt.umd.js +1 -1
  89. package/dist/translations/lv.js +1 -1
  90. package/dist/translations/lv.umd.js +1 -1
  91. package/dist/translations/ms.js +1 -1
  92. package/dist/translations/ms.umd.js +1 -1
  93. package/dist/translations/nb.js +1 -1
  94. package/dist/translations/nb.umd.js +1 -1
  95. package/dist/translations/ne.js +1 -1
  96. package/dist/translations/ne.umd.js +1 -1
  97. package/dist/translations/nl.js +1 -1
  98. package/dist/translations/nl.umd.js +1 -1
  99. package/dist/translations/no.js +1 -1
  100. package/dist/translations/no.umd.js +1 -1
  101. package/dist/translations/oc.js +1 -1
  102. package/dist/translations/oc.umd.js +1 -1
  103. package/dist/translations/pl.js +1 -1
  104. package/dist/translations/pl.umd.js +1 -1
  105. package/dist/translations/pt-br.js +1 -1
  106. package/dist/translations/pt-br.umd.js +1 -1
  107. package/dist/translations/pt.js +1 -1
  108. package/dist/translations/pt.umd.js +1 -1
  109. package/dist/translations/ro.js +1 -1
  110. package/dist/translations/ro.umd.js +1 -1
  111. package/dist/translations/ru.js +1 -1
  112. package/dist/translations/ru.umd.js +1 -1
  113. package/dist/translations/si.js +1 -1
  114. package/dist/translations/si.umd.js +1 -1
  115. package/dist/translations/sk.js +1 -1
  116. package/dist/translations/sk.umd.js +1 -1
  117. package/dist/translations/sl.js +1 -1
  118. package/dist/translations/sl.umd.js +1 -1
  119. package/dist/translations/sq.js +1 -1
  120. package/dist/translations/sq.umd.js +1 -1
  121. package/dist/translations/sr-latn.js +1 -1
  122. package/dist/translations/sr-latn.umd.js +1 -1
  123. package/dist/translations/sr.js +1 -1
  124. package/dist/translations/sr.umd.js +1 -1
  125. package/dist/translations/sv.js +1 -1
  126. package/dist/translations/sv.umd.js +1 -1
  127. package/dist/translations/th.js +1 -1
  128. package/dist/translations/th.umd.js +1 -1
  129. package/dist/translations/ti.js +1 -1
  130. package/dist/translations/ti.umd.js +1 -1
  131. package/dist/translations/tk.js +1 -1
  132. package/dist/translations/tk.umd.js +1 -1
  133. package/dist/translations/tr.js +1 -1
  134. package/dist/translations/tr.umd.js +1 -1
  135. package/dist/translations/tt.js +1 -1
  136. package/dist/translations/tt.umd.js +1 -1
  137. package/dist/translations/ug.js +1 -1
  138. package/dist/translations/ug.umd.js +1 -1
  139. package/dist/translations/uk.js +1 -1
  140. package/dist/translations/uk.umd.js +1 -1
  141. package/dist/translations/ur.js +1 -1
  142. package/dist/translations/ur.umd.js +1 -1
  143. package/dist/translations/uz.js +1 -1
  144. package/dist/translations/uz.umd.js +1 -1
  145. package/dist/translations/vi.js +1 -1
  146. package/dist/translations/vi.umd.js +1 -1
  147. package/dist/translations/zh-cn.js +1 -1
  148. package/dist/translations/zh-cn.umd.js +1 -1
  149. package/dist/translations/zh.js +1 -1
  150. package/dist/translations/zh.umd.js +1 -1
  151. package/lang/contexts.json +1 -0
  152. package/package.json +15 -15
  153. package/src/aiactions/aiactions.js +1 -1
  154. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  155. package/src/aiactions/model/aiactionsreply.js +1 -1
  156. package/src/aiassistant/adapters/aiadapter.js +1 -1
  157. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  158. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  159. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  160. package/src/aiassistant/aiassistant.js +1 -1
  161. package/src/aiassistant/aiassistantediting.js +1 -1
  162. package/src/aiassistant/aiassistantui.js +1 -1
  163. package/src/aiassistant/legacyerrors.js +1 -1
  164. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  165. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  166. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  167. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  168. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  169. package/src/aiassistant/ui/form/aiformview.js +1 -1
  170. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  171. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  172. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  173. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  174. package/src/aiassistant/utils/common-translations.js +1 -1
  175. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  176. package/src/aiballoon/aiballoon.js +1 -1
  177. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  178. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  179. package/src/aiballoon/ui/aiballoonview.js +1 -1
  180. package/src/aichat/aichat.js +1 -1
  181. package/src/aichat/aichatcontroller.js +1 -1
  182. package/src/aichat/aichatui.js +1 -1
  183. package/src/aichat/model/aichatcontext.js +1 -1
  184. package/src/aichat/model/aichatconversation.js +1 -1
  185. package/src/aichat/model/aichatinteraction.js +1 -1
  186. package/src/aichat/model/aichatmodels.js +1 -1
  187. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  188. package/src/aichat/ui/aichatfeedview.js +1 -1
  189. package/src/aichat/ui/aichatheaderview.js +1 -1
  190. package/src/aichat/ui/aichatview.js +1 -1
  191. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  193. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  195. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  196. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  197. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  198. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  201. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  202. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  203. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  211. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  212. package/src/aichat/utils/eventnames.js +1 -1
  213. package/src/aichat/utils/promisequeue.js +1 -1
  214. package/src/aichat/utils/scrollmanager.js +1 -1
  215. package/src/aichathistory/aichathistory.js +1 -1
  216. package/src/aichathistory/aichathistorycontroller.js +1 -1
  217. package/src/aichathistory/aichathistoryui.js +1 -1
  218. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  219. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  220. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  221. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  222. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  223. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  224. package/src/aiconfig.d.ts +11 -0
  225. package/src/aicore/aiconnector.js +1 -1
  226. package/src/aicore/aiediting.js +1 -1
  227. package/src/aicore/model/aicapabilities.js +1 -1
  228. package/src/aicore/model/aicontext.js +1 -1
  229. package/src/aicore/model/aiinteraction.js +1 -1
  230. package/src/aicore/model/aireply.js +1 -1
  231. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  232. package/src/aicore/pipeline/airesponseparser.js +2 -2
  233. package/src/aicore/ui/aidisclaimerview.js +1 -1
  234. package/src/aicore/ui/aiskeleton.js +1 -1
  235. package/src/aicore/ui/aispinner.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  242. package/src/aicore/utils/common-translations.js +1 -1
  243. package/src/aicore/utils/createresizebutton.js +1 -1
  244. package/src/aicore/utils/documentposition.js +1 -1
  245. package/src/aicore/utils/documentrange.js +1 -1
  246. package/src/aicore/utils/eventnames.js +1 -1
  247. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  248. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  249. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  250. package/src/aicore/utils/htmlparser.js +1 -1
  251. package/src/aicore/utils/htmlstreamer.js +1 -1
  252. package/src/aiquickactions/aiquickactions.js +1 -1
  253. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  254. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  255. package/src/aiquickactions/aiquickactionsui.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  258. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  259. package/src/aiquickactions/utils/common-translations.js +1 -1
  260. package/src/aireviewmode/aireviewmode.js +1 -1
  261. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  262. package/src/aireviewmode/aireviewmodeediting.d.ts +1 -1
  263. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  264. package/src/aireviewmode/aireviewmodeui.d.ts +1 -1
  265. package/src/aireviewmode/aireviewmodeui.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  268. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  269. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  270. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  271. package/src/aireviewmode/model/aireviewcheckrun.d.ts +1 -0
  272. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  273. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  274. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  275. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  276. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +4 -0
  279. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  282. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  283. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  284. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  285. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  286. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  287. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  288. package/src/aireviewmode/utils/common-translations.js +1 -1
  289. package/src/aitabs/aitabs.js +1 -1
  290. package/src/aitabs/aitabsmainview.js +1 -1
  291. package/src/aitabs/tabs/aitabsview.js +1 -1
  292. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  293. package/src/aitabs/tabs/tabpanelview.js +1 -1
  294. package/src/index.js +1 -1
  295. package/theme/aireviewmode/aireviewmode-check-list.css +112 -11
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f6ba0=_0x5501;(function(_0x223e06,_0x6b6de3){const _0x231ea2=_0x5501,_0x76e75=_0x223e06();while(!![]){try{const _0x539ce1=parseInt(_0x231ea2(0x11a))/0x1*(-parseInt(_0x231ea2(0x10e))/0x2)+parseInt(_0x231ea2(0xfe))/0x3*(parseInt(_0x231ea2(0xce))/0x4)+parseInt(_0x231ea2(0xd9))/0x5*(parseInt(_0x231ea2(0x119))/0x6)+parseInt(_0x231ea2(0xe7))/0x7+-parseInt(_0x231ea2(0x107))/0x8*(-parseInt(_0x231ea2(0x10a))/0x9)+-parseInt(_0x231ea2(0xea))/0xa*(parseInt(_0x231ea2(0xf0))/0xb)+parseInt(_0x231ea2(0xca))/0xc*(parseInt(_0x231ea2(0xd4))/0xd);if(_0x539ce1===_0x6b6de3)break;else _0x76e75['push'](_0x76e75['shift']());}catch(_0x45b511){_0x76e75['push'](_0x76e75['shift']());}}}(_0x31b0,0x93190));import{View as _0x2aede4,SearchTextView as _0x2a36cc,FormHeaderView as _0x25e0aa,ButtonView as _0x36e17a}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x577862,IconCancel as _0x1967f7}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x48d2d3}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x343257}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x1eae61}from'./aichathistorylistitemview.js';function _0x5501(_0x2608e1,_0x31907b){const _0x31b0f4=_0x31b0();return _0x5501=function(_0x550113,_0x51f2d7){_0x550113=_0x550113-0xbe;let _0x22da79=_0x31b0f4[_0x550113];return _0x22da79;},_0x5501(_0x2608e1,_0x31907b);}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x437449}from'../aichathistoryui.js';import{AISkeletonView as _0x54725a,SKELETON_DEFINITIONS as _0x5c664d}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x4f70ca}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x1f1bb6}from'../../aicore/utils/common-translations.js';function _0x31b0(){const _0x4d8010=['_createSkeletonView','isSearchViewVisible','ck-reset_all','emptyView','9BiBTJb','div','updateTitle','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','render','searchView','ck-ai-chat-history__empty-message','locale','isMaximized','3109616zYheBe','indexOf','AI_CHAT_HISTORY_SEARCH_LABEL','9vPYlMK','setTemplate','ck-ai-header\x20ck-ai-header_history','ck-ai-chat-history','1242132hkRxBA','push','clear','AI_CHAT_HISTORY_EMPTY_MESSAGE','value','ck-ai-chat-history__open-chat-button','_createListItemViews','change:errorMessage','change:isLoading','sectionsView','some','912708pZxSLW','1EClijh','bindTemplate','delegate','search','getItem','_createEmptyStateView','bind','isEmptyViewVisible','updateItemLoadingState','ck-rounded-corners','ck-ai-chat-error__dismiss-button','ck-ai-chat-history__content','extendTemplate','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','79656OwTiDp','ck-ai-chat-error','length','_createErrorView','575572zhWqPa','ck-hidden','_createSearchView','splice','errorView','removeHistoryItem','65YetwwI','remove','change:hasItems','addMany','set','20EGnbYA','ck-ai-chat-history__empty','ltr','AI_CHAT_HISTORY_HEADING','_refreshSearch','openChat','updateItemTitle','execute','queryView','_updateViewVisibility','hasItems','add','sections','AI_CHAT_HISTORY_GO_TO_CHAT_BUTTON','3595249DyuzNY','children','fieldView','940090Dsxkzw','removeItem','resizeButton','errorMessage','itemsViews','skeletonView','88MtjBpl','updateLoadingState','updateHistoryItemsWithCategories','title','element','aiHistory','fire','isLoading','isVisible','items'];_0x31b0=function(){return _0x4d8010;};return _0x31b0();}export class AIChatHistoryView extends _0x2aede4{[_0x3f6ba0(0x103)];[_0x3f6ba0(0xd2)];[_0x3f6ba0(0xef)];[_0x3f6ba0(0xfd)];[_0x3f6ba0(0x117)];[_0x3f6ba0(0xec)];constructor(_0x18f426,_0x1d016f){const _0x197f04=_0x3f6ba0;super(_0x18f426),this[_0x197f04(0xd8)](_0x197f04(0xe3),!0x1),this[_0x197f04(0xd8)](_0x197f04(0xf7),!0x0),this[_0x197f04(0xd8)](_0x197f04(0xed),''),this[_0x197f04(0xd8)](_0x197f04(0x106),!0x1),this[_0x197f04(0xd8)](_0x197f04(0xfb),!0x1),this[_0x197f04(0xd8)](_0x197f04(0xc3),!0x1);const _0x4356b0=new _0x25e0aa(_0x18f426,{'label':_0x1f1bb6(_0x18f426,_0x197f04(0xdc)),'icon':_0x577862,'class':_0x197f04(0x10c)});_0x1d016f&&(this[_0x197f04(0xec)]=_0x4f70ca(_0x18f426,this),_0x4356b0[_0x197f04(0xe8)][_0x197f04(0xe4)](this[_0x197f04(0xec)])),this[_0x197f04(0x117)]=new _0x48d2d3(_0x18f426,[]),this[_0x197f04(0x117)][_0x197f04(0xbe)](..._0x437449)['to'](this),this[_0x197f04(0xd2)]=this[_0x197f04(0xcd)](),this[_0x197f04(0xef)]=this[_0x197f04(0xfa)](),this[_0x197f04(0xfd)]=this[_0x197f04(0xc1)](),this[_0x197f04(0x103)]=this[_0x197f04(0xd0)](),this['on'](_0x197f04(0x116),()=>this[_0x197f04(0xe2)]()),this['on'](_0x197f04(0xd6),()=>this[_0x197f04(0xe2)]()),this['on'](_0x197f04(0x115),()=>this[_0x197f04(0xe2)]()),this[_0x197f04(0x10b)]({'tag':_0x197f04(0xff),'attributes':{'class':['ck',_0x197f04(0xfc),_0x197f04(0x10d),_0x197f04(0xc5)],'dir':_0x197f04(0xdb)},'children':[_0x4356b0,{'tag':_0x197f04(0xff),'attributes':{'class':[_0x197f04(0xc7)]},'children':[this[_0x197f04(0xef)],this[_0x197f04(0xd2)],this[_0x197f04(0xfd)],this[_0x197f04(0x103)]]}]});}[_0x3f6ba0(0xe2)](){const _0x52d78d=_0x3f6ba0;this[_0x52d78d(0xfb)]=!this[_0x52d78d(0xf7)]&&this[_0x52d78d(0xe3)]&&!this[_0x52d78d(0xed)],this[_0x52d78d(0xc3)]=!this[_0x52d78d(0xf7)]&&!this[_0x52d78d(0xe3)]&&!this[_0x52d78d(0xed)];}[_0x3f6ba0(0xd0)](){const _0x37c3f3=_0x3f6ba0,_0x296fef=new _0x2a36cc(this[_0x37c3f3(0x105)],{'filteredView':this[_0x37c3f3(0x117)],'queryView':{'label':_0x1f1bb6(this[_0x37c3f3(0x105)],_0x37c3f3(0x109))},'infoView':{'text':{'notFound':{'primary':_0x3259db=>_0x1f1bb6(this[_0x37c3f3(0x105)],_0x37c3f3(0x101),_0x3259db),'secondary':_0x1f1bb6(this[_0x37c3f3(0x105)],_0x37c3f3(0xc9))}}}});return _0x296fef['on'](_0x37c3f3(0x102),()=>{const _0x9b8f66=_0x37c3f3;this[_0x9b8f66(0x103)][_0x9b8f66(0xe8)][_0x9b8f66(0xe4)](this[_0x9b8f66(0xd2)],0x1);}),_0x296fef[_0x37c3f3(0xc8)]({'attributes':{'class':[this[_0x37c3f3(0x11b)]['if'](_0x37c3f3(0xfb),_0x37c3f3(0xcf),_0x263730=>!_0x263730)]}}),_0x296fef;}[_0x3f6ba0(0xfa)](){const _0x18db8d=_0x3f6ba0,_0x8afda3=new _0x54725a(this[_0x18db8d(0x105)],_0x5c664d[_0x18db8d(0xf5)]);return _0x8afda3[_0x18db8d(0xc8)]({'attributes':{'class':[this[_0x18db8d(0x11b)]['if'](_0x18db8d(0xf7),_0x18db8d(0xcf),_0x503679=>!_0x503679)]}}),_0x8afda3;}[_0x3f6ba0(0xcd)](){const _0x1e137c=_0x3f6ba0,_0x1c7278=new _0x2aede4(this[_0x1e137c(0x105)]),_0x219b36=new _0x36e17a(this[_0x1e137c(0x105)]);return _0x219b36[_0x1e137c(0xd8)]({'withText':!0x1,'icon':_0x1967f7,'class':_0x1e137c(0xc6)}),_0x219b36[_0x1e137c(0xc2)](_0x1e137c(0xf8))['to'](this,_0x1e137c(0xe3),_0x207275=>!!_0x207275),_0x219b36['on'](_0x1e137c(0xe0),()=>{const _0x1b758a=_0x1e137c;this[_0x1b758a(0xed)]='';}),_0x1c7278[_0x1e137c(0x10b)]({'tag':_0x1e137c(0xff),'attributes':{'class':['ck',_0x1e137c(0xcb),this[_0x1e137c(0x11b)]['if'](_0x1e137c(0xed),_0x1e137c(0xcf),_0x51f692=>!_0x51f692)]},'children':[{'tag':'p','children':[{'text':this[_0x1e137c(0x11b)]['to'](_0x1e137c(0xed))}]},_0x219b36]}),_0x1c7278;}[_0x3f6ba0(0xc1)](){const _0x18eb50=_0x3f6ba0,_0x55ed4b=new _0x36e17a(this[_0x18eb50(0x105)]);_0x55ed4b[_0x18eb50(0xd8)]({'withText':!0x0,'label':_0x1f1bb6(this[_0x18eb50(0x105)],_0x18eb50(0xe6)),'class':_0x18eb50(0x113)}),_0x55ed4b['on'](_0x18eb50(0xe0),()=>{const _0x1c1128=_0x18eb50;this[_0x1c1128(0xf6)](_0x1c1128(0xde));});const _0x3bd2b0=new _0x2aede4(this[_0x18eb50(0x105)]);return _0x3bd2b0[_0x18eb50(0x10b)]({'tag':_0x18eb50(0xff),'attributes':{'class':[_0x18eb50(0xda),this[_0x18eb50(0x11b)]['if'](_0x18eb50(0xc3),_0x18eb50(0xcf),_0x4dc476=>!_0x4dc476)]},'children':[{'tag':'p','attributes':{'class':[_0x18eb50(0x104)]},'children':[_0x1f1bb6(this[_0x18eb50(0x105)],_0x18eb50(0x111))]},_0x55ed4b]}),_0x3bd2b0;}[_0x3f6ba0(0x114)](_0x3bcac1,_0x7c7798){const _0x4c96ca=_0x3f6ba0,_0x5da1b5=[];for(const _0x155ecd of _0x3bcac1){const _0x426d9b=new _0x1eae61(_0x7c7798,_0x155ecd);_0x426d9b[_0x4c96ca(0xbe)](..._0x437449)['to'](this),_0x5da1b5[_0x4c96ca(0x10f)](_0x426d9b);}return _0x5da1b5;}[_0x3f6ba0(0xf2)](_0x454ccc){const _0x221927=_0x3f6ba0,_0x35f32b=this[_0x221927(0x105)]||'en',_0x2323fb=[];for(const _0x47d9b7 of _0x454ccc){const _0x2f180c=this[_0x221927(0x114)](_0x47d9b7[_0x221927(0xf9)],_0x35f32b);_0x2323fb[_0x221927(0x10f)](new _0x343257(_0x35f32b,{'title':_0x47d9b7[_0x221927(0xf3)],'items':_0x2f180c}));}this[_0x221927(0x117)][_0x221927(0xe5)]=_0x2323fb,this[_0x221927(0x117)][_0x221927(0xf9)][_0x221927(0x110)](),this[_0x221927(0x117)][_0x221927(0xf9)][_0x221927(0xd7)](_0x2323fb),this[_0x221927(0xe3)]=_0x454ccc[_0x221927(0x118)](_0x5e6b88=>_0x5e6b88[_0x221927(0xf9)][_0x221927(0xcc)]>0x0),this[_0x221927(0xdd)]();}[_0x3f6ba0(0xd3)](_0x12efef){const _0x14ab90=_0x3f6ba0;for(const _0x6c4ef3 of this[_0x14ab90(0x117)][_0x14ab90(0xe5)]){const _0x54eb9b=_0x6c4ef3[_0x14ab90(0xc0)](_0x12efef);if(_0x54eb9b){if(_0x6c4ef3[_0x14ab90(0xeb)](_0x54eb9b),0x0===_0x6c4ef3[_0x14ab90(0xee)][_0x14ab90(0xcc)]){const _0x54c263=this[_0x14ab90(0x117)][_0x14ab90(0xe5)][_0x14ab90(0x108)](_0x6c4ef3);-0x1!==_0x54c263&&(this[_0x14ab90(0x117)][_0x14ab90(0xe5)][_0x14ab90(0xd1)](_0x54c263,0x1),this[_0x14ab90(0x117)][_0x14ab90(0xf9)][_0x14ab90(0xd5)](_0x6c4ef3));}this[_0x14ab90(0xe3)]=this[_0x14ab90(0x117)][_0x14ab90(0xe5)][_0x14ab90(0xcc)]>0x0,this[_0x14ab90(0xdd)]();break;}}}[_0x3f6ba0(0xdf)](_0x25330d,_0x21bd4e){const _0x2f3618=_0x3f6ba0;for(const _0x334ce4 of this[_0x2f3618(0x117)][_0x2f3618(0xe5)]){const _0x2543d7=_0x334ce4[_0x2f3618(0xc0)](_0x25330d);if(_0x2543d7){_0x2543d7[_0x2f3618(0x100)](_0x21bd4e);break;}}}[_0x3f6ba0(0xc4)](_0x333f7d,_0x5492f6,_0x9eb05c){const _0x3256db=_0x3f6ba0;for(const _0x31446d of this[_0x3256db(0x117)][_0x3256db(0xe5)]){const _0x5a6f70=_0x31446d[_0x3256db(0xc0)](_0x333f7d);if(_0x5a6f70){_0x5a6f70[_0x3256db(0xf1)](_0x5492f6,_0x9eb05c);break;}}}[_0x3f6ba0(0xdd)](){const _0x304716=_0x3f6ba0;if(this[_0x304716(0xe3)]){const _0x4e2a0b=this[_0x304716(0x103)][_0x304716(0xe1)][_0x304716(0xe9)]?.[_0x304716(0xf4)]?.[_0x304716(0x112)]||'';this[_0x304716(0x103)][_0x304716(0xbf)](_0x4e2a0b);}}}
23
+ const _0x199235=_0x2f14;(function(_0x50006d,_0x1b753f){const _0x499521=_0x2f14,_0x5d3f4e=_0x50006d();while(!![]){try{const _0x2041aa=parseInt(_0x499521(0x1c8))/0x1*(-parseInt(_0x499521(0x178))/0x2)+parseInt(_0x499521(0x1ca))/0x3*(parseInt(_0x499521(0x1a2))/0x4)+parseInt(_0x499521(0x184))/0x5+parseInt(_0x499521(0x1bd))/0x6*(parseInt(_0x499521(0x1a9))/0x7)+-parseInt(_0x499521(0x183))/0x8*(-parseInt(_0x499521(0x1cf))/0x9)+-parseInt(_0x499521(0x1c3))/0xa+-parseInt(_0x499521(0x18d))/0xb;if(_0x2041aa===_0x1b753f)break;else _0x5d3f4e['push'](_0x5d3f4e['shift']());}catch(_0x38431e){_0x5d3f4e['push'](_0x5d3f4e['shift']());}}}(_0x3761,0x2cb8d));import{View as _0x5c61a2,SearchTextView as _0x246e1e,FormHeaderView as _0xca204f,ButtonView as _0x1153fd}from'ckeditor5/src/ui.js';function _0x2f14(_0xb7c001,_0x505feb){const _0x3761f0=_0x3761();return _0x2f14=function(_0x2f140b,_0x291ac1){_0x2f140b=_0x2f140b-0x174;let _0x30e5c6=_0x3761f0[_0x2f140b];return _0x30e5c6;},_0x2f14(_0xb7c001,_0x505feb);}import{IconAIHistory as _0x1e0d0a,IconCancel as _0x46ad74}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x3bf3c7}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x2cc544}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x3fc6b7}from'./aichathistorylistitemview.js';function _0x3761(){const _0x2be7eb=['fieldView','_createErrorView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','locale','push','139237rCjCZC','delegate','add','isSearchViewVisible','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','removeItem','div','ck-ai-chat-error','updateItemTitle','fire','errorMessage','ltr','search','skeletonView','extendTemplate','clear','isMaximized','searchView','updateItemLoadingState','AI_CHAT_HISTORY_EMPTY_MESSAGE','48tBzBEc','_updateViewVisibility','splice','getItem','bindTemplate','itemsViews','38970FuOeRG','resizeButton','hasItems','isVisible','ck-hidden','212879PuPQoQ','remove','6eOifzh','updateHistoryItemsWithCategories','indexOf','isEmptyViewVisible','some','1334943FXBaoB','addMany','AI_CHAT_HISTORY_HEADING','render','updateLoadingState','2JDcyzv','execute','emptyView','_createSkeletonView','title','sections','_createListItemViews','change:errorMessage','_createSearchView','queryView','ck-ai-chat-history__open-chat-button','8rYoWTg','1397420cvnRYx','updateTitle','ck-ai-header\x20ck-ai-header_history','ck-ai-chat-history','items','_refreshSearch','change:hasItems','set','change:isLoading','3473844ObyIVr','bind','element','children','length','ck-reset_all','errorView','isLoading','ck-ai-chat-error__dismiss-button','ck-rounded-corners','_createEmptyStateView','AI_CHAT_HISTORY_SEARCH_LABEL','value','openChat','AI_CHAT_HISTORY_GO_TO_CHAT_BUTTON','ck-ai-chat-history__empty-message','removeHistoryItem','ck-ai-chat-history__empty','sectionsView','ck-ai-chat-history__content','aiHistory','257644gJQcqU','setTemplate'];_0x3761=function(){return _0x2be7eb;};return _0x3761();}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3003d2}from'../aichathistoryui.js';import{AISkeletonView as _0x129b4d,SKELETON_DEFINITIONS as _0x10e87d}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x59814b}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x24314c}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x5c61a2{[_0x199235(0x1ba)];[_0x199235(0x193)];[_0x199235(0x1b6)];[_0x199235(0x17a)];[_0x199235(0x19f)];[_0x199235(0x1c4)];constructor(_0x384a4d,_0x4abff4){const _0x588e67=_0x199235;super(_0x384a4d),this[_0x588e67(0x18b)](_0x588e67(0x1c5),!0x1),this[_0x588e67(0x18b)](_0x588e67(0x194),!0x0),this[_0x588e67(0x18b)](_0x588e67(0x1b3),''),this[_0x588e67(0x18b)](_0x588e67(0x1b9),!0x1),this[_0x588e67(0x18b)](_0x588e67(0x1ac),!0x1),this[_0x588e67(0x18b)](_0x588e67(0x1cd),!0x1);const _0x574466=new _0xca204f(_0x384a4d,{'label':_0x24314c(_0x384a4d,_0x588e67(0x175)),'icon':_0x1e0d0a,'class':_0x588e67(0x186)});_0x4abff4&&(this[_0x588e67(0x1c4)]=_0x59814b(_0x384a4d,this),_0x574466[_0x588e67(0x190)][_0x588e67(0x1ab)](this[_0x588e67(0x1c4)])),this[_0x588e67(0x19f)]=new _0x3bf3c7(_0x384a4d,[]),this[_0x588e67(0x19f)][_0x588e67(0x1aa)](..._0x3003d2)['to'](this),this[_0x588e67(0x193)]=this[_0x588e67(0x1a5)](),this[_0x588e67(0x1b6)]=this[_0x588e67(0x17b)](),this[_0x588e67(0x17a)]=this[_0x588e67(0x197)](),this[_0x588e67(0x1ba)]=this[_0x588e67(0x180)](),this['on'](_0x588e67(0x18c),()=>this[_0x588e67(0x1be)]()),this['on'](_0x588e67(0x18a),()=>this[_0x588e67(0x1be)]()),this['on'](_0x588e67(0x17f),()=>this[_0x588e67(0x1be)]()),this[_0x588e67(0x1a3)]({'tag':_0x588e67(0x1af),'attributes':{'class':['ck',_0x588e67(0x192),_0x588e67(0x187),_0x588e67(0x196)],'dir':_0x588e67(0x1b4)},'children':[_0x574466,{'tag':_0x588e67(0x1af),'attributes':{'class':[_0x588e67(0x1a0)]},'children':[this[_0x588e67(0x1b6)],this[_0x588e67(0x193)],this[_0x588e67(0x17a)],this[_0x588e67(0x1ba)]]}]});}[_0x199235(0x1be)](){const _0x54075a=_0x199235;this[_0x54075a(0x1ac)]=!this[_0x54075a(0x194)]&&this[_0x54075a(0x1c5)]&&!this[_0x54075a(0x1b3)],this[_0x54075a(0x1cd)]=!this[_0x54075a(0x194)]&&!this[_0x54075a(0x1c5)]&&!this[_0x54075a(0x1b3)];}[_0x199235(0x180)](){const _0x53479b=_0x199235,_0x312bca=new _0x246e1e(this[_0x53479b(0x1a7)],{'filteredView':this[_0x53479b(0x19f)],'queryView':{'label':_0x24314c(this[_0x53479b(0x1a7)],_0x53479b(0x198))},'infoView':{'text':{'notFound':{'primary':_0x5eaa7c=>_0x24314c(this[_0x53479b(0x1a7)],_0x53479b(0x1a6),_0x5eaa7c),'secondary':_0x24314c(this[_0x53479b(0x1a7)],_0x53479b(0x1ad))}}}});return _0x312bca['on'](_0x53479b(0x176),()=>{const _0x40b9ea=_0x53479b;this[_0x40b9ea(0x1ba)][_0x40b9ea(0x190)][_0x40b9ea(0x1ab)](this[_0x40b9ea(0x193)],0x1);}),_0x312bca[_0x53479b(0x1b7)]({'attributes':{'class':[this[_0x53479b(0x1c1)]['if'](_0x53479b(0x1ac),_0x53479b(0x1c7),_0x5472dd=>!_0x5472dd)]}}),_0x312bca;}[_0x199235(0x17b)](){const _0x40b411=_0x199235,_0x3f74f0=new _0x129b4d(this[_0x40b411(0x1a7)],_0x10e87d[_0x40b411(0x1a1)]);return _0x3f74f0[_0x40b411(0x1b7)]({'attributes':{'class':[this[_0x40b411(0x1c1)]['if'](_0x40b411(0x194),_0x40b411(0x1c7),_0x158fb4=>!_0x158fb4)]}}),_0x3f74f0;}[_0x199235(0x1a5)](){const _0x26ad84=_0x199235,_0xeb2202=new _0x5c61a2(this[_0x26ad84(0x1a7)]),_0x58a16f=new _0x1153fd(this[_0x26ad84(0x1a7)]);return _0x58a16f[_0x26ad84(0x18b)]({'withText':!0x1,'icon':_0x46ad74,'class':_0x26ad84(0x195)}),_0x58a16f[_0x26ad84(0x18e)](_0x26ad84(0x1c6))['to'](this,_0x26ad84(0x1c5),_0x149f57=>!!_0x149f57),_0x58a16f['on'](_0x26ad84(0x179),()=>{const _0x34e2db=_0x26ad84;this[_0x34e2db(0x1b3)]='';}),_0xeb2202[_0x26ad84(0x1a3)]({'tag':_0x26ad84(0x1af),'attributes':{'class':['ck',_0x26ad84(0x1b0),this[_0x26ad84(0x1c1)]['if'](_0x26ad84(0x1b3),_0x26ad84(0x1c7),_0x5e8bde=>!_0x5e8bde)]},'children':[{'tag':'p','children':[{'text':this[_0x26ad84(0x1c1)]['to'](_0x26ad84(0x1b3))}]},_0x58a16f]}),_0xeb2202;}[_0x199235(0x197)](){const _0x11e21a=_0x199235,_0x4f16e4=new _0x1153fd(this[_0x11e21a(0x1a7)]);_0x4f16e4[_0x11e21a(0x18b)]({'withText':!0x0,'label':_0x24314c(this[_0x11e21a(0x1a7)],_0x11e21a(0x19b)),'class':_0x11e21a(0x182)}),_0x4f16e4['on'](_0x11e21a(0x179),()=>{const _0x40371e=_0x11e21a;this[_0x40371e(0x1b2)](_0x40371e(0x19a));});const _0x33e5b7=new _0x5c61a2(this[_0x11e21a(0x1a7)]);return _0x33e5b7[_0x11e21a(0x1a3)]({'tag':_0x11e21a(0x1af),'attributes':{'class':[_0x11e21a(0x19e),this[_0x11e21a(0x1c1)]['if'](_0x11e21a(0x1cd),_0x11e21a(0x1c7),_0x4b9917=>!_0x4b9917)]},'children':[{'tag':'p','attributes':{'class':[_0x11e21a(0x19c)]},'children':[_0x24314c(this[_0x11e21a(0x1a7)],_0x11e21a(0x1bc))]},_0x4f16e4]}),_0x33e5b7;}[_0x199235(0x17e)](_0xc99133,_0x4eecf2){const _0x317175=_0x199235,_0x299ccf=[];for(const _0x337754 of _0xc99133){const _0x2fd2fd=new _0x3fc6b7(_0x4eecf2,_0x337754);_0x2fd2fd[_0x317175(0x1aa)](..._0x3003d2)['to'](this),_0x299ccf[_0x317175(0x1a8)](_0x2fd2fd);}return _0x299ccf;}[_0x199235(0x1cb)](_0x173d40){const _0x1a2509=_0x199235,_0x32f377=this[_0x1a2509(0x1a7)]||'en',_0x4dc0d8=[];for(const _0x127ddc of _0x173d40){const _0x280cd4=this[_0x1a2509(0x17e)](_0x127ddc[_0x1a2509(0x188)],_0x32f377);_0x4dc0d8[_0x1a2509(0x1a8)](new _0x2cc544(_0x32f377,{'title':_0x127ddc[_0x1a2509(0x17c)],'items':_0x280cd4}));}this[_0x1a2509(0x19f)][_0x1a2509(0x17d)]=_0x4dc0d8,this[_0x1a2509(0x19f)][_0x1a2509(0x188)][_0x1a2509(0x1b8)](),this[_0x1a2509(0x19f)][_0x1a2509(0x188)][_0x1a2509(0x174)](_0x4dc0d8),this[_0x1a2509(0x1c5)]=_0x173d40[_0x1a2509(0x1ce)](_0x224875=>_0x224875[_0x1a2509(0x188)][_0x1a2509(0x191)]>0x0),this[_0x1a2509(0x189)]();}[_0x199235(0x19d)](_0x49a2f1){const _0x4f71da=_0x199235;for(const _0x2c7a1e of this[_0x4f71da(0x19f)][_0x4f71da(0x17d)]){const _0x168b94=_0x2c7a1e[_0x4f71da(0x1c0)](_0x49a2f1);if(_0x168b94){if(_0x2c7a1e[_0x4f71da(0x1ae)](_0x168b94),0x0===_0x2c7a1e[_0x4f71da(0x1c2)][_0x4f71da(0x191)]){const _0x29b5e7=this[_0x4f71da(0x19f)][_0x4f71da(0x17d)][_0x4f71da(0x1cc)](_0x2c7a1e);-0x1!==_0x29b5e7&&(this[_0x4f71da(0x19f)][_0x4f71da(0x17d)][_0x4f71da(0x1bf)](_0x29b5e7,0x1),this[_0x4f71da(0x19f)][_0x4f71da(0x188)][_0x4f71da(0x1c9)](_0x2c7a1e));}this[_0x4f71da(0x1c5)]=this[_0x4f71da(0x19f)][_0x4f71da(0x17d)][_0x4f71da(0x191)]>0x0,this[_0x4f71da(0x189)]();break;}}}[_0x199235(0x1b1)](_0x59d9c1,_0x4a6b77){const _0x5c0216=_0x199235;for(const _0x503081 of this[_0x5c0216(0x19f)][_0x5c0216(0x17d)]){const _0x5082b2=_0x503081[_0x5c0216(0x1c0)](_0x59d9c1);if(_0x5082b2){_0x5082b2[_0x5c0216(0x185)](_0x4a6b77);break;}}}[_0x199235(0x1bb)](_0x5e2b8c,_0x21d9f3,_0x20a3e0){const _0xde5d53=_0x199235;for(const _0x41dfa0 of this[_0xde5d53(0x19f)][_0xde5d53(0x17d)]){const _0x387866=_0x41dfa0[_0xde5d53(0x1c0)](_0x5e2b8c);if(_0x387866){_0x387866[_0xde5d53(0x177)](_0x21d9f3,_0x20a3e0);break;}}}[_0x199235(0x189)](){const _0xd31e2b=_0x199235;if(this[_0xd31e2b(0x1c5)]){const _0x1ac984=this[_0xd31e2b(0x1ba)][_0xd31e2b(0x181)][_0xd31e2b(0x1a4)]?.[_0xd31e2b(0x18f)]?.[_0xd31e2b(0x199)]||'';this[_0xd31e2b(0x1ba)][_0xd31e2b(0x1b5)](_0x1ac984);}}}
package/src/aiconfig.d.ts CHANGED
@@ -28,6 +28,17 @@ import { type AIQuickActionsConfig } from './aiquickactions/aiquickactions.js';
28
28
  * See {@link module:core/editor/editorconfig~EditorConfig all editor configuration options}.
29
29
  */
30
30
  export interface AIConfig {
31
+ /**
32
+ * The URL of the AI service endpoint.
33
+ *
34
+ * This endpoint is used by AI features: AI Chat, AI Quick Actions, and AI Review Mode.
35
+ * It does not affect the AI Assistant feature, which uses its own adapter configuration.
36
+ *
37
+ * **NOTE:** By default, the plugin uses the default AI service endpoint delivered by CKEditor Cloud Services.
38
+ *
39
+ * @default 'https://ai.cke-cs.com/v1'
40
+ */
41
+ serviceUrl?: string;
31
42
  /**
32
43
  * The configuration of the {@link module:ai/aiassistant/aiassistant~AIAssistant AI Assistant feature}.
33
44
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x909b49=_0x9f6c;(function(_0x293062,_0x30fb8c){const _0x3193bb=_0x9f6c,_0x2dc70a=_0x293062();while(!![]){try{const _0x25fc45=-parseInt(_0x3193bb(0x1b4))/0x1+parseInt(_0x3193bb(0x18f))/0x2+parseInt(_0x3193bb(0x139))/0x3*(-parseInt(_0x3193bb(0x173))/0x4)+parseInt(_0x3193bb(0x147))/0x5+parseInt(_0x3193bb(0x182))/0x6+parseInt(_0x3193bb(0x1a9))/0x7+parseInt(_0x3193bb(0x13b))/0x8*(parseInt(_0x3193bb(0x14c))/0x9);if(_0x25fc45===_0x30fb8c)break;else _0x2dc70a['push'](_0x2dc70a['shift']());}catch(_0x7cb9bd){_0x2dc70a['push'](_0x2dc70a['shift']());}}}(_0x331b,0x1ec50));function _0x9f6c(_0x317839,_0x561947){const _0x331bb4=_0x331b();return _0x9f6c=function(_0x9f6cbf,_0xc9f6d0){_0x9f6cbf=_0x9f6cbf-0x137;let _0x20424c=_0x331bb4[_0x9f6cbf];return _0x20424c;},_0x9f6c(_0x317839,_0x561947);}import{createParser as _0x4e0481}from'eventsource-parser';import{ContextPlugin as _0x190e6a}from'ckeditor5/src/core.js';import{CKEditorError as _0xb0e18e}from'ckeditor5/src/utils.js';import{getTranslation as _0xc58144}from'./utils/common-translations.js';export var AIActionsNames;function _0x331b(){const _0x16b2f8=['body','ai-request-failed','/conversations','text','_token','deleteFile','/web-resources','deleteWebResource','name','AI_MODEL_DESCRIPTION_','decode','_apiUrl','/documents','value','IMPROVE_WRITING','map','MAKE_SHORTER','_handleError','233303ubGiTV','PATCH','/actions/system/','stringify','DELETE','/actions/custom/calls','/files','releaseLock','FIX_GRAMMAR','executeCustomAction','read','223398QLCbIB','search','getReader','98265NlOJfV','context','55848csYcyn','TRANSLATE','make-shorter','signal','/files/','fix-grammar','data','_decoder','uploadFile','limit','executeAction','plugins','39320bpdJYK','get','MAKE_TONE_CASUAL','fetchConversationMessages','reset','261ODHvKK','length','feed','true','/documents/','ai-request-aborted','group','abortController','MAKE_LONGER','_sendApiRequest','isOfficialPlugin','fetchConversation','getModels','/reviews/system/','CloudServices','MAKE_TONE_FORMAL','uploadUrl','_getStreamReader','pluginName','request','init','deleteDocument','continue','items','/conversations?','improve-writing','queryAssistant','Bearer\x20','fetchDocument','attributes','/web-resources/','callCustomReview','GET','catch','keys','/messages','toString','translate','100','12dxielD','updateConversation','POST','application/json','callSystemReview','requires','parse','/conversations/','Content-Type','AIConnector','push','fetchConversations','startConversation','make-tone-casual','ai-missing-token','515940zcoaCe','/calls','json','/models/1','https://ai-assistant.cke-cs-staging.com/v1','append','AbortError','uploadDocument','CONTINUE','token','then','toUpperCase','excludeEmpty','236126PWoroW','locale','make-tone-formal','deleteConversation','isPremiumPlugin','/reviews/custom/calls','make-longer','file'];_0x331b=function(){return _0x16b2f8;};return _0x331b();}!function(_0xe25e0f){const _0x242c1a=_0x9f6c;_0xe25e0f[_0x242c1a(0x18a)]=_0x242c1a(0x162),_0xe25e0f[_0x242c1a(0x1b1)]=_0x242c1a(0x140),_0xe25e0f[_0x242c1a(0x1a5)]=_0x242c1a(0x165),_0xe25e0f[_0x242c1a(0x154)]=_0x242c1a(0x195),_0xe25e0f[_0x242c1a(0x1a7)]=_0x242c1a(0x13d),_0xe25e0f[_0x242c1a(0x149)]=_0x242c1a(0x180),_0xe25e0f[_0x242c1a(0x15b)]=_0x242c1a(0x191),_0xe25e0f[_0x242c1a(0x13c)]=_0x242c1a(0x171);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x190e6a{[_0x909b49(0x1a2)];[_0x909b49(0x19b)];[_0x909b49(0x142)];static get[_0x909b49(0x178)](){const _0x4e9127=_0x909b49;return[_0x4e9127(0x15a)];}static get[_0x909b49(0x15e)](){const _0x4de58a=_0x909b49;return _0x4de58a(0x17c);}static get[_0x909b49(0x156)](){return!0x0;}static get[_0x909b49(0x193)](){return!0x0;}constructor(_0x100fae){const _0x2c2f59=_0x909b49;super(_0x100fae),this[_0x2c2f59(0x1a2)]=_0x2c2f59(0x186),this[_0x2c2f59(0x19b)]=null,this[_0x2c2f59(0x142)]=new TextDecoder();}[_0x909b49(0x160)](){const _0xe71572=_0x909b49,_0x34b0aa=this[_0xe71572(0x13a)][_0xe71572(0x146)][_0xe71572(0x148)](_0xe71572(0x15a));if(!_0x34b0aa[_0xe71572(0x18b)])throw new _0xb0e18e(_0xe71572(0x181),this);this[_0xe71572(0x19b)]=_0x34b0aa[_0xe71572(0x18b)];}[_0x909b49(0x17f)](_0x3ea806,_0x26c65d){const _0xa6abd=_0x909b49,_0x8ca526=this[_0xa6abd(0x155)](_0xa6abd(0x199),_0xa6abd(0x175),{'id':_0x3ea806,'group':_0x26c65d});return{'getConversation':async()=>(await _0x8ca526[_0xa6abd(0x15f)])[_0xa6abd(0x184)](),'abortController':_0x8ca526[_0xa6abd(0x153)]};}[_0x909b49(0x166)]({message:_0x436f14,conversationId:_0x433394,parts:_0x44d97b,capabilities:_0x517051,model:_0x1fa78e,quickActionData:_0xe6a608}){const _0x43a927=_0x909b49,_0x10d182={..._0xe6a608&&{'quickActionData':_0xe6a608}},_0x4c4096={'prompt':_0x436f14,'content':_0x44d97b,'model':_0x1fa78e,..._0x517051&&{'capabilities':_0x517051},...Object[_0x43a927(0x16e)](_0x10d182)[_0x43a927(0x14d)]>0x0&&{'attributes':_0x10d182}},_0xe4ac32=this[_0x43a927(0x155)](_0x43a927(0x17a)+_0x433394+_0x43a927(0x16f),_0x43a927(0x175),_0x4c4096);return{'getStream':async()=>{const _0x47d671=_0x43a927,_0x307ddf=(await _0xe4ac32[_0x47d671(0x15f)])[_0x47d671(0x197)];return this[_0x47d671(0x15d)](_0x307ddf);},'abortController':_0xe4ac32[_0x43a927(0x153)]};}[_0x909b49(0x1b2)]({content:_0x39ab30,message:_0x563984,model:_0x1d7db2,outputFormat:_0x3fd665}){const _0x4e9f92=_0x909b49,_0x2c7f98={'content':[{'type':_0x4e9f92(0x19a),'content':_0x39ab30}],'prompt':_0x563984,'model':_0x1d7db2,'outputFormat':_0x3fd665},_0x3054ba=this[_0x4e9f92(0x155)](_0x4e9f92(0x1ae),_0x4e9f92(0x175),_0x2c7f98);return{'getStream':async()=>{const _0x291709=_0x4e9f92,_0x5414e8=(await _0x3054ba[_0x291709(0x15f)])[_0x291709(0x197)];return this[_0x291709(0x15d)](_0x5414e8);},'abortController':_0x3054ba[_0x4e9f92(0x153)]};}[_0x909b49(0x145)]({actionName:_0x1bd5e9,content:_0x482a5b,args:_0x178f68}){const _0xba9008=_0x909b49,_0x622a54={'content':[{'type':_0xba9008(0x19a),'content':_0x482a5b}],'args':_0x178f68},_0x4b0cd7=this[_0xba9008(0x155)](_0xba9008(0x1ab)+_0x1bd5e9+_0xba9008(0x183),_0xba9008(0x175),_0x622a54);return{'getStream':async()=>{const _0xbc32bd=_0xba9008,_0x1c0909=(await _0x4b0cd7[_0xbc32bd(0x15f)])[_0xbc32bd(0x197)];return this[_0xbc32bd(0x15d)](_0x1c0909);},'abortController':_0x4b0cd7[_0xba9008(0x153)]};}[_0x909b49(0x143)](_0x3b7a30,_0x20f6f2,_0x534d01){const _0x56c825=_0x909b49,_0x4e8cbe=new FormData();_0x4e8cbe[_0x56c825(0x187)](_0x56c825(0x196),_0x20f6f2,_0x20f6f2[_0x56c825(0x19f)]),_0x534d01&&_0x4e8cbe[_0x56c825(0x187)](_0x56c825(0x169),JSON[_0x56c825(0x1ac)](_0x534d01));const _0x42ea92=this[_0x56c825(0x155)](_0x56c825(0x17a)+_0x3b7a30+_0x56c825(0x1af),_0x56c825(0x175),_0x4e8cbe);return{'getId':async()=>(await _0x42ea92[_0x56c825(0x15f)])[_0x56c825(0x184)](),'abortController':_0x42ea92[_0x56c825(0x153)]};}[_0x909b49(0x168)](_0x56e970,_0x336aeb){const _0x4951da=_0x909b49,_0x4dbc8b=this[_0x4951da(0x155)](_0x4951da(0x17a)+_0x56e970+_0x4951da(0x150)+_0x336aeb,_0x4951da(0x16c));return{'getDocument':async()=>(await _0x4dbc8b[_0x4951da(0x15f)])[_0x4951da(0x184)](),'abortController':_0x4dbc8b[_0x4951da(0x153)]};}[_0x909b49(0x189)](_0x290556,_0x469e2d,_0x2ab5f3){const _0xc118fd=_0x909b49,_0x33f0eb={'content':_0x469e2d};_0x2ab5f3&&(_0x33f0eb[_0xc118fd(0x169)]=_0x2ab5f3);const _0x164c8e=this[_0xc118fd(0x155)](_0xc118fd(0x17a)+_0x290556+_0xc118fd(0x1a3),_0xc118fd(0x175),_0x33f0eb);return{'getId':async()=>(await _0x164c8e[_0xc118fd(0x15f)])[_0xc118fd(0x184)](),'abortController':_0x164c8e[_0xc118fd(0x153)]};}[_0x909b49(0x17e)](_0x2e1c57,_0x4b2575){const _0x5507a1=_0x909b49,_0x360531=new URLSearchParams();_0x360531[_0x5507a1(0x187)](_0x5507a1(0x18e),_0x5507a1(0x14f)),_0x360531[_0x5507a1(0x187)](_0x5507a1(0x144),_0x5507a1(0x172)),_0x360531[_0x5507a1(0x187)](_0x5507a1(0x152),_0x2e1c57),_0x4b2575&&_0x360531[_0x5507a1(0x187)](_0x5507a1(0x137),_0x4b2575);const _0x5489a6=this[_0x5507a1(0x155)](_0x5507a1(0x164)+_0x360531[_0x5507a1(0x170)](),_0x5507a1(0x16c));return{'getConversations':async()=>{const _0x62398e=_0x5507a1,_0x25f52c=await _0x5489a6[_0x62398e(0x15f)];return(await _0x25f52c[_0x62398e(0x184)]())[_0x62398e(0x163)];},'abortController':_0x5489a6[_0x5507a1(0x153)]};}[_0x909b49(0x192)](_0x4b829f){const _0x167c3a=_0x909b49,_0x495e0a=this[_0x167c3a(0x155)](_0x167c3a(0x17a)+_0x4b829f,_0x167c3a(0x1ad));return{'execute':async()=>{const _0x101bbf=_0x167c3a;await _0x495e0a[_0x101bbf(0x15f)];},'abortController':_0x495e0a[_0x167c3a(0x153)]};}[_0x909b49(0x174)](_0x2a75e9,_0x3930f2){const _0x5c2a53=_0x909b49,_0x56b716=this[_0x5c2a53(0x155)](_0x5c2a53(0x17a)+_0x2a75e9,_0x5c2a53(0x1aa),_0x3930f2);return{'getResult':async()=>(await _0x56b716[_0x5c2a53(0x15f)],_0x3930f2),'abortController':_0x56b716[_0x5c2a53(0x153)]};}[_0x909b49(0x157)](_0x3d57db){const _0x664176=_0x909b49,_0x1e80c4=this[_0x664176(0x155)](_0x664176(0x17a)+_0x3d57db,_0x664176(0x16c));return{'getConversation':async()=>(await _0x1e80c4[_0x664176(0x15f)])[_0x664176(0x184)](),'abortController':_0x1e80c4[_0x664176(0x153)]};}[_0x909b49(0x14a)](_0x2a81e5){const _0x462d33=_0x909b49,_0x5d2f9f=this[_0x462d33(0x155)](_0x462d33(0x17a)+_0x2a81e5+_0x462d33(0x16f),_0x462d33(0x16c));return{'getMessages':async()=>{const _0x31ed37=_0x462d33,_0x5a3a16=await _0x5d2f9f[_0x31ed37(0x15f)];return(await _0x5a3a16[_0x31ed37(0x184)]())[_0x31ed37(0x163)];},'abortController':_0x5d2f9f[_0x462d33(0x153)]};}[_0x909b49(0x15c)](_0x340e30,_0x103f69,_0x125925){const _0x46ab5a=_0x909b49,_0x392ec1=this[_0x46ab5a(0x155)](_0x46ab5a(0x17a)+_0x340e30+_0x46ab5a(0x19d),_0x46ab5a(0x175),{'url':_0x103f69,'attributes':_0x125925});return{'getId':async()=>(await _0x392ec1[_0x46ab5a(0x15f)])[_0x46ab5a(0x184)](),'abortController':_0x392ec1[_0x46ab5a(0x153)]};}[_0x909b49(0x158)](){const _0x3c7f51=_0x909b49,_0x1b3124=this[_0x3c7f51(0x155)](_0x3c7f51(0x185),_0x3c7f51(0x16c));return{'list':async()=>{const _0x3680f9=_0x3c7f51,_0x3ade38=await(await _0x1b3124[_0x3680f9(0x15f)])[_0x3680f9(0x184)](),_0x467769=_0x3ade38[_0x3680f9(0x163)][_0x3680f9(0x1a6)](_0x4a4c7e=>({..._0x4a4c7e,'description':_0xc58144(this[_0x3680f9(0x13a)][_0x3680f9(0x190)],_0x3680f9(0x1a0)+_0x4a4c7e['id'][_0x3680f9(0x18d)]())}));return{..._0x3ade38,'items':_0x467769};},'abortController':_0x1b3124[_0x3c7f51(0x153)]};}[_0x909b49(0x19c)](_0x61d32,_0x25a223){const _0x5a518d=_0x909b49,_0x34408c=this[_0x5a518d(0x155)](_0x5a518d(0x17a)+_0x61d32+_0x5a518d(0x13f)+_0x25a223,_0x5a518d(0x1ad));return{'execute':async()=>{const _0x237550=_0x5a518d;await _0x34408c[_0x237550(0x15f)];},'abortController':_0x34408c[_0x5a518d(0x153)]};}[_0x909b49(0x161)](_0x8b3714,_0x3e5284){const _0x1f4f06=_0x909b49,_0x282204=this[_0x1f4f06(0x155)](_0x1f4f06(0x17a)+_0x8b3714+_0x1f4f06(0x150)+_0x3e5284,_0x1f4f06(0x1ad));return{'execute':async()=>{const _0x171946=_0x1f4f06;await _0x282204[_0x171946(0x15f)];},'abortController':_0x282204[_0x1f4f06(0x153)]};}[_0x909b49(0x19e)](_0x198452,_0x2619d0){const _0x10e76a=_0x909b49,_0x58f5e7=this[_0x10e76a(0x155)](_0x10e76a(0x17a)+_0x198452+_0x10e76a(0x16a)+_0x2619d0,_0x10e76a(0x1ad));return{'execute':async()=>{const _0x3e9012=_0x10e76a;await _0x58f5e7[_0x3e9012(0x15f)];},'abortController':_0x58f5e7[_0x10e76a(0x153)]};}[_0x909b49(0x177)]({reviewName:_0x48506f,content:_0x5d18bb,args:_0x5997a6}){const _0x5d6ea8=_0x909b49,_0x1fe21f=this[_0x5d6ea8(0x155)](_0x5d6ea8(0x159)+_0x48506f+_0x5d6ea8(0x183),_0x5d6ea8(0x175),{'content':[{'type':_0x5d6ea8(0x19a),'content':_0x5d18bb}],'args':_0x5997a6});return{'getStream':async()=>{const _0x252634=_0x5d6ea8,_0x248c48=(await _0x1fe21f[_0x252634(0x15f)])[_0x252634(0x197)];return this[_0x252634(0x15d)](_0x248c48);},'abortController':_0x1fe21f[_0x5d6ea8(0x153)]};}[_0x909b49(0x16b)]({content:_0x4575e2,prompt:_0x1edaa3,model:_0x1e6dbe}){const _0x5d7bcd=_0x909b49,_0x4608ad=this[_0x5d7bcd(0x155)](_0x5d7bcd(0x194),_0x5d7bcd(0x175),{'content':[{'type':_0x5d7bcd(0x19a),'content':_0x4575e2}],'prompt':_0x1edaa3,'model':_0x1e6dbe});return{'getStream':async()=>{const _0x34289e=_0x5d7bcd,_0x53c736=(await _0x4608ad[_0x34289e(0x15f)])[_0x34289e(0x197)];return this[_0x34289e(0x15d)](_0x53c736);},'abortController':_0x4608ad[_0x5d7bcd(0x153)]};}[_0x909b49(0x155)](_0x2e6e2a,_0x25572d,_0x367a05){const _0x29fffb=_0x909b49,_0x1cd6ac=new AbortController(),_0x3853e2=_0x367a05 instanceof FormData,_0x585a6e={'Authorization':_0x29fffb(0x167)+this[_0x29fffb(0x19b)]?.[_0x29fffb(0x1a4)]};_0x367a05&&!_0x3853e2&&(_0x585a6e[_0x29fffb(0x17b)]=_0x29fffb(0x176));const _0x42e194={'method':_0x25572d,'headers':_0x585a6e,'signal':_0x1cd6ac[_0x29fffb(0x13e)]};return _0x367a05&&(_0x42e194[_0x29fffb(0x197)]=_0x3853e2?_0x367a05:JSON[_0x29fffb(0x1ac)](_0x367a05)),{'request':fetch(''+this[_0x29fffb(0x1a2)]+_0x2e6e2a,_0x42e194)[_0x29fffb(0x16d)](_0x1184f3=>{const _0x118a9b=_0x29fffb;this[_0x118a9b(0x1a8)](_0x1184f3);})[_0x29fffb(0x18c)](_0x29763d=>{const _0x48e8db=_0x29fffb;if(!_0x29763d['ok'])throw new _0xb0e18e(_0x48e8db(0x198),this);return _0x29763d;}),'abortController':_0x1cd6ac};}async*[_0x909b49(0x15d)](_0x2be1e4){const _0x17b471=_0x909b49,_0xe08c02=[],_0x19fad7=_0x2be1e4[_0x17b471(0x138)](),_0x187f94=_0x4e0481({'onError':_0x5a105f=>{const _0x169264=_0x17b471;this[_0x169264(0x1a8)](_0x5a105f);},'onEvent':_0x4eb2fb=>{const _0x53dabe=_0x17b471;_0x4eb2fb[_0x53dabe(0x141)]=JSON[_0x53dabe(0x179)](_0x4eb2fb[_0x53dabe(0x141)]),_0xe08c02[_0x53dabe(0x17d)](_0x4eb2fb);}});try{let _0x1c4c75=!0x1;for(;!_0x1c4c75;){const {done:_0x51fbf8,value:_0x61215}=await _0x19fad7[_0x17b471(0x1b3)]();_0x51fbf8&&(_0x1c4c75=!0x0),_0x187f94[_0x17b471(0x14e)](this[_0x17b471(0x142)][_0x17b471(0x1a1)](_0x61215,{'stream':!0x0})),yield*_0xe08c02,_0xe08c02[_0x17b471(0x14d)]=0x0;}}catch(_0x1b045e){this[_0x17b471(0x1a8)](_0x1b045e);}finally{_0x19fad7[_0x17b471(0x1b0)](),_0x187f94[_0x17b471(0x14b)]();}}[_0x909b49(0x1a8)](_0x2f637c){const _0x39f327=_0x909b49;if(_0x2f637c instanceof _0xb0e18e)throw _0x2f637c;if(_0x2f637c instanceof Error&&_0x39f327(0x188)===_0x2f637c[_0x39f327(0x19f)])throw new _0xb0e18e(_0x39f327(0x151),this,{'originalError':_0x2f637c});throw new _0xb0e18e(_0x39f327(0x198),this,{'originalError':_0x2f637c});}}
23
+ const _0x2b6368=_0x31e0;(function(_0x1b5aa0,_0x5d0168){const _0x4ec54f=_0x31e0,_0x5ca25d=_0x1b5aa0();while(!![]){try{const _0x1e4cb8=-parseInt(_0x4ec54f(0x154))/0x1*(parseInt(_0x4ec54f(0x197))/0x2)+-parseInt(_0x4ec54f(0x19b))/0x3+parseInt(_0x4ec54f(0x1c5))/0x4+parseInt(_0x4ec54f(0x174))/0x5*(-parseInt(_0x4ec54f(0x16a))/0x6)+-parseInt(_0x4ec54f(0x1b9))/0x7+-parseInt(_0x4ec54f(0x14f))/0x8*(-parseInt(_0x4ec54f(0x1a3))/0x9)+parseInt(_0x4ec54f(0x1a1))/0xa;if(_0x1e4cb8===_0x5d0168)break;else _0x5ca25d['push'](_0x5ca25d['shift']());}catch(_0x2a6ef4){_0x5ca25d['push'](_0x5ca25d['shift']());}}}(_0x5bc3,0x401aa));import{createParser as _0x438406}from'eventsource-parser';import{ContextPlugin as _0xc68553}from'ckeditor5/src/core.js';import{CKEditorError as _0x5673cc}from'ckeditor5/src/utils.js';import{getTranslation as _0x23048a}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x44f60a){const _0x3c2e58=_0x31e0;_0x44f60a[_0x3c2e58(0x183)]=_0x3c2e58(0x198),_0x44f60a[_0x3c2e58(0x177)]=_0x3c2e58(0x16f),_0x44f60a[_0x3c2e58(0x1b2)]=_0x3c2e58(0x182),_0x44f60a[_0x3c2e58(0x1a4)]=_0x3c2e58(0x169),_0x44f60a[_0x3c2e58(0x180)]=_0x3c2e58(0x14c),_0x44f60a[_0x3c2e58(0x196)]=_0x3c2e58(0x188),_0x44f60a[_0x3c2e58(0x19a)]=_0x3c2e58(0x1c2),_0x44f60a[_0x3c2e58(0x191)]=_0x3c2e58(0x16e);}(AIActionsNames||(AIActionsNames={}));function _0x31e0(_0x373c26,_0x580f06){const _0x5bc367=_0x5bc3();return _0x31e0=function(_0x31e071,_0xbac888){_0x31e071=_0x31e071-0x144;let _0x416186=_0x5bc367[_0x31e071];return _0x416186;},_0x31e0(_0x373c26,_0x580f06);}export class AIConnector extends _0xc68553{[_0x2b6368(0x156)];[_0x2b6368(0x187)];[_0x2b6368(0x1a7)];static get[_0x2b6368(0x195)](){const _0x4f648d=_0x2b6368;return[_0x4f648d(0x146)];}static get[_0x2b6368(0x1a5)](){const _0x5b4032=_0x2b6368;return _0x5b4032(0x158);}static get[_0x2b6368(0x150)](){return!0x0;}static get[_0x2b6368(0x14d)](){return!0x0;}constructor(_0x106389){const _0x378f11=_0x2b6368;super(_0x106389),this[_0x378f11(0x16b)][_0x378f11(0x14a)][_0x378f11(0x152)](_0x378f11(0x1a0),_0x378f11(0x175)),this[_0x378f11(0x156)]=this[_0x378f11(0x16b)][_0x378f11(0x14a)][_0x378f11(0x166)](_0x378f11(0x1a0)),this[_0x378f11(0x187)]=null,this[_0x378f11(0x1a7)]=new TextDecoder();}[_0x2b6368(0x1bd)](){const _0x3ed28c=_0x2b6368,_0x3dc682=this[_0x3ed28c(0x16b)][_0x3ed28c(0x1be)][_0x3ed28c(0x166)](_0x3ed28c(0x146));if(!_0x3dc682[_0x3ed28c(0x15f)])throw new _0x5673cc(_0x3ed28c(0x1ba),this);this[_0x3ed28c(0x187)]=_0x3dc682[_0x3ed28c(0x15f)];}[_0x2b6368(0x164)](_0x18cacd,_0x4f3ae2){const _0x39ab16=_0x2b6368,_0x1afaa4=this[_0x39ab16(0x19e)](_0x39ab16(0x144),_0x39ab16(0x18c),{'id':_0x18cacd,'group':_0x4f3ae2});return{'getConversation':async()=>(await _0x1afaa4[_0x39ab16(0x15d)])[_0x39ab16(0x1c0)](),'abortController':_0x1afaa4[_0x39ab16(0x192)]};}[_0x2b6368(0x157)]({message:_0x21d529,conversationId:_0x2feb53,parts:_0x1feca5,capabilities:_0x3dd566,model:_0x471eb8,quickActionData:_0x5b26ee}){const _0x1cd8da=_0x2b6368,_0x594762={..._0x5b26ee&&{'quickActionData':_0x5b26ee}},_0x3fedce={'prompt':_0x21d529,'content':_0x1feca5,'model':_0x471eb8,..._0x3dd566&&{'capabilities':_0x3dd566},...Object[_0x1cd8da(0x149)](_0x594762)[_0x1cd8da(0x155)]>0x0&&{'attributes':_0x594762}},_0x5457e0=this[_0x1cd8da(0x19e)](_0x1cd8da(0x17d)+_0x2feb53+_0x1cd8da(0x16c),_0x1cd8da(0x18c),_0x3fedce);return{'getStream':async()=>{const _0x4201b9=_0x1cd8da,_0x35e26e=(await _0x5457e0[_0x4201b9(0x15d)])[_0x4201b9(0x14b)];return this[_0x4201b9(0x15b)](_0x35e26e);},'abortController':_0x5457e0[_0x1cd8da(0x192)]};}[_0x2b6368(0x171)]({content:_0x5afb2a,message:_0x26ada9,model:_0x810592,outputFormat:_0x200162}){const _0x1a5669=_0x2b6368,_0x3e057f={'content':[{'type':_0x1a5669(0x1bf),'content':_0x5afb2a}],'prompt':_0x26ada9,'model':_0x810592,'outputFormat':_0x200162},_0x50667a=this[_0x1a5669(0x19e)](_0x1a5669(0x162),_0x1a5669(0x18c),_0x3e057f);return{'getStream':async()=>{const _0x44bb23=_0x1a5669,_0xfe3e25=(await _0x50667a[_0x44bb23(0x15d)])[_0x44bb23(0x14b)];return this[_0x44bb23(0x15b)](_0xfe3e25);},'abortController':_0x50667a[_0x1a5669(0x192)]};}[_0x2b6368(0x1b8)]({actionName:_0x50788a,content:_0x3e3745,args:_0xb2c49a}){const _0x366c57=_0x2b6368,_0x3a83ac={'content':[{'type':_0x366c57(0x1bf),'content':_0x3e3745}],'args':_0xb2c49a},_0x242013=this[_0x366c57(0x19e)](_0x366c57(0x1ad)+_0x50788a+_0x366c57(0x18a),_0x366c57(0x18c),_0x3a83ac);return{'getStream':async()=>{const _0x398a06=_0x366c57,_0x3d5445=(await _0x242013[_0x398a06(0x15d)])[_0x398a06(0x14b)];return this[_0x398a06(0x15b)](_0x3d5445);},'abortController':_0x242013[_0x366c57(0x192)]};}[_0x2b6368(0x172)](_0x571193,_0x35a975,_0x3dbc3a){const _0x414773=_0x2b6368,_0x4fcba5=new FormData();_0x4fcba5[_0x414773(0x1c3)](_0x414773(0x1ae),_0x35a975,_0x35a975[_0x414773(0x153)]),_0x3dbc3a&&_0x4fcba5[_0x414773(0x1c3)](_0x414773(0x148),JSON[_0x414773(0x1b3)](_0x3dbc3a));const _0x36ec5a=this[_0x414773(0x19e)](_0x414773(0x17d)+_0x571193+_0x414773(0x1b0),_0x414773(0x18c),_0x4fcba5);return{'getId':async()=>(await _0x36ec5a[_0x414773(0x15d)])[_0x414773(0x1c0)](),'abortController':_0x36ec5a[_0x414773(0x192)]};}[_0x2b6368(0x1b1)](_0x156dee,_0x59a347){const _0x197adc=_0x2b6368,_0x3499b5=this[_0x197adc(0x19e)](_0x197adc(0x17d)+_0x156dee+_0x197adc(0x1bb)+_0x59a347,_0x197adc(0x173));return{'getDocument':async()=>(await _0x3499b5[_0x197adc(0x15d)])[_0x197adc(0x1c0)](),'abortController':_0x3499b5[_0x197adc(0x192)]};}[_0x2b6368(0x176)](_0x1b6ce4,_0x15825c,_0x19db33){const _0x243591=_0x2b6368,_0xf0d6bb={'content':_0x15825c};_0x19db33&&(_0xf0d6bb[_0x243591(0x148)]=_0x19db33);const _0x3a7969=this[_0x243591(0x19e)](_0x243591(0x17d)+_0x1b6ce4+_0x243591(0x1ac),_0x243591(0x18c),_0xf0d6bb);return{'getId':async()=>(await _0x3a7969[_0x243591(0x15d)])[_0x243591(0x1c0)](),'abortController':_0x3a7969[_0x243591(0x192)]};}[_0x2b6368(0x18f)](_0xd7bdac,_0x5c3c61){const _0x110579=_0x2b6368,_0x1e7329=new URLSearchParams();_0x1e7329[_0x110579(0x1c3)](_0x110579(0x1af),_0x110579(0x17c)),_0x1e7329[_0x110579(0x1c3)](_0x110579(0x199),_0x110579(0x147)),_0x1e7329[_0x110579(0x1c3)](_0x110579(0x17b),_0xd7bdac),_0x5c3c61&&_0x1e7329[_0x110579(0x1c3)](_0x110579(0x15c),_0x5c3c61);const _0x43b7a3=this[_0x110579(0x19e)](_0x110579(0x1ab)+_0x1e7329[_0x110579(0x1b7)](),_0x110579(0x173));return{'getConversations':async()=>{const _0x43ec3e=_0x110579,_0x22bfa1=await _0x43b7a3[_0x43ec3e(0x15d)];return(await _0x22bfa1[_0x43ec3e(0x1c0)]())[_0x43ec3e(0x178)];},'abortController':_0x43b7a3[_0x110579(0x192)]};}[_0x2b6368(0x1a9)](_0xd1cc29){const _0x4467c8=_0x2b6368,_0x3456df=this[_0x4467c8(0x19e)](_0x4467c8(0x17d)+_0xd1cc29,_0x4467c8(0x19c));return{'execute':async()=>{const _0x1c03cc=_0x4467c8;await _0x3456df[_0x1c03cc(0x15d)];},'abortController':_0x3456df[_0x4467c8(0x192)]};}[_0x2b6368(0x194)](_0x35aafa,_0x374b64){const _0x3eb76d=_0x2b6368,_0x4ee2e5=this[_0x3eb76d(0x19e)](_0x3eb76d(0x17d)+_0x35aafa,_0x3eb76d(0x1a6),_0x374b64);return{'getResult':async()=>(await _0x4ee2e5[_0x3eb76d(0x15d)],_0x374b64),'abortController':_0x4ee2e5[_0x3eb76d(0x192)]};}[_0x2b6368(0x168)](_0x597269){const _0x39c34f=_0x2b6368,_0x10143b=this[_0x39c34f(0x19e)](_0x39c34f(0x17d)+_0x597269,_0x39c34f(0x173));return{'getConversation':async()=>(await _0x10143b[_0x39c34f(0x15d)])[_0x39c34f(0x1c0)](),'abortController':_0x10143b[_0x39c34f(0x192)]};}[_0x2b6368(0x161)](_0x16dfbd){const _0x501feb=_0x2b6368,_0x40987c=this[_0x501feb(0x19e)](_0x501feb(0x17d)+_0x16dfbd+_0x501feb(0x16c),_0x501feb(0x173));return{'getMessages':async()=>{const _0x1aaca7=_0x501feb,_0x29c4ef=await _0x40987c[_0x1aaca7(0x15d)];return(await _0x29c4ef[_0x1aaca7(0x1c0)]())[_0x1aaca7(0x178)];},'abortController':_0x40987c[_0x501feb(0x192)]};}[_0x2b6368(0x18b)](_0x5c03b1,_0x2e9438,_0x4ff46a){const _0x4a7a47=_0x2b6368,_0x9ca0b7=this[_0x4a7a47(0x19e)](_0x4a7a47(0x17d)+_0x5c03b1+_0x4a7a47(0x190),_0x4a7a47(0x18c),{'url':_0x2e9438,'attributes':_0x4ff46a});return{'getId':async()=>(await _0x9ca0b7[_0x4a7a47(0x15d)])[_0x4a7a47(0x1c0)](),'abortController':_0x9ca0b7[_0x4a7a47(0x192)]};}[_0x2b6368(0x17f)](){const _0xb6893e=_0x2b6368,_0x546826=this[_0xb6893e(0x19e)](_0xb6893e(0x160),_0xb6893e(0x173));return{'list':async()=>{const _0x3d7933=_0xb6893e,_0x30f69f=await(await _0x546826[_0x3d7933(0x15d)])[_0x3d7933(0x1c0)](),_0x4f8932=_0x30f69f[_0x3d7933(0x178)][_0x3d7933(0x18e)](_0x3d4049=>({..._0x3d4049,'description':_0x23048a(this[_0x3d7933(0x16b)][_0x3d7933(0x18d)],_0x3d7933(0x179)+_0x3d4049['id'][_0x3d7933(0x1b5)]())}));return{..._0x30f69f,'items':_0x4f8932};},'abortController':_0x546826[_0xb6893e(0x192)]};}[_0x2b6368(0x170)](_0x56585d,_0x492b1b){const _0x384f47=_0x2b6368,_0x378f62=this[_0x384f47(0x19e)](_0x384f47(0x17d)+_0x56585d+_0x384f47(0x165)+_0x492b1b,_0x384f47(0x19c));return{'execute':async()=>{const _0x49ee6=_0x384f47;await _0x378f62[_0x49ee6(0x15d)];},'abortController':_0x378f62[_0x384f47(0x192)]};}[_0x2b6368(0x163)](_0xe6aadc,_0x24dcf9){const _0x41f7e6=_0x2b6368,_0x1a5c5d=this[_0x41f7e6(0x19e)](_0x41f7e6(0x17d)+_0xe6aadc+_0x41f7e6(0x1bb)+_0x24dcf9,_0x41f7e6(0x19c));return{'execute':async()=>{const _0x127cc5=_0x41f7e6;await _0x1a5c5d[_0x127cc5(0x15d)];},'abortController':_0x1a5c5d[_0x41f7e6(0x192)]};}[_0x2b6368(0x19f)](_0x2bf8fe,_0x29523a){const _0x232d2c=_0x2b6368,_0x439c23=this[_0x232d2c(0x19e)](_0x232d2c(0x17d)+_0x2bf8fe+_0x232d2c(0x185)+_0x29523a,_0x232d2c(0x19c));return{'execute':async()=>{const _0x46928c=_0x232d2c;await _0x439c23[_0x46928c(0x15d)];},'abortController':_0x439c23[_0x232d2c(0x192)]};}[_0x2b6368(0x1b4)]({reviewName:_0x452d72,content:_0x31256a,args:_0x4d4fbf}){const _0x171936=_0x2b6368,_0x518eeb=this[_0x171936(0x19e)](_0x171936(0x1b6)+_0x452d72+_0x171936(0x18a),_0x171936(0x18c),{'content':[{'type':_0x171936(0x1bf),'content':_0x31256a}],'args':_0x4d4fbf});return{'getStream':async()=>{const _0x480ed5=_0x171936,_0x64cf17=(await _0x518eeb[_0x480ed5(0x15d)])[_0x480ed5(0x14b)];return this[_0x480ed5(0x15b)](_0x64cf17);},'abortController':_0x518eeb[_0x171936(0x192)]};}[_0x2b6368(0x17e)]({content:_0x37a130,prompt:_0x4176c4,model:_0x15b3d9}){const _0x59e347=_0x2b6368,_0x18e2dc=this[_0x59e347(0x19e)](_0x59e347(0x159),_0x59e347(0x18c),{'content':[{'type':_0x59e347(0x1bf),'content':_0x37a130}],'prompt':_0x4176c4,'model':_0x15b3d9});return{'getStream':async()=>{const _0x29c761=_0x59e347,_0x4071b2=(await _0x18e2dc[_0x29c761(0x15d)])[_0x29c761(0x14b)];return this[_0x29c761(0x15b)](_0x4071b2);},'abortController':_0x18e2dc[_0x59e347(0x192)]};}[_0x2b6368(0x19e)](_0x528109,_0x46be8c,_0x1552f4){const _0x25d0c6=_0x2b6368,_0x5b6b39=new AbortController(),_0x2ac2ba=_0x1552f4 instanceof FormData,_0x3e4ed8={'Authorization':_0x25d0c6(0x1c4)+this[_0x25d0c6(0x187)]?.[_0x25d0c6(0x15a)]};_0x1552f4&&!_0x2ac2ba&&(_0x3e4ed8[_0x25d0c6(0x15e)]=_0x25d0c6(0x1a8));const _0x4328a4={'method':_0x46be8c,'headers':_0x3e4ed8,'signal':_0x5b6b39[_0x25d0c6(0x189)]};return _0x1552f4&&(_0x4328a4[_0x25d0c6(0x14b)]=_0x2ac2ba?_0x1552f4:JSON[_0x25d0c6(0x1b3)](_0x1552f4)),{'request':fetch(''+this[_0x25d0c6(0x156)]+_0x528109,_0x4328a4)[_0x25d0c6(0x193)](_0x494e8a=>{const _0x57437a=_0x25d0c6;this[_0x57437a(0x151)](_0x494e8a);})[_0x25d0c6(0x184)](_0x5f5d72=>{const _0x46b254=_0x25d0c6;if(!_0x5f5d72['ok'])throw new _0x5673cc(_0x46b254(0x167),this);return _0x5f5d72;}),'abortController':_0x5b6b39};}async*[_0x2b6368(0x15b)](_0x4b17cb){const _0x2ea2fe=_0x2b6368,_0x338124=[],_0x51e9e2=_0x4b17cb[_0x2ea2fe(0x1c1)](),_0xc71c65=_0x438406({'onError':_0x3714dc=>{const _0x311ec1=_0x2ea2fe;this[_0x311ec1(0x151)](_0x3714dc);},'onEvent':_0x26e63a=>{const _0x58ef41=_0x2ea2fe;_0x26e63a[_0x58ef41(0x19d)]=JSON[_0x58ef41(0x181)](_0x26e63a[_0x58ef41(0x19d)]),_0x338124[_0x58ef41(0x14e)](_0x26e63a);}});try{let _0x1318ed=!0x1;for(;!_0x1318ed;){const {done:_0x12837d,value:_0xac9cb8}=await _0x51e9e2[_0x2ea2fe(0x1bc)]();_0x12837d&&(_0x1318ed=!0x0),_0xc71c65[_0x2ea2fe(0x1a2)](this[_0x2ea2fe(0x1a7)][_0x2ea2fe(0x17a)](_0xac9cb8,{'stream':!0x0})),yield*_0x338124,_0x338124[_0x2ea2fe(0x155)]=0x0;}}catch(_0x5e69f1){this[_0x2ea2fe(0x151)](_0x5e69f1);}finally{_0x51e9e2[_0x2ea2fe(0x186)](),_0xc71c65[_0x2ea2fe(0x145)]();}}[_0x2b6368(0x151)](_0x571c5a){const _0x514d38=_0x2b6368;if(_0x571c5a instanceof _0x5673cc)throw _0x571c5a;if(_0x571c5a instanceof Error&&_0x514d38(0x1aa)===_0x571c5a[_0x514d38(0x153)])throw new _0x5673cc(_0x514d38(0x16d),this,{'originalError':_0x571c5a});throw new _0x5673cc(_0x514d38(0x167),this,{'originalError':_0x571c5a});}}function _0x5bc3(){const _0x10f17b=['limit','MAKE_TONE_FORMAL','1485783yHRSOy','DELETE','data','_sendApiRequest','deleteWebResource','ai.serviceUrl','5317670pOzXok','feed','189hoWZXY','MAKE_LONGER','pluginName','PATCH','_decoder','application/json','deleteConversation','AbortError','/conversations?','/documents','/actions/system/','file','excludeEmpty','/files','fetchDocument','IMPROVE_WRITING','stringify','callSystemReview','toUpperCase','/reviews/system/','toString','executeAction','1274413RDNtbD','ai-missing-token','/documents/','read','init','plugins','text','json','getReader','make-tone-formal','append','Bearer\x20','2051564PWYwuY','/conversations','reset','CloudServices','100','attributes','keys','config','body','make-shorter','isPremiumPlugin','push','178088LTOkyJ','isOfficialPlugin','_handleError','define','name','199603DnQdkk','length','_apiUrl','queryAssistant','AIConnector','/reviews/custom/calls','value','_getStreamReader','search','request','Content-Type','token','/models/1','fetchConversationMessages','/actions/custom/calls','deleteDocument','startConversation','/files/','get','ai-request-failed','fetchConversation','make-longer','79866xEEJbO','context','/messages','ai-request-aborted','translate','fix-grammar','deleteFile','executeCustomAction','uploadFile','GET','65MMyaKR','https://ai.cke-cs.com/v1','uploadDocument','FIX_GRAMMAR','items','AI_MODEL_DESCRIPTION_','decode','group','true','/conversations/','callCustomReview','getModels','MAKE_SHORTER','parse','improve-writing','CONTINUE','then','/web-resources/','releaseLock','_token','make-tone-casual','signal','/calls','uploadUrl','POST','locale','map','fetchConversations','/web-resources','TRANSLATE','abortController','catch','updateConversation','requires','MAKE_TONE_CASUAL','4VJVsnD','continue'];_0x5bc3=function(){return _0x10f17b;};return _0x5bc3();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x188a0d=_0x2391;(function(_0xf81fdd,_0x16fabe){const _0x58947c=_0x2391,_0x2c475f=_0xf81fdd();while(!![]){try{const _0x47fab0=parseInt(_0x58947c(0x1c9))/0x1*(-parseInt(_0x58947c(0x1c5))/0x2)+parseInt(_0x58947c(0x19d))/0x3*(-parseInt(_0x58947c(0x1b3))/0x4)+parseInt(_0x58947c(0x1a7))/0x5*(parseInt(_0x58947c(0x19e))/0x6)+parseInt(_0x58947c(0x184))/0x7+parseInt(_0x58947c(0x1c8))/0x8*(parseInt(_0x58947c(0x190))/0x9)+parseInt(_0x58947c(0x18e))/0xa+-parseInt(_0x58947c(0x1b7))/0xb*(parseInt(_0x58947c(0x19b))/0xc);if(_0x47fab0===_0x16fabe)break;else _0x2c475f['push'](_0x2c475f['shift']());}catch(_0x27a8f4){_0x2c475f['push'](_0x2c475f['shift']());}}}(_0x23be,0x3b4b4));import{ViewDowncastWriter as _0x3687dc}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x45fb06,Editor as _0xe25d3}from'ckeditor5/src/core.js';import{uid as _0x4ef01c}from'ckeditor5/src/utils.js';function _0x23be(){const _0x16bc74=['for','has','emptyElement','ai-selection','createRangeIn','12yixFft','context','15nioxUN','2236818KFZIHy','_getMarkersInDocumentOrder','getMarkersGroup','afterInit','isAfter','ck-fake-ai-selection','$textProxy','indexOf','editors','5TASJeF','setAttribute','substring','_sessionId','toView','toData','pluginName','selection','data-id','RealTimeCollaborationClient','removeAllRanges','getDocumentData','177932WLQdaZ','floor',':start></','isOfficialPlugin','9625341YZjzbj','get','createUIElement','getWalker','_integrateEditor','showFakeVisualSelection','getLastMatchingPosition','editingDowncast','addMarker',':start>','_nextDataId','isBefore','containerElement','getRoot','257102tAYDij','markerToHighlight','from','7496hLJKAS','3vDAwAK','hideFakeVisualSelection','change','ck-ai-assistant-ui_theme','conversion','isAtEnd','random','end','_displayedFakeSelectionId','sessionId','length','model','add','getChildren','AIEditing','getSelectedContent','trim','_displayedFakeSelectionLocked','markers','name','version','join','editing','plugins','element',':end></','start','getSelection','fromCharCode','removeMarker','ready',':end>','ai-selection:','push','isContent','listenTo','schema','data','2834811vuRkoX','getStart','document','createRange','processor','sort','getSelectionText','_setDataIdsOnChildren','convertAiChatSelectionMarker','markerToElement','4750060gCAzmR','view','4545ZcFJHG','dataDowncast','modelToViewWithIds','markerName','isPremiumPlugin','isOpening'];_0x23be=function(){return _0x16bc74;};return _0x23be();}import{getEditorFromContext as _0x988298}from'./utils/geteditorfromcontext.js';function _0x2391(_0x200257,_0x435f9e){const _0x23bee8=_0x23be();return _0x2391=function(_0x2391c1,_0x42b51c){_0x2391c1=_0x2391c1-0x176;let _0x52363b=_0x23bee8[_0x2391c1];return _0x52363b;},_0x2391(_0x200257,_0x435f9e);}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x188a0d(0x199);export class AIEditing extends _0x45fb06{[_0x188a0d(0x1d1)]=null;[_0x188a0d(0x1da)]=!0x1;[_0x188a0d(0x1aa)];static get[_0x188a0d(0x1ad)](){const _0x4e5499=_0x188a0d;return _0x4e5499(0x1d7);}static get[_0x188a0d(0x1b6)](){return!0x0;}static get[_0x188a0d(0x194)](){return!0x0;}get[_0x188a0d(0x1d2)](){const _0x31dd86=_0x188a0d;if(!this[_0x31dd86(0x1aa)]){const _0x555e6c=_0x988298(this[_0x31dd86(0x19c)]),_0x8b3d2b=_0x555e6c[_0x31dd86(0x1e0)][_0x31dd86(0x197)](_0x31dd86(0x1b0))&&_0x555e6c[_0x31dd86(0x1e0)][_0x31dd86(0x1b8)](_0x31dd86(0x1b0))[_0x31dd86(0x1d2)];this[_0x31dd86(0x1aa)]=_0x8b3d2b||_0x4ef01c();}return this[_0x31dd86(0x1aa)];}[_0x188a0d(0x1b2)](){const _0x25ad60=_0x188a0d,_0x460ac8=_0x988298(this[_0x25ad60(0x19c)]),_0x20fefa=_0x460ac8[_0x25ad60(0x1d4)],_0x4a4002=_0x460ac8[_0x25ad60(0x183)][_0x25ad60(0x1ab)](_0x20fefa[_0x25ad60(0x186)][_0x25ad60(0x1c4)](),{'convertAiChatSelectionMarker':!0x0}),_0x5fe1a8=new _0x3687dc(_0x460ac8[_0x25ad60(0x1df)][_0x25ad60(0x18f)][_0x25ad60(0x186)]);this[_0x25ad60(0x18b)](_0x4a4002,_0x5fe1a8);let _0x1e373e=_0x460ac8[_0x25ad60(0x183)][_0x25ad60(0x188)][_0x25ad60(0x1ac)](_0x4a4002);const _0x1ef1cf=this[_0x25ad60(0x19f)](),_0x5eb46e=[];for(const _0x50e439 of _0x1ef1cf){const _0xd7cdba='<'+_0x50e439[_0x25ad60(0x1dc)]+_0x25ad60(0x1b5)+_0x50e439[_0x25ad60(0x1dc)]+_0x25ad60(0x1c0),_0xae5fda=_0x1e373e[_0x25ad60(0x1a5)](_0xd7cdba);_0x1e373e=_0x1e373e[_0x25ad60(0x1a9)](0x0,_0xae5fda)+_0x1e373e[_0x25ad60(0x1a9)](_0xae5fda+_0xd7cdba[_0x25ad60(0x1d3)]);const _0x429677='<'+_0x50e439[_0x25ad60(0x1dc)]+_0x25ad60(0x177)+_0x50e439[_0x25ad60(0x1dc)]+_0x25ad60(0x17d),_0x4a87f2=_0x1e373e[_0x25ad60(0x1a5)](_0x429677);_0x1e373e=_0x1e373e[_0x25ad60(0x1a9)](0x0,_0x4a87f2)+_0x1e373e[_0x25ad60(0x1a9)](_0x4a87f2+_0x429677[_0x25ad60(0x1d3)]),_0x5eb46e[_0x25ad60(0x17f)]({'markerName':_0x50e439[_0x25ad60(0x1dc)],'start':_0xae5fda,'end':_0x4a87f2,'htmlFragment':_0x1e373e[_0x25ad60(0x1a9)](_0xae5fda,_0x4a87f2)});}return{'content':_0x1e373e,'version':_0x460ac8[_0x25ad60(0x1d4)][_0x25ad60(0x186)][_0x25ad60(0x1dd)],'sessionId':this[_0x25ad60(0x1d2)],'selections':_0x5eb46e};}async[_0x188a0d(0x1a1)](){const _0x489f30=_0x188a0d;this[_0x489f30(0x19c)]instanceof _0xe25d3?this[_0x489f30(0x1bb)](this[_0x489f30(0x19c)]):this[_0x489f30(0x181)](this[_0x489f30(0x19c)][_0x489f30(0x1a6)],_0x489f30(0x1d5),(_0x131a21,_0x3ed810)=>{const _0x252d4d=_0x489f30;_0x3ed810['on'](_0x252d4d(0x17c),()=>{const _0x506417=_0x252d4d;this[_0x506417(0x1bb)](_0x3ed810);});});}[_0x188a0d(0x1bb)](_0xd21c1c){const _0x4047ea=_0x188a0d;_0xd21c1c[_0x4047ea(0x1cd)][_0x4047ea(0x196)](_0x4047ea(0x1be))[_0x4047ea(0x1c6)]({'model':_0x4047ea(0x199),'view':{'classes':[_0x4047ea(0x1a3),_0x4047ea(0x1cc)],'priority':0xc}}),_0xd21c1c[_0x4047ea(0x1cd)][_0x4047ea(0x196)](_0x4047ea(0x191))[_0x4047ea(0x18d)]({'model':_0x4047ea(0x199),'view':(_0x3ad8ce,{writer:_0x3a5935,options:_0x2801ca})=>_0x2801ca[_0x4047ea(0x18c)]?_0x3a5935[_0x4047ea(0x1b9)](_0x3ad8ce[_0x4047ea(0x193)]+':'+(_0x3ad8ce[_0x4047ea(0x195)]?_0x4047ea(0x178):_0x4047ea(0x1d0))):null});}[_0x188a0d(0x1bc)](_0x178e9f,_0xaa3264,_0x40f7f1=!0x1,_0x3c1e65=!0x1){const _0x32f551=_0x188a0d;if(this[_0x32f551(0x1da)]&&!_0x3c1e65)return!0x1;this[_0x32f551(0x1d1)]&&this[_0x32f551(0x1ca)](this[_0x32f551(0x1d1)]),this[_0x32f551(0x1d1)]=_0xaa3264,this[_0x32f551(0x1da)]=_0x40f7f1;const _0x3e297f=_0x988298(this[_0x32f551(0x19c)])[_0x32f551(0x1d4)];return _0x3e297f[_0x32f551(0x1cb)](_0x3baaaf=>{const _0x3837cd=_0x32f551;let _0x2eb599=0x0;for(let _0xfc3268 of _0x178e9f){const _0x82bb7d=_0x3837cd(0x17e)+_0x2eb599;if(_0xfc3268[_0x3837cd(0x178)][_0x3837cd(0x1ce)]){const _0x23ef7e=_0xfc3268[_0x3837cd(0x178)][_0x3837cd(0x1bd)](({item:_0x182ef1})=>!_0x3e297f[_0x3837cd(0x182)][_0x3837cd(0x180)](_0x182ef1),{'boundaries':_0xfc3268});_0xfc3268=_0x3baaaf[_0x3837cd(0x187)](_0x23ef7e,_0xfc3268[_0x3837cd(0x1d0)]);}_0x3baaaf[_0x3837cd(0x1bf)](_0x82bb7d,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0xfc3268}),_0x2eb599++;}}),window[_0x32f551(0x179)]()?.[_0x32f551(0x1b1)](),!0x0;}[_0x188a0d(0x1ca)](_0x2fcdf0){const _0x4a93d1=_0x188a0d;if(this[_0x4a93d1(0x1d1)]!=_0x2fcdf0)return!0x1;this[_0x4a93d1(0x1d1)]=null,this[_0x4a93d1(0x1da)]=!0x1;const _0x486332=_0x988298(this[_0x4a93d1(0x19c)]),_0x16020e=_0x486332[_0x4a93d1(0x1d4)][_0x4a93d1(0x1db)][_0x4a93d1(0x1a0)](_0x4a93d1(0x199));return _0x486332[_0x4a93d1(0x1d4)][_0x4a93d1(0x1cb)](_0x437427=>{const _0x3c6044=_0x4a93d1;for(const _0xa34e7e of _0x16020e)_0x437427[_0x3c6044(0x17b)](_0xa34e7e);}),!0x0;}[_0x188a0d(0x192)](_0x52ec12){const _0x5e9d59=_0x188a0d,_0x113df9=_0x988298(this[_0x5e9d59(0x19c)]),_0x1837c0=_0x113df9[_0x5e9d59(0x183)][_0x5e9d59(0x1ab)](_0x52ec12),_0x41afd0=new _0x3687dc(_0x113df9[_0x5e9d59(0x1df)][_0x5e9d59(0x18f)][_0x5e9d59(0x186)]);return this[_0x5e9d59(0x18b)](_0x1837c0,_0x41afd0),_0x1837c0;}[_0x188a0d(0x18b)](_0x34f992,_0x2d3162){const _0x5025d7=_0x188a0d;let _0xcf4210=!0x1;const _0x3bce59=new Set();for(const _0x2f9e0a of _0x34f992[_0x5025d7(0x1d6)]()){const _0x540d62=_0x2f9e0a['is'](_0x5025d7(0x198))||_0x2f9e0a['is'](_0x5025d7(0x1c3));if(!_0x2f9e0a['is'](_0x5025d7(0x176)))continue;(this[_0x5025d7(0x18b)](_0x2f9e0a,_0x2d3162)||_0x540d62)&&(_0x2d3162[_0x5025d7(0x1a8)](_0x5025d7(0x1af),this[_0x5025d7(0x1c1)](_0x3bce59),_0x2f9e0a),_0xcf4210=!0x0);}return _0xcf4210;}[_0x188a0d(0x1c1)](_0x5580c6){const _0x226248=_0x188a0d;let _0x46a3d1;do{_0x46a3d1='';for(let _0x1259d2=0x0;_0x1259d2<0x4;_0x1259d2++)_0x46a3d1+=String[_0x226248(0x17a)](0x61+Math[_0x226248(0x1b4)](0x1a*Math[_0x226248(0x1cf)]()));}while(_0x5580c6[_0x226248(0x197)](_0x46a3d1));return _0x5580c6[_0x226248(0x1d5)](_0x46a3d1),_0x46a3d1;}[_0x188a0d(0x18a)](){const _0x21e5cb=_0x188a0d,{model:_0x596007}=_0x988298(this[_0x21e5cb(0x19c)]),_0x493d57=_0x596007[_0x21e5cb(0x186)][_0x21e5cb(0x1ae)],_0x2add03=_0x596007[_0x21e5cb(0x1d8)](_0x493d57),_0x56cc81=[],_0x16b315=_0x596007[_0x21e5cb(0x19a)](_0x2add03)[_0x21e5cb(0x1ba)]();for(const {item:_0x333355}of _0x16b315)_0x333355['is'](_0x21e5cb(0x1a4))?_0x56cc81[_0x21e5cb(0x17f)](_0x333355[_0x21e5cb(0x183)]):_0x333355['is'](_0x21e5cb(0x176))&&_0x56cc81[_0x21e5cb(0x1d3)]>0x0&&'\x20'!==_0x56cc81[_0x56cc81[_0x21e5cb(0x1d3)]-0x1]&&_0x56cc81[_0x21e5cb(0x17f)]('\x20');return'\x22'+_0x56cc81[_0x21e5cb(0x1de)]('')[_0x21e5cb(0x1d9)]()+'\x22';}[_0x188a0d(0x19f)](){const _0x277f4d=_0x188a0d,_0x85a2e1=_0x988298(this[_0x277f4d(0x19c)])[_0x277f4d(0x1d4)];return Array[_0x277f4d(0x1c7)](_0x85a2e1[_0x277f4d(0x1db)][_0x277f4d(0x1a0)](_0x277f4d(0x199)))[_0x277f4d(0x189)]((_0x42072f,_0x4831e9)=>_0x42072f[_0x277f4d(0x185)]()[_0x277f4d(0x1c2)](_0x4831e9[_0x277f4d(0x185)]())?-0x1:_0x42072f[_0x277f4d(0x185)]()[_0x277f4d(0x1a2)](_0x4831e9[_0x277f4d(0x185)]())?0x1:0x0);}}
23
+ const _0x1172e5=_0x3983;(function(_0x47b02b,_0x2c6441){const _0xc93d1c=_0x3983,_0x30a30d=_0x47b02b();while(!![]){try{const _0x2ed04f=parseInt(_0xc93d1c(0x150))/0x1*(-parseInt(_0xc93d1c(0x10a))/0x2)+parseInt(_0xc93d1c(0xf4))/0x3+-parseInt(_0xc93d1c(0x146))/0x4+parseInt(_0xc93d1c(0x11a))/0x5*(-parseInt(_0xc93d1c(0x102))/0x6)+-parseInt(_0xc93d1c(0xe7))/0x7*(-parseInt(_0xc93d1c(0x13b))/0x8)+parseInt(_0xc93d1c(0xea))/0x9*(-parseInt(_0xc93d1c(0x12c))/0xa)+parseInt(_0xc93d1c(0xf7))/0xb;if(_0x2ed04f===_0x2c6441)break;else _0x30a30d['push'](_0x30a30d['shift']());}catch(_0x1044d0){_0x30a30d['push'](_0x30a30d['shift']());}}}(_0x2916,0x459f6));import{ViewDowncastWriter as _0x39e183}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x10beb9,Editor as _0x46c0e7}from'ckeditor5/src/core.js';function _0x2916(){const _0x3265dd=['2000384edgBop','markerName','isOfficialPlugin','schema','sort','createRange','markerToElement','convertAiChatSelectionMarker','has','from','1438XIKNFX','14rQmAsb','trim',':start>','11862hEvPZw','ck-fake-ai-selection','getDocumentData','selection','indexOf','_displayedFakeSelectionLocked','removeMarker','sessionId','_setDataIdsOnChildren','createUIElement','171300TWytWk','toData','isBefore','16095453NhtMOp','_getMarkersInDocumentOrder','setAttribute','substring','showFakeVisualSelection','modelToViewWithIds','_nextDataId','getSelection','$textProxy','ai-selection:','removeAllRanges','786ucFFRZ','document','ai-selection','add','plugins','isPremiumPlugin','editors','floor','604QpSPTh','listenTo','markerToHighlight','RealTimeCollaborationClient','isOpening','version','isContent','fromCharCode','createRangeIn','getSelectionText',':end>',':start></','addMarker','toView','length','join','12435hZPCyo','getRoot','pluginName','get','_sessionId','isAfter','containerElement','ready','afterInit','editing','getLastMatchingPosition','getChildren','element','markers','getStart','AIEditing',':end></','for','20GNOxAV','context','start','isAtEnd','data','view','random','model','processor','conversion','push','editingDowncast','data-id','dataDowncast','end','110624agoAfx','_displayedFakeSelectionId','hideFakeVisualSelection','ck-ai-assistant-ui_theme','getWalker','emptyElement','change','name','getMarkersGroup','_integrateEditor','getSelectedContent'];_0x2916=function(){return _0x3265dd;};return _0x2916();}import{uid as _0x29e5c6}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x26d4bd}from'./utils/geteditorfromcontext.js';function _0x3983(_0x138c0b,_0x16683f){const _0x2916c5=_0x2916();return _0x3983=function(_0x3983cd,_0x167cfe){_0x3983cd=_0x3983cd-0xe7;let _0x42c7af=_0x2916c5[_0x3983cd];return _0x42c7af;},_0x3983(_0x138c0b,_0x16683f);}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x1172e5(0x104);export class AIEditing extends _0x10beb9{[_0x1172e5(0x13c)]=null;[_0x1172e5(0xef)]=!0x1;[_0x1172e5(0x11e)];static get[_0x1172e5(0x11c)](){const _0x14e814=_0x1172e5;return _0x14e814(0x129);}static get[_0x1172e5(0x148)](){return!0x0;}static get[_0x1172e5(0x107)](){return!0x0;}get[_0x1172e5(0xf1)](){const _0x281366=_0x1172e5;if(!this[_0x281366(0x11e)]){const _0x9c7ee5=_0x26d4bd(this[_0x281366(0x12d)]),_0x5dbbba=_0x9c7ee5[_0x281366(0x106)][_0x281366(0x14e)](_0x281366(0x10d))&&_0x9c7ee5[_0x281366(0x106)][_0x281366(0x11d)](_0x281366(0x10d))[_0x281366(0xf1)];this[_0x281366(0x11e)]=_0x5dbbba||_0x29e5c6();}return this[_0x281366(0x11e)];}[_0x1172e5(0xec)](){const _0x333e5c=_0x1172e5,_0x3fba5e=_0x26d4bd(this[_0x333e5c(0x12d)]),_0x4f6ac6=_0x3fba5e[_0x333e5c(0x133)],_0x15df52=_0x3fba5e[_0x333e5c(0x130)][_0x333e5c(0x117)](_0x4f6ac6[_0x333e5c(0x103)][_0x333e5c(0x11b)](),{'convertAiChatSelectionMarker':!0x0}),_0x3e9a35=new _0x39e183(_0x3fba5e[_0x333e5c(0x123)][_0x333e5c(0x131)][_0x333e5c(0x103)]);this[_0x333e5c(0xf2)](_0x15df52,_0x3e9a35);let _0x2a52ab=_0x3fba5e[_0x333e5c(0x130)][_0x333e5c(0x134)][_0x333e5c(0xf5)](_0x15df52);const _0x288b7b=this[_0x333e5c(0xf8)](),_0x207860=[];for(const _0x46c9e8 of _0x288b7b){const _0x25c3ea='<'+_0x46c9e8[_0x333e5c(0x142)]+_0x333e5c(0x115)+_0x46c9e8[_0x333e5c(0x142)]+_0x333e5c(0xe9),_0x1b4b6b=_0x2a52ab[_0x333e5c(0xee)](_0x25c3ea);_0x2a52ab=_0x2a52ab[_0x333e5c(0xfa)](0x0,_0x1b4b6b)+_0x2a52ab[_0x333e5c(0xfa)](_0x1b4b6b+_0x25c3ea[_0x333e5c(0x118)]);const _0xd7c3c4='<'+_0x46c9e8[_0x333e5c(0x142)]+_0x333e5c(0x12a)+_0x46c9e8[_0x333e5c(0x142)]+_0x333e5c(0x114),_0xf741d3=_0x2a52ab[_0x333e5c(0xee)](_0xd7c3c4);_0x2a52ab=_0x2a52ab[_0x333e5c(0xfa)](0x0,_0xf741d3)+_0x2a52ab[_0x333e5c(0xfa)](_0xf741d3+_0xd7c3c4[_0x333e5c(0x118)]),_0x207860[_0x333e5c(0x136)]({'markerName':_0x46c9e8[_0x333e5c(0x142)],'start':_0x1b4b6b,'end':_0xf741d3,'htmlFragment':_0x2a52ab[_0x333e5c(0xfa)](_0x1b4b6b,_0xf741d3)});}return{'content':_0x2a52ab,'version':_0x3fba5e[_0x333e5c(0x133)][_0x333e5c(0x103)][_0x333e5c(0x10f)],'sessionId':this[_0x333e5c(0xf1)],'selections':_0x207860};}async[_0x1172e5(0x122)](){const _0x30d8f3=_0x1172e5;this[_0x30d8f3(0x12d)]instanceof _0x46c0e7?this[_0x30d8f3(0x144)](this[_0x30d8f3(0x12d)]):this[_0x30d8f3(0x10b)](this[_0x30d8f3(0x12d)][_0x30d8f3(0x108)],_0x30d8f3(0x105),(_0xde9691,_0x55b701)=>{const _0x54561f=_0x30d8f3;_0x55b701['on'](_0x54561f(0x121),()=>{const _0x20cd60=_0x54561f;this[_0x20cd60(0x144)](_0x55b701);});});}[_0x1172e5(0x144)](_0x2a5c46){const _0x6e71c=_0x1172e5;_0x2a5c46[_0x6e71c(0x135)][_0x6e71c(0x12b)](_0x6e71c(0x137))[_0x6e71c(0x10c)]({'model':_0x6e71c(0x104),'view':{'classes':[_0x6e71c(0xeb),_0x6e71c(0x13e)],'priority':0xc}}),_0x2a5c46[_0x6e71c(0x135)][_0x6e71c(0x12b)](_0x6e71c(0x139))[_0x6e71c(0x14c)]({'model':_0x6e71c(0x104),'view':(_0xd97837,{writer:_0x42e1dc,options:_0x3d6f5b})=>_0x3d6f5b[_0x6e71c(0x14d)]?_0x42e1dc[_0x6e71c(0xf3)](_0xd97837[_0x6e71c(0x147)]+':'+(_0xd97837[_0x6e71c(0x10e)]?_0x6e71c(0x12e):_0x6e71c(0x13a))):null});}[_0x1172e5(0xfb)](_0x3992da,_0x9bbf55,_0x9b4da2=!0x1,_0x4f1150=!0x1){const _0x2dc727=_0x1172e5;if(this[_0x2dc727(0xef)]&&!_0x4f1150)return!0x1;this[_0x2dc727(0x13c)]&&this[_0x2dc727(0x13d)](this[_0x2dc727(0x13c)]),this[_0x2dc727(0x13c)]=_0x9bbf55,this[_0x2dc727(0xef)]=_0x9b4da2;const _0x36963f=_0x26d4bd(this[_0x2dc727(0x12d)])[_0x2dc727(0x133)];return _0x36963f[_0x2dc727(0x141)](_0x3f452a=>{const _0x791914=_0x2dc727;let _0xc7d2fc=0x0;for(let _0x2b23f5 of _0x3992da){const _0x1f1f50=_0x791914(0x100)+_0xc7d2fc;if(_0x2b23f5[_0x791914(0x12e)][_0x791914(0x12f)]){const _0x21d34d=_0x2b23f5[_0x791914(0x12e)][_0x791914(0x124)](({item:_0x17b293})=>!_0x36963f[_0x791914(0x149)][_0x791914(0x110)](_0x17b293),{'boundaries':_0x2b23f5});_0x2b23f5=_0x3f452a[_0x791914(0x14b)](_0x21d34d,_0x2b23f5[_0x791914(0x13a)]);}_0x3f452a[_0x791914(0x116)](_0x1f1f50,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x2b23f5}),_0xc7d2fc++;}}),window[_0x2dc727(0xfe)]()?.[_0x2dc727(0x101)](),!0x0;}[_0x1172e5(0x13d)](_0xcf058e){const _0x3c33e0=_0x1172e5;if(this[_0x3c33e0(0x13c)]!=_0xcf058e)return!0x1;this[_0x3c33e0(0x13c)]=null,this[_0x3c33e0(0xef)]=!0x1;const _0x55b1b1=_0x26d4bd(this[_0x3c33e0(0x12d)]),_0x1c4f2f=_0x55b1b1[_0x3c33e0(0x133)][_0x3c33e0(0x127)][_0x3c33e0(0x143)](_0x3c33e0(0x104));return _0x55b1b1[_0x3c33e0(0x133)][_0x3c33e0(0x141)](_0x435de1=>{const _0x2fead1=_0x3c33e0;for(const _0x30567a of _0x1c4f2f)_0x435de1[_0x2fead1(0xf0)](_0x30567a);}),!0x0;}[_0x1172e5(0xfc)](_0x13e149){const _0x4ba8a3=_0x1172e5,_0x589462=_0x26d4bd(this[_0x4ba8a3(0x12d)]),_0x4ac45c=_0x589462[_0x4ba8a3(0x130)][_0x4ba8a3(0x117)](_0x13e149),_0x2127bf=new _0x39e183(_0x589462[_0x4ba8a3(0x123)][_0x4ba8a3(0x131)][_0x4ba8a3(0x103)]);return this[_0x4ba8a3(0xf2)](_0x4ac45c,_0x2127bf),_0x4ac45c;}[_0x1172e5(0xf2)](_0x495238,_0x4b33df){const _0x23a4cd=_0x1172e5;let _0x51a7c2=!0x1;const _0x106db1=new Set();for(const _0x5da77a of _0x495238[_0x23a4cd(0x125)]()){const _0x4b958f=_0x5da77a['is'](_0x23a4cd(0x140))||_0x5da77a['is'](_0x23a4cd(0x120));if(!_0x5da77a['is'](_0x23a4cd(0x126)))continue;(this[_0x23a4cd(0xf2)](_0x5da77a,_0x4b33df)||_0x4b958f)&&(_0x4b33df[_0x23a4cd(0xf9)](_0x23a4cd(0x138),this[_0x23a4cd(0xfd)](_0x106db1),_0x5da77a),_0x51a7c2=!0x0);}return _0x51a7c2;}[_0x1172e5(0xfd)](_0x1f005e){const _0x4aae0f=_0x1172e5;let _0x5033a0;do{_0x5033a0='';for(let _0x41ad6b=0x0;_0x41ad6b<0x4;_0x41ad6b++)_0x5033a0+=String[_0x4aae0f(0x111)](0x61+Math[_0x4aae0f(0x109)](0x1a*Math[_0x4aae0f(0x132)]()));}while(_0x1f005e[_0x4aae0f(0x14e)](_0x5033a0));return _0x1f005e[_0x4aae0f(0x105)](_0x5033a0),_0x5033a0;}[_0x1172e5(0x113)](){const _0x5c9690=_0x1172e5,{model:_0x165b83}=_0x26d4bd(this[_0x5c9690(0x12d)]),_0x20f211=_0x165b83[_0x5c9690(0x103)][_0x5c9690(0xed)],_0x4474f3=_0x165b83[_0x5c9690(0x145)](_0x20f211),_0x5dc108=[],_0x214668=_0x165b83[_0x5c9690(0x112)](_0x4474f3)[_0x5c9690(0x13f)]();for(const {item:_0x285c43}of _0x214668)_0x285c43['is'](_0x5c9690(0xff))?_0x5dc108[_0x5c9690(0x136)](_0x285c43[_0x5c9690(0x130)]):_0x285c43['is'](_0x5c9690(0x126))&&_0x5dc108[_0x5c9690(0x118)]>0x0&&'\x20'!==_0x5dc108[_0x5dc108[_0x5c9690(0x118)]-0x1]&&_0x5dc108[_0x5c9690(0x136)]('\x20');return'\x22'+_0x5dc108[_0x5c9690(0x119)]('')[_0x5c9690(0xe8)]()+'\x22';}[_0x1172e5(0xf8)](){const _0x3a2a60=_0x1172e5,_0x5a5b67=_0x26d4bd(this[_0x3a2a60(0x12d)])[_0x3a2a60(0x133)];return Array[_0x3a2a60(0x14f)](_0x5a5b67[_0x3a2a60(0x127)][_0x3a2a60(0x143)](_0x3a2a60(0x104)))[_0x3a2a60(0x14a)]((_0x5a4f79,_0x6dcc4d)=>_0x5a4f79[_0x3a2a60(0x128)]()[_0x3a2a60(0xf6)](_0x6dcc4d[_0x3a2a60(0x128)]())?-0x1:_0x5a4f79[_0x3a2a60(0x128)]()[_0x3a2a60(0x11f)](_0x6dcc4d[_0x3a2a60(0x128)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1210(){const _0x5c14ff=['4885760blOABF','_isWebSearchEnabled','15IZeKvm','getCapabilitiesRequestData','142916zrOGPB','fire','toggleReasoning','reasoning','1602195eKyEQv','isWebSearchEnabled','_isReasoningEnabled','reset','init','2918220AplAiE','webSearch','toggleWebSearch','capabilitiesUpdated','getCapabilitiesConfig','2050612IGVNOi','18FuaSbk','186382oMCDYG','setReasoning','5grFllQ','3310768EyKjfc','setWebSearch','isReasoningEnabled'];_0x1210=function(){return _0x5c14ff;};return _0x1210();}function _0x4dd7(_0x374883,_0x4930f6){const _0x1210a0=_0x1210();return _0x4dd7=function(_0x4dd756,_0x248b34){_0x4dd756=_0x4dd756-0x14d;let _0x47eec9=_0x1210a0[_0x4dd756];return _0x47eec9;},_0x4dd7(_0x374883,_0x4930f6);}const _0x4283d4=_0x4dd7;(function(_0x3aa87d,_0x3f73ae){const _0x103313=_0x4dd7,_0x2d2387=_0x3aa87d();while(!![]){try{const _0x25c89b=-parseInt(_0x103313(0x15c))/0x1+parseInt(_0x103313(0x166))/0x2*(-parseInt(_0x103313(0x164))/0x3)+parseInt(_0x103313(0x15a))/0x4*(parseInt(_0x103313(0x15e))/0x5)+-parseInt(_0x103313(0x155))/0x6+parseInt(_0x103313(0x150))/0x7+-parseInt(_0x103313(0x15f))/0x8+parseInt(_0x103313(0x15b))/0x9*(parseInt(_0x103313(0x162))/0xa);if(_0x25c89b===_0x3f73ae)break;else _0x2d2387['push'](_0x2d2387['shift']());}catch(_0x289591){_0x2d2387['push'](_0x2d2387['shift']());}}}(_0x1210,0x43172));import{EmitterMixin as _0xd4ba19}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x4283d4(0x158)];export class AICapabilities extends _0xd4ba19(){[_0x4283d4(0x163)];[_0x4283d4(0x152)];constructor(){const _0x1b9e4a=_0x4283d4;super(),this[_0x1b9e4a(0x163)]=!0x1,this[_0x1b9e4a(0x152)]=!0x1;}[_0x4283d4(0x154)](){const _0x4b599e=_0x4283d4;this[_0x4b599e(0x153)]();}[_0x4283d4(0x153)](){const _0x36e33a=_0x4283d4;this[_0x36e33a(0x160)](!0x1),this[_0x36e33a(0x15d)](!0x1);}[_0x4283d4(0x159)](){const _0x2c06d5=_0x4283d4;return{'isWebSearchEnabled':this[_0x2c06d5(0x163)],'isReasoningEnabled':this[_0x2c06d5(0x152)]};}static[_0x4283d4(0x165)](_0x30322f){const _0x572450=_0x4283d4,_0x1e0c8c={};return _0x30322f&&_0x30322f[_0x572450(0x151)]&&(_0x1e0c8c[_0x572450(0x156)]={}),_0x30322f&&_0x30322f[_0x572450(0x161)]&&(_0x1e0c8c[_0x572450(0x14f)]={}),_0x1e0c8c;}[_0x4283d4(0x157)](){const _0x58c534=_0x4283d4;this[_0x58c534(0x160)](!this[_0x58c534(0x163)]);}[_0x4283d4(0x14e)](){const _0x5e04bb=_0x4283d4;this[_0x5e04bb(0x15d)](!this[_0x5e04bb(0x152)]);}[_0x4283d4(0x160)](_0x275eb){const _0x265d5a=_0x4283d4;_0x275eb!==this[_0x265d5a(0x163)]&&(this[_0x265d5a(0x163)]=_0x275eb,this[_0x265d5a(0x14d)](_0x265d5a(0x158),this[_0x265d5a(0x159)]()));}[_0x4283d4(0x15d)](_0x157711){const _0x296004=_0x4283d4;_0x157711!==this[_0x296004(0x152)]&&(this[_0x296004(0x152)]=_0x157711,this[_0x296004(0x14d)](_0x296004(0x158),this[_0x296004(0x159)]()));}}
23
+ const _0xbdf3fe=_0x2c56;(function(_0x28917b,_0x1bb795){const _0x589d1b=_0x2c56,_0x588788=_0x28917b();while(!![]){try{const _0x4f06c4=parseInt(_0x589d1b(0x1f5))/0x1*(-parseInt(_0x589d1b(0x1ff))/0x2)+-parseInt(_0x589d1b(0x1f9))/0x3+-parseInt(_0x589d1b(0x1fb))/0x4*(-parseInt(_0x589d1b(0x1f8))/0x5)+-parseInt(_0x589d1b(0x1ef))/0x6+-parseInt(_0x589d1b(0x1fa))/0x7*(-parseInt(_0x589d1b(0x1fd))/0x8)+-parseInt(_0x589d1b(0x1f1))/0x9+parseInt(_0x589d1b(0x1f4))/0xa;if(_0x4f06c4===_0x1bb795)break;else _0x588788['push'](_0x588788['shift']());}catch(_0xad8de2){_0x588788['push'](_0x588788['shift']());}}}(_0x3420,0x85e63));import{EmitterMixin as _0x56426a}from'ckeditor5/src/utils.js';function _0x3420(){const _0x4d3be8=['19040360WRzpUe','188VgzOTw','reasoning','toggleReasoning','1692800ZghZnV','710490aniMRM','493157ShXguQ','8UzLAOt','fire','16nHDsXe','setReasoning','10902rTKBQh','capabilitiesUpdated','reset','getCapabilitiesConfig','isWebSearchEnabled','_isReasoningEnabled','toggleWebSearch','setWebSearch','getCapabilitiesRequestData','init','3989316PBTEBa','isReasoningEnabled','2223927BWQhTZ','webSearch','_isWebSearchEnabled'];_0x3420=function(){return _0x4d3be8;};return _0x3420();}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0xbdf3fe(0x200)];function _0x2c56(_0x2c708f,_0xe854a4){const _0x3420ca=_0x3420();return _0x2c56=function(_0x2c56e6,_0x479377){_0x2c56e6=_0x2c56e6-0x1ee;let _0x27c1df=_0x3420ca[_0x2c56e6];return _0x27c1df;},_0x2c56(_0x2c708f,_0xe854a4);}export class AICapabilities extends _0x56426a(){[_0xbdf3fe(0x1f3)];[_0xbdf3fe(0x204)];constructor(){const _0x47616e=_0xbdf3fe;super(),this[_0x47616e(0x1f3)]=!0x1,this[_0x47616e(0x204)]=!0x1;}[_0xbdf3fe(0x1ee)](){const _0x3a9fa0=_0xbdf3fe;this[_0x3a9fa0(0x201)]();}[_0xbdf3fe(0x201)](){const _0x4e4ff4=_0xbdf3fe;this[_0x4e4ff4(0x206)](!0x1),this[_0x4e4ff4(0x1fe)](!0x1);}[_0xbdf3fe(0x202)](){const _0x3c5168=_0xbdf3fe;return{'isWebSearchEnabled':this[_0x3c5168(0x1f3)],'isReasoningEnabled':this[_0x3c5168(0x204)]};}static[_0xbdf3fe(0x207)](_0x1b64e5){const _0x327d4e=_0xbdf3fe,_0x7eada0={};return _0x1b64e5&&_0x1b64e5[_0x327d4e(0x203)]&&(_0x7eada0[_0x327d4e(0x1f2)]={}),_0x1b64e5&&_0x1b64e5[_0x327d4e(0x1f0)]&&(_0x7eada0[_0x327d4e(0x1f6)]={}),_0x7eada0;}[_0xbdf3fe(0x205)](){const _0x2e7eee=_0xbdf3fe;this[_0x2e7eee(0x206)](!this[_0x2e7eee(0x1f3)]);}[_0xbdf3fe(0x1f7)](){const _0x3a4d36=_0xbdf3fe;this[_0x3a4d36(0x1fe)](!this[_0x3a4d36(0x204)]);}[_0xbdf3fe(0x206)](_0x42f23e){const _0x2780fa=_0xbdf3fe;_0x42f23e!==this[_0x2780fa(0x1f3)]&&(this[_0x2780fa(0x1f3)]=_0x42f23e,this[_0x2780fa(0x1fc)](_0x2780fa(0x200),this[_0x2780fa(0x202)]()));}[_0xbdf3fe(0x1fe)](_0x41094e){const _0x1e35dc=_0xbdf3fe;_0x41094e!==this[_0x1e35dc(0x204)]&&(this[_0x1e35dc(0x204)]=_0x41094e,this[_0x1e35dc(0x1fc)](_0x1e35dc(0x200),this[_0x1e35dc(0x202)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5b33(_0x410b09,_0x42e273){var _0x448b73=_0x448b();return _0x5b33=function(_0x5b335c,_0x5d2398){_0x5b335c=_0x5b335c-0x1ae;var _0x1cc34f=_0x448b73[_0x5b335c];return _0x1cc34f;},_0x5b33(_0x410b09,_0x42e273);}(function(_0x44f853,_0x57ad80){var _0x3f0afb=_0x5b33,_0x2c49bf=_0x44f853();while(!![]){try{var _0x1fbe60=-parseInt(_0x3f0afb(0x1bb))/0x1*(-parseInt(_0x3f0afb(0x1b5))/0x2)+parseInt(_0x3f0afb(0x1c5))/0x3*(-parseInt(_0x3f0afb(0x1b4))/0x4)+-parseInt(_0x3f0afb(0x1b9))/0x5+-parseInt(_0x3f0afb(0x1bd))/0x6+parseInt(_0x3f0afb(0x1be))/0x7*(parseInt(_0x3f0afb(0x1c4))/0x8)+-parseInt(_0x3f0afb(0x1c1))/0x9+-parseInt(_0x3f0afb(0x1c3))/0xa;if(_0x1fbe60===_0x57ad80)break;else _0x2c49bf['push'](_0x2c49bf['shift']());}catch(_0x5001cf){_0x2c49bf['push'](_0x2c49bf['shift']());}}}(_0x448b,0x4a347));export var AIContextItemType;!function(_0xf606bd){var _0x25aa67=_0x5b33;_0xf606bd[_0x25aa67(0x1bc)]=_0x25aa67(0x1ba),_0xf606bd[_0x25aa67(0x1b1)]=_0x25aa67(0x1b2),_0xf606bd[_0x25aa67(0x1b6)]=_0x25aa67(0x1ae),_0xf606bd[_0x25aa67(0x1bf)]=_0x25aa67(0x1af),_0xf606bd[_0x25aa67(0x1b8)]=_0x25aa67(0x1c0);}(AIContextItemType||(AIContextItemType={}));function _0x448b(){var _0xe10b66=['file','18986duQofA','FILE','1965456wHZRwu','1049965drXKAS','TEXT','selection','868257gPuKCl','MARKDOWN','2466340OoaVLN','32OhOgJc','53832rzwTju','web-resource','text','markdown','DOCUMENT','document','html','44JNvNtb','62IfTtCu','URL','HTML','SELECTION','82680uXHtnO'];_0x448b=function(){return _0xe10b66;};return _0x448b();}export var AIContextTextResourceType;!function(_0x2ee0ce){var _0x98ec17=_0x5b33;_0x2ee0ce[_0x98ec17(0x1bf)]=_0x98ec17(0x1af),_0x2ee0ce[_0x98ec17(0x1c2)]=_0x98ec17(0x1b0),_0x2ee0ce[_0x98ec17(0x1b7)]=_0x98ec17(0x1b3);}(AIContextTextResourceType||(AIContextTextResourceType={}));
23
+ (function(_0x58381a,_0x1fe998){var _0x37516d=_0x514b,_0x48eb24=_0x58381a();while(!![]){try{var _0x2fb058=-parseInt(_0x37516d(0x8b))/0x1+-parseInt(_0x37516d(0x98))/0x2+-parseInt(_0x37516d(0x90))/0x3+parseInt(_0x37516d(0x91))/0x4*(parseInt(_0x37516d(0x8a))/0x5)+parseInt(_0x37516d(0x96))/0x6+-parseInt(_0x37516d(0x87))/0x7*(-parseInt(_0x37516d(0x85))/0x8)+-parseInt(_0x37516d(0x8f))/0x9*(-parseInt(_0x37516d(0x88))/0xa);if(_0x2fb058===_0x1fe998)break;else _0x48eb24['push'](_0x48eb24['shift']());}catch(_0x568342){_0x48eb24['push'](_0x48eb24['shift']());}}}(_0x2738,0x81e25));function _0x514b(_0x3c42b2,_0xb70d5){var _0x2738fc=_0x2738();return _0x514b=function(_0x514b3c,_0x39820b){_0x514b3c=_0x514b3c-0x81;var _0x21ef98=_0x2738fc[_0x514b3c];return _0x21ef98;},_0x514b(_0x3c42b2,_0xb70d5);}export var AIContextItemType;function _0x2738(){var _0x432260=['MARKDOWN','1711054fouvrU','text','selection','file','FILE','1607712shoeFv','SELECTION','28zGtmoU','4557460VwyBxt','markdown','95XKYCuy','921054BmSYaF','HTML','TEXT','html','9Mzgxvt','142356IbJXnX','92360eHxFfs','web-resource','document','URL','DOCUMENT','3946356MiFWcL'];_0x2738=function(){return _0x432260;};return _0x2738();}!function(_0x3aca6c){var _0x31632c=_0x514b;_0x3aca6c[_0x31632c(0x84)]=_0x31632c(0x83),_0x3aca6c[_0x31632c(0x95)]=_0x31632c(0x93),_0x3aca6c[_0x31632c(0x94)]=_0x31632c(0x92),_0x3aca6c[_0x31632c(0x8d)]=_0x31632c(0x81),_0x3aca6c[_0x31632c(0x86)]=_0x31632c(0x82);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x1b646e){var _0x3d41dd=_0x514b;_0x1b646e[_0x3d41dd(0x8d)]=_0x3d41dd(0x81),_0x1b646e[_0x3d41dd(0x97)]=_0x3d41dd(0x89),_0x1b646e[_0x3d41dd(0x8c)]=_0x3d41dd(0x8e);}(AIContextTextResourceType||(AIContextTextResourceType={}));
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x482e(_0x4bfdbf,_0x435cf1){const _0x4aa09a=_0x4aa0();return _0x482e=function(_0x482eab,_0x8019f7){_0x482eab=_0x482eab-0x1cf;let _0x25552d=_0x4aa09a[_0x482eab];return _0x25552d;},_0x482e(_0x4bfdbf,_0x435cf1);}const _0x56fe30=_0x482e;(function(_0x1a935c,_0x3ec712){const _0x57cd1e=_0x482e,_0x12b45a=_0x1a935c();while(!![]){try{const _0x226c2b=-parseInt(_0x57cd1e(0x1e4))/0x1*(-parseInt(_0x57cd1e(0x203))/0x2)+-parseInt(_0x57cd1e(0x207))/0x3*(-parseInt(_0x57cd1e(0x204))/0x4)+-parseInt(_0x57cd1e(0x1fb))/0x5*(parseInt(_0x57cd1e(0x1d3))/0x6)+parseInt(_0x57cd1e(0x1fc))/0x7+parseInt(_0x57cd1e(0x1e9))/0x8*(-parseInt(_0x57cd1e(0x1f4))/0x9)+parseInt(_0x57cd1e(0x1d4))/0xa*(parseInt(_0x57cd1e(0x1e3))/0xb)+-parseInt(_0x57cd1e(0x206))/0xc;if(_0x226c2b===_0x3ec712)break;else _0x12b45a['push'](_0x12b45a['shift']());}catch(_0x47d4c5){_0x12b45a['push'](_0x12b45a['shift']());}}}(_0x4aa0,0xed7d7));function _0x4aa0(){const _0x424b0b=['appendContent','interactionStopped','abortController','3501HADTNI','replyContentUpdated','interactionDestroyed','ai-interaction-invalid-event-type','delegate','length','interactionCreated','3444305USRSAD','10947566dgteLb','connector','event','content','conversationTitle','replyChangeGroupStateUpdated','done','170qLXmEn','2972TSIIjs','forEach','2812020OESXPL','873ezovyO','interactionFinished','sources','source','isStopped','currentRequest','12wJJqzg','45550cNRMwp','find','textDelta','data','currentReply','replies','stopListening','destroy','push','editor','stop','replyCreated','start','fire','getReply','2057IYIkMI','19605jGhmFY','getDocumentContext','interactionStarted','error','_finalizeInteraction','35240ZjOXRn','getStream','abort','createReply','setConversationTitle','splice','sendRequest','isDestroyed'];_0x4aa0=function(){return _0x424b0b;};return _0x4aa0();}import{EmitterMixin as _0x3a7265,logWarning as _0x415c99,uid as _0x1fafe0}from'ckeditor5/src/utils.js';import{AIReply as _0x1ab1d6,isIgnoredReplyType as _0x2745ef,isValidReplyType as _0x3dbe98,isReplyTitleType as _0x3329d0,isSourceType as _0x8966d1}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x56fe30(0x1fa),_0x56fe30(0x1e6),_0x56fe30(0x1f2),_0x56fe30(0x208),_0x56fe30(0x1f6),_0x56fe30(0x1df),_0x56fe30(0x1f5),_0x56fe30(0x201),_0x56fe30(0x1ed),_0x56fe30(0x1e7)];export class AIInteraction extends _0x3a7265(){['id'];[_0x56fe30(0x1d9)]=[];[_0x56fe30(0x1d8)];[_0x56fe30(0x1d2)];[_0x56fe30(0x1fd)];[_0x56fe30(0x1d1)]=!0x1;[_0x56fe30(0x1f0)]=!0x1;[_0x56fe30(0x1dd)];constructor({connector:_0x5b746d,editor:_0x3bb72a}){const _0x3d8662=_0x56fe30;super(),this['id']=_0x1fafe0(),this[_0x3d8662(0x1fd)]=_0x5b746d,this[_0x3d8662(0x1d1)]=!0x0,this[_0x3d8662(0x1dd)]=_0x3bb72a;}async[_0x56fe30(0x1e0)](){const _0x5680cd=_0x56fe30;let _0x3630fb;this[_0x5680cd(0x1d1)]=!0x1;try{this[_0x5680cd(0x1d2)]=await this[_0x5680cd(0x1ef)](),this[_0x5680cd(0x1e1)](_0x5680cd(0x1e6),this);const _0x2babde=await this[_0x5680cd(0x1d2)][_0x5680cd(0x1ea)](),_0x468816=[];for await(const _0x4e7712 of _0x2babde){if(this[_0x5680cd(0x1d1)])return;_0x3329d0(_0x4e7712[_0x5680cd(0x1fe)])&&this[_0x5680cd(0x1ed)](_0x4e7712[_0x5680cd(0x1d7)][_0x5680cd(0x200)],!0x0),_0x8966d1(_0x4e7712[_0x5680cd(0x1fe)])?_0x468816[_0x5680cd(0x1dc)](_0x4e7712[_0x5680cd(0x1d7)][_0x5680cd(0x1d0)]):_0x3dbe98(_0x4e7712[_0x5680cd(0x1fe)])?(_0x4e7712[_0x5680cd(0x1fe)]!==_0x3630fb&&(this[_0x5680cd(0x1d8)]&&this[_0x5680cd(0x1d8)][_0x5680cd(0x202)](),this[_0x5680cd(0x1d8)]=this[_0x5680cd(0x1ec)]({'type':_0x4e7712[_0x5680cd(0x1fe)],'interactionId':this['id']}),_0x468816[_0x5680cd(0x1f9)]>0x0&&(this[_0x5680cd(0x1d8)][_0x5680cd(0x1cf)]=_0x468816[_0x5680cd(0x1ee)](0x0)),_0x3630fb=_0x4e7712[_0x5680cd(0x1fe)]),this[_0x5680cd(0x1d8)][_0x5680cd(0x1f1)](_0x4e7712[_0x5680cd(0x1d7)][_0x5680cd(0x1d6)])):_0x2745ef(_0x4e7712[_0x5680cd(0x1fe)])||_0x415c99(_0x5680cd(0x1f7),{'chunk':_0x4e7712});}}finally{this[_0x5680cd(0x1d1)]||(this[_0x5680cd(0x1e8)](),this[_0x5680cd(0x1e1)](_0x5680cd(0x208),this));}}[_0x56fe30(0x1de)](){const _0x49eec1=_0x56fe30;this[_0x49eec1(0x1d1)]||(this[_0x49eec1(0x1e8)](),this[_0x49eec1(0x1e1)](_0x49eec1(0x1f2),this));}[_0x56fe30(0x1e2)](_0x658ab){const _0x104a27=_0x56fe30;return this[_0x104a27(0x1d9)][_0x104a27(0x1d5)](_0x3094e0=>_0x3094e0['id']===_0x658ab);}[_0x56fe30(0x1db)](){const _0x5e8976=_0x56fe30;this[_0x5e8976(0x1f0)]||(this[_0x5e8976(0x1de)](),this[_0x5e8976(0x1d9)][_0x5e8976(0x205)](_0x113705=>_0x113705[_0x5e8976(0x1db)]()),this[_0x5e8976(0x1d9)]=[],this[_0x5e8976(0x1f0)]=!0x0,this[_0x5e8976(0x1e1)](_0x5e8976(0x1f6),this),this[_0x5e8976(0x1da)]());}[_0x56fe30(0x1ec)](_0x3908b4){const _0x3894a6=_0x56fe30,_0x7d198e=new _0x1ab1d6({'editor':this[_0x3894a6(0x1dd)],'documentContextContent':this[_0x3894a6(0x1e5)]()?.[_0x3894a6(0x1ff)],..._0x3908b4});return this[_0x3894a6(0x1d9)][_0x3894a6(0x1dc)](_0x7d198e),_0x7d198e[_0x3894a6(0x1f8)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x3894a6(0x1e1)](_0x3894a6(0x1df),_0x7d198e),_0x7d198e;}[_0x56fe30(0x1ed)](_0x2e06c8,_0x1ee4a3=!0x1){const _0x4e3774=_0x56fe30;this[_0x4e3774(0x1e1)](_0x4e3774(0x1ed),_0x2e06c8,_0x1ee4a3);}[_0x56fe30(0x1e8)](){const _0x17a7ab=_0x56fe30;this[_0x17a7ab(0x1d1)]=!0x0,this[_0x17a7ab(0x1d2)]&&this[_0x17a7ab(0x1d2)][_0x17a7ab(0x1f3)][_0x17a7ab(0x1eb)](),this[_0x17a7ab(0x1d8)]&&this[_0x17a7ab(0x1d8)][_0x17a7ab(0x202)](),this[_0x17a7ab(0x1d2)]=this[_0x17a7ab(0x1d8)]=void 0x0;}}
23
+ const _0x48bbd9=_0x5ba1;(function(_0x32088d,_0xcbdc4b){const _0x27dc2d=_0x5ba1,_0xc4695c=_0x32088d();while(!![]){try{const _0x1ebb1f=parseInt(_0x27dc2d(0xe0))/0x1+-parseInt(_0x27dc2d(0xe1))/0x2+-parseInt(_0x27dc2d(0xdd))/0x3+parseInt(_0x27dc2d(0xf9))/0x4+-parseInt(_0x27dc2d(0xeb))/0x5+parseInt(_0x27dc2d(0xf0))/0x6*(-parseInt(_0x27dc2d(0x10c))/0x7)+-parseInt(_0x27dc2d(0xf1))/0x8*(-parseInt(_0x27dc2d(0xe8))/0x9);if(_0x1ebb1f===_0xcbdc4b)break;else _0xc4695c['push'](_0xc4695c['shift']());}catch(_0x534a8c){_0xc4695c['push'](_0xc4695c['shift']());}}}(_0x2ab2,0xe941a));function _0x2ab2(){const _0x4ad3ab=['sendRequest','getStream','done','interactionDestroyed','textDelta','event','delegate','31472BmYbSU','stopListening','replies','find','length','appendContent','isDestroyed','getReply','isStopped','setConversationTitle','replyChangeGroupStateUpdated','interactionStarted','splice','start','replyCreated','abort','ai-chat-interaction-error','currentReply','interactionStopped','7VQtFJL','replyContentUpdated','destroy','content','createReply','sources','ai-interaction-invalid-event-type','currentRequest','connector','571899VgDkqF','_finalizeInteraction','abortController','31817ZTgLKU','305284Sujsgc','fire','interactionCreated','data','interactionFinished','conversationTitle','editor','18YETsTM','stop','forEach','6745475ZFlPpO','error','source','push','getDocumentContext','540174MxlrIa','10792528KJnFtT'];_0x2ab2=function(){return _0x4ad3ab;};return _0x2ab2();}function _0x5ba1(_0x51d507,_0x33717c){const _0x2ab209=_0x2ab2();return _0x5ba1=function(_0x5ba183,_0x3d80c2){_0x5ba183=_0x5ba183-0xd7;let _0x14ee0e=_0x2ab209[_0x5ba183];return _0x14ee0e;},_0x5ba1(_0x51d507,_0x33717c);}import{CKEditorError as _0x5e266b,EmitterMixin as _0x185575,logWarning as _0x31790a,uid as _0x1f5a44}from'ckeditor5/src/utils.js';import{AIReply as _0x18fb2b,isIgnoredReplyType as _0x42966f,isValidReplyType as _0x18ac0b,isReplyTitleType as _0x4899b9,isSourceType as _0x21f394}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x48bbd9(0xe3),_0x48bbd9(0x104),_0x48bbd9(0x10b),_0x48bbd9(0xe5),_0x48bbd9(0xf5),_0x48bbd9(0x107),_0x48bbd9(0x10d),_0x48bbd9(0x103),_0x48bbd9(0x102),_0x48bbd9(0xec)];export class AIInteraction extends _0x185575(){['id'];[_0x48bbd9(0xfb)]=[];[_0x48bbd9(0x10a)];[_0x48bbd9(0xdb)];[_0x48bbd9(0xdc)];[_0x48bbd9(0x101)]=!0x1;[_0x48bbd9(0xff)]=!0x1;[_0x48bbd9(0xe7)];constructor({connector:_0x564797,editor:_0x117d0f}){const _0x454a5e=_0x48bbd9;super(),this['id']=_0x1f5a44(),this[_0x454a5e(0xdc)]=_0x564797,this[_0x454a5e(0x101)]=!0x0,this[_0x454a5e(0xe7)]=_0x117d0f;}async[_0x48bbd9(0x106)](){const _0x1a0230=_0x48bbd9;let _0x388fe4;this[_0x1a0230(0x101)]=!0x1;try{this[_0x1a0230(0xdb)]=await this[_0x1a0230(0xf2)](),this[_0x1a0230(0xe2)](_0x1a0230(0x104),this);const _0x5645f4=await this[_0x1a0230(0xdb)][_0x1a0230(0xf3)](),_0x89baf8=[];for await(const _0xa3c2fe of _0x5645f4){if(this[_0x1a0230(0x101)])return;if(_0x1a0230(0xec)===_0xa3c2fe[_0x1a0230(0xf7)])return void this[_0x1a0230(0xe2)](_0x1a0230(0xec),{'error':new _0x5e266b(_0x1a0230(0x109),this)});_0x4899b9(_0xa3c2fe[_0x1a0230(0xf7)])&&this[_0x1a0230(0x102)](_0xa3c2fe[_0x1a0230(0xe4)][_0x1a0230(0xe6)],!0x0),_0x21f394(_0xa3c2fe[_0x1a0230(0xf7)])?_0x89baf8[_0x1a0230(0xee)](_0xa3c2fe[_0x1a0230(0xe4)][_0x1a0230(0xed)]):_0x18ac0b(_0xa3c2fe[_0x1a0230(0xf7)])?(_0xa3c2fe[_0x1a0230(0xf7)]!==_0x388fe4&&(this[_0x1a0230(0x10a)]&&this[_0x1a0230(0x10a)][_0x1a0230(0xf4)](),this[_0x1a0230(0x10a)]=this[_0x1a0230(0xd8)]({'type':_0xa3c2fe[_0x1a0230(0xf7)],'interactionId':this['id']}),_0x89baf8[_0x1a0230(0xfd)]>0x0&&(this[_0x1a0230(0x10a)][_0x1a0230(0xd9)]=_0x89baf8[_0x1a0230(0x105)](0x0)),_0x388fe4=_0xa3c2fe[_0x1a0230(0xf7)]),this[_0x1a0230(0x10a)][_0x1a0230(0xfe)](_0xa3c2fe[_0x1a0230(0xe4)][_0x1a0230(0xf6)])):_0x42966f(_0xa3c2fe[_0x1a0230(0xf7)])||_0x31790a(_0x1a0230(0xda),{'chunk':_0xa3c2fe});}}finally{this[_0x1a0230(0x101)]||(this[_0x1a0230(0xde)](),this[_0x1a0230(0xe2)](_0x1a0230(0xe5),this));}}[_0x48bbd9(0xe9)](){const _0x5de3ce=_0x48bbd9;this[_0x5de3ce(0x101)]||(this[_0x5de3ce(0xde)](),this[_0x5de3ce(0xe2)](_0x5de3ce(0x10b),this));}[_0x48bbd9(0x100)](_0x1ac830){const _0x174ad0=_0x48bbd9;return this[_0x174ad0(0xfb)][_0x174ad0(0xfc)](_0xd62ae4=>_0xd62ae4['id']===_0x1ac830);}[_0x48bbd9(0x10e)](){const _0x202613=_0x48bbd9;this[_0x202613(0xff)]||(this[_0x202613(0xe9)](),this[_0x202613(0xfb)][_0x202613(0xea)](_0x4e41e3=>_0x4e41e3[_0x202613(0x10e)]()),this[_0x202613(0xfb)]=[],this[_0x202613(0xff)]=!0x0,this[_0x202613(0xe2)](_0x202613(0xf5),this),this[_0x202613(0xfa)]());}[_0x48bbd9(0xd8)](_0x5a100e){const _0x22febe=_0x48bbd9,_0x42b2f0=new _0x18fb2b({'editor':this[_0x22febe(0xe7)],'documentContextContent':this[_0x22febe(0xef)]()?.[_0x22febe(0xd7)],..._0x5a100e});return this[_0x22febe(0xfb)][_0x22febe(0xee)](_0x42b2f0),_0x42b2f0[_0x22febe(0xf8)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x22febe(0xe2)](_0x22febe(0x107),_0x42b2f0),_0x42b2f0;}[_0x48bbd9(0x102)](_0x5d59f4,_0x25e21e=!0x1){const _0x26f96b=_0x48bbd9;this[_0x26f96b(0xe2)](_0x26f96b(0x102),_0x5d59f4,_0x25e21e);}[_0x48bbd9(0xde)](){const _0x377b9f=_0x48bbd9;this[_0x377b9f(0x101)]=!0x0,this[_0x377b9f(0xdb)]&&this[_0x377b9f(0xdb)][_0x377b9f(0xdf)][_0x377b9f(0x108)](),this[_0x377b9f(0x10a)]&&this[_0x377b9f(0x10a)][_0x377b9f(0xf4)](),this[_0x377b9f(0xdb)]=this[_0x377b9f(0x10a)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xdd30c0=_0x1de0;function _0x1649(){const _0x29604c=['stopListening','8036148HlHaKw','convertMarkdownToHTML','content','push','documentContextContent','conversation-title','1340WvfmKG','span','modified','cloneNode','changeGroups','data-unstable','map','updateChangeGroups','changes','7PvyFIU','forEach','25696FYcIuW','editor','length','every','type','merge','newNodeIds','change:content','replyChangeGroupStateUpdated','3762qfdKbM','modification-delta','8QwAiDK','set','new','modifiedNodeIds','onContentChange','aiResponseParser','reasoning','57145608MNZGHF','removedNodeIds','nextSibling','areActionsDisabled','done','replyContentUpdated','setChangeGroupState','95524UketRB','fire','index','context','node','1218810hvHoAx','data-id','interactionId','pending','text-delta','source','29lOBRUS','47230rFvwHP','includes','parsedContent','destroy','color:\x20#808080;\x20font-style:\x20italic','aiResponseApplier','filter','state','Removed\x20content.\x20Use\x20\x22Show\x20changes\x22\x20to\x20learn\x20more.','previousSibling','unshift','removed','parsedMergedContent','isDone','parseAndNormalizeHTML','sources','appendContent','2790252dLwrIH','values'];_0x1649=function(){return _0x29604c;};return _0x1649();}(function(_0x22d499,_0xbb3b11){const _0x575772=_0x1de0,_0x2aa856=_0x22d499();while(!![]){try{const _0x5afe3d=parseInt(_0x575772(0x108))/0x1*(-parseInt(_0x575772(0x109))/0x2)+parseInt(_0x575772(0xd0))/0x3+parseInt(_0x575772(0xef))/0x4*(-parseInt(_0x575772(0x102))/0x5)+-parseInt(_0x575772(0xd3))/0x6*(parseInt(_0x575772(0xe2))/0x7)+parseInt(_0x575772(0xe4))/0x8*(-parseInt(_0x575772(0xed))/0x9)+parseInt(_0x575772(0xd9))/0xa*(-parseInt(_0x575772(0xfd))/0xb)+parseInt(_0x575772(0xf6))/0xc;if(_0x5afe3d===_0xbb3b11)break;else _0x2aa856['push'](_0x2aa856['shift']());}catch(_0x31888f){_0x2aa856['push'](_0x2aa856['shift']());}}}(_0x1649,0xa49b5));import{ObservableMixin as _0x36e2d6,uid as _0xef5c9d}from'ckeditor5/src/utils.js';import{Element as _0x26dadd,findAll as _0x5dcd4b,getAttribute as _0x1ab64a,getParents as _0x1d965a,Document as _0x558f1b,parse as _0x2f76e4,Text as _0x10f8bf}from'../utils/htmlparser.js';import{AIResponseParser as _0x140c84}from'../pipeline/airesponseparser.js';function _0x1de0(_0xd1780d,_0x2680b6){const _0x16493b=_0x1649();return _0x1de0=function(_0x1de00f,_0x505072){_0x1de00f=_0x1de00f-0xca;let _0x10c77f=_0x16493b[_0x1de00f];return _0x10c77f;},_0x1de0(_0xd1780d,_0x2680b6);}import{AIResponseApplier as _0x5fd3fc}from'../pipeline/airesponseapplier.js';export const AI_REPLY_TYPES=[_0xdd30c0(0xee),_0xdd30c0(0x106)];export const AI_REPLY_TYPES_IGNORED=[_0xdd30c0(0xf5)];export const AI_REPLY_TITLE_TYPE=_0xdd30c0(0xd8);export class AIReply extends _0x36e2d6(){['id'];[_0xdd30c0(0x104)];[_0xdd30c0(0xe8)];[_0xdd30c0(0xce)]=[];[_0xdd30c0(0x10b)]=new _0x558f1b([]);[_0xdd30c0(0xcb)]=new _0x558f1b([]);[_0xdd30c0(0xdd)]=[];[_0xdd30c0(0xf9)]=!0x1;[_0xdd30c0(0xd7)];[_0xdd30c0(0xf4)];[_0xdd30c0(0x10e)];[_0xdd30c0(0xe5)];constructor({type:_0x31e25b,content:_0x234544='',isDone:_0x12a4c3=!0x1,interactionId:_0x5336c4,areActionsDisabled:_0x39b276,documentContextContent:_0x38229e,editor:_0x4c15a6}){const _0x5a8d5c=_0xdd30c0;super(),this['id']=_0xef5c9d(),this[_0x5a8d5c(0x104)]=_0x5336c4,this[_0x5a8d5c(0xe8)]=_0x31e25b,this[_0x5a8d5c(0xf9)]=!!_0x39b276,this[_0x5a8d5c(0xe5)]=_0x4c15a6,this[_0x5a8d5c(0xf4)]=new _0x140c84(),this[_0x5a8d5c(0x10e)]=new _0x5fd3fc(),this[_0x5a8d5c(0xd7)]=_0x2f76e4(_0x38229e||''),this[_0x5a8d5c(0xf0)](_0x5a8d5c(0xcc),_0x12a4c3),this['on'](_0x5a8d5c(0xeb),()=>{const _0x4d913d=_0x5a8d5c;this[_0x4d913d(0xf3)]();}),this[_0x5a8d5c(0xf0)](_0x5a8d5c(0xd5),_0x234544);}[_0xdd30c0(0xcf)](_0x3aa785){const _0x40e0c4=_0xdd30c0;this[_0x40e0c4(0xf0)](_0x40e0c4(0xd5),this[_0x40e0c4(0xd5)]+_0x3aa785);}[_0xdd30c0(0xfa)](){const _0x376e3b=_0xdd30c0;this[_0x376e3b(0xcc)]||(this[_0x376e3b(0xf0)](_0x376e3b(0xcc),!0x0),this[_0x376e3b(0xf3)]());}[_0xdd30c0(0x10c)](){const _0xa637a2=_0xdd30c0;this[_0xa637a2(0xd2)]();}[_0xdd30c0(0xfc)](_0x8f00a8,_0x5854ba){const _0x6a1390=_0xdd30c0;this[_0x6a1390(0xdd)][_0x8f00a8][_0x6a1390(0x110)]=_0x5854ba,this[_0x6a1390(0xfe)](_0x6a1390(0xec),{'reply':this,'index':_0x8f00a8,'state':_0x5854ba});}[_0xdd30c0(0xf3)](){const _0x2c1ac1=_0xdd30c0;if(_0x2c1ac1(0xee)===this[_0x2c1ac1(0xe8)]){this[_0x2c1ac1(0x10b)]=this[_0x2c1ac1(0xf4)][_0x2c1ac1(0xcd)](this[_0x2c1ac1(0xd5)]);const _0x34d415=this[_0x2c1ac1(0xdd)];this[_0x2c1ac1(0xe0)]();const _0x5ccd82=function(_0x202319,_0x828be7){const _0x485bca=_0x2c1ac1,_0x243bea=[];for(const _0x6553f5 of _0x828be7){const _0x3bfecf=_0x202319[_0x6553f5[_0x485bca(0xff)]];_0x3bfecf?_0x3bfecf[_0x485bca(0xe1)][_0x485bca(0xe6)]!==_0x6553f5[_0x485bca(0xe1)][_0x485bca(0xe6)]?_0x243bea[_0x485bca(0xd6)](_0x6553f5):_0x3bfecf[_0x485bca(0xe1)][_0x485bca(0xe3)]((_0xfd0a2,_0x134141)=>{const _0x4d7050=_0x485bca,_0x362b1e=_0x6553f5[_0x4d7050(0xe1)][_0x134141];_0xfd0a2['id']!==_0x362b1e['id']&&_0x243bea[_0x4d7050(0xd6)](_0x6553f5);}):_0x243bea[_0x485bca(0xd6)](_0x6553f5);}return _0x243bea;}(_0x34d415,this[_0x2c1ac1(0xdd)]);(_0x5ccd82[_0x2c1ac1(0xe6)]||this[_0x2c1ac1(0xcc)])&&this[_0x2c1ac1(0xfe)](_0x2c1ac1(0xfb),this,_0x5ccd82);}else this[_0x2c1ac1(0x10b)]=this[_0x2c1ac1(0xf4)][_0x2c1ac1(0xd4)](this[_0x2c1ac1(0xd5)]),this[_0x2c1ac1(0xfe)](_0x2c1ac1(0xfb),this);}[_0xdd30c0(0xe0)](){const _0x29bcaf=_0xdd30c0,_0x2caeeb=new _0x26dadd('p',{},[new _0x26dadd(_0x29bcaf(0xda),{'style':_0x29bcaf(0x10d)},[new _0x10f8bf(_0x29bcaf(0x111))])]),_0x444f65=this[_0x29bcaf(0x10e)][_0x29bcaf(0xe9)](this[_0x29bcaf(0x10b)],this[_0x29bcaf(0xd7)][_0x29bcaf(0xdc)](!0x0),{'markUnstableElements':!this[_0x29bcaf(0xcc)],'replaceRemovedWith':_0x2caeeb,'cutAfterLastChange':!this[_0x29bcaf(0xcc)]});if(!_0x444f65[_0x29bcaf(0xf2)][_0x29bcaf(0xe6)]&&!this[_0x29bcaf(0xcc)])return;this[_0x29bcaf(0xcb)]=_0x444f65[_0x29bcaf(0x10b)];let _0x54ba93=[];if(_0x5dcd4b(_0x380f77=>{const _0x53f880=_0x29bcaf,_0x56f9f=_0x1ab64a(_0x380f77,_0x53f880(0x103));if(!_0x56f9f||!_0xc9fbce(_0x56f9f))return!0x1;const _0x72b909=[_0x380f77,..._0x1d965a(_0x380f77)]['at'](-0x2);if(_0x380f77!=_0x72b909){const _0x636d2f=_0x1ab64a(_0x72b909,_0x53f880(0x103));_0xc9fbce(_0x636d2f)||(_0x54ba93[_0x53f880(0xd6)]({'node':_0x72b909,'id':_0x636d2f,'type':_0x53f880(0xdb)}),_0x444f65[_0x53f880(0xf2)][_0x53f880(0xd6)](_0x636d2f));}else _0x444f65[_0x53f880(0xf2)][_0x53f880(0x10a)](_0x56f9f)?_0x54ba93[_0x53f880(0xd6)]({'node':_0x380f77,'type':_0x53f880(0xdb),'id':_0x56f9f}):_0x444f65[_0x53f880(0xea)][_0x53f880(0x10a)](_0x56f9f)?_0x54ba93[_0x53f880(0xd6)]({'node':_0x380f77,'type':_0x53f880(0xf1),'id':_0x56f9f,'anchorId':_0x1ab64a(_0x380f77[_0x53f880(0x112)],_0x53f880(0x103))}):_0x54ba93[_0x53f880(0xd6)]({'node':_0x380f77,'type':_0x53f880(0xca),'id':_0x56f9f});return!0x0;},this[_0x29bcaf(0xcb)]),_0x54ba93=_0x54ba93[_0x29bcaf(0x10f)](({node:_0x2e7848})=>[..._0x1d965a(_0x2e7848),_0x2e7848][_0x29bcaf(0xe7)](_0x31a375=>!_0x1ab64a(_0x31a375,_0x29bcaf(0xde)))),0x0==_0x54ba93[_0x29bcaf(0xe6)])return;const _0x2bcb52=[[_0x54ba93[0x0]]];for(let _0x33a649=0x1;_0x33a649<_0x54ba93[_0x29bcaf(0xe6)];_0x33a649++){const _0x574c60=_0x2bcb52[_0x2bcb52[_0x29bcaf(0xe6)]-0x1],_0x5d25cf=_0x574c60[_0x574c60[_0x29bcaf(0xe6)]-0x1];_0x54ba93[_0x33a649][_0x29bcaf(0x101)][_0x29bcaf(0x112)]==_0x5d25cf[_0x29bcaf(0x101)]&&_0x29bcaf(0xdb)!=_0x54ba93[_0x33a649][_0x29bcaf(0xe8)]&&_0x29bcaf(0xdb)!=_0x5d25cf[_0x29bcaf(0xe8)]?_0x574c60[_0x29bcaf(0xd6)](_0x54ba93[_0x33a649]):_0x2bcb52[_0x29bcaf(0xd6)]([_0x54ba93[_0x33a649]]);}for(const _0x440dbd of _0x2bcb52){const _0x293f0c=_0x440dbd[0x0],_0x598ea2=_0x440dbd[_0x440dbd[_0x29bcaf(0xe6)]-0x1],_0x134271=_0x59795c(_0x293f0c[_0x29bcaf(0x101)][_0x29bcaf(0x112)]);_0x134271&&_0x440dbd[_0x29bcaf(0x113)](_0x134271);const _0x1d438f=_0x59795c(_0x598ea2[_0x29bcaf(0x101)][_0x29bcaf(0xf8)]);_0x1d438f&&_0x440dbd[_0x29bcaf(0xd6)](_0x1d438f);}function _0xc9fbce(_0x2dd7a4){const _0xfe238a=_0x29bcaf;return _0x444f65[_0xfe238a(0xf2)][_0xfe238a(0x10a)](_0x2dd7a4)||_0x444f65[_0xfe238a(0xea)][_0xfe238a(0x10a)](_0x2dd7a4)||_0x444f65[_0xfe238a(0xf7)][_0xfe238a(0x10a)](_0x2dd7a4);}function _0x59795c(_0x1dd910){const _0x32e9a4=_0x29bcaf;if(_0x1dd910&&_0x1ab64a(_0x1dd910,_0x32e9a4(0x103))&&!_0x1ab64a(_0x1dd910,_0x32e9a4(0xde))){const _0x1f0cc1=_0x1ab64a(_0x1dd910,_0x32e9a4(0x103));if(!_0xc9fbce(_0x1f0cc1))return{'node':_0x1dd910,'type':_0x32e9a4(0x100),'id':_0x1f0cc1};}return null;}this[_0x29bcaf(0xdd)]=_0x2bcb52[_0x29bcaf(0xdf)]((_0x109178,_0x1346e8)=>({'changes':_0x109178,'state':_0x29bcaf(0x105),'index':_0x1346e8}));}}export function isValidReplyType(_0x3c3095){const _0xcdd214=_0xdd30c0;return Object[_0xcdd214(0xd1)](AI_REPLY_TYPES)[_0xcdd214(0x10a)](_0x3c3095);}export function isIgnoredReplyType(_0x4d67f0){const _0x5d1009=_0xdd30c0;return AI_REPLY_TYPES_IGNORED[_0x5d1009(0x10a)](_0x4d67f0);}export function isReplyTitleType(_0x43c74a){return _0x43c74a===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x26ea49){const _0xca9e61=_0xdd30c0;return _0xca9e61(0x107)===_0x26ea49;}
23
+ const _0x4ca999=_0x3613;(function(_0x4ae133,_0x2b3987){const _0x20e0a5=_0x3613,_0x51860=_0x4ae133();while(!![]){try{const _0x5371d7=-parseInt(_0x20e0a5(0x117))/0x1+-parseInt(_0x20e0a5(0x129))/0x2+-parseInt(_0x20e0a5(0xf2))/0x3+parseInt(_0x20e0a5(0xee))/0x4*(-parseInt(_0x20e0a5(0xed))/0x5)+parseInt(_0x20e0a5(0xeb))/0x6*(-parseInt(_0x20e0a5(0x12a))/0x7)+-parseInt(_0x20e0a5(0x112))/0x8*(-parseInt(_0x20e0a5(0xf9))/0x9)+parseInt(_0x20e0a5(0x10e))/0xa*(parseInt(_0x20e0a5(0x100))/0xb);if(_0x5371d7===_0x2b3987)break;else _0x51860['push'](_0x51860['shift']());}catch(_0x54a756){_0x51860['push'](_0x51860['shift']());}}}(_0x3a3f,0xcc6c3));import{ObservableMixin as _0x45b996,uid as _0x1702cf}from'ckeditor5/src/utils.js';import{Element as _0x4394a9,findAll as _0x242c54,getAttribute as _0x4f0e57,getParents as _0x3e7a1f,Document as _0x1e6d80,parse as _0xceeb73,Text as _0x37f61f}from'../utils/htmlparser.js';function _0x3613(_0x283a40,_0x41dd25){const _0x3a3f88=_0x3a3f();return _0x3613=function(_0x3613d1,_0x3c8cc0){_0x3613d1=_0x3613d1-0xeb;let _0xe3a54=_0x3a3f88[_0x3613d1];return _0xe3a54;},_0x3613(_0x283a40,_0x41dd25);}import{AIResponseParser as _0x4ada36}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x1c6aeb}from'../pipeline/airesponseapplier.js';export const AI_REPLY_TYPES=[_0x4ca999(0xef),_0x4ca999(0x102)];function _0x3a3f(){const _0x1a1acd=['color:\x20#808080;\x20font-style:\x20italic','updateChangeGroups','cloneNode','change:content','state','content','isDone','data-id','context','every','removedNodeIds','onContentChange','previousSibling','aiResponseParser','pending','merge','set','2373190FYQfOK','76503TFReoE','span','modified','conversation-title','node','removed','interactionId','newNodeIds','data-unstable','parseAndNormalizeHTML','252pJrckc','changeGroups','468070eMIIBp','16WMhDOJ','modification-delta','forEach','setChangeGroupState','1523619CAomlS','type','source','modifiedNodeIds','replyChangeGroupStateUpdated','replyContentUpdated','destroy','27SKDrdw','stopListening','map','changes','parsedContent','editor','done','55sPawoo','areActionsDisabled','text-delta','Removed\x20content.\x20Use\x20\x22Show\x20changes\x22\x20to\x20learn\x20more.','convertMarkdownToHTML','push','documentContextContent','nextSibling','length','appendContent','fire','index','values','reasoning','7654470rBXEcA','new','filter','sources','3191336WEXSGt','parsedMergedContent','aiResponseApplier','includes','unshift','1658729iFfFqp'];_0x3a3f=function(){return _0x1a1acd;};return _0x3a3f();}export const AI_REPLY_TYPES_IGNORED=[_0x4ca999(0x10d)];export const AI_REPLY_TITLE_TYPE=_0x4ca999(0x12d);export class AIReply extends _0x45b996(){['id'];[_0x4ca999(0x130)];[_0x4ca999(0xf3)];[_0x4ca999(0x111)]=[];[_0x4ca999(0xfd)]=new _0x1e6d80([]);[_0x4ca999(0x113)]=new _0x1e6d80([]);[_0x4ca999(0xec)]=[];[_0x4ca999(0x101)]=!0x1;[_0x4ca999(0x106)];[_0x4ca999(0x125)];[_0x4ca999(0x114)];[_0x4ca999(0xfe)];constructor({type:_0x247a3d,content:_0x3d4e94='',isDone:_0x4dcfe1=!0x1,interactionId:_0x3649cb,areActionsDisabled:_0xbc64d0,documentContextContent:_0x5c7cf8,editor:_0x537642}){const _0x2eb07b=_0x4ca999;super(),this['id']=_0x1702cf(),this[_0x2eb07b(0x130)]=_0x3649cb,this[_0x2eb07b(0xf3)]=_0x247a3d,this[_0x2eb07b(0x101)]=!!_0xbc64d0,this[_0x2eb07b(0xfe)]=_0x537642,this[_0x2eb07b(0x125)]=new _0x4ada36(),this[_0x2eb07b(0x114)]=new _0x1c6aeb(),this[_0x2eb07b(0x106)]=_0xceeb73(_0x5c7cf8||''),this[_0x2eb07b(0x128)](_0x2eb07b(0x11e),_0x4dcfe1),this['on'](_0x2eb07b(0x11b),()=>{const _0x4054dc=_0x2eb07b;this[_0x4054dc(0x123)]();}),this[_0x2eb07b(0x128)](_0x2eb07b(0x11d),_0x3d4e94);}[_0x4ca999(0x109)](_0x42f040){const _0x551648=_0x4ca999;this[_0x551648(0x128)](_0x551648(0x11d),this[_0x551648(0x11d)]+_0x42f040);}[_0x4ca999(0xff)](){const _0x43e29b=_0x4ca999;this[_0x43e29b(0x11e)]||(this[_0x43e29b(0x128)](_0x43e29b(0x11e),!0x0),this[_0x43e29b(0x123)]());}[_0x4ca999(0xf8)](){const _0x32aa40=_0x4ca999;this[_0x32aa40(0xfa)]();}[_0x4ca999(0xf1)](_0x38a9f3,_0x2a8940){const _0x44e15d=_0x4ca999;this[_0x44e15d(0xec)][_0x38a9f3][_0x44e15d(0x11c)]=_0x2a8940,this[_0x44e15d(0x10a)](_0x44e15d(0xf6),{'reply':this,'index':_0x38a9f3,'state':_0x2a8940});}[_0x4ca999(0x123)](){const _0x4b0019=_0x4ca999;if(_0x4b0019(0xef)===this[_0x4b0019(0xf3)]){this[_0x4b0019(0xfd)]=this[_0x4b0019(0x125)][_0x4b0019(0x133)](this[_0x4b0019(0x11d)]);const _0x3e1bdb=this[_0x4b0019(0xec)];this[_0x4b0019(0x119)]();const _0x536659=function(_0x18be56,_0x5aaf9d){const _0xd1e680=_0x4b0019,_0x44ac2b=[];for(const _0x170cec of _0x5aaf9d){const _0x8a79dd=_0x18be56[_0x170cec[_0xd1e680(0x10b)]];_0x8a79dd?_0x8a79dd[_0xd1e680(0xfc)][_0xd1e680(0x108)]!==_0x170cec[_0xd1e680(0xfc)][_0xd1e680(0x108)]?_0x44ac2b[_0xd1e680(0x105)](_0x170cec):_0x8a79dd[_0xd1e680(0xfc)][_0xd1e680(0xf0)]((_0x13835b,_0x58969d)=>{const _0x5a63ee=_0xd1e680,_0x402bf2=_0x170cec[_0x5a63ee(0xfc)][_0x58969d];_0x13835b['id']!==_0x402bf2['id']&&_0x44ac2b[_0x5a63ee(0x105)](_0x170cec);}):_0x44ac2b[_0xd1e680(0x105)](_0x170cec);}return _0x44ac2b;}(_0x3e1bdb,this[_0x4b0019(0xec)]);(_0x536659[_0x4b0019(0x108)]||this[_0x4b0019(0x11e)])&&this[_0x4b0019(0x10a)](_0x4b0019(0xf7),this,_0x536659);}else this[_0x4b0019(0xfd)]=this[_0x4b0019(0x125)][_0x4b0019(0x104)](this[_0x4b0019(0x11d)]),this[_0x4b0019(0x10a)](_0x4b0019(0xf7),this);}[_0x4ca999(0x119)](){const _0x224fa8=_0x4ca999,_0xbcab7d=new _0x4394a9('p',{},[new _0x4394a9(_0x224fa8(0x12b),{'style':_0x224fa8(0x118)},[new _0x37f61f(_0x224fa8(0x103))])]),_0x332e23=this[_0x224fa8(0x114)][_0x224fa8(0x127)](this[_0x224fa8(0xfd)],this[_0x224fa8(0x106)][_0x224fa8(0x11a)](!0x0),{'markUnstableElements':!this[_0x224fa8(0x11e)],'replaceRemovedWith':_0xbcab7d,'cutAfterLastChange':!this[_0x224fa8(0x11e)]});if(!_0x332e23[_0x224fa8(0xf5)][_0x224fa8(0x108)]&&!this[_0x224fa8(0x11e)])return;this[_0x224fa8(0x113)]=_0x332e23[_0x224fa8(0xfd)];let _0x344a0b=[];if(_0x242c54(_0x4d0f33=>{const _0x29f85e=_0x224fa8,_0x39c63f=_0x4f0e57(_0x4d0f33,_0x29f85e(0x11f));if(!_0x39c63f||!_0x4ad5cb(_0x39c63f))return!0x1;const _0x32927b=[_0x4d0f33,..._0x3e7a1f(_0x4d0f33)]['at'](-0x2);if(_0x4d0f33!=_0x32927b){const _0x31735a=_0x4f0e57(_0x32927b,_0x29f85e(0x11f));_0x4ad5cb(_0x31735a)||(_0x344a0b[_0x29f85e(0x105)]({'node':_0x32927b,'id':_0x31735a,'type':_0x29f85e(0x12c)}),_0x332e23[_0x29f85e(0xf5)][_0x29f85e(0x105)](_0x31735a));}else _0x332e23[_0x29f85e(0xf5)][_0x29f85e(0x115)](_0x39c63f)?_0x344a0b[_0x29f85e(0x105)]({'node':_0x4d0f33,'type':_0x29f85e(0x12c),'id':_0x39c63f}):_0x332e23[_0x29f85e(0x131)][_0x29f85e(0x115)](_0x39c63f)?_0x344a0b[_0x29f85e(0x105)]({'node':_0x4d0f33,'type':_0x29f85e(0x10f),'id':_0x39c63f,'anchorId':_0x4f0e57(_0x4d0f33[_0x29f85e(0x124)],_0x29f85e(0x11f))}):_0x344a0b[_0x29f85e(0x105)]({'node':_0x4d0f33,'type':_0x29f85e(0x12f),'id':_0x39c63f});return!0x0;},this[_0x224fa8(0x113)]),_0x344a0b=_0x344a0b[_0x224fa8(0x110)](({node:_0x490f15})=>[..._0x3e7a1f(_0x490f15),_0x490f15][_0x224fa8(0x121)](_0x76f123=>!_0x4f0e57(_0x76f123,_0x224fa8(0x132)))),0x0==_0x344a0b[_0x224fa8(0x108)])return;const _0x11367e=[[_0x344a0b[0x0]]];for(let _0x4e4df1=0x1;_0x4e4df1<_0x344a0b[_0x224fa8(0x108)];_0x4e4df1++){const _0x37d937=_0x11367e[_0x11367e[_0x224fa8(0x108)]-0x1],_0x2d7e9d=_0x37d937[_0x37d937[_0x224fa8(0x108)]-0x1];_0x344a0b[_0x4e4df1][_0x224fa8(0x12e)][_0x224fa8(0x124)]==_0x2d7e9d[_0x224fa8(0x12e)]&&_0x224fa8(0x12c)!=_0x344a0b[_0x4e4df1][_0x224fa8(0xf3)]&&_0x224fa8(0x12c)!=_0x2d7e9d[_0x224fa8(0xf3)]?_0x37d937[_0x224fa8(0x105)](_0x344a0b[_0x4e4df1]):_0x11367e[_0x224fa8(0x105)]([_0x344a0b[_0x4e4df1]]);}for(const _0x1f5010 of _0x11367e){const _0x52e6f8=_0x1f5010[0x0],_0x597201=_0x1f5010[_0x1f5010[_0x224fa8(0x108)]-0x1],_0x2fb644=_0x1ff294(_0x52e6f8[_0x224fa8(0x12e)][_0x224fa8(0x124)]);_0x2fb644&&_0x1f5010[_0x224fa8(0x116)](_0x2fb644);const _0x17be41=_0x1ff294(_0x597201[_0x224fa8(0x12e)][_0x224fa8(0x107)]);_0x17be41&&_0x1f5010[_0x224fa8(0x105)](_0x17be41);}function _0x4ad5cb(_0x566e34){const _0x26e265=_0x224fa8;return _0x332e23[_0x26e265(0xf5)][_0x26e265(0x115)](_0x566e34)||_0x332e23[_0x26e265(0x131)][_0x26e265(0x115)](_0x566e34)||_0x332e23[_0x26e265(0x122)][_0x26e265(0x115)](_0x566e34);}function _0x1ff294(_0x3bf1b6){const _0x45b0fe=_0x224fa8;if(_0x3bf1b6&&_0x4f0e57(_0x3bf1b6,_0x45b0fe(0x11f))&&!_0x4f0e57(_0x3bf1b6,_0x45b0fe(0x132))){const _0x550a2f=_0x4f0e57(_0x3bf1b6,_0x45b0fe(0x11f));if(!_0x4ad5cb(_0x550a2f))return{'node':_0x3bf1b6,'type':_0x45b0fe(0x120),'id':_0x550a2f};}return null;}this[_0x224fa8(0xec)]=_0x11367e[_0x224fa8(0xfb)]((_0x2edaae,_0x1eb2f0)=>({'changes':_0x2edaae,'state':_0x224fa8(0x126),'index':_0x1eb2f0}));}}export function isValidReplyType(_0x3a740b){const _0x3fd7ed=_0x4ca999;return Object[_0x3fd7ed(0x10c)](AI_REPLY_TYPES)[_0x3fd7ed(0x115)](_0x3a740b);}export function isIgnoredReplyType(_0x9e40c){const _0x30edaf=_0x4ca999;return AI_REPLY_TYPES_IGNORED[_0x30edaf(0x115)](_0x9e40c);}export function isReplyTitleType(_0x4b59f9){return _0x4b59f9===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x47035b){const _0x4cde3e=_0x4ca999;return _0x4cde3e(0xf4)===_0x47035b;}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x58ee84=_0x144b;(function(_0x466b93,_0x454a38){const _0x53861b=_0x144b,_0x715d2e=_0x466b93();while(!![]){try{const _0x5661b0=-parseInt(_0x53861b(0x1d5))/0x1*(parseInt(_0x53861b(0x1bb))/0x2)+-parseInt(_0x53861b(0x1d0))/0x3*(parseInt(_0x53861b(0x1ea))/0x4)+-parseInt(_0x53861b(0x1e6))/0x5*(-parseInt(_0x53861b(0x1b9))/0x6)+-parseInt(_0x53861b(0x1ee))/0x7*(-parseInt(_0x53861b(0x1d1))/0x8)+-parseInt(_0x53861b(0x1cf))/0x9+-parseInt(_0x53861b(0x1e0))/0xa+parseInt(_0x53861b(0x1b6))/0xb;if(_0x5661b0===_0x454a38)break;else _0x715d2e['push'](_0x715d2e['shift']());}catch(_0x49c45b){_0x715d2e['push'](_0x715d2e['shift']());}}}(_0x57bb,0xee236));import{ObservableMixin as _0xc2f498,uid as _0x57da87}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0xd9d391,findByAttribute as _0x48633c,getAttribute as _0xfc180b,isComment as _0x52578c,isTag as _0xa45678,insertElement as _0x1220b3,moveElement as _0x47ceb9,removeElement as _0x4c57ad,replaceElement as _0x29dd58,serialize as _0x3cb9a0,setAttribute as _0x43d89f,clone as _0x1b726c,findAllComments as _0x4b5199,getParents as _0x1570d8,getNodeNestingLevel as _0x591bb8,areNodesSame as _0x563ee1,removeElementsAfter as _0x34a99e}from'../utils/htmlparser.js';function _0x57bb(){const _0x1c4030=['5411584OiXXsF','_findPrevElementWithDataId','data-wrapped-id','beforebegin','4TlyiUI','_insertNodes','from','_isExistingContentComment','parentNode','forEach','afterend','new-element','replaceRemovedWith','_hasWrappedParent','_markUnstableElements','7979570GGNzVa','_getNodeDataId','afterbegin','indexOf','length','_markLastTagElementUnstable','5zWgEDH','_touchedNodesState','lastTouchedId','removedIds','52vGfgyf','nodeType','cloneNode','markUnstableElements','14GuNdVm','match','nextSibling','_replaceNode','_findReferenceNode','_storeDeletedElementIds','_getUid','childNodes','includes','_markWrappedElements','merge','_existingDataIds','true','slice','data-removed','cutAfterLastChange','46945503DoWopC','_isNewNode','filter','1230918DlZgEO','markUnstableElementsDepth','645944QmwKWC','previousSibling','trim','_generateUid','data-id','push','modifiedIds','_findFallbackReferenceNode','_isExistingNode','newIds','reverse','_isDelNode','lastChild','map','has','_findNextElementWithDataId','splice','invalidIds','data-unstable','_removeSpecialComments','13421304tKBqGG','292917VwmzxC'];_0x57bb=function(){return _0x1c4030;};return _0x57bb();}function _0x144b(_0x4b180c,_0x16cad2){const _0x57bb97=_0x57bb();return _0x144b=function(_0x144b86,_0x3fb3c5){_0x144b86=_0x144b86-0x1ac;let _0x482577=_0x57bb97[_0x144b86];return _0x482577;},_0x144b(_0x4b180c,_0x16cad2);}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0xc2f498(){[_0x58ee84(0x1be)];[_0x58ee84(0x1e7)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x58ee84(0x1b1)]=new Set();constructor(_0x389ee4){const _0x507d56=_0x58ee84;super(),this[_0x507d56(0x1be)]=_0x389ee4||_0x57da87;}[_0x58ee84(0x1b0)](_0x2650e5,_0x448e8c,_0x309b2e){const _0x4a81ed=_0x58ee84,_0x28246c=_0x1b726c(_0x2650e5);if(0x0===_0x448e8c[_0x4a81ed(0x1ad)][_0x4a81ed(0x1e4)]){const _0x2b6559=[];return _0xd9d391(_0x4a81ed(0x1bf),_0x4a81ed(0x1dc),_0x28246c)[_0x4a81ed(0x1da)](_0x11c0dc=>{const _0x2d8b76=_0x4a81ed,_0x2d656=this[_0x2d8b76(0x1be)]();_0x43d89f(_0x11c0dc,_0x2d8b76(0x1bf),_0x2d656),_0x2b6559[_0x2d8b76(0x1c0)](_0x2d656);}),this[_0x4a81ed(0x1ce)](_0x28246c),{'parsedContent':_0x28246c,'newNodeIds':_0x2b6559,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x309b2e&&_0x309b2e[_0x4a81ed(0x1ed)]&&this[_0x4a81ed(0x1e5)](_0x28246c),this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1c4)]=[],this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1c1)]=[],this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1e9)]=[],this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1cc)]=[],this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1e8)]=null,this[_0x4a81ed(0x1b1)]=new Set(_0xd9d391(_0x4a81ed(0x1bf),null,_0x448e8c)[_0x4a81ed(0x1c8)](_0x1e179d=>_0xfc180b(_0x1e179d,_0x4a81ed(0x1bf)))[_0x4a81ed(0x1b8)](_0x5e204f=>!!_0x5e204f));let _0x338ed3=-0x1,_0x3575e1=!0x1;const _0x1519cf=_0x28246c[_0x4a81ed(0x1ad)],_0x49e7c7=Array[_0x4a81ed(0x1d7)](_0x1519cf)[_0x4a81ed(0x1b8)](_0x22c45b=>!(0x3===_0x22c45b[_0x4a81ed(0x1eb)]&&''===_0x3cb9a0(_0x22c45b)[_0x4a81ed(0x1bd)]())),_0x49db9=_0x49e7c7[_0x4a81ed(0x1e4)];for(let _0x4f3729=0x0;_0x4f3729<_0x49db9;_0x4f3729++){const _0x146969=_0x49e7c7[_0x4f3729],_0x243da3=_0x49e7c7[_0x4f3729+0x1];if(this[_0x4a81ed(0x1b7)](_0x146969)){if(-0x1===_0x338ed3&&(_0x338ed3=_0x4f3729),this[_0x4a81ed(0x1af)](_0x146969),!this[_0x4a81ed(0x1b7)](_0x243da3)){const [_0x53dc11,_0xb1c365]=this[_0x4a81ed(0x1f2)](_0x146969,_0x3575e1,_0x448e8c);if(_0x53dc11){const _0x3c29f0=Array[_0x4a81ed(0x1d7)](_0x49e7c7)[_0x4a81ed(0x1b3)](_0x338ed3,_0x4f3729+0x1);this[_0x4a81ed(0x1d6)](_0x53dc11,_0x3c29f0,_0xb1c365),_0x338ed3=-0x1;}}}else{if(this[_0x4a81ed(0x1d8)](_0x146969))_0x3575e1=!0x0;else{if(this[_0x4a81ed(0x1c3)](_0x146969)){const _0x57f42c=_0xfc180b(_0x146969,_0x4a81ed(0x1bf));if(_0x57f42c&&this[_0x4a81ed(0x1b1)][_0x4a81ed(0x1c9)](_0x57f42c)){const _0x5a6980=_0x48633c(_0x4a81ed(0x1bf),_0x57f42c,_0x448e8c);this[_0x4a81ed(0x1f1)](_0x5a6980,_0x146969);}if(this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1e9)][_0x4a81ed(0x1ae)](_0x57f42c)){const _0x5aba3d=this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1e9)][_0x4a81ed(0x1e3)](_0x57f42c);this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1e9)][_0x4a81ed(0x1cb)](_0x5aba3d,0x1);}}else{if(this[_0x4a81ed(0x1c6)](_0x146969)){const _0x4188bf=_0xfc180b(_0x146969,_0x4a81ed(0x1bf));this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1c1)][_0x4a81ed(0x1ae)](_0x4188bf)||this[_0x4a81ed(0x1f3)](_0x146969);}}}}}for(const _0x15ef89 of this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1e9)]){const _0xb4bb78=_0x48633c(_0x4a81ed(0x1bf),_0x15ef89,_0x448e8c);if(_0xb4bb78){if(_0x309b2e&&_0x309b2e[_0x4a81ed(0x1dd)]){this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1e8)]=_0x15ef89;const _0x5eedd1=_0x309b2e[_0x4a81ed(0x1dd)][_0x4a81ed(0x1ec)](!0x0);_0x43d89f(_0x5eedd1,_0x4a81ed(0x1bf),_0x15ef89),_0x43d89f(_0x5eedd1,_0x4a81ed(0x1b4),_0x4a81ed(0x1b2)),_0x29dd58(_0xb4bb78,_0x5eedd1);}else _0x4c57ad(_0xb4bb78);}}if(_0xd9d391(_0x4a81ed(0x1d3),null,_0x448e8c)[_0x4a81ed(0x1da)](_0x47f9cd=>{const _0xf6e34=_0x4a81ed,_0x44de2f=_0xfc180b(_0x47f9cd,_0xf6e34(0x1d3)),_0x1506b6=_0x48633c(_0xf6e34(0x1bf),_0x44de2f,_0x448e8c);_0x1506b6&&_0x47ceb9(_0x1506b6,_0x47f9cd);}),_0xd9d391(_0x4a81ed(0x1bf),_0x4a81ed(0x1dc),_0x448e8c)[_0x4a81ed(0x1da)](_0x5256a7=>{const _0x2f0ad0=_0x4a81ed,_0x32ca5d=this[_0x2f0ad0(0x1ac)](_0x5256a7);_0x43d89f(_0x5256a7,_0x2f0ad0(0x1bf),_0x32ca5d),this[_0x2f0ad0(0x1e7)][_0x2f0ad0(0x1c4)][_0x2f0ad0(0x1c0)](_0x32ca5d);}),this[_0x4a81ed(0x1ce)](_0x448e8c),_0x309b2e&&_0x309b2e[_0x4a81ed(0x1ed)]&&this[_0x4a81ed(0x1df)](_0x448e8c,_0x309b2e[_0x4a81ed(0x1ba)]||0x0),_0x309b2e&&_0x309b2e[_0x4a81ed(0x1b5)]&&this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1e8)]){let _0x25a6a1=_0x48633c(_0x4a81ed(0x1bf),this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1e8)],_0x448e8c);for(;_0x25a6a1;)_0x34a99e(_0x25a6a1),_0x25a6a1=_0x25a6a1[_0x4a81ed(0x1d9)];}return{'parsedContent':_0x448e8c,'newNodeIds':this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1c4)],'modifiedNodeIds':this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1c1)],'removedNodeIds':this[_0x4a81ed(0x1e7)][_0x4a81ed(0x1e9)]};}[_0x58ee84(0x1d6)](_0x3b2f0a,_0x15e370,_0x4a0c01){const _0x2d09e1=_0x58ee84;for(const _0x31c32f of _0x15e370){const _0x44ac7d=this[_0x2d09e1(0x1ac)](_0x31c32f);_0x43d89f(_0x31c32f,_0x2d09e1(0x1bf),_0x44ac7d),this[_0x2d09e1(0x1e7)][_0x2d09e1(0x1c4)][_0x2d09e1(0x1c0)](_0x44ac7d),this[_0x2d09e1(0x1e7)][_0x2d09e1(0x1e8)]=_0x44ac7d;}const _0x3c666a=_0x2d09e1(0x1e2)===_0x4a0c01||_0x2d09e1(0x1db)===_0x4a0c01?_0x15e370[_0x2d09e1(0x1c5)]():_0x15e370;for(const _0x2e0e30 of _0x3c666a)_0x1220b3(_0x3b2f0a,_0x2e0e30,_0x4a0c01);}[_0x58ee84(0x1f1)](_0x532777,_0xc62141){const _0x2f5990=_0x58ee84;if(!_0x532777)return;if(_0x563ee1(_0x532777,_0xc62141))return;const _0x4b540e=this[_0x2f5990(0x1ac)](_0x532777);_0x43d89f(_0xc62141,_0x2f5990(0x1bf),_0x4b540e),this[_0x2f5990(0x1e7)][_0x2f5990(0x1c1)][_0x2f5990(0x1c0)](_0x4b540e),this[_0x2f5990(0x1e7)][_0x2f5990(0x1e8)]=_0x4b540e,_0x29dd58(_0x532777,_0xc62141[_0x2f5990(0x1ec)](!0x0));}[_0x58ee84(0x1f2)](_0x4edb29,_0x23cc02,_0x5bfb04){const _0x489e4e=_0x58ee84,_0xf7708b=this[_0x489e4e(0x1d2)](_0x4edb29,!0x1);if(_0xf7708b){const _0x3b7db7=this[_0x489e4e(0x1e1)](_0xf7708b),_0x3d52d8=_0x48633c(_0x489e4e(0x1bf),_0x3b7db7,_0x5bfb04);if(_0x3d52d8)return[_0x3d52d8,_0x489e4e(0x1db)];this[_0x489e4e(0x1e7)][_0x489e4e(0x1cc)][_0x489e4e(0x1c0)](_0x3b7db7);}const _0x1b20b3=this[_0x489e4e(0x1ca)](_0x4edb29,!0x1);if(_0x1b20b3){const _0x19c972=this[_0x489e4e(0x1e1)](_0x1b20b3),_0x3315bf=_0x48633c(_0x489e4e(0x1bf),_0x19c972,_0x5bfb04);if(_0x3315bf)return[_0x3315bf,_0x489e4e(0x1d4)];this[_0x489e4e(0x1e7)][_0x489e4e(0x1cc)][_0x489e4e(0x1c0)](_0x19c972);}return _0x23cc02?_0x4edb29[_0x489e4e(0x1f0)]?this[_0x489e4e(0x1c2)](_0x4edb29,_0x5bfb04):[_0x5bfb04[_0x489e4e(0x1ad)][_0x5bfb04[_0x489e4e(0x1ad)][_0x489e4e(0x1e4)]-0x1],_0x489e4e(0x1db)]:[_0x5bfb04[_0x489e4e(0x1ad)][0x0],_0x489e4e(0x1d4)];}[_0x58ee84(0x1c2)](_0x263741,_0x3a509a){const _0xe03a28=_0x58ee84,_0x5e8895=[],_0x53f299=this[_0xe03a28(0x1d2)](_0x263741,!0x0);if(_0x53f299){const _0xcba031=this[_0xe03a28(0x1e1)](_0x53f299),_0x3669d4=_0x48633c(_0xe03a28(0x1bf),_0xcba031,_0x3a509a);_0x3669d4&&_0x5e8895[_0xe03a28(0x1c0)]([_0x3669d4,_0xe03a28(0x1db)]);}const _0xf2bad=this[_0xe03a28(0x1ca)](_0x263741,!0x0);if(_0xf2bad){const _0x7257a2=this[_0xe03a28(0x1e1)](_0xf2bad),_0x20afb6=_0x48633c(_0xe03a28(0x1bf),_0x7257a2,_0x3a509a);_0x20afb6&&_0x5e8895[_0xe03a28(0x1c0)]([_0x20afb6,_0xe03a28(0x1d4)]);}if(_0x5e8895[_0xe03a28(0x1e4)]>0x1)return _0x591bb8(_0x5e8895[0x0][0x0])<=_0x591bb8(_0x5e8895[0x1][0x0])?_0x5e8895[0x0]:_0x5e8895[0x1];return 0x1===_0x5e8895[_0xe03a28(0x1e4)]?_0x5e8895[0x0]:[_0x3a509a[_0xe03a28(0x1c7)],_0xe03a28(0x1db)];}[_0x58ee84(0x1ca)](_0x3a39e5,_0x215cb4){const _0x156818=_0x58ee84;let _0x28f9de=_0x3a39e5[_0x156818(0x1f0)],_0x501e6f=null,_0x267660=!0x1;for(;_0x28f9de;){if(_0x52578c(_0x28f9de)){if(this[_0x156818(0x1c6)](_0x28f9de)&&(_0x501e6f=_0x28f9de),this[_0x156818(0x1d8)](_0x28f9de)&&_0x215cb4&&!_0x267660){_0x267660=!0x0,_0x28f9de=_0x28f9de[_0x156818(0x1f0)];continue;}break;}const _0x5de11d=_0xfc180b(_0x28f9de,_0x156818(0x1bf));if(_0x5de11d&&_0x156818(0x1dc)!==_0x5de11d&&this[_0x156818(0x1b1)][_0x156818(0x1c9)](_0x5de11d)){_0x501e6f=_0x28f9de;break;}_0x28f9de=_0x28f9de[_0x156818(0x1f0)];}return _0x501e6f;}[_0x58ee84(0x1d2)](_0x306d70,_0x454c73){const _0x274fe6=_0x58ee84;let _0x3e88ae=_0x306d70[_0x274fe6(0x1bc)],_0x59bd62=null,_0x5662b3=!0x1;for(;_0x3e88ae;){if(_0x52578c(_0x3e88ae)){if(this[_0x274fe6(0x1c6)](_0x3e88ae)&&(_0x59bd62=_0x3e88ae),this[_0x274fe6(0x1d8)](_0x3e88ae)&&_0x454c73&&!_0x5662b3){_0x5662b3=!0x0,_0x3e88ae=_0x3e88ae[_0x274fe6(0x1bc)];continue;}break;}const _0x29e655=_0xfc180b(_0x3e88ae,_0x274fe6(0x1bf));if(_0x29e655&&_0x274fe6(0x1dc)!==_0x29e655&&this[_0x274fe6(0x1b1)][_0x274fe6(0x1c9)](_0x29e655)){_0x59bd62=_0x3e88ae;break;}_0x3e88ae=_0x3e88ae[_0x274fe6(0x1bc)];}return _0x59bd62;}[_0x58ee84(0x1af)](_0x4f79cf){const _0x14f0af=_0x58ee84;_0xa45678(_0x4f79cf)&&_0xd9d391(_0x14f0af(0x1bf),null,_0x4f79cf)[_0x14f0af(0x1da)](_0x17f85c=>{const _0x4a9309=_0x14f0af;if(this[_0x4a9309(0x1c3)](_0x17f85c)&&!this[_0x4a9309(0x1de)](_0x17f85c)){const _0x21bde4=_0xfc180b(_0x17f85c,_0x4a9309(0x1bf));_0x43d89f(_0x17f85c,_0x4a9309(0x1d3),_0x21bde4),_0x43d89f(_0x17f85c,_0x4a9309(0x1bf),null);}});}[_0x58ee84(0x1e1)](_0x4b7bef){const _0x17c6af=_0x58ee84;if(!_0x4b7bef)return null;if(_0xa45678(_0x4b7bef))return _0xfc180b(_0x4b7bef,_0x17c6af(0x1bf));if(_0x52578c(_0x4b7bef)){const _0x1f92fe=_0x3cb9a0(_0x4b7bef)[_0x17c6af(0x1ef)](/removed[\s*-]data-id="([^"]+)"/);if(_0x1f92fe&&_0x1f92fe[0x1])return _0x1f92fe[0x1];}return null;}[_0x58ee84(0x1f3)](_0x4d2f03){const _0x2457d6=_0x58ee84;if(_0x52578c(_0x4d2f03)){const _0x3d0486=_0x3cb9a0(_0x4d2f03)[_0x2457d6(0x1ef)](/removed[\s*-]data-id="([^"]+)"/);_0x3d0486&&_0x3d0486[0x1]&&this[_0x2457d6(0x1e7)][_0x2457d6(0x1e9)][_0x2457d6(0x1c0)](_0x3d0486[0x1]);}}[_0x58ee84(0x1ac)](_0x49c472){const _0x41387f=_0x58ee84;return this[_0x41387f(0x1c3)](_0x49c472)?_0xfc180b(_0x49c472,_0x41387f(0x1bf)):this[_0x41387f(0x1be)]();}[_0x58ee84(0x1ce)](_0x18992c){const _0x3181d7=_0x58ee84;_0x4b5199(_0x18992c)[_0x3181d7(0x1b8)](_0x1b5956=>this[_0x3181d7(0x1c6)](_0x1b5956)||this[_0x3181d7(0x1d8)](_0x1b5956))[_0x3181d7(0x1da)](_0x512996=>{_0x4c57ad(_0x512996);});}[_0x58ee84(0x1e5)](_0x17b665){const _0x2e0608=_0x58ee84,_0x54ecdb=_0x17b665[_0x2e0608(0x1ad)],_0x2ed95a=_0x54ecdb[_0x54ecdb[_0x2e0608(0x1e4)]-0x1];_0x2ed95a&&_0xa45678(_0x2ed95a)&&_0x43d89f(_0x2ed95a,_0x2e0608(0x1cd),_0x2e0608(0x1b2));}[_0x58ee84(0x1df)](_0x5a65df,_0x1a9e36){const _0x4038dd=_0x58ee84,_0x552f35=_0x48633c(_0x4038dd(0x1cd),_0x4038dd(0x1b2),_0x5a65df);if(!_0x552f35)return;const _0x4a6c86=_0x1570d8(_0x552f35)[_0x4038dd(0x1b3)](0x0,-0x1),_0x503380=_0x4a6c86[_0x4038dd(0x1e4)];let _0x15862f=_0x552f35;if(_0x503380>_0x1a9e36){let _0x4db8a3=_0x503380,_0x49f699=null;for(;_0x4db8a3>_0x1a9e36&&_0x4db8a3>=0x0;)_0x4db8a3--,_0x49f699=_0x4a6c86[_0x4db8a3];_0x49f699&&(_0x15862f=_0x49f699,_0x43d89f(_0x552f35,_0x4038dd(0x1cd),null),_0x43d89f(_0x49f699,_0x4038dd(0x1cd),_0x4038dd(0x1b2)));}else{if(_0x503380<_0x1a9e36){let _0x441a73=_0x503380,_0x48b5ef=_0x552f35;for(;_0x441a73<_0x1a9e36;){const _0x682927=_0x48b5ef[_0x4038dd(0x1ad)][_0x4038dd(0x1b8)](_0x7c513e=>_0xa45678(_0x7c513e));if(0x0===_0x682927[_0x4038dd(0x1e4)])break;_0x441a73++,_0x48b5ef=_0x682927[_0x682927[_0x4038dd(0x1e4)]-0x1];}_0x48b5ef&&(_0x15862f=_0x48b5ef,_0x43d89f(_0x552f35,_0x4038dd(0x1cd),null),_0x43d89f(_0x48b5ef,_0x4038dd(0x1cd),_0x4038dd(0x1b2)));}}let _0x4f3b1b=_0x15862f;for(;_0x4f3b1b;){for(;_0x4f3b1b[_0x4038dd(0x1f0)];)_0x4f3b1b=_0x4f3b1b[_0x4038dd(0x1f0)],_0xa45678(_0x4f3b1b)&&_0x43d89f(_0x4f3b1b,_0x4038dd(0x1cd),_0x4038dd(0x1b2));_0x4f3b1b=_0x4f3b1b[_0x4038dd(0x1d9)];}}[_0x58ee84(0x1b7)](_0x5bc76e){const _0x1383ff=_0x58ee84;return Boolean(_0x1383ff(0x1dc)===_0xfc180b(_0x5bc76e,_0x1383ff(0x1bf)));}[_0x58ee84(0x1c3)](_0x325394){const _0x1734f3=_0x58ee84;return Boolean((_0xfc180b(_0x325394,_0x1734f3(0x1bf))||'')[_0x1734f3(0x1e4)]>0x0&&_0x1734f3(0x1dc)!==_0xfc180b(_0x325394,_0x1734f3(0x1bf)));}[_0x58ee84(0x1c6)](_0x2c0157){const _0x1b7bc1=_0x58ee84;return!!_0x2c0157&&Boolean(_0x52578c(_0x2c0157)&&_0x3cb9a0(_0x2c0157)[_0x1b7bc1(0x1ef)](/removed[\s*-]data-id="[^"]+"/));}[_0x58ee84(0x1de)](_0x1e3379){const _0x7ed168=_0x58ee84;let _0x1a0c5c=_0x1e3379[_0x7ed168(0x1d9)];for(;_0x1a0c5c;){if(_0xfc180b(_0x1a0c5c,_0x7ed168(0x1d3)))return!0x0;_0x1a0c5c=_0x1a0c5c[_0x7ed168(0x1d9)];}return!0x1;}[_0x58ee84(0x1d8)](_0x457a19){const _0x302f6b=_0x58ee84;return Boolean(_0x52578c(_0x457a19)&&_0x3cb9a0(_0x457a19)[_0x302f6b(0x1ef)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ function _0x2086(_0x5d5e94,_0x965e89){const _0x51e34f=_0x51e3();return _0x2086=function(_0x208606,_0x1ebbe5){_0x208606=_0x208606-0x1b0;let _0x46b855=_0x51e34f[_0x208606];return _0x46b855;},_0x2086(_0x5d5e94,_0x965e89);}const _0x345c57=_0x2086;(function(_0xa5955,_0x4cff6f){const _0x52937d=_0x2086,_0x32a6f4=_0xa5955();while(!![]){try{const _0x36edd2=-parseInt(_0x52937d(0x1cd))/0x1*(parseInt(_0x52937d(0x1b0))/0x2)+-parseInt(_0x52937d(0x1e2))/0x3+-parseInt(_0x52937d(0x1e1))/0x4*(-parseInt(_0x52937d(0x1b6))/0x5)+-parseInt(_0x52937d(0x1d9))/0x6*(-parseInt(_0x52937d(0x1c7))/0x7)+-parseInt(_0x52937d(0x1e6))/0x8+parseInt(_0x52937d(0x1c1))/0x9*(-parseInt(_0x52937d(0x1b1))/0xa)+-parseInt(_0x52937d(0x1e3))/0xb*(-parseInt(_0x52937d(0x1f8))/0xc);if(_0x36edd2===_0x4cff6f)break;else _0x32a6f4['push'](_0x32a6f4['shift']());}catch(_0x3e9569){_0x32a6f4['push'](_0x32a6f4['shift']());}}}(_0x51e3,0x626ae));import{ObservableMixin as _0x17ed04,uid as _0x46ab75}from'ckeditor5/src/utils.js';function _0x51e3(){const _0x26be4f=['from','_isExistingContentComment','_markUnstableElements','13645vhVxEH','afterbegin','trim','nodeType','_existingDataIds','_markLastTagElementUnstable','_getNodeDataId','data-removed','_storeDeletedElementIds','markUnstableElements','true','_isNewNode','6zviGHK','includes','_replaceNode','_generateUid','lastTouchedId','reverse','_insertNodes','_markWrappedElements','357316qXeZjY','2068926Kafrdz','11HAkEag','filter','previousSibling','5224328wRCGdO','_isExistingNode','_touchedNodesState','_findFallbackReferenceNode','_findPrevElementWithDataId','forEach','_isDelNode','afterend','splice','replaceRemovedWith','parentNode','beforebegin','data-id','newIds','nextSibling','merge','data-unstable','childNodes','22856436jCUsZK','74JiHMbL','4200PNZNSV','_hasWrappedParent','match','modifiedIds','invalidIds','10wqvYhD','push','has','lastChild','map','length','data-wrapped-id','markUnstableElementsDepth','slice','indexOf','_findReferenceNode','9297FZLEBX','_findNextElementWithDataId','cutAfterLastChange','_getUid','new-element','_removeSpecialComments','4208155FDfuzo','removedIds','cloneNode'];_0x51e3=function(){return _0x26be4f;};return _0x51e3();}import{findAllByAttribute as _0x491319,findByAttribute as _0x271163,getAttribute as _0x46d82b,isComment as _0x3c3d12,isTag as _0x5ac264,insertElement as _0x1c64b1,moveElement as _0x533b44,removeElement as _0x5bc74b,replaceElement as _0x8d10c0,serialize as _0x389e77,setAttribute as _0x35720a,clone as _0x33d140,findAllComments as _0x57bfd6,getParents as _0x4f0223,getNodeNestingLevel as _0x1be19c,areNodesSame as _0x12569f,removeElementsAfter as _0x1f450b}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x17ed04(){[_0x345c57(0x1dc)];[_0x345c57(0x1e8)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x345c57(0x1d1)]=new Set();constructor(_0x44ef36){const _0x23df39=_0x345c57;super(),this[_0x23df39(0x1dc)]=_0x44ef36||_0x46ab75;}[_0x345c57(0x1f5)](_0x259c92,_0x27f714,_0x5c1e38){const _0x53a3a9=_0x345c57,_0x435327=_0x33d140(_0x259c92);if(0x0===_0x27f714[_0x53a3a9(0x1f7)][_0x53a3a9(0x1bb)]){const _0x5d0550=[];return _0x491319(_0x53a3a9(0x1f2),_0x53a3a9(0x1c5),_0x435327)[_0x53a3a9(0x1eb)](_0x39ce9d=>{const _0x302c1b=_0x53a3a9,_0x4fe25e=this[_0x302c1b(0x1dc)]();_0x35720a(_0x39ce9d,_0x302c1b(0x1f2),_0x4fe25e),_0x5d0550[_0x302c1b(0x1b7)](_0x4fe25e);}),this[_0x53a3a9(0x1c6)](_0x435327),{'parsedContent':_0x435327,'newNodeIds':_0x5d0550,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x5c1e38&&_0x5c1e38[_0x53a3a9(0x1d6)]&&this[_0x53a3a9(0x1d2)](_0x435327),this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1f3)]=[],this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1b4)]=[],this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1c8)]=[],this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1b5)]=[],this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1dd)]=null,this[_0x53a3a9(0x1d1)]=new Set(_0x491319(_0x53a3a9(0x1f2),null,_0x27f714)[_0x53a3a9(0x1ba)](_0x5a68e5=>_0x46d82b(_0x5a68e5,_0x53a3a9(0x1f2)))[_0x53a3a9(0x1e4)](_0x20f585=>!!_0x20f585));let _0x8f5c6c=-0x1,_0x2dc4da=!0x1;const _0x13df19=_0x435327[_0x53a3a9(0x1f7)],_0x355c77=Array[_0x53a3a9(0x1ca)](_0x13df19)[_0x53a3a9(0x1e4)](_0x484c63=>!(0x3===_0x484c63[_0x53a3a9(0x1d0)]&&''===_0x389e77(_0x484c63)[_0x53a3a9(0x1cf)]())),_0x53301d=_0x355c77[_0x53a3a9(0x1bb)];for(let _0x29f38d=0x0;_0x29f38d<_0x53301d;_0x29f38d++){const _0x323e0c=_0x355c77[_0x29f38d],_0x301fad=_0x355c77[_0x29f38d+0x1];if(this[_0x53a3a9(0x1d8)](_0x323e0c)){if(-0x1===_0x8f5c6c&&(_0x8f5c6c=_0x29f38d),this[_0x53a3a9(0x1e0)](_0x323e0c),!this[_0x53a3a9(0x1d8)](_0x301fad)){const [_0x40269a,_0x5a7a8f]=this[_0x53a3a9(0x1c0)](_0x323e0c,_0x2dc4da,_0x27f714);if(_0x40269a){const _0x298f1a=Array[_0x53a3a9(0x1ca)](_0x355c77)[_0x53a3a9(0x1be)](_0x8f5c6c,_0x29f38d+0x1);this[_0x53a3a9(0x1df)](_0x40269a,_0x298f1a,_0x5a7a8f),_0x8f5c6c=-0x1;}}}else{if(this[_0x53a3a9(0x1cb)](_0x323e0c))_0x2dc4da=!0x0;else{if(this[_0x53a3a9(0x1e7)](_0x323e0c)){const _0x1e82b3=_0x46d82b(_0x323e0c,_0x53a3a9(0x1f2));if(_0x1e82b3&&this[_0x53a3a9(0x1d1)][_0x53a3a9(0x1b8)](_0x1e82b3)){const _0x1cc450=_0x271163(_0x53a3a9(0x1f2),_0x1e82b3,_0x27f714);this[_0x53a3a9(0x1db)](_0x1cc450,_0x323e0c);}if(this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1c8)][_0x53a3a9(0x1da)](_0x1e82b3)){const _0x2bd341=this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1c8)][_0x53a3a9(0x1bf)](_0x1e82b3);this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1c8)][_0x53a3a9(0x1ee)](_0x2bd341,0x1);}}else{if(this[_0x53a3a9(0x1ec)](_0x323e0c)){const _0x4b651f=_0x46d82b(_0x323e0c,_0x53a3a9(0x1f2));this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1b4)][_0x53a3a9(0x1da)](_0x4b651f)||this[_0x53a3a9(0x1d5)](_0x323e0c);}}}}}for(const _0x2c39ca of this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1c8)]){const _0x2a9093=_0x271163(_0x53a3a9(0x1f2),_0x2c39ca,_0x27f714);if(_0x2a9093){if(_0x5c1e38&&_0x5c1e38[_0x53a3a9(0x1ef)]){this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1dd)]=_0x2c39ca;const _0x2b3d07=_0x5c1e38[_0x53a3a9(0x1ef)][_0x53a3a9(0x1c9)](!0x0);_0x35720a(_0x2b3d07,_0x53a3a9(0x1f2),_0x2c39ca),_0x35720a(_0x2b3d07,_0x53a3a9(0x1d4),_0x53a3a9(0x1d7)),_0x8d10c0(_0x2a9093,_0x2b3d07);}else _0x5bc74b(_0x2a9093);}}if(_0x491319(_0x53a3a9(0x1bc),null,_0x27f714)[_0x53a3a9(0x1eb)](_0x50478a=>{const _0x18d4c0=_0x53a3a9,_0x3f6291=_0x46d82b(_0x50478a,_0x18d4c0(0x1bc)),_0x2b4bf=_0x271163(_0x18d4c0(0x1f2),_0x3f6291,_0x27f714);_0x2b4bf&&_0x533b44(_0x2b4bf,_0x50478a);}),_0x491319(_0x53a3a9(0x1f2),_0x53a3a9(0x1c5),_0x27f714)[_0x53a3a9(0x1eb)](_0x1d0115=>{const _0x3b15ed=_0x53a3a9,_0x431d7d=this[_0x3b15ed(0x1c4)](_0x1d0115);_0x35720a(_0x1d0115,_0x3b15ed(0x1f2),_0x431d7d),this[_0x3b15ed(0x1e8)][_0x3b15ed(0x1f3)][_0x3b15ed(0x1b7)](_0x431d7d);}),this[_0x53a3a9(0x1c6)](_0x27f714),_0x5c1e38&&_0x5c1e38[_0x53a3a9(0x1d6)]&&this[_0x53a3a9(0x1cc)](_0x27f714,_0x5c1e38[_0x53a3a9(0x1bd)]||0x0),_0x5c1e38&&_0x5c1e38[_0x53a3a9(0x1c3)]&&this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1dd)]){let _0x3764e5=_0x271163(_0x53a3a9(0x1f2),this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1dd)],_0x27f714);for(;_0x3764e5;)_0x1f450b(_0x3764e5),_0x3764e5=_0x3764e5[_0x53a3a9(0x1f0)];}return{'parsedContent':_0x27f714,'newNodeIds':this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1f3)],'modifiedNodeIds':this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1b4)],'removedNodeIds':this[_0x53a3a9(0x1e8)][_0x53a3a9(0x1c8)]};}[_0x345c57(0x1df)](_0x37c5b4,_0x2ae52a,_0x45c10e){const _0x480042=_0x345c57;for(const _0x7e3184 of _0x2ae52a){const _0x3f4f3a=this[_0x480042(0x1c4)](_0x7e3184);_0x35720a(_0x7e3184,_0x480042(0x1f2),_0x3f4f3a),this[_0x480042(0x1e8)][_0x480042(0x1f3)][_0x480042(0x1b7)](_0x3f4f3a),this[_0x480042(0x1e8)][_0x480042(0x1dd)]=_0x3f4f3a;}const _0x590331=_0x480042(0x1ce)===_0x45c10e||_0x480042(0x1ed)===_0x45c10e?_0x2ae52a[_0x480042(0x1de)]():_0x2ae52a;for(const _0x964888 of _0x590331)_0x1c64b1(_0x37c5b4,_0x964888,_0x45c10e);}[_0x345c57(0x1db)](_0xaaffe0,_0x16ed42){const _0x1c3505=_0x345c57;if(!_0xaaffe0)return;if(_0x12569f(_0xaaffe0,_0x16ed42))return;const _0x9e7d86=this[_0x1c3505(0x1c4)](_0xaaffe0);_0x35720a(_0x16ed42,_0x1c3505(0x1f2),_0x9e7d86),this[_0x1c3505(0x1e8)][_0x1c3505(0x1b4)][_0x1c3505(0x1b7)](_0x9e7d86),this[_0x1c3505(0x1e8)][_0x1c3505(0x1dd)]=_0x9e7d86,_0x8d10c0(_0xaaffe0,_0x16ed42[_0x1c3505(0x1c9)](!0x0));}[_0x345c57(0x1c0)](_0x46a1d3,_0x39ed9a,_0x391d78){const _0x234af4=_0x345c57,_0x53650e=this[_0x234af4(0x1ea)](_0x46a1d3,!0x1);if(_0x53650e){const _0x19da99=this[_0x234af4(0x1d3)](_0x53650e),_0x2ec141=_0x271163(_0x234af4(0x1f2),_0x19da99,_0x391d78);if(_0x2ec141)return[_0x2ec141,_0x234af4(0x1ed)];this[_0x234af4(0x1e8)][_0x234af4(0x1b5)][_0x234af4(0x1b7)](_0x19da99);}const _0x4938b8=this[_0x234af4(0x1c2)](_0x46a1d3,!0x1);if(_0x4938b8){const _0x34a508=this[_0x234af4(0x1d3)](_0x4938b8),_0x373390=_0x271163(_0x234af4(0x1f2),_0x34a508,_0x391d78);if(_0x373390)return[_0x373390,_0x234af4(0x1f1)];this[_0x234af4(0x1e8)][_0x234af4(0x1b5)][_0x234af4(0x1b7)](_0x34a508);}return _0x39ed9a?_0x46a1d3[_0x234af4(0x1f4)]?this[_0x234af4(0x1e9)](_0x46a1d3,_0x391d78):[_0x391d78[_0x234af4(0x1f7)][_0x391d78[_0x234af4(0x1f7)][_0x234af4(0x1bb)]-0x1],_0x234af4(0x1ed)]:[_0x391d78[_0x234af4(0x1f7)][0x0],_0x234af4(0x1f1)];}[_0x345c57(0x1e9)](_0x219aa2,_0x57b9fe){const _0x3ac9a6=_0x345c57,_0x2fe98a=[],_0x1f20e4=this[_0x3ac9a6(0x1ea)](_0x219aa2,!0x0);if(_0x1f20e4){const _0x5cbbf4=this[_0x3ac9a6(0x1d3)](_0x1f20e4),_0x3f46a2=_0x271163(_0x3ac9a6(0x1f2),_0x5cbbf4,_0x57b9fe);_0x3f46a2&&_0x2fe98a[_0x3ac9a6(0x1b7)]([_0x3f46a2,_0x3ac9a6(0x1ed)]);}const _0x207a8a=this[_0x3ac9a6(0x1c2)](_0x219aa2,!0x0);if(_0x207a8a){const _0x3e2072=this[_0x3ac9a6(0x1d3)](_0x207a8a),_0x48d233=_0x271163(_0x3ac9a6(0x1f2),_0x3e2072,_0x57b9fe);_0x48d233&&_0x2fe98a[_0x3ac9a6(0x1b7)]([_0x48d233,_0x3ac9a6(0x1f1)]);}if(_0x2fe98a[_0x3ac9a6(0x1bb)]>0x1)return _0x1be19c(_0x2fe98a[0x0][0x0])<=_0x1be19c(_0x2fe98a[0x1][0x0])?_0x2fe98a[0x0]:_0x2fe98a[0x1];return 0x1===_0x2fe98a[_0x3ac9a6(0x1bb)]?_0x2fe98a[0x0]:[_0x57b9fe[_0x3ac9a6(0x1b9)],_0x3ac9a6(0x1ed)];}[_0x345c57(0x1c2)](_0x33eebd,_0x17441e){const _0x6ab41e=_0x345c57;let _0x2f3049=_0x33eebd[_0x6ab41e(0x1f4)],_0x83203b=null,_0x317d96=!0x1;for(;_0x2f3049;){if(_0x3c3d12(_0x2f3049)){if(this[_0x6ab41e(0x1ec)](_0x2f3049)&&(_0x83203b=_0x2f3049),this[_0x6ab41e(0x1cb)](_0x2f3049)&&_0x17441e&&!_0x317d96){_0x317d96=!0x0,_0x2f3049=_0x2f3049[_0x6ab41e(0x1f4)];continue;}break;}const _0x3b8288=_0x46d82b(_0x2f3049,_0x6ab41e(0x1f2));if(_0x3b8288&&_0x6ab41e(0x1c5)!==_0x3b8288&&this[_0x6ab41e(0x1d1)][_0x6ab41e(0x1b8)](_0x3b8288)){_0x83203b=_0x2f3049;break;}_0x2f3049=_0x2f3049[_0x6ab41e(0x1f4)];}return _0x83203b;}[_0x345c57(0x1ea)](_0x5740c7,_0x4e0014){const _0x2448c1=_0x345c57;let _0x562518=_0x5740c7[_0x2448c1(0x1e5)],_0x9cfb9f=null,_0x37fef8=!0x1;for(;_0x562518;){if(_0x3c3d12(_0x562518)){if(this[_0x2448c1(0x1ec)](_0x562518)&&(_0x9cfb9f=_0x562518),this[_0x2448c1(0x1cb)](_0x562518)&&_0x4e0014&&!_0x37fef8){_0x37fef8=!0x0,_0x562518=_0x562518[_0x2448c1(0x1e5)];continue;}break;}const _0x1fc6ac=_0x46d82b(_0x562518,_0x2448c1(0x1f2));if(_0x1fc6ac&&_0x2448c1(0x1c5)!==_0x1fc6ac&&this[_0x2448c1(0x1d1)][_0x2448c1(0x1b8)](_0x1fc6ac)){_0x9cfb9f=_0x562518;break;}_0x562518=_0x562518[_0x2448c1(0x1e5)];}return _0x9cfb9f;}[_0x345c57(0x1e0)](_0x202724){const _0x19fa07=_0x345c57;_0x5ac264(_0x202724)&&_0x491319(_0x19fa07(0x1f2),null,_0x202724)[_0x19fa07(0x1eb)](_0x25c6f6=>{const _0x224c87=_0x19fa07;if(this[_0x224c87(0x1e7)](_0x25c6f6)&&!this[_0x224c87(0x1b2)](_0x25c6f6)){const _0x586354=_0x46d82b(_0x25c6f6,_0x224c87(0x1f2));_0x35720a(_0x25c6f6,_0x224c87(0x1bc),_0x586354),_0x35720a(_0x25c6f6,_0x224c87(0x1f2),null);}});}[_0x345c57(0x1d3)](_0x1161b8){const _0x415cb3=_0x345c57;if(!_0x1161b8)return null;if(_0x5ac264(_0x1161b8))return _0x46d82b(_0x1161b8,_0x415cb3(0x1f2));if(_0x3c3d12(_0x1161b8)){const _0x1db7ff=_0x389e77(_0x1161b8)[_0x415cb3(0x1b3)](/removed[\s*-]data-id="([^"]+)"/);if(_0x1db7ff&&_0x1db7ff[0x1])return _0x1db7ff[0x1];}return null;}[_0x345c57(0x1d5)](_0x572ec6){const _0x7d2d02=_0x345c57;if(_0x3c3d12(_0x572ec6)){const _0x33f286=_0x389e77(_0x572ec6)[_0x7d2d02(0x1b3)](/removed[\s*-]data-id="([^"]+)"/);_0x33f286&&_0x33f286[0x1]&&this[_0x7d2d02(0x1e8)][_0x7d2d02(0x1c8)][_0x7d2d02(0x1b7)](_0x33f286[0x1]);}}[_0x345c57(0x1c4)](_0x4b570a){const _0x5d376f=_0x345c57;return this[_0x5d376f(0x1e7)](_0x4b570a)?_0x46d82b(_0x4b570a,_0x5d376f(0x1f2)):this[_0x5d376f(0x1dc)]();}[_0x345c57(0x1c6)](_0x435d31){const _0x30465b=_0x345c57;_0x57bfd6(_0x435d31)[_0x30465b(0x1e4)](_0x2be5fc=>this[_0x30465b(0x1ec)](_0x2be5fc)||this[_0x30465b(0x1cb)](_0x2be5fc))[_0x30465b(0x1eb)](_0x52cf02=>{_0x5bc74b(_0x52cf02);});}[_0x345c57(0x1d2)](_0x501d84){const _0x508940=_0x345c57,_0x3ce59a=_0x501d84[_0x508940(0x1f7)],_0x48ea22=_0x3ce59a[_0x3ce59a[_0x508940(0x1bb)]-0x1];_0x48ea22&&_0x5ac264(_0x48ea22)&&_0x35720a(_0x48ea22,_0x508940(0x1f6),_0x508940(0x1d7));}[_0x345c57(0x1cc)](_0x361285,_0x3bf038){const _0x39375a=_0x345c57,_0x43470c=_0x271163(_0x39375a(0x1f6),_0x39375a(0x1d7),_0x361285);if(!_0x43470c)return;const _0x3f2691=_0x4f0223(_0x43470c)[_0x39375a(0x1be)](0x0,-0x1),_0x51c5bc=_0x3f2691[_0x39375a(0x1bb)];let _0x2c8eee=_0x43470c;if(_0x51c5bc>_0x3bf038){let _0x15608e=_0x51c5bc,_0x18b00d=null;for(;_0x15608e>_0x3bf038&&_0x15608e>=0x0;)_0x15608e--,_0x18b00d=_0x3f2691[_0x15608e];_0x18b00d&&(_0x2c8eee=_0x18b00d,_0x35720a(_0x43470c,_0x39375a(0x1f6),null),_0x35720a(_0x18b00d,_0x39375a(0x1f6),_0x39375a(0x1d7)));}else{if(_0x51c5bc<_0x3bf038){let _0x6e74ab=_0x51c5bc,_0x4f07ea=_0x43470c;for(;_0x6e74ab<_0x3bf038;){const _0x5e3bc8=_0x4f07ea[_0x39375a(0x1f7)][_0x39375a(0x1e4)](_0x1be6be=>_0x5ac264(_0x1be6be));if(0x0===_0x5e3bc8[_0x39375a(0x1bb)])break;_0x6e74ab++,_0x4f07ea=_0x5e3bc8[_0x5e3bc8[_0x39375a(0x1bb)]-0x1];}_0x4f07ea&&(_0x2c8eee=_0x4f07ea,_0x35720a(_0x43470c,_0x39375a(0x1f6),null),_0x35720a(_0x4f07ea,_0x39375a(0x1f6),_0x39375a(0x1d7)));}}let _0x3445f6=_0x2c8eee;for(;_0x3445f6;){for(;_0x3445f6[_0x39375a(0x1f4)];)_0x3445f6=_0x3445f6[_0x39375a(0x1f4)],_0x5ac264(_0x3445f6)&&_0x35720a(_0x3445f6,_0x39375a(0x1f6),_0x39375a(0x1d7));_0x3445f6=_0x3445f6[_0x39375a(0x1f0)];}}[_0x345c57(0x1d8)](_0x3ebd97){const _0xa87798=_0x345c57;return Boolean(_0xa87798(0x1c5)===_0x46d82b(_0x3ebd97,_0xa87798(0x1f2)));}[_0x345c57(0x1e7)](_0x214960){const _0x27e44c=_0x345c57;return Boolean((_0x46d82b(_0x214960,_0x27e44c(0x1f2))||'')[_0x27e44c(0x1bb)]>0x0&&_0x27e44c(0x1c5)!==_0x46d82b(_0x214960,_0x27e44c(0x1f2)));}[_0x345c57(0x1ec)](_0x4dbd4f){const _0x1216dc=_0x345c57;return!!_0x4dbd4f&&Boolean(_0x3c3d12(_0x4dbd4f)&&_0x389e77(_0x4dbd4f)[_0x1216dc(0x1b3)](/removed[\s*-]data-id="[^"]+"/));}[_0x345c57(0x1b2)](_0x33de80){const _0x5754d0=_0x345c57;let _0x46dfad=_0x33de80[_0x5754d0(0x1f0)];for(;_0x46dfad;){if(_0x46d82b(_0x46dfad,_0x5754d0(0x1bc)))return!0x0;_0x46dfad=_0x46dfad[_0x5754d0(0x1f0)];}return!0x1;}[_0x345c57(0x1cb)](_0x20c57c){const _0x54eca8=_0x345c57;return Boolean(_0x3c3d12(_0x20c57c)&&_0x389e77(_0x20c57c)[_0x54eca8(0x1b3)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3b43(_0x3ff088,_0x56ae8c){const _0x243684=_0x2436();return _0x3b43=function(_0x3b430a,_0x12577e){_0x3b430a=_0x3b430a-0x70;let _0x3f6e44=_0x243684[_0x3b430a];return _0x3f6e44;},_0x3b43(_0x3ff088,_0x56ae8c);}const _0x361180=_0x3b43;(function(_0x149004,_0x80cc33){const _0x24ef46=_0x3b43,_0x4b8b5f=_0x149004();while(!![]){try{const _0x364b85=-parseInt(_0x24ef46(0x7c))/0x1+-parseInt(_0x24ef46(0x70))/0x2*(-parseInt(_0x24ef46(0x78))/0x3)+parseInt(_0x24ef46(0x7a))/0x4*(-parseInt(_0x24ef46(0x83))/0x5)+-parseInt(_0x24ef46(0x7d))/0x6*(-parseInt(_0x24ef46(0x74))/0x7)+parseInt(_0x24ef46(0x72))/0x8*(parseInt(_0x24ef46(0x76))/0x9)+parseInt(_0x24ef46(0x71))/0xa*(-parseInt(_0x24ef46(0x81))/0xb)+parseInt(_0x24ef46(0x84))/0xc;if(_0x364b85===_0x80cc33)break;else _0x4b8b5f['push'](_0x4b8b5f['shift']());}catch(_0x4febdb){_0x4b8b5f['push'](_0x4b8b5f['shift']());}}}(_0x2436,0x21249));import{ObservableMixin as _0x3685bc}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x45418f}from'@ckeditor/ckeditor5-markdown-gfm';function _0x2436(){const _0x3b8abd=['66029hKtWNA','528396Ggfsok','_parseHTML','children','parse','1800139ahTAIv','convertMarkdownToHTML','35juMwnb','508824ZMIIMy','156tYDkLk','10PzUGvN','1660208iNdbvy','parseAndNormalizeHTML','7sEtrXx','_m2html','9AszQUC','</dummy>','6858MtWbUb','<dummy>','86212zyQpwZ','replace'];_0x2436=function(){return _0x3b8abd;};return _0x2436();}import{parse as _0x2827f6}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x3685bc(){[_0x361180(0x75)];constructor(){const _0x72aa94=_0x361180;super(),this[_0x72aa94(0x75)]=new _0x45418f();}[_0x361180(0x82)](_0x35a0ed){const _0x31c8fd=_0x361180,_0x241ae6=this[_0x31c8fd(0x75)][_0x31c8fd(0x80)](_0x35a0ed);return this[_0x31c8fd(0x73)](_0x241ae6);}[_0x361180(0x73)](_0x4194b4){const _0x23d660=_0x361180;return this[_0x23d660(0x7e)](_0x4194b4);}[_0x361180(0x7e)](_0x4f334c){const _0x4820b=_0x361180,_0x10727b=_0x4f334c[_0x4820b(0x7b)](/^\t+/gm,'\x20')[_0x4820b(0x7b)](/\n*/g,'')[_0x4820b(0x7b)](/\s+/g,'\x20')[_0x4820b(0x7b)](/<[^>]*?$/g,''),_0x24510e=_0x2827f6(_0x4820b(0x79)+_0x10727b+_0x4820b(0x77));return _0x24510e[_0x4820b(0x7f)]=_0x24510e[_0x4820b(0x7f)][0x0][_0x4820b(0x7f)],_0x24510e;}}
23
+ const _0x53dbf4=_0x1c38;function _0x1c38(_0x465001,_0x1372e6){const _0x2a194b=_0x2a19();return _0x1c38=function(_0x1c3800,_0x3a7aed){_0x1c3800=_0x1c3800-0x77;let _0x45f7c1=_0x2a194b[_0x1c3800];return _0x45f7c1;},_0x1c38(_0x465001,_0x1372e6);}(function(_0x30ac93,_0xad8ae0){const _0x4bf10=_0x1c38,_0x5c3226=_0x30ac93();while(!![]){try{const _0xabe6e6=-parseInt(_0x4bf10(0x84))/0x1*(-parseInt(_0x4bf10(0x81))/0x2)+parseInt(_0x4bf10(0x7b))/0x3+-parseInt(_0x4bf10(0x77))/0x4+-parseInt(_0x4bf10(0x7a))/0x5+parseInt(_0x4bf10(0x7d))/0x6+parseInt(_0x4bf10(0x7f))/0x7*(parseInt(_0x4bf10(0x79))/0x8)+-parseInt(_0x4bf10(0x80))/0x9;if(_0xabe6e6===_0xad8ae0)break;else _0x5c3226['push'](_0x5c3226['shift']());}catch(_0x4dca3e){_0x5c3226['push'](_0x5c3226['shift']());}}}(_0x2a19,0x923d4));import{ObservableMixin as _0x3229cc}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x4d0a53}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x5b236a}from'../utils/htmlparser.js';function _0x2a19(){const _0x37e726=['2440194nEyhUE','_parseHTML','4858WBOVzu','7775748azIVRw','1972014EqPQga','parseAndNormalizeHTML','convertMarkdownToHTML','1sMJqJj','<dummy>','parse','</dummy>','children','1789252dizQmK','_m2html','1688sIjRGV','3851725wZkdQA','3424458JTwbHr','replace'];_0x2a19=function(){return _0x37e726;};return _0x2a19();}export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x3229cc(){[_0x53dbf4(0x78)];constructor(){const _0x7eb21=_0x53dbf4;super(),this[_0x7eb21(0x78)]=new _0x4d0a53();}[_0x53dbf4(0x83)](_0x5d1e66){const _0x40543e=_0x53dbf4,_0x5648df=this[_0x40543e(0x78)][_0x40543e(0x86)](_0x5d1e66);return this[_0x40543e(0x82)](_0x5648df);}[_0x53dbf4(0x82)](_0x4172a4){const _0x282113=_0x53dbf4;return this[_0x282113(0x7e)](_0x4172a4);}[_0x53dbf4(0x7e)](_0x4b4654){const _0x2d839e=_0x53dbf4,_0x26cc46=_0x4b4654[_0x2d839e(0x7c)](/^\t+/gm,'\x20')[_0x2d839e(0x7c)](/\n*/g,'')[_0x2d839e(0x7c)](/\s+/g,'\x20')[_0x2d839e(0x7c)](/<[^>]*?$/g,''),_0x589813=_0x5b236a(_0x2d839e(0x85)+_0x26cc46+_0x2d839e(0x87));return _0x589813[_0x2d839e(0x88)]=_0x589813[_0x2d839e(0x88)][0x0][_0x2d839e(0x88)],_0x589813;}}