@ckeditor/ckeditor5-ai 46.1.0-alpha.1 → 46.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +2 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +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
|
-
function
|
|
23
|
+
function _0x3583(){const _0x5cb4a5=['Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','set','Casual','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Translate\x20the\x20content\x20to\x20German\x20language.','2MXbgZx','groupId','commands','2774110MmaDxQ','726976gbvqZx','journalism','Professional','Poetic','get','isPremiumPlugin','German','makeShorter','Journalism','pluginName','10554040yuHjLO','French','confident','ai.aiAssistant.removeCommands','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','business','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Translate\x20the\x20content\x20to\x20French\x20language.','Make\x20longer','450495zwhaHu','translateChinese','locale','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Portuguese','editOrReview','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','ai.aiAssistant.extraCommandGroups','AIAssistant','Business','define','professional','5149911FfZRPX','generate','Friendly','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Arabic','Legal','Summarize','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','includes','push','ai.aiAssistant.commands','translateEnglish','5pJioiy','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','makeLonger','improveWriting','ai.aiAssistant.preserveComments','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Make\x20shorter','concat','requires','translateFrench','Continue','poetic','translateSpanish','Translate','Direct','changeTone','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','filter','isOfficialPlugin','config','translateHindi','2957672SeYeWD','simplifyLanguage','77aKsbeI','Edit\x20or\x20review','Hindi','English','friendly','continue','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','summarize','casual','Confident','find','Simplified\x20Chinese','translateArabic','changeStyle','direct','forEach','translatePortuguese','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Change\x20style','Translate\x20the\x20content\x20to\x20English\x20language.','legal','4768638sBXtyy','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Improve\x20writing','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Generate\x20from\x20selection','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Simplify\x20language','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Spanish','Change\x20tone','6RARvXH','translateGerman','translate'];_0x3583=function(){return _0x5cb4a5;};return _0x3583();}const _0xf6cb1c=_0x1ca6;(function(_0x40574e,_0x1ee8b2){const _0x1034e5=_0x1ca6,_0x495228=_0x40574e();while(!![]){try{const _0x49317c=-parseInt(_0x1034e5(0x233))/0x1+-parseInt(_0x1034e5(0x22f))/0x2*(parseInt(_0x1034e5(0x1e5))/0x3)+parseInt(_0x1034e5(0x206))/0x4*(parseInt(_0x1034e5(0x1f1))/0x5)+parseInt(_0x1034e5(0x227))/0x6*(-parseInt(_0x1034e5(0x21d))/0x7)+parseInt(_0x1034e5(0x23d))/0x8+parseInt(_0x1034e5(0x248))/0x9+-parseInt(_0x1034e5(0x232))/0xa*(-parseInt(_0x1034e5(0x208))/0xb);if(_0x49317c===_0x1ee8b2)break;else _0x495228['push'](_0x495228['shift']());}catch(_0x580a12){_0x495228['push'](_0x495228['shift']());}}}(_0x3583,0xe203e));import{Plugin as _0x22c57d}from'ckeditor5/src/core.js';import{AIAssistantUI as _0xab0fc}from'./aiassistantui.js';import{AIAssistantEditing as _0x464630}from'./aiassistantediting.js';import{getTranslation as _0x2a67f8}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x480307}from'./utils/normalizecommandsconfig.js';function _0x1ca6(_0x4f7920,_0x21a510){const _0x3583bc=_0x3583();return _0x1ca6=function(_0x1ca605,_0x408ad2){_0x1ca605=_0x1ca605-0x1de;let _0x14f723=_0x3583bc[_0x1ca605];return _0x14f723;},_0x1ca6(_0x4f7920,_0x21a510);}export class AIAssistant extends _0x22c57d{static get[_0xf6cb1c(0x1f9)](){return[_0xab0fc,_0x464630];}static get[_0xf6cb1c(0x23c)](){const _0x129003=_0xf6cb1c;return _0x129003(0x1e1);}static get[_0xf6cb1c(0x203)](){return!0x0;}static get[_0xf6cb1c(0x238)](){return!0x0;}constructor(_0x1207d7){const _0x53eb55=_0xf6cb1c;super(_0x1207d7);const _0x540590=_0x1207d7[_0x53eb55(0x204)],_0x22113c=_0x1207d7[_0x53eb55(0x24a)];_0x540590[_0x53eb55(0x1e3)](_0x53eb55(0x1f5),!0x0),_0x540590[_0x53eb55(0x1e3)](_0x53eb55(0x1ef),getDefaultAICommands(_0x22113c)),_0x540590[_0x53eb55(0x1e3)](_0x53eb55(0x1e0),[]),_0x540590[_0x53eb55(0x1e3)](_0x53eb55(0x240),[]);let _0x1a74b8=_0x480307(_0x540590[_0x53eb55(0x237)](_0x53eb55(0x1ef)),_0x22113c);const _0x45e1c5=_0x540590[_0x53eb55(0x237)](_0x53eb55(0x1e0)),_0x48b38d=_0x540590[_0x53eb55(0x237)](_0x53eb55(0x240));_0x45e1c5[_0x53eb55(0x217)](_0x15b820=>{const _0xfdaa5f=_0x53eb55,_0x5ad151=_0x1a74b8[_0xfdaa5f(0x212)](_0x1d90a6=>_0x1d90a6[_0xfdaa5f(0x230)]===_0x15b820[_0xfdaa5f(0x230)]);_0x5ad151?_0x5ad151[_0xfdaa5f(0x231)]=_0x5ad151[_0xfdaa5f(0x231)][_0xfdaa5f(0x1f8)](_0x15b820[_0xfdaa5f(0x231)]):_0x1a74b8[_0xfdaa5f(0x1ee)](_0x15b820);}),_0x1a74b8=_0x1a74b8[_0x53eb55(0x202)](_0x5c020f=>!_0x48b38d[_0x53eb55(0x1ed)](_0x5c020f[_0x53eb55(0x230)])),_0x1a74b8[_0x53eb55(0x217)](_0xaee49f=>{const _0x2af3a5=_0x53eb55;_0xaee49f[_0x2af3a5(0x231)]=_0xaee49f[_0x2af3a5(0x231)][_0x2af3a5(0x202)](_0x36a966=>!_0x48b38d[_0x2af3a5(0x1ed)](_0x36a966['id']));}),_0x540590[_0x53eb55(0x22b)](_0x53eb55(0x1ef),_0x1a74b8);}}export function getDefaultAICommands(_0x2e35e5){const _0x56da3c=_0xf6cb1c;return[{'groupId':_0x56da3c(0x1de),'groupLabel':_0x2a67f8(_0x2e35e5,_0x56da3c(0x209)),'commands':[{'id':_0x56da3c(0x1f4),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x21f)),'prompt':_0x56da3c(0x201)},{'id':_0x56da3c(0x23a),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x1f7)),'prompt':_0x56da3c(0x22a)},{'id':_0x56da3c(0x1f3),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x247)),'prompt':_0x56da3c(0x1df)},{'id':_0x56da3c(0x207),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x223)),'prompt':_0x56da3c(0x224)}]},{'groupId':_0x56da3c(0x1e6),'groupLabel':_0x2a67f8(_0x2e35e5,_0x56da3c(0x221)),'commands':[{'id':_0x56da3c(0x20f),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x1eb)),'prompt':_0x56da3c(0x242)},{'id':_0x56da3c(0x20d),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x1fb)),'prompt':_0x56da3c(0x241)}]},{'groupId':_0x56da3c(0x200),'groupLabel':_0x2a67f8(_0x2e35e5,_0x56da3c(0x226)),'commands':[{'id':_0x56da3c(0x1e4),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x235)),'prompt':_0x56da3c(0x20e)},{'id':_0x56da3c(0x210),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x22c)),'prompt':_0x56da3c(0x222)},{'id':_0x56da3c(0x216),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x1ff)),'prompt':_0x56da3c(0x22d)},{'id':_0x56da3c(0x23f),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x211)),'prompt':_0x56da3c(0x1f2)},{'id':_0x56da3c(0x20c),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x1e7)),'prompt':_0x56da3c(0x1ec)}]},{'groupId':_0x56da3c(0x215),'groupLabel':_0x2a67f8(_0x2e35e5,_0x56da3c(0x21a)),'commands':[{'id':_0x56da3c(0x243),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x1e2)),'prompt':_0x56da3c(0x219)},{'id':_0x56da3c(0x21c),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x1ea)),'prompt':_0x56da3c(0x24c)},{'id':_0x56da3c(0x234),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x23b)),'prompt':_0x56da3c(0x244)},{'id':_0x56da3c(0x1fc),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x236)),'prompt':_0x56da3c(0x1e8)}]},{'groupId':_0x56da3c(0x229),'groupLabel':_0x2a67f8(_0x2e35e5,_0x56da3c(0x1fe)),'commands':[{'id':_0x56da3c(0x1f0),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x20b)),'prompt':_0x56da3c(0x21b)},{'id':_0x56da3c(0x1fd),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x225)),'prompt':_0x56da3c(0x1f6)},{'id':_0x56da3c(0x218),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x24d)),'prompt':_0x56da3c(0x220)},{'id':_0x56da3c(0x228),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x239)),'prompt':_0x56da3c(0x22e)},{'id':_0x56da3c(0x1fa),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x23e)),'prompt':_0x56da3c(0x246)},{'id':_0x56da3c(0x249),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x213)),'prompt':_0x56da3c(0x21e)},{'id':_0x56da3c(0x205),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x20a)),'prompt':_0x56da3c(0x24b)},{'id':_0x56da3c(0x214),'label':_0x2a67f8(_0x2e35e5,_0x56da3c(0x1e9)),'prompt':_0x56da3c(0x245)}]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x149f41=_0x50eb;(function(_0x337ab7,_0x1f3f8b){const _0x8ae382=_0x50eb,_0x475149=_0x337ab7();while(!![]){try{const _0x16cb42=parseInt(_0x8ae382(0x141))/0x1+-parseInt(_0x8ae382(0x122))/0x2*(-parseInt(_0x8ae382(0x129))/0x3)+-parseInt(_0x8ae382(0x14b))/0x4+parseInt(_0x8ae382(0x173))/0x5*(parseInt(_0x8ae382(0x15c))/0x6)+-parseInt(_0x8ae382(0x113))/0x7*(parseInt(_0x8ae382(0x164))/0x8)+parseInt(_0x8ae382(0x143))/0x9+parseInt(_0x8ae382(0x13a))/0xa*(-parseInt(_0x8ae382(0x125))/0xb);if(_0x16cb42===_0x1f3f8b)break;else _0x475149['push'](_0x475149['shift']());}catch(_0x70316b){_0x475149['push'](_0x475149['shift']());}}}(_0x27d5,0xf3d2c));import{uid as _0xdffd95}from'ckeditor5/src/utils.js';import{Plugin as _0x515799}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0xf6d9a7}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x51f852,ViewDataTransfer as _0x5197bc}from'ckeditor5/src/engine.js';function _0x50eb(_0x3bb2cb,_0x3cdc8b){const _0x27d55e=_0x27d5();return _0x50eb=function(_0x50eb4e,_0x573ac3){_0x50eb4e=_0x50eb4e-0x105;let _0x21b8da=_0x27d55e[_0x50eb4e];return _0x21b8da;},_0x50eb(_0x3bb2cb,_0x3cdc8b);}const l=globalThis[_0x149f41(0x15a)],w=_0x149f41(0x170);export class AIAssistantEditing extends _0x515799{static get[_0x149f41(0x121)](){const _0x3e4e03=_0x149f41;return _0x3e4e03(0x109);}static get[_0x149f41(0x139)](){return!0x0;}static get[_0x149f41(0x112)](){return!0x0;}[_0x149f41(0x167)](){const _0x1669b9=_0x149f41,{editor:_0x379fd6}=this,_0x3fcc6e=[_0x1669b9(0x154)];_0x379fd6[_0x1669b9(0x16b)][_0x1669b9(0x158)](_0x1669b9(0x118))&&_0x3fcc6e[_0x1669b9(0x160)](_0x1669b9(0x14f)),_0x379fd6[_0x1669b9(0x165)][_0x1669b9(0x12f)](_0x1669b9(0x106))[_0x1669b9(0x15d)]({'model':w,'view':{'classes':_0x3fcc6e,'priority':0xc}}),_0x379fd6[_0x1669b9(0x165)][_0x1669b9(0x12f)](_0x1669b9(0x106))[_0x1669b9(0x15f)]({'model':w,'view':(_0x167a65,{writer:_0x5b9f54})=>{const _0x5e2b47=_0x1669b9;if(!_0x167a65[_0x5e2b47(0x168)][_0x5e2b47(0x16e)])return null;const _0x1a4372=_0x5b9f54[_0x5e2b47(0x163)](_0x5e2b47(0x116));return _0x5b9f54[_0x5e2b47(0x128)]([_0x5e2b47(0x154),_0x5e2b47(0x136)],_0x1a4372),_0x1a4372;}});}[_0x149f41(0x10e)](){!async function(_0x5d7868){const _0x228858=_0x8dd455([0x6e,0x41,0x37,0x79,0x75,0x72,0x67,0x4f,0x48,0x62,0x5a,0x76,0x44,0x70,0x6c,0x52,0x6b,0x4a,0x73,0x63,0x64,0x49,0x43,0x6d,0x38,0x36,0x6f,0x50,0x57,0x78,0x39,0x32,0x66,0x31,0x71,0x46,0x30,0x4c,0x61,0x53,0x58,0x33,0x4e,0x47,0x77,0x54,0x4d,0x4b,0x34,0x6a,0x56,0x74,0x59,0x55,0x42,0x51,0x69,0x35,0x7a,0x68,0x65,0x45]),_0x3c9eff=0x3dffc4e1,_0x1afb19=0x3df8b601^_0x3c9eff,_0x2f8db0=window[_0x8dd455([0x44,0x61,0x74,0x65])][_0x8dd455([0x6e,0x6f,0x77])](),_0x4411cb=_0x5d7868[_0x8dd455([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x159b97=new window[(_0x8dd455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a1752=>{_0x4411cb[_0x8dd455([0x6f,0x6e,0x63,0x65])](_0x8dd455([0x72,0x65,0x61,0x64,0x79]),_0x4a1752);}),_0x36e29e={[_0x8dd455([0x6b,0x74,0x79])]:_0x8dd455([0x45,0x43]),[_0x8dd455([0x75,0x73,0x65])]:_0x8dd455([0x73,0x69,0x67]),[_0x8dd455([0x63,0x72,0x76])]:_0x8dd455([0x50,0x2d,0x32,0x35,0x36]),[_0x8dd455([0x78])]:_0x8dd455([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]),[_0x8dd455([0x79])]:_0x8dd455([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]),[_0x8dd455([0x61,0x6c,0x67])]:_0x8dd455([0x45,0x53,0x32,0x35,0x36])},_0x2731f9=_0x4411cb[_0x8dd455([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x8dd455([0x67,0x65,0x74])](_0x8dd455([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1fca37(){let _0x3662a0,_0x2140f8=null,_0x24435b=null;try{if(_0x2731f9==_0x8dd455([0x47,0x50,0x4c]))return _0x8dd455([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3662a0=_0x5dd771(),!_0x3662a0)return _0x8dd455([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3662a0[_0x8dd455([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x24435b=_0x20d7c9(_0x3662a0[_0x8dd455([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3662a0[_0x8dd455([0x6a,0x74,0x69])])),await _0x4a09fe()?_0x16b92a()?_0x1c684f()?_0x8dd455([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5bbac3()?(_0x3662a0[_0x8dd455([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8dd455([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2140f8=_0x467fd3(_0x8dd455([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3662a0[_0x8dd455([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8dd455([0x74,0x72,0x69,0x61,0x6c])&&(_0x2140f8=_0x467fd3(_0x8dd455([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x12f5c0()):_0x8dd455([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x8dd455([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x8dd455([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x8dd455([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c684f(){const _0x4cbdcd=[_0x8dd455([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x8dd455([0x74,0x72,0x69,0x61,0x6c])][_0x8dd455([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3662a0[_0x8dd455([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f8db0/0x3e8:0xe10*_0x1afb19;return _0x3662a0[_0x8dd455([0x65,0x78,0x70])]<_0x4cbdcd;}function _0x16b92a(){const _0x111e5d=_0x3662a0[_0x8dd455([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x111e5d&&(!!_0x111e5d[_0x8dd455([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8dd455([0x2a]))||!!_0x111e5d[_0x8dd455([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8dd455([0x41,0x49])));}function _0x5bbac3(){const _0x85a27e=_0x50eb,_0x5873c1=_0x3662a0[_0x8dd455([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5873c1||0x0==_0x5873c1[_0x8dd455([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x50a5e8}=new URL(window[_0x8dd455([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x85a27e(0x12a)]);if(_0x5873c1[_0x8dd455([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50a5e8))return!0x0;const _0x4784ab=_0x50a5e8[_0x8dd455([0x73,0x70,0x6c,0x69,0x74])](_0x8dd455([0x2e]));return _0x5873c1[_0x8dd455([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d4cef=>_0x1d4cef[_0x8dd455([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8dd455([0x2a])))[_0x8dd455([0x6d,0x61,0x70])](_0x1a50c9=>_0x1a50c9[_0x8dd455([0x73,0x70,0x6c,0x69,0x74])](_0x8dd455([0x2e])))[_0x8dd455([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x142cea=>_0x142cea[_0x8dd455([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4784ab[_0x8dd455([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x8dd455([0x6d,0x61,0x70])](_0x58dca2=>Array(_0x4784ab[_0x8dd455([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x58dca2[_0x8dd455([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x8dd455([0x66,0x69,0x6c,0x6c])](_0x58dca2[0x0]===_0x8dd455([0x2a])?_0x8dd455([0x2a]):'')[_0x8dd455([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x58dca2))[_0x8dd455([0x73,0x6f,0x6d,0x65])](_0x507751=>_0x4784ab[_0x8dd455([0x65,0x76,0x65,0x72,0x79])]((_0x36f997,_0x69ada0)=>_0x507751[_0x69ada0]===_0x36f997||_0x507751[_0x69ada0]===_0x8dd455([0x2a])));}function _0x12f5c0(){return _0x2140f8&&_0x24435b?new window[(_0x8dd455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x348b99,_0x13a000)=>{_0x2140f8[_0x8dd455([0x74,0x68,0x65,0x6e])](_0x348b99,_0x13a000),_0x24435b[_0x8dd455([0x74,0x68,0x65,0x6e])](_0x315ea7=>{_0x315ea7!=_0x8dd455([0x56,0x61,0x6c,0x69,0x64])&&_0x348b99(_0x315ea7);},_0x13a000);}):_0x2140f8||_0x24435b||_0x8dd455([0x56,0x61,0x6c,0x69,0x64]);}}function _0x20d7c9(_0xc4c9cc,_0x1fef83){return new window[(_0x8dd455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c46ba=>{if(_0x54e545())return _0x4c46ba(_0x8dd455([0x56,0x61,0x6c,0x69,0x64]));_0x14aa2a(),_0x4411cb[_0x8dd455([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x8dd455([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5e8fd9=!0x1;const _0x395239=_0xdffd95();function _0x56b507(_0x21f730){return!!_0x21f730&&(typeof _0x21f730===_0x8dd455([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21f730===_0x8dd455([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21f730[_0x8dd455([0x74,0x68,0x65,0x6e])]===_0x8dd455([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21f730[_0x8dd455([0x63,0x61,0x74,0x63,0x68])]===_0x8dd455([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x8a6227(_0xa0ce5d){_0x87f415(_0xa0ce5d)[_0x8dd455([0x74,0x68,0x65,0x6e])](_0x6b06d7=>{if(!_0x6b06d7||_0x6b06d7[_0x8dd455([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x8dd455([0x6f,0x6b]))return _0x8dd455([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ea518(_0x3b3eb5(_0x395239+_0x1fef83))!=_0x6b06d7[_0x8dd455([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x8dd455([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x8dd455([0x56,0x61,0x6c,0x69,0x64]);})[_0x8dd455([0x74,0x68,0x65,0x6e])](_0x293b79=>(_0x591c3b(),_0x293b79),()=>{const _0x1d60a1=_0x411640();return null==_0x1d60a1?(_0x591c3b(),_0x8dd455([0x56,0x61,0x6c,0x69,0x64])):_0x8dd455(_0x2f8db0-_0x1d60a1>(0x19f340e1^_0x3c9eff)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x8dd455([0x74,0x68,0x65,0x6e])](_0x4c46ba)[_0x8dd455([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4c46ba(_0x8dd455([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x43d83=0x3dc92a61^_0x3c9eff;function _0x591c3b(){const _0x379235=_0x8dd455([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ea518(_0x3b3eb5(_0xc4c9cc)),_0x4eb6c2=_0x129f53(_0x4ea518(window[_0x8dd455([0x4d,0x61,0x74,0x68])][_0x8dd455([0x63,0x65,0x69,0x6c])](_0x2f8db0/_0x43d83)));window[_0x8dd455([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8dd455([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x379235,_0x4eb6c2);}function _0x411640(){const _0x179d81=_0x8dd455([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ea518(_0x3b3eb5(_0xc4c9cc)),_0x5dabfb=window[_0x8dd455([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8dd455([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x179d81);return _0x5dabfb?window[_0x8dd455([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x129f53(_0x5dabfb),0x10)*_0x43d83:null;}function _0x87f415(_0xb5e675){return new window[(_0x8dd455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd466a0,_0x3db05c)=>{_0xb5e675[_0x8dd455([0x74,0x68,0x65,0x6e])](_0xd466a0,_0x3db05c),window[_0x8dd455([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3db05c,0x3dfe1021^_0x3c9eff);});}}_0x4411cb[_0x8dd455([0x6f,0x6e])](_0x8dd455([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x441fff,_0x11dd7e)=>{if(_0x11dd7e[0x0]!=_0xc4c9cc)return _0x4c46ba(_0x8dd455([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x11dd7e[0x1]={..._0x11dd7e[0x1],[_0x8dd455([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x395239};},{[_0x8dd455([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8dd455([0x68,0x69,0x67,0x68])}),_0x4411cb[_0x8dd455([0x6f,0x6e])](_0x8dd455([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5ef321=>{_0x56b507(_0x5ef321[_0x8dd455([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5e8fd9=!0x0,_0x8a6227(_0x5ef321[_0x8dd455([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x8dd455([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8dd455([0x6c,0x6f,0x77])}),_0x159b97[_0x8dd455([0x74,0x68,0x65,0x6e])](()=>{_0x5e8fd9||_0x4c46ba(_0x8dd455([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x54e545(){return _0x4411cb[_0x8dd455([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8dd455([0x76,0x69,0x65,0x77])][_0x8dd455([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x8dd455([0x61,0x75,0x74,0x6f]);}function _0x14aa2a(){_0x4411cb[_0x8dd455([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8dd455([0x76,0x69,0x65,0x77])][_0x8dd455([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x8dd455([0x61,0x75,0x74,0x6f]);}}function _0x467fd3(_0x29af04){const _0x15acc9=[new window[(_0x8dd455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36bb37=>setTimeout(_0x36bb37,0x3df6fa2d^_0x3c9eff)),_0x159b97[_0x8dd455([0x74,0x68,0x65,0x6e])](()=>new window[(_0x8dd455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1db8ac=>{let _0x4e8201=0x0;_0x4411cb[_0x8dd455([0x6d,0x6f,0x64,0x65,0x6c])][_0x8dd455([0x6f,0x6e])](_0x8dd455([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x36802c,_0x888b57)=>{_0x888b57[0x0][_0x8dd455([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4e8201++,_0x4e8201==(0x3dffc519^_0x3c9eff)&&(_0x1db8ac(),_0x36802c[_0x8dd455([0x6f,0x66,0x66])]());});}))];return window[_0x8dd455([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x8dd455([0x72,0x61,0x63,0x65])](_0x15acc9)[_0x8dd455([0x74,0x68,0x65,0x6e])](()=>_0x29af04);}async function _0x26e798(){await _0x159b97,_0x4411cb[_0x8dd455([0x6d,0x6f,0x64,0x65,0x6c])][_0x8dd455([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x39d441,_0x4411cb[_0x8dd455([0x6d,0x6f,0x64,0x65,0x6c])][_0x8dd455([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x39d441,_0x4411cb[_0x8dd455([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x8dd455([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x8ce040(_0x3509b8){const _0x5174ea=_0x1d2e46();_0x4411cb[_0x5174ea]=_0x8dd455([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3509b8,_0x3509b8!=_0x8dd455([0x56,0x61,0x6c,0x69,0x64])&&_0x26e798();}function _0x1d2e46(){const _0x108c84=window[_0x8dd455([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x8dd455([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x8dd455([0x6e,0x6f,0x77])]())[_0x8dd455([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x8dd455([0x2e]),'');let _0x2102b2=_0x8dd455([0x6e]);for(let _0x83b45d=0x0;_0x83b45d<_0x108c84[_0x8dd455([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x83b45d+=0x2){let _0x1da6e0=window[_0x8dd455([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x108c84[_0x8dd455([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x83b45d,_0x83b45d+0x2));_0x1da6e0>=_0x228858[_0x8dd455([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1da6e0-=_0x228858[_0x8dd455([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2102b2+=_0x228858[_0x1da6e0];}return _0x2102b2;}function _0x5dd771(){const _0x19d9f2=_0x2731f9[_0x8dd455([0x73,0x70,0x6c,0x69,0x74])](_0x8dd455([0x2e]));if(0x3!=_0x19d9f2[_0x8dd455([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c4a19(_0x19d9f2[0x1]);function _0x4c4a19(_0xf45552){const _0xbe11c7=_0x1cdad9(_0xf45552);return _0xbe11c7&&_0x31304f()?_0xbe11c7:null;function _0x31304f(){const _0x17488b=_0xbe11c7[_0x8dd455([0x6a,0x74,0x69])],_0x224617=window[_0x8dd455([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17488b[_0x8dd455([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17488b[_0x8dd455([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4b6c5e={..._0xbe11c7,[_0x8dd455([0x6a,0x74,0x69])]:_0x17488b[_0x8dd455([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x17488b[_0x8dd455([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4b6c5e[_0x8dd455([0x76,0x63])],_0x3b3eb5(_0x4b6c5e)==_0x224617;}}}async function _0x4a09fe(){let _0x58eafb=!0x0;try{const _0x43fa5a=_0x2731f9[_0x8dd455([0x73,0x70,0x6c,0x69,0x74])](_0x8dd455([0x2e])),[_0x1aea18,_0x22e149,_0xbf017b]=_0x43fa5a;return _0x44d8c3(_0x1aea18),await _0x15a477(_0x1aea18,_0x22e149,_0xbf017b),_0x58eafb;}catch{return!0x1;}function _0x44d8c3(_0x2468f8){const _0x331f4f=_0x1cdad9(_0x2468f8);_0x331f4f&&_0x331f4f[_0x8dd455([0x61,0x6c,0x67])]==_0x8dd455([0x45,0x53,0x32,0x35,0x36])||(_0x58eafb=!0x1);}async function _0x15a477(_0xd5ed81,_0x434af4,_0x355a6c){const _0x212f56=window[_0x8dd455([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x8dd455([0x66,0x72,0x6f,0x6d])](_0x3203c0(_0x355a6c),_0x264d45=>_0x264d45[_0x8dd455([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1c01af=new window[(_0x8dd455([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x8dd455([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd5ed81+_0x8dd455([0x2e])+_0x434af4),_0x583487=window[_0x8dd455([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x8dd455([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x583487)return;const _0x5abdfa=await _0x583487[_0x8dd455([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x8dd455([0x6a,0x77,0x6b]),_0x36e29e,{[_0x8dd455([0x6e,0x61,0x6d,0x65])]:_0x8dd455([0x45,0x43,0x44,0x53,0x41]),[_0x8dd455([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x8dd455([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x8dd455([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x583487[_0x8dd455([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x8dd455([0x6e,0x61,0x6d,0x65])]:_0x8dd455([0x45,0x43,0x44,0x53,0x41]),[_0x8dd455([0x68,0x61,0x73,0x68])]:{[_0x8dd455([0x6e,0x61,0x6d,0x65])]:_0x8dd455([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5abdfa,_0x212f56,_0x1c01af)||(_0x58eafb=!0x1);}}function _0x1cdad9(_0x1b8bd9){return _0x1b8bd9[_0x8dd455([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x8dd455([0x65,0x79]))?JSON[_0x8dd455([0x70,0x61,0x72,0x73,0x65])](_0x3203c0(_0x1b8bd9)):null;}function _0x3203c0(_0x2fc9f3){return window[_0x8dd455([0x61,0x74,0x6f,0x62])](_0x2fc9f3[_0x8dd455([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x8dd455([0x2b]))[_0x8dd455([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x8dd455([0x2f])));}function _0x3b3eb5(_0x159c1a){let _0x19e0e0=0x1505;function _0x45e1a1(_0x4bdab0){for(let _0x239dd=0x0;_0x239dd<_0x4bdab0[_0x8dd455([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x239dd++){const _0x3cc729=_0x4bdab0[_0x8dd455([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x239dd);_0x19e0e0=(_0x19e0e0<<0x5)+_0x19e0e0+_0x3cc729,_0x19e0e0&=_0x19e0e0;}}function _0x51c0da(_0x1f588d){Array[_0x8dd455([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f588d)?_0x1f588d[_0x8dd455([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x51c0da):_0x1f588d&&typeof _0x1f588d==_0x8dd455([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x8dd455([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f588d)[_0x8dd455([0x73,0x6f,0x72,0x74])]()[_0x8dd455([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2930d1,_0xbb6d66])=>{_0x45e1a1(_0x2930d1),_0x51c0da(_0xbb6d66);}):_0x45e1a1(window[_0x8dd455([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f588d));}return _0x51c0da(_0x159c1a),_0x19e0e0>>>0x0;}function _0x4ea518(_0x1bd5c7){return _0x1bd5c7[_0x8dd455([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x8dd455([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x8dd455([0x30]));}function _0x129f53(_0x5b6d05){return _0x5b6d05[_0x8dd455([0x73,0x70,0x6c,0x69,0x74])]('')[_0x8dd455([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x8dd455([0x6a,0x6f,0x69,0x6e])]('');}function _0x39d441(){}function _0x8dd455(_0xe603b1){const _0x99a9ac=_0x50eb;return _0xe603b1[_0x99a9ac(0x16f)](_0x1e3e0f=>String[_0x99a9ac(0x111)](_0x1e3e0f))[_0x99a9ac(0x16c)]('');}_0x8ce040(await _0x1fca37());}(this);}[_0x149f41(0x14d)](){const _0x257de5=_0x149f41,_0x1313bb=this[_0x257de5(0x150)][_0x257de5(0x126)];_0x1313bb[_0x257de5(0x153)](_0x14f46b=>{const _0x5a84f5=_0x257de5,_0x4ca67a=_0x1313bb[_0x5a84f5(0x166)][_0x5a84f5(0x10f)][_0x5a84f5(0x137)]();let _0x2b554a=0x0;for(const _0x469402 of _0x4ca67a){const _0x34f417=w+':'+_0x2b554a;if(_0x1313bb[_0x5a84f5(0x162)][_0x5a84f5(0x135)](_0x34f417))_0x14f46b[_0x5a84f5(0x131)](_0x34f417,{'range':_0x469402});else{if(_0x469402[_0x5a84f5(0x114)][_0x5a84f5(0x172)]){const _0x515cfd=_0x469402[_0x5a84f5(0x114)][_0x5a84f5(0x144)](({item:_0x372f53})=>!_0x1313bb[_0x5a84f5(0x134)][_0x5a84f5(0x14a)](_0x372f53),{'boundaries':_0x469402});_0x14f46b[_0x5a84f5(0x11f)](_0x34f417,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x14f46b[_0x5a84f5(0x145)](_0x515cfd,_0x469402[_0x5a84f5(0x13d)])});}else _0x14f46b[_0x5a84f5(0x11f)](_0x34f417,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x469402});}_0x2b554a++;}});}[_0x149f41(0x151)](){const _0x4de09f=_0x149f41,_0x27f75d=this[_0x4de09f(0x150)][_0x4de09f(0x126)],_0x5d0066=Array[_0x4de09f(0x130)](this[_0x4de09f(0x150)][_0x4de09f(0x126)][_0x4de09f(0x162)][_0x4de09f(0x142)](w));_0x5d0066[_0x4de09f(0x159)]&&_0x27f75d[_0x4de09f(0x153)](_0x41d110=>{const _0x5a457b=_0x4de09f;_0x5d0066[_0x5a457b(0x120)](_0x3f694a=>{const _0x37034e=_0x5a457b;_0x41d110[_0x37034e(0x13e)](_0x3f694a);});});}[_0x149f41(0x147)](_0x5853c8,_0x3fc96b){const _0x5387fb=_0x149f41,_0x2a22fe=this[_0x5387fb(0x152)](),_0x5ad814=_0x3fc96b||_0x2a22fe[_0x5387fb(0x13c)]();this[_0x5387fb(0x150)][_0x5387fb(0x126)][_0x5387fb(0x12b)](_0x5ad814)&&this[_0x5387fb(0x150)][_0x5387fb(0x126)][_0x5387fb(0x153)](_0x319a3b=>{const _0x31166a=_0x5387fb;this[_0x31166a(0x151)](),_0x3fc96b||this[_0x31166a(0x123)](_0x319a3b,_0x2a22fe),this[_0x31166a(0x169)]({'insertAt':_0x5ad814,'writer':_0x319a3b,'html':_0x5853c8});});}[_0x149f41(0x108)](_0x4f61bd){const _0x4491a2=_0x149f41,{model:_0xceddfd}=this[_0x4491a2(0x150)],_0x4414d5=this[_0x4491a2(0x152)]();_0xceddfd[_0x4491a2(0x153)](()=>{const _0x4fa94e=_0x4491a2,_0x3b4758=this[_0x4fa94e(0x127)](_0x4f61bd,_0x4414d5)||this[_0x4fa94e(0x12e)](_0x4414d5);this[_0x4fa94e(0x147)](_0x4f61bd,_0x3b4758);});}[_0x149f41(0x152)](){const _0x402145=_0x149f41,_0x2ffb43=this[_0x402145(0x150)][_0x402145(0x126)],_0x1fd97e=Array[_0x402145(0x130)](_0x2ffb43[_0x402145(0x162)][_0x402145(0x142)](w))[_0x402145(0x16f)](_0x571a9c=>_0x571a9c[_0x402145(0x148)]());return _0x2ffb43[_0x402145(0x15b)](_0x1fd97e);}[_0x149f41(0x169)]({writer:_0x50541a,html:_0x1ae553,insertAt:_0x17514c}){const _0x1f9f77=_0x149f41,{view:_0x136c54}=this[_0x1f9f77(0x150)][_0x1f9f77(0x107)],_0x64a7e5=this[_0x1f9f77(0x150)][_0x1f9f77(0x157)][_0x1f9f77(0x158)](_0xf6d9a7),_0xd1c066=new l();_0xd1c066[_0x1f9f77(0x155)](_0x1f9f77(0x11d),_0x1ae553);const _0x1e32a6=new ClipboardEvent(_0x1f9f77(0x132),{'clipboardData':_0xd1c066}),_0x3f2c35=new _0x51f852(_0x136c54,_0x1e32a6,{'dataTransfer':new _0x5197bc(_0xd1c066)});_0x50541a[_0x1f9f77(0x11e)](_0x17514c);const _0x3b9386=(_0x90c8b3,_0x31d7d6)=>{const _0x5d0e34=_0x1f9f77;_0x31d7d6[_0x5d0e34(0x110)]&&_0x50541a[_0x5d0e34(0x11e)](_0x31d7d6[_0x5d0e34(0x110)]);};_0x64a7e5[_0x1f9f77(0x10b)](_0x1f9f77(0x140),_0x3b9386,{'priority':_0x1f9f77(0x13b)}),_0x136c54[_0x1f9f77(0x166)][_0x1f9f77(0x14c)](_0x1f9f77(0x132),_0x3f2c35),_0x64a7e5[_0x1f9f77(0x16d)](_0x1f9f77(0x140),_0x3b9386);}[_0x149f41(0x12e)](_0x26da9e){const _0x4f704f=_0x149f41,{model:_0x3577d9}=this[_0x4f704f(0x150)],_0x45649b=Array[_0x4f704f(0x130)](_0x26da9e[_0x4f704f(0x12c)]());return _0x45649b[_0x4f704f(0x159)]?_0x3577d9[_0x4f704f(0x171)](_0x45649b[_0x4f704f(0x133)]()):_0x26da9e[_0x4f704f(0x105)]();}[_0x149f41(0x127)](_0x58d256,_0x3bd41f){const _0x1c294a=_0x149f41,{model:_0x14dce9,plugins:_0x1b52a1}=this[_0x1c294a(0x150)];if(_0x1b52a1[_0x1c294a(0x135)](_0x1c294a(0x156))){const _0x24399c=_0x1b52a1[_0x1c294a(0x158)](_0x1c294a(0x156))[_0x1c294a(0x16a)](_0x3bd41f);if(_0x24399c[_0x1c294a(0x159)]){const _0x42c0cb=this[_0x1c294a(0x161)](_0x58d256),_0x14d52a=this[_0x1c294a(0x124)](_0x24399c,_0x42c0cb);return _0x14dce9[_0x1c294a(0x11b)](_0x14d52a,0x0);}}return null;}[_0x149f41(0x161)](_0x4cd4ab){const _0x395c9a=_0x149f41,_0x14533f=this[_0x395c9a(0x150)][_0x395c9a(0x157)][_0x395c9a(0x158)](_0x395c9a(0x156)),_0x2fa50a=this[_0x395c9a(0x150)][_0x395c9a(0x119)][_0x395c9a(0x13f)](_0x4cd4ab),_0x11234d=Array[_0x395c9a(0x130)](_0x2fa50a[_0x395c9a(0x11c)]())[_0x395c9a(0x12d)](_0x1f460f=>_0x1f460f['is'](_0x395c9a(0x10c),_0x395c9a(0x138)));let _0x273d0e=0x0;return _0x11234d[_0x395c9a(0x120)](_0x375f1b=>{const _0x4c8d92=_0x395c9a;_0x273d0e+=_0x14533f[_0x4c8d92(0x11a)](_0x375f1b);}),_0x273d0e;}[_0x149f41(0x124)](_0x444249,_0xb6b6e5){const _0x1bbe74=_0x149f41,_0x6ead30=this[_0x1bbe74(0x150)][_0x1bbe74(0x157)][_0x1bbe74(0x158)](_0x1bbe74(0x156)),_0x5597d6=_0x6ead30[_0x1bbe74(0x10d)](_0x444249),_0x3a3b3a=_0x6ead30[_0x1bbe74(0x149)](_0x444249),_0x2e1515=_0x5597d6[_0x1bbe74(0x117)]+0x1,_0x50d9eb=_0x3a3b3a[_0x1bbe74(0x10a)],_0x2961a4=_0x444249[0x0][_0x1bbe74(0x15e)](_0x1bbe74(0x138));for(let _0xd3b58e=0x0;_0xd3b58e<_0xb6b6e5;_0xd3b58e++)_0x6ead30[_0x1bbe74(0x146)](_0x2961a4,{'at':_0x2e1515});return _0x2961a4[_0x1bbe74(0x115)](_0x2e1515)[_0x1bbe74(0x115)](_0x50d9eb);}[_0x149f41(0x123)](_0x22831b,_0x577285){const _0x175c3f=_0x149f41,{plugins:_0x57a86b}=this[_0x175c3f(0x150)],{model:_0x2c2099}=_0x22831b;if(!_0x57a86b[_0x175c3f(0x135)](_0x175c3f(0x156)))return;_0x57a86b[_0x175c3f(0x158)](_0x175c3f(0x156))[_0x175c3f(0x16a)](_0x577285)[_0x175c3f(0x159)]&&_0x2c2099[_0x175c3f(0x14e)](_0x577285);}}function _0x27d5(){const _0x384714=['parse','contentInsertion','1682428fbkCeI','getMarkersGroup','11038509hplOGR','getLastMatchingPosition','createRange','insertRows','insertContent','getRange','getColumnIndexes','isContent','5040832XCoeYp','fire','showFakeVisualSelection','deleteContent','ck-ai-assistant-ui_theme','editor','hideFakeVisualSelection','_getAISelection','change','ck-fake-ai-selection','setData','TableUtils','plugins','get','length','DataTransfer','createSelection','18924UrMtCL','markerToHighlight','findAncestor','markerToElement','push','_getTableRowCountFromContent','markers','createUIElement','3179912SlmrVL','conversion','document','init','markerRange','_pasteHTMLUsingClipboard','getSelectedTableCells','config','join','off','isCollapsed','map','ai-ui','createPositionAfter','isAtEnd','2885QDDeTp','getLastPosition','editingDowncast','editing','insertContentBelow','AIAssistantEditing','first','once','element','getRowIndexes','afterInit','selection','resultRange','fromCharCode','isPremiumPlugin','7QrsAEV','start','getChild','span','last','ai.useTheme','data','getRows','createPositionAt','getChildren','text/html','setSelection','addMarker','forEach','pluginName','460YkgDtZ','_resetContentOfSelectedTableCells','_createEmptyTableRows','208164cfxdRn','model','_prepareTableInsertBelowPosition','addClass','2589HWkykq','href','canEditAt','getSelectedBlocks','filter','_getDefaultInsertBelowPosition','for','from','updateMarker','paste','pop','schema','has','ck-fake-ai-selection_collapsed','getRanges','table','isOfficialPlugin','1200mTwhqW','lowest','getFirstRange','end','removeMarker'];_0x27d5=function(){return _0x384714;};return _0x27d5();}
|
|
23
|
+
function _0xe6ed(_0x40d09e,_0x43a91d){const _0x59686f=_0x5968();return _0xe6ed=function(_0xe6eda5,_0x2bba9b){_0xe6eda5=_0xe6eda5-0x124;let _0x5b683f=_0x59686f[_0xe6eda5];return _0x5b683f;},_0xe6ed(_0x40d09e,_0x43a91d);}const _0x3eb2c1=_0xe6ed;(function(_0x186ef8,_0x35cede){const _0x3c51db=_0xe6ed,_0x16372a=_0x186ef8();while(!![]){try{const _0x4712ba=parseInt(_0x3c51db(0x12d))/0x1+-parseInt(_0x3c51db(0x143))/0x2+parseInt(_0x3c51db(0x16e))/0x3+-parseInt(_0x3c51db(0x144))/0x4*(-parseInt(_0x3c51db(0x130))/0x5)+parseInt(_0x3c51db(0x131))/0x6*(parseInt(_0x3c51db(0x190))/0x7)+parseInt(_0x3c51db(0x14b))/0x8+-parseInt(_0x3c51db(0x158))/0x9;if(_0x4712ba===_0x35cede)break;else _0x16372a['push'](_0x16372a['shift']());}catch(_0x297c1c){_0x16372a['push'](_0x16372a['shift']());}}}(_0x5968,0x54422));import{uid as _0x2056e8}from'ckeditor5/src/utils.js';import{Plugin as _0x572e04}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0xb14269}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0xafeebe,ViewDataTransfer as _0x39f1bf}from'ckeditor5/src/engine.js';const l=globalThis[_0x3eb2c1(0x185)],w=_0x3eb2c1(0x125);export class AIAssistantEditing extends _0x572e04{static get[_0x3eb2c1(0x171)](){const _0x4a006b=_0x3eb2c1;return _0x4a006b(0x17c);}static get[_0x3eb2c1(0x159)](){return!0x0;}static get[_0x3eb2c1(0x157)](){return!0x0;}[_0x3eb2c1(0x181)](){const _0x22058f=_0x3eb2c1,{editor:_0x46e021}=this,_0x15f45=[_0x22058f(0x15a)];_0x46e021[_0x22058f(0x16c)][_0x22058f(0x14a)](_0x22058f(0x129))&&_0x15f45[_0x22058f(0x175)](_0x22058f(0x12b)),_0x46e021[_0x22058f(0x14d)][_0x22058f(0x17e)](_0x22058f(0x166))[_0x22058f(0x13b)]({'model':w,'view':{'classes':_0x15f45,'priority':0xc}}),_0x46e021[_0x22058f(0x14d)][_0x22058f(0x17e)](_0x22058f(0x166))[_0x22058f(0x168)]({'model':w,'view':(_0x49415b,{writer:_0xbc643a})=>{const _0x205a87=_0x22058f;if(!_0x49415b[_0x205a87(0x161)][_0x205a87(0x18c)])return null;const _0x5cc667=_0xbc643a[_0x205a87(0x12c)](_0x205a87(0x126));return _0xbc643a[_0x205a87(0x135)]([_0x205a87(0x15a),_0x205a87(0x154)],_0x5cc667),_0x5cc667;}});}[_0x3eb2c1(0x13a)](){!async function(_0x17dd82){const _0x3a4226=_0x54b118([0x6e,0x41,0x37,0x79,0x75,0x72,0x67,0x4f,0x48,0x62,0x5a,0x76,0x44,0x70,0x6c,0x52,0x6b,0x4a,0x73,0x63,0x64,0x49,0x43,0x6d,0x38,0x36,0x6f,0x50,0x57,0x78,0x39,0x32,0x66,0x31,0x71,0x46,0x30,0x4c,0x61,0x53,0x58,0x33,0x4e,0x47,0x77,0x54,0x4d,0x4b,0x34,0x6a,0x56,0x74,0x59,0x55,0x42,0x51,0x69,0x35,0x7a,0x68,0x65,0x45]),_0xea7f76=0x3dffc4e1,_0x1da708=0x3df8b619^_0xea7f76,_0x155a26=window[_0x54b118([0x44,0x61,0x74,0x65])][_0x54b118([0x6e,0x6f,0x77])](),_0x5e0775=_0x17dd82[_0x54b118([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x521ab8=new window[(_0x54b118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ba7ef=>{_0x5e0775[_0x54b118([0x6f,0x6e,0x63,0x65])](_0x54b118([0x72,0x65,0x61,0x64,0x79]),_0x5ba7ef);}),_0x19117c={[_0x54b118([0x6b,0x74,0x79])]:_0x54b118([0x45,0x43]),[_0x54b118([0x75,0x73,0x65])]:_0x54b118([0x73,0x69,0x67]),[_0x54b118([0x63,0x72,0x76])]:_0x54b118([0x50,0x2d,0x32,0x35,0x36]),[_0x54b118([0x78])]:_0x54b118([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]),[_0x54b118([0x79])]:_0x54b118([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]),[_0x54b118([0x61,0x6c,0x67])]:_0x54b118([0x45,0x53,0x32,0x35,0x36])},_0xea69bf=_0x5e0775[_0x54b118([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x54b118([0x67,0x65,0x74])](_0x54b118([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x389865(){let _0x21f627,_0x74fc8e=null,_0x329640=null;try{if(_0xea69bf==_0x54b118([0x47,0x50,0x4c]))return _0x54b118([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x21f627=_0x749394(),!_0x21f627)return _0x54b118([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x21f627[_0x54b118([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x329640=_0x166717(_0x21f627[_0x54b118([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x21f627[_0x54b118([0x6a,0x74,0x69])])),await _0xe29c27()?_0x57030e()?_0x2b886a()?_0x54b118([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x547242()?(_0x21f627[_0x54b118([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54b118([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x74fc8e=_0x10d93c(_0x54b118([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x21f627[_0x54b118([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54b118([0x74,0x72,0x69,0x61,0x6c])&&(_0x74fc8e=_0x10d93c(_0x54b118([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3897ce()):_0x54b118([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x54b118([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x54b118([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x54b118([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2b886a(){const _0x1fce10=[_0x54b118([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x54b118([0x74,0x72,0x69,0x61,0x6c])][_0x54b118([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21f627[_0x54b118([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x155a26/0x3e8:0xe10*_0x1da708;return _0x21f627[_0x54b118([0x65,0x78,0x70])]<_0x1fce10;}function _0x57030e(){const _0x17b3db=_0x21f627[_0x54b118([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x17b3db&&(!!_0x17b3db[_0x54b118([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54b118([0x2a]))||!!_0x17b3db[_0x54b118([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54b118([0x41,0x49])));}function _0x547242(){const _0x5cd7c7=_0xe6ed,_0x448740=_0x21f627[_0x54b118([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x448740||0x0==_0x448740[_0x54b118([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3efbf2}=new URL(window[_0x54b118([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5cd7c7(0x165)]);if(_0x448740[_0x54b118([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3efbf2))return!0x0;const _0x52aff6=_0x3efbf2[_0x54b118([0x73,0x70,0x6c,0x69,0x74])](_0x54b118([0x2e]));return _0x448740[_0x54b118([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x358716=>_0x358716[_0x54b118([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54b118([0x2a])))[_0x54b118([0x6d,0x61,0x70])](_0x179c27=>_0x179c27[_0x54b118([0x73,0x70,0x6c,0x69,0x74])](_0x54b118([0x2e])))[_0x54b118([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50a84c=>_0x50a84c[_0x54b118([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x52aff6[_0x54b118([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x54b118([0x6d,0x61,0x70])](_0x4c684e=>Array(_0x52aff6[_0x54b118([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4c684e[_0x54b118([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x54b118([0x66,0x69,0x6c,0x6c])](_0x4c684e[0x0]===_0x54b118([0x2a])?_0x54b118([0x2a]):'')[_0x54b118([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4c684e))[_0x54b118([0x73,0x6f,0x6d,0x65])](_0x5b42cf=>_0x52aff6[_0x54b118([0x65,0x76,0x65,0x72,0x79])]((_0x12b5b1,_0x49e16c)=>_0x5b42cf[_0x49e16c]===_0x12b5b1||_0x5b42cf[_0x49e16c]===_0x54b118([0x2a])));}function _0x3897ce(){return _0x74fc8e&&_0x329640?new window[(_0x54b118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1bcf67,_0x4485d6)=>{_0x74fc8e[_0x54b118([0x74,0x68,0x65,0x6e])](_0x1bcf67,_0x4485d6),_0x329640[_0x54b118([0x74,0x68,0x65,0x6e])](_0x226dc2=>{_0x226dc2!=_0x54b118([0x56,0x61,0x6c,0x69,0x64])&&_0x1bcf67(_0x226dc2);},_0x4485d6);}):_0x74fc8e||_0x329640||_0x54b118([0x56,0x61,0x6c,0x69,0x64]);}}function _0x166717(_0x3b6888,_0x21edbf){return new window[(_0x54b118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x349fb9=>{if(_0x5566b8())return _0x349fb9(_0x54b118([0x56,0x61,0x6c,0x69,0x64]));_0x3970b3(),_0x5e0775[_0x54b118([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x54b118([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2e9ccc=!0x1;const _0x3b4297=_0x2056e8();function _0x2c0cbd(_0x1f24f0){return!!_0x1f24f0&&(typeof _0x1f24f0===_0x54b118([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1f24f0===_0x54b118([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1f24f0[_0x54b118([0x74,0x68,0x65,0x6e])]===_0x54b118([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1f24f0[_0x54b118([0x63,0x61,0x74,0x63,0x68])]===_0x54b118([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3fce15(_0x339860){_0x5934dd(_0x339860)[_0x54b118([0x74,0x68,0x65,0x6e])](_0x39ff50=>{if(!_0x39ff50||_0x39ff50[_0x54b118([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x54b118([0x6f,0x6b]))return _0x54b118([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2615df(_0x56d86e(_0x3b4297+_0x21edbf))!=_0x39ff50[_0x54b118([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x54b118([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x54b118([0x56,0x61,0x6c,0x69,0x64]);})[_0x54b118([0x74,0x68,0x65,0x6e])](_0x2fbf32=>(_0x54dfbb(),_0x2fbf32),()=>{const _0x240aa1=_0x28b991();return null==_0x240aa1?(_0x54dfbb(),_0x54b118([0x56,0x61,0x6c,0x69,0x64])):_0x54b118(_0x155a26-_0x240aa1>(0x19f340e1^_0xea7f76)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x54b118([0x74,0x68,0x65,0x6e])](_0x349fb9)[_0x54b118([0x63,0x61,0x74,0x63,0x68])](()=>{_0x349fb9(_0x54b118([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b184a=0x3dc92a61^_0xea7f76;function _0x54dfbb(){const _0x25080d=_0x54b118([0x6c,0x6c,0x63,0x74,0x2d])+_0x2615df(_0x56d86e(_0x3b6888)),_0x5ab19f=_0x1f30f9(_0x2615df(window[_0x54b118([0x4d,0x61,0x74,0x68])][_0x54b118([0x63,0x65,0x69,0x6c])](_0x155a26/_0x3b184a)));window[_0x54b118([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54b118([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25080d,_0x5ab19f);}function _0x28b991(){const _0x1487a5=_0x54b118([0x6c,0x6c,0x63,0x74,0x2d])+_0x2615df(_0x56d86e(_0x3b6888)),_0x56c6ad=window[_0x54b118([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54b118([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1487a5);return _0x56c6ad?window[_0x54b118([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f30f9(_0x56c6ad),0x10)*_0x3b184a:null;}function _0x5934dd(_0x32c3d9){return new window[(_0x54b118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2390b9,_0x2ed003)=>{_0x32c3d9[_0x54b118([0x74,0x68,0x65,0x6e])](_0x2390b9,_0x2ed003),window[_0x54b118([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ed003,0x3dfe1021^_0xea7f76);});}}_0x5e0775[_0x54b118([0x6f,0x6e])](_0x54b118([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x395d32,_0x253b45)=>{if(_0x253b45[0x0]!=_0x3b6888)return _0x349fb9(_0x54b118([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x253b45[0x1]={..._0x253b45[0x1],[_0x54b118([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3b4297};},{[_0x54b118([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54b118([0x68,0x69,0x67,0x68])}),_0x5e0775[_0x54b118([0x6f,0x6e])](_0x54b118([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x118428=>{_0x2c0cbd(_0x118428[_0x54b118([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2e9ccc=!0x0,_0x3fce15(_0x118428[_0x54b118([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x54b118([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54b118([0x6c,0x6f,0x77])}),_0x521ab8[_0x54b118([0x74,0x68,0x65,0x6e])](()=>{_0x2e9ccc||_0x349fb9(_0x54b118([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5566b8(){return _0x5e0775[_0x54b118([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54b118([0x76,0x69,0x65,0x77])][_0x54b118([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x54b118([0x61,0x75,0x74,0x6f]);}function _0x3970b3(){_0x5e0775[_0x54b118([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54b118([0x76,0x69,0x65,0x77])][_0x54b118([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x54b118([0x61,0x75,0x74,0x6f]);}}function _0x10d93c(_0x5301d5){const _0x2ca35a=[new window[(_0x54b118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e3434=>setTimeout(_0x5e3434,0x3df6fa2d^_0xea7f76)),_0x521ab8[_0x54b118([0x74,0x68,0x65,0x6e])](()=>new window[(_0x54b118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21b0e8=>{let _0x31a957=0x0;_0x5e0775[_0x54b118([0x6d,0x6f,0x64,0x65,0x6c])][_0x54b118([0x6f,0x6e])](_0x54b118([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1b043b,_0x327aaf)=>{_0x327aaf[0x0][_0x54b118([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x31a957++,_0x31a957==(0x3dffc519^_0xea7f76)&&(_0x21b0e8(),_0x1b043b[_0x54b118([0x6f,0x66,0x66])]());});}))];return window[_0x54b118([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x54b118([0x72,0x61,0x63,0x65])](_0x2ca35a)[_0x54b118([0x74,0x68,0x65,0x6e])](()=>_0x5301d5);}async function _0x27f9ff(){await _0x521ab8,_0x5e0775[_0x54b118([0x6d,0x6f,0x64,0x65,0x6c])][_0x54b118([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x48935f,_0x5e0775[_0x54b118([0x6d,0x6f,0x64,0x65,0x6c])][_0x54b118([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x48935f,_0x5e0775[_0x54b118([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x54b118([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1f0506(_0x42ad19){const _0x30dce4=_0xeeb33c();_0x5e0775[_0x30dce4]=_0x54b118([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x42ad19,_0x42ad19!=_0x54b118([0x56,0x61,0x6c,0x69,0x64])&&_0x27f9ff();}function _0xeeb33c(){const _0xfeb939=window[_0x54b118([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x54b118([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x54b118([0x6e,0x6f,0x77])]())[_0x54b118([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x54b118([0x2e]),'');let _0x352cd0=_0x54b118([0x6e]);for(let _0xf84b90=0x0;_0xf84b90<_0xfeb939[_0x54b118([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf84b90+=0x2){let _0x123326=window[_0x54b118([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfeb939[_0x54b118([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf84b90,_0xf84b90+0x2));_0x123326>=_0x3a4226[_0x54b118([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x123326-=_0x3a4226[_0x54b118([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x352cd0+=_0x3a4226[_0x123326];}return _0x352cd0;}function _0x749394(){const _0x626c4c=_0xea69bf[_0x54b118([0x73,0x70,0x6c,0x69,0x74])](_0x54b118([0x2e]));if(0x3!=_0x626c4c[_0x54b118([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1a19cf(_0x626c4c[0x1]);function _0x1a19cf(_0x28cfa2){const _0xd0250b=_0xfb1679(_0x28cfa2);return _0xd0250b&&_0x1117c7()?_0xd0250b:null;function _0x1117c7(){const _0x437ca2=_0xd0250b[_0x54b118([0x6a,0x74,0x69])],_0x218618=window[_0x54b118([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x437ca2[_0x54b118([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x437ca2[_0x54b118([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5b6ada={..._0xd0250b,[_0x54b118([0x6a,0x74,0x69])]:_0x437ca2[_0x54b118([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x437ca2[_0x54b118([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5b6ada[_0x54b118([0x76,0x63])],_0x56d86e(_0x5b6ada)==_0x218618;}}}async function _0xe29c27(){let _0x5ddc86=!0x0;try{const _0x30f7d7=_0xea69bf[_0x54b118([0x73,0x70,0x6c,0x69,0x74])](_0x54b118([0x2e])),[_0x1258e3,_0x228f50,_0x1400de]=_0x30f7d7;return _0x941fd8(_0x1258e3),await _0x127495(_0x1258e3,_0x228f50,_0x1400de),_0x5ddc86;}catch{return!0x1;}function _0x941fd8(_0x21a029){const _0x369c76=_0xfb1679(_0x21a029);_0x369c76&&_0x369c76[_0x54b118([0x61,0x6c,0x67])]==_0x54b118([0x45,0x53,0x32,0x35,0x36])||(_0x5ddc86=!0x1);}async function _0x127495(_0x236740,_0xf2f48d,_0x2fe5de){const _0x5eb2b0=window[_0x54b118([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x54b118([0x66,0x72,0x6f,0x6d])](_0x245db3(_0x2fe5de),_0x22c633=>_0x22c633[_0x54b118([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x204582=new window[(_0x54b118([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x54b118([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x236740+_0x54b118([0x2e])+_0xf2f48d),_0x40c51a=window[_0x54b118([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x54b118([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x40c51a)return;const _0x34b1cd=await _0x40c51a[_0x54b118([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x54b118([0x6a,0x77,0x6b]),_0x19117c,{[_0x54b118([0x6e,0x61,0x6d,0x65])]:_0x54b118([0x45,0x43,0x44,0x53,0x41]),[_0x54b118([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x54b118([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x54b118([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x40c51a[_0x54b118([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x54b118([0x6e,0x61,0x6d,0x65])]:_0x54b118([0x45,0x43,0x44,0x53,0x41]),[_0x54b118([0x68,0x61,0x73,0x68])]:{[_0x54b118([0x6e,0x61,0x6d,0x65])]:_0x54b118([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34b1cd,_0x5eb2b0,_0x204582)||(_0x5ddc86=!0x1);}}function _0xfb1679(_0x25e590){return _0x25e590[_0x54b118([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x54b118([0x65,0x79]))?JSON[_0x54b118([0x70,0x61,0x72,0x73,0x65])](_0x245db3(_0x25e590)):null;}function _0x245db3(_0x35bbeb){return window[_0x54b118([0x61,0x74,0x6f,0x62])](_0x35bbeb[_0x54b118([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x54b118([0x2b]))[_0x54b118([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x54b118([0x2f])));}function _0x56d86e(_0x2c0e25){let _0x797b75=0x1505;function _0x4028f6(_0x1b92d4){for(let _0x315a62=0x0;_0x315a62<_0x1b92d4[_0x54b118([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x315a62++){const _0x12c38e=_0x1b92d4[_0x54b118([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x315a62);_0x797b75=(_0x797b75<<0x5)+_0x797b75+_0x12c38e,_0x797b75&=_0x797b75;}}function _0x1cb87b(_0x1150da){Array[_0x54b118([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1150da)?_0x1150da[_0x54b118([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1cb87b):_0x1150da&&typeof _0x1150da==_0x54b118([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x54b118([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1150da)[_0x54b118([0x73,0x6f,0x72,0x74])]()[_0x54b118([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5c0b16,_0x1ae6f9])=>{_0x4028f6(_0x5c0b16),_0x1cb87b(_0x1ae6f9);}):_0x4028f6(window[_0x54b118([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1150da));}return _0x1cb87b(_0x2c0e25),_0x797b75>>>0x0;}function _0x2615df(_0x4cccdc){return _0x4cccdc[_0x54b118([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x54b118([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x54b118([0x30]));}function _0x1f30f9(_0x31c543){return _0x31c543[_0x54b118([0x73,0x70,0x6c,0x69,0x74])]('')[_0x54b118([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x54b118([0x6a,0x6f,0x69,0x6e])]('');}function _0x48935f(){}function _0x54b118(_0x36c112){const _0x32fc5f=_0xe6ed;return _0x36c112[_0x32fc5f(0x18b)](_0xa08389=>String[_0x32fc5f(0x167)](_0xa08389))[_0x32fc5f(0x162)]('');}_0x1f0506(await _0x389865());}(this);}[_0x3eb2c1(0x176)](){const _0x342639=_0x3eb2c1,_0xcb719b=this[_0x342639(0x132)][_0x342639(0x140)];_0xcb719b[_0x342639(0x182)](_0x3fa1ee=>{const _0xc95672=_0x342639,_0x40baa5=_0xcb719b[_0xc95672(0x179)][_0xc95672(0x15f)][_0xc95672(0x13d)]();let _0xc5c085=0x0;for(const _0x5c64da of _0x40baa5){const _0x2f8aea=w+':'+_0xc5c085;if(_0xcb719b[_0xc95672(0x172)][_0xc95672(0x16d)](_0x2f8aea))_0x3fa1ee[_0xc95672(0x139)](_0x2f8aea,{'range':_0x5c64da});else{if(_0x5c64da[_0xc95672(0x17b)][_0xc95672(0x146)]){const _0x255b40=_0x5c64da[_0xc95672(0x17b)][_0xc95672(0x141)](({item:_0x2d4ebd})=>!_0xcb719b[_0xc95672(0x18f)][_0xc95672(0x151)](_0x2d4ebd),{'boundaries':_0x5c64da});_0x3fa1ee[_0xc95672(0x14f)](_0x2f8aea,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x3fa1ee[_0xc95672(0x156)](_0x255b40,_0x5c64da[_0xc95672(0x147)])});}else _0x3fa1ee[_0xc95672(0x14f)](_0x2f8aea,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5c64da});}_0xc5c085++;}});}[_0x3eb2c1(0x17f)](){const _0x3caa38=_0x3eb2c1,_0x3d0a28=this[_0x3caa38(0x132)][_0x3caa38(0x140)],_0x1053ad=Array[_0x3caa38(0x188)](this[_0x3caa38(0x132)][_0x3caa38(0x140)][_0x3caa38(0x172)][_0x3caa38(0x17d)](w));_0x1053ad[_0x3caa38(0x13e)]&&_0x3d0a28[_0x3caa38(0x182)](_0x42d167=>{const _0x4bb9b1=_0x3caa38;_0x1053ad[_0x4bb9b1(0x184)](_0x2ae182=>{const _0xb105e8=_0x4bb9b1;_0x42d167[_0xb105e8(0x177)](_0x2ae182);});});}[_0x3eb2c1(0x15c)](_0x2ba4d2,_0x1850fa){const _0x5a9dfe=_0x3eb2c1,_0x469abd=this[_0x5a9dfe(0x136)](),_0x15dff6=_0x1850fa||_0x469abd[_0x5a9dfe(0x145)]();this[_0x5a9dfe(0x132)][_0x5a9dfe(0x140)][_0x5a9dfe(0x138)](_0x15dff6)&&this[_0x5a9dfe(0x132)][_0x5a9dfe(0x140)][_0x5a9dfe(0x182)](_0x15f55c=>{const _0x473388=_0x5a9dfe;this[_0x473388(0x17f)](),_0x1850fa||this[_0x473388(0x15e)](_0x15f55c,_0x469abd),this[_0x473388(0x16a)]({'insertAt':_0x15dff6,'writer':_0x15f55c,'html':_0x2ba4d2});});}[_0x3eb2c1(0x149)](_0xc3e53a){const _0x5f3978=_0x3eb2c1,{model:_0xe4e8d7}=this[_0x5f3978(0x132)],_0x1c2ced=this[_0x5f3978(0x136)]();_0xe4e8d7[_0x5f3978(0x182)](()=>{const _0x1a9d11=_0x5f3978,_0x1c9297=this[_0x1a9d11(0x18d)](_0xc3e53a,_0x1c2ced)||this[_0x1a9d11(0x16b)](_0x1c2ced);this[_0x1a9d11(0x15c)](_0xc3e53a,_0x1c9297);});}[_0x3eb2c1(0x136)](){const _0xcec0b5=_0x3eb2c1,_0x2c20f2=this[_0xcec0b5(0x132)][_0xcec0b5(0x140)],_0x3f2cdc=Array[_0xcec0b5(0x188)](_0x2c20f2[_0xcec0b5(0x172)][_0xcec0b5(0x17d)](w))[_0xcec0b5(0x18b)](_0xa4f950=>_0xa4f950[_0xcec0b5(0x170)]());return _0x2c20f2[_0xcec0b5(0x12a)](_0x3f2cdc);}[_0x3eb2c1(0x16a)]({writer:_0x148dcb,html:_0x507fa0,insertAt:_0x2e89d3}){const _0x16e387=_0x3eb2c1,{view:_0x3988e1}=this[_0x16e387(0x132)][_0x16e387(0x189)],_0xc0ddd3=this[_0x16e387(0x132)][_0x16e387(0x178)][_0x16e387(0x14a)](_0xb14269),_0x557f2b=new l();_0x557f2b[_0x16e387(0x13c)](_0x16e387(0x14e),_0x507fa0);const _0x2bce4b=new ClipboardEvent(_0x16e387(0x152),{'clipboardData':_0x557f2b}),_0x4aa336=new _0xafeebe(_0x3988e1,_0x2bce4b,{'dataTransfer':new _0x39f1bf(_0x557f2b)});_0x148dcb[_0x16e387(0x148)](_0x2e89d3);const _0x163900=(_0x9558bf,_0x215132)=>{const _0x11fcc4=_0x16e387;_0x215132[_0x11fcc4(0x153)]&&_0x148dcb[_0x11fcc4(0x148)](_0x215132[_0x11fcc4(0x153)]);};_0xc0ddd3[_0x16e387(0x164)](_0x16e387(0x15d),_0x163900,{'priority':_0x16e387(0x134)}),_0x3988e1[_0x16e387(0x179)][_0x16e387(0x18a)](_0x16e387(0x152),_0x4aa336),_0xc0ddd3[_0x16e387(0x133)](_0x16e387(0x15d),_0x163900);}[_0x3eb2c1(0x16b)](_0x454efc){const _0x2f7cb8=_0x3eb2c1,{model:_0x7b7a63}=this[_0x2f7cb8(0x132)],_0x2334a3=Array[_0x2f7cb8(0x188)](_0x454efc[_0x2f7cb8(0x142)]());return _0x2334a3[_0x2f7cb8(0x13e)]?_0x7b7a63[_0x2f7cb8(0x13f)](_0x2334a3[_0x2f7cb8(0x174)]()):_0x454efc[_0x2f7cb8(0x137)]();}[_0x3eb2c1(0x18d)](_0x8fb314,_0x45c68e){const _0x4e6547=_0x3eb2c1,{model:_0x12702c,plugins:_0x1ff426}=this[_0x4e6547(0x132)];if(_0x1ff426[_0x4e6547(0x16d)](_0x4e6547(0x150))){const _0x10ebed=_0x1ff426[_0x4e6547(0x14a)](_0x4e6547(0x150))[_0x4e6547(0x183)](_0x45c68e);if(_0x10ebed[_0x4e6547(0x13e)]){const _0xe2c428=this[_0x4e6547(0x16f)](_0x8fb314),_0x1e6210=this[_0x4e6547(0x124)](_0x10ebed,_0xe2c428);return _0x12702c[_0x4e6547(0x14c)](_0x1e6210,0x0);}}return null;}[_0x3eb2c1(0x16f)](_0x532b53){const _0x5a44b8=_0x3eb2c1,_0x145e70=this[_0x5a44b8(0x132)][_0x5a44b8(0x178)][_0x5a44b8(0x14a)](_0x5a44b8(0x150)),_0x89c943=this[_0x5a44b8(0x132)][_0x5a44b8(0x163)][_0x5a44b8(0x180)](_0x532b53),_0x37abc8=Array[_0x5a44b8(0x188)](_0x89c943[_0x5a44b8(0x15b)]())[_0x5a44b8(0x12f)](_0xbc341e=>_0xbc341e['is'](_0x5a44b8(0x127),_0x5a44b8(0x128)));let _0x428eb7=0x0;return _0x37abc8[_0x5a44b8(0x184)](_0x8549ae=>{const _0x5accfe=_0x5a44b8;_0x428eb7+=_0x145e70[_0x5accfe(0x186)](_0x8549ae);}),_0x428eb7;}[_0x3eb2c1(0x124)](_0x546206,_0x3c80da){const _0xc5a7fa=_0x3eb2c1,_0x5ee5b1=this[_0xc5a7fa(0x132)][_0xc5a7fa(0x178)][_0xc5a7fa(0x14a)](_0xc5a7fa(0x150)),_0x47f5a5=_0x5ee5b1[_0xc5a7fa(0x18e)](_0x546206),_0x19c4e8=_0x5ee5b1[_0xc5a7fa(0x155)](_0x546206),_0x1d57e5=_0x47f5a5[_0xc5a7fa(0x17a)]+0x1,_0x56ea5b=_0x19c4e8[_0xc5a7fa(0x160)],_0x15e87f=_0x546206[0x0][_0xc5a7fa(0x187)](_0xc5a7fa(0x128));for(let _0x20bd90=0x0;_0x20bd90<_0x3c80da;_0x20bd90++)_0x5ee5b1[_0xc5a7fa(0x173)](_0x15e87f,{'at':_0x1d57e5});return _0x15e87f[_0xc5a7fa(0x169)](_0x1d57e5)[_0xc5a7fa(0x169)](_0x56ea5b);}[_0x3eb2c1(0x15e)](_0x4017e6,_0x543635){const _0x25e0bf=_0x3eb2c1,{plugins:_0x461141}=this[_0x25e0bf(0x132)],{model:_0xa59a39}=_0x4017e6;if(!_0x461141[_0x25e0bf(0x16d)](_0x25e0bf(0x150)))return;_0x461141[_0x25e0bf(0x14a)](_0x25e0bf(0x150))[_0x25e0bf(0x183)](_0x543635)[_0x25e0bf(0x13e)]&&_0xa59a39[_0x25e0bf(0x12e)](_0x543635);}}function _0x5968(){const _0x52b6c2=['span','element','table','ai.useTheme','createSelection','ck-ai-assistant-ui_theme','createUIElement','186864iRVGmy','deleteContent','filter','5uJvTeN','1248CNrrOR','editor','off','lowest','addClass','_getAISelection','getLastPosition','canEditAt','updateMarker','afterInit','markerToHighlight','setData','getRanges','length','createPositionAfter','model','getLastMatchingPosition','getSelectedBlocks','439272VctAVi','1260452vDvizY','getFirstRange','isAtEnd','end','setSelection','insertContentBelow','get','4968872zgmkPP','createPositionAt','conversion','text/html','addMarker','TableUtils','isContent','paste','resultRange','ck-fake-ai-selection_collapsed','getColumnIndexes','createRange','isPremiumPlugin','7341291SAsEUw','isOfficialPlugin','ck-fake-ai-selection','getChildren','insertContent','contentInsertion','_resetContentOfSelectedTableCells','selection','first','markerRange','join','data','once','href','editingDowncast','fromCharCode','markerToElement','getChild','_pasteHTMLUsingClipboard','_getDefaultInsertBelowPosition','config','has','29553lyaTYh','_getTableRowCountFromContent','getRange','pluginName','markers','insertRows','pop','push','showFakeVisualSelection','removeMarker','plugins','document','last','start','AIAssistantEditing','getMarkersGroup','for','hideFakeVisualSelection','parse','init','change','getSelectedTableCells','forEach','DataTransfer','getRows','findAncestor','from','editing','fire','map','isCollapsed','_prepareTableInsertBelowPosition','getRowIndexes','schema','8330MUxvCm','_createEmptyTableRows','ai-ui'];_0x5968=function(){return _0x52b6c2;};return _0x5968();}
|
package/src/aiassistantui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1a45fb=_0x4138;(function(_0x16ae18,_0x4999cc){const _0x587103=_0x4138,_0x2aebef=_0x16ae18();while(!![]){try{const _0x5682be=-parseInt(_0x587103(0x1a2))/0x1*(parseInt(_0x587103(0x1e9))/0x2)+-parseInt(_0x587103(0x190))/0x3*(parseInt(_0x587103(0x21d))/0x4)+parseInt(_0x587103(0x18f))/0x5+parseInt(_0x587103(0x1a1))/0x6*(-parseInt(_0x587103(0x1e4))/0x7)+-parseInt(_0x587103(0x194))/0x8*(-parseInt(_0x587103(0x22c))/0x9)+parseInt(_0x587103(0x21a))/0xa+parseInt(_0x587103(0x232))/0xb*(parseInt(_0x587103(0x196))/0xc);if(_0x5682be===_0x4999cc)break;else _0x2aebef['push'](_0x2aebef['shift']());}catch(_0x30b99e){_0x2aebef['push'](_0x2aebef['shift']());}}}(_0x324d,0xc7236));import{Plugin as _0x439138}from'ckeditor5/src/core.js';import{IconMagicWand as _0x426e3a,IconRobotPencil as _0x34b9e4}from'ckeditor5/src/icons.js';import{first as _0x326e2f,CKEditorError as _0x1c182d}from'ckeditor5/src/utils.js';import{createDropdown as _0x2f1428,addMenuToDropdown as _0x2fba7a,ButtonView as _0x105015,MenuBarMenuListItemButtonView as _0x5af5b8,Dialog as _0x706156,DialogViewPosition as _0x3dd2ab,MenuBarMenuView as _0x343729,MenuBarMenuListView as _0x113086,MenuBarMenuListItemView as _0x448e83}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x20d563,UNGROUPED_COMMANDS_GROUP_ID as _0x4ed406}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x5d5391}from'./aiassistantediting.js';import{AIAdapter as _0x20468d}from'./adapters/aiadapter.js';import{getTranslation as _0x3fd042}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x458add}from'./ui/showaiassistantcommand.js';function _0x4138(_0x58b0e0,_0x3c250a){const _0x324d9b=_0x324d();return _0x4138=function(_0x4138ef,_0xb8ecaf){_0x4138ef=_0x4138ef-0x189;let _0x3c41ab=_0x324d9b[_0x4138ef];return _0x3c41ab;},_0x4138(_0x58b0e0,_0x3c250a);}function _0x324d(){const _0x378e9f=['isPremiumPlugin','wasMoved','27wBwLKJ','rawHtml','componentFactory','values','updatePosition','custom','184855qZTytg','replace','editing','addMany','_initView','show','licenseKey','ck-ai-commands-dropdown\x20','filter','getRanges','Generated\x20content:\x20%0','ai.useTheme','pluginName','reset','aiLicenseKeyEvaluationLimit','3992990YDMstg','1023QDUvLi','_populateMenuBarMenu','isCollapsed','_uiCssClasses','735168FWYDQZ','REPLACE','336PLkgQl','change:value','plugins','menuView','command:','once','push','isOfficialPlugin','model','textAdapter','change','474KIzSOH','1kzHIUB','_onExecute','DataTransfer','aiLicenseKeyValid','AI\x20Commands','showUI','AIAssistantUI','isEnabled','listenTo','config','render','enabledCommandsIds','sort','requires','_aiAssistantController','add','_dialog','ai.aiAssistant.contentAreaCssClass','_commandDefinitions','<p>','get','bind','usageLimit','splice','order','evaluationLimit','text','length','hideUI','menuBar:aiAssistant','ck-ai-assistant-button\x20','comment','children','aiLicenseKeyNotAllowed','_initAriaAiStatusChangeAnnouncements','commands','_getResolvedCommandsDefinitions','_showLicenseError','getLimitElement','execute','isFlat','buttonView','schema','insertContent','featureNotAllowed','getData','source','buttons','_licenseKeyCheckInterval','insertContentBelow','hide','_aiAdapter','panelView','aiLicenseKeyInvalid','map','init','label','errorView','copy','AIAssistant','selection','groupId','AI\x20Assistant','trialLimit','aiCommands','invalid','125237fmCwqr','getSelectedBlocks','EDITOR_TOP_SIDE','document','showAIAssistant','384610qeEBxy','_createAIAssistantUIButton','requiresContent','replaceContent','ai.aiAssistant.commands','aiLicenseKeyExpired','menuPanelClass','</p>','change:isError','INSERT','_getMenuBarGroupButtons','menuBar:aiCommands','queryView','contentArea','Error\x20during\x20AI\x20content\x20generation:\x20%0','AI\x20is\x20writing','media','domainLimit','_forceMarkersCopy','define','isOn','ai.aiAssistant.disabledElements','text/html','getSelectedElement','from','prompt','currentContext','aiLicenseKeyDomainLimit','editor','updateView','polite','menuitemcheckbox','_formView','showFakeVisualSelection','includes','body','locale','announce','setSelection','focus','update','items','expired','fire','trim','delegate','destroy','set','ck-ai-assistant-ui','11871890ATqeHp','change:enabledCommandsIds','ai-commands-config-order-collision','3644Fsemfa','aiLicenseKeyTrialLimit','forEach','view','hideFakeVisualSelection','aiLicenseKeyUsageLimit','change:isProcessing','tableOfContents','fieldView','aiAssistant','\x20ck-ai-assistant-ui_theme','promptView','groupLabel'];_0x324d=function(){return _0x378e9f;};return _0x324d();}import{AIAssistantController as _0x52bdf1}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x55c7f0}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x418b65}from'./ui/form/aiformtoolbarview.js';import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';const l=globalThis[_0x1a45fb(0x1a4)];import{ClipboardMarkersUtils as _0x3bfb0c}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x505e15,ViewDataTransfer as _0x3ad2c3}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x439138{[_0x1a45fb(0x238)];[_0x1a45fb(0x1d2)];[_0x1a45fb(0x1b2)];[_0x1a45fb(0x209)];[_0x1a45fb(0x1d5)];[_0x1a45fb(0x1b0)];[_0x1a45fb(0x193)]='';static get[_0x1a45fb(0x18c)](){const _0x176e8c=_0x1a45fb;return _0x176e8c(0x1a8);}static get[_0x1a45fb(0x19d)](){return!0x0;}static get[_0x1a45fb(0x22a)](){return!0x0;}static get[_0x1a45fb(0x1af)](){return[_0x3bfb0c,_0x5d5391,_0x20468d,_0x706156];}constructor(_0x253180){const _0x4bb075=_0x1a45fb;super(_0x253180),_0x253180[_0x4bb075(0x1ab)][_0x4bb075(0x1fc)](_0x4bb075(0x1fe),[_0x4bb075(0x1f9),_0x4bb075(0x22d),_0x4bb075(0x224)]),_0x253180[_0x4bb075(0x1ab)][_0x4bb075(0x1fc)](_0x4bb075(0x1b3),''),_0x253180[_0x4bb075(0x1ab)][_0x4bb075(0x1fc)](_0x4bb075(0x18b),!0x0),this[_0x4bb075(0x193)]=_0x4bb075(0x219)+(_0x253180[_0x4bb075(0x1ab)][_0x4bb075(0x1b6)](_0x4bb075(0x18b))?_0x4bb075(0x227):'');}[_0x1a45fb(0x1d9)](){const _0x414c4f=_0x1a45fb,{editor:_0x178014}=this;this[_0x414c4f(0x1d5)]=_0x178014[_0x414c4f(0x198)][_0x414c4f(0x1b6)](_0x20468d),this[_0x414c4f(0x1b2)]=_0x178014[_0x414c4f(0x198)][_0x414c4f(0x1b6)](_0x706156),this[_0x414c4f(0x209)]=null,this[_0x414c4f(0x1b4)]=this[_0x414c4f(0x1c6)]();const _0x1862ed=new _0x458add(_0x178014,Array[_0x414c4f(0x201)](this[_0x414c4f(0x1b4)][_0x414c4f(0x22f)]()));_0x178014[_0x414c4f(0x1c5)][_0x414c4f(0x1b1)](_0x414c4f(0x1e8),_0x1862ed),_0x178014['ui'][_0x414c4f(0x22e)][_0x414c4f(0x1b1)](_0x414c4f(0x1e2),_0x24a9c1=>{const _0x48b1c1=_0x414c4f,_0x6f67ed=_0x2f1428(_0x24a9c1);return _0x6f67ed[_0x48b1c1(0x218)]({'class':_0x48b1c1(0x239)+this[_0x48b1c1(0x193)]}),_0x6f67ed[_0x48b1c1(0x1cb)][_0x48b1c1(0x218)]({'label':_0x3fd042(_0x24a9c1,_0x48b1c1(0x1a6)),'icon':_0x426e3a,'tooltip':!0x0}),_0x6f67ed['on'](_0x48b1c1(0x1c9),_0x1f3f8c=>this[_0x48b1c1(0x1a3)](_0x1f3f8c[_0x48b1c1(0x1d0)]['id'])),_0x2fba7a(_0x6f67ed,_0x178014['ui'][_0x48b1c1(0x220)][_0x48b1c1(0x20c)],function(_0x53b3a8){const _0xc47b57=_0x48b1c1,_0x4f8bbb=_0x20d563(_0x53b3a8[_0xc47b57(0x1ab)][_0xc47b57(0x1b6)](_0xc47b57(0x1ed)),_0x53b3a8[_0xc47b57(0x20d)]),_0x20b2ad=U(_0x53b3a8,_0x4f8bbb)[_0xc47b57(0x23a)](_0x132214=>_0x132214[_0xc47b57(0x1c5)][_0xc47b57(0x1bd)]);if(0x1===_0x20b2ad[_0xc47b57(0x1bd)])return U(_0x53b3a8,_0x20b2ad[0x0][_0xc47b57(0x1c5)])[_0xc47b57(0x1d8)](_0x459c8f=>({'id':_0x459c8f['id'],'label':_0x459c8f[_0xc47b57(0x1da)]}));return _0x20b2ad[_0xc47b57(0x1d8)](_0x381989=>{const _0x16c1b1=_0xc47b57,{groupId:_0x51469f,groupLabel:_0x2ac59a,commands:_0x464e7a}=_0x381989,_0xde778e=U(_0x53b3a8,_0x464e7a)[_0x16c1b1(0x1d8)](_0x5df9d4=>({'id':_0x5df9d4['id'],'label':_0x5df9d4[_0x16c1b1(0x1da)]}));return{'id':_0x51469f,'menu':_0x2ac59a||_0x51469f,'children':_0xde778e};});}(_0x178014),{'ariaLabel':_0x3fd042(_0x24a9c1,_0x48b1c1(0x1a6))}),_0x6f67ed[_0x48b1c1(0x199)][_0x48b1c1(0x1ef)]=_0x48b1c1(0x239)+this[_0x48b1c1(0x193)],_0x1862ed['on'](_0x48b1c1(0x21b),_0x311255),_0x6f67ed[_0x48b1c1(0x199)][_0x48b1c1(0x19b)](_0x48b1c1(0x1ac),_0x311255),_0x6f67ed;function _0x311255(){const _0x56c67c=_0x48b1c1;_0x6f67ed[_0x56c67c(0x1a9)]=_0x1862ed[_0x56c67c(0x1ad)][_0x56c67c(0x1bd)]>0x0;for(const _0x5bb7d9 of _0x6f67ed[_0x56c67c(0x199)][_0x56c67c(0x1d1)])_0x5bb7d9[_0x56c67c(0x1a9)]=_0x1862ed[_0x56c67c(0x1ad)][_0x56c67c(0x20b)](_0x5bb7d9['id']);}}),_0x178014['ui'][_0x414c4f(0x22e)][_0x414c4f(0x1b1)](_0x414c4f(0x1f4),_0x273b9b=>{const _0x594b3f=_0x414c4f,_0x2f741c=new _0x343729(_0x273b9b);_0x2f741c[_0x594b3f(0x1cb)][_0x594b3f(0x218)]({'label':_0x3fd042(_0x273b9b,_0x594b3f(0x1a6)),'icon':_0x426e3a}),_0x2f741c[_0x594b3f(0x1b7)](_0x594b3f(0x1a9))['to'](_0x1862ed,_0x594b3f(0x1ad),_0x2147c1=>_0x2147c1[_0x594b3f(0x1bd)]>0x0);const _0x28960c=_0x20d563(_0x178014[_0x594b3f(0x1ab)][_0x594b3f(0x1b6)](_0x594b3f(0x1ed)),_0x273b9b);return this[_0x594b3f(0x191)](_0x1862ed,_0x2f741c,_0x28960c,_0x2afdf7=>this[_0x594b3f(0x1a3)](_0x2afdf7)),_0x2f741c;}),_0x178014['ui'][_0x414c4f(0x22e)][_0x414c4f(0x1b1)](_0x414c4f(0x226),()=>{const _0x18ceba=_0x414c4f,_0x3eae84=this[_0x18ceba(0x1ea)](_0x105015);return _0x3eae84[_0x18ceba(0x218)]({'tooltip':!0x0,'class':_0x18ceba(0x1c0)+this[_0x18ceba(0x193)]}),_0x3eae84;}),_0x178014['ui'][_0x414c4f(0x22e)][_0x414c4f(0x1b1)](_0x414c4f(0x1bf),()=>{const _0x272d90=_0x414c4f,_0x5a653d=this[_0x272d90(0x1ea)](_0x5af5b8);return _0x5a653d[_0x272d90(0x218)]({'role':_0x272d90(0x208)}),_0x5a653d;}),this[_0x414c4f(0x238)]=this[_0x414c4f(0x205)][_0x414c4f(0x1ab)][_0x414c4f(0x1b6)](_0x414c4f(0x238));const _0x5d8f14=this[_0x414c4f(0x205)];this[_0x414c4f(0x1d2)]=setInterval(()=>{const _0x597524=_0x414c4f;let _0x3559b4;for(const _0x817a29 in _0x5d8f14){const _0x10a9c2=_0x817a29,_0x36f801=_0x5d8f14[_0x10a9c2];if(_0x597524(0x1a5)==_0x36f801||_0x597524(0x1d7)==_0x36f801||_0x597524(0x1ee)==_0x36f801||_0x597524(0x204)==_0x36f801||_0x597524(0x1c3)==_0x36f801||_0x597524(0x18e)==_0x36f801||_0x597524(0x21e)==_0x36f801||_0x597524(0x222)==_0x36f801){delete _0x5d8f14[_0x10a9c2],_0x3559b4=_0x36f801,clearInterval(this[_0x597524(0x1d2)]),this[_0x597524(0x1d2)]=void 0x0;break;}}_0x597524(0x1d7)==_0x3559b4&&_0x5d8f14[_0x597524(0x1c7)](_0x597524(0x1e3)),_0x597524(0x1ee)==_0x3559b4&&_0x5d8f14[_0x597524(0x1c7)](_0x597524(0x213)),_0x597524(0x204)==_0x3559b4&&_0x5d8f14[_0x597524(0x1c7)](_0x597524(0x1fa)),_0x597524(0x1c3)==_0x3559b4&&_0x5d8f14[_0x597524(0x1c7)](_0x597524(0x1ce),_0x597524(0x1dd)),_0x597524(0x18e)==_0x3559b4&&_0x5d8f14[_0x597524(0x1c7)](_0x597524(0x1bb)),_0x597524(0x21e)==_0x3559b4&&_0x5d8f14[_0x597524(0x1c7)](_0x597524(0x1e1)),_0x597524(0x222)==_0x3559b4&&_0x5d8f14[_0x597524(0x1c7)](_0x597524(0x1b8));},0x3e8);}[_0x1a45fb(0x217)](){const _0x498e4f=_0x1a45fb;super[_0x498e4f(0x217)](),this[_0x498e4f(0x1d2)]&&clearInterval(this[_0x498e4f(0x1d2)]);}[_0x1a45fb(0x1a7)](_0x262e82='',_0x2ea103='',_0x4b559f=_0x1a45fb(0x231)){const _0x3212f2=_0x1a45fb,_0x5d16=this[_0x3212f2(0x205)],_0x940dea=_0x5d16[_0x3212f2(0x234)][_0x3212f2(0x220)],_0x190686=_0x5d16[_0x3212f2(0x198)][_0x3212f2(0x1b6)](_0x5d5391),_0x15ffd9=_0x5d16[_0x3212f2(0x198)][_0x3212f2(0x1b6)](_0x3bfb0c);_0x190686[_0x3212f2(0x20a)]();const _0x315cfd=new l(),_0xc1f2e6=new ClipboardEvent(_0x3212f2(0x1dc),{'clipboardData':_0x315cfd}),_0x2349c9=new _0x3ad2c3(_0x315cfd),_0x17c2dc=new _0x505e15(_0x940dea,_0xc1f2e6,{'dataTransfer':_0x2349c9});_0x15ffd9[_0x3212f2(0x1fb)](_0x3212f2(0x1c1),()=>{const _0x4d0d97=_0x3212f2;_0x940dea[_0x4d0d97(0x1e7)][_0x4d0d97(0x214)](_0x4d0d97(0x1dc),_0x17c2dc);}),this[_0x3212f2(0x209)]||(this[_0x3212f2(0x236)](),this[_0x3212f2(0x1b0)]=new _0x52bdf1(_0x5d16,this[_0x3212f2(0x1d5)][_0x3212f2(0x19f)],this[_0x3212f2(0x209)]));let _0x1e7bdf=_0x2349c9[_0x3212f2(0x1cf)](_0x3212f2(0x1ff));const _0x1b0e68=_0x5d16[_0x3212f2(0x19e)][_0x3212f2(0x1e7)][_0x3212f2(0x1de)],_0x3ce624=Array[_0x3212f2(0x201)](_0x1b0e68[_0x3212f2(0x189)]());0x1===_0x3ce624[_0x3212f2(0x1bd)]&&_0x3ce624[0x0][_0x3212f2(0x1ca)]&&!_0x1b0e68[_0x3212f2(0x200)]()&&''!==_0x1e7bdf[_0x3212f2(0x233)](/ /g,'')[_0x3212f2(0x215)]()&&(_0x1e7bdf=_0x3212f2(0x1b5)+_0x1e7bdf+_0x3212f2(0x1f0)),this[_0x3212f2(0x1b0)][_0x3212f2(0x206)]({'actionId':_0x4b559f,'query':_0x262e82,'htmlContent':_0x1e7bdf,'label':_0x2ea103,'mainActionLabel':_0x418b65[_0x5d16[_0x3212f2(0x19e)][_0x3212f2(0x1e7)][_0x3212f2(0x1de)][_0x3212f2(0x192)]?_0x3212f2(0x1f2):_0x3212f2(0x195)]}),_0x3212f2(0x226)!==this[_0x3212f2(0x1b2)]['id']?this[_0x3212f2(0x1b2)][_0x3212f2(0x237)]({'id':_0x3212f2(0x226),'icon':_0x34b9e4,'title':_0x3fd042(this[_0x3212f2(0x205)][_0x3212f2(0x20d)],_0x3212f2(0x1e0)),'content':this[_0x3212f2(0x209)],'position':_0x3dd2ab[_0x3212f2(0x1e6)],'onShow':()=>{const _0x236d8c=_0x3212f2;this[_0x236d8c(0x209)][_0x236d8c(0x210)]();},'onHide':()=>{const _0x363725=_0x3212f2;this[_0x363725(0x1b0)][_0x363725(0x18d)](),_0x190686[_0x363725(0x221)]();}}):this[_0x3212f2(0x1b2)][_0x3212f2(0x220)][_0x3212f2(0x22b)]||this[_0x3212f2(0x1b2)][_0x3212f2(0x220)][_0x3212f2(0x230)]();}[_0x1a45fb(0x1be)](){const _0x1859bd=_0x1a45fb;this[_0x1859bd(0x1b2)][_0x1859bd(0x1d4)]();}[_0x1a45fb(0x1c6)](){const _0x912657=_0x1a45fb,_0x1a06c0=new Map(),_0x3c438d=_0x20d563(this[_0x912657(0x205)][_0x912657(0x1ab)][_0x912657(0x1b6)](_0x912657(0x1ed)),this[_0x912657(0x205)][_0x912657(0x20d)]);for(const _0xdaf620 of _0x3c438d)for(const _0x18c907 of _0xdaf620[_0x912657(0x1c5)])_0x1a06c0[_0x912657(0x218)](_0x18c907['id'],{..._0x18c907,'groupId':_0xdaf620[_0x912657(0x1df)],'groupLabel':_0xdaf620[_0x912657(0x229)]||_0xdaf620[_0x912657(0x1df)]});return _0x1a06c0;}[_0x1a45fb(0x1ea)](_0x88f0e3){const _0x229a42=_0x1a45fb,_0x240a36=this[_0x229a42(0x205)],_0x9654b3=_0x240a36[_0x229a42(0x1c5)][_0x229a42(0x1b6)](_0x229a42(0x1e8)),_0x1f8cda=new _0x88f0e3(_0x240a36[_0x229a42(0x20d)]);return _0x1f8cda[_0x229a42(0x218)]({'label':_0x3fd042(_0x240a36[_0x229a42(0x20d)],_0x229a42(0x1e0)),'icon':_0x34b9e4,'isToggleable':!0x0}),_0x1f8cda[_0x229a42(0x1b7)](_0x229a42(0x1a9))['to'](_0x9654b3),_0x1f8cda[_0x229a42(0x1b7)](_0x229a42(0x1fd))['to'](this[_0x229a42(0x1b2)],'id',_0x11e5d0=>_0x229a42(0x226)===_0x11e5d0),this[_0x229a42(0x1aa)](_0x1f8cda,_0x229a42(0x1c9),()=>{const _0x5e032c=_0x229a42;_0x1f8cda[_0x5e032c(0x1fd)]?this[_0x5e032c(0x1be)]():_0x9654b3[_0x5e032c(0x1c9)]();}),_0x1f8cda;}[_0x1a45fb(0x236)](){const _0x4725e3=_0x1a45fb,_0xa3a38f=this[_0x4725e3(0x205)][_0x4725e3(0x198)][_0x4725e3(0x1b6)](_0x5d5391);this[_0x4725e3(0x209)]=new _0x55c7f0(this[_0x4725e3(0x205)][_0x4725e3(0x20d)],this[_0x4725e3(0x193)],this[_0x4725e3(0x205)][_0x4725e3(0x1ab)][_0x4725e3(0x1b6)](_0x4725e3(0x1b3))),this[_0x4725e3(0x209)]['on'](_0x4725e3(0x197),()=>{const _0x4957fa=_0x4725e3;this[_0x4957fa(0x1b2)][_0x4957fa(0x220)][_0x4957fa(0x22b)]||this[_0x4957fa(0x1b2)][_0x4957fa(0x220)][_0x4957fa(0x230)]();}),this[_0x4725e3(0x209)][_0x4725e3(0x228)][_0x4725e3(0x1f5)][_0x4725e3(0x225)]['on'](_0x4725e3(0x211),()=>{const _0x3a4545=_0x4725e3;this[_0x3a4545(0x1b2)][_0x3a4545(0x220)][_0x3a4545(0x22b)]||this[_0x3a4545(0x1b2)][_0x3a4545(0x220)][_0x3a4545(0x230)]();}),this[_0x4725e3(0x1aa)](this[_0x4725e3(0x209)],_0x4725e3(0x1ec),()=>{const _0x2f3208=_0x4725e3;_0xa3a38f[_0x2f3208(0x1cd)](this[_0x2f3208(0x1b0)][_0x2f3208(0x203)]),this[_0x2f3208(0x1be)]();}),this[_0x4725e3(0x1aa)](this[_0x4725e3(0x209)],_0x4725e3(0x1d3),()=>{const _0x5cd5aa=_0x4725e3;_0xa3a38f[_0x5cd5aa(0x1d3)](this[_0x5cd5aa(0x1b0)][_0x5cd5aa(0x203)]),this[_0x5cd5aa(0x1be)]();}),this[_0x4725e3(0x1c4)]();}[_0x1a45fb(0x1c4)](){const _0x514f56=_0x1a45fb,{locale:_0x127797,ui:{ariaLiveAnnouncer:_0x194603}}=this[_0x514f56(0x205)];this[_0x514f56(0x209)][_0x514f56(0x1f6)]['on'](_0x514f56(0x223),(_0x26e576,_0xd149c,_0x574095)=>{const _0x3a3db4=_0x514f56,_0x3fb0a9=this[_0x3a3db4(0x1b0)][_0x3a3db4(0x203)];_0x574095?_0x194603[_0x3a3db4(0x20e)](_0x3fd042(_0x127797,_0x3a3db4(0x1f8))):_0x3fb0a9&&_0x194603[_0x3a3db4(0x20e)](_0x3fd042(_0x127797,_0x3a3db4(0x18a),_0x3fb0a9),{'politeness':_0x3a3db4(0x207),'isUnsafeHTML':!0x0});}),this[_0x514f56(0x209)]['on'](_0x514f56(0x1f1),(_0x4c6ab7,_0x4d89ec,_0x308afc)=>{const _0x1fdbd2=_0x514f56;if(_0x308afc){const _0x339ec7=this[_0x1fdbd2(0x209)][_0x1fdbd2(0x1db)][_0x1fdbd2(0x1bc)];_0x194603[_0x1fdbd2(0x20e)](_0x3fd042(_0x127797,_0x1fdbd2(0x1f7),_0x339ec7));}});}[_0x1a45fb(0x1a3)](_0x178307){const _0x119c54=_0x1a45fb,_0x284f45=this[_0x119c54(0x1b4)][_0x119c54(0x1b6)](_0x178307),_0x8a4997=this[_0x119c54(0x205)],_0x6b2c71=_0x8a4997[_0x119c54(0x19e)][_0x119c54(0x1e7)][_0x119c54(0x1de)],_0x539280=_0x8a4997[_0x119c54(0x1c5)][_0x119c54(0x1b6)](_0x119c54(0x1e8)),_0x341ef6=_0x8a4997[_0x119c54(0x198)][_0x119c54(0x1b6)](_0x5d5391),_0x5e37aa=''+(_0x284f45[_0x119c54(0x1df)]!==_0x4ed406?_0x284f45[_0x119c54(0x229)]+':\x20':'')+_0x284f45[_0x119c54(0x1da)];if(!0x1!==_0x284f45[_0x119c54(0x1eb)]&&_0x6b2c71[_0x119c54(0x192)]){const _0x116450=_0x326e2f(_0x6b2c71[_0x119c54(0x1e5)]())||_0x8a4997[_0x119c54(0x19e)][_0x119c54(0x1cc)][_0x119c54(0x1c8)](_0x6b2c71);_0x8a4997[_0x119c54(0x19e)][_0x119c54(0x1a0)](_0x326f17=>{const _0x353f9f=_0x119c54;_0x326f17[_0x353f9f(0x20f)](_0x116450,'in');});}_0x341ef6[_0x119c54(0x20a)](),_0x539280[_0x119c54(0x1c9)](_0x284f45[_0x119c54(0x202)],_0x5e37aa,_0x119c54(0x19a)+_0x178307);}[_0x1a45fb(0x191)](_0x36755d,_0x37c847,_0xc55457,_0x3c1b0f){const _0x210235=_0x1a45fb,_0x6cdc6d=this[_0x210235(0x205)],_0x3d7e5f=_0x6cdc6d[_0x210235(0x20d)],_0x26b74d=new _0x113086(_0x3d7e5f),_0x2d06bb=U(_0x6cdc6d,_0xc55457)[_0x210235(0x23a)](_0x36ed2a=>_0x36ed2a[_0x210235(0x1c5)][_0x210235(0x1bd)]);0x1===_0x2d06bb[_0x210235(0x1bd)]?this[_0x210235(0x1f3)]({'command':_0x36755d,'commands':_0x2d06bb[0x0][_0x210235(0x1c5)],'parentMenuView':_0x37c847,'onExecute':_0x3c1b0f})[_0x210235(0x21f)](_0x2b6817=>_0x26b74d[_0x210235(0x212)][_0x210235(0x1b1)](_0x2b6817)):_0x2d06bb[_0x210235(0x21f)](({groupId:_0x189e18,groupLabel:_0x2f11b6,commands:_0x58b0a0})=>{const _0x198bee=_0x210235,_0x142bbf=new _0x448e83(_0x3d7e5f,_0x37c847),_0x2cb825=new _0x343729(_0x3d7e5f),_0x2906ce=new _0x113086(_0x3d7e5f),_0x21ae1b=this[_0x198bee(0x1f3)]({'command':_0x36755d,'commands':_0x58b0a0,'parentMenuView':_0x2cb825,'onExecute':_0x3c1b0f});_0x2cb825[_0x198bee(0x1cb)][_0x198bee(0x218)]({'label':_0x2f11b6||_0x189e18}),_0x2cb825[_0x198bee(0x216)](_0x198bee(0x1c9))['to'](_0x37c847),_0x2906ce[_0x198bee(0x212)][_0x198bee(0x235)](_0x21ae1b),_0x2cb825[_0x198bee(0x1d6)][_0x198bee(0x1c2)][_0x198bee(0x1b1)](_0x2906ce),_0x142bbf[_0x198bee(0x1c2)][_0x198bee(0x1b1)](_0x2cb825),_0x26b74d[_0x198bee(0x212)][_0x198bee(0x1b1)](_0x142bbf);}),_0x37c847[_0x210235(0x1d6)][_0x210235(0x1c2)][_0x210235(0x1b1)](_0x26b74d);}[_0x1a45fb(0x1f3)]({command:_0x15b319,commands:_0x1d93c8,parentMenuView:_0x1c38b2,onExecute:_0x207dcc}){const _0x3d3329=_0x1a45fb,_0x2b21e2=this[_0x3d3329(0x205)],_0x8b5774=_0x2b21e2[_0x3d3329(0x20d)];return U(_0x2b21e2,_0x1d93c8)[_0x3d3329(0x1d8)](_0x52a431=>{const _0x4e6097=_0x3d3329,_0x2c0924=new _0x448e83(_0x8b5774,_0x1c38b2),_0x49675a=new _0x5af5b8(_0x8b5774);return _0x49675a[_0x4e6097(0x218)]({'label':_0x52a431[_0x4e6097(0x1da)]}),_0x49675a[_0x4e6097(0x216)](_0x4e6097(0x1c9))['to'](_0x1c38b2),_0x49675a['on'](_0x4e6097(0x1c9),()=>_0x207dcc(_0x52a431['id'])),_0x49675a[_0x4e6097(0x1b7)](_0x4e6097(0x1a9))['to'](_0x15b319,_0x4e6097(0x1ad),_0x25e7e4=>_0x25e7e4[_0x4e6097(0x20b)](_0x52a431['id'])),_0x2c0924[_0x4e6097(0x1c2)][_0x4e6097(0x1b1)](_0x49675a),_0x2c0924;});}}function T(_0x1052bd,_0x4b77b0){const _0x54c251=_0x1a45fb;return void 0x0!==_0x1052bd[_0x54c251(0x1ba)]&&void 0x0===_0x4b77b0[_0x54c251(0x1ba)]?0x1:void 0x0===_0x1052bd[_0x54c251(0x1ba)]&&void 0x0!==_0x4b77b0[_0x54c251(0x1ba)]?-0x1:void 0x0!==_0x1052bd[_0x54c251(0x1ba)]&&void 0x0!==_0x4b77b0[_0x54c251(0x1ba)]?_0x1052bd[_0x54c251(0x1ba)]-_0x4b77b0[_0x54c251(0x1ba)]:0x0;}function U(_0x47d8b4,_0x570636){const _0x4b95b6=_0x1a45fb;_0x570636[_0x4b95b6(0x1ae)](T);const _0x38eef8={},_0x469628=[];for(const _0x5137ef of _0x570636)if(void 0x0!==_0x5137ef[_0x4b95b6(0x1ba)]){if(_0x5137ef[_0x4b95b6(0x1ba)]in _0x38eef8)throw new _0x1c182d(_0x4b95b6(0x21c),_0x47d8b4,{'conflictingDefinitions':[_0x5137ef,_0x38eef8[_0x5137ef[_0x4b95b6(0x1ba)]]]});_0x38eef8[_0x5137ef[_0x4b95b6(0x1ba)]]=_0x5137ef,_0x469628[_0x4b95b6(0x1b9)](_0x5137ef[_0x4b95b6(0x1ba)],0x0,_0x5137ef);}else _0x469628[_0x4b95b6(0x19c)](_0x5137ef);return _0x469628;}
|
|
23
|
+
const _0x3d0d63=_0x586e;(function(_0x25f1b6,_0x40e883){const _0x391d65=_0x586e,_0x4f286b=_0x25f1b6();while(!![]){try{const _0x238efa=parseInt(_0x391d65(0x19b))/0x1*(parseInt(_0x391d65(0xf2))/0x2)+-parseInt(_0x391d65(0x14a))/0x3*(-parseInt(_0x391d65(0x163))/0x4)+-parseInt(_0x391d65(0x134))/0x5+parseInt(_0x391d65(0xfd))/0x6+-parseInt(_0x391d65(0x194))/0x7+parseInt(_0x391d65(0xf0))/0x8+-parseInt(_0x391d65(0x15d))/0x9*(-parseInt(_0x391d65(0x15f))/0xa);if(_0x238efa===_0x40e883)break;else _0x4f286b['push'](_0x4f286b['shift']());}catch(_0x282b01){_0x4f286b['push'](_0x4f286b['shift']());}}}(_0x5772,0x92772));import{Plugin as _0x47e322}from'ckeditor5/src/core.js';import{IconMagicWand as _0x2777e7,IconRobotPencil as _0xe9868b}from'ckeditor5/src/icons.js';import{first as _0x288350,CKEditorError as _0x8600c9}from'ckeditor5/src/utils.js';import{createDropdown as _0x24d66f,addMenuToDropdown as _0x5069c4,ButtonView as _0x15094d,MenuBarMenuListItemButtonView as _0xff9a3,Dialog as _0x4ea887,DialogViewPosition as _0x185faa,MenuBarMenuView as _0x209a17,MenuBarMenuListView as _0x56c025,MenuBarMenuListItemView as _0x56049a}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x2ea7c8,UNGROUPED_COMMANDS_GROUP_ID as _0x1bcfec}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x23c523}from'./aiassistantediting.js';import{AIAdapter as _0x370cf7}from'./adapters/aiadapter.js';import{getTranslation as _0x36b914}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x16319f}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x5a3066}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x133073}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x38e002}from'./ui/form/aiformtoolbarview.js';function _0x586e(_0x5872f8,_0x4cccd8){const _0x5772c2=_0x5772();return _0x586e=function(_0x586e6b,_0x5b5f3f){_0x586e6b=_0x586e6b-0xef;let _0x58ba2e=_0x5772c2[_0x586e6b];return _0x58ba2e;},_0x586e(_0x5872f8,_0x4cccd8);}import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';const l=globalThis[_0x3d0d63(0x15c)];import{ClipboardMarkersUtils as _0x1bdb63}from'ckeditor5/src/clipboard.js';function _0x5772(){const _0x32bf54=['forEach','hide','bind','_getResolvedCommandsDefinitions','ai.useTheme','menuPanelClass','</p>','groupId','_populateMenuBarMenu','enabledCommandsIds','plugins','usageLimit','custom','buttonView','commands','items','isCollapsed','currentContext','aiLicenseKeyValid','_getMenuBarGroupButtons','menuView','wasMoved','values','panelView','fire','featureNotAllowed','map','showAIAssistant','init','_dialog','domainLimit','sort','polite','getSelectedBlocks','isFlat','_initView','define','aiLicenseKeyTrialLimit','document','_createAIAssistantUIButton','textAdapter','_uiCssClasses','updatePosition','AI\x20Commands','rawHtml','replace','AIAssistant','set','config','pluginName','Error\x20during\x20AI\x20content\x20generation:\x20%0','show','trialLimit','3469815OHIWhZ','media','model','_forceMarkersCopy','comment','\x20ck-ai-assistant-ui_theme','getLimitElement','editing','schema','componentFactory','trim','AI\x20Assistant','add','reset','change:isProcessing','updateView','_licenseKeyCheckInterval','listenTo','tableOfContents','requiresContent','showUI','change:value','12THCinv','push','execute','insertContentBelow','aiLicenseKeyUsageLimit','licenseKey','body','text/html','children','<p>','ai.aiAssistant.commands','Generated\x20content:\x20%0','isOn','aiLicenseKeyDomainLimit','addMany','_onExecute','replaceContent','splice','DataTransfer','12222zSBNDP','render','10XyzPbX','menuitemcheckbox','INSERT','copy','248116sYKwtr','change:enabledCommandsIds','errorView','aiLicenseKeyNotAllowed','REPLACE','ai-commands-config-order-collision','aiLicenseKeyInvalid','requires','selection','isEnabled','aiLicenseKeyEvaluationLimit','from','getSelectedElement','order','_commandDefinitions','contentArea','_initAriaAiStatusChangeAnnouncements','ck-ai-commands-dropdown\x20','change','delegate','invalid','fieldView','ck-ai-assistant-button\x20','text','_aiAssistantController','_aiAdapter','length','aiCommands','AIAssistantUI','showFakeVisualSelection','filter','menuBar:aiCommands','includes','isPremiumPlugin','destroy','label','queryView','hideFakeVisualSelection','EDITOR_TOP_SIDE','once','setSelection','ck-ai-assistant-ui','AI\x20is\x20writing','expired','aiLicenseKeyExpired','_showLicenseError','menuBar:aiAssistant','getRanges','prompt','7966168HvKOOl','source','locale','groupLabel','evaluationLimit','get','promptView','1102642LDnZov','ai.aiAssistant.contentAreaCssClass','change:isError','_formView','hideUI','784280EpcwIc','announce','2NeEPFJ','command:','insertContent','view','ai.aiAssistant.disabledElements','update','buttons','focus','aiAssistant','getData','editor','5890548MpBKSt','isOfficialPlugin'];_0x5772=function(){return _0x32bf54;};return _0x5772();}import{ViewDocumentDomEventData as _0x334b4a,ViewDataTransfer as _0xd1a17}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x47e322{[_0x3d0d63(0x14f)];[_0x3d0d63(0x144)];[_0x3d0d63(0x11c)];[_0x3d0d63(0x19e)];[_0x3d0d63(0x17c)];[_0x3d0d63(0x17b)];[_0x3d0d63(0x128)]='';static get[_0x3d0d63(0x130)](){const _0x57ca4f=_0x3d0d63;return _0x57ca4f(0x17f);}static get[_0x3d0d63(0xfe)](){return!0x0;}static get[_0x3d0d63(0x184)](){return!0x0;}static get[_0x3d0d63(0x16a)](){return[_0x1bdb63,_0x23c523,_0x370cf7,_0x4ea887];}constructor(_0x3c09dc){const _0x37842f=_0x3d0d63;super(_0x3c09dc),_0x3c09dc[_0x37842f(0x12f)][_0x37842f(0x123)](_0x37842f(0xf6),[_0x37842f(0x135),_0x37842f(0x12b),_0x37842f(0x146)]),_0x3c09dc[_0x37842f(0x12f)][_0x37842f(0x123)](_0x37842f(0x19c),''),_0x3c09dc[_0x37842f(0x12f)][_0x37842f(0x123)](_0x37842f(0x103),!0x0),this[_0x37842f(0x128)]=_0x37842f(0x18c)+(_0x3c09dc[_0x37842f(0x12f)][_0x37842f(0x199)](_0x37842f(0x103))?_0x37842f(0x139):'');}[_0x3d0d63(0x11b)](){const _0x1624f4=_0x3d0d63,{editor:_0x139c5a}=this;this[_0x1624f4(0x17c)]=_0x139c5a[_0x1624f4(0x109)][_0x1624f4(0x199)](_0x370cf7),this[_0x1624f4(0x11c)]=_0x139c5a[_0x1624f4(0x109)][_0x1624f4(0x199)](_0x4ea887),this[_0x1624f4(0x19e)]=null,this[_0x1624f4(0x171)]=this[_0x1624f4(0x102)]();const _0x201880=new _0x16319f(_0x139c5a,Array[_0x1624f4(0x16e)](this[_0x1624f4(0x171)][_0x1624f4(0x115)]()));_0x139c5a[_0x1624f4(0x10d)][_0x1624f4(0x140)](_0x1624f4(0x11a),_0x201880),_0x139c5a['ui'][_0x1624f4(0x13d)][_0x1624f4(0x140)](_0x1624f4(0x17e),_0x3b5ab6=>{const _0x284be4=_0x1624f4,_0x108765=_0x24d66f(_0x3b5ab6);return _0x108765[_0x284be4(0x12e)]({'class':_0x284be4(0x174)+this[_0x284be4(0x128)]}),_0x108765[_0x284be4(0x10c)][_0x284be4(0x12e)]({'label':_0x36b914(_0x3b5ab6,_0x284be4(0x12a)),'icon':_0x2777e7,'tooltip':!0x0}),_0x108765['on'](_0x284be4(0x14c),_0x481c3e=>this[_0x284be4(0x159)](_0x481c3e[_0x284be4(0x195)]['id'])),_0x5069c4(_0x108765,_0x139c5a['ui'][_0x284be4(0xf5)][_0x284be4(0x150)],function(_0x502811){const _0x20e5cb=_0x284be4,_0x466eca=_0x2ea7c8(_0x502811[_0x20e5cb(0x12f)][_0x20e5cb(0x199)](_0x20e5cb(0x154)),_0x502811[_0x20e5cb(0x196)]),_0x166ed3=U(_0x502811,_0x466eca)[_0x20e5cb(0x181)](_0x1e1803=>_0x1e1803[_0x20e5cb(0x10d)][_0x20e5cb(0x17d)]);if(0x1===_0x166ed3[_0x20e5cb(0x17d)])return U(_0x502811,_0x166ed3[0x0][_0x20e5cb(0x10d)])[_0x20e5cb(0x119)](_0x5afa5e=>({'id':_0x5afa5e['id'],'label':_0x5afa5e[_0x20e5cb(0x186)]}));return _0x166ed3[_0x20e5cb(0x119)](_0x4415f8=>{const _0x363287=_0x20e5cb,{groupId:_0x34ef9f,groupLabel:_0x3abdfb,commands:_0x5cd13d}=_0x4415f8,_0x4da1c1=U(_0x502811,_0x5cd13d)[_0x363287(0x119)](_0x58bdd3=>({'id':_0x58bdd3['id'],'label':_0x58bdd3[_0x363287(0x186)]}));return{'id':_0x34ef9f,'menu':_0x3abdfb||_0x34ef9f,'children':_0x4da1c1};});}(_0x139c5a),{'ariaLabel':_0x36b914(_0x3b5ab6,_0x284be4(0x12a))}),_0x108765[_0x284be4(0x113)][_0x284be4(0x104)]=_0x284be4(0x174)+this[_0x284be4(0x128)],_0x201880['on'](_0x284be4(0x164),_0x5ea268),_0x108765[_0x284be4(0x113)][_0x284be4(0x18a)](_0x284be4(0x15e),_0x5ea268),_0x108765;function _0x5ea268(){const _0x342f32=_0x284be4;_0x108765[_0x342f32(0x16c)]=_0x201880[_0x342f32(0x108)][_0x342f32(0x17d)]>0x0;for(const _0x1753c0 of _0x108765[_0x342f32(0x113)][_0x342f32(0xf8)])_0x1753c0[_0x342f32(0x16c)]=_0x201880[_0x342f32(0x108)][_0x342f32(0x183)](_0x1753c0['id']);}}),_0x139c5a['ui'][_0x1624f4(0x13d)][_0x1624f4(0x140)](_0x1624f4(0x182),_0x39ea59=>{const _0xa4ef51=_0x1624f4,_0x3a1162=new _0x209a17(_0x39ea59);_0x3a1162[_0xa4ef51(0x10c)][_0xa4ef51(0x12e)]({'label':_0x36b914(_0x39ea59,_0xa4ef51(0x12a)),'icon':_0x2777e7}),_0x3a1162[_0xa4ef51(0x101)](_0xa4ef51(0x16c))['to'](_0x201880,_0xa4ef51(0x108),_0x6dc792=>_0x6dc792[_0xa4ef51(0x17d)]>0x0);const _0x59a8f3=_0x2ea7c8(_0x139c5a[_0xa4ef51(0x12f)][_0xa4ef51(0x199)](_0xa4ef51(0x154)),_0x39ea59);return this[_0xa4ef51(0x107)](_0x201880,_0x3a1162,_0x59a8f3,_0x5cc713=>this[_0xa4ef51(0x159)](_0x5cc713)),_0x3a1162;}),_0x139c5a['ui'][_0x1624f4(0x13d)][_0x1624f4(0x140)](_0x1624f4(0xfa),()=>{const _0x33c59d=_0x1624f4,_0x2306f5=this[_0x33c59d(0x126)](_0x15094d);return _0x2306f5[_0x33c59d(0x12e)]({'tooltip':!0x0,'class':_0x33c59d(0x179)+this[_0x33c59d(0x128)]}),_0x2306f5;}),_0x139c5a['ui'][_0x1624f4(0x13d)][_0x1624f4(0x140)](_0x1624f4(0x191),()=>{const _0x175a5b=_0x1624f4,_0x943196=this[_0x175a5b(0x126)](_0xff9a3);return _0x943196[_0x175a5b(0x12e)]({'role':_0x175a5b(0x160)}),_0x943196;}),this[_0x1624f4(0x14f)]=this[_0x1624f4(0xfc)][_0x1624f4(0x12f)][_0x1624f4(0x199)](_0x1624f4(0x14f));const _0x56c00b=this[_0x1624f4(0xfc)];this[_0x1624f4(0x144)]=setInterval(()=>{const _0x1799c8=_0x1624f4;let _0x76117c;for(const _0x208619 in _0x56c00b){const _0x51c492=_0x208619,_0xdb0767=_0x56c00b[_0x51c492];if(_0x1799c8(0x111)==_0xdb0767||_0x1799c8(0x169)==_0xdb0767||_0x1799c8(0x18f)==_0xdb0767||_0x1799c8(0x157)==_0xdb0767||_0x1799c8(0x166)==_0xdb0767||_0x1799c8(0x16d)==_0xdb0767||_0x1799c8(0x124)==_0xdb0767||_0x1799c8(0x14e)==_0xdb0767){delete _0x56c00b[_0x51c492],_0x76117c=_0xdb0767,clearInterval(this[_0x1799c8(0x144)]),this[_0x1799c8(0x144)]=void 0x0;break;}}_0x1799c8(0x169)==_0x76117c&&_0x56c00b[_0x1799c8(0x190)](_0x1799c8(0x177)),_0x1799c8(0x18f)==_0x76117c&&_0x56c00b[_0x1799c8(0x190)](_0x1799c8(0x18e)),_0x1799c8(0x157)==_0x76117c&&_0x56c00b[_0x1799c8(0x190)](_0x1799c8(0x11d)),_0x1799c8(0x166)==_0x76117c&&_0x56c00b[_0x1799c8(0x190)](_0x1799c8(0x118),_0x1799c8(0x12d)),_0x1799c8(0x16d)==_0x76117c&&_0x56c00b[_0x1799c8(0x190)](_0x1799c8(0x198)),_0x1799c8(0x124)==_0x76117c&&_0x56c00b[_0x1799c8(0x190)](_0x1799c8(0x133)),_0x1799c8(0x14e)==_0x76117c&&_0x56c00b[_0x1799c8(0x190)](_0x1799c8(0x10a));},0x3e8);}[_0x3d0d63(0x185)](){const _0x1542a9=_0x3d0d63;super[_0x1542a9(0x185)](),this[_0x1542a9(0x144)]&&clearInterval(this[_0x1542a9(0x144)]);}[_0x3d0d63(0x148)](_0xa1596c='',_0x579105='',_0x14b30a=_0x3d0d63(0x10b)){const _0x1691fb=_0x3d0d63,_0x39076b=this[_0x1691fb(0xfc)],_0x2eaa79=_0x39076b[_0x1691fb(0x13b)][_0x1691fb(0xf5)],_0x154e62=_0x39076b[_0x1691fb(0x109)][_0x1691fb(0x199)](_0x23c523),_0x124789=_0x39076b[_0x1691fb(0x109)][_0x1691fb(0x199)](_0x1bdb63);_0x154e62[_0x1691fb(0x180)]();const _0x240ba0=new l(),_0x113610=new ClipboardEvent(_0x1691fb(0x162),{'clipboardData':_0x240ba0}),_0x311883=new _0xd1a17(_0x240ba0),_0x2f580b=new _0x334b4a(_0x2eaa79,_0x113610,{'dataTransfer':_0x311883});_0x124789[_0x1691fb(0x137)](_0x1691fb(0x138),()=>{const _0x544681=_0x1691fb;_0x2eaa79[_0x544681(0x125)][_0x544681(0x117)](_0x544681(0x162),_0x2f580b);}),this[_0x1691fb(0x19e)]||(this[_0x1691fb(0x122)](),this[_0x1691fb(0x17b)]=new _0x5a3066(_0x39076b,this[_0x1691fb(0x17c)][_0x1691fb(0x127)],this[_0x1691fb(0x19e)]));let _0x523727=_0x311883[_0x1691fb(0xfb)](_0x1691fb(0x151));const _0xc84dec=_0x39076b[_0x1691fb(0x136)][_0x1691fb(0x125)][_0x1691fb(0x16b)],_0x2a7b0e=Array[_0x1691fb(0x16e)](_0xc84dec[_0x1691fb(0x192)]());0x1===_0x2a7b0e[_0x1691fb(0x17d)]&&_0x2a7b0e[0x0][_0x1691fb(0x121)]&&!_0xc84dec[_0x1691fb(0x16f)]()&&''!==_0x523727[_0x1691fb(0x12c)](/ /g,'')[_0x1691fb(0x13e)]()&&(_0x523727=_0x1691fb(0x153)+_0x523727+_0x1691fb(0x105)),this[_0x1691fb(0x17b)][_0x1691fb(0x143)]({'actionId':_0x14b30a,'query':_0xa1596c,'htmlContent':_0x523727,'label':_0x579105,'mainActionLabel':_0x38e002[_0x39076b[_0x1691fb(0x136)][_0x1691fb(0x125)][_0x1691fb(0x16b)][_0x1691fb(0x10f)]?_0x1691fb(0x161):_0x1691fb(0x167)]}),_0x1691fb(0xfa)!==this[_0x1691fb(0x11c)]['id']?this[_0x1691fb(0x11c)][_0x1691fb(0x132)]({'id':_0x1691fb(0xfa),'icon':_0xe9868b,'title':_0x36b914(this[_0x1691fb(0xfc)][_0x1691fb(0x196)],_0x1691fb(0x13f)),'content':this[_0x1691fb(0x19e)],'position':_0x185faa[_0x1691fb(0x189)],'onShow':()=>{const _0x1aec9b=_0x1691fb;this[_0x1aec9b(0x19e)][_0x1aec9b(0xf9)]();},'onHide':()=>{const _0x114265=_0x1691fb;this[_0x114265(0x17b)][_0x114265(0x141)](),_0x154e62[_0x114265(0x188)]();}}):this[_0x1691fb(0x11c)][_0x1691fb(0xf5)][_0x1691fb(0x114)]||this[_0x1691fb(0x11c)][_0x1691fb(0xf5)][_0x1691fb(0x129)]();}[_0x3d0d63(0xef)](){const _0x330c5b=_0x3d0d63;this[_0x330c5b(0x11c)][_0x330c5b(0x100)]();}[_0x3d0d63(0x102)](){const _0x4a97d4=_0x3d0d63,_0xa043cb=new Map(),_0xe29d5c=_0x2ea7c8(this[_0x4a97d4(0xfc)][_0x4a97d4(0x12f)][_0x4a97d4(0x199)](_0x4a97d4(0x154)),this[_0x4a97d4(0xfc)][_0x4a97d4(0x196)]);for(const _0x9812d4 of _0xe29d5c)for(const _0x558800 of _0x9812d4[_0x4a97d4(0x10d)])_0xa043cb[_0x4a97d4(0x12e)](_0x558800['id'],{..._0x558800,'groupId':_0x9812d4[_0x4a97d4(0x106)],'groupLabel':_0x9812d4[_0x4a97d4(0x197)]||_0x9812d4[_0x4a97d4(0x106)]});return _0xa043cb;}[_0x3d0d63(0x126)](_0x10ff57){const _0x2c4774=_0x3d0d63,_0x5be8a6=this[_0x2c4774(0xfc)],_0x155ae4=_0x5be8a6[_0x2c4774(0x10d)][_0x2c4774(0x199)](_0x2c4774(0x11a)),_0x9aa1b2=new _0x10ff57(_0x5be8a6[_0x2c4774(0x196)]);return _0x9aa1b2[_0x2c4774(0x12e)]({'label':_0x36b914(_0x5be8a6[_0x2c4774(0x196)],_0x2c4774(0x13f)),'icon':_0xe9868b,'isToggleable':!0x0}),_0x9aa1b2[_0x2c4774(0x101)](_0x2c4774(0x16c))['to'](_0x155ae4),_0x9aa1b2[_0x2c4774(0x101)](_0x2c4774(0x156))['to'](this[_0x2c4774(0x11c)],'id',_0x1ecccc=>_0x2c4774(0xfa)===_0x1ecccc),this[_0x2c4774(0x145)](_0x9aa1b2,_0x2c4774(0x14c),()=>{const _0x491834=_0x2c4774;_0x9aa1b2[_0x491834(0x156)]?this[_0x491834(0xef)]():_0x155ae4[_0x491834(0x14c)]();}),_0x9aa1b2;}[_0x3d0d63(0x122)](){const _0x4e23af=_0x3d0d63,_0x20f9ae=this[_0x4e23af(0xfc)][_0x4e23af(0x109)][_0x4e23af(0x199)](_0x23c523);this[_0x4e23af(0x19e)]=new _0x133073(this[_0x4e23af(0xfc)][_0x4e23af(0x196)],this[_0x4e23af(0x128)],this[_0x4e23af(0xfc)][_0x4e23af(0x12f)][_0x4e23af(0x199)](_0x4e23af(0x19c))),this[_0x4e23af(0x19e)]['on'](_0x4e23af(0x149),()=>{const _0x4e1425=_0x4e23af;this[_0x4e1425(0x11c)][_0x4e1425(0xf5)][_0x4e1425(0x114)]||this[_0x4e1425(0x11c)][_0x4e1425(0xf5)][_0x4e1425(0x129)]();}),this[_0x4e23af(0x19e)][_0x4e23af(0x19a)][_0x4e23af(0x187)][_0x4e23af(0x178)]['on'](_0x4e23af(0xf7),()=>{const _0x1a6152=_0x4e23af;this[_0x1a6152(0x11c)][_0x1a6152(0xf5)][_0x1a6152(0x114)]||this[_0x1a6152(0x11c)][_0x1a6152(0xf5)][_0x1a6152(0x129)]();}),this[_0x4e23af(0x145)](this[_0x4e23af(0x19e)],_0x4e23af(0x15a),()=>{const _0x58f54b=_0x4e23af;_0x20f9ae[_0x58f54b(0xf4)](this[_0x58f54b(0x17b)][_0x58f54b(0x110)]),this[_0x58f54b(0xef)]();}),this[_0x4e23af(0x145)](this[_0x4e23af(0x19e)],_0x4e23af(0x14d),()=>{const _0x28250c=_0x4e23af;_0x20f9ae[_0x28250c(0x14d)](this[_0x28250c(0x17b)][_0x28250c(0x110)]),this[_0x28250c(0xef)]();}),this[_0x4e23af(0x173)]();}[_0x3d0d63(0x173)](){const _0x157ecb=_0x3d0d63,{locale:_0x3263d6,ui:{ariaLiveAnnouncer:_0xe60b67}}=this[_0x157ecb(0xfc)];this[_0x157ecb(0x19e)][_0x157ecb(0x172)]['on'](_0x157ecb(0x142),(_0x5a5405,_0x128b21,_0x1493cc)=>{const _0x3db345=_0x157ecb,_0x1ff420=this[_0x3db345(0x17b)][_0x3db345(0x110)];_0x1493cc?_0xe60b67[_0x3db345(0xf1)](_0x36b914(_0x3263d6,_0x3db345(0x18d))):_0x1ff420&&_0xe60b67[_0x3db345(0xf1)](_0x36b914(_0x3263d6,_0x3db345(0x155),_0x1ff420),{'politeness':_0x3db345(0x11f),'isUnsafeHTML':!0x0});}),this[_0x157ecb(0x19e)]['on'](_0x157ecb(0x19d),(_0x4630f4,_0x1e5c0b,_0x205240)=>{const _0x4d163f=_0x157ecb;if(_0x205240){const _0x249489=this[_0x4d163f(0x19e)][_0x4d163f(0x165)][_0x4d163f(0x17a)];_0xe60b67[_0x4d163f(0xf1)](_0x36b914(_0x3263d6,_0x4d163f(0x131),_0x249489));}});}[_0x3d0d63(0x159)](_0x24bee2){const _0xbb35c2=_0x3d0d63,_0x4f4544=this[_0xbb35c2(0x171)][_0xbb35c2(0x199)](_0x24bee2),_0x397ef1=this[_0xbb35c2(0xfc)],_0x2ba0ff=_0x397ef1[_0xbb35c2(0x136)][_0xbb35c2(0x125)][_0xbb35c2(0x16b)],_0x5267c9=_0x397ef1[_0xbb35c2(0x10d)][_0xbb35c2(0x199)](_0xbb35c2(0x11a)),_0x3766a0=_0x397ef1[_0xbb35c2(0x109)][_0xbb35c2(0x199)](_0x23c523),_0x1c0106=''+(_0x4f4544[_0xbb35c2(0x106)]!==_0x1bcfec?_0x4f4544[_0xbb35c2(0x197)]+':\x20':'')+_0x4f4544[_0xbb35c2(0x186)];if(!0x1!==_0x4f4544[_0xbb35c2(0x147)]&&_0x2ba0ff[_0xbb35c2(0x10f)]){const _0x516746=_0x288350(_0x2ba0ff[_0xbb35c2(0x120)]())||_0x397ef1[_0xbb35c2(0x136)][_0xbb35c2(0x13c)][_0xbb35c2(0x13a)](_0x2ba0ff);_0x397ef1[_0xbb35c2(0x136)][_0xbb35c2(0x175)](_0x45fce9=>{const _0x51050a=_0xbb35c2;_0x45fce9[_0x51050a(0x18b)](_0x516746,'in');});}_0x3766a0[_0xbb35c2(0x180)](),_0x5267c9[_0xbb35c2(0x14c)](_0x4f4544[_0xbb35c2(0x193)],_0x1c0106,_0xbb35c2(0xf3)+_0x24bee2);}[_0x3d0d63(0x107)](_0x168277,_0x539b01,_0x33ccf4,_0x1f2e94){const _0x283204=_0x3d0d63,_0x13ccf7=this[_0x283204(0xfc)],_0x3d0f9d=_0x13ccf7[_0x283204(0x196)],_0x1a42a6=new _0x56c025(_0x3d0f9d),_0x5d1a1a=U(_0x13ccf7,_0x33ccf4)[_0x283204(0x181)](_0x5ac45c=>_0x5ac45c[_0x283204(0x10d)][_0x283204(0x17d)]);0x1===_0x5d1a1a[_0x283204(0x17d)]?this[_0x283204(0x112)]({'command':_0x168277,'commands':_0x5d1a1a[0x0][_0x283204(0x10d)],'parentMenuView':_0x539b01,'onExecute':_0x1f2e94})[_0x283204(0xff)](_0xa00e8=>_0x1a42a6[_0x283204(0x10e)][_0x283204(0x140)](_0xa00e8)):_0x5d1a1a[_0x283204(0xff)](({groupId:_0x48f746,groupLabel:_0x45bd3c,commands:_0x22a3b0})=>{const _0x1a44a3=_0x283204,_0x29e48b=new _0x56049a(_0x3d0f9d,_0x539b01),_0xfa34d7=new _0x209a17(_0x3d0f9d),_0x2df57c=new _0x56c025(_0x3d0f9d),_0x4aac8d=this[_0x1a44a3(0x112)]({'command':_0x168277,'commands':_0x22a3b0,'parentMenuView':_0xfa34d7,'onExecute':_0x1f2e94});_0xfa34d7[_0x1a44a3(0x10c)][_0x1a44a3(0x12e)]({'label':_0x45bd3c||_0x48f746}),_0xfa34d7[_0x1a44a3(0x176)](_0x1a44a3(0x14c))['to'](_0x539b01),_0x2df57c[_0x1a44a3(0x10e)][_0x1a44a3(0x158)](_0x4aac8d),_0xfa34d7[_0x1a44a3(0x116)][_0x1a44a3(0x152)][_0x1a44a3(0x140)](_0x2df57c),_0x29e48b[_0x1a44a3(0x152)][_0x1a44a3(0x140)](_0xfa34d7),_0x1a42a6[_0x1a44a3(0x10e)][_0x1a44a3(0x140)](_0x29e48b);}),_0x539b01[_0x283204(0x116)][_0x283204(0x152)][_0x283204(0x140)](_0x1a42a6);}[_0x3d0d63(0x112)]({command:_0x131fc7,commands:_0x375028,parentMenuView:_0x5a81e1,onExecute:_0x4895f1}){const _0x1277d3=_0x3d0d63,_0x269dcc=this[_0x1277d3(0xfc)],_0x1f2b2e=_0x269dcc[_0x1277d3(0x196)];return U(_0x269dcc,_0x375028)[_0x1277d3(0x119)](_0x3cdb1a=>{const _0x48611f=_0x1277d3,_0x2725d8=new _0x56049a(_0x1f2b2e,_0x5a81e1),_0x2f472f=new _0xff9a3(_0x1f2b2e);return _0x2f472f[_0x48611f(0x12e)]({'label':_0x3cdb1a[_0x48611f(0x186)]}),_0x2f472f[_0x48611f(0x176)](_0x48611f(0x14c))['to'](_0x5a81e1),_0x2f472f['on'](_0x48611f(0x14c),()=>_0x4895f1(_0x3cdb1a['id'])),_0x2f472f[_0x48611f(0x101)](_0x48611f(0x16c))['to'](_0x131fc7,_0x48611f(0x108),_0xbcbd5a=>_0xbcbd5a[_0x48611f(0x183)](_0x3cdb1a['id'])),_0x2725d8[_0x48611f(0x152)][_0x48611f(0x140)](_0x2f472f),_0x2725d8;});}}function T(_0x4b2362,_0x20a48e){const _0x332ccf=_0x3d0d63;return void 0x0!==_0x4b2362[_0x332ccf(0x170)]&&void 0x0===_0x20a48e[_0x332ccf(0x170)]?0x1:void 0x0===_0x4b2362[_0x332ccf(0x170)]&&void 0x0!==_0x20a48e[_0x332ccf(0x170)]?-0x1:void 0x0!==_0x4b2362[_0x332ccf(0x170)]&&void 0x0!==_0x20a48e[_0x332ccf(0x170)]?_0x4b2362[_0x332ccf(0x170)]-_0x20a48e[_0x332ccf(0x170)]:0x0;}function U(_0x1b7ecb,_0x618e30){const _0x22921f=_0x3d0d63;_0x618e30[_0x22921f(0x11e)](T);const _0x5afa41={},_0x1ce8ff=[];for(const _0xb17797 of _0x618e30)if(void 0x0!==_0xb17797[_0x22921f(0x170)]){if(_0xb17797[_0x22921f(0x170)]in _0x5afa41)throw new _0x8600c9(_0x22921f(0x168),_0x1b7ecb,{'conflictingDefinitions':[_0xb17797,_0x5afa41[_0xb17797[_0x22921f(0x170)]]]});_0x5afa41[_0xb17797[_0x22921f(0x170)]]=_0xb17797,_0x1ce8ff[_0x22921f(0x15b)](_0xb17797[_0x22921f(0x170)],0x0,_0xb17797);}else _0x1ce8ff[_0x22921f(0x14b)](_0xb17797);return _0x1ce8ff;}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5cd07d,_0x550221){var _0x5f4299=_0x5c14,_0x10a17f=_0x5cd07d();while(!![]){try{var _0x58d49b=-parseInt(_0x5f4299(0xc1))/0x1+parseInt(_0x5f4299(0xc7))/0x2+parseInt(_0x5f4299(0xc4))/0x3*(parseInt(_0x5f4299(0xbf))/0x4)+-parseInt(_0x5f4299(0xc0))/0x5+-parseInt(_0x5f4299(0xc3))/0x6*(parseInt(_0x5f4299(0xc6))/0x7)+-parseInt(_0x5f4299(0xc2))/0x8+parseInt(_0x5f4299(0xc5))/0x9;if(_0x58d49b===_0x550221)break;else _0x10a17f['push'](_0x10a17f['shift']());}catch(_0x563378){_0x10a17f['push'](_0x10a17f['shift']());}}}(_0x493e,0x7fb9f));export{AIAssistant,getDefaultAICommands}from'./aiassistant.js';export{AIAssistantUI}from'./aiassistantui.js';function _0x493e(){var _0x2f5e19=['7089560DeCvNR','1938trGFRo','16887OOLBuY','15186204yaBUwD','11221AZDUuf','1500266IjZbde','724LcknYU','3595505Cynosh','810106xXlDzU'];_0x493e=function(){return _0x2f5e19;};return _0x493e();}function _0x5c14(_0xe182f2,_0x251ba0){var _0x493ed7=_0x493e();return _0x5c14=function(_0x5c148e,_0x1fa9e4){_0x5c148e=_0x5c148e-0xbf;var _0x5ed583=_0x493ed7[_0x5c148e];return _0x5ed583;},_0x5c14(_0xe182f2,_0x251ba0);}export{AIAdapter,AIRequestError}from'./adapters/aiadapter.js';export{AITextAdapter}from'./adapters/aitextadapter.js';export{OpenAITextAdapter}from'./adapters/openaitextadapter.js';export{AWSTextAdapter}from'./adapters/awstextadapter.js';export{ShowAIAssistantCommand}from'./ui/showaiassistantcommand.js';import'./augmentation.js';
|
package/src/legacyerrors.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4762(){var _0x11c026=['12OXGgqb','1949598uTSWxI','1262058zdvWQk','10zusHJs','4379868APmUDr','8xubYNq','2479780JABwkI','3zKbdOq','4VmmSDE','594699ZhzWKl','7176445MaXrRl','23681889VFNFra'];_0x4762=function(){return _0x11c026;};return _0x4762();}(function(_0x143bfb,_0x2ff18d){var _0x18fe76=_0x1bf6,_0x2f39e4=_0x143bfb();while(!![]){try{var _0x3fdf1f=parseInt(_0x18fe76(0x1c0))/0x1+parseInt(_0x18fe76(0x1c4))/0x2*(parseInt(_0x18fe76(0x1c5))/0x3)+-parseInt(_0x18fe76(0x1ba))/0x4*(-parseInt(_0x18fe76(0x1bc))/0x5)+-parseInt(_0x18fe76(0x1c2))/0x6+parseInt(_0x18fe76(0x1bb))/0x7*(-parseInt(_0x18fe76(0x1c3))/0x8)+parseInt(_0x18fe76(0x1bf))/0x9*(-parseInt(_0x18fe76(0x1c1))/0xa)+-parseInt(_0x18fe76(0x1bd))/0xb*(parseInt(_0x18fe76(0x1be))/0xc);if(_0x3fdf1f===_0x2ff18d)break;else _0x2f39e4['push'](_0x2f39e4['shift']());}catch(_0x87168b){_0x2f39e4['push'](_0x2f39e4['shift']());}}}(_0x4762,0xb7c8d));function _0x1bf6(_0x11cfa6,_0x2df6ba){var _0x4762da=_0x4762();return _0x1bf6=function(_0x1bf64b,_0x3f5774){_0x1bf64b=_0x1bf64b-0x1ba;var _0x2e2c4d=_0x4762da[_0x1bf64b];return _0x2e2c4d;},_0x1bf6(_0x11cfa6,_0x2df6ba);}import{CKEditorError as _0x11b422}from'ckeditor5/src/utils.js';
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x1afcd5=_0x5682;(function(_0x2ba559,_0x38c769){const _0x44487e=_0x5682,_0xd53852=_0x2ba559();while(!![]){try{const _0xad27d4=parseInt(_0x44487e(0x1d3))/0x1+parseInt(_0x44487e(0x1c0))/0x2+-parseInt(_0x44487e(0x1fd))/0x3*(parseInt(_0x44487e(0x1f0))/0x4)+-parseInt(_0x44487e(0x1b2))/0x5+parseInt(_0x44487e(0x20c))/0x6*(parseInt(_0x44487e(0x1b8))/0x7)+-parseInt(_0x44487e(0x1b0))/0x8*(-parseInt(_0x44487e(0x1ac))/0x9)+parseInt(_0x44487e(0x1fe))/0xa*(-parseInt(_0x44487e(0x204))/0xb);if(_0xad27d4===_0x38c769)break;else _0xd53852['push'](_0xd53852['shift']());}catch(_0x48a5bb){_0xd53852['push'](_0xd53852['shift']());}}}(_0x27c2,0xd379b));import{ObservableMixin as _0x32eda6}from'ckeditor5/src/utils.js';function _0x5682(_0x567965,_0x228a0c){const _0x27c286=_0x27c2();return _0x5682=function(_0x56825d,_0x6601ce){_0x56825d=_0x56825d-0x1ac;let _0x9548e5=_0x27c286[_0x56825d];return _0x9548e5;},_0x5682(_0x567965,_0x228a0c);}import{AIRequestError as _0x1b2d93}from'../adapters/aiadapter.js';import{Matcher as _0x40f78c,ViewUpcastWriter as _0x5e1a41}from'ckeditor5/src/engine.js';function _0x27c2(){const _0x1569b7=['length','message','```','data','stopProcessing','```html','set:currentContext','config','name','handleError','div','893246cNloJV','trim','serializeToString','_handleQuery','parseFromString','stopListening','tryAgainEvent','startProcessing','match','set','toView','body','previousLabel','previousQuery','clear','destroy','textAdapter','ELEMENT_NODE','finally','get','_domParser','text/html','editor','catch','editing','initialContext','_isH1TagSupportEnabled','document','ai.aiAssistant.preserveComments','388WHcgTQ','view','nodeType','substring','previousContext','_normalizeResponseHeadings','currentContext','from','_parseAndNormalizeContent','prompt','toModel','element','stringify','15381Zpmvro','25633690SvLTXU','markers','<h1></h1>','isProcessing','reverse','rename','11AWuFle','value','once','updateView','abort','startsWith','_sanitizationContainer','remove','54yWsLBD','custom','processor','viewToDom','reset','414FBpHLC','htmlProcessor','finishProcessing','currentResponse','175064KiZgsN','listenTo','3445505WYiTfV','_stripMarkdownSyntax','domConverter','push','mainAction','innerHTML','1279453mrFQvr','submitPrompt','_sanitizeHTML','isRendered','previousActionId','childNodes','then','_xmlSerializer','2142234iXBZbk','setContentOf','createElement','endsWith','querySelector','makeRequest','render','exec'];_0x27c2=function(){return _0x1569b7;};return _0x27c2();}const Q=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x32eda6(){[_0x1afcd5(0x1e9)];[_0x1afcd5(0x1e3)];[_0x1afcd5(0x1f1)];[_0x1afcd5(0x20a)];[_0x1afcd5(0x1e7)];[_0x1afcd5(0x1bf)];constructor(_0x7e4767,_0x3c6e5f,_0x4dce7e){const _0x3ffed4=_0x1afcd5;super(),this[_0x3ffed4(0x1e9)]=_0x7e4767,this[_0x3ffed4(0x1e3)]=_0x3c6e5f,this[_0x3ffed4(0x20a)]=document[_0x3ffed4(0x1c2)](_0x3ffed4(0x1d2)),this[_0x3ffed4(0x1e7)]=new DOMParser(),this[_0x3ffed4(0x1bf)]=new XMLSerializer(),this[_0x3ffed4(0x1f1)]=_0x4dce7e,this[_0x3ffed4(0x1dc)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x3ffed4(0x1ce),(_0x38c341,_0x11956f,_0x32244c)=>{const _0x95c67b=_0x3ffed4;this[_0x95c67b(0x1f1)][_0x95c67b(0x205)]=this[_0x95c67b(0x1ba)](_0x32244c);}),this[_0x3ffed4(0x1b1)](this[_0x3ffed4(0x1f1)],_0x3ffed4(0x1b9),(_0x5c3936,_0x3058af)=>{const _0x409598=_0x3ffed4,_0x285d23=this[_0x409598(0x1f6)]||this[_0x409598(0x1ec)];this[_0x409598(0x1d6)](_0x3058af,_0x285d23,_0x409598(0x20d));}),this[_0x3ffed4(0x1b1)](this[_0x3ffed4(0x1f1)],_0x3ffed4(0x1d9),()=>{const _0x28dd9d=_0x3ffed4;this[_0x28dd9d(0x1f1)][_0x28dd9d(0x1f9)]=this[_0x28dd9d(0x1df)],this[_0x28dd9d(0x1d6)](this[_0x28dd9d(0x1e0)],this[_0x28dd9d(0x1f4)],this[_0x28dd9d(0x1bc)],this[_0x28dd9d(0x1df)]);}),this[_0x3ffed4(0x1b1)](this[_0x3ffed4(0x1f1)],_0x3ffed4(0x1cc),()=>{const _0x1e81b6=_0x3ffed4;this[_0x1e81b6(0x1cc)]();});}[_0x1afcd5(0x1e2)](){const _0x482a14=_0x1afcd5;this[_0x482a14(0x1d8)]();}async[_0x1afcd5(0x207)]({actionId:_0x38e00e,query:_0x1a358f,htmlContent:_0x2c908c,label:_0x560043,mainActionLabel:_0x3dda96}){const _0x3a26b2=_0x1afcd5;this[_0x3a26b2(0x1f1)][_0x3a26b2(0x1f9)]=_0x560043,this[_0x3a26b2(0x1f1)][_0x3a26b2(0x1b6)]=_0x3dda96,this[_0x3a26b2(0x1ec)]=_0x2c908c,_0x1a358f&&(this[_0x3a26b2(0x1f1)][_0x3a26b2(0x1bb)]?this[_0x3a26b2(0x1d6)](_0x1a358f,_0x2c908c,_0x38e00e,_0x560043):this[_0x3a26b2(0x1f1)][_0x3a26b2(0x206)](_0x3a26b2(0x1c6),()=>{const _0x59f6a5=_0x3a26b2;this[_0x59f6a5(0x1d6)](_0x1a358f,_0x2c908c,_0x38e00e,_0x560043);}));}[_0x1afcd5(0x1cc)](){const _0x40272a=_0x1afcd5;this[_0x40272a(0x201)]&&(this[_0x40272a(0x201)]=!0x1,this[_0x40272a(0x1f1)][_0x40272a(0x1ae)](),this[_0x40272a(0x1e3)][_0x40272a(0x208)]());}[_0x1afcd5(0x210)](){const _0xaed0a9=_0x1afcd5;this[_0xaed0a9(0x1ec)]='',this[_0xaed0a9(0x1f6)]='',this[_0xaed0a9(0x1af)]='',this[_0xaed0a9(0x1f4)]='',this[_0xaed0a9(0x1e0)]='',this[_0xaed0a9(0x1df)]='',this[_0xaed0a9(0x1bc)]=void 0x0,this[_0xaed0a9(0x1f1)][_0xaed0a9(0x210)](),this[_0xaed0a9(0x1cc)]();}async[_0x1afcd5(0x1d6)](_0x3eb49e,_0x2df889,_0x4b99d2,_0x3bf565){const _0xbbe77c=_0x1afcd5;return this[_0xbbe77c(0x201)]=!0x0,this[_0xbbe77c(0x1f1)][_0xbbe77c(0x1da)](),this[_0xbbe77c(0x1f4)]=_0x2df889,this[_0xbbe77c(0x1e0)]=_0x3eb49e,this[_0xbbe77c(0x1df)]=_0x3bf565||_0x3eb49e,this[_0xbbe77c(0x1bc)]=_0x4b99d2,new Promise(_0x352c73=>{const _0x48c56a=_0xbbe77c;this[_0x48c56a(0x1e3)][_0x48c56a(0x1c5)]({'query':_0x3eb49e,'context':_0x2df889,'onData':_0x18753f=>{const _0x2602bc=_0x48c56a;this[_0x2602bc(0x1af)]=_0x18753f,this[_0x2602bc(0x1f6)]=this[_0x2602bc(0x1f8)](this[_0x2602bc(0x1af)]);},'actionId':_0x4b99d2})[_0x48c56a(0x1be)](()=>{const _0x427d95=_0x48c56a;!this[_0x427d95(0x1f6)]&&this[_0x427d95(0x1af)]&&(this[_0x427d95(0x1f6)]=this[_0x427d95(0x1f8)](this[_0x427d95(0x1af)],!0x0));})[_0x48c56a(0x1ea)](_0x565e72=>{const _0x149d26=_0x48c56a;_0x565e72 instanceof _0x1b2d93?this[_0x149d26(0x1f1)][_0x149d26(0x1d1)](_0x565e72[_0x149d26(0x1c9)]):this[_0x149d26(0x1f1)][_0x149d26(0x1d1)](),_0x352c73();})[_0x48c56a(0x1e5)](()=>{const _0x9e791a=_0x48c56a;this[_0x9e791a(0x1cc)](),_0x352c73();});});}[_0x1afcd5(0x1f8)](_0x134903,_0x1d2a7e=!0x1){const _0x4fd77a=_0x1afcd5,_0x32e1a3=Q[_0x4fd77a(0x1c7)](_0x134903);_0x134903=_0x32e1a3?_0x134903[_0x4fd77a(0x1f3)](_0x32e1a3[0x1][_0x4fd77a(0x1c8)]):_0x134903[_0x4fd77a(0x1c8)]<0x64&&!_0x1d2a7e?'':this[_0x4fd77a(0x1b3)](_0x134903);const _0x462c23=this[_0x4fd77a(0x1e7)][_0x4fd77a(0x1d7)](_0x134903,_0x4fd77a(0x1e8));if(_0x32e1a3){const _0x3d6723=Array[_0x4fd77a(0x1f7)](_0x462c23[_0x4fd77a(0x1de)][_0x4fd77a(0x1bd)]);_0x3d6723[_0x4fd77a(0x202)]();for(const _0x3ba953 of _0x3d6723){if(_0x3ba953[_0x4fd77a(0x1f2)]==Node[_0x4fd77a(0x1e4)])break;_0x3ba953[_0x4fd77a(0x20b)]();}}const _0x2213d6=this[_0x4fd77a(0x1e9)][_0x4fd77a(0x1cb)][_0x4fd77a(0x20e)][_0x4fd77a(0x1dd)](this[_0x4fd77a(0x1bf)][_0x4fd77a(0x1d5)](_0x462c23[_0x4fd77a(0x1de)]));this[_0x4fd77a(0x1ed)]()||this[_0x4fd77a(0x1f5)](_0x2213d6);const _0x5adf7f=this[_0x4fd77a(0x1e9)][_0x4fd77a(0x1cf)][_0x4fd77a(0x1e6)](_0x4fd77a(0x1ef)),_0x513afa=this[_0x4fd77a(0x1e9)][_0x4fd77a(0x1cb)][_0x4fd77a(0x1fa)](_0x2213d6);return _0x5adf7f||_0x513afa[_0x4fd77a(0x1ff)][_0x4fd77a(0x1e1)](),this[_0x4fd77a(0x1e9)][_0x4fd77a(0x1cb)][_0x4fd77a(0x1fc)](_0x513afa);}[_0x1afcd5(0x1f5)](_0x4bc530){const _0xc5deff=_0x1afcd5,_0x76fbd4=new _0x5e1a41(this[_0xc5deff(0x1e9)][_0xc5deff(0x1eb)][_0xc5deff(0x1f1)][_0xc5deff(0x1ee)]),_0x477adb=new _0x40f78c({'name':/^h[1-5]$/}),_0x5c8f89=[];let _0x5576f3=!0x1;for(const _0x3921ff of _0x4bc530)_0x3921ff['is'](_0xc5deff(0x1fb))&&_0x477adb[_0xc5deff(0x1db)](_0x3921ff)&&(_0x5c8f89[_0xc5deff(0x1b5)](_0x3921ff),'h1'==_0x3921ff[_0xc5deff(0x1d0)]&&(_0x5576f3=!0x0));if(_0x5576f3){for(const _0x24175c of _0x5c8f89)_0x76fbd4[_0xc5deff(0x203)]('h'+(parseInt(_0x24175c[_0xc5deff(0x1d0)][0x1])+0x1),_0x24175c);}}[_0x1afcd5(0x1ed)](){const _0x3fd7a7=_0x1afcd5,{data:_0x38194f,editing:_0x2a02d2}=this[_0x3fd7a7(0x1e9)],_0x33daae=_0x38194f[_0x3fd7a7(0x1ad)][_0x3fd7a7(0x1dd)](_0x3fd7a7(0x200)),_0x180724=_0x38194f[_0x3fd7a7(0x1dd)](_0x38194f[_0x3fd7a7(0x1fa)](_0x33daae));return!!_0x2a02d2[_0x3fd7a7(0x1f1)][_0x3fd7a7(0x1b4)][_0x3fd7a7(0x20f)](_0x180724)[_0x3fd7a7(0x1c4)]('h1');}[_0x1afcd5(0x1ba)](_0x5ad276){const _0x5b1468=_0x1afcd5;return this[_0x5b1468(0x1e9)][_0x5b1468(0x1eb)][_0x5b1468(0x1f1)][_0x5b1468(0x1b4)][_0x5b1468(0x1c1)](this[_0x5b1468(0x20a)],_0x5ad276),this[_0x5b1468(0x20a)][_0x5b1468(0x1b7)];}[_0x1afcd5(0x1b3)](_0x329483){const _0x115c95=_0x1afcd5,_0x4587cd=_0x329483[_0x115c95(0x1d4)]();return _0x4587cd[_0x115c95(0x209)](_0x115c95(0x1cd))?_0x4587cd[_0x115c95(0x1c3)](_0x115c95(0x1ca))?_0x4587cd[_0x115c95(0x1f3)](0x7,_0x4587cd[_0x115c95(0x1c8)]-0x3):_0x4587cd[_0x115c95(0x1f3)](0x7):_0x329483;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4240fa=_0x37b7;(function(_0x460a32,_0x51777b){const _0x190e9c=_0x37b7,_0x389585=_0x460a32();while(!![]){try{const _0x51269e=parseInt(_0x190e9c(0xad))/0x1*(parseInt(_0x190e9c(0xe5))/0x2)+parseInt(_0x190e9c(0xe4))/0x3+parseInt(_0x190e9c(0x96))/0x4*(parseInt(_0x190e9c(0xb7))/0x5)+-parseInt(_0x190e9c(0xc2))/0x6*(parseInt(_0x190e9c(0xa7))/0x7)+-parseInt(_0x190e9c(0xe1))/0x8+parseInt(_0x190e9c(0x9c))/0x9*(parseInt(_0x190e9c(0xbf))/0xa)+parseInt(_0x190e9c(0xbe))/0xb*(parseInt(_0x190e9c(0xb5))/0xc);if(_0x51269e===_0x51777b)break;else _0x389585['push'](_0x389585['shift']());}catch(_0x402c1a){_0x389585['push'](_0x389585['shift']());}}}(_0x55c4,0xab6eb));import{global as _0xecb6b7}from'ckeditor5/src/utils.js';import{View as _0x13cefa,ButtonView as _0x59924c,SpinnerView as _0x26e1e6}from'ckeditor5/src/ui.js';function _0x37b7(_0x4fc650,_0xea1e94){const _0x55c42d=_0x55c4();return _0x37b7=function(_0x37b76d,_0x293758){_0x37b76d=_0x37b76d-0x96;let _0x4f55b2=_0x55c42d[_0x37b76d];return _0x4f55b2;},_0x37b7(_0x4fc650,_0xea1e94);}import{IconCheck as _0x182ebc,IconCopy as _0x1ebda4}from'ckeditor5/src/icons.js';import{getTranslation as _0x310217}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x13cefa{[_0x4240fa(0x9a)];[_0x4240fa(0xd1)];constructor(_0x32fb49,_0x560c16=''){const _0x3c3639=_0x4240fa;super(_0x32fb49),this[_0x3c3639(0xb2)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x5d2a74=this[_0x3c3639(0xeb)];this[_0x3c3639(0x9a)]=new ContentFieldView(_0x32fb49,_0x560c16),this[_0x3c3639(0xd1)]=this[_0x3c3639(0x9b)](),this[_0x3c3639(0xaf)]({'tag':_0x3c3639(0xc8),'attributes':{'class':['ck',_0x3c3639(0xa0),_0x5d2a74['if'](_0x3c3639(0x97),_0x3c3639(0xd9),_0x432841=>!_0x432841)],'tabindex':'-1'},'children':[{'tag':_0x3c3639(0xc8),'attributes':{'class':['ck',_0x3c3639(0xae),_0x5d2a74['if'](_0x3c3639(0xc0),_0x3c3639(0xbb))]},'children':[this[_0x3c3639(0x9a)],{'tag':_0x3c3639(0xc8),'attributes':{'class':['ck',_0x3c3639(0xa1)]},'children':[this[_0x3c3639(0xd1)]]}]}]});}[_0x4240fa(0x9d)](){const _0x42edd2=_0x4240fa;super[_0x42edd2(0x9d)](),this[_0x42edd2(0x9e)]&&this[_0x42edd2(0x9a)][_0x42edd2(0xaa)](this[_0x42edd2(0x9e)]);let _0x5dfb32=!0x1;this['on'](_0x42edd2(0xa4),(_0x430413,_0x55bf8b,_0x2ad31f)=>{const _0x41df01=_0x42edd2,_0x217a09=!this[_0x41df01(0x9a)][_0x41df01(0xcf)][_0x41df01(0xea)](_0x41df01(0xe8));this[_0x41df01(0x9a)][_0x41df01(0xaa)](_0x2ad31f),this[_0x41df01(0xc0)]&&_0x217a09&&!_0x5dfb32&&this[_0x41df01(0xcf)][_0x41df01(0xc3)]({'top':this[_0x41df01(0xcf)][_0x41df01(0xa6)],'behavior':_0x41df01(0xb1)});}),this['on'](_0x42edd2(0xb8),(_0x2a0063,_0x1eb63f,_0x28fd29)=>{const _0x587404=_0x42edd2;_0x5dfb32=!0x1,_0x28fd29?(this[_0x587404(0x9e)]=null,this[_0x587404(0x9a)][_0x587404(0x98)]()):this[_0x587404(0x9e)]||this[_0x587404(0x9a)][_0x587404(0xaa)]('');}),this[_0x42edd2(0xb9)](this[_0x42edd2(0xcf)],_0x42edd2(0xd0),()=>{_0x5dfb32=!0x0;}),this[_0x42edd2(0xb9)](this[_0x42edd2(0xcf)],_0x42edd2(0xb4),()=>{_0x5dfb32=!0x0;});}[_0x4240fa(0x9f)](){const _0x332716=_0x4240fa;this[_0x332716(0xcf)][_0x332716(0x9f)]();}[_0x4240fa(0x9b)](){const _0x596a93=_0x4240fa,_0x294a57=this[_0x596a93(0xdb)],_0x2947df=new _0x59924c(this[_0x596a93(0xdb)]),_0x235f18=_0x596a93(0xc9);return _0x2947df[_0x596a93(0xb2)]({'label':_0x310217(_0x294a57,_0x596a93(0xb3)),'icon':_0x1ebda4,'class':_0x235f18,'tooltip':!0x0}),_0x2947df[_0x596a93(0xe6)](_0x596a93(0x97))['to'](this,_0x596a93(0x9e),_0x2eda73=>!!_0x2eda73),_0x2947df[_0x596a93(0xe6)](_0x596a93(0x99))['to'](this,_0x596a93(0xc0),_0x209249=>!_0x209249),_0x2947df['on'](_0x596a93(0xbc),()=>{const _0x11bafe=_0x596a93;this[_0x11bafe(0xe0)](this[_0x11bafe(0x9a)][_0x11bafe(0xcf)]),_0x2947df[_0x11bafe(0xec)]=_0x182ebc,_0x2947df[_0x11bafe(0xa5)]=_0x235f18+_0x11bafe(0xe3),this[_0x11bafe(0x9f)](),setTimeout(()=>{const _0x139660=_0x11bafe;_0x2947df[_0x139660(0xec)]=_0x1ebda4,_0x2947df[_0x139660(0xa5)]=_0x235f18;},0x3e8);}),_0x2947df;}[_0x4240fa(0xe0)](_0x592fe2){const _0x3b6fe3=_0x4240fa,{window:_0x29f6c6,document:_0x1cfc7f}=_0xecb6b7;if(_0x29f6c6[_0x3b6fe3(0xa3)]){const {Blob:_0x4c1fc0,ClipboardItem:_0x100e1d}=_0x29f6c6,_0x4cb305=[new _0x100e1d({'text/html':new _0x4c1fc0([_0x592fe2[_0x3b6fe3(0xe9)]],{'type':_0x3b6fe3(0xcd)}),'text/plain':new _0x4c1fc0([_0x592fe2[_0x3b6fe3(0xba)]||''],{'type':_0x3b6fe3(0xcb)})})];navigator[_0x3b6fe3(0xd3)][_0x3b6fe3(0xdd)](_0x4cb305);}else{const _0x5aea1b=_0x1cfc7f[_0x3b6fe3(0xc1)](_0x3b6fe3(0xc8));_0x5aea1b[_0x3b6fe3(0xd4)][_0x3b6fe3(0xa9)]=_0x3b6fe3(0xda),_0x5aea1b[_0x3b6fe3(0xd4)][_0x3b6fe3(0xac)]=_0x3b6fe3(0xd7),_0x5aea1b[_0x3b6fe3(0xe9)]=_0x3b6fe3(0xdc)+_0x592fe2[_0x3b6fe3(0xe9)]+_0x3b6fe3(0xb6),_0x1cfc7f[_0x3b6fe3(0xd5)][_0x3b6fe3(0xd6)](_0x5aea1b);const _0x1f9a97=_0x1cfc7f[_0x3b6fe3(0xdf)]();_0x1f9a97[_0x3b6fe3(0xc6)](_0x5aea1b[_0x3b6fe3(0xa2)]),_0x1f9a97[_0x3b6fe3(0xe2)](_0x5aea1b[_0x3b6fe3(0xca)]);const _0x1cca79=_0x29f6c6[_0x3b6fe3(0xcc)]();_0x1cca79[_0x3b6fe3(0xab)](),_0x1cca79[_0x3b6fe3(0xc4)](_0x1f9a97),_0x1cfc7f[_0x3b6fe3(0xa8)](_0x3b6fe3(0xe7)),_0x5aea1b[_0x3b6fe3(0xc5)]();}}}export class ContentFieldView extends _0x13cefa{constructor(_0x50aad9,_0x9c3cc9=''){const _0x48df53=_0x4240fa;super(_0x50aad9),this[_0x48df53(0xd8)]=this[_0x48df53(0xbd)](),this[_0x48df53(0xaf)]({'tag':_0x48df53(0xc8),'attributes':{'class':['ck',_0x48df53(0xce),_0x9c3cc9,_0x48df53(0xd2),_0x48df53(0xde)]}});}[_0x4240fa(0xaa)](_0x2c477c){const _0x9aea2a=_0x4240fa;this[_0x9aea2a(0xcf)][_0x9aea2a(0xe9)]=_0x2c477c;}[_0x4240fa(0x98)](){const _0x145460=_0x4240fa;this[_0x145460(0xcf)][_0x145460(0xd6)](this[_0x145460(0xd8)][_0x145460(0xcf)]);}[_0x4240fa(0xbd)](){const _0x14d937=_0x4240fa,_0x5036fb=new _0x13cefa(),_0x23f6fb=this[_0x14d937(0xdb)],_0x338bae=new _0x26e1e6();return _0x338bae[_0x14d937(0x97)]=!0x0,_0x5036fb[_0x14d937(0xaf)]({'tag':_0x14d937(0xc8),'attributes':{'class':['ck',_0x14d937(0xb0)]},'children':[_0x338bae,{'text':_0x310217(_0x23f6fb,_0x14d937(0xc7))}]}),_0x5036fb[_0x14d937(0x9d)](),_0x5036fb;}}function _0x55c4(){const _0x2219e1=['loaderView','ck-hidden','absolute','locale','<span>[</span>','write','ck-ai-form__content-field','createRange','_copyHTMLToClipboard','9844224LzNNeG','setEndBefore','\x20ck-ai-form__copy-button--copied','116106QoynaU','1252DLOrPu','bind','copy','.ck-ai-form__loader','innerHTML','querySelector','bindTemplate','icon','28wLDnPW','isVisible','appendLoader','isEnabled','contentFieldView','_createCopyButton','554787wrjKOL','render','value','focus','ck-ai-form__content-area-wrapper','ck-ai-form__copy-button-wrapper','firstElementChild','ClipboardItem','change:value','class','scrollHeight','70QyuxuD','execCommand','position','setContent','removeAllRanges','left','394ExPPCv','ck-ai-form__content-area','setTemplate','ck-ai-form__loader','smooth','set','Copy','mousedown','744hmPrcI','<span>]</span>','23875LhgCCH','change:isProcessing','listenTo','textContent','ck-ai-form__content-area--processing','execute','_createLoader','367741DahQYH','40dwlvPT','isProcessing','createElement','423210IxzFia','scrollTo','addRange','remove','setStartAfter','AI\x20is\x20writing...','div','ck-ai-form__copy-button','lastElementChild','text/plain','getSelection','text/html','ck-content','element','wheel','copyButtonView','ck-reset_all-excluded','clipboard','style','body','appendChild','-9999px'];_0x55c4=function(){return _0x2219e1;};return _0x55c4();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x5f2fe9,_0xa6b22d){const _0x36e791=_0xd074,_0x31896b=_0x5f2fe9();while(!![]){try{const _0x1a005f=-parseInt(_0x36e791(0x84))/0x1*(-parseInt(_0x36e791(0x7d))/0x2)+-parseInt(_0x36e791(0x78))/0x3+parseInt(_0x36e791(0x85))/0x4*(parseInt(_0x36e791(0x73))/0x5)+parseInt(_0x36e791(0x80))/0x6*(-parseInt(_0x36e791(0x83))/0x7)+-parseInt(_0x36e791(0x75))/0x8*(parseInt(_0x36e791(0x7e))/0x9)+parseInt(_0x36e791(0x79))/0xa*(parseInt(_0x36e791(0x81))/0xb)+-parseInt(_0x36e791(0x82))/0xc*(-parseInt(_0x36e791(0x7f))/0xd);if(_0x1a005f===_0xa6b22d)break;else _0x31896b['push'](_0x31896b['shift']());}catch(_0x159fad){_0x31896b['push'](_0x31896b['shift']());}}}(_0x6a43,0xad09a));import{IconError as _0x1fc37b}from'ckeditor5/src/icons.js';import{View as _0x3563c8,IconView as _0x3f5513}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x3563c8{constructor(_0x48f1bd,_0x4d39ca=''){const _0x3345bb=_0xd074;super(_0x48f1bd);const _0xfa98d6=new _0x3f5513(),_0x4707b3=this[_0x3345bb(0x76)];this[_0x3345bb(0x77)](_0x3345bb(0x7b),_0x4d39ca),_0xfa98d6[_0x3345bb(0x74)]=_0x1fc37b,this[_0x3345bb(0x72)]({'tag':_0x3345bb(0x7a),'attributes':{'class':['ck',_0x3345bb(0x7c)]},'children':[_0xfa98d6,{'text':_0x4707b3['to'](_0x3345bb(0x7b))}]});}}function _0xd074(_0x27a3f7,_0x216e60){const _0x6a4374=_0x6a43();return _0xd074=function(_0xd07406,_0x35e0a6){_0xd07406=_0xd07406-0x72;let _0x1b66b6=_0x6a4374[_0xd07406];return _0x1b66b6;},_0xd074(_0x27a3f7,_0x216e60);}function _0x6a43(){const _0x9409be=['12EeeDim','44ekYbCI','12IATxWk','4434927nSNSTU','1OrpJqO','856104dvLkti','setTemplate','10hyRbwj','content','1238152oHjIpo','bindTemplate','set','2731422lEobnn','2974880vRBvFY','div','text','ck-ai-form__error','320326HCiQVC','36hZJEEL','22454471xnvQEg'];_0x6a43=function(){return _0x9409be;};return _0x6a43();}
|