@ckeditor/ckeditor5-ai 0.0.0-nightly-20240414.0 → 0.0.0-nightly-20240416.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ai",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20240416.0",
|
|
4
4
|
"description": "AI Assistant feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"ckeditor5": "0.0.0-nightly-
|
|
27
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
26
|
+
"ckeditor5": "0.0.0-nightly-20240416.0",
|
|
27
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20240416.0",
|
|
28
28
|
"@aws-sdk/client-bedrock-runtime": "3.470.0",
|
|
29
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
29
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20240416.0",
|
|
30
30
|
"lodash-es": "4.17.21"
|
|
31
31
|
},
|
|
32
32
|
"type": "module",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x7513(_0x15623a,_0x43f167){var _0x15ffd8=_0x15ff();return _0x7513=function(_0x751374,_0x229ebc){_0x751374=_0x751374-0x128;var _0x508ad0=_0x15ffd8[_0x751374];return _0x508ad0;},_0x7513(_0x15623a,_0x43f167);}var _0x1b36df=_0x7513;(function(_0x2e27df,_0x53b836){var _0x911f33=_0x7513,_0x2b483a=_0x2e27df();while(!![]){try{var _0x257188=-parseInt(_0x911f33(0x128))/0x1+parseInt(_0x911f33(0x12e))/0x2+-parseInt(_0x911f33(0x12d))/0x3*(parseInt(_0x911f33(0x136))/0x4)+-parseInt(_0x911f33(0x129))/0x5*(-parseInt(_0x911f33(0x131))/0x6)+-parseInt(_0x911f33(0x12f))/0x7+-parseInt(_0x911f33(0x12a))/0x8*(parseInt(_0x911f33(0x130))/0x9)+parseInt(_0x911f33(0x12c))/0xa;if(_0x257188===_0x53b836)break;else _0x2b483a['push'](_0x2b483a['shift']());}catch(_0x82d5dc){_0x2b483a['push'](_0x2b483a['shift']());}}}(_0x15ff,0x5085b));import{Plugin as _0x200aff}from'ckeditor5/src/core.js';import{CKEditorError as _0x56c3d0}from'ckeditor5/src/utils.js';export default class v extends _0x200aff{static get[_0x1b36df(0x138)](){var _0x2ef0a7=_0x1b36df;return _0x2ef0a7(0x134);}[_0x1b36df(0x133)](){var _0xc7ce8d=_0x1b36df;if(!this[_0xc7ce8d(0x12b)])throw new _0x56c3d0(_0xc7ce8d(0x135),null);}}export class AIRequestError extends Error{constructor(_0x8999c2){var _0x49e751=_0x1b36df;super(_0x8999c2),this[_0x49e751(0x137)]=_0x49e751(0x132);}}function _0x15ff(){var _0x17cdad=['126QCJxEX','AIRequestError','afterInit','AIAdapter','aiadapter-text-adapter-not-set','171684dnDhEC','name','pluginName','325753bGmDiR','134555xwUJVN','205168UJlLLp','textAdapter','6665090RHDTQx','33ZaCKKG','517760waNnPN','2001153GyydZh','27vdIJWF'];_0x15ff=function(){return _0x17cdad;};return _0x15ff();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1334(_0xf30949,_0x4d3f3f){const _0x32d32f=_0x32d3();return _0x1334=function(_0x13348e,_0x2116fe){_0x13348e=_0x13348e-0x152;let _0x13fdd3=_0x32d32f[_0x13348e];return _0x13fdd3;},_0x1334(_0xf30949,_0x4d3f3f);}const _0x3dc89c=_0x1334;(function(_0x2c0fbd,_0x3471e8){const _0x4781c6=_0x1334,_0x52d4c6=_0x2c0fbd();while(!![]){try{const _0xd13ad2=parseInt(_0x4781c6(0x16d))/0x1+parseInt(_0x4781c6(0x164))/0x2+-parseInt(_0x4781c6(0x156))/0x3*(-parseInt(_0x4781c6(0x162))/0x4)+-parseInt(_0x4781c6(0x177))/0x5+parseInt(_0x4781c6(0x160))/0x6*(parseInt(_0x4781c6(0x15a))/0x7)+-parseInt(_0x4781c6(0x169))/0x8*(-parseInt(_0x4781c6(0x15f))/0x9)+parseInt(_0x4781c6(0x154))/0xa*(-parseInt(_0x4781c6(0x173))/0xb);if(_0xd13ad2===_0x3471e8)break;else _0x52d4c6['push'](_0x52d4c6['shift']());}catch(_0x47d483){_0x52d4c6['push'](_0x52d4c6['shift']());}}}(_0x32d3,0x5a7fc));import{Plugin as _0xdcdae1}from'ckeditor5/src/core.js';import{CKEditorError as _0x2482ef}from'ckeditor5/src/utils.js';import{default as _0x367dd7,AIRequestError as _0x159858}from'./aiadapter.js';import{getTranslation as _0x203ae0}from'../utils/common-translations.js';export default class P extends _0xdcdae1{static get[_0x3dc89c(0x16f)](){return[_0x367dd7];}constructor(_0x25a440){const _0x3bd1ea=_0x3dc89c;super(_0x25a440),this[_0x3bd1ea(0x16a)]=new AbortController();}[_0x3dc89c(0x175)](){const _0x1d79e4=_0x3dc89c;this[_0x1d79e4(0x167)][_0x1d79e4(0x171)][_0x1d79e4(0x174)](_0x367dd7)[_0x1d79e4(0x158)]=this;}[_0x3dc89c(0x155)](){const _0x314c0d=_0x3dc89c;this[_0x314c0d(0x16a)][_0x314c0d(0x170)][_0x314c0d(0x166)]||(this[_0x314c0d(0x16a)][_0x314c0d(0x155)](),this[_0x314c0d(0x16a)]=new AbortController());}async[_0x3dc89c(0x172)](_0x3ee656){const _0x3fda8a=_0x3dc89c;return this[_0x3fda8a(0x16b)](_0x3ee656)[_0x3fda8a(0x165)](_0x5596e6=>{const _0x25e0bf=_0x3fda8a;if(_0x5596e6 instanceof _0x159858)return Promise[_0x25e0bf(0x15e)](_0x5596e6);if(_0x25e0bf(0x163)==_0x5596e6[_0x25e0bf(0x15d)])return Promise[_0x25e0bf(0x157)]();throw console[_0x25e0bf(0x168)](_0x5596e6),new _0x2482ef(_0x25e0bf(0x176),null);});}async[_0x3dc89c(0x159)](_0x3fb625,_0x5dc103){const _0x297c4f=_0x3dc89c,_0x2a0965=this[_0x297c4f(0x167)][_0x297c4f(0x16c)],_0x339311={'Content-Type':_0x297c4f(0x16e)};if(_0x297c4f(0x153)==typeof _0x3fb625)Object[_0x297c4f(0x15b)](_0x339311,_0x3fb625);else{if(_0x3fb625)try{const _0x4823e7=await _0x3fb625(_0x5dc103);Object[_0x297c4f(0x15b)](_0x339311,_0x4823e7);}catch(_0x131f3f){return Promise[_0x297c4f(0x15e)](new _0x159858(_0x203ae0(_0x2a0965,_0x297c4f(0x15c))));}}return _0x339311;}async[_0x3dc89c(0x161)](_0x5c261e,_0x31da2c){const _0x4c143a=_0x3dc89c,_0x41ef49=this[_0x4c143a(0x167)][_0x4c143a(0x16c)];if(_0x4c143a(0x153)==typeof _0x5c261e)return _0x5c261e;try{return await _0x5c261e(_0x31da2c);}catch(_0x37fbc8){return Promise[_0x4c143a(0x15e)](new _0x159858(_0x203ae0(_0x41ef49,_0x4c143a(0x152))));}}}function _0x32d3(){const _0xeed074=['assign','AI_ERROR_GET_HEADERS','name','reject','189171dAHWkU','596838KhNDaj','_prepareRequestParameters','8BoORXJ','AbortError','998264DxJYpo','catch','aborted','editor','error','56WZjBoP','abortController','sendRequest','locale','704582aOXouR','application/json','requires','signal','plugins','makeRequest','8503jhJCdW','get','init','aitextadapter-send-request-failed','3500740zSDGmi','AI_ERROR_GET_PARAMETERS','object','14690SVfhCC','abort','984864ykgEjA','resolve','textAdapter','_prepareRequestHeaders','14akcLUC'];_0x32d3=function(){return _0xeed074;};return _0x32d3();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf8ff21=_0x274a;(function(_0x15739d,_0x136987){const _0x5a788f=_0x274a,_0x4995ef=_0x15739d();while(!![]){try{const _0x311b75=-parseInt(_0x5a788f(0xde))/0x1+-parseInt(_0x5a788f(0xdf))/0x2*(-parseInt(_0x5a788f(0xb2))/0x3)+-parseInt(_0x5a788f(0xd5))/0x4*(parseInt(_0x5a788f(0xe4))/0x5)+-parseInt(_0x5a788f(0xe1))/0x6+parseInt(_0x5a788f(0xe2))/0x7+-parseInt(_0x5a788f(0xa9))/0x8*(parseInt(_0x5a788f(0xe8))/0x9)+parseInt(_0x5a788f(0xc7))/0xa;if(_0x311b75===_0x136987)break;else _0x4995ef['push'](_0x4995ef['shift']());}catch(_0x5167f8){_0x4995ef['push'](_0x4995ef['shift']());}}}(_0x28cf,0x3a595));function _0x274a(_0x1492b4,_0x4b930b){const _0x28cf89=_0x28cf();return _0x274a=function(_0x274a18,_0x2967f9){_0x274a18=_0x274a18-0xa4;let _0x2bf49c=_0x28cf89[_0x274a18];return _0x2bf49c;},_0x274a(_0x1492b4,_0x4b930b);}function _0x28cf(){const _0x26438f=['ai.aws.bedrockClientConfig','stringify','signal','\x0a[/INST]','_processAWSRequest','utf-8','utf8','toString','config','AI_ERROR_UNSUPPORTED_MODEL','completion','_readStreamableResponse','POST','read','map','split','\x0a<</SYS>>\x0a[INST]\x0a','ai.aws.apiUrl','completions','9041880PiyZrW','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.','getReader','preparePrompt','ai21.j2','_bedrockClientConfig','sendRequest','_requestParameters','Instruction:\x0a','body','editor','length','<<SYS>>\x0a','test','140smHVeS','Human:\x0a','anthropic.claude','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','text','anthropic.claude-v2','\x0a\x0aAssistant:','chunk','locale','304500qEPdqv','254hmGeZd','filter','1959762xCSvcH','897246OEDSnW','ai.aws.requestParameters','56050mFqXBU','send','_getGeneratedText','define','18THxZNk','from','get','cohere.command','_readAsyncIterableResponse','ai.aws.requestHeaders','json','join','generation','parse','generations','resolve','bedrock-2023-05-31','_processProxyRequest','decode','_prepareRequestHeaders','abortController','meta.llama','application/json','getModelFamily','261176cDLtUo','data','_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.','pluginName','bytes','_readStaticResponse','_prepareRequestParameters','_apiUrl','6978sjSFWs','AWSTextAdapter'];_0x28cf=function(){return _0x26438f;};return _0x28cf();}import{default as _0x12c56c}from'./aitextadapter.js';import{AIRequestError as _0x11ed64}from'./aiadapter.js';import{BedrockRuntimeClient as _0x288fde,InvokeModelCommand as _0xe40a25,InvokeModelWithResponseStreamCommand as _0x51df06}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x5aad2f}from'../utils/common-translations.js';export default class Y extends _0x12c56c{static get[_0xf8ff21(0xad)](){const _0x7036e8=_0xf8ff21;return _0x7036e8(0xb3);}constructor(_0x596f30){const _0x133ef0=_0xf8ff21;super(_0x596f30),_0x596f30[_0x133ef0(0xbc)][_0x133ef0(0xea)](_0x133ef0(0xe3))||_0x596f30[_0x133ef0(0xbc)][_0x133ef0(0xe7)](_0x133ef0(0xe3),{'model':_0x133ef0(0xda),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x133ef0(0xf4),'stream':!0x0}),this[_0x133ef0(0xb1)]=_0x596f30[_0x133ef0(0xbc)][_0x133ef0(0xea)](_0x133ef0(0xc5)),this[_0x133ef0(0xcc)]=_0x596f30[_0x133ef0(0xbc)][_0x133ef0(0xea)](_0x133ef0(0xb4)),this[_0x133ef0(0xab)]=_0x596f30[_0x133ef0(0xbc)][_0x133ef0(0xea)](_0x133ef0(0xed)),this[_0x133ef0(0xce)]=_0x596f30[_0x133ef0(0xbc)][_0x133ef0(0xea)](_0x133ef0(0xe3));}async[_0xf8ff21(0xcd)]({query:_0x2a4ccf,context:_0x1766e3,onData:_0x3ffe1b,actionId:_0x5159b8}){const _0x305143=_0xf8ff21,{model:_0x32cdfc,stream:_0x12c8ff,..._0x5b21dd}=await this[_0x305143(0xb0)](this[_0x305143(0xce)],_0x5159b8),_0x5b89f1={'prompt':await this[_0x305143(0xca)](_0x2a4ccf,_0x1766e3,_0x32cdfc,_0x5159b8),..._0x5b21dd};this[_0x305143(0xb1)]?await this[_0x305143(0xf5)](_0x5b89f1,_0x32cdfc,_0x12c8ff,_0x3ffe1b,_0x5159b8):await this[_0x305143(0xb8)](_0x5b89f1,_0x32cdfc,_0x12c8ff,_0x3ffe1b);}async[_0xf8ff21(0xca)](_0x236770,_0x330a27,_0x424439,_0x477615){const _0x5a50c7=_0xf8ff21;let _0x57e1c1,_0x4e7706;return _0x330a27?(_0x57e1c1=_0x5a50c7(0xc8),_0x4e7706=_0x5a50c7(0xcf)+_0x236770+_0x5a50c7(0xd8)+_0x330a27):(_0x57e1c1=_0x5a50c7(0xac),_0x4e7706=_0x236770),_0x5a50c7(0xa6)==this[_0x5a50c7(0xa8)](_0x424439)?_0x5a50c7(0xd3)+_0x57e1c1+_0x5a50c7(0xc4)+_0x4e7706+_0x5a50c7(0xb7):_0x5a50c7(0xd6)+_0x57e1c1+'\x0a'+_0x4e7706+_0x5a50c7(0xdb);}[_0xf8ff21(0xa8)](_0x52ffde){const _0xbf63b8=_0xf8ff21;if(/^anthropic\.claude/[_0xbf63b8(0xd4)](_0x52ffde))return _0xbf63b8(0xd7);if(/^ai21\.j2/[_0xbf63b8(0xd4)](_0x52ffde))return _0xbf63b8(0xcb);if(/^cohere\.command/[_0xbf63b8(0xd4)](_0x52ffde))return _0xbf63b8(0xeb);if(/^meta\.llama/[_0xbf63b8(0xd4)](_0x52ffde))return _0xbf63b8(0xa6);throw new _0x11ed64(_0x5aad2f(this[_0xbf63b8(0xd1)][_0xbf63b8(0xdd)],_0xbf63b8(0xbd),_0x52ffde));}async[_0xf8ff21(0xf5)](_0x1b0a65,_0x4bbac7,_0x2e4fc3,_0x3579b0,_0x1d3eae){const _0x375e7a=_0xf8ff21,_0x20818b={'method':_0x375e7a(0xc0),'headers':await this[_0x375e7a(0xa4)](this[_0x375e7a(0xab)],_0x1d3eae),'body':JSON[_0x375e7a(0xb5)]({..._0x1b0a65,'model':_0x4bbac7,'stream':_0x2e4fc3}),'signal':this[_0x375e7a(0xa5)][_0x375e7a(0xb6)]},_0x4c4628=await fetch(this[_0x375e7a(0xb1)],_0x20818b);_0x2e4fc3?await this[_0x375e7a(0xbf)](_0x4c4628,_0x4bbac7,_0x3579b0):await this[_0x375e7a(0xaf)](_0x4c4628,_0x4bbac7,_0x3579b0);}async[_0xf8ff21(0xb8)](_0x51f6be,_0x16b1e5,_0x5e8da3,_0x419c2d){const _0x4e2ec9=_0xf8ff21,_0x203a20=new _0x288fde(this[_0x4e2ec9(0xcc)]),_0x78b80d={'body':JSON[_0x4e2ec9(0xb5)](_0x51f6be),'contentType':_0x4e2ec9(0xa7),'accept':_0x4e2ec9(0xa7),'modelId':_0x16b1e5};let _0x3d6fe7;if(_0x5e8da3){const _0x265c6f=new _0x51df06(_0x78b80d);_0x3d6fe7=await _0x203a20[_0x4e2ec9(0xe5)](_0x265c6f,{'abortSignal':this[_0x4e2ec9(0xa5)][_0x4e2ec9(0xb6)]}),await this[_0x4e2ec9(0xec)](_0x3d6fe7,_0x16b1e5,_0x419c2d);}else{const _0x3cce0c=new _0xe40a25(_0x78b80d);_0x3d6fe7=await _0x203a20[_0x4e2ec9(0xe5)](_0x3cce0c,{'abortSignal':this[_0x4e2ec9(0xa5)][_0x4e2ec9(0xb6)]}),await this[_0x4e2ec9(0xaf)](_0x3d6fe7,_0x16b1e5,_0x419c2d);}}async[_0xf8ff21(0xec)](_0x56fc57,_0x39fadb,_0x155c6a){const _0x49b5ee=_0xf8ff21,_0x495bf3=_0x56fc57[_0x49b5ee(0xd0)],_0x38aec4=new TextDecoder(_0x49b5ee(0xb9));let _0x3b4f9d='';for await(const _0x17524c of _0x495bf3)if(_0x17524c[_0x49b5ee(0xdc)]){const _0x178b90=_0x38aec4[_0x49b5ee(0xf6)](_0x17524c[_0x49b5ee(0xdc)][_0x49b5ee(0xae)]),_0x1d030c=JSON[_0x49b5ee(0xf1)](_0x178b90);_0x3b4f9d+=this[_0x49b5ee(0xe6)](_0x1d030c,_0x39fadb),_0x155c6a(_0x3b4f9d);}return Promise[_0x49b5ee(0xf3)]();}async[_0xf8ff21(0xbf)](_0x3b2a68,_0x1c21ad,_0x4f4b0b){const _0x2245e5=_0xf8ff21,_0x5e0291=_0x3b2a68[_0x2245e5(0xd0)],_0x39edab=new TextDecoder(_0x2245e5(0xb9)),_0x1e693b=_0x5e0291[_0x2245e5(0xc9)]();let _0x42399c='',_0x391db8='',_0x1cc50c=!0x1;for(;!_0x1cc50c;){const {done:_0x2847b7,value:_0x1ec4b7}=await _0x1e693b[_0x2245e5(0xc1)]();if(_0x1cc50c=_0x2847b7,_0x1cc50c)break;const _0x5b5371=(_0x42399c+_0x39edab[_0x2245e5(0xf6)](_0x1ec4b7))[_0x2245e5(0xc3)]('\x0a')[_0x2245e5(0xc2)](_0x3562e8=>{const _0x1b64a2=_0x2245e5;try{return _0x42399c='',JSON[_0x1b64a2(0xf1)](_0x3562e8);}catch(_0x4be8b1){return _0x42399c=_0x3562e8,null;}})[_0x2245e5(0xe0)](_0x3873a4=>null!==_0x3873a4);_0x5b5371[_0x2245e5(0xd2)]&&(_0x391db8+=_0x5b5371[_0x2245e5(0xc2)](_0x115ca3=>this[_0x2245e5(0xe6)](_0x115ca3,_0x1c21ad))[_0x2245e5(0xef)](''),_0x4f4b0b(_0x391db8));}return Promise[_0x2245e5(0xf3)]();}async[_0xf8ff21(0xaf)](_0x3dba12,_0x5ba5ea,_0x3d8412){const _0x47867c=_0xf8ff21;let _0x4814ec;return _0x4814ec=_0x3dba12 instanceof Response?await _0x3dba12[_0x47867c(0xee)]():JSON[_0x47867c(0xf1)](Buffer[_0x47867c(0xe9)](_0x3dba12[_0x47867c(0xd0)])[_0x47867c(0xbb)](_0x47867c(0xba))),(_0x3d8412(this[_0x47867c(0xe6)](_0x4814ec,_0x5ba5ea)),Promise[_0x47867c(0xf3)]());}[_0xf8ff21(0xe6)](_0x4c27e8,_0x25d043){const _0x17b399=_0xf8ff21;switch(this[_0x17b399(0xa8)](_0x25d043)){case _0x17b399(0xd7):return _0x4c27e8[_0x17b399(0xbe)];case _0x17b399(0xcb):return _0x4c27e8[_0x17b399(0xc6)][0x0][_0x17b399(0xaa)][_0x17b399(0xd9)];case _0x17b399(0xeb):return _0x4c27e8[_0x17b399(0xf2)][0x0][_0x17b399(0xd9)];case _0x17b399(0xa6):return _0x4c27e8[_0x17b399(0xf0)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2adb58=_0x4a9e;function _0x4a9e(_0x475025,_0x13e77e){const _0xcdb9a4=_0xcdb9();return _0x4a9e=function(_0x4a9e71,_0x482aa1){_0x4a9e71=_0x4a9e71-0x19e;let _0x1cfe02=_0xcdb9a4[_0x4a9e71];return _0x1cfe02;},_0x4a9e(_0x475025,_0x13e77e);}(function(_0x1d4752,_0x819b9d){const _0x3c1ae=_0x4a9e,_0x2364cd=_0x1d4752();while(!![]){try{const _0x593238=-parseInt(_0x3c1ae(0x1e2))/0x1+-parseInt(_0x3c1ae(0x1d9))/0x2*(parseInt(_0x3c1ae(0x1de))/0x3)+parseInt(_0x3c1ae(0x1b9))/0x4+-parseInt(_0x3c1ae(0x1c7))/0x5*(parseInt(_0x3c1ae(0x1a8))/0x6)+-parseInt(_0x3c1ae(0x1d0))/0x7*(-parseInt(_0x3c1ae(0x1ab))/0x8)+-parseInt(_0x3c1ae(0x1a2))/0x9+parseInt(_0x3c1ae(0x1cf))/0xa*(parseInt(_0x3c1ae(0x1e0))/0xb);if(_0x593238===_0x819b9d)break;else _0x2364cd['push'](_0x2364cd['shift']());}catch(_0x39cfc8){_0x2364cd['push'](_0x2364cd['shift']());}}}(_0xcdb9,0x8b0ad));import{default as _0x1cd0fd}from'./aitextadapter.js';import{AIRequestError as _0x29171b}from'./aiadapter.js';function _0xcdb9(){const _0x1a2f09=['data:\x20','choices','editor','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','delta','_readStreamableResponse','454505uwwyVv','[DONE]','pluginName','Instruction:\x0a','split','system','AI_ERROR_CONTEXT_LENGTH','ai.openAI.apiUrl','38660qjFJTE','84codpjq','sendRequest','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_isBufferIncomplete','read','includes','https://api.openai.com/v1/chat/completions','_cleanUpData','map','1238DIBhdH','decode','AI_ERROR_MODERATION','filter','getReader','3081aDiyEY','text','4279kxBKWk','locale','548297smYYim','context_length_exceeded','stringify','Moderation','message','_apiUrl','ai.openAI.requestParameters','2466693LPDnDa','body','POST','_requestHeaders','join','stream','54roMFOS','prepareMessages','replace','284056yDypZB','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.','config','get','OpenAITextAdapter','ai.openAI.requestHeaders','gpt-3.5-turbo','length','json','_readStaticResponse','_requestParameters','reject','resolve','content','3663020WKjqYU','user','define','abortController','parse','_prepareRequestHeaders','_prepareRequestParameters','signal'];_0xcdb9=function(){return _0x1a2f09;};return _0xcdb9();}import{getTranslation as _0x41536c}from'../utils/common-translations.js';export default class J extends _0x1cd0fd{static get[_0x2adb58(0x1c9)](){const _0x218ae9=_0x2adb58;return _0x218ae9(0x1af);}constructor(_0x406e08){const _0x357004=_0x2adb58;super(_0x406e08),_0x406e08[_0x357004(0x1ad)][_0x357004(0x1bb)](_0x357004(0x1ce),_0x357004(0x1d6)),_0x406e08[_0x357004(0x1ad)][_0x357004(0x1ae)](_0x357004(0x1a1))||_0x406e08[_0x357004(0x1ad)][_0x357004(0x1bb)](_0x357004(0x1a1),{'model':_0x357004(0x1b1),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x357004(0x1a0)]=_0x406e08[_0x357004(0x1ad)][_0x357004(0x1ae)](_0x357004(0x1ce)),this[_0x357004(0x1a5)]=_0x406e08[_0x357004(0x1ad)][_0x357004(0x1ae)](_0x357004(0x1b0))||{},this[_0x357004(0x1b5)]=_0x406e08[_0x357004(0x1ad)][_0x357004(0x1ae)](_0x357004(0x1a1));}async[_0x2adb58(0x1d1)]({query:_0x403004,context:_0x5840ca,onData:_0x3877d7,actionId:_0x45d83c}){const _0x415291=_0x2adb58,_0x2babe9=this[_0x415291(0x1c3)][_0x415291(0x1e1)],_0x569747=await this[_0x415291(0x1a9)](_0x403004,_0x5840ca,_0x45d83c),_0x224394=await this[_0x415291(0x1be)](this[_0x415291(0x1a5)],_0x45d83c),_0x334448=await this[_0x415291(0x1bf)](this[_0x415291(0x1b5)],_0x45d83c),_0x3367e0={'messages':_0x569747,..._0x334448},_0x13cd7c={'method':_0x415291(0x1a4),'headers':_0x224394,'body':JSON[_0x415291(0x1e4)](_0x3367e0),'signal':this[_0x415291(0x1bc)][_0x415291(0x1c0)]},_0x3fb532=await fetch(this[_0x415291(0x1a0)],_0x13cd7c);if(_0x3fb532['ok'])return _0x334448[_0x415291(0x1a7)]?await this[_0x415291(0x1c6)](_0x3fb532,_0x3877d7):await this[_0x415291(0x1b4)](_0x3fb532,_0x3877d7),Promise[_0x415291(0x1b7)]();{const _0x6648c3=await _0x3fb532[_0x415291(0x1df)]();return _0x6648c3[_0x415291(0x1d5)](_0x415291(0x1e3))?Promise[_0x415291(0x1b6)](new _0x29171b(_0x41536c(_0x2babe9,_0x415291(0x1cd)))):_0x6648c3[_0x415291(0x1d5)](_0x415291(0x19e))?Promise[_0x415291(0x1b6)](new _0x29171b(_0x41536c(_0x2babe9,_0x415291(0x1db)))):Promise[_0x415291(0x1b6)](new Error(_0x6648c3));}}async[_0x2adb58(0x1a9)](_0x5976ad,_0x2a8348,_0x556f30){const _0x1d14e3=_0x2adb58;let _0x33c37f,_0xdf9d83;return _0x2a8348?(_0x33c37f=_0x1d14e3(0x1ac),_0xdf9d83=_0x1d14e3(0x1ca)+_0x5976ad+_0x1d14e3(0x1d2)+_0x2a8348):(_0x33c37f=_0x1d14e3(0x1c4),_0xdf9d83=_0x5976ad),[{'role':_0x1d14e3(0x1cc),'content':_0x33c37f},{'role':_0x1d14e3(0x1ba),'content':_0xdf9d83}];}async[_0x2adb58(0x1c6)](_0x5b533e,_0x4507d8){const _0x4f8b54=_0x2adb58,_0x4e67bc=_0x5b533e[_0x4f8b54(0x1a3)][_0x4f8b54(0x1dd)](),_0xcb2f6f=new TextDecoder();let _0x75203f='',_0x2fb934='',_0x437f48='',_0x322861=!0x1;for(;!_0x322861;){const {done:_0x28357c,value:_0x24a1c4}=await _0x4e67bc[_0x4f8b54(0x1d4)](),_0xf6016f=_0x75203f+_0xcb2f6f[_0x4f8b54(0x1da)](_0x24a1c4);let _0x496ce1='';_0x322861=_0x28357c;try{_0x496ce1=this[_0x4f8b54(0x1d7)](_0xf6016f),_0x75203f='';}catch(_0x3ee0f6){_0x75203f=_0xf6016f;continue;}_0x2fb934+=_0x496ce1,!_0x322861&&this[_0x4f8b54(0x1d3)](_0x2fb934)||_0x2fb934&&(_0x437f48+=_0x2fb934,_0x2fb934='',_0x4507d8(_0x437f48));}return Promise[_0x4f8b54(0x1b7)]();}async[_0x2adb58(0x1b4)](_0x46f7ad,_0x6fd218){const _0x581f98=_0x2adb58;return _0x6fd218((await _0x46f7ad[_0x581f98(0x1b3)]())[_0x581f98(0x1c2)][0x0][_0x581f98(0x19f)][_0x581f98(0x1b8)]),Promise[_0x581f98(0x1b7)]();}[_0x2adb58(0x1d3)](_0x4b1c24){const _0x2cb055=_0x2adb58,_0x43506a=_0x4b1c24[_0x2cb055(0x1cb)]('<')[_0x2cb055(0x1b2)]!==_0x4b1c24[_0x2cb055(0x1cb)]('>')[_0x2cb055(0x1b2)],_0x151baa=_0x4b1c24[_0x2cb055(0x1b2)]<0x1e;return _0x43506a&&_0x151baa;}[_0x2adb58(0x1d7)](_0x3f82b3){const _0x3e2bca=_0x2adb58;return _0x3f82b3[_0x3e2bca(0x1cb)](/\n(?![^{]*\})/g)[_0x3e2bca(0x1d8)](_0xee1392=>_0xee1392[_0x3e2bca(0x1aa)](_0x3e2bca(0x1c1),''))[_0x3e2bca(0x1dc)](_0x3562c9=>_0x3562c9&&_0x3562c9[_0x3e2bca(0x1b2)]>0x0&&_0x3e2bca(0x1c8)!==_0x3562c9)[_0x3e2bca(0x1d8)](_0xbc70d=>{const _0x291b7c=_0x3e2bca,{choices:_0x236b49}=JSON[_0x291b7c(0x1bd)](_0xbc70d);if(_0x236b49[0x0]&&_0x236b49[0x0][_0x291b7c(0x1c5)]&&_0x236b49[0x0][_0x291b7c(0x1c5)][_0x291b7c(0x1b8)])return _0x236b49[0x0][_0x291b7c(0x1c5)][_0x291b7c(0x1b8)];})[_0x3e2bca(0x1dc)](_0x465c51=>_0x465c51)[_0x3e2bca(0x1a6)]('');}}
|
package/src/aiassistant.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4f56a5=_0x5521;function _0x2fae(){const _0x1566e4=['Business','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','20983730VFeVfr','Friendly','Translate\x20the\x20content\x20to\x20French\x20language.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Spanish','aiLicenseKeyValid','3968352RVwxos','AIAssistant','Casual','aiLicenseKeyTrial','translate','professional','commands','confident','direct','Direct','push','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.','translateEnglish','Continue','casual','get','Translate','_licenseKeyCheckInterval','config','Confident','Hindi','Translate\x20the\x20content\x20to\x20Arabic\x20language.','changeTone','editor','Legal','3320595avJdEt','417114wfEzIJ','info','Summarize','summarize','continue','set','changeStyle','Make\x20shorter','Professional','Change\x20tone','concat','includes','28SponUs','Edit\x20or\x20review','Simplify\x20language','translatePortuguese','aiLicenseKeyInvalid','groupId','translateSpanish','5gaOYSQ','translateHindi','Generate\x20from\x20selection','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','forEach','generate','ai.aiAssistant.commands','licenseKey','Journalism','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Change\x20style','find','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Translate\x20the\x20content\x20to\x20German\x20language.','legal','French','Simplified\x20Chinese','makeShorter','ai.aiAssistant.removeCommands','ai-trial-license-key-reached-limit-changes','English','2251389pkuXvk','translateFrench','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','German','locale','requires','4MLHHbN','Improve\x20writing','ai.aiAssistant.extraCommandGroups','115904LkmvVs','friendly','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','filter','improveWriting','poetic','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Arabic','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','destroy','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Translate\x20to\x20%0','simplifyLanguage','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Portuguese','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','define','ai-invalid-license-key','editOrReview','230918EuMTXE','Make\x20longer','translateChinese','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','journalism','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','makeLonger','translateArabic','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','aiLicenseKeyTrialLimit:operations','init','business','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Translate\x20the\x20content\x20to\x20English\x20language.','Translate\x20the\x20content\x20to\x20Hindi\x20language.','translateGerman','pluginName','Poetic'];_0x2fae=function(){return _0x1566e4;};return _0x2fae();}(function(_0x12e51b,_0x145cab){const _0x44494c=_0x5521,_0x8358ca=_0x12e51b();while(!![]){try{const _0xc55652=parseInt(_0x44494c(0x178))/0x1*(-parseInt(_0x44494c(0x131))/0x2)+parseInt(_0x44494c(0x18d))/0x3*(-parseInt(_0x44494c(0x193))/0x4)+-parseInt(_0x44494c(0x164))/0x5+-parseInt(_0x44494c(0x165))/0x6+parseInt(_0x44494c(0x171))/0x7*(-parseInt(_0x44494c(0x196))/0x8)+parseInt(_0x44494c(0x14b))/0x9+parseInt(_0x44494c(0x145))/0xa;if(_0xc55652===_0x145cab)break;else _0x8358ca['push'](_0x8358ca['shift']());}catch(_0x5dc4d6){_0x8358ca['push'](_0x8358ca['shift']());}}}(_0x2fae,0x66871));import{CKEditorError as _0x452701}from'ckeditor5/src/utils.js';function _0x5521(_0x136508,_0x91dfdc){const _0x2fae98=_0x2fae();return _0x5521=function(_0x552187,_0x358a9f){_0x552187=_0x552187-0x12d;let _0x528b7a=_0x2fae98[_0x552187];return _0x528b7a;},_0x5521(_0x136508,_0x91dfdc);}import{Plugin as _0x53f54d}from'ckeditor5/src/core.js';import _0x14efc9 from'./aiassistantui.js';import _0x4367db from'./aiassistantediting.js';import{getTranslation as _0x1e4fd9}from'./utils/common-translations.js';export default class r extends _0x53f54d{static get[_0x4f56a5(0x192)](){return[_0x14efc9,_0x4367db];}static get[_0x4f56a5(0x141)](){const _0x2f4b37=_0x4f56a5;return _0x2f4b37(0x14c);}constructor(_0x4a4ada){const _0x568db0=_0x4f56a5;super(_0x4a4ada);const _0x11c63a=_0x4a4ada[_0x568db0(0x15d)];_0x11c63a[_0x568db0(0x12e)](_0x568db0(0x17e),getDefaultCommands(_0x4a4ada[_0x568db0(0x191)])),_0x11c63a[_0x568db0(0x12e)](_0x568db0(0x195),[]),_0x11c63a[_0x568db0(0x12e)](_0x568db0(0x18a),[]);const _0x5eb73d=_0x11c63a[_0x568db0(0x15a)](_0x568db0(0x17e)),_0x2789af=_0x11c63a[_0x568db0(0x15a)](_0x568db0(0x195)),_0x9a8b2e=_0x11c63a[_0x568db0(0x15a)](_0x568db0(0x18a));_0x2789af[_0x568db0(0x17c)](_0x5ecc84=>{const _0x3e6901=_0x568db0,_0x1ea9f5=_0x5eb73d[_0x3e6901(0x183)](_0x1a75e4=>_0x1a75e4[_0x3e6901(0x176)]===_0x5ecc84[_0x3e6901(0x176)]);_0x1ea9f5?_0x1ea9f5[_0x3e6901(0x151)]=_0x1ea9f5[_0x3e6901(0x151)][_0x3e6901(0x16f)](_0x5ecc84[_0x3e6901(0x151)]):_0x5eb73d[_0x3e6901(0x155)](_0x5ecc84);}),_0x5eb73d[_0x568db0(0x17c)](_0x187982=>{const _0x177d52=_0x568db0;_0x187982[_0x177d52(0x151)]=_0x187982[_0x177d52(0x151)][_0x177d52(0x199)](_0x10dd2d=>!_0x9a8b2e[_0x177d52(0x170)](_0x10dd2d['id']));}),_0x11c63a[_0x568db0(0x16a)](_0x568db0(0x17e),_0x5eb73d);}[_0x4f56a5(0x13b)](){const _0xda6f6=_0x4f56a5,_0x18f496=this[_0xda6f6(0x162)];this[_0xda6f6(0x17f)]=_0x18f496[_0xda6f6(0x15d)][_0xda6f6(0x15a)](_0xda6f6(0x17f)),this[_0xda6f6(0x15c)]=setInterval(()=>{const _0x2016b2=_0xda6f6;let _0x14cdb;for(const _0x41a756 in _0x18f496){const _0x24fb3d=_0x41a756,_0x75523d=_0x18f496[_0x24fb3d];if(_0x2016b2(0x14e)===_0x75523d||_0x2016b2(0x175)===_0x75523d||_0x2016b2(0x14a)===_0x75523d||_0x2016b2(0x13a)===_0x75523d){delete _0x18f496[_0x24fb3d],_0x14cdb=_0x75523d;break;}}if(_0x2016b2(0x175)===_0x14cdb)throw clearInterval(this[_0x2016b2(0x15c)]),new _0x452701(_0x2016b2(0x12f),null);if(_0x2016b2(0x14e)===_0x14cdb&&console[_0x2016b2(0x166)](_0x2016b2(0x156)),_0x2016b2(0x13a)===_0x14cdb)throw clearInterval(this[_0x2016b2(0x15c)]),new _0x452701(_0x2016b2(0x18b),null);_0x2016b2(0x14a)===_0x14cdb&&clearInterval(this[_0x2016b2(0x15c)]);},0x3e8);}[_0x4f56a5(0x1a0)](){const _0x55b1e8=_0x4f56a5;this[_0x55b1e8(0x15c)]&&clearInterval(this[_0x55b1e8(0x15c)]);}}export function getDefaultCommands(_0x5ea8c6){const _0xdd6bd0=_0x4f56a5;return[{'groupId':_0xdd6bd0(0x130),'groupLabel':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x172)),'commands':[{'id':_0xdd6bd0(0x19a),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x194)),'prompt':_0xdd6bd0(0x17b)},{'id':_0xdd6bd0(0x189),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x16c)),'prompt':_0xdd6bd0(0x19c)},{'id':_0xdd6bd0(0x137),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x132)),'prompt':_0xdd6bd0(0x181)},{'id':_0xdd6bd0(0x1a3),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x173)),'prompt':_0xdd6bd0(0x148)}]},{'groupId':_0xdd6bd0(0x17d),'groupLabel':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x17a)),'commands':[{'id':_0xdd6bd0(0x168),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x167)),'prompt':_0xdd6bd0(0x136)},{'id':_0xdd6bd0(0x169),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x158)),'prompt':_0xdd6bd0(0x184)}]},{'groupId':_0xdd6bd0(0x161),'groupLabel':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x16e)),'commands':[{'id':_0xdd6bd0(0x150),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x16d)),'prompt':_0xdd6bd0(0x134)},{'id':_0xdd6bd0(0x159),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x14d)),'prompt':_0xdd6bd0(0x13d)},{'id':_0xdd6bd0(0x153),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x154)),'prompt':_0xdd6bd0(0x1a4)},{'id':_0xdd6bd0(0x152),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x15e)),'prompt':_0xdd6bd0(0x12d)},{'id':_0xdd6bd0(0x197),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x146)),'prompt':_0xdd6bd0(0x1a5)}]},{'groupId':_0xdd6bd0(0x16b),'groupLabel':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x182)),'commands':[{'id':_0xdd6bd0(0x13c),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x143)),'prompt':_0xdd6bd0(0x19e)},{'id':_0xdd6bd0(0x186),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x163)),'prompt':_0xdd6bd0(0x144)},{'id':_0xdd6bd0(0x135),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x180)),'prompt':_0xdd6bd0(0x1a1)},{'id':_0xdd6bd0(0x19b),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x142)),'prompt':_0xdd6bd0(0x198)}]},{'groupId':_0xdd6bd0(0x14f),'groupLabel':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x15b)),'commands':[{'id':_0xdd6bd0(0x157),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a2),[_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x18c))]),'prompt':_0xdd6bd0(0x13e)},{'id':_0xdd6bd0(0x177),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a2),[_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x149))]),'prompt':_0xdd6bd0(0x19f)},{'id':_0xdd6bd0(0x174),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a2),[_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a6))]),'prompt':_0xdd6bd0(0x18f)},{'id':_0xdd6bd0(0x140),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a2),[_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x190))]),'prompt':_0xdd6bd0(0x185)},{'id':_0xdd6bd0(0x18e),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a2),[_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x187))]),'prompt':_0xdd6bd0(0x147)},{'id':_0xdd6bd0(0x133),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a2),[_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x188))]),'prompt':_0xdd6bd0(0x139)},{'id':_0xdd6bd0(0x179),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a2),[_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x15f))]),'prompt':_0xdd6bd0(0x13f)},{'id':_0xdd6bd0(0x138),'label':_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x1a2),[_0x1e4fd9(_0x5ea8c6,_0xdd6bd0(0x19d))]),'prompt':_0xdd6bd0(0x160)}]}];}
|
|
23
|
+
const _0x1a79de=_0x32d2;(function(_0x38907e,_0x2940d8){const _0x485b3e=_0x32d2,_0x351212=_0x38907e();while(!![]){try{const _0x2cfe20=-parseInt(_0x485b3e(0xd4))/0x1+-parseInt(_0x485b3e(0x12e))/0x2+-parseInt(_0x485b3e(0x122))/0x3*(parseInt(_0x485b3e(0x128))/0x4)+-parseInt(_0x485b3e(0xff))/0x5+-parseInt(_0x485b3e(0x106))/0x6*(-parseInt(_0x485b3e(0xd3))/0x7)+-parseInt(_0x485b3e(0x12f))/0x8+parseInt(_0x485b3e(0x149))/0x9*(parseInt(_0x485b3e(0x125))/0xa);if(_0x2cfe20===_0x2940d8)break;else _0x351212['push'](_0x351212['shift']());}catch(_0x3dd02c){_0x351212['push'](_0x351212['shift']());}}}(_0x4619,0x8c1f5));import{CKEditorError as _0x3b7ab2}from'ckeditor5/src/utils.js';import{Plugin as _0xb1928e}from'ckeditor5/src/core.js';import _0x6d27f5 from'./aiassistantui.js';import _0x1370a6 from'./aiassistantediting.js';function _0x4619(){const _0x1e0f74=['Translate\x20the\x20content\x20to\x20Arabic\x20language.','German','destroy','legal','init','editOrReview','Change\x20tone','Translate\x20the\x20content\x20to\x20Hindi\x20language.','AIAssistant','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','poetic','Make\x20longer','Simplify\x20language','aiLicenseKeyValid','translate','filter','business','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Edit\x20or\x20review','Translate\x20the\x20content\x20to\x20French\x20language.','French','professional','115869YzBBFg','changeStyle','generate','783570BGckxx','Hindi','translateSpanish','68HlSqrL','ai.aiAssistant.commands','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','casual','Poetic','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','589840PLqZMK','1788648gZeEIN','define','get','ai.aiAssistant.removeCommands','journalism','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Friendly','aiLicenseKeyTrialLimit:operations','simplifyLanguage','Spanish','groupId','translateHindi','includes','friendly','Arabic','Translate\x20the\x20content\x20to\x20English\x20language.','translateArabic','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','improveWriting','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','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.','Summarize','direct','concat','Simplified\x20Chinese','makeLonger','207yHxiAl','translateFrench','pluginName','Continue','7256690LNGNij','464476LuPJJV','config','continue','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','ai.aiAssistant.extraCommandGroups','Business','find','editor','Journalism','summarize','Casual','English','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Translate\x20the\x20content\x20to\x20German\x20language.','makeShorter','set','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Generate\x20from\x20selection','Translate','translateChinese','Translate\x20to\x20%0','Change\x20style','Confident','Make\x20shorter','info','requires','_licenseKeyCheckInterval','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','commands','Legal','translateEnglish','Direct','confident','Professional','translatePortuguese','Portuguese','push','ai-trial-license-key-reached-limit-changes','licenseKey','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','aiLicenseKeyTrial','Improve\x20writing','forEach','3126860umARzO','translateGerman','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','ai-invalid-license-key','aiLicenseKeyInvalid','6KcJYAS','locale','changeTone','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.'];_0x4619=function(){return _0x1e0f74;};return _0x4619();}import{getTranslation as _0x4abe0d}from'./utils/common-translations.js';export default class r extends _0xb1928e{static get[_0x1a79de(0xed)](){return[_0x6d27f5,_0x1370a6];}static get[_0x1a79de(0x14b)](){const _0x18266b=_0x1a79de;return _0x18266b(0x112);}constructor(_0x1a3164){const _0x454e1b=_0x1a79de;super(_0x1a3164);const _0x3e4edf=_0x1a3164[_0x454e1b(0xd5)];_0x3e4edf[_0x454e1b(0x130)](_0x454e1b(0x129),getDefaultCommands(_0x1a3164[_0x454e1b(0x107)])),_0x3e4edf[_0x454e1b(0x130)](_0x454e1b(0xd8),[]),_0x3e4edf[_0x454e1b(0x130)](_0x454e1b(0x132),[]);const _0x20d179=_0x3e4edf[_0x454e1b(0x131)](_0x454e1b(0x129)),_0x10a160=_0x3e4edf[_0x454e1b(0x131)](_0x454e1b(0xd8)),_0x431d4b=_0x3e4edf[_0x454e1b(0x131)](_0x454e1b(0x132));_0x10a160[_0x454e1b(0xfe)](_0x2c4dd5=>{const _0x57a067=_0x454e1b,_0x1cda56=_0x20d179[_0x57a067(0xda)](_0x40e337=>_0x40e337[_0x57a067(0x139)]===_0x2c4dd5[_0x57a067(0x139)]);_0x1cda56?_0x1cda56[_0x57a067(0xf0)]=_0x1cda56[_0x57a067(0xf0)][_0x57a067(0x146)](_0x2c4dd5[_0x57a067(0xf0)]):_0x20d179[_0x57a067(0xf8)](_0x2c4dd5);}),_0x20d179[_0x454e1b(0xfe)](_0x667017=>{const _0x26e563=_0x454e1b;_0x667017[_0x26e563(0xf0)]=_0x667017[_0x26e563(0xf0)][_0x26e563(0x11b)](_0x41cf0a=>!_0x431d4b[_0x26e563(0x13b)](_0x41cf0a['id']));}),_0x3e4edf[_0x454e1b(0xe3)](_0x454e1b(0x129),_0x20d179);}[_0x1a79de(0x10e)](){const _0x32715d=_0x1a79de,_0x28fe52=this[_0x32715d(0xdb)];this[_0x32715d(0xfa)]=_0x28fe52[_0x32715d(0xd5)][_0x32715d(0x131)](_0x32715d(0xfa)),this[_0x32715d(0xee)]=setInterval(()=>{const _0x27c89c=_0x32715d;let _0x20e929;for(const _0x3fa4ef in _0x28fe52){const _0x44eb1f=_0x3fa4ef,_0x55cb69=_0x28fe52[_0x44eb1f];if(_0x27c89c(0xfc)===_0x55cb69||_0x27c89c(0x105)===_0x55cb69||_0x27c89c(0x119)===_0x55cb69||_0x27c89c(0x136)===_0x55cb69){delete _0x28fe52[_0x44eb1f],_0x20e929=_0x55cb69;break;}}if(_0x27c89c(0x105)===_0x20e929)throw clearInterval(this[_0x27c89c(0xee)]),new _0x3b7ab2(_0x27c89c(0x104),null);if(_0x27c89c(0xfc)===_0x20e929&&console[_0x27c89c(0xec)](_0x27c89c(0x143)),_0x27c89c(0x136)===_0x20e929)throw clearInterval(this[_0x27c89c(0xee)]),new _0x3b7ab2(_0x27c89c(0xf9),null);_0x27c89c(0x119)===_0x20e929&&clearInterval(this[_0x27c89c(0xee)]);},0x3e8);}[_0x1a79de(0x10c)](){const _0x1e4766=_0x1a79de;this[_0x1e4766(0xee)]&&clearInterval(this[_0x1e4766(0xee)]);}}function _0x32d2(_0x498c0e,_0x5c7d3f){const _0x461910=_0x4619();return _0x32d2=function(_0x32d21e,_0x30606c){_0x32d21e=_0x32d21e-0xd3;let _0x305042=_0x461910[_0x32d21e];return _0x305042;},_0x32d2(_0x498c0e,_0x5c7d3f);}export function getDefaultCommands(_0x507c69){const _0x18a7ca=_0x1a79de;return[{'groupId':_0x18a7ca(0x10f),'groupLabel':_0x4abe0d(_0x507c69,_0x18a7ca(0x11e)),'commands':[{'id':_0x18a7ca(0x141),'label':_0x4abe0d(_0x507c69,_0x18a7ca(0xfd)),'prompt':_0x18a7ca(0x12a)},{'id':_0x18a7ca(0xe2),'label':_0x4abe0d(_0x507c69,_0x18a7ca(0xeb)),'prompt':_0x18a7ca(0x142)},{'id':_0x18a7ca(0x148),'label':_0x4abe0d(_0x507c69,_0x18a7ca(0x117)),'prompt':_0x18a7ca(0xd7)},{'id':_0x18a7ca(0x137),'label':_0x4abe0d(_0x507c69,_0x18a7ca(0x118)),'prompt':_0x18a7ca(0xe0)}]},{'groupId':_0x18a7ca(0x124),'groupLabel':_0x4abe0d(_0x507c69,_0x18a7ca(0xe5)),'commands':[{'id':_0x18a7ca(0xdd),'label':_0x4abe0d(_0x507c69,_0x18a7ca(0x144)),'prompt':_0x18a7ca(0xef)},{'id':_0x18a7ca(0xd6),'label':_0x4abe0d(_0x507c69,_0x18a7ca(0x14c)),'prompt':_0x18a7ca(0x115)}]},{'groupId':_0x18a7ca(0x108),'groupLabel':_0x4abe0d(_0x507c69,_0x18a7ca(0x110)),'commands':[{'id':_0x18a7ca(0x121),'label':_0x4abe0d(_0x507c69,_0x18a7ca(0xf5)),'prompt':_0x18a7ca(0xe4)},{'id':_0x18a7ca(0x12b),'label':_0x4abe0d(_0x507c69,_0x18a7ca(0xde)),'prompt':_0x18a7ca(0x134)},{'id':_0x18a7ca(0x145),'label':_0x4abe0d(_0x507c69,_0x18a7ca(0xf3)),'prompt':_0x18a7ca(0xfb)},{'id':_0x18a7ca(0xf4),'label':_0x4abe0d(_0x507c69,_0x18a7ca(0xea)),'prompt':_0x18a7ca(0x109)},{'id':_0x18a7ca(0x13c),'label':_0x4abe0d(_0x507c69,_0x18a7ca(0x135)),'prompt':_0x18a7ca(0x114)}]},{'groupId':_0x18a7ca(0x123),'groupLabel':_0x4abe0d(_0x507c69,_0x18a7ca(0xe9)),'commands':[{'id':_0x18a7ca(0x11c),'label':_0x4abe0d(_0x507c69,_0x18a7ca(0xd9)),'prompt':_0x18a7ca(0x140)},{'id':_0x18a7ca(0x10d),'label':_0x4abe0d(_0x507c69,_0x18a7ca(0xf1)),'prompt':_0x18a7ca(0x102)},{'id':_0x18a7ca(0x133),'label':_0x4abe0d(_0x507c69,_0x18a7ca(0xdc)),'prompt':_0x18a7ca(0x12d)},{'id':_0x18a7ca(0x116),'label':_0x4abe0d(_0x507c69,_0x18a7ca(0x12c)),'prompt':_0x18a7ca(0x11d)}]},{'groupId':_0x18a7ca(0x11a),'groupLabel':_0x4abe0d(_0x507c69,_0x18a7ca(0xe6)),'commands':[{'id':_0x18a7ca(0xf2),'label':_0x4abe0d(_0x507c69,_0x18a7ca(0xe8),[_0x4abe0d(_0x507c69,_0x18a7ca(0xdf))]),'prompt':_0x18a7ca(0x13e)},{'id':_0x18a7ca(0x127),'label':_0x4abe0d(_0x507c69,_0x18a7ca(0xe8),[_0x4abe0d(_0x507c69,_0x18a7ca(0x138))]),'prompt':_0x18a7ca(0x101)},{'id':_0x18a7ca(0xf6),'label':_0x4abe0d(_0x507c69,_0x18a7ca(0xe8),[_0x4abe0d(_0x507c69,_0x18a7ca(0xf7))]),'prompt':_0x18a7ca(0x113)},{'id':_0x18a7ca(0x100),'label':_0x4abe0d(_0x507c69,_0x18a7ca(0xe8),[_0x4abe0d(_0x507c69,_0x18a7ca(0x10b))]),'prompt':_0x18a7ca(0xe1)},{'id':_0x18a7ca(0x14a),'label':_0x4abe0d(_0x507c69,_0x18a7ca(0xe8),[_0x4abe0d(_0x507c69,_0x18a7ca(0x120))]),'prompt':_0x18a7ca(0x11f)},{'id':_0x18a7ca(0xe7),'label':_0x4abe0d(_0x507c69,_0x18a7ca(0xe8),[_0x4abe0d(_0x507c69,_0x18a7ca(0x147))]),'prompt':_0x18a7ca(0x103)},{'id':_0x18a7ca(0x13a),'label':_0x4abe0d(_0x507c69,_0x18a7ca(0xe8),[_0x4abe0d(_0x507c69,_0x18a7ca(0x126))]),'prompt':_0x18a7ca(0x111)},{'id':_0x18a7ca(0x13f),'label':_0x4abe0d(_0x507c69,_0x18a7ca(0xe8),[_0x4abe0d(_0x507c69,_0x18a7ca(0x13d))]),'prompt':_0x18a7ca(0x10a)}]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4280fc=_0x4db1;function _0x4db1(_0x57ae35,_0x14a99a){const _0x34f628=_0x34f6();return _0x4db1=function(_0x4db1d1,_0x1f0276){_0x4db1d1=_0x4db1d1-0xac;let _0x341f43=_0x34f628[_0x4db1d1];return _0x341f43;},_0x4db1(_0x57ae35,_0x14a99a);}(function(_0x2b2a95,_0x51b409){const _0x9ca223=_0x4db1,_0x56fbd5=_0x2b2a95();while(!![]){try{const _0x329699=parseInt(_0x9ca223(0xe4))/0x1+-parseInt(_0x9ca223(0xe7))/0x2+-parseInt(_0x9ca223(0xb4))/0x3*(parseInt(_0x9ca223(0xeb))/0x4)+-parseInt(_0x9ca223(0xe0))/0x5+parseInt(_0x9ca223(0xd7))/0x6*(-parseInt(_0x9ca223(0xb9))/0x7)+parseInt(_0x9ca223(0xe6))/0x8+parseInt(_0x9ca223(0xe5))/0x9;if(_0x329699===_0x51b409)break;else _0x56fbd5['push'](_0x56fbd5['shift']());}catch(_0x4caf32){_0x56fbd5['push'](_0x56fbd5['shift']());}}}(_0x34f6,0x2faf6));import{Plugin as _0x549fa6}from'ckeditor5/src/core.js';const s=_0x4280fc(0xc9),c=_0x4280fc(0xce);function _0x34f6(){const _0x32ccac=['5649777WLpjxu','1269472jFiLNG','212566KdgqYm','has','markers','length','4eGZajJ','getLastPosition','data','AIAssistantEditing','toModel','insertContentBelow','selection','setSelection','ai.useTheme','209499JrHTXq','span','ck-fake-ai-selection','pluginName','getRange','1760045wZjkJZ','addMarker','ck-ai-assistant-ui_theme','createRange','get','ck-fake-ai-selection-candidate','pop','markerToElement','config','markerToHighlight','hideFakeVisualSelection','conversion','toView','ck-fake-ai-selection_collapsed','createSelection','for','ai-ui','isAtEnd','from','init','createPositionAfter','ai-ui-candidate','change','end','editor','schema','updateMarker','canEditAt','document','processor','6ykwklR','start','getFirstRange','editingDowncast','push','getLastMatchingPosition','insertContent','isContent','removeMarker','1352045uUrbAa','model','showFakeVisualSelection','getSelectedBlocks','106841OlqgCs'];_0x34f6=function(){return _0x32ccac;};return _0x34f6();}export default class i extends _0x549fa6{static get[_0x4280fc(0xb7)](){const _0x34febc=_0x4280fc;return _0x34febc(0xae);}[_0x4280fc(0xcc)](){const _0x1fc0d7=_0x4280fc,{editor:_0x4de089}=this,_0x4fb490=[_0x1fc0d7(0xb6)];_0x4de089[_0x1fc0d7(0xc1)][_0x1fc0d7(0xbd)](_0x1fc0d7(0xb3))&&_0x4fb490[_0x1fc0d7(0xdb)](_0x1fc0d7(0xbb)),_0x4de089[_0x1fc0d7(0xc4)][_0x1fc0d7(0xc8)](_0x1fc0d7(0xda))[_0x1fc0d7(0xc2)]({'model':s,'view':{'classes':_0x4fb490,'priority':0xc}}),_0x4de089[_0x1fc0d7(0xc4)][_0x1fc0d7(0xc8)](_0x1fc0d7(0xda))[_0x1fc0d7(0xc0)]({'model':s,'view':{'name':_0x1fc0d7(0xb5),'classes':[_0x1fc0d7(0xb6),_0x1fc0d7(0xc6)],'priority':0xc}}),_0x4de089[_0x1fc0d7(0xc4)][_0x1fc0d7(0xc8)](_0x1fc0d7(0xda))[_0x1fc0d7(0xc2)]({'model':c,'view':{'classes':[_0x1fc0d7(0xbe)],'priority':0x19}}),_0x4de089[_0x1fc0d7(0xc4)][_0x1fc0d7(0xc8)](_0x1fc0d7(0xda))[_0x1fc0d7(0xc0)]({'model':c,'view':{'name':_0x1fc0d7(0xb5),'classes':[_0x1fc0d7(0xbe),_0x1fc0d7(0xc6)],'priority':0x19}});}[_0x4280fc(0xe2)](_0x13a65f){const _0x1ae673=_0x4280fc,_0x4b47a2=this[_0x1ae673(0xd1)][_0x1ae673(0xe1)],_0x31d703=_0x13a65f?c:s;_0x4b47a2[_0x1ae673(0xcf)](_0x45045d=>{const _0x53af28=_0x1ae673,_0x48182c=_0x4b47a2[_0x53af28(0xd5)][_0x53af28(0xb1)][_0x53af28(0xd9)]();if(_0x4b47a2[_0x53af28(0xe9)][_0x53af28(0xe8)](_0x31d703))_0x45045d[_0x53af28(0xd3)](_0x31d703,{'range':_0x48182c});else{if(_0x48182c[_0x53af28(0xd8)][_0x53af28(0xca)]){const _0x46f37c=_0x48182c[_0x53af28(0xd8)][_0x53af28(0xdc)](({item:_0x31be2a})=>!_0x4b47a2[_0x53af28(0xd2)][_0x53af28(0xde)](_0x31be2a),{'boundaries':_0x48182c});_0x45045d[_0x53af28(0xba)](_0x31d703,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x45045d[_0x53af28(0xbc)](_0x46f37c,_0x48182c[_0x53af28(0xd0)])});}else _0x45045d[_0x53af28(0xba)](_0x31d703,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x48182c});}});}[_0x4280fc(0xc3)](_0x430138){const _0x305b8b=_0x4280fc,_0x1dc62f=this[_0x305b8b(0xd1)][_0x305b8b(0xe1)],_0x3a9f9e=_0x430138?c:s;_0x1dc62f[_0x305b8b(0xe9)][_0x305b8b(0xe8)](_0x3a9f9e)&&_0x1dc62f[_0x305b8b(0xcf)](_0x3078f6=>{const _0x3c61de=_0x305b8b;_0x3078f6[_0x3c61de(0xdf)](_0x3a9f9e);});}[_0x4280fc(0xdd)](_0x5a2080,_0x16024d){const _0x4a0f6a=_0x4280fc,_0x36d889=_0x16024d||this[_0x4a0f6a(0xd1)][_0x4a0f6a(0xe1)][_0x4a0f6a(0xe9)][_0x4a0f6a(0xbd)](s)[_0x4a0f6a(0xb8)]();if(!this[_0x4a0f6a(0xd1)][_0x4a0f6a(0xe1)][_0x4a0f6a(0xd4)](_0x36d889))return;const _0x41eb60=this[_0x4a0f6a(0xd1)][_0x4a0f6a(0xad)][_0x4a0f6a(0xd6)][_0x4a0f6a(0xc5)](_0x5a2080),_0x1ef04a=this[_0x4a0f6a(0xd1)][_0x4a0f6a(0xad)][_0x4a0f6a(0xaf)](_0x41eb60);this[_0x4a0f6a(0xd1)][_0x4a0f6a(0xe1)][_0x4a0f6a(0xcf)](_0x55c784=>{const _0x7e2116=_0x4a0f6a;this[_0x7e2116(0xc3)]();const _0xa22595=this[_0x7e2116(0xd1)][_0x7e2116(0xe1)][_0x7e2116(0xdd)](_0x1ef04a,_0x36d889);_0xa22595&&_0x55c784[_0x7e2116(0xb2)](_0xa22595);});}[_0x4280fc(0xb0)](_0x24ab00){const _0x553fec=_0x4280fc,{model:_0x199ae0}=this[_0x553fec(0xd1)],_0x266a38=Array[_0x553fec(0xcb)](_0x199ae0[_0x553fec(0xc7)](this[_0x553fec(0xd1)][_0x553fec(0xe1)][_0x553fec(0xe9)][_0x553fec(0xbd)](s)[_0x553fec(0xb8)]())[_0x553fec(0xe3)]()),_0x4e9966=_0x266a38[_0x553fec(0xea)]?_0x199ae0[_0x553fec(0xcd)](_0x266a38[_0x553fec(0xbf)]()):_0x199ae0[_0x553fec(0xd5)][_0x553fec(0xb1)][_0x553fec(0xac)]();this[_0x553fec(0xdd)](_0x24ab00,_0x4e9966);}}
|