@ckeditor/ckeditor5-ai 41.3.0 → 41.4.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 (160) hide show
  1. package/README.md +1 -1
  2. package/build/ai.js +6 -6
  3. package/dist/index-content.css +4 -0
  4. package/dist/index-editor.css +267 -0
  5. package/dist/index.css +396 -0
  6. package/dist/index.js +23 -0
  7. package/dist/translations/af.d.ts +8 -0
  8. package/dist/translations/af.js +23 -0
  9. package/dist/translations/ar.d.ts +8 -0
  10. package/dist/translations/ar.js +23 -0
  11. package/dist/translations/bg.d.ts +8 -0
  12. package/dist/translations/bg.js +23 -0
  13. package/dist/translations/bn.d.ts +8 -0
  14. package/dist/translations/bn.js +23 -0
  15. package/dist/translations/bs.d.ts +8 -0
  16. package/dist/translations/bs.js +23 -0
  17. package/dist/translations/ca.d.ts +8 -0
  18. package/dist/translations/ca.js +23 -0
  19. package/dist/translations/cs.d.ts +8 -0
  20. package/dist/translations/cs.js +23 -0
  21. package/dist/translations/da.d.ts +8 -0
  22. package/dist/translations/da.js +23 -0
  23. package/dist/translations/de-ch.d.ts +8 -0
  24. package/dist/translations/de-ch.js +23 -0
  25. package/dist/translations/de.d.ts +8 -0
  26. package/dist/translations/de.js +23 -0
  27. package/dist/translations/el.d.ts +8 -0
  28. package/dist/translations/el.js +23 -0
  29. package/dist/translations/en-au.d.ts +8 -0
  30. package/dist/translations/en-au.js +23 -0
  31. package/dist/translations/en.d.ts +8 -0
  32. package/dist/translations/en.js +23 -0
  33. package/dist/translations/es-co.d.ts +8 -0
  34. package/dist/translations/es-co.js +23 -0
  35. package/dist/translations/es.d.ts +8 -0
  36. package/dist/translations/es.js +23 -0
  37. package/dist/translations/et.d.ts +8 -0
  38. package/dist/translations/et.js +23 -0
  39. package/dist/translations/fa.d.ts +8 -0
  40. package/dist/translations/fa.js +23 -0
  41. package/dist/translations/fi.d.ts +8 -0
  42. package/dist/translations/fi.js +23 -0
  43. package/dist/translations/fr.d.ts +8 -0
  44. package/dist/translations/fr.js +23 -0
  45. package/dist/translations/gl.d.ts +8 -0
  46. package/dist/translations/gl.js +23 -0
  47. package/dist/translations/he.d.ts +8 -0
  48. package/dist/translations/he.js +23 -0
  49. package/dist/translations/hi.d.ts +8 -0
  50. package/dist/translations/hi.js +23 -0
  51. package/dist/translations/hr.d.ts +8 -0
  52. package/dist/translations/hr.js +23 -0
  53. package/dist/translations/hu.d.ts +8 -0
  54. package/dist/translations/hu.js +23 -0
  55. package/dist/translations/id.d.ts +8 -0
  56. package/dist/translations/id.js +23 -0
  57. package/dist/translations/it.d.ts +8 -0
  58. package/dist/translations/it.js +23 -0
  59. package/dist/translations/ja.d.ts +8 -0
  60. package/dist/translations/ja.js +23 -0
  61. package/dist/translations/jv.d.ts +8 -0
  62. package/dist/translations/jv.js +23 -0
  63. package/dist/translations/ko.d.ts +8 -0
  64. package/dist/translations/ko.js +23 -0
  65. package/dist/translations/lt.d.ts +8 -0
  66. package/dist/translations/lt.js +23 -0
  67. package/dist/translations/lv.d.ts +8 -0
  68. package/dist/translations/lv.js +23 -0
  69. package/dist/translations/ms.d.ts +8 -0
  70. package/dist/translations/ms.js +23 -0
  71. package/dist/translations/nl.d.ts +8 -0
  72. package/dist/translations/nl.js +23 -0
  73. package/dist/translations/no.d.ts +8 -0
  74. package/dist/translations/no.js +23 -0
  75. package/dist/translations/pl.d.ts +8 -0
  76. package/dist/translations/pl.js +23 -0
  77. package/dist/translations/pt-br.d.ts +8 -0
  78. package/dist/translations/pt-br.js +23 -0
  79. package/dist/translations/pt.d.ts +8 -0
  80. package/dist/translations/pt.js +23 -0
  81. package/dist/translations/ro.d.ts +8 -0
  82. package/dist/translations/ro.js +23 -0
  83. package/dist/translations/ru.d.ts +8 -0
  84. package/dist/translations/ru.js +23 -0
  85. package/dist/translations/sk.d.ts +8 -0
  86. package/dist/translations/sk.js +23 -0
  87. package/dist/translations/sr-latn.d.ts +8 -0
  88. package/dist/translations/sr-latn.js +23 -0
  89. package/dist/translations/sr.d.ts +8 -0
  90. package/dist/translations/sr.js +23 -0
  91. package/dist/translations/sv.d.ts +8 -0
  92. package/dist/translations/sv.js +23 -0
  93. package/dist/translations/th.d.ts +8 -0
  94. package/dist/translations/th.js +23 -0
  95. package/dist/translations/tk.d.ts +8 -0
  96. package/dist/translations/tk.js +23 -0
  97. package/dist/translations/tr.d.ts +8 -0
  98. package/dist/translations/tr.js +23 -0
  99. package/dist/translations/ug.d.ts +8 -0
  100. package/dist/translations/ug.js +23 -0
  101. package/dist/translations/uk.d.ts +8 -0
  102. package/dist/translations/uk.js +23 -0
  103. package/dist/translations/ur.d.ts +8 -0
  104. package/dist/translations/ur.js +23 -0
  105. package/dist/translations/uz.d.ts +8 -0
  106. package/dist/translations/uz.js +23 -0
  107. package/dist/translations/vi.d.ts +8 -0
  108. package/dist/translations/vi.js +23 -0
  109. package/dist/translations/zh-cn.d.ts +8 -0
  110. package/dist/translations/zh-cn.js +23 -0
  111. package/dist/translations/zh.d.ts +8 -0
  112. package/dist/translations/zh.js +23 -0
  113. package/dist/types/adapters/aiadapter.d.ts +52 -0
  114. package/dist/types/adapters/aitextadapter.d.ts +150 -0
  115. package/dist/types/adapters/awstextadapter.d.ts +183 -0
  116. package/dist/types/adapters/openaitextadapter.d.ts +187 -0
  117. package/dist/types/aiassistant.d.ts +390 -0
  118. package/dist/types/aiassistantediting.d.ts +50 -0
  119. package/dist/types/aiassistantui.d.ts +57 -0
  120. package/dist/types/aiconfig.d.ts +73 -0
  121. package/dist/types/augmentation.d.ts +31 -0
  122. package/dist/types/index.d.ts +17 -0
  123. package/dist/types/ui/aiassistantcontroller.d.ts +113 -0
  124. package/dist/types/ui/dropdown/aicommandslistview.d.ts +37 -0
  125. package/dist/types/ui/dropdown/buttonlabelwithhighlightview.d.ts +33 -0
  126. package/dist/types/ui/dropdown/labelwithhighlightview.d.ts +29 -0
  127. package/dist/types/ui/form/aiformcontentarea.d.ts +52 -0
  128. package/dist/types/ui/form/aiformerrorview.d.ts +30 -0
  129. package/dist/types/ui/form/aiformpromptview.d.ts +50 -0
  130. package/dist/types/ui/form/aiformtoolbarview.d.ts +62 -0
  131. package/dist/types/ui/form/aiformview.d.ts +145 -0
  132. package/dist/types/ui/form/aihistorylistitemview.d.ts +22 -0
  133. package/dist/types/ui/form/aihistorylistview.d.ts +39 -0
  134. package/dist/types/ui/form/prompthistory.d.ts +24 -0
  135. package/dist/types/ui/showaiassistantcommand.d.ts +44 -0
  136. package/dist/types/utils/common-translations.d.ts +13 -0
  137. package/lang/contexts.json +4 -0
  138. package/package.json +5 -4
  139. package/src/adapters/aiadapter.js +1 -1
  140. package/src/adapters/aitextadapter.js +1 -1
  141. package/src/adapters/awstextadapter.js +1 -1
  142. package/src/adapters/openaitextadapter.js +1 -1
  143. package/src/aiassistant.js +1 -1
  144. package/src/aiassistantediting.js +1 -1
  145. package/src/aiassistantui.js +1 -1
  146. package/src/index.js +1 -1
  147. package/src/ui/aiassistantcontroller.js +1 -1
  148. package/src/ui/dropdown/aicommandslistview.js +1 -1
  149. package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
  150. package/src/ui/dropdown/labelwithhighlightview.js +1 -1
  151. package/src/ui/form/aiformcontentarea.js +1 -1
  152. package/src/ui/form/aiformerrorview.js +1 -1
  153. package/src/ui/form/aiformpromptview.js +1 -1
  154. package/src/ui/form/aiformtoolbarview.js +1 -1
  155. package/src/ui/form/aiformview.js +1 -1
  156. package/src/ui/form/aihistorylistitemview.js +1 -1
  157. package/src/ui/form/aihistorylistview.js +1 -1
  158. package/src/ui/form/prompthistory.js +1 -1
  159. package/src/ui/showaiassistantcommand.js +1 -1
  160. package/src/utils/common-translations.js +1 -1
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module ai/ui/aihistorylistitemview
11
+ */
12
+ import { ListItemView } from 'ckeditor5/src/ui.js';
13
+ import type { PromptHistoryEntry } from './prompthistory.js';
14
+ /**
15
+ * A list item view that displays a historical prompt
16
+ */
17
+ export default class AIHistoryListItemView extends ListItemView {
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ constructor(promptHistoryEntry: PromptHistoryEntry);
22
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module ai/ui/aihistorylistview
11
+ */
12
+ import { ListView, ListItemGroupView, ButtonView, type FilteredView } from 'ckeditor5/src/ui.js';
13
+ import type { Locale } from 'ckeditor5/src/utils.js';
14
+ /**
15
+ * A list view that displays a list of AI prompts with filter pass-through.
16
+ *
17
+ * @private
18
+ */
19
+ export default class AIHistoryListView extends ListView implements FilteredView {
20
+ historyGroupView: ListItemGroupView;
21
+ clearHistoryButton: ButtonView;
22
+ constructor(locale: Locale);
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ filter(): {
27
+ resultsCount: number;
28
+ totalItemsCount: number;
29
+ };
30
+ }
31
+ /**
32
+ * Fired when the clear history button was executed by the user.
33
+ *
34
+ * @eventName ~AIHistoryListView#clearHistory
35
+ */
36
+ export type AIHistoryListViewClearHistoryEvent = {
37
+ name: 'clearHistory';
38
+ args: [];
39
+ };
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ import { Collection } from 'ckeditor5/src/utils.js';
10
+ /**
11
+ * A collection that stores the prompt history in the session storage as a side effect.
12
+ */
13
+ export default class PromptHistory extends Collection<PromptHistoryEntry> {
14
+ /**
15
+ * @inheritDoc
16
+ */
17
+ constructor();
18
+ }
19
+ /**
20
+ * An object that represents a historical prompt.
21
+ */
22
+ export type PromptHistoryEntry = {
23
+ prompt: string;
24
+ };
@@ -0,0 +1,44 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module ai/ui/showaiassistantcommand
11
+ * @publicApi
12
+ */
13
+ import { Command, type Editor } from 'ckeditor5/src/core.js';
14
+ import type { GroupDefinition } from '../aiassistant.js';
15
+ /**
16
+ * Command that shows the AI Assistant user interface.
17
+ */
18
+ export default class ShowAIAssistantCommand extends Command {
19
+ /**
20
+ * An array with ids of the AI commands enabled for the current selection.
21
+ *
22
+ * @observable
23
+ */
24
+ enabledCommandsIds: Array<string>;
25
+ /**
26
+ * Creates an instance of the command.
27
+ */
28
+ constructor(editor: Editor, definitions?: Array<GroupDefinition>);
29
+ /**
30
+ * @inheritDoc
31
+ */
32
+ refresh(): void;
33
+ /**
34
+ * Opens AI Assistant user interface for the current document selection.
35
+ *
36
+ * @param query The initial query. If set, the AI assistant will automatically submit given query to the AI service.
37
+ * @param label Label to be displayed in the AI assistant query input field while the AI assistant processes the initial query.
38
+ * @param actionId The id of the executed action. It can be used in extended and custom adapters to customize the request. It
39
+ * will be prefixed with `aiAssistant:`. See also
40
+ * {@link module:ai/adapters/aitextadapter~AITextAdapterRequestData#actionId `AITextAdapterRequestData#actionId`}.
41
+ * @fires execute
42
+ */
43
+ execute(query?: string, label?: string, actionId?: string): void;
44
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
7
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
8
+ */
9
+ /**
10
+ * @module ai/utils/common-translations
11
+ */
12
+ import type { Locale } from 'ckeditor5/src/utils.js';
13
+ export declare function getTranslation(locale: Locale, id: string, values?: string | Array<string> | number): string;
@@ -38,6 +38,9 @@
38
38
  "Try again": "The label for the button that repeats the request to AI.",
39
39
  "Stop": "The label for the button that stops the generating of the content by AI.",
40
40
  "AI is writing...": "The label that indicates the AI is generating content.",
41
+ "AI is writing": "Aria status message indicating that the AI is generating content. Example: 'AI busy writing'.",
42
+ "Generated content: %0": "Aria status message indicating that the AI generated content. Example: 'Generated content: [text generated by the AI model]'.",
43
+ "Error during AI content generation: %0": "Aria status message indicating that an error has occurred during the generation of AI content. Example: 'Error during AI content generation: [text of an error]'.",
41
44
  "History": "The label of the button that toggles the prompt history pane in the AI dialog.",
42
45
  "Empty history": "The primary information text displayed when the prompt history is empty.",
43
46
  "Ask AI and your prompts will be listed here for you to use later.": "The secondary information text displayed when the prompt history is empty.",
@@ -45,6 +48,7 @@
45
48
  "Search AI command": "The placeholder for the search input to filter the AI commands.",
46
49
  "No commands found": "The message displayed when the commands search input does not match any AI commands.",
47
50
  "No commands available": "The message displayed when there are no AI commands available in the commands dropdown.",
51
+ "%0 commands found": "Aria status message indicating how many ai commands has been found using search ai commands input. Example: '%0 commands found'.",
48
52
  "AI_REPLACE_CONTENT": "The label for the button that replaces the selected content by the generated AI response.",
49
53
  "AI_INSERT_CONTENT": "The label for the button that inserts the generated AI response.",
50
54
  "AI_ERROR_GET_HEADERS": "Error message displayed when preparing request headers fails.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ai",
3
- "version": "41.3.0",
3
+ "version": "41.4.0-alpha.0",
4
4
  "description": "AI Assistant feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,15 +23,16 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "ckeditor5": "41.3.0",
27
- "ckeditor5-collaboration": "41.3.0",
26
+ "ckeditor5": "41.4.0-alpha.0",
27
+ "ckeditor5-collaboration": "41.4.0-alpha.0",
28
28
  "@aws-sdk/client-bedrock-runtime": "3.470.0",
29
- "@ckeditor/ckeditor5-ui": "41.3.0",
29
+ "@ckeditor/ckeditor5-ui": "41.4.0-alpha.0",
30
30
  "lodash-es": "4.17.21"
31
31
  },
32
32
  "type": "module",
33
33
  "main": "src/index.js",
34
34
  "files": [
35
+ "dist",
35
36
  "lang",
36
37
  "src/**/*.js",
37
38
  "src/**/*.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4ea116=_0x14b1;(function(_0x2a5570,_0x54de47){var _0x3dff64=_0x14b1,_0x27e4cd=_0x2a5570();while(!![]){try{var _0x3253d9=parseInt(_0x3dff64(0xeb))/0x1*(-parseInt(_0x3dff64(0xde))/0x2)+-parseInt(_0x3dff64(0xe6))/0x3*(-parseInt(_0x3dff64(0xec))/0x4)+-parseInt(_0x3dff64(0xdd))/0x5*(-parseInt(_0x3dff64(0xe3))/0x6)+-parseInt(_0x3dff64(0xe8))/0x7+-parseInt(_0x3dff64(0xdf))/0x8+parseInt(_0x3dff64(0xea))/0x9*(parseInt(_0x3dff64(0xe7))/0xa)+parseInt(_0x3dff64(0xe1))/0xb*(parseInt(_0x3dff64(0xe2))/0xc);if(_0x3253d9===_0x54de47)break;else _0x27e4cd['push'](_0x27e4cd['shift']());}catch(_0x2a07e0){_0x27e4cd['push'](_0x27e4cd['shift']());}}}(_0x555c,0x209f6));import{Plugin as _0x5c7d91}from'ckeditor5/src/core.js';import{CKEditorError as _0x279425}from'ckeditor5/src/utils.js';function _0x14b1(_0x19b64c,_0x2d6a12){var _0x555ce0=_0x555c();return _0x14b1=function(_0x14b176,_0x2f6cb2){_0x14b176=_0x14b176-0xdd;var _0x179e41=_0x555ce0[_0x14b176];return _0x179e41;},_0x14b1(_0x19b64c,_0x2d6a12);}function _0x555c(){var _0x3c9b48=['5CfJcLU','2PdbSTc','1448008apHSVu','textAdapter','66kesmQM','805092EsBTez','1447962gYcHOS','name','AIAdapter','1338vDdqPQ','20NfMnWj','1541925JtsGaX','aiadapter-text-adapter-not-set','214506rqkvzv','252533fQagrc','860lCVDkc','AIRequestError','pluginName','afterInit'];_0x555c=function(){return _0x3c9b48;};return _0x555c();}export default class v extends _0x5c7d91{static get[_0x4ea116(0xee)](){var _0x48d770=_0x4ea116;return _0x48d770(0xe5);}[_0x4ea116(0xef)](){var _0x3ccf5c=_0x4ea116;if(!this[_0x3ccf5c(0xe0)])throw new _0x279425(_0x3ccf5c(0xe9),null);}}export class AIRequestError extends Error{constructor(_0x50249c){var _0x101bb3=_0x4ea116;super(_0x50249c),this[_0x101bb3(0xe4)]=_0x101bb3(0xed);}}
23
+ var _0x108839=_0x2682;(function(_0x113782,_0xeb1bdb){var _0x55852e=_0x2682,_0x1f68c1=_0x113782();while(!![]){try{var _0x4f90cc=-parseInt(_0x55852e(0x70))/0x1*(parseInt(_0x55852e(0x7a))/0x2)+-parseInt(_0x55852e(0x74))/0x3*(-parseInt(_0x55852e(0x7c))/0x4)+-parseInt(_0x55852e(0x78))/0x5+-parseInt(_0x55852e(0x72))/0x6*(-parseInt(_0x55852e(0x79))/0x7)+-parseInt(_0x55852e(0x76))/0x8+parseInt(_0x55852e(0x6e))/0x9*(-parseInt(_0x55852e(0x77))/0xa)+parseInt(_0x55852e(0x75))/0xb*(parseInt(_0x55852e(0x6d))/0xc);if(_0x4f90cc===_0xeb1bdb)break;else _0x1f68c1['push'](_0x1f68c1['shift']());}catch(_0xf356fa){_0x1f68c1['push'](_0x1f68c1['shift']());}}}(_0x55b4,0xd72f2));import{Plugin as _0x4214c6}from'ckeditor5/src/core.js';import{CKEditorError as _0x5291c6}from'ckeditor5/src/utils.js';function _0x55b4(){var _0x522b4b=['12097143VVmccg','AIAdapter','4SMKGAw','aiadapter-text-adapter-not-set','1383246LIjIMZ','AIRequestError','21YnNynk','319LujaEI','11876008ogpIjA','10FHHLWZ','4770160nOtBsr','49DGBzUX','676330oHsyjq','afterInit','62492clNcDt','name','textAdapter','pluginName','1776648ynWKfs'];_0x55b4=function(){return _0x522b4b;};return _0x55b4();}export default class y extends _0x4214c6{static get[_0x108839(0x6c)](){var _0x11ed3e=_0x108839;return _0x11ed3e(0x6f);}[_0x108839(0x7b)](){var _0x26ca1a=_0x108839;if(!this[_0x26ca1a(0x6b)])throw new _0x5291c6(_0x26ca1a(0x71),null);}}function _0x2682(_0x54d1fb,_0x57fbcb){var _0x55b4d5=_0x55b4();return _0x2682=function(_0x2682ce,_0x4832e0){_0x2682ce=_0x2682ce-0x6a;var _0xcf89e9=_0x55b4d5[_0x2682ce];return _0xcf89e9;},_0x2682(_0x54d1fb,_0x57fbcb);}export class AIRequestError extends Error{constructor(_0x17d624){var _0x335d8a=_0x108839;super(_0x17d624),this[_0x335d8a(0x6a)]=_0x335d8a(0x73);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xa5ef(_0x46bdc2,_0x732d9){const _0x1a20db=_0x1a20();return _0xa5ef=function(_0xa5ef75,_0x498e77){_0xa5ef75=_0xa5ef75-0xf0;let _0xa05d89=_0x1a20db[_0xa5ef75];return _0xa05d89;},_0xa5ef(_0x46bdc2,_0x732d9);}const _0x119a77=_0xa5ef;(function(_0x13a53c,_0x2391d9){const _0x4a35eb=_0xa5ef,_0x4820c5=_0x13a53c();while(!![]){try{const _0x1b0a26=-parseInt(_0x4a35eb(0x107))/0x1*(-parseInt(_0x4a35eb(0x105))/0x2)+parseInt(_0x4a35eb(0xf8))/0x3*(parseInt(_0x4a35eb(0x114))/0x4)+parseInt(_0x4a35eb(0xfc))/0x5*(parseInt(_0x4a35eb(0xf5))/0x6)+parseInt(_0x4a35eb(0x118))/0x7*(-parseInt(_0x4a35eb(0xf1))/0x8)+-parseInt(_0x4a35eb(0x10a))/0x9*(parseInt(_0x4a35eb(0xf0))/0xa)+-parseInt(_0x4a35eb(0xf9))/0xb*(parseInt(_0x4a35eb(0x103))/0xc)+parseInt(_0x4a35eb(0xf2))/0xd*(parseInt(_0x4a35eb(0x116))/0xe);if(_0x1b0a26===_0x2391d9)break;else _0x4820c5['push'](_0x4820c5['shift']());}catch(_0x3ef285){_0x4820c5['push'](_0x4820c5['shift']());}}}(_0x1a20,0x3eba8));import{Plugin as _0x407fad}from'ckeditor5/src/core.js';import{CKEditorError as _0xfa40c1}from'ckeditor5/src/utils.js';import{default as _0x579e28,AIRequestError as _0xd5db09}from'./aiadapter.js';function _0x1a20(){const _0x909f67=['textAdapter','name','2768fgcCXF','init','6402746Euabvg','sendRequest','7rbGhlo','4039640wTBZSQ','979528wmTHzy','13AOXSVV','reject','error','1970064sNMGzo','aitextadapter-send-request-failed','get','816OVKUWc','184228tGtPhP','_prepareRequestHeaders','AbortError','5AEPGJm','abort','aborted','plugins','_prepareRequestParameters','requires','object','216OOenMC','assign','244JLcweO','catch','909ljKFfF','signal','resolve','9OwNiKS','abortController','editor','application/json','AI_ERROR_GET_HEADERS','locale','makeRequest','AI_ERROR_GET_PARAMETERS'];_0x1a20=function(){return _0x909f67;};return _0x1a20();}import{getTranslation as _0x4ad78c}from'../utils/common-translations.js';export default class P extends _0x407fad{static get[_0x119a77(0x101)](){return[_0x579e28];}constructor(_0x4fe773){const _0x2d2b49=_0x119a77;super(_0x4fe773),this[_0x2d2b49(0x10b)]=new AbortController();}[_0x119a77(0x115)](){const _0x5c3820=_0x119a77;this[_0x5c3820(0x10c)][_0x5c3820(0xff)][_0x5c3820(0xf7)](_0x579e28)[_0x5c3820(0x112)]=this;}[_0x119a77(0xfd)](){const _0x5652dd=_0x119a77;this[_0x5652dd(0x10b)][_0x5652dd(0x108)][_0x5652dd(0xfe)]||(this[_0x5652dd(0x10b)][_0x5652dd(0xfd)](),this[_0x5652dd(0x10b)]=new AbortController());}async[_0x119a77(0x110)](_0x8ffbcd){const _0x3ba962=_0x119a77;return this[_0x3ba962(0x117)](_0x8ffbcd)[_0x3ba962(0x106)](_0x164ec8=>{const _0x128655=_0x3ba962;if(_0x164ec8 instanceof _0xd5db09)return Promise[_0x128655(0xf3)](_0x164ec8);if(_0x128655(0xfb)==_0x164ec8[_0x128655(0x113)])return Promise[_0x128655(0x109)]();throw console[_0x128655(0xf4)](_0x164ec8),new _0xfa40c1(_0x128655(0xf6),null);});}async[_0x119a77(0xfa)](_0x57d473,_0x1ee62a){const _0x3d3d4e=_0x119a77,_0xfaaa2d=this[_0x3d3d4e(0x10c)][_0x3d3d4e(0x10f)],_0xf11c6={'Content-Type':_0x3d3d4e(0x10d)};if(_0x3d3d4e(0x102)==typeof _0x57d473)Object[_0x3d3d4e(0x104)](_0xf11c6,_0x57d473);else{if(_0x57d473)try{const _0x4d633a=await _0x57d473(_0x1ee62a);Object[_0x3d3d4e(0x104)](_0xf11c6,_0x4d633a);}catch(_0x2f3755){return Promise[_0x3d3d4e(0xf3)](new _0xd5db09(_0x4ad78c(_0xfaaa2d,_0x3d3d4e(0x10e))));}}return _0xf11c6;}async[_0x119a77(0x100)](_0xceacfa,_0x1c834c){const _0x58b208=_0x119a77,_0x36deec=this[_0x58b208(0x10c)][_0x58b208(0x10f)];if(_0x58b208(0x102)==typeof _0xceacfa)return _0xceacfa;try{return await _0xceacfa(_0x1c834c);}catch(_0x3acc7c){return Promise[_0x58b208(0xf3)](new _0xd5db09(_0x4ad78c(_0x36deec,_0x58b208(0x111))));}}}
23
+ const _0x36c822=_0x4909;function _0x23af(){const _0x27b4aa=['212120CzmvbU','1vYGVqC','textAdapter','makeRequest','10CgntrH','70lyqRDm','catch','application/json','plugins','_prepareRequestHeaders','assign','AI_ERROR_GET_PARAMETERS','abort','aitextadapter-send-request-failed','_prepareRequestParameters','AbortError','locale','signal','82224lvtIKo','882350SeBUOH','5567718GjtziG','resolve','editor','requires','init','4128309SGtYBS','aborted','sendRequest','get','error','3319382UGpgQy','AI_ERROR_GET_HEADERS','reject','abortController','object','2730712VVikxs','name'];_0x23af=function(){return _0x27b4aa;};return _0x23af();}(function(_0x315b37,_0x5cb88d){const _0x4bd60f=_0x4909,_0x284524=_0x315b37();while(!![]){try{const _0x32cd66=parseInt(_0x4bd60f(0xae))/0x1*(-parseInt(_0x4bd60f(0xa6))/0x2)+parseInt(_0x4bd60f(0x9a))/0x3+parseInt(_0x4bd60f(0xab))/0x4+parseInt(_0x4bd60f(0x9b))/0x5+parseInt(_0x4bd60f(0x9c))/0x6+-parseInt(_0x4bd60f(0xb2))/0x7*(-parseInt(_0x4bd60f(0xad))/0x8)+-parseInt(_0x4bd60f(0xa1))/0x9*(-parseInt(_0x4bd60f(0xb1))/0xa);if(_0x32cd66===_0x5cb88d)break;else _0x284524['push'](_0x284524['shift']());}catch(_0x23f93f){_0x284524['push'](_0x284524['shift']());}}}(_0x23af,0xd684d));import{Plugin as _0x10969c}from'ckeditor5/src/core.js';import{CKEditorError as _0x5f13f1}from'ckeditor5/src/utils.js';import{default as _0x29a06c,AIRequestError as _0x1f8378}from'./aiadapter.js';import{getTranslation as _0x59ad8f}from'../utils/common-translations.js';function _0x4909(_0x54ef50,_0x557532){const _0x23af13=_0x23af();return _0x4909=function(_0x490967,_0x1adbb9){_0x490967=_0x490967-0x91;let _0x12f31a=_0x23af13[_0x490967];return _0x12f31a;},_0x4909(_0x54ef50,_0x557532);}export default class P extends _0x10969c{static get[_0x36c822(0x9f)](){return[_0x29a06c];}constructor(_0x84a1d3){const _0x1e36b0=_0x36c822;super(_0x84a1d3),this[_0x1e36b0(0xa9)]=new AbortController();}[_0x36c822(0xa0)](){const _0x4b9f9d=_0x36c822;this[_0x4b9f9d(0x9e)][_0x4b9f9d(0xb5)][_0x4b9f9d(0xa4)](_0x29a06c)[_0x4b9f9d(0xaf)]=this;}[_0x36c822(0x94)](){const _0xc6ae11=_0x36c822;this[_0xc6ae11(0xa9)][_0xc6ae11(0x99)][_0xc6ae11(0xa2)]||(this[_0xc6ae11(0xa9)][_0xc6ae11(0x94)](),this[_0xc6ae11(0xa9)]=new AbortController());}async[_0x36c822(0xb0)](_0x5c7cf6){const _0x23d39e=_0x36c822;return this[_0x23d39e(0xa3)](_0x5c7cf6)[_0x23d39e(0xb3)](_0x87ad0d=>{const _0x30c6ef=_0x23d39e;if(_0x87ad0d instanceof _0x1f8378)return Promise[_0x30c6ef(0xa8)](_0x87ad0d);if(_0x30c6ef(0x97)==_0x87ad0d[_0x30c6ef(0xac)])return Promise[_0x30c6ef(0x9d)]();throw console[_0x30c6ef(0xa5)](_0x87ad0d),new _0x5f13f1(_0x30c6ef(0x95),null);});}async[_0x36c822(0x91)](_0x58c4eb,_0x5ef3fc){const _0x61a057=_0x36c822,_0x3629f2=this[_0x61a057(0x9e)][_0x61a057(0x98)],_0xd12c64={'Content-Type':_0x61a057(0xb4)};if(_0x61a057(0xaa)==typeof _0x58c4eb)Object[_0x61a057(0x92)](_0xd12c64,_0x58c4eb);else{if(_0x58c4eb)try{const _0x3bde07=await _0x58c4eb(_0x5ef3fc);Object[_0x61a057(0x92)](_0xd12c64,_0x3bde07);}catch(_0x13e36d){return Promise[_0x61a057(0xa8)](new _0x1f8378(_0x59ad8f(_0x3629f2,_0x61a057(0xa7))));}}return _0xd12c64;}async[_0x36c822(0x96)](_0x2ff9ea,_0x1c4519){const _0x450ee4=_0x36c822,_0x532c08=this[_0x450ee4(0x9e)][_0x450ee4(0x98)];if(_0x450ee4(0xaa)==typeof _0x2ff9ea)return _0x2ff9ea;try{return await _0x2ff9ea(_0x1c4519);}catch(_0x45e8d8){return Promise[_0x450ee4(0xa8)](new _0x1f8378(_0x59ad8f(_0x532c08,_0x450ee4(0x93))));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x41a277=_0x22c6;function _0x22c6(_0x3688aa,_0x25670e){const _0x2be54e=_0x2be5();return _0x22c6=function(_0x22c6f0,_0x165fcc){_0x22c6f0=_0x22c6f0-0x91;let _0x140081=_0x2be54e[_0x22c6f0];return _0x140081;},_0x22c6(_0x3688aa,_0x25670e);}(function(_0x4f46bc,_0x51c235){const _0x4bcbbd=_0x22c6,_0xd0bc14=_0x4f46bc();while(!![]){try{const _0x109aa6=parseInt(_0x4bcbbd(0xc8))/0x1+-parseInt(_0x4bcbbd(0xd0))/0x2*(parseInt(_0x4bcbbd(0xda))/0x3)+parseInt(_0x4bcbbd(0xcd))/0x4+-parseInt(_0x4bcbbd(0x94))/0x5*(parseInt(_0x4bcbbd(0xc9))/0x6)+-parseInt(_0x4bcbbd(0xd8))/0x7*(parseInt(_0x4bcbbd(0xa4))/0x8)+-parseInt(_0x4bcbbd(0xb0))/0x9+parseInt(_0x4bcbbd(0x9b))/0xa;if(_0x109aa6===_0x51c235)break;else _0xd0bc14['push'](_0xd0bc14['shift']());}catch(_0x967b97){_0xd0bc14['push'](_0xd0bc14['shift']());}}}(_0x2be5,0xa7068));import{default as _0x24c764}from'./aitextadapter.js';import{AIRequestError as _0x2b3df4}from'./aiadapter.js';function _0x2be5(){const _0x93e1d6=['json','\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.','completion','map','ai.aws.bedrockClientConfig','ai21.j2','config','_processAWSRequest','\x0a<</SYS>>\x0a[INST]\x0a','ai.aws.requestHeaders','AI_ERROR_UNSUPPORTED_MODEL','stringify','529040mJzxxS','6TqNKXF','chunk','define','_readStreamableResponse','4457124sPTksR','parse','_prepareRequestParameters','2nyDFrU','toString','decode','bytes','POST','completions','meta.llama','join','4564819kYwczH','split','3784824YxVssk','getModelFamily','utf-8','filter','_readAsyncIterableResponse','body','ai.aws.requestParameters','editor','read','_readStaticResponse','send','Instruction:\x0a','anthropic.claude-v2','4965710vfXexQ','_bedrockClientConfig','anthropic.claude','signal','_apiUrl','length','resolve','28170050kAverr','_requestParameters','generations','_prepareRequestHeaders','Human:\x0a','from','bedrock-2023-05-31','data','abortController','8gSWBYb','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','application/json','<<SYS>>\x0a','AWSTextAdapter','locale','ai.aws.apiUrl','utf8','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.','_processProxyRequest','get','generation','7823907RuZEGn','test','preparePrompt','text','getReader','pluginName','\x0a[/INST]','sendRequest','_requestHeaders','cohere.command','_getGeneratedText'];_0x2be5=function(){return _0x93e1d6;};return _0x2be5();}import{BedrockRuntimeClient as _0xf22cb,InvokeModelCommand as _0x210f01,InvokeModelWithResponseStreamCommand as _0x504fce}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x40b85d}from'../utils/common-translations.js';export default class Y extends _0x24c764{static get[_0x41a277(0xb5)](){const _0x42ee1f=_0x41a277;return _0x42ee1f(0xa8);}constructor(_0x4d58a5){const _0x263c8c=_0x41a277;super(_0x4d58a5),_0x4d58a5[_0x263c8c(0xc2)][_0x263c8c(0xae)](_0x263c8c(0xe0))||_0x4d58a5[_0x263c8c(0xc2)][_0x263c8c(0xcb)](_0x263c8c(0xe0),{'model':_0x263c8c(0x93),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x263c8c(0xa1),'stream':!0x0}),this[_0x263c8c(0x98)]=_0x4d58a5[_0x263c8c(0xc2)][_0x263c8c(0xae)](_0x263c8c(0xaa)),this[_0x263c8c(0x95)]=_0x4d58a5[_0x263c8c(0xc2)][_0x263c8c(0xae)](_0x263c8c(0xc0)),this[_0x263c8c(0xb8)]=_0x4d58a5[_0x263c8c(0xc2)][_0x263c8c(0xae)](_0x263c8c(0xc5)),this[_0x263c8c(0x9c)]=_0x4d58a5[_0x263c8c(0xc2)][_0x263c8c(0xae)](_0x263c8c(0xe0));}async[_0x41a277(0xb7)]({query:_0x3fa7a9,context:_0x1366f7,onData:_0x2b9518,actionId:_0x383f70}){const _0x52c1ea=_0x41a277,{model:_0x176c5f,stream:_0x2f8f2e,..._0x4a2915}=await this[_0x52c1ea(0xcf)](this[_0x52c1ea(0x9c)],_0x383f70),_0x387f15={'prompt':await this[_0x52c1ea(0xb2)](_0x3fa7a9,_0x1366f7,_0x176c5f,_0x383f70),..._0x4a2915};this[_0x52c1ea(0x98)]?await this[_0x52c1ea(0xad)](_0x387f15,_0x176c5f,_0x2f8f2e,_0x2b9518,_0x383f70):await this[_0x52c1ea(0xc3)](_0x387f15,_0x176c5f,_0x2f8f2e,_0x2b9518);}async[_0x41a277(0xb2)](_0x202ed3,_0x39138e,_0x22e58d,_0x10b04b){const _0x2b9e8c=_0x41a277;let _0xfa0803,_0x47cfa1;return _0x39138e?(_0xfa0803=_0x2b9e8c(0xac),_0x47cfa1=_0x2b9e8c(0x92)+_0x202ed3+_0x2b9e8c(0xa5)+_0x39138e):(_0xfa0803=_0x2b9e8c(0xbd),_0x47cfa1=_0x202ed3),_0x2b9e8c(0xd6)==this[_0x2b9e8c(0xdb)](_0x22e58d)?_0x2b9e8c(0xa7)+_0xfa0803+_0x2b9e8c(0xc4)+_0x47cfa1+_0x2b9e8c(0xb6):_0x2b9e8c(0x9f)+_0xfa0803+'\x0a'+_0x47cfa1+_0x2b9e8c(0xbc);}[_0x41a277(0xdb)](_0x4afb08){const _0x3e0e3b=_0x41a277;if(/^anthropic\.claude/[_0x3e0e3b(0xb1)](_0x4afb08))return _0x3e0e3b(0x96);if(/^ai21\.j2/[_0x3e0e3b(0xb1)](_0x4afb08))return _0x3e0e3b(0xc1);if(/^cohere\.command/[_0x3e0e3b(0xb1)](_0x4afb08))return _0x3e0e3b(0xb9);if(/^meta\.llama/[_0x3e0e3b(0xb1)](_0x4afb08))return _0x3e0e3b(0xd6);throw new _0x2b3df4(_0x40b85d(this[_0x3e0e3b(0xe1)][_0x3e0e3b(0xa9)],_0x3e0e3b(0xc6),_0x4afb08));}async[_0x41a277(0xad)](_0x309e58,_0x5b599a,_0x120ddf,_0x547839,_0x5e3fcd){const _0x3409b1=_0x41a277,_0x2b5866={'method':_0x3409b1(0xd4),'headers':await this[_0x3409b1(0x9e)](this[_0x3409b1(0xb8)],_0x5e3fcd),'body':JSON[_0x3409b1(0xc7)]({..._0x309e58,'model':_0x5b599a,'stream':_0x120ddf}),'signal':this[_0x3409b1(0xa3)][_0x3409b1(0x97)]},_0x29faf7=await fetch(this[_0x3409b1(0x98)],_0x2b5866);_0x120ddf?await this[_0x3409b1(0xcc)](_0x29faf7,_0x5b599a,_0x547839):await this[_0x3409b1(0xe3)](_0x29faf7,_0x5b599a,_0x547839);}async[_0x41a277(0xc3)](_0x493760,_0x6b9e1b,_0x12a501,_0x408230){const _0x4daecf=_0x41a277,_0x765f29=new _0xf22cb(this[_0x4daecf(0x95)]),_0x2b7fa9={'body':JSON[_0x4daecf(0xc7)](_0x493760),'contentType':_0x4daecf(0xa6),'accept':_0x4daecf(0xa6),'modelId':_0x6b9e1b};let _0x4592b9;if(_0x12a501){const _0x1ddf29=new _0x504fce(_0x2b7fa9);_0x4592b9=await _0x765f29[_0x4daecf(0x91)](_0x1ddf29,{'abortSignal':this[_0x4daecf(0xa3)][_0x4daecf(0x97)]}),await this[_0x4daecf(0xde)](_0x4592b9,_0x6b9e1b,_0x408230);}else{const _0xcca695=new _0x210f01(_0x2b7fa9);_0x4592b9=await _0x765f29[_0x4daecf(0x91)](_0xcca695,{'abortSignal':this[_0x4daecf(0xa3)][_0x4daecf(0x97)]}),await this[_0x4daecf(0xe3)](_0x4592b9,_0x6b9e1b,_0x408230);}}async[_0x41a277(0xde)](_0x4cf666,_0x1e02b9,_0x2feca5){const _0x2bb4ba=_0x41a277,_0x407635=_0x4cf666[_0x2bb4ba(0xdf)],_0x9d6a02=new TextDecoder(_0x2bb4ba(0xdc));let _0x31be7d='';for await(const _0x532d2d of _0x407635)if(_0x532d2d[_0x2bb4ba(0xca)]){const _0x35bb18=_0x9d6a02[_0x2bb4ba(0xd2)](_0x532d2d[_0x2bb4ba(0xca)][_0x2bb4ba(0xd3)]),_0x5a7585=JSON[_0x2bb4ba(0xce)](_0x35bb18);_0x31be7d+=this[_0x2bb4ba(0xba)](_0x5a7585,_0x1e02b9),_0x2feca5(_0x31be7d);}return Promise[_0x2bb4ba(0x9a)]();}async[_0x41a277(0xcc)](_0x2d4a4e,_0x19ea3d,_0xcf3ac9){const _0x382a20=_0x41a277,_0xf80d83=_0x2d4a4e[_0x382a20(0xdf)],_0x3b05a6=new TextDecoder(_0x382a20(0xdc)),_0x1d1ffe=_0xf80d83[_0x382a20(0xb4)]();let _0x1dce4e='',_0x4cc217='',_0x43b90c=!0x1;for(;!_0x43b90c;){const {done:_0x5dd48c,value:_0x47e850}=await _0x1d1ffe[_0x382a20(0xe2)]();if(_0x43b90c=_0x5dd48c,_0x43b90c)break;const _0x31ce3b=(_0x1dce4e+_0x3b05a6[_0x382a20(0xd2)](_0x47e850))[_0x382a20(0xd9)]('\x0a')[_0x382a20(0xbf)](_0x2e6530=>{const _0x4bb586=_0x382a20;try{return _0x1dce4e='',JSON[_0x4bb586(0xce)](_0x2e6530);}catch(_0x28eb13){return _0x1dce4e=_0x2e6530,null;}})[_0x382a20(0xdd)](_0x1fbceb=>null!==_0x1fbceb);_0x31ce3b[_0x382a20(0x99)]&&(_0x4cc217+=_0x31ce3b[_0x382a20(0xbf)](_0x77f010=>this[_0x382a20(0xba)](_0x77f010,_0x19ea3d))[_0x382a20(0xd7)](''),_0xcf3ac9(_0x4cc217));}return Promise[_0x382a20(0x9a)]();}async[_0x41a277(0xe3)](_0x3a14e6,_0x3d0371,_0x389885){const _0x224468=_0x41a277;let _0x10fccb;return _0x10fccb=_0x3a14e6 instanceof Response?await _0x3a14e6[_0x224468(0xbb)]():JSON[_0x224468(0xce)](Buffer[_0x224468(0xa0)](_0x3a14e6[_0x224468(0xdf)])[_0x224468(0xd1)](_0x224468(0xab))),(_0x389885(this[_0x224468(0xba)](_0x10fccb,_0x3d0371)),Promise[_0x224468(0x9a)]());}[_0x41a277(0xba)](_0x46898e,_0x5476d5){const _0x15739d=_0x41a277;switch(this[_0x15739d(0xdb)](_0x5476d5)){case _0x15739d(0x96):return _0x46898e[_0x15739d(0xbe)];case _0x15739d(0xc1):return _0x46898e[_0x15739d(0xd5)][0x0][_0x15739d(0xa2)][_0x15739d(0xb3)];case _0x15739d(0xb9):return _0x46898e[_0x15739d(0x9d)][0x0][_0x15739d(0xb3)];case _0x15739d(0xd6):return _0x46898e[_0x15739d(0xaf)];}}}
23
+ function _0x328d(_0x3583fa,_0x39a265){const _0x535e1d=_0x535e();return _0x328d=function(_0x328dd7,_0x5ef9e7){_0x328dd7=_0x328dd7-0x1d1;let _0x1d7943=_0x535e1d[_0x328dd7];return _0x1d7943;},_0x328d(_0x3583fa,_0x39a265);}const _0x1fbf33=_0x328d;function _0x535e(){const _0x5a94c0=['_prepareRequestParameters','Instruction:\x0a','resolve','540ILJMxU','4852566bdQnuQ','toString','_prepareRequestHeaders','read','Human:\x0a','437992AhmttQ','ai.aws.apiUrl','bytes','_requestParameters','bedrock-2023-05-31','_readStaticResponse','cohere.command','30CHvaFG','generations','length','154jjBSxP','test','ai.aws.requestParameters','data','\x0a\x0aAssistant:','json','split','AI_ERROR_UNSUPPORTED_MODEL','anthropic.claude-v2','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.','ai21.j2','<<SYS>>\x0a','chunk','POST','ai.aws.requestHeaders','_processProxyRequest','_requestHeaders','_apiUrl','completion','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','config','decode','\x0a[/INST]','define','from','stringify','get','60798bOPDTj','preparePrompt','AWSTextAdapter','filter','abortController','104180ZLMFrh','63JdLnXw','send','pluginName','_readStreamableResponse','parse','_processAWSRequest','locale','getModelFamily','14089130LdkXXM','getReader','text','editor','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','utf-8','map','20277697Dssytg','meta.llama','body','_getGeneratedText','generation','signal','\x0a<</SYS>>\x0a[INST]\x0a','anthropic.claude','completions','utf8','_bedrockClientConfig','_readAsyncIterableResponse','84820cACbqC','application/json','sendRequest','ai.aws.bedrockClientConfig','join'];_0x535e=function(){return _0x5a94c0;};return _0x535e();}(function(_0x1588d7,_0x1117a3){const _0x23c196=_0x328d,_0x12119b=_0x1588d7();while(!![]){try{const _0x38f762=-parseInt(_0x23c196(0x1e5))/0x1*(-parseInt(_0x23c196(0x1fa))/0x2)+-parseInt(_0x23c196(0x21e))/0x3*(-parseInt(_0x23c196(0x21d))/0x4)+-parseInt(_0x23c196(0x1ed))/0x5*(-parseInt(_0x23c196(0x218))/0x6)+-parseInt(_0x23c196(0x1fd))/0x7*(parseInt(_0x23c196(0x1f3))/0x8)+-parseInt(_0x23c196(0x1ee))/0x9+parseInt(_0x23c196(0x1d2))/0xa+-parseInt(_0x23c196(0x1d9))/0xb;if(_0x38f762===_0x1117a3)break;else _0x12119b['push'](_0x12119b['shift']());}catch(_0x34910b){_0x12119b['push'](_0x12119b['shift']());}}}(_0x535e,0xb38d3));import{default as _0x36ab5f}from'./aitextadapter.js';import{AIRequestError as _0x5420d8}from'./aiadapter.js';import{BedrockRuntimeClient as _0x5c295e,InvokeModelCommand as _0x3eab3a,InvokeModelWithResponseStreamCommand as _0x49d275}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x20aee7}from'../utils/common-translations.js';export default class J extends _0x36ab5f{static get[_0x1fbf33(0x220)](){const _0x3e3213=_0x1fbf33;return _0x3e3213(0x21a);}constructor(_0x2d3962){const _0x421fb3=_0x1fbf33;super(_0x2d3962),_0x2d3962[_0x421fb3(0x211)][_0x421fb3(0x217)](_0x421fb3(0x1ff))||_0x2d3962[_0x421fb3(0x211)][_0x421fb3(0x214)](_0x421fb3(0x1ff),{'model':_0x421fb3(0x205),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x421fb3(0x1f7),'stream':!0x0}),this[_0x421fb3(0x20e)]=_0x2d3962[_0x421fb3(0x211)][_0x421fb3(0x217)](_0x421fb3(0x1f4)),this[_0x421fb3(0x1e3)]=_0x2d3962[_0x421fb3(0x211)][_0x421fb3(0x217)](_0x421fb3(0x1e8)),this[_0x421fb3(0x20d)]=_0x2d3962[_0x421fb3(0x211)][_0x421fb3(0x217)](_0x421fb3(0x20b)),this[_0x421fb3(0x1f6)]=_0x2d3962[_0x421fb3(0x211)][_0x421fb3(0x217)](_0x421fb3(0x1ff));}async[_0x1fbf33(0x1e7)]({query:_0x2697be,context:_0x1b8c8c,onData:_0x16679a,actionId:_0x92fe8b}){const _0x4ddab6=_0x1fbf33,{model:_0xba05cd,stream:_0xc56592,..._0x3d84d3}=await this[_0x4ddab6(0x1ea)](this[_0x4ddab6(0x1f6)],_0x92fe8b),_0x20a68f={'prompt':await this[_0x4ddab6(0x219)](_0x2697be,_0x1b8c8c,_0xba05cd,_0x92fe8b),..._0x3d84d3};this[_0x4ddab6(0x20e)]?await this[_0x4ddab6(0x20c)](_0x20a68f,_0xba05cd,_0xc56592,_0x16679a,_0x92fe8b):await this[_0x4ddab6(0x223)](_0x20a68f,_0xba05cd,_0xc56592,_0x16679a);}async[_0x1fbf33(0x219)](_0x6841e7,_0x10cc27,_0x4e0e97,_0x597749){const _0x3507a4=_0x1fbf33;let _0x428e60,_0x1ebd2a;return _0x10cc27?(_0x428e60=_0x3507a4(0x206),_0x1ebd2a=_0x3507a4(0x1eb)+_0x6841e7+_0x3507a4(0x1d6)+_0x10cc27):(_0x428e60=_0x3507a4(0x210),_0x1ebd2a=_0x6841e7),_0x3507a4(0x1da)==this[_0x3507a4(0x1d1)](_0x4e0e97)?_0x3507a4(0x208)+_0x428e60+_0x3507a4(0x1df)+_0x1ebd2a+_0x3507a4(0x213):_0x3507a4(0x1f2)+_0x428e60+'\x0a'+_0x1ebd2a+_0x3507a4(0x201);}[_0x1fbf33(0x1d1)](_0x2b2623){const _0x40e676=_0x1fbf33;if(/^anthropic\.claude/[_0x40e676(0x1fe)](_0x2b2623))return _0x40e676(0x1e0);if(/^ai21\.j2/[_0x40e676(0x1fe)](_0x2b2623))return _0x40e676(0x207);if(/^cohere\.command/[_0x40e676(0x1fe)](_0x2b2623))return _0x40e676(0x1f9);if(/^meta\.llama/[_0x40e676(0x1fe)](_0x2b2623))return _0x40e676(0x1da);throw new _0x5420d8(_0x20aee7(this[_0x40e676(0x1d5)][_0x40e676(0x224)],_0x40e676(0x204),_0x2b2623));}async[_0x1fbf33(0x20c)](_0x229323,_0x54fb4e,_0x30e564,_0x9a9323,_0x393c9f){const _0x2567b9=_0x1fbf33,_0x4e7690={'method':_0x2567b9(0x20a),'headers':await this[_0x2567b9(0x1f0)](this[_0x2567b9(0x20d)],_0x393c9f),'body':JSON[_0x2567b9(0x216)]({..._0x229323,'model':_0x54fb4e,'stream':_0x30e564}),'signal':this[_0x2567b9(0x21c)][_0x2567b9(0x1de)]},_0x34024d=await fetch(this[_0x2567b9(0x20e)],_0x4e7690);_0x30e564?await this[_0x2567b9(0x221)](_0x34024d,_0x54fb4e,_0x9a9323):await this[_0x2567b9(0x1f8)](_0x34024d,_0x54fb4e,_0x9a9323);}async[_0x1fbf33(0x223)](_0x32cc27,_0x40306f,_0x234ac8,_0x3a5566){const _0x29c1c3=_0x1fbf33,_0x216e6b=new _0x5c295e(this[_0x29c1c3(0x1e3)]),_0x56ba09={'body':JSON[_0x29c1c3(0x216)](_0x32cc27),'contentType':_0x29c1c3(0x1e6),'accept':_0x29c1c3(0x1e6),'modelId':_0x40306f};let _0x3eb07f;if(_0x234ac8){const _0x147f93=new _0x49d275(_0x56ba09);_0x3eb07f=await _0x216e6b[_0x29c1c3(0x21f)](_0x147f93,{'abortSignal':this[_0x29c1c3(0x21c)][_0x29c1c3(0x1de)]}),await this[_0x29c1c3(0x1e4)](_0x3eb07f,_0x40306f,_0x3a5566);}else{const _0x4a70ae=new _0x3eab3a(_0x56ba09);_0x3eb07f=await _0x216e6b[_0x29c1c3(0x21f)](_0x4a70ae,{'abortSignal':this[_0x29c1c3(0x21c)][_0x29c1c3(0x1de)]}),await this[_0x29c1c3(0x1f8)](_0x3eb07f,_0x40306f,_0x3a5566);}}async[_0x1fbf33(0x1e4)](_0x18dc20,_0x10cc76,_0x36d5f3){const _0xff2b5d=_0x1fbf33,_0x2724a4=_0x18dc20[_0xff2b5d(0x1db)],_0x1b75ee=new TextDecoder(_0xff2b5d(0x1d7));let _0x2ade66='';for await(const _0x3890ee of _0x2724a4)if(_0x3890ee[_0xff2b5d(0x209)]){const _0x4a101c=_0x1b75ee[_0xff2b5d(0x212)](_0x3890ee[_0xff2b5d(0x209)][_0xff2b5d(0x1f5)]),_0x4d9323=JSON[_0xff2b5d(0x222)](_0x4a101c);_0x2ade66+=this[_0xff2b5d(0x1dc)](_0x4d9323,_0x10cc76),_0x36d5f3(_0x2ade66);}return Promise[_0xff2b5d(0x1ec)]();}async[_0x1fbf33(0x221)](_0x23f4c9,_0x21abac,_0x51232c){const _0x2b452a=_0x1fbf33,_0x5f2263=_0x23f4c9[_0x2b452a(0x1db)],_0x56877b=new TextDecoder(_0x2b452a(0x1d7)),_0x1abe6c=_0x5f2263[_0x2b452a(0x1d3)]();let _0xa118f0='',_0x3c340b='',_0x1e7cbc=!0x1;for(;!_0x1e7cbc;){const {done:_0x2744c1,value:_0x46da3b}=await _0x1abe6c[_0x2b452a(0x1f1)]();if(_0x1e7cbc=_0x2744c1,_0x1e7cbc)break;const _0x3acb12=(_0xa118f0+_0x56877b[_0x2b452a(0x212)](_0x46da3b))[_0x2b452a(0x203)]('\x0a')[_0x2b452a(0x1d8)](_0x2e9ec6=>{const _0x156518=_0x2b452a;try{return _0xa118f0='',JSON[_0x156518(0x222)](_0x2e9ec6);}catch(_0x43155c){return _0xa118f0=_0x2e9ec6,null;}})[_0x2b452a(0x21b)](_0x1929cf=>null!==_0x1929cf);_0x3acb12[_0x2b452a(0x1fc)]&&(_0x3c340b+=_0x3acb12[_0x2b452a(0x1d8)](_0x524c97=>this[_0x2b452a(0x1dc)](_0x524c97,_0x21abac))[_0x2b452a(0x1e9)](''),_0x51232c(_0x3c340b));}return Promise[_0x2b452a(0x1ec)]();}async[_0x1fbf33(0x1f8)](_0x2981e7,_0x3b567b,_0x2d9671){const _0x48c660=_0x1fbf33;let _0x7ce404;return _0x7ce404=_0x2981e7 instanceof Response?await _0x2981e7[_0x48c660(0x202)]():JSON[_0x48c660(0x222)](Buffer[_0x48c660(0x215)](_0x2981e7[_0x48c660(0x1db)])[_0x48c660(0x1ef)](_0x48c660(0x1e2))),(_0x2d9671(this[_0x48c660(0x1dc)](_0x7ce404,_0x3b567b)),Promise[_0x48c660(0x1ec)]());}[_0x1fbf33(0x1dc)](_0x57f5dd,_0x419284){const _0x13b188=_0x1fbf33;switch(this[_0x13b188(0x1d1)](_0x419284)){case _0x13b188(0x1e0):return _0x57f5dd[_0x13b188(0x20f)];case _0x13b188(0x207):return _0x57f5dd[_0x13b188(0x1e1)][0x0][_0x13b188(0x200)][_0x13b188(0x1d4)];case _0x13b188(0x1f9):return _0x57f5dd[_0x13b188(0x1fb)][0x0][_0x13b188(0x1d4)];case _0x13b188(0x1da):return _0x57f5dd[_0x13b188(0x1dd)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3c5cf6=_0x29fb;(function(_0x53a11d,_0x3a5537){const _0x1635bf=_0x29fb,_0x29e98a=_0x53a11d();while(!![]){try{const _0x57b34d=-parseInt(_0x1635bf(0x132))/0x1+-parseInt(_0x1635bf(0x167))/0x2+-parseInt(_0x1635bf(0x164))/0x3+parseInt(_0x1635bf(0x141))/0x4+-parseInt(_0x1635bf(0x13b))/0x5*(-parseInt(_0x1635bf(0x151))/0x6)+parseInt(_0x1635bf(0x147))/0x7*(-parseInt(_0x1635bf(0x14f))/0x8)+parseInt(_0x1635bf(0x15d))/0x9;if(_0x57b34d===_0x3a5537)break;else _0x29e98a['push'](_0x29e98a['shift']());}catch(_0x1850b3){_0x29e98a['push'](_0x29e98a['shift']());}}}(_0x1d0a,0xf1b5b));import{default as _0x3c13da}from'./aitextadapter.js';function _0x29fb(_0x619b63,_0x4180d5){const _0x1d0aaa=_0x1d0a();return _0x29fb=function(_0x29fbd3,_0xddf0fd){_0x29fbd3=_0x29fbd3-0x12c;let _0x12ffae=_0x1d0aaa[_0x29fbd3];return _0x12ffae;},_0x29fb(_0x619b63,_0x4180d5);}function _0x1d0a(){const _0x2d1d3d=['_readStaticResponse','_cleanUpData','_prepareRequestHeaders','ai.openAI.requestHeaders','AI_ERROR_CONTEXT_LENGTH','resolve','join','_requestParameters','system','_isBufferIncomplete','data:\x20','gpt-3.5-turbo','signal','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.','https://api.openai.com/v1/chat/completions','91598PLLSBT','_prepareRequestParameters','decode','json','sendRequest','filter','replace','_requestHeaders','ai.openAI.requestParameters','5EkfmVR','ai.openAI.apiUrl','[DONE]','AI_ERROR_MODERATION','map','get','4828208pDSJZU','getReader','read','choices','config','length','2627275CIHlhf','stringify','locale','_apiUrl','body','prepareMessages','Instruction:\x0a','delta','8WwShcS','user','1644462mYZZhF','Moderation','split','parse','abortController','POST','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','stream','OpenAITextAdapter','includes','reject','context_length_exceeded','15017553SkMoZr','editor','define','message','content','text','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.','1959846RFtqNL','_readStreamableResponse','pluginName','2078996rhhDdT'];_0x1d0a=function(){return _0x2d1d3d;};return _0x1d0a();}import{AIRequestError as _0x4698fc}from'./aiadapter.js';import{getTranslation as _0x1923d0}from'../utils/common-translations.js';export default class J extends _0x3c13da{static get[_0x3c5cf6(0x166)](){const _0x5e209d=_0x3c5cf6;return _0x5e209d(0x159);}constructor(_0x342998){const _0x5808b4=_0x3c5cf6;super(_0x342998),_0x342998[_0x5808b4(0x145)][_0x5808b4(0x15f)](_0x5808b4(0x13c),_0x5808b4(0x131)),_0x342998[_0x5808b4(0x145)][_0x5808b4(0x140)](_0x5808b4(0x13a))||_0x342998[_0x5808b4(0x145)][_0x5808b4(0x15f)](_0x5808b4(0x13a),{'model':_0x5808b4(0x12e),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x5808b4(0x14a)]=_0x342998[_0x5808b4(0x145)][_0x5808b4(0x140)](_0x5808b4(0x13c)),this[_0x5808b4(0x139)]=_0x342998[_0x5808b4(0x145)][_0x5808b4(0x140)](_0x5808b4(0x16b))||{},this[_0x5808b4(0x16f)]=_0x342998[_0x5808b4(0x145)][_0x5808b4(0x140)](_0x5808b4(0x13a));}async[_0x3c5cf6(0x136)]({query:_0x1c4867,context:_0x4bef4e,onData:_0x11422a,actionId:_0x20090d}){const _0x425068=_0x3c5cf6,_0x12aad7=this[_0x425068(0x15e)][_0x425068(0x149)],_0x3e2703=await this[_0x425068(0x14c)](_0x1c4867,_0x4bef4e,_0x20090d),_0x5d833b=await this[_0x425068(0x16a)](this[_0x425068(0x139)],_0x20090d),_0x380439=await this[_0x425068(0x133)](this[_0x425068(0x16f)],_0x20090d),_0x28fc41={'messages':_0x3e2703,..._0x380439},_0x506aeb={'method':_0x425068(0x156),'headers':_0x5d833b,'body':JSON[_0x425068(0x148)](_0x28fc41),'signal':this[_0x425068(0x155)][_0x425068(0x12f)]},_0x473670=await fetch(this[_0x425068(0x14a)],_0x506aeb);if(_0x473670['ok'])return _0x380439[_0x425068(0x158)]?await this[_0x425068(0x165)](_0x473670,_0x11422a):await this[_0x425068(0x168)](_0x473670,_0x11422a),Promise[_0x425068(0x16d)]();{const _0x298e83=await _0x473670[_0x425068(0x162)]();return _0x298e83[_0x425068(0x15a)](_0x425068(0x15c))?Promise[_0x425068(0x15b)](new _0x4698fc(_0x1923d0(_0x12aad7,_0x425068(0x16c)))):_0x298e83[_0x425068(0x15a)](_0x425068(0x152))?Promise[_0x425068(0x15b)](new _0x4698fc(_0x1923d0(_0x12aad7,_0x425068(0x13e)))):Promise[_0x425068(0x15b)](new Error(_0x298e83));}}async[_0x3c5cf6(0x14c)](_0x3da497,_0x3053a5,_0x3330ce){const _0x18950d=_0x3c5cf6;let _0x2a9fa5,_0x5813c8;return _0x3053a5?(_0x2a9fa5=_0x18950d(0x130),_0x5813c8=_0x18950d(0x14d)+_0x3da497+_0x18950d(0x157)+_0x3053a5):(_0x2a9fa5=_0x18950d(0x163),_0x5813c8=_0x3da497),[{'role':_0x18950d(0x170),'content':_0x2a9fa5},{'role':_0x18950d(0x150),'content':_0x5813c8}];}async[_0x3c5cf6(0x165)](_0x57a9a6,_0x3d7804){const _0x45f9d6=_0x3c5cf6,_0xb8eea7=_0x57a9a6[_0x45f9d6(0x14b)][_0x45f9d6(0x142)](),_0x38a1b3=new TextDecoder();let _0x3e0b5c='',_0x1b46d7='',_0x18c698='',_0x24a03b=!0x1;for(;!_0x24a03b;){const {done:_0x442818,value:_0x20187c}=await _0xb8eea7[_0x45f9d6(0x143)](),_0x52e03e=_0x3e0b5c+_0x38a1b3[_0x45f9d6(0x134)](_0x20187c);let _0x567265='';_0x24a03b=_0x442818;try{_0x567265=this[_0x45f9d6(0x169)](_0x52e03e),_0x3e0b5c='';}catch(_0x1104ae){_0x3e0b5c=_0x52e03e;continue;}_0x1b46d7+=_0x567265,!_0x24a03b&&this[_0x45f9d6(0x12c)](_0x1b46d7)||_0x1b46d7&&(_0x18c698+=_0x1b46d7,_0x1b46d7='',_0x3d7804(_0x18c698));}return Promise[_0x45f9d6(0x16d)]();}async[_0x3c5cf6(0x168)](_0x5e17d5,_0x7be3e5){const _0x28d21c=_0x3c5cf6;return _0x7be3e5((await _0x5e17d5[_0x28d21c(0x135)]())[_0x28d21c(0x144)][0x0][_0x28d21c(0x160)][_0x28d21c(0x161)]),Promise[_0x28d21c(0x16d)]();}[_0x3c5cf6(0x12c)](_0x1ab25d){const _0x3c78e8=_0x3c5cf6,_0x191ca3=_0x1ab25d[_0x3c78e8(0x153)]('<')[_0x3c78e8(0x146)]!==_0x1ab25d[_0x3c78e8(0x153)]('>')[_0x3c78e8(0x146)],_0x39191c=_0x1ab25d[_0x3c78e8(0x146)]<0x1e;return _0x191ca3&&_0x39191c;}[_0x3c5cf6(0x169)](_0x32cf6e){const _0x676c8a=_0x3c5cf6;return _0x32cf6e[_0x676c8a(0x153)](/\n(?![^{]*\})/g)[_0x676c8a(0x13f)](_0x4ee395=>_0x4ee395[_0x676c8a(0x138)](_0x676c8a(0x12d),''))[_0x676c8a(0x137)](_0x2aae7d=>_0x2aae7d&&_0x2aae7d[_0x676c8a(0x146)]>0x0&&_0x676c8a(0x13d)!==_0x2aae7d)[_0x676c8a(0x13f)](_0x480db8=>{const _0x3116b3=_0x676c8a,{choices:_0xd5e13a}=JSON[_0x3116b3(0x154)](_0x480db8);if(_0xd5e13a[0x0]&&_0xd5e13a[0x0][_0x3116b3(0x14e)]&&_0xd5e13a[0x0][_0x3116b3(0x14e)][_0x3116b3(0x161)])return _0xd5e13a[0x0][_0x3116b3(0x14e)][_0x3116b3(0x161)];})[_0x676c8a(0x137)](_0x2d4396=>_0x2d4396)[_0x676c8a(0x16e)]('');}}
23
+ const _0x224408=_0x16cf;(function(_0x44e87f,_0x10cc8f){const _0x4e5d51=_0x16cf,_0x454c19=_0x44e87f();while(!![]){try{const _0x2eca0d=-parseInt(_0x4e5d51(0x1e9))/0x1*(-parseInt(_0x4e5d51(0x210))/0x2)+parseInt(_0x4e5d51(0x1cf))/0x3*(-parseInt(_0x4e5d51(0x20e))/0x4)+-parseInt(_0x4e5d51(0x1ed))/0x5*(parseInt(_0x4e5d51(0x1f6))/0x6)+-parseInt(_0x4e5d51(0x1d2))/0x7*(parseInt(_0x4e5d51(0x1f4))/0x8)+parseInt(_0x4e5d51(0x1e7))/0x9+-parseInt(_0x4e5d51(0x1d1))/0xa*(parseInt(_0x4e5d51(0x1e0))/0xb)+parseInt(_0x4e5d51(0x1dd))/0xc;if(_0x2eca0d===_0x10cc8f)break;else _0x454c19['push'](_0x454c19['shift']());}catch(_0x548d6a){_0x454c19['push'](_0x454c19['shift']());}}}(_0x1869,0x96522));import{default as _0x2ba5f7}from'./aitextadapter.js';function _0x1869(){const _0x4d4645=['8tAjeIO','delta','52NmTgpG','POST','gpt-3.5-turbo','split','_cleanUpData','pluginName','ai.openAI.requestHeaders','958179LTCRZy','Instruction:\x0a','270bhXXYo','2448124YhZwZJ','data:\x20','length','editor','OpenAITextAdapter','abortController','resolve','user','prepareMessages','text','reject','17164944YioitJ','_apiUrl','_prepareRequestParameters','116897Bqkvxo','decode','config','signal','body','join','choices','7634997gGtcGT','map','33036COHXwE','getReader','filter','stringify','15fvBNoJ','Moderation','_isBufferIncomplete','get','stream','replace','json','24UuYGXr','_readStaticResponse','1094112ZlJCmn','AI_ERROR_MODERATION','includes','_readStreamableResponse','locale','[DONE]','parse','content','ai.openAI.requestParameters','define','_requestHeaders','context_length_exceeded','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.','sendRequest','system','ai.openAI.apiUrl','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_ERROR_CONTEXT_LENGTH','_prepareRequestHeaders','_requestParameters','read','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','https://api.openai.com/v1/chat/completions','message'];_0x1869=function(){return _0x4d4645;};return _0x1869();}import{AIRequestError as _0x3b54c6}from'./aiadapter.js';function _0x16cf(_0x57e43d,_0x70cc2c){const _0x186949=_0x1869();return _0x16cf=function(_0x16cf48,_0x27b543){_0x16cf48=_0x16cf48-0x1ca;let _0x22032b=_0x186949[_0x16cf48];return _0x22032b;},_0x16cf(_0x57e43d,_0x70cc2c);}import{getTranslation as _0x3bf6f4}from'../utils/common-translations.js';export default class F extends _0x2ba5f7{static get[_0x224408(0x1cd)](){const _0x3126a8=_0x224408;return _0x3126a8(0x1d6);}constructor(_0x221d53){const _0x224839=_0x224408;super(_0x221d53),_0x221d53[_0x224839(0x1e2)][_0x224839(0x1ff)](_0x224839(0x205),_0x224839(0x20c)),_0x221d53[_0x224839(0x1e2)][_0x224839(0x1f0)](_0x224839(0x1fe))||_0x221d53[_0x224839(0x1e2)][_0x224839(0x1ff)](_0x224839(0x1fe),{'model':_0x224839(0x1ca),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x224839(0x1de)]=_0x221d53[_0x224839(0x1e2)][_0x224839(0x1f0)](_0x224839(0x205)),this[_0x224839(0x200)]=_0x221d53[_0x224839(0x1e2)][_0x224839(0x1f0)](_0x224839(0x1ce))||{},this[_0x224839(0x209)]=_0x221d53[_0x224839(0x1e2)][_0x224839(0x1f0)](_0x224839(0x1fe));}async[_0x224408(0x203)]({query:_0x5e4d11,context:_0x2b8729,onData:_0x596e0a,actionId:_0x302db7}){const _0x495d8a=_0x224408,_0x2181cb=this[_0x495d8a(0x1d5)][_0x495d8a(0x1fa)],_0x1dff9d=await this[_0x495d8a(0x1da)](_0x5e4d11,_0x2b8729,_0x302db7),_0x3b6ab1=await this[_0x495d8a(0x208)](this[_0x495d8a(0x200)],_0x302db7),_0x485885=await this[_0x495d8a(0x1df)](this[_0x495d8a(0x209)],_0x302db7),_0x138a90={'messages':_0x1dff9d,..._0x485885},_0x32b316={'method':_0x495d8a(0x211),'headers':_0x3b6ab1,'body':JSON[_0x495d8a(0x1ec)](_0x138a90),'signal':this[_0x495d8a(0x1d7)][_0x495d8a(0x1e3)]},_0x130cf3=await fetch(this[_0x495d8a(0x1de)],_0x32b316);if(_0x130cf3['ok'])return _0x485885[_0x495d8a(0x1f1)]?await this[_0x495d8a(0x1f9)](_0x130cf3,_0x596e0a):await this[_0x495d8a(0x1f5)](_0x130cf3,_0x596e0a),Promise[_0x495d8a(0x1d8)]();{const _0x70889f=await _0x130cf3[_0x495d8a(0x1db)]();return _0x70889f[_0x495d8a(0x1f8)](_0x495d8a(0x201))?Promise[_0x495d8a(0x1dc)](new _0x3b54c6(_0x3bf6f4(_0x2181cb,_0x495d8a(0x207)))):_0x70889f[_0x495d8a(0x1f8)](_0x495d8a(0x1ee))?Promise[_0x495d8a(0x1dc)](new _0x3b54c6(_0x3bf6f4(_0x2181cb,_0x495d8a(0x1f7)))):Promise[_0x495d8a(0x1dc)](new Error(_0x70889f));}}async[_0x224408(0x1da)](_0x15022b,_0xfde5df,_0x5125f2){const _0x165d0c=_0x224408;let _0x111830,_0x407c87;return _0xfde5df?(_0x111830=_0x165d0c(0x206),_0x407c87=_0x165d0c(0x1d0)+_0x15022b+_0x165d0c(0x20b)+_0xfde5df):(_0x111830=_0x165d0c(0x202),_0x407c87=_0x15022b),[{'role':_0x165d0c(0x204),'content':_0x111830},{'role':_0x165d0c(0x1d9),'content':_0x407c87}];}async[_0x224408(0x1f9)](_0x1fe042,_0x443a16){const _0xc58d0=_0x224408,_0xcc9455=_0x1fe042[_0xc58d0(0x1e4)][_0xc58d0(0x1ea)](),_0x35ab0e=new TextDecoder();let _0x43d511='',_0x5e4ba6='',_0x406a33='',_0x396c6d=!0x1;for(;!_0x396c6d;){const {done:_0x278192,value:_0x2c890c}=await _0xcc9455[_0xc58d0(0x20a)](),_0x4e2818=_0x43d511+_0x35ab0e[_0xc58d0(0x1e1)](_0x2c890c);let _0x54eadc='';_0x396c6d=_0x278192;try{_0x54eadc=this[_0xc58d0(0x1cc)](_0x4e2818),_0x43d511='';}catch(_0x31b137){_0x43d511=_0x4e2818;continue;}_0x5e4ba6+=_0x54eadc,!_0x396c6d&&this[_0xc58d0(0x1ef)](_0x5e4ba6)||_0x5e4ba6&&(_0x406a33+=_0x5e4ba6,_0x5e4ba6='',_0x443a16(_0x406a33));}return Promise[_0xc58d0(0x1d8)]();}async[_0x224408(0x1f5)](_0x33c17a,_0x5590f9){const _0x273a82=_0x224408;return _0x5590f9((await _0x33c17a[_0x273a82(0x1f3)]())[_0x273a82(0x1e6)][0x0][_0x273a82(0x20d)][_0x273a82(0x1fd)]),Promise[_0x273a82(0x1d8)]();}[_0x224408(0x1ef)](_0x62015f){const _0x223a24=_0x224408,_0x3c823a=_0x62015f[_0x223a24(0x1cb)]('<')[_0x223a24(0x1d4)]!==_0x62015f[_0x223a24(0x1cb)]('>')[_0x223a24(0x1d4)],_0x5315ac=_0x62015f[_0x223a24(0x1d4)]<0x1e;return _0x3c823a&&_0x5315ac;}[_0x224408(0x1cc)](_0x3ee8a7){const _0xa3edfd=_0x224408;return _0x3ee8a7[_0xa3edfd(0x1cb)](/\n(?![^{]*\})/g)[_0xa3edfd(0x1e8)](_0x47939b=>_0x47939b[_0xa3edfd(0x1f2)](_0xa3edfd(0x1d3),''))[_0xa3edfd(0x1eb)](_0x4d15b8=>_0x4d15b8&&_0x4d15b8[_0xa3edfd(0x1d4)]>0x0&&_0xa3edfd(0x1fb)!==_0x4d15b8)[_0xa3edfd(0x1e8)](_0x3f2d58=>{const _0x18d105=_0xa3edfd,{choices:_0x3a706a}=JSON[_0x18d105(0x1fc)](_0x3f2d58);if(_0x3a706a[0x0]&&_0x3a706a[0x0][_0x18d105(0x20f)]&&_0x3a706a[0x0][_0x18d105(0x20f)][_0x18d105(0x1fd)])return _0x3a706a[0x0][_0x18d105(0x20f)][_0x18d105(0x1fd)];})[_0xa3edfd(0x1eb)](_0x3a8335=>_0x3a8335)[_0xa3edfd(0x1e5)]('');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb84113=_0x106c;(function(_0x4c5119,_0x37e155){const _0xb01826=_0x106c,_0x47c1d1=_0x4c5119();while(!![]){try{const _0x23e158=parseInt(_0xb01826(0x25a))/0x1+parseInt(_0xb01826(0x259))/0x2+-parseInt(_0xb01826(0x202))/0x3+-parseInt(_0xb01826(0x1f5))/0x4+-parseInt(_0xb01826(0x217))/0x5*(-parseInt(_0xb01826(0x24f))/0x6)+-parseInt(_0xb01826(0x226))/0x7+-parseInt(_0xb01826(0x23d))/0x8*(-parseInt(_0xb01826(0x256))/0x9);if(_0x23e158===_0x37e155)break;else _0x47c1d1['push'](_0x47c1d1['shift']());}catch(_0x52b479){_0x47c1d1['push'](_0x47c1d1['shift']());}}}(_0x1654,0x97f1f));import{CKEditorError as _0xb67b1d}from'ckeditor5/src/utils.js';import{Plugin as _0x2d3938}from'ckeditor5/src/core.js';function _0x1654(){const _0xe677f7=['Translate\x20the\x20content\x20to\x20Hindi\x20language.','Translate','Arabic','changeStyle','Confident','aiLicenseKeyTrial','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','translateChinese','info','pluginName','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','translate','aiLicenseKeyInvalid','Direct','continue','Translate\x20the\x20content\x20to\x20English\x20language.','translateGerman','7365nEIXMH','destroy','English','ai.aiAssistant.extraCommandGroups','German','requires','summarize','Continue','define','translateSpanish','push','legal','Improve\x20writing','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Translate\x20the\x20content\x20to\x20French\x20language.','2202284liUGrv','business','direct','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','_licenseKeyCheckInterval','casual','Change\x20tone','find','Translate\x20to\x20%0','Edit\x20or\x20review','Business','Poetic','config','Change\x20style','groupId','Generate\x20from\x20selection','get','translateFrench','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Legal','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','56VbgDVz','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Journalism','Simplified\x20Chinese','changeTone','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','journalism','editOrReview','translatePortuguese','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20ai\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Professional','confident','translateArabic','makeShorter','licenseKey','Hindi','2844jybIJL','Portuguese','translateEnglish','poetic','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','aiLicenseKeyTrialLimit:operations','Translate\x20the\x20content\x20to\x20German\x20language.','1047636XdAabi','Make\x20longer','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','1916842qwIkce','267395EvBlOe','forEach','Summarize','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','commands','ai.aiAssistant.commands','professional','init','improveWriting','AIAssistant','Spanish','ai-trial-license-key-reached-limit-changes','concat','editor','translateHindi','locale','Make\x20shorter','Translate\x20the\x20content\x20to\x20Arabic\x20language.','set','simplifyLanguage','4679844zMxedq','French','ai.aiAssistant.removeCommands','aiLicenseKeyValid','ai-invalid-license-key','Casual','filter','generate','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','includes','makeLonger','friendly','Friendly','1895718avrhAl','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Simplify\x20language'];_0x1654=function(){return _0xe677f7;};return _0x1654();}import _0x220d18 from'./aiassistantui.js';function _0x106c(_0x25be7a,_0x1b7a77){const _0x1654fd=_0x1654();return _0x106c=function(_0x106c8f,_0x24c9cf){_0x106c8f=_0x106c8f-0x1e9;let _0x5ae804=_0x1654fd[_0x106c8f];return _0x5ae804;},_0x106c(_0x25be7a,_0x1b7a77);}import _0x15e8fd from'./aiassistantediting.js';import{getTranslation as _0x4f581c}from'./utils/common-translations.js';export default class r extends _0x2d3938{static get[_0xb84113(0x21c)](){return[_0x220d18,_0x15e8fd];}static get[_0xb84113(0x20f)](){const _0x2d9d6d=_0xb84113;return _0x2d9d6d(0x1ea);}constructor(_0x40ff16){const _0x1b4b6d=_0xb84113;super(_0x40ff16);const _0x1e78ec=_0x40ff16[_0x1b4b6d(0x233)];_0x1e78ec[_0x1b4b6d(0x21f)](_0x1b4b6d(0x25f),getDefaultCommands(_0x40ff16[_0x1b4b6d(0x1f0)])),_0x1e78ec[_0x1b4b6d(0x21f)](_0x1b4b6d(0x21a),[]),_0x1e78ec[_0x1b4b6d(0x21f)](_0x1b4b6d(0x1f7),[]);const _0x28f64e=_0x1e78ec[_0x1b4b6d(0x237)](_0x1b4b6d(0x25f)),_0x3ee190=_0x1e78ec[_0x1b4b6d(0x237)](_0x1b4b6d(0x21a)),_0x55a083=_0x1e78ec[_0x1b4b6d(0x237)](_0x1b4b6d(0x1f7));_0x3ee190[_0x1b4b6d(0x25b)](_0x755add=>{const _0x1ed86a=_0x1b4b6d,_0xff30e8=_0x28f64e[_0x1ed86a(0x22e)](_0x3c4994=>_0x3c4994[_0x1ed86a(0x235)]===_0x755add[_0x1ed86a(0x235)]);_0xff30e8?_0xff30e8[_0x1ed86a(0x25e)]=_0xff30e8[_0x1ed86a(0x25e)][_0x1ed86a(0x1ed)](_0x755add[_0x1ed86a(0x25e)]):_0x28f64e[_0x1ed86a(0x221)](_0x755add);}),_0x28f64e[_0x1b4b6d(0x25b)](_0x28043c=>{const _0x4f054d=_0x1b4b6d;_0x28043c[_0x4f054d(0x25e)]=_0x28043c[_0x4f054d(0x25e)][_0x4f054d(0x1fb)](_0x434676=>!_0x55a083[_0x4f054d(0x1fe)](_0x434676['id']));}),_0x1e78ec[_0x1b4b6d(0x1f3)](_0x1b4b6d(0x25f),_0x28f64e);}[_0xb84113(0x261)](){const _0x16caf1=_0xb84113,_0x4d7ad0=this[_0x16caf1(0x1ee)];this[_0x16caf1(0x24d)]=_0x4d7ad0[_0x16caf1(0x233)][_0x16caf1(0x237)](_0x16caf1(0x24d)),this[_0x16caf1(0x22b)]=setInterval(()=>{const _0x242200=_0x16caf1;let _0x1e2b02;for(const _0x563eb7 in _0x4d7ad0){const _0x19d565=_0x563eb7,_0x3a1ac7=_0x4d7ad0[_0x19d565];if(_0x242200(0x20b)===_0x3a1ac7||_0x242200(0x212)===_0x3a1ac7||_0x242200(0x1f8)===_0x3a1ac7||_0x242200(0x254)===_0x3a1ac7){delete _0x4d7ad0[_0x19d565],_0x1e2b02=_0x3a1ac7;break;}}if(_0x242200(0x212)===_0x1e2b02)throw clearInterval(this[_0x242200(0x22b)]),new _0xb67b1d(_0x242200(0x1f9),null);if(_0x242200(0x20b)===_0x1e2b02&&console[_0x242200(0x20e)](_0x242200(0x247)),_0x242200(0x254)===_0x1e2b02)throw clearInterval(this[_0x242200(0x22b)]),new _0xb67b1d(_0x242200(0x1ec),null);_0x242200(0x1f8)===_0x1e2b02&&clearInterval(this[_0x242200(0x22b)]);},0x3e8);}[_0xb84113(0x218)](){const _0x2bc952=_0xb84113;this[_0x2bc952(0x22b)]&&clearInterval(this[_0x2bc952(0x22b)]);}}export function getDefaultCommands(_0x2d6f64){const _0x4b77da=_0xb84113;return[{'groupId':_0x4b77da(0x245),'groupLabel':_0x4f581c(_0x2d6f64,_0x4b77da(0x230)),'commands':[{'id':_0x4b77da(0x1e9),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x223)),'prompt':_0x4b77da(0x243)},{'id':_0x4b77da(0x24c),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x1f1)),'prompt':_0x4b77da(0x203)},{'id':_0x4b77da(0x1ff),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x257)),'prompt':_0x4b77da(0x248)},{'id':_0x4b77da(0x1f4),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x205)),'prompt':_0x4b77da(0x1fd)}]},{'groupId':_0x4b77da(0x1fc),'groupLabel':_0x4f581c(_0x2d6f64,_0x4b77da(0x236)),'commands':[{'id':_0x4b77da(0x21d),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x25c)),'prompt':_0x4b77da(0x258)},{'id':_0x4b77da(0x214),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x21e)),'prompt':_0x4b77da(0x22a)}]},{'groupId':_0x4b77da(0x241),'groupLabel':_0x4f581c(_0x2d6f64,_0x4b77da(0x22d)),'commands':[{'id':_0x4b77da(0x260),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x249)),'prompt':_0x4b77da(0x23e)},{'id':_0x4b77da(0x22c),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x1fa)),'prompt':_0x4b77da(0x23a)},{'id':_0x4b77da(0x228),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x213)),'prompt':_0x4b77da(0x210)},{'id':_0x4b77da(0x24a),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x20a)),'prompt':_0x4b77da(0x20c)},{'id':_0x4b77da(0x200),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x201)),'prompt':_0x4b77da(0x25d)}]},{'groupId':_0x4b77da(0x209),'groupLabel':_0x4f581c(_0x2d6f64,_0x4b77da(0x234)),'commands':[{'id':_0x4b77da(0x227),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x231)),'prompt':_0x4b77da(0x253)},{'id':_0x4b77da(0x222),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x23b)),'prompt':_0x4b77da(0x242)},{'id':_0x4b77da(0x244),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x23f)),'prompt':_0x4b77da(0x239)},{'id':_0x4b77da(0x252),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x232)),'prompt':_0x4b77da(0x229)}]},{'groupId':_0x4b77da(0x211),'groupLabel':_0x4f581c(_0x2d6f64,_0x4b77da(0x207)),'commands':[{'id':_0x4b77da(0x251),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x22f),[_0x4f581c(_0x2d6f64,_0x4b77da(0x219))]),'prompt':_0x4b77da(0x215)},{'id':_0x4b77da(0x220),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x22f),[_0x4f581c(_0x2d6f64,_0x4b77da(0x1eb))]),'prompt':_0x4b77da(0x204)},{'id':_0x4b77da(0x246),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x22f),[_0x4f581c(_0x2d6f64,_0x4b77da(0x250))]),'prompt':_0x4b77da(0x23c)},{'id':_0x4b77da(0x216),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x22f),[_0x4f581c(_0x2d6f64,_0x4b77da(0x21b))]),'prompt':_0x4b77da(0x255)},{'id':_0x4b77da(0x238),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x22f),[_0x4f581c(_0x2d6f64,_0x4b77da(0x1f6))]),'prompt':_0x4b77da(0x225)},{'id':_0x4b77da(0x20d),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x22f),[_0x4f581c(_0x2d6f64,_0x4b77da(0x240))]),'prompt':_0x4b77da(0x224)},{'id':_0x4b77da(0x1ef),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x22f),[_0x4f581c(_0x2d6f64,_0x4b77da(0x24e))]),'prompt':_0x4b77da(0x206)},{'id':_0x4b77da(0x24b),'label':_0x4f581c(_0x2d6f64,_0x4b77da(0x22f),[_0x4f581c(_0x2d6f64,_0x4b77da(0x208))]),'prompt':_0x4b77da(0x1f2)}]}];}
23
+ const _0x51eb07=_0x1df5;(function(_0x149854,_0x12ccbd){const _0x48c500=_0x1df5,_0x1fbeca=_0x149854();while(!![]){try{const _0x1b83d7=-parseInt(_0x48c500(0xe5))/0x1+-parseInt(_0x48c500(0xe4))/0x2+parseInt(_0x48c500(0xb8))/0x3+parseInt(_0x48c500(0xa0))/0x4+-parseInt(_0x48c500(0x7c))/0x5*(parseInt(_0x48c500(0xbc))/0x6)+parseInt(_0x48c500(0xa6))/0x7+parseInt(_0x48c500(0x79))/0x8*(parseInt(_0x48c500(0xce))/0x9);if(_0x1b83d7===_0x12ccbd)break;else _0x1fbeca['push'](_0x1fbeca['shift']());}catch(_0x1ea17f){_0x1fbeca['push'](_0x1fbeca['shift']());}}}(_0x2c33,0x21c37));import{CKEditorError as _0x1cda7b}from'ckeditor5/src/utils.js';import{Plugin as _0x3157f1}from'ckeditor5/src/core.js';import _0x50dda1 from'./aiassistantui.js';import _0x4f7e00 from'./aiassistantediting.js';import{getTranslation as _0x3b6a31}from'./utils/common-translations.js';export default class r extends _0x3157f1{static get[_0x51eb07(0x9b)](){return[_0x50dda1,_0x4f7e00];}static get[_0x51eb07(0xb1)](){const _0x549389=_0x51eb07;return _0x549389(0xbd);}constructor(_0x5de391){const _0x2ca4cd=_0x51eb07;super(_0x5de391);const _0x1d8b03=_0x5de391[_0x2ca4cd(0xc7)];_0x1d8b03[_0x2ca4cd(0x91)](_0x2ca4cd(0x9c),getDefaultCommands(_0x5de391[_0x2ca4cd(0xeb)])),_0x1d8b03[_0x2ca4cd(0x91)](_0x2ca4cd(0x8b),[]),_0x1d8b03[_0x2ca4cd(0x91)](_0x2ca4cd(0xe6),[]);const _0xbf336a=_0x1d8b03[_0x2ca4cd(0xd0)](_0x2ca4cd(0x9c)),_0x395252=_0x1d8b03[_0x2ca4cd(0xd0)](_0x2ca4cd(0x8b)),_0x45caac=_0x1d8b03[_0x2ca4cd(0xd0)](_0x2ca4cd(0xe6));_0x395252[_0x2ca4cd(0x7d)](_0x4df4bc=>{const _0x4a61ac=_0x2ca4cd,_0x3e6e47=_0xbf336a[_0x4a61ac(0xcf)](_0x13225d=>_0x13225d[_0x4a61ac(0x93)]===_0x4df4bc[_0x4a61ac(0x93)]);_0x3e6e47?_0x3e6e47[_0x4a61ac(0xa2)]=_0x3e6e47[_0x4a61ac(0xa2)][_0x4a61ac(0x84)](_0x4df4bc[_0x4a61ac(0xa2)]):_0xbf336a[_0x4a61ac(0xa1)](_0x4df4bc);}),_0xbf336a[_0x2ca4cd(0x7d)](_0x4ce5b7=>{const _0x316a97=_0x2ca4cd;_0x4ce5b7[_0x316a97(0xa2)]=_0x4ce5b7[_0x316a97(0xa2)][_0x316a97(0xde)](_0x5135b6=>!_0x45caac[_0x316a97(0x9a)](_0x5135b6['id']));}),_0x1d8b03[_0x2ca4cd(0x7f)](_0x2ca4cd(0x9c),_0xbf336a);}[_0x51eb07(0x9d)](){const _0x290985=_0x51eb07,_0x1c8122=this[_0x290985(0xd2)];this[_0x290985(0x92)]=_0x1c8122[_0x290985(0xc7)][_0x290985(0xd0)](_0x290985(0x92)),this[_0x290985(0xa9)]=setInterval(()=>{const _0x4e1f69=_0x290985;let _0x20ebb4;for(const _0xe2c6d in _0x1c8122){const _0x1b6157=_0xe2c6d,_0x42e47d=_0x1c8122[_0x1b6157];if(_0x4e1f69(0xbf)===_0x42e47d||_0x4e1f69(0x86)===_0x42e47d||_0x4e1f69(0x8e)===_0x42e47d||_0x4e1f69(0xc5)===_0x42e47d){delete _0x1c8122[_0x1b6157],_0x20ebb4=_0x42e47d;break;}}if(_0x4e1f69(0x86)===_0x20ebb4)throw clearInterval(this[_0x4e1f69(0xa9)]),new _0x1cda7b(_0x4e1f69(0xe7),null);if(_0x4e1f69(0xbf)===_0x20ebb4&&console[_0x4e1f69(0x9f)](_0x4e1f69(0xa8)),_0x4e1f69(0xc5)===_0x20ebb4)throw clearInterval(this[_0x4e1f69(0xa9)]),new _0x1cda7b(_0x4e1f69(0xb6),null);_0x4e1f69(0x8e)===_0x20ebb4&&clearInterval(this[_0x4e1f69(0xa9)]);},0x3e8);}[_0x51eb07(0xea)](){const _0x389b93=_0x51eb07;this[_0x389b93(0xa9)]&&clearInterval(this[_0x389b93(0xa9)]);}}function _0x1df5(_0x5716fc,_0x4054ad){const _0x2c33bc=_0x2c33();return _0x1df5=function(_0x1df5f1,_0x5e58f2){_0x1df5f1=_0x1df5f1-0x76;let _0xa3d310=_0x2c33bc[_0x1df5f1];return _0xa3d310;},_0x1df5(_0x5716fc,_0x4054ad);}function _0x2c33(){const _0x2e1b8f=['Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Translate\x20the\x20content\x20to\x20German\x20language.','Improve\x20writing','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Poetic','Professional','includes','requires','ai.aiAssistant.commands','init','translateGerman','info','829256rKqXgP','push','commands','Legal','translateHindi','Translate\x20the\x20content\x20to\x20Arabic\x20language.','152481eBIeml','improveWriting','You\x20are\x20using\x20the\x20trial\x20version\x20of\x20CKEditor\x205\x20ai\x20plugin\x20with\x20limited\x20usage.\x20Make\x20sure\x20you\x20will\x20not\x20use\x20it\x20in\x20the\x20production\x20environment.','_licenseKeyCheckInterval','Direct','changeTone','Translate\x20the\x20content\x20to\x20French\x20language.','Summarize','simplifyLanguage','generate','Spanish','pluginName','makeShorter','summarize','Simplify\x20language','Business','ai-trial-license-key-reached-limit-changes','translatePortuguese','470700SFNalR','translateArabic','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','translate','82974zSQgNG','AIAssistant','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','aiLicenseKeyTrial','Hindi','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','translateEnglish','Translate\x20the\x20content\x20to\x20English\x20language.','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','aiLicenseKeyTrialLimit:operations','Make\x20shorter','config','Friendly','Translate\x20to\x20%0','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','professional','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','72YTMEkK','find','get','direct','editor','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Make\x20longer','changeStyle','journalism','Portuguese','Change\x20tone','translateFrench','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Continue','Generate\x20from\x20selection','poetic','filter','Confident','business','makeLonger','Change\x20style','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','19112eTHNeI','219715JyEkXT','ai.aiAssistant.removeCommands','ai-invalid-license-key','French','confident','destroy','locale','Edit\x20or\x20review','continue','legal','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Arabic','Journalism','23056epagys','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','15ILlEhy','forEach','German','set','translateSpanish','casual','Casual','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','concat','Translate','aiLicenseKeyInvalid','translateChinese','Simplified\x20Chinese','friendly','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','ai.aiAssistant.extraCommandGroups','English','editOrReview','aiLicenseKeyValid','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','define','licenseKey','groupId'];_0x2c33=function(){return _0x2e1b8f;};return _0x2c33();}export function getDefaultCommands(_0x15ffe4){const _0x520077=_0x51eb07;return[{'groupId':_0x520077(0x8d),'groupLabel':_0x3b6a31(_0x15ffe4,_0x520077(0xec)),'commands':[{'id':_0x520077(0xa7),'label':_0x3b6a31(_0x15ffe4,_0x520077(0x96)),'prompt':_0x520077(0xe3)},{'id':_0x520077(0xb2),'label':_0x3b6a31(_0x15ffe4,_0x520077(0xc6)),'prompt':_0x520077(0x8a)},{'id':_0x520077(0xe1),'label':_0x3b6a31(_0x15ffe4,_0x520077(0xd4)),'prompt':_0x520077(0xc4)},{'id':_0x520077(0xae),'label':_0x3b6a31(_0x15ffe4,_0x520077(0xb4)),'prompt':_0x520077(0x94)}]},{'groupId':_0x520077(0xaf),'groupLabel':_0x3b6a31(_0x15ffe4,_0x520077(0xdc)),'commands':[{'id':_0x520077(0xb3),'label':_0x3b6a31(_0x15ffe4,_0x520077(0xad)),'prompt':_0x520077(0xba)},{'id':_0x520077(0xed),'label':_0x3b6a31(_0x15ffe4,_0x520077(0xdb)),'prompt':_0x520077(0x90)}]},{'groupId':_0x520077(0xab),'groupLabel':_0x3b6a31(_0x15ffe4,_0x520077(0xd8)),'commands':[{'id':_0x520077(0xcc),'label':_0x3b6a31(_0x15ffe4,_0x520077(0x99)),'prompt':_0x520077(0x76)},{'id':_0x520077(0x81),'label':_0x3b6a31(_0x15ffe4,_0x520077(0x82)),'prompt':_0x520077(0x83)},{'id':_0x520077(0xd1),'label':_0x3b6a31(_0x15ffe4,_0x520077(0xaa)),'prompt':_0x520077(0xbe)},{'id':_0x520077(0xe9),'label':_0x3b6a31(_0x15ffe4,_0x520077(0xdf)),'prompt':_0x520077(0x97)},{'id':_0x520077(0x89),'label':_0x3b6a31(_0x15ffe4,_0x520077(0xc8)),'prompt':_0x520077(0xc1)}]},{'groupId':_0x520077(0xd5),'groupLabel':_0x3b6a31(_0x15ffe4,_0x520077(0xe2)),'commands':[{'id':_0x520077(0xe0),'label':_0x3b6a31(_0x15ffe4,_0x520077(0xb5)),'prompt':_0x520077(0xcd)},{'id':_0x520077(0xee),'label':_0x3b6a31(_0x15ffe4,_0x520077(0xa3)),'prompt':_0x520077(0x7b)},{'id':_0x520077(0xd6),'label':_0x3b6a31(_0x15ffe4,_0x520077(0x78)),'prompt':_0x520077(0x8f)},{'id':_0x520077(0xdd),'label':_0x3b6a31(_0x15ffe4,_0x520077(0x98)),'prompt':_0x520077(0x7a)}]},{'groupId':_0x520077(0xbb),'groupLabel':_0x3b6a31(_0x15ffe4,_0x520077(0x85)),'commands':[{'id':_0x520077(0xc2),'label':_0x3b6a31(_0x15ffe4,_0x520077(0xc9),[_0x3b6a31(_0x15ffe4,_0x520077(0x8c))]),'prompt':_0x520077(0xc3)},{'id':_0x520077(0x80),'label':_0x3b6a31(_0x15ffe4,_0x520077(0xc9),[_0x3b6a31(_0x15ffe4,_0x520077(0xb0))]),'prompt':_0x520077(0xd3)},{'id':_0x520077(0xb7),'label':_0x3b6a31(_0x15ffe4,_0x520077(0xc9),[_0x3b6a31(_0x15ffe4,_0x520077(0xd7))]),'prompt':_0x520077(0xcb)},{'id':_0x520077(0x9e),'label':_0x3b6a31(_0x15ffe4,_0x520077(0xc9),[_0x3b6a31(_0x15ffe4,_0x520077(0x7e))]),'prompt':_0x520077(0x95)},{'id':_0x520077(0xd9),'label':_0x3b6a31(_0x15ffe4,_0x520077(0xc9),[_0x3b6a31(_0x15ffe4,_0x520077(0xe8))]),'prompt':_0x520077(0xac)},{'id':_0x520077(0x87),'label':_0x3b6a31(_0x15ffe4,_0x520077(0xc9),[_0x3b6a31(_0x15ffe4,_0x520077(0x88))]),'prompt':_0x520077(0xda)},{'id':_0x520077(0xa4),'label':_0x3b6a31(_0x15ffe4,_0x520077(0xc9),[_0x3b6a31(_0x15ffe4,_0x520077(0xc0))]),'prompt':_0x520077(0xca)},{'id':_0x520077(0xb9),'label':_0x3b6a31(_0x15ffe4,_0x520077(0xc9),[_0x3b6a31(_0x15ffe4,_0x520077(0x77))]),'prompt':_0x520077(0xa5)}]}];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d7e46=_0x3707;(function(_0x175ca2,_0x94f1c5){const _0x24a31a=_0x3707,_0x77aa77=_0x175ca2();while(!![]){try{const _0x4b1b96=parseInt(_0x24a31a(0x9f))/0x1*(parseInt(_0x24a31a(0xb1))/0x2)+parseInt(_0x24a31a(0xc5))/0x3+parseInt(_0x24a31a(0xb8))/0x4+-parseInt(_0x24a31a(0xa8))/0x5+-parseInt(_0x24a31a(0xc9))/0x6+parseInt(_0x24a31a(0xa0))/0x7*(-parseInt(_0x24a31a(0xd7))/0x8)+parseInt(_0x24a31a(0xbb))/0x9;if(_0x4b1b96===_0x94f1c5)break;else _0x77aa77['push'](_0x77aa77['shift']());}catch(_0x19e961){_0x77aa77['push'](_0x77aa77['shift']());}}}(_0x3eda,0xeaf5c));function _0x3707(_0x697853,_0x41c0d7){const _0x3eda83=_0x3eda();return _0x3707=function(_0x370730,_0x25d753){_0x370730=_0x370730-0x98;let _0x14f81d=_0x3eda83[_0x370730];return _0x14f81d;},_0x3707(_0x697853,_0x41c0d7);}import{Plugin as _0x4d10e8}from'ckeditor5/src/core.js';function _0x3eda(){const _0x4dd71f=['data','ck-fake-ai-selection-candidate','getLastPosition','addMarker','conversion','end','createPositionAfter','createRange','4202034bVdTij','start','markerToHighlight','editingDowncast','2760972KbmUgQ','schema','markers','createSelection','markerToElement','ck-ai-assistant-ui_theme','processor','getLastMatchingPosition','ai.useTheme','get','ai-ui','isContent','change','pluginName','93768CNCsAA','getSelectedBlocks','showFakeVisualSelection','getFirstRange','isAtEnd','selection','removeMarker','model','9rSsvzQ','791WZxcjn','insertContent','toModel','editor','from','ai-ui-candidate','span','document','6098585HptjDD','init','pop','setSelection','has','config','push','AIAssistantEditing','canEditAt','13452LmddoK','hideFakeVisualSelection','insertContentBelow','getRange','updateMarker','length','ck-fake-ai-selection','174220JByQzs','ck-fake-ai-selection_collapsed','for','22157829Vtzcus','toView'];_0x3eda=function(){return _0x4dd71f;};return _0x3eda();}const s=_0x5d7e46(0xd3),c=_0x5d7e46(0xa5);export default class i extends _0x4d10e8{static get[_0x5d7e46(0xd6)](){const _0xe16eb6=_0x5d7e46;return _0xe16eb6(0xaf);}[_0x5d7e46(0xa9)](){const _0x266c41=_0x5d7e46,{editor:_0x282631}=this,_0x4b6e49=[_0x266c41(0xb7)];_0x282631[_0x266c41(0xad)][_0x266c41(0xd2)](_0x266c41(0xd1))&&_0x4b6e49[_0x266c41(0xae)](_0x266c41(0xce)),_0x282631[_0x266c41(0xc1)][_0x266c41(0xba)](_0x266c41(0xc8))[_0x266c41(0xc7)]({'model':s,'view':{'classes':_0x4b6e49,'priority':0xc}}),_0x282631[_0x266c41(0xc1)][_0x266c41(0xba)](_0x266c41(0xc8))[_0x266c41(0xcd)]({'model':s,'view':{'name':_0x266c41(0xa6),'classes':[_0x266c41(0xb7),_0x266c41(0xb9)],'priority':0xc}}),_0x282631[_0x266c41(0xc1)][_0x266c41(0xba)](_0x266c41(0xc8))[_0x266c41(0xc7)]({'model':c,'view':{'classes':[_0x266c41(0xbe)],'priority':0x19}}),_0x282631[_0x266c41(0xc1)][_0x266c41(0xba)](_0x266c41(0xc8))[_0x266c41(0xcd)]({'model':c,'view':{'name':_0x266c41(0xa6),'classes':[_0x266c41(0xbe),_0x266c41(0xb9)],'priority':0x19}});}[_0x5d7e46(0x99)](_0x267e20){const _0x154b08=_0x5d7e46,_0x339112=this[_0x154b08(0xa3)][_0x154b08(0x9e)],_0x54d61c=_0x267e20?c:s;_0x339112[_0x154b08(0xd5)](_0x4fca53=>{const _0x1a59a8=_0x154b08,_0x2160ba=_0x339112[_0x1a59a8(0xa7)][_0x1a59a8(0x9c)][_0x1a59a8(0x9a)]();if(_0x339112[_0x1a59a8(0xcb)][_0x1a59a8(0xac)](_0x54d61c))_0x4fca53[_0x1a59a8(0xb5)](_0x54d61c,{'range':_0x2160ba});else{if(_0x2160ba[_0x1a59a8(0xc6)][_0x1a59a8(0x9b)]){const _0x308c50=_0x2160ba[_0x1a59a8(0xc6)][_0x1a59a8(0xd0)](({item:_0x56cf54})=>!_0x339112[_0x1a59a8(0xca)][_0x1a59a8(0xd4)](_0x56cf54),{'boundaries':_0x2160ba});_0x4fca53[_0x1a59a8(0xc0)](_0x54d61c,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4fca53[_0x1a59a8(0xc4)](_0x308c50,_0x2160ba[_0x1a59a8(0xc2)])});}else _0x4fca53[_0x1a59a8(0xc0)](_0x54d61c,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x2160ba});}});}[_0x5d7e46(0xb2)](_0x43ba31){const _0x5d76ac=_0x5d7e46,_0xfa1c4=this[_0x5d76ac(0xa3)][_0x5d76ac(0x9e)],_0x48ee0a=_0x43ba31?c:s;_0xfa1c4[_0x5d76ac(0xcb)][_0x5d76ac(0xac)](_0x48ee0a)&&_0xfa1c4[_0x5d76ac(0xd5)](_0x38b92a=>{const _0x40eef5=_0x5d76ac;_0x38b92a[_0x40eef5(0x9d)](_0x48ee0a);});}[_0x5d7e46(0xa1)](_0xa0dd8d,_0x5e8ed7){const _0x382087=_0x5d7e46,_0x24161a=_0x5e8ed7||this[_0x382087(0xa3)][_0x382087(0x9e)][_0x382087(0xcb)][_0x382087(0xd2)](s)[_0x382087(0xb4)]();if(!this[_0x382087(0xa3)][_0x382087(0x9e)][_0x382087(0xb0)](_0x24161a))return;const _0x2403db=this[_0x382087(0xa3)][_0x382087(0xbd)][_0x382087(0xcf)][_0x382087(0xbc)](_0xa0dd8d),_0x5e5f8e=this[_0x382087(0xa3)][_0x382087(0xbd)][_0x382087(0xa2)](_0x2403db);this[_0x382087(0xa3)][_0x382087(0x9e)][_0x382087(0xd5)](_0x3f29af=>{const _0x5591ff=_0x382087;this[_0x5591ff(0xb2)]();const _0x2d398b=this[_0x5591ff(0xa3)][_0x5591ff(0x9e)][_0x5591ff(0xa1)](_0x5e5f8e,_0x24161a);_0x2d398b&&_0x3f29af[_0x5591ff(0xab)](_0x2d398b);});}[_0x5d7e46(0xb3)](_0x586441){const _0x3ac770=_0x5d7e46,{model:_0x100803}=this[_0x3ac770(0xa3)],_0x3ec5e1=Array[_0x3ac770(0xa4)](_0x100803[_0x3ac770(0xcc)](this[_0x3ac770(0xa3)][_0x3ac770(0x9e)][_0x3ac770(0xcb)][_0x3ac770(0xd2)](s)[_0x3ac770(0xb4)]())[_0x3ac770(0x98)]()),_0x44b68d=_0x3ec5e1[_0x3ac770(0xb6)]?_0x100803[_0x3ac770(0xc3)](_0x3ec5e1[_0x3ac770(0xaa)]()):_0x100803[_0x3ac770(0xa7)][_0x3ac770(0x9c)][_0x3ac770(0xbf)]();this[_0x3ac770(0xa1)](_0x586441,_0x44b68d);}}
23
+ function _0x313c(_0xf72768,_0x5d20a1){const _0x25c372=_0x25c3();return _0x313c=function(_0x313c91,_0x212489){_0x313c91=_0x313c91-0x144;let _0x23b9c2=_0x25c372[_0x313c91];return _0x23b9c2;},_0x313c(_0xf72768,_0x5d20a1);}const _0x16af29=_0x313c;(function(_0x83b236,_0x3be7e0){const _0x35d1f4=_0x313c,_0x4cc5d3=_0x83b236();while(!![]){try{const _0x1cc302=parseInt(_0x35d1f4(0x15d))/0x1*(parseInt(_0x35d1f4(0x15a))/0x2)+-parseInt(_0x35d1f4(0x152))/0x3*(-parseInt(_0x35d1f4(0x176))/0x4)+parseInt(_0x35d1f4(0x171))/0x5*(-parseInt(_0x35d1f4(0x16f))/0x6)+-parseInt(_0x35d1f4(0x160))/0x7*(-parseInt(_0x35d1f4(0x17c))/0x8)+parseInt(_0x35d1f4(0x15b))/0x9+-parseInt(_0x35d1f4(0x162))/0xa*(-parseInt(_0x35d1f4(0x147))/0xb)+parseInt(_0x35d1f4(0x157))/0xc*(-parseInt(_0x35d1f4(0x186))/0xd);if(_0x1cc302===_0x3be7e0)break;else _0x4cc5d3['push'](_0x4cc5d3['shift']());}catch(_0x26bdfb){_0x4cc5d3['push'](_0x4cc5d3['shift']());}}}(_0x25c3,0x62923));import{Plugin as _0x17e6b5}from'ckeditor5/src/core.js';const s=_0x16af29(0x14b),c=_0x16af29(0x174);function _0x25c3(){const _0x1fd211=['conversion','model','ck-fake-ai-selection','getFirstRange','has','isContent','pluginName','push','addMarker','start','6linmbI','editingDowncast','232955RXgqzd','hideFakeVisualSelection','markers','ai-ui-candidate','ck-fake-ai-selection_collapsed','4dTpMUp','createPositionAfter','insertContentBelow','markerToElement','markerToHighlight','init','8EwjUzL','editor','length','data','AIAssistantEditing','end','ai.useTheme','from','toView','showFakeVisualSelection','8105773fLygCd','getLastPosition','canEditAt','selection','updateMarker','11DdBVNj','toModel','ck-ai-assistant-ui_theme','getLastMatchingPosition','ai-ui','pop','setSelection','createRange','for','config','insertContent','813465DaKGeu','get','schema','span','processor','36PgNAYI','document','isAtEnd','2NHjrXp','4293486UumAjg','change','780527osRnkD','createSelection','getSelectedBlocks','2907023nGaFbM','removeMarker','3768760pFwuHV','getRange','ck-fake-ai-selection-candidate'];_0x25c3=function(){return _0x1fd211;};return _0x25c3();}export default class i extends _0x17e6b5{static get[_0x16af29(0x16b)](){const _0x4d05f3=_0x16af29;return _0x4d05f3(0x180);}[_0x16af29(0x17b)](){const _0x221f10=_0x16af29,{editor:_0x29ce71}=this,_0x16c8a2=[_0x221f10(0x167)];_0x29ce71[_0x221f10(0x150)][_0x221f10(0x153)](_0x221f10(0x182))&&_0x16c8a2[_0x221f10(0x16c)](_0x221f10(0x149)),_0x29ce71[_0x221f10(0x165)][_0x221f10(0x14f)](_0x221f10(0x170))[_0x221f10(0x17a)]({'model':s,'view':{'classes':_0x16c8a2,'priority':0xc}}),_0x29ce71[_0x221f10(0x165)][_0x221f10(0x14f)](_0x221f10(0x170))[_0x221f10(0x179)]({'model':s,'view':{'name':_0x221f10(0x155),'classes':[_0x221f10(0x167),_0x221f10(0x175)],'priority':0xc}}),_0x29ce71[_0x221f10(0x165)][_0x221f10(0x14f)](_0x221f10(0x170))[_0x221f10(0x17a)]({'model':c,'view':{'classes':[_0x221f10(0x164)],'priority':0x19}}),_0x29ce71[_0x221f10(0x165)][_0x221f10(0x14f)](_0x221f10(0x170))[_0x221f10(0x179)]({'model':c,'view':{'name':_0x221f10(0x155),'classes':[_0x221f10(0x164),_0x221f10(0x175)],'priority':0x19}});}[_0x16af29(0x185)](_0x56ab28){const _0xc0bbb0=_0x16af29,_0x16f52d=this[_0xc0bbb0(0x17d)][_0xc0bbb0(0x166)],_0x24a1db=_0x56ab28?c:s;_0x16f52d[_0xc0bbb0(0x15c)](_0x2890f0=>{const _0x451ef7=_0xc0bbb0,_0x5d5c5a=_0x16f52d[_0x451ef7(0x158)][_0x451ef7(0x145)][_0x451ef7(0x168)]();if(_0x16f52d[_0x451ef7(0x173)][_0x451ef7(0x169)](_0x24a1db))_0x2890f0[_0x451ef7(0x146)](_0x24a1db,{'range':_0x5d5c5a});else{if(_0x5d5c5a[_0x451ef7(0x16e)][_0x451ef7(0x159)]){const _0x36524c=_0x5d5c5a[_0x451ef7(0x16e)][_0x451ef7(0x14a)](({item:_0x47a64c})=>!_0x16f52d[_0x451ef7(0x154)][_0x451ef7(0x16a)](_0x47a64c),{'boundaries':_0x5d5c5a});_0x2890f0[_0x451ef7(0x16d)](_0x24a1db,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x2890f0[_0x451ef7(0x14e)](_0x36524c,_0x5d5c5a[_0x451ef7(0x181)])});}else _0x2890f0[_0x451ef7(0x16d)](_0x24a1db,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5d5c5a});}});}[_0x16af29(0x172)](_0x4030d1){const _0x35bd6d=_0x16af29,_0x5dd7cc=this[_0x35bd6d(0x17d)][_0x35bd6d(0x166)],_0x340645=_0x4030d1?c:s;_0x5dd7cc[_0x35bd6d(0x173)][_0x35bd6d(0x169)](_0x340645)&&_0x5dd7cc[_0x35bd6d(0x15c)](_0x34ee24=>{const _0x2fcbb8=_0x35bd6d;_0x34ee24[_0x2fcbb8(0x161)](_0x340645);});}[_0x16af29(0x151)](_0x4b528d,_0x526127){const _0x344af7=_0x16af29,_0x49a98a=_0x526127||this[_0x344af7(0x17d)][_0x344af7(0x166)][_0x344af7(0x173)][_0x344af7(0x153)](s)[_0x344af7(0x163)]();if(!this[_0x344af7(0x17d)][_0x344af7(0x166)][_0x344af7(0x144)](_0x49a98a))return;const _0x258b64=this[_0x344af7(0x17d)][_0x344af7(0x17f)][_0x344af7(0x156)][_0x344af7(0x184)](_0x4b528d),_0x3d6936=this[_0x344af7(0x17d)][_0x344af7(0x17f)][_0x344af7(0x148)](_0x258b64);this[_0x344af7(0x17d)][_0x344af7(0x166)][_0x344af7(0x15c)](_0x373e58=>{const _0x33a24d=_0x344af7;this[_0x33a24d(0x172)]();const _0x4a717e=this[_0x33a24d(0x17d)][_0x33a24d(0x166)][_0x33a24d(0x151)](_0x3d6936,_0x49a98a);_0x4a717e&&_0x373e58[_0x33a24d(0x14d)](_0x4a717e);});}[_0x16af29(0x178)](_0x29f2de){const _0x476e36=_0x16af29,{model:_0x576ef0}=this[_0x476e36(0x17d)],_0x119849=Array[_0x476e36(0x183)](_0x576ef0[_0x476e36(0x15e)](this[_0x476e36(0x17d)][_0x476e36(0x166)][_0x476e36(0x173)][_0x476e36(0x153)](s)[_0x476e36(0x163)]())[_0x476e36(0x15f)]()),_0x639c52=_0x119849[_0x476e36(0x17e)]?_0x576ef0[_0x476e36(0x177)](_0x119849[_0x476e36(0x14c)]()):_0x576ef0[_0x476e36(0x158)][_0x476e36(0x145)][_0x476e36(0x187)]();this[_0x476e36(0x151)](_0x29f2de,_0x639c52);}}