@ckeditor/ckeditor5-ai 45.2.1 → 46.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +2 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +16 -11
- package/src/adapters/aiadapter.d.ts +2 -2
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.d.ts +4 -4
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.d.ts +7 -7
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.d.ts +6 -7
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.d.ts +11 -11
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.d.ts +3 -3
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.d.ts +3 -3
- package/src/aiassistantui.js +1 -1
- package/src/aiconfig.d.ts +4 -4
- package/src/augmentation.d.ts +6 -6
- package/src/index.d.ts +9 -6
- package/src/index.js +1 -1
- package/src/legacyerrors.js +1 -1
- package/src/ui/aiassistantcontroller.d.ts +3 -3
- package/src/ui/aiassistantcontroller.js +2 -2
- package/src/ui/form/aiformcontentarea.d.ts +1 -1
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.d.ts +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.d.ts +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.d.ts +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.d.ts +5 -5
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.d.ts +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.d.ts +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.d.ts +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.d.ts +3 -3
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/normalizecommandsconfig.d.ts +2 -2
- package/src/utils/normalizecommandsconfig.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b0bb0=_0x4548;(function(_0x22de5c,_0x1efc05){const _0x49526f=_0x4548,_0x173e7d=_0x22de5c();while(!![]){try{const _0x3132d=-parseInt(_0x49526f(0x207))/0x1*(parseInt(_0x49526f(0x21d))/0x2)+parseInt(_0x49526f(0x22a))/0x3*(parseInt(_0x49526f(0x1ff))/0x4)+-parseInt(_0x49526f(0x214))/0x5*(parseInt(_0x49526f(0x1fa))/0x6)+-parseInt(_0x49526f(0x21a))/0x7+parseInt(_0x49526f(0x225))/0x8*(parseInt(_0x49526f(0x221))/0x9)+parseInt(_0x49526f(0x204))/0xa*(parseInt(_0x49526f(0x1f3))/0xb)+-parseInt(_0x49526f(0x215))/0xc*(-parseInt(_0x49526f(0x21c))/0xd);if(_0x3132d===_0x1efc05)break;else _0x173e7d['push'](_0x173e7d['shift']());}catch(_0x53065a){_0x173e7d['push'](_0x173e7d['shift']());}}}(_0x2958,0x4f96c));import{AITextAdapter as _0x652a7a}from'./aitextadapter.js';import{AIRequestError as _0x303b78}from'./aiadapter.js';import{BedrockRuntimeClient as _0xd854c3,InvokeModelCommand as _0x4fc303,InvokeModelWithResponseStreamCommand as _0x54e3d2}from'@aws-sdk/client-bedrock-runtime';function _0x4548(_0x4fb6ed,_0x10f210){const _0x2958ab=_0x2958();return _0x4548=function(_0x454811,_0x2efaa7){_0x454811=_0x454811-0x1db;let _0xe1a224=_0x2958ab[_0x454811];return _0xe1a224;},_0x4548(_0x4fb6ed,_0x10f210);}function _0x2958(){const _0x333d14=['<<SYS>>\x0a','filter','length','parse','\x0a<</SYS>>\x0a[INST]\x0a','ai21.j2','read','ai.aws.apiUrl','decode','utf-8','bedrock-2023-05-31','ai.aws.requestHeaders','_readStaticResponse','11DcxTfH','editor','POST','AI_ERROR_UNSUPPORTED_MODEL','\x0a\x0aAssistant:','_requestParameters','ai.aws.requestParameters','402zGGnJn','Human:\x0a','AWSTextAdapter','resolve','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.','40rDDXpo','generations','_apiUrl','Instruction:\x0a','completion','2918510JrMAwd','test','text','160zPWrho','_processProxyRequest','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.','locale','_readAsyncIterableResponse','join','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','split','abortController','\x0a[/INST]','anthropic.claude','json','_processAWSRequest','15010ejNMAh','588tKNgXy','_bedrockClientConfig','define','bytes','config','1982414eocBxW','_prepareRequestParameters','62348dXGrBO','3932aMtMOl','chunk','get','_prepareRequestHeaders','9jtqSVs','pluginName','getReader','body','4697016czcNaW','send','_getGeneratedText','cohere.command','sendRequest','3273ZTlWUO','getModelFamily','stringify','application/json','map','generation','meta.llama','_readStreamableResponse','completions','signal','data','ai.aws.bedrockClientConfig','anthropic.claude-v2','_requestHeaders','preparePrompt'];_0x2958=function(){return _0x333d14;};return _0x2958();}import{getTranslation as _0xe1d557}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x652a7a{[_0x3b0bb0(0x201)];[_0x3b0bb0(0x1e4)];[_0x3b0bb0(0x216)];[_0x3b0bb0(0x1f8)];static get[_0x3b0bb0(0x222)](){const _0x574be4=_0x3b0bb0;return _0x574be4(0x1fc);}constructor(_0x1c80d6){const _0x1fc106=_0x3b0bb0;super(_0x1c80d6),_0x1c80d6[_0x1fc106(0x219)][_0x1fc106(0x21f)](_0x1fc106(0x1f9))||_0x1c80d6[_0x1fc106(0x219)][_0x1fc106(0x217)](_0x1fc106(0x1f9),{'model':_0x1fc106(0x1e3),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x1fc106(0x1f0),'stream':!0x0}),this[_0x1fc106(0x201)]=_0x1c80d6[_0x1fc106(0x219)][_0x1fc106(0x21f)](_0x1fc106(0x1ed)),this[_0x1fc106(0x216)]=_0x1c80d6[_0x1fc106(0x219)][_0x1fc106(0x21f)](_0x1fc106(0x1e2)),this[_0x1fc106(0x1e4)]=_0x1c80d6[_0x1fc106(0x219)][_0x1fc106(0x21f)](_0x1fc106(0x1f1)),this[_0x1fc106(0x1f8)]=_0x1c80d6[_0x1fc106(0x219)][_0x1fc106(0x21f)](_0x1fc106(0x1f9));}async[_0x3b0bb0(0x229)]({query:_0x5e42c4,context:_0x5bf9cb,onData:_0x1ad206,actionId:_0x7f8b9f}){const _0x4c7585=_0x3b0bb0,{model:_0x2d1470,stream:_0x704cc1,..._0x235021}=await this[_0x4c7585(0x21b)](this[_0x4c7585(0x1f8)],_0x7f8b9f),_0xa8df39={'prompt':await this[_0x4c7585(0x1e5)](_0x5e42c4,_0x5bf9cb,_0x2d1470,_0x7f8b9f),..._0x235021};this[_0x4c7585(0x201)]?await this[_0x4c7585(0x208)](_0xa8df39,_0x2d1470,_0x704cc1,_0x1ad206,_0x7f8b9f):await this[_0x4c7585(0x213)](_0xa8df39,_0x2d1470,_0x704cc1,_0x1ad206);}async[_0x3b0bb0(0x1e5)](_0x270438,_0x31b928,_0x3a5d85,_0x24c98a){const _0x5a4a11=_0x3b0bb0;let _0x724d96,_0x4f3115;return _0x31b928?(_0x724d96=_0x5a4a11(0x209),_0x4f3115=_0x5a4a11(0x202)+_0x270438+_0x5a4a11(0x20d)+_0x31b928):(_0x724d96=_0x5a4a11(0x1fe),_0x4f3115=_0x270438),_0x5a4a11(0x1dd)==this[_0x5a4a11(0x22b)](_0x3a5d85)?_0x5a4a11(0x1e6)+_0x724d96+_0x5a4a11(0x1ea)+_0x4f3115+_0x5a4a11(0x210):_0x5a4a11(0x1fb)+_0x724d96+'\x0a'+_0x4f3115+_0x5a4a11(0x1f7);}[_0x3b0bb0(0x22b)](_0x41439f){const _0x2e9716=_0x3b0bb0;if(/^anthropic\.claude/[_0x2e9716(0x205)](_0x41439f))return _0x2e9716(0x211);if(/^ai21\.j2/[_0x2e9716(0x205)](_0x41439f))return _0x2e9716(0x1eb);if(/^cohere\.command/[_0x2e9716(0x205)](_0x41439f))return _0x2e9716(0x228);if(/^meta\.llama/[_0x2e9716(0x205)](_0x41439f))return _0x2e9716(0x1dd);throw new _0x303b78(_0xe1d557(this[_0x2e9716(0x1f4)][_0x2e9716(0x20a)],_0x2e9716(0x1f6),_0x41439f));}async[_0x3b0bb0(0x208)](_0x1e310d,_0x439769,_0x5d2958,_0x336366,_0x27ecc8){const _0x1bf017=_0x3b0bb0,_0x5c6b07={'method':_0x1bf017(0x1f5),'headers':await this[_0x1bf017(0x220)](this[_0x1bf017(0x1e4)],_0x27ecc8),'body':JSON[_0x1bf017(0x22c)]({..._0x1e310d,'model':_0x439769,'stream':_0x5d2958}),'signal':this[_0x1bf017(0x20f)][_0x1bf017(0x1e0)]},_0x2dedf8=await fetch(this[_0x1bf017(0x201)],_0x5c6b07);_0x5d2958?await this[_0x1bf017(0x1de)](_0x2dedf8,_0x439769,_0x336366):await this[_0x1bf017(0x1f2)](_0x2dedf8,_0x439769,_0x336366);}async[_0x3b0bb0(0x213)](_0xe3aa02,_0x4f3be3,_0x422863,_0x488396){const _0x35e345=_0x3b0bb0,_0x453a86=new _0xd854c3(this[_0x35e345(0x216)]),_0x49b50e={'body':JSON[_0x35e345(0x22c)](_0xe3aa02),'contentType':_0x35e345(0x22d),'accept':_0x35e345(0x22d),'modelId':_0x4f3be3};let _0x33ad98;if(_0x422863){const _0x4b3ed5=new _0x54e3d2(_0x49b50e);_0x33ad98=await _0x453a86[_0x35e345(0x226)](_0x4b3ed5,{'abortSignal':this[_0x35e345(0x20f)][_0x35e345(0x1e0)]}),await this[_0x35e345(0x20b)](_0x33ad98,_0x4f3be3,_0x488396);}else{const _0x595e29=new _0x4fc303(_0x49b50e);_0x33ad98=await _0x453a86[_0x35e345(0x226)](_0x595e29,{'abortSignal':this[_0x35e345(0x20f)][_0x35e345(0x1e0)]}),await this[_0x35e345(0x1f2)](_0x33ad98,_0x4f3be3,_0x488396);}}async[_0x3b0bb0(0x20b)](_0x45d6d1,_0xe30e02,_0x51167b){const _0x13be66=_0x3b0bb0,_0x49b9f2=_0x45d6d1[_0x13be66(0x224)],_0x46cd58=new TextDecoder(_0x13be66(0x1ef));let _0x304cac='';for await(const _0x1ed728 of _0x49b9f2)if(_0x1ed728[_0x13be66(0x21e)]){const _0x155e17=_0x46cd58[_0x13be66(0x1ee)](_0x1ed728[_0x13be66(0x21e)][_0x13be66(0x218)]),_0x3b8499=JSON[_0x13be66(0x1e9)](_0x155e17);_0x304cac+=this[_0x13be66(0x227)](_0x3b8499,_0xe30e02),_0x51167b(_0x304cac);}return Promise[_0x13be66(0x1fd)]();}async[_0x3b0bb0(0x1de)](_0x15e139,_0x4f3bea,_0x15b85f){const _0x25bfdb=_0x3b0bb0,_0x3ff18b=_0x15e139[_0x25bfdb(0x224)],_0x4ff512=new TextDecoder(_0x25bfdb(0x1ef)),_0x14a2d2=_0x3ff18b[_0x25bfdb(0x223)]();let _0x37f2a2='',_0x1f8e94='',_0x3a7c3b=!0x1;for(;!_0x3a7c3b;){const {done:_0x429d17,value:_0x5ab09e}=await _0x14a2d2[_0x25bfdb(0x1ec)]();if(_0x3a7c3b=_0x429d17,_0x3a7c3b)break;const _0x457cde=(_0x37f2a2+_0x4ff512[_0x25bfdb(0x1ee)](_0x5ab09e))[_0x25bfdb(0x20e)]('\x0a')[_0x25bfdb(0x1db)](_0x41eebb=>{const _0x5679bb=_0x25bfdb;try{return _0x37f2a2='',JSON[_0x5679bb(0x1e9)](_0x41eebb);}catch{return _0x37f2a2=_0x41eebb,null;}})[_0x25bfdb(0x1e7)](_0x19ca44=>null!==_0x19ca44);_0x457cde[_0x25bfdb(0x1e8)]&&(_0x1f8e94+=_0x457cde[_0x25bfdb(0x1db)](_0x34e514=>this[_0x25bfdb(0x227)](_0x34e514,_0x4f3bea))[_0x25bfdb(0x20c)](''),_0x15b85f(_0x1f8e94));}return Promise[_0x25bfdb(0x1fd)]();}async[_0x3b0bb0(0x1f2)](_0x2e11bd,_0x526d46,_0xef7ff8){const _0x38e704=_0x3b0bb0;let _0x41db23;return _0x41db23=_0x2e11bd instanceof Response?await _0x2e11bd[_0x38e704(0x212)]():JSON[_0x38e704(0x1e9)](new TextDecoder(_0x38e704(0x1ef))[_0x38e704(0x1ee)](_0x2e11bd[_0x38e704(0x224)])),(_0xef7ff8(this[_0x38e704(0x227)](_0x41db23,_0x526d46)),Promise[_0x38e704(0x1fd)]());}[_0x3b0bb0(0x227)](_0x56fdef,_0x769df1){const _0x77f545=_0x3b0bb0;switch(this[_0x77f545(0x22b)](_0x769df1)){case _0x77f545(0x211):return _0x56fdef[_0x77f545(0x203)];case _0x77f545(0x1eb):return _0x56fdef[_0x77f545(0x1df)][0x0][_0x77f545(0x1e1)][_0x77f545(0x206)];case _0x77f545(0x228):return _0x56fdef[_0x77f545(0x200)][0x0][_0x77f545(0x206)];case _0x77f545(0x1dd):return _0x56fdef[_0x77f545(0x1dc)];}}}
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
9
|
import { type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
-
import {
|
|
10
|
+
import { AITextAdapter, type AITextAdapterRequestData, type AIRequestHeaders, type AIRequestParameters } from './aitextadapter.js';
|
|
11
11
|
/**
|
|
12
12
|
* Adapter for AI text-related requests that supports OpenAI and Azure OpenAI services.
|
|
13
13
|
*
|
|
14
14
|
* See also {@link module:ai/adapters/aitextadapter~AITextAdapter}.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export declare class OpenAITextAdapter extends AITextAdapter {
|
|
17
17
|
/**
|
|
18
18
|
* @inheritDoc
|
|
19
19
|
*/
|
|
@@ -46,7 +46,7 @@ export default class OpenAITextAdapter extends AITextAdapter {
|
|
|
46
46
|
* @param context The context for the instruction. Usually this will be a part of the editor content. Can be empty.
|
|
47
47
|
* @param actionId ID of the performed action. See {@link module:ai/adapters/aitextadapter~AITextAdapterRequestData#actionId}.
|
|
48
48
|
*/
|
|
49
|
-
prepareMessages(query: string, context: string, actionId: string): Promise<Array<
|
|
49
|
+
prepareMessages(query: string, context: string, actionId: string): Promise<Array<AIRequestMessageItem>>;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* The configuration for the OpenAI adapter.
|
|
@@ -136,7 +136,7 @@ export interface OpenAITextAdapterConfig {
|
|
|
136
136
|
* If the function fails for any reason, the promise should be rejected. In this case, a feature that made the request should display
|
|
137
137
|
* an error notification.
|
|
138
138
|
*/
|
|
139
|
-
requestHeaders?:
|
|
139
|
+
requestHeaders?: AIRequestHeaders;
|
|
140
140
|
/**
|
|
141
141
|
* Additional configuration parameters for the AI service request. Use it to customize how the AI service generates responses.
|
|
142
142
|
* Note that the value you will set here will fully overwrite the default value.
|
|
@@ -166,7 +166,7 @@ export interface OpenAITextAdapterConfig {
|
|
|
166
166
|
* }
|
|
167
167
|
* ```
|
|
168
168
|
*/
|
|
169
|
-
requestParameters?:
|
|
169
|
+
requestParameters?: AIRequestParameters;
|
|
170
170
|
}
|
|
171
171
|
/**
|
|
172
172
|
* Single message item, in the format required for the OpenAI request.
|
|
@@ -179,5 +179,4 @@ export interface OpenAITextAdapterConfig {
|
|
|
179
179
|
*
|
|
180
180
|
* See [OpenAI API reference](https://platform.openai.com/docs/api-reference/chat/create) to learn more.
|
|
181
181
|
*/
|
|
182
|
-
type
|
|
183
|
-
export {};
|
|
182
|
+
export type AIRequestMessageItem = Record<string, string>;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x56b91a=_0x5ba7;(function(_0x41c82d,_0x4910d0){const _0x2476a5=_0x5ba7,_0x2b301f=_0x41c82d();while(!![]){try{const _0xe8f4b6=parseInt(_0x2476a5(0x1ed))/0x1+-parseInt(_0x2476a5(0x1d7))/0x2+-parseInt(_0x2476a5(0x1ea))/0x3*(-parseInt(_0x2476a5(0x206))/0x4)+parseInt(_0x2476a5(0x1e2))/0x5*(-parseInt(_0x2476a5(0x1e3))/0x6)+parseInt(_0x2476a5(0x1dd))/0x7+parseInt(_0x2476a5(0x209))/0x8+-parseInt(_0x2476a5(0x20d))/0x9;if(_0xe8f4b6===_0x4910d0)break;else _0x2b301f['push'](_0x2b301f['shift']());}catch(_0x13367d){_0x2b301f['push'](_0x2b301f['shift']());}}}(_0xb675,0xbf78e));import{AITextAdapter as _0x6cb5a6}from'./aitextadapter.js';import{AIRequestError as _0x2785d5}from'./aiadapter.js';function _0xb675(){const _0x120e7b=['_requestParameters','get','2104004amRBzy','_readStaticResponse','body','message','_prepareRequestParameters','326065NOqqtx','66EZJicv','read','_readStreamableResponse','gpt-3.5-turbo','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','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.','POST','75zMbMCg','map','replace','645398xdWRCz','stream','decode','_isBufferIncomplete','includes','system','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.','join','stringify','abortController','_prepareRequestHeaders','pluginName','split','_apiUrl','https://api.openai.com/v1/chat/completions','choices','_requestHeaders','user','AI_ERROR_CONTEXT_LENGTH','[DONE]','locale','text','content','ai.openAI.requestParameters','Moderation','21524mIAUmo','filter','delta','8464688okmsNx','reject','prepareMessages','Instruction:\x0a','2328147zVIWGs','data:\x20','define','signal','resolve','length','_cleanUpData','OpenAITextAdapter','getReader','json','context_length_exceeded','editor','AI_ERROR_MODERATION','ai.openAI.requestHeaders','config','756570UEMfSQ','ai.openAI.apiUrl','parse','sendRequest'];_0xb675=function(){return _0x120e7b;};return _0xb675();}import{getTranslation as _0x3a5dc7}from'../utils/common-translations.js';function _0x5ba7(_0x491e5d,_0x1e8c28){const _0xb6753a=_0xb675();return _0x5ba7=function(_0x5ba783,_0x1736db){_0x5ba783=_0x5ba783-0x1ca;let _0x144dc7=_0xb6753a[_0x5ba783];return _0x144dc7;},_0x5ba7(_0x491e5d,_0x1e8c28);}export class OpenAITextAdapter extends _0x6cb5a6{[_0x56b91a(0x1fa)];[_0x56b91a(0x1fd)];[_0x56b91a(0x1db)];static get[_0x56b91a(0x1f8)](){const _0x4f517a=_0x56b91a;return _0x4f517a(0x1cf);}constructor(_0x4180e8){const _0x3528ca=_0x56b91a;super(_0x4180e8),_0x4180e8[_0x3528ca(0x1d6)][_0x3528ca(0x1ca)](_0x3528ca(0x1d8),_0x3528ca(0x1fb)),_0x4180e8[_0x3528ca(0x1d6)][_0x3528ca(0x1dc)](_0x3528ca(0x204))||_0x4180e8[_0x3528ca(0x1d6)][_0x3528ca(0x1ca)](_0x3528ca(0x204),{'model':_0x3528ca(0x1e6),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x3528ca(0x1fa)]=_0x4180e8[_0x3528ca(0x1d6)][_0x3528ca(0x1dc)](_0x3528ca(0x1d8)),this[_0x3528ca(0x1fd)]=_0x4180e8[_0x3528ca(0x1d6)][_0x3528ca(0x1dc)](_0x3528ca(0x1d5))||{},this[_0x3528ca(0x1db)]=_0x4180e8[_0x3528ca(0x1d6)][_0x3528ca(0x1dc)](_0x3528ca(0x204));}async[_0x56b91a(0x1da)]({query:_0x380cea,context:_0x8dd051,onData:_0x52bb7e,actionId:_0x3e1e4e}){const _0x5c2124=_0x56b91a,_0x21d81b=this[_0x5c2124(0x1d3)][_0x5c2124(0x201)],_0x3fc63b=await this[_0x5c2124(0x20b)](_0x380cea,_0x8dd051,_0x3e1e4e),_0x30cc95=await this[_0x5c2124(0x1f7)](this[_0x5c2124(0x1fd)],_0x3e1e4e),_0x826bc2=await this[_0x5c2124(0x1e1)](this[_0x5c2124(0x1db)],_0x3e1e4e),_0x9b0635={'messages':_0x3fc63b,..._0x826bc2},_0x3de2b0={'method':_0x5c2124(0x1e9),'headers':_0x30cc95,'body':JSON[_0x5c2124(0x1f5)](_0x9b0635),'signal':this[_0x5c2124(0x1f6)][_0x5c2124(0x1cb)]},_0x516326=await fetch(this[_0x5c2124(0x1fa)],_0x3de2b0);if(_0x516326['ok'])return _0x826bc2[_0x5c2124(0x1ee)]?await this[_0x5c2124(0x1e5)](_0x516326,_0x52bb7e):await this[_0x5c2124(0x1de)](_0x516326,_0x52bb7e),Promise[_0x5c2124(0x1cc)]();{const _0x4ce89c=await _0x516326[_0x5c2124(0x202)]();return _0x4ce89c[_0x5c2124(0x1f1)](_0x5c2124(0x1d2))?Promise[_0x5c2124(0x20a)](new _0x2785d5(_0x3a5dc7(_0x21d81b,_0x5c2124(0x1ff)))):_0x4ce89c[_0x5c2124(0x1f1)](_0x5c2124(0x205))?Promise[_0x5c2124(0x20a)](new _0x2785d5(_0x3a5dc7(_0x21d81b,_0x5c2124(0x1d4)))):Promise[_0x5c2124(0x20a)](new Error(_0x4ce89c));}}async[_0x56b91a(0x20b)](_0x14c7d5,_0x65d0f,_0x304997){const _0x3cde2c=_0x56b91a;let _0x2cd2f,_0x153db9;return _0x65d0f?(_0x2cd2f=_0x3cde2c(0x1f3),_0x153db9=_0x3cde2c(0x20c)+_0x14c7d5+_0x3cde2c(0x1e7)+_0x65d0f):(_0x2cd2f=_0x3cde2c(0x1e8),_0x153db9=_0x14c7d5),[{'role':_0x3cde2c(0x1f2),'content':_0x2cd2f},{'role':_0x3cde2c(0x1fe),'content':_0x153db9}];}async[_0x56b91a(0x1e5)](_0x199659,_0xd7272c){const _0x143b54=_0x56b91a,_0xf2d9fb=_0x199659[_0x143b54(0x1df)][_0x143b54(0x1d0)](),_0x35773a=new TextDecoder();let _0x19a5a6='',_0x26f122='',_0x32af53='',_0x46537f=!0x1;for(;!_0x46537f;){const {done:_0x41fb8c,value:_0x220802}=await _0xf2d9fb[_0x143b54(0x1e4)](),_0xdfb300=_0x19a5a6+_0x35773a[_0x143b54(0x1ef)](_0x220802);let _0x2d4d62='';_0x46537f=_0x41fb8c;try{_0x2d4d62=this[_0x143b54(0x1ce)](_0xdfb300),_0x19a5a6='';}catch{_0x19a5a6=_0xdfb300;continue;}_0x26f122+=_0x2d4d62,!_0x46537f&&this[_0x143b54(0x1f0)](_0x26f122)||_0x26f122&&(_0x32af53+=_0x26f122,_0x26f122='',_0xd7272c(_0x32af53));}return Promise[_0x143b54(0x1cc)]();}async[_0x56b91a(0x1de)](_0x367887,_0x56ef63){const _0x43633e=_0x56b91a;return _0x56ef63((await _0x367887[_0x43633e(0x1d1)]())[_0x43633e(0x1fc)][0x0][_0x43633e(0x1e0)][_0x43633e(0x203)]),Promise[_0x43633e(0x1cc)]();}[_0x56b91a(0x1f0)](_0x20ae0f){const _0x77566d=_0x56b91a,_0x330b12=_0x20ae0f[_0x77566d(0x1f9)]('<')[_0x77566d(0x1cd)]!==_0x20ae0f[_0x77566d(0x1f9)]('>')[_0x77566d(0x1cd)],_0x2b0393=_0x20ae0f[_0x77566d(0x1cd)]<0x1e;return _0x330b12&&_0x2b0393;}[_0x56b91a(0x1ce)](_0x1a70d5){const _0x1099d0=_0x56b91a;return _0x1a70d5[_0x1099d0(0x1f9)](/\n(?![^{]*\})/g)[_0x1099d0(0x1eb)](_0xeab149=>_0xeab149[_0x1099d0(0x1ec)](_0x1099d0(0x20e),''))[_0x1099d0(0x207)](_0x1b6778=>_0x1b6778&&_0x1b6778[_0x1099d0(0x1cd)]>0x0&&_0x1099d0(0x200)!==_0x1b6778)[_0x1099d0(0x1eb)](_0x5224da=>{const _0xd75017=_0x1099d0,{choices:_0x1208be}=JSON[_0xd75017(0x1d9)](_0x5224da);if(_0x1208be[0x0]?.[_0xd75017(0x208)]?.[_0xd75017(0x203)])return _0x1208be[0x0][_0xd75017(0x208)][_0xd75017(0x203)];})[_0x1099d0(0x207)](_0x5ee66d=>_0x5ee66d)[_0x1099d0(0x1f4)]('');}}
|
package/src/aiassistant.d.ts
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
11
|
-
import AIAssistantUI from './aiassistantui.js';
|
|
12
|
-
import AIAssistantEditing from './aiassistantediting.js';
|
|
11
|
+
import { AIAssistantUI } from './aiassistantui.js';
|
|
12
|
+
import { AIAssistantEditing } from './aiassistantediting.js';
|
|
13
13
|
/**
|
|
14
14
|
* AI assistant plugin that allows you to use external AI models to generate content or improve existing content.
|
|
15
15
|
*
|
|
@@ -18,7 +18,7 @@ import AIAssistantEditing from './aiassistantediting.js';
|
|
|
18
18
|
* * `aiAssistant:command:<commandId>` for the predefined commands, where `<commandId>` is the ID of the predefined command,
|
|
19
19
|
* * `aiAssistant:custom` for custom queries provided by the user.
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
21
|
+
export declare class AIAssistant extends Plugin {
|
|
22
22
|
/**
|
|
23
23
|
* @inheritDoc
|
|
24
24
|
*/
|
|
@@ -43,7 +43,7 @@ export default class AIAssistant extends Plugin {
|
|
|
43
43
|
/**
|
|
44
44
|
* A function that returns the list of the default AI commands definitions in the given localization context.
|
|
45
45
|
*/
|
|
46
|
-
export declare function
|
|
46
|
+
export declare function getDefaultAICommands(locale: Locale): Array<AIGroupDefinition>;
|
|
47
47
|
/**
|
|
48
48
|
* The configuration of the AI Assistant feature.
|
|
49
49
|
*
|
|
@@ -75,7 +75,7 @@ export interface AIAssistantConfig {
|
|
|
75
75
|
* You can avoid creating any groups by providing a list of command definitions directly. In this case,
|
|
76
76
|
* commands will render as a flat list in the user interface.
|
|
77
77
|
*
|
|
78
|
-
* The default configuration is as follows. It can be obtained through {@link ~
|
|
78
|
+
* The default configuration is as follows. It can be obtained through {@link ~getDefaultAICommands}:
|
|
79
79
|
*
|
|
80
80
|
* ```json
|
|
81
81
|
* [ {
|
|
@@ -228,7 +228,7 @@ export interface AIAssistantConfig {
|
|
|
228
228
|
* } ]
|
|
229
229
|
* ```
|
|
230
230
|
*/
|
|
231
|
-
commands?: Array<
|
|
231
|
+
commands?: Array<AIGroupDefinition> | Array<AICommandDefinition>;
|
|
232
232
|
/**
|
|
233
233
|
* A list of additional AI commands groups definitions that will extend
|
|
234
234
|
* {@link module:ai/aiassistant~AIAssistantConfig#commands default commands}.
|
|
@@ -277,11 +277,11 @@ export interface AIAssistantConfig {
|
|
|
277
277
|
* }
|
|
278
278
|
* ```
|
|
279
279
|
*/
|
|
280
|
-
extraCommandGroups?: Array<
|
|
280
|
+
extraCommandGroups?: Array<AIGroupDefinition>;
|
|
281
281
|
/**
|
|
282
282
|
* A list of ids of AI commands and ids of commnad groups to be removed.
|
|
283
283
|
*
|
|
284
|
-
* Learn more about {@link module:ai/aiassistant~
|
|
284
|
+
* Learn more about {@link module:ai/aiassistant~AICommandDefinition command definition and its id}.
|
|
285
285
|
*
|
|
286
286
|
* An example configuration:
|
|
287
287
|
*
|
|
@@ -342,7 +342,7 @@ export interface AIAssistantConfig {
|
|
|
342
342
|
*/
|
|
343
343
|
preserveComments?: boolean;
|
|
344
344
|
}
|
|
345
|
-
export type
|
|
345
|
+
export type AIGroupDefinition = {
|
|
346
346
|
/**
|
|
347
347
|
* The unique identifier of the group. It can be referenced while extending existing groups
|
|
348
348
|
* using {@link module:ai/aiassistant~AIAssistantConfig#extraCommandGroups} or removing command groups using
|
|
@@ -356,7 +356,7 @@ export type GroupDefinition = {
|
|
|
356
356
|
/**
|
|
357
357
|
* The array of command definitions that belong to the group.
|
|
358
358
|
*/
|
|
359
|
-
commands: Array<
|
|
359
|
+
commands: Array<AICommandDefinition>;
|
|
360
360
|
/**
|
|
361
361
|
* The order of the group on the list. The lower the number, the higher the group is displayed on the list.
|
|
362
362
|
* If not specified, the position of this group will be determined by the order of
|
|
@@ -368,7 +368,7 @@ export type GroupDefinition = {
|
|
|
368
368
|
*/
|
|
369
369
|
order?: number;
|
|
370
370
|
};
|
|
371
|
-
export type
|
|
371
|
+
export type AICommandDefinition = {
|
|
372
372
|
/**
|
|
373
373
|
* The unique identifier of the command. It can be referenced while removing commands. See
|
|
374
374
|
* {@link module:ai/aiassistant~AIAssistantConfig#removeCommands} to learn more.
|
package/src/aiassistant.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f8273=_0x1a63;(function(_0x20b64c,_0x44b357){const _0x75eec5=_0x1a63,_0x4b057c=_0x20b64c();while(!![]){try{const _0x233b7a=-parseInt(_0x75eec5(0xbd))/0x1*(-parseInt(_0x75eec5(0xa1))/0x2)+-parseInt(_0x75eec5(0xaf))/0x3*(-parseInt(_0x75eec5(0xe6))/0x4)+parseInt(_0x75eec5(0x10b))/0x5+-parseInt(_0x75eec5(0xe8))/0x6*(parseInt(_0x75eec5(0xb9))/0x7)+parseInt(_0x75eec5(0xf5))/0x8+-parseInt(_0x75eec5(0x109))/0x9*(parseInt(_0x75eec5(0x10d))/0xa)+parseInt(_0x75eec5(0xfc))/0xb;if(_0x233b7a===_0x44b357)break;else _0x4b057c['push'](_0x4b057c['shift']());}catch(_0x2f349b){_0x4b057c['push'](_0x4b057c['shift']());}}}(_0x2f4f,0x35ae1));import{Plugin as _0x5e3faa}from'ckeditor5/src/core.js';function _0x1a63(_0x42dde8,_0x546f44){const _0x2f4faa=_0x2f4f();return _0x1a63=function(_0x1a63d3,_0x4a1340){_0x1a63d3=_0x1a63d3-0x9e;let _0x54c820=_0x2f4faa[_0x1a63d3];return _0x54c820;},_0x1a63(_0x42dde8,_0x546f44);}import{AIAssistantUI as _0x11f37e}from'./aiassistantui.js';function _0x2f4f(){const _0x148c2d=['Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','makeLonger','translateFrench','Portuguese','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Hindi','1862560lZHtRP','requires','ai.aiAssistant.commands','translateHindi','get','Summarize','commands','510741RVqFXx','changeStyle','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','generate','translateGerman','translateEnglish','define','journalism','ai.aiAssistant.preserveComments','translate','forEach','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Professional','220770absGfl','Change\x20style','925755hsCObp','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','130QiocpN','simplifyLanguage','Legal','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','77758QNtphc','translateArabic','includes','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Business','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','improveWriting','legal','config','groupId','push','professional','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','translatePortuguese','341115TBreMH','Translate','changeTone','editOrReview','ai.aiAssistant.extraCommandGroups','Spanish','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Make\x20shorter','isPremiumPlugin','translateSpanish','609lWCMeM','AIAssistant','Arabic','confident','2nZFrik','English','filter','Improve\x20writing','Translate\x20the\x20content\x20to\x20French\x20language.','Translate\x20the\x20content\x20to\x20German\x20language.','Direct','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Simplify\x20language','Make\x20longer','French','Translate\x20the\x20content\x20to\x20English\x20language.','Casual','friendly','makeShorter','Translate\x20the\x20content\x20to\x20Spanish\x20language.','direct','business','concat','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Journalism','continue','German','Friendly','set','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Change\x20tone','summarize','locale','casual','Confident','Continue','Edit\x20or\x20review','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Generate\x20from\x20selection','Simplified\x20Chinese','poetic','pluginName','Poetic','isOfficialPlugin','4SSdIGB','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','8076rlSkec','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','translateChinese','ai.aiAssistant.removeCommands','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','find'];_0x2f4f=function(){return _0x148c2d;};return _0x2f4f();}import{AIAssistantEditing as _0x1580ba}from'./aiassistantediting.js';import{getTranslation as _0x103041}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x31c09a}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x5e3faa{static get[_0x2f8273(0xf6)](){return[_0x11f37e,_0x1580ba];}static get[_0x2f8273(0xe3)](){const _0x998f50=_0x2f8273;return _0x998f50(0xba);}static get[_0x2f8273(0xe5)](){return!0x0;}static get[_0x2f8273(0xb7)](){return!0x0;}constructor(_0x1396a8){const _0x487e28=_0x2f8273;super(_0x1396a8);const _0x177bab=_0x1396a8[_0x487e28(0xa9)],_0x250f0a=_0x1396a8[_0x487e28(0xda)];_0x177bab[_0x487e28(0x102)](_0x487e28(0x104),!0x0),_0x177bab[_0x487e28(0x102)](_0x487e28(0xf7),getDefaultAICommands(_0x250f0a)),_0x177bab[_0x487e28(0x102)](_0x487e28(0xb3),[]),_0x177bab[_0x487e28(0x102)](_0x487e28(0xeb),[]);let _0x1c7d8c=_0x31c09a(_0x177bab[_0x487e28(0xf9)](_0x487e28(0xf7)),_0x250f0a);const _0x111e81=_0x177bab[_0x487e28(0xf9)](_0x487e28(0xb3)),_0x38d4ea=_0x177bab[_0x487e28(0xf9)](_0x487e28(0xeb));_0x111e81[_0x487e28(0x106)](_0xd997c0=>{const _0x5dd53f=_0x487e28,_0x514ced=_0x1c7d8c[_0x5dd53f(0xed)](_0x34f9f8=>_0x34f9f8[_0x5dd53f(0xaa)]===_0xd997c0[_0x5dd53f(0xaa)]);_0x514ced?_0x514ced[_0x5dd53f(0xfb)]=_0x514ced[_0x5dd53f(0xfb)][_0x5dd53f(0xcf)](_0xd997c0[_0x5dd53f(0xfb)]):_0x1c7d8c[_0x5dd53f(0xab)](_0xd997c0);}),_0x1c7d8c=_0x1c7d8c[_0x487e28(0xbf)](_0x101b19=>!_0x38d4ea[_0x487e28(0xa3)](_0x101b19[_0x487e28(0xaa)])),_0x1c7d8c[_0x487e28(0x106)](_0x1be88e=>{const _0x3354aa=_0x487e28;_0x1be88e[_0x3354aa(0xfb)]=_0x1be88e[_0x3354aa(0xfb)][_0x3354aa(0xbf)](_0x22bfbf=>!_0x38d4ea[_0x3354aa(0xa3)](_0x22bfbf['id']));}),_0x177bab[_0x487e28(0xd5)](_0x487e28(0xf7),_0x1c7d8c);}}export function getDefaultAICommands(_0x10323a){const _0x3f6136=_0x2f8273;return[{'groupId':_0x3f6136(0xb2),'groupLabel':_0x103041(_0x10323a,_0x3f6136(0xde)),'commands':[{'id':_0x3f6136(0xa7),'label':_0x103041(_0x10323a,_0x3f6136(0xc0)),'prompt':_0x3f6136(0x107)},{'id':_0x3f6136(0xcb),'label':_0x103041(_0x10323a,_0x3f6136(0xb6)),'prompt':_0x3f6136(0xe9)},{'id':_0x3f6136(0xef),'label':_0x103041(_0x10323a,_0x3f6136(0xc6)),'prompt':_0x3f6136(0xf2)},{'id':_0x3f6136(0x9e),'label':_0x103041(_0x10323a,_0x3f6136(0xc5)),'prompt':_0x3f6136(0xe7)}]},{'groupId':_0x3f6136(0xff),'groupLabel':_0x103041(_0x10323a,_0x3f6136(0xe0)),'commands':[{'id':_0x3f6136(0xd9),'label':_0x103041(_0x10323a,_0x3f6136(0xfa)),'prompt':_0x3f6136(0xf3)},{'id':_0x3f6136(0xd2),'label':_0x103041(_0x10323a,_0x3f6136(0xdd)),'prompt':_0x3f6136(0xb5)}]},{'groupId':_0x3f6136(0xb1),'groupLabel':_0x103041(_0x10323a,_0x3f6136(0xd8)),'commands':[{'id':_0x3f6136(0xac),'label':_0x103041(_0x10323a,_0x3f6136(0x108)),'prompt':_0x3f6136(0xd0)},{'id':_0x3f6136(0xdb),'label':_0x103041(_0x10323a,_0x3f6136(0xc9)),'prompt':_0x3f6136(0xd7)},{'id':_0x3f6136(0xcd),'label':_0x103041(_0x10323a,_0x3f6136(0xc3)),'prompt':_0x3f6136(0xfe)},{'id':_0x3f6136(0xbc),'label':_0x103041(_0x10323a,_0x3f6136(0xdc)),'prompt':_0x3f6136(0xc4)},{'id':_0x3f6136(0xca),'label':_0x103041(_0x10323a,_0x3f6136(0xd4)),'prompt':_0x3f6136(0xee)}]},{'groupId':_0x3f6136(0xfd),'groupLabel':_0x103041(_0x10323a,_0x3f6136(0x10a)),'commands':[{'id':_0x3f6136(0xce),'label':_0x103041(_0x10323a,_0x3f6136(0xa5)),'prompt':_0x3f6136(0xa6)},{'id':_0x3f6136(0xa8),'label':_0x103041(_0x10323a,_0x3f6136(0x9f)),'prompt':_0x3f6136(0x10c)},{'id':_0x3f6136(0x103),'label':_0x103041(_0x10323a,_0x3f6136(0xd1)),'prompt':_0x3f6136(0xa4)},{'id':_0x3f6136(0xe2),'label':_0x103041(_0x10323a,_0x3f6136(0xe4)),'prompt':_0x3f6136(0xad)}]},{'groupId':_0x3f6136(0x105),'groupLabel':_0x103041(_0x10323a,_0x3f6136(0xb0)),'commands':[{'id':_0x3f6136(0x101),'label':_0x103041(_0x10323a,_0x3f6136(0xbe)),'prompt':_0x3f6136(0xc8)},{'id':_0x3f6136(0xb8),'label':_0x103041(_0x10323a,_0x3f6136(0xb4)),'prompt':_0x3f6136(0xcc)},{'id':_0x3f6136(0xae),'label':_0x103041(_0x10323a,_0x3f6136(0xf1)),'prompt':_0x3f6136(0xec)},{'id':_0x3f6136(0x100),'label':_0x103041(_0x10323a,_0x3f6136(0xd3)),'prompt':_0x3f6136(0xc2)},{'id':_0x3f6136(0xf0),'label':_0x103041(_0x10323a,_0x3f6136(0xc7)),'prompt':_0x3f6136(0xc1)},{'id':_0x3f6136(0xea),'label':_0x103041(_0x10323a,_0x3f6136(0xe1)),'prompt':_0x3f6136(0xa0)},{'id':_0x3f6136(0xf8),'label':_0x103041(_0x10323a,_0x3f6136(0xf4)),'prompt':_0x3f6136(0xdf)},{'id':_0x3f6136(0xa2),'label':_0x103041(_0x10323a,_0x3f6136(0xbb)),'prompt':_0x3f6136(0xd6)}]}];}
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
6
|
-
import { type
|
|
6
|
+
import { type ModelPosition } from 'ckeditor5/src/engine.js';
|
|
7
7
|
/**
|
|
8
8
|
* The AI assistant editing plugin.
|
|
9
9
|
*/
|
|
10
|
-
export
|
|
10
|
+
export declare class AIAssistantEditing extends Plugin {
|
|
11
11
|
/**
|
|
12
12
|
* @inheritDoc
|
|
13
13
|
*/
|
|
@@ -47,7 +47,7 @@ export default class AIAssistantEditing extends Plugin {
|
|
|
47
47
|
*
|
|
48
48
|
* If a position is not provided, the insertion will replace the visual selection marker.
|
|
49
49
|
*/
|
|
50
|
-
insertContent(html: string, position?:
|
|
50
|
+
insertContent(html: string, position?: ModelPosition): void;
|
|
51
51
|
/**
|
|
52
52
|
* Converts the HTML string into the model fragment and inserts it below the visual selection marker.
|
|
53
53
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x850d5d=_0x1cdf;(function(_0x28be5c,_0x534a16){const _0x28c812=_0x1cdf,_0x1c56de=_0x28be5c();while(!![]){try{const _0x26b0d1=-parseInt(_0x28c812(0x25a))/0x1+-parseInt(_0x28c812(0x25d))/0x2+parseInt(_0x28c812(0x241))/0x3*(parseInt(_0x28c812(0x230))/0x4)+parseInt(_0x28c812(0x20d))/0x5*(parseInt(_0x28c812(0x20c))/0x6)+-parseInt(_0x28c812(0x218))/0x7+-parseInt(_0x28c812(0x212))/0x8+-parseInt(_0x28c812(0x24f))/0x9*(-parseInt(_0x28c812(0x215))/0xa);if(_0x26b0d1===_0x534a16)break;else _0x1c56de['push'](_0x1c56de['shift']());}catch(_0x5530dd){_0x1c56de['push'](_0x1c56de['shift']());}}}(_0xd648,0xa9059));import{uid as _0x28f965}from'ckeditor5/src/utils.js';import{Plugin as _0x541640}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x5e7b00}from'ckeditor5/src/clipboard.js';function _0x1cdf(_0x1021cd,_0x31967e){const _0xd64866=_0xd648();return _0x1cdf=function(_0x1cdfd6,_0x449086){_0x1cdfd6=_0x1cdfd6-0x1f1;let _0x1d9067=_0xd64866[_0x1cdfd6];return _0x1d9067;},_0x1cdf(_0x1021cd,_0x31967e);}function _0xd648(){const _0x4e938a=['fromCharCode','createSelection','data','paste','findAncestor','6272064hIIsOj','DataTransfer','ck-fake-ai-selection_collapsed','markerToElement','insertContentBelow','isAtEnd','model','push','pluginName','pop','has','894698eagArU','lowest','isContent','1519862WZcNDN','createRange','getSelectedTableCells','getRanges','span','change','insertRows','ai-ui','addClass','createUIElement','markers','isCollapsed','canEditAt','href','element','getRows','for','ck-ai-assistant-ui_theme','getSelectedBlocks','afterInit','setData','once','markerToHighlight','editing','isOfficialPlugin','removeMarker','updateMarker','fire','insertContent','348XfqBPq','21005LdZhDs','getChild','table','hideFakeVisualSelection','last','2670656GZzkEB','schema','ai.useTheme','30ecCIuo','map','text/html','4150580DbWXAS','length','conversion','forEach','markerRange','getLastPosition','getRange','_pasteHTMLUsingClipboard','_prepareTableInsertBelowPosition','parse','getLastMatchingPosition','_getTableRowCountFromContent','_getAISelection','join','createPositionAfter','addMarker','showFakeVisualSelection','start','document','config','_createEmptyTableRows','first','init','plugins','232khqdzh','resultRange','end','ck-fake-ai-selection','from','AIAssistantEditing','getColumnIndexes','deleteContent','getFirstRange','getMarkersGroup','getRowIndexes','off','_getDefaultInsertBelowPosition','TableUtils','getChildren','get','createPositionAt','48588fjQxvi','editingDowncast','editor','selection','_resetContentOfSelectedTableCells','isPremiumPlugin','filter','setSelection','contentInsertion'];_0xd648=function(){return _0x4e938a;};return _0xd648();}import{DomEventData as _0x4b717d,DataTransfer as _0x359a6d}from'ckeditor5/src/engine.js';const w=globalThis[_0x850d5d(0x250)],f=_0x850d5d(0x1f6);export default class a extends _0x541640{static get[_0x850d5d(0x257)](){const _0xf5c377=_0x850d5d;return _0xf5c377(0x235);}static get[_0x850d5d(0x207)](){return!0x0;}static get[_0x850d5d(0x246)](){return!0x0;}[_0x850d5d(0x22e)](){const _0x23f75a=_0x850d5d,{editor:_0x134397}=this,_0x136851=[_0x23f75a(0x233)];_0x134397[_0x23f75a(0x22b)][_0x23f75a(0x23f)](_0x23f75a(0x214))&&_0x136851[_0x23f75a(0x256)](_0x23f75a(0x200)),_0x134397[_0x23f75a(0x21a)][_0x23f75a(0x1ff)](_0x23f75a(0x242))[_0x23f75a(0x205)]({'model':f,'view':{'classes':_0x136851,'priority':0xc}}),_0x134397[_0x23f75a(0x21a)][_0x23f75a(0x1ff)](_0x23f75a(0x242))[_0x23f75a(0x252)]({'model':f,'view':(_0x5e6f96,{writer:_0x1b7be8})=>{const _0x23b35b=_0x23f75a;if(!_0x5e6f96[_0x23b35b(0x21c)][_0x23b35b(0x1fa)])return null;const _0x454efe=_0x1b7be8[_0x23b35b(0x1f8)](_0x23b35b(0x1f3));return _0x1b7be8[_0x23b35b(0x1f7)]([_0x23b35b(0x233),_0x23b35b(0x251)],_0x454efe),_0x454efe;}});}[_0x850d5d(0x202)](){!async function(_0x56e907){const _0x4bae55=_0x16aa22([0x39,0x72,0x58,0x32,0x41,0x30,0x66,0x45,0x56,0x36,0x49,0x4d,0x79,0x73,0x6e,0x31,0x35,0x6d,0x7a,0x71,0x68,0x67,0x34,0x59,0x76,0x6f,0x4b,0x33,0x52,0x63,0x50,0x54,0x65,0x4c,0x43,0x51,0x77,0x78,0x47,0x74,0x37,0x55,0x62,0x4f,0x57,0x69,0x48,0x4a,0x6b,0x42,0x38,0x61,0x75,0x4e,0x44,0x6a,0x70,0x6c,0x5a,0x46,0x64,0x53]),_0xe7cc7c=0x13aad356,_0x513c4d=0x13adb8fe^_0xe7cc7c,_0x2f9417=window[_0x16aa22([0x44,0x61,0x74,0x65])][_0x16aa22([0x6e,0x6f,0x77])](),_0x3addde=_0x56e907[_0x16aa22([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xfdcb1b=new window[(_0x16aa22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdda3f4=>{_0x3addde[_0x16aa22([0x6f,0x6e,0x63,0x65])](_0x16aa22([0x72,0x65,0x61,0x64,0x79]),_0xdda3f4);}),_0x249675={[_0x16aa22([0x6b,0x74,0x79])]:_0x16aa22([0x45,0x43]),[_0x16aa22([0x75,0x73,0x65])]:_0x16aa22([0x73,0x69,0x67]),[_0x16aa22([0x63,0x72,0x76])]:_0x16aa22([0x50,0x2d,0x32,0x35,0x36]),[_0x16aa22([0x78])]:_0x16aa22([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x16aa22([0x79])]:_0x16aa22([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x16aa22([0x61,0x6c,0x67])]:_0x16aa22([0x45,0x53,0x32,0x35,0x36])},_0x347f7d=_0x3addde[_0x16aa22([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x16aa22([0x67,0x65,0x74])](_0x16aa22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x45c0ba(){let _0x1fd86b,_0x3b95fc=null,_0xf96e5a=null;try{if(_0x347f7d==_0x16aa22([0x47,0x50,0x4c]))return _0x16aa22([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1fd86b=_0x1f7578(),!_0x1fd86b)return _0x16aa22([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1fd86b[_0x16aa22([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf96e5a=_0x5b3230(_0x1fd86b[_0x16aa22([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1fd86b[_0x16aa22([0x6a,0x74,0x69])])),await _0x5716a3()?_0x2f1501()?_0x30afa4()?_0x16aa22([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x386553()?(_0x1fd86b[_0x16aa22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16aa22([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b95fc=_0xc4c711(_0x16aa22([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1fd86b[_0x16aa22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16aa22([0x74,0x72,0x69,0x61,0x6c])&&(_0x3b95fc=_0xc4c711(_0x16aa22([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1c9f99()):_0x16aa22([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x16aa22([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x16aa22([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x16aa22([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x30afa4(){const _0x2be63b=[_0x16aa22([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x16aa22([0x74,0x72,0x69,0x61,0x6c])][_0x16aa22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1fd86b[_0x16aa22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f9417/0x3e8:0xe10*_0x513c4d;return _0x1fd86b[_0x16aa22([0x65,0x78,0x70])]<_0x2be63b;}function _0x2f1501(){const _0x2a4d88=_0x1fd86b[_0x16aa22([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a4d88&&(!!_0x2a4d88[_0x16aa22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16aa22([0x2a]))||!!_0x2a4d88[_0x16aa22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16aa22([0x41,0x49])));}function _0x386553(){const _0x5a1355=_0x1cdf,_0x32a07=_0x1fd86b[_0x16aa22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x32a07||0x0==_0x32a07[_0x16aa22([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2ccbe8}=new URL(window[_0x16aa22([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5a1355(0x1fc)]);if(_0x32a07[_0x16aa22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ccbe8))return!0x0;const _0x4756df=_0x2ccbe8[_0x16aa22([0x73,0x70,0x6c,0x69,0x74])](_0x16aa22([0x2e]));return _0x32a07[_0x16aa22([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x31a91b=>_0x31a91b[_0x16aa22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16aa22([0x2a])))[_0x16aa22([0x6d,0x61,0x70])](_0x1484a5=>_0x1484a5[_0x16aa22([0x73,0x70,0x6c,0x69,0x74])](_0x16aa22([0x2e])))[_0x16aa22([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x291a64=>_0x291a64[_0x16aa22([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4756df[_0x16aa22([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x16aa22([0x6d,0x61,0x70])](_0x3c07a5=>Array(_0x4756df[_0x16aa22([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3c07a5[_0x16aa22([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x16aa22([0x66,0x69,0x6c,0x6c])](_0x3c07a5[0x0]===_0x16aa22([0x2a])?_0x16aa22([0x2a]):'')[_0x16aa22([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3c07a5))[_0x16aa22([0x73,0x6f,0x6d,0x65])](_0x47e7da=>_0x4756df[_0x16aa22([0x65,0x76,0x65,0x72,0x79])]((_0xcc0e5c,_0x544a5d)=>_0x47e7da[_0x544a5d]===_0xcc0e5c||_0x47e7da[_0x544a5d]===_0x16aa22([0x2a])));}function _0x1c9f99(){return _0x3b95fc&&_0xf96e5a?new window[(_0x16aa22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33221f,_0x96d0f8)=>{_0x3b95fc[_0x16aa22([0x74,0x68,0x65,0x6e])](_0x33221f,_0x96d0f8),_0xf96e5a[_0x16aa22([0x74,0x68,0x65,0x6e])](_0x1c52f7=>{_0x1c52f7!=_0x16aa22([0x56,0x61,0x6c,0x69,0x64])&&_0x33221f(_0x1c52f7);},_0x96d0f8);}):_0x3b95fc||_0xf96e5a||_0x16aa22([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5b3230(_0x3a7cc1,_0x2f5811){return new window[(_0x16aa22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46f607=>{if(_0x3b429f())return _0x46f607(_0x16aa22([0x56,0x61,0x6c,0x69,0x64]));_0x5e98d3(),_0x3addde[_0x16aa22([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x16aa22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x332b28=!0x1;const _0x32cb23=_0x28f965();function _0x1a5184(_0x3cddda){return!!_0x3cddda&&(typeof _0x3cddda===_0x16aa22([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3cddda===_0x16aa22([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3cddda[_0x16aa22([0x74,0x68,0x65,0x6e])]===_0x16aa22([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3cddda[_0x16aa22([0x63,0x61,0x74,0x63,0x68])]===_0x16aa22([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4d0d22(_0x55f23b){_0x494185(_0x55f23b)[_0x16aa22([0x74,0x68,0x65,0x6e])](_0x37e97e=>{if(!_0x37e97e||_0x37e97e[_0x16aa22([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x16aa22([0x6f,0x6b]))return _0x16aa22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xcbd27c(_0x84d4ba(_0x32cb23+_0x2f5811))!=_0x37e97e[_0x16aa22([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x16aa22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x16aa22([0x56,0x61,0x6c,0x69,0x64]);})[_0x16aa22([0x74,0x68,0x65,0x6e])](_0x9c485c=>(_0x5a562b(),_0x9c485c),()=>{const _0x291e49=_0x190939();return null==_0x291e49?(_0x5a562b(),_0x16aa22([0x56,0x61,0x6c,0x69,0x64])):_0x16aa22(_0x2f9417-_0x291e49>(0x37a65756^_0xe7cc7c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x16aa22([0x74,0x68,0x65,0x6e])](_0x46f607)[_0x16aa22([0x63,0x61,0x74,0x63,0x68])](()=>{_0x46f607(_0x16aa22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xde8a38=0x139c3dd6^_0xe7cc7c;function _0x5a562b(){const _0x1dc9e3=_0x16aa22([0x6c,0x6c,0x63,0x74,0x2d])+_0xcbd27c(_0x84d4ba(_0x3a7cc1)),_0x45cf31=_0x117635(_0xcbd27c(window[_0x16aa22([0x4d,0x61,0x74,0x68])][_0x16aa22([0x63,0x65,0x69,0x6c])](_0x2f9417/_0xde8a38)));window[_0x16aa22([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16aa22([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1dc9e3,_0x45cf31);}function _0x190939(){const _0x430ebc=_0x16aa22([0x6c,0x6c,0x63,0x74,0x2d])+_0xcbd27c(_0x84d4ba(_0x3a7cc1)),_0x2ea1df=window[_0x16aa22([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16aa22([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x430ebc);return _0x2ea1df?window[_0x16aa22([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x117635(_0x2ea1df),0x10)*_0xde8a38:null;}function _0x494185(_0x29b9e4){return new window[(_0x16aa22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x297ed5,_0x3406ff)=>{_0x29b9e4[_0x16aa22([0x74,0x68,0x65,0x6e])](_0x297ed5,_0x3406ff),window[_0x16aa22([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3406ff,0x13ab0796^_0xe7cc7c);});}}_0x3addde[_0x16aa22([0x6f,0x6e])](_0x16aa22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x8dabc1,_0x4fdaa2)=>{if(_0x4fdaa2[0x0]!=_0x3a7cc1)return _0x46f607(_0x16aa22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4fdaa2[0x1]={..._0x4fdaa2[0x1],[_0x16aa22([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x32cb23};},{[_0x16aa22([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16aa22([0x68,0x69,0x67,0x68])}),_0x3addde[_0x16aa22([0x6f,0x6e])](_0x16aa22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x16bb75=>{_0x1a5184(_0x16bb75[_0x16aa22([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x332b28=!0x0,_0x4d0d22(_0x16bb75[_0x16aa22([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x16aa22([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16aa22([0x6c,0x6f,0x77])}),_0xfdcb1b[_0x16aa22([0x74,0x68,0x65,0x6e])](()=>{_0x332b28||_0x46f607(_0x16aa22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3b429f(){return _0x3addde[_0x16aa22([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16aa22([0x76,0x69,0x65,0x77])][_0x16aa22([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x16aa22([0x61,0x75,0x74,0x6f]);}function _0x5e98d3(){_0x3addde[_0x16aa22([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16aa22([0x76,0x69,0x65,0x77])][_0x16aa22([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16aa22([0x61,0x75,0x74,0x6f]);}}function _0xc4c711(_0x28bbba){const _0x568650=[new window[(_0x16aa22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ca104=>setTimeout(_0x2ca104,0x13a3ed9a^_0xe7cc7c)),_0xfdcb1b[_0x16aa22([0x74,0x68,0x65,0x6e])](()=>new window[(_0x16aa22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x451c5e=>{let _0x3dc0d3=0x0;_0x3addde[_0x16aa22([0x6d,0x6f,0x64,0x65,0x6c])][_0x16aa22([0x6f,0x6e])](_0x16aa22([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xdf9d6d,_0x4c78c7)=>{_0x4c78c7[0x0][_0x16aa22([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3dc0d3++,_0x3dc0d3==(0x13aad2ae^_0xe7cc7c)&&(_0x451c5e(),_0xdf9d6d[_0x16aa22([0x6f,0x66,0x66])]());});}))];return window[_0x16aa22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16aa22([0x72,0x61,0x63,0x65])](_0x568650)[_0x16aa22([0x74,0x68,0x65,0x6e])](()=>_0x28bbba);}async function _0x462fd2(){await _0xfdcb1b,_0x3addde[_0x16aa22([0x6d,0x6f,0x64,0x65,0x6c])][_0x16aa22([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1e8098,_0x3addde[_0x16aa22([0x6d,0x6f,0x64,0x65,0x6c])][_0x16aa22([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1e8098,_0x3addde[_0x16aa22([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x16aa22([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1be315(_0x4ee361){const _0x5c4c72=_0x28a19c();_0x3addde[_0x5c4c72]=_0x16aa22([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ee361,_0x4ee361!=_0x16aa22([0x56,0x61,0x6c,0x69,0x64])&&_0x462fd2();}function _0x28a19c(){const _0x2761bc=window[_0x16aa22([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x16aa22([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x16aa22([0x6e,0x6f,0x77])]())[_0x16aa22([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x16aa22([0x2e]),'');let _0x1e0d33=_0x16aa22([0x72]);for(let _0x444a71=0x0;_0x444a71<_0x2761bc[_0x16aa22([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x444a71+=0x2){let _0x249cc1=window[_0x16aa22([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2761bc[_0x16aa22([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x444a71,_0x444a71+0x2));_0x249cc1>=_0x4bae55[_0x16aa22([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x249cc1-=_0x4bae55[_0x16aa22([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1e0d33+=_0x4bae55[_0x249cc1];}return _0x1e0d33;}function _0x1f7578(){const _0x1b14d1=_0x347f7d[_0x16aa22([0x73,0x70,0x6c,0x69,0x74])](_0x16aa22([0x2e]));if(0x3!=_0x1b14d1[_0x16aa22([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2fd765(_0x1b14d1[0x1]);function _0x2fd765(_0x2959e7){const _0x141a8b=_0x1be38c(_0x2959e7);return _0x141a8b&&_0xad569e()?_0x141a8b:null;function _0xad569e(){const _0x2e9100=_0x141a8b[_0x16aa22([0x6a,0x74,0x69])],_0x49b669=window[_0x16aa22([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e9100[_0x16aa22([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e9100[_0x16aa22([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x353d17={..._0x141a8b,[_0x16aa22([0x6a,0x74,0x69])]:_0x2e9100[_0x16aa22([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2e9100[_0x16aa22([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x353d17[_0x16aa22([0x76,0x63])],_0x84d4ba(_0x353d17)==_0x49b669;}}}async function _0x5716a3(){let _0x5ae954=!0x0;try{const _0x11f8ca=_0x347f7d[_0x16aa22([0x73,0x70,0x6c,0x69,0x74])](_0x16aa22([0x2e])),[_0x3a9b5e,_0x3a8001,_0x54f8de]=_0x11f8ca;return _0x49de7d(_0x3a9b5e),await _0x415446(_0x3a9b5e,_0x3a8001,_0x54f8de),_0x5ae954;}catch{return!0x1;}function _0x49de7d(_0x48b880){const _0x13b643=_0x1be38c(_0x48b880);_0x13b643&&_0x13b643[_0x16aa22([0x61,0x6c,0x67])]==_0x16aa22([0x45,0x53,0x32,0x35,0x36])||(_0x5ae954=!0x1);}async function _0x415446(_0x48dcf5,_0x14727e,_0x4f2d04){const _0x343190=window[_0x16aa22([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x16aa22([0x66,0x72,0x6f,0x6d])](_0x34fee4(_0x4f2d04),_0x485cb9=>_0x485cb9[_0x16aa22([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x66dc01=new window[(_0x16aa22([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x16aa22([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x48dcf5+_0x16aa22([0x2e])+_0x14727e),_0x1ac18c=window[_0x16aa22([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x16aa22([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1ac18c)return;const _0x14c255=await _0x1ac18c[_0x16aa22([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x16aa22([0x6a,0x77,0x6b]),_0x249675,{[_0x16aa22([0x6e,0x61,0x6d,0x65])]:_0x16aa22([0x45,0x43,0x44,0x53,0x41]),[_0x16aa22([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x16aa22([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x16aa22([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1ac18c[_0x16aa22([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x16aa22([0x6e,0x61,0x6d,0x65])]:_0x16aa22([0x45,0x43,0x44,0x53,0x41]),[_0x16aa22([0x68,0x61,0x73,0x68])]:{[_0x16aa22([0x6e,0x61,0x6d,0x65])]:_0x16aa22([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x14c255,_0x343190,_0x66dc01)||(_0x5ae954=!0x1);}}function _0x1be38c(_0x133d77){return _0x133d77[_0x16aa22([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x16aa22([0x65,0x79]))?JSON[_0x16aa22([0x70,0x61,0x72,0x73,0x65])](_0x34fee4(_0x133d77)):null;}function _0x34fee4(_0x258a16){return window[_0x16aa22([0x61,0x74,0x6f,0x62])](_0x258a16[_0x16aa22([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x16aa22([0x2b]))[_0x16aa22([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x16aa22([0x2f])));}function _0x84d4ba(_0xe8e975){let _0x2322b9=0x1505;function _0x28af3a(_0x440690){for(let _0x87e09=0x0;_0x87e09<_0x440690[_0x16aa22([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x87e09++){const _0x278db3=_0x440690[_0x16aa22([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x87e09);_0x2322b9=(_0x2322b9<<0x5)+_0x2322b9+_0x278db3,_0x2322b9&=_0x2322b9;}}function _0x47779f(_0x1e1cd1){Array[_0x16aa22([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1e1cd1)?_0x1e1cd1[_0x16aa22([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x47779f):_0x1e1cd1&&typeof _0x1e1cd1==_0x16aa22([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x16aa22([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1e1cd1)[_0x16aa22([0x73,0x6f,0x72,0x74])]()[_0x16aa22([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x29719d,_0x4c65c2])=>{_0x28af3a(_0x29719d),_0x47779f(_0x4c65c2);}):_0x28af3a(window[_0x16aa22([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1e1cd1));}return _0x47779f(_0xe8e975),_0x2322b9>>>0x0;}function _0xcbd27c(_0x1dfa51){return _0x1dfa51[_0x16aa22([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x16aa22([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x16aa22([0x30]));}function _0x117635(_0x24bd90){return _0x24bd90[_0x16aa22([0x73,0x70,0x6c,0x69,0x74])]('')[_0x16aa22([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x16aa22([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e8098(){}function _0x16aa22(_0xf0f12c){const _0x355a27=_0x1cdf;return _0xf0f12c[_0x355a27(0x216)](_0x4c03cf=>String[_0x355a27(0x24a)](_0x4c03cf))[_0x355a27(0x225)]('');}_0x1be315(await _0x45c0ba());}(this);}[_0x850d5d(0x228)](){const _0xd1dfb9=_0x850d5d,_0x465c7b=this[_0xd1dfb9(0x243)][_0xd1dfb9(0x255)];_0x465c7b[_0xd1dfb9(0x1f4)](_0x477604=>{const _0x35e578=_0xd1dfb9,_0x4cf506=_0x465c7b[_0x35e578(0x22a)][_0x35e578(0x244)][_0x35e578(0x1f2)]();let _0x20dd07=0x0;for(const _0x3c0f4f of _0x4cf506){const _0x208287=f+':'+_0x20dd07;if(_0x465c7b[_0x35e578(0x1f9)][_0x35e578(0x259)](_0x208287))_0x477604[_0x35e578(0x209)](_0x208287,{'range':_0x3c0f4f});else{if(_0x3c0f4f[_0x35e578(0x229)][_0x35e578(0x254)]){const _0x444be8=_0x3c0f4f[_0x35e578(0x229)][_0x35e578(0x222)](({item:_0x2772a9})=>!_0x465c7b[_0x35e578(0x213)][_0x35e578(0x25c)](_0x2772a9),{'boundaries':_0x3c0f4f});_0x477604[_0x35e578(0x227)](_0x208287,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x477604[_0x35e578(0x25e)](_0x444be8,_0x3c0f4f[_0x35e578(0x232)])});}else _0x477604[_0x35e578(0x227)](_0x208287,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x3c0f4f});}_0x20dd07++;}});}[_0x850d5d(0x210)](){const _0x3dcbc4=_0x850d5d,_0x28cc5e=this[_0x3dcbc4(0x243)][_0x3dcbc4(0x255)],_0x42ac21=Array[_0x3dcbc4(0x234)](this[_0x3dcbc4(0x243)][_0x3dcbc4(0x255)][_0x3dcbc4(0x1f9)][_0x3dcbc4(0x239)](f));_0x42ac21[_0x3dcbc4(0x219)]&&_0x28cc5e[_0x3dcbc4(0x1f4)](_0x5c6129=>{const _0x15eef7=_0x3dcbc4;_0x42ac21[_0x15eef7(0x21b)](_0x129ade=>{const _0x426d39=_0x15eef7;_0x5c6129[_0x426d39(0x208)](_0x129ade);});});}[_0x850d5d(0x20b)](_0x170348,_0x7cc6d7){const _0x10a786=_0x850d5d,_0x38ef86=this[_0x10a786(0x224)](),_0x4974c9=_0x7cc6d7||_0x38ef86[_0x10a786(0x238)]();this[_0x10a786(0x243)][_0x10a786(0x255)][_0x10a786(0x1fb)](_0x4974c9)&&this[_0x10a786(0x243)][_0x10a786(0x255)][_0x10a786(0x1f4)](_0x4c1f20=>{const _0x79eb24=_0x10a786;this[_0x79eb24(0x210)](),_0x7cc6d7||this[_0x79eb24(0x245)](_0x4c1f20,_0x38ef86),this[_0x79eb24(0x21f)]({'insertAt':_0x4974c9,'writer':_0x4c1f20,'html':_0x170348});});}[_0x850d5d(0x253)](_0x4cd295){const _0x1839d0=_0x850d5d,{model:_0x487dbb}=this[_0x1839d0(0x243)],_0x478a48=this[_0x1839d0(0x224)]();_0x487dbb[_0x1839d0(0x1f4)](()=>{const _0x22161d=_0x1839d0,_0x10d93a=this[_0x22161d(0x220)](_0x4cd295,_0x478a48)||this[_0x22161d(0x23c)](_0x478a48);this[_0x22161d(0x20b)](_0x4cd295,_0x10d93a);});}[_0x850d5d(0x224)](){const _0x3b66c6=_0x850d5d,_0x573cc2=this[_0x3b66c6(0x243)][_0x3b66c6(0x255)],_0x4089a3=Array[_0x3b66c6(0x234)](_0x573cc2[_0x3b66c6(0x1f9)][_0x3b66c6(0x239)](f))[_0x3b66c6(0x216)](_0x369f73=>_0x369f73[_0x3b66c6(0x21e)]());return _0x573cc2[_0x3b66c6(0x24b)](_0x4089a3);}[_0x850d5d(0x21f)]({writer:_0x2e756d,html:_0x49aaa7,insertAt:_0x405258}){const _0x516534=_0x850d5d,{view:_0x636d93}=this[_0x516534(0x243)][_0x516534(0x206)],_0x32cce9=this[_0x516534(0x243)][_0x516534(0x22f)][_0x516534(0x23f)](_0x5e7b00),_0x3e847e=new w();_0x3e847e[_0x516534(0x203)](_0x516534(0x217),_0x49aaa7);const _0x3a22e0=new ClipboardEvent(_0x516534(0x24d),{'clipboardData':_0x3e847e}),_0x3d0de1=new _0x4b717d(_0x636d93,_0x3a22e0,{'dataTransfer':new _0x359a6d(_0x3e847e)});_0x2e756d[_0x516534(0x248)](_0x405258);const _0x5f5e06=(_0x5dde2a,_0x39e2c7)=>{const _0x55bb00=_0x516534;_0x39e2c7[_0x55bb00(0x231)]&&_0x2e756d[_0x55bb00(0x248)](_0x39e2c7[_0x55bb00(0x231)]);};_0x32cce9[_0x516534(0x204)](_0x516534(0x249),_0x5f5e06,{'priority':_0x516534(0x25b)}),_0x636d93[_0x516534(0x22a)][_0x516534(0x20a)](_0x516534(0x24d),_0x3d0de1),_0x32cce9[_0x516534(0x23b)](_0x516534(0x249),_0x5f5e06);}[_0x850d5d(0x23c)](_0x569ad0){const _0x6409dd=_0x850d5d,{model:_0x9be4eb}=this[_0x6409dd(0x243)],_0x5794c6=Array[_0x6409dd(0x234)](_0x569ad0[_0x6409dd(0x201)]());return _0x5794c6[_0x6409dd(0x219)]?_0x9be4eb[_0x6409dd(0x226)](_0x5794c6[_0x6409dd(0x258)]()):_0x569ad0[_0x6409dd(0x21d)]();}[_0x850d5d(0x220)](_0x5e4648,_0x38ba29){const _0x37c9f5=_0x850d5d,{model:_0x3d7f6c,plugins:_0x22a92d}=this[_0x37c9f5(0x243)];if(_0x22a92d[_0x37c9f5(0x259)](_0x37c9f5(0x23d))){const _0x285fcd=_0x22a92d[_0x37c9f5(0x23f)](_0x37c9f5(0x23d))[_0x37c9f5(0x1f1)](_0x38ba29);if(_0x285fcd[_0x37c9f5(0x219)]){const _0x5bb4ac=this[_0x37c9f5(0x223)](_0x5e4648),_0x1088a7=this[_0x37c9f5(0x22c)](_0x285fcd,_0x5bb4ac);return _0x3d7f6c[_0x37c9f5(0x240)](_0x1088a7,0x0);}}return null;}[_0x850d5d(0x223)](_0xfe0517){const _0x16ae21=_0x850d5d,_0x3a0d8f=this[_0x16ae21(0x243)][_0x16ae21(0x22f)][_0x16ae21(0x23f)](_0x16ae21(0x23d)),_0x31ed0b=this[_0x16ae21(0x243)][_0x16ae21(0x24c)][_0x16ae21(0x221)](_0xfe0517),_0x23e9b4=Array[_0x16ae21(0x234)](_0x31ed0b[_0x16ae21(0x23e)]())[_0x16ae21(0x247)](_0x507716=>_0x507716['is'](_0x16ae21(0x1fd),_0x16ae21(0x20f)));let _0x44a5b2=0x0;return _0x23e9b4[_0x16ae21(0x21b)](_0x1075a6=>{const _0x43e756=_0x16ae21;_0x44a5b2+=_0x3a0d8f[_0x43e756(0x1fe)](_0x1075a6);}),_0x44a5b2;}[_0x850d5d(0x22c)](_0x1191e0,_0x3689ac){const _0x1d0c74=_0x850d5d,_0xc613b4=this[_0x1d0c74(0x243)][_0x1d0c74(0x22f)][_0x1d0c74(0x23f)](_0x1d0c74(0x23d)),_0x131236=_0xc613b4[_0x1d0c74(0x23a)](_0x1191e0),_0x3ef49b=_0xc613b4[_0x1d0c74(0x236)](_0x1191e0),_0x1670c3=_0x131236[_0x1d0c74(0x211)]+0x1,_0x1c9f7e=_0x3ef49b[_0x1d0c74(0x22d)],_0x31b3bc=_0x1191e0[0x0][_0x1d0c74(0x24e)](_0x1d0c74(0x20f));for(let _0x4b0624=0x0;_0x4b0624<_0x3689ac;_0x4b0624++)_0xc613b4[_0x1d0c74(0x1f5)](_0x31b3bc,{'at':_0x1670c3});return _0x31b3bc[_0x1d0c74(0x20e)](_0x1670c3)[_0x1d0c74(0x20e)](_0x1c9f7e);}[_0x850d5d(0x245)](_0x9f142f,_0x52c4fd){const _0x4e6f3e=_0x850d5d,{plugins:_0x3d5e62}=this[_0x4e6f3e(0x243)],{model:_0x47f95c}=_0x9f142f;if(!_0x3d5e62[_0x4e6f3e(0x259)](_0x4e6f3e(0x23d)))return;_0x3d5e62[_0x4e6f3e(0x23f)](_0x4e6f3e(0x23d))[_0x4e6f3e(0x1f1)](_0x52c4fd)[_0x4e6f3e(0x219)]&&_0x47f95c[_0x4e6f3e(0x237)](_0x52c4fd);}}
|
|
23
|
+
const _0x4a67de=_0x28e5;(function(_0x35e990,_0xeb8827){const _0xcf39ab=_0x28e5,_0x5539cc=_0x35e990();while(!![]){try{const _0x2695f1=parseInt(_0xcf39ab(0xb7))/0x1+-parseInt(_0xcf39ab(0xf4))/0x2*(parseInt(_0xcf39ab(0xde))/0x3)+parseInt(_0xcf39ab(0xd1))/0x4+parseInt(_0xcf39ab(0xd4))/0x5+parseInt(_0xcf39ab(0xe9))/0x6+parseInt(_0xcf39ab(0xee))/0x7+parseInt(_0xcf39ab(0x9a))/0x8*(-parseInt(_0xcf39ab(0xa8))/0x9);if(_0x2695f1===_0xeb8827)break;else _0x5539cc['push'](_0x5539cc['shift']());}catch(_0x38720d){_0x5539cc['push'](_0x5539cc['shift']());}}}(_0xe505,0x28755));function _0x28e5(_0x389cd6,_0x4d4ff8){const _0xe505b9=_0xe505();return _0x28e5=function(_0x28e5b3,_0x358167){_0x28e5b3=_0x28e5b3-0x90;let _0xf2969c=_0xe505b9[_0x28e5b3];return _0xf2969c;},_0x28e5(_0x389cd6,_0x4d4ff8);}import{uid as _0x3cb08f}from'ckeditor5/src/utils.js';import{Plugin as _0x25ed37}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x52fa95}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x4b2d08,ViewDataTransfer as _0x5d5c6b}from'ckeditor5/src/engine.js';const l=globalThis[_0x4a67de(0xfb)],w=_0x4a67de(0xaa);export class AIAssistantEditing extends _0x25ed37{static get[_0x4a67de(0x9e)](){const _0x9ece3a=_0x4a67de;return _0x9ece3a(0xdc);}static get[_0x4a67de(0xbf)](){return!0x0;}static get[_0x4a67de(0xe3)](){return!0x0;}[_0x4a67de(0xc2)](){const _0x18ff11=_0x4a67de,{editor:_0x34f6e6}=this,_0x2234b1=[_0x18ff11(0xcb)];_0x34f6e6[_0x18ff11(0xe5)][_0x18ff11(0xa3)](_0x18ff11(0xeb))&&_0x2234b1[_0x18ff11(0xa6)](_0x18ff11(0xd2)),_0x34f6e6[_0x18ff11(0xf1)][_0x18ff11(0xd0)](_0x18ff11(0x93))[_0x18ff11(0x94)]({'model':w,'view':{'classes':_0x2234b1,'priority':0xc}}),_0x34f6e6[_0x18ff11(0xf1)][_0x18ff11(0xd0)](_0x18ff11(0x93))[_0x18ff11(0xb2)]({'model':w,'view':(_0x4c265a,{writer:_0x5c36aa})=>{const _0x1b5297=_0x18ff11;if(!_0x4c265a[_0x1b5297(0xa9)][_0x1b5297(0xc1)])return null;const _0x2fa455=_0x5c36aa[_0x1b5297(0xce)](_0x1b5297(0xc7));return _0x5c36aa[_0x1b5297(0xb0)]([_0x1b5297(0xcb),_0x1b5297(0xe6)],_0x2fa455),_0x2fa455;}});}[_0x4a67de(0xea)](){!async function(_0x174060){const _0x4b044b=_0x463cb9([0x53,0x65,0x57,0x5a,0x6f,0x78,0x49,0x4c,0x50,0x35,0x74,0x42,0x68,0x32,0x31,0x58,0x6d,0x79,0x4d,0x6c,0x30,0x4e,0x52,0x64,0x33,0x54,0x51,0x48,0x45,0x73,0x6b,0x72,0x4a,0x76,0x43,0x77,0x47,0x71,0x55,0x61,0x63,0x56,0x44,0x4f,0x4b,0x46,0x37,0x59,0x62,0x67,0x70,0x34,0x38,0x75,0x66,0x36,0x6a,0x7a,0x41,0x6e,0x39,0x69]),_0x337376=0x23b6d058,_0x445b86=0x23b1bc08^_0x337376,_0x3c5ace=window[_0x463cb9([0x44,0x61,0x74,0x65])][_0x463cb9([0x6e,0x6f,0x77])](),_0x131e9e=_0x174060[_0x463cb9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c7514=new window[(_0x463cb9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1070f5=>{_0x131e9e[_0x463cb9([0x6f,0x6e,0x63,0x65])](_0x463cb9([0x72,0x65,0x61,0x64,0x79]),_0x1070f5);}),_0x1f9a52={[_0x463cb9([0x6b,0x74,0x79])]:_0x463cb9([0x45,0x43]),[_0x463cb9([0x75,0x73,0x65])]:_0x463cb9([0x73,0x69,0x67]),[_0x463cb9([0x63,0x72,0x76])]:_0x463cb9([0x50,0x2d,0x32,0x35,0x36]),[_0x463cb9([0x78])]:_0x463cb9([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x463cb9([0x79])]:_0x463cb9([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x463cb9([0x61,0x6c,0x67])]:_0x463cb9([0x45,0x53,0x32,0x35,0x36])},_0x3f6d89=_0x131e9e[_0x463cb9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x463cb9([0x67,0x65,0x74])](_0x463cb9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x32a137(){let _0x4cf584,_0x5528ec=null,_0x25c54c=null;try{if(_0x3f6d89==_0x463cb9([0x47,0x50,0x4c]))return _0x463cb9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4cf584=_0x19899a(),!_0x4cf584)return _0x463cb9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4cf584[_0x463cb9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x25c54c=_0x33d544(_0x4cf584[_0x463cb9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4cf584[_0x463cb9([0x6a,0x74,0x69])])),await _0x22be9c()?_0x523aff()?_0x50cbb4()?_0x463cb9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x236893()?(_0x4cf584[_0x463cb9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x463cb9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5528ec=_0x42ba44(_0x463cb9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4cf584[_0x463cb9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x463cb9([0x74,0x72,0x69,0x61,0x6c])&&(_0x5528ec=_0x42ba44(_0x463cb9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xd498e3()):_0x463cb9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x463cb9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x463cb9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x463cb9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x50cbb4(){const _0x81a9d0=[_0x463cb9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x463cb9([0x74,0x72,0x69,0x61,0x6c])][_0x463cb9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cf584[_0x463cb9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c5ace/0x3e8:0xe10*_0x445b86;return _0x4cf584[_0x463cb9([0x65,0x78,0x70])]<_0x81a9d0;}function _0x523aff(){const _0x16203d=_0x4cf584[_0x463cb9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x16203d&&(!!_0x16203d[_0x463cb9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x463cb9([0x2a]))||!!_0x16203d[_0x463cb9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x463cb9([0x41,0x49])));}function _0x236893(){const _0x541501=_0x28e5,_0x435bff=_0x4cf584[_0x463cb9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x435bff||0x0==_0x435bff[_0x463cb9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3c2a57}=new URL(window[_0x463cb9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x541501(0xf8)]);if(_0x435bff[_0x463cb9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c2a57))return!0x0;const _0x4e73d4=_0x3c2a57[_0x463cb9([0x73,0x70,0x6c,0x69,0x74])](_0x463cb9([0x2e]));return _0x435bff[_0x463cb9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x80c815=>_0x80c815[_0x463cb9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x463cb9([0x2a])))[_0x463cb9([0x6d,0x61,0x70])](_0x11c049=>_0x11c049[_0x463cb9([0x73,0x70,0x6c,0x69,0x74])](_0x463cb9([0x2e])))[_0x463cb9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x49af7b=>_0x49af7b[_0x463cb9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4e73d4[_0x463cb9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x463cb9([0x6d,0x61,0x70])](_0x38a60d=>Array(_0x4e73d4[_0x463cb9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x38a60d[_0x463cb9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x463cb9([0x66,0x69,0x6c,0x6c])](_0x38a60d[0x0]===_0x463cb9([0x2a])?_0x463cb9([0x2a]):'')[_0x463cb9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x38a60d))[_0x463cb9([0x73,0x6f,0x6d,0x65])](_0x2504e3=>_0x4e73d4[_0x463cb9([0x65,0x76,0x65,0x72,0x79])]((_0x2413dd,_0x5db65b)=>_0x2504e3[_0x5db65b]===_0x2413dd||_0x2504e3[_0x5db65b]===_0x463cb9([0x2a])));}function _0xd498e3(){return _0x5528ec&&_0x25c54c?new window[(_0x463cb9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x379acc,_0x46fe54)=>{_0x5528ec[_0x463cb9([0x74,0x68,0x65,0x6e])](_0x379acc,_0x46fe54),_0x25c54c[_0x463cb9([0x74,0x68,0x65,0x6e])](_0x16cc97=>{_0x16cc97!=_0x463cb9([0x56,0x61,0x6c,0x69,0x64])&&_0x379acc(_0x16cc97);},_0x46fe54);}):_0x5528ec||_0x25c54c||_0x463cb9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x33d544(_0x5db030,_0x272cf4){return new window[(_0x463cb9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12abf7=>{if(_0x554c53())return _0x12abf7(_0x463cb9([0x56,0x61,0x6c,0x69,0x64]));_0x2da856(),_0x131e9e[_0x463cb9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x463cb9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4caf97=!0x1;const _0x1815eb=_0x3cb08f();function _0x202cc6(_0x193af1){return!!_0x193af1&&(typeof _0x193af1===_0x463cb9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x193af1===_0x463cb9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x193af1[_0x463cb9([0x74,0x68,0x65,0x6e])]===_0x463cb9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x193af1[_0x463cb9([0x63,0x61,0x74,0x63,0x68])]===_0x463cb9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1484c2(_0xb3e42d){_0x3a1882(_0xb3e42d)[_0x463cb9([0x74,0x68,0x65,0x6e])](_0x491dc6=>{if(!_0x491dc6||_0x491dc6[_0x463cb9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x463cb9([0x6f,0x6b]))return _0x463cb9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x441a11(_0x4cec90(_0x1815eb+_0x272cf4))!=_0x491dc6[_0x463cb9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x463cb9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x463cb9([0x56,0x61,0x6c,0x69,0x64]);})[_0x463cb9([0x74,0x68,0x65,0x6e])](_0x497da1=>(_0xfe5514(),_0x497da1),()=>{const _0x375afe=_0x3bc3d8();return null==_0x375afe?(_0xfe5514(),_0x463cb9([0x56,0x61,0x6c,0x69,0x64])):_0x463cb9(_0x3c5ace-_0x375afe>(0x7ba5458^_0x337376)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x463cb9([0x74,0x68,0x65,0x6e])](_0x12abf7)[_0x463cb9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x12abf7(_0x463cb9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x30b578=0x23803ed8^_0x337376;function _0xfe5514(){const _0x43b41b=_0x463cb9([0x6c,0x6c,0x63,0x74,0x2d])+_0x441a11(_0x4cec90(_0x5db030)),_0x660ffa=_0x351c72(_0x441a11(window[_0x463cb9([0x4d,0x61,0x74,0x68])][_0x463cb9([0x63,0x65,0x69,0x6c])](_0x3c5ace/_0x30b578)));window[_0x463cb9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x463cb9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43b41b,_0x660ffa);}function _0x3bc3d8(){const _0x384cb4=_0x463cb9([0x6c,0x6c,0x63,0x74,0x2d])+_0x441a11(_0x4cec90(_0x5db030)),_0x2f1b7b=window[_0x463cb9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x463cb9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x384cb4);return _0x2f1b7b?window[_0x463cb9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x351c72(_0x2f1b7b),0x10)*_0x30b578:null;}function _0x3a1882(_0x3e221e){return new window[(_0x463cb9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30309f,_0x2b81ea)=>{_0x3e221e[_0x463cb9([0x74,0x68,0x65,0x6e])](_0x30309f,_0x2b81ea),window[_0x463cb9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2b81ea,0x23b70498^_0x337376);});}}_0x131e9e[_0x463cb9([0x6f,0x6e])](_0x463cb9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x50355f,_0x3c2ea2)=>{if(_0x3c2ea2[0x0]!=_0x5db030)return _0x12abf7(_0x463cb9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3c2ea2[0x1]={..._0x3c2ea2[0x1],[_0x463cb9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1815eb};},{[_0x463cb9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x463cb9([0x68,0x69,0x67,0x68])}),_0x131e9e[_0x463cb9([0x6f,0x6e])](_0x463cb9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x51ec06=>{_0x202cc6(_0x51ec06[_0x463cb9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4caf97=!0x0,_0x1484c2(_0x51ec06[_0x463cb9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x463cb9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x463cb9([0x6c,0x6f,0x77])}),_0x1c7514[_0x463cb9([0x74,0x68,0x65,0x6e])](()=>{_0x4caf97||_0x12abf7(_0x463cb9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x554c53(){return _0x131e9e[_0x463cb9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x463cb9([0x76,0x69,0x65,0x77])][_0x463cb9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x463cb9([0x61,0x75,0x74,0x6f]);}function _0x2da856(){_0x131e9e[_0x463cb9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x463cb9([0x76,0x69,0x65,0x77])][_0x463cb9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x463cb9([0x61,0x75,0x74,0x6f]);}}function _0x42ba44(_0x4c66c5){const _0x1ff8ac=[new window[(_0x463cb9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a1650=>setTimeout(_0x4a1650,0x23bfee94^_0x337376)),_0x1c7514[_0x463cb9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x463cb9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x361a6c=>{let _0x5a53e6=0x0;_0x131e9e[_0x463cb9([0x6d,0x6f,0x64,0x65,0x6c])][_0x463cb9([0x6f,0x6e])](_0x463cb9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5b104a,_0x3ca43b)=>{_0x3ca43b[0x0][_0x463cb9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5a53e6++,_0x5a53e6==(0x23b6d1a0^_0x337376)&&(_0x361a6c(),_0x5b104a[_0x463cb9([0x6f,0x66,0x66])]());});}))];return window[_0x463cb9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x463cb9([0x72,0x61,0x63,0x65])](_0x1ff8ac)[_0x463cb9([0x74,0x68,0x65,0x6e])](()=>_0x4c66c5);}async function _0x170f58(){await _0x1c7514,_0x131e9e[_0x463cb9([0x6d,0x6f,0x64,0x65,0x6c])][_0x463cb9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d34ea,_0x131e9e[_0x463cb9([0x6d,0x6f,0x64,0x65,0x6c])][_0x463cb9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d34ea,_0x131e9e[_0x463cb9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x463cb9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x28bd5f(_0x5a3db7){const _0x29832a=_0x5cf739();_0x131e9e[_0x29832a]=_0x463cb9([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5a3db7,_0x5a3db7!=_0x463cb9([0x56,0x61,0x6c,0x69,0x64])&&_0x170f58();}function _0x5cf739(){const _0x3ced2=window[_0x463cb9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x463cb9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x463cb9([0x6e,0x6f,0x77])]())[_0x463cb9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x463cb9([0x2e]),'');let _0x28b096=_0x463cb9([0x53]);for(let _0x31f2c8=0x0;_0x31f2c8<_0x3ced2[_0x463cb9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31f2c8+=0x2){let _0x262371=window[_0x463cb9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ced2[_0x463cb9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31f2c8,_0x31f2c8+0x2));_0x262371>=_0x4b044b[_0x463cb9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x262371-=_0x4b044b[_0x463cb9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x28b096+=_0x4b044b[_0x262371];}return _0x28b096;}function _0x19899a(){const _0x5c62f1=_0x3f6d89[_0x463cb9([0x73,0x70,0x6c,0x69,0x74])](_0x463cb9([0x2e]));if(0x3!=_0x5c62f1[_0x463cb9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4969d0(_0x5c62f1[0x1]);function _0x4969d0(_0x3d0412){const _0x12f9b9=_0xdfc50(_0x3d0412);return _0x12f9b9&&_0x3c0206()?_0x12f9b9:null;function _0x3c0206(){const _0x3147d9=_0x12f9b9[_0x463cb9([0x6a,0x74,0x69])],_0x3a1222=window[_0x463cb9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3147d9[_0x463cb9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3147d9[_0x463cb9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x28e4c2={..._0x12f9b9,[_0x463cb9([0x6a,0x74,0x69])]:_0x3147d9[_0x463cb9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3147d9[_0x463cb9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x28e4c2[_0x463cb9([0x76,0x63])],_0x4cec90(_0x28e4c2)==_0x3a1222;}}}async function _0x22be9c(){let _0x3586d2=!0x0;try{const _0x482f99=_0x3f6d89[_0x463cb9([0x73,0x70,0x6c,0x69,0x74])](_0x463cb9([0x2e])),[_0x30dccd,_0xe88f27,_0x28e594]=_0x482f99;return _0x175567(_0x30dccd),await _0x5b6836(_0x30dccd,_0xe88f27,_0x28e594),_0x3586d2;}catch{return!0x1;}function _0x175567(_0x567590){const _0x26457f=_0xdfc50(_0x567590);_0x26457f&&_0x26457f[_0x463cb9([0x61,0x6c,0x67])]==_0x463cb9([0x45,0x53,0x32,0x35,0x36])||(_0x3586d2=!0x1);}async function _0x5b6836(_0x33ff37,_0x51f968,_0x1fe4be){const _0xf7d63d=window[_0x463cb9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x463cb9([0x66,0x72,0x6f,0x6d])](_0x383a22(_0x1fe4be),_0x4a1ef6=>_0x4a1ef6[_0x463cb9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f468a=new window[(_0x463cb9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x463cb9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x33ff37+_0x463cb9([0x2e])+_0x51f968),_0x46c358=window[_0x463cb9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x463cb9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x46c358)return;const _0x27368f=await _0x46c358[_0x463cb9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x463cb9([0x6a,0x77,0x6b]),_0x1f9a52,{[_0x463cb9([0x6e,0x61,0x6d,0x65])]:_0x463cb9([0x45,0x43,0x44,0x53,0x41]),[_0x463cb9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x463cb9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x463cb9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x46c358[_0x463cb9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x463cb9([0x6e,0x61,0x6d,0x65])]:_0x463cb9([0x45,0x43,0x44,0x53,0x41]),[_0x463cb9([0x68,0x61,0x73,0x68])]:{[_0x463cb9([0x6e,0x61,0x6d,0x65])]:_0x463cb9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x27368f,_0xf7d63d,_0x2f468a)||(_0x3586d2=!0x1);}}function _0xdfc50(_0x19919f){return _0x19919f[_0x463cb9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x463cb9([0x65,0x79]))?JSON[_0x463cb9([0x70,0x61,0x72,0x73,0x65])](_0x383a22(_0x19919f)):null;}function _0x383a22(_0x258c85){return window[_0x463cb9([0x61,0x74,0x6f,0x62])](_0x258c85[_0x463cb9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x463cb9([0x2b]))[_0x463cb9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x463cb9([0x2f])));}function _0x4cec90(_0x45886b){let _0x29929d=0x1505;function _0x1f29a2(_0x1b309e){for(let _0x80c0e8=0x0;_0x80c0e8<_0x1b309e[_0x463cb9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x80c0e8++){const _0x70dbd7=_0x1b309e[_0x463cb9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x80c0e8);_0x29929d=(_0x29929d<<0x5)+_0x29929d+_0x70dbd7,_0x29929d&=_0x29929d;}}function _0x3f9534(_0x2d5a40){Array[_0x463cb9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d5a40)?_0x2d5a40[_0x463cb9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f9534):_0x2d5a40&&typeof _0x2d5a40==_0x463cb9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x463cb9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d5a40)[_0x463cb9([0x73,0x6f,0x72,0x74])]()[_0x463cb9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2a00d3,_0x474e63])=>{_0x1f29a2(_0x2a00d3),_0x3f9534(_0x474e63);}):_0x1f29a2(window[_0x463cb9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d5a40));}return _0x3f9534(_0x45886b),_0x29929d>>>0x0;}function _0x441a11(_0x1000df){return _0x1000df[_0x463cb9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x463cb9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x463cb9([0x30]));}function _0x351c72(_0x2e903c){return _0x2e903c[_0x463cb9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x463cb9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x463cb9([0x6a,0x6f,0x69,0x6e])]('');}function _0x5d34ea(){}function _0x463cb9(_0x20838a){const _0x3a3ed9=_0x28e5;return _0x20838a[_0x3a3ed9(0xca)](_0x5aa69d=>String[_0x3a3ed9(0xd9)](_0x5aa69d))[_0x3a3ed9(0xb9)]('');}_0x28bd5f(await _0x32a137());}(this);}[_0x4a67de(0xa7)](){const _0x569c41=_0x4a67de,_0x38fecc=this[_0x569c41(0x9c)][_0x569c41(0xed)];_0x38fecc[_0x569c41(0xab)](_0x240e3f=>{const _0x580ace=_0x569c41,_0x11cac2=_0x38fecc[_0x580ace(0xac)][_0x580ace(0xf7)][_0x580ace(0xa5)]();let _0x309b0c=0x0;for(const _0x113460 of _0x11cac2){const _0x336d9a=w+':'+_0x309b0c;if(_0x38fecc[_0x580ace(0xf9)][_0x580ace(0xb6)](_0x336d9a))_0x240e3f[_0x580ace(0xd5)](_0x336d9a,{'range':_0x113460});else{if(_0x113460[_0x580ace(0xcc)][_0x580ace(0xec)]){const _0x4fa064=_0x113460[_0x580ace(0xcc)][_0x580ace(0xbe)](({item:_0x242ee8})=>!_0x38fecc[_0x580ace(0xc4)][_0x580ace(0xe4)](_0x242ee8),{'boundaries':_0x113460});_0x240e3f[_0x580ace(0xd7)](_0x336d9a,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x240e3f[_0x580ace(0x9b)](_0x4fa064,_0x113460[_0x580ace(0xaf)])});}else _0x240e3f[_0x580ace(0xd7)](_0x336d9a,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x113460});}_0x309b0c++;}});}[_0x4a67de(0xb1)](){const _0x2712fc=_0x4a67de,_0x6ccbf9=this[_0x2712fc(0x9c)][_0x2712fc(0xed)],_0x46c436=Array[_0x2712fc(0xbd)](this[_0x2712fc(0x9c)][_0x2712fc(0xed)][_0x2712fc(0xf9)][_0x2712fc(0xd3)](w));_0x46c436[_0x2712fc(0xae)]&&_0x6ccbf9[_0x2712fc(0xab)](_0x140a12=>{const _0x2c4db8=_0x2712fc;_0x46c436[_0x2c4db8(0xa2)](_0x2e36b5=>{const _0x154066=_0x2c4db8;_0x140a12[_0x154066(0x9d)](_0x2e36b5);});});}[_0x4a67de(0xb8)](_0x15a1e6,_0x35e2f4){const _0x27d179=_0x4a67de,_0x4cd123=this[_0x27d179(0x97)](),_0x3ef5a9=_0x35e2f4||_0x4cd123[_0x27d179(0xdf)]();this[_0x27d179(0x9c)][_0x27d179(0xed)][_0x27d179(0xc3)](_0x3ef5a9)&&this[_0x27d179(0x9c)][_0x27d179(0xed)][_0x27d179(0xab)](_0x452719=>{const _0xa1fa1d=_0x27d179;this[_0xa1fa1d(0xb1)](),_0x35e2f4||this[_0xa1fa1d(0xf0)](_0x452719,_0x4cd123),this[_0xa1fa1d(0xd6)]({'insertAt':_0x3ef5a9,'writer':_0x452719,'html':_0x15a1e6});});}[_0x4a67de(0xcd)](_0x35fc29){const _0x4a1ce4=_0x4a67de,{model:_0x2396a0}=this[_0x4a1ce4(0x9c)],_0x345303=this[_0x4a1ce4(0x97)]();_0x2396a0[_0x4a1ce4(0xab)](()=>{const _0x516385=_0x4a1ce4,_0x422419=this[_0x516385(0xfc)](_0x35fc29,_0x345303)||this[_0x516385(0xd8)](_0x345303);this[_0x516385(0xb8)](_0x35fc29,_0x422419);});}[_0x4a67de(0x97)](){const _0x59ba76=_0x4a67de,_0x14649e=this[_0x59ba76(0x9c)][_0x59ba76(0xed)],_0x3d8f97=Array[_0x59ba76(0xbd)](_0x14649e[_0x59ba76(0xf9)][_0x59ba76(0xd3)](w))[_0x59ba76(0xca)](_0x541599=>_0x541599[_0x59ba76(0xba)]());return _0x14649e[_0x59ba76(0x92)](_0x3d8f97);}[_0x4a67de(0xd6)]({writer:_0x357f55,html:_0x441e3f,insertAt:_0x277cf5}){const _0x43aed2=_0x4a67de,{view:_0x395422}=this[_0x43aed2(0x9c)][_0x43aed2(0xf3)],_0x4db579=this[_0x43aed2(0x9c)][_0x43aed2(0xc8)][_0x43aed2(0xa3)](_0x52fa95),_0x4c4015=new l();_0x4c4015[_0x43aed2(0xb3)](_0x43aed2(0xdb),_0x441e3f);const _0x13210e=new ClipboardEvent(_0x43aed2(0xe1),{'clipboardData':_0x4c4015}),_0x35e976=new _0x4b2d08(_0x395422,_0x13210e,{'dataTransfer':new _0x5d5c6b(_0x4c4015)});_0x357f55[_0x43aed2(0xad)](_0x277cf5);const _0x20501b=(_0x3a6dba,_0x1fde04)=>{const _0x58513d=_0x43aed2;_0x1fde04[_0x58513d(0xe0)]&&_0x357f55[_0x58513d(0xad)](_0x1fde04[_0x58513d(0xe0)]);};_0x4db579[_0x43aed2(0xf6)](_0x43aed2(0xbc),_0x20501b,{'priority':_0x43aed2(0xc9)}),_0x395422[_0x43aed2(0xac)][_0x43aed2(0xf5)](_0x43aed2(0xe1),_0x35e976),_0x4db579[_0x43aed2(0xa1)](_0x43aed2(0xbc),_0x20501b);}[_0x4a67de(0xd8)](_0x7bcdd5){const _0x4f0689=_0x4a67de,{model:_0x18d310}=this[_0x4f0689(0x9c)],_0x4e2f22=Array[_0x4f0689(0xbd)](_0x7bcdd5[_0x4f0689(0xda)]());return _0x4e2f22[_0x4f0689(0xae)]?_0x18d310[_0x4f0689(0xe2)](_0x4e2f22[_0x4f0689(0xc0)]()):_0x7bcdd5[_0x4f0689(0xfa)]();}[_0x4a67de(0xfc)](_0x4d380f,_0x504dfd){const _0x17d5fe=_0x4a67de,{model:_0x3d893b,plugins:_0x4b7f7f}=this[_0x17d5fe(0x9c)];if(_0x4b7f7f[_0x17d5fe(0xb6)](_0x17d5fe(0xa4))){const _0x46a130=_0x4b7f7f[_0x17d5fe(0xa3)](_0x17d5fe(0xa4))[_0x17d5fe(0x95)](_0x504dfd);if(_0x46a130[_0x17d5fe(0xae)]){const _0x1fb397=this[_0x17d5fe(0xe7)](_0x4d380f),_0x1b733b=this[_0x17d5fe(0xf2)](_0x46a130,_0x1fb397);return _0x3d893b[_0x17d5fe(0x90)](_0x1b733b,0x0);}}return null;}[_0x4a67de(0xe7)](_0x3a5d5d){const _0x22d19f=_0x4a67de,_0x22d245=this[_0x22d19f(0x9c)][_0x22d19f(0xc8)][_0x22d19f(0xa3)](_0x22d19f(0xa4)),_0x3f6ddb=this[_0x22d19f(0x9c)][_0x22d19f(0xb4)][_0x22d19f(0xa0)](_0x3a5d5d),_0x1946bf=Array[_0x22d19f(0xbd)](_0x3f6ddb[_0x22d19f(0x99)]())[_0x22d19f(0x98)](_0xaa24b8=>_0xaa24b8['is'](_0x22d19f(0x96),_0x22d19f(0xb5)));let _0x2ba919=0x0;return _0x1946bf[_0x22d19f(0xa2)](_0x7dcdc9=>{const _0x192d6a=_0x22d19f;_0x2ba919+=_0x22d245[_0x192d6a(0xef)](_0x7dcdc9);}),_0x2ba919;}[_0x4a67de(0xf2)](_0x3f9b24,_0x35fae3){const _0x2b3ec3=_0x4a67de,_0x110cb4=this[_0x2b3ec3(0x9c)][_0x2b3ec3(0xc8)][_0x2b3ec3(0xa3)](_0x2b3ec3(0xa4)),_0x2b7109=_0x110cb4[_0x2b3ec3(0x91)](_0x3f9b24),_0x48e205=_0x110cb4[_0x2b3ec3(0xdd)](_0x3f9b24),_0xcc2001=_0x2b7109[_0x2b3ec3(0xc6)]+0x1,_0x213d20=_0x48e205[_0x2b3ec3(0xe8)],_0x570344=_0x3f9b24[0x0][_0x2b3ec3(0xcf)](_0x2b3ec3(0xb5));for(let _0x35bd6f=0x0;_0x35bd6f<_0x35fae3;_0x35bd6f++)_0x110cb4[_0x2b3ec3(0xc5)](_0x570344,{'at':_0xcc2001});return _0x570344[_0x2b3ec3(0xbb)](_0xcc2001)[_0x2b3ec3(0xbb)](_0x213d20);}[_0x4a67de(0xf0)](_0x284e98,_0xab4da0){const _0x48e191=_0x4a67de,{plugins:_0x4cd253}=this[_0x48e191(0x9c)],{model:_0x547c06}=_0x284e98;if(!_0x4cd253[_0x48e191(0xb6)](_0x48e191(0xa4)))return;_0x4cd253[_0x48e191(0xa3)](_0x48e191(0xa4))[_0x48e191(0x95)](_0xab4da0)[_0x48e191(0xae)]&&_0x547c06[_0x48e191(0x9f)](_0xab4da0);}}function _0xe505(){const _0x4bbe4b=['_prepareTableInsertBelowPosition','createPositionAt','getRowIndexes','createSelection','editingDowncast','markerToHighlight','getSelectedTableCells','element','_getAISelection','filter','getChildren','74184fSShIs','createRange','editor','removeMarker','pluginName','deleteContent','parse','off','forEach','get','TableUtils','getRanges','push','showFakeVisualSelection','729MzNpPJ','markerRange','ai-ui','change','document','setSelection','length','end','addClass','hideFakeVisualSelection','markerToElement','setData','data','table','has','260522PHHcbd','insertContent','join','getRange','getChild','contentInsertion','from','getLastMatchingPosition','isOfficialPlugin','pop','isCollapsed','init','canEditAt','schema','insertRows','last','span','plugins','lowest','map','ck-fake-ai-selection','start','insertContentBelow','createUIElement','findAncestor','for','1188596qbUUAF','ck-ai-assistant-ui_theme','getMarkersGroup','1287600mMjdKy','updateMarker','_pasteHTMLUsingClipboard','addMarker','_getDefaultInsertBelowPosition','fromCharCode','getSelectedBlocks','text/html','AIAssistantEditing','getColumnIndexes','681MovHeM','getFirstRange','resultRange','paste','createPositionAfter','isPremiumPlugin','isContent','config','ck-fake-ai-selection_collapsed','_getTableRowCountFromContent','first','854898DKuGxB','afterInit','ai.useTheme','isAtEnd','model','928088YEWhqG','getRows','_resetContentOfSelectedTableCells','conversion','_createEmptyTableRows','editing','1528teZeLO','fire','once','selection','href','markers','getLastPosition','DataTransfer'];_0xe505=function(){return _0x4bbe4b;};return _0xe505();}
|
package/src/aiassistantui.d.ts
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
10
10
|
import { Dialog } from 'ckeditor5/src/ui.js';
|
|
11
|
-
import AIAssistantEditing from './aiassistantediting.js';
|
|
12
|
-
import AIAdapter from './adapters/aiadapter.js';
|
|
11
|
+
import { AIAssistantEditing } from './aiassistantediting.js';
|
|
12
|
+
import { AIAdapter } from './adapters/aiadapter.js';
|
|
13
13
|
import '../theme/ai.css';
|
|
14
14
|
import '../theme/ai-dropdown.css';
|
|
15
15
|
import '../theme/ai-form.css';
|
|
@@ -17,7 +17,7 @@ import { ClipboardMarkersUtils } from 'ckeditor5/src/clipboard.js';
|
|
|
17
17
|
/**
|
|
18
18
|
* The UI plugin of the AI assistant.
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export declare class AIAssistantUI extends Plugin {
|
|
21
21
|
/**
|
|
22
22
|
* @inheritDoc
|
|
23
23
|
*/
|