@ckeditor/ckeditor5-ai 47.4.0-alpha.4 → 47.4.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (292) 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/aiballoondisclaimerview.js +1 -1
  175. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  176. package/src/aiballoon/ui/aiballoonview.js +1 -1
  177. package/src/aichat/aichat.js +1 -1
  178. package/src/aichat/aichatcontroller.js +1 -1
  179. package/src/aichat/aichatui.js +1 -1
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.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/aichatfeederroritemview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  208. package/src/aichat/utils/eventnames.js +1 -1
  209. package/src/aichat/utils/promisequeue.js +1 -1
  210. package/src/aichathistory/aichathistory.js +1 -1
  211. package/src/aichathistory/aichathistorycontroller.js +1 -1
  212. package/src/aichathistory/aichathistoryui.js +1 -1
  213. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  214. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  215. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  216. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  217. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  219. package/src/aicore/aiconnector.js +1 -1
  220. package/src/aicore/aiediting.js +1 -1
  221. package/src/aicore/model/aicapabilities.js +1 -1
  222. package/src/aicore/model/aicontext.js +1 -1
  223. package/src/aicore/model/aiinteraction.js +1 -1
  224. package/src/aicore/model/aimodels.js +1 -1
  225. package/src/aicore/model/aireply.js +1 -1
  226. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  227. package/src/aicore/pipeline/airesponseparser.js +2 -2
  228. package/src/aicore/ui/aidisclaimerview.js +1 -1
  229. package/src/aicore/ui/aiskeleton.js +1 -1
  230. package/src/aicore/ui/aispinner.js +1 -1
  231. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  232. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  236. package/src/aicore/utils/common-translations.js +1 -1
  237. package/src/aicore/utils/createresizebutton.js +1 -1
  238. package/src/aicore/utils/documentposition.js +1 -1
  239. package/src/aicore/utils/documentrange.js +1 -1
  240. package/src/aicore/utils/eventnames.js +1 -1
  241. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  242. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  243. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  244. package/src/aicore/utils/htmlparser.js +1 -1
  245. package/src/aicore/utils/htmlstreamer.js +1 -1
  246. package/src/aicore/utils/scrollmanager.js +1 -1
  247. package/src/aieditorintegration/aieditorintegration.js +1 -1
  248. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  249. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  250. package/src/aiquickactions/aiquickactions.js +1 -1
  251. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  252. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  253. package/src/aiquickactions/aiquickactionsui.js +1 -1
  254. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  258. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  259. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  260. package/src/aireviewmode/aireviewmode.js +1 -1
  261. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  262. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  263. package/src/aireviewmode/aireviewmodeui.js +1 -1
  264. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  265. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  266. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  269. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  270. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  271. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  272. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  273. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  282. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  283. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  284. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  285. package/src/aitabs/aitabs.js +1 -1
  286. package/src/aitabs/aitabsmainview.js +1 -1
  287. package/src/aitabs/tabs/aitabsview.js +1 -1
  288. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  289. package/src/aitabs/tabs/tabpanelview.js +1 -1
  290. package/src/errors.js +1 -1
  291. package/src/errorsmap.js +1 -1
  292. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3fdbd0=_0x4771;(function(_0x2b060c,_0x1bf201){const _0x378212=_0x4771,_0x288a89=_0x2b060c();while(!![]){try{const _0x3cad30=parseInt(_0x378212(0xf4))/0x1+-parseInt(_0x378212(0xda))/0x2*(-parseInt(_0x378212(0xcf))/0x3)+-parseInt(_0x378212(0x110))/0x4*(parseInt(_0x378212(0xf1))/0x5)+-parseInt(_0x378212(0xe2))/0x6+parseInt(_0x378212(0x10c))/0x7*(parseInt(_0x378212(0xec))/0x8)+parseInt(_0x378212(0xd0))/0x9*(parseInt(_0x378212(0xf0))/0xa)+-parseInt(_0x378212(0xd6))/0xb;if(_0x3cad30===_0x1bf201)break;else _0x288a89['push'](_0x288a89['shift']());}catch(_0x2117db){_0x288a89['push'](_0x288a89['shift']());}}}(_0x2ceb,0x4a60a));function _0x2ceb(){const _0x32efd3=['reasoningFinished','splice','sendRequest','reasoningStarted','conversationTitle','connector','sources','getDocumentContext','_isWebSearching','content','callId','currentRequest','createReply','push','destroy','replyChangeGroupStateUpdated','interactionDestroyed','replies','42tGIaKV','web-search','reasoning','currentReply','4xftFiW','actionCallId','editor','getReply','abortController','stopListening','1340859iZGkKo','999wZdyxz','forEach','getStream','isDestroyed','webSearchFinished','start','3911248SeJwKp','modification-delta','data','messageId','2tJgBuk','textDelta','webSearchStarted','appendContent','setConversationTitle','ai-chat-interaction-error','stop','done','823944qRTHvR','event','_finalizeInteraction','interactionStarted','message-metadata','interactionCreated','interactionFinished','replyCreated','find','interactionStopped','525328nVffnJ','_isReasoning','source','abort','33560JnKXCZ','2540355KKeImS','isStopped','fire','92148bcNwar','length','replyContentUpdated','error','action-metadata','delegate'];_0x2ceb=function(){return _0x32efd3;};return _0x2ceb();}import{CKEditorError as _0x3d903a,EmitterMixin as _0x27f314,uid as _0x5b39b7}from'ckeditor5/src/utils.js';import{AIReply as _0x47ab16,isIgnoredReplyType as _0x462f32,isValidReplyType as _0x14bca1,isReplyTitleType as _0x3171bc,isSourceType as _0x1ce9cc}from'./aireply.js';function _0x4771(_0xa726f7,_0x57aefb){const _0x2ceb6d=_0x2ceb();return _0x4771=function(_0x47717e,_0xe0a680){_0x47717e=_0x47717e-0xce;let _0x4d8b2a=_0x2ceb6d[_0x47717e];return _0x4d8b2a;},_0x4771(_0xa726f7,_0x57aefb);}export const AI_MODEL_EVENT_NAMES=[_0x3fdbd0(0xe7),_0x3fdbd0(0xe5),_0x3fdbd0(0xeb),_0x3fdbd0(0xe8),_0x3fdbd0(0x10a),_0x3fdbd0(0xe9),_0x3fdbd0(0xf6),_0x3fdbd0(0x109),_0x3fdbd0(0xde),_0x3fdbd0(0xdc),_0x3fdbd0(0xd4),_0x3fdbd0(0xfd),_0x3fdbd0(0xfa),_0x3fdbd0(0xf7)];export class AIInteraction extends _0x27f314(){['id'];[_0x3fdbd0(0x10b)]=[];[_0x3fdbd0(0x10f)];[_0x3fdbd0(0xd9)];[_0x3fdbd0(0x111)];[_0x3fdbd0(0x105)];[_0x3fdbd0(0xff)];[_0x3fdbd0(0xf2)]=!0x1;[_0x3fdbd0(0xd3)]=!0x1;[_0x3fdbd0(0x112)];[_0x3fdbd0(0xed)]=!0x1;[_0x3fdbd0(0x102)]=!0x1;constructor({connector:_0x453e51,editor:_0xff832e}){const _0x2d972a=_0x3fdbd0;super(),this['id']=_0x5b39b7(),this[_0x2d972a(0xff)]=_0x453e51,this[_0x2d972a(0xf2)]=!0x0,this[_0x2d972a(0x112)]=_0xff832e;}async[_0x3fdbd0(0xd5)](){const _0x3e6e31=_0x3fdbd0;let _0x4f1f9d;const _0x2d585c=[];this[_0x3e6e31(0xf2)]=!0x1;try{this[_0x3e6e31(0x105)]=await this[_0x3e6e31(0xfc)](),this[_0x3e6e31(0xf3)](_0x3e6e31(0xe5),this);const _0xac3580=await this[_0x3e6e31(0x105)][_0x3e6e31(0xd2)]();for await(const _0x30bf7c of _0xac3580){if(this[_0x3e6e31(0xf2)])return;if(_0x3e6e31(0xf7)===_0x30bf7c[_0x3e6e31(0xe3)])return void this[_0x3e6e31(0xf3)](_0x3e6e31(0xf7),{'error':new _0x3d903a(_0x3e6e31(0xdf),this)});if(_0x3e6e31(0xe6)!==_0x30bf7c[_0x3e6e31(0xe3)]){if(_0x3e6e31(0xf8)!==_0x30bf7c[_0x3e6e31(0xe3)]){if(_0x3171bc(_0x30bf7c[_0x3e6e31(0xe3)])&&this[_0x3e6e31(0xde)](_0x30bf7c[_0x3e6e31(0xd8)][_0x3e6e31(0xfe)],!0x0),_0x1ce9cc(_0x30bf7c[_0x3e6e31(0xe3)]))_0x2d585c[_0x3e6e31(0x107)](_0x30bf7c[_0x3e6e31(0xd8)][_0x3e6e31(0xee)]);else{if(_0x14bca1(_0x30bf7c[_0x3e6e31(0xe3)])){if(_0x30bf7c[_0x3e6e31(0xe3)]!==_0x4f1f9d){if(_0x4f1f9d=_0x30bf7c[_0x3e6e31(0xe3)],_0x3e6e31(0x10d)===_0x30bf7c[_0x3e6e31(0xe3)]){this[_0x3e6e31(0x102)]||(this[_0x3e6e31(0x102)]=!0x0,this[_0x3e6e31(0xf3)](_0x3e6e31(0xdc),this));continue;}if(_0x3e6e31(0x10e)===_0x30bf7c[_0x3e6e31(0xe3)]){this[_0x3e6e31(0xed)]||(this[_0x3e6e31(0xed)]=!0x0,this[_0x3e6e31(0xf3)](_0x3e6e31(0xfd),this));continue;}this[_0x3e6e31(0xed)]&&(this[_0x3e6e31(0xed)]=!0x1,this[_0x3e6e31(0xf3)](_0x3e6e31(0xfa),this)),this[_0x3e6e31(0x102)]&&(this[_0x3e6e31(0x102)]=!0x1,this[_0x3e6e31(0xf3)](_0x3e6e31(0xd4),this)),this[_0x3e6e31(0x10f)]&&this[_0x3e6e31(0x10f)][_0x3e6e31(0xe1)](),this[_0x3e6e31(0x10f)]=this[_0x3e6e31(0x106)]({'type':_0x30bf7c[_0x3e6e31(0xe3)],'interactionId':this['id'],'id':_0x30bf7c[_0x3e6e31(0xd8)]?.['id']}),_0x2d585c[_0x3e6e31(0xf5)]>0x0&&_0x3e6e31(0xd7)===_0x30bf7c[_0x3e6e31(0xe3)]&&(this[_0x3e6e31(0x10f)][_0x3e6e31(0x100)]=_0x2d585c[_0x3e6e31(0xfb)](0x0));}_0x30bf7c[_0x3e6e31(0xd8)][_0x3e6e31(0xdb)]&&this[_0x3e6e31(0x10f)][_0x3e6e31(0xdd)](_0x30bf7c[_0x3e6e31(0xd8)][_0x3e6e31(0xdb)]);}else _0x462f32(_0x30bf7c[_0x3e6e31(0xe3)]);}}else this[_0x3e6e31(0x111)]=_0x30bf7c[_0x3e6e31(0xd8)][_0x3e6e31(0x104)];}else this[_0x3e6e31(0xd9)]=_0x30bf7c[_0x3e6e31(0xd8)][_0x3e6e31(0xd9)];}}finally{this[_0x3e6e31(0xf2)]||(_0x2d585c[_0x3e6e31(0xf5)]>0x0&&(this[_0x3e6e31(0x10f)][_0x3e6e31(0x100)]=_0x2d585c[_0x3e6e31(0xfb)](0x0)),this[_0x3e6e31(0xe4)](),this[_0x3e6e31(0xf3)](_0x3e6e31(0xe8),this));}}[_0x3fdbd0(0xe0)](){const _0x44be56=_0x3fdbd0;this[_0x44be56(0xf2)]||(this[_0x44be56(0xe4)](),this[_0x44be56(0xf3)](_0x44be56(0xeb),this));}[_0x3fdbd0(0x113)](_0x58d430){const _0x4d84e7=_0x3fdbd0;return this[_0x4d84e7(0x10b)][_0x4d84e7(0xea)](_0x4db2a7=>_0x4db2a7['id']===_0x58d430);}[_0x3fdbd0(0x108)](){const _0x135920=_0x3fdbd0;this[_0x135920(0xd3)]||(this[_0x135920(0xe0)](),this[_0x135920(0x10b)][_0x135920(0xd1)](_0x1ba2b3=>_0x1ba2b3[_0x135920(0x108)]()),this[_0x135920(0x10b)]=[],this[_0x135920(0xd3)]=!0x0,this[_0x135920(0xf3)](_0x135920(0x10a),this),this[_0x135920(0xce)]());}[_0x3fdbd0(0x106)](_0x24f8ef){const _0x37d462=_0x3fdbd0,_0x436afb=new _0x47ab16({'editor':this[_0x37d462(0x112)],'documentContextContent':this[_0x37d462(0x101)]()?.[_0x37d462(0x103)],..._0x24f8ef});return this[_0x37d462(0x10b)][_0x37d462(0x107)](_0x436afb),_0x436afb[_0x37d462(0xf9)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x37d462(0xf3)](_0x37d462(0xe9),_0x436afb),_0x436afb;}[_0x3fdbd0(0xde)](_0x1b0e56,_0x5f18d7=!0x1){const _0x3b7f45=_0x3fdbd0;this[_0x3b7f45(0xf3)](_0x3b7f45(0xde),_0x1b0e56,_0x5f18d7);}[_0x3fdbd0(0xe4)](){const _0x13b417=_0x3fdbd0;this[_0x13b417(0xf2)]=!0x0,this[_0x13b417(0x105)]&&this[_0x13b417(0x105)][_0x13b417(0x114)][_0x13b417(0xef)](),this[_0x13b417(0x10f)]&&this[_0x13b417(0x10f)][_0x13b417(0xe1)](),this[_0x13b417(0x105)]=this[_0x13b417(0x10f)]=void 0x0;}}
23
+ const _0x4009c3=_0x25bb;(function(_0x204e67,_0x2eeb7a){const _0x2df5c6=_0x25bb,_0x11e66c=_0x204e67();while(!![]){try{const _0x3637bb=-parseInt(_0x2df5c6(0xa9))/0x1+-parseInt(_0x2df5c6(0x8e))/0x2+-parseInt(_0x2df5c6(0x99))/0x3*(parseInt(_0x2df5c6(0x6d))/0x4)+-parseInt(_0x2df5c6(0x89))/0x5+parseInt(_0x2df5c6(0x9d))/0x6*(-parseInt(_0x2df5c6(0x75))/0x7)+-parseInt(_0x2df5c6(0x66))/0x8+-parseInt(_0x2df5c6(0x83))/0x9*(-parseInt(_0x2df5c6(0x9c))/0xa);if(_0x3637bb===_0x2eeb7a)break;else _0x11e66c['push'](_0x11e66c['shift']());}catch(_0x3314ca){_0x11e66c['push'](_0x11e66c['shift']());}}}(_0x4d50,0xaaf45));import{CKEditorError as _0x58c3ab,EmitterMixin as _0x5e8850,uid as _0x14a591}from'ckeditor5/src/utils.js';function _0x4d50(){const _0x370179=['stop','86096COylqw','setConversationTitle','webSearchFinished','abortController','destroy','splice','find','21948jiOZCM','messageId','fire','done','_isWebSearching','currentReply','error','message-metadata','21KviRGf','interactionDestroyed','delegate','replyCreated','interactionStarted','createReply','_isReasoning','sendRequest','abort','length','event','stopListening','push','textDelta','9jNUQuZ','reasoningStarted','replyChangeGroupStateUpdated','data','interactionStopped','connector','2823375OPwdXE','source','interactionFinished','getDocumentContext','getReply','550356VctiXa','getStream','sources','forEach','reasoningFinished','appendContent','reasoning','isStopped','currentRequest','ai-chat-interaction-error','_finalizeInteraction','114wMfnxD','callId','modification-delta','27307160WxYPHU','1787070JmsYXg','webSearchStarted','actionCallId','editor','content','action-metadata','replies','start','interactionCreated','isDestroyed','web-search','conversationTitle','77831KEiPnw','replyContentUpdated'];_0x4d50=function(){return _0x370179;};return _0x4d50();}import{AIReply as _0x4422d8,isIgnoredReplyType as _0x1dbe5b,isValidReplyType as _0x313bfc,isReplyTitleType as _0x383122,isSourceType as _0x481070}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x4009c3(0xa5),_0x4009c3(0x79),_0x4009c3(0x87),_0x4009c3(0x8b),_0x4009c3(0x76),_0x4009c3(0x78),_0x4009c3(0xaa),_0x4009c3(0x85),_0x4009c3(0x67),_0x4009c3(0x9e),_0x4009c3(0x68),_0x4009c3(0x84),_0x4009c3(0x92),_0x4009c3(0x73)];function _0x25bb(_0x3ee4a0,_0x54abe1){const _0x4d5081=_0x4d50();return _0x25bb=function(_0x25bbf0,_0x59b935){_0x25bbf0=_0x25bbf0-0x66;let _0x1450af=_0x4d5081[_0x25bbf0];return _0x1450af;},_0x25bb(_0x3ee4a0,_0x54abe1);}export class AIInteraction extends _0x5e8850(){['id'];[_0x4009c3(0xa3)]=[];[_0x4009c3(0x72)];[_0x4009c3(0x6e)];[_0x4009c3(0x9f)];[_0x4009c3(0x96)];[_0x4009c3(0x88)];[_0x4009c3(0x95)]=!0x1;[_0x4009c3(0xa6)]=!0x1;[_0x4009c3(0xa0)];[_0x4009c3(0x7b)]=!0x1;[_0x4009c3(0x71)]=!0x1;constructor({connector:_0x2ae294,editor:_0x1f0869}){const _0x3b2560=_0x4009c3;super(),this['id']=_0x14a591(),this[_0x3b2560(0x88)]=_0x2ae294,this[_0x3b2560(0x95)]=!0x0,this[_0x3b2560(0xa0)]=_0x1f0869;}async[_0x4009c3(0xa4)](){const _0x14fee3=_0x4009c3;let _0x432336;const _0xeb6691=[];this[_0x14fee3(0x95)]=!0x1;try{this[_0x14fee3(0x96)]=await this[_0x14fee3(0x7c)](),this[_0x14fee3(0x6f)](_0x14fee3(0x79),this);const _0x3f47c9=await this[_0x14fee3(0x96)][_0x14fee3(0x8f)]();for await(const _0x9b44f6 of _0x3f47c9){if(this[_0x14fee3(0x95)])return;if(_0x14fee3(0x73)===_0x9b44f6[_0x14fee3(0x7f)])return void this[_0x14fee3(0x6f)](_0x14fee3(0x73),{'error':new _0x58c3ab(_0x14fee3(0x97),this)});if(_0x14fee3(0x74)!==_0x9b44f6[_0x14fee3(0x7f)]){if(_0x14fee3(0xa2)!==_0x9b44f6[_0x14fee3(0x7f)]){if(_0x383122(_0x9b44f6[_0x14fee3(0x7f)])&&this[_0x14fee3(0x67)](_0x9b44f6[_0x14fee3(0x86)][_0x14fee3(0xa8)],!0x0),_0x481070(_0x9b44f6[_0x14fee3(0x7f)]))_0xeb6691[_0x14fee3(0x81)](_0x9b44f6[_0x14fee3(0x86)][_0x14fee3(0x8a)]);else{if(_0x313bfc(_0x9b44f6[_0x14fee3(0x7f)])){if(_0x9b44f6[_0x14fee3(0x7f)]!==_0x432336){if(_0x432336=_0x9b44f6[_0x14fee3(0x7f)],_0x14fee3(0xa7)===_0x9b44f6[_0x14fee3(0x7f)]){this[_0x14fee3(0x71)]||(this[_0x14fee3(0x71)]=!0x0,this[_0x14fee3(0x6f)](_0x14fee3(0x9e),this));continue;}if(_0x14fee3(0x94)===_0x9b44f6[_0x14fee3(0x7f)]){this[_0x14fee3(0x7b)]||(this[_0x14fee3(0x7b)]=!0x0,this[_0x14fee3(0x6f)](_0x14fee3(0x84),this));continue;}this[_0x14fee3(0x7b)]&&(this[_0x14fee3(0x7b)]=!0x1,this[_0x14fee3(0x6f)](_0x14fee3(0x92),this)),this[_0x14fee3(0x71)]&&(this[_0x14fee3(0x71)]=!0x1,this[_0x14fee3(0x6f)](_0x14fee3(0x68),this)),this[_0x14fee3(0x72)]&&this[_0x14fee3(0x72)][_0x14fee3(0x70)](),this[_0x14fee3(0x72)]=this[_0x14fee3(0x7a)]({'type':_0x9b44f6[_0x14fee3(0x7f)],'interactionId':this['id'],'id':_0x9b44f6[_0x14fee3(0x86)]?.['id']}),_0xeb6691[_0x14fee3(0x7e)]>0x0&&_0x14fee3(0x9b)===_0x9b44f6[_0x14fee3(0x7f)]&&(this[_0x14fee3(0x72)][_0x14fee3(0x90)]=_0xeb6691[_0x14fee3(0x6b)](0x0));}_0x9b44f6[_0x14fee3(0x86)][_0x14fee3(0x82)]&&this[_0x14fee3(0x72)][_0x14fee3(0x93)](_0x9b44f6[_0x14fee3(0x86)][_0x14fee3(0x82)]);}else _0x1dbe5b(_0x9b44f6[_0x14fee3(0x7f)]);}}else this[_0x14fee3(0x9f)]=_0x9b44f6[_0x14fee3(0x86)][_0x14fee3(0x9a)];}else this[_0x14fee3(0x6e)]=_0x9b44f6[_0x14fee3(0x86)][_0x14fee3(0x6e)];}}finally{this[_0x14fee3(0x95)]||(_0xeb6691[_0x14fee3(0x7e)]>0x0&&(this[_0x14fee3(0x72)][_0x14fee3(0x90)]=_0xeb6691[_0x14fee3(0x6b)](0x0)),this[_0x14fee3(0x98)](),this[_0x14fee3(0x6f)](_0x14fee3(0x8b),this));}}[_0x4009c3(0xab)](){const _0x49a276=_0x4009c3;this[_0x49a276(0x95)]||(this[_0x49a276(0x98)](),this[_0x49a276(0x6f)](_0x49a276(0x87),this));}[_0x4009c3(0x8d)](_0x13c68b){const _0x446a4f=_0x4009c3;return this[_0x446a4f(0xa3)][_0x446a4f(0x6c)](_0x12e5aa=>_0x12e5aa['id']===_0x13c68b);}[_0x4009c3(0x6a)](){const _0x438350=_0x4009c3;this[_0x438350(0xa6)]||(this[_0x438350(0xab)](),this[_0x438350(0xa3)][_0x438350(0x91)](_0x65d0ef=>_0x65d0ef[_0x438350(0x6a)]()),this[_0x438350(0xa3)]=[],this[_0x438350(0xa6)]=!0x0,this[_0x438350(0x6f)](_0x438350(0x76),this),this[_0x438350(0x80)]());}[_0x4009c3(0x7a)](_0x45d7ff){const _0x3f5f50=_0x4009c3,_0x23c9c9=new _0x4422d8({'editor':this[_0x3f5f50(0xa0)],'documentContextContent':this[_0x3f5f50(0x8c)]()?.[_0x3f5f50(0xa1)],..._0x45d7ff});return this[_0x3f5f50(0xa3)][_0x3f5f50(0x81)](_0x23c9c9),_0x23c9c9[_0x3f5f50(0x77)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x3f5f50(0x6f)](_0x3f5f50(0x78),_0x23c9c9),_0x23c9c9;}[_0x4009c3(0x67)](_0x4ac2f6,_0x54a06e=!0x1){const _0x30b730=_0x4009c3;this[_0x30b730(0x6f)](_0x30b730(0x67),_0x4ac2f6,_0x54a06e);}[_0x4009c3(0x98)](){const _0x48592a=_0x4009c3;this[_0x48592a(0x95)]=!0x0,this[_0x48592a(0x96)]&&this[_0x48592a(0x96)][_0x48592a(0x69)][_0x48592a(0x7d)](),this[_0x48592a(0x72)]&&this[_0x48592a(0x72)][_0x48592a(0x70)](),this[_0x48592a(0x96)]=this[_0x48592a(0x72)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x20d8b4=_0x50da;function _0x39a5(){const _0x200d3c=['708tAutcM','provider','_modelList','getDefault','380dKgscN','some','find','uiLanguage','list','isAvailable','AI_MODEL_NAME_AUTO','agent','_availableModels','710PJxLui','22425NRzkRu','getAvailableModels','length','_connector','36HNlNYu','getModels','_locale','getModel','82782RfFqWc','306738lmxByi','6ZqcuRP','startsWith','auto','items','map','304278HxqASh','_filterModels','ai-models-unable-to-retrieve','name','3219528JPkNmQ','_defaultModelId','ai-chat-default-model-id-unrecognized','249809qvEkoW','push','getAll','190861qAFSyU','toLocaleLowerCase','_getModelById','string','ai-chat-model-id-unrecognized'];_0x39a5=function(){return _0x200d3c;};return _0x39a5();}(function(_0x536018,_0x458d1d){const _0x39bffa=_0x50da,_0x5e5678=_0x536018();while(!![]){try{const _0x7babd=parseInt(_0x39bffa(0x192))/0x1+-parseInt(_0x39bffa(0x18c))/0x2*(-parseInt(_0x39bffa(0x18d))/0x3)+parseInt(_0x39bffa(0x179))/0x4*(-parseInt(_0x39bffa(0x183))/0x5)+parseInt(_0x39bffa(0x187))/0x6*(parseInt(_0x39bffa(0x199))/0x7)+-parseInt(_0x39bffa(0x196))/0x8+parseInt(_0x39bffa(0x18b))/0x9*(-parseInt(_0x39bffa(0x182))/0xa)+parseInt(_0x39bffa(0x19c))/0xb*(parseInt(_0x39bffa(0x175))/0xc);if(_0x7babd===_0x458d1d)break;else _0x5e5678['push'](_0x5e5678['shift']());}catch(_0x45c6d7){_0x5e5678['push'](_0x5e5678['shift']());}}}(_0x39a5,0x59aa9));function _0x50da(_0x1985ac,_0x2217e6){const _0x39a5fb=_0x39a5();return _0x50da=function(_0x50daa7,_0x5a86f4){_0x50daa7=_0x50daa7-0x174;let _0x185e5a=_0x39a5fb[_0x50daa7];return _0x185e5a;},_0x50da(_0x1985ac,_0x2217e6);}import{EmitterMixin as _0x3b22e9,logWarning as _0xf4a43f,logError as _0x56c4f0}from'ckeditor5/src/utils.js';import{getTranslation as _0x45f630}from'../utils/common-translations.js';export class AIModels extends _0x3b22e9(){[_0x20d8b4(0x186)];[_0x20d8b4(0x181)];[_0x20d8b4(0x197)];[_0x20d8b4(0x189)];[_0x20d8b4(0x177)]=[];constructor({connector:_0x52783e,availableModels:_0x277ed8,defaultModelId:_0x520ada,locale:_0x390ae6}){const _0x130e44=_0x20d8b4;super(),this[_0x130e44(0x186)]=_0x52783e,this[_0x130e44(0x181)]=_0x277ed8,this[_0x130e44(0x197)]=_0x520ada,this[_0x130e44(0x189)]=_0x390ae6;}async[_0x20d8b4(0x19b)](){const _0x427f1d=_0x20d8b4;if(!this[_0x427f1d(0x177)][_0x427f1d(0x185)])try{const _0x1930e3=this[_0x427f1d(0x189)][_0x427f1d(0x17c)]||'en',_0xb0fadc=this[_0x427f1d(0x186)][_0x427f1d(0x188)](_0x1930e3),_0x3f46bf=await _0xb0fadc[_0x427f1d(0x17d)]();this[_0x427f1d(0x177)]=_0x3f46bf[_0x427f1d(0x190)][_0x427f1d(0x191)](_0x54bba3=>$e(_0x54bba3)?{..._0x54bba3,'name':_0x45f630(this[_0x427f1d(0x189)],_0x427f1d(0x17f))}:_0x54bba3);}catch(_0xe4f73){throw _0x56c4f0(_0x427f1d(0x194),{'error':_0xe4f73}),_0xe4f73;}return[...this[_0x427f1d(0x177)]];}async[_0x20d8b4(0x184)](){const _0x21dea2=_0x20d8b4,_0x39dd44=await this[_0x21dea2(0x19b)]();return this[_0x21dea2(0x193)](_0x39dd44,this[_0x21dea2(0x181)]);}async[_0x20d8b4(0x18a)](_0x37a05f){const _0x74933=_0x20d8b4,_0x3b2060=await this[_0x74933(0x19b)]();if(!_0x3b2060[_0x74933(0x185)])return null;if(_0x37a05f){const _0x36a12a=this[_0x74933(0x19e)](_0x3b2060,_0x37a05f);if(_0x36a12a)return _0x36a12a;_0xf4a43f(_0x74933(0x174),{'modelId':_0x37a05f,'fallBackModelId':this[_0x74933(0x197)]});}return this[_0x74933(0x178)]();}async[_0x20d8b4(0x178)](){const _0x2c179a=_0x20d8b4,_0xa96fc6=await this[_0x2c179a(0x184)]();if(!_0xa96fc6[_0x2c179a(0x185)])return null;if(this[_0x2c179a(0x197)]){const _0x592ab3=this[_0x2c179a(0x19e)](_0xa96fc6,this[_0x2c179a(0x197)]);if(_0x592ab3)return _0x592ab3;_0xf4a43f(_0x2c179a(0x198),{'defaultModelId':this[_0x2c179a(0x197)],'fallBackModelId':_0xa96fc6[0x0]['id']});}return _0xa96fc6[0x0];}async[_0x20d8b4(0x17e)](_0x5da29b){const _0x358053=_0x20d8b4;return(await this[_0x358053(0x184)]())[_0x358053(0x17a)](_0x5b1e24=>_0x5b1e24[_0x358053(0x195)]===_0x5da29b[_0x358053(0x195)]&&_0x5b1e24[_0x358053(0x176)]===_0x5da29b[_0x358053(0x176)]);}[_0x20d8b4(0x193)](_0x24019c,_0x409555){const _0x396e85=_0x20d8b4;let _0x2d76f4;if(_0x409555){_0x2d76f4=[];const _0x220cc4=_0x396e85(0x19f)==typeof _0x409555?[_0x409555[_0x396e85(0x19d)]()]:_0x409555[_0x396e85(0x191)](_0x304b5f=>_0x304b5f[_0x396e85(0x19d)]());for(const _0x531a76 of _0x220cc4)for(const _0x2f5c7e of _0x24019c)(_0x2f5c7e['id'][_0x396e85(0x19d)]()===_0x531a76||_0x2f5c7e[_0x396e85(0x195)][_0x396e85(0x19d)]()===_0x531a76||$e(_0x2f5c7e)&&_0x396e85(0x18f)===_0x531a76||_0x2f5c7e[_0x396e85(0x176)][_0x396e85(0x19d)]()===_0x531a76||_0x2f5c7e['id'][_0x396e85(0x19d)]()[_0x396e85(0x18e)](_0x531a76))&&_0x2d76f4[_0x396e85(0x19a)](_0x2f5c7e);}else _0x2d76f4=_0x24019c;return _0x2d76f4;}[_0x20d8b4(0x19e)](_0x48f5e1,_0x4fb4eb){const _0x2d010b=_0x20d8b4;return _0x48f5e1[_0x2d010b(0x17b)](_0x323ee8=>$e(_0x323ee8)&&_0x2d010b(0x18f)===_0x4fb4eb?_0x323ee8:_0x323ee8['id']===_0x4fb4eb)||null;}}function $e(_0x2a4d7b){const _0x172c6f=_0x20d8b4;return _0x2a4d7b['id'][_0x172c6f(0x18e)](_0x172c6f(0x180));}
23
+ function _0x56ae(){const _0x476c5c=['_modelList','map','getDefault','uiLanguage','_getModelById','auto','provider','startsWith','7523030mIjjyM','items','AI_MODEL_NAME_AUTO','669602IZDMuM','list','14385sImvGc','_availableModels','2318373YnRRVo','9WRjqSD','getAll','_filterModels','some','ai-chat-model-id-unrecognized','4936jpDXAX','_defaultModelId','8HfAdCL','4CxUBaB','_connector','ai-chat-default-model-id-unrecognized','1403380fMAHfc','length','getModel','agent','name','toLocaleLowerCase','_locale','9683814igSJvp','276FGtxYl','isAvailable','getModels','getAvailableModels','ai-models-unable-to-retrieve','find','string','3120165dFMKqm','push'];_0x56ae=function(){return _0x476c5c;};return _0x56ae();}const _0x33b55b=_0x2d34;(function(_0x78c32d,_0x79da56){const _0x1d8f9d=_0x2d34,_0x136bac=_0x78c32d();while(!![]){try{const _0x428f4b=parseInt(_0x1d8f9d(0xd8))/0x1*(parseInt(_0x1d8f9d(0xe5))/0x2)+-parseInt(_0x1d8f9d(0xdc))/0x3*(-parseInt(_0x1d8f9d(0xe4))/0x4)+parseInt(_0x1d8f9d(0xf7))/0x5+-parseInt(_0x1d8f9d(0xef))/0x6+-parseInt(_0x1d8f9d(0xda))/0x7*(-parseInt(_0x1d8f9d(0xe2))/0x8)+-parseInt(_0x1d8f9d(0xdd))/0x9*(-parseInt(_0x1d8f9d(0xd5))/0xa)+parseInt(_0x1d8f9d(0xe8))/0xb*(-parseInt(_0x1d8f9d(0xf0))/0xc);if(_0x428f4b===_0x79da56)break;else _0x136bac['push'](_0x136bac['shift']());}catch(_0x55ed55){_0x136bac['push'](_0x136bac['shift']());}}}(_0x56ae,0xef70c));import{EmitterMixin as _0x12af8a,logWarning as _0x3a4c63,logError as _0x10553a}from'ckeditor5/src/utils.js';import{getTranslation as _0x4bcef1}from'../utils/common-translations.js';export class AIModels extends _0x12af8a(){[_0x33b55b(0xe6)];[_0x33b55b(0xdb)];[_0x33b55b(0xe3)];[_0x33b55b(0xee)];[_0x33b55b(0xf9)]=[];constructor({connector:_0x2061db,availableModels:_0x3cee59,defaultModelId:_0x5b411f,locale:_0x4955f9}){const _0x5aa64d=_0x33b55b;super(),this[_0x5aa64d(0xe6)]=_0x2061db,this[_0x5aa64d(0xdb)]=_0x3cee59,this[_0x5aa64d(0xe3)]=_0x5b411f,this[_0x5aa64d(0xee)]=_0x4955f9;}async[_0x33b55b(0xde)](){const _0x2ad40b=_0x33b55b;if(!this[_0x2ad40b(0xf9)][_0x2ad40b(0xe9)])try{const _0x1705d4=this[_0x2ad40b(0xee)][_0x2ad40b(0xd0)]||'en',_0x2cfc46=this[_0x2ad40b(0xe6)][_0x2ad40b(0xf2)](_0x1705d4),_0x48da30=await _0x2cfc46[_0x2ad40b(0xd9)]();this[_0x2ad40b(0xf9)]=_0x48da30[_0x2ad40b(0xd6)][_0x2ad40b(0xfa)](_0x4d8d2d=>ze(_0x4d8d2d)?{..._0x4d8d2d,'name':_0x4bcef1(this[_0x2ad40b(0xee)],_0x2ad40b(0xd7))}:_0x4d8d2d);}catch(_0x36122d){throw _0x10553a(_0x2ad40b(0xf4),{'error':_0x36122d}),_0x36122d;}return[...this[_0x2ad40b(0xf9)]];}async[_0x33b55b(0xf3)](){const _0x1d801c=_0x33b55b,_0x577092=await this[_0x1d801c(0xde)]();return this[_0x1d801c(0xdf)](_0x577092,this[_0x1d801c(0xdb)]);}async[_0x33b55b(0xea)](_0x442c25){const _0x46c13f=_0x33b55b,_0x5963ef=await this[_0x46c13f(0xde)]();if(!_0x5963ef[_0x46c13f(0xe9)])return null;if(_0x442c25){const _0x3fa479=this[_0x46c13f(0xd1)](_0x5963ef,_0x442c25);if(_0x3fa479)return _0x3fa479;_0x3a4c63(_0x46c13f(0xe1),{'modelId':_0x442c25,'fallBackModelId':this[_0x46c13f(0xe3)]});}return this[_0x46c13f(0xfb)]();}async[_0x33b55b(0xfb)](){const _0x3e5bbb=_0x33b55b,_0x24600b=await this[_0x3e5bbb(0xf3)]();if(!_0x24600b[_0x3e5bbb(0xe9)])return null;if(this[_0x3e5bbb(0xe3)]){const _0x258515=this[_0x3e5bbb(0xd1)](_0x24600b,this[_0x3e5bbb(0xe3)]);if(_0x258515)return _0x258515;_0x3a4c63(_0x3e5bbb(0xe7),{'defaultModelId':this[_0x3e5bbb(0xe3)],'fallBackModelId':_0x24600b[0x0]['id']});}return _0x24600b[0x0];}async[_0x33b55b(0xf1)](_0x41f120){const _0x5b3b58=_0x33b55b;return(await this[_0x5b3b58(0xf3)]())[_0x5b3b58(0xe0)](_0x34539c=>_0x34539c[_0x5b3b58(0xec)]===_0x41f120[_0x5b3b58(0xec)]&&_0x34539c[_0x5b3b58(0xd3)]===_0x41f120[_0x5b3b58(0xd3)]);}[_0x33b55b(0xdf)](_0x409212,_0xbb1f73){const _0x3d20eb=_0x33b55b;let _0x19fffe;if(_0xbb1f73){_0x19fffe=[];const _0x4e460e=_0x3d20eb(0xf6)==typeof _0xbb1f73?[_0xbb1f73[_0x3d20eb(0xed)]()]:_0xbb1f73[_0x3d20eb(0xfa)](_0x51979=>_0x51979[_0x3d20eb(0xed)]());for(const _0x26876c of _0x4e460e)for(const _0xfc25ef of _0x409212)(_0xfc25ef['id'][_0x3d20eb(0xed)]()===_0x26876c||_0xfc25ef[_0x3d20eb(0xec)][_0x3d20eb(0xed)]()===_0x26876c||ze(_0xfc25ef)&&_0x3d20eb(0xd2)===_0x26876c||_0xfc25ef[_0x3d20eb(0xd3)][_0x3d20eb(0xed)]()===_0x26876c||_0xfc25ef['id'][_0x3d20eb(0xed)]()[_0x3d20eb(0xd4)](_0x26876c))&&_0x19fffe[_0x3d20eb(0xf8)](_0xfc25ef);}else _0x19fffe=_0x409212;return _0x19fffe;}[_0x33b55b(0xd1)](_0x56bd32,_0x2234c3){const _0x1b089a=_0x33b55b;return _0x56bd32[_0x1b089a(0xf5)](_0x3f5a86=>ze(_0x3f5a86)&&_0x1b089a(0xd2)===_0x2234c3?_0x3f5a86:_0x3f5a86['id']===_0x2234c3)||null;}}function _0x2d34(_0x27d3f2,_0x25aa18){const _0x56ae46=_0x56ae();return _0x2d34=function(_0x2d3404,_0x2debbd){_0x2d3404=_0x2d3404-0xd0;let _0x5264f5=_0x56ae46[_0x2d3404];return _0x5264f5;},_0x2d34(_0x27d3f2,_0x25aa18);}function ze(_0x597d0f){const _0x54c777=_0x33b55b;return _0x597d0f['id'][_0x54c777(0xd4)](_0x54c777(0xeb));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x593493=_0x216a;(function(_0x22ad92,_0x4a8e5b){const _0x5e251c=_0x216a,_0x586e09=_0x22ad92();while(!![]){try{const _0x30b922=parseInt(_0x5e251c(0x1bb))/0x1*(-parseInt(_0x5e251c(0x1b4))/0x2)+-parseInt(_0x5e251c(0x1d4))/0x3*(parseInt(_0x5e251c(0x19f))/0x4)+parseInt(_0x5e251c(0x1dc))/0x5*(parseInt(_0x5e251c(0x1be))/0x6)+parseInt(_0x5e251c(0x1e5))/0x7+-parseInt(_0x5e251c(0x1ea))/0x8+-parseInt(_0x5e251c(0x1ca))/0x9*(parseInt(_0x5e251c(0x1c9))/0xa)+parseInt(_0x5e251c(0x1bf))/0xb*(parseInt(_0x5e251c(0x1cb))/0xc);if(_0x30b922===_0x4a8e5b)break;else _0x586e09['push'](_0x586e09['shift']());}catch(_0x3fb898){_0x586e09['push'](_0x586e09['shift']());}}}(_0x4f7c,0x51c92));import{CKEditorError as _0x1f2991,ObservableMixin as _0x522e51,uid as _0x36e269}from'ckeditor5/src/utils.js';import{Element as _0x316c3a,findAll as _0x10fc03,getAttribute as _0x350188,getParents as _0x514d4c,Document as _0x3753c9,parse as _0x51c887,Text as _0x29c142}from'../utils/htmlparser.js';import{AIResponseParser as _0x3a2ff9}from'../pipeline/airesponseparser.js';function _0x4f7c(){const _0x3245fa=['2779651guAixi','span','_getCachedContentParts','web-search','state','2572712oVSNAz','node','every','new','newNodeIds','cloneNode','values','_setCachedContentParts','nextSibling','data-unstable','content','includes','color:\x20#808080;\x20font-style:\x20italic','1287608hlzocv','removedNodeIds','changes','data-id','text-delta','splice','removed','ai-reply-get-content-parts-group-not-found','merge','find','stopListening','fire','parseAndNormalizeHTML','context','index','previousSibling','replyContentUpdated','reasoning','editor','appendContent','destroy','2IDDPbS','conversation-title','documentContextContent','withDiff','sources','areActionsDisabled','source','515640kDXfXQ','map','parsedContent','306VUEVuU','6815666QVPOeC','pending','replyChangeGroupStateUpdated','indexOf','convertMarkdownToHTML','setChangeGroupState','forEach','done','onContentChange','set','1548790uMCeuV','9odFAfs','24CtmBLr','ai-get-editor-from-context-no-editor','getContentParts','cachedSuggestionContentParts','filter','modifiedNodeIds','withoutDiff','unshift','AI_SUGGESTION_CONTENT_PART_REMOVED','3diHltx','push','isDone','type','updateChangeGroups','modification-delta','interactionId','aiResponseApplier','1245VXmwTX','changeGroups','parsedMergedContent','aiResponseParser','length','locale','change:content','_getDifferentChangeGroups','modified'];_0x4f7c=function(){return _0x3245fa;};return _0x4f7c();}import{AIResponseApplier as _0x519bc1}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x62f285}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x414239}from'../utils/common-translations.js';import{cloneDeep as _0x44f0b5}from'es-toolkit';export const AI_REPLY_TYPES=[_0x593493(0x1d9),_0x593493(0x1a3),_0x593493(0x1e8),_0x593493(0x1b0)];export const AI_REPLY_TYPES_IGNORED=[_0x593493(0x1b5)];export const AI_REPLY_TITLE_TYPE=_0x593493(0x1b5);export class AIReply extends _0x522e51(){['id'];[_0x593493(0x1da)];[_0x593493(0x1d7)];[_0x593493(0x1b8)]=[];[_0x593493(0x1bd)]=new _0x3753c9([]);[_0x593493(0x1de)]=new _0x3753c9([]);[_0x593493(0x1dd)]=[];[_0x593493(0x1b9)]=!0x1;[_0x593493(0x1b6)];[_0x593493(0x1df)];[_0x593493(0x1db)];[_0x593493(0x1b1)];[_0x593493(0x1ce)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x221d9a,content:_0x362e62='',isDone:_0x53d6d5=!0x1,interactionId:_0xa77fa3,areActionsDisabled:_0x4b07d0,documentContextContent:_0x45fa52,editor:_0x74d187,id:_0xbcdba6}){const _0x57febe=_0x593493;super(),this['id']=_0xbcdba6||_0x36e269(),this[_0x57febe(0x1da)]=_0xa77fa3,this[_0x57febe(0x1d7)]=_0x221d9a,this[_0x57febe(0x1b9)]=!!_0x4b07d0,this[_0x57febe(0x1b1)]=_0x74d187,this[_0x57febe(0x1df)]=new _0x3a2ff9(),this[_0x57febe(0x1db)]=new _0x519bc1(),this[_0x57febe(0x1b6)]=_0x51c887(_0x45fa52||''),this[_0x57febe(0x1c8)](_0x57febe(0x1d6),_0x53d6d5),this['on'](_0x57febe(0x1e2),()=>{const _0x27f38a=_0x57febe;this[_0x27f38a(0x1c7)]();}),this[_0x57febe(0x1c8)](_0x57febe(0x19c),_0x362e62);}[_0x593493(0x1b2)](_0x339226){const _0x762ec1=_0x593493;this[_0x762ec1(0x1c8)](_0x762ec1(0x19c),this[_0x762ec1(0x19c)]+_0x339226);}[_0x593493(0x1c6)](){const _0x21ca1f=_0x593493;this[_0x21ca1f(0x1d6)]||(this[_0x21ca1f(0x1c8)](_0x21ca1f(0x1d6),!0x0),this[_0x21ca1f(0x1c7)]());}[_0x593493(0x1b3)](){const _0x2cf336=_0x593493;this[_0x2cf336(0x1a9)]();}[_0x593493(0x1c4)](_0x4cb3e5,_0x56aa76){const _0x3db98f=_0x593493;this[_0x3db98f(0x1dd)][_0x4cb3e5][_0x3db98f(0x1e9)]=_0x56aa76,this[_0x3db98f(0x1aa)](_0x3db98f(0x1c1),{'reply':this,'index':_0x4cb3e5,'state':_0x56aa76});}[_0x593493(0x1cd)]({showDiff:_0x2c0d70,groupIndex:_0x29b6d3}){const _0x17b096=_0x593493;if(!this[_0x17b096(0x1b1)])throw new _0x1f2991(_0x17b096(0x1cc),null,{'aiReply':this});const _0x3f8302=this[_0x17b096(0x1e7)](_0x2c0d70,_0x29b6d3);if(_0x3f8302)return _0x3f8302;let _0x2fd6e2=[];if(void 0x0===_0x29b6d3)_0x2fd6e2=this[_0x17b096(0x1dd)];else{const _0x424a7f=this[_0x17b096(0x1dd)][_0x17b096(0x1a8)](({index:_0x451808})=>_0x451808===_0x29b6d3);if(!_0x424a7f)throw new _0x1f2991(_0x17b096(0x1a6),null,{'aiReply':this,'groupIndex':_0x29b6d3});_0x2fd6e2=[_0x424a7f];}const _0x2b262d=_0x62f285({'editor':this[_0x17b096(0x1b1)],'showDiff':_0x2c0d70,'changeGroups':_0x2fd6e2,'documentContextContent':this[_0x17b096(0x1b6)]});return this[_0x17b096(0x1f1)](_0x2c0d70,_0x2b262d),_0x2b262d;}[_0x593493(0x1e7)](_0xdbc3d0,_0x48013a){const _0x154fe1=_0x593493,_0x29abff=_0xdbc3d0?_0x154fe1(0x1b7):_0x154fe1(0x1d1);if(!this[_0x154fe1(0x1ce)][_0x29abff][_0x154fe1(0x1e0)])return null;const _0x436c7c=this[_0x154fe1(0x1ce)][_0x29abff];if(void 0x0===_0x48013a)return _0x44f0b5(_0x436c7c);{const _0x4b5e97=_0x436c7c[_0x154fe1(0x1a8)](({index:_0xe21fd5})=>_0xe21fd5===_0x48013a);if(_0x4b5e97)return[_0x44f0b5(_0x4b5e97)];}return null;}[_0x593493(0x1f1)](_0x174ce6,_0x40dbe2){const _0x43b0a5=_0x593493,_0xf913af=_0x174ce6?_0x43b0a5(0x1b7):_0x43b0a5(0x1d1);_0x40dbe2[_0x43b0a5(0x1c5)](_0x188593=>{const _0x578d2b=_0x43b0a5,_0x5ca1cd=this[_0x578d2b(0x1ce)][_0xf913af],_0x2bdb61=_0x5ca1cd[_0x578d2b(0x1a8)](({index:_0x34f130})=>_0x34f130===_0x188593[_0x578d2b(0x1ad)]);if(_0x2bdb61){const _0x5e37d0=_0x5ca1cd[_0x578d2b(0x1c2)](_0x2bdb61);_0x5ca1cd[_0x578d2b(0x1a4)](_0x5e37d0,0x1,_0x188593);}else _0x5ca1cd[_0x578d2b(0x1d5)](_0x188593);});}[_0x593493(0x1c7)](){const _0x3872df=_0x593493;if(_0x3872df(0x1d9)===this[_0x3872df(0x1d7)]){this[_0x3872df(0x1bd)]=this[_0x3872df(0x1df)][_0x3872df(0x1ab)](this[_0x3872df(0x19c)]);const _0x3b2b2d=this[_0x3872df(0x1dd)];this[_0x3872df(0x1d8)]();const _0x16d646=this[_0x3872df(0x1e3)](_0x3b2b2d,this[_0x3872df(0x1dd)]);(_0x16d646[_0x3872df(0x1e0)]||this[_0x3872df(0x1d6)])&&(this[_0x3872df(0x1aa)](_0x3872df(0x1af),this,_0x16d646),this[_0x3872df(0x1ce)][_0x3872df(0x1b7)][_0x3872df(0x1e0)]=this[_0x3872df(0x1ce)][_0x3872df(0x1d1)][_0x3872df(0x1e0)]=0x0);}else this[_0x3872df(0x1bd)]=this[_0x3872df(0x1df)][_0x3872df(0x1c3)](this[_0x3872df(0x19c)]),this[_0x3872df(0x1aa)](_0x3872df(0x1af),this);}[_0x593493(0x1e3)](_0x40c25f,_0xc337e7){const _0x385a2c=_0x593493,_0x10cfd7=[];for(const _0x224a1e of _0xc337e7){const _0x2b996d=_0x40c25f[_0x224a1e[_0x385a2c(0x1ad)]];_0x2b996d?_0x2b996d[_0x385a2c(0x1a1)][_0x385a2c(0x1e0)]!==_0x224a1e[_0x385a2c(0x1a1)][_0x385a2c(0x1e0)]?_0x10cfd7[_0x385a2c(0x1d5)](_0x224a1e):_0x2b996d[_0x385a2c(0x1a1)][_0x385a2c(0x1c5)]((_0x49c3a9,_0x55fbb2)=>{const _0x107da8=_0x385a2c,_0xec1622=_0x224a1e[_0x107da8(0x1a1)][_0x55fbb2];_0x49c3a9['id']!==_0xec1622['id']&&_0x10cfd7[_0x107da8(0x1d5)](_0x224a1e);}):_0x10cfd7[_0x385a2c(0x1d5)](_0x224a1e);}return _0x10cfd7;}[_0x593493(0x1d8)](){const _0x1d588a=_0x593493,_0x10253b=new _0x316c3a('p',{},[new _0x316c3a(_0x1d588a(0x1e6),{'style':_0x1d588a(0x19e)},[new _0x29c142(_0x414239(this[_0x1d588a(0x1b1)][_0x1d588a(0x1e1)],_0x1d588a(0x1d3)))])]),_0x54d8e2=this[_0x1d588a(0x1db)][_0x1d588a(0x1a7)](this[_0x1d588a(0x1bd)],this[_0x1d588a(0x1b6)][_0x1d588a(0x1ef)](!0x0),{'markUnstableElements':!this[_0x1d588a(0x1d6)],'replaceRemovedWith':_0x10253b,'cutAfterLastChange':!this[_0x1d588a(0x1d6)]});if(!_0x54d8e2[_0x1d588a(0x1d0)][_0x1d588a(0x1e0)]&&!this[_0x1d588a(0x1d6)])return;this[_0x1d588a(0x1de)]=_0x54d8e2[_0x1d588a(0x1bd)];let _0x45caa1=[];if(_0x10fc03(_0x54982a=>{const _0x1d8c80=_0x1d588a,_0x3ca72a=_0x350188(_0x54982a,_0x1d8c80(0x1a2));if(!_0x3ca72a||!_0x21a51a(_0x3ca72a))return!0x1;const _0x41197e=[_0x54982a,..._0x514d4c(_0x54982a)]['at'](-0x2);if(_0x54982a!=_0x41197e){const _0x95e03f=_0x350188(_0x41197e,_0x1d8c80(0x1a2));_0x21a51a(_0x95e03f)||(_0x45caa1[_0x1d8c80(0x1d5)]({'node':_0x41197e,'id':_0x95e03f,'type':_0x1d8c80(0x1e4)}),_0x54d8e2[_0x1d8c80(0x1d0)][_0x1d8c80(0x1d5)](_0x95e03f));}else _0x54d8e2[_0x1d8c80(0x1d0)][_0x1d8c80(0x19d)](_0x3ca72a)?_0x45caa1[_0x1d8c80(0x1d5)]({'node':_0x54982a,'type':_0x1d8c80(0x1e4),'id':_0x3ca72a}):_0x54d8e2[_0x1d8c80(0x1ee)][_0x1d8c80(0x19d)](_0x3ca72a)?_0x45caa1[_0x1d8c80(0x1d5)]({'node':_0x54982a,'type':_0x1d8c80(0x1ed),'id':_0x3ca72a,'anchorId':_0x350188(_0x54982a[_0x1d8c80(0x1ae)],_0x1d8c80(0x1a2))}):_0x45caa1[_0x1d8c80(0x1d5)]({'node':_0x54982a,'type':_0x1d8c80(0x1a5),'id':_0x3ca72a});return!0x0;},this[_0x1d588a(0x1de)]),_0x45caa1=_0x45caa1[_0x1d588a(0x1cf)](({node:_0x1348a7})=>[..._0x514d4c(_0x1348a7),_0x1348a7][_0x1d588a(0x1ec)](_0x1c8a26=>!_0x350188(_0x1c8a26,_0x1d588a(0x19b)))),0x0==_0x45caa1[_0x1d588a(0x1e0)])return;const _0x5ad8e1=[[_0x45caa1[0x0]]];for(let _0x1cb294=0x1;_0x1cb294<_0x45caa1[_0x1d588a(0x1e0)];_0x1cb294++){const _0x9de08=_0x5ad8e1[_0x5ad8e1[_0x1d588a(0x1e0)]-0x1],_0xddc12=_0x9de08[_0x9de08[_0x1d588a(0x1e0)]-0x1];_0x45caa1[_0x1cb294][_0x1d588a(0x1eb)][_0x1d588a(0x1ae)]==_0xddc12[_0x1d588a(0x1eb)]&&_0x1d588a(0x1e4)!=_0x45caa1[_0x1cb294][_0x1d588a(0x1d7)]&&_0x1d588a(0x1e4)!=_0xddc12[_0x1d588a(0x1d7)]?_0x9de08[_0x1d588a(0x1d5)](_0x45caa1[_0x1cb294]):_0x5ad8e1[_0x1d588a(0x1d5)]([_0x45caa1[_0x1cb294]]);}for(const _0x246721 of _0x5ad8e1){const _0x599533=_0x246721[0x0],_0x1dabb0=_0x246721[_0x246721[_0x1d588a(0x1e0)]-0x1],_0x917677=_0x923aac(_0x599533[_0x1d588a(0x1eb)][_0x1d588a(0x1ae)]);_0x917677&&_0x246721[_0x1d588a(0x1d2)](_0x917677);const _0x42a338=_0x923aac(_0x1dabb0[_0x1d588a(0x1eb)][_0x1d588a(0x19a)]);_0x42a338&&_0x246721[_0x1d588a(0x1d5)](_0x42a338);}function _0x21a51a(_0x1aefe9){const _0x5145dc=_0x1d588a;return _0x54d8e2[_0x5145dc(0x1d0)][_0x5145dc(0x19d)](_0x1aefe9)||_0x54d8e2[_0x5145dc(0x1ee)][_0x5145dc(0x19d)](_0x1aefe9)||_0x54d8e2[_0x5145dc(0x1a0)][_0x5145dc(0x19d)](_0x1aefe9);}function _0x923aac(_0x2f0667){const _0x3e8bd6=_0x1d588a;if(_0x2f0667&&_0x350188(_0x2f0667,_0x3e8bd6(0x1a2))&&!_0x350188(_0x2f0667,_0x3e8bd6(0x19b))){const _0xb44fa4=_0x350188(_0x2f0667,_0x3e8bd6(0x1a2));if(!_0x21a51a(_0xb44fa4))return{'node':_0x2f0667,'type':_0x3e8bd6(0x1ac),'id':_0xb44fa4};}return null;}this[_0x1d588a(0x1dd)]=_0x5ad8e1[_0x1d588a(0x1bc)]((_0x2c1394,_0x2df253)=>({'changes':_0x2c1394,'state':_0x1d588a(0x1c0),'index':_0x2df253}));}}function _0x216a(_0x1df85c,_0x49cc84){const _0x4f7ca5=_0x4f7c();return _0x216a=function(_0x216a25,_0x19c05f){_0x216a25=_0x216a25-0x19a;let _0x3f094c=_0x4f7ca5[_0x216a25];return _0x3f094c;},_0x216a(_0x1df85c,_0x49cc84);}export function isValidReplyType(_0xe06df2){const _0x53c996=_0x593493;return Object[_0x53c996(0x1f0)](AI_REPLY_TYPES)[_0x53c996(0x19d)](_0xe06df2);}export function isIgnoredReplyType(_0x5255ec){const _0x4dd88e=_0x593493;return AI_REPLY_TYPES_IGNORED[_0x4dd88e(0x19d)](_0x5255ec);}export function isReplyTitleType(_0x1c5b82){return _0x1c5b82===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0xa74a4c){const _0x49bc2a=_0x593493;return _0x49bc2a(0x1ba)===_0xa74a4c;}
23
+ function _0x2b97(){const _0xd1dce4=['changes','appendContent','interactionId','cloneNode','6rmVzIJ','9131220opovUN','forEach','parsedContent','documentContextContent','replyContentUpdated','conversation-title','locale','filter','parsedMergedContent','updateChangeGroups','values','getContentParts','850OWcszS','pending','data-unstable','453QNKnBp','aiResponseParser','6752wbSUwn','find','changeGroups','source','AI_SUGGESTION_CONTENT_PART_REMOVED','change:content','withoutDiff','push','744020iATSle','201908RzRBAk','areActionsDisabled','set','aiResponseApplier','withDiff','every','stopListening','2529096pfwaOk','text-delta','web-search','setChangeGroupState','done','nextSibling','span','onContentChange','destroy','reasoning','replyChangeGroupStateUpdated','parseAndNormalizeHTML','editor','_getDifferentChangeGroups','modification-delta','color:\x20#808080;\x20font-style:\x20italic','modified','new','sources','convertMarkdownToHTML','cachedSuggestionContentParts','2629345sKnlap','unshift','length','13qdajSs','indexOf','ai-reply-get-content-parts-group-not-found','node','data-id','_setCachedContentParts','55cwvnOo','context','type','previousSibling','1175uWRBbv','isDone','map','removedNodeIds','includes','fire','ai-get-editor-from-context-no-editor','merge','modifiedNodeIds','state','_getCachedContentParts','content','index','9qaRCgF','removed','splice','newNodeIds'];_0x2b97=function(){return _0xd1dce4;};return _0x2b97();}const _0x19802d=_0x3057;(function(_0x481a51,_0x13dfbf){const _0x3227fc=_0x3057,_0x181c22=_0x481a51();while(!![]){try{const _0x4d314e=-parseInt(_0x3227fc(0x10e))/0x1*(-parseInt(_0x3227fc(0xd7))/0x2)+-parseInt(_0x3227fc(0xda))/0x3*(-parseInt(_0x3227fc(0xdc))/0x4)+parseInt(_0x3227fc(0x101))/0x5*(-parseInt(_0x3227fc(0xca))/0x6)+-parseInt(_0x3227fc(0xe5))/0x7+-parseInt(_0x3227fc(0xec))/0x8*(parseInt(_0x3227fc(0x11b))/0x9)+parseInt(_0x3227fc(0xe4))/0xa*(-parseInt(_0x3227fc(0x10a))/0xb)+parseInt(_0x3227fc(0xcb))/0xc*(parseInt(_0x3227fc(0x104))/0xd);if(_0x4d314e===_0x13dfbf)break;else _0x181c22['push'](_0x181c22['shift']());}catch(_0x138f31){_0x181c22['push'](_0x181c22['shift']());}}}(_0x2b97,0x427d2));import{CKEditorError as _0x45eaec,ObservableMixin as _0x4c7156,uid as _0x8fd10f}from'ckeditor5/src/utils.js';function _0x3057(_0x34cc90,_0x37e594){const _0x2b973a=_0x2b97();return _0x3057=function(_0x3057db,_0x58f137){_0x3057db=_0x3057db-0xc7;let _0xe9d815=_0x2b973a[_0x3057db];return _0xe9d815;},_0x3057(_0x34cc90,_0x37e594);}import{Element as _0x3c0f5e,findAll as _0x5547b7,getAttribute as _0x22cf8c,getParents as _0x557046,Document as _0x2ce9a1,parse as _0x2e0c24,Text as _0x5b3951}from'../utils/htmlparser.js';import{AIResponseParser as _0x1213e5}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x19820c}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x14fc5b}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x57c541}from'../utils/common-translations.js';import{cloneDeep as _0x4a51b3}from'es-toolkit';export const AI_REPLY_TYPES=[_0x19802d(0xfa),_0x19802d(0xed),_0x19802d(0xee),_0x19802d(0xf5)];export const AI_REPLY_TYPES_IGNORED=[_0x19802d(0xd0)];export const AI_REPLY_TITLE_TYPE=_0x19802d(0xd0);export class AIReply extends _0x4c7156(){['id'];[_0x19802d(0xc8)];[_0x19802d(0x10c)];[_0x19802d(0xfe)]=[];[_0x19802d(0xcd)]=new _0x2ce9a1([]);[_0x19802d(0xd3)]=new _0x2ce9a1([]);[_0x19802d(0xde)]=[];[_0x19802d(0xe6)]=!0x1;[_0x19802d(0xce)];[_0x19802d(0xdb)];[_0x19802d(0xe8)];[_0x19802d(0xf8)];[_0x19802d(0x100)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x25fa59,content:_0xc56d74='',isDone:_0x5c757b=!0x1,interactionId:_0xb76d14,areActionsDisabled:_0x40b310,documentContextContent:_0x177ca1,editor:_0x16d2c2,id:_0x31e025}){const _0xd1dcdd=_0x19802d;super(),this['id']=_0x31e025||_0x8fd10f(),this[_0xd1dcdd(0xc8)]=_0xb76d14,this[_0xd1dcdd(0x10c)]=_0x25fa59,this[_0xd1dcdd(0xe6)]=!!_0x40b310,this[_0xd1dcdd(0xf8)]=_0x16d2c2,this[_0xd1dcdd(0xdb)]=new _0x1213e5(),this[_0xd1dcdd(0xe8)]=new _0x19820c(),this[_0xd1dcdd(0xce)]=_0x2e0c24(_0x177ca1||''),this[_0xd1dcdd(0xe7)](_0xd1dcdd(0x10f),_0x5c757b),this['on'](_0xd1dcdd(0xe1),()=>{const _0x2c88fb=_0xd1dcdd;this[_0x2c88fb(0xf3)]();}),this[_0xd1dcdd(0xe7)](_0xd1dcdd(0x119),_0xc56d74);}[_0x19802d(0xc7)](_0x330b6a){const _0xa8fda2=_0x19802d;this[_0xa8fda2(0xe7)](_0xa8fda2(0x119),this[_0xa8fda2(0x119)]+_0x330b6a);}[_0x19802d(0xf0)](){const _0x35bef1=_0x19802d;this[_0x35bef1(0x10f)]||(this[_0x35bef1(0xe7)](_0x35bef1(0x10f),!0x0),this[_0x35bef1(0xf3)]());}[_0x19802d(0xf4)](){const _0x25fdf2=_0x19802d;this[_0x25fdf2(0xeb)]();}[_0x19802d(0xef)](_0x44e7da,_0x4ade33){const _0x2a7d19=_0x19802d;this[_0x2a7d19(0xde)][_0x44e7da][_0x2a7d19(0x117)]=_0x4ade33,this[_0x2a7d19(0x113)](_0x2a7d19(0xf6),{'reply':this,'index':_0x44e7da,'state':_0x4ade33});}[_0x19802d(0xd6)]({showDiff:_0x703a65,groupIndex:_0x22e428}){const _0x281b20=_0x19802d;if(!this[_0x281b20(0xf8)])throw new _0x45eaec(_0x281b20(0x114),null,{'aiReply':this});const _0x465dee=this[_0x281b20(0x118)](_0x703a65,_0x22e428);if(_0x465dee)return _0x465dee;let _0x2781bd=[];if(void 0x0===_0x22e428)_0x2781bd=this[_0x281b20(0xde)];else{const _0x573605=this[_0x281b20(0xde)][_0x281b20(0xdd)](({index:_0xb54601})=>_0xb54601===_0x22e428);if(!_0x573605)throw new _0x45eaec(_0x281b20(0x106),null,{'aiReply':this,'groupIndex':_0x22e428});_0x2781bd=[_0x573605];}const _0x54a695=_0x14fc5b({'editor':this[_0x281b20(0xf8)],'showDiff':_0x703a65,'changeGroups':_0x2781bd,'documentContextContent':this[_0x281b20(0xce)]});return this[_0x281b20(0x109)](_0x703a65,_0x54a695),_0x54a695;}[_0x19802d(0x118)](_0x46e524,_0xd04bc4){const _0x1123ae=_0x19802d,_0x459adc=_0x46e524?_0x1123ae(0xe9):_0x1123ae(0xe2);if(!this[_0x1123ae(0x100)][_0x459adc][_0x1123ae(0x103)])return null;const _0x5ee115=this[_0x1123ae(0x100)][_0x459adc];if(void 0x0===_0xd04bc4)return _0x4a51b3(_0x5ee115);{const _0x4a7798=_0x5ee115[_0x1123ae(0xdd)](({index:_0x134b5f})=>_0x134b5f===_0xd04bc4);if(_0x4a7798)return[_0x4a51b3(_0x4a7798)];}return null;}[_0x19802d(0x109)](_0x1ab82b,_0x2244ae){const _0x50675a=_0x19802d,_0xc77a90=_0x1ab82b?_0x50675a(0xe9):_0x50675a(0xe2);_0x2244ae[_0x50675a(0xcc)](_0x5dfc4f=>{const _0x114f16=_0x50675a,_0x1ac61c=this[_0x114f16(0x100)][_0xc77a90],_0x9310d9=_0x1ac61c[_0x114f16(0xdd)](({index:_0x2de9b0})=>_0x2de9b0===_0x5dfc4f[_0x114f16(0x11a)]);if(_0x9310d9){const _0x388170=_0x1ac61c[_0x114f16(0x105)](_0x9310d9);_0x1ac61c[_0x114f16(0x11d)](_0x388170,0x1,_0x5dfc4f);}else _0x1ac61c[_0x114f16(0xe3)](_0x5dfc4f);});}[_0x19802d(0xf3)](){const _0x25202d=_0x19802d;if(_0x25202d(0xfa)===this[_0x25202d(0x10c)]){this[_0x25202d(0xcd)]=this[_0x25202d(0xdb)][_0x25202d(0xf7)](this[_0x25202d(0x119)]);const _0x301010=this[_0x25202d(0xde)];this[_0x25202d(0xd4)]();const _0x5dd1e3=this[_0x25202d(0xf9)](_0x301010,this[_0x25202d(0xde)]);(_0x5dd1e3[_0x25202d(0x103)]||this[_0x25202d(0x10f)])&&(this[_0x25202d(0x113)](_0x25202d(0xcf),this,_0x5dd1e3),this[_0x25202d(0x100)][_0x25202d(0xe9)][_0x25202d(0x103)]=this[_0x25202d(0x100)][_0x25202d(0xe2)][_0x25202d(0x103)]=0x0);}else this[_0x25202d(0xcd)]=this[_0x25202d(0xdb)][_0x25202d(0xff)](this[_0x25202d(0x119)]),this[_0x25202d(0x113)](_0x25202d(0xcf),this);}[_0x19802d(0xf9)](_0x28c7ff,_0x2f0b25){const _0x2869b7=_0x19802d,_0x2957c0=[];for(const _0x159f0d of _0x2f0b25){const _0x341de1=_0x28c7ff[_0x159f0d[_0x2869b7(0x11a)]];_0x341de1?_0x341de1[_0x2869b7(0x11f)][_0x2869b7(0x103)]!==_0x159f0d[_0x2869b7(0x11f)][_0x2869b7(0x103)]?_0x2957c0[_0x2869b7(0xe3)](_0x159f0d):_0x341de1[_0x2869b7(0x11f)][_0x2869b7(0xcc)]((_0x345435,_0x4c7b26)=>{const _0x25d5f6=_0x2869b7,_0x3adc22=_0x159f0d[_0x25d5f6(0x11f)][_0x4c7b26];_0x345435['id']!==_0x3adc22['id']&&_0x2957c0[_0x25d5f6(0xe3)](_0x159f0d);}):_0x2957c0[_0x2869b7(0xe3)](_0x159f0d);}return _0x2957c0;}[_0x19802d(0xd4)](){const _0x557a4a=_0x19802d,_0x56f33a=new _0x3c0f5e('p',{},[new _0x3c0f5e(_0x557a4a(0xf2),{'style':_0x557a4a(0xfb)},[new _0x5b3951(_0x57c541(this[_0x557a4a(0xf8)][_0x557a4a(0xd1)],_0x557a4a(0xe0)))])]),_0x4afaad=this[_0x557a4a(0xe8)][_0x557a4a(0x115)](this[_0x557a4a(0xcd)],this[_0x557a4a(0xce)][_0x557a4a(0xc9)](!0x0),{'markUnstableElements':!this[_0x557a4a(0x10f)],'replaceRemovedWith':_0x56f33a,'cutAfterLastChange':!this[_0x557a4a(0x10f)]});if(!_0x4afaad[_0x557a4a(0x116)][_0x557a4a(0x103)]&&!this[_0x557a4a(0x10f)])return;this[_0x557a4a(0xd3)]=_0x4afaad[_0x557a4a(0xcd)];let _0x341cfd=[];if(_0x5547b7(_0x56ca12=>{const _0x1b7a76=_0x557a4a,_0x26b43c=_0x22cf8c(_0x56ca12,_0x1b7a76(0x108));if(!_0x26b43c||!_0x301880(_0x26b43c))return!0x1;const _0x4e13c7=[_0x56ca12,..._0x557046(_0x56ca12)]['at'](-0x2);if(_0x56ca12!=_0x4e13c7){const _0x1dcf67=_0x22cf8c(_0x4e13c7,_0x1b7a76(0x108));_0x301880(_0x1dcf67)||(_0x341cfd[_0x1b7a76(0xe3)]({'node':_0x4e13c7,'id':_0x1dcf67,'type':_0x1b7a76(0xfc)}),_0x4afaad[_0x1b7a76(0x116)][_0x1b7a76(0xe3)](_0x1dcf67));}else _0x4afaad[_0x1b7a76(0x116)][_0x1b7a76(0x112)](_0x26b43c)?_0x341cfd[_0x1b7a76(0xe3)]({'node':_0x56ca12,'type':_0x1b7a76(0xfc),'id':_0x26b43c}):_0x4afaad[_0x1b7a76(0x11e)][_0x1b7a76(0x112)](_0x26b43c)?_0x341cfd[_0x1b7a76(0xe3)]({'node':_0x56ca12,'type':_0x1b7a76(0xfd),'id':_0x26b43c,'anchorId':_0x22cf8c(_0x56ca12[_0x1b7a76(0x10d)],_0x1b7a76(0x108))}):_0x341cfd[_0x1b7a76(0xe3)]({'node':_0x56ca12,'type':_0x1b7a76(0x11c),'id':_0x26b43c});return!0x0;},this[_0x557a4a(0xd3)]),_0x341cfd=_0x341cfd[_0x557a4a(0xd2)](({node:_0x297d00})=>[..._0x557046(_0x297d00),_0x297d00][_0x557a4a(0xea)](_0x4f9dd9=>!_0x22cf8c(_0x4f9dd9,_0x557a4a(0xd9)))),0x0==_0x341cfd[_0x557a4a(0x103)])return;const _0x386360=[[_0x341cfd[0x0]]];for(let _0x4495f4=0x1;_0x4495f4<_0x341cfd[_0x557a4a(0x103)];_0x4495f4++){const _0xb0fa5b=_0x386360[_0x386360[_0x557a4a(0x103)]-0x1],_0xad4333=_0xb0fa5b[_0xb0fa5b[_0x557a4a(0x103)]-0x1];_0x341cfd[_0x4495f4][_0x557a4a(0x107)][_0x557a4a(0x10d)]==_0xad4333[_0x557a4a(0x107)]&&_0x557a4a(0xfc)!=_0x341cfd[_0x4495f4][_0x557a4a(0x10c)]&&_0x557a4a(0xfc)!=_0xad4333[_0x557a4a(0x10c)]?_0xb0fa5b[_0x557a4a(0xe3)](_0x341cfd[_0x4495f4]):_0x386360[_0x557a4a(0xe3)]([_0x341cfd[_0x4495f4]]);}for(const _0x1b8a54 of _0x386360){const _0x34d27b=_0x1b8a54[0x0],_0x1b118d=_0x1b8a54[_0x1b8a54[_0x557a4a(0x103)]-0x1],_0x2e3f70=_0x41cd10(_0x34d27b[_0x557a4a(0x107)][_0x557a4a(0x10d)]);_0x2e3f70&&_0x1b8a54[_0x557a4a(0x102)](_0x2e3f70);const _0x4a2096=_0x41cd10(_0x1b118d[_0x557a4a(0x107)][_0x557a4a(0xf1)]);_0x4a2096&&_0x1b8a54[_0x557a4a(0xe3)](_0x4a2096);}function _0x301880(_0x38cba1){const _0x1423b4=_0x557a4a;return _0x4afaad[_0x1423b4(0x116)][_0x1423b4(0x112)](_0x38cba1)||_0x4afaad[_0x1423b4(0x11e)][_0x1423b4(0x112)](_0x38cba1)||_0x4afaad[_0x1423b4(0x111)][_0x1423b4(0x112)](_0x38cba1);}function _0x41cd10(_0x121447){const _0x5467f9=_0x557a4a;if(_0x121447&&_0x22cf8c(_0x121447,_0x5467f9(0x108))&&!_0x22cf8c(_0x121447,_0x5467f9(0xd9))){const _0x52a73d=_0x22cf8c(_0x121447,_0x5467f9(0x108));if(!_0x301880(_0x52a73d))return{'node':_0x121447,'type':_0x5467f9(0x10b),'id':_0x52a73d};}return null;}this[_0x557a4a(0xde)]=_0x386360[_0x557a4a(0x110)]((_0x478d68,_0x46ceeb)=>({'changes':_0x478d68,'state':_0x557a4a(0xd8),'index':_0x46ceeb}));}}export function isValidReplyType(_0x5988e6){const _0x1f7c80=_0x19802d;return Object[_0x1f7c80(0xd5)](AI_REPLY_TYPES)[_0x1f7c80(0x112)](_0x5988e6);}export function isIgnoredReplyType(_0x44a0ca){const _0x3a7ad8=_0x19802d;return AI_REPLY_TYPES_IGNORED[_0x3a7ad8(0x112)](_0x44a0ca);}export function isReplyTitleType(_0x32b0c4){return _0x32b0c4===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x57afd5){const _0x5f5db1=_0x19802d;return _0x5f5db1(0xdf)===_0x57afd5;}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x46e315=_0x4d48;function _0x4d48(_0x20c747,_0x436ac5){const _0x53c868=_0x53c8();return _0x4d48=function(_0x4d4829,_0x333970){_0x4d4829=_0x4d4829-0x9b;let _0x5cd0ee=_0x53c868[_0x4d4829];return _0x5cd0ee;},_0x4d48(_0x20c747,_0x436ac5);}(function(_0x15dc0c,_0x553dc8){const _0x395c89=_0x4d48,_0x66627c=_0x15dc0c();while(!![]){try{const _0x34983a=-parseInt(_0x395c89(0xdc))/0x1*(parseInt(_0x395c89(0xae))/0x2)+parseInt(_0x395c89(0xb0))/0x3*(-parseInt(_0x395c89(0xbe))/0x4)+parseInt(_0x395c89(0xc2))/0x5*(parseInt(_0x395c89(0xa3))/0x6)+parseInt(_0x395c89(0xcb))/0x7*(-parseInt(_0x395c89(0xbd))/0x8)+-parseInt(_0x395c89(0x9c))/0x9+-parseInt(_0x395c89(0xd0))/0xa*(-parseInt(_0x395c89(0x9f))/0xb)+parseInt(_0x395c89(0xaf))/0xc*(parseInt(_0x395c89(0xc3))/0xd);if(_0x34983a===_0x553dc8)break;else _0x66627c['push'](_0x66627c['shift']());}catch(_0x28b767){_0x66627c['push'](_0x66627c['shift']());}}}(_0x53c8,0x45232));import{ObservableMixin as _0x258ec0,uid as _0x4c15dc}from'ckeditor5/src/utils.js';function _0x53c8(){const _0xca0f3c=['from','match','_markUnstableElements','175355IMivnN','6513nBqdxs','data-wrapped-id','_removeSpecialComments','_replaceNode','_findNextElementWithDataId','_markLastTagElementUnstable','data-unstable','newIds','1561595maAzxU','data-removed','_findFallbackReferenceNode','length','_generateUid','3310350EaQfvR','splice','_existingDataIds','removedIds','data-id','_markWrappedElements','map','nodeType','childNodes','_isExistingContentComment','_findReferenceNode','_isNewNode','466469tkTLrH','indexOf','filter','afterend','_isExistingNode','replaceRemovedWith','afterbegin','_touchedNodesState','new-element','beforebegin','459837FuiCYe','_getUid','lastChild','11SXbIIc','slice','merge','invalidIds','84BUzECM','_getNodeDataId','trim','_findPrevElementWithDataId','cutAfterLastChange','true','forEach','has','_insertNodes','cloneNode','push','2HGQXkg','12192wzEzsU','76803qsTRIM','_isDelNode','includes','lastTouchedId','_storeDeletedElementIds','nextSibling','reverse','parentNode','previousSibling','markUnstableElements','modifiedIds','markUnstableElementsDepth','_hasWrappedParent','8LlLkCA','48qICGsa'];_0x53c8=function(){return _0xca0f3c;};return _0x53c8();}import{findAllByAttribute as _0x5cd323,findByAttribute as _0xde5fce,getAttribute as _0x256857,isComment as _0x22821a,isTag as _0x454369,insertElement as _0xd22dc5,moveElement as _0xea4c65,removeElement as _0x323bdf,replaceElement as _0x53f494,serialize as _0xacb80d,setAttribute as _0x50f153,clone as _0x4f1a86,findAllComments as _0x2f5be0,getParents as _0x481fef,getNodeNestingLevel as _0x3ea9e0,areNodesSame as _0x4b5d3b,removeElementsAfter as _0x47346d}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x258ec0(){[_0x46e315(0xcf)];[_0x46e315(0xe3)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x46e315(0xd2)]=new Set();constructor(_0x65303c){const _0x5bf4=_0x46e315;super(),this[_0x5bf4(0xcf)]=_0x65303c||_0x4c15dc;}[_0x46e315(0xa1)](_0x5414b9,_0x887038,_0x485b44){const _0x344975=_0x46e315,_0x126800=_0x4f1a86(_0x5414b9);if(0x0===_0x887038[_0x344975(0xd8)][_0x344975(0xce)]){const _0x5e3b6e=[];return _0x5cd323(_0x344975(0xd4),_0x344975(0xe4),_0x126800)[_0x344975(0xa9)](_0x597218=>{const _0x135690=_0x344975,_0x89594b=this[_0x135690(0xcf)]();_0x50f153(_0x597218,_0x135690(0xd4),_0x89594b),_0x5e3b6e[_0x135690(0xad)](_0x89594b);}),this[_0x344975(0xc5)](_0x126800),{'parsedContent':_0x126800,'newNodeIds':_0x5e3b6e,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x485b44&&_0x485b44[_0x344975(0xb9)]&&this[_0x344975(0xc8)](_0x126800),this[_0x344975(0xe3)][_0x344975(0xca)]=[],this[_0x344975(0xe3)][_0x344975(0xba)]=[],this[_0x344975(0xe3)][_0x344975(0xd3)]=[],this[_0x344975(0xe3)][_0x344975(0xa2)]=[],this[_0x344975(0xe3)][_0x344975(0xb3)]=null,this[_0x344975(0xd2)]=new Set(_0x5cd323(_0x344975(0xd4),null,_0x887038)[_0x344975(0xd6)](_0x36869e=>_0x256857(_0x36869e,_0x344975(0xd4)))[_0x344975(0xde)](_0x194e93=>!!_0x194e93));let _0x3159c3=-0x1,_0x1d003d=!0x1;const _0x274f8b=_0x126800[_0x344975(0xd8)],_0xf5dab4=Array[_0x344975(0xbf)](_0x274f8b)[_0x344975(0xde)](_0x59b825=>!(0x3===_0x59b825[_0x344975(0xd7)]&&''===_0xacb80d(_0x59b825)[_0x344975(0xa5)]())),_0x423b20=_0xf5dab4[_0x344975(0xce)];for(let _0xc91eb=0x0;_0xc91eb<_0x423b20;_0xc91eb++){const _0x2836e3=_0xf5dab4[_0xc91eb],_0x5a4d39=_0xf5dab4[_0xc91eb+0x1];if(this[_0x344975(0xdb)](_0x2836e3)){if(-0x1===_0x3159c3&&(_0x3159c3=_0xc91eb),this[_0x344975(0xd5)](_0x2836e3),!this[_0x344975(0xdb)](_0x5a4d39)){const [_0x17b622,_0x3bb3ed]=this[_0x344975(0xda)](_0x2836e3,_0x1d003d,_0x887038);if(_0x17b622){const _0x6c2b78=Array[_0x344975(0xbf)](_0xf5dab4)[_0x344975(0xa0)](_0x3159c3,_0xc91eb+0x1);this[_0x344975(0xab)](_0x17b622,_0x6c2b78,_0x3bb3ed),_0x3159c3=-0x1;}}}else{if(this[_0x344975(0xd9)](_0x2836e3))_0x1d003d=!0x0;else{if(this[_0x344975(0xe0)](_0x2836e3)){const _0x32eec8=_0x256857(_0x2836e3,_0x344975(0xd4));if(_0x32eec8&&this[_0x344975(0xd2)][_0x344975(0xaa)](_0x32eec8)){const _0x384c72=_0xde5fce(_0x344975(0xd4),_0x32eec8,_0x887038);this[_0x344975(0xc6)](_0x384c72,_0x2836e3);}if(this[_0x344975(0xe3)][_0x344975(0xd3)][_0x344975(0xb2)](_0x32eec8)){const _0x551b3a=this[_0x344975(0xe3)][_0x344975(0xd3)][_0x344975(0xdd)](_0x32eec8);this[_0x344975(0xe3)][_0x344975(0xd3)][_0x344975(0xd1)](_0x551b3a,0x1);}}else{if(this[_0x344975(0xb1)](_0x2836e3)){const _0xe9dbb4=_0x256857(_0x2836e3,_0x344975(0xd4));this[_0x344975(0xe3)][_0x344975(0xba)][_0x344975(0xb2)](_0xe9dbb4)||this[_0x344975(0xb4)](_0x2836e3);}}}}}for(const _0x500e70 of this[_0x344975(0xe3)][_0x344975(0xd3)]){const _0x49d14b=_0xde5fce(_0x344975(0xd4),_0x500e70,_0x887038);if(_0x49d14b){if(_0x485b44&&_0x485b44[_0x344975(0xe1)]){this[_0x344975(0xe3)][_0x344975(0xb3)]=_0x500e70;const _0x486abb=_0x485b44[_0x344975(0xe1)][_0x344975(0xac)](!0x0);_0x50f153(_0x486abb,_0x344975(0xd4),_0x500e70),_0x50f153(_0x486abb,_0x344975(0xcc),_0x344975(0xa8)),_0x53f494(_0x49d14b,_0x486abb);}else _0x323bdf(_0x49d14b);}}if(_0x5cd323(_0x344975(0xc4),null,_0x887038)[_0x344975(0xa9)](_0x56d34d=>{const _0x4e40a4=_0x344975,_0x2c9a3b=_0x256857(_0x56d34d,_0x4e40a4(0xc4)),_0x594b10=_0xde5fce(_0x4e40a4(0xd4),_0x2c9a3b,_0x887038);_0x594b10&&_0xea4c65(_0x594b10,_0x56d34d);}),_0x5cd323(_0x344975(0xd4),_0x344975(0xe4),_0x887038)[_0x344975(0xa9)](_0x12ec6d=>{const _0x4c3422=_0x344975,_0x150fe1=this[_0x4c3422(0x9d)](_0x12ec6d);_0x50f153(_0x12ec6d,_0x4c3422(0xd4),_0x150fe1),this[_0x4c3422(0xe3)][_0x4c3422(0xca)][_0x4c3422(0xad)](_0x150fe1);}),this[_0x344975(0xc5)](_0x887038),_0x485b44&&_0x485b44[_0x344975(0xb9)]&&this[_0x344975(0xc1)](_0x887038,_0x485b44[_0x344975(0xbb)]||0x0),_0x485b44&&_0x485b44[_0x344975(0xa7)]&&this[_0x344975(0xe3)][_0x344975(0xb3)]){let _0x5de5d0=_0xde5fce(_0x344975(0xd4),this[_0x344975(0xe3)][_0x344975(0xb3)],_0x887038);for(;_0x5de5d0;)_0x47346d(_0x5de5d0),_0x5de5d0=_0x5de5d0[_0x344975(0xb7)];}return{'parsedContent':_0x887038,'newNodeIds':this[_0x344975(0xe3)][_0x344975(0xca)],'modifiedNodeIds':this[_0x344975(0xe3)][_0x344975(0xba)],'removedNodeIds':this[_0x344975(0xe3)][_0x344975(0xd3)]};}[_0x46e315(0xab)](_0x429bf0,_0x4ed62d,_0x32073e){const _0x47272a=_0x46e315;for(const _0x406d5a of _0x4ed62d){const _0x16309e=this[_0x47272a(0x9d)](_0x406d5a);_0x50f153(_0x406d5a,_0x47272a(0xd4),_0x16309e),this[_0x47272a(0xe3)][_0x47272a(0xca)][_0x47272a(0xad)](_0x16309e),this[_0x47272a(0xe3)][_0x47272a(0xb3)]=_0x16309e;}const _0x2f9b70=_0x47272a(0xe2)===_0x32073e||_0x47272a(0xdf)===_0x32073e?_0x4ed62d[_0x47272a(0xb6)]():_0x4ed62d;for(const _0x588cd4 of _0x2f9b70)_0xd22dc5(_0x429bf0,_0x588cd4,_0x32073e);}[_0x46e315(0xc6)](_0x1cb315,_0x473f31){const _0x2a3187=_0x46e315;if(!_0x1cb315)return;if(_0x4b5d3b(_0x1cb315,_0x473f31))return;const _0x42b3a3=this[_0x2a3187(0x9d)](_0x1cb315);_0x50f153(_0x473f31,_0x2a3187(0xd4),_0x42b3a3),this[_0x2a3187(0xe3)][_0x2a3187(0xba)][_0x2a3187(0xad)](_0x42b3a3),this[_0x2a3187(0xe3)][_0x2a3187(0xb3)]=_0x42b3a3,_0x53f494(_0x1cb315,_0x473f31[_0x2a3187(0xac)](!0x0));}[_0x46e315(0xda)](_0x709b8d,_0x302edc,_0x3d3a32){const _0xa8a197=_0x46e315,_0x3c6a19=this[_0xa8a197(0xa6)](_0x709b8d,!0x1);if(_0x3c6a19){const _0x566dc4=this[_0xa8a197(0xa4)](_0x3c6a19),_0x3f2f55=_0xde5fce(_0xa8a197(0xd4),_0x566dc4,_0x3d3a32);if(_0x3f2f55)return[_0x3f2f55,_0xa8a197(0xdf)];this[_0xa8a197(0xe3)][_0xa8a197(0xa2)][_0xa8a197(0xad)](_0x566dc4);}const _0x38c84e=this[_0xa8a197(0xc7)](_0x709b8d,!0x1);if(_0x38c84e){const _0x4032df=this[_0xa8a197(0xa4)](_0x38c84e),_0x5af77a=_0xde5fce(_0xa8a197(0xd4),_0x4032df,_0x3d3a32);if(_0x5af77a)return[_0x5af77a,_0xa8a197(0x9b)];this[_0xa8a197(0xe3)][_0xa8a197(0xa2)][_0xa8a197(0xad)](_0x4032df);}return _0x302edc?_0x709b8d[_0xa8a197(0xb5)]?this[_0xa8a197(0xcd)](_0x709b8d,_0x3d3a32):[_0x3d3a32[_0xa8a197(0xd8)][_0x3d3a32[_0xa8a197(0xd8)][_0xa8a197(0xce)]-0x1],_0xa8a197(0xdf)]:[_0x3d3a32[_0xa8a197(0xd8)][0x0],_0xa8a197(0x9b)];}[_0x46e315(0xcd)](_0x1fc552,_0x3119c2){const _0x5bd545=_0x46e315,_0x10eb4f=[],_0x23ae09=this[_0x5bd545(0xa6)](_0x1fc552,!0x0);if(_0x23ae09){const _0x110db2=this[_0x5bd545(0xa4)](_0x23ae09),_0x5cb47e=_0xde5fce(_0x5bd545(0xd4),_0x110db2,_0x3119c2);_0x5cb47e&&_0x10eb4f[_0x5bd545(0xad)]([_0x5cb47e,_0x5bd545(0xdf)]);}const _0x2765e3=this[_0x5bd545(0xc7)](_0x1fc552,!0x0);if(_0x2765e3){const _0x5570a4=this[_0x5bd545(0xa4)](_0x2765e3),_0x5a57b9=_0xde5fce(_0x5bd545(0xd4),_0x5570a4,_0x3119c2);_0x5a57b9&&_0x10eb4f[_0x5bd545(0xad)]([_0x5a57b9,_0x5bd545(0x9b)]);}if(_0x10eb4f[_0x5bd545(0xce)]>0x1)return _0x3ea9e0(_0x10eb4f[0x0][0x0])<=_0x3ea9e0(_0x10eb4f[0x1][0x0])?_0x10eb4f[0x0]:_0x10eb4f[0x1];return 0x1===_0x10eb4f[_0x5bd545(0xce)]?_0x10eb4f[0x0]:[_0x3119c2[_0x5bd545(0x9e)],_0x5bd545(0xdf)];}[_0x46e315(0xc7)](_0x13db2b,_0xfbbf0e){const _0x142749=_0x46e315;let _0x174178=_0x13db2b[_0x142749(0xb5)],_0x2a410a=null,_0x298c43=!0x1;for(;_0x174178;){if(_0x22821a(_0x174178)){if(this[_0x142749(0xb1)](_0x174178)&&(_0x2a410a=_0x174178),this[_0x142749(0xd9)](_0x174178)&&_0xfbbf0e&&!_0x298c43){_0x298c43=!0x0,_0x174178=_0x174178[_0x142749(0xb5)];continue;}break;}const _0x630b85=_0x256857(_0x174178,_0x142749(0xd4));if(_0x630b85&&_0x142749(0xe4)!==_0x630b85&&this[_0x142749(0xd2)][_0x142749(0xaa)](_0x630b85)){_0x2a410a=_0x174178;break;}_0x174178=_0x174178[_0x142749(0xb5)];}return _0x2a410a;}[_0x46e315(0xa6)](_0x1af78d,_0x2d4fc1){const _0x5482aa=_0x46e315;let _0x248670=_0x1af78d[_0x5482aa(0xb8)],_0x24f0c1=null,_0x3b663d=!0x1;for(;_0x248670;){if(_0x22821a(_0x248670)){if(this[_0x5482aa(0xb1)](_0x248670)&&(_0x24f0c1=_0x248670),this[_0x5482aa(0xd9)](_0x248670)&&_0x2d4fc1&&!_0x3b663d){_0x3b663d=!0x0,_0x248670=_0x248670[_0x5482aa(0xb8)];continue;}break;}const _0x2f9ed2=_0x256857(_0x248670,_0x5482aa(0xd4));if(_0x2f9ed2&&_0x5482aa(0xe4)!==_0x2f9ed2&&this[_0x5482aa(0xd2)][_0x5482aa(0xaa)](_0x2f9ed2)){_0x24f0c1=_0x248670;break;}_0x248670=_0x248670[_0x5482aa(0xb8)];}return _0x24f0c1;}[_0x46e315(0xd5)](_0x46b16b){const _0x266500=_0x46e315;_0x454369(_0x46b16b)&&_0x5cd323(_0x266500(0xd4),null,_0x46b16b)[_0x266500(0xa9)](_0x3bf7ed=>{const _0x192a73=_0x266500;if(this[_0x192a73(0xe0)](_0x3bf7ed)&&!this[_0x192a73(0xbc)](_0x3bf7ed)){const _0x31b538=_0x256857(_0x3bf7ed,_0x192a73(0xd4));_0x50f153(_0x3bf7ed,_0x192a73(0xc4),_0x31b538),_0x50f153(_0x3bf7ed,_0x192a73(0xd4),null);}});}[_0x46e315(0xa4)](_0x213169){const _0x3513ee=_0x46e315;if(!_0x213169)return null;if(_0x454369(_0x213169))return _0x256857(_0x213169,_0x3513ee(0xd4));if(_0x22821a(_0x213169)){const _0x5e3117=_0xacb80d(_0x213169)[_0x3513ee(0xc0)](/removed[\s*-]data-id="([^"]+)"/);if(_0x5e3117&&_0x5e3117[0x1])return _0x5e3117[0x1];}return null;}[_0x46e315(0xb4)](_0x1fb901){const _0x173734=_0x46e315;if(_0x22821a(_0x1fb901)){const _0xb84c81=_0xacb80d(_0x1fb901)[_0x173734(0xc0)](/removed[\s*-]data-id="([^"]+)"/);_0xb84c81&&_0xb84c81[0x1]&&this[_0x173734(0xe3)][_0x173734(0xd3)][_0x173734(0xad)](_0xb84c81[0x1]);}}[_0x46e315(0x9d)](_0x2209db){const _0x2ab10b=_0x46e315;return this[_0x2ab10b(0xe0)](_0x2209db)?_0x256857(_0x2209db,_0x2ab10b(0xd4)):this[_0x2ab10b(0xcf)]();}[_0x46e315(0xc5)](_0x5683f3){const _0x31cc1d=_0x46e315;_0x2f5be0(_0x5683f3)[_0x31cc1d(0xde)](_0x5a09db=>this[_0x31cc1d(0xb1)](_0x5a09db)||this[_0x31cc1d(0xd9)](_0x5a09db))[_0x31cc1d(0xa9)](_0x6a9fe2=>{_0x323bdf(_0x6a9fe2);});}[_0x46e315(0xc8)](_0x404006){const _0x47b63d=_0x46e315,_0x2bce6f=_0x404006[_0x47b63d(0xd8)],_0x46d649=_0x2bce6f[_0x2bce6f[_0x47b63d(0xce)]-0x1];_0x46d649&&_0x454369(_0x46d649)&&_0x50f153(_0x46d649,_0x47b63d(0xc9),_0x47b63d(0xa8));}[_0x46e315(0xc1)](_0x3a1594,_0x1f4163){const _0x3beed1=_0x46e315,_0x572059=_0xde5fce(_0x3beed1(0xc9),_0x3beed1(0xa8),_0x3a1594);if(!_0x572059)return;const _0x5569d2=_0x481fef(_0x572059)[_0x3beed1(0xa0)](0x0,-0x1),_0x31c582=_0x5569d2[_0x3beed1(0xce)];let _0x4b9fdb=_0x572059;if(_0x31c582>_0x1f4163){let _0x498666=_0x31c582,_0x2201c8=null;for(;_0x498666>_0x1f4163&&_0x498666>=0x0;)_0x498666--,_0x2201c8=_0x5569d2[_0x498666];_0x2201c8&&(_0x4b9fdb=_0x2201c8,_0x50f153(_0x572059,_0x3beed1(0xc9),null),_0x50f153(_0x2201c8,_0x3beed1(0xc9),_0x3beed1(0xa8)));}else{if(_0x31c582<_0x1f4163){let _0x438af5=_0x31c582,_0x166ab6=_0x572059;for(;_0x438af5<_0x1f4163;){const _0x4fb3cc=_0x166ab6[_0x3beed1(0xd8)][_0x3beed1(0xde)](_0x2cda78=>_0x454369(_0x2cda78));if(0x0===_0x4fb3cc[_0x3beed1(0xce)])break;_0x438af5++,_0x166ab6=_0x4fb3cc[_0x4fb3cc[_0x3beed1(0xce)]-0x1];}_0x166ab6&&(_0x4b9fdb=_0x166ab6,_0x50f153(_0x572059,_0x3beed1(0xc9),null),_0x50f153(_0x166ab6,_0x3beed1(0xc9),_0x3beed1(0xa8)));}}let _0x156d64=_0x4b9fdb;for(;_0x156d64;){for(;_0x156d64[_0x3beed1(0xb5)];)_0x156d64=_0x156d64[_0x3beed1(0xb5)],_0x454369(_0x156d64)&&_0x50f153(_0x156d64,_0x3beed1(0xc9),_0x3beed1(0xa8));_0x156d64=_0x156d64[_0x3beed1(0xb7)];}}[_0x46e315(0xdb)](_0x44127d){const _0x37cab6=_0x46e315;return Boolean(_0x37cab6(0xe4)===_0x256857(_0x44127d,_0x37cab6(0xd4)));}[_0x46e315(0xe0)](_0xbbde3f){const _0x5aff52=_0x46e315;return Boolean((_0x256857(_0xbbde3f,_0x5aff52(0xd4))||'')[_0x5aff52(0xce)]>0x0&&_0x5aff52(0xe4)!==_0x256857(_0xbbde3f,_0x5aff52(0xd4)));}[_0x46e315(0xb1)](_0x3f80a8){const _0x293726=_0x46e315;return!!_0x3f80a8&&Boolean(_0x22821a(_0x3f80a8)&&_0xacb80d(_0x3f80a8)[_0x293726(0xc0)](/removed[\s*-]data-id="[^"]+"/));}[_0x46e315(0xbc)](_0x4ed08d){const _0x375abb=_0x46e315;let _0x9f9795=_0x4ed08d[_0x375abb(0xb7)];for(;_0x9f9795;){if(_0x256857(_0x9f9795,_0x375abb(0xc4)))return!0x0;_0x9f9795=_0x9f9795[_0x375abb(0xb7)];}return!0x1;}[_0x46e315(0xd9)](_0x232977){const _0x362f62=_0x46e315;return Boolean(_0x22821a(_0x232977)&&_0xacb80d(_0x232977)[_0x362f62(0xc0)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0xe8ab9d=_0x4457;(function(_0x5e447c,_0x5112fd){const _0x245106=_0x4457,_0x9cbb90=_0x5e447c();while(!![]){try{const _0x121d81=parseInt(_0x245106(0xe7))/0x1*(-parseInt(_0x245106(0xfb))/0x2)+parseInt(_0x245106(0x105))/0x3+parseInt(_0x245106(0x116))/0x4*(parseInt(_0x245106(0xef))/0x5)+parseInt(_0x245106(0xe3))/0x6+parseInt(_0x245106(0x129))/0x7*(-parseInt(_0x245106(0x128))/0x8)+parseInt(_0x245106(0xe6))/0x9*(parseInt(_0x245106(0x11b))/0xa)+parseInt(_0x245106(0xeb))/0xb*(parseInt(_0x245106(0x119))/0xc);if(_0x121d81===_0x5112fd)break;else _0x9cbb90['push'](_0x9cbb90['shift']());}catch(_0x5653ca){_0x9cbb90['push'](_0x9cbb90['shift']());}}}(_0x570a,0xee48d));import{ObservableMixin as _0x42c2a4,uid as _0x50c796}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x59e44a,findByAttribute as _0x24d805,getAttribute as _0x2c50d8,isComment as _0x176b9f,isTag as _0x43d485,insertElement as _0x13357b,moveElement as _0x21d76f,removeElement as _0x2275b9,replaceElement as _0x5505e3,serialize as _0x4dc70f,setAttribute as _0x52dd,clone as _0x27178a,findAllComments as _0x582f31,getParents as _0x40e20c,getNodeNestingLevel as _0x2775e0,areNodesSame as _0x161cd2,removeElementsAfter as _0x109aba}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x42c2a4(){[_0xe8ab9d(0x11c)];[_0xe8ab9d(0xf9)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0xe8ab9d(0xf0)]=new Set();constructor(_0x1da65a){const _0x3f6d39=_0xe8ab9d;super(),this[_0x3f6d39(0x11c)]=_0x1da65a||_0x50c796;}[_0xe8ab9d(0xf5)](_0x4e9e0c,_0x4c9d3b,_0xd9b94b){const _0x5ea1ee=_0xe8ab9d,_0x39c84a=_0x27178a(_0x4e9e0c);if(0x0===_0x4c9d3b[_0x5ea1ee(0xf4)][_0x5ea1ee(0x11e)]){const _0x483caf=[];return _0x59e44a(_0x5ea1ee(0x117),_0x5ea1ee(0x112),_0x39c84a)[_0x5ea1ee(0xe8)](_0x444afc=>{const _0x57289f=_0x5ea1ee,_0x1b7287=this[_0x57289f(0x11c)]();_0x52dd(_0x444afc,_0x57289f(0x117),_0x1b7287),_0x483caf[_0x57289f(0xec)](_0x1b7287);}),this[_0x5ea1ee(0xf7)](_0x39c84a),{'parsedContent':_0x39c84a,'newNodeIds':_0x483caf,'modifiedNodeIds':[],'removedNodeIds':[]};}_0xd9b94b&&_0xd9b94b[_0x5ea1ee(0x124)]&&this[_0x5ea1ee(0x11d)](_0x39c84a),this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x10f)]=[],this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x100)]=[],this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x115)]=[],this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x118)]=[],this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x113)]=null,this[_0x5ea1ee(0xf0)]=new Set(_0x59e44a(_0x5ea1ee(0x117),null,_0x4c9d3b)[_0x5ea1ee(0xf3)](_0x10e7e=>_0x2c50d8(_0x10e7e,_0x5ea1ee(0x117)))[_0x5ea1ee(0x110)](_0x42b43e=>!!_0x42b43e));let _0x4f87dd=-0x1,_0x32e839=!0x1;const _0x514185=_0x39c84a[_0x5ea1ee(0xf4)],_0x958b04=Array[_0x5ea1ee(0xf8)](_0x514185)[_0x5ea1ee(0x110)](_0x178b33=>!(0x3===_0x178b33[_0x5ea1ee(0x10a)]&&''===_0x4dc70f(_0x178b33)[_0x5ea1ee(0x125)]())),_0x2456e5=_0x958b04[_0x5ea1ee(0x11e)];for(let _0x26bf64=0x0;_0x26bf64<_0x2456e5;_0x26bf64++){const _0x283c91=_0x958b04[_0x26bf64],_0x283a51=_0x958b04[_0x26bf64+0x1];if(this[_0x5ea1ee(0xe5)](_0x283c91)){if(-0x1===_0x4f87dd&&(_0x4f87dd=_0x26bf64),this[_0x5ea1ee(0xfe)](_0x283c91),!this[_0x5ea1ee(0xe5)](_0x283a51)){const [_0x524b03,_0x4bba5]=this[_0x5ea1ee(0x104)](_0x283c91,_0x32e839,_0x4c9d3b);if(_0x524b03){const _0x3cfeae=Array[_0x5ea1ee(0xf8)](_0x958b04)[_0x5ea1ee(0x12a)](_0x4f87dd,_0x26bf64+0x1);this[_0x5ea1ee(0x121)](_0x524b03,_0x3cfeae,_0x4bba5),_0x4f87dd=-0x1;}}}else{if(this[_0x5ea1ee(0xe9)](_0x283c91))_0x32e839=!0x0;else{if(this[_0x5ea1ee(0x106)](_0x283c91)){const _0xf8c7bb=_0x2c50d8(_0x283c91,_0x5ea1ee(0x117));if(_0xf8c7bb&&this[_0x5ea1ee(0xf0)][_0x5ea1ee(0x101)](_0xf8c7bb)){const _0x1c5bab=_0x24d805(_0x5ea1ee(0x117),_0xf8c7bb,_0x4c9d3b);this[_0x5ea1ee(0xf2)](_0x1c5bab,_0x283c91);}if(this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x115)][_0x5ea1ee(0xfd)](_0xf8c7bb)){const _0x542e2a=this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x115)][_0x5ea1ee(0x107)](_0xf8c7bb);this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x115)][_0x5ea1ee(0x11a)](_0x542e2a,0x1);}}else{if(this[_0x5ea1ee(0x114)](_0x283c91)){const _0x131afa=_0x2c50d8(_0x283c91,_0x5ea1ee(0x117));this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x100)][_0x5ea1ee(0xfd)](_0x131afa)||this[_0x5ea1ee(0x108)](_0x283c91);}}}}}for(const _0x2b9dc6 of this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x115)]){const _0x47c32c=_0x24d805(_0x5ea1ee(0x117),_0x2b9dc6,_0x4c9d3b);if(_0x47c32c){if(_0xd9b94b&&_0xd9b94b[_0x5ea1ee(0x126)]){this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x113)]=_0x2b9dc6;const _0xc42291=_0xd9b94b[_0x5ea1ee(0x126)][_0x5ea1ee(0x127)](!0x0);_0x52dd(_0xc42291,_0x5ea1ee(0x117),_0x2b9dc6),_0x52dd(_0xc42291,_0x5ea1ee(0xf1),_0x5ea1ee(0xee)),_0x5505e3(_0x47c32c,_0xc42291);}else _0x2275b9(_0x47c32c);}}if(_0x59e44a(_0x5ea1ee(0x11f),null,_0x4c9d3b)[_0x5ea1ee(0xe8)](_0x22641e=>{const _0x4b1663=_0x5ea1ee,_0xd135fb=_0x2c50d8(_0x22641e,_0x4b1663(0x11f)),_0x2aebdf=_0x24d805(_0x4b1663(0x117),_0xd135fb,_0x4c9d3b);_0x2aebdf&&_0x21d76f(_0x2aebdf,_0x22641e);}),_0x59e44a(_0x5ea1ee(0x117),_0x5ea1ee(0x112),_0x4c9d3b)[_0x5ea1ee(0xe8)](_0x4dffcc=>{const _0x2cd156=_0x5ea1ee,_0x3b0e64=this[_0x2cd156(0xed)](_0x4dffcc);_0x52dd(_0x4dffcc,_0x2cd156(0x117),_0x3b0e64),this[_0x2cd156(0xf9)][_0x2cd156(0x10f)][_0x2cd156(0xec)](_0x3b0e64);}),this[_0x5ea1ee(0xf7)](_0x4c9d3b),_0xd9b94b&&_0xd9b94b[_0x5ea1ee(0x124)]&&this[_0x5ea1ee(0x103)](_0x4c9d3b,_0xd9b94b[_0x5ea1ee(0xfa)]||0x0),_0xd9b94b&&_0xd9b94b[_0x5ea1ee(0x10c)]&&this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x113)]){let _0x2b5964=_0x24d805(_0x5ea1ee(0x117),this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x113)],_0x4c9d3b);for(;_0x2b5964;)_0x109aba(_0x2b5964),_0x2b5964=_0x2b5964[_0x5ea1ee(0xf6)];}return{'parsedContent':_0x4c9d3b,'newNodeIds':this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x10f)],'modifiedNodeIds':this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x100)],'removedNodeIds':this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x115)]};}[_0xe8ab9d(0x121)](_0x3046ad,_0x56a2d0,_0x199d2d){const _0x2a907a=_0xe8ab9d;for(const _0x5cf4d1 of _0x56a2d0){const _0x4738a2=this[_0x2a907a(0xed)](_0x5cf4d1);_0x52dd(_0x5cf4d1,_0x2a907a(0x117),_0x4738a2),this[_0x2a907a(0xf9)][_0x2a907a(0x10f)][_0x2a907a(0xec)](_0x4738a2),this[_0x2a907a(0xf9)][_0x2a907a(0x113)]=_0x4738a2;}const _0x29698e=_0x2a907a(0xe4)===_0x199d2d||_0x2a907a(0x10b)===_0x199d2d?_0x56a2d0[_0x2a907a(0x12b)]():_0x56a2d0;for(const _0x4dbe2b of _0x29698e)_0x13357b(_0x3046ad,_0x4dbe2b,_0x199d2d);}[_0xe8ab9d(0xf2)](_0xfdfbfd,_0x583e04){const _0x53afca=_0xe8ab9d;if(!_0xfdfbfd)return;if(_0x161cd2(_0xfdfbfd,_0x583e04))return;const _0x2c62b8=this[_0x53afca(0xed)](_0xfdfbfd);_0x52dd(_0x583e04,_0x53afca(0x117),_0x2c62b8),this[_0x53afca(0xf9)][_0x53afca(0x100)][_0x53afca(0xec)](_0x2c62b8),this[_0x53afca(0xf9)][_0x53afca(0x113)]=_0x2c62b8,_0x5505e3(_0xfdfbfd,_0x583e04[_0x53afca(0x127)](!0x0));}[_0xe8ab9d(0x104)](_0x1cc39a,_0x33e2de,_0xf1f4f7){const _0x3f43f2=_0xe8ab9d,_0x4781e8=this[_0x3f43f2(0xff)](_0x1cc39a,!0x1);if(_0x4781e8){const _0x94e7c9=this[_0x3f43f2(0x123)](_0x4781e8),_0x4ebc30=_0x24d805(_0x3f43f2(0x117),_0x94e7c9,_0xf1f4f7);if(_0x4ebc30)return[_0x4ebc30,_0x3f43f2(0x10b)];this[_0x3f43f2(0xf9)][_0x3f43f2(0x118)][_0x3f43f2(0xec)](_0x94e7c9);}const _0x4d8e7c=this[_0x3f43f2(0x10e)](_0x1cc39a,!0x1);if(_0x4d8e7c){const _0x32a20d=this[_0x3f43f2(0x123)](_0x4d8e7c),_0x50544d=_0x24d805(_0x3f43f2(0x117),_0x32a20d,_0xf1f4f7);if(_0x50544d)return[_0x50544d,_0x3f43f2(0x122)];this[_0x3f43f2(0xf9)][_0x3f43f2(0x118)][_0x3f43f2(0xec)](_0x32a20d);}return _0x33e2de?_0x1cc39a[_0x3f43f2(0xea)]?this[_0x3f43f2(0xfc)](_0x1cc39a,_0xf1f4f7):[_0xf1f4f7[_0x3f43f2(0xf4)][_0xf1f4f7[_0x3f43f2(0xf4)][_0x3f43f2(0x11e)]-0x1],_0x3f43f2(0x10b)]:[_0xf1f4f7[_0x3f43f2(0xf4)][0x0],_0x3f43f2(0x122)];}[_0xe8ab9d(0xfc)](_0x220331,_0x2aac8e){const _0x102821=_0xe8ab9d,_0x2a0605=[],_0x1e61e3=this[_0x102821(0xff)](_0x220331,!0x0);if(_0x1e61e3){const _0x3aa496=this[_0x102821(0x123)](_0x1e61e3),_0xeb25ce=_0x24d805(_0x102821(0x117),_0x3aa496,_0x2aac8e);_0xeb25ce&&_0x2a0605[_0x102821(0xec)]([_0xeb25ce,_0x102821(0x10b)]);}const _0x56eabb=this[_0x102821(0x10e)](_0x220331,!0x0);if(_0x56eabb){const _0x25ba44=this[_0x102821(0x123)](_0x56eabb),_0x586810=_0x24d805(_0x102821(0x117),_0x25ba44,_0x2aac8e);_0x586810&&_0x2a0605[_0x102821(0xec)]([_0x586810,_0x102821(0x122)]);}if(_0x2a0605[_0x102821(0x11e)]>0x1)return _0x2775e0(_0x2a0605[0x0][0x0])<=_0x2775e0(_0x2a0605[0x1][0x0])?_0x2a0605[0x0]:_0x2a0605[0x1];return 0x1===_0x2a0605[_0x102821(0x11e)]?_0x2a0605[0x0]:[_0x2aac8e[_0x102821(0x120)],_0x102821(0x10b)];}[_0xe8ab9d(0x10e)](_0x1f09e0,_0x521fea){const _0x51ef59=_0xe8ab9d;let _0x187103=_0x1f09e0[_0x51ef59(0xea)],_0x19fe93=null,_0x590b27=!0x1;for(;_0x187103;){if(_0x176b9f(_0x187103)){if(this[_0x51ef59(0x114)](_0x187103)&&(_0x19fe93=_0x187103),this[_0x51ef59(0xe9)](_0x187103)&&_0x521fea&&!_0x590b27){_0x590b27=!0x0,_0x187103=_0x187103[_0x51ef59(0xea)];continue;}break;}const _0x18b367=_0x2c50d8(_0x187103,_0x51ef59(0x117));if(_0x18b367&&_0x51ef59(0x112)!==_0x18b367&&this[_0x51ef59(0xf0)][_0x51ef59(0x101)](_0x18b367)){_0x19fe93=_0x187103;break;}_0x187103=_0x187103[_0x51ef59(0xea)];}return _0x19fe93;}[_0xe8ab9d(0xff)](_0x421726,_0x3badbd){const _0x216741=_0xe8ab9d;let _0x4d8098=_0x421726[_0x216741(0x102)],_0x10c943=null,_0x3d7a88=!0x1;for(;_0x4d8098;){if(_0x176b9f(_0x4d8098)){if(this[_0x216741(0x114)](_0x4d8098)&&(_0x10c943=_0x4d8098),this[_0x216741(0xe9)](_0x4d8098)&&_0x3badbd&&!_0x3d7a88){_0x3d7a88=!0x0,_0x4d8098=_0x4d8098[_0x216741(0x102)];continue;}break;}const _0x5629d0=_0x2c50d8(_0x4d8098,_0x216741(0x117));if(_0x5629d0&&_0x216741(0x112)!==_0x5629d0&&this[_0x216741(0xf0)][_0x216741(0x101)](_0x5629d0)){_0x10c943=_0x4d8098;break;}_0x4d8098=_0x4d8098[_0x216741(0x102)];}return _0x10c943;}[_0xe8ab9d(0xfe)](_0x4986da){const _0x4c41d0=_0xe8ab9d;_0x43d485(_0x4986da)&&_0x59e44a(_0x4c41d0(0x117),null,_0x4986da)[_0x4c41d0(0xe8)](_0x49fc98=>{const _0x264999=_0x4c41d0;if(this[_0x264999(0x106)](_0x49fc98)&&!this[_0x264999(0x109)](_0x49fc98)){const _0x56821d=_0x2c50d8(_0x49fc98,_0x264999(0x117));_0x52dd(_0x49fc98,_0x264999(0x11f),_0x56821d),_0x52dd(_0x49fc98,_0x264999(0x117),null);}});}[_0xe8ab9d(0x123)](_0x21a37d){const _0x4b622f=_0xe8ab9d;if(!_0x21a37d)return null;if(_0x43d485(_0x21a37d))return _0x2c50d8(_0x21a37d,_0x4b622f(0x117));if(_0x176b9f(_0x21a37d)){const _0x3bc405=_0x4dc70f(_0x21a37d)[_0x4b622f(0x111)](/removed[\s*-]data-id="([^"]+)"/);if(_0x3bc405&&_0x3bc405[0x1])return _0x3bc405[0x1];}return null;}[_0xe8ab9d(0x108)](_0x488077){const _0x386dc1=_0xe8ab9d;if(_0x176b9f(_0x488077)){const _0xe098d3=_0x4dc70f(_0x488077)[_0x386dc1(0x111)](/removed[\s*-]data-id="([^"]+)"/);_0xe098d3&&_0xe098d3[0x1]&&this[_0x386dc1(0xf9)][_0x386dc1(0x115)][_0x386dc1(0xec)](_0xe098d3[0x1]);}}[_0xe8ab9d(0xed)](_0x2c5308){const _0x1b31ed=_0xe8ab9d;return this[_0x1b31ed(0x106)](_0x2c5308)?_0x2c50d8(_0x2c5308,_0x1b31ed(0x117)):this[_0x1b31ed(0x11c)]();}[_0xe8ab9d(0xf7)](_0x1e4085){const _0x19f4d6=_0xe8ab9d;_0x582f31(_0x1e4085)[_0x19f4d6(0x110)](_0x231944=>this[_0x19f4d6(0x114)](_0x231944)||this[_0x19f4d6(0xe9)](_0x231944))[_0x19f4d6(0xe8)](_0x39d46f=>{_0x2275b9(_0x39d46f);});}[_0xe8ab9d(0x11d)](_0x4e6166){const _0x57b6b5=_0xe8ab9d,_0x79b4f3=_0x4e6166[_0x57b6b5(0xf4)],_0x520e35=_0x79b4f3[_0x79b4f3[_0x57b6b5(0x11e)]-0x1];_0x520e35&&_0x43d485(_0x520e35)&&_0x52dd(_0x520e35,_0x57b6b5(0x10d),_0x57b6b5(0xee));}[_0xe8ab9d(0x103)](_0x3908a7,_0x44a836){const _0x55c4a7=_0xe8ab9d,_0x294370=_0x24d805(_0x55c4a7(0x10d),_0x55c4a7(0xee),_0x3908a7);if(!_0x294370)return;const _0x4efd85=_0x40e20c(_0x294370)[_0x55c4a7(0x12a)](0x0,-0x1),_0x3d8aa0=_0x4efd85[_0x55c4a7(0x11e)];let _0x1cd126=_0x294370;if(_0x3d8aa0>_0x44a836){let _0x314260=_0x3d8aa0,_0x5554ac=null;for(;_0x314260>_0x44a836&&_0x314260>=0x0;)_0x314260--,_0x5554ac=_0x4efd85[_0x314260];_0x5554ac&&(_0x1cd126=_0x5554ac,_0x52dd(_0x294370,_0x55c4a7(0x10d),null),_0x52dd(_0x5554ac,_0x55c4a7(0x10d),_0x55c4a7(0xee)));}else{if(_0x3d8aa0<_0x44a836){let _0x4fe444=_0x3d8aa0,_0x2de79b=_0x294370;for(;_0x4fe444<_0x44a836;){const _0x94afc9=_0x2de79b[_0x55c4a7(0xf4)][_0x55c4a7(0x110)](_0x1da654=>_0x43d485(_0x1da654));if(0x0===_0x94afc9[_0x55c4a7(0x11e)])break;_0x4fe444++,_0x2de79b=_0x94afc9[_0x94afc9[_0x55c4a7(0x11e)]-0x1];}_0x2de79b&&(_0x1cd126=_0x2de79b,_0x52dd(_0x294370,_0x55c4a7(0x10d),null),_0x52dd(_0x2de79b,_0x55c4a7(0x10d),_0x55c4a7(0xee)));}}let _0x122dd5=_0x1cd126;for(;_0x122dd5;){for(;_0x122dd5[_0x55c4a7(0xea)];)_0x122dd5=_0x122dd5[_0x55c4a7(0xea)],_0x43d485(_0x122dd5)&&_0x52dd(_0x122dd5,_0x55c4a7(0x10d),_0x55c4a7(0xee));_0x122dd5=_0x122dd5[_0x55c4a7(0xf6)];}}[_0xe8ab9d(0xe5)](_0x5720f2){const _0x523723=_0xe8ab9d;return Boolean(_0x523723(0x112)===_0x2c50d8(_0x5720f2,_0x523723(0x117)));}[_0xe8ab9d(0x106)](_0x3688c0){const _0xe52ae=_0xe8ab9d;return Boolean((_0x2c50d8(_0x3688c0,_0xe52ae(0x117))||'')[_0xe52ae(0x11e)]>0x0&&_0xe52ae(0x112)!==_0x2c50d8(_0x3688c0,_0xe52ae(0x117)));}[_0xe8ab9d(0x114)](_0x3f8ae3){const _0x58db0d=_0xe8ab9d;return!!_0x3f8ae3&&Boolean(_0x176b9f(_0x3f8ae3)&&_0x4dc70f(_0x3f8ae3)[_0x58db0d(0x111)](/removed[\s*-]data-id="[^"]+"/));}[_0xe8ab9d(0x109)](_0x50e216){const _0xc1d1bb=_0xe8ab9d;let _0xb9e2a7=_0x50e216[_0xc1d1bb(0xf6)];for(;_0xb9e2a7;){if(_0x2c50d8(_0xb9e2a7,_0xc1d1bb(0x11f)))return!0x0;_0xb9e2a7=_0xb9e2a7[_0xc1d1bb(0xf6)];}return!0x1;}[_0xe8ab9d(0xe9)](_0x2de973){const _0x5cc87d=_0xe8ab9d;return Boolean(_0x176b9f(_0x2de973)&&_0x4dc70f(_0x2de973)[_0x5cc87d(0x111)](/\s*existing[\s*-](content|document)\s*/g));}}function _0x4457(_0x3bc497,_0x3f305f){const _0x570ac8=_0x570a();return _0x4457=function(_0x445757,_0x11eab3){_0x445757=_0x445757-0xe3;let _0x3e2b02=_0x570ac8[_0x445757];return _0x3e2b02;},_0x4457(_0x3bc497,_0x3f305f);}function _0x570a(){const _0x3e1387=['lastChild','_insertNodes','beforebegin','_getNodeDataId','markUnstableElements','trim','replaceRemovedWith','cloneNode','13107760IbmZjN','7zjaMzu','slice','reverse','8072154WbEiho','afterbegin','_isNewNode','233919MWnnvi','1jlEeDs','forEach','_isExistingContentComment','nextSibling','1471811xvWBzk','push','_getUid','true','1149730hiILhJ','_existingDataIds','data-removed','_replaceNode','map','childNodes','merge','parentNode','_removeSpecialComments','from','_touchedNodesState','markUnstableElementsDepth','1680412XzQpCG','_findFallbackReferenceNode','includes','_markWrappedElements','_findPrevElementWithDataId','modifiedIds','has','previousSibling','_markUnstableElements','_findReferenceNode','3475191hsQbil','_isExistingNode','indexOf','_storeDeletedElementIds','_hasWrappedParent','nodeType','afterend','cutAfterLastChange','data-unstable','_findNextElementWithDataId','newIds','filter','match','new-element','lastTouchedId','_isDelNode','removedIds','4QnktCC','data-id','invalidIds','60zsvLAo','splice','20soMrro','_generateUid','_markLastTagElementUnstable','length','data-wrapped-id'];_0x570a=function(){return _0x3e1387;};return _0x570a();}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x56d4(){const _0x3fde78=['39153aaedtV','316ubcdlO','convertMarkdownToHTML','80bolaBQ','3843qtZZLd','127djDfHI','6RNCqUA','11801671qYlhkH','replace','children','parseAndNormalizeHTML','<dummy>','_parseHTML','8818JxnRdH','12359784arnroz','257906ofTnAr','</dummy>','_m2html','27992mIiVgc','parse','2122425FgjUZB'];_0x56d4=function(){return _0x3fde78;};return _0x56d4();}const _0x51c3a9=_0x1db9;(function(_0x45db57,_0x59a838){const _0x5aea79=_0x1db9,_0x1be310=_0x45db57();while(!![]){try{const _0x5e268a=-parseInt(_0x5aea79(0xd2))/0x1*(-parseInt(_0x5aea79(0xda))/0x2)+parseInt(_0x5aea79(0xe2))/0x3*(-parseInt(_0x5aea79(0xe3))/0x4)+parseInt(_0x5aea79(0xe1))/0x5+parseInt(_0x5aea79(0xd3))/0x6*(-parseInt(_0x5aea79(0xd4))/0x7)+-parseInt(_0x5aea79(0xdf))/0x8*(-parseInt(_0x5aea79(0xd1))/0x9)+-parseInt(_0x5aea79(0xd0))/0xa*(-parseInt(_0x5aea79(0xdc))/0xb)+parseInt(_0x5aea79(0xdb))/0xc;if(_0x5e268a===_0x59a838)break;else _0x1be310['push'](_0x1be310['shift']());}catch(_0x153951){_0x1be310['push'](_0x1be310['shift']());}}}(_0x56d4,0xef07d));import{ObservableMixin as _0x1ea39b}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x2f8f29}from'@ckeditor/ckeditor5-markdown-gfm';function _0x1db9(_0x5e68c2,_0x47c9b0){const _0x56d458=_0x56d4();return _0x1db9=function(_0x1db9a5,_0x156906){_0x1db9a5=_0x1db9a5-0xd0;let _0x45934e=_0x56d458[_0x1db9a5];return _0x45934e;},_0x1db9(_0x5e68c2,_0x47c9b0);}import{parse as _0x1aa41a}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x1ea39b(){[_0x51c3a9(0xde)];constructor(){const _0x24fe98=_0x51c3a9;super(),this[_0x24fe98(0xde)]=new _0x2f8f29();}[_0x51c3a9(0xe4)](_0x1f2da1){const _0x29f5ca=_0x51c3a9,_0x22d0d9=this[_0x29f5ca(0xde)][_0x29f5ca(0xe0)](_0x1f2da1);return this[_0x29f5ca(0xd7)](_0x22d0d9);}[_0x51c3a9(0xd7)](_0x56d0bf){const _0x27a04f=_0x51c3a9;return this[_0x27a04f(0xd9)](_0x56d0bf);}[_0x51c3a9(0xd9)](_0x42c97a){const _0x2b490a=_0x51c3a9,_0x19ff32=_0x42c97a[_0x2b490a(0xd5)](/^\t+/gm,'\x20')[_0x2b490a(0xd5)](/\n*/g,'')[_0x2b490a(0xd5)](/\s+/g,'\x20')[_0x2b490a(0xd5)](/<[^>]*?$/g,''),_0x3a8c0f=_0x1aa41a(_0x2b490a(0xd8)+_0x19ff32+_0x2b490a(0xdd));return _0x3a8c0f[_0x2b490a(0xd6)]=_0x3a8c0f[_0x2b490a(0xd6)][0x0][_0x2b490a(0xd6)],_0x3a8c0f;}}
23
+ const _0x533c10=_0x5ac2;(function(_0x448c84,_0x2256c9){const _0x35e5a4=_0x5ac2,_0x4b63d5=_0x448c84();while(!![]){try{const _0x4e0ff3=-parseInt(_0x35e5a4(0x8c))/0x1*(parseInt(_0x35e5a4(0x7c))/0x2)+parseInt(_0x35e5a4(0x82))/0x3*(parseInt(_0x35e5a4(0x7f))/0x4)+parseInt(_0x35e5a4(0x85))/0x5*(-parseInt(_0x35e5a4(0x87))/0x6)+parseInt(_0x35e5a4(0x7a))/0x7+parseInt(_0x35e5a4(0x7e))/0x8+parseInt(_0x35e5a4(0x83))/0x9+-parseInt(_0x35e5a4(0x80))/0xa;if(_0x4e0ff3===_0x2256c9)break;else _0x4b63d5['push'](_0x4b63d5['shift']());}catch(_0x5b2da){_0x4b63d5['push'](_0x4b63d5['shift']());}}}(_0x1563,0x65af8));import{ObservableMixin as _0x313bce}from'ckeditor5/src/utils.js';function _0x1563(){const _0x3172ba=['331splVGX','3823386UOuVzb','</dummy>','2084MHJJFy','parseAndNormalizeHTML','2288456uiaXgu','2090724oOgssb','9817670YNaPHG','children','3tJgusC','6523002zcLOEP','<dummy>','25115YeiRws','replace','402sVApBK','_parseHTML','_m2html','convertMarkdownToHTML','parse'];_0x1563=function(){return _0x3172ba;};return _0x1563();}import{MarkdownGfmMdToHtml as _0x2d6879}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x463498}from'../utils/htmlparser.js';function _0x5ac2(_0x3c7e55,_0x5421cc){const _0x15638e=_0x1563();return _0x5ac2=function(_0x5ac243,_0x293dfa){_0x5ac243=_0x5ac243-0x7a;let _0x382962=_0x15638e[_0x5ac243];return _0x382962;},_0x5ac2(_0x3c7e55,_0x5421cc);}export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x313bce(){[_0x533c10(0x89)];constructor(){const _0x4390a9=_0x533c10;super(),this[_0x4390a9(0x89)]=new _0x2d6879();}[_0x533c10(0x8a)](_0x47ea9f){const _0x51c945=_0x533c10,_0x5b75f1=this[_0x51c945(0x89)][_0x51c945(0x8b)](_0x47ea9f);return this[_0x51c945(0x7d)](_0x5b75f1);}[_0x533c10(0x7d)](_0x26a2fb){const _0x3bca8c=_0x533c10;return this[_0x3bca8c(0x88)](_0x26a2fb);}[_0x533c10(0x88)](_0x51b7f2){const _0x413896=_0x533c10,_0x3091fa=_0x51b7f2[_0x413896(0x86)](/^\t+/gm,'\x20')[_0x413896(0x86)](/\n*/g,'')[_0x413896(0x86)](/\s+/g,'\x20')[_0x413896(0x86)](/<[^>]*?$/g,''),_0x4220a1=_0x463498(_0x413896(0x84)+_0x3091fa+_0x413896(0x7b));return _0x4220a1[_0x413896(0x81)]=_0x4220a1[_0x413896(0x81)][0x0][_0x413896(0x81)],_0x4220a1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1253(_0x4b2c24,_0x5cb17e){var _0x44ac9a=_0x44ac();return _0x1253=function(_0x125335,_0x306e4c){_0x125335=_0x125335-0x1a8;var _0x4a500d=_0x44ac9a[_0x125335];return _0x4a500d;},_0x1253(_0x4b2c24,_0x5cb17e);}(function(_0x31f910,_0xf520cd){var _0x5a78e9=_0x1253,_0x1f6a6f=_0x31f910();while(!![]){try{var _0x2cd0f3=parseInt(_0x5a78e9(0x1ac))/0x1*(-parseInt(_0x5a78e9(0x1b0))/0x2)+parseInt(_0x5a78e9(0x1b5))/0x3+parseInt(_0x5a78e9(0x1b4))/0x4+parseInt(_0x5a78e9(0x1a9))/0x5*(parseInt(_0x5a78e9(0x1b6))/0x6)+-parseInt(_0x5a78e9(0x1a8))/0x7+parseInt(_0x5a78e9(0x1b1))/0x8*(parseInt(_0x5a78e9(0x1ae))/0x9)+-parseInt(_0x5a78e9(0x1af))/0xa;if(_0x2cd0f3===_0xf520cd)break;else _0x1f6a6f['push'](_0x1f6a6f['shift']());}catch(_0x2bd5e2){_0x1f6a6f['push'](_0x1f6a6f['shift']());}}}(_0x44ac,0x2b145));import{View as _0x4f0c32}from'ckeditor5/src/ui.js';import{getTranslation as _0x585c5e}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x4f0c32{constructor(_0x3237d3){var _0x4fa570=_0x1253;super(_0x3237d3),this[_0x4fa570(0x1aa)]({'tag':_0x4fa570(0x1b2),'attributes':{'class':['ck',_0x4fa570(0x1b3)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x4fa570(0x1ab)]},'children':[{'text':_0x585c5e(_0x3237d3,_0x4fa570(0x1ad))}]}]});}}function _0x44ac(){var _0x8ae2ae=['120qqaNmU','div','ck-ai-disclaimer','914512ZrUtRL','785868gbfXTV','733602pQsDRb','2122568wlVVPE','10EiBErh','setTemplate','ck-ai-disclaimer__content','53084HVlgrA','AI_DISCLAIMER_TEXT','201807DbNmle','4325340qmDXac','6VIHGBx'];_0x44ac=function(){return _0x8ae2ae;};return _0x44ac();}
23
+ (function(_0x26178e,_0x37deca){var _0x3cf6ef=_0xaeac,_0xf34c86=_0x26178e();while(!![]){try{var _0x292071=-parseInt(_0x3cf6ef(0xdd))/0x1*(-parseInt(_0x3cf6ef(0xea))/0x2)+parseInt(_0x3cf6ef(0xe4))/0x3+-parseInt(_0x3cf6ef(0xdf))/0x4+-parseInt(_0x3cf6ef(0xeb))/0x5*(parseInt(_0x3cf6ef(0xe2))/0x6)+-parseInt(_0x3cf6ef(0xe9))/0x7*(parseInt(_0x3cf6ef(0xe1))/0x8)+parseInt(_0x3cf6ef(0xe7))/0x9+parseInt(_0x3cf6ef(0xe0))/0xa*(parseInt(_0x3cf6ef(0xde))/0xb);if(_0x292071===_0x37deca)break;else _0xf34c86['push'](_0xf34c86['shift']());}catch(_0x183820){_0xf34c86['push'](_0xf34c86['shift']());}}}(_0x5765,0x2e7f5));import{View as _0x3923d1}from'ckeditor5/src/ui.js';import{getTranslation as _0x2d1ec6}from'../../aicore/utils/common-translations.js';function _0x5765(){var _0x399483=['2516576WVNvGu','42NkVLYS','ck-ai-disclaimer','325749UAiZGT','AI_DISCLAIMER_TEXT','ck-ai-disclaimer__content','199062hpgusK','div','7ZIsGAj','854BNuggr','5040szbFXl','setTemplate','277OycUfY','4162862MDEMaY','461364TMLZAz','10sIXdzp'];_0x5765=function(){return _0x399483;};return _0x5765();}function _0xaeac(_0x49b0e8,_0x5106b2){var _0x5765f5=_0x5765();return _0xaeac=function(_0xaeacb5,_0x4b0b56){_0xaeacb5=_0xaeacb5-0xdc;var _0x276391=_0x5765f5[_0xaeacb5];return _0x276391;},_0xaeac(_0x49b0e8,_0x5106b2);}export class AIDisclaimerView extends _0x3923d1{constructor(_0x23a44d){var _0x76a9fc=_0xaeac;super(_0x23a44d),this[_0x76a9fc(0xdc)]({'tag':_0x76a9fc(0xe8),'attributes':{'class':['ck',_0x76a9fc(0xe3)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x76a9fc(0xe6)]},'children':[{'text':_0x2d1ec6(_0x23a44d,_0x76a9fc(0xe5))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3393b3=_0x3f91;(function(_0x539b62,_0x57e8fe){const _0x206cd9=_0x3f91,_0x1a27e1=_0x539b62();while(!![]){try{const _0x17a1dd=-parseInt(_0x206cd9(0x11c))/0x1+-parseInt(_0x206cd9(0x11a))/0x2+parseInt(_0x206cd9(0x113))/0x3*(-parseInt(_0x206cd9(0x12d))/0x4)+parseInt(_0x206cd9(0x10f))/0x5*(-parseInt(_0x206cd9(0x12b))/0x6)+parseInt(_0x206cd9(0x10a))/0x7*(-parseInt(_0x206cd9(0x10c))/0x8)+-parseInt(_0x206cd9(0x111))/0x9+parseInt(_0x206cd9(0x12c))/0xa*(parseInt(_0x206cd9(0x130))/0xb);if(_0x17a1dd===_0x57e8fe)break;else _0x1a27e1['push'](_0x1a27e1['shift']());}catch(_0x5db242){_0x1a27e1['push'](_0x1a27e1['shift']());}}}(_0x2b16,0x2902b));import{View as _0x30e207}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x30e207{constructor(_0x1f4dc5,_0x437219){const _0x72be6e=_0x3f91;super(_0x1f4dc5),this[_0x72be6e(0x118)]({'tag':_0x72be6e(0x11d),'attributes':{'class':['ck',_0x72be6e(0x127)]},'children':this[_0x72be6e(0x11b)](_0x437219)});}[_0x3393b3(0x11b)](_0x444b91){const _0x4378d9=_0x3393b3,_0x3dfc3d=['ck',_0x4378d9(0x125)];return _0x444b91[_0x4378d9(0x12a)](_0x1fd294=>{const _0x1b7a7a=_0x4378d9;let _0x22329d='';switch(_0x1fd294[_0x1b7a7a(0x10b)][_0x1b7a7a(0x11e)]){case _0x1b7a7a(0x133):_0x22329d=_0x1b7a7a(0x112);break;case _0x1b7a7a(0x121):_0x22329d=_0x1b7a7a(0x131);break;case _0x1b7a7a(0x128):_0x22329d=_0x1b7a7a(0x11f);}return{'tag':_0x1fd294[_0x1b7a7a(0x124)],'attributes':{'class':[..._0x3dfc3d,_0x1fd294[_0x1b7a7a(0x10b)][_0x1b7a7a(0x116)]?_0x1fd294[_0x1b7a7a(0x10b)][_0x1b7a7a(0x116)]:''],'style':_0x1b7a7a(0x12e)+_0x1fd294[_0x1b7a7a(0x10b)][_0x1b7a7a(0x126)]+_0x1b7a7a(0x12f)+_0x1fd294[_0x1b7a7a(0x10b)][_0x1b7a7a(0x117)]+';'+_0x22329d}};});}}function _0x2b16(){const _0x3f4e25=['map','6VQWEVF','115630MWYZAQ','756cKtGIo','width:\x20',';\x20height:\x20','1463BnnasE','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','88px','right','7CRpAGR','attributes','1938760pYyDWQ','128px','72px','1616445iHGaOR','250px','2404728CYeCGw','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','2280FRNyiV','24px','140px','class','height','setTemplate','44px','572212DOFQBO','_createSkeletonItems','107328dVHEnC','div','align','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','150px','center','100%','fill','tag','ck-ai-skeleton__item','width','ck-ai-skeleton','left','40px'];_0x2b16=function(){return _0x3f4e25;};return _0x2b16();}function _0x3f91(_0x5682e8,_0x2319f7){const _0x2b16dd=_0x2b16();return _0x3f91=function(_0x3f9140,_0x3f463e){_0x3f9140=_0x3f9140-0x10a;let _0x4d691b=_0x2b16dd[_0x3f9140];return _0x4d691b;},_0x3f91(_0x5682e8,_0x2319f7);}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x122),'height':_0x3393b3(0x10e),'align':_0x3393b3(0x133)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x110),'height':_0x3393b3(0x129),'align':_0x3393b3(0x133)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x122),'height':_0x3393b3(0x132),'align':_0x3393b3(0x133)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x120),'height':_0x3393b3(0x129),'align':_0x3393b3(0x133)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x122),'height':_0x3393b3(0x115),'align':_0x3393b3(0x133)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x110),'height':_0x3393b3(0x129),'align':_0x3393b3(0x133)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x122),'height':_0x3393b3(0x132),'align':_0x3393b3(0x133)}}],'aiHistory':ta(0x5,_0x3393b3(0x122),_0x3393b3(0x119),_0x3393b3(0x133)),'aiChatResources':ta(0x8,_0x3393b3(0x122),_0x3393b3(0x114),_0x3393b3(0x133)),'aiReviewChecks':[{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x10d),'height':_0x3393b3(0x114),'align':_0x3393b3(0x128)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x122),'height':_0x3393b3(0x114),'align':_0x3393b3(0x128)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x10d),'height':_0x3393b3(0x114),'align':_0x3393b3(0x128)}}]};function ta(_0x4d8605,_0x16a61b,_0x1f1a21,_0xc1cd4e){const _0x406358=_0x3393b3;return new Array(_0x4d8605)[_0x406358(0x123)](null)[_0x406358(0x12a)](()=>({'tag':_0x406358(0x11d),'attributes':{'width':_0x16a61b,'height':_0x1f1a21,'align':_0xc1cd4e}}));}
23
+ const _0x111a72=_0x3dab;function _0x4c00(){const _0x37f4e7=['height','ck-ai-skeleton','949554TLsggj','44px','fill','attributes','140px','7228151vhQuPS','width:\x20','24px','tag','150px','align','128px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','40px','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','center','class','200CMZGSn','setTemplate','250px','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','div','72px','_createSkeletonItems','220mKFgir','842720VJuQOl','right','88px','46041nAMDej',';\x20height:\x20','ck-ai-skeleton__item','1909045ZeXPnC','100%','left','690466jscerI','width','59058mnYnyW','map'];_0x4c00=function(){return _0x37f4e7;};return _0x4c00();}function _0x3dab(_0x8f29ac,_0xa2b0fc){const _0x4c0033=_0x4c00();return _0x3dab=function(_0x3dab53,_0x1f29f5){_0x3dab53=_0x3dab53-0x113;let _0x5f0e64=_0x4c0033[_0x3dab53];return _0x5f0e64;},_0x3dab(_0x8f29ac,_0xa2b0fc);}(function(_0x33cd36,_0x2033b1){const _0x6f0f98=_0x3dab,_0x252113=_0x33cd36();while(!![]){try{const _0x2c8af9=parseInt(_0x6f0f98(0x138))/0x1+-parseInt(_0x6f0f98(0x12f))/0x2+parseInt(_0x6f0f98(0x132))/0x3*(-parseInt(_0x6f0f98(0x12e))/0x4)+-parseInt(_0x6f0f98(0x135))/0x5+-parseInt(_0x6f0f98(0x13a))/0x6+-parseInt(_0x6f0f98(0x11b))/0x7+parseInt(_0x6f0f98(0x127))/0x8*(parseInt(_0x6f0f98(0x116))/0x9);if(_0x2c8af9===_0x2033b1)break;else _0x252113['push'](_0x252113['shift']());}catch(_0x4c2580){_0x252113['push'](_0x252113['shift']());}}}(_0x4c00,0x9bdda));import{View as _0x314925}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x314925{constructor(_0x39a46c,_0x615045){const _0x660bbe=_0x3dab;super(_0x39a46c),this[_0x660bbe(0x128)]({'tag':_0x660bbe(0x12b),'attributes':{'class':['ck',_0x660bbe(0x115)]},'children':this[_0x660bbe(0x12d)](_0x615045)});}[_0x111a72(0x12d)](_0x4011e6){const _0x27bd73=_0x111a72,_0x1f515b=['ck',_0x27bd73(0x134)];return _0x4011e6[_0x27bd73(0x113)](_0x36013c=>{const _0x38a445=_0x27bd73;let _0x4386b1='';switch(_0x36013c[_0x38a445(0x119)][_0x38a445(0x120)]){case _0x38a445(0x130):_0x4386b1=_0x38a445(0x12a);break;case _0x38a445(0x125):_0x4386b1=_0x38a445(0x124);break;case _0x38a445(0x137):_0x4386b1=_0x38a445(0x122);}return{'tag':_0x36013c[_0x38a445(0x11e)],'attributes':{'class':[..._0x1f515b,_0x36013c[_0x38a445(0x119)][_0x38a445(0x126)]?_0x36013c[_0x38a445(0x119)][_0x38a445(0x126)]:''],'style':_0x38a445(0x11c)+_0x36013c[_0x38a445(0x119)][_0x38a445(0x139)]+_0x38a445(0x133)+_0x36013c[_0x38a445(0x119)][_0x38a445(0x114)]+';'+_0x4386b1}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x111a72(0x12b),'attributes':{'width':_0x111a72(0x136),'height':_0x111a72(0x12c),'align':_0x111a72(0x130)}},{'tag':_0x111a72(0x12b),'attributes':{'width':_0x111a72(0x129),'height':_0x111a72(0x123),'align':_0x111a72(0x130)}},{'tag':_0x111a72(0x12b),'attributes':{'width':_0x111a72(0x136),'height':_0x111a72(0x131),'align':_0x111a72(0x130)}},{'tag':_0x111a72(0x12b),'attributes':{'width':_0x111a72(0x11f),'height':_0x111a72(0x123),'align':_0x111a72(0x130)}},{'tag':_0x111a72(0x12b),'attributes':{'width':_0x111a72(0x136),'height':_0x111a72(0x11a),'align':_0x111a72(0x130)}},{'tag':_0x111a72(0x12b),'attributes':{'width':_0x111a72(0x129),'height':_0x111a72(0x123),'align':_0x111a72(0x130)}},{'tag':_0x111a72(0x12b),'attributes':{'width':_0x111a72(0x136),'height':_0x111a72(0x131),'align':_0x111a72(0x130)}}],'aiHistory':ta(0x5,_0x111a72(0x136),_0x111a72(0x117),_0x111a72(0x130)),'aiChatResources':ta(0x8,_0x111a72(0x136),_0x111a72(0x11d),_0x111a72(0x130)),'aiReviewChecks':[{'tag':_0x111a72(0x12b),'attributes':{'width':_0x111a72(0x121),'height':_0x111a72(0x11d),'align':_0x111a72(0x137)}},{'tag':_0x111a72(0x12b),'attributes':{'width':_0x111a72(0x136),'height':_0x111a72(0x11d),'align':_0x111a72(0x137)}},{'tag':_0x111a72(0x12b),'attributes':{'width':_0x111a72(0x121),'height':_0x111a72(0x11d),'align':_0x111a72(0x137)}}]};function ta(_0x33ac0f,_0x37e537,_0x1ead43,_0x41f2de){const _0x348a2c=_0x111a72;return new Array(_0x33ac0f)[_0x348a2c(0x118)](null)[_0x348a2c(0x113)](()=>({'tag':_0x348a2c(0x12b),'attributes':{'width':_0x37e537,'height':_0x1ead43,'align':_0x41f2de}}));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5272(_0x140dc4,_0x520b3e){const _0x1ec617=_0x1ec6();return _0x5272=function(_0x52721f,_0x45d49){_0x52721f=_0x52721f-0xf2;let _0x3eb0b2=_0x1ec617[_0x52721f];return _0x3eb0b2;},_0x5272(_0x140dc4,_0x520b3e);}(function(_0x3daae8,_0x4f0060){const _0xf03237=_0x5272,_0x42babd=_0x3daae8();while(!![]){try{const _0x1d47ed=parseInt(_0xf03237(0xf2))/0x1*(parseInt(_0xf03237(0xfd))/0x2)+-parseInt(_0xf03237(0xf7))/0x3+parseInt(_0xf03237(0xf6))/0x4+parseInt(_0xf03237(0xf4))/0x5*(-parseInt(_0xf03237(0xfe))/0x6)+parseInt(_0xf03237(0xf5))/0x7*(parseInt(_0xf03237(0x101))/0x8)+-parseInt(_0xf03237(0xff))/0x9*(-parseInt(_0xf03237(0xf3))/0xa)+parseInt(_0xf03237(0x100))/0xb*(parseInt(_0xf03237(0xfa))/0xc);if(_0x1d47ed===_0x4f0060)break;else _0x42babd['push'](_0x42babd['shift']());}catch(_0x210992){_0x42babd['push'](_0x42babd['shift']());}}}(_0x1ec6,0x74b4c));function _0x1ec6(){const _0x385b0a=['386110HTHFhh','7362TJczWK','183942WIANZj','312158IVCRWk','196624YTMzQa','1mNYnwq','310zhCVMJ','2110rWXYnR','14AobTUU','1957728QaaGVW','1533867oXFRgM','ck-ai-spinner','span','60vIoioH','ck-ai-spinner_','extendTemplate'];_0x1ec6=function(){return _0x385b0a;};return _0x1ec6();}import{SpinnerView as _0x5a1a8b}from'ckeditor5/src/ui.js';export class AISpinnerView extends _0x5a1a8b{constructor(_0x44df14=void 0x0){const _0x4dabb5=_0x5272;super();const _0x4275e7=_0x44df14?_0x4dabb5(0xfb)+_0x44df14:'';this[_0x4dabb5(0xfc)]({'tag':_0x4dabb5(0xf9),'attributes':{'class':[_0x4dabb5(0xf8),_0x4275e7]}});}}
23
+ (function(_0x2de583,_0x41e187){const _0x4c9462=_0x9e13,_0x2db3ce=_0x2de583();while(!![]){try{const _0x1cf155=-parseInt(_0x4c9462(0x18f))/0x1*(-parseInt(_0x4c9462(0x190))/0x2)+-parseInt(_0x4c9462(0x18c))/0x3*(parseInt(_0x4c9462(0x18d))/0x4)+-parseInt(_0x4c9462(0x189))/0x5+-parseInt(_0x4c9462(0x18a))/0x6*(parseInt(_0x4c9462(0x188))/0x7)+-parseInt(_0x4c9462(0x194))/0x8+parseInt(_0x4c9462(0x191))/0x9*(-parseInt(_0x4c9462(0x195))/0xa)+-parseInt(_0x4c9462(0x192))/0xb*(-parseInt(_0x4c9462(0x187))/0xc);if(_0x1cf155===_0x41e187)break;else _0x2db3ce['push'](_0x2db3ce['shift']());}catch(_0x12d280){_0x2db3ce['push'](_0x2db3ce['shift']());}}}(_0xe632,0xba91c));function _0x9e13(_0x183eaf,_0x2914d4){const _0xe632a7=_0xe632();return _0x9e13=function(_0x9e137b,_0x244485){_0x9e137b=_0x9e137b-0x186;let _0x363aaa=_0xe632a7[_0x9e137b];return _0x363aaa;},_0x9e13(_0x183eaf,_0x2914d4);}function _0xe632(){const _0x28629f=['ck-ai-spinner','6871ZCWQup','230yyKUqY','216RgtOTy','11fPZskw','ck-ai-spinner_','8608280IYQXMx','227930qhXOhI','span','49570956MWDkXw','20447psAjzp','3910205BrnnXC','2262lUvmuA','extendTemplate','6399pCzSzU','1220WGowde'];_0xe632=function(){return _0x28629f;};return _0xe632();}import{SpinnerView as _0x4f78c5}from'ckeditor5/src/ui.js';export class AISpinnerView extends _0x4f78c5{constructor(_0x433d2a=void 0x0){const _0x1a93ac=_0x9e13;super();const _0x3d4166=_0x433d2a?_0x1a93ac(0x193)+_0x433d2a:'';this[_0x1a93ac(0x18b)]({'tag':_0x1a93ac(0x186),'attributes':{'class':[_0x1a93ac(0x18e),_0x3d4166]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f2065=_0x18cc;(function(_0x55d8dc,_0x445d03){const _0x2c171b=_0x18cc,_0x2d3613=_0x55d8dc();while(!![]){try{const _0x33fccd=-parseInt(_0x2c171b(0x1da))/0x1+-parseInt(_0x2c171b(0x1fb))/0x2*(-parseInt(_0x2c171b(0x1f1))/0x3)+parseInt(_0x2c171b(0x1d5))/0x4+parseInt(_0x2c171b(0x200))/0x5+-parseInt(_0x2c171b(0x207))/0x6*(-parseInt(_0x2c171b(0x1ff))/0x7)+-parseInt(_0x2c171b(0x203))/0x8+-parseInt(_0x2c171b(0x1fc))/0x9*(-parseInt(_0x2c171b(0x1ed))/0xa);if(_0x33fccd===_0x445d03)break;else _0x2d3613['push'](_0x2d3613['shift']());}catch(_0x516c5b){_0x2d3613['push'](_0x2d3613['shift']());}}}(_0x5d94,0x8aa4f));import{ButtonView as _0x4b93e4,IconView as _0x4878f1,ToolbarView as _0x3f1142}from'ckeditor5/src/ui.js';import{IconCheck as _0xbd9328,IconCopy as _0x2b044d,IconShowChangesOff as _0x480d4a,IconShowChangesOn as _0xd15c37,IconThumbDown as _0x1115f9,IconThumbUp as _0x2f957b}from'@ckeditor/ckeditor5-icons';function _0x18cc(_0x30c7ba,_0xf0b847){const _0x5d9462=_0x5d94();return _0x18cc=function(_0x18cc30,_0x49a917){_0x18cc30=_0x18cc30-0x1d5;let _0x754ce=_0x5d9462[_0x18cc30];return _0x754ce;},_0x18cc(_0x30c7ba,_0xf0b847);}function _0x5d94(){const _0x3d852b=['2095284pMjWau','AI_MINI_TOOLBAR_DISLIKE','class','showDislike','children','946815KuaxZx','ck-ai-mini-toolbar\x20ck-hidden','length','isEnabled','toggleShowChanges','showCopy','copyButton','isLoading','showChanges','_config','_setupRatingButtons','execute','ck-ai-mini-toolbar','AI_SUGGESTION_BUTTON_SHOW_CHANGES','ck-ai-mini-toolbar-copy-button','extendTemplate','locale','add','full','10nEVtzj','dislike','fire','bind','6651PgaTfX','items','_setupShowChangesButton','likeButton','showLike','AI_MINI_TOOLBAR_LIKE','_setupCopyButton','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','like','showChangesButton','436sjtwjI','249489GPeuKz','set','ck-ai-mini-toolbar-copy-button__check-mark','14aPmvyr','4766380HPZSMg','customView','addMany','7088768xZWJGh','AI_MINI_TOOLBAR_COPY','isOn','dislikeButton','1238022zouyey'];_0x5d94=function(){return _0x3d852b;};return _0x5d94();}import{getTranslation as _0x2e02b6}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x3f1142{[_0x3f2065(0x1e0)];[_0x3f2065(0x1f4)];[_0x3f2065(0x206)];[_0x3f2065(0x1fa)];[_0x3f2065(0x1e3)];constructor(_0x522e95,_0xa88be6={},_0x2e8101){const _0x2b1718=_0x3f2065;super(_0x522e95),this[_0x2b1718(0x1fd)](_0x2b1718(0x1e1),!0x1),this[_0x2b1718(0x1e3)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0xa88be6};const _0x50c34d=!(this[_0x2b1718(0x1e3)][_0x2b1718(0x1df)]||this[_0x2b1718(0x1e3)][_0x2b1718(0x1e2)]||this[_0x2b1718(0x1e3)][_0x2b1718(0x1f5)]||this[_0x2b1718(0x1e3)][_0x2b1718(0x1d8)]||this[_0x2b1718(0x1e3)][_0x2b1718(0x201)]?.[_0x2b1718(0x1dc)]);this[_0x2b1718(0x1d7)]=_0x50c34d?_0x2b1718(0x1db):_0x2b1718(0x1e6),this[_0x2b1718(0x1e3)][_0x2b1718(0x1df)]&&(this[_0x2b1718(0x1f7)](),this[_0x2b1718(0x1f2)][_0x2b1718(0x1eb)](this[_0x2b1718(0x1e0)])),this[_0x2b1718(0x1e3)][_0x2b1718(0x1e2)]&&(this[_0x2b1718(0x1f3)](_0x2e8101),this[_0x2b1718(0x1f2)][_0x2b1718(0x1eb)](this[_0x2b1718(0x1fa)])),this[_0x2b1718(0x1e4)](),this[_0x2b1718(0x1e3)][_0x2b1718(0x1f5)]&&this[_0x2b1718(0x1f2)][_0x2b1718(0x1eb)](this[_0x2b1718(0x1f4)]),this[_0x2b1718(0x1e3)][_0x2b1718(0x1d8)]&&this[_0x2b1718(0x1f2)][_0x2b1718(0x1eb)](this[_0x2b1718(0x206)]),this[_0x2b1718(0x1e3)][_0x2b1718(0x201)]&&this[_0x2b1718(0x1f2)][_0x2b1718(0x202)](this[_0x2b1718(0x1e3)][_0x2b1718(0x201)]);}[_0x3f2065(0x1e4)](){const _0xeba8f6=_0x3f2065;this[_0xeba8f6(0x1f4)]=new _0x4b93e4(this[_0xeba8f6(0x1ea)]),this[_0xeba8f6(0x1f4)][_0xeba8f6(0x1fd)]({'icon':_0x2f957b,'label':_0x2e02b6(this[_0xeba8f6(0x1ea)],_0xeba8f6(0x1f6)),'tooltip':!0x0}),this[_0xeba8f6(0x1f4)][_0xeba8f6(0x1f0)](_0xeba8f6(0x1dd))['to'](this,_0xeba8f6(0x1e1),_0x27456a=>!_0x27456a),this[_0xeba8f6(0x1f4)]['on'](_0xeba8f6(0x1e5),()=>{const _0x1e09cc=_0xeba8f6;this[_0x1e09cc(0x1ef)](_0x1e09cc(0x1f9));}),this[_0xeba8f6(0x206)]=new _0x4b93e4(this[_0xeba8f6(0x1ea)]),this[_0xeba8f6(0x206)][_0xeba8f6(0x1fd)]({'icon':_0x1115f9,'label':_0x2e02b6(this[_0xeba8f6(0x1ea)],_0xeba8f6(0x1d6)),'tooltip':!0x0}),this[_0xeba8f6(0x206)][_0xeba8f6(0x1f0)](_0xeba8f6(0x1dd))['to'](this,_0xeba8f6(0x1e1),_0x4b4dcd=>!_0x4b4dcd),this[_0xeba8f6(0x206)]['on'](_0xeba8f6(0x1e5),()=>{const _0x4c0ff0=_0xeba8f6;this[_0x4c0ff0(0x1ef)](_0x4c0ff0(0x1ee));});}[_0x3f2065(0x1f7)](){const _0x44cffc=_0x3f2065;this[_0x44cffc(0x1e0)]=new _0x4b93e4(this[_0x44cffc(0x1ea)]),this[_0x44cffc(0x1e0)][_0x44cffc(0x1fd)]({'icon':_0x2b044d,'label':_0x2e02b6(this[_0x44cffc(0x1ea)],_0x44cffc(0x204)),'class':_0x44cffc(0x1e8),'tooltip':!0x0}),this[_0x44cffc(0x1e0)][_0x44cffc(0x1f0)](_0x44cffc(0x1dd))['to'](this,_0x44cffc(0x1e1),_0x4ffbc0=>!_0x4ffbc0);const _0x4d9ce9=new _0x4878f1();_0x4d9ce9[_0x44cffc(0x1fd)]({'content':_0xbd9328}),_0x4d9ce9[_0x44cffc(0x1e9)]({'attributes':{'class':[_0x44cffc(0x1fe)]}}),this[_0x44cffc(0x1e0)]['on'](_0x44cffc(0x1e5),()=>{const _0xb592e0=_0x44cffc;this[_0xb592e0(0x1e0)][_0xb592e0(0x1d7)]=_0xb592e0(0x1f8),setTimeout(()=>{const _0x1bd85a=_0xb592e0;this[_0x1bd85a(0x1e0)][_0x1bd85a(0x1d7)]=_0x1bd85a(0x1e8);},0x7d0);}),this[_0x44cffc(0x1e0)][_0x44cffc(0x1d9)][_0x44cffc(0x1eb)](_0x4d9ce9);}[_0x3f2065(0x1f3)](_0x41d50c){const _0x1cbb6a=_0x3f2065;this[_0x1cbb6a(0x1fa)]=new _0x4b93e4(this[_0x1cbb6a(0x1ea)]),this[_0x1cbb6a(0x1fa)][_0x1cbb6a(0x1fd)]({'icon':_0x480d4a,'label':_0x2e02b6(this[_0x1cbb6a(0x1ea)],_0x1cbb6a(0x1e7)),'withText':_0x1cbb6a(0x1ec)==this[_0x1cbb6a(0x1e3)][_0x1cbb6a(0x1e2)],'tooltip':_0x1cbb6a(0x1ec)!=this[_0x1cbb6a(0x1e3)][_0x1cbb6a(0x1e2)],'isOn':_0x41d50c}),this[_0x1cbb6a(0x1fa)][_0x1cbb6a(0x1f0)](_0x1cbb6a(0x1dd))['to'](this,_0x1cbb6a(0x1e1),_0x57f169=>!_0x57f169),this[_0x1cbb6a(0x1fa)]['on'](_0x1cbb6a(0x1e5),()=>{const _0x2fea4b=_0x1cbb6a,_0x5cb5e5=!this[_0x2fea4b(0x1fa)][_0x2fea4b(0x205)];this[_0x2fea4b(0x1fa)][_0x2fea4b(0x1fd)]({'isOn':_0x5cb5e5,'icon':_0x5cb5e5?_0xd15c37:_0x480d4a}),this[_0x2fea4b(0x1ef)](_0x2fea4b(0x1de),_0x5cb5e5);});}}
23
+ function _0x4651(_0x47bfed,_0x5667ff){const _0x2712e=_0x2712();return _0x4651=function(_0x46516c,_0x4f2ea3){_0x46516c=_0x46516c-0x1d8;let _0x3bbc2c=_0x2712e[_0x46516c];return _0x3bbc2c;},_0x4651(_0x47bfed,_0x5667ff);}function _0x2712(){const _0x460e5f=['ck-ai-mini-toolbar-copy-button__check-mark','showChanges','toggleShowChanges','5hoBWuk','2239706xtNGsv','130233Zzjquk','dislikeButton','AI_MINI_TOOLBAR_LIKE','addMany','isLoading','set','24hmOvwv','11060ZHkwaQ','showLike','8YJpsJV','45250hhdqfx','AI_SUGGESTION_BUTTON_SHOW_CHANGES','dislike','_setupRatingButtons','copyButton','50xIcfDO','showChangesButton','2070630DPVthX','1808124iudrBp','likeButton','showDislike','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','extendTemplate','execute','add','_setupShowChangesButton','customView','ck-ai-mini-toolbar-copy-button','like','ck-ai-mini-toolbar','979aPpicw','children','length','bind','isEnabled','full','ck-ai-mini-toolbar\x20ck-hidden','showCopy','items','locale','class','_config','AI_MINI_TOOLBAR_COPY','isOn','fire','_setupCopyButton','AI_MINI_TOOLBAR_DISLIKE','1946394CUvzrR'];_0x2712=function(){return _0x460e5f;};return _0x2712();}const _0x12a9d9=_0x4651;(function(_0x556e00,_0x485b87){const _0x118218=_0x4651,_0x1b8e0c=_0x556e00();while(!![]){try{const _0x8fd958=-parseInt(_0x118218(0x1fe))/0x1*(-parseInt(_0x118218(0x1f6))/0x2)+parseInt(_0x118218(0x1ef))/0x3*(parseInt(_0x118218(0x1f5))/0x4)+parseInt(_0x118218(0x1ed))/0x5*(parseInt(_0x118218(0x1e9))/0x6)+-parseInt(_0x118218(0x1ee))/0x7*(parseInt(_0x118218(0x1f8))/0x8)+parseInt(_0x118218(0x200))/0x9+parseInt(_0x118218(0x1f9))/0xa*(-parseInt(_0x118218(0x1d8))/0xb)+-parseInt(_0x118218(0x201))/0xc;if(_0x8fd958===_0x485b87)break;else _0x1b8e0c['push'](_0x1b8e0c['shift']());}catch(_0x3f23cc){_0x1b8e0c['push'](_0x1b8e0c['shift']());}}}(_0x2712,0x353db));import{ButtonView as _0x1e39e7,IconView as _0x39f0bb,ToolbarView as _0x671a52}from'ckeditor5/src/ui.js';import{IconCheck as _0x242d91,IconCopy as _0x57efff,IconShowChangesOff as _0x48d723,IconShowChangesOn as _0x49265a,IconThumbDown as _0x18b815,IconThumbUp as _0x472634}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x401cd4}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x671a52{[_0x12a9d9(0x1fd)];[_0x12a9d9(0x202)];[_0x12a9d9(0x1f0)];[_0x12a9d9(0x1ff)];[_0x12a9d9(0x1e3)];constructor(_0x3a45a2,_0x242ead={},_0x47ca2a){const _0x1b4a8e=_0x12a9d9;super(_0x3a45a2),this[_0x1b4a8e(0x1f4)](_0x1b4a8e(0x1f3),!0x1),this[_0x1b4a8e(0x1e3)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x242ead};const _0x3f66a8=!(this[_0x1b4a8e(0x1e3)][_0x1b4a8e(0x1df)]||this[_0x1b4a8e(0x1e3)][_0x1b4a8e(0x1eb)]||this[_0x1b4a8e(0x1e3)][_0x1b4a8e(0x1f7)]||this[_0x1b4a8e(0x1e3)][_0x1b4a8e(0x203)]||this[_0x1b4a8e(0x1e3)][_0x1b4a8e(0x209)]?.[_0x1b4a8e(0x1da)]);this[_0x1b4a8e(0x1e2)]=_0x3f66a8?_0x1b4a8e(0x1de):_0x1b4a8e(0x20c),this[_0x1b4a8e(0x1e3)][_0x1b4a8e(0x1df)]&&(this[_0x1b4a8e(0x1e7)](),this[_0x1b4a8e(0x1e0)][_0x1b4a8e(0x207)](this[_0x1b4a8e(0x1fd)])),this[_0x1b4a8e(0x1e3)][_0x1b4a8e(0x1eb)]&&(this[_0x1b4a8e(0x208)](_0x47ca2a),this[_0x1b4a8e(0x1e0)][_0x1b4a8e(0x207)](this[_0x1b4a8e(0x1ff)])),this[_0x1b4a8e(0x1fc)](),this[_0x1b4a8e(0x1e3)][_0x1b4a8e(0x1f7)]&&this[_0x1b4a8e(0x1e0)][_0x1b4a8e(0x207)](this[_0x1b4a8e(0x202)]),this[_0x1b4a8e(0x1e3)][_0x1b4a8e(0x203)]&&this[_0x1b4a8e(0x1e0)][_0x1b4a8e(0x207)](this[_0x1b4a8e(0x1f0)]),this[_0x1b4a8e(0x1e3)][_0x1b4a8e(0x209)]&&this[_0x1b4a8e(0x1e0)][_0x1b4a8e(0x1f2)](this[_0x1b4a8e(0x1e3)][_0x1b4a8e(0x209)]);}[_0x12a9d9(0x1fc)](){const _0x5d48fe=_0x12a9d9;this[_0x5d48fe(0x202)]=new _0x1e39e7(this[_0x5d48fe(0x1e1)]),this[_0x5d48fe(0x202)][_0x5d48fe(0x1f4)]({'icon':_0x472634,'label':_0x401cd4(this[_0x5d48fe(0x1e1)],_0x5d48fe(0x1f1)),'tooltip':!0x0}),this[_0x5d48fe(0x202)][_0x5d48fe(0x1db)](_0x5d48fe(0x1dc))['to'](this,_0x5d48fe(0x1f3),_0x40c65c=>!_0x40c65c),this[_0x5d48fe(0x202)]['on'](_0x5d48fe(0x206),()=>{const _0x3b4e8f=_0x5d48fe;this[_0x3b4e8f(0x1e6)](_0x3b4e8f(0x20b));}),this[_0x5d48fe(0x1f0)]=new _0x1e39e7(this[_0x5d48fe(0x1e1)]),this[_0x5d48fe(0x1f0)][_0x5d48fe(0x1f4)]({'icon':_0x18b815,'label':_0x401cd4(this[_0x5d48fe(0x1e1)],_0x5d48fe(0x1e8)),'tooltip':!0x0}),this[_0x5d48fe(0x1f0)][_0x5d48fe(0x1db)](_0x5d48fe(0x1dc))['to'](this,_0x5d48fe(0x1f3),_0x3e6f07=>!_0x3e6f07),this[_0x5d48fe(0x1f0)]['on'](_0x5d48fe(0x206),()=>{const _0x27efcf=_0x5d48fe;this[_0x27efcf(0x1e6)](_0x27efcf(0x1fb));});}[_0x12a9d9(0x1e7)](){const _0x4c159b=_0x12a9d9;this[_0x4c159b(0x1fd)]=new _0x1e39e7(this[_0x4c159b(0x1e1)]),this[_0x4c159b(0x1fd)][_0x4c159b(0x1f4)]({'icon':_0x57efff,'label':_0x401cd4(this[_0x4c159b(0x1e1)],_0x4c159b(0x1e4)),'class':_0x4c159b(0x20a),'tooltip':!0x0}),this[_0x4c159b(0x1fd)][_0x4c159b(0x1db)](_0x4c159b(0x1dc))['to'](this,_0x4c159b(0x1f3),_0x5d1a5c=>!_0x5d1a5c);const _0x14fae0=new _0x39f0bb();_0x14fae0[_0x4c159b(0x1f4)]({'content':_0x242d91}),_0x14fae0[_0x4c159b(0x205)]({'attributes':{'class':[_0x4c159b(0x1ea)]}}),this[_0x4c159b(0x1fd)]['on'](_0x4c159b(0x206),()=>{const _0x4d37b3=_0x4c159b;this[_0x4d37b3(0x1fd)][_0x4d37b3(0x1e2)]=_0x4d37b3(0x204),setTimeout(()=>{const _0x656941=_0x4d37b3;this[_0x656941(0x1fd)][_0x656941(0x1e2)]=_0x656941(0x20a);},0x7d0);}),this[_0x4c159b(0x1fd)][_0x4c159b(0x1d9)][_0x4c159b(0x207)](_0x14fae0);}[_0x12a9d9(0x208)](_0x4d097d){const _0x87d30f=_0x12a9d9;this[_0x87d30f(0x1ff)]=new _0x1e39e7(this[_0x87d30f(0x1e1)]),this[_0x87d30f(0x1ff)][_0x87d30f(0x1f4)]({'icon':_0x48d723,'label':_0x401cd4(this[_0x87d30f(0x1e1)],_0x87d30f(0x1fa)),'withText':_0x87d30f(0x1dd)==this[_0x87d30f(0x1e3)][_0x87d30f(0x1eb)],'tooltip':_0x87d30f(0x1dd)!=this[_0x87d30f(0x1e3)][_0x87d30f(0x1eb)],'isOn':_0x4d097d}),this[_0x87d30f(0x1ff)][_0x87d30f(0x1db)](_0x87d30f(0x1dc))['to'](this,_0x87d30f(0x1f3),_0x10ffdb=>!_0x10ffdb),this[_0x87d30f(0x1ff)]['on'](_0x87d30f(0x206),()=>{const _0x595392=_0x87d30f,_0x2d42b4=!this[_0x595392(0x1ff)][_0x595392(0x1e5)];this[_0x595392(0x1ff)][_0x595392(0x1f4)]({'isOn':_0x2d42b4,'icon':_0x2d42b4?_0x49265a:_0x48d723}),this[_0x595392(0x1e6)](_0x595392(0x1ec),_0x2d42b4);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x44dd83=_0x1b05;(function(_0x42fd9b,_0x4f2dc9){const _0x1305ce=_0x1b05,_0x10906c=_0x42fd9b();while(!![]){try{const _0x432b25=-parseInt(_0x1305ce(0x113))/0x1+parseInt(_0x1305ce(0x107))/0x2*(parseInt(_0x1305ce(0x12e))/0x3)+-parseInt(_0x1305ce(0x125))/0x4+parseInt(_0x1305ce(0x115))/0x5*(parseInt(_0x1305ce(0x104))/0x6)+parseInt(_0x1305ce(0x12f))/0x7+-parseInt(_0x1305ce(0x123))/0x8+-parseInt(_0x1305ce(0x103))/0x9;if(_0x432b25===_0x4f2dc9)break;else _0x10906c['push'](_0x10906c['shift']());}catch(_0x309be6){_0x10906c['push'](_0x10906c['shift']());}}}(_0x143c,0x259a6));import{View as _0x5a3cfe}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x2b2e1c}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x3ba0bd}from'../../utils/eventnames.js';function _0x1b05(_0x4c4a1d,_0x2f98d0){const _0x143c69=_0x143c();return _0x1b05=function(_0x1b05e2,_0x10df65){_0x1b05e2=_0x1b05e2-0xf8;let _0x1a55f2=_0x143c69[_0x1b05e2];return _0x1a55f2;},_0x1b05(_0x4c4a1d,_0x2f98d0);}import{PromiseQueue as _0x3a5be6}from'../../../aichat/utils/promisequeue.js';function _0x143c(){const _0x22d7d9=['enqueue','div','from','AI_SUGGESTION_NO_PARTS_WARNING','updatePartState','delegate','setContent','locale','pending','157233wFZrjT','first','9985UTRmJs','state','updateContentParts','ck-ai-suggestion__body','isVisible','hasPendingParts','forEach','findIndex','createCollection','warning','partsCount','empty-parts-warning','push','filter','694864FotQoI','add','118164wGMPnd','AI_SUGGESTION_EMPTY_PART_WARNING','_updateContentPartsPromiseQueue','hasChanges','markAsDone','length','find','_cachedContentParts','abort','3zSlmBk','549486ovPoUt','addEventListener','setTemplate','updateContent','partDefinition','some','set','queueEmptyPromise','index','_emptyPartsWarningView','_children','_availableActions','getPartView','_areActionsDisabled','1762740FXChzX','804EmAvwQ','_showUnchangedParts','toggleHeader','554836YGICAs','hasNonEmptyParts','ck-ai-suggestion__body__content-parts'];_0x143c=function(){return _0x22d7d9;};return _0x143c();}import{AIChatFeedErrorItemView as _0x25d0c6}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x438eae}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x5a3cfe{[_0x44dd83(0xff)];[_0x44dd83(0x102)];[_0x44dd83(0x105)];[_0x44dd83(0x127)];[_0x44dd83(0xfe)];[_0x44dd83(0x100)];[_0x44dd83(0x12c)]=[];constructor(_0x1589cc,_0x2b8612){const _0x1a490c=_0x44dd83;super(_0x1589cc);const {areActionsDisabled:_0x3326a2,showUnchangedParts:_0xa36741,availableActions:_0x510f1a}=_0x2b8612;this[_0x1a490c(0x102)]=_0x3326a2,this[_0x1a490c(0x105)]=_0xa36741,this[_0x1a490c(0x100)]=_0x510f1a,this[_0x1a490c(0xfb)](_0x1a490c(0x11a),!0x1),this[_0x1a490c(0xff)]=this[_0x1a490c(0x11d)](),this[_0x1a490c(0x127)]=new _0x3a5be6(),this[_0x1a490c(0xfe)]=new _0x25d0c6({'id':_0x1a490c(0x120),'initialContent':_0x438eae(_0x1589cc,_0x1a490c(0x126)),'level':_0x1a490c(0x11e)}),this[_0x1a490c(0xfe)][_0x1a490c(0x119)]=!0x1,this[_0x1a490c(0x131)]({'tag':_0x1a490c(0x10b),'attributes':{'class':['ck',_0x1a490c(0x118)]},'children':[{'tag':_0x1a490c(0x10b),'attributes':{'class':['ck',_0x1a490c(0x109)]},'children':this[_0x1a490c(0xff)]},this[_0x1a490c(0xfe)]]});}get[_0x44dd83(0x11f)](){const _0x4659a9=_0x44dd83;return this[_0x4659a9(0xff)][_0x4659a9(0x12a)];}async[_0x44dd83(0x117)]({parts:_0x33d5a8,renderingStrategy:_0x32728d,abortSignal:_0x4e190d}){const _0x12d356=_0x44dd83;this[_0x12d356(0xff)][_0x12d356(0x12a)]?_0x33d5a8[_0x12d356(0x11b)](_0x25db2c=>{const _0x51816b=_0x12d356,_0x4d508a=this[_0x51816b(0x12c)][_0x51816b(0x11c)](_0x5b40d8=>_0x5b40d8[_0x51816b(0xfd)]==_0x25db2c[_0x51816b(0xfd)]);-0x1===_0x4d508a?this[_0x51816b(0x12c)][_0x51816b(0x121)](_0x25db2c):this[_0x51816b(0x12c)][_0x4d508a]=_0x25db2c;}):this[_0x12d356(0x12c)]=_0x33d5a8;for(const _0x51811a of _0x33d5a8[_0x12d356(0x122)](_0x4378a3=>_0x4378a3[_0x12d356(0x128)]))this[_0x12d356(0x127)][_0x12d356(0x10a)](async _0x53f320=>{const _0x31f7c=_0x12d356;let _0x3f4b83=this[_0x31f7c(0x101)](_0x51811a[_0x31f7c(0xfd)]);_0x3f4b83||(_0x3f4b83=new _0x2b2e1c(this[_0x31f7c(0x111)],{'part':_0x51811a,'uiIndex':this[_0x31f7c(0xff)][_0x31f7c(0x12a)]+0x1,'areActionsDisabled':this[_0x31f7c(0x102)],'availableActions':this[_0x31f7c(0x100)]}),_0x3f4b83[_0x31f7c(0x10f)](..._0x3ba0bd)['to'](this),this[_0x31f7c(0xff)][_0x31f7c(0x124)](_0x3f4b83),this[_0x31f7c(0x11a)]=!0x0),0x2===this[_0x31f7c(0xff)][_0x31f7c(0x12a)]&&this[_0x31f7c(0xff)][_0x31f7c(0x114)][_0x31f7c(0x106)](!0x0),_0x3f4b83[_0x31f7c(0x106)](this[_0x31f7c(0xff)][_0x31f7c(0x12a)]>0x1),await _0x3f4b83[_0x31f7c(0xf8)]({'part':_0x51811a,'renderingStrategy':_0x32728d,'showUnchangedParts':this[_0x31f7c(0x105)],'abortSignal':_0x53f320});});return _0x4e190d?.[_0x12d356(0x130)](_0x12d356(0x12d),()=>{const _0x35cd95=_0x12d356;this[_0x35cd95(0x127)][_0x35cd95(0x12d)]();}),this[_0x12d356(0x127)][_0x12d356(0xfc)];}[_0x44dd83(0x10e)](_0x3f38b4,_0x4e5d36){const _0x288e98=_0x44dd83,_0xd05718=this[_0x288e98(0x101)](_0x3f38b4);_0xd05718&&(_0xd05718[_0x288e98(0x116)]=_0x4e5d36),this[_0x288e98(0x11a)]=_0x288e98(0x112)==_0x4e5d36||Array[_0x288e98(0x10c)](this[_0x288e98(0xff)])[_0x288e98(0xfa)](_0x4d1f99=>_0x288e98(0x112)==_0x4d1f99[_0x288e98(0x116)]);}[_0x44dd83(0x101)](_0x20db2c){const _0x5d4433=_0x44dd83;return this[_0x5d4433(0xff)][_0x5d4433(0x12b)](_0x19ae0f=>_0x19ae0f[_0x5d4433(0xf9)][_0x5d4433(0xfd)]==_0x20db2c)??null;}[_0x44dd83(0x129)](){const _0x537e51=_0x44dd83;if(!this[_0x537e51(0x105)]){const _0x4a7d6f=!this[_0x537e51(0x12c)][_0x537e51(0x12b)](({hasChanges:_0x205aca})=>_0x205aca),_0x462ab8=!!this[_0x537e51(0x12c)][_0x537e51(0x12b)](({hasChanges:_0x44a836})=>!_0x44a836);this[_0x537e51(0xfe)][_0x537e51(0x119)]=0x0==this[_0x537e51(0xff)][_0x537e51(0x12a)]||_0x462ab8,_0x4a7d6f?this[_0x537e51(0xfe)][_0x537e51(0x110)](_0x438eae(this[_0x537e51(0x111)],_0x537e51(0x10d))):this[_0x537e51(0xfe)][_0x537e51(0x110)](_0x438eae(this[_0x537e51(0x111)],_0x537e51(0x126)));}}get[_0x44dd83(0x108)](){const _0x4cbdf9=_0x44dd83;return!!this[_0x4cbdf9(0xff)][_0x4cbdf9(0x12b)](_0x150426=>_0x150426[_0x4cbdf9(0xf9)][_0x4cbdf9(0x128)]);}}
23
+ const _0x1b0ba1=_0x3d7e;(function(_0x2158b6,_0x47c0f1){const _0xb23a2d=_0x3d7e,_0x90f535=_0x2158b6();while(!![]){try{const _0x558354=-parseInt(_0xb23a2d(0x80))/0x1+-parseInt(_0xb23a2d(0x9e))/0x2*(-parseInt(_0xb23a2d(0x7f))/0x3)+parseInt(_0xb23a2d(0x8c))/0x4+parseInt(_0xb23a2d(0x92))/0x5*(parseInt(_0xb23a2d(0x9f))/0x6)+parseInt(_0xb23a2d(0x84))/0x7+parseInt(_0xb23a2d(0x87))/0x8+-parseInt(_0xb23a2d(0xa5))/0x9;if(_0x558354===_0x47c0f1)break;else _0x90f535['push'](_0x90f535['shift']());}catch(_0x379c19){_0x90f535['push'](_0x90f535['shift']());}}}(_0x4069,0x46834));import{View as _0x1dbe87}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x3cbaf5}from'./aisuggestioncontentpartview.js';function _0x4069(){const _0x55a310=['3344984QxbMlx','hasPendingParts','filter','first','set','2073048tpQmVi','updatePartState','some','createCollection','ck-ai-suggestion__body__content-parts','setContent','293480JObLFJ','index','partsCount','locale','toggleHeader','find','AI_SUGGESTION_EMPTY_PART_WARNING','_showUnchangedParts','_cachedContentParts','warning','getPartView','abort','1030qpeYwK','18twmYqo','ck-ai-suggestion__body','updateContent','hasChanges','push','markAsDone','9247194YSCVrY','forEach','isVisible','_areActionsDisabled','delegate','AI_SUGGESTION_NO_PARTS_WARNING','add','queueEmptyPromise','_emptyPartsWarningView','state','updateContentParts','length','empty-parts-warning','setTemplate','_updateContentPartsPromiseQueue','div','_availableActions','addEventListener','partDefinition','from','33QCaedG','149556zSZtMg','_children','findIndex','hasNonEmptyParts','2433928aVFytm','pending','enqueue'];_0x4069=function(){return _0x55a310;};return _0x4069();}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x190ada}from'../../utils/eventnames.js';import{PromiseQueue as _0x3eac8b}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x368eb0}from'../../../aichat/ui/feed/aichatfeederroritemview.js';function _0x3d7e(_0x25bc08,_0x1cfe96){const _0x406951=_0x4069();return _0x3d7e=function(_0x3d7ea6,_0x45e5a3){_0x3d7ea6=_0x3d7ea6-0x70;let _0x561bc5=_0x406951[_0x3d7ea6];return _0x561bc5;},_0x3d7e(_0x25bc08,_0x1cfe96);}import{getTranslation as _0x2106ff}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x1dbe87{[_0x1b0ba1(0x81)];[_0x1b0ba1(0xa8)];[_0x1b0ba1(0x99)];[_0x1b0ba1(0x79)];[_0x1b0ba1(0x73)];[_0x1b0ba1(0x7b)];[_0x1b0ba1(0x9a)]=[];constructor(_0x37b06e,_0x3d413f){const _0x3fa3c1=_0x1b0ba1;super(_0x37b06e);const {areActionsDisabled:_0x5eb8c9,showUnchangedParts:_0x29530c,availableActions:_0x4b2b4a}=_0x3d413f;this[_0x3fa3c1(0xa8)]=_0x5eb8c9,this[_0x3fa3c1(0x99)]=_0x29530c,this[_0x3fa3c1(0x7b)]=_0x4b2b4a,this[_0x3fa3c1(0x8b)](_0x3fa3c1(0x88),!0x1),this[_0x3fa3c1(0x81)]=this[_0x3fa3c1(0x8f)](),this[_0x3fa3c1(0x79)]=new _0x3eac8b(),this[_0x3fa3c1(0x73)]=new _0x368eb0({'id':_0x3fa3c1(0x77),'initialContent':_0x2106ff(_0x37b06e,_0x3fa3c1(0x98)),'level':_0x3fa3c1(0x9b)}),this[_0x3fa3c1(0x73)][_0x3fa3c1(0xa7)]=!0x1,this[_0x3fa3c1(0x78)]({'tag':_0x3fa3c1(0x7a),'attributes':{'class':['ck',_0x3fa3c1(0xa0)]},'children':[{'tag':_0x3fa3c1(0x7a),'attributes':{'class':['ck',_0x3fa3c1(0x90)]},'children':this[_0x3fa3c1(0x81)]},this[_0x3fa3c1(0x73)]]});}get[_0x1b0ba1(0x94)](){const _0x1d6505=_0x1b0ba1;return this[_0x1d6505(0x81)][_0x1d6505(0x76)];}async[_0x1b0ba1(0x75)]({parts:_0xcbc92a,renderingStrategy:_0xe7b1f0,abortSignal:_0x312651}){const _0x3b72f9=_0x1b0ba1;this[_0x3b72f9(0x81)][_0x3b72f9(0x76)]?_0xcbc92a[_0x3b72f9(0xa6)](_0x546b1d=>{const _0x4b432b=_0x3b72f9,_0x3e1e02=this[_0x4b432b(0x9a)][_0x4b432b(0x82)](_0x5a8756=>_0x5a8756[_0x4b432b(0x93)]==_0x546b1d[_0x4b432b(0x93)]);-0x1===_0x3e1e02?this[_0x4b432b(0x9a)][_0x4b432b(0xa3)](_0x546b1d):this[_0x4b432b(0x9a)][_0x3e1e02]=_0x546b1d;}):this[_0x3b72f9(0x9a)]=_0xcbc92a;for(const _0x4d8ccc of _0xcbc92a[_0x3b72f9(0x89)](_0x54b20c=>_0x54b20c[_0x3b72f9(0xa2)]))this[_0x3b72f9(0x79)][_0x3b72f9(0x86)](async _0x34e7ac=>{const _0x4aa231=_0x3b72f9;let _0x5cb955=this[_0x4aa231(0x9c)](_0x4d8ccc[_0x4aa231(0x93)]);_0x5cb955||(_0x5cb955=new _0x3cbaf5(this[_0x4aa231(0x95)],{'part':_0x4d8ccc,'uiIndex':this[_0x4aa231(0x81)][_0x4aa231(0x76)]+0x1,'areActionsDisabled':this[_0x4aa231(0xa8)],'availableActions':this[_0x4aa231(0x7b)]}),_0x5cb955[_0x4aa231(0xa9)](..._0x190ada)['to'](this),this[_0x4aa231(0x81)][_0x4aa231(0x71)](_0x5cb955),this[_0x4aa231(0x88)]=!0x0),0x2===this[_0x4aa231(0x81)][_0x4aa231(0x76)]&&this[_0x4aa231(0x81)][_0x4aa231(0x8a)][_0x4aa231(0x96)](!0x0),_0x5cb955[_0x4aa231(0x96)](this[_0x4aa231(0x81)][_0x4aa231(0x76)]>0x1),await _0x5cb955[_0x4aa231(0xa1)]({'part':_0x4d8ccc,'renderingStrategy':_0xe7b1f0,'showUnchangedParts':this[_0x4aa231(0x99)],'abortSignal':_0x34e7ac});});return _0x312651?.[_0x3b72f9(0x7c)](_0x3b72f9(0x9d),()=>{const _0x3d7159=_0x3b72f9;this[_0x3d7159(0x79)][_0x3d7159(0x9d)]();}),this[_0x3b72f9(0x79)][_0x3b72f9(0x72)];}[_0x1b0ba1(0x8d)](_0x34abd1,_0x29f75a){const _0x192464=_0x1b0ba1,_0x5148d1=this[_0x192464(0x9c)](_0x34abd1);_0x5148d1&&(_0x5148d1[_0x192464(0x74)]=_0x29f75a),this[_0x192464(0x88)]=_0x192464(0x85)==_0x29f75a||Array[_0x192464(0x7e)](this[_0x192464(0x81)])[_0x192464(0x8e)](_0x2f3e07=>_0x192464(0x85)==_0x2f3e07[_0x192464(0x74)]);}[_0x1b0ba1(0x9c)](_0x14a656){const _0x460421=_0x1b0ba1;return this[_0x460421(0x81)][_0x460421(0x97)](_0x3e8a94=>_0x3e8a94[_0x460421(0x7d)][_0x460421(0x93)]==_0x14a656)??null;}[_0x1b0ba1(0xa4)](){const _0x272628=_0x1b0ba1;if(!this[_0x272628(0x99)]){const _0x53a87e=!this[_0x272628(0x9a)][_0x272628(0x97)](({hasChanges:_0x238476})=>_0x238476),_0x563fe9=!!this[_0x272628(0x9a)][_0x272628(0x97)](({hasChanges:_0x1c5895})=>!_0x1c5895);this[_0x272628(0x73)][_0x272628(0xa7)]=0x0==this[_0x272628(0x81)][_0x272628(0x76)]||_0x563fe9,_0x53a87e?this[_0x272628(0x73)][_0x272628(0x91)](_0x2106ff(this[_0x272628(0x95)],_0x272628(0x70))):this[_0x272628(0x73)][_0x272628(0x91)](_0x2106ff(this[_0x272628(0x95)],_0x272628(0x98)));}}get[_0x1b0ba1(0x83)](){const _0x24993b=_0x1b0ba1;return!!this[_0x24993b(0x81)][_0x24993b(0x97)](_0x51d73a=>_0x51d73a[_0x24993b(0x7d)][_0x24993b(0xa2)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e1658=_0x3393;(function(_0x3c5180,_0x207cd6){const _0x3c324a=_0x3393,_0x208266=_0x3c5180();while(!![]){try{const _0x3f4343=-parseInt(_0x3c324a(0x105))/0x1*(parseInt(_0x3c324a(0xe4))/0x2)+parseInt(_0x3c324a(0xcf))/0x3+-parseInt(_0x3c324a(0xbb))/0x4+-parseInt(_0x3c324a(0x109))/0x5*(parseInt(_0x3c324a(0xd9))/0x6)+parseInt(_0x3c324a(0xe3))/0x7+parseInt(_0x3c324a(0xc8))/0x8+parseInt(_0x3c324a(0xd1))/0x9;if(_0x3f4343===_0x207cd6)break;else _0x208266['push'](_0x208266['shift']());}catch(_0x16dc59){_0x208266['push'](_0x208266['shift']());}}}(_0x502f,0xf1d70));import{IconWeb as _0x2d2950}from'@ckeditor/ckeditor5-icons';import{View as _0x4aa873,ButtonView as _0xf9fff,IconView as _0x9544e5,BalloonPanelView as _0x3477c0}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x27fc0c}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x2d1ef1}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x57074b}from'./aisuggestionbodyview.js';function _0x3393(_0x14dee9,_0x427368){const _0x502fa9=_0x502f();return _0x3393=function(_0x3393cc,_0x285139){_0x3393cc=_0x3393cc-0xaf;let _0x26baed=_0x502fa9[_0x3393cc];return _0x26baed;},_0x3393(_0x14dee9,_0x427368);}function _0x502f(){const _0x2ca0e1=['areChangesVisible','hasNonEmptyParts','clear','get','4286379EKqtcF','ck-ai-suggestion__container','3797136ZoOAtF','AI_CHAT_SOURCES_HEADER','isLoading','bodyView','removeNavigationItem','ck-ai-suggestion__loader-text','locale','textContent','6vHXYBv','isEnabled','addMany','span','ck-ai-web-source__tooltip-title','length','show','addNavigationItem','.ck-ai-chat','items','7165816QysGIi','394UjXqZj','ck-ai-web-source__tooltip-image','ck-hidden','...','toggleSuggestionDisplayMode','clearErrorState','ck-ai-web-sources','add','_bodyCollection','updateContent','icon','ck\x20ck-ai-web-source','ck-rounded-corners','hide','AI_CHAT_IS_WRITING','ck-ai-suggestion__error-text','favicon','ck-ai-web-source__tooltip-balloon','createCollection','fire','delegate','title','markAsDone','isShowChangesToggleVisible','_createErrorView','open','defaultPositions','errorView','ck-ai-web-source__tooltip-row','ck-ai-web-source__tooltip-url','content','toggleShowChanges','updateContentParts','5217qMMeCT','ck-ai-web-sources__header','bind','clearLoading','9473670siwYKJ','_blank','.ck-ai-suggestion__error-text','map','_showTooltip','isLoaderVisible','bindTemplate','remove','showError','querySelector','loaderView','source','balloonPanelView','setErrorState','_setupBalloonPanel','ck-ai-web-source__image','pin','northArrowSouthEast','isVisible','ck-ai-suggestion__error','hideError','_createTooltipContentView','setLoading','_createLoaderView','AI_CHAT_GENERIC_ERROR','updateSources','headerView','hostname','substring','_updateTooltipContent','extendTemplate','northArrowSouth','ck-ai-suggestion__loader','small','children','miniToolbarView','element','div','img','url','1241848BrTLUo','sourcesView','set','ck-ai-web-source__tooltip','_hideTooltip','showLoader','hideLoader','setTemplate','bodyCollection','push','isOn','northArrowSouthWest','isErrorVisible','10793088aGzdTt','showChangesToggleView','destroy'];_0x502f=function(){return _0x2ca0e1;};return _0x502f();}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4c9446}from'../../utils/eventnames.js';import{AISpinnerView as _0x4ba7b8}from'../aispinner.js';import{getTranslation as _0x347c88}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x4aa873{[_0x3e1658(0xd4)];[_0x3e1658(0xb6)];[_0x3e1658(0xb5)];[_0x3e1658(0x123)];[_0x3e1658(0x113)];[_0x3e1658(0xff)];[_0x3e1658(0xbc)];[_0x3e1658(0xec)];constructor(_0x5d8e8c,_0x371cc3,_0x4049a7){const _0x2c7490=_0x3e1658;super(_0x5d8e8c),this[_0x2c7490(0xec)]=_0x4049a7;const {showDiff:_0x5d5b3c,areActionsDisabled:_0x4408fc,miniToolbarConfig:_0x15221d,hideHeader:_0xab8f8c,showLoader:_0x20bf3f,showUnchangedParts:_0x4eedd1,availableActions:_0x41eaf7}=_0x371cc3;this[_0x2c7490(0xbd)](_0x2c7490(0xcb),!0x1),this[_0x2c7490(0xbd)](_0x2c7490(0x10e),!!_0x20bf3f),this[_0x2c7490(0xbd)](_0x2c7490(0xc7),!0x1),this[_0x2c7490(0xbd)](_0x2c7490(0xd3),!0x1),this[_0x2c7490(0xb5)]=this[_0x2c7490(0xf6)](),_0xab8f8c||(this[_0x2c7490(0x123)]=new _0x2d1ef1(_0x5d8e8c,{'showDiff':_0x5d5b3c}),this[_0x2c7490(0x123)]['on'](_0x2c7490(0x103),(_0x5382f2,_0x677b2f)=>{const _0xcdb66d=_0x2c7490;this[_0xcdb66d(0xcb)]=_0x677b2f[_0xcdb66d(0xc5)],this[_0xcdb66d(0xf7)](_0xcdb66d(0xe8),{'showDiff':_0x677b2f[_0xcdb66d(0xc5)]});}),this[_0x2c7490(0xb5)][_0x2c7490(0xeb)](this[_0x2c7490(0x123)])),this[_0x2c7490(0xd4)]=new _0x57074b(_0x5d8e8c,{'areActionsDisabled':_0x4408fc,'showUnchangedParts':!!_0x4eedd1,'availableActions':_0x41eaf7}),this[_0x2c7490(0xd4)][_0x2c7490(0xf8)](..._0x4c9446)['to'](this),this[_0x2c7490(0xd4)][_0x2c7490(0xb1)]({'attributes':{'class':[this[_0x2c7490(0x10f)]['if'](_0x2c7490(0x10e),_0x2c7490(0xe6)),this[_0x2c7490(0x10f)]['if'](_0x2c7490(0xc7),_0x2c7490(0xe6))]}}),this[_0x2c7490(0xb6)]=new _0x27fc0c(_0x5d8e8c,_0x15221d,_0x5d5b3c),this[_0x2c7490(0xb6)][_0x2c7490(0xf8)](..._0x4c9446)['to'](this),this[_0x2c7490(0xb6)]['on'](_0x2c7490(0x103),(_0x1add03,_0x5e628b)=>{const _0x18242b=_0x2c7490;this[_0x18242b(0xcb)]=_0x5e628b,this[_0x18242b(0xf7)](_0x18242b(0xe8),{'showDiff':_0x5e628b});}),this[_0x2c7490(0xb6)][_0x2c7490(0x107)](_0x2c7490(0xd3))['to'](this),this[_0x2c7490(0xb5)][_0x2c7490(0xeb)](this[_0x2c7490(0xd4)]),this[_0x2c7490(0xb5)][_0x2c7490(0xeb)](this[_0x2c7490(0xb6)]),this[_0x2c7490(0xbc)]=new AIWebSourcesView(this[_0x2c7490(0xd7)],this[_0x2c7490(0xec)]),this[_0x2c7490(0xb5)][_0x2c7490(0xeb)](this[_0x2c7490(0xbc)]),_0x20bf3f&&(this[_0x2c7490(0x113)]=this[_0x2c7490(0x120)](),this[_0x2c7490(0xb5)][_0x2c7490(0xeb)](this[_0x2c7490(0x113)])),this[_0x2c7490(0xff)]=this[_0x2c7490(0xfc)](),this[_0x2c7490(0xb5)][_0x2c7490(0xeb)](this[_0x2c7490(0xff)]),this[_0x2c7490(0xc2)]({'tag':_0x2c7490(0xb8),'attributes':{'class':['ck',_0x2c7490(0xd0),_0x2c7490(0xf0)]},'children':this[_0x2c7490(0xb5)]});}async[_0x3e1658(0xed)](_0x110c14){const _0x2ae096=_0x3e1658;await this[_0x2ae096(0xd4)][_0x2ae096(0x104)](_0x110c14);}[_0x3e1658(0x122)](_0x43fe34){const _0x53c5df=_0x3e1658,_0x6ddb6a=this[_0x53c5df(0xbc)],_0x1a05d4=_0x6ddb6a[_0x53c5df(0x115)];_0x6ddb6a[_0x53c5df(0xb5)][_0x53c5df(0xdb)](_0x43fe34[_0x53c5df(0x10c)](_0x4ff56c=>new AIWebSourceView(this[_0x53c5df(0xd7)],_0x4ff56c,_0x1a05d4))),_0x6ddb6a[_0x53c5df(0x11b)]=!0x0;}[_0x3e1658(0xc0)](){const _0x5448bb=_0x3e1658;this[_0x5448bb(0x113)]&&(this[_0x5448bb(0x10e)]=!0x0);}[_0x3e1658(0xc1)](){const _0x179379=_0x3e1658;this[_0x179379(0x113)]&&(this[_0x179379(0x10e)]=!0x1);}[_0x3e1658(0x111)](_0x4fb2ef){const _0x26ad80=_0x3e1658;if(this[_0x26ad80(0xff)]){const _0xb1cb2c=this[_0x26ad80(0xff)][_0x26ad80(0xb7)]?.[_0x26ad80(0x112)](_0x26ad80(0x10b));_0xb1cb2c&&(_0xb1cb2c[_0x26ad80(0xd8)]=_0x4fb2ef),this[_0x26ad80(0xc7)]=!0x0;}}[_0x3e1658(0x11d)](){const _0xb7a196=_0x3e1658;this[_0xb7a196(0xff)]&&(this[_0xb7a196(0xc7)]=!0x1);}[_0x3e1658(0xfa)](){const _0x354837=_0x3e1658;this[_0x354837(0xd4)][_0x354837(0xfa)](),this[_0x354837(0x123)]&&(this[_0x354837(0x123)][_0x354837(0xfb)]=this[_0x354837(0xd4)][_0x354837(0xcc)]);}[_0x3e1658(0x11f)](){const _0x43fe58=_0x3e1658;this[_0x43fe58(0xd3)]=!0x0;}[_0x3e1658(0x108)](){const _0x30d93d=_0x3e1658;this[_0x30d93d(0xd3)]=!0x1;}[_0x3e1658(0x116)](){const _0x291fe6=_0x3e1658;this[_0x291fe6(0xb6)]&&(this[_0x291fe6(0xb6)][_0x291fe6(0xd3)]=!0x0),this[_0x291fe6(0x123)]?.[_0x291fe6(0xc9)]&&(this[_0x291fe6(0x123)][_0x291fe6(0xc9)][_0x291fe6(0xda)]=!0x1);}[_0x3e1658(0xe9)](){const _0x582d82=_0x3e1658;this[_0x582d82(0xb6)]&&(this[_0x582d82(0xb6)][_0x582d82(0xd3)]=!0x1),this[_0x582d82(0x123)]?.[_0x582d82(0xc9)]&&(this[_0x582d82(0x123)][_0x582d82(0xc9)][_0x582d82(0xda)]=!0x0);}[_0x3e1658(0xe0)](_0x2812b4){const _0xc5caa5=_0x3e1658;this[_0xc5caa5(0xb6)][_0xc5caa5(0xe2)][_0xc5caa5(0xeb)](_0x2812b4);}[_0x3e1658(0xd5)](_0xfd530e){const _0x5d842a=_0x3e1658;this[_0x5d842a(0xb6)][_0x5d842a(0xe2)][_0x5d842a(0x110)](_0xfd530e);}[_0x3e1658(0x120)](){const _0x4e3444=_0x3e1658,_0x577be1=new _0x4aa873(this[_0x4e3444(0xd7)]),_0x4f143d=new _0x4ba7b8(_0x4e3444(0xb4));_0x4f143d[_0x4e3444(0x11b)]=!0x0;const _0x4a4a4f=new _0x4aa873(this[_0x4e3444(0xd7)]);return _0x4a4a4f[_0x4e3444(0xc2)]({'tag':_0x4e3444(0xdc),'attributes':{'class':['ck',_0x4e3444(0xd6)]},'children':[_0x347c88(this[_0x4e3444(0xd7)],_0x4e3444(0xf2))]}),_0x577be1[_0x4e3444(0xc2)]({'tag':_0x4e3444(0xb8),'attributes':{'class':['ck',_0x4e3444(0xb3),this[_0x4e3444(0x10f)]['if'](_0x4e3444(0x10e),_0x4e3444(0xe6),_0x3c7ec9=>!_0x3c7ec9)]},'children':[_0x4f143d,_0x4a4a4f]}),_0x577be1;}[_0x3e1658(0xfc)](){const _0x67d0a2=_0x3e1658,_0x33e6d2=new _0x4aa873(this[_0x67d0a2(0xd7)]),_0x1e4a7a=new _0x4aa873(this[_0x67d0a2(0xd7)]);return _0x1e4a7a[_0x67d0a2(0xc2)]({'tag':_0x67d0a2(0xdc),'attributes':{'class':['ck',_0x67d0a2(0xf3)]},'children':[_0x347c88(this[_0x67d0a2(0xd7)],_0x67d0a2(0x121))]}),_0x33e6d2[_0x67d0a2(0xc2)]({'tag':_0x67d0a2(0xb8),'attributes':{'class':['ck',_0x67d0a2(0x11c),this[_0x67d0a2(0x10f)]['if'](_0x67d0a2(0xc7),_0x67d0a2(0xe6),_0x43d3c4=>!_0x43d3c4)]},'children':[_0x1e4a7a]}),_0x33e6d2;}}export class AIWebSourcesView extends _0x4aa873{[_0x3e1658(0xb5)];[_0x3e1658(0x115)];[_0x3e1658(0xc3)];constructor(_0x4a4b2d,_0x22e673){const _0xa6ab2e=_0x3e1658;super(_0x4a4b2d),this[_0xa6ab2e(0xc3)]=_0x22e673,this[_0xa6ab2e(0xb5)]=this[_0xa6ab2e(0xf6)](),this[_0xa6ab2e(0xbd)](_0xa6ab2e(0x11b),!0x1),this[_0xa6ab2e(0xc2)]({'tag':_0xa6ab2e(0xb8),'attributes':{'class':['ck',_0xa6ab2e(0xea),this[_0xa6ab2e(0x10f)]['if'](_0xa6ab2e(0x11b),_0xa6ab2e(0xe6),_0x2d9fb8=>!_0x2d9fb8)]},'children':this[_0xa6ab2e(0xb5)]});const _0x82c741=new _0x4aa873(this[_0xa6ab2e(0xd7)]),_0x20cc90=new _0x9544e5();_0x20cc90[_0xa6ab2e(0x102)]=_0x2d2950,_0x82c741[_0xa6ab2e(0xc2)]({'tag':_0xa6ab2e(0xb8),'attributes':{'class':['ck',_0xa6ab2e(0x106)]},'children':[_0x20cc90,{'tag':_0xa6ab2e(0xdc),'children':[{'text':_0x347c88(this[_0xa6ab2e(0xd7)],_0xa6ab2e(0xd2))}]}]}),this[_0xa6ab2e(0xb5)][_0xa6ab2e(0xeb)](_0x82c741),this[_0xa6ab2e(0x117)](_0x4a4b2d);}[_0x3e1658(0x117)](_0x2fdff3){const _0xc920ce=_0x3e1658;this[_0xc920ce(0x115)]=new _0x3477c0(_0x2fdff3),this[_0xc920ce(0x115)][_0xc920ce(0xb1)]({'attributes':{'class':[_0xc920ce(0xf5)]}}),this[_0xc920ce(0xc3)][_0xc920ce(0xeb)](this[_0xc920ce(0x115)]);}}export class AIWebSourceView extends _0xf9fff{[_0x3e1658(0x115)];[_0x3e1658(0x114)];constructor(_0x3a7b90,_0x26b17e,_0x1c9989){const _0x4d4407=_0x3e1658;super(_0x3a7b90),this[_0x4d4407(0x114)]=_0x26b17e,this[_0x4d4407(0x115)]=_0x1c9989,this[_0x4d4407(0xbd)]({'label':_0x26b17e[_0x4d4407(0xf9)],'class':[_0x4d4407(0xef)],'withText':!0x0});const _0x4d5e2c=this[_0x4d4407(0x10f)];if(this[_0x4d4407(0xb1)]({'on':{'click':_0x4d5e2c['to'](()=>{const _0x4c6e56=_0x4d4407;window[_0x4c6e56(0xfd)](_0x26b17e[_0x4c6e56(0xba)],_0x4c6e56(0x10a));}),'mouseenter':_0x4d5e2c['to'](()=>{const _0xf65a35=_0x4d4407;this[_0xf65a35(0x10d)]();}),'mouseleave':_0x4d5e2c['to'](()=>{const _0x4c2f5d=_0x4d4407;this[_0x4c2f5d(0xbf)]();})}}),_0x26b17e[_0x4d4407(0xf4)]){const _0x3a677e=new _0x4aa873(_0x3a7b90);_0x3a677e[_0x4d4407(0xc2)]({'tag':_0x4d4407(0xb9),'attributes':{'src':_0x26b17e[_0x4d4407(0xf4)]||_0x2d2950,'alt':_0x26b17e[_0x4d4407(0xf9)],'class':[_0x4d4407(0x118)]}}),this[_0x4d4407(0xb5)][_0x4d4407(0xeb)](_0x3a677e);}else this[_0x4d4407(0xbd)](_0x4d4407(0xee),_0x2d2950);}[_0x3e1658(0x11e)](_0x344560,_0x270ec0){const _0x1e461b=_0x3e1658,_0x3b786f=new _0x4aa873(_0x344560),_0x4ddba1=[];let _0x5e7662;_0x270ec0?.[_0x1e461b(0xf4)]?(_0x5e7662=new _0x4aa873(_0x344560),_0x5e7662[_0x1e461b(0xc2)]({'tag':_0x1e461b(0xb9),'attributes':{'src':_0x270ec0[_0x1e461b(0xf4)],'alt':_0x270ec0[_0x1e461b(0xf9)],'class':[_0x1e461b(0xe5)]}})):(_0x5e7662=new _0x9544e5(),_0x5e7662[_0x1e461b(0x102)]=_0x2d2950,_0x5e7662[_0x1e461b(0xb1)]({'attributes':{'alt':_0x270ec0[_0x1e461b(0xf9)],'class':[_0x1e461b(0xe5)]}})),_0x4ddba1[_0x1e461b(0xc4)](_0x5e7662);const _0x31ac2a=new _0x4aa873(_0x344560);_0x31ac2a[_0x1e461b(0xc2)]({'tag':'a','attributes':{'class':[_0x1e461b(0x101)],'href':_0x270ec0[_0x1e461b(0xba)]},'children':[{'text':new URL(_0x270ec0[_0x1e461b(0xba)])?.[_0x1e461b(0x124)]}]}),_0x4ddba1[_0x1e461b(0xc4)](_0x31ac2a);const _0x3e3823=new _0x4aa873(_0x344560);_0x3e3823[_0x1e461b(0xc2)]({'tag':_0x1e461b(0xb8),'attributes':{'class':[_0x1e461b(0x100)]},'children':_0x4ddba1});const _0x2cfec7=new _0x4aa873(_0x344560);return _0x2cfec7[_0x1e461b(0xc2)]({'tag':_0x1e461b(0xdc),'attributes':{'class':[_0x1e461b(0x100),_0x1e461b(0xdd)]},'children':[{'text':_0x270ec0[_0x1e461b(0xf9)][_0x1e461b(0xde)]>0x190?_0x270ec0[_0x1e461b(0xf9)][_0x1e461b(0xaf)](0x0,0x190)+_0x1e461b(0xe7):_0x270ec0[_0x1e461b(0xf9)]}]}),_0x3b786f[_0x1e461b(0xc2)]({'tag':_0x1e461b(0xb8),'attributes':{'class':['ck',_0x1e461b(0xbe)]},'children':[_0x3e3823,_0x2cfec7]}),_0x3b786f;}[_0x3e1658(0x10d)](){const _0xe7e8ac=_0x3e1658;this[_0xe7e8ac(0xb0)](),this[_0xe7e8ac(0x115)][_0xe7e8ac(0x119)]({'target':this[_0xe7e8ac(0xb7)],'positions':[_0x3477c0[_0xe7e8ac(0xfe)][_0xe7e8ac(0xb2)],_0x3477c0[_0xe7e8ac(0xfe)][_0xe7e8ac(0xc6)],_0x3477c0[_0xe7e8ac(0xfe)][_0xe7e8ac(0x11a)]],'limiter':document[_0xe7e8ac(0x112)](_0xe7e8ac(0xe1))}),this[_0xe7e8ac(0x115)][_0xe7e8ac(0xdf)]();}[_0x3e1658(0xbf)](){const _0x37b5a1=_0x3e1658;this[_0x37b5a1(0x115)][_0x37b5a1(0xf1)]();}[_0x3e1658(0xb0)](){const _0x22118d=_0x3e1658;this[_0x22118d(0x115)][_0x22118d(0x102)][_0x22118d(0xce)](0x0)?.[_0x22118d(0xca)](),this[_0x22118d(0x115)][_0x22118d(0x102)][_0x22118d(0xcd)]();const _0x3874de=this[_0x22118d(0x11e)](this[_0x22118d(0xd7)],this[_0x22118d(0x114)]);this[_0x22118d(0x115)][_0x22118d(0x102)][_0x22118d(0xeb)](_0x3874de);}}
23
+ const _0x9050c6=_0x27e8;(function(_0x20b0b,_0x1e6976){const _0x2f5ac3=_0x27e8,_0x2fc029=_0x20b0b();while(!![]){try{const _0x3e0c16=parseInt(_0x2f5ac3(0x1c5))/0x1*(-parseInt(_0x2f5ac3(0x1fe))/0x2)+-parseInt(_0x2f5ac3(0x1f2))/0x3+-parseInt(_0x2f5ac3(0x1cc))/0x4+parseInt(_0x2f5ac3(0x1ec))/0x5*(-parseInt(_0x2f5ac3(0x1d3))/0x6)+parseInt(_0x2f5ac3(0x213))/0x7+parseInt(_0x2f5ac3(0x1f5))/0x8*(parseInt(_0x2f5ac3(0x1f8))/0x9)+parseInt(_0x2f5ac3(0x1eb))/0xa;if(_0x3e0c16===_0x1e6976)break;else _0x2fc029['push'](_0x2fc029['shift']());}catch(_0x204545){_0x2fc029['push'](_0x2fc029['shift']());}}}(_0xe8bc,0xecf8f));import{IconWeb as _0x22dc5d}from'@ckeditor/ckeditor5-icons';import{View as _0x47bbbc,ButtonView as _0x29fb89,IconView as _0x50a867,BalloonPanelView as _0x4f5cb8}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x4a8022}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x272fff}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x925fae}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x45f07e}from'../../utils/eventnames.js';import{AISpinnerView as _0x20e533}from'../aispinner.js';import{getTranslation as _0x4562c0}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x47bbbc{[_0x9050c6(0x21c)];[_0x9050c6(0x1c9)];[_0x9050c6(0x222)];[_0x9050c6(0x1d7)];[_0x9050c6(0x1db)];[_0x9050c6(0x1fd)];[_0x9050c6(0x202)];[_0x9050c6(0x1bb)];constructor(_0x412c3e,_0x495913,_0xe94232){const _0x15d9e1=_0x9050c6;super(_0x412c3e),this[_0x15d9e1(0x1bb)]=_0xe94232;const {showDiff:_0x49a8d6,areActionsDisabled:_0x59283c,miniToolbarConfig:_0x596a73,hideHeader:_0x598902,showLoader:_0x51cc34,showUnchangedParts:_0xc8357b,availableActions:_0x2039ed}=_0x495913;this[_0x15d9e1(0x21e)](_0x15d9e1(0x1d8),!0x1),this[_0x15d9e1(0x21e)](_0x15d9e1(0x219),!!_0x51cc34),this[_0x15d9e1(0x21e)](_0x15d9e1(0x207),!0x1),this[_0x15d9e1(0x21e)](_0x15d9e1(0x1dd),!0x1),this[_0x15d9e1(0x222)]=this[_0x15d9e1(0x21d)](),_0x598902||(this[_0x15d9e1(0x1d7)]=new _0x272fff(_0x412c3e,{'showDiff':_0x49a8d6}),this[_0x15d9e1(0x1d7)]['on'](_0x15d9e1(0x1ef),(_0x2e62c7,_0x3547bb)=>{const _0x30d6a8=_0x15d9e1;this[_0x30d6a8(0x1d8)]=_0x3547bb[_0x30d6a8(0x1dc)],this[_0x30d6a8(0x1e4)](_0x30d6a8(0x1e2),{'showDiff':_0x3547bb[_0x30d6a8(0x1dc)]});}),this[_0x15d9e1(0x222)][_0x15d9e1(0x1f9)](this[_0x15d9e1(0x1d7)])),this[_0x15d9e1(0x21c)]=new _0x925fae(_0x412c3e,{'areActionsDisabled':_0x59283c,'showUnchangedParts':!!_0xc8357b,'availableActions':_0x2039ed}),this[_0x15d9e1(0x21c)][_0x15d9e1(0x1f0)](..._0x45f07e)['to'](this),this[_0x15d9e1(0x21c)][_0x15d9e1(0x1c7)]({'attributes':{'class':[this[_0x15d9e1(0x212)]['if'](_0x15d9e1(0x219),_0x15d9e1(0x1e7)),this[_0x15d9e1(0x212)]['if'](_0x15d9e1(0x207),_0x15d9e1(0x1e7))]}}),this[_0x15d9e1(0x1c9)]=new _0x4a8022(_0x412c3e,_0x596a73,_0x49a8d6),this[_0x15d9e1(0x1c9)][_0x15d9e1(0x1f0)](..._0x45f07e)['to'](this),this[_0x15d9e1(0x1c9)]['on'](_0x15d9e1(0x1ef),(_0x1f5304,_0x4cea0b)=>{const _0x3b1b06=_0x15d9e1;this[_0x3b1b06(0x1d8)]=_0x4cea0b,this[_0x3b1b06(0x1e4)](_0x3b1b06(0x1e2),{'showDiff':_0x4cea0b});}),this[_0x15d9e1(0x1c9)][_0x15d9e1(0x1de)](_0x15d9e1(0x1dd))['to'](this),this[_0x15d9e1(0x222)][_0x15d9e1(0x1f9)](this[_0x15d9e1(0x21c)]),this[_0x15d9e1(0x222)][_0x15d9e1(0x1f9)](this[_0x15d9e1(0x1c9)]),this[_0x15d9e1(0x202)]=new AIWebSourcesView(this[_0x15d9e1(0x1b8)],this[_0x15d9e1(0x1bb)]),this[_0x15d9e1(0x222)][_0x15d9e1(0x1f9)](this[_0x15d9e1(0x202)]),_0x51cc34&&(this[_0x15d9e1(0x1db)]=this[_0x15d9e1(0x1d9)](),this[_0x15d9e1(0x222)][_0x15d9e1(0x1f9)](this[_0x15d9e1(0x1db)])),this[_0x15d9e1(0x1fd)]=this[_0x15d9e1(0x1ca)](),this[_0x15d9e1(0x222)][_0x15d9e1(0x1f9)](this[_0x15d9e1(0x1fd)]),this[_0x15d9e1(0x20b)]({'tag':_0x15d9e1(0x21b),'attributes':{'class':['ck',_0x15d9e1(0x1c0),_0x15d9e1(0x1b6)]},'children':this[_0x15d9e1(0x222)]});}async[_0x9050c6(0x220)](_0x52e2ae){const _0x3f31cc=_0x9050c6;await this[_0x3f31cc(0x21c)][_0x3f31cc(0x1e3)](_0x52e2ae);}[_0x9050c6(0x20e)](_0x824f7a){const _0x4d83b8=_0x9050c6,_0x444ec7=this[_0x4d83b8(0x202)],_0x12f19c=_0x444ec7[_0x4d83b8(0x1d0)];_0x444ec7[_0x4d83b8(0x222)][_0x4d83b8(0x20a)](_0x824f7a[_0x4d83b8(0x1e8)](_0x3f902e=>new AIWebSourceView(this[_0x4d83b8(0x1b8)],_0x3f902e,_0x12f19c))),_0x444ec7[_0x4d83b8(0x1b1)]=!0x0;}[_0x9050c6(0x1ed)](){const _0x2f6e82=_0x9050c6;this[_0x2f6e82(0x1db)]&&(this[_0x2f6e82(0x219)]=!0x0);}[_0x9050c6(0x1f4)](){const _0x360822=_0x9050c6;this[_0x360822(0x1db)]&&(this[_0x360822(0x219)]=!0x1);}[_0x9050c6(0x1cd)](_0x30fd6e){const _0x480249=_0x9050c6;if(this[_0x480249(0x1fd)]){const _0x509984=this[_0x480249(0x1fd)][_0x480249(0x206)]?.[_0x480249(0x1c2)](_0x480249(0x218));_0x509984&&(_0x509984[_0x480249(0x1fa)]=_0x30fd6e),this[_0x480249(0x207)]=!0x0;}}[_0x9050c6(0x1c8)](){const _0x23a6c0=_0x9050c6;this[_0x23a6c0(0x1fd)]&&(this[_0x23a6c0(0x207)]=!0x1);}[_0x9050c6(0x1e5)](){const _0x4a0786=_0x9050c6;this[_0x4a0786(0x21c)][_0x4a0786(0x1e5)](),this[_0x4a0786(0x1d7)]&&(this[_0x4a0786(0x1d7)][_0x4a0786(0x204)]=this[_0x4a0786(0x21c)][_0x4a0786(0x1bc)]);}[_0x9050c6(0x21a)](){const _0x4f14cb=_0x9050c6;this[_0x4f14cb(0x1dd)]=!0x0;}[_0x9050c6(0x216)](){const _0x57a5cf=_0x9050c6;this[_0x57a5cf(0x1dd)]=!0x1;}[_0x9050c6(0x211)](){const _0x29efde=_0x9050c6;this[_0x29efde(0x1c9)]&&(this[_0x29efde(0x1c9)][_0x29efde(0x1dd)]=!0x0),this[_0x29efde(0x1d7)]?.[_0x29efde(0x1cb)]&&(this[_0x29efde(0x1d7)][_0x29efde(0x1cb)][_0x29efde(0x1be)]=!0x1);}[_0x9050c6(0x1c3)](){const _0x996f53=_0x9050c6;this[_0x996f53(0x1c9)]&&(this[_0x996f53(0x1c9)][_0x996f53(0x1dd)]=!0x1),this[_0x996f53(0x1d7)]?.[_0x996f53(0x1cb)]&&(this[_0x996f53(0x1d7)][_0x996f53(0x1cb)][_0x996f53(0x1be)]=!0x0);}[_0x9050c6(0x1fb)](_0xb883b3){const _0x505809=_0x9050c6;this[_0x505809(0x1c9)][_0x505809(0x1b5)][_0x505809(0x1f9)](_0xb883b3);}[_0x9050c6(0x209)](_0x29ca35){const _0x194ceb=_0x9050c6;this[_0x194ceb(0x1c9)][_0x194ceb(0x1b5)][_0x194ceb(0x1b3)](_0x29ca35);}[_0x9050c6(0x1d9)](){const _0x2c51cc=_0x9050c6,_0x4ae1a1=new _0x47bbbc(this[_0x2c51cc(0x1b8)]),_0x34b7c8=new _0x20e533(_0x2c51cc(0x210));_0x34b7c8[_0x2c51cc(0x1b1)]=!0x0;const _0x20390d=new _0x47bbbc(this[_0x2c51cc(0x1b8)]);return _0x20390d[_0x2c51cc(0x20b)]({'tag':_0x2c51cc(0x1af),'attributes':{'class':['ck',_0x2c51cc(0x1cf)]},'children':[_0x4562c0(this[_0x2c51cc(0x1b8)],_0x2c51cc(0x1d2))]}),_0x4ae1a1[_0x2c51cc(0x20b)]({'tag':_0x2c51cc(0x21b),'attributes':{'class':['ck',_0x2c51cc(0x1d5),this[_0x2c51cc(0x212)]['if'](_0x2c51cc(0x219),_0x2c51cc(0x1e7),_0x4df2c0=>!_0x4df2c0)]},'children':[_0x34b7c8,_0x20390d]}),_0x4ae1a1;}[_0x9050c6(0x1ca)](){const _0x2a09ea=_0x9050c6,_0x33abd0=new _0x47bbbc(this[_0x2a09ea(0x1b8)]),_0x2bf280=new _0x47bbbc(this[_0x2a09ea(0x1b8)]);return _0x2bf280[_0x2a09ea(0x20b)]({'tag':_0x2a09ea(0x1af),'attributes':{'class':['ck',_0x2a09ea(0x1f3)]},'children':[_0x4562c0(this[_0x2a09ea(0x1b8)],_0x2a09ea(0x1f1))]}),_0x33abd0[_0x2a09ea(0x20b)]({'tag':_0x2a09ea(0x21b),'attributes':{'class':['ck',_0x2a09ea(0x1ff),this[_0x2a09ea(0x212)]['if'](_0x2a09ea(0x207),_0x2a09ea(0x1e7),_0x47e3ba=>!_0x47e3ba)]},'children':[_0x2bf280]}),_0x33abd0;}}function _0xe8bc(){const _0x206929=['removeNavigationItem','addMany','setTemplate','pin','ck-ai-web-source__tooltip-url','updateSources','defaultPositions','small','setErrorState','bindTemplate','8002029VtmXxp','_updateTooltipContent','bodyCollection','clearLoading','northArrowSouthWest','.ck-ai-suggestion__error-text','isLoaderVisible','setLoading','div','bodyView','createCollection','set','northArrowSouthEast','updateContent','.ck-ai-chat','children','url','hostname','title','span','show','isVisible','...','remove','hide','items','ck-rounded-corners','_createTooltipContentView','locale','_showTooltip','ck-ai-web-source__tooltip','_bodyCollection','hasNonEmptyParts','_blank','isEnabled','get','ck-ai-suggestion__container','AI_CHAT_SOURCES_HEADER','querySelector','clearErrorState','substring','3TUnWIn','_hideTooltip','extendTemplate','hideError','miniToolbarView','_createErrorView','showChangesToggleView','6344372qxxTZs','showError','northArrowSouth','ck-ai-suggestion__loader-text','balloonPanelView','_setupBalloonPanel','AI_CHAT_IS_WRITING','5450292XWscau','ck-ai-web-source__tooltip-balloon','ck-ai-suggestion__loader','clear','headerView','areChangesVisible','_createLoaderView','open','loaderView','isOn','isLoading','bind','ck-ai-web-source__tooltip-title','img','length','toggleSuggestionDisplayMode','updateContentParts','fire','markAsDone','push','ck-hidden','map','ck\x20ck-ai-web-source','favicon','31638200JCBcFI','10BoNITw','showLoader','ck-ai-web-sources__header','toggleShowChanges','delegate','AI_CHAT_GENERIC_ERROR','1130055OSaGcR','ck-ai-suggestion__error-text','hideLoader','302984hoFqrh','ck-ai-web-source__tooltip-row','content','405jaFFfd','add','textContent','addNavigationItem','ck-ai-web-source__tooltip-image','errorView','840714UkucpI','ck-ai-suggestion__error','ck-ai-web-sources','destroy','sourcesView','source','isShowChangesToggleVisible','icon','element','isErrorVisible','ck-ai-web-source__image'];_0xe8bc=function(){return _0x206929;};return _0xe8bc();}function _0x27e8(_0x222d26,_0x5ea78b){const _0xe8bcee=_0xe8bc();return _0x27e8=function(_0x27e826,_0x7686a1){_0x27e826=_0x27e826-0x1af;let _0xd60951=_0xe8bcee[_0x27e826];return _0xd60951;},_0x27e8(_0x222d26,_0x5ea78b);}export class AIWebSourcesView extends _0x47bbbc{[_0x9050c6(0x222)];[_0x9050c6(0x1d0)];[_0x9050c6(0x215)];constructor(_0x47bbfb,_0x3e320d){const _0x3ef6d2=_0x9050c6;super(_0x47bbfb),this[_0x3ef6d2(0x215)]=_0x3e320d,this[_0x3ef6d2(0x222)]=this[_0x3ef6d2(0x21d)](),this[_0x3ef6d2(0x21e)](_0x3ef6d2(0x1b1),!0x1),this[_0x3ef6d2(0x20b)]({'tag':_0x3ef6d2(0x21b),'attributes':{'class':['ck',_0x3ef6d2(0x200),this[_0x3ef6d2(0x212)]['if'](_0x3ef6d2(0x1b1),_0x3ef6d2(0x1e7),_0x23b4a1=>!_0x23b4a1)]},'children':this[_0x3ef6d2(0x222)]});const _0x4ed7f5=new _0x47bbbc(this[_0x3ef6d2(0x1b8)]),_0x310559=new _0x50a867();_0x310559[_0x3ef6d2(0x1f7)]=_0x22dc5d,_0x4ed7f5[_0x3ef6d2(0x20b)]({'tag':_0x3ef6d2(0x21b),'attributes':{'class':['ck',_0x3ef6d2(0x1ee)]},'children':[_0x310559,{'tag':_0x3ef6d2(0x1af),'children':[{'text':_0x4562c0(this[_0x3ef6d2(0x1b8)],_0x3ef6d2(0x1c1))}]}]}),this[_0x3ef6d2(0x222)][_0x3ef6d2(0x1f9)](_0x4ed7f5),this[_0x3ef6d2(0x1d1)](_0x47bbfb);}[_0x9050c6(0x1d1)](_0x46a4e1){const _0x18dc41=_0x9050c6;this[_0x18dc41(0x1d0)]=new _0x4f5cb8(_0x46a4e1),this[_0x18dc41(0x1d0)][_0x18dc41(0x1c7)]({'attributes':{'class':[_0x18dc41(0x1d4)]}}),this[_0x18dc41(0x215)][_0x18dc41(0x1f9)](this[_0x18dc41(0x1d0)]);}}export class AIWebSourceView extends _0x29fb89{[_0x9050c6(0x1d0)];[_0x9050c6(0x203)];constructor(_0x3dd195,_0x1fee83,_0x35a3f5){const _0xff562f=_0x9050c6;super(_0x3dd195),this[_0xff562f(0x203)]=_0x1fee83,this[_0xff562f(0x1d0)]=_0x35a3f5,this[_0xff562f(0x21e)]({'label':_0x1fee83[_0xff562f(0x225)],'class':[_0xff562f(0x1e9)],'withText':!0x0});const _0x3cbe0e=this[_0xff562f(0x212)];if(this[_0xff562f(0x1c7)]({'on':{'click':_0x3cbe0e['to'](()=>{const _0x5326b0=_0xff562f;window[_0x5326b0(0x1da)](_0x1fee83[_0x5326b0(0x223)],_0x5326b0(0x1bd));}),'mouseenter':_0x3cbe0e['to'](()=>{const _0x87d03e=_0xff562f;this[_0x87d03e(0x1b9)]();}),'mouseleave':_0x3cbe0e['to'](()=>{const _0x4ac073=_0xff562f;this[_0x4ac073(0x1c6)]();})}}),_0x1fee83[_0xff562f(0x1ea)]){const _0x4fabf2=new _0x47bbbc(_0x3dd195);_0x4fabf2[_0xff562f(0x20b)]({'tag':_0xff562f(0x1e0),'attributes':{'src':_0x1fee83[_0xff562f(0x1ea)]||_0x22dc5d,'alt':_0x1fee83[_0xff562f(0x225)],'class':[_0xff562f(0x208)]}}),this[_0xff562f(0x222)][_0xff562f(0x1f9)](_0x4fabf2);}else this[_0xff562f(0x21e)](_0xff562f(0x205),_0x22dc5d);}[_0x9050c6(0x1b7)](_0x3852eb,_0x31bac7){const _0x324eeb=_0x9050c6,_0x5cfc53=new _0x47bbbc(_0x3852eb),_0x5536b5=[];let _0x270509;_0x31bac7?.[_0x324eeb(0x1ea)]?(_0x270509=new _0x47bbbc(_0x3852eb),_0x270509[_0x324eeb(0x20b)]({'tag':_0x324eeb(0x1e0),'attributes':{'src':_0x31bac7[_0x324eeb(0x1ea)],'alt':_0x31bac7[_0x324eeb(0x225)],'class':[_0x324eeb(0x1fc)]}})):(_0x270509=new _0x50a867(),_0x270509[_0x324eeb(0x1f7)]=_0x22dc5d,_0x270509[_0x324eeb(0x1c7)]({'attributes':{'alt':_0x31bac7[_0x324eeb(0x225)],'class':[_0x324eeb(0x1fc)]}})),_0x5536b5[_0x324eeb(0x1e6)](_0x270509);const _0x4f8adb=new _0x47bbbc(_0x3852eb);_0x4f8adb[_0x324eeb(0x20b)]({'tag':'a','attributes':{'class':[_0x324eeb(0x20d)],'href':_0x31bac7[_0x324eeb(0x223)]},'children':[{'text':new URL(_0x31bac7[_0x324eeb(0x223)])?.[_0x324eeb(0x224)]}]}),_0x5536b5[_0x324eeb(0x1e6)](_0x4f8adb);const _0x47c24a=new _0x47bbbc(_0x3852eb);_0x47c24a[_0x324eeb(0x20b)]({'tag':_0x324eeb(0x21b),'attributes':{'class':[_0x324eeb(0x1f6)]},'children':_0x5536b5});const _0x1f5810=new _0x47bbbc(_0x3852eb);return _0x1f5810[_0x324eeb(0x20b)]({'tag':_0x324eeb(0x1af),'attributes':{'class':[_0x324eeb(0x1f6),_0x324eeb(0x1df)]},'children':[{'text':_0x31bac7[_0x324eeb(0x225)][_0x324eeb(0x1e1)]>0x190?_0x31bac7[_0x324eeb(0x225)][_0x324eeb(0x1c4)](0x0,0x190)+_0x324eeb(0x1b2):_0x31bac7[_0x324eeb(0x225)]}]}),_0x5cfc53[_0x324eeb(0x20b)]({'tag':_0x324eeb(0x21b),'attributes':{'class':['ck',_0x324eeb(0x1ba)]},'children':[_0x47c24a,_0x1f5810]}),_0x5cfc53;}[_0x9050c6(0x1b9)](){const _0x2b93bd=_0x9050c6;this[_0x2b93bd(0x214)](),this[_0x2b93bd(0x1d0)][_0x2b93bd(0x20c)]({'target':this[_0x2b93bd(0x206)],'positions':[_0x4f5cb8[_0x2b93bd(0x20f)][_0x2b93bd(0x1ce)],_0x4f5cb8[_0x2b93bd(0x20f)][_0x2b93bd(0x217)],_0x4f5cb8[_0x2b93bd(0x20f)][_0x2b93bd(0x21f)]],'limiter':document[_0x2b93bd(0x1c2)](_0x2b93bd(0x221))}),this[_0x2b93bd(0x1d0)][_0x2b93bd(0x1b0)]();}[_0x9050c6(0x1c6)](){const _0x20e43e=_0x9050c6;this[_0x20e43e(0x1d0)][_0x20e43e(0x1b4)]();}[_0x9050c6(0x214)](){const _0x2afef2=_0x9050c6;this[_0x2afef2(0x1d0)][_0x2afef2(0x1f7)][_0x2afef2(0x1bf)](0x0)?.[_0x2afef2(0x201)](),this[_0x2afef2(0x1d0)][_0x2afef2(0x1f7)][_0x2afef2(0x1d6)]();const _0x77eed3=this[_0x2afef2(0x1b7)](this[_0x2afef2(0x1b8)],this[_0x2afef2(0x203)]);this[_0x2afef2(0x1d0)][_0x2afef2(0x1f7)][_0x2afef2(0x1f9)](_0x77eed3);}}