@ckeditor/ckeditor5-ai 44.0.0 → 44.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/adapters/aiadapter.d.ts +1 -1
- package/dist/adapters/aitextadapter.d.ts +1 -1
- package/dist/adapters/awstextadapter.d.ts +1 -1
- package/dist/adapters/openaitextadapter.d.ts +1 -1
- package/dist/aiassistant.d.ts +1 -1
- package/dist/aiassistantediting.d.ts +1 -1
- package/dist/aiassistantui.d.ts +1 -1
- package/dist/aiconfig.d.ts +1 -1
- package/dist/augmentation.d.ts +1 -1
- package/dist/index.css +7 -7
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/legacyerrors.d.ts +1 -1
- 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/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/dist/ui/aiassistantcontroller.d.ts +1 -1
- package/dist/ui/form/aiformcontentarea.d.ts +1 -1
- package/dist/ui/form/aiformerrorview.d.ts +1 -1
- package/dist/ui/form/aiformpromptview.d.ts +1 -1
- package/dist/ui/form/aiformtoolbarview.d.ts +1 -1
- package/dist/ui/form/aiformview.d.ts +1 -1
- package/dist/ui/form/aihistorylistitemview.d.ts +1 -1
- package/dist/ui/form/aihistorylistview.d.ts +1 -1
- package/dist/ui/form/prompthistory.d.ts +1 -1
- package/dist/ui/showaiassistantcommand.d.ts +1 -1
- package/dist/utils/common-translations.d.ts +1 -1
- package/dist/utils/normalizecommandsconfig.d.ts +1 -1
- package/package.json +8 -8
- package/src/adapters/aiadapter.d.ts +1 -1
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.d.ts +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.d.ts +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.d.ts +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.d.ts +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.d.ts +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.d.ts +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/aiconfig.d.ts +1 -1
- package/src/augmentation.d.ts +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/src/legacyerrors.d.ts +1 -1
- package/src/legacyerrors.js +1 -1
- package/src/ui/aiassistantcontroller.d.ts +1 -1
- 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 +1 -1
- 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 +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/normalizecommandsconfig.d.ts +1 -1
- package/src/utils/normalizecommandsconfig.js +1 -1
- package/theme/ai-dropdown.css +1 -1
- package/theme/ai-form.css +1 -1
- package/theme/ai.css +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x2e49(_0x4547c1,_0x4b8e32){const _0x367f9d=_0x367f();return _0x2e49=function(_0x2e4919,_0x5b1a3b){_0x2e4919=_0x2e4919-0x1d7;let _0x2c8ea8=_0x367f9d[_0x2e4919];return _0x2c8ea8;},_0x2e49(_0x4547c1,_0x4b8e32);}function _0x367f(){const _0x3ad5ec=['length','cohere.command','_processProxyRequest','4EvAOpI','\x0a\x0aAssistant:','data','44285wsRihv','_readAsyncIterableResponse','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.','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','getReader','POST','Human:\x0a','208nTpddg','_bedrockClientConfig','join','send','_requestHeaders','ai.aws.requestHeaders','locale','preparePrompt','bytes','_requestParameters','11SKGElm','resolve','application/json','ai21.j2','editor','decode','anthropic.claude-v2','anthropic.claude','text','filter','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.','json','_readStreamableResponse','generations','_processAWSRequest','ai.aws.requestParameters','sendRequest','680865PFTDeT','bedrock-2023-05-31','24648lwjAId','ai.aws.bedrockClientConfig','body','61901GUINXu','_getGeneratedText','split','stringify','chunk','abortController','parse','AWSTextAdapter','utf-8','get','config','<<SYS>>\x0a','completion','completions','toString','_prepareRequestHeaders','test','Instruction:\x0a','read','define','_readStaticResponse','_apiUrl','844836YCJoTH','1329130pvkXht','getModelFamily','\x0a<</SYS>>\x0a[INST]\x0a','signal','utf8','2JTLAdI','1766511FbwuAi','map','pluginName','_prepareRequestParameters','ai.aws.apiUrl','\x0a[/INST]','meta.llama','generation','from','AI_ERROR_UNSUPPORTED_MODEL'];_0x367f=function(){return _0x3ad5ec;};return _0x367f();}const _0x1fa22d=_0x2e49;(function(_0x1ceb8e,_0x201650){const _0x1d12db=_0x2e49,_0x47df7b=_0x1ceb8e();while(!![]){try{const _0x5a6682=-parseInt(_0x1d12db(0x204))/0x1*(-parseInt(_0x1d12db(0x1f3))/0x2)+-parseInt(_0x1d12db(0x1ed))/0x3*(parseInt(_0x1d12db(0x201))/0x4)+parseInt(_0x1d12db(0x226))/0x5+parseInt(_0x1d12db(0x228))/0x6+-parseInt(_0x1d12db(0x1d7))/0x7*(-parseInt(_0x1d12db(0x20b))/0x8)+parseInt(_0x1d12db(0x1f4))/0x9+-parseInt(_0x1d12db(0x1ee))/0xa*(parseInt(_0x1d12db(0x215))/0xb);if(_0x5a6682===_0x201650)break;else _0x47df7b['push'](_0x47df7b['shift']());}catch(_0xa53aac){_0x47df7b['push'](_0x47df7b['shift']());}}}(_0x367f,0x2fe8e));import{default as _0x297eb2}from'./aitextadapter.js';import{AIRequestError as _0x218b84}from'./aiadapter.js';import{BedrockRuntimeClient as _0x1bdac2,InvokeModelCommand as _0x4f2c25,InvokeModelWithResponseStreamCommand as _0x2d67b2}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x5285d2}from'../utils/common-translations.js';export default class O extends _0x297eb2{static get[_0x1fa22d(0x1f6)](){const _0xcd456f=_0x1fa22d;return _0xcd456f(0x1de);}constructor(_0x3e513d){const _0x415716=_0x1fa22d;super(_0x3e513d),_0x3e513d[_0x415716(0x1e1)][_0x415716(0x1e0)](_0x415716(0x224))||_0x3e513d[_0x415716(0x1e1)][_0x415716(0x1ea)](_0x415716(0x224),{'model':_0x415716(0x21b),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x415716(0x227),'stream':!0x0}),this[_0x415716(0x1ec)]=_0x3e513d[_0x415716(0x1e1)][_0x415716(0x1e0)](_0x415716(0x1f8)),this[_0x415716(0x20c)]=_0x3e513d[_0x415716(0x1e1)][_0x415716(0x1e0)](_0x415716(0x229)),this[_0x415716(0x20f)]=_0x3e513d[_0x415716(0x1e1)][_0x415716(0x1e0)](_0x415716(0x210)),this[_0x415716(0x214)]=_0x3e513d[_0x415716(0x1e1)][_0x415716(0x1e0)](_0x415716(0x224));}async[_0x1fa22d(0x225)]({query:_0x49f3f7,context:_0x34c9ad,onData:_0x156336,actionId:_0x3d6c6e}){const _0x2f4b64=_0x1fa22d,{model:_0x3515a2,stream:_0x11e757,..._0x14d8f4}=await this[_0x2f4b64(0x1f7)](this[_0x2f4b64(0x214)],_0x3d6c6e),_0x10a7af={'prompt':await this[_0x2f4b64(0x212)](_0x49f3f7,_0x34c9ad,_0x3515a2,_0x3d6c6e),..._0x14d8f4};this[_0x2f4b64(0x1ec)]?await this[_0x2f4b64(0x200)](_0x10a7af,_0x3515a2,_0x11e757,_0x156336,_0x3d6c6e):await this[_0x2f4b64(0x223)](_0x10a7af,_0x3515a2,_0x11e757,_0x156336);}async[_0x1fa22d(0x212)](_0x3f9753,_0x557629,_0x1822f6,_0x34088b){const _0x66db74=_0x1fa22d;let _0x39eb7b,_0x5443cb;return _0x557629?(_0x39eb7b=_0x66db74(0x21f),_0x5443cb=_0x66db74(0x1e8)+_0x3f9753+_0x66db74(0x207)+_0x557629):(_0x39eb7b=_0x66db74(0x206),_0x5443cb=_0x3f9753),_0x66db74(0x1fa)==this[_0x66db74(0x1ef)](_0x1822f6)?_0x66db74(0x1e2)+_0x39eb7b+_0x66db74(0x1f0)+_0x5443cb+_0x66db74(0x1f9):_0x66db74(0x20a)+_0x39eb7b+'\x0a'+_0x5443cb+_0x66db74(0x202);}[_0x1fa22d(0x1ef)](_0x5203a0){const _0x43972e=_0x1fa22d;if(/^anthropic\.claude/[_0x43972e(0x1e7)](_0x5203a0))return _0x43972e(0x21c);if(/^ai21\.j2/[_0x43972e(0x1e7)](_0x5203a0))return _0x43972e(0x218);if(/^cohere\.command/[_0x43972e(0x1e7)](_0x5203a0))return _0x43972e(0x1ff);if(/^meta\.llama/[_0x43972e(0x1e7)](_0x5203a0))return _0x43972e(0x1fa);throw new _0x218b84(_0x5285d2(this[_0x43972e(0x219)][_0x43972e(0x211)],_0x43972e(0x1fd),_0x5203a0));}async[_0x1fa22d(0x200)](_0x29292a,_0x14fea8,_0x58a4da,_0x337bdc,_0x58e54f){const _0x3936da=_0x1fa22d,_0x49fd24={'method':_0x3936da(0x209),'headers':await this[_0x3936da(0x1e6)](this[_0x3936da(0x20f)],_0x58e54f),'body':JSON[_0x3936da(0x1da)]({..._0x29292a,'model':_0x14fea8,'stream':_0x58a4da}),'signal':this[_0x3936da(0x1dc)][_0x3936da(0x1f1)]},_0x1f95d1=await fetch(this[_0x3936da(0x1ec)],_0x49fd24);_0x58a4da?await this[_0x3936da(0x221)](_0x1f95d1,_0x14fea8,_0x337bdc):await this[_0x3936da(0x1eb)](_0x1f95d1,_0x14fea8,_0x337bdc);}async[_0x1fa22d(0x223)](_0x11bb46,_0x96ecae,_0x49692f,_0x35868c){const _0x4e9cfb=_0x1fa22d,_0x15c284=new _0x1bdac2(this[_0x4e9cfb(0x20c)]),_0x46d053={'body':JSON[_0x4e9cfb(0x1da)](_0x11bb46),'contentType':_0x4e9cfb(0x217),'accept':_0x4e9cfb(0x217),'modelId':_0x96ecae};let _0xc7cf3c;if(_0x49692f){const _0x1d9bec=new _0x2d67b2(_0x46d053);_0xc7cf3c=await _0x15c284[_0x4e9cfb(0x20e)](_0x1d9bec,{'abortSignal':this[_0x4e9cfb(0x1dc)][_0x4e9cfb(0x1f1)]}),await this[_0x4e9cfb(0x205)](_0xc7cf3c,_0x96ecae,_0x35868c);}else{const _0x4dd171=new _0x4f2c25(_0x46d053);_0xc7cf3c=await _0x15c284[_0x4e9cfb(0x20e)](_0x4dd171,{'abortSignal':this[_0x4e9cfb(0x1dc)][_0x4e9cfb(0x1f1)]}),await this[_0x4e9cfb(0x1eb)](_0xc7cf3c,_0x96ecae,_0x35868c);}}async[_0x1fa22d(0x205)](_0x3e1cd0,_0x1b6c6a,_0x3d7305){const _0x3290af=_0x1fa22d,_0x195ad6=_0x3e1cd0[_0x3290af(0x22a)],_0x1718a9=new TextDecoder(_0x3290af(0x1df));let _0x597c0e='';for await(const _0x9bf5c6 of _0x195ad6)if(_0x9bf5c6[_0x3290af(0x1db)]){const _0xf18b0=_0x1718a9[_0x3290af(0x21a)](_0x9bf5c6[_0x3290af(0x1db)][_0x3290af(0x213)]),_0x1fb257=JSON[_0x3290af(0x1dd)](_0xf18b0);_0x597c0e+=this[_0x3290af(0x1d8)](_0x1fb257,_0x1b6c6a),_0x3d7305(_0x597c0e);}return Promise[_0x3290af(0x216)]();}async[_0x1fa22d(0x221)](_0x3ab879,_0x5f4d73,_0xe6888c){const _0xe3091e=_0x1fa22d,_0x3b3918=_0x3ab879[_0xe3091e(0x22a)],_0x383d25=new TextDecoder(_0xe3091e(0x1df)),_0x7306f2=_0x3b3918[_0xe3091e(0x208)]();let _0x3b8ecc='',_0x433407='',_0x54e3b4=!0x1;for(;!_0x54e3b4;){const {done:_0x5c0b32,value:_0xb76b17}=await _0x7306f2[_0xe3091e(0x1e9)]();if(_0x54e3b4=_0x5c0b32,_0x54e3b4)break;const _0x3fecab=(_0x3b8ecc+_0x383d25[_0xe3091e(0x21a)](_0xb76b17))[_0xe3091e(0x1d9)]('\x0a')[_0xe3091e(0x1f5)](_0x58b3c0=>{const _0x3b21d5=_0xe3091e;try{return _0x3b8ecc='',JSON[_0x3b21d5(0x1dd)](_0x58b3c0);}catch(_0x4b45ea){return _0x3b8ecc=_0x58b3c0,null;}})[_0xe3091e(0x21e)](_0x284f72=>null!==_0x284f72);_0x3fecab[_0xe3091e(0x1fe)]&&(_0x433407+=_0x3fecab[_0xe3091e(0x1f5)](_0x33d606=>this[_0xe3091e(0x1d8)](_0x33d606,_0x5f4d73))[_0xe3091e(0x20d)](''),_0xe6888c(_0x433407));}return Promise[_0xe3091e(0x216)]();}async[_0x1fa22d(0x1eb)](_0x829333,_0x3161ec,_0x4b9794){const _0x53cfb2=_0x1fa22d;let _0x473f2b;return _0x473f2b=_0x829333 instanceof Response?await _0x829333[_0x53cfb2(0x220)]():JSON[_0x53cfb2(0x1dd)](Buffer[_0x53cfb2(0x1fc)](_0x829333[_0x53cfb2(0x22a)])[_0x53cfb2(0x1e5)](_0x53cfb2(0x1f2))),(_0x4b9794(this[_0x53cfb2(0x1d8)](_0x473f2b,_0x3161ec)),Promise[_0x53cfb2(0x216)]());}[_0x1fa22d(0x1d8)](_0x501079,_0x57f2ca){const _0x8b1fab=_0x1fa22d;switch(this[_0x8b1fab(0x1ef)](_0x57f2ca)){case _0x8b1fab(0x21c):return _0x501079[_0x8b1fab(0x1e3)];case _0x8b1fab(0x218):return _0x501079[_0x8b1fab(0x1e4)][0x0][_0x8b1fab(0x203)][_0x8b1fab(0x21d)];case _0x8b1fab(0x1ff):return _0x501079[_0x8b1fab(0x222)][0x0][_0x8b1fab(0x21d)];case _0x8b1fab(0x1fa):return _0x501079[_0x8b1fab(0x1fb)];}}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/adapters/openaitextadapter
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59766f=_0x5da8;function _0x5da8(_0x159c66,_0x2ae313){const _0x36b941=_0x36b9();return _0x5da8=function(_0x5da85d,_0x592b79){_0x5da85d=_0x5da85d-0x6f;let _0x15235f=_0x36b941[_0x5da85d];return _0x15235f;},_0x5da8(_0x159c66,_0x2ae313);}(function(_0x25684e,_0x45a19a){const _0x2ee2ee=_0x5da8,_0x1fa3e6=_0x25684e();while(!![]){try{const _0x11ed48=parseInt(_0x2ee2ee(0x96))/0x1*(parseInt(_0x2ee2ee(0x70))/0x2)+parseInt(_0x2ee2ee(0xa1))/0x3+parseInt(_0x2ee2ee(0x82))/0x4*(parseInt(_0x2ee2ee(0xb1))/0x5)+-parseInt(_0x2ee2ee(0x98))/0x6*(parseInt(_0x2ee2ee(0x90))/0x7)+parseInt(_0x2ee2ee(0x71))/0x8+parseInt(_0x2ee2ee(0xae))/0x9*(parseInt(_0x2ee2ee(0x97))/0xa)+-parseInt(_0x2ee2ee(0x9d))/0xb*(parseInt(_0x2ee2ee(0x85))/0xc);if(_0x11ed48===_0x45a19a)break;else _0x1fa3e6['push'](_0x1fa3e6['shift']());}catch(_0x42cb6b){_0x1fa3e6['push'](_0x1fa3e6['shift']());}}}(_0x36b9,0x881ad));function _0x36b9(){const _0x1486f9=['Instruction:\x0a','get','decode','_readStaticResponse','locale','abortController','_apiUrl','POST','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.','ai.openAI.apiUrl','replace','ai.openAI.requestParameters','data:\x20','7324nwcPHM','length','_readStreamableResponse','166956QbAKlZ','content','_prepareRequestParameters','join','prepareMessages','_requestHeaders','gpt-3.5-turbo','json','body','config','parse','7ZPoeSp','editor','text','_prepareRequestHeaders','map','filter','5207kLCHVJ','9710DrTeoS','697848NZiFIu','resolve','reject','split','user','2057FpPArE','stringify','message','sendRequest','3326280boAGYO','pluginName','OpenAITextAdapter','getReader','includes','Moderation','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','delta','choices','_cleanUpData','AI_ERROR_CONTEXT_LENGTH','system','_requestParameters','7632lOpLNX','read','[DONE]','1645dKzAoO','stream','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','_isBufferIncomplete','define','https://api.openai.com/v1/chat/completions','AI_ERROR_MODERATION','214uxbPNH','1470464mVlmYX','signal','ai.openAI.requestHeaders','context_length_exceeded'];_0x36b9=function(){return _0x1486f9;};return _0x36b9();}import{default as _0x13d4fa}from'./aitextadapter.js';import{AIRequestError as _0x4b987f}from'./aiadapter.js';import{getTranslation as _0x17c1ce}from'../utils/common-translations.js';export default class H extends _0x13d4fa{static get[_0x59766f(0xa2)](){const _0x1f33ec=_0x59766f;return _0x1f33ec(0xa3);}constructor(_0x213cb3){const _0x425e3b=_0x59766f;super(_0x213cb3),_0x213cb3[_0x425e3b(0x8e)][_0x425e3b(0xb5)](_0x425e3b(0x7e),_0x425e3b(0xb6)),_0x213cb3[_0x425e3b(0x8e)][_0x425e3b(0x76)](_0x425e3b(0x80))||_0x213cb3[_0x425e3b(0x8e)][_0x425e3b(0xb5)](_0x425e3b(0x80),{'model':_0x425e3b(0x8b),'max_tokens':0x7d0,'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x425e3b(0x7b)]=_0x213cb3[_0x425e3b(0x8e)][_0x425e3b(0x76)](_0x425e3b(0x7e)),this[_0x425e3b(0x8a)]=_0x213cb3[_0x425e3b(0x8e)][_0x425e3b(0x76)](_0x425e3b(0x73))||{},this[_0x425e3b(0xad)]=_0x213cb3[_0x425e3b(0x8e)][_0x425e3b(0x76)](_0x425e3b(0x80));}async[_0x59766f(0xa0)]({query:_0x4da24c,context:_0x5cb153,onData:_0x442d50,actionId:_0x508a7f}){const _0x14ea3f=_0x59766f,_0x294c19=this[_0x14ea3f(0x91)][_0x14ea3f(0x79)],_0x355360=await this[_0x14ea3f(0x89)](_0x4da24c,_0x5cb153,_0x508a7f),_0x30c44d=await this[_0x14ea3f(0x93)](this[_0x14ea3f(0x8a)],_0x508a7f),_0x28316d=await this[_0x14ea3f(0x87)](this[_0x14ea3f(0xad)],_0x508a7f),_0x5d5603={'messages':_0x355360,..._0x28316d},_0x558241={'method':_0x14ea3f(0x7c),'headers':_0x30c44d,'body':JSON[_0x14ea3f(0x9e)](_0x5d5603),'signal':this[_0x14ea3f(0x7a)][_0x14ea3f(0x72)]},_0x331503=await fetch(this[_0x14ea3f(0x7b)],_0x558241);if(_0x331503['ok'])return _0x28316d[_0x14ea3f(0xb2)]?await this[_0x14ea3f(0x84)](_0x331503,_0x442d50):await this[_0x14ea3f(0x78)](_0x331503,_0x442d50),Promise[_0x14ea3f(0x99)]();{const _0x5164e8=await _0x331503[_0x14ea3f(0x92)]();return _0x5164e8[_0x14ea3f(0xa5)](_0x14ea3f(0x74))?Promise[_0x14ea3f(0x9a)](new _0x4b987f(_0x17c1ce(_0x294c19,_0x14ea3f(0xab)))):_0x5164e8[_0x14ea3f(0xa5)](_0x14ea3f(0xa6))?Promise[_0x14ea3f(0x9a)](new _0x4b987f(_0x17c1ce(_0x294c19,_0x14ea3f(0x6f)))):Promise[_0x14ea3f(0x9a)](new Error(_0x5164e8));}}async[_0x59766f(0x89)](_0x5b6c93,_0x32c968,_0x255d1e){const _0x56ef61=_0x59766f;let _0x385c89,_0x4aaf2b;return _0x32c968?(_0x385c89=_0x56ef61(0x7d),_0x4aaf2b=_0x56ef61(0x75)+_0x5b6c93+_0x56ef61(0xb3)+_0x32c968):(_0x385c89=_0x56ef61(0xa7),_0x4aaf2b=_0x5b6c93),[{'role':_0x56ef61(0xac),'content':_0x385c89},{'role':_0x56ef61(0x9c),'content':_0x4aaf2b}];}async[_0x59766f(0x84)](_0x34e3fa,_0x4f5827){const _0x44d836=_0x59766f,_0x889e2f=_0x34e3fa[_0x44d836(0x8d)][_0x44d836(0xa4)](),_0x4c0ba8=new TextDecoder();let _0x15e5d2='',_0x1be0cc='',_0x105f8a='',_0x1806aa=!0x1;for(;!_0x1806aa;){const {done:_0xa363e3,value:_0x3773ca}=await _0x889e2f[_0x44d836(0xaf)](),_0x1db6b=_0x15e5d2+_0x4c0ba8[_0x44d836(0x77)](_0x3773ca);let _0x3d84d9='';_0x1806aa=_0xa363e3;try{_0x3d84d9=this[_0x44d836(0xaa)](_0x1db6b),_0x15e5d2='';}catch(_0x196b1c){_0x15e5d2=_0x1db6b;continue;}_0x1be0cc+=_0x3d84d9,!_0x1806aa&&this[_0x44d836(0xb4)](_0x1be0cc)||_0x1be0cc&&(_0x105f8a+=_0x1be0cc,_0x1be0cc='',_0x4f5827(_0x105f8a));}return Promise[_0x44d836(0x99)]();}async[_0x59766f(0x78)](_0x748f04,_0x46e80d){const _0x386166=_0x59766f;return _0x46e80d((await _0x748f04[_0x386166(0x8c)]())[_0x386166(0xa9)][0x0][_0x386166(0x9f)][_0x386166(0x86)]),Promise[_0x386166(0x99)]();}[_0x59766f(0xb4)](_0xfb2f15){const _0x148622=_0x59766f,_0x4f53cb=_0xfb2f15[_0x148622(0x9b)]('<')[_0x148622(0x83)]!==_0xfb2f15[_0x148622(0x9b)]('>')[_0x148622(0x83)],_0x1923a8=_0xfb2f15[_0x148622(0x83)]<0x1e;return _0x4f53cb&&_0x1923a8;}[_0x59766f(0xaa)](_0x3fa981){const _0x2043e8=_0x59766f;return _0x3fa981[_0x2043e8(0x9b)](/\n(?![^{]*\})/g)[_0x2043e8(0x94)](_0x2540fd=>_0x2540fd[_0x2043e8(0x7f)](_0x2043e8(0x81),''))[_0x2043e8(0x95)](_0x446de4=>_0x446de4&&_0x446de4[_0x2043e8(0x83)]>0x0&&_0x2043e8(0xb0)!==_0x446de4)[_0x2043e8(0x94)](_0x3cf5be=>{const _0x5535c5=_0x2043e8,{choices:_0x5d9919}=JSON[_0x5535c5(0x8f)](_0x3cf5be);if(_0x5d9919[0x0]&&_0x5d9919[0x0][_0x5535c5(0xa8)]&&_0x5d9919[0x0][_0x5535c5(0xa8)][_0x5535c5(0x86)])return _0x5d9919[0x0][_0x5535c5(0xa8)][_0x5535c5(0x86)];})[_0x2043e8(0x95)](_0x49eb5f=>_0x49eb5f)[_0x2043e8(0x88)]('');}}
|
package/src/aiassistant.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aiassistant
|
package/src/aiassistant.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x231a58=_0xd9d3;(function(_0x3e056a,_0x4d9343){const _0x545454=_0xd9d3,_0x188789=_0x3e056a();while(!![]){try{const _0x5c1d6e=-parseInt(_0x545454(0x24b))/0x1+-parseInt(_0x545454(0x24e))/0x2*(-parseInt(_0x545454(0x24a))/0x3)+parseInt(_0x545454(0x1f0))/0x4+parseInt(_0x545454(0x20b))/0x5*(parseInt(_0x545454(0x1ee))/0x6)+-parseInt(_0x545454(0x202))/0x7+-parseInt(_0x545454(0x242))/0x8+parseInt(_0x545454(0x1f5))/0x9;if(_0x5c1d6e===_0x4d9343)break;else _0x188789['push'](_0x188789['shift']());}catch(_0x29b74e){_0x188789['push'](_0x188789['shift']());}}}(_0x22c0,0x3dad7));import{Plugin as _0x10ee71}from'ckeditor5/src/core.js';import _0x41a389 from'./aiassistantui.js';import _0x514f2b from'./aiassistantediting.js';import{getTranslation as _0x362249}from'./utils/common-translations.js';function _0xd9d3(_0xebf5eb,_0x46df2a){const _0x22c08d=_0x22c0();return _0xd9d3=function(_0xd9d33e,_0x2589ef){_0xd9d33e=_0xd9d33e-0x1e5;let _0x412fae=_0x22c08d[_0xd9d33e];return _0x412fae;},_0xd9d3(_0xebf5eb,_0x46df2a);}function _0x22c0(){const _0x341f40=['define','editOrReview','push','German','requires','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','concat','Change\x20style','2479722aELTXg','Poetic','ai.aiAssistant.removeCommands','English','isOfficialPlugin','makeLonger','commands','config','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','48230YFyIuP','Summarize','ai.aiAssistant.extraCommandGroups','Make\x20longer','Spanish','translatePortuguese','continue','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','simplifyLanguage','Direct','Generate\x20from\x20selection','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','confident','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','filter','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','changeStyle','groupId','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','pluginName','translateEnglish','Translate','get','translate','improveWriting','Simplified\x20Chinese','isPremiumPlugin','summarize','Portuguese','Continue','Friendly','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','journalism','generate','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Translate\x20the\x20content\x20to\x20German\x20language.','locale','Edit\x20or\x20review','Change\x20tone','forEach','Hindi','find','casual','translateGerman','translateHindi','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','direct','poetic','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Casual','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Simplify\x20language','Professional','2051728quHxdl','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','includes','translateFrench','translateChinese','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','set','Business','15uRbbhY','394537fxHKAK','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Confident','107842cjhiVq','Improve\x20writing','makeShorter','friendly','changeTone','Translate\x20the\x20content\x20to\x20French\x20language.','legal','business','Journalism','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Legal','translateSpanish','Translate\x20the\x20content\x20to\x20English\x20language.','276LrcMEi','translateArabic','1082924pFbYAP','French','professional','ai.aiAssistant.commands','AIAssistant','2464452kKzVTC','Arabic','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Make\x20shorter'];_0x22c0=function(){return _0x341f40;};return _0x22c0();}import{normalizeCommandsConfig as _0xddddeb}from'./utils/normalizecommandsconfig.js';export default class r extends _0x10ee71{static get[_0x231a58(0x1fe)](){return[_0x41a389,_0x514f2b];}static get[_0x231a58(0x21e)](){const _0x2e67a8=_0x231a58;return _0x2e67a8(0x1f4);}static get[_0x231a58(0x206)](){return!0x0;}static get[_0x231a58(0x225)](){return!0x0;}constructor(_0x1c1c18){const _0x2ab9a9=_0x231a58;super(_0x1c1c18);const _0xfce867=_0x1c1c18[_0x2ab9a9(0x209)],_0xcf821c=_0x1c1c18[_0x2ab9a9(0x22f)];_0xfce867[_0x2ab9a9(0x1fa)](_0x2ab9a9(0x1f3),getDefaultCommands(_0xcf821c)),_0xfce867[_0x2ab9a9(0x1fa)](_0x2ab9a9(0x20d),[]),_0xfce867[_0x2ab9a9(0x1fa)](_0x2ab9a9(0x204),[]);const _0x37dcf7=_0xddddeb(_0xfce867[_0x2ab9a9(0x221)](_0x2ab9a9(0x1f3)),_0xcf821c),_0x526c0e=_0xfce867[_0x2ab9a9(0x221)](_0x2ab9a9(0x20d)),_0x3f1d4d=_0xfce867[_0x2ab9a9(0x221)](_0x2ab9a9(0x204));_0x526c0e[_0x2ab9a9(0x232)](_0x901e40=>{const _0x1a5fe4=_0x2ab9a9,_0x30e7b1=_0x37dcf7[_0x1a5fe4(0x234)](_0x33cee5=>_0x33cee5[_0x1a5fe4(0x21c)]===_0x901e40[_0x1a5fe4(0x21c)]);_0x30e7b1?_0x30e7b1[_0x1a5fe4(0x208)]=_0x30e7b1[_0x1a5fe4(0x208)][_0x1a5fe4(0x200)](_0x901e40[_0x1a5fe4(0x208)]):_0x37dcf7[_0x1a5fe4(0x1fc)](_0x901e40);}),_0x37dcf7[_0x2ab9a9(0x232)](_0x3e8bd8=>{const _0x3db167=_0x2ab9a9;_0x3e8bd8[_0x3db167(0x208)]=_0x3e8bd8[_0x3db167(0x208)][_0x3db167(0x219)](_0x4710c8=>!_0x3f1d4d[_0x3db167(0x244)](_0x4710c8['id']));}),_0xfce867[_0x2ab9a9(0x248)](_0x2ab9a9(0x1f3),_0x37dcf7);}}export function getDefaultCommands(_0x536ee3){const _0x4a8492=_0x231a58;return[{'groupId':_0x4a8492(0x1fb),'groupLabel':_0x362249(_0x536ee3,_0x4a8492(0x230)),'commands':[{'id':_0x4a8492(0x223),'label':_0x362249(_0x536ee3,_0x4a8492(0x24f)),'prompt':_0x4a8492(0x238)},{'id':_0x4a8492(0x250),'label':_0x362249(_0x536ee3,_0x4a8492(0x1f9)),'prompt':_0x4a8492(0x1ea)},{'id':_0x4a8492(0x207),'label':_0x362249(_0x536ee3,_0x4a8492(0x20e)),'prompt':_0x4a8492(0x22d)},{'id':_0x4a8492(0x213),'label':_0x362249(_0x536ee3,_0x4a8492(0x240)),'prompt':_0x4a8492(0x23f)}]},{'groupId':_0x4a8492(0x22c),'groupLabel':_0x362249(_0x536ee3,_0x4a8492(0x215)),'commands':[{'id':_0x4a8492(0x226),'label':_0x362249(_0x536ee3,_0x4a8492(0x20c)),'prompt':_0x4a8492(0x216)},{'id':_0x4a8492(0x211),'label':_0x362249(_0x536ee3,_0x4a8492(0x228)),'prompt':_0x4a8492(0x218)}]},{'groupId':_0x4a8492(0x1e5),'groupLabel':_0x362249(_0x536ee3,_0x4a8492(0x231)),'commands':[{'id':_0x4a8492(0x1f2),'label':_0x362249(_0x536ee3,_0x4a8492(0x241)),'prompt':_0x4a8492(0x243)},{'id':_0x4a8492(0x235),'label':_0x362249(_0x536ee3,_0x4a8492(0x23e)),'prompt':_0x4a8492(0x212)},{'id':_0x4a8492(0x23b),'label':_0x362249(_0x536ee3,_0x4a8492(0x214)),'prompt':_0x4a8492(0x23a)},{'id':_0x4a8492(0x217),'label':_0x362249(_0x536ee3,_0x4a8492(0x24d)),'prompt':_0x4a8492(0x21d)},{'id':_0x4a8492(0x251),'label':_0x362249(_0x536ee3,_0x4a8492(0x229)),'prompt':_0x4a8492(0x247)}]},{'groupId':_0x4a8492(0x21b),'groupLabel':_0x362249(_0x536ee3,_0x4a8492(0x201)),'commands':[{'id':_0x4a8492(0x1e8),'label':_0x362249(_0x536ee3,_0x4a8492(0x249)),'prompt':_0x4a8492(0x22a)},{'id':_0x4a8492(0x1e7),'label':_0x362249(_0x536ee3,_0x4a8492(0x1eb)),'prompt':_0x4a8492(0x20a)},{'id':_0x4a8492(0x22b),'label':_0x362249(_0x536ee3,_0x4a8492(0x1e9)),'prompt':_0x4a8492(0x23d)},{'id':_0x4a8492(0x23c),'label':_0x362249(_0x536ee3,_0x4a8492(0x203)),'prompt':_0x4a8492(0x239)}]},{'groupId':_0x4a8492(0x222),'groupLabel':_0x362249(_0x536ee3,_0x4a8492(0x220)),'commands':[{'id':_0x4a8492(0x21f),'label':_0x362249(_0x536ee3,_0x4a8492(0x205)),'prompt':_0x4a8492(0x1ed)},{'id':_0x4a8492(0x1ec),'label':_0x362249(_0x536ee3,_0x4a8492(0x20f)),'prompt':_0x4a8492(0x1f7)},{'id':_0x4a8492(0x210),'label':_0x362249(_0x536ee3,_0x4a8492(0x227)),'prompt':_0x4a8492(0x21a)},{'id':_0x4a8492(0x236),'label':_0x362249(_0x536ee3,_0x4a8492(0x1fd)),'prompt':_0x4a8492(0x22e)},{'id':_0x4a8492(0x245),'label':_0x362249(_0x536ee3,_0x4a8492(0x1f1)),'prompt':_0x4a8492(0x1e6)},{'id':_0x4a8492(0x246),'label':_0x362249(_0x536ee3,_0x4a8492(0x224)),'prompt':_0x4a8492(0x1ff)},{'id':_0x4a8492(0x237),'label':_0x362249(_0x536ee3,_0x4a8492(0x233)),'prompt':_0x4a8492(0x1f8)},{'id':_0x4a8492(0x1ef),'label':_0x362249(_0x536ee3,_0x4a8492(0x1f6)),'prompt':_0x4a8492(0x24c)}]}];}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
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
6
|
import type { Position } from 'ckeditor5/src/engine.js';
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x4641(){const _0x5ecfb6=['getLastMatchingPosition','97368KRNVbO','start','setSelection','has','change','getSelectedBlocks','markerToElement','markerRange','265nkJEwB','toModel','6PuEGHg','addMarker','join','init','model','insertContentBelow','get','8UPRneX','isAtEnd','createRange','markerToHighlight','createUIElement','fromCharCode','insertContent','getLastPosition','schema','canEditAt','data','hideFakeVisualSelection','document','addClass','ai.useTheme','getFirstRange','href','updateMarker','741633ntBntN','for','pop','toView','294213FBfLyy','isPremiumPlugin','ai-ui','getRange','createPositionAfter','length','createSelection','push','isOfficialPlugin','ck-fake-ai-selection','from','AIAssistantEditing','editingDowncast','pluginName','conversion','5864804BeOjJs','map','removeMarker','isCollapsed','editor','config','afterInit','ck-ai-assistant-ui_theme','markers','span','showFakeVisualSelection','153nAIMaf','164950AqOrMJ','1364244HyufCU','ck-fake-ai-selection_collapsed','88602vOuLJY','isContent','processor','end','selection'];_0x4641=function(){return _0x5ecfb6;};return _0x4641();}const _0x217b5b=_0x462c;(function(_0x582286,_0x6b99fa){const _0x218d9c=_0x462c,_0x38c8b8=_0x582286();while(!![]){try{const _0x30a4a3=parseInt(_0x218d9c(0x189))/0x1+-parseInt(_0x218d9c(0x16c))/0x2*(parseInt(_0x218d9c(0x185))/0x3)+parseInt(_0x218d9c(0x162))/0x4+parseInt(_0x218d9c(0x16a))/0x5*(parseInt(_0x218d9c(0x15c))/0x6)+parseInt(_0x218d9c(0x15a))/0x7*(-parseInt(_0x218d9c(0x173))/0x8)+-parseInt(_0x218d9c(0x158))/0x9*(parseInt(_0x218d9c(0x159))/0xa)+parseInt(_0x218d9c(0x14d))/0xb;if(_0x30a4a3===_0x6b99fa)break;else _0x38c8b8['push'](_0x38c8b8['shift']());}catch(_0x5c57d1){_0x38c8b8['push'](_0x38c8b8['shift']());}}}(_0x4641,0x65e96));import{uid as _0x1e52ff}from'ckeditor5/src/utils.js';import{Plugin as _0x5cd6d4}from'ckeditor5/src/core.js';const u=_0x217b5b(0x18b);function _0x462c(_0x3e32e4,_0x45dd09){const _0x46410f=_0x4641();return _0x462c=function(_0x462ccd,_0x20a867){_0x462ccd=_0x462ccd-0x146;let _0x22d6bf=_0x46410f[_0x462ccd];return _0x22d6bf;},_0x462c(_0x3e32e4,_0x45dd09);}export default class a extends _0x5cd6d4{static get[_0x217b5b(0x14b)](){const _0x309d51=_0x217b5b;return _0x309d51(0x149);}static get[_0x217b5b(0x146)](){return!0x0;}static get[_0x217b5b(0x18a)](){return!0x0;}[_0x217b5b(0x16f)](){const _0x221fa7=_0x217b5b,{editor:_0x2bb553}=this,_0x1c4da8=[_0x221fa7(0x147)];_0x2bb553[_0x221fa7(0x152)][_0x221fa7(0x172)](_0x221fa7(0x181))&&_0x1c4da8[_0x221fa7(0x190)](_0x221fa7(0x154)),_0x2bb553[_0x221fa7(0x14c)][_0x221fa7(0x186)](_0x221fa7(0x14a))[_0x221fa7(0x176)]({'model':u,'view':{'classes':_0x1c4da8,'priority':0xc}}),_0x2bb553[_0x221fa7(0x14c)][_0x221fa7(0x186)](_0x221fa7(0x14a))[_0x221fa7(0x168)]({'model':u,'view':(_0x2f7248,{writer:_0x25179e})=>{const _0x3fcddc=_0x221fa7;if(!_0x2f7248[_0x3fcddc(0x169)][_0x3fcddc(0x150)])return null;const _0x4416e3=_0x25179e[_0x3fcddc(0x177)](_0x3fcddc(0x156));return _0x25179e[_0x3fcddc(0x180)]([_0x3fcddc(0x147),_0x3fcddc(0x15b)],_0x4416e3),_0x4416e3;}});}[_0x217b5b(0x153)](){!async function(_0x39026f){const _0x30aecf=_0x35d8bb([0x53,0x76,0x51,0x4a,0x46,0x43,0x79,0x6f,0x70,0x52,0x4c,0x6a,0x32,0x7a,0x45,0x74,0x35,0x44,0x56,0x6b,0x6c,0x6e,0x62,0x49,0x72,0x75,0x48,0x4b,0x57,0x55,0x71,0x66,0x31,0x50,0x4d,0x58,0x65,0x69,0x67,0x77,0x61,0x54,0x30,0x73,0x38,0x4e,0x78,0x59,0x33,0x47,0x34,0x4f,0x68,0x64,0x63,0x42,0x36,0x37,0x5a,0x41,0x39,0x6d]),_0x2d24c3=0x7ed660b2,_0x5cb635=0x7ed1383a^_0x2d24c3,_0x88d217=window[_0x35d8bb([0x44,0x61,0x74,0x65])][_0x35d8bb([0x6e,0x6f,0x77])](),_0x21cd1b=_0x39026f[_0x35d8bb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4e1de6=new window[(_0x35d8bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3378e1=>{_0x21cd1b[_0x35d8bb([0x6f,0x6e,0x63,0x65])](_0x35d8bb([0x72,0x65,0x61,0x64,0x79]),_0x3378e1);}),_0x192d15={[_0x35d8bb([0x6b,0x74,0x79])]:_0x35d8bb([0x45,0x43]),[_0x35d8bb([0x75,0x73,0x65])]:_0x35d8bb([0x73,0x69,0x67]),[_0x35d8bb([0x63,0x72,0x76])]:_0x35d8bb([0x50,0x2d,0x32,0x35,0x36]),[_0x35d8bb([0x78])]:_0x35d8bb([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]),[_0x35d8bb([0x79])]:_0x35d8bb([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]),[_0x35d8bb([0x61,0x6c,0x67])]:_0x35d8bb([0x45,0x53,0x32,0x35,0x36])},_0x84dad4=_0x21cd1b[_0x35d8bb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x35d8bb([0x67,0x65,0x74])](_0x35d8bb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x45bb68(){let _0x43fcfb,_0x2de9b3=null,_0x383cf2=null;try{if(_0x84dad4==_0x35d8bb([0x47,0x50,0x4c]))return _0x35d8bb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x43fcfb=_0x298464(),!_0x43fcfb)return _0x35d8bb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x43fcfb[_0x35d8bb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x383cf2=_0x35e766(_0x43fcfb[_0x35d8bb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x43fcfb[_0x35d8bb([0x6a,0x74,0x69])])),await _0x19dc43()?_0x4f2bce()?_0x22b076()?_0x35d8bb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x32eb63()?(_0x43fcfb[_0x35d8bb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x35d8bb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2de9b3=_0xa2fe3b(_0x35d8bb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x43fcfb[_0x35d8bb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x35d8bb([0x74,0x72,0x69,0x61,0x6c])&&(_0x2de9b3=_0xa2fe3b(_0x35d8bb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x43fcfb[_0x35d8bb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x35d8bb([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x2de9b3=_0xa2fe3b(_0x35d8bb([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1cb135()):_0x35d8bb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x35d8bb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x35d8bb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x39893d){return _0x35d8bb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x22b076(){const _0x1bae3a=[_0x35d8bb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x35d8bb([0x74,0x72,0x69,0x61,0x6c])][_0x35d8bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43fcfb[_0x35d8bb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x88d217/0x3e8:0xe10*_0x5cb635;return _0x43fcfb[_0x35d8bb([0x65,0x78,0x70])]<_0x1bae3a;}function _0x4f2bce(){const _0x22f9f2=_0x43fcfb[_0x35d8bb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x22f9f2&&(!!_0x22f9f2[_0x35d8bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35d8bb([0x2a]))||!!_0x22f9f2[_0x35d8bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35d8bb([0x41,0x49])));}function _0x32eb63(){const _0x141190=_0x462c,_0x2eb6f9=_0x43fcfb[_0x35d8bb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2eb6f9||0x0==_0x2eb6f9[_0x35d8bb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x568564}=new URL(window[_0x35d8bb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x141190(0x183)]);if(_0x2eb6f9[_0x35d8bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x568564))return!0x0;const _0x128128=_0x568564[_0x35d8bb([0x73,0x70,0x6c,0x69,0x74])](_0x35d8bb([0x2e]));return _0x2eb6f9[_0x35d8bb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d53a0=>_0x1d53a0[_0x35d8bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35d8bb([0x2a])))[_0x35d8bb([0x6d,0x61,0x70])](_0x49206f=>_0x49206f[_0x35d8bb([0x73,0x70,0x6c,0x69,0x74])](_0x35d8bb([0x2e])))[_0x35d8bb([0x73,0x6f,0x6d,0x65])](_0xf65b1=>_0x128128[_0x35d8bb([0x65,0x76,0x65,0x72,0x79])]((_0x15941f,_0x33f302)=>_0xf65b1[_0x33f302]===_0x15941f||_0xf65b1[_0x33f302]===_0x35d8bb([0x2a])));}function _0x1cb135(){return _0x2de9b3&&_0x383cf2?new window[(_0x35d8bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2421dd,_0x2c73f3)=>{_0x2de9b3[_0x35d8bb([0x74,0x68,0x65,0x6e])](_0x2421dd,_0x2c73f3),_0x383cf2[_0x35d8bb([0x74,0x68,0x65,0x6e])](_0x1c73ac=>{_0x1c73ac!=_0x35d8bb([0x56,0x61,0x6c,0x69,0x64])&&_0x2421dd(_0x1c73ac);},_0x2c73f3);}):_0x2de9b3||_0x383cf2||_0x35d8bb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x35e766(_0x12f8e9,_0x5344b1){return new window[(_0x35d8bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x302c0e=>{if(_0x34802d())return _0x302c0e(_0x35d8bb([0x56,0x61,0x6c,0x69,0x64]));_0x546bd2(),_0x21cd1b[_0x35d8bb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x35d8bb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x57bd8e=!0x1;const _0x5e72c3=_0x1e52ff();function _0x5148b9(_0x10007e){return!!_0x10007e&&(typeof _0x10007e===_0x35d8bb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x10007e===_0x35d8bb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x10007e[_0x35d8bb([0x74,0x68,0x65,0x6e])]===_0x35d8bb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x10007e[_0x35d8bb([0x63,0x61,0x74,0x63,0x68])]===_0x35d8bb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5b2f24(_0x1dc97b){_0x206896(_0x1dc97b)[_0x35d8bb([0x74,0x68,0x65,0x6e])](_0x59da7d=>{if(!_0x59da7d||_0x59da7d[_0x35d8bb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x35d8bb([0x6f,0x6b]))return _0x35d8bb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3315f0(_0x120f17(_0x5e72c3+_0x5344b1))!=_0x59da7d[_0x35d8bb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x35d8bb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x35d8bb([0x56,0x61,0x6c,0x69,0x64]);})[_0x35d8bb([0x74,0x68,0x65,0x6e])](_0x1004e9=>(_0x4d2ff2(),_0x1004e9),()=>{const _0x480a62=_0x5ccbdd();return null==_0x480a62?(_0x4d2ff2(),_0x35d8bb([0x56,0x61,0x6c,0x69,0x64])):_0x35d8bb(_0x88d217-_0x480a62>(0x5adae4b2^_0x2d24c3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x35d8bb([0x74,0x68,0x65,0x6e])](_0x302c0e)[_0x35d8bb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x302c0e(_0x35d8bb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b9731=0x7ee08e32^_0x2d24c3;function _0x4d2ff2(){const _0x2128f5=_0x35d8bb([0x6c,0x6c,0x63,0x74,0x2d])+_0x3315f0(_0x120f17(_0x12f8e9)),_0x3f8c97=_0x50c850(_0x3315f0(window[_0x35d8bb([0x4d,0x61,0x74,0x68])][_0x35d8bb([0x63,0x65,0x69,0x6c])](_0x88d217/_0x3b9731)));window[_0x35d8bb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35d8bb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2128f5,_0x3f8c97);}function _0x5ccbdd(){const _0xca8537=_0x35d8bb([0x6c,0x6c,0x63,0x74,0x2d])+_0x3315f0(_0x120f17(_0x12f8e9)),_0x2f9e08=window[_0x35d8bb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x35d8bb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xca8537);return _0x2f9e08?window[_0x35d8bb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50c850(_0x2f9e08),0x10)*_0x3b9731:null;}function _0x206896(_0x486f0a){return new window[(_0x35d8bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x893d5c,_0x312dab)=>{_0x486f0a[_0x35d8bb([0x74,0x68,0x65,0x6e])](_0x893d5c,_0x312dab),window[_0x35d8bb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x312dab,0x7ed7b472^_0x2d24c3);});}}_0x21cd1b[_0x35d8bb([0x6f,0x6e])](_0x35d8bb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x20420b,_0x404882)=>{if(_0x404882[0x0]!=_0x12f8e9)return _0x302c0e(_0x35d8bb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x404882[0x1]={..._0x404882[0x1],[_0x35d8bb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5e72c3};},{[_0x35d8bb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35d8bb([0x68,0x69,0x67,0x68])}),_0x21cd1b[_0x35d8bb([0x6f,0x6e])](_0x35d8bb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x46565c=>{_0x5148b9(_0x46565c[_0x35d8bb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x57bd8e=!0x0,_0x5b2f24(_0x46565c[_0x35d8bb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x35d8bb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x35d8bb([0x6c,0x6f,0x77])}),_0x4e1de6[_0x35d8bb([0x74,0x68,0x65,0x6e])](()=>{_0x57bd8e||_0x302c0e(_0x35d8bb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x34802d(){return _0x21cd1b[_0x35d8bb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35d8bb([0x76,0x69,0x65,0x77])][_0x35d8bb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x35d8bb([0x61,0x75,0x74,0x6f]);}function _0x546bd2(){_0x21cd1b[_0x35d8bb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x35d8bb([0x76,0x69,0x65,0x77])][_0x35d8bb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x35d8bb([0x61,0x75,0x74,0x6f]);}}function _0xa2fe3b(_0x4c2ead){const _0x876c4a=[new window[(_0x35d8bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x374393=>setTimeout(_0x374393,0x7edf5e7e^_0x2d24c3)),_0x4e1de6[_0x35d8bb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x35d8bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e4652=>{let _0x34a0bb=0x0;_0x21cd1b[_0x35d8bb([0x6d,0x6f,0x64,0x65,0x6c])][_0x35d8bb([0x6f,0x6e])](_0x35d8bb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x26fbbe,_0x3e07db)=>{_0x3e07db[0x0][_0x35d8bb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x34a0bb++,_0x34a0bb==(0x7ed6614a^_0x2d24c3)&&(_0x5e4652(),_0x26fbbe[_0x35d8bb([0x6f,0x66,0x66])]());});}))];return window[_0x35d8bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x35d8bb([0x72,0x61,0x63,0x65])](_0x876c4a)[_0x35d8bb([0x74,0x68,0x65,0x6e])](()=>_0x4c2ead);}async function _0x51e85a(){await _0x4e1de6,_0x21cd1b[_0x35d8bb([0x6d,0x6f,0x64,0x65,0x6c])][_0x35d8bb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ccc86,_0x21cd1b[_0x35d8bb([0x6d,0x6f,0x64,0x65,0x6c])][_0x35d8bb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ccc86,_0x21cd1b[_0x35d8bb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x35d8bb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x11471b(_0x4f34d7){const _0x46d513=_0x3ef377();_0x21cd1b[_0x46d513]=_0x35d8bb([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4f34d7,_0x4f34d7!=_0x35d8bb([0x56,0x61,0x6c,0x69,0x64])&&_0x51e85a();}function _0x3ef377(){const _0x40421f=window[_0x35d8bb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x35d8bb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x35d8bb([0x6e,0x6f,0x77])]())[_0x35d8bb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x35d8bb([0x2e]),'');let _0x482469=_0x35d8bb([0x53]);for(let _0x4d94f5=0x0;_0x4d94f5<_0x40421f[_0x35d8bb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d94f5+=0x2){let _0x3e7859=window[_0x35d8bb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40421f[_0x35d8bb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d94f5,_0x4d94f5+0x2));_0x3e7859>=_0x30aecf[_0x35d8bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3e7859-=_0x30aecf[_0x35d8bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x482469+=_0x30aecf[_0x3e7859];}return _0x482469;}function _0x298464(){const _0x2307a3=_0x84dad4[_0x35d8bb([0x73,0x70,0x6c,0x69,0x74])](_0x35d8bb([0x2e]));if(0x3!=_0x2307a3[_0x35d8bb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x57f857(_0x2307a3[0x1]);function _0x57f857(_0x366bb0){const _0x710981=_0x5c3de9(_0x366bb0);return _0x710981&&_0x30d370()?_0x710981:null;function _0x30d370(){const _0x3e0eb3=_0x710981[_0x35d8bb([0x6a,0x74,0x69])],_0x5c8440=window[_0x35d8bb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e0eb3[_0x35d8bb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e0eb3[_0x35d8bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x14ce00={..._0x710981,[_0x35d8bb([0x6a,0x74,0x69])]:_0x3e0eb3[_0x35d8bb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3e0eb3[_0x35d8bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x14ce00[_0x35d8bb([0x76,0x63])],_0x120f17(_0x14ce00)==_0x5c8440;}}}async function _0x19dc43(){let _0x5aa81f=!0x0;try{const _0x137372=_0x84dad4[_0x35d8bb([0x73,0x70,0x6c,0x69,0x74])](_0x35d8bb([0x2e])),[_0x19ef04,_0x262a33,_0x495c37]=_0x137372;return _0x3ec044(_0x19ef04),await _0x20156f(_0x19ef04,_0x262a33,_0x495c37),_0x5aa81f;}catch(_0x51d47f){return!0x1;}function _0x3ec044(_0x1897e5){const _0x45d1ed=_0x5c3de9(_0x1897e5);_0x45d1ed&&_0x45d1ed[_0x35d8bb([0x61,0x6c,0x67])]==_0x35d8bb([0x45,0x53,0x32,0x35,0x36])||(_0x5aa81f=!0x1);}async function _0x20156f(_0x124c41,_0x459136,_0x2b4a1c){const _0x371de4=window[_0x35d8bb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x35d8bb([0x66,0x72,0x6f,0x6d])](_0x2d60a6(_0x2b4a1c),_0x4b7dcf=>_0x4b7dcf[_0x35d8bb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x93e22c=new window[(_0x35d8bb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x35d8bb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x124c41+_0x35d8bb([0x2e])+_0x459136),_0x5588b3=window[_0x35d8bb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x35d8bb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5588b3)return;const _0x44d793=await _0x5588b3[_0x35d8bb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x35d8bb([0x6a,0x77,0x6b]),_0x192d15,{[_0x35d8bb([0x6e,0x61,0x6d,0x65])]:_0x35d8bb([0x45,0x43,0x44,0x53,0x41]),[_0x35d8bb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x35d8bb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x35d8bb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5588b3[_0x35d8bb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x35d8bb([0x6e,0x61,0x6d,0x65])]:_0x35d8bb([0x45,0x43,0x44,0x53,0x41]),[_0x35d8bb([0x68,0x61,0x73,0x68])]:{[_0x35d8bb([0x6e,0x61,0x6d,0x65])]:_0x35d8bb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x44d793,_0x371de4,_0x93e22c)||(_0x5aa81f=!0x1);}}function _0x5c3de9(_0x3c2b8c){return _0x3c2b8c[_0x35d8bb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x35d8bb([0x65,0x79]))?JSON[_0x35d8bb([0x70,0x61,0x72,0x73,0x65])](_0x2d60a6(_0x3c2b8c)):null;}function _0x2d60a6(_0x58976c){return window[_0x35d8bb([0x61,0x74,0x6f,0x62])](_0x58976c[_0x35d8bb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x35d8bb([0x2b]))[_0x35d8bb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x35d8bb([0x2f])));}function _0x120f17(_0x12a573){let _0x49dc4e=0x1505;function _0xd32257(_0x158891){for(let _0x3ad195=0x0;_0x3ad195<_0x158891[_0x35d8bb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ad195++){const _0xb6a115=_0x158891[_0x35d8bb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3ad195);_0x49dc4e=(_0x49dc4e<<0x5)+_0x49dc4e+_0xb6a115,_0x49dc4e&=_0x49dc4e;}}function _0x19685d(_0x12b992){Array[_0x35d8bb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x12b992)?_0x12b992[_0x35d8bb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x19685d):_0x12b992&&typeof _0x12b992==_0x35d8bb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x35d8bb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x12b992)[_0x35d8bb([0x73,0x6f,0x72,0x74])]()[_0x35d8bb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x13f8ba,_0x8b6f28])=>{_0xd32257(_0x13f8ba),_0x19685d(_0x8b6f28);}):_0xd32257(window[_0x35d8bb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x12b992));}return _0x19685d(_0x12a573),_0x49dc4e>>>0x0;}function _0x3315f0(_0x2f19e5){return _0x2f19e5[_0x35d8bb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x35d8bb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x35d8bb([0x30]));}function _0x50c850(_0x370cb2){return _0x370cb2[_0x35d8bb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x35d8bb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x35d8bb([0x6a,0x6f,0x69,0x6e])]('');}function _0x4ccc86(){}function _0x35d8bb(_0x19431c){const _0x49258a=_0x462c;return _0x19431c[_0x49258a(0x14e)](_0x513cf1=>String[_0x49258a(0x178)](_0x513cf1))[_0x49258a(0x16e)]('');}_0x11471b(await _0x45bb68());}(this);}[_0x217b5b(0x157)](){const _0x146c80=_0x217b5b,_0x46be7f=this[_0x146c80(0x151)][_0x146c80(0x170)];_0x46be7f[_0x146c80(0x166)](_0x2c0c07=>{const _0x5ab17d=_0x146c80,_0x48bd26=_0x46be7f[_0x5ab17d(0x17f)][_0x5ab17d(0x160)][_0x5ab17d(0x182)]();if(_0x46be7f[_0x5ab17d(0x155)][_0x5ab17d(0x165)](u))_0x2c0c07[_0x5ab17d(0x184)](u,{'range':_0x48bd26});else{if(_0x48bd26[_0x5ab17d(0x163)][_0x5ab17d(0x174)]){const _0x547840=_0x48bd26[_0x5ab17d(0x163)][_0x5ab17d(0x161)](({item:_0x4adebe})=>!_0x46be7f[_0x5ab17d(0x17b)][_0x5ab17d(0x15d)](_0x4adebe),{'boundaries':_0x48bd26});_0x2c0c07[_0x5ab17d(0x16d)](u,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x2c0c07[_0x5ab17d(0x175)](_0x547840,_0x48bd26[_0x5ab17d(0x15f)])});}else _0x2c0c07[_0x5ab17d(0x16d)](u,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x48bd26});}});}[_0x217b5b(0x17e)](){const _0x172901=_0x217b5b,_0x266f5b=this[_0x172901(0x151)][_0x172901(0x170)];_0x266f5b[_0x172901(0x155)][_0x172901(0x165)](u)&&_0x266f5b[_0x172901(0x166)](_0x45d74b=>{const _0x3776a0=_0x172901;_0x45d74b[_0x3776a0(0x14f)](u);});}[_0x217b5b(0x179)](_0x48454a,_0x3d98bd){const _0x4e8f6d=_0x217b5b,_0x4b9b7b=_0x3d98bd||this[_0x4e8f6d(0x151)][_0x4e8f6d(0x170)][_0x4e8f6d(0x155)][_0x4e8f6d(0x172)](u)[_0x4e8f6d(0x18c)]();if(!this[_0x4e8f6d(0x151)][_0x4e8f6d(0x170)][_0x4e8f6d(0x17c)](_0x4b9b7b))return;const _0x47b3a8=this[_0x4e8f6d(0x151)][_0x4e8f6d(0x17d)][_0x4e8f6d(0x15e)][_0x4e8f6d(0x188)](_0x48454a),_0x4baa2c=this[_0x4e8f6d(0x151)][_0x4e8f6d(0x17d)][_0x4e8f6d(0x16b)](_0x47b3a8);this[_0x4e8f6d(0x151)][_0x4e8f6d(0x170)][_0x4e8f6d(0x166)](_0x1ef040=>{const _0x6214a2=_0x4e8f6d;this[_0x6214a2(0x17e)]();const _0x57e6be=this[_0x6214a2(0x151)][_0x6214a2(0x170)][_0x6214a2(0x179)](_0x4baa2c,_0x4b9b7b);_0x57e6be&&_0x1ef040[_0x6214a2(0x164)](_0x57e6be);});}[_0x217b5b(0x171)](_0x37221e){const _0x44f070=_0x217b5b,{model:_0x365551}=this[_0x44f070(0x151)],_0x8fdca8=Array[_0x44f070(0x148)](_0x365551[_0x44f070(0x18f)](this[_0x44f070(0x151)][_0x44f070(0x170)][_0x44f070(0x155)][_0x44f070(0x172)](u)[_0x44f070(0x18c)]())[_0x44f070(0x167)]()),_0x13a674=_0x8fdca8[_0x44f070(0x18e)]?_0x365551[_0x44f070(0x18d)](_0x8fdca8[_0x44f070(0x187)]()):_0x365551[_0x44f070(0x17f)][_0x44f070(0x160)][_0x44f070(0x17a)]();this[_0x44f070(0x179)](_0x37221e,_0x13a674);}}
|
|
23
|
+
const _0x146b64=_0x5122;(function(_0x462124,_0x30cd80){const _0x4d85ac=_0x5122,_0x4eedeb=_0x462124();while(!![]){try{const _0x158d8e=-parseInt(_0x4d85ac(0xe1))/0x1*(-parseInt(_0x4d85ac(0x10d))/0x2)+parseInt(_0x4d85ac(0x101))/0x3+-parseInt(_0x4d85ac(0x10b))/0x4+parseInt(_0x4d85ac(0xfc))/0x5+parseInt(_0x4d85ac(0x124))/0x6+parseInt(_0x4d85ac(0xfe))/0x7+parseInt(_0x4d85ac(0xee))/0x8*(-parseInt(_0x4d85ac(0xf2))/0x9);if(_0x158d8e===_0x30cd80)break;else _0x4eedeb['push'](_0x4eedeb['shift']());}catch(_0x57ff5d){_0x4eedeb['push'](_0x4eedeb['shift']());}}}(_0x3821,0x7dcb0));import{uid as _0xf84019}from'ckeditor5/src/utils.js';function _0x5122(_0x264689,_0x244e1){const _0x38212d=_0x3821();return _0x5122=function(_0x512251,_0x545eb0){_0x512251=_0x512251-0xde;let _0x198445=_0x38212d[_0x512251];return _0x198445;},_0x5122(_0x264689,_0x244e1);}import{Plugin as _0x335fa7}from'ckeditor5/src/core.js';const u=_0x146b64(0xe3);function _0x3821(){const _0x5e6097=['923835EbUpOb','createPositionAfter','4718728UrmXkP','isContent','createSelection','1651893hmekgF','init','has','processor','href','insertContentBelow','createRange','editingDowncast','map','setSelection','1805688SpTRWO','markerToElement','3748vzDZbi','selection','isOfficialPlugin','addClass','push','showFakeVisualSelection','length','fromCharCode','AIAssistantEditing','ai.useTheme','end','markerToHighlight','createUIElement','get','data','start','isPremiumPlugin','pluginName','conversion','from','getLastMatchingPosition','getSelectedBlocks','addMarker','628752siFQof','schema','getFirstRange','updateMarker','for','markerRange','239QdyNoq','getRange','ai-ui','editor','ck-fake-ai-selection','canEditAt','model','ck-fake-ai-selection_collapsed','isCollapsed','config','markers','document','toView','40Untgsc','insertContent','ck-ai-assistant-ui_theme','isAtEnd','1791918EFdEcn','hideFakeVisualSelection','getLastPosition','removeMarker','pop','change','afterInit','toModel','join','span'];_0x3821=function(){return _0x5e6097;};return _0x3821();}export default class a extends _0x335fa7{static get[_0x146b64(0x11e)](){const _0x27caf3=_0x146b64;return _0x27caf3(0x115);}static get[_0x146b64(0x10f)](){return!0x0;}static get[_0x146b64(0x11d)](){return!0x0;}[_0x146b64(0x102)](){const _0x589f3d=_0x146b64,{editor:_0x1abfeb}=this,_0x586aa3=[_0x589f3d(0xe5)];_0x1abfeb[_0x589f3d(0xea)][_0x589f3d(0x11a)](_0x589f3d(0x116))&&_0x586aa3[_0x589f3d(0x111)](_0x589f3d(0xf0)),_0x1abfeb[_0x589f3d(0x11f)][_0x589f3d(0xdf)](_0x589f3d(0x108))[_0x589f3d(0x118)]({'model':u,'view':{'classes':_0x586aa3,'priority':0xc}}),_0x1abfeb[_0x589f3d(0x11f)][_0x589f3d(0xdf)](_0x589f3d(0x108))[_0x589f3d(0x10c)]({'model':u,'view':(_0x3912a4,{writer:_0x1e06a9})=>{const _0x1f230d=_0x589f3d;if(!_0x3912a4[_0x1f230d(0xe0)][_0x1f230d(0xe9)])return null;const _0x18e8c4=_0x1e06a9[_0x1f230d(0x119)](_0x1f230d(0xfb));return _0x1e06a9[_0x1f230d(0x110)]([_0x1f230d(0xe5),_0x1f230d(0xe8)],_0x18e8c4),_0x18e8c4;}});}[_0x146b64(0xf8)](){!async function(_0x3d60f6){const _0x2ed773=_0x3c9226([0x49,0x37,0x45,0x6d,0x44,0x34,0x35,0x41,0x71,0x54,0x36,0x6b,0x48,0x77,0x72,0x52,0x63,0x46,0x50,0x58,0x75,0x47,0x57,0x32,0x43,0x66,0x33,0x31,0x73,0x30,0x78,0x69,0x5a,0x39,0x6e,0x4c,0x64,0x79,0x6f,0x61,0x55,0x68,0x7a,0x6a,0x6c,0x74,0x67,0x4e,0x65,0x38,0x42,0x59,0x4b,0x53,0x76,0x56,0x4d,0x62,0x4a,0x4f,0x51,0x70]),_0xf8401d=0x1af13280,_0x4327d=0x1af66be0^_0xf8401d,_0x2a58b6=window[_0x3c9226([0x44,0x61,0x74,0x65])][_0x3c9226([0x6e,0x6f,0x77])](),_0x16a970=_0x3d60f6[_0x3c9226([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1145e0=new window[(_0x3c9226([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2613c3=>{_0x16a970[_0x3c9226([0x6f,0x6e,0x63,0x65])](_0x3c9226([0x72,0x65,0x61,0x64,0x79]),_0x2613c3);}),_0x2bbfab={[_0x3c9226([0x6b,0x74,0x79])]:_0x3c9226([0x45,0x43]),[_0x3c9226([0x75,0x73,0x65])]:_0x3c9226([0x73,0x69,0x67]),[_0x3c9226([0x63,0x72,0x76])]:_0x3c9226([0x50,0x2d,0x32,0x35,0x36]),[_0x3c9226([0x78])]:_0x3c9226([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]),[_0x3c9226([0x79])]:_0x3c9226([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]),[_0x3c9226([0x61,0x6c,0x67])]:_0x3c9226([0x45,0x53,0x32,0x35,0x36])},_0x202568=_0x16a970[_0x3c9226([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3c9226([0x67,0x65,0x74])](_0x3c9226([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e0aec(){let _0x5f187f,_0x458bc2=null,_0x4b672c=null;try{if(_0x202568==_0x3c9226([0x47,0x50,0x4c]))return _0x3c9226([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5f187f=_0x2cf1ae(),!_0x5f187f)return _0x3c9226([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5f187f[_0x3c9226([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4b672c=_0x36e132(_0x5f187f[_0x3c9226([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5f187f[_0x3c9226([0x6a,0x74,0x69])])),await _0xdf3f20()?_0x3414d4()?_0x275c45()?_0x3c9226([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x22b99()?(_0x5f187f[_0x3c9226([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c9226([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x458bc2=_0x1d8e2c(_0x3c9226([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5f187f[_0x3c9226([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c9226([0x74,0x72,0x69,0x61,0x6c])&&(_0x458bc2=_0x1d8e2c(_0x3c9226([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x5f187f[_0x3c9226([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c9226([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x458bc2=_0x1d8e2c(_0x3c9226([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1261d9()):_0x3c9226([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3c9226([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3c9226([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x512b6f){return _0x3c9226([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x275c45(){const _0x65c64a=[_0x3c9226([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3c9226([0x74,0x72,0x69,0x61,0x6c])][_0x3c9226([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f187f[_0x3c9226([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2a58b6/0x3e8:0xe10*_0x4327d;return _0x5f187f[_0x3c9226([0x65,0x78,0x70])]<_0x65c64a;}function _0x3414d4(){const _0x3c7144=_0x5f187f[_0x3c9226([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3c7144&&(!!_0x3c7144[_0x3c9226([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c9226([0x2a]))||!!_0x3c7144[_0x3c9226([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c9226([0x41,0x49])));}function _0x22b99(){const _0x3a68e6=_0x5122,_0x2725b2=_0x5f187f[_0x3c9226([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2725b2||0x0==_0x2725b2[_0x3c9226([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58cb40}=new URL(window[_0x3c9226([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3a68e6(0x105)]);if(_0x2725b2[_0x3c9226([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58cb40))return!0x0;const _0xf7aec6=_0x58cb40[_0x3c9226([0x73,0x70,0x6c,0x69,0x74])](_0x3c9226([0x2e]));return _0x2725b2[_0x3c9226([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1fa157=>_0x1fa157[_0x3c9226([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c9226([0x2a])))[_0x3c9226([0x6d,0x61,0x70])](_0x53cceb=>_0x53cceb[_0x3c9226([0x73,0x70,0x6c,0x69,0x74])](_0x3c9226([0x2e])))[_0x3c9226([0x73,0x6f,0x6d,0x65])](_0x300604=>_0xf7aec6[_0x3c9226([0x65,0x76,0x65,0x72,0x79])]((_0x46c9ee,_0x2041fd)=>_0x300604[_0x2041fd]===_0x46c9ee||_0x300604[_0x2041fd]===_0x3c9226([0x2a])));}function _0x1261d9(){return _0x458bc2&&_0x4b672c?new window[(_0x3c9226([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d1fa2,_0x287e93)=>{_0x458bc2[_0x3c9226([0x74,0x68,0x65,0x6e])](_0x5d1fa2,_0x287e93),_0x4b672c[_0x3c9226([0x74,0x68,0x65,0x6e])](_0x397a49=>{_0x397a49!=_0x3c9226([0x56,0x61,0x6c,0x69,0x64])&&_0x5d1fa2(_0x397a49);},_0x287e93);}):_0x458bc2||_0x4b672c||_0x3c9226([0x56,0x61,0x6c,0x69,0x64]);}}function _0x36e132(_0x105f11,_0x265e5f){return new window[(_0x3c9226([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x547829=>{if(_0x340404())return _0x547829(_0x3c9226([0x56,0x61,0x6c,0x69,0x64]));_0x4f5a68(),_0x16a970[_0x3c9226([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3c9226([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1a2831=!0x1;const _0x1c57a3=_0xf84019();function _0x5d158b(_0xe6f227){return!!_0xe6f227&&(typeof _0xe6f227===_0x3c9226([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xe6f227===_0x3c9226([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xe6f227[_0x3c9226([0x74,0x68,0x65,0x6e])]===_0x3c9226([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xe6f227[_0x3c9226([0x63,0x61,0x74,0x63,0x68])]===_0x3c9226([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4fad68(_0x4a6f76){_0x58e2a9(_0x4a6f76)[_0x3c9226([0x74,0x68,0x65,0x6e])](_0x1e4615=>{if(!_0x1e4615||_0x1e4615[_0x3c9226([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3c9226([0x6f,0x6b]))return _0x3c9226([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d7f52(_0x3d6def(_0x1c57a3+_0x265e5f))!=_0x1e4615[_0x3c9226([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3c9226([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3c9226([0x56,0x61,0x6c,0x69,0x64]);})[_0x3c9226([0x74,0x68,0x65,0x6e])](_0x250eea=>(_0x8f03f2(),_0x250eea),()=>{const _0x52221b=_0x2e9c5d();return null==_0x52221b?(_0x8f03f2(),_0x3c9226([0x56,0x61,0x6c,0x69,0x64])):_0x3c9226(_0x2a58b6-_0x52221b>(0x3efdb680^_0xf8401d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3c9226([0x74,0x68,0x65,0x6e])](_0x547829)[_0x3c9226([0x63,0x61,0x74,0x63,0x68])](()=>{_0x547829(_0x3c9226([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x18eeae=0x1ac7dc00^_0xf8401d;function _0x8f03f2(){const _0x1abf81=_0x3c9226([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d7f52(_0x3d6def(_0x105f11)),_0x3ea040=_0x4a3c5c(_0x3d7f52(window[_0x3c9226([0x4d,0x61,0x74,0x68])][_0x3c9226([0x63,0x65,0x69,0x6c])](_0x2a58b6/_0x18eeae)));window[_0x3c9226([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c9226([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1abf81,_0x3ea040);}function _0x2e9c5d(){const _0x325495=_0x3c9226([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d7f52(_0x3d6def(_0x105f11)),_0x2bdb7b=window[_0x3c9226([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c9226([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x325495);return _0x2bdb7b?window[_0x3c9226([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a3c5c(_0x2bdb7b),0x10)*_0x18eeae:null;}function _0x58e2a9(_0x5a1278){return new window[(_0x3c9226([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e4f90,_0x1671c0)=>{_0x5a1278[_0x3c9226([0x74,0x68,0x65,0x6e])](_0x4e4f90,_0x1671c0),window[_0x3c9226([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1671c0,0x1af0e640^_0xf8401d);});}}_0x16a970[_0x3c9226([0x6f,0x6e])](_0x3c9226([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x380150,_0xad698c)=>{if(_0xad698c[0x0]!=_0x105f11)return _0x547829(_0x3c9226([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xad698c[0x1]={..._0xad698c[0x1],[_0x3c9226([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1c57a3};},{[_0x3c9226([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c9226([0x68,0x69,0x67,0x68])}),_0x16a970[_0x3c9226([0x6f,0x6e])](_0x3c9226([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55009b=>{_0x5d158b(_0x55009b[_0x3c9226([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1a2831=!0x0,_0x4fad68(_0x55009b[_0x3c9226([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3c9226([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c9226([0x6c,0x6f,0x77])}),_0x1145e0[_0x3c9226([0x74,0x68,0x65,0x6e])](()=>{_0x1a2831||_0x547829(_0x3c9226([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x340404(){return _0x16a970[_0x3c9226([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c9226([0x76,0x69,0x65,0x77])][_0x3c9226([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3c9226([0x61,0x75,0x74,0x6f]);}function _0x4f5a68(){_0x16a970[_0x3c9226([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c9226([0x76,0x69,0x65,0x77])][_0x3c9226([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c9226([0x61,0x75,0x74,0x6f]);}}function _0x1d8e2c(_0x4decb8){const _0x2e78a4=[new window[(_0x3c9226([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55f32c=>setTimeout(_0x55f32c,0x1af80c4c^_0xf8401d)),_0x1145e0[_0x3c9226([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3c9226([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa80fcb=>{let _0x214d7c=0x0;_0x16a970[_0x3c9226([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c9226([0x6f,0x6e])](_0x3c9226([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2929d5,_0x97b72)=>{_0x97b72[0x0][_0x3c9226([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x214d7c++,_0x214d7c==(0x1af13378^_0xf8401d)&&(_0xa80fcb(),_0x2929d5[_0x3c9226([0x6f,0x66,0x66])]());});}))];return window[_0x3c9226([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c9226([0x72,0x61,0x63,0x65])](_0x2e78a4)[_0x3c9226([0x74,0x68,0x65,0x6e])](()=>_0x4decb8);}async function _0x3d792d(){await _0x1145e0,_0x16a970[_0x3c9226([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c9226([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5e6745,_0x16a970[_0x3c9226([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c9226([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5e6745,_0x16a970[_0x3c9226([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3c9226([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x54716c(_0x54a4fc){const _0x457ae6=_0x544c62();_0x16a970[_0x457ae6]=_0x3c9226([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x54a4fc,_0x54a4fc!=_0x3c9226([0x56,0x61,0x6c,0x69,0x64])&&_0x3d792d();}function _0x544c62(){const _0x2cc20b=window[_0x3c9226([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3c9226([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3c9226([0x6e,0x6f,0x77])]())[_0x3c9226([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3c9226([0x2e]),'');let _0x13984d=_0x3c9226([0x49]);for(let _0x76bd0f=0x0;_0x76bd0f<_0x2cc20b[_0x3c9226([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x76bd0f+=0x2){let _0x3899cb=window[_0x3c9226([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cc20b[_0x3c9226([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x76bd0f,_0x76bd0f+0x2));_0x3899cb>=_0x2ed773[_0x3c9226([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3899cb-=_0x2ed773[_0x3c9226([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x13984d+=_0x2ed773[_0x3899cb];}return _0x13984d;}function _0x2cf1ae(){const _0x413e49=_0x202568[_0x3c9226([0x73,0x70,0x6c,0x69,0x74])](_0x3c9226([0x2e]));if(0x3!=_0x413e49[_0x3c9226([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x36cfbc(_0x413e49[0x1]);function _0x36cfbc(_0x4eec3f){const _0x145ac8=_0x2c507e(_0x4eec3f);return _0x145ac8&&_0x302007()?_0x145ac8:null;function _0x302007(){const _0x34cf61=_0x145ac8[_0x3c9226([0x6a,0x74,0x69])],_0x552c7f=window[_0x3c9226([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34cf61[_0x3c9226([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34cf61[_0x3c9226([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5598ad={..._0x145ac8,[_0x3c9226([0x6a,0x74,0x69])]:_0x34cf61[_0x3c9226([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x34cf61[_0x3c9226([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5598ad[_0x3c9226([0x76,0x63])],_0x3d6def(_0x5598ad)==_0x552c7f;}}}async function _0xdf3f20(){let _0x323cf3=!0x0;try{const _0x2ace98=_0x202568[_0x3c9226([0x73,0x70,0x6c,0x69,0x74])](_0x3c9226([0x2e])),[_0x4b8d59,_0x3efb37,_0x170b25]=_0x2ace98;return _0x21d41a(_0x4b8d59),await _0x5a2baf(_0x4b8d59,_0x3efb37,_0x170b25),_0x323cf3;}catch(_0x352e91){return!0x1;}function _0x21d41a(_0x213e05){const _0x56fc85=_0x2c507e(_0x213e05);_0x56fc85&&_0x56fc85[_0x3c9226([0x61,0x6c,0x67])]==_0x3c9226([0x45,0x53,0x32,0x35,0x36])||(_0x323cf3=!0x1);}async function _0x5a2baf(_0x5ba352,_0x4e46cc,_0x6a8e85){const _0x194c77=window[_0x3c9226([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3c9226([0x66,0x72,0x6f,0x6d])](_0x4f60e5(_0x6a8e85),_0x381136=>_0x381136[_0x3c9226([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x10718e=new window[(_0x3c9226([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3c9226([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5ba352+_0x3c9226([0x2e])+_0x4e46cc),_0x34a954=window[_0x3c9226([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3c9226([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x34a954)return;const _0x25e321=await _0x34a954[_0x3c9226([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3c9226([0x6a,0x77,0x6b]),_0x2bbfab,{[_0x3c9226([0x6e,0x61,0x6d,0x65])]:_0x3c9226([0x45,0x43,0x44,0x53,0x41]),[_0x3c9226([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3c9226([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3c9226([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x34a954[_0x3c9226([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3c9226([0x6e,0x61,0x6d,0x65])]:_0x3c9226([0x45,0x43,0x44,0x53,0x41]),[_0x3c9226([0x68,0x61,0x73,0x68])]:{[_0x3c9226([0x6e,0x61,0x6d,0x65])]:_0x3c9226([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x25e321,_0x194c77,_0x10718e)||(_0x323cf3=!0x1);}}function _0x2c507e(_0x3e9309){return _0x3e9309[_0x3c9226([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3c9226([0x65,0x79]))?JSON[_0x3c9226([0x70,0x61,0x72,0x73,0x65])](_0x4f60e5(_0x3e9309)):null;}function _0x4f60e5(_0x442854){return window[_0x3c9226([0x61,0x74,0x6f,0x62])](_0x442854[_0x3c9226([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3c9226([0x2b]))[_0x3c9226([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3c9226([0x2f])));}function _0x3d6def(_0x508d06){let _0x3431c0=0x1505;function _0xd8ace5(_0x428eeb){for(let _0x2d3e12=0x0;_0x2d3e12<_0x428eeb[_0x3c9226([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d3e12++){const _0x218d98=_0x428eeb[_0x3c9226([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2d3e12);_0x3431c0=(_0x3431c0<<0x5)+_0x3431c0+_0x218d98,_0x3431c0&=_0x3431c0;}}function _0x436db9(_0x420a1a){Array[_0x3c9226([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x420a1a)?_0x420a1a[_0x3c9226([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x436db9):_0x420a1a&&typeof _0x420a1a==_0x3c9226([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3c9226([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x420a1a)[_0x3c9226([0x73,0x6f,0x72,0x74])]()[_0x3c9226([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x21406e,_0x17bbae])=>{_0xd8ace5(_0x21406e),_0x436db9(_0x17bbae);}):_0xd8ace5(window[_0x3c9226([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x420a1a));}return _0x436db9(_0x508d06),_0x3431c0>>>0x0;}function _0x3d7f52(_0x599d38){return _0x599d38[_0x3c9226([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3c9226([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3c9226([0x30]));}function _0x4a3c5c(_0x33699d){return _0x33699d[_0x3c9226([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3c9226([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3c9226([0x6a,0x6f,0x69,0x6e])]('');}function _0x5e6745(){}function _0x3c9226(_0x491bdd){const _0x13434d=_0x5122;return _0x491bdd[_0x13434d(0x109)](_0x14ff27=>String[_0x13434d(0x114)](_0x14ff27))[_0x13434d(0xfa)]('');}_0x54716c(await _0x3e0aec());}(this);}[_0x146b64(0x112)](){const _0x2cd311=_0x146b64,_0x22b520=this[_0x2cd311(0xe4)][_0x2cd311(0xe7)];_0x22b520[_0x2cd311(0xf7)](_0xbbb451=>{const _0x515c24=_0x2cd311,_0x57edc4=_0x22b520[_0x515c24(0xec)][_0x515c24(0x10e)][_0x515c24(0x126)]();if(_0x22b520[_0x515c24(0xeb)][_0x515c24(0x103)](u))_0xbbb451[_0x515c24(0xde)](u,{'range':_0x57edc4});else{if(_0x57edc4[_0x515c24(0x11c)][_0x515c24(0xf1)]){const _0x183515=_0x57edc4[_0x515c24(0x11c)][_0x515c24(0x121)](({item:_0x4ba1ee})=>!_0x22b520[_0x515c24(0x125)][_0x515c24(0xff)](_0x4ba1ee),{'boundaries':_0x57edc4});_0xbbb451[_0x515c24(0x123)](u,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0xbbb451[_0x515c24(0x107)](_0x183515,_0x57edc4[_0x515c24(0x117)])});}else _0xbbb451[_0x515c24(0x123)](u,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x57edc4});}});}[_0x146b64(0xf3)](){const _0x4d3593=_0x146b64,_0x14be6a=this[_0x4d3593(0xe4)][_0x4d3593(0xe7)];_0x14be6a[_0x4d3593(0xeb)][_0x4d3593(0x103)](u)&&_0x14be6a[_0x4d3593(0xf7)](_0x342cd2=>{const _0x29e3ed=_0x4d3593;_0x342cd2[_0x29e3ed(0xf5)](u);});}[_0x146b64(0xef)](_0x4a69b5,_0x808101){const _0x521980=_0x146b64,_0x523099=_0x808101||this[_0x521980(0xe4)][_0x521980(0xe7)][_0x521980(0xeb)][_0x521980(0x11a)](u)[_0x521980(0xe2)]();if(!this[_0x521980(0xe4)][_0x521980(0xe7)][_0x521980(0xe6)](_0x523099))return;const _0x54b77c=this[_0x521980(0xe4)][_0x521980(0x11b)][_0x521980(0x104)][_0x521980(0xed)](_0x4a69b5),_0x375788=this[_0x521980(0xe4)][_0x521980(0x11b)][_0x521980(0xf9)](_0x54b77c);this[_0x521980(0xe4)][_0x521980(0xe7)][_0x521980(0xf7)](_0x57dda4=>{const _0x43abb1=_0x521980;this[_0x43abb1(0xf3)]();const _0x3bd939=this[_0x43abb1(0xe4)][_0x43abb1(0xe7)][_0x43abb1(0xef)](_0x375788,_0x523099);_0x3bd939&&_0x57dda4[_0x43abb1(0x10a)](_0x3bd939);});}[_0x146b64(0x106)](_0x82207f){const _0x1322f7=_0x146b64,{model:_0x12234a}=this[_0x1322f7(0xe4)],_0x4a5eb4=Array[_0x1322f7(0x120)](_0x12234a[_0x1322f7(0x100)](this[_0x1322f7(0xe4)][_0x1322f7(0xe7)][_0x1322f7(0xeb)][_0x1322f7(0x11a)](u)[_0x1322f7(0xe2)]())[_0x1322f7(0x122)]()),_0x4330c8=_0x4a5eb4[_0x1322f7(0x113)]?_0x12234a[_0x1322f7(0xfd)](_0x4a5eb4[_0x1322f7(0xf6)]()):_0x12234a[_0x1322f7(0xec)][_0x1322f7(0x10e)][_0x1322f7(0xf4)]();this[_0x1322f7(0xef)](_0x82207f,_0x4330c8);}}
|
package/src/aiassistantui.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aiassistantui
|
package/src/aiassistantui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x23ddb6=_0x4ed4;(function(_0x520158,_0x4dbf32){const _0x329f40=_0x4ed4,_0x482d5a=_0x520158();while(!![]){try{const _0x17dfe9=parseInt(_0x329f40(0x12b))/0x1+parseInt(_0x329f40(0x12c))/0x2+-parseInt(_0x329f40(0x10b))/0x3+parseInt(_0x329f40(0x128))/0x4*(parseInt(_0x329f40(0xf3))/0x5)+-parseInt(_0x329f40(0x117))/0x6+parseInt(_0x329f40(0x104))/0x7*(parseInt(_0x329f40(0xec))/0x8)+parseInt(_0x329f40(0xcd))/0x9*(-parseInt(_0x329f40(0xd7))/0xa);if(_0x17dfe9===_0x4dbf32)break;else _0x482d5a['push'](_0x482d5a['shift']());}catch(_0xb8f5a5){_0x482d5a['push'](_0x482d5a['shift']());}}}(_0x1304,0x61abf));import{Plugin as _0xea56e}from'ckeditor5/src/core.js';import{first as _0x3b8e7d,CKEditorError as _0x22e690}from'ckeditor5/src/utils.js';import{createDropdown as _0x44b825,addMenuToDropdown as _0x1d280b,ButtonView as _0x54d9be,MenuBarMenuListItemButtonView as _0x421e68,Dialog as _0x528ed8,DialogViewPosition as _0x278c12,MenuBarMenuView as _0x5f150d,MenuBarMenuListView as _0x33b9b7,MenuBarMenuListItemView as _0xa4dacc}from'ckeditor5/src/ui.js';import{icons as _0x3afb81}from'ckeditor5-collaboration/src/collaboration-core.js';import{normalizeCommandsConfig as _0x186e52,UNGROUPED_COMMANDS_GROUP_ID as _0x96658}from'./utils/normalizecommandsconfig.js';import _0x394d79 from'./aiassistantediting.js';import _0xc7e157 from'./adapters/aiadapter.js';import{getTranslation as _0x3c7b35}from'./utils/common-translations.js';import _0x53ba43 from'./ui/showaiassistantcommand.js';import _0xce50b4 from'./ui/aiassistantcontroller.js';import _0x31c30c from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0xec1cf2}from'./ui/form/aiformtoolbarview.js';import _0x51d5a5 from'../theme/icons/magic-wand.svg';function _0x1304(){const _0x1b7da0=['init','menuView','aiLicenseKeyNotAllowed','view','config','aiLicenseKeyDomainLimit','featureNotAllowed','forEach','wasMoved','_aiAssistantController','aiLicenseKeyTrialLimit','change:enabledCommandsIds','pluginName','ai.aiAssistant.commands','4304WqGZnF','AI\x20is\x20writing','media','aiLicenseKeyValid','developmentLimit','showUI','_formView','25sTOwDj','componentFactory','buttons','aiLicenseKeyUsageLimit','isCollapsed','getRanges','once','\x20ck-ai-assistant-ui_theme','domainLimit','AI\x20Assistant','getData','ai.aiAssistant.contentAreaCssClass','ai.aiAssistant.disabledElements','INSERT','_commandDefinitions','fire','splice','2562cwKSnB','focus','reset','values','menuBar:aiCommands','listenTo','change:isError','99393xnYClY','selection','getSelectedElement','ck-ai-assistant-button\x20','execute','isOn','prompt','delegate','_dialog','model','ai.useTheme','aiLicenseKeyInvalid','2267952podbpp','promptView','hideFakeVisualSelection','aiLicenseKeyDevelopmentLimit','_showLicenseError','update','replaceContent','polite','setSelection','_onExecute','showAIAssistant','render','_initAriaAiStatusChangeAnnouncements','push','order','length','set','628060WDcXbw','groupLabel','sort','699071NRiJpf','1329734CqrrpR','document','map','Error\x20during\x20AI\x20content\x20generation:\x20%0','change:isProcessing','_createAIAssistantUIButton','isPremiumPlugin','source','_initView','includes','bind','aiLicenseKeyEvaluationLimit','AIAssistant','currentContext','isFlat','_forceMarkersCopy','REPLACE','insertContent','expired','children','AIAssistantUI','rawHtml','ck-ai-commands-dropdown\x20','invalid','contentArea','robotPencil','isOfficialPlugin','_licenseKeyCheckInterval','menuPanelClass','text/html','enabledCommandsIds','getSelectedBlocks','change:value','_aiAdapter','requires','textAdapter','errorView','label','_getResolvedCommandsDefinitions','Generated\x20content:\x20%0','replace','getLimitElement','fieldView','define','trim','aiLicenseKeyExpired','menuitemcheckbox','queryView','updateView','AI\x20Commands','menuBar:aiAssistant','_populateMenuBarMenu','_uiCssClasses','custom','<p>','add','aiAssistant','destroy','addMany','DataTransfer','updatePosition','panelView','plugins','command:','schema','ck-ai-assistant-ui','get','licenseKey','usageLimit','change','aiCommands','_getMenuBarGroupButtons','locale','comment','filter','commands','isEnabled','groupId','requiresContent','showFakeVisualSelection','editing','body','trialLimit','ai-commands-config-order-collision','9RBgJHa','announce','items','editor','</p>','hideUI','show','text','from','tableOfContents','15347350fGfZEQ','hide','insertContentBelow','EDITOR_TOP_SIDE','buttonView','copy','evaluationLimit'];_0x1304=function(){return _0x1b7da0;};return _0x1304();}import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';const j=globalThis[_0x23ddb6(0xb4)];import{ClipboardMarkersUtils as _0x5773f1}from'ckeditor5/src/clipboard.js';import{DomEventData as _0x206eaf,DataTransfer as _0x346f8a}from'ckeditor5/src/engine.js';export default class n extends _0xea56e{static get[_0x23ddb6(0xea)](){const _0x1bf66e=_0x23ddb6;return _0x1bf66e(0x140);}static get[_0x23ddb6(0x146)](){return!0x0;}static get[_0x23ddb6(0x132)](){return!0x0;}static get[_0x23ddb6(0x14e)](){return[_0x5773f1,_0x394d79,_0xc7e157,_0x528ed8];}constructor(_0x41982d){const _0x4ff8de=_0x23ddb6;super(_0x41982d),this[_0x4ff8de(0xad)]='',_0x41982d[_0x4ff8de(0xe2)][_0x4ff8de(0xa4)](_0x4ff8de(0xff),[_0x4ff8de(0xee),_0x4ff8de(0x141),_0x4ff8de(0xd6)]),_0x41982d[_0x4ff8de(0xe2)][_0x4ff8de(0xa4)](_0x4ff8de(0xfe),''),_0x41982d[_0x4ff8de(0xe2)][_0x4ff8de(0xa4)](_0x4ff8de(0x115),!0x0),this[_0x4ff8de(0xad)]=_0x4ff8de(0xba)+(_0x41982d[_0x4ff8de(0xe2)][_0x4ff8de(0xbb)](_0x4ff8de(0x115))?_0x4ff8de(0xfa):'');}[_0x23ddb6(0xde)](){const _0x45f1e1=_0x23ddb6,{editor:_0x57e4f3}=this;this[_0x45f1e1(0x14d)]=_0x57e4f3[_0x45f1e1(0xb7)][_0x45f1e1(0xbb)](_0xc7e157),this[_0x45f1e1(0x113)]=_0x57e4f3[_0x45f1e1(0xb7)][_0x45f1e1(0xbb)](_0x528ed8),this[_0x45f1e1(0xf2)]=null,this[_0x45f1e1(0x101)]=this[_0x45f1e1(0x152)]();const _0x466b83=new _0x53ba43(_0x57e4f3,Array[_0x45f1e1(0xd5)](this[_0x45f1e1(0x101)][_0x45f1e1(0x107)]()));_0x57e4f3[_0x45f1e1(0xc4)][_0x45f1e1(0xb0)](_0x45f1e1(0x121),_0x466b83),_0x57e4f3['ui'][_0x45f1e1(0xf4)][_0x45f1e1(0xb0)](_0x45f1e1(0xbf),_0x2839d6=>{const _0x38a628=_0x45f1e1,_0x1b0e18=_0x44b825(_0x2839d6);return _0x1b0e18[_0x38a628(0x127)]({'class':_0x38a628(0x142)+this[_0x38a628(0xad)]}),_0x1b0e18[_0x38a628(0xdb)][_0x38a628(0x127)]({'label':_0x3c7b35(_0x2839d6,_0x38a628(0xaa)),'icon':_0x51d5a5,'tooltip':!0x0}),_0x1b0e18['on'](_0x38a628(0x10f),_0x32ba43=>this[_0x38a628(0x120)](_0x32ba43[_0x38a628(0x133)]['id'])),_0x1d280b(_0x1b0e18,_0x57e4f3['ui'][_0x38a628(0xe1)][_0x38a628(0xca)],function(_0x12f704){const _0x3f5c4d=_0x38a628,_0x198b71=_0x186e52(_0x12f704[_0x3f5c4d(0xe2)][_0x3f5c4d(0xbb)](_0x3f5c4d(0xeb)),_0x12f704[_0x3f5c4d(0xc1)]),_0x5ad07d=B(_0x12f704,_0x198b71)[_0x3f5c4d(0xc3)](_0x3ce7cc=>_0x3ce7cc[_0x3f5c4d(0xc4)][_0x3f5c4d(0x126)]);if(0x1===_0x5ad07d[_0x3f5c4d(0x126)])return B(_0x12f704,_0x5ad07d[0x0][_0x3f5c4d(0xc4)])[_0x3f5c4d(0x12e)](_0x58bfa8=>({'id':_0x58bfa8['id'],'label':_0x58bfa8[_0x3f5c4d(0x151)]}));return _0x5ad07d[_0x3f5c4d(0x12e)](_0x509ce6=>{const _0x17c880=_0x3f5c4d,{groupId:_0x375d45,groupLabel:_0x303ae3,commands:_0xf116e5}=_0x509ce6,_0x4563dd=B(_0x12f704,_0xf116e5)[_0x17c880(0x12e)](_0x3283ea=>({'id':_0x3283ea['id'],'label':_0x3283ea[_0x17c880(0x151)]}));return{'id':_0x375d45,'menu':_0x303ae3||_0x375d45,'children':_0x4563dd};});}(_0x57e4f3),{'ariaLabel':_0x3c7b35(_0x2839d6,_0x38a628(0xaa))}),_0x1b0e18[_0x38a628(0xdf)][_0x38a628(0x148)]=_0x38a628(0x142)+this[_0x38a628(0xad)],_0x466b83['on'](_0x38a628(0xe9),_0x63f450),_0x1b0e18[_0x38a628(0xdf)][_0x38a628(0xf9)](_0x38a628(0x122),_0x63f450),_0x1b0e18;function _0x63f450(){const _0x5bf4c8=_0x38a628;_0x1b0e18[_0x5bf4c8(0xc5)]=_0x466b83[_0x5bf4c8(0x14a)][_0x5bf4c8(0x126)]>0x0;for(const _0x40c42c of _0x1b0e18[_0x5bf4c8(0xdf)][_0x5bf4c8(0xf5)])_0x40c42c[_0x5bf4c8(0xc5)]=_0x466b83[_0x5bf4c8(0x14a)][_0x5bf4c8(0x135)](_0x40c42c['id']);}}),_0x57e4f3['ui'][_0x45f1e1(0xf4)][_0x45f1e1(0xb0)](_0x45f1e1(0x108),_0x2edf4d=>{const _0x542b13=_0x45f1e1,_0x5cf97e=new _0x5f150d(_0x2edf4d);_0x5cf97e[_0x542b13(0xdb)][_0x542b13(0x127)]({'label':_0x3c7b35(_0x2edf4d,_0x542b13(0xaa)),'icon':_0x51d5a5}),_0x5cf97e[_0x542b13(0x136)](_0x542b13(0xc5))['to'](_0x466b83,_0x542b13(0x14a),_0x36bb98=>_0x36bb98[_0x542b13(0x126)]>0x0);const _0x123b85=_0x186e52(_0x57e4f3[_0x542b13(0xe2)][_0x542b13(0xbb)](_0x542b13(0xeb)),_0x2edf4d);return this[_0x542b13(0xac)](_0x466b83,_0x5cf97e,_0x123b85,_0x30ad07=>this[_0x542b13(0x120)](_0x30ad07)),_0x5cf97e;}),_0x57e4f3['ui'][_0x45f1e1(0xf4)][_0x45f1e1(0xb0)](_0x45f1e1(0xb1),()=>{const _0x515f4c=_0x45f1e1,_0x53abfe=this[_0x515f4c(0x131)](_0x54d9be);return _0x53abfe[_0x515f4c(0x127)]({'tooltip':!0x0,'class':_0x515f4c(0x10e)+this[_0x515f4c(0xad)]}),_0x53abfe;}),_0x57e4f3['ui'][_0x45f1e1(0xf4)][_0x45f1e1(0xb0)](_0x45f1e1(0xab),()=>{const _0x190d79=_0x45f1e1,_0x4370ad=this[_0x190d79(0x131)](_0x421e68);return _0x4370ad[_0x190d79(0x127)]({'role':_0x190d79(0xa7)}),_0x4370ad;}),this[_0x45f1e1(0xbc)]=this[_0x45f1e1(0xd0)][_0x45f1e1(0xe2)][_0x45f1e1(0xbb)](_0x45f1e1(0xbc));const _0x31a957=this[_0x45f1e1(0xd0)];this[_0x45f1e1(0x147)]=setInterval(()=>{const _0x545cd9=_0x45f1e1;let _0x33aef1;for(const _0x5db190 in _0x31a957){const _0x34b6e2=_0x5db190,_0x1a483b=_0x31a957[_0x34b6e2];if(_0x545cd9(0xef)==_0x1a483b||_0x545cd9(0x116)==_0x1a483b||_0x545cd9(0xa6)==_0x1a483b||_0x545cd9(0xe3)==_0x1a483b||_0x545cd9(0xe0)==_0x1a483b||_0x545cd9(0x137)==_0x1a483b||_0x545cd9(0xe8)==_0x1a483b||_0x545cd9(0x11a)==_0x1a483b||_0x545cd9(0xf6)==_0x1a483b){delete _0x31a957[_0x34b6e2],_0x33aef1=_0x1a483b,clearInterval(this[_0x545cd9(0x147)]),this[_0x545cd9(0x147)]=void 0x0;break;}}_0x545cd9(0x116)==_0x33aef1&&_0x31a957[_0x545cd9(0x11b)](_0x545cd9(0x143)),_0x545cd9(0xa6)==_0x33aef1&&_0x31a957[_0x545cd9(0x11b)](_0x545cd9(0x13e)),_0x545cd9(0xe3)==_0x33aef1&&_0x31a957[_0x545cd9(0x11b)](_0x545cd9(0xfb)),_0x545cd9(0xe0)==_0x33aef1&&_0x31a957[_0x545cd9(0x11b)](_0x545cd9(0xe4),_0x545cd9(0x138)),_0x545cd9(0x137)==_0x33aef1&&_0x31a957[_0x545cd9(0x11b)](_0x545cd9(0xdd)),_0x545cd9(0xe8)==_0x33aef1&&_0x31a957[_0x545cd9(0x11b)](_0x545cd9(0xcb)),_0x545cd9(0x11a)==_0x33aef1&&_0x31a957[_0x545cd9(0x11b)](_0x545cd9(0xf0)),_0x545cd9(0xf6)==_0x33aef1&&_0x31a957[_0x545cd9(0x11b)](_0x545cd9(0xbd));},0x3e8);}[_0x23ddb6(0xb2)](){const _0x14039c=_0x23ddb6;super[_0x14039c(0xb2)](),this[_0x14039c(0x147)]&&clearInterval(this[_0x14039c(0x147)]);}[_0x23ddb6(0xf1)](_0x18773b='',_0x473092='',_0x320152=_0x23ddb6(0xae)){const _0x1e3ee0=_0x23ddb6,_0x4ff70f=this[_0x1e3ee0(0xd0)],_0x2b2ea4=_0x4ff70f[_0x1e3ee0(0xc9)][_0x1e3ee0(0xe1)],_0x35a2ff=_0x4ff70f[_0x1e3ee0(0xb7)][_0x1e3ee0(0xbb)](_0x394d79),_0xcbe84f=_0x4ff70f[_0x1e3ee0(0xb7)][_0x1e3ee0(0xbb)](_0x5773f1);_0x35a2ff[_0x1e3ee0(0xc8)]();const _0x2adf8d=new j(),_0x17ea70=new ClipboardEvent(_0x1e3ee0(0xdc),{'clipboardData':_0x2adf8d}),_0xdea639=new _0x346f8a(_0x2adf8d),_0x344e2d=new _0x206eaf(_0x2b2ea4,_0x17ea70,{'dataTransfer':_0xdea639});_0xcbe84f[_0x1e3ee0(0x13b)](_0x1e3ee0(0xc2),()=>{const _0x44358f=_0x1e3ee0;_0x2b2ea4[_0x44358f(0x12d)][_0x44358f(0x102)](_0x44358f(0xdc),_0x344e2d);}),this[_0x1e3ee0(0xf2)]||(this[_0x1e3ee0(0x134)](),this[_0x1e3ee0(0xe7)]=new _0xce50b4(_0x4ff70f,this[_0x1e3ee0(0x14d)][_0x1e3ee0(0x14f)],this[_0x1e3ee0(0xf2)]));let _0x171ffa=_0xdea639[_0x1e3ee0(0xfd)](_0x1e3ee0(0x149));const _0x415f9d=_0x4ff70f[_0x1e3ee0(0x114)][_0x1e3ee0(0x12d)][_0x1e3ee0(0x10c)],_0xc92c5e=Array[_0x1e3ee0(0xd5)](_0x415f9d[_0x1e3ee0(0xf8)]());0x1===_0xc92c5e[_0x1e3ee0(0x126)]&&_0xc92c5e[0x0][_0x1e3ee0(0x13a)]&&!_0x415f9d[_0x1e3ee0(0x10d)]()&&''!==_0x171ffa[_0x1e3ee0(0xa1)](/ /g,'')[_0x1e3ee0(0xa5)]()&&(_0x171ffa=_0x1e3ee0(0xaf)+_0x171ffa+_0x1e3ee0(0xd1)),this[_0x1e3ee0(0xe7)][_0x1e3ee0(0xa9)]({'actionId':_0x320152,'query':_0x18773b,'htmlContent':_0x171ffa,'label':_0x473092,'mainActionLabel':_0xec1cf2[_0x4ff70f[_0x1e3ee0(0x114)][_0x1e3ee0(0x12d)][_0x1e3ee0(0x10c)][_0x1e3ee0(0xf7)]?_0x1e3ee0(0x100):_0x1e3ee0(0x13c)]}),_0x1e3ee0(0xb1)!==this[_0x1e3ee0(0x113)]['id']?this[_0x1e3ee0(0x113)][_0x1e3ee0(0xd3)]({'id':_0x1e3ee0(0xb1),'icon':_0x3afb81[_0x1e3ee0(0x145)],'title':_0x3c7b35(this[_0x1e3ee0(0xd0)][_0x1e3ee0(0xc1)],_0x1e3ee0(0xfc)),'content':this[_0x1e3ee0(0xf2)],'position':_0x278c12[_0x1e3ee0(0xda)],'onShow':()=>{const _0x311c49=_0x1e3ee0;this[_0x311c49(0xf2)][_0x311c49(0x105)]();},'onHide':()=>{const _0x568843=_0x1e3ee0;this[_0x568843(0xe7)][_0x568843(0x106)](),_0x35a2ff[_0x568843(0x119)]();}}):this[_0x1e3ee0(0x113)][_0x1e3ee0(0xe1)][_0x1e3ee0(0xe6)]||this[_0x1e3ee0(0x113)][_0x1e3ee0(0xe1)][_0x1e3ee0(0xb5)]();}[_0x23ddb6(0xd2)](){const _0x18125d=_0x23ddb6;this[_0x18125d(0x113)][_0x18125d(0xd8)]();}[_0x23ddb6(0x152)](){const _0x1bbf33=_0x23ddb6,_0x375762=new Map(),_0x43dace=_0x186e52(this[_0x1bbf33(0xd0)][_0x1bbf33(0xe2)][_0x1bbf33(0xbb)](_0x1bbf33(0xeb)),this[_0x1bbf33(0xd0)][_0x1bbf33(0xc1)]);for(const _0x3256d2 of _0x43dace)for(const _0xb28387 of _0x3256d2[_0x1bbf33(0xc4)])_0x375762[_0x1bbf33(0x127)](_0xb28387['id'],{..._0xb28387,'groupId':_0x3256d2[_0x1bbf33(0xc6)],'groupLabel':_0x3256d2[_0x1bbf33(0x129)]||_0x3256d2[_0x1bbf33(0xc6)]});return _0x375762;}[_0x23ddb6(0x131)](_0x1e7212){const _0x1530b0=_0x23ddb6,_0x28e423=this[_0x1530b0(0xd0)],_0x335fb4=_0x28e423[_0x1530b0(0xc4)][_0x1530b0(0xbb)](_0x1530b0(0x121)),_0x3212bc=new _0x1e7212(_0x28e423[_0x1530b0(0xc1)]);return _0x3212bc[_0x1530b0(0x127)]({'label':_0x3c7b35(_0x28e423[_0x1530b0(0xc1)],_0x1530b0(0xfc)),'icon':_0x3afb81[_0x1530b0(0x145)],'isToggleable':!0x0}),_0x3212bc[_0x1530b0(0x136)](_0x1530b0(0xc5))['to'](_0x335fb4),_0x3212bc[_0x1530b0(0x136)](_0x1530b0(0x110))['to'](this[_0x1530b0(0x113)],'id',_0x5c3cb0=>_0x1530b0(0xb1)===_0x5c3cb0),this[_0x1530b0(0x109)](_0x3212bc,_0x1530b0(0x10f),()=>{const _0x540e6d=_0x1530b0;_0x3212bc[_0x540e6d(0x110)]?this[_0x540e6d(0xd2)]():_0x335fb4[_0x540e6d(0x10f)]();}),_0x3212bc;}[_0x23ddb6(0x134)](){const _0x3fd7d3=_0x23ddb6,_0x4c459c=this[_0x3fd7d3(0xd0)][_0x3fd7d3(0xb7)][_0x3fd7d3(0xbb)](_0x394d79);this[_0x3fd7d3(0xf2)]=new _0x31c30c(this[_0x3fd7d3(0xd0)][_0x3fd7d3(0xc1)],this[_0x3fd7d3(0xad)],this[_0x3fd7d3(0xd0)][_0x3fd7d3(0xe2)][_0x3fd7d3(0xbb)](_0x3fd7d3(0xfe))),this[_0x3fd7d3(0xf2)]['on'](_0x3fd7d3(0x14c),()=>{const _0x4b161d=_0x3fd7d3;this[_0x4b161d(0x113)][_0x4b161d(0xe1)][_0x4b161d(0xe6)]||this[_0x4b161d(0x113)][_0x4b161d(0xe1)][_0x4b161d(0xb5)]();}),this[_0x3fd7d3(0xf2)][_0x3fd7d3(0x118)][_0x3fd7d3(0xa8)][_0x3fd7d3(0xa3)]['on'](_0x3fd7d3(0x11c),()=>{const _0x1644f8=_0x3fd7d3;this[_0x1644f8(0x113)][_0x1644f8(0xe1)][_0x1644f8(0xe6)]||this[_0x1644f8(0x113)][_0x1644f8(0xe1)][_0x1644f8(0xb5)]();}),this[_0x3fd7d3(0x109)](this[_0x3fd7d3(0xf2)],_0x3fd7d3(0x11d),()=>{const _0x45b07a=_0x3fd7d3;_0x4c459c[_0x45b07a(0x13d)](this[_0x45b07a(0xe7)][_0x45b07a(0x139)]),this[_0x45b07a(0xd2)]();}),this[_0x3fd7d3(0x109)](this[_0x3fd7d3(0xf2)],_0x3fd7d3(0xd9),()=>{const _0x48fef3=_0x3fd7d3;_0x4c459c[_0x48fef3(0xd9)](this[_0x48fef3(0xe7)][_0x48fef3(0x139)]),this[_0x48fef3(0xd2)]();}),this[_0x3fd7d3(0x123)]();}[_0x23ddb6(0x123)](){const _0x37db93=_0x23ddb6,{locale:_0x5786c4,ui:{ariaLiveAnnouncer:_0x2c34ca}}=this[_0x37db93(0xd0)];this[_0x37db93(0xf2)][_0x37db93(0x144)]['on'](_0x37db93(0x130),(_0x1d7a89,_0x51b6a4,_0x398529)=>{const _0x4ec506=_0x37db93,_0x3f7f50=this[_0x4ec506(0xe7)][_0x4ec506(0x139)];_0x398529?_0x2c34ca[_0x4ec506(0xce)](_0x3c7b35(_0x5786c4,_0x4ec506(0xed))):_0x3f7f50&&_0x2c34ca[_0x4ec506(0xce)](_0x3c7b35(_0x5786c4,_0x4ec506(0xa0),_0x3f7f50),{'politeness':_0x4ec506(0x11e),'isUnsafeHTML':!0x0});}),this[_0x37db93(0xf2)]['on'](_0x37db93(0x10a),(_0x1ae24e,_0x29f4f4,_0x10ee0c)=>{const _0x397c34=_0x37db93;if(_0x10ee0c){const _0x56102c=this[_0x397c34(0xf2)][_0x397c34(0x150)][_0x397c34(0xd4)];_0x2c34ca[_0x397c34(0xce)](_0x3c7b35(_0x5786c4,_0x397c34(0x12f),_0x56102c));}});}[_0x23ddb6(0x120)](_0x29cca4){const _0x3bb4ac=_0x23ddb6,_0x461f88=this[_0x3bb4ac(0x101)][_0x3bb4ac(0xbb)](_0x29cca4),_0x1452a9=this[_0x3bb4ac(0xd0)],_0x299875=_0x1452a9[_0x3bb4ac(0x114)][_0x3bb4ac(0x12d)][_0x3bb4ac(0x10c)],_0x605f2e=_0x1452a9[_0x3bb4ac(0xc4)][_0x3bb4ac(0xbb)](_0x3bb4ac(0x121)),_0x39c0ba=_0x1452a9[_0x3bb4ac(0xb7)][_0x3bb4ac(0xbb)](_0x394d79),_0x36fb6e=''+(_0x461f88[_0x3bb4ac(0xc6)]!==_0x96658?_0x461f88[_0x3bb4ac(0x129)]+':\x20':'')+_0x461f88[_0x3bb4ac(0x151)];if(!0x1!==_0x461f88[_0x3bb4ac(0xc7)]&&_0x299875[_0x3bb4ac(0xf7)]){const _0x59b0c3=_0x3b8e7d(_0x299875[_0x3bb4ac(0x14b)]())||_0x1452a9[_0x3bb4ac(0x114)][_0x3bb4ac(0xb9)][_0x3bb4ac(0xa2)](_0x299875);_0x1452a9[_0x3bb4ac(0x114)][_0x3bb4ac(0xbe)](_0xbe6ba7=>{const _0x4cef4d=_0x3bb4ac;_0xbe6ba7[_0x4cef4d(0x11f)](_0x59b0c3,'in');});}_0x39c0ba[_0x3bb4ac(0xc8)](),_0x605f2e[_0x3bb4ac(0x10f)](_0x461f88[_0x3bb4ac(0x111)],_0x36fb6e,_0x3bb4ac(0xb8)+_0x29cca4);}[_0x23ddb6(0xac)](_0x4ad211,_0x34254d,_0x5dbd27,_0x18605d){const _0x5a2c5f=_0x23ddb6,_0x3590b6=this[_0x5a2c5f(0xd0)],_0x4d6473=_0x3590b6[_0x5a2c5f(0xc1)],_0x32ed9f=new _0x33b9b7(_0x4d6473),_0xaf17=B(_0x3590b6,_0x5dbd27)[_0x5a2c5f(0xc3)](_0x2965b9=>_0x2965b9[_0x5a2c5f(0xc4)][_0x5a2c5f(0x126)]);0x1===_0xaf17[_0x5a2c5f(0x126)]?this[_0x5a2c5f(0xc0)]({'command':_0x4ad211,'commands':_0xaf17[0x0][_0x5a2c5f(0xc4)],'parentMenuView':_0x34254d,'onExecute':_0x18605d})[_0x5a2c5f(0xe5)](_0x46d067=>_0x32ed9f[_0x5a2c5f(0xcf)][_0x5a2c5f(0xb0)](_0x46d067)):_0xaf17[_0x5a2c5f(0xe5)](({groupId:_0x52d7ec,groupLabel:_0x247ffc,commands:_0x5ec9f8})=>{const _0x4012c3=_0x5a2c5f,_0x45452d=new _0xa4dacc(_0x4d6473,_0x34254d),_0x1b149a=new _0x5f150d(_0x4d6473),_0x5a96b8=new _0x33b9b7(_0x4d6473),_0x313997=this[_0x4012c3(0xc0)]({'command':_0x4ad211,'commands':_0x5ec9f8,'parentMenuView':_0x1b149a,'onExecute':_0x18605d});_0x1b149a[_0x4012c3(0xdb)][_0x4012c3(0x127)]({'label':_0x247ffc||_0x52d7ec}),_0x1b149a[_0x4012c3(0x112)](_0x4012c3(0x10f))['to'](_0x34254d),_0x5a96b8[_0x4012c3(0xcf)][_0x4012c3(0xb3)](_0x313997),_0x1b149a[_0x4012c3(0xb6)][_0x4012c3(0x13f)][_0x4012c3(0xb0)](_0x5a96b8),_0x45452d[_0x4012c3(0x13f)][_0x4012c3(0xb0)](_0x1b149a),_0x32ed9f[_0x4012c3(0xcf)][_0x4012c3(0xb0)](_0x45452d);}),_0x34254d[_0x5a2c5f(0xb6)][_0x5a2c5f(0x13f)][_0x5a2c5f(0xb0)](_0x32ed9f);}[_0x23ddb6(0xc0)]({command:_0x5ab188,commands:_0x52cd40,parentMenuView:_0x101acc,onExecute:_0xa4e056}){const _0x2dc4af=_0x23ddb6,_0x197eec=this[_0x2dc4af(0xd0)],_0x273b5a=_0x197eec[_0x2dc4af(0xc1)];return B(_0x197eec,_0x52cd40)[_0x2dc4af(0x12e)](_0x33fc32=>{const _0x3d905c=_0x2dc4af,_0x2f549f=new _0xa4dacc(_0x273b5a,_0x101acc),_0x2d6409=new _0x421e68(_0x273b5a);return _0x2d6409[_0x3d905c(0x127)]({'label':_0x33fc32[_0x3d905c(0x151)]}),_0x2d6409[_0x3d905c(0x112)](_0x3d905c(0x10f))['to'](_0x101acc),_0x2d6409['on'](_0x3d905c(0x10f),()=>_0xa4e056(_0x33fc32['id'])),_0x2d6409[_0x3d905c(0x136)](_0x3d905c(0xc5))['to'](_0x5ab188,_0x3d905c(0x14a),_0xcd73ed=>_0xcd73ed[_0x3d905c(0x135)](_0x33fc32['id'])),_0x2f549f[_0x3d905c(0x13f)][_0x3d905c(0xb0)](_0x2d6409),_0x2f549f;});}}function _(_0xa5d336,_0x5234b1){const _0x451f03=_0x23ddb6;return void 0x0!==_0xa5d336[_0x451f03(0x125)]&&void 0x0===_0x5234b1[_0x451f03(0x125)]?0x1:void 0x0===_0xa5d336[_0x451f03(0x125)]&&void 0x0!==_0x5234b1[_0x451f03(0x125)]?-0x1:void 0x0!==_0xa5d336[_0x451f03(0x125)]&&void 0x0!==_0x5234b1[_0x451f03(0x125)]?_0xa5d336[_0x451f03(0x125)]-_0x5234b1[_0x451f03(0x125)]:0x0;}function _0x4ed4(_0x1fd47a,_0xa314ee){const _0x130413=_0x1304();return _0x4ed4=function(_0x4ed4dd,_0x573b5f){_0x4ed4dd=_0x4ed4dd-0xa0;let _0x273e36=_0x130413[_0x4ed4dd];return _0x273e36;},_0x4ed4(_0x1fd47a,_0xa314ee);}function B(_0x24ec29,_0x2f53ee){const _0x5ca3e3=_0x23ddb6;_0x2f53ee[_0x5ca3e3(0x12a)](_);const _0x5606ad={},_0x4e9c1e=[];for(const _0x4856c3 of _0x2f53ee)if(void 0x0!==_0x4856c3[_0x5ca3e3(0x125)]){if(_0x4856c3[_0x5ca3e3(0x125)]in _0x5606ad)throw new _0x22e690(_0x5ca3e3(0xcc),_0x24ec29,{'conflictingDefinitions':[_0x4856c3,_0x5606ad[_0x4856c3[_0x5ca3e3(0x125)]]]});_0x5606ad[_0x4856c3[_0x5ca3e3(0x125)]]=_0x4856c3,_0x4e9c1e[_0x5ca3e3(0x103)](_0x4856c3[_0x5ca3e3(0x125)],0x0,_0x4856c3);}else _0x4e9c1e[_0x5ca3e3(0x124)](_0x4856c3);return _0x4e9c1e;}
|
|
23
|
+
const _0xe3a56c=_0x2eb3;function _0x2eb3(_0x27f1ee,_0x29364d){const _0x10915e=_0x1091();return _0x2eb3=function(_0x2eb351,_0x24715f){_0x2eb351=_0x2eb351-0x156;let _0x1b6738=_0x10915e[_0x2eb351];return _0x1b6738;},_0x2eb3(_0x27f1ee,_0x29364d);}(function(_0x5b1e9c,_0x42d23c){const _0x682e1a=_0x2eb3,_0x5ab26a=_0x5b1e9c();while(!![]){try{const _0x38a877=parseInt(_0x682e1a(0x1ca))/0x1+parseInt(_0x682e1a(0x1da))/0x2*(parseInt(_0x682e1a(0x1f2))/0x3)+parseInt(_0x682e1a(0x157))/0x4*(-parseInt(_0x682e1a(0x174))/0x5)+-parseInt(_0x682e1a(0x165))/0x6+-parseInt(_0x682e1a(0x206))/0x7*(-parseInt(_0x682e1a(0x1d5))/0x8)+-parseInt(_0x682e1a(0x1b9))/0x9+parseInt(_0x682e1a(0x182))/0xa*(parseInt(_0x682e1a(0x167))/0xb);if(_0x38a877===_0x42d23c)break;else _0x5ab26a['push'](_0x5ab26a['shift']());}catch(_0x5493fa){_0x5ab26a['push'](_0x5ab26a['shift']());}}}(_0x1091,0xeda5d));import{Plugin as _0x467449}from'ckeditor5/src/core.js';import{first as _0x381819,CKEditorError as _0x20f005}from'ckeditor5/src/utils.js';import{createDropdown as _0xcaedfe,addMenuToDropdown as _0x248167,ButtonView as _0x5e0ace,MenuBarMenuListItemButtonView as _0x5cfac3,Dialog as _0x507a3f,DialogViewPosition as _0x4fa6ec,MenuBarMenuView as _0x1d957c,MenuBarMenuListView as _0x392d76,MenuBarMenuListItemView as _0x1c26fd}from'ckeditor5/src/ui.js';import{icons as _0x1d659f}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x1091(){const _0x58bd8d=['_initView','aiLicenseKeyUsageLimit','reset','INSERT','aiLicenseKeyNotAllowed','items','4866561ofqnFF','command:','change:isError','listenTo','splice','1275388CfAHBq','<p>','currentContext','requiresContent','_aiAdapter','getSelectedBlocks','includes','groupLabel','_aiAssistantController','change:isProcessing','AIAssistantUI','announce','custom','usageLimit','10639854cfpndY','aiLicenseKeyValid','55FfpgtZ','queryView','menuitemcheckbox','insertContentBelow','_showLicenseError','aiLicenseKeyExpired','ai.aiAssistant.disabledElements','filter','model','isCollapsed','getSelectedElement','REPLACE','ai.aiAssistant.contentAreaCssClass','15GfbVnG','contentArea','expired','Error\x20during\x20AI\x20content\x20generation:\x20%0','add','menuPanelClass','editing','getLimitElement','aiLicenseKeyTrialLimit','aiLicenseKeyDomainLimit','_commandDefinitions','Generated\x20content:\x20%0','wasMoved','tableOfContents','3938890qyPuYb','requires','body','EDITOR_TOP_SIDE','showUI','label','set','define','AI\x20Assistant','copy','editor','aiCommands','ck-ai-commands-dropdown\x20','isPremiumPlugin','showAIAssistant','get','enabledCommandsIds','from','source','buttonView','values','aiAssistant','fieldView','replaceContent','\x20ck-ai-assistant-ui_theme','hideFakeVisualSelection','locale','render','updateView','change','replace','robotPencil','config','text','panelView','isFlat','aiLicenseKeyEvaluationLimit','promptView','groupId','forEach','_initAriaAiStatusChangeAnnouncements','map','children','polite','getRanges','selection','push','showFakeVisualSelection','fire','delegate','AI\x20Commands','trialLimit','text/html','prompt','_licenseKeyCheckInterval','10473957uJQuGZ','updatePosition','_forceMarkersCopy','DataTransfer','invalid','isEnabled','schema','</p>','textAdapter','AI\x20is\x20writing','_dialog','rawHtml','show','addMany','bind','destroy','ck-ai-assistant-button\x20','1640914SEhcuk','domainLimit','_populateMenuBarMenu','menuView','comment','insertContent','componentFactory','execute','aiLicenseKeyInvalid','hide','change:enabledCommandsIds','8myvEJQ','_createAIAssistantUIButton','featureNotAllowed','hideUI','AIAssistant','694WjcfWy','_uiCssClasses','change:value','buttons','_onExecute','order','pluginName','focus','media','setSelection','length','once','isOn','ck-ai-assistant-ui','view','trim','plugins','_getMenuBarGroupButtons','errorView','commands','licenseKey','aiLicenseKeyDevelopmentLimit','evaluationLimit','document','4854McNPkN','_getResolvedCommandsDefinitions','_formView','init','menuBar:aiAssistant','ai.useTheme','ai.aiAssistant.commands','sort','update','developmentLimit','isOfficialPlugin','ai-commands-config-order-collision','getData','menuBar:aiCommands'];_0x1091=function(){return _0x58bd8d;};return _0x1091();}import{normalizeCommandsConfig as _0x3fde61,UNGROUPED_COMMANDS_GROUP_ID as _0x548ffb}from'./utils/normalizecommandsconfig.js';import _0x78cc21 from'./aiassistantediting.js';import _0x4736bf from'./adapters/aiadapter.js';import{getTranslation as _0x24e529}from'./utils/common-translations.js';import _0x446207 from'./ui/showaiassistantcommand.js';import _0x1fdadd from'./ui/aiassistantcontroller.js';import _0x103253 from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x4a7e66}from'./ui/form/aiformtoolbarview.js';import _0x27f4bf from'../theme/icons/magic-wand.svg';import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';const j=globalThis[_0xe3a56c(0x1bc)];import{ClipboardMarkersUtils as _0x5d4ca4}from'ckeditor5/src/clipboard.js';import{DomEventData as _0x67ce1,DataTransfer as _0x25352a}from'ckeditor5/src/engine.js';export default class n extends _0x467449{static get[_0xe3a56c(0x1e0)](){const _0x5d3e5f=_0xe3a56c;return _0x5d3e5f(0x161);}static get[_0xe3a56c(0x1fc)](){return!0x0;}static get[_0xe3a56c(0x18f)](){return!0x0;}static get[_0xe3a56c(0x183)](){return[_0x5d4ca4,_0x78cc21,_0x4736bf,_0x507a3f];}constructor(_0x75422f){const _0x5b2b14=_0xe3a56c;super(_0x75422f),this[_0x5b2b14(0x1db)]='',_0x75422f[_0x5b2b14(0x1a2)][_0x5b2b14(0x189)](_0x5b2b14(0x16d),[_0x5b2b14(0x1e2),_0x5b2b14(0x1c4),_0x5b2b14(0x181)]),_0x75422f[_0x5b2b14(0x1a2)][_0x5b2b14(0x189)](_0x5b2b14(0x173),''),_0x75422f[_0x5b2b14(0x1a2)][_0x5b2b14(0x189)](_0x5b2b14(0x1f7),!0x0),this[_0x5b2b14(0x1db)]=_0x5b2b14(0x1e7)+(_0x75422f[_0x5b2b14(0x1a2)][_0x5b2b14(0x191)](_0x5b2b14(0x1f7))?_0x5b2b14(0x19a):'');}[_0xe3a56c(0x1f5)](){const _0x3dbec1=_0xe3a56c,{editor:_0xf69289}=this;this[_0x3dbec1(0x15b)]=_0xf69289[_0x3dbec1(0x1ea)][_0x3dbec1(0x191)](_0x4736bf),this[_0x3dbec1(0x1c3)]=_0xf69289[_0x3dbec1(0x1ea)][_0x3dbec1(0x191)](_0x507a3f),this[_0x3dbec1(0x1f4)]=null,this[_0x3dbec1(0x17e)]=this[_0x3dbec1(0x1f3)]();const _0x42b83d=new _0x446207(_0xf69289,Array[_0x3dbec1(0x193)](this[_0x3dbec1(0x17e)][_0x3dbec1(0x196)]()));_0xf69289[_0x3dbec1(0x1ed)][_0x3dbec1(0x178)](_0x3dbec1(0x190),_0x42b83d),_0xf69289['ui'][_0x3dbec1(0x1d0)][_0x3dbec1(0x178)](_0x3dbec1(0x18d),_0x2f0f27=>{const _0x554889=_0x3dbec1,_0x3e53ab=_0xcaedfe(_0x2f0f27);return _0x3e53ab[_0x554889(0x188)]({'class':_0x554889(0x18e)+this[_0x554889(0x1db)]}),_0x3e53ab[_0x554889(0x195)][_0x554889(0x188)]({'label':_0x24e529(_0x2f0f27,_0x554889(0x1b4)),'icon':_0x27f4bf,'tooltip':!0x0}),_0x3e53ab['on'](_0x554889(0x1d1),_0x4036b3=>this[_0x554889(0x1de)](_0x4036b3[_0x554889(0x194)]['id'])),_0x248167(_0x3e53ab,_0xf69289['ui'][_0x554889(0x1e8)][_0x554889(0x184)],function(_0x29fb81){const _0x1aaa00=_0x554889,_0x322dd8=_0x3fde61(_0x29fb81[_0x1aaa00(0x1a2)][_0x1aaa00(0x191)](_0x1aaa00(0x1f8)),_0x29fb81[_0x1aaa00(0x19c)]),_0x58e6dd=B(_0x29fb81,_0x322dd8)[_0x1aaa00(0x16e)](_0x12ff32=>_0x12ff32[_0x1aaa00(0x1ed)][_0x1aaa00(0x1e4)]);if(0x1===_0x58e6dd[_0x1aaa00(0x1e4)])return B(_0x29fb81,_0x58e6dd[0x0][_0x1aaa00(0x1ed)])[_0x1aaa00(0x1ab)](_0x319db9=>({'id':_0x319db9['id'],'label':_0x319db9[_0x1aaa00(0x187)]}));return _0x58e6dd[_0x1aaa00(0x1ab)](_0x4fc08a=>{const _0x4b613f=_0x1aaa00,{groupId:_0x37e57a,groupLabel:_0x223dd6,commands:_0x45c37d}=_0x4fc08a,_0x240ad1=B(_0x29fb81,_0x45c37d)[_0x4b613f(0x1ab)](_0x3d4c24=>({'id':_0x3d4c24['id'],'label':_0x3d4c24[_0x4b613f(0x187)]}));return{'id':_0x37e57a,'menu':_0x223dd6||_0x37e57a,'children':_0x240ad1};});}(_0xf69289),{'ariaLabel':_0x24e529(_0x2f0f27,_0x554889(0x1b4))}),_0x3e53ab[_0x554889(0x1cd)][_0x554889(0x179)]=_0x554889(0x18e)+this[_0x554889(0x1db)],_0x42b83d['on'](_0x554889(0x1d4),_0x14eb86),_0x3e53ab[_0x554889(0x1cd)][_0x554889(0x1e5)](_0x554889(0x19d),_0x14eb86),_0x3e53ab;function _0x14eb86(){const _0x5d2151=_0x554889;_0x3e53ab[_0x5d2151(0x1be)]=_0x42b83d[_0x5d2151(0x192)][_0x5d2151(0x1e4)]>0x0;for(const _0x5b1f2b of _0x3e53ab[_0x5d2151(0x1cd)][_0x5d2151(0x1dd)])_0x5b1f2b[_0x5d2151(0x1be)]=_0x42b83d[_0x5d2151(0x192)][_0x5d2151(0x15d)](_0x5b1f2b['id']);}}),_0xf69289['ui'][_0x3dbec1(0x1d0)][_0x3dbec1(0x178)](_0x3dbec1(0x1ff),_0x4846d9=>{const _0x3914ad=_0x3dbec1,_0x920691=new _0x1d957c(_0x4846d9);_0x920691[_0x3914ad(0x195)][_0x3914ad(0x188)]({'label':_0x24e529(_0x4846d9,_0x3914ad(0x1b4)),'icon':_0x27f4bf}),_0x920691[_0x3914ad(0x1c7)](_0x3914ad(0x1be))['to'](_0x42b83d,_0x3914ad(0x192),_0x1cd0af=>_0x1cd0af[_0x3914ad(0x1e4)]>0x0);const _0x3f6fb2=_0x3fde61(_0xf69289[_0x3914ad(0x1a2)][_0x3914ad(0x191)](_0x3914ad(0x1f8)),_0x4846d9);return this[_0x3914ad(0x1cc)](_0x42b83d,_0x920691,_0x3f6fb2,_0x3da8f4=>this[_0x3914ad(0x1de)](_0x3da8f4)),_0x920691;}),_0xf69289['ui'][_0x3dbec1(0x1d0)][_0x3dbec1(0x178)](_0x3dbec1(0x197),()=>{const _0x3713fd=_0x3dbec1,_0x46ce7e=this[_0x3713fd(0x1d6)](_0x5e0ace);return _0x46ce7e[_0x3713fd(0x188)]({'tooltip':!0x0,'class':_0x3713fd(0x1c9)+this[_0x3713fd(0x1db)]}),_0x46ce7e;}),_0xf69289['ui'][_0x3dbec1(0x1d0)][_0x3dbec1(0x178)](_0x3dbec1(0x1f6),()=>{const _0x20f203=_0x3dbec1,_0x3705f0=this[_0x20f203(0x1d6)](_0x5cfac3);return _0x3705f0[_0x20f203(0x188)]({'role':_0x20f203(0x169)}),_0x3705f0;}),this[_0x3dbec1(0x1ee)]=this[_0x3dbec1(0x18c)][_0x3dbec1(0x1a2)][_0x3dbec1(0x191)](_0x3dbec1(0x1ee));const _0x3bed12=this[_0x3dbec1(0x18c)];this[_0x3dbec1(0x1b8)]=setInterval(()=>{const _0x4713d1=_0x3dbec1;let _0xd6f7c3;for(const _0x2a6135 in _0x3bed12){const _0x21f81c=_0x2a6135,_0x4002cf=_0x3bed12[_0x21f81c];if(_0x4713d1(0x166)==_0x4002cf||_0x4713d1(0x1d2)==_0x4002cf||_0x4713d1(0x16c)==_0x4002cf||_0x4713d1(0x17d)==_0x4002cf||_0x4713d1(0x204)==_0x4002cf||_0x4713d1(0x1a6)==_0x4002cf||_0x4713d1(0x17c)==_0x4002cf||_0x4713d1(0x1ef)==_0x4002cf||_0x4713d1(0x201)==_0x4002cf){delete _0x3bed12[_0x21f81c],_0xd6f7c3=_0x4002cf,clearInterval(this[_0x4713d1(0x1b8)]),this[_0x4713d1(0x1b8)]=void 0x0;break;}}_0x4713d1(0x1d2)==_0xd6f7c3&&_0x3bed12[_0x4713d1(0x16b)](_0x4713d1(0x1bd)),_0x4713d1(0x16c)==_0xd6f7c3&&_0x3bed12[_0x4713d1(0x16b)](_0x4713d1(0x176)),_0x4713d1(0x17d)==_0xd6f7c3&&_0x3bed12[_0x4713d1(0x16b)](_0x4713d1(0x1cb)),_0x4713d1(0x204)==_0xd6f7c3&&_0x3bed12[_0x4713d1(0x16b)](_0x4713d1(0x1d7),_0x4713d1(0x1d9)),_0x4713d1(0x1a6)==_0xd6f7c3&&_0x3bed12[_0x4713d1(0x16b)](_0x4713d1(0x1f0)),_0x4713d1(0x17c)==_0xd6f7c3&&_0x3bed12[_0x4713d1(0x16b)](_0x4713d1(0x1b5)),_0x4713d1(0x1ef)==_0xd6f7c3&&_0x3bed12[_0x4713d1(0x16b)](_0x4713d1(0x1fb)),_0x4713d1(0x201)==_0xd6f7c3&&_0x3bed12[_0x4713d1(0x16b)](_0x4713d1(0x164));},0x3e8);}[_0xe3a56c(0x1c8)](){const _0x390ca7=_0xe3a56c;super[_0x390ca7(0x1c8)](),this[_0x390ca7(0x1b8)]&&clearInterval(this[_0x390ca7(0x1b8)]);}[_0xe3a56c(0x186)](_0x381a03='',_0x429e6b='',_0x448667=_0xe3a56c(0x163)){const _0x299974=_0xe3a56c,_0x2de39e=this[_0x299974(0x18c)],_0x3ba872=_0x2de39e[_0x299974(0x17a)][_0x299974(0x1e8)],_0x520746=_0x2de39e[_0x299974(0x1ea)][_0x299974(0x191)](_0x78cc21),_0x26ae53=_0x2de39e[_0x299974(0x1ea)][_0x299974(0x191)](_0x5d4ca4);_0x520746[_0x299974(0x1b1)]();const _0x1dc7bf=new j(),_0x3ec130=new ClipboardEvent(_0x299974(0x18b),{'clipboardData':_0x1dc7bf}),_0x1c6ebe=new _0x25352a(_0x1dc7bf),_0x461b08=new _0x67ce1(_0x3ba872,_0x3ec130,{'dataTransfer':_0x1c6ebe});_0x26ae53[_0x299974(0x1bb)](_0x299974(0x1ce),()=>{const _0x208ade=_0x299974;_0x3ba872[_0x208ade(0x1f1)][_0x208ade(0x1b2)](_0x208ade(0x18b),_0x461b08);}),this[_0x299974(0x1f4)]||(this[_0x299974(0x200)](),this[_0x299974(0x15f)]=new _0x1fdadd(_0x2de39e,this[_0x299974(0x15b)][_0x299974(0x1c1)],this[_0x299974(0x1f4)]));let _0xbb9cc8=_0x1c6ebe[_0x299974(0x1fe)](_0x299974(0x1b6));const _0x35a7ed=_0x2de39e[_0x299974(0x16f)][_0x299974(0x1f1)][_0x299974(0x1af)],_0x2d29d9=Array[_0x299974(0x193)](_0x35a7ed[_0x299974(0x1ae)]());0x1===_0x2d29d9[_0x299974(0x1e4)]&&_0x2d29d9[0x0][_0x299974(0x1a5)]&&!_0x35a7ed[_0x299974(0x171)]()&&''!==_0xbb9cc8[_0x299974(0x1a0)](/ /g,'')[_0x299974(0x1e9)]()&&(_0xbb9cc8=_0x299974(0x158)+_0xbb9cc8+_0x299974(0x1c0)),this[_0x299974(0x15f)][_0x299974(0x19e)]({'actionId':_0x448667,'query':_0x381a03,'htmlContent':_0xbb9cc8,'label':_0x429e6b,'mainActionLabel':_0x4a7e66[_0x2de39e[_0x299974(0x16f)][_0x299974(0x1f1)][_0x299974(0x1af)][_0x299974(0x170)]?_0x299974(0x203):_0x299974(0x172)]}),_0x299974(0x197)!==this[_0x299974(0x1c3)]['id']?this[_0x299974(0x1c3)][_0x299974(0x1c5)]({'id':_0x299974(0x197),'icon':_0x1d659f[_0x299974(0x1a1)],'title':_0x24e529(this[_0x299974(0x18c)][_0x299974(0x19c)],_0x299974(0x18a)),'content':this[_0x299974(0x1f4)],'position':_0x4fa6ec[_0x299974(0x185)],'onShow':()=>{const _0x31e53e=_0x299974;this[_0x31e53e(0x1f4)][_0x31e53e(0x1e1)]();},'onHide':()=>{const _0x2b6687=_0x299974;this[_0x2b6687(0x15f)][_0x2b6687(0x202)](),_0x520746[_0x2b6687(0x19b)]();}}):this[_0x299974(0x1c3)][_0x299974(0x1e8)][_0x299974(0x180)]||this[_0x299974(0x1c3)][_0x299974(0x1e8)][_0x299974(0x1ba)]();}[_0xe3a56c(0x1d8)](){const _0x2ecfe7=_0xe3a56c;this[_0x2ecfe7(0x1c3)][_0x2ecfe7(0x1d3)]();}[_0xe3a56c(0x1f3)](){const _0x5af1eb=_0xe3a56c,_0x5ece88=new Map(),_0xf7525b=_0x3fde61(this[_0x5af1eb(0x18c)][_0x5af1eb(0x1a2)][_0x5af1eb(0x191)](_0x5af1eb(0x1f8)),this[_0x5af1eb(0x18c)][_0x5af1eb(0x19c)]);for(const _0x5cbfcc of _0xf7525b)for(const _0x43c20c of _0x5cbfcc[_0x5af1eb(0x1ed)])_0x5ece88[_0x5af1eb(0x188)](_0x43c20c['id'],{..._0x43c20c,'groupId':_0x5cbfcc[_0x5af1eb(0x1a8)],'groupLabel':_0x5cbfcc[_0x5af1eb(0x15e)]||_0x5cbfcc[_0x5af1eb(0x1a8)]});return _0x5ece88;}[_0xe3a56c(0x1d6)](_0x2a3162){const _0x424f5a=_0xe3a56c,_0x2681a2=this[_0x424f5a(0x18c)],_0x1e8259=_0x2681a2[_0x424f5a(0x1ed)][_0x424f5a(0x191)](_0x424f5a(0x190)),_0x2d9105=new _0x2a3162(_0x2681a2[_0x424f5a(0x19c)]);return _0x2d9105[_0x424f5a(0x188)]({'label':_0x24e529(_0x2681a2[_0x424f5a(0x19c)],_0x424f5a(0x18a)),'icon':_0x1d659f[_0x424f5a(0x1a1)],'isToggleable':!0x0}),_0x2d9105[_0x424f5a(0x1c7)](_0x424f5a(0x1be))['to'](_0x1e8259),_0x2d9105[_0x424f5a(0x1c7)](_0x424f5a(0x1e6))['to'](this[_0x424f5a(0x1c3)],'id',_0x23c9c6=>_0x424f5a(0x197)===_0x23c9c6),this[_0x424f5a(0x209)](_0x2d9105,_0x424f5a(0x1d1),()=>{const _0x10d38f=_0x424f5a;_0x2d9105[_0x10d38f(0x1e6)]?this[_0x10d38f(0x1d8)]():_0x1e8259[_0x10d38f(0x1d1)]();}),_0x2d9105;}[_0xe3a56c(0x200)](){const _0x57426b=_0xe3a56c,_0x579f81=this[_0x57426b(0x18c)][_0x57426b(0x1ea)][_0x57426b(0x191)](_0x78cc21);this[_0x57426b(0x1f4)]=new _0x103253(this[_0x57426b(0x18c)][_0x57426b(0x19c)],this[_0x57426b(0x1db)],this[_0x57426b(0x18c)][_0x57426b(0x1a2)][_0x57426b(0x191)](_0x57426b(0x173))),this[_0x57426b(0x1f4)]['on'](_0x57426b(0x1dc),()=>{const _0x496552=_0x57426b;this[_0x496552(0x1c3)][_0x496552(0x1e8)][_0x496552(0x180)]||this[_0x496552(0x1c3)][_0x496552(0x1e8)][_0x496552(0x1ba)]();}),this[_0x57426b(0x1f4)][_0x57426b(0x1a7)][_0x57426b(0x168)][_0x57426b(0x198)]['on'](_0x57426b(0x1fa),()=>{const _0x17b50d=_0x57426b;this[_0x17b50d(0x1c3)][_0x17b50d(0x1e8)][_0x17b50d(0x180)]||this[_0x17b50d(0x1c3)][_0x17b50d(0x1e8)][_0x17b50d(0x1ba)]();}),this[_0x57426b(0x209)](this[_0x57426b(0x1f4)],_0x57426b(0x199),()=>{const _0x111979=_0x57426b;_0x579f81[_0x111979(0x1cf)](this[_0x111979(0x15f)][_0x111979(0x159)]),this[_0x111979(0x1d8)]();}),this[_0x57426b(0x209)](this[_0x57426b(0x1f4)],_0x57426b(0x16a),()=>{const _0x2b2693=_0x57426b;_0x579f81[_0x2b2693(0x16a)](this[_0x2b2693(0x15f)][_0x2b2693(0x159)]),this[_0x2b2693(0x1d8)]();}),this[_0x57426b(0x1aa)]();}[_0xe3a56c(0x1aa)](){const _0x38512d=_0xe3a56c,{locale:_0x159eb9,ui:{ariaLiveAnnouncer:_0x2aa3b1}}=this[_0x38512d(0x18c)];this[_0x38512d(0x1f4)][_0x38512d(0x175)]['on'](_0x38512d(0x160),(_0x3ea1b6,_0x55a499,_0x5c8869)=>{const _0x46663f=_0x38512d,_0x4ea61b=this[_0x46663f(0x15f)][_0x46663f(0x159)];_0x5c8869?_0x2aa3b1[_0x46663f(0x162)](_0x24e529(_0x159eb9,_0x46663f(0x1c2))):_0x4ea61b&&_0x2aa3b1[_0x46663f(0x162)](_0x24e529(_0x159eb9,_0x46663f(0x17f),_0x4ea61b),{'politeness':_0x46663f(0x1ad),'isUnsafeHTML':!0x0});}),this[_0x38512d(0x1f4)]['on'](_0x38512d(0x208),(_0x5f5878,_0x4ee6af,_0x2d866c)=>{const _0x2c9cd3=_0x38512d;if(_0x2d866c){const _0x37de68=this[_0x2c9cd3(0x1f4)][_0x2c9cd3(0x1ec)][_0x2c9cd3(0x1a3)];_0x2aa3b1[_0x2c9cd3(0x162)](_0x24e529(_0x159eb9,_0x2c9cd3(0x177),_0x37de68));}});}[_0xe3a56c(0x1de)](_0xdb7819){const _0x244fca=_0xe3a56c,_0x4aa649=this[_0x244fca(0x17e)][_0x244fca(0x191)](_0xdb7819),_0x58d8fd=this[_0x244fca(0x18c)],_0x1a0b89=_0x58d8fd[_0x244fca(0x16f)][_0x244fca(0x1f1)][_0x244fca(0x1af)],_0x49de26=_0x58d8fd[_0x244fca(0x1ed)][_0x244fca(0x191)](_0x244fca(0x190)),_0x35bf24=_0x58d8fd[_0x244fca(0x1ea)][_0x244fca(0x191)](_0x78cc21),_0x4787e2=''+(_0x4aa649[_0x244fca(0x1a8)]!==_0x548ffb?_0x4aa649[_0x244fca(0x15e)]+':\x20':'')+_0x4aa649[_0x244fca(0x187)];if(!0x1!==_0x4aa649[_0x244fca(0x15a)]&&_0x1a0b89[_0x244fca(0x170)]){const _0x42f7ff=_0x381819(_0x1a0b89[_0x244fca(0x15c)]())||_0x58d8fd[_0x244fca(0x16f)][_0x244fca(0x1bf)][_0x244fca(0x17b)](_0x1a0b89);_0x58d8fd[_0x244fca(0x16f)][_0x244fca(0x19f)](_0x180fc5=>{const _0x5d44af=_0x244fca;_0x180fc5[_0x5d44af(0x1e3)](_0x42f7ff,'in');});}_0x35bf24[_0x244fca(0x1b1)](),_0x49de26[_0x244fca(0x1d1)](_0x4aa649[_0x244fca(0x1b7)],_0x4787e2,_0x244fca(0x207)+_0xdb7819);}[_0xe3a56c(0x1cc)](_0x46a27f,_0x2d0a6d,_0x23b9d5,_0x543732){const _0x229266=_0xe3a56c,_0x143852=this[_0x229266(0x18c)],_0x23db6a=_0x143852[_0x229266(0x19c)],_0xd1f15e=new _0x392d76(_0x23db6a),_0x319677=B(_0x143852,_0x23b9d5)[_0x229266(0x16e)](_0x3c91ec=>_0x3c91ec[_0x229266(0x1ed)][_0x229266(0x1e4)]);0x1===_0x319677[_0x229266(0x1e4)]?this[_0x229266(0x1eb)]({'command':_0x46a27f,'commands':_0x319677[0x0][_0x229266(0x1ed)],'parentMenuView':_0x2d0a6d,'onExecute':_0x543732})[_0x229266(0x1a9)](_0x132446=>_0xd1f15e[_0x229266(0x205)][_0x229266(0x178)](_0x132446)):_0x319677[_0x229266(0x1a9)](({groupId:_0x171960,groupLabel:_0x3f3b4d,commands:_0x20cf8b})=>{const _0x33a9cf=_0x229266,_0x3348f3=new _0x1c26fd(_0x23db6a,_0x2d0a6d),_0x52a188=new _0x1d957c(_0x23db6a),_0x26a8a1=new _0x392d76(_0x23db6a),_0x3f89a5=this[_0x33a9cf(0x1eb)]({'command':_0x46a27f,'commands':_0x20cf8b,'parentMenuView':_0x52a188,'onExecute':_0x543732});_0x52a188[_0x33a9cf(0x195)][_0x33a9cf(0x188)]({'label':_0x3f3b4d||_0x171960}),_0x52a188[_0x33a9cf(0x1b3)](_0x33a9cf(0x1d1))['to'](_0x2d0a6d),_0x26a8a1[_0x33a9cf(0x205)][_0x33a9cf(0x1c6)](_0x3f89a5),_0x52a188[_0x33a9cf(0x1a4)][_0x33a9cf(0x1ac)][_0x33a9cf(0x178)](_0x26a8a1),_0x3348f3[_0x33a9cf(0x1ac)][_0x33a9cf(0x178)](_0x52a188),_0xd1f15e[_0x33a9cf(0x205)][_0x33a9cf(0x178)](_0x3348f3);}),_0x2d0a6d[_0x229266(0x1a4)][_0x229266(0x1ac)][_0x229266(0x178)](_0xd1f15e);}[_0xe3a56c(0x1eb)]({command:_0x5c3d71,commands:_0x270cd6,parentMenuView:_0x49bfe2,onExecute:_0x15e722}){const _0x153c0d=_0xe3a56c,_0x1e7fc3=this[_0x153c0d(0x18c)],_0x505d72=_0x1e7fc3[_0x153c0d(0x19c)];return B(_0x1e7fc3,_0x270cd6)[_0x153c0d(0x1ab)](_0x467b14=>{const _0x4781e8=_0x153c0d,_0x5a53e6=new _0x1c26fd(_0x505d72,_0x49bfe2),_0x451c2d=new _0x5cfac3(_0x505d72);return _0x451c2d[_0x4781e8(0x188)]({'label':_0x467b14[_0x4781e8(0x187)]}),_0x451c2d[_0x4781e8(0x1b3)](_0x4781e8(0x1d1))['to'](_0x49bfe2),_0x451c2d['on'](_0x4781e8(0x1d1),()=>_0x15e722(_0x467b14['id'])),_0x451c2d[_0x4781e8(0x1c7)](_0x4781e8(0x1be))['to'](_0x5c3d71,_0x4781e8(0x192),_0x1cc956=>_0x1cc956[_0x4781e8(0x15d)](_0x467b14['id'])),_0x5a53e6[_0x4781e8(0x1ac)][_0x4781e8(0x178)](_0x451c2d),_0x5a53e6;});}}function _(_0x3fe85b,_0x2c89ce){const _0x56f255=_0xe3a56c;return void 0x0!==_0x3fe85b[_0x56f255(0x1df)]&&void 0x0===_0x2c89ce[_0x56f255(0x1df)]?0x1:void 0x0===_0x3fe85b[_0x56f255(0x1df)]&&void 0x0!==_0x2c89ce[_0x56f255(0x1df)]?-0x1:void 0x0!==_0x3fe85b[_0x56f255(0x1df)]&&void 0x0!==_0x2c89ce[_0x56f255(0x1df)]?_0x3fe85b[_0x56f255(0x1df)]-_0x2c89ce[_0x56f255(0x1df)]:0x0;}function B(_0x3fbf5e,_0x3160b6){const _0x32af49=_0xe3a56c;_0x3160b6[_0x32af49(0x1f9)](_);const _0x599de0={},_0x52dbdc=[];for(const _0x35ce30 of _0x3160b6)if(void 0x0!==_0x35ce30[_0x32af49(0x1df)]){if(_0x35ce30[_0x32af49(0x1df)]in _0x599de0)throw new _0x20f005(_0x32af49(0x1fd),_0x3fbf5e,{'conflictingDefinitions':[_0x35ce30,_0x599de0[_0x35ce30[_0x32af49(0x1df)]]]});_0x599de0[_0x35ce30[_0x32af49(0x1df)]]=_0x35ce30,_0x52dbdc[_0x32af49(0x156)](_0x35ce30[_0x32af49(0x1df)],0x0,_0x35ce30);}else _0x52dbdc[_0x32af49(0x1b0)](_0x35ce30);return _0x52dbdc;}
|
package/src/aiconfig.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aiconfig
|
package/src/augmentation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import type AIAssistant from './aiassistant.js';
|
|
6
6
|
import type ShowAIAssistantCommand from './ui/showaiassistantcommand.js';
|
package/src/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module ai
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4eef4a,_0x29335b){var _0x3be726=_0xffb8,_0x1a5cd4=_0x4eef4a();while(!![]){try{var _0x22b26b=-parseInt(_0x3be726(0xd8))/0x1+-parseInt(_0x3be726(0xd4))/0x2+-parseInt(_0x3be726(0xd0))/0x3+parseInt(_0x3be726(0xd7))/0x4*(-parseInt(_0x3be726(0xcf))/0x5)+parseInt(_0x3be726(0xd1))/0x6+-parseInt(_0x3be726(0xd6))/0x7*(-parseInt(_0x3be726(0xd2))/0x8)+-parseInt(_0x3be726(0xd3))/0x9*(-parseInt(_0x3be726(0xd5))/0xa);if(_0x22b26b===_0x29335b)break;else _0x1a5cd4['push'](_0x1a5cd4['shift']());}catch(_0x1b21bf){_0x1a5cd4['push'](_0x1a5cd4['shift']());}}}(_0xa485,0xa3736));export{default as AIAssistant}from'./aiassistant.js';export{default as AIAdapter,AIRequestError}from'./adapters/aiadapter.js';export{default as AITextAdapter}from'./adapters/aitextadapter.js';export{default as OpenAITextAdapter}from'./adapters/openaitextadapter.js';function _0xa485(){var _0x4adff1=['65478LlUDqz','12lHfnEW','1271625jstWsV','799495oymvqm','2591667AhcMGe','2306352QfgFER','136IBepky','9jXvVwm','756134ZAdPme','31193620zpTwQJ'];_0xa485=function(){return _0x4adff1;};return _0xa485();}export{default as AWSTextAdapter}from'./adapters/awstextadapter.js';function _0xffb8(_0x242096,_0x3280ac){var _0xa48585=_0xa485();return _0xffb8=function(_0xffb8e2,_0x963560){_0xffb8e2=_0xffb8e2-0xcf;var _0x3a2bd4=_0xa48585[_0xffb8e2];return _0x3a2bd4;},_0xffb8(_0x242096,_0x3280ac);}import'./augmentation.js';
|
package/src/legacyerrors.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
export {};
|
package/src/legacyerrors.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x31a8da,_0x414b74){var _0x41c542=_0x4d22,_0x131552=_0x31a8da();while(!![]){try{var _0xfeac2b=-parseInt(_0x41c542(0x82))/0x1+-parseInt(_0x41c542(0x89))/0x2*(-parseInt(_0x41c542(0x8a))/0x3)+-parseInt(_0x41c542(0x88))/0x4+parseInt(_0x41c542(0x87))/0x5+-parseInt(_0x41c542(0x84))/0x6*(parseInt(_0x41c542(0x83))/0x7)+parseInt(_0x41c542(0x85))/0x8+-parseInt(_0x41c542(0x86))/0x9*(parseInt(_0x41c542(0x81))/0xa);if(_0xfeac2b===_0x414b74)break;else _0x131552['push'](_0x131552['shift']());}catch(_0xcdf60c){_0x131552['push'](_0x131552['shift']());}}}(_0x3c95,0xa696f));function _0x4d22(_0x146c91,_0x587fa8){var _0x3c95c7=_0x3c95();return _0x4d22=function(_0x4d22d4,_0xf4e107){_0x4d22d4=_0x4d22d4-0x81;var _0xa4ec8c=_0x3c95c7[_0x4d22d4];return _0xa4ec8c;},_0x4d22(_0x146c91,_0x587fa8);}function _0x3c95(){var _0x4d1ee4=['84MgEXgC','279042RLOdpr','10473008ysiNZN','12804336pqdScp','5315960wriPcC','3116168ZUlOQe','4yfXSMP','2001291bFueCM','10iyNoCq','264331lViijE'];_0x3c95=function(){return _0x4d1ee4;};return _0x3c95();}import{CKEditorError as _0x1b9c27}from'ckeditor5/src/utils.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import type AITextAdapter from '../adapters/aitextadapter.js';
|
|
6
6
|
import type { default as AIFormView } from './form/aiformview.js';
|