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

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 _0xc0886d=_0x2326;(function(_0x481eb5,_0x412ab0){const _0x3f2472=_0x2326,_0x48bbce=_0x481eb5();while(!![]){try{const _0x19833b=-parseInt(_0x3f2472(0x141))/0x1+parseInt(_0x3f2472(0x153))/0x2*(parseInt(_0x3f2472(0x105))/0x3)+parseInt(_0x3f2472(0x165))/0x4*(parseInt(_0x3f2472(0x107))/0x5)+parseInt(_0x3f2472(0x173))/0x6*(-parseInt(_0x3f2472(0x157))/0x7)+parseInt(_0x3f2472(0x108))/0x8*(-parseInt(_0x3f2472(0x167))/0x9)+parseInt(_0x3f2472(0x16c))/0xa+parseInt(_0x3f2472(0xff))/0xb;if(_0x19833b===_0x412ab0)break;else _0x48bbce['push'](_0x48bbce['shift']());}catch(_0x3a2fcb){_0x48bbce['push'](_0x48bbce['shift']());}}}(_0x28af,0xf2e8c));import{ViewDowncastWriter as _0x2748c8}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x361c52,Editor as _0x24b77d}from'ckeditor5/src/core.js';import{uid as _0x4f0307}from'ckeditor5/src/utils.js';function _0x28af(){const _0xd7399b=['modelToDataWithIds','removeMarker','toData','join','sort','ai-selection:','schema','_displayedFakeSelectionLocked','addMarker','ck-fake-ai-selection','createUIElement',':end>','end','48xtHNGa','isBefore','domConverter','push','2568587rpVzZM','getSelection','config','markerName','_displayedFakeSelectionId','start','isOfficialPlugin','_nextDataId','data-id','markerToElement','editingDowncast','getStart','name','document','1832468Ugutvu','_setDataIdsOnChildren','16260444PEeZLD','element','isAfter','context','convertAiChatSelectionMarker','16086540howieb','emptyElement','ai-selection','pluginName','get','_sessionId','getItems','30hyVJMj','9851424BThFXD','fromCharCode','substring','AIEditing','model','getLastMatchingPosition','213582WSJQhx','random','10GWiiBw','8ZIbanB','change','data','isOpening','getSelectionText','_getMarkersInDocumentOrder','getMarkersGroup','_getDocumentDataStringFromView','htmlWriter','getRoot','sessionId','for','conversion','getChildren',':end></','from','getDocumentData','version','createRange','view',':start>','has','isContent','setAttribute','afterInit','removeAllRanges','plugins','RealTimeCollaborationClient','add','markers','toView','dataDowncast','_integrateEditor','processor','_outputDataProcessor','editors','hideFakeVisualSelection','ready','viewToDom','indexOf','getRanges','trim','listenTo','selection','isPremiumPlugin','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','floor','length','$textProxy','_setOutputDataProcessor','showFakeVisualSelection','ai.models.showModelSelector','editing',':start></','ck-ai-assistant-ui_theme','locale','isAtEnd','492751yyFfVb','getHtml','containerElement','define','markerToHighlight'];_0x28af=function(){return _0xd7399b;};return _0x28af();}function _0x2326(_0x2803a4,_0x3fda7b){const _0x28af5e=_0x28af();return _0x2326=function(_0x232653,_0xaa9bdf){_0x232653=_0x232653-0xff;let _0x1424e2=_0x28af5e[_0x232653];return _0x1424e2;},_0x2326(_0x2803a4,_0x3fda7b);}import{getTranslation as _0x41fc5c}from'./utils/common-translations.js';import{getEditorFromContext as _0x3f717a}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0xc0886d(0x16e);export class AIEditing extends _0x361c52{constructor(_0x33f3ef){const _0x9930c1=_0xc0886d;super(_0x33f3ef),this[_0x9930c1(0x16a)][_0x9930c1(0x159)][_0x9930c1(0x144)](_0x9930c1(0x13b),!0x0);}[_0xc0886d(0x12a)];[_0xc0886d(0x15b)]=null;[_0xc0886d(0x14d)]=!0x1;[_0xc0886d(0x171)];static get[_0xc0886d(0x16f)](){const _0x2273b4=_0xc0886d;return _0x2273b4(0x102);}static get[_0xc0886d(0x15d)](){return!0x0;}static get[_0xc0886d(0x134)](){return!0x0;}get[_0xc0886d(0x112)](){const _0x5bd2b6=_0xc0886d;if(!this[_0x5bd2b6(0x171)]){const _0x371438=_0x3f717a(this[_0x5bd2b6(0x16a)]),_0x450922=_0x371438[_0x5bd2b6(0x122)][_0x5bd2b6(0x11d)](_0x5bd2b6(0x123))&&_0x371438[_0x5bd2b6(0x122)][_0x5bd2b6(0x170)](_0x5bd2b6(0x123))[_0x5bd2b6(0x112)];this[_0x5bd2b6(0x171)]=_0x450922||_0x4f0307();}return this[_0x5bd2b6(0x171)];}async[_0xc0886d(0x118)](){const _0x104630=_0xc0886d,_0x329b3b=_0x3f717a(this[_0x104630(0x16a)]),_0xfecac5=_0x329b3b[_0x104630(0x103)],_0x1e8315=_0x329b3b[_0x104630(0x10a)][_0x104630(0x126)](_0xfecac5[_0x104630(0x164)][_0x104630(0x111)](),{'convertAiChatSelectionMarker':!0x0}),_0x15dd1c=new _0x2748c8(_0x329b3b[_0x104630(0x13c)][_0x104630(0x11b)][_0x104630(0x164)]);this[_0x104630(0x166)](_0x1e8315,_0x15dd1c);let _0x43cc2c=await this[_0x104630(0x10f)](_0x1e8315);const _0x21536e=this[_0x104630(0x10d)](),_0x1f04bc=[];for(const _0x2aaf05 of _0x21536e){const _0x368937='<'+_0x2aaf05[_0x104630(0x163)]+_0x104630(0x13d)+_0x2aaf05[_0x104630(0x163)]+_0x104630(0x11c),_0x1634f3=_0x43cc2c[_0x104630(0x12f)](_0x368937);_0x43cc2c=_0x43cc2c[_0x104630(0x101)](0x0,_0x1634f3)+_0x43cc2c[_0x104630(0x101)](_0x1634f3+_0x368937[_0x104630(0x137)]);const _0x290053='<'+_0x2aaf05[_0x104630(0x163)]+_0x104630(0x116)+_0x2aaf05[_0x104630(0x163)]+_0x104630(0x151),_0x5d05b0=_0x43cc2c[_0x104630(0x12f)](_0x290053);_0x43cc2c=_0x43cc2c[_0x104630(0x101)](0x0,_0x5d05b0)+_0x43cc2c[_0x104630(0x101)](_0x5d05b0+_0x290053[_0x104630(0x137)]),_0x1f04bc[_0x104630(0x156)]({'markerName':_0x2aaf05[_0x104630(0x163)],'start':_0x1634f3,'end':_0x5d05b0,'htmlFragment':_0x43cc2c[_0x104630(0x101)](_0x1634f3,_0x5d05b0)});}return{'content':_0x43cc2c,'version':_0x329b3b[_0x104630(0x103)][_0x104630(0x164)][_0x104630(0x119)],'sessionId':this[_0x104630(0x112)],'selections':_0x1f04bc};}async[_0xc0886d(0x120)](){const _0x1e8f90=_0xc0886d;this[_0x1e8f90(0x16a)]instanceof _0x24b77d?this[_0x1e8f90(0x128)](this[_0x1e8f90(0x16a)]):this[_0x1e8f90(0x132)](this[_0x1e8f90(0x16a)][_0x1e8f90(0x12b)],_0x1e8f90(0x124),(_0x1d9b79,_0x34d7e7)=>{const _0x350736=_0x1e8f90;_0x34d7e7['on'](_0x350736(0x12d),()=>{const _0x2359c1=_0x350736;this[_0x2359c1(0x128)](_0x34d7e7);});});}[_0xc0886d(0x139)](_0x1af953){const _0x32be39=_0xc0886d;this[_0x32be39(0x12a)]=_0x1af953;}async[_0xc0886d(0x10f)](_0x28ddd5){const _0x402404=_0xc0886d;let _0x529fdd;const _0x41f3b2=_0x3f717a(this[_0x402404(0x16a)]);if(this[_0x402404(0x12a)]){const _0x44a381=_0x41f3b2[_0x402404(0x10a)][_0x402404(0x129)][_0x402404(0x155)][_0x402404(0x12e)](_0x28ddd5),_0x3e826d=await this[_0x402404(0x12a)](_0x44a381);_0x529fdd=_0x41f3b2[_0x402404(0x10a)][_0x402404(0x129)][_0x402404(0x110)][_0x402404(0x142)](_0x3e826d);}else _0x529fdd=_0x41f3b2[_0x402404(0x10a)][_0x402404(0x129)][_0x402404(0x148)](_0x28ddd5);return _0x529fdd;}[_0xc0886d(0x128)](_0x184d68){const _0xa5132b=_0xc0886d;_0x184d68[_0xa5132b(0x114)][_0xa5132b(0x113)](_0xa5132b(0x161))[_0xa5132b(0x145)]({'model':_0xa5132b(0x16e),'view':{'classes':[_0xa5132b(0x14f),_0xa5132b(0x13e)],'priority':0xc}}),_0x184d68[_0xa5132b(0x114)][_0xa5132b(0x113)](_0xa5132b(0x127))[_0xa5132b(0x160)]({'model':_0xa5132b(0x16e),'view':(_0xe49d74,{writer:_0x4924eb,options:_0x395d93})=>_0x395d93[_0xa5132b(0x16b)]?_0x4924eb[_0xa5132b(0x150)](_0xe49d74[_0xa5132b(0x15a)]+':'+(_0xe49d74[_0xa5132b(0x10b)]?_0xa5132b(0x15c):_0xa5132b(0x152))):null});}[_0xc0886d(0x13a)](_0xc4251b,_0x15c1ef,_0x309f43=!0x1,_0x57f1ed=!0x1){const _0x11fd31=_0xc0886d;if(this[_0x11fd31(0x14d)]&&!_0x57f1ed)return!0x1;const _0x1fb4a8=_0x3f717a(this[_0x11fd31(0x16a)])[_0x11fd31(0x103)];return _0x1fb4a8[_0x11fd31(0x109)](_0x962f2f=>{const _0x596ee9=_0x11fd31;this[_0x596ee9(0x15b)]&&this[_0x596ee9(0x12c)](this[_0x596ee9(0x15b)]),this[_0x596ee9(0x15b)]=_0x15c1ef,this[_0x596ee9(0x14d)]=_0x309f43;let _0xc2d7be=0x0;for(let _0x8de879 of _0xc4251b){const _0x11c851=_0x596ee9(0x14b)+_0xc2d7be;if(_0x8de879[_0x596ee9(0x15c)][_0x596ee9(0x140)]){const _0x4de801=_0x8de879[_0x596ee9(0x15c)][_0x596ee9(0x104)](({item:_0x3a8682})=>!_0x1fb4a8[_0x596ee9(0x14c)][_0x596ee9(0x11e)](_0x3a8682),{'boundaries':_0x8de879});_0x8de879=_0x962f2f[_0x596ee9(0x11a)](_0x4de801,_0x8de879[_0x596ee9(0x152)]);}_0x962f2f[_0x596ee9(0x14e)](_0x11c851,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x8de879}),_0xc2d7be++;}}),window[_0x11fd31(0x158)]()?.[_0x11fd31(0x121)](),!0x0;}[_0xc0886d(0x12c)](_0x522c83){const _0x322a98=_0xc0886d;if(this[_0x322a98(0x15b)]!=_0x522c83)return!0x1;this[_0x322a98(0x15b)]=null,this[_0x322a98(0x14d)]=!0x1;const _0x103fa0=_0x3f717a(this[_0x322a98(0x16a)]),_0x4eec45=_0x103fa0[_0x322a98(0x103)][_0x322a98(0x125)][_0x322a98(0x10e)](_0x322a98(0x16e));return _0x103fa0[_0x322a98(0x103)][_0x322a98(0x109)](_0x1b368b=>{const _0x4bee87=_0x322a98;for(const _0x213ec1 of _0x4eec45)_0x1b368b[_0x4bee87(0x147)](_0x213ec1);}),!0x0;}async[_0xc0886d(0x146)](_0x5d05ba){const _0x419f51=_0xc0886d,_0x46d38e=_0x3f717a(this[_0x419f51(0x16a)]),_0x2a1d34=_0x46d38e[_0x419f51(0x10a)][_0x419f51(0x126)](_0x5d05ba),_0x20f715=new _0x2748c8(_0x46d38e[_0x419f51(0x13c)][_0x419f51(0x11b)][_0x419f51(0x164)]);return this[_0x419f51(0x166)](_0x2a1d34,_0x20f715),this[_0x419f51(0x10f)](_0x2a1d34);}[_0xc0886d(0x166)](_0x2148d8,_0x2658c2){const _0x1ed6c8=_0xc0886d;let _0x3a4a8c=!0x1;const _0x479e06=new Set();for(const _0x3776ed of _0x2148d8[_0x1ed6c8(0x115)]()){const _0x295715=_0x3776ed['is'](_0x1ed6c8(0x16d))||_0x3776ed['is'](_0x1ed6c8(0x143));if(!_0x3776ed['is'](_0x1ed6c8(0x168)))continue;(this[_0x1ed6c8(0x166)](_0x3776ed,_0x2658c2)||_0x295715)&&(_0x2658c2[_0x1ed6c8(0x11f)](_0x1ed6c8(0x15f),this[_0x1ed6c8(0x15e)](_0x479e06),_0x3776ed),_0x3a4a8c=!0x0);}return _0x3a4a8c;}[_0xc0886d(0x15e)](_0x48992f){const _0x1a4002=_0xc0886d;let _0x404698;do{_0x404698='';for(let _0x40e864=0x0;_0x40e864<0x4;_0x40e864++)_0x404698+=String[_0x1a4002(0x100)](0x61+Math[_0x1a4002(0x136)](0x1a*Math[_0x1a4002(0x106)]()));}while(_0x48992f[_0x1a4002(0x11d)](_0x404698));return _0x48992f[_0x1a4002(0x124)](_0x404698),_0x404698;}[_0xc0886d(0x10c)](){const _0xd25ea6=_0xc0886d,{model:_0x3592a2}=_0x3f717a(this[_0xd25ea6(0x16a)]),_0x1bc1ef=_0x3592a2[_0xd25ea6(0x164)][_0xd25ea6(0x133)],_0x175e95=[];for(const _0x2d5006 of _0x1bc1ef[_0xd25ea6(0x130)]())for(const _0x359295 of _0x2d5006[_0xd25ea6(0x172)]())_0x359295['is'](_0xd25ea6(0x138))?_0x175e95[_0xd25ea6(0x156)](_0x359295[_0xd25ea6(0x10a)]):_0x359295['is'](_0xd25ea6(0x168))&&_0x175e95[_0xd25ea6(0x137)]>0x0&&'\x20'!==_0x175e95[_0x175e95[_0xd25ea6(0x137)]-0x1]&&_0x175e95[_0xd25ea6(0x156)]('\x20');return _0x175e95[_0xd25ea6(0x137)]?'\x22'+_0x175e95[_0xd25ea6(0x149)]('')[_0xd25ea6(0x131)]()+'\x22':_0x41fc5c(this[_0xd25ea6(0x16a)][_0xd25ea6(0x13f)],_0xd25ea6(0x135));}[_0xc0886d(0x10d)](){const _0x420c81=_0xc0886d,_0x2f182b=_0x3f717a(this[_0x420c81(0x16a)])[_0x420c81(0x103)];return Array[_0x420c81(0x117)](_0x2f182b[_0x420c81(0x125)][_0x420c81(0x10e)](_0x420c81(0x16e)))[_0x420c81(0x14a)]((_0xbcdc03,_0x561dc6)=>_0xbcdc03[_0x420c81(0x162)]()[_0x420c81(0x154)](_0x561dc6[_0x420c81(0x162)]())?-0x1:_0xbcdc03[_0x420c81(0x162)]()[_0x420c81(0x169)](_0x561dc6[_0x420c81(0x162)]())?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 _0x39d631=_0x50a6;(function(_0x71a08c,_0x207939){const _0x1b485e=_0x50a6,_0x3ecddf=_0x71a08c();while(!![]){try{const _0xe40b00=-parseInt(_0x1b485e(0x15d))/0x1+parseInt(_0x1b485e(0x1a8))/0x2+parseInt(_0x1b485e(0x19e))/0x3*(-parseInt(_0x1b485e(0x1a3))/0x4)+parseInt(_0x1b485e(0x185))/0x5+parseInt(_0x1b485e(0x174))/0x6*(parseInt(_0x1b485e(0x1ab))/0x7)+-parseInt(_0x1b485e(0x170))/0x8+parseInt(_0x1b485e(0x166))/0x9;if(_0xe40b00===_0x207939)break;else _0x3ecddf['push'](_0x3ecddf['shift']());}catch(_0x38febf){_0x3ecddf['push'](_0x3ecddf['shift']());}}}(_0x2540,0xf2807));function _0x2540(){const _0xe917f8=['772339lbtWCG','type','interactionCreated','resetWebSearchState','message-metadata','modification','attributes','sources','error','2616597qwQUPD','length','_handleToolResultData','_isWebSearching','abort','replyContentUpdated','isStopped','destroy','forEach','splice','6006680gbpgat','currentRequest','getReply','delegate','2361510ifidBw','ai-chat-interaction-error','_isReasoning','source','_handleToolNotificationData','toolDataReceived','replyCreated','currentReply','getDocumentContext','data','sendRequest','start','editor','parse','result','push','conversationTitle','2654825DeXCOI','webSearchFinished','actionCallId','reasoning','event','setConversationTitle','getStream','createReply','modification-delta','reasoningFinished','mcp-tool-notification','textDelta','fire','toolName','text','_finalizeInteraction','resetReasoningState','interactionFinished','replyChangeGroupStateUpdated','interactionStarted','webSearchStarted','isDestroyed','find','content','conversation-title','12MOEBep','stop','notification','appendContent','replies','602340iLVMtb','mcp-tool-result','callId','abortController','action-metadata','2232696ysKGdY','text-delta','reasoningStarted','21AQvUbB','web-search','stopListening','messageId','connector','done','interactionStopped','interactionDestroyed'];_0x2540=function(){return _0xe917f8;};return _0x2540();}function _0x50a6(_0x5eeb29,_0x19fdf8){const _0x25403f=_0x2540();return _0x50a6=function(_0x50a6e8,_0x2d085e){_0x50a6e8=_0x50a6e8-0x156;let _0x3db6ea=_0x25403f[_0x50a6e8];return _0x3db6ea;},_0x50a6(_0x5eeb29,_0x19fdf8);}import{CKEditorError as _0x4c9afb,EmitterMixin as _0x426791,uid as _0x3b13a6}from'ckeditor5/src/utils.js';import{AIReply as _0x3e2dd9}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x39d631(0x15f),_0x39d631(0x198),_0x39d631(0x15b),_0x39d631(0x196),_0x39d631(0x15c),_0x39d631(0x17a),_0x39d631(0x16b),_0x39d631(0x197),_0x39d631(0x18a),_0x39d631(0x199),_0x39d631(0x186),_0x39d631(0x1aa),_0x39d631(0x18e),_0x39d631(0x179),_0x39d631(0x165)];export class AIInteraction extends _0x426791(){['id'];[_0x39d631(0x1a2)]=[];[_0x39d631(0x17b)];[_0x39d631(0x158)];[_0x39d631(0x187)];[_0x39d631(0x171)];[_0x39d631(0x159)];[_0x39d631(0x16c)]=!0x1;[_0x39d631(0x19a)]=!0x1;[_0x39d631(0x180)];[_0x39d631(0x176)]=!0x1;[_0x39d631(0x169)]=!0x1;constructor({connector:_0x2cfa67,editor:_0x8cf185}){const _0x53a1e7=_0x39d631;super(),this['id']=_0x3b13a6(),this[_0x53a1e7(0x159)]=_0x2cfa67,this[_0x53a1e7(0x16c)]=!0x0,this[_0x53a1e7(0x180)]=_0x8cf185;}async[_0x39d631(0x17f)](){const _0x23757a=_0x39d631,_0xdefd8f=[];let _0x2fd3bb,_0x52e6c6,_0x7a3d58;this[_0x23757a(0x16c)]=!0x1;try{this[_0x23757a(0x171)]=await this[_0x23757a(0x17e)](),this[_0x23757a(0x191)](_0x23757a(0x198),this);const _0x56d103=await this[_0x23757a(0x171)][_0x23757a(0x18b)]();for await(const _0x839b71 of _0x56d103){if(this[_0x23757a(0x16c)])return;if(_0x23757a(0x165)==_0x839b71[_0x23757a(0x189)])return void this[_0x23757a(0x191)](_0x23757a(0x165),{'error':new _0x4c9afb(_0x23757a(0x175),this)});switch(_0x839b71[_0x23757a(0x189)]){case _0x23757a(0x161):this[_0x23757a(0x158)]=_0x839b71[_0x23757a(0x17d)][_0x23757a(0x158)];break;case _0x23757a(0x1a7):this[_0x23757a(0x187)]=_0x839b71[_0x23757a(0x17d)][_0x23757a(0x1a5)];break;case _0x23757a(0x19d):this[_0x23757a(0x18a)](_0x839b71[_0x23757a(0x17d)][_0x23757a(0x184)],!0x0);break;case _0x23757a(0x177):_0xdefd8f[_0x23757a(0x183)](_0x839b71[_0x23757a(0x17d)][_0x23757a(0x177)]);break;case _0x23757a(0x156):this[_0x23757a(0x169)]||(this[_0x23757a(0x169)]=!0x0,this[_0x23757a(0x191)](_0x23757a(0x199),this));break;case _0x23757a(0x188):this[_0x23757a(0x176)]||(this[_0x23757a(0x176)]=!0x0,this[_0x23757a(0x191)](_0x23757a(0x1aa),this));break;case _0x23757a(0x18d):case _0x23757a(0x1a9):this[_0x23757a(0x195)](),this[_0x23757a(0x160)](),_0x2fd3bb=_0x23757a(0x18d)==_0x839b71[_0x23757a(0x189)]?_0x23757a(0x162):_0x23757a(0x193),_0x52e6c6=_0x23757a(0x18d)==_0x839b71[_0x23757a(0x189)]?_0x839b71[_0x23757a(0x17d)]['id']:void 0x0,this[_0x23757a(0x17b)]&&this[_0x23757a(0x17b)][_0x23757a(0x15e)]!=_0x2fd3bb&&(this[_0x23757a(0x17b)][_0x23757a(0x15a)](),this[_0x23757a(0x17b)]=void 0x0),this[_0x23757a(0x17b)]||(this[_0x23757a(0x17b)]=this[_0x23757a(0x18c)]({'type':_0x2fd3bb,'interactionId':this['id'],'id':_0x52e6c6}),_0x23757a(0x162)==_0x2fd3bb&&(this[_0x23757a(0x17b)][_0x23757a(0x164)]=_0xdefd8f[_0x23757a(0x16f)](0x0))),this[_0x23757a(0x17b)][_0x23757a(0x1a1)](_0x839b71[_0x23757a(0x17d)][_0x23757a(0x190)]);break;case _0x23757a(0x1a4):_0x7a3d58=JSON[_0x23757a(0x181)](_0x839b71[_0x23757a(0x17d)][_0x23757a(0x182)]),this[_0x23757a(0x168)]({'toolName':_0x839b71[_0x23757a(0x17d)][_0x23757a(0x192)],'data':_0x7a3d58[_0x23757a(0x17d)],'attributes':_0x7a3d58[_0x23757a(0x163)]});break;case _0x23757a(0x18f):this[_0x23757a(0x178)]({'toolName':_0x839b71[_0x23757a(0x17d)][_0x23757a(0x192)],'data':_0x839b71[_0x23757a(0x17d)][_0x23757a(0x17d)]});}}}finally{this[_0x23757a(0x16c)]||(this[_0x23757a(0x17b)]&&_0xdefd8f[_0x23757a(0x167)]>0x0&&(this[_0x23757a(0x17b)][_0x23757a(0x164)]=_0xdefd8f[_0x23757a(0x16f)](0x0)),this[_0x23757a(0x194)](),this[_0x23757a(0x191)](_0x23757a(0x196),this));}}[_0x39d631(0x19f)](){const _0xf79469=_0x39d631;this[_0xf79469(0x16c)]||(this[_0xf79469(0x194)](),this[_0xf79469(0x191)](_0xf79469(0x15b),this));}[_0x39d631(0x172)](_0x3b5c0c){const _0x1035e0=_0x39d631;return this[_0x1035e0(0x1a2)][_0x1035e0(0x19b)](_0x23fe41=>_0x23fe41['id']===_0x3b5c0c);}[_0x39d631(0x16d)](){const _0x53b281=_0x39d631;this[_0x53b281(0x19a)]||(this[_0x53b281(0x19f)](),this[_0x53b281(0x1a2)][_0x53b281(0x16e)](_0x32f714=>_0x32f714[_0x53b281(0x16d)]()),this[_0x53b281(0x1a2)]=[],this[_0x53b281(0x19a)]=!0x0,this[_0x53b281(0x191)](_0x53b281(0x15c),this),this[_0x53b281(0x157)]());}[_0x39d631(0x18c)](_0x1bade5){const _0x14f20a=_0x39d631,_0x2bf233=new _0x3e2dd9({'editor':this[_0x14f20a(0x180)],'documentContextContent':this[_0x14f20a(0x17c)]()?.[_0x14f20a(0x19c)],..._0x1bade5});return this[_0x14f20a(0x1a2)][_0x14f20a(0x183)](_0x2bf233),_0x2bf233[_0x14f20a(0x173)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x14f20a(0x191)](_0x14f20a(0x17a),_0x2bf233),_0x2bf233;}[_0x39d631(0x18a)](_0x514fe6,_0x41f919=!0x1){const _0x3ef453=_0x39d631;this[_0x3ef453(0x191)](_0x3ef453(0x18a),_0x514fe6,_0x41f919);}[_0x39d631(0x160)](){const _0x494031=_0x39d631;this[_0x494031(0x169)]&&(this[_0x494031(0x169)]=!0x1,this[_0x494031(0x191)](_0x494031(0x186),this));}[_0x39d631(0x195)](){const _0x21c8e3=_0x39d631;this[_0x21c8e3(0x176)]&&(this[_0x21c8e3(0x176)]=!0x1,this[_0x21c8e3(0x191)](_0x21c8e3(0x18e),this));}[_0x39d631(0x168)](_0x290bee){const _0x28f1f3=_0x39d631;this[_0x28f1f3(0x191)](_0x28f1f3(0x179),{'type':_0x28f1f3(0x182),'toolName':_0x290bee[_0x28f1f3(0x192)],'data':structuredClone(_0x290bee[_0x28f1f3(0x17d)]||{}),'attributes':structuredClone(_0x290bee[_0x28f1f3(0x163)]||{})},this);}[_0x39d631(0x178)](_0x45b53b){const _0x4acc10=_0x39d631;this[_0x4acc10(0x191)](_0x4acc10(0x179),{'type':_0x4acc10(0x1a0),'toolName':_0x45b53b[_0x4acc10(0x192)],'data':structuredClone(_0x45b53b[_0x4acc10(0x17d)])},this);}[_0x39d631(0x194)](){const _0x27c150=_0x39d631;this[_0x27c150(0x16c)]=!0x0,this[_0x27c150(0x171)]&&this[_0x27c150(0x171)][_0x27c150(0x1a6)][_0x27c150(0x16a)](),this[_0x27c150(0x17b)]&&this[_0x27c150(0x17b)][_0x27c150(0x15a)](),this[_0x27c150(0x171)]=this[_0x27c150(0x17b)]=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 _0x37926c=_0x4721;(function(_0x53215f,_0x202e52){const _0x455cdc=_0x4721,_0x553525=_0x53215f();while(!![]){try{const _0x3823ab=parseInt(_0x455cdc(0x209))/0x1+-parseInt(_0x455cdc(0x1f4))/0x2*(parseInt(_0x455cdc(0x208))/0x3)+parseInt(_0x455cdc(0x1da))/0x4*(-parseInt(_0x455cdc(0x1f8))/0x5)+-parseInt(_0x455cdc(0x203))/0x6+parseInt(_0x455cdc(0x1eb))/0x7+parseInt(_0x455cdc(0x206))/0x8+parseInt(_0x455cdc(0x1ec))/0x9*(-parseInt(_0x455cdc(0x1e6))/0xa);if(_0x3823ab===_0x202e52)break;else _0x553525['push'](_0x553525['shift']());}catch(_0x3f74fe){_0x553525['push'](_0x553525['shift']());}}}(_0x419c,0xd2f47));function _0x4721(_0x116b9a,_0x49569a){const _0x419cc6=_0x419c();return _0x4721=function(_0x47217d,_0x3e6980){_0x47217d=_0x47217d-0x1d9;let _0xe3235=_0x419cc6[_0x47217d];return _0xe3235;},_0x4721(_0x116b9a,_0x49569a);}import{EmitterMixin as _0x5667d5,logWarning as _0x4aef5b,logError as _0x583c72}from'ckeditor5/src/utils.js';function _0x419c(){const _0x4ca47a=['map','list','_locale','getDefault','has','AI_MODEL_NAME_AUTO','startsWith','push','5564718nMfWeU','_defaultModelId','ai-chat-model-id-unrecognized','1587464jqguwN','_availableModels','9IMRCCn','1213644AKiMTS','items','displayedModels','length','_retrieveModels','170228IinBvp','getModels','filter','some','_modelsRequest','ai-chat-default-model-id-unrecognized','_config','name','getModel','uiLanguage','defaultModelId','auto','20ZqCRFC','getAll','ai-models-unable-to-retrieve','toLocaleLowerCase','_isMatchingFilter','9773771ZUSHcl','410868yipwMt','string','isAvailable','recommended','_filterModels','_modelList','agent','getAvailableModels','248174UpJKtt','add','find','_connector','65VKdASr','provider','_getModelById'];_0x419c=function(){return _0x4ca47a;};return _0x419c();}import{getTranslation as _0x35172f}from'../utils/common-translations.js';export class AIModels extends _0x5667d5(){[_0x37926c(0x1f7)];[_0x37926c(0x1e0)];[_0x37926c(0x1fd)];[_0x37926c(0x1f1)]=[];[_0x37926c(0x1de)]=null;constructor({connector:_0x5c1408,config:_0x31ba00,locale:_0xc60195}){const _0x3960e2=_0x37926c;super(),this[_0x3960e2(0x1f7)]=_0x5c1408,this[_0x3960e2(0x1e0)]=_0x31ba00,this[_0x3960e2(0x1fd)]=_0xc60195;}get[_0x37926c(0x207)](){const _0x52d72b=_0x37926c;return this[_0x52d72b(0x1e0)]?.[_0x52d72b(0x20b)];}get[_0x37926c(0x204)](){const _0x5a9fc7=_0x37926c;return this[_0x5a9fc7(0x1e0)]?.[_0x5a9fc7(0x1e4)];}async[_0x37926c(0x1e7)](){const _0x3f5da8=_0x37926c;return this[_0x3f5da8(0x1de)]||(this[_0x3f5da8(0x1de)]=this[_0x3f5da8(0x1d9)]()),this[_0x3f5da8(0x1de)];}async[_0x37926c(0x1f3)](){const _0x1b2208=_0x37926c,_0x483e75=await this[_0x1b2208(0x1e7)]();let _0x1043ff;return _0x1043ff=this[_0x1b2208(0x207)]?this[_0x1b2208(0x1f0)](_0x483e75,this[_0x1b2208(0x207)]):_0x483e75[_0x1b2208(0x1dc)](_0x397f3e=>_0x397f3e[_0x1b2208(0x1ef)]),_0x1043ff;}async[_0x37926c(0x1e2)](_0x38cd02){const _0x2f165b=_0x37926c,_0x3c2254=await this[_0x2f165b(0x1e7)]();if(!_0x3c2254[_0x2f165b(0x20c)])return null;if(_0x38cd02){const _0x2ab10d=this[_0x2f165b(0x1fa)](_0x3c2254,_0x38cd02);if(_0x2ab10d)return _0x2ab10d;_0x4aef5b(_0x2f165b(0x205),{'modelId':_0x38cd02,'fallBackModelId':this[_0x2f165b(0x204)]});}return this[_0x2f165b(0x1fe)]();}async[_0x37926c(0x1fe)](){const _0x291c28=_0x37926c,_0x16332f=await this[_0x291c28(0x1f3)]();if(!_0x16332f[_0x291c28(0x20c)])return null;if(this[_0x291c28(0x204)]){const _0x349626=this[_0x291c28(0x1fa)](_0x16332f,this[_0x291c28(0x204)]);if(_0x349626)return _0x349626;_0x4aef5b(_0x291c28(0x1df),{'defaultModelId':this[_0x291c28(0x204)],'fallBackModelId':_0x16332f[0x0]['id']});}return _0x16332f[0x0];}async[_0x37926c(0x1ee)](_0x335d70){const _0x5bad54=_0x37926c;return(await this[_0x5bad54(0x1f3)]())[_0x5bad54(0x1dd)](_0xd0ce77=>_0xd0ce77[_0x5bad54(0x1e1)]===_0x335d70[_0x5bad54(0x1e1)]&&_0xd0ce77[_0x5bad54(0x1f9)]===_0x335d70[_0x5bad54(0x1f9)]);}async[_0x37926c(0x1d9)](){const _0x11c93b=_0x37926c;if(!this[_0x11c93b(0x1f1)][_0x11c93b(0x20c)])try{const _0x100061=this[_0x11c93b(0x1fd)][_0x11c93b(0x1e3)]||'en',_0x5330e3=this[_0x11c93b(0x1f7)][_0x11c93b(0x1db)](_0x100061),_0x4ab06c=await _0x5330e3[_0x11c93b(0x1fc)]();this[_0x11c93b(0x1f1)]=_0x4ab06c[_0x11c93b(0x20a)][_0x11c93b(0x1fb)](_0x182912=>Bi(_0x182912)?{..._0x182912,'name':_0x35172f(this[_0x11c93b(0x1fd)],_0x11c93b(0x200))}:_0x182912);}catch(_0x18fa78){throw _0x583c72(_0x11c93b(0x1e8),{'error':_0x18fa78}),_0x18fa78;}return[...this[_0x11c93b(0x1f1)]];}[_0x37926c(0x1f0)](_0x59d3e4,_0x4ef04e){const _0x5f2828=_0x37926c;let _0x31b146;if(_0x4ef04e){_0x31b146=[];const _0x55c079=new Set(),_0x237d1d=_0x5f2828(0x1ed)==typeof _0x4ef04e?[_0x4ef04e[_0x5f2828(0x1e9)]()]:_0x4ef04e[_0x5f2828(0x1fb)](_0x2b3d52=>_0x2b3d52[_0x5f2828(0x1e9)]());for(const _0x3d0163 of _0x237d1d)for(const _0x369ba0 of _0x59d3e4)!_0x55c079[_0x5f2828(0x1ff)](_0x369ba0['id'])&&this[_0x5f2828(0x1ea)](_0x369ba0,_0x3d0163)&&(_0x31b146[_0x5f2828(0x202)](_0x369ba0),_0x55c079[_0x5f2828(0x1f5)](_0x369ba0['id']));}else _0x31b146=_0x59d3e4;return _0x31b146;}[_0x37926c(0x1ea)](_0x46e38c,_0x38765e){const _0x10d87b=_0x37926c,_0x8912ba=_0x46e38c['id'][_0x10d87b(0x1e9)](),_0xb85f1a=_0x46e38c[_0x10d87b(0x1e1)][_0x10d87b(0x1e9)](),_0x324d89=_0x46e38c[_0x10d87b(0x1f9)][_0x10d87b(0x1e9)]();return _0x8912ba===_0x38765e||_0xb85f1a===_0x38765e||Bi(_0x46e38c)&&_0x10d87b(0x1e5)===_0x38765e||_0x324d89===_0x38765e||_0x8912ba[_0x10d87b(0x201)](_0x38765e);}[_0x37926c(0x1fa)](_0x4ac361,_0x2351d8){const _0x104034=_0x37926c;return _0x4ac361[_0x104034(0x1f6)](_0x16d6a0=>Bi(_0x16d6a0)&&_0x104034(0x1e5)===_0x2351d8?_0x16d6a0:_0x16d6a0['id']===_0x2351d8)||null;}}function Bi(_0x4d6d18){const _0x164a4c=_0x37926c;return _0x4d6d18['id'][_0x164a4c(0x201)](_0x164a4c(0x1f2));}
@@ -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
+ const _0x4f6475=_0x20cf;(function(_0x702475,_0x272d2b){const _0x54f3c2=_0x20cf,_0xf03b46=_0x702475();while(!![]){try{const _0x28fa72=parseInt(_0x54f3c2(0x184))/0x1+-parseInt(_0x54f3c2(0x19e))/0x2+-parseInt(_0x54f3c2(0x17a))/0x3+parseInt(_0x54f3c2(0x19a))/0x4+parseInt(_0x54f3c2(0x183))/0x5*(parseInt(_0x54f3c2(0x193))/0x6)+parseInt(_0x54f3c2(0x171))/0x7+parseInt(_0x54f3c2(0x17c))/0x8*(-parseInt(_0x54f3c2(0x16b))/0x9);if(_0x28fa72===_0x272d2b)break;else _0xf03b46['push'](_0xf03b46['shift']());}catch(_0x2087a5){_0xf03b46['push'](_0xf03b46['shift']());}}}(_0x3028,0x4c14c));import{CKEditorError as _0x478d71,ObservableMixin as _0x5432c1,uid as _0x542ed6}from'ckeditor5/src/utils.js';import{Element as _0x209f65,findAll as _0x2fc287,getAttribute as _0x15ce03,getParents as _0x4db62c,Document as _0x4fd329,parse as _0x2107aa,Text as _0x2b9d6e}from'../utils/htmlparser.js';import{AIResponseParser as _0x3b776a}from'../pipeline/airesponseparser.js';function _0x20cf(_0x55b9fe,_0x2efc99){const _0x302865=_0x3028();return _0x20cf=function(_0x20cf86,_0x3c9aa9){_0x20cf86=_0x20cf86-0x166;let _0xea2e77=_0x302865[_0x20cf86];return _0xea2e77;},_0x20cf(_0x55b9fe,_0x2efc99);}import{AIResponseApplier as _0x46d88c}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0xb082db}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0xc5ae81}from'../utils/common-translations.js';function _0x3028(){const _0x3a0321=['withDiff','fire','destroy','convertMarkdownToHTML','_getDifferentChangeGroups','content','data-id','filter','includes','editor','map','65466XjMpAZ','forEach','setChangeGroupState','sources','AI_SUGGESTION_CONTENT_PART_REMOVED','node','1726305YFicAf','merge','modification','set','areActionsDisabled','span','unshift','appendContent','change:content','1626231aGxSuR','context','376LyZiEB','indexOf','type','withoutDiff','updateChangeGroups','replyContentUpdated','color:\x20#808080;\x20font-style:\x20italic','547615pIntwW','452984WzPOaz','locale','onContentChange','parsedContent','modified','aiResponseApplier','isDone','state','_setCachedContentParts','parsedMergedContent','aiResponseParser','cachedSuggestionContentParts','removedNodeIds','new','pending','18AYhNJy','_getCachedContentParts','push','replyChangeGroupStateUpdated','parseAndNormalizeHTML','removed','data-unstable','1552796NVpfmb','newNodeIds','done','length','441568ixMFFD','modifiedNodeIds','stopListening','changeGroups','interactionId','splice','cloneNode','changes','ai-reply-get-content-parts-group-not-found','every','nextSibling','ai-get-editor-from-context-no-editor','documentContextContent','previousSibling','getContentParts','index','find'];_0x3028=function(){return _0x3a0321;};return _0x3028();}import{cloneDeep as _0x3f7a3b}from'es-toolkit';export class AIReply extends _0x5432c1(){['id'];[_0x4f6475(0x1a2)];[_0x4f6475(0x17e)];[_0x4f6475(0x16e)]=[];[_0x4f6475(0x187)]=new _0x4fd329([]);[_0x4f6475(0x18d)]=new _0x4fd329([]);[_0x4f6475(0x1a1)]=[];[_0x4f6475(0x175)]=!0x1;[_0x4f6475(0x1aa)];[_0x4f6475(0x18e)];[_0x4f6475(0x189)];[_0x4f6475(0x169)];[_0x4f6475(0x18f)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x4955ae,content:_0x4b257e='',isDone:_0x2e3176=!0x1,interactionId:_0x406bce,areActionsDisabled:_0xe871c7,documentContextContent:_0x4e5cfb,editor:_0x35cb1e,id:_0x3a987e}){const _0x59ed4a=_0x4f6475;super(),this['id']=_0x3a987e||_0x542ed6(),this[_0x59ed4a(0x1a2)]=_0x406bce,this[_0x59ed4a(0x17e)]=_0x4955ae,this[_0x59ed4a(0x175)]=!!_0xe871c7,this[_0x59ed4a(0x169)]=_0x35cb1e,this[_0x59ed4a(0x18e)]=new _0x3b776a(),this[_0x59ed4a(0x189)]=new _0x46d88c(),this[_0x59ed4a(0x1aa)]=_0x2107aa(_0x4e5cfb||''),this[_0x59ed4a(0x174)](_0x59ed4a(0x18a),_0x2e3176),this['on'](_0x59ed4a(0x179),()=>{const _0x14e46d=_0x59ed4a;this[_0x14e46d(0x186)]();}),this[_0x59ed4a(0x174)](_0x59ed4a(0x1b4),_0x4b257e);}[_0x4f6475(0x178)](_0x25f43d){const _0x4ed079=_0x4f6475;this[_0x4ed079(0x174)](_0x4ed079(0x1b4),this[_0x4ed079(0x1b4)]+_0x25f43d);}[_0x4f6475(0x19c)](){const _0x3016dc=_0x4f6475;this[_0x3016dc(0x18a)]||(this[_0x3016dc(0x174)](_0x3016dc(0x18a),!0x0),this[_0x3016dc(0x186)]());}[_0x4f6475(0x1b1)](){const _0x2192ad=_0x4f6475;this[_0x2192ad(0x1a0)]();}[_0x4f6475(0x16d)](_0x480eeb,_0x4f2635){const _0xca2aef=_0x4f6475;this[_0xca2aef(0x1a1)][_0x480eeb][_0xca2aef(0x18b)]=_0x4f2635,this[_0xca2aef(0x1b0)](_0xca2aef(0x196),{'reply':this,'index':_0x480eeb,'state':_0x4f2635});}[_0x4f6475(0x1ac)]({showDiff:_0x57a6a0,groupIndex:_0x134d0f}){const _0x93e22e=_0x4f6475;if(!this[_0x93e22e(0x169)])throw new _0x478d71(_0x93e22e(0x1a9),null,{'aiReply':this});const _0x117e19=this[_0x93e22e(0x194)](_0x57a6a0,_0x134d0f);if(_0x117e19)return _0x117e19;let _0x46b08c=[];if(void 0x0===_0x134d0f)_0x46b08c=this[_0x93e22e(0x1a1)];else{const _0x1e99ef=this[_0x93e22e(0x1a1)][_0x93e22e(0x1ae)](({index:_0x5b48dd})=>_0x5b48dd===_0x134d0f);if(!_0x1e99ef)throw new _0x478d71(_0x93e22e(0x1a6),null,{'aiReply':this,'groupIndex':_0x134d0f});_0x46b08c=[_0x1e99ef];}const _0x5e5fb9=_0xb082db({'editor':this[_0x93e22e(0x169)],'showDiff':_0x57a6a0,'changeGroups':_0x46b08c,'documentContextContent':this[_0x93e22e(0x1aa)]});return this[_0x93e22e(0x18c)](_0x57a6a0,_0x5e5fb9),_0x5e5fb9;}[_0x4f6475(0x194)](_0x315592,_0x1b21ea){const _0x2dee27=_0x4f6475,_0x4afa8f=_0x315592?_0x2dee27(0x1af):_0x2dee27(0x17f);if(!this[_0x2dee27(0x18f)][_0x4afa8f][_0x2dee27(0x19d)])return null;const _0x4aa207=this[_0x2dee27(0x18f)][_0x4afa8f];if(void 0x0===_0x1b21ea)return _0x4aa207[_0x2dee27(0x19d)]>0x0&&_0x4aa207[_0x2dee27(0x19d)]!==this[_0x2dee27(0x1a1)][_0x2dee27(0x19d)]?(this[_0x2dee27(0x18c)](_0x315592,null),null):_0x3f7a3b(_0x4aa207);{const _0x1b93c1=_0x4aa207[_0x2dee27(0x1ae)](({index:_0x4e68f7})=>_0x4e68f7===_0x1b21ea);if(_0x1b93c1)return[_0x3f7a3b(_0x1b93c1)];}return null;}[_0x4f6475(0x18c)](_0xa39f3a,_0x101b6f){const _0x24e4cd=_0x4f6475,_0x5ed571=_0xa39f3a?_0x24e4cd(0x1af):_0x24e4cd(0x17f);_0x101b6f?_0x101b6f[_0x24e4cd(0x16c)](_0x3056c5=>{const _0x55c077=_0x24e4cd,_0x28771d=this[_0x55c077(0x18f)][_0x5ed571],_0x28b3e9=_0x28771d[_0x55c077(0x1ae)](({index:_0x387d77})=>_0x387d77===_0x3056c5[_0x55c077(0x1ad)]);if(_0x28b3e9){const _0x446388=_0x28771d[_0x55c077(0x17d)](_0x28b3e9);_0x28771d[_0x55c077(0x1a3)](_0x446388,0x1,_0x3056c5);}else _0x28771d[_0x55c077(0x195)](_0x3056c5);}):this[_0x24e4cd(0x18f)][_0x5ed571][_0x24e4cd(0x19d)]=0x0;}[_0x4f6475(0x186)](){const _0x3a21a4=_0x4f6475;if(_0x3a21a4(0x173)===this[_0x3a21a4(0x17e)]){this[_0x3a21a4(0x187)]=this[_0x3a21a4(0x18e)][_0x3a21a4(0x197)](this[_0x3a21a4(0x1b4)]);const _0x276e53=this[_0x3a21a4(0x1a1)];this[_0x3a21a4(0x180)]();const _0x18b856=this[_0x3a21a4(0x1b3)](_0x276e53,this[_0x3a21a4(0x1a1)]);(_0x18b856[_0x3a21a4(0x19d)]||this[_0x3a21a4(0x18a)])&&(this[_0x3a21a4(0x1b0)](_0x3a21a4(0x181),this,_0x18b856),this[_0x3a21a4(0x18f)][_0x3a21a4(0x1af)][_0x3a21a4(0x19d)]=this[_0x3a21a4(0x18f)][_0x3a21a4(0x17f)][_0x3a21a4(0x19d)]=0x0);}else this[_0x3a21a4(0x187)]=this[_0x3a21a4(0x18e)][_0x3a21a4(0x1b2)](this[_0x3a21a4(0x1b4)]),this[_0x3a21a4(0x1b0)](_0x3a21a4(0x181),this);}[_0x4f6475(0x1b3)](_0x158b78,_0x5e4ec5){const _0x9f61a6=_0x4f6475,_0x2223b0=[];for(const _0x249920 of _0x5e4ec5){const _0xa99523=_0x158b78[_0x249920[_0x9f61a6(0x1ad)]];_0xa99523?_0xa99523[_0x9f61a6(0x1a5)][_0x9f61a6(0x19d)]!==_0x249920[_0x9f61a6(0x1a5)][_0x9f61a6(0x19d)]?_0x2223b0[_0x9f61a6(0x195)](_0x249920):_0xa99523[_0x9f61a6(0x1a5)][_0x9f61a6(0x16c)]((_0x56e3cb,_0x5b19f1)=>{const _0x57c634=_0x9f61a6,_0x2b7fe8=_0x249920[_0x57c634(0x1a5)][_0x5b19f1];_0x56e3cb['id']!==_0x2b7fe8['id']&&_0x2223b0[_0x57c634(0x195)](_0x249920);}):_0x2223b0[_0x9f61a6(0x195)](_0x249920);}return _0x2223b0;}[_0x4f6475(0x180)](){const _0x10a030=_0x4f6475,_0x24e466=new _0x209f65('p',{},[new _0x209f65(_0x10a030(0x176),{'style':_0x10a030(0x182)},[new _0x2b9d6e(_0xc5ae81(this[_0x10a030(0x169)][_0x10a030(0x185)],_0x10a030(0x16f)))])]),_0x50407d=this[_0x10a030(0x189)][_0x10a030(0x172)](this[_0x10a030(0x187)],this[_0x10a030(0x1aa)][_0x10a030(0x1a4)](!0x0),{'markUnstableElements':!this[_0x10a030(0x18a)],'replaceRemovedWith':_0x24e466,'cutAfterLastChange':!this[_0x10a030(0x18a)]});if(!_0x50407d[_0x10a030(0x19f)][_0x10a030(0x19d)]&&!this[_0x10a030(0x18a)])return;this[_0x10a030(0x18d)]=_0x50407d[_0x10a030(0x187)];let _0x4ddf45=[];if(_0x2fc287(_0x3c11c=>{const _0x14c858=_0x10a030,_0x1e4552=_0x15ce03(_0x3c11c,_0x14c858(0x166));if(!_0x1e4552||!_0x59fd21(_0x1e4552))return!0x1;const _0x1bf0af=[_0x3c11c,..._0x4db62c(_0x3c11c)]['at'](-0x2);if(_0x3c11c!=_0x1bf0af){const _0x4ceef3=_0x15ce03(_0x1bf0af,_0x14c858(0x166));_0x59fd21(_0x4ceef3)||(_0x4ddf45[_0x14c858(0x195)]({'node':_0x1bf0af,'id':_0x4ceef3,'type':_0x14c858(0x188)}),_0x50407d[_0x14c858(0x19f)][_0x14c858(0x195)](_0x4ceef3));}else _0x50407d[_0x14c858(0x19f)][_0x14c858(0x168)](_0x1e4552)?_0x4ddf45[_0x14c858(0x195)]({'node':_0x3c11c,'type':_0x14c858(0x188),'id':_0x1e4552}):_0x50407d[_0x14c858(0x19b)][_0x14c858(0x168)](_0x1e4552)?_0x4ddf45[_0x14c858(0x195)]({'node':_0x3c11c,'type':_0x14c858(0x191),'id':_0x1e4552,'anchorId':_0x15ce03(_0x3c11c[_0x14c858(0x1ab)],_0x14c858(0x166))}):_0x4ddf45[_0x14c858(0x195)]({'node':_0x3c11c,'type':_0x14c858(0x198),'id':_0x1e4552});return!0x0;},this[_0x10a030(0x18d)]),_0x4ddf45=_0x4ddf45[_0x10a030(0x167)](({node:_0x5227f0})=>[..._0x4db62c(_0x5227f0),_0x5227f0][_0x10a030(0x1a7)](_0x2fa2ba=>!_0x15ce03(_0x2fa2ba,_0x10a030(0x199)))),0x0==_0x4ddf45[_0x10a030(0x19d)])return;const _0x40cba0=[[_0x4ddf45[0x0]]];for(let _0x31ac7a=0x1;_0x31ac7a<_0x4ddf45[_0x10a030(0x19d)];_0x31ac7a++){const _0x1d8ca6=_0x40cba0[_0x40cba0[_0x10a030(0x19d)]-0x1],_0x22bc2a=_0x1d8ca6[_0x1d8ca6[_0x10a030(0x19d)]-0x1];_0x4ddf45[_0x31ac7a][_0x10a030(0x170)][_0x10a030(0x1ab)]==_0x22bc2a[_0x10a030(0x170)]&&_0x10a030(0x188)!=_0x4ddf45[_0x31ac7a][_0x10a030(0x17e)]&&_0x10a030(0x188)!=_0x22bc2a[_0x10a030(0x17e)]?_0x1d8ca6[_0x10a030(0x195)](_0x4ddf45[_0x31ac7a]):_0x40cba0[_0x10a030(0x195)]([_0x4ddf45[_0x31ac7a]]);}for(const _0x31bc3d of _0x40cba0){const _0x21e68d=_0x31bc3d[0x0],_0x46cbfd=_0x31bc3d[_0x31bc3d[_0x10a030(0x19d)]-0x1],_0x44175e=_0x43a4d5(_0x21e68d[_0x10a030(0x170)][_0x10a030(0x1ab)]);_0x44175e&&_0x31bc3d[_0x10a030(0x177)](_0x44175e);const _0x8d3fb9=_0x43a4d5(_0x46cbfd[_0x10a030(0x170)][_0x10a030(0x1a8)]);_0x8d3fb9&&_0x31bc3d[_0x10a030(0x195)](_0x8d3fb9);}function _0x59fd21(_0x51a60f){const _0x1a4271=_0x10a030;return _0x50407d[_0x1a4271(0x19f)][_0x1a4271(0x168)](_0x51a60f)||_0x50407d[_0x1a4271(0x19b)][_0x1a4271(0x168)](_0x51a60f)||_0x50407d[_0x1a4271(0x190)][_0x1a4271(0x168)](_0x51a60f);}function _0x43a4d5(_0x4c8975){const _0x39469c=_0x10a030;if(_0x4c8975&&_0x15ce03(_0x4c8975,_0x39469c(0x166))&&!_0x15ce03(_0x4c8975,_0x39469c(0x199))){const _0x5f3369=_0x15ce03(_0x4c8975,_0x39469c(0x166));if(!_0x59fd21(_0x5f3369))return{'node':_0x4c8975,'type':_0x39469c(0x17b),'id':_0x5f3369};}return null;}this[_0x10a030(0x1a1)]=_0x40cba0[_0x10a030(0x16a)]((_0x3c1c9f,_0x2e8657)=>({'changes':_0x3c1c9f,'state':_0x10a030(0x192),'index':_0x2e8657}));}}
@@ -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 _0x94e752=_0x2266;function _0x2266(_0x2dadc0,_0x145942){const _0x7bc232=_0x7bc2();return _0x2266=function(_0x2266f7,_0x12e2e0){_0x2266f7=_0x2266f7-0xd0;let _0x53e005=_0x7bc232[_0x2266f7];return _0x53e005;},_0x2266(_0x2dadc0,_0x145942);}function _0x7bc2(){const _0x12da01=['240484GKRclE','_replaceNode','201tuyzks','_findFallbackReferenceNode','80355NSgEmx','_getNodeDataId','423IkbUPC','_markUnstableElements','new-element','previousSibling','push','afterbegin','_touchedNodesState','invalidIds','beforebegin','_markWrappedElements','2920OjtNwn','has','_isExistingContentComment','cloneNode','filter','lastChild','modifiedIds','_storeDeletedElementIds','_findPrevElementWithDataId','data-id','match','_hasWrappedParent','_generateUid','merge','6xqSPIA','indexOf','replaceRemovedWith','5766362EnfwQZ','_isExistingNode','splice','nextSibling','newIds','_getUid','_isDelNode','_isNewNode','slice','data-unstable','_markLastTagElementUnstable','forEach','childNodes','length','39094NUSLbP','trim','nodeType','_existingDataIds','includes','data-wrapped-id','_removeSpecialComments','cutAfterLastChange','data-removed','16514iVPzxr','true','removedIds','_insertNodes','markUnstableElementsDepth','lastTouchedId','from','afterend','reverse','71000lzLrVR','markUnstableElements','map','760682TiWBvs','_findNextElementWithDataId','_findReferenceNode','parentNode'];_0x7bc2=function(){return _0x12da01;};return _0x7bc2();}(function(_0x39d9ee,_0x49d5f7){const _0x458e91=_0x2266,_0x49b130=_0x39d9ee();while(!![]){try{const _0x5ab1cf=-parseInt(_0x458e91(0xe0))/0x1+parseInt(_0x458e91(0xd4))/0x2*(-parseInt(_0x458e91(0xe6))/0x3)+-parseInt(_0x458e91(0xe4))/0x4+parseInt(_0x458e91(0xe8))/0x5*(parseInt(_0x458e91(0x102))/0x6)+parseInt(_0x458e91(0x105))/0x7+-parseInt(_0x458e91(0xdd))/0x8*(-parseInt(_0x458e91(0xea))/0x9)+-parseInt(_0x458e91(0xf4))/0xa*(-parseInt(_0x458e91(0x113))/0xb);if(_0x5ab1cf===_0x49d5f7)break;else _0x49b130['push'](_0x49b130['shift']());}catch(_0x10f184){_0x49b130['push'](_0x49b130['shift']());}}}(_0x7bc2,0xe0c84));import{ObservableMixin as _0x44c89e,uid as _0x66df7c}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0xfc3aaa,findByAttribute as _0x532fd5,getAttribute as _0x7a0b5c,isComment as _0x71480e,isTag as _0xbf43fe,insertElement as _0x231016,moveElement as _0x26a48a,removeElement as _0x488636,replaceElement as _0x32660b,serialize as _0x4339bc,setAttribute as _0x5d22f5,clone as _0x3c1e29,findAllComments as _0x2c2751,getParents as _0x37b2a1,getNodeNestingLevel as _0x1dbbbe,areNodesSame as _0x1a788c,removeElementsAfter as _0x3210d4}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x44c89e(){[_0x94e752(0x100)];[_0x94e752(0xf0)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x94e752(0x116)]=new Set();constructor(_0x1501e5){const _0x47df0f=_0x94e752;super(),this[_0x47df0f(0x100)]=_0x1501e5||_0x66df7c;}[_0x94e752(0x101)](_0x2acdbe,_0x1911ed,_0x266529){const _0x3aa1b6=_0x94e752,_0x22d4ac=_0x3c1e29(_0x2acdbe);if(0x0===_0x1911ed[_0x3aa1b6(0x111)][_0x3aa1b6(0x112)]){const _0x3556b7=[];return _0xfc3aaa(_0x3aa1b6(0xfd),_0x3aa1b6(0xec),_0x22d4ac)[_0x3aa1b6(0x110)](_0x31addc=>{const _0x189d00=_0x3aa1b6,_0xe10232=this[_0x189d00(0x100)]();_0x5d22f5(_0x31addc,_0x189d00(0xfd),_0xe10232),_0x3556b7[_0x189d00(0xee)](_0xe10232);}),this[_0x3aa1b6(0xd1)](_0x22d4ac),{'parsedContent':_0x22d4ac,'newNodeIds':_0x3556b7,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x266529&&_0x266529[_0x3aa1b6(0xde)]&&this[_0x3aa1b6(0x10f)](_0x22d4ac),this[_0x3aa1b6(0xf0)][_0x3aa1b6(0x109)]=[],this[_0x3aa1b6(0xf0)][_0x3aa1b6(0xfa)]=[],this[_0x3aa1b6(0xf0)][_0x3aa1b6(0xd6)]=[],this[_0x3aa1b6(0xf0)][_0x3aa1b6(0xf1)]=[],this[_0x3aa1b6(0xf0)][_0x3aa1b6(0xd9)]=null,this[_0x3aa1b6(0x116)]=new Set(_0xfc3aaa(_0x3aa1b6(0xfd),null,_0x1911ed)[_0x3aa1b6(0xdf)](_0x52d95f=>_0x7a0b5c(_0x52d95f,_0x3aa1b6(0xfd)))[_0x3aa1b6(0xf8)](_0x20122c=>!!_0x20122c));let _0xc9412d=-0x1,_0x3e8d99=!0x1;const _0x254989=_0x22d4ac[_0x3aa1b6(0x111)],_0x19eee9=Array[_0x3aa1b6(0xda)](_0x254989)[_0x3aa1b6(0xf8)](_0x3385ef=>!(0x3===_0x3385ef[_0x3aa1b6(0x115)]&&''===_0x4339bc(_0x3385ef)[_0x3aa1b6(0x114)]())),_0x273aac=_0x19eee9[_0x3aa1b6(0x112)];for(let _0x36e15f=0x0;_0x36e15f<_0x273aac;_0x36e15f++){const _0x46a2ab=_0x19eee9[_0x36e15f],_0x348435=_0x19eee9[_0x36e15f+0x1];if(this[_0x3aa1b6(0x10c)](_0x46a2ab)){if(-0x1===_0xc9412d&&(_0xc9412d=_0x36e15f),this[_0x3aa1b6(0xf3)](_0x46a2ab),!this[_0x3aa1b6(0x10c)](_0x348435)){const [_0xc125be,_0x317be8]=this[_0x3aa1b6(0xe2)](_0x46a2ab,_0x3e8d99,_0x1911ed);if(_0xc125be){const _0x4eede7=Array[_0x3aa1b6(0xda)](_0x19eee9)[_0x3aa1b6(0x10d)](_0xc9412d,_0x36e15f+0x1);this[_0x3aa1b6(0xd7)](_0xc125be,_0x4eede7,_0x317be8),_0xc9412d=-0x1;}}}else{if(this[_0x3aa1b6(0xf6)](_0x46a2ab))_0x3e8d99=!0x0;else{if(this[_0x3aa1b6(0x106)](_0x46a2ab)){const _0x1209c4=_0x7a0b5c(_0x46a2ab,_0x3aa1b6(0xfd));if(_0x1209c4&&this[_0x3aa1b6(0x116)][_0x3aa1b6(0xf5)](_0x1209c4)){const _0x1b49db=_0x532fd5(_0x3aa1b6(0xfd),_0x1209c4,_0x1911ed);this[_0x3aa1b6(0xe5)](_0x1b49db,_0x46a2ab);}if(this[_0x3aa1b6(0xf0)][_0x3aa1b6(0xd6)][_0x3aa1b6(0x117)](_0x1209c4)){const _0x3805a2=this[_0x3aa1b6(0xf0)][_0x3aa1b6(0xd6)][_0x3aa1b6(0x103)](_0x1209c4);this[_0x3aa1b6(0xf0)][_0x3aa1b6(0xd6)][_0x3aa1b6(0x107)](_0x3805a2,0x1);}}else{if(this[_0x3aa1b6(0x10b)](_0x46a2ab)){const _0x342b4b=_0x7a0b5c(_0x46a2ab,_0x3aa1b6(0xfd));this[_0x3aa1b6(0xf0)][_0x3aa1b6(0xfa)][_0x3aa1b6(0x117)](_0x342b4b)||this[_0x3aa1b6(0xfb)](_0x46a2ab);}}}}}for(const _0x4c3a2b of this[_0x3aa1b6(0xf0)][_0x3aa1b6(0xd6)]){const _0x4e8112=_0x532fd5(_0x3aa1b6(0xfd),_0x4c3a2b,_0x1911ed);if(_0x4e8112){if(_0x266529&&_0x266529[_0x3aa1b6(0x104)]){this[_0x3aa1b6(0xf0)][_0x3aa1b6(0xd9)]=_0x4c3a2b;const _0x3e151c=_0x266529[_0x3aa1b6(0x104)][_0x3aa1b6(0xf7)](!0x0);_0x5d22f5(_0x3e151c,_0x3aa1b6(0xfd),_0x4c3a2b),_0x5d22f5(_0x3e151c,_0x3aa1b6(0xd3),_0x3aa1b6(0xd5)),_0x32660b(_0x4e8112,_0x3e151c);}else _0x488636(_0x4e8112);}}if(_0xfc3aaa(_0x3aa1b6(0xd0),null,_0x1911ed)[_0x3aa1b6(0x110)](_0x2667da=>{const _0x1554f4=_0x3aa1b6,_0x89ab62=_0x7a0b5c(_0x2667da,_0x1554f4(0xd0)),_0x24c602=_0x532fd5(_0x1554f4(0xfd),_0x89ab62,_0x1911ed);_0x24c602&&_0x26a48a(_0x24c602,_0x2667da);}),_0xfc3aaa(_0x3aa1b6(0xfd),_0x3aa1b6(0xec),_0x1911ed)[_0x3aa1b6(0x110)](_0x4ef3b7=>{const _0x34b0b8=_0x3aa1b6,_0x54271b=this[_0x34b0b8(0x10a)](_0x4ef3b7);_0x5d22f5(_0x4ef3b7,_0x34b0b8(0xfd),_0x54271b),this[_0x34b0b8(0xf0)][_0x34b0b8(0x109)][_0x34b0b8(0xee)](_0x54271b);}),this[_0x3aa1b6(0xd1)](_0x1911ed),_0x266529&&_0x266529[_0x3aa1b6(0xde)]&&this[_0x3aa1b6(0xeb)](_0x1911ed,_0x266529[_0x3aa1b6(0xd8)]||0x0),_0x266529&&_0x266529[_0x3aa1b6(0xd2)]&&this[_0x3aa1b6(0xf0)][_0x3aa1b6(0xd9)]){let _0x2342b0=_0x532fd5(_0x3aa1b6(0xfd),this[_0x3aa1b6(0xf0)][_0x3aa1b6(0xd9)],_0x1911ed);for(;_0x2342b0;)_0x3210d4(_0x2342b0),_0x2342b0=_0x2342b0[_0x3aa1b6(0xe3)];}return{'parsedContent':_0x1911ed,'newNodeIds':this[_0x3aa1b6(0xf0)][_0x3aa1b6(0x109)],'modifiedNodeIds':this[_0x3aa1b6(0xf0)][_0x3aa1b6(0xfa)],'removedNodeIds':this[_0x3aa1b6(0xf0)][_0x3aa1b6(0xd6)]};}[_0x94e752(0xd7)](_0x2209d2,_0x16ccfb,_0x11d0df){const _0x459b29=_0x94e752;for(const _0x5763ee of _0x16ccfb){const _0x3065f1=this[_0x459b29(0x10a)](_0x5763ee);_0x5d22f5(_0x5763ee,_0x459b29(0xfd),_0x3065f1),this[_0x459b29(0xf0)][_0x459b29(0x109)][_0x459b29(0xee)](_0x3065f1),this[_0x459b29(0xf0)][_0x459b29(0xd9)]=_0x3065f1;}const _0x1c8bbf=_0x459b29(0xef)===_0x11d0df||_0x459b29(0xdb)===_0x11d0df?_0x16ccfb[_0x459b29(0xdc)]():_0x16ccfb;for(const _0x2f0c48 of _0x1c8bbf)_0x231016(_0x2209d2,_0x2f0c48,_0x11d0df);}[_0x94e752(0xe5)](_0x54a1eb,_0x5db547){const _0x106d46=_0x94e752;if(!_0x54a1eb)return;if(_0x1a788c(_0x54a1eb,_0x5db547))return;const _0x1f0969=this[_0x106d46(0x10a)](_0x54a1eb);_0x5d22f5(_0x5db547,_0x106d46(0xfd),_0x1f0969),this[_0x106d46(0xf0)][_0x106d46(0xfa)][_0x106d46(0xee)](_0x1f0969),this[_0x106d46(0xf0)][_0x106d46(0xd9)]=_0x1f0969,_0x32660b(_0x54a1eb,_0x5db547[_0x106d46(0xf7)](!0x0));}[_0x94e752(0xe2)](_0x2684dc,_0x367592,_0x4f759f){const _0x478834=_0x94e752,_0x20557d=this[_0x478834(0xfc)](_0x2684dc,!0x1);if(_0x20557d){const _0xfed9fd=this[_0x478834(0xe9)](_0x20557d),_0x449952=_0x532fd5(_0x478834(0xfd),_0xfed9fd,_0x4f759f);if(_0x449952)return[_0x449952,_0x478834(0xdb)];this[_0x478834(0xf0)][_0x478834(0xf1)][_0x478834(0xee)](_0xfed9fd);}const _0x4faf61=this[_0x478834(0xe1)](_0x2684dc,!0x1);if(_0x4faf61){const _0x2f6e77=this[_0x478834(0xe9)](_0x4faf61),_0x4aba1f=_0x532fd5(_0x478834(0xfd),_0x2f6e77,_0x4f759f);if(_0x4aba1f)return[_0x4aba1f,_0x478834(0xf2)];this[_0x478834(0xf0)][_0x478834(0xf1)][_0x478834(0xee)](_0x2f6e77);}return _0x367592?_0x2684dc[_0x478834(0x108)]?this[_0x478834(0xe7)](_0x2684dc,_0x4f759f):[_0x4f759f[_0x478834(0x111)][_0x4f759f[_0x478834(0x111)][_0x478834(0x112)]-0x1],_0x478834(0xdb)]:[_0x4f759f[_0x478834(0x111)][0x0],_0x478834(0xf2)];}[_0x94e752(0xe7)](_0x3f9bf8,_0x5c6611){const _0x1b4d4b=_0x94e752,_0x2058d3=[],_0x11e7b8=this[_0x1b4d4b(0xfc)](_0x3f9bf8,!0x0);if(_0x11e7b8){const _0x55e82b=this[_0x1b4d4b(0xe9)](_0x11e7b8),_0x2dae86=_0x532fd5(_0x1b4d4b(0xfd),_0x55e82b,_0x5c6611);_0x2dae86&&_0x2058d3[_0x1b4d4b(0xee)]([_0x2dae86,_0x1b4d4b(0xdb)]);}const _0x5d9fdc=this[_0x1b4d4b(0xe1)](_0x3f9bf8,!0x0);if(_0x5d9fdc){const _0x484527=this[_0x1b4d4b(0xe9)](_0x5d9fdc),_0x3db14f=_0x532fd5(_0x1b4d4b(0xfd),_0x484527,_0x5c6611);_0x3db14f&&_0x2058d3[_0x1b4d4b(0xee)]([_0x3db14f,_0x1b4d4b(0xf2)]);}if(_0x2058d3[_0x1b4d4b(0x112)]>0x1)return _0x1dbbbe(_0x2058d3[0x0][0x0])<=_0x1dbbbe(_0x2058d3[0x1][0x0])?_0x2058d3[0x0]:_0x2058d3[0x1];return 0x1===_0x2058d3[_0x1b4d4b(0x112)]?_0x2058d3[0x0]:[_0x5c6611[_0x1b4d4b(0xf9)],_0x1b4d4b(0xdb)];}[_0x94e752(0xe1)](_0x2b8774,_0x8ca1c){const _0x39bf95=_0x94e752;let _0x5c7432=_0x2b8774[_0x39bf95(0x108)],_0x59ff46=null,_0x5c14f4=!0x1;for(;_0x5c7432;){if(_0x71480e(_0x5c7432)){if(this[_0x39bf95(0x10b)](_0x5c7432)&&(_0x59ff46=_0x5c7432),this[_0x39bf95(0xf6)](_0x5c7432)&&_0x8ca1c&&!_0x5c14f4){_0x5c14f4=!0x0,_0x5c7432=_0x5c7432[_0x39bf95(0x108)];continue;}break;}const _0x58b56c=_0x7a0b5c(_0x5c7432,_0x39bf95(0xfd));if(_0x58b56c&&_0x39bf95(0xec)!==_0x58b56c&&this[_0x39bf95(0x116)][_0x39bf95(0xf5)](_0x58b56c)){_0x59ff46=_0x5c7432;break;}_0x5c7432=_0x5c7432[_0x39bf95(0x108)];}return _0x59ff46;}[_0x94e752(0xfc)](_0x4386ad,_0x19ce72){const _0x3055c5=_0x94e752;let _0x10c741=_0x4386ad[_0x3055c5(0xed)],_0x10bacc=null,_0x331ac1=!0x1;for(;_0x10c741;){if(_0x71480e(_0x10c741)){if(this[_0x3055c5(0x10b)](_0x10c741)&&(_0x10bacc=_0x10c741),this[_0x3055c5(0xf6)](_0x10c741)&&_0x19ce72&&!_0x331ac1){_0x331ac1=!0x0,_0x10c741=_0x10c741[_0x3055c5(0xed)];continue;}break;}const _0x26b5ef=_0x7a0b5c(_0x10c741,_0x3055c5(0xfd));if(_0x26b5ef&&_0x3055c5(0xec)!==_0x26b5ef&&this[_0x3055c5(0x116)][_0x3055c5(0xf5)](_0x26b5ef)){_0x10bacc=_0x10c741;break;}_0x10c741=_0x10c741[_0x3055c5(0xed)];}return _0x10bacc;}[_0x94e752(0xf3)](_0x492a28){const _0x5847ca=_0x94e752;_0xbf43fe(_0x492a28)&&_0xfc3aaa(_0x5847ca(0xfd),null,_0x492a28)[_0x5847ca(0x110)](_0x3300e8=>{const _0x25c9e3=_0x5847ca;if(this[_0x25c9e3(0x106)](_0x3300e8)&&!this[_0x25c9e3(0xff)](_0x3300e8)){const _0x1ca537=_0x7a0b5c(_0x3300e8,_0x25c9e3(0xfd));_0x5d22f5(_0x3300e8,_0x25c9e3(0xd0),_0x1ca537),_0x5d22f5(_0x3300e8,_0x25c9e3(0xfd),null);}});}[_0x94e752(0xe9)](_0x4c99f2){const _0x1d6080=_0x94e752;if(!_0x4c99f2)return null;if(_0xbf43fe(_0x4c99f2))return _0x7a0b5c(_0x4c99f2,_0x1d6080(0xfd));if(_0x71480e(_0x4c99f2)){const _0x589b43=_0x4339bc(_0x4c99f2)[_0x1d6080(0xfe)](/removed[\s*-]data-id="([^"]+)"/);if(_0x589b43&&_0x589b43[0x1])return _0x589b43[0x1];}return null;}[_0x94e752(0xfb)](_0x40318d){const _0x1b2f27=_0x94e752;if(_0x71480e(_0x40318d)){const _0x14656f=_0x4339bc(_0x40318d)[_0x1b2f27(0xfe)](/removed[\s*-]data-id="([^"]+)"/);_0x14656f&&_0x14656f[0x1]&&this[_0x1b2f27(0xf0)][_0x1b2f27(0xd6)][_0x1b2f27(0xee)](_0x14656f[0x1]);}}[_0x94e752(0x10a)](_0x2760d8){const _0x41796e=_0x94e752;return this[_0x41796e(0x106)](_0x2760d8)?_0x7a0b5c(_0x2760d8,_0x41796e(0xfd)):this[_0x41796e(0x100)]();}[_0x94e752(0xd1)](_0xf21ebc){const _0x5a4dbd=_0x94e752;_0x2c2751(_0xf21ebc)[_0x5a4dbd(0xf8)](_0x3a3e1a=>this[_0x5a4dbd(0x10b)](_0x3a3e1a)||this[_0x5a4dbd(0xf6)](_0x3a3e1a))[_0x5a4dbd(0x110)](_0x9a6153=>{_0x488636(_0x9a6153);});}[_0x94e752(0x10f)](_0x42e9e2){const _0x14fb1f=_0x94e752,_0x1e5aeb=_0x42e9e2[_0x14fb1f(0x111)],_0x1cf19c=_0x1e5aeb[_0x1e5aeb[_0x14fb1f(0x112)]-0x1];_0x1cf19c&&_0xbf43fe(_0x1cf19c)&&_0x5d22f5(_0x1cf19c,_0x14fb1f(0x10e),_0x14fb1f(0xd5));}[_0x94e752(0xeb)](_0x4c27eb,_0x2af851){const _0x16c777=_0x94e752,_0x51a566=_0x532fd5(_0x16c777(0x10e),_0x16c777(0xd5),_0x4c27eb);if(!_0x51a566)return;const _0x44346b=_0x37b2a1(_0x51a566)[_0x16c777(0x10d)](0x0,-0x1),_0x2d7460=_0x44346b[_0x16c777(0x112)];let _0x433881=_0x51a566;if(_0x2d7460>_0x2af851){let _0x220ed5=_0x2d7460,_0x537d2e=null;for(;_0x220ed5>_0x2af851&&_0x220ed5>=0x0;)_0x220ed5--,_0x537d2e=_0x44346b[_0x220ed5];_0x537d2e&&(_0x433881=_0x537d2e,_0x5d22f5(_0x51a566,_0x16c777(0x10e),null),_0x5d22f5(_0x537d2e,_0x16c777(0x10e),_0x16c777(0xd5)));}else{if(_0x2d7460<_0x2af851){let _0x139823=_0x2d7460,_0x16c1fc=_0x51a566;for(;_0x139823<_0x2af851;){const _0x1831c6=_0x16c1fc[_0x16c777(0x111)][_0x16c777(0xf8)](_0x2336c6=>_0xbf43fe(_0x2336c6));if(0x0===_0x1831c6[_0x16c777(0x112)])break;_0x139823++,_0x16c1fc=_0x1831c6[_0x1831c6[_0x16c777(0x112)]-0x1];}_0x16c1fc&&(_0x433881=_0x16c1fc,_0x5d22f5(_0x51a566,_0x16c777(0x10e),null),_0x5d22f5(_0x16c1fc,_0x16c777(0x10e),_0x16c777(0xd5)));}}let _0x2a966a=_0x433881;for(;_0x2a966a;){for(;_0x2a966a[_0x16c777(0x108)];)_0x2a966a=_0x2a966a[_0x16c777(0x108)],_0xbf43fe(_0x2a966a)&&_0x5d22f5(_0x2a966a,_0x16c777(0x10e),_0x16c777(0xd5));_0x2a966a=_0x2a966a[_0x16c777(0xe3)];}}[_0x94e752(0x10c)](_0x57fc59){const _0x315b96=_0x94e752;return Boolean(_0x315b96(0xec)===_0x7a0b5c(_0x57fc59,_0x315b96(0xfd)));}[_0x94e752(0x106)](_0x467f6b){const _0x53c92c=_0x94e752;return Boolean((_0x7a0b5c(_0x467f6b,_0x53c92c(0xfd))||'')[_0x53c92c(0x112)]>0x0&&_0x53c92c(0xec)!==_0x7a0b5c(_0x467f6b,_0x53c92c(0xfd)));}[_0x94e752(0x10b)](_0x47d5e8){const _0x444d2f=_0x94e752;return!!_0x47d5e8&&Boolean(_0x71480e(_0x47d5e8)&&_0x4339bc(_0x47d5e8)[_0x444d2f(0xfe)](/removed[\s*-]data-id="[^"]+"/));}[_0x94e752(0xff)](_0x1a9dd4){const _0x4f0bd3=_0x94e752;let _0x431883=_0x1a9dd4[_0x4f0bd3(0xe3)];for(;_0x431883;){if(_0x7a0b5c(_0x431883,_0x4f0bd3(0xd0)))return!0x0;_0x431883=_0x431883[_0x4f0bd3(0xe3)];}return!0x1;}[_0x94e752(0xf6)](_0x4a4ff3){const _0x4451ce=_0x94e752;return Boolean(_0x71480e(_0x4a4ff3)&&_0x4339bc(_0x4a4ff3)[_0x4451ce(0xfe)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -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 _0x586a12=_0xada7;(function(_0x1d4fa6,_0x96ec6d){const _0x28032e=_0xada7,_0x108989=_0x1d4fa6();while(!![]){try{const _0x406fb5=parseInt(_0x28032e(0x93))/0x1*(-parseInt(_0x28032e(0x87))/0x2)+parseInt(_0x28032e(0x8c))/0x3+-parseInt(_0x28032e(0x91))/0x4*(-parseInt(_0x28032e(0x8b))/0x5)+parseInt(_0x28032e(0x86))/0x6*(-parseInt(_0x28032e(0x8e))/0x7)+parseInt(_0x28032e(0x8a))/0x8+-parseInt(_0x28032e(0x98))/0x9*(-parseInt(_0x28032e(0x94))/0xa)+-parseInt(_0x28032e(0x85))/0xb;if(_0x406fb5===_0x96ec6d)break;else _0x108989['push'](_0x108989['shift']());}catch(_0x4b3e8d){_0x108989['push'](_0x108989['shift']());}}}(_0x5a4c,0x48dcf));function _0xada7(_0x44f1d8,_0x49139a){const _0x5a4c10=_0x5a4c();return _0xada7=function(_0xada7b1,_0x4e26da){_0xada7b1=_0xada7b1-0x85;let _0x2aa57c=_0x5a4c10[_0xada7b1];return _0x2aa57c;},_0xada7(_0x44f1d8,_0x49139a);}function _0x5a4c(){const _0x42d369=['_m2html','2751cqYfwX','parse','convertMarkdownToHTML','20eLMbgD','replace','307906dcCOKR','310cMrBMM','_parseHTML','<dummy>','</dummy>','134046jQKXVX','2401410HCSqjA','6876VZDUWu','2OFChqj','parseAndNormalizeHTML','children','4697376QGPDft','10265vqOFje','647670vodmNO'];_0x5a4c=function(){return _0x42d369;};return _0x5a4c();}import{ObservableMixin as _0x5247be}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x35f555}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0xcda9c5}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x5247be(){[_0x586a12(0x8d)];constructor(){const _0x4a7d86=_0x586a12;super(),this[_0x4a7d86(0x8d)]=new _0x35f555();}[_0x586a12(0x90)](_0x4890fb){const _0x20151a=_0x586a12,_0xbaae00=this[_0x20151a(0x8d)][_0x20151a(0x8f)](_0x4890fb);return this[_0x20151a(0x88)](_0xbaae00);}[_0x586a12(0x88)](_0x57eb3a){const _0x4a5ffe=_0x586a12;return this[_0x4a5ffe(0x95)](_0x57eb3a);}[_0x586a12(0x95)](_0x2a19b7){const _0x45ee08=_0x586a12,_0x314fdc=_0x2a19b7[_0x45ee08(0x92)](/^\t+/gm,'\x20')[_0x45ee08(0x92)](/\n*/g,'')[_0x45ee08(0x92)](/\s+/g,'\x20')[_0x45ee08(0x92)](/<[^>]*?$/g,''),_0xab96e0=_0xcda9c5(_0x45ee08(0x96)+_0x314fdc+_0x45ee08(0x97));return _0xab96e0[_0x45ee08(0x89)]=_0xab96e0[_0x45ee08(0x89)][0x0][_0x45ee08(0x89)],_0xab96e0;}}
@@ -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 _0x21f0df=_0x1be7;(function(_0x41ce71,_0x3975d4){const _0x55a89b=_0x1be7,_0x42e99b=_0x41ce71();while(!![]){try{const _0xf9bd86=-parseInt(_0x55a89b(0xa4))/0x1+-parseInt(_0x55a89b(0x83))/0x2*(-parseInt(_0x55a89b(0x96))/0x3)+-parseInt(_0x55a89b(0x93))/0x4*(parseInt(_0x55a89b(0xa3))/0x5)+parseInt(_0x55a89b(0x86))/0x6+-parseInt(_0x55a89b(0x90))/0x7+-parseInt(_0x55a89b(0x97))/0x8*(parseInt(_0x55a89b(0xa2))/0x9)+-parseInt(_0x55a89b(0xa5))/0xa*(-parseInt(_0x55a89b(0x89))/0xb);if(_0xf9bd86===_0x3975d4)break;else _0x42e99b['push'](_0x42e99b['shift']());}catch(_0x88ee3a){_0x42e99b['push'](_0x42e99b['shift']());}}}(_0x11dc,0x53a25));import{View as _0x365370}from'ckeditor5/src/ui.js';function _0x1be7(_0x417867,_0x380453){const _0x11dc76=_0x11dc();return _0x1be7=function(_0x1be769,_0x171940){_0x1be769=_0x1be769-0x83;let _0x114e00=_0x11dc76[_0x1be769];return _0x114e00;},_0x1be7(_0x417867,_0x380453);}export class AISkeletonView extends _0x365370{constructor(_0x279934,_0x3807cf){const _0x2e386c=_0x1be7;super(_0x279934),this[_0x2e386c(0xa1)]({'tag':_0x2e386c(0xab),'attributes':{'class':['ck',_0x2e386c(0x8d)]},'children':this[_0x2e386c(0xa0)](_0x3807cf)});}[_0x21f0df(0xa0)](_0x5835c7){const _0x2a1e46=_0x21f0df,_0xfadb05=['ck',_0x2a1e46(0x84)];return _0x5835c7[_0x2a1e46(0x87)](_0x3e1357=>{const _0x5b78aa=_0x2a1e46;let _0x28cc0c='';switch(_0x3e1357[_0x5b78aa(0x8b)][_0x5b78aa(0x85)]){case _0x5b78aa(0xa7):_0x28cc0c=_0x5b78aa(0x8e);break;case _0x5b78aa(0xa8):_0x28cc0c=_0x5b78aa(0x9a);break;case _0x5b78aa(0x88):_0x28cc0c=_0x5b78aa(0xaa);}return{'tag':_0x3e1357[_0x5b78aa(0x99)],'attributes':{'class':[..._0xfadb05,_0x3e1357[_0x5b78aa(0x8b)][_0x5b78aa(0x9d)]?_0x3e1357[_0x5b78aa(0x8b)][_0x5b78aa(0x9d)]:''],'style':_0x5b78aa(0x91)+_0x3e1357[_0x5b78aa(0x8b)][_0x5b78aa(0x92)]+_0x5b78aa(0x9c)+_0x3e1357[_0x5b78aa(0x8b)][_0x5b78aa(0x8c)]+';'+_0x28cc0c}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x21f0df(0xab),'attributes':{'width':_0x21f0df(0x94),'height':_0x21f0df(0x9e),'align':_0x21f0df(0xa7)}},{'tag':_0x21f0df(0xab),'attributes':{'width':_0x21f0df(0x9f),'height':_0x21f0df(0x95),'align':_0x21f0df(0xa7)}},{'tag':_0x21f0df(0xab),'attributes':{'width':_0x21f0df(0x94),'height':_0x21f0df(0x8f),'align':_0x21f0df(0xa7)}},{'tag':_0x21f0df(0xab),'attributes':{'width':_0x21f0df(0x98),'height':_0x21f0df(0x95),'align':_0x21f0df(0xa7)}},{'tag':_0x21f0df(0xab),'attributes':{'width':_0x21f0df(0x94),'height':_0x21f0df(0xa9),'align':_0x21f0df(0xa7)}},{'tag':_0x21f0df(0xab),'attributes':{'width':_0x21f0df(0x9f),'height':_0x21f0df(0x95),'align':_0x21f0df(0xa7)}},{'tag':_0x21f0df(0xab),'attributes':{'width':_0x21f0df(0x94),'height':_0x21f0df(0x8f),'align':_0x21f0df(0xa7)}}],'aiHistory':$i(0x5,_0x21f0df(0x94),_0x21f0df(0xa6),_0x21f0df(0xa7)),'aiChatResources':$i(0x8,_0x21f0df(0x94),_0x21f0df(0xac),_0x21f0df(0xa7)),'aiReviewChecks':[{'tag':_0x21f0df(0xab),'attributes':{'width':_0x21f0df(0x8a),'height':_0x21f0df(0xac),'align':_0x21f0df(0x88)}},{'tag':_0x21f0df(0xab),'attributes':{'width':_0x21f0df(0x94),'height':_0x21f0df(0xac),'align':_0x21f0df(0x88)}},{'tag':_0x21f0df(0xab),'attributes':{'width':_0x21f0df(0x8a),'height':_0x21f0df(0xac),'align':_0x21f0df(0x88)}}]};function _0x11dc(){const _0x513394=['1094164IyfFNL','100%','40px','21aCpnYx','120SHTdiK','150px','tag','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','fill',';\x20height:\x20','class','72px','250px','_createSkeletonItems','setTemplate','344385qwfKPA','5odCzqX','345605zQYQCD','12973370PNfoVV','44px','right','center','140px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','div','24px','110806OakwqJ','ck-ai-skeleton__item','align','2715438uMMZlV','map','left','11tnFCxa','128px','attributes','height','ck-ai-skeleton','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','88px','4214315iJPyMs','width:\x20','width'];_0x11dc=function(){return _0x513394;};return _0x11dc();}function $i(_0x10b958,_0x242524,_0x5e2a3c,_0x3509cb){const _0x1a6aae=_0x21f0df;return new Array(_0x10b958)[_0x1a6aae(0x9b)](null)[_0x1a6aae(0x87)](()=>({'tag':_0x1a6aae(0xab),'attributes':{'width':_0x242524,'height':_0x5e2a3c,'align':_0x3509cb}}));}