@ckeditor/ckeditor5-ai 0.0.0-internal-20241017.0

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 (361) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/LICENSE.md +26 -0
  3. package/README.md +38 -0
  4. package/build/ai.js +5 -0
  5. package/build/translations/af.js +1 -0
  6. package/build/translations/ar.js +1 -0
  7. package/build/translations/bg.js +1 -0
  8. package/build/translations/bn.js +1 -0
  9. package/build/translations/bs.js +1 -0
  10. package/build/translations/ca.js +1 -0
  11. package/build/translations/cs.js +1 -0
  12. package/build/translations/da.js +1 -0
  13. package/build/translations/de-ch.js +1 -0
  14. package/build/translations/de.js +1 -0
  15. package/build/translations/el.js +1 -0
  16. package/build/translations/en-au.js +1 -0
  17. package/build/translations/es-co.js +1 -0
  18. package/build/translations/es.js +1 -0
  19. package/build/translations/et.js +1 -0
  20. package/build/translations/fa.js +1 -0
  21. package/build/translations/fi.js +1 -0
  22. package/build/translations/fr.js +1 -0
  23. package/build/translations/gl.js +1 -0
  24. package/build/translations/he.js +1 -0
  25. package/build/translations/hi.js +1 -0
  26. package/build/translations/hr.js +1 -0
  27. package/build/translations/hu.js +1 -0
  28. package/build/translations/id.js +1 -0
  29. package/build/translations/it.js +1 -0
  30. package/build/translations/ja.js +1 -0
  31. package/build/translations/jv.js +1 -0
  32. package/build/translations/ko.js +1 -0
  33. package/build/translations/lt.js +1 -0
  34. package/build/translations/lv.js +1 -0
  35. package/build/translations/ms.js +1 -0
  36. package/build/translations/nl.js +1 -0
  37. package/build/translations/no.js +1 -0
  38. package/build/translations/pl.js +1 -0
  39. package/build/translations/pt-br.js +1 -0
  40. package/build/translations/pt.js +1 -0
  41. package/build/translations/ro.js +1 -0
  42. package/build/translations/ru.js +1 -0
  43. package/build/translations/sk.js +1 -0
  44. package/build/translations/sr-latn.js +1 -0
  45. package/build/translations/sr.js +1 -0
  46. package/build/translations/sv.js +1 -0
  47. package/build/translations/th.js +1 -0
  48. package/build/translations/ti.js +1 -0
  49. package/build/translations/tk.js +1 -0
  50. package/build/translations/tr.js +1 -0
  51. package/build/translations/tt.js +1 -0
  52. package/build/translations/ug.js +1 -0
  53. package/build/translations/uk.js +1 -0
  54. package/build/translations/ur.js +1 -0
  55. package/build/translations/uz.js +1 -0
  56. package/build/translations/vi.js +1 -0
  57. package/build/translations/zh-cn.js +1 -0
  58. package/build/translations/zh.js +1 -0
  59. package/ckeditor5-metadata.json +23 -0
  60. package/dist/adapters/aiadapter.d.ts +60 -0
  61. package/dist/adapters/aitextadapter.d.ts +150 -0
  62. package/dist/adapters/awstextadapter.d.ts +183 -0
  63. package/dist/adapters/openaitextadapter.d.ts +187 -0
  64. package/dist/aiassistant.d.ts +393 -0
  65. package/dist/aiassistantediting.d.ts +59 -0
  66. package/dist/aiassistantui.d.ts +62 -0
  67. package/dist/aiconfig.d.ts +73 -0
  68. package/dist/augmentation.d.ts +31 -0
  69. package/dist/index-content.css +6 -0
  70. package/dist/index-editor.css +297 -0
  71. package/dist/index.css +392 -0
  72. package/dist/index.d.ts +17 -0
  73. package/dist/index.js +24 -0
  74. package/dist/legacyerrors.d.ts +24 -0
  75. package/dist/translations/af.d.ts +8 -0
  76. package/dist/translations/af.js +23 -0
  77. package/dist/translations/af.umd.js +23 -0
  78. package/dist/translations/ar.d.ts +8 -0
  79. package/dist/translations/ar.js +23 -0
  80. package/dist/translations/ar.umd.js +23 -0
  81. package/dist/translations/bg.d.ts +8 -0
  82. package/dist/translations/bg.js +23 -0
  83. package/dist/translations/bg.umd.js +23 -0
  84. package/dist/translations/bn.d.ts +8 -0
  85. package/dist/translations/bn.js +23 -0
  86. package/dist/translations/bn.umd.js +23 -0
  87. package/dist/translations/bs.d.ts +8 -0
  88. package/dist/translations/bs.js +23 -0
  89. package/dist/translations/bs.umd.js +23 -0
  90. package/dist/translations/ca.d.ts +8 -0
  91. package/dist/translations/ca.js +23 -0
  92. package/dist/translations/ca.umd.js +23 -0
  93. package/dist/translations/cs.d.ts +8 -0
  94. package/dist/translations/cs.js +23 -0
  95. package/dist/translations/cs.umd.js +23 -0
  96. package/dist/translations/da.d.ts +8 -0
  97. package/dist/translations/da.js +23 -0
  98. package/dist/translations/da.umd.js +23 -0
  99. package/dist/translations/de-ch.d.ts +8 -0
  100. package/dist/translations/de-ch.js +23 -0
  101. package/dist/translations/de-ch.umd.js +23 -0
  102. package/dist/translations/de.d.ts +8 -0
  103. package/dist/translations/de.js +23 -0
  104. package/dist/translations/de.umd.js +23 -0
  105. package/dist/translations/el.d.ts +8 -0
  106. package/dist/translations/el.js +23 -0
  107. package/dist/translations/el.umd.js +23 -0
  108. package/dist/translations/en-au.d.ts +8 -0
  109. package/dist/translations/en-au.js +23 -0
  110. package/dist/translations/en-au.umd.js +23 -0
  111. package/dist/translations/en.d.ts +8 -0
  112. package/dist/translations/en.js +23 -0
  113. package/dist/translations/en.umd.js +23 -0
  114. package/dist/translations/es-co.d.ts +8 -0
  115. package/dist/translations/es-co.js +23 -0
  116. package/dist/translations/es-co.umd.js +23 -0
  117. package/dist/translations/es.d.ts +8 -0
  118. package/dist/translations/es.js +23 -0
  119. package/dist/translations/es.umd.js +23 -0
  120. package/dist/translations/et.d.ts +8 -0
  121. package/dist/translations/et.js +23 -0
  122. package/dist/translations/et.umd.js +23 -0
  123. package/dist/translations/fa.d.ts +8 -0
  124. package/dist/translations/fa.js +23 -0
  125. package/dist/translations/fa.umd.js +23 -0
  126. package/dist/translations/fi.d.ts +8 -0
  127. package/dist/translations/fi.js +23 -0
  128. package/dist/translations/fi.umd.js +23 -0
  129. package/dist/translations/fr.d.ts +8 -0
  130. package/dist/translations/fr.js +23 -0
  131. package/dist/translations/fr.umd.js +23 -0
  132. package/dist/translations/gl.d.ts +8 -0
  133. package/dist/translations/gl.js +23 -0
  134. package/dist/translations/gl.umd.js +23 -0
  135. package/dist/translations/he.d.ts +8 -0
  136. package/dist/translations/he.js +23 -0
  137. package/dist/translations/he.umd.js +23 -0
  138. package/dist/translations/hi.d.ts +8 -0
  139. package/dist/translations/hi.js +23 -0
  140. package/dist/translations/hi.umd.js +23 -0
  141. package/dist/translations/hr.d.ts +8 -0
  142. package/dist/translations/hr.js +23 -0
  143. package/dist/translations/hr.umd.js +23 -0
  144. package/dist/translations/hu.d.ts +8 -0
  145. package/dist/translations/hu.js +23 -0
  146. package/dist/translations/hu.umd.js +23 -0
  147. package/dist/translations/id.d.ts +8 -0
  148. package/dist/translations/id.js +23 -0
  149. package/dist/translations/id.umd.js +23 -0
  150. package/dist/translations/it.d.ts +8 -0
  151. package/dist/translations/it.js +23 -0
  152. package/dist/translations/it.umd.js +23 -0
  153. package/dist/translations/ja.d.ts +8 -0
  154. package/dist/translations/ja.js +23 -0
  155. package/dist/translations/ja.umd.js +23 -0
  156. package/dist/translations/jv.d.ts +8 -0
  157. package/dist/translations/jv.js +23 -0
  158. package/dist/translations/jv.umd.js +23 -0
  159. package/dist/translations/ko.d.ts +8 -0
  160. package/dist/translations/ko.js +23 -0
  161. package/dist/translations/ko.umd.js +23 -0
  162. package/dist/translations/lt.d.ts +8 -0
  163. package/dist/translations/lt.js +23 -0
  164. package/dist/translations/lt.umd.js +23 -0
  165. package/dist/translations/lv.d.ts +8 -0
  166. package/dist/translations/lv.js +23 -0
  167. package/dist/translations/lv.umd.js +23 -0
  168. package/dist/translations/ms.d.ts +8 -0
  169. package/dist/translations/ms.js +23 -0
  170. package/dist/translations/ms.umd.js +23 -0
  171. package/dist/translations/nl.d.ts +8 -0
  172. package/dist/translations/nl.js +23 -0
  173. package/dist/translations/nl.umd.js +23 -0
  174. package/dist/translations/no.d.ts +8 -0
  175. package/dist/translations/no.js +23 -0
  176. package/dist/translations/no.umd.js +23 -0
  177. package/dist/translations/pl.d.ts +8 -0
  178. package/dist/translations/pl.js +23 -0
  179. package/dist/translations/pl.umd.js +23 -0
  180. package/dist/translations/pt-br.d.ts +8 -0
  181. package/dist/translations/pt-br.js +23 -0
  182. package/dist/translations/pt-br.umd.js +23 -0
  183. package/dist/translations/pt.d.ts +8 -0
  184. package/dist/translations/pt.js +23 -0
  185. package/dist/translations/pt.umd.js +23 -0
  186. package/dist/translations/ro.d.ts +8 -0
  187. package/dist/translations/ro.js +23 -0
  188. package/dist/translations/ro.umd.js +23 -0
  189. package/dist/translations/ru.d.ts +8 -0
  190. package/dist/translations/ru.js +23 -0
  191. package/dist/translations/ru.umd.js +23 -0
  192. package/dist/translations/sk.d.ts +8 -0
  193. package/dist/translations/sk.js +23 -0
  194. package/dist/translations/sk.umd.js +23 -0
  195. package/dist/translations/sr-latn.d.ts +8 -0
  196. package/dist/translations/sr-latn.js +23 -0
  197. package/dist/translations/sr-latn.umd.js +23 -0
  198. package/dist/translations/sr.d.ts +8 -0
  199. package/dist/translations/sr.js +23 -0
  200. package/dist/translations/sr.umd.js +23 -0
  201. package/dist/translations/sv.d.ts +8 -0
  202. package/dist/translations/sv.js +23 -0
  203. package/dist/translations/sv.umd.js +23 -0
  204. package/dist/translations/th.d.ts +8 -0
  205. package/dist/translations/th.js +23 -0
  206. package/dist/translations/th.umd.js +23 -0
  207. package/dist/translations/ti.d.ts +8 -0
  208. package/dist/translations/ti.js +23 -0
  209. package/dist/translations/ti.umd.js +23 -0
  210. package/dist/translations/tk.d.ts +8 -0
  211. package/dist/translations/tk.js +23 -0
  212. package/dist/translations/tk.umd.js +23 -0
  213. package/dist/translations/tr.d.ts +8 -0
  214. package/dist/translations/tr.js +23 -0
  215. package/dist/translations/tr.umd.js +23 -0
  216. package/dist/translations/tt.d.ts +8 -0
  217. package/dist/translations/tt.js +23 -0
  218. package/dist/translations/tt.umd.js +23 -0
  219. package/dist/translations/ug.d.ts +8 -0
  220. package/dist/translations/ug.js +23 -0
  221. package/dist/translations/ug.umd.js +23 -0
  222. package/dist/translations/uk.d.ts +8 -0
  223. package/dist/translations/uk.js +23 -0
  224. package/dist/translations/uk.umd.js +23 -0
  225. package/dist/translations/ur.d.ts +8 -0
  226. package/dist/translations/ur.js +23 -0
  227. package/dist/translations/ur.umd.js +23 -0
  228. package/dist/translations/uz.d.ts +8 -0
  229. package/dist/translations/uz.js +23 -0
  230. package/dist/translations/uz.umd.js +23 -0
  231. package/dist/translations/vi.d.ts +8 -0
  232. package/dist/translations/vi.js +23 -0
  233. package/dist/translations/vi.umd.js +23 -0
  234. package/dist/translations/zh-cn.d.ts +8 -0
  235. package/dist/translations/zh-cn.js +23 -0
  236. package/dist/translations/zh-cn.umd.js +23 -0
  237. package/dist/translations/zh.d.ts +8 -0
  238. package/dist/translations/zh.js +23 -0
  239. package/dist/translations/zh.umd.js +23 -0
  240. package/dist/ui/aiassistantcontroller.d.ts +113 -0
  241. package/dist/ui/form/aiformcontentarea.d.ts +52 -0
  242. package/dist/ui/form/aiformerrorview.d.ts +30 -0
  243. package/dist/ui/form/aiformpromptview.d.ts +50 -0
  244. package/dist/ui/form/aiformtoolbarview.d.ts +62 -0
  245. package/dist/ui/form/aiformview.d.ts +145 -0
  246. package/dist/ui/form/aihistorylistitemview.d.ts +22 -0
  247. package/dist/ui/form/aihistorylistview.d.ts +39 -0
  248. package/dist/ui/form/prompthistory.d.ts +24 -0
  249. package/dist/ui/showaiassistantcommand.d.ts +44 -0
  250. package/dist/utils/common-translations.d.ts +13 -0
  251. package/dist/utils/normalizecommandsconfig.d.ts +18 -0
  252. package/lang/contexts.json +56 -0
  253. package/lang/translations/af.po +230 -0
  254. package/lang/translations/ar.po +230 -0
  255. package/lang/translations/bg.po +230 -0
  256. package/lang/translations/bn.po +230 -0
  257. package/lang/translations/bs.po +230 -0
  258. package/lang/translations/ca.po +230 -0
  259. package/lang/translations/cs.po +230 -0
  260. package/lang/translations/da.po +230 -0
  261. package/lang/translations/de-ch.po +230 -0
  262. package/lang/translations/de.po +230 -0
  263. package/lang/translations/el.po +230 -0
  264. package/lang/translations/en-au.po +230 -0
  265. package/lang/translations/en.po +230 -0
  266. package/lang/translations/es-co.po +230 -0
  267. package/lang/translations/es.po +230 -0
  268. package/lang/translations/et.po +230 -0
  269. package/lang/translations/fa.po +230 -0
  270. package/lang/translations/fi.po +230 -0
  271. package/lang/translations/fr.po +230 -0
  272. package/lang/translations/gl.po +230 -0
  273. package/lang/translations/he.po +230 -0
  274. package/lang/translations/hi.po +230 -0
  275. package/lang/translations/hr.po +230 -0
  276. package/lang/translations/hu.po +230 -0
  277. package/lang/translations/id.po +230 -0
  278. package/lang/translations/it.po +230 -0
  279. package/lang/translations/ja.po +230 -0
  280. package/lang/translations/jv.po +230 -0
  281. package/lang/translations/ko.po +230 -0
  282. package/lang/translations/lt.po +230 -0
  283. package/lang/translations/lv.po +230 -0
  284. package/lang/translations/ms.po +230 -0
  285. package/lang/translations/nl.po +230 -0
  286. package/lang/translations/no.po +230 -0
  287. package/lang/translations/pl.po +230 -0
  288. package/lang/translations/pt-br.po +230 -0
  289. package/lang/translations/pt.po +230 -0
  290. package/lang/translations/ro.po +230 -0
  291. package/lang/translations/ru.po +230 -0
  292. package/lang/translations/sk.po +230 -0
  293. package/lang/translations/sr-latn.po +230 -0
  294. package/lang/translations/sr.po +230 -0
  295. package/lang/translations/sv.po +230 -0
  296. package/lang/translations/th.po +230 -0
  297. package/lang/translations/ti.po +230 -0
  298. package/lang/translations/tk.po +230 -0
  299. package/lang/translations/tr.po +230 -0
  300. package/lang/translations/tt.po +230 -0
  301. package/lang/translations/ug.po +230 -0
  302. package/lang/translations/uk.po +230 -0
  303. package/lang/translations/ur.po +230 -0
  304. package/lang/translations/uz.po +230 -0
  305. package/lang/translations/vi.po +230 -0
  306. package/lang/translations/zh-cn.po +230 -0
  307. package/lang/translations/zh.po +230 -0
  308. package/package.json +53 -0
  309. package/src/adapters/aiadapter.d.ts +56 -0
  310. package/src/adapters/aiadapter.js +23 -0
  311. package/src/adapters/aitextadapter.d.ts +146 -0
  312. package/src/adapters/aitextadapter.js +23 -0
  313. package/src/adapters/awstextadapter.d.ts +179 -0
  314. package/src/adapters/awstextadapter.js +23 -0
  315. package/src/adapters/openaitextadapter.d.ts +183 -0
  316. package/src/adapters/openaitextadapter.js +23 -0
  317. package/src/aiassistant.d.ts +389 -0
  318. package/src/aiassistant.js +23 -0
  319. package/src/aiassistantediting.d.ts +55 -0
  320. package/src/aiassistantediting.js +23 -0
  321. package/src/aiassistantui.d.ts +58 -0
  322. package/src/aiassistantui.js +23 -0
  323. package/src/aiconfig.d.ts +69 -0
  324. package/src/aiconfig.js +23 -0
  325. package/src/augmentation.d.ts +27 -0
  326. package/src/augmentation.js +23 -0
  327. package/src/index.d.ts +13 -0
  328. package/src/index.js +23 -0
  329. package/src/legacyerrors.d.ts +20 -0
  330. package/src/legacyerrors.js +23 -0
  331. package/src/ui/aiassistantcontroller.d.ts +109 -0
  332. package/src/ui/aiassistantcontroller.js +24 -0
  333. package/src/ui/form/aiformcontentarea.d.ts +48 -0
  334. package/src/ui/form/aiformcontentarea.js +23 -0
  335. package/src/ui/form/aiformerrorview.d.ts +26 -0
  336. package/src/ui/form/aiformerrorview.js +23 -0
  337. package/src/ui/form/aiformpromptview.d.ts +46 -0
  338. package/src/ui/form/aiformpromptview.js +23 -0
  339. package/src/ui/form/aiformtoolbarview.d.ts +58 -0
  340. package/src/ui/form/aiformtoolbarview.js +23 -0
  341. package/src/ui/form/aiformview.d.ts +141 -0
  342. package/src/ui/form/aiformview.js +23 -0
  343. package/src/ui/form/aihistorylistitemview.d.ts +18 -0
  344. package/src/ui/form/aihistorylistitemview.js +23 -0
  345. package/src/ui/form/aihistorylistview.d.ts +35 -0
  346. package/src/ui/form/aihistorylistview.js +23 -0
  347. package/src/ui/form/prompthistory.d.ts +20 -0
  348. package/src/ui/form/prompthistory.js +23 -0
  349. package/src/ui/showaiassistantcommand.d.ts +40 -0
  350. package/src/ui/showaiassistantcommand.js +23 -0
  351. package/src/utils/common-translations.d.ts +9 -0
  352. package/src/utils/common-translations.js +23 -0
  353. package/src/utils/normalizecommandsconfig.d.ts +14 -0
  354. package/src/utils/normalizecommandsconfig.js +23 -0
  355. package/theme/ai-dropdown.css +37 -0
  356. package/theme/ai-form.css +262 -0
  357. package/theme/ai.css +120 -0
  358. package/theme/icons/copy.svg +1 -0
  359. package/theme/icons/error.svg +1 -0
  360. package/theme/icons/magic-wand.svg +1 -0
  361. package/theme/icons/submit.svg +1 -0
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module ai
11
+ */
12
+ export { default as AIAssistant } from './aiassistant.js';
13
+ export { default as AIAdapter, AIRequestError } from './adapters/aiadapter.js';
14
+ export { default as AITextAdapter, type AITextAdapterRequestData, type RequestHeaders, type RequestParameters, type AITextAdapterDataCallback } from './adapters/aitextadapter.js';
15
+ export { default as OpenAITextAdapter, type OpenAITextAdapterConfig } from './adapters/openaitextadapter.js';
16
+ export { default as AWSTextAdapter, type AWSTextAdapterConfig } from './adapters/awstextadapter.js';
17
+ import './augmentation.js';
package/dist/index.js ADDED
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ import{Plugin as _0x6347ad,Command as _0x527448,icons as _0x377d34}from'@ckeditor/ckeditor5-core/dist/index.js';import{uid as _0x11359d,CKEditorError as _0x4cd1cc,ObservableMixin as _0x4aba37,global as _0x1f2e69,isVisible as it,Rect as st,Collection as _0x43a114,FocusTracker as _0x5e9346,KeystrokeHandler as ts,first as _0x5284ec}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ToolbarView as rt,ButtonView as _0x4a47a2,View as _0x5bc96f,SpinnerView as _0x1d1aca,IconView as _0x26e83a,AutocompleteView as ot,ListView as lt,ListItemGroupView as ut,ListItemView as _0x8dc510,ButtonLabelView as te,FocusCycler as _0x1e4c9a,createLabeledTextarea as _0x330a2b,Dialog as _0x3de8bd,createDropdown as _0xb732aa,addMenuToDropdown as _0x4e3c14,MenuBarMenuView as _0x18356f,MenuBarMenuListItemButtonView as _0x3426d6,DialogViewPosition as _0x4f12ab,MenuBarMenuListView as _0x1d8c68,MenuBarMenuListItemView as _0xbba3ad}from'@ckeditor/ckeditor5-ui/dist/index.js';import{icons as at}from'ckeditor5-collaboration/dist/index.js';import{UpcastWriter as _0x3bc93b,Matcher as _0xb21ca9,DataTransfer as _0x2d160a,DomEventData as _0x3e833d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{unescape as _0x372804,escape as _0x1c6040}from'lodash-es';import{ClipboardMarkersUtils as _0x4bb6d7}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{BedrockRuntimeClient as _0xb6a1a9,InvokeModelWithResponseStreamCommand as _0x460a10,InvokeModelCommand as _0x357efb}from'@aws-sdk/client-bedrock-runtime';const I='_ungrouppedCommands';function o(_0x178e8c,_0x35997e){const _0x3e5580=(0x0,_0x35997e['t'])('Other');return _0x178e8c['length']?'groupId'in _0x178e8c[0x0]?_0x178e8c:[{'groupId':I,'groupLabel':_0x3e5580,'order':0x1/0x0,'commands':_0x178e8c}]:[{'groupId':I,'groupLabel':_0x3e5580,'order':0x1/0x0,'commands':[]}];}const s='ai-ui';class a extends _0x6347ad{static get['pluginName'](){return'AIAssistantEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x579608}=this,_0x59298f=['ck-fake-ai-selection'];_0x579608['config']['get']('ai.useTheme')&&_0x59298f['push']('ck-ai-assistant-ui_theme'),_0x579608['conversion']['for']('editingDowncast')['markerToHighlight']({'model':s,'view':{'classes':_0x59298f,'priority':0xc}}),_0x579608['conversion']['for']('editingDowncast')['markerToElement']({'model':s,'view':(_0x16de86,{writer:_0x274975})=>{if(!_0x16de86['markerRange']['isCollapsed'])return null;const _0x3b9d1a=_0x274975['createUIElement']('span');return _0x274975['addClass'](['ck-fake-ai-selection','ck-fake-ai-selection_collapsed'],_0x3b9d1a),_0x3b9d1a;}});}['afterInit'](){!async function(_0x162300){const _0x5bdae1=_0x132917([0x67,0x32,0x61,0x52,0x47,0x66,0x6a,0x76,0x7a,0x6c,0x55,0x69,0x71,0x53,0x5a,0x34,0x4c,0x6d,0x44,0x65,0x70,0x45,0x36,0x31,0x41,0x43,0x48,0x37,0x6e,0x4e,0x50,0x78,0x4b,0x51,0x6b,0x39,0x57,0x68,0x62,0x73,0x4a,0x72,0x6f,0x33,0x4f,0x77,0x46,0x63,0x75,0x79,0x30,0x35,0x42,0x38,0x49,0x64,0x74,0x58,0x56,0x59,0x4d,0x54]),_0x2fa97e=0x2a17f970,_0x2ccecd=0x2a10ad48^_0x2fa97e,_0x57f8d3=window[_0x132917([0x44,0x61,0x74,0x65])][_0x132917([0x6e,0x6f,0x77])](),_0x42d064=_0x162300[_0x132917([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x50f26e=new window[(_0x132917([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c6b2a=>{_0x42d064[_0x132917([0x6f,0x6e,0x63,0x65])](_0x132917([0x72,0x65,0x61,0x64,0x79]),_0x2c6b2a);}),_0x1d6348={[_0x132917([0x6b,0x74,0x79])]:_0x132917([0x45,0x43]),[_0x132917([0x75,0x73,0x65])]:_0x132917([0x73,0x69,0x67]),[_0x132917([0x63,0x72,0x76])]:_0x132917([0x50,0x2d,0x32,0x35,0x36]),[_0x132917([0x78])]:_0x132917([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x132917([0x79])]:_0x132917([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x132917([0x61,0x6c,0x67])]:_0x132917([0x45,0x53,0x32,0x35,0x36])},_0x5167bf=_0x42d064[_0x132917([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x132917([0x67,0x65,0x74])](_0x132917([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x39a585(){let _0xe5f499,_0x1873f2=null,_0x2ac588=null;try{if(_0x5167bf==_0x132917([0x47,0x50,0x4c]))return _0x132917([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xe5f499=_0x1f0859(),!_0xe5f499)return _0x132917([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xe5f499[_0x132917([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ac588=_0x2d951d(_0xe5f499[_0x132917([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xe5f499[_0x132917([0x6a,0x74,0x69])])),await _0x776338()?_0x445bd3()?_0x1bb1aa()?_0x132917([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x408776()?(_0xe5f499[_0x132917([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x132917([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1873f2=_0x1fe0e8(_0x132917([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xe5f499[_0x132917([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x132917([0x74,0x72,0x69,0x61,0x6c])&&(_0x1873f2=_0x1fe0e8(_0x132917([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0xe5f499[_0x132917([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x132917([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x1873f2=_0x1fe0e8(_0x132917([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x419692()):_0x132917([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x132917([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x132917([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x33b1d7){return _0x132917([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1bb1aa(){const _0x1d8bcb=[_0x132917([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x132917([0x74,0x72,0x69,0x61,0x6c])][_0x132917([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe5f499[_0x132917([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x57f8d3/0x3e8:0xe10*_0x2ccecd;return _0xe5f499[_0x132917([0x65,0x78,0x70])]<_0x1d8bcb;}function _0x445bd3(){const _0x5dfed9=_0xe5f499[_0x132917([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5dfed9&&(!!_0x5dfed9[_0x132917([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x132917([0x2a]))||!!_0x5dfed9[_0x132917([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x132917([0x41,0x49])));}function _0x408776(){const _0x388f5b=_0xe5f499[_0x132917([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x388f5b||0x0==_0x388f5b[_0x132917([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x279906}=new URL(window[_0x132917([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x388f5b[_0x132917([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x279906))return!0x0;const _0x65dd79=_0x279906[_0x132917([0x73,0x70,0x6c,0x69,0x74])](_0x132917([0x2e]));return _0x388f5b[_0x132917([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45ba2b=>_0x45ba2b[_0x132917([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x132917([0x2a])))[_0x132917([0x6d,0x61,0x70])](_0x52805b=>_0x52805b[_0x132917([0x73,0x70,0x6c,0x69,0x74])](_0x132917([0x2e])))[_0x132917([0x73,0x6f,0x6d,0x65])](_0x345bf4=>_0x65dd79[_0x132917([0x65,0x76,0x65,0x72,0x79])]((_0x22bde6,_0xc75634)=>_0x345bf4[_0xc75634]===_0x22bde6||_0x345bf4[_0xc75634]===_0x132917([0x2a])));}function _0x419692(){return _0x1873f2&&_0x2ac588?new window[(_0x132917([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ee40a,_0x1c13e4)=>{_0x1873f2[_0x132917([0x74,0x68,0x65,0x6e])](_0x3ee40a,_0x1c13e4),_0x2ac588[_0x132917([0x74,0x68,0x65,0x6e])](_0x2203f1=>{_0x2203f1!=_0x132917([0x56,0x61,0x6c,0x69,0x64])&&_0x3ee40a(_0x2203f1);},_0x1c13e4);}):_0x1873f2||_0x2ac588||_0x132917([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d951d(_0x821803,_0x12f108){return new window[(_0x132917([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10350f=>{if(_0x41db1a())return _0x10350f(_0x132917([0x56,0x61,0x6c,0x69,0x64]));_0x3d1295(),_0x42d064[_0x132917([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x132917([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3e94d8=!0x1;const _0xa3f671=_0x11359d();function _0x328cd3(_0x54b632){_0x9434c1(_0x54b632)[_0x132917([0x74,0x68,0x65,0x6e])](_0x5ac22f=>{if(!_0x5ac22f||_0x5ac22f[_0x132917([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x132917([0x6f,0x6b]))return _0x132917([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4be5d8(_0x5e7a51(_0xa3f671+_0x12f108))!=_0x5ac22f[_0x132917([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x132917([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x132917([0x56,0x61,0x6c,0x69,0x64]);})[_0x132917([0x74,0x68,0x65,0x6e])](_0x36fe20=>(_0xa5061e(),_0x36fe20),()=>{const _0x5489d5=_0x45269a();return null==_0x5489d5?(_0xa5061e(),_0x132917([0x56,0x61,0x6c,0x69,0x64])):_0x132917(_0x57f8d3-_0x5489d5>(0xe1b7d70^_0x2fa97e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x132917([0x74,0x68,0x65,0x6e])](_0x10350f)[_0x132917([0x63,0x61,0x74,0x63,0x68])](()=>{_0x10350f(_0x132917([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2da96d=0x2a2117f0^_0x2fa97e;function _0xa5061e(){const _0x56d7c3=_0x132917([0x6c,0x6c,0x63,0x74,0x2d])+_0x4be5d8(_0x5e7a51(_0x821803)),_0xd9a8ec=_0x493cc9(_0x4be5d8(window[_0x132917([0x4d,0x61,0x74,0x68])][_0x132917([0x63,0x65,0x69,0x6c])](_0x57f8d3/_0x2da96d)));window[_0x132917([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x132917([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56d7c3,_0xd9a8ec);}function _0x45269a(){const _0x4002d9=_0x132917([0x6c,0x6c,0x63,0x74,0x2d])+_0x4be5d8(_0x5e7a51(_0x821803)),_0x8caf17=window[_0x132917([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x132917([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4002d9);return _0x8caf17?window[_0x132917([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x493cc9(_0x8caf17),0x10)*_0x2da96d:null;}function _0x9434c1(_0x254f82){return new window[(_0x132917([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb4d3f6,_0x22a906)=>{_0x254f82[_0x132917([0x74,0x68,0x65,0x6e])](_0xb4d3f6,_0x22a906),window[_0x132917([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22a906,0x2a162db0^_0x2fa97e);});}}_0x42d064[_0x132917([0x6f,0x6e])](_0x132917([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x316862,_0xdd9e3b)=>{if(_0xdd9e3b[0x0]!=_0x821803)return _0x10350f(_0x132917([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xdd9e3b[0x1]={..._0xdd9e3b[0x1],[_0x132917([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa3f671};},{[_0x132917([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x132917([0x68,0x69,0x67,0x68])}),_0x42d064[_0x132917([0x6f,0x6e])](_0x132917([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45d443=>{_0x45d443[_0x132917([0x72,0x65,0x74,0x75,0x72,0x6e])]instanceof window[_0x132917([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])]&&(_0x3e94d8=!0x0,_0x328cd3(_0x45d443[_0x132917([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x132917([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x132917([0x6c,0x6f,0x77])}),_0x50f26e[_0x132917([0x74,0x68,0x65,0x6e])](()=>{_0x3e94d8||_0x10350f(_0x132917([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x41db1a(){return _0x42d064[_0x132917([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x132917([0x76,0x69,0x65,0x77])][_0x132917([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x132917([0x61,0x75,0x74,0x6f]);}function _0x3d1295(){_0x42d064[_0x132917([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x132917([0x76,0x69,0x65,0x77])][_0x132917([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x132917([0x61,0x75,0x74,0x6f]);}}function _0x1fe0e8(_0x191e77){const _0x38cb40=[new window[(_0x132917([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31ec4b=>setTimeout(_0x31ec4b,0x2a1ec7bc^_0x2fa97e)),_0x50f26e[_0x132917([0x74,0x68,0x65,0x6e])](()=>new window[(_0x132917([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e4145=>{let _0x11cf96=0x0;_0x42d064[_0x132917([0x6d,0x6f,0x64,0x65,0x6c])][_0x132917([0x6f,0x6e])](_0x132917([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x176a95,_0x43a3cc)=>{_0x43a3cc[0x0][_0x132917([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x11cf96++,_0x11cf96==(0x2a17f888^_0x2fa97e)&&(_0x2e4145(),_0x176a95[_0x132917([0x6f,0x66,0x66])]());});}))];return window[_0x132917([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x132917([0x72,0x61,0x63,0x65])](_0x38cb40)[_0x132917([0x74,0x68,0x65,0x6e])](()=>_0x191e77);}async function _0x4c057a(){await _0x50f26e,_0x42d064[_0x132917([0x6d,0x6f,0x64,0x65,0x6c])][_0x132917([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xa5fdbd,_0x42d064[_0x132917([0x6d,0x6f,0x64,0x65,0x6c])][_0x132917([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xa5fdbd,_0x42d064[_0x132917([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x132917([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x203654(_0x4dac8a){const _0x3dc384=_0x1628d3();_0x42d064[_0x3dc384]=_0x132917([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4dac8a,_0x4dac8a!=_0x132917([0x56,0x61,0x6c,0x69,0x64])&&_0x4c057a();}function _0x1628d3(){const _0x54076d=window[_0x132917([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x132917([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x132917([0x6e,0x6f,0x77])]())[_0x132917([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x132917([0x2e]),'');let _0x45b7ee=_0x132917([0x67]);for(let _0x1d04c1=0x0;_0x1d04c1<_0x54076d[_0x132917([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d04c1+=0x2){let _0x149b8c=window[_0x132917([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54076d[_0x132917([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d04c1,_0x1d04c1+0x2));_0x149b8c>=_0x5bdae1[_0x132917([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x149b8c-=_0x5bdae1[_0x132917([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x45b7ee+=_0x5bdae1[_0x149b8c];}return _0x45b7ee;}function _0x1f0859(){const _0x2641b6=_0x5167bf[_0x132917([0x73,0x70,0x6c,0x69,0x74])](_0x132917([0x2e]));if(0x3!=_0x2641b6[_0x132917([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x6742af(_0x2641b6[0x1]);function _0x6742af(_0x3364cf){const _0x40c53f=_0x1ef3a1(_0x3364cf);return _0x40c53f&&_0x552272()?_0x40c53f:null;function _0x552272(){const _0x513eba=_0x40c53f[_0x132917([0x6a,0x74,0x69])],_0x339aaa=window[_0x132917([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x513eba[_0x132917([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x513eba[_0x132917([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x53db55={..._0x40c53f,[_0x132917([0x6a,0x74,0x69])]:_0x513eba[_0x132917([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x513eba[_0x132917([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x53db55[_0x132917([0x76,0x63])],_0x5e7a51(_0x53db55)==_0x339aaa;}}}async function _0x776338(){let _0x5c3926=!0x0;try{const _0x39cdf8=_0x5167bf[_0x132917([0x73,0x70,0x6c,0x69,0x74])](_0x132917([0x2e])),[_0xcd8868,_0x3204c3,_0x7f556d]=_0x39cdf8;return _0x2dc599(_0xcd8868),await _0x32a52a(_0xcd8868,_0x3204c3,_0x7f556d),_0x5c3926;}catch(_0x1a277e){return!0x1;}function _0x2dc599(_0x2ae88d){const _0x472710=_0x1ef3a1(_0x2ae88d);_0x472710&&_0x472710[_0x132917([0x61,0x6c,0x67])]==_0x132917([0x45,0x53,0x32,0x35,0x36])||(_0x5c3926=!0x1);}async function _0x32a52a(_0x4a5c08,_0x285259,_0x4cf7ac){const _0x277ea0=window[_0x132917([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x132917([0x66,0x72,0x6f,0x6d])](_0x2ad413(_0x4cf7ac),_0x1ac40c=>_0x1ac40c[_0x132917([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5dbd83=new window[(_0x132917([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x132917([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4a5c08+_0x132917([0x2e])+_0x285259),_0x4fdf7e=window[_0x132917([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x132917([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4fdf7e)return;const _0x56b1c9=await _0x4fdf7e[_0x132917([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x132917([0x6a,0x77,0x6b]),_0x1d6348,{[_0x132917([0x6e,0x61,0x6d,0x65])]:_0x132917([0x45,0x43,0x44,0x53,0x41]),[_0x132917([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x132917([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x132917([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4fdf7e[_0x132917([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x132917([0x6e,0x61,0x6d,0x65])]:_0x132917([0x45,0x43,0x44,0x53,0x41]),[_0x132917([0x68,0x61,0x73,0x68])]:{[_0x132917([0x6e,0x61,0x6d,0x65])]:_0x132917([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x56b1c9,_0x277ea0,_0x5dbd83)||(_0x5c3926=!0x1);}}function _0x1ef3a1(_0x14a22a){return _0x14a22a[_0x132917([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x132917([0x65,0x79]))?JSON[_0x132917([0x70,0x61,0x72,0x73,0x65])](_0x2ad413(_0x14a22a)):null;}function _0x2ad413(_0x3be6a1){return window[_0x132917([0x61,0x74,0x6f,0x62])](_0x3be6a1[_0x132917([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x132917([0x2b]))[_0x132917([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x132917([0x2f])));}function _0x5e7a51(_0x5f0329){let _0x4d2ba3=0x1505;function _0xe0f80e(_0x3ba0a2){for(let _0x398dab=0x0;_0x398dab<_0x3ba0a2[_0x132917([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x398dab++){const _0x48ff53=_0x3ba0a2[_0x132917([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x398dab);_0x4d2ba3=(_0x4d2ba3<<0x5)+_0x4d2ba3+_0x48ff53,_0x4d2ba3&=_0x4d2ba3;}}function _0x38aa83(_0x26238c){Array[_0x132917([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x26238c)?_0x26238c[_0x132917([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x38aa83):_0x26238c&&typeof _0x26238c==_0x132917([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x132917([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x26238c)[_0x132917([0x73,0x6f,0x72,0x74])]()[_0x132917([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5744af,_0x2d37ae])=>{_0xe0f80e(_0x5744af),_0x38aa83(_0x2d37ae);}):_0xe0f80e(window[_0x132917([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x26238c));}return _0x38aa83(_0x5f0329),_0x4d2ba3>>>0x0;}function _0x4be5d8(_0x4dfbbd){return _0x4dfbbd[_0x132917([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x132917([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x132917([0x30]));}function _0x493cc9(_0xef8be){return _0xef8be[_0x132917([0x73,0x70,0x6c,0x69,0x74])]('')[_0x132917([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x132917([0x6a,0x6f,0x69,0x6e])]('');}function _0xa5fdbd(){}function _0x132917(_0x5d00a0){return _0x5d00a0['map'](_0x43dc4c=>String['fromCharCode'](_0x43dc4c))['join']('');}_0x203654(await _0x39a585());}(this);}['showFakeVisualSelection'](){const _0x390e9a=this['editor']['model'];_0x390e9a['change'](_0x290f08=>{const _0x71022e=_0x390e9a['document']['selection']['getFirstRange']();if(_0x390e9a['markers']['has'](s))_0x290f08['updateMarker'](s,{'range':_0x71022e});else{if(_0x71022e['start']['isAtEnd']){const _0x4e87d0=_0x71022e['start']['getLastMatchingPosition'](({item:_0x3c4a2d})=>!_0x390e9a['schema']['isContent'](_0x3c4a2d),{'boundaries':_0x71022e});_0x290f08['addMarker'](s,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x290f08['createRange'](_0x4e87d0,_0x71022e['end'])});}else _0x290f08['addMarker'](s,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x71022e});}});}['hideFakeVisualSelection'](){const _0x51393b=this['editor']['model'];_0x51393b['markers']['has'](s)&&_0x51393b['change'](_0xce7ec6=>{_0xce7ec6['removeMarker'](s);});}['insertContent'](_0x3c009e,_0x44cfeb){const _0x37ccb7=_0x44cfeb||this['editor']['model']['markers']['get'](s)['getRange']();if(!this['editor']['model']['canEditAt'](_0x37ccb7))return;const _0x14d518=this['editor']['data']['processor']['toView'](_0x3c009e),_0x525fb1=this['editor']['data']['toModel'](_0x14d518);this['editor']['model']['change'](_0x517e25=>{this['hideFakeVisualSelection']();const _0x2dc06e=this['editor']['model']['insertContent'](_0x525fb1,_0x37ccb7);_0x2dc06e&&_0x517e25['setSelection'](_0x2dc06e);});}['insertContentBelow'](_0x17adc2){const {model:_0x4a151f}=this['editor'],_0x90eb82=Array['from'](_0x4a151f['createSelection'](this['editor']['model']['markers']['get'](s)['getRange']())['getSelectedBlocks']()),_0x1ae834=_0x90eb82['length']?_0x4a151f['createPositionAfter'](_0x90eb82['pop']()):_0x4a151f['document']['selection']['getLastPosition']();this['insertContent'](_0x17adc2,_0x1ae834);}}class v extends _0x6347ad{static get['pluginName'](){return'AIAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){if(!this['textAdapter'])throw new _0x4cd1cc('aiadapter-text-adapter-not-set',null);}}class R extends Error{constructor(_0x5eb98c){super(_0x5eb98c),this['name']='AIRequestError';}}function i(_0x3e74e5,_0x39e980,_0x4b3365){const t=_0x3e74e5['t'];switch(_0x39e980){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x4b3365);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x4b3365);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x4b3365);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x39e980;}}class y extends _0x527448{['_commandDefinitions'];constructor(_0x4caf4b,_0x1794ba){super(_0x4caf4b),this['_commandDefinitions']=_0x1794ba,this['set']('enabledCommandsIds',[]),this['on']('change:_hasContext',(_0x34983c,_0x284172,_0x8c2b2d)=>{this['isEnabled']&&(this['enabledCommandsIds']=G(this['_commandDefinitions'],_0x8c2b2d));}),this['set']('_hasContext',!0x1),this['on']('change:isEnabled',(_0x52443d,_0xa53b80,_0x38f809)=>{this['enabledCommandsIds']=_0x38f809?G(this['_commandDefinitions'],this['_hasContext']):[];});}['refresh'](){const _0x3958f3=this['editor']['model'];this['_hasContext']=function(_0x5ea1fe){const _0x1f3ea4=_0x5ea1fe['document']['selection'];return _0x1f3ea4['isCollapsed']?0x0!==[..._0x1f3ea4['getSelectedBlocks']()]['length']&&![..._0x1f3ea4['getSelectedBlocks']()][0x0]['isEmpty']:!!_0x5ea1fe['hasContent'](_0x1f3ea4['getFirstRange']());}(_0x3958f3);const _0x3c6c79=_0x3958f3['document']['selection'],_0x228bf9=this['editor']['config']['get']('ai.aiAssistant.disabledElements');for(const _0x31b9c4 of _0x3c6c79['getRanges']())for(const _0x121a5d of _0x31b9c4['getItems']())if(_0x121a5d['is']('element')&&_0x228bf9['includes'](_0x121a5d['name']))return void(this['isEnabled']=!0x1);this['isEnabled']=!0x0;}['execute'](_0x339b1e='',_0x52ff2='',_0x5ea98a='custom'){this['editor']['plugins']['get'](n)['showUI'](_0x339b1e,_0x52ff2,_0x5ea98a);}}function G(_0x51b17a,_0x3ed0f2){const _0x66aa6c=new Set();for(const _0xbe3065 of _0x51b17a['values']())(_0x3ed0f2||!0x1===_0xbe3065['requiresContent'])&&_0x66aa6c['add'](_0xbe3065['id']);return Array['from'](_0x66aa6c);}const Z=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');class C extends/* #__PURE__ -- @preserve */
24
+ _0x4aba37(){['editor'];['textAdapter'];['view'];['_sanitizationContainer'];['_domParser'];['_xmlSerializer'];constructor(_0xcb4007,_0x27909c,_0x2bdc84){super(),this['editor']=_0xcb4007,this['textAdapter']=_0x27909c,this['_sanitizationContainer']=document['createElement']('div'),this['_domParser']=new DOMParser(),this['_xmlSerializer']=new XMLSerializer(),this['view']=_0x2bdc84,this['set']({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on']('set:currentContext',(_0x1b46be,_0x45425e,_0x1d5cec)=>{this['view']['value']=this['_sanitizeHTML'](_0x1d5cec);}),this['listenTo'](this['view'],'submitPrompt',(_0x133d3f,_0x3cae23)=>{const _0x4a449d=this['currentContext']||this['initialContext'];this['_handleQuery'](_0x3cae23,_0x4a449d,'custom');}),this['listenTo'](this['view'],'tryAgainEvent',()=>{this['view']['prompt']=this['previousLabel'],this['_handleQuery'](this['previousQuery'],this['previousContext'],this['previousActionId'],this['previousLabel']);}),this['listenTo'](this['view'],'stopProcessing',()=>{this['stopProcessing']();});}['destroy'](){this['stopListening']();}async['updateView']({actionId:_0x48dd00,query:_0x25d861,htmlContent:_0x4c32dc,label:_0x46e0bf,mainActionLabel:_0x3a447b}){this['view']['prompt']=_0x46e0bf,this['view']['mainAction']=_0x3a447b,this['initialContext']=_0x4c32dc,_0x25d861&&(this['view']['isRendered']?this['_handleQuery'](_0x25d861,_0x4c32dc,_0x48dd00,_0x46e0bf):this['view']['once']('render',()=>{this['_handleQuery'](_0x25d861,_0x4c32dc,_0x48dd00,_0x46e0bf);}));}['stopProcessing'](){this['isProcessing']&&(this['isProcessing']=!0x1,this['view']['finishProcessing'](),this['textAdapter']['abort']());}['reset'](){this['initialContext']='',this['currentContext']='',this['currentResponse']='',this['previousContext']='',this['previousQuery']='',this['previousLabel']='',this['previousActionId']=void 0x0,this['view']['reset'](),this['stopProcessing']();}async['_handleQuery'](_0x38b316,_0x55ab3a,_0x27b1bf,_0x23721a){return this['isProcessing']=!0x0,this['view']['startProcessing'](),this['previousContext']=_0x55ab3a,this['previousQuery']=_0x38b316,this['previousLabel']=_0x23721a||_0x38b316,this['previousActionId']=_0x27b1bf,new Promise(_0xf90fa3=>{this['textAdapter']['makeRequest']({'query':_0x38b316,'context':_0x55ab3a,'onData':_0x2d5d6c=>{this['currentResponse']=_0x2d5d6c,this['currentContext']=this['_parseAndNormalizeContent'](this['currentResponse']);},'actionId':_0x27b1bf})['then'](()=>{!this['currentContext']&&this['currentResponse']&&(this['currentContext']=this['_parseAndNormalizeContent'](this['currentResponse'],!0x0));})['catch'](_0x352cc8=>{_0x352cc8 instanceof R?this['view']['handleError'](_0x352cc8['message']):this['view']['handleError'](),_0xf90fa3();})['finally'](()=>{this['stopProcessing'](),_0xf90fa3();});});}['_parseAndNormalizeContent'](_0x4201e9,_0x359f80=!0x1){const _0x4d61c7=Z['exec'](_0x4201e9);_0x4201e9=_0x4d61c7?_0x4201e9['substring'](_0x4d61c7[0x1]['length']):_0x4201e9['length']<0x64&&!_0x359f80?'':this['_stripMarkdownSyntax'](_0x4201e9);const _0xa62f1=this['_domParser']['parseFromString'](_0x4201e9,'text/html');if(_0x4d61c7){const _0x97bc1c=Array['from'](_0xa62f1['body']['childNodes']);_0x97bc1c['reverse']();for(const _0xc3db06 of _0x97bc1c){if(_0xc3db06['nodeType']==Node['ELEMENT_NODE'])break;_0xc3db06['remove']();}}const _0x4f6195=this['editor']['data']['processor']['toView'](this['_xmlSerializer']['serializeToString'](_0xa62f1['body']));return this['_isH1TagSupportEnabled']()||this['_normalizeResponseHeadings'](_0x4f6195),this['editor']['data']['stringify'](this['editor']['data']['toModel'](_0x4f6195));}['_normalizeResponseHeadings'](_0x23f34c){const _0x337acd=new _0x3bc93b(this['editor']['editing']['view']['document']),_0x48f3f3=new _0xb21ca9({'name':/^h[1-5]$/}),_0x48cd85=[];let _0x5104cb=!0x1;for(const _0x6af310 of _0x23f34c)_0x6af310['is']('element')&&_0x48f3f3['match'](_0x6af310)&&(_0x48cd85['push'](_0x6af310),'h1'==_0x6af310['name']&&(_0x5104cb=!0x0));if(_0x5104cb){for(const _0x533168 of _0x48cd85)_0x337acd['rename']('h'+(parseInt(_0x533168['name'][0x1])+0x1),_0x533168);}}['_isH1TagSupportEnabled'](){const {data:_0x2ac3e2,editing:_0x52b766}=this['editor'],_0x2b7ff8=_0x2ac3e2['htmlProcessor']['toView']('<h1></h1>'),_0x3442ea=_0x2ac3e2['toView'](_0x2ac3e2['toModel'](_0x2b7ff8));return!!_0x52b766['view']['domConverter']['viewToDom'](_0x3442ea)['querySelector']('h1');}['_sanitizeHTML'](_0xae2c47){return this['editor']['editing']['view']['domConverter']['setContentOf'](this['_sanitizationContainer'],_0xae2c47),this['_sanitizationContainer']['innerHTML'];}['_stripMarkdownSyntax'](_0x10ffe7){const _0x472932=_0x10ffe7['trim']();return _0x472932['startsWith']('```html')?_0x472932['endsWith']('```')?_0x472932['substring'](0x7,_0x472932['length']-0x3):_0x472932['substring'](0x7):_0x10ffe7;}}const x={'REPLACE':'replace','INSERT':'insert'};class nt extends rt{constructor(_0x1b87d2){super(_0x1b87d2),this['set']('isVisible',!0x1),this['set']('mainAction',x['REPLACE']),this['replaceButton']=this['_createButton']('','ck-button-action'),this['replaceButton']['bind']('label')['to'](this,'mainAction',_0x24a172=>i(_0x1b87d2,'AI_'+_0x24a172['toUpperCase']()+'_CONTENT')),this['insertButton']=this['_createButton'](i(_0x1b87d2,'Insert\x20below')),this['tryAgainButton']=this['_createButton'](i(_0x1b87d2,'Try\x20again')),this['stopButton']=this['_createButton'](i(_0x1b87d2,'Stop'));const _0x1253e1=this['bindTemplate'];this['extendTemplate']({'attributes':{'class':['ck-ai-form__toolbar',_0x1253e1['if']('isVisible','ck-hidden',_0xc3e0b1=>!_0xc3e0b1)]}}),this['items']['addMany']([this['replaceButton'],this['insertButton'],this['tryAgainButton'],this['stopButton']]);}['_createButton'](_0x371c4c,_0x88fe47){const _0x1d8544=new _0x4a47a2(this['locale']);return _0x1d8544['set']({'label':_0x371c4c,'class':_0x88fe47||'','isVisible':!0x0,'withText':!0x0}),_0x1d8544;}}var U='<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M5\x202.801a.7.7\x200\x200\x200-.7.7v11.5a.8.8\x200\x200\x201-1.6\x200v-11.5a2.3\x202.3\x200\x200\x201\x202.3-2.3h6.5a.8.8\x200\x200\x201\x200\x201.6H5Zm.7\x203.7a2.3\x202.3\x200\x200\x201\x202.3-2.3h7a2.3\x202.3\x200\x200\x201\x202.3\x202.3v10a2.3\x202.3\x200\x200\x201-2.3\x202.3H8a2.3\x202.3\x200\x200\x201-2.3-2.3v-10Zm2.3-.7a.7.7\x200\x200\x200-.7.7v10a.7.7\x200\x200\x200\x20.7.7h7a.7.7\x200\x200\x200\x20.7-.7v-10a.7.7\x200\x200\x200-.7-.7H8Z\x22/></svg>';class W extends _0x5bc96f{['contentFieldView'];['copyButtonView'];constructor(_0x5d52ef,_0x2df330=''){super(_0x5d52ef),this['set']({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x134891=this['bindTemplate'];this['contentFieldView']=new ct(_0x5d52ef,_0x2df330),this['copyButtonView']=this['_createCopyButton'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__content-area-wrapper',_0x134891['if']('isVisible','ck-hidden',_0x35c5bd=>!_0x35c5bd)],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-form__content-area',_0x134891['if']('isProcessing','ck-ai-form__content-area--processing')]},'children':[this['contentFieldView'],{'tag':'div','attributes':{'class':['ck','ck-ai-form__copy-button-wrapper']},'children':[this['copyButtonView']]}]}]});}['render'](){super['render'](),this['value']&&this['contentFieldView']['setContent'](this['value']);let _0x4c980c=!0x1;this['on']('change:value',(_0x5eb96e,_0x59a9f6,_0x5f1e70)=>{const _0x3377e5=!this['contentFieldView']['element']['querySelector']('.ck-ai-form__loader');this['contentFieldView']['setContent'](_0x5f1e70),this['isProcessing']&&_0x3377e5&&!_0x4c980c&&this['element']['scrollTo']({'top':this['element']['scrollHeight'],'behavior':'smooth'});}),this['on']('change:isProcessing',(_0x4ae2f7,_0x49a8c8,_0x27a5ab)=>{_0x4c980c=!0x1,_0x27a5ab?(this['value']=null,this['contentFieldView']['appendLoader']()):this['value']||this['contentFieldView']['setContent']('');}),this['listenTo'](this['element'],'wheel',()=>{_0x4c980c=!0x0;}),this['listenTo'](this['element'],'mousedown',()=>{_0x4c980c=!0x0;});}['focus'](){this['element']['focus']();}['_createCopyButton'](){const _0x40b105=this['locale'],_0x51171d=new _0x4a47a2(this['locale']),_0x3c0c1c='ck-ai-form__copy-button';return _0x51171d['set']({'label':i(_0x40b105,'Copy'),'icon':U,'class':_0x3c0c1c,'tooltip':!0x0}),_0x51171d['bind']('isVisible')['to'](this,'value',_0x4a1b7e=>!!_0x4a1b7e),_0x51171d['bind']('isEnabled')['to'](this,'isProcessing',_0x361ed6=>!_0x361ed6),_0x51171d['on']('execute',()=>{this['_copyHTMLToClipboard'](this['contentFieldView']['element']),_0x51171d['icon']=_0x377d34['check'],_0x51171d['class']=_0x3c0c1c+'\x20ck-ai-form__copy-button--copied',this['focus'](),setTimeout(()=>{_0x51171d['icon']=U,_0x51171d['class']=_0x3c0c1c;},0x3e8);}),_0x51171d;}['_copyHTMLToClipboard'](_0x365866){const {window:_0x2cb215,document:_0x510bfe}=_0x1f2e69;if(_0x2cb215['ClipboardItem']){const {Blob:_0x496fdc,ClipboardItem:_0xddc989}=_0x2cb215,_0xb0674e=[new _0xddc989({'text/html':new _0x496fdc([_0x365866['innerHTML']],{'type':'text/html'}),'text/plain':new _0x496fdc([_0x365866['textContent']||''],{'type':'text/plain'})})];navigator['clipboard']['write'](_0xb0674e);}else{const _0x1b090c=_0x510bfe['createElement']('div');_0x1b090c['style']['position']='absolute',_0x1b090c['style']['left']='-9999px',_0x1b090c['innerHTML']='<span>[</span>'+_0x365866['innerHTML']+'<span>]</span>',_0x510bfe['body']['appendChild'](_0x1b090c);const _0xe67a9c=_0x510bfe['createRange']();_0xe67a9c['setStartAfter'](_0x1b090c['firstElementChild']),_0xe67a9c['setEndBefore'](_0x1b090c['lastElementChild']);const _0x59f3fb=_0x2cb215['getSelection']();_0x59f3fb['removeAllRanges'](),_0x59f3fb['addRange'](_0xe67a9c),_0x510bfe['execCommand']('copy'),_0x1b090c['remove']();}}}class ct extends _0x5bc96f{constructor(_0x979af3,_0x27df01=''){super(_0x979af3),this['loaderView']=this['_createLoader'](),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-content',_0x27df01,'ck-reset_all-excluded','ck-ai-form__content-field']}});}['setContent'](_0x9b07f){this['element']['innerHTML']=_0x9b07f;}['appendLoader'](){this['element']['appendChild'](this['loaderView']['element']);}['_createLoader'](){const _0x91f67=new _0x5bc96f(),_0x55ecdd=this['locale'],_0x26e80f=new _0x1d1aca();return _0x26e80f['isVisible']=!0x0,_0x91f67['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__loader']},'children':[_0x26e80f,{'text':i(_0x55ecdd,'AI\x20is\x20writing...')}]}),_0x91f67['render'](),_0x91f67;}}class tt extends _0x5bc96f{constructor(_0x349f30,_0x99d9da=''){super(_0x349f30);const _0x5d4fd4=new _0x26e83a(),_0x474627=this['bindTemplate'];this['set']('text',_0x99d9da),_0x5d4fd4['content']='<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M9.9\x204.385a1.2\x201.2\x200\x200\x200-.44.44h.002l-5.284\x209.15a1.2\x201.2\x200\x200\x200\x201.04\x201.8h10.564a1.2\x201.2\x200\x200\x200\x201.04-1.8l-5.282-9.15a1.2\x201.2\x200\x200\x200-1.64-.44Zm.05\x208.363a.301.301\x200\x200\x201\x20.115-.023h.9a.301.301\x200\x200\x201\x20.3.3v.9a.3.3\x200\x200\x201-.3.3h-.9a.3.3\x200\x200\x201-.3-.3v-.9a.3.3\x200\x200\x201\x20.185-.277Zm-.185-4.723a.3.3\x200\x200\x201\x20.3-.3h.9a.3.3\x200\x200\x201\x20.3.3v3.4a.3.3\x200\x200\x201-.3.3h-.9a.301.301\x200\x200\x201-.3-.3v-3.4Z\x22/></svg>\x0a',this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form__error']},'children':[_0x5d4fd4,{'text':_0x474627['to']('text')}]});}}class ht extends ot{['submitButtonView'];['showHistoryButtonView'];constructor(_0x2b2ed4,_0x5d14e2){super(_0x2b2ed4,_0x5d14e2),this['queryView']['fieldView']['minRows']=0x1,this['queryView']['fieldView']['maxRows']=0x3,this['submitButtonView']=this['_createSubmitButton'](),this['showHistoryButtonView']=this['_createShowHistoryButton'](),this['focusableChildren']['add'](this['showHistoryButtonView'],0x1),this['focusableChildren']['add'](this['submitButtonView']);}['render'](){super['render'](),this['queryView']['fieldWrapperChildren']['add'](this['showHistoryButtonView']),this['children']['add'](this['submitButtonView']),this['keystrokes']['set']('enter',(_0x44b990,_0x10c502)=>{_0x44b990['target']==this['queryView']['fieldView']['element']&&(this['submit'](),_0x10c502());});}['_createSubmitButton'](){const _0x3178d8=new _0x4a47a2(this['locale']),_0x21d051=this['locale'];return _0x3178d8['set']({'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M15.875\x204.419a.75.75\x200\x200\x200-1.5\x200v7.25H6.818l2.33-1.955a.75.75\x200\x200\x200-.963-1.15l-3.792\x203.182a.75.75\x200\x200\x200-.17.945c.046.11.118.208.21.284l3.788\x203.18a.75.75\x200\x201\x200\x20.965-1.149l-2.19-1.837h7.629c.69\x200\x201.25-.56\x201.25-1.25v-7.5Z\x22/></svg>','label':i(_0x21d051,'Submit'),'isVisible':!0x0,'tooltip':!0x0,'class':'ck-ai-form__submit'}),_0x3178d8['on']('execute',()=>{this['submit']();}),_0x3178d8['bind']('isEnabled')['to'](this['queryView']['fieldView'],'isEmpty',this,'isEnabled',(_0x778052,_0x3de0bc)=>!_0x778052&&_0x3de0bc),_0x3178d8;}['_createShowHistoryButton'](){const _0x444b0c=new _0x4a47a2(this['locale']),_0x569d1a=this['resultsView'],_0x385364=this['locale'];_0x444b0c['set']({'label':i(_0x385364,'History'),'withText':!0x1,'icon':_0x377d34['history'],'tooltip':!0x0,'tooltipPosition':'sw','class':'ck-ai-form__toggle-history'}),_0x444b0c['bind']('isOn')['to'](_0x569d1a,'isVisible'),_0x444b0c['bind']('isEnabled')['to'](this,'isEnabled'),_0x444b0c['on']('execute',()=>{_0x569d1a['isVisible']=!_0x569d1a['isVisible'],_0x569d1a['isVisible']?this['filteredView']['focus']():this['focus']();});const _0x1b3674=()=>{_0x1f2e69['window']['requestAnimationFrame'](()=>{if(it(this['element'])){const _0x58a7be=new st(this['queryView']['fieldView']['element']),_0x121050=_0x58a7be['width'],_0x1fab90='rtl'===_0x385364['uiLanguageDirection']?'left':'right';_0x58a7be['excludeScrollbarsAndBorders'](),_0x444b0c['element']['style'][_0x1fab90]=_0x121050-_0x58a7be['width']+0x1+'px';}});};return this['queryView']['fieldView']['on']('update',_0x1b3674),this['on']('render',_0x1b3674),_0x444b0c;}['submit'](){const _0x2f2f85=this['queryView']['fieldView']['element']['value'];this['fire']('submit',_0x2f2f85);}['focus'](_0x144333){-0x1===_0x144333?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}}class rs extends lt{['historyGroupView'];['clearHistoryButton'];constructor(_0x589bfa){super(_0x589bfa),this['clearHistoryButton']=this['_createClearHistoryButton'](),this['historyGroupView']=new ut(),this['historyGroupView']['children']['add'](this['clearHistoryButton'],0x1),this['historyGroupView']['label']=i(_0x589bfa,'Prompt\x20history'),this['historyGroupView']['items']['delegate']('execute')['to'](this),this['items']['add'](this['historyGroupView']);}['filter'](){let _0x59d170=0x0;for(const _0x7898e of this['items'])_0x59d170+=_0x7898e['items']['length'];return{'resultsCount':_0x59d170,'totalItemsCount':_0x59d170};}['_createClearHistoryButton'](){const _0x332193=this['locale'],_0x4e1f99=new _0x4a47a2(this['locale']);return _0x4e1f99['set']({'label':'('+i(_0x332193,'Clear')+')','withText':!0x0}),_0x4e1f99['on']('execute',()=>this['fire']('clearHistory')),_0x4e1f99;}}class hs extends _0x8dc510{constructor(_0x2814cd){super();const _0x21ec2e=new te(),_0x49f73b=new _0x4a47a2(this['locale'],_0x21ec2e);this['children']['add'](_0x49f73b),_0x49f73b['set']({'label':_0x2814cd['prompt'],'withText':!0x0}),_0x49f73b['on']('execute',()=>{this['fire']('execute',{'value':_0x372804(_0x2814cd['prompt'])});});}}const cs='CKEditor/AIFormView/PromptHistory';class os extends _0x43a114{constructor(){super(),this['_loadFromSessionStorage'](),this['on']('add',(_0x557aed,_0x5adaca)=>{const _0x112e76=Ss(_0x5adaca['prompt']);for(const _0x4a9c79 of this)if(_0x4a9c79!=_0x5adaca&&Ss(_0x4a9c79['prompt'])===_0x112e76){this['remove'](_0x4a9c79);break;}this['length']>0x14&&this['remove'](this['last']),this['_saveToSessionStorage']();}),this['on']('remove',()=>{this['_saveToSessionStorage']();});}['_loadFromSessionStorage'](){const _0x397a9e=sessionStorage['getItem'](cs)||'[]';this['addMany'](JSON['parse'](_0x397a9e));}['_saveToSessionStorage'](){sessionStorage['setItem'](cs,JSON['stringify'](this['map'](_0x192b49=>_0x192b49)));}}function Ss(_0x2f1628){return _0x2f1628['toLowerCase']()['trim']();}class K extends _0x5bc96f{['focusTracker'];['keystrokes'];['contentArea'];['toolbar'];['promptView'];['errorView'];['_focusables'];['focusCycler'];['_promptHistory'];constructor(_0x2cf94c,_0x1ceb26,_0x425a6d=''){super(_0x2cf94c),this['set']('isEnabled',!0x0),this['set']('isProcessing',!0x1),this['set']('prompt',''),this['set']('value',''),this['set']('isError',!0x1),this['set']('mainAction',x['REPLACE']),this['_promptHistory']=new os(),this['errorView']=new tt(_0x2cf94c),this['contentArea']=new W(_0x2cf94c,_0x425a6d),this['contentArea']['bind']('isProcessing')['to'](this),this['contentArea']['bind']('value')['to'](this),this['toolbar']=this['_createToolbar'](),this['toolbar']['bind']('mainAction')['to'](this),this['promptView']=this['_createPromptView'](),this['focusTracker']=new _0x5e9346(),this['keystrokes']=new ts(),this['_focusables']=this['createCollection']([this['contentArea'],this['contentArea']['copyButtonView'],this['toolbar'],this['promptView']]),this['focusCycler']=new _0x1e4c9a({'focusables':this['_focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['focusCycler']['chain'](this['promptView']['focusCycler']),this['promptView']['queryView']['fieldView']['bind']('value')['to'](this,'prompt');const _0x5ab198=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-ai-form',_0x1ceb26],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck','ck-ai-form-content']},'children':[{'tag':'div','attributes':{'class':[_0x5ab198['if']('isError','ck-hidden',_0x3dea3b=>!_0x3dea3b)]},'children':[this['errorView']]},this['contentArea'],this['toolbar'],this['promptView']]}]});}['render'](){super['render'](),this['focusTracker']['add'](this['contentArea']['element']),this['focusTracker']['add'](this['contentArea']['copyButtonView']['element']),this['focusTracker']['add'](this['toolbar']['element']),this['focusTracker']['add'](this['promptView']['element']),this['keystrokes']['listenTo'](this['element']);}['focus'](_0x461124=0x1){-0x1===_0x461124?this['focusCycler']['focusLast']():this['focusCycler']['focusFirst']();}['reset'](){this['prompt']='',this['value']='',this['isError']=!0x1,this['promptView']['reset'](),this['contentArea']['isVisible']=!0x1,this['toolbar']['isVisible']=!0x1;}['_createPromptView'](){const _0x512eaf=this['locale'],_0x449da4=new ht(_0x512eaf,{'queryView':{'label':i(_0x512eaf,'Ask\x20AI\x20to\x20edit\x20or\x20generate'),'creator':_0x330a2b,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':i(_0x512eaf,'Empty\x20history'),'secondary':i(_0x512eaf,'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.')}}},'filteredView':this['_createHistoryView'](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x449da4['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',(_0x18021c,_0x296ac5)=>_0x18021c&&!_0x296ac5),this['listenTo'](_0x449da4,'submit',(_0x5751d3,_0x11f3ce)=>{this['prompt']=_0x11f3ce;const _0x1bdb83=_0x1c6040(_0x11f3ce);this['fire']('submitPrompt',_0x1bdb83),_0x11f3ce['trim']()&&this['_promptHistory']['add']({'prompt':_0x1bdb83},0x0);},{'priority':'high'}),_0x449da4;}['_createHistoryView'](){const _0x19be22=new rs(this['locale']);return _0x19be22['historyGroupView']['items']['bindTo'](this['_promptHistory'])['as'](hs),_0x19be22['on']('clearHistory',()=>{this['_promptHistory']['clear'](),this['promptView']['search'](''),this['promptView']['focus']();}),_0x19be22;}['_createToolbar'](){const _0x43fe0e=new nt(this['locale']);return _0x43fe0e['replaceButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',this,'value',(_0x2be4d4,_0x452f67,_0x7168e)=>_0x2be4d4&&!_0x452f67&&!!_0x7168e),_0x43fe0e['replaceButton']['delegate']('execute')['to'](this,'replaceContent'),_0x43fe0e['insertButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',this,'value',(_0x2ad403,_0x1b703e,_0x89567)=>_0x2ad403&&!_0x1b703e&&!!_0x89567),_0x43fe0e['insertButton']['delegate']('execute')['to'](this,'insertContentBelow'),_0x43fe0e['tryAgainButton']['bind']('isEnabled')['to'](this,'isEnabled',this,'isProcessing',(_0x2686ca,_0x5485f4)=>_0x2686ca&&!_0x5485f4),_0x43fe0e['tryAgainButton']['delegate']('execute')['to'](this,'tryAgainEvent'),_0x43fe0e['stopButton']['bind']('isEnabled')['to'](this,'isProcessing'),_0x43fe0e['stopButton']['delegate']('execute')['to'](this,'stopProcessing'),_0x43fe0e;}['startProcessing'](){this['value']='',this['isError']=!0x1,this['isProcessing']=!0x0,this['contentArea']['isVisible']=!0x0,this['toolbar']['isVisible']=!0x0,this['contentArea']['focus']();}['finishProcessing'](){const _0x4657f7=this['locale'];this['isProcessing']=!0x1,this['prompt']='',this['promptView']['reset'](),this['value']&&(this['promptView']['queryView']['label']=i(_0x4657f7,'Ask\x20AI\x20to\x20improve\x20generated\x20text'));}['handleError'](_0x83ecda){const _0x30a27c=this['locale'];this['finishProcessing'](),this['isError']=!0x0,this['errorView']['text']=_0x83ecda||i(_0x30a27c,'AI_ERROR_FAILED'),this['value']||(this['contentArea']['isVisible']=!0x1);}}var E='<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M15.346\x209.422a.151.151\x200\x200\x201\x20.284\x200l.548\x201.484a.152.152\x200\x200\x200\x20.09.089l1.483.549a.151.151\x200\x200\x201\x200\x20.284l-1.483.548a.151.151\x200\x200\x200-.09.09l-.548\x201.483a.152.152\x200\x200\x201-.142.1.151.151\x200\x200\x201-.142-.1l-.549-1.483a.15.15\x200\x200\x200-.09-.09l-1.483-.548a.15.15\x200\x200\x201\x200-.284l1.484-.549a.152.152\x200\x200\x200\x20.089-.09l.549-1.483Z\x22/><path\x20d=\x22M16.306\x201.742a.151.151\x200\x200\x201\x20.284\x200l.549\x201.483a.15.15\x200\x200\x200\x20.089.09l1.483.548a.151.151\x200\x200\x201\x20.072.229.151.151\x200\x200\x201-.072.055l-1.483.549a.15.15\x200\x200\x200-.09.09l-.548\x201.482a.151.151\x200\x200\x201-.284\x200l-.549-1.483a.15.15\x200\x200\x200-.09-.09l-1.483-.548a.151.151\x200\x200\x201\x200-.284l1.484-.549a.152.152\x200\x200\x200\x20.09-.089l.548-1.483Z\x22/><path\x20d=\x22M7.665\x201.742a.151.151\x200\x200\x201\x20.284\x200l.549\x201.483a.151.151\x200\x200\x200\x20.09.09l1.482.548a.151.151\x200\x200\x201\x20.072.229.151.151\x200\x200\x201-.072.055l-1.483.549a.151.151\x200\x200\x200-.09.09L7.95\x206.267a.151.151\x200\x200\x201-.284\x200l-.549-1.483a.151.151\x200\x200\x200-.089-.09l-1.483-.548a.151.151\x200\x200\x201\x200-.284l1.483-.549a.151.151\x200\x200\x200\x20.09-.089l.548-1.483-.001.001Z\x22/><path\x20d=\x22M14.72\x207.946a.848.848\x200\x200\x200\x20.25-.591.824.824\x200\x200\x200-.241-.588l-1.943-1.938a.812.812\x200\x200\x200-.588-.241.838.838\x200\x200\x200-.591.25l-1.545\x201.539\x203.115\x203.115\x201.542-1.546h.001Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M1.19\x2015.636a.96.96\x200\x200\x201\x20.281-.679l7.835-7.834\x203.121\x203.12-7.834\x207.835a.959.959\x200\x200\x201-1.358\x200l-1.764-1.764a.96.96\x200\x200\x201-.28-.678Zm9.22-5.391-1.121-1.12-6.479\x206.478\x201.121\x201.121\x206.479-6.479Z\x22/></svg>';const j=globalThis['DataTransfer'];class n extends _0x6347ad{['licenseKey'];['_licenseKeyCheckInterval'];['_dialog'];['_formView'];['_aiAdapter'];['_aiAssistantController'];['_uiCssClasses']='';static get['pluginName'](){return'AIAssistantUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4bb6d7,a,v,_0x3de8bd];}constructor(_0x5298cb){super(_0x5298cb),_0x5298cb['config']['define']('ai.aiAssistant.disabledElements',['media','rawHtml','tableOfContents']),_0x5298cb['config']['define']('ai.aiAssistant.contentAreaCssClass',''),_0x5298cb['config']['define']('ai.useTheme',!0x0),this['_uiCssClasses']='ck-ai-assistant-ui'+(_0x5298cb['config']['get']('ai.useTheme')?'\x20ck-ai-assistant-ui_theme':'');}['init'](){const {editor:_0x2bc87c}=this;this['_aiAdapter']=_0x2bc87c['plugins']['get'](v),this['_dialog']=_0x2bc87c['plugins']['get'](_0x3de8bd),this['_formView']=null,this['_commandDefinitions']=this['_getResolvedCommandsDefinitions']();const _0xa99b0f=new y(_0x2bc87c,Array['from'](this['_commandDefinitions']['values']()));_0x2bc87c['commands']['add']('showAIAssistant',_0xa99b0f),_0x2bc87c['ui']['componentFactory']['add']('aiCommands',_0x31e1e7=>{const _0xf73ee3=_0xb732aa(_0x31e1e7);return _0xf73ee3['set']({'class':'ck-ai-commands-dropdown\x20'+this['_uiCssClasses']}),_0xf73ee3['buttonView']['set']({'label':i(_0x31e1e7,'AI\x20Commands'),'icon':E,'tooltip':!0x0}),_0xf73ee3['on']('execute',_0x4af982=>this['_onExecute'](_0x4af982['source']['id'])),_0x4e3c14(_0xf73ee3,_0x2bc87c['ui']['view']['body'],function(_0x23dba0){const _0x5a9fc1=o(_0x23dba0['config']['get']('ai.aiAssistant.commands'),_0x23dba0['locale']),_0x26d036=B(_0x23dba0,_0x5a9fc1)['filter'](_0x3451a2=>_0x3451a2['commands']['length']);if(0x1===_0x26d036['length'])return B(_0x23dba0,_0x5a9fc1[0x0]['commands'])['map'](_0x147581=>({'id':_0x147581['id'],'label':_0x147581['label']}));return _0x26d036['map'](_0x210c5d=>{const {groupId:_0x186211,groupLabel:_0x3bc6c4,commands:_0x9169f9}=_0x210c5d,_0x1571d6=B(_0x23dba0,_0x9169f9)['map'](_0x36c41c=>({'id':_0x36c41c['id'],'label':_0x36c41c['label']}));return{'id':_0x186211,'menu':_0x3bc6c4||_0x186211,'children':_0x1571d6};});}(_0x2bc87c),{'ariaLabel':i(_0x31e1e7,'AI\x20Commands')}),_0xf73ee3['menuView']['menuPanelClass']='ck-ai-commands-dropdown\x20'+this['_uiCssClasses'],_0xa99b0f['on']('change:enabledCommandsIds',_0xbe8164),_0xf73ee3['menuView']['once']('render',_0xbe8164),_0xf73ee3;function _0xbe8164(){_0xf73ee3['isEnabled']=_0xa99b0f['enabledCommandsIds']['length']>0x0;for(const _0x2339ef of _0xf73ee3['menuView']['buttons'])_0x2339ef['isEnabled']=_0xa99b0f['enabledCommandsIds']['includes'](_0x2339ef['id']);}}),_0x2bc87c['ui']['componentFactory']['add']('menuBar:aiCommands',_0x134353=>{const _0x500927=new _0x18356f(_0x134353);_0x500927['buttonView']['set']({'label':i(_0x134353,'AI\x20Commands'),'icon':E}),_0x500927['bind']('isEnabled')['to'](_0xa99b0f,'enabledCommandsIds',_0x5c6c9c=>_0x5c6c9c['length']>0x0);const _0x3c3f0a=o(_0x2bc87c['config']['get']('ai.aiAssistant.commands'),_0x134353);return this['_populateMenuBarMenu'](_0xa99b0f,_0x500927,_0x3c3f0a,_0x35455a=>this['_onExecute'](_0x35455a)),_0x500927;}),_0x2bc87c['ui']['componentFactory']['add']('aiAssistant',()=>{const _0x4cb19a=this['_createAIAssistantUIButton'](_0x4a47a2);return _0x4cb19a['set']({'tooltip':!0x0,'class':'ck-ai-assistant-button\x20'+this['_uiCssClasses']}),_0x4cb19a;}),_0x2bc87c['ui']['componentFactory']['add']('menuBar:aiAssistant',()=>{const _0x16e4d2=this['_createAIAssistantUIButton'](_0x3426d6);return _0x16e4d2['set']({'role':'menuitemcheckbox'}),_0x16e4d2;}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x44bc46=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1cec38;for(const _0x5e2436 in _0x44bc46){const _0x5361f4=_0x5e2436,_0x1d2482=_0x44bc46[_0x5361f4];if('aiLicenseKeyValid'==_0x1d2482||'aiLicenseKeyInvalid'==_0x1d2482||'aiLicenseKeyExpired'==_0x1d2482||'aiLicenseKeyDomainLimit'==_0x1d2482||'aiLicenseKeyNotAllowed'==_0x1d2482||'aiLicenseKeyEvaluationLimit'==_0x1d2482||'aiLicenseKeyTrialLimit'==_0x1d2482||'aiLicenseKeyDevelopmentLimit'==_0x1d2482||'aiLicenseKeyUsageLimit'==_0x1d2482){delete _0x44bc46[_0x5361f4],_0x1cec38=_0x1d2482,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'aiLicenseKeyInvalid'==_0x1cec38&&_0x44bc46['_showLicenseError']('invalid'),'aiLicenseKeyExpired'==_0x1cec38&&_0x44bc46['_showLicenseError']('expired'),'aiLicenseKeyDomainLimit'==_0x1cec38&&_0x44bc46['_showLicenseError']('domainLimit'),'aiLicenseKeyNotAllowed'==_0x1cec38&&_0x44bc46['_showLicenseError']('featureNotAllowed','AIAssistant'),'aiLicenseKeyEvaluationLimit'==_0x1cec38&&_0x44bc46['_showLicenseError']('evaluationLimit'),'aiLicenseKeyTrialLimit'==_0x1cec38&&_0x44bc46['_showLicenseError']('trialLimit'),'aiLicenseKeyDevelopmentLimit'==_0x1cec38&&_0x44bc46['_showLicenseError']('developmentLimit'),'aiLicenseKeyUsageLimit'==_0x1cec38&&_0x44bc46['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['showUI'](_0x135752='',_0x36dd1d='',_0x3bb8e0='custom'){const _0x3d3e05=this['editor'],_0x56cdfd=_0x3d3e05['editing']['view'],_0x41c21f=_0x3d3e05['plugins']['get'](a),_0x1cbfd9=_0x3d3e05['plugins']['get'](_0x4bb6d7);_0x41c21f['showFakeVisualSelection']();const _0x334378=new j(),_0x48f78c=new ClipboardEvent('copy',{'clipboardData':_0x334378}),_0x3489c7=new _0x2d160a(_0x334378),_0x369e98=new _0x3e833d(_0x56cdfd,_0x48f78c,{'dataTransfer':_0x3489c7});_0x1cbfd9['_forceMarkersCopy']('comment',()=>{_0x56cdfd['document']['fire']('copy',_0x369e98);}),this['_formView']||(this['_initView'](),this['_aiAssistantController']=new C(_0x3d3e05,this['_aiAdapter']['textAdapter'],this['_formView']));let _0xfb624a=_0x3489c7['getData']('text/html');const _0x17e7bf=_0x3d3e05['model']['document']['selection'],_0x5c19ff=Array['from'](_0x17e7bf['getRanges']());0x1===_0x5c19ff['length']&&_0x5c19ff[0x0]['isFlat']&&!_0x17e7bf['getSelectedElement']()&&''!==_0xfb624a['replace'](/&nbsp;/g,'')['trim']()&&(_0xfb624a='<p>'+_0xfb624a+'</p>'),this['_aiAssistantController']['updateView']({'actionId':_0x3bb8e0,'query':_0x135752,'htmlContent':_0xfb624a,'label':_0x36dd1d,'mainActionLabel':x[_0x3d3e05['model']['document']['selection']['isCollapsed']?'INSERT':'REPLACE']}),'aiAssistant'!==this['_dialog']['id']?this['_dialog']['show']({'id':'aiAssistant','icon':at['robotPencil'],'title':i(this['editor']['locale'],'AI\x20Assistant'),'content':this['_formView'],'position':_0x4f12ab['EDITOR_TOP_SIDE'],'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_aiAssistantController']['reset'](),_0x41c21f['hideFakeVisualSelection']();}}):this['_dialog']['view']['wasMoved']||this['_dialog']['view']['updatePosition']();}['hideUI'](){this['_dialog']['hide']();}['_getResolvedCommandsDefinitions'](){const _0x4cd4e1=new Map(),_0x455ff9=o(this['editor']['config']['get']('ai.aiAssistant.commands'),this['editor']['locale']);for(const _0x4803a0 of _0x455ff9)for(const _0x270eea of _0x4803a0['commands'])_0x4cd4e1['set'](_0x270eea['id'],{..._0x270eea,'groupId':_0x4803a0['groupId'],'groupLabel':_0x4803a0['groupLabel']||_0x4803a0['groupId']});return _0x4cd4e1;}['_createAIAssistantUIButton'](_0x30bebe){const _0x4e579f=this['editor'],_0x57dcdb=_0x4e579f['commands']['get']('showAIAssistant'),_0x3e5743=new _0x30bebe(_0x4e579f['locale']);return _0x3e5743['set']({'label':i(_0x4e579f['locale'],'AI\x20Assistant'),'icon':at['robotPencil'],'isToggleable':!0x0}),_0x3e5743['bind']('isEnabled')['to'](_0x57dcdb),_0x3e5743['bind']('isOn')['to'](this['_dialog'],'id',_0x579c82=>'aiAssistant'===_0x579c82),this['listenTo'](_0x3e5743,'execute',()=>{_0x3e5743['isOn']?this['hideUI']():_0x57dcdb['execute']();}),_0x3e5743;}['_initView'](){const _0x37f51b=this['editor']['plugins']['get'](a);this['_formView']=new K(this['editor']['locale'],this['_uiCssClasses'],this['editor']['config']['get']('ai.aiAssistant.contentAreaCssClass')),this['_formView']['on']('change:value',()=>{this['_dialog']['view']['wasMoved']||this['_dialog']['view']['updatePosition']();}),this['_formView']['promptView']['queryView']['fieldView']['on']('update',()=>{this['_dialog']['view']['wasMoved']||this['_dialog']['view']['updatePosition']();}),this['listenTo'](this['_formView'],'replaceContent',()=>{_0x37f51b['insertContent'](this['_aiAssistantController']['currentContext']),this['hideUI']();}),this['listenTo'](this['_formView'],'insertContentBelow',()=>{_0x37f51b['insertContentBelow'](this['_aiAssistantController']['currentContext']),this['hideUI']();}),this['_initAriaAiStatusChangeAnnouncements']();}['_initAriaAiStatusChangeAnnouncements'](){const {locale:_0x4cc77c,ui:{ariaLiveAnnouncer:_0xae67f}}=this['editor'];this['_formView']['contentArea']['on']('change:isProcessing',(_0x2b0cbb,_0x1cd2c4,_0x45d149)=>{const _0x181337=this['_aiAssistantController']['currentContext'];_0x45d149?_0xae67f['announce'](i(_0x4cc77c,'AI\x20is\x20writing')):_0x181337&&_0xae67f['announce'](i(_0x4cc77c,'Generated\x20content:\x20%0',_0x181337),{'politeness':'polite','isUnsafeHTML':!0x0});}),this['_formView']['on']('change:isError',(_0x1ca14f,_0x3ebe98,_0x5d00cb)=>{if(_0x5d00cb){const _0x1249d2=this['_formView']['errorView']['text'];_0xae67f['announce'](i(_0x4cc77c,'Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x1249d2));}});}['_onExecute'](_0x29b799){const _0x5b95fa=this['_commandDefinitions']['get'](_0x29b799),_0x436adc=this['editor'],_0x59e793=_0x436adc['model']['document']['selection'],_0x449661=_0x436adc['commands']['get']('showAIAssistant'),_0x1474e3=_0x436adc['plugins']['get'](a),_0x60014d=''+(_0x5b95fa['groupId']!==I?_0x5b95fa['groupLabel']+':\x20':'')+_0x5b95fa['label'];if(!0x1!==_0x5b95fa['requiresContent']&&_0x59e793['isCollapsed']){const _0x4bc765=_0x5284ec(_0x59e793['getSelectedBlocks']())||_0x436adc['model']['schema']['getLimitElement'](_0x59e793);_0x436adc['model']['change'](_0x529232=>{_0x529232['setSelection'](_0x4bc765,'in');});}_0x1474e3['showFakeVisualSelection'](),_0x449661['execute'](_0x5b95fa['prompt'],_0x60014d,'command:'+_0x29b799);}['_populateMenuBarMenu'](_0x1058c7,_0x321383,_0x3535b6,_0x48aabd){const _0x1161ad=this['editor'],_0x5cf749=_0x1161ad['locale'],_0x2e8942=new _0x1d8c68(_0x5cf749),_0x3298e3=B(_0x1161ad,_0x3535b6)['filter'](_0x301928=>_0x301928['commands']['length']);0x1===_0x3298e3['length']?this['_getMenuBarGroupButtons']({'command':_0x1058c7,'commands':_0x3535b6[0x0]['commands'],'parentMenuView':_0x321383,'onExecute':_0x48aabd})['forEach'](_0x50b841=>_0x2e8942['items']['add'](_0x50b841)):_0x3298e3['forEach'](({groupId:_0x2b2e7c,groupLabel:_0x480ee0,commands:_0x5704ad})=>{const _0x43b187=new _0xbba3ad(_0x5cf749,_0x321383),_0x476f8d=new _0x18356f(_0x5cf749),_0x30a8d7=new _0x1d8c68(_0x5cf749),_0xeb8335=this['_getMenuBarGroupButtons']({'command':_0x1058c7,'commands':_0x5704ad,'parentMenuView':_0x476f8d,'onExecute':_0x48aabd});_0x476f8d['buttonView']['set']({'label':_0x480ee0||_0x2b2e7c}),_0x476f8d['delegate']('execute')['to'](_0x321383),_0x30a8d7['items']['addMany'](_0xeb8335),_0x476f8d['panelView']['children']['add'](_0x30a8d7),_0x43b187['children']['add'](_0x476f8d),_0x2e8942['items']['add'](_0x43b187);}),_0x321383['panelView']['children']['add'](_0x2e8942);}['_getMenuBarGroupButtons']({command:_0x47a929,commands:_0x38515e,parentMenuView:_0x4c122b,onExecute:_0x2acd25}){const _0x1060a6=this['editor'],_0x194d86=_0x1060a6['locale'];return B(_0x1060a6,_0x38515e)['map'](_0x30d48f=>{const _0xdc9a79=new _0xbba3ad(_0x194d86,_0x4c122b),_0x1d268f=new _0x3426d6(_0x194d86);return _0x1d268f['set']({'label':_0x30d48f['label']}),_0x1d268f['delegate']('execute')['to'](_0x4c122b),_0x1d268f['on']('execute',()=>_0x2acd25(_0x30d48f['id'])),_0x1d268f['bind']('isEnabled')['to'](_0x47a929,'enabledCommandsIds',_0x23bf1f=>_0x23bf1f['includes'](_0x30d48f['id'])),_0xdc9a79['children']['add'](_0x1d268f),_0xdc9a79;});}}function _(_0x3cf0a2,_0x373418){return void 0x0!==_0x3cf0a2['order']&&void 0x0===_0x373418['order']?0x1:void 0x0===_0x3cf0a2['order']&&void 0x0!==_0x373418['order']?-0x1:void 0x0!==_0x3cf0a2['order']&&void 0x0!==_0x373418['order']?_0x3cf0a2['order']-_0x373418['order']:0x0;}function B(_0x5eedee,_0x4a4ece){_0x4a4ece['sort'](_);const _0x5a7f66={},_0x1f04fe=[];for(const _0x4f9fda of _0x4a4ece)if(void 0x0!==_0x4f9fda['order']){if(_0x4f9fda['order']in _0x5a7f66)throw new _0x4cd1cc('ai-commands-config-order-collision',_0x5eedee,{'conflictingDefinitions':[_0x4f9fda,_0x5a7f66[_0x4f9fda['order']]]});_0x5a7f66[_0x4f9fda['order']]=_0x4f9fda,_0x1f04fe['splice'](_0x4f9fda['order'],0x0,_0x4f9fda);}else _0x1f04fe['push'](_0x4f9fda);return _0x1f04fe;}class r extends _0x6347ad{static get['requires'](){return[n,a];}static get['pluginName'](){return'AIAssistant';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f5f2f){super(_0x4f5f2f);const _0x416d15=_0x4f5f2f['config'],_0xbd60b5=_0x4f5f2f['locale'];_0x416d15['define']('ai.aiAssistant.commands',function(_0x397ed1){return[{'groupId':'editOrReview','groupLabel':i(_0x397ed1,'Edit\x20or\x20review'),'commands':[{'id':'improveWriting','label':i(_0x397ed1,'Improve\x20writing'),'prompt':'Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.'},{'id':'makeShorter','label':i(_0x397ed1,'Make\x20shorter'),'prompt':'Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.'},{'id':'makeLonger','label':i(_0x397ed1,'Make\x20longer'),'prompt':'Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.'},{'id':'simplifyLanguage','label':i(_0x397ed1,'Simplify\x20language'),'prompt':'Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.'}]},{'groupId':'generate','groupLabel':i(_0x397ed1,'Generate\x20from\x20selection'),'commands':[{'id':'summarize','label':i(_0x397ed1,'Summarize'),'prompt':'Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.'},{'id':'continue','label':i(_0x397ed1,'Continue'),'prompt':'Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.'}]},{'groupId':'changeTone','groupLabel':i(_0x397ed1,'Change\x20tone'),'commands':[{'id':'professional','label':i(_0x397ed1,'Professional'),'prompt':'Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.'},{'id':'casual','label':i(_0x397ed1,'Casual'),'prompt':'Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.'},{'id':'direct','label':i(_0x397ed1,'Direct'),'prompt':'Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.'},{'id':'confident','label':i(_0x397ed1,'Confident'),'prompt':'Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.'},{'id':'friendly','label':i(_0x397ed1,'Friendly'),'prompt':'Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.'}]},{'groupId':'changeStyle','groupLabel':i(_0x397ed1,'Change\x20style'),'commands':[{'id':'business','label':i(_0x397ed1,'Business'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.'},{'id':'legal','label':i(_0x397ed1,'Legal'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.'},{'id':'journalism','label':i(_0x397ed1,'Journalism'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.'},{'id':'poetic','label':i(_0x397ed1,'Poetic'),'prompt':'Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.'}]},{'groupId':'translate','groupLabel':i(_0x397ed1,'Translate'),'commands':[{'id':'translateEnglish','label':i(_0x397ed1,'English'),'prompt':'Translate\x20the\x20content\x20to\x20English\x20language.'},{'id':'translateSpanish','label':i(_0x397ed1,'Spanish'),'prompt':'Translate\x20the\x20content\x20to\x20Spanish\x20language.'},{'id':'translatePortuguese','label':i(_0x397ed1,'Portuguese'),'prompt':'Translate\x20the\x20content\x20to\x20Portuguese\x20language.'},{'id':'translateGerman','label':i(_0x397ed1,'German'),'prompt':'Translate\x20the\x20content\x20to\x20German\x20language.'},{'id':'translateFrench','label':i(_0x397ed1,'French'),'prompt':'Translate\x20the\x20content\x20to\x20French\x20language.'},{'id':'translateChinese','label':i(_0x397ed1,'Simplified\x20Chinese'),'prompt':'Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.'},{'id':'translateHindi','label':i(_0x397ed1,'Hindi'),'prompt':'Translate\x20the\x20content\x20to\x20Hindi\x20language.'},{'id':'translateArabic','label':i(_0x397ed1,'Arabic'),'prompt':'Translate\x20the\x20content\x20to\x20Arabic\x20language.'}]}];}(_0xbd60b5)),_0x416d15['define']('ai.aiAssistant.extraCommandGroups',[]),_0x416d15['define']('ai.aiAssistant.removeCommands',[]);const _0x5bfedf=o(_0x416d15['get']('ai.aiAssistant.commands'),_0xbd60b5),_0x51e5b2=_0x416d15['get']('ai.aiAssistant.extraCommandGroups'),_0x2b7533=_0x416d15['get']('ai.aiAssistant.removeCommands');_0x51e5b2['forEach'](_0x5ab895=>{const _0x11b872=_0x5bfedf['find'](_0x245ac3=>_0x245ac3['groupId']===_0x5ab895['groupId']);_0x11b872?_0x11b872['commands']=_0x11b872['commands']['concat'](_0x5ab895['commands']):_0x5bfedf['push'](_0x5ab895);}),_0x5bfedf['forEach'](_0x16f71a=>{_0x16f71a['commands']=_0x16f71a['commands']['filter'](_0x463563=>!_0x2b7533['includes'](_0x463563['id']));}),_0x416d15['set']('ai.aiAssistant.commands',_0x5bfedf);}}class P extends _0x6347ad{['abortController'];static get['requires'](){return[v];}constructor(_0x148efb){super(_0x148efb),this['abortController']=new AbortController();}['init'](){this['editor']['plugins']['get'](v)['textAdapter']=this;}['abort'](){this['abortController']['signal']['aborted']||(this['abortController']['abort'](),this['abortController']=new AbortController());}async['makeRequest'](_0x260273){return this['sendRequest'](_0x260273)['catch'](_0x494be5=>{if(_0x494be5 instanceof R)return Promise['reject'](_0x494be5);if('AbortError'==_0x494be5['name'])return Promise['resolve']();throw console['error'](_0x494be5),new _0x4cd1cc('aitextadapter-send-request-failed',null);});}async['_prepareRequestHeaders'](_0x40302b,_0x5bca80){const _0x30c87d=this['editor']['locale'],_0x420b71={'Content-Type':'application/json'};if('object'==typeof _0x40302b)Object['assign'](_0x420b71,_0x40302b);else{if(_0x40302b)try{const _0x5caf90=await _0x40302b(_0x5bca80);Object['assign'](_0x420b71,_0x5caf90);}catch(_0xeb92e8){return Promise['reject'](new R(i(_0x30c87d,'AI_ERROR_GET_HEADERS')));}}return _0x420b71;}async['_prepareRequestParameters'](_0x83602e,_0x25e030){const _0x2c0ee7=this['editor']['locale'];if('object'==typeof _0x83602e)return _0x83602e;try{return await _0x83602e(_0x25e030);}catch(_0x1c0972){return Promise['reject'](new R(i(_0x2c0ee7,'AI_ERROR_GET_PARAMETERS')));}}}class H extends P{['_apiUrl'];['_requestHeaders'];['_requestParameters'];static get['pluginName'](){return'OpenAITextAdapter';}constructor(_0x13b919){super(_0x13b919),_0x13b919['config']['define']('ai.openAI.apiUrl','https://api.openai.com/v1/chat/completions'),_0x13b919['config']['get']('ai.openAI.requestParameters')||_0x13b919['config']['define']('ai.openAI.requestParameters',{'model':'gpt-3.5-turbo','max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this['_apiUrl']=_0x13b919['config']['get']('ai.openAI.apiUrl'),this['_requestHeaders']=_0x13b919['config']['get']('ai.openAI.requestHeaders')||{},this['_requestParameters']=_0x13b919['config']['get']('ai.openAI.requestParameters');}async['sendRequest']({query:_0x17c5c2,context:_0xe42836,onData:_0x6a16b6,actionId:_0x3403ca}){const _0x1f27df=this['editor']['locale'],_0x3ef4bc=await this['prepareMessages'](_0x17c5c2,_0xe42836,_0x3403ca),_0x152810=await this['_prepareRequestHeaders'](this['_requestHeaders'],_0x3403ca),_0x191582=await this['_prepareRequestParameters'](this['_requestParameters'],_0x3403ca),_0x356255={'messages':_0x3ef4bc,..._0x191582},_0x1c9ec5={'method':'POST','headers':_0x152810,'body':JSON['stringify'](_0x356255),'signal':this['abortController']['signal']},_0x6bc26f=await fetch(this['_apiUrl'],_0x1c9ec5);if(_0x6bc26f['ok'])return _0x191582['stream']?await this['_readStreamableResponse'](_0x6bc26f,_0x6a16b6):await this['_readStaticResponse'](_0x6bc26f,_0x6a16b6),Promise['resolve']();{const _0x5cdc00=await _0x6bc26f['text']();return _0x5cdc00['includes']('context_length_exceeded')?Promise['reject'](new R(i(_0x1f27df,'AI_ERROR_CONTEXT_LENGTH'))):_0x5cdc00['includes']('Moderation')?Promise['reject'](new R(i(_0x1f27df,'AI_ERROR_MODERATION'))):Promise['reject'](new Error(_0x5cdc00));}}async['prepareMessages'](_0x6e9c23,_0x5f0f44,_0x50a568){let _0x53615c,_0x4447cd;return _0x5f0f44?(_0x53615c='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.',_0x4447cd='Instruction:\x0a'+_0x6e9c23+'\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a'+_0x5f0f44):(_0x53615c='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.',_0x4447cd=_0x6e9c23),[{'role':'system','content':_0x53615c},{'role':'user','content':_0x4447cd}];}async['_readStreamableResponse'](_0x31c42f,_0x40d738){const _0x24c669=_0x31c42f['body']['getReader'](),_0xd4bca9=new TextDecoder();let _0x341018='',_0x707931='',_0x291747='',_0x510f08=!0x1;for(;!_0x510f08;){const {done:_0x62210d,value:_0x239501}=await _0x24c669['read'](),_0x1ca075=_0x341018+_0xd4bca9['decode'](_0x239501);let _0x143ac6='';_0x510f08=_0x62210d;try{_0x143ac6=this['_cleanUpData'](_0x1ca075),_0x341018='';}catch(_0x2761cf){_0x341018=_0x1ca075;continue;}_0x707931+=_0x143ac6,!_0x510f08&&this['_isBufferIncomplete'](_0x707931)||_0x707931&&(_0x291747+=_0x707931,_0x707931='',_0x40d738(_0x291747));}return Promise['resolve']();}async['_readStaticResponse'](_0x17c0f1,_0x105ba7){return _0x105ba7((await _0x17c0f1['json']())['choices'][0x0]['message']['content']),Promise['resolve']();}['_isBufferIncomplete'](_0x26dbaf){const _0x2f1952=_0x26dbaf['split']('<')['length']!==_0x26dbaf['split']('>')['length'],_0x2abbe0=_0x26dbaf['length']<0x1e;return _0x2f1952&&_0x2abbe0;}['_cleanUpData'](_0x47df9d){return _0x47df9d['split'](/\n(?![^{]*\})/g)['map'](_0x2b0b24=>_0x2b0b24['replace']('data:\x20',''))['filter'](_0x150ab0=>_0x150ab0&&_0x150ab0['length']>0x0&&'[DONE]'!==_0x150ab0)['map'](_0x2c655f=>{const {choices:_0x3d8c76}=JSON['parse'](_0x2c655f);if(_0x3d8c76[0x0]&&_0x3d8c76[0x0]['delta']&&_0x3d8c76[0x0]['delta']['content'])return _0x3d8c76[0x0]['delta']['content'];})['filter'](_0x180fa8=>_0x180fa8)['join']('');}}class O extends P{['_apiUrl'];['_requestHeaders'];['_bedrockClientConfig'];['_requestParameters'];static get['pluginName'](){return'AWSTextAdapter';}constructor(_0x2d1944){super(_0x2d1944),_0x2d1944['config']['get']('ai.aws.requestParameters')||_0x2d1944['config']['define']('ai.aws.requestParameters',{'model':'anthropic.claude-v2','max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':'bedrock-2023-05-31','stream':!0x0}),this['_apiUrl']=_0x2d1944['config']['get']('ai.aws.apiUrl'),this['_bedrockClientConfig']=_0x2d1944['config']['get']('ai.aws.bedrockClientConfig'),this['_requestHeaders']=_0x2d1944['config']['get']('ai.aws.requestHeaders'),this['_requestParameters']=_0x2d1944['config']['get']('ai.aws.requestParameters');}async['sendRequest']({query:_0x4b8546,context:_0x2d6d2b,onData:_0x1661d3,actionId:_0x5163a5}){const {model:_0x40be39,stream:_0x3f3b9e,..._0x28949d}=await this['_prepareRequestParameters'](this['_requestParameters'],_0x5163a5),_0x2f0cb8={'prompt':await this['preparePrompt'](_0x4b8546,_0x2d6d2b,_0x40be39,_0x5163a5),..._0x28949d};this['_apiUrl']?await this['_processProxyRequest'](_0x2f0cb8,_0x40be39,_0x3f3b9e,_0x1661d3,_0x5163a5):await this['_processAWSRequest'](_0x2f0cb8,_0x40be39,_0x3f3b9e,_0x1661d3);}async['preparePrompt'](_0x204a48,_0x5b9ee0,_0x7f6f3,_0x9eea9){let _0x23b0c1,_0x1251bc;return _0x5b9ee0?(_0x23b0c1='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.',_0x1251bc='Instruction:\x0a'+_0x204a48+'\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a'+_0x5b9ee0):(_0x23b0c1='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.',_0x1251bc=_0x204a48),'meta.llama'==this['getModelFamily'](_0x7f6f3)?'<<SYS>>\x0a'+_0x23b0c1+'\x0a<</SYS>>\x0a[INST]\x0a'+_0x1251bc+'\x0a[/INST]':'Human:\x0a'+_0x23b0c1+'\x0a'+_0x1251bc+'\x0a\x0aAssistant:';}['getModelFamily'](_0x211433){if(/^anthropic\.claude/['test'](_0x211433))return'anthropic.claude';if(/^ai21\.j2/['test'](_0x211433))return'ai21.j2';if(/^cohere\.command/['test'](_0x211433))return'cohere.command';if(/^meta\.llama/['test'](_0x211433))return'meta.llama';throw new R(i(this['editor']['locale'],'AI_ERROR_UNSUPPORTED_MODEL',_0x211433));}async['_processProxyRequest'](_0x136cc8,_0x51a434,_0x15dae5,_0x23d4b8,_0x431fbe){const _0x41b1ef={'method':'POST','headers':await this['_prepareRequestHeaders'](this['_requestHeaders'],_0x431fbe),'body':JSON['stringify']({..._0x136cc8,'model':_0x51a434,'stream':_0x15dae5}),'signal':this['abortController']['signal']},_0x1b95e0=await fetch(this['_apiUrl'],_0x41b1ef);_0x15dae5?await this['_readStreamableResponse'](_0x1b95e0,_0x51a434,_0x23d4b8):await this['_readStaticResponse'](_0x1b95e0,_0x51a434,_0x23d4b8);}async['_processAWSRequest'](_0xf2468b,_0x634b79,_0x1ba0a9,_0x13be72){const _0x523b14=new _0xb6a1a9(this['_bedrockClientConfig']),_0x5772b7={'body':JSON['stringify'](_0xf2468b),'contentType':'application/json','accept':'application/json','modelId':_0x634b79};let _0x1a11a4;if(_0x1ba0a9){const _0x1e05b8=new _0x460a10(_0x5772b7);_0x1a11a4=await _0x523b14['send'](_0x1e05b8,{'abortSignal':this['abortController']['signal']}),await this['_readAsyncIterableResponse'](_0x1a11a4,_0x634b79,_0x13be72);}else{const _0x45dd42=new _0x357efb(_0x5772b7);_0x1a11a4=await _0x523b14['send'](_0x45dd42,{'abortSignal':this['abortController']['signal']}),await this['_readStaticResponse'](_0x1a11a4,_0x634b79,_0x13be72);}}async['_readAsyncIterableResponse'](_0x2164e5,_0x523e75,_0x8c5eb0){const _0x25dbe6=_0x2164e5['body'],_0x48c591=new TextDecoder('utf-8');let _0x11057c='';for await(const _0x1fd4d7 of _0x25dbe6)if(_0x1fd4d7['chunk']){const _0x1835b6=_0x48c591['decode'](_0x1fd4d7['chunk']['bytes']),_0x131c02=JSON['parse'](_0x1835b6);_0x11057c+=this['_getGeneratedText'](_0x131c02,_0x523e75),_0x8c5eb0(_0x11057c);}return Promise['resolve']();}async['_readStreamableResponse'](_0xad13d,_0x13b0a6,_0x32a2c1){const _0x1c5719=_0xad13d['body'],_0x4dd903=new TextDecoder('utf-8'),_0x65d90b=_0x1c5719['getReader']();let _0x1a7abd='',_0x512879='',_0x1b7898=!0x1;for(;!_0x1b7898;){const {done:_0x56bdae,value:_0x154bd6}=await _0x65d90b['read']();if(_0x1b7898=_0x56bdae,_0x1b7898)break;const _0x5d2d36=(_0x1a7abd+_0x4dd903['decode'](_0x154bd6))['split']('\x0a')['map'](_0x3915a5=>{try{return _0x1a7abd='',JSON['parse'](_0x3915a5);}catch(_0x3a9b20){return _0x1a7abd=_0x3915a5,null;}})['filter'](_0x37c3d3=>null!==_0x37c3d3);_0x5d2d36['length']&&(_0x512879+=_0x5d2d36['map'](_0x5b6e38=>this['_getGeneratedText'](_0x5b6e38,_0x13b0a6))['join'](''),_0x32a2c1(_0x512879));}return Promise['resolve']();}async['_readStaticResponse'](_0x516326,_0xa0490e,_0x2dc737){let _0x2fad75;return _0x2fad75=_0x516326 instanceof Response?await _0x516326['json']():JSON['parse'](Buffer['from'](_0x516326['body'])['toString']('utf8')),(_0x2dc737(this['_getGeneratedText'](_0x2fad75,_0xa0490e)),Promise['resolve']());}['_getGeneratedText'](_0x5d3a2c,_0x29c2bc){switch(this['getModelFamily'](_0x29c2bc)){case'anthropic.claude':return _0x5d3a2c['completion'];case'ai21.j2':return _0x5d3a2c['completions'][0x0]['data']['text'];case'cohere.command':return _0x5d3a2c['generations'][0x0]['text'];case'meta.llama':return _0x5d3a2c['generation'];}}}export{v as AIAdapter,r as AIAssistant,R as AIRequestError,P as AITextAdapter,O as AWSTextAdapter,H as OpenAITextAdapter};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module ai/legacyerrors
11
+ * @publicApi
12
+ */
13
+ /**
14
+ * Invalid license key. Please contact our customer support at https://ckeditor.com/contact/.
15
+ *
16
+ * @error ai-invalid-license-key
17
+ */
18
+ /**
19
+ * You have exhausted the trial usage limit (reason: reached document changes limit). Restart the editor.
20
+ *
21
+ * Please contact our customer support to get full access at https://ckeditor.com/contact/.
22
+ *
23
+ * @error ai-trial-license-key-reached-limit-changes
24
+ */
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ import type { Translations } from '@ckeditor/ckeditor5-utils';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export default{'af':{'dictionary':{'Edit\x20or\x20review':'','Improve\x20writing':'','Make\x20shorter':'','Make\x20longer':'','Simplify\x20language':'','Generate\x20from\x20selection':'','Summarize':'','Continue':'','Change\x20tone':'','Professional':'','Casual':'','Direct':'','Confident':'','Friendly':'','Change\x20style':'','Business':'','Legal':'','Journalism':'','Poetic':'','Translate':'','English':'','Spanish':'','German':'','Portuguese':'','French':'','Simplified\x20Chinese':'','Hindi':'','Arabic':'','AI\x20Assistant':'','AI\x20Commands':'','Ask\x20AI\x20to\x20edit\x20or\x20generate':'','Ask\x20AI\x20to\x20improve\x20generated\x20text':'','Copy':'','Submit':'Indien','Insert\x20below':'','Try\x20again':'','Stop':'','AI\x20is\x20writing...':'','AI\x20is\x20writing':'','Generated\x20content:\x20%0':'','Error\x20during\x20AI\x20content\x20generation:\x20%0':'','History':'','Empty\x20history':'','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'','Prompt\x20history':'','AI_REPLACE_CONTENT':'Vervang','AI_INSERT_CONTENT':'','AI_ERROR_GET_HEADERS':'','AI_ERROR_GET_PARAMETERS':'','AI_ERROR_UNSUPPORTED_MODEL':'','AI_ERROR_CONTEXT_LENGTH':'','AI_ERROR_MODERATION':'','AI_ERROR_FAILED':''},'getPluralForm':_0x140a78=>0x1!=_0x140a78}};
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ (_0x56b69d=>{const {af:{dictionary:_0x23dc2d,getPluralForm:_0x443aba}}={'af':{'dictionary':{'Edit\x20or\x20review':'','Improve\x20writing':'','Make\x20shorter':'','Make\x20longer':'','Simplify\x20language':'','Generate\x20from\x20selection':'','Summarize':'','Continue':'','Change\x20tone':'','Professional':'','Casual':'','Direct':'','Confident':'','Friendly':'','Change\x20style':'','Business':'','Legal':'','Journalism':'','Poetic':'','Translate':'','English':'','Spanish':'','German':'','Portuguese':'','French':'','Simplified\x20Chinese':'','Hindi':'','Arabic':'','AI\x20Assistant':'','AI\x20Commands':'','Ask\x20AI\x20to\x20edit\x20or\x20generate':'','Ask\x20AI\x20to\x20improve\x20generated\x20text':'','Copy':'','Submit':'Indien','Insert\x20below':'','Try\x20again':'','Stop':'','AI\x20is\x20writing...':'','AI\x20is\x20writing':'','Generated\x20content:\x20%0':'','Error\x20during\x20AI\x20content\x20generation:\x20%0':'','History':'','Empty\x20history':'','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'','Prompt\x20history':'','AI_REPLACE_CONTENT':'Vervang','AI_INSERT_CONTENT':'','AI_ERROR_GET_HEADERS':'','AI_ERROR_GET_PARAMETERS':'','AI_ERROR_UNSUPPORTED_MODEL':'','AI_ERROR_CONTEXT_LENGTH':'','AI_ERROR_MODERATION':'','AI_ERROR_FAILED':''},'getPluralForm':_0x4f6dc6=>0x1!=_0x4f6dc6}};_0x56b69d['af']||={'dictionary':{},'getPluralForm':null},_0x56b69d['af']['dictionary']=Object['assign'](_0x56b69d['af']['dictionary'],_0x23dc2d),_0x56b69d['af']['getPluralForm']=_0x443aba;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ import type { Translations } from '@ckeditor/ckeditor5-utils';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export default{'ar':{'dictionary':{'Edit\x20or\x20review':'التحرير\x20أو\x20المراجعة','Improve\x20writing':'قم\x20بتحسين\x20الكتابة','Make\x20shorter':'اجعله\x20أقصر','Make\x20longer':'اجعله\x20أطول','Simplify\x20language':'قم\x20بتبسيط\x20اللغة','Generate\x20from\x20selection':'قم\x20بالإنشاء\x20من\x20التحديد','Summarize':'تلخيص','Continue':'متابعة','Change\x20tone':'تغيير\x20الأسلوب','Professional':'احترافي','Casual':'غير\x20رسمي','Direct':'مباشر','Confident':'لهجة\x20واثقة','Friendly':'ودي','Change\x20style':'تغيير\x20الأسلوب','Business':'تجاري','Legal':'قانوني','Journalism':'الكتابة\x20الصحفية','Poetic':'شِعري','Translate':'ترجِمْ','English':'الإنكليزية','Spanish':'الإسبانية','German':'الألمانية','Portuguese':'البرتغالية','French':'الفرنسية','Simplified\x20Chinese':'الصينية\x20المبسطة','Hindi':'الهندية','Arabic':'العربية','AI\x20Assistant':'مساعد\x20الذكاء\x20الاصطناعي','AI\x20Commands':'أوامر\x20الذكاء\x20الاصطناعي','Ask\x20AI\x20to\x20edit\x20or\x20generate':'اطلب\x20من\x20الذكاء\x20الاصطناعي\x20أن\x20يقوم\x20بالتحرير\x20أو\x20الإنشاء','Ask\x20AI\x20to\x20improve\x20generated\x20text':'اطلب\x20من\x20الذكاء\x20الاصطناعي\x20أن\x20يقوم\x20بتحسين\x20النص\x20الذي\x20تم\x20إنشاؤه','Copy':'نسخ','Submit':'إرسال','Insert\x20below':'أدخل\x20أدناه','Try\x20again':'حاول\x20مجددًا','Stop':'إيقاف','AI\x20is\x20writing...':'يقوم\x20الذكاء\x20الاصطناعي\x20بالكتابة...','AI\x20is\x20writing':'يكتب\x20الذكاء\x20الاصطناعي','Generated\x20content:\x20%0':'المحتوى\x20الذي\x20تم\x20إنشاؤه:\x20%0','Error\x20during\x20AI\x20content\x20generation:\x20%0':'حدث\x20خطأ\x20أثناء\x20إنشاء\x20محتوى\x20الذكاء\x20الاصطناعي:\x20%0','History':'سجل\x20المحفوظات','Empty\x20history':'السجل\x20فارغ','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'سيتم\x20إدراج\x20الطلبات\x20التي\x20طلبتها\x20من\x20الذكاء\x20الاصطناعي\x20والتوجيهات\x20الخاصة\x20بك\x20هنا\x20لكي\x20يتم\x20استخدامها\x20لاحقًا.','Prompt\x20history':'سجل\x20التوجيهات','AI_REPLACE_CONTENT':'استبدال','AI_INSERT_CONTENT':'إدراج','AI_ERROR_GET_HEADERS':'فشلت\x20عملية\x20تحضير\x20عناوين\x20الطلبات','AI_ERROR_GET_PARAMETERS':'لقد\x20فشلت\x20عملية\x20إعداد\x20معلمات\x20الطلب','AI_ERROR_UNSUPPORTED_MODEL':'إن\x20نموذج\x20AI\x20المطلوب\x20(\x22%0\x22)\x20غير\x20مدعوم','AI_ERROR_CONTEXT_LENGTH':'المحتوى\x20المحدد\x20طويل\x20جداً','AI_ERROR_MODERATION':'الاستعلام\x20المطلوب\x20لا\x20يجتاز\x20قواعد\x20الإشراف','AI_ERROR_FAILED':'لقد\x20فشل\x20التواصل\x20مع\x20خدمة\x20الذكاء\x20الاصطناعي'},'getPluralForm':_0x45b515=>0x0==_0x45b515?0x0:0x1==_0x45b515?0x1:0x2==_0x45b515?0x2:_0x45b515%0x64>=0x3&&_0x45b515%0x64<=0xa?0x3:_0x45b515%0x64>=0xb&&_0x45b515%0x64<=0x63?0x4:0x5}};
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ (_0x41bdef=>{const {ar:{dictionary:_0x2a6f9e,getPluralForm:_0xa5e951}}={'ar':{'dictionary':{'Edit\x20or\x20review':'التحرير\x20أو\x20المراجعة','Improve\x20writing':'قم\x20بتحسين\x20الكتابة','Make\x20shorter':'اجعله\x20أقصر','Make\x20longer':'اجعله\x20أطول','Simplify\x20language':'قم\x20بتبسيط\x20اللغة','Generate\x20from\x20selection':'قم\x20بالإنشاء\x20من\x20التحديد','Summarize':'تلخيص','Continue':'متابعة','Change\x20tone':'تغيير\x20الأسلوب','Professional':'احترافي','Casual':'غير\x20رسمي','Direct':'مباشر','Confident':'لهجة\x20واثقة','Friendly':'ودي','Change\x20style':'تغيير\x20الأسلوب','Business':'تجاري','Legal':'قانوني','Journalism':'الكتابة\x20الصحفية','Poetic':'شِعري','Translate':'ترجِمْ','English':'الإنكليزية','Spanish':'الإسبانية','German':'الألمانية','Portuguese':'البرتغالية','French':'الفرنسية','Simplified\x20Chinese':'الصينية\x20المبسطة','Hindi':'الهندية','Arabic':'العربية','AI\x20Assistant':'مساعد\x20الذكاء\x20الاصطناعي','AI\x20Commands':'أوامر\x20الذكاء\x20الاصطناعي','Ask\x20AI\x20to\x20edit\x20or\x20generate':'اطلب\x20من\x20الذكاء\x20الاصطناعي\x20أن\x20يقوم\x20بالتحرير\x20أو\x20الإنشاء','Ask\x20AI\x20to\x20improve\x20generated\x20text':'اطلب\x20من\x20الذكاء\x20الاصطناعي\x20أن\x20يقوم\x20بتحسين\x20النص\x20الذي\x20تم\x20إنشاؤه','Copy':'نسخ','Submit':'إرسال','Insert\x20below':'أدخل\x20أدناه','Try\x20again':'حاول\x20مجددًا','Stop':'إيقاف','AI\x20is\x20writing...':'يقوم\x20الذكاء\x20الاصطناعي\x20بالكتابة...','AI\x20is\x20writing':'يكتب\x20الذكاء\x20الاصطناعي','Generated\x20content:\x20%0':'المحتوى\x20الذي\x20تم\x20إنشاؤه:\x20%0','Error\x20during\x20AI\x20content\x20generation:\x20%0':'حدث\x20خطأ\x20أثناء\x20إنشاء\x20محتوى\x20الذكاء\x20الاصطناعي:\x20%0','History':'سجل\x20المحفوظات','Empty\x20history':'السجل\x20فارغ','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'سيتم\x20إدراج\x20الطلبات\x20التي\x20طلبتها\x20من\x20الذكاء\x20الاصطناعي\x20والتوجيهات\x20الخاصة\x20بك\x20هنا\x20لكي\x20يتم\x20استخدامها\x20لاحقًا.','Prompt\x20history':'سجل\x20التوجيهات','AI_REPLACE_CONTENT':'استبدال','AI_INSERT_CONTENT':'إدراج','AI_ERROR_GET_HEADERS':'فشلت\x20عملية\x20تحضير\x20عناوين\x20الطلبات','AI_ERROR_GET_PARAMETERS':'لقد\x20فشلت\x20عملية\x20إعداد\x20معلمات\x20الطلب','AI_ERROR_UNSUPPORTED_MODEL':'إن\x20نموذج\x20AI\x20المطلوب\x20(\x22%0\x22)\x20غير\x20مدعوم','AI_ERROR_CONTEXT_LENGTH':'المحتوى\x20المحدد\x20طويل\x20جداً','AI_ERROR_MODERATION':'الاستعلام\x20المطلوب\x20لا\x20يجتاز\x20قواعد\x20الإشراف','AI_ERROR_FAILED':'لقد\x20فشل\x20التواصل\x20مع\x20خدمة\x20الذكاء\x20الاصطناعي'},'getPluralForm':_0x425191=>0x0==_0x425191?0x0:0x1==_0x425191?0x1:0x2==_0x425191?0x2:_0x425191%0x64>=0x3&&_0x425191%0x64<=0xa?0x3:_0x425191%0x64>=0xb&&_0x425191%0x64<=0x63?0x4:0x5}};_0x41bdef['ar']||={'dictionary':{},'getPluralForm':null},_0x41bdef['ar']['dictionary']=Object['assign'](_0x41bdef['ar']['dictionary'],_0x2a6f9e),_0x41bdef['ar']['getPluralForm']=_0xa5e951;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ import type { Translations } from '@ckeditor/ckeditor5-utils';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export default{'bg':{'dictionary':{'Edit\x20or\x20review':'Редактирайте\x20или\x20прегледайте','Improve\x20writing':'Подобрете\x20писането','Make\x20shorter':'Направете\x20по-кратко','Make\x20longer':'Направете\x20по-дълго','Simplify\x20language':'Опростете\x20езика','Generate\x20from\x20selection':'Генериране\x20от\x20селекция','Summarize':'Обобщете','Continue':'Продължете','Change\x20tone':'Промяна\x20на\x20тона','Professional':'Професионален','Casual':'Непринуден','Direct':'Директен','Confident':'Уверен','Friendly':'Приятелски','Change\x20style':'Промяна\x20на\x20стила','Business':'Бизнес','Legal':'Юридически','Journalism':'Журналистика','Poetic':'Поетичен','Translate':'Превод','English':'Английски','Spanish':'Испански','German':'Немски','Portuguese':'Португалски','French':'Френски','Simplified\x20Chinese':'Китайски\x20(опростен)','Hindi':'Хинди','Arabic':'Арабски','AI\x20Assistant':'AI\x20асистент','AI\x20Commands':'AI\x20команди','Ask\x20AI\x20to\x20edit\x20or\x20generate':'Помолете\x20AI\x20да\x20редактира\x20или\x20генерира','Ask\x20AI\x20to\x20improve\x20generated\x20text':'Помолете\x20AI\x20да\x20подобри\x20генерирания\x20текст','Copy':'Копирай','Submit':'Подай','Insert\x20below':'Поставете\x20по-долу','Try\x20again':'Опитайте\x20отново','Stop':'Спиране','AI\x20is\x20writing...':'AI\x20пише...','AI\x20is\x20writing':'ИИ\x20пише','Generated\x20content:\x20%0':'Създадено\x20съдържание:\x20%0','Error\x20during\x20AI\x20content\x20generation:\x20%0':'Грешка\x20по\x20време\x20на\x20генерирането\x20на\x20съдържание\x20с\x20ИИ:\x20%0','History':'История','Empty\x20history':'Празна\x20история','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'Попитайте\x20AI\x20и\x20Вашите\x20подкани\x20ще\x20бъдат\x20изброени\x20тук,\x20за\x20да\x20ги\x20използвате\x20по-късно.','Prompt\x20history':'Подкана\x20за\x20история','AI_REPLACE_CONTENT':'Замени','AI_INSERT_CONTENT':'Вмъкни','AI_ERROR_GET_HEADERS':'Подготовката\x20на\x20заглавките\x20на\x20заявката\x20не\x20беше\x20успешна','AI_ERROR_GET_PARAMETERS':'Неуспешна\x20подготовка\x20на\x20параметрите\x20на\x20заявката','AI_ERROR_UNSUPPORTED_MODEL':'Заявеният\x20AI\x20модел\x20(„%0“)\x20не\x20се\x20поддържа','AI_ERROR_CONTEXT_LENGTH':'Избраното\x20съдържание\x20е\x20твърде\x20дълго','AI_ERROR_MODERATION':'Заявката\x20не\x20отговаря\x20на\x20правилата\x20за\x20модериране','AI_ERROR_FAILED':'Неуспешна\x20комуникация\x20с\x20услугата\x20AI'},'getPluralForm':_0x26e28a=>0x1!=_0x26e28a}};
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ (_0x362560=>{const {bg:{dictionary:_0x59ba05,getPluralForm:_0x42f6ff}}={'bg':{'dictionary':{'Edit\x20or\x20review':'Редактирайте\x20или\x20прегледайте','Improve\x20writing':'Подобрете\x20писането','Make\x20shorter':'Направете\x20по-кратко','Make\x20longer':'Направете\x20по-дълго','Simplify\x20language':'Опростете\x20езика','Generate\x20from\x20selection':'Генериране\x20от\x20селекция','Summarize':'Обобщете','Continue':'Продължете','Change\x20tone':'Промяна\x20на\x20тона','Professional':'Професионален','Casual':'Непринуден','Direct':'Директен','Confident':'Уверен','Friendly':'Приятелски','Change\x20style':'Промяна\x20на\x20стила','Business':'Бизнес','Legal':'Юридически','Journalism':'Журналистика','Poetic':'Поетичен','Translate':'Превод','English':'Английски','Spanish':'Испански','German':'Немски','Portuguese':'Португалски','French':'Френски','Simplified\x20Chinese':'Китайски\x20(опростен)','Hindi':'Хинди','Arabic':'Арабски','AI\x20Assistant':'AI\x20асистент','AI\x20Commands':'AI\x20команди','Ask\x20AI\x20to\x20edit\x20or\x20generate':'Помолете\x20AI\x20да\x20редактира\x20или\x20генерира','Ask\x20AI\x20to\x20improve\x20generated\x20text':'Помолете\x20AI\x20да\x20подобри\x20генерирания\x20текст','Copy':'Копирай','Submit':'Подай','Insert\x20below':'Поставете\x20по-долу','Try\x20again':'Опитайте\x20отново','Stop':'Спиране','AI\x20is\x20writing...':'AI\x20пише...','AI\x20is\x20writing':'ИИ\x20пише','Generated\x20content:\x20%0':'Създадено\x20съдържание:\x20%0','Error\x20during\x20AI\x20content\x20generation:\x20%0':'Грешка\x20по\x20време\x20на\x20генерирането\x20на\x20съдържание\x20с\x20ИИ:\x20%0','History':'История','Empty\x20history':'Празна\x20история','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'Попитайте\x20AI\x20и\x20Вашите\x20подкани\x20ще\x20бъдат\x20изброени\x20тук,\x20за\x20да\x20ги\x20използвате\x20по-късно.','Prompt\x20history':'Подкана\x20за\x20история','AI_REPLACE_CONTENT':'Замени','AI_INSERT_CONTENT':'Вмъкни','AI_ERROR_GET_HEADERS':'Подготовката\x20на\x20заглавките\x20на\x20заявката\x20не\x20беше\x20успешна','AI_ERROR_GET_PARAMETERS':'Неуспешна\x20подготовка\x20на\x20параметрите\x20на\x20заявката','AI_ERROR_UNSUPPORTED_MODEL':'Заявеният\x20AI\x20модел\x20(„%0“)\x20не\x20се\x20поддържа','AI_ERROR_CONTEXT_LENGTH':'Избраното\x20съдържание\x20е\x20твърде\x20дълго','AI_ERROR_MODERATION':'Заявката\x20не\x20отговаря\x20на\x20правилата\x20за\x20модериране','AI_ERROR_FAILED':'Неуспешна\x20комуникация\x20с\x20услугата\x20AI'},'getPluralForm':_0x284f72=>0x1!=_0x284f72}};_0x362560['bg']||={'dictionary':{},'getPluralForm':null},_0x362560['bg']['dictionary']=Object['assign'](_0x362560['bg']['dictionary'],_0x59ba05),_0x362560['bg']['getPluralForm']=_0x42f6ff;})(window['CKEDITOR_TRANSLATIONS']||={});
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ import type { Translations } from '@ckeditor/ckeditor5-utils';
7
+ declare const translations: Translations;
8
+ export default translations;
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ export default{'bn':{'dictionary':{'Edit\x20or\x20review':'এডিট\x20বা\x20রিভিউ\x20করুন','Improve\x20writing':'লেখার\x20উন্নতি\x20করুন','Make\x20shorter':'ছোট\x20করুন','Make\x20longer':'দীর্ঘ\x20করুন','Simplify\x20language':'ভাষা\x20সহজ\x20করুন','Generate\x20from\x20selection':'সিলেকশন\x20থেকে\x20জেনারেট\x20করুন','Summarize':'সারসংক্ষেপ\x20করুন','Continue':'চালিয়ে\x20যান','Change\x20tone':'টোন\x20পরিবর্তন\x20করুন','Professional':'প্রফেশনাল','Casual':'ক্যাজুয়াল','Direct':'ডাইরেক্ট','Confident':'আত্মবিশ্বাসী','Friendly':'বন্ধুত্বপূর্ণ','Change\x20style':'স্টাইল\x20পরিবর্তন\x20করুন','Business':'ব্যবসা','Legal':'আইনি','Journalism':'সাংবাদিকতা','Poetic':'কাব্যিক','Translate':'অনুবাদ\x20করা','English':'ইংরেজি','Spanish':'স্পেনীয়','German':'জার্মান','Portuguese':'পর্তুগীজ','French':'ফরাসি','Simplified\x20Chinese':'সরলীকৃত\x20চাইনিজ','Hindi':'হিন্দি','Arabic':'আরবি','AI\x20Assistant':'AI\x20অ্যাসিস্ট্যান্ট','AI\x20Commands':'AI\x20কমান্ড','Ask\x20AI\x20to\x20edit\x20or\x20generate':'AI-কে\x20এডিট\x20বা\x20জেনারেট\x20করতে\x20বলুন','Ask\x20AI\x20to\x20improve\x20generated\x20text':'জেনারেট\x20করা\x20টেক্সট\x20উন্নত\x20করতে\x20AI-কে\x20বলুন','Copy':'কপি\x20করুন','Submit':'জমা\x20দিন','Insert\x20below':'নীচে\x20প্রবেশ\x20করান','Try\x20again':'আবার\x20চেষ্টা\x20করুন','Stop':'থামুন','AI\x20is\x20writing...':'AI\x20লিখছে\x20...','AI\x20is\x20writing':'AI\x20লিখছে','Generated\x20content:\x20%0':'উৎপন্ন\x20কনটেন্ট:\x20%0','Error\x20during\x20AI\x20content\x20generation:\x20%0':'AI\x20কনটেন্ট\x20তৈরির\x20সময়\x20ত্রুটি:\x20%0','History':'ইতিহাস','Empty\x20history':'খালি\x20ইতিহাস','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'AI-কে\x20বলুন\x20এবং\x20আপনার\x20প্রম্পটগুলি\x20পরে\x20আপনার\x20ব্যবহারের\x20জন্য\x20এখানে\x20তালিকাভুক্ত\x20করা\x20হবে।','Prompt\x20history':'প্রম্পট\x20ইতিহাস','AI_REPLACE_CONTENT':'প্রতিস্থাপন\x20করুন','AI_INSERT_CONTENT':'ঢোকান','AI_ERROR_GET_HEADERS':'রিকোয়েস্ট\x20হেডার\x20প্রস্তুত\x20করা\x20ব্যর্থ\x20হয়েছে','AI_ERROR_GET_PARAMETERS':'অনুরোধের\x20প্যারামিটার\x20প্রস্তুতকরণ\x20ব্যর্থ\x20হয়েছে','AI_ERROR_UNSUPPORTED_MODEL':'অনুরোধে\x20করা\x20AI\x20মডেল\x20(\x22%0\x22)\x20সাপোর্টেড\x20নয়','AI_ERROR_CONTEXT_LENGTH':'নির্বাচিত\x20বিষয়বস্তু\x20অত্যন্ত\x20দীর্ঘ','AI_ERROR_MODERATION':'অনুরোধ\x20করা\x20প্রশ্ন\x20সংযম\x20নিয়মগুলিতে\x20পাস\x20করে\x20না','AI_ERROR_FAILED':'AI\x20পরিষেবার\x20সাথে\x20যোগাযোগ\x20করতে\x20ব্যর্থ\x20হয়েছে'},'getPluralForm':_0x394252=>0x1!=_0x394252}};