@ckeditor/ckeditor5-ai 47.6.0-alpha.2 → 47.6.0-alpha.4

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 (319) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.js +1 -1
  180. package/src/aichat/model/aichatconversation.js +1 -1
  181. package/src/aichat/model/aichatinteraction.js +1 -1
  182. package/src/aichat/ui/aichatballoonview.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aichatshortcuts/aichatshortcuts.d.ts +8 -4
  221. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  223. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  224. package/src/aicore/aiconnector.js +1 -1
  225. package/src/aicore/aiediting.js +1 -1
  226. package/src/aicore/model/aicapabilities.js +1 -1
  227. package/src/aicore/model/aicontext.js +1 -1
  228. package/src/aicore/model/aiinteraction.js +1 -1
  229. package/src/aicore/model/aimodels.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.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  246. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  247. package/src/aicore/utils/common-translations.js +1 -1
  248. package/src/aicore/utils/createresizebutton.js +1 -1
  249. package/src/aicore/utils/documentposition.js +1 -1
  250. package/src/aicore/utils/documentrange.js +1 -1
  251. package/src/aicore/utils/eventnames.js +1 -1
  252. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  253. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  254. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  255. package/src/aicore/utils/htmlparser.js +1 -1
  256. package/src/aicore/utils/htmlstreamer.js +1 -1
  257. package/src/aicore/utils/scrollmanager.js +1 -1
  258. package/src/aieditorintegration/aieditorintegration.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  260. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  261. package/src/aiquickactions/aiquickactions.js +1 -1
  262. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  263. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  264. package/src/aiquickactions/aiquickactionsui.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  268. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  271. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  272. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  273. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  274. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  275. package/src/aireviewcore/aireviewcoreui.js +1 -1
  276. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  277. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  280. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  281. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  292. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  294. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  295. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  296. package/src/aireviewmode/aireviewmode.js +1 -1
  297. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  298. package/src/aireviewmode/aireviewmodeui.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  300. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  301. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  303. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  304. package/src/aitabs/aitabs.js +1 -1
  305. package/src/aitabs/aitabsmainview.js +1 -1
  306. package/src/aitabs/tabs/aitabsview.js +1 -1
  307. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  308. package/src/aitabs/tabs/tabpanelview.js +1 -1
  309. package/src/aitranslate/aitranslate.js +1 -1
  310. package/src/aitranslate/aitranslatecontroller.js +1 -1
  311. package/src/aitranslate/aitranslateui.js +1 -1
  312. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  313. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  314. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  315. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  316. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  317. package/src/errors.js +1 -1
  318. package/src/errorsmap.js +1 -1
  319. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x445ef3=_0x877b;function _0x5a8a(){const _0x488cb7=['upsertAIReviewRating','fetchConversationMessages','3062610tYUoFl','upsertAIChatRating','_sendApiRequest','isOfficialPlugin','fix-grammar','/files','isPremiumPlugin','/conversations?','POST','make-tone-casual','CloudServices','callSystemReview','queryAssistant','ai.serviceUrl','make-tone-formal','attributes','_token','/actions/custom/calls','token','true','text','ai-missing-token','parse','284730sFqwqr','config','executeCustomAction','uploadFile','requires','DELETE','GET','/messages','body','plugins','TRANSLATE','IMPROVE_WRITING','reset','fetchConversation','false','upsertCustomAIReviewRating','getModels','MAKE_TONE_CASUAL','ai-request-failed','make-longer','file','deleteDocument','deleteConversation','excludeEmpty','releaseLock','append','/models/1?','/calls/','deleteWebResource','4166806cPIMgd','AbortError','positiveCount','PATCH','8NvExIF','upsertCustomAIActionRating','make-shorter','modificationId','/reviews/custom/calls/','_apiUrl','/calls','437822MGpQkD','statusText','_handleError','feed','_getStreamReader','/files/','3350936tUISOQ','name','startConversation','message','language','then','https://ai.cke-cs.com/v1','length','data','/web-resources/','traceId','Content-Type','init','totalCount','push','translate','/documents','MAKE_SHORTER','application/json','improve-writing','abortController','signal','fetchConversations','/reviews/system/','upsertAIActionRating','100','/conversations/','define','deleteFile','MAKE_LONGER','decode','createdAt','context','1012850EaQiYJ','/ratings','uploadDocument','get','fetchDocument','getReader','/actions/custom/calls/','code','/conversations','/messages/','toString','desc','Bearer\x20','status','executeAction','callCustomReview','/web-resources','/documents/','limit','MAKE_TONE_FORMAL','4FAmIeA','value','CONTINUE','order','AIConnector','FIX_GRAMMAR','_decoder','read','stringify','PUT','ai-request-aborted','catch','items','request','uploadUrl','/actions/system/','pluginName','json','continue','sortBy','group','/reviews/custom/calls','14948001mQUoZU','updateConversation'];_0x5a8a=function(){return _0x488cb7;};return _0x5a8a();}(function(_0x18fd82,_0x3e4208){const _0x5d1505=_0x877b,_0x469466=_0x18fd82();while(!![]){try{const _0x1bafba=-parseInt(_0x5d1505(0x1d9))/0x1+parseInt(_0x5d1505(0x180))/0x2*(parseInt(_0x5d1505(0x1b1))/0x3)+-parseInt(_0x5d1505(0x1df))/0x4+-parseInt(_0x5d1505(0x16c))/0x5+-parseInt(_0x5d1505(0x19a))/0x6+parseInt(_0x5d1505(0x1ce))/0x7+-parseInt(_0x5d1505(0x1d2))/0x8*(-parseInt(_0x5d1505(0x196))/0x9);if(_0x1bafba===_0x3e4208)break;else _0x469466['push'](_0x469466['shift']());}catch(_0x469e64){_0x469466['push'](_0x469466['shift']());}}}(_0x5a8a,0x6fabe));function _0x877b(_0x137f1e,_0x36a8ed){const _0x5a8a70=_0x5a8a();return _0x877b=function(_0x877b69,_0x3d5f2f){_0x877b69=_0x877b69-0x151;let _0x1705bc=_0x5a8a70[_0x877b69];return _0x1705bc;},_0x877b(_0x137f1e,_0x36a8ed);}import{createParser as _0x1fe1fb}from'eventsource-parser';import{ContextPlugin as _0x6621b6}from'ckeditor5/src/core.js';import{CKEditorError as _0x536def}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x4247e2){const _0x162eb6=_0x877b;_0x4247e2[_0x162eb6(0x182)]=_0x162eb6(0x192),_0x4247e2[_0x162eb6(0x185)]=_0x162eb6(0x19e),_0x4247e2[_0x162eb6(0x1bc)]=_0x162eb6(0x15e),_0x4247e2[_0x162eb6(0x168)]=_0x162eb6(0x1c4),_0x4247e2[_0x162eb6(0x15c)]=_0x162eb6(0x1d4),_0x4247e2[_0x162eb6(0x1c2)]=_0x162eb6(0x1a3),_0x4247e2[_0x162eb6(0x17f)]=_0x162eb6(0x1a8),_0x4247e2[_0x162eb6(0x1bb)]=_0x162eb6(0x15a);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x6621b6{[_0x445ef3(0x1d7)];[_0x445ef3(0x1aa)];[_0x445ef3(0x186)];static get[_0x445ef3(0x1b5)](){const _0x2bc14d=_0x445ef3;return[_0x2bc14d(0x1a4)];}static get[_0x445ef3(0x190)](){const _0x4603f9=_0x445ef3;return _0x4603f9(0x184);}static get[_0x445ef3(0x19d)](){return!0x0;}static get[_0x445ef3(0x1a0)](){return!0x0;}constructor(_0x54968e){const _0x4891e8=_0x445ef3;super(_0x54968e),this[_0x4891e8(0x16b)][_0x4891e8(0x1b2)][_0x4891e8(0x166)](_0x4891e8(0x1a7),_0x4891e8(0x151)),this[_0x4891e8(0x1d7)]=this[_0x4891e8(0x16b)][_0x4891e8(0x1b2)][_0x4891e8(0x16f)](_0x4891e8(0x1a7)),this[_0x4891e8(0x1aa)]=null,this[_0x4891e8(0x186)]=new TextDecoder();}[_0x445ef3(0x157)](){const _0x47a0ff=_0x445ef3,_0x61b8ee=this[_0x47a0ff(0x16b)][_0x47a0ff(0x1ba)][_0x47a0ff(0x16f)](_0x47a0ff(0x1a4));if(!_0x61b8ee[_0x47a0ff(0x1ac)])throw new _0x536def(_0x47a0ff(0x1af),this);this[_0x47a0ff(0x1aa)]=_0x61b8ee[_0x47a0ff(0x1ac)];}[_0x445ef3(0x1e1)](_0xdd9121,_0x24cc93){const _0x1d5c02=_0x445ef3,_0x33b650=this[_0x1d5c02(0x19c)](_0x1d5c02(0x174),_0x1d5c02(0x1a2),{'id':_0xdd9121,'group':_0x24cc93});return{'getConversation':async()=>(await _0x33b650[_0x1d5c02(0x18d)])[_0x1d5c02(0x191)](),'abortController':_0x33b650[_0x1d5c02(0x15f)]};}[_0x445ef3(0x1a6)]({message:_0x4a37bc,conversationId:_0xdc4ac6,parts:_0x4225b2,capabilities:_0x296c59,model:_0xdf604c,attributes:_0x1dd32a}){const _0x1314cf=_0x445ef3,_0x27d801={'prompt':_0x4a37bc,'content':_0x4225b2,'model':_0xdf604c,..._0x296c59&&{'capabilities':_0x296c59},..._0x1dd32a&&{'attributes':_0x1dd32a}},_0x559407=this[_0x1314cf(0x19c)](_0x1314cf(0x165)+_0xdc4ac6+_0x1314cf(0x1b8),_0x1314cf(0x1a2),_0x27d801);return{'getStream':async()=>{const _0x3be70f=_0x1314cf,_0x2d9f73=(await _0x559407[_0x3be70f(0x18d)])[_0x3be70f(0x1b9)];return this[_0x3be70f(0x1dd)](_0x2d9f73);},'abortController':_0x559407[_0x1314cf(0x15f)]};}[_0x445ef3(0x1b3)]({content:_0x32f90c,message:_0x1a516b,model:_0x32f3fe,outputFormat:_0x1999a4}){const _0x5ae776=_0x445ef3,_0xa58f89={'content':[{'type':_0x5ae776(0x1ae),'content':_0x32f90c}],'prompt':_0x1a516b,'model':_0x32f3fe,'outputFormat':_0x1999a4},_0x1c24e6=this[_0x5ae776(0x19c)](_0x5ae776(0x1ab),_0x5ae776(0x1a2),_0xa58f89);return{'getStream':async()=>{const _0x491343=_0x5ae776,_0x3ad06c=(await _0x1c24e6[_0x491343(0x18d)])[_0x491343(0x1b9)];return this[_0x491343(0x1dd)](_0x3ad06c);},'abortController':_0x1c24e6[_0x5ae776(0x15f)]};}[_0x445ef3(0x17a)]({actionName:_0x127842,content:_0x689681,args:_0x3eaf7f}){const _0x2ea955=_0x445ef3,_0x43c1ef={'content':[{'type':_0x2ea955(0x1ae),'content':_0x689681}],'args':_0x3eaf7f},_0x2c40af=this[_0x2ea955(0x19c)](_0x2ea955(0x18f)+_0x127842+_0x2ea955(0x1d8),_0x2ea955(0x1a2),_0x43c1ef);return{'getStream':async()=>{const _0x4d0047=_0x2ea955,_0x3b943b=(await _0x2c40af[_0x4d0047(0x18d)])[_0x4d0047(0x1b9)];return this[_0x4d0047(0x1dd)](_0x3b943b);},'abortController':_0x2c40af[_0x2ea955(0x15f)]};}[_0x445ef3(0x1b4)](_0xa660b0,_0x40e758,_0xef60b3){const _0x1e281e=_0x445ef3,_0x50151a=new FormData();_0x50151a[_0x1e281e(0x1ca)](_0x1e281e(0x1c5),_0x40e758,_0x40e758[_0x1e281e(0x1e0)]),_0xef60b3&&_0x50151a[_0x1e281e(0x1ca)](_0x1e281e(0x1a9),JSON[_0x1e281e(0x188)](_0xef60b3));const _0x4ab5c6=this[_0x1e281e(0x19c)](_0x1e281e(0x165)+_0xa660b0+_0x1e281e(0x19f),_0x1e281e(0x1a2),_0x50151a);return{'getId':async()=>(await _0x4ab5c6[_0x1e281e(0x18d)])[_0x1e281e(0x191)](),'abortController':_0x4ab5c6[_0x1e281e(0x15f)]};}[_0x445ef3(0x170)](_0x4cb1e0,_0xcea594){const _0x381d0a=_0x445ef3,_0x14dd5c=this[_0x381d0a(0x19c)](_0x381d0a(0x165)+_0x4cb1e0+_0x381d0a(0x17d)+_0xcea594,_0x381d0a(0x1b7));return{'getDocument':async()=>(await _0x14dd5c[_0x381d0a(0x18d)])[_0x381d0a(0x191)](),'abortController':_0x14dd5c[_0x381d0a(0x15f)]};}[_0x445ef3(0x16e)](_0x2b2b72,_0x2e797d,_0x112cc3){const _0x3d68bf=_0x445ef3,_0x5539ca={'content':_0x2e797d};_0x112cc3&&(_0x5539ca[_0x3d68bf(0x1a9)]=_0x112cc3);const _0x19d775=this[_0x3d68bf(0x19c)](_0x3d68bf(0x165)+_0x2b2b72+_0x3d68bf(0x15b),_0x3d68bf(0x1a2),_0x5539ca);return{'getId':async()=>(await _0x19d775[_0x3d68bf(0x18d)])[_0x3d68bf(0x191)](),'abortController':_0x19d775[_0x3d68bf(0x15f)]};}[_0x445ef3(0x161)](_0xc0f2d4,_0x3f652b={}){const _0x426413=_0x445ef3,_0x5294ba=new URLSearchParams();_0x5294ba[_0x426413(0x1ca)](_0x426413(0x194),_0xc0f2d4),_0x5294ba[_0x426413(0x1ca)](_0x426413(0x1c8),!0x1!==_0x3f652b[_0x426413(0x1c8)]?_0x426413(0x1ad):_0x426413(0x1bf)),_0x5294ba[_0x426413(0x1ca)](_0x426413(0x17e),_0x3f652b[_0x426413(0x17e)]?_0x3f652b[_0x426413(0x17e)][_0x426413(0x176)]():_0x426413(0x164)),_0x5294ba[_0x426413(0x1ca)](_0x426413(0x193),_0x3f652b[_0x426413(0x193)]?_0x3f652b[_0x426413(0x193)]:_0x426413(0x16a)),_0x5294ba[_0x426413(0x1ca)](_0x426413(0x183),_0x3f652b[_0x426413(0x183)]?_0x3f652b[_0x426413(0x183)]:_0x426413(0x177));const _0x13a5ec=this[_0x426413(0x19c)](_0x426413(0x1a1)+_0x5294ba[_0x426413(0x176)](),_0x426413(0x1b7));return{'getConversations':async()=>{const _0x1e8815=_0x426413,_0xf834b0=await _0x13a5ec[_0x1e8815(0x18d)];return(await _0xf834b0[_0x1e8815(0x191)]())[_0x1e8815(0x18c)];},'abortController':_0x13a5ec[_0x426413(0x15f)]};}[_0x445ef3(0x1c7)](_0x2719ad){const _0xbcee3a=_0x445ef3,_0x31b272=this[_0xbcee3a(0x19c)](_0xbcee3a(0x165)+_0x2719ad,_0xbcee3a(0x1b6));return{'execute':async()=>{const _0x3b6f65=_0xbcee3a;await _0x31b272[_0x3b6f65(0x18d)];},'abortController':_0x31b272[_0xbcee3a(0x15f)]};}[_0x445ef3(0x197)](_0x4da044,_0x246664){const _0x132635=_0x445ef3,_0x267327=this[_0x132635(0x19c)](_0x132635(0x165)+_0x4da044,_0x132635(0x1d1),_0x246664);return{'getResult':async()=>(await _0x267327[_0x132635(0x18d)],_0x246664),'abortController':_0x267327[_0x132635(0x15f)]};}[_0x445ef3(0x1be)](_0x281929){const _0x31cc2f=_0x445ef3,_0x12fb03=this[_0x31cc2f(0x19c)](_0x31cc2f(0x165)+_0x281929,_0x31cc2f(0x1b7));return{'getConversation':async()=>(await _0x12fb03[_0x31cc2f(0x18d)])[_0x31cc2f(0x191)](),'abortController':_0x12fb03[_0x31cc2f(0x15f)]};}[_0x445ef3(0x199)](_0x2be7c8){const _0x382a9e=_0x445ef3,_0x11c972=this[_0x382a9e(0x19c)](_0x382a9e(0x165)+_0x2be7c8+_0x382a9e(0x1b8),_0x382a9e(0x1b7));return{'getMessages':async()=>{const _0x2fa04c=_0x382a9e,_0xb8e6ae=await _0x11c972[_0x2fa04c(0x18d)];return(await _0xb8e6ae[_0x2fa04c(0x191)]())[_0x2fa04c(0x18c)];},'abortController':_0x11c972[_0x382a9e(0x15f)]};}[_0x445ef3(0x18e)](_0x340bac,_0x5d98a7,_0x1633ea){const _0x5f568f=_0x445ef3,_0x41be95=this[_0x5f568f(0x19c)](_0x5f568f(0x165)+_0x340bac+_0x5f568f(0x17c),_0x5f568f(0x1a2),{'url':_0x5d98a7,'attributes':_0x1633ea});return{'getId':async()=>(await _0x41be95[_0x5f568f(0x18d)])[_0x5f568f(0x191)](),'abortController':_0x41be95[_0x5f568f(0x15f)]};}[_0x445ef3(0x1c1)](_0x249480='en'){const _0x41a29f=_0x445ef3,_0x4b5a87=new URLSearchParams();_0x4b5a87[_0x41a29f(0x1ca)](_0x41a29f(0x1e3),_0x249480);const _0x1ef1b8=_0x41a29f(0x1cb)+_0x4b5a87[_0x41a29f(0x176)](),_0x32f93c=this[_0x41a29f(0x19c)](_0x1ef1b8,_0x41a29f(0x1b7));return{'list':async()=>await(await _0x32f93c[_0x41a29f(0x18d)])[_0x41a29f(0x191)](),'abortController':_0x32f93c[_0x41a29f(0x15f)]};}[_0x445ef3(0x167)](_0x27c8fa,_0x2e20b3){const _0x2eb155=_0x445ef3,_0x57fb69=this[_0x2eb155(0x19c)](_0x2eb155(0x165)+_0x27c8fa+_0x2eb155(0x1de)+_0x2e20b3,_0x2eb155(0x1b6));return{'execute':async()=>{const _0x47d2af=_0x2eb155;await _0x57fb69[_0x47d2af(0x18d)];},'abortController':_0x57fb69[_0x2eb155(0x15f)]};}[_0x445ef3(0x1c6)](_0x2f378d,_0x59afe3){const _0x525fac=_0x445ef3,_0x2f383e=this[_0x525fac(0x19c)](_0x525fac(0x165)+_0x2f378d+_0x525fac(0x17d)+_0x59afe3,_0x525fac(0x1b6));return{'execute':async()=>{const _0x238830=_0x525fac;await _0x2f383e[_0x238830(0x18d)];},'abortController':_0x2f383e[_0x525fac(0x15f)]};}[_0x445ef3(0x1cd)](_0x2fb731,_0x4eaf9d){const _0x4030d5=_0x445ef3,_0x3e2937=this[_0x4030d5(0x19c)](_0x4030d5(0x165)+_0x2fb731+_0x4030d5(0x154)+_0x4eaf9d,_0x4030d5(0x1b6));return{'execute':async()=>{const _0x2130d2=_0x4030d5;await _0x3e2937[_0x2130d2(0x18d)];},'abortController':_0x3e2937[_0x4030d5(0x15f)]};}[_0x445ef3(0x1a5)]({reviewName:_0x4fb5d9,content:_0x128fac,args:_0x4f6a32}){const _0x2b4996=_0x445ef3,_0x36f7ae=this[_0x2b4996(0x19c)](_0x2b4996(0x162)+_0x4fb5d9+_0x2b4996(0x1d8),_0x2b4996(0x1a2),{'content':[{'type':_0x2b4996(0x1ae),'content':_0x128fac}],'args':_0x4f6a32});return{'getStream':async()=>{const _0x11b74e=_0x2b4996,_0x3d8018=(await _0x36f7ae[_0x11b74e(0x18d)])[_0x11b74e(0x1b9)];return this[_0x11b74e(0x1dd)](_0x3d8018);},'abortController':_0x36f7ae[_0x2b4996(0x15f)]};}[_0x445ef3(0x17b)]({content:_0x1dfd78,prompt:_0x5d964f,model:_0x4206c7}){const _0x44f2aa=_0x445ef3,_0x128cff=this[_0x44f2aa(0x19c)](_0x44f2aa(0x195),_0x44f2aa(0x1a2),{'content':[{'type':_0x44f2aa(0x1ae),'content':_0x1dfd78}],'prompt':_0x5d964f,'model':_0x4206c7});return{'getStream':async()=>{const _0x42d4d4=_0x44f2aa,_0x1b2317=(await _0x128cff[_0x42d4d4(0x18d)])[_0x42d4d4(0x1b9)];return this[_0x42d4d4(0x1dd)](_0x1b2317);},'abortController':_0x128cff[_0x44f2aa(0x15f)]};}[_0x445ef3(0x19b)](_0x2469cb,_0x1ac3ca,_0x399864){const _0x22a548=_0x445ef3,_0xa0ad82=this[_0x22a548(0x19c)](_0x22a548(0x165)+_0x2469cb+_0x22a548(0x175)+_0x1ac3ca+_0x22a548(0x16d),_0x22a548(0x189),{'positiveCount':_0x399864[_0x22a548(0x1d0)],'totalCount':_0x399864[_0x22a548(0x158)],'modificationId':_0x399864[_0x22a548(0x1d5)]});return{'execute':async()=>{const _0x2940b2=_0x22a548;await _0xa0ad82[_0x2940b2(0x18d)];},'abortController':_0xa0ad82[_0x22a548(0x15f)]};}[_0x445ef3(0x163)](_0x5b9866,_0xcb6897,_0x29cf4a){const _0x34f051=_0x445ef3,_0x1bf4b9=this[_0x34f051(0x19c)](_0x34f051(0x18f)+_0x5b9866+_0x34f051(0x1cc)+_0xcb6897+_0x34f051(0x16d),_0x34f051(0x189),{'positiveCount':_0x29cf4a[_0x34f051(0x1d0)],'totalCount':_0x29cf4a[_0x34f051(0x158)]});return{'execute':async()=>{const _0x592027=_0x34f051;await _0x1bf4b9[_0x592027(0x18d)];},'abortController':_0x1bf4b9[_0x34f051(0x15f)]};}[_0x445ef3(0x1d3)](_0x379dc6,_0x4e7143){const _0x519d20=_0x445ef3,_0x71f6ce=this[_0x519d20(0x19c)](_0x519d20(0x172)+_0x379dc6+_0x519d20(0x16d),_0x519d20(0x189),{'positiveCount':_0x4e7143[_0x519d20(0x1d0)],'totalCount':_0x4e7143[_0x519d20(0x158)]});return{'execute':async()=>{const _0x12557a=_0x519d20;await _0x71f6ce[_0x12557a(0x18d)];},'abortController':_0x71f6ce[_0x519d20(0x15f)]};}[_0x445ef3(0x198)](_0x1586bc,_0x18590a,_0x18b15d,_0x4783f6){const _0x40b60e=_0x445ef3,_0x10ffc3=this[_0x40b60e(0x19c)](_0x40b60e(0x162)+_0x1586bc+_0x40b60e(0x1cc)+_0x18590a+_0x40b60e(0x16d),_0x40b60e(0x189),{'positiveCount':_0x18b15d[_0x40b60e(0x1d0)],'totalCount':_0x18b15d[_0x40b60e(0x158)],'dataId':_0x4783f6});return{'execute':async()=>{const _0x1868cc=_0x40b60e;await _0x10ffc3[_0x1868cc(0x18d)];},'abortController':_0x10ffc3[_0x40b60e(0x15f)]};}[_0x445ef3(0x1c0)](_0x171ef8,_0xe4673a,_0x3f9c02){const _0x28dfbf=_0x445ef3,_0x479802=this[_0x28dfbf(0x19c)](_0x28dfbf(0x1d6)+_0x171ef8+_0x28dfbf(0x16d),_0x28dfbf(0x189),{'positiveCount':_0xe4673a[_0x28dfbf(0x1d0)],'totalCount':_0xe4673a[_0x28dfbf(0x158)],'dataId':_0x3f9c02});return{'execute':async()=>{const _0xb9fc96=_0x28dfbf;await _0x479802[_0xb9fc96(0x18d)];},'abortController':_0x479802[_0x28dfbf(0x15f)]};}[_0x445ef3(0x19c)](_0xf88ade,_0x517cf2,_0x496dc4){const _0x4d7b0d=_0x445ef3,_0x56d2a2=new AbortController(),_0x4e8e19=_0x496dc4 instanceof FormData,_0x14ec40={'Authorization':_0x4d7b0d(0x178)+this[_0x4d7b0d(0x1aa)]?.[_0x4d7b0d(0x181)]};_0x496dc4&&!_0x4e8e19&&(_0x14ec40[_0x4d7b0d(0x156)]=_0x4d7b0d(0x15d));const _0x573a9e={'method':_0x517cf2,'headers':_0x14ec40,'signal':_0x56d2a2[_0x4d7b0d(0x160)]};return _0x496dc4&&(_0x573a9e[_0x4d7b0d(0x1b9)]=_0x4e8e19?_0x496dc4:JSON[_0x4d7b0d(0x188)](_0x496dc4)),{'request':fetch(''+this[_0x4d7b0d(0x1d7)]+_0xf88ade,_0x573a9e)[_0x4d7b0d(0x18b)](_0x108498=>{const _0x55d69d=_0x4d7b0d;this[_0x55d69d(0x1db)](_0x108498);})[_0x4d7b0d(0x1e4)](_0x3ae00e=>_0x3ae00e['ok']?_0x3ae00e:_0x3ae00e[_0x4d7b0d(0x191)]()[_0x4d7b0d(0x1e4)](_0x30596d=>{const _0xd3ce4f=_0x4d7b0d;throw{'url':this[_0xd3ce4f(0x1d7)],'path':_0xf88ade,'method':_0x517cf2,'body':_0x496dc4,'status':(_0x3ae00e||{})[_0xd3ce4f(0x179)],'statusText':(_0x3ae00e||{})[_0xd3ce4f(0x1da)],'code':_0x30596d[_0xd3ce4f(0x173)],'message':_0x30596d[_0xd3ce4f(0x1e2)],'traceId':_0x30596d[_0xd3ce4f(0x155)]};})),'abortController':_0x56d2a2};}async*[_0x445ef3(0x1dd)](_0x1343da){const _0x36e602=_0x445ef3,_0x474db2=[],_0x304935=_0x1343da[_0x36e602(0x171)](),_0xa4c130=_0x1fe1fb({'onError':_0x4bc3d4=>{const _0x28240e=_0x36e602;this[_0x28240e(0x1db)](_0x4bc3d4);},'onEvent':_0x141a65=>{const _0x198fc3=_0x36e602;_0x141a65[_0x198fc3(0x153)]=JSON[_0x198fc3(0x1b0)](_0x141a65[_0x198fc3(0x153)]),_0x474db2[_0x198fc3(0x159)](_0x141a65);}});try{let _0x50f5ac=!0x1;for(;!_0x50f5ac;){const {done:_0x47ed11,value:_0x4d373b}=await _0x304935[_0x36e602(0x187)]();_0x47ed11&&(_0x50f5ac=!0x0),_0xa4c130[_0x36e602(0x1dc)](this[_0x36e602(0x186)][_0x36e602(0x169)](_0x4d373b,{'stream':!0x0})),yield*_0x474db2,_0x474db2[_0x36e602(0x152)]=0x0;}}catch(_0x339c74){this[_0x36e602(0x1db)](_0x339c74);}finally{_0x304935[_0x36e602(0x1c9)](),_0xa4c130[_0x36e602(0x1bd)]();}}[_0x445ef3(0x1db)](_0xbc03a8){const _0x4d563b=_0x445ef3;if(_0xbc03a8 instanceof _0x536def)throw _0xbc03a8;if(_0xbc03a8 instanceof Error&&_0x4d563b(0x1cf)===_0xbc03a8[_0x4d563b(0x1e0)])throw new _0x536def(_0x4d563b(0x18a),this,{'originalError':_0xbc03a8});throw new _0x536def(_0x4d563b(0x1c3),this,{'originalError':_0xbc03a8});}}
23
+ function _0x54c2(){const _0x36ab9a=['push','IMPROVE_WRITING','CONTINUE','upsertAIReviewRating','modificationId','value','PATCH','plugins','file','pluginName','upsertAIChatRating','/files/','isOfficialPlugin','deleteDocument','/web-resources/','GET','init','status','length','totalCount','deleteFile','executeCustomAction','6934425GjhyAa','894425VazfVP','AIConnector','define','/actions/system/','fetchDocument','json','/conversations?','limit','_token','/documents','abortController','startConversation','requires','AbortError','releaseLock','/conversations','/conversations/','/reviews/custom/calls/','9361554btGLws','_sendApiRequest','group','TRANSLATE','signal','315049fyitOc','callSystemReview','_getStreamReader','getModels','PUT','https://ai.cke-cs.com/v1','deleteWebResource','read','data','message','code','100','ai-request-failed','fetchConversationMessages','ai-missing-token','token','feed','application/json','uploadUrl','FIX_GRAMMAR','sortBy','get','make-tone-casual','callCustomReview','context','positiveCount','/ratings','parse','/actions/custom/calls','order','stringify','Bearer\x20','Content-Type','continue','catch','/messages/','uploadFile','/calls','excludeEmpty','deleteConversation','desc','queryAssistant','traceId','CloudServices','/documents/','16370415NBttix','MAKE_TONE_CASUAL','/actions/custom/calls/','_handleError','items','improve-writing','attributes','uploadDocument','ai.serviceUrl','text','/models/1?','createdAt','/reviews/system/','upsertCustomAIReviewRating','MAKE_LONGER','language','fetchConversation','/web-resources','append','/files','DELETE','fix-grammar','body','MAKE_TONE_FORMAL','993918bJPyOQ','7638244DVcBjx','decode','getReader','/calls/','_apiUrl','make-tone-formal','/reviews/custom/calls','64zJEyaB','isPremiumPlugin','reset','then','make-shorter','request','name','MAKE_SHORTER','POST','true','statusText','false','updateConversation','/messages','upsertCustomAIActionRating','ai-request-aborted','toString','fetchConversations','make-longer','executeAction','upsertAIActionRating','translate','config','3dUQPje','_decoder'];_0x54c2=function(){return _0x36ab9a;};return _0x54c2();}const _0x32976f=_0x5307;(function(_0x33de5b,_0x4faa76){const _0x530e4e=_0x5307,_0xf4ecf=_0x33de5b();while(!![]){try{const _0x5a8f32=-parseInt(_0x530e4e(0x19e))/0x1+parseInt(_0x530e4e(0x14f))/0x2*(-parseInt(_0x530e4e(0x16e))/0x3)+parseInt(_0x530e4e(0x150))/0x4+-parseInt(_0x530e4e(0x186))/0x5+-parseInt(_0x530e4e(0x199))/0x6+parseInt(_0x530e4e(0x187))/0x7*(parseInt(_0x530e4e(0x157))/0x8)+parseInt(_0x530e4e(0x137))/0x9;if(_0x5a8f32===_0x4faa76)break;else _0xf4ecf['push'](_0xf4ecf['shift']());}catch(_0x5c192f){_0xf4ecf['push'](_0xf4ecf['shift']());}}}(_0x54c2,0xf2138));import{createParser as _0x3e43dc}from'eventsource-parser';import{ContextPlugin as _0x29904a}from'ckeditor5/src/core.js';import{CKEditorError as _0x204973}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x533223){const _0x16926f=_0x5307;_0x533223[_0x16926f(0x172)]=_0x16926f(0x12b),_0x533223[_0x16926f(0x1b1)]=_0x16926f(0x14c),_0x533223[_0x16926f(0x171)]=_0x16926f(0x13c),_0x533223[_0x16926f(0x145)]=_0x16926f(0x169),_0x533223[_0x16926f(0x15e)]=_0x16926f(0x15b),_0x533223[_0x16926f(0x138)]=_0x16926f(0x1b4),_0x533223[_0x16926f(0x14e)]=_0x16926f(0x155),_0x533223[_0x16926f(0x19c)]=_0x16926f(0x16c);}(AIActionsNames||(AIActionsNames={}));function _0x5307(_0x157a87,_0x377f80){const _0x54c268=_0x54c2();return _0x5307=function(_0x5307f4,_0x1fc8de){_0x5307f4=_0x5307f4-0x125;let _0x35d352=_0x54c268[_0x5307f4];return _0x35d352;},_0x5307(_0x157a87,_0x377f80);}export class AIConnector extends _0x29904a{[_0x32976f(0x154)];[_0x32976f(0x18f)];[_0x32976f(0x16f)];static get[_0x32976f(0x193)](){const _0x1f1326=_0x32976f;return[_0x1f1326(0x135)];}static get[_0x32976f(0x179)](){const _0x20f30c=_0x32976f;return _0x20f30c(0x188);}static get[_0x32976f(0x17c)](){return!0x0;}static get[_0x32976f(0x158)](){return!0x0;}constructor(_0x1f8500){const _0x130069=_0x32976f;super(_0x1f8500),this[_0x130069(0x1b6)][_0x130069(0x16d)][_0x130069(0x189)](_0x130069(0x13f),_0x130069(0x1a3)),this[_0x130069(0x154)]=this[_0x130069(0x1b6)][_0x130069(0x16d)][_0x130069(0x1b3)](_0x130069(0x13f)),this[_0x130069(0x18f)]=null,this[_0x130069(0x16f)]=new TextDecoder();}[_0x32976f(0x180)](){const _0x177520=_0x32976f,_0x3ba45d=this[_0x177520(0x1b6)][_0x177520(0x177)][_0x177520(0x1b3)](_0x177520(0x135));if(!_0x3ba45d[_0x177520(0x1ad)])throw new _0x204973(_0x177520(0x1ac),this);this[_0x177520(0x18f)]=_0x3ba45d[_0x177520(0x1ad)];}[_0x32976f(0x192)](_0x5ec232,_0x516cbd){const _0x31de62=_0x32976f,_0x788cdc=this[_0x31de62(0x19a)](_0x31de62(0x196),_0x31de62(0x15f),{'id':_0x5ec232,'group':_0x516cbd});return{'getConversation':async()=>(await _0x788cdc[_0x31de62(0x15c)])[_0x31de62(0x18c)](),'abortController':_0x788cdc[_0x31de62(0x191)]};}[_0x32976f(0x133)]({message:_0x248cfb,conversationId:_0xb202db,parts:_0x52fa3f,capabilities:_0x14facf,model:_0x563d18,attributes:_0x204ce4}){const _0x16bffc=_0x32976f,_0x290e29={'prompt':_0x248cfb,'content':_0x52fa3f,'model':_0x563d18,..._0x14facf&&{'capabilities':_0x14facf},..._0x204ce4&&{'attributes':_0x204ce4}},_0x345588=this[_0x16bffc(0x19a)](_0x16bffc(0x197)+_0xb202db+_0x16bffc(0x164),_0x16bffc(0x15f),_0x290e29);return{'getStream':async()=>{const _0x1053fa=_0x16bffc,_0x326ec7=(await _0x345588[_0x1053fa(0x15c)])[_0x1053fa(0x14d)];return this[_0x1053fa(0x1a0)](_0x326ec7);},'abortController':_0x345588[_0x16bffc(0x191)]};}[_0x32976f(0x185)]({content:_0xe0b90c,message:_0x33e365,model:_0x4e2a0f,outputFormat:_0x4f3fc6}){const _0x242931=_0x32976f,_0xd16334={'content':[{'type':_0x242931(0x140),'content':_0xe0b90c}],'prompt':_0x33e365,'model':_0x4e2a0f,'outputFormat':_0x4f3fc6},_0x18d71f=this[_0x242931(0x19a)](_0x242931(0x126),_0x242931(0x15f),_0xd16334);return{'getStream':async()=>{const _0x1eec59=_0x242931,_0x526979=(await _0x18d71f[_0x1eec59(0x15c)])[_0x1eec59(0x14d)];return this[_0x1eec59(0x1a0)](_0x526979);},'abortController':_0x18d71f[_0x242931(0x191)]};}[_0x32976f(0x16a)]({actionName:_0x1a6502,content:_0x2b9e9b,args:_0x298eb7}){const _0x40aa99=_0x32976f,_0x26f2e6={'content':[{'type':_0x40aa99(0x140),'content':_0x2b9e9b}],'args':_0x298eb7},_0x4458e1=this[_0x40aa99(0x19a)](_0x40aa99(0x18a)+_0x1a6502+_0x40aa99(0x12f),_0x40aa99(0x15f),_0x26f2e6);return{'getStream':async()=>{const _0xb3859d=_0x40aa99,_0x1a6442=(await _0x4458e1[_0xb3859d(0x15c)])[_0xb3859d(0x14d)];return this[_0xb3859d(0x1a0)](_0x1a6442);},'abortController':_0x4458e1[_0x40aa99(0x191)]};}[_0x32976f(0x12e)](_0x10c36c,_0x180f2e,_0x2a7359){const _0x169c22=_0x32976f,_0x5a33e1=new FormData();_0x5a33e1[_0x169c22(0x149)](_0x169c22(0x178),_0x180f2e,_0x180f2e[_0x169c22(0x15d)]),_0x2a7359&&_0x5a33e1[_0x169c22(0x149)](_0x169c22(0x13d),JSON[_0x169c22(0x128)](_0x2a7359));const _0x4b3008=this[_0x169c22(0x19a)](_0x169c22(0x197)+_0x10c36c+_0x169c22(0x14a),_0x169c22(0x15f),_0x5a33e1);return{'getId':async()=>(await _0x4b3008[_0x169c22(0x15c)])[_0x169c22(0x18c)](),'abortController':_0x4b3008[_0x169c22(0x191)]};}[_0x32976f(0x18b)](_0x4a17a4,_0x57e17e){const _0x40a9d5=_0x32976f,_0x5d9358=this[_0x40a9d5(0x19a)](_0x40a9d5(0x197)+_0x4a17a4+_0x40a9d5(0x136)+_0x57e17e,_0x40a9d5(0x17f));return{'getDocument':async()=>(await _0x5d9358[_0x40a9d5(0x15c)])[_0x40a9d5(0x18c)](),'abortController':_0x5d9358[_0x40a9d5(0x191)]};}[_0x32976f(0x13e)](_0x8f7caa,_0x1c20d3,_0x25c519){const _0x458eab=_0x32976f,_0x4b581c={'content':_0x1c20d3};_0x25c519&&(_0x4b581c[_0x458eab(0x13d)]=_0x25c519);const _0x25abf2=this[_0x458eab(0x19a)](_0x458eab(0x197)+_0x8f7caa+_0x458eab(0x190),_0x458eab(0x15f),_0x4b581c);return{'getId':async()=>(await _0x25abf2[_0x458eab(0x15c)])[_0x458eab(0x18c)](),'abortController':_0x25abf2[_0x458eab(0x191)]};}[_0x32976f(0x168)](_0x32f571,_0x12728f={}){const _0x28e248=_0x32976f,_0x20dcee=new URLSearchParams();_0x20dcee[_0x28e248(0x149)](_0x28e248(0x19b),_0x32f571),_0x20dcee[_0x28e248(0x149)](_0x28e248(0x130),!0x1!==_0x12728f[_0x28e248(0x130)]?_0x28e248(0x160):_0x28e248(0x162)),_0x20dcee[_0x28e248(0x149)](_0x28e248(0x18e),_0x12728f[_0x28e248(0x18e)]?_0x12728f[_0x28e248(0x18e)][_0x28e248(0x167)]():_0x28e248(0x1a9)),_0x20dcee[_0x28e248(0x149)](_0x28e248(0x1b2),_0x12728f[_0x28e248(0x1b2)]?_0x12728f[_0x28e248(0x1b2)]:_0x28e248(0x142)),_0x20dcee[_0x28e248(0x149)](_0x28e248(0x127),_0x12728f[_0x28e248(0x127)]?_0x12728f[_0x28e248(0x127)]:_0x28e248(0x132));const _0x1ef75f=this[_0x28e248(0x19a)](_0x28e248(0x18d)+_0x20dcee[_0x28e248(0x167)](),_0x28e248(0x17f));return{'getConversations':async()=>{const _0x537bf8=_0x28e248,_0x55d8ad=await _0x1ef75f[_0x537bf8(0x15c)];return(await _0x55d8ad[_0x537bf8(0x18c)]())[_0x537bf8(0x13b)];},'abortController':_0x1ef75f[_0x28e248(0x191)]};}[_0x32976f(0x131)](_0x2b7660){const _0x37b203=_0x32976f,_0x5631bf=this[_0x37b203(0x19a)](_0x37b203(0x197)+_0x2b7660,_0x37b203(0x14b));return{'execute':async()=>{const _0x207116=_0x37b203;await _0x5631bf[_0x207116(0x15c)];},'abortController':_0x5631bf[_0x37b203(0x191)]};}[_0x32976f(0x163)](_0x3e9ffe,_0x250041){const _0x3e098c=_0x32976f,_0x36e34d=this[_0x3e098c(0x19a)](_0x3e098c(0x197)+_0x3e9ffe,_0x3e098c(0x176),_0x250041);return{'getResult':async()=>(await _0x36e34d[_0x3e098c(0x15c)],_0x250041),'abortController':_0x36e34d[_0x3e098c(0x191)]};}[_0x32976f(0x147)](_0x5ecaba){const _0x30c811=_0x32976f,_0x38c88d=this[_0x30c811(0x19a)](_0x30c811(0x197)+_0x5ecaba,_0x30c811(0x17f));return{'getConversation':async()=>(await _0x38c88d[_0x30c811(0x15c)])[_0x30c811(0x18c)](),'abortController':_0x38c88d[_0x30c811(0x191)]};}[_0x32976f(0x1ab)](_0x5b044c){const _0x21075a=_0x32976f,_0x18cb2b=this[_0x21075a(0x19a)](_0x21075a(0x197)+_0x5b044c+_0x21075a(0x164),_0x21075a(0x17f));return{'getMessages':async()=>{const _0x4d01c3=_0x21075a,_0x4b2b9d=await _0x18cb2b[_0x4d01c3(0x15c)];return(await _0x4b2b9d[_0x4d01c3(0x18c)]())[_0x4d01c3(0x13b)];},'abortController':_0x18cb2b[_0x21075a(0x191)]};}[_0x32976f(0x1b0)](_0xd0fac,_0x2a193b,_0x25ee92){const _0x61ddb9=_0x32976f,_0x59edad=this[_0x61ddb9(0x19a)](_0x61ddb9(0x197)+_0xd0fac+_0x61ddb9(0x148),_0x61ddb9(0x15f),{'url':_0x2a193b,'attributes':_0x25ee92});return{'getId':async()=>(await _0x59edad[_0x61ddb9(0x15c)])[_0x61ddb9(0x18c)](),'abortController':_0x59edad[_0x61ddb9(0x191)]};}[_0x32976f(0x1a1)](_0x2753be='en'){const _0x3747f2=_0x32976f,_0x545398=new URLSearchParams();_0x545398[_0x3747f2(0x149)](_0x3747f2(0x146),_0x2753be);const _0x466574=_0x3747f2(0x141)+_0x545398[_0x3747f2(0x167)](),_0x5e7043=this[_0x3747f2(0x19a)](_0x466574,_0x3747f2(0x17f));return{'list':async()=>await(await _0x5e7043[_0x3747f2(0x15c)])[_0x3747f2(0x18c)](),'abortController':_0x5e7043[_0x3747f2(0x191)]};}[_0x32976f(0x184)](_0x51f20d,_0xe820f8){const _0x3104e9=_0x32976f,_0x1b181d=this[_0x3104e9(0x19a)](_0x3104e9(0x197)+_0x51f20d+_0x3104e9(0x17b)+_0xe820f8,_0x3104e9(0x14b));return{'execute':async()=>{const _0x2f0dad=_0x3104e9;await _0x1b181d[_0x2f0dad(0x15c)];},'abortController':_0x1b181d[_0x3104e9(0x191)]};}[_0x32976f(0x17d)](_0x323cb9,_0x414a8e){const _0x1fb630=_0x32976f,_0x5cb376=this[_0x1fb630(0x19a)](_0x1fb630(0x197)+_0x323cb9+_0x1fb630(0x136)+_0x414a8e,_0x1fb630(0x14b));return{'execute':async()=>{const _0x2dc5e1=_0x1fb630;await _0x5cb376[_0x2dc5e1(0x15c)];},'abortController':_0x5cb376[_0x1fb630(0x191)]};}[_0x32976f(0x1a4)](_0x4877b2,_0x2f4b6d){const _0x2f3711=_0x32976f,_0x50c6d2=this[_0x2f3711(0x19a)](_0x2f3711(0x197)+_0x4877b2+_0x2f3711(0x17e)+_0x2f4b6d,_0x2f3711(0x14b));return{'execute':async()=>{const _0x30aaf4=_0x2f3711;await _0x50c6d2[_0x30aaf4(0x15c)];},'abortController':_0x50c6d2[_0x2f3711(0x191)]};}[_0x32976f(0x19f)]({reviewName:_0x265b5b,content:_0x63e70a,args:_0x18e11f}){const _0x45d11e=_0x32976f,_0x568ab9=this[_0x45d11e(0x19a)](_0x45d11e(0x143)+_0x265b5b+_0x45d11e(0x12f),_0x45d11e(0x15f),{'content':[{'type':_0x45d11e(0x140),'content':_0x63e70a}],'args':_0x18e11f});return{'getStream':async()=>{const _0x1d52d1=_0x45d11e,_0x186f79=(await _0x568ab9[_0x1d52d1(0x15c)])[_0x1d52d1(0x14d)];return this[_0x1d52d1(0x1a0)](_0x186f79);},'abortController':_0x568ab9[_0x45d11e(0x191)]};}[_0x32976f(0x1b5)]({content:_0x8539e6,prompt:_0xa108c1,model:_0x36b0b0}){const _0x2afcb7=_0x32976f,_0x1d70bb=this[_0x2afcb7(0x19a)](_0x2afcb7(0x156),_0x2afcb7(0x15f),{'content':[{'type':_0x2afcb7(0x140),'content':_0x8539e6}],'prompt':_0xa108c1,'model':_0x36b0b0});return{'getStream':async()=>{const _0x25c40b=_0x2afcb7,_0x2e0c5b=(await _0x1d70bb[_0x25c40b(0x15c)])[_0x25c40b(0x14d)];return this[_0x25c40b(0x1a0)](_0x2e0c5b);},'abortController':_0x1d70bb[_0x2afcb7(0x191)]};}[_0x32976f(0x17a)](_0x367eaa,_0x3e4bdf,_0x3d3f4e){const _0x20c7a1=_0x32976f,_0xdeadbd=this[_0x20c7a1(0x19a)](_0x20c7a1(0x197)+_0x367eaa+_0x20c7a1(0x12d)+_0x3e4bdf+_0x20c7a1(0x1b8),_0x20c7a1(0x1a2),{'positiveCount':_0x3d3f4e[_0x20c7a1(0x1b7)],'totalCount':_0x3d3f4e[_0x20c7a1(0x183)],'modificationId':_0x3d3f4e[_0x20c7a1(0x174)]});return{'execute':async()=>{const _0x2afe9b=_0x20c7a1;await _0xdeadbd[_0x2afe9b(0x15c)];},'abortController':_0xdeadbd[_0x20c7a1(0x191)]};}[_0x32976f(0x16b)](_0x19b4ea,_0x490cd3,_0x51cac9){const _0x22a361=_0x32976f,_0x3da508=this[_0x22a361(0x19a)](_0x22a361(0x18a)+_0x19b4ea+_0x22a361(0x153)+_0x490cd3+_0x22a361(0x1b8),_0x22a361(0x1a2),{'positiveCount':_0x51cac9[_0x22a361(0x1b7)],'totalCount':_0x51cac9[_0x22a361(0x183)]});return{'execute':async()=>{const _0x5cd393=_0x22a361;await _0x3da508[_0x5cd393(0x15c)];},'abortController':_0x3da508[_0x22a361(0x191)]};}[_0x32976f(0x165)](_0xe4ea98,_0x90f906){const _0x182c2b=_0x32976f,_0x4074be=this[_0x182c2b(0x19a)](_0x182c2b(0x139)+_0xe4ea98+_0x182c2b(0x1b8),_0x182c2b(0x1a2),{'positiveCount':_0x90f906[_0x182c2b(0x1b7)],'totalCount':_0x90f906[_0x182c2b(0x183)]});return{'execute':async()=>{const _0x16593f=_0x182c2b;await _0x4074be[_0x16593f(0x15c)];},'abortController':_0x4074be[_0x182c2b(0x191)]};}[_0x32976f(0x173)](_0x20fb91,_0x105915,_0x350ed5,_0x22b9b2){const _0x1485f6=_0x32976f,_0x49ec42=this[_0x1485f6(0x19a)](_0x1485f6(0x143)+_0x20fb91+_0x1485f6(0x153)+_0x105915+_0x1485f6(0x1b8),_0x1485f6(0x1a2),{'positiveCount':_0x350ed5[_0x1485f6(0x1b7)],'totalCount':_0x350ed5[_0x1485f6(0x183)],'dataId':_0x22b9b2});return{'execute':async()=>{const _0x6d9e38=_0x1485f6;await _0x49ec42[_0x6d9e38(0x15c)];},'abortController':_0x49ec42[_0x1485f6(0x191)]};}[_0x32976f(0x144)](_0x169264,_0x270f77,_0x3a48e9){const _0x5503b9=_0x32976f,_0x4139b0=this[_0x5503b9(0x19a)](_0x5503b9(0x198)+_0x169264+_0x5503b9(0x1b8),_0x5503b9(0x1a2),{'positiveCount':_0x270f77[_0x5503b9(0x1b7)],'totalCount':_0x270f77[_0x5503b9(0x183)],'dataId':_0x3a48e9});return{'execute':async()=>{const _0x37338d=_0x5503b9;await _0x4139b0[_0x37338d(0x15c)];},'abortController':_0x4139b0[_0x5503b9(0x191)]};}[_0x32976f(0x19a)](_0x5198bf,_0x428732,_0x5c1ac6){const _0x22e437=_0x32976f,_0x16526f=new AbortController(),_0x224af6=_0x5c1ac6 instanceof FormData,_0x204c8d={'Authorization':_0x22e437(0x129)+this[_0x22e437(0x18f)]?.[_0x22e437(0x175)]};_0x5c1ac6&&!_0x224af6&&(_0x204c8d[_0x22e437(0x12a)]=_0x22e437(0x1af));const _0x2fbea9={'method':_0x428732,'headers':_0x204c8d,'signal':_0x16526f[_0x22e437(0x19d)]};return _0x5c1ac6&&(_0x2fbea9[_0x22e437(0x14d)]=_0x224af6?_0x5c1ac6:JSON[_0x22e437(0x128)](_0x5c1ac6)),{'request':fetch(''+this[_0x22e437(0x154)]+_0x5198bf,_0x2fbea9)[_0x22e437(0x12c)](_0x1303cc=>{const _0x204020=_0x22e437;this[_0x204020(0x13a)](_0x1303cc);})[_0x22e437(0x15a)](_0x3f9dbf=>_0x3f9dbf['ok']?_0x3f9dbf:_0x3f9dbf[_0x22e437(0x18c)]()[_0x22e437(0x15a)](_0x19ff84=>{const _0x202cb5=_0x22e437;throw{'url':this[_0x202cb5(0x154)],'path':_0x5198bf,'method':_0x428732,'body':_0x5c1ac6,'status':(_0x3f9dbf||{})[_0x202cb5(0x181)],'statusText':(_0x3f9dbf||{})[_0x202cb5(0x161)],'code':_0x19ff84[_0x202cb5(0x1a8)],'message':_0x19ff84[_0x202cb5(0x1a7)],'traceId':_0x19ff84[_0x202cb5(0x134)]};})),'abortController':_0x16526f};}async*[_0x32976f(0x1a0)](_0x3386e6){const _0x53c7f9=_0x32976f,_0x2c5252=[],_0x29b43c=_0x3386e6[_0x53c7f9(0x152)](),_0x566b57=_0x3e43dc({'onError':_0xa653ff=>{const _0x4a5f37=_0x53c7f9;this[_0x4a5f37(0x13a)](_0xa653ff);},'onEvent':_0x280a7a=>{const _0x525e10=_0x53c7f9;_0x280a7a[_0x525e10(0x1a6)]=JSON[_0x525e10(0x125)](_0x280a7a[_0x525e10(0x1a6)]),_0x2c5252[_0x525e10(0x170)](_0x280a7a);}});try{let _0x5ae975=!0x1;for(;!_0x5ae975;){const {done:_0x10ec96,value:_0x4ef0c4}=await _0x29b43c[_0x53c7f9(0x1a5)]();_0x10ec96&&(_0x5ae975=!0x0),_0x566b57[_0x53c7f9(0x1ae)](this[_0x53c7f9(0x16f)][_0x53c7f9(0x151)](_0x4ef0c4,{'stream':!0x0})),yield*_0x2c5252,_0x2c5252[_0x53c7f9(0x182)]=0x0;}}catch(_0x89954e){this[_0x53c7f9(0x13a)](_0x89954e);}finally{_0x29b43c[_0x53c7f9(0x195)](),_0x566b57[_0x53c7f9(0x159)]();}}[_0x32976f(0x13a)](_0x7b283f){const _0x197cbb=_0x32976f;if(_0x7b283f instanceof _0x204973)throw _0x7b283f;if(_0x7b283f instanceof Error&&_0x197cbb(0x194)===_0x7b283f[_0x197cbb(0x15d)])throw new _0x204973(_0x197cbb(0x166),this,{'originalError':_0x7b283f});throw new _0x204973(_0x197cbb(0x1aa),this,{'originalError':_0x7b283f});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x598dc4=_0x3679;function _0x3679(_0x1bbc24,_0x4ff7d3){const _0x362f24=_0x362f();return _0x3679=function(_0x367936,_0x26b454){_0x367936=_0x367936-0xaa;let _0x22c9b7=_0x362f24[_0x367936];return _0x22c9b7;},_0x3679(_0x1bbc24,_0x4ff7d3);}(function(_0x17f487,_0x537d25){const _0x3f30c8=_0x3679,_0xd064b=_0x17f487();while(!![]){try{const _0x2f908c=-parseInt(_0x3f30c8(0xc7))/0x1+-parseInt(_0x3f30c8(0x110))/0x2+-parseInt(_0x3f30c8(0xc3))/0x3+-parseInt(_0x3f30c8(0xed))/0x4+parseInt(_0x3f30c8(0xc6))/0x5*(-parseInt(_0x3f30c8(0xac))/0x6)+parseInt(_0x3f30c8(0xdc))/0x7+parseInt(_0x3f30c8(0x118))/0x8;if(_0x2f908c===_0x537d25)break;else _0xd064b['push'](_0xd064b['shift']());}catch(_0x421c70){_0xd064b['push'](_0xd064b['shift']());}}}(_0x362f,0xbbe87));import{ViewDowncastWriter as _0xd33f9f}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x504c94,Editor as _0x1198ee}from'ckeditor5/src/core.js';import{uid as _0xf6b34}from'ckeditor5/src/utils.js';import{getTranslation as _0x1b88f4}from'./utils/common-translations.js';import{getEditorFromContext as _0x22d187}from'./utils/geteditorfromcontext.js';function _0x362f(){const _0x4c34e4=['984906DOtjBu','htmlWriter','getItems','toData','getMarkersGroup','convertAiChatSelectionMarker','view','getChildren','22772168UdKjYJ','selection','addMarker','floor','push','emptyElement','1641474AobVEc','_getDocumentDataStringFromView','ck-fake-ai-selection','_displayedFakeSelectionId','start','editors','AIEditing','from','afterInit','domConverter','sessionId','sort','_setDataIdsOnChildren','ready','document',':end>','getRoot','isAtEnd','viewToDom','for','getStart','model','indexOf','1048872ecabEz','containerElement','editingDowncast','5WlDcXh','775340yIsDZb','isAfter','version','change',':start>','_nextDataId','getSelectionText','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','RealTimeCollaborationClient','add','removeMarker','removeAllRanges','ai.models.showModelSelector','getRanges','ai-selection','locale','_outputDataProcessor','_getMarkersInDocumentOrder','isContent','_setOutputDataProcessor','isOpening','7256249uSlVyh','join','processor','end','fromCharCode','isBefore','toView','isOfficialPlugin','schema','ck-ai-assistant-ui_theme','getDocumentData','getHtml','setAttribute','createUIElement','_sessionId','length','hideFakeVisualSelection','4889844KsllKi','trim','markerToElement','conversion','markerName','ai-selection:','define','modelToDataWithIds','getSelection','data-id','showFakeVisualSelection','editing','markers','pluginName','createRange',':start></','name','getLastMatchingPosition','plugins','listenTo','$textProxy','element','context','_displayedFakeSelectionLocked','substring',':end></','dataDowncast','config','data','has','_integrateEditor','isPremiumPlugin','get','markerToHighlight','random'];_0x362f=function(){return _0x4c34e4;};return _0x362f();}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x598dc4(0xd5);export class AIEditing extends _0x504c94{constructor(_0x309891){const _0x38e53e=_0x598dc4;super(_0x309891),this[_0x38e53e(0x103)][_0x38e53e(0x108)][_0x38e53e(0xf3)](_0x38e53e(0xd3),!0x0);}[_0x598dc4(0xd7)];[_0x598dc4(0xaf)]=null;[_0x598dc4(0x104)]=!0x1;[_0x598dc4(0xea)];static get[_0x598dc4(0xfa)](){const _0x4c2d6b=_0x598dc4;return _0x4c2d6b(0xb2);}static get[_0x598dc4(0xe3)](){return!0x0;}static get[_0x598dc4(0x10c)](){return!0x0;}get[_0x598dc4(0xb6)](){const _0x57de3a=_0x598dc4;if(!this[_0x57de3a(0xea)]){const _0x287abc=_0x22d187(this[_0x57de3a(0x103)]),_0x4971c8=_0x287abc[_0x57de3a(0xff)][_0x57de3a(0x10a)](_0x57de3a(0xcf))&&_0x287abc[_0x57de3a(0xff)][_0x57de3a(0x10d)](_0x57de3a(0xcf))[_0x57de3a(0xb6)];this[_0x57de3a(0xea)]=_0x4971c8||_0xf6b34();}return this[_0x57de3a(0xea)];}async[_0x598dc4(0xe6)](){const _0x3a3b27=_0x598dc4,_0x440f35=_0x22d187(this[_0x3a3b27(0x103)]),_0x343d32=_0x440f35[_0x3a3b27(0xc1)],_0x32d7f4=_0x440f35[_0x3a3b27(0x109)][_0x3a3b27(0xe2)](_0x343d32[_0x3a3b27(0xba)][_0x3a3b27(0xbc)](),{'convertAiChatSelectionMarker':!0x0}),_0x235ffb=new _0xd33f9f(_0x440f35[_0x3a3b27(0xf8)][_0x3a3b27(0x116)][_0x3a3b27(0xba)]);this[_0x3a3b27(0xb8)](_0x32d7f4,_0x235ffb);let _0x587107=await this[_0x3a3b27(0xad)](_0x32d7f4);const _0x134082=this[_0x3a3b27(0xd8)](),_0x5643f9=[];for(const _0x2f952a of _0x134082){const _0x45ac77='<'+_0x2f952a[_0x3a3b27(0xfd)]+_0x3a3b27(0xfc)+_0x2f952a[_0x3a3b27(0xfd)]+_0x3a3b27(0xcb),_0x2f18d2=_0x587107[_0x3a3b27(0xc2)](_0x45ac77);_0x587107=_0x587107[_0x3a3b27(0x105)](0x0,_0x2f18d2)+_0x587107[_0x3a3b27(0x105)](_0x2f18d2+_0x45ac77[_0x3a3b27(0xeb)]);const _0x3f56be='<'+_0x2f952a[_0x3a3b27(0xfd)]+_0x3a3b27(0x106)+_0x2f952a[_0x3a3b27(0xfd)]+_0x3a3b27(0xbb),_0x54288d=_0x587107[_0x3a3b27(0xc2)](_0x3f56be);_0x587107=_0x587107[_0x3a3b27(0x105)](0x0,_0x54288d)+_0x587107[_0x3a3b27(0x105)](_0x54288d+_0x3f56be[_0x3a3b27(0xeb)]),_0x5643f9[_0x3a3b27(0xaa)]({'markerName':_0x2f952a[_0x3a3b27(0xfd)],'start':_0x2f18d2,'end':_0x54288d,'htmlFragment':_0x587107[_0x3a3b27(0x105)](_0x2f18d2,_0x54288d)});}return{'content':_0x587107,'version':_0x440f35[_0x3a3b27(0xc1)][_0x3a3b27(0xba)][_0x3a3b27(0xc9)],'sessionId':this[_0x3a3b27(0xb6)],'selections':_0x5643f9};}async[_0x598dc4(0xb4)](){const _0x4529a3=_0x598dc4;this[_0x4529a3(0x103)]instanceof _0x1198ee?this[_0x4529a3(0x10b)](this[_0x4529a3(0x103)]):this[_0x4529a3(0x100)](this[_0x4529a3(0x103)][_0x4529a3(0xb1)],_0x4529a3(0xd0),(_0x1c5e74,_0x14bb0b)=>{const _0x1d2c0e=_0x4529a3;_0x14bb0b['on'](_0x1d2c0e(0xb9),()=>{const _0x58c67d=_0x1d2c0e;this[_0x58c67d(0x10b)](_0x14bb0b);});});}[_0x598dc4(0xda)](_0x540d71){const _0x3d7ec7=_0x598dc4;this[_0x3d7ec7(0xd7)]=_0x540d71;}async[_0x598dc4(0xad)](_0x1e8c84){const _0x4fe9d6=_0x598dc4;let _0x4cce12;const _0x2e73dd=_0x22d187(this[_0x4fe9d6(0x103)]);if(this[_0x4fe9d6(0xd7)]){const _0x1a93bc=_0x2e73dd[_0x4fe9d6(0x109)][_0x4fe9d6(0xde)][_0x4fe9d6(0xb5)][_0x4fe9d6(0xbe)](_0x1e8c84),_0x5ea7a6=await this[_0x4fe9d6(0xd7)](_0x1a93bc);_0x4cce12=_0x2e73dd[_0x4fe9d6(0x109)][_0x4fe9d6(0xde)][_0x4fe9d6(0x111)][_0x4fe9d6(0xe7)](_0x5ea7a6);}else _0x4cce12=_0x2e73dd[_0x4fe9d6(0x109)][_0x4fe9d6(0xde)][_0x4fe9d6(0x113)](_0x1e8c84);return _0x4cce12;}[_0x598dc4(0x10b)](_0x29c8c5){const _0x4a5df2=_0x598dc4;_0x29c8c5[_0x4a5df2(0xf0)][_0x4a5df2(0xbf)](_0x4a5df2(0xc5))[_0x4a5df2(0x10e)]({'model':_0x4a5df2(0xd5),'view':{'classes':[_0x4a5df2(0xae),_0x4a5df2(0xe5)],'priority':0xc}}),_0x29c8c5[_0x4a5df2(0xf0)][_0x4a5df2(0xbf)](_0x4a5df2(0x107))[_0x4a5df2(0xef)]({'model':_0x4a5df2(0xd5),'view':(_0x170000,{writer:_0x47f269,options:_0x2104b8})=>_0x2104b8[_0x4a5df2(0x115)]?_0x47f269[_0x4a5df2(0xe9)](_0x170000[_0x4a5df2(0xf1)]+':'+(_0x170000[_0x4a5df2(0xdb)]?_0x4a5df2(0xb0):_0x4a5df2(0xdf))):null});}[_0x598dc4(0xf7)](_0x5e5ac9,_0x5f18b0,_0x649f8b=!0x1,_0x49d665=!0x1){const _0x2419e9=_0x598dc4;if(this[_0x2419e9(0x104)]&&!_0x49d665)return!0x1;const _0x2ca8dc=_0x22d187(this[_0x2419e9(0x103)])[_0x2419e9(0xc1)];return _0x2ca8dc[_0x2419e9(0xca)](_0x3aef38=>{const _0x1fb18b=_0x2419e9;this[_0x1fb18b(0xaf)]&&this[_0x1fb18b(0xec)](this[_0x1fb18b(0xaf)]),this[_0x1fb18b(0xaf)]=_0x5f18b0,this[_0x1fb18b(0x104)]=_0x649f8b;let _0x413ef6=0x0;for(let _0x256142 of _0x5e5ac9){const _0x4324fc=_0x1fb18b(0xf2)+_0x413ef6;if(_0x256142[_0x1fb18b(0xb0)][_0x1fb18b(0xbd)]){const _0x118221=_0x256142[_0x1fb18b(0xb0)][_0x1fb18b(0xfe)](({item:_0x386a9d})=>!_0x2ca8dc[_0x1fb18b(0xe4)][_0x1fb18b(0xd9)](_0x386a9d),{'boundaries':_0x256142});_0x256142=_0x3aef38[_0x1fb18b(0xfb)](_0x118221,_0x256142[_0x1fb18b(0xdf)]);}_0x3aef38[_0x1fb18b(0x11a)](_0x4324fc,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x256142}),_0x413ef6++;}}),window[_0x2419e9(0xf5)]()?.[_0x2419e9(0xd2)](),!0x0;}[_0x598dc4(0xec)](_0x5d541b){const _0x36479c=_0x598dc4;if(this[_0x36479c(0xaf)]!=_0x5d541b)return!0x1;this[_0x36479c(0xaf)]=null,this[_0x36479c(0x104)]=!0x1;const _0xfba10a=_0x22d187(this[_0x36479c(0x103)]),_0x4eb08f=_0xfba10a[_0x36479c(0xc1)][_0x36479c(0xf9)][_0x36479c(0x114)](_0x36479c(0xd5));return _0xfba10a[_0x36479c(0xc1)][_0x36479c(0xca)](_0x34010d=>{const _0x2f9d90=_0x36479c;for(const _0x5adfc5 of _0x4eb08f)_0x34010d[_0x2f9d90(0xd1)](_0x5adfc5);}),!0x0;}async[_0x598dc4(0xf4)](_0xd9ef23){const _0x13ecd5=_0x598dc4,_0xcd5535=_0x22d187(this[_0x13ecd5(0x103)]),_0x1a8795=_0xcd5535[_0x13ecd5(0x109)][_0x13ecd5(0xe2)](_0xd9ef23),_0x12f260=new _0xd33f9f(_0xcd5535[_0x13ecd5(0xf8)][_0x13ecd5(0x116)][_0x13ecd5(0xba)]);return this[_0x13ecd5(0xb8)](_0x1a8795,_0x12f260),this[_0x13ecd5(0xad)](_0x1a8795);}[_0x598dc4(0xb8)](_0x21c9f0,_0x5bb14f){const _0xd638fd=_0x598dc4;let _0x59075b=!0x1;const _0x7d00d0=new Set();for(const _0x570a5b of _0x21c9f0[_0xd638fd(0x117)]()){const _0xc68410=_0x570a5b['is'](_0xd638fd(0xab))||_0x570a5b['is'](_0xd638fd(0xc4));if(!_0x570a5b['is'](_0xd638fd(0x102)))continue;(this[_0xd638fd(0xb8)](_0x570a5b,_0x5bb14f)||_0xc68410)&&(_0x5bb14f[_0xd638fd(0xe8)](_0xd638fd(0xf6),this[_0xd638fd(0xcc)](_0x7d00d0),_0x570a5b),_0x59075b=!0x0);}return _0x59075b;}[_0x598dc4(0xcc)](_0x123801){const _0x45443e=_0x598dc4;let _0x2f1b8a;do{_0x2f1b8a='';for(let _0x182621=0x0;_0x182621<0x4;_0x182621++)_0x2f1b8a+=String[_0x45443e(0xe0)](0x61+Math[_0x45443e(0x11b)](0x1a*Math[_0x45443e(0x10f)]()));}while(_0x123801[_0x45443e(0x10a)](_0x2f1b8a));return _0x123801[_0x45443e(0xd0)](_0x2f1b8a),_0x2f1b8a;}[_0x598dc4(0xcd)](){const _0x3a062b=_0x598dc4,{model:_0x221ebd}=_0x22d187(this[_0x3a062b(0x103)]),_0x15461b=_0x221ebd[_0x3a062b(0xba)][_0x3a062b(0x119)],_0x599cf7=[];for(const _0x24d8a6 of _0x15461b[_0x3a062b(0xd4)]())for(const _0x468590 of _0x24d8a6[_0x3a062b(0x112)]())_0x468590['is'](_0x3a062b(0x101))?_0x599cf7[_0x3a062b(0xaa)](_0x468590[_0x3a062b(0x109)]):_0x468590['is'](_0x3a062b(0x102))&&_0x599cf7[_0x3a062b(0xeb)]>0x0&&'\x20'!==_0x599cf7[_0x599cf7[_0x3a062b(0xeb)]-0x1]&&_0x599cf7[_0x3a062b(0xaa)]('\x20');return _0x599cf7[_0x3a062b(0xeb)]?'\x22'+_0x599cf7[_0x3a062b(0xdd)]('')[_0x3a062b(0xee)]()+'\x22':_0x1b88f4(this[_0x3a062b(0x103)][_0x3a062b(0xd6)],_0x3a062b(0xce));}[_0x598dc4(0xd8)](){const _0x777b5=_0x598dc4,_0x2218e0=_0x22d187(this[_0x777b5(0x103)])[_0x777b5(0xc1)];return Array[_0x777b5(0xb3)](_0x2218e0[_0x777b5(0xf9)][_0x777b5(0x114)](_0x777b5(0xd5)))[_0x777b5(0xb7)]((_0x9be89b,_0x41838c)=>_0x9be89b[_0x777b5(0xc0)]()[_0x777b5(0xe1)](_0x41838c[_0x777b5(0xc0)]())?-0x1:_0x9be89b[_0x777b5(0xc0)]()[_0x777b5(0xc8)](_0x41838c[_0x777b5(0xc0)]())?0x1:0x0);}}
23
+ const _0x3fc93c=_0x1e3e;function _0x1e3e(_0x56c61a,_0x1cd921){const _0x26c751=_0x26c7();return _0x1e3e=function(_0x1e3e37,_0x57d86b){_0x1e3e37=_0x1e3e37-0x1e0;let _0x3b22a=_0x26c751[_0x1e3e37];return _0x3b22a;},_0x1e3e(_0x56c61a,_0x1cd921);}(function(_0x57dbb3,_0x196aa3){const _0x7e7de7=_0x1e3e,_0x373ba7=_0x57dbb3();while(!![]){try{const _0x14bacd=parseInt(_0x7e7de7(0x215))/0x1*(parseInt(_0x7e7de7(0x24a))/0x2)+parseInt(_0x7e7de7(0x252))/0x3*(-parseInt(_0x7e7de7(0x239))/0x4)+parseInt(_0x7e7de7(0x24c))/0x5+parseInt(_0x7e7de7(0x1f3))/0x6*(parseInt(_0x7e7de7(0x218))/0x7)+parseInt(_0x7e7de7(0x1ed))/0x8*(-parseInt(_0x7e7de7(0x213))/0x9)+-parseInt(_0x7e7de7(0x21b))/0xa+parseInt(_0x7e7de7(0x1e6))/0xb;if(_0x14bacd===_0x196aa3)break;else _0x373ba7['push'](_0x373ba7['shift']());}catch(_0x4c7a48){_0x373ba7['push'](_0x373ba7['shift']());}}}(_0x26c7,0x19d5c));import{ViewDowncastWriter as _0x2d2e51}from'ckeditor5/src/engine.js';function _0x26c7(){const _0x338210=['sort','markers','htmlWriter','isContent','656524jNiuvM','afterInit','context','getLastMatchingPosition','removeMarker','removeAllRanges','ck-ai-assistant-ui_theme','97832IcnnAg','domConverter','addMarker','getHtml','element','ck-fake-ai-selection','6uxdqcL','viewToDom','showFakeVisualSelection','model','emptyElement','add','_getMarkersInDocumentOrder','substring','modelToDataWithIds','random','editing','end','editingDowncast','_displayedFakeSelectionId','from','fromCharCode','markerName','listenTo','define','isAtEnd','get','document','getChildren','_outputDataProcessor','schema',':end>','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL',':end></','convertAiChatSelectionMarker','has','pluginName','isBefore','108TVZJRw','_integrateEditor','175731JAWGES','_setOutputDataProcessor','length','537439DwXLBJ','processor','_nextDataId','264170iMksAx','getDocumentData','locale','markerToElement','push','sessionId','toData','floor','isPremiumPlugin','editors','plugins','$textProxy','getItems','getRoot','isOpening','for','isAfter','config','markerToHighlight','ready','join','getSelection','version','RealTimeCollaborationClient','ai-selection','createRange','getSelectionText','indexOf','setAttribute','_setDataIdsOnChildren','4fPusJj','dataDowncast','containerElement','ai-selection:','_sessionId','conversion','change','createUIElement','start','hideFakeVisualSelection','data','AIEditing','view','toView','trim',':start></','name','2ykLmEJ','selection','314420bazNqB','getStart','_displayedFakeSelectionLocked',':start>','getRanges','data-id','288273HdlDvh','isOfficialPlugin','ai.models.showModelSelector','getMarkersGroup','_getDocumentDataStringFromView'];_0x26c7=function(){return _0x338210;};return _0x26c7();}import{ContextPlugin as _0x88d453,Editor as _0x39b05e}from'ckeditor5/src/core.js';import{uid as _0x44ba9c}from'ckeditor5/src/utils.js';import{getTranslation as _0x14393f}from'./utils/common-translations.js';import{getEditorFromContext as _0x13c502}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x3fc93c(0x233);export class AIEditing extends _0x88d453{constructor(_0x518fa3){const _0x453337=_0x3fc93c;super(_0x518fa3),this[_0x453337(0x1e8)][_0x453337(0x22c)][_0x453337(0x205)](_0x453337(0x254),!0x0);}[_0x3fc93c(0x20a)];[_0x3fc93c(0x200)]=null;[_0x3fc93c(0x24e)]=!0x1;[_0x3fc93c(0x23d)];static get[_0x3fc93c(0x211)](){const _0xef6880=_0x3fc93c;return _0xef6880(0x244);}static get[_0x3fc93c(0x253)](){return!0x0;}static get[_0x3fc93c(0x223)](){return!0x0;}get[_0x3fc93c(0x220)](){const _0x36ddc1=_0x3fc93c;if(!this[_0x36ddc1(0x23d)]){const _0x57898c=_0x13c502(this[_0x36ddc1(0x1e8)]),_0x2dd0ff=_0x57898c[_0x36ddc1(0x225)][_0x36ddc1(0x210)](_0x36ddc1(0x232))&&_0x57898c[_0x36ddc1(0x225)][_0x36ddc1(0x207)](_0x36ddc1(0x232))[_0x36ddc1(0x220)];this[_0x36ddc1(0x23d)]=_0x2dd0ff||_0x44ba9c();}return this[_0x36ddc1(0x23d)];}async[_0x3fc93c(0x21c)](){const _0x55908a=_0x3fc93c,_0x1aead6=_0x13c502(this[_0x55908a(0x1e8)]),_0x527e6a=_0x1aead6[_0x55908a(0x1f6)],_0x2a078c=_0x1aead6[_0x55908a(0x243)][_0x55908a(0x246)](_0x527e6a[_0x55908a(0x208)][_0x55908a(0x228)](),{'convertAiChatSelectionMarker':!0x0}),_0x55288d=new _0x2d2e51(_0x1aead6[_0x55908a(0x1fd)][_0x55908a(0x245)][_0x55908a(0x208)]);this[_0x55908a(0x238)](_0x2a078c,_0x55288d);let _0x24c3ab=await this[_0x55908a(0x1e1)](_0x2a078c);const _0x21b5e5=this[_0x55908a(0x1f9)](),_0x4272eb=[];for(const _0x5b051c of _0x21b5e5){const _0x2fbe10='<'+_0x5b051c[_0x55908a(0x249)]+_0x55908a(0x248)+_0x5b051c[_0x55908a(0x249)]+_0x55908a(0x24f),_0x3f59cc=_0x24c3ab[_0x55908a(0x236)](_0x2fbe10);_0x24c3ab=_0x24c3ab[_0x55908a(0x1fa)](0x0,_0x3f59cc)+_0x24c3ab[_0x55908a(0x1fa)](_0x3f59cc+_0x2fbe10[_0x55908a(0x217)]);const _0x4ae578='<'+_0x5b051c[_0x55908a(0x249)]+_0x55908a(0x20e)+_0x5b051c[_0x55908a(0x249)]+_0x55908a(0x20c),_0x2ef0fc=_0x24c3ab[_0x55908a(0x236)](_0x4ae578);_0x24c3ab=_0x24c3ab[_0x55908a(0x1fa)](0x0,_0x2ef0fc)+_0x24c3ab[_0x55908a(0x1fa)](_0x2ef0fc+_0x4ae578[_0x55908a(0x217)]),_0x4272eb[_0x55908a(0x21f)]({'markerName':_0x5b051c[_0x55908a(0x249)],'start':_0x3f59cc,'end':_0x2ef0fc,'htmlFragment':_0x24c3ab[_0x55908a(0x1fa)](_0x3f59cc,_0x2ef0fc)});}return{'content':_0x24c3ab,'version':_0x1aead6[_0x55908a(0x1f6)][_0x55908a(0x208)][_0x55908a(0x231)],'sessionId':this[_0x55908a(0x220)],'selections':_0x4272eb};}async[_0x3fc93c(0x1e7)](){const _0x159178=_0x3fc93c;this[_0x159178(0x1e8)]instanceof _0x39b05e?this[_0x159178(0x214)](this[_0x159178(0x1e8)]):this[_0x159178(0x204)](this[_0x159178(0x1e8)][_0x159178(0x224)],_0x159178(0x1f8),(_0xd11f32,_0x32b2ad)=>{const _0x3f76bb=_0x159178;_0x32b2ad['on'](_0x3f76bb(0x22e),()=>{const _0x10fec8=_0x3f76bb;this[_0x10fec8(0x214)](_0x32b2ad);});});}[_0x3fc93c(0x216)](_0xe55d00){const _0x1884d2=_0x3fc93c;this[_0x1884d2(0x20a)]=_0xe55d00;}async[_0x3fc93c(0x1e1)](_0x5e478d){const _0x23ef2a=_0x3fc93c;let _0x396e44;const _0x56f5d9=_0x13c502(this[_0x23ef2a(0x1e8)]);if(this[_0x23ef2a(0x20a)]){const _0x451eda=_0x56f5d9[_0x23ef2a(0x243)][_0x23ef2a(0x219)][_0x23ef2a(0x1ee)][_0x23ef2a(0x1f4)](_0x5e478d),_0x3b1492=await this[_0x23ef2a(0x20a)](_0x451eda);_0x396e44=_0x56f5d9[_0x23ef2a(0x243)][_0x23ef2a(0x219)][_0x23ef2a(0x1e4)][_0x23ef2a(0x1f0)](_0x3b1492);}else _0x396e44=_0x56f5d9[_0x23ef2a(0x243)][_0x23ef2a(0x219)][_0x23ef2a(0x221)](_0x5e478d);return _0x396e44;}[_0x3fc93c(0x214)](_0x4937b1){const _0x5e7b7d=_0x3fc93c;_0x4937b1[_0x5e7b7d(0x23e)][_0x5e7b7d(0x22a)](_0x5e7b7d(0x1ff))[_0x5e7b7d(0x22d)]({'model':_0x5e7b7d(0x233),'view':{'classes':[_0x5e7b7d(0x1f2),_0x5e7b7d(0x1ec)],'priority':0xc}}),_0x4937b1[_0x5e7b7d(0x23e)][_0x5e7b7d(0x22a)](_0x5e7b7d(0x23a))[_0x5e7b7d(0x21e)]({'model':_0x5e7b7d(0x233),'view':(_0x2d2693,{writer:_0x36364a,options:_0x3fef59})=>_0x3fef59[_0x5e7b7d(0x20f)]?_0x36364a[_0x5e7b7d(0x240)](_0x2d2693[_0x5e7b7d(0x203)]+':'+(_0x2d2693[_0x5e7b7d(0x229)]?_0x5e7b7d(0x241):_0x5e7b7d(0x1fe))):null});}[_0x3fc93c(0x1f5)](_0x2b9f42,_0x1a8dea,_0x57fa37=!0x1,_0x10c27f=!0x1){const _0x454ea7=_0x3fc93c;if(this[_0x454ea7(0x24e)]&&!_0x10c27f)return!0x1;const _0x15c8c1=_0x13c502(this[_0x454ea7(0x1e8)])[_0x454ea7(0x1f6)];return _0x15c8c1[_0x454ea7(0x23f)](_0x7d4147=>{const _0x4f8c3a=_0x454ea7;this[_0x4f8c3a(0x200)]&&this[_0x4f8c3a(0x242)](this[_0x4f8c3a(0x200)]),this[_0x4f8c3a(0x200)]=_0x1a8dea,this[_0x4f8c3a(0x24e)]=_0x57fa37;let _0x503f7b=0x0;for(let _0x2a32b4 of _0x2b9f42){const _0x137589=_0x4f8c3a(0x23c)+_0x503f7b;if(_0x2a32b4[_0x4f8c3a(0x241)][_0x4f8c3a(0x206)]){const _0x21bfad=_0x2a32b4[_0x4f8c3a(0x241)][_0x4f8c3a(0x1e9)](({item:_0x1cb5ff})=>!_0x15c8c1[_0x4f8c3a(0x20b)][_0x4f8c3a(0x1e5)](_0x1cb5ff),{'boundaries':_0x2a32b4});_0x2a32b4=_0x7d4147[_0x4f8c3a(0x234)](_0x21bfad,_0x2a32b4[_0x4f8c3a(0x1fe)]);}_0x7d4147[_0x4f8c3a(0x1ef)](_0x137589,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x2a32b4}),_0x503f7b++;}}),window[_0x454ea7(0x230)]()?.[_0x454ea7(0x1eb)](),!0x0;}[_0x3fc93c(0x242)](_0x39191e){const _0x4b1335=_0x3fc93c;if(this[_0x4b1335(0x200)]!=_0x39191e)return!0x1;this[_0x4b1335(0x200)]=null,this[_0x4b1335(0x24e)]=!0x1;const _0x58210c=_0x13c502(this[_0x4b1335(0x1e8)]),_0x54d828=_0x58210c[_0x4b1335(0x1f6)][_0x4b1335(0x1e3)][_0x4b1335(0x1e0)](_0x4b1335(0x233));return _0x58210c[_0x4b1335(0x1f6)][_0x4b1335(0x23f)](_0x53d226=>{const _0x28c2bf=_0x4b1335;for(const _0x2ea6d4 of _0x54d828)_0x53d226[_0x28c2bf(0x1ea)](_0x2ea6d4);}),!0x0;}async[_0x3fc93c(0x1fb)](_0x526aba){const _0x262bb6=_0x3fc93c,_0x124957=_0x13c502(this[_0x262bb6(0x1e8)]),_0xd85824=_0x124957[_0x262bb6(0x243)][_0x262bb6(0x246)](_0x526aba),_0x1b892c=new _0x2d2e51(_0x124957[_0x262bb6(0x1fd)][_0x262bb6(0x245)][_0x262bb6(0x208)]);return this[_0x262bb6(0x238)](_0xd85824,_0x1b892c),this[_0x262bb6(0x1e1)](_0xd85824);}[_0x3fc93c(0x238)](_0x2876bf,_0x575825){const _0x295793=_0x3fc93c;let _0x4d3da5=!0x1;const _0x1b8ea5=new Set();for(const _0x47ab03 of _0x2876bf[_0x295793(0x209)]()){const _0x422f14=_0x47ab03['is'](_0x295793(0x1f7))||_0x47ab03['is'](_0x295793(0x23b));if(!_0x47ab03['is'](_0x295793(0x1f1)))continue;(this[_0x295793(0x238)](_0x47ab03,_0x575825)||_0x422f14)&&(_0x575825[_0x295793(0x237)](_0x295793(0x251),this[_0x295793(0x21a)](_0x1b8ea5),_0x47ab03),_0x4d3da5=!0x0);}return _0x4d3da5;}[_0x3fc93c(0x21a)](_0x28145f){const _0x5ad4c4=_0x3fc93c;let _0x310730;do{_0x310730='';for(let _0x1e60b6=0x0;_0x1e60b6<0x4;_0x1e60b6++)_0x310730+=String[_0x5ad4c4(0x202)](0x61+Math[_0x5ad4c4(0x222)](0x1a*Math[_0x5ad4c4(0x1fc)]()));}while(_0x28145f[_0x5ad4c4(0x210)](_0x310730));return _0x28145f[_0x5ad4c4(0x1f8)](_0x310730),_0x310730;}[_0x3fc93c(0x235)](){const _0x9a7349=_0x3fc93c,{model:_0xcde048}=_0x13c502(this[_0x9a7349(0x1e8)]),_0x1f4b4e=_0xcde048[_0x9a7349(0x208)][_0x9a7349(0x24b)],_0x42d8e7=[];for(const _0x28f4a5 of _0x1f4b4e[_0x9a7349(0x250)]())for(const _0x938b74 of _0x28f4a5[_0x9a7349(0x227)]())_0x938b74['is'](_0x9a7349(0x226))?_0x42d8e7[_0x9a7349(0x21f)](_0x938b74[_0x9a7349(0x243)]):_0x938b74['is'](_0x9a7349(0x1f1))&&_0x42d8e7[_0x9a7349(0x217)]>0x0&&'\x20'!==_0x42d8e7[_0x42d8e7[_0x9a7349(0x217)]-0x1]&&_0x42d8e7[_0x9a7349(0x21f)]('\x20');return _0x42d8e7[_0x9a7349(0x217)]?'\x22'+_0x42d8e7[_0x9a7349(0x22f)]('')[_0x9a7349(0x247)]()+'\x22':_0x14393f(this[_0x9a7349(0x1e8)][_0x9a7349(0x21d)],_0x9a7349(0x20d));}[_0x3fc93c(0x1f9)](){const _0x30ba05=_0x3fc93c,_0x5f3d30=_0x13c502(this[_0x30ba05(0x1e8)])[_0x30ba05(0x1f6)];return Array[_0x30ba05(0x201)](_0x5f3d30[_0x30ba05(0x1e3)][_0x30ba05(0x1e0)](_0x30ba05(0x233)))[_0x30ba05(0x1e2)]((_0x53e003,_0x2c7186)=>_0x53e003[_0x30ba05(0x24d)]()[_0x30ba05(0x212)](_0x2c7186[_0x30ba05(0x24d)]())?-0x1:_0x53e003[_0x30ba05(0x24d)]()[_0x30ba05(0x22b)](_0x2c7186[_0x30ba05(0x24d)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x25c6d4=_0x11f9;(function(_0x445927,_0x4d7250){const _0x34f793=_0x11f9,_0x598cdd=_0x445927();while(!![]){try{const _0xfc0463=-parseInt(_0x34f793(0x1e0))/0x1+parseInt(_0x34f793(0x1e5))/0x2*(parseInt(_0x34f793(0x1e4))/0x3)+-parseInt(_0x34f793(0x1de))/0x4*(parseInt(_0x34f793(0x1d6))/0x5)+parseInt(_0x34f793(0x1df))/0x6*(-parseInt(_0x34f793(0x1dd))/0x7)+parseInt(_0x34f793(0x1eb))/0x8+-parseInt(_0x34f793(0x1e3))/0x9+parseInt(_0x34f793(0x1d8))/0xa;if(_0xfc0463===_0x4d7250)break;else _0x598cdd['push'](_0x598cdd['shift']());}catch(_0x32713c){_0x598cdd['push'](_0x598cdd['shift']());}}}(_0x5e4b,0x3b7c3));import{EmitterMixin as _0x3da0a1}from'ckeditor5/src/utils.js';function _0x11f9(_0x614f16,_0x166be2){const _0x5e4b05=_0x5e4b();return _0x11f9=function(_0x11f987,_0x4ef73e){_0x11f987=_0x11f987-0x1d3;let _0x1ef158=_0x5e4b05[_0x11f987];return _0x1ef158;},_0x11f9(_0x614f16,_0x166be2);}function _0x5e4b(){const _0x448ed0=['3ByVmAH','8476azBWWr','isWebSearchEnabled','reasoning','_isReasoningEnabled','_isWebSearchEnabled','toggleWebSearch','1163144MNOVmn','getCapabilitiesConfig','fire','init','capabilitiesUpdated','355PSVfKM','webSearch','6875450DMvqSq','setReasoning','setWebSearch','toggleReasoning','getCapabilitiesRequestData','2188459ebVoxI','860hJLBHu','6TOubWN','187085VHosyu','reset','isReasoningEnabled','706842tQhAkT'];_0x5e4b=function(){return _0x448ed0;};return _0x5e4b();}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x25c6d4(0x1d5)];export class AICapabilities extends _0x3da0a1(){[_0x25c6d4(0x1e9)];[_0x25c6d4(0x1e8)];constructor(){const _0x426f36=_0x25c6d4;super(),this[_0x426f36(0x1e9)]=!0x1,this[_0x426f36(0x1e8)]=!0x1;}[_0x25c6d4(0x1d4)](){const _0x32c1b1=_0x25c6d4;this[_0x32c1b1(0x1e1)]();}[_0x25c6d4(0x1e1)](){const _0x2a15cc=_0x25c6d4;this[_0x2a15cc(0x1da)](!0x1),this[_0x2a15cc(0x1d9)](!0x1);}[_0x25c6d4(0x1ec)](){const _0x466df5=_0x25c6d4;return{'isWebSearchEnabled':this[_0x466df5(0x1e9)],'isReasoningEnabled':this[_0x466df5(0x1e8)]};}static[_0x25c6d4(0x1dc)](_0x5cb23e){const _0x42ca9c=_0x25c6d4,_0x2ff42e={};return _0x5cb23e&&_0x5cb23e[_0x42ca9c(0x1e6)]&&(_0x2ff42e[_0x42ca9c(0x1d7)]={}),_0x5cb23e&&_0x5cb23e[_0x42ca9c(0x1e2)]&&(_0x2ff42e[_0x42ca9c(0x1e7)]={}),_0x2ff42e;}[_0x25c6d4(0x1ea)](){const _0x5748f6=_0x25c6d4;this[_0x5748f6(0x1da)](!this[_0x5748f6(0x1e9)]);}[_0x25c6d4(0x1db)](){const _0x37e8be=_0x25c6d4;this[_0x37e8be(0x1d9)](!this[_0x37e8be(0x1e8)]);}[_0x25c6d4(0x1da)](_0x5e58a9){const _0x2493c3=_0x25c6d4;_0x5e58a9!==this[_0x2493c3(0x1e9)]&&(this[_0x2493c3(0x1e9)]=_0x5e58a9,this[_0x2493c3(0x1d3)](_0x2493c3(0x1d5),this[_0x2493c3(0x1ec)]()));}[_0x25c6d4(0x1d9)](_0x123872){const _0x47c7a3=_0x25c6d4;_0x123872!==this[_0x47c7a3(0x1e8)]&&(this[_0x47c7a3(0x1e8)]=_0x123872,this[_0x47c7a3(0x1d3)](_0x47c7a3(0x1d5),this[_0x47c7a3(0x1ec)]()));}}
23
+ function _0x871e(_0x4d620e,_0x5c3e2b){const _0xcdce1a=_0xcdce();return _0x871e=function(_0x871e45,_0x29cd46){_0x871e45=_0x871e45-0x65;let _0x3e8d6e=_0xcdce1a[_0x871e45];return _0x3e8d6e;},_0x871e(_0x4d620e,_0x5c3e2b);}const _0xfa3a22=_0x871e;function _0xcdce(){const _0x1152af=['_isWebSearchEnabled','reset','isReasoningEnabled','8662381tYdMKW','init','_isReasoningEnabled','setWebSearch','40250115gfSLbd','getCapabilitiesConfig','capabilitiesUpdated','2434175vUXBFN','isWebSearchEnabled','1313702HlBJqJ','3834356kymZqA','reasoning','6JOsEUP','setReasoning','fire','18DwrRVS','toggleReasoning','webSearch','6297280SBhheV','681448DYcGUf','toggleWebSearch','getCapabilitiesRequestData'];_0xcdce=function(){return _0x1152af;};return _0xcdce();}(function(_0x4c60cb,_0x2d051d){const _0x178c4f=_0x871e,_0xbe064d=_0x4c60cb();while(!![]){try{const _0x4ec8e9=parseInt(_0x178c4f(0x67))/0x1+-parseInt(_0x178c4f(0x76))/0x2*(parseInt(_0x178c4f(0x79))/0x3)+-parseInt(_0x178c4f(0x77))/0x4+parseInt(_0x178c4f(0x74))/0x5*(-parseInt(_0x178c4f(0x7c))/0x6)+-parseInt(_0x178c4f(0x6d))/0x7+parseInt(_0x178c4f(0x66))/0x8+parseInt(_0x178c4f(0x71))/0x9;if(_0x4ec8e9===_0x2d051d)break;else _0xbe064d['push'](_0xbe064d['shift']());}catch(_0x4951a7){_0xbe064d['push'](_0xbe064d['shift']());}}}(_0xcdce,0xecf44));import{EmitterMixin as _0xd30605}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0xfa3a22(0x73)];export class AICapabilities extends _0xd30605(){[_0xfa3a22(0x6a)];[_0xfa3a22(0x6f)];constructor(){const _0x3507cb=_0xfa3a22;super(),this[_0x3507cb(0x6a)]=!0x1,this[_0x3507cb(0x6f)]=!0x1;}[_0xfa3a22(0x6e)](){const _0xe35b2=_0xfa3a22;this[_0xe35b2(0x6b)]();}[_0xfa3a22(0x6b)](){const _0x4c3cb4=_0xfa3a22;this[_0x4c3cb4(0x70)](!0x1),this[_0x4c3cb4(0x7a)](!0x1);}[_0xfa3a22(0x72)](){const _0x44b6d3=_0xfa3a22;return{'isWebSearchEnabled':this[_0x44b6d3(0x6a)],'isReasoningEnabled':this[_0x44b6d3(0x6f)]};}static[_0xfa3a22(0x69)](_0x5230dc){const _0x9af077=_0xfa3a22,_0x4dc489={};return _0x5230dc&&_0x5230dc[_0x9af077(0x75)]&&(_0x4dc489[_0x9af077(0x65)]={}),_0x5230dc&&_0x5230dc[_0x9af077(0x6c)]&&(_0x4dc489[_0x9af077(0x78)]={}),_0x4dc489;}[_0xfa3a22(0x68)](){const _0x1d440b=_0xfa3a22;this[_0x1d440b(0x70)](!this[_0x1d440b(0x6a)]);}[_0xfa3a22(0x7d)](){const _0x2e86fd=_0xfa3a22;this[_0x2e86fd(0x7a)](!this[_0x2e86fd(0x6f)]);}[_0xfa3a22(0x70)](_0x100f03){const _0x457e87=_0xfa3a22;_0x100f03!==this[_0x457e87(0x6a)]&&(this[_0x457e87(0x6a)]=_0x100f03,this[_0x457e87(0x7b)](_0x457e87(0x73),this[_0x457e87(0x72)]()));}[_0xfa3a22(0x7a)](_0x5771b8){const _0xf04c6d=_0xfa3a22;_0x5771b8!==this[_0xf04c6d(0x6f)]&&(this[_0xf04c6d(0x6f)]=_0x5771b8,this[_0xf04c6d(0x7b)](_0xf04c6d(0x73),this[_0xf04c6d(0x72)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x2db9af,_0x27e720){var _0x4a13e1=_0xdda1,_0x1f6baf=_0x2db9af();while(!![]){try{var _0x4a4ab4=parseInt(_0x4a13e1(0xdb))/0x1+parseInt(_0x4a13e1(0xd7))/0x2+-parseInt(_0x4a13e1(0xd9))/0x3+-parseInt(_0x4a13e1(0xe7))/0x4*(parseInt(_0x4a13e1(0xd3))/0x5)+parseInt(_0x4a13e1(0xe4))/0x6*(-parseInt(_0x4a13e1(0xcf))/0x7)+-parseInt(_0x4a13e1(0xe8))/0x8+parseInt(_0x4a13e1(0xe1))/0x9*(parseInt(_0x4a13e1(0xe3))/0xa);if(_0x4a4ab4===_0x27e720)break;else _0x1f6baf['push'](_0x1f6baf['shift']());}catch(_0x589e5b){_0x1f6baf['push'](_0x1f6baf['shift']());}}}(_0x1d31,0x65f64));export var AIContextItemType;function _0x1d31(){var _0x1ba104=['DOCUMENT','text','7845rOamPI','FILE','TEXT','URL','1544504FKDhmt','markdown','2054163xWSRRT','file','488108yFzJxY','web-resource','selection','TOOL','mcp-tool-context','HTML','5850ihuCmt','document','18140ouXUdp','114fyypYR','MARKDOWN','html','988jzdnAC','1438504QtPsJZ','283591aCXNeK','SELECTION'];_0x1d31=function(){return _0x1ba104;};return _0x1d31();}!function(_0x5bc988){var _0x56f9e2=_0xdda1;_0x5bc988[_0x56f9e2(0xde)]=_0x56f9e2(0xdf),_0x5bc988[_0x56f9e2(0xd4)]=_0x56f9e2(0xda),_0x5bc988[_0x56f9e2(0xd1)]=_0x56f9e2(0xe2),_0x5bc988[_0x56f9e2(0xd6)]=_0x56f9e2(0xdc),_0x5bc988[_0x56f9e2(0xd5)]=_0x56f9e2(0xd2),_0x5bc988[_0x56f9e2(0xd0)]=_0x56f9e2(0xdd);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;function _0xdda1(_0x1cfe21,_0x3a9fc3){var _0x1d318a=_0x1d31();return _0xdda1=function(_0xdda107,_0x424ffb){_0xdda107=_0xdda107-0xcf;var _0x123984=_0x1d318a[_0xdda107];return _0x123984;},_0xdda1(_0x1cfe21,_0x3a9fc3);}!function(_0x4a7866){var _0x10cf22=_0xdda1;_0x4a7866[_0x10cf22(0xd5)]=_0x10cf22(0xd2),_0x4a7866[_0x10cf22(0xe5)]=_0x10cf22(0xd8),_0x4a7866[_0x10cf22(0xe0)]=_0x10cf22(0xe6);}(AIContextTextResourceType||(AIContextTextResourceType={}));
23
+ (function(_0x68e30,_0x421fac){var _0x548cbd=_0x5527,_0x426548=_0x68e30();while(!![]){try{var _0x3d3da4=-parseInt(_0x548cbd(0x116))/0x1+parseInt(_0x548cbd(0x121))/0x2*(-parseInt(_0x548cbd(0x11c))/0x3)+parseInt(_0x548cbd(0x11d))/0x4+parseInt(_0x548cbd(0x117))/0x5+-parseInt(_0x548cbd(0x11b))/0x6*(-parseInt(_0x548cbd(0x125))/0x7)+parseInt(_0x548cbd(0x123))/0x8+-parseInt(_0x548cbd(0x128))/0x9;if(_0x3d3da4===_0x421fac)break;else _0x426548['push'](_0x426548['shift']());}catch(_0x4f46ab){_0x426548['push'](_0x426548['shift']());}}}(_0x15b4,0x8bcb6));export var AIContextItemType;!function(_0x217dae){var _0x32e07c=_0x5527;_0x217dae[_0x32e07c(0x113)]=_0x32e07c(0x122),_0x217dae[_0x32e07c(0x119)]=_0x32e07c(0x127),_0x217dae[_0x32e07c(0x112)]=_0x32e07c(0x118),_0x217dae[_0x32e07c(0x115)]=_0x32e07c(0x110),_0x217dae[_0x32e07c(0x124)]=_0x32e07c(0x120),_0x217dae[_0x32e07c(0x114)]=_0x32e07c(0x11e);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x179ade){var _0x2940ac=_0x5527;_0x179ade[_0x2940ac(0x124)]=_0x2940ac(0x120),_0x179ade[_0x2940ac(0x11a)]=_0x2940ac(0x126),_0x179ade[_0x2940ac(0x11f)]=_0x2940ac(0x111);}(AIContextTextResourceType||(AIContextTextResourceType={}));function _0x5527(_0x168a83,_0x489dc1){var _0x15b466=_0x15b4();return _0x5527=function(_0x5527dd,_0x43ee3f){_0x5527dd=_0x5527dd-0x110;var _0x411ee2=_0x15b466[_0x5527dd];return _0x411ee2;},_0x5527(_0x168a83,_0x489dc1);}function _0x15b4(){var _0x5990e4=['URL','788969rHQLUw','3566980WuDukk','document','FILE','MARKDOWN','6zkPEfN','320613ntHBXA','3031356ivOVBn','selection','HTML','text','2tJSNXY','mcp-tool-context','6935296mNPbBb','TEXT','3304287TlMbEc','markdown','file','12075750MefWAu','web-resource','html','DOCUMENT','TOOL','SELECTION'];_0x15b4=function(){return _0x5990e4;};return _0x15b4();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a0659=_0x5aaf;(function(_0x108dc1,_0x298972){const _0xae2991=_0x5aaf,_0x38de81=_0x108dc1();while(!![]){try{const _0x2f032d=-parseInt(_0xae2991(0x21b))/0x1*(-parseInt(_0xae2991(0x1de))/0x2)+parseInt(_0xae2991(0x207))/0x3*(parseInt(_0xae2991(0x20a))/0x4)+-parseInt(_0xae2991(0x211))/0x5*(parseInt(_0xae2991(0x226))/0x6)+-parseInt(_0xae2991(0x1f4))/0x7+-parseInt(_0xae2991(0x20f))/0x8*(-parseInt(_0xae2991(0x1ff))/0x9)+-parseInt(_0xae2991(0x20b))/0xa*(parseInt(_0xae2991(0x1fe))/0xb)+-parseInt(_0xae2991(0x1e8))/0xc*(parseInt(_0xae2991(0x235))/0xd);if(_0x2f032d===_0x298972)break;else _0x38de81['push'](_0x38de81['shift']());}catch(_0x2bf6b0){_0x38de81['push'](_0x38de81['shift']());}}}(_0x4d91,0x5a1d3));import{CKEditorError as _0x2fa028,EmitterMixin as _0x4829ac,uid as _0x105b88}from'ckeditor5/src/utils.js';import{AIReply as _0x4d698f}from'./aireply.js';function _0x5aaf(_0x347a1e,_0x55606f){const _0x4d91b7=_0x4d91();return _0x5aaf=function(_0x5aaf11,_0x552da6){_0x5aaf11=_0x5aaf11-0x1dc;let _0x1cb79c=_0x4d91b7[_0x5aaf11];return _0x1cb79c;},_0x5aaf(_0x347a1e,_0x55606f);}export const AI_MODEL_EVENT_NAMES=[_0x4a0659(0x1e3),_0x4a0659(0x203),_0x4a0659(0x210),_0x4a0659(0x20c),_0x4a0659(0x223),_0x4a0659(0x225),_0x4a0659(0x220),_0x4a0659(0x1fc),_0x4a0659(0x230),_0x4a0659(0x1ee),_0x4a0659(0x202),_0x4a0659(0x215),_0x4a0659(0x232),_0x4a0659(0x21d),_0x4a0659(0x1e6)];function _0x4d91(){const _0x2a95c9=['modification','action-metadata','ai-chat-interaction-error','3501LPPQTP','destroy','done','2372FyYjvN','10CqRvkB','interactionFinished','type','data','968meVvaR','interactionStopped','160FrDPNx','_isReasoning','resetWebSearchState','fire','reasoningStarted','mcp-tool-notification','editor','sources','splice','reasoning','1axSKIW','push','toolDataReceived','conversationTitle','createReply','replyContentUpdated','currentReply','messageId','interactionDestroyed','web-search','replyCreated','4170KDfEgm','parse','source','result','stopListening','abort','currentRequest','sendRequest','message-metadata','isStopped','setConversationTitle','textDelta','reasoningFinished','conversation-title','stop','1950qqhWCk','toolName','_handleToolNotificationData','956518MNSkzt','replies','text-delta','actionCallId','event','interactionCreated','content','delegate','error','notification','51624kYrSwU','getStream','resetReasoningState','callId','_isWebSearching','abortController','webSearchStarted','mcp-tool-result','getReply','attributes','isDestroyed','forEach','4671058Xacubb','start','connector','text','_handleToolResultData','getDocumentContext','appendContent','modification-delta','replyChangeGroupStateUpdated','length','51458pyYBcm','40041ZtUulV','_finalizeInteraction','find','webSearchFinished','interactionStarted'];_0x4d91=function(){return _0x2a95c9;};return _0x4d91();}export class AIInteraction extends _0x4829ac(){['id'];[_0x4a0659(0x1df)]=[];[_0x4a0659(0x221)];[_0x4a0659(0x222)];[_0x4a0659(0x1e1)];[_0x4a0659(0x22c)];[_0x4a0659(0x1f6)];[_0x4a0659(0x22f)]=!0x1;[_0x4a0659(0x1f2)]=!0x1;[_0x4a0659(0x217)];[_0x4a0659(0x212)]=!0x1;[_0x4a0659(0x1ec)]=!0x1;constructor({connector:_0x335199,editor:_0x5b2e0b}){const _0x1fd9da=_0x4a0659;super(),this['id']=_0x105b88(),this[_0x1fd9da(0x1f6)]=_0x335199,this[_0x1fd9da(0x22f)]=!0x0,this[_0x1fd9da(0x217)]=_0x5b2e0b;}async[_0x4a0659(0x1f5)](){const _0x397b18=_0x4a0659,_0x2201be=[];let _0x55b726,_0x30871e,_0x4233f0;this[_0x397b18(0x22f)]=!0x1;try{this[_0x397b18(0x22c)]=await this[_0x397b18(0x22d)](),this[_0x397b18(0x214)](_0x397b18(0x203),this);const _0x4c99b3=await this[_0x397b18(0x22c)][_0x397b18(0x1e9)]();for await(const _0x1d226d of _0x4c99b3){if(this[_0x397b18(0x22f)])return;if(_0x397b18(0x1e6)==_0x1d226d[_0x397b18(0x1e2)])return void this[_0x397b18(0x214)](_0x397b18(0x1e6),{'error':new _0x2fa028(_0x397b18(0x206),this)});switch(_0x1d226d[_0x397b18(0x1e2)]){case _0x397b18(0x22e):this[_0x397b18(0x222)]=_0x1d226d[_0x397b18(0x20e)][_0x397b18(0x222)];break;case _0x397b18(0x205):this[_0x397b18(0x1e1)]=_0x1d226d[_0x397b18(0x20e)][_0x397b18(0x1eb)];break;case _0x397b18(0x233):this[_0x397b18(0x230)](_0x1d226d[_0x397b18(0x20e)][_0x397b18(0x21e)],!0x0);break;case _0x397b18(0x228):_0x2201be[_0x397b18(0x21c)](_0x1d226d[_0x397b18(0x20e)][_0x397b18(0x228)]);break;case _0x397b18(0x224):this[_0x397b18(0x1ec)]||(this[_0x397b18(0x1ec)]=!0x0,this[_0x397b18(0x214)](_0x397b18(0x1ee),this));break;case _0x397b18(0x21a):this[_0x397b18(0x212)]||(this[_0x397b18(0x212)]=!0x0,this[_0x397b18(0x214)](_0x397b18(0x215),this));break;case _0x397b18(0x1fb):case _0x397b18(0x1e0):this[_0x397b18(0x1ea)](),this[_0x397b18(0x213)](),_0x55b726=_0x397b18(0x1fb)==_0x1d226d[_0x397b18(0x1e2)]?_0x397b18(0x204):_0x397b18(0x1f7),_0x30871e=_0x397b18(0x1fb)==_0x1d226d[_0x397b18(0x1e2)]?_0x1d226d[_0x397b18(0x20e)]['id']:void 0x0,this[_0x397b18(0x221)]&&this[_0x397b18(0x221)][_0x397b18(0x20d)]!=_0x55b726&&(this[_0x397b18(0x221)][_0x397b18(0x209)](),this[_0x397b18(0x221)]=void 0x0),this[_0x397b18(0x221)]||(this[_0x397b18(0x221)]=this[_0x397b18(0x21f)]({'type':_0x55b726,'interactionId':this['id'],'id':_0x30871e}),_0x397b18(0x204)==_0x55b726&&(this[_0x397b18(0x221)][_0x397b18(0x218)]=_0x2201be[_0x397b18(0x219)](0x0))),this[_0x397b18(0x221)][_0x397b18(0x1fa)](_0x1d226d[_0x397b18(0x20e)][_0x397b18(0x231)]);break;case _0x397b18(0x1ef):_0x4233f0=JSON[_0x397b18(0x227)](_0x1d226d[_0x397b18(0x20e)][_0x397b18(0x229)]),this[_0x397b18(0x1f8)]({'toolName':_0x1d226d[_0x397b18(0x20e)][_0x397b18(0x1dc)],'data':_0x4233f0[_0x397b18(0x20e)],'attributes':_0x4233f0[_0x397b18(0x1f1)]});break;case _0x397b18(0x216):this[_0x397b18(0x1dd)]({'toolName':_0x1d226d[_0x397b18(0x20e)][_0x397b18(0x1dc)],'data':_0x1d226d[_0x397b18(0x20e)][_0x397b18(0x20e)]});}}}finally{this[_0x397b18(0x22f)]||(this[_0x397b18(0x221)]&&_0x2201be[_0x397b18(0x1fd)]>0x0&&(this[_0x397b18(0x221)][_0x397b18(0x218)]=_0x2201be[_0x397b18(0x219)](0x0)),this[_0x397b18(0x200)](),this[_0x397b18(0x214)](_0x397b18(0x20c),this));}}[_0x4a0659(0x234)](){const _0x168271=_0x4a0659;this[_0x168271(0x22f)]||(this[_0x168271(0x200)](),this[_0x168271(0x214)](_0x168271(0x210),this));}[_0x4a0659(0x1f0)](_0xc3fb92){const _0x1e48e4=_0x4a0659;return this[_0x1e48e4(0x1df)][_0x1e48e4(0x201)](_0x2e9bcf=>_0x2e9bcf['id']===_0xc3fb92);}[_0x4a0659(0x208)](){const _0x3e85da=_0x4a0659;this[_0x3e85da(0x1f2)]||(this[_0x3e85da(0x234)](),this[_0x3e85da(0x1df)][_0x3e85da(0x1f3)](_0x28cc50=>_0x28cc50[_0x3e85da(0x208)]()),this[_0x3e85da(0x1df)]=[],this[_0x3e85da(0x1f2)]=!0x0,this[_0x3e85da(0x214)](_0x3e85da(0x223),this),this[_0x3e85da(0x22a)]());}[_0x4a0659(0x21f)](_0x35abaa){const _0x25e419=_0x4a0659,_0x569839=new _0x4d698f({'editor':this[_0x25e419(0x217)],'documentContextContent':this[_0x25e419(0x1f9)]()?.[_0x25e419(0x1e4)],..._0x35abaa});return this[_0x25e419(0x1df)][_0x25e419(0x21c)](_0x569839),_0x569839[_0x25e419(0x1e5)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x25e419(0x214)](_0x25e419(0x225),_0x569839),_0x569839;}[_0x4a0659(0x230)](_0xbbd80a,_0x20592e=!0x1){const _0x5e5165=_0x4a0659;this[_0x5e5165(0x214)](_0x5e5165(0x230),_0xbbd80a,_0x20592e);}[_0x4a0659(0x213)](){const _0x1f9c56=_0x4a0659;this[_0x1f9c56(0x1ec)]&&(this[_0x1f9c56(0x1ec)]=!0x1,this[_0x1f9c56(0x214)](_0x1f9c56(0x202),this));}[_0x4a0659(0x1ea)](){const _0x32f758=_0x4a0659;this[_0x32f758(0x212)]&&(this[_0x32f758(0x212)]=!0x1,this[_0x32f758(0x214)](_0x32f758(0x232),this));}[_0x4a0659(0x1f8)](_0x35aaec){const _0x51e5b8=_0x4a0659;this[_0x51e5b8(0x214)](_0x51e5b8(0x21d),{'type':_0x51e5b8(0x229),'toolName':_0x35aaec[_0x51e5b8(0x1dc)],'data':structuredClone(_0x35aaec[_0x51e5b8(0x20e)]||{}),'attributes':structuredClone(_0x35aaec[_0x51e5b8(0x1f1)]||{})},this);}[_0x4a0659(0x1dd)](_0x2a81a1){const _0x4b5704=_0x4a0659;this[_0x4b5704(0x214)](_0x4b5704(0x21d),{'type':_0x4b5704(0x1e7),'toolName':_0x2a81a1[_0x4b5704(0x1dc)],'data':structuredClone(_0x2a81a1[_0x4b5704(0x20e)])},this);}[_0x4a0659(0x200)](){const _0x44663d=_0x4a0659;this[_0x44663d(0x22f)]=!0x0,this[_0x44663d(0x22c)]&&this[_0x44663d(0x22c)][_0x44663d(0x1ed)][_0x44663d(0x22b)](),this[_0x44663d(0x221)]&&this[_0x44663d(0x221)][_0x44663d(0x209)](),this[_0x44663d(0x22c)]=this[_0x44663d(0x221)]=void 0x0;}}
23
+ const _0xf236e7=_0x188f;(function(_0x4b1e76,_0x317028){const _0x5133fd=_0x188f,_0x55f324=_0x4b1e76();while(!![]){try{const _0x3ba8f9=parseInt(_0x5133fd(0x107))/0x1*(-parseInt(_0x5133fd(0x13a))/0x2)+parseInt(_0x5133fd(0x11d))/0x3*(-parseInt(_0x5133fd(0xfb))/0x4)+-parseInt(_0x5133fd(0x12e))/0x5+-parseInt(_0x5133fd(0x112))/0x6*(parseInt(_0x5133fd(0x133))/0x7)+-parseInt(_0x5133fd(0x113))/0x8*(-parseInt(_0x5133fd(0x12a))/0x9)+-parseInt(_0x5133fd(0x144))/0xa+parseInt(_0x5133fd(0x129))/0xb*(parseInt(_0x5133fd(0x124))/0xc);if(_0x3ba8f9===_0x317028)break;else _0x55f324['push'](_0x55f324['shift']());}catch(_0x16f00b){_0x55f324['push'](_0x55f324['shift']());}}}(_0xe107,0x73a75));function _0xe107(){const _0x5885fe=['51730JHUelx','reasoning','notification','delegate','stop','sendRequest','reasoningStarted','1319156qFUhQv','interactionCreated','toolDataReceived','appendContent','messageId','mcp-tool-notification','createReply','start','interactionStopped','_finalizeInteraction','1995650ZJoITF','fire','splice','attributes','error','event','source','textDelta','text','conversationTitle','interactionStarted','find','getStream','replyChangeGroupStateUpdated','modification-delta','webSearchStarted','1466508iwlGSo','_isReasoning','isDestroyed','data','destroy','toolName','ai-chat-interaction-error','length','editor','result','actionCallId','type','1PEYpUm','modification','setConversationTitle','sources','reasoningFinished','_isWebSearching','message-metadata','abortController','currentReply','abort','replyContentUpdated','228dzvWqj','24iQVjyl','done','replies','push','interactionFinished','web-search','callId','interactionDestroyed','currentRequest','mcp-tool-result','6zbPBSH','action-metadata','replyCreated','conversation-title','webSearchFinished','text-delta','resetReasoningState','60888cENJFJ','content','resetWebSearchState','stopListening','_handleToolResultData','5522guRuyN','621396uSwcJF','getDocumentContext','isStopped','getReply','2036730YbXiDX','_handleToolNotificationData','forEach','connector','parse'];_0xe107=function(){return _0x5885fe;};return _0xe107();}import{CKEditorError as _0x30f880,EmitterMixin as _0xffb956,uid as _0x680c2e}from'ckeditor5/src/utils.js';import{AIReply as _0x155f85}from'./aireply.js';function _0x188f(_0x36b1c0,_0x2c4af5){const _0xe10758=_0xe107();return _0x188f=function(_0x188f44,_0x1eaf23){_0x188f44=_0x188f44-0xf2;let _0x1963c0=_0xe10758[_0x188f44];return _0x1963c0;},_0x188f(_0x36b1c0,_0x2c4af5);}export const AI_MODEL_EVENT_NAMES=[_0xf236e7(0x13b),_0xf236e7(0xf5),_0xf236e7(0x142),_0xf236e7(0x117),_0xf236e7(0x11a),_0xf236e7(0x11f),_0xf236e7(0x111),_0xf236e7(0xf8),_0xf236e7(0x109),_0xf236e7(0xfa),_0xf236e7(0x121),_0xf236e7(0x139),_0xf236e7(0x10b),_0xf236e7(0x13c),_0xf236e7(0x148)];export class AIInteraction extends _0xffb956(){['id'];[_0xf236e7(0x115)]=[];[_0xf236e7(0x10f)];[_0xf236e7(0x13e)];[_0xf236e7(0x105)];[_0xf236e7(0x11b)];[_0xf236e7(0x131)];[_0xf236e7(0x12c)]=!0x1;[_0xf236e7(0xfd)]=!0x1;[_0xf236e7(0x103)];[_0xf236e7(0xfc)]=!0x1;[_0xf236e7(0x10c)]=!0x1;constructor({connector:_0x4d481e,editor:_0x5713ea}){const _0x2d38e1=_0xf236e7;super(),this['id']=_0x680c2e(),this[_0x2d38e1(0x131)]=_0x4d481e,this[_0x2d38e1(0x12c)]=!0x0,this[_0x2d38e1(0x103)]=_0x5713ea;}async[_0xf236e7(0x141)](){const _0x27eff5=_0xf236e7,_0x100450=[];let _0x301e59,_0x1b282a,_0x4f575e;this[_0x27eff5(0x12c)]=!0x1;try{this[_0x27eff5(0x11b)]=await this[_0x27eff5(0x138)](),this[_0x27eff5(0x145)](_0x27eff5(0xf5),this);const _0x10c127=await this[_0x27eff5(0x11b)][_0x27eff5(0xf7)]();for await(const _0x3e0c9c of _0x10c127){if(this[_0x27eff5(0x12c)])return;if(_0x27eff5(0x148)==_0x3e0c9c[_0x27eff5(0x149)])return void this[_0x27eff5(0x145)](_0x27eff5(0x148),{'error':new _0x30f880(_0x27eff5(0x101),this)});switch(_0x3e0c9c[_0x27eff5(0x149)]){case _0x27eff5(0x10d):this[_0x27eff5(0x13e)]=_0x3e0c9c[_0x27eff5(0xfe)][_0x27eff5(0x13e)];break;case _0x27eff5(0x11e):this[_0x27eff5(0x105)]=_0x3e0c9c[_0x27eff5(0xfe)][_0x27eff5(0x119)];break;case _0x27eff5(0x120):this[_0x27eff5(0x109)](_0x3e0c9c[_0x27eff5(0xfe)][_0x27eff5(0xf4)],!0x0);break;case _0x27eff5(0x14a):_0x100450[_0x27eff5(0x116)](_0x3e0c9c[_0x27eff5(0xfe)][_0x27eff5(0x14a)]);break;case _0x27eff5(0x118):this[_0x27eff5(0x10c)]||(this[_0x27eff5(0x10c)]=!0x0,this[_0x27eff5(0x145)](_0x27eff5(0xfa),this));break;case _0x27eff5(0x134):this[_0x27eff5(0xfc)]||(this[_0x27eff5(0xfc)]=!0x0,this[_0x27eff5(0x145)](_0x27eff5(0x139),this));break;case _0x27eff5(0xf9):case _0x27eff5(0x122):this[_0x27eff5(0x123)](),this[_0x27eff5(0x126)](),_0x301e59=_0x27eff5(0xf9)==_0x3e0c9c[_0x27eff5(0x149)]?_0x27eff5(0x108):_0x27eff5(0xf3),_0x1b282a=_0x27eff5(0xf9)==_0x3e0c9c[_0x27eff5(0x149)]?_0x3e0c9c[_0x27eff5(0xfe)]['id']:void 0x0,this[_0x27eff5(0x10f)]&&this[_0x27eff5(0x10f)][_0x27eff5(0x106)]!=_0x301e59&&(this[_0x27eff5(0x10f)][_0x27eff5(0x114)](),this[_0x27eff5(0x10f)]=void 0x0),this[_0x27eff5(0x10f)]||(this[_0x27eff5(0x10f)]=this[_0x27eff5(0x140)]({'type':_0x301e59,'interactionId':this['id'],'id':_0x1b282a}),_0x27eff5(0x108)==_0x301e59&&(this[_0x27eff5(0x10f)][_0x27eff5(0x10a)]=_0x100450[_0x27eff5(0x146)](0x0))),this[_0x27eff5(0x10f)][_0x27eff5(0x13d)](_0x3e0c9c[_0x27eff5(0xfe)][_0x27eff5(0xf2)]);break;case _0x27eff5(0x11c):_0x4f575e=JSON[_0x27eff5(0x132)](_0x3e0c9c[_0x27eff5(0xfe)][_0x27eff5(0x104)]),this[_0x27eff5(0x128)]({'toolName':_0x3e0c9c[_0x27eff5(0xfe)][_0x27eff5(0x100)],'data':_0x4f575e[_0x27eff5(0xfe)],'attributes':_0x4f575e[_0x27eff5(0x147)]});break;case _0x27eff5(0x13f):this[_0x27eff5(0x12f)]({'toolName':_0x3e0c9c[_0x27eff5(0xfe)][_0x27eff5(0x100)],'data':_0x3e0c9c[_0x27eff5(0xfe)][_0x27eff5(0xfe)]});}}}finally{this[_0x27eff5(0x12c)]||(this[_0x27eff5(0x10f)]&&_0x100450[_0x27eff5(0x102)]>0x0&&(this[_0x27eff5(0x10f)][_0x27eff5(0x10a)]=_0x100450[_0x27eff5(0x146)](0x0)),this[_0x27eff5(0x143)](),this[_0x27eff5(0x145)](_0x27eff5(0x117),this));}}[_0xf236e7(0x137)](){const _0x41cee3=_0xf236e7;this[_0x41cee3(0x12c)]||(this[_0x41cee3(0x143)](),this[_0x41cee3(0x145)](_0x41cee3(0x142),this));}[_0xf236e7(0x12d)](_0x4a9d49){const _0x2e9790=_0xf236e7;return this[_0x2e9790(0x115)][_0x2e9790(0xf6)](_0x5075a1=>_0x5075a1['id']===_0x4a9d49);}[_0xf236e7(0xff)](){const _0x309fc5=_0xf236e7;this[_0x309fc5(0xfd)]||(this[_0x309fc5(0x137)](),this[_0x309fc5(0x115)][_0x309fc5(0x130)](_0x170b3b=>_0x170b3b[_0x309fc5(0xff)]()),this[_0x309fc5(0x115)]=[],this[_0x309fc5(0xfd)]=!0x0,this[_0x309fc5(0x145)](_0x309fc5(0x11a),this),this[_0x309fc5(0x127)]());}[_0xf236e7(0x140)](_0x2a5b57){const _0x3743d9=_0xf236e7,_0x4389ff=new _0x155f85({'editor':this[_0x3743d9(0x103)],'documentContextContent':this[_0x3743d9(0x12b)]()?.[_0x3743d9(0x125)],..._0x2a5b57});return this[_0x3743d9(0x115)][_0x3743d9(0x116)](_0x4389ff),_0x4389ff[_0x3743d9(0x136)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x3743d9(0x145)](_0x3743d9(0x11f),_0x4389ff),_0x4389ff;}[_0xf236e7(0x109)](_0x5bc0ba,_0x4a56c3=!0x1){const _0x6c6729=_0xf236e7;this[_0x6c6729(0x145)](_0x6c6729(0x109),_0x5bc0ba,_0x4a56c3);}[_0xf236e7(0x126)](){const _0x351c67=_0xf236e7;this[_0x351c67(0x10c)]&&(this[_0x351c67(0x10c)]=!0x1,this[_0x351c67(0x145)](_0x351c67(0x121),this));}[_0xf236e7(0x123)](){const _0x45938d=_0xf236e7;this[_0x45938d(0xfc)]&&(this[_0x45938d(0xfc)]=!0x1,this[_0x45938d(0x145)](_0x45938d(0x10b),this));}[_0xf236e7(0x128)](_0x359648){const _0x18fb41=_0xf236e7;this[_0x18fb41(0x145)](_0x18fb41(0x13c),{'type':_0x18fb41(0x104),'toolName':_0x359648[_0x18fb41(0x100)],'data':structuredClone(_0x359648[_0x18fb41(0xfe)]||{}),'attributes':structuredClone(_0x359648[_0x18fb41(0x147)]||{})},this);}[_0xf236e7(0x12f)](_0x2c3dce){const _0x2c9639=_0xf236e7;this[_0x2c9639(0x145)](_0x2c9639(0x13c),{'type':_0x2c9639(0x135),'toolName':_0x2c3dce[_0x2c9639(0x100)],'data':structuredClone(_0x2c3dce[_0x2c9639(0xfe)])},this);}[_0xf236e7(0x143)](){const _0x2c2b75=_0xf236e7;this[_0x2c2b75(0x12c)]=!0x0,this[_0x2c2b75(0x11b)]&&this[_0x2c2b75(0x11b)][_0x2c2b75(0x10e)][_0x2c2b75(0x110)](),this[_0x2c2b75(0x10f)]&&this[_0x2c2b75(0x10f)][_0x2c2b75(0x114)](),this[_0x2c2b75(0x11b)]=this[_0x2c2b75(0x10f)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2fdc87=_0x4bc4;(function(_0x41e002,_0x5a0336){const _0x34166b=_0x4bc4,_0x419aff=_0x41e002();while(!![]){try{const _0x42f7cd=-parseInt(_0x34166b(0xa6))/0x1+parseInt(_0x34166b(0x81))/0x2+parseInt(_0x34166b(0x8d))/0x3+parseInt(_0x34166b(0x98))/0x4*(parseInt(_0x34166b(0xa0))/0x5)+parseInt(_0x34166b(0x84))/0x6*(-parseInt(_0x34166b(0xa8))/0x7)+parseInt(_0x34166b(0x79))/0x8+-parseInt(_0x34166b(0x91))/0x9;if(_0x42f7cd===_0x5a0336)break;else _0x419aff['push'](_0x419aff['shift']());}catch(_0x560905){_0x419aff['push'](_0x419aff['shift']());}}}(_0x4e89,0x70fdb));function _0x4bc4(_0x2fc399,_0x2fc51a){const _0x4e8994=_0x4e89();return _0x4bc4=function(_0x4bc420,_0x2f9656){_0x4bc420=_0x4bc420-0x76;let _0x209819=_0x4e8994[_0x4bc420];return _0x209819;},_0x4bc4(_0x2fc399,_0x2fc51a);}import{EmitterMixin as _0x265342,logWarning as _0xad1fa7,logError as _0x1aa353}from'ckeditor5/src/utils.js';import{getTranslation as _0x27f0d3}from'../utils/common-translations.js';export class AIModels extends _0x265342(){[_0x2fdc87(0x92)];[_0x2fdc87(0x9a)];[_0x2fdc87(0x7d)];[_0x2fdc87(0x78)]=[];[_0x2fdc87(0x9d)]=null;constructor({connector:_0x3b5604,config:_0x1ae6e8,locale:_0x3c1fcb}){const _0x2fbf27=_0x2fdc87;super(),this[_0x2fbf27(0x92)]=_0x3b5604,this[_0x2fbf27(0x9a)]=_0x1ae6e8,this[_0x2fbf27(0x7d)]=_0x3c1fcb;}get[_0x2fdc87(0x96)](){const _0xf7bdad=_0x2fdc87;return this[_0xf7bdad(0x9a)]?.[_0xf7bdad(0xa4)];}get[_0x2fdc87(0x87)](){const _0x3e302c=_0x2fdc87;return this[_0x3e302c(0x9a)]?.[_0x3e302c(0x90)];}async[_0x2fdc87(0x7b)](){const _0x1ddb78=_0x2fdc87;return this[_0x1ddb78(0x9d)]||(this[_0x1ddb78(0x9d)]=this[_0x1ddb78(0xa5)]()),this[_0x1ddb78(0x9d)];}async[_0x2fdc87(0x8c)](){const _0x58bff3=_0x2fdc87,_0x3f3e25=await this[_0x58bff3(0x7b)]();let _0x583363;return _0x583363=this[_0x58bff3(0x96)]?this[_0x58bff3(0x82)](_0x3f3e25,this[_0x58bff3(0x96)]):_0x3f3e25[_0x58bff3(0xa3)](_0x3d718a=>_0x3d718a[_0x58bff3(0x80)]),_0x583363;}async[_0x2fdc87(0x7c)](_0x54116b){const _0x2df27f=_0x2fdc87,_0x5e661a=await this[_0x2df27f(0x7b)]();if(!_0x5e661a[_0x2df27f(0x9f)])return null;if(_0x54116b){const _0x498157=this[_0x2df27f(0xa7)](_0x5e661a,_0x54116b);if(_0x498157)return _0x498157;_0xad1fa7(_0x2df27f(0x85),{'modelId':_0x54116b,'fallBackModelId':this[_0x2df27f(0x87)]});}return this[_0x2df27f(0x8f)]();}async[_0x2fdc87(0x8f)](){const _0x2b6982=_0x2fdc87,_0x521bae=await this[_0x2b6982(0x8c)]();if(!_0x521bae[_0x2b6982(0x9f)])return null;if(this[_0x2b6982(0x87)]){const _0x31f313=this[_0x2b6982(0xa7)](_0x521bae,this[_0x2b6982(0x87)]);if(_0x31f313)return _0x31f313;_0xad1fa7(_0x2b6982(0x93),{'defaultModelId':this[_0x2b6982(0x87)],'fallBackModelId':_0x521bae[0x0]['id']});}return _0x521bae[0x0];}async[_0x2fdc87(0x95)](_0x51c404){const _0x3364e5=_0x2fdc87;return(await this[_0x3364e5(0x8c)]())[_0x3364e5(0x89)](_0x45be95=>_0x45be95[_0x3364e5(0xa1)]===_0x51c404[_0x3364e5(0xa1)]&&_0x45be95[_0x3364e5(0x8b)]===_0x51c404[_0x3364e5(0x8b)]);}async[_0x2fdc87(0xa5)](){const _0x18e822=_0x2fdc87;if(!this[_0x18e822(0x78)][_0x18e822(0x9f)])try{const _0x316577=this[_0x18e822(0x7d)][_0x18e822(0x8e)]||'en',_0x1789ed=this[_0x18e822(0x92)][_0x18e822(0xa2)](_0x316577),_0x36a12d=await _0x1789ed[_0x18e822(0x94)]();this[_0x18e822(0x78)]=_0x36a12d[_0x18e822(0x76)][_0x18e822(0x9c)](_0x45f22f=>Zi(_0x45f22f)?{..._0x45f22f,'name':_0x27f0d3(this[_0x18e822(0x7d)],_0x18e822(0x8a))}:_0x45f22f);}catch(_0x565d6e){throw _0x1aa353(_0x18e822(0x9e),{'error':_0x565d6e}),_0x565d6e;}return[...this[_0x18e822(0x78)]];}[_0x2fdc87(0x82)](_0x2fb8d2,_0x217923){const _0x364f50=_0x2fdc87;let _0x4f88cb;if(_0x217923){_0x4f88cb=[];const _0x646144=new Set(),_0xbd2ef9=_0x364f50(0x7a)==typeof _0x217923?[_0x217923[_0x364f50(0x83)]()]:_0x217923[_0x364f50(0x9c)](_0xe1b0cd=>_0xe1b0cd[_0x364f50(0x83)]());for(const _0x33c2e8 of _0xbd2ef9)for(const _0x1ddd78 of _0x2fb8d2)!_0x646144[_0x364f50(0x99)](_0x1ddd78['id'])&&this[_0x364f50(0x7e)](_0x1ddd78,_0x33c2e8)&&(_0x4f88cb[_0x364f50(0x9b)](_0x1ddd78),_0x646144[_0x364f50(0x88)](_0x1ddd78['id']));}else _0x4f88cb=_0x2fb8d2;return _0x4f88cb;}[_0x2fdc87(0x7e)](_0x4c80d6,_0xaa3223){const _0x4817d6=_0x2fdc87,_0x248fe8=_0x4c80d6['id'][_0x4817d6(0x83)](),_0x4a3a38=_0x4c80d6[_0x4817d6(0xa1)][_0x4817d6(0x83)](),_0xbab8a7=_0x4c80d6[_0x4817d6(0x8b)][_0x4817d6(0x83)]();return _0x248fe8===_0xaa3223||_0x4a3a38===_0xaa3223||Zi(_0x4c80d6)&&_0x4817d6(0x97)===_0xaa3223||_0xbab8a7===_0xaa3223||_0x248fe8[_0x4817d6(0x7f)](_0xaa3223);}[_0x2fdc87(0xa7)](_0x3f94d4,_0x5f2cd6){const _0x4d5cae=_0x2fdc87;return _0x3f94d4[_0x4d5cae(0x86)](_0x2adc85=>Zi(_0x2adc85)&&_0x4d5cae(0x97)===_0x5f2cd6?_0x2adc85:_0x2adc85['id']===_0x5f2cd6)||null;}}function Zi(_0x1ebdaa){const _0x27215e=_0x2fdc87;return _0x1ebdaa['id'][_0x27215e(0x7f)](_0x27215e(0x77));}function _0x4e89(){const _0x1e19c6=['ai-chat-model-id-unrecognized','find','_defaultModelId','add','some','AI_MODEL_NAME_AUTO','provider','getAvailableModels','2717382AjhDGp','uiLanguage','getDefault','defaultModelId','16696224hOgMVt','_connector','ai-chat-default-model-id-unrecognized','list','isAvailable','_availableModels','auto','14252VbKrnG','has','_config','push','map','_modelsRequest','ai-models-unable-to-retrieve','length','835CknXSQ','name','getModels','filter','displayedModels','_retrieveModels','56755kpjGLh','_getModelById','77cZvQOM','items','agent','_modelList','6687024QKrFZC','string','getAll','getModel','_locale','_isMatchingFilter','startsWith','recommended','191012LrNJZa','_filterModels','toLocaleLowerCase','31362GYeopi'];_0x4e89=function(){return _0x1e19c6;};return _0x4e89();}
23
+ const _0x4cc1bb=_0x56c4;function _0x56c4(_0x357cb7,_0x1d1fe7){const _0x1673ac=_0x1673();return _0x56c4=function(_0x56c43e,_0x254a97){_0x56c43e=_0x56c43e-0xd5;let _0x39d17b=_0x1673ac[_0x56c43e];return _0x39d17b;},_0x56c4(_0x357cb7,_0x1d1fe7);}(function(_0x555380,_0x4ec892){const _0x38ec5d=_0x56c4,_0x5e83da=_0x555380();while(!![]){try{const _0x13c7ab=-parseInt(_0x38ec5d(0xe7))/0x1*(parseInt(_0x38ec5d(0xe6))/0x2)+parseInt(_0x38ec5d(0x104))/0x3*(-parseInt(_0x38ec5d(0xf1))/0x4)+-parseInt(_0x38ec5d(0xd5))/0x5*(parseInt(_0x38ec5d(0xd8))/0x6)+parseInt(_0x38ec5d(0xe9))/0x7+parseInt(_0x38ec5d(0xff))/0x8+-parseInt(_0x38ec5d(0xec))/0x9+parseInt(_0x38ec5d(0xdb))/0xa;if(_0x13c7ab===_0x4ec892)break;else _0x5e83da['push'](_0x5e83da['shift']());}catch(_0x2e3a4d){_0x5e83da['push'](_0x5e83da['shift']());}}}(_0x1673,0xcd567));import{EmitterMixin as _0x896269,logWarning as _0x1203b9,logError as _0x2ed91d}from'ckeditor5/src/utils.js';import{getTranslation as _0x2f23ee}from'../utils/common-translations.js';function _0x1673(){const _0x2b5032=['getAvailableModels','items','length','_locale','77944ybDdEF','has','some','provider','add','toLocaleLowerCase','isAvailable','string','list','defaultModelId','_filterModels','map','recommended','_defaultModelId','6418528LsKTID','uiLanguage','_modelList','_availableModels','auto','21FreaER','_modelsRequest','push','getAll','AI_MODEL_NAME_AUTO','5448495xsciYC','getDefault','find','6wgduPS','_retrieveModels','name','24342420UkEsZm','getModel','_config','agent','startsWith','getModels','displayedModels','_connector','_isMatchingFilter','filter','_getModelById','1140124uTTUXB','2gAxSla','ai-models-unable-to-retrieve','5145462YBqQey','ai-chat-default-model-id-unrecognized','ai-chat-model-id-unrecognized','6879024MTETHy'];_0x1673=function(){return _0x2b5032;};return _0x1673();}export class AIModels extends _0x896269(){[_0x4cc1bb(0xe2)];[_0x4cc1bb(0xdd)];[_0x4cc1bb(0xf0)];[_0x4cc1bb(0x101)]=[];[_0x4cc1bb(0x105)]=null;constructor({connector:_0x34bf48,config:_0x361320,locale:_0x2a9b57}){const _0x1870f9=_0x4cc1bb;super(),this[_0x1870f9(0xe2)]=_0x34bf48,this[_0x1870f9(0xdd)]=_0x361320,this[_0x1870f9(0xf0)]=_0x2a9b57;}get[_0x4cc1bb(0x102)](){const _0x23e87d=_0x4cc1bb;return this[_0x23e87d(0xdd)]?.[_0x23e87d(0xe1)];}get[_0x4cc1bb(0xfe)](){const _0x1e9e1e=_0x4cc1bb;return this[_0x1e9e1e(0xdd)]?.[_0x1e9e1e(0xfa)];}async[_0x4cc1bb(0x107)](){const _0x3e0fd4=_0x4cc1bb;return this[_0x3e0fd4(0x105)]||(this[_0x3e0fd4(0x105)]=this[_0x3e0fd4(0xd9)]()),this[_0x3e0fd4(0x105)];}async[_0x4cc1bb(0xed)](){const _0x1eeb3f=_0x4cc1bb,_0x4358ef=await this[_0x1eeb3f(0x107)]();let _0x335ad1;return _0x335ad1=this[_0x1eeb3f(0x102)]?this[_0x1eeb3f(0xfb)](_0x4358ef,this[_0x1eeb3f(0x102)]):_0x4358ef[_0x1eeb3f(0xe4)](_0x1001dd=>_0x1001dd[_0x1eeb3f(0xfd)]),_0x335ad1;}async[_0x4cc1bb(0xdc)](_0x1ba5f8){const _0x22c3cb=_0x4cc1bb,_0x4957c0=await this[_0x22c3cb(0x107)]();if(!_0x4957c0[_0x22c3cb(0xef)])return null;if(_0x1ba5f8){const _0x795912=this[_0x22c3cb(0xe5)](_0x4957c0,_0x1ba5f8);if(_0x795912)return _0x795912;_0x1203b9(_0x22c3cb(0xeb),{'modelId':_0x1ba5f8,'fallBackModelId':this[_0x22c3cb(0xfe)]});}return this[_0x22c3cb(0xd6)]();}async[_0x4cc1bb(0xd6)](){const _0x3f80f2=_0x4cc1bb,_0x6427e1=await this[_0x3f80f2(0xed)]();if(!_0x6427e1[_0x3f80f2(0xef)])return null;if(this[_0x3f80f2(0xfe)]){const _0x270e54=this[_0x3f80f2(0xe5)](_0x6427e1,this[_0x3f80f2(0xfe)]);if(_0x270e54)return _0x270e54;_0x1203b9(_0x3f80f2(0xea),{'defaultModelId':this[_0x3f80f2(0xfe)],'fallBackModelId':_0x6427e1[0x0]['id']});}return _0x6427e1[0x0];}async[_0x4cc1bb(0xf7)](_0x1a32c0){const _0x3eb967=_0x4cc1bb;return(await this[_0x3eb967(0xed)]())[_0x3eb967(0xf3)](_0x2f797a=>_0x2f797a[_0x3eb967(0xda)]===_0x1a32c0[_0x3eb967(0xda)]&&_0x2f797a[_0x3eb967(0xf4)]===_0x1a32c0[_0x3eb967(0xf4)]);}async[_0x4cc1bb(0xd9)](){const _0x4175d1=_0x4cc1bb;if(!this[_0x4175d1(0x101)][_0x4175d1(0xef)])try{const _0x3691d0=this[_0x4175d1(0xf0)][_0x4175d1(0x100)]||'en',_0x298a77=this[_0x4175d1(0xe2)][_0x4175d1(0xe0)](_0x3691d0),_0x1971ae=await _0x298a77[_0x4175d1(0xf9)]();this[_0x4175d1(0x101)]=_0x1971ae[_0x4175d1(0xee)][_0x4175d1(0xfc)](_0x132ed2=>Bi(_0x132ed2)?{..._0x132ed2,'name':_0x2f23ee(this[_0x4175d1(0xf0)],_0x4175d1(0x108))}:_0x132ed2);}catch(_0x4cf86d){throw _0x2ed91d(_0x4175d1(0xe8),{'error':_0x4cf86d}),_0x4cf86d;}return[...this[_0x4175d1(0x101)]];}[_0x4cc1bb(0xfb)](_0x354e12,_0x4901d6){const _0x58abe2=_0x4cc1bb;let _0x4c9ba1;if(_0x4901d6){_0x4c9ba1=[];const _0x5a4e13=new Set(),_0x32c446=_0x58abe2(0xf8)==typeof _0x4901d6?[_0x4901d6[_0x58abe2(0xf6)]()]:_0x4901d6[_0x58abe2(0xfc)](_0x5b62d8=>_0x5b62d8[_0x58abe2(0xf6)]());for(const _0x55d4d8 of _0x32c446)for(const _0x5e52ab of _0x354e12)!_0x5a4e13[_0x58abe2(0xf2)](_0x5e52ab['id'])&&this[_0x58abe2(0xe3)](_0x5e52ab,_0x55d4d8)&&(_0x4c9ba1[_0x58abe2(0x106)](_0x5e52ab),_0x5a4e13[_0x58abe2(0xf5)](_0x5e52ab['id']));}else _0x4c9ba1=_0x354e12;return _0x4c9ba1;}[_0x4cc1bb(0xe3)](_0x5579eb,_0x2e88f9){const _0x19acf5=_0x4cc1bb,_0x40b1c5=_0x5579eb['id'][_0x19acf5(0xf6)](),_0x477caf=_0x5579eb[_0x19acf5(0xda)][_0x19acf5(0xf6)](),_0x56a184=_0x5579eb[_0x19acf5(0xf4)][_0x19acf5(0xf6)]();return _0x40b1c5===_0x2e88f9||_0x477caf===_0x2e88f9||Bi(_0x5579eb)&&_0x19acf5(0x103)===_0x2e88f9||_0x56a184===_0x2e88f9||_0x40b1c5[_0x19acf5(0xdf)](_0x2e88f9);}[_0x4cc1bb(0xe5)](_0x583c6a,_0x41d4e1){const _0x3c60d4=_0x4cc1bb;return _0x583c6a[_0x3c60d4(0xd7)](_0x1d6998=>Bi(_0x1d6998)&&_0x3c60d4(0x103)===_0x41d4e1?_0x1d6998:_0x1d6998['id']===_0x41d4e1)||null;}}function Bi(_0x48f5f1){const _0x28ab9a=_0x4cc1bb;return _0x48f5f1['id'][_0x28ab9a(0xdf)](_0x28ab9a(0xde));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x48463d=_0x2a8c;function _0x2a8c(_0x4213e5,_0x6febe2){const _0x1f3801=_0x1f38();return _0x2a8c=function(_0x2a8c78,_0x18ec56){_0x2a8c78=_0x2a8c78-0x16c;let _0x595fb9=_0x1f3801[_0x2a8c78];return _0x595fb9;},_0x2a8c(_0x4213e5,_0x6febe2);}(function(_0x24437f,_0x13f9a6){const _0x16e266=_0x2a8c,_0x4376ae=_0x24437f();while(!![]){try{const _0x51da6a=-parseInt(_0x16e266(0x195))/0x1*(parseInt(_0x16e266(0x192))/0x2)+-parseInt(_0x16e266(0x185))/0x3+parseInt(_0x16e266(0x1a9))/0x4+-parseInt(_0x16e266(0x190))/0x5*(parseInt(_0x16e266(0x1a5))/0x6)+parseInt(_0x16e266(0x178))/0x7+parseInt(_0x16e266(0x18a))/0x8+-parseInt(_0x16e266(0x187))/0x9*(-parseInt(_0x16e266(0x16c))/0xa);if(_0x51da6a===_0x13f9a6)break;else _0x4376ae['push'](_0x4376ae['shift']());}catch(_0x51f456){_0x4376ae['push'](_0x4376ae['shift']());}}}(_0x1f38,0xebedd));import{CKEditorError as _0x1a22f9,ObservableMixin as _0x3c6b15,uid as _0x376e26}from'ckeditor5/src/utils.js';import{Element as _0x10070c,findAll as _0x65aaa8,getAttribute as _0x3ab0e7,getParents as _0xf487a4,Document as _0x1df52f,parse as _0x4fcffd,Text as _0x3417fb}from'../utils/htmlparser.js';import{AIResponseParser as _0x5c692f}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x3ad48e}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x1c4141}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x355458}from'../utils/common-translations.js';function _0x1f38(){const _0x320748=['1511030AFNxqj','cloneNode','indexOf','modification','pending','includes','withoutDiff','newNodeIds','find','type','span','locale','6420554MZLdCD','aiResponseApplier','sources','documentContextContent','set','state','push','filter','_setCachedContentParts','aiResponseParser','withDiff','node','index','345315KpOehy','every','45wAoEhA','getContentParts','_getCachedContentParts','11256128mXQaQy','destroy','removed','unshift','updateChangeGroups','setChangeGroupState','1093790NVzSjG','removedNodeIds','24082sNaSHM','_getDifferentChangeGroups','splice','43dguyui','previousSibling','parsedContent','parseAndNormalizeHTML','change:content','modifiedNodeIds','length','appendContent','modified','merge','nextSibling','replyContentUpdated','new','color:\x20#808080;\x20font-style:\x20italic','ai-get-editor-from-context-no-editor','onContentChange','42ZtDCqL','areActionsDisabled','forEach','changes','203144iXSvjb','AI_SUGGESTION_CONTENT_PART_REMOVED','fire','ai-reply-get-content-parts-group-not-found','editor','done','parsedMergedContent','stopListening','isDone','changeGroups','map','data-unstable','interactionId','context','replyChangeGroupStateUpdated','data-id','content','convertMarkdownToHTML','cachedSuggestionContentParts'];_0x1f38=function(){return _0x320748;};return _0x1f38();}import{cloneDeep as _0x5896f8}from'es-toolkit';export class AIReply extends _0x3c6b15(){['id'];[_0x48463d(0x1b5)];[_0x48463d(0x175)];[_0x48463d(0x17a)]=[];[_0x48463d(0x197)]=new _0x1df52f([]);[_0x48463d(0x1af)]=new _0x1df52f([]);[_0x48463d(0x1b2)]=[];[_0x48463d(0x1a6)]=!0x1;[_0x48463d(0x17b)];[_0x48463d(0x181)];[_0x48463d(0x179)];[_0x48463d(0x1ad)];[_0x48463d(0x1bb)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x1220f1,content:_0x43d5ed='',isDone:_0x54c2ed=!0x1,interactionId:_0x532c48,areActionsDisabled:_0xa22bf9,documentContextContent:_0x55f29f,editor:_0x38f46b,id:_0x247173}){const _0x366b36=_0x48463d;super(),this['id']=_0x247173||_0x376e26(),this[_0x366b36(0x1b5)]=_0x532c48,this[_0x366b36(0x175)]=_0x1220f1,this[_0x366b36(0x1a6)]=!!_0xa22bf9,this[_0x366b36(0x1ad)]=_0x38f46b,this[_0x366b36(0x181)]=new _0x5c692f(),this[_0x366b36(0x179)]=new _0x3ad48e(),this[_0x366b36(0x17b)]=_0x4fcffd(_0x55f29f||''),this[_0x366b36(0x17c)](_0x366b36(0x1b1),_0x54c2ed),this['on'](_0x366b36(0x199),()=>{const _0x21575b=_0x366b36;this[_0x21575b(0x1a4)]();}),this[_0x366b36(0x17c)](_0x366b36(0x1b9),_0x43d5ed);}[_0x48463d(0x19c)](_0x1ca50d){const _0x2c0981=_0x48463d;this[_0x2c0981(0x17c)](_0x2c0981(0x1b9),this[_0x2c0981(0x1b9)]+_0x1ca50d);}[_0x48463d(0x1ae)](){const _0x197b9a=_0x48463d;this[_0x197b9a(0x1b1)]||(this[_0x197b9a(0x17c)](_0x197b9a(0x1b1),!0x0),this[_0x197b9a(0x1a4)]());}[_0x48463d(0x18b)](){const _0x164e24=_0x48463d;this[_0x164e24(0x1b0)]();}[_0x48463d(0x18f)](_0x89379b,_0x1b2ecb){const _0x17c1db=_0x48463d;this[_0x17c1db(0x1b2)][_0x89379b][_0x17c1db(0x17d)]=_0x1b2ecb,this[_0x17c1db(0x1ab)](_0x17c1db(0x1b7),{'reply':this,'index':_0x89379b,'state':_0x1b2ecb});}[_0x48463d(0x188)]({showDiff:_0x415e60,groupIndex:_0x232f61}){const _0x5089e2=_0x48463d;if(!this[_0x5089e2(0x1ad)])throw new _0x1a22f9(_0x5089e2(0x1a3),null,{'aiReply':this});const _0x24fb3e=this[_0x5089e2(0x189)](_0x415e60,_0x232f61);if(_0x24fb3e)return _0x24fb3e;let _0x2344d2=[];if(void 0x0===_0x232f61)_0x2344d2=this[_0x5089e2(0x1b2)];else{const _0x1124a3=this[_0x5089e2(0x1b2)][_0x5089e2(0x174)](({index:_0x5c8d1f})=>_0x5c8d1f===_0x232f61);if(!_0x1124a3)throw new _0x1a22f9(_0x5089e2(0x1ac),null,{'aiReply':this,'groupIndex':_0x232f61});_0x2344d2=[_0x1124a3];}const _0x1a0ad7=_0x1c4141({'editor':this[_0x5089e2(0x1ad)],'showDiff':_0x415e60,'changeGroups':_0x2344d2,'documentContextContent':this[_0x5089e2(0x17b)]});return this[_0x5089e2(0x180)](_0x415e60,_0x1a0ad7),_0x1a0ad7;}[_0x48463d(0x189)](_0x3564c5,_0x3ea1d9){const _0x362880=_0x48463d,_0x349dde=_0x3564c5?_0x362880(0x182):_0x362880(0x172);if(!this[_0x362880(0x1bb)][_0x349dde][_0x362880(0x19b)])return null;const _0x5def26=this[_0x362880(0x1bb)][_0x349dde];if(void 0x0===_0x3ea1d9)return _0x5def26[_0x362880(0x19b)]>0x0&&_0x5def26[_0x362880(0x19b)]!==this[_0x362880(0x1b2)][_0x362880(0x19b)]?(this[_0x362880(0x180)](_0x3564c5,null),null):_0x5896f8(_0x5def26);{const _0x168695=_0x5def26[_0x362880(0x174)](({index:_0x7321e1})=>_0x7321e1===_0x3ea1d9);if(_0x168695)return[_0x5896f8(_0x168695)];}return null;}[_0x48463d(0x180)](_0x52b785,_0x42f5ce){const _0x4cd684=_0x48463d,_0x16ca42=_0x52b785?_0x4cd684(0x182):_0x4cd684(0x172);_0x42f5ce?_0x42f5ce[_0x4cd684(0x1a7)](_0x17ac65=>{const _0x16fcd1=_0x4cd684,_0x368b62=this[_0x16fcd1(0x1bb)][_0x16ca42],_0x5b42fe=_0x368b62[_0x16fcd1(0x174)](({index:_0x2caec8})=>_0x2caec8===_0x17ac65[_0x16fcd1(0x184)]);if(_0x5b42fe){const _0x390ca4=_0x368b62[_0x16fcd1(0x16e)](_0x5b42fe);_0x368b62[_0x16fcd1(0x194)](_0x390ca4,0x1,_0x17ac65);}else _0x368b62[_0x16fcd1(0x17e)](_0x17ac65);}):this[_0x4cd684(0x1bb)][_0x16ca42][_0x4cd684(0x19b)]=0x0;}[_0x48463d(0x1a4)](){const _0x485fae=_0x48463d;if(_0x485fae(0x16f)===this[_0x485fae(0x175)]){this[_0x485fae(0x197)]=this[_0x485fae(0x181)][_0x485fae(0x198)](this[_0x485fae(0x1b9)]);const _0x3d68cb=this[_0x485fae(0x1b2)];this[_0x485fae(0x18e)]();const _0x3b8e35=this[_0x485fae(0x193)](_0x3d68cb,this[_0x485fae(0x1b2)]);(_0x3b8e35[_0x485fae(0x19b)]||this[_0x485fae(0x1b1)])&&(this[_0x485fae(0x1ab)](_0x485fae(0x1a0),this,_0x3b8e35),this[_0x485fae(0x1bb)][_0x485fae(0x182)][_0x485fae(0x19b)]=this[_0x485fae(0x1bb)][_0x485fae(0x172)][_0x485fae(0x19b)]=0x0);}else this[_0x485fae(0x197)]=this[_0x485fae(0x181)][_0x485fae(0x1ba)](this[_0x485fae(0x1b9)]),this[_0x485fae(0x1ab)](_0x485fae(0x1a0),this);}[_0x48463d(0x193)](_0x1b3849,_0x5746de){const _0x11283f=_0x48463d,_0x298c1c=[];for(const _0x2515b3 of _0x5746de){const _0x427f5f=_0x1b3849[_0x2515b3[_0x11283f(0x184)]];_0x427f5f?_0x427f5f[_0x11283f(0x1a8)][_0x11283f(0x19b)]!==_0x2515b3[_0x11283f(0x1a8)][_0x11283f(0x19b)]?_0x298c1c[_0x11283f(0x17e)](_0x2515b3):_0x427f5f[_0x11283f(0x1a8)][_0x11283f(0x1a7)]((_0x3fa935,_0xae8521)=>{const _0x37856e=_0x11283f,_0x39fb3b=_0x2515b3[_0x37856e(0x1a8)][_0xae8521];_0x3fa935['id']!==_0x39fb3b['id']&&_0x298c1c[_0x37856e(0x17e)](_0x2515b3);}):_0x298c1c[_0x11283f(0x17e)](_0x2515b3);}return _0x298c1c;}[_0x48463d(0x18e)](){const _0x29a21c=_0x48463d,_0x435215=new _0x10070c('p',{},[new _0x10070c(_0x29a21c(0x176),{'style':_0x29a21c(0x1a2)},[new _0x3417fb(_0x355458(this[_0x29a21c(0x1ad)][_0x29a21c(0x177)],_0x29a21c(0x1aa)))])]),_0x174cdb=this[_0x29a21c(0x179)][_0x29a21c(0x19e)](this[_0x29a21c(0x197)],this[_0x29a21c(0x17b)][_0x29a21c(0x16d)](!0x0),{'markUnstableElements':!this[_0x29a21c(0x1b1)],'replaceRemovedWith':_0x435215,'cutAfterLastChange':!this[_0x29a21c(0x1b1)]});if(!_0x174cdb[_0x29a21c(0x19a)][_0x29a21c(0x19b)]&&!this[_0x29a21c(0x1b1)])return;this[_0x29a21c(0x1af)]=_0x174cdb[_0x29a21c(0x197)];let _0xfc69ce=[];if(_0x65aaa8(_0x1cf53a=>{const _0x5acecf=_0x29a21c,_0x54a6fd=_0x3ab0e7(_0x1cf53a,_0x5acecf(0x1b8));if(!_0x54a6fd||!_0x2f5aa8(_0x54a6fd))return!0x1;const _0x433748=[_0x1cf53a,..._0xf487a4(_0x1cf53a)]['at'](-0x2);if(_0x1cf53a!=_0x433748){const _0x7566a7=_0x3ab0e7(_0x433748,_0x5acecf(0x1b8));_0x2f5aa8(_0x7566a7)||(_0xfc69ce[_0x5acecf(0x17e)]({'node':_0x433748,'id':_0x7566a7,'type':_0x5acecf(0x19d)}),_0x174cdb[_0x5acecf(0x19a)][_0x5acecf(0x17e)](_0x7566a7));}else _0x174cdb[_0x5acecf(0x19a)][_0x5acecf(0x171)](_0x54a6fd)?_0xfc69ce[_0x5acecf(0x17e)]({'node':_0x1cf53a,'type':_0x5acecf(0x19d),'id':_0x54a6fd}):_0x174cdb[_0x5acecf(0x173)][_0x5acecf(0x171)](_0x54a6fd)?_0xfc69ce[_0x5acecf(0x17e)]({'node':_0x1cf53a,'type':_0x5acecf(0x1a1),'id':_0x54a6fd,'anchorId':_0x3ab0e7(_0x1cf53a[_0x5acecf(0x196)],_0x5acecf(0x1b8))}):_0xfc69ce[_0x5acecf(0x17e)]({'node':_0x1cf53a,'type':_0x5acecf(0x18c),'id':_0x54a6fd});return!0x0;},this[_0x29a21c(0x1af)]),_0xfc69ce=_0xfc69ce[_0x29a21c(0x17f)](({node:_0x5ab08c})=>[..._0xf487a4(_0x5ab08c),_0x5ab08c][_0x29a21c(0x186)](_0x5abb59=>!_0x3ab0e7(_0x5abb59,_0x29a21c(0x1b4)))),0x0==_0xfc69ce[_0x29a21c(0x19b)])return;const _0x545d0f=[[_0xfc69ce[0x0]]];for(let _0x50de2e=0x1;_0x50de2e<_0xfc69ce[_0x29a21c(0x19b)];_0x50de2e++){const _0x2576f5=_0x545d0f[_0x545d0f[_0x29a21c(0x19b)]-0x1],_0x1c0376=_0x2576f5[_0x2576f5[_0x29a21c(0x19b)]-0x1];_0xfc69ce[_0x50de2e][_0x29a21c(0x183)][_0x29a21c(0x196)]==_0x1c0376[_0x29a21c(0x183)]&&_0x29a21c(0x19d)!=_0xfc69ce[_0x50de2e][_0x29a21c(0x175)]&&_0x29a21c(0x19d)!=_0x1c0376[_0x29a21c(0x175)]?_0x2576f5[_0x29a21c(0x17e)](_0xfc69ce[_0x50de2e]):_0x545d0f[_0x29a21c(0x17e)]([_0xfc69ce[_0x50de2e]]);}for(const _0x2de72b of _0x545d0f){const _0x4e2600=_0x2de72b[0x0],_0x3c31c9=_0x2de72b[_0x2de72b[_0x29a21c(0x19b)]-0x1],_0x2a57a8=_0x3ba893(_0x4e2600[_0x29a21c(0x183)][_0x29a21c(0x196)]);_0x2a57a8&&_0x2de72b[_0x29a21c(0x18d)](_0x2a57a8);const _0x6d1093=_0x3ba893(_0x3c31c9[_0x29a21c(0x183)][_0x29a21c(0x19f)]);_0x6d1093&&_0x2de72b[_0x29a21c(0x17e)](_0x6d1093);}function _0x2f5aa8(_0x35bdc7){const _0x2cb843=_0x29a21c;return _0x174cdb[_0x2cb843(0x19a)][_0x2cb843(0x171)](_0x35bdc7)||_0x174cdb[_0x2cb843(0x173)][_0x2cb843(0x171)](_0x35bdc7)||_0x174cdb[_0x2cb843(0x191)][_0x2cb843(0x171)](_0x35bdc7);}function _0x3ba893(_0x33294c){const _0x354b42=_0x29a21c;if(_0x33294c&&_0x3ab0e7(_0x33294c,_0x354b42(0x1b8))&&!_0x3ab0e7(_0x33294c,_0x354b42(0x1b4))){const _0x5de101=_0x3ab0e7(_0x33294c,_0x354b42(0x1b8));if(!_0x2f5aa8(_0x5de101))return{'node':_0x33294c,'type':_0x354b42(0x1b6),'id':_0x5de101};}return null;}this[_0x29a21c(0x1b2)]=_0x545d0f[_0x29a21c(0x1b3)]((_0x5843f8,_0x23ae77)=>({'changes':_0x5843f8,'state':_0x29a21c(0x170),'index':_0x23ae77}));}}
23
+ function _0x4881(_0x8228cc,_0x3f91ad){const _0x370074=_0x3700();return _0x4881=function(_0x48819a,_0x48f9d9){_0x48819a=_0x48819a-0x1c0;let _0xd20a39=_0x370074[_0x48819a];return _0xd20a39;},_0x4881(_0x8228cc,_0x3f91ad);}const _0x28e6df=_0x4881;(function(_0x252b0d,_0x503d0c){const _0x26aab5=_0x4881,_0x1ce531=_0x252b0d();while(!![]){try{const _0x50da6c=-parseInt(_0x26aab5(0x1c8))/0x1*(-parseInt(_0x26aab5(0x20c))/0x2)+-parseInt(_0x26aab5(0x205))/0x3*(parseInt(_0x26aab5(0x1c2))/0x4)+-parseInt(_0x26aab5(0x1f4))/0x5+-parseInt(_0x26aab5(0x1c3))/0x6*(-parseInt(_0x26aab5(0x1e0))/0x7)+-parseInt(_0x26aab5(0x1d9))/0x8+-parseInt(_0x26aab5(0x1fd))/0x9+-parseInt(_0x26aab5(0x1d7))/0xa*(-parseInt(_0x26aab5(0x1c6))/0xb);if(_0x50da6c===_0x503d0c)break;else _0x1ce531['push'](_0x1ce531['shift']());}catch(_0x48b684){_0x1ce531['push'](_0x1ce531['shift']());}}}(_0x3700,0x2506e));import{CKEditorError as _0xd7dd2d,ObservableMixin as _0x2e75ed,uid as _0xb6a581}from'ckeditor5/src/utils.js';import{Element as _0x41863a,findAll as _0x10d211,getAttribute as _0x3113cb,getParents as _0xc4d3ae,Document as _0x42d12a,parse as _0x56ab3d,Text as _0x53ba6d}from'../utils/htmlparser.js';import{AIResponseParser as _0x34f9a7}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x2186d1}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x38cc3b}from'../utils/getsuggestionpartsfromreply.js';function _0x3700(){const _0x31ab75=['appendContent','set','isDone','12501UuqqBK','span','cachedSuggestionContentParts','editor','map','change:content','data-unstable','setChangeGroupState','21oUdbnd','cloneNode','_setCachedContentParts','forEach','every','ai-reply-get-content-parts-group-not-found','locale','6DeIjxo','push','state','length','splice','getContentParts','stopListening','42220CaMYcR','13842XEUyPB','documentContextContent','removed','3399QyKJbl','find','56951BtShkr','fire','convertMarkdownToHTML','ai-get-editor-from-context-no-editor','withDiff','previousSibling','color:\x20#808080;\x20font-style:\x20italic','areActionsDisabled','changeGroups','interactionId','index','destroy','replyContentUpdated','withoutDiff','replyChangeGroupStateUpdated','15110hVDUbI','_getDifferentChangeGroups','2048328sWzrJt','context','parsedContent','newNodeIds','aiResponseApplier','data-id','node','91qUJtyT','nextSibling','filter','sources','parseAndNormalizeHTML','done','new','_getCachedContentParts','modified','pending','aiResponseParser','content','modifiedNodeIds','includes','AI_SUGGESTION_CONTENT_PART_REMOVED','changes','type','removedNodeIds','modification','onContentChange','923830yLgoID','updateChangeGroups','indexOf','parsedMergedContent','merge','unshift'];_0x3700=function(){return _0x31ab75;};return _0x3700();}import{getTranslation as _0x553a95}from'../utils/common-translations.js';import{cloneDeep as _0x1bfacf}from'es-toolkit';export class AIReply extends _0x2e75ed(){['id'];[_0x28e6df(0x1d1)];[_0x28e6df(0x1f0)];[_0x28e6df(0x1e3)]=[];[_0x28e6df(0x1db)]=new _0x42d12a([]);[_0x28e6df(0x1f7)]=new _0x42d12a([]);[_0x28e6df(0x1d0)]=[];[_0x28e6df(0x1cf)]=!0x1;[_0x28e6df(0x1c4)];[_0x28e6df(0x1ea)];[_0x28e6df(0x1dd)];[_0x28e6df(0x200)];[_0x28e6df(0x1ff)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x4b7e93,content:_0x2d4c1d='',isDone:_0x4b629f=!0x1,interactionId:_0x50f1ee,areActionsDisabled:_0x42147c,documentContextContent:_0x2268cf,editor:_0x3830c3,id:_0x5b096e}){const _0x52cb56=_0x28e6df;super(),this['id']=_0x5b096e||_0xb6a581(),this[_0x52cb56(0x1d1)]=_0x50f1ee,this[_0x52cb56(0x1f0)]=_0x4b7e93,this[_0x52cb56(0x1cf)]=!!_0x42147c,this[_0x52cb56(0x200)]=_0x3830c3,this[_0x52cb56(0x1ea)]=new _0x34f9a7(),this[_0x52cb56(0x1dd)]=new _0x2186d1(),this[_0x52cb56(0x1c4)]=_0x56ab3d(_0x2268cf||''),this[_0x52cb56(0x1fb)](_0x52cb56(0x1fc),_0x4b629f),this['on'](_0x52cb56(0x202),()=>{const _0x2eca45=_0x52cb56;this[_0x2eca45(0x1f3)]();}),this[_0x52cb56(0x1fb)](_0x52cb56(0x1eb),_0x2d4c1d);}[_0x28e6df(0x1fa)](_0x416edf){const _0x1baf69=_0x28e6df;this[_0x1baf69(0x1fb)](_0x1baf69(0x1eb),this[_0x1baf69(0x1eb)]+_0x416edf);}[_0x28e6df(0x1e5)](){const _0x58f929=_0x28e6df;this[_0x58f929(0x1fc)]||(this[_0x58f929(0x1fb)](_0x58f929(0x1fc),!0x0),this[_0x58f929(0x1f3)]());}[_0x28e6df(0x1d3)](){const _0xdedd7=_0x28e6df;this[_0xdedd7(0x1c1)]();}[_0x28e6df(0x204)](_0x56d318,_0x5cbc2c){const _0x14f7d5=_0x28e6df;this[_0x14f7d5(0x1d0)][_0x56d318][_0x14f7d5(0x20e)]=_0x5cbc2c,this[_0x14f7d5(0x1c9)](_0x14f7d5(0x1d6),{'reply':this,'index':_0x56d318,'state':_0x5cbc2c});}[_0x28e6df(0x1c0)]({showDiff:_0x1f2e99,groupIndex:_0x5c53df}){const _0x1984a0=_0x28e6df;if(!this[_0x1984a0(0x200)])throw new _0xd7dd2d(_0x1984a0(0x1cb),null,{'aiReply':this});const _0x14cf88=this[_0x1984a0(0x1e7)](_0x1f2e99,_0x5c53df);if(_0x14cf88)return _0x14cf88;let _0x46cc60=[];if(void 0x0===_0x5c53df)_0x46cc60=this[_0x1984a0(0x1d0)];else{const _0x4428f6=this[_0x1984a0(0x1d0)][_0x1984a0(0x1c7)](({index:_0x202fd4})=>_0x202fd4===_0x5c53df);if(!_0x4428f6)throw new _0xd7dd2d(_0x1984a0(0x20a),null,{'aiReply':this,'groupIndex':_0x5c53df});_0x46cc60=[_0x4428f6];}const _0x14dc76=_0x38cc3b({'editor':this[_0x1984a0(0x200)],'showDiff':_0x1f2e99,'changeGroups':_0x46cc60,'documentContextContent':this[_0x1984a0(0x1c4)]});return this[_0x1984a0(0x207)](_0x1f2e99,_0x14dc76),_0x14dc76;}[_0x28e6df(0x1e7)](_0x4de076,_0x3dcb3b){const _0x2763a3=_0x28e6df,_0x15bba7=_0x4de076?_0x2763a3(0x1cc):_0x2763a3(0x1d5);if(!this[_0x2763a3(0x1ff)][_0x15bba7][_0x2763a3(0x20f)])return null;const _0x504aa5=this[_0x2763a3(0x1ff)][_0x15bba7];if(void 0x0===_0x3dcb3b)return _0x504aa5[_0x2763a3(0x20f)]>0x0&&_0x504aa5[_0x2763a3(0x20f)]!==this[_0x2763a3(0x1d0)][_0x2763a3(0x20f)]?(this[_0x2763a3(0x207)](_0x4de076,null),null):_0x1bfacf(_0x504aa5);{const _0x38e389=_0x504aa5[_0x2763a3(0x1c7)](({index:_0x1e5573})=>_0x1e5573===_0x3dcb3b);if(_0x38e389)return[_0x1bfacf(_0x38e389)];}return null;}[_0x28e6df(0x207)](_0x330604,_0x1bb51e){const _0x38f69f=_0x28e6df,_0x56a8a7=_0x330604?_0x38f69f(0x1cc):_0x38f69f(0x1d5);_0x1bb51e?_0x1bb51e[_0x38f69f(0x208)](_0x1197bb=>{const _0x3d4109=_0x38f69f,_0x1c26e6=this[_0x3d4109(0x1ff)][_0x56a8a7],_0x51864b=_0x1c26e6[_0x3d4109(0x1c7)](({index:_0x29f9af})=>_0x29f9af===_0x1197bb[_0x3d4109(0x1d2)]);if(_0x51864b){const _0x468c81=_0x1c26e6[_0x3d4109(0x1f6)](_0x51864b);_0x1c26e6[_0x3d4109(0x210)](_0x468c81,0x1,_0x1197bb);}else _0x1c26e6[_0x3d4109(0x20d)](_0x1197bb);}):this[_0x38f69f(0x1ff)][_0x56a8a7][_0x38f69f(0x20f)]=0x0;}[_0x28e6df(0x1f3)](){const _0x468da6=_0x28e6df;if(_0x468da6(0x1f2)===this[_0x468da6(0x1f0)]){this[_0x468da6(0x1db)]=this[_0x468da6(0x1ea)][_0x468da6(0x1e4)](this[_0x468da6(0x1eb)]);const _0x2344ea=this[_0x468da6(0x1d0)];this[_0x468da6(0x1f5)]();const _0x403f3d=this[_0x468da6(0x1d8)](_0x2344ea,this[_0x468da6(0x1d0)]);(_0x403f3d[_0x468da6(0x20f)]||this[_0x468da6(0x1fc)])&&(this[_0x468da6(0x1c9)](_0x468da6(0x1d4),this,_0x403f3d),this[_0x468da6(0x1ff)][_0x468da6(0x1cc)][_0x468da6(0x20f)]=this[_0x468da6(0x1ff)][_0x468da6(0x1d5)][_0x468da6(0x20f)]=0x0);}else this[_0x468da6(0x1db)]=this[_0x468da6(0x1ea)][_0x468da6(0x1ca)](this[_0x468da6(0x1eb)]),this[_0x468da6(0x1c9)](_0x468da6(0x1d4),this);}[_0x28e6df(0x1d8)](_0x5a6df8,_0x32a16d){const _0x5e5361=_0x28e6df,_0x2d0e2a=[];for(const _0x1e24a2 of _0x32a16d){const _0x1629e7=_0x5a6df8[_0x1e24a2[_0x5e5361(0x1d2)]];_0x1629e7?_0x1629e7[_0x5e5361(0x1ef)][_0x5e5361(0x20f)]!==_0x1e24a2[_0x5e5361(0x1ef)][_0x5e5361(0x20f)]?_0x2d0e2a[_0x5e5361(0x20d)](_0x1e24a2):_0x1629e7[_0x5e5361(0x1ef)][_0x5e5361(0x208)]((_0x5aeef6,_0x57d958)=>{const _0x51eea2=_0x5e5361,_0x282c9e=_0x1e24a2[_0x51eea2(0x1ef)][_0x57d958];_0x5aeef6['id']!==_0x282c9e['id']&&_0x2d0e2a[_0x51eea2(0x20d)](_0x1e24a2);}):_0x2d0e2a[_0x5e5361(0x20d)](_0x1e24a2);}return _0x2d0e2a;}[_0x28e6df(0x1f5)](){const _0x312423=_0x28e6df,_0x43f371=new _0x41863a('p',{},[new _0x41863a(_0x312423(0x1fe),{'style':_0x312423(0x1ce)},[new _0x53ba6d(_0x553a95(this[_0x312423(0x200)][_0x312423(0x20b)],_0x312423(0x1ee)))])]),_0x5b6cf7=this[_0x312423(0x1dd)][_0x312423(0x1f8)](this[_0x312423(0x1db)],this[_0x312423(0x1c4)][_0x312423(0x206)](!0x0),{'markUnstableElements':!this[_0x312423(0x1fc)],'replaceRemovedWith':_0x43f371,'cutAfterLastChange':!this[_0x312423(0x1fc)]});if(!_0x5b6cf7[_0x312423(0x1ec)][_0x312423(0x20f)]&&!this[_0x312423(0x1fc)])return;this[_0x312423(0x1f7)]=_0x5b6cf7[_0x312423(0x1db)];let _0x368f56=[];if(_0x10d211(_0x2659e0=>{const _0x421d8a=_0x312423,_0xd6f45b=_0x3113cb(_0x2659e0,_0x421d8a(0x1de));if(!_0xd6f45b||!_0x4e0723(_0xd6f45b))return!0x1;const _0x58516a=[_0x2659e0,..._0xc4d3ae(_0x2659e0)]['at'](-0x2);if(_0x2659e0!=_0x58516a){const _0x339fb0=_0x3113cb(_0x58516a,_0x421d8a(0x1de));_0x4e0723(_0x339fb0)||(_0x368f56[_0x421d8a(0x20d)]({'node':_0x58516a,'id':_0x339fb0,'type':_0x421d8a(0x1e8)}),_0x5b6cf7[_0x421d8a(0x1ec)][_0x421d8a(0x20d)](_0x339fb0));}else _0x5b6cf7[_0x421d8a(0x1ec)][_0x421d8a(0x1ed)](_0xd6f45b)?_0x368f56[_0x421d8a(0x20d)]({'node':_0x2659e0,'type':_0x421d8a(0x1e8),'id':_0xd6f45b}):_0x5b6cf7[_0x421d8a(0x1dc)][_0x421d8a(0x1ed)](_0xd6f45b)?_0x368f56[_0x421d8a(0x20d)]({'node':_0x2659e0,'type':_0x421d8a(0x1e6),'id':_0xd6f45b,'anchorId':_0x3113cb(_0x2659e0[_0x421d8a(0x1cd)],_0x421d8a(0x1de))}):_0x368f56[_0x421d8a(0x20d)]({'node':_0x2659e0,'type':_0x421d8a(0x1c5),'id':_0xd6f45b});return!0x0;},this[_0x312423(0x1f7)]),_0x368f56=_0x368f56[_0x312423(0x1e2)](({node:_0x5ac1bc})=>[..._0xc4d3ae(_0x5ac1bc),_0x5ac1bc][_0x312423(0x209)](_0x3ba6d6=>!_0x3113cb(_0x3ba6d6,_0x312423(0x203)))),0x0==_0x368f56[_0x312423(0x20f)])return;const _0x10f75a=[[_0x368f56[0x0]]];for(let _0x425fec=0x1;_0x425fec<_0x368f56[_0x312423(0x20f)];_0x425fec++){const _0x17156c=_0x10f75a[_0x10f75a[_0x312423(0x20f)]-0x1],_0x33e5f7=_0x17156c[_0x17156c[_0x312423(0x20f)]-0x1];_0x368f56[_0x425fec][_0x312423(0x1df)][_0x312423(0x1cd)]==_0x33e5f7[_0x312423(0x1df)]&&_0x312423(0x1e8)!=_0x368f56[_0x425fec][_0x312423(0x1f0)]&&_0x312423(0x1e8)!=_0x33e5f7[_0x312423(0x1f0)]?_0x17156c[_0x312423(0x20d)](_0x368f56[_0x425fec]):_0x10f75a[_0x312423(0x20d)]([_0x368f56[_0x425fec]]);}for(const _0x1a89fb of _0x10f75a){const _0xc5aaca=_0x1a89fb[0x0],_0x19d338=_0x1a89fb[_0x1a89fb[_0x312423(0x20f)]-0x1],_0x43f819=_0x21a60f(_0xc5aaca[_0x312423(0x1df)][_0x312423(0x1cd)]);_0x43f819&&_0x1a89fb[_0x312423(0x1f9)](_0x43f819);const _0xf460e9=_0x21a60f(_0x19d338[_0x312423(0x1df)][_0x312423(0x1e1)]);_0xf460e9&&_0x1a89fb[_0x312423(0x20d)](_0xf460e9);}function _0x4e0723(_0x14fded){const _0x10d241=_0x312423;return _0x5b6cf7[_0x10d241(0x1ec)][_0x10d241(0x1ed)](_0x14fded)||_0x5b6cf7[_0x10d241(0x1dc)][_0x10d241(0x1ed)](_0x14fded)||_0x5b6cf7[_0x10d241(0x1f1)][_0x10d241(0x1ed)](_0x14fded);}function _0x21a60f(_0x2a6c7e){const _0x5150eb=_0x312423;if(_0x2a6c7e&&_0x3113cb(_0x2a6c7e,_0x5150eb(0x1de))&&!_0x3113cb(_0x2a6c7e,_0x5150eb(0x203))){const _0x2ded50=_0x3113cb(_0x2a6c7e,_0x5150eb(0x1de));if(!_0x4e0723(_0x2ded50))return{'node':_0x2a6c7e,'type':_0x5150eb(0x1da),'id':_0x2ded50};}return null;}this[_0x312423(0x1d0)]=_0x10f75a[_0x312423(0x201)]((_0x177f99,_0x5addb6)=>({'changes':_0x177f99,'state':_0x312423(0x1e9),'index':_0x5addb6}));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x439eba=_0x57cc;function _0x5768(){const _0x55f992=['9659997IZQAba','_isExistingNode','map','_findNextElementWithDataId','_isNewNode','parentNode','length','newIds','_markLastTagElementUnstable','filter','data-removed','includes','429349Fquvhy','data-unstable','nodeType','reverse','trim','new-element','_getUid','2572924EfEEWG','push','_existingDataIds','_findPrevElementWithDataId','cutAfterLastChange','5698440JeWKaA','match','childNodes','_replaceNode','replaceRemovedWith','_hasWrappedParent','3bIYZOl','_removeSpecialComments','afterend','1690670BvngNQ','data-wrapped-id','nextSibling','_getNodeDataId','splice','_storeDeletedElementIds','_findReferenceNode','afterbegin','lastTouchedId','merge','_markWrappedElements','modifiedIds','removedIds','true','from','5mHEYIj','previousSibling','1177746JTymcY','has','10saEeWO','markUnstableElementsDepth','_findFallbackReferenceNode','beforebegin','_isExistingContentComment','data-id','lastChild','indexOf','forEach','cloneNode','2671543gSAtxk','_markUnstableElements','_isDelNode','slice','markUnstableElements','_touchedNodesState','_generateUid','invalidIds','_insertNodes'];_0x5768=function(){return _0x55f992;};return _0x5768();}(function(_0x3c47bd,_0x247d69){const _0x2856ca=_0x57cc,_0x46ab1c=_0x3c47bd();while(!![]){try{const _0x597083=parseInt(_0x2856ca(0x12a))/0x1+parseInt(_0x2856ca(0x13f))/0x2*(-parseInt(_0x2856ca(0x13c))/0x3)+parseInt(_0x2856ca(0x131))/0x4*(parseInt(_0x2856ca(0x107))/0x5)+parseInt(_0x2856ca(0x109))/0x6+parseInt(_0x2856ca(0x115))/0x7+parseInt(_0x2856ca(0x136))/0x8+-parseInt(_0x2856ca(0x11e))/0x9*(parseInt(_0x2856ca(0x10b))/0xa);if(_0x597083===_0x247d69)break;else _0x46ab1c['push'](_0x46ab1c['shift']());}catch(_0x27f017){_0x46ab1c['push'](_0x46ab1c['shift']());}}}(_0x5768,0x6c6fd));import{ObservableMixin as _0xef31c6,uid as _0x251d54}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x2360d8,findByAttribute as _0x55c5b0,getAttribute as _0x378181,isComment as _0x59b8fe,isTag as _0x531339,insertElement as _0x41b6c5,moveElement as _0x26a253,removeElement as _0x275ee3,replaceElement as _0xb93ab1,serialize as _0x5bb7f3,setAttribute as _0x29155b,clone as _0x586a9e,findAllComments as _0x384366,getParents as _0x40f8be,getNodeNestingLevel as _0xa0f1b6,areNodesSame as _0x669c90,removeElementsAfter as _0x23bdc1}from'../utils/htmlparser.js';function _0x57cc(_0x525585,_0x12ebc5){const _0x5768e0=_0x5768();return _0x57cc=function(_0x57cc45,_0x5b336d){_0x57cc45=_0x57cc45-0x104;let _0xac3671=_0x5768e0[_0x57cc45];return _0xac3671;},_0x57cc(_0x525585,_0x12ebc5);}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0xef31c6(){[_0x439eba(0x11b)];[_0x439eba(0x11a)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x439eba(0x133)]=new Set();constructor(_0x14431c){const _0x3ff59f=_0x439eba;super(),this[_0x3ff59f(0x11b)]=_0x14431c||_0x251d54;}[_0x439eba(0x148)](_0x1256c9,_0x4698a0,_0x2bb523){const _0x29dea7=_0x439eba,_0x525f50=_0x586a9e(_0x1256c9);if(0x0===_0x4698a0[_0x29dea7(0x138)][_0x29dea7(0x124)]){const _0x3100d1=[];return _0x2360d8(_0x29dea7(0x110),_0x29dea7(0x12f),_0x525f50)[_0x29dea7(0x113)](_0x547c18=>{const _0x3fe211=_0x29dea7,_0x51e7eb=this[_0x3fe211(0x11b)]();_0x29155b(_0x547c18,_0x3fe211(0x110),_0x51e7eb),_0x3100d1[_0x3fe211(0x132)](_0x51e7eb);}),this[_0x29dea7(0x13d)](_0x525f50),{'parsedContent':_0x525f50,'newNodeIds':_0x3100d1,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x2bb523&&_0x2bb523[_0x29dea7(0x119)]&&this[_0x29dea7(0x126)](_0x525f50),this[_0x29dea7(0x11a)][_0x29dea7(0x125)]=[],this[_0x29dea7(0x11a)][_0x29dea7(0x14a)]=[],this[_0x29dea7(0x11a)][_0x29dea7(0x104)]=[],this[_0x29dea7(0x11a)][_0x29dea7(0x11c)]=[],this[_0x29dea7(0x11a)][_0x29dea7(0x147)]=null,this[_0x29dea7(0x133)]=new Set(_0x2360d8(_0x29dea7(0x110),null,_0x4698a0)[_0x29dea7(0x120)](_0x29bde3=>_0x378181(_0x29bde3,_0x29dea7(0x110)))[_0x29dea7(0x127)](_0x4f1d81=>!!_0x4f1d81));let _0xfabd5d=-0x1,_0x148bcc=!0x1;const _0x195641=_0x525f50[_0x29dea7(0x138)],_0x3e3a1b=Array[_0x29dea7(0x106)](_0x195641)[_0x29dea7(0x127)](_0x4bd14d=>!(0x3===_0x4bd14d[_0x29dea7(0x12c)]&&''===_0x5bb7f3(_0x4bd14d)[_0x29dea7(0x12e)]())),_0x37b6a9=_0x3e3a1b[_0x29dea7(0x124)];for(let _0x260edb=0x0;_0x260edb<_0x37b6a9;_0x260edb++){const _0x447cac=_0x3e3a1b[_0x260edb],_0x899a8b=_0x3e3a1b[_0x260edb+0x1];if(this[_0x29dea7(0x122)](_0x447cac)){if(-0x1===_0xfabd5d&&(_0xfabd5d=_0x260edb),this[_0x29dea7(0x149)](_0x447cac),!this[_0x29dea7(0x122)](_0x899a8b)){const [_0x1efca1,_0x1d23a4]=this[_0x29dea7(0x145)](_0x447cac,_0x148bcc,_0x4698a0);if(_0x1efca1){const _0x2afc82=Array[_0x29dea7(0x106)](_0x3e3a1b)[_0x29dea7(0x118)](_0xfabd5d,_0x260edb+0x1);this[_0x29dea7(0x11d)](_0x1efca1,_0x2afc82,_0x1d23a4),_0xfabd5d=-0x1;}}}else{if(this[_0x29dea7(0x10f)](_0x447cac))_0x148bcc=!0x0;else{if(this[_0x29dea7(0x11f)](_0x447cac)){const _0x51382d=_0x378181(_0x447cac,_0x29dea7(0x110));if(_0x51382d&&this[_0x29dea7(0x133)][_0x29dea7(0x10a)](_0x51382d)){const _0x3fee3b=_0x55c5b0(_0x29dea7(0x110),_0x51382d,_0x4698a0);this[_0x29dea7(0x139)](_0x3fee3b,_0x447cac);}if(this[_0x29dea7(0x11a)][_0x29dea7(0x104)][_0x29dea7(0x129)](_0x51382d)){const _0x31eb0a=this[_0x29dea7(0x11a)][_0x29dea7(0x104)][_0x29dea7(0x112)](_0x51382d);this[_0x29dea7(0x11a)][_0x29dea7(0x104)][_0x29dea7(0x143)](_0x31eb0a,0x1);}}else{if(this[_0x29dea7(0x117)](_0x447cac)){const _0x26201d=_0x378181(_0x447cac,_0x29dea7(0x110));this[_0x29dea7(0x11a)][_0x29dea7(0x14a)][_0x29dea7(0x129)](_0x26201d)||this[_0x29dea7(0x144)](_0x447cac);}}}}}for(const _0x51059a of this[_0x29dea7(0x11a)][_0x29dea7(0x104)]){const _0x9d8de5=_0x55c5b0(_0x29dea7(0x110),_0x51059a,_0x4698a0);if(_0x9d8de5){if(_0x2bb523&&_0x2bb523[_0x29dea7(0x13a)]){this[_0x29dea7(0x11a)][_0x29dea7(0x147)]=_0x51059a;const _0x37c97a=_0x2bb523[_0x29dea7(0x13a)][_0x29dea7(0x114)](!0x0);_0x29155b(_0x37c97a,_0x29dea7(0x110),_0x51059a),_0x29155b(_0x37c97a,_0x29dea7(0x128),_0x29dea7(0x105)),_0xb93ab1(_0x9d8de5,_0x37c97a);}else _0x275ee3(_0x9d8de5);}}if(_0x2360d8(_0x29dea7(0x140),null,_0x4698a0)[_0x29dea7(0x113)](_0x5bf08a=>{const _0x198f5f=_0x29dea7,_0x1818d3=_0x378181(_0x5bf08a,_0x198f5f(0x140)),_0xec322e=_0x55c5b0(_0x198f5f(0x110),_0x1818d3,_0x4698a0);_0xec322e&&_0x26a253(_0xec322e,_0x5bf08a);}),_0x2360d8(_0x29dea7(0x110),_0x29dea7(0x12f),_0x4698a0)[_0x29dea7(0x113)](_0x2c18ee=>{const _0x248619=_0x29dea7,_0x95416a=this[_0x248619(0x130)](_0x2c18ee);_0x29155b(_0x2c18ee,_0x248619(0x110),_0x95416a),this[_0x248619(0x11a)][_0x248619(0x125)][_0x248619(0x132)](_0x95416a);}),this[_0x29dea7(0x13d)](_0x4698a0),_0x2bb523&&_0x2bb523[_0x29dea7(0x119)]&&this[_0x29dea7(0x116)](_0x4698a0,_0x2bb523[_0x29dea7(0x10c)]||0x0),_0x2bb523&&_0x2bb523[_0x29dea7(0x135)]&&this[_0x29dea7(0x11a)][_0x29dea7(0x147)]){let _0x27828d=_0x55c5b0(_0x29dea7(0x110),this[_0x29dea7(0x11a)][_0x29dea7(0x147)],_0x4698a0);for(;_0x27828d;)_0x23bdc1(_0x27828d),_0x27828d=_0x27828d[_0x29dea7(0x123)];}return{'parsedContent':_0x4698a0,'newNodeIds':this[_0x29dea7(0x11a)][_0x29dea7(0x125)],'modifiedNodeIds':this[_0x29dea7(0x11a)][_0x29dea7(0x14a)],'removedNodeIds':this[_0x29dea7(0x11a)][_0x29dea7(0x104)]};}[_0x439eba(0x11d)](_0x20548b,_0x37923b,_0x14ff5d){const _0x404dc2=_0x439eba;for(const _0x4197b3 of _0x37923b){const _0x1629f3=this[_0x404dc2(0x130)](_0x4197b3);_0x29155b(_0x4197b3,_0x404dc2(0x110),_0x1629f3),this[_0x404dc2(0x11a)][_0x404dc2(0x125)][_0x404dc2(0x132)](_0x1629f3),this[_0x404dc2(0x11a)][_0x404dc2(0x147)]=_0x1629f3;}const _0x26b8b7=_0x404dc2(0x146)===_0x14ff5d||_0x404dc2(0x13e)===_0x14ff5d?_0x37923b[_0x404dc2(0x12d)]():_0x37923b;for(const _0x32184a of _0x26b8b7)_0x41b6c5(_0x20548b,_0x32184a,_0x14ff5d);}[_0x439eba(0x139)](_0x3e0dcd,_0x30c326){const _0x36fca9=_0x439eba;if(!_0x3e0dcd)return;if(_0x669c90(_0x3e0dcd,_0x30c326))return;const _0x383e64=this[_0x36fca9(0x130)](_0x3e0dcd);_0x29155b(_0x30c326,_0x36fca9(0x110),_0x383e64),this[_0x36fca9(0x11a)][_0x36fca9(0x14a)][_0x36fca9(0x132)](_0x383e64),this[_0x36fca9(0x11a)][_0x36fca9(0x147)]=_0x383e64,_0xb93ab1(_0x3e0dcd,_0x30c326[_0x36fca9(0x114)](!0x0));}[_0x439eba(0x145)](_0x12f78e,_0xc0ba72,_0x12bb02){const _0x1a3be8=_0x439eba,_0x1c4784=this[_0x1a3be8(0x134)](_0x12f78e,!0x1);if(_0x1c4784){const _0x1d02c4=this[_0x1a3be8(0x142)](_0x1c4784),_0x492d23=_0x55c5b0(_0x1a3be8(0x110),_0x1d02c4,_0x12bb02);if(_0x492d23)return[_0x492d23,_0x1a3be8(0x13e)];this[_0x1a3be8(0x11a)][_0x1a3be8(0x11c)][_0x1a3be8(0x132)](_0x1d02c4);}const _0x4f4cef=this[_0x1a3be8(0x121)](_0x12f78e,!0x1);if(_0x4f4cef){const _0x42fa20=this[_0x1a3be8(0x142)](_0x4f4cef),_0x4ec77d=_0x55c5b0(_0x1a3be8(0x110),_0x42fa20,_0x12bb02);if(_0x4ec77d)return[_0x4ec77d,_0x1a3be8(0x10e)];this[_0x1a3be8(0x11a)][_0x1a3be8(0x11c)][_0x1a3be8(0x132)](_0x42fa20);}return _0xc0ba72?_0x12f78e[_0x1a3be8(0x141)]?this[_0x1a3be8(0x10d)](_0x12f78e,_0x12bb02):[_0x12bb02[_0x1a3be8(0x138)][_0x12bb02[_0x1a3be8(0x138)][_0x1a3be8(0x124)]-0x1],_0x1a3be8(0x13e)]:[_0x12bb02[_0x1a3be8(0x138)][0x0],_0x1a3be8(0x10e)];}[_0x439eba(0x10d)](_0x4fd56c,_0x333811){const _0x1d3307=_0x439eba,_0x6d5f0a=[],_0x79f253=this[_0x1d3307(0x134)](_0x4fd56c,!0x0);if(_0x79f253){const _0x514115=this[_0x1d3307(0x142)](_0x79f253),_0x2c1bdf=_0x55c5b0(_0x1d3307(0x110),_0x514115,_0x333811);_0x2c1bdf&&_0x6d5f0a[_0x1d3307(0x132)]([_0x2c1bdf,_0x1d3307(0x13e)]);}const _0x34a0ac=this[_0x1d3307(0x121)](_0x4fd56c,!0x0);if(_0x34a0ac){const _0x5e5d2d=this[_0x1d3307(0x142)](_0x34a0ac),_0x13e898=_0x55c5b0(_0x1d3307(0x110),_0x5e5d2d,_0x333811);_0x13e898&&_0x6d5f0a[_0x1d3307(0x132)]([_0x13e898,_0x1d3307(0x10e)]);}if(_0x6d5f0a[_0x1d3307(0x124)]>0x1)return _0xa0f1b6(_0x6d5f0a[0x0][0x0])<=_0xa0f1b6(_0x6d5f0a[0x1][0x0])?_0x6d5f0a[0x0]:_0x6d5f0a[0x1];return 0x1===_0x6d5f0a[_0x1d3307(0x124)]?_0x6d5f0a[0x0]:[_0x333811[_0x1d3307(0x111)],_0x1d3307(0x13e)];}[_0x439eba(0x121)](_0x15265e,_0x59afbd){const _0x52334a=_0x439eba;let _0x25a1c6=_0x15265e[_0x52334a(0x141)],_0xcfc9c2=null,_0x5b5b21=!0x1;for(;_0x25a1c6;){if(_0x59b8fe(_0x25a1c6)){if(this[_0x52334a(0x117)](_0x25a1c6)&&(_0xcfc9c2=_0x25a1c6),this[_0x52334a(0x10f)](_0x25a1c6)&&_0x59afbd&&!_0x5b5b21){_0x5b5b21=!0x0,_0x25a1c6=_0x25a1c6[_0x52334a(0x141)];continue;}break;}const _0x5698e1=_0x378181(_0x25a1c6,_0x52334a(0x110));if(_0x5698e1&&_0x52334a(0x12f)!==_0x5698e1&&this[_0x52334a(0x133)][_0x52334a(0x10a)](_0x5698e1)){_0xcfc9c2=_0x25a1c6;break;}_0x25a1c6=_0x25a1c6[_0x52334a(0x141)];}return _0xcfc9c2;}[_0x439eba(0x134)](_0x158b11,_0xce04c5){const _0x42fafd=_0x439eba;let _0x3c0b51=_0x158b11[_0x42fafd(0x108)],_0x1bf052=null,_0xedae41=!0x1;for(;_0x3c0b51;){if(_0x59b8fe(_0x3c0b51)){if(this[_0x42fafd(0x117)](_0x3c0b51)&&(_0x1bf052=_0x3c0b51),this[_0x42fafd(0x10f)](_0x3c0b51)&&_0xce04c5&&!_0xedae41){_0xedae41=!0x0,_0x3c0b51=_0x3c0b51[_0x42fafd(0x108)];continue;}break;}const _0x78fef1=_0x378181(_0x3c0b51,_0x42fafd(0x110));if(_0x78fef1&&_0x42fafd(0x12f)!==_0x78fef1&&this[_0x42fafd(0x133)][_0x42fafd(0x10a)](_0x78fef1)){_0x1bf052=_0x3c0b51;break;}_0x3c0b51=_0x3c0b51[_0x42fafd(0x108)];}return _0x1bf052;}[_0x439eba(0x149)](_0x21365e){const _0x322346=_0x439eba;_0x531339(_0x21365e)&&_0x2360d8(_0x322346(0x110),null,_0x21365e)[_0x322346(0x113)](_0x481484=>{const _0x59c150=_0x322346;if(this[_0x59c150(0x11f)](_0x481484)&&!this[_0x59c150(0x13b)](_0x481484)){const _0x31fac4=_0x378181(_0x481484,_0x59c150(0x110));_0x29155b(_0x481484,_0x59c150(0x140),_0x31fac4),_0x29155b(_0x481484,_0x59c150(0x110),null);}});}[_0x439eba(0x142)](_0x93b6dd){const _0x35101f=_0x439eba;if(!_0x93b6dd)return null;if(_0x531339(_0x93b6dd))return _0x378181(_0x93b6dd,_0x35101f(0x110));if(_0x59b8fe(_0x93b6dd)){const _0x49adce=_0x5bb7f3(_0x93b6dd)[_0x35101f(0x137)](/removed[\s*-]data-id="([^"]+)"/);if(_0x49adce&&_0x49adce[0x1])return _0x49adce[0x1];}return null;}[_0x439eba(0x144)](_0x13480b){const _0x3f94a6=_0x439eba;if(_0x59b8fe(_0x13480b)){const _0x123500=_0x5bb7f3(_0x13480b)[_0x3f94a6(0x137)](/removed[\s*-]data-id="([^"]+)"/);_0x123500&&_0x123500[0x1]&&this[_0x3f94a6(0x11a)][_0x3f94a6(0x104)][_0x3f94a6(0x132)](_0x123500[0x1]);}}[_0x439eba(0x130)](_0x511388){const _0x5c3524=_0x439eba;return this[_0x5c3524(0x11f)](_0x511388)?_0x378181(_0x511388,_0x5c3524(0x110)):this[_0x5c3524(0x11b)]();}[_0x439eba(0x13d)](_0x32f5aa){const _0x2acf42=_0x439eba;_0x384366(_0x32f5aa)[_0x2acf42(0x127)](_0xc985df=>this[_0x2acf42(0x117)](_0xc985df)||this[_0x2acf42(0x10f)](_0xc985df))[_0x2acf42(0x113)](_0x2f1e75=>{_0x275ee3(_0x2f1e75);});}[_0x439eba(0x126)](_0x44df2c){const _0x33850d=_0x439eba,_0x3c313e=_0x44df2c[_0x33850d(0x138)],_0xe747db=_0x3c313e[_0x3c313e[_0x33850d(0x124)]-0x1];_0xe747db&&_0x531339(_0xe747db)&&_0x29155b(_0xe747db,_0x33850d(0x12b),_0x33850d(0x105));}[_0x439eba(0x116)](_0x2c0f9e,_0x23cf04){const _0x193b77=_0x439eba,_0x4e1780=_0x55c5b0(_0x193b77(0x12b),_0x193b77(0x105),_0x2c0f9e);if(!_0x4e1780)return;const _0xc1d08c=_0x40f8be(_0x4e1780)[_0x193b77(0x118)](0x0,-0x1),_0x50a485=_0xc1d08c[_0x193b77(0x124)];let _0x144006=_0x4e1780;if(_0x50a485>_0x23cf04){let _0x269632=_0x50a485,_0x5851d4=null;for(;_0x269632>_0x23cf04&&_0x269632>=0x0;)_0x269632--,_0x5851d4=_0xc1d08c[_0x269632];_0x5851d4&&(_0x144006=_0x5851d4,_0x29155b(_0x4e1780,_0x193b77(0x12b),null),_0x29155b(_0x5851d4,_0x193b77(0x12b),_0x193b77(0x105)));}else{if(_0x50a485<_0x23cf04){let _0x4f1ec3=_0x50a485,_0x19b007=_0x4e1780;for(;_0x4f1ec3<_0x23cf04;){const _0x40da63=_0x19b007[_0x193b77(0x138)][_0x193b77(0x127)](_0x3df412=>_0x531339(_0x3df412));if(0x0===_0x40da63[_0x193b77(0x124)])break;_0x4f1ec3++,_0x19b007=_0x40da63[_0x40da63[_0x193b77(0x124)]-0x1];}_0x19b007&&(_0x144006=_0x19b007,_0x29155b(_0x4e1780,_0x193b77(0x12b),null),_0x29155b(_0x19b007,_0x193b77(0x12b),_0x193b77(0x105)));}}let _0x332f90=_0x144006;for(;_0x332f90;){for(;_0x332f90[_0x193b77(0x141)];)_0x332f90=_0x332f90[_0x193b77(0x141)],_0x531339(_0x332f90)&&_0x29155b(_0x332f90,_0x193b77(0x12b),_0x193b77(0x105));_0x332f90=_0x332f90[_0x193b77(0x123)];}}[_0x439eba(0x122)](_0x5a2c08){const _0x5b8b34=_0x439eba;return Boolean(_0x5b8b34(0x12f)===_0x378181(_0x5a2c08,_0x5b8b34(0x110)));}[_0x439eba(0x11f)](_0x3795be){const _0x12ec1e=_0x439eba;return Boolean((_0x378181(_0x3795be,_0x12ec1e(0x110))||'')[_0x12ec1e(0x124)]>0x0&&_0x12ec1e(0x12f)!==_0x378181(_0x3795be,_0x12ec1e(0x110)));}[_0x439eba(0x117)](_0x487891){const _0x24075e=_0x439eba;return!!_0x487891&&Boolean(_0x59b8fe(_0x487891)&&_0x5bb7f3(_0x487891)[_0x24075e(0x137)](/removed[\s*-]data-id="[^"]+"/));}[_0x439eba(0x13b)](_0x38e747){const _0x460389=_0x439eba;let _0x8d4998=_0x38e747[_0x460389(0x123)];for(;_0x8d4998;){if(_0x378181(_0x8d4998,_0x460389(0x140)))return!0x0;_0x8d4998=_0x8d4998[_0x460389(0x123)];}return!0x1;}[_0x439eba(0x10f)](_0xc9434d){const _0x34536c=_0x439eba;return Boolean(_0x59b8fe(_0xc9434d)&&_0x5bb7f3(_0xc9434d)[_0x34536c(0x137)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0x100e40=_0x1a14;(function(_0x31b59e,_0x3f0123){const _0x2b2aab=_0x1a14,_0x37dcc5=_0x31b59e();while(!![]){try{const _0x52952b=parseInt(_0x2b2aab(0x95))/0x1+-parseInt(_0x2b2aab(0x73))/0x2*(parseInt(_0x2b2aab(0xab))/0x3)+-parseInt(_0x2b2aab(0x8f))/0x4+parseInt(_0x2b2aab(0xa0))/0x5+-parseInt(_0x2b2aab(0xa1))/0x6+-parseInt(_0x2b2aab(0x8a))/0x7*(-parseInt(_0x2b2aab(0xae))/0x8)+parseInt(_0x2b2aab(0x7f))/0x9;if(_0x52952b===_0x3f0123)break;else _0x37dcc5['push'](_0x37dcc5['shift']());}catch(_0x1b574e){_0x37dcc5['push'](_0x37dcc5['shift']());}}}(_0x47f8,0x89b81));import{ObservableMixin as _0x477aeb,uid as _0x3f5e6a}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x72b893,findByAttribute as _0x4d932a,getAttribute as _0x556688,isComment as _0x1a54bb,isTag as _0x2f25c3,insertElement as _0x30792a,moveElement as _0x4c7cde,removeElement as _0x363b06,replaceElement as _0x2a4ea2,serialize as _0xb1ed95,setAttribute as _0x2cb78a,clone as _0x53a890,findAllComments as _0x52d22e,getParents as _0x591630,getNodeNestingLevel as _0x18c27a,areNodesSame as _0x2dbda6,removeElementsAfter as _0x2a4e20}from'../utils/htmlparser.js';function _0x1a14(_0x1ed302,_0x38e53b){const _0x47f89e=_0x47f8();return _0x1a14=function(_0x1a14fb,_0x5583bd){_0x1a14fb=_0x1a14fb-0x73;let _0x2afdb3=_0x47f89e[_0x1a14fb];return _0x2afdb3;},_0x1a14(_0x1ed302,_0x38e53b);}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x477aeb(){[_0x100e40(0x79)];[_0x100e40(0x9f)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x100e40(0x76)]=new Set();constructor(_0x272b44){const _0x31c999=_0x100e40;super(),this[_0x31c999(0x79)]=_0x272b44||_0x3f5e6a;}[_0x100e40(0xa5)](_0x3a9319,_0x3a468d,_0x110cc6){const _0x1b757c=_0x100e40,_0x300e72=_0x53a890(_0x3a9319);if(0x0===_0x3a468d[_0x1b757c(0x98)][_0x1b757c(0x9d)]){const _0x5cadc8=[];return _0x72b893(_0x1b757c(0x74),_0x1b757c(0x7e),_0x300e72)[_0x1b757c(0x83)](_0x58022f=>{const _0x24e8f5=_0x1b757c,_0x2bb452=this[_0x24e8f5(0x79)]();_0x2cb78a(_0x58022f,_0x24e8f5(0x74),_0x2bb452),_0x5cadc8[_0x24e8f5(0xb5)](_0x2bb452);}),this[_0x1b757c(0xaa)](_0x300e72),{'parsedContent':_0x300e72,'newNodeIds':_0x5cadc8,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x110cc6&&_0x110cc6[_0x1b757c(0x75)]&&this[_0x1b757c(0x87)](_0x300e72),this[_0x1b757c(0x9f)][_0x1b757c(0x78)]=[],this[_0x1b757c(0x9f)][_0x1b757c(0x90)]=[],this[_0x1b757c(0x9f)][_0x1b757c(0x94)]=[],this[_0x1b757c(0x9f)][_0x1b757c(0x9e)]=[],this[_0x1b757c(0x9f)][_0x1b757c(0x9b)]=null,this[_0x1b757c(0x76)]=new Set(_0x72b893(_0x1b757c(0x74),null,_0x3a468d)[_0x1b757c(0xb7)](_0x59c664=>_0x556688(_0x59c664,_0x1b757c(0x74)))[_0x1b757c(0x93)](_0x5d5751=>!!_0x5d5751));let _0x1e1b73=-0x1,_0x354a20=!0x1;const _0x52a66e=_0x300e72[_0x1b757c(0x98)],_0x5a7433=Array[_0x1b757c(0xb8)](_0x52a66e)[_0x1b757c(0x93)](_0x56f05b=>!(0x3===_0x56f05b[_0x1b757c(0x8e)]&&''===_0xb1ed95(_0x56f05b)[_0x1b757c(0xa8)]())),_0x226136=_0x5a7433[_0x1b757c(0x9d)];for(let _0x14b005=0x0;_0x14b005<_0x226136;_0x14b005++){const _0x30e803=_0x5a7433[_0x14b005],_0x136744=_0x5a7433[_0x14b005+0x1];if(this[_0x1b757c(0x84)](_0x30e803)){if(-0x1===_0x1e1b73&&(_0x1e1b73=_0x14b005),this[_0x1b757c(0xb4)](_0x30e803),!this[_0x1b757c(0x84)](_0x136744)){const [_0x13c403,_0x54c42f]=this[_0x1b757c(0x89)](_0x30e803,_0x354a20,_0x3a468d);if(_0x13c403){const _0x289433=Array[_0x1b757c(0xb8)](_0x5a7433)[_0x1b757c(0x86)](_0x1e1b73,_0x14b005+0x1);this[_0x1b757c(0x8c)](_0x13c403,_0x289433,_0x54c42f),_0x1e1b73=-0x1;}}}else{if(this[_0x1b757c(0x7b)](_0x30e803))_0x354a20=!0x0;else{if(this[_0x1b757c(0x7d)](_0x30e803)){const _0xf01fb=_0x556688(_0x30e803,_0x1b757c(0x74));if(_0xf01fb&&this[_0x1b757c(0x76)][_0x1b757c(0x77)](_0xf01fb)){const _0xd3263=_0x4d932a(_0x1b757c(0x74),_0xf01fb,_0x3a468d);this[_0x1b757c(0x9c)](_0xd3263,_0x30e803);}if(this[_0x1b757c(0x9f)][_0x1b757c(0x94)][_0x1b757c(0xb0)](_0xf01fb)){const _0x4ed294=this[_0x1b757c(0x9f)][_0x1b757c(0x94)][_0x1b757c(0x81)](_0xf01fb);this[_0x1b757c(0x9f)][_0x1b757c(0x94)][_0x1b757c(0x92)](_0x4ed294,0x1);}}else{if(this[_0x1b757c(0xa4)](_0x30e803)){const _0x5aa974=_0x556688(_0x30e803,_0x1b757c(0x74));this[_0x1b757c(0x9f)][_0x1b757c(0x90)][_0x1b757c(0xb0)](_0x5aa974)||this[_0x1b757c(0x91)](_0x30e803);}}}}}for(const _0x48c63a of this[_0x1b757c(0x9f)][_0x1b757c(0x94)]){const _0x424c7d=_0x4d932a(_0x1b757c(0x74),_0x48c63a,_0x3a468d);if(_0x424c7d){if(_0x110cc6&&_0x110cc6[_0x1b757c(0xa7)]){this[_0x1b757c(0x9f)][_0x1b757c(0x9b)]=_0x48c63a;const _0xe827f3=_0x110cc6[_0x1b757c(0xa7)][_0x1b757c(0x88)](!0x0);_0x2cb78a(_0xe827f3,_0x1b757c(0x74),_0x48c63a),_0x2cb78a(_0xe827f3,_0x1b757c(0xb1),_0x1b757c(0x9a)),_0x2a4ea2(_0x424c7d,_0xe827f3);}else _0x363b06(_0x424c7d);}}if(_0x72b893(_0x1b757c(0x80),null,_0x3a468d)[_0x1b757c(0x83)](_0x29cf59=>{const _0x58143e=_0x1b757c,_0x592b32=_0x556688(_0x29cf59,_0x58143e(0x80)),_0x426e14=_0x4d932a(_0x58143e(0x74),_0x592b32,_0x3a468d);_0x426e14&&_0x4c7cde(_0x426e14,_0x29cf59);}),_0x72b893(_0x1b757c(0x74),_0x1b757c(0x7e),_0x3a468d)[_0x1b757c(0x83)](_0x29d114=>{const _0xb2f59a=_0x1b757c,_0x17692f=this[_0xb2f59a(0x99)](_0x29d114);_0x2cb78a(_0x29d114,_0xb2f59a(0x74),_0x17692f),this[_0xb2f59a(0x9f)][_0xb2f59a(0x78)][_0xb2f59a(0xb5)](_0x17692f);}),this[_0x1b757c(0xaa)](_0x3a468d),_0x110cc6&&_0x110cc6[_0x1b757c(0x75)]&&this[_0x1b757c(0xac)](_0x3a468d,_0x110cc6[_0x1b757c(0x96)]||0x0),_0x110cc6&&_0x110cc6[_0x1b757c(0xad)]&&this[_0x1b757c(0x9f)][_0x1b757c(0x9b)]){let _0x4e9334=_0x4d932a(_0x1b757c(0x74),this[_0x1b757c(0x9f)][_0x1b757c(0x9b)],_0x3a468d);for(;_0x4e9334;)_0x2a4e20(_0x4e9334),_0x4e9334=_0x4e9334[_0x1b757c(0x85)];}return{'parsedContent':_0x3a468d,'newNodeIds':this[_0x1b757c(0x9f)][_0x1b757c(0x78)],'modifiedNodeIds':this[_0x1b757c(0x9f)][_0x1b757c(0x90)],'removedNodeIds':this[_0x1b757c(0x9f)][_0x1b757c(0x94)]};}[_0x100e40(0x8c)](_0x21e93e,_0x543c30,_0x10ec6d){const _0x1d45bc=_0x100e40;for(const _0x297671 of _0x543c30){const _0x5c92ee=this[_0x1d45bc(0x99)](_0x297671);_0x2cb78a(_0x297671,_0x1d45bc(0x74),_0x5c92ee),this[_0x1d45bc(0x9f)][_0x1d45bc(0x78)][_0x1d45bc(0xb5)](_0x5c92ee),this[_0x1d45bc(0x9f)][_0x1d45bc(0x9b)]=_0x5c92ee;}const _0x87fe35=_0x1d45bc(0xb6)===_0x10ec6d||_0x1d45bc(0xaf)===_0x10ec6d?_0x543c30[_0x1d45bc(0xa9)]():_0x543c30;for(const _0x6ae82f of _0x87fe35)_0x30792a(_0x21e93e,_0x6ae82f,_0x10ec6d);}[_0x100e40(0x9c)](_0x22e242,_0x436c94){const _0x28df9a=_0x100e40;if(!_0x22e242)return;if(_0x2dbda6(_0x22e242,_0x436c94))return;const _0x2c0244=this[_0x28df9a(0x99)](_0x22e242);_0x2cb78a(_0x436c94,_0x28df9a(0x74),_0x2c0244),this[_0x28df9a(0x9f)][_0x28df9a(0x90)][_0x28df9a(0xb5)](_0x2c0244),this[_0x28df9a(0x9f)][_0x28df9a(0x9b)]=_0x2c0244,_0x2a4ea2(_0x22e242,_0x436c94[_0x28df9a(0x88)](!0x0));}[_0x100e40(0x89)](_0x514c3e,_0x144ec1,_0x525748){const _0x14b2f8=_0x100e40,_0x4df125=this[_0x14b2f8(0x82)](_0x514c3e,!0x1);if(_0x4df125){const _0x3327f3=this[_0x14b2f8(0x7c)](_0x4df125),_0x1614b6=_0x4d932a(_0x14b2f8(0x74),_0x3327f3,_0x525748);if(_0x1614b6)return[_0x1614b6,_0x14b2f8(0xaf)];this[_0x14b2f8(0x9f)][_0x14b2f8(0x9e)][_0x14b2f8(0xb5)](_0x3327f3);}const _0x4617ac=this[_0x14b2f8(0xb2)](_0x514c3e,!0x1);if(_0x4617ac){const _0x89b074=this[_0x14b2f8(0x7c)](_0x4617ac),_0x307813=_0x4d932a(_0x14b2f8(0x74),_0x89b074,_0x525748);if(_0x307813)return[_0x307813,_0x14b2f8(0xa3)];this[_0x14b2f8(0x9f)][_0x14b2f8(0x9e)][_0x14b2f8(0xb5)](_0x89b074);}return _0x144ec1?_0x514c3e[_0x14b2f8(0x7a)]?this[_0x14b2f8(0x97)](_0x514c3e,_0x525748):[_0x525748[_0x14b2f8(0x98)][_0x525748[_0x14b2f8(0x98)][_0x14b2f8(0x9d)]-0x1],_0x14b2f8(0xaf)]:[_0x525748[_0x14b2f8(0x98)][0x0],_0x14b2f8(0xa3)];}[_0x100e40(0x97)](_0xb1ef5e,_0x70965b){const _0x812a7a=_0x100e40,_0x30bd56=[],_0x36efd0=this[_0x812a7a(0x82)](_0xb1ef5e,!0x0);if(_0x36efd0){const _0x105071=this[_0x812a7a(0x7c)](_0x36efd0),_0x17c8ed=_0x4d932a(_0x812a7a(0x74),_0x105071,_0x70965b);_0x17c8ed&&_0x30bd56[_0x812a7a(0xb5)]([_0x17c8ed,_0x812a7a(0xaf)]);}const _0x396079=this[_0x812a7a(0xb2)](_0xb1ef5e,!0x0);if(_0x396079){const _0x2f28f5=this[_0x812a7a(0x7c)](_0x396079),_0x2c8eb5=_0x4d932a(_0x812a7a(0x74),_0x2f28f5,_0x70965b);_0x2c8eb5&&_0x30bd56[_0x812a7a(0xb5)]([_0x2c8eb5,_0x812a7a(0xa3)]);}if(_0x30bd56[_0x812a7a(0x9d)]>0x1)return _0x18c27a(_0x30bd56[0x0][0x0])<=_0x18c27a(_0x30bd56[0x1][0x0])?_0x30bd56[0x0]:_0x30bd56[0x1];return 0x1===_0x30bd56[_0x812a7a(0x9d)]?_0x30bd56[0x0]:[_0x70965b[_0x812a7a(0xa6)],_0x812a7a(0xaf)];}[_0x100e40(0xb2)](_0x4fa99f,_0x9b6c9){const _0x27dd53=_0x100e40;let _0x34db74=_0x4fa99f[_0x27dd53(0x7a)],_0x10fb93=null,_0x546310=!0x1;for(;_0x34db74;){if(_0x1a54bb(_0x34db74)){if(this[_0x27dd53(0xa4)](_0x34db74)&&(_0x10fb93=_0x34db74),this[_0x27dd53(0x7b)](_0x34db74)&&_0x9b6c9&&!_0x546310){_0x546310=!0x0,_0x34db74=_0x34db74[_0x27dd53(0x7a)];continue;}break;}const _0x187d70=_0x556688(_0x34db74,_0x27dd53(0x74));if(_0x187d70&&_0x27dd53(0x7e)!==_0x187d70&&this[_0x27dd53(0x76)][_0x27dd53(0x77)](_0x187d70)){_0x10fb93=_0x34db74;break;}_0x34db74=_0x34db74[_0x27dd53(0x7a)];}return _0x10fb93;}[_0x100e40(0x82)](_0x119ced,_0x4461c9){const _0x56bdb4=_0x100e40;let _0x5c4630=_0x119ced[_0x56bdb4(0x8d)],_0x5fec0=null,_0x11e63c=!0x1;for(;_0x5c4630;){if(_0x1a54bb(_0x5c4630)){if(this[_0x56bdb4(0xa4)](_0x5c4630)&&(_0x5fec0=_0x5c4630),this[_0x56bdb4(0x7b)](_0x5c4630)&&_0x4461c9&&!_0x11e63c){_0x11e63c=!0x0,_0x5c4630=_0x5c4630[_0x56bdb4(0x8d)];continue;}break;}const _0x1d4c28=_0x556688(_0x5c4630,_0x56bdb4(0x74));if(_0x1d4c28&&_0x56bdb4(0x7e)!==_0x1d4c28&&this[_0x56bdb4(0x76)][_0x56bdb4(0x77)](_0x1d4c28)){_0x5fec0=_0x5c4630;break;}_0x5c4630=_0x5c4630[_0x56bdb4(0x8d)];}return _0x5fec0;}[_0x100e40(0xb4)](_0x4e40de){const _0x54f856=_0x100e40;_0x2f25c3(_0x4e40de)&&_0x72b893(_0x54f856(0x74),null,_0x4e40de)[_0x54f856(0x83)](_0x8809fc=>{const _0x56494e=_0x54f856;if(this[_0x56494e(0x7d)](_0x8809fc)&&!this[_0x56494e(0xb3)](_0x8809fc)){const _0x2614a6=_0x556688(_0x8809fc,_0x56494e(0x74));_0x2cb78a(_0x8809fc,_0x56494e(0x80),_0x2614a6),_0x2cb78a(_0x8809fc,_0x56494e(0x74),null);}});}[_0x100e40(0x7c)](_0xbc1c33){const _0x59b6b0=_0x100e40;if(!_0xbc1c33)return null;if(_0x2f25c3(_0xbc1c33))return _0x556688(_0xbc1c33,_0x59b6b0(0x74));if(_0x1a54bb(_0xbc1c33)){const _0x4f70d8=_0xb1ed95(_0xbc1c33)[_0x59b6b0(0x8b)](/removed[\s*-]data-id="([^"]+)"/);if(_0x4f70d8&&_0x4f70d8[0x1])return _0x4f70d8[0x1];}return null;}[_0x100e40(0x91)](_0x63c19c){const _0x2ecaaa=_0x100e40;if(_0x1a54bb(_0x63c19c)){const _0x2c6b97=_0xb1ed95(_0x63c19c)[_0x2ecaaa(0x8b)](/removed[\s*-]data-id="([^"]+)"/);_0x2c6b97&&_0x2c6b97[0x1]&&this[_0x2ecaaa(0x9f)][_0x2ecaaa(0x94)][_0x2ecaaa(0xb5)](_0x2c6b97[0x1]);}}[_0x100e40(0x99)](_0x40a68d){const _0x381093=_0x100e40;return this[_0x381093(0x7d)](_0x40a68d)?_0x556688(_0x40a68d,_0x381093(0x74)):this[_0x381093(0x79)]();}[_0x100e40(0xaa)](_0x54e3c8){const _0x5df481=_0x100e40;_0x52d22e(_0x54e3c8)[_0x5df481(0x93)](_0x59c45a=>this[_0x5df481(0xa4)](_0x59c45a)||this[_0x5df481(0x7b)](_0x59c45a))[_0x5df481(0x83)](_0x26ba6f=>{_0x363b06(_0x26ba6f);});}[_0x100e40(0x87)](_0x59b9c6){const _0x1016e0=_0x100e40,_0x4d4133=_0x59b9c6[_0x1016e0(0x98)],_0x3a6c15=_0x4d4133[_0x4d4133[_0x1016e0(0x9d)]-0x1];_0x3a6c15&&_0x2f25c3(_0x3a6c15)&&_0x2cb78a(_0x3a6c15,_0x1016e0(0xa2),_0x1016e0(0x9a));}[_0x100e40(0xac)](_0x3da106,_0x2541b0){const _0x7b3cdd=_0x100e40,_0x4deb6b=_0x4d932a(_0x7b3cdd(0xa2),_0x7b3cdd(0x9a),_0x3da106);if(!_0x4deb6b)return;const _0x3b28d5=_0x591630(_0x4deb6b)[_0x7b3cdd(0x86)](0x0,-0x1),_0x2fb0b6=_0x3b28d5[_0x7b3cdd(0x9d)];let _0x4cba0d=_0x4deb6b;if(_0x2fb0b6>_0x2541b0){let _0xf6f351=_0x2fb0b6,_0x5a056c=null;for(;_0xf6f351>_0x2541b0&&_0xf6f351>=0x0;)_0xf6f351--,_0x5a056c=_0x3b28d5[_0xf6f351];_0x5a056c&&(_0x4cba0d=_0x5a056c,_0x2cb78a(_0x4deb6b,_0x7b3cdd(0xa2),null),_0x2cb78a(_0x5a056c,_0x7b3cdd(0xa2),_0x7b3cdd(0x9a)));}else{if(_0x2fb0b6<_0x2541b0){let _0x29c071=_0x2fb0b6,_0xb2fe6a=_0x4deb6b;for(;_0x29c071<_0x2541b0;){const _0x3c3b37=_0xb2fe6a[_0x7b3cdd(0x98)][_0x7b3cdd(0x93)](_0xa03a0d=>_0x2f25c3(_0xa03a0d));if(0x0===_0x3c3b37[_0x7b3cdd(0x9d)])break;_0x29c071++,_0xb2fe6a=_0x3c3b37[_0x3c3b37[_0x7b3cdd(0x9d)]-0x1];}_0xb2fe6a&&(_0x4cba0d=_0xb2fe6a,_0x2cb78a(_0x4deb6b,_0x7b3cdd(0xa2),null),_0x2cb78a(_0xb2fe6a,_0x7b3cdd(0xa2),_0x7b3cdd(0x9a)));}}let _0x3519c2=_0x4cba0d;for(;_0x3519c2;){for(;_0x3519c2[_0x7b3cdd(0x7a)];)_0x3519c2=_0x3519c2[_0x7b3cdd(0x7a)],_0x2f25c3(_0x3519c2)&&_0x2cb78a(_0x3519c2,_0x7b3cdd(0xa2),_0x7b3cdd(0x9a));_0x3519c2=_0x3519c2[_0x7b3cdd(0x85)];}}[_0x100e40(0x84)](_0x232d80){const _0x231fbb=_0x100e40;return Boolean(_0x231fbb(0x7e)===_0x556688(_0x232d80,_0x231fbb(0x74)));}[_0x100e40(0x7d)](_0x1f99d3){const _0x5969c0=_0x100e40;return Boolean((_0x556688(_0x1f99d3,_0x5969c0(0x74))||'')[_0x5969c0(0x9d)]>0x0&&_0x5969c0(0x7e)!==_0x556688(_0x1f99d3,_0x5969c0(0x74)));}[_0x100e40(0xa4)](_0x4ca2de){const _0x202e10=_0x100e40;return!!_0x4ca2de&&Boolean(_0x1a54bb(_0x4ca2de)&&_0xb1ed95(_0x4ca2de)[_0x202e10(0x8b)](/removed[\s*-]data-id="[^"]+"/));}[_0x100e40(0xb3)](_0x4f8123){const _0x55a2ae=_0x100e40;let _0x248fdb=_0x4f8123[_0x55a2ae(0x85)];for(;_0x248fdb;){if(_0x556688(_0x248fdb,_0x55a2ae(0x80)))return!0x0;_0x248fdb=_0x248fdb[_0x55a2ae(0x85)];}return!0x1;}[_0x100e40(0x7b)](_0x3522e2){const _0x4fce5c=_0x100e40;return Boolean(_0x1a54bb(_0x3522e2)&&_0xb1ed95(_0x3522e2)[_0x4fce5c(0x8b)](/\s*existing[\s*-](content|document)\s*/g));}}function _0x47f8(){const _0x5b8b54=['includes','data-removed','_findNextElementWithDataId','_hasWrappedParent','_markWrappedElements','push','afterbegin','map','from','12rtEAjr','data-id','markUnstableElements','_existingDataIds','has','newIds','_generateUid','nextSibling','_isExistingContentComment','_getNodeDataId','_isExistingNode','new-element','9980100EhBcjn','data-wrapped-id','indexOf','_findPrevElementWithDataId','forEach','_isNewNode','parentNode','slice','_markLastTagElementUnstable','cloneNode','_findReferenceNode','42882phWPhd','match','_insertNodes','previousSibling','nodeType','3556064aPrcCj','modifiedIds','_storeDeletedElementIds','splice','filter','removedIds','569208sTsVus','markUnstableElementsDepth','_findFallbackReferenceNode','childNodes','_getUid','true','lastTouchedId','_replaceNode','length','invalidIds','_touchedNodesState','5283170CYJNTv','3347382pzIwtg','data-unstable','beforebegin','_isDelNode','merge','lastChild','replaceRemovedWith','trim','reverse','_removeSpecialComments','496638uHuExT','_markUnstableElements','cutAfterLastChange','352ZRkBTm','afterend'];_0x47f8=function(){return _0x5b8b54;};return _0x47f8();}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d330e=_0x3c6f;(function(_0x559d48,_0x889a10){const _0x4d81f7=_0x3c6f,_0x4865ce=_0x559d48();while(!![]){try{const _0x16aed2=-parseInt(_0x4d81f7(0x73))/0x1+parseInt(_0x4d81f7(0x81))/0x2+-parseInt(_0x4d81f7(0x7e))/0x3+-parseInt(_0x4d81f7(0x7c))/0x4*(parseInt(_0x4d81f7(0x7d))/0x5)+-parseInt(_0x4d81f7(0x7b))/0x6+parseInt(_0x4d81f7(0x83))/0x7+parseInt(_0x4d81f7(0x82))/0x8;if(_0x16aed2===_0x889a10)break;else _0x4865ce['push'](_0x4865ce['shift']());}catch(_0x4888c7){_0x4865ce['push'](_0x4865ce['shift']());}}}(_0x1495,0x8d1e5));import{ObservableMixin as _0xc429b}from'ckeditor5/src/utils.js';function _0x1495(){const _0x411ed7=['2012697BBZxKD','_m2html','parseAndNormalizeHTML','1798896NDtqPi','5806864rhnyzK','6359962dEvUVa','371756qDZCXx','convertMarkdownToHTML','parse','children','</dummy>','replace','<dummy>','_parseHTML','2768754kWCgvj','676yWuaQV','13365aLAYxk'];_0x1495=function(){return _0x411ed7;};return _0x1495();}function _0x3c6f(_0x16d557,_0x2b2aa1){const _0x149585=_0x1495();return _0x3c6f=function(_0x3c6f8c,_0x508551){_0x3c6f8c=_0x3c6f8c-0x73;let _0x3dadd5=_0x149585[_0x3c6f8c];return _0x3dadd5;},_0x3c6f(_0x16d557,_0x2b2aa1);}import{MarkdownGfmMdToHtml as _0x3a8f14}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x1c12e3}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0xc429b(){[_0x3d330e(0x7f)];constructor(){const _0x15726f=_0x3d330e;super(),this[_0x15726f(0x7f)]=new _0x3a8f14();}[_0x3d330e(0x74)](_0x2a1e38){const _0xf0551=_0x3d330e,_0x5a763d=this[_0xf0551(0x7f)][_0xf0551(0x75)](_0x2a1e38);return this[_0xf0551(0x80)](_0x5a763d);}[_0x3d330e(0x80)](_0x547156){const _0xcf3346=_0x3d330e;return this[_0xcf3346(0x7a)](_0x547156);}[_0x3d330e(0x7a)](_0x579cfb){const _0x54e462=_0x3d330e,_0x28c6b4=_0x579cfb[_0x54e462(0x78)](/^\t+/gm,'\x20')[_0x54e462(0x78)](/\n*/g,'')[_0x54e462(0x78)](/\s+/g,'\x20')[_0x54e462(0x78)](/<[^>]*?$/g,''),_0x148532=_0x1c12e3(_0x54e462(0x79)+_0x28c6b4+_0x54e462(0x77));return _0x148532[_0x54e462(0x76)]=_0x148532[_0x54e462(0x76)][0x0][_0x54e462(0x76)],_0x148532;}}
23
+ const _0x29a7b5=_0x3901;function _0x153c(){const _0x105638=['children','2948352HopaoU','convertMarkdownToHTML','1710zWJeeF','9011960NpGeex','4IyIDQm','parse','6095824PzaCnQ','_m2html','replace','865BdzntW','<dummy>','</dummy>','_parseHTML','1545400TfMcWJ','2648109JDCdJy','parseAndNormalizeHTML','23874291RFjmsN'];_0x153c=function(){return _0x105638;};return _0x153c();}(function(_0x561c85,_0x4e6a43){const _0x220902=_0x3901,_0x154c44=_0x561c85();while(!![]){try{const _0x4db395=parseInt(_0x220902(0xbf))/0x1*(-parseInt(_0x220902(0xb8))/0x2)+parseInt(_0x220902(0xc4))/0x3*(parseInt(_0x220902(0xba))/0x4)+-parseInt(_0x220902(0xc3))/0x5+parseInt(_0x220902(0xc8))/0x6+-parseInt(_0x220902(0xbc))/0x7+-parseInt(_0x220902(0xb9))/0x8+parseInt(_0x220902(0xc6))/0x9;if(_0x4db395===_0x4e6a43)break;else _0x154c44['push'](_0x154c44['shift']());}catch(_0x2ac818){_0x154c44['push'](_0x154c44['shift']());}}}(_0x153c,0xef74c));import{ObservableMixin as _0x20274a}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x5d4baf}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x516ddc}from'../utils/htmlparser.js';function _0x3901(_0x162e02,_0x73c72e){const _0x153c28=_0x153c();return _0x3901=function(_0x390128,_0x4dd634){_0x390128=_0x390128-0xb7;let _0x207d9c=_0x153c28[_0x390128];return _0x207d9c;},_0x3901(_0x162e02,_0x73c72e);}export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x20274a(){[_0x29a7b5(0xbd)];constructor(){const _0x89657d=_0x29a7b5;super(),this[_0x89657d(0xbd)]=new _0x5d4baf();}[_0x29a7b5(0xb7)](_0x488070){const _0xb10262=_0x29a7b5,_0x409277=this[_0xb10262(0xbd)][_0xb10262(0xbb)](_0x488070);return this[_0xb10262(0xc5)](_0x409277);}[_0x29a7b5(0xc5)](_0x257dc4){const _0x229e11=_0x29a7b5;return this[_0x229e11(0xc2)](_0x257dc4);}[_0x29a7b5(0xc2)](_0x7d8ee3){const _0x49564c=_0x29a7b5,_0x187341=_0x7d8ee3[_0x49564c(0xbe)](/^\t+/gm,'\x20')[_0x49564c(0xbe)](/\n*/g,'')[_0x49564c(0xbe)](/\s+/g,'\x20')[_0x49564c(0xbe)](/<[^>]*?$/g,''),_0x1a0a5c=_0x516ddc(_0x49564c(0xc0)+_0x187341+_0x49564c(0xc1));return _0x1a0a5c[_0x49564c(0xc7)]=_0x1a0a5c[_0x49564c(0xc7)][0x0][_0x49564c(0xc7)],_0x1a0a5c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x2b6ca0,_0x4ba032){var _0x308c5d=_0x4141,_0x33b09d=_0x2b6ca0();while(!![]){try{var _0x1ef6c5=parseInt(_0x308c5d(0x90))/0x1+-parseInt(_0x308c5d(0x94))/0x2*(-parseInt(_0x308c5d(0x93))/0x3)+-parseInt(_0x308c5d(0x8b))/0x4*(parseInt(_0x308c5d(0x91))/0x5)+parseInt(_0x308c5d(0x8d))/0x6*(-parseInt(_0x308c5d(0x87))/0x7)+parseInt(_0x308c5d(0x8c))/0x8+parseInt(_0x308c5d(0x8f))/0x9*(parseInt(_0x308c5d(0x92))/0xa)+-parseInt(_0x308c5d(0x8a))/0xb*(-parseInt(_0x308c5d(0x88))/0xc);if(_0x1ef6c5===_0x4ba032)break;else _0x33b09d['push'](_0x33b09d['shift']());}catch(_0x50115b){_0x33b09d['push'](_0x33b09d['shift']());}}}(_0x3272,0x2ddf0));function _0x3272(){var _0x2fa8d8=['ck-ai-disclaimer__content','357921VOApLC','264954CxzbXJ','106010ilLDkd','10djKrgQ','9ctLYLG','154678VuhCXP','AI_DISCLAIMER_TEXT','setTemplate','div','3101tVZsjy','12TaqkCA','ck-ai-disclaimer','200640XWPCtQ','64OQvNOI','2498912gbxaqz','4608RGeBZJ'];_0x3272=function(){return _0x2fa8d8;};return _0x3272();}function _0x4141(_0x3390c4,_0x4260ff){var _0x327245=_0x3272();return _0x4141=function(_0x4141d6,_0x255a2f){_0x4141d6=_0x4141d6-0x87;var _0x28d8e0=_0x327245[_0x4141d6];return _0x28d8e0;},_0x4141(_0x3390c4,_0x4260ff);}import{View as _0xf10cca}from'ckeditor5/src/ui.js';import{getTranslation as _0x49f23f}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0xf10cca{constructor(_0x494f17){var _0x3ccfa2=_0x4141;super(_0x494f17),this[_0x3ccfa2(0x96)]({'tag':_0x3ccfa2(0x97),'attributes':{'class':['ck',_0x3ccfa2(0x89)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x3ccfa2(0x8e)]},'children':[{'text':_0x49f23f(_0x494f17,_0x3ccfa2(0x95))}]}]});}}
23
+ (function(_0x9c395a,_0x2048f0){var _0x2f02ba=_0xdb03,_0x165d95=_0x9c395a();while(!![]){try{var _0x33c1c0=parseInt(_0x2f02ba(0x1ce))/0x1+parseInt(_0x2f02ba(0x1cb))/0x2*(-parseInt(_0x2f02ba(0x1d0))/0x3)+-parseInt(_0x2f02ba(0x1d7))/0x4+parseInt(_0x2f02ba(0x1d6))/0x5*(-parseInt(_0x2f02ba(0x1d1))/0x6)+parseInt(_0x2f02ba(0x1d4))/0x7*(parseInt(_0x2f02ba(0x1d3))/0x8)+-parseInt(_0x2f02ba(0x1c9))/0x9*(parseInt(_0x2f02ba(0x1c7))/0xa)+-parseInt(_0x2f02ba(0x1d5))/0xb*(-parseInt(_0x2f02ba(0x1cc))/0xc);if(_0x33c1c0===_0x2048f0)break;else _0x165d95['push'](_0x165d95['shift']());}catch(_0x894e43){_0x165d95['push'](_0x165d95['shift']());}}}(_0x27da,0xf09fe));import{View as _0x1e964f}from'ckeditor5/src/ui.js';function _0xdb03(_0x5b6c1d,_0x21565b){var _0x27da13=_0x27da();return _0xdb03=function(_0xdb030d,_0x1de72d){_0xdb030d=_0xdb030d-0x1c7;var _0x2a71ae=_0x27da13[_0xdb030d];return _0x2a71ae;},_0xdb03(_0x5b6c1d,_0x21565b);}function _0x27da(){var _0xcf463a=['14076vuypVM','ck-ai-disclaimer__content','1526645hREAMZ','AI_DISCLAIMER_TEXT','14064dKilyw','472092ItSEQl','ck-ai-disclaimer','4854688yLNpmk','21mivEbu','16819Sspaso','65HgRYkb','6428580NSGedY','3343090jjgakw','div','9iCTbVf','setTemplate','508HQhaLy'];_0x27da=function(){return _0xcf463a;};return _0x27da();}import{getTranslation as _0x145bbb}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x1e964f{constructor(_0x1e704a){var _0x369af2=_0xdb03;super(_0x1e704a),this[_0x369af2(0x1ca)]({'tag':_0x369af2(0x1c8),'attributes':{'class':['ck',_0x369af2(0x1d2)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x369af2(0x1cd)]},'children':[{'text':_0x145bbb(_0x1e704a,_0x369af2(0x1cf))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5983(_0x1acb4c,_0x17b11f){const _0x391ef7=_0x391e();return _0x5983=function(_0x598372,_0x5f0afd){_0x598372=_0x598372-0xb9;let _0x320b0e=_0x391ef7[_0x598372];return _0x320b0e;},_0x5983(_0x1acb4c,_0x17b11f);}const _0x2ed96e=_0x5983;(function(_0x2ffa1c,_0x2e198b){const _0x569a84=_0x5983,_0x52e91f=_0x2ffa1c();while(!![]){try{const _0x27e921=-parseInt(_0x569a84(0xc8))/0x1+parseInt(_0x569a84(0xc7))/0x2*(parseInt(_0x569a84(0xcd))/0x3)+-parseInt(_0x569a84(0xcb))/0x4+-parseInt(_0x569a84(0xd7))/0x5*(-parseInt(_0x569a84(0xd5))/0x6)+parseInt(_0x569a84(0xc0))/0x7*(parseInt(_0x569a84(0xc2))/0x8)+parseInt(_0x569a84(0xdd))/0x9*(-parseInt(_0x569a84(0xbb))/0xa)+-parseInt(_0x569a84(0xc4))/0xb;if(_0x27e921===_0x2e198b)break;else _0x52e91f['push'](_0x52e91f['shift']());}catch(_0x13e0db){_0x52e91f['push'](_0x52e91f['shift']());}}}(_0x391e,0x9feee));import{View as _0x70e6ef}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x70e6ef{constructor(_0x2da70e,_0x1e4a53){const _0x1a720c=_0x5983;super(_0x2da70e),this[_0x1a720c(0xc5)]({'tag':_0x1a720c(0xc9),'attributes':{'class':['ck',_0x1a720c(0xdc)]},'children':this[_0x1a720c(0xd8)](_0x1e4a53)});}[_0x2ed96e(0xd8)](_0x200537){const _0x8000b3=_0x2ed96e,_0x412805=['ck',_0x8000b3(0xba)];return _0x200537[_0x8000b3(0xbd)](_0x22ccda=>{const _0xd5f4ef=_0x8000b3;let _0x17030e='';switch(_0x22ccda[_0xd5f4ef(0xe1)][_0xd5f4ef(0xd1)]){case _0xd5f4ef(0xd3):_0x17030e=_0xd5f4ef(0xc3);break;case _0xd5f4ef(0xca):_0x17030e=_0xd5f4ef(0xbe);break;case _0xd5f4ef(0xbc):_0x17030e=_0xd5f4ef(0xd4);}return{'tag':_0x22ccda[_0xd5f4ef(0xbf)],'attributes':{'class':[..._0x412805,_0x22ccda[_0xd5f4ef(0xe1)][_0xd5f4ef(0xcc)]?_0x22ccda[_0xd5f4ef(0xe1)][_0xd5f4ef(0xcc)]:''],'style':_0xd5f4ef(0xcf)+_0x22ccda[_0xd5f4ef(0xe1)][_0xd5f4ef(0xce)]+_0xd5f4ef(0xd0)+_0x22ccda[_0xd5f4ef(0xe1)][_0xd5f4ef(0xd2)]+';'+_0x17030e}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x2ed96e(0xc9),'attributes':{'width':_0x2ed96e(0xd6),'height':_0x2ed96e(0xc1),'align':_0x2ed96e(0xd3)}},{'tag':_0x2ed96e(0xc9),'attributes':{'width':_0x2ed96e(0xe0),'height':_0x2ed96e(0xc6),'align':_0x2ed96e(0xd3)}},{'tag':_0x2ed96e(0xc9),'attributes':{'width':_0x2ed96e(0xd6),'height':_0x2ed96e(0xb9),'align':_0x2ed96e(0xd3)}},{'tag':_0x2ed96e(0xc9),'attributes':{'width':_0x2ed96e(0xde),'height':_0x2ed96e(0xc6),'align':_0x2ed96e(0xd3)}},{'tag':_0x2ed96e(0xc9),'attributes':{'width':_0x2ed96e(0xd6),'height':_0x2ed96e(0xdf),'align':_0x2ed96e(0xd3)}},{'tag':_0x2ed96e(0xc9),'attributes':{'width':_0x2ed96e(0xe0),'height':_0x2ed96e(0xc6),'align':_0x2ed96e(0xd3)}},{'tag':_0x2ed96e(0xc9),'attributes':{'width':_0x2ed96e(0xd6),'height':_0x2ed96e(0xb9),'align':_0x2ed96e(0xd3)}}],'aiHistory':ta(0x5,_0x2ed96e(0xd6),_0x2ed96e(0xe2),_0x2ed96e(0xd3)),'aiChatResources':ta(0x8,_0x2ed96e(0xd6),_0x2ed96e(0xdb),_0x2ed96e(0xd3)),'aiReviewChecks':[{'tag':_0x2ed96e(0xc9),'attributes':{'width':_0x2ed96e(0xd9),'height':_0x2ed96e(0xdb),'align':_0x2ed96e(0xbc)}},{'tag':_0x2ed96e(0xc9),'attributes':{'width':_0x2ed96e(0xd6),'height':_0x2ed96e(0xdb),'align':_0x2ed96e(0xbc)}},{'tag':_0x2ed96e(0xc9),'attributes':{'width':_0x2ed96e(0xd9),'height':_0x2ed96e(0xdb),'align':_0x2ed96e(0xbc)}}]};function ta(_0x3e5507,_0x19b703,_0x21109b,_0x295aba){const _0x58d0bc=_0x2ed96e;return new Array(_0x3e5507)[_0x58d0bc(0xda)](null)[_0x58d0bc(0xbd)](()=>({'tag':_0x58d0bc(0xc9),'attributes':{'width':_0x19b703,'height':_0x21109b,'align':_0x295aba}}));}function _0x391e(){const _0x35c3a6=['fill','24px','ck-ai-skeleton','153vDeAbJ','150px','140px','250px','attributes','44px','88px','ck-ai-skeleton__item','151060TjphaT','left','map','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','tag','7rCuHSy','72px','10002720bIvRSM','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','8992214geCfoo','setTemplate','40px','37468loDpFt','649252BvMydi','div','center','5052208wTUiel','class','192HhuBkr','width','width:\x20',';\x20height:\x20','align','height','right','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','60FtCTHx','100%','596175fqdpno','_createSkeletonItems','128px'];_0x391e=function(){return _0x35c3a6;};return _0x391e();}
23
+ const _0x2b2b09=_0x3c01;(function(_0x168f08,_0x31530c){const _0x249b6f=_0x3c01,_0x3e3d09=_0x168f08();while(!![]){try{const _0x37d6d6=-parseInt(_0x249b6f(0x110))/0x1+-parseInt(_0x249b6f(0x108))/0x2+-parseInt(_0x249b6f(0x101))/0x3*(-parseInt(_0x249b6f(0x102))/0x4)+parseInt(_0x249b6f(0x121))/0x5*(parseInt(_0x249b6f(0x114))/0x6)+parseInt(_0x249b6f(0xfc))/0x7+parseInt(_0x249b6f(0x115))/0x8*(parseInt(_0x249b6f(0x10b))/0x9)+parseInt(_0x249b6f(0x113))/0xa*(-parseInt(_0x249b6f(0x103))/0xb);if(_0x37d6d6===_0x31530c)break;else _0x3e3d09['push'](_0x3e3d09['shift']());}catch(_0x5e7a6c){_0x3e3d09['push'](_0x3e3d09['shift']());}}}(_0x3a50,0x8af6d));import{View as _0x3c6a13}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x3c6a13{constructor(_0x2a4e64,_0x529cbf){const _0x16145a=_0x3c01;super(_0x2a4e64),this[_0x16145a(0x10d)]({'tag':_0x16145a(0x106),'attributes':{'class':['ck',_0x16145a(0x105)]},'children':this[_0x16145a(0x119)](_0x529cbf)});}[_0x2b2b09(0x119)](_0x4cc74f){const _0x15d18d=_0x2b2b09,_0x5ae60d=['ck',_0x15d18d(0x10a)];return _0x4cc74f[_0x15d18d(0x112)](_0x59c356=>{const _0x5b8f78=_0x15d18d;let _0x372e02='';switch(_0x59c356[_0x5b8f78(0x116)][_0x5b8f78(0xfd)]){case _0x5b8f78(0x10e):_0x372e02=_0x5b8f78(0x11d);break;case _0x5b8f78(0x109):_0x372e02=_0x5b8f78(0x122);break;case _0x5b8f78(0x10f):_0x372e02=_0x5b8f78(0x11f);}return{'tag':_0x59c356[_0x5b8f78(0x10c)],'attributes':{'class':[..._0x5ae60d,_0x59c356[_0x5b8f78(0x116)][_0x5b8f78(0x111)]?_0x59c356[_0x5b8f78(0x116)][_0x5b8f78(0x111)]:''],'style':_0x5b8f78(0x11a)+_0x59c356[_0x5b8f78(0x116)][_0x5b8f78(0x117)]+_0x5b8f78(0xfb)+_0x59c356[_0x5b8f78(0x116)][_0x5b8f78(0x104)]+';'+_0x372e02}};});}}function _0x3a50(){const _0x132131=['center','ck-ai-skeleton__item','7063137kgIubk','tag','setTemplate','right','left','344271kMxhIA','class','map','4302980AOveBc','51810noKyGU','8AGBweX','attributes','width','150px','_createSkeletonItems','width:\x20','fill','100%','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','128px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','72px','335tVRgiO','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','88px','24px',';\x20height:\x20','3485265eTnWVm','align','44px','250px','140px','27xFwmBq','393292rgQaAY','33zAuDro','height','ck-ai-skeleton','div','40px','1083556SuHuCp'];_0x3a50=function(){return _0x132131;};return _0x3a50();}function _0x3c01(_0x3513ce,_0x119bea){const _0x3a501f=_0x3a50();return _0x3c01=function(_0x3c01f0,_0x245fa6){_0x3c01f0=_0x3c01f0-0xfb;let _0x41739c=_0x3a501f[_0x3c01f0];return _0x41739c;},_0x3c01(_0x3513ce,_0x119bea);}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x2b2b09(0x106),'attributes':{'width':_0x2b2b09(0x11c),'height':_0x2b2b09(0x120),'align':_0x2b2b09(0x10e)}},{'tag':_0x2b2b09(0x106),'attributes':{'width':_0x2b2b09(0xff),'height':_0x2b2b09(0x107),'align':_0x2b2b09(0x10e)}},{'tag':_0x2b2b09(0x106),'attributes':{'width':_0x2b2b09(0x11c),'height':_0x2b2b09(0x123),'align':_0x2b2b09(0x10e)}},{'tag':_0x2b2b09(0x106),'attributes':{'width':_0x2b2b09(0x118),'height':_0x2b2b09(0x107),'align':_0x2b2b09(0x10e)}},{'tag':_0x2b2b09(0x106),'attributes':{'width':_0x2b2b09(0x11c),'height':_0x2b2b09(0x100),'align':_0x2b2b09(0x10e)}},{'tag':_0x2b2b09(0x106),'attributes':{'width':_0x2b2b09(0xff),'height':_0x2b2b09(0x107),'align':_0x2b2b09(0x10e)}},{'tag':_0x2b2b09(0x106),'attributes':{'width':_0x2b2b09(0x11c),'height':_0x2b2b09(0x123),'align':_0x2b2b09(0x10e)}}],'aiHistory':ta(0x5,_0x2b2b09(0x11c),_0x2b2b09(0xfe),_0x2b2b09(0x10e)),'aiChatResources':ta(0x8,_0x2b2b09(0x11c),_0x2b2b09(0x124),_0x2b2b09(0x10e)),'aiReviewChecks':[{'tag':_0x2b2b09(0x106),'attributes':{'width':_0x2b2b09(0x11e),'height':_0x2b2b09(0x124),'align':_0x2b2b09(0x10f)}},{'tag':_0x2b2b09(0x106),'attributes':{'width':_0x2b2b09(0x11c),'height':_0x2b2b09(0x124),'align':_0x2b2b09(0x10f)}},{'tag':_0x2b2b09(0x106),'attributes':{'width':_0x2b2b09(0x11e),'height':_0x2b2b09(0x124),'align':_0x2b2b09(0x10f)}}]};function ta(_0x3d2bc8,_0x2b5f3a,_0x24eb01,_0x3174d5){const _0x1679a3=_0x2b2b09;return new Array(_0x3d2bc8)[_0x1679a3(0x11b)](null)[_0x1679a3(0x112)](()=>({'tag':_0x1679a3(0x106),'attributes':{'width':_0x2b5f3a,'height':_0x24eb01,'align':_0x3174d5}}));}