@ckeditor/ckeditor5-ai 46.0.0-alpha.6 → 46.0.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +2 -2
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/adapters/aiadapter.js +1 -1
- package/src/adapters/aitextadapter.js +1 -1
- package/src/adapters/awstextadapter.js +1 -1
- package/src/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant.js +1 -1
- package/src/aiassistantediting.js +1 -1
- package/src/aiassistantui.js +1 -1
- package/src/index.js +1 -1
- package/src/legacyerrors.js +1 -1
- package/src/ui/aiassistantcontroller.js +2 -2
- package/src/ui/form/aiformcontentarea.js +1 -1
- package/src/ui/form/aiformerrorview.js +1 -1
- package/src/ui/form/aiformpromptview.js +1 -1
- package/src/ui/form/aiformtoolbarview.js +1 -1
- package/src/ui/form/aiformview.js +1 -1
- package/src/ui/form/aihistorylistitemview.js +1 -1
- package/src/ui/form/aihistorylistview.js +1 -1
- package/src/ui/form/prompthistory.js +1 -1
- package/src/ui/showaiassistantcommand.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/normalizecommandsconfig.js +1 -1
package/src/aiassistant.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29d2e8=_0x1bc8;(function(_0x3b2276,_0x442fcf){const _0x450400=_0x1bc8,_0x13e43a=_0x3b2276();while(!![]){try{const _0x3f10ae=parseInt(_0x450400(0xd3))/0x1+parseInt(_0x450400(0xb8))/0x2*(parseInt(_0x450400(0xc0))/0x3)+parseInt(_0x450400(0xd6))/0x4+-parseInt(_0x450400(0x100))/0x5*(parseInt(_0x450400(0xf4))/0x6)+-parseInt(_0x450400(0xd1))/0x7+-parseInt(_0x450400(0xb1))/0x8*(parseInt(_0x450400(0xea))/0x9)+-parseInt(_0x450400(0xbe))/0xa;if(_0x3f10ae===_0x442fcf)break;else _0x13e43a['push'](_0x13e43a['shift']());}catch(_0x24cf71){_0x13e43a['push'](_0x13e43a['shift']());}}}(_0x326f,0x4bd07));import{Plugin as _0x48e8d1}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x3ab1d9}from'./aiassistantui.js';import{AIAssistantEditing as _0x373529}from'./aiassistantediting.js';function _0x1bc8(_0x23751b,_0x23c453){const _0x326f24=_0x326f();return _0x1bc8=function(_0x1bc88a,_0x283e11){_0x1bc88a=_0x1bc88a-0x9e;let _0x31fed6=_0x326f24[_0x1bc88a];return _0x31fed6;},_0x1bc8(_0x23751b,_0x23c453);}import{getTranslation as _0x52e551}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x1dd9a8}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x48e8d1{static get[_0x29d2e8(0xfd)](){return[_0x3ab1d9,_0x373529];}static get[_0x29d2e8(0xc5)](){const _0x51cf31=_0x29d2e8;return _0x51cf31(0xc7);}static get[_0x29d2e8(0xfe)](){return!0x0;}static get[_0x29d2e8(0x9e)](){return!0x0;}constructor(_0x3fccfe){const _0x403c6b=_0x29d2e8;super(_0x3fccfe);const _0x159697=_0x3fccfe[_0x403c6b(0xaf)],_0x3cd2b1=_0x3fccfe[_0x403c6b(0xf9)];_0x159697[_0x403c6b(0xee)](_0x403c6b(0xc1),!0x0),_0x159697[_0x403c6b(0xee)](_0x403c6b(0xae),getDefaultAICommands(_0x3cd2b1)),_0x159697[_0x403c6b(0xee)](_0x403c6b(0x102),[]),_0x159697[_0x403c6b(0xee)](_0x403c6b(0xe8),[]);let _0x3f2ef3=_0x1dd9a8(_0x159697[_0x403c6b(0x104)](_0x403c6b(0xae)),_0x3cd2b1);const _0x5b09e8=_0x159697[_0x403c6b(0x104)](_0x403c6b(0x102)),_0x12132e=_0x159697[_0x403c6b(0x104)](_0x403c6b(0xe8));_0x5b09e8[_0x403c6b(0xe3)](_0x5d0dd6=>{const _0x15d185=_0x403c6b,_0x3b8852=_0x3f2ef3[_0x15d185(0xcd)](_0x3b7fe5=>_0x3b7fe5[_0x15d185(0xf6)]===_0x5d0dd6[_0x15d185(0xf6)]);_0x3b8852?_0x3b8852[_0x15d185(0x108)]=_0x3b8852[_0x15d185(0x108)][_0x15d185(0x105)](_0x5d0dd6[_0x15d185(0x108)]):_0x3f2ef3[_0x15d185(0xfb)](_0x5d0dd6);}),_0x3f2ef3=_0x3f2ef3[_0x403c6b(0xfc)](_0xdc06=>!_0x12132e[_0x403c6b(0x107)](_0xdc06[_0x403c6b(0xf6)])),_0x3f2ef3[_0x403c6b(0xe3)](_0x32708b=>{const _0xcb0b0e=_0x403c6b;_0x32708b[_0xcb0b0e(0x108)]=_0x32708b[_0xcb0b0e(0x108)][_0xcb0b0e(0xfc)](_0x34a0d5=>!_0x12132e[_0xcb0b0e(0x107)](_0x34a0d5['id']));}),_0x159697[_0x403c6b(0xe0)](_0x403c6b(0xae),_0x3f2ef3);}}function _0x326f(){const _0x2a5fb9=['Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Portuguese','Spanish','Translate\x20the\x20content\x20to\x20German\x20language.','legal','casual','editOrReview','Summarize','makeShorter','set','English','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','forEach','Make\x20shorter','generate','Translate','Arabic','ai.aiAssistant.removeCommands','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','3015CKGlZf','Translate\x20the\x20content\x20to\x20Spanish\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','define','Improve\x20writing','professional','Professional','Make\x20longer','translateFrench','15882FBOZAs','improveWriting','groupId','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Continue','locale','Edit\x20or\x20review','push','filter','requires','isOfficialPlugin','continue','185vADkLd','Change\x20style','ai.aiAssistant.extraCommandGroups','translatePortuguese','get','concat','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','includes','commands','business','Translate\x20the\x20content\x20to\x20Hindi\x20language.','summarize','friendly','isPremiumPlugin','Simplified\x20Chinese','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','simplifyLanguage','Friendly','changeTone','German','changeStyle','Business','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Hindi','Direct','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','translateArabic','ai.aiAssistant.commands','config','translate','1064ksCRPj','translateChinese','confident','translateGerman','French','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Confident','38nXDXmW','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Journalism','translateHindi','journalism','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','882210rpSVEl','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','13863NJbZDk','ai.aiAssistant.preserveComments','Casual','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','pluginName','Poetic','AIAssistant','Simplify\x20language','poetic','direct','Change\x20tone','translateSpanish','find','Generate\x20from\x20selection','Legal','translateEnglish','2066778bNFlyF','makeLonger','574418jabmHS','Translate\x20the\x20content\x20to\x20French\x20language.','Translate\x20the\x20content\x20to\x20English\x20language.','697148OVtJLc'];_0x326f=function(){return _0x2a5fb9;};return _0x326f();}export function getDefaultAICommands(_0x95d53){const _0xb3f394=_0x29d2e8;return[{'groupId':_0xb3f394(0xdd),'groupLabel':_0x52e551(_0x95d53,_0xb3f394(0xfa)),'commands':[{'id':_0xb3f394(0xf5),'label':_0x52e551(_0x95d53,_0xb3f394(0xef)),'prompt':_0xb3f394(0xa8)},{'id':_0xb3f394(0xdf),'label':_0x52e551(_0x95d53,_0xb3f394(0xe4)),'prompt':_0xb3f394(0xa1)},{'id':_0xb3f394(0xd2),'label':_0x52e551(_0x95d53,_0xb3f394(0xf2)),'prompt':_0xb3f394(0xb6)},{'id':_0xb3f394(0xa2),'label':_0x52e551(_0x95d53,_0xb3f394(0xc8)),'prompt':_0xb3f394(0xc3)}]},{'groupId':_0xb3f394(0xe5),'groupLabel':_0x52e551(_0x95d53,_0xb3f394(0xce)),'commands':[{'id':_0xb3f394(0x10b),'label':_0x52e551(_0x95d53,_0xb3f394(0xde)),'prompt':_0xb3f394(0xbd)},{'id':_0xb3f394(0xff),'label':_0x52e551(_0x95d53,_0xb3f394(0xf8)),'prompt':_0xb3f394(0xa0)}]},{'groupId':_0xb3f394(0xa4),'groupLabel':_0x52e551(_0x95d53,_0xb3f394(0xcb)),'commands':[{'id':_0xb3f394(0xf0),'label':_0x52e551(_0x95d53,_0xb3f394(0xf1)),'prompt':_0xb3f394(0xe9)},{'id':_0xb3f394(0xdc),'label':_0x52e551(_0x95d53,_0xb3f394(0xc2)),'prompt':_0xb3f394(0xb9)},{'id':_0xb3f394(0xca),'label':_0x52e551(_0x95d53,_0xb3f394(0xaa)),'prompt':_0xb3f394(0xc4)},{'id':_0xb3f394(0xb3),'label':_0x52e551(_0x95d53,_0xb3f394(0xb7)),'prompt':_0xb3f394(0xac)},{'id':_0xb3f394(0x10c),'label':_0x52e551(_0x95d53,_0xb3f394(0xa3)),'prompt':_0xb3f394(0xe2)}]},{'groupId':_0xb3f394(0xa6),'groupLabel':_0x52e551(_0x95d53,_0xb3f394(0x101)),'commands':[{'id':_0xb3f394(0x109),'label':_0x52e551(_0x95d53,_0xb3f394(0xa7)),'prompt':_0xb3f394(0xed)},{'id':_0xb3f394(0xdb),'label':_0x52e551(_0x95d53,_0xb3f394(0xcf)),'prompt':_0xb3f394(0xbf)},{'id':_0xb3f394(0xbc),'label':_0x52e551(_0x95d53,_0xb3f394(0xba)),'prompt':_0xb3f394(0xec)},{'id':_0xb3f394(0xc9),'label':_0x52e551(_0x95d53,_0xb3f394(0xc6)),'prompt':_0xb3f394(0x106)}]},{'groupId':_0xb3f394(0xb0),'groupLabel':_0x52e551(_0x95d53,_0xb3f394(0xe6)),'commands':[{'id':_0xb3f394(0xd0),'label':_0x52e551(_0x95d53,_0xb3f394(0xe1)),'prompt':_0xb3f394(0xd5)},{'id':_0xb3f394(0xcc),'label':_0x52e551(_0x95d53,_0xb3f394(0xd9)),'prompt':_0xb3f394(0xeb)},{'id':_0xb3f394(0x103),'label':_0x52e551(_0x95d53,_0xb3f394(0xd8)),'prompt':_0xb3f394(0xab)},{'id':_0xb3f394(0xb4),'label':_0x52e551(_0x95d53,_0xb3f394(0xa5)),'prompt':_0xb3f394(0xda)},{'id':_0xb3f394(0xf3),'label':_0x52e551(_0x95d53,_0xb3f394(0xb5)),'prompt':_0xb3f394(0xd4)},{'id':_0xb3f394(0xb2),'label':_0x52e551(_0x95d53,_0xb3f394(0x9f)),'prompt':_0xb3f394(0xd7)},{'id':_0xb3f394(0xbb),'label':_0x52e551(_0x95d53,_0xb3f394(0xa9)),'prompt':_0xb3f394(0x10a)},{'id':_0xb3f394(0xad),'label':_0x52e551(_0x95d53,_0xb3f394(0xe7)),'prompt':_0xb3f394(0xf7)}]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x40411c=_0x42ef;(function(_0x145a2b,_0x16781d){const _0x591fdc=_0x42ef,_0x4ce039=_0x145a2b();while(!![]){try{const _0x26664b=-parseInt(_0x591fdc(0x20d))/0x1+-parseInt(_0x591fdc(0x1df))/0x2*(parseInt(_0x591fdc(0x1f6))/0x3)+parseInt(_0x591fdc(0x1e3))/0x4*(parseInt(_0x591fdc(0x1ee))/0x5)+-parseInt(_0x591fdc(0x217))/0x6*(parseInt(_0x591fdc(0x204))/0x7)+parseInt(_0x591fdc(0x203))/0x8*(parseInt(_0x591fdc(0x20c))/0x9)+parseInt(_0x591fdc(0x218))/0xa+parseInt(_0x591fdc(0x1da))/0xb*(parseInt(_0x591fdc(0x22a))/0xc);if(_0x26664b===_0x16781d)break;else _0x4ce039['push'](_0x4ce039['shift']());}catch(_0x24e812){_0x4ce039['push'](_0x4ce039['shift']());}}}(_0x8f99,0x973a4));import{uid as _0x1e893b}from'ckeditor5/src/utils.js';import{Plugin as _0x3313d3}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x280cf6}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x3138e2,ViewDataTransfer as _0x5547d9}from'ckeditor5/src/engine.js';const l=globalThis[_0x40411c(0x1d4)],w=_0x40411c(0x201);function _0x42ef(_0x2deba0,_0xfbd560){const _0x8f9995=_0x8f99();return _0x42ef=function(_0x42ef23,_0x284c12){_0x42ef23=_0x42ef23-0x1cf;let _0x4a391f=_0x8f9995[_0x42ef23];return _0x4a391f;},_0x42ef(_0x2deba0,_0xfbd560);}function _0x8f99(){const _0xa2ee9a=['contentInsertion','resultRange','push','getFirstRange','schema','isAtEnd','parse','markers','afterInit','document','isPremiumPlugin','12AmiXRn','getLastMatchingPosition','fire','element','_prepareTableInsertBelowPosition','isOfficialPlugin','setSelection','getSelectedTableCells','change','ck-ai-assistant-ui_theme','deleteContent','isCollapsed','removeMarker','from','editingDowncast','_resetContentOfSelectedTableCells','createPositionAt','getMarkersGroup','data','init','AIAssistantEditing','setData','_getDefaultInsertBelowPosition','isContent','getChild','text/html','DataTransfer','conversion','updateMarker','first','getRanges','createPositionAfter','8855374UiwffQ','_getAISelection','ai.useTheme','insertContent','canEditAt','18796GbzGku','get','end','has','12172AildNA','filter','markerToElement','_pasteHTMLUsingClipboard','_createEmptyTableRows','href','getColumnIndexes','editor','showFakeVisualSelection','markerToHighlight','insertRows','405wTIdKx','hideFakeVisualSelection','createRange','start','TableUtils','table','getLastPosition','model','129QHTeRm','span','length','_getTableRowCountFromContent','config','selection','editing','off','insertContentBelow','getChildren','getRange','ai-ui','findAncestor','1344uZvxOi','7MsZLOF','addClass','pluginName','paste','ck-fake-ai-selection_collapsed','createSelection','ck-fake-ai-selection','getRows','7443GGwKuy','835392MDOMUm','map','markerRange','for','forEach','getSelectedBlocks','fromCharCode','createUIElement','join','pop','1416348PpgtpU','9045390xHslyb','getRowIndexes','lowest','last','addMarker','plugins','once'];_0x8f99=function(){return _0xa2ee9a;};return _0x8f99();}export class AIAssistantEditing extends _0x3313d3{static get[_0x40411c(0x206)](){const _0x39f209=_0x40411c;return _0x39f209(0x23e);}static get[_0x40411c(0x22f)](){return!0x0;}static get[_0x40411c(0x229)](){return!0x0;}[_0x40411c(0x23d)](){const _0x857307=_0x40411c,{editor:_0x3d4bfb}=this,_0x59b1bf=[_0x857307(0x20a)];_0x3d4bfb[_0x857307(0x1fa)][_0x857307(0x1e0)](_0x857307(0x1dc))&&_0x59b1bf[_0x857307(0x221)](_0x857307(0x233)),_0x3d4bfb[_0x857307(0x1d5)][_0x857307(0x210)](_0x857307(0x238))[_0x857307(0x1ec)]({'model':w,'view':{'classes':_0x59b1bf,'priority':0xc}}),_0x3d4bfb[_0x857307(0x1d5)][_0x857307(0x210)](_0x857307(0x238))[_0x857307(0x1e5)]({'model':w,'view':(_0x41ecf6,{writer:_0x526475})=>{const _0x16f2fa=_0x857307;if(!_0x41ecf6[_0x16f2fa(0x20f)][_0x16f2fa(0x235)])return null;const _0x32c774=_0x526475[_0x16f2fa(0x214)](_0x16f2fa(0x1f7));return _0x526475[_0x16f2fa(0x205)]([_0x16f2fa(0x20a),_0x16f2fa(0x208)],_0x32c774),_0x32c774;}});}[_0x40411c(0x227)](){!async function(_0x4be6d8){const _0x40e221=_0x309c89([0x6c,0x50,0x35,0x32,0x36,0x5a,0x63,0x4d,0x76,0x4f,0x4b,0x66,0x73,0x48,0x6b,0x74,0x33,0x55,0x37,0x65,0x56,0x70,0x77,0x44,0x34,0x30,0x64,0x71,0x42,0x39,0x46,0x51,0x4a,0x43,0x78,0x7a,0x52,0x6a,0x45,0x38,0x49,0x59,0x31,0x68,0x4c,0x41,0x53,0x6e,0x54,0x6d,0x6f,0x61,0x69,0x62,0x72,0x75,0x79,0x47,0x57,0x58,0x67,0x4e]),_0x1fd33e=0x1e98efba,_0x21d201=0x1e9f835a^_0x1fd33e,_0x3c898b=window[_0x309c89([0x44,0x61,0x74,0x65])][_0x309c89([0x6e,0x6f,0x77])](),_0x4f0919=_0x4be6d8[_0x309c89([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2bc5ef=new window[(_0x309c89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x451b35=>{_0x4f0919[_0x309c89([0x6f,0x6e,0x63,0x65])](_0x309c89([0x72,0x65,0x61,0x64,0x79]),_0x451b35);}),_0x1f592a={[_0x309c89([0x6b,0x74,0x79])]:_0x309c89([0x45,0x43]),[_0x309c89([0x75,0x73,0x65])]:_0x309c89([0x73,0x69,0x67]),[_0x309c89([0x63,0x72,0x76])]:_0x309c89([0x50,0x2d,0x32,0x35,0x36]),[_0x309c89([0x78])]:_0x309c89([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]),[_0x309c89([0x79])]:_0x309c89([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]),[_0x309c89([0x61,0x6c,0x67])]:_0x309c89([0x45,0x53,0x32,0x35,0x36])},_0x25f08a=_0x4f0919[_0x309c89([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x309c89([0x67,0x65,0x74])](_0x309c89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x10658a(){let _0x3aa492,_0x356b05=null,_0x31b2bb=null;try{if(_0x25f08a==_0x309c89([0x47,0x50,0x4c]))return _0x309c89([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3aa492=_0x528376(),!_0x3aa492)return _0x309c89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3aa492[_0x309c89([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x31b2bb=_0x11db83(_0x3aa492[_0x309c89([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3aa492[_0x309c89([0x6a,0x74,0x69])])),await _0x3df884()?_0x12bf85()?_0x513d0c()?_0x309c89([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x915620()?(_0x3aa492[_0x309c89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x309c89([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x356b05=_0x3cf5e9(_0x309c89([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3aa492[_0x309c89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x309c89([0x74,0x72,0x69,0x61,0x6c])&&(_0x356b05=_0x3cf5e9(_0x309c89([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x36e5ee()):_0x309c89([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x309c89([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x309c89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x309c89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x513d0c(){const _0x3996bc=[_0x309c89([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x309c89([0x74,0x72,0x69,0x61,0x6c])][_0x309c89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3aa492[_0x309c89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c898b/0x3e8:0xe10*_0x21d201;return _0x3aa492[_0x309c89([0x65,0x78,0x70])]<_0x3996bc;}function _0x12bf85(){const _0x1d6a2c=_0x3aa492[_0x309c89([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1d6a2c&&(!!_0x1d6a2c[_0x309c89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x309c89([0x2a]))||!!_0x1d6a2c[_0x309c89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x309c89([0x41,0x49])));}function _0x915620(){const _0x3cf9a7=_0x42ef,_0x357f71=_0x3aa492[_0x309c89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x357f71||0x0==_0x357f71[_0x309c89([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x28a616}=new URL(window[_0x309c89([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3cf9a7(0x1e8)]);if(_0x357f71[_0x309c89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28a616))return!0x0;const _0x5883a2=_0x28a616[_0x309c89([0x73,0x70,0x6c,0x69,0x74])](_0x309c89([0x2e]));return _0x357f71[_0x309c89([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x140e3d=>_0x140e3d[_0x309c89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x309c89([0x2a])))[_0x309c89([0x6d,0x61,0x70])](_0x1e4ce9=>_0x1e4ce9[_0x309c89([0x73,0x70,0x6c,0x69,0x74])](_0x309c89([0x2e])))[_0x309c89([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b58e8=>_0x4b58e8[_0x309c89([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5883a2[_0x309c89([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x309c89([0x6d,0x61,0x70])](_0x4ee35c=>Array(_0x5883a2[_0x309c89([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4ee35c[_0x309c89([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x309c89([0x66,0x69,0x6c,0x6c])](_0x4ee35c[0x0]===_0x309c89([0x2a])?_0x309c89([0x2a]):'')[_0x309c89([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4ee35c))[_0x309c89([0x73,0x6f,0x6d,0x65])](_0x31f20c=>_0x5883a2[_0x309c89([0x65,0x76,0x65,0x72,0x79])]((_0x3770c1,_0x5cc6b5)=>_0x31f20c[_0x5cc6b5]===_0x3770c1||_0x31f20c[_0x5cc6b5]===_0x309c89([0x2a])));}function _0x36e5ee(){return _0x356b05&&_0x31b2bb?new window[(_0x309c89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2194ef,_0x494328)=>{_0x356b05[_0x309c89([0x74,0x68,0x65,0x6e])](_0x2194ef,_0x494328),_0x31b2bb[_0x309c89([0x74,0x68,0x65,0x6e])](_0x182c1a=>{_0x182c1a!=_0x309c89([0x56,0x61,0x6c,0x69,0x64])&&_0x2194ef(_0x182c1a);},_0x494328);}):_0x356b05||_0x31b2bb||_0x309c89([0x56,0x61,0x6c,0x69,0x64]);}}function _0x11db83(_0x5030e4,_0x58f535){return new window[(_0x309c89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11602f=>{if(_0x3cd321())return _0x11602f(_0x309c89([0x56,0x61,0x6c,0x69,0x64]));_0x50abae(),_0x4f0919[_0x309c89([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x309c89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xa8fc69=!0x1;const _0xb33182=_0x1e893b();function _0x256709(_0x5aa3ae){return!!_0x5aa3ae&&(typeof _0x5aa3ae===_0x309c89([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5aa3ae===_0x309c89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5aa3ae[_0x309c89([0x74,0x68,0x65,0x6e])]===_0x309c89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5aa3ae[_0x309c89([0x63,0x61,0x74,0x63,0x68])]===_0x309c89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f3f22(_0x384120){_0x2b8b15(_0x384120)[_0x309c89([0x74,0x68,0x65,0x6e])](_0x160356=>{if(!_0x160356||_0x160356[_0x309c89([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x309c89([0x6f,0x6b]))return _0x309c89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3a2800(_0x138111(_0xb33182+_0x58f535))!=_0x160356[_0x309c89([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x309c89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x309c89([0x56,0x61,0x6c,0x69,0x64]);})[_0x309c89([0x74,0x68,0x65,0x6e])](_0x6fab5a=>(_0x3aeedb(),_0x6fab5a),()=>{const _0x4a6bf6=_0xb98af3();return null==_0x4a6bf6?(_0x3aeedb(),_0x309c89([0x56,0x61,0x6c,0x69,0x64])):_0x309c89(_0x3c898b-_0x4a6bf6>(0x3a946bba^_0x1fd33e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x309c89([0x74,0x68,0x65,0x6e])](_0x11602f)[_0x309c89([0x63,0x61,0x74,0x63,0x68])](()=>{_0x11602f(_0x309c89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x111d63=0x1eae013a^_0x1fd33e;function _0x3aeedb(){const _0x3f127d=_0x309c89([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a2800(_0x138111(_0x5030e4)),_0x561434=_0x112596(_0x3a2800(window[_0x309c89([0x4d,0x61,0x74,0x68])][_0x309c89([0x63,0x65,0x69,0x6c])](_0x3c898b/_0x111d63)));window[_0x309c89([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x309c89([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f127d,_0x561434);}function _0xb98af3(){const _0x1e734b=_0x309c89([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a2800(_0x138111(_0x5030e4)),_0x5e4021=window[_0x309c89([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x309c89([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e734b);return _0x5e4021?window[_0x309c89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x112596(_0x5e4021),0x10)*_0x111d63:null;}function _0x2b8b15(_0x354a63){return new window[(_0x309c89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48f6f6,_0xf60d52)=>{_0x354a63[_0x309c89([0x74,0x68,0x65,0x6e])](_0x48f6f6,_0xf60d52),window[_0x309c89([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xf60d52,0x1e993b7a^_0x1fd33e);});}}_0x4f0919[_0x309c89([0x6f,0x6e])](_0x309c89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5c66fb,_0x32fb6d)=>{if(_0x32fb6d[0x0]!=_0x5030e4)return _0x11602f(_0x309c89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x32fb6d[0x1]={..._0x32fb6d[0x1],[_0x309c89([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xb33182};},{[_0x309c89([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x309c89([0x68,0x69,0x67,0x68])}),_0x4f0919[_0x309c89([0x6f,0x6e])](_0x309c89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2fa6c5=>{_0x256709(_0x2fa6c5[_0x309c89([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xa8fc69=!0x0,_0x1f3f22(_0x2fa6c5[_0x309c89([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x309c89([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x309c89([0x6c,0x6f,0x77])}),_0x2bc5ef[_0x309c89([0x74,0x68,0x65,0x6e])](()=>{_0xa8fc69||_0x11602f(_0x309c89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3cd321(){return _0x4f0919[_0x309c89([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x309c89([0x76,0x69,0x65,0x77])][_0x309c89([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x309c89([0x61,0x75,0x74,0x6f]);}function _0x50abae(){_0x4f0919[_0x309c89([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x309c89([0x76,0x69,0x65,0x77])][_0x309c89([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x309c89([0x61,0x75,0x74,0x6f]);}}function _0x3cf5e9(_0x2fc062){const _0x27d023=[new window[(_0x309c89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40811a=>setTimeout(_0x40811a,0x1e91d176^_0x1fd33e)),_0x2bc5ef[_0x309c89([0x74,0x68,0x65,0x6e])](()=>new window[(_0x309c89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x316f5b=>{let _0x3dd898=0x0;_0x4f0919[_0x309c89([0x6d,0x6f,0x64,0x65,0x6c])][_0x309c89([0x6f,0x6e])](_0x309c89([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x16bbb1,_0x8299c8)=>{_0x8299c8[0x0][_0x309c89([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3dd898++,_0x3dd898==(0x1e98ee42^_0x1fd33e)&&(_0x316f5b(),_0x16bbb1[_0x309c89([0x6f,0x66,0x66])]());});}))];return window[_0x309c89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x309c89([0x72,0x61,0x63,0x65])](_0x27d023)[_0x309c89([0x74,0x68,0x65,0x6e])](()=>_0x2fc062);}async function _0x4b23c5(){await _0x2bc5ef,_0x4f0919[_0x309c89([0x6d,0x6f,0x64,0x65,0x6c])][_0x309c89([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x551598,_0x4f0919[_0x309c89([0x6d,0x6f,0x64,0x65,0x6c])][_0x309c89([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x551598,_0x4f0919[_0x309c89([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x309c89([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x46ffe1(_0x4f8511){const _0x3a492c=_0x58753b();_0x4f0919[_0x3a492c]=_0x309c89([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4f8511,_0x4f8511!=_0x309c89([0x56,0x61,0x6c,0x69,0x64])&&_0x4b23c5();}function _0x58753b(){const _0x160e1b=window[_0x309c89([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x309c89([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x309c89([0x6e,0x6f,0x77])]())[_0x309c89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x309c89([0x2e]),'');let _0x41e165=_0x309c89([0x6c]);for(let _0x5f28d2=0x0;_0x5f28d2<_0x160e1b[_0x309c89([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5f28d2+=0x2){let _0x5574e2=window[_0x309c89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x160e1b[_0x309c89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5f28d2,_0x5f28d2+0x2));_0x5574e2>=_0x40e221[_0x309c89([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5574e2-=_0x40e221[_0x309c89([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x41e165+=_0x40e221[_0x5574e2];}return _0x41e165;}function _0x528376(){const _0x3b7502=_0x25f08a[_0x309c89([0x73,0x70,0x6c,0x69,0x74])](_0x309c89([0x2e]));if(0x3!=_0x3b7502[_0x309c89([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xdf432e(_0x3b7502[0x1]);function _0xdf432e(_0x4e88fb){const _0x4678c4=_0x360889(_0x4e88fb);return _0x4678c4&&_0x43b2f3()?_0x4678c4:null;function _0x43b2f3(){const _0x3e5951=_0x4678c4[_0x309c89([0x6a,0x74,0x69])],_0x1eb745=window[_0x309c89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e5951[_0x309c89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e5951[_0x309c89([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x30c22a={..._0x4678c4,[_0x309c89([0x6a,0x74,0x69])]:_0x3e5951[_0x309c89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3e5951[_0x309c89([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x30c22a[_0x309c89([0x76,0x63])],_0x138111(_0x30c22a)==_0x1eb745;}}}async function _0x3df884(){let _0x4e992d=!0x0;try{const _0x269441=_0x25f08a[_0x309c89([0x73,0x70,0x6c,0x69,0x74])](_0x309c89([0x2e])),[_0x5b32d2,_0x20d78c,_0x545f48]=_0x269441;return _0x16e967(_0x5b32d2),await _0x2699d4(_0x5b32d2,_0x20d78c,_0x545f48),_0x4e992d;}catch{return!0x1;}function _0x16e967(_0x1ba129){const _0x357467=_0x360889(_0x1ba129);_0x357467&&_0x357467[_0x309c89([0x61,0x6c,0x67])]==_0x309c89([0x45,0x53,0x32,0x35,0x36])||(_0x4e992d=!0x1);}async function _0x2699d4(_0xf8f151,_0x1328b3,_0x3ab951){const _0x49f446=window[_0x309c89([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x309c89([0x66,0x72,0x6f,0x6d])](_0x26f043(_0x3ab951),_0x14be78=>_0x14be78[_0x309c89([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x143109=new window[(_0x309c89([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x309c89([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xf8f151+_0x309c89([0x2e])+_0x1328b3),_0x525622=window[_0x309c89([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x309c89([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x525622)return;const _0x5415ea=await _0x525622[_0x309c89([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x309c89([0x6a,0x77,0x6b]),_0x1f592a,{[_0x309c89([0x6e,0x61,0x6d,0x65])]:_0x309c89([0x45,0x43,0x44,0x53,0x41]),[_0x309c89([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x309c89([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x309c89([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x525622[_0x309c89([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x309c89([0x6e,0x61,0x6d,0x65])]:_0x309c89([0x45,0x43,0x44,0x53,0x41]),[_0x309c89([0x68,0x61,0x73,0x68])]:{[_0x309c89([0x6e,0x61,0x6d,0x65])]:_0x309c89([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5415ea,_0x49f446,_0x143109)||(_0x4e992d=!0x1);}}function _0x360889(_0x5e6995){return _0x5e6995[_0x309c89([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x309c89([0x65,0x79]))?JSON[_0x309c89([0x70,0x61,0x72,0x73,0x65])](_0x26f043(_0x5e6995)):null;}function _0x26f043(_0x5b4621){return window[_0x309c89([0x61,0x74,0x6f,0x62])](_0x5b4621[_0x309c89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x309c89([0x2b]))[_0x309c89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x309c89([0x2f])));}function _0x138111(_0x8c8df0){let _0x2901de=0x1505;function _0x3b3018(_0x336060){for(let _0x13991c=0x0;_0x13991c<_0x336060[_0x309c89([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13991c++){const _0xf7e05b=_0x336060[_0x309c89([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x13991c);_0x2901de=(_0x2901de<<0x5)+_0x2901de+_0xf7e05b,_0x2901de&=_0x2901de;}}function _0x299c66(_0x4c06b1){Array[_0x309c89([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4c06b1)?_0x4c06b1[_0x309c89([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x299c66):_0x4c06b1&&typeof _0x4c06b1==_0x309c89([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x309c89([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4c06b1)[_0x309c89([0x73,0x6f,0x72,0x74])]()[_0x309c89([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2cdbad,_0x26ac33])=>{_0x3b3018(_0x2cdbad),_0x299c66(_0x26ac33);}):_0x3b3018(window[_0x309c89([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4c06b1));}return _0x299c66(_0x8c8df0),_0x2901de>>>0x0;}function _0x3a2800(_0x9719cb){return _0x9719cb[_0x309c89([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x309c89([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x309c89([0x30]));}function _0x112596(_0x289712){return _0x289712[_0x309c89([0x73,0x70,0x6c,0x69,0x74])]('')[_0x309c89([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x309c89([0x6a,0x6f,0x69,0x6e])]('');}function _0x551598(){}function _0x309c89(_0x188de6){const _0x17f25e=_0x42ef;return _0x188de6[_0x17f25e(0x20e)](_0x1fc3a0=>String[_0x17f25e(0x213)](_0x1fc3a0))[_0x17f25e(0x215)]('');}_0x46ffe1(await _0x10658a());}(this);}[_0x40411c(0x1eb)](){const _0x2599db=_0x40411c,_0x44dc52=this[_0x2599db(0x1ea)][_0x2599db(0x1f5)];_0x44dc52[_0x2599db(0x232)](_0x102528=>{const _0x3450a9=_0x2599db,_0x486ff7=_0x44dc52[_0x3450a9(0x228)][_0x3450a9(0x1fb)][_0x3450a9(0x1d8)]();let _0x2c9e4b=0x0;for(const _0x13b661 of _0x486ff7){const _0x184b17=w+':'+_0x2c9e4b;if(_0x44dc52[_0x3450a9(0x226)][_0x3450a9(0x1e2)](_0x184b17))_0x102528[_0x3450a9(0x1d6)](_0x184b17,{'range':_0x13b661});else{if(_0x13b661[_0x3450a9(0x1f1)][_0x3450a9(0x224)]){const _0x59355f=_0x13b661[_0x3450a9(0x1f1)][_0x3450a9(0x22b)](({item:_0x56f14a})=>!_0x44dc52[_0x3450a9(0x223)][_0x3450a9(0x1d1)](_0x56f14a),{'boundaries':_0x13b661});_0x102528[_0x3450a9(0x21c)](_0x184b17,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x102528[_0x3450a9(0x1f0)](_0x59355f,_0x13b661[_0x3450a9(0x1e1)])});}else _0x102528[_0x3450a9(0x21c)](_0x184b17,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x13b661});}_0x2c9e4b++;}});}[_0x40411c(0x1ef)](){const _0x1cc6e8=_0x40411c,_0x287cad=this[_0x1cc6e8(0x1ea)][_0x1cc6e8(0x1f5)],_0xfa70ba=Array[_0x1cc6e8(0x237)](this[_0x1cc6e8(0x1ea)][_0x1cc6e8(0x1f5)][_0x1cc6e8(0x226)][_0x1cc6e8(0x23b)](w));_0xfa70ba[_0x1cc6e8(0x1f8)]&&_0x287cad[_0x1cc6e8(0x232)](_0x5ecb01=>{const _0x1c7ff6=_0x1cc6e8;_0xfa70ba[_0x1c7ff6(0x211)](_0x313bf2=>{const _0x33339e=_0x1c7ff6;_0x5ecb01[_0x33339e(0x236)](_0x313bf2);});});}[_0x40411c(0x1dd)](_0x5185db,_0xada285){const _0x157c68=_0x40411c,_0x399851=this[_0x157c68(0x1db)](),_0x267184=_0xada285||_0x399851[_0x157c68(0x222)]();this[_0x157c68(0x1ea)][_0x157c68(0x1f5)][_0x157c68(0x1de)](_0x267184)&&this[_0x157c68(0x1ea)][_0x157c68(0x1f5)][_0x157c68(0x232)](_0x30d04b=>{const _0x5bf651=_0x157c68;this[_0x5bf651(0x1ef)](),_0xada285||this[_0x5bf651(0x239)](_0x30d04b,_0x399851),this[_0x5bf651(0x1e6)]({'insertAt':_0x267184,'writer':_0x30d04b,'html':_0x5185db});});}[_0x40411c(0x1fe)](_0x33aefe){const _0x141ce2=_0x40411c,{model:_0xb9d7b6}=this[_0x141ce2(0x1ea)],_0x1f5cd7=this[_0x141ce2(0x1db)]();_0xb9d7b6[_0x141ce2(0x232)](()=>{const _0x3ce712=_0x141ce2,_0x6fcedd=this[_0x3ce712(0x22e)](_0x33aefe,_0x1f5cd7)||this[_0x3ce712(0x1d0)](_0x1f5cd7);this[_0x3ce712(0x1dd)](_0x33aefe,_0x6fcedd);});}[_0x40411c(0x1db)](){const _0x29ea7b=_0x40411c,_0x33bac3=this[_0x29ea7b(0x1ea)][_0x29ea7b(0x1f5)],_0x2f580e=Array[_0x29ea7b(0x237)](_0x33bac3[_0x29ea7b(0x226)][_0x29ea7b(0x23b)](w))[_0x29ea7b(0x20e)](_0x1a07ef=>_0x1a07ef[_0x29ea7b(0x200)]());return _0x33bac3[_0x29ea7b(0x209)](_0x2f580e);}[_0x40411c(0x1e6)]({writer:_0x4cd528,html:_0x37cfd0,insertAt:_0x642b70}){const _0xcf1e8f=_0x40411c,{view:_0xd6a011}=this[_0xcf1e8f(0x1ea)][_0xcf1e8f(0x1fc)],_0xe0bdec=this[_0xcf1e8f(0x1ea)][_0xcf1e8f(0x21d)][_0xcf1e8f(0x1e0)](_0x280cf6),_0x104a61=new l();_0x104a61[_0xcf1e8f(0x1cf)](_0xcf1e8f(0x1d3),_0x37cfd0);const _0x13da64=new ClipboardEvent(_0xcf1e8f(0x207),{'clipboardData':_0x104a61}),_0x42ba0a=new _0x3138e2(_0xd6a011,_0x13da64,{'dataTransfer':new _0x5547d9(_0x104a61)});_0x4cd528[_0xcf1e8f(0x230)](_0x642b70);const _0x38a127=(_0x3252a0,_0x5e09fc)=>{const _0x159042=_0xcf1e8f;_0x5e09fc[_0x159042(0x220)]&&_0x4cd528[_0x159042(0x230)](_0x5e09fc[_0x159042(0x220)]);};_0xe0bdec[_0xcf1e8f(0x21e)](_0xcf1e8f(0x21f),_0x38a127,{'priority':_0xcf1e8f(0x21a)}),_0xd6a011[_0xcf1e8f(0x228)][_0xcf1e8f(0x22c)](_0xcf1e8f(0x207),_0x42ba0a),_0xe0bdec[_0xcf1e8f(0x1fd)](_0xcf1e8f(0x21f),_0x38a127);}[_0x40411c(0x1d0)](_0x2a5398){const _0x5f1dbc=_0x40411c,{model:_0x3db8a3}=this[_0x5f1dbc(0x1ea)],_0x2b2cc8=Array[_0x5f1dbc(0x237)](_0x2a5398[_0x5f1dbc(0x212)]());return _0x2b2cc8[_0x5f1dbc(0x1f8)]?_0x3db8a3[_0x5f1dbc(0x1d9)](_0x2b2cc8[_0x5f1dbc(0x216)]()):_0x2a5398[_0x5f1dbc(0x1f4)]();}[_0x40411c(0x22e)](_0x252333,_0xd197ad){const _0x12b07e=_0x40411c,{model:_0x365223,plugins:_0x57036a}=this[_0x12b07e(0x1ea)];if(_0x57036a[_0x12b07e(0x1e2)](_0x12b07e(0x1f2))){const _0x502e24=_0x57036a[_0x12b07e(0x1e0)](_0x12b07e(0x1f2))[_0x12b07e(0x231)](_0xd197ad);if(_0x502e24[_0x12b07e(0x1f8)]){const _0x55476f=this[_0x12b07e(0x1f9)](_0x252333),_0x4ed8ac=this[_0x12b07e(0x1e7)](_0x502e24,_0x55476f);return _0x365223[_0x12b07e(0x23a)](_0x4ed8ac,0x0);}}return null;}[_0x40411c(0x1f9)](_0x246221){const _0x34ba43=_0x40411c,_0x34cbc7=this[_0x34ba43(0x1ea)][_0x34ba43(0x21d)][_0x34ba43(0x1e0)](_0x34ba43(0x1f2)),_0x24b3c1=this[_0x34ba43(0x1ea)][_0x34ba43(0x23c)][_0x34ba43(0x225)](_0x246221),_0x2f3d1b=Array[_0x34ba43(0x237)](_0x24b3c1[_0x34ba43(0x1ff)]())[_0x34ba43(0x1e4)](_0x5d6afb=>_0x5d6afb['is'](_0x34ba43(0x22d),_0x34ba43(0x1f3)));let _0x45ed5d=0x0;return _0x2f3d1b[_0x34ba43(0x211)](_0x3076df=>{const _0x3382d5=_0x34ba43;_0x45ed5d+=_0x34cbc7[_0x3382d5(0x20b)](_0x3076df);}),_0x45ed5d;}[_0x40411c(0x1e7)](_0x28c5cc,_0x7de493){const _0x4426c0=_0x40411c,_0x184520=this[_0x4426c0(0x1ea)][_0x4426c0(0x21d)][_0x4426c0(0x1e0)](_0x4426c0(0x1f2)),_0x1682e5=_0x184520[_0x4426c0(0x219)](_0x28c5cc),_0x407c70=_0x184520[_0x4426c0(0x1e9)](_0x28c5cc),_0x559cbc=_0x1682e5[_0x4426c0(0x21b)]+0x1,_0x13a789=_0x407c70[_0x4426c0(0x1d7)],_0x2b4efc=_0x28c5cc[0x0][_0x4426c0(0x202)](_0x4426c0(0x1f3));for(let _0x2778f5=0x0;_0x2778f5<_0x7de493;_0x2778f5++)_0x184520[_0x4426c0(0x1ed)](_0x2b4efc,{'at':_0x559cbc});return _0x2b4efc[_0x4426c0(0x1d2)](_0x559cbc)[_0x4426c0(0x1d2)](_0x13a789);}[_0x40411c(0x239)](_0x388b4,_0x1ca741){const _0x11ecff=_0x40411c,{plugins:_0x3cb6dd}=this[_0x11ecff(0x1ea)],{model:_0x4b249e}=_0x388b4;if(!_0x3cb6dd[_0x11ecff(0x1e2)](_0x11ecff(0x1f2)))return;_0x3cb6dd[_0x11ecff(0x1e0)](_0x11ecff(0x1f2))[_0x11ecff(0x231)](_0x1ca741)[_0x11ecff(0x1f8)]&&_0x4b249e[_0x11ecff(0x234)](_0x1ca741);}}
|
|
23
|
+
const _0xfdbd69=_0x147a;function _0x147a(_0x5cb282,_0x542516){const _0x48c4b4=_0x48c4();return _0x147a=function(_0x147afe,_0x489c35){_0x147afe=_0x147afe-0x1b4;let _0x21d6ab=_0x48c4b4[_0x147afe];return _0x21d6ab;},_0x147a(_0x5cb282,_0x542516);}function _0x48c4(){const _0x31ad73=['element','markerRange','isContent','addMarker','change','get','has','1588238PWhDlM','getMarkersGroup','getRange','editing','first','getRanges','once','model','AIAssistantEditing','_createEmptyTableRows','getLastMatchingPosition','showFakeVisualSelection','schema','createSelection','from','pluginName','getColumnIndexes','_getAISelection','getSelectedBlocks','pop','createPositionAfter','5704664AILDna','data','9mFUysb','document','insertRows','conversion','1013072BxqveH','end','afterInit','fire','canEditAt','getRowIndexes','_pasteHTMLUsingClipboard','filter','resultRange','1089300CagyXt','createPositionAt','fromCharCode','removeMarker','config','updateMarker','DataTransfer','forEach','getSelectedTableCells','_prepareTableInsertBelowPosition','map','ai.useTheme','for','markers','text/html','getRows','deleteContent','span','last','start','markerToElement','isCollapsed','336287XskKxZ','createRange','ck-fake-ai-selection','getChildren','editingDowncast','getLastPosition','markerToHighlight','setSelection','ck-fake-ai-selection_collapsed','insertContent','TableUtils','isOfficialPlugin','_getDefaultInsertBelowPosition','_resetContentOfSelectedTableCells','length','lowest','hideFakeVisualSelection','editor','setData','table','off','findAncestor','48nVEjVT','getChild','contentInsertion','3020739adDSWx','_getTableRowCountFromContent','isPremiumPlugin','parse','paste','href','join','insertContentBelow','addClass','plugins','init','ck-ai-assistant-ui_theme','ai-ui','createUIElement','1967585iayLWO','isAtEnd','selection','push','getFirstRange'];_0x48c4=function(){return _0x31ad73;};return _0x48c4();}(function(_0x2d2d94,_0x594d08){const _0x178d2f=_0x147a,_0x3b4ea0=_0x2d2d94();while(!![]){try{const _0x3ba97d=parseInt(_0x178d2f(0x1f8))/0x1+-parseInt(_0x178d2f(0x1d4))/0x2+-parseInt(_0x178d2f(0x1ba))/0x3+parseInt(_0x178d2f(0x1e9))/0x4+-parseInt(_0x178d2f(0x1c8))/0x5+-parseInt(_0x178d2f(0x1b7))/0x6*(-parseInt(_0x178d2f(0x20e))/0x7)+-parseInt(_0x178d2f(0x1ef))/0x8*(-parseInt(_0x178d2f(0x1eb))/0x9);if(_0x3ba97d===_0x594d08)break;else _0x3b4ea0['push'](_0x3b4ea0['shift']());}catch(_0x4209c5){_0x3b4ea0['push'](_0x3b4ea0['shift']());}}}(_0x48c4,0xcb187));import{uid as _0x5ae1d3}from'ckeditor5/src/utils.js';import{Plugin as _0x3be89f}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0xfb1fbe}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x47e5db,ViewDataTransfer as _0x2cb96e}from'ckeditor5/src/engine.js';const l=globalThis[_0xfdbd69(0x1fe)],w=_0xfdbd69(0x1c6);export class AIAssistantEditing extends _0x3be89f{static get[_0xfdbd69(0x1e3)](){const _0x37d655=_0xfdbd69;return _0x37d655(0x1dc);}static get[_0xfdbd69(0x219)](){return!0x0;}static get[_0xfdbd69(0x1bc)](){return!0x0;}[_0xfdbd69(0x1c4)](){const _0x73867c=_0xfdbd69,{editor:_0x5401b2}=this,_0x16095c=[_0x73867c(0x210)];_0x5401b2[_0x73867c(0x1fc)][_0x73867c(0x1d2)](_0x73867c(0x203))&&_0x16095c[_0x73867c(0x1cb)](_0x73867c(0x1c5)),_0x5401b2[_0x73867c(0x1ee)][_0x73867c(0x204)](_0x73867c(0x212))[_0x73867c(0x214)]({'model':w,'view':{'classes':_0x16095c,'priority':0xc}}),_0x5401b2[_0x73867c(0x1ee)][_0x73867c(0x204)](_0x73867c(0x212))[_0x73867c(0x20c)]({'model':w,'view':(_0x9f32cf,{writer:_0xe7cf5})=>{const _0x1b1217=_0x73867c;if(!_0x9f32cf[_0x1b1217(0x1ce)][_0x1b1217(0x20d)])return null;const _0x2d5701=_0xe7cf5[_0x1b1217(0x1c7)](_0x1b1217(0x209));return _0xe7cf5[_0x1b1217(0x1c2)]([_0x1b1217(0x210),_0x1b1217(0x216)],_0x2d5701),_0x2d5701;}});}[_0xfdbd69(0x1f1)](){!async function(_0x2bd8d5){const _0x508761=_0x24ea9a([0x37,0x6d,0x77,0x76,0x4d,0x5a,0x4b,0x35,0x66,0x49,0x34,0x71,0x42,0x50,0x52,0x56,0x72,0x6b,0x36,0x6a,0x51,0x70,0x75,0x65,0x43,0x45,0x38,0x47,0x4a,0x59,0x41,0x68,0x63,0x62,0x79,0x67,0x74,0x4f,0x78,0x64,0x6e,0x46,0x30,0x39,0x54,0x57,0x73,0x53,0x55,0x6c,0x31,0x58,0x69,0x48,0x7a,0x33,0x4c,0x6f,0x44,0x32,0x4e,0x61]),_0x3dc99a=0x53da9e7b,_0x33afde=0x53ddf283^_0x3dc99a,_0x23272d=window[_0x24ea9a([0x44,0x61,0x74,0x65])][_0x24ea9a([0x6e,0x6f,0x77])](),_0x429e5f=_0x2bd8d5[_0x24ea9a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x155a5a=new window[(_0x24ea9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10ed09=>{_0x429e5f[_0x24ea9a([0x6f,0x6e,0x63,0x65])](_0x24ea9a([0x72,0x65,0x61,0x64,0x79]),_0x10ed09);}),_0x78f720={[_0x24ea9a([0x6b,0x74,0x79])]:_0x24ea9a([0x45,0x43]),[_0x24ea9a([0x75,0x73,0x65])]:_0x24ea9a([0x73,0x69,0x67]),[_0x24ea9a([0x63,0x72,0x76])]:_0x24ea9a([0x50,0x2d,0x32,0x35,0x36]),[_0x24ea9a([0x78])]:_0x24ea9a([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]),[_0x24ea9a([0x79])]:_0x24ea9a([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]),[_0x24ea9a([0x61,0x6c,0x67])]:_0x24ea9a([0x45,0x53,0x32,0x35,0x36])},_0x3bfeb2=_0x429e5f[_0x24ea9a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x24ea9a([0x67,0x65,0x74])](_0x24ea9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x46fce0(){let _0x1a2179,_0x1bbb63=null,_0x1f7c8d=null;try{if(_0x3bfeb2==_0x24ea9a([0x47,0x50,0x4c]))return _0x24ea9a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1a2179=_0x3c2952(),!_0x1a2179)return _0x24ea9a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1a2179[_0x24ea9a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f7c8d=_0x30facc(_0x1a2179[_0x24ea9a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1a2179[_0x24ea9a([0x6a,0x74,0x69])])),await _0x2a7791()?_0x49eef7()?_0x589707()?_0x24ea9a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5086ef()?(_0x1a2179[_0x24ea9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24ea9a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1bbb63=_0x4ade82(_0x24ea9a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1a2179[_0x24ea9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24ea9a([0x74,0x72,0x69,0x61,0x6c])&&(_0x1bbb63=_0x4ade82(_0x24ea9a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x161a15()):_0x24ea9a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x24ea9a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x24ea9a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x24ea9a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x589707(){const _0x1a7aa5=[_0x24ea9a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x24ea9a([0x74,0x72,0x69,0x61,0x6c])][_0x24ea9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a2179[_0x24ea9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x23272d/0x3e8:0xe10*_0x33afde;return _0x1a2179[_0x24ea9a([0x65,0x78,0x70])]<_0x1a7aa5;}function _0x49eef7(){const _0x485f26=_0x1a2179[_0x24ea9a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x485f26&&(!!_0x485f26[_0x24ea9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24ea9a([0x2a]))||!!_0x485f26[_0x24ea9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24ea9a([0x41,0x49])));}function _0x5086ef(){const _0x1c02d8=_0x147a,_0x45a384=_0x1a2179[_0x24ea9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x45a384||0x0==_0x45a384[_0x24ea9a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1a6e6a}=new URL(window[_0x24ea9a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x1c02d8(0x1bf)]);if(_0x45a384[_0x24ea9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a6e6a))return!0x0;const _0x4d346a=_0x1a6e6a[_0x24ea9a([0x73,0x70,0x6c,0x69,0x74])](_0x24ea9a([0x2e]));return _0x45a384[_0x24ea9a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x151421=>_0x151421[_0x24ea9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24ea9a([0x2a])))[_0x24ea9a([0x6d,0x61,0x70])](_0x241e71=>_0x241e71[_0x24ea9a([0x73,0x70,0x6c,0x69,0x74])](_0x24ea9a([0x2e])))[_0x24ea9a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d9fe1=>_0x3d9fe1[_0x24ea9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4d346a[_0x24ea9a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24ea9a([0x6d,0x61,0x70])](_0x307fc8=>Array(_0x4d346a[_0x24ea9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x307fc8[_0x24ea9a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x24ea9a([0x66,0x69,0x6c,0x6c])](_0x307fc8[0x0]===_0x24ea9a([0x2a])?_0x24ea9a([0x2a]):'')[_0x24ea9a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x307fc8))[_0x24ea9a([0x73,0x6f,0x6d,0x65])](_0x161b88=>_0x4d346a[_0x24ea9a([0x65,0x76,0x65,0x72,0x79])]((_0x54d3db,_0x2baea0)=>_0x161b88[_0x2baea0]===_0x54d3db||_0x161b88[_0x2baea0]===_0x24ea9a([0x2a])));}function _0x161a15(){return _0x1bbb63&&_0x1f7c8d?new window[(_0x24ea9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a56df,_0x1ff476)=>{_0x1bbb63[_0x24ea9a([0x74,0x68,0x65,0x6e])](_0x3a56df,_0x1ff476),_0x1f7c8d[_0x24ea9a([0x74,0x68,0x65,0x6e])](_0x4e02f6=>{_0x4e02f6!=_0x24ea9a([0x56,0x61,0x6c,0x69,0x64])&&_0x3a56df(_0x4e02f6);},_0x1ff476);}):_0x1bbb63||_0x1f7c8d||_0x24ea9a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x30facc(_0x3c7b98,_0x2cc5c8){return new window[(_0x24ea9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36bdff=>{if(_0x1abe66())return _0x36bdff(_0x24ea9a([0x56,0x61,0x6c,0x69,0x64]));_0x1ff192(),_0x429e5f[_0x24ea9a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x24ea9a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x22ae23=!0x1;const _0x24ede6=_0x5ae1d3();function _0x24c9af(_0x13da3a){return!!_0x13da3a&&(typeof _0x13da3a===_0x24ea9a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x13da3a===_0x24ea9a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x13da3a[_0x24ea9a([0x74,0x68,0x65,0x6e])]===_0x24ea9a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x13da3a[_0x24ea9a([0x63,0x61,0x74,0x63,0x68])]===_0x24ea9a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3f3d59(_0x228301){_0x2e2d0d(_0x228301)[_0x24ea9a([0x74,0x68,0x65,0x6e])](_0x3328a7=>{if(!_0x3328a7||_0x3328a7[_0x24ea9a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x24ea9a([0x6f,0x6b]))return _0x24ea9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5da8c5(_0x2cb45a(_0x24ede6+_0x2cc5c8))!=_0x3328a7[_0x24ea9a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x24ea9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x24ea9a([0x56,0x61,0x6c,0x69,0x64]);})[_0x24ea9a([0x74,0x68,0x65,0x6e])](_0x2296f4=>(_0x44c8d7(),_0x2296f4),()=>{const _0x10ebbb=_0x382089();return null==_0x10ebbb?(_0x44c8d7(),_0x24ea9a([0x56,0x61,0x6c,0x69,0x64])):_0x24ea9a(_0x23272d-_0x10ebbb>(0x77d61a7b^_0x3dc99a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x24ea9a([0x74,0x68,0x65,0x6e])](_0x36bdff)[_0x24ea9a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x36bdff(_0x24ea9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x335537=0x53ec70fb^_0x3dc99a;function _0x44c8d7(){const _0x531fee=_0x24ea9a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5da8c5(_0x2cb45a(_0x3c7b98)),_0xb802ba=_0x1a685e(_0x5da8c5(window[_0x24ea9a([0x4d,0x61,0x74,0x68])][_0x24ea9a([0x63,0x65,0x69,0x6c])](_0x23272d/_0x335537)));window[_0x24ea9a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24ea9a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x531fee,_0xb802ba);}function _0x382089(){const _0x1e4dab=_0x24ea9a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5da8c5(_0x2cb45a(_0x3c7b98)),_0x3a567f=window[_0x24ea9a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24ea9a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e4dab);return _0x3a567f?window[_0x24ea9a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a685e(_0x3a567f),0x10)*_0x335537:null;}function _0x2e2d0d(_0x5e48cf){return new window[(_0x24ea9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x24b642,_0x199ab6)=>{_0x5e48cf[_0x24ea9a([0x74,0x68,0x65,0x6e])](_0x24b642,_0x199ab6),window[_0x24ea9a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x199ab6,0x53db4abb^_0x3dc99a);});}}_0x429e5f[_0x24ea9a([0x6f,0x6e])](_0x24ea9a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x347171,_0x15a5f7)=>{if(_0x15a5f7[0x0]!=_0x3c7b98)return _0x36bdff(_0x24ea9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x15a5f7[0x1]={..._0x15a5f7[0x1],[_0x24ea9a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x24ede6};},{[_0x24ea9a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24ea9a([0x68,0x69,0x67,0x68])}),_0x429e5f[_0x24ea9a([0x6f,0x6e])](_0x24ea9a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3b8659=>{_0x24c9af(_0x3b8659[_0x24ea9a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x22ae23=!0x0,_0x3f3d59(_0x3b8659[_0x24ea9a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x24ea9a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24ea9a([0x6c,0x6f,0x77])}),_0x155a5a[_0x24ea9a([0x74,0x68,0x65,0x6e])](()=>{_0x22ae23||_0x36bdff(_0x24ea9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1abe66(){return _0x429e5f[_0x24ea9a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24ea9a([0x76,0x69,0x65,0x77])][_0x24ea9a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x24ea9a([0x61,0x75,0x74,0x6f]);}function _0x1ff192(){_0x429e5f[_0x24ea9a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24ea9a([0x76,0x69,0x65,0x77])][_0x24ea9a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24ea9a([0x61,0x75,0x74,0x6f]);}}function _0x4ade82(_0x566f0e){const _0x2b9380=[new window[(_0x24ea9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a1dc5=>setTimeout(_0x4a1dc5,0x53d3a0b7^_0x3dc99a)),_0x155a5a[_0x24ea9a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x24ea9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x362fda=>{let _0x3b7a6c=0x0;_0x429e5f[_0x24ea9a([0x6d,0x6f,0x64,0x65,0x6c])][_0x24ea9a([0x6f,0x6e])](_0x24ea9a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x383b52,_0x137d6f)=>{_0x137d6f[0x0][_0x24ea9a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3b7a6c++,_0x3b7a6c==(0x53da9f83^_0x3dc99a)&&(_0x362fda(),_0x383b52[_0x24ea9a([0x6f,0x66,0x66])]());});}))];return window[_0x24ea9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24ea9a([0x72,0x61,0x63,0x65])](_0x2b9380)[_0x24ea9a([0x74,0x68,0x65,0x6e])](()=>_0x566f0e);}async function _0x137dc7(){await _0x155a5a,_0x429e5f[_0x24ea9a([0x6d,0x6f,0x64,0x65,0x6c])][_0x24ea9a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x59026d,_0x429e5f[_0x24ea9a([0x6d,0x6f,0x64,0x65,0x6c])][_0x24ea9a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x59026d,_0x429e5f[_0x24ea9a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x24ea9a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x10f063(_0x5dce22){const _0x1a7209=_0x238fef();_0x429e5f[_0x1a7209]=_0x24ea9a([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5dce22,_0x5dce22!=_0x24ea9a([0x56,0x61,0x6c,0x69,0x64])&&_0x137dc7();}function _0x238fef(){const _0x552fee=window[_0x24ea9a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x24ea9a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x24ea9a([0x6e,0x6f,0x77])]())[_0x24ea9a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x24ea9a([0x2e]),'');let _0x1163fb=_0x24ea9a([0x6d]);for(let _0x3b49d1=0x0;_0x3b49d1<_0x552fee[_0x24ea9a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b49d1+=0x2){let _0x57c2de=window[_0x24ea9a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x552fee[_0x24ea9a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b49d1,_0x3b49d1+0x2));_0x57c2de>=_0x508761[_0x24ea9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x57c2de-=_0x508761[_0x24ea9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1163fb+=_0x508761[_0x57c2de];}return _0x1163fb;}function _0x3c2952(){const _0x5ae686=_0x3bfeb2[_0x24ea9a([0x73,0x70,0x6c,0x69,0x74])](_0x24ea9a([0x2e]));if(0x3!=_0x5ae686[_0x24ea9a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x14688e(_0x5ae686[0x1]);function _0x14688e(_0x29d874){const _0x2b41f8=_0x9857d(_0x29d874);return _0x2b41f8&&_0x4da58c()?_0x2b41f8:null;function _0x4da58c(){const _0x1f63d7=_0x2b41f8[_0x24ea9a([0x6a,0x74,0x69])],_0x4b809b=window[_0x24ea9a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f63d7[_0x24ea9a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f63d7[_0x24ea9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1324c6={..._0x2b41f8,[_0x24ea9a([0x6a,0x74,0x69])]:_0x1f63d7[_0x24ea9a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1f63d7[_0x24ea9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1324c6[_0x24ea9a([0x76,0x63])],_0x2cb45a(_0x1324c6)==_0x4b809b;}}}async function _0x2a7791(){let _0x516752=!0x0;try{const _0x4af981=_0x3bfeb2[_0x24ea9a([0x73,0x70,0x6c,0x69,0x74])](_0x24ea9a([0x2e])),[_0x5ef2e0,_0x3f8b33,_0x58d96f]=_0x4af981;return _0x464634(_0x5ef2e0),await _0x4a4c5b(_0x5ef2e0,_0x3f8b33,_0x58d96f),_0x516752;}catch{return!0x1;}function _0x464634(_0x8a0902){const _0x520761=_0x9857d(_0x8a0902);_0x520761&&_0x520761[_0x24ea9a([0x61,0x6c,0x67])]==_0x24ea9a([0x45,0x53,0x32,0x35,0x36])||(_0x516752=!0x1);}async function _0x4a4c5b(_0x1e77c6,_0x5761e0,_0x5226a4){const _0x34f90e=window[_0x24ea9a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x24ea9a([0x66,0x72,0x6f,0x6d])](_0x2fe0c2(_0x5226a4),_0x5b8895=>_0x5b8895[_0x24ea9a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x456c10=new window[(_0x24ea9a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x24ea9a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1e77c6+_0x24ea9a([0x2e])+_0x5761e0),_0x5970fd=window[_0x24ea9a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x24ea9a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5970fd)return;const _0xefce7d=await _0x5970fd[_0x24ea9a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x24ea9a([0x6a,0x77,0x6b]),_0x78f720,{[_0x24ea9a([0x6e,0x61,0x6d,0x65])]:_0x24ea9a([0x45,0x43,0x44,0x53,0x41]),[_0x24ea9a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x24ea9a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x24ea9a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5970fd[_0x24ea9a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x24ea9a([0x6e,0x61,0x6d,0x65])]:_0x24ea9a([0x45,0x43,0x44,0x53,0x41]),[_0x24ea9a([0x68,0x61,0x73,0x68])]:{[_0x24ea9a([0x6e,0x61,0x6d,0x65])]:_0x24ea9a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xefce7d,_0x34f90e,_0x456c10)||(_0x516752=!0x1);}}function _0x9857d(_0x169f41){return _0x169f41[_0x24ea9a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x24ea9a([0x65,0x79]))?JSON[_0x24ea9a([0x70,0x61,0x72,0x73,0x65])](_0x2fe0c2(_0x169f41)):null;}function _0x2fe0c2(_0x35b7d1){return window[_0x24ea9a([0x61,0x74,0x6f,0x62])](_0x35b7d1[_0x24ea9a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x24ea9a([0x2b]))[_0x24ea9a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x24ea9a([0x2f])));}function _0x2cb45a(_0x523ff8){let _0x49bc30=0x1505;function _0x36ead1(_0x3be824){for(let _0x4c882d=0x0;_0x4c882d<_0x3be824[_0x24ea9a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c882d++){const _0x2a9781=_0x3be824[_0x24ea9a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4c882d);_0x49bc30=(_0x49bc30<<0x5)+_0x49bc30+_0x2a9781,_0x49bc30&=_0x49bc30;}}function _0x4edcf5(_0x437c47){Array[_0x24ea9a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x437c47)?_0x437c47[_0x24ea9a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4edcf5):_0x437c47&&typeof _0x437c47==_0x24ea9a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x24ea9a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x437c47)[_0x24ea9a([0x73,0x6f,0x72,0x74])]()[_0x24ea9a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x6e4866,_0x1b093b])=>{_0x36ead1(_0x6e4866),_0x4edcf5(_0x1b093b);}):_0x36ead1(window[_0x24ea9a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x437c47));}return _0x4edcf5(_0x523ff8),_0x49bc30>>>0x0;}function _0x5da8c5(_0x4975e4){return _0x4975e4[_0x24ea9a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x24ea9a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x24ea9a([0x30]));}function _0x1a685e(_0x1824df){return _0x1824df[_0x24ea9a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x24ea9a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x24ea9a([0x6a,0x6f,0x69,0x6e])]('');}function _0x59026d(){}function _0x24ea9a(_0xbcc674){const _0x123fea=_0x147a;return _0xbcc674[_0x123fea(0x202)](_0x436d06=>String[_0x123fea(0x1fa)](_0x436d06))[_0x123fea(0x1c0)]('');}_0x10f063(await _0x46fce0());}(this);}[_0xfdbd69(0x1df)](){const _0x5021b5=_0xfdbd69,_0x1735ff=this[_0x5021b5(0x21f)][_0x5021b5(0x1db)];_0x1735ff[_0x5021b5(0x1d1)](_0x56eb2a=>{const _0x396454=_0x5021b5,_0x5030d3=_0x1735ff[_0x396454(0x1ec)][_0x396454(0x1ca)][_0x396454(0x1d9)]();let _0x1f56be=0x0;for(const _0x2d199a of _0x5030d3){const _0x38f9e4=w+':'+_0x1f56be;if(_0x1735ff[_0x396454(0x205)][_0x396454(0x1d3)](_0x38f9e4))_0x56eb2a[_0x396454(0x1fd)](_0x38f9e4,{'range':_0x2d199a});else{if(_0x2d199a[_0x396454(0x20b)][_0x396454(0x1c9)]){const _0x5591cb=_0x2d199a[_0x396454(0x20b)][_0x396454(0x1de)](({item:_0x36c060})=>!_0x1735ff[_0x396454(0x1e0)][_0x396454(0x1cf)](_0x36c060),{'boundaries':_0x2d199a});_0x56eb2a[_0x396454(0x1d0)](_0x38f9e4,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x56eb2a[_0x396454(0x20f)](_0x5591cb,_0x2d199a[_0x396454(0x1f0)])});}else _0x56eb2a[_0x396454(0x1d0)](_0x38f9e4,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x2d199a});}_0x1f56be++;}});}[_0xfdbd69(0x21e)](){const _0x5a4629=_0xfdbd69,_0xa37f16=this[_0x5a4629(0x21f)][_0x5a4629(0x1db)],_0x18f585=Array[_0x5a4629(0x1e2)](this[_0x5a4629(0x21f)][_0x5a4629(0x1db)][_0x5a4629(0x205)][_0x5a4629(0x1d5)](w));_0x18f585[_0x5a4629(0x21c)]&&_0xa37f16[_0x5a4629(0x1d1)](_0x5bdd04=>{const _0x408776=_0x5a4629;_0x18f585[_0x408776(0x1ff)](_0x59b139=>{const _0x5905ec=_0x408776;_0x5bdd04[_0x5905ec(0x1fb)](_0x59b139);});});}[_0xfdbd69(0x217)](_0x1a13c5,_0x4e8e80){const _0x4fbc98=_0xfdbd69,_0x2e0c09=this[_0x4fbc98(0x1e5)](),_0x38b2cb=_0x4e8e80||_0x2e0c09[_0x4fbc98(0x1cc)]();this[_0x4fbc98(0x21f)][_0x4fbc98(0x1db)][_0x4fbc98(0x1f3)](_0x38b2cb)&&this[_0x4fbc98(0x21f)][_0x4fbc98(0x1db)][_0x4fbc98(0x1d1)](_0x1248d1=>{const _0x100524=_0x4fbc98;this[_0x100524(0x21e)](),_0x4e8e80||this[_0x100524(0x21b)](_0x1248d1,_0x2e0c09),this[_0x100524(0x1f5)]({'insertAt':_0x38b2cb,'writer':_0x1248d1,'html':_0x1a13c5});});}[_0xfdbd69(0x1c1)](_0x4ab167){const _0x231668=_0xfdbd69,{model:_0x5c9302}=this[_0x231668(0x21f)],_0x1de003=this[_0x231668(0x1e5)]();_0x5c9302[_0x231668(0x1d1)](()=>{const _0x42e178=_0x231668,_0x4e1a74=this[_0x42e178(0x201)](_0x4ab167,_0x1de003)||this[_0x42e178(0x21a)](_0x1de003);this[_0x42e178(0x217)](_0x4ab167,_0x4e1a74);});}[_0xfdbd69(0x1e5)](){const _0xeb1232=_0xfdbd69,_0x545bf4=this[_0xeb1232(0x21f)][_0xeb1232(0x1db)],_0x1778bd=Array[_0xeb1232(0x1e2)](_0x545bf4[_0xeb1232(0x205)][_0xeb1232(0x1d5)](w))[_0xeb1232(0x202)](_0x4ffcd2=>_0x4ffcd2[_0xeb1232(0x1d6)]());return _0x545bf4[_0xeb1232(0x1e1)](_0x1778bd);}[_0xfdbd69(0x1f5)]({writer:_0x1d865a,html:_0x4236e8,insertAt:_0x4ed9e4}){const _0xccf337=_0xfdbd69,{view:_0x4cb4ed}=this[_0xccf337(0x21f)][_0xccf337(0x1d7)],_0x2d8f97=this[_0xccf337(0x21f)][_0xccf337(0x1c3)][_0xccf337(0x1d2)](_0xfb1fbe),_0x1b9ee6=new l();_0x1b9ee6[_0xccf337(0x220)](_0xccf337(0x206),_0x4236e8);const _0x561994=new ClipboardEvent(_0xccf337(0x1be),{'clipboardData':_0x1b9ee6}),_0x22b2f8=new _0x47e5db(_0x4cb4ed,_0x561994,{'dataTransfer':new _0x2cb96e(_0x1b9ee6)});_0x1d865a[_0xccf337(0x215)](_0x4ed9e4);const _0x2f4500=(_0x1571a4,_0x5eb72d)=>{const _0x5757cd=_0xccf337;_0x5eb72d[_0x5757cd(0x1f7)]&&_0x1d865a[_0x5757cd(0x215)](_0x5eb72d[_0x5757cd(0x1f7)]);};_0x2d8f97[_0xccf337(0x1da)](_0xccf337(0x1b9),_0x2f4500,{'priority':_0xccf337(0x21d)}),_0x4cb4ed[_0xccf337(0x1ec)][_0xccf337(0x1f2)](_0xccf337(0x1be),_0x22b2f8),_0x2d8f97[_0xccf337(0x1b5)](_0xccf337(0x1b9),_0x2f4500);}[_0xfdbd69(0x21a)](_0x2c4a32){const _0x1714fa=_0xfdbd69,{model:_0x116aa9}=this[_0x1714fa(0x21f)],_0x229e0a=Array[_0x1714fa(0x1e2)](_0x2c4a32[_0x1714fa(0x1e6)]());return _0x229e0a[_0x1714fa(0x21c)]?_0x116aa9[_0x1714fa(0x1e8)](_0x229e0a[_0x1714fa(0x1e7)]()):_0x2c4a32[_0x1714fa(0x213)]();}[_0xfdbd69(0x201)](_0x5aa87d,_0x3aca4c){const _0x685fb9=_0xfdbd69,{model:_0x301073,plugins:_0x3f6ecb}=this[_0x685fb9(0x21f)];if(_0x3f6ecb[_0x685fb9(0x1d3)](_0x685fb9(0x218))){const _0x409005=_0x3f6ecb[_0x685fb9(0x1d2)](_0x685fb9(0x218))[_0x685fb9(0x200)](_0x3aca4c);if(_0x409005[_0x685fb9(0x21c)]){const _0x3276ec=this[_0x685fb9(0x1bb)](_0x5aa87d),_0x1b3ecd=this[_0x685fb9(0x1dd)](_0x409005,_0x3276ec);return _0x301073[_0x685fb9(0x1f9)](_0x1b3ecd,0x0);}}return null;}[_0xfdbd69(0x1bb)](_0x5b8ebd){const _0x1dc89f=_0xfdbd69,_0x48f5c3=this[_0x1dc89f(0x21f)][_0x1dc89f(0x1c3)][_0x1dc89f(0x1d2)](_0x1dc89f(0x218)),_0x23016a=this[_0x1dc89f(0x21f)][_0x1dc89f(0x1ea)][_0x1dc89f(0x1bd)](_0x5b8ebd),_0x15a4f7=Array[_0x1dc89f(0x1e2)](_0x23016a[_0x1dc89f(0x211)]())[_0x1dc89f(0x1f6)](_0x5e7865=>_0x5e7865['is'](_0x1dc89f(0x1cd),_0x1dc89f(0x1b4)));let _0x1e36bc=0x0;return _0x15a4f7[_0x1dc89f(0x1ff)](_0x2696df=>{const _0x394649=_0x1dc89f;_0x1e36bc+=_0x48f5c3[_0x394649(0x207)](_0x2696df);}),_0x1e36bc;}[_0xfdbd69(0x1dd)](_0x2fae90,_0x478413){const _0xeeda79=_0xfdbd69,_0x1df46d=this[_0xeeda79(0x21f)][_0xeeda79(0x1c3)][_0xeeda79(0x1d2)](_0xeeda79(0x218)),_0x2acf30=_0x1df46d[_0xeeda79(0x1f4)](_0x2fae90),_0x54ffa8=_0x1df46d[_0xeeda79(0x1e4)](_0x2fae90),_0x446902=_0x2acf30[_0xeeda79(0x20a)]+0x1,_0x4e8a10=_0x54ffa8[_0xeeda79(0x1d8)],_0x54a9d5=_0x2fae90[0x0][_0xeeda79(0x1b6)](_0xeeda79(0x1b4));for(let _0x150699=0x0;_0x150699<_0x478413;_0x150699++)_0x1df46d[_0xeeda79(0x1ed)](_0x54a9d5,{'at':_0x446902});return _0x54a9d5[_0xeeda79(0x1b8)](_0x446902)[_0xeeda79(0x1b8)](_0x4e8a10);}[_0xfdbd69(0x21b)](_0x2ab723,_0x2e4975){const _0xccf58c=_0xfdbd69,{plugins:_0x49811d}=this[_0xccf58c(0x21f)],{model:_0x35c332}=_0x2ab723;if(!_0x49811d[_0xccf58c(0x1d3)](_0xccf58c(0x218)))return;_0x49811d[_0xccf58c(0x1d2)](_0xccf58c(0x218))[_0xccf58c(0x200)](_0x2e4975)[_0xccf58c(0x21c)]&&_0x35c332[_0xccf58c(0x208)](_0x2e4975);}}
|
package/src/aiassistantui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x266a20=_0x4b97;(function(_0x1cd6e1,_0x17bcff){const _0x5db235=_0x4b97,_0x1f06bd=_0x1cd6e1();while(!![]){try{const _0x462c3e=-parseInt(_0x5db235(0xe7))/0x1*(parseInt(_0x5db235(0x145))/0x2)+-parseInt(_0x5db235(0x176))/0x3*(parseInt(_0x5db235(0x122))/0x4)+parseInt(_0x5db235(0x149))/0x5*(-parseInt(_0x5db235(0x174))/0x6)+-parseInt(_0x5db235(0x164))/0x7*(parseInt(_0x5db235(0x107))/0x8)+parseInt(_0x5db235(0x17d))/0x9+parseInt(_0x5db235(0x11a))/0xa+-parseInt(_0x5db235(0x190))/0xb*(-parseInt(_0x5db235(0x103))/0xc);if(_0x462c3e===_0x17bcff)break;else _0x1f06bd['push'](_0x1f06bd['shift']());}catch(_0x371d17){_0x1f06bd['push'](_0x1f06bd['shift']());}}}(_0x54b4,0x63161));import{Plugin as _0x43b6c0}from'ckeditor5/src/core.js';import{IconMagicWand as _0x421ad6,IconRobotPencil as _0x23ef52}from'ckeditor5/src/icons.js';import{first as _0x4ddfcc,CKEditorError as _0x1ae989}from'ckeditor5/src/utils.js';import{createDropdown as _0x5b45f9,addMenuToDropdown as _0x29cad2,ButtonView as _0x5b8214,MenuBarMenuListItemButtonView as _0x242d56,Dialog as _0x2bc4b1,DialogViewPosition as _0x36fb51,MenuBarMenuView as _0x1fe446,MenuBarMenuListView as _0x1b3f28,MenuBarMenuListItemView as _0x4f156d}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x395120,UNGROUPED_COMMANDS_GROUP_ID as _0x57e837}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0xf76449}from'./aiassistantediting.js';import{AIAdapter as _0x5470e8}from'./adapters/aiadapter.js';import{getTranslation as _0x583892}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x58b1c8}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x229ae9}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x4650f6}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x2544b7}from'./ui/form/aiformtoolbarview.js';import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';const l=globalThis[_0x266a20(0x13f)];import{ClipboardMarkersUtils as _0x776808}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x544603,ViewDataTransfer as _0x3da591}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x43b6c0{[_0x266a20(0xfa)];[_0x266a20(0x134)];[_0x266a20(0xfe)];[_0x266a20(0x143)];[_0x266a20(0x15a)];[_0x266a20(0x156)];[_0x266a20(0x17e)]='';static get[_0x266a20(0x126)](){const _0x36971b=_0x266a20;return _0x36971b(0xf1);}static get[_0x266a20(0x17a)](){return!0x0;}static get[_0x266a20(0x110)](){return!0x0;}static get[_0x266a20(0x13d)](){return[_0x776808,_0xf76449,_0x5470e8,_0x2bc4b1];}constructor(_0x49802a){const _0x346b53=_0x266a20;super(_0x49802a),_0x49802a[_0x346b53(0x169)][_0x346b53(0x17f)](_0x346b53(0x12d),[_0x346b53(0xed),_0x346b53(0x192),_0x346b53(0x155)]),_0x49802a[_0x346b53(0x169)][_0x346b53(0x17f)](_0x346b53(0x113),''),_0x49802a[_0x346b53(0x169)][_0x346b53(0x17f)](_0x346b53(0x196),!0x0),this[_0x346b53(0x17e)]=_0x346b53(0x184)+(_0x49802a[_0x346b53(0x169)][_0x346b53(0x141)](_0x346b53(0x196))?_0x346b53(0x12e):'');}[_0x266a20(0x150)](){const _0x2fec98=_0x266a20,{editor:_0x2e12c4}=this;this[_0x2fec98(0x15a)]=_0x2e12c4[_0x2fec98(0x117)][_0x2fec98(0x141)](_0x5470e8),this[_0x2fec98(0xfe)]=_0x2e12c4[_0x2fec98(0x117)][_0x2fec98(0x141)](_0x2bc4b1),this[_0x2fec98(0x143)]=null,this[_0x2fec98(0x197)]=this[_0x2fec98(0x124)]();const _0x4a71a8=new _0x58b1c8(_0x2e12c4,Array[_0x2fec98(0x142)](this[_0x2fec98(0x197)][_0x2fec98(0x177)]()));_0x2e12c4[_0x2fec98(0xea)][_0x2fec98(0x191)](_0x2fec98(0x18f),_0x4a71a8),_0x2e12c4['ui'][_0x2fec98(0x173)][_0x2fec98(0x191)](_0x2fec98(0x12c),_0x4cbdfb=>{const _0x4c883e=_0x2fec98,_0x119810=_0x5b45f9(_0x4cbdfb);return _0x119810[_0x4c883e(0x157)]({'class':_0x4c883e(0x18a)+this[_0x4c883e(0x17e)]}),_0x119810[_0x4c883e(0x18e)][_0x4c883e(0x157)]({'label':_0x583892(_0x4cbdfb,_0x4c883e(0x131)),'icon':_0x421ad6,'tooltip':!0x0}),_0x119810['on'](_0x4c883e(0x101),_0x36dadf=>this[_0x4c883e(0x14a)](_0x36dadf[_0x4c883e(0x178)]['id'])),_0x29cad2(_0x119810,_0x2e12c4['ui'][_0x4c883e(0x16b)][_0x4c883e(0x129)],function(_0x48c419){const _0x156151=_0x4c883e,_0x5cff8d=_0x395120(_0x48c419[_0x156151(0x169)][_0x156151(0x141)](_0x156151(0x137)),_0x48c419[_0x156151(0xf4)]),_0x4e4fce=U(_0x48c419,_0x5cff8d)[_0x156151(0x14b)](_0x1862d6=>_0x1862d6[_0x156151(0xea)][_0x156151(0x100)]);if(0x1===_0x4e4fce[_0x156151(0x100)])return U(_0x48c419,_0x4e4fce[0x0][_0x156151(0xea)])[_0x156151(0x179)](_0x4f485c=>({'id':_0x4f485c['id'],'label':_0x4f485c[_0x156151(0x18b)]}));return _0x4e4fce[_0x156151(0x179)](_0x368d92=>{const _0x4d9506=_0x156151,{groupId:_0x1630d3,groupLabel:_0x3c193f,commands:_0x28a88e}=_0x368d92,_0x5f42f2=U(_0x48c419,_0x28a88e)[_0x4d9506(0x179)](_0x564c89=>({'id':_0x564c89['id'],'label':_0x564c89[_0x4d9506(0x18b)]}));return{'id':_0x1630d3,'menu':_0x3c193f||_0x1630d3,'children':_0x5f42f2};});}(_0x2e12c4),{'ariaLabel':_0x583892(_0x4cbdfb,_0x4c883e(0x131))}),_0x119810[_0x4c883e(0x17c)][_0x4c883e(0x144)]=_0x4c883e(0x18a)+this[_0x4c883e(0x17e)],_0x4a71a8['on'](_0x4c883e(0x166),_0x7e9c9c),_0x119810[_0x4c883e(0x17c)][_0x4c883e(0x14d)](_0x4c883e(0x182),_0x7e9c9c),_0x119810;function _0x7e9c9c(){const _0x5a5f8c=_0x4c883e;_0x119810[_0x5a5f8c(0x175)]=_0x4a71a8[_0x5a5f8c(0x16f)][_0x5a5f8c(0x100)]>0x0;for(const _0x2569c7 of _0x119810[_0x5a5f8c(0x17c)][_0x5a5f8c(0x119)])_0x2569c7[_0x5a5f8c(0x175)]=_0x4a71a8[_0x5a5f8c(0x16f)][_0x5a5f8c(0xf8)](_0x2569c7['id']);}}),_0x2e12c4['ui'][_0x2fec98(0x173)][_0x2fec98(0x191)](_0x2fec98(0x132),_0x398ef8=>{const _0x363d80=_0x2fec98,_0x3e2266=new _0x1fe446(_0x398ef8);_0x3e2266[_0x363d80(0x18e)][_0x363d80(0x157)]({'label':_0x583892(_0x398ef8,_0x363d80(0x131)),'icon':_0x421ad6}),_0x3e2266[_0x363d80(0x111)](_0x363d80(0x175))['to'](_0x4a71a8,_0x363d80(0x16f),_0x5f17db=>_0x5f17db[_0x363d80(0x100)]>0x0);const _0x116607=_0x395120(_0x2e12c4[_0x363d80(0x169)][_0x363d80(0x141)](_0x363d80(0x137)),_0x398ef8);return this[_0x363d80(0x151)](_0x4a71a8,_0x3e2266,_0x116607,_0x29c2d2=>this[_0x363d80(0x14a)](_0x29c2d2)),_0x3e2266;}),_0x2e12c4['ui'][_0x2fec98(0x173)][_0x2fec98(0x191)](_0x2fec98(0xf6),()=>{const _0x5038c8=_0x2fec98,_0x5aa3e4=this[_0x5038c8(0x146)](_0x5b8214);return _0x5aa3e4[_0x5038c8(0x157)]({'tooltip':!0x0,'class':_0x5038c8(0x136)+this[_0x5038c8(0x17e)]}),_0x5aa3e4;}),_0x2e12c4['ui'][_0x2fec98(0x173)][_0x2fec98(0x191)](_0x2fec98(0x139),()=>{const _0x44f70=_0x2fec98,_0x17e376=this[_0x44f70(0x146)](_0x242d56);return _0x17e376[_0x44f70(0x157)]({'role':_0x44f70(0x15e)}),_0x17e376;}),this[_0x2fec98(0xfa)]=this[_0x2fec98(0x121)][_0x2fec98(0x169)][_0x2fec98(0x141)](_0x2fec98(0xfa));const _0x14deac=this[_0x2fec98(0x121)];this[_0x2fec98(0x134)]=setInterval(()=>{const _0x46288c=_0x2fec98;let _0x2c1256;for(const _0x247ef6 in _0x14deac){const _0xc6cc40=_0x247ef6,_0x492494=_0x14deac[_0xc6cc40];if(_0x46288c(0x12a)==_0x492494||_0x46288c(0x11b)==_0x492494||_0x46288c(0x15f)==_0x492494||_0x46288c(0x11d)==_0x492494||_0x46288c(0x115)==_0x492494||_0x46288c(0x189)==_0x492494||_0x46288c(0x15c)==_0x492494||_0x46288c(0x140)==_0x492494){delete _0x14deac[_0xc6cc40],_0x2c1256=_0x492494,clearInterval(this[_0x46288c(0x134)]),this[_0x46288c(0x134)]=void 0x0;break;}}_0x46288c(0x11b)==_0x2c1256&&_0x14deac[_0x46288c(0x125)](_0x46288c(0x12b)),_0x46288c(0x15f)==_0x2c1256&&_0x14deac[_0x46288c(0x125)](_0x46288c(0x112)),_0x46288c(0x11d)==_0x2c1256&&_0x14deac[_0x46288c(0x125)](_0x46288c(0x106)),_0x46288c(0x115)==_0x2c1256&&_0x14deac[_0x46288c(0x125)](_0x46288c(0x138),_0x46288c(0x162)),_0x46288c(0x189)==_0x2c1256&&_0x14deac[_0x46288c(0x125)](_0x46288c(0x18c)),_0x46288c(0x15c)==_0x2c1256&&_0x14deac[_0x46288c(0x125)](_0x46288c(0x186)),_0x46288c(0x140)==_0x2c1256&&_0x14deac[_0x46288c(0x125)](_0x46288c(0x194));},0x3e8);}[_0x266a20(0x13a)](){const _0x15ea8f=_0x266a20;super[_0x15ea8f(0x13a)](),this[_0x15ea8f(0x134)]&&clearInterval(this[_0x15ea8f(0x134)]);}[_0x266a20(0xf5)](_0x2e1a5c='',_0x4b1ba9='',_0x52c974=_0x266a20(0x133)){const _0x5ce98f=_0x266a20,_0x26daa5=this[_0x5ce98f(0x121)],_0x5f4d83=_0x26daa5[_0x5ce98f(0x11c)][_0x5ce98f(0x16b)],_0x386569=_0x26daa5[_0x5ce98f(0x117)][_0x5ce98f(0x141)](_0xf76449),_0x1794ea=_0x26daa5[_0x5ce98f(0x117)][_0x5ce98f(0x141)](_0x776808);_0x386569[_0x5ce98f(0x10e)]();const _0x2c9103=new l(),_0x51ea40=new ClipboardEvent(_0x5ce98f(0x17b),{'clipboardData':_0x2c9103}),_0x28a99c=new _0x3da591(_0x2c9103),_0x1244f1=new _0x544603(_0x5f4d83,_0x51ea40,{'dataTransfer':_0x28a99c});_0x1794ea[_0x5ce98f(0x11f)](_0x5ce98f(0x130),()=>{const _0x2f7c7b=_0x5ce98f;_0x5f4d83[_0x2f7c7b(0x102)][_0x2f7c7b(0x193)](_0x2f7c7b(0x17b),_0x1244f1);}),this[_0x5ce98f(0x143)]||(this[_0x5ce98f(0xeb)](),this[_0x5ce98f(0x156)]=new _0x229ae9(_0x26daa5,this[_0x5ce98f(0x15a)][_0x5ce98f(0x15d)],this[_0x5ce98f(0x143)]));let _0x4758ef=_0x28a99c[_0x5ce98f(0x195)](_0x5ce98f(0x180));const _0x1fd6ee=_0x26daa5[_0x5ce98f(0x128)][_0x5ce98f(0x102)][_0x5ce98f(0x123)],_0x2f7119=Array[_0x5ce98f(0x142)](_0x1fd6ee[_0x5ce98f(0x185)]());0x1===_0x2f7119[_0x5ce98f(0x100)]&&_0x2f7119[0x0][_0x5ce98f(0x181)]&&!_0x1fd6ee[_0x5ce98f(0x159)]()&&''!==_0x4758ef[_0x5ce98f(0x10c)](/ /g,'')[_0x5ce98f(0x16a)]()&&(_0x4758ef=_0x5ce98f(0x165)+_0x4758ef+_0x5ce98f(0xef)),this[_0x5ce98f(0x156)][_0x5ce98f(0x16d)]({'actionId':_0x52c974,'query':_0x2e1a5c,'htmlContent':_0x4758ef,'label':_0x4b1ba9,'mainActionLabel':_0x2544b7[_0x26daa5[_0x5ce98f(0x128)][_0x5ce98f(0x102)][_0x5ce98f(0x123)][_0x5ce98f(0x11e)]?_0x5ce98f(0x120):_0x5ce98f(0xe8)]}),_0x5ce98f(0xf6)!==this[_0x5ce98f(0xfe)]['id']?this[_0x5ce98f(0xfe)][_0x5ce98f(0x14f)]({'id':_0x5ce98f(0xf6),'icon':_0x23ef52,'title':_0x583892(this[_0x5ce98f(0x121)][_0x5ce98f(0xf4)],_0x5ce98f(0x13c)),'content':this[_0x5ce98f(0x143)],'position':_0x36fb51[_0x5ce98f(0x170)],'onShow':()=>{const _0x300bc7=_0x5ce98f;this[_0x300bc7(0x143)][_0x300bc7(0x10d)]();},'onHide':()=>{const _0xcbc19d=_0x5ce98f;this[_0xcbc19d(0x156)][_0xcbc19d(0x160)](),_0x386569[_0xcbc19d(0xf0)]();}}):this[_0x5ce98f(0xfe)][_0x5ce98f(0x16b)][_0x5ce98f(0xe9)]||this[_0x5ce98f(0xfe)][_0x5ce98f(0x16b)][_0x5ce98f(0x127)]();}[_0x266a20(0x167)](){const _0x23af27=_0x266a20;this[_0x23af27(0xfe)][_0x23af27(0x171)]();}[_0x266a20(0x124)](){const _0x398d3a=_0x266a20,_0x3035f1=new Map(),_0x3cad25=_0x395120(this[_0x398d3a(0x121)][_0x398d3a(0x169)][_0x398d3a(0x141)](_0x398d3a(0x137)),this[_0x398d3a(0x121)][_0x398d3a(0xf4)]);for(const _0x5b95ce of _0x3cad25)for(const _0x3c2deb of _0x5b95ce[_0x398d3a(0xea)])_0x3035f1[_0x398d3a(0x157)](_0x3c2deb['id'],{..._0x3c2deb,'groupId':_0x5b95ce[_0x398d3a(0x13b)],'groupLabel':_0x5b95ce[_0x398d3a(0x153)]||_0x5b95ce[_0x398d3a(0x13b)]});return _0x3035f1;}[_0x266a20(0x146)](_0x464aa9){const _0x177fa8=_0x266a20,_0x2cceab=this[_0x177fa8(0x121)],_0x2e2cb8=_0x2cceab[_0x177fa8(0xea)][_0x177fa8(0x141)](_0x177fa8(0x18f)),_0x42ab63=new _0x464aa9(_0x2cceab[_0x177fa8(0xf4)]);return _0x42ab63[_0x177fa8(0x157)]({'label':_0x583892(_0x2cceab[_0x177fa8(0xf4)],_0x177fa8(0x13c)),'icon':_0x23ef52,'isToggleable':!0x0}),_0x42ab63[_0x177fa8(0x111)](_0x177fa8(0x175))['to'](_0x2e2cb8),_0x42ab63[_0x177fa8(0x111)](_0x177fa8(0x147))['to'](this[_0x177fa8(0xfe)],'id',_0x21176a=>_0x177fa8(0xf6)===_0x21176a),this[_0x177fa8(0x118)](_0x42ab63,_0x177fa8(0x101),()=>{const _0x5ca495=_0x177fa8;_0x42ab63[_0x5ca495(0x147)]?this[_0x5ca495(0x167)]():_0x2e2cb8[_0x5ca495(0x101)]();}),_0x42ab63;}[_0x266a20(0xeb)](){const _0x126e66=_0x266a20,_0x24ef09=this[_0x126e66(0x121)][_0x126e66(0x117)][_0x126e66(0x141)](_0xf76449);this[_0x126e66(0x143)]=new _0x4650f6(this[_0x126e66(0x121)][_0x126e66(0xf4)],this[_0x126e66(0x17e)],this[_0x126e66(0x121)][_0x126e66(0x169)][_0x126e66(0x141)](_0x126e66(0x113))),this[_0x126e66(0x143)]['on'](_0x126e66(0x109),()=>{const _0x295500=_0x126e66;this[_0x295500(0xfe)][_0x295500(0x16b)][_0x295500(0xe9)]||this[_0x295500(0xfe)][_0x295500(0x16b)][_0x295500(0x127)]();}),this[_0x126e66(0x143)][_0x126e66(0x18d)][_0x126e66(0x183)][_0x126e66(0x13e)]['on'](_0x126e66(0x105),()=>{const _0x4560d6=_0x126e66;this[_0x4560d6(0xfe)][_0x4560d6(0x16b)][_0x4560d6(0xe9)]||this[_0x4560d6(0xfe)][_0x4560d6(0x16b)][_0x4560d6(0x127)]();}),this[_0x126e66(0x118)](this[_0x126e66(0x143)],_0x126e66(0x187),()=>{const _0xb2d860=_0x126e66;_0x24ef09[_0xb2d860(0x158)](this[_0xb2d860(0x156)][_0xb2d860(0x114)]),this[_0xb2d860(0x167)]();}),this[_0x126e66(0x118)](this[_0x126e66(0x143)],_0x126e66(0x10f),()=>{const _0x53f8c9=_0x126e66;_0x24ef09[_0x53f8c9(0x10f)](this[_0x53f8c9(0x156)][_0x53f8c9(0x114)]),this[_0x53f8c9(0x167)]();}),this[_0x126e66(0xee)]();}[_0x266a20(0xee)](){const _0x525ba3=_0x266a20,{locale:_0x13fad9,ui:{ariaLiveAnnouncer:_0x29c5e6}}=this[_0x525ba3(0x121)];this[_0x525ba3(0x143)][_0x525ba3(0xf7)]['on'](_0x525ba3(0x15b),(_0x4b874d,_0x15b5e5,_0x163d58)=>{const _0x26fcaf=_0x525ba3,_0xb7a54=this[_0x26fcaf(0x156)][_0x26fcaf(0x114)];_0x163d58?_0x29c5e6[_0x26fcaf(0x188)](_0x583892(_0x13fad9,_0x26fcaf(0xfb))):_0xb7a54&&_0x29c5e6[_0x26fcaf(0x188)](_0x583892(_0x13fad9,_0x26fcaf(0x12f),_0xb7a54),{'politeness':_0x26fcaf(0xfc),'isUnsafeHTML':!0x0});}),this[_0x525ba3(0x143)]['on'](_0x525ba3(0xf3),(_0x22eeef,_0xf0e35c,_0x6e680e)=>{const _0x292949=_0x525ba3;if(_0x6e680e){const _0x331e67=this[_0x292949(0x143)][_0x292949(0x116)][_0x292949(0x104)];_0x29c5e6[_0x292949(0x188)](_0x583892(_0x13fad9,_0x292949(0x135),_0x331e67));}});}[_0x266a20(0x14a)](_0xe456a1){const _0x11a37c=_0x266a20,_0x398c10=this[_0x11a37c(0x197)][_0x11a37c(0x141)](_0xe456a1),_0x3f3a7d=this[_0x11a37c(0x121)],_0x4b3f46=_0x3f3a7d[_0x11a37c(0x128)][_0x11a37c(0x102)][_0x11a37c(0x123)],_0x1b9af0=_0x3f3a7d[_0x11a37c(0xea)][_0x11a37c(0x141)](_0x11a37c(0x18f)),_0x4cc583=_0x3f3a7d[_0x11a37c(0x117)][_0x11a37c(0x141)](_0xf76449),_0x2de86d=''+(_0x398c10[_0x11a37c(0x13b)]!==_0x57e837?_0x398c10[_0x11a37c(0x153)]+':\x20':'')+_0x398c10[_0x11a37c(0x18b)];if(!0x1!==_0x398c10[_0x11a37c(0xfd)]&&_0x4b3f46[_0x11a37c(0x11e)]){const _0x572717=_0x4ddfcc(_0x4b3f46[_0x11a37c(0x148)]())||_0x3f3a7d[_0x11a37c(0x128)][_0x11a37c(0x16c)][_0x11a37c(0x163)](_0x4b3f46);_0x3f3a7d[_0x11a37c(0x128)][_0x11a37c(0x172)](_0x3b1e60=>{const _0x177fac=_0x11a37c;_0x3b1e60[_0x177fac(0xff)](_0x572717,'in');});}_0x4cc583[_0x11a37c(0x10e)](),_0x1b9af0[_0x11a37c(0x101)](_0x398c10[_0x11a37c(0x152)],_0x2de86d,_0x11a37c(0x14e)+_0xe456a1);}[_0x266a20(0x151)](_0x9c4891,_0x44de34,_0xca7cc9,_0x55c21e){const _0x475501=_0x266a20,_0x4308ba=this[_0x475501(0x121)],_0x4ce11c=_0x4308ba[_0x475501(0xf4)],_0x53fc03=new _0x1b3f28(_0x4ce11c),_0x5ab1d1=U(_0x4308ba,_0xca7cc9)[_0x475501(0x14b)](_0x2543fe=>_0x2543fe[_0x475501(0xea)][_0x475501(0x100)]);0x1===_0x5ab1d1[_0x475501(0x100)]?this[_0x475501(0x108)]({'command':_0x9c4891,'commands':_0x5ab1d1[0x0][_0x475501(0xea)],'parentMenuView':_0x44de34,'onExecute':_0x55c21e})[_0x475501(0x154)](_0x5d36c7=>_0x53fc03[_0x475501(0xf2)][_0x475501(0x191)](_0x5d36c7)):_0x5ab1d1[_0x475501(0x154)](({groupId:_0x10d4a0,groupLabel:_0x4183fc,commands:_0xa754c4})=>{const _0x21c031=_0x475501,_0x51f078=new _0x4f156d(_0x4ce11c,_0x44de34),_0x568a4a=new _0x1fe446(_0x4ce11c),_0x252d16=new _0x1b3f28(_0x4ce11c),_0x56404e=this[_0x21c031(0x108)]({'command':_0x9c4891,'commands':_0xa754c4,'parentMenuView':_0x568a4a,'onExecute':_0x55c21e});_0x568a4a[_0x21c031(0x18e)][_0x21c031(0x157)]({'label':_0x4183fc||_0x10d4a0}),_0x568a4a[_0x21c031(0x16e)](_0x21c031(0x101))['to'](_0x44de34),_0x252d16[_0x21c031(0xf2)][_0x21c031(0x161)](_0x56404e),_0x568a4a[_0x21c031(0x168)][_0x21c031(0x198)][_0x21c031(0x191)](_0x252d16),_0x51f078[_0x21c031(0x198)][_0x21c031(0x191)](_0x568a4a),_0x53fc03[_0x21c031(0xf2)][_0x21c031(0x191)](_0x51f078);}),_0x44de34[_0x475501(0x168)][_0x475501(0x198)][_0x475501(0x191)](_0x53fc03);}[_0x266a20(0x108)]({command:_0x153044,commands:_0x3a4479,parentMenuView:_0x1d290f,onExecute:_0x2ed2d2}){const _0x1aebbb=_0x266a20,_0x10aabc=this[_0x1aebbb(0x121)],_0x222bdf=_0x10aabc[_0x1aebbb(0xf4)];return U(_0x10aabc,_0x3a4479)[_0x1aebbb(0x179)](_0x2afc1c=>{const _0x3ee08a=_0x1aebbb,_0x10a88b=new _0x4f156d(_0x222bdf,_0x1d290f),_0x251982=new _0x242d56(_0x222bdf);return _0x251982[_0x3ee08a(0x157)]({'label':_0x2afc1c[_0x3ee08a(0x18b)]}),_0x251982[_0x3ee08a(0x16e)](_0x3ee08a(0x101))['to'](_0x1d290f),_0x251982['on'](_0x3ee08a(0x101),()=>_0x2ed2d2(_0x2afc1c['id'])),_0x251982[_0x3ee08a(0x111)](_0x3ee08a(0x175))['to'](_0x153044,_0x3ee08a(0x16f),_0x1f8ad2=>_0x1f8ad2[_0x3ee08a(0xf8)](_0x2afc1c['id'])),_0x10a88b[_0x3ee08a(0x198)][_0x3ee08a(0x191)](_0x251982),_0x10a88b;});}}function _0x54b4(){const _0x564d41=['aiLicenseKeyNotAllowed','errorView','plugins','listenTo','buttons','2147640PLYdaO','aiLicenseKeyInvalid','editing','aiLicenseKeyDomainLimit','isCollapsed','_forceMarkersCopy','INSERT','editor','144588tgkfbc','selection','_getResolvedCommandsDefinitions','_showLicenseError','pluginName','updatePosition','model','body','aiLicenseKeyValid','invalid','aiCommands','ai.aiAssistant.disabledElements','\x20ck-ai-assistant-ui_theme','Generated\x20content:\x20%0','comment','AI\x20Commands','menuBar:aiCommands','custom','_licenseKeyCheckInterval','Error\x20during\x20AI\x20content\x20generation:\x20%0','ck-ai-assistant-button\x20','ai.aiAssistant.commands','featureNotAllowed','menuBar:aiAssistant','destroy','groupId','AI\x20Assistant','requires','fieldView','DataTransfer','aiLicenseKeyUsageLimit','get','from','_formView','menuPanelClass','35992LnUPgM','_createAIAssistantUIButton','isOn','getSelectedBlocks','195MeaLlw','_onExecute','filter','ai-commands-config-order-collision','once','command:','show','init','_populateMenuBarMenu','prompt','groupLabel','forEach','tableOfContents','_aiAssistantController','set','insertContent','getSelectedElement','_aiAdapter','change:isProcessing','aiLicenseKeyTrialLimit','textAdapter','menuitemcheckbox','aiLicenseKeyExpired','reset','addMany','AIAssistant','getLimitElement','7IzVQQv','<p>','change:enabledCommandsIds','hideUI','panelView','config','trim','view','schema','updateView','delegate','enabledCommandsIds','EDITOR_TOP_SIDE','hide','change','componentFactory','8058SBDhpg','isEnabled','60libVqH','values','source','map','isOfficialPlugin','copy','menuView','6175638LgpOpQ','_uiCssClasses','define','text/html','isFlat','render','queryView','ck-ai-assistant-ui','getRanges','trialLimit','replaceContent','announce','aiLicenseKeyEvaluationLimit','ck-ai-commands-dropdown\x20','label','evaluationLimit','promptView','buttonView','showAIAssistant','11WsNNzs','add','rawHtml','fire','usageLimit','getData','ai.useTheme','_commandDefinitions','children','7lntMwH','REPLACE','wasMoved','commands','_initView','splice','media','_initAriaAiStatusChangeAnnouncements','</p>','hideFakeVisualSelection','AIAssistantUI','items','change:isError','locale','showUI','aiAssistant','contentArea','includes','order','licenseKey','AI\x20is\x20writing','polite','requiresContent','_dialog','setSelection','length','execute','document','5890104XrAFoR','text','update','domainLimit','677136JdXTRl','_getMenuBarGroupButtons','change:value','push','sort','replace','focus','showFakeVisualSelection','insertContentBelow','isPremiumPlugin','bind','expired','ai.aiAssistant.contentAreaCssClass','currentContext'];_0x54b4=function(){return _0x564d41;};return _0x54b4();}function _0x4b97(_0x187456,_0x28a538){const _0x54b4cb=_0x54b4();return _0x4b97=function(_0x4b97a0,_0x15c7cb){_0x4b97a0=_0x4b97a0-0xe7;let _0x141184=_0x54b4cb[_0x4b97a0];return _0x141184;},_0x4b97(_0x187456,_0x28a538);}function T(_0xd55c37,_0x153543){const _0x4c3027=_0x266a20;return void 0x0!==_0xd55c37[_0x4c3027(0xf9)]&&void 0x0===_0x153543[_0x4c3027(0xf9)]?0x1:void 0x0===_0xd55c37[_0x4c3027(0xf9)]&&void 0x0!==_0x153543[_0x4c3027(0xf9)]?-0x1:void 0x0!==_0xd55c37[_0x4c3027(0xf9)]&&void 0x0!==_0x153543[_0x4c3027(0xf9)]?_0xd55c37[_0x4c3027(0xf9)]-_0x153543[_0x4c3027(0xf9)]:0x0;}function U(_0x5a0281,_0x1be808){const _0x4eed14=_0x266a20;_0x1be808[_0x4eed14(0x10b)](T);const _0x24146e={},_0x2b5ab5=[];for(const _0x4c33a4 of _0x1be808)if(void 0x0!==_0x4c33a4[_0x4eed14(0xf9)]){if(_0x4c33a4[_0x4eed14(0xf9)]in _0x24146e)throw new _0x1ae989(_0x4eed14(0x14c),_0x5a0281,{'conflictingDefinitions':[_0x4c33a4,_0x24146e[_0x4c33a4[_0x4eed14(0xf9)]]]});_0x24146e[_0x4c33a4[_0x4eed14(0xf9)]]=_0x4c33a4,_0x2b5ab5[_0x4eed14(0xec)](_0x4c33a4[_0x4eed14(0xf9)],0x0,_0x4c33a4);}else _0x2b5ab5[_0x4eed14(0x10a)](_0x4c33a4);return _0x2b5ab5;}
|
|
23
|
+
const _0x1f503a=_0x2696;(function(_0x564f6d,_0x53602c){const _0x3edcfa=_0x2696,_0x235349=_0x564f6d();while(!![]){try{const _0x813d0a=parseInt(_0x3edcfa(0xca))/0x1+-parseInt(_0x3edcfa(0xf7))/0x2*(parseInt(_0x3edcfa(0xb7))/0x3)+-parseInt(_0x3edcfa(0xde))/0x4+parseInt(_0x3edcfa(0xc3))/0x5+parseInt(_0x3edcfa(0xc6))/0x6*(-parseInt(_0x3edcfa(0xd4))/0x7)+parseInt(_0x3edcfa(0x14c))/0x8+-parseInt(_0x3edcfa(0x127))/0x9;if(_0x813d0a===_0x53602c)break;else _0x235349['push'](_0x235349['shift']());}catch(_0x562aa6){_0x235349['push'](_0x235349['shift']());}}}(_0x203b,0x56704));import{Plugin as _0x190cec}from'ckeditor5/src/core.js';import{IconMagicWand as _0x945031,IconRobotPencil as _0x1fca78}from'ckeditor5/src/icons.js';import{first as _0x4e49c0,CKEditorError as _0x23dfe7}from'ckeditor5/src/utils.js';import{createDropdown as _0x5a2dcd,addMenuToDropdown as _0x40a758,ButtonView as _0x493d55,MenuBarMenuListItemButtonView as _0x41b089,Dialog as _0x5f15d4,DialogViewPosition as _0x3962ef,MenuBarMenuView as _0xdc830d,MenuBarMenuListView as _0x16ed78,MenuBarMenuListItemView as _0x1662e5}from'ckeditor5/src/ui.js';function _0x203b(){const _0x496d6b=['change','aiAssistant','bind','isCollapsed','buttonView','init','2769592atMPMs','licenseKey','_getResolvedCommandsDefinitions','ck-ai-assistant-button\x20','children','Error\x20during\x20AI\x20content\x20generation:\x20%0','set','splice','updatePosition','menuitemcheckbox','getSelectedElement','domainLimit','config','showUI','ck-ai-commands-dropdown\x20','aiLicenseKeyDomainLimit','plugins','filter','source','_aiAdapter','menuPanelClass','_aiAssistantController','copy','componentFactory','isOfficialPlugin','90oOgChY','isOn','length','aiLicenseKeyInvalid','</p>','show','schema','ck-ai-assistant-ui','REPLACE','ai.aiAssistant.contentAreaCssClass','isEnabled','aiCommands','trim','ai.aiAssistant.disabledElements','destroy','menuBar:aiAssistant','text/html','_licenseKeyCheckInterval','aiLicenseKeyNotAllowed','_createAIAssistantUIButton','push','values','model','includes','ai.aiAssistant.commands','ai.useTheme','aiLicenseKeyValid','AI\x20Assistant','Generated\x20content:\x20%0','_showLicenseError','menuView','polite','_commandDefinitions','setSelection','_forceMarkersCopy','errorView','map','_onExecute','evaluationLimit','announce','getRanges','define','currentContext','AIAssistantUI','locale','isFlat','once','promptView','564084IsATlA','aiLicenseKeyUsageLimit','from','usageLimit','expired','groupLabel','_populateMenuBarMenu','groupId','_initAriaAiStatusChangeAnnouncements','wasMoved','trialLimit','commands','update','_formView','getSelectedBlocks','insertContentBelow','fire','updateView','editing','requires','getData','AI\x20Commands','sort','<p>','execute','getLimitElement','get','items','isPremiumPlugin','listenTo','insertContent','prompt','replace','pluginName','\x20ck-ai-assistant-ui_theme','fieldView','reset','3126656dqQEGP','render','add','delegate','AIAssistant','queryView','text','tableOfContents','document','command:','aiLicenseKeyTrialLimit','order','menuBar:aiCommands','media','AI\x20is\x20writing','buttons','_dialog','editor','showFakeVisualSelection','INSERT','selection','change:isProcessing','panelView','_initView','ai-commands-config-order-collision','custom','4911ZHoyvA','addMany','hideUI','hide','change:value','requiresContent','aiLicenseKeyExpired','rawHtml','view','aiLicenseKeyEvaluationLimit','enabledCommandsIds','label','1792315CpbuyZ','focus','hideFakeVisualSelection','306oAYBIe','change:isError','showAIAssistant','replaceContent','676205gOkBPH','invalid','comment','textAdapter','change:enabledCommandsIds','contentArea','body','featureNotAllowed','_uiCssClasses','forEach','33313AcpdOn','_getMenuBarGroupButtons','EDITOR_TOP_SIDE','DataTransfer'];_0x203b=function(){return _0x496d6b;};return _0x203b();}import{normalizeCommandsConfig as _0x5ebf55,UNGROUPED_COMMANDS_GROUP_ID as _0x4a402d}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x67b9a8}from'./aiassistantediting.js';import{AIAdapter as _0x34c0f9}from'./adapters/aiadapter.js';import{getTranslation as _0xcb5781}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0xfb352c}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x4f6637}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x54e10e}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x571e28}from'./ui/form/aiformtoolbarview.js';function _0x2696(_0x52375e,_0x5d60c9){const _0x203be9=_0x203b();return _0x2696=function(_0x269685,_0x5b670f){_0x269685=_0x269685-0xa4;let _0x2cf816=_0x203be9[_0x269685];return _0x2cf816;},_0x2696(_0x52375e,_0x5d60c9);}import'../theme/ai.css';import'../theme/ai-dropdown.css';import'../theme/ai-form.css';const l=globalThis[_0x1f503a(0xd7)];import{ClipboardMarkersUtils as _0x20895b}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x18b83f,ViewDataTransfer as _0x5e9d5d}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x190cec{[_0x1f503a(0xdf)];[_0x1f503a(0x108)];[_0x1f503a(0xad)];[_0x1f503a(0x134)];[_0x1f503a(0xf1)];[_0x1f503a(0xf3)];[_0x1f503a(0xd2)]='';static get[_0x1f503a(0x148)](){const _0x43bf74=_0x1f503a;return _0x43bf74(0x122);}static get[_0x1f503a(0xf6)](){return!0x0;}static get[_0x1f503a(0x143)](){return!0x0;}static get[_0x1f503a(0x13a)](){return[_0x20895b,_0x67b9a8,_0x34c0f9,_0x5f15d4];}constructor(_0x2b38a3){const _0x1d78e0=_0x1f503a;super(_0x2b38a3),_0x2b38a3[_0x1d78e0(0xea)][_0x1d78e0(0x120)](_0x1d78e0(0x104),[_0x1d78e0(0xaa),_0x1d78e0(0xbe),_0x1d78e0(0xa4)]),_0x2b38a3[_0x1d78e0(0xea)][_0x1d78e0(0x120)](_0x1d78e0(0x100),''),_0x2b38a3[_0x1d78e0(0xea)][_0x1d78e0(0x120)](_0x1d78e0(0x110),!0x0),this[_0x1d78e0(0xd2)]=_0x1d78e0(0xfe)+(_0x2b38a3[_0x1d78e0(0xea)][_0x1d78e0(0x141)](_0x1d78e0(0x110))?_0x1d78e0(0x149):'');}[_0x1f503a(0xdd)](){const _0x1f8dcd=_0x1f503a,{editor:_0x4934a4}=this;this[_0x1f8dcd(0xf1)]=_0x4934a4[_0x1f8dcd(0xee)][_0x1f8dcd(0x141)](_0x34c0f9),this[_0x1f8dcd(0xad)]=_0x4934a4[_0x1f8dcd(0xee)][_0x1f8dcd(0x141)](_0x5f15d4),this[_0x1f8dcd(0x134)]=null,this[_0x1f8dcd(0x117)]=this[_0x1f8dcd(0xe0)]();const _0x11ff6b=new _0xfb352c(_0x4934a4,Array[_0x1f8dcd(0x129)](this[_0x1f8dcd(0x117)][_0x1f8dcd(0x10c)]()));_0x4934a4[_0x1f8dcd(0x132)][_0x1f8dcd(0x14e)](_0x1f8dcd(0xc8),_0x11ff6b),_0x4934a4['ui'][_0x1f8dcd(0xf5)][_0x1f8dcd(0x14e)](_0x1f8dcd(0x102),_0xcfda7d=>{const _0x394e3f=_0x1f8dcd,_0x841bb0=_0x5a2dcd(_0xcfda7d);return _0x841bb0[_0x394e3f(0xe4)]({'class':_0x394e3f(0xec)+this[_0x394e3f(0xd2)]}),_0x841bb0[_0x394e3f(0xdc)][_0x394e3f(0xe4)]({'label':_0xcb5781(_0xcfda7d,_0x394e3f(0x13c)),'icon':_0x945031,'tooltip':!0x0}),_0x841bb0['on'](_0x394e3f(0x13f),_0x27d6c0=>this[_0x394e3f(0x11c)](_0x27d6c0[_0x394e3f(0xf0)]['id'])),_0x40a758(_0x841bb0,_0x4934a4['ui'][_0x394e3f(0xbf)][_0x394e3f(0xd0)],function(_0x5a8922){const _0x296a34=_0x394e3f,_0x4278de=_0x5ebf55(_0x5a8922[_0x296a34(0xea)][_0x296a34(0x141)](_0x296a34(0x10f)),_0x5a8922[_0x296a34(0x123)]),_0x2bd161=U(_0x5a8922,_0x4278de)[_0x296a34(0xef)](_0x1c6350=>_0x1c6350[_0x296a34(0x132)][_0x296a34(0xf9)]);if(0x1===_0x2bd161[_0x296a34(0xf9)])return U(_0x5a8922,_0x2bd161[0x0][_0x296a34(0x132)])[_0x296a34(0x11b)](_0xb06ff6=>({'id':_0xb06ff6['id'],'label':_0xb06ff6[_0x296a34(0xc2)]}));return _0x2bd161[_0x296a34(0x11b)](_0x28420e=>{const _0x2f14b7=_0x296a34,{groupId:_0x3b2667,groupLabel:_0x15897c,commands:_0x2b1118}=_0x28420e,_0x284b19=U(_0x5a8922,_0x2b1118)[_0x2f14b7(0x11b)](_0x20dc58=>({'id':_0x20dc58['id'],'label':_0x20dc58[_0x2f14b7(0xc2)]}));return{'id':_0x3b2667,'menu':_0x15897c||_0x3b2667,'children':_0x284b19};});}(_0x4934a4),{'ariaLabel':_0xcb5781(_0xcfda7d,_0x394e3f(0x13c))}),_0x841bb0[_0x394e3f(0x115)][_0x394e3f(0xf2)]=_0x394e3f(0xec)+this[_0x394e3f(0xd2)],_0x11ff6b['on'](_0x394e3f(0xce),_0x13da4b),_0x841bb0[_0x394e3f(0x115)][_0x394e3f(0x125)](_0x394e3f(0x14d),_0x13da4b),_0x841bb0;function _0x13da4b(){const _0x4b721d=_0x394e3f;_0x841bb0[_0x4b721d(0x101)]=_0x11ff6b[_0x4b721d(0xc1)][_0x4b721d(0xf9)]>0x0;for(const _0x40ddff of _0x841bb0[_0x4b721d(0x115)][_0x4b721d(0xac)])_0x40ddff[_0x4b721d(0x101)]=_0x11ff6b[_0x4b721d(0xc1)][_0x4b721d(0x10e)](_0x40ddff['id']);}}),_0x4934a4['ui'][_0x1f8dcd(0xf5)][_0x1f8dcd(0x14e)](_0x1f8dcd(0xa9),_0x4ca927=>{const _0x277956=_0x1f8dcd,_0x5222c1=new _0xdc830d(_0x4ca927);_0x5222c1[_0x277956(0xdc)][_0x277956(0xe4)]({'label':_0xcb5781(_0x4ca927,_0x277956(0x13c)),'icon':_0x945031}),_0x5222c1[_0x277956(0xda)](_0x277956(0x101))['to'](_0x11ff6b,_0x277956(0xc1),_0x15d67f=>_0x15d67f[_0x277956(0xf9)]>0x0);const _0x818b33=_0x5ebf55(_0x4934a4[_0x277956(0xea)][_0x277956(0x141)](_0x277956(0x10f)),_0x4ca927);return this[_0x277956(0x12d)](_0x11ff6b,_0x5222c1,_0x818b33,_0xb747f5=>this[_0x277956(0x11c)](_0xb747f5)),_0x5222c1;}),_0x4934a4['ui'][_0x1f8dcd(0xf5)][_0x1f8dcd(0x14e)](_0x1f8dcd(0xd9),()=>{const _0x2d2881=_0x1f8dcd,_0x44a0aa=this[_0x2d2881(0x10a)](_0x493d55);return _0x44a0aa[_0x2d2881(0xe4)]({'tooltip':!0x0,'class':_0x2d2881(0xe1)+this[_0x2d2881(0xd2)]}),_0x44a0aa;}),_0x4934a4['ui'][_0x1f8dcd(0xf5)][_0x1f8dcd(0x14e)](_0x1f8dcd(0x106),()=>{const _0x73f078=_0x1f8dcd,_0x1356cf=this[_0x73f078(0x10a)](_0x41b089);return _0x1356cf[_0x73f078(0xe4)]({'role':_0x73f078(0xe7)}),_0x1356cf;}),this[_0x1f8dcd(0xdf)]=this[_0x1f8dcd(0xae)][_0x1f8dcd(0xea)][_0x1f8dcd(0x141)](_0x1f8dcd(0xdf));const _0x1bfe6a=this[_0x1f8dcd(0xae)];this[_0x1f8dcd(0x108)]=setInterval(()=>{const _0x1b14c5=_0x1f8dcd;let _0x15a100;for(const _0x17f205 in _0x1bfe6a){const _0x2afda5=_0x17f205,_0x4a5221=_0x1bfe6a[_0x2afda5];if(_0x1b14c5(0x111)==_0x4a5221||_0x1b14c5(0xfa)==_0x4a5221||_0x1b14c5(0xbd)==_0x4a5221||_0x1b14c5(0xed)==_0x4a5221||_0x1b14c5(0x109)==_0x4a5221||_0x1b14c5(0xc0)==_0x4a5221||_0x1b14c5(0xa7)==_0x4a5221||_0x1b14c5(0x128)==_0x4a5221){delete _0x1bfe6a[_0x2afda5],_0x15a100=_0x4a5221,clearInterval(this[_0x1b14c5(0x108)]),this[_0x1b14c5(0x108)]=void 0x0;break;}}_0x1b14c5(0xfa)==_0x15a100&&_0x1bfe6a[_0x1b14c5(0x114)](_0x1b14c5(0xcb)),_0x1b14c5(0xbd)==_0x15a100&&_0x1bfe6a[_0x1b14c5(0x114)](_0x1b14c5(0x12b)),_0x1b14c5(0xed)==_0x15a100&&_0x1bfe6a[_0x1b14c5(0x114)](_0x1b14c5(0xe9)),_0x1b14c5(0x109)==_0x15a100&&_0x1bfe6a[_0x1b14c5(0x114)](_0x1b14c5(0xd1),_0x1b14c5(0x150)),_0x1b14c5(0xc0)==_0x15a100&&_0x1bfe6a[_0x1b14c5(0x114)](_0x1b14c5(0x11d)),_0x1b14c5(0xa7)==_0x15a100&&_0x1bfe6a[_0x1b14c5(0x114)](_0x1b14c5(0x131)),_0x1b14c5(0x128)==_0x15a100&&_0x1bfe6a[_0x1b14c5(0x114)](_0x1b14c5(0x12a));},0x3e8);}[_0x1f503a(0x105)](){const _0x4e176e=_0x1f503a;super[_0x4e176e(0x105)](),this[_0x4e176e(0x108)]&&clearInterval(this[_0x4e176e(0x108)]);}[_0x1f503a(0xeb)](_0x5c6baf='',_0x547937='',_0x162ce5=_0x1f503a(0xb6)){const _0x554d80=_0x1f503a,_0x4b412d=this[_0x554d80(0xae)],_0x33a6b3=_0x4b412d[_0x554d80(0x139)][_0x554d80(0xbf)],_0x4d9be4=_0x4b412d[_0x554d80(0xee)][_0x554d80(0x141)](_0x67b9a8),_0xf4d033=_0x4b412d[_0x554d80(0xee)][_0x554d80(0x141)](_0x20895b);_0x4d9be4[_0x554d80(0xaf)]();const _0x1a9f6c=new l(),_0x10160c=new ClipboardEvent(_0x554d80(0xf4),{'clipboardData':_0x1a9f6c}),_0x1da797=new _0x5e9d5d(_0x1a9f6c),_0x31e613=new _0x18b83f(_0x33a6b3,_0x10160c,{'dataTransfer':_0x1da797});_0xf4d033[_0x554d80(0x119)](_0x554d80(0xcc),()=>{const _0x209060=_0x554d80;_0x33a6b3[_0x209060(0xa5)][_0x209060(0x137)](_0x209060(0xf4),_0x31e613);}),this[_0x554d80(0x134)]||(this[_0x554d80(0xb4)](),this[_0x554d80(0xf3)]=new _0x4f6637(_0x4b412d,this[_0x554d80(0xf1)][_0x554d80(0xcd)],this[_0x554d80(0x134)]));let _0xb9573a=_0x1da797[_0x554d80(0x13b)](_0x554d80(0x107));const _0x5b4e19=_0x4b412d[_0x554d80(0x10d)][_0x554d80(0xa5)][_0x554d80(0xb1)],_0x59d3fc=Array[_0x554d80(0x129)](_0x5b4e19[_0x554d80(0x11f)]());0x1===_0x59d3fc[_0x554d80(0xf9)]&&_0x59d3fc[0x0][_0x554d80(0x124)]&&!_0x5b4e19[_0x554d80(0xe8)]()&&''!==_0xb9573a[_0x554d80(0x147)](/ /g,'')[_0x554d80(0x103)]()&&(_0xb9573a=_0x554d80(0x13e)+_0xb9573a+_0x554d80(0xfb)),this[_0x554d80(0xf3)][_0x554d80(0x138)]({'actionId':_0x162ce5,'query':_0x5c6baf,'htmlContent':_0xb9573a,'label':_0x547937,'mainActionLabel':_0x571e28[_0x4b412d[_0x554d80(0x10d)][_0x554d80(0xa5)][_0x554d80(0xb1)][_0x554d80(0xdb)]?_0x554d80(0xb0):_0x554d80(0xff)]}),_0x554d80(0xd9)!==this[_0x554d80(0xad)]['id']?this[_0x554d80(0xad)][_0x554d80(0xfc)]({'id':_0x554d80(0xd9),'icon':_0x1fca78,'title':_0xcb5781(this[_0x554d80(0xae)][_0x554d80(0x123)],_0x554d80(0x112)),'content':this[_0x554d80(0x134)],'position':_0x3962ef[_0x554d80(0xd6)],'onShow':()=>{const _0x479544=_0x554d80;this[_0x479544(0x134)][_0x479544(0xc4)]();},'onHide':()=>{const _0x28beeb=_0x554d80;this[_0x28beeb(0xf3)][_0x28beeb(0x14b)](),_0x4d9be4[_0x28beeb(0xc5)]();}}):this[_0x554d80(0xad)][_0x554d80(0xbf)][_0x554d80(0x130)]||this[_0x554d80(0xad)][_0x554d80(0xbf)][_0x554d80(0xe6)]();}[_0x1f503a(0xb9)](){const _0x3cd0a4=_0x1f503a;this[_0x3cd0a4(0xad)][_0x3cd0a4(0xba)]();}[_0x1f503a(0xe0)](){const _0x485ce7=_0x1f503a,_0x1142ad=new Map(),_0x3e81af=_0x5ebf55(this[_0x485ce7(0xae)][_0x485ce7(0xea)][_0x485ce7(0x141)](_0x485ce7(0x10f)),this[_0x485ce7(0xae)][_0x485ce7(0x123)]);for(const _0x147d74 of _0x3e81af)for(const _0x5754e0 of _0x147d74[_0x485ce7(0x132)])_0x1142ad[_0x485ce7(0xe4)](_0x5754e0['id'],{..._0x5754e0,'groupId':_0x147d74[_0x485ce7(0x12e)],'groupLabel':_0x147d74[_0x485ce7(0x12c)]||_0x147d74[_0x485ce7(0x12e)]});return _0x1142ad;}[_0x1f503a(0x10a)](_0x309d53){const _0x45c141=_0x1f503a,_0x424c87=this[_0x45c141(0xae)],_0x28435c=_0x424c87[_0x45c141(0x132)][_0x45c141(0x141)](_0x45c141(0xc8)),_0x2f8748=new _0x309d53(_0x424c87[_0x45c141(0x123)]);return _0x2f8748[_0x45c141(0xe4)]({'label':_0xcb5781(_0x424c87[_0x45c141(0x123)],_0x45c141(0x112)),'icon':_0x1fca78,'isToggleable':!0x0}),_0x2f8748[_0x45c141(0xda)](_0x45c141(0x101))['to'](_0x28435c),_0x2f8748[_0x45c141(0xda)](_0x45c141(0xf8))['to'](this[_0x45c141(0xad)],'id',_0xf1dbfc=>_0x45c141(0xd9)===_0xf1dbfc),this[_0x45c141(0x144)](_0x2f8748,_0x45c141(0x13f),()=>{const _0x2b3a6f=_0x45c141;_0x2f8748[_0x2b3a6f(0xf8)]?this[_0x2b3a6f(0xb9)]():_0x28435c[_0x2b3a6f(0x13f)]();}),_0x2f8748;}[_0x1f503a(0xb4)](){const _0x44fecf=_0x1f503a,_0x5145ef=this[_0x44fecf(0xae)][_0x44fecf(0xee)][_0x44fecf(0x141)](_0x67b9a8);this[_0x44fecf(0x134)]=new _0x54e10e(this[_0x44fecf(0xae)][_0x44fecf(0x123)],this[_0x44fecf(0xd2)],this[_0x44fecf(0xae)][_0x44fecf(0xea)][_0x44fecf(0x141)](_0x44fecf(0x100))),this[_0x44fecf(0x134)]['on'](_0x44fecf(0xbb),()=>{const _0x121c1e=_0x44fecf;this[_0x121c1e(0xad)][_0x121c1e(0xbf)][_0x121c1e(0x130)]||this[_0x121c1e(0xad)][_0x121c1e(0xbf)][_0x121c1e(0xe6)]();}),this[_0x44fecf(0x134)][_0x44fecf(0x126)][_0x44fecf(0x151)][_0x44fecf(0x14a)]['on'](_0x44fecf(0x133),()=>{const _0x1f5c3f=_0x44fecf;this[_0x1f5c3f(0xad)][_0x1f5c3f(0xbf)][_0x1f5c3f(0x130)]||this[_0x1f5c3f(0xad)][_0x1f5c3f(0xbf)][_0x1f5c3f(0xe6)]();}),this[_0x44fecf(0x144)](this[_0x44fecf(0x134)],_0x44fecf(0xc9),()=>{const _0x2827a4=_0x44fecf;_0x5145ef[_0x2827a4(0x145)](this[_0x2827a4(0xf3)][_0x2827a4(0x121)]),this[_0x2827a4(0xb9)]();}),this[_0x44fecf(0x144)](this[_0x44fecf(0x134)],_0x44fecf(0x136),()=>{const _0x5e129f=_0x44fecf;_0x5145ef[_0x5e129f(0x136)](this[_0x5e129f(0xf3)][_0x5e129f(0x121)]),this[_0x5e129f(0xb9)]();}),this[_0x44fecf(0x12f)]();}[_0x1f503a(0x12f)](){const _0x54af40=_0x1f503a,{locale:_0x53ebe5,ui:{ariaLiveAnnouncer:_0x3ea14f}}=this[_0x54af40(0xae)];this[_0x54af40(0x134)][_0x54af40(0xcf)]['on'](_0x54af40(0xb2),(_0x29a106,_0x561955,_0x26ea94)=>{const _0xb30ef9=_0x54af40,_0x219d03=this[_0xb30ef9(0xf3)][_0xb30ef9(0x121)];_0x26ea94?_0x3ea14f[_0xb30ef9(0x11e)](_0xcb5781(_0x53ebe5,_0xb30ef9(0xab))):_0x219d03&&_0x3ea14f[_0xb30ef9(0x11e)](_0xcb5781(_0x53ebe5,_0xb30ef9(0x113),_0x219d03),{'politeness':_0xb30ef9(0x116),'isUnsafeHTML':!0x0});}),this[_0x54af40(0x134)]['on'](_0x54af40(0xc7),(_0x35f89d,_0x4c4ec8,_0x26eeaf)=>{const _0xb7d236=_0x54af40;if(_0x26eeaf){const _0x3c1426=this[_0xb7d236(0x134)][_0xb7d236(0x11a)][_0xb7d236(0x152)];_0x3ea14f[_0xb7d236(0x11e)](_0xcb5781(_0x53ebe5,_0xb7d236(0xe3),_0x3c1426));}});}[_0x1f503a(0x11c)](_0x243965){const _0x4733cb=_0x1f503a,_0x233b50=this[_0x4733cb(0x117)][_0x4733cb(0x141)](_0x243965),_0x3bf818=this[_0x4733cb(0xae)],_0x20fad9=_0x3bf818[_0x4733cb(0x10d)][_0x4733cb(0xa5)][_0x4733cb(0xb1)],_0x2bc2e4=_0x3bf818[_0x4733cb(0x132)][_0x4733cb(0x141)](_0x4733cb(0xc8)),_0x28a0f4=_0x3bf818[_0x4733cb(0xee)][_0x4733cb(0x141)](_0x67b9a8),_0x1c7fe2=''+(_0x233b50[_0x4733cb(0x12e)]!==_0x4a402d?_0x233b50[_0x4733cb(0x12c)]+':\x20':'')+_0x233b50[_0x4733cb(0xc2)];if(!0x1!==_0x233b50[_0x4733cb(0xbc)]&&_0x20fad9[_0x4733cb(0xdb)]){const _0x55e7fa=_0x4e49c0(_0x20fad9[_0x4733cb(0x135)]())||_0x3bf818[_0x4733cb(0x10d)][_0x4733cb(0xfd)][_0x4733cb(0x140)](_0x20fad9);_0x3bf818[_0x4733cb(0x10d)][_0x4733cb(0xd8)](_0x39d9c8=>{const _0x2108af=_0x4733cb;_0x39d9c8[_0x2108af(0x118)](_0x55e7fa,'in');});}_0x28a0f4[_0x4733cb(0xaf)](),_0x2bc2e4[_0x4733cb(0x13f)](_0x233b50[_0x4733cb(0x146)],_0x1c7fe2,_0x4733cb(0xa6)+_0x243965);}[_0x1f503a(0x12d)](_0x1745ac,_0x1a613d,_0x9851e9,_0x3c00c3){const _0xfffef8=_0x1f503a,_0xd5aea6=this[_0xfffef8(0xae)],_0x58adee=_0xd5aea6[_0xfffef8(0x123)],_0x347a48=new _0x16ed78(_0x58adee),_0x5bccee=U(_0xd5aea6,_0x9851e9)[_0xfffef8(0xef)](_0xedce23=>_0xedce23[_0xfffef8(0x132)][_0xfffef8(0xf9)]);0x1===_0x5bccee[_0xfffef8(0xf9)]?this[_0xfffef8(0xd5)]({'command':_0x1745ac,'commands':_0x5bccee[0x0][_0xfffef8(0x132)],'parentMenuView':_0x1a613d,'onExecute':_0x3c00c3})[_0xfffef8(0xd3)](_0x1afc8a=>_0x347a48[_0xfffef8(0x142)][_0xfffef8(0x14e)](_0x1afc8a)):_0x5bccee[_0xfffef8(0xd3)](({groupId:_0x142aef,groupLabel:_0x12f72c,commands:_0x1600d6})=>{const _0x1dc44d=_0xfffef8,_0x3eb686=new _0x1662e5(_0x58adee,_0x1a613d),_0x5f32f4=new _0xdc830d(_0x58adee),_0x3378c0=new _0x16ed78(_0x58adee),_0x266779=this[_0x1dc44d(0xd5)]({'command':_0x1745ac,'commands':_0x1600d6,'parentMenuView':_0x5f32f4,'onExecute':_0x3c00c3});_0x5f32f4[_0x1dc44d(0xdc)][_0x1dc44d(0xe4)]({'label':_0x12f72c||_0x142aef}),_0x5f32f4[_0x1dc44d(0x14f)](_0x1dc44d(0x13f))['to'](_0x1a613d),_0x3378c0[_0x1dc44d(0x142)][_0x1dc44d(0xb8)](_0x266779),_0x5f32f4[_0x1dc44d(0xb3)][_0x1dc44d(0xe2)][_0x1dc44d(0x14e)](_0x3378c0),_0x3eb686[_0x1dc44d(0xe2)][_0x1dc44d(0x14e)](_0x5f32f4),_0x347a48[_0x1dc44d(0x142)][_0x1dc44d(0x14e)](_0x3eb686);}),_0x1a613d[_0xfffef8(0xb3)][_0xfffef8(0xe2)][_0xfffef8(0x14e)](_0x347a48);}[_0x1f503a(0xd5)]({command:_0x52ec75,commands:_0x1c71a7,parentMenuView:_0x9389c6,onExecute:_0x469efb}){const _0x3f8e73=_0x1f503a,_0x393d3e=this[_0x3f8e73(0xae)],_0x4d7ae8=_0x393d3e[_0x3f8e73(0x123)];return U(_0x393d3e,_0x1c71a7)[_0x3f8e73(0x11b)](_0x2cf63a=>{const _0x18da40=_0x3f8e73,_0x11b073=new _0x1662e5(_0x4d7ae8,_0x9389c6),_0x4a4649=new _0x41b089(_0x4d7ae8);return _0x4a4649[_0x18da40(0xe4)]({'label':_0x2cf63a[_0x18da40(0xc2)]}),_0x4a4649[_0x18da40(0x14f)](_0x18da40(0x13f))['to'](_0x9389c6),_0x4a4649['on'](_0x18da40(0x13f),()=>_0x469efb(_0x2cf63a['id'])),_0x4a4649[_0x18da40(0xda)](_0x18da40(0x101))['to'](_0x52ec75,_0x18da40(0xc1),_0x479265=>_0x479265[_0x18da40(0x10e)](_0x2cf63a['id'])),_0x11b073[_0x18da40(0xe2)][_0x18da40(0x14e)](_0x4a4649),_0x11b073;});}}function T(_0x4d46f5,_0x536b25){const _0x2dae6d=_0x1f503a;return void 0x0!==_0x4d46f5[_0x2dae6d(0xa8)]&&void 0x0===_0x536b25[_0x2dae6d(0xa8)]?0x1:void 0x0===_0x4d46f5[_0x2dae6d(0xa8)]&&void 0x0!==_0x536b25[_0x2dae6d(0xa8)]?-0x1:void 0x0!==_0x4d46f5[_0x2dae6d(0xa8)]&&void 0x0!==_0x536b25[_0x2dae6d(0xa8)]?_0x4d46f5[_0x2dae6d(0xa8)]-_0x536b25[_0x2dae6d(0xa8)]:0x0;}function U(_0x43fa87,_0x50322e){const _0x1a06f4=_0x1f503a;_0x50322e[_0x1a06f4(0x13d)](T);const _0x324b35={},_0x399317=[];for(const _0x1d4333 of _0x50322e)if(void 0x0!==_0x1d4333[_0x1a06f4(0xa8)]){if(_0x1d4333[_0x1a06f4(0xa8)]in _0x324b35)throw new _0x23dfe7(_0x1a06f4(0xb5),_0x43fa87,{'conflictingDefinitions':[_0x1d4333,_0x324b35[_0x1d4333[_0x1a06f4(0xa8)]]]});_0x324b35[_0x1d4333[_0x1a06f4(0xa8)]]=_0x1d4333,_0x399317[_0x1a06f4(0xe5)](_0x1d4333[_0x1a06f4(0xa8)],0x0,_0x1d4333);}else _0x399317[_0x1a06f4(0x10b)](_0x1d4333);return _0x399317;}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4c1f16,_0x242b7f){var _0x2e6b3a=_0x36cc,_0x1350d5=_0x4c1f16();while(!![]){try{var _0x18b1c2=parseInt(_0x2e6b3a(0xcb))/0x1*(-parseInt(_0x2e6b3a(0xc4))/0x2)+-parseInt(_0x2e6b3a(0xc7))/0x3*(-parseInt(_0x2e6b3a(0xc5))/0x4)+-parseInt(_0x2e6b3a(0xc8))/0x5+parseInt(_0x2e6b3a(0xca))/0x6+parseInt(_0x2e6b3a(0xc9))/0x7*(-parseInt(_0x2e6b3a(0xc3))/0x8)+parseInt(_0x2e6b3a(0xcc))/0x9+parseInt(_0x2e6b3a(0xc6))/0xa;if(_0x18b1c2===_0x242b7f)break;else _0x1350d5['push'](_0x1350d5['shift']());}catch(_0x502b5f){_0x1350d5['push'](_0x1350d5['shift']());}}}(_0x399c,0xcb14f));export{AIAssistant,getDefaultAICommands}from'./aiassistant.js';export{AIAssistantUI}from'./aiassistantui.js';export{AIAdapter,AIRequestError}from'./adapters/aiadapter.js';function _0x36cc(_0x424f44,_0x1f21a7){var _0x399c70=_0x399c();return _0x36cc=function(_0x36cceb,_0x1df989){_0x36cceb=_0x36cceb-0xc3;var _0x375c24=_0x399c70[_0x36cceb];return _0x375c24;},_0x36cc(_0x424f44,_0x1f21a7);}export{AITextAdapter}from'./adapters/aitextadapter.js';export{OpenAITextAdapter}from'./adapters/openaitextadapter.js';export{AWSTextAdapter}from'./adapters/awstextadapter.js';function _0x399c(){var _0x34c21a=['1127385MzwEbv','5602925PnynnB','187635NafUMt','9021336BwOaPT','1qTbKKT','12260133OSAxRT','232lBtEgC','2065048UQwboT','4QYUovg','5206890dbttbz'];_0x399c=function(){return _0x34c21a;};return _0x399c();}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(_0x591e93,_0x451dbe){var _0x51bae4=_0x4cbe,_0x3b2602=_0x591e93();while(!![]){try{var _0x405002=-parseInt(_0x51bae4(0x1e0))/0x1+parseInt(_0x51bae4(0x1df))/0x2*(parseInt(_0x51bae4(0x1e1))/0x3)+parseInt(_0x51bae4(0x1e7))/0x4+parseInt(_0x51bae4(0x1e3))/0x5*(-parseInt(_0x51bae4(0x1e2))/0x6)+-parseInt(_0x51bae4(0x1e6))/0x7+-parseInt(_0x51bae4(0x1e5))/0x8+parseInt(_0x51bae4(0x1e4))/0x9;if(_0x405002===_0x451dbe)break;else _0x3b2602['push'](_0x3b2602['shift']());}catch(_0x4a7789){_0x3b2602['push'](_0x3b2602['shift']());}}}(_0x3aaf,0x2f401));import{CKEditorError as _0x5a95ff}from'ckeditor5/src/utils.js';function _0x4cbe(_0x4a862b,_0x381851){var _0x3aaf7d=_0x3aaf();return _0x4cbe=function(_0x4cbe91,_0xc585ad){_0x4cbe91=_0x4cbe91-0x1df;var _0x10ffbc=_0x3aaf7d[_0x4cbe91];return _0x10ffbc;},_0x4cbe(_0x4a862b,_0x381851);}function _0x3aaf(){var _0x187b7d=['1304058QrRqqI','207612vOPfun','10LJcVsE','147225gDGmET','183987KlvwUJ','78oYzRGF','48125NPZaGD','3724146VxOOfN','961288loocxU'];_0x3aaf=function(){return _0x187b7d;};return _0x3aaf();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
const _0x3d4f63=_0x22c1;(function(_0x2b8b84,_0x4d4686){const _0x5ee23d=_0x22c1,_0x8ad79f=_0x2b8b84();while(!![]){try{const _0x285cda=-parseInt(_0x5ee23d(0x1c1))/0x1+parseInt(_0x5ee23d(0x1b8))/0x2*(-parseInt(_0x5ee23d(0x1c0))/0x3)+-parseInt(_0x5ee23d(0x1ae))/0x4*(-parseInt(_0x5ee23d(0x19e))/0x5)+-parseInt(_0x5ee23d(0x1b4))/0x6+-parseInt(_0x5ee23d(0x1df))/0x7+parseInt(_0x5ee23d(0x1e4))/0x8*(-parseInt(_0x5ee23d(0x18e))/0x9)+-parseInt(_0x5ee23d(0x1b7))/0xa*(-parseInt(_0x5ee23d(0x196))/0xb);if(_0x285cda===_0x4d4686)break;else _0x8ad79f['push'](_0x8ad79f['shift']());}catch(_0x1fd22e){_0x8ad79f['push'](_0x8ad79f['shift']());}}}(_0x2b4f,0x64573));import{ObservableMixin as _0x231188}from'ckeditor5/src/utils.js';import{AIRequestError as _0x22de27}from'../adapters/aiadapter.js';import{Matcher as _0x3b87b9,ViewUpcastWriter as _0x14f110}from'ckeditor5/src/engine.js';function _0x22c1(_0x5afe49,_0x32a285){const _0x2b4f5e=_0x2b4f();return _0x22c1=function(_0x22c1ba,_0x1b1ee0){_0x22c1ba=_0x22c1ba-0x18d;let _0x1c568b=_0x2b4f5e[_0x22c1ba];return _0x1c568b;},_0x22c1(_0x5afe49,_0x32a285);}const Q=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x231188(){[_0x3d4f63(0x1ca)];[_0x3d4f63(0x1d3)];[_0x3d4f63(0x1e2)];[_0x3d4f63(0x1e1)];[_0x3d4f63(0x192)];[_0x3d4f63(0x1f1)];constructor(_0x196acd,_0xacbcd1,_0x4362d5){const _0x470d9a=_0x3d4f63;super(),this[_0x470d9a(0x1ca)]=_0x196acd,this[_0x470d9a(0x1d3)]=_0xacbcd1,this[_0x470d9a(0x1e1)]=document[_0x470d9a(0x1e3)](_0x470d9a(0x1c3)),this[_0x470d9a(0x192)]=new DOMParser(),this[_0x470d9a(0x1f1)]=new XMLSerializer(),this[_0x470d9a(0x1e2)]=_0x4362d5,this[_0x470d9a(0x19d)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x470d9a(0x1a7),(_0x288908,_0x49e9b6,_0x35bca3)=>{const _0x2344de=_0x470d9a;this[_0x2344de(0x1e2)][_0x2344de(0x193)]=this[_0x2344de(0x199)](_0x35bca3);}),this[_0x470d9a(0x1b2)](this[_0x470d9a(0x1e2)],_0x470d9a(0x1cb),(_0x24aa23,_0x250da7)=>{const _0x26d34f=_0x470d9a,_0x37c9ff=this[_0x26d34f(0x19c)]||this[_0x26d34f(0x198)];this[_0x26d34f(0x1c8)](_0x250da7,_0x37c9ff,_0x26d34f(0x1c2));}),this[_0x470d9a(0x1b2)](this[_0x470d9a(0x1e2)],_0x470d9a(0x1d7),()=>{const _0x9b1a28=_0x470d9a;this[_0x9b1a28(0x1e2)][_0x9b1a28(0x1ba)]=this[_0x9b1a28(0x1a8)],this[_0x9b1a28(0x1c8)](this[_0x9b1a28(0x1a2)],this[_0x9b1a28(0x1ea)],this[_0x9b1a28(0x1a6)],this[_0x9b1a28(0x1a8)]);}),this[_0x470d9a(0x1b2)](this[_0x470d9a(0x1e2)],_0x470d9a(0x191),()=>{const _0x379091=_0x470d9a;this[_0x379091(0x191)]();});}[_0x3d4f63(0x1bf)](){const _0x4d984a=_0x3d4f63;this[_0x4d984a(0x1de)]();}async[_0x3d4f63(0x1e0)]({actionId:_0x33f053,query:_0x261d84,htmlContent:_0x26167f,label:_0x3e8d0d,mainActionLabel:_0x3a3c43}){const _0x170b80=_0x3d4f63;this[_0x170b80(0x1e2)][_0x170b80(0x1ba)]=_0x3e8d0d,this[_0x170b80(0x1e2)][_0x170b80(0x1d9)]=_0x3a3c43,this[_0x170b80(0x198)]=_0x26167f,_0x261d84&&(this[_0x170b80(0x1e2)][_0x170b80(0x1af)]?this[_0x170b80(0x1c8)](_0x261d84,_0x26167f,_0x33f053,_0x3e8d0d):this[_0x170b80(0x1e2)][_0x170b80(0x1e8)](_0x170b80(0x1ef),()=>{const _0x5a04ee=_0x170b80;this[_0x5a04ee(0x1c8)](_0x261d84,_0x26167f,_0x33f053,_0x3e8d0d);}));}[_0x3d4f63(0x191)](){const _0x4f310b=_0x3d4f63;this[_0x4f310b(0x1cc)]&&(this[_0x4f310b(0x1cc)]=!0x1,this[_0x4f310b(0x1e2)][_0x4f310b(0x1b0)](),this[_0x4f310b(0x1d3)][_0x4f310b(0x1a9)]());}[_0x3d4f63(0x1bd)](){const _0x42d89d=_0x3d4f63;this[_0x42d89d(0x198)]='',this[_0x42d89d(0x19c)]='',this[_0x42d89d(0x1a3)]='',this[_0x42d89d(0x1ea)]='',this[_0x42d89d(0x1a2)]='',this[_0x42d89d(0x1a8)]='',this[_0x42d89d(0x1a6)]=void 0x0,this[_0x42d89d(0x1e2)][_0x42d89d(0x1bd)](),this[_0x42d89d(0x191)]();}async[_0x3d4f63(0x1c8)](_0x2faf3c,_0x38ff1d,_0x428a72,_0x2ab0f1){const _0x5131ce=_0x3d4f63;return this[_0x5131ce(0x1cc)]=!0x0,this[_0x5131ce(0x1e2)][_0x5131ce(0x1d4)](),this[_0x5131ce(0x1ea)]=_0x38ff1d,this[_0x5131ce(0x1a2)]=_0x2faf3c,this[_0x5131ce(0x1a8)]=_0x2ab0f1||_0x2faf3c,this[_0x5131ce(0x1a6)]=_0x428a72,new Promise(_0x1f62c0=>{const _0x443cef=_0x5131ce;this[_0x443cef(0x1d3)][_0x443cef(0x1ce)]({'query':_0x2faf3c,'context':_0x38ff1d,'onData':_0x4cc5be=>{const _0x256407=_0x443cef;this[_0x256407(0x1a3)]=_0x4cc5be,this[_0x256407(0x19c)]=this[_0x256407(0x1aa)](this[_0x256407(0x1a3)]);},'actionId':_0x428a72})[_0x443cef(0x1eb)](()=>{const _0x6f8d94=_0x443cef;!this[_0x6f8d94(0x19c)]&&this[_0x6f8d94(0x1a3)]&&(this[_0x6f8d94(0x19c)]=this[_0x6f8d94(0x1aa)](this[_0x6f8d94(0x1a3)],!0x0));})[_0x443cef(0x1dd)](_0x9abde1=>{const _0x152034=_0x443cef;_0x9abde1 instanceof _0x22de27?this[_0x152034(0x1e2)][_0x152034(0x1bc)](_0x9abde1[_0x152034(0x1c7)]):this[_0x152034(0x1e2)][_0x152034(0x1bc)](),_0x1f62c0();})[_0x443cef(0x1f0)](()=>{const _0x1023f2=_0x443cef;this[_0x1023f2(0x191)](),_0x1f62c0();});});}[_0x3d4f63(0x1aa)](_0x43a2cc,_0x422afc=!0x1){const _0x1ade4d=_0x3d4f63,_0x549a71=Q[_0x1ade4d(0x194)](_0x43a2cc);_0x43a2cc=_0x549a71?_0x43a2cc[_0x1ade4d(0x1cf)](_0x549a71[0x1][_0x1ade4d(0x1ec)]):_0x43a2cc[_0x1ade4d(0x1ec)]<0x64&&!_0x422afc?'':this[_0x1ade4d(0x1d2)](_0x43a2cc);const _0x28e360=this[_0x1ade4d(0x192)][_0x1ade4d(0x1da)](_0x43a2cc,_0x1ade4d(0x18d));if(_0x549a71){const _0x1d1419=Array[_0x1ade4d(0x1bb)](_0x28e360[_0x1ade4d(0x1ee)][_0x1ade4d(0x1a5)]);_0x1d1419[_0x1ade4d(0x1c6)]();for(const _0x43f2da of _0x1d1419){if(_0x43f2da[_0x1ade4d(0x19b)]==Node[_0x1ade4d(0x19f)])break;_0x43f2da[_0x1ade4d(0x1c4)]();}}const _0x528896=this[_0x1ade4d(0x1ca)][_0x1ade4d(0x1b3)][_0x1ade4d(0x1b5)][_0x1ade4d(0x1c5)](this[_0x1ade4d(0x1f1)][_0x1ade4d(0x1a0)](_0x28e360[_0x1ade4d(0x1ee)]));this[_0x1ade4d(0x190)]()||this[_0x1ade4d(0x1d0)](_0x528896);const _0x3e0103=this[_0x1ade4d(0x1ca)][_0x1ade4d(0x1ac)][_0x1ade4d(0x1db)](_0x1ade4d(0x1b1)),_0x20b4c8=this[_0x1ade4d(0x1ca)][_0x1ade4d(0x1b3)][_0x1ade4d(0x1d1)](_0x528896);return _0x3e0103||_0x20b4c8[_0x1ade4d(0x1e7)][_0x1ade4d(0x1cd)](),this[_0x1ade4d(0x1ca)][_0x1ade4d(0x1b3)][_0x1ade4d(0x1dc)](_0x20b4c8);}[_0x3d4f63(0x1d0)](_0x35d285){const _0x24fa97=_0x3d4f63,_0x3c42df=new _0x14f110(this[_0x24fa97(0x1ca)][_0x24fa97(0x1b9)][_0x24fa97(0x1e2)][_0x24fa97(0x1ed)]),_0x31976e=new _0x3b87b9({'name':/^h[1-5]$/}),_0x547513=[];let _0x4767de=!0x1;for(const _0x438b87 of _0x35d285)_0x438b87['is'](_0x24fa97(0x19a))&&_0x31976e[_0x24fa97(0x1a1)](_0x438b87)&&(_0x547513[_0x24fa97(0x1be)](_0x438b87),'h1'==_0x438b87[_0x24fa97(0x1e9)]&&(_0x4767de=!0x0));if(_0x4767de){for(const _0x534cde of _0x547513)_0x3c42df[_0x24fa97(0x1e5)]('h'+(parseInt(_0x534cde[_0x24fa97(0x1e9)][0x1])+0x1),_0x534cde);}}[_0x3d4f63(0x190)](){const _0x38c44f=_0x3d4f63,{data:_0x20b047,editing:_0x43cfef}=this[_0x38c44f(0x1ca)],_0x17cbdd=_0x20b047[_0x38c44f(0x1d5)][_0x38c44f(0x1c5)](_0x38c44f(0x1a4)),_0x1f6d1f=_0x20b047[_0x38c44f(0x1c5)](_0x20b047[_0x38c44f(0x1d1)](_0x17cbdd));return!!_0x43cfef[_0x38c44f(0x1e2)][_0x38c44f(0x18f)][_0x38c44f(0x1c9)](_0x1f6d1f)[_0x38c44f(0x1ab)]('h1');}[_0x3d4f63(0x199)](_0x2f9b3b){const _0x3b99a6=_0x3d4f63;return this[_0x3b99a6(0x1ca)][_0x3b99a6(0x1b9)][_0x3b99a6(0x1e2)][_0x3b99a6(0x18f)][_0x3b99a6(0x1d8)](this[_0x3b99a6(0x1e1)],_0x2f9b3b),this[_0x3b99a6(0x1e1)][_0x3b99a6(0x195)];}[_0x3d4f63(0x1d2)](_0x259ea2){const _0x4d0f64=_0x3d4f63,_0x3a0c86=_0x259ea2[_0x4d0f64(0x1ad)]();return _0x3a0c86[_0x4d0f64(0x197)](_0x4d0f64(0x1d6))?_0x3a0c86[_0x4d0f64(0x1e6)](_0x4d0f64(0x1b6))?_0x3a0c86[_0x4d0f64(0x1cf)](0x7,_0x3a0c86[_0x4d0f64(0x1ec)]-0x3):_0x3a0c86[_0x4d0f64(0x1cf)](0x7):_0x259ea2;}}function _0x2b4f(){const _0x12167f=['remove','toView','reverse','message','_handleQuery','viewToDom','editor','submitPrompt','isProcessing','clear','makeRequest','substring','_normalizeResponseHeadings','toModel','_stripMarkdownSyntax','textAdapter','startProcessing','htmlProcessor','```html','tryAgainEvent','setContentOf','mainAction','parseFromString','get','stringify','catch','stopListening','4651003hKqZub','updateView','_sanitizationContainer','view','createElement','160LyeBLV','rename','endsWith','markers','once','name','previousContext','then','length','document','body','render','finally','_xmlSerializer','text/html','277407kMSMMp','domConverter','_isH1TagSupportEnabled','stopProcessing','_domParser','value','exec','innerHTML','18909uFFQLj','startsWith','initialContext','_sanitizeHTML','element','nodeType','currentContext','set','85jqDdWH','ELEMENT_NODE','serializeToString','match','previousQuery','currentResponse','<h1></h1>','childNodes','previousActionId','set:currentContext','previousLabel','abort','_parseAndNormalizeContent','querySelector','config','trim','171096qXpena','isRendered','finishProcessing','ai.aiAssistant.preserveComments','listenTo','data','229782YpnJdg','processor','```','10780xzugPY','233710YtCsaI','editing','prompt','from','handleError','reset','push','destroy','3wtvyOR','733204gWjoGn','custom','div'];_0x2b4f=function(){return _0x12167f;};return _0x2b4f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e1024=_0x2fe2;(function(_0x489c56,_0x3734d){const _0x4b3361=_0x2fe2,_0x340507=_0x489c56();while(!![]){try{const _0x435c3e=-parseInt(_0x4b3361(0xc1))/0x1+parseInt(_0x4b3361(0xa9))/0x2*(parseInt(_0x4b3361(0xc9))/0x3)+-parseInt(_0x4b3361(0xbb))/0x4+parseInt(_0x4b3361(0xe4))/0x5*(parseInt(_0x4b3361(0xdc))/0x6)+-parseInt(_0x4b3361(0xf8))/0x7+parseInt(_0x4b3361(0xe9))/0x8*(parseInt(_0x4b3361(0xfd))/0x9)+parseInt(_0x4b3361(0xe5))/0xa;if(_0x435c3e===_0x3734d)break;else _0x340507['push'](_0x340507['shift']());}catch(_0x3995f){_0x340507['push'](_0x340507['shift']());}}}(_0x45e9,0x383ac));import{global as _0x1f7438}from'ckeditor5/src/utils.js';import{View as _0x32dbfa,ButtonView as _0x15a102,SpinnerView as _0x5d981b}from'ckeditor5/src/ui.js';function _0x2fe2(_0x49325f,_0x21d7ef){const _0x45e901=_0x45e9();return _0x2fe2=function(_0x2fe285,_0x54747b){_0x2fe285=_0x2fe285-0xa9;let _0x4906e3=_0x45e901[_0x2fe285];return _0x4906e3;},_0x2fe2(_0x49325f,_0x21d7ef);}import{IconCheck as _0x39040e,IconCopy as _0x3a0e04}from'ckeditor5/src/icons.js';import{getTranslation as _0x5ce9b0}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x32dbfa{[_0x2e1024(0xad)];[_0x2e1024(0xcc)];constructor(_0xafd692,_0x32b908=''){const _0x368491=_0x2e1024;super(_0xafd692),this[_0x368491(0xbc)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x56bfc3=this[_0x368491(0xab)];this[_0x368491(0xad)]=new ContentFieldView(_0xafd692,_0x32b908),this[_0x368491(0xcc)]=this[_0x368491(0xf1)](),this[_0x368491(0xfb)]({'tag':_0x368491(0xdf),'attributes':{'class':['ck',_0x368491(0xb3),_0x56bfc3['if'](_0x368491(0xd3),_0x368491(0xae),_0x547748=>!_0x547748)],'tabindex':'-1'},'children':[{'tag':_0x368491(0xdf),'attributes':{'class':['ck',_0x368491(0xaf),_0x56bfc3['if'](_0x368491(0xee),_0x368491(0xba))]},'children':[this[_0x368491(0xad)],{'tag':_0x368491(0xdf),'attributes':{'class':['ck',_0x368491(0xb4)]},'children':[this[_0x368491(0xcc)]]}]}]});}[_0x2e1024(0xef)](){const _0x4e8545=_0x2e1024;super[_0x4e8545(0xef)](),this[_0x4e8545(0xcb)]&&this[_0x4e8545(0xad)][_0x4e8545(0xe8)](this[_0x4e8545(0xcb)]);let _0x34b83c=!0x1;this['on'](_0x4e8545(0xb6),(_0x47a85a,_0x303389,_0xecdddc)=>{const _0x111cf8=_0x4e8545,_0x30c63e=!this[_0x111cf8(0xad)][_0x111cf8(0xbd)][_0x111cf8(0xd0)](_0x111cf8(0xea));this[_0x111cf8(0xad)][_0x111cf8(0xe8)](_0xecdddc),this[_0x111cf8(0xee)]&&_0x30c63e&&!_0x34b83c&&this[_0x111cf8(0xbd)][_0x111cf8(0xd2)]({'top':this[_0x111cf8(0xbd)][_0x111cf8(0xbf)],'behavior':_0x111cf8(0xb0)});}),this['on'](_0x4e8545(0xfa),(_0x5a3277,_0x5f3413,_0x14a8e8)=>{const _0x9d9fb9=_0x4e8545;_0x34b83c=!0x1,_0x14a8e8?(this[_0x9d9fb9(0xcb)]=null,this[_0x9d9fb9(0xad)][_0x9d9fb9(0xde)]()):this[_0x9d9fb9(0xcb)]||this[_0x9d9fb9(0xad)][_0x9d9fb9(0xe8)]('');}),this[_0x4e8545(0xd6)](this[_0x4e8545(0xbd)],_0x4e8545(0xc5),()=>{_0x34b83c=!0x0;}),this[_0x4e8545(0xd6)](this[_0x4e8545(0xbd)],_0x4e8545(0xf9),()=>{_0x34b83c=!0x0;});}[_0x2e1024(0xdb)](){const _0x2404da=_0x2e1024;this[_0x2404da(0xbd)][_0x2404da(0xdb)]();}[_0x2e1024(0xf1)](){const _0x5525b1=_0x2e1024,_0x4564dd=this[_0x5525b1(0xc4)],_0x3dd088=new _0x15a102(this[_0x5525b1(0xc4)]),_0x44c9fc=_0x5525b1(0xe6);return _0x3dd088[_0x5525b1(0xbc)]({'label':_0x5ce9b0(_0x4564dd,_0x5525b1(0xf0)),'icon':_0x3a0e04,'class':_0x44c9fc,'tooltip':!0x0}),_0x3dd088[_0x5525b1(0xb5)](_0x5525b1(0xd3))['to'](this,_0x5525b1(0xcb),_0x2cb994=>!!_0x2cb994),_0x3dd088[_0x5525b1(0xb5)](_0x5525b1(0xb9))['to'](this,_0x5525b1(0xee),_0x28d570=>!_0x28d570),_0x3dd088['on'](_0x5525b1(0xb2),()=>{const _0x48e6e6=_0x5525b1;this[_0x48e6e6(0xf7)](this[_0x48e6e6(0xad)][_0x48e6e6(0xbd)]),_0x3dd088[_0x48e6e6(0xe3)]=_0x39040e,_0x3dd088[_0x48e6e6(0xe2)]=_0x44c9fc+_0x48e6e6(0xf2),this[_0x48e6e6(0xdb)](),setTimeout(()=>{const _0x2119b1=_0x48e6e6;_0x3dd088[_0x2119b1(0xe3)]=_0x3a0e04,_0x3dd088[_0x2119b1(0xe2)]=_0x44c9fc;},0x3e8);}),_0x3dd088;}[_0x2e1024(0xf7)](_0x1886af){const _0x29bdc1=_0x2e1024,{window:_0x608916,document:_0x5bc30b}=_0x1f7438;if(_0x608916[_0x29bdc1(0xd7)]){const {Blob:_0x19d492,ClipboardItem:_0x398d3f}=_0x608916,_0x143607=[new _0x398d3f({'text/html':new _0x19d492([_0x1886af[_0x29bdc1(0xe7)]],{'type':_0x29bdc1(0xb7)}),'text/plain':new _0x19d492([_0x1886af[_0x29bdc1(0xaa)]||''],{'type':_0x29bdc1(0xca)})})];navigator[_0x29bdc1(0xfc)][_0x29bdc1(0xcd)](_0x143607);}else{const _0x58bb14=_0x5bc30b[_0x29bdc1(0xdd)](_0x29bdc1(0xdf));_0x58bb14[_0x29bdc1(0xe1)][_0x29bdc1(0xb8)]=_0x29bdc1(0xec),_0x58bb14[_0x29bdc1(0xe1)][_0x29bdc1(0xc8)]=_0x29bdc1(0xd1),_0x58bb14[_0x29bdc1(0xe7)]=_0x29bdc1(0xce)+_0x1886af[_0x29bdc1(0xe7)]+_0x29bdc1(0xc3),_0x5bc30b[_0x29bdc1(0xf5)][_0x29bdc1(0xb1)](_0x58bb14);const _0x4ca79f=_0x5bc30b[_0x29bdc1(0xc2)]();_0x4ca79f[_0x29bdc1(0xac)](_0x58bb14[_0x29bdc1(0xd9)]),_0x4ca79f[_0x29bdc1(0xc6)](_0x58bb14[_0x29bdc1(0xf3)]);const _0x367210=_0x608916[_0x29bdc1(0xbe)]();_0x367210[_0x29bdc1(0xc0)](),_0x367210[_0x29bdc1(0xcf)](_0x4ca79f),_0x5bc30b[_0x29bdc1(0xda)](_0x29bdc1(0xc7)),_0x58bb14[_0x29bdc1(0xeb)]();}}}export class ContentFieldView extends _0x32dbfa{constructor(_0x2de4e6,_0x56caf4=''){const _0x9cd1df=_0x2e1024;super(_0x2de4e6),this[_0x9cd1df(0xd8)]=this[_0x9cd1df(0xed)](),this[_0x9cd1df(0xfb)]({'tag':_0x9cd1df(0xdf),'attributes':{'class':['ck',_0x9cd1df(0xf4),_0x56caf4,_0x9cd1df(0xf6),_0x9cd1df(0xd5)]}});}[_0x2e1024(0xe8)](_0x3936bd){const _0x45145e=_0x2e1024;this[_0x45145e(0xbd)][_0x45145e(0xe7)]=_0x3936bd;}[_0x2e1024(0xde)](){const _0x405326=_0x2e1024;this[_0x405326(0xbd)][_0x405326(0xb1)](this[_0x405326(0xd8)][_0x405326(0xbd)]);}[_0x2e1024(0xed)](){const _0x9e41cd=_0x2e1024,_0x5ba379=new _0x32dbfa(),_0x8a8f93=this[_0x9e41cd(0xc4)],_0x2b9e2a=new _0x5d981b();return _0x2b9e2a[_0x9e41cd(0xd3)]=!0x0,_0x5ba379[_0x9e41cd(0xfb)]({'tag':_0x9e41cd(0xdf),'attributes':{'class':['ck',_0x9e41cd(0xd4)]},'children':[_0x2b9e2a,{'text':_0x5ce9b0(_0x8a8f93,_0x9e41cd(0xe0))}]}),_0x5ba379[_0x9e41cd(0xef)](),_0x5ba379;}}function _0x45e9(){const _0x1cb8b3=['focus','650478IeoFec','createElement','appendLoader','div','AI\x20is\x20writing...','style','class','icon','5LlJpmT','5019370NdsSCL','ck-ai-form__copy-button','innerHTML','setContent','200vQkTSM','.ck-ai-form__loader','remove','absolute','_createLoader','isProcessing','render','Copy','_createCopyButton','\x20ck-ai-form__copy-button--copied','lastElementChild','ck-content','body','ck-reset_all-excluded','_copyHTMLToClipboard','2493778NVBbQo','mousedown','change:isProcessing','setTemplate','clipboard','47151bBgYeE','4MFdZEc','textContent','bindTemplate','setStartAfter','contentFieldView','ck-hidden','ck-ai-form__content-area','smooth','appendChild','execute','ck-ai-form__content-area-wrapper','ck-ai-form__copy-button-wrapper','bind','change:value','text/html','position','isEnabled','ck-ai-form__content-area--processing','863940xoExsB','set','element','getSelection','scrollHeight','removeAllRanges','81800bFCTWv','createRange','<span>]</span>','locale','wheel','setEndBefore','copy','left','214545xjdPeI','text/plain','value','copyButtonView','write','<span>[</span>','addRange','querySelector','-9999px','scrollTo','isVisible','ck-ai-form__loader','ck-ai-form__content-field','listenTo','ClipboardItem','loaderView','firstElementChild','execCommand'];_0x45e9=function(){return _0x1cb8b3;};return _0x45e9();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x39c23b,_0x2ffb02){const _0x5066ab=_0x12e9,_0x5980b1=_0x39c23b();while(!![]){try{const _0x4aa44a=parseInt(_0x5066ab(0x170))/0x1*(parseInt(_0x5066ab(0x17d))/0x2)+-parseInt(_0x5066ab(0x178))/0x3*(-parseInt(_0x5066ab(0x16e))/0x4)+parseInt(_0x5066ab(0x172))/0x5*(-parseInt(_0x5066ab(0x17b))/0x6)+-parseInt(_0x5066ab(0x17e))/0x7*(-parseInt(_0x5066ab(0x179))/0x8)+-parseInt(_0x5066ab(0x17a))/0x9*(parseInt(_0x5066ab(0x17f))/0xa)+-parseInt(_0x5066ab(0x16c))/0xb*(-parseInt(_0x5066ab(0x171))/0xc)+parseInt(_0x5066ab(0x16d))/0xd;if(_0x4aa44a===_0x2ffb02)break;else _0x5980b1['push'](_0x5980b1['shift']());}catch(_0x460b0f){_0x5980b1['push'](_0x5980b1['shift']());}}}(_0x5110,0x9ee97));function _0x5110(){const _0x1f8d69=['setTemplate','1023678ISZTTW','7SYdsxP','220xjTtRP','11yJXOJq','5236153sRQQho','2114044lddzZx','text','2BgtmmO','1819896tqSNPX','6331065ROTNdY','content','div','set','ck-ai-form__error','bindTemplate','3hlrwIL','5301616FpYvgl','348633whpRqZ','6EEztuX'];_0x5110=function(){return _0x1f8d69;};return _0x5110();}function _0x12e9(_0x512106,_0x137bc7){const _0x511040=_0x5110();return _0x12e9=function(_0x12e952,_0x1dcfcd){_0x12e952=_0x12e952-0x16c;let _0x18bbd1=_0x511040[_0x12e952];return _0x18bbd1;},_0x12e9(_0x512106,_0x137bc7);}import{IconError as _0xfa99ac}from'ckeditor5/src/icons.js';import{View as _0x3b1561,IconView as _0x32544f}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x3b1561{constructor(_0x3a5f1f,_0x3fb1ef=''){const _0xd35eda=_0x12e9;super(_0x3a5f1f);const _0x37550b=new _0x32544f(),_0x29e257=this[_0xd35eda(0x177)];this[_0xd35eda(0x175)](_0xd35eda(0x16f),_0x3fb1ef),_0x37550b[_0xd35eda(0x173)]=_0xfa99ac,this[_0xd35eda(0x17c)]({'tag':_0xd35eda(0x174),'attributes':{'class':['ck',_0xd35eda(0x176)]},'children':[_0x37550b,{'text':_0x29e257['to'](_0xd35eda(0x16f))}]});}}
|