@ckeditor/ckeditor5-ai 47.3.0-alpha.0 → 47.3.0-alpha.2

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 (372) hide show
  1. package/build/ai.js +1 -1
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/bg.js +1 -1
  4. package/build/translations/bn.js +1 -1
  5. package/build/translations/ca.js +1 -1
  6. package/build/translations/cs.js +1 -1
  7. package/build/translations/da.js +1 -1
  8. package/build/translations/de.js +1 -1
  9. package/build/translations/el.js +1 -1
  10. package/build/translations/es.js +1 -1
  11. package/build/translations/et.js +1 -1
  12. package/build/translations/fi.js +1 -1
  13. package/build/translations/fr.js +1 -1
  14. package/build/translations/he.js +1 -1
  15. package/build/translations/hi.js +1 -1
  16. package/build/translations/hu.js +1 -1
  17. package/build/translations/id.js +1 -1
  18. package/build/translations/it.js +1 -1
  19. package/build/translations/ja.js +1 -1
  20. package/build/translations/ko.js +1 -1
  21. package/build/translations/lt.js +1 -1
  22. package/build/translations/lv.js +1 -1
  23. package/build/translations/ms.js +1 -1
  24. package/build/translations/nl.js +1 -1
  25. package/build/translations/no.js +1 -1
  26. package/build/translations/pl.js +1 -1
  27. package/build/translations/pt-br.js +1 -1
  28. package/build/translations/pt.js +1 -1
  29. package/build/translations/ro.js +1 -1
  30. package/build/translations/ru.js +1 -1
  31. package/build/translations/sk.js +1 -1
  32. package/build/translations/sr.js +1 -1
  33. package/build/translations/sv.js +1 -1
  34. package/build/translations/th.js +1 -1
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/uk.js +1 -1
  37. package/build/translations/vi.js +1 -1
  38. package/build/translations/zh-cn.js +1 -1
  39. package/build/translations/zh.js +1 -1
  40. package/dist/index-editor.css +0 -4
  41. package/dist/index.css +0 -4
  42. package/dist/index.js +5 -5
  43. package/dist/translations/af.js +1 -1
  44. package/dist/translations/af.umd.js +1 -1
  45. package/dist/translations/ar.js +1 -1
  46. package/dist/translations/ar.umd.js +1 -1
  47. package/dist/translations/ast.js +1 -1
  48. package/dist/translations/ast.umd.js +1 -1
  49. package/dist/translations/az.js +1 -1
  50. package/dist/translations/az.umd.js +1 -1
  51. package/dist/translations/be.js +1 -1
  52. package/dist/translations/be.umd.js +1 -1
  53. package/dist/translations/bg.js +1 -1
  54. package/dist/translations/bg.umd.js +1 -1
  55. package/dist/translations/bn.js +1 -1
  56. package/dist/translations/bn.umd.js +1 -1
  57. package/dist/translations/bs.js +1 -1
  58. package/dist/translations/bs.umd.js +1 -1
  59. package/dist/translations/ca.js +1 -1
  60. package/dist/translations/ca.umd.js +1 -1
  61. package/dist/translations/cs.js +1 -1
  62. package/dist/translations/cs.umd.js +1 -1
  63. package/dist/translations/da.js +1 -1
  64. package/dist/translations/da.umd.js +1 -1
  65. package/dist/translations/de-ch.js +1 -1
  66. package/dist/translations/de-ch.umd.js +1 -1
  67. package/dist/translations/de.js +1 -1
  68. package/dist/translations/de.umd.js +1 -1
  69. package/dist/translations/el.js +1 -1
  70. package/dist/translations/el.umd.js +1 -1
  71. package/dist/translations/en-au.js +1 -1
  72. package/dist/translations/en-au.umd.js +1 -1
  73. package/dist/translations/en-gb.js +1 -1
  74. package/dist/translations/en-gb.umd.js +1 -1
  75. package/dist/translations/en.js +1 -1
  76. package/dist/translations/en.umd.js +1 -1
  77. package/dist/translations/eo.js +1 -1
  78. package/dist/translations/eo.umd.js +1 -1
  79. package/dist/translations/es-co.js +1 -1
  80. package/dist/translations/es-co.umd.js +1 -1
  81. package/dist/translations/es.js +1 -1
  82. package/dist/translations/es.umd.js +1 -1
  83. package/dist/translations/et.js +1 -1
  84. package/dist/translations/et.umd.js +1 -1
  85. package/dist/translations/eu.js +1 -1
  86. package/dist/translations/eu.umd.js +1 -1
  87. package/dist/translations/fa.js +1 -1
  88. package/dist/translations/fa.umd.js +1 -1
  89. package/dist/translations/fi.js +1 -1
  90. package/dist/translations/fi.umd.js +1 -1
  91. package/dist/translations/fr.js +1 -1
  92. package/dist/translations/fr.umd.js +1 -1
  93. package/dist/translations/gl.js +1 -1
  94. package/dist/translations/gl.umd.js +1 -1
  95. package/dist/translations/gu.js +1 -1
  96. package/dist/translations/gu.umd.js +1 -1
  97. package/dist/translations/he.js +1 -1
  98. package/dist/translations/he.umd.js +1 -1
  99. package/dist/translations/hi.js +1 -1
  100. package/dist/translations/hi.umd.js +1 -1
  101. package/dist/translations/hr.js +1 -1
  102. package/dist/translations/hr.umd.js +1 -1
  103. package/dist/translations/hu.js +1 -1
  104. package/dist/translations/hu.umd.js +1 -1
  105. package/dist/translations/hy.js +1 -1
  106. package/dist/translations/hy.umd.js +1 -1
  107. package/dist/translations/id.js +1 -1
  108. package/dist/translations/id.umd.js +1 -1
  109. package/dist/translations/it.js +1 -1
  110. package/dist/translations/it.umd.js +1 -1
  111. package/dist/translations/ja.js +1 -1
  112. package/dist/translations/ja.umd.js +1 -1
  113. package/dist/translations/jv.js +1 -1
  114. package/dist/translations/jv.umd.js +1 -1
  115. package/dist/translations/kk.js +1 -1
  116. package/dist/translations/kk.umd.js +1 -1
  117. package/dist/translations/km.js +1 -1
  118. package/dist/translations/km.umd.js +1 -1
  119. package/dist/translations/kn.js +1 -1
  120. package/dist/translations/kn.umd.js +1 -1
  121. package/dist/translations/ko.js +1 -1
  122. package/dist/translations/ko.umd.js +1 -1
  123. package/dist/translations/ku.js +1 -1
  124. package/dist/translations/ku.umd.js +1 -1
  125. package/dist/translations/lt.js +1 -1
  126. package/dist/translations/lt.umd.js +1 -1
  127. package/dist/translations/lv.js +1 -1
  128. package/dist/translations/lv.umd.js +1 -1
  129. package/dist/translations/ms.js +1 -1
  130. package/dist/translations/ms.umd.js +1 -1
  131. package/dist/translations/nb.js +1 -1
  132. package/dist/translations/nb.umd.js +1 -1
  133. package/dist/translations/ne.js +1 -1
  134. package/dist/translations/ne.umd.js +1 -1
  135. package/dist/translations/nl.js +1 -1
  136. package/dist/translations/nl.umd.js +1 -1
  137. package/dist/translations/no.js +1 -1
  138. package/dist/translations/no.umd.js +1 -1
  139. package/dist/translations/oc.js +1 -1
  140. package/dist/translations/oc.umd.js +1 -1
  141. package/dist/translations/pl.js +1 -1
  142. package/dist/translations/pl.umd.js +1 -1
  143. package/dist/translations/pt-br.js +1 -1
  144. package/dist/translations/pt-br.umd.js +1 -1
  145. package/dist/translations/pt.js +1 -1
  146. package/dist/translations/pt.umd.js +1 -1
  147. package/dist/translations/ro.js +1 -1
  148. package/dist/translations/ro.umd.js +1 -1
  149. package/dist/translations/ru.js +1 -1
  150. package/dist/translations/ru.umd.js +1 -1
  151. package/dist/translations/si.js +1 -1
  152. package/dist/translations/si.umd.js +1 -1
  153. package/dist/translations/sk.js +1 -1
  154. package/dist/translations/sk.umd.js +1 -1
  155. package/dist/translations/sl.js +1 -1
  156. package/dist/translations/sl.umd.js +1 -1
  157. package/dist/translations/sq.js +1 -1
  158. package/dist/translations/sq.umd.js +1 -1
  159. package/dist/translations/sr-latn.js +1 -1
  160. package/dist/translations/sr-latn.umd.js +1 -1
  161. package/dist/translations/sr.js +1 -1
  162. package/dist/translations/sr.umd.js +1 -1
  163. package/dist/translations/sv.js +1 -1
  164. package/dist/translations/sv.umd.js +1 -1
  165. package/dist/translations/th.js +1 -1
  166. package/dist/translations/th.umd.js +1 -1
  167. package/dist/translations/ti.js +1 -1
  168. package/dist/translations/ti.umd.js +1 -1
  169. package/dist/translations/tk.js +1 -1
  170. package/dist/translations/tk.umd.js +1 -1
  171. package/dist/translations/tr.js +1 -1
  172. package/dist/translations/tr.umd.js +1 -1
  173. package/dist/translations/tt.js +1 -1
  174. package/dist/translations/tt.umd.js +1 -1
  175. package/dist/translations/ug.js +1 -1
  176. package/dist/translations/ug.umd.js +1 -1
  177. package/dist/translations/uk.js +1 -1
  178. package/dist/translations/uk.umd.js +1 -1
  179. package/dist/translations/ur.js +1 -1
  180. package/dist/translations/ur.umd.js +1 -1
  181. package/dist/translations/uz.js +1 -1
  182. package/dist/translations/uz.umd.js +1 -1
  183. package/dist/translations/vi.js +1 -1
  184. package/dist/translations/vi.umd.js +1 -1
  185. package/dist/translations/zh-cn.js +1 -1
  186. package/dist/translations/zh-cn.umd.js +1 -1
  187. package/dist/translations/zh.js +1 -1
  188. package/dist/translations/zh.umd.js +1 -1
  189. package/lang/translations/ar.po +9 -9
  190. package/lang/translations/bg.po +9 -9
  191. package/lang/translations/bn.po +9 -9
  192. package/lang/translations/ca.po +9 -9
  193. package/lang/translations/cs.po +9 -9
  194. package/lang/translations/da.po +9 -9
  195. package/lang/translations/de.po +9 -9
  196. package/lang/translations/el.po +9 -9
  197. package/lang/translations/es.po +9 -9
  198. package/lang/translations/et.po +9 -9
  199. package/lang/translations/fi.po +9 -9
  200. package/lang/translations/fr.po +9 -9
  201. package/lang/translations/he.po +9 -9
  202. package/lang/translations/hi.po +9 -9
  203. package/lang/translations/hu.po +9 -9
  204. package/lang/translations/id.po +9 -9
  205. package/lang/translations/it.po +9 -9
  206. package/lang/translations/ja.po +9 -9
  207. package/lang/translations/ko.po +9 -9
  208. package/lang/translations/lt.po +9 -9
  209. package/lang/translations/lv.po +9 -9
  210. package/lang/translations/ms.po +9 -9
  211. package/lang/translations/nl.po +9 -9
  212. package/lang/translations/no.po +9 -9
  213. package/lang/translations/pl.po +9 -9
  214. package/lang/translations/pt-br.po +9 -9
  215. package/lang/translations/pt.po +9 -9
  216. package/lang/translations/ro.po +9 -9
  217. package/lang/translations/ru.po +9 -9
  218. package/lang/translations/sk.po +9 -9
  219. package/lang/translations/sr.po +9 -9
  220. package/lang/translations/sv.po +9 -9
  221. package/lang/translations/th.po +9 -9
  222. package/lang/translations/tr.po +9 -9
  223. package/lang/translations/uk.po +9 -9
  224. package/lang/translations/vi.po +9 -9
  225. package/lang/translations/zh-cn.po +9 -9
  226. package/lang/translations/zh.po +9 -9
  227. package/package.json +15 -15
  228. package/src/aiactions/aiactions.js +1 -1
  229. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  230. package/src/aiactions/model/aiactionsreply.js +1 -1
  231. package/src/aiassistant/adapters/aiadapter.js +1 -1
  232. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  233. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  234. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  235. package/src/aiassistant/aiassistant.js +1 -1
  236. package/src/aiassistant/aiassistantediting.js +1 -1
  237. package/src/aiassistant/aiassistantui.js +1 -1
  238. package/src/aiassistant/legacyerrors.js +1 -1
  239. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  240. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  241. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  242. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  243. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  244. package/src/aiassistant/ui/form/aiformview.js +1 -1
  245. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  246. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  247. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  248. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  249. package/src/aiassistant/utils/common-translations.js +1 -1
  250. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  251. package/src/aiballoon/aiballoon.js +1 -1
  252. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  253. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  254. package/src/aiballoon/ui/aiballoonview.js +1 -1
  255. package/src/aichat/aichat.js +1 -1
  256. package/src/aichat/aichatcontroller.js +1 -1
  257. package/src/aichat/aichatui.js +1 -1
  258. package/src/aichat/model/aichatcontext.js +1 -1
  259. package/src/aichat/model/aichatconversation.js +1 -1
  260. package/src/aichat/model/aichatinteraction.js +1 -1
  261. package/src/aichat/model/aichatmodels.js +1 -1
  262. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  263. package/src/aichat/ui/aichatfeedview.js +1 -1
  264. package/src/aichat/ui/aichatheaderview.js +1 -1
  265. package/src/aichat/ui/aichatview.js +1 -1
  266. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  267. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  268. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  269. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  270. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  271. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  272. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  273. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  274. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  275. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  276. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  277. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  278. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  279. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  280. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  281. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  282. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  283. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  284. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  285. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  286. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  287. package/src/aichat/utils/eventnames.js +1 -1
  288. package/src/aichat/utils/promisequeue.js +1 -1
  289. package/src/aichathistory/aichathistory.js +1 -1
  290. package/src/aichathistory/aichathistorycontroller.js +1 -1
  291. package/src/aichathistory/aichathistoryui.js +1 -1
  292. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  293. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  294. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  295. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  296. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  297. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  298. package/src/aicore/aiconnector.js +1 -1
  299. package/src/aicore/aiediting.js +1 -1
  300. package/src/aicore/model/aicapabilities.js +1 -1
  301. package/src/aicore/model/aicontext.js +1 -1
  302. package/src/aicore/model/aiinteraction.js +1 -1
  303. package/src/aicore/model/aimodels.js +1 -1
  304. package/src/aicore/model/aireply.js +1 -1
  305. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  306. package/src/aicore/pipeline/airesponseparser.js +2 -2
  307. package/src/aicore/ui/aidisclaimerview.js +1 -1
  308. package/src/aicore/ui/aiskeleton.js +1 -1
  309. package/src/aicore/ui/aispinner.js +1 -1
  310. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  311. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  312. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  313. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  314. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  315. package/src/aicore/utils/common-translations.js +1 -1
  316. package/src/aicore/utils/createresizebutton.js +1 -1
  317. package/src/aicore/utils/documentposition.js +1 -1
  318. package/src/aicore/utils/documentrange.js +1 -1
  319. package/src/aicore/utils/eventnames.js +1 -1
  320. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  321. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  322. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  323. package/src/aicore/utils/htmlparser.js +1 -1
  324. package/src/aicore/utils/htmlstreamer.js +1 -1
  325. package/src/aicore/utils/scrollmanager.js +1 -1
  326. package/src/aieditorintegration/aieditorintegration.js +1 -1
  327. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  328. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  329. package/src/aiquickactions/aiquickactions.js +1 -1
  330. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  331. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  332. package/src/aiquickactions/aiquickactionsui.js +1 -1
  333. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  334. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  335. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  336. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  337. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  338. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  339. package/src/aireviewmode/aireviewmode.js +1 -1
  340. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  341. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  342. package/src/aireviewmode/aireviewmodeui.js +1 -1
  343. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  344. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  345. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  346. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  347. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  348. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  349. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  350. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  351. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  352. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  353. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  354. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  355. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  356. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  357. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  358. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  359. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  360. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  361. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  362. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  363. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  364. package/src/aitabs/aitabs.js +1 -1
  365. package/src/aitabs/aitabsmainview.js +1 -1
  366. package/src/aitabs/tabs/aitabsview.js +1 -1
  367. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  368. package/src/aitabs/tabs/tabpanelview.js +1 -1
  369. package/src/errors.js +1 -1
  370. package/src/errorsmap.js +1 -1
  371. package/src/index.js +1 -1
  372. package/theme/aiquickactions/aiquickactions.css +0 -4
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x24b0f1=_0xe913;(function(_0x51c5ff,_0xf0ba45){const _0x247018=_0xe913,_0x5ac5ce=_0x51c5ff();while(!![]){try{const _0x34e46e=-parseInt(_0x247018(0xe8))/0x1*(-parseInt(_0x247018(0x187))/0x2)+parseInt(_0x247018(0xba))/0x3+-parseInt(_0x247018(0xdb))/0x4*(-parseInt(_0x247018(0x119))/0x5)+-parseInt(_0x247018(0x153))/0x6+parseInt(_0x247018(0x18c))/0x7*(-parseInt(_0x247018(0xf0))/0x8)+parseInt(_0x247018(0x16d))/0x9+parseInt(_0x247018(0x11f))/0xa*(-parseInt(_0x247018(0x101))/0xb);if(_0x34e46e===_0xf0ba45)break;else _0x5ac5ce['push'](_0x5ac5ce['shift']());}catch(_0x5cce7a){_0x5ac5ce['push'](_0x5ac5ce['shift']());}}}(_0x237b,0xc173c));import{Plugin as _0x2108b3}from'ckeditor5/src/core.js';import{AIConnector as _0x59ee33}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x2a84e1}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x19d674,ButtonView as _0x3fe558,ViewCollection as _0x196063,View as _0x24acc4}from'ckeditor5/src/ui.js';import{AIEditing as _0x4f41de}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x10fd41}from'./model/aiactionsinteraction.js';function _0x237b(){const _0x5bb461=['executeAction','setErrorState','_navigationNextButton','applySuggestion','static','_interaction','1064742VXWRLE','ai-request-aborted','isDocumentOperation','model','stopAutoScroll','toggleSuggestionDisplayMode','clone','stop','has','getSelectedContent','remove','_isNavigationPreviousButtonInView','_wrapWithCommonAncestors','areChangesVisible','clearLoading','pluginName','accepted','bodyView','addOperation','streaming','hideLoader','interactionFinished','getAncestors','Error\x20refreshing\x20interaction:','selectionRemoved','_setErrorState','actionName','get','Attribute','version','includes','listenTo','getDocumentContext','68awvnGa','updateContent','setChangeGroupState','TrackChanges','_isNavigationNextButtonInView','isOfficialPlugin','Error\x20updating\x20content\x20during\x20navigation:','processor','TableSelection','modelToViewWithIds','_applyOperationsAsSuggestions','rootName','toolbar','4CVzxol','change','_navigateToPrevious','_createInteraction','catch','TrackChangesEditing','clearErrorState','isLoading','8FmjoQk','push','merge','editor','getLimitElement','stopListening','_interactions','mainView','balloonView','start','_customViews','setSelection','addNavigationItem','changeGroups','Error\x20updating\x20content\x20in\x20replyContentUpdated:','_filterOperationsOutsideRange','operationsA','11piDwkZ','message','textContent','_navigationPreviousButton','getSelectedBlocks','ck-ai-interaction-counter','nodeAfter','stopInteraction','_execute','howMany','_aiConnector','icon','selection','createPositionAfter','getFirstRange','AIBalloon','batch','_disableCustomViews','queueEmptyPromise','createPositionBefore','AIActions','sourcePosition','documentContextContent','_clearLoadingState','133345LBMLQQ','_interactionParams','random','getChild','indexOf','insertSuggestion','10923970CbsZHY','bind','isPremiumPlugin','_setupCustomViews','span','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','dialogClosed','ai-no-track-changes','stickiness','_children','parent','root','_displayInteractionAtIndex','setLoading','hasPendingParts','replies','_clearInteractionHistory','close','getSelectionAsFragment','showChangesButton','range','insert','position','AI_ACTIONS_GENERIC_ERROR','getChildAtOffset','_clone','execute','applyOperation','_navigateToNext','path','replyChangeGroupStateUpdated','createRange','_stopInteraction','upsertAIActionRating','enqueue','getCommonAncestor','nextSibling','AI_ACTIONS_NEXT_INTERACTION','startsWith','setTemplate','_clearSuggestionContent','toData','add','_isAbortError','type','startAutoScroll','_appendChild','rename','_currentInteractionIndex','_getExecuteDataInTable','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','hideError','232746yodltx','pending','upsertCustomAIActionRating','showError','getRoot','getSelectedTableCells','abort','documentFragment','_applyChanges','schema','rejected','forEach','reinsert','plugins','$graveyard','_updateNavigationUI','open','_executeAction','aiBalloon','createPositionAt','_clearErrorState','slice','move','getOperations','requires','getRanges','11882178aNZLkH','actionCallId','map','end','focus','element','_promiseQueue','_refreshInteraction','AI_ACTIONS_TRY_AGAIN','data','replyCreated','signal','ai.availableReplyActions','state','_getExecuteDataRegular','AI_ACTIONS_PREVIOUS_INTERACTION','filter','replyContentUpdated','locale','hasError','set','length','Error\x20updating\x20content\x20in\x20replyCreated:','removeNavigationItem','_setLoadingState','ck-ai-navigation-button\x20ck-ai-previous-button','162878DKNisP','split','history','_navigationCounter','document','3715019brezvB','first','AIConnector','error','_balloonShowDiff','showLoader','_anchorOperation','isEnabled','1/1','baseVersion','config','ck-ai-custom-action-button','isCollapsed','miniToolbarView','_isNavigationCounterInView','isBusy','ck-ai-navigation-button\x20ck-ai-next-button'];_0x237b=function(){return _0x5bb461;};return _0x237b();}import{CKEditorError as _0x5ab4f3,first as _0x37700b}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x53bc7c,IconRefresh as _0x374f46,IconNextArrow as _0x4c8ff4,IconPreviousArrow as _0x58c583,IconShowChangesOff as _0x449584}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x494c9c}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0xa1e71}from'../aichat/utils/promisequeue.js';function _0xe913(_0x55a22f,_0x2d3a02){const _0x237b97=_0x237b();return _0xe913=function(_0xe91331,_0xdbe108){_0xe91331=_0xe91331-0xaa;let _0x233ae7=_0x237b97[_0xe91331];return _0x233ae7;},_0xe913(_0x55a22f,_0x2d3a02);}import{getTranslation as _0x55c48a}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x2dcd28}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x8ba5bb}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x4e8746,getOperationsFromReply as _0x5a461d}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0xdc8e31,ModelRange as _0x382a96,ModelPosition as _0x4c1c9d,_DetachOperation as _0x5e2f41,transformOperationSets as _0x3af8c9}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x2d5e38}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x2108b3{static get[_0x24b0f1(0x16b)](){return[_0x59ee33,_0x19d674,_0x4f41de,_0x494c9c,_0x8ba5bb];}static get[_0x24b0f1(0xc9)](){const _0x330c45=_0x24b0f1;return _0x330c45(0x115);}static get[_0x24b0f1(0xe0)](){return!0x0;}static get[_0x24b0f1(0x121)](){return!0x0;}[_0x24b0f1(0x10b)];[_0x24b0f1(0xf6)]=[];[_0x24b0f1(0x14f)]=0x0;[_0x24b0f1(0x11a)];[_0x24b0f1(0x190)]=!0x1;[_0x24b0f1(0xfa)]=new _0x196063();[_0x24b0f1(0x104)];[_0x24b0f1(0x18a)];[_0x24b0f1(0xb1)]=!0x1;[_0x24b0f1(0xb6)];[_0x24b0f1(0xc5)]=!0x1;[_0x24b0f1(0xdf)]=!0x1;[_0x24b0f1(0x173)];get[_0x24b0f1(0xb9)](){const _0x204211=_0x24b0f1;return this[_0x204211(0xf6)][this[_0x204211(0xf6)][_0x204211(0x182)]-0x1];}constructor(_0x43e26a){const _0x5b8e6c=_0x24b0f1;super(_0x43e26a),this[_0x5b8e6c(0x10b)]=this[_0x5b8e6c(0xf3)][_0x5b8e6c(0x160)][_0x5b8e6c(0xd5)](_0x5b8e6c(0x18e)),this[_0x5b8e6c(0x181)](_0x5b8e6c(0xb2),!0x1),this[_0x5b8e6c(0x173)]=new _0xa1e71(),this[_0x5b8e6c(0x122)]();}[_0x24b0f1(0x108)](){const _0x9e2f2=_0x24b0f1;this[_0x9e2f2(0x13f)]();}async[_0x24b0f1(0xb4)](_0x20a4c7,_0x3cdffe,_0x4e9e1c){const _0x1ead2f=_0x24b0f1;if(this[_0x1ead2f(0xf3)][_0x1ead2f(0x160)][_0x1ead2f(0xc2)](_0x1ead2f(0xe3))){if(this[_0x1ead2f(0xf3)][_0x1ead2f(0x160)][_0x1ead2f(0xd5)](_0x1ead2f(0xe3))[_0x1ead2f(0x158)]()){const {modelFragment:_0x5a7cf8,anchorData:_0x16b6d7}=this[_0x1ead2f(0x150)]();return this[_0x1ead2f(0x164)](_0x20a4c7,_0x5a7cf8,_0x16b6d7,_0x3cdffe,_0x4e9e1c);}}const {modelFragment:_0xfe523f,anchorData:_0x49c5be}=this[_0x1ead2f(0x17b)]();return this[_0x1ead2f(0x164)](_0x20a4c7,_0xfe523f,_0x49c5be,_0x3cdffe,_0x4e9e1c);}[_0x24b0f1(0x17b)](){const _0xaf347f=_0x24b0f1,_0x207f69=this[_0xaf347f(0xf3)][_0xaf347f(0xbd)][_0xaf347f(0x18b)][_0xaf347f(0x10d)];if(_0x207f69[_0xaf347f(0xaf)]){const _0x459109=_0x37700b(_0x207f69[_0xaf347f(0x105)]())||this[_0xaf347f(0xf3)][_0xaf347f(0xbd)][_0xaf347f(0x15c)][_0xaf347f(0xf4)](_0x207f69);this[_0xaf347f(0xf3)][_0xaf347f(0xbd)][_0xaf347f(0xe9)](_0x54dfd9=>{const _0x1c41db=_0xaf347f;_0x54dfd9[_0x1c41db(0xfb)](_0x459109,'in');});}const _0x4cff07=_0x207f69[_0xaf347f(0x10f)](),_0x6843c9=this[_0xaf347f(0xc6)](this[_0xaf347f(0xf3)][_0xaf347f(0xbd)][_0xaf347f(0xc3)](_0x207f69),_0x4cff07[_0xaf347f(0xf9)],_0x4cff07[_0xaf347f(0x170)]),_0x7027f3=_0x207f69[_0xaf347f(0x10f)]()[_0xaf347f(0xf9)],_0x4f788c=new Map();let _0x1fcd52=_0x6843c9;for(let _0x3a431d=0x0;_0x3a431d<_0x7027f3[_0xaf347f(0x13c)][_0xaf347f(0x182)];_0x3a431d++)_0x4f788c[_0xaf347f(0x181)](_0x1fcd52,_0x7027f3[_0xaf347f(0x13c)][_0x3a431d]),_0x1fcd52=_0x1fcd52[_0xaf347f(0x11c)](0x0);return{'modelFragment':_0x6843c9,'anchorData':_0x4f788c};}[_0x24b0f1(0x150)](){const _0xc3d409=_0x24b0f1,_0x1df86e=this[_0xc3d409(0xf3)][_0xc3d409(0xbd)][_0xc3d409(0x18b)][_0xc3d409(0x10d)],_0x24e52f=this[_0xc3d409(0xf3)][_0xc3d409(0x160)][_0xc3d409(0xd5)](_0xc3d409(0xe3))[_0xc3d409(0x131)](),_0x19ee26=_0x1df86e[_0xc3d409(0x10f)]()[_0xc3d409(0xf9)][_0xc3d409(0x129)][_0xc3d409(0x129)],_0xfee8c4=this[_0xc3d409(0xc6)](_0x24e52f,this[_0xc3d409(0xf3)][_0xc3d409(0xbd)][_0xc3d409(0x114)](_0x19ee26),this[_0xc3d409(0xf3)][_0xc3d409(0xbd)][_0xc3d409(0x10e)](_0x19ee26)),_0x215f1d=_0x1df86e[_0xc3d409(0x10f)]()[_0xc3d409(0xf9)],_0x5024a0=new Map();let _0x3c3e51=_0xfee8c4;for(let _0x38f02c=0x0;_0x38f02c<_0x215f1d[_0xc3d409(0x13c)][_0xc3d409(0x182)];_0x38f02c++)if(_0x5024a0[_0xc3d409(0x181)](_0x3c3e51,_0x215f1d[_0xc3d409(0x13c)][_0x38f02c]),_0x38f02c<_0x215f1d[_0xc3d409(0x13c)][_0xc3d409(0x182)]-0x1)_0x3c3e51=_0x3c3e51[_0xc3d409(0x11c)](0x0);else{let _0xd90fee=_0x3c3e51[_0xc3d409(0x143)];for(;_0xd90fee;)_0x5024a0[_0xc3d409(0x181)](_0xd90fee,_0x215f1d[_0xc3d409(0x13c)][_0x38f02c]),_0xd90fee=_0xd90fee[_0xc3d409(0x143)];}return{'modelFragment':_0xfee8c4,'anchorData':_0x5024a0};}[_0x24b0f1(0x164)](_0x5720ba,_0x298598,_0x10a898,_0x114635,_0x19ec70){const _0x476a43=_0x24b0f1,_0x42b3c1=this[_0x476a43(0xf3)][_0x476a43(0x160)][_0x476a43(0xd5)](_0x4f41de),_0x4371d2=this[_0x476a43(0xf3)][_0x476a43(0x160)][_0x476a43(0xd5)](_0x494c9c),_0x319acd=this[_0x476a43(0xf3)][_0x476a43(0xbd)][_0x476a43(0x18b)][_0x476a43(0x10d)],_0x5906d0=_0x42b3c1[_0x476a43(0xe4)](_0x298598),_0x4d5c1d=this[_0x476a43(0xf3)][_0x476a43(0x176)][_0x476a43(0xe2)][_0x476a43(0x148)](_0x5906d0),_0x548257=this[_0x476a43(0xf3)][_0x476a43(0xbd)][_0x476a43(0x18b)][_0x476a43(0xd7)],_0x275195=[..._0x319acd[_0x476a43(0x16c)]()];let _0x1da99e=this[_0x476a43(0xf3)][_0x476a43(0xad)][_0x476a43(0xd5)](_0x476a43(0x179))||[..._0x2d5e38];this[_0x476a43(0xf3)][_0x476a43(0x160)][_0x476a43(0xc2)](_0x476a43(0xde))||(_0x1da99e=_0x1da99e[_0x476a43(0x17d)](_0x160607=>_0x476a43(0x11e)!=_0x160607));const _0xd5fcd7=new _0x2a84e1(this[_0x476a43(0xf3)][_0x476a43(0x17f)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x476a43(0x10c),'customView':this[_0x476a43(0xfa)]},'showUnchangedParts':!0x0,'availableActions':_0x1da99e});return _0x4371d2[_0x476a43(0x163)]({'index':0x3e8*Math[_0x476a43(0x11b)]()%0x3e8,'title':_0x114635,'icon':_0x19ec70||_0x53bc7c,'mainView':_0xd5fcd7,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x476a43(0xf3)][_0x476a43(0x160)][_0x476a43(0xc2)](_0x476a43(0xde)),'ranges':_0x275195}),this[_0x476a43(0x185)](_0xd5fcd7,_0x4371d2),this[_0x476a43(0xd9)](_0x4371d2,_0x476a43(0xb7),()=>{const _0x384316=_0x476a43;this[_0x384316(0x15b)](_0x298598,_0x10a898,!0x1);}),this[_0x476a43(0xd9)](_0x4371d2,_0x476a43(0x11e),()=>{const _0x161700=_0x476a43;this[_0x161700(0x15b)](_0x298598,_0x10a898,!0x0);}),this[_0x476a43(0xd9)](_0x4371d2,_0x476a43(0xd2),()=>{const _0x3967a8=_0x476a43;this[_0x3967a8(0x13f)](),this[_0x3967a8(0x112)]();}),this[_0x476a43(0xd9)](_0x4371d2,_0x476a43(0x125),()=>{const _0x2c821e=_0x476a43;if(this[_0x2c821e(0xb9)]&&this[_0x2c821e(0xb9)][_0x2c821e(0x12e)][_0x2c821e(0x182)]>0x0){const _0x514a1c=this[_0x2c821e(0xb9)][_0x2c821e(0x12e)][this[_0x2c821e(0xb9)][_0x2c821e(0x12e)][_0x2c821e(0x182)]-0x1],_0x4e3d15=_0x514a1c[_0x2c821e(0xfd)][0x0];_0x4e3d15&&_0x2c821e(0x154)===_0x4e3d15[_0x2c821e(0x17a)]&&_0x514a1c[_0x2c821e(0xdd)](0x0,_0x2c821e(0x15d));}this[_0x2c821e(0x13f)](),this[_0x2c821e(0x12f)](),this[_0x2c821e(0xf5)](_0x4371d2);}),this[_0x476a43(0xeb)](_0x4d5c1d,_0x548257,_0xd5fcd7,_0x4371d2,_0x5720ba);}[_0x24b0f1(0xc6)](_0x180058,_0x382d2b,_0x1dff9a){const _0x5d18b2=_0x24b0f1,_0x41abb0=this[_0x5d18b2(0xf3)][_0x5d18b2(0xbd)][_0x5d18b2(0x13e)](_0x382d2b,_0x1dff9a)[_0x5d18b2(0x142)](),_0x856c15=_0x41abb0['is'](_0x5d18b2(0x15a))?[]:_0x41abb0[_0x5d18b2(0xd0)]({'includeSelf':!0x0})[_0x5d18b2(0x168)](0x1);if(_0x856c15[_0x5d18b2(0x182)]){const _0x4477b6=_0x856c15[_0x5d18b2(0x16f)](_0x58168a=>_0x58168a[_0x5d18b2(0x138)](!0x1));for(let _0x201b74=0x1;_0x201b74<_0x4477b6[_0x5d18b2(0x182)];_0x201b74++)_0x4477b6[_0x201b74-0x1][_0x5d18b2(0x14d)](_0x4477b6[_0x201b74]);return _0x4477b6[_0x4477b6[_0x5d18b2(0x182)]-0x1][_0x5d18b2(0x14d)](_0x180058),new _0xdc8e31(_0x4477b6[0x0]);}return _0x180058;}async[_0x24b0f1(0xeb)](_0x24a26e,_0x4b1087,_0xc25110,_0x413cb2,_0x3eed27){const _0x708b02=_0x24b0f1,_0x1483a0=this[_0x708b02(0xf3)];this[_0x708b02(0x11a)]={'action':_0x3eed27,'content':_0x24a26e,'version':_0x4b1087,'mainView':_0xc25110,'aiBalloon':_0x413cb2};const _0xa748bd=new _0x10fd41({'connector':this[_0x708b02(0x10b)],'editor':_0x1483a0,'content':_0x24a26e,'version':_0x4b1087,..._0x3eed27});this[_0x708b02(0xf6)][_0x708b02(0xf1)](_0xa748bd),_0xc25110[_0x708b02(0x152)]();const _0x54967e=(_0x2a1fe5,_0xf89ded,_0x5b1b52=!0x1,_0xa392a2=_0x708b02(0xcd))=>this[_0x708b02(0x173)][_0x708b02(0x141)](async _0x5c5663=>{const _0x3cdaf3=_0x708b02;try{const _0x478ce9=_0x2dcd28({'editor':_0x1483a0,'changeGroups':_0x2a1fe5[_0x3cdaf3(0xfd)],'documentContextContent':_0x2a1fe5[_0x3cdaf3(0x117)],'showDiff':_0x5b1b52,'trimUnchanged':!0x1});await _0xf89ded[_0x3cdaf3(0xdc)]({'parts':_0x478ce9,'renderingStrategy':_0xa392a2,'abortSignal':_0x5c5663});}catch(_0x36b028){if(this[_0x3cdaf3(0x14a)](_0x36b028))return;throw _0x36b028;}});this[_0x708b02(0xb9)]['on'](_0x708b02(0x177),(_0xeb88b7,_0x33137d)=>{const _0x328912=_0x708b02;_0xc25110[_0x328912(0xce)](),_0x413cb2[_0x328912(0x14c)](),_0x54967e(_0x33137d,_0xc25110)[_0x328912(0xec)](_0x1bdee8=>{const _0x444013=_0x328912;this[_0x444013(0x14a)](_0x1bdee8)||(console[_0x444013(0x18f)](_0x444013(0x183),_0x1bdee8),this[_0x444013(0xd3)](_0xa748bd,_0xc25110));});}),this[_0x708b02(0xb9)]['on'](_0x708b02(0x17e),(_0x3ac153,_0x50c15d)=>{const _0x58f49e=_0x708b02;_0x54967e(_0x50c15d,_0xc25110)[_0x58f49e(0xec)](_0x2b6897=>{const _0x2be997=_0x58f49e;this[_0x2be997(0x14a)](_0x2b6897)||(console[_0x2be997(0x18f)](_0x2be997(0xfe),_0x2b6897),this[_0x2be997(0xd3)](_0xa748bd,_0xc25110));});}),this[_0x708b02(0xb9)]['on'](_0x708b02(0xcf),async()=>{const _0x54fd91=_0x708b02;try{await this[_0x54fd91(0x118)](_0xc25110,_0x413cb2),this[_0x54fd91(0x162)](),await this[_0x54fd91(0x173)][_0x54fd91(0x113)];}catch(_0x33dae7){this[_0x54fd91(0x14a)](_0x33dae7)||(console[_0x54fd91(0x18f)](_0x54fd91(0x124),_0x33dae7),this[_0x54fd91(0xd3)](_0xa748bd,_0xc25110));}finally{_0x413cb2[_0x54fd91(0xbe)]();}}),this[_0x708b02(0xd9)](_0xc25110,_0x708b02(0xbf),async(_0x572ac6,{showDiff:_0x211619})=>{const _0x2036b6=_0x708b02;try{this[_0x2036b6(0x190)]=_0x211619;const _0xb667d4=this[_0x2036b6(0xb9)][_0x2036b6(0x12e)][this[_0x2036b6(0xb9)][_0x2036b6(0x12e)][_0x2036b6(0x182)]-0x1];_0xb667d4&&await _0x54967e(_0xb667d4,_0xc25110,_0x211619,_0x2036b6(0xb8));}catch(_0x573cae){this[_0x2036b6(0x14a)](_0x573cae)||(console[_0x2036b6(0x18f)](_0x2036b6(0x151),_0x573cae),this[_0x2036b6(0xd3)](_0xa748bd,_0xc25110));}}),this[_0x708b02(0xb9)]['on'](_0x708b02(0x13d),(_0x22db26,{reply:_0x1f1c05})=>{const _0x5bae13=_0x708b02,_0x1b4b5f={'positiveCount':_0x1f1c05[_0x5bae13(0xfd)][_0x5bae13(0x17d)](_0x349913=>_0x5bae13(0xca)===_0x349913[_0x5bae13(0x17a)])[_0x5bae13(0x182)],'totalCount':_0x1f1c05[_0x5bae13(0xfd)][_0x5bae13(0x182)]},_0x4c71c8=this[_0x5bae13(0xb9)][_0x5bae13(0x16e)],_0x775d91=this[_0x5bae13(0xb9)][_0x5bae13(0xd4)];_0x775d91?this[_0x5bae13(0x10b)][_0x5bae13(0x140)](_0x775d91,_0x4c71c8,_0x1b4b5f):this[_0x5bae13(0x10b)][_0x5bae13(0x155)](_0x4c71c8,_0x1b4b5f);}),this[_0x708b02(0x185)](_0xc25110,_0x413cb2);try{const _0xe350b2=await this[_0x708b02(0xb9)][_0x708b02(0xf9)]();return this[_0x708b02(0x162)](),_0xe350b2;}catch(_0xeff0e3){if(this[_0x708b02(0x14a)](_0xeff0e3))return;_0xc25110[_0x708b02(0xce)](),this[_0x708b02(0xd3)](_0xa748bd,_0xc25110);}}[_0x24b0f1(0x15b)](_0x27c7bd,_0x133287,_0x595bea){const _0x43747c=_0x24b0f1,_0x1091d3=this[_0x43747c(0xf3)];if(_0x595bea&&!_0x1091d3[_0x43747c(0x160)][_0x43747c(0xc2)](_0x43747c(0xde)))throw new _0x5ab4f3(_0x43747c(0x126),null);const _0x4ac047=this[_0x43747c(0xf3)][_0x43747c(0x160)][_0x43747c(0xd5)](_0x8ba5bb),_0x14cac6=this[_0x43747c(0xb9)],_0x3b156d=this[_0x43747c(0xb9)][_0x43747c(0x12e)][this[_0x43747c(0xb9)][_0x43747c(0x12e)][_0x43747c(0x182)]-0x1],_0x30af1b=_0x3b156d[_0x43747c(0xfd)];_0x3b156d[_0x43747c(0xdd)](0x0,_0x43747c(0xca));let _0x40f17a=_0x5a461d({'editor':_0x1091d3,'reply':_0x3b156d,'interaction':_0x14cac6,'groups':_0x30af1b,'transform':!0x1,'documentCompare':_0x4ac047,'documentCompareOptions':{'anchor':_0x1091d3[_0x43747c(0xbd)][_0x43747c(0x166)](_0x27c7bd,0x0),'markDeletions':_0x595bea}});_0x40f17a=this[_0x43747c(0xff)](_0x40f17a,_0x133287);for(const _0x41b663 of _0x40f17a)this[_0x43747c(0x192)](_0x133287,_0x41b663,_0x1091d3[_0x43747c(0xbd)][_0x43747c(0x18b)][_0x43747c(0x157)]());const _0x4d2adc=_0x14cac6[_0x43747c(0xda)]()[_0x43747c(0xd7)],_0x12239f=_0x1091d3[_0x43747c(0xbd)][_0x43747c(0x18b)][_0x43747c(0x189)][_0x43747c(0x16a)](_0x4d2adc),_0x3ff74b={'document':_0x1091d3[_0x43747c(0xbd)][_0x43747c(0x18b)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x3d4c00=_0x3af8c9(_0x40f17a,_0x12239f,_0x3ff74b)[_0x43747c(0x100)];_0x1091d3[_0x43747c(0xbd)][_0x43747c(0xe9)](_0x5f4089=>{const _0x4d98f6=_0x43747c;if(_0x5f4089[_0x4d98f6(0xfb)](_0x1091d3[_0x4d98f6(0xbd)][_0x4d98f6(0x18b)][_0x4d98f6(0x10d)][_0x4d98f6(0x171)]),_0x595bea)_0x1091d3[_0x4d98f6(0x160)][_0x4d98f6(0xd5)](_0x4d98f6(0xed))[_0x4d98f6(0xe5)](_0x3d4c00);else{for(const _0x1b1665 of _0x3d4c00)_0x1b1665[_0x4d98f6(0xac)]=_0x1091d3[_0x4d98f6(0xbd)][_0x4d98f6(0x18b)][_0x4d98f6(0xd7)],_0x4e8746(_0x1091d3,_0x1b1665),_0x5f4089[_0x4d98f6(0x111)][_0x4d98f6(0xcc)](_0x1b1665),_0x1091d3[_0x4d98f6(0xbd)][_0x4d98f6(0x13a)](_0x1b1665);}}),this[_0x43747c(0xf3)][_0x43747c(0x160)][_0x43747c(0xd5)](_0x43747c(0x110))[_0x43747c(0x130)]();}[_0x24b0f1(0xff)](_0x3186bc,_0x5eb97a){const _0x46428a=_0x24b0f1;return _0x3186bc[_0x46428a(0x17d)](_0x246f43=>{const _0x128d87=_0x46428a;if(_0x128d87(0x14e)==_0x246f43[_0x128d87(0x14b)]){const _0x2d15b1=_0x246f43[_0x128d87(0x135)][_0x128d87(0x107)];return!_0x5eb97a[_0x128d87(0xc2)](_0x2d15b1);}if(_0x246f43[_0x128d87(0x14b)][_0x128d87(0x11d)](_0x128d87(0xd6))>-0x1){const _0x3ef77e=_0x246f43[_0x128d87(0x133)][_0x128d87(0xf9)][_0x128d87(0x107)];return!_0x5eb97a[_0x128d87(0xc2)](_0x3ef77e);}return!0x0;});}[_0x24b0f1(0x192)](_0x25a19d,_0x12d2cb,_0x86675a){const _0x299034=_0x24b0f1,_0x5e3713=_0x12d2cb[_0x299034(0xc0)]();for(const _0x2dbfe3 in _0x12d2cb){const _0x1d4509=_0x12d2cb[_0x2dbfe3];_0x1d4509 instanceof _0x382a96?_0x12d2cb[_0x2dbfe3]=new _0x382a96(_0x4623aa(_0x1d4509[_0x299034(0xf9)]),_0x4623aa(_0x1d4509[_0x299034(0x170)])):_0x1d4509 instanceof _0x4c1c9d&&(_0x12d2cb[_0x2dbfe3]=_0x4623aa(_0x1d4509));}if([_0x299034(0x134),_0x299034(0x169),_0x299034(0xc4),_0x299034(0x15f),_0x299034(0x188),_0x299034(0xf2)][_0x299034(0xd8)](_0x5e3713[_0x299034(0x14b)])){if(_0x5e3713[_0x299034(0xbc)]=!0x1,_0x5e3713[_0x299034(0xac)]=null,_0x299034(0xc4)==_0x5e3713[_0x299034(0x14b)]){const _0xd1dc5b=_0x5e3713[_0x299034(0x116)],_0x1513e2=_0x5e3713[_0x299034(0x10a)];new _0x5e2f41(_0xd1dc5b,_0x1513e2)[_0x299034(0x109)]();}else _0x5e3713[_0x299034(0x109)]();}function _0x4623aa(_0x5742be){const _0xd3fa42=_0x299034;if(_0xd3fa42(0x161)==_0x5742be[_0xd3fa42(0x12a)][_0xd3fa42(0xe6)])return _0x5742be;const _0x5f2cbb=[];let _0x41b78d=_0x5742be[_0xd3fa42(0x12a)];for(let _0x5ba6fb=0x0;_0x5ba6fb<_0x5742be[_0xd3fa42(0x13c)][_0xd3fa42(0x182)];_0x5ba6fb++){const _0x5094af=_0x25a19d[_0xd3fa42(0xd5)](_0x41b78d)||0x0;_0x5f2cbb[_0x5ba6fb]=_0x5742be[_0xd3fa42(0x13c)][_0x5ba6fb]+_0x5094af,_0x41b78d=_0x41b78d[_0xd3fa42(0x137)](_0x5742be[_0xd3fa42(0x13c)][_0x5ba6fb]);}return new _0x4c1c9d(_0x86675a,_0x5f2cbb,_0x5742be[_0xd3fa42(0x127)]);}}[_0x24b0f1(0x174)](){const _0xd93e9f=_0x24b0f1;if(!this[_0xd93e9f(0x11a)])return;this[_0xd93e9f(0xf6)][_0xd93e9f(0x182)]>0x0&&this[_0xd93e9f(0x13f)](),this[_0xd93e9f(0x14f)]=0x0,this[_0xd93e9f(0x190)]=!0x1;const {action:_0x1fb437,content:_0x271b80,version:_0x4eb9e3,mainView:_0x14dc51,aiBalloon:_0x2cb149}=this[_0xd93e9f(0x11a)];_0x14dc51[_0xd93e9f(0xc7)]=!0x1,_0x14dc51[_0xd93e9f(0x152)](),this[_0xd93e9f(0x167)](_0x14dc51,_0x2cb149);const _0x2f3870=_0x14dc51;_0x2f3870[_0xd93e9f(0xb0)]&&_0x2f3870[_0xd93e9f(0xb0)][_0xd93e9f(0x132)]&&_0x2f3870[_0xd93e9f(0xb0)][_0xd93e9f(0x132)][_0xd93e9f(0x181)]({'isOn':!0x1,'icon':_0x449584}),this[_0xd93e9f(0x147)](_0x14dc51),_0x14dc51[_0xd93e9f(0x191)](),this[_0xd93e9f(0x162)](),this[_0xd93e9f(0xf5)](_0x14dc51),this[_0xd93e9f(0xeb)](_0x271b80,_0x4eb9e3,_0x14dc51,_0x2cb149,_0x1fb437)[_0xd93e9f(0xec)](_0x525c62=>{const _0x2e2e6a=_0xd93e9f;this[_0x2e2e6a(0x14a)](_0x525c62)||console[_0x2e2e6a(0x18f)](_0x2e2e6a(0xd1),_0x525c62);});}[_0x24b0f1(0x147)](_0x2c6827){const _0x26350a=_0x24b0f1,_0x5bf867=_0x2c6827[_0x26350a(0xcb)][_0x26350a(0x128)];for(;_0x5bf867[_0x26350a(0x182)]>0x0;)_0x5bf867[_0x26350a(0xc4)](_0x5bf867[_0x26350a(0x18d)]);_0x2c6827[_0x26350a(0xcb)][_0x26350a(0x12d)]=!0x1;}[_0x24b0f1(0x14a)](_0x5db627){const _0x98383=_0x24b0f1;return!!_0x5db627[_0x98383(0x102)]&&_0x5db627[_0x98383(0x102)][_0x98383(0x145)](_0x98383(0xbb));}[_0x24b0f1(0x12f)](){const _0x258001=_0x24b0f1;this[_0x258001(0xf6)]=[],this[_0x258001(0x11a)]=void 0x0,this[_0x258001(0x14f)]=0x0,this[_0x258001(0x162)]();}[_0x24b0f1(0x13f)](){const _0x39dde3=_0x24b0f1;this[_0x39dde3(0xb9)]&&this[_0x39dde3(0xb9)][_0x39dde3(0xc1)](),this[_0x39dde3(0x173)][_0x39dde3(0x159)](),this[_0x39dde3(0xb2)]=!0x1,this[_0x39dde3(0x11a)]&&this[_0x39dde3(0x11a)][_0x39dde3(0x165)][_0x39dde3(0xbe)]();}[_0x24b0f1(0x122)](){const _0x14ed58=_0x24b0f1,_0x19f32c=new _0x3fe558(this[_0x14ed58(0xf3)][_0x14ed58(0x17f)]),_0x20dc3e=new _0x3fe558(this[_0x14ed58(0xf3)][_0x14ed58(0x17f)]),_0x3cdbf2=new _0x24acc4(this[_0x14ed58(0xf3)][_0x14ed58(0x17f)]),_0x290921=new _0x3fe558(this[_0x14ed58(0xf3)][_0x14ed58(0x17f)]);_0x19f32c[_0x14ed58(0x181)]({'icon':_0x374f46,'label':_0x55c48a(this[_0x14ed58(0xf3)][_0x14ed58(0x17f)],_0x14ed58(0x175)),'tooltip':!0x0,'class':_0x14ed58(0xae)}),_0x20dc3e[_0x14ed58(0x181)]({'icon':_0x58c583,'tooltip':_0x55c48a(this[_0x14ed58(0xf3)][_0x14ed58(0x17f)],_0x14ed58(0x17c)),'class':_0x14ed58(0x186)}),_0x3cdbf2[_0x14ed58(0x146)]({'tag':_0x14ed58(0x123),'attributes':{'class':[_0x14ed58(0x106)]},'children':[_0x14ed58(0xab)]}),_0x290921[_0x14ed58(0x181)]({'icon':_0x4c8ff4,'tooltip':_0x55c48a(this[_0x14ed58(0xf3)][_0x14ed58(0x17f)],_0x14ed58(0x144)),'class':_0x14ed58(0xb3)}),_0x19f32c[_0x14ed58(0x120)](_0x14ed58(0xaa))['to'](this,_0x14ed58(0xb2),_0x447f49=>!_0x447f49),_0x19f32c['on'](_0x14ed58(0x139),()=>{const _0xbdb0c0=_0x14ed58;this[_0xbdb0c0(0x174)]();}),_0x20dc3e[_0x14ed58(0x120)](_0x14ed58(0xaa))['to'](this,_0x14ed58(0xb2),_0x1c0ffe=>!_0x1c0ffe),_0x20dc3e['on'](_0x14ed58(0x139),()=>{const _0x5701a4=_0x14ed58;this[_0x5701a4(0xea)]();}),_0x290921[_0x14ed58(0x120)](_0x14ed58(0xaa))['to'](this,_0x14ed58(0xb2),_0x293448=>!_0x293448),_0x290921['on'](_0x14ed58(0x139),()=>{const _0x44bef3=_0x14ed58;this[_0x44bef3(0x13b)]();}),this[_0x14ed58(0x104)]=_0x20dc3e,this[_0x14ed58(0x18a)]=_0x3cdbf2,this[_0x14ed58(0xb6)]=_0x290921,this[_0x14ed58(0xfa)][_0x14ed58(0x149)](_0x19f32c);}[_0x24b0f1(0xea)](){const _0xdfe6e6=_0x24b0f1,_0x596ae1=this[_0xdfe6e6(0xf6)][_0xdfe6e6(0x182)];this[_0xdfe6e6(0x14f)]<_0x596ae1-0x1&&this[_0xdfe6e6(0x12b)](this[_0xdfe6e6(0x14f)]+0x1);}[_0x24b0f1(0x13b)](){const _0x501448=_0x24b0f1;this[_0x501448(0x14f)]>0x0&&this[_0x501448(0x12b)](this[_0x501448(0x14f)]-0x1);}async[_0x24b0f1(0x12b)](_0x1440f5){const _0x351484=_0x24b0f1;if(!this[_0x351484(0x11a)])return;this[_0x351484(0x14f)]=_0x1440f5;const {mainView:_0x3fce09}=this[_0x351484(0x11a)],_0x25c84f=this[_0x351484(0xf6)][this[_0x351484(0xf6)][_0x351484(0x182)]-0x1-this[_0x351484(0x14f)]];if(!_0x25c84f)return;if(_0x25c84f[_0x351484(0x180)])return this[_0x351484(0xd3)](_0x25c84f,_0x3fce09),void this[_0x351484(0x162)]();if(!_0x25c84f[_0x351484(0x12e)][_0x351484(0x182)])return;_0x3fce09[_0x351484(0x152)](),this[_0x351484(0x11a)]&&this[_0x351484(0x167)](_0x3fce09,this[_0x351484(0x11a)][_0x351484(0x165)]);const _0x1f91da=_0x25c84f[_0x351484(0x12e)][_0x25c84f[_0x351484(0x12e)][_0x351484(0x182)]-0x1];if(_0x1f91da){const _0x3637be=this[_0x351484(0xf3)];this[_0x351484(0x147)](_0x3fce09);try{const _0x2f30a6=_0x2dcd28({'editor':_0x3637be,'changeGroups':_0x1f91da[_0x351484(0xfd)],'documentContextContent':_0x1f91da[_0x351484(0x117)],'showDiff':this[_0x351484(0x190)],'trimUnchanged':!0x1});this[_0x351484(0x147)](_0x3fce09),await new Promise(_0x43a6d3=>setTimeout(_0x43a6d3,0x32)),await _0x3fce09[_0x351484(0xdc)]({'parts':_0x2f30a6,'renderingStrategy':_0x351484(0xb8),'abortSignal':new AbortController()[_0x351484(0x178)]});}catch(_0x255d4d){this[_0x351484(0x14a)](_0x255d4d)||console[_0x351484(0x18f)](_0x351484(0xe1),_0x255d4d);}}this[_0x351484(0x162)]();}[_0x24b0f1(0x162)](){const _0x413ec6=_0x24b0f1;if(!this[_0x413ec6(0x104)]||!this[_0x413ec6(0x18a)]||!this[_0x413ec6(0xb6)])return;const _0x1ff6d7=this[_0x413ec6(0xf6)][_0x413ec6(0x182)],_0x391ce2=_0x1ff6d7>0x1,_0x29fe97=this[_0x413ec6(0x11a)]?.[_0x413ec6(0xf7)];if(_0x391ce2){this[_0x413ec6(0xc5)]||this[_0x413ec6(0xb1)]||this[_0x413ec6(0xdf)]||(this[_0x413ec6(0xfa)][_0x413ec6(0x149)](this[_0x413ec6(0x104)]),_0x29fe97?.[_0x413ec6(0xfc)](this[_0x413ec6(0x104)]),this[_0x413ec6(0xc5)]=!0x0,this[_0x413ec6(0xfa)][_0x413ec6(0x149)](this[_0x413ec6(0x18a)]),_0x29fe97?.[_0x413ec6(0xfc)](this[_0x413ec6(0x18a)]),this[_0x413ec6(0xb1)]=!0x0,this[_0x413ec6(0xfa)][_0x413ec6(0x149)](this[_0x413ec6(0xb6)]),_0x29fe97?.[_0x413ec6(0xfc)](this[_0x413ec6(0xb6)]),this[_0x413ec6(0xdf)]=!0x0);const _0x20f842=_0x1ff6d7-this[_0x413ec6(0x14f)];this[_0x413ec6(0x18a)][_0x413ec6(0x172)]&&(this[_0x413ec6(0x18a)][_0x413ec6(0x172)][_0x413ec6(0x103)]=_0x20f842+'/'+_0x1ff6d7),this[_0x413ec6(0x104)][_0x413ec6(0xaa)]=this[_0x413ec6(0x14f)]<_0x1ff6d7-0x1,this[_0x413ec6(0xb6)][_0x413ec6(0xaa)]=this[_0x413ec6(0x14f)]>0x0;}else(this[_0x413ec6(0xc5)]||this[_0x413ec6(0xb1)]||this[_0x413ec6(0xdf)])&&(this[_0x413ec6(0xfa)][_0x413ec6(0xc4)](this[_0x413ec6(0x104)]),_0x29fe97?.[_0x413ec6(0x184)](this[_0x413ec6(0x104)]),this[_0x413ec6(0xc5)]=!0x1,this[_0x413ec6(0xfa)][_0x413ec6(0xc4)](this[_0x413ec6(0x18a)]),_0x29fe97?.[_0x413ec6(0x184)](this[_0x413ec6(0x18a)]),this[_0x413ec6(0xb1)]=!0x1,this[_0x413ec6(0xfa)][_0x413ec6(0xc4)](this[_0x413ec6(0xb6)]),_0x29fe97?.[_0x413ec6(0x184)](this[_0x413ec6(0xb6)]),this[_0x413ec6(0xdf)]=!0x1);}[_0x24b0f1(0x185)](_0x4d1d0e,_0x535964){const _0x449b95=_0x24b0f1;_0x4d1d0e[_0x449b95(0x12c)](),_0x535964[_0x449b95(0xf8)][_0x449b95(0x12c)](),this[_0x449b95(0xb2)]=!0x0;}async[_0x24b0f1(0xd3)](_0x2b6f0c,_0x53405a){const _0x2c7fa3=_0x24b0f1,_0x2a859b=_0x55c48a(this[_0x2c7fa3(0xf3)][_0x2c7fa3(0x17f)],_0x2c7fa3(0x136));_0x53405a[_0x2c7fa3(0x156)](_0x2a859b),_0x2b6f0c[_0x2c7fa3(0x180)]=!0x0,await this[_0x2c7fa3(0x173)][_0x2c7fa3(0x113)],_0x53405a[_0x2c7fa3(0xb5)](),this[_0x2c7fa3(0x11a)]?.[_0x2c7fa3(0x165)][_0x2c7fa3(0xf8)][_0x2c7fa3(0xe7)]&&(this[_0x2c7fa3(0x11a)][_0x2c7fa3(0x165)][_0x2c7fa3(0xf8)][_0x2c7fa3(0xe7)][_0x2c7fa3(0xef)]=!0x0);}[_0x24b0f1(0x167)](_0x318be0,_0x526557){const _0x4191ab=_0x24b0f1;_0x318be0[_0x4191ab(0xee)](),_0x526557[_0x4191ab(0xf8)][_0x4191ab(0xe7)]&&(_0x526557[_0x4191ab(0xf8)][_0x4191ab(0xe7)][_0x4191ab(0xef)]=!0x1);}async[_0x24b0f1(0x118)](_0xd54f8,_0x1623c9){const _0x59dfbd=_0x24b0f1;await this[_0x59dfbd(0x173)][_0x59dfbd(0x113)],this[_0x59dfbd(0xb2)]=!0x1,_0xd54f8[_0x59dfbd(0xc8)](),_0x1623c9[_0x59dfbd(0xf8)][_0x59dfbd(0xc8)]();}[_0x24b0f1(0x112)](){const _0x2bf084=_0x24b0f1;this[_0x2bf084(0xfa)][_0x2bf084(0x15e)](_0x22c9d3=>{const _0x53714b=_0x2bf084;_0x53714b(0xaa)in _0x22c9d3&&(_0x22c9d3[_0x53714b(0xaa)]=!0x1);});}}
23
+ const _0x5a850e=_0x56b0;(function(_0x4a20bc,_0x308cb8){const _0x232b9f=_0x56b0,_0xdcc6e6=_0x4a20bc();while(!![]){try{const _0x55e091=-parseInt(_0x232b9f(0x120))/0x1*(parseInt(_0x232b9f(0x189))/0x2)+-parseInt(_0x232b9f(0x152))/0x3*(-parseInt(_0x232b9f(0xe2))/0x4)+parseInt(_0x232b9f(0x118))/0x5+-parseInt(_0x232b9f(0x16e))/0x6+-parseInt(_0x232b9f(0x110))/0x7+-parseInt(_0x232b9f(0x1a9))/0x8+parseInt(_0x232b9f(0x190))/0x9;if(_0x55e091===_0x308cb8)break;else _0xdcc6e6['push'](_0xdcc6e6['shift']());}catch(_0x3ef4e0){_0xdcc6e6['push'](_0xdcc6e6['shift']());}}}(_0x160d,0x8eba4));import{Plugin as _0x3f7b95}from'ckeditor5/src/core.js';import{AIConnector as _0xe4f452}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x25a291}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x4d9a26,ButtonView as _0x4267bd,ViewCollection as _0x4ac363,View as _0x3b5cef}from'ckeditor5/src/ui.js';import{AIEditing as _0x3f2b21}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x3b4ac0}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x34b5e8,first as _0x898071}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x2dd4bb,IconRefresh as _0x4ecf33,IconNextArrow as _0x39e62d,IconPreviousArrow as _0x51ea6e,IconShowChangesOff as _0x37f9d7}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x3ad490}from'../aiballoon/aiballoon.js';function _0x160d(){const _0x14c65e=['path','batch','addNavigationItem','enqueue','_clearLoadingState','getSelectedTableCells','locale','_clone','1/1','_interactionParams','balloonView','rejected','getDocumentContext','clearErrorState','interactionFinished','startAutoScroll','ck-ai-interaction-counter','TableSelection','catch','map','random','parent','setErrorState','getFirstRange','selectionRemoved','forEach','stopListening','619356IhpbIH','hasPendingParts','stopInteraction','nextSibling','getRoot','changeGroups','_getExecuteDataInTable','ai-request-aborted','processor','end','icon','includes','miniToolbarView','push','ai.availableReplyActions','_setupCustomViews','slice','_isNavigationCounterInView','upsertAIActionRating','range','isBusy','abort','upsertCustomAIActionRating','focus','_createInteraction','_applyOperationsAsSuggestions','execute','2WGTlMZ','schema','documentFragment','stop','merge','Attribute','hideLoader','7960005AxBWUc','_navigationPreviousButton','_wrapWithCommonAncestors','split','_isNavigationPreviousButtonInView','setTemplate','aiBalloon','Error\x20updating\x20content\x20during\x20navigation:','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','AIBalloon','length','_updateNavigationUI','bind','signal','pending','dialogClosed','_navigateToNext','_stopInteraction','insertSuggestion','root','applyOperation','streaming','_children','ck-ai-custom-action-button','isPremiumPlugin','8831576uyLtXi','ai-no-track-changes','reinsert','setChangeGroupState','insert','toggleSuggestionDisplayMode','isLoading','getCommonAncestor','clone','_interaction','getOperations','_promiseQueue','position','_clearSuggestionContent','AI_ACTIONS_GENERIC_ERROR','_setLoadingState','TrackChanges','_navigateToPrevious','_navigationNextButton','message','requires','move','accepted','_refreshInteraction','replyCreated','hasError','filter','AI_ACTIONS_PREVIOUS_INTERACTION','_appendChild','queueEmptyPromise','_execute','stickiness','4FNHwQX','static','_setErrorState','ck-ai-navigation-button\x20ck-ai-next-button','getSelectedBlocks','indexOf','model','showError','baseVersion','ck-ai-navigation-button\x20ck-ai-previous-button','_executeAction','toolbar','AIActions','operationsA','getRanges','getAncestors','replyContentUpdated','documentContextContent','AIConnector','executeAction','startsWith','Error\x20updating\x20content\x20in\x20replyCreated:','_applyChanges','_getExecuteDataRegular','rootName','nodeAfter','createRange','AI_ACTIONS_TRY_AGAIN','_filterOperationsOutsideRange','_clearErrorState','has','Error\x20updating\x20content\x20in\x20replyContentUpdated:','createPositionAfter','applySuggestion','AI_ACTIONS_NEXT_INTERACTION','stopAutoScroll','element','remove','start','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','getSelectedContent','first','history','createPositionAt','setSelection','toData','875287FnvcpN','get','_balloonShowDiff','areChangesVisible','type','isCollapsed','editor','rename','2940580PhbQOy','getSelectionAsFragment','setLoading','updateContent','removeNavigationItem','config','_disableCustomViews','_currentInteractionIndex','484558DNrhYV','_interactions','TrackChangesEditing','set','getChild','_anchorOperation','add','plugins','selection','actionCallId','_displayInteractionAtIndex','_clearInteractionHistory','change','error','textContent','clearLoading','sourcePosition','close','modelToViewWithIds','howMany','replies','bodyView','getLimitElement','hideError','_aiConnector','isOfficialPlugin','data','_navigationCounter','isEnabled','mainView','span','_isNavigationNextButtonInView','showChangesButton','pluginName','_isAbortError','Error\x20refreshing\x20interaction:','$graveyard','version','document','replyChangeGroupStateUpdated','open','showLoader','state','listenTo','actionName','addOperation','getChildAtOffset','_customViews','createPositionBefore','isDocumentOperation','2786469xyIasU'];_0x160d=function(){return _0x14c65e;};return _0x160d();}import{PromiseQueue as _0x2f433f}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x5d3387}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x4e9a87}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0xb98e36}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x1089b7,getOperationsFromReply as _0x351cdd}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x1f3265,ModelRange as _0x5f3940,ModelPosition as _0x5546d8,_DetachOperation as _0x71f6aa,transformOperationSets as _0x3abe54}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x44a478}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x56b0(_0x2847c7,_0x2e9120){const _0x160dac=_0x160d();return _0x56b0=function(_0x56b0c3,_0x3128fd){_0x56b0c3=_0x56b0c3-0xe0;let _0x34c944=_0x160dac[_0x56b0c3];return _0x34c944;},_0x56b0(_0x2847c7,_0x2e9120);}export class AIActions extends _0x3f7b95{static get[_0x5a850e(0x1bd)](){return[_0xe4f452,_0x4d9a26,_0x3f2b21,_0x3ad490,_0xb98e36];}static get[_0x5a850e(0x141)](){const _0x509193=_0x5a850e;return _0x509193(0xee);}static get[_0x5a850e(0x139)](){return!0x0;}static get[_0x5a850e(0x1a8)](){return!0x0;}[_0x5a850e(0x138)];[_0x5a850e(0x121)]=[];[_0x5a850e(0x11f)]=0x0;[_0x5a850e(0x15c)];[_0x5a850e(0x112)]=!0x1;[_0x5a850e(0x14f)]=new _0x4ac363();[_0x5a850e(0x191)];[_0x5a850e(0x13b)];[_0x5a850e(0x17f)]=!0x1;[_0x5a850e(0x1bb)];[_0x5a850e(0x194)]=!0x1;[_0x5a850e(0x13f)]=!0x1;[_0x5a850e(0x1b4)];get[_0x5a850e(0x1b2)](){const _0x1ba5f4=_0x5a850e;return this[_0x1ba5f4(0x121)][this[_0x1ba5f4(0x121)][_0x1ba5f4(0x19a)]-0x1];}constructor(_0x3d421b){const _0x2624a8=_0x5a850e;super(_0x3d421b),this[_0x2624a8(0x138)]=this[_0x2624a8(0x116)][_0x2624a8(0x127)][_0x2624a8(0x111)](_0x2624a8(0xf4)),this[_0x2624a8(0x123)](_0x2624a8(0x182),!0x1),this[_0x2624a8(0x1b4)]=new _0x2f433f(),this[_0x2624a8(0x17d)]();}[_0x5a850e(0x170)](){const _0xaf1f94=_0x5a850e;this[_0xaf1f94(0x1a1)]();}async[_0x5a850e(0xf5)](_0x50f2ca,_0x17d79a,_0x354895){const _0x412f9=_0x5a850e;if(this[_0x412f9(0x116)][_0x412f9(0x127)][_0x412f9(0x100)](_0x412f9(0x164))){if(this[_0x412f9(0x116)][_0x412f9(0x127)][_0x412f9(0x111)](_0x412f9(0x164))[_0x412f9(0x158)]()){const {modelFragment:_0x50208e,anchorData:_0x43f807}=this[_0x412f9(0x174)]();return this[_0x412f9(0xec)](_0x50f2ca,_0x50208e,_0x43f807,_0x17d79a,_0x354895);}}const {modelFragment:_0x5315c7,anchorData:_0x293388}=this[_0x412f9(0xf9)]();return this[_0x412f9(0xec)](_0x50f2ca,_0x5315c7,_0x293388,_0x17d79a,_0x354895);}[_0x5a850e(0xf9)](){const _0x243c05=_0x5a850e,_0x30f51d=this[_0x243c05(0x116)][_0x243c05(0xe8)][_0x243c05(0x146)][_0x243c05(0x128)];if(_0x30f51d[_0x243c05(0x115)]){const _0x4bf573=_0x898071(_0x30f51d[_0x243c05(0xe6)]())||this[_0x243c05(0x116)][_0x243c05(0xe8)][_0x243c05(0x18a)][_0x243c05(0x136)](_0x30f51d);this[_0x243c05(0x116)][_0x243c05(0xe8)][_0x243c05(0x12c)](_0x1481e7=>{const _0x5886c2=_0x243c05;_0x1481e7[_0x5886c2(0x10e)](_0x4bf573,'in');});}const _0x215320=_0x30f51d[_0x243c05(0x16a)](),_0x2db75f=this[_0x243c05(0x192)](this[_0x243c05(0x116)][_0x243c05(0xe8)][_0x243c05(0x10a)](_0x30f51d),_0x215320[_0x243c05(0x108)],_0x215320[_0x243c05(0x177)]),_0x1bc53e=_0x30f51d[_0x243c05(0x16a)]()[_0x243c05(0x108)],_0x34712c=new Map();let _0x167e28=_0x2db75f;for(let _0x3edd6d=0x0;_0x3edd6d<_0x1bc53e[_0x243c05(0x153)][_0x243c05(0x19a)];_0x3edd6d++)_0x34712c[_0x243c05(0x123)](_0x167e28,_0x1bc53e[_0x243c05(0x153)][_0x3edd6d]),_0x167e28=_0x167e28[_0x243c05(0x124)](0x0);return{'modelFragment':_0x2db75f,'anchorData':_0x34712c};}[_0x5a850e(0x174)](){const _0x1d6330=_0x5a850e,_0x2c3959=this[_0x1d6330(0x116)][_0x1d6330(0xe8)][_0x1d6330(0x146)][_0x1d6330(0x128)],_0x1388ea=this[_0x1d6330(0x116)][_0x1d6330(0x127)][_0x1d6330(0x111)](_0x1d6330(0x164))[_0x1d6330(0x119)](),_0x18caba=_0x2c3959[_0x1d6330(0x16a)]()[_0x1d6330(0x108)][_0x1d6330(0x168)][_0x1d6330(0x168)],_0xa65250=this[_0x1d6330(0x192)](_0x1388ea,this[_0x1d6330(0x116)][_0x1d6330(0xe8)][_0x1d6330(0x150)](_0x18caba),this[_0x1d6330(0x116)][_0x1d6330(0xe8)][_0x1d6330(0x102)](_0x18caba)),_0x46f80c=_0x2c3959[_0x1d6330(0x16a)]()[_0x1d6330(0x108)],_0x463b8a=new Map();let _0x566f9e=_0xa65250;for(let _0x2e7407=0x0;_0x2e7407<_0x46f80c[_0x1d6330(0x153)][_0x1d6330(0x19a)];_0x2e7407++)if(_0x463b8a[_0x1d6330(0x123)](_0x566f9e,_0x46f80c[_0x1d6330(0x153)][_0x2e7407]),_0x2e7407<_0x46f80c[_0x1d6330(0x153)][_0x1d6330(0x19a)]-0x1)_0x566f9e=_0x566f9e[_0x1d6330(0x124)](0x0);else{let _0x96f745=_0x566f9e[_0x1d6330(0x171)];for(;_0x96f745;)_0x463b8a[_0x1d6330(0x123)](_0x96f745,_0x46f80c[_0x1d6330(0x153)][_0x2e7407]),_0x96f745=_0x96f745[_0x1d6330(0x171)];}return{'modelFragment':_0xa65250,'anchorData':_0x463b8a};}[_0x5a850e(0xec)](_0x267546,_0x513f2e,_0x44b53f,_0x115f1c,_0x147bc7){const _0x4a0d60=_0x5a850e,_0x460342=this[_0x4a0d60(0x116)][_0x4a0d60(0x127)][_0x4a0d60(0x111)](_0x3f2b21),_0x5421d1=this[_0x4a0d60(0x116)][_0x4a0d60(0x127)][_0x4a0d60(0x111)](_0x3ad490),_0x2bfe17=this[_0x4a0d60(0x116)][_0x4a0d60(0xe8)][_0x4a0d60(0x146)][_0x4a0d60(0x128)],_0x1fb4c0=_0x460342[_0x4a0d60(0x132)](_0x513f2e),_0x375d03=this[_0x4a0d60(0x116)][_0x4a0d60(0x13a)][_0x4a0d60(0x176)][_0x4a0d60(0x10f)](_0x1fb4c0),_0x22d54f=this[_0x4a0d60(0x116)][_0x4a0d60(0xe8)][_0x4a0d60(0x146)][_0x4a0d60(0x145)],_0x44b19f=[..._0x2bfe17[_0x4a0d60(0xf0)]()];let _0x401189=this[_0x4a0d60(0x116)][_0x4a0d60(0x11d)][_0x4a0d60(0x111)](_0x4a0d60(0x17c))||[..._0x44a478];this[_0x4a0d60(0x116)][_0x4a0d60(0x127)][_0x4a0d60(0x100)](_0x4a0d60(0x1b9))||(_0x401189=_0x401189[_0x4a0d60(0x1c3)](_0x52c0df=>_0x4a0d60(0x1a2)!=_0x52c0df));const _0x21859f=new _0x25a291(this[_0x4a0d60(0x116)][_0x4a0d60(0x159)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x4a0d60(0x178),'customView':this[_0x4a0d60(0x14f)]},'showUnchangedParts':!0x0,'availableActions':_0x401189});return _0x5421d1[_0x4a0d60(0x148)]({'index':0x3e8*Math[_0x4a0d60(0x167)]()%0x3e8,'title':_0x115f1c,'icon':_0x147bc7||_0x2dd4bb,'mainView':_0x21859f,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x4a0d60(0x116)][_0x4a0d60(0x127)][_0x4a0d60(0x100)](_0x4a0d60(0x1b9)),'ranges':_0x44b19f}),this[_0x4a0d60(0x1b8)](_0x21859f,_0x5421d1),this[_0x4a0d60(0x14b)](_0x5421d1,_0x4a0d60(0x103),()=>{const _0x28e1b0=_0x4a0d60;this[_0x28e1b0(0xf8)](_0x513f2e,_0x44b53f,!0x1);}),this[_0x4a0d60(0x14b)](_0x5421d1,_0x4a0d60(0x1a2),()=>{const _0x16bd71=_0x4a0d60;this[_0x16bd71(0xf8)](_0x513f2e,_0x44b53f,!0x0);}),this[_0x4a0d60(0x14b)](_0x5421d1,_0x4a0d60(0x16b),()=>{const _0x5ef1ed=_0x4a0d60;this[_0x5ef1ed(0x1a1)](),this[_0x5ef1ed(0x11e)]();}),this[_0x4a0d60(0x14b)](_0x5421d1,_0x4a0d60(0x19f),()=>{const _0x2c9d35=_0x4a0d60;if(this[_0x2c9d35(0x1b2)]&&this[_0x2c9d35(0x1b2)][_0x2c9d35(0x134)][_0x2c9d35(0x19a)]>0x0){const _0x2a5310=this[_0x2c9d35(0x1b2)][_0x2c9d35(0x134)][this[_0x2c9d35(0x1b2)][_0x2c9d35(0x134)][_0x2c9d35(0x19a)]-0x1],_0x8007af=_0x2a5310[_0x2c9d35(0x173)][0x0];_0x8007af&&_0x2c9d35(0x19e)===_0x8007af[_0x2c9d35(0x14a)]&&_0x2a5310[_0x2c9d35(0x1ac)](0x0,_0x2c9d35(0x15e));}this[_0x2c9d35(0x1a1)](),this[_0x2c9d35(0x12b)](),this[_0x2c9d35(0x16d)](_0x5421d1);}),this[_0x4a0d60(0x186)](_0x375d03,_0x22d54f,_0x21859f,_0x5421d1,_0x267546);}[_0x5a850e(0x192)](_0x2a66bd,_0x574551,_0x366336){const _0x471627=_0x5a850e,_0xf2cfc1=this[_0x471627(0x116)][_0x471627(0xe8)][_0x471627(0xfc)](_0x574551,_0x366336)[_0x471627(0x1b0)](),_0x3ca122=_0xf2cfc1['is'](_0x471627(0x18b))?[]:_0xf2cfc1[_0x471627(0xf1)]({'includeSelf':!0x0})[_0x471627(0x17e)](0x1);if(_0x3ca122[_0x471627(0x19a)]){const _0x4cc302=_0x3ca122[_0x471627(0x166)](_0x3c887a=>_0x3c887a[_0x471627(0x15a)](!0x1));for(let _0x5542a0=0x1;_0x5542a0<_0x4cc302[_0x471627(0x19a)];_0x5542a0++)_0x4cc302[_0x5542a0-0x1][_0x471627(0x1c5)](_0x4cc302[_0x5542a0]);return _0x4cc302[_0x4cc302[_0x471627(0x19a)]-0x1][_0x471627(0x1c5)](_0x2a66bd),new _0x1f3265(_0x4cc302[0x0]);}return _0x2a66bd;}async[_0x5a850e(0x186)](_0x571ab0,_0x443b5b,_0x3a4482,_0x1f2c9e,_0x217331){const _0x5ed08d=_0x5a850e,_0x3ae559=this[_0x5ed08d(0x116)];this[_0x5ed08d(0x15c)]={'action':_0x217331,'content':_0x571ab0,'version':_0x443b5b,'mainView':_0x3a4482,'aiBalloon':_0x1f2c9e};const _0x422a2f=new _0x3b4ac0({'connector':this[_0x5ed08d(0x138)],'editor':_0x3ae559,'content':_0x571ab0,'version':_0x443b5b,..._0x217331});this[_0x5ed08d(0x121)][_0x5ed08d(0x17b)](_0x422a2f),_0x3a4482[_0x5ed08d(0x137)]();const _0x23ad48=(_0xb7bf07,_0x456b89,_0x23d038=!0x1,_0x141422=_0x5ed08d(0x1a5))=>this[_0x5ed08d(0x1b4)][_0x5ed08d(0x156)](async _0x578c77=>{const _0xdbaf6f=_0x5ed08d;try{const _0x4b8228=_0x4e9a87({'editor':_0x3ae559,'changeGroups':_0xb7bf07[_0xdbaf6f(0x173)],'documentContextContent':_0xb7bf07[_0xdbaf6f(0xf3)],'showDiff':_0x23d038,'trimUnchanged':!0x1});await _0x456b89[_0xdbaf6f(0x11b)]({'parts':_0x4b8228,'renderingStrategy':_0x141422,'abortSignal':_0x578c77});}catch(_0x24ba4f){if(this[_0xdbaf6f(0x142)](_0x24ba4f))return;throw _0x24ba4f;}});this[_0x5ed08d(0x1b2)]['on'](_0x5ed08d(0x1c1),(_0x24399b,_0x35a0bf)=>{const _0x27ea04=_0x5ed08d;_0x3a4482[_0x27ea04(0x18f)](),_0x1f2c9e[_0x27ea04(0x162)](),_0x23ad48(_0x35a0bf,_0x3a4482)[_0x27ea04(0x165)](_0x27489f=>{const _0x286a83=_0x27ea04;this[_0x286a83(0x142)](_0x27489f)||(console[_0x286a83(0x12d)](_0x286a83(0xf7),_0x27489f),this[_0x286a83(0xe4)](_0x422a2f,_0x3a4482));});}),this[_0x5ed08d(0x1b2)]['on'](_0x5ed08d(0xf2),(_0xc68f0b,_0x275ea3)=>{const _0x203509=_0x5ed08d;_0x23ad48(_0x275ea3,_0x3a4482)[_0x203509(0x165)](_0x1e932c=>{const _0x277295=_0x203509;this[_0x277295(0x142)](_0x1e932c)||(console[_0x277295(0x12d)](_0x277295(0x101),_0x1e932c),this[_0x277295(0xe4)](_0x422a2f,_0x3a4482));});}),this[_0x5ed08d(0x1b2)]['on'](_0x5ed08d(0x161),async()=>{const _0x5b2bee=_0x5ed08d;try{await this[_0x5b2bee(0x157)](_0x3a4482,_0x1f2c9e),this[_0x5b2bee(0x19b)](),await this[_0x5b2bee(0x1b4)][_0x5b2bee(0x1c6)];}catch(_0x5f2266){this[_0x5b2bee(0x142)](_0x5f2266)||(console[_0x5b2bee(0x12d)](_0x5b2bee(0x109),_0x5f2266),this[_0x5b2bee(0xe4)](_0x422a2f,_0x3a4482));}finally{_0x1f2c9e[_0x5b2bee(0x105)]();}}),this[_0x5ed08d(0x14b)](_0x3a4482,_0x5ed08d(0x1ae),async(_0xfcefd4,{showDiff:_0x213b5b})=>{const _0x4a4684=_0x5ed08d;try{this[_0x4a4684(0x112)]=_0x213b5b;const _0xd698e6=this[_0x4a4684(0x1b2)][_0x4a4684(0x134)][this[_0x4a4684(0x1b2)][_0x4a4684(0x134)][_0x4a4684(0x19a)]-0x1];_0xd698e6&&await _0x23ad48(_0xd698e6,_0x3a4482,_0x213b5b,_0x4a4684(0xe3));}catch(_0x5215c0){this[_0x4a4684(0x142)](_0x5215c0)||(console[_0x4a4684(0x12d)](_0x4a4684(0x198),_0x5215c0),this[_0x4a4684(0xe4)](_0x422a2f,_0x3a4482));}}),this[_0x5ed08d(0x1b2)]['on'](_0x5ed08d(0x147),(_0x90ed6a,{reply:_0x17ad16})=>{const _0x532739=_0x5ed08d,_0x257a0d={'positiveCount':_0x17ad16[_0x532739(0x173)][_0x532739(0x1c3)](_0x5ccf6c=>_0x532739(0x1bf)===_0x5ccf6c[_0x532739(0x14a)])[_0x532739(0x19a)],'totalCount':_0x17ad16[_0x532739(0x173)][_0x532739(0x19a)]},_0x24c2d4=this[_0x532739(0x1b2)][_0x532739(0x129)],_0xc1c40d=this[_0x532739(0x1b2)][_0x532739(0x14c)];_0xc1c40d?this[_0x532739(0x138)][_0x532739(0x180)](_0xc1c40d,_0x24c2d4,_0x257a0d):this[_0x532739(0x138)][_0x532739(0x184)](_0x24c2d4,_0x257a0d);}),this[_0x5ed08d(0x1b8)](_0x3a4482,_0x1f2c9e);try{const _0x3c9ae1=await this[_0x5ed08d(0x1b2)][_0x5ed08d(0x108)]();return this[_0x5ed08d(0x19b)](),_0x3c9ae1;}catch(_0x51e640){if(this[_0x5ed08d(0x142)](_0x51e640))return;_0x3a4482[_0x5ed08d(0x18f)](),this[_0x5ed08d(0xe4)](_0x422a2f,_0x3a4482);}}[_0x5a850e(0xf8)](_0x290f4d,_0x377877,_0x1cc109){const _0x285a69=_0x5a850e,_0x390ae4=this[_0x285a69(0x116)];if(_0x1cc109&&!_0x390ae4[_0x285a69(0x127)][_0x285a69(0x100)](_0x285a69(0x1b9)))throw new _0x34b5e8(_0x285a69(0x1aa),null);const _0xbb3a35=this[_0x285a69(0x116)][_0x285a69(0x127)][_0x285a69(0x111)](_0xb98e36),_0x364119=this[_0x285a69(0x1b2)],_0x21da21=this[_0x285a69(0x1b2)][_0x285a69(0x134)][this[_0x285a69(0x1b2)][_0x285a69(0x134)][_0x285a69(0x19a)]-0x1],_0x365d67=_0x21da21[_0x285a69(0x173)];_0x21da21[_0x285a69(0x1ac)](0x0,_0x285a69(0x1bf));let _0xfe8fe6=_0x351cdd({'editor':_0x390ae4,'reply':_0x21da21,'interaction':_0x364119,'groups':_0x365d67,'transform':!0x1,'documentCompare':_0xbb3a35,'documentCompareOptions':{'anchor':_0x390ae4[_0x285a69(0xe8)][_0x285a69(0x10d)](_0x290f4d,0x0),'markDeletions':_0x1cc109}});_0xfe8fe6=this[_0x285a69(0xfe)](_0xfe8fe6,_0x377877);for(const _0x532121 of _0xfe8fe6)this[_0x285a69(0x125)](_0x377877,_0x532121,_0x390ae4[_0x285a69(0xe8)][_0x285a69(0x146)][_0x285a69(0x172)]());const _0x5f40c3=_0x364119[_0x285a69(0x15f)]()[_0x285a69(0x145)],_0x27a5c8=_0x390ae4[_0x285a69(0xe8)][_0x285a69(0x146)][_0x285a69(0x10c)][_0x285a69(0x1b3)](_0x5f40c3),_0x3d5d14={'document':_0x390ae4[_0x285a69(0xe8)][_0x285a69(0x146)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x408b3f=_0x3abe54(_0xfe8fe6,_0x27a5c8,_0x3d5d14)[_0x285a69(0xef)];_0x390ae4[_0x285a69(0xe8)][_0x285a69(0x12c)](_0x10020f=>{const _0x17c4a5=_0x285a69;if(_0x10020f[_0x17c4a5(0x10e)](_0x390ae4[_0x17c4a5(0xe8)][_0x17c4a5(0x146)][_0x17c4a5(0x128)][_0x17c4a5(0x185)]),_0x1cc109)_0x390ae4[_0x17c4a5(0x127)][_0x17c4a5(0x111)](_0x17c4a5(0x122))[_0x17c4a5(0x187)](_0x408b3f);else{for(const _0x116385 of _0x408b3f)_0x116385[_0x17c4a5(0xea)]=_0x390ae4[_0x17c4a5(0xe8)][_0x17c4a5(0x146)][_0x17c4a5(0x145)],_0x1089b7(_0x390ae4,_0x116385),_0x10020f[_0x17c4a5(0x154)][_0x17c4a5(0x14d)](_0x116385),_0x390ae4[_0x17c4a5(0xe8)][_0x17c4a5(0x1a4)](_0x116385);}}),this[_0x285a69(0x116)][_0x285a69(0x127)][_0x285a69(0x111)](_0x285a69(0x199))[_0x285a69(0x131)]();}[_0x5a850e(0xfe)](_0x3cc340,_0x143d67){const _0xcc1ea3=_0x5a850e;return _0x3cc340[_0xcc1ea3(0x1c3)](_0x3633b8=>{const _0x4264ee=_0xcc1ea3;if(_0x4264ee(0x117)==_0x3633b8[_0x4264ee(0x114)]){const _0x46c436=_0x3633b8[_0x4264ee(0x1b5)][_0x4264ee(0xfb)];return!_0x143d67[_0x4264ee(0x100)](_0x46c436);}if(_0x3633b8[_0x4264ee(0x114)][_0x4264ee(0xe7)](_0x4264ee(0x18e))>-0x1){const _0x4bffcb=_0x3633b8[_0x4264ee(0x181)][_0x4264ee(0x108)][_0x4264ee(0xfb)];return!_0x143d67[_0x4264ee(0x100)](_0x4bffcb);}return!0x0;});}[_0x5a850e(0x125)](_0x434b84,_0x416873,_0x468323){const _0x4a2c34=_0x5a850e,_0x17e7df=_0x416873[_0x4a2c34(0x1b1)]();for(const _0x2c5ef5 in _0x416873){const _0x50f254=_0x416873[_0x2c5ef5];_0x50f254 instanceof _0x5f3940?_0x416873[_0x2c5ef5]=new _0x5f3940(_0x4565a4(_0x50f254[_0x4a2c34(0x108)]),_0x4565a4(_0x50f254[_0x4a2c34(0x177)])):_0x50f254 instanceof _0x5546d8&&(_0x416873[_0x2c5ef5]=_0x4565a4(_0x50f254));}if([_0x4a2c34(0x1ad),_0x4a2c34(0x1be),_0x4a2c34(0x107),_0x4a2c34(0x1ab),_0x4a2c34(0x193),_0x4a2c34(0x18d)][_0x4a2c34(0x179)](_0x17e7df[_0x4a2c34(0x114)])){if(_0x17e7df[_0x4a2c34(0x151)]=!0x1,_0x17e7df[_0x4a2c34(0xea)]=null,_0x4a2c34(0x107)==_0x17e7df[_0x4a2c34(0x114)]){const _0x498a7c=_0x17e7df[_0x4a2c34(0x130)],_0x120994=_0x17e7df[_0x4a2c34(0x133)];new _0x71f6aa(_0x498a7c,_0x120994)[_0x4a2c34(0xe0)]();}else _0x17e7df[_0x4a2c34(0xe0)]();}function _0x4565a4(_0x21d6ba){const _0xb84b86=_0x4a2c34;if(_0xb84b86(0x144)==_0x21d6ba[_0xb84b86(0x1a3)][_0xb84b86(0xfa)])return _0x21d6ba;const _0x5a922e=[];let _0x109d3a=_0x21d6ba[_0xb84b86(0x1a3)];for(let _0x58787e=0x0;_0x58787e<_0x21d6ba[_0xb84b86(0x153)][_0xb84b86(0x19a)];_0x58787e++){const _0x4da57e=_0x434b84[_0xb84b86(0x111)](_0x109d3a)||0x0;_0x5a922e[_0x58787e]=_0x21d6ba[_0xb84b86(0x153)][_0x58787e]+_0x4da57e,_0x109d3a=_0x109d3a[_0xb84b86(0x14e)](_0x21d6ba[_0xb84b86(0x153)][_0x58787e]);}return new _0x5546d8(_0x468323,_0x5a922e,_0x21d6ba[_0xb84b86(0xe1)]);}}[_0x5a850e(0x1c0)](){const _0x2a96c2=_0x5a850e;if(!this[_0x2a96c2(0x15c)])return;this[_0x2a96c2(0x121)][_0x2a96c2(0x19a)]>0x0&&this[_0x2a96c2(0x1a1)](),this[_0x2a96c2(0x11f)]=0x0,this[_0x2a96c2(0x112)]=!0x1;const {action:_0x57753d,content:_0x32af60,version:_0x5e7529,mainView:_0x211324,aiBalloon:_0xa8f84c}=this[_0x2a96c2(0x15c)];_0x211324[_0x2a96c2(0x113)]=!0x1,_0x211324[_0x2a96c2(0x137)](),this[_0x2a96c2(0xff)](_0x211324,_0xa8f84c);const _0x499a7c=_0x211324;_0x499a7c[_0x2a96c2(0x17a)]&&_0x499a7c[_0x2a96c2(0x17a)][_0x2a96c2(0x140)]&&_0x499a7c[_0x2a96c2(0x17a)][_0x2a96c2(0x140)][_0x2a96c2(0x123)]({'isOn':!0x1,'icon':_0x37f9d7}),this[_0x2a96c2(0x1b6)](_0x211324),_0x211324[_0x2a96c2(0x149)](),this[_0x2a96c2(0x19b)](),this[_0x2a96c2(0x16d)](_0x211324),this[_0x2a96c2(0x186)](_0x32af60,_0x5e7529,_0x211324,_0xa8f84c,_0x57753d)[_0x2a96c2(0x165)](_0x5ac138=>{const _0x1263f9=_0x2a96c2;this[_0x1263f9(0x142)](_0x5ac138)||console[_0x1263f9(0x12d)](_0x1263f9(0x143),_0x5ac138);});}[_0x5a850e(0x1b6)](_0xcf7df7){const _0x1d0fc7=_0x5a850e,_0x207cda=_0xcf7df7[_0x1d0fc7(0x135)][_0x1d0fc7(0x1a6)];for(;_0x207cda[_0x1d0fc7(0x19a)]>0x0;)_0x207cda[_0x1d0fc7(0x107)](_0x207cda[_0x1d0fc7(0x10b)]);_0xcf7df7[_0x1d0fc7(0x135)][_0x1d0fc7(0x16f)]=!0x1;}[_0x5a850e(0x142)](_0x387e4d){const _0x498d83=_0x5a850e;return!!_0x387e4d[_0x498d83(0x1bc)]&&_0x387e4d[_0x498d83(0x1bc)][_0x498d83(0xf6)](_0x498d83(0x175));}[_0x5a850e(0x12b)](){const _0x12a7f9=_0x5a850e;this[_0x12a7f9(0x121)]=[],this[_0x12a7f9(0x15c)]=void 0x0,this[_0x12a7f9(0x11f)]=0x0,this[_0x12a7f9(0x19b)]();}[_0x5a850e(0x1a1)](){const _0x5005cf=_0x5a850e;this[_0x5005cf(0x1b2)]&&this[_0x5005cf(0x1b2)][_0x5005cf(0x18c)](),this[_0x5005cf(0x1b4)][_0x5005cf(0x183)](),this[_0x5005cf(0x182)]=!0x1,this[_0x5005cf(0x15c)]&&this[_0x5005cf(0x15c)][_0x5005cf(0x196)][_0x5005cf(0x105)]();}[_0x5a850e(0x17d)](){const _0x11069b=_0x5a850e,_0x4d7452=new _0x4267bd(this[_0x11069b(0x116)][_0x11069b(0x159)]),_0x5381e2=new _0x4267bd(this[_0x11069b(0x116)][_0x11069b(0x159)]),_0x576966=new _0x3b5cef(this[_0x11069b(0x116)][_0x11069b(0x159)]),_0x2601f2=new _0x4267bd(this[_0x11069b(0x116)][_0x11069b(0x159)]);_0x4d7452[_0x11069b(0x123)]({'icon':_0x4ecf33,'label':_0x5d3387(this[_0x11069b(0x116)][_0x11069b(0x159)],_0x11069b(0xfd)),'tooltip':!0x0,'class':_0x11069b(0x1a7)}),_0x5381e2[_0x11069b(0x123)]({'icon':_0x51ea6e,'tooltip':_0x5d3387(this[_0x11069b(0x116)][_0x11069b(0x159)],_0x11069b(0x1c4)),'class':_0x11069b(0xeb)}),_0x576966[_0x11069b(0x195)]({'tag':_0x11069b(0x13e),'attributes':{'class':[_0x11069b(0x163)]},'children':[_0x11069b(0x15b)]}),_0x2601f2[_0x11069b(0x123)]({'icon':_0x39e62d,'tooltip':_0x5d3387(this[_0x11069b(0x116)][_0x11069b(0x159)],_0x11069b(0x104)),'class':_0x11069b(0xe5)}),_0x4d7452[_0x11069b(0x19c)](_0x11069b(0x13c))['to'](this,_0x11069b(0x182),_0x1ebb87=>!_0x1ebb87),_0x4d7452['on'](_0x11069b(0x188),()=>{const _0x2c971e=_0x11069b;this[_0x2c971e(0x1c0)]();}),_0x5381e2[_0x11069b(0x19c)](_0x11069b(0x13c))['to'](this,_0x11069b(0x182),_0x51b6ec=>!_0x51b6ec),_0x5381e2['on'](_0x11069b(0x188),()=>{const _0x2a5db6=_0x11069b;this[_0x2a5db6(0x1ba)]();}),_0x2601f2[_0x11069b(0x19c)](_0x11069b(0x13c))['to'](this,_0x11069b(0x182),_0x245802=>!_0x245802),_0x2601f2['on'](_0x11069b(0x188),()=>{const _0x28fde7=_0x11069b;this[_0x28fde7(0x1a0)]();}),this[_0x11069b(0x191)]=_0x5381e2,this[_0x11069b(0x13b)]=_0x576966,this[_0x11069b(0x1bb)]=_0x2601f2,this[_0x11069b(0x14f)][_0x11069b(0x126)](_0x4d7452);}[_0x5a850e(0x1ba)](){const _0x2e3b32=_0x5a850e,_0x2003df=this[_0x2e3b32(0x121)][_0x2e3b32(0x19a)];this[_0x2e3b32(0x11f)]<_0x2003df-0x1&&this[_0x2e3b32(0x12a)](this[_0x2e3b32(0x11f)]+0x1);}[_0x5a850e(0x1a0)](){const _0x21c945=_0x5a850e;this[_0x21c945(0x11f)]>0x0&&this[_0x21c945(0x12a)](this[_0x21c945(0x11f)]-0x1);}async[_0x5a850e(0x12a)](_0x54a01b){const _0x14eebf=_0x5a850e;if(!this[_0x14eebf(0x15c)])return;this[_0x14eebf(0x11f)]=_0x54a01b;const {mainView:_0x4939d6}=this[_0x14eebf(0x15c)],_0x2bb83b=this[_0x14eebf(0x121)][this[_0x14eebf(0x121)][_0x14eebf(0x19a)]-0x1-this[_0x14eebf(0x11f)]];if(!_0x2bb83b)return;if(_0x2bb83b[_0x14eebf(0x1c2)])return this[_0x14eebf(0xe4)](_0x2bb83b,_0x4939d6),void this[_0x14eebf(0x19b)]();if(!_0x2bb83b[_0x14eebf(0x134)][_0x14eebf(0x19a)])return;_0x4939d6[_0x14eebf(0x137)](),this[_0x14eebf(0x15c)]&&this[_0x14eebf(0xff)](_0x4939d6,this[_0x14eebf(0x15c)][_0x14eebf(0x196)]);const _0x1b4e7c=_0x2bb83b[_0x14eebf(0x134)][_0x2bb83b[_0x14eebf(0x134)][_0x14eebf(0x19a)]-0x1];if(_0x1b4e7c){const _0x5d34b6=this[_0x14eebf(0x116)];this[_0x14eebf(0x1b6)](_0x4939d6);try{const _0x51aba0=_0x4e9a87({'editor':_0x5d34b6,'changeGroups':_0x1b4e7c[_0x14eebf(0x173)],'documentContextContent':_0x1b4e7c[_0x14eebf(0xf3)],'showDiff':this[_0x14eebf(0x112)],'trimUnchanged':!0x1});this[_0x14eebf(0x1b6)](_0x4939d6),await new Promise(_0x430271=>setTimeout(_0x430271,0x32)),await _0x4939d6[_0x14eebf(0x11b)]({'parts':_0x51aba0,'renderingStrategy':_0x14eebf(0xe3),'abortSignal':new AbortController()[_0x14eebf(0x19d)]});}catch(_0x4a9ce4){this[_0x14eebf(0x142)](_0x4a9ce4)||console[_0x14eebf(0x12d)](_0x14eebf(0x197),_0x4a9ce4);}}this[_0x14eebf(0x19b)]();}[_0x5a850e(0x19b)](){const _0x95ced9=_0x5a850e;if(!this[_0x95ced9(0x191)]||!this[_0x95ced9(0x13b)]||!this[_0x95ced9(0x1bb)])return;const _0x90fc03=this[_0x95ced9(0x121)][_0x95ced9(0x19a)],_0x3a1a7d=_0x90fc03>0x1,_0xa21a14=this[_0x95ced9(0x15c)]?.[_0x95ced9(0x13d)];if(_0x3a1a7d){this[_0x95ced9(0x194)]||this[_0x95ced9(0x17f)]||this[_0x95ced9(0x13f)]||(this[_0x95ced9(0x14f)][_0x95ced9(0x126)](this[_0x95ced9(0x191)]),_0xa21a14?.[_0x95ced9(0x155)](this[_0x95ced9(0x191)]),this[_0x95ced9(0x194)]=!0x0,this[_0x95ced9(0x14f)][_0x95ced9(0x126)](this[_0x95ced9(0x13b)]),_0xa21a14?.[_0x95ced9(0x155)](this[_0x95ced9(0x13b)]),this[_0x95ced9(0x17f)]=!0x0,this[_0x95ced9(0x14f)][_0x95ced9(0x126)](this[_0x95ced9(0x1bb)]),_0xa21a14?.[_0x95ced9(0x155)](this[_0x95ced9(0x1bb)]),this[_0x95ced9(0x13f)]=!0x0);const _0x388123=_0x90fc03-this[_0x95ced9(0x11f)];this[_0x95ced9(0x13b)][_0x95ced9(0x106)]&&(this[_0x95ced9(0x13b)][_0x95ced9(0x106)][_0x95ced9(0x12e)]=_0x388123+'/'+_0x90fc03),this[_0x95ced9(0x191)][_0x95ced9(0x13c)]=this[_0x95ced9(0x11f)]<_0x90fc03-0x1,this[_0x95ced9(0x1bb)][_0x95ced9(0x13c)]=this[_0x95ced9(0x11f)]>0x0;}else(this[_0x95ced9(0x194)]||this[_0x95ced9(0x17f)]||this[_0x95ced9(0x13f)])&&(this[_0x95ced9(0x14f)][_0x95ced9(0x107)](this[_0x95ced9(0x191)]),_0xa21a14?.[_0x95ced9(0x11c)](this[_0x95ced9(0x191)]),this[_0x95ced9(0x194)]=!0x1,this[_0x95ced9(0x14f)][_0x95ced9(0x107)](this[_0x95ced9(0x13b)]),_0xa21a14?.[_0x95ced9(0x11c)](this[_0x95ced9(0x13b)]),this[_0x95ced9(0x17f)]=!0x1,this[_0x95ced9(0x14f)][_0x95ced9(0x107)](this[_0x95ced9(0x1bb)]),_0xa21a14?.[_0x95ced9(0x11c)](this[_0x95ced9(0x1bb)]),this[_0x95ced9(0x13f)]=!0x1);}[_0x5a850e(0x1b8)](_0x31d29d,_0x303a9d){const _0x49821f=_0x5a850e;_0x31d29d[_0x49821f(0x11a)](),_0x303a9d[_0x49821f(0x15d)][_0x49821f(0x11a)](),this[_0x49821f(0x182)]=!0x0;}async[_0x5a850e(0xe4)](_0x33e030,_0x3b5695){const _0x3f903c=_0x5a850e,_0x33a538=_0x5d3387(this[_0x3f903c(0x116)][_0x3f903c(0x159)],_0x3f903c(0x1b7));_0x3b5695[_0x3f903c(0xe9)](_0x33a538),_0x33e030[_0x3f903c(0x1c2)]=!0x0,await this[_0x3f903c(0x1b4)][_0x3f903c(0x1c6)],_0x3b5695[_0x3f903c(0x169)](),this[_0x3f903c(0x15c)]?.[_0x3f903c(0x196)][_0x3f903c(0x15d)][_0x3f903c(0xed)]&&(this[_0x3f903c(0x15c)][_0x3f903c(0x196)][_0x3f903c(0x15d)][_0x3f903c(0xed)][_0x3f903c(0x1af)]=!0x0);}[_0x5a850e(0xff)](_0x3ae3c9,_0x24c395){const _0x180016=_0x5a850e;_0x3ae3c9[_0x180016(0x160)](),_0x24c395[_0x180016(0x15d)][_0x180016(0xed)]&&(_0x24c395[_0x180016(0x15d)][_0x180016(0xed)][_0x180016(0x1af)]=!0x1);}async[_0x5a850e(0x157)](_0x13f221,_0x3c0d47){const _0x392962=_0x5a850e;await this[_0x392962(0x1b4)][_0x392962(0x1c6)],this[_0x392962(0x182)]=!0x1,_0x13f221[_0x392962(0x12f)](),_0x3c0d47[_0x392962(0x15d)][_0x392962(0x12f)]();}[_0x5a850e(0x11e)](){const _0x20e6ac=_0x5a850e;this[_0x20e6ac(0x14f)][_0x20e6ac(0x16c)](_0x54f26a=>{const _0x4e75b0=_0x20e6ac;_0x4e75b0(0x13c)in _0x54f26a&&(_0x54f26a[_0x4e75b0(0x13c)]=!0x1);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x507f90=_0x5c1a;(function(_0x1b5c7b,_0x35e531){const _0x2aa433=_0x5c1a,_0x349c7f=_0x1b5c7b();while(!![]){try{const _0x4d4561=parseInt(_0x2aa433(0xdf))/0x1*(parseInt(_0x2aa433(0xd0))/0x2)+-parseInt(_0x2aa433(0xd3))/0x3*(-parseInt(_0x2aa433(0xdc))/0x4)+parseInt(_0x2aa433(0xde))/0x5+-parseInt(_0x2aa433(0xc1))/0x6+-parseInt(_0x2aa433(0xe0))/0x7+-parseInt(_0x2aa433(0xd5))/0x8*(-parseInt(_0x2aa433(0xcb))/0x9)+-parseInt(_0x2aa433(0xd1))/0xa;if(_0x4d4561===_0x35e531)break;else _0x349c7f['push'](_0x349c7f['shift']());}catch(_0x2e334e){_0x349c7f['push'](_0x349c7f['shift']());}}}(_0xfe8c,0x72114));import{AIInteraction as _0x539dc8,AI_MODEL_EVENT_NAMES as _0x24c385}from'../../aicore/model/aiinteraction.js';function _0x5c1a(_0x58de73,_0x1946aa){const _0xfe8c7=_0xfe8c();return _0x5c1a=function(_0x5c1af3,_0x2ef58d){_0x5c1af3=_0x5c1af3-0xc1;let _0x4c2226=_0xfe8c7[_0x5c1af3];return _0x4c2226;},_0x5c1a(_0x58de73,_0x1946aa);}function _0xfe8c(){const _0x2b49f4=['args','replyCreated','push','content','Current\x20document','actionName','1964304xxQSct','current-document','3212540JDWneE','2354pWukOo','4310201HLMKlx','connector','3129516fITPIr','fire','getDocumentContext','sendRequest','version','hasError','executeCustomAction','executeAction','model','html','9okUzNg','editor','replies','createReply','delegate','412WkIken','7638140RUcVvb','TEXT','3lSUUBB','userMessage','5998840fJcFHm'];_0xfe8c=function(){return _0x2b49f4;};return _0xfe8c();}import{AIContextItemType as _0x4294ea}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x276865}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x539dc8{[_0x507f90(0xd9)];[_0x507f90(0xc5)];[_0x507f90(0xdb)];[_0x507f90(0xd6)];[_0x507f90(0xd4)];[_0x507f90(0xc9)];[_0x507f90(0xc6)]=!0x1;constructor(_0x54979e){const _0x249951=_0x507f90;super(_0x54979e),this[_0x249951(0xd9)]=_0x54979e[_0x249951(0xd9)],this[_0x249951(0xc5)]=_0x54979e[_0x249951(0xc5)],this[_0x249951(0xdb)]=_0x54979e[_0x249951(0xdb)],this[_0x249951(0xd6)]=_0x54979e[_0x249951(0xd6)],this[_0x249951(0xd4)]=_0x54979e[_0x249951(0xd4)],this[_0x249951(0xc9)]=_0x54979e[_0x249951(0xc9)];}async[_0x507f90(0xc4)](){const _0xd43bc4=_0x507f90;return this[_0xd43bc4(0xdb)]?this[_0xd43bc4(0xe1)][_0xd43bc4(0xc8)]({'content':this[_0xd43bc4(0xd9)],'actionName':this[_0xd43bc4(0xdb)],'args':this[_0xd43bc4(0xd6)]}):this[_0xd43bc4(0xe1)][_0xd43bc4(0xc7)]({'content':this[_0xd43bc4(0xd9)],'message':this[_0xd43bc4(0xd4)],'model':this[_0xd43bc4(0xc9)],'outputFormat':_0xd43bc4(0xca)});}[_0x507f90(0xc3)](){const _0x5981d3=_0x507f90;return{'type':_0x4294ea[_0x5981d3(0xd2)],'content':this[_0x5981d3(0xd9)],'version':this[_0x5981d3(0xc5)],'label':_0x5981d3(0xda),'uiId':_0x5981d3(0xdd)};}[_0x507f90(0xce)](_0x63f47d){const _0xaf3185=_0x507f90,_0x5068ca=new _0x276865({'editor':this[_0xaf3185(0xcc)],'documentContextContent':this[_0xaf3185(0xd9)],..._0x63f47d});return this[_0xaf3185(0xcd)][_0xaf3185(0xd8)](_0x5068ca),_0x5068ca[_0xaf3185(0xcf)](..._0x24c385)['to'](this),this[_0xaf3185(0xc2)](_0xaf3185(0xd7),_0x5068ca),_0x5068ca;}}
23
+ const _0x3d987c=_0x52c6;(function(_0xb2e53e,_0x4bf51b){const _0x304564=_0x52c6,_0x1b7aac=_0xb2e53e();while(!![]){try{const _0x12bddc=parseInt(_0x304564(0x100))/0x1*(parseInt(_0x304564(0xff))/0x2)+-parseInt(_0x304564(0x11a))/0x3+-parseInt(_0x304564(0x106))/0x4+parseInt(_0x304564(0x110))/0x5+parseInt(_0x304564(0x116))/0x6+-parseInt(_0x304564(0x102))/0x7+parseInt(_0x304564(0xfd))/0x8*(parseInt(_0x304564(0x104))/0x9);if(_0x12bddc===_0x4bf51b)break;else _0x1b7aac['push'](_0x1b7aac['shift']());}catch(_0x1ae2cb){_0x1b7aac['push'](_0x1b7aac['shift']());}}}(_0x4e36,0xe6d93));import{AIInteraction as _0x3f13d8,AI_MODEL_EVENT_NAMES as _0x3ea130}from'../../aicore/model/aiinteraction.js';function _0x4e36(){const _0x3329f6=['executeAction','5356130IOTobP','userMessage','delegate','createReply','fire','getDocumentContext','6147948oxpHSe','replies','connector','replyCreated','1980903JnnsfL','hasError','model','280URHWZh','html','268190ghILiD','11AcnZNV','version','10296209oaWXsR','actionName','111960TRFCja','Current\x20document','3718344sOvMkK','args','push','current-document','editor','executeCustomAction','TEXT','content','sendRequest'];_0x4e36=function(){return _0x3329f6;};return _0x4e36();}function _0x52c6(_0x10db4a,_0x48462b){const _0x4e369e=_0x4e36();return _0x52c6=function(_0x52c64c,_0x11b3a9){_0x52c64c=_0x52c64c-0xfb;let _0x114078=_0x4e369e[_0x52c64c];return _0x114078;},_0x52c6(_0x10db4a,_0x48462b);}import{AIContextItemType as _0x3ca426}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x2fd029}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x3f13d8{[_0x3d987c(0x10d)];[_0x3d987c(0x101)];[_0x3d987c(0x103)];[_0x3d987c(0x107)];[_0x3d987c(0x111)];[_0x3d987c(0xfc)];[_0x3d987c(0xfb)]=!0x1;constructor(_0x571c5d){const _0x30be9a=_0x3d987c;super(_0x571c5d),this[_0x30be9a(0x10d)]=_0x571c5d[_0x30be9a(0x10d)],this[_0x30be9a(0x101)]=_0x571c5d[_0x30be9a(0x101)],this[_0x30be9a(0x103)]=_0x571c5d[_0x30be9a(0x103)],this[_0x30be9a(0x107)]=_0x571c5d[_0x30be9a(0x107)],this[_0x30be9a(0x111)]=_0x571c5d[_0x30be9a(0x111)],this[_0x30be9a(0xfc)]=_0x571c5d[_0x30be9a(0xfc)];}async[_0x3d987c(0x10e)](){const _0xee12c6=_0x3d987c;return this[_0xee12c6(0x103)]?this[_0xee12c6(0x118)][_0xee12c6(0x10f)]({'content':this[_0xee12c6(0x10d)],'actionName':this[_0xee12c6(0x103)],'args':this[_0xee12c6(0x107)]}):this[_0xee12c6(0x118)][_0xee12c6(0x10b)]({'content':this[_0xee12c6(0x10d)],'message':this[_0xee12c6(0x111)],'model':this[_0xee12c6(0xfc)],'outputFormat':_0xee12c6(0xfe)});}[_0x3d987c(0x115)](){const _0x5229b1=_0x3d987c;return{'type':_0x3ca426[_0x5229b1(0x10c)],'content':this[_0x5229b1(0x10d)],'version':this[_0x5229b1(0x101)],'label':_0x5229b1(0x105),'uiId':_0x5229b1(0x109)};}[_0x3d987c(0x113)](_0x5ad2db){const _0x1b151d=_0x3d987c,_0x54e205=new _0x2fd029({'editor':this[_0x1b151d(0x10a)],'documentContextContent':this[_0x1b151d(0x10d)],..._0x5ad2db});return this[_0x1b151d(0x117)][_0x1b151d(0x108)](_0x54e205),_0x54e205[_0x1b151d(0x112)](..._0x3ea130)['to'](this),this[_0x1b151d(0x114)](_0x1b151d(0x119),_0x54e205),_0x54e205;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e6e0e=_0x2924;(function(_0x385ce4,_0x233236){const _0x448ea8=_0x2924,_0xf88d5d=_0x385ce4();while(!![]){try{const _0x377911=parseInt(_0x448ea8(0xa0))/0x1+parseInt(_0x448ea8(0xa5))/0x2+parseInt(_0x448ea8(0x99))/0x3*(parseInt(_0x448ea8(0xaf))/0x4)+-parseInt(_0x448ea8(0xac))/0x5*(parseInt(_0x448ea8(0xa9))/0x6)+-parseInt(_0x448ea8(0x9e))/0x7*(-parseInt(_0x448ea8(0xa6))/0x8)+-parseInt(_0x448ea8(0xa2))/0x9+parseInt(_0x448ea8(0xb0))/0xa;if(_0x377911===_0x233236)break;else _0xf88d5d['push'](_0xf88d5d['shift']());}catch(_0x2ef890){_0xf88d5d['push'](_0xf88d5d['shift']());}}}(_0x2983,0xe8207));function _0x2983(){const _0x2ebce9=['24QoHFMJ','8336680hfWlDw','isDone','parsedMergedContent','map','_getDifferentChangeGroups','data-id','value','changeGroups','697335LOrMMu','added','modified','cloneNode','removed','238sQPlaD','parsedContent','114829uNaBiV','children','9060615oDTeKc','childNodes','updateChangeGroups','2042820OVIjDG','6296qbSVFl','pending','new','661758jpVlAg','pop','length','65XSGdHm','documentContextContent','node'];_0x2983=function(){return _0x2ebce9;};return _0x2983();}import{AIReply as _0x51c3d0}from'../../aicore/model/aireply.js';import{getAttribute as _0x2a07d7}from'../../aicore/utils/htmlparser.js';function _0x2924(_0x21128d,_0x525000){const _0x29834d=_0x2983();return _0x2924=function(_0x2924c0,_0x2c3255){_0x2924c0=_0x2924c0-0x92;let _0x25c280=_0x29834d[_0x2924c0];return _0x25c280;},_0x2924(_0x21128d,_0x525000);}import{uid as _0x12cb29}from'ckeditor5/src/utils.js';import{diffArrays as _0x5e11a3}from'diff';export class AIActionsReply extends _0x51c3d0{[_0x5e6e0e(0xa4)](){const _0x2b31b8=_0x5e6e0e;if(this[_0x2b31b8(0x93)]=this[_0x2b31b8(0x9f)][_0x2b31b8(0x9c)](!0x0),0x0==this[_0x2b31b8(0x93)][_0x2b31b8(0xa3)][_0x2b31b8(0xab)])return void(this[_0x2b31b8(0x98)]=[]);const _0x140d0e=this[_0x2b31b8(0xad)][_0x2b31b8(0xa1)][_0x2b31b8(0x94)](_0x16d79c=>({'node':_0x16d79c,'id':_0x2a07d7(_0x16d79c,_0x2b31b8(0x96))})),_0x52613f=this[_0x2b31b8(0x93)][_0x2b31b8(0xa1)][_0x2b31b8(0x94)](_0x41cc10=>({'node':_0x41cc10,'id':_0x2a07d7(_0x41cc10,_0x2b31b8(0x96))||_0x12cb29()})),_0x47ddec=_0x5e11a3(_0x140d0e,_0x52613f,{'comparator':(_0x792298,_0x11fd89)=>_0x792298['id']==_0x11fd89['id'],'oneChangePerToken':!0x0});if(!this[_0x2b31b8(0x92)]){for(;_0x47ddec[_0x2b31b8(0xab)]&&_0x47ddec[_0x47ddec[_0x2b31b8(0xab)]-0x1][_0x2b31b8(0x9d)];)_0x47ddec[_0x2b31b8(0xaa)]();}const _0x47bd04=_0x47ddec[_0x2b31b8(0x94)](_0x44bf71=>{const _0x5bac31=_0x2b31b8,_0x22b696=_0x44bf71[_0x5bac31(0x9a)]?_0x5bac31(0xa8):_0x44bf71[_0x5bac31(0x9d)]?_0x5bac31(0x9d):_0x5bac31(0x9b);return{'node':_0x44bf71[_0x5bac31(0x97)][0x0][_0x5bac31(0xae)],'type':_0x22b696,'id':_0x44bf71[_0x5bac31(0x97)][0x0]['id']};});this[_0x2b31b8(0x98)]=[{'changes':_0x47bd04,'state':_0x2b31b8(0xa7),'index':0x0}];}[_0x5e6e0e(0x95)](_0x53c65e,_0x29eccb){return _0x29eccb;}}
23
+ const _0x583239=_0x4ad2;(function(_0x4892c5,_0x4adb1d){const _0x3de196=_0x4ad2,_0x537839=_0x4892c5();while(!![]){try{const _0x4820f7=parseInt(_0x3de196(0xf5))/0x1*(parseInt(_0x3de196(0xfb))/0x2)+-parseInt(_0x3de196(0xf7))/0x3*(parseInt(_0x3de196(0x103))/0x4)+parseInt(_0x3de196(0xee))/0x5*(parseInt(_0x3de196(0x104))/0x6)+parseInt(_0x3de196(0xfa))/0x7*(-parseInt(_0x3de196(0xe9))/0x8)+-parseInt(_0x3de196(0x105))/0x9+-parseInt(_0x3de196(0xec))/0xa+parseInt(_0x3de196(0xf4))/0xb*(parseInt(_0x3de196(0xf0))/0xc);if(_0x4820f7===_0x4adb1d)break;else _0x537839['push'](_0x537839['shift']());}catch(_0x19dd9d){_0x537839['push'](_0x537839['shift']());}}}(_0x42f7,0xe89a1));function _0x4ad2(_0x1557b2,_0x318a98){const _0x42f78a=_0x42f7();return _0x4ad2=function(_0x4ad273,_0x19ec97){_0x4ad273=_0x4ad273-0xe9;let _0x550e7c=_0x42f78a[_0x4ad273];return _0x550e7c;},_0x4ad2(_0x1557b2,_0x318a98);}import{AIReply as _0x1ab964}from'../../aicore/model/aireply.js';import{getAttribute as _0x337d3c}from'../../aicore/utils/htmlparser.js';function _0x42f7(){const _0x3a01a8=['3EfcOYp','new','2328iQpPke','added','data-id','1043teyDAt','119562fPJEQr','length','node','pending','changeGroups','cloneNode','isDone','map','7312SAJSVS','4794834XtlZXW','525690GCHgVQ','modified','childNodes','parsedMergedContent','parsedContent','39496CQbCOY','pop','children','4488320veZEfn','_getDifferentChangeGroups','5InRprZ','removed','24aSyOJE','documentContextContent','updateChangeGroups','value','14496009MKFEvC'];_0x42f7=function(){return _0x3a01a8;};return _0x42f7();}import{uid as _0x56c8fd}from'ckeditor5/src/utils.js';import{diffArrays as _0x398ef2}from'diff';export class AIActionsReply extends _0x1ab964{[_0x583239(0xf2)](){const _0x314406=_0x583239;if(this[_0x314406(0x108)]=this[_0x314406(0x109)][_0x314406(0x100)](!0x0),0x0==this[_0x314406(0x108)][_0x314406(0x107)][_0x314406(0xfc)])return void(this[_0x314406(0xff)]=[]);const _0x4214b2=this[_0x314406(0xf1)][_0x314406(0xeb)][_0x314406(0x102)](_0x156696=>({'node':_0x156696,'id':_0x337d3c(_0x156696,_0x314406(0xf9))})),_0x604861=this[_0x314406(0x108)][_0x314406(0xeb)][_0x314406(0x102)](_0x47c7d5=>({'node':_0x47c7d5,'id':_0x337d3c(_0x47c7d5,_0x314406(0xf9))||_0x56c8fd()})),_0x3eb98f=_0x398ef2(_0x4214b2,_0x604861,{'comparator':(_0x9e16a2,_0x19b730)=>_0x9e16a2['id']==_0x19b730['id'],'oneChangePerToken':!0x0});if(!this[_0x314406(0x101)]){for(;_0x3eb98f[_0x314406(0xfc)]&&_0x3eb98f[_0x3eb98f[_0x314406(0xfc)]-0x1][_0x314406(0xef)];)_0x3eb98f[_0x314406(0xea)]();}const _0x5196b3=_0x3eb98f[_0x314406(0x102)](_0x171943=>{const _0x114312=_0x314406,_0x207a00=_0x171943[_0x114312(0xf8)]?_0x114312(0xf6):_0x171943[_0x114312(0xef)]?_0x114312(0xef):_0x114312(0x106);return{'node':_0x171943[_0x114312(0xf3)][0x0][_0x114312(0xfd)],'type':_0x207a00,'id':_0x171943[_0x114312(0xf3)][0x0]['id']};});this[_0x314406(0xff)]=[{'changes':_0x5196b3,'state':_0x314406(0xfe),'index':0x0}];}[_0x583239(0xed)](_0x2d3b23,_0x587e74){return _0x587e74;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x470c(_0x5a9d96,_0x3ac049){var _0x5b7a0c=_0x5b7a();return _0x470c=function(_0x470cb0,_0x3459c5){_0x470cb0=_0x470cb0-0x19a;var _0x13572f=_0x5b7a0c[_0x470cb0];return _0x13572f;},_0x470c(_0x5a9d96,_0x3ac049);}var _0x5399b7=_0x470c;(function(_0x3d793e,_0x307439){var _0x190402=_0x470c,_0x3c9d5f=_0x3d793e();while(!![]){try{var _0x6e298d=-parseInt(_0x190402(0x19d))/0x1+-parseInt(_0x190402(0x1ab))/0x2*(parseInt(_0x190402(0x1a4))/0x3)+parseInt(_0x190402(0x19b))/0x4*(-parseInt(_0x190402(0x1a9))/0x5)+-parseInt(_0x190402(0x1a6))/0x6*(-parseInt(_0x190402(0x19a))/0x7)+-parseInt(_0x190402(0x1aa))/0x8+-parseInt(_0x190402(0x1a5))/0x9+parseInt(_0x190402(0x1a2))/0xa;if(_0x6e298d===_0x307439)break;else _0x3c9d5f['push'](_0x3c9d5f['shift']());}catch(_0x227f71){_0x3c9d5f['push'](_0x3c9d5f['shift']());}}}(_0x5b7a,0xbab48));import{Plugin as _0x5e930f}from'ckeditor5/src/core.js';import{CKEditorError as _0x2ece0e}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x5e930f{static get[_0x5399b7(0x19c)](){var _0x52720e=_0x5399b7;return _0x52720e(0x1a8);}static get[_0x5399b7(0x1a3)](){return!0x0;}static get[_0x5399b7(0x1a1)](){return!0x0;}[_0x5399b7(0x19e)](){var _0x3a0b81=_0x5399b7;if(!this[_0x3a0b81(0x19f)])throw new _0x2ece0e(_0x3a0b81(0x1a0),null);}}export class AIRequestError extends Error{constructor(_0x41be58){var _0x30952f=_0x5399b7;super(_0x41be58),this[_0x30952f(0x1ac)]=_0x30952f(0x1a7);}}function _0x5b7a(){var _0x29d05d=['5316228ncSFHl','18YIeOmK','AIRequestError','AIAdapter','1090465xfliCm','807944DwyBjF','8wQKnBE','name','64743rjshYf','4GvLzMt','pluginName','1404136zusqQB','afterInit','textAdapter','aiadapter-text-adapter-not-set','isPremiumPlugin','43684990OdnjWA','isOfficialPlugin','988191loYiJj'];_0x5b7a=function(){return _0x29d05d;};return _0x5b7a();}
23
+ var _0x9d04b5=_0x32ed;function _0x32ed(_0x4225af,_0x1004c5){var _0x236da9=_0x236d();return _0x32ed=function(_0x32ed39,_0x230b9b){_0x32ed39=_0x32ed39-0xbb;var _0x14d0dc=_0x236da9[_0x32ed39];return _0x14d0dc;},_0x32ed(_0x4225af,_0x1004c5);}(function(_0x27c760,_0xb26e9b){var _0x10fc13=_0x32ed,_0x47967e=_0x27c760();while(!![]){try{var _0x57c43b=parseInt(_0x10fc13(0xca))/0x1*(-parseInt(_0x10fc13(0xc6))/0x2)+parseInt(_0x10fc13(0xbb))/0x3+parseInt(_0x10fc13(0xbc))/0x4+parseInt(_0x10fc13(0xc8))/0x5+-parseInt(_0x10fc13(0xbe))/0x6+-parseInt(_0x10fc13(0xc0))/0x7+parseInt(_0x10fc13(0xc5))/0x8*(parseInt(_0x10fc13(0xbf))/0x9);if(_0x57c43b===_0xb26e9b)break;else _0x47967e['push'](_0x47967e['shift']());}catch(_0x31360b){_0x47967e['push'](_0x47967e['shift']());}}}(_0x236d,0xad35b));function _0x236d(){var _0x1ff84d=['AIRequestError','name','8GGCvEn','20cNnVzF','afterInit','6056840hpFsGE','aiadapter-text-adapter-not-set','123337GbntKC','AIAdapter','textAdapter','2681466GXngxb','5080316YESODZ','isOfficialPlugin','7046046kNTWSI','5689809TBmbWL','6232044FwKOkG','pluginName','isPremiumPlugin'];_0x236d=function(){return _0x1ff84d;};return _0x236d();}import{Plugin as _0x127947}from'ckeditor5/src/core.js';import{CKEditorError as _0x20d947}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x127947{static get[_0x9d04b5(0xc1)](){var _0x256288=_0x9d04b5;return _0x256288(0xcb);}static get[_0x9d04b5(0xbd)](){return!0x0;}static get[_0x9d04b5(0xc2)](){return!0x0;}[_0x9d04b5(0xc7)](){var _0x34878d=_0x9d04b5;if(!this[_0x34878d(0xcc)])throw new _0x20d947(_0x34878d(0xc9),null);}}export class AIRequestError extends Error{constructor(_0x1e5b22){var _0x3ee4a4=_0x9d04b5;super(_0x1e5b22),this[_0x3ee4a4(0xc4)]=_0x3ee4a4(0xc3);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36eaa5=_0x110a;(function(_0x2d3871,_0x48fcaf){const _0x276ff7=_0x110a,_0x5f29a7=_0x2d3871();while(!![]){try{const _0x5b2e0a=-parseInt(_0x276ff7(0x1cc))/0x1+-parseInt(_0x276ff7(0x1ba))/0x2+parseInt(_0x276ff7(0x1ca))/0x3*(-parseInt(_0x276ff7(0x1d8))/0x4)+parseInt(_0x276ff7(0x1bb))/0x5+parseInt(_0x276ff7(0x1c2))/0x6*(parseInt(_0x276ff7(0x1c4))/0x7)+parseInt(_0x276ff7(0x1d2))/0x8*(parseInt(_0x276ff7(0x1da))/0x9)+-parseInt(_0x276ff7(0x1d7))/0xa*(-parseInt(_0x276ff7(0x1cd))/0xb);if(_0x5b2e0a===_0x48fcaf)break;else _0x5f29a7['push'](_0x5f29a7['shift']());}catch(_0x1a31b0){_0x5f29a7['push'](_0x5f29a7['shift']());}}}(_0x5a1f,0xb1922));import{Plugin as _0x4fd681}from'ckeditor5/src/core.js';function _0x110a(_0x5ce040,_0xb3930a){const _0x5a1fa7=_0x5a1f();return _0x110a=function(_0x110adf,_0xaa3669){_0x110adf=_0x110adf-0x1b5;let _0x7aa2f0=_0x5a1fa7[_0x110adf];return _0x7aa2f0;},_0x110a(_0x5ce040,_0xb3930a);}import{CKEditorError as _0x50f6be}from'ckeditor5/src/utils.js';function _0x5a1f(){const _0x4491d1=['signal','1013891ronrmf','131835OzsgDi','init','application/json','sendRequest','name','88dfrKtO','aitextadapter-send-request-failed','aborted','requires','AI_ERROR_GET_HEADERS','1630kjQYXA','212204deuogF','get','1065249HsyXcZ','textAdapter','AI_ERROR_GET_PARAMETERS','locale','AbortError','editor','2631066pLpWLr','745080sRwlhS','resolve','_prepareRequestParameters','catch','makeRequest','reject','abortController','6tvrfsy','abort','3878553RVrwqe','_prepareRequestHeaders','assign','plugins','object','error','51luPuqD'];_0x5a1f=function(){return _0x4491d1;};return _0x5a1f();}import{AIAdapter as _0x33073c,AIRequestError as _0x39a942}from'./aiadapter.js';import{getTranslation as _0x48e2d6}from'../utils/common-translations.js';export class AITextAdapter extends _0x4fd681{[_0x36eaa5(0x1c1)];static get[_0x36eaa5(0x1d5)](){return[_0x33073c];}constructor(_0x1af275){const _0x56c3b4=_0x36eaa5;super(_0x1af275),this[_0x56c3b4(0x1c1)]=new AbortController();}[_0x36eaa5(0x1ce)](){const _0x12f534=_0x36eaa5;this[_0x12f534(0x1b9)][_0x12f534(0x1c7)][_0x12f534(0x1d9)](_0x33073c)[_0x12f534(0x1b5)]=this;}[_0x36eaa5(0x1c3)](){const _0x2851a8=_0x36eaa5;this[_0x2851a8(0x1c1)][_0x2851a8(0x1cb)][_0x2851a8(0x1d4)]||(this[_0x2851a8(0x1c1)][_0x2851a8(0x1c3)](),this[_0x2851a8(0x1c1)]=new AbortController());}async[_0x36eaa5(0x1bf)](_0x162182){const _0x4d534f=_0x36eaa5;return this[_0x4d534f(0x1d0)](_0x162182)[_0x4d534f(0x1be)](_0x5c5f0b=>{const _0x541159=_0x4d534f;if(_0x5c5f0b instanceof _0x39a942)return Promise[_0x541159(0x1c0)](_0x5c5f0b);if(_0x541159(0x1b8)==_0x5c5f0b[_0x541159(0x1d1)])return Promise[_0x541159(0x1bc)]();throw console[_0x541159(0x1c9)](_0x5c5f0b),new _0x50f6be(_0x541159(0x1d3),null);});}async[_0x36eaa5(0x1c5)](_0x3ed00b,_0x3c858b){const _0x2c9503=_0x36eaa5,_0x40bca8=this[_0x2c9503(0x1b9)][_0x2c9503(0x1b7)],_0x1590b4={'Content-Type':_0x2c9503(0x1cf)};if(_0x2c9503(0x1c8)==typeof _0x3ed00b)Object[_0x2c9503(0x1c6)](_0x1590b4,_0x3ed00b);else{if(_0x3ed00b)try{const _0x259994=await _0x3ed00b(_0x3c858b);Object[_0x2c9503(0x1c6)](_0x1590b4,_0x259994);}catch{return Promise[_0x2c9503(0x1c0)](new _0x39a942(_0x48e2d6(_0x40bca8,_0x2c9503(0x1d6))));}}return _0x1590b4;}async[_0x36eaa5(0x1bd)](_0x314580,_0x48082e){const _0x47eb8a=_0x36eaa5,_0x315f84=this[_0x47eb8a(0x1b9)][_0x47eb8a(0x1b7)];if(_0x47eb8a(0x1c8)==typeof _0x314580)return _0x314580;try{return await _0x314580(_0x48082e);}catch{return Promise[_0x47eb8a(0x1c0)](new _0x39a942(_0x48e2d6(_0x315f84,_0x47eb8a(0x1b6))));}}}
23
+ const _0x4cc9ae=_0x16f1;(function(_0x30f0bf,_0x43768c){const _0x37f7f4=_0x16f1,_0xabec42=_0x30f0bf();while(!![]){try{const _0x1640e3=parseInt(_0x37f7f4(0x15a))/0x1*(parseInt(_0x37f7f4(0x142))/0x2)+parseInt(_0x37f7f4(0x149))/0x3+-parseInt(_0x37f7f4(0x14b))/0x4+-parseInt(_0x37f7f4(0x15b))/0x5*(parseInt(_0x37f7f4(0x14d))/0x6)+parseInt(_0x37f7f4(0x146))/0x7+parseInt(_0x37f7f4(0x141))/0x8*(-parseInt(_0x37f7f4(0x15d))/0x9)+-parseInt(_0x37f7f4(0x14f))/0xa*(-parseInt(_0x37f7f4(0x161))/0xb);if(_0x1640e3===_0x43768c)break;else _0xabec42['push'](_0xabec42['shift']());}catch(_0x350c72){_0xabec42['push'](_0xabec42['shift']());}}}(_0x54e0,0xabce9));import{Plugin as _0x17b6c2}from'ckeditor5/src/core.js';import{CKEditorError as _0x55dab1}from'ckeditor5/src/utils.js';function _0x16f1(_0x505df6,_0x136a03){const _0x54e0fd=_0x54e0();return _0x16f1=function(_0x16f12a,_0x10d3b1){_0x16f12a=_0x16f12a-0x13c;let _0x3446f7=_0x54e0fd[_0x16f12a];return _0x3446f7;},_0x16f1(_0x505df6,_0x136a03);}import{AIAdapter as _0x10528c,AIRequestError as _0xd54d58}from'./aiadapter.js';function _0x54e0(){const _0x3e8095=['application/json','7402584PhjpWO','get','requires','2556348rDnFKW','abortController','2619200NHNYRm','AI_ERROR_GET_HEADERS','10560SXTNXF','reject','950xTDEAp','editor','locale','textAdapter','makeRequest','plugins','_prepareRequestParameters','_prepareRequestHeaders','resolve','abort','aitextadapter-send-request-failed','53uCXHEp','2795RImxgU','object','2470761oAECMl','name','signal','AbortError','119317KybKaK','sendRequest','catch','init','aborted','AI_ERROR_GET_PARAMETERS','40GBdINX','29242tJWGDG','assign','error'];_0x54e0=function(){return _0x3e8095;};return _0x54e0();}import{getTranslation as _0x779817}from'../utils/common-translations.js';export class AITextAdapter extends _0x17b6c2{[_0x4cc9ae(0x14a)];static get[_0x4cc9ae(0x148)](){return[_0x10528c];}constructor(_0x8cf0dc){const _0x197321=_0x4cc9ae;super(_0x8cf0dc),this[_0x197321(0x14a)]=new AbortController();}[_0x4cc9ae(0x13e)](){const _0x4f5c81=_0x4cc9ae;this[_0x4f5c81(0x150)][_0x4f5c81(0x154)][_0x4f5c81(0x147)](_0x10528c)[_0x4f5c81(0x152)]=this;}[_0x4cc9ae(0x158)](){const _0x2c95f0=_0x4cc9ae;this[_0x2c95f0(0x14a)][_0x2c95f0(0x15f)][_0x2c95f0(0x13f)]||(this[_0x2c95f0(0x14a)][_0x2c95f0(0x158)](),this[_0x2c95f0(0x14a)]=new AbortController());}async[_0x4cc9ae(0x153)](_0x1b46d9){const _0x4204cb=_0x4cc9ae;return this[_0x4204cb(0x13c)](_0x1b46d9)[_0x4204cb(0x13d)](_0x3070ad=>{const _0x1709d8=_0x4204cb;if(_0x3070ad instanceof _0xd54d58)return Promise[_0x1709d8(0x14e)](_0x3070ad);if(_0x1709d8(0x160)==_0x3070ad[_0x1709d8(0x15e)])return Promise[_0x1709d8(0x157)]();throw console[_0x1709d8(0x144)](_0x3070ad),new _0x55dab1(_0x1709d8(0x159),null);});}async[_0x4cc9ae(0x156)](_0x2d5244,_0xa32564){const _0x313e33=_0x4cc9ae,_0x1ebd33=this[_0x313e33(0x150)][_0x313e33(0x151)],_0x10fc21={'Content-Type':_0x313e33(0x145)};if(_0x313e33(0x15c)==typeof _0x2d5244)Object[_0x313e33(0x143)](_0x10fc21,_0x2d5244);else{if(_0x2d5244)try{const _0x1f2bdc=await _0x2d5244(_0xa32564);Object[_0x313e33(0x143)](_0x10fc21,_0x1f2bdc);}catch{return Promise[_0x313e33(0x14e)](new _0xd54d58(_0x779817(_0x1ebd33,_0x313e33(0x14c))));}}return _0x10fc21;}async[_0x4cc9ae(0x155)](_0x3a68e9,_0x18497d){const _0x289d0f=_0x4cc9ae,_0x1a66d7=this[_0x289d0f(0x150)][_0x289d0f(0x151)];if(_0x289d0f(0x15c)==typeof _0x3a68e9)return _0x3a68e9;try{return await _0x3a68e9(_0x18497d);}catch{return Promise[_0x289d0f(0x14e)](new _0xd54d58(_0x779817(_0x1a66d7,_0x289d0f(0x140))));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d6c7e=_0x5ed2;(function(_0x1c5d70,_0x247661){const _0xac003b=_0x5ed2,_0x6f200f=_0x1c5d70();while(!![]){try{const _0xe25d56=-parseInt(_0xac003b(0x1b9))/0x1*(parseInt(_0xac003b(0x1d9))/0x2)+-parseInt(_0xac003b(0x1ca))/0x3*(parseInt(_0xac003b(0x1bc))/0x4)+parseInt(_0xac003b(0x1d7))/0x5+-parseInt(_0xac003b(0x1c1))/0x6*(-parseInt(_0xac003b(0x1e3))/0x7)+-parseInt(_0xac003b(0x1cb))/0x8*(parseInt(_0xac003b(0x1e2))/0x9)+parseInt(_0xac003b(0x1e8))/0xa*(-parseInt(_0xac003b(0x1ba))/0xb)+-parseInt(_0xac003b(0x1fe))/0xc*(-parseInt(_0xac003b(0x1ea))/0xd);if(_0xe25d56===_0x247661)break;else _0x6f200f['push'](_0x6f200f['shift']());}catch(_0x2bef74){_0x6f200f['push'](_0x6f200f['shift']());}}}(_0x2a4d,0x73db3));function _0x5ed2(_0x164418,_0x1b97c0){const _0x2a4dc5=_0x2a4d();return _0x5ed2=function(_0x5ed257,_0x134635){_0x5ed257=_0x5ed257-0x1b6;let _0x58cd29=_0x2a4dc5[_0x5ed257];return _0x58cd29;},_0x5ed2(_0x164418,_0x1b97c0);}import{AITextAdapter as _0x2fba8d}from'./aitextadapter.js';function _0x2a4d(){const _0x3c2eaf=['stringify','_processAWSRequest','define','_prepareRequestHeaders','POST','Instruction:\x0a','data','3630876rJMltH','anthropic.claude-v2','_readStreamableResponse','_apiUrl','read','bedrock-2023-05-31','signal','_requestParameters','split','send','ai.assistant.adapter.aws.requestParameters','ai21.j2','completion','application/json','2668UyAzRV','250877TMJnKO','editor','268lsQeEs','ai.assistant.adapter.aws.bedrockClientConfig','chunk','decode','completions','112998JpWXxH','body','_readStaticResponse','config','\x0a[/INST]','abortController','meta.llama','_requestHeaders','getReader','723sQtnWh','1859432ejvuTK','cohere.command','generations','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','anthropic.claude','_getGeneratedText','AWSTextAdapter','pluginName','_processProxyRequest','map','locale','Human:\x0a','4103205BgRwKJ','AI_ERROR_UNSUPPORTED_MODEL','518EsbukL','json','<<SYS>>\x0a','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','\x0a\x0aAssistant:','join','text','test','preparePrompt','18PbqVZn','203PIjzqF','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','parse','bytes','getModelFamily','10dCiExq','get','13mHlIJE','length','filter','\x0a<</SYS>>\x0a[INST]\x0a','utf-8','ai.assistant.adapter.aws.requestHeaders','_bedrockClientConfig','resolve','generation','_prepareRequestParameters','_readAsyncIterableResponse','ai.assistant.adapter.aws.apiUrl','sendRequest'];_0x2a4d=function(){return _0x3c2eaf;};return _0x2a4d();}import{AIRequestError as _0x112ad9}from'./aiadapter.js';import{BedrockRuntimeClient as _0x56567e,InvokeModelCommand as _0x2f502a,InvokeModelWithResponseStreamCommand as _0x311c61}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x5ee37e}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x2fba8d{[_0x2d6c7e(0x201)];[_0x2d6c7e(0x1c8)];[_0x2d6c7e(0x1f0)];[_0x2d6c7e(0x205)];static get[_0x2d6c7e(0x1d2)](){const _0x3142c7=_0x2d6c7e;return _0x3142c7(0x1d1);}constructor(_0x43d880){const _0x3300a4=_0x2d6c7e;super(_0x43d880),_0x43d880[_0x3300a4(0x1c4)][_0x3300a4(0x1e9)](_0x3300a4(0x208))||_0x43d880[_0x3300a4(0x1c4)][_0x3300a4(0x1f9)](_0x3300a4(0x208),{'model':_0x3300a4(0x1ff),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x3300a4(0x203),'stream':!0x0}),this[_0x3300a4(0x201)]=_0x43d880[_0x3300a4(0x1c4)][_0x3300a4(0x1e9)](_0x3300a4(0x1f5)),this[_0x3300a4(0x1f0)]=_0x43d880[_0x3300a4(0x1c4)][_0x3300a4(0x1e9)](_0x3300a4(0x1bd)),this[_0x3300a4(0x1c8)]=_0x43d880[_0x3300a4(0x1c4)][_0x3300a4(0x1e9)](_0x3300a4(0x1ef)),this[_0x3300a4(0x205)]=_0x43d880[_0x3300a4(0x1c4)][_0x3300a4(0x1e9)](_0x3300a4(0x208));}async[_0x2d6c7e(0x1f6)]({query:_0x42e679,context:_0x538bfa,onData:_0x5e77f9,actionId:_0x5a0db5}){const _0x5927b3=_0x2d6c7e,{model:_0x1f579d,stream:_0x2c7dbf,..._0x4209ec}=await this[_0x5927b3(0x1f3)](this[_0x5927b3(0x205)],_0x5a0db5),_0x1ff942={'prompt':await this[_0x5927b3(0x1e1)](_0x42e679,_0x538bfa,_0x1f579d,_0x5a0db5),..._0x4209ec};this[_0x5927b3(0x201)]?await this[_0x5927b3(0x1d3)](_0x1ff942,_0x1f579d,_0x2c7dbf,_0x5e77f9,_0x5a0db5):await this[_0x5927b3(0x1f8)](_0x1ff942,_0x1f579d,_0x2c7dbf,_0x5e77f9);}async[_0x2d6c7e(0x1e1)](_0x38f9db,_0x3172a6,_0x551562,_0x2a541b){const _0x260b40=_0x2d6c7e;let _0x99a52c,_0xd7075a;return _0x3172a6?(_0x99a52c=_0x260b40(0x1ce),_0xd7075a=_0x260b40(0x1fc)+_0x38f9db+_0x260b40(0x1e4)+_0x3172a6):(_0x99a52c=_0x260b40(0x1dc),_0xd7075a=_0x38f9db),_0x260b40(0x1c7)==this[_0x260b40(0x1e7)](_0x551562)?_0x260b40(0x1db)+_0x99a52c+_0x260b40(0x1ed)+_0xd7075a+_0x260b40(0x1c5):_0x260b40(0x1d6)+_0x99a52c+'\x0a'+_0xd7075a+_0x260b40(0x1dd);}[_0x2d6c7e(0x1e7)](_0x58d70d){const _0x346cd6=_0x2d6c7e;if(/^anthropic\.claude/[_0x346cd6(0x1e0)](_0x58d70d))return _0x346cd6(0x1cf);if(/^ai21\.j2/[_0x346cd6(0x1e0)](_0x58d70d))return _0x346cd6(0x1b6);if(/^cohere\.command/[_0x346cd6(0x1e0)](_0x58d70d))return _0x346cd6(0x1cc);if(/^meta\.llama/[_0x346cd6(0x1e0)](_0x58d70d))return _0x346cd6(0x1c7);throw new _0x112ad9(_0x5ee37e(this[_0x346cd6(0x1bb)][_0x346cd6(0x1d5)],_0x346cd6(0x1d8),_0x58d70d));}async[_0x2d6c7e(0x1d3)](_0xcccc1d,_0x19d097,_0x144789,_0x829936,_0x428225){const _0x3df878=_0x2d6c7e,_0x157a13={'method':_0x3df878(0x1fb),'headers':await this[_0x3df878(0x1fa)](this[_0x3df878(0x1c8)],_0x428225),'body':JSON[_0x3df878(0x1f7)]({..._0xcccc1d,'model':_0x19d097,'stream':_0x144789}),'signal':this[_0x3df878(0x1c6)][_0x3df878(0x204)]},_0x26478e=await fetch(this[_0x3df878(0x201)],_0x157a13);_0x144789?await this[_0x3df878(0x200)](_0x26478e,_0x19d097,_0x829936):await this[_0x3df878(0x1c3)](_0x26478e,_0x19d097,_0x829936);}async[_0x2d6c7e(0x1f8)](_0x2c477e,_0x2d314b,_0x102b30,_0x1fd65d){const _0x8c4935=_0x2d6c7e,_0x50efc5=new _0x56567e(this[_0x8c4935(0x1f0)]),_0x380cb0={'body':JSON[_0x8c4935(0x1f7)](_0x2c477e),'contentType':_0x8c4935(0x1b8),'accept':_0x8c4935(0x1b8),'modelId':_0x2d314b};let _0x209689;if(_0x102b30){const _0x350852=new _0x311c61(_0x380cb0);_0x209689=await _0x50efc5[_0x8c4935(0x207)](_0x350852,{'abortSignal':this[_0x8c4935(0x1c6)][_0x8c4935(0x204)]}),await this[_0x8c4935(0x1f4)](_0x209689,_0x2d314b,_0x1fd65d);}else{const _0x475abd=new _0x2f502a(_0x380cb0);_0x209689=await _0x50efc5[_0x8c4935(0x207)](_0x475abd,{'abortSignal':this[_0x8c4935(0x1c6)][_0x8c4935(0x204)]}),await this[_0x8c4935(0x1c3)](_0x209689,_0x2d314b,_0x1fd65d);}}async[_0x2d6c7e(0x1f4)](_0x1a26ff,_0x40a904,_0xb6a234){const _0x8ae020=_0x2d6c7e,_0x47f63b=_0x1a26ff[_0x8ae020(0x1c2)],_0x500e1e=new TextDecoder(_0x8ae020(0x1ee));let _0x25fd3e='';for await(const _0x3f2d70 of _0x47f63b)if(_0x3f2d70[_0x8ae020(0x1be)]){const _0x195d5c=_0x500e1e[_0x8ae020(0x1bf)](_0x3f2d70[_0x8ae020(0x1be)][_0x8ae020(0x1e6)]),_0x361092=JSON[_0x8ae020(0x1e5)](_0x195d5c);_0x25fd3e+=this[_0x8ae020(0x1d0)](_0x361092,_0x40a904),_0xb6a234(_0x25fd3e);}return Promise[_0x8ae020(0x1f1)]();}async[_0x2d6c7e(0x200)](_0xc451b3,_0xce3b7f,_0x5794f2){const _0x34c706=_0x2d6c7e,_0x419155=_0xc451b3[_0x34c706(0x1c2)],_0x516906=new TextDecoder(_0x34c706(0x1ee)),_0x43edf1=_0x419155[_0x34c706(0x1c9)]();let _0x5d7c8f='',_0x437029='',_0x506102=!0x1;for(;!_0x506102;){const {done:_0x33536d,value:_0x2b1250}=await _0x43edf1[_0x34c706(0x202)]();if(_0x506102=_0x33536d,_0x506102)break;const _0x34d6c6=(_0x5d7c8f+_0x516906[_0x34c706(0x1bf)](_0x2b1250))[_0x34c706(0x206)]('\x0a')[_0x34c706(0x1d4)](_0x4e38bc=>{const _0x526a5f=_0x34c706;try{return _0x5d7c8f='',JSON[_0x526a5f(0x1e5)](_0x4e38bc);}catch{return _0x5d7c8f=_0x4e38bc,null;}})[_0x34c706(0x1ec)](_0x468726=>null!==_0x468726);_0x34d6c6[_0x34c706(0x1eb)]&&(_0x437029+=_0x34d6c6[_0x34c706(0x1d4)](_0x27af03=>this[_0x34c706(0x1d0)](_0x27af03,_0xce3b7f))[_0x34c706(0x1de)](''),_0x5794f2(_0x437029));}return Promise[_0x34c706(0x1f1)]();}async[_0x2d6c7e(0x1c3)](_0x3999bc,_0x3d4940,_0x50ec9e){const _0x16b2d6=_0x2d6c7e;let _0x16d090;return _0x16d090=_0x3999bc instanceof Response?await _0x3999bc[_0x16b2d6(0x1da)]():JSON[_0x16b2d6(0x1e5)](new TextDecoder(_0x16b2d6(0x1ee))[_0x16b2d6(0x1bf)](_0x3999bc[_0x16b2d6(0x1c2)])),(_0x50ec9e(this[_0x16b2d6(0x1d0)](_0x16d090,_0x3d4940)),Promise[_0x16b2d6(0x1f1)]());}[_0x2d6c7e(0x1d0)](_0x4a8255,_0x4a2e25){const _0x287c7e=_0x2d6c7e;switch(this[_0x287c7e(0x1e7)](_0x4a2e25)){case _0x287c7e(0x1cf):return _0x4a8255[_0x287c7e(0x1b7)];case _0x287c7e(0x1b6):return _0x4a8255[_0x287c7e(0x1c0)][0x0][_0x287c7e(0x1fd)][_0x287c7e(0x1df)];case _0x287c7e(0x1cc):return _0x4a8255[_0x287c7e(0x1cd)][0x0][_0x287c7e(0x1df)];case _0x287c7e(0x1c7):return _0x4a8255[_0x287c7e(0x1f2)];}}}
23
+ const _0x344772=_0x1505;function _0x1505(_0x4a3440,_0x33d072){const _0xbc0b01=_0xbc0b();return _0x1505=function(_0x1505d4,_0x112abc){_0x1505d4=_0x1505d4-0x179;let _0x3d52d5=_0xbc0b01[_0x1505d4];return _0x3d52d5;},_0x1505(_0x4a3440,_0x33d072);}(function(_0x4ea322,_0x16d617){const _0x6ca8fe=_0x1505,_0x400667=_0x4ea322();while(!![]){try{const _0x5e1755=parseInt(_0x6ca8fe(0x1af))/0x1+-parseInt(_0x6ca8fe(0x1c6))/0x2*(parseInt(_0x6ca8fe(0x185))/0x3)+-parseInt(_0x6ca8fe(0x1ae))/0x4*(parseInt(_0x6ca8fe(0x190))/0x5)+parseInt(_0x6ca8fe(0x1b2))/0x6*(-parseInt(_0x6ca8fe(0x181))/0x7)+parseInt(_0x6ca8fe(0x1a3))/0x8+-parseInt(_0x6ca8fe(0x1c2))/0x9+-parseInt(_0x6ca8fe(0x17f))/0xa*(-parseInt(_0x6ca8fe(0x18a))/0xb);if(_0x5e1755===_0x16d617)break;else _0x400667['push'](_0x400667['shift']());}catch(_0x5ccf1d){_0x400667['push'](_0x400667['shift']());}}}(_0xbc0b,0x381f8));import{AITextAdapter as _0x344dfa}from'./aitextadapter.js';import{AIRequestError as _0x495a54}from'./aiadapter.js';import{BedrockRuntimeClient as _0x1d63af,InvokeModelCommand as _0xa67f07,InvokeModelWithResponseStreamCommand as _0x25183b}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x2e1534}from'../utils/common-translations.js';function _0xbc0b(){const _0x41aad8=['602IkHNwj','getReader','Instruction:\x0a','_readAsyncIterableResponse','3261BCgXse','Human:\x0a','\x0a[/INST]','ai.assistant.adapter.aws.bedrockClientConfig','_prepareRequestHeaders','4744619ANBNeO','_processProxyRequest','decode','get','_readStaticResponse','anthropic.claude-v2','5MqSpAK','define','bytes','ai.assistant.adapter.aws.requestHeaders','\x0a\x0aAssistant:','sendRequest','config','abortController','chunk','POST','_prepareRequestParameters','generation','ai.assistant.adapter.aws.apiUrl','read','stringify','cohere.command','completions','meta.llama','split','3407824vzwCGp','_requestParameters','ai.assistant.adapter.aws.requestParameters','data','preparePrompt','AI_ERROR_UNSUPPORTED_MODEL','\x0a<</SYS>>\x0a[INST]\x0a','map','generations','completion','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','1014632BmdQRU','279488zBwdeF','<<SYS>>\x0a','body','30126ehbZBg','ai21.j2','utf-8','_apiUrl','AWSTextAdapter','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','test','_readStreamableResponse','_requestHeaders','_processAWSRequest','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_bedrockClientConfig','bedrock-2023-05-31','length','signal','pluginName','1533258JvhkNN','parse','send','json','94HTXySE','anthropic.claude','filter','join','locale','text','resolve','_getGeneratedText','editor','getModelFamily','10ExKXFs','application/json'];_0xbc0b=function(){return _0x41aad8;};return _0xbc0b();}export class AWSTextAdapter extends _0x344dfa{[_0x344772(0x1b5)];[_0x344772(0x1ba)];[_0x344772(0x1bd)];[_0x344772(0x1a4)];static get[_0x344772(0x1c1)](){const _0x1a48d8=_0x344772;return _0x1a48d8(0x1b6);}constructor(_0x2d00b3){const _0x4810f8=_0x344772;super(_0x2d00b3),_0x2d00b3[_0x4810f8(0x196)][_0x4810f8(0x18d)](_0x4810f8(0x1a5))||_0x2d00b3[_0x4810f8(0x196)][_0x4810f8(0x191)](_0x4810f8(0x1a5),{'model':_0x4810f8(0x18f),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x4810f8(0x1be),'stream':!0x0}),this[_0x4810f8(0x1b5)]=_0x2d00b3[_0x4810f8(0x196)][_0x4810f8(0x18d)](_0x4810f8(0x19c)),this[_0x4810f8(0x1bd)]=_0x2d00b3[_0x4810f8(0x196)][_0x4810f8(0x18d)](_0x4810f8(0x188)),this[_0x4810f8(0x1ba)]=_0x2d00b3[_0x4810f8(0x196)][_0x4810f8(0x18d)](_0x4810f8(0x193)),this[_0x4810f8(0x1a4)]=_0x2d00b3[_0x4810f8(0x196)][_0x4810f8(0x18d)](_0x4810f8(0x1a5));}async[_0x344772(0x195)]({query:_0x1d0fed,context:_0x550605,onData:_0x3541a8,actionId:_0x57b401}){const _0x59af41=_0x344772,{model:_0x2ebe07,stream:_0x3794ad,..._0x4e5284}=await this[_0x59af41(0x19a)](this[_0x59af41(0x1a4)],_0x57b401),_0x27bf6f={'prompt':await this[_0x59af41(0x1a7)](_0x1d0fed,_0x550605,_0x2ebe07,_0x57b401),..._0x4e5284};this[_0x59af41(0x1b5)]?await this[_0x59af41(0x18b)](_0x27bf6f,_0x2ebe07,_0x3794ad,_0x3541a8,_0x57b401):await this[_0x59af41(0x1bb)](_0x27bf6f,_0x2ebe07,_0x3794ad,_0x3541a8);}async[_0x344772(0x1a7)](_0x5f1363,_0x5b6bee,_0x5d0e72,_0x34e9b1){const _0x5ecb09=_0x344772;let _0x3ee9ef,_0xa4558b;return _0x5b6bee?(_0x3ee9ef=_0x5ecb09(0x1b7),_0xa4558b=_0x5ecb09(0x183)+_0x5f1363+_0x5ecb09(0x1bc)+_0x5b6bee):(_0x3ee9ef=_0x5ecb09(0x1ad),_0xa4558b=_0x5f1363),_0x5ecb09(0x1a1)==this[_0x5ecb09(0x17e)](_0x5d0e72)?_0x5ecb09(0x1b0)+_0x3ee9ef+_0x5ecb09(0x1a9)+_0xa4558b+_0x5ecb09(0x187):_0x5ecb09(0x186)+_0x3ee9ef+'\x0a'+_0xa4558b+_0x5ecb09(0x194);}[_0x344772(0x17e)](_0x4b12c2){const _0x8f28de=_0x344772;if(/^anthropic\.claude/[_0x8f28de(0x1b8)](_0x4b12c2))return _0x8f28de(0x1c7);if(/^ai21\.j2/[_0x8f28de(0x1b8)](_0x4b12c2))return _0x8f28de(0x1b3);if(/^cohere\.command/[_0x8f28de(0x1b8)](_0x4b12c2))return _0x8f28de(0x19f);if(/^meta\.llama/[_0x8f28de(0x1b8)](_0x4b12c2))return _0x8f28de(0x1a1);throw new _0x495a54(_0x2e1534(this[_0x8f28de(0x17d)][_0x8f28de(0x179)],_0x8f28de(0x1a8),_0x4b12c2));}async[_0x344772(0x18b)](_0x113a09,_0xf4cca3,_0x55e817,_0x417352,_0x4c15a6){const _0x5eef71=_0x344772,_0x3e21e9={'method':_0x5eef71(0x199),'headers':await this[_0x5eef71(0x189)](this[_0x5eef71(0x1ba)],_0x4c15a6),'body':JSON[_0x5eef71(0x19e)]({..._0x113a09,'model':_0xf4cca3,'stream':_0x55e817}),'signal':this[_0x5eef71(0x197)][_0x5eef71(0x1c0)]},_0x4d88af=await fetch(this[_0x5eef71(0x1b5)],_0x3e21e9);_0x55e817?await this[_0x5eef71(0x1b9)](_0x4d88af,_0xf4cca3,_0x417352):await this[_0x5eef71(0x18e)](_0x4d88af,_0xf4cca3,_0x417352);}async[_0x344772(0x1bb)](_0x493eff,_0x19a569,_0x420eba,_0x39e324){const _0x29c50a=_0x344772,_0x499a9b=new _0x1d63af(this[_0x29c50a(0x1bd)]),_0x1218bc={'body':JSON[_0x29c50a(0x19e)](_0x493eff),'contentType':_0x29c50a(0x180),'accept':_0x29c50a(0x180),'modelId':_0x19a569};let _0x1c59fa;if(_0x420eba){const _0x43d3dc=new _0x25183b(_0x1218bc);_0x1c59fa=await _0x499a9b[_0x29c50a(0x1c4)](_0x43d3dc,{'abortSignal':this[_0x29c50a(0x197)][_0x29c50a(0x1c0)]}),await this[_0x29c50a(0x184)](_0x1c59fa,_0x19a569,_0x39e324);}else{const _0x3de114=new _0xa67f07(_0x1218bc);_0x1c59fa=await _0x499a9b[_0x29c50a(0x1c4)](_0x3de114,{'abortSignal':this[_0x29c50a(0x197)][_0x29c50a(0x1c0)]}),await this[_0x29c50a(0x18e)](_0x1c59fa,_0x19a569,_0x39e324);}}async[_0x344772(0x184)](_0x290fef,_0x3c2e38,_0x502bbf){const _0x1b8fe5=_0x344772,_0x4310b9=_0x290fef[_0x1b8fe5(0x1b1)],_0x16a116=new TextDecoder(_0x1b8fe5(0x1b4));let _0xe536a0='';for await(const _0x19ab91 of _0x4310b9)if(_0x19ab91[_0x1b8fe5(0x198)]){const _0x394d62=_0x16a116[_0x1b8fe5(0x18c)](_0x19ab91[_0x1b8fe5(0x198)][_0x1b8fe5(0x192)]),_0x2c8509=JSON[_0x1b8fe5(0x1c3)](_0x394d62);_0xe536a0+=this[_0x1b8fe5(0x17c)](_0x2c8509,_0x3c2e38),_0x502bbf(_0xe536a0);}return Promise[_0x1b8fe5(0x17b)]();}async[_0x344772(0x1b9)](_0x4f30a7,_0x5a224c,_0x306b07){const _0x1e7e58=_0x344772,_0x47a493=_0x4f30a7[_0x1e7e58(0x1b1)],_0x57306f=new TextDecoder(_0x1e7e58(0x1b4)),_0x36168d=_0x47a493[_0x1e7e58(0x182)]();let _0x23bc93='',_0x55749c='',_0x314f5a=!0x1;for(;!_0x314f5a;){const {done:_0x3f454c,value:_0x7e067c}=await _0x36168d[_0x1e7e58(0x19d)]();if(_0x314f5a=_0x3f454c,_0x314f5a)break;const _0xf43241=(_0x23bc93+_0x57306f[_0x1e7e58(0x18c)](_0x7e067c))[_0x1e7e58(0x1a2)]('\x0a')[_0x1e7e58(0x1aa)](_0xbb90c6=>{const _0x39f9ab=_0x1e7e58;try{return _0x23bc93='',JSON[_0x39f9ab(0x1c3)](_0xbb90c6);}catch{return _0x23bc93=_0xbb90c6,null;}})[_0x1e7e58(0x1c8)](_0x58d996=>null!==_0x58d996);_0xf43241[_0x1e7e58(0x1bf)]&&(_0x55749c+=_0xf43241[_0x1e7e58(0x1aa)](_0x226d3f=>this[_0x1e7e58(0x17c)](_0x226d3f,_0x5a224c))[_0x1e7e58(0x1c9)](''),_0x306b07(_0x55749c));}return Promise[_0x1e7e58(0x17b)]();}async[_0x344772(0x18e)](_0x168d34,_0x138264,_0x5f238b){const _0xb16a92=_0x344772;let _0x9b9396;return _0x9b9396=_0x168d34 instanceof Response?await _0x168d34[_0xb16a92(0x1c5)]():JSON[_0xb16a92(0x1c3)](new TextDecoder(_0xb16a92(0x1b4))[_0xb16a92(0x18c)](_0x168d34[_0xb16a92(0x1b1)])),(_0x5f238b(this[_0xb16a92(0x17c)](_0x9b9396,_0x138264)),Promise[_0xb16a92(0x17b)]());}[_0x344772(0x17c)](_0x20891f,_0x3d033b){const _0x20b740=_0x344772;switch(this[_0x20b740(0x17e)](_0x3d033b)){case _0x20b740(0x1c7):return _0x20891f[_0x20b740(0x1ac)];case _0x20b740(0x1b3):return _0x20891f[_0x20b740(0x1a0)][0x0][_0x20b740(0x1a6)][_0x20b740(0x17a)];case _0x20b740(0x19f):return _0x20891f[_0x20b740(0x1ab)][0x0][_0x20b740(0x17a)];case _0x20b740(0x1a1):return _0x20891f[_0x20b740(0x19b)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1474ce=_0x2cd3;function _0x2cd3(_0x2838dc,_0x2d5a04){const _0x534f90=_0x534f();return _0x2cd3=function(_0x2cd3c6,_0xa512a8){_0x2cd3c6=_0x2cd3c6-0x16d;let _0x14f266=_0x534f90[_0x2cd3c6];return _0x14f266;},_0x2cd3(_0x2838dc,_0x2d5a04);}(function(_0x22b483,_0x39ba3f){const _0x4aab97=_0x2cd3,_0x2afba2=_0x22b483();while(!![]){try{const _0x4900f1=parseInt(_0x4aab97(0x19c))/0x1+parseInt(_0x4aab97(0x191))/0x2*(parseInt(_0x4aab97(0x170))/0x3)+-parseInt(_0x4aab97(0x19b))/0x4+parseInt(_0x4aab97(0x18a))/0x5+-parseInt(_0x4aab97(0x17e))/0x6+parseInt(_0x4aab97(0x1a9))/0x7*(parseInt(_0x4aab97(0x18b))/0x8)+-parseInt(_0x4aab97(0x180))/0x9;if(_0x4900f1===_0x39ba3f)break;else _0x2afba2['push'](_0x2afba2['shift']());}catch(_0x1363a5){_0x2afba2['push'](_0x2afba2['shift']());}}}(_0x534f,0x1bfbb));import{AITextAdapter as _0x52f435}from'./aitextadapter.js';import{AIRequestError as _0x3a65d1}from'./aiadapter.js';import{getTranslation as _0x3928a9}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x52f435{[_0x1474ce(0x17b)];[_0x1474ce(0x182)];[_0x1474ce(0x186)];static get[_0x1474ce(0x174)](){const _0x2f1272=_0x1474ce;return _0x2f1272(0x1a8);}constructor(_0x466d94){const _0x22b99c=_0x1474ce;super(_0x466d94),_0x466d94[_0x22b99c(0x1ab)][_0x22b99c(0x18c)](_0x22b99c(0x199),_0x22b99c(0x178)),_0x466d94[_0x22b99c(0x1ab)][_0x22b99c(0x193)](_0x22b99c(0x19f))||_0x466d94[_0x22b99c(0x1ab)][_0x22b99c(0x18c)](_0x22b99c(0x19f),{'model':_0x22b99c(0x19e),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x22b99c(0x17b)]=_0x466d94[_0x22b99c(0x1ab)][_0x22b99c(0x193)](_0x22b99c(0x199)),this[_0x22b99c(0x182)]=_0x466d94[_0x22b99c(0x1ab)][_0x22b99c(0x193)](_0x22b99c(0x195))||{},this[_0x22b99c(0x186)]=_0x466d94[_0x22b99c(0x1ab)][_0x22b99c(0x193)](_0x22b99c(0x19f));}async[_0x1474ce(0x192)]({query:_0x55a234,context:_0x4a1f7d,onData:_0x226c2c,actionId:_0x45a382}){const _0xe70db2=_0x1474ce,_0x489762=this[_0xe70db2(0x175)][_0xe70db2(0x17f)],_0x361ba4=await this[_0xe70db2(0x1b0)](_0x55a234,_0x4a1f7d,_0x45a382),_0x2e9c8a=await this[_0xe70db2(0x17c)](this[_0xe70db2(0x182)],_0x45a382),_0x2012d5=await this[_0xe70db2(0x173)](this[_0xe70db2(0x186)],_0x45a382),_0x47a837={'messages':_0x361ba4,..._0x2012d5},_0x43a79d={'method':_0xe70db2(0x184),'headers':_0x2e9c8a,'body':JSON[_0xe70db2(0x197)](_0x47a837),'signal':this[_0xe70db2(0x17a)][_0xe70db2(0x187)]},_0x494b28=await fetch(this[_0xe70db2(0x17b)],_0x43a79d);if(_0x494b28['ok'])return _0x2012d5[_0xe70db2(0x18f)]?await this[_0xe70db2(0x1ac)](_0x494b28,_0x226c2c):await this[_0xe70db2(0x1a0)](_0x494b28,_0x226c2c),Promise[_0xe70db2(0x1ad)]();{const _0x205cf5=await _0x494b28[_0xe70db2(0x190)]();return _0x205cf5[_0xe70db2(0x1a7)](_0xe70db2(0x181))?Promise[_0xe70db2(0x16f)](new _0x3a65d1(_0x3928a9(_0x489762,_0xe70db2(0x1a3)))):_0x205cf5[_0xe70db2(0x1a7)](_0xe70db2(0x1a1))?Promise[_0xe70db2(0x16f)](new _0x3a65d1(_0x3928a9(_0x489762,_0xe70db2(0x1a4)))):Promise[_0xe70db2(0x16f)](new Error(_0x205cf5));}}async[_0x1474ce(0x1b0)](_0x5a4da8,_0x2429e4,_0x47c710){const _0x303715=_0x1474ce;let _0xd0e706,_0x33eadb;return _0x2429e4?(_0xd0e706=_0x303715(0x16d),_0x33eadb=_0x303715(0x18d)+_0x5a4da8+_0x303715(0x198)+_0x2429e4):(_0xd0e706=_0x303715(0x16e),_0x33eadb=_0x5a4da8),[{'role':_0x303715(0x185),'content':_0xd0e706},{'role':_0x303715(0x1a2),'content':_0x33eadb}];}async[_0x1474ce(0x1ac)](_0x18a335,_0x153754){const _0x323788=_0x1474ce,_0x651f16=_0x18a335[_0x323788(0x177)][_0x323788(0x1a5)](),_0x386927=new TextDecoder();let _0x50201a='',_0x47ea2c='',_0x5f20a1='',_0x248dc0=!0x1;for(;!_0x248dc0;){const {done:_0x39fe95,value:_0x2a0309}=await _0x651f16[_0x323788(0x194)](),_0x21bac6=_0x50201a+_0x386927[_0x323788(0x1ae)](_0x2a0309);let _0x2ada33='';_0x248dc0=_0x39fe95;try{_0x2ada33=this[_0x323788(0x183)](_0x21bac6),_0x50201a='';}catch{_0x50201a=_0x21bac6;continue;}_0x47ea2c+=_0x2ada33,!_0x248dc0&&this[_0x323788(0x188)](_0x47ea2c)||_0x47ea2c&&(_0x5f20a1+=_0x47ea2c,_0x47ea2c='',_0x153754(_0x5f20a1));}return Promise[_0x323788(0x1ad)]();}async[_0x1474ce(0x1a0)](_0x5acb94,_0x30e554){const _0x4681b0=_0x1474ce;return _0x30e554((await _0x5acb94[_0x4681b0(0x171)]())[_0x4681b0(0x1aa)][0x0][_0x4681b0(0x189)][_0x4681b0(0x1b1)]),Promise[_0x4681b0(0x1ad)]();}[_0x1474ce(0x188)](_0x3141c8){const _0x18edd6=_0x1474ce,_0x59a121=_0x3141c8[_0x18edd6(0x1af)]('<')[_0x18edd6(0x18e)]!==_0x3141c8[_0x18edd6(0x1af)]('>')[_0x18edd6(0x18e)],_0x5cdf74=_0x3141c8[_0x18edd6(0x18e)]<0x1e;return _0x59a121&&_0x5cdf74;}[_0x1474ce(0x183)](_0x33fc29){const _0x3c4838=_0x1474ce;return _0x33fc29[_0x3c4838(0x1af)](/\n(?![^{]*\})/g)[_0x3c4838(0x19a)](_0x1fc147=>_0x1fc147[_0x3c4838(0x196)](_0x3c4838(0x179),''))[_0x3c4838(0x172)](_0x8c495f=>_0x8c495f&&_0x8c495f[_0x3c4838(0x18e)]>0x0&&_0x3c4838(0x176)!==_0x8c495f)[_0x3c4838(0x19a)](_0x2cd801=>{const _0xd64bde=_0x3c4838,{choices:_0x17aae9}=JSON[_0xd64bde(0x1a6)](_0x2cd801);if(_0x17aae9[0x0]?.[_0xd64bde(0x19d)]?.[_0xd64bde(0x1b1)])return _0x17aae9[0x0][_0xd64bde(0x19d)][_0xd64bde(0x1b1)];})[_0x3c4838(0x172)](_0x3cd7d1=>_0x3cd7d1)[_0x3c4838(0x17d)]('');}}function _0x534f(){const _0x1703c5=['body','https://api.openai.com/v1/chat/completions','data:\x20','abortController','_apiUrl','_prepareRequestHeaders','join','1043832AtUJQX','locale','2889738DSzqua','context_length_exceeded','_requestHeaders','_cleanUpData','POST','system','_requestParameters','signal','_isBufferIncomplete','message','793840UaWIYW','78024XvQHNn','define','Instruction:\x0a','length','stream','text','2xkdRjF','sendRequest','get','read','ai.assistant.adapter.openAI.requestHeaders','replace','stringify','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','ai.assistant.adapter.openAI.apiUrl','map','272036OsptnH','182804TLkWQa','delta','gpt-4o','ai.assistant.adapter.openAI.requestParameters','_readStaticResponse','Moderation','user','AI_ERROR_CONTEXT_LENGTH','AI_ERROR_MODERATION','getReader','parse','includes','OpenAITextAdapter','133ykaWQr','choices','config','_readStreamableResponse','resolve','decode','split','prepareMessages','content','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','reject','452409PmXUiN','json','filter','_prepareRequestParameters','pluginName','editor','[DONE]'];_0x534f=function(){return _0x1703c5;};return _0x534f();}
23
+ function _0x3369(){const _0x5e7632=['AI_ERROR_MODERATION','reject','join','pluginName','delta','text','678852OREDGY','4702491CSHCZh','_isBufferIncomplete','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','_cleanUpData','sendRequest','resolve','ai.assistant.adapter.openAI.apiUrl','https://api.openai.com/v1/chat/completions','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','config','3730688gVgAaE','1515yCaTIU','ai.assistant.adapter.openAI.requestParameters','signal','5164epwUYX','split','context_length_exceeded','6ZxocFu','Moderation','includes','Instruction:\x0a','POST','replace','body','getReader','7mLUDRl','decode','length','_requestHeaders','13047670ELAeOw','stream','_prepareRequestHeaders','OpenAITextAdapter','map','message','parse','prepareMessages','[DONE]','_requestParameters','stringify','AI_ERROR_CONTEXT_LENGTH','186065yKNuae','_apiUrl','gpt-4o','system','data:\x20','user','json','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','get','define','ai.assistant.adapter.openAI.requestHeaders','_prepareRequestParameters','locale','read','1514418fHoYFV','_readStreamableResponse','filter','content','_readStaticResponse','abortController','choices','editor'];_0x3369=function(){return _0x5e7632;};return _0x3369();}const _0x129ec5=_0x2982;(function(_0x3e444c,_0x7996de){const _0x2fba83=_0x2982,_0x4796fe=_0x3e444c();while(!![]){try{const _0x51148c=parseInt(_0x2fba83(0x18f))/0x1+parseInt(_0x2fba83(0x177))/0x2*(parseInt(_0x2fba83(0x1ab))/0x3)+parseInt(_0x2fba83(0x174))/0x4*(-parseInt(_0x2fba83(0x1b7))/0x5)+parseInt(_0x2fba83(0x19d))/0x6*(parseInt(_0x2fba83(0x17f))/0x7)+parseInt(_0x2fba83(0x1b6))/0x8+parseInt(_0x2fba83(0x1ac))/0x9+-parseInt(_0x2fba83(0x183))/0xa;if(_0x51148c===_0x7996de)break;else _0x4796fe['push'](_0x4796fe['shift']());}catch(_0x5473bd){_0x4796fe['push'](_0x4796fe['shift']());}}}(_0x3369,0x64267));function _0x2982(_0x1d27fb,_0x5111ba){const _0x336944=_0x3369();return _0x2982=function(_0x2982aa,_0x53c92d){_0x2982aa=_0x2982aa-0x173;let _0x37da96=_0x336944[_0x2982aa];return _0x37da96;},_0x2982(_0x1d27fb,_0x5111ba);}import{AITextAdapter as _0x565ad2}from'./aitextadapter.js';import{AIRequestError as _0x472507}from'./aiadapter.js';import{getTranslation as _0x48c0d2}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x565ad2{[_0x129ec5(0x190)];[_0x129ec5(0x182)];[_0x129ec5(0x18c)];static get[_0x129ec5(0x1a8)](){const _0x35b304=_0x129ec5;return _0x35b304(0x186);}constructor(_0x49e975){const _0x40f5a4=_0x129ec5;super(_0x49e975),_0x49e975[_0x40f5a4(0x1b5)][_0x40f5a4(0x198)](_0x40f5a4(0x1b2),_0x40f5a4(0x1b3)),_0x49e975[_0x40f5a4(0x1b5)][_0x40f5a4(0x197)](_0x40f5a4(0x1b8))||_0x49e975[_0x40f5a4(0x1b5)][_0x40f5a4(0x198)](_0x40f5a4(0x1b8),{'model':_0x40f5a4(0x191),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x40f5a4(0x190)]=_0x49e975[_0x40f5a4(0x1b5)][_0x40f5a4(0x197)](_0x40f5a4(0x1b2)),this[_0x40f5a4(0x182)]=_0x49e975[_0x40f5a4(0x1b5)][_0x40f5a4(0x197)](_0x40f5a4(0x199))||{},this[_0x40f5a4(0x18c)]=_0x49e975[_0x40f5a4(0x1b5)][_0x40f5a4(0x197)](_0x40f5a4(0x1b8));}async[_0x129ec5(0x1b0)]({query:_0x5c219b,context:_0x18d1e7,onData:_0x17b54f,actionId:_0x300d2b}){const _0x46dff1=_0x129ec5,_0x50e6ac=this[_0x46dff1(0x1a4)][_0x46dff1(0x19b)],_0x5daa74=await this[_0x46dff1(0x18a)](_0x5c219b,_0x18d1e7,_0x300d2b),_0x466acf=await this[_0x46dff1(0x185)](this[_0x46dff1(0x182)],_0x300d2b),_0x506628=await this[_0x46dff1(0x19a)](this[_0x46dff1(0x18c)],_0x300d2b),_0x4a6274={'messages':_0x5daa74,..._0x506628},_0x4db96c={'method':_0x46dff1(0x17b),'headers':_0x466acf,'body':JSON[_0x46dff1(0x18d)](_0x4a6274),'signal':this[_0x46dff1(0x1a2)][_0x46dff1(0x173)]},_0x27ed4e=await fetch(this[_0x46dff1(0x190)],_0x4db96c);if(_0x27ed4e['ok'])return _0x506628[_0x46dff1(0x184)]?await this[_0x46dff1(0x19e)](_0x27ed4e,_0x17b54f):await this[_0x46dff1(0x1a1)](_0x27ed4e,_0x17b54f),Promise[_0x46dff1(0x1b1)]();{const _0x1b2956=await _0x27ed4e[_0x46dff1(0x1aa)]();return _0x1b2956[_0x46dff1(0x179)](_0x46dff1(0x176))?Promise[_0x46dff1(0x1a6)](new _0x472507(_0x48c0d2(_0x50e6ac,_0x46dff1(0x18e)))):_0x1b2956[_0x46dff1(0x179)](_0x46dff1(0x178))?Promise[_0x46dff1(0x1a6)](new _0x472507(_0x48c0d2(_0x50e6ac,_0x46dff1(0x1a5)))):Promise[_0x46dff1(0x1a6)](new Error(_0x1b2956));}}async[_0x129ec5(0x18a)](_0x213550,_0x577ebd,_0x309144){const _0x282b02=_0x129ec5;let _0x42ea7a,_0x46fdbc;return _0x577ebd?(_0x42ea7a=_0x282b02(0x196),_0x46fdbc=_0x282b02(0x17a)+_0x213550+_0x282b02(0x1b4)+_0x577ebd):(_0x42ea7a=_0x282b02(0x1ae),_0x46fdbc=_0x213550),[{'role':_0x282b02(0x192),'content':_0x42ea7a},{'role':_0x282b02(0x194),'content':_0x46fdbc}];}async[_0x129ec5(0x19e)](_0x291738,_0x1e37f5){const _0x1ebf60=_0x129ec5,_0x53dd75=_0x291738[_0x1ebf60(0x17d)][_0x1ebf60(0x17e)](),_0x3b1d4f=new TextDecoder();let _0x1a0933='',_0x178107='',_0x52f3b6='',_0x1e1667=!0x1;for(;!_0x1e1667;){const {done:_0x432051,value:_0x48daff}=await _0x53dd75[_0x1ebf60(0x19c)](),_0x52f231=_0x1a0933+_0x3b1d4f[_0x1ebf60(0x180)](_0x48daff);let _0x27c8b9='';_0x1e1667=_0x432051;try{_0x27c8b9=this[_0x1ebf60(0x1af)](_0x52f231),_0x1a0933='';}catch{_0x1a0933=_0x52f231;continue;}_0x178107+=_0x27c8b9,!_0x1e1667&&this[_0x1ebf60(0x1ad)](_0x178107)||_0x178107&&(_0x52f3b6+=_0x178107,_0x178107='',_0x1e37f5(_0x52f3b6));}return Promise[_0x1ebf60(0x1b1)]();}async[_0x129ec5(0x1a1)](_0x25b1c1,_0x5be7bc){const _0x405fc4=_0x129ec5;return _0x5be7bc((await _0x25b1c1[_0x405fc4(0x195)]())[_0x405fc4(0x1a3)][0x0][_0x405fc4(0x188)][_0x405fc4(0x1a0)]),Promise[_0x405fc4(0x1b1)]();}[_0x129ec5(0x1ad)](_0x130b9a){const _0x3e5c91=_0x129ec5,_0x4295dc=_0x130b9a[_0x3e5c91(0x175)]('<')[_0x3e5c91(0x181)]!==_0x130b9a[_0x3e5c91(0x175)]('>')[_0x3e5c91(0x181)],_0x5b33b0=_0x130b9a[_0x3e5c91(0x181)]<0x1e;return _0x4295dc&&_0x5b33b0;}[_0x129ec5(0x1af)](_0x4779d3){const _0x4ad206=_0x129ec5;return _0x4779d3[_0x4ad206(0x175)](/\n(?![^{]*\})/g)[_0x4ad206(0x187)](_0x511806=>_0x511806[_0x4ad206(0x17c)](_0x4ad206(0x193),''))[_0x4ad206(0x19f)](_0x56e5c1=>_0x56e5c1&&_0x56e5c1[_0x4ad206(0x181)]>0x0&&_0x4ad206(0x18b)!==_0x56e5c1)[_0x4ad206(0x187)](_0x3b66ec=>{const _0x494e32=_0x4ad206,{choices:_0x5b5b5f}=JSON[_0x494e32(0x189)](_0x3b66ec);if(_0x5b5b5f[0x0]?.[_0x494e32(0x1a9)]?.[_0x494e32(0x1a0)])return _0x5b5b5f[0x0][_0x494e32(0x1a9)][_0x494e32(0x1a0)];})[_0x4ad206(0x19f)](_0x382c5f=>_0x382c5f)[_0x4ad206(0x1a7)]('');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x44274a=_0x4d86;function _0x4d86(_0x1914fb,_0x1d728c){const _0x2d70d4=_0x2d70();return _0x4d86=function(_0x4d8687,_0x194014){_0x4d8687=_0x4d8687-0x151;let _0x3d7a03=_0x2d70d4[_0x4d8687];return _0x3d7a03;},_0x4d86(_0x1914fb,_0x1d728c);}(function(_0x20ba60,_0x41530a){const _0x53d5dc=_0x4d86,_0x5ace2b=_0x20ba60();while(!![]){try{const _0x55e906=parseInt(_0x53d5dc(0x1a2))/0x1*(-parseInt(_0x53d5dc(0x194))/0x2)+-parseInt(_0x53d5dc(0x188))/0x3*(parseInt(_0x53d5dc(0x1ad))/0x4)+-parseInt(_0x53d5dc(0x1a6))/0x5+-parseInt(_0x53d5dc(0x187))/0x6+parseInt(_0x53d5dc(0x156))/0x7+-parseInt(_0x53d5dc(0x16a))/0x8*(parseInt(_0x53d5dc(0x162))/0x9)+parseInt(_0x53d5dc(0x197))/0xa*(parseInt(_0x53d5dc(0x175))/0xb);if(_0x55e906===_0x41530a)break;else _0x5ace2b['push'](_0x5ace2b['shift']());}catch(_0x5e1489){_0x5ace2b['push'](_0x5ace2b['shift']());}}}(_0x2d70,0x40cf1));function _0x2d70(){const _0xa8072d=['simplifyLanguage','translateChinese','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Make\x20shorter','config','changeTone','Confident','summarize','580282cHiiiC','ai.assistant.preserveComments','improveWriting','19488610sNmwPc','Summarize','French','Translate\x20the\x20content\x20to\x20German\x20language.','Hindi','Continue','Friendly','translateHindi','Professional','makeShorter','Make\x20longer','1ZsWyCw','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','continue','Spanish','2609690XyVtkg','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Change\x20tone','legal','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','2076YBRqDX','forEach','poetic','friendly','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','get','Improve\x20writing','isPremiumPlugin','confident','makeLonger','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','locale','Translate\x20the\x20content\x20to\x20French\x20language.','Casual','Legal','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','translatePortuguese','Simplified\x20Chinese','set','Arabic','AIAssistant','translateArabic','3174969FlqJdA','professional','ai.assistant.removeCommands','pluginName','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','groupId','translateGerman','Translate','push','Translate\x20the\x20content\x20to\x20English\x20language.','translate','define','1548CYYIKD','generate','translateSpanish','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Direct','English','ai.assistant.commands','includes','21064GbMXdW','concat','isOfficialPlugin','business','Journalism','Generate\x20from\x20selection','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','changeStyle','journalism','German','11XeJMnH','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Poetic','ai.assistant.extraCommandGroups','requires','commands','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','direct','filter','editOrReview','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','find','casual','translateFrench','translateEnglish','Change\x20style','Edit\x20or\x20review','2856114wgwaYx','2289kUwOGD','Simplify\x20language','Business','Portuguese'];_0x2d70=function(){return _0xa8072d;};return _0x2d70();}import{Plugin as _0x4dd805}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x3be282}from'./aiassistantui.js';import{AIAssistantEditing as _0x49f7ce}from'./aiassistantediting.js';import{getTranslation as _0x9ad938}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x4893c2}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x4dd805{static get[_0x44274a(0x179)](){return[_0x3be282,_0x49f7ce];}static get[_0x44274a(0x159)](){const _0x4fb086=_0x44274a;return _0x4fb086(0x154);}static get[_0x44274a(0x16c)](){return!0x0;}static get[_0x44274a(0x1b6)](){return!0x0;}constructor(_0x3a1dc1){const _0x37bba3=_0x44274a;super(_0x3a1dc1);const _0x2910eb=_0x3a1dc1[_0x37bba3(0x190)],_0x4f718a=_0x3a1dc1[_0x37bba3(0x1ba)];_0x2910eb[_0x37bba3(0x161)](_0x37bba3(0x195),!0x0),_0x2910eb[_0x37bba3(0x161)](_0x37bba3(0x168),getDefaultAICommands(_0x4f718a)),_0x2910eb[_0x37bba3(0x161)](_0x37bba3(0x178),[]),_0x2910eb[_0x37bba3(0x161)](_0x37bba3(0x158),[]);let _0x34c261=_0x4893c2(_0x2910eb[_0x37bba3(0x1b4)](_0x37bba3(0x168)),_0x4f718a);const _0x11cb0a=_0x2910eb[_0x37bba3(0x1b4)](_0x37bba3(0x178)),_0xe88be1=_0x2910eb[_0x37bba3(0x1b4)](_0x37bba3(0x158));_0x11cb0a[_0x37bba3(0x1ae)](_0x1dd30e=>{const _0x39cbea=_0x37bba3,_0x2c3727=_0x34c261[_0x39cbea(0x181)](_0x218879=>_0x218879[_0x39cbea(0x15b)]===_0x1dd30e[_0x39cbea(0x15b)]);_0x2c3727?_0x2c3727[_0x39cbea(0x17a)]=_0x2c3727[_0x39cbea(0x17a)][_0x39cbea(0x16b)](_0x1dd30e[_0x39cbea(0x17a)]):_0x34c261[_0x39cbea(0x15e)](_0x1dd30e);}),_0x34c261=_0x34c261[_0x37bba3(0x17e)](_0x3068fb=>!_0xe88be1[_0x37bba3(0x169)](_0x3068fb[_0x37bba3(0x15b)])),_0x34c261[_0x37bba3(0x1ae)](_0x5bb3f5=>{const _0xbbb0d4=_0x37bba3;_0x5bb3f5[_0xbbb0d4(0x17a)]=_0x5bb3f5[_0xbbb0d4(0x17a)][_0xbbb0d4(0x17e)](_0x1e1d66=>!_0xe88be1[_0xbbb0d4(0x169)](_0x1e1d66['id']));}),_0x2910eb[_0x37bba3(0x152)](_0x37bba3(0x168),_0x34c261);}}export function getDefaultAICommands(_0xa7bd0d){const _0x319a5a=_0x44274a;return[{'groupId':_0x319a5a(0x17f),'groupLabel':_0x9ad938(_0xa7bd0d,_0x319a5a(0x186)),'commands':[{'id':_0x319a5a(0x196),'label':_0x9ad938(_0xa7bd0d,_0x319a5a(0x1b5)),'prompt':_0x319a5a(0x180)},{'id':_0x319a5a(0x1a0),'label':_0x9ad938(_0xa7bd0d,_0x319a5a(0x18f)),'prompt':_0x319a5a(0x1b3)},{'id':_0x319a5a(0x1b8),'label':_0x9ad938(_0xa7bd0d,_0x319a5a(0x1a1)),'prompt':_0x319a5a(0x18e)},{'id':_0x319a5a(0x18c),'label':_0x9ad938(_0xa7bd0d,_0x319a5a(0x189)),'prompt':_0x319a5a(0x1ab)}]},{'groupId':_0x319a5a(0x163),'groupLabel':_0x9ad938(_0xa7bd0d,_0x319a5a(0x16f)),'commands':[{'id':_0x319a5a(0x193),'label':_0x9ad938(_0xa7bd0d,_0x319a5a(0x198)),'prompt':_0x319a5a(0x1b1)},{'id':_0x319a5a(0x1a4),'label':_0x9ad938(_0xa7bd0d,_0x319a5a(0x19c)),'prompt':_0x319a5a(0x17b)}]},{'groupId':_0x319a5a(0x191),'groupLabel':_0x9ad938(_0xa7bd0d,_0x319a5a(0x1a8)),'commands':[{'id':_0x319a5a(0x157),'label':_0x9ad938(_0xa7bd0d,_0x319a5a(0x19f)),'prompt':_0x319a5a(0x17c)},{'id':_0x319a5a(0x182),'label':_0x9ad938(_0xa7bd0d,_0x319a5a(0x1bc)),'prompt':_0x319a5a(0x1ac)},{'id':_0x319a5a(0x17d),'label':_0x9ad938(_0xa7bd0d,_0x319a5a(0x166)),'prompt':_0x319a5a(0x1aa)},{'id':_0x319a5a(0x1b7),'label':_0x9ad938(_0xa7bd0d,_0x319a5a(0x192)),'prompt':_0x319a5a(0x1a7)},{'id':_0x319a5a(0x1b0),'label':_0x9ad938(_0xa7bd0d,_0x319a5a(0x19d)),'prompt':_0x319a5a(0x1b9)}]},{'groupId':_0x319a5a(0x172),'groupLabel':_0x9ad938(_0xa7bd0d,_0x319a5a(0x185)),'commands':[{'id':_0x319a5a(0x16d),'label':_0x9ad938(_0xa7bd0d,_0x319a5a(0x18a)),'prompt':_0x319a5a(0x15a)},{'id':_0x319a5a(0x1a9),'label':_0x9ad938(_0xa7bd0d,_0x319a5a(0x1bd)),'prompt':_0x319a5a(0x1be)},{'id':_0x319a5a(0x173),'label':_0x9ad938(_0xa7bd0d,_0x319a5a(0x16e)),'prompt':_0x319a5a(0x171)},{'id':_0x319a5a(0x1af),'label':_0x9ad938(_0xa7bd0d,_0x319a5a(0x177)),'prompt':_0x319a5a(0x1a3)}]},{'groupId':_0x319a5a(0x160),'groupLabel':_0x9ad938(_0xa7bd0d,_0x319a5a(0x15d)),'commands':[{'id':_0x319a5a(0x184),'label':_0x9ad938(_0xa7bd0d,_0x319a5a(0x167)),'prompt':_0x319a5a(0x15f)},{'id':_0x319a5a(0x164),'label':_0x9ad938(_0xa7bd0d,_0x319a5a(0x1a5)),'prompt':_0x319a5a(0x1bf)},{'id':_0x319a5a(0x1c0),'label':_0x9ad938(_0xa7bd0d,_0x319a5a(0x18b)),'prompt':_0x319a5a(0x176)},{'id':_0x319a5a(0x15c),'label':_0x9ad938(_0xa7bd0d,_0x319a5a(0x174)),'prompt':_0x319a5a(0x19a)},{'id':_0x319a5a(0x183),'label':_0x9ad938(_0xa7bd0d,_0x319a5a(0x199)),'prompt':_0x319a5a(0x1bb)},{'id':_0x319a5a(0x18d),'label':_0x9ad938(_0xa7bd0d,_0x319a5a(0x151)),'prompt':_0x319a5a(0x170)},{'id':_0x319a5a(0x19e),'label':_0x9ad938(_0xa7bd0d,_0x319a5a(0x19b)),'prompt':_0x319a5a(0x1b2)},{'id':_0x319a5a(0x155),'label':_0x9ad938(_0xa7bd0d,_0x319a5a(0x153)),'prompt':_0x319a5a(0x165)}]}];}
23
+ const _0x3e0703=_0x5443;function _0x1047(){const _0xf90f49=['AIAssistant','ai.assistant.commands','professional','Simplify\x20language','set','192669ubgYbR','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','translateHindi','find','12764qVdJDV','ai.assistant.preserveComments','translatePortuguese','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Change\x20style','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Professional','Translate\x20the\x20content\x20to\x20French\x20language.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','ai.assistant.extraCommandGroups','poetic','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','120484fReTSl','includes','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Casual','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','journalism','push','Portuguese','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','18pqLyTX','Change\x20tone','Direct','isOfficialPlugin','makeShorter','confident','Translate\x20the\x20content\x20to\x20English\x20language.','translateGerman','Poetic','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Hindi','requires','19114huLZGD','Arabic','Spanish','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','88uCtdaR','translateChinese','summarize','continue','Make\x20longer','direct','Friendly','changeStyle','10xUpBHg','English','Summarize','German','changeTone','Translate\x20the\x20content\x20to\x20Hindi\x20language.','isPremiumPlugin','Simplified\x20Chinese','Continue','groupId','Legal','ai.assistant.removeCommands','translate','Edit\x20or\x20review','translateFrench','get','Make\x20shorter','984bLYhcK','105QtBZCU','filter','improveWriting','Translate','translateEnglish','casual','Journalism','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','makeLonger','commands','editOrReview','French','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','business','Confident','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','315306sVSXJU','concat','forEach','locale','translateArabic','friendly','Generate\x20from\x20selection','simplifyLanguage','Improve\x20writing','generate','pluginName','define','Business','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','78kswyVI','legal','353857BmgCQA','Translate\x20the\x20content\x20to\x20German\x20language.','729377mEZtsg','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','config','translateSpanish'];_0x1047=function(){return _0xf90f49;};return _0x1047();}(function(_0x4f7be3,_0x4839ca){const _0x3ab4c3=_0x5443,_0x23a727=_0x4f7be3();while(!![]){try{const _0x33f84c=parseInt(_0x3ab4c3(0x14d))/0x1+-parseInt(_0x3ab4c3(0x176))/0x2*(-parseInt(_0x3ab4c3(0x140))/0x3)+parseInt(_0x3ab4c3(0x152))/0x4*(-parseInt(_0x3ab4c3(0x122))/0x5)+-parseInt(_0x3ab4c3(0x16a))/0x6*(-parseInt(_0x3ab4c3(0x142))/0x7)+parseInt(_0x3ab4c3(0x17a))/0x8*(parseInt(_0x3ab4c3(0x132))/0x9)+parseInt(_0x3ab4c3(0x182))/0xa*(parseInt(_0x3ab4c3(0x144))/0xb)+parseInt(_0x3ab4c3(0x121))/0xc*(-parseInt(_0x3ab4c3(0x161))/0xd);if(_0x33f84c===_0x4839ca)break;else _0x23a727['push'](_0x23a727['shift']());}catch(_0x3b03fd){_0x23a727['push'](_0x23a727['shift']());}}}(_0x1047,0x3519a));import{Plugin as _0x292e46}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x7d0722}from'./aiassistantui.js';function _0x5443(_0x4b131e,_0xc38fbd){const _0x1047f4=_0x1047();return _0x5443=function(_0x54433f,_0x3b70e8){_0x54433f=_0x54433f-0x117;let _0x436fc0=_0x1047f4[_0x54433f];return _0x436fc0;},_0x5443(_0x4b131e,_0xc38fbd);}import{AIAssistantEditing as _0x18698e}from'./aiassistantediting.js';import{getTranslation as _0x51e3df}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x2cd5ef}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x292e46{static get[_0x3e0703(0x175)](){return[_0x7d0722,_0x18698e];}static get[_0x3e0703(0x13c)](){const _0x1c4d4b=_0x3e0703;return _0x1c4d4b(0x148);}static get[_0x3e0703(0x16d)](){return!0x0;}static get[_0x3e0703(0x188)](){return!0x0;}constructor(_0x42a113){const _0x83f405=_0x3e0703;super(_0x42a113);const _0x27691f=_0x42a113[_0x83f405(0x146)],_0x11e03f=_0x42a113[_0x83f405(0x135)];_0x27691f[_0x83f405(0x13d)](_0x83f405(0x153),!0x0),_0x27691f[_0x83f405(0x13d)](_0x83f405(0x149),getDefaultAICommands(_0x11e03f)),_0x27691f[_0x83f405(0x13d)](_0x83f405(0x15e),[]),_0x27691f[_0x83f405(0x13d)](_0x83f405(0x11b),[]);let _0x6416b0=_0x2cd5ef(_0x27691f[_0x83f405(0x11f)](_0x83f405(0x149)),_0x11e03f);const _0x43915b=_0x27691f[_0x83f405(0x11f)](_0x83f405(0x15e)),_0xc15ae0=_0x27691f[_0x83f405(0x11f)](_0x83f405(0x11b));_0x43915b[_0x83f405(0x134)](_0x250664=>{const _0xa84d19=_0x83f405,_0x55104c=_0x6416b0[_0xa84d19(0x151)](_0x1235b1=>_0x1235b1[_0xa84d19(0x119)]===_0x250664[_0xa84d19(0x119)]);_0x55104c?_0x55104c[_0xa84d19(0x12b)]=_0x55104c[_0xa84d19(0x12b)][_0xa84d19(0x133)](_0x250664[_0xa84d19(0x12b)]):_0x6416b0[_0xa84d19(0x167)](_0x250664);}),_0x6416b0=_0x6416b0[_0x83f405(0x123)](_0x18b0b=>!_0xc15ae0[_0x83f405(0x162)](_0x18b0b[_0x83f405(0x119)])),_0x6416b0[_0x83f405(0x134)](_0x16dfbb=>{const _0x112612=_0x83f405;_0x16dfbb[_0x112612(0x12b)]=_0x16dfbb[_0x112612(0x12b)][_0x112612(0x123)](_0x3f85bb=>!_0xc15ae0[_0x112612(0x162)](_0x3f85bb['id']));}),_0x27691f[_0x83f405(0x14c)](_0x83f405(0x149),_0x6416b0);}}export function getDefaultAICommands(_0x1a33e4){const _0x441869=_0x3e0703;return[{'groupId':_0x441869(0x12c),'groupLabel':_0x51e3df(_0x1a33e4,_0x441869(0x11d)),'commands':[{'id':_0x441869(0x124),'label':_0x51e3df(_0x1a33e4,_0x441869(0x13a)),'prompt':_0x441869(0x159)},{'id':_0x441869(0x16e),'label':_0x51e3df(_0x1a33e4,_0x441869(0x120)),'prompt':_0x441869(0x131)},{'id':_0x441869(0x12a),'label':_0x51e3df(_0x1a33e4,_0x441869(0x17e)),'prompt':_0x441869(0x13f)},{'id':_0x441869(0x139),'label':_0x51e3df(_0x1a33e4,_0x441869(0x14b)),'prompt':_0x441869(0x14e)}]},{'groupId':_0x441869(0x13b),'groupLabel':_0x51e3df(_0x1a33e4,_0x441869(0x138)),'commands':[{'id':_0x441869(0x17c),'label':_0x51e3df(_0x1a33e4,_0x441869(0x184)),'prompt':_0x441869(0x158)},{'id':_0x441869(0x17d),'label':_0x51e3df(_0x1a33e4,_0x441869(0x118)),'prompt':_0x441869(0x163)}]},{'groupId':_0x441869(0x186),'groupLabel':_0x51e3df(_0x1a33e4,_0x441869(0x16b)),'commands':[{'id':_0x441869(0x14a),'label':_0x51e3df(_0x1a33e4,_0x441869(0x15a)),'prompt':_0x441869(0x129)},{'id':_0x441869(0x127),'label':_0x51e3df(_0x1a33e4,_0x441869(0x164)),'prompt':_0x441869(0x160)},{'id':_0x441869(0x17f),'label':_0x51e3df(_0x1a33e4,_0x441869(0x16c)),'prompt':_0x441869(0x12e)},{'id':_0x441869(0x16f),'label':_0x51e3df(_0x1a33e4,_0x441869(0x130)),'prompt':_0x441869(0x179)},{'id':_0x441869(0x137),'label':_0x51e3df(_0x1a33e4,_0x441869(0x180)),'prompt':_0x441869(0x165)}]},{'groupId':_0x441869(0x181),'groupLabel':_0x51e3df(_0x1a33e4,_0x441869(0x157)),'commands':[{'id':_0x441869(0x12f),'label':_0x51e3df(_0x1a33e4,_0x441869(0x13e)),'prompt':_0x441869(0x14f)},{'id':_0x441869(0x141),'label':_0x51e3df(_0x1a33e4,_0x441869(0x11a)),'prompt':_0x441869(0x15d)},{'id':_0x441869(0x166),'label':_0x51e3df(_0x1a33e4,_0x441869(0x128)),'prompt':_0x441869(0x145)},{'id':_0x441869(0x15f),'label':_0x51e3df(_0x1a33e4,_0x441869(0x172)),'prompt':_0x441869(0x169)}]},{'groupId':_0x441869(0x11c),'groupLabel':_0x51e3df(_0x1a33e4,_0x441869(0x125)),'commands':[{'id':_0x441869(0x126),'label':_0x51e3df(_0x1a33e4,_0x441869(0x183)),'prompt':_0x441869(0x170)},{'id':_0x441869(0x147),'label':_0x51e3df(_0x1a33e4,_0x441869(0x178)),'prompt':_0x441869(0x155)},{'id':_0x441869(0x154),'label':_0x51e3df(_0x1a33e4,_0x441869(0x168)),'prompt':_0x441869(0x156)},{'id':_0x441869(0x171),'label':_0x51e3df(_0x1a33e4,_0x441869(0x185)),'prompt':_0x441869(0x143)},{'id':_0x441869(0x11e),'label':_0x51e3df(_0x1a33e4,_0x441869(0x12d)),'prompt':_0x441869(0x15b)},{'id':_0x441869(0x17b),'label':_0x51e3df(_0x1a33e4,_0x441869(0x117)),'prompt':_0x441869(0x15c)},{'id':_0x441869(0x150),'label':_0x51e3df(_0x1a33e4,_0x441869(0x174)),'prompt':_0x441869(0x187)},{'id':_0x441869(0x136),'label':_0x51e3df(_0x1a33e4,_0x441869(0x177)),'prompt':_0x441869(0x173)}]}];}