@ckeditor/ckeditor5-ai 41.3.0-alpha.2 → 41.3.0-alpha.4

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 (76) hide show
  1. package/build/ai.js +6 -6
  2. package/dist/translations/af.js +1 -1
  3. package/dist/translations/ar.js +1 -1
  4. package/dist/translations/bg.js +1 -1
  5. package/dist/translations/bn.js +1 -1
  6. package/dist/translations/bs.js +1 -1
  7. package/dist/translations/ca.js +1 -1
  8. package/dist/translations/cs.js +1 -1
  9. package/dist/translations/da.js +1 -1
  10. package/dist/translations/de-ch.js +1 -1
  11. package/dist/translations/de.js +1 -1
  12. package/dist/translations/el.js +1 -1
  13. package/dist/translations/en-au.js +1 -1
  14. package/dist/translations/es-co.js +1 -1
  15. package/dist/translations/es.js +1 -1
  16. package/dist/translations/et.js +1 -1
  17. package/dist/translations/fa.js +1 -1
  18. package/dist/translations/fi.js +1 -1
  19. package/dist/translations/fr.js +1 -1
  20. package/dist/translations/gl.js +1 -1
  21. package/dist/translations/he.js +1 -1
  22. package/dist/translations/hi.js +1 -1
  23. package/dist/translations/hr.js +1 -1
  24. package/dist/translations/hu.js +1 -1
  25. package/dist/translations/id.js +1 -1
  26. package/dist/translations/it.js +1 -1
  27. package/dist/translations/ja.js +1 -1
  28. package/dist/translations/jv.js +1 -1
  29. package/dist/translations/ko.js +1 -1
  30. package/dist/translations/lt.js +1 -1
  31. package/dist/translations/lv.js +1 -1
  32. package/dist/translations/ms.js +1 -1
  33. package/dist/translations/nl.js +1 -1
  34. package/dist/translations/no.js +1 -1
  35. package/dist/translations/pl.js +1 -1
  36. package/dist/translations/pt-br.js +1 -1
  37. package/dist/translations/pt.js +1 -1
  38. package/dist/translations/ro.js +1 -1
  39. package/dist/translations/ru.js +1 -1
  40. package/dist/translations/sk.js +1 -1
  41. package/dist/translations/sr-latn.js +1 -1
  42. package/dist/translations/sr.js +1 -1
  43. package/dist/translations/sv.js +1 -1
  44. package/dist/translations/th.js +1 -1
  45. package/dist/translations/tk.js +1 -1
  46. package/dist/translations/tr.js +1 -1
  47. package/dist/translations/ug.js +1 -1
  48. package/dist/translations/uk.js +1 -1
  49. package/dist/translations/ur.js +1 -1
  50. package/dist/translations/uz.js +1 -1
  51. package/dist/translations/vi.js +1 -1
  52. package/dist/translations/zh-cn.js +1 -1
  53. package/dist/translations/zh.js +1 -1
  54. package/package.json +4 -4
  55. package/src/adapters/aiadapter.js +1 -1
  56. package/src/adapters/aitextadapter.js +1 -1
  57. package/src/adapters/awstextadapter.js +1 -1
  58. package/src/adapters/openaitextadapter.js +1 -1
  59. package/src/aiassistant.js +1 -1
  60. package/src/aiassistantediting.js +1 -1
  61. package/src/aiassistantui.js +1 -1
  62. package/src/index.js +1 -1
  63. package/src/ui/aiassistantcontroller.js +1 -1
  64. package/src/ui/dropdown/aicommandslistview.js +1 -1
  65. package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
  66. package/src/ui/dropdown/labelwithhighlightview.js +1 -1
  67. package/src/ui/form/aiformcontentarea.js +1 -1
  68. package/src/ui/form/aiformerrorview.js +1 -1
  69. package/src/ui/form/aiformpromptview.js +1 -1
  70. package/src/ui/form/aiformtoolbarview.js +1 -1
  71. package/src/ui/form/aiformview.js +1 -1
  72. package/src/ui/form/aihistorylistitemview.js +1 -1
  73. package/src/ui/form/aihistorylistview.js +1 -1
  74. package/src/ui/form/prompthistory.js +1 -1
  75. package/src/ui/showaiassistantcommand.js +1 -1
  76. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'zh-cn':{'dictionary':{'Edit\x20or\x20review':'编辑或审核','Improve\x20writing':'改进写作','Make\x20shorter':'缩短','Make\x20longer':'加长','Simplify\x20language':'简化语言','Generate\x20from\x20selection':'根据选择内容生成','Summarize':'摘要','Continue':'继续','Change\x20tone':'更改基调','Professional':'专业','Casual':'随意','Direct':'直接','Confident':'自信','Friendly':'友好','Change\x20style':'更改风格','Business':'商务','Legal':'法律','Journalism':'旅游','Poetic':'诗意','Translate':'翻译','Translate\x20to\x20%0':'翻译为%0','English':'英语','Spanish':'西班牙语','German':'德语','Portuguese':'葡萄牙语','French':'法语','Simplified\x20Chinese':'简体中文','Hindi':'印地语','Arabic':'阿拉伯语','AI\x20Assistant':'AI\x20助手','AI\x20Commands':'AI\x20命令','Ask\x20AI\x20to\x20edit\x20or\x20generate':'要求\x20AI\x20编辑或生成','Ask\x20AI\x20to\x20improve\x20generated\x20text':'要求\x20AI\x20改进生成的文本','Copy':'复制','Submit':'提交','Insert\x20below':'在下面插入','Try\x20again':'重试','Stop':'停止','AI\x20is\x20writing...':'AI\x20正在撰写……','History':'历史记录','Empty\x20history':'空历史记录','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'向\x20AI\x20提问,您的提示词将在此处列出,供您以后使用。','Prompt\x20history':'提示词历史记录','Search\x20AI\x20command':'搜索\x20AI\x20命令','No\x20commands\x20found':'未找到命令','No\x20commands\x20available':'没有可用的命令','AI_REPLACE_CONTENT':'替换','AI_INSERT_CONTENT':'插入','AI_ERROR_GET_HEADERS':'准备请求头失败','AI_ERROR_GET_PARAMETERS':'请求参数准备失败','AI_ERROR_UNSUPPORTED_MODEL':'不支持请求的\x20AI\x20模型\x20(\x22%0\x22)','AI_ERROR_CONTEXT_LENGTH':'选择的内容过长','AI_ERROR_MODERATION':'请求的查询不符合审查规则','AI_ERROR_FAILED':'跟\x20AI\x20服务通信失败'},'getPluralForm':_0x25d17c=>0x0}};
23
+ export default{'zh-cn':{'dictionary':{'Edit\x20or\x20review':'编辑或审核','Improve\x20writing':'改进写作','Make\x20shorter':'缩短','Make\x20longer':'加长','Simplify\x20language':'简化语言','Generate\x20from\x20selection':'根据选择内容生成','Summarize':'摘要','Continue':'继续','Change\x20tone':'更改基调','Professional':'专业','Casual':'随意','Direct':'直接','Confident':'自信','Friendly':'友好','Change\x20style':'更改风格','Business':'商务','Legal':'法律','Journalism':'旅游','Poetic':'诗意','Translate':'翻译','Translate\x20to\x20%0':'翻译为%0','English':'英语','Spanish':'西班牙语','German':'德语','Portuguese':'葡萄牙语','French':'法语','Simplified\x20Chinese':'简体中文','Hindi':'印地语','Arabic':'阿拉伯语','AI\x20Assistant':'AI\x20助手','AI\x20Commands':'AI\x20命令','Ask\x20AI\x20to\x20edit\x20or\x20generate':'要求\x20AI\x20编辑或生成','Ask\x20AI\x20to\x20improve\x20generated\x20text':'要求\x20AI\x20改进生成的文本','Copy':'复制','Submit':'提交','Insert\x20below':'在下面插入','Try\x20again':'重试','Stop':'停止','AI\x20is\x20writing...':'AI\x20正在撰写……','History':'历史记录','Empty\x20history':'空历史记录','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'向\x20AI\x20提问,您的提示词将在此处列出,供您以后使用。','Prompt\x20history':'提示词历史记录','Search\x20AI\x20command':'搜索\x20AI\x20命令','No\x20commands\x20found':'未找到命令','No\x20commands\x20available':'没有可用的命令','AI_REPLACE_CONTENT':'替换','AI_INSERT_CONTENT':'插入','AI_ERROR_GET_HEADERS':'准备请求头失败','AI_ERROR_GET_PARAMETERS':'请求参数准备失败','AI_ERROR_UNSUPPORTED_MODEL':'不支持请求的\x20AI\x20模型\x20(\x22%0\x22)','AI_ERROR_CONTEXT_LENGTH':'选择的内容过长','AI_ERROR_MODERATION':'请求的查询不符合审查规则','AI_ERROR_FAILED':'跟\x20AI\x20服务通信失败'},'getPluralForm':_0x59e7a1=>0x0}};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default{'zh':{'dictionary':{'Edit\x20or\x20review':'編輯或檢閱','Improve\x20writing':'改善寫作','Make\x20shorter':'短一點','Make\x20longer':'長一點','Simplify\x20language':'簡化用語','Generate\x20from\x20selection':'依選擇範圍生成','Summarize':'總結','Continue':'繼續','Change\x20tone':'改變語調','Professional':'專業','Casual':'非正式','Direct':'直接','Confident':'自信','Friendly':'友善','Change\x20style':'改變風格','Business':'業務','Legal':'法務','Journalism':'報導','Poetic':'詩意','Translate':'翻譯','Translate\x20to\x20%0':'翻譯為%0','English':'英文','Spanish':'西班牙文','German':'德文','Portuguese':'葡萄牙文','French':'法文','Simplified\x20Chinese':'簡體中文','Hindi':'印地文','Arabic':'阿拉伯文','AI\x20Assistant':'AI\x20助理','AI\x20Commands':'AI\x20指令','Ask\x20AI\x20to\x20edit\x20or\x20generate':'要求\x20AI\x20編輯或生成內容','Ask\x20AI\x20to\x20improve\x20generated\x20text':'要求\x20AI\x20改善生成的文字','Copy':'複製','Submit':'送出','Insert\x20below':'在下方插入','Try\x20again':'重試','Stop':'停止','AI\x20is\x20writing...':'AI\x20撰寫中...','History':'紀錄','Empty\x20history':'無紀錄','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'要求\x20AI\x20和您的提示詞會列出在此處,供您稍後使用。','Prompt\x20history':'提示詞紀錄','Search\x20AI\x20command':'搜尋\x20AI\x20指令','No\x20commands\x20found':'找不到指令','No\x20commands\x20available':'無可用指令','AI_REPLACE_CONTENT':'取代','AI_INSERT_CONTENT':'插入','AI_ERROR_GET_HEADERS':'要求標頭準備失敗','AI_ERROR_GET_PARAMETERS':'要求參數準備失敗','AI_ERROR_UNSUPPORTED_MODEL':'不支援要求的\x20AI\x20模型(\x22%0\x22)','AI_ERROR_CONTEXT_LENGTH':'選取內容過長','AI_ERROR_MODERATION':'提交的要求未通過審核規則','AI_ERROR_FAILED':'與\x20AI\x20服務通訊失敗'},'getPluralForm':_0x36d19c=>0x0}};
23
+ export default{'zh':{'dictionary':{'Edit\x20or\x20review':'編輯或檢閱','Improve\x20writing':'改善寫作','Make\x20shorter':'短一點','Make\x20longer':'長一點','Simplify\x20language':'簡化用語','Generate\x20from\x20selection':'依選擇範圍生成','Summarize':'總結','Continue':'繼續','Change\x20tone':'改變語調','Professional':'專業','Casual':'非正式','Direct':'直接','Confident':'自信','Friendly':'友善','Change\x20style':'改變風格','Business':'業務','Legal':'法務','Journalism':'報導','Poetic':'詩意','Translate':'翻譯','Translate\x20to\x20%0':'翻譯為%0','English':'英文','Spanish':'西班牙文','German':'德文','Portuguese':'葡萄牙文','French':'法文','Simplified\x20Chinese':'簡體中文','Hindi':'印地文','Arabic':'阿拉伯文','AI\x20Assistant':'AI\x20助理','AI\x20Commands':'AI\x20指令','Ask\x20AI\x20to\x20edit\x20or\x20generate':'要求\x20AI\x20編輯或生成內容','Ask\x20AI\x20to\x20improve\x20generated\x20text':'要求\x20AI\x20改善生成的文字','Copy':'複製','Submit':'送出','Insert\x20below':'在下方插入','Try\x20again':'重試','Stop':'停止','AI\x20is\x20writing...':'AI\x20撰寫中...','History':'紀錄','Empty\x20history':'無紀錄','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':'要求\x20AI\x20和您的提示詞會列出在此處,供您稍後使用。','Prompt\x20history':'提示詞紀錄','Search\x20AI\x20command':'搜尋\x20AI\x20指令','No\x20commands\x20found':'找不到指令','No\x20commands\x20available':'無可用指令','AI_REPLACE_CONTENT':'取代','AI_INSERT_CONTENT':'插入','AI_ERROR_GET_HEADERS':'要求標頭準備失敗','AI_ERROR_GET_PARAMETERS':'要求參數準備失敗','AI_ERROR_UNSUPPORTED_MODEL':'不支援要求的\x20AI\x20模型(\x22%0\x22)','AI_ERROR_CONTEXT_LENGTH':'選取內容過長','AI_ERROR_MODERATION':'提交的要求未通過審核規則','AI_ERROR_FAILED':'與\x20AI\x20服務通訊失敗'},'getPluralForm':_0x42a5a2=>0x0}};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ai",
3
- "version": "41.3.0-alpha.2",
3
+ "version": "41.3.0-alpha.4",
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,10 +23,10 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "ckeditor5": "41.3.0-alpha.2",
27
- "ckeditor5-collaboration": "41.3.0-alpha.2",
26
+ "ckeditor5": "41.3.0-alpha.4",
27
+ "ckeditor5-collaboration": "41.3.0-alpha.4",
28
28
  "@aws-sdk/client-bedrock-runtime": "3.470.0",
29
- "@ckeditor/ckeditor5-ui": "41.3.0-alpha.2",
29
+ "@ckeditor/ckeditor5-ui": "41.3.0-alpha.4",
30
30
  "lodash-es": "4.17.21"
31
31
  },
32
32
  "type": "module",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x37a0(){var _0x15297e=['4319392lCIOpS','2165YIyIrf','textAdapter','129QzYPcK','AIRequestError','14358dUiViZ','1518473ldzZDt','AIAdapter','7148OeoEpG','afterInit','pluginName','417ucVRUZ','59634hYIgjC','aiadapter-text-adapter-not-set','13828KBLbVa','72mEkvVS','10fNMeUw','name','4374528yxyyur'];_0x37a0=function(){return _0x15297e;};return _0x37a0();}var _0x490af9=_0x5a39;function _0x5a39(_0xdbec47,_0x4e4115){var _0x37a042=_0x37a0();return _0x5a39=function(_0x5a399f,_0x223952){_0x5a399f=_0x5a399f-0x16e;var _0x11871a=_0x37a042[_0x5a399f];return _0x11871a;},_0x5a39(_0xdbec47,_0x4e4115);}(function(_0x321d43,_0x3323ea){var _0x49addb=_0x5a39,_0x56cdde=_0x321d43();while(!![]){try{var _0x3a3979=parseInt(_0x49addb(0x17d))/0x1*(-parseInt(_0x49addb(0x175))/0x2)+parseInt(_0x49addb(0x172))/0x3*(parseInt(_0x49addb(0x16f))/0x4)+-parseInt(_0x49addb(0x17b))/0x5*(-parseInt(_0x49addb(0x17f))/0x6)+parseInt(_0x49addb(0x17a))/0x7+-parseInt(_0x49addb(0x176))/0x8*(-parseInt(_0x49addb(0x173))/0x9)+parseInt(_0x49addb(0x177))/0xa*(-parseInt(_0x49addb(0x180))/0xb)+-parseInt(_0x49addb(0x179))/0xc;if(_0x3a3979===_0x3323ea)break;else _0x56cdde['push'](_0x56cdde['shift']());}catch(_0x30e0a5){_0x56cdde['push'](_0x56cdde['shift']());}}}(_0x37a0,0x8a5e7));import{Plugin as _0x314865}from'ckeditor5/src/core.js';import{CKEditorError as _0x1726a1}from'ckeditor5/src/utils.js';export default class I extends _0x314865{static get[_0x490af9(0x171)](){var _0x5165fc=_0x490af9;return _0x5165fc(0x16e);}[_0x490af9(0x170)](){var _0x3e9dec=_0x490af9;if(!this[_0x3e9dec(0x17c)])throw new _0x1726a1(_0x3e9dec(0x174),null);}}export class AIRequestError extends Error{constructor(_0x5ac124){var _0x2d6652=_0x490af9;super(_0x5ac124),this[_0x2d6652(0x178)]=_0x2d6652(0x17e);}}
23
+ var _0x49c0a5=_0x2721;function _0x237b(){var _0x533c42=['4ChRfwZ','6739992TJCyYL','18kGkpxs','1033878GIGgJP','textAdapter','6490840sCivqA','4kzXjap','pluginName','42weOEqY','3393731oiwfwj','AIAdapter','aiadapter-text-adapter-not-set','AIRequestError','228612SfvChH','2384840QilKmR','afterInit','509691wZCMLe','name'];_0x237b=function(){return _0x533c42;};return _0x237b();}function _0x2721(_0x49c500,_0x40f90c){var _0x237b04=_0x237b();return _0x2721=function(_0x2721f9,_0x216049){_0x2721f9=_0x2721f9-0x74;var _0x18c505=_0x237b04[_0x2721f9];return _0x18c505;},_0x2721(_0x49c500,_0x40f90c);}(function(_0x3c90c5,_0xdce47a){var _0x115c2f=_0x2721,_0x49f34f=_0x3c90c5();while(!![]){try{var _0x4d895b=parseInt(_0x115c2f(0x79))/0x1+parseInt(_0x115c2f(0x76))/0x2*(-parseInt(_0x115c2f(0x83))/0x3)+parseInt(_0x115c2f(0x7c))/0x4*(parseInt(_0x115c2f(0x84))/0x5)+-parseInt(_0x115c2f(0x7e))/0x6*(parseInt(_0x115c2f(0x74))/0x7)+parseInt(_0x115c2f(0x77))/0x8+parseInt(_0x115c2f(0x78))/0x9*(-parseInt(_0x115c2f(0x7b))/0xa)+parseInt(_0x115c2f(0x7f))/0xb;if(_0x4d895b===_0xdce47a)break;else _0x49f34f['push'](_0x49f34f['shift']());}catch(_0x567d2b){_0x49f34f['push'](_0x49f34f['shift']());}}}(_0x237b,0xab49f));import{Plugin as _0x1af316}from'ckeditor5/src/core.js';import{CKEditorError as _0x3852cb}from'ckeditor5/src/utils.js';export default class I extends _0x1af316{static get[_0x49c0a5(0x7d)](){var _0x91187f=_0x49c0a5;return _0x91187f(0x80);}[_0x49c0a5(0x85)](){var _0x442efd=_0x49c0a5;if(!this[_0x442efd(0x7a)])throw new _0x3852cb(_0x442efd(0x81),null);}}export class AIRequestError extends Error{constructor(_0x259731){var _0xcd85ba=_0x49c0a5;super(_0x259731),this[_0xcd85ba(0x75)]=_0xcd85ba(0x82);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd96e8f=_0x5748;function _0x5748(_0x355ee1,_0x5d1c26){const _0x1d660a=_0x1d66();return _0x5748=function(_0x574856,_0x594494){_0x574856=_0x574856-0xed;let _0xafdc96=_0x1d660a[_0x574856];return _0xafdc96;},_0x5748(_0x355ee1,_0x5d1c26);}(function(_0x23f4b4,_0x1c30aa){const _0x5807ab=_0x5748,_0x54ce6d=_0x23f4b4();while(!![]){try{const _0x4c2e8d=parseInt(_0x5807ab(0xf4))/0x1*(parseInt(_0x5807ab(0x111))/0x2)+-parseInt(_0x5807ab(0xf8))/0x3*(-parseInt(_0x5807ab(0x114))/0x4)+parseInt(_0x5807ab(0x103))/0x5+parseInt(_0x5807ab(0xf9))/0x6*(parseInt(_0x5807ab(0x109))/0x7)+-parseInt(_0x5807ab(0xfc))/0x8*(-parseInt(_0x5807ab(0xf1))/0x9)+-parseInt(_0x5807ab(0x10a))/0xa*(-parseInt(_0x5807ab(0xee))/0xb)+parseInt(_0x5807ab(0x104))/0xc*(-parseInt(_0x5807ab(0x113))/0xd);if(_0x4c2e8d===_0x1c30aa)break;else _0x54ce6d['push'](_0x54ce6d['shift']());}catch(_0x2d3d3a){_0x54ce6d['push'](_0x54ce6d['shift']());}}}(_0x1d66,0xca63b));import{Plugin as _0x535c45}from'ckeditor5/src/core.js';import{CKEditorError as _0x39d49b}from'ckeditor5/src/utils.js';import{default as _0x56fb28,AIRequestError as _0x26a9d0}from'./aiadapter.js';function _0x1d66(){const _0x18319d=['makeRequest','626271uZDxHB','1821714QnLSgj','application/json','init','738472BIjyib','name','resolve','plugins','get','AI_ERROR_GET_HEADERS','locale','3870330SLXcio','42931128UzgNeg','_prepareRequestParameters','requires','abortController','abort','7lgrhXZ','40390LnCCKx','signal','AbortError','_prepareRequestHeaders','AI_ERROR_GET_PARAMETERS','sendRequest','textAdapter','402NaKoNG','reject','13LaMEdX','8czcVTn','assign','3520eXKgsg','aitextadapter-send-request-failed','editor','81EHHYkc','object','catch','3921FjrFUJ','aborted','error'];_0x1d66=function(){return _0x18319d;};return _0x1d66();}import{getTranslation as _0xea4839}from'../utils/common-translations.js';export default class _ extends _0x535c45{static get[_0xd96e8f(0x106)](){return[_0x56fb28];}constructor(_0x7fc37b){const _0x3603cf=_0xd96e8f;super(_0x7fc37b),this[_0x3603cf(0x107)]=new AbortController();}[_0xd96e8f(0xfb)](){const _0x33c432=_0xd96e8f;this[_0x33c432(0xf0)][_0x33c432(0xff)][_0x33c432(0x100)](_0x56fb28)[_0x33c432(0x110)]=this;}[_0xd96e8f(0x108)](){const _0x14ca0e=_0xd96e8f;this[_0x14ca0e(0x107)][_0x14ca0e(0x10b)][_0x14ca0e(0xf5)]||(this[_0x14ca0e(0x107)][_0x14ca0e(0x108)](),this[_0x14ca0e(0x107)]=new AbortController());}async[_0xd96e8f(0xf7)](_0x43a0fa){const _0x1b4723=_0xd96e8f;return this[_0x1b4723(0x10f)](_0x43a0fa)[_0x1b4723(0xf3)](_0x3c2c1d=>{const _0x4304b0=_0x1b4723;if(_0x3c2c1d instanceof _0x26a9d0)return Promise[_0x4304b0(0x112)](_0x3c2c1d);if(_0x4304b0(0x10c)==_0x3c2c1d[_0x4304b0(0xfd)])return Promise[_0x4304b0(0xfe)]();throw console[_0x4304b0(0xf6)](_0x3c2c1d),new _0x39d49b(_0x4304b0(0xef),null);});}async[_0xd96e8f(0x10d)](_0x4011ec,_0x1f7375){const _0x2f5e50=_0xd96e8f,_0xd0e7ba=this[_0x2f5e50(0xf0)][_0x2f5e50(0x102)],_0x415f6b={'Content-Type':_0x2f5e50(0xfa)};if(_0x2f5e50(0xf2)==typeof _0x4011ec)Object[_0x2f5e50(0xed)](_0x415f6b,_0x4011ec);else{if(_0x4011ec)try{const _0x7e7f4f=await _0x4011ec(_0x1f7375);Object[_0x2f5e50(0xed)](_0x415f6b,_0x7e7f4f);}catch(_0x516bda){return Promise[_0x2f5e50(0x112)](new _0x26a9d0(_0xea4839(_0xd0e7ba,_0x2f5e50(0x101))));}}return _0x415f6b;}async[_0xd96e8f(0x105)](_0x6cf4e5,_0x2f81d9){const _0x29eb3c=_0xd96e8f,_0x309542=this[_0x29eb3c(0xf0)][_0x29eb3c(0x102)];if(_0x29eb3c(0xf2)==typeof _0x6cf4e5)return _0x6cf4e5;try{return await _0x6cf4e5(_0x2f81d9);}catch(_0x4b3ff2){return Promise[_0x29eb3c(0x112)](new _0x26a9d0(_0xea4839(_0x309542,_0x29eb3c(0x10e))));}}}
23
+ const _0x124d1b=_0x5cae;function _0x5cae(_0x3351aa,_0xe57fe3){const _0x5a5af8=_0x5a5a();return _0x5cae=function(_0x5cae1f,_0x31e7ce){_0x5cae1f=_0x5cae1f-0x116;let _0x1e9330=_0x5a5af8[_0x5cae1f];return _0x1e9330;},_0x5cae(_0x3351aa,_0xe57fe3);}(function(_0x5c483f,_0x17b2af){const _0x3cbae8=_0x5cae,_0x242679=_0x5c483f();while(!![]){try{const _0x23866b=-parseInt(_0x3cbae8(0x11b))/0x1*(-parseInt(_0x3cbae8(0x125))/0x2)+parseInt(_0x3cbae8(0x13a))/0x3+-parseInt(_0x3cbae8(0x12c))/0x4*(parseInt(_0x3cbae8(0x12f))/0x5)+-parseInt(_0x3cbae8(0x118))/0x6*(parseInt(_0x3cbae8(0x11a))/0x7)+parseInt(_0x3cbae8(0x132))/0x8*(-parseInt(_0x3cbae8(0x122))/0x9)+-parseInt(_0x3cbae8(0x138))/0xa*(parseInt(_0x3cbae8(0x127))/0xb)+parseInt(_0x3cbae8(0x12a))/0xc;if(_0x23866b===_0x17b2af)break;else _0x242679['push'](_0x242679['shift']());}catch(_0xf71eec){_0x242679['push'](_0x242679['shift']());}}}(_0x5a5a,0x58f2e));import{Plugin as _0xf29f8a}from'ckeditor5/src/core.js';function _0x5a5a(){const _0x3523e8=['locale','sendRequest','10EbbZSd','error','1391352XEongb','makeRequest','name','AbortError','requires','6FCsVGa','_prepareRequestParameters','760739dZzpyG','3650nBPvOq','init','_prepareRequestHeaders','resolve','aborted','abort','abortController','19368fdNwbx','AI_ERROR_GET_HEADERS','AI_ERROR_GET_PARAMETERS','266XAqgza','get','2894573jJleUQ','object','signal','7339308sjDEej','assign','4ohLJJk','plugins','reject','1347365XGRrry','catch','aitextadapter-send-request-failed','2064zPcIEI','application/json','textAdapter','editor'];_0x5a5a=function(){return _0x3523e8;};return _0x5a5a();}import{CKEditorError as _0x14489e}from'ckeditor5/src/utils.js';import{default as _0x4bdc6b,AIRequestError as _0x30e548}from'./aiadapter.js';import{getTranslation as _0x54e3c1}from'../utils/common-translations.js';export default class _ extends _0xf29f8a{static get[_0x124d1b(0x117)](){return[_0x4bdc6b];}constructor(_0x1ef50a){const _0x3c8b72=_0x124d1b;super(_0x1ef50a),this[_0x3c8b72(0x121)]=new AbortController();}[_0x124d1b(0x11c)](){const _0x1c6e9d=_0x124d1b;this[_0x1c6e9d(0x135)][_0x1c6e9d(0x12d)][_0x1c6e9d(0x126)](_0x4bdc6b)[_0x1c6e9d(0x134)]=this;}[_0x124d1b(0x120)](){const _0x11b5f1=_0x124d1b;this[_0x11b5f1(0x121)][_0x11b5f1(0x129)][_0x11b5f1(0x11f)]||(this[_0x11b5f1(0x121)][_0x11b5f1(0x120)](),this[_0x11b5f1(0x121)]=new AbortController());}async[_0x124d1b(0x13b)](_0x34d8c5){const _0x586843=_0x124d1b;return this[_0x586843(0x137)](_0x34d8c5)[_0x586843(0x130)](_0x38cb20=>{const _0xfef302=_0x586843;if(_0x38cb20 instanceof _0x30e548)return Promise[_0xfef302(0x12e)](_0x38cb20);if(_0xfef302(0x116)==_0x38cb20[_0xfef302(0x13c)])return Promise[_0xfef302(0x11e)]();throw console[_0xfef302(0x139)](_0x38cb20),new _0x14489e(_0xfef302(0x131),null);});}async[_0x124d1b(0x11d)](_0x4dcf1d,_0x218679){const _0xec449a=_0x124d1b,_0x18bfc5=this[_0xec449a(0x135)][_0xec449a(0x136)],_0x74b9eb={'Content-Type':_0xec449a(0x133)};if(_0xec449a(0x128)==typeof _0x4dcf1d)Object[_0xec449a(0x12b)](_0x74b9eb,_0x4dcf1d);else{if(_0x4dcf1d)try{const _0x57798=await _0x4dcf1d(_0x218679);Object[_0xec449a(0x12b)](_0x74b9eb,_0x57798);}catch(_0x2c26c5){return Promise[_0xec449a(0x12e)](new _0x30e548(_0x54e3c1(_0x18bfc5,_0xec449a(0x123))));}}return _0x74b9eb;}async[_0x124d1b(0x119)](_0x140392,_0x39b233){const _0x21d18a=_0x124d1b,_0x4413d3=this[_0x21d18a(0x135)][_0x21d18a(0x136)];if(_0x21d18a(0x128)==typeof _0x140392)return _0x140392;try{return await _0x140392(_0x39b233);}catch(_0xc8b893){return Promise[_0x21d18a(0x12e)](new _0x30e548(_0x54e3c1(_0x4413d3,_0x21d18a(0x124))));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x512d(_0x5ccf83,_0x474094){const _0x483669=_0x4836();return _0x512d=function(_0x512d20,_0x2d45c0){_0x512d20=_0x512d20-0x133;let _0x535234=_0x483669[_0x512d20];return _0x535234;},_0x512d(_0x5ccf83,_0x474094);}const _0x37939e=_0x512d;(function(_0x52e485,_0x2c8434){const _0x412d37=_0x512d,_0x5e9ae9=_0x52e485();while(!![]){try{const _0x31edf3=-parseInt(_0x412d37(0x157))/0x1+-parseInt(_0x412d37(0x173))/0x2+-parseInt(_0x412d37(0x13b))/0x3+parseInt(_0x412d37(0x171))/0x4*(parseInt(_0x412d37(0x183))/0x5)+parseInt(_0x412d37(0x181))/0x6*(-parseInt(_0x412d37(0x147))/0x7)+-parseInt(_0x412d37(0x135))/0x8*(parseInt(_0x412d37(0x161))/0x9)+parseInt(_0x412d37(0x137))/0xa;if(_0x31edf3===_0x2c8434)break;else _0x5e9ae9['push'](_0x5e9ae9['shift']());}catch(_0x39a8ae){_0x5e9ae9['push'](_0x5e9ae9['shift']());}}}(_0x4836,0x87b84));function _0x4836(){const _0x2f9819=['AI_ERROR_UNSUPPORTED_MODEL','_bedrockClientConfig','_prepareRequestHeaders','\x0a<</SYS>>\x0a[INST]\x0a','bedrock-2023-05-31','generation','POST','abortController','133SykGkT','\x0a[/INST]','ai.aws.apiUrl','map','_readStaticResponse','body','ai.aws.bedrockClientConfig','data','json','ai.aws.requestParameters','stringify','resolve','get','signal','AWSTextAdapter','_readAsyncIterableResponse','479877aEfbys','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','anthropic.claude-v2','completions','text','config','length','decode','_readStreamableResponse','_processAWSRequest','477459CwAHSm','ai21.j2','_requestHeaders','_getGeneratedText','generations','split','bytes','parse','editor','meta.llama','_processProxyRequest','<<SYS>>\x0a','preparePrompt','\x0a\x0aAssistant:','ai.aws.requestHeaders','_apiUrl','4MlhXHm','anthropic.claude','1215030KuecgN','_prepareRequestParameters','utf-8','sendRequest','utf8','join','application/json','getModelFamily','locale','define','getReader','filter','Instruction:\x0a','test','147522cAuiHG','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','4189755KeifzF','from','cohere.command','completion','Human:\x0a','96VOiCVr','chunk','26778330manlsD','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.','toString','read','2306157WubqJf','_requestParameters','send','pluginName'];_0x4836=function(){return _0x2f9819;};return _0x4836();}import{default as _0x3047a1}from'./aitextadapter.js';import{AIRequestError as _0x192726}from'./aiadapter.js';import{BedrockRuntimeClient as _0x5bec33,InvokeModelCommand as _0x4f7774,InvokeModelWithResponseStreamCommand as _0x2a3419}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x1d4a88}from'../utils/common-translations.js';export default class q extends _0x3047a1{static get[_0x37939e(0x13e)](){const _0xe271c8=_0x37939e;return _0xe271c8(0x155);}constructor(_0x843c83){const _0x3f2e2c=_0x37939e;super(_0x843c83),_0x843c83[_0x3f2e2c(0x15c)][_0x3f2e2c(0x153)](_0x3f2e2c(0x150))||_0x843c83[_0x3f2e2c(0x15c)][_0x3f2e2c(0x17c)](_0x3f2e2c(0x150),{'model':_0x3f2e2c(0x159),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x3f2e2c(0x143),'stream':!0x0}),this[_0x3f2e2c(0x170)]=_0x843c83[_0x3f2e2c(0x15c)][_0x3f2e2c(0x153)](_0x3f2e2c(0x149)),this[_0x3f2e2c(0x140)]=_0x843c83[_0x3f2e2c(0x15c)][_0x3f2e2c(0x153)](_0x3f2e2c(0x14d)),this[_0x3f2e2c(0x163)]=_0x843c83[_0x3f2e2c(0x15c)][_0x3f2e2c(0x153)](_0x3f2e2c(0x16f)),this[_0x3f2e2c(0x13c)]=_0x843c83[_0x3f2e2c(0x15c)][_0x3f2e2c(0x153)](_0x3f2e2c(0x150));}async[_0x37939e(0x176)]({query:_0x454171,context:_0x202444,onData:_0x4c37a3,actionId:_0x52d103}){const _0x501ba2=_0x37939e,{model:_0x1dec5f,stream:_0xa6ac9b,..._0x5f1ce9}=await this[_0x501ba2(0x174)](this[_0x501ba2(0x13c)],_0x52d103),_0x2555d5={'prompt':await this[_0x501ba2(0x16d)](_0x454171,_0x202444,_0x1dec5f,_0x52d103),..._0x5f1ce9};this[_0x501ba2(0x170)]?await this[_0x501ba2(0x16b)](_0x2555d5,_0x1dec5f,_0xa6ac9b,_0x4c37a3,_0x52d103):await this[_0x501ba2(0x160)](_0x2555d5,_0x1dec5f,_0xa6ac9b,_0x4c37a3);}async[_0x37939e(0x16d)](_0x5dd753,_0x2e3106,_0x59f7a6,_0x48c797){const _0x2b8ac2=_0x37939e;let _0x37de6d,_0x1ac60e;return _0x2e3106?(_0x37de6d=_0x2b8ac2(0x158),_0x1ac60e=_0x2b8ac2(0x17f)+_0x5dd753+_0x2b8ac2(0x182)+_0x2e3106):(_0x37de6d=_0x2b8ac2(0x138),_0x1ac60e=_0x5dd753),_0x2b8ac2(0x16a)==this[_0x2b8ac2(0x17a)](_0x59f7a6)?_0x2b8ac2(0x16c)+_0x37de6d+_0x2b8ac2(0x142)+_0x1ac60e+_0x2b8ac2(0x148):_0x2b8ac2(0x134)+_0x37de6d+'\x0a'+_0x1ac60e+_0x2b8ac2(0x16e);}[_0x37939e(0x17a)](_0x594146){const _0x341829=_0x37939e;if(/^anthropic\.claude/[_0x341829(0x180)](_0x594146))return _0x341829(0x172);if(/^ai21\.j2/[_0x341829(0x180)](_0x594146))return _0x341829(0x162);if(/^cohere\.command/[_0x341829(0x180)](_0x594146))return _0x341829(0x185);if(/^meta\.llama/[_0x341829(0x180)](_0x594146))return _0x341829(0x16a);throw new _0x192726(_0x1d4a88(this[_0x341829(0x169)][_0x341829(0x17b)],_0x341829(0x13f),_0x594146));}async[_0x37939e(0x16b)](_0x509831,_0x56abb2,_0x2a7631,_0x4f040e,_0x19f291){const _0x597485=_0x37939e,_0x4d977e={'method':_0x597485(0x145),'headers':await this[_0x597485(0x141)](this[_0x597485(0x163)],_0x19f291),'body':JSON[_0x597485(0x151)]({..._0x509831,'model':_0x56abb2,'stream':_0x2a7631}),'signal':this[_0x597485(0x146)][_0x597485(0x154)]},_0x54ad07=await fetch(this[_0x597485(0x170)],_0x4d977e);_0x2a7631?await this[_0x597485(0x15f)](_0x54ad07,_0x56abb2,_0x4f040e):await this[_0x597485(0x14b)](_0x54ad07,_0x56abb2,_0x4f040e);}async[_0x37939e(0x160)](_0x1063a9,_0x296d49,_0x1848c8,_0x94dae4){const _0x7aad2b=_0x37939e,_0x550a35=new _0x5bec33(this[_0x7aad2b(0x140)]),_0x4237eb={'body':JSON[_0x7aad2b(0x151)](_0x1063a9),'contentType':_0x7aad2b(0x179),'accept':_0x7aad2b(0x179),'modelId':_0x296d49};let _0x1d3916;if(_0x1848c8){const _0x360f1f=new _0x2a3419(_0x4237eb);_0x1d3916=await _0x550a35[_0x7aad2b(0x13d)](_0x360f1f,{'abortSignal':this[_0x7aad2b(0x146)][_0x7aad2b(0x154)]}),await this[_0x7aad2b(0x156)](_0x1d3916,_0x296d49,_0x94dae4);}else{const _0x43d7da=new _0x4f7774(_0x4237eb);_0x1d3916=await _0x550a35[_0x7aad2b(0x13d)](_0x43d7da,{'abortSignal':this[_0x7aad2b(0x146)][_0x7aad2b(0x154)]}),await this[_0x7aad2b(0x14b)](_0x1d3916,_0x296d49,_0x94dae4);}}async[_0x37939e(0x156)](_0x3081fb,_0x238754,_0x31dcfa){const _0xa3facb=_0x37939e,_0x506a33=_0x3081fb[_0xa3facb(0x14c)],_0x41c8e9=new TextDecoder(_0xa3facb(0x175));let _0x145496='';for await(const _0x3a38db of _0x506a33)if(_0x3a38db[_0xa3facb(0x136)]){const _0x232514=_0x41c8e9[_0xa3facb(0x15e)](_0x3a38db[_0xa3facb(0x136)][_0xa3facb(0x167)]),_0xaac024=JSON[_0xa3facb(0x168)](_0x232514);_0x145496+=this[_0xa3facb(0x164)](_0xaac024,_0x238754),_0x31dcfa(_0x145496);}return Promise[_0xa3facb(0x152)]();}async[_0x37939e(0x15f)](_0x531891,_0x43683f,_0x4cdab6){const _0x1760cb=_0x37939e,_0x10528e=_0x531891[_0x1760cb(0x14c)],_0x8b18ca=new TextDecoder(_0x1760cb(0x175)),_0x4a776f=_0x10528e[_0x1760cb(0x17d)]();let _0x50bfe0='',_0x2499f3='',_0x525c79=!0x1;for(;!_0x525c79;){const {done:_0x15c3e3,value:_0x1455d2}=await _0x4a776f[_0x1760cb(0x13a)]();if(_0x525c79=_0x15c3e3,_0x525c79)break;const _0x525e38=(_0x50bfe0+_0x8b18ca[_0x1760cb(0x15e)](_0x1455d2))[_0x1760cb(0x166)]('\x0a')[_0x1760cb(0x14a)](_0x333bfc=>{const _0x2b1d1e=_0x1760cb;try{return _0x50bfe0='',JSON[_0x2b1d1e(0x168)](_0x333bfc);}catch(_0x4a0209){return _0x50bfe0=_0x333bfc,null;}})[_0x1760cb(0x17e)](_0x5edb81=>null!==_0x5edb81);_0x525e38[_0x1760cb(0x15d)]&&(_0x2499f3+=_0x525e38[_0x1760cb(0x14a)](_0x3dc663=>this[_0x1760cb(0x164)](_0x3dc663,_0x43683f))[_0x1760cb(0x178)](''),_0x4cdab6(_0x2499f3));}return Promise[_0x1760cb(0x152)]();}async[_0x37939e(0x14b)](_0x1a0fae,_0x3ec9be,_0x17fe07){const _0x3737f6=_0x37939e;let _0x400961;return _0x400961=_0x1a0fae instanceof Response?await _0x1a0fae[_0x3737f6(0x14f)]():JSON[_0x3737f6(0x168)](Buffer[_0x3737f6(0x184)](_0x1a0fae[_0x3737f6(0x14c)])[_0x3737f6(0x139)](_0x3737f6(0x177))),(_0x17fe07(this[_0x3737f6(0x164)](_0x400961,_0x3ec9be)),Promise[_0x3737f6(0x152)]());}[_0x37939e(0x164)](_0x5eebae,_0x2c953f){const _0x429e1e=_0x37939e;switch(this[_0x429e1e(0x17a)](_0x2c953f)){case _0x429e1e(0x172):return _0x5eebae[_0x429e1e(0x133)];case _0x429e1e(0x162):return _0x5eebae[_0x429e1e(0x15a)][0x0][_0x429e1e(0x14e)][_0x429e1e(0x15b)];case _0x429e1e(0x185):return _0x5eebae[_0x429e1e(0x165)][0x0][_0x429e1e(0x15b)];case _0x429e1e(0x16a):return _0x5eebae[_0x429e1e(0x144)];}}}
23
+ const _0x4b79f6=_0x2b17;(function(_0x3f4463,_0x9c3cb){const _0x4bb40f=_0x2b17,_0x4817ed=_0x3f4463();while(!![]){try{const _0x5ba867=-parseInt(_0x4bb40f(0x1e7))/0x1+parseInt(_0x4bb40f(0x1ef))/0x2*(-parseInt(_0x4bb40f(0x1dc))/0x3)+-parseInt(_0x4bb40f(0x1c7))/0x4*(parseInt(_0x4bb40f(0x1d8))/0x5)+parseInt(_0x4bb40f(0x1b1))/0x6+-parseInt(_0x4bb40f(0x1cb))/0x7*(parseInt(_0x4bb40f(0x1b3))/0x8)+-parseInt(_0x4bb40f(0x1ba))/0x9*(-parseInt(_0x4bb40f(0x1e9))/0xa)+-parseInt(_0x4bb40f(0x1ed))/0xb*(-parseInt(_0x4bb40f(0x1d2))/0xc);if(_0x5ba867===_0x9c3cb)break;else _0x4817ed['push'](_0x4817ed['shift']());}catch(_0x5b1a62){_0x4817ed['push'](_0x4817ed['shift']());}}}(_0x188e,0x86c75));import{default as _0x555d41}from'./aitextadapter.js';import{AIRequestError as _0x3ed823}from'./aiadapter.js';function _0x188e(){const _0xd5ee4b=['AI_ERROR_UNSUPPORTED_MODEL','utf-8','abortController','decode','body','_readStreamableResponse','548838GbiyTE','POST','120330yufEIW','read','_processProxyRequest','_readStaticResponse','55mJOEnj','preparePrompt','53530NXJmpg','_prepareRequestParameters','_processAWSRequest','\x0a[/INST]','completion','data','_apiUrl','generations','test','generation','_getGeneratedText','utf8','from','_bedrockClientConfig','get','completions','<<SYS>>\x0a','anthropic.claude','\x0a\x0aAssistant:','stringify','cohere.command','_requestHeaders','map','6046848dfFjpf','bedrock-2023-05-31','47624YkKoIO','ai21.j2','sendRequest','define','bytes','AWSTextAdapter','length','333vflNKO','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','resolve','locale','anthropic.claude-v2','_prepareRequestHeaders','split','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.','toString','join','\x0a<</SYS>>\x0a[INST]\x0a','_readAsyncIterableResponse','Instruction:\x0a','144GoIYZN','getModelFamily','application/json','editor','1099PSEChj','ai.aws.apiUrl','config','send','signal','filter','json','4084560lKTeHj','getReader','parse','pluginName','chunk','ai.aws.requestHeaders','77410MbvzbG','text','ai.aws.requestParameters','ai.aws.bedrockClientConfig','63bYFCNk','_requestParameters','meta.llama','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.','Human:\x0a'];_0x188e=function(){return _0xd5ee4b;};return _0x188e();}import{BedrockRuntimeClient as _0x2576aa,InvokeModelCommand as _0x139653,InvokeModelWithResponseStreamCommand as _0x3134c1}from'@aws-sdk/client-bedrock-runtime';function _0x2b17(_0x4abf50,_0x51d09e){const _0x188e4c=_0x188e();return _0x2b17=function(_0x2b177f,_0x5ba5c3){_0x2b177f=_0x2b177f-0x1ac;let _0x331559=_0x188e4c[_0x2b177f];return _0x331559;},_0x2b17(_0x4abf50,_0x51d09e);}import{getTranslation as _0x5f1f9f}from'../utils/common-translations.js';export default class q extends _0x555d41{static get[_0x4b79f6(0x1d5)](){const _0x3ea098=_0x4b79f6;return _0x3ea098(0x1b8);}constructor(_0x5e1911){const _0x5e12df=_0x4b79f6;super(_0x5e1911),_0x5e1911[_0x5e12df(0x1cd)][_0x5e12df(0x1fd)](_0x5e12df(0x1da))||_0x5e1911[_0x5e12df(0x1cd)][_0x5e12df(0x1b6)](_0x5e12df(0x1da),{'model':_0x5e12df(0x1be),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x5e12df(0x1b2),'stream':!0x0}),this[_0x5e12df(0x1f5)]=_0x5e1911[_0x5e12df(0x1cd)][_0x5e12df(0x1fd)](_0x5e12df(0x1cc)),this[_0x5e12df(0x1fc)]=_0x5e1911[_0x5e12df(0x1cd)][_0x5e12df(0x1fd)](_0x5e12df(0x1db)),this[_0x5e12df(0x1af)]=_0x5e1911[_0x5e12df(0x1cd)][_0x5e12df(0x1fd)](_0x5e12df(0x1d7)),this[_0x5e12df(0x1dd)]=_0x5e1911[_0x5e12df(0x1cd)][_0x5e12df(0x1fd)](_0x5e12df(0x1da));}async[_0x4b79f6(0x1b5)]({query:_0x3ac809,context:_0x2b729f,onData:_0x2ff626,actionId:_0x29dcf1}){const _0x2c823a=_0x4b79f6,{model:_0x51ff1b,stream:_0x19c2de,..._0x1c24c1}=await this[_0x2c823a(0x1f0)](this[_0x2c823a(0x1dd)],_0x29dcf1),_0x271024={'prompt':await this[_0x2c823a(0x1ee)](_0x3ac809,_0x2b729f,_0x51ff1b,_0x29dcf1),..._0x1c24c1};this[_0x2c823a(0x1f5)]?await this[_0x2c823a(0x1eb)](_0x271024,_0x51ff1b,_0x19c2de,_0x2ff626,_0x29dcf1):await this[_0x2c823a(0x1f1)](_0x271024,_0x51ff1b,_0x19c2de,_0x2ff626);}async[_0x4b79f6(0x1ee)](_0x5be093,_0x5c44ac,_0x2d5a78,_0x1559c8){const _0x26d2bc=_0x4b79f6;let _0x5555d1,_0x27b417;return _0x5c44ac?(_0x5555d1=_0x26d2bc(0x1df),_0x27b417=_0x26d2bc(0x1c6)+_0x5be093+_0x26d2bc(0x1bb)+_0x5c44ac):(_0x5555d1=_0x26d2bc(0x1c1),_0x27b417=_0x5be093),_0x26d2bc(0x1de)==this[_0x26d2bc(0x1c8)](_0x2d5a78)?_0x26d2bc(0x1ff)+_0x5555d1+_0x26d2bc(0x1c4)+_0x27b417+_0x26d2bc(0x1f2):_0x26d2bc(0x1e0)+_0x5555d1+'\x0a'+_0x27b417+_0x26d2bc(0x1ac);}[_0x4b79f6(0x1c8)](_0x1cb72d){const _0x3d967b=_0x4b79f6;if(/^anthropic\.claude/[_0x3d967b(0x1f7)](_0x1cb72d))return _0x3d967b(0x200);if(/^ai21\.j2/[_0x3d967b(0x1f7)](_0x1cb72d))return _0x3d967b(0x1b4);if(/^cohere\.command/[_0x3d967b(0x1f7)](_0x1cb72d))return _0x3d967b(0x1ae);if(/^meta\.llama/[_0x3d967b(0x1f7)](_0x1cb72d))return _0x3d967b(0x1de);throw new _0x3ed823(_0x5f1f9f(this[_0x3d967b(0x1ca)][_0x3d967b(0x1bd)],_0x3d967b(0x1e1),_0x1cb72d));}async[_0x4b79f6(0x1eb)](_0x201b10,_0x59d775,_0x47c168,_0x4908e6,_0x4349a0){const _0xffbe1b=_0x4b79f6,_0x211b02={'method':_0xffbe1b(0x1e8),'headers':await this[_0xffbe1b(0x1bf)](this[_0xffbe1b(0x1af)],_0x4349a0),'body':JSON[_0xffbe1b(0x1ad)]({..._0x201b10,'model':_0x59d775,'stream':_0x47c168}),'signal':this[_0xffbe1b(0x1e3)][_0xffbe1b(0x1cf)]},_0x34dfe3=await fetch(this[_0xffbe1b(0x1f5)],_0x211b02);_0x47c168?await this[_0xffbe1b(0x1e6)](_0x34dfe3,_0x59d775,_0x4908e6):await this[_0xffbe1b(0x1ec)](_0x34dfe3,_0x59d775,_0x4908e6);}async[_0x4b79f6(0x1f1)](_0x40001b,_0xf559cc,_0x5655d5,_0xdebe9b){const _0x2fe16a=_0x4b79f6,_0x415da6=new _0x2576aa(this[_0x2fe16a(0x1fc)]),_0x3ef54c={'body':JSON[_0x2fe16a(0x1ad)](_0x40001b),'contentType':_0x2fe16a(0x1c9),'accept':_0x2fe16a(0x1c9),'modelId':_0xf559cc};let _0xbfe3d4;if(_0x5655d5){const _0x466250=new _0x3134c1(_0x3ef54c);_0xbfe3d4=await _0x415da6[_0x2fe16a(0x1ce)](_0x466250,{'abortSignal':this[_0x2fe16a(0x1e3)][_0x2fe16a(0x1cf)]}),await this[_0x2fe16a(0x1c5)](_0xbfe3d4,_0xf559cc,_0xdebe9b);}else{const _0x411a1b=new _0x139653(_0x3ef54c);_0xbfe3d4=await _0x415da6[_0x2fe16a(0x1ce)](_0x411a1b,{'abortSignal':this[_0x2fe16a(0x1e3)][_0x2fe16a(0x1cf)]}),await this[_0x2fe16a(0x1ec)](_0xbfe3d4,_0xf559cc,_0xdebe9b);}}async[_0x4b79f6(0x1c5)](_0x47ad13,_0x7893d4,_0x2760b1){const _0x5957b3=_0x4b79f6,_0x2a2b61=_0x47ad13[_0x5957b3(0x1e5)],_0x3e993a=new TextDecoder(_0x5957b3(0x1e2));let _0x15a77d='';for await(const _0x44ca3b of _0x2a2b61)if(_0x44ca3b[_0x5957b3(0x1d6)]){const _0x2d98c7=_0x3e993a[_0x5957b3(0x1e4)](_0x44ca3b[_0x5957b3(0x1d6)][_0x5957b3(0x1b7)]),_0x78046d=JSON[_0x5957b3(0x1d4)](_0x2d98c7);_0x15a77d+=this[_0x5957b3(0x1f9)](_0x78046d,_0x7893d4),_0x2760b1(_0x15a77d);}return Promise[_0x5957b3(0x1bc)]();}async[_0x4b79f6(0x1e6)](_0x3d2d34,_0x42869c,_0x2edbfd){const _0x274ea4=_0x4b79f6,_0x43bea5=_0x3d2d34[_0x274ea4(0x1e5)],_0x1ebfe6=new TextDecoder(_0x274ea4(0x1e2)),_0x11bdcd=_0x43bea5[_0x274ea4(0x1d3)]();let _0x42996f='',_0x1b9cfd='',_0x2735de=!0x1;for(;!_0x2735de;){const {done:_0x18182e,value:_0x3d16dc}=await _0x11bdcd[_0x274ea4(0x1ea)]();if(_0x2735de=_0x18182e,_0x2735de)break;const _0x30cdbd=(_0x42996f+_0x1ebfe6[_0x274ea4(0x1e4)](_0x3d16dc))[_0x274ea4(0x1c0)]('\x0a')[_0x274ea4(0x1b0)](_0x351027=>{const _0x6b5465=_0x274ea4;try{return _0x42996f='',JSON[_0x6b5465(0x1d4)](_0x351027);}catch(_0x2dbfca){return _0x42996f=_0x351027,null;}})[_0x274ea4(0x1d0)](_0x56807e=>null!==_0x56807e);_0x30cdbd[_0x274ea4(0x1b9)]&&(_0x1b9cfd+=_0x30cdbd[_0x274ea4(0x1b0)](_0x1a3dc4=>this[_0x274ea4(0x1f9)](_0x1a3dc4,_0x42869c))[_0x274ea4(0x1c3)](''),_0x2edbfd(_0x1b9cfd));}return Promise[_0x274ea4(0x1bc)]();}async[_0x4b79f6(0x1ec)](_0x7f4ba2,_0x49f2ba,_0x12d376){const _0x52fb93=_0x4b79f6;let _0x1b04d4;return _0x1b04d4=_0x7f4ba2 instanceof Response?await _0x7f4ba2[_0x52fb93(0x1d1)]():JSON[_0x52fb93(0x1d4)](Buffer[_0x52fb93(0x1fb)](_0x7f4ba2[_0x52fb93(0x1e5)])[_0x52fb93(0x1c2)](_0x52fb93(0x1fa))),(_0x12d376(this[_0x52fb93(0x1f9)](_0x1b04d4,_0x49f2ba)),Promise[_0x52fb93(0x1bc)]());}[_0x4b79f6(0x1f9)](_0x275005,_0x4f67ba){const _0x572196=_0x4b79f6;switch(this[_0x572196(0x1c8)](_0x4f67ba)){case _0x572196(0x200):return _0x275005[_0x572196(0x1f3)];case _0x572196(0x1b4):return _0x275005[_0x572196(0x1fe)][0x0][_0x572196(0x1f4)][_0x572196(0x1d9)];case _0x572196(0x1ae):return _0x275005[_0x572196(0x1f6)][0x0][_0x572196(0x1d9)];case _0x572196(0x1de):return _0x275005[_0x572196(0x1f8)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x32e2(){const _0x50eb74=['_requestHeaders','_isBufferIncomplete','7944upOuEF','POST','OpenAITextAdapter','ai.openAI.requestParameters','define','_prepareRequestParameters','593244vWuMuR','parse','get','map','ai.openAI.requestHeaders','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.','32247wwrmqA','user','1728996cSSmrz','Instruction:\x0a','data:\x20','config','getReader','_apiUrl','split','[DONE]','AI_ERROR_MODERATION','resolve','delta','AI_ERROR_CONTEXT_LENGTH','prepareMessages','10598ZdIhkv','_readStreamableResponse','reject','stream','signal','_prepareRequestHeaders','editor','decode','1874090yWjLVx','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.','Moderation','length','60mWvkRY','https://api.openai.com/v1/chat/completions','body','filter','locale','262776xepLrS','sendRequest','gpt-3.5-turbo','message','json','choices','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_readStaticResponse','3400hemoqv','_cleanUpData','stringify','replace','context_length_exceeded','content','28841879lGLzhh','_requestParameters','read','includes','9KNJmdH','system','join','text','ai.openAI.apiUrl','abortController'];_0x32e2=function(){return _0x50eb74;};return _0x32e2();}const _0x4d4538=_0x28e4;(function(_0xf81627,_0x380f3b){const _0x45ce49=_0x28e4,_0x7426d9=_0xf81627();while(!![]){try{const _0x2f279a=parseInt(_0x45ce49(0x7e))/0x1+-parseInt(_0x45ce49(0xa8))/0x2*(parseInt(_0x45ce49(0x9a))/0x3)+-parseInt(_0x45ce49(0xb0))/0x4+-parseInt(_0x45ce49(0x83))/0x5*(-parseInt(_0x45ce49(0x88))/0x6)+parseInt(_0x45ce49(0xbd))/0x7*(-parseInt(_0x45ce49(0xa2))/0x8)+parseInt(_0x45ce49(0xae))/0x9*(-parseInt(_0x45ce49(0x90))/0xa)+parseInt(_0x45ce49(0x96))/0xb;if(_0x2f279a===_0x380f3b)break;else _0x7426d9['push'](_0x7426d9['shift']());}catch(_0xe451c0){_0x7426d9['push'](_0x7426d9['shift']());}}}(_0x32e2,0xeebe6));import{default as _0x802a55}from'./aitextadapter.js';import{AIRequestError as _0x116379}from'./aiadapter.js';import{getTranslation as _0x2e03cb}from'../utils/common-translations.js';function _0x28e4(_0x57e85a,_0x52b7f0){const _0x32e2ba=_0x32e2();return _0x28e4=function(_0x28e43c,_0x9de39c){_0x28e43c=_0x28e43c-0x7b;let _0x28b474=_0x32e2ba[_0x28e43c];return _0x28b474;},_0x28e4(_0x57e85a,_0x52b7f0);}export default class M extends _0x802a55{static get[_0x4d4538(0x7f)](){const _0x436690=_0x4d4538;return _0x436690(0xa4);}constructor(_0x81663e){const _0x498e8c=_0x4d4538;super(_0x81663e),_0x81663e[_0x498e8c(0xb3)][_0x498e8c(0xa6)](_0x498e8c(0x9e),_0x498e8c(0x84)),_0x81663e[_0x498e8c(0xb3)][_0x498e8c(0xaa)](_0x498e8c(0xa5))||_0x81663e[_0x498e8c(0xb3)][_0x498e8c(0xa6)](_0x498e8c(0xa5),{'model':_0x498e8c(0x8a),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x498e8c(0xb5)]=_0x81663e[_0x498e8c(0xb3)][_0x498e8c(0xaa)](_0x498e8c(0x9e)),this[_0x498e8c(0xa0)]=_0x81663e[_0x498e8c(0xb3)][_0x498e8c(0xaa)](_0x498e8c(0xac))||{},this[_0x498e8c(0x97)]=_0x81663e[_0x498e8c(0xb3)][_0x498e8c(0xaa)](_0x498e8c(0xa5));}async[_0x4d4538(0x89)]({query:_0x389c4f,context:_0x4ae6a5,onData:_0x37b0dc,actionId:_0x495a6c}){const _0x3ead59=_0x4d4538,_0x84a95b=this[_0x3ead59(0x7c)][_0x3ead59(0x87)],_0x520a19=await this[_0x3ead59(0xbc)](_0x389c4f,_0x4ae6a5,_0x495a6c),_0x400eea=await this[_0x3ead59(0x7b)](this[_0x3ead59(0xa0)],_0x495a6c),_0x308de3=await this[_0x3ead59(0xa7)](this[_0x3ead59(0x97)],_0x495a6c),_0x4755df={'messages':_0x520a19,..._0x308de3},_0x58e50d={'method':_0x3ead59(0xa3),'headers':_0x400eea,'body':JSON[_0x3ead59(0x92)](_0x4755df),'signal':this[_0x3ead59(0x9f)][_0x3ead59(0xc1)]},_0x5c7998=await fetch(this[_0x3ead59(0xb5)],_0x58e50d);if(_0x5c7998['ok'])return _0x308de3[_0x3ead59(0xc0)]?await this[_0x3ead59(0xbe)](_0x5c7998,_0x37b0dc):await this[_0x3ead59(0x8f)](_0x5c7998,_0x37b0dc),Promise[_0x3ead59(0xb9)]();{const _0x4a1eb1=await _0x5c7998[_0x3ead59(0x9d)]();return _0x4a1eb1[_0x3ead59(0x99)](_0x3ead59(0x94))?Promise[_0x3ead59(0xbf)](new _0x116379(_0x2e03cb(_0x84a95b,_0x3ead59(0xbb)))):_0x4a1eb1[_0x3ead59(0x99)](_0x3ead59(0x81))?Promise[_0x3ead59(0xbf)](new _0x116379(_0x2e03cb(_0x84a95b,_0x3ead59(0xb8)))):Promise[_0x3ead59(0xbf)](new Error(_0x4a1eb1));}}async[_0x4d4538(0xbc)](_0x1527bb,_0x1a9460,_0x3ea29d){const _0x147632=_0x4d4538;let _0x92f785,_0x4bedef;return _0x1a9460?(_0x92f785=_0x147632(0x80),_0x4bedef=_0x147632(0xb1)+_0x1527bb+_0x147632(0x8e)+_0x1a9460):(_0x92f785=_0x147632(0xad),_0x4bedef=_0x1527bb),[{'role':_0x147632(0x9b),'content':_0x92f785},{'role':_0x147632(0xaf),'content':_0x4bedef}];}async[_0x4d4538(0xbe)](_0x27eb6a,_0x5aafc7){const _0x570939=_0x4d4538,_0x2babdb=_0x27eb6a[_0x570939(0x85)][_0x570939(0xb4)](),_0x28397d=new TextDecoder();let _0x52daff='',_0x217f4e='',_0x251c72='',_0x2477a1=!0x1;for(;!_0x2477a1;){const {done:_0x3cd69e,value:_0x3b0bd8}=await _0x2babdb[_0x570939(0x98)](),_0x423735=_0x52daff+_0x28397d[_0x570939(0x7d)](_0x3b0bd8);let _0x948752='';_0x2477a1=_0x3cd69e;try{_0x948752=this[_0x570939(0x91)](_0x423735),_0x52daff='';}catch(_0x3fc69a){_0x52daff=_0x423735;continue;}_0x217f4e+=_0x948752,!_0x2477a1&&this[_0x570939(0xa1)](_0x217f4e)||_0x217f4e&&(_0x251c72+=_0x217f4e,_0x217f4e='',_0x5aafc7(_0x251c72));}return Promise[_0x570939(0xb9)]();}async[_0x4d4538(0x8f)](_0x47535c,_0x10758c){const _0x32387d=_0x4d4538;return _0x10758c((await _0x47535c[_0x32387d(0x8c)]())[_0x32387d(0x8d)][0x0][_0x32387d(0x8b)][_0x32387d(0x95)]),Promise[_0x32387d(0xb9)]();}[_0x4d4538(0xa1)](_0x35708b){const _0x4c5f6a=_0x4d4538,_0x2c9b5e=_0x35708b[_0x4c5f6a(0xb6)]('<')[_0x4c5f6a(0x82)]!==_0x35708b[_0x4c5f6a(0xb6)]('>')[_0x4c5f6a(0x82)],_0x953c5=_0x35708b[_0x4c5f6a(0x82)]<0x1e;return _0x2c9b5e&&_0x953c5;}[_0x4d4538(0x91)](_0x287c9a){const _0x163575=_0x4d4538;return _0x287c9a[_0x163575(0xb6)](/\n(?![^{]*\})/g)[_0x163575(0xab)](_0x27c165=>_0x27c165[_0x163575(0x93)](_0x163575(0xb2),''))[_0x163575(0x86)](_0x199fd9=>_0x199fd9&&_0x199fd9[_0x163575(0x82)]>0x0&&_0x163575(0xb7)!==_0x199fd9)[_0x163575(0xab)](_0xefaa0d=>{const _0x377f73=_0x163575,{choices:_0x543492}=JSON[_0x377f73(0xa9)](_0xefaa0d);if(_0x543492[0x0]&&_0x543492[0x0][_0x377f73(0xba)]&&_0x543492[0x0][_0x377f73(0xba)][_0x377f73(0x95)])return _0x543492[0x0][_0x377f73(0xba)][_0x377f73(0x95)];})[_0x163575(0x86)](_0x5a094a=>_0x5a094a)[_0x163575(0x9c)]('');}}
23
+ function _0x17de(){const _0x260475=['config','20hZEKxq','context_length_exceeded','473408eVLMTn','getReader','19817380jyTdmJ','define','includes','_prepareRequestParameters','data:\x20','_readStaticResponse','_cleanUpData','reject','abortController','replace','OpenAITextAdapter','delta','1237425lksbSZ','AI_ERROR_CONTEXT_LENGTH','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_requestParameters','decode','4VmUEgi','8100846QNlHHb','4497372zkTaQv','3242510sJqoJd','choices','POST','join','json','ai.openAI.requestHeaders','map','_apiUrl','body','ai.openAI.apiUrl','AI_ERROR_MODERATION','gpt-3.5-turbo','read','length','Moderation','stream','Instruction:\x0a','_requestHeaders','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.','_isBufferIncomplete','locale','3GwzPxx','https://api.openai.com/v1/chat/completions','get','text','ai.openAI.requestParameters','_prepareRequestHeaders','content','prepareMessages','[DONE]','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.','filter','sendRequest','user','editor','2201412YpgWjR','message','stringify','signal','system','split','parse','pluginName','resolve','8nCZyBj','_readStreamableResponse'];_0x17de=function(){return _0x260475;};return _0x17de();}const _0x2385c5=_0x5050;(function(_0x3194ff,_0x300b75){const _0x192b21=_0x5050,_0x29c5cf=_0x3194ff();while(!![]){try{const _0x38d173=-parseInt(_0x192b21(0x111))/0x1+parseInt(_0x192b21(0x103))/0x2*(-parseInt(_0x192b21(0xf5))/0x3)+parseInt(_0x192b21(0x124))/0x4*(-parseInt(_0x192b21(0x127))/0x5)+-parseInt(_0x192b21(0x125))/0x6+parseInt(_0x192b21(0x11f))/0x7*(parseInt(_0x192b21(0x10c))/0x8)+parseInt(_0x192b21(0x126))/0x9+-parseInt(_0x192b21(0x10f))/0xa*(-parseInt(_0x192b21(0x113))/0xb);if(_0x38d173===_0x300b75)break;else _0x29c5cf['push'](_0x29c5cf['shift']());}catch(_0x66f1e){_0x29c5cf['push'](_0x29c5cf['shift']());}}}(_0x17de,0xac946));function _0x5050(_0x360f5b,_0x5317ef){const _0x17de88=_0x17de();return _0x5050=function(_0x505089,_0x10d689){_0x505089=_0x505089-0xef;let _0x3507c0=_0x17de88[_0x505089];return _0x3507c0;},_0x5050(_0x360f5b,_0x5317ef);}import{default as _0x485840}from'./aitextadapter.js';import{AIRequestError as _0x89767d}from'./aiadapter.js';import{getTranslation as _0x34d1b5}from'../utils/common-translations.js';export default class M extends _0x485840{static get[_0x2385c5(0x10a)](){const _0x271185=_0x2385c5;return _0x271185(0x11d);}constructor(_0x5186c1){const _0x3c6942=_0x2385c5;super(_0x5186c1),_0x5186c1[_0x3c6942(0x10e)][_0x3c6942(0x114)](_0x3c6942(0x130),_0x3c6942(0xf6)),_0x5186c1[_0x3c6942(0x10e)][_0x3c6942(0xf7)](_0x3c6942(0xf9))||_0x5186c1[_0x3c6942(0x10e)][_0x3c6942(0x114)](_0x3c6942(0xf9),{'model':_0x3c6942(0x132),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x3c6942(0x12e)]=_0x5186c1[_0x3c6942(0x10e)][_0x3c6942(0xf7)](_0x3c6942(0x130)),this[_0x3c6942(0xf1)]=_0x5186c1[_0x3c6942(0x10e)][_0x3c6942(0xf7)](_0x3c6942(0x12c))||{},this[_0x3c6942(0x122)]=_0x5186c1[_0x3c6942(0x10e)][_0x3c6942(0xf7)](_0x3c6942(0xf9));}async[_0x2385c5(0x100)]({query:_0x59d549,context:_0x48b7ce,onData:_0xeb9dad,actionId:_0x31b9bc}){const _0x51ef80=_0x2385c5,_0x48dd01=this[_0x51ef80(0x102)][_0x51ef80(0xf4)],_0x8190dc=await this[_0x51ef80(0xfc)](_0x59d549,_0x48b7ce,_0x31b9bc),_0x216370=await this[_0x51ef80(0xfa)](this[_0x51ef80(0xf1)],_0x31b9bc),_0x22dac9=await this[_0x51ef80(0x116)](this[_0x51ef80(0x122)],_0x31b9bc),_0x593515={'messages':_0x8190dc,..._0x22dac9},_0x1ebcb7={'method':_0x51ef80(0x129),'headers':_0x216370,'body':JSON[_0x51ef80(0x105)](_0x593515),'signal':this[_0x51ef80(0x11b)][_0x51ef80(0x106)]},_0x18fa90=await fetch(this[_0x51ef80(0x12e)],_0x1ebcb7);if(_0x18fa90['ok'])return _0x22dac9[_0x51ef80(0xef)]?await this[_0x51ef80(0x10d)](_0x18fa90,_0xeb9dad):await this[_0x51ef80(0x118)](_0x18fa90,_0xeb9dad),Promise[_0x51ef80(0x10b)]();{const _0x42d9d3=await _0x18fa90[_0x51ef80(0xf8)]();return _0x42d9d3[_0x51ef80(0x115)](_0x51ef80(0x110))?Promise[_0x51ef80(0x11a)](new _0x89767d(_0x34d1b5(_0x48dd01,_0x51ef80(0x120)))):_0x42d9d3[_0x51ef80(0x115)](_0x51ef80(0x135))?Promise[_0x51ef80(0x11a)](new _0x89767d(_0x34d1b5(_0x48dd01,_0x51ef80(0x131)))):Promise[_0x51ef80(0x11a)](new Error(_0x42d9d3));}}async[_0x2385c5(0xfc)](_0x11491b,_0xaac1e5,_0x4a8080){const _0x23b592=_0x2385c5;let _0x487a9e,_0x2a69b5;return _0xaac1e5?(_0x487a9e=_0x23b592(0xfe),_0x2a69b5=_0x23b592(0xf0)+_0x11491b+_0x23b592(0x121)+_0xaac1e5):(_0x487a9e=_0x23b592(0xf2),_0x2a69b5=_0x11491b),[{'role':_0x23b592(0x107),'content':_0x487a9e},{'role':_0x23b592(0x101),'content':_0x2a69b5}];}async[_0x2385c5(0x10d)](_0x581763,_0x360240){const _0x40860a=_0x2385c5,_0x5c36c8=_0x581763[_0x40860a(0x12f)][_0x40860a(0x112)](),_0x1cd0b2=new TextDecoder();let _0x491c32='',_0x39753b='',_0x313e90='',_0x25f3e4=!0x1;for(;!_0x25f3e4;){const {done:_0x2e36ba,value:_0x5092c7}=await _0x5c36c8[_0x40860a(0x133)](),_0x502d68=_0x491c32+_0x1cd0b2[_0x40860a(0x123)](_0x5092c7);let _0x2fa640='';_0x25f3e4=_0x2e36ba;try{_0x2fa640=this[_0x40860a(0x119)](_0x502d68),_0x491c32='';}catch(_0x3180c2){_0x491c32=_0x502d68;continue;}_0x39753b+=_0x2fa640,!_0x25f3e4&&this[_0x40860a(0xf3)](_0x39753b)||_0x39753b&&(_0x313e90+=_0x39753b,_0x39753b='',_0x360240(_0x313e90));}return Promise[_0x40860a(0x10b)]();}async[_0x2385c5(0x118)](_0x27fe1c,_0x47d9e8){const _0x7303c6=_0x2385c5;return _0x47d9e8((await _0x27fe1c[_0x7303c6(0x12b)]())[_0x7303c6(0x128)][0x0][_0x7303c6(0x104)][_0x7303c6(0xfb)]),Promise[_0x7303c6(0x10b)]();}[_0x2385c5(0xf3)](_0x38ec15){const _0x45ba5a=_0x2385c5,_0x4a9e2e=_0x38ec15[_0x45ba5a(0x108)]('<')[_0x45ba5a(0x134)]!==_0x38ec15[_0x45ba5a(0x108)]('>')[_0x45ba5a(0x134)],_0x5cd07d=_0x38ec15[_0x45ba5a(0x134)]<0x1e;return _0x4a9e2e&&_0x5cd07d;}[_0x2385c5(0x119)](_0x148c26){const _0x112e63=_0x2385c5;return _0x148c26[_0x112e63(0x108)](/\n(?![^{]*\})/g)[_0x112e63(0x12d)](_0x216850=>_0x216850[_0x112e63(0x11c)](_0x112e63(0x117),''))[_0x112e63(0xff)](_0x1f331b=>_0x1f331b&&_0x1f331b[_0x112e63(0x134)]>0x0&&_0x112e63(0xfd)!==_0x1f331b)[_0x112e63(0x12d)](_0x46f44f=>{const _0x4c4a27=_0x112e63,{choices:_0x55e2ed}=JSON[_0x4c4a27(0x109)](_0x46f44f);if(_0x55e2ed[0x0]&&_0x55e2ed[0x0][_0x4c4a27(0x11e)]&&_0x55e2ed[0x0][_0x4c4a27(0x11e)][_0x4c4a27(0xfb)])return _0x55e2ed[0x0][_0x4c4a27(0x11e)][_0x4c4a27(0xfb)];})[_0x112e63(0xff)](_0x110448=>_0x110448)[_0x112e63(0x12a)]('');}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe303db=_0x4d9d;(function(_0x536b95,_0x46e1d4){const _0x5d5aa4=_0x4d9d,_0x559d10=_0x536b95();while(!![]){try{const _0x1590f0=-parseInt(_0x5d5aa4(0x22d))/0x1+-parseInt(_0x5d5aa4(0x1f9))/0x2+parseInt(_0x5d5aa4(0x1ea))/0x3*(parseInt(_0x5d5aa4(0x23d))/0x4)+parseInt(_0x5d5aa4(0x1f0))/0x5+parseInt(_0x5d5aa4(0x21a))/0x6+-parseInt(_0x5d5aa4(0x1e2))/0x7+parseInt(_0x5d5aa4(0x22c))/0x8;if(_0x1590f0===_0x46e1d4)break;else _0x559d10['push'](_0x559d10['shift']());}catch(_0x2c3764){_0x559d10['push'](_0x559d10['shift']());}}}(_0xdf38,0xe30c2));import{CKEditorError as _0x5368a9}from'ckeditor5/src/utils.js';function _0xdf38(){const _0x2d9de2=['Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','aiLicenseKeyTrial','changeTone','Make\x20shorter','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','12MMAbav','Poetic','aiLicenseKeyTrialLimit:operations','Confident','ai.aiAssistant.commands','Friendly','4454745CnfJja','pluginName','English','destroy','forEach','makeLonger','editor','journalism','translate','2116390zHOUXm','translateHindi','translateSpanish','legal','Change\x20tone','casual','Translate\x20to\x20%0','requires','licenseKey','ai-trial-license-key-reached-limit-changes','poetic','translateEnglish','locale','info','Translate','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.','confident','Professional','translatePortuguese','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','find','Improve\x20writing','Change\x20style','init','Translate\x20the\x20content\x20to\x20Arabic\x20language.','AIAssistant','Continue','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','get','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','groupId','set','7300698UJoqeT','aiLicenseKeyValid','business','Translate\x20the\x20content\x20to\x20English\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Casual','French','direct','config','define','editOrReview','translateArabic','Business','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','makeShorter','changeStyle','aiLicenseKeyInvalid','German','10953352CeXTzN','1266091mPigzb','concat','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','_licenseKeyCheckInterval','includes','translateChinese','commands','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','generate','Hindi','Translate\x20the\x20content\x20to\x20French\x20language.','filter','ai-invalid-license-key','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.','professional','1454308Umdgku','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','friendly','Translate\x20the\x20content\x20to\x20German\x20language.','Simplify\x20language','Journalism','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Make\x20longer','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','continue','summarize','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Edit\x20or\x20review','Portuguese','Spanish','Translate\x20the\x20content\x20to\x20Spanish\x20language.','translateGerman','Summarize','ai.aiAssistant.removeCommands','Arabic','simplifyLanguage','ai.aiAssistant.extraCommandGroups','Direct','translateFrench','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','improveWriting','Simplified\x20Chinese','11738559LXBKLj','Legal','push'];_0xdf38=function(){return _0x2d9de2;};return _0xdf38();}import{Plugin as _0x4f8922}from'ckeditor5/src/core.js';import _0x1f7c5a from'./aiassistantui.js';function _0x4d9d(_0xe0a2bc,_0x14ebf3){const _0xdf382a=_0xdf38();return _0x4d9d=function(_0x4d9d08,_0x55f6c8){_0x4d9d08=_0x4d9d08-0x1c9;let _0x5e6100=_0xdf382a[_0x4d9d08];return _0x5e6100;},_0x4d9d(_0xe0a2bc,_0x14ebf3);}import _0x185b2b from'./aiassistantediting.js';import{getTranslation as _0x5afc58}from'./utils/common-translations.js';export default class r extends _0x4f8922{static get[_0xe303db(0x200)](){return[_0x1f7c5a,_0x185b2b];}static get[_0xe303db(0x1f1)](){const _0x233488=_0xe303db;return _0x233488(0x213);}constructor(_0x11963f){const _0x13f6ab=_0xe303db;super(_0x11963f);const _0x4ea40c=_0x11963f[_0x13f6ab(0x222)];_0x4ea40c[_0x13f6ab(0x223)](_0x13f6ab(0x1ee),getDefaultCommands(_0x11963f[_0x13f6ab(0x205)])),_0x4ea40c[_0x13f6ab(0x223)](_0x13f6ab(0x1dc),[]),_0x4ea40c[_0x13f6ab(0x223)](_0x13f6ab(0x1d9),[]);const _0x49f99a=_0x4ea40c[_0x13f6ab(0x216)](_0x13f6ab(0x1ee)),_0x53e3bd=_0x4ea40c[_0x13f6ab(0x216)](_0x13f6ab(0x1dc)),_0x149af4=_0x4ea40c[_0x13f6ab(0x216)](_0x13f6ab(0x1d9));_0x53e3bd[_0x13f6ab(0x1f4)](_0x43aa8f=>{const _0x18da6f=_0x13f6ab,_0x5efde7=_0x49f99a[_0x18da6f(0x20e)](_0x49a5ed=>_0x49a5ed[_0x18da6f(0x218)]===_0x43aa8f[_0x18da6f(0x218)]);_0x5efde7?_0x5efde7[_0x18da6f(0x233)]=_0x5efde7[_0x18da6f(0x233)][_0x18da6f(0x22e)](_0x43aa8f[_0x18da6f(0x233)]):_0x49f99a[_0x18da6f(0x1e4)](_0x43aa8f);}),_0x49f99a[_0x13f6ab(0x1f4)](_0x2f7a28=>{const _0x246485=_0x13f6ab;_0x2f7a28[_0x246485(0x233)]=_0x2f7a28[_0x246485(0x233)][_0x246485(0x238)](_0x4fe540=>!_0x149af4[_0x246485(0x231)](_0x4fe540['id']));}),_0x4ea40c[_0x13f6ab(0x219)](_0x13f6ab(0x1ee),_0x49f99a);}[_0xe303db(0x211)](){const _0x5dc64a=_0xe303db,_0x3447c1=this[_0x5dc64a(0x1f6)];this[_0x5dc64a(0x201)]=_0x3447c1[_0x5dc64a(0x222)][_0x5dc64a(0x216)](_0x5dc64a(0x201)),this[_0x5dc64a(0x230)]=setInterval(()=>{const _0xb65089=_0x5dc64a;let _0x19bba5;for(const _0x470935 in _0x3447c1){const _0x51ea96=_0x470935,_0x5f207a=_0x3447c1[_0x51ea96];if(_0xb65089(0x1e6)===_0x5f207a||_0xb65089(0x22a)===_0x5f207a||_0xb65089(0x21b)===_0x5f207a||_0xb65089(0x1ec)===_0x5f207a){delete _0x3447c1[_0x51ea96],_0x19bba5=_0x5f207a;break;}}if(_0xb65089(0x22a)===_0x19bba5)throw clearInterval(this[_0xb65089(0x230)]),new _0x5368a9(_0xb65089(0x239),null);if(_0xb65089(0x1e6)===_0x19bba5&&console[_0xb65089(0x206)](_0xb65089(0x208)),_0xb65089(0x1ec)===_0x19bba5)throw clearInterval(this[_0xb65089(0x230)]),new _0x5368a9(_0xb65089(0x202),null);_0xb65089(0x21b)===_0x19bba5&&clearInterval(this[_0xb65089(0x230)]);},0x3e8);}[_0xe303db(0x1f3)](){const _0x85bfa=_0xe303db;this[_0x85bfa(0x230)]&&clearInterval(this[_0x85bfa(0x230)]);}}export function getDefaultCommands(_0x2a2657){const _0x33bec8=_0xe303db;return[{'groupId':_0x33bec8(0x224),'groupLabel':_0x5afc58(_0x2a2657,_0x33bec8(0x1d3)),'commands':[{'id':_0x33bec8(0x1e0),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x20f)),'prompt':_0x33bec8(0x1d2)},{'id':_0x33bec8(0x228),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1e8)),'prompt':_0x33bec8(0x1e5)},{'id':_0x33bec8(0x1f5),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1cd)),'prompt':_0x33bec8(0x20d)},{'id':_0x33bec8(0x1db),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1c9)),'prompt':_0x33bec8(0x234)}]},{'groupId':_0x33bec8(0x235),'groupLabel':_0x5afc58(_0x2a2657,_0x33bec8(0x23a)),'commands':[{'id':_0x33bec8(0x1d1),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1d8)),'prompt':_0x33bec8(0x23b)},{'id':_0x33bec8(0x1d0),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x214)),'prompt':_0x33bec8(0x22f)}]},{'groupId':_0x33bec8(0x1e7),'groupLabel':_0x5afc58(_0x2a2657,_0x33bec8(0x1fd)),'commands':[{'id':_0x33bec8(0x23c),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x20a)),'prompt':_0x33bec8(0x20c)},{'id':_0x33bec8(0x1fe),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x21f)),'prompt':_0x33bec8(0x227)},{'id':_0x33bec8(0x221),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1dd)),'prompt':_0x33bec8(0x1e9)},{'id':_0x33bec8(0x209),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1ed)),'prompt':_0x33bec8(0x23e)},{'id':_0x33bec8(0x23f),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1ef)),'prompt':_0x33bec8(0x215)}]},{'groupId':_0x33bec8(0x229),'groupLabel':_0x5afc58(_0x2a2657,_0x33bec8(0x210)),'commands':[{'id':_0x33bec8(0x21c),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x226)),'prompt':_0x33bec8(0x217)},{'id':_0x33bec8(0x1fc),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1e3)),'prompt':_0x33bec8(0x1cc)},{'id':_0x33bec8(0x1f7),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1ca)),'prompt':_0x33bec8(0x21e)},{'id':_0x33bec8(0x203),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1eb)),'prompt':_0x33bec8(0x1df)}]},{'groupId':_0x33bec8(0x1f8),'groupLabel':_0x5afc58(_0x2a2657,_0x33bec8(0x207)),'commands':[{'id':_0x33bec8(0x204),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1ff),[_0x5afc58(_0x2a2657,_0x33bec8(0x1f2))]),'prompt':_0x33bec8(0x21d)},{'id':_0x33bec8(0x1fb),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1ff),[_0x5afc58(_0x2a2657,_0x33bec8(0x1d5))]),'prompt':_0x33bec8(0x1d6)},{'id':_0x33bec8(0x20b),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1ff),[_0x5afc58(_0x2a2657,_0x33bec8(0x1d4))]),'prompt':_0x33bec8(0x1cf)},{'id':_0x33bec8(0x1d7),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1ff),[_0x5afc58(_0x2a2657,_0x33bec8(0x22b))]),'prompt':_0x33bec8(0x240)},{'id':_0x33bec8(0x1de),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1ff),[_0x5afc58(_0x2a2657,_0x33bec8(0x220))]),'prompt':_0x33bec8(0x237)},{'id':_0x33bec8(0x232),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1ff),[_0x5afc58(_0x2a2657,_0x33bec8(0x1e1))]),'prompt':_0x33bec8(0x1ce)},{'id':_0x33bec8(0x1fa),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1ff),[_0x5afc58(_0x2a2657,_0x33bec8(0x236))]),'prompt':_0x33bec8(0x1cb)},{'id':_0x33bec8(0x225),'label':_0x5afc58(_0x2a2657,_0x33bec8(0x1ff),[_0x5afc58(_0x2a2657,_0x33bec8(0x1da))]),'prompt':_0x33bec8(0x212)}]}];}
23
+ const _0x5c4a98=_0x5737;(function(_0x36129d,_0x1a2074){const _0x15e031=_0x5737,_0x24a416=_0x36129d();while(!![]){try{const _0x595d10=parseInt(_0x15e031(0x15d))/0x1*(parseInt(_0x15e031(0x116))/0x2)+-parseInt(_0x15e031(0x16f))/0x3*(parseInt(_0x15e031(0x102))/0x4)+parseInt(_0x15e031(0x142))/0x5+-parseInt(_0x15e031(0x12c))/0x6+-parseInt(_0x15e031(0x13b))/0x7+-parseInt(_0x15e031(0x156))/0x8+-parseInt(_0x15e031(0x175))/0x9*(-parseInt(_0x15e031(0x140))/0xa);if(_0x595d10===_0x1a2074)break;else _0x24a416['push'](_0x24a416['shift']());}catch(_0x264dcb){_0x24a416['push'](_0x24a416['shift']());}}}(_0x2c3c,0x379da));import{CKEditorError as _0x548db8}from'ckeditor5/src/utils.js';import{Plugin as _0x4b379e}from'ckeditor5/src/core.js';function _0x5737(_0x31183b,_0x2f092c){const _0x2c3cf7=_0x2c3c();return _0x5737=function(_0x573742,_0x20fb77){_0x573742=_0x573742-0xfc;let _0x47d2f9=_0x2c3cf7[_0x573742];return _0x47d2f9;},_0x5737(_0x31183b,_0x2f092c);}import _0x536c48 from'./aiassistantui.js';import _0x455b08 from'./aiassistantediting.js';import{getTranslation as _0x3dccb1}from'./utils/common-translations.js';export default class r extends _0x4b379e{static get[_0x5c4a98(0x170)](){return[_0x536c48,_0x455b08];}static get[_0x5c4a98(0x10a)](){const _0x3d6595=_0x5c4a98;return _0x3d6595(0x14b);}constructor(_0x44e449){const _0x4dec4c=_0x5c4a98;super(_0x44e449);const _0x12ba3e=_0x44e449[_0x4dec4c(0x11e)];_0x12ba3e[_0x4dec4c(0x174)](_0x4dec4c(0x159),getDefaultCommands(_0x44e449[_0x4dec4c(0x114)])),_0x12ba3e[_0x4dec4c(0x174)](_0x4dec4c(0x149),[]),_0x12ba3e[_0x4dec4c(0x174)](_0x4dec4c(0x163),[]);const _0x5257db=_0x12ba3e[_0x4dec4c(0x138)](_0x4dec4c(0x159)),_0x5a7443=_0x12ba3e[_0x4dec4c(0x138)](_0x4dec4c(0x149)),_0x3becfc=_0x12ba3e[_0x4dec4c(0x138)](_0x4dec4c(0x163));_0x5a7443[_0x4dec4c(0x121)](_0x1f26b3=>{const _0x5ee201=_0x4dec4c,_0x2a81e3=_0x5257db[_0x5ee201(0x15b)](_0x546897=>_0x546897[_0x5ee201(0x12b)]===_0x1f26b3[_0x5ee201(0x12b)]);_0x2a81e3?_0x2a81e3[_0x5ee201(0x129)]=_0x2a81e3[_0x5ee201(0x129)][_0x5ee201(0x11b)](_0x1f26b3[_0x5ee201(0x129)]):_0x5257db[_0x5ee201(0x15e)](_0x1f26b3);}),_0x5257db[_0x4dec4c(0x121)](_0x428ed7=>{const _0x4a59c5=_0x4dec4c;_0x428ed7[_0x4a59c5(0x129)]=_0x428ed7[_0x4a59c5(0x129)][_0x4a59c5(0x100)](_0xe0b010=>!_0x3becfc[_0x4a59c5(0x162)](_0xe0b010['id']));}),_0x12ba3e[_0x4dec4c(0x13e)](_0x4dec4c(0x159),_0x5257db);}[_0x5c4a98(0x157)](){const _0x39884a=_0x5c4a98,_0xd689ef=this[_0x39884a(0x128)];this[_0x39884a(0x146)]=_0xd689ef[_0x39884a(0x11e)][_0x39884a(0x138)](_0x39884a(0x146)),this[_0x39884a(0x122)]=setInterval(()=>{const _0x181f43=_0x39884a;let _0x20c458;for(const _0x416050 in _0xd689ef){const _0x3d8105=_0x416050,_0x15852c=_0xd689ef[_0x3d8105];if(_0x181f43(0x158)===_0x15852c||_0x181f43(0x150)===_0x15852c||_0x181f43(0x110)===_0x15852c||_0x181f43(0x164)===_0x15852c){delete _0xd689ef[_0x3d8105],_0x20c458=_0x15852c;break;}}if(_0x181f43(0x150)===_0x20c458)throw clearInterval(this[_0x181f43(0x122)]),new _0x548db8(_0x181f43(0x14e),null);if(_0x181f43(0x158)===_0x20c458&&console[_0x181f43(0x169)](_0x181f43(0x104)),_0x181f43(0x164)===_0x20c458)throw clearInterval(this[_0x181f43(0x122)]),new _0x548db8(_0x181f43(0x144),null);_0x181f43(0x110)===_0x20c458&&clearInterval(this[_0x181f43(0x122)]);},0x3e8);}[_0x5c4a98(0x14c)](){const _0x570544=_0x5c4a98;this[_0x570544(0x122)]&&clearInterval(this[_0x570544(0x122)]);}}export function getDefaultCommands(_0x2ff80c){const _0x481b97=_0x5c4a98;return[{'groupId':_0x481b97(0x14d),'groupLabel':_0x3dccb1(_0x2ff80c,_0x481b97(0x125)),'commands':[{'id':_0x481b97(0x108),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x10c)),'prompt':_0x481b97(0x13f)},{'id':_0x481b97(0x148),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x166)),'prompt':_0x481b97(0x15c)},{'id':_0x481b97(0x173),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x145)),'prompt':_0x481b97(0x101)},{'id':_0x481b97(0x123),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x10f)),'prompt':_0x481b97(0x160)}]},{'groupId':_0x481b97(0x15a),'groupLabel':_0x3dccb1(_0x2ff80c,_0x481b97(0x126)),'commands':[{'id':_0x481b97(0x168),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x10d)),'prompt':_0x481b97(0xfe)},{'id':_0x481b97(0x127),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x135)),'prompt':_0x481b97(0x165)}]},{'groupId':_0x481b97(0x151),'groupLabel':_0x3dccb1(_0x2ff80c,_0x481b97(0x113)),'commands':[{'id':_0x481b97(0x152),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x115)),'prompt':_0x481b97(0x153)},{'id':_0x481b97(0x137),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x14f)),'prompt':_0x481b97(0x16e)},{'id':_0x481b97(0x117),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x154)),'prompt':_0x481b97(0x143)},{'id':_0x481b97(0x12a),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x134)),'prompt':_0x481b97(0x119)},{'id':_0x481b97(0x106),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x161)),'prompt':_0x481b97(0x103)}]},{'groupId':_0x481b97(0x155),'groupLabel':_0x3dccb1(_0x2ff80c,_0x481b97(0x132)),'commands':[{'id':_0x481b97(0xfc),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x13d)),'prompt':_0x481b97(0xfd)},{'id':_0x481b97(0x16b),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x12d)),'prompt':_0x481b97(0x107)},{'id':_0x481b97(0x112),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16d)),'prompt':_0x481b97(0xff)},{'id':_0x481b97(0x130),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16a)),'prompt':_0x481b97(0x15f)}]},{'groupId':_0x481b97(0x109),'groupLabel':_0x3dccb1(_0x2ff80c,_0x481b97(0x11f)),'commands':[{'id':_0x481b97(0x10e),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x12f))]),'prompt':_0x481b97(0x136)},{'id':_0x481b97(0x139),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x118))]),'prompt':_0x481b97(0x10b)},{'id':_0x481b97(0x12e),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x111))]),'prompt':_0x481b97(0x11d)},{'id':_0x481b97(0x11a),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x105))]),'prompt':_0x481b97(0x120)},{'id':_0x481b97(0x124),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x133))]),'prompt':_0x481b97(0x131)},{'id':_0x481b97(0x171),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x167))]),'prompt':_0x481b97(0x147)},{'id':_0x481b97(0x11c),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x14a))]),'prompt':_0x481b97(0x13c)},{'id':_0x481b97(0x13a),'label':_0x3dccb1(_0x2ff80c,_0x481b97(0x16c),[_0x3dccb1(_0x2ff80c,_0x481b97(0x172))]),'prompt':_0x481b97(0x141)}]}];}function _0x2c3c(){const _0x175125=['Portuguese','journalism','Change\x20tone','locale','Professional','180470hopIDP','direct','Spanish','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','translateGerman','concat','translateHindi','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','config','Translate','Translate\x20the\x20content\x20to\x20German\x20language.','forEach','_licenseKeyCheckInterval','simplifyLanguage','translateFrench','Edit\x20or\x20review','Generate\x20from\x20selection','continue','editor','commands','confident','groupId','500706Xgtecc','Legal','translatePortuguese','English','poetic','Translate\x20the\x20content\x20to\x20French\x20language.','Change\x20style','French','Confident','Continue','Translate\x20the\x20content\x20to\x20English\x20language.','casual','get','translateSpanish','translateArabic','3047905gmJXvR','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Business','set','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','1255110uoJStg','Translate\x20the\x20content\x20to\x20Arabic\x20language.','1470825xHQmXy','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','ai-trial-license-key-reached-limit-changes','Make\x20longer','licenseKey','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','makeShorter','ai.aiAssistant.extraCommandGroups','Hindi','AIAssistant','destroy','editOrReview','ai-invalid-license-key','Casual','aiLicenseKeyInvalid','changeTone','professional','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Direct','changeStyle','977864EZWZfV','init','aiLicenseKeyTrial','ai.aiAssistant.commands','generate','find','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','1fABAGG','push','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Friendly','includes','ai.aiAssistant.removeCommands','aiLicenseKeyTrialLimit:operations','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Make\x20shorter','Simplified\x20Chinese','summarize','info','Poetic','legal','Translate\x20to\x20%0','Journalism','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','1182228mcaoAV','requires','translateChinese','Arabic','makeLonger','define','63oBFhDV','business','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','filter','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','4MVvoaG','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','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.','German','friendly','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','improveWriting','translate','pluginName','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Improve\x20writing','Summarize','translateEnglish','Simplify\x20language','aiLicenseKeyValid'];_0x2c3c=function(){return _0x175125;};return _0x2c3c();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1449f0=_0x362b;(function(_0x2d21f0,_0x28372d){const _0x4e38dd=_0x362b,_0x5a4330=_0x2d21f0();while(!![]){try{const _0x30553b=parseInt(_0x4e38dd(0x17a))/0x1*(parseInt(_0x4e38dd(0x147))/0x2)+-parseInt(_0x4e38dd(0x15a))/0x3*(-parseInt(_0x4e38dd(0x15c))/0x4)+parseInt(_0x4e38dd(0x148))/0x5*(parseInt(_0x4e38dd(0x167))/0x6)+parseInt(_0x4e38dd(0x170))/0x7+-parseInt(_0x4e38dd(0x169))/0x8*(parseInt(_0x4e38dd(0x15e))/0x9)+parseInt(_0x4e38dd(0x185))/0xa+-parseInt(_0x4e38dd(0x171))/0xb;if(_0x30553b===_0x28372d)break;else _0x5a4330['push'](_0x5a4330['shift']());}catch(_0x1efd24){_0x5a4330['push'](_0x5a4330['shift']());}}}(_0x1246,0x2a403));import{Plugin as _0x200de7}from'ckeditor5/src/core.js';function _0x1246(){const _0x1343ba=['ai.useTheme','getRange','145140gfMLGA','getFirstRange','markers','insertContent','10022EvjhgS','210545AxnPQk','getLastPosition','editingDowncast','from','push','document','createSelection','has','canEditAt','config','markerToElement','ck-ai-assistant-ui_theme','model','isContent','pop','ck-fake-ai-selection_collapsed','ck-fake-ai-selection-candidate','get','105bVRxiE','setSelection','12832CLnNyN','addMarker','1160559xxuiCp','ai-ui-candidate','toView','conversion','change','removeMarker','selection','length','data','18kUHZWX','getLastMatchingPosition','8wFTGsJ','processor','AIAssistantEditing','createPositionAfter','toModel','start','updateMarker','96838WduFPl','2756292LExRNK','for','init','pluginName','insertContentBelow','hideFakeVisualSelection','markerToHighlight','isAtEnd','schema','57kIKukj','ck-fake-ai-selection','createRange','editor','ai-ui','end','span','getSelectedBlocks','showFakeVisualSelection'];_0x1246=function(){return _0x1343ba;};return _0x1246();}const s=_0x1449f0(0x17e),c=_0x1449f0(0x15f);function _0x362b(_0x5e2fc8,_0x1d3d0a){const _0x124638=_0x1246();return _0x362b=function(_0x362bd2,_0x560727){_0x362bd2=_0x362bd2-0x145;let _0x560545=_0x124638[_0x362bd2];return _0x560545;},_0x362b(_0x5e2fc8,_0x1d3d0a);}export default class i extends _0x200de7{static get[_0x1449f0(0x174)](){const _0x4756c1=_0x1449f0;return _0x4756c1(0x16b);}[_0x1449f0(0x173)](){const _0x17114e=_0x1449f0,{editor:_0x528c00}=this,_0x59aca4=[_0x17114e(0x17b)];_0x528c00[_0x17114e(0x151)][_0x17114e(0x159)](_0x17114e(0x183))&&_0x59aca4[_0x17114e(0x14c)](_0x17114e(0x153)),_0x528c00[_0x17114e(0x161)][_0x17114e(0x172)](_0x17114e(0x14a))[_0x17114e(0x177)]({'model':s,'view':{'classes':_0x59aca4,'priority':0xc}}),_0x528c00[_0x17114e(0x161)][_0x17114e(0x172)](_0x17114e(0x14a))[_0x17114e(0x152)]({'model':s,'view':{'name':_0x17114e(0x180),'classes':[_0x17114e(0x17b),_0x17114e(0x157)],'priority':0xc}}),_0x528c00[_0x17114e(0x161)][_0x17114e(0x172)](_0x17114e(0x14a))[_0x17114e(0x177)]({'model':c,'view':{'classes':[_0x17114e(0x158)],'priority':0x19}}),_0x528c00[_0x17114e(0x161)][_0x17114e(0x172)](_0x17114e(0x14a))[_0x17114e(0x152)]({'model':c,'view':{'name':_0x17114e(0x180),'classes':[_0x17114e(0x158),_0x17114e(0x157)],'priority':0x19}});}[_0x1449f0(0x182)](_0x4d8677){const _0x3b4f84=_0x1449f0,_0x50926b=this[_0x3b4f84(0x17d)][_0x3b4f84(0x154)],_0x2806b0=_0x4d8677?c:s;_0x50926b[_0x3b4f84(0x162)](_0x48f0d1=>{const _0x5bdedb=_0x3b4f84,_0x3d4587=_0x50926b[_0x5bdedb(0x14d)][_0x5bdedb(0x164)][_0x5bdedb(0x186)]();if(_0x50926b[_0x5bdedb(0x145)][_0x5bdedb(0x14f)](_0x2806b0))_0x48f0d1[_0x5bdedb(0x16f)](_0x2806b0,{'range':_0x3d4587});else{if(_0x3d4587[_0x5bdedb(0x16e)][_0x5bdedb(0x178)]){const _0x73c76b=_0x3d4587[_0x5bdedb(0x16e)][_0x5bdedb(0x168)](({item:_0x54d8f0})=>!_0x50926b[_0x5bdedb(0x179)][_0x5bdedb(0x155)](_0x54d8f0),{'boundaries':_0x3d4587});_0x48f0d1[_0x5bdedb(0x15d)](_0x2806b0,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x48f0d1[_0x5bdedb(0x17c)](_0x73c76b,_0x3d4587[_0x5bdedb(0x17f)])});}else _0x48f0d1[_0x5bdedb(0x15d)](_0x2806b0,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x3d4587});}});}[_0x1449f0(0x176)](_0xe0a289){const _0x39f282=_0x1449f0,_0x4c840e=this[_0x39f282(0x17d)][_0x39f282(0x154)],_0x32f5a2=_0xe0a289?c:s;_0x4c840e[_0x39f282(0x145)][_0x39f282(0x14f)](_0x32f5a2)&&_0x4c840e[_0x39f282(0x162)](_0x42e5d8=>{const _0x9e61fd=_0x39f282;_0x42e5d8[_0x9e61fd(0x163)](_0x32f5a2);});}[_0x1449f0(0x146)](_0x3b77f3,_0x3cfdc1){const _0x23090e=_0x1449f0,_0xc6bca5=_0x3cfdc1||this[_0x23090e(0x17d)][_0x23090e(0x154)][_0x23090e(0x145)][_0x23090e(0x159)](s)[_0x23090e(0x184)]();if(!this[_0x23090e(0x17d)][_0x23090e(0x154)][_0x23090e(0x150)](_0xc6bca5))return;const _0x40c9f5=this[_0x23090e(0x17d)][_0x23090e(0x166)][_0x23090e(0x16a)][_0x23090e(0x160)](_0x3b77f3),_0x3dd47d=this[_0x23090e(0x17d)][_0x23090e(0x166)][_0x23090e(0x16d)](_0x40c9f5);this[_0x23090e(0x17d)][_0x23090e(0x154)][_0x23090e(0x162)](_0x47f595=>{const _0x52bf66=_0x23090e;this[_0x52bf66(0x176)]();const _0x3638ed=this[_0x52bf66(0x17d)][_0x52bf66(0x154)][_0x52bf66(0x146)](_0x3dd47d,_0xc6bca5);_0x3638ed&&_0x47f595[_0x52bf66(0x15b)](_0x3638ed);});}[_0x1449f0(0x175)](_0x3704df){const _0xb27e4b=_0x1449f0,{model:_0x88317a}=this[_0xb27e4b(0x17d)],_0x331d13=Array[_0xb27e4b(0x14b)](_0x88317a[_0xb27e4b(0x14e)](this[_0xb27e4b(0x17d)][_0xb27e4b(0x154)][_0xb27e4b(0x145)][_0xb27e4b(0x159)](s)[_0xb27e4b(0x184)]())[_0xb27e4b(0x181)]()),_0x26a8a7=_0x331d13[_0xb27e4b(0x165)]?_0x88317a[_0xb27e4b(0x16c)](_0x331d13[_0xb27e4b(0x156)]()):_0x88317a[_0xb27e4b(0x14d)][_0xb27e4b(0x164)][_0xb27e4b(0x149)]();this[_0xb27e4b(0x146)](_0x3704df,_0x26a8a7);}}
23
+ function _0x391b(){const _0x542a6c=['schema','7422653gkFxAb','has','10079886iTVKot','start','6PvfIcM','markerToElement','config','pop','pluginName','toModel','AIAssistantEditing','ck-fake-ai-selection','processor','85911DlNFJM','end','removeMarker','ck-fake-ai-selection-candidate','getSelectedBlocks','for','markers','setSelection','ck-ai-assistant-ui_theme','updateMarker','createSelection','isContent','hideFakeVisualSelection','getLastPosition','toView','createRange','length','ai-ui-candidate','showFakeVisualSelection','insertContentBelow','ai.useTheme','push','1258150SJxVJT','canEditAt','from','selection','5rjAMoD','isAtEnd','document','981562ytlenk','editingDowncast','ck-fake-ai-selection_collapsed','createPositionAfter','getRange','markerToHighlight','span','model','get','editor','14454856UCTKsG','getLastMatchingPosition','change','171IyyQjd','init','conversion','5221812NYQgHA','insertContent','addMarker','getFirstRange','ai-ui','data'];_0x391b=function(){return _0x542a6c;};return _0x391b();}const _0x550dae=_0x1ad8;function _0x1ad8(_0x5e3088,_0x6822a6){const _0x391b15=_0x391b();return _0x1ad8=function(_0x1ad82f,_0x428f73){_0x1ad82f=_0x1ad82f-0x152;let _0x2121af=_0x391b15[_0x1ad82f];return _0x2121af;},_0x1ad8(_0x5e3088,_0x6822a6);}(function(_0x14f874,_0x14b3df){const _0x50eca3=_0x1ad8,_0x417b1c=_0x14f874();while(!![]){try{const _0x203491=parseInt(_0x50eca3(0x174))/0x1+-parseInt(_0x50eca3(0x18f))/0x2*(parseInt(_0x50eca3(0x157))/0x3)+parseInt(_0x50eca3(0x184))/0x4+parseInt(_0x50eca3(0x171))/0x5*(-parseInt(_0x50eca3(0x18d))/0x6)+parseInt(_0x50eca3(0x18b))/0x7+parseInt(_0x50eca3(0x17e))/0x8+-parseInt(_0x50eca3(0x181))/0x9*(parseInt(_0x50eca3(0x16d))/0xa);if(_0x203491===_0x14b3df)break;else _0x417b1c['push'](_0x417b1c['shift']());}catch(_0x5a6f2f){_0x417b1c['push'](_0x417b1c['shift']());}}}(_0x391b,0xf39f2));import{Plugin as _0xf2e562}from'ckeditor5/src/core.js';const s=_0x550dae(0x188),c=_0x550dae(0x168);export default class i extends _0xf2e562{static get[_0x550dae(0x152)](){const _0x59a8cd=_0x550dae;return _0x59a8cd(0x154);}[_0x550dae(0x182)](){const _0x1e060a=_0x550dae,{editor:_0x26e3f4}=this,_0x53f6ad=[_0x1e060a(0x155)];_0x26e3f4[_0x1e060a(0x191)][_0x1e060a(0x17c)](_0x1e060a(0x16b))&&_0x53f6ad[_0x1e060a(0x16c)](_0x1e060a(0x15f)),_0x26e3f4[_0x1e060a(0x183)][_0x1e060a(0x15c)](_0x1e060a(0x175))[_0x1e060a(0x179)]({'model':s,'view':{'classes':_0x53f6ad,'priority':0xc}}),_0x26e3f4[_0x1e060a(0x183)][_0x1e060a(0x15c)](_0x1e060a(0x175))[_0x1e060a(0x190)]({'model':s,'view':{'name':_0x1e060a(0x17a),'classes':[_0x1e060a(0x155),_0x1e060a(0x176)],'priority':0xc}}),_0x26e3f4[_0x1e060a(0x183)][_0x1e060a(0x15c)](_0x1e060a(0x175))[_0x1e060a(0x179)]({'model':c,'view':{'classes':[_0x1e060a(0x15a)],'priority':0x19}}),_0x26e3f4[_0x1e060a(0x183)][_0x1e060a(0x15c)](_0x1e060a(0x175))[_0x1e060a(0x190)]({'model':c,'view':{'name':_0x1e060a(0x17a),'classes':[_0x1e060a(0x15a),_0x1e060a(0x176)],'priority':0x19}});}[_0x550dae(0x169)](_0x310829){const _0xc2e454=_0x550dae,_0x491ff5=this[_0xc2e454(0x17d)][_0xc2e454(0x17b)],_0x4d34f4=_0x310829?c:s;_0x491ff5[_0xc2e454(0x180)](_0x329eda=>{const _0x167f32=_0xc2e454,_0xa0cbc=_0x491ff5[_0x167f32(0x173)][_0x167f32(0x170)][_0x167f32(0x187)]();if(_0x491ff5[_0x167f32(0x15d)][_0x167f32(0x18c)](_0x4d34f4))_0x329eda[_0x167f32(0x160)](_0x4d34f4,{'range':_0xa0cbc});else{if(_0xa0cbc[_0x167f32(0x18e)][_0x167f32(0x172)]){const _0x31c62c=_0xa0cbc[_0x167f32(0x18e)][_0x167f32(0x17f)](({item:_0x541c40})=>!_0x491ff5[_0x167f32(0x18a)][_0x167f32(0x162)](_0x541c40),{'boundaries':_0xa0cbc});_0x329eda[_0x167f32(0x186)](_0x4d34f4,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x329eda[_0x167f32(0x166)](_0x31c62c,_0xa0cbc[_0x167f32(0x158)])});}else _0x329eda[_0x167f32(0x186)](_0x4d34f4,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0xa0cbc});}});}[_0x550dae(0x163)](_0x16d184){const _0xf1b277=_0x550dae,_0x4359ab=this[_0xf1b277(0x17d)][_0xf1b277(0x17b)],_0x535406=_0x16d184?c:s;_0x4359ab[_0xf1b277(0x15d)][_0xf1b277(0x18c)](_0x535406)&&_0x4359ab[_0xf1b277(0x180)](_0x354001=>{const _0x423266=_0xf1b277;_0x354001[_0x423266(0x159)](_0x535406);});}[_0x550dae(0x185)](_0x53beef,_0x52addf){const _0x3d4ca6=_0x550dae,_0xd6ec98=_0x52addf||this[_0x3d4ca6(0x17d)][_0x3d4ca6(0x17b)][_0x3d4ca6(0x15d)][_0x3d4ca6(0x17c)](s)[_0x3d4ca6(0x178)]();if(!this[_0x3d4ca6(0x17d)][_0x3d4ca6(0x17b)][_0x3d4ca6(0x16e)](_0xd6ec98))return;const _0x3b90e4=this[_0x3d4ca6(0x17d)][_0x3d4ca6(0x189)][_0x3d4ca6(0x156)][_0x3d4ca6(0x165)](_0x53beef),_0x16a74e=this[_0x3d4ca6(0x17d)][_0x3d4ca6(0x189)][_0x3d4ca6(0x153)](_0x3b90e4);this[_0x3d4ca6(0x17d)][_0x3d4ca6(0x17b)][_0x3d4ca6(0x180)](_0xb6a88c=>{const _0x14b27e=_0x3d4ca6;this[_0x14b27e(0x163)]();const _0x1293e6=this[_0x14b27e(0x17d)][_0x14b27e(0x17b)][_0x14b27e(0x185)](_0x16a74e,_0xd6ec98);_0x1293e6&&_0xb6a88c[_0x14b27e(0x15e)](_0x1293e6);});}[_0x550dae(0x16a)](_0x2be4ac){const _0x415fea=_0x550dae,{model:_0x56801f}=this[_0x415fea(0x17d)],_0x3f6793=Array[_0x415fea(0x16f)](_0x56801f[_0x415fea(0x161)](this[_0x415fea(0x17d)][_0x415fea(0x17b)][_0x415fea(0x15d)][_0x415fea(0x17c)](s)[_0x415fea(0x178)]())[_0x415fea(0x15b)]()),_0x1eea07=_0x3f6793[_0x415fea(0x167)]?_0x56801f[_0x415fea(0x177)](_0x3f6793[_0x415fea(0x192)]()):_0x56801f[_0x415fea(0x173)][_0x415fea(0x170)][_0x415fea(0x164)]();this[_0x415fea(0x185)](_0x2be4ac,_0x1eea07);}}