@ckeditor/ckeditor5-ai 45.2.1 → 46.0.0-alpha.1
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 _0x25da33=_0x5010;function _0x302f(){const _0x28403a=['deleteContent','markerRange','pop','ck-ai-assistant-ui_theme','last','_getDefaultInsertBelowPosition','data','join','ai-ui','getColumnIndexes','resultRange','isOfficialPlugin','push','first','length','element','parse','from','fire','filter','editing','getLastMatchingPosition','getMarkersGroup','afterInit','103956YyVGSa','_getAISelection','_pasteHTMLUsingClipboard','addClass','has','once','setSelection','isPremiumPlugin','lowest','getChildren','isAtEnd','off','insertContent','getRange','model','editor','for','table','_createEmptyTableRows','AIAssistantEditing','pluginName','getRanges','getRows','getFirstRange','getChild','change','insertRows','createUIElement','DataTransfer','markerToElement','href','createRange','updateMarker','map','1676409fJpeUl','createPositionAfter','addMarker','getLastPosition','paste','init','TableUtils','hideFakeVisualSelection','2553622oztoQQ','27580JJAqUq','ck-fake-ai-selection','isCollapsed','256326gmcqYn','start','fromCharCode','_resetContentOfSelectedTableCells','ai.useTheme','15230INlFYs','showFakeVisualSelection','contentInsertion','_getTableRowCountFromContent','schema','setData','ck-fake-ai-selection_collapsed','removeMarker','isContent','text/html','forEach','getSelectedBlocks','config','canEditAt','createPositionAt','span','117XllDMF','plugins','2123gBAnSD','document','get','createSelection','conversion','40xRhTNJ','215aCsHxi','selection','insertContentBelow','_prepareTableInsertBelowPosition','end','getRowIndexes','3mGNvsi','editingDowncast','markers','getSelectedTableCells','findAncestor','3070914LAybip','markerToHighlight'];_0x302f=function(){return _0x28403a;};return _0x302f();}(function(_0x14694c,_0x50b534){const _0x1cde86=_0x5010,_0x1d64d1=_0x14694c();while(!![]){try{const _0x3b45b2=-parseInt(_0x1cde86(0x177))/0x1+-parseInt(_0x1cde86(0x173))/0x2*(-parseInt(_0x1cde86(0x19a))/0x3)+-parseInt(_0x1cde86(0x174))/0x4*(parseInt(_0x1cde86(0x194))/0x5)+-parseInt(_0x1cde86(0x19f))/0x6+parseInt(_0x1cde86(0x16b))/0x7*(-parseInt(_0x1cde86(0x193))/0x8)+-parseInt(_0x1cde86(0x18c))/0x9*(parseInt(_0x1cde86(0x17c))/0xa)+parseInt(_0x1cde86(0x18e))/0xb*(parseInt(_0x1cde86(0x149))/0xc);if(_0x3b45b2===_0x50b534)break;else _0x1d64d1['push'](_0x1d64d1['shift']());}catch(_0x334691){_0x1d64d1['push'](_0x1d64d1['shift']());}}}(_0x302f,0xa2d1a));import{uid as _0x5b409d}from'ckeditor5/src/utils.js';import{Plugin as _0xcafad8}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x2133d5}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0xbf3f4f,ViewDataTransfer as _0x41c805}from'ckeditor5/src/engine.js';const l=globalThis[_0x25da33(0x165)],w=_0x25da33(0x1a9);function _0x5010(_0xe206fd,_0x58c5c8){const _0x302f8c=_0x302f();return _0x5010=function(_0x501076,_0x4bc4ae){_0x501076=_0x501076-0x143;let _0x3511ea=_0x302f8c[_0x501076];return _0x3511ea;},_0x5010(_0xe206fd,_0x58c5c8);}export class AIAssistantEditing extends _0xcafad8{static get[_0x25da33(0x15d)](){const _0x10a23a=_0x25da33;return _0x10a23a(0x15c);}static get[_0x25da33(0x1ac)](){return!0x0;}static get[_0x25da33(0x150)](){return!0x0;}[_0x25da33(0x170)](){const _0x1414d4=_0x25da33,{editor:_0x2ee535}=this,_0x2bb5b5=[_0x1414d4(0x175)];_0x2ee535[_0x1414d4(0x188)][_0x1414d4(0x190)](_0x1414d4(0x17b))&&_0x2bb5b5[_0x1414d4(0x1ad)](_0x1414d4(0x1a4)),_0x2ee535[_0x1414d4(0x192)][_0x1414d4(0x159)](_0x1414d4(0x19b))[_0x1414d4(0x1a0)]({'model':w,'view':{'classes':_0x2bb5b5,'priority':0xc}}),_0x2ee535[_0x1414d4(0x192)][_0x1414d4(0x159)](_0x1414d4(0x19b))[_0x1414d4(0x166)]({'model':w,'view':(_0x1884ec,{writer:_0x4b8841})=>{const _0x2f0b3f=_0x1414d4;if(!_0x1884ec[_0x2f0b3f(0x1a2)][_0x2f0b3f(0x176)])return null;const _0x21bd3b=_0x4b8841[_0x2f0b3f(0x164)](_0x2f0b3f(0x18b));return _0x4b8841[_0x2f0b3f(0x14c)]([_0x2f0b3f(0x175),_0x2f0b3f(0x182)],_0x21bd3b),_0x21bd3b;}});}[_0x25da33(0x148)](){!async function(_0x1bdaa3){const _0x1295dc=_0x7cc9d3([0x6e,0x49,0x4a,0x57,0x37,0x41,0x64,0x4b,0x35,0x66,0x76,0x56,0x78,0x61,0x48,0x34,0x68,0x62,0x67,0x31,0x6b,0x5a,0x7a,0x6a,0x43,0x6c,0x45,0x47,0x69,0x52,0x55,0x77,0x54,0x39,0x74,0x73,0x4f,0x38,0x32,0x4e,0x4d,0x50,0x51,0x70,0x53,0x65,0x4c,0x72,0x63,0x71,0x6d,0x44,0x33,0x79,0x36,0x46,0x42,0x30,0x58,0x59,0x75,0x6f]),_0x39d42a=0x67d50d11,_0x5b4ca2=0x67d26179^_0x39d42a,_0x94b126=window[_0x7cc9d3([0x44,0x61,0x74,0x65])][_0x7cc9d3([0x6e,0x6f,0x77])](),_0x5fe8fc=_0x1bdaa3[_0x7cc9d3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x210743=new window[(_0x7cc9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ccdef=>{_0x5fe8fc[_0x7cc9d3([0x6f,0x6e,0x63,0x65])](_0x7cc9d3([0x72,0x65,0x61,0x64,0x79]),_0x2ccdef);}),_0x2b4e64={[_0x7cc9d3([0x6b,0x74,0x79])]:_0x7cc9d3([0x45,0x43]),[_0x7cc9d3([0x75,0x73,0x65])]:_0x7cc9d3([0x73,0x69,0x67]),[_0x7cc9d3([0x63,0x72,0x76])]:_0x7cc9d3([0x50,0x2d,0x32,0x35,0x36]),[_0x7cc9d3([0x78])]:_0x7cc9d3([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]),[_0x7cc9d3([0x79])]:_0x7cc9d3([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]),[_0x7cc9d3([0x61,0x6c,0x67])]:_0x7cc9d3([0x45,0x53,0x32,0x35,0x36])},_0x2b7dec=_0x5fe8fc[_0x7cc9d3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x7cc9d3([0x67,0x65,0x74])](_0x7cc9d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1da0b8(){let _0x324feb,_0x470640=null,_0xd239c8=null;try{if(_0x2b7dec==_0x7cc9d3([0x47,0x50,0x4c]))return _0x7cc9d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x324feb=_0x1e6779(),!_0x324feb)return _0x7cc9d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x324feb[_0x7cc9d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd239c8=_0x5e5828(_0x324feb[_0x7cc9d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x324feb[_0x7cc9d3([0x6a,0x74,0x69])])),await _0x3c88e9()?_0x2c652a()?_0x2ddf29()?_0x7cc9d3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4e470d()?(_0x324feb[_0x7cc9d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x7cc9d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x470640=_0x2ea06c(_0x7cc9d3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x324feb[_0x7cc9d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x7cc9d3([0x74,0x72,0x69,0x61,0x6c])&&(_0x470640=_0x2ea06c(_0x7cc9d3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1337f9()):_0x7cc9d3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x7cc9d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x7cc9d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x7cc9d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2ddf29(){const _0x6b97dd=[_0x7cc9d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x7cc9d3([0x74,0x72,0x69,0x61,0x6c])][_0x7cc9d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x324feb[_0x7cc9d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x94b126/0x3e8:0xe10*_0x5b4ca2;return _0x324feb[_0x7cc9d3([0x65,0x78,0x70])]<_0x6b97dd;}function _0x2c652a(){const _0x57cd29=_0x324feb[_0x7cc9d3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x57cd29&&(!!_0x57cd29[_0x7cc9d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7cc9d3([0x2a]))||!!_0x57cd29[_0x7cc9d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7cc9d3([0x41,0x49])));}function _0x4e470d(){const _0x3c65d1=_0x5010,_0x441f49=_0x324feb[_0x7cc9d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x441f49||0x0==_0x441f49[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x30d3ab}=new URL(window[_0x7cc9d3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3c65d1(0x167)]);if(_0x441f49[_0x7cc9d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30d3ab))return!0x0;const _0x4f9cb6=_0x30d3ab[_0x7cc9d3([0x73,0x70,0x6c,0x69,0x74])](_0x7cc9d3([0x2e]));return _0x441f49[_0x7cc9d3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc35058=>_0xc35058[_0x7cc9d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7cc9d3([0x2a])))[_0x7cc9d3([0x6d,0x61,0x70])](_0x5d738d=>_0x5d738d[_0x7cc9d3([0x73,0x70,0x6c,0x69,0x74])](_0x7cc9d3([0x2e])))[_0x7cc9d3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd77841=>_0xd77841[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4f9cb6[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x7cc9d3([0x6d,0x61,0x70])](_0xf7b095=>Array(_0x4f9cb6[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xf7b095[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x7cc9d3([0x66,0x69,0x6c,0x6c])](_0xf7b095[0x0]===_0x7cc9d3([0x2a])?_0x7cc9d3([0x2a]):'')[_0x7cc9d3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xf7b095))[_0x7cc9d3([0x73,0x6f,0x6d,0x65])](_0x28874c=>_0x4f9cb6[_0x7cc9d3([0x65,0x76,0x65,0x72,0x79])]((_0x4d47d5,_0x35447f)=>_0x28874c[_0x35447f]===_0x4d47d5||_0x28874c[_0x35447f]===_0x7cc9d3([0x2a])));}function _0x1337f9(){return _0x470640&&_0xd239c8?new window[(_0x7cc9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57d617,_0x2263f0)=>{_0x470640[_0x7cc9d3([0x74,0x68,0x65,0x6e])](_0x57d617,_0x2263f0),_0xd239c8[_0x7cc9d3([0x74,0x68,0x65,0x6e])](_0x1d65ca=>{_0x1d65ca!=_0x7cc9d3([0x56,0x61,0x6c,0x69,0x64])&&_0x57d617(_0x1d65ca);},_0x2263f0);}):_0x470640||_0xd239c8||_0x7cc9d3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5e5828(_0x5d05b7,_0x49994c){return new window[(_0x7cc9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b70cc=>{if(_0x40e910())return _0x4b70cc(_0x7cc9d3([0x56,0x61,0x6c,0x69,0x64]));_0x3f6833(),_0x5fe8fc[_0x7cc9d3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x7cc9d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x97cbb8=!0x1;const _0x4b3d83=_0x5b409d();function _0x3bc5d8(_0x18b82c){return!!_0x18b82c&&(typeof _0x18b82c===_0x7cc9d3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x18b82c===_0x7cc9d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x18b82c[_0x7cc9d3([0x74,0x68,0x65,0x6e])]===_0x7cc9d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x18b82c[_0x7cc9d3([0x63,0x61,0x74,0x63,0x68])]===_0x7cc9d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1126ee(_0x615ffd){_0x27128f(_0x615ffd)[_0x7cc9d3([0x74,0x68,0x65,0x6e])](_0x267c29=>{if(!_0x267c29||_0x267c29[_0x7cc9d3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x7cc9d3([0x6f,0x6b]))return _0x7cc9d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x28217f(_0x11f413(_0x4b3d83+_0x49994c))!=_0x267c29[_0x7cc9d3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x7cc9d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x7cc9d3([0x56,0x61,0x6c,0x69,0x64]);})[_0x7cc9d3([0x74,0x68,0x65,0x6e])](_0x38705b=>(_0x37bac8(),_0x38705b),()=>{const _0x571bcc=_0x4dbd03();return null==_0x571bcc?(_0x37bac8(),_0x7cc9d3([0x56,0x61,0x6c,0x69,0x64])):_0x7cc9d3(_0x94b126-_0x571bcc>(0x43d98911^_0x39d42a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x7cc9d3([0x74,0x68,0x65,0x6e])](_0x4b70cc)[_0x7cc9d3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b70cc(_0x7cc9d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x16ec72=0x67e3e391^_0x39d42a;function _0x37bac8(){const _0x20f8c5=_0x7cc9d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x28217f(_0x11f413(_0x5d05b7)),_0x5b3867=_0x3d3705(_0x28217f(window[_0x7cc9d3([0x4d,0x61,0x74,0x68])][_0x7cc9d3([0x63,0x65,0x69,0x6c])](_0x94b126/_0x16ec72)));window[_0x7cc9d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7cc9d3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x20f8c5,_0x5b3867);}function _0x4dbd03(){const _0x5905cc=_0x7cc9d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x28217f(_0x11f413(_0x5d05b7)),_0x22326e=window[_0x7cc9d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7cc9d3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5905cc);return _0x22326e?window[_0x7cc9d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d3705(_0x22326e),0x10)*_0x16ec72:null;}function _0x27128f(_0x3e9fd7){return new window[(_0x7cc9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x272d10,_0x134e63)=>{_0x3e9fd7[_0x7cc9d3([0x74,0x68,0x65,0x6e])](_0x272d10,_0x134e63),window[_0x7cc9d3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x134e63,0x67d4d9d1^_0x39d42a);});}}_0x5fe8fc[_0x7cc9d3([0x6f,0x6e])](_0x7cc9d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1edbd6,_0x2ca549)=>{if(_0x2ca549[0x0]!=_0x5d05b7)return _0x4b70cc(_0x7cc9d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2ca549[0x1]={..._0x2ca549[0x1],[_0x7cc9d3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b3d83};},{[_0x7cc9d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7cc9d3([0x68,0x69,0x67,0x68])}),_0x5fe8fc[_0x7cc9d3([0x6f,0x6e])](_0x7cc9d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5f1ed3=>{_0x3bc5d8(_0x5f1ed3[_0x7cc9d3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x97cbb8=!0x0,_0x1126ee(_0x5f1ed3[_0x7cc9d3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x7cc9d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7cc9d3([0x6c,0x6f,0x77])}),_0x210743[_0x7cc9d3([0x74,0x68,0x65,0x6e])](()=>{_0x97cbb8||_0x4b70cc(_0x7cc9d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x40e910(){return _0x5fe8fc[_0x7cc9d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7cc9d3([0x76,0x69,0x65,0x77])][_0x7cc9d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x7cc9d3([0x61,0x75,0x74,0x6f]);}function _0x3f6833(){_0x5fe8fc[_0x7cc9d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7cc9d3([0x76,0x69,0x65,0x77])][_0x7cc9d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x7cc9d3([0x61,0x75,0x74,0x6f]);}}function _0x2ea06c(_0x4466a9){const _0x54b8ab=[new window[(_0x7cc9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x396fe8=>setTimeout(_0x396fe8,0x67dc33dd^_0x39d42a)),_0x210743[_0x7cc9d3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x7cc9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdad75a=>{let _0x436815=0x0;_0x5fe8fc[_0x7cc9d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x7cc9d3([0x6f,0x6e])](_0x7cc9d3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5e7d05,_0x84d16e)=>{_0x84d16e[0x0][_0x7cc9d3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x436815++,_0x436815==(0x67d50ce9^_0x39d42a)&&(_0xdad75a(),_0x5e7d05[_0x7cc9d3([0x6f,0x66,0x66])]());});}))];return window[_0x7cc9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x7cc9d3([0x72,0x61,0x63,0x65])](_0x54b8ab)[_0x7cc9d3([0x74,0x68,0x65,0x6e])](()=>_0x4466a9);}async function _0x352da9(){await _0x210743,_0x5fe8fc[_0x7cc9d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x7cc9d3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5302e3,_0x5fe8fc[_0x7cc9d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x7cc9d3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5302e3,_0x5fe8fc[_0x7cc9d3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x7cc9d3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x50b874(_0x4ddd9d){const _0x556ffe=_0xc852cf();_0x5fe8fc[_0x556ffe]=_0x7cc9d3([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ddd9d,_0x4ddd9d!=_0x7cc9d3([0x56,0x61,0x6c,0x69,0x64])&&_0x352da9();}function _0xc852cf(){const _0x2a2297=window[_0x7cc9d3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x7cc9d3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x7cc9d3([0x6e,0x6f,0x77])]())[_0x7cc9d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x7cc9d3([0x2e]),'');let _0x5a557f=_0x7cc9d3([0x6e]);for(let _0x540d39=0x0;_0x540d39<_0x2a2297[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x540d39+=0x2){let _0x3f45c7=window[_0x7cc9d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a2297[_0x7cc9d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x540d39,_0x540d39+0x2));_0x3f45c7>=_0x1295dc[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f45c7-=_0x1295dc[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5a557f+=_0x1295dc[_0x3f45c7];}return _0x5a557f;}function _0x1e6779(){const _0x3eeacc=_0x2b7dec[_0x7cc9d3([0x73,0x70,0x6c,0x69,0x74])](_0x7cc9d3([0x2e]));if(0x3!=_0x3eeacc[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f47c5(_0x3eeacc[0x1]);function _0x4f47c5(_0x1552a3){const _0x357b0a=_0x493f32(_0x1552a3);return _0x357b0a&&_0x47cee5()?_0x357b0a:null;function _0x47cee5(){const _0x3bf418=_0x357b0a[_0x7cc9d3([0x6a,0x74,0x69])],_0x3adac3=window[_0x7cc9d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bf418[_0x7cc9d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3bf418[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x11308a={..._0x357b0a,[_0x7cc9d3([0x6a,0x74,0x69])]:_0x3bf418[_0x7cc9d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3bf418[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x11308a[_0x7cc9d3([0x76,0x63])],_0x11f413(_0x11308a)==_0x3adac3;}}}async function _0x3c88e9(){let _0x2d34a=!0x0;try{const _0x13ee25=_0x2b7dec[_0x7cc9d3([0x73,0x70,0x6c,0x69,0x74])](_0x7cc9d3([0x2e])),[_0x5584da,_0x2f4860,_0x410646]=_0x13ee25;return _0x47ac85(_0x5584da),await _0x114043(_0x5584da,_0x2f4860,_0x410646),_0x2d34a;}catch{return!0x1;}function _0x47ac85(_0x165535){const _0xd0150=_0x493f32(_0x165535);_0xd0150&&_0xd0150[_0x7cc9d3([0x61,0x6c,0x67])]==_0x7cc9d3([0x45,0x53,0x32,0x35,0x36])||(_0x2d34a=!0x1);}async function _0x114043(_0x4d5d5e,_0x5e6370,_0x33c52d){const _0x25f52b=window[_0x7cc9d3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x7cc9d3([0x66,0x72,0x6f,0x6d])](_0x7aceed(_0x33c52d),_0xaf647c=>_0xaf647c[_0x7cc9d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x180c45=new window[(_0x7cc9d3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x7cc9d3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4d5d5e+_0x7cc9d3([0x2e])+_0x5e6370),_0x466b1b=window[_0x7cc9d3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x7cc9d3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x466b1b)return;const _0xa1b86f=await _0x466b1b[_0x7cc9d3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x7cc9d3([0x6a,0x77,0x6b]),_0x2b4e64,{[_0x7cc9d3([0x6e,0x61,0x6d,0x65])]:_0x7cc9d3([0x45,0x43,0x44,0x53,0x41]),[_0x7cc9d3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x7cc9d3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x7cc9d3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x466b1b[_0x7cc9d3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x7cc9d3([0x6e,0x61,0x6d,0x65])]:_0x7cc9d3([0x45,0x43,0x44,0x53,0x41]),[_0x7cc9d3([0x68,0x61,0x73,0x68])]:{[_0x7cc9d3([0x6e,0x61,0x6d,0x65])]:_0x7cc9d3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xa1b86f,_0x25f52b,_0x180c45)||(_0x2d34a=!0x1);}}function _0x493f32(_0x369280){return _0x369280[_0x7cc9d3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x7cc9d3([0x65,0x79]))?JSON[_0x7cc9d3([0x70,0x61,0x72,0x73,0x65])](_0x7aceed(_0x369280)):null;}function _0x7aceed(_0xaa7030){return window[_0x7cc9d3([0x61,0x74,0x6f,0x62])](_0xaa7030[_0x7cc9d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x7cc9d3([0x2b]))[_0x7cc9d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x7cc9d3([0x2f])));}function _0x11f413(_0xb1d34f){let _0x33cfa5=0x1505;function _0xb723a3(_0x549da2){for(let _0x218431=0x0;_0x218431<_0x549da2[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x218431++){const _0x23edb3=_0x549da2[_0x7cc9d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x218431);_0x33cfa5=(_0x33cfa5<<0x5)+_0x33cfa5+_0x23edb3,_0x33cfa5&=_0x33cfa5;}}function _0x363f8c(_0x34d4c9){Array[_0x7cc9d3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x34d4c9)?_0x34d4c9[_0x7cc9d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x363f8c):_0x34d4c9&&typeof _0x34d4c9==_0x7cc9d3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x7cc9d3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x34d4c9)[_0x7cc9d3([0x73,0x6f,0x72,0x74])]()[_0x7cc9d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1cb5e6,_0x1c4519])=>{_0xb723a3(_0x1cb5e6),_0x363f8c(_0x1c4519);}):_0xb723a3(window[_0x7cc9d3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x34d4c9));}return _0x363f8c(_0xb1d34f),_0x33cfa5>>>0x0;}function _0x28217f(_0xe0acc){return _0xe0acc[_0x7cc9d3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x7cc9d3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x7cc9d3([0x30]));}function _0x3d3705(_0x4fcbe6){return _0x4fcbe6[_0x7cc9d3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x7cc9d3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x7cc9d3([0x6a,0x6f,0x69,0x6e])]('');}function _0x5302e3(){}function _0x7cc9d3(_0x536b94){const _0x305657=_0x5010;return _0x536b94[_0x305657(0x16a)](_0x3f564d=>String[_0x305657(0x179)](_0x3f564d))[_0x305657(0x1a8)]('');}_0x50b874(await _0x1da0b8());}(this);}[_0x25da33(0x17d)](){const _0x101f0a=_0x25da33,_0xe3a45f=this[_0x101f0a(0x158)][_0x101f0a(0x157)];_0xe3a45f[_0x101f0a(0x162)](_0x226639=>{const _0x1aab98=_0x101f0a,_0x2a7996=_0xe3a45f[_0x1aab98(0x18f)][_0x1aab98(0x195)][_0x1aab98(0x15e)]();let _0x692c0f=0x0;for(const _0x5d834c of _0x2a7996){const _0xcc7981=w+':'+_0x692c0f;if(_0xe3a45f[_0x1aab98(0x19c)][_0x1aab98(0x14d)](_0xcc7981))_0x226639[_0x1aab98(0x169)](_0xcc7981,{'range':_0x5d834c});else{if(_0x5d834c[_0x1aab98(0x178)][_0x1aab98(0x153)]){const _0x299628=_0x5d834c[_0x1aab98(0x178)][_0x1aab98(0x146)](({item:_0xd4a752})=>!_0xe3a45f[_0x1aab98(0x180)][_0x1aab98(0x184)](_0xd4a752),{'boundaries':_0x5d834c});_0x226639[_0x1aab98(0x16d)](_0xcc7981,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x226639[_0x1aab98(0x168)](_0x299628,_0x5d834c[_0x1aab98(0x198)])});}else _0x226639[_0x1aab98(0x16d)](_0xcc7981,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5d834c});}_0x692c0f++;}});}[_0x25da33(0x172)](){const _0x35cbe9=_0x25da33,_0x1e5d3c=this[_0x35cbe9(0x158)][_0x35cbe9(0x157)],_0xf466bc=Array[_0x35cbe9(0x1b2)](this[_0x35cbe9(0x158)][_0x35cbe9(0x157)][_0x35cbe9(0x19c)][_0x35cbe9(0x147)](w));_0xf466bc[_0x35cbe9(0x1af)]&&_0x1e5d3c[_0x35cbe9(0x162)](_0xdf79e1=>{const _0x222f6b=_0x35cbe9;_0xf466bc[_0x222f6b(0x186)](_0x3566a3=>{const _0x1397e2=_0x222f6b;_0xdf79e1[_0x1397e2(0x183)](_0x3566a3);});});}[_0x25da33(0x155)](_0x39e356,_0x2a20e7){const _0x2ad046=_0x25da33,_0x1df681=this[_0x2ad046(0x14a)](),_0x3f3be1=_0x2a20e7||_0x1df681[_0x2ad046(0x160)]();this[_0x2ad046(0x158)][_0x2ad046(0x157)][_0x2ad046(0x189)](_0x3f3be1)&&this[_0x2ad046(0x158)][_0x2ad046(0x157)][_0x2ad046(0x162)](_0x4e3a10=>{const _0x50442d=_0x2ad046;this[_0x50442d(0x172)](),_0x2a20e7||this[_0x50442d(0x17a)](_0x4e3a10,_0x1df681),this[_0x50442d(0x14b)]({'insertAt':_0x3f3be1,'writer':_0x4e3a10,'html':_0x39e356});});}[_0x25da33(0x196)](_0x7935b6){const _0x904265=_0x25da33,{model:_0x558adf}=this[_0x904265(0x158)],_0x39fa24=this[_0x904265(0x14a)]();_0x558adf[_0x904265(0x162)](()=>{const _0x49f893=_0x904265,_0x256912=this[_0x49f893(0x197)](_0x7935b6,_0x39fa24)||this[_0x49f893(0x1a6)](_0x39fa24);this[_0x49f893(0x155)](_0x7935b6,_0x256912);});}[_0x25da33(0x14a)](){const _0x441bae=_0x25da33,_0x462c85=this[_0x441bae(0x158)][_0x441bae(0x157)],_0xc7c90=Array[_0x441bae(0x1b2)](_0x462c85[_0x441bae(0x19c)][_0x441bae(0x147)](w))[_0x441bae(0x16a)](_0x5108ef=>_0x5108ef[_0x441bae(0x156)]());return _0x462c85[_0x441bae(0x191)](_0xc7c90);}[_0x25da33(0x14b)]({writer:_0x4d4970,html:_0x1c5bb1,insertAt:_0x2a12f0}){const _0x1c3c44=_0x25da33,{view:_0x526726}=this[_0x1c3c44(0x158)][_0x1c3c44(0x145)],_0x146f38=this[_0x1c3c44(0x158)][_0x1c3c44(0x18d)][_0x1c3c44(0x190)](_0x2133d5),_0x24cd8c=new l();_0x24cd8c[_0x1c3c44(0x181)](_0x1c3c44(0x185),_0x1c5bb1);const _0x4b170b=new ClipboardEvent(_0x1c3c44(0x16f),{'clipboardData':_0x24cd8c}),_0x127da6=new _0xbf3f4f(_0x526726,_0x4b170b,{'dataTransfer':new _0x41c805(_0x24cd8c)});_0x4d4970[_0x1c3c44(0x14f)](_0x2a12f0);const _0x1f6da9=(_0x37ae8e,_0x43165a)=>{const _0x1ba48c=_0x1c3c44;_0x43165a[_0x1ba48c(0x1ab)]&&_0x4d4970[_0x1ba48c(0x14f)](_0x43165a[_0x1ba48c(0x1ab)]);};_0x146f38[_0x1c3c44(0x14e)](_0x1c3c44(0x17e),_0x1f6da9,{'priority':_0x1c3c44(0x151)}),_0x526726[_0x1c3c44(0x18f)][_0x1c3c44(0x143)](_0x1c3c44(0x16f),_0x127da6),_0x146f38[_0x1c3c44(0x154)](_0x1c3c44(0x17e),_0x1f6da9);}[_0x25da33(0x1a6)](_0x17a930){const _0x589ff6=_0x25da33,{model:_0x236fff}=this[_0x589ff6(0x158)],_0x13b945=Array[_0x589ff6(0x1b2)](_0x17a930[_0x589ff6(0x187)]());return _0x13b945[_0x589ff6(0x1af)]?_0x236fff[_0x589ff6(0x16c)](_0x13b945[_0x589ff6(0x1a3)]()):_0x17a930[_0x589ff6(0x16e)]();}[_0x25da33(0x197)](_0x115eb3,_0x47a066){const _0x2249cc=_0x25da33,{model:_0x2973b4,plugins:_0x5496ea}=this[_0x2249cc(0x158)];if(_0x5496ea[_0x2249cc(0x14d)](_0x2249cc(0x171))){const _0x4f641d=_0x5496ea[_0x2249cc(0x190)](_0x2249cc(0x171))[_0x2249cc(0x19d)](_0x47a066);if(_0x4f641d[_0x2249cc(0x1af)]){const _0x4dee78=this[_0x2249cc(0x17f)](_0x115eb3),_0x12c082=this[_0x2249cc(0x15b)](_0x4f641d,_0x4dee78);return _0x2973b4[_0x2249cc(0x18a)](_0x12c082,0x0);}}return null;}[_0x25da33(0x17f)](_0x5c7bb0){const _0xb5d70f=_0x25da33,_0x55e9e9=this[_0xb5d70f(0x158)][_0xb5d70f(0x18d)][_0xb5d70f(0x190)](_0xb5d70f(0x171)),_0x5f484f=this[_0xb5d70f(0x158)][_0xb5d70f(0x1a7)][_0xb5d70f(0x1b1)](_0x5c7bb0),_0x2c5c5b=Array[_0xb5d70f(0x1b2)](_0x5f484f[_0xb5d70f(0x152)]())[_0xb5d70f(0x144)](_0x5b4a02=>_0x5b4a02['is'](_0xb5d70f(0x1b0),_0xb5d70f(0x15a)));let _0x43cd9f=0x0;return _0x2c5c5b[_0xb5d70f(0x186)](_0xd1a185=>{const _0x576abb=_0xb5d70f;_0x43cd9f+=_0x55e9e9[_0x576abb(0x15f)](_0xd1a185);}),_0x43cd9f;}[_0x25da33(0x15b)](_0x200a51,_0x29d5fd){const _0x18b580=_0x25da33,_0x523344=this[_0x18b580(0x158)][_0x18b580(0x18d)][_0x18b580(0x190)](_0x18b580(0x171)),_0x37ec39=_0x523344[_0x18b580(0x199)](_0x200a51),_0x56df0d=_0x523344[_0x18b580(0x1aa)](_0x200a51),_0x305d9c=_0x37ec39[_0x18b580(0x1a5)]+0x1,_0x428c4a=_0x56df0d[_0x18b580(0x1ae)],_0x44d189=_0x200a51[0x0][_0x18b580(0x19e)](_0x18b580(0x15a));for(let _0x522d38=0x0;_0x522d38<_0x29d5fd;_0x522d38++)_0x523344[_0x18b580(0x163)](_0x44d189,{'at':_0x305d9c});return _0x44d189[_0x18b580(0x161)](_0x305d9c)[_0x18b580(0x161)](_0x428c4a);}[_0x25da33(0x17a)](_0x2e45d4,_0x192ad6){const _0x1dc093=_0x25da33,{plugins:_0x33d5b2}=this[_0x1dc093(0x158)],{model:_0x41b544}=_0x2e45d4;if(!_0x33d5b2[_0x1dc093(0x14d)](_0x1dc093(0x171)))return;_0x33d5b2[_0x1dc093(0x190)](_0x1dc093(0x171))[_0x1dc093(0x19d)](_0x192ad6)[_0x1dc093(0x1af)]&&_0x41b544[_0x1dc093(0x1a1)](_0x192ad6);}}
|
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
|
*/
|