@ckeditor/ckeditor5-ai 47.4.0-alpha.5 → 47.4.0-alpha.6
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 +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(_0xaf80e2,_0x354085){const _0x590266=_0x53b9,_0x10ffec=_0xaf80e2();while(!![]){try{const _0x259e37=parseInt(_0x590266(0x1d6))/0x1*(-parseInt(_0x590266(0x1c8))/0x2)+-parseInt(_0x590266(0x1f4))/0x3*(parseInt(_0x590266(0x222))/0x4)+parseInt(_0x590266(0x1c4))/0x5+parseInt(_0x590266(0x207))/0x6+parseInt(_0x590266(0x215))/0x7*(-parseInt(_0x590266(0x1fc))/0x8)+-parseInt(_0x590266(0x1fb))/0x9*(-parseInt(_0x590266(0x1fe))/0xa)+parseInt(_0x590266(0x1ff))/0xb;if(_0x259e37===_0x354085)break;else _0x10ffec['push'](_0x10ffec['shift']());}catch(_0x4afaa5){_0x10ffec['push'](_0x10ffec['shift']());}}}(_0x497a,0xf13f8));import{findOne as _0x4da8da,getAttribute as _0x8e6105,Document as _0x22ef40,serialize as _0x4a69e3,parse as _0x5dc5e7}from'./htmlparser.js';import{fixElementSuggestionRange as _0x29b2f2}from'ckeditor5-collaboration/src/collaboration-core.js';import{ModelRange as _0x505ea1,_DetachOperation as _0xab38a8,_removeFromModelNodeList as _0x506699,_insertIntoModelNodeList as _0x3e7419}from'ckeditor5/src/engine.js';import{uid as _0x1a1cc4}from'ckeditor5/src/utils.js';export function getSuggestionPartsFromReply({editor:_0x470e33,changeGroups:_0x19c494,documentContextContent:_0x337e36,showDiff:_0x5e2d7d,trimUnchanged:_0x58cf61=!0x0}){const _0x331070=_0x53b9;return _0x19c494[_0x331070(0x1dc)](_0x5dc321=>{const _0x17288a=_0x331070,_0x3a6547=new _0x22ef40([]),_0x51b346=new _0x22ef40([]);for(const _0x55c66d of _0x5dc321[_0x17288a(0x214)])if(_0x5e2d7d&&_0x17288a(0x1c5)==_0x55c66d[_0x17288a(0x21d)]||_0x51b346[_0x17288a(0x217)][_0x17288a(0x216)](_0x55c66d[_0x17288a(0x200)][_0x17288a(0x226)](!0x0)),_0x17288a(0x1d1)!=_0x55c66d[_0x17288a(0x21d)]&&(_0x5e2d7d||_0x17288a(0x1c5)!=_0x55c66d[_0x17288a(0x21d)])){const _0x392569=_0x4da8da(_0x58f924=>_0x8e6105(_0x58f924,_0x17288a(0x1e0))==_0x55c66d['id'],_0x337e36,!0x0);_0x392569&&_0x3a6547[_0x17288a(0x217)][_0x17288a(0x216)](_0x392569[_0x17288a(0x226)](!0x0));}const {content:_0x49741d,hasChanges:_0x4cdaf9}=function(_0x705d81,_0x219384,_0x2aa57a,_0xbe5b09,_0x51bf13=!0x0){const _0x275557=_0x17288a,_0x47bc65=_0x705d81[_0x275557(0x1ca)][_0x275557(0x205)](_0x275557(0x1fa)),_0x197f7b=_0x4a69e3(_0x219384),_0xf4be69=_0x4a69e3(_0x2aa57a),_0x5f501a=_0x705d81[_0x275557(0x203)][_0x275557(0x1c6)](_0x197f7b,_0x275557(0x201)),_0x2f0cb9=_0x705d81[_0x275557(0x21e)][_0x275557(0x223)](_0x5f501a,0x0),_0x3a708a=_0x47bc65[_0x275557(0x225)](_0x197f7b,_0xf4be69,{'anchor':_0x2f0cb9,'markDeletions':_0xbe5b09}),_0x535bea=_0x3a708a[_0x275557(0x1ec)]();if(0x0==_0x535bea[_0x275557(0x22c)])return{'content':_0x219384[_0x275557(0x226)](!0x0),'hasChanges':!0x1};_0xbe5b09?function(_0x2f10aa,_0x383ed7,_0x2e2eb1){const _0x222e90=_0x275557;if(0x0==_0x2f10aa[_0x222e90(0x22c)])return;const _0x3161c8=_0x2e2eb1[_0x222e90(0x1ca)][_0x222e90(0x205)](_0x222e90(0x1fa)),_0x4ded49=_0x2e2eb1[_0x222e90(0x1ca)][_0x222e90(0x205)](_0x222e90(0x1e4));_0x2e2eb1[_0x222e90(0x21e)][_0x222e90(0x20d)](_0x55f52d=>{const _0x203c65=_0x222e90,_0x129e10=new Set();for(let _0x2627c8=0x0;_0x2627c8<_0x2f10aa[_0x203c65(0x22c)];_0x2627c8++){const _0x4cd36b=_0x2f10aa[_0x2627c8];if(_0x4cd36b[_0x203c65(0x1de)]=null,_0x4cd36b[_0x203c65(0x228)]=!0x1,_0x3161c8[_0x203c65(0x1c2)](_0x4cd36b)){const _0xa026eb=_0x29b2f2(_0x4cd36b[_0x203c65(0x1db)],_0x2e2eb1[_0x203c65(0x21e)]),_0x15444b=_0x203c65(0x1e3)+_0x1a1cc4()+_0x203c65(0x206);_0x383ed7[_0x203c65(0x21a)][_0x203c65(0x1d3)](_0x15444b,_0xa026eb);}else switch(_0x4cd36b[_0x203c65(0x21d)]){case _0x203c65(0x20c):{if(_0x4cd36b[_0x203c65(0x1c3)]==_0x4cd36b[_0x203c65(0x1e8)])break;_0x55f52d[_0x203c65(0x1e1)][_0x203c65(0x227)](_0x4cd36b),_0x2e2eb1[_0x203c65(0x21e)][_0x203c65(0x1c9)](_0x4cd36b);const _0x1a4405=_0x203c65(0x210),_0x5d3544=_0x4cd36b[_0x203c65(0x22a)],_0x1cf9e9=_0x2e2eb1[_0x203c65(0x21e)][_0x203c65(0x1f2)](_0x5d3544,_0x2e2eb1[_0x203c65(0x21e)][_0x203c65(0x223)](_0x5d3544[_0x203c65(0x202)],_0x203c65(0x1d2))),_0x465042=_0x203c65(0x20a)+_0x1a4405+':'+_0x1a1cc4()+_0x203c65(0x206);_0x383ed7[_0x203c65(0x21a)][_0x203c65(0x1d3)](_0x465042,_0x1cf9e9);break;}case _0x203c65(0x1e2):case _0x203c65(0x1d4):case _0x203c65(0x1cb):{if(_0x4cd36b[_0x203c65(0x21f)]==_0x4cd36b[_0x203c65(0x1e5)])break;_0x55f52d[_0x203c65(0x1e1)][_0x203c65(0x227)](_0x4cd36b),_0x2e2eb1[_0x203c65(0x21e)][_0x203c65(0x1c9)](_0x4cd36b);const _0x207d13=_0x4cd36b[_0x203c65(0x20f)];if(!_0x4ded49[_0x203c65(0x1ef)](_0x207d13))break;const _0x49c43e=_0x29b2f2(_0x4cd36b[_0x203c65(0x1d8)],_0x2e2eb1[_0x203c65(0x21e)]),_0x528c7f=_0x203c65(0x20a)+_0x207d13+':'+_0x1a1cc4()+_0x203c65(0x206);_0x383ed7[_0x203c65(0x21a)][_0x203c65(0x1d3)](_0x528c7f,_0x49c43e);break;}case _0x203c65(0x1e6):{_0x55f52d[_0x203c65(0x1e1)][_0x203c65(0x227)](_0x4cd36b),_0x2e2eb1[_0x203c65(0x21e)][_0x203c65(0x1c9)](_0x4cd36b);if(_0x2f10aa[_0x2627c8+0x1]&&_0x203c65(0x1bd)==_0x2f10aa[_0x2627c8+0x1][_0x203c65(0x21d)]){ro(_0x383ed7,_0x4cd36b);break;}const _0xe24a34=_0x4cd36b[_0x203c65(0x22a)],_0x2ecc18=_0x4cd36b[_0x203c65(0x1f8)],_0x162e48=_0x29b2f2(_0x2e2eb1[_0x203c65(0x21e)][_0x203c65(0x1f2)](_0xe24a34,_0xe24a34[_0x203c65(0x1d9)](_0x2ecc18)),_0x2e2eb1[_0x203c65(0x21e)]),_0x10b450=_0x203c65(0x221)+_0x1a1cc4()+_0x203c65(0x206);_0x383ed7[_0x203c65(0x21a)][_0x203c65(0x1d3)](_0x10b450,_0x162e48);break;}case _0x203c65(0x1d0):{_0x55f52d[_0x203c65(0x1e1)][_0x203c65(0x227)](_0x4cd36b),_0x2e2eb1[_0x203c65(0x21e)][_0x203c65(0x1c9)](_0x4cd36b);const _0x35c09f=_0x4cd36b[_0x203c65(0x21c)],_0x14cada=_0x4cd36b[_0x203c65(0x1b9)],_0x2894e7=_0x2e2eb1[_0x203c65(0x21e)][_0x203c65(0x1f2)](_0x35c09f,_0x14cada),_0x331682=_0x203c65(0x221)+_0x1a1cc4()+_0x203c65(0x206);_0x383ed7[_0x203c65(0x21a)][_0x203c65(0x1d3)](_0x331682,_0x2894e7);break;}case _0x203c65(0x1bd):{_0x55f52d[_0x203c65(0x1e1)][_0x203c65(0x227)](_0x4cd36b),_0x2e2eb1[_0x203c65(0x21e)][_0x203c65(0x1c9)](_0x4cd36b),_0x2f10aa[_0x2627c8-0x1]&&_0x203c65(0x1e6)==_0x2f10aa[_0x2627c8-0x1][_0x203c65(0x21d)]&&ro(_0x383ed7,_0x4cd36b);const _0x53f82e=_0x4cd36b[_0x203c65(0x209)](),_0x4a1f4c=_0x4cd36b[_0x203c65(0x1f8)];for(let _0x2f5b24=0x0;_0x2f5b24<_0x4a1f4c;_0x2f5b24++){const _0x349b65=_0x53f82e[_0x203c65(0x1d9)](_0x2f5b24)[_0x203c65(0x202)];_0x129e10[_0x203c65(0x1e7)](_0x349b65);}break;}case _0x203c65(0x1cc):{const _0x29f90f=_0x4cd36b[_0x203c65(0x1f3)],_0x4c7690=_0x4cd36b[_0x203c65(0x1f8)],_0x41eebe=new _0xab38a8(_0x29f90f,_0x4c7690);_0x55f52d[_0x203c65(0x1e1)][_0x203c65(0x227)](_0x41eebe),_0x2e2eb1[_0x203c65(0x21e)][_0x203c65(0x1c9)](_0x41eebe);break;}}}for(const _0x3c5ef3 of _0x129e10){const _0x595752=_0x2e2eb1[_0x203c65(0x21e)][_0x203c65(0x218)](_0x3c5ef3),_0x1aabd1=_0x203c65(0x1f7)+_0x1a1cc4()+_0x203c65(0x206);_0x383ed7[_0x203c65(0x21a)][_0x203c65(0x1d3)](_0x1aabd1,_0x29b2f2(_0x595752,_0x2e2eb1[_0x203c65(0x21e)]));}});}(_0x535bea,_0x5f501a,_0x705d81):_0x705d81[_0x275557(0x21e)][_0x275557(0x20d)](_0x2a19b7=>{const _0x39e25f=_0x275557;for(const _0x41c203 of _0x535bea)if(_0x39e25f(0x1cc)==_0x41c203[_0x39e25f(0x21d)]){const _0x10cc6a=_0x41c203[_0x39e25f(0x1f3)],_0x3da64e=_0x41c203[_0x39e25f(0x1f8)],_0x5c576c=new _0xab38a8(_0x10cc6a,_0x3da64e);_0x2a19b7[_0x39e25f(0x1e1)][_0x39e25f(0x227)](_0x5c576c),_0x705d81[_0x39e25f(0x21e)][_0x39e25f(0x1c9)](_0x5c576c);}else{if(_0x39e25f(0x1be)==_0x41c203[_0x39e25f(0x21d)]){const _0x505f2d=_0x41c203[_0x39e25f(0x220)],_0x648db0=_0x41c203[_0x39e25f(0x1db)];_0x5f501a[_0x39e25f(0x21a)][_0x39e25f(0x1d3)](_0x505f2d,_0x648db0);}else _0x41c203[_0x39e25f(0x1de)]=null,_0x41c203[_0x39e25f(0x228)]=!0x1,_0x2a19b7[_0x39e25f(0x1e1)][_0x39e25f(0x227)](_0x41c203),_0x705d81[_0x39e25f(0x21e)][_0x39e25f(0x1c9)](_0x41c203);}});if(_0x51bf13){const _0x4ba4ad=getMinimalSelection(_0x705d81,_0x535bea,_0x5f501a);expandSelectionWithContext(_0x705d81[_0x275557(0x21e)],_0x4ba4ad),function(_0x997504,_0x11937d){const _0x400895=_0x275557,_0x5b835c=_0x11937d[_0x400895(0x1cf)]()[_0x400895(0x1da)];let _0x5d07ac=_0x11937d[_0x400895(0x1cf)]()[_0x400895(0x1d2)];const _0x4884fa=_0x5b835c[_0x400895(0x1bf)];(_0x5d07ac[_0x400895(0x229)]||_0x5d07ac[_0x400895(0x202)]&&_0x5d07ac[_0x400895(0x202)]['is'](_0x400895(0x1bc)))&&(_0x3e7419(_0x5d07ac,_0x400895(0x211)),_0x5d07ac=_0x5d07ac[_0x400895(0x1d9)](0x3)),(_0x5b835c[_0x400895(0x229)]||_0x5b835c[_0x400895(0x208)]&&_0x5b835c[_0x400895(0x208)]['is'](_0x400895(0x1bc)))&&(_0x3e7419(_0x5b835c,_0x400895(0x211)),function(_0xe1b5d,_0x4883a7,_0x67f674){const _0x80109=_0x400895;for(let [_0x16cf8a,_0x3aa4ca]of _0xe1b5d[_0x80109(0x21a)]){const _0x275599=_0x3aa4ca[_0x80109(0x22b)](_0x4883a7,_0x67f674,!0x1);_0x3aa4ca=_0x275599[0x0],_0xe1b5d[_0x80109(0x21a)][_0x80109(0x1d3)](_0x16cf8a,_0x3aa4ca);}}(_0x4884fa,_0x5b835c,0x3),_0x5b835c[_0x400895(0x1b7)]==_0x5d07ac[_0x400895(0x1b7)]&&(_0x5d07ac=_0x5d07ac[_0x400895(0x1d9)](0x3)));const _0x2139cc=_0x997504[_0x400895(0x1f2)](_0x997504[_0x400895(0x223)](_0x4884fa,0x0),_0x5b835c),_0x31f8f1=_0x997504[_0x400895(0x1f2)](_0x5d07ac,_0x997504[_0x400895(0x223)](_0x4884fa,_0x400895(0x1d2))),_0x1db46a=[..._0x2139cc[_0x400895(0x1f9)](),..._0x31f8f1[_0x400895(0x1f9)]()];_0x1db46a[_0x400895(0x1ce)]();for(const _0x1599f6 of _0x1db46a)_0x506699(_0x1599f6),_transformMarkersByDeletion(_0x4884fa,_0x1599f6);}(_0x705d81[_0x275557(0x21e)],_0x4ba4ad);}const _0x3ed163=_0x705d81[_0x275557(0x203)][_0x275557(0x1d5)](_0x5f501a,{'showSuggestionHighlights':!0x0});return{'content':_0x5dc5e7(_0x3ed163),'hasChanges':!0x0};}(_0x470e33,_0x3a6547,_0x51b346,_0x5e2d7d,_0x58cf61);return{'type':_0x5dc321[_0x17288a(0x214)][0x0][_0x17288a(0x21d)],'index':_0x5dc321[_0x17288a(0x224)],'content':_0x49741d,'hasChanges':_0x4cdaf9};});}function _0x497a(){const _0x4dadd7=['children','createRangeOn','_createFromRanges','markers','delete','splitPosition','type','model','oldValue','name','suggestion:insertion:','4SOtGxl','createPositionAt','index','getDiff','cloneNode','addOperation','isDocumentOperation','textNode','position','_getTransformedByInsertion','length','parent','isBefore','moveTargetPosition','schema','isObject','$text','move','marker','root','targetPosition','clone','isMarkedRemoveOperation','oldName','8091475zNVOWY','removed','parse','toNone','4ZAEkAl','applyOperation','plugins','changeAttribute','remove','element','reverse','getFirstRange','split','new','end','set','removeAttribute','stringify','862001sBEHAj','setTo','range','getShiftedBy','start','newRange','map','backward','baseVersion','isBlock','data-id','batch','addAttribute','suggestion:deletion:','SuggestionsConversion','newValue','insert','add','newName','focus','path','getTransformedByOperation','getOperations','_getTransformedByDeletion','isAfter','isRegisteredAttribute','POSITIVE_INFINITY','createSelection','createRange','sourcePosition','3639642qoQOcs','offset','slice','suggestion:formatBlock:$fakeWrap:','howMany','getMinimalFlatRanges','DocumentCompare','4692024jNeVfF','24ercLZE','createPositionFromPath','10MJCQUu','14596065hJAvUv','node','$root','nodeAfter','data','modifySelection','get',':$aiSuggestion','7849794INGufv','nodeBefore','getMovedRangeStart','suggestion:attribute:','merge','rename','change','forward','key','$elementName','...','stickiness','word','changes','1982113LZmAhE','push'];_0x497a=function(){return _0x4dadd7;};return _0x497a();}function ro(_0x20c4ae,_0x47ced8){const _0x991609=_0x53b9;for(const [_0x4163e8,_0xf71930]of _0x20c4ae[_0x991609(0x21a)]){const _0x319e2a=_0x505ea1[_0x991609(0x219)](_0xf71930[_0x991609(0x1eb)](_0x47ced8));_0x20c4ae[_0x991609(0x21a)][_0x991609(0x1d3)](_0x4163e8,_0x319e2a);}}export function getMinimalSelection(_0x58ea22,_0x285e85,_0x2118ac){const _0x26a886=_0x53b9,_0x74baa6=_0x58ea22[_0x26a886(0x1ca)][_0x26a886(0x205)](_0x26a886(0x1fa));let _0x2daaba=_0x58ea22[_0x26a886(0x21e)][_0x26a886(0x223)](_0x2118ac,Number[_0x26a886(0x1f0)]),_0xe83f5d=_0x58ea22[_0x26a886(0x21e)][_0x26a886(0x223)](_0x2118ac,0x0);for(const _0x53659a of _0x285e85){let _0x4ff351,_0x360370;if(_0x74baa6[_0x26a886(0x1c2)](_0x53659a))_0x4ff351=_0x53659a[_0x26a886(0x1db)][_0x26a886(0x1da)],_0x360370=_0x53659a[_0x26a886(0x1db)][_0x26a886(0x1d2)];else switch(_0x2daaba=_0x2daaba[_0x26a886(0x1eb)](_0x53659a),_0xe83f5d=_0xe83f5d[_0x26a886(0x1eb)](_0x53659a),_0x53659a[_0x26a886(0x21d)]){case _0x26a886(0x20c):_0x4ff351=_0x53659a[_0x26a886(0x22a)],_0x360370=_0x4ff351[_0x26a886(0x1d9)](0x1);break;case _0x26a886(0x1e2):case _0x26a886(0x1d4):case _0x26a886(0x1cb):_0x4ff351=_0x53659a[_0x26a886(0x1d8)][_0x26a886(0x1da)],_0x360370=_0x53659a[_0x26a886(0x1d8)][_0x26a886(0x1d2)];break;case _0x26a886(0x1e6):_0x4ff351=_0x53659a[_0x26a886(0x22a)],_0x360370=_0x4ff351[_0x26a886(0x1d9)](_0x53659a[_0x26a886(0x1f8)]);break;case _0x26a886(0x1d0):_0x4ff351=_0x53659a[_0x26a886(0x21c)],_0x360370=_0x53659a[_0x26a886(0x1b9)];break;case _0x26a886(0x20b):{const _0x14dc23=_0x53659a[_0x26a886(0x1c0)][_0x26a886(0x1ea)][_0x26a886(0x1f6)](0x0,-0x1);_0x4ff351=_0x58ea22[_0x26a886(0x21e)][_0x26a886(0x1fd)](_0x2118ac,_0x14dc23),_0x360370=_0x4ff351[_0x26a886(0x1d9)](0x1);break;}case _0x26a886(0x1cc):{const _0x55e86a=_0x53659a[_0x26a886(0x1f8)],_0xacd058=_0x53659a[_0x26a886(0x1f3)][_0x26a886(0x22b)](_0x53659a[_0x26a886(0x1c0)],_0x55e86a),_0xdd1e09=_0x53659a[_0x26a886(0x209)]();_0x26a886(0x1cc)==_0x53659a[_0x26a886(0x21d)]?(_0x4ff351=_0xacd058,_0x360370=_0xacd058):(_0x4ff351=_0xdd1e09,_0x360370=_0xdd1e09[_0x26a886(0x1d9)](_0x55e86a));break;}}_0x4ff351&&_0x4ff351[_0x26a886(0x1b8)](_0x2daaba)&&(_0x2daaba=_0x4ff351[_0x26a886(0x1c1)](),_0x2daaba[_0x26a886(0x212)]=_0x26a886(0x1c7)),_0x360370&&_0x360370[_0x26a886(0x1ee)](_0xe83f5d)&&(_0xe83f5d=_0x360370[_0x26a886(0x1c1)](),_0xe83f5d[_0x26a886(0x212)]=_0x26a886(0x1c7));}return _0x58ea22[_0x26a886(0x21e)][_0x26a886(0x1f1)](_0x58ea22[_0x26a886(0x21e)][_0x26a886(0x1f2)](_0x2daaba,_0xe83f5d));}function _0x53b9(_0x2539f8,_0x52caa5){const _0x497af4=_0x497a();return _0x53b9=function(_0x53b992,_0x192230){_0x53b992=_0x53b992-0x1b7;let _0x3c4122=_0x497af4[_0x53b992];return _0x3c4122;},_0x53b9(_0x2539f8,_0x52caa5);}export function expandSelectionWithContext(_0x10d0f8,_0x10ed96){const _0xaa721=_0x53b9;so(_0x10d0f8,_0x10ed96,_0xaa721(0x20e));const _0x16934b=_0x10ed96[_0xaa721(0x1cf)]();_0x10ed96[_0xaa721(0x1d7)]([]),_0x10ed96[_0xaa721(0x1d7)](_0x16934b,{'backward':!0x0}),so(_0x10d0f8,_0x10ed96,_0xaa721(0x1dd));}function so(_0x37c1a6,_0x29f376,_0x344729){const _0x58e5aa=_0x53b9;let _0x57f35a=0x14;for(;_0x57f35a;){_0x37c1a6[_0x58e5aa(0x204)](_0x29f376,{'unit':_0x58e5aa(0x213),'direction':_0x344729}),_0x57f35a--;const _0x478bcb=_0x29f376[_0x58e5aa(0x1e9)][_0x58e5aa(0x20e)==_0x344729?_0x58e5aa(0x208):_0x58e5aa(0x202)];if(_0x478bcb&&_0x478bcb['is'](_0x58e5aa(0x1cd))&&_0x37c1a6[_0x58e5aa(0x1ba)][_0x58e5aa(0x1df)](_0x478bcb)&&_0x37c1a6[_0x58e5aa(0x1ba)][_0x58e5aa(0x1bb)](_0x478bcb))break;}}export function _transformMarkersByDeletion(_0x4b6f6a,_0x3782a0){const _0x190ead=_0x53b9;for(const [_0x17a8b7,_0x1ebd43]of _0x4b6f6a[_0x190ead(0x21a)]){const _0x49f6e1=_0x1ebd43[_0x190ead(0x1ed)](_0x3782a0[_0x190ead(0x1da)],_0x3782a0[_0x190ead(0x1d2)][_0x190ead(0x1f5)]-_0x3782a0[_0x190ead(0x1da)][_0x190ead(0x1f5)]);null!=_0x49f6e1?_0x4b6f6a[_0x190ead(0x21a)][_0x190ead(0x1d3)](_0x17a8b7,_0x49f6e1):_0x4b6f6a[_0x190ead(0x21a)][_0x190ead(0x21b)](_0x17a8b7);}}
|
|
23
|
+
function _0x5564(){const _0x3cc3b3=['196255zkjDDk','_getTransformedByInsertion','2841202wAkRko','_getTransformedByDeletion','createSelection','isObject','split','changes','toNone','delete','offset','parse','POSITIVE_INFINITY','merge','textNode',':$aiSuggestion','getShiftedBy','8067015peBlXa','type','isRegisteredAttribute','stickiness','suggestion:formatBlock:$fakeWrap:','isMarkedRemoveOperation','batch','isBlock','$elementName','key','backward','newName','createRange','insert','node','root','isAfter','clone','change','focus','name','$root','suggestion:attribute:','move','index','removeAttribute','forward','1505973HdkluA','add','nodeAfter','reverse','oldName','getFirstRange','stringify','createPositionFromPath','push','newValue','1954LdosiP','changeAttribute','data-id','suggestion:insertion:','_createFromRanges','sourcePosition','remove','applyOperation','newRange','431IUybnw','schema','modifySelection','parent','getOperations','slice','targetPosition','nodeBefore','$text','new','...','rename','range','word','SuggestionsConversion','data','cloneNode','138OyfsId','getMinimalFlatRanges','element','splitPosition','length','isBefore','plugins','createRangeOn','getMovedRangeStart','addOperation','get','howMany','setTo','children','7097560rALnKZ','removed','baseVersion','createPositionAt','isDocumentOperation','map','end','oldValue','getDiff','model','3712912AfSYXD','getTransformedByOperation','suggestion:deletion:','position','marker','DocumentCompare','path','moveTargetPosition','set','addAttribute','start','markers'];_0x5564=function(){return _0x3cc3b3;};return _0x5564();}(function(_0x31cd61,_0x2fc720){const _0x1ded11=_0x5d6b,_0x37b344=_0x31cd61();while(!![]){try{const _0x41388b=parseInt(_0x1ded11(0x1f1))/0x1*(-parseInt(_0x1ded11(0x1e8))/0x2)+-parseInt(_0x1ded11(0x1de))/0x3+parseInt(_0x1ded11(0x21a))/0x4+parseInt(_0x1ded11(0x226))/0x5*(-parseInt(_0x1ded11(0x202))/0x6)+-parseInt(_0x1ded11(0x228))/0x7+parseInt(_0x1ded11(0x210))/0x8+parseInt(_0x1ded11(0x1c3))/0x9;if(_0x41388b===_0x2fc720)break;else _0x37b344['push'](_0x37b344['shift']());}catch(_0x2f322d){_0x37b344['push'](_0x37b344['shift']());}}}(_0x5564,0x75315));import{findOne as _0x252097,getAttribute as _0x242686,Document as _0x121913,serialize as _0x3ca3ab,parse as _0x16f2e3}from'./htmlparser.js';import{fixElementSuggestionRange as _0x2407a4}from'ckeditor5-collaboration/src/collaboration-core.js';import{ModelRange as _0x2a0091,_DetachOperation as _0x25ac04,_removeFromModelNodeList as _0x46387b,_insertIntoModelNodeList as _0x3b6a9c}from'ckeditor5/src/engine.js';import{uid as _0x4f8875}from'ckeditor5/src/utils.js';export function getSuggestionPartsFromReply({editor:_0x1c400e,changeGroups:_0x33a924,documentContextContent:_0x33cc8b,showDiff:_0x5b4e41,trimUnchanged:_0xad6b8f=!0x0}){const _0x1133b6=_0x5d6b;return _0x33a924[_0x1133b6(0x215)](_0x178638=>{const _0x247036=_0x1133b6,_0x977f1d=new _0x121913([]),_0x41379b=new _0x121913([]);for(const _0x2738c4 of _0x178638[_0x247036(0x22d)])if(_0x5b4e41&&_0x247036(0x211)==_0x2738c4[_0x247036(0x1c4)]||_0x41379b[_0x247036(0x20f)][_0x247036(0x1e6)](_0x2738c4[_0x247036(0x1d1)][_0x247036(0x201)](!0x0)),_0x247036(0x1fa)!=_0x2738c4[_0x247036(0x1c4)]&&(_0x5b4e41||_0x247036(0x211)!=_0x2738c4[_0x247036(0x1c4)])){const _0x575634=_0x252097(_0x4a9027=>_0x242686(_0x4a9027,_0x247036(0x1ea))==_0x2738c4['id'],_0x33cc8b,!0x0);_0x575634&&_0x977f1d[_0x247036(0x20f)][_0x247036(0x1e6)](_0x575634[_0x247036(0x201)](!0x0));}const {content:_0x45d4a1,hasChanges:_0x42da1e}=function(_0x591873,_0x2f3392,_0x2ffa26,_0x1441b4,_0x1cd879=!0x0){const _0xe0b01f=_0x247036,_0x336407=_0x591873[_0xe0b01f(0x208)][_0xe0b01f(0x20c)](_0xe0b01f(0x21f)),_0xa5671f=_0x3ca3ab(_0x2f3392),_0x578709=_0x3ca3ab(_0x2ffa26),_0x5116ea=_0x591873[_0xe0b01f(0x200)][_0xe0b01f(0x1bd)](_0xa5671f,_0xe0b01f(0x1d8)),_0x4d8f77=_0x591873[_0xe0b01f(0x219)][_0xe0b01f(0x213)](_0x5116ea,0x0),_0x2d9cd6=_0x336407[_0xe0b01f(0x218)](_0xa5671f,_0x578709,{'anchor':_0x4d8f77,'markDeletions':_0x1441b4}),_0xb11776=_0x2d9cd6[_0xe0b01f(0x1f5)]();if(0x0==_0xb11776[_0xe0b01f(0x206)])return{'content':_0x2f3392[_0xe0b01f(0x201)](!0x0),'hasChanges':!0x1};_0x1441b4?function(_0x43e277,_0x5f2bfd,_0x4288d7){const _0x2f15b0=_0xe0b01f;if(0x0==_0x43e277[_0x2f15b0(0x206)])return;const _0x35a019=_0x4288d7[_0x2f15b0(0x208)][_0x2f15b0(0x20c)](_0x2f15b0(0x21f)),_0x4838f0=_0x4288d7[_0x2f15b0(0x208)][_0x2f15b0(0x20c)](_0x2f15b0(0x1ff));_0x4288d7[_0x2f15b0(0x219)][_0x2f15b0(0x1d5)](_0x4865a5=>{const _0x16d623=_0x2f15b0,_0x324a70=new Set();for(let _0x1a1a68=0x0;_0x1a1a68<_0x43e277[_0x16d623(0x206)];_0x1a1a68++){const _0x1e7530=_0x43e277[_0x1a1a68];if(_0x1e7530[_0x16d623(0x212)]=null,_0x1e7530[_0x16d623(0x214)]=!0x1,_0x35a019[_0x16d623(0x1c8)](_0x1e7530)){const _0xa206bd=_0x2407a4(_0x1e7530[_0x16d623(0x1f0)],_0x4288d7[_0x16d623(0x219)]),_0x401303=_0x16d623(0x21c)+_0x4f8875()+_0x16d623(0x1c1);_0x5f2bfd[_0x16d623(0x225)][_0x16d623(0x222)](_0x401303,_0xa206bd);}else switch(_0x1e7530[_0x16d623(0x1c4)]){case _0x16d623(0x1fc):{if(_0x1e7530[_0x16d623(0x1e2)]==_0x1e7530[_0x16d623(0x1ce)])break;_0x4865a5[_0x16d623(0x1c9)][_0x16d623(0x20b)](_0x1e7530),_0x4288d7[_0x16d623(0x219)][_0x16d623(0x1ef)](_0x1e7530);const _0x2dd278=_0x16d623(0x1cb),_0x4fb4ca=_0x1e7530[_0x16d623(0x21d)],_0x282e8d=_0x4288d7[_0x16d623(0x219)][_0x16d623(0x1cf)](_0x4fb4ca,_0x4288d7[_0x16d623(0x219)][_0x16d623(0x213)](_0x4fb4ca[_0x16d623(0x1e0)],_0x16d623(0x216))),_0x3f987e=_0x16d623(0x1d9)+_0x2dd278+':'+_0x4f8875()+_0x16d623(0x1c1);_0x5f2bfd[_0x16d623(0x225)][_0x16d623(0x222)](_0x3f987e,_0x282e8d);break;}case _0x16d623(0x223):case _0x16d623(0x1dc):case _0x16d623(0x1e9):{if(_0x1e7530[_0x16d623(0x217)]==_0x1e7530[_0x16d623(0x1e7)])break;_0x4865a5[_0x16d623(0x1c9)][_0x16d623(0x20b)](_0x1e7530),_0x4288d7[_0x16d623(0x219)][_0x16d623(0x1ef)](_0x1e7530);const _0x2f7109=_0x1e7530[_0x16d623(0x1cc)];if(!_0x4838f0[_0x16d623(0x1c5)](_0x2f7109))break;const _0xe796b5=_0x2407a4(_0x1e7530[_0x16d623(0x1fd)],_0x4288d7[_0x16d623(0x219)]),_0x152258=_0x16d623(0x1d9)+_0x2f7109+':'+_0x4f8875()+_0x16d623(0x1c1);_0x5f2bfd[_0x16d623(0x225)][_0x16d623(0x222)](_0x152258,_0xe796b5);break;}case _0x16d623(0x1d0):{_0x4865a5[_0x16d623(0x1c9)][_0x16d623(0x20b)](_0x1e7530),_0x4288d7[_0x16d623(0x219)][_0x16d623(0x1ef)](_0x1e7530);if(_0x43e277[_0x1a1a68+0x1]&&_0x16d623(0x1da)==_0x43e277[_0x1a1a68+0x1][_0x16d623(0x1c4)]){to(_0x5f2bfd,_0x1e7530);break;}const _0x18ea71=_0x1e7530[_0x16d623(0x21d)],_0x31459f=_0x1e7530[_0x16d623(0x20d)],_0xe156f4=_0x2407a4(_0x4288d7[_0x16d623(0x219)][_0x16d623(0x1cf)](_0x18ea71,_0x18ea71[_0x16d623(0x1c2)](_0x31459f)),_0x4288d7[_0x16d623(0x219)]),_0x2c6f6b=_0x16d623(0x1eb)+_0x4f8875()+_0x16d623(0x1c1);_0x5f2bfd[_0x16d623(0x225)][_0x16d623(0x222)](_0x2c6f6b,_0xe156f4);break;}case _0x16d623(0x22c):{_0x4865a5[_0x16d623(0x1c9)][_0x16d623(0x20b)](_0x1e7530),_0x4288d7[_0x16d623(0x219)][_0x16d623(0x1ef)](_0x1e7530);const _0x2a22ec=_0x1e7530[_0x16d623(0x205)],_0x56103f=_0x1e7530[_0x16d623(0x221)],_0x252312=_0x4288d7[_0x16d623(0x219)][_0x16d623(0x1cf)](_0x2a22ec,_0x56103f),_0x31fc32=_0x16d623(0x1eb)+_0x4f8875()+_0x16d623(0x1c1);_0x5f2bfd[_0x16d623(0x225)][_0x16d623(0x222)](_0x31fc32,_0x252312);break;}case _0x16d623(0x1da):{_0x4865a5[_0x16d623(0x1c9)][_0x16d623(0x20b)](_0x1e7530),_0x4288d7[_0x16d623(0x219)][_0x16d623(0x1ef)](_0x1e7530),_0x43e277[_0x1a1a68-0x1]&&_0x16d623(0x1d0)==_0x43e277[_0x1a1a68-0x1][_0x16d623(0x1c4)]&&to(_0x5f2bfd,_0x1e7530);const _0x467095=_0x1e7530[_0x16d623(0x20a)](),_0x393a11=_0x1e7530[_0x16d623(0x20d)];for(let _0x40991b=0x0;_0x40991b<_0x393a11;_0x40991b++){const _0x15f0ed=_0x467095[_0x16d623(0x1c2)](_0x40991b)[_0x16d623(0x1e0)];_0x324a70[_0x16d623(0x1df)](_0x15f0ed);}break;}case _0x16d623(0x1ee):{const _0x51d827=_0x1e7530[_0x16d623(0x1ed)],_0x4a1b82=_0x1e7530[_0x16d623(0x20d)],_0x52a20e=new _0x25ac04(_0x51d827,_0x4a1b82);_0x4865a5[_0x16d623(0x1c9)][_0x16d623(0x20b)](_0x52a20e),_0x4288d7[_0x16d623(0x219)][_0x16d623(0x1ef)](_0x52a20e);break;}}}for(const _0x281ace of _0x324a70){const _0x32a9c9=_0x4288d7[_0x16d623(0x219)][_0x16d623(0x209)](_0x281ace),_0x15acac=_0x16d623(0x1c7)+_0x4f8875()+_0x16d623(0x1c1);_0x5f2bfd[_0x16d623(0x225)][_0x16d623(0x222)](_0x15acac,_0x2407a4(_0x32a9c9,_0x4288d7[_0x16d623(0x219)]));}});}(_0xb11776,_0x5116ea,_0x591873):_0x591873[_0xe0b01f(0x219)][_0xe0b01f(0x1d5)](_0x2ec564=>{const _0x50f389=_0xe0b01f;for(const _0x19940d of _0xb11776)if(_0x50f389(0x1ee)==_0x19940d[_0x50f389(0x1c4)]){const _0x59e426=_0x19940d[_0x50f389(0x1ed)],_0x38e471=_0x19940d[_0x50f389(0x20d)],_0x1cccad=new _0x25ac04(_0x59e426,_0x38e471);_0x2ec564[_0x50f389(0x1c9)][_0x50f389(0x20b)](_0x1cccad),_0x591873[_0x50f389(0x219)][_0x50f389(0x1ef)](_0x1cccad);}else{if(_0x50f389(0x21e)==_0x19940d[_0x50f389(0x1c4)]){const _0x34b481=_0x19940d[_0x50f389(0x1d7)],_0x3799a3=_0x19940d[_0x50f389(0x1f0)];_0x5116ea[_0x50f389(0x225)][_0x50f389(0x222)](_0x34b481,_0x3799a3);}else _0x19940d[_0x50f389(0x212)]=null,_0x19940d[_0x50f389(0x214)]=!0x1,_0x2ec564[_0x50f389(0x1c9)][_0x50f389(0x20b)](_0x19940d),_0x591873[_0x50f389(0x219)][_0x50f389(0x1ef)](_0x19940d);}});if(_0x1cd879){const _0x3802c0=getMinimalSelection(_0x591873,_0xb11776,_0x5116ea);expandSelectionWithContext(_0x591873[_0xe0b01f(0x219)],_0x3802c0),function(_0x30813f,_0x26435b){const _0x2644c3=_0xe0b01f,_0x44f13=_0x26435b[_0x2644c3(0x1e3)]()[_0x2644c3(0x224)];let _0x5536c4=_0x26435b[_0x2644c3(0x1e3)]()[_0x2644c3(0x216)];const _0x3dc409=_0x44f13[_0x2644c3(0x1d2)];(_0x5536c4[_0x2644c3(0x1c0)]||_0x5536c4[_0x2644c3(0x1e0)]&&_0x5536c4[_0x2644c3(0x1e0)]['is'](_0x2644c3(0x1f9)))&&(_0x3b6a9c(_0x5536c4,_0x2644c3(0x1fb)),_0x5536c4=_0x5536c4[_0x2644c3(0x1c2)](0x3)),(_0x44f13[_0x2644c3(0x1c0)]||_0x44f13[_0x2644c3(0x1f8)]&&_0x44f13[_0x2644c3(0x1f8)]['is'](_0x2644c3(0x1f9)))&&(_0x3b6a9c(_0x44f13,_0x2644c3(0x1fb)),function(_0x2a6ad0,_0x55bfd5,_0x25416e){const _0x2d883a=_0x2644c3;for(let [_0x4c2a31,_0x4a48da]of _0x2a6ad0[_0x2d883a(0x225)]){const _0x39c223=_0x4a48da[_0x2d883a(0x227)](_0x55bfd5,_0x25416e,!0x1);_0x4a48da=_0x39c223[0x0],_0x2a6ad0[_0x2d883a(0x225)][_0x2d883a(0x222)](_0x4c2a31,_0x4a48da);}}(_0x3dc409,_0x44f13,0x3),_0x44f13[_0x2644c3(0x1f4)]==_0x5536c4[_0x2644c3(0x1f4)]&&(_0x5536c4=_0x5536c4[_0x2644c3(0x1c2)](0x3)));const _0xd5ff9c=_0x30813f[_0x2644c3(0x1cf)](_0x30813f[_0x2644c3(0x213)](_0x3dc409,0x0),_0x44f13),_0x436001=_0x30813f[_0x2644c3(0x1cf)](_0x5536c4,_0x30813f[_0x2644c3(0x213)](_0x3dc409,_0x2644c3(0x216))),_0x15aba4=[..._0xd5ff9c[_0x2644c3(0x203)](),..._0x436001[_0x2644c3(0x203)]()];_0x15aba4[_0x2644c3(0x1e1)]();for(const _0x2a86df of _0x15aba4)_0x46387b(_0x2a86df),_transformMarkersByDeletion(_0x3dc409,_0x2a86df);}(_0x591873[_0xe0b01f(0x219)],_0x3802c0);}const _0x265c28=_0x591873[_0xe0b01f(0x200)][_0xe0b01f(0x1e4)](_0x5116ea,{'showSuggestionHighlights':!0x0});return{'content':_0x16f2e3(_0x265c28),'hasChanges':!0x0};}(_0x1c400e,_0x977f1d,_0x41379b,_0x5b4e41,_0xad6b8f);return{'type':_0x178638[_0x247036(0x22d)][0x0][_0x247036(0x1c4)],'index':_0x178638[_0x247036(0x1db)],'content':_0x45d4a1,'hasChanges':_0x42da1e};});}function to(_0x1fca6a,_0xe048af){const _0x4ea527=_0x5d6b;for(const [_0x26874a,_0x42e82a]of _0x1fca6a[_0x4ea527(0x225)]){const _0x93386a=_0x2a0091[_0x4ea527(0x1ec)](_0x42e82a[_0x4ea527(0x21b)](_0xe048af));_0x1fca6a[_0x4ea527(0x225)][_0x4ea527(0x222)](_0x26874a,_0x93386a);}}function _0x5d6b(_0x5cf9eb,_0x5bbf78){const _0x55647e=_0x5564();return _0x5d6b=function(_0x5d6b13,_0x5c53cc){_0x5d6b13=_0x5d6b13-0x1bd;let _0x3768f6=_0x55647e[_0x5d6b13];return _0x3768f6;},_0x5d6b(_0x5cf9eb,_0x5bbf78);}export function getMinimalSelection(_0x5b1ab0,_0x496a84,_0x5cdfa2){const _0x23add9=_0x5d6b,_0x402682=_0x5b1ab0[_0x23add9(0x208)][_0x23add9(0x20c)](_0x23add9(0x21f));let _0x5d42f5=_0x5b1ab0[_0x23add9(0x219)][_0x23add9(0x213)](_0x5cdfa2,Number[_0x23add9(0x1be)]),_0x5e578f=_0x5b1ab0[_0x23add9(0x219)][_0x23add9(0x213)](_0x5cdfa2,0x0);for(const _0x9253ef of _0x496a84){let _0x47cb6f,_0x5ed4bd;if(_0x402682[_0x23add9(0x1c8)](_0x9253ef))_0x47cb6f=_0x9253ef[_0x23add9(0x1f0)][_0x23add9(0x224)],_0x5ed4bd=_0x9253ef[_0x23add9(0x1f0)][_0x23add9(0x216)];else switch(_0x5d42f5=_0x5d42f5[_0x23add9(0x21b)](_0x9253ef),_0x5e578f=_0x5e578f[_0x23add9(0x21b)](_0x9253ef),_0x9253ef[_0x23add9(0x1c4)]){case _0x23add9(0x1fc):_0x47cb6f=_0x9253ef[_0x23add9(0x21d)],_0x5ed4bd=_0x47cb6f[_0x23add9(0x1c2)](0x1);break;case _0x23add9(0x223):case _0x23add9(0x1dc):case _0x23add9(0x1e9):_0x47cb6f=_0x9253ef[_0x23add9(0x1fd)][_0x23add9(0x224)],_0x5ed4bd=_0x9253ef[_0x23add9(0x1fd)][_0x23add9(0x216)];break;case _0x23add9(0x1d0):_0x47cb6f=_0x9253ef[_0x23add9(0x21d)],_0x5ed4bd=_0x47cb6f[_0x23add9(0x1c2)](_0x9253ef[_0x23add9(0x20d)]);break;case _0x23add9(0x22c):_0x47cb6f=_0x9253ef[_0x23add9(0x205)],_0x5ed4bd=_0x9253ef[_0x23add9(0x221)];break;case _0x23add9(0x1bf):{const _0x3f7d09=_0x9253ef[_0x23add9(0x1f7)][_0x23add9(0x220)][_0x23add9(0x1f6)](0x0,-0x1);_0x47cb6f=_0x5b1ab0[_0x23add9(0x219)][_0x23add9(0x1e5)](_0x5cdfa2,_0x3f7d09),_0x5ed4bd=_0x47cb6f[_0x23add9(0x1c2)](0x1);break;}case _0x23add9(0x1ee):{const _0x4e7651=_0x9253ef[_0x23add9(0x20d)],_0x2da7a2=_0x9253ef[_0x23add9(0x1ed)][_0x23add9(0x227)](_0x9253ef[_0x23add9(0x1f7)],_0x4e7651),_0x4c7389=_0x9253ef[_0x23add9(0x20a)]();_0x23add9(0x1ee)==_0x9253ef[_0x23add9(0x1c4)]?(_0x47cb6f=_0x2da7a2,_0x5ed4bd=_0x2da7a2):(_0x47cb6f=_0x4c7389,_0x5ed4bd=_0x4c7389[_0x23add9(0x1c2)](_0x4e7651));break;}}_0x47cb6f&&_0x47cb6f[_0x23add9(0x207)](_0x5d42f5)&&(_0x5d42f5=_0x47cb6f[_0x23add9(0x1d4)](),_0x5d42f5[_0x23add9(0x1c6)]=_0x23add9(0x22e)),_0x5ed4bd&&_0x5ed4bd[_0x23add9(0x1d3)](_0x5e578f)&&(_0x5e578f=_0x5ed4bd[_0x23add9(0x1d4)](),_0x5e578f[_0x23add9(0x1c6)]=_0x23add9(0x22e));}return _0x5b1ab0[_0x23add9(0x219)][_0x23add9(0x22a)](_0x5b1ab0[_0x23add9(0x219)][_0x23add9(0x1cf)](_0x5d42f5,_0x5e578f));}export function expandSelectionWithContext(_0x1854ab,_0x1b42ec){const _0x13527f=_0x5d6b;oo(_0x1854ab,_0x1b42ec,_0x13527f(0x1dd));const _0x46975e=_0x1b42ec[_0x13527f(0x1e3)]();_0x1b42ec[_0x13527f(0x20e)]([]),_0x1b42ec[_0x13527f(0x20e)](_0x46975e,{'backward':!0x0}),oo(_0x1854ab,_0x1b42ec,_0x13527f(0x1cd));}function oo(_0x25c434,_0xda8f7a,_0x96e641){const _0x2fbfe9=_0x5d6b;let _0x120670=0x14;for(;_0x120670;){_0x25c434[_0x2fbfe9(0x1f3)](_0xda8f7a,{'unit':_0x2fbfe9(0x1fe),'direction':_0x96e641}),_0x120670--;const _0x37bb90=_0xda8f7a[_0x2fbfe9(0x1d6)][_0x2fbfe9(0x1dd)==_0x96e641?_0x2fbfe9(0x1f8):_0x2fbfe9(0x1e0)];if(_0x37bb90&&_0x37bb90['is'](_0x2fbfe9(0x204))&&_0x25c434[_0x2fbfe9(0x1f2)][_0x2fbfe9(0x1ca)](_0x37bb90)&&_0x25c434[_0x2fbfe9(0x1f2)][_0x2fbfe9(0x22b)](_0x37bb90))break;}}export function _transformMarkersByDeletion(_0x328a89,_0x20a0f5){const _0x2810cf=_0x5d6b;for(const [_0x12a4f1,_0xc0b785]of _0x328a89[_0x2810cf(0x225)]){const _0xdefbfa=_0xc0b785[_0x2810cf(0x229)](_0x20a0f5[_0x2810cf(0x224)],_0x20a0f5[_0x2810cf(0x216)][_0x2810cf(0x230)]-_0x20a0f5[_0x2810cf(0x224)][_0x2810cf(0x230)]);null!=_0xdefbfa?_0x328a89[_0x2810cf(0x225)][_0x2810cf(0x222)](_0x12a4f1,_0xdefbfa):_0x328a89[_0x2810cf(0x225)][_0x2810cf(0x22f)](_0x12a4f1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x99d736,_0x5a2a90){const _0x42f1a1=_0x2c45,_0x20ab77=_0x99d736();while(!![]){try{const _0x2707e6=parseInt(_0x42f1a1(0xfa))/0x1+parseInt(_0x42f1a1(0xfc))/0x2+-parseInt(_0x42f1a1(0xf0))/0x3*(-parseInt(_0x42f1a1(0xfd))/0x4)+parseInt(_0x42f1a1(0xf5))/0x5*(parseInt(_0x42f1a1(0xff))/0x6)+-parseInt(_0x42f1a1(0xf7))/0x7+parseInt(_0x42f1a1(0xea))/0x8*(parseInt(_0x42f1a1(0xf9))/0x9)+parseInt(_0x42f1a1(0xed))/0xa*(-parseInt(_0x42f1a1(0xfe))/0xb);if(_0x2707e6===_0x5a2a90)break;else _0x20ab77['push'](_0x20ab77['shift']());}catch(_0x1eb131){_0x20ab77['push'](_0x20ab77['shift']());}}}(_0x2ae0,0xbd4ae));function _0x2ae0(){const _0x305eda=['1545066YdjKcH','forEach','map','reverse','attribs','11704520wuPcvr','push','parentNode','21550ArDYCS','cloneNode','afterend','136023ciRqgL','replace','slice','afterbegin','nextSibling','20ATRpRb','beforeend','5061553ddvgmg','beforebegin','9DrmVBo','495893FfJmLh','indexOf','203756pOlPuB','4AMpMFN','8360HPxTEa'];_0x2ae0=function(){return _0x305eda;};return _0x2ae0();}import{parseDocument as _0x41db15}from'htmlparser2';import{append as _0x4cac32,appendChild as _0x3275ac,find as _0x489dd1,findAll as _0x41c094,findOne as _0x3631bd,getChildren as _0x3da1b7,isComment as _0x43edf0,isTag as _0xa6a9da,prepend as _0x358b5d,prependChild as _0x19f03d,removeElement as _0x59ee78,replaceElement as _0x1d34a2,textContent as _0x5323b1,getParent as _0x9c7393,hasChildren as _0x1a45e8}from'domutils';import _0x2383c4 from'dom-serializer';import{cloneNode as _0x2bcc81,isDocument as _0x2c7be9,isText as _0x32773a,Element as _0x26bff9,Text as _0x5425d6,Document as _0x57eb3b,NodeWithChildren as _0x57f606}from'domhandler';export{_0x2bcc81 as cloneNode,_0x489dd1 as find,_0x3631bd as findOne,_0x41c094 as findAll,_0x3da1b7 as getChildren,_0x9c7393 as getParent,_0x43edf0 as isComment,_0x2c7be9 as isDocument,_0xa6a9da as isTag,_0x32773a as isText,_0x4cac32 as append,_0x3275ac as appendChild,_0x358b5d as prepend,_0x19f03d as prependChild,_0x2383c4 as render,_0x59ee78 as removeElement,_0x1d34a2 as replaceElement,_0x5323b1 as textContent,_0x1a45e8 as hasChildren,_0x26bff9 as Element,_0x57eb3b as Document,_0x57f606 as NodeWithChildren,_0x5425d6 as Text};export function parse(_0xb37b68){return _0x41db15(_0xb37b68);}export function serialize(_0x334959){return _0x2383c4(_0x334959);}export function findByAttribute(_0x25a700,_0x4ab393,_0x5aa0b9){const _0xc672f6=_0x2c45,_0x2d6b56=null!==_0x4ab393?_0x419517=>_0x419517[_0xc672f6(0xe9)][_0x25a700]===_0x4ab393:_0x34aa74=>Boolean(_0x34aa74[_0xc672f6(0xe9)][_0x25a700]);return _0x3631bd(_0xcdfe3d=>_0xa6a9da(_0xcdfe3d)&&_0x2d6b56(_0xcdfe3d),_0x5aa0b9);}export function findAllByAttribute(_0x2d3a6e,_0x18afcf,_0x4a5916){const _0x56465f=_0x2c45,_0x2b2115=null!==_0x18afcf?_0x253a3f=>_0x253a3f[_0x56465f(0xe9)][_0x2d3a6e]===_0x18afcf:_0x47bf9f=>Boolean(_0x47bf9f[_0x56465f(0xe9)][_0x2d3a6e]);return _0x41c094(_0x3568db=>_0xa6a9da(_0x3568db)&&_0x2b2115(_0x3568db),_0x4a5916);}export function findAllComments(_0x16ba9d){return _0x489dd1(_0xcd59de=>_0x43edf0(_0xcd59de),_0x16ba9d,!0x0,0x1/0x0);}export function getAttribute(_0xbabccb,_0xae5092){const _0x47be03=_0x2c45;return _0xbabccb&&_0xa6a9da(_0xbabccb)?_0xbabccb[_0x47be03(0xe9)][_0xae5092]:null;}export function setAttribute(_0x5cf3ce,_0x40a5dd,_0x4eea67){const _0x387c36=_0x2c45;_0xa6a9da(_0x5cf3ce)&&(null===_0x4eea67?delete _0x5cf3ce[_0x387c36(0xe9)][_0x40a5dd]:_0x5cf3ce[_0x387c36(0xe9)][_0x40a5dd]=_0x4eea67);}export function insertElement(_0x39b445,_0x19baa9,_0x1a0d59){const _0x11e8c8=_0x2c45,_0x1c01ea=_0x19baa9[_0x11e8c8(0xee)](!0x0);_0x11e8c8(0xf8)===_0x1a0d59?_0x358b5d(_0x39b445,_0x1c01ea):_0x11e8c8(0xf3)===_0x1a0d59?_0x19f03d(_0x39b445,_0x1c01ea):_0x11e8c8(0xf6)===_0x1a0d59?_0x3275ac(_0x39b445,_0x1c01ea):_0x11e8c8(0xef)===_0x1a0d59&&_0x4cac32(_0x39b445,_0x1c01ea);}export function moveElement(_0x4deb2a,_0x1cdbad){_0x59ee78(_0x4deb2a),_0x1d34a2(_0x1cdbad,_0x4deb2a);}function _0x2c45(_0x238e01,_0x119ff0){const _0x2ae05c=_0x2ae0();return _0x2c45=function(_0x2c4531,_0x56fa46){_0x2c4531=_0x2c4531-0xe9;let _0x1fa540=_0x2ae05c[_0x2c4531];return _0x1fa540;},_0x2c45(_0x238e01,_0x119ff0);}export function clone(_0x5c6018){const _0x3144bd=_0x2c45;return _0x5c6018[_0x3144bd(0xee)](!0x0);}export function getParents(_0xf5b0c2){const _0x596665=_0x2c45,_0x4b3872=[];let _0x8909e3=_0xf5b0c2;for(;_0x8909e3;)_0x8909e3=_0x9c7393(_0x8909e3),_0x8909e3&&_0x4b3872[_0x596665(0xeb)](_0x8909e3);return _0x4b3872;}export function normalizeHTML(_0x516080){const _0x309658=_0x2c45;return _0x516080[_0x309658(0xf1)](/^\s+/gm,'')[_0x309658(0xf1)](/\s+$/gm,'')[_0x309658(0xf1)](/\n*/g,'')[_0x309658(0xf1)](/\s+/g,'\x20')[_0x309658(0xf1)](/>\s*</g,'><');}export function areNodesSame(_0x4a2060,_0x269531){return normalizeHTML(serialize(_0x4a2060))===normalizeHTML(serialize(_0x269531));}export function getNodeNestingLevel(_0xd18292){const _0x59322d=_0x2c45;let _0x27baeb=0x0;for(;_0xd18292[_0x59322d(0xec)];)_0xd18292=_0xd18292[_0x59322d(0xec)],_0x27baeb++;return _0x27baeb;}export function removeElementsAfter(_0x592117){const _0x2afb26=_0x2c45,_0x15070d=[];let _0x4d1dff=_0x592117[_0x2afb26(0xf4)];for(;_0x4d1dff;)_0x15070d[_0x2afb26(0xeb)](_0x4d1dff),_0x4d1dff=_0x4d1dff[_0x2afb26(0xf4)];_0x15070d[_0x2afb26(0x100)](_0x1ae9b0=>{_0x59ee78(_0x1ae9b0);});}export function getNodePath(_0x3936fa){const _0x681b86=_0x2c45;return[_0x3936fa,...getParents(_0x3936fa)][_0x681b86(0xf2)](0x0,-0x1)[_0x681b86(0x101)](_0x413e29=>{const _0x12946f=_0x681b86,_0x284304=_0x9c7393(_0x413e29);return _0x3da1b7(_0x284304)[_0x12946f(0xfb)](_0x413e29);})[_0x681b86(0x102)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x475448=_0x2533;(function(_0x210426,_0xe4cd42){const _0x5cdee4=_0x2533,_0x4bee76=_0x210426();while(!![]){try{const _0xc37f4e=-parseInt(_0x5cdee4(0x11f))/0x1*(-parseInt(_0x5cdee4(0x116))/0x2)+-parseInt(_0x5cdee4(0x119))/0x3+parseInt(_0x5cdee4(0x117))/0x4*(parseInt(_0x5cdee4(0x111))/0x5)+parseInt(_0x5cdee4(0x12a))/0x6*(-parseInt(_0x5cdee4(0x131))/0x7)+parseInt(_0x5cdee4(0x138))/0x8+parseInt(_0x5cdee4(0x13d))/0x9+-parseInt(_0x5cdee4(0x123))/0xa*(-parseInt(_0x5cdee4(0x12c))/0xb);if(_0xc37f4e===_0xe4cd42)break;else _0x4bee76['push'](_0x4bee76['shift']());}catch(_0x301ef8){_0x4bee76['push'](_0x4bee76['shift']());}}}(_0x2342,0xac0b7));import _0x40e65c from'morphdom';import{NodeWithChildren as _0x22617e,Text as _0x3f52e0,Element as _0x5223ff,isText as _0x279c95,isDocument as _0x4adc36,isTag as _0x3a5981,cloneNode as _0x4d85c1,getChildren as _0x57c7e6,prepend as _0x397d53,removeElement as _0x20627b,textContent as _0x299fd1,render as _0x41777c}from'./htmlparser.js';import{logWarning as _0x1cde44}from'ckeditor5/src/utils.js';function _0x2342(){const _0x54e310=['join','isWordSplitSource','map','splitTextNodeIntoWordNodes','code','delay','from','parent','onStreamUpdate','strong','childNodes','now','includes','5reYZje','reverse','ai-html-streamer-current-index-out-of-bounds','sub','div','404MWhclH','2278516ZDdKZF','entries','2092278IasPNk','span','length','renderNode','sup','attribs','4897LfDCRN','signal','mark','getParsedDocumentNodeList','10pWPYNi','tagName','document','cleanUpAnimations','del','stream','shouldBeStreamed','341268tKpyUm','timeoutAbortController','2545213RnEJxA','replaceWith','nodesList','forEach','isWordSplitResult','140nrmCdW','children','push','ins','addEventListener','bind','options','4525216UXEfMg','stop','span[data-ck-html-streamer-word-chunk]','isStreaming','querySelectorAll','1654407HpqqFj','abort','match','currentIndex','textNodeStyle'];_0x2342=function(){return _0x54e310;};return _0x2342();}export class HTMLStreamer{[_0x475448(0x137)];[_0x475448(0x13b)]=!0x1;[_0x475448(0x125)]=null;[_0x475448(0x12e)]=[];[_0x475448(0x140)]=0x0;[_0x475448(0x12b)]=null;constructor(_0x2d561a){const _0x3f88c9=_0x475448;this[_0x3f88c9(0x137)]={'delay':_0x2d561a[_0x3f88c9(0x109)]??0x14,'textNodeStyle':_0x2d561a[_0x3f88c9(0x141)],'onStreamUpdate':_0x2d561a[_0x3f88c9(0x10c)]||(()=>{})};}async[_0x475448(0x128)]({document:_0x290af6,targetElement:_0x390a21,abortSignal:_0x1a6fb7}){const _0x209ed1=_0x475448;this[_0x209ed1(0x13b)]&&this[_0x209ed1(0x139)](),_0x1a6fb7?.[_0x209ed1(0x135)](_0x209ed1(0x13e),this[_0x209ed1(0x139)][_0x209ed1(0x136)](this)),this[_0x209ed1(0x125)]=_0x4d85c1(_0x290af6,!0x0),this[_0x209ed1(0x12e)]=this[_0x209ed1(0x122)](),this[_0x209ed1(0x13b)]=!0x0,this[_0x209ed1(0x140)]>this[_0x209ed1(0x12e)][_0x209ed1(0x11b)]&&(_0x1cde44(_0x209ed1(0x113),{'currentIndex':this[_0x209ed1(0x140)],'nodeList':this[_0x209ed1(0x12e)]}),this[_0x209ed1(0x140)]=this[_0x209ed1(0x12e)][_0x209ed1(0x11b)]);for(let _0x1a0f73=0x0;_0x1a0f73<this[_0x209ed1(0x140)];_0x1a0f73++)this[_0x209ed1(0x12e)][_0x1a0f73][_0x209ed1(0x129)]=!0x0;let _0x537e4b=0x0;for(let _0x389ade=this[_0x209ed1(0x140)];_0x389ade<this[_0x209ed1(0x12e)][_0x209ed1(0x11b)];_0x389ade++){const _0x1b2702=Date[_0x209ed1(0x10f)](),_0x5d4025=this[_0x209ed1(0x12e)][_0x389ade],_0x175d11=_0x1b2702-_0x537e4b;_0x5d4025[_0x209ed1(0x129)]=!0x0;let _0x23326a=_0x5d4025[_0x209ed1(0x10b)];for(;_0x23326a;)_0x23326a[_0x209ed1(0x129)]=!0x0,_0x23326a=_0x23326a[_0x209ed1(0x10b)];if(_0x175d11<this[_0x209ed1(0x137)][_0x209ed1(0x109)])try{const {promise:_0x2967eb,abortController:_0x55feea}=$r(this[_0x209ed1(0x137)][_0x209ed1(0x109)]-_0x175d11);this[_0x209ed1(0x12b)]=_0x55feea,await _0x2967eb;}catch(_0x482016){return;}_0x40e65c(_0x390a21,'<'+_0x390a21[_0x209ed1(0x124)]+'>'+this[_0x209ed1(0x11c)](this[_0x209ed1(0x125)])+'</'+_0x390a21[_0x209ed1(0x124)]+'>',{'childrenOnly':!0x0}),this[_0x209ed1(0x137)][_0x209ed1(0x10c)]&&this[_0x209ed1(0x137)][_0x209ed1(0x10c)](),this[_0x209ed1(0x140)]=_0x389ade,_0x537e4b=Date[_0x209ed1(0x10f)]();}this[_0x209ed1(0x13b)]=!0x1;}[_0x475448(0x126)]({targetElement:_0x5cfd1e}){const _0x53e7ff=_0x475448;Array[_0x53e7ff(0x10a)](_0x5cfd1e[_0x53e7ff(0x13c)](_0x53e7ff(0x13a)))[_0x53e7ff(0x112)]()[_0x53e7ff(0x12f)](_0x42636c=>{const _0x4e2fd1=_0x53e7ff;_0x42636c[_0x4e2fd1(0x12d)](_0x42636c[_0x4e2fd1(0x10e)][0x0]);});}[_0x475448(0x139)](){const _0x5412e5=_0x475448;this[_0x5412e5(0x13b)]=!0x1,this[_0x5412e5(0x12b)]&&(this[_0x5412e5(0x12b)][_0x5412e5(0x13e)](),this[_0x5412e5(0x12b)]=null);}[_0x475448(0x11c)](_0x25c439){const _0x31cf3a=_0x475448;let _0x2ed360='';if(function(_0xbc5f7){return _0x4adc36(_0xbc5f7);}(_0x25c439)){for(const _0x5dd3a6 of _0x25c439[_0x31cf3a(0x132)])_0x2ed360+=this[_0x31cf3a(0x11c)](_0x5dd3a6);}else{if(br(_0x25c439)){if(!_0x25c439[_0x31cf3a(0x129)])return'';const _0x2386ac=_0x25c439,_0x309dde=Object[_0x31cf3a(0x118)](_0x2386ac[_0x31cf3a(0x11e)])[_0x31cf3a(0x106)](([_0x392dc9,_0x2f21a2])=>_0x392dc9+'=\x22'+_0x2f21a2+'\x22')[_0x31cf3a(0x142)]('\x20');_0x2ed360+='<'+_0x2386ac[_0x31cf3a(0x124)]+(_0x309dde?'\x20'+_0x309dde:'')+'>';for(const _0x49188f of _0x57c7e6(_0x2386ac))_0x2ed360+=this[_0x31cf3a(0x11c)](_0x49188f);_0x2ed360+='</'+_0x2386ac[_0x31cf3a(0x124)]+'>';}else{if(!dr(_0x25c439))return'';if(!_0x25c439[_0x31cf3a(0x129)])return'';!function(_0x27a627){const _0x1b1f73=_0x31cf3a;if(!_0x27a627[_0x1b1f73(0x10b)]||!br(_0x27a627[_0x1b1f73(0x10b)]))return!0x1;if(!ar[_0x1b1f73(0x110)](_0x27a627[_0x1b1f73(0x10b)][_0x1b1f73(0x124)]))return!0x1;return!_0x299fd1(_0x27a627)[_0x1b1f73(0x13f)](/^\s*[<>]\s*$/);}(_0x25c439)?_0x2ed360+=_0x41777c(_0x25c439):_0x2ed360+=_0x41777c(new _0x5223ff(_0x31cf3a(0x11a),{'data-ck-html-streamer-word-chunk':'','style':this[_0x31cf3a(0x137)][_0x31cf3a(0x141)]},[_0x25c439]));}}return _0x2ed360;}[_0x475448(0x122)](){const _0x20f4dd=_0x475448,_0x16a7c3=[];return function(_0x2d53f7,_0x3a8d86){const _0x5e0360=_0x2533,_0x1ae84e=_0x47dfa8=>{const _0x21778b=_0x2533;if(_0x3a8d86(_0x47dfa8),_0x47dfa8 instanceof _0x22617e)for(let _0x740ee9=0x0;_0x740ee9<_0x47dfa8[_0x21778b(0x132)][_0x21778b(0x11b)];_0x740ee9++){const _0x216e11=_0x47dfa8[_0x21778b(0x132)][_0x740ee9];_0x1ae84e(_0x216e11);}};for(let _0x501fd0=0x0;_0x501fd0<_0x2d53f7[_0x5e0360(0x132)][_0x5e0360(0x11b)];_0x501fd0++)_0x1ae84e(_0x2d53f7[_0x5e0360(0x132)][_0x501fd0]);}(this[_0x20f4dd(0x125)],_0x4a7959=>{const _0x392827=_0x20f4dd;if(dr(_0x4a7959)){const _0x208097=this[_0x392827(0x107)](_0x4a7959);_0x208097[_0x392827(0x11b)]&&_0x16a7c3[_0x392827(0x133)](..._0x208097);}_0x4a7959[_0x392827(0x105)]||_0x4a7959[_0x392827(0x130)]||_0x16a7c3[_0x392827(0x133)](_0x4a7959);}),_0x16a7c3;}[_0x475448(0x107)](_0x4a8460){const _0x1b21e3=_0x475448;if(_0x4a8460[_0x1b21e3(0x105)]||_0x4a8460[_0x1b21e3(0x130)])return[];const _0x21832e=_0x299fd1(_0x4a8460)[_0x1b21e3(0x13f)](/(?:\s*\S+\s*)/g),_0x3c9168=[];if(_0x21832e&&_0x21832e[_0x1b21e3(0x11b)]>0x1){for(const _0x2a414b of _0x21832e){const _0x2b0b5e=new _0x3f52e0(_0x2a414b);_0x2b0b5e[_0x1b21e3(0x130)]=!0x0,_0x397d53(_0x4a8460,_0x2b0b5e),_0x3c9168[_0x1b21e3(0x133)](_0x2b0b5e);}_0x4a8460[_0x1b21e3(0x105)]=!0x0,_0x20627b(_0x4a8460);}return _0x3c9168;}}const ar=['p','li','td','th',_0x475448(0x11a),'h1','h2','h3','h4','h5','h6','b',_0x475448(0x10d),'i','em',_0x475448(0x121),_0x475448(0x127),_0x475448(0x134),_0x475448(0x11d),_0x475448(0x114),'a',_0x475448(0x108),_0x475448(0x115)];function dr(_0x250f3e){return _0x279c95(_0x250f3e);}function _0x2533(_0x3b4856,_0x52e570){const _0x234226=_0x2342();return _0x2533=function(_0x253305,_0x1f2730){_0x253305=_0x253305-0x105;let _0x532ca5=_0x234226[_0x253305];return _0x532ca5;},_0x2533(_0x3b4856,_0x52e570);}function br(_0x269ec8){return _0x3a5981(_0x269ec8);}function $r(_0x57bde4){const _0x315809=new AbortController();return{'promise':new Promise((_0x56ca99,_0x48df84)=>{const _0x5d4b2f=_0x2533,_0x346346=setTimeout(_0x56ca99,_0x57bde4);_0x315809[_0x5d4b2f(0x120)][_0x5d4b2f(0x135)](_0x5d4b2f(0x13e),()=>{clearTimeout(_0x346346),_0x48df84();});}),'abortController':_0x315809};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x334b25=_0x4eb0;function _0x21ae(){const _0x574c00=['6TJoyjt','destroy','abortController','type','ArrowUp','key','keydown','start','248557VKjozb','isRunning','_onUserEvent','4OSwQiW','32724890YzibnQ','pointerdown','_stop','wheel','touchstart','_isAtBottom','7OTGgBH','auto','addEventListener','3808095bsKmCp','scrollHeight','1946184jydijO','stop','18JElQtL','abort','animationFrameId','_rafUpdate','ArrowDown','10132710PNjnjQ','5050242zDDVkr','PageDown','1884285JllSks','deltaY','element','scrollTo','includes','bind','Home','End','PageUp','isUserPaused','signal'];_0x21ae=function(){return _0x574c00;};return _0x21ae();}function _0x4eb0(_0xb2f2e3,_0x1c9198){const _0x21aea6=_0x21ae();return _0x4eb0=function(_0x4eb0ef,_0x16eed1){_0x4eb0ef=_0x4eb0ef-0x1ea;let _0x5d2cce=_0x21aea6[_0x4eb0ef];return _0x5d2cce;},_0x4eb0(_0xb2f2e3,_0x1c9198);}(function(_0x258a0b,_0x14bcf3){const _0x22b386=_0x4eb0,_0x30e6c0=_0x258a0b();while(!![]){try{const _0xf28829=-parseInt(_0x22b386(0x1fa))/0x1*(parseInt(_0x22b386(0x1f2))/0x2)+-parseInt(_0x22b386(0x213))/0x3+-parseInt(_0x22b386(0x1fd))/0x4*(parseInt(_0x22b386(0x207))/0x5)+-parseInt(_0x22b386(0x211))/0x6*(parseInt(_0x22b386(0x204))/0x7)+-parseInt(_0x22b386(0x209))/0x8*(parseInt(_0x22b386(0x20b))/0x9)+parseInt(_0x22b386(0x210))/0xa+parseInt(_0x22b386(0x1fe))/0xb;if(_0xf28829===_0x14bcf3)break;else _0x30e6c0['push'](_0x30e6c0['shift']());}catch(_0x197fc4){_0x30e6c0['push'](_0x30e6c0['shift']());}}}(_0x21ae,0x8014f));const As=[_0x334b25(0x201),_0x334b25(0x202),_0x334b25(0x1ff),_0x334b25(0x1f8)],Fs=[_0x334b25(0x1f6),_0x334b25(0x20f),_0x334b25(0x1ef),_0x334b25(0x212),_0x334b25(0x1ed),_0x334b25(0x1ee),'\x20'];export class ScrollManager{[_0x334b25(0x215)];[_0x334b25(0x20d)];[_0x334b25(0x1fb)];[_0x334b25(0x1f4)];[_0x334b25(0x1f0)];constructor(_0x47371e){const _0x5f09e5=_0x334b25;this[_0x5f09e5(0x215)]=_0x47371e,this[_0x5f09e5(0x20d)]=null,this[_0x5f09e5(0x1fb)]=!0x1,this[_0x5f09e5(0x1f4)]=new AbortController(),this[_0x5f09e5(0x1f0)]=!0x1;for(const _0x32ba15 of As){const _0x1766bc=_0x5f09e5(0x1f8)!==_0x32ba15;this[_0x5f09e5(0x215)][_0x5f09e5(0x206)](_0x32ba15,this[_0x5f09e5(0x1fc)][_0x5f09e5(0x1ec)](this),{'passive':_0x1766bc,'signal':this[_0x5f09e5(0x1f4)][_0x5f09e5(0x1f1)]});}}[_0x334b25(0x1f9)](){const _0x484dab=_0x334b25;this[_0x484dab(0x1fb)]||(this[_0x484dab(0x1fb)]=!0x0,this[_0x484dab(0x1f0)]=!0x1,this[_0x484dab(0x20d)]=requestAnimationFrame(this[_0x484dab(0x20e)][_0x484dab(0x1ec)](this)));}[_0x334b25(0x20a)](){requestAnimationFrame(()=>{const _0xd4ce4a=_0x4eb0;this[_0xd4ce4a(0x200)]();});}[_0x334b25(0x1f3)](){const _0x1577c2=_0x334b25;this[_0x1577c2(0x200)](),this[_0x1577c2(0x1f4)][_0x1577c2(0x20c)]();}[_0x334b25(0x200)](){const _0x4040c1=_0x334b25;null!==this[_0x4040c1(0x20d)]&&(cancelAnimationFrame(this[_0x4040c1(0x20d)]),this[_0x4040c1(0x20d)]=null),this[_0x4040c1(0x1fb)]&&(this[_0x4040c1(0x1fb)]=!0x1),this[_0x4040c1(0x1f0)]=!0x1;}[_0x334b25(0x1fc)](_0x49db00){const _0x21726e=_0x334b25;if(this[_0x21726e(0x1fb)]){if(_0x21726e(0x1f8)===_0x49db00[_0x21726e(0x1f5)]){const _0xac90e5=_0x49db00[_0x21726e(0x1f7)];if(!Fs[_0x21726e(0x1eb)](_0xac90e5))return;}_0x49db00 instanceof WheelEvent?_0x49db00[_0x21726e(0x214)]<0x0?this[_0x21726e(0x1f0)]=!0x0:this[_0x21726e(0x1f0)]=!this[_0x21726e(0x203)]():this[_0x21726e(0x1f0)]=!0x0;}}[_0x334b25(0x203)](){const _0x52f693=_0x334b25,{scrollTop:_0x58b788,scrollHeight:_0x2b12f1,clientHeight:_0x55e909}=this[_0x52f693(0x215)];return _0x2b12f1-_0x58b788-_0x55e909<=0x5;}[_0x334b25(0x20e)](){const _0x5975e6=_0x334b25;this[_0x5975e6(0x1fb)]&&(this[_0x5975e6(0x1f0)]||this[_0x5975e6(0x215)][_0x5975e6(0x1ea)]({'top':this[_0x5975e6(0x215)][_0x5975e6(0x208)],'behavior':_0x5975e6(0x205)}),this[_0x5975e6(0x20d)]=requestAnimationFrame(this[_0x5975e6(0x20e)][_0x5975e6(0x1ec)](this)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x18c85b=_0x19bc;function _0x19bc(_0x1091bd,_0x5e075e){var _0x3a8ad0=_0x3a8a();return _0x19bc=function(_0x19bcd6,_0x2888e0){_0x19bcd6=_0x19bcd6-0x129;var _0x3826ee=_0x3a8ad0[_0x19bcd6];return _0x3826ee;},_0x19bc(_0x1091bd,_0x5e075e);}(function(_0x13de50,_0x3a39fc){var _0x3f5224=_0x19bc,_0x1df269=_0x13de50();while(!![]){try{var _0x5cc6c5=parseInt(_0x3f5224(0x12a))/0x1*(parseInt(_0x3f5224(0x12e))/0x2)+-parseInt(_0x3f5224(0x131))/0x3*(parseInt(_0x3f5224(0x12b))/0x4)+-parseInt(_0x3f5224(0x134))/0x5*(-parseInt(_0x3f5224(0x129))/0x6)+parseInt(_0x3f5224(0x138))/0x7+-parseInt(_0x3f5224(0x139))/0x8*(parseInt(_0x3f5224(0x132))/0x9)+parseInt(_0x3f5224(0x133))/0xa*(parseInt(_0x3f5224(0x135))/0xb)+-parseInt(_0x3f5224(0x136))/0xc;if(_0x5cc6c5===_0x3a39fc)break;else _0x1df269['push'](_0x1df269['shift']());}catch(_0x5ee354){_0x1df269['push'](_0x1df269['shift']());}}}(_0x3a8a,0x57eed));import{Plugin as _0x3868b0}from'ckeditor5/src/core.js';import{AIToggleButtonUI as _0x571153}from'./aitogglebutton/aitogglebuttonui.js';function _0x3a8a(){var _0x57a364=['100bgBVsS','20NaetWG','528055xOjmBA','6643044fISHsA','isPremiumPlugin','1587229FWwJoe','737464KWMwWZ','169704tEujXO','370436qvkept','4GUVIKD','isOfficialPlugin','AIEditorIntegration','2XFugrC','pluginName','requires','276729htXhJo','18YUtwsx'];_0x3a8a=function(){return _0x57a364;};return _0x3a8a();}import{SuggestionsConversion as _0x4e6cc0}from'@ckeditor/ckeditor5-collaboration-core';export class AIEditorIntegration extends _0x3868b0{static get[_0x18c85b(0x130)](){return[_0x571153,_0x4e6cc0];}static get[_0x18c85b(0x12f)](){var _0xc27d8f=_0x18c85b;return _0xc27d8f(0x12d);}static get[_0x18c85b(0x12c)](){return!0x0;}static get[_0x18c85b(0x137)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12ad8d=_0x507c;(function(_0x3af001,_0x54eebd){const _0x54b84a=_0x507c,_0x5d862d=_0x3af001();while(!![]){try{const _0x264a45=-parseInt(_0x54b84a(0x196))/0x1*(parseInt(_0x54b84a(0x1af))/0x2)+parseInt(_0x54b84a(0x1a3))/0x3+-parseInt(_0x54b84a(0x1b3))/0x4+parseInt(_0x54b84a(0x1a2))/0x5*(-parseInt(_0x54b84a(0x19b))/0x6)+-parseInt(_0x54b84a(0x1a8))/0x7+parseInt(_0x54b84a(0x1aa))/0x8+-parseInt(_0x54b84a(0x1b5))/0x9*(-parseInt(_0x54b84a(0x195))/0xa);if(_0x264a45===_0x54eebd)break;else _0x5d862d['push'](_0x5d862d['shift']());}catch(_0x26cfb0){_0x5d862d['push'](_0x5d862d['shift']());}}}(_0xb75f,0x95454));import{Plugin as _0x381e89}from'ckeditor5/src/core.js';import{ToggleAICommand as _0x170dba}from'./toggleaicommand.js';import{ButtonView as _0x5c85d4,MenuBarMenuListItemButtonView as _0xe3f7f6}from'ckeditor5/src/ui.js';import{IconAIAskAI as _0xf611fb}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x425cf9}from'../../aicore/utils/common-translations.js';import{AITabs as _0x34f287}from'../../aitabs/aitabs.js';function _0x507c(_0x465614,_0x1d64ea){const _0xb75f90=_0xb75f();return _0x507c=function(_0x507ce7,_0x5270f9){_0x507ce7=_0x507ce7-0x194;let _0x33aa05=_0xb75f90[_0x507ce7];return _0x33aa05;},_0x507c(_0x465614,_0x1d64ea);}import'../../../theme/aieditorintegration/aitogglebutton.css';export class AIToggleButtonUI extends _0x381e89{static get[_0x12ad8d(0x1b0)](){return[_0x34f287];}static get[_0x12ad8d(0x1b6)](){const _0x1e7647=_0x12ad8d;return _0x1e7647(0x1b4);}static get[_0x12ad8d(0x1ab)](){return!0x0;}static get[_0x12ad8d(0x1a0)](){return!0x0;}[_0x12ad8d(0x19f)](){const _0x35d4e0=_0x12ad8d,_0x1d0458=this[_0x35d4e0(0x1a5)];_0x1d0458[_0x35d4e0(0x1ae)][_0x35d4e0(0x1ac)](_0x35d4e0(0x194),new _0x170dba(_0x1d0458)),_0x1d0458['ui'][_0x35d4e0(0x19d)][_0x35d4e0(0x1ac)](_0x35d4e0(0x194),()=>{const _0x3b9136=_0x35d4e0,_0x1864a0=this[_0x3b9136(0x19e)](_0x5c85d4);return _0x1864a0[_0x3b9136(0x1a7)]({'tooltip':!0x0,'class':_0x3b9136(0x1b2)}),_0x1864a0;}),_0x1d0458['ui'][_0x35d4e0(0x19d)][_0x35d4e0(0x1ac)](_0x35d4e0(0x1a4),()=>{const _0x1b2ee6=_0x35d4e0,_0x3c79bd=this[_0x1b2ee6(0x19e)](_0xe3f7f6);return _0x3c79bd[_0x1b2ee6(0x1a7)]({'role':_0x1b2ee6(0x19a)}),_0x3c79bd;});}[_0x12ad8d(0x19e)](_0x230ace){const _0x58f892=_0x12ad8d,_0x2f118d=this[_0x58f892(0x1a5)],_0x57b3d4=_0x2f118d[_0x58f892(0x1ae)][_0x58f892(0x1a1)](_0x58f892(0x194)),_0x19933b=new _0x230ace(_0x2f118d[_0x58f892(0x199)]);return _0x19933b[_0x58f892(0x1a7)]({'label':_0x425cf9(_0x2f118d[_0x58f892(0x199)],_0x58f892(0x198)),'icon':_0xf611fb,'isToggleable':!0x0}),_0x19933b[_0x58f892(0x1ad)](_0x58f892(0x19c))['to'](_0x57b3d4),_0x19933b[_0x58f892(0x1ad)](_0x58f892(0x1a9))['to'](_0x57b3d4,_0x58f892(0x197),_0x17352b=>!!_0x17352b),this[_0x58f892(0x1b1)](_0x19933b,_0x58f892(0x1a6),()=>{const _0x53d992=_0x58f892;_0x57b3d4[_0x53d992(0x1a6)]();}),_0x19933b;}}function _0xb75f(){const _0x1a3317=['set','1349943zaILzZ','isOn','6315232hnwSkJ','isOfficialPlugin','add','bind','commands','2wHgipC','requires','listenTo','ck-ai-toggle-button','279952vpnNyW','AIToggleButtonUI','58950aawrKb','pluginName','toggleAi','80NdFbhG','826591ewdkeT','value','AI_TOGGLE_BUTTON_LABEL','locale','menuitemcheckbox','30qajeZd','isEnabled','componentFactory','_createAIUIButton','init','isPremiumPlugin','get','123350ZuFiYm','2947158JcoUdT','menuBar:toggleAi','editor','execute'];_0xb75f=function(){return _0x1a3317;};return _0xb75f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3a09bb=_0x1b18;(function(_0x54e783,_0x50680f){const _0x243c1d=_0x1b18,_0x3ec8f6=_0x54e783();while(!![]){try{const _0x2a1ab7=-parseInt(_0x243c1d(0x9a))/0x1*(-parseInt(_0x243c1d(0x98))/0x2)+parseInt(_0x243c1d(0x92))/0x3*(parseInt(_0x243c1d(0x9d))/0x4)+-parseInt(_0x243c1d(0x96))/0x5*(-parseInt(_0x243c1d(0x90))/0x6)+-parseInt(_0x243c1d(0x91))/0x7*(parseInt(_0x243c1d(0x8c))/0x8)+parseInt(_0x243c1d(0x8f))/0x9+-parseInt(_0x243c1d(0x9b))/0xa*(parseInt(_0x243c1d(0x9e))/0xb)+-parseInt(_0x243c1d(0x8d))/0xc;if(_0x2a1ab7===_0x50680f)break;else _0x3ec8f6['push'](_0x3ec8f6['shift']());}catch(_0x40c1cc){_0x3ec8f6['push'](_0x3ec8f6['shift']());}}}(_0x1c69,0x860c0));function _0x1c69(){const _0xb19974=['2760jjHHvE','value','452dALYtw','50fUyjnh','isEnabled','11864IJFNod','2026684gCaliJ','get','editor','isVisible','88QvneaZ','1010580ZBSJNX','plugins','426861siNhKj','4793370FGYruD','442687QboaBW','789ecqrtb','AITabs','bind','execute','5oPLAwG','view'];_0x1c69=function(){return _0xb19974;};return _0x1c69();}import{Command as _0x52433d}from'ckeditor5/src/core.js';function _0x1b18(_0x57cb7d,_0xc50778){const _0x1c6974=_0x1c69();return _0x1b18=function(_0x1b18d4,_0x33cdd8){_0x1b18d4=_0x1b18d4-0x8b;let _0x54466f=_0x1c6974[_0x1b18d4];return _0x54466f;},_0x1b18(_0x57cb7d,_0xc50778);}export class ToggleAICommand extends _0x52433d{constructor(_0x5691ee){const _0x5ba2e3=_0x1b18;super(_0x5691ee);const _0x2a5d98=_0x5691ee[_0x5ba2e3(0x8e)][_0x5ba2e3(0x9f)](_0x5ba2e3(0x93))[_0x5ba2e3(0x97)];this[_0x5ba2e3(0x94)](_0x5ba2e3(0x99))['to'](_0x2a5d98,_0x5ba2e3(0x8b)),this[_0x5ba2e3(0x9c)]=!0x0;}[_0x3a09bb(0x95)](){const _0x16b39d=_0x3a09bb,_0xd3863a=this[_0x16b39d(0xa0)][_0x16b39d(0x8e)][_0x16b39d(0x9f)](_0x16b39d(0x93))[_0x16b39d(0x97)];_0xd3863a[_0x16b39d(0x8b)]=!_0xd3863a[_0x16b39d(0x8b)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1a2cc4=_0x31b0;(function(_0x3d8ce9,_0x57cc48){var _0x4a3876=_0x31b0,_0xfdf720=_0x3d8ce9();while(!![]){try{var _0x43a258=parseInt(_0x4a3876(0x197))/0x1+-parseInt(_0x4a3876(0x199))/0x2+-parseInt(_0x4a3876(0x19e))/0x3+-parseInt(_0x4a3876(0x1a3))/0x4+parseInt(_0x4a3876(0x1a5))/0x5+-parseInt(_0x4a3876(0x19c))/0x6+parseInt(_0x4a3876(0x19b))/0x7;if(_0x43a258===_0x57cc48)break;else _0xfdf720['push'](_0xfdf720['shift']());}catch(_0x348936){_0xfdf720['push'](_0xfdf720['shift']());}}}(_0x4260,0xc4a4b));import{Plugin as _0x1aae81}from'ckeditor5/src/core.js';import{AIQuickActionsUI as _0x1ab69c}from'./aiquickactionsui.js';import{AIQuickActionsEditing as _0x5acbc9}from'./aiquickactionsediting.js';function _0x31b0(_0x461438,_0x5c1049){var _0x426093=_0x4260();return _0x31b0=function(_0x31b017,_0x1944f9){_0x31b017=_0x31b017-0x197;var _0x3654aa=_0x426093[_0x31b017];return _0x3654aa;},_0x31b0(_0x461438,_0x5c1049);}import{AIActions as _0x164bb4}from'../aiactions/aiactions.js';export class AIQuickActions extends _0x1aae81{static get[_0x1a2cc4(0x1a0)](){return[_0x1ab69c,_0x5acbc9,_0x164bb4];}static get[_0x1a2cc4(0x198)](){var _0x21ae67=_0x1a2cc4;return _0x21ae67(0x19a);}static get[_0x1a2cc4(0x19d)](){return!0x0;}static get[_0x1a2cc4(0x19f)](){return!0x0;}constructor(_0x171d9e){var _0x5451f2=_0x1a2cc4;super(_0x171d9e),_0x171d9e[_0x5451f2(0x1a1)][_0x5451f2(0x1a2)](_0x5451f2(0x1a4),{'extraCommands':[],'removeCommands':[],'isSearchEnabled':!0x0});}}function _0x4260(){var _0x40b915=['AIQuickActions','25281823qrJGUF','3637434ZDrtLG','isOfficialPlugin','3595827KtFKhq','isPremiumPlugin','requires','config','define','5993380OfxQVz','ai.quickActions','1637670ZsDwzo','1016665eFnSim','pluginName','1694488WNIvNH'];_0x4260=function(){return _0x40b915;};return _0x4260();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a0297=_0x1849;function _0x1849(_0xbd1a10,_0x26e282){const _0x542e47=_0x542e();return _0x1849=function(_0x1849cf,_0xa728d2){_0x1849cf=_0x1849cf-0xb0;let _0x149cba=_0x542e47[_0x1849cf];return _0x149cba;},_0x1849(_0xbd1a10,_0x26e282);}(function(_0x52822b,_0x206481){const _0x21e2b7=_0x1849,_0x5a9837=_0x52822b();while(!![]){try{const _0x2c5b80=-parseInt(_0x21e2b7(0xc9))/0x1+parseInt(_0x21e2b7(0xbd))/0x2*(-parseInt(_0x21e2b7(0xbf))/0x3)+parseInt(_0x21e2b7(0xb7))/0x4+-parseInt(_0x21e2b7(0xe3))/0x5*(parseInt(_0x21e2b7(0xe0))/0x6)+parseInt(_0x21e2b7(0xb5))/0x7+parseInt(_0x21e2b7(0xd7))/0x8*(-parseInt(_0x21e2b7(0xb4))/0x9)+parseInt(_0x21e2b7(0xd6))/0xa;if(_0x2c5b80===_0x206481)break;else _0x5a9837['push'](_0x5a9837['shift']());}catch(_0x39a1ce){_0x5a9837['push'](_0x5a9837['shift']());}}}(_0x542e,0xdb0d0));function _0x542e(){const _0x35736f=['147520dHoUcf','other','isCollapsed','_handleAIChatAction','get','model','handleAIReviewAction','ai-quick-actions-plugin-not-found','chat','type','has','REVIEW','AIChatController','22219170wPfLmu','80KsXKNh','icon','sendMessage','setSelection','log','executeAction','ACTION','label','actionName','7539324jCdEgo','AIActions','getSelectedBlocks','5rqlLXd','CHAT','getLimitElement','AI_QUICK_ACTIONS_PLUGIN_NOT_FOUND','activeTab','AIChat','_expandSelectionIfCollapsed','displayedPrompt','document','locale','focusPromptInput','args','editor','prompt','schema','addSelectionToChatContext','716598lbMncU','10665228dDjVuR','AIReviewMode','1826276WCtPAT','plugins','selection','ask-ai','isVisible','_handleAIReviewAction','13308MNAKIV','parent','498zcMDZg','_handleAIActionsActionLabel','_handleAIActionsAction','change','execute','activateTab','view','removeSelectionFromChatContext','AITabs','startConversation'];_0x542e=function(){return _0x35736f;};return _0x542e();}import{Command as _0x4b8797}from'ckeditor5/src/core.js';import{CKEditorError as _0x284dfa,first as _0x4e3eb9}from'ckeditor5/src/utils.js';import{AIQuickActionType as _0x435b35}from'./aiquickactionsui.js';import{getTranslation as _0x8f8ece}from'../aicore/utils/common-translations.js';export class AIQuickActionsCommand extends _0x4b8797{[_0x2a0297(0xc3)](_0x40f52a){const _0xbdb464=_0x2a0297;switch(this[_0xbdb464(0xe9)](),_0x40f52a[_0xbdb464(0xd2)]){case _0x435b35[_0xbdb464(0xe4)]:if(!this[_0xbdb464(0xb0)][_0xbdb464(0xb8)][_0xbdb464(0xd3)](_0xbdb464(0xe8))){const _0x5de11e=_0x8f8ece(this[_0xbdb464(0xb0)][_0xbdb464(0xec)],_0xbdb464(0xe6),_0xbdb464(0xe8));throw new _0x284dfa(_0xbdb464(0xd0),this[_0xbdb464(0xb0)],{'errorMessage':_0x5de11e});}this[_0xbdb464(0xcc)](_0x40f52a);break;case _0x435b35[_0xbdb464(0xdd)]:if(!this[_0xbdb464(0xb0)][_0xbdb464(0xb8)][_0xbdb464(0xd3)](_0xbdb464(0xe1))){const _0x2ecf5f=_0x8f8ece(this[_0xbdb464(0xb0)][_0xbdb464(0xec)],_0xbdb464(0xe6),_0xbdb464(0xe1));throw new _0x284dfa(_0xbdb464(0xd0),this[_0xbdb464(0xb0)],{'errorMessage':_0x2ecf5f});}this[_0xbdb464(0xc1)](_0x40f52a);break;case _0x435b35[_0xbdb464(0xd4)]:if(!this[_0xbdb464(0xb0)][_0xbdb464(0xb8)][_0xbdb464(0xd3)](_0xbdb464(0xb6))){const _0xa8ebfa=_0x8f8ece(this[_0xbdb464(0xb0)][_0xbdb464(0xec)],_0xbdb464(0xe6),_0xbdb464(0xb6));throw new _0x284dfa(_0xbdb464(0xd0),this[_0xbdb464(0xb0)],{'errorMessage':_0xa8ebfa});}this[_0xbdb464(0xbc)](_0x40f52a);}}async[_0x2a0297(0xcc)](_0x26254b){const _0x33af45=_0x2a0297,_0x58b7b1=this[_0x33af45(0xb0)][_0x33af45(0xb8)][_0x33af45(0xcd)](_0x33af45(0xe8)),_0x2e0785=this[_0x33af45(0xb0)][_0x33af45(0xb8)][_0x33af45(0xcd)](_0x33af45(0xd5)),_0x4e4add=this[_0x33af45(0xb0)][_0x33af45(0xb8)][_0x33af45(0xcd)](_0x33af45(0xc7))[_0x33af45(0xc5)];if(_0x4e4add[_0x33af45(0xbb)]||(_0x4e4add[_0x33af45(0xbb)]=!0x0),_0x33af45(0xd1)!==_0x4e4add[_0x33af45(0xe7)]&&_0x4e4add[_0x33af45(0xc4)](_0x33af45(0xd1)),_0x33af45(0xba)===_0x26254b['id'])_0x2e0785[_0x33af45(0xc6)](),await _0x58b7b1[_0x33af45(0xb3)](),_0x58b7b1[_0x33af45(0xed)]();else await _0x58b7b1[_0x33af45(0xc8)](),_0x2e0785[_0x33af45(0xc6)](),await _0x58b7b1[_0x33af45(0xb3)](),_0x58b7b1[_0x33af45(0xed)](),await _0x58b7b1[_0x33af45(0xd9)]({'message':_0x26254b[_0x33af45(0xb1)]||_0x26254b[_0x33af45(0xea)],'quickActionData':{'id':_0x26254b['id'],'displayedPrompt':_0x26254b[_0x33af45(0xea)]}});}[_0x2a0297(0xe9)](){const _0x1df2a4=_0x2a0297,_0x115488=this[_0x1df2a4(0xb0)],_0x42bb16=_0x115488[_0x1df2a4(0xce)][_0x1df2a4(0xeb)][_0x1df2a4(0xb9)];if(!_0x42bb16[_0x1df2a4(0xcb)])return;const _0x3a3640=_0x4e3eb9(_0x42bb16[_0x1df2a4(0xe2)]())||_0x115488[_0x1df2a4(0xce)][_0x1df2a4(0xb2)][_0x1df2a4(0xe5)](_0x42bb16);_0x115488[_0x1df2a4(0xce)][_0x1df2a4(0xc2)](_0x510c44=>{const _0x771105=_0x1df2a4;_0x510c44[_0x771105(0xda)](_0x3a3640,'in');});}[_0x2a0297(0xc0)](_0xe8548f){const _0x437d79=_0x2a0297;return _0xe8548f[_0x437d79(0xbe)]?.[_0x437d79(0xde)]&&_0x437d79(0xca)!==_0xe8548f[_0x437d79(0xbe)]?.['id']?_0xe8548f[_0x437d79(0xbe)][_0x437d79(0xde)]+':\x20'+_0xe8548f[_0x437d79(0xea)]:_0xe8548f[_0x437d79(0xea)];}async[_0x2a0297(0xc1)](_0x20eadb){const _0x2325a9=_0x2a0297,_0x267864=this[_0x2325a9(0xb0)][_0x2325a9(0xb8)][_0x2325a9(0xcd)](_0x2325a9(0xe1)),_0x3a6fc8=_0x20eadb[_0x2325a9(0xb1)]?{'userMessage':_0x20eadb[_0x2325a9(0xb1)],'model':_0x20eadb[_0x2325a9(0xce)]}:{'actionName':_0x20eadb[_0x2325a9(0xdf)]||_0x20eadb['id'],'args':_0x20eadb[_0x2325a9(0xee)]},_0x41d659=this[_0x2325a9(0xc0)](_0x20eadb);await _0x267864[_0x2325a9(0xdc)](_0x3a6fc8,_0x41d659,_0x20eadb[_0x2325a9(0xd8)]);}async[_0x2a0297(0xbc)](_0x2c4c31){const _0x1ec4d4=_0x2a0297;console[_0x1ec4d4(0xdb)](_0x1ec4d4(0xcf),_0x2c4c31);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4bf463=_0x1fa2;(function(_0x358102,_0x27cc9e){const _0x3596da=_0x1fa2,_0x54d9a4=_0x358102();while(!![]){try{const _0x2ecc01=-parseInt(_0x3596da(0x1af))/0x1*(-parseInt(_0x3596da(0x1c0))/0x2)+-parseInt(_0x3596da(0x1b9))/0x3+parseInt(_0x3596da(0x1b0))/0x4*(parseInt(_0x3596da(0x1ad))/0x5)+parseInt(_0x3596da(0x1c1))/0x6*(parseInt(_0x3596da(0x1a9))/0x7)+-parseInt(_0x3596da(0x1b8))/0x8+-parseInt(_0x3596da(0x1b6))/0x9*(-parseInt(_0x3596da(0x1be))/0xa)+parseInt(_0x3596da(0x1b4))/0xb*(-parseInt(_0x3596da(0x1c7))/0xc);if(_0x2ecc01===_0x27cc9e)break;else _0x54d9a4['push'](_0x54d9a4['shift']());}catch(_0x2f5ee4){_0x54d9a4['push'](_0x54d9a4['shift']());}}}(_0x4e6f,0x5f7d2));import{Plugin as _0x1fe982}from'ckeditor5/src/core.js';function _0x4e6f(){const _0x1565cf=['62028zJzkOM','7KyBiAS','add','isOfficialPlugin','selection','509885BaoYlT','AIChat','13vFNfZl','8TjPmSn','model','directChange','editor','528HiADxz','pluginName','36ZYSXVV','plugins','4594608Arpole','283098MTPZeQ','change:range','AIQuickActionsEditing','isPremiumPlugin','removeSelectionFromChatContext','815430jiZkJs','init','6188tFibjJ','4425468sECoET','get','commands','aiQuickAction','document','has'];_0x4e6f=function(){return _0x1565cf;};return _0x4e6f();}function _0x1fa2(_0x16ca7c,_0x10b6cf){const _0x4e6fd3=_0x4e6f();return _0x1fa2=function(_0x1fa274,_0xe6ed98){_0x1fa274=_0x1fa274-0x1a9;let _0x2081fa=_0x4e6fd3[_0x1fa274];return _0x2081fa;},_0x1fa2(_0x16ca7c,_0x10b6cf);}import{AIQuickActionsCommand as _0x11ec3d}from'./aiquickactionscommand.js';export class AIQuickActionsEditing extends _0x1fe982{static get[_0x4bf463(0x1b5)](){const _0x55b238=_0x4bf463;return _0x55b238(0x1bb);}static get[_0x4bf463(0x1ab)](){return!0x0;}static get[_0x4bf463(0x1bc)](){return!0x0;}[_0x4bf463(0x1bf)](){const _0x2a7958=_0x4bf463,_0x546778=this[_0x2a7958(0x1b3)],_0xc8155b=new _0x11ec3d(this[_0x2a7958(0x1b3)]);if(_0x546778[_0x2a7958(0x1c3)][_0x2a7958(0x1aa)](_0x2a7958(0x1c4),_0xc8155b),_0x546778[_0x2a7958(0x1b7)][_0x2a7958(0x1c6)](_0x2a7958(0x1ae))){const _0x1ee398=this[_0x2a7958(0x1b3)][_0x2a7958(0x1b7)][_0x2a7958(0x1c2)](_0x2a7958(0x1ae));_0x546778[_0x2a7958(0x1b1)][_0x2a7958(0x1c5)][_0x2a7958(0x1ac)]['on'](_0x2a7958(0x1ba),(_0xc2aa6a,_0x238dd7)=>{const _0x3493bb=_0x2a7958;_0x238dd7[_0x3493bb(0x1b2)]&&_0x1ee398[_0x3493bb(0x1bd)]();});}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1e1fb3=_0x5d96;(function(_0x1c660d,_0x42dea7){const _0x23ecd8=_0x5d96,_0x434383=_0x1c660d();while(!![]){try{const _0x12451b=parseInt(_0x23ecd8(0x124))/0x1+parseInt(_0x23ecd8(0x19e))/0x2+parseInt(_0x23ecd8(0x141))/0x3+parseInt(_0x23ecd8(0x14c))/0x4*(parseInt(_0x23ecd8(0x13d))/0x5)+-parseInt(_0x23ecd8(0x10b))/0x6+parseInt(_0x23ecd8(0x112))/0x7*(-parseInt(_0x23ecd8(0x18a))/0x8)+-parseInt(_0x23ecd8(0x154))/0x9;if(_0x12451b===_0x42dea7)break;else _0x434383['push'](_0x434383['shift']());}catch(_0x1de788){_0x434383['push'](_0x434383['shift']());}}}(_0xfbbd,0x94227));import{IconAIAdjustLength as _0xe53c47,IconAIChangeTone as _0x576d7c,IconAIChatCommands as _0xb5d4d4,IconAIContinueWriting as _0x5bfb04,IconAIGrammarCheck as _0x4efbb3,IconAIImproveWriting as _0x26e326,IconAIOther as _0x3494e7,IconAIQuickActions as _0x5467b5,IconAITranslate as _0x4bd43d}from'@ckeditor/ckeditor5-icons';import{Plugin as _0x1b5035}from'ckeditor5/src/core.js';import{CKEditorError as _0x6b2b32,logError as _0x9e8c3d}from'ckeditor5/src/utils.js';import{getTranslation as _0x454835}from'../aicore/utils/common-translations.js';function _0x5d96(_0x31d526,_0xdd0f49){const _0xfbbdd4=_0xfbbd();return _0x5d96=function(_0x5d96c9,_0x545cae){_0x5d96c9=_0x5d96c9-0x104;let _0x2b155c=_0xfbbdd4[_0x5d96c9];return _0x2b155c;},_0x5d96(_0x31d526,_0xdd0f49);}import{aiQuickActionsDropdownCreator as _0x2eef32}from'./ui/aiquickactionsdropdowncreator.js';import{aiQuickActionsButtonCreator as _0x5d4d02}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0x3222f6,BalloonToolbar as _0xd0f190,MenuBarMenuView as _0x8df35b,MenuBarMenuListView as _0xdc1a18,MenuBarMenuListItemView as _0x57c3a0,MenuBarMenuListItemButtonView as _0x5bbe07}from'ckeditor5/src/ui.js';import'../../theme/aiquickactions/aiquickactions.css';function _0xfbbd(){const _0x386a72=['AIQuickActionsUI','AI_QUICK_ACTIONS_MAKE_LONGER','_initializeQuickActionsMenuBar','label','has','russian','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','portuguese','make-tone-casual','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','_prepareQuickActionsDefinition','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','ai.quickActions.removeCommands','AI_QUICK_ACTIONS_CONTINUE_WRITING','<task>For\x20given\x20selected\x20part\x20of\x20HTML\x20document\x20you\x20must\x20explain\x20the\x20meaning\x20of\x20it\x27s\x20content\x20clearly\x20and\x20in\x20plain\x20language.</task><rules>1.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is:-\x20If\x20it\x20looks\x20like\x20a\x20definition\x20explain\x20the\x20concept\x20in\x20simple\x20terms.-\x20If\x20it\x20looks\x20like\x20a\x20description\x20clarify\x20what\x20it\x20is\x20describing\x20and\x20why\x20it\x20matters.-\x20If\x20it\x20contains\x20technical\x20terms\x20or\x20jargon\x20break\x20them\x20down\x20into\x20everyday\x20language.-\x20If\x20it\x20looks\x20instructional\x20restate\x20as\x20clear\x20steps\x20someone\x20can\x20follow.-\x20If\x20it\x20provides\x20examples\x20explain\x20what\x20the\x20example\x20shows\x20and\x20why\x20it\x27s\x20relevant.-\x20If\x20it\x20presents\x20an\x20argument\x20or\x20claim\x20restate\x20the\x20claim\x20neutrally\x20and\x20explain\x20its\x20purpose.-\x20If\x20it\x20is\x20narrative/story-like\x20explain\x20what\x20event\x20or\x20situation\x20is\x20being\x20described.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20explain\x20what\x20the\x20data\x20indicates.-\x20If\x20it\x20is\x20a\x20quotation\x20explain\x20the\x20meaning\x20of\x20the\x20quote\x20in\x20context.-\x20If\x20it\x20compares/contrasts\x20things\x20explain\x20the\x20key\x20differences\x20or\x20similarities\x20simply.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20give\x20a\x20clear,\x20plain-language\x20explanation\x20of\x20its\x20meaning,\x20focusing\x20on\x20usefulness.2.\x20Provide\x20context\x20if\x20the\x20meaning\x20could\x20be\x20unclear\x20without\x20it.\x20(e.g.,\x20explain\x20where\x20such\x20a\x20term\x20might\x20be\x20used,\x20or\x20why\x20it\x20is\x20important).3.\x20Keep\x20the\x20explanation\x20short\x20but\x20complete\x20(2–5\x20sentences).Avoid\x20overly\x20technical\x20detail\x20unless\x20it\x20is\x20necessary\x20for\x20understanding.4.\x20Do\x20not\x20simply\x20repeat\x20the\x20original\x20text\x20—\x20restate\x20and\x20expand\x20it\x20in\x20plain\x20words.5.\x20If\x20possible,\x20add\x20a\x20short\x20example\x20or\x20analogy\x20to\x20make\x20it\x20easier\x20to\x20understand.6.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20explanation.7.\x20Your\x20explanation\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20explanation.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','focus','items','type','values','requires','panelView','pluginName','_shouldIncludeAction','isOfficialPlugin','view','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','editor','151352uUEvRz','forEach','delegate','AI_QUICK_ACTIONS_MORE_DIRECT','message','AI_QUICK_ACTIONS_TRANSLATE_SPANISH','make-tone-direct','isEnabled','_initializeQuickActionsDropdown','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','language','_quickActionsDefinition','AI_QUICK_ACTIONS_TRANSLATE','uiLanguage','german','chinese','translate-to-spanish','ai.quickActions.isSearchEnabled','ai.chat.models.displayedModels','AI_QUICK_ACTIONS_OTHER','2411936TpTjHd','translate-to-english','translate-to-italian','change-tone','editing','menuitem','_getDefaultAndCustomActions','filter','menu','ask-ai','french','AI_QUICK_ACTIONS_MORE_CONFIDENT','map','AI_QUICK_ACTIONS_EXPLAIN','3638664THNqdj','AI_QUICK_ACTIONS_MORE_CASUAL','getAvailableModels','AI_QUICK_ACTIONS_SUMMARIZE','spanish','_initializeQuickActionsComponentsAndCommands','REVIEW','189hgSEdD','English','adjust-length','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','menuBarView','translate-to-portuguese','aiQuickActions','translate','make-tone-friendly','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20summarize\x20its\x20content\x20in\x20a\x20few\x20sentences,\x20keeping\x20only\x20the\x20essential\x20meaning.</task><rules>1.\x20Your\x20summary\x20should\x20be\x20short\x20and\x20clear:-\x20Aim\x20for\x202–4\x20sentences\x20unless\x20the\x20text\x20is\x20extremely\x20short.-\x20Focus\x20on\x20capturing\x20the\x20main\x20idea(s)\x20without\x20unnecessary\x20detail.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20summary\x20style:-\x20If\x20it\x20is\x20descriptive\x20condense\x20the\x20description\x20into\x20its\x20core\x20idea.-\x20If\x20it\x20is\x20argumentative\x20or\x20opinion-based\x20summarize\x20the\x20main\x20claim\x20and\x20reasoning\x20neutrally.-\x20If\x20it\x20is\x20narrative/story-like\x20capture\x20the\x20main\x20event\x20or\x20outcome\x20without\x20side\x20details.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20summarize\x20what\x20the\x20data\x20shows\x20in\x20plain\x20language.-\x20If\x20it\x20is\x20instructional\x20restate\x20the\x20overall\x20purpose\x20of\x20the\x20steps\x20without\x20listing\x20every\x20step.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20provide\x20a\x20general\x20concise\x20summary.3.\x20Provide\x20context\x20if\x20necessary\x20for\x20clarity:-\x20Mention\x20the\x20subject\x20or\x20topic\x20explicitly\x20so\x20the\x20summary\x20can\x20stand\x20alone.4.\x20Do\x20not\x20simply\x20copy\x20sentences\x20from\x20the\x20original\x20text\x20—\x20rephrase\x20in\x20plain\x20language.5.\x20Avoid\x20adding\x20new\x20information\x20or\x20interpretation\x20not\x20present\x20in\x20the\x20text.6.\x20Summarize\x20in\x20a\x20way\x20that\x20would\x20make\x20sense\x20to\x20someone\x20who\x20has\x20not\x20read\x20the\x20original\x20text.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20summary.8.\x20Your\x20summary\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20summary.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','actions','AIActions','init','DisplayNames','ai.quickActions.extraCommands','make-tone-confident','fix-grammar','AIReviewMode','1060198YphJBX','AI_QUICK_ACTIONS_TRANSLATE_GERMAN','english','getDefaultQuickActions','AIConnector','translate-to-russian','improve-writing','chat-commands','_initializeQuickActionsComponents','AI_QUICK_ACTIONS_IMPROVE_WRITING','buttonView','locale','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','ai-quick-actions-unavailable-model','AI_QUICK_ACTIONS_MORE_FRIENDLY','other','translate-to-korean','summarize','make-longer','displayedPrompt','get','push','make-tone-professional','korean','replace','5coGjKR','AI_QUICK_ACTIONS_CHAT_COMMANDS','ai.chat.context.document.enabled','add','842508Znvvur','componentFactory','config','menuBar:aiQuickActions','translate-to-japanese','set','ai-quick-actions-models-unable-to-retrieve','AI_QUICK_ACTIONS_MAKE_SHORTER','translate-to-chinese','includes','continue','4346084pTiZdA','find','execute','AIChat','children','icon','make-shorter','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','17185563JikBxv','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','japanese','aiQuickAction','commands','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','_executeQuickAction','attachToDom','model','ACTION','explain','AI_QUICK_ACTIONS_ASK_AI','translate-to-french','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20extract\x20and\x20present\x20the\x20key\x20points\x20from\x20its\x20content.</task><rules>1.\x20Present\x20the\x20output\x20as\x20a\x20clear,\x20structured\x20list\x20(bullets\x20or\x20numbered).-\x20Each\x20point\x20should\x20be\x20concise\x20(one\x20sentence\x20or\x20less).-\x20Do\x20not\x20merge\x20distinct\x20ideas\x20into\x20one\x20bullet.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20extraction\x20style:-\x20If\x20it\x20is\x20descriptive\x20capture\x20the\x20main\x20attributes\x20or\x20features.-\x20If\x20it\x20is\x20argumentative\x20extract\x20the\x20main\x20claim\x20and\x20supporting\x20reasons\x20separately.-\x20If\x20it\x20is\x20narrative/story-like\x20extract\x20the\x20main\x20events\x20in\x20chronological\x20order.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20highlight\x20the\x20most\x20important\x20facts\x20or\x20numbers.-\x20If\x20it\x20is\x20instructional\x20list\x20the\x20steps\x20or\x20main\x20actions\x20in\x20simplified\x20form.-\x20If\x20it\x20provides\x20comparisons\x20extract\x20the\x20contrasted\x20items\x20and\x20their\x20differences/similarities.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20category\x20above\x20extract\x20the\x20main\x20ideas\x20in\x20plain,\x20short\x20statements.3.\x20Keep\x20the\x20list\x20between\x203–7\x20items\x20where\x20possible.-\x20If\x20the\x20text\x20is\x20very\x20short,\x20fewer\x20items\x20are\x20fine.-\x20If\x20it\x20is\x20very\x20long,\x20focus\x20on\x20the\x20most\x20important\x20ideas\x20only.4.\x20Do\x20not\x20copy\x20long\x20text\x20fragments\x20—\x20restate\x20in\x20simple\x20words.5.\x20Do\x20not\x20add\x20interpretation,\x20evaluation,\x20or\x20commentary\x20beyond\x20the\x20text.6.\x20Ensure\x20the\x20list\x20can\x20stand\x20alone\x20without\x20requiring\x20the\x20reader\x20to\x20see\x20the\x20original\x20document.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20key\x20points.8.\x20Your\x20key\x20points\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20extracted\x20key\x20points.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','italian','length','close','CHAT','plugins','isPremiumPlugin','translate-to-german','AI_QUICK_ACTIONS_HEADING','highlight-key-points','AI_QUICK_ACTIONS_CHANGE_TONE','AI_QUICK_ACTIONS_ADJUST_LENGTH','some'];_0xfbbd=function(){return _0x386a72;};return _0xfbbd();}import{AIModels as _0x4d1c7d}from'../aicore/model/aimodels.js';const oe=_0x1e1fb3(0x17d),ae=_0x1e1fb3(0x11b),se=_0x1e1fb3(0x162);export var AIQuickActionType;!function(_0x4f5569){const _0x2de05f=_0x1e1fb3;_0x4f5569[_0x2de05f(0x166)]=_0x2de05f(0x166),_0x4f5569[_0x2de05f(0x15d)]=_0x2de05f(0x15d),_0x4f5569[_0x2de05f(0x111)]=_0x2de05f(0x111);}(AIQuickActionType||(AIQuickActionType={}));export var AIQuickActionTypeToPluginName;!function(_0x2525d8){const _0x2c804e=_0x1e1fb3;_0x2525d8[_0x2c804e(0x166)]=_0x2c804e(0x14f),_0x2525d8[_0x2c804e(0x15d)]=_0x2c804e(0x11d),_0x2525d8[_0x2c804e(0x111)]=_0x2c804e(0x123);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));export class AIQuickActionsUI extends _0x1b5035{static get[_0x1e1fb3(0x182)](){return[_0xd0f190];}static get[_0x1e1fb3(0x184)](){const _0x118b93=_0x1e1fb3;return _0x118b93(0x16f);}static get[_0x1e1fb3(0x186)](){return!0x0;}static get[_0x1e1fb3(0x168)](){return!0x0;}async[_0x1e1fb3(0x11e)](){const _0x358d58=_0x1e1fb3,_0x1e8b50=await this[_0x358d58(0x1a4)]();this[_0x358d58(0x179)](_0x1e8b50),this[_0x358d58(0x110)]();}static[_0x1e1fb3(0x127)](_0x39afe6){return function(_0x28ac6e){const _0x1cc4e4=_0x5d96,_0x1d1a68=new Intl[(_0x1cc4e4(0x11f))](['en'],{'type':_0x1cc4e4(0x194)})['of'](_0x28ac6e[_0x1cc4e4(0x197)]),_0x589ba5=_0x1d1a68||_0x1cc4e4(0x113),_0xc9aa41=[{'id':_0x1cc4e4(0x106),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x15f)),'type':AIQuickActionType[_0x1cc4e4(0x166)],'icon':_0xb5d4d4},{'id':_0x1cc4e4(0x12b),'label':_0x454835(_0x28ac6e,_0x1cc4e4(0x13e)),'icon':_0xb5d4d4,'actions':[{'id':_0x1cc4e4(0x15e),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x10a)),'prompt':oe[_0x1cc4e4(0x13c)]('%0',_0x589ba5),'type':AIQuickActionType[_0x1cc4e4(0x166)]},{'id':_0x1cc4e4(0x135),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x10e)),'prompt':ae[_0x1cc4e4(0x13c)]('%0',_0x589ba5),'type':AIQuickActionType[_0x1cc4e4(0x166)]},{'id':_0x1cc4e4(0x16b),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x115)),'prompt':se[_0x1cc4e4(0x13c)]('%0',_0x589ba5),'type':AIQuickActionType[_0x1cc4e4(0x166)]}]},{'id':_0x1cc4e4(0x12a),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x12d)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'icon':_0x26e326},{'id':_0x1cc4e4(0x14b),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x17c)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'icon':_0x5bfb04},{'id':_0x1cc4e4(0x122),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x17a)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'icon':_0x4efbb3},{'id':_0x1cc4e4(0x114),'label':_0x454835(_0x28ac6e,_0x1cc4e4(0x16d)),'icon':_0xe53c47,'actions':[{'id':_0x1cc4e4(0x152),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x148)),'type':AIQuickActionType[_0x1cc4e4(0x15d)]},{'id':_0x1cc4e4(0x136),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x170)),'type':AIQuickActionType[_0x1cc4e4(0x15d)]}]},{'id':_0x1cc4e4(0x1a1),'label':_0x454835(_0x28ac6e,_0x1cc4e4(0x16c)),'icon':_0x576d7c,'actions':[{'id':_0x1cc4e4(0x177),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x10c)),'type':AIQuickActionType[_0x1cc4e4(0x15d)]},{'id':_0x1cc4e4(0x190),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x18d)),'type':AIQuickActionType[_0x1cc4e4(0x15d)]},{'id':_0x1cc4e4(0x11a),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x132)),'type':AIQuickActionType[_0x1cc4e4(0x15d)]},{'id':_0x1cc4e4(0x121),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x108)),'type':AIQuickActionType[_0x1cc4e4(0x15d)]},{'id':_0x1cc4e4(0x13a),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x153)),'type':AIQuickActionType[_0x1cc4e4(0x15d)]}]},{'id':_0x1cc4e4(0x119),'label':_0x454835(_0x28ac6e,_0x1cc4e4(0x196)),'icon':_0x4bd43d,'actions':[{'id':_0x1cc4e4(0x19f),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x159)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'actionName':_0x1cc4e4(0x119),'args':{'language':_0x1cc4e4(0x126)}},{'id':_0x1cc4e4(0x149),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x193)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'actionName':_0x1cc4e4(0x119),'args':{'language':_0x1cc4e4(0x199)}},{'id':_0x1cc4e4(0x19a),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x18f)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'actionName':_0x1cc4e4(0x119),'args':{'language':_0x1cc4e4(0x10f)}},{'id':_0x1cc4e4(0x169),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x125)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'actionName':_0x1cc4e4(0x119),'args':{'language':_0x1cc4e4(0x198)}},{'id':_0x1cc4e4(0x160),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x130)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'actionName':_0x1cc4e4(0x119),'args':{'language':_0x1cc4e4(0x107)}},{'id':_0x1cc4e4(0x145),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x175)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'actionName':_0x1cc4e4(0x119),'args':{'language':_0x1cc4e4(0x156)}},{'id':_0x1cc4e4(0x117),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x188)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'actionName':_0x1cc4e4(0x119),'args':{'language':_0x1cc4e4(0x176)}},{'id':_0x1cc4e4(0x134),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x155)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'actionName':_0x1cc4e4(0x119),'args':{'language':_0x1cc4e4(0x13b)}},{'id':_0x1cc4e4(0x1a0),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x178)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'actionName':_0x1cc4e4(0x119),'args':{'language':_0x1cc4e4(0x163)}},{'id':_0x1cc4e4(0x129),'displayedPrompt':_0x454835(_0x28ac6e,_0x1cc4e4(0x161)),'type':AIQuickActionType[_0x1cc4e4(0x15d)],'actionName':_0x1cc4e4(0x119),'args':{'language':_0x1cc4e4(0x174)}}]},{'id':_0x1cc4e4(0x133),'label':_0x454835(_0x28ac6e,_0x1cc4e4(0x19d)),'icon':_0x3494e7,'actions':[]}];return _0xc9aa41;}(_0x39afe6);}async[_0x1e1fb3(0x1a4)](){const _0x2ea5a4=_0x1e1fb3,_0x202667=AIQuickActionsUI[_0x2ea5a4(0x127)](this[_0x2ea5a4(0x189)][_0x2ea5a4(0x12f)]),_0x382d0f=this[_0x2ea5a4(0x189)][_0x2ea5a4(0x143)][_0x2ea5a4(0x138)](_0x2ea5a4(0x120))||[];let _0x36d180=[];try{_0x36d180=await new _0x4d1c7d({'connector':this[_0x2ea5a4(0x189)][_0x2ea5a4(0x167)][_0x2ea5a4(0x138)](_0x2ea5a4(0x128)),'availableModels':this[_0x2ea5a4(0x189)][_0x2ea5a4(0x143)][_0x2ea5a4(0x138)](_0x2ea5a4(0x19c)),'locale':this[_0x2ea5a4(0x189)][_0x2ea5a4(0x12f)]})[_0x2ea5a4(0x10d)]();}catch(_0x3a82a5){const _0x256016=new _0x6b2b32(_0x2ea5a4(0x147),this,{'error':_0x3a82a5});_0x9e8c3d(_0x256016[_0x2ea5a4(0x18e)]);}finally{const _0x7438bb=_0x382d0f[_0x2ea5a4(0x109)](_0x477089=>({..._0x477089,'icon':void 0x0}));_0x202667[_0x2ea5a4(0x14d)](_0x943b7=>_0x2ea5a4(0x133)===_0x943b7['id'])[_0x2ea5a4(0x11c)][_0x2ea5a4(0x139)](..._0x7438bb),_0x202667[_0x2ea5a4(0x18b)](_0xde2f77=>{const _0x5b2322=_0x2ea5a4;if(_0x5b2322(0x11c)in _0xde2f77)_0xde2f77[_0x5b2322(0x11c)][_0x5b2322(0x18b)](_0x30cfce=>{const _0x4d8833=_0x5b2322;if(_0x30cfce[_0x4d8833(0x191)]=!!_0x36d180[_0x4d8833(0x14d)](_0x5b3348=>_0x5b3348['id']===_0x30cfce[_0x4d8833(0x15c)])||void 0x0===_0x30cfce[_0x4d8833(0x15c)],!_0x30cfce[_0x4d8833(0x191)]){const _0xd88c89=new _0x6b2b32(_0x4d8833(0x131),this,{'actionId':_0x30cfce['id'],'modelId':_0x30cfce[_0x4d8833(0x15c)]});_0x9e8c3d(_0xd88c89[_0x4d8833(0x18e)]);}});else{if(_0xde2f77[_0x5b2322(0x191)]=!!_0x36d180[_0x5b2322(0x14d)](_0xc8544d=>_0xc8544d['id']===_0xde2f77[_0x5b2322(0x15c)])||void 0x0===_0xde2f77[_0x5b2322(0x15c)],!_0xde2f77[_0x5b2322(0x191)]){const _0x351218=new _0x6b2b32(_0x5b2322(0x131),this,{'actionId':_0xde2f77['id'],'modelId':_0xde2f77[_0x5b2322(0x15c)]});_0x9e8c3d(_0x351218[_0x5b2322(0x18e)]);}}});}return _0x202667;}[_0x1e1fb3(0x110)](){const _0x5155a0=_0x1e1fb3,_0x27ac9b=new _0x3222f6(this[_0x5155a0(0x189)][_0x5155a0(0x12f)]);_0x27ac9b[_0x5155a0(0x15b)](),this[_0x5155a0(0x192)](_0x27ac9b),this[_0x5155a0(0x171)](),this[_0x5155a0(0x12c)](_0x27ac9b);}[_0x1e1fb3(0x192)](_0x42d508){const _0x23f686=_0x1e1fb3,_0x26b728=this[_0x23f686(0x189)][_0x23f686(0x143)][_0x23f686(0x138)](_0x23f686(0x19b))??!0x0;this[_0x23f686(0x189)]['ui'][_0x23f686(0x142)][_0x23f686(0x140)](_0x23f686(0x118),_0x2eef32({'editor':this[_0x23f686(0x189)],'content':this[_0x23f686(0x195)],'buttonDefinition':{'icon':_0x5467b5,'label':_0x454835(this[_0x23f686(0x189)][_0x23f686(0x12f)],_0x23f686(0x16a))},'bodyCollection':_0x42d508,'hasSearch':_0x26b728}));}[_0x1e1fb3(0x179)](_0x8c1ba9){const _0x470956=_0x1e1fb3;this[_0x470956(0x195)]=_0x8c1ba9[_0x470956(0x109)](_0x5d83aa=>{const _0x20b0b9=_0x470956;if(_0x20b0b9(0x11c)in _0x5d83aa){const _0x52718e=_0x5d83aa;return{..._0x52718e,'actions':_0x52718e[_0x20b0b9(0x11c)][_0x20b0b9(0x109)](_0x222a9e=>{const {actions:_0x1d1ca9,..._0x2cb380}=_0x52718e;return{..._0x222a9e,'parent':_0x2cb380};})[_0x20b0b9(0x104)](_0x180e09=>this[_0x20b0b9(0x185)](_0x180e09))};}return _0x5d83aa;})[_0x470956(0x104)](_0x226d0d=>_0x470956(0x11c)in _0x226d0d?_0x226d0d[_0x470956(0x11c)][_0x470956(0x164)]>0x0:this[_0x470956(0x185)](_0x226d0d));}[_0x1e1fb3(0x185)](_0x37e6e1){const _0x237437=_0x1e1fb3,_0x43939a=this[_0x237437(0x189)][_0x237437(0x143)][_0x237437(0x138)](_0x237437(0x17b))||[];return this[_0x237437(0x189)][_0x237437(0x167)][_0x237437(0x173)](AIQuickActionTypeToPluginName[_0x37e6e1[_0x237437(0x180)]])&&!_0x43939a[_0x237437(0x14a)](_0x37e6e1['id'])&&!(_0x37e6e1[_0x237437(0x180)]===AIQuickActionType[_0x237437(0x166)]&&!0x1===this[_0x237437(0x189)][_0x237437(0x143)][_0x237437(0x138)](_0x237437(0x13f)));}[_0x1e1fb3(0x12c)](_0x162d49){const _0x77b229=_0x1e1fb3;this[_0x77b229(0x195)][_0x77b229(0x18b)](_0x357c00=>{const _0x2d5bdb=_0x77b229;if(_0x2d5bdb(0x11c)in _0x357c00){const _0x553ebb=_0x2eef32({'editor':this[_0x2d5bdb(0x189)],'content':_0x357c00[_0x2d5bdb(0x11c)],'buttonDefinition':_0x357c00,'bodyCollection':_0x162d49});this[_0x2d5bdb(0x189)]['ui'][_0x2d5bdb(0x142)][_0x2d5bdb(0x140)](_0x357c00['id'],_0x553ebb),_0x357c00[_0x2d5bdb(0x11c)][_0x2d5bdb(0x18b)](_0x3977b2=>{const _0x231aea=_0x2d5bdb,_0x4e1db2=_0x5d4d02({'editor':this[_0x231aea(0x189)],'action':_0x3977b2});this[_0x231aea(0x189)]['ui'][_0x231aea(0x142)][_0x231aea(0x140)](_0x3977b2['id'],_0x4e1db2);});}else{const _0x5cf3f7=_0x5d4d02({'editor':this[_0x2d5bdb(0x189)],'action':_0x357c00,'withText':!0x1,'withIcon':!0x0,'isInDropdown':!0x1});this[_0x2d5bdb(0x189)]['ui'][_0x2d5bdb(0x142)][_0x2d5bdb(0x140)](_0x357c00['id'],_0x5cf3f7);}});}[_0x1e1fb3(0x171)](){const _0x23721d=_0x1e1fb3;this[_0x23721d(0x189)]['ui'][_0x23721d(0x142)][_0x23721d(0x140)](_0x23721d(0x144),_0x28001e=>{const _0x1eda6e=_0x23721d,_0xc7e330=new _0x8df35b(_0x28001e),_0x1813ea=_0x454835(_0x28001e,_0x1eda6e(0x16a));_0xc7e330[_0x1eda6e(0x12e)][_0x1eda6e(0x146)]({'label':_0x1813ea,'icon':_0x5467b5});const _0x3622c3=new _0xdc1a18(_0x28001e);_0x3622c3[_0x1eda6e(0x146)]({'ariaLabel':_0x1813ea,'role':_0x1eda6e(0x105)}),this[_0x1eda6e(0x195)][_0x1eda6e(0x18b)](_0x5c4ddc=>{const _0x2f45fb=_0x1eda6e;if(_0x2f45fb(0x11c)in _0x5c4ddc){const _0x207686=_0x5c4ddc,_0x36a569=new _0x57c3a0(_0x28001e,_0xc7e330),_0x4c7dbf=new _0x8df35b(_0x28001e),_0x2e367e=new _0xdc1a18(_0x28001e);_0x4c7dbf[_0x2f45fb(0x12e)][_0x2f45fb(0x146)]({'label':_0x207686[_0x2f45fb(0x172)],'icon':_0x207686[_0x2f45fb(0x151)]}),_0x207686[_0x2f45fb(0x11c)][_0x2f45fb(0x18b)](_0x411156=>{const _0xaa56cb=_0x2f45fb,_0x40cd23=new _0x57c3a0(_0x28001e,_0x4c7dbf),_0xe5459c=new _0x5bbe07(_0x28001e);_0xe5459c[_0xaa56cb(0x146)]({'label':_0x411156[_0xaa56cb(0x137)],'icon':_0x411156[_0xaa56cb(0x151)],'role':_0xaa56cb(0x1a3),'isEnabled':_0x411156[_0xaa56cb(0x191)]}),_0xe5459c['on'](_0xaa56cb(0x14e),()=>{const _0x4de867=_0xaa56cb;this[_0x4de867(0x15a)](_0x411156);}),_0xe5459c[_0xaa56cb(0x18c)](_0xaa56cb(0x14e))['to'](_0x4c7dbf),_0x40cd23[_0xaa56cb(0x150)][_0xaa56cb(0x140)](_0xe5459c),_0x2e367e[_0xaa56cb(0x17f)][_0xaa56cb(0x140)](_0x40cd23);}),_0x4c7dbf[_0x2f45fb(0x183)][_0x2f45fb(0x150)][_0x2f45fb(0x140)](_0x2e367e),_0x36a569[_0x2f45fb(0x150)][_0x2f45fb(0x140)](_0x4c7dbf),_0x3622c3[_0x2f45fb(0x17f)][_0x2f45fb(0x140)](_0x36a569);}else{const _0xcc4dc3=_0x5c4ddc,_0x48bd01=new _0x57c3a0(_0x28001e,_0xc7e330),_0x14fa18=new _0x5bbe07(_0x28001e);_0x14fa18[_0x2f45fb(0x146)]({'label':_0xcc4dc3[_0x2f45fb(0x137)],'icon':_0xcc4dc3[_0x2f45fb(0x151)],'role':_0x2f45fb(0x1a3),'isEnabled':_0xcc4dc3[_0x2f45fb(0x191)]}),_0x14fa18['on'](_0x2f45fb(0x14e),()=>{const _0x39f910=_0x2f45fb;this[_0x39f910(0x15a)](_0xcc4dc3);}),_0x14fa18[_0x2f45fb(0x18c)](_0x2f45fb(0x14e))['to'](_0xc7e330),_0x48bd01[_0x2f45fb(0x150)][_0x2f45fb(0x140)](_0x14fa18),_0x3622c3[_0x2f45fb(0x17f)][_0x2f45fb(0x140)](_0x48bd01);}});const _0x39d165=Object[_0x1eda6e(0x181)](AIQuickActionTypeToPluginName)[_0x1eda6e(0x16e)](_0x43e399=>this[_0x1eda6e(0x189)][_0x1eda6e(0x167)][_0x1eda6e(0x173)](_0x43e399));return _0xc7e330[_0x1eda6e(0x146)]({'isEnabled':_0x39d165}),_0xc7e330[_0x1eda6e(0x183)][_0x1eda6e(0x150)][_0x1eda6e(0x140)](_0x3622c3),_0xc7e330;});}[_0x1e1fb3(0x15a)](_0x2653f6){const _0x4fb888=_0x1e1fb3,_0x1cde47=this[_0x4fb888(0x189)];_0x1cde47[_0x4fb888(0x1a2)][_0x4fb888(0x187)][_0x4fb888(0x17e)](),_0x1cde47[_0x4fb888(0x158)][_0x4fb888(0x14e)](_0x4fb888(0x157),_0x2653f6);const _0x548d5b=_0x1cde47['ui'][_0x4fb888(0x187)][_0x4fb888(0x116)];_0x548d5b&&_0x548d5b[_0x4fb888(0x165)]&&_0x548d5b[_0x4fb888(0x165)]();}}
|
|
23
|
+
const _0x545ac1=_0x1289;(function(_0x61c734,_0x44a510){const _0x131bf9=_0x1289,_0x20a5bf=_0x61c734();while(!![]){try{const _0x21fde9=-parseInt(_0x131bf9(0x1dd))/0x1*(-parseInt(_0x131bf9(0x1fe))/0x2)+parseInt(_0x131bf9(0x1d0))/0x3+-parseInt(_0x131bf9(0x1bd))/0x4*(-parseInt(_0x131bf9(0x1c0))/0x5)+parseInt(_0x131bf9(0x1f3))/0x6+parseInt(_0x131bf9(0x21c))/0x7*(parseInt(_0x131bf9(0x1e1))/0x8)+parseInt(_0x131bf9(0x1a3))/0x9*(parseInt(_0x131bf9(0x1ec))/0xa)+parseInt(_0x131bf9(0x1b2))/0xb*(-parseInt(_0x131bf9(0x211))/0xc);if(_0x21fde9===_0x44a510)break;else _0x20a5bf['push'](_0x20a5bf['shift']());}catch(_0x169cdb){_0x20a5bf['push'](_0x20a5bf['shift']());}}}(_0x1919,0xd9252));import{IconAIAdjustLength as _0x4e3641,IconAIChangeTone as _0x436e6e,IconAIChatCommands as _0x28581a,IconAIContinueWriting as _0x349770,IconAIGrammarCheck as _0x54df7e,IconAIImproveWriting as _0x5bd579,IconAIOther as _0x1de7c4,IconAIQuickActions as _0x4e3b6a,IconAITranslate as _0x4cd12e}from'@ckeditor/ckeditor5-icons';import{Plugin as _0x307a2a}from'ckeditor5/src/core.js';import{CKEditorError as _0x3f4e80,logError as _0x56884d}from'ckeditor5/src/utils.js';import{getTranslation as _0x41fca3}from'../aicore/utils/common-translations.js';import{aiQuickActionsDropdownCreator as _0x404d3a}from'./ui/aiquickactionsdropdowncreator.js';import{aiQuickActionsButtonCreator as _0x2c96f1}from'./ui/aiquickactionsbuttoncreator.js';import{BodyCollection as _0xe73188,BalloonToolbar as _0x201579,MenuBarMenuView as _0x25739e,MenuBarMenuListView as _0x2e34af,MenuBarMenuListItemView as _0x435806,MenuBarMenuListItemButtonView as _0x1ebb9c}from'ckeditor5/src/ui.js';import'../../theme/aiquickactions/aiquickactions.css';import{AIModels as _0x2b11b7}from'../aicore/model/aimodels.js';const Xt=_0x545ac1(0x1e2),Zt=_0x545ac1(0x1ac),te=_0x545ac1(0x21a);function _0x1919(){const _0x394738=['plugins','actions','find','AIConnector','AI_QUICK_ACTIONS_OTHER','7856109wonVtU','translate-to-german','AIQuickActionsUI','_initializeQuickActionsMenuBar','make-longer','execute','explain','AI_QUICK_ACTIONS_HIGHLIGHT_KEY_POINTS','AI_QUICK_ACTIONS_TRANSLATE_SPANISH','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20summarize\x20its\x20content\x20in\x20a\x20few\x20sentences,\x20keeping\x20only\x20the\x20essential\x20meaning.</task><rules>1.\x20Your\x20summary\x20should\x20be\x20short\x20and\x20clear:-\x20Aim\x20for\x202–4\x20sentences\x20unless\x20the\x20text\x20is\x20extremely\x20short.-\x20Focus\x20on\x20capturing\x20the\x20main\x20idea(s)\x20without\x20unnecessary\x20detail.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20summary\x20style:-\x20If\x20it\x20is\x20descriptive\x20condense\x20the\x20description\x20into\x20its\x20core\x20idea.-\x20If\x20it\x20is\x20argumentative\x20or\x20opinion-based\x20summarize\x20the\x20main\x20claim\x20and\x20reasoning\x20neutrally.-\x20If\x20it\x20is\x20narrative/story-like\x20capture\x20the\x20main\x20event\x20or\x20outcome\x20without\x20side\x20details.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20summarize\x20what\x20the\x20data\x20shows\x20in\x20plain\x20language.-\x20If\x20it\x20is\x20instructional\x20restate\x20the\x20overall\x20purpose\x20of\x20the\x20steps\x20without\x20listing\x20every\x20step.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20provide\x20a\x20general\x20concise\x20summary.3.\x20Provide\x20context\x20if\x20necessary\x20for\x20clarity:-\x20Mention\x20the\x20subject\x20or\x20topic\x20explicitly\x20so\x20the\x20summary\x20can\x20stand\x20alone.4.\x20Do\x20not\x20simply\x20copy\x20sentences\x20from\x20the\x20original\x20text\x20—\x20rephrase\x20in\x20plain\x20language.5.\x20Avoid\x20adding\x20new\x20information\x20or\x20interpretation\x20not\x20present\x20in\x20the\x20text.6.\x20Summarize\x20in\x20a\x20way\x20that\x20would\x20make\x20sense\x20to\x20someone\x20who\x20has\x20not\x20read\x20the\x20original\x20text.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20summary.8.\x20Your\x20summary\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20summary.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','AI_QUICK_ACTIONS_TRANSLATE_CHINESE','uiLanguage','AI_QUICK_ACTIONS_ASK_AI','translate-to-english','AIReviewMode','9361LxdtPO','adjust-length','french','filter','_executeQuickAction','forEach','view','English','requires','focus','set','4TOrzqv','improve-writing','russian','2985895GnujHp','replace','AI_QUICK_ACTIONS_MAKE_LONGER','translate-to-korean','menuBarView','AI_QUICK_ACTIONS_TRANSLATE_JAPANESE','language','highlight-key-points','_initializeQuickActionsComponents','translate-to-russian','translate-to-italian','icon','summarize','AI_QUICK_ACTIONS_CONTINUE_WRITING','getAvailableModels','message','1832205xYwnje','get','AI_QUICK_ACTIONS_TRANSLATE_FRENCH','AI_QUICK_ACTIONS_TRANSLATE','attachToDom','model','AI_QUICK_ACTIONS_ADJUST_LENGTH','AI_QUICK_ACTIONS_MORE_CONFIDENT','length','chat-commands','korean','ai-quick-actions-models-unable-to-retrieve','getDefaultQuickActions','268974PzjVqd','aiQuickAction','add','translate-to-spanish','28744xMomli','<task>For\x20given\x20selected\x20part\x20of\x20HTML\x20document\x20you\x20must\x20explain\x20the\x20meaning\x20of\x20it\x27s\x20content\x20clearly\x20and\x20in\x20plain\x20language.</task><rules>1.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is:-\x20If\x20it\x20looks\x20like\x20a\x20definition\x20explain\x20the\x20concept\x20in\x20simple\x20terms.-\x20If\x20it\x20looks\x20like\x20a\x20description\x20clarify\x20what\x20it\x20is\x20describing\x20and\x20why\x20it\x20matters.-\x20If\x20it\x20contains\x20technical\x20terms\x20or\x20jargon\x20break\x20them\x20down\x20into\x20everyday\x20language.-\x20If\x20it\x20looks\x20instructional\x20restate\x20as\x20clear\x20steps\x20someone\x20can\x20follow.-\x20If\x20it\x20provides\x20examples\x20explain\x20what\x20the\x20example\x20shows\x20and\x20why\x20it\x27s\x20relevant.-\x20If\x20it\x20presents\x20an\x20argument\x20or\x20claim\x20restate\x20the\x20claim\x20neutrally\x20and\x20explain\x20its\x20purpose.-\x20If\x20it\x20is\x20narrative/story-like\x20explain\x20what\x20event\x20or\x20situation\x20is\x20being\x20described.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20explain\x20what\x20the\x20data\x20indicates.-\x20If\x20it\x20is\x20a\x20quotation\x20explain\x20the\x20meaning\x20of\x20the\x20quote\x20in\x20context.-\x20If\x20it\x20compares/contrasts\x20things\x20explain\x20the\x20key\x20differences\x20or\x20similarities\x20simply.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20of\x20the\x20categories\x20above\x20give\x20a\x20clear,\x20plain-language\x20explanation\x20of\x20its\x20meaning,\x20focusing\x20on\x20usefulness.2.\x20Provide\x20context\x20if\x20the\x20meaning\x20could\x20be\x20unclear\x20without\x20it.\x20(e.g.,\x20explain\x20where\x20such\x20a\x20term\x20might\x20be\x20used,\x20or\x20why\x20it\x20is\x20important).3.\x20Keep\x20the\x20explanation\x20short\x20but\x20complete\x20(2–5\x20sentences).Avoid\x20overly\x20technical\x20detail\x20unless\x20it\x20is\x20necessary\x20for\x20understanding.4.\x20Do\x20not\x20simply\x20repeat\x20the\x20original\x20text\x20—\x20restate\x20and\x20expand\x20it\x20in\x20plain\x20words.5.\x20If\x20possible,\x20add\x20a\x20short\x20example\x20or\x20analogy\x20to\x20make\x20it\x20easier\x20to\x20understand.6.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20explanation.7.\x20Your\x20explanation\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20explanation.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','values','german','locale','make-tone-casual','change-tone','_shouldIncludeAction','make-tone-friendly','ai.chat.models.displayedModels','displayedPrompt','10wfnwjb','isOfficialPlugin','componentFactory','config','ai.quickActions.extraCommands','translate-to-chinese','has','2052858kUIMKU','CHAT','delegate','children','AI_QUICK_ACTIONS_MORE_CASUAL','AI_QUICK_ACTIONS_SUMMARIZE','_prepareQuickActionsDefinition','isEnabled','AIActions','AI_QUICK_ACTIONS_MORE_PROFESSIONAL','aiQuickActions','10CxTDVG','push','ACTION','ai-quick-actions-unavailable-model','AI_QUICK_ACTIONS_FIX_GRAMMAR_SPELLING','menuitem','DisplayNames','map','italian','ai.chat.context.document.enabled','menu','continue','items','AI_QUICK_ACTIONS_TRANSLATE_ENGLISH','_quickActionsDefinition','ai.quickActions.isSearchEnabled','ask-ai','AI_QUICK_ACTIONS_MORE_FRIENDLY','make-tone-professional','57156HSGcLG','fix-grammar','AI_QUICK_ACTIONS_TRANSLATE_ITALIAN','spanish','AI_QUICK_ACTIONS_CHANGE_TONE','translate-to-japanese','editor','chinese','translate-to-portuguese','<task>For\x20the\x20given\x20selected\x20part\x20of\x20an\x20HTML\x20document\x20you\x20must\x20extract\x20and\x20present\x20the\x20key\x20points\x20from\x20its\x20content.</task><rules>1.\x20Present\x20the\x20output\x20as\x20a\x20clear,\x20structured\x20list\x20(bullets\x20or\x20numbered).-\x20Each\x20point\x20should\x20be\x20concise\x20(one\x20sentence\x20or\x20less).-\x20Do\x20not\x20merge\x20distinct\x20ideas\x20into\x20one\x20bullet.2.\x20Identify\x20what\x20type\x20of\x20text\x20it\x20is\x20and\x20adapt\x20the\x20extraction\x20style:-\x20If\x20it\x20is\x20descriptive\x20capture\x20the\x20main\x20attributes\x20or\x20features.-\x20If\x20it\x20is\x20argumentative\x20extract\x20the\x20main\x20claim\x20and\x20supporting\x20reasons\x20separately.-\x20If\x20it\x20is\x20narrative/story-like\x20extract\x20the\x20main\x20events\x20in\x20chronological\x20order.-\x20If\x20it\x20is\x20data-driven\x20(stats,\x20figures,\x20facts)\x20highlight\x20the\x20most\x20important\x20facts\x20or\x20numbers.-\x20If\x20it\x20is\x20instructional\x20list\x20the\x20steps\x20or\x20main\x20actions\x20in\x20simplified\x20form.-\x20If\x20it\x20provides\x20comparisons\x20extract\x20the\x20contrasted\x20items\x20and\x20their\x20differences/similarities.-\x20If\x20it\x20does\x20not\x20fit\x20any\x20category\x20above\x20extract\x20the\x20main\x20ideas\x20in\x20plain,\x20short\x20statements.3.\x20Keep\x20the\x20list\x20between\x203–7\x20items\x20where\x20possible.-\x20If\x20the\x20text\x20is\x20very\x20short,\x20fewer\x20items\x20are\x20fine.-\x20If\x20it\x20is\x20very\x20long,\x20focus\x20on\x20the\x20most\x20important\x20ideas\x20only.4.\x20Do\x20not\x20copy\x20long\x20text\x20fragments\x20—\x20restate\x20in\x20simple\x20words.5.\x20Do\x20not\x20add\x20interpretation,\x20evaluation,\x20or\x20commentary\x20beyond\x20the\x20text.6.\x20Ensure\x20the\x20list\x20can\x20stand\x20alone\x20without\x20requiring\x20the\x20reader\x20to\x20see\x20the\x20original\x20document.7.\x20Use\x20the\x20context\x20of\x20the\x20whole\x20document,\x20but\x20focus\x20on\x20the\x20selected\x20part\x20when\x20creating\x20your\x20key\x20points.8.\x20Your\x20key\x20points\x20should\x20be\x20written\x20in\x20%0\x20language.</rules><constraints>1.\x20You\x20MUST\x20NOT\x20perform\x20any\x20edits\x20or\x20modifications\x20on\x20the\x20provided\x20document.2.\x20You\x20MUST\x20NOT\x20include\x20document\x20modifications\x20in\x20your\x20response.3.\x20Your\x20message\x20should\x20only\x20include\x20the\x20extracted\x20key\x20points.\x20Do\x20not\x20add\x20any\x20additional\x20text,\x20flattery,\x20questions\x20or\x20followup\x20suggestions.</constraints>','buttonView','2289ppCfvQ','AI_QUICK_ACTIONS_MAKE_SHORTER','_initializeQuickActionsDropdown','ai.quickActions.removeCommands','AIChat','make-tone-confident','AI_QUICK_ACTIONS_HEADING','includes','pluginName','english','label','isPremiumPlugin','AI_QUICK_ACTIONS_EXPLAIN','panelView','type','AI_QUICK_ACTIONS_CHAT_COMMANDS','translate','_getDefaultAndCustomActions','portuguese','translate-to-french','japanese','make-tone-direct','AI_QUICK_ACTIONS_TRANSLATE_RUSSIAN','some','commands','AI_QUICK_ACTIONS_MORE_DIRECT','AI_QUICK_ACTIONS_TRANSLATE_PORTUGUESE','make-shorter','editing','close','other','_initializeQuickActionsComponentsAndCommands','menuBar:aiQuickActions','AI_QUICK_ACTIONS_TRANSLATE_KOREAN','init','AI_QUICK_ACTIONS_IMPROVE_WRITING','REVIEW','AI_QUICK_ACTIONS_TRANSLATE_GERMAN'];_0x1919=function(){return _0x394738;};return _0x1919();}export var AIQuickActionType;!function(_0x309548){const _0x458f89=_0x545ac1;_0x309548[_0x458f89(0x1f4)]=_0x458f89(0x1f4),_0x309548[_0x458f89(0x200)]=_0x458f89(0x200),_0x309548[_0x458f89(0x240)]=_0x458f89(0x240);}(AIQuickActionType||(AIQuickActionType={}));function _0x1289(_0x36d310,_0x558d4e){const _0x191917=_0x1919();return _0x1289=function(_0x1289cb,_0x2662f4){_0x1289cb=_0x1289cb-0x19d;let _0x4d61f7=_0x191917[_0x1289cb];return _0x4d61f7;},_0x1289(_0x36d310,_0x558d4e);}export var AIQuickActionTypeToPluginName;!function(_0x39a178){const _0x1e9636=_0x545ac1;_0x39a178[_0x1e9636(0x1f4)]=_0x1e9636(0x220),_0x39a178[_0x1e9636(0x200)]=_0x1e9636(0x1fb),_0x39a178[_0x1e9636(0x240)]=_0x1e9636(0x1b1);}(AIQuickActionTypeToPluginName||(AIQuickActionTypeToPluginName={}));export class AIQuickActionsUI extends _0x307a2a{static get[_0x545ac1(0x1ba)](){return[_0x201579];}static get[_0x545ac1(0x224)](){const _0x5737df=_0x545ac1;return _0x5737df(0x1a5);}static get[_0x545ac1(0x1ed)](){return!0x0;}static get[_0x545ac1(0x227)](){return!0x0;}async[_0x545ac1(0x23e)](){const _0x2d8537=_0x545ac1,_0x142583=await this[_0x2d8537(0x22d)]();this[_0x2d8537(0x1f9)](_0x142583),this[_0x2d8537(0x23b)]();}static[_0x545ac1(0x1dc)](_0x1c7ddf){return function(_0x4df902){const _0x4c8db7=_0x1289,_0x93ec38=new Intl[(_0x4c8db7(0x204))](['en'],{'type':_0x4c8db7(0x1c6)})['of'](_0x4df902[_0x4c8db7(0x1ae)]),_0x1d0f8e=_0x93ec38||_0x4c8db7(0x1b9),_0x372ac6=[{'id':_0x4c8db7(0x20e),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x1af)),'type':AIQuickActionType[_0x4c8db7(0x1f4)],'icon':_0x28581a},{'id':_0x4c8db7(0x1d9),'label':_0x41fca3(_0x4df902,_0x4c8db7(0x22b)),'icon':_0x28581a,'actions':[{'id':_0x4c8db7(0x1a9),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x228)),'prompt':Xt[_0x4c8db7(0x1c1)]('%0',_0x1d0f8e),'type':AIQuickActionType[_0x4c8db7(0x1f4)]},{'id':_0x4c8db7(0x1cc),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x1f8)),'prompt':Zt[_0x4c8db7(0x1c1)]('%0',_0x1d0f8e),'type':AIQuickActionType[_0x4c8db7(0x1f4)]},{'id':_0x4c8db7(0x1c7),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x1aa)),'prompt':te[_0x4c8db7(0x1c1)]('%0',_0x1d0f8e),'type':AIQuickActionType[_0x4c8db7(0x1f4)]}]},{'id':_0x4c8db7(0x1be),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x23f)),'type':AIQuickActionType[_0x4c8db7(0x200)],'icon':_0x5bd579},{'id':_0x4c8db7(0x209),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x1cd)),'type':AIQuickActionType[_0x4c8db7(0x200)],'icon':_0x349770},{'id':_0x4c8db7(0x212),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x202)),'type':AIQuickActionType[_0x4c8db7(0x200)],'icon':_0x54df7e},{'id':_0x4c8db7(0x1b3),'label':_0x41fca3(_0x4df902,_0x4c8db7(0x1d6)),'icon':_0x4e3641,'actions':[{'id':_0x4c8db7(0x237),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x21d)),'type':AIQuickActionType[_0x4c8db7(0x200)]},{'id':_0x4c8db7(0x1a7),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x1c2)),'type':AIQuickActionType[_0x4c8db7(0x200)]}]},{'id':_0x4c8db7(0x1e7),'label':_0x41fca3(_0x4df902,_0x4c8db7(0x215)),'icon':_0x436e6e,'actions':[{'id':_0x4c8db7(0x1e6),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x1f7)),'type':AIQuickActionType[_0x4c8db7(0x200)]},{'id':_0x4c8db7(0x231),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x235)),'type':AIQuickActionType[_0x4c8db7(0x200)]},{'id':_0x4c8db7(0x1e9),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x20f)),'type':AIQuickActionType[_0x4c8db7(0x200)]},{'id':_0x4c8db7(0x221),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x1d7)),'type':AIQuickActionType[_0x4c8db7(0x200)]},{'id':_0x4c8db7(0x210),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x1fc)),'type':AIQuickActionType[_0x4c8db7(0x200)]}]},{'id':_0x4c8db7(0x22c),'label':_0x41fca3(_0x4df902,_0x4c8db7(0x1d3)),'icon':_0x4cd12e,'actions':[{'id':_0x4c8db7(0x1b0),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x20b)),'type':AIQuickActionType[_0x4c8db7(0x200)],'actionName':_0x4c8db7(0x22c),'args':{'language':_0x4c8db7(0x225)}},{'id':_0x4c8db7(0x1f1),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x1ad)),'type':AIQuickActionType[_0x4c8db7(0x200)],'actionName':_0x4c8db7(0x22c),'args':{'language':_0x4c8db7(0x218)}},{'id':_0x4c8db7(0x1e0),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x1ab)),'type':AIQuickActionType[_0x4c8db7(0x200)],'actionName':_0x4c8db7(0x22c),'args':{'language':_0x4c8db7(0x214)}},{'id':_0x4c8db7(0x1a4),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x19d)),'type':AIQuickActionType[_0x4c8db7(0x200)],'actionName':_0x4c8db7(0x22c),'args':{'language':_0x4c8db7(0x1e4)}},{'id':_0x4c8db7(0x22f),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x1d2)),'type':AIQuickActionType[_0x4c8db7(0x200)],'actionName':_0x4c8db7(0x22c),'args':{'language':_0x4c8db7(0x1b4)}},{'id':_0x4c8db7(0x216),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x1c5)),'type':AIQuickActionType[_0x4c8db7(0x200)],'actionName':_0x4c8db7(0x22c),'args':{'language':_0x4c8db7(0x230)}},{'id':_0x4c8db7(0x219),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x236)),'type':AIQuickActionType[_0x4c8db7(0x200)],'actionName':_0x4c8db7(0x22c),'args':{'language':_0x4c8db7(0x22e)}},{'id':_0x4c8db7(0x1c3),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x23d)),'type':AIQuickActionType[_0x4c8db7(0x200)],'actionName':_0x4c8db7(0x22c),'args':{'language':_0x4c8db7(0x1da)}},{'id':_0x4c8db7(0x1ca),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x213)),'type':AIQuickActionType[_0x4c8db7(0x200)],'actionName':_0x4c8db7(0x22c),'args':{'language':_0x4c8db7(0x206)}},{'id':_0x4c8db7(0x1c9),'displayedPrompt':_0x41fca3(_0x4df902,_0x4c8db7(0x232)),'type':AIQuickActionType[_0x4c8db7(0x200)],'actionName':_0x4c8db7(0x22c),'args':{'language':_0x4c8db7(0x1bf)}}]},{'id':_0x4c8db7(0x23a),'label':_0x41fca3(_0x4df902,_0x4c8db7(0x1a2)),'icon':_0x1de7c4,'actions':[]}];return _0x372ac6;}(_0x1c7ddf);}async[_0x545ac1(0x22d)](){const _0x12a8f1=_0x545ac1,_0x88d4da=AIQuickActionsUI[_0x12a8f1(0x1dc)](this[_0x12a8f1(0x217)][_0x12a8f1(0x1e5)]),_0x2f1f5f=this[_0x12a8f1(0x217)][_0x12a8f1(0x1ef)][_0x12a8f1(0x1d1)](_0x12a8f1(0x1f0))||[];let _0xa11c2f=[];try{_0xa11c2f=await new _0x2b11b7({'connector':this[_0x12a8f1(0x217)][_0x12a8f1(0x19e)][_0x12a8f1(0x1d1)](_0x12a8f1(0x1a1)),'availableModels':this[_0x12a8f1(0x217)][_0x12a8f1(0x1ef)][_0x12a8f1(0x1d1)](_0x12a8f1(0x1ea)),'locale':this[_0x12a8f1(0x217)][_0x12a8f1(0x1e5)]})[_0x12a8f1(0x1ce)]();}catch(_0x4b84af){const _0x125802=new _0x3f4e80(_0x12a8f1(0x1db),this,{'error':_0x4b84af});_0x56884d(_0x125802[_0x12a8f1(0x1cf)]);}finally{const _0x46c861=_0x2f1f5f[_0x12a8f1(0x205)](_0x2fd1fa=>({..._0x2fd1fa,'icon':void 0x0}));_0x88d4da[_0x12a8f1(0x1a0)](_0x11fbd3=>_0x12a8f1(0x23a)===_0x11fbd3['id'])[_0x12a8f1(0x19f)][_0x12a8f1(0x1ff)](..._0x46c861),_0x88d4da[_0x12a8f1(0x1b7)](_0x2a761e=>{const _0x33d3c9=_0x12a8f1;if(_0x33d3c9(0x19f)in _0x2a761e)_0x2a761e[_0x33d3c9(0x19f)][_0x33d3c9(0x1b7)](_0x51aa19=>{const _0x3084bb=_0x33d3c9;if(_0x51aa19[_0x3084bb(0x1fa)]=!!_0xa11c2f[_0x3084bb(0x1a0)](_0x1866ce=>_0x1866ce['id']===_0x51aa19[_0x3084bb(0x1d5)])||void 0x0===_0x51aa19[_0x3084bb(0x1d5)],!_0x51aa19[_0x3084bb(0x1fa)]){const _0x4f775e=new _0x3f4e80(_0x3084bb(0x201),this,{'actionId':_0x51aa19['id'],'modelId':_0x51aa19[_0x3084bb(0x1d5)]});_0x56884d(_0x4f775e[_0x3084bb(0x1cf)]);}});else{if(_0x2a761e[_0x33d3c9(0x1fa)]=!!_0xa11c2f[_0x33d3c9(0x1a0)](_0x1ab46e=>_0x1ab46e['id']===_0x2a761e[_0x33d3c9(0x1d5)])||void 0x0===_0x2a761e[_0x33d3c9(0x1d5)],!_0x2a761e[_0x33d3c9(0x1fa)]){const _0x320bdc=new _0x3f4e80(_0x33d3c9(0x201),this,{'actionId':_0x2a761e['id'],'modelId':_0x2a761e[_0x33d3c9(0x1d5)]});_0x56884d(_0x320bdc[_0x33d3c9(0x1cf)]);}}});}return _0x88d4da;}[_0x545ac1(0x23b)](){const _0x32068c=_0x545ac1,_0x4bcaf6=new _0xe73188(this[_0x32068c(0x217)][_0x32068c(0x1e5)]);_0x4bcaf6[_0x32068c(0x1d4)](),this[_0x32068c(0x21e)](_0x4bcaf6),this[_0x32068c(0x1a6)](),this[_0x32068c(0x1c8)](_0x4bcaf6);}[_0x545ac1(0x21e)](_0x41f7de){const _0xa2dcea=_0x545ac1,_0x3c21a6=this[_0xa2dcea(0x217)][_0xa2dcea(0x1ef)][_0xa2dcea(0x1d1)](_0xa2dcea(0x20d))??!0x0;this[_0xa2dcea(0x217)]['ui'][_0xa2dcea(0x1ee)][_0xa2dcea(0x1df)](_0xa2dcea(0x1fd),_0x404d3a({'editor':this[_0xa2dcea(0x217)],'content':this[_0xa2dcea(0x20c)],'buttonDefinition':{'icon':_0x4e3b6a,'label':_0x41fca3(this[_0xa2dcea(0x217)][_0xa2dcea(0x1e5)],_0xa2dcea(0x222))},'bodyCollection':_0x41f7de,'hasSearch':_0x3c21a6}));}[_0x545ac1(0x1f9)](_0x388dd9){const _0x90194=_0x545ac1;this[_0x90194(0x20c)]=_0x388dd9[_0x90194(0x205)](_0x174be3=>{const _0x40175a=_0x90194;if(_0x40175a(0x19f)in _0x174be3){const _0x458941=_0x174be3;return{..._0x458941,'actions':_0x458941[_0x40175a(0x19f)][_0x40175a(0x205)](_0x58145c=>{const {actions:_0xf70a8e,..._0x5ad2bb}=_0x458941;return{..._0x58145c,'parent':_0x5ad2bb};})[_0x40175a(0x1b5)](_0x50f80d=>this[_0x40175a(0x1e8)](_0x50f80d))};}return _0x174be3;})[_0x90194(0x1b5)](_0x33957b=>_0x90194(0x19f)in _0x33957b?_0x33957b[_0x90194(0x19f)][_0x90194(0x1d8)]>0x0:this[_0x90194(0x1e8)](_0x33957b));}[_0x545ac1(0x1e8)](_0xcf8639){const _0x203daa=_0x545ac1,_0x49aa31=this[_0x203daa(0x217)][_0x203daa(0x1ef)][_0x203daa(0x1d1)](_0x203daa(0x21f))||[];return this[_0x203daa(0x217)][_0x203daa(0x19e)][_0x203daa(0x1f2)](AIQuickActionTypeToPluginName[_0xcf8639[_0x203daa(0x22a)]])&&!_0x49aa31[_0x203daa(0x223)](_0xcf8639['id'])&&!(_0xcf8639[_0x203daa(0x22a)]===AIQuickActionType[_0x203daa(0x1f4)]&&!0x1===this[_0x203daa(0x217)][_0x203daa(0x1ef)][_0x203daa(0x1d1)](_0x203daa(0x207)));}[_0x545ac1(0x1c8)](_0x46f22b){const _0x1ae24f=_0x545ac1;this[_0x1ae24f(0x20c)][_0x1ae24f(0x1b7)](_0x4ec444=>{const _0x5a6e4a=_0x1ae24f;if(_0x5a6e4a(0x19f)in _0x4ec444){const _0xd9d0c6=_0x404d3a({'editor':this[_0x5a6e4a(0x217)],'content':_0x4ec444[_0x5a6e4a(0x19f)],'buttonDefinition':_0x4ec444,'bodyCollection':_0x46f22b});this[_0x5a6e4a(0x217)]['ui'][_0x5a6e4a(0x1ee)][_0x5a6e4a(0x1df)](_0x4ec444['id'],_0xd9d0c6),_0x4ec444[_0x5a6e4a(0x19f)][_0x5a6e4a(0x1b7)](_0x5ea0f5=>{const _0x505c4e=_0x5a6e4a,_0x2b6332=_0x2c96f1({'editor':this[_0x505c4e(0x217)],'action':_0x5ea0f5});this[_0x505c4e(0x217)]['ui'][_0x505c4e(0x1ee)][_0x505c4e(0x1df)](_0x5ea0f5['id'],_0x2b6332);});}else{const _0x174fa8=_0x2c96f1({'editor':this[_0x5a6e4a(0x217)],'action':_0x4ec444,'withText':!0x1,'withIcon':!0x0,'isInDropdown':!0x1});this[_0x5a6e4a(0x217)]['ui'][_0x5a6e4a(0x1ee)][_0x5a6e4a(0x1df)](_0x4ec444['id'],_0x174fa8);}});}[_0x545ac1(0x1a6)](){const _0x5a7941=_0x545ac1;this[_0x5a7941(0x217)]['ui'][_0x5a7941(0x1ee)][_0x5a7941(0x1df)](_0x5a7941(0x23c),_0x261696=>{const _0x506163=_0x5a7941,_0x4bc414=new _0x25739e(_0x261696),_0x32d76e=_0x41fca3(_0x261696,_0x506163(0x222));_0x4bc414[_0x506163(0x21b)][_0x506163(0x1bc)]({'label':_0x32d76e,'icon':_0x4e3b6a});const _0x4abacb=new _0x2e34af(_0x261696);_0x4abacb[_0x506163(0x1bc)]({'ariaLabel':_0x32d76e,'role':_0x506163(0x208)}),this[_0x506163(0x20c)][_0x506163(0x1b7)](_0x12fc39=>{const _0x341f12=_0x506163;if(_0x341f12(0x19f)in _0x12fc39){const _0x58c085=_0x12fc39,_0x44fc0b=new _0x435806(_0x261696,_0x4bc414),_0x54188f=new _0x25739e(_0x261696),_0x3ebfad=new _0x2e34af(_0x261696);_0x54188f[_0x341f12(0x21b)][_0x341f12(0x1bc)]({'label':_0x58c085[_0x341f12(0x226)],'icon':_0x58c085[_0x341f12(0x1cb)]}),_0x58c085[_0x341f12(0x19f)][_0x341f12(0x1b7)](_0x336cdf=>{const _0x266a9d=_0x341f12,_0x207150=new _0x435806(_0x261696,_0x54188f),_0x42012a=new _0x1ebb9c(_0x261696);_0x42012a[_0x266a9d(0x1bc)]({'label':_0x336cdf[_0x266a9d(0x1eb)],'icon':_0x336cdf[_0x266a9d(0x1cb)],'role':_0x266a9d(0x203),'isEnabled':_0x336cdf[_0x266a9d(0x1fa)]}),_0x42012a['on'](_0x266a9d(0x1a8),()=>{const _0x2852b0=_0x266a9d;this[_0x2852b0(0x1b6)](_0x336cdf);}),_0x42012a[_0x266a9d(0x1f5)](_0x266a9d(0x1a8))['to'](_0x54188f),_0x207150[_0x266a9d(0x1f6)][_0x266a9d(0x1df)](_0x42012a),_0x3ebfad[_0x266a9d(0x20a)][_0x266a9d(0x1df)](_0x207150);}),_0x54188f[_0x341f12(0x229)][_0x341f12(0x1f6)][_0x341f12(0x1df)](_0x3ebfad),_0x44fc0b[_0x341f12(0x1f6)][_0x341f12(0x1df)](_0x54188f),_0x4abacb[_0x341f12(0x20a)][_0x341f12(0x1df)](_0x44fc0b);}else{const _0x109948=_0x12fc39,_0x78a45e=new _0x435806(_0x261696,_0x4bc414),_0x5ce73b=new _0x1ebb9c(_0x261696);_0x5ce73b[_0x341f12(0x1bc)]({'label':_0x109948[_0x341f12(0x1eb)],'icon':_0x109948[_0x341f12(0x1cb)],'role':_0x341f12(0x203),'isEnabled':_0x109948[_0x341f12(0x1fa)]}),_0x5ce73b['on'](_0x341f12(0x1a8),()=>{const _0x2e1441=_0x341f12;this[_0x2e1441(0x1b6)](_0x109948);}),_0x5ce73b[_0x341f12(0x1f5)](_0x341f12(0x1a8))['to'](_0x4bc414),_0x78a45e[_0x341f12(0x1f6)][_0x341f12(0x1df)](_0x5ce73b),_0x4abacb[_0x341f12(0x20a)][_0x341f12(0x1df)](_0x78a45e);}});const _0x5f2d83=Object[_0x506163(0x1e3)](AIQuickActionTypeToPluginName)[_0x506163(0x233)](_0x14de83=>this[_0x506163(0x217)][_0x506163(0x19e)][_0x506163(0x1f2)](_0x14de83));return _0x4bc414[_0x506163(0x1bc)]({'isEnabled':_0x5f2d83}),_0x4bc414[_0x506163(0x229)][_0x506163(0x1f6)][_0x506163(0x1df)](_0x4abacb),_0x4bc414;});}[_0x545ac1(0x1b6)](_0xbc3646){const _0xaca399=_0x545ac1,_0xbb338a=this[_0xaca399(0x217)];_0xbb338a[_0xaca399(0x238)][_0xaca399(0x1b8)][_0xaca399(0x1bb)](),_0xbb338a[_0xaca399(0x234)][_0xaca399(0x1a8)](_0xaca399(0x1de),_0xbc3646);const _0x343645=_0xbb338a['ui'][_0xaca399(0x1b8)][_0xaca399(0x1c4)];_0x343645&&_0x343645[_0xaca399(0x239)]&&_0x343645[_0xaca399(0x239)]();}}
|