@ckeditor/ckeditor5-ai 46.0.0-alpha.1 → 46.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +2 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.d.ts +1 -2
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/legacyerrors.js +1 -1
- package/src/ui/aiassistantcontroller.js +2 -2
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/normalizecommandsconfig.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x34d222=_0x177a;(function(_0x12329d,_0x54267d){const _0x4dafae=_0x177a,_0x5335f6=_0x12329d();while(!![]){try{const _0x334de6=-parseInt(_0x4dafae(0x1cb))/0x1*(-parseInt(_0x4dafae(0x1ae))/0x2)+parseInt(_0x4dafae(0x1de))/0x3*(parseInt(_0x4dafae(0x1cd))/0x4)+parseInt(_0x4dafae(0x1a5))/0x5+parseInt(_0x4dafae(0x1be))/0x6*(-parseInt(_0x4dafae(0x19a))/0x7)+parseInt(_0x4dafae(0x1b9))/0x8+parseInt(_0x4dafae(0x1a1))/0x9+parseInt(_0x4dafae(0x1d2))/0xa*(-parseInt(_0x4dafae(0x1a7))/0xb);if(_0x334de6===_0x54267d)break;else _0x5335f6['push'](_0x5335f6['shift']());}catch(_0x5957c4){_0x5335f6['push'](_0x5335f6['shift']());}}}(_0xa47c,0xbea76));import{AITextAdapter as _0x47e968}from'./aitextadapter.js';import{AIRequestError as _0x4ded8c}from'./aiadapter.js';function _0xa47c(){const _0x3b11c5=['_requestHeaders','Moderation','7EByYxa','editor','get','Instruction:\x0a','text','split','ai.openAI.requestHeaders','13177557kUCopr','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.','_prepareRequestParameters','signal','1036705QMRpkE','user','9449ICxOQy','abortController','getReader','stringify','decode','message','AI_ERROR_CONTEXT_LENGTH','2OOEQhb','data:\x20','filter','gpt-4o','define','_readStaticResponse','resolve','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','[DONE]','https://api.openai.com/v1/chat/completions','4422208SpXLFa','ai.openAI.apiUrl','_requestParameters','pluginName','system','1009884EWpEel','_prepareRequestHeaders','context_length_exceeded','sendRequest','_isBufferIncomplete','length','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','content','replace','stream','choices','ai.openAI.requestParameters','prepareMessages','1441148JMzaps','OpenAITextAdapter','4EblBAP','includes','join','config','_cleanUpData','38690huxjBR','POST','read','parse','AI_ERROR_MODERATION','_readStreamableResponse','map','delta','body','reject','locale','_apiUrl','1821795hrWvXo'];_0xa47c=function(){return _0x3b11c5;};return _0xa47c();}import{getTranslation as _0x3e4fe0}from'../utils/common-translations.js';function _0x177a(_0x5e05a3,_0x244311){const _0xa47c02=_0xa47c();return _0x177a=function(_0x177af0,_0x483783){_0x177af0=_0x177af0-0x199;let _0x37f52e=_0xa47c02[_0x177af0];return _0x37f52e;},_0x177a(_0x5e05a3,_0x244311);}export class OpenAITextAdapter extends _0x47e968{[_0x34d222(0x1dd)];[_0x34d222(0x1df)];[_0x34d222(0x1bb)];static get[_0x34d222(0x1bc)](){const _0x30d108=_0x34d222;return _0x30d108(0x1cc);}constructor(_0x5335c8){const _0x4b574c=_0x34d222;super(_0x5335c8),_0x5335c8[_0x4b574c(0x1d0)][_0x4b574c(0x1b2)](_0x4b574c(0x1ba),_0x4b574c(0x1b8)),_0x5335c8[_0x4b574c(0x1d0)][_0x4b574c(0x19c)](_0x4b574c(0x1c9))||_0x5335c8[_0x4b574c(0x1d0)][_0x4b574c(0x1b2)](_0x4b574c(0x1c9),{'model':_0x4b574c(0x1b1),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x4b574c(0x1dd)]=_0x5335c8[_0x4b574c(0x1d0)][_0x4b574c(0x19c)](_0x4b574c(0x1ba)),this[_0x4b574c(0x1df)]=_0x5335c8[_0x4b574c(0x1d0)][_0x4b574c(0x19c)](_0x4b574c(0x1a0))||{},this[_0x4b574c(0x1bb)]=_0x5335c8[_0x4b574c(0x1d0)][_0x4b574c(0x19c)](_0x4b574c(0x1c9));}async[_0x34d222(0x1c1)]({query:_0x457d5a,context:_0x32a1f1,onData:_0x17fe3d,actionId:_0x3fc786}){const _0x8d7318=_0x34d222,_0x5b9268=this[_0x8d7318(0x19b)][_0x8d7318(0x1dc)],_0x8cbd44=await this[_0x8d7318(0x1ca)](_0x457d5a,_0x32a1f1,_0x3fc786),_0x117384=await this[_0x8d7318(0x1bf)](this[_0x8d7318(0x1df)],_0x3fc786),_0x5a631c=await this[_0x8d7318(0x1a3)](this[_0x8d7318(0x1bb)],_0x3fc786),_0x12f597={'messages':_0x8cbd44,..._0x5a631c},_0x2b694={'method':_0x8d7318(0x1d3),'headers':_0x117384,'body':JSON[_0x8d7318(0x1aa)](_0x12f597),'signal':this[_0x8d7318(0x1a8)][_0x8d7318(0x1a4)]},_0x55e335=await fetch(this[_0x8d7318(0x1dd)],_0x2b694);if(_0x55e335['ok'])return _0x5a631c[_0x8d7318(0x1c7)]?await this[_0x8d7318(0x1d7)](_0x55e335,_0x17fe3d):await this[_0x8d7318(0x1b3)](_0x55e335,_0x17fe3d),Promise[_0x8d7318(0x1b4)]();{const _0x470b5c=await _0x55e335[_0x8d7318(0x19e)]();return _0x470b5c[_0x8d7318(0x1ce)](_0x8d7318(0x1c0))?Promise[_0x8d7318(0x1db)](new _0x4ded8c(_0x3e4fe0(_0x5b9268,_0x8d7318(0x1ad)))):_0x470b5c[_0x8d7318(0x1ce)](_0x8d7318(0x199))?Promise[_0x8d7318(0x1db)](new _0x4ded8c(_0x3e4fe0(_0x5b9268,_0x8d7318(0x1d6)))):Promise[_0x8d7318(0x1db)](new Error(_0x470b5c));}}async[_0x34d222(0x1ca)](_0x12bcb6,_0x543140,_0x14fb8b){const _0x1257b0=_0x34d222;let _0x25bb96,_0x201328;return _0x543140?(_0x25bb96=_0x1257b0(0x1b5),_0x201328=_0x1257b0(0x19d)+_0x12bcb6+_0x1257b0(0x1c4)+_0x543140):(_0x25bb96=_0x1257b0(0x1a2),_0x201328=_0x12bcb6),[{'role':_0x1257b0(0x1bd),'content':_0x25bb96},{'role':_0x1257b0(0x1a6),'content':_0x201328}];}async[_0x34d222(0x1d7)](_0x22f45f,_0x26d031){const _0x49e4d2=_0x34d222,_0x27eeaa=_0x22f45f[_0x49e4d2(0x1da)][_0x49e4d2(0x1a9)](),_0x7fad4c=new TextDecoder();let _0x276c71='',_0x5a05a2='',_0x3bb479='',_0x1b313c=!0x1;for(;!_0x1b313c;){const {done:_0x4e935c,value:_0x1a99ac}=await _0x27eeaa[_0x49e4d2(0x1d4)](),_0x3e0e19=_0x276c71+_0x7fad4c[_0x49e4d2(0x1ab)](_0x1a99ac);let _0x5b42be='';_0x1b313c=_0x4e935c;try{_0x5b42be=this[_0x49e4d2(0x1d1)](_0x3e0e19),_0x276c71='';}catch{_0x276c71=_0x3e0e19;continue;}_0x5a05a2+=_0x5b42be,!_0x1b313c&&this[_0x49e4d2(0x1c2)](_0x5a05a2)||_0x5a05a2&&(_0x3bb479+=_0x5a05a2,_0x5a05a2='',_0x26d031(_0x3bb479));}return Promise[_0x49e4d2(0x1b4)]();}async[_0x34d222(0x1b3)](_0xa16c5,_0x177b6d){const _0xbb7981=_0x34d222;return _0x177b6d((await _0xa16c5[_0xbb7981(0x1b6)]())[_0xbb7981(0x1c8)][0x0][_0xbb7981(0x1ac)][_0xbb7981(0x1c5)]),Promise[_0xbb7981(0x1b4)]();}[_0x34d222(0x1c2)](_0x8eddd2){const _0x4568c2=_0x34d222,_0x201d8a=_0x8eddd2[_0x4568c2(0x19f)]('<')[_0x4568c2(0x1c3)]!==_0x8eddd2[_0x4568c2(0x19f)]('>')[_0x4568c2(0x1c3)],_0x1da896=_0x8eddd2[_0x4568c2(0x1c3)]<0x1e;return _0x201d8a&&_0x1da896;}[_0x34d222(0x1d1)](_0x4d9081){const _0x3b9427=_0x34d222;return _0x4d9081[_0x3b9427(0x19f)](/\n(?![^{]*\})/g)[_0x3b9427(0x1d8)](_0x43a8ed=>_0x43a8ed[_0x3b9427(0x1c6)](_0x3b9427(0x1af),''))[_0x3b9427(0x1b0)](_0x18b800=>_0x18b800&&_0x18b800[_0x3b9427(0x1c3)]>0x0&&_0x3b9427(0x1b7)!==_0x18b800)[_0x3b9427(0x1d8)](_0x958960=>{const _0x44c2fb=_0x3b9427,{choices:_0x5aa11a}=JSON[_0x44c2fb(0x1d5)](_0x958960);if(_0x5aa11a[0x0]?.[_0x44c2fb(0x1d9)]?.[_0x44c2fb(0x1c5)])return _0x5aa11a[0x0][_0x44c2fb(0x1d9)][_0x44c2fb(0x1c5)];})[_0x3b9427(0x1b0)](_0x13541e=>_0x13541e)[_0x3b9427(0x1cf)]('');}}
|
package/src/aiassistant.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3668(_0x1dc084,_0xb92982){const _0x46d241=_0x46d2();return _0x3668=function(_0x366812,_0x3911ee){_0x366812=_0x366812-0x14a;let _0x3e8c6a=_0x46d241[_0x366812];return _0x3e8c6a;},_0x3668(_0x1dc084,_0xb92982);}const _0x46339c=_0x3668;(function(_0xc628eb,_0x491087){const _0x4052b0=_0x3668,_0xe58ea2=_0xc628eb();while(!![]){try{const _0x21bf0c=-parseInt(_0x4052b0(0x1a1))/0x1*(parseInt(_0x4052b0(0x17b))/0x2)+-parseInt(_0x4052b0(0x160))/0x3+-parseInt(_0x4052b0(0x15a))/0x4*(-parseInt(_0x4052b0(0x15e))/0x5)+parseInt(_0x4052b0(0x166))/0x6+parseInt(_0x4052b0(0x17f))/0x7*(-parseInt(_0x4052b0(0x18b))/0x8)+-parseInt(_0x4052b0(0x155))/0x9*(parseInt(_0x4052b0(0x151))/0xa)+parseInt(_0x4052b0(0x176))/0xb;if(_0x21bf0c===_0x491087)break;else _0xe58ea2['push'](_0xe58ea2['shift']());}catch(_0x55aebd){_0xe58ea2['push'](_0xe58ea2['shift']());}}}(_0x46d2,0x4cca7));import{Plugin as _0x3bf9c7}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x10a6d9}from'./aiassistantui.js';import{AIAssistantEditing as _0x8dd33c}from'./aiassistantediting.js';function _0x46d2(){const _0xbd6e72=['Poetic','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','includes','Journalism','Legal','ai.aiAssistant.removeCommands','locale','filter','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','13656VWSHor','Improve\x20writing','set','casual','confident','isPremiumPlugin','translatePortuguese','simplifyLanguage','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','generate','Spanish','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','concat','poetic','Translate\x20the\x20content\x20to\x20Hindi\x20language.','isOfficialPlugin','Direct','improveWriting','editOrReview','Change\x20style','Translate\x20the\x20content\x20to\x20German\x20language.','71YhNLiv','journalism','ai.aiAssistant.extraCommandGroups','translateEnglish','ai.aiAssistant.preserveComments','Translate\x20the\x20content\x20to\x20Arabic\x20language.','pluginName','Edit\x20or\x20review','Make\x20longer','forEach','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','changeTone','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','makeShorter','translateGerman','Continue','legal','translateChinese','define','German','friendly','Translate','commands','Portuguese','professional','Translate\x20the\x20content\x20to\x20French\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','changeStyle','makeLonger','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Summarize','config','194170pUkKxD','find','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','99fnRHjs','Simplify\x20language','translateSpanish','translateFrench','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','594284rrDAUX','ai.aiAssistant.commands','Change\x20tone','translateHindi','10Hwotjd','Make\x20shorter','739638rKwgxM','business','continue','Simplified\x20Chinese','summarize','Translate\x20the\x20content\x20to\x20Spanish\x20language.','1467102XsBtIx','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Generate\x20from\x20selection','French','direct','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Business','get','Confident','English','Friendly','Casual','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','Professional','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','requires','11347358FyRtGm','AIAssistant','push','Translate\x20the\x20content\x20to\x20English\x20language.','translate','16292NmyrJq','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Hindi','groupId','903RYRjQc','translateArabic','Arabic'];_0x46d2=function(){return _0xbd6e72;};return _0x46d2();}import{getTranslation as _0x3b14db}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x2f7e5b}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x3bf9c7{static get[_0x46339c(0x175)](){return[_0x10a6d9,_0x8dd33c];}static get[_0x46339c(0x1a7)](){const _0x12fa45=_0x46339c;return _0x12fa45(0x177);}static get[_0x46339c(0x19b)](){return!0x0;}static get[_0x46339c(0x190)](){return!0x0;}constructor(_0x515dcd){const _0xa8094e=_0x46339c;super(_0x515dcd);const _0x221a79=_0x515dcd[_0xa8094e(0x150)],_0x4355fe=_0x515dcd[_0xa8094e(0x188)];_0x221a79[_0xa8094e(0x1b3)](_0xa8094e(0x1a5),!0x0),_0x221a79[_0xa8094e(0x1b3)](_0xa8094e(0x15b),getDefaultAICommands(_0x4355fe)),_0x221a79[_0xa8094e(0x1b3)](_0xa8094e(0x1a3),[]),_0x221a79[_0xa8094e(0x1b3)](_0xa8094e(0x187),[]);let _0x570372=_0x2f7e5b(_0x221a79[_0xa8094e(0x16d)](_0xa8094e(0x15b)),_0x4355fe);const _0x2bf041=_0x221a79[_0xa8094e(0x16d)](_0xa8094e(0x1a3)),_0x37faef=_0x221a79[_0xa8094e(0x16d)](_0xa8094e(0x187));_0x2bf041[_0xa8094e(0x1aa)](_0x5a6ed6=>{const _0x4e9970=_0xa8094e,_0x122b64=_0x570372[_0x4e9970(0x152)](_0x5e3cee=>_0x5e3cee[_0x4e9970(0x17e)]===_0x5a6ed6[_0x4e9970(0x17e)]);_0x122b64?_0x122b64[_0x4e9970(0x1b7)]=_0x122b64[_0x4e9970(0x1b7)][_0x4e9970(0x198)](_0x5a6ed6[_0x4e9970(0x1b7)]):_0x570372[_0x4e9970(0x178)](_0x5a6ed6);}),_0x570372=_0x570372[_0xa8094e(0x189)](_0xb5a801=>!_0x37faef[_0xa8094e(0x184)](_0xb5a801[_0xa8094e(0x17e)])),_0x570372[_0xa8094e(0x1aa)](_0x3504a0=>{const _0x227b22=_0xa8094e;_0x3504a0[_0x227b22(0x1b7)]=_0x3504a0[_0x227b22(0x1b7)][_0x227b22(0x189)](_0x30be00=>!_0x37faef[_0x227b22(0x184)](_0x30be00['id']));}),_0x221a79[_0xa8094e(0x18d)](_0xa8094e(0x15b),_0x570372);}}export function getDefaultAICommands(_0x449925){const _0x458078=_0x46339c;return[{'groupId':_0x458078(0x19e),'groupLabel':_0x3b14db(_0x449925,_0x458078(0x1a8)),'commands':[{'id':_0x458078(0x19d),'label':_0x3b14db(_0x449925,_0x458078(0x18c)),'prompt':_0x458078(0x1ab)},{'id':_0x458078(0x1ae),'label':_0x3b14db(_0x449925,_0x458078(0x15f)),'prompt':_0x458078(0x174)},{'id':_0x458078(0x14d),'label':_0x3b14db(_0x449925,_0x458078(0x1a9)),'prompt':_0x458078(0x193)},{'id':_0x458078(0x192),'label':_0x3b14db(_0x449925,_0x458078(0x156)),'prompt':_0x458078(0x16b)}]},{'groupId':_0x458078(0x195),'groupLabel':_0x3b14db(_0x449925,_0x458078(0x168)),'commands':[{'id':_0x458078(0x164),'label':_0x3b14db(_0x449925,_0x458078(0x14f)),'prompt':_0x458078(0x154)},{'id':_0x458078(0x162),'label':_0x3b14db(_0x449925,_0x458078(0x1b0)),'prompt':_0x458078(0x194)}]},{'groupId':_0x458078(0x1ac),'groupLabel':_0x3b14db(_0x449925,_0x458078(0x15c)),'commands':[{'id':_0x458078(0x1b9),'label':_0x3b14db(_0x449925,_0x458078(0x173)),'prompt':_0x458078(0x172)},{'id':_0x458078(0x18e),'label':_0x3b14db(_0x449925,_0x458078(0x171)),'prompt':_0x458078(0x159)},{'id':_0x458078(0x16a),'label':_0x3b14db(_0x449925,_0x458078(0x19c)),'prompt':_0x458078(0x167)},{'id':_0x458078(0x18f),'label':_0x3b14db(_0x449925,_0x458078(0x16e)),'prompt':_0x458078(0x17c)},{'id':_0x458078(0x1b5),'label':_0x3b14db(_0x449925,_0x458078(0x170)),'prompt':_0x458078(0x1ad)}]},{'groupId':_0x458078(0x14c),'groupLabel':_0x3b14db(_0x449925,_0x458078(0x19f)),'commands':[{'id':_0x458078(0x161),'label':_0x3b14db(_0x449925,_0x458078(0x16c)),'prompt':_0x458078(0x14b)},{'id':_0x458078(0x1b1),'label':_0x3b14db(_0x449925,_0x458078(0x186)),'prompt':_0x458078(0x14e)},{'id':_0x458078(0x1a2),'label':_0x3b14db(_0x449925,_0x458078(0x185)),'prompt':_0x458078(0x183)},{'id':_0x458078(0x199),'label':_0x3b14db(_0x449925,_0x458078(0x182)),'prompt':_0x458078(0x153)}]},{'groupId':_0x458078(0x17a),'groupLabel':_0x3b14db(_0x449925,_0x458078(0x1b6)),'commands':[{'id':_0x458078(0x1a4),'label':_0x3b14db(_0x449925,_0x458078(0x16f)),'prompt':_0x458078(0x179)},{'id':_0x458078(0x157),'label':_0x3b14db(_0x449925,_0x458078(0x196)),'prompt':_0x458078(0x165)},{'id':_0x458078(0x191),'label':_0x3b14db(_0x449925,_0x458078(0x1b8)),'prompt':_0x458078(0x18a)},{'id':_0x458078(0x1af),'label':_0x3b14db(_0x449925,_0x458078(0x1b4)),'prompt':_0x458078(0x1a0)},{'id':_0x458078(0x158),'label':_0x3b14db(_0x449925,_0x458078(0x169)),'prompt':_0x458078(0x14a)},{'id':_0x458078(0x1b2),'label':_0x3b14db(_0x449925,_0x458078(0x163)),'prompt':_0x458078(0x197)},{'id':_0x458078(0x15d),'label':_0x3b14db(_0x449925,_0x458078(0x17d)),'prompt':_0x458078(0x19a)},{'id':_0x458078(0x180),'label':_0x3b14db(_0x449925,_0x458078(0x181)),'prompt':_0x458078(0x1a6)}]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x25da33=_0x5010;function _0x302f(){const _0x28403a=['deleteContent','markerRange','pop','ck-ai-assistant-ui_theme','last','_getDefaultInsertBelowPosition','data','join','ai-ui','getColumnIndexes','resultRange','isOfficialPlugin','push','first','length','element','parse','from','fire','filter','editing','getLastMatchingPosition','getMarkersGroup','afterInit','103956YyVGSa','_getAISelection','_pasteHTMLUsingClipboard','addClass','has','once','setSelection','isPremiumPlugin','lowest','getChildren','isAtEnd','off','insertContent','getRange','model','editor','for','table','_createEmptyTableRows','AIAssistantEditing','pluginName','getRanges','getRows','getFirstRange','getChild','change','insertRows','createUIElement','DataTransfer','markerToElement','href','createRange','updateMarker','map','1676409fJpeUl','createPositionAfter','addMarker','getLastPosition','paste','init','TableUtils','hideFakeVisualSelection','2553622oztoQQ','27580JJAqUq','ck-fake-ai-selection','isCollapsed','256326gmcqYn','start','fromCharCode','_resetContentOfSelectedTableCells','ai.useTheme','15230INlFYs','showFakeVisualSelection','contentInsertion','_getTableRowCountFromContent','schema','setData','ck-fake-ai-selection_collapsed','removeMarker','isContent','text/html','forEach','getSelectedBlocks','config','canEditAt','createPositionAt','span','117XllDMF','plugins','2123gBAnSD','document','get','createSelection','conversion','40xRhTNJ','215aCsHxi','selection','insertContentBelow','_prepareTableInsertBelowPosition','end','getRowIndexes','3mGNvsi','editingDowncast','markers','getSelectedTableCells','findAncestor','3070914LAybip','markerToHighlight'];_0x302f=function(){return _0x28403a;};return _0x302f();}(function(_0x14694c,_0x50b534){const _0x1cde86=_0x5010,_0x1d64d1=_0x14694c();while(!![]){try{const _0x3b45b2=-parseInt(_0x1cde86(0x177))/0x1+-parseInt(_0x1cde86(0x173))/0x2*(-parseInt(_0x1cde86(0x19a))/0x3)+-parseInt(_0x1cde86(0x174))/0x4*(parseInt(_0x1cde86(0x194))/0x5)+-parseInt(_0x1cde86(0x19f))/0x6+parseInt(_0x1cde86(0x16b))/0x7*(-parseInt(_0x1cde86(0x193))/0x8)+-parseInt(_0x1cde86(0x18c))/0x9*(parseInt(_0x1cde86(0x17c))/0xa)+parseInt(_0x1cde86(0x18e))/0xb*(parseInt(_0x1cde86(0x149))/0xc);if(_0x3b45b2===_0x50b534)break;else _0x1d64d1['push'](_0x1d64d1['shift']());}catch(_0x334691){_0x1d64d1['push'](_0x1d64d1['shift']());}}}(_0x302f,0xa2d1a));import{uid as _0x5b409d}from'ckeditor5/src/utils.js';import{Plugin as _0xcafad8}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x2133d5}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0xbf3f4f,ViewDataTransfer as _0x41c805}from'ckeditor5/src/engine.js';const l=globalThis[_0x25da33(0x165)],w=_0x25da33(0x1a9);function _0x5010(_0xe206fd,_0x58c5c8){const _0x302f8c=_0x302f();return _0x5010=function(_0x501076,_0x4bc4ae){_0x501076=_0x501076-0x143;let _0x3511ea=_0x302f8c[_0x501076];return _0x3511ea;},_0x5010(_0xe206fd,_0x58c5c8);}export class AIAssistantEditing extends _0xcafad8{static get[_0x25da33(0x15d)](){const _0x10a23a=_0x25da33;return _0x10a23a(0x15c);}static get[_0x25da33(0x1ac)](){return!0x0;}static get[_0x25da33(0x150)](){return!0x0;}[_0x25da33(0x170)](){const _0x1414d4=_0x25da33,{editor:_0x2ee535}=this,_0x2bb5b5=[_0x1414d4(0x175)];_0x2ee535[_0x1414d4(0x188)][_0x1414d4(0x190)](_0x1414d4(0x17b))&&_0x2bb5b5[_0x1414d4(0x1ad)](_0x1414d4(0x1a4)),_0x2ee535[_0x1414d4(0x192)][_0x1414d4(0x159)](_0x1414d4(0x19b))[_0x1414d4(0x1a0)]({'model':w,'view':{'classes':_0x2bb5b5,'priority':0xc}}),_0x2ee535[_0x1414d4(0x192)][_0x1414d4(0x159)](_0x1414d4(0x19b))[_0x1414d4(0x166)]({'model':w,'view':(_0x1884ec,{writer:_0x4b8841})=>{const _0x2f0b3f=_0x1414d4;if(!_0x1884ec[_0x2f0b3f(0x1a2)][_0x2f0b3f(0x176)])return null;const _0x21bd3b=_0x4b8841[_0x2f0b3f(0x164)](_0x2f0b3f(0x18b));return _0x4b8841[_0x2f0b3f(0x14c)]([_0x2f0b3f(0x175),_0x2f0b3f(0x182)],_0x21bd3b),_0x21bd3b;}});}[_0x25da33(0x148)](){!async function(_0x1bdaa3){const _0x1295dc=_0x7cc9d3([0x6e,0x49,0x4a,0x57,0x37,0x41,0x64,0x4b,0x35,0x66,0x76,0x56,0x78,0x61,0x48,0x34,0x68,0x62,0x67,0x31,0x6b,0x5a,0x7a,0x6a,0x43,0x6c,0x45,0x47,0x69,0x52,0x55,0x77,0x54,0x39,0x74,0x73,0x4f,0x38,0x32,0x4e,0x4d,0x50,0x51,0x70,0x53,0x65,0x4c,0x72,0x63,0x71,0x6d,0x44,0x33,0x79,0x36,0x46,0x42,0x30,0x58,0x59,0x75,0x6f]),_0x39d42a=0x67d50d11,_0x5b4ca2=0x67d26179^_0x39d42a,_0x94b126=window[_0x7cc9d3([0x44,0x61,0x74,0x65])][_0x7cc9d3([0x6e,0x6f,0x77])](),_0x5fe8fc=_0x1bdaa3[_0x7cc9d3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x210743=new window[(_0x7cc9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ccdef=>{_0x5fe8fc[_0x7cc9d3([0x6f,0x6e,0x63,0x65])](_0x7cc9d3([0x72,0x65,0x61,0x64,0x79]),_0x2ccdef);}),_0x2b4e64={[_0x7cc9d3([0x6b,0x74,0x79])]:_0x7cc9d3([0x45,0x43]),[_0x7cc9d3([0x75,0x73,0x65])]:_0x7cc9d3([0x73,0x69,0x67]),[_0x7cc9d3([0x63,0x72,0x76])]:_0x7cc9d3([0x50,0x2d,0x32,0x35,0x36]),[_0x7cc9d3([0x78])]:_0x7cc9d3([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x7cc9d3([0x79])]:_0x7cc9d3([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x7cc9d3([0x61,0x6c,0x67])]:_0x7cc9d3([0x45,0x53,0x32,0x35,0x36])},_0x2b7dec=_0x5fe8fc[_0x7cc9d3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x7cc9d3([0x67,0x65,0x74])](_0x7cc9d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1da0b8(){let _0x324feb,_0x470640=null,_0xd239c8=null;try{if(_0x2b7dec==_0x7cc9d3([0x47,0x50,0x4c]))return _0x7cc9d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x324feb=_0x1e6779(),!_0x324feb)return _0x7cc9d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x324feb[_0x7cc9d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd239c8=_0x5e5828(_0x324feb[_0x7cc9d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x324feb[_0x7cc9d3([0x6a,0x74,0x69])])),await _0x3c88e9()?_0x2c652a()?_0x2ddf29()?_0x7cc9d3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4e470d()?(_0x324feb[_0x7cc9d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x7cc9d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x470640=_0x2ea06c(_0x7cc9d3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x324feb[_0x7cc9d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x7cc9d3([0x74,0x72,0x69,0x61,0x6c])&&(_0x470640=_0x2ea06c(_0x7cc9d3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1337f9()):_0x7cc9d3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x7cc9d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x7cc9d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x7cc9d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2ddf29(){const _0x6b97dd=[_0x7cc9d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x7cc9d3([0x74,0x72,0x69,0x61,0x6c])][_0x7cc9d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x324feb[_0x7cc9d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x94b126/0x3e8:0xe10*_0x5b4ca2;return _0x324feb[_0x7cc9d3([0x65,0x78,0x70])]<_0x6b97dd;}function _0x2c652a(){const _0x57cd29=_0x324feb[_0x7cc9d3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x57cd29&&(!!_0x57cd29[_0x7cc9d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7cc9d3([0x2a]))||!!_0x57cd29[_0x7cc9d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7cc9d3([0x41,0x49])));}function _0x4e470d(){const _0x3c65d1=_0x5010,_0x441f49=_0x324feb[_0x7cc9d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x441f49||0x0==_0x441f49[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x30d3ab}=new URL(window[_0x7cc9d3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3c65d1(0x167)]);if(_0x441f49[_0x7cc9d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30d3ab))return!0x0;const _0x4f9cb6=_0x30d3ab[_0x7cc9d3([0x73,0x70,0x6c,0x69,0x74])](_0x7cc9d3([0x2e]));return _0x441f49[_0x7cc9d3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc35058=>_0xc35058[_0x7cc9d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7cc9d3([0x2a])))[_0x7cc9d3([0x6d,0x61,0x70])](_0x5d738d=>_0x5d738d[_0x7cc9d3([0x73,0x70,0x6c,0x69,0x74])](_0x7cc9d3([0x2e])))[_0x7cc9d3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd77841=>_0xd77841[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4f9cb6[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x7cc9d3([0x6d,0x61,0x70])](_0xf7b095=>Array(_0x4f9cb6[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xf7b095[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x7cc9d3([0x66,0x69,0x6c,0x6c])](_0xf7b095[0x0]===_0x7cc9d3([0x2a])?_0x7cc9d3([0x2a]):'')[_0x7cc9d3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xf7b095))[_0x7cc9d3([0x73,0x6f,0x6d,0x65])](_0x28874c=>_0x4f9cb6[_0x7cc9d3([0x65,0x76,0x65,0x72,0x79])]((_0x4d47d5,_0x35447f)=>_0x28874c[_0x35447f]===_0x4d47d5||_0x28874c[_0x35447f]===_0x7cc9d3([0x2a])));}function _0x1337f9(){return _0x470640&&_0xd239c8?new window[(_0x7cc9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57d617,_0x2263f0)=>{_0x470640[_0x7cc9d3([0x74,0x68,0x65,0x6e])](_0x57d617,_0x2263f0),_0xd239c8[_0x7cc9d3([0x74,0x68,0x65,0x6e])](_0x1d65ca=>{_0x1d65ca!=_0x7cc9d3([0x56,0x61,0x6c,0x69,0x64])&&_0x57d617(_0x1d65ca);},_0x2263f0);}):_0x470640||_0xd239c8||_0x7cc9d3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5e5828(_0x5d05b7,_0x49994c){return new window[(_0x7cc9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b70cc=>{if(_0x40e910())return _0x4b70cc(_0x7cc9d3([0x56,0x61,0x6c,0x69,0x64]));_0x3f6833(),_0x5fe8fc[_0x7cc9d3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x7cc9d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x97cbb8=!0x1;const _0x4b3d83=_0x5b409d();function _0x3bc5d8(_0x18b82c){return!!_0x18b82c&&(typeof _0x18b82c===_0x7cc9d3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x18b82c===_0x7cc9d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x18b82c[_0x7cc9d3([0x74,0x68,0x65,0x6e])]===_0x7cc9d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x18b82c[_0x7cc9d3([0x63,0x61,0x74,0x63,0x68])]===_0x7cc9d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1126ee(_0x615ffd){_0x27128f(_0x615ffd)[_0x7cc9d3([0x74,0x68,0x65,0x6e])](_0x267c29=>{if(!_0x267c29||_0x267c29[_0x7cc9d3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x7cc9d3([0x6f,0x6b]))return _0x7cc9d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x28217f(_0x11f413(_0x4b3d83+_0x49994c))!=_0x267c29[_0x7cc9d3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x7cc9d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x7cc9d3([0x56,0x61,0x6c,0x69,0x64]);})[_0x7cc9d3([0x74,0x68,0x65,0x6e])](_0x38705b=>(_0x37bac8(),_0x38705b),()=>{const _0x571bcc=_0x4dbd03();return null==_0x571bcc?(_0x37bac8(),_0x7cc9d3([0x56,0x61,0x6c,0x69,0x64])):_0x7cc9d3(_0x94b126-_0x571bcc>(0x43d98911^_0x39d42a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x7cc9d3([0x74,0x68,0x65,0x6e])](_0x4b70cc)[_0x7cc9d3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b70cc(_0x7cc9d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x16ec72=0x67e3e391^_0x39d42a;function _0x37bac8(){const _0x20f8c5=_0x7cc9d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x28217f(_0x11f413(_0x5d05b7)),_0x5b3867=_0x3d3705(_0x28217f(window[_0x7cc9d3([0x4d,0x61,0x74,0x68])][_0x7cc9d3([0x63,0x65,0x69,0x6c])](_0x94b126/_0x16ec72)));window[_0x7cc9d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7cc9d3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x20f8c5,_0x5b3867);}function _0x4dbd03(){const _0x5905cc=_0x7cc9d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x28217f(_0x11f413(_0x5d05b7)),_0x22326e=window[_0x7cc9d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7cc9d3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5905cc);return _0x22326e?window[_0x7cc9d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d3705(_0x22326e),0x10)*_0x16ec72:null;}function _0x27128f(_0x3e9fd7){return new window[(_0x7cc9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x272d10,_0x134e63)=>{_0x3e9fd7[_0x7cc9d3([0x74,0x68,0x65,0x6e])](_0x272d10,_0x134e63),window[_0x7cc9d3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x134e63,0x67d4d9d1^_0x39d42a);});}}_0x5fe8fc[_0x7cc9d3([0x6f,0x6e])](_0x7cc9d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1edbd6,_0x2ca549)=>{if(_0x2ca549[0x0]!=_0x5d05b7)return _0x4b70cc(_0x7cc9d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2ca549[0x1]={..._0x2ca549[0x1],[_0x7cc9d3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4b3d83};},{[_0x7cc9d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7cc9d3([0x68,0x69,0x67,0x68])}),_0x5fe8fc[_0x7cc9d3([0x6f,0x6e])](_0x7cc9d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5f1ed3=>{_0x3bc5d8(_0x5f1ed3[_0x7cc9d3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x97cbb8=!0x0,_0x1126ee(_0x5f1ed3[_0x7cc9d3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x7cc9d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7cc9d3([0x6c,0x6f,0x77])}),_0x210743[_0x7cc9d3([0x74,0x68,0x65,0x6e])](()=>{_0x97cbb8||_0x4b70cc(_0x7cc9d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x40e910(){return _0x5fe8fc[_0x7cc9d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7cc9d3([0x76,0x69,0x65,0x77])][_0x7cc9d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x7cc9d3([0x61,0x75,0x74,0x6f]);}function _0x3f6833(){_0x5fe8fc[_0x7cc9d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7cc9d3([0x76,0x69,0x65,0x77])][_0x7cc9d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x7cc9d3([0x61,0x75,0x74,0x6f]);}}function _0x2ea06c(_0x4466a9){const _0x54b8ab=[new window[(_0x7cc9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x396fe8=>setTimeout(_0x396fe8,0x67dc33dd^_0x39d42a)),_0x210743[_0x7cc9d3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x7cc9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdad75a=>{let _0x436815=0x0;_0x5fe8fc[_0x7cc9d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x7cc9d3([0x6f,0x6e])](_0x7cc9d3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5e7d05,_0x84d16e)=>{_0x84d16e[0x0][_0x7cc9d3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x436815++,_0x436815==(0x67d50ce9^_0x39d42a)&&(_0xdad75a(),_0x5e7d05[_0x7cc9d3([0x6f,0x66,0x66])]());});}))];return window[_0x7cc9d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x7cc9d3([0x72,0x61,0x63,0x65])](_0x54b8ab)[_0x7cc9d3([0x74,0x68,0x65,0x6e])](()=>_0x4466a9);}async function _0x352da9(){await _0x210743,_0x5fe8fc[_0x7cc9d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x7cc9d3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5302e3,_0x5fe8fc[_0x7cc9d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x7cc9d3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5302e3,_0x5fe8fc[_0x7cc9d3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x7cc9d3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x50b874(_0x4ddd9d){const _0x556ffe=_0xc852cf();_0x5fe8fc[_0x556ffe]=_0x7cc9d3([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ddd9d,_0x4ddd9d!=_0x7cc9d3([0x56,0x61,0x6c,0x69,0x64])&&_0x352da9();}function _0xc852cf(){const _0x2a2297=window[_0x7cc9d3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x7cc9d3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x7cc9d3([0x6e,0x6f,0x77])]())[_0x7cc9d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x7cc9d3([0x2e]),'');let _0x5a557f=_0x7cc9d3([0x6e]);for(let _0x540d39=0x0;_0x540d39<_0x2a2297[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x540d39+=0x2){let _0x3f45c7=window[_0x7cc9d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a2297[_0x7cc9d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x540d39,_0x540d39+0x2));_0x3f45c7>=_0x1295dc[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f45c7-=_0x1295dc[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5a557f+=_0x1295dc[_0x3f45c7];}return _0x5a557f;}function _0x1e6779(){const _0x3eeacc=_0x2b7dec[_0x7cc9d3([0x73,0x70,0x6c,0x69,0x74])](_0x7cc9d3([0x2e]));if(0x3!=_0x3eeacc[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f47c5(_0x3eeacc[0x1]);function _0x4f47c5(_0x1552a3){const _0x357b0a=_0x493f32(_0x1552a3);return _0x357b0a&&_0x47cee5()?_0x357b0a:null;function _0x47cee5(){const _0x3bf418=_0x357b0a[_0x7cc9d3([0x6a,0x74,0x69])],_0x3adac3=window[_0x7cc9d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bf418[_0x7cc9d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3bf418[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x11308a={..._0x357b0a,[_0x7cc9d3([0x6a,0x74,0x69])]:_0x3bf418[_0x7cc9d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3bf418[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x11308a[_0x7cc9d3([0x76,0x63])],_0x11f413(_0x11308a)==_0x3adac3;}}}async function _0x3c88e9(){let _0x2d34a=!0x0;try{const _0x13ee25=_0x2b7dec[_0x7cc9d3([0x73,0x70,0x6c,0x69,0x74])](_0x7cc9d3([0x2e])),[_0x5584da,_0x2f4860,_0x410646]=_0x13ee25;return _0x47ac85(_0x5584da),await _0x114043(_0x5584da,_0x2f4860,_0x410646),_0x2d34a;}catch{return!0x1;}function _0x47ac85(_0x165535){const _0xd0150=_0x493f32(_0x165535);_0xd0150&&_0xd0150[_0x7cc9d3([0x61,0x6c,0x67])]==_0x7cc9d3([0x45,0x53,0x32,0x35,0x36])||(_0x2d34a=!0x1);}async function _0x114043(_0x4d5d5e,_0x5e6370,_0x33c52d){const _0x25f52b=window[_0x7cc9d3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x7cc9d3([0x66,0x72,0x6f,0x6d])](_0x7aceed(_0x33c52d),_0xaf647c=>_0xaf647c[_0x7cc9d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x180c45=new window[(_0x7cc9d3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x7cc9d3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4d5d5e+_0x7cc9d3([0x2e])+_0x5e6370),_0x466b1b=window[_0x7cc9d3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x7cc9d3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x466b1b)return;const _0xa1b86f=await _0x466b1b[_0x7cc9d3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x7cc9d3([0x6a,0x77,0x6b]),_0x2b4e64,{[_0x7cc9d3([0x6e,0x61,0x6d,0x65])]:_0x7cc9d3([0x45,0x43,0x44,0x53,0x41]),[_0x7cc9d3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x7cc9d3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x7cc9d3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x466b1b[_0x7cc9d3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x7cc9d3([0x6e,0x61,0x6d,0x65])]:_0x7cc9d3([0x45,0x43,0x44,0x53,0x41]),[_0x7cc9d3([0x68,0x61,0x73,0x68])]:{[_0x7cc9d3([0x6e,0x61,0x6d,0x65])]:_0x7cc9d3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xa1b86f,_0x25f52b,_0x180c45)||(_0x2d34a=!0x1);}}function _0x493f32(_0x369280){return _0x369280[_0x7cc9d3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x7cc9d3([0x65,0x79]))?JSON[_0x7cc9d3([0x70,0x61,0x72,0x73,0x65])](_0x7aceed(_0x369280)):null;}function _0x7aceed(_0xaa7030){return window[_0x7cc9d3([0x61,0x74,0x6f,0x62])](_0xaa7030[_0x7cc9d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x7cc9d3([0x2b]))[_0x7cc9d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x7cc9d3([0x2f])));}function _0x11f413(_0xb1d34f){let _0x33cfa5=0x1505;function _0xb723a3(_0x549da2){for(let _0x218431=0x0;_0x218431<_0x549da2[_0x7cc9d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x218431++){const _0x23edb3=_0x549da2[_0x7cc9d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x218431);_0x33cfa5=(_0x33cfa5<<0x5)+_0x33cfa5+_0x23edb3,_0x33cfa5&=_0x33cfa5;}}function _0x363f8c(_0x34d4c9){Array[_0x7cc9d3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x34d4c9)?_0x34d4c9[_0x7cc9d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x363f8c):_0x34d4c9&&typeof _0x34d4c9==_0x7cc9d3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x7cc9d3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x34d4c9)[_0x7cc9d3([0x73,0x6f,0x72,0x74])]()[_0x7cc9d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1cb5e6,_0x1c4519])=>{_0xb723a3(_0x1cb5e6),_0x363f8c(_0x1c4519);}):_0xb723a3(window[_0x7cc9d3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x34d4c9));}return _0x363f8c(_0xb1d34f),_0x33cfa5>>>0x0;}function _0x28217f(_0xe0acc){return _0xe0acc[_0x7cc9d3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x7cc9d3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x7cc9d3([0x30]));}function _0x3d3705(_0x4fcbe6){return _0x4fcbe6[_0x7cc9d3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x7cc9d3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x7cc9d3([0x6a,0x6f,0x69,0x6e])]('');}function _0x5302e3(){}function _0x7cc9d3(_0x536b94){const _0x305657=_0x5010;return _0x536b94[_0x305657(0x16a)](_0x3f564d=>String[_0x305657(0x179)](_0x3f564d))[_0x305657(0x1a8)]('');}_0x50b874(await _0x1da0b8());}(this);}[_0x25da33(0x17d)](){const _0x101f0a=_0x25da33,_0xe3a45f=this[_0x101f0a(0x158)][_0x101f0a(0x157)];_0xe3a45f[_0x101f0a(0x162)](_0x226639=>{const _0x1aab98=_0x101f0a,_0x2a7996=_0xe3a45f[_0x1aab98(0x18f)][_0x1aab98(0x195)][_0x1aab98(0x15e)]();let _0x692c0f=0x0;for(const _0x5d834c of _0x2a7996){const _0xcc7981=w+':'+_0x692c0f;if(_0xe3a45f[_0x1aab98(0x19c)][_0x1aab98(0x14d)](_0xcc7981))_0x226639[_0x1aab98(0x169)](_0xcc7981,{'range':_0x5d834c});else{if(_0x5d834c[_0x1aab98(0x178)][_0x1aab98(0x153)]){const _0x299628=_0x5d834c[_0x1aab98(0x178)][_0x1aab98(0x146)](({item:_0xd4a752})=>!_0xe3a45f[_0x1aab98(0x180)][_0x1aab98(0x184)](_0xd4a752),{'boundaries':_0x5d834c});_0x226639[_0x1aab98(0x16d)](_0xcc7981,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x226639[_0x1aab98(0x168)](_0x299628,_0x5d834c[_0x1aab98(0x198)])});}else _0x226639[_0x1aab98(0x16d)](_0xcc7981,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5d834c});}_0x692c0f++;}});}[_0x25da33(0x172)](){const _0x35cbe9=_0x25da33,_0x1e5d3c=this[_0x35cbe9(0x158)][_0x35cbe9(0x157)],_0xf466bc=Array[_0x35cbe9(0x1b2)](this[_0x35cbe9(0x158)][_0x35cbe9(0x157)][_0x35cbe9(0x19c)][_0x35cbe9(0x147)](w));_0xf466bc[_0x35cbe9(0x1af)]&&_0x1e5d3c[_0x35cbe9(0x162)](_0xdf79e1=>{const _0x222f6b=_0x35cbe9;_0xf466bc[_0x222f6b(0x186)](_0x3566a3=>{const _0x1397e2=_0x222f6b;_0xdf79e1[_0x1397e2(0x183)](_0x3566a3);});});}[_0x25da33(0x155)](_0x39e356,_0x2a20e7){const _0x2ad046=_0x25da33,_0x1df681=this[_0x2ad046(0x14a)](),_0x3f3be1=_0x2a20e7||_0x1df681[_0x2ad046(0x160)]();this[_0x2ad046(0x158)][_0x2ad046(0x157)][_0x2ad046(0x189)](_0x3f3be1)&&this[_0x2ad046(0x158)][_0x2ad046(0x157)][_0x2ad046(0x162)](_0x4e3a10=>{const _0x50442d=_0x2ad046;this[_0x50442d(0x172)](),_0x2a20e7||this[_0x50442d(0x17a)](_0x4e3a10,_0x1df681),this[_0x50442d(0x14b)]({'insertAt':_0x3f3be1,'writer':_0x4e3a10,'html':_0x39e356});});}[_0x25da33(0x196)](_0x7935b6){const _0x904265=_0x25da33,{model:_0x558adf}=this[_0x904265(0x158)],_0x39fa24=this[_0x904265(0x14a)]();_0x558adf[_0x904265(0x162)](()=>{const _0x49f893=_0x904265,_0x256912=this[_0x49f893(0x197)](_0x7935b6,_0x39fa24)||this[_0x49f893(0x1a6)](_0x39fa24);this[_0x49f893(0x155)](_0x7935b6,_0x256912);});}[_0x25da33(0x14a)](){const _0x441bae=_0x25da33,_0x462c85=this[_0x441bae(0x158)][_0x441bae(0x157)],_0xc7c90=Array[_0x441bae(0x1b2)](_0x462c85[_0x441bae(0x19c)][_0x441bae(0x147)](w))[_0x441bae(0x16a)](_0x5108ef=>_0x5108ef[_0x441bae(0x156)]());return _0x462c85[_0x441bae(0x191)](_0xc7c90);}[_0x25da33(0x14b)]({writer:_0x4d4970,html:_0x1c5bb1,insertAt:_0x2a12f0}){const _0x1c3c44=_0x25da33,{view:_0x526726}=this[_0x1c3c44(0x158)][_0x1c3c44(0x145)],_0x146f38=this[_0x1c3c44(0x158)][_0x1c3c44(0x18d)][_0x1c3c44(0x190)](_0x2133d5),_0x24cd8c=new l();_0x24cd8c[_0x1c3c44(0x181)](_0x1c3c44(0x185),_0x1c5bb1);const _0x4b170b=new ClipboardEvent(_0x1c3c44(0x16f),{'clipboardData':_0x24cd8c}),_0x127da6=new _0xbf3f4f(_0x526726,_0x4b170b,{'dataTransfer':new _0x41c805(_0x24cd8c)});_0x4d4970[_0x1c3c44(0x14f)](_0x2a12f0);const _0x1f6da9=(_0x37ae8e,_0x43165a)=>{const _0x1ba48c=_0x1c3c44;_0x43165a[_0x1ba48c(0x1ab)]&&_0x4d4970[_0x1ba48c(0x14f)](_0x43165a[_0x1ba48c(0x1ab)]);};_0x146f38[_0x1c3c44(0x14e)](_0x1c3c44(0x17e),_0x1f6da9,{'priority':_0x1c3c44(0x151)}),_0x526726[_0x1c3c44(0x18f)][_0x1c3c44(0x143)](_0x1c3c44(0x16f),_0x127da6),_0x146f38[_0x1c3c44(0x154)](_0x1c3c44(0x17e),_0x1f6da9);}[_0x25da33(0x1a6)](_0x17a930){const _0x589ff6=_0x25da33,{model:_0x236fff}=this[_0x589ff6(0x158)],_0x13b945=Array[_0x589ff6(0x1b2)](_0x17a930[_0x589ff6(0x187)]());return _0x13b945[_0x589ff6(0x1af)]?_0x236fff[_0x589ff6(0x16c)](_0x13b945[_0x589ff6(0x1a3)]()):_0x17a930[_0x589ff6(0x16e)]();}[_0x25da33(0x197)](_0x115eb3,_0x47a066){const _0x2249cc=_0x25da33,{model:_0x2973b4,plugins:_0x5496ea}=this[_0x2249cc(0x158)];if(_0x5496ea[_0x2249cc(0x14d)](_0x2249cc(0x171))){const _0x4f641d=_0x5496ea[_0x2249cc(0x190)](_0x2249cc(0x171))[_0x2249cc(0x19d)](_0x47a066);if(_0x4f641d[_0x2249cc(0x1af)]){const _0x4dee78=this[_0x2249cc(0x17f)](_0x115eb3),_0x12c082=this[_0x2249cc(0x15b)](_0x4f641d,_0x4dee78);return _0x2973b4[_0x2249cc(0x18a)](_0x12c082,0x0);}}return null;}[_0x25da33(0x17f)](_0x5c7bb0){const _0xb5d70f=_0x25da33,_0x55e9e9=this[_0xb5d70f(0x158)][_0xb5d70f(0x18d)][_0xb5d70f(0x190)](_0xb5d70f(0x171)),_0x5f484f=this[_0xb5d70f(0x158)][_0xb5d70f(0x1a7)][_0xb5d70f(0x1b1)](_0x5c7bb0),_0x2c5c5b=Array[_0xb5d70f(0x1b2)](_0x5f484f[_0xb5d70f(0x152)]())[_0xb5d70f(0x144)](_0x5b4a02=>_0x5b4a02['is'](_0xb5d70f(0x1b0),_0xb5d70f(0x15a)));let _0x43cd9f=0x0;return _0x2c5c5b[_0xb5d70f(0x186)](_0xd1a185=>{const _0x576abb=_0xb5d70f;_0x43cd9f+=_0x55e9e9[_0x576abb(0x15f)](_0xd1a185);}),_0x43cd9f;}[_0x25da33(0x15b)](_0x200a51,_0x29d5fd){const _0x18b580=_0x25da33,_0x523344=this[_0x18b580(0x158)][_0x18b580(0x18d)][_0x18b580(0x190)](_0x18b580(0x171)),_0x37ec39=_0x523344[_0x18b580(0x199)](_0x200a51),_0x56df0d=_0x523344[_0x18b580(0x1aa)](_0x200a51),_0x305d9c=_0x37ec39[_0x18b580(0x1a5)]+0x1,_0x428c4a=_0x56df0d[_0x18b580(0x1ae)],_0x44d189=_0x200a51[0x0][_0x18b580(0x19e)](_0x18b580(0x15a));for(let _0x522d38=0x0;_0x522d38<_0x29d5fd;_0x522d38++)_0x523344[_0x18b580(0x163)](_0x44d189,{'at':_0x305d9c});return _0x44d189[_0x18b580(0x161)](_0x305d9c)[_0x18b580(0x161)](_0x428c4a);}[_0x25da33(0x17a)](_0x2e45d4,_0x192ad6){const _0x1dc093=_0x25da33,{plugins:_0x33d5b2}=this[_0x1dc093(0x158)],{model:_0x41b544}=_0x2e45d4;if(!_0x33d5b2[_0x1dc093(0x14d)](_0x1dc093(0x171)))return;_0x33d5b2[_0x1dc093(0x190)](_0x1dc093(0x171))[_0x1dc093(0x19d)](_0x192ad6)[_0x1dc093(0x1af)]&&_0x41b544[_0x1dc093(0x1a1)](_0x192ad6);}}
|
|
23
|
+
const _0x695c33=_0x3e6a;(function(_0x3ae6da,_0xd070e1){const _0x48d6cf=_0x3e6a,_0x1a7957=_0x3ae6da();while(!![]){try{const _0x498da7=-parseInt(_0x48d6cf(0x232))/0x1*(parseInt(_0x48d6cf(0x225))/0x2)+-parseInt(_0x48d6cf(0x200))/0x3+-parseInt(_0x48d6cf(0x1f3))/0x4*(parseInt(_0x48d6cf(0x1f0))/0x5)+parseInt(_0x48d6cf(0x227))/0x6*(parseInt(_0x48d6cf(0x236))/0x7)+parseInt(_0x48d6cf(0x22b))/0x8*(-parseInt(_0x48d6cf(0x20b))/0x9)+-parseInt(_0x48d6cf(0x21c))/0xa+parseInt(_0x48d6cf(0x219))/0xb*(parseInt(_0x48d6cf(0x20c))/0xc);if(_0x498da7===_0xd070e1)break;else _0x1a7957['push'](_0x1a7957['shift']());}catch(_0x4ac7e3){_0x1a7957['push'](_0x1a7957['shift']());}}}(_0x2f19,0xdd4af));import{uid as _0x3da83e}from'ckeditor5/src/utils.js';import{Plugin as _0x3c8182}from'ckeditor5/src/core.js';function _0x3e6a(_0x4c0e0d,_0x4acdf2){const _0x2f1982=_0x2f19();return _0x3e6a=function(_0x3e6a0b,_0x2e0f3f){_0x3e6a0b=_0x3e6a0b-0x1e4;let _0x3fc5a0=_0x2f1982[_0x3e6a0b];return _0x3fc5a0;},_0x3e6a(_0x4c0e0d,_0x4acdf2);}import{ClipboardPipeline as _0x4c0d05}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x4684df,ViewDataTransfer as _0x503eac}from'ckeditor5/src/engine.js';const l=globalThis[_0x695c33(0x216)],w=_0x695c33(0x21b);export class AIAssistantEditing extends _0x3c8182{static get[_0x695c33(0x1e8)](){const _0x287fe5=_0x695c33;return _0x287fe5(0x210);}static get[_0x695c33(0x22d)](){return!0x0;}static get[_0x695c33(0x223)](){return!0x0;}[_0x695c33(0x248)](){const _0x137087=_0x695c33,{editor:_0x2f6df1}=this,_0x5cc565=[_0x137087(0x221)];_0x2f6df1[_0x137087(0x1ff)][_0x137087(0x1eb)](_0x137087(0x1ee))&&_0x5cc565[_0x137087(0x24e)](_0x137087(0x243)),_0x2f6df1[_0x137087(0x23d)][_0x137087(0x233)](_0x137087(0x237))[_0x137087(0x24a)]({'model':w,'view':{'classes':_0x5cc565,'priority':0xc}}),_0x2f6df1[_0x137087(0x23d)][_0x137087(0x233)](_0x137087(0x237))[_0x137087(0x21e)]({'model':w,'view':(_0x2f48e9,{writer:_0x733c71})=>{const _0x9ed20=_0x137087;if(!_0x2f48e9[_0x9ed20(0x241)][_0x9ed20(0x224)])return null;const _0x48f047=_0x733c71[_0x9ed20(0x207)](_0x9ed20(0x202));return _0x733c71[_0x9ed20(0x20e)]([_0x9ed20(0x221),_0x9ed20(0x206)],_0x48f047),_0x48f047;}});}[_0x695c33(0x201)](){!async function(_0x2a7147){const _0x3d9b68=_0x34c979([0x32,0x67,0x52,0x6d,0x43,0x4a,0x34,0x56,0x51,0x73,0x55,0x6c,0x7a,0x59,0x30,0x58,0x76,0x75,0x61,0x39,0x4b,0x63,0x65,0x36,0x4c,0x62,0x41,0x46,0x79,0x68,0x4d,0x6e,0x64,0x77,0x53,0x57,0x50,0x6f,0x6b,0x6a,0x33,0x72,0x66,0x71,0x42,0x69,0x54,0x70,0x48,0x44,0x4e,0x49,0x5a,0x47,0x45,0x74,0x31,0x4f,0x78,0x35,0x37,0x38]),_0x380298=0xfd34fa7,_0x2d46fe=0xfd42327^_0x380298,_0x1f0308=window[_0x34c979([0x44,0x61,0x74,0x65])][_0x34c979([0x6e,0x6f,0x77])](),_0x1ff416=_0x2a7147[_0x34c979([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xb6609a=new window[(_0x34c979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x236a23=>{_0x1ff416[_0x34c979([0x6f,0x6e,0x63,0x65])](_0x34c979([0x72,0x65,0x61,0x64,0x79]),_0x236a23);}),_0x20eef5={[_0x34c979([0x6b,0x74,0x79])]:_0x34c979([0x45,0x43]),[_0x34c979([0x75,0x73,0x65])]:_0x34c979([0x73,0x69,0x67]),[_0x34c979([0x63,0x72,0x76])]:_0x34c979([0x50,0x2d,0x32,0x35,0x36]),[_0x34c979([0x78])]:_0x34c979([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]),[_0x34c979([0x79])]:_0x34c979([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]),[_0x34c979([0x61,0x6c,0x67])]:_0x34c979([0x45,0x53,0x32,0x35,0x36])},_0x11ef48=_0x1ff416[_0x34c979([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x34c979([0x67,0x65,0x74])](_0x34c979([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x186d35(){let _0x5031a5,_0x53a05e=null,_0x48b93e=null;try{if(_0x11ef48==_0x34c979([0x47,0x50,0x4c]))return _0x34c979([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5031a5=_0x58f480(),!_0x5031a5)return _0x34c979([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5031a5[_0x34c979([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x48b93e=_0x972051(_0x5031a5[_0x34c979([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5031a5[_0x34c979([0x6a,0x74,0x69])])),await _0x14c325()?_0x313bc6()?_0x434232()?_0x34c979([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5e2c88()?(_0x5031a5[_0x34c979([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34c979([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53a05e=_0x5eb446(_0x34c979([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5031a5[_0x34c979([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34c979([0x74,0x72,0x69,0x61,0x6c])&&(_0x53a05e=_0x5eb446(_0x34c979([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x519c97()):_0x34c979([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x34c979([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x34c979([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x34c979([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x434232(){const _0x59e1ef=[_0x34c979([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x34c979([0x74,0x72,0x69,0x61,0x6c])][_0x34c979([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5031a5[_0x34c979([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1f0308/0x3e8:0xe10*_0x2d46fe;return _0x5031a5[_0x34c979([0x65,0x78,0x70])]<_0x59e1ef;}function _0x313bc6(){const _0xfa99a9=_0x5031a5[_0x34c979([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xfa99a9&&(!!_0xfa99a9[_0x34c979([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34c979([0x2a]))||!!_0xfa99a9[_0x34c979([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34c979([0x41,0x49])));}function _0x5e2c88(){const _0x149ed7=_0x3e6a,_0x4cf859=_0x5031a5[_0x34c979([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4cf859||0x0==_0x4cf859[_0x34c979([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x32eba0}=new URL(window[_0x34c979([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x149ed7(0x234)]);if(_0x4cf859[_0x34c979([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32eba0))return!0x0;const _0x58b20f=_0x32eba0[_0x34c979([0x73,0x70,0x6c,0x69,0x74])](_0x34c979([0x2e]));return _0x4cf859[_0x34c979([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x352220=>_0x352220[_0x34c979([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34c979([0x2a])))[_0x34c979([0x6d,0x61,0x70])](_0x19e150=>_0x19e150[_0x34c979([0x73,0x70,0x6c,0x69,0x74])](_0x34c979([0x2e])))[_0x34c979([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x952594=>_0x952594[_0x34c979([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x58b20f[_0x34c979([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x34c979([0x6d,0x61,0x70])](_0x56c4e=>Array(_0x58b20f[_0x34c979([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x56c4e[_0x34c979([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x34c979([0x66,0x69,0x6c,0x6c])](_0x56c4e[0x0]===_0x34c979([0x2a])?_0x34c979([0x2a]):'')[_0x34c979([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x56c4e))[_0x34c979([0x73,0x6f,0x6d,0x65])](_0x5c1c68=>_0x58b20f[_0x34c979([0x65,0x76,0x65,0x72,0x79])]((_0x3ad866,_0x871b0)=>_0x5c1c68[_0x871b0]===_0x3ad866||_0x5c1c68[_0x871b0]===_0x34c979([0x2a])));}function _0x519c97(){return _0x53a05e&&_0x48b93e?new window[(_0x34c979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37db54,_0x43d822)=>{_0x53a05e[_0x34c979([0x74,0x68,0x65,0x6e])](_0x37db54,_0x43d822),_0x48b93e[_0x34c979([0x74,0x68,0x65,0x6e])](_0xc6512c=>{_0xc6512c!=_0x34c979([0x56,0x61,0x6c,0x69,0x64])&&_0x37db54(_0xc6512c);},_0x43d822);}):_0x53a05e||_0x48b93e||_0x34c979([0x56,0x61,0x6c,0x69,0x64]);}}function _0x972051(_0x4a8594,_0x5c1fb5){return new window[(_0x34c979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x407478=>{if(_0x31516d())return _0x407478(_0x34c979([0x56,0x61,0x6c,0x69,0x64]));_0x3f8902(),_0x1ff416[_0x34c979([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x34c979([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f3ecf=!0x1;const _0x5ccdd8=_0x3da83e();function _0xcd070b(_0x261a1d){return!!_0x261a1d&&(typeof _0x261a1d===_0x34c979([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x261a1d===_0x34c979([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x261a1d[_0x34c979([0x74,0x68,0x65,0x6e])]===_0x34c979([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x261a1d[_0x34c979([0x63,0x61,0x74,0x63,0x68])]===_0x34c979([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x123954(_0x496982){_0x43c95c(_0x496982)[_0x34c979([0x74,0x68,0x65,0x6e])](_0x50d49d=>{if(!_0x50d49d||_0x50d49d[_0x34c979([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x34c979([0x6f,0x6b]))return _0x34c979([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xcd5d71(_0x254834(_0x5ccdd8+_0x5c1fb5))!=_0x50d49d[_0x34c979([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x34c979([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x34c979([0x56,0x61,0x6c,0x69,0x64]);})[_0x34c979([0x74,0x68,0x65,0x6e])](_0x3701f7=>(_0x1ae988(),_0x3701f7),()=>{const _0x171f9b=_0x32554c();return null==_0x171f9b?(_0x1ae988(),_0x34c979([0x56,0x61,0x6c,0x69,0x64])):_0x34c979(_0x1f0308-_0x171f9b>(0x2bdfcba7^_0x380298)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x34c979([0x74,0x68,0x65,0x6e])](_0x407478)[_0x34c979([0x63,0x61,0x74,0x63,0x68])](()=>{_0x407478(_0x34c979([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x883e35=0xfe5a127^_0x380298;function _0x1ae988(){const _0x2e0097=_0x34c979([0x6c,0x6c,0x63,0x74,0x2d])+_0xcd5d71(_0x254834(_0x4a8594)),_0x1507e8=_0x57747a(_0xcd5d71(window[_0x34c979([0x4d,0x61,0x74,0x68])][_0x34c979([0x63,0x65,0x69,0x6c])](_0x1f0308/_0x883e35)));window[_0x34c979([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34c979([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e0097,_0x1507e8);}function _0x32554c(){const _0xcb2e4e=_0x34c979([0x6c,0x6c,0x63,0x74,0x2d])+_0xcd5d71(_0x254834(_0x4a8594)),_0x20aa19=window[_0x34c979([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34c979([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xcb2e4e);return _0x20aa19?window[_0x34c979([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57747a(_0x20aa19),0x10)*_0x883e35:null;}function _0x43c95c(_0x158d5c){return new window[(_0x34c979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44987e,_0x29cef3)=>{_0x158d5c[_0x34c979([0x74,0x68,0x65,0x6e])](_0x44987e,_0x29cef3),window[_0x34c979([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29cef3,0xfd29b67^_0x380298);});}}_0x1ff416[_0x34c979([0x6f,0x6e])](_0x34c979([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x20491f,_0xa7e525)=>{if(_0xa7e525[0x0]!=_0x4a8594)return _0x407478(_0x34c979([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa7e525[0x1]={..._0xa7e525[0x1],[_0x34c979([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5ccdd8};},{[_0x34c979([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34c979([0x68,0x69,0x67,0x68])}),_0x1ff416[_0x34c979([0x6f,0x6e])](_0x34c979([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3bdfc1=>{_0xcd070b(_0x3bdfc1[_0x34c979([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f3ecf=!0x0,_0x123954(_0x3bdfc1[_0x34c979([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x34c979([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34c979([0x6c,0x6f,0x77])}),_0xb6609a[_0x34c979([0x74,0x68,0x65,0x6e])](()=>{_0x3f3ecf||_0x407478(_0x34c979([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x31516d(){return _0x1ff416[_0x34c979([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34c979([0x76,0x69,0x65,0x77])][_0x34c979([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x34c979([0x61,0x75,0x74,0x6f]);}function _0x3f8902(){_0x1ff416[_0x34c979([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34c979([0x76,0x69,0x65,0x77])][_0x34c979([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x34c979([0x61,0x75,0x74,0x6f]);}}function _0x5eb446(_0x2f30b4){const _0x56d002=[new window[(_0x34c979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d82a5=>setTimeout(_0x1d82a5,0xfda716b^_0x380298)),_0xb6609a[_0x34c979([0x74,0x68,0x65,0x6e])](()=>new window[(_0x34c979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cfcb4=>{let _0x36a79e=0x0;_0x1ff416[_0x34c979([0x6d,0x6f,0x64,0x65,0x6c])][_0x34c979([0x6f,0x6e])](_0x34c979([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x304e4a,_0x2fc492)=>{_0x2fc492[0x0][_0x34c979([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x36a79e++,_0x36a79e==(0xfd34e5f^_0x380298)&&(_0x2cfcb4(),_0x304e4a[_0x34c979([0x6f,0x66,0x66])]());});}))];return window[_0x34c979([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x34c979([0x72,0x61,0x63,0x65])](_0x56d002)[_0x34c979([0x74,0x68,0x65,0x6e])](()=>_0x2f30b4);}async function _0xd4d65(){await _0xb6609a,_0x1ff416[_0x34c979([0x6d,0x6f,0x64,0x65,0x6c])][_0x34c979([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x46572c,_0x1ff416[_0x34c979([0x6d,0x6f,0x64,0x65,0x6c])][_0x34c979([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x46572c,_0x1ff416[_0x34c979([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x34c979([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x101b37(_0x75f5df){const _0x3203d1=_0x57454c();_0x1ff416[_0x3203d1]=_0x34c979([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x75f5df,_0x75f5df!=_0x34c979([0x56,0x61,0x6c,0x69,0x64])&&_0xd4d65();}function _0x57454c(){const _0x48a9b7=window[_0x34c979([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x34c979([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x34c979([0x6e,0x6f,0x77])]())[_0x34c979([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x34c979([0x2e]),'');let _0x46aad9=_0x34c979([0x67]);for(let _0x2d6ed0=0x0;_0x2d6ed0<_0x48a9b7[_0x34c979([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d6ed0+=0x2){let _0x51f9b8=window[_0x34c979([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48a9b7[_0x34c979([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d6ed0,_0x2d6ed0+0x2));_0x51f9b8>=_0x3d9b68[_0x34c979([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x51f9b8-=_0x3d9b68[_0x34c979([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x46aad9+=_0x3d9b68[_0x51f9b8];}return _0x46aad9;}function _0x58f480(){const _0x318d22=_0x11ef48[_0x34c979([0x73,0x70,0x6c,0x69,0x74])](_0x34c979([0x2e]));if(0x3!=_0x318d22[_0x34c979([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58ee30(_0x318d22[0x1]);function _0x58ee30(_0x387ddd){const _0x4f2eb2=_0x174fa5(_0x387ddd);return _0x4f2eb2&&_0x147ce3()?_0x4f2eb2:null;function _0x147ce3(){const _0x23b6b4=_0x4f2eb2[_0x34c979([0x6a,0x74,0x69])],_0x2c597d=window[_0x34c979([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23b6b4[_0x34c979([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23b6b4[_0x34c979([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x59d335={..._0x4f2eb2,[_0x34c979([0x6a,0x74,0x69])]:_0x23b6b4[_0x34c979([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x23b6b4[_0x34c979([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x59d335[_0x34c979([0x76,0x63])],_0x254834(_0x59d335)==_0x2c597d;}}}async function _0x14c325(){let _0x50c51c=!0x0;try{const _0x26561f=_0x11ef48[_0x34c979([0x73,0x70,0x6c,0x69,0x74])](_0x34c979([0x2e])),[_0x1188b3,_0x31c173,_0x9d3643]=_0x26561f;return _0x3b1169(_0x1188b3),await _0x4c578d(_0x1188b3,_0x31c173,_0x9d3643),_0x50c51c;}catch{return!0x1;}function _0x3b1169(_0xf0bc24){const _0x1256b3=_0x174fa5(_0xf0bc24);_0x1256b3&&_0x1256b3[_0x34c979([0x61,0x6c,0x67])]==_0x34c979([0x45,0x53,0x32,0x35,0x36])||(_0x50c51c=!0x1);}async function _0x4c578d(_0x3596ed,_0x592d1c,_0x380d3a){const _0x158fec=window[_0x34c979([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x34c979([0x66,0x72,0x6f,0x6d])](_0x16e5d5(_0x380d3a),_0xd70529=>_0xd70529[_0x34c979([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4a62f9=new window[(_0x34c979([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x34c979([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3596ed+_0x34c979([0x2e])+_0x592d1c),_0x2a752a=window[_0x34c979([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x34c979([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2a752a)return;const _0xbda2f0=await _0x2a752a[_0x34c979([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x34c979([0x6a,0x77,0x6b]),_0x20eef5,{[_0x34c979([0x6e,0x61,0x6d,0x65])]:_0x34c979([0x45,0x43,0x44,0x53,0x41]),[_0x34c979([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x34c979([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x34c979([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2a752a[_0x34c979([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x34c979([0x6e,0x61,0x6d,0x65])]:_0x34c979([0x45,0x43,0x44,0x53,0x41]),[_0x34c979([0x68,0x61,0x73,0x68])]:{[_0x34c979([0x6e,0x61,0x6d,0x65])]:_0x34c979([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xbda2f0,_0x158fec,_0x4a62f9)||(_0x50c51c=!0x1);}}function _0x174fa5(_0x115413){return _0x115413[_0x34c979([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x34c979([0x65,0x79]))?JSON[_0x34c979([0x70,0x61,0x72,0x73,0x65])](_0x16e5d5(_0x115413)):null;}function _0x16e5d5(_0x5dcedd){return window[_0x34c979([0x61,0x74,0x6f,0x62])](_0x5dcedd[_0x34c979([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x34c979([0x2b]))[_0x34c979([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x34c979([0x2f])));}function _0x254834(_0xc60439){let _0x324c18=0x1505;function _0x1b110f(_0x1724b8){for(let _0x3ace16=0x0;_0x3ace16<_0x1724b8[_0x34c979([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ace16++){const _0x163a2d=_0x1724b8[_0x34c979([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3ace16);_0x324c18=(_0x324c18<<0x5)+_0x324c18+_0x163a2d,_0x324c18&=_0x324c18;}}function _0x81354c(_0x5b577a){Array[_0x34c979([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5b577a)?_0x5b577a[_0x34c979([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x81354c):_0x5b577a&&typeof _0x5b577a==_0x34c979([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x34c979([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5b577a)[_0x34c979([0x73,0x6f,0x72,0x74])]()[_0x34c979([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x22fabc,_0xba8815])=>{_0x1b110f(_0x22fabc),_0x81354c(_0xba8815);}):_0x1b110f(window[_0x34c979([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5b577a));}return _0x81354c(_0xc60439),_0x324c18>>>0x0;}function _0xcd5d71(_0x4f782b){return _0x4f782b[_0x34c979([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x34c979([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x34c979([0x30]));}function _0x57747a(_0x4d315b){return _0x4d315b[_0x34c979([0x73,0x70,0x6c,0x69,0x74])]('')[_0x34c979([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x34c979([0x6a,0x6f,0x69,0x6e])]('');}function _0x46572c(){}function _0x34c979(_0x231756){const _0x28f7ba=_0x3e6a;return _0x231756[_0x28f7ba(0x214)](_0x372cf0=>String[_0x28f7ba(0x1ef)](_0x372cf0))[_0x28f7ba(0x253)]('');}_0x101b37(await _0x186d35());}(this);}[_0x695c33(0x245)](){const _0x2cdd50=_0x695c33,_0x555ea2=this[_0x2cdd50(0x24b)][_0x2cdd50(0x231)];_0x555ea2[_0x2cdd50(0x212)](_0x2cf933=>{const _0x3e68d7=_0x2cdd50,_0x43829b=_0x555ea2[_0x3e68d7(0x20f)][_0x3e68d7(0x24f)][_0x3e68d7(0x1e9)]();let _0x1f2766=0x0;for(const _0x2fea5c of _0x43829b){const _0x3faba2=w+':'+_0x1f2766;if(_0x555ea2[_0x3e68d7(0x244)][_0x3e68d7(0x1f6)](_0x3faba2))_0x2cf933[_0x3e68d7(0x1fc)](_0x3faba2,{'range':_0x2fea5c});else{if(_0x2fea5c[_0x3e68d7(0x250)][_0x3e68d7(0x242)]){const _0x1cefca=_0x2fea5c[_0x3e68d7(0x250)][_0x3e68d7(0x238)](({item:_0x3ad2e1})=>!_0x555ea2[_0x3e68d7(0x1fb)][_0x3e68d7(0x21a)](_0x3ad2e1),{'boundaries':_0x2fea5c});_0x2cf933[_0x3e68d7(0x1fd)](_0x3faba2,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x2cf933[_0x3e68d7(0x1f7)](_0x1cefca,_0x2fea5c[_0x3e68d7(0x22a)])});}else _0x2cf933[_0x3e68d7(0x1fd)](_0x3faba2,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x2fea5c});}_0x1f2766++;}});}[_0x695c33(0x24d)](){const _0xc2d62c=_0x695c33,_0xcfcbd9=this[_0xc2d62c(0x24b)][_0xc2d62c(0x231)],_0x3a92fe=Array[_0xc2d62c(0x249)](this[_0xc2d62c(0x24b)][_0xc2d62c(0x231)][_0xc2d62c(0x244)][_0xc2d62c(0x23a)](w));_0x3a92fe[_0xc2d62c(0x251)]&&_0xcfcbd9[_0xc2d62c(0x212)](_0xd35050=>{const _0xf7a813=_0xc2d62c;_0x3a92fe[_0xf7a813(0x246)](_0x2ef0ce=>{const _0x283df3=_0xf7a813;_0xd35050[_0x283df3(0x1e5)](_0x2ef0ce);});});}[_0x695c33(0x1ed)](_0x5863d2,_0xe1098a){const _0x1df4c7=_0x695c33,_0x2a3bfe=this[_0x1df4c7(0x239)](),_0x59e03e=_0xe1098a||_0x2a3bfe[_0x1df4c7(0x1f9)]();this[_0x1df4c7(0x24b)][_0x1df4c7(0x231)][_0x1df4c7(0x1f1)](_0x59e03e)&&this[_0x1df4c7(0x24b)][_0x1df4c7(0x231)][_0x1df4c7(0x212)](_0x1d639d=>{const _0x568c47=_0x1df4c7;this[_0x568c47(0x24d)](),_0xe1098a||this[_0x568c47(0x240)](_0x1d639d,_0x2a3bfe),this[_0x568c47(0x235)]({'insertAt':_0x59e03e,'writer':_0x1d639d,'html':_0x5863d2});});}[_0x695c33(0x21f)](_0x39605c){const _0x2b9519=_0x695c33,{model:_0x1796c8}=this[_0x2b9519(0x24b)],_0x5e85d0=this[_0x2b9519(0x239)]();_0x1796c8[_0x2b9519(0x212)](()=>{const _0x348088=_0x2b9519,_0x44dd1d=this[_0x348088(0x222)](_0x39605c,_0x5e85d0)||this[_0x348088(0x205)](_0x5e85d0);this[_0x348088(0x1ed)](_0x39605c,_0x44dd1d);});}[_0x695c33(0x239)](){const _0x3ab3ec=_0x695c33,_0x1b44cc=this[_0x3ab3ec(0x24b)][_0x3ab3ec(0x231)],_0x285a12=Array[_0x3ab3ec(0x249)](_0x1b44cc[_0x3ab3ec(0x244)][_0x3ab3ec(0x23a)](w))[_0x3ab3ec(0x214)](_0x380582=>_0x380582[_0x3ab3ec(0x1f8)]());return _0x1b44cc[_0x3ab3ec(0x213)](_0x285a12);}[_0x695c33(0x235)]({writer:_0x44f50a,html:_0x385655,insertAt:_0x2f29c3}){const _0x586b2c=_0x695c33,{view:_0x3d272b}=this[_0x586b2c(0x24b)][_0x586b2c(0x1fa)],_0xd3d5b4=this[_0x586b2c(0x24b)][_0x586b2c(0x204)][_0x586b2c(0x1eb)](_0x4c0d05),_0xefec45=new l();_0xefec45[_0x586b2c(0x1ea)](_0x586b2c(0x228),_0x385655);const _0x56cfef=new ClipboardEvent(_0x586b2c(0x252),{'clipboardData':_0xefec45}),_0x3c8d82=new _0x4684df(_0x3d272b,_0x56cfef,{'dataTransfer':new _0x503eac(_0xefec45)});_0x44f50a[_0x586b2c(0x23e)](_0x2f29c3);const _0x248428=(_0x41b7c7,_0xb59626)=>{const _0x7756bb=_0x586b2c;_0xb59626[_0x7756bb(0x217)]&&_0x44f50a[_0x7756bb(0x23e)](_0xb59626[_0x7756bb(0x217)]);};_0xd3d5b4[_0x586b2c(0x24c)](_0x586b2c(0x1ec),_0x248428,{'priority':_0x586b2c(0x22c)}),_0x3d272b[_0x586b2c(0x20f)][_0x586b2c(0x23b)](_0x586b2c(0x252),_0x3c8d82),_0xd3d5b4[_0x586b2c(0x215)](_0x586b2c(0x1ec),_0x248428);}[_0x695c33(0x205)](_0x253c56){const _0x47ebb5=_0x695c33,{model:_0x4e3fc5}=this[_0x47ebb5(0x24b)],_0x260670=Array[_0x47ebb5(0x249)](_0x253c56[_0x47ebb5(0x1e4)]());return _0x260670[_0x47ebb5(0x251)]?_0x4e3fc5[_0x47ebb5(0x220)](_0x260670[_0x47ebb5(0x20d)]()):_0x253c56[_0x47ebb5(0x218)]();}[_0x695c33(0x222)](_0x1a735e,_0x31d2b0){const _0x5b0b98=_0x695c33,{model:_0x163959,plugins:_0x4a7ce5}=this[_0x5b0b98(0x24b)];if(_0x4a7ce5[_0x5b0b98(0x1f6)](_0x5b0b98(0x226))){const _0xf39870=_0x4a7ce5[_0x5b0b98(0x1eb)](_0x5b0b98(0x226))[_0x5b0b98(0x1e7)](_0x31d2b0);if(_0xf39870[_0x5b0b98(0x251)]){const _0x5c6c5d=this[_0x5b0b98(0x23f)](_0x1a735e),_0xd302df=this[_0x5b0b98(0x211)](_0xf39870,_0x5c6c5d);return _0x163959[_0x5b0b98(0x21d)](_0xd302df,0x0);}}return null;}[_0x695c33(0x23f)](_0x2e12f2){const _0xc75806=_0x695c33,_0x9cb890=this[_0xc75806(0x24b)][_0xc75806(0x204)][_0xc75806(0x1eb)](_0xc75806(0x226)),_0xf5864f=this[_0xc75806(0x24b)][_0xc75806(0x22f)][_0xc75806(0x1f5)](_0x2e12f2),_0x271024=Array[_0xc75806(0x249)](_0xf5864f[_0xc75806(0x203)]())[_0xc75806(0x1f2)](_0x2e05ed=>_0x2e05ed['is'](_0xc75806(0x23c),_0xc75806(0x209)));let _0x32c413=0x0;return _0x271024[_0xc75806(0x246)](_0x30c760=>{const _0x1b3984=_0xc75806;_0x32c413+=_0x9cb890[_0x1b3984(0x247)](_0x30c760);}),_0x32c413;}[_0x695c33(0x211)](_0x4032f9,_0x2ecbfe){const _0x404a37=_0x695c33,_0x17dc0c=this[_0x404a37(0x24b)][_0x404a37(0x204)][_0x404a37(0x1eb)](_0x404a37(0x226)),_0x304783=_0x17dc0c[_0x404a37(0x1e6)](_0x4032f9),_0x623cc0=_0x17dc0c[_0x404a37(0x22e)](_0x4032f9),_0x5b945b=_0x304783[_0x404a37(0x230)]+0x1,_0x3d95fb=_0x623cc0[_0x404a37(0x1fe)],_0x12f6fa=_0x4032f9[0x0][_0x404a37(0x20a)](_0x404a37(0x209));for(let _0x27cf60=0x0;_0x27cf60<_0x2ecbfe;_0x27cf60++)_0x17dc0c[_0x404a37(0x1f4)](_0x12f6fa,{'at':_0x5b945b});return _0x12f6fa[_0x404a37(0x229)](_0x5b945b)[_0x404a37(0x229)](_0x3d95fb);}[_0x695c33(0x240)](_0x11af30,_0x2bc2e6){const _0x75441d=_0x695c33,{plugins:_0x501c43}=this[_0x75441d(0x24b)],{model:_0x266ae8}=_0x11af30;if(!_0x501c43[_0x75441d(0x1f6)](_0x75441d(0x226)))return;_0x501c43[_0x75441d(0x1eb)](_0x75441d(0x226))[_0x75441d(0x1e7)](_0x2bc2e6)[_0x75441d(0x251)]&&_0x266ae8[_0x75441d(0x208)](_0x2bc2e6);}}function _0x2f19(){const _0x2cc708=['table','findAncestor','9AwAZuc','744MSGErb','pop','addClass','document','AIAssistantEditing','_createEmptyTableRows','change','createSelection','map','off','DataTransfer','resultRange','getLastPosition','967219PBBpbT','isContent','ai-ui','12398900MzqXKs','createPositionAt','markerToElement','insertContentBelow','createPositionAfter','ck-fake-ai-selection','_prepareTableInsertBelowPosition','isPremiumPlugin','isCollapsed','6NKZIay','TableUtils','72Svjhym','text/html','getChild','end','2998376XzAnYz','lowest','isOfficialPlugin','getColumnIndexes','data','last','model','438037toSlXF','for','href','_pasteHTMLUsingClipboard','466319BSdUcO','editingDowncast','getLastMatchingPosition','_getAISelection','getMarkersGroup','fire','element','conversion','setSelection','_getTableRowCountFromContent','_resetContentOfSelectedTableCells','markerRange','isAtEnd','ck-ai-assistant-ui_theme','markers','showFakeVisualSelection','forEach','getRows','init','from','markerToHighlight','editor','once','hideFakeVisualSelection','push','selection','start','length','paste','join','getSelectedBlocks','removeMarker','getRowIndexes','getSelectedTableCells','pluginName','getRanges','setData','get','contentInsertion','insertContent','ai.useTheme','fromCharCode','5653135tmqfCp','canEditAt','filter','4oSNCdS','insertRows','parse','has','createRange','getRange','getFirstRange','editing','schema','updateMarker','addMarker','first','config','3855486LxbZpV','afterInit','span','getChildren','plugins','_getDefaultInsertBelowPosition','ck-fake-ai-selection_collapsed','createUIElement','deleteContent'];_0x2f19=function(){return _0x2cc708;};return _0x2f19();}
|
package/src/aiassistantui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xb7aa97=_0x30b8;(function(_0x5acbc4,_0x2c5c14){const _0x3798f1=_0x30b8,_0x2694ca=_0x5acbc4();while(!![]){try{const _0x29715b=parseInt(_0x3798f1(0x152))/0x1*(-parseInt(_0x3798f1(0x142))/0x2)+parseInt(_0x3798f1(0x186))/0x3+-parseInt(_0x3798f1(0x183))/0x4*(-parseInt(_0x3798f1(0x175))/0x5)+parseInt(_0x3798f1(0x1a8))/0x6*(-parseInt(_0x3798f1(0x14a))/0x7)+parseInt(_0x3798f1(0x154))/0x8*(parseInt(_0x3798f1(0x181))/0x9)+-parseInt(_0x3798f1(0x17c))/0xa*(-parseInt(_0x3798f1(0x177))/0xb)+-parseInt(_0x3798f1(0x16e))/0xc;if(_0x29715b===_0x2c5c14)break;else _0x2694ca['push'](_0x2694ca['shift']());}catch(_0x322137){_0x2694ca['push'](_0x2694ca['shift']());}}}(_0x251e,0x64610));function _0x251e(){const _0x5c4d00=['currentContext','ai.aiAssistant.commands','ai.useTheme','reset','Error\x20during\x20AI\x20content\x20generation:\x20%0','5zViBtl','promptView','4779654tLZEJr','map','includes','EDITOR_TOP_SIDE','hide','10vjBMrn','change:value','change:enabledCommandsIds','isCollapsed','aiLicenseKeyUsageLimit','771048kcwLyH','panelView','1535036MsxIPQ','queryView','media','2419035hcdLni','aiLicenseKeyTrialLimit','update','ai.aiAssistant.contentAreaCssClass','destroy','showAIAssistant','REPLACE','focus','tableOfContents','menuitemcheckbox','textAdapter','requiresContent','aiLicenseKeyInvalid','ck-ai-assistant-ui','aiLicenseKeyNotAllowed','evaluationLimit','ai.aiAssistant.disabledElements','custom','insertContentBelow','aiLicenseKeyExpired','forEach','showUI','from','commands','_commandDefinitions','children','init','sort','buttonView','execute','menuBar:aiAssistant','hideUI','body','push','3760086wZGjjw','contentArea','_uiCssClasses','replace','aiLicenseKeyDomainLimit','showFakeVisualSelection','isOn','label','\x20ck-ai-assistant-ui_theme','polite','wasMoved','addMany','length','_getResolvedCommandsDefinitions','_licenseKeyCheckInterval','groupId','config','AIAssistantUI','fieldView','_formView','schema','_aiAssistantController','updatePosition','setSelection','command:','AI\x20is\x20writing','copy','change:isError','isOfficialPlugin','define','show','AI\x20Commands','</p>','_createAIAssistantUIButton','listenTo','getLimitElement','enabledCommandsIds','locale','menuBar:aiCommands','domainLimit','AI\x20Assistant','change','ai-commands-config-order-collision','text/html','getSelectedBlocks','items','trim','_showLicenseError','<p>','Generated\x20content:\x20%0','_getMenuBarGroupButtons','editor','getSelectedElement','insertContent','editing','_populateMenuBarMenu','INSERT','comment','buttons','announce','featureNotAllowed','ck-ai-assistant-button\x20','selection','set','document','ck-ai-commands-dropdown\x20','expired','view','text','DataTransfer','source','_forceMarkersCopy','getRanges','splice','updateView','aiLicenseKeyEvaluationLimit','24758czgrpv','requires','getData','menuView','aiAssistant','order','filter','_dialog','7UqepIj','trialLimit','componentFactory','menuPanelClass','_initView','replaceContent','aiCommands','pluginName','51bXGEff','values','8STwmtD','licenseKey','delegate','plugins','errorView','_onExecute','render','_aiAdapter','once','rawHtml','hideFakeVisualSelection','isPremiumPlugin','get','bind','_initAriaAiStatusChangeAnnouncements','change:isProcessing','usageLimit','isFlat','invalid','add','fire','isEnabled','groupLabel','AIAssistant','prompt','model','493536vCqKqT','aiLicenseKeyValid'];_0x251e=function(){return _0x5c4d00;};return _0x251e();}import{Plugin as _0xf4ff84}from'ckeditor5/src/core.js';import{IconMagicWand as _0x1e530b,IconRobotPencil as _0x5189ed}from'ckeditor5/src/icons.js';import{first as _0x58105c,CKEditorError as _0x44a22b}from'ckeditor5/src/utils.js';import{createDropdown as _0xb55e52,addMenuToDropdown as _0x3a7ad3,ButtonView as _0x3269bb,MenuBarMenuListItemButtonView as _0x3d1839,Dialog as _0x10ca95,DialogViewPosition as _0x485275,MenuBarMenuView as _0x2d0f4a,MenuBarMenuListView as _0x36f9d9,MenuBarMenuListItemView as _0x472308}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x39a7da,UNGROUPED_COMMANDS_GROUP_ID as _0x4c3d68}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x3b0fc0}from'./aiassistantediting.js';import{AIAdapter as _0x1b9736}from'./adapters/aiadapter.js';import{getTranslation as _0x4822fd}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x48ce6a}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x5142d2}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x4013c9}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x7680e8}from'./ui/form/aiformtoolbarview.js';import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';const l=globalThis[_0xb7aa97(0x13b)];import{ClipboardMarkersUtils as _0x52f59d}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x1ac5ff,ViewDataTransfer as _0x2394c1}from'ckeditor5/src/engine.js';function _0x30b8(_0x1a8893,_0x489719){const _0x251e6e=_0x251e();return _0x30b8=function(_0x30b891,_0x1751a3){_0x30b891=_0x30b891-0x110;let _0x233c92=_0x251e6e[_0x30b891];return _0x233c92;},_0x30b8(_0x1a8893,_0x489719);}export class AIAssistantUI extends _0xf4ff84{[_0xb7aa97(0x155)];[_0xb7aa97(0x1b6)];[_0xb7aa97(0x149)];[_0xb7aa97(0x1bb)];[_0xb7aa97(0x15b)];[_0xb7aa97(0x1bd)];[_0xb7aa97(0x1aa)]='';static get[_0xb7aa97(0x151)](){const _0x1a624f=_0xb7aa97;return _0x1a624f(0x1b9);}static get[_0xb7aa97(0x112)](){return!0x0;}static get[_0xb7aa97(0x15f)](){return!0x0;}static get[_0xb7aa97(0x143)](){return[_0x52f59d,_0x3b0fc0,_0x1b9736,_0x10ca95];}constructor(_0x294567){const _0x3672bf=_0xb7aa97;super(_0x294567),_0x294567[_0x3672bf(0x1b8)][_0x3672bf(0x113)](_0x3672bf(0x196),[_0x3672bf(0x185),_0x3672bf(0x15d),_0x3672bf(0x18e)]),_0x294567[_0x3672bf(0x1b8)][_0x3672bf(0x113)](_0x3672bf(0x189),''),_0x294567[_0x3672bf(0x1b8)][_0x3672bf(0x113)](_0x3672bf(0x172),!0x0),this[_0x3672bf(0x1aa)]=_0x3672bf(0x193)+(_0x294567[_0x3672bf(0x1b8)][_0x3672bf(0x160)](_0x3672bf(0x172))?_0x3672bf(0x1b0):'');}[_0xb7aa97(0x1a0)](){const _0x3f5fe1=_0xb7aa97,{editor:_0x395128}=this;this[_0x3f5fe1(0x15b)]=_0x395128[_0x3f5fe1(0x157)][_0x3f5fe1(0x160)](_0x1b9736),this[_0x3f5fe1(0x149)]=_0x395128[_0x3f5fe1(0x157)][_0x3f5fe1(0x160)](_0x10ca95),this[_0x3f5fe1(0x1bb)]=null,this[_0x3f5fe1(0x19e)]=this[_0x3f5fe1(0x1b5)]();const _0x218454=new _0x48ce6a(_0x395128,Array[_0x3f5fe1(0x19c)](this[_0x3f5fe1(0x19e)][_0x3f5fe1(0x153)]()));_0x395128[_0x3f5fe1(0x19d)][_0x3f5fe1(0x167)](_0x3f5fe1(0x18b),_0x218454),_0x395128['ui'][_0x3f5fe1(0x14c)][_0x3f5fe1(0x167)](_0x3f5fe1(0x150),_0x4d7b00=>{const _0x1a5257=_0x3f5fe1,_0x53bed7=_0xb55e52(_0x4d7b00);return _0x53bed7[_0x1a5257(0x135)]({'class':_0x1a5257(0x137)+this[_0x1a5257(0x1aa)]}),_0x53bed7[_0x1a5257(0x1a2)][_0x1a5257(0x135)]({'label':_0x4822fd(_0x4d7b00,_0x1a5257(0x115)),'icon':_0x1e530b,'tooltip':!0x0}),_0x53bed7['on'](_0x1a5257(0x1a3),_0x104a62=>this[_0x1a5257(0x159)](_0x104a62[_0x1a5257(0x13c)]['id'])),_0x3a7ad3(_0x53bed7,_0x395128['ui'][_0x1a5257(0x139)][_0x1a5257(0x1a6)],function(_0x417f85){const _0x154c51=_0x1a5257,_0x4a658d=_0x39a7da(_0x417f85[_0x154c51(0x1b8)][_0x154c51(0x160)](_0x154c51(0x171)),_0x417f85[_0x154c51(0x11b)]),_0x4a01f=U(_0x417f85,_0x4a658d)[_0x154c51(0x148)](_0x3b0336=>_0x3b0336[_0x154c51(0x19d)][_0x154c51(0x1b4)]);if(0x1===_0x4a01f[_0x154c51(0x1b4)])return U(_0x417f85,_0x4a01f[0x0][_0x154c51(0x19d)])[_0x154c51(0x178)](_0x49c261=>({'id':_0x49c261['id'],'label':_0x49c261[_0x154c51(0x1af)]}));return _0x4a01f[_0x154c51(0x178)](_0x24046e=>{const _0x4cb52e=_0x154c51,{groupId:_0x45b777,groupLabel:_0x2583ee,commands:_0x16857c}=_0x24046e,_0x2e7d9b=U(_0x417f85,_0x16857c)[_0x4cb52e(0x178)](_0x44f420=>({'id':_0x44f420['id'],'label':_0x44f420[_0x4cb52e(0x1af)]}));return{'id':_0x45b777,'menu':_0x2583ee||_0x45b777,'children':_0x2e7d9b};});}(_0x395128),{'ariaLabel':_0x4822fd(_0x4d7b00,_0x1a5257(0x115))}),_0x53bed7[_0x1a5257(0x145)][_0x1a5257(0x14d)]=_0x1a5257(0x137)+this[_0x1a5257(0x1aa)],_0x218454['on'](_0x1a5257(0x17e),_0x156cd4),_0x53bed7[_0x1a5257(0x145)][_0x1a5257(0x15c)](_0x1a5257(0x15a),_0x156cd4),_0x53bed7;function _0x156cd4(){const _0x57004e=_0x1a5257;_0x53bed7[_0x57004e(0x169)]=_0x218454[_0x57004e(0x11a)][_0x57004e(0x1b4)]>0x0;for(const _0x3105eb of _0x53bed7[_0x57004e(0x145)][_0x57004e(0x130)])_0x3105eb[_0x57004e(0x169)]=_0x218454[_0x57004e(0x11a)][_0x57004e(0x179)](_0x3105eb['id']);}}),_0x395128['ui'][_0x3f5fe1(0x14c)][_0x3f5fe1(0x167)](_0x3f5fe1(0x11c),_0x5d9e7a=>{const _0x5ade2d=_0x3f5fe1,_0x5e7963=new _0x2d0f4a(_0x5d9e7a);_0x5e7963[_0x5ade2d(0x1a2)][_0x5ade2d(0x135)]({'label':_0x4822fd(_0x5d9e7a,_0x5ade2d(0x115)),'icon':_0x1e530b}),_0x5e7963[_0x5ade2d(0x161)](_0x5ade2d(0x169))['to'](_0x218454,_0x5ade2d(0x11a),_0x411b63=>_0x411b63[_0x5ade2d(0x1b4)]>0x0);const _0x31bcf5=_0x39a7da(_0x395128[_0x5ade2d(0x1b8)][_0x5ade2d(0x160)](_0x5ade2d(0x171)),_0x5d9e7a);return this[_0x5ade2d(0x12d)](_0x218454,_0x5e7963,_0x31bcf5,_0x26797e=>this[_0x5ade2d(0x159)](_0x26797e)),_0x5e7963;}),_0x395128['ui'][_0x3f5fe1(0x14c)][_0x3f5fe1(0x167)](_0x3f5fe1(0x146),()=>{const _0x195ff6=_0x3f5fe1,_0x18482b=this[_0x195ff6(0x117)](_0x3269bb);return _0x18482b[_0x195ff6(0x135)]({'tooltip':!0x0,'class':_0x195ff6(0x133)+this[_0x195ff6(0x1aa)]}),_0x18482b;}),_0x395128['ui'][_0x3f5fe1(0x14c)][_0x3f5fe1(0x167)](_0x3f5fe1(0x1a4),()=>{const _0x49e160=_0x3f5fe1,_0x18094b=this[_0x49e160(0x117)](_0x3d1839);return _0x18094b[_0x49e160(0x135)]({'role':_0x49e160(0x18f)}),_0x18094b;}),this[_0x3f5fe1(0x155)]=this[_0x3f5fe1(0x129)][_0x3f5fe1(0x1b8)][_0x3f5fe1(0x160)](_0x3f5fe1(0x155));const _0x2c16c3=this[_0x3f5fe1(0x129)];this[_0x3f5fe1(0x1b6)]=setInterval(()=>{const _0x4c30ea=_0x3f5fe1;let _0x481810;for(const _0x314877 in _0x2c16c3){const _0x2d1e45=_0x314877,_0x2a5202=_0x2c16c3[_0x2d1e45];if(_0x4c30ea(0x16f)==_0x2a5202||_0x4c30ea(0x192)==_0x2a5202||_0x4c30ea(0x199)==_0x2a5202||_0x4c30ea(0x1ac)==_0x2a5202||_0x4c30ea(0x194)==_0x2a5202||_0x4c30ea(0x141)==_0x2a5202||_0x4c30ea(0x187)==_0x2a5202||_0x4c30ea(0x180)==_0x2a5202){delete _0x2c16c3[_0x2d1e45],_0x481810=_0x2a5202,clearInterval(this[_0x4c30ea(0x1b6)]),this[_0x4c30ea(0x1b6)]=void 0x0;break;}}_0x4c30ea(0x192)==_0x481810&&_0x2c16c3[_0x4c30ea(0x125)](_0x4c30ea(0x166)),_0x4c30ea(0x199)==_0x481810&&_0x2c16c3[_0x4c30ea(0x125)](_0x4c30ea(0x138)),_0x4c30ea(0x1ac)==_0x481810&&_0x2c16c3[_0x4c30ea(0x125)](_0x4c30ea(0x11d)),_0x4c30ea(0x194)==_0x481810&&_0x2c16c3[_0x4c30ea(0x125)](_0x4c30ea(0x132),_0x4c30ea(0x16b)),_0x4c30ea(0x141)==_0x481810&&_0x2c16c3[_0x4c30ea(0x125)](_0x4c30ea(0x195)),_0x4c30ea(0x187)==_0x481810&&_0x2c16c3[_0x4c30ea(0x125)](_0x4c30ea(0x14b)),_0x4c30ea(0x180)==_0x481810&&_0x2c16c3[_0x4c30ea(0x125)](_0x4c30ea(0x164));},0x3e8);}[_0xb7aa97(0x18a)](){const _0x14f478=_0xb7aa97;super[_0x14f478(0x18a)](),this[_0x14f478(0x1b6)]&&clearInterval(this[_0x14f478(0x1b6)]);}[_0xb7aa97(0x19b)](_0x5685a7='',_0x5daf10='',_0x2adcfe=_0xb7aa97(0x197)){const _0x240a3b=_0xb7aa97,_0x469706=this[_0x240a3b(0x129)],_0x9ec8f3=_0x469706[_0x240a3b(0x12c)][_0x240a3b(0x139)],_0x21e3ee=_0x469706[_0x240a3b(0x157)][_0x240a3b(0x160)](_0x3b0fc0),_0xe79e51=_0x469706[_0x240a3b(0x157)][_0x240a3b(0x160)](_0x52f59d);_0x21e3ee[_0x240a3b(0x1ad)]();const _0x19e18e=new l(),_0x4873ae=new ClipboardEvent(_0x240a3b(0x110),{'clipboardData':_0x19e18e}),_0x4efef2=new _0x2394c1(_0x19e18e),_0x282dee=new _0x1ac5ff(_0x9ec8f3,_0x4873ae,{'dataTransfer':_0x4efef2});_0xe79e51[_0x240a3b(0x13d)](_0x240a3b(0x12f),()=>{const _0x1bc981=_0x240a3b;_0x9ec8f3[_0x1bc981(0x136)][_0x1bc981(0x168)](_0x1bc981(0x110),_0x282dee);}),this[_0x240a3b(0x1bb)]||(this[_0x240a3b(0x14e)](),this[_0x240a3b(0x1bd)]=new _0x5142d2(_0x469706,this[_0x240a3b(0x15b)][_0x240a3b(0x190)],this[_0x240a3b(0x1bb)]));let _0x5300b=_0x4efef2[_0x240a3b(0x144)](_0x240a3b(0x121));const _0x39e9c5=_0x469706[_0x240a3b(0x16d)][_0x240a3b(0x136)][_0x240a3b(0x134)],_0x5410ca=Array[_0x240a3b(0x19c)](_0x39e9c5[_0x240a3b(0x13e)]());0x1===_0x5410ca[_0x240a3b(0x1b4)]&&_0x5410ca[0x0][_0x240a3b(0x165)]&&!_0x39e9c5[_0x240a3b(0x12a)]()&&''!==_0x5300b[_0x240a3b(0x1ab)](/ /g,'')[_0x240a3b(0x124)]()&&(_0x5300b=_0x240a3b(0x126)+_0x5300b+_0x240a3b(0x116)),this[_0x240a3b(0x1bd)][_0x240a3b(0x140)]({'actionId':_0x2adcfe,'query':_0x5685a7,'htmlContent':_0x5300b,'label':_0x5daf10,'mainActionLabel':_0x7680e8[_0x469706[_0x240a3b(0x16d)][_0x240a3b(0x136)][_0x240a3b(0x134)][_0x240a3b(0x17f)]?_0x240a3b(0x12e):_0x240a3b(0x18c)]}),_0x240a3b(0x146)!==this[_0x240a3b(0x149)]['id']?this[_0x240a3b(0x149)][_0x240a3b(0x114)]({'id':_0x240a3b(0x146),'icon':_0x5189ed,'title':_0x4822fd(this[_0x240a3b(0x129)][_0x240a3b(0x11b)],_0x240a3b(0x11e)),'content':this[_0x240a3b(0x1bb)],'position':_0x485275[_0x240a3b(0x17a)],'onShow':()=>{const _0x360484=_0x240a3b;this[_0x360484(0x1bb)][_0x360484(0x18d)]();},'onHide':()=>{const _0x4f36f7=_0x240a3b;this[_0x4f36f7(0x1bd)][_0x4f36f7(0x173)](),_0x21e3ee[_0x4f36f7(0x15e)]();}}):this[_0x240a3b(0x149)][_0x240a3b(0x139)][_0x240a3b(0x1b2)]||this[_0x240a3b(0x149)][_0x240a3b(0x139)][_0x240a3b(0x1be)]();}[_0xb7aa97(0x1a5)](){const _0x3cf688=_0xb7aa97;this[_0x3cf688(0x149)][_0x3cf688(0x17b)]();}[_0xb7aa97(0x1b5)](){const _0x2cd110=_0xb7aa97,_0x43f46c=new Map(),_0x44d72d=_0x39a7da(this[_0x2cd110(0x129)][_0x2cd110(0x1b8)][_0x2cd110(0x160)](_0x2cd110(0x171)),this[_0x2cd110(0x129)][_0x2cd110(0x11b)]);for(const _0x604c06 of _0x44d72d)for(const _0x317e0c of _0x604c06[_0x2cd110(0x19d)])_0x43f46c[_0x2cd110(0x135)](_0x317e0c['id'],{..._0x317e0c,'groupId':_0x604c06[_0x2cd110(0x1b7)],'groupLabel':_0x604c06[_0x2cd110(0x16a)]||_0x604c06[_0x2cd110(0x1b7)]});return _0x43f46c;}[_0xb7aa97(0x117)](_0x398eca){const _0x226208=_0xb7aa97,_0x52ce85=this[_0x226208(0x129)],_0x30fdcc=_0x52ce85[_0x226208(0x19d)][_0x226208(0x160)](_0x226208(0x18b)),_0x19136c=new _0x398eca(_0x52ce85[_0x226208(0x11b)]);return _0x19136c[_0x226208(0x135)]({'label':_0x4822fd(_0x52ce85[_0x226208(0x11b)],_0x226208(0x11e)),'icon':_0x5189ed,'isToggleable':!0x0}),_0x19136c[_0x226208(0x161)](_0x226208(0x169))['to'](_0x30fdcc),_0x19136c[_0x226208(0x161)](_0x226208(0x1ae))['to'](this[_0x226208(0x149)],'id',_0xe9c514=>_0x226208(0x146)===_0xe9c514),this[_0x226208(0x118)](_0x19136c,_0x226208(0x1a3),()=>{const _0x16366e=_0x226208;_0x19136c[_0x16366e(0x1ae)]?this[_0x16366e(0x1a5)]():_0x30fdcc[_0x16366e(0x1a3)]();}),_0x19136c;}[_0xb7aa97(0x14e)](){const _0x4c7f01=_0xb7aa97,_0x396c6c=this[_0x4c7f01(0x129)][_0x4c7f01(0x157)][_0x4c7f01(0x160)](_0x3b0fc0);this[_0x4c7f01(0x1bb)]=new _0x4013c9(this[_0x4c7f01(0x129)][_0x4c7f01(0x11b)],this[_0x4c7f01(0x1aa)],this[_0x4c7f01(0x129)][_0x4c7f01(0x1b8)][_0x4c7f01(0x160)](_0x4c7f01(0x189))),this[_0x4c7f01(0x1bb)]['on'](_0x4c7f01(0x17d),()=>{const _0x35c5d0=_0x4c7f01;this[_0x35c5d0(0x149)][_0x35c5d0(0x139)][_0x35c5d0(0x1b2)]||this[_0x35c5d0(0x149)][_0x35c5d0(0x139)][_0x35c5d0(0x1be)]();}),this[_0x4c7f01(0x1bb)][_0x4c7f01(0x176)][_0x4c7f01(0x184)][_0x4c7f01(0x1ba)]['on'](_0x4c7f01(0x188),()=>{const _0x5b06d0=_0x4c7f01;this[_0x5b06d0(0x149)][_0x5b06d0(0x139)][_0x5b06d0(0x1b2)]||this[_0x5b06d0(0x149)][_0x5b06d0(0x139)][_0x5b06d0(0x1be)]();}),this[_0x4c7f01(0x118)](this[_0x4c7f01(0x1bb)],_0x4c7f01(0x14f),()=>{const _0x3039a7=_0x4c7f01;_0x396c6c[_0x3039a7(0x12b)](this[_0x3039a7(0x1bd)][_0x3039a7(0x170)]),this[_0x3039a7(0x1a5)]();}),this[_0x4c7f01(0x118)](this[_0x4c7f01(0x1bb)],_0x4c7f01(0x198),()=>{const _0x4ffbbc=_0x4c7f01;_0x396c6c[_0x4ffbbc(0x198)](this[_0x4ffbbc(0x1bd)][_0x4ffbbc(0x170)]),this[_0x4ffbbc(0x1a5)]();}),this[_0x4c7f01(0x162)]();}[_0xb7aa97(0x162)](){const _0x1dc90c=_0xb7aa97,{locale:_0x2d0d9b,ui:{ariaLiveAnnouncer:_0x27f0d6}}=this[_0x1dc90c(0x129)];this[_0x1dc90c(0x1bb)][_0x1dc90c(0x1a9)]['on'](_0x1dc90c(0x163),(_0x3ce50d,_0x29bbbc,_0x4ba131)=>{const _0x105951=_0x1dc90c,_0x6a2d30=this[_0x105951(0x1bd)][_0x105951(0x170)];_0x4ba131?_0x27f0d6[_0x105951(0x131)](_0x4822fd(_0x2d0d9b,_0x105951(0x1c1))):_0x6a2d30&&_0x27f0d6[_0x105951(0x131)](_0x4822fd(_0x2d0d9b,_0x105951(0x127),_0x6a2d30),{'politeness':_0x105951(0x1b1),'isUnsafeHTML':!0x0});}),this[_0x1dc90c(0x1bb)]['on'](_0x1dc90c(0x111),(_0x499d58,_0x5bbf7f,_0x3f4d29)=>{const _0xb103a9=_0x1dc90c;if(_0x3f4d29){const _0xc4acdc=this[_0xb103a9(0x1bb)][_0xb103a9(0x158)][_0xb103a9(0x13a)];_0x27f0d6[_0xb103a9(0x131)](_0x4822fd(_0x2d0d9b,_0xb103a9(0x174),_0xc4acdc));}});}[_0xb7aa97(0x159)](_0x23586a){const _0x57c3e2=_0xb7aa97,_0x28cc51=this[_0x57c3e2(0x19e)][_0x57c3e2(0x160)](_0x23586a),_0x48e180=this[_0x57c3e2(0x129)],_0xc29975=_0x48e180[_0x57c3e2(0x16d)][_0x57c3e2(0x136)][_0x57c3e2(0x134)],_0x2d0b96=_0x48e180[_0x57c3e2(0x19d)][_0x57c3e2(0x160)](_0x57c3e2(0x18b)),_0x247c3d=_0x48e180[_0x57c3e2(0x157)][_0x57c3e2(0x160)](_0x3b0fc0),_0xb1c96=''+(_0x28cc51[_0x57c3e2(0x1b7)]!==_0x4c3d68?_0x28cc51[_0x57c3e2(0x16a)]+':\x20':'')+_0x28cc51[_0x57c3e2(0x1af)];if(!0x1!==_0x28cc51[_0x57c3e2(0x191)]&&_0xc29975[_0x57c3e2(0x17f)]){const _0x556f51=_0x58105c(_0xc29975[_0x57c3e2(0x122)]())||_0x48e180[_0x57c3e2(0x16d)][_0x57c3e2(0x1bc)][_0x57c3e2(0x119)](_0xc29975);_0x48e180[_0x57c3e2(0x16d)][_0x57c3e2(0x11f)](_0x410bb5=>{const _0x44b4c6=_0x57c3e2;_0x410bb5[_0x44b4c6(0x1bf)](_0x556f51,'in');});}_0x247c3d[_0x57c3e2(0x1ad)](),_0x2d0b96[_0x57c3e2(0x1a3)](_0x28cc51[_0x57c3e2(0x16c)],_0xb1c96,_0x57c3e2(0x1c0)+_0x23586a);}[_0xb7aa97(0x12d)](_0x19ae36,_0x66e281,_0x3371ad,_0x44d828){const _0x311a1a=_0xb7aa97,_0x35126f=this[_0x311a1a(0x129)],_0x4643b0=_0x35126f[_0x311a1a(0x11b)],_0x47c414=new _0x36f9d9(_0x4643b0),_0x122562=U(_0x35126f,_0x3371ad)[_0x311a1a(0x148)](_0x3c624f=>_0x3c624f[_0x311a1a(0x19d)][_0x311a1a(0x1b4)]);0x1===_0x122562[_0x311a1a(0x1b4)]?this[_0x311a1a(0x128)]({'command':_0x19ae36,'commands':_0x122562[0x0][_0x311a1a(0x19d)],'parentMenuView':_0x66e281,'onExecute':_0x44d828})[_0x311a1a(0x19a)](_0xc476e3=>_0x47c414[_0x311a1a(0x123)][_0x311a1a(0x167)](_0xc476e3)):_0x122562[_0x311a1a(0x19a)](({groupId:_0x587555,groupLabel:_0x4304e9,commands:_0x554972})=>{const _0x574afb=_0x311a1a,_0x4af0c5=new _0x472308(_0x4643b0,_0x66e281),_0x1b2c6c=new _0x2d0f4a(_0x4643b0),_0x1675b0=new _0x36f9d9(_0x4643b0),_0x57de89=this[_0x574afb(0x128)]({'command':_0x19ae36,'commands':_0x554972,'parentMenuView':_0x1b2c6c,'onExecute':_0x44d828});_0x1b2c6c[_0x574afb(0x1a2)][_0x574afb(0x135)]({'label':_0x4304e9||_0x587555}),_0x1b2c6c[_0x574afb(0x156)](_0x574afb(0x1a3))['to'](_0x66e281),_0x1675b0[_0x574afb(0x123)][_0x574afb(0x1b3)](_0x57de89),_0x1b2c6c[_0x574afb(0x182)][_0x574afb(0x19f)][_0x574afb(0x167)](_0x1675b0),_0x4af0c5[_0x574afb(0x19f)][_0x574afb(0x167)](_0x1b2c6c),_0x47c414[_0x574afb(0x123)][_0x574afb(0x167)](_0x4af0c5);}),_0x66e281[_0x311a1a(0x182)][_0x311a1a(0x19f)][_0x311a1a(0x167)](_0x47c414);}[_0xb7aa97(0x128)]({command:_0x497a32,commands:_0x582204,parentMenuView:_0x4f74d4,onExecute:_0x1d57ae}){const _0x427d97=_0xb7aa97,_0x1ccbe2=this[_0x427d97(0x129)],_0x1abee9=_0x1ccbe2[_0x427d97(0x11b)];return U(_0x1ccbe2,_0x582204)[_0x427d97(0x178)](_0xca609c=>{const _0x2b4e93=_0x427d97,_0x2b73ba=new _0x472308(_0x1abee9,_0x4f74d4),_0xa65ee=new _0x3d1839(_0x1abee9);return _0xa65ee[_0x2b4e93(0x135)]({'label':_0xca609c[_0x2b4e93(0x1af)]}),_0xa65ee[_0x2b4e93(0x156)](_0x2b4e93(0x1a3))['to'](_0x4f74d4),_0xa65ee['on'](_0x2b4e93(0x1a3),()=>_0x1d57ae(_0xca609c['id'])),_0xa65ee[_0x2b4e93(0x161)](_0x2b4e93(0x169))['to'](_0x497a32,_0x2b4e93(0x11a),_0x146b47=>_0x146b47[_0x2b4e93(0x179)](_0xca609c['id'])),_0x2b73ba[_0x2b4e93(0x19f)][_0x2b4e93(0x167)](_0xa65ee),_0x2b73ba;});}}function T(_0x26e777,_0xe18f46){const _0x260245=_0xb7aa97;return void 0x0!==_0x26e777[_0x260245(0x147)]&&void 0x0===_0xe18f46[_0x260245(0x147)]?0x1:void 0x0===_0x26e777[_0x260245(0x147)]&&void 0x0!==_0xe18f46[_0x260245(0x147)]?-0x1:void 0x0!==_0x26e777[_0x260245(0x147)]&&void 0x0!==_0xe18f46[_0x260245(0x147)]?_0x26e777[_0x260245(0x147)]-_0xe18f46[_0x260245(0x147)]:0x0;}function U(_0x2e4d20,_0x5cff8c){const _0x2cdf1b=_0xb7aa97;_0x5cff8c[_0x2cdf1b(0x1a1)](T);const _0x12bbbd={},_0x288ebb=[];for(const _0x1ceb77 of _0x5cff8c)if(void 0x0!==_0x1ceb77[_0x2cdf1b(0x147)]){if(_0x1ceb77[_0x2cdf1b(0x147)]in _0x12bbbd)throw new _0x44a22b(_0x2cdf1b(0x120),_0x2e4d20,{'conflictingDefinitions':[_0x1ceb77,_0x12bbbd[_0x1ceb77[_0x2cdf1b(0x147)]]]});_0x12bbbd[_0x1ceb77[_0x2cdf1b(0x147)]]=_0x1ceb77,_0x288ebb[_0x2cdf1b(0x13f)](_0x1ceb77[_0x2cdf1b(0x147)],0x0,_0x1ceb77);}else _0x288ebb[_0x2cdf1b(0x1a7)](_0x1ceb77);return _0x288ebb;}
|
|
23
|
+
const _0x54e6bc=_0x2f4d;(function(_0x2a6366,_0x5ce369){const _0x30130c=_0x2f4d,_0x34569a=_0x2a6366();while(!![]){try{const _0x25b53b=parseInt(_0x30130c(0x121))/0x1*(parseInt(_0x30130c(0x10b))/0x2)+-parseInt(_0x30130c(0x14a))/0x3*(parseInt(_0x30130c(0xe6))/0x4)+parseInt(_0x30130c(0x142))/0x5+parseInt(_0x30130c(0xef))/0x6+-parseInt(_0x30130c(0x15c))/0x7*(-parseInt(_0x30130c(0x13d))/0x8)+parseInt(_0x30130c(0x16b))/0x9*(-parseInt(_0x30130c(0x114))/0xa)+-parseInt(_0x30130c(0x14b))/0xb;if(_0x25b53b===_0x5ce369)break;else _0x34569a['push'](_0x34569a['shift']());}catch(_0x294585){_0x34569a['push'](_0x34569a['shift']());}}}(_0x142f,0x1f149));import{Plugin as _0x35513d}from'ckeditor5/src/core.js';import{IconMagicWand as _0x36fbcd,IconRobotPencil as _0x10b78c}from'ckeditor5/src/icons.js';import{first as _0x4bf260,CKEditorError as _0x39a8f4}from'ckeditor5/src/utils.js';import{createDropdown as _0x3fc6f8,addMenuToDropdown as _0x328540,ButtonView as _0x401623,MenuBarMenuListItemButtonView as _0x24efa2,Dialog as _0x183451,DialogViewPosition as _0x4e4794,MenuBarMenuView as _0x48f30b,MenuBarMenuListView as _0xa52a22,MenuBarMenuListItemView as _0x373a5b}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x12312e,UNGROUPED_COMMANDS_GROUP_ID as _0x3c86da}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x41ed49}from'./aiassistantediting.js';import{AIAdapter as _0x371142}from'./adapters/aiadapter.js';import{getTranslation as _0x35020c}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x2ac7a8}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x2c10b1}from'./ui/aiassistantcontroller.js';function _0x142f(){const _0x682d93=['_dialog','EDITOR_TOP_SIDE','includes','aiLicenseKeyInvalid','editing','replaceContent','view','_aiAssistantController','AI\x20is\x20writing','aiCommands','update','items','change:value','requires','push','change:isError','commands','_populateMenuBarMenu','getSelectedElement','fire','errorView','_uiCssClasses','listenTo','menuBar:aiAssistant','replace','delegate','isOn','menuPanelClass','menuView','Error\x20during\x20AI\x20content\x20generation:\x20%0','hideFakeVisualSelection','ai.aiAssistant.commands','_aiAdapter','isEnabled','892KvaevZ','model','setSelection','DataTransfer','isOfficialPlugin','order','isPremiumPlugin','editor','\x20ck-ai-assistant-ui_theme','1209252bTgLqo','groupId','custom','_getResolvedCommandsDefinitions','componentFactory','trim','selection','bind','ck-ai-assistant-button\x20','showUI','textAdapter','AIAssistantUI','buttonView','splice','schema','prompt','AI\x20Assistant','promptView','REPLACE','menuBar:aiCommands','updateView','invalid','getLimitElement','length','licenseKey','wasMoved','ai-commands-config-order-collision','change','382370nQlAeW','from','ck-ai-assistant-ui','sort','destroy','_createAIAssistantUIButton','showFakeVisualSelection','hide','usageLimit','1580290WsddIL','define','change:enabledCommandsIds','source','plugins','focus','isFlat','ai.aiAssistant.disabledElements','aiLicenseKeyUsageLimit','ai.useTheme','updatePosition','enabledCommandsIds','aiLicenseKeyNotAllowed','1DYECGh','trialLimit','text','buttons','add','media','label','forEach','body','getSelectedBlocks','aiLicenseKeyDomainLimit','AIAssistant','INSERT','show','featureNotAllowed','aiLicenseKeyTrialLimit','_commandDefinitions','aiLicenseKeyEvaluationLimit','showAIAssistant','Generated\x20content:\x20%0','ai.aiAssistant.contentAreaCssClass','filter','_getMenuBarGroupButtons','tableOfContents','polite','getRanges','menuitemcheckbox','document','16136kdEJnl','_formView','groupLabel','render','hideUI','1004505OKOxku','reset','command:','text/html','rawHtml','contentArea','map','values','1257bSfYpJ','3650273OmSuhw','set','_initView','children','isCollapsed','get','getData','currentContext','insertContentBelow','fieldView','_initAriaAiStatusChangeAnnouncements','announce','requiresContent','config','_showLicenseError','panelView','_licenseKeyCheckInterval','406otrLkQ','AI\x20Commands','addMany','insertContent','pluginName','aiAssistant','init','queryView','expired','once','<p>','domainLimit','comment','_onExecute','ck-ai-commands-dropdown\x20','9NILKHY','change:isProcessing','aiLicenseKeyExpired','_forceMarkersCopy','aiLicenseKeyValid','locale','execute','copy','evaluationLimit','</p>'];_0x142f=function(){return _0x682d93;};return _0x142f();}import{AIFormView as _0x1145cc}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0xb2825f}from'./ui/form/aiformtoolbarview.js';import'../theme/ai.css';import'../theme/ai-dropdown.css';function _0x2f4d(_0x7bb00a,_0x5c1675){const _0x142f24=_0x142f();return _0x2f4d=function(_0x2f4d4d,_0x4f525c){_0x2f4d4d=_0x2f4d4d-0xc5;let _0x5dc2d9=_0x142f24[_0x2f4d4d];return _0x5dc2d9;},_0x2f4d(_0x7bb00a,_0x5c1675);}import'../theme/ai-form.css';const l=globalThis[_0x54e6bc(0xe9)];import{ClipboardMarkersUtils as _0x3aa9be}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x486eba,ViewDataTransfer as _0x5d8eb6}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x35513d{[_0x54e6bc(0x107)];[_0x54e6bc(0x15b)];[_0x54e6bc(0x175)];[_0x54e6bc(0x13e)];[_0x54e6bc(0xe4)];[_0x54e6bc(0xcb)];[_0x54e6bc(0xd9)]='';static get[_0x54e6bc(0x160)](){const _0x9df887=_0x54e6bc;return _0x9df887(0xfa);}static get[_0x54e6bc(0xea)](){return!0x0;}static get[_0x54e6bc(0xec)](){return!0x0;}static get[_0x54e6bc(0xd1)](){return[_0x3aa9be,_0x41ed49,_0x371142,_0x183451];}constructor(_0x497d80){const _0x1137ed=_0x54e6bc;super(_0x497d80),_0x497d80[_0x1137ed(0x158)][_0x1137ed(0x115)](_0x1137ed(0x11b),[_0x1137ed(0x126),_0x1137ed(0x146),_0x1137ed(0x138)]),_0x497d80[_0x1137ed(0x158)][_0x1137ed(0x115)](_0x1137ed(0x135),''),_0x497d80[_0x1137ed(0x158)][_0x1137ed(0x115)](_0x1137ed(0x11d),!0x0),this[_0x1137ed(0xd9)]=_0x1137ed(0x10d)+(_0x497d80[_0x1137ed(0x158)][_0x1137ed(0x150)](_0x1137ed(0x11d))?_0x1137ed(0xee):'');}[_0x54e6bc(0x162)](){const _0x4fc464=_0x54e6bc,{editor:_0x10d958}=this;this[_0x4fc464(0xe4)]=_0x10d958[_0x4fc464(0x118)][_0x4fc464(0x150)](_0x371142),this[_0x4fc464(0x175)]=_0x10d958[_0x4fc464(0x118)][_0x4fc464(0x150)](_0x183451),this[_0x4fc464(0x13e)]=null,this[_0x4fc464(0x131)]=this[_0x4fc464(0xf2)]();const _0x4e097d=new _0x2ac7a8(_0x10d958,Array[_0x4fc464(0x10c)](this[_0x4fc464(0x131)][_0x4fc464(0x149)]()));_0x10d958[_0x4fc464(0xd4)][_0x4fc464(0x125)](_0x4fc464(0x133),_0x4e097d),_0x10d958['ui'][_0x4fc464(0xf3)][_0x4fc464(0x125)](_0x4fc464(0xcd),_0x1c5e6e=>{const _0x1f29f2=_0x4fc464,_0x1f0bc7=_0x3fc6f8(_0x1c5e6e);return _0x1f0bc7[_0x1f29f2(0x14c)]({'class':_0x1f29f2(0x16a)+this[_0x1f29f2(0xd9)]}),_0x1f0bc7[_0x1f29f2(0xfb)][_0x1f29f2(0x14c)]({'label':_0x35020c(_0x1c5e6e,_0x1f29f2(0x15d)),'icon':_0x36fbcd,'tooltip':!0x0}),_0x1f0bc7['on'](_0x1f29f2(0x171),_0x547d7c=>this[_0x1f29f2(0x169)](_0x547d7c[_0x1f29f2(0x117)]['id'])),_0x328540(_0x1f0bc7,_0x10d958['ui'][_0x1f29f2(0xca)][_0x1f29f2(0x129)],function(_0x177568){const _0x203fbf=_0x1f29f2,_0x1f862f=_0x12312e(_0x177568[_0x203fbf(0x158)][_0x203fbf(0x150)](_0x203fbf(0xe3)),_0x177568[_0x203fbf(0x170)]),_0x1749c9=U(_0x177568,_0x1f862f)[_0x203fbf(0x136)](_0x416de2=>_0x416de2[_0x203fbf(0xd4)][_0x203fbf(0x106)]);if(0x1===_0x1749c9[_0x203fbf(0x106)])return U(_0x177568,_0x1749c9[0x0][_0x203fbf(0xd4)])[_0x203fbf(0x148)](_0x33a7b1=>({'id':_0x33a7b1['id'],'label':_0x33a7b1[_0x203fbf(0x127)]}));return _0x1749c9[_0x203fbf(0x148)](_0x45a37d=>{const _0x73e78e=_0x203fbf,{groupId:_0x4997e7,groupLabel:_0xf34a46,commands:_0x3b990b}=_0x45a37d,_0x4d4154=U(_0x177568,_0x3b990b)[_0x73e78e(0x148)](_0x5bfd18=>({'id':_0x5bfd18['id'],'label':_0x5bfd18[_0x73e78e(0x127)]}));return{'id':_0x4997e7,'menu':_0xf34a46||_0x4997e7,'children':_0x4d4154};});}(_0x10d958),{'ariaLabel':_0x35020c(_0x1c5e6e,_0x1f29f2(0x15d))}),_0x1f0bc7[_0x1f29f2(0xe0)][_0x1f29f2(0xdf)]=_0x1f29f2(0x16a)+this[_0x1f29f2(0xd9)],_0x4e097d['on'](_0x1f29f2(0x116),_0x22031a),_0x1f0bc7[_0x1f29f2(0xe0)][_0x1f29f2(0x165)](_0x1f29f2(0x140),_0x22031a),_0x1f0bc7;function _0x22031a(){const _0x58653a=_0x1f29f2;_0x1f0bc7[_0x58653a(0xe5)]=_0x4e097d[_0x58653a(0x11f)][_0x58653a(0x106)]>0x0;for(const _0x53de08 of _0x1f0bc7[_0x58653a(0xe0)][_0x58653a(0x124)])_0x53de08[_0x58653a(0xe5)]=_0x4e097d[_0x58653a(0x11f)][_0x58653a(0xc6)](_0x53de08['id']);}}),_0x10d958['ui'][_0x4fc464(0xf3)][_0x4fc464(0x125)](_0x4fc464(0x102),_0xf0007e=>{const _0x180068=_0x4fc464,_0xc0205b=new _0x48f30b(_0xf0007e);_0xc0205b[_0x180068(0xfb)][_0x180068(0x14c)]({'label':_0x35020c(_0xf0007e,_0x180068(0x15d)),'icon':_0x36fbcd}),_0xc0205b[_0x180068(0xf6)](_0x180068(0xe5))['to'](_0x4e097d,_0x180068(0x11f),_0x5c2835=>_0x5c2835[_0x180068(0x106)]>0x0);const _0x33c425=_0x12312e(_0x10d958[_0x180068(0x158)][_0x180068(0x150)](_0x180068(0xe3)),_0xf0007e);return this[_0x180068(0xd5)](_0x4e097d,_0xc0205b,_0x33c425,_0x25dfe8=>this[_0x180068(0x169)](_0x25dfe8)),_0xc0205b;}),_0x10d958['ui'][_0x4fc464(0xf3)][_0x4fc464(0x125)](_0x4fc464(0x161),()=>{const _0x290f98=_0x4fc464,_0x4d3a7e=this[_0x290f98(0x110)](_0x401623);return _0x4d3a7e[_0x290f98(0x14c)]({'tooltip':!0x0,'class':_0x290f98(0xf7)+this[_0x290f98(0xd9)]}),_0x4d3a7e;}),_0x10d958['ui'][_0x4fc464(0xf3)][_0x4fc464(0x125)](_0x4fc464(0xdb),()=>{const _0x247194=_0x4fc464,_0x1e22de=this[_0x247194(0x110)](_0x24efa2);return _0x1e22de[_0x247194(0x14c)]({'role':_0x247194(0x13b)}),_0x1e22de;}),this[_0x4fc464(0x107)]=this[_0x4fc464(0xed)][_0x4fc464(0x158)][_0x4fc464(0x150)](_0x4fc464(0x107));const _0x4ab8d7=this[_0x4fc464(0xed)];this[_0x4fc464(0x15b)]=setInterval(()=>{const _0x373111=_0x4fc464;let _0x5273ca;for(const _0x30fe5c in _0x4ab8d7){const _0xdf3f74=_0x30fe5c,_0x4b7937=_0x4ab8d7[_0xdf3f74];if(_0x373111(0x16f)==_0x4b7937||_0x373111(0xc7)==_0x4b7937||_0x373111(0x16d)==_0x4b7937||_0x373111(0x12b)==_0x4b7937||_0x373111(0x120)==_0x4b7937||_0x373111(0x132)==_0x4b7937||_0x373111(0x130)==_0x4b7937||_0x373111(0x11c)==_0x4b7937){delete _0x4ab8d7[_0xdf3f74],_0x5273ca=_0x4b7937,clearInterval(this[_0x373111(0x15b)]),this[_0x373111(0x15b)]=void 0x0;break;}}_0x373111(0xc7)==_0x5273ca&&_0x4ab8d7[_0x373111(0x159)](_0x373111(0x104)),_0x373111(0x16d)==_0x5273ca&&_0x4ab8d7[_0x373111(0x159)](_0x373111(0x164)),_0x373111(0x12b)==_0x5273ca&&_0x4ab8d7[_0x373111(0x159)](_0x373111(0x167)),_0x373111(0x120)==_0x5273ca&&_0x4ab8d7[_0x373111(0x159)](_0x373111(0x12f),_0x373111(0x12c)),_0x373111(0x132)==_0x5273ca&&_0x4ab8d7[_0x373111(0x159)](_0x373111(0x173)),_0x373111(0x130)==_0x5273ca&&_0x4ab8d7[_0x373111(0x159)](_0x373111(0x122)),_0x373111(0x11c)==_0x5273ca&&_0x4ab8d7[_0x373111(0x159)](_0x373111(0x113));},0x3e8);}[_0x54e6bc(0x10f)](){const _0x193d1d=_0x54e6bc;super[_0x193d1d(0x10f)](),this[_0x193d1d(0x15b)]&&clearInterval(this[_0x193d1d(0x15b)]);}[_0x54e6bc(0xf8)](_0x953c3a='',_0x2560c6='',_0x547c03=_0x54e6bc(0xf1)){const _0x4974e7=_0x54e6bc,_0x435208=this[_0x4974e7(0xed)],_0x494548=_0x435208[_0x4974e7(0xc8)][_0x4974e7(0xca)],_0x33c723=_0x435208[_0x4974e7(0x118)][_0x4974e7(0x150)](_0x41ed49),_0x20819e=_0x435208[_0x4974e7(0x118)][_0x4974e7(0x150)](_0x3aa9be);_0x33c723[_0x4974e7(0x111)]();const _0x4595b7=new l(),_0x38c24d=new ClipboardEvent(_0x4974e7(0x172),{'clipboardData':_0x4595b7}),_0x21c3b1=new _0x5d8eb6(_0x4595b7),_0x150fbb=new _0x486eba(_0x494548,_0x38c24d,{'dataTransfer':_0x21c3b1});_0x20819e[_0x4974e7(0x16e)](_0x4974e7(0x168),()=>{const _0x3ca98b=_0x4974e7;_0x494548[_0x3ca98b(0x13c)][_0x3ca98b(0xd7)](_0x3ca98b(0x172),_0x150fbb);}),this[_0x4974e7(0x13e)]||(this[_0x4974e7(0x14d)](),this[_0x4974e7(0xcb)]=new _0x2c10b1(_0x435208,this[_0x4974e7(0xe4)][_0x4974e7(0xf9)],this[_0x4974e7(0x13e)]));let _0x6d7c4e=_0x21c3b1[_0x4974e7(0x151)](_0x4974e7(0x145));const _0x1c071d=_0x435208[_0x4974e7(0xe7)][_0x4974e7(0x13c)][_0x4974e7(0xf5)],_0x1b6066=Array[_0x4974e7(0x10c)](_0x1c071d[_0x4974e7(0x13a)]());0x1===_0x1b6066[_0x4974e7(0x106)]&&_0x1b6066[0x0][_0x4974e7(0x11a)]&&!_0x1c071d[_0x4974e7(0xd6)]()&&''!==_0x6d7c4e[_0x4974e7(0xdc)](/ /g,'')[_0x4974e7(0xf4)]()&&(_0x6d7c4e=_0x4974e7(0x166)+_0x6d7c4e+_0x4974e7(0x174)),this[_0x4974e7(0xcb)][_0x4974e7(0x103)]({'actionId':_0x547c03,'query':_0x953c3a,'htmlContent':_0x6d7c4e,'label':_0x2560c6,'mainActionLabel':_0xb2825f[_0x435208[_0x4974e7(0xe7)][_0x4974e7(0x13c)][_0x4974e7(0xf5)][_0x4974e7(0x14f)]?_0x4974e7(0x12d):_0x4974e7(0x101)]}),_0x4974e7(0x161)!==this[_0x4974e7(0x175)]['id']?this[_0x4974e7(0x175)][_0x4974e7(0x12e)]({'id':_0x4974e7(0x161),'icon':_0x10b78c,'title':_0x35020c(this[_0x4974e7(0xed)][_0x4974e7(0x170)],_0x4974e7(0xff)),'content':this[_0x4974e7(0x13e)],'position':_0x4e4794[_0x4974e7(0xc5)],'onShow':()=>{const _0x3d0e0c=_0x4974e7;this[_0x3d0e0c(0x13e)][_0x3d0e0c(0x119)]();},'onHide':()=>{const _0x461909=_0x4974e7;this[_0x461909(0xcb)][_0x461909(0x143)](),_0x33c723[_0x461909(0xe2)]();}}):this[_0x4974e7(0x175)][_0x4974e7(0xca)][_0x4974e7(0x108)]||this[_0x4974e7(0x175)][_0x4974e7(0xca)][_0x4974e7(0x11e)]();}[_0x54e6bc(0x141)](){const _0x23e236=_0x54e6bc;this[_0x23e236(0x175)][_0x23e236(0x112)]();}[_0x54e6bc(0xf2)](){const _0x212c54=_0x54e6bc,_0x3e42c3=new Map(),_0x5f4d67=_0x12312e(this[_0x212c54(0xed)][_0x212c54(0x158)][_0x212c54(0x150)](_0x212c54(0xe3)),this[_0x212c54(0xed)][_0x212c54(0x170)]);for(const _0x380adf of _0x5f4d67)for(const _0x87cbe4 of _0x380adf[_0x212c54(0xd4)])_0x3e42c3[_0x212c54(0x14c)](_0x87cbe4['id'],{..._0x87cbe4,'groupId':_0x380adf[_0x212c54(0xf0)],'groupLabel':_0x380adf[_0x212c54(0x13f)]||_0x380adf[_0x212c54(0xf0)]});return _0x3e42c3;}[_0x54e6bc(0x110)](_0x26f3e1){const _0x25d35d=_0x54e6bc,_0x173af9=this[_0x25d35d(0xed)],_0x3107d8=_0x173af9[_0x25d35d(0xd4)][_0x25d35d(0x150)](_0x25d35d(0x133)),_0x2dcf89=new _0x26f3e1(_0x173af9[_0x25d35d(0x170)]);return _0x2dcf89[_0x25d35d(0x14c)]({'label':_0x35020c(_0x173af9[_0x25d35d(0x170)],_0x25d35d(0xff)),'icon':_0x10b78c,'isToggleable':!0x0}),_0x2dcf89[_0x25d35d(0xf6)](_0x25d35d(0xe5))['to'](_0x3107d8),_0x2dcf89[_0x25d35d(0xf6)](_0x25d35d(0xde))['to'](this[_0x25d35d(0x175)],'id',_0x59a1e7=>_0x25d35d(0x161)===_0x59a1e7),this[_0x25d35d(0xda)](_0x2dcf89,_0x25d35d(0x171),()=>{const _0x3355ca=_0x25d35d;_0x2dcf89[_0x3355ca(0xde)]?this[_0x3355ca(0x141)]():_0x3107d8[_0x3355ca(0x171)]();}),_0x2dcf89;}[_0x54e6bc(0x14d)](){const _0x4cfabb=_0x54e6bc,_0x2d0282=this[_0x4cfabb(0xed)][_0x4cfabb(0x118)][_0x4cfabb(0x150)](_0x41ed49);this[_0x4cfabb(0x13e)]=new _0x1145cc(this[_0x4cfabb(0xed)][_0x4cfabb(0x170)],this[_0x4cfabb(0xd9)],this[_0x4cfabb(0xed)][_0x4cfabb(0x158)][_0x4cfabb(0x150)](_0x4cfabb(0x135))),this[_0x4cfabb(0x13e)]['on'](_0x4cfabb(0xd0),()=>{const _0xd07f84=_0x4cfabb;this[_0xd07f84(0x175)][_0xd07f84(0xca)][_0xd07f84(0x108)]||this[_0xd07f84(0x175)][_0xd07f84(0xca)][_0xd07f84(0x11e)]();}),this[_0x4cfabb(0x13e)][_0x4cfabb(0x100)][_0x4cfabb(0x163)][_0x4cfabb(0x154)]['on'](_0x4cfabb(0xce),()=>{const _0x2f1437=_0x4cfabb;this[_0x2f1437(0x175)][_0x2f1437(0xca)][_0x2f1437(0x108)]||this[_0x2f1437(0x175)][_0x2f1437(0xca)][_0x2f1437(0x11e)]();}),this[_0x4cfabb(0xda)](this[_0x4cfabb(0x13e)],_0x4cfabb(0xc9),()=>{const _0x8816ea=_0x4cfabb;_0x2d0282[_0x8816ea(0x15f)](this[_0x8816ea(0xcb)][_0x8816ea(0x152)]),this[_0x8816ea(0x141)]();}),this[_0x4cfabb(0xda)](this[_0x4cfabb(0x13e)],_0x4cfabb(0x153),()=>{const _0x17f434=_0x4cfabb;_0x2d0282[_0x17f434(0x153)](this[_0x17f434(0xcb)][_0x17f434(0x152)]),this[_0x17f434(0x141)]();}),this[_0x4cfabb(0x155)]();}[_0x54e6bc(0x155)](){const _0x1569fc=_0x54e6bc,{locale:_0x300951,ui:{ariaLiveAnnouncer:_0x4cd342}}=this[_0x1569fc(0xed)];this[_0x1569fc(0x13e)][_0x1569fc(0x147)]['on'](_0x1569fc(0x16c),(_0x1f1a1c,_0xece4e8,_0xb65f9e)=>{const _0xe6da18=_0x1569fc,_0x505bdf=this[_0xe6da18(0xcb)][_0xe6da18(0x152)];_0xb65f9e?_0x4cd342[_0xe6da18(0x156)](_0x35020c(_0x300951,_0xe6da18(0xcc))):_0x505bdf&&_0x4cd342[_0xe6da18(0x156)](_0x35020c(_0x300951,_0xe6da18(0x134),_0x505bdf),{'politeness':_0xe6da18(0x139),'isUnsafeHTML':!0x0});}),this[_0x1569fc(0x13e)]['on'](_0x1569fc(0xd3),(_0x316955,_0x5746ed,_0x1ba5c1)=>{const _0x1f4532=_0x1569fc;if(_0x1ba5c1){const _0x5af92f=this[_0x1f4532(0x13e)][_0x1f4532(0xd8)][_0x1f4532(0x123)];_0x4cd342[_0x1f4532(0x156)](_0x35020c(_0x300951,_0x1f4532(0xe1),_0x5af92f));}});}[_0x54e6bc(0x169)](_0x9b8477){const _0x423d76=_0x54e6bc,_0x303dda=this[_0x423d76(0x131)][_0x423d76(0x150)](_0x9b8477),_0x4f9fc4=this[_0x423d76(0xed)],_0x51ae51=_0x4f9fc4[_0x423d76(0xe7)][_0x423d76(0x13c)][_0x423d76(0xf5)],_0x46e309=_0x4f9fc4[_0x423d76(0xd4)][_0x423d76(0x150)](_0x423d76(0x133)),_0x51490f=_0x4f9fc4[_0x423d76(0x118)][_0x423d76(0x150)](_0x41ed49),_0x11273f=''+(_0x303dda[_0x423d76(0xf0)]!==_0x3c86da?_0x303dda[_0x423d76(0x13f)]+':\x20':'')+_0x303dda[_0x423d76(0x127)];if(!0x1!==_0x303dda[_0x423d76(0x157)]&&_0x51ae51[_0x423d76(0x14f)]){const _0x383df5=_0x4bf260(_0x51ae51[_0x423d76(0x12a)]())||_0x4f9fc4[_0x423d76(0xe7)][_0x423d76(0xfd)][_0x423d76(0x105)](_0x51ae51);_0x4f9fc4[_0x423d76(0xe7)][_0x423d76(0x10a)](_0x25994e=>{const _0x3af243=_0x423d76;_0x25994e[_0x3af243(0xe8)](_0x383df5,'in');});}_0x51490f[_0x423d76(0x111)](),_0x46e309[_0x423d76(0x171)](_0x303dda[_0x423d76(0xfe)],_0x11273f,_0x423d76(0x144)+_0x9b8477);}[_0x54e6bc(0xd5)](_0x174a33,_0x2f008e,_0x13b59d,_0x5701e8){const _0x51b7fd=_0x54e6bc,_0x11c36f=this[_0x51b7fd(0xed)],_0x56721e=_0x11c36f[_0x51b7fd(0x170)],_0x42b580=new _0xa52a22(_0x56721e),_0x335257=U(_0x11c36f,_0x13b59d)[_0x51b7fd(0x136)](_0x2d7403=>_0x2d7403[_0x51b7fd(0xd4)][_0x51b7fd(0x106)]);0x1===_0x335257[_0x51b7fd(0x106)]?this[_0x51b7fd(0x137)]({'command':_0x174a33,'commands':_0x335257[0x0][_0x51b7fd(0xd4)],'parentMenuView':_0x2f008e,'onExecute':_0x5701e8})[_0x51b7fd(0x128)](_0x5160bb=>_0x42b580[_0x51b7fd(0xcf)][_0x51b7fd(0x125)](_0x5160bb)):_0x335257[_0x51b7fd(0x128)](({groupId:_0x4fe000,groupLabel:_0x1004f3,commands:_0x114a75})=>{const _0x5c428f=_0x51b7fd,_0xf9898d=new _0x373a5b(_0x56721e,_0x2f008e),_0x530b23=new _0x48f30b(_0x56721e),_0x5208e9=new _0xa52a22(_0x56721e),_0x30475e=this[_0x5c428f(0x137)]({'command':_0x174a33,'commands':_0x114a75,'parentMenuView':_0x530b23,'onExecute':_0x5701e8});_0x530b23[_0x5c428f(0xfb)][_0x5c428f(0x14c)]({'label':_0x1004f3||_0x4fe000}),_0x530b23[_0x5c428f(0xdd)](_0x5c428f(0x171))['to'](_0x2f008e),_0x5208e9[_0x5c428f(0xcf)][_0x5c428f(0x15e)](_0x30475e),_0x530b23[_0x5c428f(0x15a)][_0x5c428f(0x14e)][_0x5c428f(0x125)](_0x5208e9),_0xf9898d[_0x5c428f(0x14e)][_0x5c428f(0x125)](_0x530b23),_0x42b580[_0x5c428f(0xcf)][_0x5c428f(0x125)](_0xf9898d);}),_0x2f008e[_0x51b7fd(0x15a)][_0x51b7fd(0x14e)][_0x51b7fd(0x125)](_0x42b580);}[_0x54e6bc(0x137)]({command:_0x1d1660,commands:_0x1295e2,parentMenuView:_0x2848f4,onExecute:_0xe36829}){const _0x2ae555=_0x54e6bc,_0xa0022e=this[_0x2ae555(0xed)],_0x3571d5=_0xa0022e[_0x2ae555(0x170)];return U(_0xa0022e,_0x1295e2)[_0x2ae555(0x148)](_0x431141=>{const _0x55de5c=_0x2ae555,_0xf18682=new _0x373a5b(_0x3571d5,_0x2848f4),_0x2f66b7=new _0x24efa2(_0x3571d5);return _0x2f66b7[_0x55de5c(0x14c)]({'label':_0x431141[_0x55de5c(0x127)]}),_0x2f66b7[_0x55de5c(0xdd)](_0x55de5c(0x171))['to'](_0x2848f4),_0x2f66b7['on'](_0x55de5c(0x171),()=>_0xe36829(_0x431141['id'])),_0x2f66b7[_0x55de5c(0xf6)](_0x55de5c(0xe5))['to'](_0x1d1660,_0x55de5c(0x11f),_0x20971a=>_0x20971a[_0x55de5c(0xc6)](_0x431141['id'])),_0xf18682[_0x55de5c(0x14e)][_0x55de5c(0x125)](_0x2f66b7),_0xf18682;});}}function T(_0x5bf9f1,_0x3e7b8c){const _0x2e1e54=_0x54e6bc;return void 0x0!==_0x5bf9f1[_0x2e1e54(0xeb)]&&void 0x0===_0x3e7b8c[_0x2e1e54(0xeb)]?0x1:void 0x0===_0x5bf9f1[_0x2e1e54(0xeb)]&&void 0x0!==_0x3e7b8c[_0x2e1e54(0xeb)]?-0x1:void 0x0!==_0x5bf9f1[_0x2e1e54(0xeb)]&&void 0x0!==_0x3e7b8c[_0x2e1e54(0xeb)]?_0x5bf9f1[_0x2e1e54(0xeb)]-_0x3e7b8c[_0x2e1e54(0xeb)]:0x0;}function U(_0x2f61f2,_0x68f56a){const _0x1ef9a3=_0x54e6bc;_0x68f56a[_0x1ef9a3(0x10e)](T);const _0x5a4d86={},_0x47d8b5=[];for(const _0x573a91 of _0x68f56a)if(void 0x0!==_0x573a91[_0x1ef9a3(0xeb)]){if(_0x573a91[_0x1ef9a3(0xeb)]in _0x5a4d86)throw new _0x39a8f4(_0x1ef9a3(0x109),_0x2f61f2,{'conflictingDefinitions':[_0x573a91,_0x5a4d86[_0x573a91[_0x1ef9a3(0xeb)]]]});_0x5a4d86[_0x573a91[_0x1ef9a3(0xeb)]]=_0x573a91,_0x47d8b5[_0x1ef9a3(0xfc)](_0x573a91[_0x1ef9a3(0xeb)],0x0,_0x573a91);}else _0x47d8b5[_0x1ef9a3(0xd2)](_0x573a91);return _0x47d8b5;}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4fb04a,_0x1202e0){var _0x4c4b88=_0x497f,_0x19a562=_0x4fb04a();while(!![]){try{var _0x23145e=-parseInt(_0x4c4b88(0x133))/0x1*(-parseInt(_0x4c4b88(0x131))/0x2)+parseInt(_0x4c4b88(0x12e))/0x3*(parseInt(_0x4c4b88(0x12c))/0x4)+parseInt(_0x4c4b88(0x132))/0x5+parseInt(_0x4c4b88(0x12d))/0x6+parseInt(_0x4c4b88(0x12f))/0x7+parseInt(_0x4c4b88(0x135))/0x8*(-parseInt(_0x4c4b88(0x130))/0x9)+-parseInt(_0x4c4b88(0x134))/0xa;if(_0x23145e===_0x1202e0)break;else _0x19a562['push'](_0x19a562['shift']());}catch(_0x4a8ad2){_0x19a562['push'](_0x19a562['shift']());}}}(_0x1ebb,0xafdc6));export{AIAssistant,getDefaultAICommands}from'./aiassistant.js';export{AIAssistantUI}from'./aiassistantui.js';export{AIAdapter,AIRequestError}from'./adapters/aiadapter.js';export{AITextAdapter}from'./adapters/aitextadapter.js';function _0x1ebb(){var _0x519bb4=['11889UcoZxo','848015ZGzCdu','780777wpgrsX','50ddcWwK','5105510gayEwj','21557IfwlSo','25534450ZwrNbJ','48ppEUGt','912GWGXqf','7257318kGfIXB'];_0x1ebb=function(){return _0x519bb4;};return _0x1ebb();}function _0x497f(_0x2f3e4c,_0x587c95){var _0x1ebb41=_0x1ebb();return _0x497f=function(_0x497f3c,_0x235013){_0x497f3c=_0x497f3c-0x12c;var _0x22ba39=_0x1ebb41[_0x497f3c];return _0x22ba39;},_0x497f(_0x2f3e4c,_0x587c95);}export{OpenAITextAdapter}from'./adapters/openaitextadapter.js';export{AWSTextAdapter}from'./adapters/awstextadapter.js';export{ShowAIAssistantCommand}from'./ui/showaiassistantcommand.js';import'./augmentation.js';
|
package/src/legacyerrors.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x1e8300,_0x97e48d){var _0x38a6ae=_0x29bc,_0x629b54=_0x1e8300();while(!![]){try{var _0x228140=-parseInt(_0x38a6ae(0x197))/0x1+parseInt(_0x38a6ae(0x19c))/0x2+parseInt(_0x38a6ae(0x19e))/0x3*(parseInt(_0x38a6ae(0x195))/0x4)+-parseInt(_0x38a6ae(0x198))/0x5*(-parseInt(_0x38a6ae(0x199))/0x6)+parseInt(_0x38a6ae(0x196))/0x7+parseInt(_0x38a6ae(0x19a))/0x8+-parseInt(_0x38a6ae(0x19b))/0x9*(parseInt(_0x38a6ae(0x19d))/0xa);if(_0x228140===_0x97e48d)break;else _0x629b54['push'](_0x629b54['shift']());}catch(_0x5c3b15){_0x629b54['push'](_0x629b54['shift']());}}}(_0x53d7,0x41f83));import{CKEditorError as _0x5a104e}from'ckeditor5/src/utils.js';function _0x29bc(_0x37332d,_0x1e5b0a){var _0x53d767=_0x53d7();return _0x29bc=function(_0x29bc16,_0x4aed7b){_0x29bc16=_0x29bc16-0x195;var _0x5befb7=_0x53d767[_0x29bc16];return _0x5befb7;},_0x29bc(_0x37332d,_0x1e5b0a);}function _0x53d7(){var _0x37df0f=['162qBgdYa','2688224zVWWuw','9oiThCj','30580WHbOil','2091120qOgTHH','126mzZMLW','16288BfKSpD','929719magmvG','336189UgYGyI','29695NjZjxF'];_0x53d7=function(){return _0x37df0f;};return _0x53d7();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
24
|
-
|
|
23
|
+
function _0x35d1(){const _0x4f77e5=['currentResponse','486423drFWdK','text/html','querySelector','substring','```html','```','destroy','set:currentContext','editing','config','trim','isRendered','serializeToString','stopProcessing','markers','isProcessing','from','remove','_normalizeResponseHeadings','value','_stripMarkdownSyntax','data','length','catch','_parseAndNormalizeContent','reset','mainAction','updateView','processor','712302gpSglM','stopListening','body','handleError','submitPrompt','703252cxYxoR','then','custom','name','abort','<h1></h1>','30UAmLIc','finishProcessing','domConverter','element','makeRequest','stringify','get','nodeType','finally','textAdapter','reverse','11CNWQbW','_sanitizeHTML','previousActionId','message','4792XutaBF','listenTo','ai.aiAssistant.preserveComments','prompt','htmlProcessor','startsWith','43897hNGuCf','249134SWxynp','_xmlSerializer','innerHTML','previousContext','once','exec','toView','childNodes','_handleQuery','currentContext','_sanitizationContainer','_isH1TagSupportEnabled','parseFromString','startProcessing','set','document','25clAYII','view','render','initialContext','endsWith','match','105fZRhrt','toModel','ELEMENT_NODE','_domParser','clear','createElement','previousLabel','tryAgainEvent','push','rename','editor','4612044gDkdNK','div','464SsdPNo','viewToDom','setContentOf','previousQuery'];_0x35d1=function(){return _0x4f77e5;};return _0x35d1();}const _0x195a6c=_0x3264;function _0x3264(_0x343a49,_0x3b5132){const _0x35d1d6=_0x35d1();return _0x3264=function(_0x32648f,_0x4209ca){_0x32648f=_0x32648f-0x83;let _0x4a7a35=_0x35d1d6[_0x32648f];return _0x4a7a35;},_0x3264(_0x343a49,_0x3b5132);}(function(_0x5b9f6a,_0x186764){const _0x328ee0=_0x3264,_0x21b667=_0x5b9f6a();while(!![]){try{const _0x34bad4=-parseInt(_0x328ee0(0x96))/0x1+-parseInt(_0x328ee0(0x8f))/0x2*(-parseInt(_0x328ee0(0xac))/0x3)+parseInt(_0x328ee0(0xe0))/0x4+-parseInt(_0x328ee0(0xa6))/0x5*(parseInt(_0x328ee0(0xdb))/0x6)+parseInt(_0x328ee0(0x95))/0x7*(parseInt(_0x328ee0(0xb9))/0x8)+parseInt(_0x328ee0(0xbe))/0x9*(parseInt(_0x328ee0(0xe6))/0xa)+parseInt(_0x328ee0(0x8b))/0xb*(parseInt(_0x328ee0(0xb7))/0xc);if(_0x34bad4===_0x186764)break;else _0x21b667['push'](_0x21b667['shift']());}catch(_0x3c6edf){_0x21b667['push'](_0x21b667['shift']());}}}(_0x35d1,0x4fdee));import{ObservableMixin as _0x5b90f5}from'ckeditor5/src/utils.js';import{AIRequestError as _0x59eb70}from'../adapters/aiadapter.js';import{Matcher as _0x1b13d7,ViewUpcastWriter as _0x5d3497}from'ckeditor5/src/engine.js';const Q=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5b90f5(){[_0x195a6c(0xb6)];[_0x195a6c(0x89)];[_0x195a6c(0xa7)];[_0x195a6c(0xa0)];[_0x195a6c(0xaf)];[_0x195a6c(0x97)];constructor(_0x1f846d,_0x31d6c5,_0x41debb){const _0x3f2031=_0x195a6c;super(),this[_0x3f2031(0xb6)]=_0x1f846d,this[_0x3f2031(0x89)]=_0x31d6c5,this[_0x3f2031(0xa0)]=document[_0x3f2031(0xb1)](_0x3f2031(0xb8)),this[_0x3f2031(0xaf)]=new DOMParser(),this[_0x3f2031(0x97)]=new XMLSerializer(),this[_0x3f2031(0xa7)]=_0x41debb,this[_0x3f2031(0xa4)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x3f2031(0xc5),(_0x15862a,_0x3a1826,_0x3de261)=>{const _0x5b3a23=_0x3f2031;this[_0x5b3a23(0xa7)][_0x5b3a23(0xd1)]=this[_0x5b3a23(0x8c)](_0x3de261);}),this[_0x3f2031(0x90)](this[_0x3f2031(0xa7)],_0x3f2031(0xdf),(_0x4b8981,_0x990e21)=>{const _0x31afa8=_0x3f2031,_0x46baff=this[_0x31afa8(0x9f)]||this[_0x31afa8(0xa9)];this[_0x31afa8(0x9e)](_0x990e21,_0x46baff,_0x31afa8(0xe2));}),this[_0x3f2031(0x90)](this[_0x3f2031(0xa7)],_0x3f2031(0xb3),()=>{const _0x225ef8=_0x3f2031;this[_0x225ef8(0xa7)][_0x225ef8(0x92)]=this[_0x225ef8(0xb2)],this[_0x225ef8(0x9e)](this[_0x225ef8(0xbc)],this[_0x225ef8(0x99)],this[_0x225ef8(0x8d)],this[_0x225ef8(0xb2)]);}),this[_0x3f2031(0x90)](this[_0x3f2031(0xa7)],_0x3f2031(0xcb),()=>{const _0x384ba1=_0x3f2031;this[_0x384ba1(0xcb)]();});}[_0x195a6c(0xc4)](){const _0x22ef53=_0x195a6c;this[_0x22ef53(0xdc)]();}async[_0x195a6c(0xd9)]({actionId:_0x10156f,query:_0x422965,htmlContent:_0x31c107,label:_0x2f195d,mainActionLabel:_0x388866}){const _0x2dc7e1=_0x195a6c;this[_0x2dc7e1(0xa7)][_0x2dc7e1(0x92)]=_0x2f195d,this[_0x2dc7e1(0xa7)][_0x2dc7e1(0xd8)]=_0x388866,this[_0x2dc7e1(0xa9)]=_0x31c107,_0x422965&&(this[_0x2dc7e1(0xa7)][_0x2dc7e1(0xc9)]?this[_0x2dc7e1(0x9e)](_0x422965,_0x31c107,_0x10156f,_0x2f195d):this[_0x2dc7e1(0xa7)][_0x2dc7e1(0x9a)](_0x2dc7e1(0xa8),()=>{const _0x446255=_0x2dc7e1;this[_0x446255(0x9e)](_0x422965,_0x31c107,_0x10156f,_0x2f195d);}));}[_0x195a6c(0xcb)](){const _0x50e9eb=_0x195a6c;this[_0x50e9eb(0xcd)]&&(this[_0x50e9eb(0xcd)]=!0x1,this[_0x50e9eb(0xa7)][_0x50e9eb(0xe7)](),this[_0x50e9eb(0x89)][_0x50e9eb(0xe4)]());}[_0x195a6c(0xd7)](){const _0x44f167=_0x195a6c;this[_0x44f167(0xa9)]='',this[_0x44f167(0x9f)]='',this[_0x44f167(0xbd)]='',this[_0x44f167(0x99)]='',this[_0x44f167(0xbc)]='',this[_0x44f167(0xb2)]='',this[_0x44f167(0x8d)]=void 0x0,this[_0x44f167(0xa7)][_0x44f167(0xd7)](),this[_0x44f167(0xcb)]();}async[_0x195a6c(0x9e)](_0x617ace,_0x326b6f,_0x47615d,_0x5188d4){const _0xf1bd7b=_0x195a6c;return this[_0xf1bd7b(0xcd)]=!0x0,this[_0xf1bd7b(0xa7)][_0xf1bd7b(0xa3)](),this[_0xf1bd7b(0x99)]=_0x326b6f,this[_0xf1bd7b(0xbc)]=_0x617ace,this[_0xf1bd7b(0xb2)]=_0x5188d4||_0x617ace,this[_0xf1bd7b(0x8d)]=_0x47615d,new Promise(_0x5309e3=>{const _0x358355=_0xf1bd7b;this[_0x358355(0x89)][_0x358355(0x84)]({'query':_0x617ace,'context':_0x326b6f,'onData':_0xf93d08=>{const _0x302efb=_0x358355;this[_0x302efb(0xbd)]=_0xf93d08,this[_0x302efb(0x9f)]=this[_0x302efb(0xd6)](this[_0x302efb(0xbd)]);},'actionId':_0x47615d})[_0x358355(0xe1)](()=>{const _0x5e74a2=_0x358355;!this[_0x5e74a2(0x9f)]&&this[_0x5e74a2(0xbd)]&&(this[_0x5e74a2(0x9f)]=this[_0x5e74a2(0xd6)](this[_0x5e74a2(0xbd)],!0x0));})[_0x358355(0xd5)](_0x1d402f=>{const _0x32591a=_0x358355;_0x1d402f instanceof _0x59eb70?this[_0x32591a(0xa7)][_0x32591a(0xde)](_0x1d402f[_0x32591a(0x8e)]):this[_0x32591a(0xa7)][_0x32591a(0xde)](),_0x5309e3();})[_0x358355(0x88)](()=>{const _0x4ebe88=_0x358355;this[_0x4ebe88(0xcb)](),_0x5309e3();});});}[_0x195a6c(0xd6)](_0xb1504d,_0x41e70e=!0x1){const _0x5d6d87=_0x195a6c,_0x872e8b=Q[_0x5d6d87(0x9b)](_0xb1504d);_0xb1504d=_0x872e8b?_0xb1504d[_0x5d6d87(0xc1)](_0x872e8b[0x1][_0x5d6d87(0xd4)]):_0xb1504d[_0x5d6d87(0xd4)]<0x64&&!_0x41e70e?'':this[_0x5d6d87(0xd2)](_0xb1504d);const _0x3956ba=this[_0x5d6d87(0xaf)][_0x5d6d87(0xa2)](_0xb1504d,_0x5d6d87(0xbf));if(_0x872e8b){const _0xba344a=Array[_0x5d6d87(0xce)](_0x3956ba[_0x5d6d87(0xdd)][_0x5d6d87(0x9d)]);_0xba344a[_0x5d6d87(0x8a)]();for(const _0x28a9fc of _0xba344a){if(_0x28a9fc[_0x5d6d87(0x87)]==Node[_0x5d6d87(0xae)])break;_0x28a9fc[_0x5d6d87(0xcf)]();}}const _0x133eeb=this[_0x5d6d87(0xb6)][_0x5d6d87(0xd3)][_0x5d6d87(0xda)][_0x5d6d87(0x9c)](this[_0x5d6d87(0x97)][_0x5d6d87(0xca)](_0x3956ba[_0x5d6d87(0xdd)]));this[_0x5d6d87(0xa1)]()||this[_0x5d6d87(0xd0)](_0x133eeb);const _0x38005a=this[_0x5d6d87(0xb6)][_0x5d6d87(0xc7)][_0x5d6d87(0x86)](_0x5d6d87(0x91)),_0x4fbe8d=this[_0x5d6d87(0xb6)][_0x5d6d87(0xd3)][_0x5d6d87(0xad)](_0x133eeb);return _0x38005a||_0x4fbe8d[_0x5d6d87(0xcc)][_0x5d6d87(0xb0)](),this[_0x5d6d87(0xb6)][_0x5d6d87(0xd3)][_0x5d6d87(0x85)](_0x4fbe8d);}[_0x195a6c(0xd0)](_0x887a01){const _0x1f2f79=_0x195a6c,_0x126d9f=new _0x5d3497(this[_0x1f2f79(0xb6)][_0x1f2f79(0xc6)][_0x1f2f79(0xa7)][_0x1f2f79(0xa5)]),_0x56eee5=new _0x1b13d7({'name':/^h[1-5]$/}),_0x59f930=[];let _0x18b9e6=!0x1;for(const _0x66de75 of _0x887a01)_0x66de75['is'](_0x1f2f79(0x83))&&_0x56eee5[_0x1f2f79(0xab)](_0x66de75)&&(_0x59f930[_0x1f2f79(0xb4)](_0x66de75),'h1'==_0x66de75[_0x1f2f79(0xe3)]&&(_0x18b9e6=!0x0));if(_0x18b9e6){for(const _0x8eaf59 of _0x59f930)_0x126d9f[_0x1f2f79(0xb5)]('h'+(parseInt(_0x8eaf59[_0x1f2f79(0xe3)][0x1])+0x1),_0x8eaf59);}}[_0x195a6c(0xa1)](){const _0x35c368=_0x195a6c,{data:_0x26914f,editing:_0x37355e}=this[_0x35c368(0xb6)],_0x310954=_0x26914f[_0x35c368(0x93)][_0x35c368(0x9c)](_0x35c368(0xe5)),_0x8de29c=_0x26914f[_0x35c368(0x9c)](_0x26914f[_0x35c368(0xad)](_0x310954));return!!_0x37355e[_0x35c368(0xa7)][_0x35c368(0xe8)][_0x35c368(0xba)](_0x8de29c)[_0x35c368(0xc0)]('h1');}[_0x195a6c(0x8c)](_0x3c2932){const _0x10984b=_0x195a6c;return this[_0x10984b(0xb6)][_0x10984b(0xc6)][_0x10984b(0xa7)][_0x10984b(0xe8)][_0x10984b(0xbb)](this[_0x10984b(0xa0)],_0x3c2932),this[_0x10984b(0xa0)][_0x10984b(0x98)];}[_0x195a6c(0xd2)](_0x2a77f6){const _0x534be7=_0x195a6c,_0x1a6534=_0x2a77f6[_0x534be7(0xc8)]();return _0x1a6534[_0x534be7(0x94)](_0x534be7(0xc2))?_0x1a6534[_0x534be7(0xaa)](_0x534be7(0xc3))?_0x1a6534[_0x534be7(0xc1)](0x7,_0x1a6534[_0x534be7(0xd4)]-0x3):_0x1a6534[_0x534be7(0xc1)](0x7):_0x2a77f6;}}
|