@ckeditor/ckeditor5-ai 47.7.3-alpha.0 → 47.7.3
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/awstextadapter.js +1 -1
- 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/aiformview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.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/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/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.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/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/utils/eventnames.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/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiediting.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/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/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.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/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.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/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
_0x4fad73(){[_0x49de9f(0x135)];[_0x49de9f(0x130)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x49de9f(0x152)]=new Set();constructor(_0x1ccc9e){const _0xddb038=_0x49de9f;super(),this[_0xddb038(0x135)]=_0x1ccc9e||_0xd1e83;}[_0x49de9f(0x15e)](_0x84caa3,_0x54286f,_0x5b79f9){const _0x302b0e=_0x49de9f,_0x4550ae=_0x241e4c(_0x84caa3);if(0x0===_0x54286f[_0x302b0e(0x167)][_0x302b0e(0x158)]){const _0x1e9b4f=[];return _0x4d5921(_0x302b0e(0x146),_0x302b0e(0x14b),_0x4550ae)[_0x302b0e(0x15b)](_0x39d96d=>{const _0x2efcda=_0x302b0e,_0x77d337=this[_0x2efcda(0x135)]();_0x1a99a6(_0x39d96d,_0x2efcda(0x146),_0x77d337),_0x1e9b4f[_0x2efcda(0x143)](_0x77d337);}),this[_0x302b0e(0x147)](_0x4550ae),{'parsedContent':_0x4550ae,'newNodeIds':_0x1e9b4f,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x5b79f9&&_0x5b79f9[_0x302b0e(0x133)]&&this[_0x302b0e(0x13e)](_0x4550ae),this[_0x302b0e(0x130)][_0x302b0e(0x137)]=[],this[_0x302b0e(0x130)][_0x302b0e(0x12b)]=[],this[_0x302b0e(0x130)][_0x302b0e(0x131)]=[],this[_0x302b0e(0x130)][_0x302b0e(0x13b)]=[],this[_0x302b0e(0x130)][_0x302b0e(0x129)]=null,this[_0x302b0e(0x152)]=new Set(_0x4d5921(_0x302b0e(0x146),null,_0x54286f)[_0x302b0e(0x12c)](_0x172f51=>_0x98a456(_0x172f51,_0x302b0e(0x146)))[_0x302b0e(0x14d)](_0x502099=>!!_0x502099));let _0x217b41=-0x1,_0x4cfe9b=!0x1;const _0x1897fb=_0x4550ae[_0x302b0e(0x167)],_0x3f6aea=Array[_0x302b0e(0x122)](_0x1897fb)[_0x302b0e(0x14d)](_0x5f4016=>!(0x3===_0x5f4016[_0x302b0e(0x165)]&&''===_0x51cff2(_0x5f4016)[_0x302b0e(0x12a)]())),_0x1e7a27=_0x3f6aea[_0x302b0e(0x158)];for(let _0x4745dd=0x0;_0x4745dd<_0x1e7a27;_0x4745dd++){const _0xd9d6f9=_0x3f6aea[_0x4745dd],_0x1f8b66=_0x3f6aea[_0x4745dd+0x1];if(this[_0x302b0e(0x134)](_0xd9d6f9)){if(-0x1===_0x217b41&&(_0x217b41=_0x4745dd),this[_0x302b0e(0x164)](_0xd9d6f9),!this[_0x302b0e(0x134)](_0x1f8b66)){const [_0x4e1a3c,_0x3c6fba]=this[_0x302b0e(0x13c)](_0xd9d6f9,_0x4cfe9b,_0x54286f);if(_0x4e1a3c){const _0x1e5a11=Array[_0x302b0e(0x122)](_0x3f6aea)[_0x302b0e(0x132)](_0x217b41,_0x4745dd+0x1);this[_0x302b0e(0x166)](_0x4e1a3c,_0x1e5a11,_0x3c6fba),_0x217b41=-0x1;}}}else{if(this[_0x302b0e(0x15c)](_0xd9d6f9))_0x4cfe9b=!0x0;else{if(this[_0x302b0e(0x14a)](_0xd9d6f9)){const _0x1ad965=_0x98a456(_0xd9d6f9,_0x302b0e(0x146));if(_0x1ad965&&this[_0x302b0e(0x152)][_0x302b0e(0x138)](_0x1ad965)){const _0x286072=_0x15c23b(_0x302b0e(0x146),_0x1ad965,_0x54286f);this[_0x302b0e(0x140)](_0x286072,_0xd9d6f9);}if(this[_0x302b0e(0x130)][_0x302b0e(0x131)][_0x302b0e(0x141)](_0x1ad965)){const _0x1921e9=this[_0x302b0e(0x130)][_0x302b0e(0x131)][_0x302b0e(0x136)](_0x1ad965);this[_0x302b0e(0x130)][_0x302b0e(0x131)][_0x302b0e(0x127)](_0x1921e9,0x1);}}else{if(this[_0x302b0e(0x157)](_0xd9d6f9)){const _0x3e61a8=_0x98a456(_0xd9d6f9,_0x302b0e(0x146));this[_0x302b0e(0x130)][_0x302b0e(0x12b)][_0x302b0e(0x141)](_0x3e61a8)||this[_0x302b0e(0x151)](_0xd9d6f9);}}}}}for(const _0x373bb0 of this[_0x302b0e(0x130)][_0x302b0e(0x131)]){const _0x290c97=_0x15c23b(_0x302b0e(0x146),_0x373bb0,_0x54286f);if(_0x290c97){if(_0x5b79f9&&_0x5b79f9[_0x302b0e(0x12e)]){this[_0x302b0e(0x130)][_0x302b0e(0x129)]=_0x373bb0;const _0xcd1138=_0x5b79f9[_0x302b0e(0x12e)][_0x302b0e(0x15d)](!0x0);_0x1a99a6(_0xcd1138,_0x302b0e(0x146),_0x373bb0),_0x1a99a6(_0xcd1138,_0x302b0e(0x124),_0x302b0e(0x163)),_0x4f87b9(_0x290c97,_0xcd1138);}else _0xf2ba7a(_0x290c97);}}if(_0x4d5921(_0x302b0e(0x155),null,_0x54286f)[_0x302b0e(0x15b)](_0x387477=>{const _0x534066=_0x302b0e,_0x5906e5=_0x98a456(_0x387477,_0x534066(0x155)),_0x4774b3=_0x15c23b(_0x534066(0x146),_0x5906e5,_0x54286f);_0x4774b3&&_0x234818(_0x4774b3,_0x387477);}),_0x4d5921(_0x302b0e(0x146),_0x302b0e(0x14b),_0x54286f)[_0x302b0e(0x15b)](_0x7ce45f=>{const _0x9ab5d3=_0x302b0e,_0x329cad=this[_0x9ab5d3(0x144)](_0x7ce45f);_0x1a99a6(_0x7ce45f,_0x9ab5d3(0x146),_0x329cad),this[_0x9ab5d3(0x130)][_0x9ab5d3(0x137)][_0x9ab5d3(0x143)](_0x329cad);}),this[_0x302b0e(0x147)](_0x54286f),_0x5b79f9&&_0x5b79f9[_0x302b0e(0x133)]&&this[_0x302b0e(0x128)](_0x54286f,_0x5b79f9[_0x302b0e(0x139)]||0x0),_0x5b79f9&&_0x5b79f9[_0x302b0e(0x153)]&&this[_0x302b0e(0x130)][_0x302b0e(0x129)]){let _0x14c602=_0x15c23b(_0x302b0e(0x146),this[_0x302b0e(0x130)][_0x302b0e(0x129)],_0x54286f);for(;_0x14c602;)_0x2af53e(_0x14c602),_0x14c602=_0x14c602[_0x302b0e(0x150)];}return{'parsedContent':_0x54286f,'newNodeIds':this[_0x302b0e(0x130)][_0x302b0e(0x137)],'modifiedNodeIds':this[_0x302b0e(0x130)][_0x302b0e(0x12b)],'removedNodeIds':this[_0x302b0e(0x130)][_0x302b0e(0x131)]};}[_0x49de9f(0x166)](_0x5cd1a0,_0x1a01b2,_0x359d2d){const _0x3035c8=_0x49de9f;for(const _0x1f2fc8 of _0x1a01b2){const _0x3d3f78=this[_0x3035c8(0x144)](_0x1f2fc8);_0x1a99a6(_0x1f2fc8,_0x3035c8(0x146),_0x3d3f78),this[_0x3035c8(0x130)][_0x3035c8(0x137)][_0x3035c8(0x143)](_0x3d3f78),this[_0x3035c8(0x130)][_0x3035c8(0x129)]=_0x3d3f78;}const _0x199b22=_0x3035c8(0x15f)===_0x359d2d||_0x3035c8(0x168)===_0x359d2d?_0x1a01b2[_0x3035c8(0x12d)]():_0x1a01b2;for(const _0x6a451 of _0x199b22)_0xdfb5d1(_0x5cd1a0,_0x6a451,_0x359d2d);}[_0x49de9f(0x140)](_0x4b3da1,_0x1cfc53){const _0x24c148=_0x49de9f;if(!_0x4b3da1)return;if(_0x22b989(_0x4b3da1,_0x1cfc53))return;const _0x4789fa=this[_0x24c148(0x144)](_0x4b3da1);_0x1a99a6(_0x1cfc53,_0x24c148(0x146),_0x4789fa),this[_0x24c148(0x130)][_0x24c148(0x12b)][_0x24c148(0x143)](_0x4789fa),this[_0x24c148(0x130)][_0x24c148(0x129)]=_0x4789fa,_0x4f87b9(_0x4b3da1,_0x1cfc53[_0x24c148(0x15d)](!0x0));}[_0x49de9f(0x13c)](_0x9d224d,_0x2fe52b,_0x65f623){const _0x1a7fc3=_0x49de9f,_0xb6fe03=this[_0x1a7fc3(0x161)](_0x9d224d,!0x1);if(_0xb6fe03){const _0x1c0cac=this[_0x1a7fc3(0x125)](_0xb6fe03),_0x74bbf1=_0x15c23b(_0x1a7fc3(0x146),_0x1c0cac,_0x65f623);if(_0x74bbf1)return[_0x74bbf1,_0x1a7fc3(0x168)];this[_0x1a7fc3(0x130)][_0x1a7fc3(0x13b)][_0x1a7fc3(0x143)](_0x1c0cac);}const _0x18f002=this[_0x1a7fc3(0x12f)](_0x9d224d,!0x1);if(_0x18f002){const _0xc13d5c=this[_0x1a7fc3(0x125)](_0x18f002),_0x3af45c=_0x15c23b(_0x1a7fc3(0x146),_0xc13d5c,_0x65f623);if(_0x3af45c)return[_0x3af45c,_0x1a7fc3(0x154)];this[_0x1a7fc3(0x130)][_0x1a7fc3(0x13b)][_0x1a7fc3(0x143)](_0xc13d5c);}return _0x2fe52b?_0x9d224d[_0x1a7fc3(0x156)]?this[_0x1a7fc3(0x148)](_0x9d224d,_0x65f623):[_0x65f623[_0x1a7fc3(0x167)][_0x65f623[_0x1a7fc3(0x167)][_0x1a7fc3(0x158)]-0x1],_0x1a7fc3(0x168)]:[_0x65f623[_0x1a7fc3(0x167)][0x0],_0x1a7fc3(0x154)];}[_0x49de9f(0x148)](_0x19e8dc,_0x35d606){const _0x23dc2f=_0x49de9f,_0xd6d705=[],_0x4f730a=this[_0x23dc2f(0x161)](_0x19e8dc,!0x0);if(_0x4f730a){const _0x1e8449=this[_0x23dc2f(0x125)](_0x4f730a),_0x29b456=_0x15c23b(_0x23dc2f(0x146),_0x1e8449,_0x35d606);_0x29b456&&_0xd6d705[_0x23dc2f(0x143)]([_0x29b456,_0x23dc2f(0x168)]);}const _0x1ab793=this[_0x23dc2f(0x12f)](_0x19e8dc,!0x0);if(_0x1ab793){const _0x521043=this[_0x23dc2f(0x125)](_0x1ab793),_0x2e4a27=_0x15c23b(_0x23dc2f(0x146),_0x521043,_0x35d606);_0x2e4a27&&_0xd6d705[_0x23dc2f(0x143)]([_0x2e4a27,_0x23dc2f(0x154)]);}if(_0xd6d705[_0x23dc2f(0x158)]>0x1)return _0x5701b4(_0xd6d705[0x0][0x0])<=_0x5701b4(_0xd6d705[0x1][0x0])?_0xd6d705[0x0]:_0xd6d705[0x1];return 0x1===_0xd6d705[_0x23dc2f(0x158)]?_0xd6d705[0x0]:[_0x35d606[_0x23dc2f(0x13a)],_0x23dc2f(0x168)];}[_0x49de9f(0x12f)](_0x834852,_0x139ba4){const _0x45b58f=_0x49de9f;let _0x5b2907=_0x834852[_0x45b58f(0x156)],_0x58e1c8=null,_0x364ed2=!0x1;for(;_0x5b2907;){if(_0x231838(_0x5b2907)){if(this[_0x45b58f(0x157)](_0x5b2907)&&(_0x58e1c8=_0x5b2907),this[_0x45b58f(0x15c)](_0x5b2907)&&_0x139ba4&&!_0x364ed2){_0x364ed2=!0x0,_0x5b2907=_0x5b2907[_0x45b58f(0x156)];continue;}break;}const _0x3b1e56=_0x98a456(_0x5b2907,_0x45b58f(0x146));if(_0x3b1e56&&_0x45b58f(0x14b)!==_0x3b1e56&&this[_0x45b58f(0x152)][_0x45b58f(0x138)](_0x3b1e56)){_0x58e1c8=_0x5b2907;break;}_0x5b2907=_0x5b2907[_0x45b58f(0x156)];}return _0x58e1c8;}[_0x49de9f(0x161)](_0x36e56f,_0x5aaf06){const _0x544385=_0x49de9f;let _0x5725e9=_0x36e56f[_0x544385(0x15a)],_0x378a88=null,_0x3f04fd=!0x1;for(;_0x5725e9;){if(_0x231838(_0x5725e9)){if(this[_0x544385(0x157)](_0x5725e9)&&(_0x378a88=_0x5725e9),this[_0x544385(0x15c)](_0x5725e9)&&_0x5aaf06&&!_0x3f04fd){_0x3f04fd=!0x0,_0x5725e9=_0x5725e9[_0x544385(0x15a)];continue;}break;}const _0x222df0=_0x98a456(_0x5725e9,_0x544385(0x146));if(_0x222df0&&_0x544385(0x14b)!==_0x222df0&&this[_0x544385(0x152)][_0x544385(0x138)](_0x222df0)){_0x378a88=_0x5725e9;break;}_0x5725e9=_0x5725e9[_0x544385(0x15a)];}return _0x378a88;}[_0x49de9f(0x164)](_0x4f7d2d){const _0x5f4d12=_0x49de9f;_0x343f03(_0x4f7d2d)&&_0x4d5921(_0x5f4d12(0x146),null,_0x4f7d2d)[_0x5f4d12(0x15b)](_0x4eb481=>{const _0x16c7fc=_0x5f4d12;if(this[_0x16c7fc(0x14a)](_0x4eb481)&&!this[_0x16c7fc(0x123)](_0x4eb481)){const _0x44963b=_0x98a456(_0x4eb481,_0x16c7fc(0x146));_0x1a99a6(_0x4eb481,_0x16c7fc(0x155),_0x44963b),_0x1a99a6(_0x4eb481,_0x16c7fc(0x146),null);}});}[_0x49de9f(0x125)](_0x4b3e2c){const _0x208824=_0x49de9f;if(!_0x4b3e2c)return null;if(_0x343f03(_0x4b3e2c))return _0x98a456(_0x4b3e2c,_0x208824(0x146));if(_0x231838(_0x4b3e2c)){const _0x4e8177=_0x51cff2(_0x4b3e2c)[_0x208824(0x145)](/removed[\s*-]data-id="([^"]+)"/);if(_0x4e8177&&_0x4e8177[0x1])return _0x4e8177[0x1];}return null;}[_0x49de9f(0x151)](_0x254d8d){const _0x5f2242=_0x49de9f;if(_0x231838(_0x254d8d)){const _0x5ebcfd=_0x51cff2(_0x254d8d)[_0x5f2242(0x145)](/removed[\s*-]data-id="([^"]+)"/);_0x5ebcfd&&_0x5ebcfd[0x1]&&this[_0x5f2242(0x130)][_0x5f2242(0x131)][_0x5f2242(0x143)](_0x5ebcfd[0x1]);}}[_0x49de9f(0x144)](_0xcc149e){const _0x52fd92=_0x49de9f;return this[_0x52fd92(0x14a)](_0xcc149e)?_0x98a456(_0xcc149e,_0x52fd92(0x146)):this[_0x52fd92(0x135)]();}[_0x49de9f(0x147)](_0x1b41ba){const _0x5b228d=_0x49de9f;_0x11492b(_0x1b41ba)[_0x5b228d(0x14d)](_0xb8756=>this[_0x5b228d(0x157)](_0xb8756)||this[_0x5b228d(0x15c)](_0xb8756))[_0x5b228d(0x15b)](_0x844e12=>{_0xf2ba7a(_0x844e12);});}[_0x49de9f(0x13e)](_0x7da7e1){const _0x31d14b=_0x49de9f,_0x431af4=_0x7da7e1[_0x31d14b(0x167)],_0x289a96=_0x431af4[_0x431af4[_0x31d14b(0x158)]-0x1];_0x289a96&&_0x343f03(_0x289a96)&&_0x1a99a6(_0x289a96,_0x31d14b(0x13f),_0x31d14b(0x163));}[_0x49de9f(0x128)](_0x20feeb,_0x42c382){const _0x15e4fc=_0x49de9f,_0x36514f=_0x15c23b(_0x15e4fc(0x13f),_0x15e4fc(0x163),_0x20feeb);if(!_0x36514f)return;const _0x2e1f99=_0x57e71e(_0x36514f)[_0x15e4fc(0x132)](0x0,-0x1),_0x3a66fa=_0x2e1f99[_0x15e4fc(0x158)];let _0x188488=_0x36514f;if(_0x3a66fa>_0x42c382){let _0x1ddf0f=_0x3a66fa,_0x158bf2=null;for(;_0x1ddf0f>_0x42c382&&_0x1ddf0f>=0x0;)_0x1ddf0f--,_0x158bf2=_0x2e1f99[_0x1ddf0f];_0x158bf2&&(_0x188488=_0x158bf2,_0x1a99a6(_0x36514f,_0x15e4fc(0x13f),null),_0x1a99a6(_0x158bf2,_0x15e4fc(0x13f),_0x15e4fc(0x163)));}else{if(_0x3a66fa<_0x42c382){let _0x49a5d4=_0x3a66fa,_0x12ca37=_0x36514f;for(;_0x49a5d4<_0x42c382;){const _0x551fc3=_0x12ca37[_0x15e4fc(0x167)][_0x15e4fc(0x14d)](_0x458b4b=>_0x343f03(_0x458b4b));if(0x0===_0x551fc3[_0x15e4fc(0x158)])break;_0x49a5d4++,_0x12ca37=_0x551fc3[_0x551fc3[_0x15e4fc(0x158)]-0x1];}_0x12ca37&&(_0x188488=_0x12ca37,_0x1a99a6(_0x36514f,_0x15e4fc(0x13f),null),_0x1a99a6(_0x12ca37,_0x15e4fc(0x13f),_0x15e4fc(0x163)));}}let _0x1adffc=_0x188488;for(;_0x1adffc;){for(;_0x1adffc[_0x15e4fc(0x156)];)_0x1adffc=_0x1adffc[_0x15e4fc(0x156)],_0x343f03(_0x1adffc)&&_0x1a99a6(_0x1adffc,_0x15e4fc(0x13f),_0x15e4fc(0x163));_0x1adffc=_0x1adffc[_0x15e4fc(0x150)];}}[_0x49de9f(0x134)](_0x1bc481){const _0x54115c=_0x49de9f;return Boolean(_0x54115c(0x14b)===_0x98a456(_0x1bc481,_0x54115c(0x146)));}[_0x49de9f(0x14a)](_0x350441){const _0x5db1cb=_0x49de9f;return Boolean((_0x98a456(_0x350441,_0x5db1cb(0x146))||'')[_0x5db1cb(0x158)]>0x0&&_0x5db1cb(0x14b)!==_0x98a456(_0x350441,_0x5db1cb(0x146)));}[_0x49de9f(0x157)](_0x19d386){const _0xeae8c=_0x49de9f;return!!_0x19d386&&Boolean(_0x231838(_0x19d386)&&_0x51cff2(_0x19d386)[_0xeae8c(0x145)](/removed[\s*-]data-id="[^"]+"/));}[_0x49de9f(0x123)](_0x58a877){const _0xb44196=_0x49de9f;let _0x35baae=_0x58a877[_0xb44196(0x150)];for(;_0x35baae;){if(_0x98a456(_0x35baae,_0xb44196(0x155)))return!0x0;_0x35baae=_0x35baae[_0xb44196(0x150)];}return!0x1;}[_0x49de9f(0x15c)](_0x223e07){const _0x371b20=_0x49de9f;return Boolean(_0x231838(_0x223e07)&&_0x51cff2(_0x223e07)[_0x371b20(0x145)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
function _0x2786(_0x1a4acd,_0x131559){const _0x38867e=_0x3886();return _0x2786=function(_0x278659,_0xc141c6){_0x278659=_0x278659-0x1b2;let _0x1640ce=_0x38867e[_0x278659];return _0x1640ce;},_0x2786(_0x1a4acd,_0x131559);}const _0x544b17=_0x2786;(function(_0x3ff7c3,_0x35b1c2){const _0x40a1af=_0x2786,_0x26c120=_0x3ff7c3();while(!![]){try{const _0x2b0937=-parseInt(_0x40a1af(0x1f7))/0x1*(parseInt(_0x40a1af(0x1f4))/0x2)+parseInt(_0x40a1af(0x1bd))/0x3+-parseInt(_0x40a1af(0x1d9))/0x4*(-parseInt(_0x40a1af(0x1ea))/0x5)+-parseInt(_0x40a1af(0x1eb))/0x6+parseInt(_0x40a1af(0x1e4))/0x7+parseInt(_0x40a1af(0x1b3))/0x8*(-parseInt(_0x40a1af(0x1f9))/0x9)+parseInt(_0x40a1af(0x1de))/0xa*(parseInt(_0x40a1af(0x1e1))/0xb);if(_0x2b0937===_0x35b1c2)break;else _0x26c120['push'](_0x26c120['shift']());}catch(_0x1bc127){_0x26c120['push'](_0x26c120['shift']());}}}(_0x3886,0xc008f));import{ObservableMixin as _0xa8da33,uid as _0x5db69d}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x1a06e7,findByAttribute as _0x4b2642,getAttribute as _0x4cbff3,isComment as _0x30d6b1,isTag as _0x2ed662,insertElement as _0x5eb6f7,moveElement as _0x8e35ba,removeElement as _0x5be67e,replaceElement as _0x3c4e5c,serialize as _0x44096d,setAttribute as _0x596918,clone as _0x46bd86,findAllComments as _0x1f47a8,getParents as _0x5828b6,getNodeNestingLevel as _0xdbc387,areNodesSame as _0x35a25f,removeElementsAfter as _0x46dd1f}from'../utils/htmlparser.js';function _0x3886(){const _0x810db3=['4529496bSNGaO','afterend','filter','_hasWrappedParent','beforebegin','childNodes','replaceRemovedWith','forEach','cloneNode','_findNextElementWithDataId','from','push','_storeDeletedElementIds','afterbegin','splice','_getUid','invalidIds','true','merge','_markWrappedElements','match','_generateUid','_isExistingNode','_removeSpecialComments','includes','removedIds','has','cutAfterLastChange','948344IdBbWV','_insertNodes','_markLastTagElementUnstable','data-removed','data-wrapped-id','558760HGJwTj','newIds','lastTouchedId','385kERqet','nextSibling','trim','7830942HOxUUd','slice','_isNewNode','data-id','_findReferenceNode','_isDelNode','5vFIlFq','7523916cWAZJW','_getNodeDataId','_findFallbackReferenceNode','_replaceNode','_existingDataIds','reverse','previousSibling','length','_touchedNodesState','39204GEqPzY','indexOf','markUnstableElements','79urQXJZ','markUnstableElementsDepth','99lwpMaH','parentNode','896120LLgpPt','new-element','_isExistingContentComment','map','_markUnstableElements','modifiedIds','lastChild','_findPrevElementWithDataId','data-unstable','nodeType'];_0x3886=function(){return _0x810db3;};return _0x3886();}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xa8da33(){[_0x544b17(0x1d2)];[_0x544b17(0x1f3)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x544b17(0x1ef)]=new Set();constructor(_0x19d3c4){const _0x30b377=_0x544b17;super(),this[_0x30b377(0x1d2)]=_0x19d3c4||_0x5db69d;}[_0x544b17(0x1cf)](_0xbbfc3e,_0x629b70,_0x5c212d){const _0x400435=_0x544b17,_0x5e7562=_0x46bd86(_0xbbfc3e);if(0x0===_0x629b70[_0x400435(0x1c2)][_0x400435(0x1f2)]){const _0x2619a1=[];return _0x1a06e7(_0x400435(0x1e7),_0x400435(0x1b4),_0x5e7562)[_0x400435(0x1c4)](_0x19a5eb=>{const _0x28946d=_0x400435,_0x27e486=this[_0x28946d(0x1d2)]();_0x596918(_0x19a5eb,_0x28946d(0x1e7),_0x27e486),_0x2619a1[_0x28946d(0x1c8)](_0x27e486);}),this[_0x400435(0x1d4)](_0x5e7562),{'parsedContent':_0x5e7562,'newNodeIds':_0x2619a1,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x5c212d&&_0x5c212d[_0x400435(0x1f6)]&&this[_0x400435(0x1db)](_0x5e7562),this[_0x400435(0x1f3)][_0x400435(0x1df)]=[],this[_0x400435(0x1f3)][_0x400435(0x1b8)]=[],this[_0x400435(0x1f3)][_0x400435(0x1d6)]=[],this[_0x400435(0x1f3)][_0x400435(0x1cd)]=[],this[_0x400435(0x1f3)][_0x400435(0x1e0)]=null,this[_0x400435(0x1ef)]=new Set(_0x1a06e7(_0x400435(0x1e7),null,_0x629b70)[_0x400435(0x1b6)](_0x1cb17e=>_0x4cbff3(_0x1cb17e,_0x400435(0x1e7)))[_0x400435(0x1bf)](_0x5ebe23=>!!_0x5ebe23));let _0x4158a5=-0x1,_0x2fc892=!0x1;const _0x2f159e=_0x5e7562[_0x400435(0x1c2)],_0x266d2c=Array[_0x400435(0x1c7)](_0x2f159e)[_0x400435(0x1bf)](_0x2fd864=>!(0x3===_0x2fd864[_0x400435(0x1bc)]&&''===_0x44096d(_0x2fd864)[_0x400435(0x1e3)]())),_0x58484f=_0x266d2c[_0x400435(0x1f2)];for(let _0x4ba6aa=0x0;_0x4ba6aa<_0x58484f;_0x4ba6aa++){const _0x33910d=_0x266d2c[_0x4ba6aa],_0x3484b1=_0x266d2c[_0x4ba6aa+0x1];if(this[_0x400435(0x1e6)](_0x33910d)){if(-0x1===_0x4158a5&&(_0x4158a5=_0x4ba6aa),this[_0x400435(0x1d0)](_0x33910d),!this[_0x400435(0x1e6)](_0x3484b1)){const [_0x50c3f0,_0x59cc6c]=this[_0x400435(0x1e8)](_0x33910d,_0x2fc892,_0x629b70);if(_0x50c3f0){const _0x5157a6=Array[_0x400435(0x1c7)](_0x266d2c)[_0x400435(0x1e5)](_0x4158a5,_0x4ba6aa+0x1);this[_0x400435(0x1da)](_0x50c3f0,_0x5157a6,_0x59cc6c),_0x4158a5=-0x1;}}}else{if(this[_0x400435(0x1b5)](_0x33910d))_0x2fc892=!0x0;else{if(this[_0x400435(0x1d3)](_0x33910d)){const _0x2123e0=_0x4cbff3(_0x33910d,_0x400435(0x1e7));if(_0x2123e0&&this[_0x400435(0x1ef)][_0x400435(0x1d7)](_0x2123e0)){const _0x5d24e5=_0x4b2642(_0x400435(0x1e7),_0x2123e0,_0x629b70);this[_0x400435(0x1ee)](_0x5d24e5,_0x33910d);}if(this[_0x400435(0x1f3)][_0x400435(0x1d6)][_0x400435(0x1d5)](_0x2123e0)){const _0x17c2b8=this[_0x400435(0x1f3)][_0x400435(0x1d6)][_0x400435(0x1f5)](_0x2123e0);this[_0x400435(0x1f3)][_0x400435(0x1d6)][_0x400435(0x1cb)](_0x17c2b8,0x1);}}else{if(this[_0x400435(0x1e9)](_0x33910d)){const _0x331b39=_0x4cbff3(_0x33910d,_0x400435(0x1e7));this[_0x400435(0x1f3)][_0x400435(0x1b8)][_0x400435(0x1d5)](_0x331b39)||this[_0x400435(0x1c9)](_0x33910d);}}}}}for(const _0xd38f9b of this[_0x400435(0x1f3)][_0x400435(0x1d6)]){const _0x352239=_0x4b2642(_0x400435(0x1e7),_0xd38f9b,_0x629b70);if(_0x352239){if(_0x5c212d&&_0x5c212d[_0x400435(0x1c3)]){this[_0x400435(0x1f3)][_0x400435(0x1e0)]=_0xd38f9b;const _0x50a6b5=_0x5c212d[_0x400435(0x1c3)][_0x400435(0x1c5)](!0x0);_0x596918(_0x50a6b5,_0x400435(0x1e7),_0xd38f9b),_0x596918(_0x50a6b5,_0x400435(0x1dc),_0x400435(0x1ce)),_0x3c4e5c(_0x352239,_0x50a6b5);}else _0x5be67e(_0x352239);}}if(_0x1a06e7(_0x400435(0x1dd),null,_0x629b70)[_0x400435(0x1c4)](_0x39b547=>{const _0xfa512e=_0x400435,_0x267f0f=_0x4cbff3(_0x39b547,_0xfa512e(0x1dd)),_0x28fc65=_0x4b2642(_0xfa512e(0x1e7),_0x267f0f,_0x629b70);_0x28fc65&&_0x8e35ba(_0x28fc65,_0x39b547);}),_0x1a06e7(_0x400435(0x1e7),_0x400435(0x1b4),_0x629b70)[_0x400435(0x1c4)](_0x185bf7=>{const _0xb1f092=_0x400435,_0x1e1fa6=this[_0xb1f092(0x1cc)](_0x185bf7);_0x596918(_0x185bf7,_0xb1f092(0x1e7),_0x1e1fa6),this[_0xb1f092(0x1f3)][_0xb1f092(0x1df)][_0xb1f092(0x1c8)](_0x1e1fa6);}),this[_0x400435(0x1d4)](_0x629b70),_0x5c212d&&_0x5c212d[_0x400435(0x1f6)]&&this[_0x400435(0x1b7)](_0x629b70,_0x5c212d[_0x400435(0x1f8)]||0x0),_0x5c212d&&_0x5c212d[_0x400435(0x1d8)]&&this[_0x400435(0x1f3)][_0x400435(0x1e0)]){let _0xd6d511=_0x4b2642(_0x400435(0x1e7),this[_0x400435(0x1f3)][_0x400435(0x1e0)],_0x629b70);for(;_0xd6d511;)_0x46dd1f(_0xd6d511),_0xd6d511=_0xd6d511[_0x400435(0x1b2)];}return{'parsedContent':_0x629b70,'newNodeIds':this[_0x400435(0x1f3)][_0x400435(0x1df)],'modifiedNodeIds':this[_0x400435(0x1f3)][_0x400435(0x1b8)],'removedNodeIds':this[_0x400435(0x1f3)][_0x400435(0x1d6)]};}[_0x544b17(0x1da)](_0x415994,_0x58b189,_0x5179d1){const _0x18f17f=_0x544b17;for(const _0x1f3b28 of _0x58b189){const _0x53e43d=this[_0x18f17f(0x1cc)](_0x1f3b28);_0x596918(_0x1f3b28,_0x18f17f(0x1e7),_0x53e43d),this[_0x18f17f(0x1f3)][_0x18f17f(0x1df)][_0x18f17f(0x1c8)](_0x53e43d),this[_0x18f17f(0x1f3)][_0x18f17f(0x1e0)]=_0x53e43d;}const _0x5a96dc=_0x18f17f(0x1ca)===_0x5179d1||_0x18f17f(0x1be)===_0x5179d1?_0x58b189[_0x18f17f(0x1f0)]():_0x58b189;for(const _0x50a084 of _0x5a96dc)_0x5eb6f7(_0x415994,_0x50a084,_0x5179d1);}[_0x544b17(0x1ee)](_0x1c2be8,_0x2ebe6b){const _0x3b5265=_0x544b17;if(!_0x1c2be8)return;if(_0x35a25f(_0x1c2be8,_0x2ebe6b))return;const _0x2aea04=this[_0x3b5265(0x1cc)](_0x1c2be8);_0x596918(_0x2ebe6b,_0x3b5265(0x1e7),_0x2aea04),this[_0x3b5265(0x1f3)][_0x3b5265(0x1b8)][_0x3b5265(0x1c8)](_0x2aea04),this[_0x3b5265(0x1f3)][_0x3b5265(0x1e0)]=_0x2aea04,_0x3c4e5c(_0x1c2be8,_0x2ebe6b[_0x3b5265(0x1c5)](!0x0));}[_0x544b17(0x1e8)](_0x56eb4b,_0x345407,_0xb5706d){const _0x5000bc=_0x544b17,_0x2323f8=this[_0x5000bc(0x1ba)](_0x56eb4b,!0x1);if(_0x2323f8){const _0x467a04=this[_0x5000bc(0x1ec)](_0x2323f8),_0x594ef1=_0x4b2642(_0x5000bc(0x1e7),_0x467a04,_0xb5706d);if(_0x594ef1)return[_0x594ef1,_0x5000bc(0x1be)];this[_0x5000bc(0x1f3)][_0x5000bc(0x1cd)][_0x5000bc(0x1c8)](_0x467a04);}const _0x336677=this[_0x5000bc(0x1c6)](_0x56eb4b,!0x1);if(_0x336677){const _0x3d71be=this[_0x5000bc(0x1ec)](_0x336677),_0x3a607c=_0x4b2642(_0x5000bc(0x1e7),_0x3d71be,_0xb5706d);if(_0x3a607c)return[_0x3a607c,_0x5000bc(0x1c1)];this[_0x5000bc(0x1f3)][_0x5000bc(0x1cd)][_0x5000bc(0x1c8)](_0x3d71be);}return _0x345407?_0x56eb4b[_0x5000bc(0x1e2)]?this[_0x5000bc(0x1ed)](_0x56eb4b,_0xb5706d):[_0xb5706d[_0x5000bc(0x1c2)][_0xb5706d[_0x5000bc(0x1c2)][_0x5000bc(0x1f2)]-0x1],_0x5000bc(0x1be)]:[_0xb5706d[_0x5000bc(0x1c2)][0x0],_0x5000bc(0x1c1)];}[_0x544b17(0x1ed)](_0x184316,_0x599561){const _0x2f3fdb=_0x544b17,_0x1cdfe1=[],_0x29ace9=this[_0x2f3fdb(0x1ba)](_0x184316,!0x0);if(_0x29ace9){const _0x1c733a=this[_0x2f3fdb(0x1ec)](_0x29ace9),_0xef3ecb=_0x4b2642(_0x2f3fdb(0x1e7),_0x1c733a,_0x599561);_0xef3ecb&&_0x1cdfe1[_0x2f3fdb(0x1c8)]([_0xef3ecb,_0x2f3fdb(0x1be)]);}const _0x285d73=this[_0x2f3fdb(0x1c6)](_0x184316,!0x0);if(_0x285d73){const _0x35dfb9=this[_0x2f3fdb(0x1ec)](_0x285d73),_0x2dd601=_0x4b2642(_0x2f3fdb(0x1e7),_0x35dfb9,_0x599561);_0x2dd601&&_0x1cdfe1[_0x2f3fdb(0x1c8)]([_0x2dd601,_0x2f3fdb(0x1c1)]);}if(_0x1cdfe1[_0x2f3fdb(0x1f2)]>0x1)return _0xdbc387(_0x1cdfe1[0x0][0x0])<=_0xdbc387(_0x1cdfe1[0x1][0x0])?_0x1cdfe1[0x0]:_0x1cdfe1[0x1];return 0x1===_0x1cdfe1[_0x2f3fdb(0x1f2)]?_0x1cdfe1[0x0]:[_0x599561[_0x2f3fdb(0x1b9)],_0x2f3fdb(0x1be)];}[_0x544b17(0x1c6)](_0x471b68,_0x36a67c){const _0x1dbe1e=_0x544b17;let _0x364321=_0x471b68[_0x1dbe1e(0x1e2)],_0x5bccea=null,_0x21f489=!0x1;for(;_0x364321;){if(_0x30d6b1(_0x364321)){if(this[_0x1dbe1e(0x1e9)](_0x364321)&&(_0x5bccea=_0x364321),this[_0x1dbe1e(0x1b5)](_0x364321)&&_0x36a67c&&!_0x21f489){_0x21f489=!0x0,_0x364321=_0x364321[_0x1dbe1e(0x1e2)];continue;}break;}const _0x2528b1=_0x4cbff3(_0x364321,_0x1dbe1e(0x1e7));if(_0x2528b1&&_0x1dbe1e(0x1b4)!==_0x2528b1&&this[_0x1dbe1e(0x1ef)][_0x1dbe1e(0x1d7)](_0x2528b1)){_0x5bccea=_0x364321;break;}_0x364321=_0x364321[_0x1dbe1e(0x1e2)];}return _0x5bccea;}[_0x544b17(0x1ba)](_0x36535a,_0x135d94){const _0x46898c=_0x544b17;let _0x2aaf42=_0x36535a[_0x46898c(0x1f1)],_0x580739=null,_0x31c39e=!0x1;for(;_0x2aaf42;){if(_0x30d6b1(_0x2aaf42)){if(this[_0x46898c(0x1e9)](_0x2aaf42)&&(_0x580739=_0x2aaf42),this[_0x46898c(0x1b5)](_0x2aaf42)&&_0x135d94&&!_0x31c39e){_0x31c39e=!0x0,_0x2aaf42=_0x2aaf42[_0x46898c(0x1f1)];continue;}break;}const _0x5cd679=_0x4cbff3(_0x2aaf42,_0x46898c(0x1e7));if(_0x5cd679&&_0x46898c(0x1b4)!==_0x5cd679&&this[_0x46898c(0x1ef)][_0x46898c(0x1d7)](_0x5cd679)){_0x580739=_0x2aaf42;break;}_0x2aaf42=_0x2aaf42[_0x46898c(0x1f1)];}return _0x580739;}[_0x544b17(0x1d0)](_0xd83d5d){const _0x5426f5=_0x544b17;_0x2ed662(_0xd83d5d)&&_0x1a06e7(_0x5426f5(0x1e7),null,_0xd83d5d)[_0x5426f5(0x1c4)](_0x5504f2=>{const _0x3281d4=_0x5426f5;if(this[_0x3281d4(0x1d3)](_0x5504f2)&&!this[_0x3281d4(0x1c0)](_0x5504f2)){const _0x1e962f=_0x4cbff3(_0x5504f2,_0x3281d4(0x1e7));_0x596918(_0x5504f2,_0x3281d4(0x1dd),_0x1e962f),_0x596918(_0x5504f2,_0x3281d4(0x1e7),null);}});}[_0x544b17(0x1ec)](_0x1248ee){const _0x5456f6=_0x544b17;if(!_0x1248ee)return null;if(_0x2ed662(_0x1248ee))return _0x4cbff3(_0x1248ee,_0x5456f6(0x1e7));if(_0x30d6b1(_0x1248ee)){const _0x595a73=_0x44096d(_0x1248ee)[_0x5456f6(0x1d1)](/removed[\s*-]data-id="([^"]+)"/);if(_0x595a73&&_0x595a73[0x1])return _0x595a73[0x1];}return null;}[_0x544b17(0x1c9)](_0x5c6058){const _0x249851=_0x544b17;if(_0x30d6b1(_0x5c6058)){const _0x2cd525=_0x44096d(_0x5c6058)[_0x249851(0x1d1)](/removed[\s*-]data-id="([^"]+)"/);_0x2cd525&&_0x2cd525[0x1]&&this[_0x249851(0x1f3)][_0x249851(0x1d6)][_0x249851(0x1c8)](_0x2cd525[0x1]);}}[_0x544b17(0x1cc)](_0x5d544b){const _0x4eb49b=_0x544b17;return this[_0x4eb49b(0x1d3)](_0x5d544b)?_0x4cbff3(_0x5d544b,_0x4eb49b(0x1e7)):this[_0x4eb49b(0x1d2)]();}[_0x544b17(0x1d4)](_0x213ee6){const _0x7b6e60=_0x544b17;_0x1f47a8(_0x213ee6)[_0x7b6e60(0x1bf)](_0x34b7ab=>this[_0x7b6e60(0x1e9)](_0x34b7ab)||this[_0x7b6e60(0x1b5)](_0x34b7ab))[_0x7b6e60(0x1c4)](_0x513e99=>{_0x5be67e(_0x513e99);});}[_0x544b17(0x1db)](_0x4e9c8a){const _0x48c5f0=_0x544b17,_0x4a31bc=_0x4e9c8a[_0x48c5f0(0x1c2)],_0x52457e=_0x4a31bc[_0x4a31bc[_0x48c5f0(0x1f2)]-0x1];_0x52457e&&_0x2ed662(_0x52457e)&&_0x596918(_0x52457e,_0x48c5f0(0x1bb),_0x48c5f0(0x1ce));}[_0x544b17(0x1b7)](_0x43e6b0,_0x1b93be){const _0x3ed052=_0x544b17,_0x5c9b89=_0x4b2642(_0x3ed052(0x1bb),_0x3ed052(0x1ce),_0x43e6b0);if(!_0x5c9b89)return;const _0x20f6ec=_0x5828b6(_0x5c9b89)[_0x3ed052(0x1e5)](0x0,-0x1),_0x4f41f9=_0x20f6ec[_0x3ed052(0x1f2)];let _0x3d20d5=_0x5c9b89;if(_0x4f41f9>_0x1b93be){let _0x558893=_0x4f41f9,_0x35a0de=null;for(;_0x558893>_0x1b93be&&_0x558893>=0x0;)_0x558893--,_0x35a0de=_0x20f6ec[_0x558893];_0x35a0de&&(_0x3d20d5=_0x35a0de,_0x596918(_0x5c9b89,_0x3ed052(0x1bb),null),_0x596918(_0x35a0de,_0x3ed052(0x1bb),_0x3ed052(0x1ce)));}else{if(_0x4f41f9<_0x1b93be){let _0x710362=_0x4f41f9,_0x2b7c4f=_0x5c9b89;for(;_0x710362<_0x1b93be;){const _0x15de40=_0x2b7c4f[_0x3ed052(0x1c2)][_0x3ed052(0x1bf)](_0x35ab19=>_0x2ed662(_0x35ab19));if(0x0===_0x15de40[_0x3ed052(0x1f2)])break;_0x710362++,_0x2b7c4f=_0x15de40[_0x15de40[_0x3ed052(0x1f2)]-0x1];}_0x2b7c4f&&(_0x3d20d5=_0x2b7c4f,_0x596918(_0x5c9b89,_0x3ed052(0x1bb),null),_0x596918(_0x2b7c4f,_0x3ed052(0x1bb),_0x3ed052(0x1ce)));}}let _0x2746bf=_0x3d20d5;for(;_0x2746bf;){for(;_0x2746bf[_0x3ed052(0x1e2)];)_0x2746bf=_0x2746bf[_0x3ed052(0x1e2)],_0x2ed662(_0x2746bf)&&_0x596918(_0x2746bf,_0x3ed052(0x1bb),_0x3ed052(0x1ce));_0x2746bf=_0x2746bf[_0x3ed052(0x1b2)];}}[_0x544b17(0x1e6)](_0x39e8cc){const _0x4937ce=_0x544b17;return Boolean(_0x4937ce(0x1b4)===_0x4cbff3(_0x39e8cc,_0x4937ce(0x1e7)));}[_0x544b17(0x1d3)](_0x2a7a76){const _0x272b5d=_0x544b17;return Boolean((_0x4cbff3(_0x2a7a76,_0x272b5d(0x1e7))||'')[_0x272b5d(0x1f2)]>0x0&&_0x272b5d(0x1b4)!==_0x4cbff3(_0x2a7a76,_0x272b5d(0x1e7)));}[_0x544b17(0x1e9)](_0x235d67){const _0x14349a=_0x544b17;return!!_0x235d67&&Boolean(_0x30d6b1(_0x235d67)&&_0x44096d(_0x235d67)[_0x14349a(0x1d1)](/removed[\s*-]data-id="[^"]+"/));}[_0x544b17(0x1c0)](_0x364e53){const _0x4a7da0=_0x544b17;let _0x4dcd4d=_0x364e53[_0x4a7da0(0x1b2)];for(;_0x4dcd4d;){if(_0x4cbff3(_0x4dcd4d,_0x4a7da0(0x1dd)))return!0x0;_0x4dcd4d=_0x4dcd4d[_0x4a7da0(0x1b2)];}return!0x1;}[_0x544b17(0x1b5)](_0x93627a){const _0x4de4fb=_0x544b17;return Boolean(_0x30d6b1(_0x93627a)&&_0x44096d(_0x93627a)[_0x4de4fb(0x1d1)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
function _0x57b9(){const _0x43e970=['948110tDTizq','parseAndNormalizeHTML','9AxQxGM','116853TugtkA','4830sdArMn','2pUPSzL','_parseHTML','_m2html','48YRzEMf','parse','1847416wJcsiI','8096286MDpWIU','replace','6GUNLPM','convertMarkdownToHTML','4638207HgfQhf','<dummy>','</dummy>','166646HSwSol','children'];_0x57b9=function(){return _0x43e970;};return _0x57b9();}const _0x5b4788=_0x273f;(function(_0x1f3483,_0x7d56b4){const _0x5a7632=_0x273f,_0x5a10cc=_0x1f3483();while(!![]){try{const _0x32c72f=parseInt(_0x5a7632(0x15e))/0x1+-parseInt(_0x5a7632(0x165))/0x2*(parseInt(_0x5a7632(0x163))/0x3)+parseInt(_0x5a7632(0x154))/0x4*(parseInt(_0x5a7632(0x164))/0x5)+-parseInt(_0x5a7632(0x159))/0x6*(-parseInt(_0x5a7632(0x15b))/0x7)+-parseInt(_0x5a7632(0x156))/0x8*(-parseInt(_0x5a7632(0x162))/0x9)+parseInt(_0x5a7632(0x160))/0xa+-parseInt(_0x5a7632(0x157))/0xb;if(_0x32c72f===_0x7d56b4)break;else _0x5a10cc['push'](_0x5a10cc['shift']());}catch(_0x4f36d6){_0x5a10cc['push'](_0x5a10cc['shift']());}}}(_0x57b9,0x5f9b0));import{ObservableMixin as _0x42f706}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x36a468}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x548e13}from'../utils/htmlparser.js';function _0x273f(_0x1606b5,_0x4c97f3){const _0x57b925=_0x57b9();return _0x273f=function(_0x273fda,_0x595c96){_0x273fda=_0x273fda-0x154;let _0x2f4c1d=_0x57b925[_0x273fda];return _0x2f4c1d;},_0x273f(_0x1606b5,_0x4c97f3);}export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x42f706(){[_0x5b4788(0x167)];constructor(){const _0x508f85=_0x5b4788;super(),this[_0x508f85(0x167)]=new _0x36a468();}[_0x5b4788(0x15a)](_0x3830b8){const _0x1b8e1b=_0x5b4788,_0x38b0c3=this[_0x1b8e1b(0x167)][_0x1b8e1b(0x155)](_0x3830b8);return this[_0x1b8e1b(0x161)](_0x38b0c3);}[_0x5b4788(0x161)](_0x55fe84){const _0x52efa0=_0x5b4788;return this[_0x52efa0(0x166)](_0x55fe84);}[_0x5b4788(0x166)](_0x5b27){const _0x56578=_0x5b4788,_0x3a86f8=_0x5b27[_0x56578(0x158)](/^\t+/gm,'\x20')[_0x56578(0x158)](/\n*/g,'')[_0x56578(0x158)](/\s+/g,'\x20')[_0x56578(0x158)](/<[^>]*?$/g,''),_0x515663=_0x548e13(_0x56578(0x15c)+_0x3a86f8+_0x56578(0x15d));return _0x515663[_0x56578(0x15f)]=_0x515663[_0x56578(0x15f)][0x0][_0x56578(0x15f)],_0x515663;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ee09a=_0x3a02;function _0x5d7a(){const _0x1ccf24=['showChangesButton','AI_SUGGESTION_BUTTON_SHOW_CHANGES','dislikeButton','AI_MINI_TOOLBAR_COPY','showCopy','804870BYqWIK','ck-ai-mini-toolbar\x20ck-hidden','ck-ai-button-tertiary','bind','class','isShowChangesOn','addMany','32MzPYeH','showChanges','isOn','664623ASlgIS','length','720097ZwWwIX','extendTemplate','41570esRygj','showLike','679947eeFMlJ','locale','showDislike','customView','copyButton','items','_setupShowChangesButton','full','_config','fire','_setupRatingButtons','icon','add','like','ck-ai-mini-toolbar','557768nxlhSZ','toggleShowChanges','set','AI_MINI_TOOLBAR_DISLIKE','dislike','_setupCopyButton','toggleShowChangesEnabled','ck-ai-mini-toolbar-copy-button','isEnabled','ck-ai-mini-toolbar-copy-button__check-mark','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','7702uOxAwv','execute','likeButton','children','AI_MINI_TOOLBAR_LIKE','10ObMJsU','24iRhvsJ','60QsXIFj'];_0x5d7a=function(){return _0x1ccf24;};return _0x5d7a();}(function(_0x4f880c,_0x2e960a){const _0x110b82=_0x3a02,_0x3815b7=_0x4f880c();while(!![]){try{const _0x72dfaf=parseInt(_0x110b82(0xe9))/0x1*(-parseInt(_0x110b82(0xc6))/0x2)+parseInt(_0x110b82(0xcf))/0x3+parseInt(_0x110b82(0xde))/0x4+parseInt(_0x110b82(0xcd))/0x5*(parseInt(_0x110b82(0xf0))/0x6)+parseInt(_0x110b82(0xcb))/0x7*(-parseInt(_0x110b82(0xef))/0x8)+parseInt(_0x110b82(0xc9))/0x9+-parseInt(_0x110b82(0xee))/0xa*(-parseInt(_0x110b82(0xbf))/0xb);if(_0x72dfaf===_0x2e960a)break;else _0x3815b7['push'](_0x3815b7['shift']());}catch(_0x4c1435){_0x3815b7['push'](_0x3815b7['shift']());}}}(_0x5d7a,0x28233));import{ButtonView as _0x58a5dd,IconView as _0x1d352d,ToolbarView as _0x49c58c}from'ckeditor5/src/ui.js';function _0x3a02(_0x5b200e,_0x2d5ba4){const _0x5d7a10=_0x5d7a();return _0x3a02=function(_0x3a0221,_0x22bfc7){_0x3a0221=_0x3a0221-0xbc;let _0x347638=_0x5d7a10[_0x3a0221];return _0x347638;},_0x3a02(_0x5b200e,_0x2d5ba4);}import{IconCheck as _0x189f54,IconCopy as _0xc1c4a3,IconShowChangesOff as _0x18a7d4,IconShowChangesOn as _0x582ef7,IconThumbDown as _0x576626,IconThumbUp as _0x52c502}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2b6464}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';export class AIMiniToolbarView extends _0x49c58c{[_0x2ee09a(0xd3)];[_0x2ee09a(0xeb)];[_0x2ee09a(0xbc)];[_0x2ee09a(0xf1)];[_0x2ee09a(0xd7)];constructor(_0x32f1af,_0x4f3b10={}){const _0x59c97=_0x2ee09a;super(_0x32f1af),this[_0x59c97(0xe0)](_0x59c97(0xe6),!0x0),this[_0x59c97(0xe0)](_0x59c97(0xc4),!0x1),this[_0x59c97(0xd7)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x4f3b10};const _0xa901b1=!(this[_0x59c97(0xd7)][_0x59c97(0xbe)]||this[_0x59c97(0xd7)][_0x59c97(0xc7)]||this[_0x59c97(0xd7)][_0x59c97(0xce)]||this[_0x59c97(0xd7)][_0x59c97(0xd1)]||this[_0x59c97(0xd7)][_0x59c97(0xd2)]?.[_0x59c97(0xca)]);this[_0x59c97(0xc3)]=_0xa901b1?_0x59c97(0xc0):_0x59c97(0xdd),this[_0x59c97(0xd7)][_0x59c97(0xbe)]&&(this[_0x59c97(0xe3)](),this[_0x59c97(0xd4)][_0x59c97(0xdb)](this[_0x59c97(0xd3)])),this[_0x59c97(0xd7)][_0x59c97(0xc7)]&&(this[_0x59c97(0xd5)](),this[_0x59c97(0xd4)][_0x59c97(0xdb)](this[_0x59c97(0xf1)])),this[_0x59c97(0xd9)](),this[_0x59c97(0xd7)][_0x59c97(0xce)]&&this[_0x59c97(0xd4)][_0x59c97(0xdb)](this[_0x59c97(0xeb)]),this[_0x59c97(0xd7)][_0x59c97(0xd1)]&&this[_0x59c97(0xd4)][_0x59c97(0xdb)](this[_0x59c97(0xbc)]),this[_0x59c97(0xd7)][_0x59c97(0xd2)]&&this[_0x59c97(0xd4)][_0x59c97(0xc5)](this[_0x59c97(0xd7)][_0x59c97(0xd2)]);}[_0x2ee09a(0xe4)](_0x2d09dd){const _0x1db858=_0x2ee09a;this[_0x1db858(0xf1)][_0x1db858(0xe6)]=_0x2d09dd;}[_0x2ee09a(0xd9)](){const _0x45b620=_0x2ee09a;this[_0x45b620(0xeb)]=new _0x58a5dd(this[_0x45b620(0xd0)]),this[_0x45b620(0xeb)][_0x45b620(0xe0)]({'icon':_0x52c502,'label':_0x2b6464(this[_0x45b620(0xd0)],_0x45b620(0xed)),'tooltip':!0x0}),this[_0x45b620(0xeb)][_0x45b620(0xc2)](_0x45b620(0xe6))['to'](this),this[_0x45b620(0xeb)]['on'](_0x45b620(0xea),()=>{const _0x30cd5f=_0x45b620;this[_0x30cd5f(0xd8)](_0x30cd5f(0xdc));}),this[_0x45b620(0xbc)]=new _0x58a5dd(this[_0x45b620(0xd0)]),this[_0x45b620(0xbc)][_0x45b620(0xe0)]({'icon':_0x576626,'label':_0x2b6464(this[_0x45b620(0xd0)],_0x45b620(0xe1)),'tooltip':!0x0}),this[_0x45b620(0xbc)][_0x45b620(0xc2)](_0x45b620(0xe6))['to'](this),this[_0x45b620(0xbc)]['on'](_0x45b620(0xea),()=>{const _0x2e4543=_0x45b620;this[_0x2e4543(0xd8)](_0x2e4543(0xe2));});}[_0x2ee09a(0xe3)](){const _0x70125a=_0x2ee09a;this[_0x70125a(0xd3)]=new _0x58a5dd(this[_0x70125a(0xd0)]),this[_0x70125a(0xd3)][_0x70125a(0xe0)]({'icon':_0xc1c4a3,'label':_0x2b6464(this[_0x70125a(0xd0)],_0x70125a(0xbd)),'class':_0x70125a(0xe5),'tooltip':!0x0}),this[_0x70125a(0xd3)][_0x70125a(0xc2)](_0x70125a(0xe6))['to'](this);const _0x45a1db=new _0x1d352d();_0x45a1db[_0x70125a(0xe0)]({'content':_0x189f54}),_0x45a1db[_0x70125a(0xcc)]({'attributes':{'class':[_0x70125a(0xe7)]}}),this[_0x70125a(0xd3)]['on'](_0x70125a(0xea),()=>{const _0x2cd6c3=_0x70125a;this[_0x2cd6c3(0xd3)][_0x2cd6c3(0xc3)]=_0x2cd6c3(0xe8),setTimeout(()=>{const _0x334d75=_0x2cd6c3;this[_0x334d75(0xd3)][_0x334d75(0xc3)]=_0x334d75(0xe5);},0x7d0);}),this[_0x70125a(0xd3)][_0x70125a(0xec)][_0x70125a(0xdb)](_0x45a1db);}[_0x2ee09a(0xd5)](){const _0x4c66e7=_0x2ee09a;this[_0x4c66e7(0xf1)]=new _0x58a5dd(this[_0x4c66e7(0xd0)]),this[_0x4c66e7(0xf1)][_0x4c66e7(0xe0)]({'icon':_0x18a7d4,'label':_0x2b6464(this[_0x4c66e7(0xd0)],_0x4c66e7(0xf2)),'withText':_0x4c66e7(0xd6)==this[_0x4c66e7(0xd7)][_0x4c66e7(0xc7)],'tooltip':_0x4c66e7(0xd6)!=this[_0x4c66e7(0xd7)][_0x4c66e7(0xc7)],'class':_0x4c66e7(0xc1)}),this[_0x4c66e7(0xf1)][_0x4c66e7(0xc2)](_0x4c66e7(0xc8))['to'](this,_0x4c66e7(0xc4)),this[_0x4c66e7(0xf1)][_0x4c66e7(0xc2)](_0x4c66e7(0xe6))['to'](this),this[_0x4c66e7(0xf1)][_0x4c66e7(0xc2)](_0x4c66e7(0xda))['to'](this,_0x4c66e7(0xc4),_0x34ee90=>_0x34ee90?_0x582ef7:_0x18a7d4),this[_0x4c66e7(0xf1)]['on'](_0x4c66e7(0xea),()=>{const _0x28364f=_0x4c66e7;this[_0x28364f(0xd8)](_0x28364f(0xdf));});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4c36(){const _0xc526e0=['80KOOtOn','updatePartState','partDefinition','_children','10FUQyrJ','ck-ai-suggestion__body__content-parts','_actionsView','createCollection','updateSources','_showUnchangedParts','_updateContentPartsPromiseQueue','81739bJdIqf','158101hChwCe','updateContent','empty-parts-warning','filter','setPartActive','from','forEach','isVisible','findIndex','availableActions','updateContentParts','hasPendingParts','_sourcesView','queueEmptyPromise','pending','partsCount','markAsDone','addEventListener','bind','delegate','push','AI_SUGGESTION_EMPTY_PART_WARNING','enqueue','531705cwQWcm','isActive','set','_areActionsDisabled','_availableActions','bodyCollection','setContent','hasChanges','index','_switchButtonLabelsPlurality','AI_SUGGESTION_NO_PARTS_WARNING','59338SzAFos','_emptyPartsWarningView','174975AapgDd','hasNonEmptyParts','some','824679oHXHPG','12DqpbWw','areActionsDisabled','87040EhzdAF','_cachedContentParts','setTemplate','warning','add','updateVisibility','abort','addSource','ck-ai-suggestion__body','length','isEnabled','state','locale','div','getPartView','find','isTrackChangesOn'];_0x4c36=function(){return _0xc526e0;};return _0x4c36();}function _0xcd2a(_0x7a865c,_0xc65508){const _0x4c36af=_0x4c36();return _0xcd2a=function(_0xcd2a43,_0x8724a9){_0xcd2a43=_0xcd2a43-0x1c0;let _0x432376=_0x4c36af[_0xcd2a43];return _0x432376;},_0xcd2a(_0x7a865c,_0xc65508);}const _0x10d172=_0xcd2a;(function(_0x2805e2,_0x45b4de){const _0x4e5e7b=_0xcd2a,_0x5e5ea1=_0x2805e2();while(!![]){try{const _0x39331e=-parseInt(_0x4e5e7b(0x1de))/0x1+-parseInt(_0x4e5e7b(0x200))/0x2+parseInt(_0x4e5e7b(0x1f5))/0x3+-parseInt(_0x4e5e7b(0x1c1))/0x4+parseInt(_0x4e5e7b(0x202))/0x5*(-parseInt(_0x4e5e7b(0x206))/0x6)+parseInt(_0x4e5e7b(0x1dd))/0x7*(parseInt(_0x4e5e7b(0x1d2))/0x8)+parseInt(_0x4e5e7b(0x205))/0x9*(parseInt(_0x4e5e7b(0x1d6))/0xa);if(_0x39331e===_0x45b4de)break;else _0x5e5ea1['push'](_0x5e5ea1['shift']());}catch(_0x595ef0){_0x5e5ea1['push'](_0x5e5ea1['shift']());}}}(_0x4c36,0x19e84));import{View as _0x48d1fb}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x65bcd4}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x3b3881}from'../../utils/eventnames.js';import{PromiseQueue as _0x348ecf}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x5aab5d}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x4c2278}from'../../utils/common-translations.js';import{AIChatFeedSuggestionItemActionsView as _0x16400c}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x1aa12e}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x48d1fb{[_0x10d172(0x1d8)];[_0x10d172(0x1ea)];[_0x10d172(0x1d5)];[_0x10d172(0x1f8)];[_0x10d172(0x1db)];[_0x10d172(0x1dc)];[_0x10d172(0x201)];[_0x10d172(0x1f9)];[_0x10d172(0x1c2)]=[];constructor(_0x1f9c06,_0x28f767){const _0x1a2f10=_0x10d172;super(_0x1f9c06);const {areActionsDisabled:_0x351859,showUnchangedParts:_0x3f752f,availableActions:_0x14e83f}=_0x28f767;this[_0x1a2f10(0x1f8)]=_0x351859,this[_0x1a2f10(0x1db)]=_0x3f752f,this[_0x1a2f10(0x1f9)]=_0x14e83f,this[_0x1a2f10(0x1f7)](_0x1a2f10(0x1e9),!0x1),this[_0x1a2f10(0x1f7)](_0x1a2f10(0x1d1),!0x1),this[_0x1a2f10(0x1d5)]=this[_0x1a2f10(0x1d9)](),this[_0x1a2f10(0x1dc)]=new _0x348ecf(),this[_0x1a2f10(0x201)]=new _0x5aab5d({'id':_0x1a2f10(0x1e0),'initialContent':_0x4c2278(_0x1f9c06,_0x1a2f10(0x1f3)),'level':_0x1a2f10(0x1c4)}),this[_0x1a2f10(0x201)][_0x1a2f10(0x1e5)]=!0x1,this[_0x1a2f10(0x1d8)]=new _0x16400c(_0x1f9c06,_0x28f767[_0x1a2f10(0x1e7)],this[_0x1a2f10(0x1f8)]),this[_0x1a2f10(0x1d8)][_0x1a2f10(0x1f0)](_0x1a2f10(0x1d1))['to'](this),this[_0x1a2f10(0x1ea)]=new _0x1aa12e(this[_0x1a2f10(0x1cd)],_0x28f767[_0x1a2f10(0x1fa)]),_0x28f767[_0x1a2f10(0x1c0)]?this[_0x1a2f10(0x1d8)][_0x1a2f10(0x1cb)]=!0x1:this[_0x1a2f10(0x1d8)][_0x1a2f10(0x1f0)](_0x1a2f10(0x1cb))['to'](this,_0x1a2f10(0x1e9)),this[_0x1a2f10(0x1d8)][_0x1a2f10(0x1f1)](..._0x3b3881)['to'](this),this[_0x1a2f10(0x1c3)]({'tag':_0x1a2f10(0x1ce),'attributes':{'class':['ck',_0x1a2f10(0x1c9)]},'children':[{'tag':_0x1a2f10(0x1ce),'attributes':{'class':['ck',_0x1a2f10(0x1d7)]},'children':this[_0x1a2f10(0x1d5)]},this[_0x1a2f10(0x201)],this[_0x1a2f10(0x1d8)],this[_0x1a2f10(0x1ea)]]});}get[_0x10d172(0x1ed)](){const _0x582b60=_0x10d172;return this[_0x582b60(0x1d5)][_0x582b60(0x1ca)];}async[_0x10d172(0x1e8)]({parts:_0x3b7acd,renderingStrategy:_0x3a6ad9,abortSignal:_0x117688}){const _0x2a0410=_0x10d172;this[_0x2a0410(0x1d5)][_0x2a0410(0x1ca)]?_0x3b7acd[_0x2a0410(0x1e4)](_0x202259=>{const _0x4b1c27=_0x2a0410,_0x3a6e58=this[_0x4b1c27(0x1c2)][_0x4b1c27(0x1e6)](_0x462b77=>_0x462b77[_0x4b1c27(0x1fd)]==_0x202259[_0x4b1c27(0x1fd)]);-0x1===_0x3a6e58?this[_0x4b1c27(0x1c2)][_0x4b1c27(0x1f2)](_0x202259):this[_0x4b1c27(0x1c2)][_0x3a6e58]=_0x202259;}):this[_0x2a0410(0x1c2)]=_0x3b7acd;const _0x1c6a09=this[_0x2a0410(0x1db)]?_0x3b7acd:_0x3b7acd[_0x2a0410(0x1e1)](_0x5a4889=>_0x5a4889[_0x2a0410(0x1fc)]);this[_0x2a0410(0x1d8)][_0x2a0410(0x1fe)](_0x1c6a09[_0x2a0410(0x1ca)]>0x1);for(const _0x5601 of _0x1c6a09)this[_0x2a0410(0x1dc)][_0x2a0410(0x1f4)](async _0x55b080=>{const _0x27252f=_0x2a0410;let _0x290676=this[_0x27252f(0x1cf)](_0x5601[_0x27252f(0x1fd)]);_0x290676||(_0x290676=new _0x65bcd4(this[_0x27252f(0x1cd)],{'part':_0x5601,'uiIndex':this[_0x27252f(0x1d5)][_0x27252f(0x1ca)]+0x1,'areActionsDisabled':this[_0x27252f(0x1f8)],'availableActions':this[_0x27252f(0x1f9)]}),_0x290676[_0x27252f(0x1f1)](..._0x3b3881)['to'](this),this[_0x27252f(0x1d5)][_0x27252f(0x1c5)](_0x290676),this[_0x27252f(0x1e9)]=!0x0),await _0x290676[_0x27252f(0x1df)]({'part':_0x5601,'renderingStrategy':_0x3a6ad9,'showUnchangedParts':this[_0x27252f(0x1db)],'abortSignal':_0x55b080}),_0x290676[_0x27252f(0x1ee)]();});return _0x117688?.[_0x2a0410(0x1ef)](_0x2a0410(0x1c7),()=>{const _0x1a87f8=_0x2a0410;this[_0x1a87f8(0x1dc)][_0x1a87f8(0x1c7)]();}),this[_0x2a0410(0x1dc)][_0x2a0410(0x1eb)];}[_0x10d172(0x1d3)](_0x358bad,_0x432ce3){const _0x463b08=_0x10d172,_0x5031c2=this[_0x463b08(0x1cf)](_0x358bad);_0x5031c2&&(_0x5031c2[_0x463b08(0x1cc)]=_0x432ce3),this[_0x463b08(0x1e9)]=_0x463b08(0x1ec)==_0x432ce3||Array[_0x463b08(0x1e3)](this[_0x463b08(0x1d5)])[_0x463b08(0x204)](_0x2aa755=>_0x463b08(0x1ec)==_0x2aa755[_0x463b08(0x1cc)]);}[_0x10d172(0x1e2)](_0x1cfca4,_0x59f79b){const _0x4e2eb5=_0x10d172;if(!0x1===_0x1cfca4){for(const _0x1de707 of this[_0x4e2eb5(0x1d5)])_0x1de707[_0x4e2eb5(0x1f6)]=!0x1;}else{const _0x2bf4cf=this[_0x4e2eb5(0x1cf)](_0x1cfca4);_0x2bf4cf&&(_0x2bf4cf[_0x4e2eb5(0x1f6)]=_0x59f79b);}}[_0x10d172(0x1da)](_0x3ad3d){const _0x45e128=_0x10d172;_0x3ad3d[_0x45e128(0x1e4)](_0x5a7dcb=>this[_0x45e128(0x1ea)][_0x45e128(0x1c8)](_0x5a7dcb)),this[_0x45e128(0x1ea)][_0x45e128(0x1e5)]=!0x0;}[_0x10d172(0x1cf)](_0x183900){const _0x4afeac=_0x10d172;return this[_0x4afeac(0x1d5)][_0x4afeac(0x1d0)](_0x2115bb=>_0x2115bb[_0x4afeac(0x1d4)][_0x4afeac(0x1fd)]==_0x183900)??null;}[_0x10d172(0x1ee)](){const _0x4e6e06=_0x10d172;if(!this[_0x4e6e06(0x1db)]){const _0x90ed1b=!this[_0x4e6e06(0x1c2)][_0x4e6e06(0x1d0)](({hasChanges:_0x289f2d})=>_0x289f2d),_0x1c7632=!!this[_0x4e6e06(0x1c2)][_0x4e6e06(0x1d0)](({hasChanges:_0xd7a2d9})=>!_0xd7a2d9);this[_0x4e6e06(0x201)][_0x4e6e06(0x1e5)]=0x0==this[_0x4e6e06(0x1d5)][_0x4e6e06(0x1ca)]||_0x1c7632,_0x90ed1b?this[_0x4e6e06(0x201)][_0x4e6e06(0x1fb)](_0x4c2278(this[_0x4e6e06(0x1cd)],_0x4e6e06(0x1ff))):this[_0x4e6e06(0x201)][_0x4e6e06(0x1fb)](_0x4c2278(this[_0x4e6e06(0x1cd)],_0x4e6e06(0x1f3)));}this[_0x4e6e06(0x1d5)][_0x4e6e06(0x1e4)](_0x1e3c49=>_0x1e3c49[_0x4e6e06(0x1ee)]()),this[_0x4e6e06(0x1d8)][_0x4e6e06(0x1c6)](this[_0x4e6e06(0x203)]);}get[_0x10d172(0x203)](){const _0x639507=_0x10d172;return this[_0x639507(0x1d5)][_0x639507(0x1e1)](_0x179c60=>_0x179c60[_0x639507(0x1d4)][_0x639507(0x1fc)])[_0x639507(0x1ca)]>0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43cf04=_0xdd00;(function(_0x30c689,_0x3a8d18){const _0x2e3125=_0xdd00,_0x59cebc=_0x30c689();while(!![]){try{const _0x21882c=parseInt(_0x2e3125(0x76))/0x1*(-parseInt(_0x2e3125(0x95))/0x2)+parseInt(_0x2e3125(0x7e))/0x3+parseInt(_0x2e3125(0x89))/0x4*(parseInt(_0x2e3125(0x85))/0x5)+-parseInt(_0x2e3125(0x90))/0x6*(-parseInt(_0x2e3125(0x7c))/0x7)+parseInt(_0x2e3125(0x86))/0x8*(-parseInt(_0x2e3125(0x87))/0x9)+parseInt(_0x2e3125(0x96))/0xa+parseInt(_0x2e3125(0x82))/0xb*(-parseInt(_0x2e3125(0x8b))/0xc);if(_0x21882c===_0x3a8d18)break;else _0x59cebc['push'](_0x59cebc['shift']());}catch(_0x4df21e){_0x59cebc['push'](_0x59cebc['shift']());}}}(_0x4107,0xd6cf5));import{View as _0xc2a70e}from'ckeditor5/src/ui.js';import{AISuggestionHeaderView as _0x83565b}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x4ad58b}from'./aisuggestionbodyview.js';function _0xdd00(_0x418636,_0x363f16){const _0x41073f=_0x4107();return _0xdd00=function(_0xdd007b,_0x55c3bf){_0xdd007b=_0xdd007b-0x75;let _0x62cf27=_0x41073f[_0xdd007b];return _0x62cf27;},_0xdd00(_0x418636,_0x363f16);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x19ba3f}from'../../utils/eventnames.js';function _0x4107(){const _0x213014=['978612fZhfAh','3369570epHCNe','toggleShowChanges','updateContent','children','1EAvmNl','setTemplate','hasNonEmptyParts','div','bodyView','headerView','39011gfTKXF','toggleSuggestionDisplayMode','5106396dSxswB','createCollection','add','updateContentParts','121NRWIDy','bind','fire','2805BOOdJG','9291832DodxEk','9tctAlE','markAsDone','4788mHjZAN','set','1333212TucKAN','areChangesVisible','ck-ai-suggestion__container','isOn','isShowChangesToggleVisible','1122ZZUBXj','ck-rounded-corners','delegate','updateSources','isTrackChangesOn'];_0x4107=function(){return _0x213014;};return _0x4107();}import'../../../../theme/aichat/aisuggestioncontainer.css';export class AISuggestionContainerView extends _0xc2a70e{[_0x43cf04(0x7a)];[_0x43cf04(0x75)];[_0x43cf04(0x7b)];constructor(_0xef6adb,_0x157d1b,_0x2e4de3){const _0x5ead11=_0x43cf04;super(_0xef6adb);const {showDiff:_0x52fe8b,areActionsDisabled:_0x3a892d,showUnchangedParts:_0x43910b,availableActions:_0x49d221}=_0x157d1b;this[_0x5ead11(0x8a)](_0x5ead11(0x94),!0x1),this[_0x5ead11(0x8a)](_0x5ead11(0x8c),!0x1),this[_0x5ead11(0x75)]=this[_0x5ead11(0x7f)](),this[_0x5ead11(0x7b)]=new _0x83565b(_0xef6adb,{'showDiff':_0x52fe8b}),this[_0x5ead11(0x7b)]['on'](_0x5ead11(0x97),(_0x4388dd,_0x1ae556)=>{const _0x56630d=_0x5ead11;this[_0x56630d(0x8c)]=_0x1ae556[_0x56630d(0x8e)],this[_0x56630d(0x84)](_0x56630d(0x7d),{'showDiff':_0x1ae556[_0x56630d(0x8e)]});}),this[_0x5ead11(0x75)][_0x5ead11(0x80)](this[_0x5ead11(0x7b)]),this[_0x5ead11(0x7a)]=new _0x4ad58b(_0xef6adb,{'areActionsDisabled':_0x3a892d,'showUnchangedParts':!!_0x43910b,'availableActions':_0x49d221,'bodyCollection':_0x2e4de3}),this[_0x5ead11(0x7a)][_0x5ead11(0x92)](..._0x19ba3f)['to'](this),this[_0x5ead11(0x7a)][_0x5ead11(0x83)](_0x5ead11(0x94))['to'](this),this[_0x5ead11(0x75)][_0x5ead11(0x80)](this[_0x5ead11(0x7a)]),this[_0x5ead11(0x77)]({'tag':_0x5ead11(0x79),'attributes':{'class':['ck',_0x5ead11(0x8d),_0x5ead11(0x91)]},'children':this[_0x5ead11(0x75)]});}async[_0x43cf04(0x98)](_0x450dc7){const _0x2960ed=_0x43cf04;await this[_0x2960ed(0x7a)][_0x2960ed(0x81)](_0x450dc7);}[_0x43cf04(0x93)](_0x22265c){const _0x4facd6=_0x43cf04;this[_0x4facd6(0x7a)][_0x4facd6(0x93)](_0x22265c);}[_0x43cf04(0x88)](){const _0x2bdd86=_0x43cf04;this[_0x2bdd86(0x7a)][_0x2bdd86(0x88)](),this[_0x2bdd86(0x7b)]&&(this[_0x2bdd86(0x7b)][_0x2bdd86(0x8f)]=this[_0x2bdd86(0x7a)][_0x2bdd86(0x78)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1c4f(){const _0x239c3d=['ck-ai-suggestion__content-part-state_','setTemplate','div','9eriWEH','AI_SUGGESTION_CONTENT_PART_STATE_ACCEPTED','set','content','state','ck-ai-suggestion__content-part-state__label','accepted','2yHdzRr','stateIconView','543729MzZdfy','setState','rejected','AI_SUGGESTION_CONTENT_PART_STATE_OUTDATED','span','1117745atHuMm','bind','2317VrSwRN','4xPWlJb','4974FkKERk','8242146GEZmGg','286401rsLsqU','1990470lhyyYV','outdated','ck-hidden','change:state','AI_SUGGESTION_CONTENT_PART_STATE_REJECTED','ck-ai-suggestion__content-part-state','isVisible','bindTemplate','1334848gVPRvB'];_0x1c4f=function(){return _0x239c3d;};return _0x1c4f();}const _0x3ea524=_0x4dd5;(function(_0x5ba092,_0x436fd6){const _0x1abdee=_0x4dd5,_0x40e37a=_0x5ba092();while(!![]){try{const _0x10e122=parseInt(_0x1abdee(0x1c4))/0x1*(-parseInt(_0x1abdee(0x1b7))/0x2)+-parseInt(_0x1abdee(0x1b9))/0x3*(parseInt(_0x1abdee(0x1c1))/0x4)+parseInt(_0x1abdee(0x1be))/0x5+parseInt(_0x1abdee(0x1c2))/0x6*(-parseInt(_0x1abdee(0x1c0))/0x7)+parseInt(_0x1abdee(0x1cd))/0x8+-parseInt(_0x1abdee(0x1b0))/0x9*(parseInt(_0x1abdee(0x1c5))/0xa)+parseInt(_0x1abdee(0x1c3))/0xb;if(_0x10e122===_0x436fd6)break;else _0x40e37a['push'](_0x40e37a['shift']());}catch(_0x384e0b){_0x40e37a['push'](_0x40e37a['shift']());}}}(_0x1c4f,0x307c9));import{IconView as _0x7443fa,View as _0x5e19c8}from'ckeditor5/src/ui.js';import{IconBoxWithCross as _0x44d8c6,IconBoxWithCheck as _0x5d3c2e}from'ckeditor5/src/icons.js';import{getTranslation as _0x34672b}from'../../utils/common-translations.js';import'../../../../theme/common/aisuggestioncontentpartstate.css';export const ICON_STATE_MAP={'accepted':_0x5d3c2e,'rejected':_0x44d8c6,'outdated':_0x44d8c6};function _0x4dd5(_0x380208,_0x434df1){const _0x1c4fcb=_0x1c4f();return _0x4dd5=function(_0x4dd5e6,_0x7b7023){_0x4dd5e6=_0x4dd5e6-0x1ad;let _0x20c929=_0x1c4fcb[_0x4dd5e6];return _0x20c929;},_0x4dd5(_0x380208,_0x434df1);}export class AISuggestionContentPartStateView extends _0x5e19c8{[_0x3ea524(0x1b8)];constructor(_0x52633f){const _0xd426e5=_0x3ea524;super(_0x52633f);const _0x37ea03=this[_0xd426e5(0x1cc)];this[_0xd426e5(0x1b2)](_0xd426e5(0x1b4),_0xd426e5(0x1b6)),this[_0xd426e5(0x1b2)](_0xd426e5(0x1cb),!0x0),this[_0xd426e5(0x1b8)]=new StateIconView(),this[_0xd426e5(0x1b8)][_0xd426e5(0x1bf)](_0xd426e5(0x1b4))['to'](this),this[_0xd426e5(0x1ae)]({'tag':_0xd426e5(0x1af),'attributes':{'class':['ck',_0xd426e5(0x1ca),_0x37ea03['to'](_0xd426e5(0x1b4),_0x40fdd6=>_0xd426e5(0x1ad)+_0x40fdd6),_0x37ea03['if'](_0xd426e5(0x1cb),_0xd426e5(0x1c7),_0x482d27=>!_0x482d27)]},'children':[{'tag':_0xd426e5(0x1bd),'attributes':{'class':[_0xd426e5(0x1b5)]},'children':[{'text':_0x37ea03['to'](_0xd426e5(0x1b4),_0x4dcba4=>{const _0x5b9d77=_0xd426e5;switch(_0x4dcba4){case _0x5b9d77(0x1b6):return _0x34672b(_0x52633f,_0x5b9d77(0x1b1));case _0x5b9d77(0x1bb):return _0x34672b(_0x52633f,_0x5b9d77(0x1c9));case _0x5b9d77(0x1c6):return _0x34672b(_0x52633f,_0x5b9d77(0x1bc));}})}]},this[_0xd426e5(0x1b8)]]});}[_0x3ea524(0x1ba)](_0x5b2fd6){const _0x569b73=_0x3ea524;this[_0x569b73(0x1b4)]=_0x5b2fd6;}}export class StateIconView extends _0x7443fa{constructor(){const _0x148ff0=_0x3ea524;super(),this[_0x148ff0(0x1b2)](_0x148ff0(0x1b4),_0x148ff0(0x1b6)),this[_0x148ff0(0x1b3)]=ICON_STATE_MAP[this[_0x148ff0(0x1b4)]],this['on'](_0x148ff0(0x1c8),()=>{const _0x1af1ec=_0x148ff0;this[_0x1af1ec(0x1b3)]=ICON_STATE_MAP[this[_0x1af1ec(0x1b4)]];});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x11e106=_0x4f6e;(function(_0x495cf1,_0x33ecd1){const _0x13c780=_0x4f6e,_0x9d9e5f=_0x495cf1();while(!![]){try{const _0x1157c5=parseInt(_0x13c780(0xf0))/0x1*(parseInt(_0x13c780(0xe3))/0x2)+-parseInt(_0x13c780(0xf4))/0x3*(parseInt(_0x13c780(0xee))/0x4)+parseInt(_0x13c780(0x102))/0x5*(parseInt(_0x13c780(0x101))/0x6)+-parseInt(_0x13c780(0xed))/0x7+parseInt(_0x13c780(0xd9))/0x8+-parseInt(_0x13c780(0xfb))/0x9*(-parseInt(_0x13c780(0xf8))/0xa)+-parseInt(_0x13c780(0xeb))/0xb;if(_0x1157c5===_0x33ecd1)break;else _0x9d9e5f['push'](_0x9d9e5f['shift']());}catch(_0x3dd5c0){_0x9d9e5f['push'](_0x9d9e5f['shift']());}}}(_0x28f0,0x503ed));function _0x28f0(){const _0x1eacc7=['ck-hidden','44260JrjrfC','element','bind','612iXeHBp','isVisible','setTemplate','state','updateContent','ck-ai-suggestion__body__content-part_active','141354QrHVHD','25ECgLJF','change:state','_headerView','mouseLeaveSuggestion','pending','update','hasChanges','contains','4435208gfkdYc','_children','markAsDone','change:isDone','isActive','div','isEnabled','set','createCollection','ck-ai-suggestion__body__content-part_enabled','4RngPFh','toolbarView','fire','_streamableContentView','ck-ai-suggestion__body__content-part','showChangeInText','target','bindTemplate','4650723KjDmlf','index','4109266aBmKwZ','8cmAsYx','addMany','184486AUEUzX','ck-ai-suggestion__body__content-part_','mouseOverSuggestion','partDefinition','5430IYoYDY','delegate','isDone'];_0x28f0=function(){return _0x1eacc7;};return _0x28f0();}import{View as _0x434ffc}from'ckeditor5/src/ui.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4375d3}from'../../utils/eventnames.js';import{AISuggestionContentPartHeaderView as _0x59fb69}from'./aisuggestioncontentpartheaderview.js';import{AISuggestionStreamableContentView as _0x1169a5}from'./aisuggestionstreamablecontentview.js';function _0x4f6e(_0x3b7304,_0x12f3e3){const _0x28f003=_0x28f0();return _0x4f6e=function(_0x4f6e23,_0x2c00b1){_0x4f6e23=_0x4f6e23-0xd6;let _0x5badbd=_0x28f003[_0x4f6e23];return _0x5badbd;},_0x4f6e(_0x3b7304,_0x12f3e3);}export class AISuggestionBodyViewContentPartView extends _0x434ffc{[_0x11e106(0xda)];[_0x11e106(0x104)];[_0x11e106(0xe6)];constructor(_0x22cf65,{part:_0x4b9c32,uiIndex:_0x1b4fca,areActionsDisabled:_0x5b8acc,availableActions:_0x575227}){const _0x7ee539=_0x11e106;super(_0x22cf65);const _0x4b0f20=this[_0x7ee539(0xea)];this[_0x7ee539(0xe0)](_0x7ee539(0xfe),_0x7ee539(0x106)),this[_0x7ee539(0xe0)](_0x7ee539(0xf6),!0x1),this[_0x7ee539(0xe0)](_0x7ee539(0xfc),!0x1),this[_0x7ee539(0xe0)](_0x7ee539(0xdd),!0x1),this[_0x7ee539(0xe0)](_0x7ee539(0xdf),!0x1);const _0x48d241=()=>{const _0x18893c=_0x7ee539;this[_0x18893c(0xdf)]=this[_0x18893c(0xf6)]&&_0x18893c(0x106)==this[_0x18893c(0xfe)]&&!_0x5b8acc;};this['on'](_0x7ee539(0x103),_0x48d241),this['on'](_0x7ee539(0xdc),_0x48d241),_0x48d241(),this[_0x7ee539(0xda)]=this[_0x7ee539(0xe1)](),this[_0x7ee539(0x104)]=new _0x59fb69(_0x22cf65,{'part':_0x4b9c32,'uiIndex':_0x1b4fca,'availableActions':_0x575227,'areActionsDisabled':_0x5b8acc}),this[_0x7ee539(0x104)][_0x7ee539(0xfa)](_0x7ee539(0xdf),_0x7ee539(0xfe))['to'](this),this[_0x7ee539(0x104)][_0x7ee539(0xf5)](..._0x4375d3)['to'](this),this[_0x7ee539(0xe6)]=new _0x1169a5(_0x22cf65),this[_0x7ee539(0xda)][_0x7ee539(0xef)]([this[_0x7ee539(0x104)],this[_0x7ee539(0xe6)]]),this[_0x7ee539(0xfd)]({'tag':_0x7ee539(0xde),'attributes':{'class':['ck',_0x7ee539(0xe7),_0x4b0f20['to'](_0x7ee539(0xfe),_0x48764b=>_0x7ee539(0xf1)+_0x48764b),_0x4b0f20['if'](_0x7ee539(0xdf),_0x7ee539(0xe2)),_0x4b0f20['if'](_0x7ee539(0xdd),_0x7ee539(0x100)),_0x4b0f20['if'](_0x7ee539(0xfc),_0x7ee539(0xf7),_0x4a2311=>!_0x4a2311)]},'children':this[_0x7ee539(0xda)],'on':{'mouseenter':_0x4b0f20['to'](()=>{const _0x555390=_0x7ee539;this[_0x555390(0xdf)]&&this[_0x555390(0xe5)](_0x555390(0xf2),{'index':_0x4b9c32[_0x555390(0xec)]});}),'mouseleave':_0x4b0f20['to'](()=>{const _0x3f4cff=_0x7ee539;this[_0x3f4cff(0xdf)]&&this[_0x3f4cff(0xe5)](_0x3f4cff(0x105),{'index':_0x4b9c32[_0x3f4cff(0xec)]});}),'click':_0x4b0f20['to'](_0x525791=>{const _0xbc7cc6=_0x7ee539,_0x2e51f6=_0x525791[_0xbc7cc6(0xe9)];this[_0xbc7cc6(0xdf)]&&!this[_0xbc7cc6(0x104)][_0xbc7cc6(0xe4)][_0xbc7cc6(0xf9)][_0xbc7cc6(0xd8)](_0x2e51f6)&&this[_0xbc7cc6(0xe5)](_0xbc7cc6(0xe8),{'index':_0x4b9c32[_0xbc7cc6(0xec)]});})}});}async[_0x11e106(0xff)]({part:_0x46ee5b,renderingStrategy:_0x20c018,showUnchangedParts:_0x311360=!0x1,abortSignal:_0x37e918}){const _0x2f3994=_0x11e106;this[_0x2f3994(0xf3)]=_0x46ee5b,this[_0x2f3994(0xfc)]=this[_0x2f3994(0xf3)][_0x2f3994(0xd7)]||_0x311360,this[_0x2f3994(0xfc)]&&await this[_0x2f3994(0xe6)][_0x2f3994(0xd6)]({'part':_0x46ee5b,'renderingStrategy':_0x20c018,'abortSignal':_0x37e918});}[_0x11e106(0xdb)](){const _0x42791b=_0x11e106;this[_0x42791b(0xf6)]=!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4f30d6=_0x58c1;(function(_0xbf0931,_0x2c9d91){const _0x1f7073=_0x58c1,_0x4c4cbd=_0xbf0931();while(!![]){try{const _0x19727b=-parseInt(_0x1f7073(0x13f))/0x1+-parseInt(_0x1f7073(0x136))/0x2*(parseInt(_0x1f7073(0x14a))/0x3)+parseInt(_0x1f7073(0x12a))/0x4+-parseInt(_0x1f7073(0x129))/0x5+-parseInt(_0x1f7073(0x128))/0x6*(-parseInt(_0x1f7073(0x133))/0x7)+parseInt(_0x1f7073(0x143))/0x8*(-parseInt(_0x1f7073(0x148))/0x9)+parseInt(_0x1f7073(0x12c))/0xa*(parseInt(_0x1f7073(0x140))/0xb);if(_0x19727b===_0x2c9d91)break;else _0x4c4cbd['push'](_0x4c4cbd['shift']());}catch(_0x32c194){_0x4c4cbd['push'](_0x4c4cbd['shift']());}}}(_0x9809,0xc3861));function _0x58c1(_0x5e6d7b,_0x53134c){const _0x9809ac=_0x9809();return _0x58c1=function(_0x58c168,_0x3429ee){_0x58c168=_0x58c168-0x126;let _0x2e5f16=_0x9809ac[_0x58c168];return _0x2e5f16;},_0x58c1(_0x5e6d7b,_0x53134c);}import{getTranslation as _0x5584dd}from'../../utils/common-translations.js';import{ButtonView as _0x34dfa0,IconView as _0x180cea,View as _0x3b2523}from'ckeditor5/src/ui.js';import{IconDocument as _0x183831,IconShowChangesOff as _0x552c6b,IconShowChangesOn as _0x58a32a}from'ckeditor5/src/icons.js';export class AISuggestionHeaderView extends _0x3b2523{[_0x4f30d6(0x132)];constructor(_0xd16715,_0x30f75c){const _0xbf93eb=_0x4f30d6;super(_0xd16715),this[_0xbf93eb(0x13b)](_0xbf93eb(0x12e),!0x0),this[_0xbf93eb(0x132)]=new ShowChangesToggleView(_0xd16715),this[_0xbf93eb(0x132)][_0xbf93eb(0x13b)]({'class':_0xbf93eb(0x14b),'label':_0x5584dd(_0xd16715,_0xbf93eb(0x130)),'withText':!0x0}),this[_0xbf93eb(0x132)][_0xbf93eb(0x149)]=_0x30f75c[_0xbf93eb(0x145)],this[_0xbf93eb(0x132)][_0xbf93eb(0x138)](_0xbf93eb(0x147))['to'](this,_0xbf93eb(0x12e)),this[_0xbf93eb(0x132)][_0xbf93eb(0x138)](_0xbf93eb(0x12f))['to'](this[_0xbf93eb(0x132)],_0xbf93eb(0x149),_0x577993=>_0x577993?_0x58a32a:_0x552c6b),this[_0xbf93eb(0x132)]['on'](_0xbf93eb(0x144),()=>{const _0xb43154=_0xbf93eb;this[_0xb43154(0x132)][_0xb43154(0x149)]=!this[_0xb43154(0x132)][_0xb43154(0x149)],this[_0xb43154(0x142)](_0xb43154(0x135),{'isOn':this[_0xb43154(0x132)][_0xb43154(0x149)]});});const _0x3c0bc2=new _0x180cea();_0x3c0bc2[_0xbf93eb(0x137)]=_0x183831,this[_0xbf93eb(0x134)]({'tag':_0xbf93eb(0x13d),'attributes':{'class':['ck',_0xbf93eb(0x127),!0x1===_0x30f75c[_0xbf93eb(0x13e)]?_0xbf93eb(0x12d):null][_0xbf93eb(0x146)](Boolean)},'children':[_0x3c0bc2,{'tag':_0xbf93eb(0x141),'children':[_0x5584dd(_0xd16715,_0xbf93eb(0x13a))]},this[_0xbf93eb(0x132)]]});}}function _0x9809(){const _0x4fec61=['filter','isVisible','2259qIATXZ','isOn','6ZeRyeO','ck-ai-suggestion__header__show-changes-toggle\x20ck-ai-chat-controls-button','remove','ck-ai-suggestion__header','150RcMYkj','226670AOQfNB','1471452nIyOFL','render','10HecJtv','ck-hidden','isShowChangesToggleVisible','icon','AI_SUGGESTION_BUTTON_SHOW_CHANGES','children','showChangesToggleView','399364jfSaUQ','setTemplate','toggleShowChanges','896404dfcoPx','content','bind','add','AI_SUGGESTION_HEADER_TITLE','set','iconView','div','showHeader','652521BgIFEU','11072347FzCeGG','span','fire','12928JzMPZj','execute','showDiff'];_0x9809=function(){return _0x4fec61;};return _0x9809();}export class ShowChangesToggleView extends _0x34dfa0{[_0x4f30d6(0x12b)](){const _0x27845c=_0x4f30d6;super[_0x27845c(0x12b)](),this[_0x27845c(0x131)][_0x27845c(0x126)](this[_0x27845c(0x13c)]),this[_0x27845c(0x131)][_0x27845c(0x139)](this[_0x27845c(0x13c)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4112f9,_0x1f6e8a){const _0x4e5bdf=_0x4863,_0x3c9242=_0x4112f9();while(!![]){try{const _0x1e7cc7=parseInt(_0x4e5bdf(0x179))/0x1*(-parseInt(_0x4e5bdf(0x18d))/0x2)+-parseInt(_0x4e5bdf(0x183))/0x3+parseInt(_0x4e5bdf(0x178))/0x4+parseInt(_0x4e5bdf(0x189))/0x5+-parseInt(_0x4e5bdf(0x186))/0x6*(-parseInt(_0x4e5bdf(0x182))/0x7)+parseInt(_0x4e5bdf(0x188))/0x8+parseInt(_0x4e5bdf(0x17d))/0x9*(parseInt(_0x4e5bdf(0x17c))/0xa);if(_0x1e7cc7===_0x1f6e8a)break;else _0x3c9242['push'](_0x3c9242['shift']());}catch(_0x3a175a){_0x3c9242['push'](_0x3c9242['shift']());}}}(_0x1c34,0x6373b));function _0x1c34(){const _0x5f0c7e=['ck-hidden','setTemplate','set','405998IDsyUv','492344cKYUaG','2wAWZUX','div','ck-ai-suggestion__loader','10KHKJtg','947727REWntj','locale','small','bindTemplate','isVisible','4121026yJtvvd','2193618fJuwpJ','ck-ai-suggestion__loader-text','span','6ufDdOP','AI_CHAT_IS_WRITING','3108504UatUmU','1694445EEgfDi'];_0x1c34=function(){return _0x5f0c7e;};return _0x1c34();}import{View as _0x5061d5}from'ckeditor5/src/ui.js';import{AISpinnerView as _0x337d5c}from'../aispinner.js';function _0x4863(_0x3d2ffd,_0x46ac91){const _0x1c3460=_0x1c34();return _0x4863=function(_0x4863d5,_0xdb79e2){_0x4863d5=_0x4863d5-0x178;let _0x2ff936=_0x1c3460[_0x4863d5];return _0x2ff936;},_0x4863(_0x3d2ffd,_0x46ac91);}import{getTranslation as _0x440021}from'../../utils/common-translations.js';export class AISuggestionLoaderView extends _0x5061d5{constructor(_0x4d7d72){const _0xd35e70=_0x4863;super(_0x4d7d72),this[_0xd35e70(0x18c)](_0xd35e70(0x181),!0x0);const _0x5317b3=new _0x337d5c(_0xd35e70(0x17f));_0x5317b3[_0xd35e70(0x181)]=!0x0;const _0x10eab5=new _0x5061d5(this[_0xd35e70(0x17e)]);_0x10eab5[_0xd35e70(0x18b)]({'tag':_0xd35e70(0x185),'attributes':{'class':['ck',_0xd35e70(0x184)]},'children':[_0x440021(this[_0xd35e70(0x17e)],_0xd35e70(0x187))]}),this[_0xd35e70(0x18b)]({'tag':_0xd35e70(0x17a),'attributes':{'class':['ck',_0xd35e70(0x17b),this[_0xd35e70(0x180)]['if'](_0xd35e70(0x181),_0xd35e70(0x18a),_0x4bf1e5=>!_0x4bf1e5)]},'children':[_0x5317b3,_0x10eab5]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x5d5845=_0xf3c7;(function(_0x2fbc47,_0x4e7194){var _0x5df140=_0xf3c7,_0x4a73c3=_0x2fbc47();while(!![]){try{var _0x6beba2=-parseInt(_0x5df140(0xaa))/0x1*(-parseInt(_0x5df140(0xaf))/0x2)+-parseInt(_0x5df140(0xb1))/0x3*(-parseInt(_0x5df140(0xb9))/0x4)+parseInt(_0x5df140(0xa8))/0x5*(-parseInt(_0x5df140(0xb7))/0x6)+-parseInt(_0x5df140(0xa9))/0x7*(-parseInt(_0x5df140(0xa2))/0x8)+-parseInt(_0x5df140(0xb6))/0x9*(-parseInt(_0x5df140(0xa4))/0xa)+parseInt(_0x5df140(0xae))/0xb+-parseInt(_0x5df140(0xa7))/0xc;if(_0x6beba2===_0x4e7194)break;else _0x4a73c3['push'](_0x4a73c3['shift']());}catch(_0x3511d3){_0x4a73c3['push'](_0x4a73c3['shift']());}}}(_0x2264,0x8ad77));function _0x2264(){var _0x5e3895=['12682452gIRxSY','92410IdDpIk','7rKGZrF','195yLoRFu','clear','setTemplate','update','124718siTkZK','3764gBPQSu','reset','1401yQndXe','innerHTML','element','htmlStreamer','ck-reset_all-excluded','9BVjULX','246EBqUYs','streaming','9060glzYzM','ck-content','div','content','4954728eVoesm','ck-ai-suggestion-streamable-content','3279040MHuDBU','animation:\x20ck-html-streamer-fade-in\x20.5s','stream'];_0x2264=function(){return _0x5e3895;};return _0x2264();}import{View as _0x42f2c2}from'ckeditor5/src/ui.js';import{HTMLStreamer as _0x1d57a0}from'../../utils/htmlstreamer.js';import{serialize as _0x58928c}from'../../utils/htmlparser.js';import'../../../../theme/common/aisuggestionstreamablecontent.css';function _0xf3c7(_0x228343,_0x3c13c1){var _0x226404=_0x2264();return _0xf3c7=function(_0xf3c732,_0x157780){_0xf3c732=_0xf3c732-0x9f;var _0x46600d=_0x226404[_0xf3c732];return _0x46600d;},_0xf3c7(_0x228343,_0x3c13c1);}export class AISuggestionStreamableContentView extends _0x42f2c2{[_0x5d5845(0xb4)];constructor(_0x4c2d8b){var _0x3f58f7=_0x5d5845;super(_0x4c2d8b),this[_0x3f58f7(0xb4)]=new _0x1d57a0({'textNodeStyle':_0x3f58f7(0xa5),'delay':0x14}),this[_0x3f58f7(0xac)]({'tag':_0x3f58f7(0xa0),'attributes':{'class':['ck',_0x3f58f7(0x9f),_0x3f58f7(0xb5),_0x3f58f7(0xa3)]}});}async[_0x5d5845(0xad)]({part:_0x4db05a,renderingStrategy:_0x58c9c6,abortSignal:_0x31c7c3}){var _0x40747d=_0x5d5845;_0x40747d(0xb8)===_0x58c9c6?await this[_0x40747d(0xb4)][_0x40747d(0xa6)]({'document':_0x4db05a[_0x40747d(0xa1)],'targetElement':this[_0x40747d(0xb3)],'abortSignal':_0x31c7c3}):this[_0x40747d(0xb3)][_0x40747d(0xb2)]=_0x58928c(_0x4db05a[_0x40747d(0xa1)]);}[_0x5d5845(0xab)](){var _0x7eef43=_0x5d5845;this[_0x7eef43(0xb4)][_0x7eef43(0xb0)](),this[_0x7eef43(0xb3)][_0x7eef43(0xb2)]='';}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x531ff1=_0x2d2f;(function(_0x2e41b6,_0x389721){const _0x291e61=_0x2d2f,_0x2d6d4e=_0x2e41b6();while(!![]){try{const _0x12c6d5=-parseInt(_0x291e61(0x1ab))/0x1+parseInt(_0x291e61(0x18c))/0x2*(parseInt(_0x291e61(0x198))/0x3)+-parseInt(_0x291e61(0x170))/0x4*(parseInt(_0x291e61(0x1b2))/0x5)+parseInt(_0x291e61(0x17c))/0x6*(-parseInt(_0x291e61(0x171))/0x7)+parseInt(_0x291e61(0x183))/0x8+-parseInt(_0x291e61(0x18b))/0x9*(parseInt(_0x291e61(0x1aa))/0xa)+parseInt(_0x291e61(0x16d))/0xb*(parseInt(_0x291e61(0x17e))/0xc);if(_0x12c6d5===_0x389721)break;else _0x2d6d4e['push'](_0x2d6d4e['shift']());}catch(_0x510a46){_0x2d6d4e['push'](_0x2d6d4e['shift']());}}}(_0x4a1f,0x9ae91));function _0x2d2f(_0x438a53,_0x364cbe){const _0x4a1fef=_0x4a1f();return _0x2d2f=function(_0x2d2fa8,_0x7032c2){_0x2d2fa8=_0x2d2fa8-0x16d;let _0x40186d=_0x4a1fef[_0x2d2fa8];return _0x40186d;},_0x2d2f(_0x438a53,_0x364cbe);}import{View as _0x2a18fc,ButtonView as _0x11843b,IconView as _0x5dfefe,BalloonPanelView as _0x49f666}from'ckeditor5/src/ui.js';function _0x4a1f(){const _0x24f994=['set','5142EZbibw','favicon','324qNihLE','ck\x20ck-ai-web-source','pin','span','northArrowSouth','4376288pHmTbS','ck-ai-web-source__tooltip-title','ck-ai-web-source__tooltip','get','locale','children','createCollection','_hideTooltip','7879671uaTgKh','747368Tbdggg','...','_showTooltip','element','content','isVisible','ck-ai-web-source__tooltip-row','hide','add','show','northArrowSouthEast','destroy','6WLyUIU','.ck-ai-chat','extendTemplate','bodyCollection','div','length','AI_CHAT_SOURCES_HEADER','clear','title','push','setTemplate','ck-ai-web-sources','bindTemplate','ck-ai-web-source__image','_createTooltipContentView','source','ck-hidden','defaultPositions','10SoZoXU','1158749ZTJRCp','url','ck-ai-web-source__tooltip-balloon','icon','northArrowSouthWest','hostname','addSource','64685BFPRBo','736637zIXMsZ','img','ck-ai-web-source__tooltip-image','88nTyMFl','1218cGvZOy','querySelector','_updateTooltipContent','ck-ai-web-sources__header','open','substring','_blank','ck-ai-web-source__tooltip-url','balloonPanelView','_setupBalloonPanel'];_0x4a1f=function(){return _0x24f994;};return _0x4a1f();}import{IconWeb as _0x134c72}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x7132ba}from'../../utils/common-translations.js';export class AIWebSourcesView extends _0x2a18fc{[_0x531ff1(0x188)];[_0x531ff1(0x179)];[_0x531ff1(0x19b)];constructor(_0x45d04e,_0x27ae6a){const _0x3da73d=_0x531ff1;super(_0x45d04e),this[_0x3da73d(0x19b)]=_0x27ae6a,this[_0x3da73d(0x188)]=this[_0x3da73d(0x189)](),this[_0x3da73d(0x17b)](_0x3da73d(0x191),!0x1),this[_0x3da73d(0x1a2)]({'tag':_0x3da73d(0x19c),'attributes':{'class':['ck',_0x3da73d(0x1a3),this[_0x3da73d(0x1a4)]['if'](_0x3da73d(0x191),_0x3da73d(0x1a8),_0x5dc35d=>!_0x5dc35d)]},'children':this[_0x3da73d(0x188)]});const _0x2f2dca=new _0x2a18fc(this[_0x3da73d(0x187)]),_0x20f985=new _0x5dfefe();_0x20f985[_0x3da73d(0x190)]=_0x134c72,_0x2f2dca[_0x3da73d(0x1a2)]({'tag':_0x3da73d(0x19c),'attributes':{'class':['ck',_0x3da73d(0x174)]},'children':[_0x20f985,{'tag':_0x3da73d(0x181),'children':[{'text':_0x7132ba(this[_0x3da73d(0x187)],_0x3da73d(0x19e))}]}]}),this[_0x3da73d(0x188)][_0x3da73d(0x194)](_0x2f2dca),this[_0x3da73d(0x17a)](_0x45d04e);}[_0x531ff1(0x1b1)](_0x58f4ea){const _0x39d570=_0x531ff1;this[_0x39d570(0x188)][_0x39d570(0x194)](new AIWebSourceView(this[_0x39d570(0x187)],_0x58f4ea,this[_0x39d570(0x179)]));}[_0x531ff1(0x17a)](_0xa203bf){const _0x352b43=_0x531ff1;this[_0x352b43(0x179)]=new _0x49f666(_0xa203bf),this[_0x352b43(0x179)][_0x352b43(0x19a)]({'attributes':{'class':[_0x352b43(0x1ad)]}}),this[_0x352b43(0x19b)][_0x352b43(0x194)](this[_0x352b43(0x179)]);}}export class AIWebSourceView extends _0x11843b{[_0x531ff1(0x179)];[_0x531ff1(0x1a7)];constructor(_0x3502ee,_0x1ca6f3,_0x263969){const _0x2992ee=_0x531ff1;super(_0x3502ee),this[_0x2992ee(0x1a7)]=_0x1ca6f3,this[_0x2992ee(0x179)]=_0x263969,this[_0x2992ee(0x17b)]({'label':_0x1ca6f3[_0x2992ee(0x1a0)],'class':[_0x2992ee(0x17f)],'withText':!0x0});const _0x1c89ec=this[_0x2992ee(0x1a4)];if(this[_0x2992ee(0x19a)]({'on':{'click':_0x1c89ec['to'](()=>{const _0xd622a=_0x2992ee;window[_0xd622a(0x175)](_0x1ca6f3[_0xd622a(0x1ac)],_0xd622a(0x177));}),'mouseenter':_0x1c89ec['to'](()=>{const _0x4baa67=_0x2992ee;this[_0x4baa67(0x18e)]();}),'mouseleave':_0x1c89ec['to'](()=>{const _0x3230ac=_0x2992ee;this[_0x3230ac(0x18a)]();})}}),_0x1ca6f3[_0x2992ee(0x17d)]){const _0x116aa1=new _0x2a18fc(_0x3502ee);_0x116aa1[_0x2992ee(0x1a2)]({'tag':_0x2992ee(0x16e),'attributes':{'src':_0x1ca6f3[_0x2992ee(0x17d)]||_0x134c72,'alt':_0x1ca6f3[_0x2992ee(0x1a0)],'class':[_0x2992ee(0x1a5)]}}),this[_0x2992ee(0x188)][_0x2992ee(0x194)](_0x116aa1);}else this[_0x2992ee(0x17b)](_0x2992ee(0x1ae),_0x134c72);}[_0x531ff1(0x1a6)](_0x234080,_0x2ea056){const _0x488fd9=_0x531ff1,_0x186879=new _0x2a18fc(_0x234080),_0xcf7842=[];let _0x44c8bd;_0x2ea056?.[_0x488fd9(0x17d)]?(_0x44c8bd=new _0x2a18fc(_0x234080),_0x44c8bd[_0x488fd9(0x1a2)]({'tag':_0x488fd9(0x16e),'attributes':{'src':_0x2ea056[_0x488fd9(0x17d)],'alt':_0x2ea056[_0x488fd9(0x1a0)],'class':[_0x488fd9(0x16f)]}})):(_0x44c8bd=new _0x5dfefe(),_0x44c8bd[_0x488fd9(0x190)]=_0x134c72,_0x44c8bd[_0x488fd9(0x19a)]({'attributes':{'alt':_0x2ea056[_0x488fd9(0x1a0)],'class':[_0x488fd9(0x16f)]}})),_0xcf7842[_0x488fd9(0x1a1)](_0x44c8bd);const _0x21ceb4=new _0x2a18fc(_0x234080);_0x21ceb4[_0x488fd9(0x1a2)]({'tag':'a','attributes':{'class':[_0x488fd9(0x178)],'href':_0x2ea056[_0x488fd9(0x1ac)]},'children':[{'text':new URL(_0x2ea056[_0x488fd9(0x1ac)])?.[_0x488fd9(0x1b0)]}]}),_0xcf7842[_0x488fd9(0x1a1)](_0x21ceb4);const _0x237f84=new _0x2a18fc(_0x234080);_0x237f84[_0x488fd9(0x1a2)]({'tag':_0x488fd9(0x19c),'attributes':{'class':[_0x488fd9(0x192)]},'children':_0xcf7842});const _0xd6f2e1=new _0x2a18fc(_0x234080);return _0xd6f2e1[_0x488fd9(0x1a2)]({'tag':_0x488fd9(0x181),'attributes':{'class':[_0x488fd9(0x192),_0x488fd9(0x184)]},'children':[{'text':_0x2ea056[_0x488fd9(0x1a0)][_0x488fd9(0x19d)]>0x190?_0x2ea056[_0x488fd9(0x1a0)][_0x488fd9(0x176)](0x0,0x190)+_0x488fd9(0x18d):_0x2ea056[_0x488fd9(0x1a0)]}]}),_0x186879[_0x488fd9(0x1a2)]({'tag':_0x488fd9(0x19c),'attributes':{'class':['ck',_0x488fd9(0x185)]},'children':[_0x237f84,_0xd6f2e1]}),_0x186879;}[_0x531ff1(0x18e)](){const _0x58f9c7=_0x531ff1;this[_0x58f9c7(0x173)](),this[_0x58f9c7(0x179)][_0x58f9c7(0x180)]({'target':this[_0x58f9c7(0x18f)],'positions':[_0x49f666[_0x58f9c7(0x1a9)][_0x58f9c7(0x182)],_0x49f666[_0x58f9c7(0x1a9)][_0x58f9c7(0x1af)],_0x49f666[_0x58f9c7(0x1a9)][_0x58f9c7(0x196)]],'limiter':document[_0x58f9c7(0x172)](_0x58f9c7(0x199))}),this[_0x58f9c7(0x179)][_0x58f9c7(0x195)]();}[_0x531ff1(0x18a)](){const _0x511d43=_0x531ff1;this[_0x511d43(0x179)][_0x511d43(0x193)]();}[_0x531ff1(0x173)](){const _0x146091=_0x531ff1;this[_0x146091(0x179)][_0x146091(0x190)][_0x146091(0x186)](0x0)?.[_0x146091(0x197)](),this[_0x146091(0x179)][_0x146091(0x190)][_0x146091(0x19f)]();const _0x2baf4a=this[_0x146091(0x1a6)](this[_0x146091(0x187)],this[_0x146091(0x1a7)]);this[_0x146091(0x179)][_0x146091(0x190)][_0x146091(0x194)](_0x2baf4a);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x503425=_0x5728;(function(_0x51be6e,_0x3334c2){const _0x1f235f=_0x5728,_0x1fda2c=_0x51be6e();while(!![]){try{const _0x520c84=parseInt(_0x1f235f(0xba))/0x1+-parseInt(_0x1f235f(0xbe))/0x2*(parseInt(_0x1f235f(0xc8))/0x3)+parseInt(_0x1f235f(0xd4))/0x4+parseInt(_0x1f235f(0xc5))/0x5*(-parseInt(_0x1f235f(0xcc))/0x6)+parseInt(_0x1f235f(0xb8))/0x7*(-parseInt(_0x1f235f(0xd1))/0x8)+-parseInt(_0x1f235f(0xc1))/0x9*(-parseInt(_0x1f235f(0xca))/0xa)+parseInt(_0x1f235f(0xc6))/0xb*(parseInt(_0x1f235f(0xbc))/0xc);if(_0x520c84===_0x3334c2)break;else _0x1fda2c['push'](_0x1fda2c['shift']());}catch(_0x3f092d){_0x1fda2c['push'](_0x1fda2c['shift']());}}}(_0x49e6,0x1dd70));import{DocumentPosition as _0x41b57a}from'./documentposition.js';function _0x5728(_0x56a53f,_0x5b80a2){const _0x49e61e=_0x49e6();return _0x5728=function(_0x572860,_0x1da338){_0x572860=_0x572860-0xb5;let _0x5a32ce=_0x49e61e[_0x572860];return _0x5a32ce;},_0x5728(_0x56a53f,_0x5b80a2);}import{clone as _0x398ba7,getParents as _0x59249e,Document as _0x23118c,Text as _0x3a9dee,isTag as _0x3f1ca1,isText as _0x208928,replaceElement as _0x2b916f,removeElement as _0x4c554b}from'./htmlparser.js';function _0x49e6(){const _0x2b489d=['getNudgedToWordBoundary','3040mgrfSf','55abBGML','start','579CHjokb','parent','120VEeDvk','end','1176tHDDJV','includes','forEach','length','getContent','16nOsKuf','data','lastChild','457120fgZwuB','isEqual','reverse','previousNode','createBefore','path','createAt','703514YdpymX','createAfter','151291gFMhAU','createFromPath','156336ATYkkM','push','1294wizXOn','firstChild','nextNode','177417mhMjrp','slice','document'];_0x49e6=function(){return _0x2b489d;};return _0x49e6();}export class DocumentRange{[_0x503425(0xc7)];[_0x503425(0xcb)];constructor(_0xde914a,_0x4e2b37){const _0x48b905=_0x503425;this[_0x48b905(0xc7)]=_0xde914a,this[_0x48b905(0xcb)]=_0x4e2b37;}[_0x503425(0xd5)](_0xaad9c7){const _0x3d7af2=_0x503425;return this==_0xaad9c7||this[_0x3d7af2(0xc7)][_0x3d7af2(0xd5)](_0xaad9c7[_0x3d7af2(0xc7)])&&this[_0x3d7af2(0xcb)][_0x3d7af2(0xd5)](_0xaad9c7[_0x3d7af2(0xcb)]);}[_0x503425(0xc4)](){const _0x221373=_0x503425;return new DocumentRange(this[_0x221373(0xc7)][_0x221373(0xc4)](_0x221373(0xc7)),this[_0x221373(0xcb)][_0x221373(0xc4)](_0x221373(0xcb)));}[_0x503425(0xd0)](){const _0x34973f=_0x503425,_0x486065=_0x398ba7(this[_0x34973f(0xc7)][_0x34973f(0xc3)]),_0x569075=_0x41b57a[_0x34973f(0xbb)](_0x486065,this[_0x34973f(0xc7)][_0x34973f(0xb6)]),_0xfa9d0=_0x41b57a[_0x34973f(0xbb)](_0x486065,this[_0x34973f(0xcb)][_0x34973f(0xb6)]);let _0x4a4fc3,_0x466004;if(_0x208928(_0x569075[_0x34973f(0xc9)])){const _0x4f7273=_0x569075[_0x34973f(0xb6)][_0x569075[_0x34973f(0xb6)][_0x34973f(0xcf)]-0x1],_0xc27315=new _0x3a9dee(_0x569075[_0x34973f(0xc9)][_0x34973f(0xd2)][_0x34973f(0xc2)](_0x4f7273));_0x2b916f(_0x569075[_0x34973f(0xc9)],_0xc27315),_0x4a4fc3=_0xc27315;}else _0x4a4fc3=_0x569075[_0x34973f(0xc0)];if(_0x208928(_0xfa9d0[_0x34973f(0xc9)])){const _0x57b4d2=_0xfa9d0[_0x34973f(0xb6)][_0xfa9d0[_0x34973f(0xb6)][_0x34973f(0xcf)]-0x1],_0x28e006=new _0x3a9dee(_0xfa9d0[_0x34973f(0xc9)][_0x34973f(0xd2)][_0x34973f(0xc2)](0x0,_0x57b4d2));_0x2b916f(_0xfa9d0[_0x34973f(0xc9)],_0x28e006),_0x466004=_0x28e006;}else _0x466004=_0xfa9d0[_0x34973f(0xd7)];if(!(_0x4a4fc3&&_0x466004&&_0x486065[_0x34973f(0xbf)]&&_0x486065[_0x34973f(0xd3)]))return new _0x23118c([]);const _0x5b1f68=_0x59249e(_0x4a4fc3),_0x4a1fc7=_0x59249e(_0x466004),_0x2e9c94=[],_0xde8374=[];let _0x53baff=_0x486065[_0x34973f(0xbf)];for(;_0x53baff&&_0x53baff!==_0x4a4fc3;){let _0x3f66c0;_0x5b1f68[_0x34973f(0xcd)](_0x53baff)||_0x2e9c94[_0x34973f(0xbd)](_0x53baff),_0x3f66c0=_0x3f1ca1(_0x53baff)?_0x41b57a[_0x34973f(0xb7)](_0x486065,_0x53baff,_0x34973f(0xc7)):_0x41b57a[_0x34973f(0xb9)](_0x486065,_0x53baff),_0x53baff=_0x3f66c0?_0x3f66c0[_0x34973f(0xc0)]:null;}for(_0x53baff=_0x486065[_0x34973f(0xd3)];_0x53baff&&_0x53baff!==_0x466004;){let _0x53250d;_0x4a1fc7[_0x34973f(0xcd)](_0x53baff)||_0xde8374[_0x34973f(0xbd)](_0x53baff),_0x53250d=_0x3f1ca1(_0x53baff)?_0x41b57a[_0x34973f(0xb7)](_0x486065,_0x53baff,_0x34973f(0xcb)):_0x41b57a[_0x34973f(0xb5)](_0x486065,_0x53baff),_0x53baff=_0x53250d?_0x53250d[_0x34973f(0xd7)]:null;}return _0x2e9c94[_0x34973f(0xce)](_0x3c0709=>{_0x4c554b(_0x3c0709);}),_0xde8374[_0x34973f(0xd6)]()[_0x34973f(0xce)](_0x5849f4=>{_0x4c554b(_0x5849f4);}),_0x486065;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x59f6(){var _0x399615=['warn','860920RmQHCj','125MZtJyb','1786257uOUlPS','77520EiPGSA','editors','1530FpXFdg','10rQPAyr','get','52664ueIXTR','ai-get-editor-from-context-no-editor','length','9pdVRci','70580UddpFO','565166euzuhW','108gOpiBD','AIChat:\x20Multiple\x20editor\x20instances\x20detected.\x20Only\x20the\x20first\x20editor\x20instance\x20will\x20be\x20used\x20for\x20AI\x20operations.\x20This\x20configuration\x20is\x20not\x20fully\x20supported\x20and\x20may\x20lead\x20to\x20unexpected\x20behavior.'];_0x59f6=function(){return _0x399615;};return _0x59f6();}function _0x3975(_0x44bdba,_0x4a66f2){var _0x59f65b=_0x59f6();return _0x3975=function(_0x39753d,_0x3efae8){_0x39753d=_0x39753d-0x1a9;var _0x33b7d0=_0x59f65b[_0x39753d];return _0x33b7d0;},_0x3975(_0x44bdba,_0x4a66f2);}(function(_0x2cbacf,_0x2d3264){var _0x44c995=_0x3975,_0x398665=_0x2cbacf();while(!![]){try{var _0xbfbe50=parseInt(_0x44c995(0x1b6))/0x1*(parseInt(_0x44c995(0x1a9))/0x2)+-parseInt(_0x44c995(0x1af))/0x3*(parseInt(_0x44c995(0x1b0))/0x4)+-parseInt(_0x44c995(0x1b5))/0x5+-parseInt(_0x44c995(0x1b8))/0x6+parseInt(_0x44c995(0x1b1))/0x7+parseInt(_0x44c995(0x1ac))/0x8*(parseInt(_0x44c995(0x1b2))/0x9)+-parseInt(_0x44c995(0x1aa))/0xa*(-parseInt(_0x44c995(0x1b7))/0xb);if(_0xbfbe50===_0x2d3264)break;else _0x398665['push'](_0x398665['shift']());}catch(_0x35ff7a){_0x398665['push'](_0x398665['shift']());}}}(_0x59f6,0x2bdfb));import{CKEditorError as _0x22c423}from'ckeditor5/src/utils.js';import{Editor as _0x141b86}from'ckeditor5/src/core.js';export function getEditorFromContext(_0x550471){var _0x406791=_0x3975;if(_0x550471 instanceof _0x141b86)return _0x550471;if(_0x550471?.[_0x406791(0x1b9)]&&_0x550471[_0x406791(0x1b9)][_0x406791(0x1ab)](0x0))return _0x550471[_0x406791(0x1b9)][_0x406791(0x1ae)]>0x1&&console[_0x406791(0x1b4)](_0x406791(0x1b3)),_0x550471[_0x406791(0x1b9)][_0x406791(0x1ab)](0x0);throw new _0x22c423(_0x406791(0x1ad));}
|