@ckeditor/ckeditor5-ai 44.0.0-alpha.9 → 44.1.0-alpha.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 (218) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/adapters/aiadapter.d.ts +1 -1
  3. package/dist/adapters/aitextadapter.d.ts +1 -1
  4. package/dist/adapters/awstextadapter.d.ts +1 -1
  5. package/dist/adapters/openaitextadapter.d.ts +1 -1
  6. package/dist/aiassistant.d.ts +1 -1
  7. package/dist/aiassistantediting.d.ts +1 -1
  8. package/dist/aiassistantui.d.ts +1 -1
  9. package/dist/aiconfig.d.ts +1 -1
  10. package/dist/augmentation.d.ts +1 -1
  11. package/dist/index.css +7 -7
  12. package/dist/index.d.ts +1 -1
  13. package/dist/index.js +2 -2
  14. package/dist/legacyerrors.d.ts +1 -1
  15. package/dist/translations/af.js +1 -1
  16. package/dist/translations/af.umd.js +1 -1
  17. package/dist/translations/ar.js +1 -1
  18. package/dist/translations/ar.umd.js +1 -1
  19. package/dist/translations/ast.js +1 -1
  20. package/dist/translations/ast.umd.js +1 -1
  21. package/dist/translations/az.js +1 -1
  22. package/dist/translations/az.umd.js +1 -1
  23. package/dist/translations/bg.js +1 -1
  24. package/dist/translations/bg.umd.js +1 -1
  25. package/dist/translations/bn.js +1 -1
  26. package/dist/translations/bn.umd.js +1 -1
  27. package/dist/translations/bs.js +1 -1
  28. package/dist/translations/bs.umd.js +1 -1
  29. package/dist/translations/ca.js +1 -1
  30. package/dist/translations/ca.umd.js +1 -1
  31. package/dist/translations/cs.js +1 -1
  32. package/dist/translations/cs.umd.js +1 -1
  33. package/dist/translations/da.js +1 -1
  34. package/dist/translations/da.umd.js +1 -1
  35. package/dist/translations/de-ch.js +1 -1
  36. package/dist/translations/de-ch.umd.js +1 -1
  37. package/dist/translations/de.js +1 -1
  38. package/dist/translations/de.umd.js +1 -1
  39. package/dist/translations/el.js +1 -1
  40. package/dist/translations/el.umd.js +1 -1
  41. package/dist/translations/en-au.js +1 -1
  42. package/dist/translations/en-au.umd.js +1 -1
  43. package/dist/translations/en-gb.js +1 -1
  44. package/dist/translations/en-gb.umd.js +1 -1
  45. package/dist/translations/en.js +1 -1
  46. package/dist/translations/en.umd.js +1 -1
  47. package/dist/translations/eo.js +1 -1
  48. package/dist/translations/eo.umd.js +1 -1
  49. package/dist/translations/es-co.js +1 -1
  50. package/dist/translations/es-co.umd.js +1 -1
  51. package/dist/translations/es.js +1 -1
  52. package/dist/translations/es.umd.js +1 -1
  53. package/dist/translations/et.js +1 -1
  54. package/dist/translations/et.umd.js +1 -1
  55. package/dist/translations/eu.js +1 -1
  56. package/dist/translations/eu.umd.js +1 -1
  57. package/dist/translations/fa.js +1 -1
  58. package/dist/translations/fa.umd.js +1 -1
  59. package/dist/translations/fi.js +1 -1
  60. package/dist/translations/fi.umd.js +1 -1
  61. package/dist/translations/fr.js +1 -1
  62. package/dist/translations/fr.umd.js +1 -1
  63. package/dist/translations/gl.js +1 -1
  64. package/dist/translations/gl.umd.js +1 -1
  65. package/dist/translations/gu.js +1 -1
  66. package/dist/translations/gu.umd.js +1 -1
  67. package/dist/translations/he.js +1 -1
  68. package/dist/translations/he.umd.js +1 -1
  69. package/dist/translations/hi.js +1 -1
  70. package/dist/translations/hi.umd.js +1 -1
  71. package/dist/translations/hr.js +1 -1
  72. package/dist/translations/hr.umd.js +1 -1
  73. package/dist/translations/hu.js +1 -1
  74. package/dist/translations/hu.umd.js +1 -1
  75. package/dist/translations/hy.js +1 -1
  76. package/dist/translations/hy.umd.js +1 -1
  77. package/dist/translations/id.js +1 -1
  78. package/dist/translations/id.umd.js +1 -1
  79. package/dist/translations/it.js +1 -1
  80. package/dist/translations/it.umd.js +1 -1
  81. package/dist/translations/ja.js +1 -1
  82. package/dist/translations/ja.umd.js +1 -1
  83. package/dist/translations/jv.js +1 -1
  84. package/dist/translations/jv.umd.js +1 -1
  85. package/dist/translations/kk.js +1 -1
  86. package/dist/translations/kk.umd.js +1 -1
  87. package/dist/translations/km.js +1 -1
  88. package/dist/translations/km.umd.js +1 -1
  89. package/dist/translations/kn.js +1 -1
  90. package/dist/translations/kn.umd.js +1 -1
  91. package/dist/translations/ko.js +1 -1
  92. package/dist/translations/ko.umd.js +1 -1
  93. package/dist/translations/ku.js +1 -1
  94. package/dist/translations/ku.umd.js +1 -1
  95. package/dist/translations/lt.js +1 -1
  96. package/dist/translations/lt.umd.js +1 -1
  97. package/dist/translations/lv.js +1 -1
  98. package/dist/translations/lv.umd.js +1 -1
  99. package/dist/translations/ms.js +1 -1
  100. package/dist/translations/ms.umd.js +1 -1
  101. package/dist/translations/nb.js +1 -1
  102. package/dist/translations/nb.umd.js +1 -1
  103. package/dist/translations/ne.js +1 -1
  104. package/dist/translations/ne.umd.js +1 -1
  105. package/dist/translations/nl.js +1 -1
  106. package/dist/translations/nl.umd.js +1 -1
  107. package/dist/translations/no.js +1 -1
  108. package/dist/translations/no.umd.js +1 -1
  109. package/dist/translations/oc.js +1 -1
  110. package/dist/translations/oc.umd.js +1 -1
  111. package/dist/translations/pl.js +1 -1
  112. package/dist/translations/pl.umd.js +1 -1
  113. package/dist/translations/pt-br.js +1 -1
  114. package/dist/translations/pt-br.umd.js +1 -1
  115. package/dist/translations/pt.js +1 -1
  116. package/dist/translations/pt.umd.js +1 -1
  117. package/dist/translations/ro.js +1 -1
  118. package/dist/translations/ro.umd.js +1 -1
  119. package/dist/translations/ru.js +1 -1
  120. package/dist/translations/ru.umd.js +1 -1
  121. package/dist/translations/si.js +1 -1
  122. package/dist/translations/si.umd.js +1 -1
  123. package/dist/translations/sk.js +1 -1
  124. package/dist/translations/sk.umd.js +1 -1
  125. package/dist/translations/sl.js +1 -1
  126. package/dist/translations/sl.umd.js +1 -1
  127. package/dist/translations/sq.js +1 -1
  128. package/dist/translations/sq.umd.js +1 -1
  129. package/dist/translations/sr-latn.js +1 -1
  130. package/dist/translations/sr-latn.umd.js +1 -1
  131. package/dist/translations/sr.js +1 -1
  132. package/dist/translations/sr.umd.js +1 -1
  133. package/dist/translations/sv.js +1 -1
  134. package/dist/translations/sv.umd.js +1 -1
  135. package/dist/translations/th.js +1 -1
  136. package/dist/translations/th.umd.js +1 -1
  137. package/dist/translations/ti.js +1 -1
  138. package/dist/translations/ti.umd.js +1 -1
  139. package/dist/translations/tk.js +1 -1
  140. package/dist/translations/tk.umd.js +1 -1
  141. package/dist/translations/tr.js +1 -1
  142. package/dist/translations/tr.umd.js +1 -1
  143. package/dist/translations/tt.js +1 -1
  144. package/dist/translations/tt.umd.js +1 -1
  145. package/dist/translations/ug.js +1 -1
  146. package/dist/translations/ug.umd.js +1 -1
  147. package/dist/translations/uk.js +1 -1
  148. package/dist/translations/uk.umd.js +1 -1
  149. package/dist/translations/ur.js +1 -1
  150. package/dist/translations/ur.umd.js +1 -1
  151. package/dist/translations/uz.js +1 -1
  152. package/dist/translations/uz.umd.js +1 -1
  153. package/dist/translations/vi.js +1 -1
  154. package/dist/translations/vi.umd.js +1 -1
  155. package/dist/translations/zh-cn.js +1 -1
  156. package/dist/translations/zh-cn.umd.js +1 -1
  157. package/dist/translations/zh.js +1 -1
  158. package/dist/translations/zh.umd.js +1 -1
  159. package/dist/ui/aiassistantcontroller.d.ts +1 -1
  160. package/dist/ui/form/aiformcontentarea.d.ts +1 -1
  161. package/dist/ui/form/aiformerrorview.d.ts +1 -1
  162. package/dist/ui/form/aiformpromptview.d.ts +1 -1
  163. package/dist/ui/form/aiformtoolbarview.d.ts +1 -1
  164. package/dist/ui/form/aiformview.d.ts +1 -1
  165. package/dist/ui/form/aihistorylistitemview.d.ts +1 -1
  166. package/dist/ui/form/aihistorylistview.d.ts +1 -1
  167. package/dist/ui/form/prompthistory.d.ts +1 -1
  168. package/dist/ui/showaiassistantcommand.d.ts +1 -1
  169. package/dist/utils/common-translations.d.ts +1 -1
  170. package/dist/utils/normalizecommandsconfig.d.ts +1 -1
  171. package/package.json +8 -8
  172. package/src/adapters/aiadapter.d.ts +1 -1
  173. package/src/adapters/aiadapter.js +1 -1
  174. package/src/adapters/aitextadapter.d.ts +1 -1
  175. package/src/adapters/aitextadapter.js +1 -1
  176. package/src/adapters/awstextadapter.d.ts +1 -1
  177. package/src/adapters/awstextadapter.js +1 -1
  178. package/src/adapters/openaitextadapter.d.ts +1 -1
  179. package/src/adapters/openaitextadapter.js +1 -1
  180. package/src/aiassistant.d.ts +1 -1
  181. package/src/aiassistant.js +1 -1
  182. package/src/aiassistantediting.d.ts +1 -1
  183. package/src/aiassistantediting.js +1 -1
  184. package/src/aiassistantui.d.ts +1 -1
  185. package/src/aiassistantui.js +1 -1
  186. package/src/aiconfig.d.ts +1 -1
  187. package/src/augmentation.d.ts +1 -1
  188. package/src/index.d.ts +1 -1
  189. package/src/index.js +1 -1
  190. package/src/legacyerrors.d.ts +1 -1
  191. package/src/legacyerrors.js +1 -1
  192. package/src/ui/aiassistantcontroller.d.ts +1 -1
  193. package/src/ui/aiassistantcontroller.js +2 -2
  194. package/src/ui/form/aiformcontentarea.d.ts +1 -1
  195. package/src/ui/form/aiformcontentarea.js +1 -1
  196. package/src/ui/form/aiformerrorview.d.ts +1 -1
  197. package/src/ui/form/aiformerrorview.js +1 -1
  198. package/src/ui/form/aiformpromptview.d.ts +1 -1
  199. package/src/ui/form/aiformpromptview.js +1 -1
  200. package/src/ui/form/aiformtoolbarview.d.ts +1 -1
  201. package/src/ui/form/aiformtoolbarview.js +1 -1
  202. package/src/ui/form/aiformview.d.ts +1 -1
  203. package/src/ui/form/aiformview.js +1 -1
  204. package/src/ui/form/aihistorylistitemview.d.ts +1 -1
  205. package/src/ui/form/aihistorylistitemview.js +1 -1
  206. package/src/ui/form/aihistorylistview.d.ts +1 -1
  207. package/src/ui/form/aihistorylistview.js +1 -1
  208. package/src/ui/form/prompthistory.d.ts +1 -1
  209. package/src/ui/form/prompthistory.js +1 -1
  210. package/src/ui/showaiassistantcommand.d.ts +1 -1
  211. package/src/ui/showaiassistantcommand.js +1 -1
  212. package/src/utils/common-translations.d.ts +1 -1
  213. package/src/utils/common-translations.js +1 -1
  214. package/src/utils/normalizecommandsconfig.d.ts +1 -1
  215. package/src/utils/normalizecommandsconfig.js +1 -1
  216. package/theme/ai-dropdown.css +1 -1
  217. package/theme/ai-form.css +1 -1
  218. package/theme/ai.css +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1259e6=_0x1916;(function(_0x8dbfa2,_0x5c32c9){const _0x18dc29=_0x1916,_0x1bf532=_0x8dbfa2();while(!![]){try{const _0x4f6c14=parseInt(_0x18dc29(0x130))/0x1+parseInt(_0x18dc29(0x149))/0x2+-parseInt(_0x18dc29(0x153))/0x3+parseInt(_0x18dc29(0x128))/0x4+parseInt(_0x18dc29(0x13e))/0x5+parseInt(_0x18dc29(0x156))/0x6*(parseInt(_0x18dc29(0x162))/0x7)+-parseInt(_0x18dc29(0x145))/0x8;if(_0x4f6c14===_0x5c32c9)break;else _0x1bf532['push'](_0x1bf532['shift']());}catch(_0x3b10f6){_0x1bf532['push'](_0x1bf532['shift']());}}}(_0x3c73,0x83471));import{default as _0x187a9c}from'./aitextadapter.js';import{AIRequestError as _0x300551}from'./aiadapter.js';import{BedrockRuntimeClient as _0x238a89,InvokeModelCommand as _0x5b1589,InvokeModelWithResponseStreamCommand as _0x10626b}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x10fa20}from'../utils/common-translations.js';export default class O extends _0x187a9c{static get[_0x1259e6(0x14c)](){const _0xb27fcb=_0x1259e6;return _0xb27fcb(0x142);}constructor(_0x39caea){const _0x6d798f=_0x1259e6;super(_0x39caea),_0x39caea[_0x6d798f(0x141)][_0x6d798f(0x158)](_0x6d798f(0x122))||_0x39caea[_0x6d798f(0x141)][_0x6d798f(0x15d)](_0x6d798f(0x122),{'model':_0x6d798f(0x119),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x6d798f(0x136),'stream':!0x0}),this[_0x6d798f(0x132)]=_0x39caea[_0x6d798f(0x141)][_0x6d798f(0x158)](_0x6d798f(0x121)),this[_0x6d798f(0x11b)]=_0x39caea[_0x6d798f(0x141)][_0x6d798f(0x158)](_0x6d798f(0x14a)),this[_0x6d798f(0x163)]=_0x39caea[_0x6d798f(0x141)][_0x6d798f(0x158)](_0x6d798f(0x11d)),this[_0x6d798f(0x13d)]=_0x39caea[_0x6d798f(0x141)][_0x6d798f(0x158)](_0x6d798f(0x122));}async[_0x1259e6(0x13b)]({query:_0x544ef4,context:_0x588952,onData:_0x59ee49,actionId:_0x15a061}){const _0x642ff1=_0x1259e6,{model:_0x2499cb,stream:_0x26f245,..._0x278388}=await this[_0x642ff1(0x129)](this[_0x642ff1(0x13d)],_0x15a061),_0x1640ba={'prompt':await this[_0x642ff1(0x11a)](_0x544ef4,_0x588952,_0x2499cb,_0x15a061),..._0x278388};this[_0x642ff1(0x132)]?await this[_0x642ff1(0x131)](_0x1640ba,_0x2499cb,_0x26f245,_0x59ee49,_0x15a061):await this[_0x642ff1(0x15f)](_0x1640ba,_0x2499cb,_0x26f245,_0x59ee49);}async[_0x1259e6(0x11a)](_0x26dd17,_0xfabe91,_0x374ff4,_0x34797c){const _0x1b79ca=_0x1259e6;let _0x47d0cb,_0x42dca3;return _0xfabe91?(_0x47d0cb=_0x1b79ca(0x13c),_0x42dca3=_0x1b79ca(0x124)+_0x26dd17+_0x1b79ca(0x157)+_0xfabe91):(_0x47d0cb=_0x1b79ca(0x161),_0x42dca3=_0x26dd17),_0x1b79ca(0x12c)==this[_0x1b79ca(0x15b)](_0x374ff4)?_0x1b79ca(0x15a)+_0x47d0cb+_0x1b79ca(0x11e)+_0x42dca3+_0x1b79ca(0x147):_0x1b79ca(0x133)+_0x47d0cb+'\x0a'+_0x42dca3+_0x1b79ca(0x160);}[_0x1259e6(0x15b)](_0x452830){const _0x404d0a=_0x1259e6;if(/^anthropic\.claude/[_0x404d0a(0x125)](_0x452830))return _0x404d0a(0x11f);if(/^ai21\.j2/[_0x404d0a(0x125)](_0x452830))return _0x404d0a(0x12b);if(/^cohere\.command/[_0x404d0a(0x125)](_0x452830))return _0x404d0a(0x165);if(/^meta\.llama/[_0x404d0a(0x125)](_0x452830))return _0x404d0a(0x12c);throw new _0x300551(_0x10fa20(this[_0x404d0a(0x123)][_0x404d0a(0x155)],_0x404d0a(0x12d),_0x452830));}async[_0x1259e6(0x131)](_0x4381f4,_0x273289,_0xe3245,_0x12ac5a,_0x2c2c55){const _0x247919=_0x1259e6,_0x1b51a8={'method':_0x247919(0x144),'headers':await this[_0x247919(0x126)](this[_0x247919(0x163)],_0x2c2c55),'body':JSON[_0x247919(0x117)]({..._0x4381f4,'model':_0x273289,'stream':_0xe3245}),'signal':this[_0x247919(0x13a)][_0x247919(0x14b)]},_0x43274e=await fetch(this[_0x247919(0x132)],_0x1b51a8);_0xe3245?await this[_0x247919(0x13f)](_0x43274e,_0x273289,_0x12ac5a):await this[_0x247919(0x12a)](_0x43274e,_0x273289,_0x12ac5a);}async[_0x1259e6(0x15f)](_0xc80e92,_0x16273b,_0xb761ef,_0x7bd6dc){const _0x54545c=_0x1259e6,_0x5dd2ef=new _0x238a89(this[_0x54545c(0x11b)]),_0x4613a4={'body':JSON[_0x54545c(0x117)](_0xc80e92),'contentType':_0x54545c(0x135),'accept':_0x54545c(0x135),'modelId':_0x16273b};let _0x4d7f43;if(_0xb761ef){const _0x337142=new _0x10626b(_0x4613a4);_0x4d7f43=await _0x5dd2ef[_0x54545c(0x15c)](_0x337142,{'abortSignal':this[_0x54545c(0x13a)][_0x54545c(0x14b)]}),await this[_0x54545c(0x143)](_0x4d7f43,_0x16273b,_0x7bd6dc);}else{const _0x4f99d8=new _0x5b1589(_0x4613a4);_0x4d7f43=await _0x5dd2ef[_0x54545c(0x15c)](_0x4f99d8,{'abortSignal':this[_0x54545c(0x13a)][_0x54545c(0x14b)]}),await this[_0x54545c(0x12a)](_0x4d7f43,_0x16273b,_0x7bd6dc);}}async[_0x1259e6(0x143)](_0x5376e0,_0x233c55,_0x1795c5){const _0x574665=_0x1259e6,_0x4873d=_0x5376e0[_0x574665(0x11c)],_0x652d87=new TextDecoder(_0x574665(0x118));let _0x45d913='';for await(const _0x300658 of _0x4873d)if(_0x300658[_0x574665(0x14e)]){const _0x21096b=_0x652d87[_0x574665(0x140)](_0x300658[_0x574665(0x14e)][_0x574665(0x152)]),_0x143896=JSON[_0x574665(0x120)](_0x21096b);_0x45d913+=this[_0x574665(0x164)](_0x143896,_0x233c55),_0x1795c5(_0x45d913);}return Promise[_0x574665(0x167)]();}async[_0x1259e6(0x13f)](_0x3c193d,_0x5f02a4,_0x167d8c){const _0x4c9724=_0x1259e6,_0x168dd5=_0x3c193d[_0x4c9724(0x11c)],_0x29117b=new TextDecoder(_0x4c9724(0x118)),_0x244c00=_0x168dd5[_0x4c9724(0x137)]();let _0x3a37a1='',_0x100c69='',_0x32dc91=!0x1;for(;!_0x32dc91;){const {done:_0x1893c1,value:_0x31bc96}=await _0x244c00[_0x4c9724(0x138)]();if(_0x32dc91=_0x1893c1,_0x32dc91)break;const _0x1a2394=(_0x3a37a1+_0x29117b[_0x4c9724(0x140)](_0x31bc96))[_0x4c9724(0x12e)]('\x0a')[_0x4c9724(0x166)](_0x4ab4a1=>{const _0x218ce0=_0x4c9724;try{return _0x3a37a1='',JSON[_0x218ce0(0x120)](_0x4ab4a1);}catch(_0x70bb59){return _0x3a37a1=_0x4ab4a1,null;}})[_0x4c9724(0x134)](_0x399287=>null!==_0x399287);_0x1a2394[_0x4c9724(0x15e)]&&(_0x100c69+=_0x1a2394[_0x4c9724(0x166)](_0x1352c7=>this[_0x4c9724(0x164)](_0x1352c7,_0x5f02a4))[_0x4c9724(0x148)](''),_0x167d8c(_0x100c69));}return Promise[_0x4c9724(0x167)]();}async[_0x1259e6(0x12a)](_0x2e637d,_0x30c8e8,_0x5b9a9f){const _0x47898f=_0x1259e6;let _0xd68bd6;return _0xd68bd6=_0x2e637d instanceof Response?await _0x2e637d[_0x47898f(0x14f)]():JSON[_0x47898f(0x120)](Buffer[_0x47898f(0x127)](_0x2e637d[_0x47898f(0x11c)])[_0x47898f(0x151)](_0x47898f(0x150))),(_0x5b9a9f(this[_0x47898f(0x164)](_0xd68bd6,_0x30c8e8)),Promise[_0x47898f(0x167)]());}[_0x1259e6(0x164)](_0x549790,_0x47fc04){const _0x30a6f0=_0x1259e6;switch(this[_0x30a6f0(0x15b)](_0x47fc04)){case _0x30a6f0(0x11f):return _0x549790[_0x30a6f0(0x14d)];case _0x30a6f0(0x12b):return _0x549790[_0x30a6f0(0x146)][0x0][_0x30a6f0(0x159)][_0x30a6f0(0x154)];case _0x30a6f0(0x165):return _0x549790[_0x30a6f0(0x139)][0x0][_0x30a6f0(0x154)];case _0x30a6f0(0x12c):return _0x549790[_0x30a6f0(0x12f)];}}}function _0x1916(_0x3cae71,_0x3612d8){const _0x3c7345=_0x3c73();return _0x1916=function(_0x19166b,_0x222af5){_0x19166b=_0x19166b-0x117;let _0x2db075=_0x3c7345[_0x19166b];return _0x2db075;},_0x1916(_0x3cae71,_0x3612d8);}function _0x3c73(){const _0x2689f4=['resolve','stringify','utf-8','anthropic.claude-v2','preparePrompt','_bedrockClientConfig','body','ai.aws.requestHeaders','\x0a<</SYS>>\x0a[INST]\x0a','anthropic.claude','parse','ai.aws.apiUrl','ai.aws.requestParameters','editor','Instruction:\x0a','test','_prepareRequestHeaders','from','2338892KOSqXF','_prepareRequestParameters','_readStaticResponse','ai21.j2','meta.llama','AI_ERROR_UNSUPPORTED_MODEL','split','generation','609121YzJLFH','_processProxyRequest','_apiUrl','Human:\x0a','filter','application/json','bedrock-2023-05-31','getReader','read','generations','abortController','sendRequest','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.','_requestParameters','4844295TtJgXj','_readStreamableResponse','decode','config','AWSTextAdapter','_readAsyncIterableResponse','POST','17614632vYucJG','completions','\x0a[/INST]','join','911476imUqnk','ai.aws.bedrockClientConfig','signal','pluginName','completion','chunk','json','utf8','toString','bytes','2408706ZtjDBg','text','locale','18FKELup','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','get','data','<<SYS>>\x0a','getModelFamily','send','define','length','_processAWSRequest','\x0a\x0aAssistant:','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.','2156007lpJnsl','_requestHeaders','_getGeneratedText','cohere.command','map'];_0x3c73=function(){return _0x2689f4;};return _0x3c73();}
23
+ function _0x2e49(_0x4547c1,_0x4b8e32){const _0x367f9d=_0x367f();return _0x2e49=function(_0x2e4919,_0x5b1a3b){_0x2e4919=_0x2e4919-0x1d7;let _0x2c8ea8=_0x367f9d[_0x2e4919];return _0x2c8ea8;},_0x2e49(_0x4547c1,_0x4b8e32);}function _0x367f(){const _0x3ad5ec=['length','cohere.command','_processProxyRequest','4EvAOpI','\x0a\x0aAssistant:','data','44285wsRihv','_readAsyncIterableResponse','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.','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','getReader','POST','Human:\x0a','208nTpddg','_bedrockClientConfig','join','send','_requestHeaders','ai.aws.requestHeaders','locale','preparePrompt','bytes','_requestParameters','11SKGElm','resolve','application/json','ai21.j2','editor','decode','anthropic.claude-v2','anthropic.claude','text','filter','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.','json','_readStreamableResponse','generations','_processAWSRequest','ai.aws.requestParameters','sendRequest','680865PFTDeT','bedrock-2023-05-31','24648lwjAId','ai.aws.bedrockClientConfig','body','61901GUINXu','_getGeneratedText','split','stringify','chunk','abortController','parse','AWSTextAdapter','utf-8','get','config','<<SYS>>\x0a','completion','completions','toString','_prepareRequestHeaders','test','Instruction:\x0a','read','define','_readStaticResponse','_apiUrl','844836YCJoTH','1329130pvkXht','getModelFamily','\x0a<</SYS>>\x0a[INST]\x0a','signal','utf8','2JTLAdI','1766511FbwuAi','map','pluginName','_prepareRequestParameters','ai.aws.apiUrl','\x0a[/INST]','meta.llama','generation','from','AI_ERROR_UNSUPPORTED_MODEL'];_0x367f=function(){return _0x3ad5ec;};return _0x367f();}const _0x1fa22d=_0x2e49;(function(_0x1ceb8e,_0x201650){const _0x1d12db=_0x2e49,_0x47df7b=_0x1ceb8e();while(!![]){try{const _0x5a6682=-parseInt(_0x1d12db(0x204))/0x1*(-parseInt(_0x1d12db(0x1f3))/0x2)+-parseInt(_0x1d12db(0x1ed))/0x3*(parseInt(_0x1d12db(0x201))/0x4)+parseInt(_0x1d12db(0x226))/0x5+parseInt(_0x1d12db(0x228))/0x6+-parseInt(_0x1d12db(0x1d7))/0x7*(-parseInt(_0x1d12db(0x20b))/0x8)+parseInt(_0x1d12db(0x1f4))/0x9+-parseInt(_0x1d12db(0x1ee))/0xa*(parseInt(_0x1d12db(0x215))/0xb);if(_0x5a6682===_0x201650)break;else _0x47df7b['push'](_0x47df7b['shift']());}catch(_0xa53aac){_0x47df7b['push'](_0x47df7b['shift']());}}}(_0x367f,0x2fe8e));import{default as _0x297eb2}from'./aitextadapter.js';import{AIRequestError as _0x218b84}from'./aiadapter.js';import{BedrockRuntimeClient as _0x1bdac2,InvokeModelCommand as _0x4f2c25,InvokeModelWithResponseStreamCommand as _0x2d67b2}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x5285d2}from'../utils/common-translations.js';export default class O extends _0x297eb2{static get[_0x1fa22d(0x1f6)](){const _0xcd456f=_0x1fa22d;return _0xcd456f(0x1de);}constructor(_0x3e513d){const _0x415716=_0x1fa22d;super(_0x3e513d),_0x3e513d[_0x415716(0x1e1)][_0x415716(0x1e0)](_0x415716(0x224))||_0x3e513d[_0x415716(0x1e1)][_0x415716(0x1ea)](_0x415716(0x224),{'model':_0x415716(0x21b),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x415716(0x227),'stream':!0x0}),this[_0x415716(0x1ec)]=_0x3e513d[_0x415716(0x1e1)][_0x415716(0x1e0)](_0x415716(0x1f8)),this[_0x415716(0x20c)]=_0x3e513d[_0x415716(0x1e1)][_0x415716(0x1e0)](_0x415716(0x229)),this[_0x415716(0x20f)]=_0x3e513d[_0x415716(0x1e1)][_0x415716(0x1e0)](_0x415716(0x210)),this[_0x415716(0x214)]=_0x3e513d[_0x415716(0x1e1)][_0x415716(0x1e0)](_0x415716(0x224));}async[_0x1fa22d(0x225)]({query:_0x49f3f7,context:_0x34c9ad,onData:_0x156336,actionId:_0x3d6c6e}){const _0x2f4b64=_0x1fa22d,{model:_0x3515a2,stream:_0x11e757,..._0x14d8f4}=await this[_0x2f4b64(0x1f7)](this[_0x2f4b64(0x214)],_0x3d6c6e),_0x10a7af={'prompt':await this[_0x2f4b64(0x212)](_0x49f3f7,_0x34c9ad,_0x3515a2,_0x3d6c6e),..._0x14d8f4};this[_0x2f4b64(0x1ec)]?await this[_0x2f4b64(0x200)](_0x10a7af,_0x3515a2,_0x11e757,_0x156336,_0x3d6c6e):await this[_0x2f4b64(0x223)](_0x10a7af,_0x3515a2,_0x11e757,_0x156336);}async[_0x1fa22d(0x212)](_0x3f9753,_0x557629,_0x1822f6,_0x34088b){const _0x66db74=_0x1fa22d;let _0x39eb7b,_0x5443cb;return _0x557629?(_0x39eb7b=_0x66db74(0x21f),_0x5443cb=_0x66db74(0x1e8)+_0x3f9753+_0x66db74(0x207)+_0x557629):(_0x39eb7b=_0x66db74(0x206),_0x5443cb=_0x3f9753),_0x66db74(0x1fa)==this[_0x66db74(0x1ef)](_0x1822f6)?_0x66db74(0x1e2)+_0x39eb7b+_0x66db74(0x1f0)+_0x5443cb+_0x66db74(0x1f9):_0x66db74(0x20a)+_0x39eb7b+'\x0a'+_0x5443cb+_0x66db74(0x202);}[_0x1fa22d(0x1ef)](_0x5203a0){const _0x43972e=_0x1fa22d;if(/^anthropic\.claude/[_0x43972e(0x1e7)](_0x5203a0))return _0x43972e(0x21c);if(/^ai21\.j2/[_0x43972e(0x1e7)](_0x5203a0))return _0x43972e(0x218);if(/^cohere\.command/[_0x43972e(0x1e7)](_0x5203a0))return _0x43972e(0x1ff);if(/^meta\.llama/[_0x43972e(0x1e7)](_0x5203a0))return _0x43972e(0x1fa);throw new _0x218b84(_0x5285d2(this[_0x43972e(0x219)][_0x43972e(0x211)],_0x43972e(0x1fd),_0x5203a0));}async[_0x1fa22d(0x200)](_0x29292a,_0x14fea8,_0x58a4da,_0x337bdc,_0x58e54f){const _0x3936da=_0x1fa22d,_0x49fd24={'method':_0x3936da(0x209),'headers':await this[_0x3936da(0x1e6)](this[_0x3936da(0x20f)],_0x58e54f),'body':JSON[_0x3936da(0x1da)]({..._0x29292a,'model':_0x14fea8,'stream':_0x58a4da}),'signal':this[_0x3936da(0x1dc)][_0x3936da(0x1f1)]},_0x1f95d1=await fetch(this[_0x3936da(0x1ec)],_0x49fd24);_0x58a4da?await this[_0x3936da(0x221)](_0x1f95d1,_0x14fea8,_0x337bdc):await this[_0x3936da(0x1eb)](_0x1f95d1,_0x14fea8,_0x337bdc);}async[_0x1fa22d(0x223)](_0x11bb46,_0x96ecae,_0x49692f,_0x35868c){const _0x4e9cfb=_0x1fa22d,_0x15c284=new _0x1bdac2(this[_0x4e9cfb(0x20c)]),_0x46d053={'body':JSON[_0x4e9cfb(0x1da)](_0x11bb46),'contentType':_0x4e9cfb(0x217),'accept':_0x4e9cfb(0x217),'modelId':_0x96ecae};let _0xc7cf3c;if(_0x49692f){const _0x1d9bec=new _0x2d67b2(_0x46d053);_0xc7cf3c=await _0x15c284[_0x4e9cfb(0x20e)](_0x1d9bec,{'abortSignal':this[_0x4e9cfb(0x1dc)][_0x4e9cfb(0x1f1)]}),await this[_0x4e9cfb(0x205)](_0xc7cf3c,_0x96ecae,_0x35868c);}else{const _0x4dd171=new _0x4f2c25(_0x46d053);_0xc7cf3c=await _0x15c284[_0x4e9cfb(0x20e)](_0x4dd171,{'abortSignal':this[_0x4e9cfb(0x1dc)][_0x4e9cfb(0x1f1)]}),await this[_0x4e9cfb(0x1eb)](_0xc7cf3c,_0x96ecae,_0x35868c);}}async[_0x1fa22d(0x205)](_0x3e1cd0,_0x1b6c6a,_0x3d7305){const _0x3290af=_0x1fa22d,_0x195ad6=_0x3e1cd0[_0x3290af(0x22a)],_0x1718a9=new TextDecoder(_0x3290af(0x1df));let _0x597c0e='';for await(const _0x9bf5c6 of _0x195ad6)if(_0x9bf5c6[_0x3290af(0x1db)]){const _0xf18b0=_0x1718a9[_0x3290af(0x21a)](_0x9bf5c6[_0x3290af(0x1db)][_0x3290af(0x213)]),_0x1fb257=JSON[_0x3290af(0x1dd)](_0xf18b0);_0x597c0e+=this[_0x3290af(0x1d8)](_0x1fb257,_0x1b6c6a),_0x3d7305(_0x597c0e);}return Promise[_0x3290af(0x216)]();}async[_0x1fa22d(0x221)](_0x3ab879,_0x5f4d73,_0xe6888c){const _0xe3091e=_0x1fa22d,_0x3b3918=_0x3ab879[_0xe3091e(0x22a)],_0x383d25=new TextDecoder(_0xe3091e(0x1df)),_0x7306f2=_0x3b3918[_0xe3091e(0x208)]();let _0x3b8ecc='',_0x433407='',_0x54e3b4=!0x1;for(;!_0x54e3b4;){const {done:_0x5c0b32,value:_0xb76b17}=await _0x7306f2[_0xe3091e(0x1e9)]();if(_0x54e3b4=_0x5c0b32,_0x54e3b4)break;const _0x3fecab=(_0x3b8ecc+_0x383d25[_0xe3091e(0x21a)](_0xb76b17))[_0xe3091e(0x1d9)]('\x0a')[_0xe3091e(0x1f5)](_0x58b3c0=>{const _0x3b21d5=_0xe3091e;try{return _0x3b8ecc='',JSON[_0x3b21d5(0x1dd)](_0x58b3c0);}catch(_0x4b45ea){return _0x3b8ecc=_0x58b3c0,null;}})[_0xe3091e(0x21e)](_0x284f72=>null!==_0x284f72);_0x3fecab[_0xe3091e(0x1fe)]&&(_0x433407+=_0x3fecab[_0xe3091e(0x1f5)](_0x33d606=>this[_0xe3091e(0x1d8)](_0x33d606,_0x5f4d73))[_0xe3091e(0x20d)](''),_0xe6888c(_0x433407));}return Promise[_0xe3091e(0x216)]();}async[_0x1fa22d(0x1eb)](_0x829333,_0x3161ec,_0x4b9794){const _0x53cfb2=_0x1fa22d;let _0x473f2b;return _0x473f2b=_0x829333 instanceof Response?await _0x829333[_0x53cfb2(0x220)]():JSON[_0x53cfb2(0x1dd)](Buffer[_0x53cfb2(0x1fc)](_0x829333[_0x53cfb2(0x22a)])[_0x53cfb2(0x1e5)](_0x53cfb2(0x1f2))),(_0x4b9794(this[_0x53cfb2(0x1d8)](_0x473f2b,_0x3161ec)),Promise[_0x53cfb2(0x216)]());}[_0x1fa22d(0x1d8)](_0x501079,_0x57f2ca){const _0x8b1fab=_0x1fa22d;switch(this[_0x8b1fab(0x1ef)](_0x57f2ca)){case _0x8b1fab(0x21c):return _0x501079[_0x8b1fab(0x1e3)];case _0x8b1fab(0x218):return _0x501079[_0x8b1fab(0x1e4)][0x0][_0x8b1fab(0x203)][_0x8b1fab(0x21d)];case _0x8b1fab(0x1ff):return _0x501079[_0x8b1fab(0x222)][0x0][_0x8b1fab(0x21d)];case _0x8b1fab(0x1fa):return _0x501079[_0x8b1fab(0x1fb)];}}}
@@ -1,6 +1,6 @@
1
1
  /**
2
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
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * @module ai/adapters/openaitextadapter
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe5eea7=_0x2d2f;(function(_0x1c4941,_0x4ad389){const _0x2d0ae2=_0x2d2f,_0x922063=_0x1c4941();while(!![]){try{const _0x226eeb=-parseInt(_0x2d0ae2(0x180))/0x1+parseInt(_0x2d0ae2(0x18f))/0x2*(parseInt(_0x2d0ae2(0x171))/0x3)+-parseInt(_0x2d0ae2(0x16a))/0x4+-parseInt(_0x2d0ae2(0x190))/0x5*(parseInt(_0x2d0ae2(0x168))/0x6)+parseInt(_0x2d0ae2(0x15e))/0x7*(-parseInt(_0x2d0ae2(0x178))/0x8)+parseInt(_0x2d0ae2(0x187))/0x9+parseInt(_0x2d0ae2(0x189))/0xa;if(_0x226eeb===_0x4ad389)break;else _0x922063['push'](_0x922063['shift']());}catch(_0x528a7a){_0x922063['push'](_0x922063['shift']());}}}(_0x1ab4,0x1e3c0));import{default as _0x46e41f}from'./aitextadapter.js';import{AIRequestError as _0x461de2}from'./aiadapter.js';function _0x2d2f(_0x1d34f2,_0x2de2cf){const _0x1ab46a=_0x1ab4();return _0x2d2f=function(_0x2d2fb2,_0x557d25){_0x2d2fb2=_0x2d2fb2-0x158;let _0x5c0f9a=_0x1ab46a[_0x2d2fb2];return _0x5c0f9a;},_0x2d2f(_0x1d34f2,_0x2de2cf);}import{getTranslation as _0x129b6b}from'../utils/common-translations.js';function _0x1ab4(){const _0x29fb81=['stringify','locale','_readStaticResponse','filter','map','1141155grbMtl','data:\x20','1337090rVMDWX','text','content','getReader','get','context_length_exceeded','90154QNeARM','765aZfhYv','message','join','replace','define','includes','decode','stream','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.','user','ai.openAI.apiUrl','pluginName','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.','abortController','delta','OpenAITextAdapter','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','resolve','body','reject','7QyDRhZ','_cleanUpData','_apiUrl','_readStreamableResponse','_requestParameters','choices','prepareMessages','_prepareRequestParameters','split','_prepareRequestHeaders','3444ndupfu','gpt-3.5-turbo','222916MlnOoW','signal','ai.openAI.requestParameters','_requestHeaders','Moderation','[DONE]','https://api.openai.com/v1/chat/completions','15fszKgl','editor','length','parse','_isBufferIncomplete','AI_ERROR_CONTEXT_LENGTH','ai.openAI.requestHeaders','1643176fKwvPy','config','sendRequest','system','read','AI_ERROR_MODERATION','Instruction:\x0a','POST','13101cvdAHh','json'];_0x1ab4=function(){return _0x29fb81;};return _0x1ab4();}export default class H extends _0x46e41f{static get[_0xe5eea7(0x19b)](){const _0x5b669d=_0xe5eea7;return _0x5b669d(0x159);}constructor(_0x31ec15){const _0xfc60e4=_0xe5eea7;super(_0x31ec15),_0x31ec15[_0xfc60e4(0x179)][_0xfc60e4(0x194)](_0xfc60e4(0x19a),_0xfc60e4(0x170)),_0x31ec15[_0xfc60e4(0x179)][_0xfc60e4(0x18d)](_0xfc60e4(0x16c))||_0x31ec15[_0xfc60e4(0x179)][_0xfc60e4(0x194)](_0xfc60e4(0x16c),{'model':_0xfc60e4(0x169),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0xfc60e4(0x160)]=_0x31ec15[_0xfc60e4(0x179)][_0xfc60e4(0x18d)](_0xfc60e4(0x19a)),this[_0xfc60e4(0x16d)]=_0x31ec15[_0xfc60e4(0x179)][_0xfc60e4(0x18d)](_0xfc60e4(0x177))||{},this[_0xfc60e4(0x162)]=_0x31ec15[_0xfc60e4(0x179)][_0xfc60e4(0x18d)](_0xfc60e4(0x16c));}async[_0xe5eea7(0x17a)]({query:_0x44b2a1,context:_0x518f62,onData:_0x31a7af,actionId:_0x36f17b}){const _0x1712a9=_0xe5eea7,_0x2d076f=this[_0x1712a9(0x172)][_0x1712a9(0x183)],_0x102ca2=await this[_0x1712a9(0x164)](_0x44b2a1,_0x518f62,_0x36f17b),_0x7c0eea=await this[_0x1712a9(0x167)](this[_0x1712a9(0x16d)],_0x36f17b),_0x2abb35=await this[_0x1712a9(0x165)](this[_0x1712a9(0x162)],_0x36f17b),_0x4b8d3={'messages':_0x102ca2,..._0x2abb35},_0x179fe4={'method':_0x1712a9(0x17f),'headers':_0x7c0eea,'body':JSON[_0x1712a9(0x182)](_0x4b8d3),'signal':this[_0x1712a9(0x19d)][_0x1712a9(0x16b)]},_0x3cf8cc=await fetch(this[_0x1712a9(0x160)],_0x179fe4);if(_0x3cf8cc['ok'])return _0x2abb35[_0x1712a9(0x197)]?await this[_0x1712a9(0x161)](_0x3cf8cc,_0x31a7af):await this[_0x1712a9(0x184)](_0x3cf8cc,_0x31a7af),Promise[_0x1712a9(0x15b)]();{const _0xd4aa4=await _0x3cf8cc[_0x1712a9(0x18a)]();return _0xd4aa4[_0x1712a9(0x195)](_0x1712a9(0x18e))?Promise[_0x1712a9(0x15d)](new _0x461de2(_0x129b6b(_0x2d076f,_0x1712a9(0x176)))):_0xd4aa4[_0x1712a9(0x195)](_0x1712a9(0x16e))?Promise[_0x1712a9(0x15d)](new _0x461de2(_0x129b6b(_0x2d076f,_0x1712a9(0x17d)))):Promise[_0x1712a9(0x15d)](new Error(_0xd4aa4));}}async[_0xe5eea7(0x164)](_0x5a0a08,_0x45ef40,_0xbb8767){const _0x151dc5=_0xe5eea7;let _0x40ec21,_0x490a3f;return _0x45ef40?(_0x40ec21=_0x151dc5(0x19c),_0x490a3f=_0x151dc5(0x17e)+_0x5a0a08+_0x151dc5(0x15a)+_0x45ef40):(_0x40ec21=_0x151dc5(0x198),_0x490a3f=_0x5a0a08),[{'role':_0x151dc5(0x17b),'content':_0x40ec21},{'role':_0x151dc5(0x199),'content':_0x490a3f}];}async[_0xe5eea7(0x161)](_0x2bab8a,_0x2a603f){const _0x241c4a=_0xe5eea7,_0x141c1b=_0x2bab8a[_0x241c4a(0x15c)][_0x241c4a(0x18c)](),_0x7e744a=new TextDecoder();let _0x536831='',_0x503c33='',_0x16f0a2='',_0x1f458b=!0x1;for(;!_0x1f458b;){const {done:_0x1b58e9,value:_0x2ebf60}=await _0x141c1b[_0x241c4a(0x17c)](),_0x16ba25=_0x536831+_0x7e744a[_0x241c4a(0x196)](_0x2ebf60);let _0x14ef1a='';_0x1f458b=_0x1b58e9;try{_0x14ef1a=this[_0x241c4a(0x15f)](_0x16ba25),_0x536831='';}catch(_0x588ffc){_0x536831=_0x16ba25;continue;}_0x503c33+=_0x14ef1a,!_0x1f458b&&this[_0x241c4a(0x175)](_0x503c33)||_0x503c33&&(_0x16f0a2+=_0x503c33,_0x503c33='',_0x2a603f(_0x16f0a2));}return Promise[_0x241c4a(0x15b)]();}async[_0xe5eea7(0x184)](_0x35089a,_0x21b9ce){const _0x247e08=_0xe5eea7;return _0x21b9ce((await _0x35089a[_0x247e08(0x181)]())[_0x247e08(0x163)][0x0][_0x247e08(0x191)][_0x247e08(0x18b)]),Promise[_0x247e08(0x15b)]();}[_0xe5eea7(0x175)](_0x1bac0c){const _0x1629a4=_0xe5eea7,_0x232966=_0x1bac0c[_0x1629a4(0x166)]('<')[_0x1629a4(0x173)]!==_0x1bac0c[_0x1629a4(0x166)]('>')[_0x1629a4(0x173)],_0x2805c9=_0x1bac0c[_0x1629a4(0x173)]<0x1e;return _0x232966&&_0x2805c9;}[_0xe5eea7(0x15f)](_0x4272de){const _0xd7ca64=_0xe5eea7;return _0x4272de[_0xd7ca64(0x166)](/\n(?![^{]*\})/g)[_0xd7ca64(0x186)](_0x1df31b=>_0x1df31b[_0xd7ca64(0x193)](_0xd7ca64(0x188),''))[_0xd7ca64(0x185)](_0x4ef53b=>_0x4ef53b&&_0x4ef53b[_0xd7ca64(0x173)]>0x0&&_0xd7ca64(0x16f)!==_0x4ef53b)[_0xd7ca64(0x186)](_0xdde2a8=>{const _0x2a7ab5=_0xd7ca64,{choices:_0x2c2b3c}=JSON[_0x2a7ab5(0x174)](_0xdde2a8);if(_0x2c2b3c[0x0]&&_0x2c2b3c[0x0][_0x2a7ab5(0x158)]&&_0x2c2b3c[0x0][_0x2a7ab5(0x158)][_0x2a7ab5(0x18b)])return _0x2c2b3c[0x0][_0x2a7ab5(0x158)][_0x2a7ab5(0x18b)];})[_0xd7ca64(0x185)](_0x293d3d=>_0x293d3d)[_0xd7ca64(0x192)]('');}}
23
+ const _0x59766f=_0x5da8;function _0x5da8(_0x159c66,_0x2ae313){const _0x36b941=_0x36b9();return _0x5da8=function(_0x5da85d,_0x592b79){_0x5da85d=_0x5da85d-0x6f;let _0x15235f=_0x36b941[_0x5da85d];return _0x15235f;},_0x5da8(_0x159c66,_0x2ae313);}(function(_0x25684e,_0x45a19a){const _0x2ee2ee=_0x5da8,_0x1fa3e6=_0x25684e();while(!![]){try{const _0x11ed48=parseInt(_0x2ee2ee(0x96))/0x1*(parseInt(_0x2ee2ee(0x70))/0x2)+parseInt(_0x2ee2ee(0xa1))/0x3+parseInt(_0x2ee2ee(0x82))/0x4*(parseInt(_0x2ee2ee(0xb1))/0x5)+-parseInt(_0x2ee2ee(0x98))/0x6*(parseInt(_0x2ee2ee(0x90))/0x7)+parseInt(_0x2ee2ee(0x71))/0x8+parseInt(_0x2ee2ee(0xae))/0x9*(parseInt(_0x2ee2ee(0x97))/0xa)+-parseInt(_0x2ee2ee(0x9d))/0xb*(parseInt(_0x2ee2ee(0x85))/0xc);if(_0x11ed48===_0x45a19a)break;else _0x1fa3e6['push'](_0x1fa3e6['shift']());}catch(_0x42cb6b){_0x1fa3e6['push'](_0x1fa3e6['shift']());}}}(_0x36b9,0x881ad));function _0x36b9(){const _0x1486f9=['Instruction:\x0a','get','decode','_readStaticResponse','locale','abortController','_apiUrl','POST','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.','ai.openAI.apiUrl','replace','ai.openAI.requestParameters','data:\x20','7324nwcPHM','length','_readStreamableResponse','166956QbAKlZ','content','_prepareRequestParameters','join','prepareMessages','_requestHeaders','gpt-3.5-turbo','json','body','config','parse','7ZPoeSp','editor','text','_prepareRequestHeaders','map','filter','5207kLCHVJ','9710DrTeoS','697848NZiFIu','resolve','reject','split','user','2057FpPArE','stringify','message','sendRequest','3326280boAGYO','pluginName','OpenAITextAdapter','getReader','includes','Moderation','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.','delta','choices','_cleanUpData','AI_ERROR_CONTEXT_LENGTH','system','_requestParameters','7632lOpLNX','read','[DONE]','1645dKzAoO','stream','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_isBufferIncomplete','define','https://api.openai.com/v1/chat/completions','AI_ERROR_MODERATION','214uxbPNH','1470464mVlmYX','signal','ai.openAI.requestHeaders','context_length_exceeded'];_0x36b9=function(){return _0x1486f9;};return _0x36b9();}import{default as _0x13d4fa}from'./aitextadapter.js';import{AIRequestError as _0x4b987f}from'./aiadapter.js';import{getTranslation as _0x17c1ce}from'../utils/common-translations.js';export default class H extends _0x13d4fa{static get[_0x59766f(0xa2)](){const _0x1f33ec=_0x59766f;return _0x1f33ec(0xa3);}constructor(_0x213cb3){const _0x425e3b=_0x59766f;super(_0x213cb3),_0x213cb3[_0x425e3b(0x8e)][_0x425e3b(0xb5)](_0x425e3b(0x7e),_0x425e3b(0xb6)),_0x213cb3[_0x425e3b(0x8e)][_0x425e3b(0x76)](_0x425e3b(0x80))||_0x213cb3[_0x425e3b(0x8e)][_0x425e3b(0xb5)](_0x425e3b(0x80),{'model':_0x425e3b(0x8b),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x425e3b(0x7b)]=_0x213cb3[_0x425e3b(0x8e)][_0x425e3b(0x76)](_0x425e3b(0x7e)),this[_0x425e3b(0x8a)]=_0x213cb3[_0x425e3b(0x8e)][_0x425e3b(0x76)](_0x425e3b(0x73))||{},this[_0x425e3b(0xad)]=_0x213cb3[_0x425e3b(0x8e)][_0x425e3b(0x76)](_0x425e3b(0x80));}async[_0x59766f(0xa0)]({query:_0x4da24c,context:_0x5cb153,onData:_0x442d50,actionId:_0x508a7f}){const _0x14ea3f=_0x59766f,_0x294c19=this[_0x14ea3f(0x91)][_0x14ea3f(0x79)],_0x355360=await this[_0x14ea3f(0x89)](_0x4da24c,_0x5cb153,_0x508a7f),_0x30c44d=await this[_0x14ea3f(0x93)](this[_0x14ea3f(0x8a)],_0x508a7f),_0x28316d=await this[_0x14ea3f(0x87)](this[_0x14ea3f(0xad)],_0x508a7f),_0x5d5603={'messages':_0x355360,..._0x28316d},_0x558241={'method':_0x14ea3f(0x7c),'headers':_0x30c44d,'body':JSON[_0x14ea3f(0x9e)](_0x5d5603),'signal':this[_0x14ea3f(0x7a)][_0x14ea3f(0x72)]},_0x331503=await fetch(this[_0x14ea3f(0x7b)],_0x558241);if(_0x331503['ok'])return _0x28316d[_0x14ea3f(0xb2)]?await this[_0x14ea3f(0x84)](_0x331503,_0x442d50):await this[_0x14ea3f(0x78)](_0x331503,_0x442d50),Promise[_0x14ea3f(0x99)]();{const _0x5164e8=await _0x331503[_0x14ea3f(0x92)]();return _0x5164e8[_0x14ea3f(0xa5)](_0x14ea3f(0x74))?Promise[_0x14ea3f(0x9a)](new _0x4b987f(_0x17c1ce(_0x294c19,_0x14ea3f(0xab)))):_0x5164e8[_0x14ea3f(0xa5)](_0x14ea3f(0xa6))?Promise[_0x14ea3f(0x9a)](new _0x4b987f(_0x17c1ce(_0x294c19,_0x14ea3f(0x6f)))):Promise[_0x14ea3f(0x9a)](new Error(_0x5164e8));}}async[_0x59766f(0x89)](_0x5b6c93,_0x32c968,_0x255d1e){const _0x56ef61=_0x59766f;let _0x385c89,_0x4aaf2b;return _0x32c968?(_0x385c89=_0x56ef61(0x7d),_0x4aaf2b=_0x56ef61(0x75)+_0x5b6c93+_0x56ef61(0xb3)+_0x32c968):(_0x385c89=_0x56ef61(0xa7),_0x4aaf2b=_0x5b6c93),[{'role':_0x56ef61(0xac),'content':_0x385c89},{'role':_0x56ef61(0x9c),'content':_0x4aaf2b}];}async[_0x59766f(0x84)](_0x34e3fa,_0x4f5827){const _0x44d836=_0x59766f,_0x889e2f=_0x34e3fa[_0x44d836(0x8d)][_0x44d836(0xa4)](),_0x4c0ba8=new TextDecoder();let _0x15e5d2='',_0x1be0cc='',_0x105f8a='',_0x1806aa=!0x1;for(;!_0x1806aa;){const {done:_0xa363e3,value:_0x3773ca}=await _0x889e2f[_0x44d836(0xaf)](),_0x1db6b=_0x15e5d2+_0x4c0ba8[_0x44d836(0x77)](_0x3773ca);let _0x3d84d9='';_0x1806aa=_0xa363e3;try{_0x3d84d9=this[_0x44d836(0xaa)](_0x1db6b),_0x15e5d2='';}catch(_0x196b1c){_0x15e5d2=_0x1db6b;continue;}_0x1be0cc+=_0x3d84d9,!_0x1806aa&&this[_0x44d836(0xb4)](_0x1be0cc)||_0x1be0cc&&(_0x105f8a+=_0x1be0cc,_0x1be0cc='',_0x4f5827(_0x105f8a));}return Promise[_0x44d836(0x99)]();}async[_0x59766f(0x78)](_0x748f04,_0x46e80d){const _0x386166=_0x59766f;return _0x46e80d((await _0x748f04[_0x386166(0x8c)]())[_0x386166(0xa9)][0x0][_0x386166(0x9f)][_0x386166(0x86)]),Promise[_0x386166(0x99)]();}[_0x59766f(0xb4)](_0xfb2f15){const _0x148622=_0x59766f,_0x4f53cb=_0xfb2f15[_0x148622(0x9b)]('<')[_0x148622(0x83)]!==_0xfb2f15[_0x148622(0x9b)]('>')[_0x148622(0x83)],_0x1923a8=_0xfb2f15[_0x148622(0x83)]<0x1e;return _0x4f53cb&&_0x1923a8;}[_0x59766f(0xaa)](_0x3fa981){const _0x2043e8=_0x59766f;return _0x3fa981[_0x2043e8(0x9b)](/\n(?![^{]*\})/g)[_0x2043e8(0x94)](_0x2540fd=>_0x2540fd[_0x2043e8(0x7f)](_0x2043e8(0x81),''))[_0x2043e8(0x95)](_0x446de4=>_0x446de4&&_0x446de4[_0x2043e8(0x83)]>0x0&&_0x2043e8(0xb0)!==_0x446de4)[_0x2043e8(0x94)](_0x3cf5be=>{const _0x5535c5=_0x2043e8,{choices:_0x5d9919}=JSON[_0x5535c5(0x8f)](_0x3cf5be);if(_0x5d9919[0x0]&&_0x5d9919[0x0][_0x5535c5(0xa8)]&&_0x5d9919[0x0][_0x5535c5(0xa8)][_0x5535c5(0x86)])return _0x5d9919[0x0][_0x5535c5(0xa8)][_0x5535c5(0x86)];})[_0x2043e8(0x95)](_0x49eb5f=>_0x49eb5f)[_0x2043e8(0x88)]('');}}
@@ -1,6 +1,6 @@
1
1
  /**
2
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
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * @module ai/aiassistant
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf8aa4=_0x5ccb;(function(_0x52e26e,_0x18fc79){const _0x572310=_0x5ccb,_0x2f1b52=_0x52e26e();while(!![]){try{const _0x124dd7=parseInt(_0x572310(0x1c0))/0x1*(parseInt(_0x572310(0x1f1))/0x2)+parseInt(_0x572310(0x1b3))/0x3+parseInt(_0x572310(0x1b0))/0x4*(-parseInt(_0x572310(0x199))/0x5)+-parseInt(_0x572310(0x1da))/0x6*(parseInt(_0x572310(0x1fd))/0x7)+parseInt(_0x572310(0x1b8))/0x8+-parseInt(_0x572310(0x1ab))/0x9*(-parseInt(_0x572310(0x1f5))/0xa)+-parseInt(_0x572310(0x1ea))/0xb;if(_0x124dd7===_0x18fc79)break;else _0x2f1b52['push'](_0x2f1b52['shift']());}catch(_0x5d9c76){_0x2f1b52['push'](_0x2f1b52['shift']());}}}(_0x15f8,0xba524));import{Plugin as _0x75fcbd}from'ckeditor5/src/core.js';import _0x9fc1ad from'./aiassistantui.js';import _0xf8f970 from'./aiassistantediting.js';import{getTranslation as _0x4be997}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x2093c0}from'./utils/normalizecommandsconfig.js';export default class r extends _0x75fcbd{static get[_0xf8aa4(0x1c9)](){return[_0x9fc1ad,_0xf8f970];}static get[_0xf8aa4(0x1fe)](){const _0x5ac0d4=_0xf8aa4;return _0x5ac0d4(0x1aa);}static get[_0xf8aa4(0x1b2)](){return!0x0;}static get[_0xf8aa4(0x1c6)](){return!0x0;}constructor(_0x541b26){const _0xa7d40f=_0xf8aa4;super(_0x541b26);const _0x395a5e=_0x541b26[_0xa7d40f(0x1e6)],_0x24c1a1=_0x541b26[_0xa7d40f(0x1a5)];_0x395a5e[_0xa7d40f(0x1c5)](_0xa7d40f(0x1d9),getDefaultCommands(_0x24c1a1)),_0x395a5e[_0xa7d40f(0x1c5)](_0xa7d40f(0x19a),[]),_0x395a5e[_0xa7d40f(0x1c5)](_0xa7d40f(0x1ad),[]);const _0x34e644=_0x2093c0(_0x395a5e[_0xa7d40f(0x1fb)](_0xa7d40f(0x1d9)),_0x24c1a1),_0x2bf69b=_0x395a5e[_0xa7d40f(0x1fb)](_0xa7d40f(0x19a)),_0x1d96f4=_0x395a5e[_0xa7d40f(0x1fb)](_0xa7d40f(0x1ad));_0x2bf69b[_0xa7d40f(0x1c7)](_0x294a8f=>{const _0x5d9200=_0xa7d40f,_0x3f38cf=_0x34e644[_0x5d9200(0x1a7)](_0x1c68be=>_0x1c68be[_0x5d9200(0x1dd)]===_0x294a8f[_0x5d9200(0x1dd)]);_0x3f38cf?_0x3f38cf[_0x5d9200(0x1ec)]=_0x3f38cf[_0x5d9200(0x1ec)][_0x5d9200(0x1bc)](_0x294a8f[_0x5d9200(0x1ec)]):_0x34e644[_0x5d9200(0x1b6)](_0x294a8f);}),_0x34e644[_0xa7d40f(0x1c7)](_0xc937f1=>{const _0x30348d=_0xa7d40f;_0xc937f1[_0x30348d(0x1ec)]=_0xc937f1[_0x30348d(0x1ec)][_0x30348d(0x1ce)](_0x4be7d3=>!_0x1d96f4[_0x30348d(0x1a3)](_0x4be7d3['id']));}),_0x395a5e[_0xa7d40f(0x1e5)](_0xa7d40f(0x1d9),_0x34e644);}}export function getDefaultCommands(_0x2c30f7){const _0x5345c2=_0xf8aa4;return[{'groupId':_0x5345c2(0x1f0),'groupLabel':_0x4be997(_0x2c30f7,_0x5345c2(0x1c3)),'commands':[{'id':_0x5345c2(0x19e),'label':_0x4be997(_0x2c30f7,_0x5345c2(0x1ed)),'prompt':_0x5345c2(0x19f)},{'id':_0x5345c2(0x1c8),'label':_0x4be997(_0x2c30f7,_0x5345c2(0x1c1)),'prompt':_0x5345c2(0x1f9)},{'id':_0x5345c2(0x1ef),'label':_0x4be997(_0x2c30f7,_0x5345c2(0x1b5)),'prompt':_0x5345c2(0x1d1)},{'id':_0x5345c2(0x1e3),'label':_0x4be997(_0x2c30f7,_0x5345c2(0x1ae)),'prompt':_0x5345c2(0x1af)}]},{'groupId':_0x5345c2(0x1f6),'groupLabel':_0x4be997(_0x2c30f7,_0x5345c2(0x1a6)),'commands':[{'id':_0x5345c2(0x193),'label':_0x4be997(_0x2c30f7,_0x5345c2(0x1e9)),'prompt':_0x5345c2(0x1e1)},{'id':_0x5345c2(0x1d2),'label':_0x4be997(_0x2c30f7,_0x5345c2(0x1f8)),'prompt':_0x5345c2(0x1de)}]},{'groupId':_0x5345c2(0x1bd),'groupLabel':_0x4be997(_0x2c30f7,_0x5345c2(0x1e8)),'commands':[{'id':_0x5345c2(0x1d8),'label':_0x4be997(_0x2c30f7,_0x5345c2(0x1e0)),'prompt':_0x5345c2(0x1d6)},{'id':_0x5345c2(0x1f7),'label':_0x4be997(_0x2c30f7,_0x5345c2(0x1d3)),'prompt':_0x5345c2(0x1f4)},{'id':_0x5345c2(0x1c2),'label':_0x4be997(_0x2c30f7,_0x5345c2(0x19b)),'prompt':_0x5345c2(0x1a0)},{'id':_0x5345c2(0x1a8),'label':_0x4be997(_0x2c30f7,_0x5345c2(0x1ac)),'prompt':_0x5345c2(0x1ee)},{'id':_0x5345c2(0x1bb),'label':_0x4be997(_0x2c30f7,_0x5345c2(0x1c4)),'prompt':_0x5345c2(0x1b9)}]},{'groupId':_0x5345c2(0x1bf),'groupLabel':_0x4be997(_0x2c30f7,_0x5345c2(0x1ca)),'commands':[{'id':_0x5345c2(0x1cb),'label':_0x4be997(_0x2c30f7,_0x5345c2(0x1f2)),'prompt':_0x5345c2(0x1f3)},{'id':_0x5345c2(0x1d0),'label':_0x4be997(_0x2c30f7,_0x5345c2(0x195)),'prompt':_0x5345c2(0x1e4)},{'id':_0x5345c2(0x1ff),'label':_0x4be997(_0x2c30f7,_0x5345c2(0x1eb)),'prompt':_0x5345c2(0x1d5)},{'id':_0x5345c2(0x1dc),'label':_0x4be997(_0x2c30f7,_0x5345c2(0x194)),'prompt':_0x5345c2(0x1ba)}]},{'groupId':_0x5345c2(0x1db),'groupLabel':_0x4be997(_0x2c30f7,_0x5345c2(0x1d7)),'commands':[{'id':_0x5345c2(0x1cc),'label':_0x4be997(_0x2c30f7,_0x5345c2(0x1a9)),'prompt':_0x5345c2(0x197)},{'id':_0x5345c2(0x1be),'label':_0x4be997(_0x2c30f7,_0x5345c2(0x1b4)),'prompt':_0x5345c2(0x1cd)},{'id':_0x5345c2(0x1fa),'label':_0x4be997(_0x2c30f7,_0x5345c2(0x1fc)),'prompt':_0x5345c2(0x191)},{'id':_0x5345c2(0x1e7),'label':_0x4be997(_0x2c30f7,_0x5345c2(0x19d)),'prompt':_0x5345c2(0x19c)},{'id':_0x5345c2(0x1b7),'label':_0x4be997(_0x2c30f7,_0x5345c2(0x1d4)),'prompt':_0x5345c2(0x1a1)},{'id':_0x5345c2(0x1b1),'label':_0x4be997(_0x2c30f7,_0x5345c2(0x1a2)),'prompt':_0x5345c2(0x1a4)},{'id':_0x5345c2(0x1e2),'label':_0x4be997(_0x2c30f7,_0x5345c2(0x1cf)),'prompt':_0x5345c2(0x196)},{'id':_0x5345c2(0x192),'label':_0x4be997(_0x2c30f7,_0x5345c2(0x198)),'prompt':_0x5345c2(0x1df)}]}];}function _0x5ccb(_0x51f465,_0x4e7b1e){const _0x15f860=_0x15f8();return _0x5ccb=function(_0x5ccb7e,_0xe84ec8){_0x5ccb7e=_0x5ccb7e-0x191;let _0x40c83c=_0x15f860[_0x5ccb7e];return _0x40c83c;},_0x5ccb(_0x51f465,_0x4e7b1e);}function _0x15f8(){const _0x59abeb=['translateChinese','isOfficialPlugin','2370072OfDcdA','Spanish','Make\x20longer','push','translateFrench','4888872dLzFrq','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','friendly','concat','changeTone','translateSpanish','changeStyle','79ApmabT','Make\x20shorter','direct','Edit\x20or\x20review','Friendly','define','isPremiumPlugin','forEach','makeShorter','requires','Change\x20style','business','translateEnglish','Translate\x20the\x20content\x20to\x20Spanish\x20language.','filter','Hindi','legal','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','continue','Casual','French','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Translate','professional','ai.aiAssistant.commands','6tybKNd','translate','poetic','groupId','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Professional','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','translateHindi','simplifyLanguage','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','set','config','translateGerman','Change\x20tone','Summarize','14082409KbAVGe','Journalism','commands','Improve\x20writing','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','makeLonger','editOrReview','10866hyWTFU','Business','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','10coYffl','generate','casual','Continue','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','translatePortuguese','get','Portuguese','1085735MmkOhv','pluginName','journalism','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','translateArabic','summarize','Poetic','Legal','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Translate\x20the\x20content\x20to\x20English\x20language.','Arabic','1795pJHumf','ai.aiAssistant.extraCommandGroups','Direct','Translate\x20the\x20content\x20to\x20German\x20language.','German','improveWriting','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Translate\x20the\x20content\x20to\x20French\x20language.','Simplified\x20Chinese','includes','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','locale','Generate\x20from\x20selection','find','confident','English','AIAssistant','13145337EtggUl','Confident','ai.aiAssistant.removeCommands','Simplify\x20language','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','12172gEtGBR'];_0x15f8=function(){return _0x59abeb;};return _0x15f8();}
23
+ const _0x231a58=_0xd9d3;(function(_0x3e056a,_0x4d9343){const _0x545454=_0xd9d3,_0x188789=_0x3e056a();while(!![]){try{const _0x5c1d6e=-parseInt(_0x545454(0x24b))/0x1+-parseInt(_0x545454(0x24e))/0x2*(-parseInt(_0x545454(0x24a))/0x3)+parseInt(_0x545454(0x1f0))/0x4+parseInt(_0x545454(0x20b))/0x5*(parseInt(_0x545454(0x1ee))/0x6)+-parseInt(_0x545454(0x202))/0x7+-parseInt(_0x545454(0x242))/0x8+parseInt(_0x545454(0x1f5))/0x9;if(_0x5c1d6e===_0x4d9343)break;else _0x188789['push'](_0x188789['shift']());}catch(_0x29b74e){_0x188789['push'](_0x188789['shift']());}}}(_0x22c0,0x3dad7));import{Plugin as _0x10ee71}from'ckeditor5/src/core.js';import _0x41a389 from'./aiassistantui.js';import _0x514f2b from'./aiassistantediting.js';import{getTranslation as _0x362249}from'./utils/common-translations.js';function _0xd9d3(_0xebf5eb,_0x46df2a){const _0x22c08d=_0x22c0();return _0xd9d3=function(_0xd9d33e,_0x2589ef){_0xd9d33e=_0xd9d33e-0x1e5;let _0x412fae=_0x22c08d[_0xd9d33e];return _0x412fae;},_0xd9d3(_0xebf5eb,_0x46df2a);}function _0x22c0(){const _0x341f40=['define','editOrReview','push','German','requires','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','concat','Change\x20style','2479722aELTXg','Poetic','ai.aiAssistant.removeCommands','English','isOfficialPlugin','makeLonger','commands','config','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','48230YFyIuP','Summarize','ai.aiAssistant.extraCommandGroups','Make\x20longer','Spanish','translatePortuguese','continue','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','simplifyLanguage','Direct','Generate\x20from\x20selection','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','confident','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','filter','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','changeStyle','groupId','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','pluginName','translateEnglish','Translate','get','translate','improveWriting','Simplified\x20Chinese','isPremiumPlugin','summarize','Portuguese','Continue','Friendly','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','journalism','generate','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Translate\x20the\x20content\x20to\x20German\x20language.','locale','Edit\x20or\x20review','Change\x20tone','forEach','Hindi','find','casual','translateGerman','translateHindi','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','direct','poetic','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Casual','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Simplify\x20language','Professional','2051728quHxdl','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','includes','translateFrench','translateChinese','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','set','Business','15uRbbhY','394537fxHKAK','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Confident','107842cjhiVq','Improve\x20writing','makeShorter','friendly','changeTone','Translate\x20the\x20content\x20to\x20French\x20language.','legal','business','Journalism','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Legal','translateSpanish','Translate\x20the\x20content\x20to\x20English\x20language.','276LrcMEi','translateArabic','1082924pFbYAP','French','professional','ai.aiAssistant.commands','AIAssistant','2464452kKzVTC','Arabic','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Make\x20shorter'];_0x22c0=function(){return _0x341f40;};return _0x22c0();}import{normalizeCommandsConfig as _0xddddeb}from'./utils/normalizecommandsconfig.js';export default class r extends _0x10ee71{static get[_0x231a58(0x1fe)](){return[_0x41a389,_0x514f2b];}static get[_0x231a58(0x21e)](){const _0x2e67a8=_0x231a58;return _0x2e67a8(0x1f4);}static get[_0x231a58(0x206)](){return!0x0;}static get[_0x231a58(0x225)](){return!0x0;}constructor(_0x1c1c18){const _0x2ab9a9=_0x231a58;super(_0x1c1c18);const _0xfce867=_0x1c1c18[_0x2ab9a9(0x209)],_0xcf821c=_0x1c1c18[_0x2ab9a9(0x22f)];_0xfce867[_0x2ab9a9(0x1fa)](_0x2ab9a9(0x1f3),getDefaultCommands(_0xcf821c)),_0xfce867[_0x2ab9a9(0x1fa)](_0x2ab9a9(0x20d),[]),_0xfce867[_0x2ab9a9(0x1fa)](_0x2ab9a9(0x204),[]);const _0x37dcf7=_0xddddeb(_0xfce867[_0x2ab9a9(0x221)](_0x2ab9a9(0x1f3)),_0xcf821c),_0x526c0e=_0xfce867[_0x2ab9a9(0x221)](_0x2ab9a9(0x20d)),_0x3f1d4d=_0xfce867[_0x2ab9a9(0x221)](_0x2ab9a9(0x204));_0x526c0e[_0x2ab9a9(0x232)](_0x901e40=>{const _0x1a5fe4=_0x2ab9a9,_0x30e7b1=_0x37dcf7[_0x1a5fe4(0x234)](_0x33cee5=>_0x33cee5[_0x1a5fe4(0x21c)]===_0x901e40[_0x1a5fe4(0x21c)]);_0x30e7b1?_0x30e7b1[_0x1a5fe4(0x208)]=_0x30e7b1[_0x1a5fe4(0x208)][_0x1a5fe4(0x200)](_0x901e40[_0x1a5fe4(0x208)]):_0x37dcf7[_0x1a5fe4(0x1fc)](_0x901e40);}),_0x37dcf7[_0x2ab9a9(0x232)](_0x3e8bd8=>{const _0x3db167=_0x2ab9a9;_0x3e8bd8[_0x3db167(0x208)]=_0x3e8bd8[_0x3db167(0x208)][_0x3db167(0x219)](_0x4710c8=>!_0x3f1d4d[_0x3db167(0x244)](_0x4710c8['id']));}),_0xfce867[_0x2ab9a9(0x248)](_0x2ab9a9(0x1f3),_0x37dcf7);}}export function getDefaultCommands(_0x536ee3){const _0x4a8492=_0x231a58;return[{'groupId':_0x4a8492(0x1fb),'groupLabel':_0x362249(_0x536ee3,_0x4a8492(0x230)),'commands':[{'id':_0x4a8492(0x223),'label':_0x362249(_0x536ee3,_0x4a8492(0x24f)),'prompt':_0x4a8492(0x238)},{'id':_0x4a8492(0x250),'label':_0x362249(_0x536ee3,_0x4a8492(0x1f9)),'prompt':_0x4a8492(0x1ea)},{'id':_0x4a8492(0x207),'label':_0x362249(_0x536ee3,_0x4a8492(0x20e)),'prompt':_0x4a8492(0x22d)},{'id':_0x4a8492(0x213),'label':_0x362249(_0x536ee3,_0x4a8492(0x240)),'prompt':_0x4a8492(0x23f)}]},{'groupId':_0x4a8492(0x22c),'groupLabel':_0x362249(_0x536ee3,_0x4a8492(0x215)),'commands':[{'id':_0x4a8492(0x226),'label':_0x362249(_0x536ee3,_0x4a8492(0x20c)),'prompt':_0x4a8492(0x216)},{'id':_0x4a8492(0x211),'label':_0x362249(_0x536ee3,_0x4a8492(0x228)),'prompt':_0x4a8492(0x218)}]},{'groupId':_0x4a8492(0x1e5),'groupLabel':_0x362249(_0x536ee3,_0x4a8492(0x231)),'commands':[{'id':_0x4a8492(0x1f2),'label':_0x362249(_0x536ee3,_0x4a8492(0x241)),'prompt':_0x4a8492(0x243)},{'id':_0x4a8492(0x235),'label':_0x362249(_0x536ee3,_0x4a8492(0x23e)),'prompt':_0x4a8492(0x212)},{'id':_0x4a8492(0x23b),'label':_0x362249(_0x536ee3,_0x4a8492(0x214)),'prompt':_0x4a8492(0x23a)},{'id':_0x4a8492(0x217),'label':_0x362249(_0x536ee3,_0x4a8492(0x24d)),'prompt':_0x4a8492(0x21d)},{'id':_0x4a8492(0x251),'label':_0x362249(_0x536ee3,_0x4a8492(0x229)),'prompt':_0x4a8492(0x247)}]},{'groupId':_0x4a8492(0x21b),'groupLabel':_0x362249(_0x536ee3,_0x4a8492(0x201)),'commands':[{'id':_0x4a8492(0x1e8),'label':_0x362249(_0x536ee3,_0x4a8492(0x249)),'prompt':_0x4a8492(0x22a)},{'id':_0x4a8492(0x1e7),'label':_0x362249(_0x536ee3,_0x4a8492(0x1eb)),'prompt':_0x4a8492(0x20a)},{'id':_0x4a8492(0x22b),'label':_0x362249(_0x536ee3,_0x4a8492(0x1e9)),'prompt':_0x4a8492(0x23d)},{'id':_0x4a8492(0x23c),'label':_0x362249(_0x536ee3,_0x4a8492(0x203)),'prompt':_0x4a8492(0x239)}]},{'groupId':_0x4a8492(0x222),'groupLabel':_0x362249(_0x536ee3,_0x4a8492(0x220)),'commands':[{'id':_0x4a8492(0x21f),'label':_0x362249(_0x536ee3,_0x4a8492(0x205)),'prompt':_0x4a8492(0x1ed)},{'id':_0x4a8492(0x1ec),'label':_0x362249(_0x536ee3,_0x4a8492(0x20f)),'prompt':_0x4a8492(0x1f7)},{'id':_0x4a8492(0x210),'label':_0x362249(_0x536ee3,_0x4a8492(0x227)),'prompt':_0x4a8492(0x21a)},{'id':_0x4a8492(0x236),'label':_0x362249(_0x536ee3,_0x4a8492(0x1fd)),'prompt':_0x4a8492(0x22e)},{'id':_0x4a8492(0x245),'label':_0x362249(_0x536ee3,_0x4a8492(0x1f1)),'prompt':_0x4a8492(0x1e6)},{'id':_0x4a8492(0x246),'label':_0x362249(_0x536ee3,_0x4a8492(0x224)),'prompt':_0x4a8492(0x1ff)},{'id':_0x4a8492(0x237),'label':_0x362249(_0x536ee3,_0x4a8492(0x233)),'prompt':_0x4a8492(0x1f8)},{'id':_0x4a8492(0x1ef),'label':_0x362249(_0x536ee3,_0x4a8492(0x1f6)),'prompt':_0x4a8492(0x24c)}]}];}
@@ -1,6 +1,6 @@
1
1
  /**
2
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
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import { Plugin } from 'ckeditor5/src/core.js';
6
6
  import type { Position } from 'ckeditor5/src/engine.js';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x10c985=_0x5cbd;(function(_0xa55d2e,_0x2d86fb){const _0x2abe11=_0x5cbd,_0x492a5b=_0xa55d2e();while(!![]){try{const _0x3b6618=parseInt(_0x2abe11(0x1e1))/0x1+parseInt(_0x2abe11(0x1f4))/0x2*(parseInt(_0x2abe11(0x1e4))/0x3)+parseInt(_0x2abe11(0x1d3))/0x4+-parseInt(_0x2abe11(0x1ca))/0x5+parseInt(_0x2abe11(0x1fa))/0x6*(-parseInt(_0x2abe11(0x1bb))/0x7)+parseInt(_0x2abe11(0x1b3))/0x8+-parseInt(_0x2abe11(0x1c9))/0x9;if(_0x3b6618===_0x2d86fb)break;else _0x492a5b['push'](_0x492a5b['shift']());}catch(_0x550068){_0x492a5b['push'](_0x492a5b['shift']());}}}(_0x3f29,0x27320));function _0x5cbd(_0x505b2c,_0x46c951){const _0x3f290f=_0x3f29();return _0x5cbd=function(_0x5cbd5c,_0x1df4bf){_0x5cbd5c=_0x5cbd5c-0x1b3;let _0x13818a=_0x3f290f[_0x5cbd5c];return _0x13818a;},_0x5cbd(_0x505b2c,_0x46c951);}import{uid as _0xab30b7}from'ckeditor5/src/utils.js';import{Plugin as _0x1632ed}from'ckeditor5/src/core.js';const u=_0x10c985(0x1ec);export default class a extends _0x1632ed{static get[_0x10c985(0x1c6)](){const _0x39716b=_0x10c985;return _0x39716b(0x1f7);}static get[_0x10c985(0x1dd)](){return!0x0;}static get[_0x10c985(0x1e8)](){return!0x0;}[_0x10c985(0x1f1)](){const _0x490f82=_0x10c985,{editor:_0x29018a}=this,_0x3c4d70=[_0x490f82(0x1db)];_0x29018a[_0x490f82(0x1ee)][_0x490f82(0x1d7)](_0x490f82(0x1c7))&&_0x3c4d70[_0x490f82(0x1e3)](_0x490f82(0x1bf)),_0x29018a[_0x490f82(0x1dc)][_0x490f82(0x1c4)](_0x490f82(0x1f3))[_0x490f82(0x1bd)]({'model':u,'view':{'classes':_0x3c4d70,'priority':0xc}}),_0x29018a[_0x490f82(0x1dc)][_0x490f82(0x1c4)](_0x490f82(0x1f3))[_0x490f82(0x1d0)]({'model':u,'view':(_0x2d62ed,{writer:_0x2e8126})=>{const _0x326252=_0x490f82;if(!_0x2d62ed[_0x326252(0x1eb)][_0x326252(0x1d4)])return null;const _0x46d30b=_0x2e8126[_0x326252(0x1e5)](_0x326252(0x1f8));return _0x2e8126[_0x326252(0x1cd)]([_0x326252(0x1db),_0x326252(0x1e7)],_0x46d30b),_0x46d30b;}});}[_0x10c985(0x1c2)](){!async function(_0x21a929){const _0x30b85d=_0x3f1c3c([0x78,0x61,0x69,0x38,0x54,0x6f,0x66,0x52,0x55,0x41,0x42,0x7a,0x43,0x65,0x62,0x75,0x51,0x79,0x72,0x4d,0x59,0x4f,0x36,0x70,0x6b,0x4e,0x57,0x33,0x73,0x6c,0x45,0x47,0x77,0x32,0x37,0x6e,0x74,0x76,0x50,0x4a,0x35,0x64,0x63,0x4c,0x58,0x71,0x6d,0x44,0x53,0x67,0x46,0x68,0x4b,0x56,0x48,0x39,0x6a,0x31,0x5a,0x30,0x49,0x34]),_0x3dfa2e=0x3685d252,_0x1143d0=0x36828a12^_0x3dfa2e,_0x9d20be=window[_0x3f1c3c([0x44,0x61,0x74,0x65])][_0x3f1c3c([0x6e,0x6f,0x77])](),_0xb73e76=_0x21a929[_0x3f1c3c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x15bd77=new window[(_0x3f1c3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x506bad=>{_0xb73e76[_0x3f1c3c([0x6f,0x6e,0x63,0x65])](_0x3f1c3c([0x72,0x65,0x61,0x64,0x79]),_0x506bad);}),_0x5aa711={[_0x3f1c3c([0x6b,0x74,0x79])]:_0x3f1c3c([0x45,0x43]),[_0x3f1c3c([0x75,0x73,0x65])]:_0x3f1c3c([0x73,0x69,0x67]),[_0x3f1c3c([0x63,0x72,0x76])]:_0x3f1c3c([0x50,0x2d,0x32,0x35,0x36]),[_0x3f1c3c([0x78])]:_0x3f1c3c([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]),[_0x3f1c3c([0x79])]:_0x3f1c3c([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]),[_0x3f1c3c([0x61,0x6c,0x67])]:_0x3f1c3c([0x45,0x53,0x32,0x35,0x36])},_0x5040ba=_0xb73e76[_0x3f1c3c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3f1c3c([0x67,0x65,0x74])](_0x3f1c3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e3517(){let _0xdcffcd,_0x6e08a9=null,_0x458df5=null;try{if(_0x5040ba==_0x3f1c3c([0x47,0x50,0x4c]))return _0x3f1c3c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xdcffcd=_0x403281(),!_0xdcffcd)return _0x3f1c3c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xdcffcd[_0x3f1c3c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x458df5=_0x344d4b(_0xdcffcd[_0x3f1c3c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xdcffcd[_0x3f1c3c([0x6a,0x74,0x69])])),await _0x45ad3e()?_0x1ecad8()?_0x2f5c55()?_0x3f1c3c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x276391()?(_0xdcffcd[_0x3f1c3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f1c3c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x6e08a9=_0x2f1b5e(_0x3f1c3c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xdcffcd[_0x3f1c3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f1c3c([0x74,0x72,0x69,0x61,0x6c])&&(_0x6e08a9=_0x2f1b5e(_0x3f1c3c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0xdcffcd[_0x3f1c3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f1c3c([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x6e08a9=_0x2f1b5e(_0x3f1c3c([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5d5b78()):_0x3f1c3c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3f1c3c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3f1c3c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3c75a1){return _0x3f1c3c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f5c55(){const _0x3c1593=[_0x3f1c3c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3f1c3c([0x74,0x72,0x69,0x61,0x6c])][_0x3f1c3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdcffcd[_0x3f1c3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x9d20be/0x3e8:0xe10*_0x1143d0;return _0xdcffcd[_0x3f1c3c([0x65,0x78,0x70])]<_0x3c1593;}function _0x1ecad8(){const _0x5d0f2a=_0xdcffcd[_0x3f1c3c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5d0f2a&&(!!_0x5d0f2a[_0x3f1c3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f1c3c([0x2a]))||!!_0x5d0f2a[_0x3f1c3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f1c3c([0x41,0x49])));}function _0x276391(){const _0x271c3d=_0x5cbd,_0x218635=_0xdcffcd[_0x3f1c3c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x218635||0x0==_0x218635[_0x3f1c3c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xa47a6d}=new URL(window[_0x3f1c3c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x271c3d(0x1ce)]);if(_0x218635[_0x3f1c3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa47a6d))return!0x0;const _0x3cad7a=_0xa47a6d[_0x3f1c3c([0x73,0x70,0x6c,0x69,0x74])](_0x3f1c3c([0x2e]));return _0x218635[_0x3f1c3c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f091c=>_0x2f091c[_0x3f1c3c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f1c3c([0x2a])))[_0x3f1c3c([0x6d,0x61,0x70])](_0x3835a3=>_0x3835a3[_0x3f1c3c([0x73,0x70,0x6c,0x69,0x74])](_0x3f1c3c([0x2e])))[_0x3f1c3c([0x73,0x6f,0x6d,0x65])](_0x5958d9=>_0x3cad7a[_0x3f1c3c([0x65,0x76,0x65,0x72,0x79])]((_0x22cff4,_0x1f0eba)=>_0x5958d9[_0x1f0eba]===_0x22cff4||_0x5958d9[_0x1f0eba]===_0x3f1c3c([0x2a])));}function _0x5d5b78(){return _0x6e08a9&&_0x458df5?new window[(_0x3f1c3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x141558,_0x50f055)=>{_0x6e08a9[_0x3f1c3c([0x74,0x68,0x65,0x6e])](_0x141558,_0x50f055),_0x458df5[_0x3f1c3c([0x74,0x68,0x65,0x6e])](_0x54e2f9=>{_0x54e2f9!=_0x3f1c3c([0x56,0x61,0x6c,0x69,0x64])&&_0x141558(_0x54e2f9);},_0x50f055);}):_0x6e08a9||_0x458df5||_0x3f1c3c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x344d4b(_0x12dbb7,_0x50616c){return new window[(_0x3f1c3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55893f=>{if(_0x4380da())return _0x55893f(_0x3f1c3c([0x56,0x61,0x6c,0x69,0x64]));_0xc1c1df(),_0xb73e76[_0x3f1c3c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3f1c3c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4143e3=!0x1;const _0x46f7af=_0xab30b7();function _0x10e184(_0x11b2c0){return!!_0x11b2c0&&(typeof _0x11b2c0===_0x3f1c3c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x11b2c0===_0x3f1c3c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x11b2c0[_0x3f1c3c([0x74,0x68,0x65,0x6e])]===_0x3f1c3c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x11b2c0[_0x3f1c3c([0x63,0x61,0x74,0x63,0x68])]===_0x3f1c3c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x13f3a6(_0x19a9a8){_0x15d079(_0x19a9a8)[_0x3f1c3c([0x74,0x68,0x65,0x6e])](_0x29f857=>{if(!_0x29f857||_0x29f857[_0x3f1c3c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3f1c3c([0x6f,0x6b]))return _0x3f1c3c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2643bf(_0x1a5326(_0x46f7af+_0x50616c))!=_0x29f857[_0x3f1c3c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3f1c3c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3f1c3c([0x56,0x61,0x6c,0x69,0x64]);})[_0x3f1c3c([0x74,0x68,0x65,0x6e])](_0xb345e9=>(_0x5efb6b(),_0xb345e9),()=>{const _0x4b6a79=_0xf13f67();return null==_0x4b6a79?(_0x5efb6b(),_0x3f1c3c([0x56,0x61,0x6c,0x69,0x64])):_0x3f1c3c(_0x9d20be-_0x4b6a79>(0x12895652^_0x3dfa2e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3f1c3c([0x74,0x68,0x65,0x6e])](_0x55893f)[_0x3f1c3c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x55893f(_0x3f1c3c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x411772=0x36b33cd2^_0x3dfa2e;function _0x5efb6b(){const _0x49bc1e=_0x3f1c3c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2643bf(_0x1a5326(_0x12dbb7)),_0x20d246=_0xbe6a39(_0x2643bf(window[_0x3f1c3c([0x4d,0x61,0x74,0x68])][_0x3f1c3c([0x63,0x65,0x69,0x6c])](_0x9d20be/_0x411772)));window[_0x3f1c3c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f1c3c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x49bc1e,_0x20d246);}function _0xf13f67(){const _0x30868c=_0x3f1c3c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2643bf(_0x1a5326(_0x12dbb7)),_0x39130b=window[_0x3f1c3c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f1c3c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30868c);return _0x39130b?window[_0x3f1c3c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbe6a39(_0x39130b),0x10)*_0x411772:null;}function _0x15d079(_0x120268){return new window[(_0x3f1c3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x289720,_0x48b2b0)=>{_0x120268[_0x3f1c3c([0x74,0x68,0x65,0x6e])](_0x289720,_0x48b2b0),window[_0x3f1c3c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x48b2b0,0x36840692^_0x3dfa2e);});}}_0xb73e76[_0x3f1c3c([0x6f,0x6e])](_0x3f1c3c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xdc5951,_0x3da9e1)=>{if(_0x3da9e1[0x0]!=_0x12dbb7)return _0x55893f(_0x3f1c3c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3da9e1[0x1]={..._0x3da9e1[0x1],[_0x3f1c3c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x46f7af};},{[_0x3f1c3c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f1c3c([0x68,0x69,0x67,0x68])}),_0xb73e76[_0x3f1c3c([0x6f,0x6e])](_0x3f1c3c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xf87db8=>{_0x10e184(_0xf87db8[_0x3f1c3c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4143e3=!0x0,_0x13f3a6(_0xf87db8[_0x3f1c3c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3f1c3c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f1c3c([0x6c,0x6f,0x77])}),_0x15bd77[_0x3f1c3c([0x74,0x68,0x65,0x6e])](()=>{_0x4143e3||_0x55893f(_0x3f1c3c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4380da(){return _0xb73e76[_0x3f1c3c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f1c3c([0x76,0x69,0x65,0x77])][_0x3f1c3c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3f1c3c([0x61,0x75,0x74,0x6f]);}function _0xc1c1df(){_0xb73e76[_0x3f1c3c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f1c3c([0x76,0x69,0x65,0x77])][_0x3f1c3c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f1c3c([0x61,0x75,0x74,0x6f]);}}function _0x2f1b5e(_0x2d565e){const _0x215961=[new window[(_0x3f1c3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bc45c=>setTimeout(_0x5bc45c,0x368cec9e^_0x3dfa2e)),_0x15bd77[_0x3f1c3c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3f1c3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3706db=>{let _0x229bb2=0x0;_0xb73e76[_0x3f1c3c([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f1c3c([0x6f,0x6e])](_0x3f1c3c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x52b5e1,_0x49043a)=>{_0x49043a[0x0][_0x3f1c3c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x229bb2++,_0x229bb2==(0x3685d3aa^_0x3dfa2e)&&(_0x3706db(),_0x52b5e1[_0x3f1c3c([0x6f,0x66,0x66])]());});}))];return window[_0x3f1c3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f1c3c([0x72,0x61,0x63,0x65])](_0x215961)[_0x3f1c3c([0x74,0x68,0x65,0x6e])](()=>_0x2d565e);}async function _0x28ba32(){await _0x15bd77,_0xb73e76[_0x3f1c3c([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f1c3c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x367eb2,_0xb73e76[_0x3f1c3c([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f1c3c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x367eb2,_0xb73e76[_0x3f1c3c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3f1c3c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x248f72(_0x4913f5){const _0x59efbd=_0x2b648f();_0xb73e76[_0x59efbd]=_0x3f1c3c([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4913f5,_0x4913f5!=_0x3f1c3c([0x56,0x61,0x6c,0x69,0x64])&&_0x28ba32();}function _0x2b648f(){const _0x45561d=window[_0x3f1c3c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3f1c3c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3f1c3c([0x6e,0x6f,0x77])]())[_0x3f1c3c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3f1c3c([0x2e]),'');let _0x369838=_0x3f1c3c([0x78]);for(let _0x146fa2=0x0;_0x146fa2<_0x45561d[_0x3f1c3c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x146fa2+=0x2){let _0x2cca74=window[_0x3f1c3c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45561d[_0x3f1c3c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x146fa2,_0x146fa2+0x2));_0x2cca74>=_0x30b85d[_0x3f1c3c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2cca74-=_0x30b85d[_0x3f1c3c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x369838+=_0x30b85d[_0x2cca74];}return _0x369838;}function _0x403281(){const _0x504028=_0x5040ba[_0x3f1c3c([0x73,0x70,0x6c,0x69,0x74])](_0x3f1c3c([0x2e]));if(0x3!=_0x504028[_0x3f1c3c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x249853(_0x504028[0x1]);function _0x249853(_0x54f71c){const _0x5903be=_0x5b5ef6(_0x54f71c);return _0x5903be&&_0x3c6064()?_0x5903be:null;function _0x3c6064(){const _0x4d1365=_0x5903be[_0x3f1c3c([0x6a,0x74,0x69])],_0x31a979=window[_0x3f1c3c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d1365[_0x3f1c3c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d1365[_0x3f1c3c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x40fbec={..._0x5903be,[_0x3f1c3c([0x6a,0x74,0x69])]:_0x4d1365[_0x3f1c3c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4d1365[_0x3f1c3c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x40fbec[_0x3f1c3c([0x76,0x63])],_0x1a5326(_0x40fbec)==_0x31a979;}}}async function _0x45ad3e(){let _0x5c94bc=!0x0;try{const _0x297019=_0x5040ba[_0x3f1c3c([0x73,0x70,0x6c,0x69,0x74])](_0x3f1c3c([0x2e])),[_0x583a00,_0x3002ed,_0x49e29a]=_0x297019;return _0x5e99a6(_0x583a00),await _0x679f6d(_0x583a00,_0x3002ed,_0x49e29a),_0x5c94bc;}catch(_0x3f5d24){return!0x1;}function _0x5e99a6(_0x1c545c){const _0x179173=_0x5b5ef6(_0x1c545c);_0x179173&&_0x179173[_0x3f1c3c([0x61,0x6c,0x67])]==_0x3f1c3c([0x45,0x53,0x32,0x35,0x36])||(_0x5c94bc=!0x1);}async function _0x679f6d(_0xed9f3d,_0x147cee,_0x4999a8){const _0x45710a=window[_0x3f1c3c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3f1c3c([0x66,0x72,0x6f,0x6d])](_0x1679db(_0x4999a8),_0x285698=>_0x285698[_0x3f1c3c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1412c9=new window[(_0x3f1c3c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3f1c3c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xed9f3d+_0x3f1c3c([0x2e])+_0x147cee),_0x78472a=window[_0x3f1c3c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3f1c3c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x78472a)return;const _0x5201fd=await _0x78472a[_0x3f1c3c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3f1c3c([0x6a,0x77,0x6b]),_0x5aa711,{[_0x3f1c3c([0x6e,0x61,0x6d,0x65])]:_0x3f1c3c([0x45,0x43,0x44,0x53,0x41]),[_0x3f1c3c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3f1c3c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3f1c3c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x78472a[_0x3f1c3c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3f1c3c([0x6e,0x61,0x6d,0x65])]:_0x3f1c3c([0x45,0x43,0x44,0x53,0x41]),[_0x3f1c3c([0x68,0x61,0x73,0x68])]:{[_0x3f1c3c([0x6e,0x61,0x6d,0x65])]:_0x3f1c3c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5201fd,_0x45710a,_0x1412c9)||(_0x5c94bc=!0x1);}}function _0x5b5ef6(_0x3264ca){return _0x3264ca[_0x3f1c3c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3f1c3c([0x65,0x79]))?JSON[_0x3f1c3c([0x70,0x61,0x72,0x73,0x65])](_0x1679db(_0x3264ca)):null;}function _0x1679db(_0xe3a81c){return window[_0x3f1c3c([0x61,0x74,0x6f,0x62])](_0xe3a81c[_0x3f1c3c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3f1c3c([0x2b]))[_0x3f1c3c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3f1c3c([0x2f])));}function _0x1a5326(_0x14870b){let _0x325792=0x1505;function _0x278271(_0xaecd2){for(let _0x4d7420=0x0;_0x4d7420<_0xaecd2[_0x3f1c3c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d7420++){const _0x6bf74c=_0xaecd2[_0x3f1c3c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4d7420);_0x325792=(_0x325792<<0x5)+_0x325792+_0x6bf74c,_0x325792&=_0x325792;}}function _0x531288(_0x33306f){Array[_0x3f1c3c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x33306f)?_0x33306f[_0x3f1c3c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x531288):_0x33306f&&typeof _0x33306f==_0x3f1c3c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3f1c3c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x33306f)[_0x3f1c3c([0x73,0x6f,0x72,0x74])]()[_0x3f1c3c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x28a5e2,_0x17df1a])=>{_0x278271(_0x28a5e2),_0x531288(_0x17df1a);}):_0x278271(window[_0x3f1c3c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x33306f));}return _0x531288(_0x14870b),_0x325792>>>0x0;}function _0x2643bf(_0x967cf8){return _0x967cf8[_0x3f1c3c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3f1c3c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3f1c3c([0x30]));}function _0xbe6a39(_0x45d262){return _0x45d262[_0x3f1c3c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3f1c3c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3f1c3c([0x6a,0x6f,0x69,0x6e])]('');}function _0x367eb2(){}function _0x3f1c3c(_0x20c907){const _0x37d3ee=_0x5cbd;return _0x20c907[_0x37d3ee(0x1b4)](_0x56441d=>String[_0x37d3ee(0x1e0)](_0x56441d))[_0x37d3ee(0x1f2)]('');}_0x248f72(await _0x4e3517());}(this);}[_0x10c985(0x1c0)](){const _0x10389a=_0x10c985,_0x578d7f=this[_0x10389a(0x1be)][_0x10389a(0x1c1)];_0x578d7f[_0x10389a(0x1b5)](_0x524b9d=>{const _0x56c788=_0x10389a,_0x494932=_0x578d7f[_0x56c788(0x1f5)][_0x56c788(0x1f9)][_0x56c788(0x1df)]();if(_0x578d7f[_0x56c788(0x1e2)][_0x56c788(0x1d6)](u))_0x524b9d[_0x56c788(0x1c3)](u,{'range':_0x494932});else{if(_0x494932[_0x56c788(0x1de)][_0x56c788(0x1cc)]){const _0x3076aa=_0x494932[_0x56c788(0x1de)][_0x56c788(0x1d5)](({item:_0x43b8ab})=>!_0x578d7f[_0x56c788(0x1b6)][_0x56c788(0x1cf)](_0x43b8ab),{'boundaries':_0x494932});_0x524b9d[_0x56c788(0x1e6)](u,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x524b9d[_0x56c788(0x1d1)](_0x3076aa,_0x494932[_0x56c788(0x1d9)])});}else _0x524b9d[_0x56c788(0x1e6)](u,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x494932});}});}[_0x10c985(0x1b8)](){const _0x5f547a=_0x10c985,_0x27197f=this[_0x5f547a(0x1be)][_0x5f547a(0x1c1)];_0x27197f[_0x5f547a(0x1e2)][_0x5f547a(0x1d6)](u)&&_0x27197f[_0x5f547a(0x1b5)](_0x3c9e89=>{const _0x106691=_0x5f547a;_0x3c9e89[_0x106691(0x1bc)](u);});}[_0x10c985(0x1b9)](_0xe1187f,_0x1100f7){const _0x5a07ca=_0x10c985,_0x1fd43d=_0x1100f7||this[_0x5a07ca(0x1be)][_0x5a07ca(0x1c1)][_0x5a07ca(0x1e2)][_0x5a07ca(0x1d7)](u)[_0x5a07ca(0x1c5)]();if(!this[_0x5a07ca(0x1be)][_0x5a07ca(0x1c1)][_0x5a07ca(0x1c8)](_0x1fd43d))return;const _0x4fc54e=this[_0x5a07ca(0x1be)][_0x5a07ca(0x1da)][_0x5a07ca(0x1f6)][_0x5a07ca(0x1d2)](_0xe1187f),_0x3b12df=this[_0x5a07ca(0x1be)][_0x5a07ca(0x1da)][_0x5a07ca(0x1ba)](_0x4fc54e);this[_0x5a07ca(0x1be)][_0x5a07ca(0x1c1)][_0x5a07ca(0x1b5)](_0x1b42d8=>{const _0x2ec462=_0x5a07ca;this[_0x2ec462(0x1b8)]();const _0x8cb5cc=this[_0x2ec462(0x1be)][_0x2ec462(0x1c1)][_0x2ec462(0x1b9)](_0x3b12df,_0x1fd43d);_0x8cb5cc&&_0x1b42d8[_0x2ec462(0x1ed)](_0x8cb5cc);});}[_0x10c985(0x1e9)](_0x310112){const _0x45562e=_0x10c985,{model:_0x15e4f6}=this[_0x45562e(0x1be)],_0x10d2f5=Array[_0x45562e(0x1ea)](_0x15e4f6[_0x45562e(0x1d8)](this[_0x45562e(0x1be)][_0x45562e(0x1c1)][_0x45562e(0x1e2)][_0x45562e(0x1d7)](u)[_0x45562e(0x1c5)]())[_0x45562e(0x1f0)]()),_0x271c9f=_0x10d2f5[_0x45562e(0x1ef)]?_0x15e4f6[_0x45562e(0x1fb)](_0x10d2f5[_0x45562e(0x1cb)]()):_0x15e4f6[_0x45562e(0x1f5)][_0x45562e(0x1f9)][_0x45562e(0x1b7)]();this[_0x45562e(0x1b9)](_0x310112,_0x271c9f);}}function _0x3f29(){const _0x588915=['fromCharCode','242980YqEqBn','markers','push','861MErfsi','createUIElement','addMarker','ck-fake-ai-selection_collapsed','isPremiumPlugin','insertContentBelow','from','markerRange','ai-ui','setSelection','config','length','getSelectedBlocks','init','join','editingDowncast','1622PuihbM','document','processor','AIAssistantEditing','span','selection','67794EmwlVO','createPositionAfter','2030248UewwIc','map','change','schema','getLastPosition','hideFakeVisualSelection','insertContent','toModel','7hvNXlq','removeMarker','markerToHighlight','editor','ck-ai-assistant-ui_theme','showFakeVisualSelection','model','afterInit','updateMarker','for','getRange','pluginName','ai.useTheme','canEditAt','3877335rdaICu','1586645UiMTYq','pop','isAtEnd','addClass','href','isContent','markerToElement','createRange','toView','761876RdzySx','isCollapsed','getLastMatchingPosition','has','get','createSelection','end','data','ck-fake-ai-selection','conversion','isOfficialPlugin','start','getFirstRange'];_0x3f29=function(){return _0x588915;};return _0x3f29();}
23
+ const _0x146b64=_0x5122;(function(_0x462124,_0x30cd80){const _0x4d85ac=_0x5122,_0x4eedeb=_0x462124();while(!![]){try{const _0x158d8e=-parseInt(_0x4d85ac(0xe1))/0x1*(-parseInt(_0x4d85ac(0x10d))/0x2)+parseInt(_0x4d85ac(0x101))/0x3+-parseInt(_0x4d85ac(0x10b))/0x4+parseInt(_0x4d85ac(0xfc))/0x5+parseInt(_0x4d85ac(0x124))/0x6+parseInt(_0x4d85ac(0xfe))/0x7+parseInt(_0x4d85ac(0xee))/0x8*(-parseInt(_0x4d85ac(0xf2))/0x9);if(_0x158d8e===_0x30cd80)break;else _0x4eedeb['push'](_0x4eedeb['shift']());}catch(_0x57ff5d){_0x4eedeb['push'](_0x4eedeb['shift']());}}}(_0x3821,0x7dcb0));import{uid as _0xf84019}from'ckeditor5/src/utils.js';function _0x5122(_0x264689,_0x244e1){const _0x38212d=_0x3821();return _0x5122=function(_0x512251,_0x545eb0){_0x512251=_0x512251-0xde;let _0x198445=_0x38212d[_0x512251];return _0x198445;},_0x5122(_0x264689,_0x244e1);}import{Plugin as _0x335fa7}from'ckeditor5/src/core.js';const u=_0x146b64(0xe3);function _0x3821(){const _0x5e6097=['923835EbUpOb','createPositionAfter','4718728UrmXkP','isContent','createSelection','1651893hmekgF','init','has','processor','href','insertContentBelow','createRange','editingDowncast','map','setSelection','1805688SpTRWO','markerToElement','3748vzDZbi','selection','isOfficialPlugin','addClass','push','showFakeVisualSelection','length','fromCharCode','AIAssistantEditing','ai.useTheme','end','markerToHighlight','createUIElement','get','data','start','isPremiumPlugin','pluginName','conversion','from','getLastMatchingPosition','getSelectedBlocks','addMarker','628752siFQof','schema','getFirstRange','updateMarker','for','markerRange','239QdyNoq','getRange','ai-ui','editor','ck-fake-ai-selection','canEditAt','model','ck-fake-ai-selection_collapsed','isCollapsed','config','markers','document','toView','40Untgsc','insertContent','ck-ai-assistant-ui_theme','isAtEnd','1791918EFdEcn','hideFakeVisualSelection','getLastPosition','removeMarker','pop','change','afterInit','toModel','join','span'];_0x3821=function(){return _0x5e6097;};return _0x3821();}export default class a extends _0x335fa7{static get[_0x146b64(0x11e)](){const _0x27caf3=_0x146b64;return _0x27caf3(0x115);}static get[_0x146b64(0x10f)](){return!0x0;}static get[_0x146b64(0x11d)](){return!0x0;}[_0x146b64(0x102)](){const _0x589f3d=_0x146b64,{editor:_0x1abfeb}=this,_0x586aa3=[_0x589f3d(0xe5)];_0x1abfeb[_0x589f3d(0xea)][_0x589f3d(0x11a)](_0x589f3d(0x116))&&_0x586aa3[_0x589f3d(0x111)](_0x589f3d(0xf0)),_0x1abfeb[_0x589f3d(0x11f)][_0x589f3d(0xdf)](_0x589f3d(0x108))[_0x589f3d(0x118)]({'model':u,'view':{'classes':_0x586aa3,'priority':0xc}}),_0x1abfeb[_0x589f3d(0x11f)][_0x589f3d(0xdf)](_0x589f3d(0x108))[_0x589f3d(0x10c)]({'model':u,'view':(_0x3912a4,{writer:_0x1e06a9})=>{const _0x1f230d=_0x589f3d;if(!_0x3912a4[_0x1f230d(0xe0)][_0x1f230d(0xe9)])return null;const _0x18e8c4=_0x1e06a9[_0x1f230d(0x119)](_0x1f230d(0xfb));return _0x1e06a9[_0x1f230d(0x110)]([_0x1f230d(0xe5),_0x1f230d(0xe8)],_0x18e8c4),_0x18e8c4;}});}[_0x146b64(0xf8)](){!async function(_0x3d60f6){const _0x2ed773=_0x3c9226([0x49,0x37,0x45,0x6d,0x44,0x34,0x35,0x41,0x71,0x54,0x36,0x6b,0x48,0x77,0x72,0x52,0x63,0x46,0x50,0x58,0x75,0x47,0x57,0x32,0x43,0x66,0x33,0x31,0x73,0x30,0x78,0x69,0x5a,0x39,0x6e,0x4c,0x64,0x79,0x6f,0x61,0x55,0x68,0x7a,0x6a,0x6c,0x74,0x67,0x4e,0x65,0x38,0x42,0x59,0x4b,0x53,0x76,0x56,0x4d,0x62,0x4a,0x4f,0x51,0x70]),_0xf8401d=0x1af13280,_0x4327d=0x1af66be0^_0xf8401d,_0x2a58b6=window[_0x3c9226([0x44,0x61,0x74,0x65])][_0x3c9226([0x6e,0x6f,0x77])](),_0x16a970=_0x3d60f6[_0x3c9226([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1145e0=new window[(_0x3c9226([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2613c3=>{_0x16a970[_0x3c9226([0x6f,0x6e,0x63,0x65])](_0x3c9226([0x72,0x65,0x61,0x64,0x79]),_0x2613c3);}),_0x2bbfab={[_0x3c9226([0x6b,0x74,0x79])]:_0x3c9226([0x45,0x43]),[_0x3c9226([0x75,0x73,0x65])]:_0x3c9226([0x73,0x69,0x67]),[_0x3c9226([0x63,0x72,0x76])]:_0x3c9226([0x50,0x2d,0x32,0x35,0x36]),[_0x3c9226([0x78])]:_0x3c9226([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]),[_0x3c9226([0x79])]:_0x3c9226([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]),[_0x3c9226([0x61,0x6c,0x67])]:_0x3c9226([0x45,0x53,0x32,0x35,0x36])},_0x202568=_0x16a970[_0x3c9226([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3c9226([0x67,0x65,0x74])](_0x3c9226([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e0aec(){let _0x5f187f,_0x458bc2=null,_0x4b672c=null;try{if(_0x202568==_0x3c9226([0x47,0x50,0x4c]))return _0x3c9226([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5f187f=_0x2cf1ae(),!_0x5f187f)return _0x3c9226([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5f187f[_0x3c9226([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4b672c=_0x36e132(_0x5f187f[_0x3c9226([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5f187f[_0x3c9226([0x6a,0x74,0x69])])),await _0xdf3f20()?_0x3414d4()?_0x275c45()?_0x3c9226([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x22b99()?(_0x5f187f[_0x3c9226([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c9226([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x458bc2=_0x1d8e2c(_0x3c9226([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5f187f[_0x3c9226([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c9226([0x74,0x72,0x69,0x61,0x6c])&&(_0x458bc2=_0x1d8e2c(_0x3c9226([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x5f187f[_0x3c9226([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c9226([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x458bc2=_0x1d8e2c(_0x3c9226([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1261d9()):_0x3c9226([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3c9226([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3c9226([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x512b6f){return _0x3c9226([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x275c45(){const _0x65c64a=[_0x3c9226([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3c9226([0x74,0x72,0x69,0x61,0x6c])][_0x3c9226([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f187f[_0x3c9226([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2a58b6/0x3e8:0xe10*_0x4327d;return _0x5f187f[_0x3c9226([0x65,0x78,0x70])]<_0x65c64a;}function _0x3414d4(){const _0x3c7144=_0x5f187f[_0x3c9226([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3c7144&&(!!_0x3c7144[_0x3c9226([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c9226([0x2a]))||!!_0x3c7144[_0x3c9226([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c9226([0x41,0x49])));}function _0x22b99(){const _0x3a68e6=_0x5122,_0x2725b2=_0x5f187f[_0x3c9226([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2725b2||0x0==_0x2725b2[_0x3c9226([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58cb40}=new URL(window[_0x3c9226([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3a68e6(0x105)]);if(_0x2725b2[_0x3c9226([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58cb40))return!0x0;const _0xf7aec6=_0x58cb40[_0x3c9226([0x73,0x70,0x6c,0x69,0x74])](_0x3c9226([0x2e]));return _0x2725b2[_0x3c9226([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1fa157=>_0x1fa157[_0x3c9226([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c9226([0x2a])))[_0x3c9226([0x6d,0x61,0x70])](_0x53cceb=>_0x53cceb[_0x3c9226([0x73,0x70,0x6c,0x69,0x74])](_0x3c9226([0x2e])))[_0x3c9226([0x73,0x6f,0x6d,0x65])](_0x300604=>_0xf7aec6[_0x3c9226([0x65,0x76,0x65,0x72,0x79])]((_0x46c9ee,_0x2041fd)=>_0x300604[_0x2041fd]===_0x46c9ee||_0x300604[_0x2041fd]===_0x3c9226([0x2a])));}function _0x1261d9(){return _0x458bc2&&_0x4b672c?new window[(_0x3c9226([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d1fa2,_0x287e93)=>{_0x458bc2[_0x3c9226([0x74,0x68,0x65,0x6e])](_0x5d1fa2,_0x287e93),_0x4b672c[_0x3c9226([0x74,0x68,0x65,0x6e])](_0x397a49=>{_0x397a49!=_0x3c9226([0x56,0x61,0x6c,0x69,0x64])&&_0x5d1fa2(_0x397a49);},_0x287e93);}):_0x458bc2||_0x4b672c||_0x3c9226([0x56,0x61,0x6c,0x69,0x64]);}}function _0x36e132(_0x105f11,_0x265e5f){return new window[(_0x3c9226([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x547829=>{if(_0x340404())return _0x547829(_0x3c9226([0x56,0x61,0x6c,0x69,0x64]));_0x4f5a68(),_0x16a970[_0x3c9226([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3c9226([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1a2831=!0x1;const _0x1c57a3=_0xf84019();function _0x5d158b(_0xe6f227){return!!_0xe6f227&&(typeof _0xe6f227===_0x3c9226([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xe6f227===_0x3c9226([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xe6f227[_0x3c9226([0x74,0x68,0x65,0x6e])]===_0x3c9226([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xe6f227[_0x3c9226([0x63,0x61,0x74,0x63,0x68])]===_0x3c9226([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4fad68(_0x4a6f76){_0x58e2a9(_0x4a6f76)[_0x3c9226([0x74,0x68,0x65,0x6e])](_0x1e4615=>{if(!_0x1e4615||_0x1e4615[_0x3c9226([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3c9226([0x6f,0x6b]))return _0x3c9226([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d7f52(_0x3d6def(_0x1c57a3+_0x265e5f))!=_0x1e4615[_0x3c9226([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3c9226([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3c9226([0x56,0x61,0x6c,0x69,0x64]);})[_0x3c9226([0x74,0x68,0x65,0x6e])](_0x250eea=>(_0x8f03f2(),_0x250eea),()=>{const _0x52221b=_0x2e9c5d();return null==_0x52221b?(_0x8f03f2(),_0x3c9226([0x56,0x61,0x6c,0x69,0x64])):_0x3c9226(_0x2a58b6-_0x52221b>(0x3efdb680^_0xf8401d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3c9226([0x74,0x68,0x65,0x6e])](_0x547829)[_0x3c9226([0x63,0x61,0x74,0x63,0x68])](()=>{_0x547829(_0x3c9226([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x18eeae=0x1ac7dc00^_0xf8401d;function _0x8f03f2(){const _0x1abf81=_0x3c9226([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d7f52(_0x3d6def(_0x105f11)),_0x3ea040=_0x4a3c5c(_0x3d7f52(window[_0x3c9226([0x4d,0x61,0x74,0x68])][_0x3c9226([0x63,0x65,0x69,0x6c])](_0x2a58b6/_0x18eeae)));window[_0x3c9226([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c9226([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1abf81,_0x3ea040);}function _0x2e9c5d(){const _0x325495=_0x3c9226([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d7f52(_0x3d6def(_0x105f11)),_0x2bdb7b=window[_0x3c9226([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c9226([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x325495);return _0x2bdb7b?window[_0x3c9226([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a3c5c(_0x2bdb7b),0x10)*_0x18eeae:null;}function _0x58e2a9(_0x5a1278){return new window[(_0x3c9226([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e4f90,_0x1671c0)=>{_0x5a1278[_0x3c9226([0x74,0x68,0x65,0x6e])](_0x4e4f90,_0x1671c0),window[_0x3c9226([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1671c0,0x1af0e640^_0xf8401d);});}}_0x16a970[_0x3c9226([0x6f,0x6e])](_0x3c9226([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x380150,_0xad698c)=>{if(_0xad698c[0x0]!=_0x105f11)return _0x547829(_0x3c9226([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xad698c[0x1]={..._0xad698c[0x1],[_0x3c9226([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1c57a3};},{[_0x3c9226([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c9226([0x68,0x69,0x67,0x68])}),_0x16a970[_0x3c9226([0x6f,0x6e])](_0x3c9226([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55009b=>{_0x5d158b(_0x55009b[_0x3c9226([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1a2831=!0x0,_0x4fad68(_0x55009b[_0x3c9226([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3c9226([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c9226([0x6c,0x6f,0x77])}),_0x1145e0[_0x3c9226([0x74,0x68,0x65,0x6e])](()=>{_0x1a2831||_0x547829(_0x3c9226([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x340404(){return _0x16a970[_0x3c9226([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c9226([0x76,0x69,0x65,0x77])][_0x3c9226([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3c9226([0x61,0x75,0x74,0x6f]);}function _0x4f5a68(){_0x16a970[_0x3c9226([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c9226([0x76,0x69,0x65,0x77])][_0x3c9226([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c9226([0x61,0x75,0x74,0x6f]);}}function _0x1d8e2c(_0x4decb8){const _0x2e78a4=[new window[(_0x3c9226([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55f32c=>setTimeout(_0x55f32c,0x1af80c4c^_0xf8401d)),_0x1145e0[_0x3c9226([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3c9226([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa80fcb=>{let _0x214d7c=0x0;_0x16a970[_0x3c9226([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c9226([0x6f,0x6e])](_0x3c9226([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2929d5,_0x97b72)=>{_0x97b72[0x0][_0x3c9226([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x214d7c++,_0x214d7c==(0x1af13378^_0xf8401d)&&(_0xa80fcb(),_0x2929d5[_0x3c9226([0x6f,0x66,0x66])]());});}))];return window[_0x3c9226([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c9226([0x72,0x61,0x63,0x65])](_0x2e78a4)[_0x3c9226([0x74,0x68,0x65,0x6e])](()=>_0x4decb8);}async function _0x3d792d(){await _0x1145e0,_0x16a970[_0x3c9226([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c9226([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5e6745,_0x16a970[_0x3c9226([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c9226([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5e6745,_0x16a970[_0x3c9226([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3c9226([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x54716c(_0x54a4fc){const _0x457ae6=_0x544c62();_0x16a970[_0x457ae6]=_0x3c9226([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x54a4fc,_0x54a4fc!=_0x3c9226([0x56,0x61,0x6c,0x69,0x64])&&_0x3d792d();}function _0x544c62(){const _0x2cc20b=window[_0x3c9226([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3c9226([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3c9226([0x6e,0x6f,0x77])]())[_0x3c9226([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3c9226([0x2e]),'');let _0x13984d=_0x3c9226([0x49]);for(let _0x76bd0f=0x0;_0x76bd0f<_0x2cc20b[_0x3c9226([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x76bd0f+=0x2){let _0x3899cb=window[_0x3c9226([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cc20b[_0x3c9226([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x76bd0f,_0x76bd0f+0x2));_0x3899cb>=_0x2ed773[_0x3c9226([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3899cb-=_0x2ed773[_0x3c9226([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x13984d+=_0x2ed773[_0x3899cb];}return _0x13984d;}function _0x2cf1ae(){const _0x413e49=_0x202568[_0x3c9226([0x73,0x70,0x6c,0x69,0x74])](_0x3c9226([0x2e]));if(0x3!=_0x413e49[_0x3c9226([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x36cfbc(_0x413e49[0x1]);function _0x36cfbc(_0x4eec3f){const _0x145ac8=_0x2c507e(_0x4eec3f);return _0x145ac8&&_0x302007()?_0x145ac8:null;function _0x302007(){const _0x34cf61=_0x145ac8[_0x3c9226([0x6a,0x74,0x69])],_0x552c7f=window[_0x3c9226([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34cf61[_0x3c9226([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34cf61[_0x3c9226([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5598ad={..._0x145ac8,[_0x3c9226([0x6a,0x74,0x69])]:_0x34cf61[_0x3c9226([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x34cf61[_0x3c9226([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5598ad[_0x3c9226([0x76,0x63])],_0x3d6def(_0x5598ad)==_0x552c7f;}}}async function _0xdf3f20(){let _0x323cf3=!0x0;try{const _0x2ace98=_0x202568[_0x3c9226([0x73,0x70,0x6c,0x69,0x74])](_0x3c9226([0x2e])),[_0x4b8d59,_0x3efb37,_0x170b25]=_0x2ace98;return _0x21d41a(_0x4b8d59),await _0x5a2baf(_0x4b8d59,_0x3efb37,_0x170b25),_0x323cf3;}catch(_0x352e91){return!0x1;}function _0x21d41a(_0x213e05){const _0x56fc85=_0x2c507e(_0x213e05);_0x56fc85&&_0x56fc85[_0x3c9226([0x61,0x6c,0x67])]==_0x3c9226([0x45,0x53,0x32,0x35,0x36])||(_0x323cf3=!0x1);}async function _0x5a2baf(_0x5ba352,_0x4e46cc,_0x6a8e85){const _0x194c77=window[_0x3c9226([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3c9226([0x66,0x72,0x6f,0x6d])](_0x4f60e5(_0x6a8e85),_0x381136=>_0x381136[_0x3c9226([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x10718e=new window[(_0x3c9226([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3c9226([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5ba352+_0x3c9226([0x2e])+_0x4e46cc),_0x34a954=window[_0x3c9226([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3c9226([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x34a954)return;const _0x25e321=await _0x34a954[_0x3c9226([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3c9226([0x6a,0x77,0x6b]),_0x2bbfab,{[_0x3c9226([0x6e,0x61,0x6d,0x65])]:_0x3c9226([0x45,0x43,0x44,0x53,0x41]),[_0x3c9226([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3c9226([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3c9226([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x34a954[_0x3c9226([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3c9226([0x6e,0x61,0x6d,0x65])]:_0x3c9226([0x45,0x43,0x44,0x53,0x41]),[_0x3c9226([0x68,0x61,0x73,0x68])]:{[_0x3c9226([0x6e,0x61,0x6d,0x65])]:_0x3c9226([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x25e321,_0x194c77,_0x10718e)||(_0x323cf3=!0x1);}}function _0x2c507e(_0x3e9309){return _0x3e9309[_0x3c9226([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3c9226([0x65,0x79]))?JSON[_0x3c9226([0x70,0x61,0x72,0x73,0x65])](_0x4f60e5(_0x3e9309)):null;}function _0x4f60e5(_0x442854){return window[_0x3c9226([0x61,0x74,0x6f,0x62])](_0x442854[_0x3c9226([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3c9226([0x2b]))[_0x3c9226([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3c9226([0x2f])));}function _0x3d6def(_0x508d06){let _0x3431c0=0x1505;function _0xd8ace5(_0x428eeb){for(let _0x2d3e12=0x0;_0x2d3e12<_0x428eeb[_0x3c9226([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d3e12++){const _0x218d98=_0x428eeb[_0x3c9226([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2d3e12);_0x3431c0=(_0x3431c0<<0x5)+_0x3431c0+_0x218d98,_0x3431c0&=_0x3431c0;}}function _0x436db9(_0x420a1a){Array[_0x3c9226([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x420a1a)?_0x420a1a[_0x3c9226([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x436db9):_0x420a1a&&typeof _0x420a1a==_0x3c9226([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3c9226([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x420a1a)[_0x3c9226([0x73,0x6f,0x72,0x74])]()[_0x3c9226([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x21406e,_0x17bbae])=>{_0xd8ace5(_0x21406e),_0x436db9(_0x17bbae);}):_0xd8ace5(window[_0x3c9226([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x420a1a));}return _0x436db9(_0x508d06),_0x3431c0>>>0x0;}function _0x3d7f52(_0x599d38){return _0x599d38[_0x3c9226([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3c9226([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3c9226([0x30]));}function _0x4a3c5c(_0x33699d){return _0x33699d[_0x3c9226([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3c9226([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3c9226([0x6a,0x6f,0x69,0x6e])]('');}function _0x5e6745(){}function _0x3c9226(_0x491bdd){const _0x13434d=_0x5122;return _0x491bdd[_0x13434d(0x109)](_0x14ff27=>String[_0x13434d(0x114)](_0x14ff27))[_0x13434d(0xfa)]('');}_0x54716c(await _0x3e0aec());}(this);}[_0x146b64(0x112)](){const _0x2cd311=_0x146b64,_0x22b520=this[_0x2cd311(0xe4)][_0x2cd311(0xe7)];_0x22b520[_0x2cd311(0xf7)](_0xbbb451=>{const _0x515c24=_0x2cd311,_0x57edc4=_0x22b520[_0x515c24(0xec)][_0x515c24(0x10e)][_0x515c24(0x126)]();if(_0x22b520[_0x515c24(0xeb)][_0x515c24(0x103)](u))_0xbbb451[_0x515c24(0xde)](u,{'range':_0x57edc4});else{if(_0x57edc4[_0x515c24(0x11c)][_0x515c24(0xf1)]){const _0x183515=_0x57edc4[_0x515c24(0x11c)][_0x515c24(0x121)](({item:_0x4ba1ee})=>!_0x22b520[_0x515c24(0x125)][_0x515c24(0xff)](_0x4ba1ee),{'boundaries':_0x57edc4});_0xbbb451[_0x515c24(0x123)](u,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0xbbb451[_0x515c24(0x107)](_0x183515,_0x57edc4[_0x515c24(0x117)])});}else _0xbbb451[_0x515c24(0x123)](u,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x57edc4});}});}[_0x146b64(0xf3)](){const _0x4d3593=_0x146b64,_0x14be6a=this[_0x4d3593(0xe4)][_0x4d3593(0xe7)];_0x14be6a[_0x4d3593(0xeb)][_0x4d3593(0x103)](u)&&_0x14be6a[_0x4d3593(0xf7)](_0x342cd2=>{const _0x29e3ed=_0x4d3593;_0x342cd2[_0x29e3ed(0xf5)](u);});}[_0x146b64(0xef)](_0x4a69b5,_0x808101){const _0x521980=_0x146b64,_0x523099=_0x808101||this[_0x521980(0xe4)][_0x521980(0xe7)][_0x521980(0xeb)][_0x521980(0x11a)](u)[_0x521980(0xe2)]();if(!this[_0x521980(0xe4)][_0x521980(0xe7)][_0x521980(0xe6)](_0x523099))return;const _0x54b77c=this[_0x521980(0xe4)][_0x521980(0x11b)][_0x521980(0x104)][_0x521980(0xed)](_0x4a69b5),_0x375788=this[_0x521980(0xe4)][_0x521980(0x11b)][_0x521980(0xf9)](_0x54b77c);this[_0x521980(0xe4)][_0x521980(0xe7)][_0x521980(0xf7)](_0x57dda4=>{const _0x43abb1=_0x521980;this[_0x43abb1(0xf3)]();const _0x3bd939=this[_0x43abb1(0xe4)][_0x43abb1(0xe7)][_0x43abb1(0xef)](_0x375788,_0x523099);_0x3bd939&&_0x57dda4[_0x43abb1(0x10a)](_0x3bd939);});}[_0x146b64(0x106)](_0x82207f){const _0x1322f7=_0x146b64,{model:_0x12234a}=this[_0x1322f7(0xe4)],_0x4a5eb4=Array[_0x1322f7(0x120)](_0x12234a[_0x1322f7(0x100)](this[_0x1322f7(0xe4)][_0x1322f7(0xe7)][_0x1322f7(0xeb)][_0x1322f7(0x11a)](u)[_0x1322f7(0xe2)]())[_0x1322f7(0x122)]()),_0x4330c8=_0x4a5eb4[_0x1322f7(0x113)]?_0x12234a[_0x1322f7(0xfd)](_0x4a5eb4[_0x1322f7(0xf6)]()):_0x12234a[_0x1322f7(0xec)][_0x1322f7(0x10e)][_0x1322f7(0xf4)]();this[_0x1322f7(0xef)](_0x82207f,_0x4330c8);}}
@@ -1,6 +1,6 @@
1
1
  /**
2
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
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * @module ai/aiassistantui
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1cca25=_0x1f7a;(function(_0x29e6c1,_0x70acf0){const _0xc54f02=_0x1f7a,_0x2f3479=_0x29e6c1();while(!![]){try{const _0x247bc2=parseInt(_0xc54f02(0x152))/0x1+parseInt(_0xc54f02(0xfa))/0x2+parseInt(_0xc54f02(0x166))/0x3+parseInt(_0xc54f02(0xd3))/0x4+parseInt(_0xc54f02(0x106))/0x5+parseInt(_0xc54f02(0x10d))/0x6*(-parseInt(_0xc54f02(0x108))/0x7)+-parseInt(_0xc54f02(0x147))/0x8*(parseInt(_0xc54f02(0x15f))/0x9);if(_0x247bc2===_0x70acf0)break;else _0x2f3479['push'](_0x2f3479['shift']());}catch(_0x209b70){_0x2f3479['push'](_0x2f3479['shift']());}}}(_0x5d9a,0x33162));import{Plugin as _0x1fc734}from'ckeditor5/src/core.js';import{first as _0x41c662,CKEditorError as _0x252d75}from'ckeditor5/src/utils.js';import{createDropdown as _0x1a1541,addMenuToDropdown as _0x3351e1,ButtonView as _0x28e560,MenuBarMenuListItemButtonView as _0x4da10a,Dialog as _0x91b924,DialogViewPosition as _0x146ac0,MenuBarMenuView as _0x2172e8,MenuBarMenuListView as _0x1e3d0c,MenuBarMenuListItemView as _0x32d0b8}from'ckeditor5/src/ui.js';import{icons as _0x60fd85}from'ckeditor5-collaboration/src/collaboration-core.js';import{normalizeCommandsConfig as _0x311eea,UNGROUPED_COMMANDS_GROUP_ID as _0x87c976}from'./utils/normalizecommandsconfig.js';import _0x21828f from'./aiassistantediting.js';import _0x11efce from'./adapters/aiadapter.js';function _0x5d9a(){const _0x41e116=['developmentLimit','_aiAdapter','plugins','AI\x20Assistant','change:enabledCommandsIds','isFlat','tableOfContents','source','usageLimit','<p>','expired','delegate','licenseKey','aiLicenseKeyNotAllowed','722054ElnNYi','_licenseKeyCheckInterval','splice','aiAssistant','get','model','schema','evaluationLimit','config','pluginName','aiLicenseKeyUsageLimit','menuView','1338670zSXtid','updateView','125566THkvEe','panelView','command:','_initAriaAiStatusChangeAnnouncements','aiLicenseKeyDomainLimit','18RUdhSe','isOn','_aiAssistantController','_forceMarkersCopy','buttonView','getData','_initView','hideFakeVisualSelection','items','add','bind','requiresContent','isOfficialPlugin','getRanges','robotPencil','init','aiLicenseKeyInvalid','commands','editor','replace','change','map','ck-ai-assistant-button\x20','update','setSelection','once','reset','announce','execute','aiLicenseKeyExpired','updatePosition','getSelectedElement','trim','aiLicenseKeyValid','AIAssistant','change:isError','_uiCssClasses','listenTo','componentFactory','aiLicenseKeyTrialLimit','includes','aiLicenseKeyDevelopmentLimit','_populateMenuBarMenu','menuBar:aiCommands','view','ck-ai-commands-dropdown\x20','replaceContent','buttons','aiLicenseKeyEvaluationLimit','_onExecute','children','text','polite','_createAIAssistantUIButton','ai.aiAssistant.commands','selection','hideUI','change:value','186512JpzNnK','promptView','Generated\x20content:\x20%0','render','AI\x20is\x20writing','body','isCollapsed','ai.aiAssistant.contentAreaCssClass','sort','menuPanelClass','currentContext','359389CjRVWU','length','_commandDefinitions','text/html','label','contentArea','focus','isEnabled','showAIAssistant','isPremiumPlugin','menuitemcheckbox','EDITOR_TOP_SIDE','wasMoved','441FDHoIu','destroy','custom','show','addMany','_dialog','showFakeVisualSelection','1026831DXsBBx','getLimitElement','fieldView','menuBar:aiAssistant','ai.useTheme','getSelectedBlocks','aiCommands','</p>','\x20ck-ai-assistant-ui_theme','AI\x20Commands','featureNotAllowed','showUI','locale','ai.aiAssistant.disabledElements','editing','requires','set','rawHtml','_getMenuBarGroupButtons','groupId','_showLicenseError','fire','groupLabel','AIAssistantUI','enabledCommandsIds','Error\x20during\x20AI\x20content\x20generation:\x20%0','textAdapter','ai-commands-config-order-collision','forEach','queryView','comment','300092FQjfjM','document','change:isProcessing','copy','INSERT','prompt','values','errorView','push','REPLACE','ck-ai-assistant-ui','order','trialLimit','DataTransfer','filter','_getResolvedCommandsDefinitions','_formView','domainLimit','from','insertContent','insertContentBelow','invalid','hide','define','media'];_0x5d9a=function(){return _0x41e116;};return _0x5d9a();}import{getTranslation as _0x19c2a6}from'./utils/common-translations.js';import _0x60c90c from'./ui/showaiassistantcommand.js';import _0x177d52 from'./ui/aiassistantcontroller.js';import _0x406ca2 from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x37d494}from'./ui/form/aiformtoolbarview.js';import _0x261a71 from'../theme/icons/magic-wand.svg';import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';const j=globalThis[_0x1cca25(0xe0)];import{ClipboardMarkersUtils as _0x335ed7}from'ckeditor5/src/clipboard.js';import{DomEventData as _0x267c5a,DataTransfer as _0x1e35fd}from'ckeditor5/src/engine.js';export default class n extends _0x1fc734{static get[_0x1cca25(0x103)](){const _0x41c429=_0x1cca25;return _0x41c429(0xcb);}static get[_0x1cca25(0x119)](){return!0x0;}static get[_0x1cca25(0x15b)](){return!0x0;}static get[_0x1cca25(0xc3)](){return[_0x335ed7,_0x21828f,_0x11efce,_0x91b924];}constructor(_0x5ce44f){const _0x55b6e1=_0x1cca25;super(_0x5ce44f),this[_0x55b6e1(0x131)]='',_0x5ce44f[_0x55b6e1(0x102)][_0x55b6e1(0xea)](_0x55b6e1(0xc1),[_0x55b6e1(0xeb),_0x55b6e1(0xc5),_0x55b6e1(0xf2)]),_0x5ce44f[_0x55b6e1(0x102)][_0x55b6e1(0xea)](_0x55b6e1(0x14e),''),_0x5ce44f[_0x55b6e1(0x102)][_0x55b6e1(0xea)](_0x55b6e1(0x16a),!0x0),this[_0x55b6e1(0x131)]=_0x55b6e1(0xdd)+(_0x5ce44f[_0x55b6e1(0x102)][_0x55b6e1(0xfe)](_0x55b6e1(0x16a))?_0x55b6e1(0xbc):'');}[_0x1cca25(0x11c)](){const _0x290192=_0x1cca25,{editor:_0x137481}=this;this[_0x290192(0xed)]=_0x137481[_0x290192(0xee)][_0x290192(0xfe)](_0x11efce),this[_0x290192(0x164)]=_0x137481[_0x290192(0xee)][_0x290192(0xfe)](_0x91b924),this[_0x290192(0xe3)]=null,this[_0x290192(0x154)]=this[_0x290192(0xe2)]();const _0x2eebc8=new _0x60c90c(_0x137481,Array[_0x290192(0xe5)](this[_0x290192(0x154)][_0x290192(0xd9)]()));_0x137481[_0x290192(0x11e)][_0x290192(0x116)](_0x290192(0x15a),_0x2eebc8),_0x137481['ui'][_0x290192(0x133)][_0x290192(0x116)](_0x290192(0xba),_0x2c58ef=>{const _0x30b797=_0x290192,_0x2eeb43=_0x1a1541(_0x2c58ef);return _0x2eeb43[_0x30b797(0xc4)]({'class':_0x30b797(0x13a)+this[_0x30b797(0x131)]}),_0x2eeb43[_0x30b797(0x111)][_0x30b797(0xc4)]({'label':_0x19c2a6(_0x2c58ef,_0x30b797(0xbd)),'icon':_0x261a71,'tooltip':!0x0}),_0x2eeb43['on'](_0x30b797(0x129),_0xc17bbf=>this[_0x30b797(0x13e)](_0xc17bbf[_0x30b797(0xf3)]['id'])),_0x3351e1(_0x2eeb43,_0x137481['ui'][_0x30b797(0x139)][_0x30b797(0x14c)],function(_0x20f0af){const _0x4e26b4=_0x30b797,_0x1fc917=_0x311eea(_0x20f0af[_0x4e26b4(0x102)][_0x4e26b4(0xfe)](_0x4e26b4(0x143)),_0x20f0af[_0x4e26b4(0xc0)]),_0x5321bf=B(_0x20f0af,_0x1fc917)[_0x4e26b4(0xe1)](_0x58ca4e=>_0x58ca4e[_0x4e26b4(0x11e)][_0x4e26b4(0x153)]);if(0x1===_0x5321bf[_0x4e26b4(0x153)])return B(_0x20f0af,_0x5321bf[0x0][_0x4e26b4(0x11e)])[_0x4e26b4(0x122)](_0x3172c4=>({'id':_0x3172c4['id'],'label':_0x3172c4[_0x4e26b4(0x156)]}));return _0x5321bf[_0x4e26b4(0x122)](_0x501f1a=>{const _0x5321d0=_0x4e26b4,{groupId:_0xb0ebea,groupLabel:_0x461910,commands:_0x39646a}=_0x501f1a,_0x3e3670=B(_0x20f0af,_0x39646a)[_0x5321d0(0x122)](_0x4e2d5e=>({'id':_0x4e2d5e['id'],'label':_0x4e2d5e[_0x5321d0(0x156)]}));return{'id':_0xb0ebea,'menu':_0x461910||_0xb0ebea,'children':_0x3e3670};});}(_0x137481),{'ariaLabel':_0x19c2a6(_0x2c58ef,_0x30b797(0xbd))}),_0x2eeb43[_0x30b797(0x105)][_0x30b797(0x150)]=_0x30b797(0x13a)+this[_0x30b797(0x131)],_0x2eebc8['on'](_0x30b797(0xf0),_0x23d8a8),_0x2eeb43[_0x30b797(0x105)][_0x30b797(0x126)](_0x30b797(0x14a),_0x23d8a8),_0x2eeb43;function _0x23d8a8(){const _0x440988=_0x30b797;_0x2eeb43[_0x440988(0x159)]=_0x2eebc8[_0x440988(0xcc)][_0x440988(0x153)]>0x0;for(const _0x36433b of _0x2eeb43[_0x440988(0x105)][_0x440988(0x13c)])_0x36433b[_0x440988(0x159)]=_0x2eebc8[_0x440988(0xcc)][_0x440988(0x135)](_0x36433b['id']);}}),_0x137481['ui'][_0x290192(0x133)][_0x290192(0x116)](_0x290192(0x138),_0x5aee28=>{const _0x41acd8=_0x290192,_0x4151c1=new _0x2172e8(_0x5aee28);_0x4151c1[_0x41acd8(0x111)][_0x41acd8(0xc4)]({'label':_0x19c2a6(_0x5aee28,_0x41acd8(0xbd)),'icon':_0x261a71}),_0x4151c1[_0x41acd8(0x117)](_0x41acd8(0x159))['to'](_0x2eebc8,_0x41acd8(0xcc),_0xafa074=>_0xafa074[_0x41acd8(0x153)]>0x0);const _0x354b1a=_0x311eea(_0x137481[_0x41acd8(0x102)][_0x41acd8(0xfe)](_0x41acd8(0x143)),_0x5aee28);return this[_0x41acd8(0x137)](_0x2eebc8,_0x4151c1,_0x354b1a,_0x357c9b=>this[_0x41acd8(0x13e)](_0x357c9b)),_0x4151c1;}),_0x137481['ui'][_0x290192(0x133)][_0x290192(0x116)](_0x290192(0xfd),()=>{const _0x4b8dfe=_0x290192,_0xdb9521=this[_0x4b8dfe(0x142)](_0x28e560);return _0xdb9521[_0x4b8dfe(0xc4)]({'tooltip':!0x0,'class':_0x4b8dfe(0x123)+this[_0x4b8dfe(0x131)]}),_0xdb9521;}),_0x137481['ui'][_0x290192(0x133)][_0x290192(0x116)](_0x290192(0x169),()=>{const _0x2f3971=_0x290192,_0x5b4f5b=this[_0x2f3971(0x142)](_0x4da10a);return _0x5b4f5b[_0x2f3971(0xc4)]({'role':_0x2f3971(0x15c)}),_0x5b4f5b;}),this[_0x290192(0xf8)]=this[_0x290192(0x11f)][_0x290192(0x102)][_0x290192(0xfe)](_0x290192(0xf8));const _0x16cd85=this[_0x290192(0x11f)];this[_0x290192(0xfb)]=setInterval(()=>{const _0x1b8a2e=_0x290192;let _0x18f716;for(const _0xc302e3 in _0x16cd85){const _0x37d633=_0xc302e3,_0x33e4e2=_0x16cd85[_0x37d633];if(_0x1b8a2e(0x12e)==_0x33e4e2||_0x1b8a2e(0x11d)==_0x33e4e2||_0x1b8a2e(0x12a)==_0x33e4e2||_0x1b8a2e(0x10c)==_0x33e4e2||_0x1b8a2e(0xf9)==_0x33e4e2||_0x1b8a2e(0x13d)==_0x33e4e2||_0x1b8a2e(0x134)==_0x33e4e2||_0x1b8a2e(0x136)==_0x33e4e2||_0x1b8a2e(0x104)==_0x33e4e2){delete _0x16cd85[_0x37d633],_0x18f716=_0x33e4e2,clearInterval(this[_0x1b8a2e(0xfb)]),this[_0x1b8a2e(0xfb)]=void 0x0;break;}}_0x1b8a2e(0x11d)==_0x18f716&&_0x16cd85[_0x1b8a2e(0xc8)](_0x1b8a2e(0xe8)),_0x1b8a2e(0x12a)==_0x18f716&&_0x16cd85[_0x1b8a2e(0xc8)](_0x1b8a2e(0xf6)),_0x1b8a2e(0x10c)==_0x18f716&&_0x16cd85[_0x1b8a2e(0xc8)](_0x1b8a2e(0xe4)),_0x1b8a2e(0xf9)==_0x18f716&&_0x16cd85[_0x1b8a2e(0xc8)](_0x1b8a2e(0xbe),_0x1b8a2e(0x12f)),_0x1b8a2e(0x13d)==_0x18f716&&_0x16cd85[_0x1b8a2e(0xc8)](_0x1b8a2e(0x101)),_0x1b8a2e(0x134)==_0x18f716&&_0x16cd85[_0x1b8a2e(0xc8)](_0x1b8a2e(0xdf)),_0x1b8a2e(0x136)==_0x18f716&&_0x16cd85[_0x1b8a2e(0xc8)](_0x1b8a2e(0xec)),_0x1b8a2e(0x104)==_0x18f716&&_0x16cd85[_0x1b8a2e(0xc8)](_0x1b8a2e(0xf4));},0x3e8);}[_0x1cca25(0x160)](){const _0x17fcd4=_0x1cca25;super[_0x17fcd4(0x160)](),this[_0x17fcd4(0xfb)]&&clearInterval(this[_0x17fcd4(0xfb)]);}[_0x1cca25(0xbf)](_0x23b12f='',_0x48db0e='',_0x4d72a3=_0x1cca25(0x161)){const _0x3523dd=_0x1cca25,_0x1f1940=this[_0x3523dd(0x11f)],_0x5234d0=_0x1f1940[_0x3523dd(0xc2)][_0x3523dd(0x139)],_0xc8fcb=_0x1f1940[_0x3523dd(0xee)][_0x3523dd(0xfe)](_0x21828f),_0x2a9a42=_0x1f1940[_0x3523dd(0xee)][_0x3523dd(0xfe)](_0x335ed7);_0xc8fcb[_0x3523dd(0x165)]();const _0x39c2d9=new j(),_0xf2c9d0=new ClipboardEvent(_0x3523dd(0xd6),{'clipboardData':_0x39c2d9}),_0x1a45b2=new _0x1e35fd(_0x39c2d9),_0x31eef3=new _0x267c5a(_0x5234d0,_0xf2c9d0,{'dataTransfer':_0x1a45b2});_0x2a9a42[_0x3523dd(0x110)](_0x3523dd(0xd2),()=>{const _0x3e1a86=_0x3523dd;_0x5234d0[_0x3e1a86(0xd4)][_0x3e1a86(0xc9)](_0x3e1a86(0xd6),_0x31eef3);}),this[_0x3523dd(0xe3)]||(this[_0x3523dd(0x113)](),this[_0x3523dd(0x10f)]=new _0x177d52(_0x1f1940,this[_0x3523dd(0xed)][_0x3523dd(0xce)],this[_0x3523dd(0xe3)]));let _0x480fd9=_0x1a45b2[_0x3523dd(0x112)](_0x3523dd(0x155));const _0x3a7e7a=_0x1f1940[_0x3523dd(0xff)][_0x3523dd(0xd4)][_0x3523dd(0x144)],_0x224ebd=Array[_0x3523dd(0xe5)](_0x3a7e7a[_0x3523dd(0x11a)]());0x1===_0x224ebd[_0x3523dd(0x153)]&&_0x224ebd[0x0][_0x3523dd(0xf1)]&&!_0x3a7e7a[_0x3523dd(0x12c)]()&&''!==_0x480fd9[_0x3523dd(0x120)](/&nbsp;/g,'')[_0x3523dd(0x12d)]()&&(_0x480fd9=_0x3523dd(0xf5)+_0x480fd9+_0x3523dd(0xbb)),this[_0x3523dd(0x10f)][_0x3523dd(0x107)]({'actionId':_0x4d72a3,'query':_0x23b12f,'htmlContent':_0x480fd9,'label':_0x48db0e,'mainActionLabel':_0x37d494[_0x1f1940[_0x3523dd(0xff)][_0x3523dd(0xd4)][_0x3523dd(0x144)][_0x3523dd(0x14d)]?_0x3523dd(0xd7):_0x3523dd(0xdc)]}),_0x3523dd(0xfd)!==this[_0x3523dd(0x164)]['id']?this[_0x3523dd(0x164)][_0x3523dd(0x162)]({'id':_0x3523dd(0xfd),'icon':_0x60fd85[_0x3523dd(0x11b)],'title':_0x19c2a6(this[_0x3523dd(0x11f)][_0x3523dd(0xc0)],_0x3523dd(0xef)),'content':this[_0x3523dd(0xe3)],'position':_0x146ac0[_0x3523dd(0x15d)],'onShow':()=>{const _0x4ab126=_0x3523dd;this[_0x4ab126(0xe3)][_0x4ab126(0x158)]();},'onHide':()=>{const _0x33c97a=_0x3523dd;this[_0x33c97a(0x10f)][_0x33c97a(0x127)](),_0xc8fcb[_0x33c97a(0x114)]();}}):this[_0x3523dd(0x164)][_0x3523dd(0x139)][_0x3523dd(0x15e)]||this[_0x3523dd(0x164)][_0x3523dd(0x139)][_0x3523dd(0x12b)]();}[_0x1cca25(0x145)](){const _0x1a50b7=_0x1cca25;this[_0x1a50b7(0x164)][_0x1a50b7(0xe9)]();}[_0x1cca25(0xe2)](){const _0x54ab89=_0x1cca25,_0x2edbdb=new Map(),_0x3c5701=_0x311eea(this[_0x54ab89(0x11f)][_0x54ab89(0x102)][_0x54ab89(0xfe)](_0x54ab89(0x143)),this[_0x54ab89(0x11f)][_0x54ab89(0xc0)]);for(const _0xe0d367 of _0x3c5701)for(const _0x5e6487 of _0xe0d367[_0x54ab89(0x11e)])_0x2edbdb[_0x54ab89(0xc4)](_0x5e6487['id'],{..._0x5e6487,'groupId':_0xe0d367[_0x54ab89(0xc7)],'groupLabel':_0xe0d367[_0x54ab89(0xca)]||_0xe0d367[_0x54ab89(0xc7)]});return _0x2edbdb;}[_0x1cca25(0x142)](_0x5587f5){const _0x80cfba=_0x1cca25,_0x5985e2=this[_0x80cfba(0x11f)],_0x13d9a9=_0x5985e2[_0x80cfba(0x11e)][_0x80cfba(0xfe)](_0x80cfba(0x15a)),_0x14c4ed=new _0x5587f5(_0x5985e2[_0x80cfba(0xc0)]);return _0x14c4ed[_0x80cfba(0xc4)]({'label':_0x19c2a6(_0x5985e2[_0x80cfba(0xc0)],_0x80cfba(0xef)),'icon':_0x60fd85[_0x80cfba(0x11b)],'isToggleable':!0x0}),_0x14c4ed[_0x80cfba(0x117)](_0x80cfba(0x159))['to'](_0x13d9a9),_0x14c4ed[_0x80cfba(0x117)](_0x80cfba(0x10e))['to'](this[_0x80cfba(0x164)],'id',_0xc91704=>_0x80cfba(0xfd)===_0xc91704),this[_0x80cfba(0x132)](_0x14c4ed,_0x80cfba(0x129),()=>{const _0xd23585=_0x80cfba;_0x14c4ed[_0xd23585(0x10e)]?this[_0xd23585(0x145)]():_0x13d9a9[_0xd23585(0x129)]();}),_0x14c4ed;}[_0x1cca25(0x113)](){const _0x9ead4d=_0x1cca25,_0x1295b3=this[_0x9ead4d(0x11f)][_0x9ead4d(0xee)][_0x9ead4d(0xfe)](_0x21828f);this[_0x9ead4d(0xe3)]=new _0x406ca2(this[_0x9ead4d(0x11f)][_0x9ead4d(0xc0)],this[_0x9ead4d(0x131)],this[_0x9ead4d(0x11f)][_0x9ead4d(0x102)][_0x9ead4d(0xfe)](_0x9ead4d(0x14e))),this[_0x9ead4d(0xe3)]['on'](_0x9ead4d(0x146),()=>{const _0x1ff8a7=_0x9ead4d;this[_0x1ff8a7(0x164)][_0x1ff8a7(0x139)][_0x1ff8a7(0x15e)]||this[_0x1ff8a7(0x164)][_0x1ff8a7(0x139)][_0x1ff8a7(0x12b)]();}),this[_0x9ead4d(0xe3)][_0x9ead4d(0x148)][_0x9ead4d(0xd1)][_0x9ead4d(0x168)]['on'](_0x9ead4d(0x124),()=>{const _0x1bad00=_0x9ead4d;this[_0x1bad00(0x164)][_0x1bad00(0x139)][_0x1bad00(0x15e)]||this[_0x1bad00(0x164)][_0x1bad00(0x139)][_0x1bad00(0x12b)]();}),this[_0x9ead4d(0x132)](this[_0x9ead4d(0xe3)],_0x9ead4d(0x13b),()=>{const _0x348b46=_0x9ead4d;_0x1295b3[_0x348b46(0xe6)](this[_0x348b46(0x10f)][_0x348b46(0x151)]),this[_0x348b46(0x145)]();}),this[_0x9ead4d(0x132)](this[_0x9ead4d(0xe3)],_0x9ead4d(0xe7),()=>{const _0x30266a=_0x9ead4d;_0x1295b3[_0x30266a(0xe7)](this[_0x30266a(0x10f)][_0x30266a(0x151)]),this[_0x30266a(0x145)]();}),this[_0x9ead4d(0x10b)]();}[_0x1cca25(0x10b)](){const _0x1138c8=_0x1cca25,{locale:_0xf5d8f4,ui:{ariaLiveAnnouncer:_0x414520}}=this[_0x1138c8(0x11f)];this[_0x1138c8(0xe3)][_0x1138c8(0x157)]['on'](_0x1138c8(0xd5),(_0xb1a9ba,_0x586ae5,_0x2e7349)=>{const _0x1bde44=_0x1138c8,_0x4251ac=this[_0x1bde44(0x10f)][_0x1bde44(0x151)];_0x2e7349?_0x414520[_0x1bde44(0x128)](_0x19c2a6(_0xf5d8f4,_0x1bde44(0x14b))):_0x4251ac&&_0x414520[_0x1bde44(0x128)](_0x19c2a6(_0xf5d8f4,_0x1bde44(0x149),_0x4251ac),{'politeness':_0x1bde44(0x141),'isUnsafeHTML':!0x0});}),this[_0x1138c8(0xe3)]['on'](_0x1138c8(0x130),(_0x24bfd1,_0x17fc7c,_0x474437)=>{const _0x430e1c=_0x1138c8;if(_0x474437){const _0x30347c=this[_0x430e1c(0xe3)][_0x430e1c(0xda)][_0x430e1c(0x140)];_0x414520[_0x430e1c(0x128)](_0x19c2a6(_0xf5d8f4,_0x430e1c(0xcd),_0x30347c));}});}[_0x1cca25(0x13e)](_0x1bbec3){const _0x5b4efa=_0x1cca25,_0x464df1=this[_0x5b4efa(0x154)][_0x5b4efa(0xfe)](_0x1bbec3),_0xca0763=this[_0x5b4efa(0x11f)],_0x372788=_0xca0763[_0x5b4efa(0xff)][_0x5b4efa(0xd4)][_0x5b4efa(0x144)],_0x282a77=_0xca0763[_0x5b4efa(0x11e)][_0x5b4efa(0xfe)](_0x5b4efa(0x15a)),_0x11be7e=_0xca0763[_0x5b4efa(0xee)][_0x5b4efa(0xfe)](_0x21828f),_0x4ab2e4=''+(_0x464df1[_0x5b4efa(0xc7)]!==_0x87c976?_0x464df1[_0x5b4efa(0xca)]+':\x20':'')+_0x464df1[_0x5b4efa(0x156)];if(!0x1!==_0x464df1[_0x5b4efa(0x118)]&&_0x372788[_0x5b4efa(0x14d)]){const _0x530683=_0x41c662(_0x372788[_0x5b4efa(0x16b)]())||_0xca0763[_0x5b4efa(0xff)][_0x5b4efa(0x100)][_0x5b4efa(0x167)](_0x372788);_0xca0763[_0x5b4efa(0xff)][_0x5b4efa(0x121)](_0x1d9b9d=>{const _0x466528=_0x5b4efa;_0x1d9b9d[_0x466528(0x125)](_0x530683,'in');});}_0x11be7e[_0x5b4efa(0x165)](),_0x282a77[_0x5b4efa(0x129)](_0x464df1[_0x5b4efa(0xd8)],_0x4ab2e4,_0x5b4efa(0x10a)+_0x1bbec3);}[_0x1cca25(0x137)](_0x4c9e20,_0x19f314,_0x5a2059,_0x440207){const _0x51f61c=_0x1cca25,_0x10f947=this[_0x51f61c(0x11f)],_0x31ba21=_0x10f947[_0x51f61c(0xc0)],_0x49d5eb=new _0x1e3d0c(_0x31ba21),_0x55e1ea=B(_0x10f947,_0x5a2059)[_0x51f61c(0xe1)](_0x10b5a4=>_0x10b5a4[_0x51f61c(0x11e)][_0x51f61c(0x153)]);0x1===_0x55e1ea[_0x51f61c(0x153)]?this[_0x51f61c(0xc6)]({'command':_0x4c9e20,'commands':_0x55e1ea[0x0][_0x51f61c(0x11e)],'parentMenuView':_0x19f314,'onExecute':_0x440207})[_0x51f61c(0xd0)](_0xf40f21=>_0x49d5eb[_0x51f61c(0x115)][_0x51f61c(0x116)](_0xf40f21)):_0x55e1ea[_0x51f61c(0xd0)](({groupId:_0x3e4f3d,groupLabel:_0x54aecb,commands:_0x129b20})=>{const _0x5f2de2=_0x51f61c,_0x117d54=new _0x32d0b8(_0x31ba21,_0x19f314),_0xf08e74=new _0x2172e8(_0x31ba21),_0xd6d4cf=new _0x1e3d0c(_0x31ba21),_0x22dd45=this[_0x5f2de2(0xc6)]({'command':_0x4c9e20,'commands':_0x129b20,'parentMenuView':_0xf08e74,'onExecute':_0x440207});_0xf08e74[_0x5f2de2(0x111)][_0x5f2de2(0xc4)]({'label':_0x54aecb||_0x3e4f3d}),_0xf08e74[_0x5f2de2(0xf7)](_0x5f2de2(0x129))['to'](_0x19f314),_0xd6d4cf[_0x5f2de2(0x115)][_0x5f2de2(0x163)](_0x22dd45),_0xf08e74[_0x5f2de2(0x109)][_0x5f2de2(0x13f)][_0x5f2de2(0x116)](_0xd6d4cf),_0x117d54[_0x5f2de2(0x13f)][_0x5f2de2(0x116)](_0xf08e74),_0x49d5eb[_0x5f2de2(0x115)][_0x5f2de2(0x116)](_0x117d54);}),_0x19f314[_0x51f61c(0x109)][_0x51f61c(0x13f)][_0x51f61c(0x116)](_0x49d5eb);}[_0x1cca25(0xc6)]({command:_0xbbcce6,commands:_0x56f2a5,parentMenuView:_0x55dfce,onExecute:_0x3b8b10}){const _0x4e7aa9=_0x1cca25,_0x5e318c=this[_0x4e7aa9(0x11f)],_0x111dac=_0x5e318c[_0x4e7aa9(0xc0)];return B(_0x5e318c,_0x56f2a5)[_0x4e7aa9(0x122)](_0x4418ff=>{const _0x1b811e=_0x4e7aa9,_0x55125d=new _0x32d0b8(_0x111dac,_0x55dfce),_0x312afd=new _0x4da10a(_0x111dac);return _0x312afd[_0x1b811e(0xc4)]({'label':_0x4418ff[_0x1b811e(0x156)]}),_0x312afd[_0x1b811e(0xf7)](_0x1b811e(0x129))['to'](_0x55dfce),_0x312afd['on'](_0x1b811e(0x129),()=>_0x3b8b10(_0x4418ff['id'])),_0x312afd[_0x1b811e(0x117)](_0x1b811e(0x159))['to'](_0xbbcce6,_0x1b811e(0xcc),_0x2c978c=>_0x2c978c[_0x1b811e(0x135)](_0x4418ff['id'])),_0x55125d[_0x1b811e(0x13f)][_0x1b811e(0x116)](_0x312afd),_0x55125d;});}}function _0x1f7a(_0x32fb49,_0x196577){const _0x5d9ac8=_0x5d9a();return _0x1f7a=function(_0x1f7ada,_0x16bc21){_0x1f7ada=_0x1f7ada-0xba;let _0x27b26d=_0x5d9ac8[_0x1f7ada];return _0x27b26d;},_0x1f7a(_0x32fb49,_0x196577);}function _(_0x56a3bd,_0x4dd29e){const _0x384abf=_0x1cca25;return void 0x0!==_0x56a3bd[_0x384abf(0xde)]&&void 0x0===_0x4dd29e[_0x384abf(0xde)]?0x1:void 0x0===_0x56a3bd[_0x384abf(0xde)]&&void 0x0!==_0x4dd29e[_0x384abf(0xde)]?-0x1:void 0x0!==_0x56a3bd[_0x384abf(0xde)]&&void 0x0!==_0x4dd29e[_0x384abf(0xde)]?_0x56a3bd[_0x384abf(0xde)]-_0x4dd29e[_0x384abf(0xde)]:0x0;}function B(_0x223e15,_0x1718a2){const _0x3c89e3=_0x1cca25;_0x1718a2[_0x3c89e3(0x14f)](_);const _0x125b1c={},_0x44efbb=[];for(const _0x3db9b7 of _0x1718a2)if(void 0x0!==_0x3db9b7[_0x3c89e3(0xde)]){if(_0x3db9b7[_0x3c89e3(0xde)]in _0x125b1c)throw new _0x252d75(_0x3c89e3(0xcf),_0x223e15,{'conflictingDefinitions':[_0x3db9b7,_0x125b1c[_0x3db9b7[_0x3c89e3(0xde)]]]});_0x125b1c[_0x3db9b7[_0x3c89e3(0xde)]]=_0x3db9b7,_0x44efbb[_0x3c89e3(0xfc)](_0x3db9b7[_0x3c89e3(0xde)],0x0,_0x3db9b7);}else _0x44efbb[_0x3c89e3(0xdb)](_0x3db9b7);return _0x44efbb;}
23
+ const _0xe3a56c=_0x2eb3;function _0x2eb3(_0x27f1ee,_0x29364d){const _0x10915e=_0x1091();return _0x2eb3=function(_0x2eb351,_0x24715f){_0x2eb351=_0x2eb351-0x156;let _0x1b6738=_0x10915e[_0x2eb351];return _0x1b6738;},_0x2eb3(_0x27f1ee,_0x29364d);}(function(_0x5b1e9c,_0x42d23c){const _0x682e1a=_0x2eb3,_0x5ab26a=_0x5b1e9c();while(!![]){try{const _0x38a877=parseInt(_0x682e1a(0x1ca))/0x1+parseInt(_0x682e1a(0x1da))/0x2*(parseInt(_0x682e1a(0x1f2))/0x3)+parseInt(_0x682e1a(0x157))/0x4*(-parseInt(_0x682e1a(0x174))/0x5)+-parseInt(_0x682e1a(0x165))/0x6+-parseInt(_0x682e1a(0x206))/0x7*(-parseInt(_0x682e1a(0x1d5))/0x8)+-parseInt(_0x682e1a(0x1b9))/0x9+parseInt(_0x682e1a(0x182))/0xa*(parseInt(_0x682e1a(0x167))/0xb);if(_0x38a877===_0x42d23c)break;else _0x5ab26a['push'](_0x5ab26a['shift']());}catch(_0x5493fa){_0x5ab26a['push'](_0x5ab26a['shift']());}}}(_0x1091,0xeda5d));import{Plugin as _0x467449}from'ckeditor5/src/core.js';import{first as _0x381819,CKEditorError as _0x20f005}from'ckeditor5/src/utils.js';import{createDropdown as _0xcaedfe,addMenuToDropdown as _0x248167,ButtonView as _0x5e0ace,MenuBarMenuListItemButtonView as _0x5cfac3,Dialog as _0x507a3f,DialogViewPosition as _0x4fa6ec,MenuBarMenuView as _0x1d957c,MenuBarMenuListView as _0x392d76,MenuBarMenuListItemView as _0x1c26fd}from'ckeditor5/src/ui.js';import{icons as _0x1d659f}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x1091(){const _0x58bd8d=['_initView','aiLicenseKeyUsageLimit','reset','INSERT','aiLicenseKeyNotAllowed','items','4866561ofqnFF','command:','change:isError','listenTo','splice','1275388CfAHBq','<p>','currentContext','requiresContent','_aiAdapter','getSelectedBlocks','includes','groupLabel','_aiAssistantController','change:isProcessing','AIAssistantUI','announce','custom','usageLimit','10639854cfpndY','aiLicenseKeyValid','55FfpgtZ','queryView','menuitemcheckbox','insertContentBelow','_showLicenseError','aiLicenseKeyExpired','ai.aiAssistant.disabledElements','filter','model','isCollapsed','getSelectedElement','REPLACE','ai.aiAssistant.contentAreaCssClass','15GfbVnG','contentArea','expired','Error\x20during\x20AI\x20content\x20generation:\x20%0','add','menuPanelClass','editing','getLimitElement','aiLicenseKeyTrialLimit','aiLicenseKeyDomainLimit','_commandDefinitions','Generated\x20content:\x20%0','wasMoved','tableOfContents','3938890qyPuYb','requires','body','EDITOR_TOP_SIDE','showUI','label','set','define','AI\x20Assistant','copy','editor','aiCommands','ck-ai-commands-dropdown\x20','isPremiumPlugin','showAIAssistant','get','enabledCommandsIds','from','source','buttonView','values','aiAssistant','fieldView','replaceContent','\x20ck-ai-assistant-ui_theme','hideFakeVisualSelection','locale','render','updateView','change','replace','robotPencil','config','text','panelView','isFlat','aiLicenseKeyEvaluationLimit','promptView','groupId','forEach','_initAriaAiStatusChangeAnnouncements','map','children','polite','getRanges','selection','push','showFakeVisualSelection','fire','delegate','AI\x20Commands','trialLimit','text/html','prompt','_licenseKeyCheckInterval','10473957uJQuGZ','updatePosition','_forceMarkersCopy','DataTransfer','invalid','isEnabled','schema','</p>','textAdapter','AI\x20is\x20writing','_dialog','rawHtml','show','addMany','bind','destroy','ck-ai-assistant-button\x20','1640914SEhcuk','domainLimit','_populateMenuBarMenu','menuView','comment','insertContent','componentFactory','execute','aiLicenseKeyInvalid','hide','change:enabledCommandsIds','8myvEJQ','_createAIAssistantUIButton','featureNotAllowed','hideUI','AIAssistant','694WjcfWy','_uiCssClasses','change:value','buttons','_onExecute','order','pluginName','focus','media','setSelection','length','once','isOn','ck-ai-assistant-ui','view','trim','plugins','_getMenuBarGroupButtons','errorView','commands','licenseKey','aiLicenseKeyDevelopmentLimit','evaluationLimit','document','4854McNPkN','_getResolvedCommandsDefinitions','_formView','init','menuBar:aiAssistant','ai.useTheme','ai.aiAssistant.commands','sort','update','developmentLimit','isOfficialPlugin','ai-commands-config-order-collision','getData','menuBar:aiCommands'];_0x1091=function(){return _0x58bd8d;};return _0x1091();}import{normalizeCommandsConfig as _0x3fde61,UNGROUPED_COMMANDS_GROUP_ID as _0x548ffb}from'./utils/normalizecommandsconfig.js';import _0x78cc21 from'./aiassistantediting.js';import _0x4736bf from'./adapters/aiadapter.js';import{getTranslation as _0x24e529}from'./utils/common-translations.js';import _0x446207 from'./ui/showaiassistantcommand.js';import _0x1fdadd from'./ui/aiassistantcontroller.js';import _0x103253 from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x4a7e66}from'./ui/form/aiformtoolbarview.js';import _0x27f4bf from'../theme/icons/magic-wand.svg';import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';const j=globalThis[_0xe3a56c(0x1bc)];import{ClipboardMarkersUtils as _0x5d4ca4}from'ckeditor5/src/clipboard.js';import{DomEventData as _0x67ce1,DataTransfer as _0x25352a}from'ckeditor5/src/engine.js';export default class n extends _0x467449{static get[_0xe3a56c(0x1e0)](){const _0x5d3e5f=_0xe3a56c;return _0x5d3e5f(0x161);}static get[_0xe3a56c(0x1fc)](){return!0x0;}static get[_0xe3a56c(0x18f)](){return!0x0;}static get[_0xe3a56c(0x183)](){return[_0x5d4ca4,_0x78cc21,_0x4736bf,_0x507a3f];}constructor(_0x75422f){const _0x5b2b14=_0xe3a56c;super(_0x75422f),this[_0x5b2b14(0x1db)]='',_0x75422f[_0x5b2b14(0x1a2)][_0x5b2b14(0x189)](_0x5b2b14(0x16d),[_0x5b2b14(0x1e2),_0x5b2b14(0x1c4),_0x5b2b14(0x181)]),_0x75422f[_0x5b2b14(0x1a2)][_0x5b2b14(0x189)](_0x5b2b14(0x173),''),_0x75422f[_0x5b2b14(0x1a2)][_0x5b2b14(0x189)](_0x5b2b14(0x1f7),!0x0),this[_0x5b2b14(0x1db)]=_0x5b2b14(0x1e7)+(_0x75422f[_0x5b2b14(0x1a2)][_0x5b2b14(0x191)](_0x5b2b14(0x1f7))?_0x5b2b14(0x19a):'');}[_0xe3a56c(0x1f5)](){const _0x3dbec1=_0xe3a56c,{editor:_0xf69289}=this;this[_0x3dbec1(0x15b)]=_0xf69289[_0x3dbec1(0x1ea)][_0x3dbec1(0x191)](_0x4736bf),this[_0x3dbec1(0x1c3)]=_0xf69289[_0x3dbec1(0x1ea)][_0x3dbec1(0x191)](_0x507a3f),this[_0x3dbec1(0x1f4)]=null,this[_0x3dbec1(0x17e)]=this[_0x3dbec1(0x1f3)]();const _0x42b83d=new _0x446207(_0xf69289,Array[_0x3dbec1(0x193)](this[_0x3dbec1(0x17e)][_0x3dbec1(0x196)]()));_0xf69289[_0x3dbec1(0x1ed)][_0x3dbec1(0x178)](_0x3dbec1(0x190),_0x42b83d),_0xf69289['ui'][_0x3dbec1(0x1d0)][_0x3dbec1(0x178)](_0x3dbec1(0x18d),_0x2f0f27=>{const _0x554889=_0x3dbec1,_0x3e53ab=_0xcaedfe(_0x2f0f27);return _0x3e53ab[_0x554889(0x188)]({'class':_0x554889(0x18e)+this[_0x554889(0x1db)]}),_0x3e53ab[_0x554889(0x195)][_0x554889(0x188)]({'label':_0x24e529(_0x2f0f27,_0x554889(0x1b4)),'icon':_0x27f4bf,'tooltip':!0x0}),_0x3e53ab['on'](_0x554889(0x1d1),_0x4036b3=>this[_0x554889(0x1de)](_0x4036b3[_0x554889(0x194)]['id'])),_0x248167(_0x3e53ab,_0xf69289['ui'][_0x554889(0x1e8)][_0x554889(0x184)],function(_0x29fb81){const _0x1aaa00=_0x554889,_0x322dd8=_0x3fde61(_0x29fb81[_0x1aaa00(0x1a2)][_0x1aaa00(0x191)](_0x1aaa00(0x1f8)),_0x29fb81[_0x1aaa00(0x19c)]),_0x58e6dd=B(_0x29fb81,_0x322dd8)[_0x1aaa00(0x16e)](_0x12ff32=>_0x12ff32[_0x1aaa00(0x1ed)][_0x1aaa00(0x1e4)]);if(0x1===_0x58e6dd[_0x1aaa00(0x1e4)])return B(_0x29fb81,_0x58e6dd[0x0][_0x1aaa00(0x1ed)])[_0x1aaa00(0x1ab)](_0x319db9=>({'id':_0x319db9['id'],'label':_0x319db9[_0x1aaa00(0x187)]}));return _0x58e6dd[_0x1aaa00(0x1ab)](_0x4fc08a=>{const _0x4b613f=_0x1aaa00,{groupId:_0x37e57a,groupLabel:_0x223dd6,commands:_0x45c37d}=_0x4fc08a,_0x240ad1=B(_0x29fb81,_0x45c37d)[_0x4b613f(0x1ab)](_0x3d4c24=>({'id':_0x3d4c24['id'],'label':_0x3d4c24[_0x4b613f(0x187)]}));return{'id':_0x37e57a,'menu':_0x223dd6||_0x37e57a,'children':_0x240ad1};});}(_0xf69289),{'ariaLabel':_0x24e529(_0x2f0f27,_0x554889(0x1b4))}),_0x3e53ab[_0x554889(0x1cd)][_0x554889(0x179)]=_0x554889(0x18e)+this[_0x554889(0x1db)],_0x42b83d['on'](_0x554889(0x1d4),_0x14eb86),_0x3e53ab[_0x554889(0x1cd)][_0x554889(0x1e5)](_0x554889(0x19d),_0x14eb86),_0x3e53ab;function _0x14eb86(){const _0x5d2151=_0x554889;_0x3e53ab[_0x5d2151(0x1be)]=_0x42b83d[_0x5d2151(0x192)][_0x5d2151(0x1e4)]>0x0;for(const _0x5b1f2b of _0x3e53ab[_0x5d2151(0x1cd)][_0x5d2151(0x1dd)])_0x5b1f2b[_0x5d2151(0x1be)]=_0x42b83d[_0x5d2151(0x192)][_0x5d2151(0x15d)](_0x5b1f2b['id']);}}),_0xf69289['ui'][_0x3dbec1(0x1d0)][_0x3dbec1(0x178)](_0x3dbec1(0x1ff),_0x4846d9=>{const _0x3914ad=_0x3dbec1,_0x920691=new _0x1d957c(_0x4846d9);_0x920691[_0x3914ad(0x195)][_0x3914ad(0x188)]({'label':_0x24e529(_0x4846d9,_0x3914ad(0x1b4)),'icon':_0x27f4bf}),_0x920691[_0x3914ad(0x1c7)](_0x3914ad(0x1be))['to'](_0x42b83d,_0x3914ad(0x192),_0x1cd0af=>_0x1cd0af[_0x3914ad(0x1e4)]>0x0);const _0x3f6fb2=_0x3fde61(_0xf69289[_0x3914ad(0x1a2)][_0x3914ad(0x191)](_0x3914ad(0x1f8)),_0x4846d9);return this[_0x3914ad(0x1cc)](_0x42b83d,_0x920691,_0x3f6fb2,_0x3da8f4=>this[_0x3914ad(0x1de)](_0x3da8f4)),_0x920691;}),_0xf69289['ui'][_0x3dbec1(0x1d0)][_0x3dbec1(0x178)](_0x3dbec1(0x197),()=>{const _0x3713fd=_0x3dbec1,_0x46ce7e=this[_0x3713fd(0x1d6)](_0x5e0ace);return _0x46ce7e[_0x3713fd(0x188)]({'tooltip':!0x0,'class':_0x3713fd(0x1c9)+this[_0x3713fd(0x1db)]}),_0x46ce7e;}),_0xf69289['ui'][_0x3dbec1(0x1d0)][_0x3dbec1(0x178)](_0x3dbec1(0x1f6),()=>{const _0x20f203=_0x3dbec1,_0x3705f0=this[_0x20f203(0x1d6)](_0x5cfac3);return _0x3705f0[_0x20f203(0x188)]({'role':_0x20f203(0x169)}),_0x3705f0;}),this[_0x3dbec1(0x1ee)]=this[_0x3dbec1(0x18c)][_0x3dbec1(0x1a2)][_0x3dbec1(0x191)](_0x3dbec1(0x1ee));const _0x3bed12=this[_0x3dbec1(0x18c)];this[_0x3dbec1(0x1b8)]=setInterval(()=>{const _0x4713d1=_0x3dbec1;let _0xd6f7c3;for(const _0x2a6135 in _0x3bed12){const _0x21f81c=_0x2a6135,_0x4002cf=_0x3bed12[_0x21f81c];if(_0x4713d1(0x166)==_0x4002cf||_0x4713d1(0x1d2)==_0x4002cf||_0x4713d1(0x16c)==_0x4002cf||_0x4713d1(0x17d)==_0x4002cf||_0x4713d1(0x204)==_0x4002cf||_0x4713d1(0x1a6)==_0x4002cf||_0x4713d1(0x17c)==_0x4002cf||_0x4713d1(0x1ef)==_0x4002cf||_0x4713d1(0x201)==_0x4002cf){delete _0x3bed12[_0x21f81c],_0xd6f7c3=_0x4002cf,clearInterval(this[_0x4713d1(0x1b8)]),this[_0x4713d1(0x1b8)]=void 0x0;break;}}_0x4713d1(0x1d2)==_0xd6f7c3&&_0x3bed12[_0x4713d1(0x16b)](_0x4713d1(0x1bd)),_0x4713d1(0x16c)==_0xd6f7c3&&_0x3bed12[_0x4713d1(0x16b)](_0x4713d1(0x176)),_0x4713d1(0x17d)==_0xd6f7c3&&_0x3bed12[_0x4713d1(0x16b)](_0x4713d1(0x1cb)),_0x4713d1(0x204)==_0xd6f7c3&&_0x3bed12[_0x4713d1(0x16b)](_0x4713d1(0x1d7),_0x4713d1(0x1d9)),_0x4713d1(0x1a6)==_0xd6f7c3&&_0x3bed12[_0x4713d1(0x16b)](_0x4713d1(0x1f0)),_0x4713d1(0x17c)==_0xd6f7c3&&_0x3bed12[_0x4713d1(0x16b)](_0x4713d1(0x1b5)),_0x4713d1(0x1ef)==_0xd6f7c3&&_0x3bed12[_0x4713d1(0x16b)](_0x4713d1(0x1fb)),_0x4713d1(0x201)==_0xd6f7c3&&_0x3bed12[_0x4713d1(0x16b)](_0x4713d1(0x164));},0x3e8);}[_0xe3a56c(0x1c8)](){const _0x390ca7=_0xe3a56c;super[_0x390ca7(0x1c8)](),this[_0x390ca7(0x1b8)]&&clearInterval(this[_0x390ca7(0x1b8)]);}[_0xe3a56c(0x186)](_0x381a03='',_0x429e6b='',_0x448667=_0xe3a56c(0x163)){const _0x299974=_0xe3a56c,_0x2de39e=this[_0x299974(0x18c)],_0x3ba872=_0x2de39e[_0x299974(0x17a)][_0x299974(0x1e8)],_0x520746=_0x2de39e[_0x299974(0x1ea)][_0x299974(0x191)](_0x78cc21),_0x26ae53=_0x2de39e[_0x299974(0x1ea)][_0x299974(0x191)](_0x5d4ca4);_0x520746[_0x299974(0x1b1)]();const _0x1dc7bf=new j(),_0x3ec130=new ClipboardEvent(_0x299974(0x18b),{'clipboardData':_0x1dc7bf}),_0x1c6ebe=new _0x25352a(_0x1dc7bf),_0x461b08=new _0x67ce1(_0x3ba872,_0x3ec130,{'dataTransfer':_0x1c6ebe});_0x26ae53[_0x299974(0x1bb)](_0x299974(0x1ce),()=>{const _0x208ade=_0x299974;_0x3ba872[_0x208ade(0x1f1)][_0x208ade(0x1b2)](_0x208ade(0x18b),_0x461b08);}),this[_0x299974(0x1f4)]||(this[_0x299974(0x200)](),this[_0x299974(0x15f)]=new _0x1fdadd(_0x2de39e,this[_0x299974(0x15b)][_0x299974(0x1c1)],this[_0x299974(0x1f4)]));let _0xbb9cc8=_0x1c6ebe[_0x299974(0x1fe)](_0x299974(0x1b6));const _0x35a7ed=_0x2de39e[_0x299974(0x16f)][_0x299974(0x1f1)][_0x299974(0x1af)],_0x2d29d9=Array[_0x299974(0x193)](_0x35a7ed[_0x299974(0x1ae)]());0x1===_0x2d29d9[_0x299974(0x1e4)]&&_0x2d29d9[0x0][_0x299974(0x1a5)]&&!_0x35a7ed[_0x299974(0x171)]()&&''!==_0xbb9cc8[_0x299974(0x1a0)](/&nbsp;/g,'')[_0x299974(0x1e9)]()&&(_0xbb9cc8=_0x299974(0x158)+_0xbb9cc8+_0x299974(0x1c0)),this[_0x299974(0x15f)][_0x299974(0x19e)]({'actionId':_0x448667,'query':_0x381a03,'htmlContent':_0xbb9cc8,'label':_0x429e6b,'mainActionLabel':_0x4a7e66[_0x2de39e[_0x299974(0x16f)][_0x299974(0x1f1)][_0x299974(0x1af)][_0x299974(0x170)]?_0x299974(0x203):_0x299974(0x172)]}),_0x299974(0x197)!==this[_0x299974(0x1c3)]['id']?this[_0x299974(0x1c3)][_0x299974(0x1c5)]({'id':_0x299974(0x197),'icon':_0x1d659f[_0x299974(0x1a1)],'title':_0x24e529(this[_0x299974(0x18c)][_0x299974(0x19c)],_0x299974(0x18a)),'content':this[_0x299974(0x1f4)],'position':_0x4fa6ec[_0x299974(0x185)],'onShow':()=>{const _0x31e53e=_0x299974;this[_0x31e53e(0x1f4)][_0x31e53e(0x1e1)]();},'onHide':()=>{const _0x2b6687=_0x299974;this[_0x2b6687(0x15f)][_0x2b6687(0x202)](),_0x520746[_0x2b6687(0x19b)]();}}):this[_0x299974(0x1c3)][_0x299974(0x1e8)][_0x299974(0x180)]||this[_0x299974(0x1c3)][_0x299974(0x1e8)][_0x299974(0x1ba)]();}[_0xe3a56c(0x1d8)](){const _0x2ecfe7=_0xe3a56c;this[_0x2ecfe7(0x1c3)][_0x2ecfe7(0x1d3)]();}[_0xe3a56c(0x1f3)](){const _0x5af1eb=_0xe3a56c,_0x5ece88=new Map(),_0xf7525b=_0x3fde61(this[_0x5af1eb(0x18c)][_0x5af1eb(0x1a2)][_0x5af1eb(0x191)](_0x5af1eb(0x1f8)),this[_0x5af1eb(0x18c)][_0x5af1eb(0x19c)]);for(const _0x5cbfcc of _0xf7525b)for(const _0x43c20c of _0x5cbfcc[_0x5af1eb(0x1ed)])_0x5ece88[_0x5af1eb(0x188)](_0x43c20c['id'],{..._0x43c20c,'groupId':_0x5cbfcc[_0x5af1eb(0x1a8)],'groupLabel':_0x5cbfcc[_0x5af1eb(0x15e)]||_0x5cbfcc[_0x5af1eb(0x1a8)]});return _0x5ece88;}[_0xe3a56c(0x1d6)](_0x2a3162){const _0x424f5a=_0xe3a56c,_0x2681a2=this[_0x424f5a(0x18c)],_0x1e8259=_0x2681a2[_0x424f5a(0x1ed)][_0x424f5a(0x191)](_0x424f5a(0x190)),_0x2d9105=new _0x2a3162(_0x2681a2[_0x424f5a(0x19c)]);return _0x2d9105[_0x424f5a(0x188)]({'label':_0x24e529(_0x2681a2[_0x424f5a(0x19c)],_0x424f5a(0x18a)),'icon':_0x1d659f[_0x424f5a(0x1a1)],'isToggleable':!0x0}),_0x2d9105[_0x424f5a(0x1c7)](_0x424f5a(0x1be))['to'](_0x1e8259),_0x2d9105[_0x424f5a(0x1c7)](_0x424f5a(0x1e6))['to'](this[_0x424f5a(0x1c3)],'id',_0x23c9c6=>_0x424f5a(0x197)===_0x23c9c6),this[_0x424f5a(0x209)](_0x2d9105,_0x424f5a(0x1d1),()=>{const _0x10d38f=_0x424f5a;_0x2d9105[_0x10d38f(0x1e6)]?this[_0x10d38f(0x1d8)]():_0x1e8259[_0x10d38f(0x1d1)]();}),_0x2d9105;}[_0xe3a56c(0x200)](){const _0x57426b=_0xe3a56c,_0x579f81=this[_0x57426b(0x18c)][_0x57426b(0x1ea)][_0x57426b(0x191)](_0x78cc21);this[_0x57426b(0x1f4)]=new _0x103253(this[_0x57426b(0x18c)][_0x57426b(0x19c)],this[_0x57426b(0x1db)],this[_0x57426b(0x18c)][_0x57426b(0x1a2)][_0x57426b(0x191)](_0x57426b(0x173))),this[_0x57426b(0x1f4)]['on'](_0x57426b(0x1dc),()=>{const _0x496552=_0x57426b;this[_0x496552(0x1c3)][_0x496552(0x1e8)][_0x496552(0x180)]||this[_0x496552(0x1c3)][_0x496552(0x1e8)][_0x496552(0x1ba)]();}),this[_0x57426b(0x1f4)][_0x57426b(0x1a7)][_0x57426b(0x168)][_0x57426b(0x198)]['on'](_0x57426b(0x1fa),()=>{const _0x17b50d=_0x57426b;this[_0x17b50d(0x1c3)][_0x17b50d(0x1e8)][_0x17b50d(0x180)]||this[_0x17b50d(0x1c3)][_0x17b50d(0x1e8)][_0x17b50d(0x1ba)]();}),this[_0x57426b(0x209)](this[_0x57426b(0x1f4)],_0x57426b(0x199),()=>{const _0x111979=_0x57426b;_0x579f81[_0x111979(0x1cf)](this[_0x111979(0x15f)][_0x111979(0x159)]),this[_0x111979(0x1d8)]();}),this[_0x57426b(0x209)](this[_0x57426b(0x1f4)],_0x57426b(0x16a),()=>{const _0x2b2693=_0x57426b;_0x579f81[_0x2b2693(0x16a)](this[_0x2b2693(0x15f)][_0x2b2693(0x159)]),this[_0x2b2693(0x1d8)]();}),this[_0x57426b(0x1aa)]();}[_0xe3a56c(0x1aa)](){const _0x38512d=_0xe3a56c,{locale:_0x159eb9,ui:{ariaLiveAnnouncer:_0x2aa3b1}}=this[_0x38512d(0x18c)];this[_0x38512d(0x1f4)][_0x38512d(0x175)]['on'](_0x38512d(0x160),(_0x3ea1b6,_0x55a499,_0x5c8869)=>{const _0x46663f=_0x38512d,_0x4ea61b=this[_0x46663f(0x15f)][_0x46663f(0x159)];_0x5c8869?_0x2aa3b1[_0x46663f(0x162)](_0x24e529(_0x159eb9,_0x46663f(0x1c2))):_0x4ea61b&&_0x2aa3b1[_0x46663f(0x162)](_0x24e529(_0x159eb9,_0x46663f(0x17f),_0x4ea61b),{'politeness':_0x46663f(0x1ad),'isUnsafeHTML':!0x0});}),this[_0x38512d(0x1f4)]['on'](_0x38512d(0x208),(_0x5f5878,_0x4ee6af,_0x2d866c)=>{const _0x2c9cd3=_0x38512d;if(_0x2d866c){const _0x37de68=this[_0x2c9cd3(0x1f4)][_0x2c9cd3(0x1ec)][_0x2c9cd3(0x1a3)];_0x2aa3b1[_0x2c9cd3(0x162)](_0x24e529(_0x159eb9,_0x2c9cd3(0x177),_0x37de68));}});}[_0xe3a56c(0x1de)](_0xdb7819){const _0x244fca=_0xe3a56c,_0x4aa649=this[_0x244fca(0x17e)][_0x244fca(0x191)](_0xdb7819),_0x58d8fd=this[_0x244fca(0x18c)],_0x1a0b89=_0x58d8fd[_0x244fca(0x16f)][_0x244fca(0x1f1)][_0x244fca(0x1af)],_0x49de26=_0x58d8fd[_0x244fca(0x1ed)][_0x244fca(0x191)](_0x244fca(0x190)),_0x35bf24=_0x58d8fd[_0x244fca(0x1ea)][_0x244fca(0x191)](_0x78cc21),_0x4787e2=''+(_0x4aa649[_0x244fca(0x1a8)]!==_0x548ffb?_0x4aa649[_0x244fca(0x15e)]+':\x20':'')+_0x4aa649[_0x244fca(0x187)];if(!0x1!==_0x4aa649[_0x244fca(0x15a)]&&_0x1a0b89[_0x244fca(0x170)]){const _0x42f7ff=_0x381819(_0x1a0b89[_0x244fca(0x15c)]())||_0x58d8fd[_0x244fca(0x16f)][_0x244fca(0x1bf)][_0x244fca(0x17b)](_0x1a0b89);_0x58d8fd[_0x244fca(0x16f)][_0x244fca(0x19f)](_0x180fc5=>{const _0x5d44af=_0x244fca;_0x180fc5[_0x5d44af(0x1e3)](_0x42f7ff,'in');});}_0x35bf24[_0x244fca(0x1b1)](),_0x49de26[_0x244fca(0x1d1)](_0x4aa649[_0x244fca(0x1b7)],_0x4787e2,_0x244fca(0x207)+_0xdb7819);}[_0xe3a56c(0x1cc)](_0x46a27f,_0x2d0a6d,_0x23b9d5,_0x543732){const _0x229266=_0xe3a56c,_0x143852=this[_0x229266(0x18c)],_0x23db6a=_0x143852[_0x229266(0x19c)],_0xd1f15e=new _0x392d76(_0x23db6a),_0x319677=B(_0x143852,_0x23b9d5)[_0x229266(0x16e)](_0x3c91ec=>_0x3c91ec[_0x229266(0x1ed)][_0x229266(0x1e4)]);0x1===_0x319677[_0x229266(0x1e4)]?this[_0x229266(0x1eb)]({'command':_0x46a27f,'commands':_0x319677[0x0][_0x229266(0x1ed)],'parentMenuView':_0x2d0a6d,'onExecute':_0x543732})[_0x229266(0x1a9)](_0x132446=>_0xd1f15e[_0x229266(0x205)][_0x229266(0x178)](_0x132446)):_0x319677[_0x229266(0x1a9)](({groupId:_0x171960,groupLabel:_0x3f3b4d,commands:_0x20cf8b})=>{const _0x33a9cf=_0x229266,_0x3348f3=new _0x1c26fd(_0x23db6a,_0x2d0a6d),_0x52a188=new _0x1d957c(_0x23db6a),_0x26a8a1=new _0x392d76(_0x23db6a),_0x3f89a5=this[_0x33a9cf(0x1eb)]({'command':_0x46a27f,'commands':_0x20cf8b,'parentMenuView':_0x52a188,'onExecute':_0x543732});_0x52a188[_0x33a9cf(0x195)][_0x33a9cf(0x188)]({'label':_0x3f3b4d||_0x171960}),_0x52a188[_0x33a9cf(0x1b3)](_0x33a9cf(0x1d1))['to'](_0x2d0a6d),_0x26a8a1[_0x33a9cf(0x205)][_0x33a9cf(0x1c6)](_0x3f89a5),_0x52a188[_0x33a9cf(0x1a4)][_0x33a9cf(0x1ac)][_0x33a9cf(0x178)](_0x26a8a1),_0x3348f3[_0x33a9cf(0x1ac)][_0x33a9cf(0x178)](_0x52a188),_0xd1f15e[_0x33a9cf(0x205)][_0x33a9cf(0x178)](_0x3348f3);}),_0x2d0a6d[_0x229266(0x1a4)][_0x229266(0x1ac)][_0x229266(0x178)](_0xd1f15e);}[_0xe3a56c(0x1eb)]({command:_0x5c3d71,commands:_0x270cd6,parentMenuView:_0x49bfe2,onExecute:_0x15e722}){const _0x153c0d=_0xe3a56c,_0x1e7fc3=this[_0x153c0d(0x18c)],_0x505d72=_0x1e7fc3[_0x153c0d(0x19c)];return B(_0x1e7fc3,_0x270cd6)[_0x153c0d(0x1ab)](_0x467b14=>{const _0x4781e8=_0x153c0d,_0x5a53e6=new _0x1c26fd(_0x505d72,_0x49bfe2),_0x451c2d=new _0x5cfac3(_0x505d72);return _0x451c2d[_0x4781e8(0x188)]({'label':_0x467b14[_0x4781e8(0x187)]}),_0x451c2d[_0x4781e8(0x1b3)](_0x4781e8(0x1d1))['to'](_0x49bfe2),_0x451c2d['on'](_0x4781e8(0x1d1),()=>_0x15e722(_0x467b14['id'])),_0x451c2d[_0x4781e8(0x1c7)](_0x4781e8(0x1be))['to'](_0x5c3d71,_0x4781e8(0x192),_0x1cc956=>_0x1cc956[_0x4781e8(0x15d)](_0x467b14['id'])),_0x5a53e6[_0x4781e8(0x1ac)][_0x4781e8(0x178)](_0x451c2d),_0x5a53e6;});}}function _(_0x3fe85b,_0x2c89ce){const _0x56f255=_0xe3a56c;return void 0x0!==_0x3fe85b[_0x56f255(0x1df)]&&void 0x0===_0x2c89ce[_0x56f255(0x1df)]?0x1:void 0x0===_0x3fe85b[_0x56f255(0x1df)]&&void 0x0!==_0x2c89ce[_0x56f255(0x1df)]?-0x1:void 0x0!==_0x3fe85b[_0x56f255(0x1df)]&&void 0x0!==_0x2c89ce[_0x56f255(0x1df)]?_0x3fe85b[_0x56f255(0x1df)]-_0x2c89ce[_0x56f255(0x1df)]:0x0;}function B(_0x3fbf5e,_0x3160b6){const _0x32af49=_0xe3a56c;_0x3160b6[_0x32af49(0x1f9)](_);const _0x599de0={},_0x52dbdc=[];for(const _0x35ce30 of _0x3160b6)if(void 0x0!==_0x35ce30[_0x32af49(0x1df)]){if(_0x35ce30[_0x32af49(0x1df)]in _0x599de0)throw new _0x20f005(_0x32af49(0x1fd),_0x3fbf5e,{'conflictingDefinitions':[_0x35ce30,_0x599de0[_0x35ce30[_0x32af49(0x1df)]]]});_0x599de0[_0x35ce30[_0x32af49(0x1df)]]=_0x35ce30,_0x52dbdc[_0x32af49(0x156)](_0x35ce30[_0x32af49(0x1df)],0x0,_0x35ce30);}else _0x52dbdc[_0x32af49(0x1b0)](_0x35ce30);return _0x52dbdc;}
package/src/aiconfig.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
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
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * @module ai/aiconfig
@@ -1,6 +1,6 @@
1
1
  /**
2
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
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import type AIAssistant from './aiassistant.js';
6
6
  import type ShowAIAssistantCommand from './ui/showaiassistantcommand.js';
package/src/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
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
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  /**
6
6
  * @module ai
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x1cca12,_0x35c58a){var _0x405800=_0x4812,_0x1c81d9=_0x1cca12();while(!![]){try{var _0x4e6dda=-parseInt(_0x405800(0x1b5))/0x1*(parseInt(_0x405800(0x1b0))/0x2)+parseInt(_0x405800(0x1b1))/0x3*(-parseInt(_0x405800(0x1b2))/0x4)+parseInt(_0x405800(0x1b3))/0x5+parseInt(_0x405800(0x1af))/0x6+parseInt(_0x405800(0x1ac))/0x7+parseInt(_0x405800(0x1ae))/0x8+-parseInt(_0x405800(0x1b4))/0x9*(-parseInt(_0x405800(0x1ad))/0xa);if(_0x4e6dda===_0x35c58a)break;else _0x1c81d9['push'](_0x1c81d9['shift']());}catch(_0x284b76){_0x1c81d9['push'](_0x1c81d9['shift']());}}}(_0x56ba,0xdca61));function _0x4812(_0x31b162,_0x3476ef){var _0x56bace=_0x56ba();return _0x4812=function(_0x48128a,_0x1bf8d8){_0x48128a=_0x48128a-0x1ac;var _0x410c82=_0x56bace[_0x48128a];return _0x410c82;},_0x4812(_0x31b162,_0x3476ef);}export{default as AIAssistant}from'./aiassistant.js';export{default as AIAdapter,AIRequestError}from'./adapters/aiadapter.js';function _0x56ba(){var _0x36eae7=['5362336DkZIXj','20EUEWKx','9860600oMcVbG','1124376denkUZ','286430Jlpxji','324eBdvsE','62312PGFHZg','7256225QZzhUS','2359359VIwJip','11ZyjswN'];_0x56ba=function(){return _0x36eae7;};return _0x56ba();}export{default as AITextAdapter}from'./adapters/aitextadapter.js';export{default as OpenAITextAdapter}from'./adapters/openaitextadapter.js';export{default as AWSTextAdapter}from'./adapters/awstextadapter.js';import'./augmentation.js';
23
+ (function(_0x4eef4a,_0x29335b){var _0x3be726=_0xffb8,_0x1a5cd4=_0x4eef4a();while(!![]){try{var _0x22b26b=-parseInt(_0x3be726(0xd8))/0x1+-parseInt(_0x3be726(0xd4))/0x2+-parseInt(_0x3be726(0xd0))/0x3+parseInt(_0x3be726(0xd7))/0x4*(-parseInt(_0x3be726(0xcf))/0x5)+parseInt(_0x3be726(0xd1))/0x6+-parseInt(_0x3be726(0xd6))/0x7*(-parseInt(_0x3be726(0xd2))/0x8)+-parseInt(_0x3be726(0xd3))/0x9*(-parseInt(_0x3be726(0xd5))/0xa);if(_0x22b26b===_0x29335b)break;else _0x1a5cd4['push'](_0x1a5cd4['shift']());}catch(_0x1b21bf){_0x1a5cd4['push'](_0x1a5cd4['shift']());}}}(_0xa485,0xa3736));export{default as AIAssistant}from'./aiassistant.js';export{default as AIAdapter,AIRequestError}from'./adapters/aiadapter.js';export{default as AITextAdapter}from'./adapters/aitextadapter.js';export{default as OpenAITextAdapter}from'./adapters/openaitextadapter.js';function _0xa485(){var _0x4adff1=['65478LlUDqz','12lHfnEW','1271625jstWsV','799495oymvqm','2591667AhcMGe','2306352QfgFER','136IBepky','9jXvVwm','756134ZAdPme','31193620zpTwQJ'];_0xa485=function(){return _0x4adff1;};return _0xa485();}export{default as AWSTextAdapter}from'./adapters/awstextadapter.js';function _0xffb8(_0x242096,_0x3280ac){var _0xa48585=_0xa485();return _0xffb8=function(_0xffb8e2,_0x963560){_0xffb8e2=_0xffb8e2-0xcf;var _0x3a2bd4=_0xa48585[_0xffb8e2];return _0x3a2bd4;},_0xffb8(_0x242096,_0x3280ac);}import'./augmentation.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
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
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  export {};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x507e91,_0x51f99a){var _0x571e30=_0x3137,_0x14793d=_0x507e91();while(!![]){try{var _0x21ddf5=parseInt(_0x571e30(0x1d3))/0x1+parseInt(_0x571e30(0x1d4))/0x2+parseInt(_0x571e30(0x1d5))/0x3+parseInt(_0x571e30(0x1d7))/0x4+-parseInt(_0x571e30(0x1d8))/0x5*(-parseInt(_0x571e30(0x1d9))/0x6)+parseInt(_0x571e30(0x1d2))/0x7+-parseInt(_0x571e30(0x1d6))/0x8;if(_0x21ddf5===_0x51f99a)break;else _0x14793d['push'](_0x14793d['shift']());}catch(_0x596048){_0x14793d['push'](_0x14793d['shift']());}}}(_0x3564,0xd8a6e));function _0x3137(_0x5b472f,_0x144e16){var _0x35640b=_0x3564();return _0x3137=function(_0x3137d8,_0x557c17){_0x3137d8=_0x3137d8-0x1d2;var _0x3578b9=_0x35640b[_0x3137d8];return _0x3578b9;},_0x3137(_0x5b472f,_0x144e16);}import{CKEditorError as _0x5edc3b}from'ckeditor5/src/utils.js';function _0x3564(){var _0x45564c=['2040YEmZxX','7889994zJsfln','712493RTNfff','2852430qKHlHA','5128989RSeSdH','40565344knKwoZ','2737524ZBWhNF','4385liyGaV'];_0x3564=function(){return _0x45564c;};return _0x3564();}
23
+ (function(_0x31a8da,_0x414b74){var _0x41c542=_0x4d22,_0x131552=_0x31a8da();while(!![]){try{var _0xfeac2b=-parseInt(_0x41c542(0x82))/0x1+-parseInt(_0x41c542(0x89))/0x2*(-parseInt(_0x41c542(0x8a))/0x3)+-parseInt(_0x41c542(0x88))/0x4+parseInt(_0x41c542(0x87))/0x5+-parseInt(_0x41c542(0x84))/0x6*(parseInt(_0x41c542(0x83))/0x7)+parseInt(_0x41c542(0x85))/0x8+-parseInt(_0x41c542(0x86))/0x9*(parseInt(_0x41c542(0x81))/0xa);if(_0xfeac2b===_0x414b74)break;else _0x131552['push'](_0x131552['shift']());}catch(_0xcdf60c){_0x131552['push'](_0x131552['shift']());}}}(_0x3c95,0xa696f));function _0x4d22(_0x146c91,_0x587fa8){var _0x3c95c7=_0x3c95();return _0x4d22=function(_0x4d22d4,_0xf4e107){_0x4d22d4=_0x4d22d4-0x81;var _0xa4ec8c=_0x3c95c7[_0x4d22d4];return _0xa4ec8c;},_0x4d22(_0x146c91,_0x587fa8);}function _0x3c95(){var _0x4d1ee4=['84MgEXgC','279042RLOdpr','10473008ysiNZN','12804336pqdScp','5315960wriPcC','3116168ZUlOQe','4yfXSMP','2001291bFueCM','10iyNoCq','264331lViijE'];_0x3c95=function(){return _0x4d1ee4;};return _0x3c95();}import{CKEditorError as _0x1b9c27}from'ckeditor5/src/utils.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
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
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
5
  import type AITextAdapter from '../adapters/aitextadapter.js';
6
6
  import type { default as AIFormView } from './form/aiformview.js';