@ckeditor/ckeditor5-ai 41.3.0-alpha.2 → 41.3.0-alpha.3
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.
- package/build/ai.js +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/package.json +4 -4
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/ui/aiassistantcontroller.js +1 -1
- package/src/ui/dropdown/aicommandslistview.js +1 -1
- package/src/ui/dropdown/buttonlabelwithhighlightview.js +1 -1
- package/src/ui/dropdown/labelwithhighlightview.js +1 -1
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- 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':
|
|
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':_0x1d49eb=>0x0}};
|
package/dist/translations/zh.js
CHANGED
|
@@ -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':
|
|
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':_0x3b2d15=>0x0}};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ai",
|
|
3
|
-
"version": "41.3.0-alpha.
|
|
3
|
+
"version": "41.3.0-alpha.3",
|
|
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.
|
|
27
|
-
"ckeditor5-collaboration": "41.3.0-alpha.
|
|
26
|
+
"ckeditor5": "41.3.0-alpha.3",
|
|
27
|
+
"ckeditor5-collaboration": "41.3.0-alpha.3",
|
|
28
28
|
"@aws-sdk/client-bedrock-runtime": "3.470.0",
|
|
29
|
-
"@ckeditor/ckeditor5-ui": "41.3.0-alpha.
|
|
29
|
+
"@ckeditor/ckeditor5-ui": "41.3.0-alpha.3",
|
|
30
30
|
"lodash-es": "4.17.21"
|
|
31
31
|
},
|
|
32
32
|
"type": "module",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x4b756d=_0x4735;function _0x4735(_0x51a8fa,_0x2eb9d9){var _0x32b108=_0x32b1();return _0x4735=function(_0x473544,_0x528bb6){_0x473544=_0x473544-0x148;var _0x42c2d8=_0x32b108[_0x473544];return _0x42c2d8;},_0x4735(_0x51a8fa,_0x2eb9d9);}(function(_0x280d10,_0x248059){var _0xde6782=_0x4735,_0x3c8513=_0x280d10();while(!![]){try{var _0x5bc7ba=-parseInt(_0xde6782(0x150))/0x1+-parseInt(_0xde6782(0x14e))/0x2+parseInt(_0xde6782(0x154))/0x3+-parseInt(_0xde6782(0x149))/0x4+parseInt(_0xde6782(0x156))/0x5+parseInt(_0xde6782(0x14c))/0x6+-parseInt(_0xde6782(0x14a))/0x7*(parseInt(_0xde6782(0x148))/0x8);if(_0x5bc7ba===_0x248059)break;else _0x3c8513['push'](_0x3c8513['shift']());}catch(_0x131312){_0x3c8513['push'](_0x3c8513['shift']());}}}(_0x32b1,0xb0be7));import{Plugin as _0x5699c1}from'ckeditor5/src/core.js';function _0x32b1(){var _0x4cc6b8=['afterInit','pluginName','aiadapter-text-adapter-not-set','659937XuXwPs','name','5677640PHLxqQ','64JdkIvy','542624nKroSM','273707bDivbV','AIRequestError','3110064aWdlBw','AIAdapter','92154ryAxVx','textAdapter','655367BzJEee'];_0x32b1=function(){return _0x4cc6b8;};return _0x32b1();}import{CKEditorError as _0x2f1bc5}from'ckeditor5/src/utils.js';export default class I extends _0x5699c1{static get[_0x4b756d(0x152)](){var _0x34efd5=_0x4b756d;return _0x34efd5(0x14d);}[_0x4b756d(0x151)](){var _0x595bee=_0x4b756d;if(!this[_0x595bee(0x14f)])throw new _0x2f1bc5(_0x595bee(0x153),null);}}export class AIRequestError extends Error{constructor(_0x267a00){var _0x3204c0=_0x4b756d;super(_0x267a00),this[_0x3204c0(0x155)]=_0x3204c0(0x14b);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0xb192(){const _0x2b3fa6=['5NOPZmx','AI_ERROR_GET_PARAMETERS','sendRequest','requires','catch','signal','init','plugins','makeRequest','editor','abort','name','get','320KkRwsA','error','604491JiDydf','_prepareRequestParameters','4816190uqArIP','1858xmpUgI','aborted','_prepareRequestHeaders','AI_ERROR_GET_HEADERS','object','AbortError','application/json','reject','aitextadapter-send-request-failed','textAdapter','2111112BVSsiM','locale','assign','52641NNDxJw','resolve','129768JwYkEE','abortController','55xBpHqJ','2222339PxhYoh','4HaiVPC','456OmjJef'];_0xb192=function(){return _0x2b3fa6;};return _0xb192();}const _0x37a194=_0x4b5f;(function(_0x113581,_0x5cd1db){const _0x463f8a=_0x4b5f,_0x24877a=_0x113581();while(!![]){try{const _0x4ff0e7=parseInt(_0x463f8a(0x10c))/0x1*(parseInt(_0x463f8a(0x107))/0x2)+parseInt(_0x463f8a(0x109))/0x3*(parseInt(_0x463f8a(0xf8))/0x4)+parseInt(_0x463f8a(0xfa))/0x5*(-parseInt(_0x463f8a(0xef))/0x6)+parseInt(_0x463f8a(0xf7))/0x7+parseInt(_0x463f8a(0xf9))/0x8*(parseInt(_0x463f8a(0xf2))/0x9)+-parseInt(_0x463f8a(0x10b))/0xa+-parseInt(_0x463f8a(0xf6))/0xb*(parseInt(_0x463f8a(0xf4))/0xc);if(_0x4ff0e7===_0x5cd1db)break;else _0x24877a['push'](_0x24877a['shift']());}catch(_0x5cd1e9){_0x24877a['push'](_0x24877a['shift']());}}}(_0xb192,0x3ffda));function _0x4b5f(_0x1fa445,_0x4c0039){const _0xb1923=_0xb192();return _0x4b5f=function(_0x4b5fcc,_0x5ef1f9){_0x4b5fcc=_0x4b5fcc-0xe8;let _0x2d28ed=_0xb1923[_0x4b5fcc];return _0x2d28ed;},_0x4b5f(_0x1fa445,_0x4c0039);}import{Plugin as _0x587a7d}from'ckeditor5/src/core.js';import{CKEditorError as _0x1afa2e}from'ckeditor5/src/utils.js';import{default as _0x414a92,AIRequestError as _0x20c24a}from'./aiadapter.js';import{getTranslation as _0x4b8b90}from'../utils/common-translations.js';export default class _ extends _0x587a7d{static get[_0x37a194(0xfd)](){return[_0x414a92];}constructor(_0x5efefc){const _0x5c863c=_0x37a194;super(_0x5efefc),this[_0x5c863c(0xf5)]=new AbortController();}[_0x37a194(0x100)](){const _0x5317e4=_0x37a194;this[_0x5317e4(0x103)][_0x5317e4(0x101)][_0x5317e4(0x106)](_0x414a92)[_0x5317e4(0xee)]=this;}[_0x37a194(0x104)](){const _0x2032e0=_0x37a194;this[_0x2032e0(0xf5)][_0x2032e0(0xff)][_0x2032e0(0x10d)]||(this[_0x2032e0(0xf5)][_0x2032e0(0x104)](),this[_0x2032e0(0xf5)]=new AbortController());}async[_0x37a194(0x102)](_0x313417){const _0x5bd8c2=_0x37a194;return this[_0x5bd8c2(0xfc)](_0x313417)[_0x5bd8c2(0xfe)](_0x2db995=>{const _0x594fce=_0x5bd8c2;if(_0x2db995 instanceof _0x20c24a)return Promise[_0x594fce(0xec)](_0x2db995);if(_0x594fce(0xea)==_0x2db995[_0x594fce(0x105)])return Promise[_0x594fce(0xf3)]();throw console[_0x594fce(0x108)](_0x2db995),new _0x1afa2e(_0x594fce(0xed),null);});}async[_0x37a194(0x10e)](_0x26a63c,_0x2c3c55){const _0x421855=_0x37a194,_0x45e29b=this[_0x421855(0x103)][_0x421855(0xf0)],_0x2b9a4c={'Content-Type':_0x421855(0xeb)};if(_0x421855(0xe9)==typeof _0x26a63c)Object[_0x421855(0xf1)](_0x2b9a4c,_0x26a63c);else{if(_0x26a63c)try{const _0x3b10d9=await _0x26a63c(_0x2c3c55);Object[_0x421855(0xf1)](_0x2b9a4c,_0x3b10d9);}catch(_0x2b5a62){return Promise[_0x421855(0xec)](new _0x20c24a(_0x4b8b90(_0x45e29b,_0x421855(0xe8))));}}return _0x2b9a4c;}async[_0x37a194(0x10a)](_0x1e9e64,_0x4d2b19){const _0x386b20=_0x37a194,_0x4f7bd5=this[_0x386b20(0x103)][_0x386b20(0xf0)];if(_0x386b20(0xe9)==typeof _0x1e9e64)return _0x1e9e64;try{return await _0x1e9e64(_0x4d2b19);}catch(_0x2889f6){return Promise[_0x386b20(0xec)](new _0x20c24a(_0x4b8b90(_0x4f7bd5,_0x386b20(0xfb))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x39b3c6=_0x4f47;(function(_0x15c4d9,_0x4df2c4){const _0x52d732=_0x4f47,_0x1cc2fc=_0x15c4d9();while(!![]){try{const _0x4a8c88=-parseInt(_0x52d732(0xe6))/0x1+parseInt(_0x52d732(0xd3))/0x2*(parseInt(_0x52d732(0xb0))/0x3)+-parseInt(_0x52d732(0xbd))/0x4+parseInt(_0x52d732(0xd8))/0x5+parseInt(_0x52d732(0xdf))/0x6*(parseInt(_0x52d732(0xe5))/0x7)+-parseInt(_0x52d732(0xdb))/0x8+parseInt(_0x52d732(0xf8))/0x9*(parseInt(_0x52d732(0xab))/0xa);if(_0x4a8c88===_0x4df2c4)break;else _0x1cc2fc['push'](_0x1cc2fc['shift']());}catch(_0x2709e3){_0x1cc2fc['push'](_0x1cc2fc['shift']());}}}(_0x2471,0xcd1b7));import{default as _0x4d60a2}from'./aitextadapter.js';import{AIRequestError as _0x4dfb02}from'./aiadapter.js';import{BedrockRuntimeClient as _0x561287,InvokeModelCommand as _0x5541f7,InvokeModelWithResponseStreamCommand as _0x21d114}from'@aws-sdk/client-bedrock-runtime';function _0x4f47(_0x1b05e7,_0x264645){const _0x2471b6=_0x2471();return _0x4f47=function(_0x4f471c,_0xb384d4){_0x4f471c=_0x4f471c-0xa8;let _0x219a83=_0x2471b6[_0x4f471c];return _0x219a83;},_0x4f47(_0x1b05e7,_0x264645);}import{getTranslation as _0x5c6338}from'../utils/common-translations.js';function _0x2471(){const _0x4eaae1=['441610WEfYKP','anthropic.claude','length','json','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','268815mpuhhu','parse','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','sendRequest','_bedrockClientConfig','anthropic.claude-v2','ai.aws.requestParameters','cohere.command','toString','filter','completion','Instruction:\x0a','5066160EDJXtF','utf-8','_requestParameters','_readStreamableResponse','stringify','_readStaticResponse','_requestHeaders','test','meta.llama','chunk','resolve','signal','ai.aws.requestHeaders','AI_ERROR_UNSUPPORTED_MODEL','preparePrompt','generation','ai21.j2','Human:\x0a','_processAWSRequest','split','send','<<SYS>>\x0a','4WaDLSZ','AWSTextAdapter','bedrock-2023-05-31','\x0a[/INST]','_apiUrl','372710bedMDf','data','get','4255960WtmSgm','utf8','define','_processProxyRequest','6mlEFLc','ai.aws.apiUrl','_readAsyncIterableResponse','completions','pluginName','_getGeneratedText','9136155QpHFIe','421737UevRJH','\x0a<</SYS>>\x0a[INST]\x0a','body','_prepareRequestParameters','abortController','text','application/json','POST','from','editor','read','locale','generations','join','bytes','ai.aws.bedrockClientConfig','map','getModelFamily','306mlqHWX','\x0a\x0aAssistant:','getReader','_prepareRequestHeaders','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.','decode'];_0x2471=function(){return _0x4eaae1;};return _0x2471();}export default class q extends _0x4d60a2{static get[_0x39b3c6(0xe3)](){const _0x1a484e=_0x39b3c6;return _0x1a484e(0xd4);}constructor(_0x1f3f5b){const _0x3c79d4=_0x39b3c6;super(_0x1f3f5b),_0x1f3f5b[_0x3c79d4(0xb3)][_0x3c79d4(0xda)](_0x3c79d4(0xb7))||_0x1f3f5b[_0x3c79d4(0xb3)][_0x3c79d4(0xdd)](_0x3c79d4(0xb7),{'model':_0x3c79d4(0xb6),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x3c79d4(0xd5),'stream':!0x0}),this[_0x3c79d4(0xd7)]=_0x1f3f5b[_0x3c79d4(0xb3)][_0x3c79d4(0xda)](_0x3c79d4(0xe0)),this[_0x3c79d4(0xb5)]=_0x1f3f5b[_0x3c79d4(0xb3)][_0x3c79d4(0xda)](_0x3c79d4(0xf5)),this[_0x3c79d4(0xc3)]=_0x1f3f5b[_0x3c79d4(0xb3)][_0x3c79d4(0xda)](_0x3c79d4(0xc9)),this[_0x3c79d4(0xbf)]=_0x1f3f5b[_0x3c79d4(0xb3)][_0x3c79d4(0xda)](_0x3c79d4(0xb7));}async[_0x39b3c6(0xb4)]({query:_0x17cc5b,context:_0xf44273,onData:_0x1863d7,actionId:_0x21e3ed}){const _0x3abe1d=_0x39b3c6,{model:_0x3b6f71,stream:_0x300003,..._0x5165fc}=await this[_0x3abe1d(0xe9)](this[_0x3abe1d(0xbf)],_0x21e3ed),_0x11bd3e={'prompt':await this[_0x3abe1d(0xcb)](_0x17cc5b,_0xf44273,_0x3b6f71,_0x21e3ed),..._0x5165fc};this[_0x3abe1d(0xd7)]?await this[_0x3abe1d(0xde)](_0x11bd3e,_0x3b6f71,_0x300003,_0x1863d7,_0x21e3ed):await this[_0x3abe1d(0xcf)](_0x11bd3e,_0x3b6f71,_0x300003,_0x1863d7);}async[_0x39b3c6(0xcb)](_0x4a7ddc,_0xcd11d4,_0x31835e,_0xa5f2e8){const _0xa2f9bb=_0x39b3c6;let _0x2bf620,_0x26485a;return _0xcd11d4?(_0x2bf620=_0xa2f9bb(0xa9),_0x26485a=_0xa2f9bb(0xbc)+_0x4a7ddc+_0xa2f9bb(0xaf)+_0xcd11d4):(_0x2bf620=_0xa2f9bb(0xb2),_0x26485a=_0x4a7ddc),_0xa2f9bb(0xc5)==this[_0xa2f9bb(0xf7)](_0x31835e)?_0xa2f9bb(0xd2)+_0x2bf620+_0xa2f9bb(0xe7)+_0x26485a+_0xa2f9bb(0xd6):_0xa2f9bb(0xce)+_0x2bf620+'\x0a'+_0x26485a+_0xa2f9bb(0xf9);}[_0x39b3c6(0xf7)](_0x2889f6){const _0x2466be=_0x39b3c6;if(/^anthropic\.claude/[_0x2466be(0xc4)](_0x2889f6))return _0x2466be(0xac);if(/^ai21\.j2/[_0x2466be(0xc4)](_0x2889f6))return _0x2466be(0xcd);if(/^cohere\.command/[_0x2466be(0xc4)](_0x2889f6))return _0x2466be(0xb8);if(/^meta\.llama/[_0x2466be(0xc4)](_0x2889f6))return _0x2466be(0xc5);throw new _0x4dfb02(_0x5c6338(this[_0x2466be(0xef)][_0x2466be(0xf1)],_0x2466be(0xca),_0x2889f6));}async[_0x39b3c6(0xde)](_0x4dea05,_0x37c447,_0x19a2f3,_0x148037,_0xd2ae4c){const _0x5da6ee=_0x39b3c6,_0x5162cc={'method':_0x5da6ee(0xed),'headers':await this[_0x5da6ee(0xa8)](this[_0x5da6ee(0xc3)],_0xd2ae4c),'body':JSON[_0x5da6ee(0xc1)]({..._0x4dea05,'model':_0x37c447,'stream':_0x19a2f3}),'signal':this[_0x5da6ee(0xea)][_0x5da6ee(0xc8)]},_0x3601b4=await fetch(this[_0x5da6ee(0xd7)],_0x5162cc);_0x19a2f3?await this[_0x5da6ee(0xc0)](_0x3601b4,_0x37c447,_0x148037):await this[_0x5da6ee(0xc2)](_0x3601b4,_0x37c447,_0x148037);}async[_0x39b3c6(0xcf)](_0xe2bef6,_0x269a34,_0x45c807,_0x5beca3){const _0x3cbbe7=_0x39b3c6,_0x3638cc=new _0x561287(this[_0x3cbbe7(0xb5)]),_0x35b891={'body':JSON[_0x3cbbe7(0xc1)](_0xe2bef6),'contentType':_0x3cbbe7(0xec),'accept':_0x3cbbe7(0xec),'modelId':_0x269a34};let _0x238cb6;if(_0x45c807){const _0x1f3cb8=new _0x21d114(_0x35b891);_0x238cb6=await _0x3638cc[_0x3cbbe7(0xd1)](_0x1f3cb8,{'abortSignal':this[_0x3cbbe7(0xea)][_0x3cbbe7(0xc8)]}),await this[_0x3cbbe7(0xe1)](_0x238cb6,_0x269a34,_0x5beca3);}else{const _0x363ede=new _0x5541f7(_0x35b891);_0x238cb6=await _0x3638cc[_0x3cbbe7(0xd1)](_0x363ede,{'abortSignal':this[_0x3cbbe7(0xea)][_0x3cbbe7(0xc8)]}),await this[_0x3cbbe7(0xc2)](_0x238cb6,_0x269a34,_0x5beca3);}}async[_0x39b3c6(0xe1)](_0x1a52c7,_0x54c73d,_0x4ff1d0){const _0x5d22b0=_0x39b3c6,_0x489a92=_0x1a52c7[_0x5d22b0(0xe8)],_0x149600=new TextDecoder(_0x5d22b0(0xbe));let _0x4e233d='';for await(const _0x36f7ba of _0x489a92)if(_0x36f7ba[_0x5d22b0(0xc6)]){const _0xff32cd=_0x149600[_0x5d22b0(0xaa)](_0x36f7ba[_0x5d22b0(0xc6)][_0x5d22b0(0xf4)]),_0x11e3d4=JSON[_0x5d22b0(0xb1)](_0xff32cd);_0x4e233d+=this[_0x5d22b0(0xe4)](_0x11e3d4,_0x54c73d),_0x4ff1d0(_0x4e233d);}return Promise[_0x5d22b0(0xc7)]();}async[_0x39b3c6(0xc0)](_0x3cb82b,_0x448198,_0x195483){const _0x21aed8=_0x39b3c6,_0x5e978f=_0x3cb82b[_0x21aed8(0xe8)],_0x483c45=new TextDecoder(_0x21aed8(0xbe)),_0x383f4e=_0x5e978f[_0x21aed8(0xfa)]();let _0x4aed73='',_0x33daf2='',_0x49c532=!0x1;for(;!_0x49c532;){const {done:_0x307bd8,value:_0x3236bf}=await _0x383f4e[_0x21aed8(0xf0)]();if(_0x49c532=_0x307bd8,_0x49c532)break;const _0x484756=(_0x4aed73+_0x483c45[_0x21aed8(0xaa)](_0x3236bf))[_0x21aed8(0xd0)]('\x0a')[_0x21aed8(0xf6)](_0x4cfe4f=>{const _0x7c46a9=_0x21aed8;try{return _0x4aed73='',JSON[_0x7c46a9(0xb1)](_0x4cfe4f);}catch(_0x2ead8d){return _0x4aed73=_0x4cfe4f,null;}})[_0x21aed8(0xba)](_0x2c3d21=>null!==_0x2c3d21);_0x484756[_0x21aed8(0xad)]&&(_0x33daf2+=_0x484756[_0x21aed8(0xf6)](_0x83b99=>this[_0x21aed8(0xe4)](_0x83b99,_0x448198))[_0x21aed8(0xf3)](''),_0x195483(_0x33daf2));}return Promise[_0x21aed8(0xc7)]();}async[_0x39b3c6(0xc2)](_0x111421,_0x48bfe7,_0xffd75e){const _0x513e65=_0x39b3c6;let _0x16108c;return _0x16108c=_0x111421 instanceof Response?await _0x111421[_0x513e65(0xae)]():JSON[_0x513e65(0xb1)](Buffer[_0x513e65(0xee)](_0x111421[_0x513e65(0xe8)])[_0x513e65(0xb9)](_0x513e65(0xdc))),(_0xffd75e(this[_0x513e65(0xe4)](_0x16108c,_0x48bfe7)),Promise[_0x513e65(0xc7)]());}[_0x39b3c6(0xe4)](_0x294cce,_0x1e2a69){const _0x53f5d4=_0x39b3c6;switch(this[_0x53f5d4(0xf7)](_0x1e2a69)){case _0x53f5d4(0xac):return _0x294cce[_0x53f5d4(0xbb)];case _0x53f5d4(0xcd):return _0x294cce[_0x53f5d4(0xe2)][0x0][_0x53f5d4(0xd9)][_0x53f5d4(0xeb)];case _0x53f5d4(0xb8):return _0x294cce[_0x53f5d4(0xf2)][0x0][_0x53f5d4(0xeb)];case _0x53f5d4(0xc5):return _0x294cce[_0x53f5d4(0xcc)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x157f(_0x4a22ac,_0x2cd660){const _0x942398=_0x9423();return _0x157f=function(_0x157f50,_0x5738f6){_0x157f50=_0x157f50-0x10c;let _0x4b78b7=_0x942398[_0x157f50];return _0x4b78b7;},_0x157f(_0x4a22ac,_0x2cd660);}const _0x3d3aea=_0x157f;function _0x9423(){const _0x511366=['abortController','system','define','body','editor','split','1001721PAhLPS','includes','Moderation','stream','signal','join','delta','_requestParameters','3990mHkRIT','_readStaticResponse','OpenAITextAdapter','read','https://api.openai.com/v1/chat/completions','message','AI_ERROR_CONTEXT_LENGTH','3998776HuQtdu','locale','1984yBJFML','context_length_exceeded','_requestHeaders','decode','reject','text','10139778KlmaaV','resolve','7hnWhLn','parse','stringify','AI_ERROR_MODERATION','POST','_apiUrl','gpt-3.5-turbo','_isBufferIncomplete','ai.openAI.requestParameters','config','[DONE]','get','_prepareRequestParameters','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.','9106192LZoKlA','1479310knICXm','length','filter','_readStreamableResponse','6Mgxdtp','2154815QIQaIp','_prepareRequestHeaders','data:\x20','ai.openAI.apiUrl','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.','json','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','sendRequest','ai.openAI.requestHeaders','user','_cleanUpData','map','getReader','pluginName','prepareMessages','content','Instruction:\x0a','replace','choices'];_0x9423=function(){return _0x511366;};return _0x9423();}(function(_0x1b66b8,_0x33d5ef){const _0x354d2f=_0x157f,_0x4cee2c=_0x1b66b8();while(!![]){try{const _0xb823bc=parseInt(_0x354d2f(0x11c))/0x1+parseInt(_0x354d2f(0x12d))/0x2*(-parseInt(_0x354d2f(0x124))/0x3)+-parseInt(_0x354d2f(0x12b))/0x4+parseInt(_0x354d2f(0x149))/0x5*(-parseInt(_0x354d2f(0x148))/0x6)+-parseInt(_0x354d2f(0x135))/0x7*(-parseInt(_0x354d2f(0x143))/0x8)+parseInt(_0x354d2f(0x133))/0x9+parseInt(_0x354d2f(0x144))/0xa;if(_0xb823bc===_0x33d5ef)break;else _0x4cee2c['push'](_0x4cee2c['shift']());}catch(_0x1c48a1){_0x4cee2c['push'](_0x4cee2c['shift']());}}}(_0x9423,0xa23e7));import{default as _0x277ded}from'./aitextadapter.js';import{AIRequestError as _0x316f31}from'./aiadapter.js';import{getTranslation as _0x35eca7}from'../utils/common-translations.js';export default class M extends _0x277ded{static get[_0x3d3aea(0x110)](){const _0x3001c0=_0x3d3aea;return _0x3001c0(0x126);}constructor(_0x3a6133){const _0x35675e=_0x3d3aea;super(_0x3a6133),_0x3a6133[_0x35675e(0x13e)][_0x35675e(0x118)](_0x35675e(0x14c),_0x35675e(0x128)),_0x3a6133[_0x35675e(0x13e)][_0x35675e(0x140)](_0x35675e(0x13d))||_0x3a6133[_0x35675e(0x13e)][_0x35675e(0x118)](_0x35675e(0x13d),{'model':_0x35675e(0x13b),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x35675e(0x13a)]=_0x3a6133[_0x35675e(0x13e)][_0x35675e(0x140)](_0x35675e(0x14c)),this[_0x35675e(0x12f)]=_0x3a6133[_0x35675e(0x13e)][_0x35675e(0x140)](_0x35675e(0x151))||{},this[_0x35675e(0x123)]=_0x3a6133[_0x35675e(0x13e)][_0x35675e(0x140)](_0x35675e(0x13d));}async[_0x3d3aea(0x150)]({query:_0x494bb1,context:_0x744bad,onData:_0x40b6ef,actionId:_0x4acd79}){const _0x13a000=_0x3d3aea,_0x483861=this[_0x13a000(0x11a)][_0x13a000(0x12c)],_0x562937=await this[_0x13a000(0x111)](_0x494bb1,_0x744bad,_0x4acd79),_0x2fc4de=await this[_0x13a000(0x14a)](this[_0x13a000(0x12f)],_0x4acd79),_0x556932=await this[_0x13a000(0x141)](this[_0x13a000(0x123)],_0x4acd79),_0x17101d={'messages':_0x562937,..._0x556932},_0x2d5fc9={'method':_0x13a000(0x139),'headers':_0x2fc4de,'body':JSON[_0x13a000(0x137)](_0x17101d),'signal':this[_0x13a000(0x116)][_0x13a000(0x120)]},_0x4d879f=await fetch(this[_0x13a000(0x13a)],_0x2d5fc9);if(_0x4d879f['ok'])return _0x556932[_0x13a000(0x11f)]?await this[_0x13a000(0x147)](_0x4d879f,_0x40b6ef):await this[_0x13a000(0x125)](_0x4d879f,_0x40b6ef),Promise[_0x13a000(0x134)]();{const _0x168f77=await _0x4d879f[_0x13a000(0x132)]();return _0x168f77[_0x13a000(0x11d)](_0x13a000(0x12e))?Promise[_0x13a000(0x131)](new _0x316f31(_0x35eca7(_0x483861,_0x13a000(0x12a)))):_0x168f77[_0x13a000(0x11d)](_0x13a000(0x11e))?Promise[_0x13a000(0x131)](new _0x316f31(_0x35eca7(_0x483861,_0x13a000(0x138)))):Promise[_0x13a000(0x131)](new Error(_0x168f77));}}async[_0x3d3aea(0x111)](_0x126912,_0x5418a5,_0x4bf4be){const _0x994f12=_0x3d3aea;let _0x5ae1fa,_0x3626cd;return _0x5418a5?(_0x5ae1fa=_0x994f12(0x142),_0x3626cd=_0x994f12(0x113)+_0x126912+_0x994f12(0x14f)+_0x5418a5):(_0x5ae1fa=_0x994f12(0x14d),_0x3626cd=_0x126912),[{'role':_0x994f12(0x117),'content':_0x5ae1fa},{'role':_0x994f12(0x10c),'content':_0x3626cd}];}async[_0x3d3aea(0x147)](_0x502817,_0x3bae6e){const _0xdd2d85=_0x3d3aea,_0x68981d=_0x502817[_0xdd2d85(0x119)][_0xdd2d85(0x10f)](),_0x40e661=new TextDecoder();let _0x3f0001='',_0x5ee42a='',_0x5bb49a='',_0x23efbb=!0x1;for(;!_0x23efbb;){const {done:_0x3d161c,value:_0x29c56f}=await _0x68981d[_0xdd2d85(0x127)](),_0x46801b=_0x3f0001+_0x40e661[_0xdd2d85(0x130)](_0x29c56f);let _0x212e93='';_0x23efbb=_0x3d161c;try{_0x212e93=this[_0xdd2d85(0x10d)](_0x46801b),_0x3f0001='';}catch(_0x4c904b){_0x3f0001=_0x46801b;continue;}_0x5ee42a+=_0x212e93,!_0x23efbb&&this[_0xdd2d85(0x13c)](_0x5ee42a)||_0x5ee42a&&(_0x5bb49a+=_0x5ee42a,_0x5ee42a='',_0x3bae6e(_0x5bb49a));}return Promise[_0xdd2d85(0x134)]();}async[_0x3d3aea(0x125)](_0x698277,_0x2d9ed5){const _0x4a51b8=_0x3d3aea;return _0x2d9ed5((await _0x698277[_0x4a51b8(0x14e)]())[_0x4a51b8(0x115)][0x0][_0x4a51b8(0x129)][_0x4a51b8(0x112)]),Promise[_0x4a51b8(0x134)]();}[_0x3d3aea(0x13c)](_0x1e4b23){const _0x2e01e6=_0x3d3aea,_0x349e1f=_0x1e4b23[_0x2e01e6(0x11b)]('<')[_0x2e01e6(0x145)]!==_0x1e4b23[_0x2e01e6(0x11b)]('>')[_0x2e01e6(0x145)],_0x173f48=_0x1e4b23[_0x2e01e6(0x145)]<0x1e;return _0x349e1f&&_0x173f48;}[_0x3d3aea(0x10d)](_0x37a481){const _0x56bd54=_0x3d3aea;return _0x37a481[_0x56bd54(0x11b)](/\n(?![^{]*\})/g)[_0x56bd54(0x10e)](_0x442b61=>_0x442b61[_0x56bd54(0x114)](_0x56bd54(0x14b),''))[_0x56bd54(0x146)](_0xcee25a=>_0xcee25a&&_0xcee25a[_0x56bd54(0x145)]>0x0&&_0x56bd54(0x13f)!==_0xcee25a)[_0x56bd54(0x10e)](_0x3492aa=>{const _0x2f29e1=_0x56bd54,{choices:_0x541f48}=JSON[_0x2f29e1(0x136)](_0x3492aa);if(_0x541f48[0x0]&&_0x541f48[0x0][_0x2f29e1(0x122)]&&_0x541f48[0x0][_0x2f29e1(0x122)][_0x2f29e1(0x112)])return _0x541f48[0x0][_0x2f29e1(0x122)][_0x2f29e1(0x112)];})[_0x56bd54(0x146)](_0x1e1ebe=>_0x1e1ebe)[_0x56bd54(0x121)]('');}}
|
package/src/aiassistant.js
CHANGED
|
@@ -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 _0x42e679=_0x2b09;(function(_0x4871fc,_0x12d036){const _0x290163=_0x2b09,_0x34a7d6=_0x4871fc();while(!![]){try{const _0x45b335=parseInt(_0x290163(0xf0))/0x1+-parseInt(_0x290163(0x96))/0x2+parseInt(_0x290163(0xf8))/0x3+-parseInt(_0x290163(0xaf))/0x4+-parseInt(_0x290163(0x9c))/0x5+-parseInt(_0x290163(0xb9))/0x6+parseInt(_0x290163(0x87))/0x7*(-parseInt(_0x290163(0x99))/0x8);if(_0x45b335===_0x12d036)break;else _0x34a7d6['push'](_0x34a7d6['shift']());}catch(_0x1784a7){_0x34a7d6['push'](_0x34a7d6['shift']());}}}(_0x5488,0x9aa1e));import{CKEditorError as _0x5e89c8}from'ckeditor5/src/utils.js';import{Plugin as _0x10ec2c}from'ckeditor5/src/core.js';function _0x2b09(_0x5235bc,_0x2b9f28){const _0x5488a2=_0x5488();return _0x2b09=function(_0x2b097e,_0xa9bde7){_0x2b097e=_0x2b097e-0x82;let _0x51541a=_0x5488a2[_0x2b097e];return _0x51541a;},_0x2b09(_0x5235bc,_0x2b9f28);}import _0x1b6c46 from'./aiassistantui.js';function _0x5488(){const _0x2637fe=['Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','1718952gfOlEQ','journalism','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Translate\x20the\x20content\x20to\x20German\x20language.','translate','Casual','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','1293964JsPLlH','translatePortuguese','requires','generate','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','config','makeLonger','Arabic','German','casual','Journalism','translateSpanish','makeShorter','Translate\x20the\x20content\x20to\x20English\x20language.','Simplified\x20Chinese','41136OvFEHL','init','summarize','8oEfPpK','Hindi','forEach','962110kmsADT','English','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Friendly','commands','continue','includes','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','groupId','business','ai.aiAssistant.commands','French','aiLicenseKeyTrial','friendly','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Continue','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','info','push','2174448YxHObe','Poetic','confident','define','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','simplifyLanguage','aiLicenseKeyInvalid','translateChinese','Translate\x20to\x20%0','professional','391836bHomwF','Confident','changeTone','aiLicenseKeyValid','Summarize','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','aiLicenseKeyTrialLimit:operations','translateEnglish','Spanish','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','get','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Edit\x20or\x20review','Business','Make\x20longer','poetic','translateFrench','Improve\x20writing','concat','Change\x20tone','translateHindi','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','changeStyle','licenseKey','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Legal','editor','Translate\x20the\x20content\x20to\x20French\x20language.','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','destroy','Direct','ai-invalid-license-key','set','editOrReview','pluginName','Translate\x20the\x20content\x20to\x20Arabic\x20language.','locale','ai.aiAssistant.extraCommandGroups','Make\x20shorter','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Portuguese','_licenseKeyCheckInterval','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.','filter','improveWriting','translateGerman','ai-trial-license-key-reached-limit-changes','find','AIAssistant','Generate\x20from\x20selection','ai.aiAssistant.removeCommands','Simplify\x20language','Professional','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','legal','1067150mbzQOb','Translate','Change\x20style','Translate\x20the\x20content\x20to\x20Hindi\x20language.','translateArabic','Translate\x20the\x20content\x20to\x20Spanish\x20language.','direct'];_0x5488=function(){return _0x2637fe;};return _0x5488();}import _0x599b8e from'./aiassistantediting.js';import{getTranslation as _0x2d8785}from'./utils/common-translations.js';export default class r extends _0x10ec2c{static get[_0x42e679(0x89)](){return[_0x1b6c46,_0x599b8e];}static get[_0x42e679(0xdb)](){const _0xa7d7d5=_0x42e679;return _0xa7d7d5(0xe9);}constructor(_0x4546b1){const _0x5d06f3=_0x42e679;super(_0x4546b1);const _0xf69f7d=_0x4546b1[_0x5d06f3(0x8c)];_0xf69f7d[_0x5d06f3(0xb2)](_0x5d06f3(0xa6),getDefaultCommands(_0x4546b1[_0x5d06f3(0xdd)])),_0xf69f7d[_0x5d06f3(0xb2)](_0x5d06f3(0xde),[]),_0xf69f7d[_0x5d06f3(0xb2)](_0x5d06f3(0xeb),[]);const _0x24de37=_0xf69f7d[_0x5d06f3(0xc3)](_0x5d06f3(0xa6)),_0x74ae4b=_0xf69f7d[_0x5d06f3(0xc3)](_0x5d06f3(0xde)),_0x550735=_0xf69f7d[_0x5d06f3(0xc3)](_0x5d06f3(0xeb));_0x74ae4b[_0x5d06f3(0x9b)](_0x22ab2d=>{const _0x244859=_0x5d06f3,_0x20c487=_0x24de37[_0x244859(0xe8)](_0x5e66e0=>_0x5e66e0[_0x244859(0xa4)]===_0x22ab2d[_0x244859(0xa4)]);_0x20c487?_0x20c487[_0x244859(0xa0)]=_0x20c487[_0x244859(0xa0)][_0x244859(0xcb)](_0x22ab2d[_0x244859(0xa0)]):_0x24de37[_0x244859(0xae)](_0x22ab2d);}),_0x24de37[_0x5d06f3(0x9b)](_0x14121b=>{const _0x3a7e75=_0x5d06f3;_0x14121b[_0x3a7e75(0xa0)]=_0x14121b[_0x3a7e75(0xa0)][_0x3a7e75(0xe4)](_0x3d7e64=>!_0x550735[_0x3a7e75(0xa2)](_0x3d7e64['id']));}),_0xf69f7d[_0x5d06f3(0xd9)](_0x5d06f3(0xa6),_0x24de37);}[_0x42e679(0x97)](){const _0x3d6ef1=_0x42e679,_0xd12c6f=this[_0x3d6ef1(0xd3)];this[_0x3d6ef1(0xd0)]=_0xd12c6f[_0x3d6ef1(0x8c)][_0x3d6ef1(0xc3)](_0x3d6ef1(0xd0)),this[_0x3d6ef1(0xe2)]=setInterval(()=>{const _0x3999ae=_0x3d6ef1;let _0x1b7703;for(const _0x2d44a3 in _0xd12c6f){const _0x67163d=_0x2d44a3,_0xd85905=_0xd12c6f[_0x67163d];if(_0x3999ae(0xa8)===_0xd85905||_0x3999ae(0xb5)===_0xd85905||_0x3999ae(0xbc)===_0xd85905||_0x3999ae(0xbf)===_0xd85905){delete _0xd12c6f[_0x67163d],_0x1b7703=_0xd85905;break;}}if(_0x3999ae(0xb5)===_0x1b7703)throw clearInterval(this[_0x3999ae(0xe2)]),new _0x5e89c8(_0x3999ae(0xd8),null);if(_0x3999ae(0xa8)===_0x1b7703&&console[_0x3999ae(0xad)](_0x3999ae(0xe3)),_0x3999ae(0xbf)===_0x1b7703)throw clearInterval(this[_0x3999ae(0xe2)]),new _0x5e89c8(_0x3999ae(0xe7),null);_0x3999ae(0xbc)===_0x1b7703&&clearInterval(this[_0x3999ae(0xe2)]);},0x3e8);}[_0x42e679(0xd6)](){const _0x8b2205=_0x42e679;this[_0x8b2205(0xe2)]&&clearInterval(this[_0x8b2205(0xe2)]);}}export function getDefaultCommands(_0x3e033c){const _0x29e75e=_0x42e679;return[{'groupId':_0x29e75e(0xda),'groupLabel':_0x2d8785(_0x3e033c,_0x29e75e(0xc5)),'commands':[{'id':_0x29e75e(0xe5),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xca)),'prompt':_0x29e75e(0x9e)},{'id':_0x29e75e(0x93),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xdf)),'prompt':_0x29e75e(0xd5)},{'id':_0x29e75e(0x8d),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xc7)),'prompt':_0x29e75e(0xbe)},{'id':_0x29e75e(0xb4),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xec)),'prompt':_0x29e75e(0xd1)}]},{'groupId':_0x29e75e(0x8a),'groupLabel':_0x2d8785(_0x3e033c,_0x29e75e(0xea)),'commands':[{'id':_0x29e75e(0x98),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xbd)),'prompt':_0x29e75e(0xb3)},{'id':_0x29e75e(0xa1),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xab)),'prompt':_0x29e75e(0xf7)}]},{'groupId':_0x29e75e(0xbb),'groupLabel':_0x2d8785(_0x3e033c,_0x29e75e(0xcc)),'commands':[{'id':_0x29e75e(0xb8),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xed)),'prompt':_0x29e75e(0x86)},{'id':_0x29e75e(0x90),'label':_0x2d8785(_0x3e033c,_0x29e75e(0x85)),'prompt':_0x29e75e(0xc4)},{'id':_0x29e75e(0xf6),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xd7)),'prompt':_0x29e75e(0x8b)},{'id':_0x29e75e(0xb1),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xba)),'prompt':_0x29e75e(0x82)},{'id':_0x29e75e(0xa9),'label':_0x2d8785(_0x3e033c,_0x29e75e(0x9f)),'prompt':_0x29e75e(0xa3)}]},{'groupId':_0x29e75e(0xcf),'groupLabel':_0x2d8785(_0x3e033c,_0x29e75e(0xf2)),'commands':[{'id':_0x29e75e(0xa5),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xc6)),'prompt':_0x29e75e(0xce)},{'id':_0x29e75e(0xef),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xd2)),'prompt':_0x29e75e(0xe0)},{'id':_0x29e75e(0xf9),'label':_0x2d8785(_0x3e033c,_0x29e75e(0x91)),'prompt':_0x29e75e(0xaa)},{'id':_0x29e75e(0xc8),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb0)),'prompt':_0x29e75e(0xc2)}]},{'groupId':_0x29e75e(0x84),'groupLabel':_0x2d8785(_0x3e033c,_0x29e75e(0xf1)),'commands':[{'id':_0x29e75e(0xc0),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb7),[_0x2d8785(_0x3e033c,_0x29e75e(0x9d))]),'prompt':_0x29e75e(0x94)},{'id':_0x29e75e(0x92),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb7),[_0x2d8785(_0x3e033c,_0x29e75e(0xc1))]),'prompt':_0x29e75e(0xf5)},{'id':_0x29e75e(0x88),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb7),[_0x2d8785(_0x3e033c,_0x29e75e(0xe1))]),'prompt':_0x29e75e(0xac)},{'id':_0x29e75e(0xe6),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb7),[_0x2d8785(_0x3e033c,_0x29e75e(0x8f))]),'prompt':_0x29e75e(0x83)},{'id':_0x29e75e(0xc9),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb7),[_0x2d8785(_0x3e033c,_0x29e75e(0xa7))]),'prompt':_0x29e75e(0xd4)},{'id':_0x29e75e(0xb6),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb7),[_0x2d8785(_0x3e033c,_0x29e75e(0x95))]),'prompt':_0x29e75e(0xee)},{'id':_0x29e75e(0xcd),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb7),[_0x2d8785(_0x3e033c,_0x29e75e(0x9a))]),'prompt':_0x29e75e(0xf3)},{'id':_0x29e75e(0xf4),'label':_0x2d8785(_0x3e033c,_0x29e75e(0xb7),[_0x2d8785(_0x3e033c,_0x29e75e(0x8e))]),'prompt':_0x29e75e(0xdc)}]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf3b593=_0x2395;(function(_0x3c8c42,_0x353e72){const _0x55fbab=_0x2395,_0x3fb445=_0x3c8c42();while(!![]){try{const _0x12be9d=parseInt(_0x55fbab(0x19b))/0x1*(-parseInt(_0x55fbab(0x1b8))/0x2)+parseInt(_0x55fbab(0x198))/0x3+-parseInt(_0x55fbab(0x18b))/0x4*(parseInt(_0x55fbab(0x1b1))/0x5)+-parseInt(_0x55fbab(0x17c))/0x6+parseInt(_0x55fbab(0x1bc))/0x7*(parseInt(_0x55fbab(0x17d))/0x8)+parseInt(_0x55fbab(0x1b7))/0x9*(parseInt(_0x55fbab(0x199))/0xa)+parseInt(_0x55fbab(0x191))/0xb;if(_0x12be9d===_0x353e72)break;else _0x3fb445['push'](_0x3fb445['shift']());}catch(_0x3bb146){_0x3fb445['push'](_0x3fb445['shift']());}}}(_0x946b,0xe489b));function _0x2395(_0x550f19,_0x4d59a9){const _0x946b13=_0x946b();return _0x2395=function(_0x239538,_0x53e246){_0x239538=_0x239538-0x17b;let _0x535700=_0x946b13[_0x239538];return _0x535700;},_0x2395(_0x550f19,_0x4d59a9);}import{Plugin as _0x1ea171}from'ckeditor5/src/core.js';const s=_0xf3b593(0x185),c=_0xf3b593(0x17e);export default class i extends _0x1ea171{static get[_0xf3b593(0x18a)](){const _0x164e55=_0xf3b593;return _0x164e55(0x184);}[_0xf3b593(0x1b2)](){const _0x1a46f7=_0xf3b593,{editor:_0x3d42af}=this,_0x14ffa0=[_0x1a46f7(0x1a7)];_0x3d42af[_0x1a46f7(0x1b5)][_0x1a46f7(0x1a3)](_0x1a46f7(0x1ae))&&_0x14ffa0[_0x1a46f7(0x19c)](_0x1a46f7(0x1a2)),_0x3d42af[_0x1a46f7(0x193)][_0x1a46f7(0x17f)](_0x1a46f7(0x1a5))[_0x1a46f7(0x1a9)]({'model':s,'view':{'classes':_0x14ffa0,'priority':0xc}}),_0x3d42af[_0x1a46f7(0x193)][_0x1a46f7(0x17f)](_0x1a46f7(0x1a5))[_0x1a46f7(0x1b3)]({'model':s,'view':{'name':_0x1a46f7(0x19f),'classes':[_0x1a46f7(0x1a7),_0x1a46f7(0x18c)],'priority':0xc}}),_0x3d42af[_0x1a46f7(0x193)][_0x1a46f7(0x17f)](_0x1a46f7(0x1a5))[_0x1a46f7(0x1a9)]({'model':c,'view':{'classes':[_0x1a46f7(0x1ac)],'priority':0x19}}),_0x3d42af[_0x1a46f7(0x193)][_0x1a46f7(0x17f)](_0x1a46f7(0x1a5))[_0x1a46f7(0x1b3)]({'model':c,'view':{'name':_0x1a46f7(0x19f),'classes':[_0x1a46f7(0x1ac),_0x1a46f7(0x18c)],'priority':0x19}});}[_0xf3b593(0x1a4)](_0x1b75aa){const _0x4b4dd0=_0xf3b593,_0x17c13a=this[_0x4b4dd0(0x1bb)][_0x4b4dd0(0x180)],_0x3d94d2=_0x1b75aa?c:s;_0x17c13a[_0x4b4dd0(0x1b6)](_0x5571e9=>{const _0x15587e=_0x4b4dd0,_0x22b57c=_0x17c13a[_0x15587e(0x1b0)][_0x15587e(0x192)][_0x15587e(0x18d)]();if(_0x17c13a[_0x15587e(0x1b4)][_0x15587e(0x19e)](_0x3d94d2))_0x5571e9[_0x15587e(0x182)](_0x3d94d2,{'range':_0x22b57c});else{if(_0x22b57c[_0x15587e(0x190)][_0x15587e(0x1a6)]){const _0x2f4928=_0x22b57c[_0x15587e(0x190)][_0x15587e(0x19d)](({item:_0x463821})=>!_0x17c13a[_0x15587e(0x181)][_0x15587e(0x189)](_0x463821),{'boundaries':_0x22b57c});_0x5571e9[_0x15587e(0x1af)](_0x3d94d2,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5571e9[_0x15587e(0x183)](_0x2f4928,_0x22b57c[_0x15587e(0x19a)])});}else _0x5571e9[_0x15587e(0x1af)](_0x3d94d2,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x22b57c});}});}[_0xf3b593(0x187)](_0x49c692){const _0x357d58=_0xf3b593,_0x2be2b7=this[_0x357d58(0x1bb)][_0x357d58(0x180)],_0x21ce5b=_0x49c692?c:s;_0x2be2b7[_0x357d58(0x1b4)][_0x357d58(0x19e)](_0x21ce5b)&&_0x2be2b7[_0x357d58(0x1b6)](_0x29cb2b=>{const _0x19fbc4=_0x357d58;_0x29cb2b[_0x19fbc4(0x197)](_0x21ce5b);});}[_0xf3b593(0x195)](_0x18f7b5,_0x19603b){const _0x491872=_0xf3b593,_0x3a6b78=_0x19603b||this[_0x491872(0x1bb)][_0x491872(0x180)][_0x491872(0x1b4)][_0x491872(0x1a3)](s)[_0x491872(0x17b)]();if(!this[_0x491872(0x1bb)][_0x491872(0x180)][_0x491872(0x18f)](_0x3a6b78))return;const _0xf231dd=this[_0x491872(0x1bb)][_0x491872(0x186)][_0x491872(0x1a1)][_0x491872(0x1aa)](_0x18f7b5),_0x36369a=this[_0x491872(0x1bb)][_0x491872(0x186)][_0x491872(0x194)](_0xf231dd);this[_0x491872(0x1bb)][_0x491872(0x180)][_0x491872(0x1b6)](_0x4e04f2=>{const _0x509a25=_0x491872;this[_0x509a25(0x187)]();const _0x2bf543=this[_0x509a25(0x1bb)][_0x509a25(0x180)][_0x509a25(0x195)](_0x36369a,_0x3a6b78);_0x2bf543&&_0x4e04f2[_0x509a25(0x1ab)](_0x2bf543);});}[_0xf3b593(0x1b9)](_0x426682){const _0x21b4e1=_0xf3b593,{model:_0x3440bf}=this[_0x21b4e1(0x1bb)],_0x361761=Array[_0x21b4e1(0x196)](_0x3440bf[_0x21b4e1(0x1ba)](this[_0x21b4e1(0x1bb)][_0x21b4e1(0x180)][_0x21b4e1(0x1b4)][_0x21b4e1(0x1a3)](s)[_0x21b4e1(0x17b)]())[_0x21b4e1(0x1a0)]()),_0x3c8539=_0x361761[_0x21b4e1(0x18e)]?_0x3440bf[_0x21b4e1(0x1ad)](_0x361761[_0x21b4e1(0x188)]()):_0x3440bf[_0x21b4e1(0x1b0)][_0x21b4e1(0x192)][_0x21b4e1(0x1a8)]();this[_0x21b4e1(0x195)](_0x426682,_0x3c8539);}}function _0x946b(){const _0x27a46f=['insertContentBelow','createSelection','editor','525ZMJJpm','getRange','864990gmOaUp','94544PqLnFH','ai-ui-candidate','for','model','schema','updateMarker','createRange','AIAssistantEditing','ai-ui','data','hideFakeVisualSelection','pop','isContent','pluginName','12tomNpv','ck-fake-ai-selection_collapsed','getFirstRange','length','canEditAt','start','744403ygfWfb','selection','conversion','toModel','insertContent','from','removeMarker','816036OdoNhE','230420tYhXhF','end','1ZgRAMf','push','getLastMatchingPosition','has','span','getSelectedBlocks','processor','ck-ai-assistant-ui_theme','get','showFakeVisualSelection','editingDowncast','isAtEnd','ck-fake-ai-selection','getLastPosition','markerToHighlight','toView','setSelection','ck-fake-ai-selection-candidate','createPositionAfter','ai.useTheme','addMarker','document','956045BrdHPs','init','markerToElement','markers','config','change','207vUQmYM','204236RtLVLk'];_0x946b=function(){return _0x27a46f;};return _0x946b();}
|