@ckeditor/ckeditor5-ai 45.0.0-alpha.0 → 45.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.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
package/src/aiassistant.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2d99(_0x546343,_0x371fae){const _0x78b474=_0x78b4();return _0x2d99=function(_0x2d99d3,_0x520c7d){_0x2d99d3=_0x2d99d3-0xb9;let _0x2cdab8=_0x78b474[_0x2d99d3];return _0x2cdab8;},_0x2d99(_0x546343,_0x371fae);}const _0x56278d=_0x2d99;(function(_0x1658b1,_0x22ab69){const _0x211b11=_0x2d99,_0x1b0abc=_0x1658b1();while(!![]){try{const _0xec798b=-parseInt(_0x211b11(0x105))/0x1*(parseInt(_0x211b11(0xce))/0x2)+parseInt(_0x211b11(0xd6))/0x3*(parseInt(_0x211b11(0x107))/0x4)+parseInt(_0x211b11(0xf6))/0x5+parseInt(_0x211b11(0xe5))/0x6+-parseInt(_0x211b11(0xdf))/0x7+-parseInt(_0x211b11(0xec))/0x8*(-parseInt(_0x211b11(0xf3))/0x9)+-parseInt(_0x211b11(0x109))/0xa*(-parseInt(_0x211b11(0xdb))/0xb);if(_0xec798b===_0x22ab69)break;else _0x1b0abc['push'](_0x1b0abc['shift']());}catch(_0x2efc8f){_0x1b0abc['push'](_0x1b0abc['shift']());}}}(_0x78b4,0x34040));import{Plugin as _0x219537}from'ckeditor5/src/core.js';import _0x46d8af from'./aiassistantui.js';import _0x12f593 from'./aiassistantediting.js';function _0x78b4(){const _0x387bf6=['changeStyle','translateGerman','Professional','translateSpanish','translateChinese','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','translateFrench','Poetic','Translate','find','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','makeLonger','ai.aiAssistant.preserveComments','Translate\x20the\x20content\x20to\x20French\x20language.','Simplify\x20language','locale','Arabic','translateEnglish','Edit\x20or\x20review','2yCKsHa','Make\x20shorter','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','isOfficialPlugin','editOrReview','Translate\x20the\x20content\x20to\x20Hindi\x20language.','continue','414594mTMamS','French','Make\x20longer','German','simplifyLanguage','77SqFVGF','Generate\x20from\x20selection','Continue','Business','2150211nKIOoW','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','direct','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','filter','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','809310UOlHpg','get','ai.aiAssistant.extraCommandGroups','AIAssistant','commands','Confident','translateHindi','1688pJApei','Legal','ai.aiAssistant.commands','pluginName','Translate\x20the\x20content\x20to\x20English\x20language.','groupId','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','576pjcdJZ','generate','confident','1517750qgElch','Direct','Friendly','translatePortuguese','journalism','legal','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Change\x20tone','push','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','ai.aiAssistant.removeCommands','includes','summarize','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','define','317134RZxJtw','professional','4GzIsqP','requires','353180cKtPxN','Change\x20style','forEach','Improve\x20writing','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','isPremiumPlugin','Journalism','Translate\x20the\x20content\x20to\x20Spanish\x20language.','poetic','translate','Translate\x20the\x20content\x20to\x20Arabic\x20language.','casual','Simplified\x20Chinese','config','translateArabic','set','Translate\x20the\x20content\x20to\x20German\x20language.','Summarize','improveWriting','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Hindi','English','business','Spanish','Portuguese','friendly','concat','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','changeTone','Casual','makeShorter'];_0x78b4=function(){return _0x387bf6;};return _0x78b4();}import{getTranslation as _0x51e4ae}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0xde0bff}from'./utils/normalizecommandsconfig.js';export default class r extends _0x219537{static get[_0x56278d(0x108)](){return[_0x46d8af,_0x12f593];}static get[_0x56278d(0xef)](){const _0x5ccfd9=_0x56278d;return _0x5ccfd9(0xe8);}static get[_0x56278d(0xd2)](){return!0x0;}static get[_0x56278d(0x110)](){return!0x0;}constructor(_0x51f492){const _0x44ee7a=_0x56278d;super(_0x51f492);const _0x1e941f=_0x51f492[_0x44ee7a(0x118)],_0x25f4f8=_0x51f492[_0x44ee7a(0xca)];_0x1e941f[_0x44ee7a(0x104)](_0x44ee7a(0xc7),!0x0),_0x1e941f[_0x44ee7a(0x104)](_0x44ee7a(0xee),getDefaultCommands(_0x25f4f8)),_0x1e941f[_0x44ee7a(0x104)](_0x44ee7a(0xe7),[]),_0x1e941f[_0x44ee7a(0x104)](_0x44ee7a(0x100),[]);let _0xcb0b7e=_0xde0bff(_0x1e941f[_0x44ee7a(0xe6)](_0x44ee7a(0xee)),_0x25f4f8);const _0x242fc0=_0x1e941f[_0x44ee7a(0xe6)](_0x44ee7a(0xe7)),_0x4ca36c=_0x1e941f[_0x44ee7a(0xe6)](_0x44ee7a(0x100));_0x242fc0[_0x44ee7a(0x10b)](_0x1d7a3f=>{const _0x22dd59=_0x44ee7a,_0x12bd0d=_0xcb0b7e[_0x22dd59(0xc4)](_0xe14957=>_0xe14957[_0x22dd59(0xf1)]===_0x1d7a3f[_0x22dd59(0xf1)]);_0x12bd0d?_0x12bd0d[_0x22dd59(0xe9)]=_0x12bd0d[_0x22dd59(0xe9)][_0x22dd59(0x125)](_0x1d7a3f[_0x22dd59(0xe9)]):_0xcb0b7e[_0x22dd59(0xfe)](_0x1d7a3f);}),_0xcb0b7e=_0xcb0b7e[_0x44ee7a(0xe3)](_0x32ac9d=>!_0x4ca36c[_0x44ee7a(0x101)](_0x32ac9d[_0x44ee7a(0xf1)])),_0xcb0b7e[_0x44ee7a(0x10b)](_0x1e5e76=>{const _0x5a5b46=_0x44ee7a;_0x1e5e76[_0x5a5b46(0xe9)]=_0x1e5e76[_0x5a5b46(0xe9)][_0x5a5b46(0xe3)](_0x47bd6d=>!_0x4ca36c[_0x5a5b46(0x101)](_0x47bd6d['id']));}),_0x1e941f[_0x44ee7a(0x11a)](_0x44ee7a(0xee),_0xcb0b7e);}}export function getDefaultCommands(_0x150a0f){const _0x277479=_0x56278d;return[{'groupId':_0x277479(0xd3),'groupLabel':_0x51e4ae(_0x150a0f,_0x277479(0xcd)),'commands':[{'id':_0x277479(0x11d),'label':_0x51e4ae(_0x150a0f,_0x277479(0x10c)),'prompt':_0x277479(0xc5)},{'id':_0x277479(0xba),'label':_0x51e4ae(_0x150a0f,_0x277479(0xcf)),'prompt':_0x277479(0xd1)},{'id':_0x277479(0xc6),'label':_0x51e4ae(_0x150a0f,_0x277479(0xd8)),'prompt':_0x277479(0x10e)},{'id':_0x277479(0xda),'label':_0x51e4ae(_0x150a0f,_0x277479(0xc9)),'prompt':_0x277479(0xf2)}]},{'groupId':_0x277479(0xf4),'groupLabel':_0x51e4ae(_0x150a0f,_0x277479(0xdc)),'commands':[{'id':_0x277479(0x102),'label':_0x51e4ae(_0x150a0f,_0x277479(0x11c)),'prompt':_0x277479(0xff)},{'id':_0x277479(0xd5),'label':_0x51e4ae(_0x150a0f,_0x277479(0xdd)),'prompt':_0x277479(0xe4)}]},{'groupId':_0x277479(0x128),'groupLabel':_0x51e4ae(_0x150a0f,_0x277479(0xfd)),'commands':[{'id':_0x277479(0x106),'label':_0x51e4ae(_0x150a0f,_0x277479(0xbd)),'prompt':_0x277479(0xe2)},{'id':_0x277479(0x116),'label':_0x51e4ae(_0x150a0f,_0x277479(0xb9)),'prompt':_0x277479(0xd0)},{'id':_0x277479(0xe1),'label':_0x51e4ae(_0x150a0f,_0x277479(0xf7)),'prompt':_0x277479(0x10d)},{'id':_0x277479(0xf5),'label':_0x51e4ae(_0x150a0f,_0x277479(0xea)),'prompt':_0x277479(0x103)},{'id':_0x277479(0x124),'label':_0x51e4ae(_0x150a0f,_0x277479(0xf8)),'prompt':_0x277479(0x11e)}]},{'groupId':_0x277479(0xbb),'groupLabel':_0x51e4ae(_0x150a0f,_0x277479(0x10a)),'commands':[{'id':_0x277479(0x121),'label':_0x51e4ae(_0x150a0f,_0x277479(0xde)),'prompt':_0x277479(0x127)},{'id':_0x277479(0xfb),'label':_0x51e4ae(_0x150a0f,_0x277479(0xed)),'prompt':_0x277479(0xc0)},{'id':_0x277479(0xfa),'label':_0x51e4ae(_0x150a0f,_0x277479(0x111)),'prompt':_0x277479(0xfc)},{'id':_0x277479(0x113),'label':_0x51e4ae(_0x150a0f,_0x277479(0xc2)),'prompt':_0x277479(0xe0)}]},{'groupId':_0x277479(0x114),'groupLabel':_0x51e4ae(_0x150a0f,_0x277479(0xc3)),'commands':[{'id':_0x277479(0xcc),'label':_0x51e4ae(_0x150a0f,_0x277479(0x120)),'prompt':_0x277479(0xf0)},{'id':_0x277479(0xbe),'label':_0x51e4ae(_0x150a0f,_0x277479(0x122)),'prompt':_0x277479(0x112)},{'id':_0x277479(0xf9),'label':_0x51e4ae(_0x150a0f,_0x277479(0x123)),'prompt':_0x277479(0x126)},{'id':_0x277479(0xbc),'label':_0x51e4ae(_0x150a0f,_0x277479(0xd9)),'prompt':_0x277479(0x11b)},{'id':_0x277479(0xc1),'label':_0x51e4ae(_0x150a0f,_0x277479(0xd7)),'prompt':_0x277479(0xc8)},{'id':_0x277479(0xbf),'label':_0x51e4ae(_0x150a0f,_0x277479(0x117)),'prompt':_0x277479(0x10f)},{'id':_0x277479(0xeb),'label':_0x51e4ae(_0x150a0f,_0x277479(0x11f)),'prompt':_0x277479(0xd4)},{'id':_0x277479(0x119),'label':_0x51e4ae(_0x150a0f,_0x277479(0xcb)),'prompt':_0x277479(0x115)}]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x268069=_0x3482;(function(_0x295778,_0x31a300){const _0x1843ae=_0x3482,_0x46b77b=_0x295778();while(!![]){try{const _0x3b8b82=-parseInt(_0x1843ae(0x1b7))/0x1+parseInt(_0x1843ae(0x1ca))/0x2*(-parseInt(_0x1843ae(0x17b))/0x3)+-parseInt(_0x1843ae(0x1d4))/0x4*(-parseInt(_0x1843ae(0x186))/0x5)+parseInt(_0x1843ae(0x1cc))/0x6*(parseInt(_0x1843ae(0x1c8))/0x7)+-parseInt(_0x1843ae(0x1bc))/0x8+-parseInt(_0x1843ae(0x17e))/0x9*(parseInt(_0x1843ae(0x181))/0xa)+parseInt(_0x1843ae(0x180))/0xb;if(_0x3b8b82===_0x31a300)break;else _0x46b77b['push'](_0x46b77b['shift']());}catch(_0x2d93fc){_0x46b77b['push'](_0x46b77b['shift']());}}}(_0x3d03,0xf3469));import{uid as _0x254af6}from'ckeditor5/src/utils.js';function _0x3d03(){const _0x12d0d9=['schema','getLastPosition','plugins','126uWOGHf','getSelectedBlocks','6852FWRzto','lowest','374454pFLzag','getChildren','pop','ck-ai-assistant-ui_theme','resultRange','createPositionAfter','selection','getChild','585436jHXZbL','_prepareTableInsertBelowPosition','ck-fake-ai-selection_collapsed','getMarkersGroup','isAtEnd','editor','getLastMatchingPosition','getRows','ck-fake-ai-selection','length','forEach','markerToHighlight','from','DataTransfer','end','has','getRange','canEditAt','paste','filter','getColumnIndexes','start','1314BLlUWG','_getDefaultInsertBelowPosition','href','9aoWhSa','getSelectedTableCells','45764818cBunDk','15121570OJBUgb','change','setData','span','createPositionAt','35TfxVAW','createUIElement','TableUtils','first','last','conversion','isContent','table','getRanges','model','_getTableRowCountFromContent','join','markers','text/html','editingDowncast','fire','parse','insertContentBelow','get','contentInsertion','editing','deleteContent','insertRows','findAncestor','createSelection','addMarker','getFirstRange','setSelection','once','isCollapsed','fromCharCode','map','afterInit','document','markerRange','data','AIAssistantEditing','for','insertContent','addClass','init','push','isPremiumPlugin','pluginName','_pasteHTMLUsingClipboard','updateMarker','hideFakeVisualSelection','getRowIndexes','ai-ui','797630uoscFK','markerToElement','removeMarker','element','_getAISelection','12011848GDgdXp','showFakeVisualSelection','createRange','ai.useTheme','_createEmptyTableRows','off','_resetContentOfSelectedTableCells','config','isOfficialPlugin'];_0x3d03=function(){return _0x12d0d9;};return _0x3d03();}function _0x3482(_0x4e0b07,_0x41f578){const _0x3d036d=_0x3d03();return _0x3482=function(_0x3482ef,_0x43312c){_0x3482ef=_0x3482ef-0x17a;let _0x406692=_0x3d036d[_0x3482ef];return _0x406692;},_0x3482(_0x4e0b07,_0x41f578);}import{Plugin as _0x3f93da}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x5c5595}from'ckeditor5/src/clipboard.js';import{DomEventData as _0x3c846a,DataTransfer as _0x58df74}from'ckeditor5/src/engine.js';const w=globalThis[_0x268069(0x1e1)],f=_0x268069(0x1b6);export default class a extends _0x3f93da{static get[_0x268069(0x1b1)](){const _0x5931d9=_0x268069;return _0x5931d9(0x1aa);}static get[_0x268069(0x1c4)](){return!0x0;}static get[_0x268069(0x1b0)](){return!0x0;}[_0x268069(0x1ae)](){const _0x5b5c2c=_0x268069,{editor:_0x53876c}=this,_0x463eab=[_0x5b5c2c(0x1dc)];_0x53876c[_0x5b5c2c(0x1c3)][_0x5b5c2c(0x198)](_0x5b5c2c(0x1bf))&&_0x463eab[_0x5b5c2c(0x1af)](_0x5b5c2c(0x1cf)),_0x53876c[_0x5b5c2c(0x18b)][_0x5b5c2c(0x1ab)](_0x5b5c2c(0x194))[_0x5b5c2c(0x1df)]({'model':f,'view':{'classes':_0x463eab,'priority':0xc}}),_0x53876c[_0x5b5c2c(0x18b)][_0x5b5c2c(0x1ab)](_0x5b5c2c(0x194))[_0x5b5c2c(0x1b8)]({'model':f,'view':(_0x5ce05f,{writer:_0x4671f6})=>{const _0x1b80d3=_0x5b5c2c;if(!_0x5ce05f[_0x1b80d3(0x1a8)][_0x1b80d3(0x1a3)])return null;const _0x59313f=_0x4671f6[_0x1b80d3(0x187)](_0x1b80d3(0x184));return _0x4671f6[_0x1b80d3(0x1ad)]([_0x1b80d3(0x1dc),_0x1b80d3(0x1d6)],_0x59313f),_0x59313f;}});}[_0x268069(0x1a6)](){!async function(_0x1a5d03){const _0xb341b4=_0x572287([0x38,0x6f,0x39,0x4d,0x32,0x50,0x71,0x6d,0x57,0x78,0x30,0x55,0x4e,0x64,0x52,0x70,0x6e,0x44,0x34,0x6a,0x36,0x5a,0x7a,0x41,0x66,0x73,0x62,0x4c,0x46,0x43,0x58,0x72,0x4f,0x59,0x31,0x61,0x53,0x54,0x56,0x37,0x51,0x35,0x68,0x75,0x69,0x77,0x79,0x6b,0x6c,0x48,0x49,0x76,0x47,0x4a,0x42,0x74,0x4b,0x65,0x67,0x63,0x45,0x33]),_0xf892c0=0x6e63e85a,_0x3be48e=0x6e648b62^_0xf892c0,_0xc23c39=window[_0x572287([0x44,0x61,0x74,0x65])][_0x572287([0x6e,0x6f,0x77])](),_0x4e49ac=_0x1a5d03[_0x572287([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4f7c46=new window[(_0x572287([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2eaf08=>{_0x4e49ac[_0x572287([0x6f,0x6e,0x63,0x65])](_0x572287([0x72,0x65,0x61,0x64,0x79]),_0x2eaf08);}),_0x48d6d5={[_0x572287([0x6b,0x74,0x79])]:_0x572287([0x45,0x43]),[_0x572287([0x75,0x73,0x65])]:_0x572287([0x73,0x69,0x67]),[_0x572287([0x63,0x72,0x76])]:_0x572287([0x50,0x2d,0x32,0x35,0x36]),[_0x572287([0x78])]:_0x572287([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]),[_0x572287([0x79])]:_0x572287([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]),[_0x572287([0x61,0x6c,0x67])]:_0x572287([0x45,0x53,0x32,0x35,0x36])},_0x300011=_0x4e49ac[_0x572287([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x572287([0x67,0x65,0x74])](_0x572287([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x47cf88(){let _0x214a73,_0x50624f=null,_0x5376bf=null;try{if(_0x300011==_0x572287([0x47,0x50,0x4c]))return _0x572287([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x214a73=_0x1f3ec5(),!_0x214a73)return _0x572287([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x214a73[_0x572287([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5376bf=_0x2d9967(_0x214a73[_0x572287([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x214a73[_0x572287([0x6a,0x74,0x69])])),await _0x44aca4()?_0x3b7cb5()?_0x3ea03a()?_0x572287([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x38f4da()?(_0x214a73[_0x572287([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x572287([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x50624f=_0x10eced(_0x572287([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x214a73[_0x572287([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x572287([0x74,0x72,0x69,0x61,0x6c])&&(_0x50624f=_0x10eced(_0x572287([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x356763()):_0x572287([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x572287([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x572287([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x37c390){return _0x572287([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ea03a(){const _0xb37495=[_0x572287([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x572287([0x74,0x72,0x69,0x61,0x6c])][_0x572287([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x214a73[_0x572287([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc23c39/0x3e8:0xe10*_0x3be48e;return _0x214a73[_0x572287([0x65,0x78,0x70])]<_0xb37495;}function _0x3b7cb5(){const _0x4f93fd=_0x214a73[_0x572287([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4f93fd&&(!!_0x4f93fd[_0x572287([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x572287([0x2a]))||!!_0x4f93fd[_0x572287([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x572287([0x41,0x49])));}function _0x38f4da(){const _0x4d19e4=_0x3482,_0x259724=_0x214a73[_0x572287([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x259724||0x0==_0x259724[_0x572287([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x39a360}=new URL(window[_0x572287([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4d19e4(0x17d)]);if(_0x259724[_0x572287([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39a360))return!0x0;const _0x514eb5=_0x39a360[_0x572287([0x73,0x70,0x6c,0x69,0x74])](_0x572287([0x2e]));return _0x259724[_0x572287([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x56ad96=>_0x56ad96[_0x572287([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x572287([0x2a])))[_0x572287([0x6d,0x61,0x70])](_0x1d350c=>_0x1d350c[_0x572287([0x73,0x70,0x6c,0x69,0x74])](_0x572287([0x2e])))[_0x572287([0x73,0x6f,0x6d,0x65])](_0x546641=>_0x514eb5[_0x572287([0x65,0x76,0x65,0x72,0x79])]((_0x2ca427,_0x3004c8)=>_0x546641[_0x3004c8]===_0x2ca427||_0x546641[_0x3004c8]===_0x572287([0x2a])));}function _0x356763(){return _0x50624f&&_0x5376bf?new window[(_0x572287([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f5b7d,_0x4ed2f1)=>{_0x50624f[_0x572287([0x74,0x68,0x65,0x6e])](_0x1f5b7d,_0x4ed2f1),_0x5376bf[_0x572287([0x74,0x68,0x65,0x6e])](_0x5ea80f=>{_0x5ea80f!=_0x572287([0x56,0x61,0x6c,0x69,0x64])&&_0x1f5b7d(_0x5ea80f);},_0x4ed2f1);}):_0x50624f||_0x5376bf||_0x572287([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d9967(_0x41785e,_0x1dac6c){return new window[(_0x572287([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50ef7c=>{if(_0x3b93ec())return _0x50ef7c(_0x572287([0x56,0x61,0x6c,0x69,0x64]));_0x7b33af(),_0x4e49ac[_0x572287([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x572287([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x31bc22=!0x1;const _0xb23bd2=_0x254af6();function _0x21d1a5(_0x38469b){return!!_0x38469b&&(typeof _0x38469b===_0x572287([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x38469b===_0x572287([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x38469b[_0x572287([0x74,0x68,0x65,0x6e])]===_0x572287([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x38469b[_0x572287([0x63,0x61,0x74,0x63,0x68])]===_0x572287([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xe44439(_0x1229b3){_0x37855c(_0x1229b3)[_0x572287([0x74,0x68,0x65,0x6e])](_0x44d702=>{if(!_0x44d702||_0x44d702[_0x572287([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x572287([0x6f,0x6b]))return _0x572287([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3aedc4(_0x198d45(_0xb23bd2+_0x1dac6c))!=_0x44d702[_0x572287([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x572287([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x572287([0x56,0x61,0x6c,0x69,0x64]);})[_0x572287([0x74,0x68,0x65,0x6e])](_0x5d3633=>(_0x2ae807(),_0x5d3633),()=>{const _0x248590=_0x54e209();return null==_0x248590?(_0x2ae807(),_0x572287([0x56,0x61,0x6c,0x69,0x64])):_0x572287(_0xc23c39-_0x248590>(0x4a6f6c5a^_0xf892c0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x572287([0x74,0x68,0x65,0x6e])](_0x50ef7c)[_0x572287([0x63,0x61,0x74,0x63,0x68])](()=>{_0x50ef7c(_0x572287([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x29fbc4=0x6e5506da^_0xf892c0;function _0x2ae807(){const _0x155157=_0x572287([0x6c,0x6c,0x63,0x74,0x2d])+_0x3aedc4(_0x198d45(_0x41785e)),_0xcaaa1e=_0x51d31f(_0x3aedc4(window[_0x572287([0x4d,0x61,0x74,0x68])][_0x572287([0x63,0x65,0x69,0x6c])](_0xc23c39/_0x29fbc4)));window[_0x572287([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x572287([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x155157,_0xcaaa1e);}function _0x54e209(){const _0x21e2c2=_0x572287([0x6c,0x6c,0x63,0x74,0x2d])+_0x3aedc4(_0x198d45(_0x41785e)),_0x23ff46=window[_0x572287([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x572287([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21e2c2);return _0x23ff46?window[_0x572287([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51d31f(_0x23ff46),0x10)*_0x29fbc4:null;}function _0x37855c(_0x1a5b4b){return new window[(_0x572287([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x141f0d,_0x5b8f88)=>{_0x1a5b4b[_0x572287([0x74,0x68,0x65,0x6e])](_0x141f0d,_0x5b8f88),window[_0x572287([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5b8f88,0x6e623c9a^_0xf892c0);});}}_0x4e49ac[_0x572287([0x6f,0x6e])](_0x572287([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1d93b0,_0x3619d6)=>{if(_0x3619d6[0x0]!=_0x41785e)return _0x50ef7c(_0x572287([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3619d6[0x1]={..._0x3619d6[0x1],[_0x572287([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xb23bd2};},{[_0x572287([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x572287([0x68,0x69,0x67,0x68])}),_0x4e49ac[_0x572287([0x6f,0x6e])](_0x572287([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x53d409=>{_0x21d1a5(_0x53d409[_0x572287([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x31bc22=!0x0,_0xe44439(_0x53d409[_0x572287([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x572287([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x572287([0x6c,0x6f,0x77])}),_0x4f7c46[_0x572287([0x74,0x68,0x65,0x6e])](()=>{_0x31bc22||_0x50ef7c(_0x572287([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3b93ec(){return _0x4e49ac[_0x572287([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x572287([0x76,0x69,0x65,0x77])][_0x572287([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x572287([0x61,0x75,0x74,0x6f]);}function _0x7b33af(){_0x4e49ac[_0x572287([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x572287([0x76,0x69,0x65,0x77])][_0x572287([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x572287([0x61,0x75,0x74,0x6f]);}}function _0x10eced(_0x699e4b){const _0x25f929=[new window[(_0x572287([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bee0b=>setTimeout(_0x3bee0b,0x6e6ad696^_0xf892c0)),_0x4f7c46[_0x572287([0x74,0x68,0x65,0x6e])](()=>new window[(_0x572287([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x218858=>{let _0xd0251c=0x0;_0x4e49ac[_0x572287([0x6d,0x6f,0x64,0x65,0x6c])][_0x572287([0x6f,0x6e])](_0x572287([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x21df68,_0x4e8882)=>{_0x4e8882[0x0][_0x572287([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xd0251c++,_0xd0251c==(0x6e63e9a2^_0xf892c0)&&(_0x218858(),_0x21df68[_0x572287([0x6f,0x66,0x66])]());});}))];return window[_0x572287([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x572287([0x72,0x61,0x63,0x65])](_0x25f929)[_0x572287([0x74,0x68,0x65,0x6e])](()=>_0x699e4b);}async function _0x18e235(){await _0x4f7c46,_0x4e49ac[_0x572287([0x6d,0x6f,0x64,0x65,0x6c])][_0x572287([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x30826c,_0x4e49ac[_0x572287([0x6d,0x6f,0x64,0x65,0x6c])][_0x572287([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x30826c,_0x4e49ac[_0x572287([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x572287([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x80c012(_0x2de772){const _0x2e7043=_0xf310e9();_0x4e49ac[_0x2e7043]=_0x572287([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2de772,_0x2de772!=_0x572287([0x56,0x61,0x6c,0x69,0x64])&&_0x18e235();}function _0xf310e9(){const _0x239926=window[_0x572287([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x572287([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x572287([0x6e,0x6f,0x77])]())[_0x572287([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x572287([0x2e]),'');let _0x19d345=_0x572287([0x6f]);for(let _0x1111cc=0x0;_0x1111cc<_0x239926[_0x572287([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1111cc+=0x2){let _0x4f5386=window[_0x572287([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x239926[_0x572287([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1111cc,_0x1111cc+0x2));_0x4f5386>=_0xb341b4[_0x572287([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4f5386-=_0xb341b4[_0x572287([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x19d345+=_0xb341b4[_0x4f5386];}return _0x19d345;}function _0x1f3ec5(){const _0x30bd06=_0x300011[_0x572287([0x73,0x70,0x6c,0x69,0x74])](_0x572287([0x2e]));if(0x3!=_0x30bd06[_0x572287([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x497cfa(_0x30bd06[0x1]);function _0x497cfa(_0x157e62){const _0x2a3989=_0x4f7d0e(_0x157e62);return _0x2a3989&&_0xb0959c()?_0x2a3989:null;function _0xb0959c(){const _0xa57b46=_0x2a3989[_0x572287([0x6a,0x74,0x69])],_0x1cb4df=window[_0x572287([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa57b46[_0x572287([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa57b46[_0x572287([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x125729={..._0x2a3989,[_0x572287([0x6a,0x74,0x69])]:_0xa57b46[_0x572287([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa57b46[_0x572287([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x125729[_0x572287([0x76,0x63])],_0x198d45(_0x125729)==_0x1cb4df;}}}async function _0x44aca4(){let _0x30fee3=!0x0;try{const _0x473b81=_0x300011[_0x572287([0x73,0x70,0x6c,0x69,0x74])](_0x572287([0x2e])),[_0x473dbe,_0x10b819,_0x3a59b9]=_0x473b81;return _0x390797(_0x473dbe),await _0x236889(_0x473dbe,_0x10b819,_0x3a59b9),_0x30fee3;}catch(_0x52a1e4){return!0x1;}function _0x390797(_0x34a279){const _0x2c3c6b=_0x4f7d0e(_0x34a279);_0x2c3c6b&&_0x2c3c6b[_0x572287([0x61,0x6c,0x67])]==_0x572287([0x45,0x53,0x32,0x35,0x36])||(_0x30fee3=!0x1);}async function _0x236889(_0x4b5e7b,_0x3ae6ee,_0xafdf6c){const _0x5d6a5f=window[_0x572287([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x572287([0x66,0x72,0x6f,0x6d])](_0x4d2843(_0xafdf6c),_0x3d2c4b=>_0x3d2c4b[_0x572287([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4c863e=new window[(_0x572287([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x572287([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4b5e7b+_0x572287([0x2e])+_0x3ae6ee),_0xa208f3=window[_0x572287([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x572287([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xa208f3)return;const _0x2a75e2=await _0xa208f3[_0x572287([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x572287([0x6a,0x77,0x6b]),_0x48d6d5,{[_0x572287([0x6e,0x61,0x6d,0x65])]:_0x572287([0x45,0x43,0x44,0x53,0x41]),[_0x572287([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x572287([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x572287([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xa208f3[_0x572287([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x572287([0x6e,0x61,0x6d,0x65])]:_0x572287([0x45,0x43,0x44,0x53,0x41]),[_0x572287([0x68,0x61,0x73,0x68])]:{[_0x572287([0x6e,0x61,0x6d,0x65])]:_0x572287([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2a75e2,_0x5d6a5f,_0x4c863e)||(_0x30fee3=!0x1);}}function _0x4f7d0e(_0x13e8c7){return _0x13e8c7[_0x572287([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x572287([0x65,0x79]))?JSON[_0x572287([0x70,0x61,0x72,0x73,0x65])](_0x4d2843(_0x13e8c7)):null;}function _0x4d2843(_0x23a790){return window[_0x572287([0x61,0x74,0x6f,0x62])](_0x23a790[_0x572287([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x572287([0x2b]))[_0x572287([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x572287([0x2f])));}function _0x198d45(_0x1bec4e){let _0x560ca9=0x1505;function _0x4e1d75(_0x64c7e3){for(let _0x37b79d=0x0;_0x37b79d<_0x64c7e3[_0x572287([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37b79d++){const _0x4a5d27=_0x64c7e3[_0x572287([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x37b79d);_0x560ca9=(_0x560ca9<<0x5)+_0x560ca9+_0x4a5d27,_0x560ca9&=_0x560ca9;}}function _0x145660(_0x5ca889){Array[_0x572287([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5ca889)?_0x5ca889[_0x572287([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x145660):_0x5ca889&&typeof _0x5ca889==_0x572287([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x572287([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5ca889)[_0x572287([0x73,0x6f,0x72,0x74])]()[_0x572287([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1974c3,_0x5e77ae])=>{_0x4e1d75(_0x1974c3),_0x145660(_0x5e77ae);}):_0x4e1d75(window[_0x572287([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5ca889));}return _0x145660(_0x1bec4e),_0x560ca9>>>0x0;}function _0x3aedc4(_0x29580a){return _0x29580a[_0x572287([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x572287([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x572287([0x30]));}function _0x51d31f(_0x437c75){return _0x437c75[_0x572287([0x73,0x70,0x6c,0x69,0x74])]('')[_0x572287([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x572287([0x6a,0x6f,0x69,0x6e])]('');}function _0x30826c(){}function _0x572287(_0x439074){const _0x1a233e=_0x3482;return _0x439074[_0x1a233e(0x1a5)](_0x42037a=>String[_0x1a233e(0x1a4)](_0x42037a))[_0x1a233e(0x191)]('');}_0x80c012(await _0x47cf88());}(this);}[_0x268069(0x1bd)](){const _0x3cc0b0=_0x268069,_0x3bf80e=this[_0x3cc0b0(0x1d9)][_0x3cc0b0(0x18f)];_0x3bf80e[_0x3cc0b0(0x182)](_0x2bc3ad=>{const _0x442867=_0x3cc0b0,_0x52c0e3=_0x3bf80e[_0x442867(0x1a7)][_0x442867(0x1d2)][_0x442867(0x18e)]();let _0x34a1ba=0x0;for(const _0x222ec2 of _0x52c0e3){const _0x587a17=f+':'+_0x34a1ba;if(_0x3bf80e[_0x442867(0x192)][_0x442867(0x1e3)](_0x587a17))_0x2bc3ad[_0x442867(0x1b3)](_0x587a17,{'range':_0x222ec2});else{if(_0x222ec2[_0x442867(0x17a)][_0x442867(0x1d8)]){const _0x44711c=_0x222ec2[_0x442867(0x17a)][_0x442867(0x1da)](({item:_0x16f34d})=>!_0x3bf80e[_0x442867(0x1c5)][_0x442867(0x18c)](_0x16f34d),{'boundaries':_0x222ec2});_0x2bc3ad[_0x442867(0x19f)](_0x587a17,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x2bc3ad[_0x442867(0x1be)](_0x44711c,_0x222ec2[_0x442867(0x1e2)])});}else _0x2bc3ad[_0x442867(0x19f)](_0x587a17,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x222ec2});}_0x34a1ba++;}});}[_0x268069(0x1b4)](){const _0x296f2b=_0x268069,_0x554d03=this[_0x296f2b(0x1d9)][_0x296f2b(0x18f)],_0x431715=Array[_0x296f2b(0x1e0)](this[_0x296f2b(0x1d9)][_0x296f2b(0x18f)][_0x296f2b(0x192)][_0x296f2b(0x1d7)](f));_0x431715[_0x296f2b(0x1dd)]&&_0x554d03[_0x296f2b(0x182)](_0x208bcc=>{const _0x271394=_0x296f2b;_0x431715[_0x271394(0x1de)](_0x48d9b5=>{const _0x14f95a=_0x271394;_0x208bcc[_0x14f95a(0x1b9)](_0x48d9b5);});});}[_0x268069(0x1ac)](_0x425010,_0x1bc61d){const _0x3a4b17=_0x268069,_0x1dfca3=this[_0x3a4b17(0x1bb)](),_0x3dc30d=_0x1bc61d||_0x1dfca3[_0x3a4b17(0x1a0)]();this[_0x3a4b17(0x1d9)][_0x3a4b17(0x18f)][_0x3a4b17(0x1e5)](_0x3dc30d)&&this[_0x3a4b17(0x1d9)][_0x3a4b17(0x18f)][_0x3a4b17(0x182)](_0x460c6=>{const _0x23c8b2=_0x3a4b17;this[_0x23c8b2(0x1b4)](),_0x1bc61d||this[_0x23c8b2(0x1c2)](_0x460c6,_0x1dfca3),this[_0x23c8b2(0x1b2)]({'insertAt':_0x3dc30d,'writer':_0x460c6,'html':_0x425010});});}[_0x268069(0x197)](_0x21d241){const _0x1d4c5e=_0x268069,{model:_0x3a3110}=this[_0x1d4c5e(0x1d9)],_0x5745c1=this[_0x1d4c5e(0x1bb)]();_0x3a3110[_0x1d4c5e(0x182)](()=>{const _0x35b330=_0x1d4c5e,_0x51ee7f=this[_0x35b330(0x1d5)](_0x21d241,_0x5745c1)||this[_0x35b330(0x17c)](_0x5745c1);this[_0x35b330(0x1ac)](_0x21d241,_0x51ee7f);});}[_0x268069(0x1bb)](){const _0xa8f786=_0x268069,_0x1ed906=this[_0xa8f786(0x1d9)][_0xa8f786(0x18f)],_0x806253=Array[_0xa8f786(0x1e0)](_0x1ed906[_0xa8f786(0x192)][_0xa8f786(0x1d7)](f))[_0xa8f786(0x1a5)](_0x225708=>_0x225708[_0xa8f786(0x1e4)]());return _0x1ed906[_0xa8f786(0x19e)](_0x806253);}[_0x268069(0x1b2)]({writer:_0x5194de,html:_0x398cd5,insertAt:_0x13ab6d}){const _0x506bb3=_0x268069,{view:_0x40f55e}=this[_0x506bb3(0x1d9)][_0x506bb3(0x19a)],_0x121b84=this[_0x506bb3(0x1d9)][_0x506bb3(0x1c7)][_0x506bb3(0x198)](_0x5c5595),_0x56bba3=new w();_0x56bba3[_0x506bb3(0x183)](_0x506bb3(0x193),_0x398cd5);const _0x2ba196=new ClipboardEvent(_0x506bb3(0x1e6),{'clipboardData':_0x56bba3}),_0x5a664d=new _0x3c846a(_0x40f55e,_0x2ba196,{'dataTransfer':new _0x58df74(_0x56bba3)});_0x5194de[_0x506bb3(0x1a1)](_0x13ab6d);const _0x2008e9=(_0x416659,_0x317d6d)=>{const _0x41acda=_0x506bb3;_0x317d6d[_0x41acda(0x1d0)]&&_0x5194de[_0x41acda(0x1a1)](_0x317d6d[_0x41acda(0x1d0)]);};_0x121b84[_0x506bb3(0x1a2)](_0x506bb3(0x199),_0x2008e9,{'priority':_0x506bb3(0x1cb)}),_0x40f55e[_0x506bb3(0x1a7)][_0x506bb3(0x195)](_0x506bb3(0x1e6),_0x5a664d),_0x121b84[_0x506bb3(0x1c1)](_0x506bb3(0x199),_0x2008e9);}[_0x268069(0x17c)](_0xb57ad6){const _0x525a4c=_0x268069,{model:_0x4967a0}=this[_0x525a4c(0x1d9)],_0x44778f=Array[_0x525a4c(0x1e0)](_0xb57ad6[_0x525a4c(0x1c9)]());return _0x44778f[_0x525a4c(0x1dd)]?_0x4967a0[_0x525a4c(0x1d1)](_0x44778f[_0x525a4c(0x1ce)]()):_0xb57ad6[_0x525a4c(0x1c6)]();}[_0x268069(0x1d5)](_0x7c54e4,_0x5e5aba){const _0x2c7ced=_0x268069,{model:_0x447d06,plugins:_0x48940e}=this[_0x2c7ced(0x1d9)];if(_0x48940e[_0x2c7ced(0x1e3)](_0x2c7ced(0x188))){const _0x2ff526=_0x48940e[_0x2c7ced(0x198)](_0x2c7ced(0x188))[_0x2c7ced(0x17f)](_0x5e5aba);if(_0x2ff526[_0x2c7ced(0x1dd)]){const _0x507ee6=this[_0x2c7ced(0x190)](_0x7c54e4),_0xc5896b=this[_0x2c7ced(0x1c0)](_0x2ff526,_0x507ee6);return _0x447d06[_0x2c7ced(0x185)](_0xc5896b,0x0);}}return null;}[_0x268069(0x190)](_0x3c1442){const _0x91307d=_0x268069,_0x2a9a94=this[_0x91307d(0x1d9)][_0x91307d(0x1c7)][_0x91307d(0x198)](_0x91307d(0x188)),_0x67145=this[_0x91307d(0x1d9)][_0x91307d(0x1a9)][_0x91307d(0x196)](_0x3c1442),_0x3240ae=Array[_0x91307d(0x1e0)](_0x67145[_0x91307d(0x1cd)]())[_0x91307d(0x1e7)](_0x3b5bb3=>_0x3b5bb3['is'](_0x91307d(0x1ba),_0x91307d(0x18d)));let _0x1644d9=0x0;return _0x3240ae[_0x91307d(0x1de)](_0x38c2f5=>{const _0x5088a6=_0x91307d;_0x1644d9+=_0x2a9a94[_0x5088a6(0x1db)](_0x38c2f5);}),_0x1644d9;}[_0x268069(0x1c0)](_0x1c3b11,_0x12584b){const _0xfbb973=_0x268069,_0x392e09=this[_0xfbb973(0x1d9)][_0xfbb973(0x1c7)][_0xfbb973(0x198)](_0xfbb973(0x188)),_0x15e067=_0x392e09[_0xfbb973(0x1b5)](_0x1c3b11),_0x34a203=_0x392e09[_0xfbb973(0x1e8)](_0x1c3b11),_0x4f1376=_0x15e067[_0xfbb973(0x18a)]+0x1,_0x1e45b7=_0x34a203[_0xfbb973(0x189)],_0x531f3c=_0x1c3b11[0x0][_0xfbb973(0x19d)](_0xfbb973(0x18d));for(let _0x5b0946=0x0;_0x5b0946<_0x12584b;_0x5b0946++)_0x392e09[_0xfbb973(0x19c)](_0x531f3c,{'at':_0x4f1376});return _0x531f3c[_0xfbb973(0x1d3)](_0x4f1376)[_0xfbb973(0x1d3)](_0x1e45b7);}[_0x268069(0x1c2)](_0x5c114b,_0x288eec){const _0x11985f=_0x268069,{plugins:_0x1c8e2f}=this[_0x11985f(0x1d9)],{model:_0x36e437}=_0x5c114b;if(!_0x1c8e2f[_0x11985f(0x1e3)](_0x11985f(0x188)))return;_0x1c8e2f[_0x11985f(0x198)](_0x11985f(0x188))[_0x11985f(0x17f)](_0x288eec)[_0x11985f(0x1dd)]&&_0x36e437[_0x11985f(0x19b)](_0x288eec);}}
|
|
23
|
+
const _0x13b7ea=_0x1af9;function _0x1ffe(){const _0x6d168a=['AIAssistantEditing','model','updateMarker','get','from','first','568866DIwepd','getRowIndexes','afterInit','removeMarker','href','conversion','getMarkersGroup','100876uchBCl','getColumnIndexes','ai-ui','insertRows','document','getChildren','lowest','start','ck-ai-assistant-ui_theme','fire','parse','17650809pkfbrI','text/html','_pasteHTMLUsingClipboard','off','forEach','ck-fake-ai-selection_collapsed','markerToElement','setData','paste','length','for','hideFakeVisualSelection','2VkTTAY','getRanges','266877QoUywq','table','ck-fake-ai-selection','join','_getTableRowCountFromContent','getLastMatchingPosition','resultRange','getRange','editingDowncast','4204210oaHfpk','plugins','_getAISelection','init','ai.useTheme','insertContent','pop','once','push','isOfficialPlugin','markerRange','isCollapsed','schema','editing','45WSznMa','insertContentBelow','getChild','createSelection','getLastPosition','markers','_getDefaultInsertBelowPosition','end','element','config','getSelectedTableCells','addClass','getRows','change','TableUtils','contentInsertion','isPremiumPlugin','deleteContent','createPositionAt','has','createUIElement','markerToHighlight','canEditAt','filter','_resetContentOfSelectedTableCells','editor','addMarker','pluginName','176kLZoIp','getFirstRange','DataTransfer','isContent','fromCharCode','showFakeVisualSelection','createPositionAfter','selection','2788748Yimpkq','3UIWBKV','setSelection','3597706zmWTiq','_createEmptyTableRows','last','span','isAtEnd','getSelectedBlocks','map','_prepareTableInsertBelowPosition','findAncestor','createRange','data'];_0x1ffe=function(){return _0x6d168a;};return _0x1ffe();}(function(_0x5ef17e,_0x45a192){const _0x86f392=_0x1af9,_0x4c3132=_0x5ef17e();while(!![]){try{const _0x34c96f=-parseInt(_0x86f392(0x191))/0x1*(-parseInt(_0x86f392(0x17a))/0x2)+parseInt(_0x86f392(0x1cf))/0x3*(-parseInt(_0x86f392(0x1ce))/0x4)+parseInt(_0x86f392(0x1aa))/0x5*(-parseInt(_0x86f392(0x173))/0x6)+parseInt(_0x86f392(0x1d1))/0x7+parseInt(_0x86f392(0x1c6))/0x8*(-parseInt(_0x86f392(0x193))/0x9)+parseInt(_0x86f392(0x19c))/0xa+parseInt(_0x86f392(0x185))/0xb;if(_0x34c96f===_0x45a192)break;else _0x4c3132['push'](_0x4c3132['shift']());}catch(_0x225976){_0x4c3132['push'](_0x4c3132['shift']());}}}(_0x1ffe,0x6ab1e));import{uid as _0x1e2513}from'ckeditor5/src/utils.js';import{Plugin as _0x3f36b1}from'ckeditor5/src/core.js';function _0x1af9(_0x4eec69,_0x214492){const _0x1ffe3f=_0x1ffe();return _0x1af9=function(_0x1af942,_0xc35d47){_0x1af942=_0x1af942-0x16a;let _0x2790b6=_0x1ffe3f[_0x1af942];return _0x2790b6;},_0x1af9(_0x4eec69,_0x214492);}import{ClipboardPipeline as _0xc4123e}from'ckeditor5/src/clipboard.js';import{DomEventData as _0x27ca5e,DataTransfer as _0x1c6167}from'ckeditor5/src/engine.js';const w=globalThis[_0x13b7ea(0x1c8)],f=_0x13b7ea(0x17c);export default class a extends _0x3f36b1{static get[_0x13b7ea(0x1c5)](){const _0x20ca12=_0x13b7ea;return _0x20ca12(0x16d);}static get[_0x13b7ea(0x1a5)](){return!0x0;}static get[_0x13b7ea(0x1ba)](){return!0x0;}[_0x13b7ea(0x19f)](){const _0x2a5910=_0x13b7ea,{editor:_0x7abc52}=this,_0x933736=[_0x2a5910(0x195)];_0x7abc52[_0x2a5910(0x1b3)][_0x2a5910(0x170)](_0x2a5910(0x1a0))&&_0x933736[_0x2a5910(0x1a4)](_0x2a5910(0x182)),_0x7abc52[_0x2a5910(0x178)][_0x2a5910(0x18f)](_0x2a5910(0x19b))[_0x2a5910(0x1bf)]({'model':f,'view':{'classes':_0x933736,'priority':0xc}}),_0x7abc52[_0x2a5910(0x178)][_0x2a5910(0x18f)](_0x2a5910(0x19b))[_0x2a5910(0x18b)]({'model':f,'view':(_0x2d0b68,{writer:_0x4bae36})=>{const _0x2bd766=_0x2a5910;if(!_0x2d0b68[_0x2bd766(0x1a6)][_0x2bd766(0x1a7)])return null;const _0x3dc505=_0x4bae36[_0x2bd766(0x1be)](_0x2bd766(0x1d4));return _0x4bae36[_0x2bd766(0x1b5)]([_0x2bd766(0x195),_0x2bd766(0x18a)],_0x3dc505),_0x3dc505;}});}[_0x13b7ea(0x175)](){!async function(_0x40e8fe){const _0x44a862=_0x51296b([0x4b,0x64,0x7a,0x30,0x35,0x54,0x45,0x66,0x4d,0x74,0x75,0x49,0x44,0x61,0x69,0x48,0x52,0x47,0x50,0x65,0x51,0x71,0x79,0x77,0x67,0x5a,0x6d,0x68,0x62,0x73,0x31,0x39,0x6a,0x6b,0x4a,0x33,0x6e,0x53,0x6f,0x56,0x46,0x59,0x36,0x43,0x4f,0x41,0x63,0x37,0x34,0x4c,0x76,0x72,0x32,0x70,0x78,0x38,0x55,0x42,0x58,0x6c,0x4e,0x57]),_0x2826b5=0x4805dd58,_0x5c15d3=0x4802be30^_0x2826b5,_0x3a24b5=window[_0x51296b([0x44,0x61,0x74,0x65])][_0x51296b([0x6e,0x6f,0x77])](),_0x23cde6=_0x40e8fe[_0x51296b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x25e8d0=new window[(_0x51296b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ce344=>{_0x23cde6[_0x51296b([0x6f,0x6e,0x63,0x65])](_0x51296b([0x72,0x65,0x61,0x64,0x79]),_0x5ce344);}),_0x1a6b3={[_0x51296b([0x6b,0x74,0x79])]:_0x51296b([0x45,0x43]),[_0x51296b([0x75,0x73,0x65])]:_0x51296b([0x73,0x69,0x67]),[_0x51296b([0x63,0x72,0x76])]:_0x51296b([0x50,0x2d,0x32,0x35,0x36]),[_0x51296b([0x78])]:_0x51296b([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]),[_0x51296b([0x79])]:_0x51296b([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]),[_0x51296b([0x61,0x6c,0x67])]:_0x51296b([0x45,0x53,0x32,0x35,0x36])},_0x30c016=_0x23cde6[_0x51296b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x51296b([0x67,0x65,0x74])](_0x51296b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x570d3b(){let _0x566494,_0x19fa9c=null,_0x13019a=null;try{if(_0x30c016==_0x51296b([0x47,0x50,0x4c]))return _0x51296b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x566494=_0x11f931(),!_0x566494)return _0x51296b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x566494[_0x51296b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x13019a=_0x7c28bd(_0x566494[_0x51296b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x566494[_0x51296b([0x6a,0x74,0x69])])),await _0x16520c()?_0x37ead6()?_0x5928c1()?_0x51296b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xe4d329()?(_0x566494[_0x51296b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51296b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19fa9c=_0x2c41c1(_0x51296b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x566494[_0x51296b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51296b([0x74,0x72,0x69,0x61,0x6c])&&(_0x19fa9c=_0x2c41c1(_0x51296b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xb62bc0()):_0x51296b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x51296b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x51296b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5c09bd){return _0x51296b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5928c1(){const _0x488bb7=[_0x51296b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x51296b([0x74,0x72,0x69,0x61,0x6c])][_0x51296b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x566494[_0x51296b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3a24b5/0x3e8:0xe10*_0x5c15d3;return _0x566494[_0x51296b([0x65,0x78,0x70])]<_0x488bb7;}function _0x37ead6(){const _0x3ddb29=_0x566494[_0x51296b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3ddb29&&(!!_0x3ddb29[_0x51296b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51296b([0x2a]))||!!_0x3ddb29[_0x51296b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51296b([0x41,0x49])));}function _0xe4d329(){const _0x2a97ca=_0x1af9,_0x238511=_0x566494[_0x51296b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x238511||0x0==_0x238511[_0x51296b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b5150}=new URL(window[_0x51296b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2a97ca(0x177)]);if(_0x238511[_0x51296b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b5150))return!0x0;const _0x33f12f=_0x5b5150[_0x51296b([0x73,0x70,0x6c,0x69,0x74])](_0x51296b([0x2e]));return _0x238511[_0x51296b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e2505=>_0x4e2505[_0x51296b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51296b([0x2a])))[_0x51296b([0x6d,0x61,0x70])](_0x1bb86a=>_0x1bb86a[_0x51296b([0x73,0x70,0x6c,0x69,0x74])](_0x51296b([0x2e])))[_0x51296b([0x73,0x6f,0x6d,0x65])](_0x5a72df=>_0x33f12f[_0x51296b([0x65,0x76,0x65,0x72,0x79])]((_0x567f52,_0x1e9403)=>_0x5a72df[_0x1e9403]===_0x567f52||_0x5a72df[_0x1e9403]===_0x51296b([0x2a])));}function _0xb62bc0(){return _0x19fa9c&&_0x13019a?new window[(_0x51296b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x347fcc,_0x2815b0)=>{_0x19fa9c[_0x51296b([0x74,0x68,0x65,0x6e])](_0x347fcc,_0x2815b0),_0x13019a[_0x51296b([0x74,0x68,0x65,0x6e])](_0x5f01f7=>{_0x5f01f7!=_0x51296b([0x56,0x61,0x6c,0x69,0x64])&&_0x347fcc(_0x5f01f7);},_0x2815b0);}):_0x19fa9c||_0x13019a||_0x51296b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x7c28bd(_0x38b7a2,_0x22267b){return new window[(_0x51296b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58b9aa=>{if(_0x107cd4())return _0x58b9aa(_0x51296b([0x56,0x61,0x6c,0x69,0x64]));_0x477244(),_0x23cde6[_0x51296b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x51296b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x18842b=!0x1;const _0x9d6de0=_0x1e2513();function _0x5d61d0(_0x215699){return!!_0x215699&&(typeof _0x215699===_0x51296b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x215699===_0x51296b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x215699[_0x51296b([0x74,0x68,0x65,0x6e])]===_0x51296b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x215699[_0x51296b([0x63,0x61,0x74,0x63,0x68])]===_0x51296b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5ade07(_0x2de511){_0x5415bc(_0x2de511)[_0x51296b([0x74,0x68,0x65,0x6e])](_0x37da09=>{if(!_0x37da09||_0x37da09[_0x51296b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x51296b([0x6f,0x6b]))return _0x51296b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x42e094(_0x20a82b(_0x9d6de0+_0x22267b))!=_0x37da09[_0x51296b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x51296b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x51296b([0x56,0x61,0x6c,0x69,0x64]);})[_0x51296b([0x74,0x68,0x65,0x6e])](_0x5183f5=>(_0x2ea95e(),_0x5183f5),()=>{const _0x54330d=_0x393d0f();return null==_0x54330d?(_0x2ea95e(),_0x51296b([0x56,0x61,0x6c,0x69,0x64])):_0x51296b(_0x3a24b5-_0x54330d>(0x6c095958^_0x2826b5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x51296b([0x74,0x68,0x65,0x6e])](_0x58b9aa)[_0x51296b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58b9aa(_0x51296b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x49e48b=0x483333d8^_0x2826b5;function _0x2ea95e(){const _0x370c60=_0x51296b([0x6c,0x6c,0x63,0x74,0x2d])+_0x42e094(_0x20a82b(_0x38b7a2)),_0x36fba6=_0x1d9f49(_0x42e094(window[_0x51296b([0x4d,0x61,0x74,0x68])][_0x51296b([0x63,0x65,0x69,0x6c])](_0x3a24b5/_0x49e48b)));window[_0x51296b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51296b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x370c60,_0x36fba6);}function _0x393d0f(){const _0x260ef2=_0x51296b([0x6c,0x6c,0x63,0x74,0x2d])+_0x42e094(_0x20a82b(_0x38b7a2)),_0x5c8e73=window[_0x51296b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51296b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x260ef2);return _0x5c8e73?window[_0x51296b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d9f49(_0x5c8e73),0x10)*_0x49e48b:null;}function _0x5415bc(_0x2c2dba){return new window[(_0x51296b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40b339,_0x28a26d)=>{_0x2c2dba[_0x51296b([0x74,0x68,0x65,0x6e])](_0x40b339,_0x28a26d),window[_0x51296b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x28a26d,0x48040998^_0x2826b5);});}}_0x23cde6[_0x51296b([0x6f,0x6e])](_0x51296b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x7b657e,_0x496aa5)=>{if(_0x496aa5[0x0]!=_0x38b7a2)return _0x58b9aa(_0x51296b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x496aa5[0x1]={..._0x496aa5[0x1],[_0x51296b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x9d6de0};},{[_0x51296b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51296b([0x68,0x69,0x67,0x68])}),_0x23cde6[_0x51296b([0x6f,0x6e])](_0x51296b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x50bdd0=>{_0x5d61d0(_0x50bdd0[_0x51296b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x18842b=!0x0,_0x5ade07(_0x50bdd0[_0x51296b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x51296b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51296b([0x6c,0x6f,0x77])}),_0x25e8d0[_0x51296b([0x74,0x68,0x65,0x6e])](()=>{_0x18842b||_0x58b9aa(_0x51296b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x107cd4(){return _0x23cde6[_0x51296b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51296b([0x76,0x69,0x65,0x77])][_0x51296b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x51296b([0x61,0x75,0x74,0x6f]);}function _0x477244(){_0x23cde6[_0x51296b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51296b([0x76,0x69,0x65,0x77])][_0x51296b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51296b([0x61,0x75,0x74,0x6f]);}}function _0x2c41c1(_0xca1830){const _0x1cf8bb=[new window[(_0x51296b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c4eaf=>setTimeout(_0x1c4eaf,0x480ce394^_0x2826b5)),_0x25e8d0[_0x51296b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x51296b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38ba19=>{let _0x4f4052=0x0;_0x23cde6[_0x51296b([0x6d,0x6f,0x64,0x65,0x6c])][_0x51296b([0x6f,0x6e])](_0x51296b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x54f15f,_0x5ead79)=>{_0x5ead79[0x0][_0x51296b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4f4052++,_0x4f4052==(0x4805dca0^_0x2826b5)&&(_0x38ba19(),_0x54f15f[_0x51296b([0x6f,0x66,0x66])]());});}))];return window[_0x51296b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51296b([0x72,0x61,0x63,0x65])](_0x1cf8bb)[_0x51296b([0x74,0x68,0x65,0x6e])](()=>_0xca1830);}async function _0x10ba6a(){await _0x25e8d0,_0x23cde6[_0x51296b([0x6d,0x6f,0x64,0x65,0x6c])][_0x51296b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1de122,_0x23cde6[_0x51296b([0x6d,0x6f,0x64,0x65,0x6c])][_0x51296b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1de122,_0x23cde6[_0x51296b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x51296b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xc749a(_0x2c8b9d){const _0x19c2f1=_0x19f408();_0x23cde6[_0x19c2f1]=_0x51296b([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2c8b9d,_0x2c8b9d!=_0x51296b([0x56,0x61,0x6c,0x69,0x64])&&_0x10ba6a();}function _0x19f408(){const _0x1fac6e=window[_0x51296b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x51296b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x51296b([0x6e,0x6f,0x77])]())[_0x51296b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x51296b([0x2e]),'');let _0x45eac9=_0x51296b([0x4b]);for(let _0x29d79e=0x0;_0x29d79e<_0x1fac6e[_0x51296b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29d79e+=0x2){let _0x59081f=window[_0x51296b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fac6e[_0x51296b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29d79e,_0x29d79e+0x2));_0x59081f>=_0x44a862[_0x51296b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x59081f-=_0x44a862[_0x51296b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x45eac9+=_0x44a862[_0x59081f];}return _0x45eac9;}function _0x11f931(){const _0xe57b86=_0x30c016[_0x51296b([0x73,0x70,0x6c,0x69,0x74])](_0x51296b([0x2e]));if(0x3!=_0xe57b86[_0x51296b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x428d92(_0xe57b86[0x1]);function _0x428d92(_0xb2ae64){const _0x583a27=_0x13d181(_0xb2ae64);return _0x583a27&&_0x2f5709()?_0x583a27:null;function _0x2f5709(){const _0x580660=_0x583a27[_0x51296b([0x6a,0x74,0x69])],_0xa9e248=window[_0x51296b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x580660[_0x51296b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x580660[_0x51296b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x28af31={..._0x583a27,[_0x51296b([0x6a,0x74,0x69])]:_0x580660[_0x51296b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x580660[_0x51296b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x28af31[_0x51296b([0x76,0x63])],_0x20a82b(_0x28af31)==_0xa9e248;}}}async function _0x16520c(){let _0xf8027e=!0x0;try{const _0x241c64=_0x30c016[_0x51296b([0x73,0x70,0x6c,0x69,0x74])](_0x51296b([0x2e])),[_0x565dc2,_0x2c61af,_0x408f3f]=_0x241c64;return _0x1622a3(_0x565dc2),await _0x1c5a39(_0x565dc2,_0x2c61af,_0x408f3f),_0xf8027e;}catch(_0x254e92){return!0x1;}function _0x1622a3(_0x1fa35d){const _0x387e7a=_0x13d181(_0x1fa35d);_0x387e7a&&_0x387e7a[_0x51296b([0x61,0x6c,0x67])]==_0x51296b([0x45,0x53,0x32,0x35,0x36])||(_0xf8027e=!0x1);}async function _0x1c5a39(_0x19ad11,_0xfeaca,_0x2b27d0){const _0x3845b3=window[_0x51296b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x51296b([0x66,0x72,0x6f,0x6d])](_0x3f6f87(_0x2b27d0),_0x26fd89=>_0x26fd89[_0x51296b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x191bd=new window[(_0x51296b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x51296b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x19ad11+_0x51296b([0x2e])+_0xfeaca),_0xcb3369=window[_0x51296b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x51296b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xcb3369)return;const _0x5aa0d7=await _0xcb3369[_0x51296b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x51296b([0x6a,0x77,0x6b]),_0x1a6b3,{[_0x51296b([0x6e,0x61,0x6d,0x65])]:_0x51296b([0x45,0x43,0x44,0x53,0x41]),[_0x51296b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x51296b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x51296b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xcb3369[_0x51296b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x51296b([0x6e,0x61,0x6d,0x65])]:_0x51296b([0x45,0x43,0x44,0x53,0x41]),[_0x51296b([0x68,0x61,0x73,0x68])]:{[_0x51296b([0x6e,0x61,0x6d,0x65])]:_0x51296b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5aa0d7,_0x3845b3,_0x191bd)||(_0xf8027e=!0x1);}}function _0x13d181(_0x867cd5){return _0x867cd5[_0x51296b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x51296b([0x65,0x79]))?JSON[_0x51296b([0x70,0x61,0x72,0x73,0x65])](_0x3f6f87(_0x867cd5)):null;}function _0x3f6f87(_0x35e863){return window[_0x51296b([0x61,0x74,0x6f,0x62])](_0x35e863[_0x51296b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x51296b([0x2b]))[_0x51296b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x51296b([0x2f])));}function _0x20a82b(_0x10b011){let _0x261411=0x1505;function _0x4a2e2e(_0x510036){for(let _0x12e2d4=0x0;_0x12e2d4<_0x510036[_0x51296b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12e2d4++){const _0x3fc2d4=_0x510036[_0x51296b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x12e2d4);_0x261411=(_0x261411<<0x5)+_0x261411+_0x3fc2d4,_0x261411&=_0x261411;}}function _0x301ccf(_0x48c344){Array[_0x51296b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x48c344)?_0x48c344[_0x51296b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x301ccf):_0x48c344&&typeof _0x48c344==_0x51296b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x51296b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x48c344)[_0x51296b([0x73,0x6f,0x72,0x74])]()[_0x51296b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x348220,_0x18cb74])=>{_0x4a2e2e(_0x348220),_0x301ccf(_0x18cb74);}):_0x4a2e2e(window[_0x51296b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x48c344));}return _0x301ccf(_0x10b011),_0x261411>>>0x0;}function _0x42e094(_0x287d7b){return _0x287d7b[_0x51296b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x51296b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x51296b([0x30]));}function _0x1d9f49(_0x188659){return _0x188659[_0x51296b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x51296b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x51296b([0x6a,0x6f,0x69,0x6e])]('');}function _0x1de122(){}function _0x51296b(_0x5aa7a0){const _0xc82651=_0x1af9;return _0x5aa7a0[_0xc82651(0x1d7)](_0x250773=>String[_0xc82651(0x1ca)](_0x250773))[_0xc82651(0x196)]('');}_0xc749a(await _0x570d3b());}(this);}[_0x13b7ea(0x1cb)](){const _0x38206f=_0x13b7ea,_0x140e9d=this[_0x38206f(0x1c3)][_0x38206f(0x16e)];_0x140e9d[_0x38206f(0x1b7)](_0x242ff0=>{const _0x23aa17=_0x38206f,_0x3cb4c3=_0x140e9d[_0x23aa17(0x17e)][_0x23aa17(0x1cd)][_0x23aa17(0x192)]();let _0x5d8772=0x0;for(const _0x39989d of _0x3cb4c3){const _0x3652b7=f+':'+_0x5d8772;if(_0x140e9d[_0x23aa17(0x1af)][_0x23aa17(0x1bd)](_0x3652b7))_0x242ff0[_0x23aa17(0x16f)](_0x3652b7,{'range':_0x39989d});else{if(_0x39989d[_0x23aa17(0x181)][_0x23aa17(0x1d5)]){const _0x32f847=_0x39989d[_0x23aa17(0x181)][_0x23aa17(0x198)](({item:_0x325f67})=>!_0x140e9d[_0x23aa17(0x1a8)][_0x23aa17(0x1c9)](_0x325f67),{'boundaries':_0x39989d});_0x242ff0[_0x23aa17(0x1c4)](_0x3652b7,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x242ff0[_0x23aa17(0x16b)](_0x32f847,_0x39989d[_0x23aa17(0x1b1)])});}else _0x242ff0[_0x23aa17(0x1c4)](_0x3652b7,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x39989d});}_0x5d8772++;}});}[_0x13b7ea(0x190)](){const _0x1a0bab=_0x13b7ea,_0x4a66f2=this[_0x1a0bab(0x1c3)][_0x1a0bab(0x16e)],_0x2ba17e=Array[_0x1a0bab(0x171)](this[_0x1a0bab(0x1c3)][_0x1a0bab(0x16e)][_0x1a0bab(0x1af)][_0x1a0bab(0x179)](f));_0x2ba17e[_0x1a0bab(0x18e)]&&_0x4a66f2[_0x1a0bab(0x1b7)](_0x5d1f5b=>{const _0x4d9079=_0x1a0bab;_0x2ba17e[_0x4d9079(0x189)](_0x371ebf=>{const _0x185b47=_0x4d9079;_0x5d1f5b[_0x185b47(0x176)](_0x371ebf);});});}[_0x13b7ea(0x1a1)](_0x589298,_0x5e4b38){const _0x3518ec=_0x13b7ea,_0x47a5e8=this[_0x3518ec(0x19e)](),_0x6deb56=_0x5e4b38||_0x47a5e8[_0x3518ec(0x1c7)]();this[_0x3518ec(0x1c3)][_0x3518ec(0x16e)][_0x3518ec(0x1c0)](_0x6deb56)&&this[_0x3518ec(0x1c3)][_0x3518ec(0x16e)][_0x3518ec(0x1b7)](_0x842b68=>{const _0x55e297=_0x3518ec;this[_0x55e297(0x190)](),_0x5e4b38||this[_0x55e297(0x1c2)](_0x842b68,_0x47a5e8),this[_0x55e297(0x187)]({'insertAt':_0x6deb56,'writer':_0x842b68,'html':_0x589298});});}[_0x13b7ea(0x1ab)](_0xcb7a02){const _0x49d42f=_0x13b7ea,{model:_0x17dd0c}=this[_0x49d42f(0x1c3)],_0x161227=this[_0x49d42f(0x19e)]();_0x17dd0c[_0x49d42f(0x1b7)](()=>{const _0x2a7b4e=_0x49d42f,_0x1efcaa=this[_0x2a7b4e(0x1d8)](_0xcb7a02,_0x161227)||this[_0x2a7b4e(0x1b0)](_0x161227);this[_0x2a7b4e(0x1a1)](_0xcb7a02,_0x1efcaa);});}[_0x13b7ea(0x19e)](){const _0x3082cd=_0x13b7ea,_0x56e090=this[_0x3082cd(0x1c3)][_0x3082cd(0x16e)],_0x228474=Array[_0x3082cd(0x171)](_0x56e090[_0x3082cd(0x1af)][_0x3082cd(0x179)](f))[_0x3082cd(0x1d7)](_0x3b232f=>_0x3b232f[_0x3082cd(0x19a)]());return _0x56e090[_0x3082cd(0x1ad)](_0x228474);}[_0x13b7ea(0x187)]({writer:_0x2add75,html:_0x19f3d6,insertAt:_0x28d0b7}){const _0x386720=_0x13b7ea,{view:_0x384a73}=this[_0x386720(0x1c3)][_0x386720(0x1a9)],_0x381155=this[_0x386720(0x1c3)][_0x386720(0x19d)][_0x386720(0x170)](_0xc4123e),_0x267dd7=new w();_0x267dd7[_0x386720(0x18c)](_0x386720(0x186),_0x19f3d6);const _0x3bfabd=new ClipboardEvent(_0x386720(0x18d),{'clipboardData':_0x267dd7}),_0x13692e=new _0x27ca5e(_0x384a73,_0x3bfabd,{'dataTransfer':new _0x1c6167(_0x267dd7)});_0x2add75[_0x386720(0x1d0)](_0x28d0b7);const _0x31b705=(_0xb3bd73,_0x484f52)=>{const _0x5825c4=_0x386720;_0x484f52[_0x5825c4(0x199)]&&_0x2add75[_0x5825c4(0x1d0)](_0x484f52[_0x5825c4(0x199)]);};_0x381155[_0x386720(0x1a3)](_0x386720(0x1b9),_0x31b705,{'priority':_0x386720(0x180)}),_0x384a73[_0x386720(0x17e)][_0x386720(0x183)](_0x386720(0x18d),_0x13692e),_0x381155[_0x386720(0x188)](_0x386720(0x1b9),_0x31b705);}[_0x13b7ea(0x1b0)](_0x855bb7){const _0x4174bd=_0x13b7ea,{model:_0x34a6db}=this[_0x4174bd(0x1c3)],_0x16191f=Array[_0x4174bd(0x171)](_0x855bb7[_0x4174bd(0x1d6)]());return _0x16191f[_0x4174bd(0x18e)]?_0x34a6db[_0x4174bd(0x1cc)](_0x16191f[_0x4174bd(0x1a2)]()):_0x855bb7[_0x4174bd(0x1ae)]();}[_0x13b7ea(0x1d8)](_0x1f3e72,_0x1e8f41){const _0x1ead31=_0x13b7ea,{model:_0x3c7f94,plugins:_0x43f41f}=this[_0x1ead31(0x1c3)];if(_0x43f41f[_0x1ead31(0x1bd)](_0x1ead31(0x1b8))){const _0xa8668e=_0x43f41f[_0x1ead31(0x170)](_0x1ead31(0x1b8))[_0x1ead31(0x1b4)](_0x1e8f41);if(_0xa8668e[_0x1ead31(0x18e)]){const _0x204c53=this[_0x1ead31(0x197)](_0x1f3e72),_0x3e4e29=this[_0x1ead31(0x1d2)](_0xa8668e,_0x204c53);return _0x3c7f94[_0x1ead31(0x1bc)](_0x3e4e29,0x0);}}return null;}[_0x13b7ea(0x197)](_0x20fd9e){const _0x3e0573=_0x13b7ea,_0x41c1e0=this[_0x3e0573(0x1c3)][_0x3e0573(0x19d)][_0x3e0573(0x170)](_0x3e0573(0x1b8)),_0x1ec82e=this[_0x3e0573(0x1c3)][_0x3e0573(0x16c)][_0x3e0573(0x184)](_0x20fd9e),_0x106f64=Array[_0x3e0573(0x171)](_0x1ec82e[_0x3e0573(0x17f)]())[_0x3e0573(0x1c1)](_0x5124d4=>_0x5124d4['is'](_0x3e0573(0x1b2),_0x3e0573(0x194)));let _0x5d1ff0=0x0;return _0x106f64[_0x3e0573(0x189)](_0x2f0f31=>{const _0x210b08=_0x3e0573;_0x5d1ff0+=_0x41c1e0[_0x210b08(0x1b6)](_0x2f0f31);}),_0x5d1ff0;}[_0x13b7ea(0x1d2)](_0x480f97,_0x4dfbd5){const _0x56a609=_0x13b7ea,_0x5833b=this[_0x56a609(0x1c3)][_0x56a609(0x19d)][_0x56a609(0x170)](_0x56a609(0x1b8)),_0x5686ff=_0x5833b[_0x56a609(0x174)](_0x480f97),_0xcc5243=_0x5833b[_0x56a609(0x17b)](_0x480f97),_0xc3ac14=_0x5686ff[_0x56a609(0x1d3)]+0x1,_0x380c6b=_0xcc5243[_0x56a609(0x172)],_0x57a923=_0x480f97[0x0][_0x56a609(0x16a)](_0x56a609(0x194));for(let _0x2acfc1=0x0;_0x2acfc1<_0x4dfbd5;_0x2acfc1++)_0x5833b[_0x56a609(0x17d)](_0x57a923,{'at':_0xc3ac14});return _0x57a923[_0x56a609(0x1ac)](_0xc3ac14)[_0x56a609(0x1ac)](_0x380c6b);}[_0x13b7ea(0x1c2)](_0x37c63f,_0x3295d6){const _0x5ea79e=_0x13b7ea,{plugins:_0x31ea07}=this[_0x5ea79e(0x1c3)],{model:_0x482663}=_0x37c63f;if(!_0x31ea07[_0x5ea79e(0x1bd)](_0x5ea79e(0x1b8)))return;_0x31ea07[_0x5ea79e(0x170)](_0x5ea79e(0x1b8))[_0x5ea79e(0x1b4)](_0x3295d6)[_0x5ea79e(0x18e)]&&_0x482663[_0x5ea79e(0x1bb)](_0x3295d6);}}
|
package/src/aiassistantui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x18351d=_0x2a4e;(function(_0x2d34a6,_0x5b6458){const _0x28c1f1=_0x2a4e,_0x52f393=_0x2d34a6();while(!![]){try{const _0x20ccf5=parseInt(_0x28c1f1(0x1ea))/0x1+-parseInt(_0x28c1f1(0x1a8))/0x2+-parseInt(_0x28c1f1(0x229))/0x3*(parseInt(_0x28c1f1(0x1c4))/0x4)+parseInt(_0x28c1f1(0x1a5))/0x5*(parseInt(_0x28c1f1(0x185))/0x6)+-parseInt(_0x28c1f1(0x224))/0x7*(parseInt(_0x28c1f1(0x20b))/0x8)+parseInt(_0x28c1f1(0x20e))/0x9+-parseInt(_0x28c1f1(0x1dd))/0xa*(-parseInt(_0x28c1f1(0x223))/0xb);if(_0x20ccf5===_0x5b6458)break;else _0x52f393['push'](_0x52f393['shift']());}catch(_0x3f0083){_0x52f393['push'](_0x52f393['shift']());}}}(_0x183e,0x1ff9f));import{Plugin as _0x2dc154}from'ckeditor5/src/core.js';import{IconMagicWand as _0x229b03,IconRobotPencil as _0x59eff1}from'ckeditor5/src/icons.js';import{first as _0x53a91f,CKEditorError as _0x5a267d}from'ckeditor5/src/utils.js';import{createDropdown as _0xaf1ff3,addMenuToDropdown as _0x1bbb03,ButtonView as _0x4fbd72,MenuBarMenuListItemButtonView as _0x2b9b3b,Dialog as _0x416032,DialogViewPosition as _0x55f919,MenuBarMenuView as _0x4dca8f,MenuBarMenuListView as _0x4a81ee,MenuBarMenuListItemView as _0x1616e2}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x21a00b,UNGROUPED_COMMANDS_GROUP_ID as _0x4e42c8}from'./utils/normalizecommandsconfig.js';import _0x2cef4a from'./aiassistantediting.js';import _0x5b14bb from'./adapters/aiadapter.js';import{getTranslation as _0x1e2272}from'./utils/common-translations.js';import _0x110c86 from'./ui/showaiassistantcommand.js';function _0x183e(){const _0x4ee6e1=['define','menuitemcheckbox','getSelectedElement','_uiCssClasses','plugins','requires','includes','copy','_getResolvedCommandsDefinitions','_dialog','schema','execute','hide','showUI','aiCommands','_onExecute','isPremiumPlugin','media','menuView','ai.aiAssistant.commands','add','licenseKey','_aiAdapter','showAIAssistant','children','17904jGgDAD','featureNotAllowed','update','421686EfyhoC','announce','trialLimit','isEnabled','aiLicenseKeyEvaluationLimit','buttons','groupId','fire','sort','currentContext','aiAssistant','isFlat','comment','replaceContent','expired','_initAriaAiStatusChangeAnnouncements','AI\x20Assistant','insertContent','length','prompt','AIAssistantUI','44ibtqOZ','266mhdTgj','aiLicenseKeyDomainLimit','aiLicenseKeyValid','hideUI','change:isProcessing','371949eXjzvw','evaluationLimit','ck-ai-assistant-button\x20','isCollapsed','buttonView','label','ai-commands-config-order-collision','custom','push','_getMenuBarGroupButtons','commands','ai.aiAssistant.contentAreaCssClass','ai.useTheme','1062hRyeuE','requiresContent','replace','rawHtml','usageLimit','getSelectedBlocks','ai.aiAssistant.disabledElements','isOn','promptView','aiLicenseKeyTrialLimit','getLimitElement','values','invalid','get','map','show','groupLabel','componentFactory','listenTo','items','once','Generated\x20content:\x20%0','reset','AI\x20Commands','\x20ck-ai-assistant-ui_theme','isOfficialPlugin','INSERT','model','change:isError','DataTransfer','body','tableOfContents','5380bnZClx','ck-ai-assistant-ui','config','5678nFBXEC','setSelection','contentArea','AI\x20is\x20writing','fieldView','aiLicenseKeyNotAllowed','_aiAssistantController','updateView','source','_showLicenseError','from','getData','addMany','bind','_commandDefinitions','menuPanelClass','ck-ai-commands-dropdown\x20','hideFakeVisualSelection','editor','textAdapter','insertContentBelow','domainLimit','trim','command:','updatePosition','init','view','AIAssistant','4tzToTu','editing','_createAIAssistantUIButton','EDITOR_TOP_SIDE','selection','text','errorView','menuBar:aiAssistant','aiLicenseKeyExpired','</p>','queryView','_initView','delegate','menuBar:aiCommands','Error\x20during\x20AI\x20content\x20generation:\x20%0','REPLACE','wasMoved','focus','polite','forEach','set','pluginName','_formView','aiLicenseKeyUsageLimit','showFakeVisualSelection','251620aDYLIf','change','document','text/html','destroy','splice','_populateMenuBarMenu','<p>','enabledCommandsIds','_forceMarkersCopy','render','aiLicenseKeyInvalid','change:value','4887zjvXpY','panelView','filter','locale','_licenseKeyCheckInterval','order','change:enabledCommandsIds','getRanges'];_0x183e=function(){return _0x4ee6e1;};return _0x183e();}import _0x1da23f from'./ui/aiassistantcontroller.js';function _0x2a4e(_0x49209c,_0x4f2f66){const _0x183e3f=_0x183e();return _0x2a4e=function(_0x2a4e40,_0x2bf9ef){_0x2a4e40=_0x2a4e40-0x184;let _0x4184f0=_0x183e3f[_0x2a4e40];return _0x4184f0;},_0x2a4e(_0x49209c,_0x4f2f66);}import _0x3504ed from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x28d48f}from'./ui/form/aiformtoolbarview.js';import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';const w=globalThis[_0x18351d(0x1a2)];import{ClipboardMarkersUtils as _0x268de2}from'ckeditor5/src/clipboard.js';import{DomEventData as _0x5a6f24,DataTransfer as _0x47e839}from'ckeditor5/src/engine.js';export default class n extends _0x2dc154{[_0x18351d(0x207)];[_0x18351d(0x1ee)];[_0x18351d(0x1fb)];[_0x18351d(0x1da)];[_0x18351d(0x208)];[_0x18351d(0x1ae)];[_0x18351d(0x1f5)]='';static get[_0x18351d(0x1d9)](){const _0x1a9e4c=_0x18351d;return _0x1a9e4c(0x222);}static get[_0x18351d(0x19e)](){return!0x0;}static get[_0x18351d(0x202)](){return!0x0;}static get[_0x18351d(0x1f7)](){return[_0x268de2,_0x2cef4a,_0x5b14bb,_0x416032];}constructor(_0x121185){const _0x43cedb=_0x18351d;super(_0x121185),_0x121185[_0x43cedb(0x1a7)][_0x43cedb(0x1f2)](_0x43cedb(0x18b),[_0x43cedb(0x203),_0x43cedb(0x188),_0x43cedb(0x1a4)]),_0x121185[_0x43cedb(0x1a7)][_0x43cedb(0x1f2)](_0x43cedb(0x234),''),_0x121185[_0x43cedb(0x1a7)][_0x43cedb(0x1f2)](_0x43cedb(0x184),!0x0),this[_0x43cedb(0x1f5)]=_0x43cedb(0x1a6)+(_0x121185[_0x43cedb(0x1a7)][_0x43cedb(0x192)](_0x43cedb(0x184))?_0x43cedb(0x19d):'');}[_0x18351d(0x1c1)](){const _0x204eed=_0x18351d,{editor:_0x1a442f}=this;this[_0x204eed(0x208)]=_0x1a442f[_0x204eed(0x1f6)][_0x204eed(0x192)](_0x5b14bb),this[_0x204eed(0x1fb)]=_0x1a442f[_0x204eed(0x1f6)][_0x204eed(0x192)](_0x416032),this[_0x204eed(0x1da)]=null,this[_0x204eed(0x1b6)]=this[_0x204eed(0x1fa)]();const _0x25d1a6=new _0x110c86(_0x1a442f,Array[_0x204eed(0x1b2)](this[_0x204eed(0x1b6)][_0x204eed(0x190)]()));_0x1a442f[_0x204eed(0x233)][_0x204eed(0x206)](_0x204eed(0x209),_0x25d1a6),_0x1a442f['ui'][_0x204eed(0x196)][_0x204eed(0x206)](_0x204eed(0x200),_0x427d4e=>{const _0x4dfdd4=_0x204eed,_0x52bdce=_0xaf1ff3(_0x427d4e);return _0x52bdce[_0x4dfdd4(0x1d8)]({'class':_0x4dfdd4(0x1b8)+this[_0x4dfdd4(0x1f5)]}),_0x52bdce[_0x4dfdd4(0x22d)][_0x4dfdd4(0x1d8)]({'label':_0x1e2272(_0x427d4e,_0x4dfdd4(0x19c)),'icon':_0x229b03,'tooltip':!0x0}),_0x52bdce['on'](_0x4dfdd4(0x1fd),_0x1a3e9a=>this[_0x4dfdd4(0x201)](_0x1a3e9a[_0x4dfdd4(0x1b0)]['id'])),_0x1bbb03(_0x52bdce,_0x1a442f['ui'][_0x4dfdd4(0x1c2)][_0x4dfdd4(0x1a3)],function(_0x171770){const _0x26d299=_0x4dfdd4,_0x1e0cf2=_0x21a00b(_0x171770[_0x26d299(0x1a7)][_0x26d299(0x192)](_0x26d299(0x205)),_0x171770[_0x26d299(0x1ed)]),_0x39e4fa=U(_0x171770,_0x1e0cf2)[_0x26d299(0x1ec)](_0x1f1b84=>_0x1f1b84[_0x26d299(0x233)][_0x26d299(0x220)]);if(0x1===_0x39e4fa[_0x26d299(0x220)])return U(_0x171770,_0x39e4fa[0x0][_0x26d299(0x233)])[_0x26d299(0x193)](_0x347f46=>({'id':_0x347f46['id'],'label':_0x347f46[_0x26d299(0x22e)]}));return _0x39e4fa[_0x26d299(0x193)](_0x39aeb7=>{const _0x42ce1c=_0x26d299,{groupId:_0x26a93e,groupLabel:_0x437b1b,commands:_0x45aa4a}=_0x39aeb7,_0x492e7a=U(_0x171770,_0x45aa4a)[_0x42ce1c(0x193)](_0x39c4be=>({'id':_0x39c4be['id'],'label':_0x39c4be[_0x42ce1c(0x22e)]}));return{'id':_0x26a93e,'menu':_0x437b1b||_0x26a93e,'children':_0x492e7a};});}(_0x1a442f),{'ariaLabel':_0x1e2272(_0x427d4e,_0x4dfdd4(0x19c))}),_0x52bdce[_0x4dfdd4(0x204)][_0x4dfdd4(0x1b7)]=_0x4dfdd4(0x1b8)+this[_0x4dfdd4(0x1f5)],_0x25d1a6['on'](_0x4dfdd4(0x1f0),_0x244ad9),_0x52bdce[_0x4dfdd4(0x204)][_0x4dfdd4(0x199)](_0x4dfdd4(0x1e7),_0x244ad9),_0x52bdce;function _0x244ad9(){const _0x557ac3=_0x4dfdd4;_0x52bdce[_0x557ac3(0x211)]=_0x25d1a6[_0x557ac3(0x1e5)][_0x557ac3(0x220)]>0x0;for(const _0x2c635b of _0x52bdce[_0x557ac3(0x204)][_0x557ac3(0x213)])_0x2c635b[_0x557ac3(0x211)]=_0x25d1a6[_0x557ac3(0x1e5)][_0x557ac3(0x1f8)](_0x2c635b['id']);}}),_0x1a442f['ui'][_0x204eed(0x196)][_0x204eed(0x206)](_0x204eed(0x1d1),_0x253089=>{const _0xfdf22b=_0x204eed,_0x265544=new _0x4dca8f(_0x253089);_0x265544[_0xfdf22b(0x22d)][_0xfdf22b(0x1d8)]({'label':_0x1e2272(_0x253089,_0xfdf22b(0x19c)),'icon':_0x229b03}),_0x265544[_0xfdf22b(0x1b5)](_0xfdf22b(0x211))['to'](_0x25d1a6,_0xfdf22b(0x1e5),_0x50fc89=>_0x50fc89[_0xfdf22b(0x220)]>0x0);const _0x3c6676=_0x21a00b(_0x1a442f[_0xfdf22b(0x1a7)][_0xfdf22b(0x192)](_0xfdf22b(0x205)),_0x253089);return this[_0xfdf22b(0x1e3)](_0x25d1a6,_0x265544,_0x3c6676,_0x2c4a69=>this[_0xfdf22b(0x201)](_0x2c4a69)),_0x265544;}),_0x1a442f['ui'][_0x204eed(0x196)][_0x204eed(0x206)](_0x204eed(0x218),()=>{const _0x530566=_0x204eed,_0x5f0293=this[_0x530566(0x1c6)](_0x4fbd72);return _0x5f0293[_0x530566(0x1d8)]({'tooltip':!0x0,'class':_0x530566(0x22b)+this[_0x530566(0x1f5)]}),_0x5f0293;}),_0x1a442f['ui'][_0x204eed(0x196)][_0x204eed(0x206)](_0x204eed(0x1cb),()=>{const _0x3c53f0=_0x204eed,_0x202498=this[_0x3c53f0(0x1c6)](_0x2b9b3b);return _0x202498[_0x3c53f0(0x1d8)]({'role':_0x3c53f0(0x1f3)}),_0x202498;}),this[_0x204eed(0x207)]=this[_0x204eed(0x1ba)][_0x204eed(0x1a7)][_0x204eed(0x192)](_0x204eed(0x207));const _0x27ddbb=this[_0x204eed(0x1ba)];this[_0x204eed(0x1ee)]=setInterval(()=>{const _0x1d956b=_0x204eed;let _0x4c6f0f;for(const _0xf53c8e in _0x27ddbb){const _0x1eedad=_0xf53c8e,_0xeebf30=_0x27ddbb[_0x1eedad];if(_0x1d956b(0x226)==_0xeebf30||_0x1d956b(0x1e8)==_0xeebf30||_0x1d956b(0x1cc)==_0xeebf30||_0x1d956b(0x225)==_0xeebf30||_0x1d956b(0x1ad)==_0xeebf30||_0x1d956b(0x212)==_0xeebf30||_0x1d956b(0x18e)==_0xeebf30||_0x1d956b(0x1db)==_0xeebf30){delete _0x27ddbb[_0x1eedad],_0x4c6f0f=_0xeebf30,clearInterval(this[_0x1d956b(0x1ee)]),this[_0x1d956b(0x1ee)]=void 0x0;break;}}_0x1d956b(0x1e8)==_0x4c6f0f&&_0x27ddbb[_0x1d956b(0x1b1)](_0x1d956b(0x191)),_0x1d956b(0x1cc)==_0x4c6f0f&&_0x27ddbb[_0x1d956b(0x1b1)](_0x1d956b(0x21c)),_0x1d956b(0x225)==_0x4c6f0f&&_0x27ddbb[_0x1d956b(0x1b1)](_0x1d956b(0x1bd)),_0x1d956b(0x1ad)==_0x4c6f0f&&_0x27ddbb[_0x1d956b(0x1b1)](_0x1d956b(0x20c),_0x1d956b(0x1c3)),_0x1d956b(0x212)==_0x4c6f0f&&_0x27ddbb[_0x1d956b(0x1b1)](_0x1d956b(0x22a)),_0x1d956b(0x18e)==_0x4c6f0f&&_0x27ddbb[_0x1d956b(0x1b1)](_0x1d956b(0x210)),_0x1d956b(0x1db)==_0x4c6f0f&&_0x27ddbb[_0x1d956b(0x1b1)](_0x1d956b(0x189));},0x3e8);}[_0x18351d(0x1e1)](){const _0x1247da=_0x18351d;super[_0x1247da(0x1e1)](),this[_0x1247da(0x1ee)]&&clearInterval(this[_0x1247da(0x1ee)]);}[_0x18351d(0x1ff)](_0x50df0c='',_0x6738ce='',_0x562461=_0x18351d(0x230)){const _0x1f3bfd=_0x18351d,_0x4f8685=this[_0x1f3bfd(0x1ba)],_0x58478f=_0x4f8685[_0x1f3bfd(0x1c5)][_0x1f3bfd(0x1c2)],_0x4544cb=_0x4f8685[_0x1f3bfd(0x1f6)][_0x1f3bfd(0x192)](_0x2cef4a),_0xe9723b=_0x4f8685[_0x1f3bfd(0x1f6)][_0x1f3bfd(0x192)](_0x268de2);_0x4544cb[_0x1f3bfd(0x1dc)]();const _0x537d32=new w(),_0xbf7084=new ClipboardEvent(_0x1f3bfd(0x1f9),{'clipboardData':_0x537d32}),_0x462fd3=new _0x47e839(_0x537d32),_0x409f45=new _0x5a6f24(_0x58478f,_0xbf7084,{'dataTransfer':_0x462fd3});_0xe9723b[_0x1f3bfd(0x1e6)](_0x1f3bfd(0x21a),()=>{const _0x4eaeab=_0x1f3bfd;_0x58478f[_0x4eaeab(0x1df)][_0x4eaeab(0x215)](_0x4eaeab(0x1f9),_0x409f45);}),this[_0x1f3bfd(0x1da)]||(this[_0x1f3bfd(0x1cf)](),this[_0x1f3bfd(0x1ae)]=new _0x1da23f(_0x4f8685,this[_0x1f3bfd(0x208)][_0x1f3bfd(0x1bb)],this[_0x1f3bfd(0x1da)]));let _0x31c067=_0x462fd3[_0x1f3bfd(0x1b3)](_0x1f3bfd(0x1e0));const _0x20e385=_0x4f8685[_0x1f3bfd(0x1a0)][_0x1f3bfd(0x1df)][_0x1f3bfd(0x1c8)],_0x35d5fe=Array[_0x1f3bfd(0x1b2)](_0x20e385[_0x1f3bfd(0x1f1)]());0x1===_0x35d5fe[_0x1f3bfd(0x220)]&&_0x35d5fe[0x0][_0x1f3bfd(0x219)]&&!_0x20e385[_0x1f3bfd(0x1f4)]()&&''!==_0x31c067[_0x1f3bfd(0x187)](/ /g,'')[_0x1f3bfd(0x1be)]()&&(_0x31c067=_0x1f3bfd(0x1e4)+_0x31c067+_0x1f3bfd(0x1cd)),this[_0x1f3bfd(0x1ae)][_0x1f3bfd(0x1af)]({'actionId':_0x562461,'query':_0x50df0c,'htmlContent':_0x31c067,'label':_0x6738ce,'mainActionLabel':_0x28d48f[_0x4f8685[_0x1f3bfd(0x1a0)][_0x1f3bfd(0x1df)][_0x1f3bfd(0x1c8)][_0x1f3bfd(0x22c)]?_0x1f3bfd(0x19f):_0x1f3bfd(0x1d3)]}),_0x1f3bfd(0x218)!==this[_0x1f3bfd(0x1fb)]['id']?this[_0x1f3bfd(0x1fb)][_0x1f3bfd(0x194)]({'id':_0x1f3bfd(0x218),'icon':_0x59eff1,'title':_0x1e2272(this[_0x1f3bfd(0x1ba)][_0x1f3bfd(0x1ed)],_0x1f3bfd(0x21e)),'content':this[_0x1f3bfd(0x1da)],'position':_0x55f919[_0x1f3bfd(0x1c7)],'onShow':()=>{const _0x56646c=_0x1f3bfd;this[_0x56646c(0x1da)][_0x56646c(0x1d5)]();},'onHide':()=>{const _0x4c3ba9=_0x1f3bfd;this[_0x4c3ba9(0x1ae)][_0x4c3ba9(0x19b)](),_0x4544cb[_0x4c3ba9(0x1b9)]();}}):this[_0x1f3bfd(0x1fb)][_0x1f3bfd(0x1c2)][_0x1f3bfd(0x1d4)]||this[_0x1f3bfd(0x1fb)][_0x1f3bfd(0x1c2)][_0x1f3bfd(0x1c0)]();}[_0x18351d(0x227)](){const _0x167bb3=_0x18351d;this[_0x167bb3(0x1fb)][_0x167bb3(0x1fe)]();}[_0x18351d(0x1fa)](){const _0x300d37=_0x18351d,_0x42a410=new Map(),_0x4eb5ae=_0x21a00b(this[_0x300d37(0x1ba)][_0x300d37(0x1a7)][_0x300d37(0x192)](_0x300d37(0x205)),this[_0x300d37(0x1ba)][_0x300d37(0x1ed)]);for(const _0x555186 of _0x4eb5ae)for(const _0xa16cbe of _0x555186[_0x300d37(0x233)])_0x42a410[_0x300d37(0x1d8)](_0xa16cbe['id'],{..._0xa16cbe,'groupId':_0x555186[_0x300d37(0x214)],'groupLabel':_0x555186[_0x300d37(0x195)]||_0x555186[_0x300d37(0x214)]});return _0x42a410;}[_0x18351d(0x1c6)](_0x4bce1b){const _0x5a8edd=_0x18351d,_0x513031=this[_0x5a8edd(0x1ba)],_0x2082df=_0x513031[_0x5a8edd(0x233)][_0x5a8edd(0x192)](_0x5a8edd(0x209)),_0x146d50=new _0x4bce1b(_0x513031[_0x5a8edd(0x1ed)]);return _0x146d50[_0x5a8edd(0x1d8)]({'label':_0x1e2272(_0x513031[_0x5a8edd(0x1ed)],_0x5a8edd(0x21e)),'icon':_0x59eff1,'isToggleable':!0x0}),_0x146d50[_0x5a8edd(0x1b5)](_0x5a8edd(0x211))['to'](_0x2082df),_0x146d50[_0x5a8edd(0x1b5)](_0x5a8edd(0x18c))['to'](this[_0x5a8edd(0x1fb)],'id',_0x2ebcc1=>_0x5a8edd(0x218)===_0x2ebcc1),this[_0x5a8edd(0x197)](_0x146d50,_0x5a8edd(0x1fd),()=>{const _0x18470e=_0x5a8edd;_0x146d50[_0x18470e(0x18c)]?this[_0x18470e(0x227)]():_0x2082df[_0x18470e(0x1fd)]();}),_0x146d50;}[_0x18351d(0x1cf)](){const _0xa05f8c=_0x18351d,_0x2f90c5=this[_0xa05f8c(0x1ba)][_0xa05f8c(0x1f6)][_0xa05f8c(0x192)](_0x2cef4a);this[_0xa05f8c(0x1da)]=new _0x3504ed(this[_0xa05f8c(0x1ba)][_0xa05f8c(0x1ed)],this[_0xa05f8c(0x1f5)],this[_0xa05f8c(0x1ba)][_0xa05f8c(0x1a7)][_0xa05f8c(0x192)](_0xa05f8c(0x234))),this[_0xa05f8c(0x1da)]['on'](_0xa05f8c(0x1e9),()=>{const _0x197bf7=_0xa05f8c;this[_0x197bf7(0x1fb)][_0x197bf7(0x1c2)][_0x197bf7(0x1d4)]||this[_0x197bf7(0x1fb)][_0x197bf7(0x1c2)][_0x197bf7(0x1c0)]();}),this[_0xa05f8c(0x1da)][_0xa05f8c(0x18d)][_0xa05f8c(0x1ce)][_0xa05f8c(0x1ac)]['on'](_0xa05f8c(0x20d),()=>{const _0x12ff21=_0xa05f8c;this[_0x12ff21(0x1fb)][_0x12ff21(0x1c2)][_0x12ff21(0x1d4)]||this[_0x12ff21(0x1fb)][_0x12ff21(0x1c2)][_0x12ff21(0x1c0)]();}),this[_0xa05f8c(0x197)](this[_0xa05f8c(0x1da)],_0xa05f8c(0x21b),()=>{const _0x4ef921=_0xa05f8c;_0x2f90c5[_0x4ef921(0x21f)](this[_0x4ef921(0x1ae)][_0x4ef921(0x217)]),this[_0x4ef921(0x227)]();}),this[_0xa05f8c(0x197)](this[_0xa05f8c(0x1da)],_0xa05f8c(0x1bc),()=>{const _0x3a2957=_0xa05f8c;_0x2f90c5[_0x3a2957(0x1bc)](this[_0x3a2957(0x1ae)][_0x3a2957(0x217)]),this[_0x3a2957(0x227)]();}),this[_0xa05f8c(0x21d)]();}[_0x18351d(0x21d)](){const _0x472aa6=_0x18351d,{locale:_0x2b2fe9,ui:{ariaLiveAnnouncer:_0x42ab01}}=this[_0x472aa6(0x1ba)];this[_0x472aa6(0x1da)][_0x472aa6(0x1aa)]['on'](_0x472aa6(0x228),(_0x1e1751,_0x55faa3,_0x282a35)=>{const _0x308529=_0x472aa6,_0xa78440=this[_0x308529(0x1ae)][_0x308529(0x217)];_0x282a35?_0x42ab01[_0x308529(0x20f)](_0x1e2272(_0x2b2fe9,_0x308529(0x1ab))):_0xa78440&&_0x42ab01[_0x308529(0x20f)](_0x1e2272(_0x2b2fe9,_0x308529(0x19a),_0xa78440),{'politeness':_0x308529(0x1d6),'isUnsafeHTML':!0x0});}),this[_0x472aa6(0x1da)]['on'](_0x472aa6(0x1a1),(_0x499b81,_0xa6c34a,_0x33ea53)=>{const _0x20c471=_0x472aa6;if(_0x33ea53){const _0x3bae45=this[_0x20c471(0x1da)][_0x20c471(0x1ca)][_0x20c471(0x1c9)];_0x42ab01[_0x20c471(0x20f)](_0x1e2272(_0x2b2fe9,_0x20c471(0x1d2),_0x3bae45));}});}[_0x18351d(0x201)](_0x33d7b8){const _0x244f99=_0x18351d,_0x4bc8f0=this[_0x244f99(0x1b6)][_0x244f99(0x192)](_0x33d7b8),_0x2b5c13=this[_0x244f99(0x1ba)],_0x344ddc=_0x2b5c13[_0x244f99(0x1a0)][_0x244f99(0x1df)][_0x244f99(0x1c8)],_0x3bd8c5=_0x2b5c13[_0x244f99(0x233)][_0x244f99(0x192)](_0x244f99(0x209)),_0x60a781=_0x2b5c13[_0x244f99(0x1f6)][_0x244f99(0x192)](_0x2cef4a),_0x1767e1=''+(_0x4bc8f0[_0x244f99(0x214)]!==_0x4e42c8?_0x4bc8f0[_0x244f99(0x195)]+':\x20':'')+_0x4bc8f0[_0x244f99(0x22e)];if(!0x1!==_0x4bc8f0[_0x244f99(0x186)]&&_0x344ddc[_0x244f99(0x22c)]){const _0x574534=_0x53a91f(_0x344ddc[_0x244f99(0x18a)]())||_0x2b5c13[_0x244f99(0x1a0)][_0x244f99(0x1fc)][_0x244f99(0x18f)](_0x344ddc);_0x2b5c13[_0x244f99(0x1a0)][_0x244f99(0x1de)](_0x1bb220=>{const _0x58da45=_0x244f99;_0x1bb220[_0x58da45(0x1a9)](_0x574534,'in');});}_0x60a781[_0x244f99(0x1dc)](),_0x3bd8c5[_0x244f99(0x1fd)](_0x4bc8f0[_0x244f99(0x221)],_0x1767e1,_0x244f99(0x1bf)+_0x33d7b8);}[_0x18351d(0x1e3)](_0x45c3f1,_0x1b2e76,_0x8a54da,_0x230e82){const _0xbefba4=_0x18351d,_0x494130=this[_0xbefba4(0x1ba)],_0x43b3f3=_0x494130[_0xbefba4(0x1ed)],_0x17af90=new _0x4a81ee(_0x43b3f3),_0x291b0e=U(_0x494130,_0x8a54da)[_0xbefba4(0x1ec)](_0xc14811=>_0xc14811[_0xbefba4(0x233)][_0xbefba4(0x220)]);0x1===_0x291b0e[_0xbefba4(0x220)]?this[_0xbefba4(0x232)]({'command':_0x45c3f1,'commands':_0x291b0e[0x0][_0xbefba4(0x233)],'parentMenuView':_0x1b2e76,'onExecute':_0x230e82})[_0xbefba4(0x1d7)](_0x226775=>_0x17af90[_0xbefba4(0x198)][_0xbefba4(0x206)](_0x226775)):_0x291b0e[_0xbefba4(0x1d7)](({groupId:_0x4c2cf0,groupLabel:_0x29b3d5,commands:_0x25f839})=>{const _0x814b0c=_0xbefba4,_0x12bd56=new _0x1616e2(_0x43b3f3,_0x1b2e76),_0x31e39f=new _0x4dca8f(_0x43b3f3),_0x3f566e=new _0x4a81ee(_0x43b3f3),_0x50990c=this[_0x814b0c(0x232)]({'command':_0x45c3f1,'commands':_0x25f839,'parentMenuView':_0x31e39f,'onExecute':_0x230e82});_0x31e39f[_0x814b0c(0x22d)][_0x814b0c(0x1d8)]({'label':_0x29b3d5||_0x4c2cf0}),_0x31e39f[_0x814b0c(0x1d0)](_0x814b0c(0x1fd))['to'](_0x1b2e76),_0x3f566e[_0x814b0c(0x198)][_0x814b0c(0x1b4)](_0x50990c),_0x31e39f[_0x814b0c(0x1eb)][_0x814b0c(0x20a)][_0x814b0c(0x206)](_0x3f566e),_0x12bd56[_0x814b0c(0x20a)][_0x814b0c(0x206)](_0x31e39f),_0x17af90[_0x814b0c(0x198)][_0x814b0c(0x206)](_0x12bd56);}),_0x1b2e76[_0xbefba4(0x1eb)][_0xbefba4(0x20a)][_0xbefba4(0x206)](_0x17af90);}[_0x18351d(0x232)]({command:_0x177325,commands:_0x1e790b,parentMenuView:_0x3fd5e9,onExecute:_0x24bb9d}){const _0x408648=_0x18351d,_0x474e8e=this[_0x408648(0x1ba)],_0x22c7a7=_0x474e8e[_0x408648(0x1ed)];return U(_0x474e8e,_0x1e790b)[_0x408648(0x193)](_0x5b3bf3=>{const _0x6b7c34=_0x408648,_0x7dd1a4=new _0x1616e2(_0x22c7a7,_0x3fd5e9),_0x5c6646=new _0x2b9b3b(_0x22c7a7);return _0x5c6646[_0x6b7c34(0x1d8)]({'label':_0x5b3bf3[_0x6b7c34(0x22e)]}),_0x5c6646[_0x6b7c34(0x1d0)](_0x6b7c34(0x1fd))['to'](_0x3fd5e9),_0x5c6646['on'](_0x6b7c34(0x1fd),()=>_0x24bb9d(_0x5b3bf3['id'])),_0x5c6646[_0x6b7c34(0x1b5)](_0x6b7c34(0x211))['to'](_0x177325,_0x6b7c34(0x1e5),_0x7449f6=>_0x7449f6[_0x6b7c34(0x1f8)](_0x5b3bf3['id'])),_0x7dd1a4[_0x6b7c34(0x20a)][_0x6b7c34(0x206)](_0x5c6646),_0x7dd1a4;});}}function B(_0xc9471a,_0x801434){const _0x4d56a7=_0x18351d;return void 0x0!==_0xc9471a[_0x4d56a7(0x1ef)]&&void 0x0===_0x801434[_0x4d56a7(0x1ef)]?0x1:void 0x0===_0xc9471a[_0x4d56a7(0x1ef)]&&void 0x0!==_0x801434[_0x4d56a7(0x1ef)]?-0x1:void 0x0!==_0xc9471a[_0x4d56a7(0x1ef)]&&void 0x0!==_0x801434[_0x4d56a7(0x1ef)]?_0xc9471a[_0x4d56a7(0x1ef)]-_0x801434[_0x4d56a7(0x1ef)]:0x0;}function U(_0x3e02f2,_0x1e48e2){const _0x3b1b27=_0x18351d;_0x1e48e2[_0x3b1b27(0x216)](B);const _0x435ebb={},_0x3963f7=[];for(const _0x1624fd of _0x1e48e2)if(void 0x0!==_0x1624fd[_0x3b1b27(0x1ef)]){if(_0x1624fd[_0x3b1b27(0x1ef)]in _0x435ebb)throw new _0x5a267d(_0x3b1b27(0x22f),_0x3e02f2,{'conflictingDefinitions':[_0x1624fd,_0x435ebb[_0x1624fd[_0x3b1b27(0x1ef)]]]});_0x435ebb[_0x1624fd[_0x3b1b27(0x1ef)]]=_0x1624fd,_0x3963f7[_0x3b1b27(0x1e2)](_0x1624fd[_0x3b1b27(0x1ef)],0x0,_0x1624fd);}else _0x3963f7[_0x3b1b27(0x231)](_0x1624fd);return _0x3963f7;}
|
|
23
|
+
const _0x4aa744=_0x7122;function _0x1a91(){const _0x3c79e0=['reset','_initView','prompt','fire','addMany','menuView','_createAIAssistantUIButton','showAIAssistant','currentContext','getSelectedElement','show','change:value','length','aiLicenseKeyUsageLimit','ai.aiAssistant.commands','AI\x20Commands','editing','contentArea','items','aiLicenseKeyDomainLimit','5594NISxng','push','AIAssistant','domainLimit','_populateMenuBarMenu','\x20ck-ai-assistant-ui_theme','AI\x20Assistant','862137wqWZXY','editor','destroy','update','_formView','ai.useTheme','announce','aiCommands','ai.aiAssistant.disabledElements','replace','selection','errorView','EDITOR_TOP_SIDE','once','queryView','menuPanelClass','Generated\x20content:\x20%0','model','filter','trim','hide','_getResolvedCommandsDefinitions','aiAssistant','hideFakeVisualSelection','getData','init','aiLicenseKeyValid','269AJQYlH','_initAriaAiStatusChangeAnnouncements','wasMoved','1075365MaipfQ','_showLicenseError','8987490LvLxDq','panelView','add','licenseKey','</p>','buttons','setSelection','updateView','buttonView','requires','isFlat','groupId','40gPHEpK','splice','plugins','change:isError','view','getRanges','isOn','featureNotAllowed','Error\x20during\x20AI\x20content\x20generation:\x20%0','756924sqAFjZ','getSelectedBlocks','includes','text','783180knTIjO','body','commands','document','798yYfUpr','menuBar:aiCommands','copy','config','ck-ai-assistant-button\x20','_dialog','get','hideUI','trialLimit','evaluationLimit','tableOfContents','AI\x20is\x20writing','from','_aiAdapter','text/html','isPremiumPlugin','comment','insertContent','execute','define','_licenseKeyCheckInterval','isOfficialPlugin','getLimitElement','promptView','change:isProcessing','groupLabel','source','componentFactory','custom','_getMenuBarGroupButtons','_onExecute','INSERT','aiLicenseKeyNotAllowed','aiLicenseKeyExpired','menuitemcheckbox','DataTransfer','polite','label','showUI','order','_forceMarkersCopy','AIAssistantUI','values','media','usageLimit','_uiCssClasses','_aiAssistantController','invalid','forEach','children','REPLACE','showFakeVisualSelection','fieldView','listenTo','ck-ai-commands-dropdown\x20','isEnabled','updatePosition','command:','focus','textAdapter','change','aiLicenseKeyInvalid','menuBar:aiAssistant','rawHtml','ai-commands-config-order-collision','isCollapsed','delegate','ai.aiAssistant.contentAreaCssClass','bind','sort','aiLicenseKeyTrialLimit','_commandDefinitions','32358PJWjTc','change:enabledCommandsIds','pluginName','enabledCommandsIds','expired','schema','ck-ai-assistant-ui','render','locale','aiLicenseKeyEvaluationLimit','replaceContent','<p>','requiresContent','set','map','insertContentBelow'];_0x1a91=function(){return _0x3c79e0;};return _0x1a91();}(function(_0x5decfa,_0x131a88){const _0x5b5e42=_0x7122,_0xc16d22=_0x5decfa();while(!![]){try{const _0x4c6a68=-parseInt(_0x5b5e42(0x15c))/0x1*(parseInt(_0x5b5e42(0x13a))/0x2)+parseInt(_0x5b5e42(0x15f))/0x3+parseInt(_0x5b5e42(0x176))/0x4+-parseInt(_0x5b5e42(0x17a))/0x5+parseInt(_0x5b5e42(0x116))/0x6*(-parseInt(_0x5b5e42(0x17e))/0x7)+parseInt(_0x5b5e42(0x16d))/0x8*(parseInt(_0x5b5e42(0x141))/0x9)+parseInt(_0x5b5e42(0x161))/0xa;if(_0x4c6a68===_0x131a88)break;else _0xc16d22['push'](_0xc16d22['shift']());}catch(_0x4b5994){_0xc16d22['push'](_0xc16d22['shift']());}}}(_0x1a91,0x620a1));import{Plugin as _0x428c09}from'ckeditor5/src/core.js';import{IconMagicWand as _0x193fa0,IconRobotPencil as _0x4eff84}from'ckeditor5/src/icons.js';import{first as _0x159e9b,CKEditorError as _0x581058}from'ckeditor5/src/utils.js';import{createDropdown as _0x65f58a,addMenuToDropdown as _0x5c6a3c,ButtonView as _0x2a687b,MenuBarMenuListItemButtonView as _0x4d9bb8,Dialog as _0x5bb493,DialogViewPosition as _0x2db90b,MenuBarMenuView as _0x4345ae,MenuBarMenuListView as _0x426b7b,MenuBarMenuListItemView as _0x7b47ae}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x48455c,UNGROUPED_COMMANDS_GROUP_ID as _0xc8bd92}from'./utils/normalizecommandsconfig.js';import _0x3fd0f7 from'./aiassistantediting.js';import _0xd8664b from'./adapters/aiadapter.js';import{getTranslation as _0x1df56a}from'./utils/common-translations.js';import _0x3c257a from'./ui/showaiassistantcommand.js';import _0x18717d from'./ui/aiassistantcontroller.js';import _0x38469c from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x531d5d}from'./ui/form/aiformtoolbarview.js';import'../theme/ai.css';function _0x7122(_0x24e3af,_0x109af0){const _0x1a915d=_0x1a91();return _0x7122=function(_0x7122e4,_0x4871c1){_0x7122e4=_0x7122e4-0xe1;let _0x3253fa=_0x1a915d[_0x7122e4];return _0x3253fa;},_0x7122(_0x24e3af,_0x109af0);}import'../theme/ai-dropdown.css';import'../theme/ai-form.css';const w=globalThis[_0x4aa744(0xf1)];import{ClipboardMarkersUtils as _0x3b9b66}from'ckeditor5/src/clipboard.js';import{DomEventData as _0x290190,DataTransfer as _0x17341d}from'ckeditor5/src/engine.js';export default class n extends _0x428c09{[_0x4aa744(0x164)];[_0x4aa744(0xe2)];[_0x4aa744(0x183)];[_0x4aa744(0x145)];[_0x4aa744(0x18b)];[_0x4aa744(0xfc)];[_0x4aa744(0xfb)]='';static get[_0x4aa744(0x118)](){const _0x462bcf=_0x4aa744;return _0x462bcf(0xf7);}static get[_0x4aa744(0xe3)](){return!0x0;}static get[_0x4aa744(0x18d)](){return!0x0;}static get[_0x4aa744(0x16a)](){return[_0x3b9b66,_0x3fd0f7,_0xd8664b,_0x5bb493];}constructor(_0x55d6b4){const _0x57ff56=_0x4aa744;super(_0x55d6b4),_0x55d6b4[_0x57ff56(0x181)][_0x57ff56(0xe1)](_0x57ff56(0x149),[_0x57ff56(0xf9),_0x57ff56(0x10d),_0x57ff56(0x188)]),_0x55d6b4[_0x57ff56(0x181)][_0x57ff56(0xe1)](_0x57ff56(0x111),''),_0x55d6b4[_0x57ff56(0x181)][_0x57ff56(0xe1)](_0x57ff56(0x146),!0x0),this[_0x57ff56(0xfb)]=_0x57ff56(0x11c)+(_0x55d6b4[_0x57ff56(0x181)][_0x57ff56(0x184)](_0x57ff56(0x146))?_0x57ff56(0x13f):'');}[_0x4aa744(0x15a)](){const _0x2ab219=_0x4aa744,{editor:_0x179ec0}=this;this[_0x2ab219(0x18b)]=_0x179ec0[_0x2ab219(0x16f)][_0x2ab219(0x184)](_0xd8664b),this[_0x2ab219(0x183)]=_0x179ec0[_0x2ab219(0x16f)][_0x2ab219(0x184)](_0x5bb493),this[_0x2ab219(0x145)]=null,this[_0x2ab219(0x115)]=this[_0x2ab219(0x156)]();const _0x2a2504=new _0x3c257a(_0x179ec0,Array[_0x2ab219(0x18a)](this[_0x2ab219(0x115)][_0x2ab219(0xf8)]()));_0x179ec0[_0x2ab219(0x17c)][_0x2ab219(0x163)](_0x2ab219(0x12d),_0x2a2504),_0x179ec0['ui'][_0x2ab219(0xe9)][_0x2ab219(0x163)](_0x2ab219(0x148),_0x11ae63=>{const _0x4b4b20=_0x2ab219,_0x437cdc=_0x65f58a(_0x11ae63);return _0x437cdc[_0x4b4b20(0x123)]({'class':_0x4b4b20(0x104)+this[_0x4b4b20(0xfb)]}),_0x437cdc[_0x4b4b20(0x169)][_0x4b4b20(0x123)]({'label':_0x1df56a(_0x11ae63,_0x4b4b20(0x135)),'icon':_0x193fa0,'tooltip':!0x0}),_0x437cdc['on'](_0x4b4b20(0x190),_0x82c3e=>this[_0x4b4b20(0xec)](_0x82c3e[_0x4b4b20(0xe8)]['id'])),_0x5c6a3c(_0x437cdc,_0x179ec0['ui'][_0x4b4b20(0x171)][_0x4b4b20(0x17b)],function(_0x2159dc){const _0x3afded=_0x4b4b20,_0x46772f=_0x48455c(_0x2159dc[_0x3afded(0x181)][_0x3afded(0x184)](_0x3afded(0x134)),_0x2159dc[_0x3afded(0x11e)]),_0x1208e4=U(_0x2159dc,_0x46772f)[_0x3afded(0x153)](_0x1963ed=>_0x1963ed[_0x3afded(0x17c)][_0x3afded(0x132)]);if(0x1===_0x1208e4[_0x3afded(0x132)])return U(_0x2159dc,_0x1208e4[0x0][_0x3afded(0x17c)])[_0x3afded(0x124)](_0x97067e=>({'id':_0x97067e['id'],'label':_0x97067e[_0x3afded(0xf3)]}));return _0x1208e4[_0x3afded(0x124)](_0x2ac007=>{const _0x24e59c=_0x3afded,{groupId:_0x9afc3d,groupLabel:_0x9f45cf,commands:_0x50a99d}=_0x2ac007,_0x348ebb=U(_0x2159dc,_0x50a99d)[_0x24e59c(0x124)](_0x22479c=>({'id':_0x22479c['id'],'label':_0x22479c[_0x24e59c(0xf3)]}));return{'id':_0x9afc3d,'menu':_0x9f45cf||_0x9afc3d,'children':_0x348ebb};});}(_0x179ec0),{'ariaLabel':_0x1df56a(_0x11ae63,_0x4b4b20(0x135))}),_0x437cdc[_0x4b4b20(0x12b)][_0x4b4b20(0x150)]=_0x4b4b20(0x104)+this[_0x4b4b20(0xfb)],_0x2a2504['on'](_0x4b4b20(0x117),_0x124bcf),_0x437cdc[_0x4b4b20(0x12b)][_0x4b4b20(0x14e)](_0x4b4b20(0x11d),_0x124bcf),_0x437cdc;function _0x124bcf(){const _0x3a1434=_0x4b4b20;_0x437cdc[_0x3a1434(0x105)]=_0x2a2504[_0x3a1434(0x119)][_0x3a1434(0x132)]>0x0;for(const _0x216ff3 of _0x437cdc[_0x3a1434(0x12b)][_0x3a1434(0x166)])_0x216ff3[_0x3a1434(0x105)]=_0x2a2504[_0x3a1434(0x119)][_0x3a1434(0x178)](_0x216ff3['id']);}}),_0x179ec0['ui'][_0x2ab219(0xe9)][_0x2ab219(0x163)](_0x2ab219(0x17f),_0x4e4722=>{const _0x51eca8=_0x2ab219,_0x534695=new _0x4345ae(_0x4e4722);_0x534695[_0x51eca8(0x169)][_0x51eca8(0x123)]({'label':_0x1df56a(_0x4e4722,_0x51eca8(0x135)),'icon':_0x193fa0}),_0x534695[_0x51eca8(0x112)](_0x51eca8(0x105))['to'](_0x2a2504,_0x51eca8(0x119),_0x470d5c=>_0x470d5c[_0x51eca8(0x132)]>0x0);const _0x5230a0=_0x48455c(_0x179ec0[_0x51eca8(0x181)][_0x51eca8(0x184)](_0x51eca8(0x134)),_0x4e4722);return this[_0x51eca8(0x13e)](_0x2a2504,_0x534695,_0x5230a0,_0x370770=>this[_0x51eca8(0xec)](_0x370770)),_0x534695;}),_0x179ec0['ui'][_0x2ab219(0xe9)][_0x2ab219(0x163)](_0x2ab219(0x157),()=>{const _0x41025b=_0x2ab219,_0x8ec97b=this[_0x41025b(0x12c)](_0x2a687b);return _0x8ec97b[_0x41025b(0x123)]({'tooltip':!0x0,'class':_0x41025b(0x182)+this[_0x41025b(0xfb)]}),_0x8ec97b;}),_0x179ec0['ui'][_0x2ab219(0xe9)][_0x2ab219(0x163)](_0x2ab219(0x10c),()=>{const _0x45ade6=_0x2ab219,_0x48fabe=this[_0x45ade6(0x12c)](_0x4d9bb8);return _0x48fabe[_0x45ade6(0x123)]({'role':_0x45ade6(0xf0)}),_0x48fabe;}),this[_0x2ab219(0x164)]=this[_0x2ab219(0x142)][_0x2ab219(0x181)][_0x2ab219(0x184)](_0x2ab219(0x164));const _0x56017a=this[_0x2ab219(0x142)];this[_0x2ab219(0xe2)]=setInterval(()=>{const _0xf4d4a8=_0x2ab219;let _0xdf0cfc;for(const _0x1a1787 in _0x56017a){const _0x165651=_0x1a1787,_0x2d5e48=_0x56017a[_0x165651];if(_0xf4d4a8(0x15b)==_0x2d5e48||_0xf4d4a8(0x10b)==_0x2d5e48||_0xf4d4a8(0xef)==_0x2d5e48||_0xf4d4a8(0x139)==_0x2d5e48||_0xf4d4a8(0xee)==_0x2d5e48||_0xf4d4a8(0x11f)==_0x2d5e48||_0xf4d4a8(0x114)==_0x2d5e48||_0xf4d4a8(0x133)==_0x2d5e48){delete _0x56017a[_0x165651],_0xdf0cfc=_0x2d5e48,clearInterval(this[_0xf4d4a8(0xe2)]),this[_0xf4d4a8(0xe2)]=void 0x0;break;}}_0xf4d4a8(0x10b)==_0xdf0cfc&&_0x56017a[_0xf4d4a8(0x160)](_0xf4d4a8(0xfd)),_0xf4d4a8(0xef)==_0xdf0cfc&&_0x56017a[_0xf4d4a8(0x160)](_0xf4d4a8(0x11a)),_0xf4d4a8(0x139)==_0xdf0cfc&&_0x56017a[_0xf4d4a8(0x160)](_0xf4d4a8(0x13d)),_0xf4d4a8(0xee)==_0xdf0cfc&&_0x56017a[_0xf4d4a8(0x160)](_0xf4d4a8(0x174),_0xf4d4a8(0x13c)),_0xf4d4a8(0x11f)==_0xdf0cfc&&_0x56017a[_0xf4d4a8(0x160)](_0xf4d4a8(0x187)),_0xf4d4a8(0x114)==_0xdf0cfc&&_0x56017a[_0xf4d4a8(0x160)](_0xf4d4a8(0x186)),_0xf4d4a8(0x133)==_0xdf0cfc&&_0x56017a[_0xf4d4a8(0x160)](_0xf4d4a8(0xfa));},0x3e8);}[_0x4aa744(0x143)](){const _0x2620ac=_0x4aa744;super[_0x2620ac(0x143)](),this[_0x2620ac(0xe2)]&&clearInterval(this[_0x2620ac(0xe2)]);}[_0x4aa744(0xf4)](_0x5a4316='',_0xdc73d2='',_0x461e1d=_0x4aa744(0xea)){const _0x1878f6=_0x4aa744,_0x2a7746=this[_0x1878f6(0x142)],_0x26ca74=_0x2a7746[_0x1878f6(0x136)][_0x1878f6(0x171)],_0x5e3b9f=_0x2a7746[_0x1878f6(0x16f)][_0x1878f6(0x184)](_0x3fd0f7),_0x49c168=_0x2a7746[_0x1878f6(0x16f)][_0x1878f6(0x184)](_0x3b9b66);_0x5e3b9f[_0x1878f6(0x101)]();const _0x5ce5fa=new w(),_0x1670ea=new ClipboardEvent(_0x1878f6(0x180),{'clipboardData':_0x5ce5fa}),_0x3cd397=new _0x17341d(_0x5ce5fa),_0x429b06=new _0x290190(_0x26ca74,_0x1670ea,{'dataTransfer':_0x3cd397});_0x49c168[_0x1878f6(0xf6)](_0x1878f6(0x18e),()=>{const _0x3b7183=_0x1878f6;_0x26ca74[_0x3b7183(0x17d)][_0x3b7183(0x129)](_0x3b7183(0x180),_0x429b06);}),this[_0x1878f6(0x145)]||(this[_0x1878f6(0x127)](),this[_0x1878f6(0xfc)]=new _0x18717d(_0x2a7746,this[_0x1878f6(0x18b)][_0x1878f6(0x109)],this[_0x1878f6(0x145)]));let _0x22fa48=_0x3cd397[_0x1878f6(0x159)](_0x1878f6(0x18c));const _0x26c0dc=_0x2a7746[_0x1878f6(0x152)][_0x1878f6(0x17d)][_0x1878f6(0x14b)],_0x2d3d85=Array[_0x1878f6(0x18a)](_0x26c0dc[_0x1878f6(0x172)]());0x1===_0x2d3d85[_0x1878f6(0x132)]&&_0x2d3d85[0x0][_0x1878f6(0x16b)]&&!_0x26c0dc[_0x1878f6(0x12f)]()&&''!==_0x22fa48[_0x1878f6(0x14a)](/ /g,'')[_0x1878f6(0x154)]()&&(_0x22fa48=_0x1878f6(0x121)+_0x22fa48+_0x1878f6(0x165)),this[_0x1878f6(0xfc)][_0x1878f6(0x168)]({'actionId':_0x461e1d,'query':_0x5a4316,'htmlContent':_0x22fa48,'label':_0xdc73d2,'mainActionLabel':_0x531d5d[_0x2a7746[_0x1878f6(0x152)][_0x1878f6(0x17d)][_0x1878f6(0x14b)][_0x1878f6(0x10f)]?_0x1878f6(0xed):_0x1878f6(0x100)]}),_0x1878f6(0x157)!==this[_0x1878f6(0x183)]['id']?this[_0x1878f6(0x183)][_0x1878f6(0x130)]({'id':_0x1878f6(0x157),'icon':_0x4eff84,'title':_0x1df56a(this[_0x1878f6(0x142)][_0x1878f6(0x11e)],_0x1878f6(0x140)),'content':this[_0x1878f6(0x145)],'position':_0x2db90b[_0x1878f6(0x14d)],'onShow':()=>{const _0x139acc=_0x1878f6;this[_0x139acc(0x145)][_0x139acc(0x108)]();},'onHide':()=>{const _0x4aca6a=_0x1878f6;this[_0x4aca6a(0xfc)][_0x4aca6a(0x126)](),_0x5e3b9f[_0x4aca6a(0x158)]();}}):this[_0x1878f6(0x183)][_0x1878f6(0x171)][_0x1878f6(0x15e)]||this[_0x1878f6(0x183)][_0x1878f6(0x171)][_0x1878f6(0x106)]();}[_0x4aa744(0x185)](){const _0x5e7aa9=_0x4aa744;this[_0x5e7aa9(0x183)][_0x5e7aa9(0x155)]();}[_0x4aa744(0x156)](){const _0x21b057=_0x4aa744,_0x1a4013=new Map(),_0x31b211=_0x48455c(this[_0x21b057(0x142)][_0x21b057(0x181)][_0x21b057(0x184)](_0x21b057(0x134)),this[_0x21b057(0x142)][_0x21b057(0x11e)]);for(const _0x21b776 of _0x31b211)for(const _0x1327a9 of _0x21b776[_0x21b057(0x17c)])_0x1a4013[_0x21b057(0x123)](_0x1327a9['id'],{..._0x1327a9,'groupId':_0x21b776[_0x21b057(0x16c)],'groupLabel':_0x21b776[_0x21b057(0xe7)]||_0x21b776[_0x21b057(0x16c)]});return _0x1a4013;}[_0x4aa744(0x12c)](_0x479494){const _0x16364a=_0x4aa744,_0xfb10f5=this[_0x16364a(0x142)],_0x555f98=_0xfb10f5[_0x16364a(0x17c)][_0x16364a(0x184)](_0x16364a(0x12d)),_0x5e0119=new _0x479494(_0xfb10f5[_0x16364a(0x11e)]);return _0x5e0119[_0x16364a(0x123)]({'label':_0x1df56a(_0xfb10f5[_0x16364a(0x11e)],_0x16364a(0x140)),'icon':_0x4eff84,'isToggleable':!0x0}),_0x5e0119[_0x16364a(0x112)](_0x16364a(0x105))['to'](_0x555f98),_0x5e0119[_0x16364a(0x112)](_0x16364a(0x173))['to'](this[_0x16364a(0x183)],'id',_0x455237=>_0x16364a(0x157)===_0x455237),this[_0x16364a(0x103)](_0x5e0119,_0x16364a(0x190),()=>{const _0x4b448c=_0x16364a;_0x5e0119[_0x4b448c(0x173)]?this[_0x4b448c(0x185)]():_0x555f98[_0x4b448c(0x190)]();}),_0x5e0119;}[_0x4aa744(0x127)](){const _0x5b22e9=_0x4aa744,_0x3cd9e1=this[_0x5b22e9(0x142)][_0x5b22e9(0x16f)][_0x5b22e9(0x184)](_0x3fd0f7);this[_0x5b22e9(0x145)]=new _0x38469c(this[_0x5b22e9(0x142)][_0x5b22e9(0x11e)],this[_0x5b22e9(0xfb)],this[_0x5b22e9(0x142)][_0x5b22e9(0x181)][_0x5b22e9(0x184)](_0x5b22e9(0x111))),this[_0x5b22e9(0x145)]['on'](_0x5b22e9(0x131),()=>{const _0x2c424d=_0x5b22e9;this[_0x2c424d(0x183)][_0x2c424d(0x171)][_0x2c424d(0x15e)]||this[_0x2c424d(0x183)][_0x2c424d(0x171)][_0x2c424d(0x106)]();}),this[_0x5b22e9(0x145)][_0x5b22e9(0xe5)][_0x5b22e9(0x14f)][_0x5b22e9(0x102)]['on'](_0x5b22e9(0x144),()=>{const _0x3cbb2e=_0x5b22e9;this[_0x3cbb2e(0x183)][_0x3cbb2e(0x171)][_0x3cbb2e(0x15e)]||this[_0x3cbb2e(0x183)][_0x3cbb2e(0x171)][_0x3cbb2e(0x106)]();}),this[_0x5b22e9(0x103)](this[_0x5b22e9(0x145)],_0x5b22e9(0x120),()=>{const _0x434040=_0x5b22e9;_0x3cd9e1[_0x434040(0x18f)](this[_0x434040(0xfc)][_0x434040(0x12e)]),this[_0x434040(0x185)]();}),this[_0x5b22e9(0x103)](this[_0x5b22e9(0x145)],_0x5b22e9(0x125),()=>{const _0x30ace1=_0x5b22e9;_0x3cd9e1[_0x30ace1(0x125)](this[_0x30ace1(0xfc)][_0x30ace1(0x12e)]),this[_0x30ace1(0x185)]();}),this[_0x5b22e9(0x15d)]();}[_0x4aa744(0x15d)](){const _0xa25031=_0x4aa744,{locale:_0xe301a9,ui:{ariaLiveAnnouncer:_0x260dcf}}=this[_0xa25031(0x142)];this[_0xa25031(0x145)][_0xa25031(0x137)]['on'](_0xa25031(0xe6),(_0x590c67,_0x3102db,_0x339e79)=>{const _0x37397e=_0xa25031,_0x1cd20f=this[_0x37397e(0xfc)][_0x37397e(0x12e)];_0x339e79?_0x260dcf[_0x37397e(0x147)](_0x1df56a(_0xe301a9,_0x37397e(0x189))):_0x1cd20f&&_0x260dcf[_0x37397e(0x147)](_0x1df56a(_0xe301a9,_0x37397e(0x151),_0x1cd20f),{'politeness':_0x37397e(0xf2),'isUnsafeHTML':!0x0});}),this[_0xa25031(0x145)]['on'](_0xa25031(0x170),(_0x43af80,_0x244c42,_0x36d72a)=>{const _0x5f523d=_0xa25031;if(_0x36d72a){const _0x4a6cc0=this[_0x5f523d(0x145)][_0x5f523d(0x14c)][_0x5f523d(0x179)];_0x260dcf[_0x5f523d(0x147)](_0x1df56a(_0xe301a9,_0x5f523d(0x175),_0x4a6cc0));}});}[_0x4aa744(0xec)](_0x2d10dd){const _0x547260=_0x4aa744,_0x3fc429=this[_0x547260(0x115)][_0x547260(0x184)](_0x2d10dd),_0x3ef591=this[_0x547260(0x142)],_0x5f2ea8=_0x3ef591[_0x547260(0x152)][_0x547260(0x17d)][_0x547260(0x14b)],_0xdb9f17=_0x3ef591[_0x547260(0x17c)][_0x547260(0x184)](_0x547260(0x12d)),_0x518d52=_0x3ef591[_0x547260(0x16f)][_0x547260(0x184)](_0x3fd0f7),_0x578750=''+(_0x3fc429[_0x547260(0x16c)]!==_0xc8bd92?_0x3fc429[_0x547260(0xe7)]+':\x20':'')+_0x3fc429[_0x547260(0xf3)];if(!0x1!==_0x3fc429[_0x547260(0x122)]&&_0x5f2ea8[_0x547260(0x10f)]){const _0x1969a7=_0x159e9b(_0x5f2ea8[_0x547260(0x177)]())||_0x3ef591[_0x547260(0x152)][_0x547260(0x11b)][_0x547260(0xe4)](_0x5f2ea8);_0x3ef591[_0x547260(0x152)][_0x547260(0x10a)](_0x54c4bb=>{const _0x6f8a6f=_0x547260;_0x54c4bb[_0x6f8a6f(0x167)](_0x1969a7,'in');});}_0x518d52[_0x547260(0x101)](),_0xdb9f17[_0x547260(0x190)](_0x3fc429[_0x547260(0x128)],_0x578750,_0x547260(0x107)+_0x2d10dd);}[_0x4aa744(0x13e)](_0xcae6a,_0x28dd61,_0x90db28,_0x486bed){const _0x17ec27=_0x4aa744,_0x13bc9b=this[_0x17ec27(0x142)],_0x215973=_0x13bc9b[_0x17ec27(0x11e)],_0x319f76=new _0x426b7b(_0x215973),_0x35a90c=U(_0x13bc9b,_0x90db28)[_0x17ec27(0x153)](_0x40e530=>_0x40e530[_0x17ec27(0x17c)][_0x17ec27(0x132)]);0x1===_0x35a90c[_0x17ec27(0x132)]?this[_0x17ec27(0xeb)]({'command':_0xcae6a,'commands':_0x35a90c[0x0][_0x17ec27(0x17c)],'parentMenuView':_0x28dd61,'onExecute':_0x486bed})[_0x17ec27(0xfe)](_0x2e6b61=>_0x319f76[_0x17ec27(0x138)][_0x17ec27(0x163)](_0x2e6b61)):_0x35a90c[_0x17ec27(0xfe)](({groupId:_0x8455a9,groupLabel:_0x33e2ae,commands:_0x7a9683})=>{const _0x564a1a=_0x17ec27,_0x16a459=new _0x7b47ae(_0x215973,_0x28dd61),_0x657ba0=new _0x4345ae(_0x215973),_0x480344=new _0x426b7b(_0x215973),_0x31fcfa=this[_0x564a1a(0xeb)]({'command':_0xcae6a,'commands':_0x7a9683,'parentMenuView':_0x657ba0,'onExecute':_0x486bed});_0x657ba0[_0x564a1a(0x169)][_0x564a1a(0x123)]({'label':_0x33e2ae||_0x8455a9}),_0x657ba0[_0x564a1a(0x110)](_0x564a1a(0x190))['to'](_0x28dd61),_0x480344[_0x564a1a(0x138)][_0x564a1a(0x12a)](_0x31fcfa),_0x657ba0[_0x564a1a(0x162)][_0x564a1a(0xff)][_0x564a1a(0x163)](_0x480344),_0x16a459[_0x564a1a(0xff)][_0x564a1a(0x163)](_0x657ba0),_0x319f76[_0x564a1a(0x138)][_0x564a1a(0x163)](_0x16a459);}),_0x28dd61[_0x17ec27(0x162)][_0x17ec27(0xff)][_0x17ec27(0x163)](_0x319f76);}[_0x4aa744(0xeb)]({command:_0x277c55,commands:_0x128ef1,parentMenuView:_0x458aa1,onExecute:_0x1936e7}){const _0x4effd4=_0x4aa744,_0x4cf7fc=this[_0x4effd4(0x142)],_0x58a973=_0x4cf7fc[_0x4effd4(0x11e)];return U(_0x4cf7fc,_0x128ef1)[_0x4effd4(0x124)](_0x178ac5=>{const _0x5a1750=_0x4effd4,_0x523625=new _0x7b47ae(_0x58a973,_0x458aa1),_0x36a8ef=new _0x4d9bb8(_0x58a973);return _0x36a8ef[_0x5a1750(0x123)]({'label':_0x178ac5[_0x5a1750(0xf3)]}),_0x36a8ef[_0x5a1750(0x110)](_0x5a1750(0x190))['to'](_0x458aa1),_0x36a8ef['on'](_0x5a1750(0x190),()=>_0x1936e7(_0x178ac5['id'])),_0x36a8ef[_0x5a1750(0x112)](_0x5a1750(0x105))['to'](_0x277c55,_0x5a1750(0x119),_0xbd4a76=>_0xbd4a76[_0x5a1750(0x178)](_0x178ac5['id'])),_0x523625[_0x5a1750(0xff)][_0x5a1750(0x163)](_0x36a8ef),_0x523625;});}}function B(_0x1f8616,_0x4c22c3){const _0x522a1d=_0x4aa744;return void 0x0!==_0x1f8616[_0x522a1d(0xf5)]&&void 0x0===_0x4c22c3[_0x522a1d(0xf5)]?0x1:void 0x0===_0x1f8616[_0x522a1d(0xf5)]&&void 0x0!==_0x4c22c3[_0x522a1d(0xf5)]?-0x1:void 0x0!==_0x1f8616[_0x522a1d(0xf5)]&&void 0x0!==_0x4c22c3[_0x522a1d(0xf5)]?_0x1f8616[_0x522a1d(0xf5)]-_0x4c22c3[_0x522a1d(0xf5)]:0x0;}function U(_0x39df16,_0x2f0ff4){const _0x26b2a5=_0x4aa744;_0x2f0ff4[_0x26b2a5(0x113)](B);const _0x46d72b={},_0x480afd=[];for(const _0x11fbfb of _0x2f0ff4)if(void 0x0!==_0x11fbfb[_0x26b2a5(0xf5)]){if(_0x11fbfb[_0x26b2a5(0xf5)]in _0x46d72b)throw new _0x581058(_0x26b2a5(0x10e),_0x39df16,{'conflictingDefinitions':[_0x11fbfb,_0x46d72b[_0x11fbfb[_0x26b2a5(0xf5)]]]});_0x46d72b[_0x11fbfb[_0x26b2a5(0xf5)]]=_0x11fbfb,_0x480afd[_0x26b2a5(0x16e)](_0x11fbfb[_0x26b2a5(0xf5)],0x0,_0x11fbfb);}else _0x480afd[_0x26b2a5(0x13b)](_0x11fbfb);return _0x480afd;}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5c7966,_0x594be5){var _0x2ab944=_0x357d,_0x4730a2=_0x5c7966();while(!![]){try{var _0x26d3d5=parseInt(_0x2ab944(0xc7))/0x1+parseInt(_0x2ab944(0xc9))/0x2*(parseInt(_0x2ab944(0xca))/0x3)+-parseInt(_0x2ab944(0xc8))/0x4+-parseInt(_0x2ab944(0xc4))/0x5*(-parseInt(_0x2ab944(0xc6))/0x6)+-parseInt(_0x2ab944(0xc5))/0x7+-parseInt(_0x2ab944(0xc1))/0x8*(parseInt(_0x2ab944(0xc3))/0x9)+parseInt(_0x2ab944(0xc2))/0xa;if(_0x26d3d5===_0x594be5)break;else _0x4730a2['push'](_0x4730a2['shift']());}catch(_0xb9245){_0x4730a2['push'](_0x4730a2['shift']());}}}(_0x5bcb,0x19622));export{default as AIAssistant}from'./aiassistant.js';export{default as AIAssistantUI}from'./aiassistantui.js';export{default as AIAdapter,AIRequestError}from'./adapters/aiadapter.js';function _0x5bcb(){var _0x20c451=['20WtriJU','1479OdeTdP','8lEmuol','3132150GYhrWz','1864809mTzyyw','10UfKYry','1194039SbtiZv','403122GBXgRG','134483AFlESw','421016ujIWLv'];_0x5bcb=function(){return _0x20c451;};return _0x5bcb();}export{default as AITextAdapter}from'./adapters/aitextadapter.js';export{default as OpenAITextAdapter}from'./adapters/openaitextadapter.js';export{default as AWSTextAdapter}from'./adapters/awstextadapter.js';function _0x357d(_0x1d954e,_0x33a6db){var _0x5bcb18=_0x5bcb();return _0x357d=function(_0x357d40,_0x242c22){_0x357d40=_0x357d40-0xc1;var _0x4caa2c=_0x5bcb18[_0x357d40];return _0x4caa2c;},_0x357d(_0x1d954e,_0x33a6db);}import'./augmentation.js';
|
package/src/legacyerrors.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2356(_0x5daa07,_0x15f793){var _0xe6e9b2=_0xe6e9();return _0x2356=function(_0x2356e5,_0x70596b){_0x2356e5=_0x2356e5-0x1b0;var _0x4753fa=_0xe6e9b2[_0x2356e5];return _0x4753fa;},_0x2356(_0x5daa07,_0x15f793);}(function(_0x125ae3,_0x3d793a){var _0x33398e=_0x2356,_0x26a528=_0x125ae3();while(!![]){try{var _0xa32419=-parseInt(_0x33398e(0x1b7))/0x1+parseInt(_0x33398e(0x1b2))/0x2*(parseInt(_0x33398e(0x1b0))/0x3)+-parseInt(_0x33398e(0x1bb))/0x4*(-parseInt(_0x33398e(0x1b5))/0x5)+-parseInt(_0x33398e(0x1b3))/0x6*(-parseInt(_0x33398e(0x1b1))/0x7)+parseInt(_0x33398e(0x1b8))/0x8+parseInt(_0x33398e(0x1b4))/0x9*(parseInt(_0x33398e(0x1b9))/0xa)+-parseInt(_0x33398e(0x1ba))/0xb*(parseInt(_0x33398e(0x1b6))/0xc);if(_0xa32419===_0x3d793a)break;else _0x26a528['push'](_0x26a528['shift']());}catch(_0x4a6783){_0x26a528['push'](_0x26a528['shift']());}}}(_0xe6e9,0xb1f10));import{CKEditorError as _0x304af2}from'ckeditor5/src/utils.js';function _0xe6e9(){var _0x3efa5b=['433082trAbxI','528648HrlBaS','79340OQHmId','462FNLJfm','756guVFCV','93yZisvb','156415hHDdCZ','302jtGZNS','114ikPmel','1395wZkduN','30545cpGOab','490788NtmjEu'];_0xe6e9=function(){return _0x3efa5b;};return _0xe6e9();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x465f89=_0x4a8f;function _0x4763(){const _0x2254da=['_handleQuery','393187FekmLZ','finishProcessing','serializeToString','set:currentContext','querySelector','initialContext','84244DXiOEt','mainAction','once','listenTo','stringify','_normalizeResponseHeadings','currentResponse','htmlProcessor','from','abort','handleError','reset','2hPIzSd','currentContext','document','exec','_isH1TagSupportEnabled','viewToDom','_sanitizationContainer','value','createElement','childNodes','isRendered','5391375fhiFwg','_sanitizeHTML','message','custom','processor','6595314UgvECV','2822460bHgNre','ai.aiAssistant.preserveComments','set','body','rename','markers','then','startsWith','9574584UmLKbE','text/html','clear','config','reverse','parseFromString','catch','toView','_stripMarkdownSyntax','div','endsWith','9sQdMOY','render','length','prompt','view','editing','stopProcessing','1736225IvlVIr','substring','previousActionId','nodeType','_domParser','editor','element','startProcessing','data','previousContext','name','innerHTML','trim','destroy','stopListening','remove','match','ELEMENT_NODE','7zXGUEq','get','```','textAdapter','domConverter','108rCDhhy','toModel','push','tryAgainEvent','previousLabel','_parseAndNormalizeContent','submitPrompt','```html','<h1></h1>','isProcessing','updateView','previousQuery','finally','setContentOf','_xmlSerializer','makeRequest'];_0x4763=function(){return _0x2254da;};return _0x4763();}(function(_0x4e5eb8,_0x3d637a){const _0x9d74a5=_0x4a8f,_0x390bc9=_0x4e5eb8();while(!![]){try{const _0x190c25=-parseInt(_0x9d74a5(0x1b5))/0x1*(-parseInt(_0x9d74a5(0x1c7))/0x2)+-parseInt(_0x9d74a5(0x209))/0x3*(parseInt(_0x9d74a5(0x1bb))/0x4)+parseInt(_0x9d74a5(0x1f2))/0x5+parseInt(_0x9d74a5(0x1d7))/0x6+parseInt(_0x9d74a5(0x204))/0x7*(-parseInt(_0x9d74a5(0x1e0))/0x8)+parseInt(_0x9d74a5(0x1eb))/0x9*(parseInt(_0x9d74a5(0x1d8))/0xa)+parseInt(_0x9d74a5(0x1d2))/0xb;if(_0x190c25===_0x3d637a)break;else _0x390bc9['push'](_0x390bc9['shift']());}catch(_0x465136){_0x390bc9['push'](_0x390bc9['shift']());}}}(_0x4763,0xa066b));import{ObservableMixin as _0x39f71a}from'ckeditor5/src/utils.js';import{AIRequestError as _0x57a19e}from'../adapters/aiadapter.js';import{Matcher as _0x5d4c5f,UpcastWriter as _0x2073e4}from'ckeditor5/src/engine.js';function _0x4a8f(_0x1b50ca,_0xdb2137){const _0x476364=_0x4763();return _0x4a8f=function(_0x4a8f27,_0x96619f){_0x4a8f27=_0x4a8f27-0x1a5;let _0x297481=_0x476364[_0x4a8f27];return _0x297481;},_0x4a8f(_0x1b50ca,_0xdb2137);}const Z=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export default class k extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x39f71a(){[_0x465f89(0x1f7)];[_0x465f89(0x207)];[_0x465f89(0x1ef)];[_0x465f89(0x1cd)];[_0x465f89(0x1f6)];[_0x465f89(0x1b2)];constructor(_0x45d579,_0x43e698,_0x5ea265){const _0x50f468=_0x465f89;super(),this[_0x50f468(0x1f7)]=_0x45d579,this[_0x50f468(0x207)]=_0x43e698,this[_0x50f468(0x1cd)]=document[_0x50f468(0x1cf)](_0x50f468(0x1e9)),this[_0x50f468(0x1f6)]=new DOMParser(),this[_0x50f468(0x1b2)]=new XMLSerializer(),this[_0x50f468(0x1ef)]=_0x5ea265,this[_0x50f468(0x1da)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x50f468(0x1b8),(_0x57e6b4,_0x5eb152,_0x517eda)=>{const _0x1beecf=_0x50f468;this[_0x1beecf(0x1ef)][_0x1beecf(0x1ce)]=this[_0x1beecf(0x1d3)](_0x517eda);}),this[_0x50f468(0x1be)](this[_0x50f468(0x1ef)],_0x50f468(0x1aa),(_0x27ab09,_0x1aec7e)=>{const _0x11584c=_0x50f468,_0xf9520b=this[_0x11584c(0x1c8)]||this[_0x11584c(0x1ba)];this[_0x11584c(0x1b4)](_0x1aec7e,_0xf9520b,_0x11584c(0x1d5));}),this[_0x50f468(0x1be)](this[_0x50f468(0x1ef)],_0x50f468(0x1a7),()=>{const _0x161418=_0x50f468;this[_0x161418(0x1ef)][_0x161418(0x1ee)]=this[_0x161418(0x1a8)],this[_0x161418(0x1b4)](this[_0x161418(0x1af)],this[_0x161418(0x1fb)],this[_0x161418(0x1f4)],this[_0x161418(0x1a8)]);}),this[_0x50f468(0x1be)](this[_0x50f468(0x1ef)],_0x50f468(0x1f1),()=>{const _0x331997=_0x50f468;this[_0x331997(0x1f1)]();});}[_0x465f89(0x1ff)](){const _0x32721a=_0x465f89;this[_0x32721a(0x200)]();}async[_0x465f89(0x1ae)]({actionId:_0x3c89b6,query:_0x4e0528,htmlContent:_0x481801,label:_0x407704,mainActionLabel:_0x889f5e}){const _0x437704=_0x465f89;this[_0x437704(0x1ef)][_0x437704(0x1ee)]=_0x407704,this[_0x437704(0x1ef)][_0x437704(0x1bc)]=_0x889f5e,this[_0x437704(0x1ba)]=_0x481801,_0x4e0528&&(this[_0x437704(0x1ef)][_0x437704(0x1d1)]?this[_0x437704(0x1b4)](_0x4e0528,_0x481801,_0x3c89b6,_0x407704):this[_0x437704(0x1ef)][_0x437704(0x1bd)](_0x437704(0x1ec),()=>{const _0x3cc452=_0x437704;this[_0x3cc452(0x1b4)](_0x4e0528,_0x481801,_0x3c89b6,_0x407704);}));}[_0x465f89(0x1f1)](){const _0x36fe35=_0x465f89;this[_0x36fe35(0x1ad)]&&(this[_0x36fe35(0x1ad)]=!0x1,this[_0x36fe35(0x1ef)][_0x36fe35(0x1b6)](),this[_0x36fe35(0x207)][_0x36fe35(0x1c4)]());}[_0x465f89(0x1c6)](){const _0x5a84e4=_0x465f89;this[_0x5a84e4(0x1ba)]='',this[_0x5a84e4(0x1c8)]='',this[_0x5a84e4(0x1c1)]='',this[_0x5a84e4(0x1fb)]='',this[_0x5a84e4(0x1af)]='',this[_0x5a84e4(0x1a8)]='',this[_0x5a84e4(0x1f4)]=void 0x0,this[_0x5a84e4(0x1ef)][_0x5a84e4(0x1c6)](),this[_0x5a84e4(0x1f1)]();}async[_0x465f89(0x1b4)](_0x161f94,_0x2ab790,_0x2da832,_0x4f65dd){const _0x5d653b=_0x465f89;return this[_0x5d653b(0x1ad)]=!0x0,this[_0x5d653b(0x1ef)][_0x5d653b(0x1f9)](),this[_0x5d653b(0x1fb)]=_0x2ab790,this[_0x5d653b(0x1af)]=_0x161f94,this[_0x5d653b(0x1a8)]=_0x4f65dd||_0x161f94,this[_0x5d653b(0x1f4)]=_0x2da832,new Promise(_0x438eaa=>{const _0x263483=_0x5d653b;this[_0x263483(0x207)][_0x263483(0x1b3)]({'query':_0x161f94,'context':_0x2ab790,'onData':_0x53a4cd=>{const _0x1b85df=_0x263483;this[_0x1b85df(0x1c1)]=_0x53a4cd,this[_0x1b85df(0x1c8)]=this[_0x1b85df(0x1a9)](this[_0x1b85df(0x1c1)]);},'actionId':_0x2da832})[_0x263483(0x1de)](()=>{const _0x4a6774=_0x263483;!this[_0x4a6774(0x1c8)]&&this[_0x4a6774(0x1c1)]&&(this[_0x4a6774(0x1c8)]=this[_0x4a6774(0x1a9)](this[_0x4a6774(0x1c1)],!0x0));})[_0x263483(0x1e6)](_0x50408a=>{const _0x198379=_0x263483;_0x50408a instanceof _0x57a19e?this[_0x198379(0x1ef)][_0x198379(0x1c5)](_0x50408a[_0x198379(0x1d4)]):this[_0x198379(0x1ef)][_0x198379(0x1c5)](),_0x438eaa();})[_0x263483(0x1b0)](()=>{const _0xab9bbb=_0x263483;this[_0xab9bbb(0x1f1)](),_0x438eaa();});});}[_0x465f89(0x1a9)](_0x1775d9,_0x22031c=!0x1){const _0x4be5d3=_0x465f89,_0x36b815=Z[_0x4be5d3(0x1ca)](_0x1775d9);_0x1775d9=_0x36b815?_0x1775d9[_0x4be5d3(0x1f3)](_0x36b815[0x1][_0x4be5d3(0x1ed)]):_0x1775d9[_0x4be5d3(0x1ed)]<0x64&&!_0x22031c?'':this[_0x4be5d3(0x1e8)](_0x1775d9);const _0x5a1759=this[_0x4be5d3(0x1f6)][_0x4be5d3(0x1e5)](_0x1775d9,_0x4be5d3(0x1e1));if(_0x36b815){const _0x1aba4d=Array[_0x4be5d3(0x1c3)](_0x5a1759[_0x4be5d3(0x1db)][_0x4be5d3(0x1d0)]);_0x1aba4d[_0x4be5d3(0x1e4)]();for(const _0x4f0d12 of _0x1aba4d){if(_0x4f0d12[_0x4be5d3(0x1f5)]==Node[_0x4be5d3(0x203)])break;_0x4f0d12[_0x4be5d3(0x201)]();}}const _0x9bad48=this[_0x4be5d3(0x1f7)][_0x4be5d3(0x1fa)][_0x4be5d3(0x1d6)][_0x4be5d3(0x1e7)](this[_0x4be5d3(0x1b2)][_0x4be5d3(0x1b7)](_0x5a1759[_0x4be5d3(0x1db)]));this[_0x4be5d3(0x1cb)]()||this[_0x4be5d3(0x1c0)](_0x9bad48);const _0x103d3f=this[_0x4be5d3(0x1f7)][_0x4be5d3(0x1e3)][_0x4be5d3(0x205)](_0x4be5d3(0x1d9)),_0x299c73=this[_0x4be5d3(0x1f7)][_0x4be5d3(0x1fa)][_0x4be5d3(0x1a5)](_0x9bad48);return _0x103d3f||_0x299c73[_0x4be5d3(0x1dd)][_0x4be5d3(0x1e2)](),this[_0x4be5d3(0x1f7)][_0x4be5d3(0x1fa)][_0x4be5d3(0x1bf)](_0x299c73);}[_0x465f89(0x1c0)](_0x2c60d3){const _0x4e5767=_0x465f89,_0x53d3f6=new _0x2073e4(this[_0x4e5767(0x1f7)][_0x4e5767(0x1f0)][_0x4e5767(0x1ef)][_0x4e5767(0x1c9)]),_0x35088b=new _0x5d4c5f({'name':/^h[1-5]$/}),_0x1fa8b2=[];let _0x406b6a=!0x1;for(const _0x14e21d of _0x2c60d3)_0x14e21d['is'](_0x4e5767(0x1f8))&&_0x35088b[_0x4e5767(0x202)](_0x14e21d)&&(_0x1fa8b2[_0x4e5767(0x1a6)](_0x14e21d),'h1'==_0x14e21d[_0x4e5767(0x1fc)]&&(_0x406b6a=!0x0));if(_0x406b6a){for(const _0x7a055 of _0x1fa8b2)_0x53d3f6[_0x4e5767(0x1dc)]('h'+(parseInt(_0x7a055[_0x4e5767(0x1fc)][0x1])+0x1),_0x7a055);}}[_0x465f89(0x1cb)](){const _0x38efc5=_0x465f89,{data:_0x28d621,editing:_0x23edd7}=this[_0x38efc5(0x1f7)],_0x247fd1=_0x28d621[_0x38efc5(0x1c2)][_0x38efc5(0x1e7)](_0x38efc5(0x1ac)),_0x4fb77d=_0x28d621[_0x38efc5(0x1e7)](_0x28d621[_0x38efc5(0x1a5)](_0x247fd1));return!!_0x23edd7[_0x38efc5(0x1ef)][_0x38efc5(0x208)][_0x38efc5(0x1cc)](_0x4fb77d)[_0x38efc5(0x1b9)]('h1');}[_0x465f89(0x1d3)](_0x38c711){const _0x1c7efb=_0x465f89;return this[_0x1c7efb(0x1f7)][_0x1c7efb(0x1f0)][_0x1c7efb(0x1ef)][_0x1c7efb(0x208)][_0x1c7efb(0x1b1)](this[_0x1c7efb(0x1cd)],_0x38c711),this[_0x1c7efb(0x1cd)][_0x1c7efb(0x1fd)];}[_0x465f89(0x1e8)](_0x3f2625){const _0x63f1b2=_0x465f89,_0x43c63a=_0x3f2625[_0x63f1b2(0x1fe)]();return _0x43c63a[_0x63f1b2(0x1df)](_0x63f1b2(0x1ab))?_0x43c63a[_0x63f1b2(0x1ea)](_0x63f1b2(0x206))?_0x43c63a[_0x63f1b2(0x1f3)](0x7,_0x43c63a[_0x63f1b2(0x1ed)]-0x3):_0x43c63a[_0x63f1b2(0x1f3)](0x7):_0x3f2625;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5ae23e=_0x368a;function _0x368a(_0x2910d0,_0x2bbd95){const _0x372620=_0x3726();return _0x368a=function(_0x368a3f,_0x1cd687){_0x368a3f=_0x368a3f-0x8f;let _0x509130=_0x372620[_0x368a3f];return _0x509130;},_0x368a(_0x2910d0,_0x2bbd95);}(function(_0x22700a,_0x391030){const _0x3c6077=_0x368a,_0x184463=_0x22700a();while(!![]){try{const _0x312872=parseInt(_0x3c6077(0x9b))/0x1+-parseInt(_0x3c6077(0x91))/0x2*(parseInt(_0x3c6077(0xdd))/0x3)+-parseInt(_0x3c6077(0xc7))/0x4+parseInt(_0x3c6077(0xd0))/0x5*(parseInt(_0x3c6077(0xe0))/0x6)+-parseInt(_0x3c6077(0xad))/0x7+parseInt(_0x3c6077(0xd7))/0x8+-parseInt(_0x3c6077(0xd5))/0x9*(-parseInt(_0x3c6077(0xd9))/0xa);if(_0x312872===_0x391030)break;else _0x184463['push'](_0x184463['shift']());}catch(_0x5ebb33){_0x184463['push'](_0x184463['shift']());}}}(_0x3726,0xaeb3e));import{global as _0x41aede}from'ckeditor5/src/utils.js';import{View as _0x43ace2,ButtonView as _0x3a769a,SpinnerView as _0x1d5494}from'ckeditor5/src/ui.js';import{IconCheck as _0x36a715,IconCopy as _0x4274ef}from'ckeditor5/src/icons.js';import{getTranslation as _0x2d2022}from'../../utils/common-translations.js';export default class Y extends _0x43ace2{[_0x5ae23e(0xbb)];[_0x5ae23e(0xd6)];constructor(_0x5f1df3,_0x594a66=''){const _0x478cc8=_0x5ae23e;super(_0x5f1df3),this[_0x478cc8(0xcf)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x52347f=this[_0x478cc8(0xcc)];this[_0x478cc8(0xbb)]=new ContentFieldView(_0x5f1df3,_0x594a66),this[_0x478cc8(0xd6)]=this[_0x478cc8(0x9d)](),this[_0x478cc8(0xdc)]({'tag':_0x478cc8(0xd4),'attributes':{'class':['ck',_0x478cc8(0xa6),_0x52347f['if'](_0x478cc8(0xdb),_0x478cc8(0x95),_0x2e6b6b=>!_0x2e6b6b)],'tabindex':'-1'},'children':[{'tag':_0x478cc8(0xd4),'attributes':{'class':['ck',_0x478cc8(0xde),_0x52347f['if'](_0x478cc8(0xd1),_0x478cc8(0x9e))]},'children':[this[_0x478cc8(0xbb)],{'tag':_0x478cc8(0xd4),'attributes':{'class':['ck',_0x478cc8(0xb0)]},'children':[this[_0x478cc8(0xd6)]]}]}]});}[_0x5ae23e(0xbf)](){const _0x5924e2=_0x5ae23e;super[_0x5924e2(0xbf)](),this[_0x5924e2(0xaa)]&&this[_0x5924e2(0xbb)][_0x5924e2(0xdf)](this[_0x5924e2(0xaa)]);let _0x1f79ad=!0x1;this['on'](_0x5924e2(0xa4),(_0x744bba,_0x3ffe13,_0x534aef)=>{const _0x5dba81=_0x5924e2,_0x4a244b=!this[_0x5dba81(0xbb)][_0x5dba81(0x98)][_0x5dba81(0xc6)](_0x5dba81(0xbd));this[_0x5dba81(0xbb)][_0x5dba81(0xdf)](_0x534aef),this[_0x5dba81(0xd1)]&&_0x4a244b&&!_0x1f79ad&&this[_0x5dba81(0x98)][_0x5dba81(0xa5)]({'top':this[_0x5dba81(0x98)][_0x5dba81(0xb3)],'behavior':_0x5dba81(0x97)});}),this['on'](_0x5924e2(0xb4),(_0x18e891,_0x29cf69,_0x3b9637)=>{const _0x362d3f=_0x5924e2;_0x1f79ad=!0x1,_0x3b9637?(this[_0x362d3f(0xaa)]=null,this[_0x362d3f(0xbb)][_0x362d3f(0xcd)]()):this[_0x362d3f(0xaa)]||this[_0x362d3f(0xbb)][_0x362d3f(0xdf)]('');}),this[_0x5924e2(0xb6)](this[_0x5924e2(0x98)],_0x5924e2(0x94),()=>{_0x1f79ad=!0x0;}),this[_0x5924e2(0xb6)](this[_0x5924e2(0x98)],_0x5924e2(0xc9),()=>{_0x1f79ad=!0x0;});}[_0x5ae23e(0xbc)](){const _0x5f1e3a=_0x5ae23e;this[_0x5f1e3a(0x98)][_0x5f1e3a(0xbc)]();}[_0x5ae23e(0x9d)](){const _0x3b0fac=_0x5ae23e,_0xf8532e=this[_0x3b0fac(0xca)],_0x2bd866=new _0x3a769a(this[_0x3b0fac(0xca)]),_0x313022=_0x3b0fac(0x96);return _0x2bd866[_0x3b0fac(0xcf)]({'label':_0x2d2022(_0xf8532e,_0x3b0fac(0xc0)),'icon':_0x4274ef,'class':_0x313022,'tooltip':!0x0}),_0x2bd866[_0x3b0fac(0x99)](_0x3b0fac(0xdb))['to'](this,_0x3b0fac(0xaa),_0x299a70=>!!_0x299a70),_0x2bd866[_0x3b0fac(0x99)](_0x3b0fac(0x93))['to'](this,_0x3b0fac(0xd1),_0x322a71=>!_0x322a71),_0x2bd866['on'](_0x3b0fac(0xb8),()=>{const _0x5d05df=_0x3b0fac;this[_0x5d05df(0xaf)](this[_0x5d05df(0xbb)][_0x5d05df(0x98)]),_0x2bd866[_0x5d05df(0xa2)]=_0x36a715,_0x2bd866[_0x5d05df(0xb1)]=_0x313022+_0x5d05df(0xcb),this[_0x5d05df(0xbc)](),setTimeout(()=>{const _0x195ab1=_0x5d05df;_0x2bd866[_0x195ab1(0xa2)]=_0x4274ef,_0x2bd866[_0x195ab1(0xb1)]=_0x313022;},0x3e8);}),_0x2bd866;}[_0x5ae23e(0xaf)](_0x3f0059){const _0x35dcf5=_0x5ae23e,{window:_0x38c800,document:_0x20552e}=_0x41aede;if(_0x38c800[_0x35dcf5(0x9c)]){const {Blob:_0x21761a,ClipboardItem:_0x365ecb}=_0x38c800,_0x377886=[new _0x365ecb({'text/html':new _0x21761a([_0x3f0059[_0x35dcf5(0x9f)]],{'type':_0x35dcf5(0xa7)}),'text/plain':new _0x21761a([_0x3f0059[_0x35dcf5(0xc3)]||''],{'type':_0x35dcf5(0xc5)})})];navigator[_0x35dcf5(0xac)][_0x35dcf5(0xc2)](_0x377886);}else{const _0xa2af29=_0x20552e[_0x35dcf5(0xa0)](_0x35dcf5(0xd4));_0xa2af29[_0x35dcf5(0xae)][_0x35dcf5(0xb5)]=_0x35dcf5(0xc4),_0xa2af29[_0x35dcf5(0xae)][_0x35dcf5(0xa9)]=_0x35dcf5(0x8f),_0xa2af29[_0x35dcf5(0x9f)]=_0x35dcf5(0xab)+_0x3f0059[_0x35dcf5(0x9f)]+_0x35dcf5(0xb2),_0x20552e[_0x35dcf5(0xe1)][_0x35dcf5(0xd2)](_0xa2af29);const _0x1f7013=_0x20552e[_0x35dcf5(0xce)]();_0x1f7013[_0x35dcf5(0xe2)](_0xa2af29[_0x35dcf5(0xc8)]),_0x1f7013[_0x35dcf5(0xa8)](_0xa2af29[_0x35dcf5(0xba)]);const _0x1256db=_0x38c800[_0x35dcf5(0xa3)]();_0x1256db[_0x35dcf5(0xda)](),_0x1256db[_0x35dcf5(0xb9)](_0x1f7013),_0x20552e[_0x35dcf5(0xc1)](_0x35dcf5(0xa1)),_0xa2af29[_0x35dcf5(0x9a)]();}}}export class ContentFieldView extends _0x43ace2{constructor(_0x3dc315,_0x2143f2=''){const _0x1a2ba0=_0x5ae23e;super(_0x3dc315),this[_0x1a2ba0(0xe3)]=this[_0x1a2ba0(0x90)](),this[_0x1a2ba0(0xdc)]({'tag':_0x1a2ba0(0xd4),'attributes':{'class':['ck',_0x1a2ba0(0xbe),_0x2143f2,_0x1a2ba0(0x92),_0x1a2ba0(0xb7)]}});}[_0x5ae23e(0xdf)](_0x413803){const _0x5b7592=_0x5ae23e;this[_0x5b7592(0x98)][_0x5b7592(0x9f)]=_0x413803;}[_0x5ae23e(0xcd)](){const _0x42ff05=_0x5ae23e;this[_0x42ff05(0x98)][_0x42ff05(0xd2)](this[_0x42ff05(0xe3)][_0x42ff05(0x98)]);}[_0x5ae23e(0x90)](){const _0x5d48d4=_0x5ae23e,_0x59d570=new _0x43ace2(),_0x57206e=this[_0x5d48d4(0xca)],_0x311809=new _0x1d5494();return _0x311809[_0x5d48d4(0xdb)]=!0x0,_0x59d570[_0x5d48d4(0xdc)]({'tag':_0x5d48d4(0xd4),'attributes':{'class':['ck',_0x5d48d4(0xd8)]},'children':[_0x311809,{'text':_0x2d2022(_0x57206e,_0x5d48d4(0xd3))}]}),_0x59d570[_0x5d48d4(0xbf)](),_0x59d570;}}function _0x3726(){const _0x2eaf81=['body','setStartAfter','loaderView','-9999px','_createLoader','407618itSqkh','ck-reset_all-excluded','isEnabled','wheel','ck-hidden','ck-ai-form__copy-button','smooth','element','bind','remove','911258wppKMp','ClipboardItem','_createCopyButton','ck-ai-form__content-area--processing','innerHTML','createElement','copy','icon','getSelection','change:value','scrollTo','ck-ai-form__content-area-wrapper','text/html','setEndBefore','left','value','<span>[</span>','clipboard','9125627GoyCjK','style','_copyHTMLToClipboard','ck-ai-form__copy-button-wrapper','class','<span>]</span>','scrollHeight','change:isProcessing','position','listenTo','ck-ai-form__content-field','execute','addRange','lastElementChild','contentFieldView','focus','.ck-ai-form__loader','ck-content','render','Copy','execCommand','write','textContent','absolute','text/plain','querySelector','2472400HSVTqm','firstElementChild','mousedown','locale','\x20ck-ai-form__copy-button--copied','bindTemplate','appendLoader','createRange','set','10370SxriML','isProcessing','appendChild','AI\x20is\x20writing...','div','4747797KTLiHQ','copyButtonView','5793304UqoASD','ck-ai-form__loader','10vqcSCi','removeAllRanges','isVisible','setTemplate','3lZwzXg','ck-ai-form__content-area','setContent','1962rujJCS'];_0x3726=function(){return _0x2eaf81;};return _0x3726();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x34e4db,_0x176d13){const _0x55d995=_0x406d,_0x2586ad=_0x34e4db();while(!![]){try{const _0x5b69da=-parseInt(_0x55d995(0x94))/0x1+-parseInt(_0x55d995(0x91))/0x2*(parseInt(_0x55d995(0x89))/0x3)+-parseInt(_0x55d995(0x85))/0x4*(-parseInt(_0x55d995(0x86))/0x5)+parseInt(_0x55d995(0x93))/0x6+parseInt(_0x55d995(0x90))/0x7+parseInt(_0x55d995(0x8e))/0x8*(parseInt(_0x55d995(0x8a))/0x9)+parseInt(_0x55d995(0x88))/0xa;if(_0x5b69da===_0x176d13)break;else _0x2586ad['push'](_0x2586ad['shift']());}catch(_0x387f60){_0x2586ad['push'](_0x2586ad['shift']());}}}(_0x4cc8,0x1c98f));import{IconError as _0x4f9905}from'ckeditor5/src/icons.js';import{View as _0x4b6f57,IconView as _0x2edfdb}from'ckeditor5/src/ui.js';function _0x406d(_0x4a88b9,_0x34b710){const _0x4cc8ce=_0x4cc8();return _0x406d=function(_0x406d7d,_0x524513){_0x406d7d=_0x406d7d-0x85;let _0x5db4e8=_0x4cc8ce[_0x406d7d];return _0x5db4e8;},_0x406d(_0x4a88b9,_0x34b710);}export default class st extends _0x4b6f57{constructor(_0x3a785e,_0x4dcb86=''){const _0x559f52=_0x406d;super(_0x3a785e);const _0x544012=new _0x2edfdb(),_0x5eb853=this[_0x559f52(0x92)];this[_0x559f52(0x8c)](_0x559f52(0x87),_0x4dcb86),_0x544012[_0x559f52(0x95)]=_0x4f9905,this[_0x559f52(0x8f)]({'tag':_0x559f52(0x8d),'attributes':{'class':['ck',_0x559f52(0x8b)]},'children':[_0x544012,{'text':_0x5eb853['to'](_0x559f52(0x87))}]});}}function _0x4cc8(){const _0x5d310a=['348042vZVVvs','179019WYdnvy','content','4aBfhnc','31110UOncrT','text','1411350bTvpBn','12khvEQx','1152621OZLgyy','ck-ai-form__error','set','div','8BznSMo','setTemplate','1329027jDPKaw','113570IMCAsK','bindTemplate'];_0x4cc8=function(){return _0x5d310a;};return _0x4cc8();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3f6197=_0x2402;(function(_0x3a2d35,_0x5adb99){const _0x1e806d=_0x2402,_0x3703f4=_0x3a2d35();while(!![]){try{const _0x5d80e4=parseInt(_0x1e806d(0xb7))/0x1*(-parseInt(_0x1e806d(0xcc))/0x2)+-parseInt(_0x1e806d(0xb6))/0x3+parseInt(_0x1e806d(0xb1))/0x4+-parseInt(_0x1e806d(0xaf))/0x5*(-parseInt(_0x1e806d(0xd8))/0x6)+-parseInt(_0x1e806d(0xb4))/0x7+-parseInt(_0x1e806d(0xc0))/0x8*(-parseInt(_0x1e806d(0xbf))/0x9)+parseInt(_0x1e806d(0xbd))/0xa*(parseInt(_0x1e806d(0xac))/0xb);if(_0x5d80e4===_0x5adb99)break;else _0x3703f4['push'](_0x3703f4['shift']());}catch(_0x35dbf2){_0x3703f4['push'](_0x3703f4['shift']());}}}(_0x37c7,0x6d8cc));import{Rect as _0x182dcf,global as _0x3e5333,isVisible as _0x4e2115}from'ckeditor5/src/utils.js';import{IconHistory as _0x1c8d25,IconSubmit as _0x22cb92}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x115717,ButtonView as _0x286430}from'ckeditor5/src/ui.js';import{getTranslation as _0x307a9e}from'../../utils/common-translations.js';function _0x2402(_0x45808c,_0x41c437){const _0x37c76e=_0x37c7();return _0x2402=function(_0x2402a2,_0x280d4e){_0x2402a2=_0x2402a2-0xa2;let _0x45df04=_0x37c76e[_0x2402a2];return _0x45df04;},_0x2402(_0x45808c,_0x41c437);}function _0x37c7(){const _0x24dfda=['filteredView','width','maxRows','children','submitButtonView','_createSubmitButton','fieldView','element','ck-ai-form__toggle-history','846BsGtQy','isEmpty','minRows','_createShowHistoryButton','isVisible','add','focus','excludeScrollbarsAndBorders','bind','locale','History','value','18516OVeQrF','submit','isOn','execute','focusableChildren','queryView','target','Submit','enter','uiLanguageDirection','keystrokes','requestAnimationFrame','focusLast','fire','showHistoryButtonView','671yqLBWs','focusCycler','fieldWrapperChildren','120xnMMiP','resultsView','56176ynXqMs','render','rtl','4893154jvffPI','set','1146516IVdhPM','1939KwOZlY','window','right','ck-ai-form__submit','style','left','273270yTLpaq','isEnabled','9LwMTEY','4760416Pfbdtu','focusFirst','update'];_0x37c7=function(){return _0x24dfda;};return _0x37c7();}export default class ct extends _0x115717{[_0x3f6197(0xc7)];[_0x3f6197(0xab)];constructor(_0x3a7221,_0x2ee9ce){const _0x31c870=_0x3f6197;super(_0x3a7221,_0x2ee9ce),this[_0x31c870(0xa2)][_0x31c870(0xc9)][_0x31c870(0xce)]=0x1,this[_0x31c870(0xa2)][_0x31c870(0xc9)][_0x31c870(0xc5)]=0x3,this[_0x31c870(0xc7)]=this[_0x31c870(0xc8)](),this[_0x31c870(0xab)]=this[_0x31c870(0xcf)](),this[_0x31c870(0xdc)][_0x31c870(0xd1)](this[_0x31c870(0xab)],0x1),this[_0x31c870(0xdc)][_0x31c870(0xd1)](this[_0x31c870(0xc7)]);}[_0x3f6197(0xb2)](){const _0x47028a=_0x3f6197;super[_0x47028a(0xb2)](),this[_0x47028a(0xa2)][_0x47028a(0xae)][_0x47028a(0xd1)](this[_0x47028a(0xab)]),this[_0x47028a(0xc6)][_0x47028a(0xd1)](this[_0x47028a(0xc7)]),this[_0x47028a(0xa7)][_0x47028a(0xb5)](_0x47028a(0xa5),(_0x461672,_0x497bb4)=>{const _0x1317a0=_0x47028a;_0x461672[_0x1317a0(0xa3)]==this[_0x1317a0(0xa2)][_0x1317a0(0xc9)][_0x1317a0(0xca)]&&(this[_0x1317a0(0xd9)](),_0x497bb4());});}[_0x3f6197(0xc8)](){const _0x5a5110=_0x3f6197,_0x538f49=new _0x286430(this[_0x5a5110(0xd5)]),_0x23c3bb=this[_0x5a5110(0xd5)];return _0x538f49[_0x5a5110(0xb5)]({'icon':_0x22cb92,'label':_0x307a9e(_0x23c3bb,_0x5a5110(0xa4)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x5a5110(0xba)}),_0x538f49['on'](_0x5a5110(0xdb),()=>{const _0x4ac977=_0x5a5110;this[_0x4ac977(0xd9)]();}),_0x538f49[_0x5a5110(0xd4)](_0x5a5110(0xbe))['to'](this[_0x5a5110(0xa2)][_0x5a5110(0xc9)],_0x5a5110(0xcd),this,_0x5a5110(0xbe),(_0x16d3f0,_0x130f73)=>!_0x16d3f0&&_0x130f73),_0x538f49;}[_0x3f6197(0xcf)](){const _0x2877ef=_0x3f6197,_0x42c87e=new _0x286430(this[_0x2877ef(0xd5)]),_0x3f470d=this[_0x2877ef(0xb0)],_0x32ff35=this[_0x2877ef(0xd5)];_0x42c87e[_0x2877ef(0xb5)]({'label':_0x307a9e(_0x32ff35,_0x2877ef(0xd6)),'withText':!0x1,'icon':_0x1c8d25,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x2877ef(0xcb)}),_0x42c87e[_0x2877ef(0xd4)](_0x2877ef(0xda))['to'](_0x3f470d,_0x2877ef(0xd0)),_0x42c87e[_0x2877ef(0xd4)](_0x2877ef(0xbe))['to'](this,_0x2877ef(0xbe)),_0x42c87e['on'](_0x2877ef(0xdb),()=>{const _0x4153ab=_0x2877ef;_0x3f470d[_0x4153ab(0xd0)]=!_0x3f470d[_0x4153ab(0xd0)],_0x3f470d[_0x4153ab(0xd0)]?this[_0x4153ab(0xc3)][_0x4153ab(0xd2)]():this[_0x4153ab(0xd2)]();});const _0x1fc46b=()=>{const _0x4b5ed2=_0x2877ef;_0x3e5333[_0x4b5ed2(0xb8)][_0x4b5ed2(0xa8)](()=>{const _0x3a2817=_0x4b5ed2;if(_0x4e2115(this[_0x3a2817(0xca)])){const _0x3a8847=new _0x182dcf(this[_0x3a2817(0xa2)][_0x3a2817(0xc9)][_0x3a2817(0xca)]),_0x3c2196=_0x3a8847[_0x3a2817(0xc4)],_0x119c52=_0x3a2817(0xb3)===_0x32ff35[_0x3a2817(0xa6)]?_0x3a2817(0xbc):_0x3a2817(0xb9);_0x3a8847[_0x3a2817(0xd3)](),_0x42c87e[_0x3a2817(0xca)][_0x3a2817(0xbb)][_0x119c52]=_0x3c2196-_0x3a8847[_0x3a2817(0xc4)]+0x1+'px';}});};return this[_0x2877ef(0xa2)][_0x2877ef(0xc9)]['on'](_0x2877ef(0xc2),_0x1fc46b),this['on'](_0x2877ef(0xb2),_0x1fc46b),_0x42c87e;}[_0x3f6197(0xd9)](){const _0x529bd6=_0x3f6197,_0x2b0ef7=this[_0x529bd6(0xa2)][_0x529bd6(0xc9)][_0x529bd6(0xca)][_0x529bd6(0xd7)];this[_0x529bd6(0xaa)](_0x529bd6(0xd9),_0x2b0ef7);}[_0x3f6197(0xd2)](_0x40c2d6){const _0x528fad=_0x3f6197;-0x1===_0x40c2d6?this[_0x528fad(0xad)][_0x528fad(0xa9)]():this[_0x528fad(0xad)][_0x528fad(0xc1)]();}}
|