@ckeditor/ckeditor5-ai 47.4.0-alpha.3 → 47.4.0-alpha.4
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/aiactionsreply.js +1 -1
- package/src/aiassistant/aiassistantediting.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/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/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.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/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/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/aispinner.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/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/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.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/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.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/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/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x12fddf=_0x2f95;(function(_0x5a44ab,_0x1e2fe8){const _0x356a05=_0x2f95,_0x1ec603=_0x5a44ab();while(!![]){try{const _0x2fc85c=-parseInt(_0x356a05(0x1de))/0x1+-parseInt(_0x356a05(0x1ec))/0x2*(parseInt(_0x356a05(0x20c))/0x3)+parseInt(_0x356a05(0x1fb))/0x4*(parseInt(_0x356a05(0x217))/0x5)+-parseInt(_0x356a05(0x1ed))/0x6*(parseInt(_0x356a05(0x219))/0x7)+parseInt(_0x356a05(0x1fa))/0x8*(-parseInt(_0x356a05(0x1da))/0x9)+parseInt(_0x356a05(0x1ee))/0xa+parseInt(_0x356a05(0x1e1))/0xb*(parseInt(_0x356a05(0x1e5))/0xc);if(_0x2fc85c===_0x1e2fe8)break;else _0x1ec603['push'](_0x1ec603['shift']());}catch(_0x464e11){_0x1ec603['push'](_0x1ec603['shift']());}}}(_0x268a,0x1d62e));function _0x268a(){const _0x27d184=['toString','rejectSuggestion','execute','content','ck-hidden','delegate','partDefinition','448tBtTnz','32cVKMOh','ck-ai-suggestion__body__content-part__icon-title','change:state','bindTemplate','mouseLeaveSuggestion','items','ck-ai-suggestion__body__content-part_','_toolbarView','headerView','updateContent','showChangeInText','insertSuggestion','innerHTML','ck-content','stream','mouseOverSuggestion','fire','270NnuGGN','bind','_iconStateOutdated','rejected','ck-ai-suggestion__body__content-part_active','state','addMany','createCollection','set','AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','AI_SUGGESTION_CONTENT_PART_OUTDATED','18290ZiQTFN','isEnabled','532jeSTgT','includes','streaming','AI_SUGGESTION_CONTENT_PART_TITLE','ck-ai-suggestion__body__content-part__title','span','animation:\x20ck-html-streamer-fade-in\x20.5s','push','has','add','AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT','AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION','ck-ai-suggestion__body__content-part__icon-rejected','pending','_iconStateAccepted','isVisible','remove','accepted','htmlStreamer','_iconStateRejected','8361GVXANs','div','ck-reset_all-excluded','AI_SUGGESTION_CONTENT_PART_REJECTED','98979YkmYDO','hasChanges','index','3045515VRlaIr','ck-ai-suggestion__body__content-part__icon-accepted','ck-ai-suggestion__body__content-part','ck-ai-suggestion__body__content-part__title__label','12mmblSv','extendTemplate','AI_SUGGESTION_CONTENT_PART_DELETE','ck-ai-suggestion__body__content-part__content','element','toggleHeader','ck-ai-suggestion__body__content-part__icon-outdated','2998lWeIqu','8502KHGqQh','2078420PxvUbz','setTemplate','contentView','children','outdated'];_0x268a=function(){return _0x27d184;};return _0x268a();}function _0x2f95(_0xf99fcf,_0x207e13){const _0x268aa8=_0x268a();return _0x2f95=function(_0x2f95d8,_0x36c02e){_0x2f95d8=_0x2f95d8-0x1d6;let _0x2a97a5=_0x268aa8[_0x2f95d8];return _0x2a97a5;},_0x2f95(_0xf99fcf,_0x207e13);}import{View as _0x334ff0,IconView as _0x4b5ddf,ToolbarView as _0x1292ee,ButtonView as _0x59f450}from'ckeditor5/src/ui.js';import{IconAddComment as _0x3aaae7,IconDocumentWithLoupe as _0x26f90d,IconDocumentWithCheckmark as _0x2a591c,IconDocumentWithCross as _0x3fdf80,IconRemove as _0x165d93,IconThreeStars as _0x360e4f}from'ckeditor5/src/icons.js';import{HTMLStreamer as _0x258220}from'../../utils/htmlstreamer.js';import{getTranslation as _0x1a6dfb}from'../../utils/common-translations.js';import{serialize as _0x525bb8}from'../../utils/htmlparser.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x5de88c}from'../../utils/eventnames.js';export class AISuggestionBodyViewContentPartView extends _0x334ff0{[_0x12fddf(0x1d8)];[_0x12fddf(0x1f1)];[_0x12fddf(0x203)];[_0x12fddf(0x1f0)];constructor(_0x321014,{part:_0x22cf03,uiIndex:_0x26fed2,areActionsDisabled:_0x20f152,availableActions:_0x2b5eb2}){const _0x57c121=_0x12fddf;super(_0x321014),this[_0x57c121(0x214)](_0x57c121(0x1f9),_0x22cf03),this[_0x57c121(0x214)](_0x57c121(0x211),_0x57c121(0x226)),this[_0x57c121(0x214)](_0x57c121(0x228),!0x1),this[_0x57c121(0x20d)](_0x57c121(0x218))['to'](this,_0x57c121(0x211),_0x35cb05=>_0x57c121(0x226)==_0x35cb05&&!_0x20f152),this[_0x57c121(0x1f1)]=this[_0x57c121(0x213)](),this[_0x57c121(0x1d8)]=new _0x258220({'textNodeStyle':_0x57c121(0x21f),'delay':0x14}),this[_0x57c121(0x203)]=new Un(_0x321014,{'part':_0x22cf03,'uiIndex':_0x26fed2,'availableActions':_0x2b5eb2}),this[_0x57c121(0x203)][_0x57c121(0x20d)](_0x57c121(0x1f9))['to'](this),this[_0x57c121(0x203)][_0x57c121(0x20d)](_0x57c121(0x218))['to'](this),this[_0x57c121(0x203)][_0x57c121(0x20d)](_0x57c121(0x211))['to'](this),this[_0x57c121(0x203)][_0x57c121(0x1f8)](..._0x5de88c)['to'](this);const _0x4126ef=this[_0x57c121(0x1fe)];this[_0x57c121(0x1f0)]=new _0x334ff0(),this[_0x57c121(0x1f0)][_0x57c121(0x1ef)]({'tag':_0x57c121(0x1db),'attributes':{'class':['ck',_0x57c121(0x208),_0x57c121(0x1dc),_0x57c121(0x1e8)]}}),this[_0x57c121(0x1f1)][_0x57c121(0x212)]([this[_0x57c121(0x1f0)]]),this[_0x57c121(0x1ef)]({'tag':_0x57c121(0x1db),'attributes':{'class':['ck',_0x57c121(0x1e3),_0x4126ef['to'](_0x57c121(0x211),_0x4b28fc=>_0x57c121(0x201)+_0x4b28fc),_0x4126ef['to'](_0x57c121(0x218),_0x5614aa=>_0x5614aa?_0x57c121(0x210):void 0x0),_0x4126ef['if'](_0x57c121(0x228),_0x57c121(0x1f7),_0x53196f=>!_0x53196f)]},'children':this[_0x57c121(0x1f1)],'on':{'mouseenter':_0x4126ef['to'](()=>{const _0x32729b=_0x57c121;this[_0x32729b(0x218)]&&this[_0x32729b(0x20b)](_0x32729b(0x20a),{'index':_0x22cf03[_0x32729b(0x1e0)]});}),'mouseleave':_0x4126ef['to'](()=>{const _0x3998dc=_0x57c121;this[_0x3998dc(0x218)]&&this[_0x3998dc(0x20b)](_0x3998dc(0x1ff),{'index':_0x22cf03[_0x3998dc(0x1e0)]});})}});}async[_0x12fddf(0x204)]({part:_0x41047a,renderingStrategy:_0x12d633,showUnchangedParts:_0x31a57d=!0x1,abortSignal:_0x3081a5}){const _0x22672a=_0x12fddf;this[_0x22672a(0x1f9)]=_0x41047a,this[_0x22672a(0x228)]=this[_0x22672a(0x1f9)][_0x22672a(0x1df)]||_0x31a57d,this[_0x22672a(0x228)]&&(_0x22672a(0x21b)===_0x12d633?await this[_0x22672a(0x1d8)][_0x22672a(0x209)]({'document':this[_0x22672a(0x1f9)][_0x22672a(0x1f6)],'targetElement':this[_0x22672a(0x1f0)][_0x22672a(0x1e9)],'abortSignal':_0x3081a5}):this[_0x22672a(0x1f0)][_0x22672a(0x1e9)][_0x22672a(0x207)]=_0x525bb8(this[_0x22672a(0x1f9)][_0x22672a(0x1f6)]));}[_0x12fddf(0x1ea)](_0x2a46ba){const _0x4f43cb=_0x12fddf;_0x2a46ba?this[_0x4f43cb(0x1f1)][_0x4f43cb(0x221)](this[_0x4f43cb(0x203)])||this[_0x4f43cb(0x1f1)][_0x4f43cb(0x222)](this[_0x4f43cb(0x203)],0x0):this[_0x4f43cb(0x1f1)][_0x4f43cb(0x221)](this[_0x4f43cb(0x203)])&&this[_0x4f43cb(0x1f1)][_0x4f43cb(0x1d6)](this[_0x4f43cb(0x203)]);}}class Un extends _0x334ff0{[_0x12fddf(0x1f1)];[_0x12fddf(0x202)];[_0x12fddf(0x227)];[_0x12fddf(0x1d9)];[_0x12fddf(0x20e)];constructor(_0x476079,{part:_0x3d1054,uiIndex:_0x3d19c1,availableActions:_0x886da6}){const _0x1ac3c7=_0x12fddf;super(_0x476079),this[_0x1ac3c7(0x214)](_0x1ac3c7(0x1f9),_0x3d1054),this[_0x1ac3c7(0x214)](_0x1ac3c7(0x218),!0x0),this[_0x1ac3c7(0x214)](_0x1ac3c7(0x211),_0x1ac3c7(0x226));const _0x374653=new _0x4b5ddf();_0x374653[_0x1ac3c7(0x1f6)]=_0x360e4f,_0x374653[_0x1ac3c7(0x1e6)]({'attributes':{'class':[_0x1ac3c7(0x1fc)]}});const _0x15aee4=[];if(_0x886da6[_0x1ac3c7(0x21a)](_0x1ac3c7(0x205))){const _0x5ae758=new _0x59f450(_0x476079);_0x5ae758[_0x1ac3c7(0x214)]({'label':_0x1a6dfb(_0x476079,_0x1ac3c7(0x223)),'tooltip':!0x0,'withText':!0x1,'icon':_0x26f90d}),_0x5ae758[_0x1ac3c7(0x20d)](_0x1ac3c7(0x218))['to'](this),_0x5ae758['on'](_0x1ac3c7(0x1f5),()=>{const _0xdfb537=_0x1ac3c7;this[_0xdfb537(0x20b)](_0xdfb537(0x205),{'index':_0x3d1054[_0xdfb537(0x1e0)]});}),_0x15aee4[_0x1ac3c7(0x220)](_0x5ae758);}if(_0x886da6[_0x1ac3c7(0x21a)](_0x1ac3c7(0x206))){const _0xb9e880=new _0x59f450(_0x476079);_0xb9e880[_0x1ac3c7(0x214)]({'label':_0x1a6dfb(_0x476079,_0x1ac3c7(0x224)),'tooltip':!0x0,'withText':!0x1,'icon':_0x3aaae7}),_0xb9e880[_0x1ac3c7(0x20d)](_0x1ac3c7(0x218))['to'](this),_0xb9e880['on'](_0x1ac3c7(0x1f5),()=>{const _0x5043e5=_0x1ac3c7;this[_0x5043e5(0x20b)](_0x5043e5(0x206),{'index':_0x3d1054[_0x5043e5(0x1e0)]});}),_0x15aee4[_0x1ac3c7(0x220)](_0xb9e880);}const _0x3e8b33=new _0x59f450(_0x476079);_0x3e8b33[_0x1ac3c7(0x214)]({'label':_0x1a6dfb(_0x476079,_0x1ac3c7(0x1e7)),'tooltip':!0x0,'withText':!0x1,'icon':_0x165d93}),_0x3e8b33[_0x1ac3c7(0x20d)](_0x1ac3c7(0x218))['to'](this),_0x3e8b33['on'](_0x1ac3c7(0x1f5),()=>{const _0x267f03=_0x1ac3c7;this[_0x267f03(0x20b)](_0x267f03(0x1f4),{'index':_0x3d1054[_0x267f03(0x1e0)]});}),_0x15aee4[_0x1ac3c7(0x220)](_0x3e8b33),this[_0x1ac3c7(0x202)]=new _0x1292ee(_0x476079),this[_0x1ac3c7(0x202)][_0x1ac3c7(0x200)][_0x1ac3c7(0x212)](_0x15aee4),this[_0x1ac3c7(0x227)]=new _0x4b5ddf(),this[_0x1ac3c7(0x227)][_0x1ac3c7(0x1f6)]=_0x2a591c,this[_0x1ac3c7(0x227)][_0x1ac3c7(0x1e6)]({'attributes':{'class':[_0x1ac3c7(0x1e2)],'data-cke-tooltip-text':_0x1a6dfb(_0x476079,_0x1ac3c7(0x215)),'data-cke-tooltip-position':'n'}}),this[_0x1ac3c7(0x1d9)]=new _0x4b5ddf(),this[_0x1ac3c7(0x1d9)][_0x1ac3c7(0x1f6)]=_0x3fdf80,this[_0x1ac3c7(0x1d9)][_0x1ac3c7(0x1e6)]({'attributes':{'class':[_0x1ac3c7(0x225)],'data-cke-tooltip-text':_0x1a6dfb(_0x476079,_0x1ac3c7(0x1dd)),'data-cke-tooltip-position':'n'}}),this[_0x1ac3c7(0x20e)]=new _0x4b5ddf(),this[_0x1ac3c7(0x20e)][_0x1ac3c7(0x1f6)]=_0x3fdf80,this[_0x1ac3c7(0x20e)][_0x1ac3c7(0x1e6)]({'attributes':{'class':[_0x1ac3c7(0x1eb)],'data-cke-tooltip-text':_0x1a6dfb(_0x476079,_0x1ac3c7(0x216)),'data-cke-tooltip-position':'n'}});const _0x1fd300=new _0x334ff0(_0x476079);_0x1fd300[_0x1ac3c7(0x1ef)]({'tag':_0x1ac3c7(0x21e),'attributes':{'class':['ck',_0x1ac3c7(0x1e4)]},'children':[_0x1a6dfb(_0x476079,_0x1ac3c7(0x21c),_0x3d19c1[_0x1ac3c7(0x1f3)]())]}),this[_0x1ac3c7(0x1f1)]=this[_0x1ac3c7(0x213)](),this[_0x1ac3c7(0x1f1)][_0x1ac3c7(0x212)]([_0x374653,_0x1fd300,this[_0x1ac3c7(0x202)]]),this[_0x1ac3c7(0x1ef)]({'tag':_0x1ac3c7(0x1db),'attributes':{'class':['ck',_0x1ac3c7(0x1dc),_0x1ac3c7(0x21d)]},'children':this[_0x1ac3c7(0x1f1)]}),this['on'](_0x1ac3c7(0x1fd),(_0x277178,_0x28a395,_0x468b84,_0x5e6e2b)=>{const _0x43e3fd=_0x1ac3c7;switch(_0x5e6e2b){case _0x43e3fd(0x226):this[_0x43e3fd(0x1f1)][_0x43e3fd(0x1d6)](this[_0x43e3fd(0x202)]);break;case _0x43e3fd(0x1d7):this[_0x43e3fd(0x1f1)][_0x43e3fd(0x1d6)](this[_0x43e3fd(0x227)]);break;case _0x43e3fd(0x20f):this[_0x43e3fd(0x1f1)][_0x43e3fd(0x1d6)](this[_0x43e3fd(0x1d9)]);break;case _0x43e3fd(0x1f2):this[_0x43e3fd(0x1f1)][_0x43e3fd(0x1d6)](this[_0x43e3fd(0x20e)]);}switch(_0x468b84){case _0x43e3fd(0x226):this[_0x43e3fd(0x1f1)][_0x43e3fd(0x222)](this[_0x43e3fd(0x202)]);break;case _0x43e3fd(0x1d7):this[_0x43e3fd(0x1f1)][_0x43e3fd(0x222)](this[_0x43e3fd(0x227)]);break;case _0x43e3fd(0x20f):this[_0x43e3fd(0x1f1)][_0x43e3fd(0x222)](this[_0x43e3fd(0x1d9)]);break;case _0x43e3fd(0x1f2):this[_0x43e3fd(0x1f1)][_0x43e3fd(0x222)](this[_0x43e3fd(0x20e)]);}});}}
|
|
23
|
+
const _0x3c5e05=_0x3cc3;(function(_0x2f2bc0,_0x466eb0){const _0x698e0e=_0x3cc3,_0x2596b0=_0x2f2bc0();while(!![]){try{const _0x417832=-parseInt(_0x698e0e(0x1d8))/0x1*(parseInt(_0x698e0e(0x1df))/0x2)+parseInt(_0x698e0e(0x1e3))/0x3*(parseInt(_0x698e0e(0x1d9))/0x4)+-parseInt(_0x698e0e(0x211))/0x5+parseInt(_0x698e0e(0x1c7))/0x6+-parseInt(_0x698e0e(0x1d4))/0x7+-parseInt(_0x698e0e(0x1f9))/0x8*(parseInt(_0x698e0e(0x1ee))/0x9)+parseInt(_0x698e0e(0x1e1))/0xa;if(_0x417832===_0x466eb0)break;else _0x2596b0['push'](_0x2596b0['shift']());}catch(_0x3b55e9){_0x2596b0['push'](_0x2596b0['shift']());}}}(_0x5da7,0x77eef));import{View as _0x408872,IconView as _0x5444ee,ToolbarView as _0x2f1b0d,ButtonView as _0x3f9e34}from'ckeditor5/src/ui.js';import{IconAddComment as _0x51e83b,IconDocumentWithLoupe as _0x48406c,IconDocumentWithCheckmark as _0x41b948,IconDocumentWithCross as _0x43354d,IconRemove as _0x231061,IconThreeStars as _0x5095b4}from'ckeditor5/src/icons.js';import{HTMLStreamer as _0x4baa74}from'../../utils/htmlstreamer.js';function _0x3cc3(_0x37e4da,_0x231600){const _0x5da7e9=_0x5da7();return _0x3cc3=function(_0x3cc336,_0x3ce7b5){_0x3cc336=_0x3cc336-0x1c2;let _0x507ea3=_0x5da7e9[_0x3cc336];return _0x507ea3;},_0x3cc3(_0x37e4da,_0x231600);}import{getTranslation as _0x1889d7}from'../../utils/common-translations.js';function _0x5da7(){const _0x55a6c6=['showChangeInText','AI_SUGGESTION_CONTENT_PART_REJECTED','AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION','239416DvCIrf','remove','hasChanges','state','_iconStateRejected','animation:\x20ck-html-streamer-fade-in\x20.5s','toggleHeader','includes','isVisible','extendTemplate','AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT','ck-ai-suggestion__body__content-part__title__label','span','htmlStreamer','rejected','innerHTML','ck-ai-suggestion__body__content-part__title','ck-hidden','items','div','ck-ai-suggestion__body__content-part__content','AI_SUGGESTION_CONTENT_PART_TITLE','streaming','pending','2160750uwdCya','updateContent','has','_iconStateOutdated','push','ck-ai-suggestion__body__content-part__icon-outdated','rejectSuggestion','5606964bmZKtA','ck-ai-suggestion__body__content-part__icon-accepted','ck-reset_all-excluded','toString','bind','execute','ck-ai-suggestion__body__content-part','add','mouseLeaveSuggestion','AI_SUGGESTION_CONTENT_PART_DELETE','_toolbarView','headerView','set','6734140BAQqyj','children','index','isEnabled','87941qtYViH','55140SWfsfz','content','AI_SUGGESTION_CONTENT_PART_OUTDATED','change:state','fire','ck-content','4EarpJV','ck-ai-suggestion__body__content-part_active','9376000oWZOAJ','stream','204qapCTu','accepted','AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','ck-ai-suggestion__body__content-part_','outdated','addMany','_iconStateAccepted','element','partDefinition','mouseOverSuggestion','contentView','225xlEnor','delegate','bindTemplate','ck-ai-suggestion__body__content-part__icon-title','ck-ai-suggestion__body__content-part__icon-rejected','createCollection','insertSuggestion','setTemplate'];_0x5da7=function(){return _0x55a6c6;};return _0x5da7();}import{serialize as _0x364398}from'../../utils/htmlparser.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x1dd460}from'../../utils/eventnames.js';export class AISuggestionBodyViewContentPartView extends _0x408872{[_0x3c5e05(0x206)];[_0x3c5e05(0x1d5)];[_0x3c5e05(0x1d2)];[_0x3c5e05(0x1ed)];constructor(_0x3de806,{part:_0xb35075,uiIndex:_0x530b38,areActionsDisabled:_0x3f5504,availableActions:_0x526618}){const _0x3fa2e5=_0x3c5e05;super(_0x3de806),this[_0x3fa2e5(0x1d3)](_0x3fa2e5(0x1eb),_0xb35075),this[_0x3fa2e5(0x1d3)](_0x3fa2e5(0x1fc),_0x3fa2e5(0x210)),this[_0x3fa2e5(0x1d3)](_0x3fa2e5(0x201),!0x1),this[_0x3fa2e5(0x1cb)](_0x3fa2e5(0x1d7))['to'](this,_0x3fa2e5(0x1fc),_0x2727b4=>_0x3fa2e5(0x210)==_0x2727b4&&!_0x3f5504),this[_0x3fa2e5(0x1d5)]=this[_0x3fa2e5(0x1f3)](),this[_0x3fa2e5(0x206)]=new _0x4baa74({'textNodeStyle':_0x3fa2e5(0x1fe),'delay':0x14}),this[_0x3fa2e5(0x1d2)]=new Vn(_0x3de806,{'part':_0xb35075,'uiIndex':_0x530b38,'availableActions':_0x526618}),this[_0x3fa2e5(0x1d2)][_0x3fa2e5(0x1cb)](_0x3fa2e5(0x1eb))['to'](this),this[_0x3fa2e5(0x1d2)][_0x3fa2e5(0x1cb)](_0x3fa2e5(0x1d7))['to'](this),this[_0x3fa2e5(0x1d2)][_0x3fa2e5(0x1cb)](_0x3fa2e5(0x1fc))['to'](this),this[_0x3fa2e5(0x1d2)][_0x3fa2e5(0x1ef)](..._0x1dd460)['to'](this);const _0x46ac16=this[_0x3fa2e5(0x1f0)];this[_0x3fa2e5(0x1ed)]=new _0x408872(),this[_0x3fa2e5(0x1ed)][_0x3fa2e5(0x1f5)]({'tag':_0x3fa2e5(0x20c),'attributes':{'class':['ck',_0x3fa2e5(0x1de),_0x3fa2e5(0x1c9),_0x3fa2e5(0x20d)]}}),this[_0x3fa2e5(0x1d5)][_0x3fa2e5(0x1e8)]([this[_0x3fa2e5(0x1ed)]]),this[_0x3fa2e5(0x1f5)]({'tag':_0x3fa2e5(0x20c),'attributes':{'class':['ck',_0x3fa2e5(0x1cd),_0x46ac16['to'](_0x3fa2e5(0x1fc),_0x2f7a34=>_0x3fa2e5(0x1e6)+_0x2f7a34),_0x46ac16['to'](_0x3fa2e5(0x1d7),_0x2cc540=>_0x2cc540?_0x3fa2e5(0x1e0):void 0x0),_0x46ac16['if'](_0x3fa2e5(0x201),_0x3fa2e5(0x20a),_0x2b65de=>!_0x2b65de)]},'children':this[_0x3fa2e5(0x1d5)],'on':{'mouseenter':_0x46ac16['to'](()=>{const _0x7c34ef=_0x3fa2e5;this[_0x7c34ef(0x1d7)]&&this[_0x7c34ef(0x1dd)](_0x7c34ef(0x1ec),{'index':_0xb35075[_0x7c34ef(0x1d6)]});}),'mouseleave':_0x46ac16['to'](()=>{const _0x6a344d=_0x3fa2e5;this[_0x6a344d(0x1d7)]&&this[_0x6a344d(0x1dd)](_0x6a344d(0x1cf),{'index':_0xb35075[_0x6a344d(0x1d6)]});})}});}async[_0x3c5e05(0x212)]({part:_0x3592f5,renderingStrategy:_0x57caf2,showUnchangedParts:_0x417aa5=!0x1,abortSignal:_0x5b8a32}){const _0x41f018=_0x3c5e05;this[_0x41f018(0x1eb)]=_0x3592f5,this[_0x41f018(0x201)]=this[_0x41f018(0x1eb)][_0x41f018(0x1fb)]||_0x417aa5,this[_0x41f018(0x201)]&&(_0x41f018(0x20f)===_0x57caf2?await this[_0x41f018(0x206)][_0x41f018(0x1e2)]({'document':this[_0x41f018(0x1eb)][_0x41f018(0x1da)],'targetElement':this[_0x41f018(0x1ed)][_0x41f018(0x1ea)],'abortSignal':_0x5b8a32}):this[_0x41f018(0x1ed)][_0x41f018(0x1ea)][_0x41f018(0x208)]=_0x364398(this[_0x41f018(0x1eb)][_0x41f018(0x1da)]));}[_0x3c5e05(0x1ff)](_0xe22bd7){const _0x2fe0f4=_0x3c5e05;_0xe22bd7?this[_0x2fe0f4(0x1d5)][_0x2fe0f4(0x1c2)](this[_0x2fe0f4(0x1d2)])||this[_0x2fe0f4(0x1d5)][_0x2fe0f4(0x1ce)](this[_0x2fe0f4(0x1d2)],0x0):this[_0x2fe0f4(0x1d5)][_0x2fe0f4(0x1c2)](this[_0x2fe0f4(0x1d2)])&&this[_0x2fe0f4(0x1d5)][_0x2fe0f4(0x1fa)](this[_0x2fe0f4(0x1d2)]);}}class Vn extends _0x408872{[_0x3c5e05(0x1d5)];[_0x3c5e05(0x1d1)];[_0x3c5e05(0x1e9)];[_0x3c5e05(0x1fd)];[_0x3c5e05(0x1c3)];constructor(_0x2b4e25,{part:_0x5c64c4,uiIndex:_0x517bd1,availableActions:_0x259857}){const _0x183624=_0x3c5e05;super(_0x2b4e25),this[_0x183624(0x1d3)](_0x183624(0x1eb),_0x5c64c4),this[_0x183624(0x1d3)](_0x183624(0x1d7),!0x0),this[_0x183624(0x1d3)](_0x183624(0x1fc),_0x183624(0x210));const _0x4be6d2=new _0x5444ee();_0x4be6d2[_0x183624(0x1da)]=_0x5095b4,_0x4be6d2[_0x183624(0x202)]({'attributes':{'class':[_0x183624(0x1f1)]}});const _0x10820e=[];if(_0x259857[_0x183624(0x200)](_0x183624(0x1f6))){const _0x145a3a=new _0x3f9e34(_0x2b4e25);_0x145a3a[_0x183624(0x1d3)]({'label':_0x1889d7(_0x2b4e25,_0x183624(0x203)),'tooltip':!0x0,'withText':!0x1,'icon':_0x48406c}),_0x145a3a[_0x183624(0x1cb)](_0x183624(0x1d7))['to'](this),_0x145a3a['on'](_0x183624(0x1cc),()=>{const _0x386fb6=_0x183624;this[_0x386fb6(0x1dd)](_0x386fb6(0x1f6),{'index':_0x5c64c4[_0x386fb6(0x1d6)]});}),_0x10820e[_0x183624(0x1c4)](_0x145a3a);}if(_0x259857[_0x183624(0x200)](_0x183624(0x1f4))){const _0x1de8fc=new _0x3f9e34(_0x2b4e25);_0x1de8fc[_0x183624(0x1d3)]({'label':_0x1889d7(_0x2b4e25,_0x183624(0x1f8)),'tooltip':!0x0,'withText':!0x1,'icon':_0x51e83b}),_0x1de8fc[_0x183624(0x1cb)](_0x183624(0x1d7))['to'](this),_0x1de8fc['on'](_0x183624(0x1cc),()=>{const _0x37c25f=_0x183624;this[_0x37c25f(0x1dd)](_0x37c25f(0x1f4),{'index':_0x5c64c4[_0x37c25f(0x1d6)]});}),_0x10820e[_0x183624(0x1c4)](_0x1de8fc);}const _0x18849d=new _0x3f9e34(_0x2b4e25);_0x18849d[_0x183624(0x1d3)]({'label':_0x1889d7(_0x2b4e25,_0x183624(0x1d0)),'tooltip':!0x0,'withText':!0x1,'icon':_0x231061}),_0x18849d[_0x183624(0x1cb)](_0x183624(0x1d7))['to'](this),_0x18849d['on'](_0x183624(0x1cc),()=>{const _0x7616e0=_0x183624;this[_0x7616e0(0x1dd)](_0x7616e0(0x1c6),{'index':_0x5c64c4[_0x7616e0(0x1d6)]});}),_0x10820e[_0x183624(0x1c4)](_0x18849d),this[_0x183624(0x1d1)]=new _0x2f1b0d(_0x2b4e25),this[_0x183624(0x1d1)][_0x183624(0x20b)][_0x183624(0x1e8)](_0x10820e),this[_0x183624(0x1e9)]=new _0x5444ee(),this[_0x183624(0x1e9)][_0x183624(0x1da)]=_0x41b948,this[_0x183624(0x1e9)][_0x183624(0x202)]({'attributes':{'class':[_0x183624(0x1c8)],'data-cke-tooltip-text':_0x1889d7(_0x2b4e25,_0x183624(0x1e5)),'data-cke-tooltip-position':'n'}}),this[_0x183624(0x1fd)]=new _0x5444ee(),this[_0x183624(0x1fd)][_0x183624(0x1da)]=_0x43354d,this[_0x183624(0x1fd)][_0x183624(0x202)]({'attributes':{'class':[_0x183624(0x1f2)],'data-cke-tooltip-text':_0x1889d7(_0x2b4e25,_0x183624(0x1f7)),'data-cke-tooltip-position':'n'}}),this[_0x183624(0x1c3)]=new _0x5444ee(),this[_0x183624(0x1c3)][_0x183624(0x1da)]=_0x43354d,this[_0x183624(0x1c3)][_0x183624(0x202)]({'attributes':{'class':[_0x183624(0x1c5)],'data-cke-tooltip-text':_0x1889d7(_0x2b4e25,_0x183624(0x1db)),'data-cke-tooltip-position':'n'}});const _0x48cc46=new _0x408872(_0x2b4e25);_0x48cc46[_0x183624(0x1f5)]({'tag':_0x183624(0x205),'attributes':{'class':['ck',_0x183624(0x204)]},'children':[_0x1889d7(_0x2b4e25,_0x183624(0x20e),_0x517bd1[_0x183624(0x1ca)]())]}),this[_0x183624(0x1d5)]=this[_0x183624(0x1f3)](),this[_0x183624(0x1d5)][_0x183624(0x1e8)]([_0x4be6d2,_0x48cc46,this[_0x183624(0x1d1)]]),this[_0x183624(0x1f5)]({'tag':_0x183624(0x20c),'attributes':{'class':['ck',_0x183624(0x1c9),_0x183624(0x209)]},'children':this[_0x183624(0x1d5)]}),this['on'](_0x183624(0x1dc),(_0x53bc6d,_0x118efb,_0x35805a,_0x26044f)=>{const _0xaa3ef3=_0x183624;switch(_0x26044f){case _0xaa3ef3(0x210):this[_0xaa3ef3(0x1d5)][_0xaa3ef3(0x1fa)](this[_0xaa3ef3(0x1d1)]);break;case _0xaa3ef3(0x1e4):this[_0xaa3ef3(0x1d5)][_0xaa3ef3(0x1fa)](this[_0xaa3ef3(0x1e9)]);break;case _0xaa3ef3(0x207):this[_0xaa3ef3(0x1d5)][_0xaa3ef3(0x1fa)](this[_0xaa3ef3(0x1fd)]);break;case _0xaa3ef3(0x1e7):this[_0xaa3ef3(0x1d5)][_0xaa3ef3(0x1fa)](this[_0xaa3ef3(0x1c3)]);}switch(_0x35805a){case _0xaa3ef3(0x210):this[_0xaa3ef3(0x1d5)][_0xaa3ef3(0x1ce)](this[_0xaa3ef3(0x1d1)]);break;case _0xaa3ef3(0x1e4):this[_0xaa3ef3(0x1d5)][_0xaa3ef3(0x1ce)](this[_0xaa3ef3(0x1e9)]);break;case _0xaa3ef3(0x207):this[_0xaa3ef3(0x1d5)][_0xaa3ef3(0x1ce)](this[_0xaa3ef3(0x1fd)]);break;case _0xaa3ef3(0x1e7):this[_0xaa3ef3(0x1d5)][_0xaa3ef3(0x1ce)](this[_0xaa3ef3(0x1c3)]);}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1457(_0x3d1826,_0x38f265){const _0x38d11c=_0x38d1();return _0x1457=function(_0x145722,_0x3c7942){_0x145722=_0x145722-0x14a;let _0x5f07df=_0x38d11c[_0x145722];return _0x5f07df;},_0x1457(_0x3d1826,_0x38f265);}const _0x372223=_0x1457;(function(_0x4ad771,_0x35b7ba){const _0x5d7f67=_0x1457,_0x1afdd6=_0x4ad771();while(!![]){try{const _0x1704cf=-parseInt(_0x5d7f67(0x168))/0x1*(-parseInt(_0x5d7f67(0x14a))/0x2)+-parseInt(_0x5d7f67(0x167))/0x3+-parseInt(_0x5d7f67(0x169))/0x4*(-parseInt(_0x5d7f67(0x156))/0x5)+parseInt(_0x5d7f67(0x16b))/0x6+-parseInt(_0x5d7f67(0x161))/0x7+parseInt(_0x5d7f67(0x15c))/0x8*(-parseInt(_0x5d7f67(0x155))/0x9)+parseInt(_0x5d7f67(0x157))/0xa*(parseInt(_0x5d7f67(0x14c))/0xb);if(_0x1704cf===_0x35b7ba)break;else _0x1afdd6['push'](_0x1afdd6['shift']());}catch(_0x401294){_0x1afdd6['push'](_0x1afdd6['shift']());}}}(_0x38d1,0xcd9e0));import{getTranslation as _0x3e9817}from'../../utils/common-translations.js';function _0x38d1(){const _0x15c5c4=['toggleShowChanges','isOn','2utwVZk','isShowChangesToggleVisible','26917rJGCUk','iconView','showChangesToggleView','render','AI_SUGGESTION_HEADER_TITLE','icon','showDiff','ck-ai-suggestion__header','fire','1585989HKsDNW','254165ZSnxfy','2470OccFmt','ck-ai-suggestion__header__show-changes-toggle\x20ck-ai-chat-controls-button','add','children','AI_SUGGESTION_BUTTON_SHOW_CHANGES','8dWTXTn','set','setTemplate','ck-hidden','showHeader','4482793AHFkgh','content','execute','isVisible','bind','span','4382598YUETLc','836561EpcvzE','64zwOewd','remove','5192376twoQpM','filter','div'];_0x38d1=function(){return _0x15c5c4;};return _0x38d1();}import{ButtonView as _0x374715,IconView as _0x30e5f9,View as _0x2f82cb}from'ckeditor5/src/ui.js';import{IconDocument as _0x3f5917,IconShowChangesOff as _0x7543e4,IconShowChangesOn as _0x287779}from'ckeditor5/src/icons.js';export class AISuggestionHeaderView extends _0x2f82cb{[_0x372223(0x14e)];constructor(_0xf007b4,_0x306ae3){const _0x6fdc6=_0x372223;super(_0xf007b4),this[_0x6fdc6(0x15d)](_0x6fdc6(0x14b),!0x0),this[_0x6fdc6(0x14e)]=new ShowChangesToggleView(_0xf007b4),this[_0x6fdc6(0x14e)][_0x6fdc6(0x15d)]({'class':_0x6fdc6(0x158),'label':_0x3e9817(_0xf007b4,_0x6fdc6(0x15b)),'withText':!0x0}),this[_0x6fdc6(0x14e)][_0x6fdc6(0x16f)]=_0x306ae3[_0x6fdc6(0x152)],this[_0x6fdc6(0x14e)][_0x6fdc6(0x165)](_0x6fdc6(0x164))['to'](this,_0x6fdc6(0x14b)),this[_0x6fdc6(0x14e)][_0x6fdc6(0x165)](_0x6fdc6(0x151))['to'](this[_0x6fdc6(0x14e)],_0x6fdc6(0x16f),_0x129a7f=>_0x129a7f?_0x287779:_0x7543e4),this[_0x6fdc6(0x14e)]['on'](_0x6fdc6(0x163),()=>{const _0x3b63ce=_0x6fdc6;this[_0x3b63ce(0x14e)][_0x3b63ce(0x16f)]=!this[_0x3b63ce(0x14e)][_0x3b63ce(0x16f)],this[_0x3b63ce(0x154)](_0x3b63ce(0x16e),{'isOn':this[_0x3b63ce(0x14e)][_0x3b63ce(0x16f)]});});const _0x348419=new _0x30e5f9();_0x348419[_0x6fdc6(0x162)]=_0x3f5917,this[_0x6fdc6(0x15e)]({'tag':_0x6fdc6(0x16d),'attributes':{'class':['ck',_0x6fdc6(0x153),!0x1===_0x306ae3[_0x6fdc6(0x160)]?_0x6fdc6(0x15f):null][_0x6fdc6(0x16c)](Boolean)},'children':[_0x348419,{'tag':_0x6fdc6(0x166),'children':[_0x3e9817(_0xf007b4,_0x6fdc6(0x150))]},this[_0x6fdc6(0x14e)]]});}}export class ShowChangesToggleView extends _0x374715{[_0x372223(0x14f)](){const _0x3dff1d=_0x372223;super[_0x3dff1d(0x14f)](),this[_0x3dff1d(0x15a)][_0x3dff1d(0x16a)](this[_0x3dff1d(0x14d)]),this[_0x3dff1d(0x15a)][_0x3dff1d(0x159)](this[_0x3dff1d(0x14d)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4a77(){const _0x21fe5b=['match','same','createAt','4YufbiI','previousNode','13512653zzuedf','ai-documentposition-index-out-of-bounds','createFromPath','end','1809010hsAVfH','3581289azcvHd','start','path','createBefore','indexOf','nextNode','parent','createAfter','5VpGsrI','reduce','1546128pDIGrZ','document','length','isEqual','slice','2362494rvDJbb','ai-documentposition-createfrompath-path-cannot-be-empty','index','getNudgedToWordBoundary','10VZYvDQ','data','5977758BTxPSn','8CbgeWT','1016684naJMhY'];_0x4a77=function(){return _0x21fe5b;};return _0x4a77();}const _0x5d0a26=_0x37a1;(function(_0x543531,_0x455607){const _0x181e3d=_0x37a1,_0x577758=_0x543531();while(!![]){try{const _0x3f0961=-parseInt(_0x181e3d(0xf2))/0x1+-parseInt(_0x181e3d(0xe5))/0x2+-parseInt(_0x181e3d(0xea))/0x3*(-parseInt(_0x181e3d(0xf6))/0x4)+parseInt(_0x181e3d(0xe3))/0x5*(parseInt(_0x181e3d(0xf0))/0x6)+-parseInt(_0x181e3d(0xfc))/0x7+-parseInt(_0x181e3d(0xf1))/0x8*(parseInt(_0x181e3d(0xfd))/0x9)+parseInt(_0x181e3d(0xee))/0xa*(parseInt(_0x181e3d(0xf8))/0xb);if(_0x3f0961===_0x455607)break;else _0x577758['push'](_0x577758['shift']());}catch(_0x30685f){_0x577758['push'](_0x577758['shift']());}}}(_0x4a77,0x8a363));import{CKEditorError as _0x5f3e25,compareArrays as _0x34e441}from'ckeditor5/src/utils.js';import{getNodePath as _0x3eaed4,isText as _0x4af153,getChildren as _0x5a8245,isDocument as _0x34982c,getParent as _0xdc70c8,textContent as _0xe1f682,hasChildren as _0x190a13}from'./htmlparser.js';function _0x37a1(_0x5c9df0,_0x459f74){const _0x4a7710=_0x4a77();return _0x37a1=function(_0x37a1f1,_0xe358de){_0x37a1f1=_0x37a1f1-0xdd;let _0x21190a=_0x4a7710[_0x37a1f1];return _0x21190a;},_0x37a1(_0x5c9df0,_0x459f74);}export class DocumentPosition{[_0x5d0a26(0xe1)];[_0x5d0a26(0xec)];[_0x5d0a26(0xe6)];constructor(_0xd447a2,_0xf37d19,_0x4f1f6d){const _0x739867=_0x5d0a26;if(_0x4af153(_0xf37d19)&&_0x4f1f6d>_0xf37d19[_0x739867(0xef)][_0x739867(0xe7)])throw new _0x5f3e25(_0x739867(0xf9),null,{'index':_0x4f1f6d,'parent':_0xf37d19});if(_0x190a13(_0xf37d19)&&_0x4f1f6d>_0x5a8245(_0xf37d19)[_0x739867(0xe7)])throw new _0x5f3e25(_0x739867(0xf9),null,{'index':_0x4f1f6d,'parent':_0xf37d19});if(_0x4f1f6d<0x0)throw new _0x5f3e25(_0x739867(0xf9),null,{'index':_0x4f1f6d,'parent':_0xf37d19});this[_0x739867(0xe1)]=_0xf37d19,this[_0x739867(0xec)]=_0x4f1f6d,this[_0x739867(0xe6)]=_0xd447a2;}get[_0x5d0a26(0xdd)](){const _0x20e4a=_0x5d0a26;return[..._0x3eaed4(this[_0x20e4a(0xe1)]),this[_0x20e4a(0xec)]];}[_0x5d0a26(0xe8)](_0x9a3a4c){const _0x5b6869=_0x5d0a26;return this[_0x5b6869(0xe6)]==_0x9a3a4c[_0x5b6869(0xe6)]&&_0x5b6869(0xf4)===_0x34e441(this[_0x5b6869(0xdd)],_0x9a3a4c[_0x5b6869(0xdd)]);}get[_0x5d0a26(0xe0)](){const _0xbb59c7=_0x5d0a26;if(_0x190a13(this[_0xbb59c7(0xe1)])){const _0x266cb1=_0x5a8245(this[_0xbb59c7(0xe1)])[this[_0xbb59c7(0xec)]];if(_0x266cb1)return _0x266cb1;{const _0x5f9085=DocumentPosition[_0xbb59c7(0xe2)](this[_0xbb59c7(0xe6)],this[_0xbb59c7(0xe1)]);if(_0x5f9085)return _0x5f9085[_0xbb59c7(0xe0)];}}return null;}get[_0x5d0a26(0xf7)](){const _0x1fa43d=_0x5d0a26;if(_0x190a13(this[_0x1fa43d(0xe1)])){const _0x803a8=_0x5a8245(this[_0x1fa43d(0xe1)])[this[_0x1fa43d(0xec)]-0x1];if(_0x803a8)return _0x803a8;{const _0x3e7309=DocumentPosition[_0x1fa43d(0xde)](this[_0x1fa43d(0xe6)],this[_0x1fa43d(0xe1)]);if(_0x3e7309)return _0x3e7309[_0x1fa43d(0xf7)];}}return null;}[_0x5d0a26(0xed)](_0xbca803=_0x5d0a26(0xfe)){const _0x3b596b=_0x5d0a26;if(!_0x4af153(this[_0x3b596b(0xe1)]))return this;const _0x3bcb4a=this[_0x3b596b(0xdd)][this[_0x3b596b(0xdd)][_0x3b596b(0xe7)]-0x1],_0x4a82f2=_0xe1f682(this[_0x3b596b(0xe1)])[_0x3b596b(0xf3)](/(?:\s*\S+\s*)/g);let _0x29e2c0=0x0,_0x5a4258=_0x3bcb4a;for(const _0x491d04 of _0x4a82f2){if(_0x29e2c0+_0x491d04[_0x3b596b(0xe7)]===_0x3bcb4a)return this;if(_0x29e2c0+_0x491d04[_0x3b596b(0xe7)]>_0x3bcb4a){_0x5a4258=_0x3b596b(0xfe)===_0xbca803?_0x29e2c0:_0x29e2c0+_0x491d04[_0x3b596b(0xe7)];break;}_0x29e2c0+=_0x491d04[_0x3b596b(0xe7)];}return DocumentPosition[_0x3b596b(0xf5)](this[_0x3b596b(0xe6)],this[_0x3b596b(0xe1)],_0x5a4258);}static[_0x5d0a26(0xe2)](_0x504796,_0x5887b6){const _0x41813a=_0x5d0a26;if(_0x34982c(_0x5887b6))return null;const _0x5e3d4c=_0xdc70c8(_0x5887b6);return DocumentPosition[_0x41813a(0xf5)](_0x504796,_0x5e3d4c,_0x5a8245(_0x5e3d4c)[_0x41813a(0xdf)](_0x5887b6)+0x1);}static[_0x5d0a26(0xde)](_0x1abf3a,_0x1dd494){const _0x2f1984=_0x5d0a26;if(_0x34982c(_0x1dd494))return null;const _0x5c9389=_0xdc70c8(_0x1dd494);return DocumentPosition[_0x2f1984(0xf5)](_0x1abf3a,_0x5c9389,_0x5a8245(_0x5c9389)[_0x2f1984(0xdf)](_0x1dd494));}static[_0x5d0a26(0xf5)](_0x10e1c4,_0x5ad420,_0x3090c8=_0x5d0a26(0xfe)){const _0x2b62ec=_0x5d0a26;return new DocumentPosition(_0x10e1c4,_0x5ad420,_0x2b62ec(0xfe)===_0x3090c8?0x0:_0x2b62ec(0xfb)===_0x3090c8?_0x4af153(_0x5ad420)?_0x5ad420[_0x2b62ec(0xef)][_0x2b62ec(0xe7)]:_0x5a8245(_0x5ad420)[_0x2b62ec(0xe7)]:_0x3090c8);}static[_0x5d0a26(0xfa)](_0x1caae6,_0x171539){const _0x2cbdb2=_0x5d0a26;if(!_0x171539[_0x2cbdb2(0xe7)])throw new _0x5f3e25(_0x2cbdb2(0xeb),null,{'path':_0x171539});const _0x1190c7=_0x171539[_0x2cbdb2(0xe9)](0x0,-0x1)[_0x2cbdb2(0xe4)]((_0x4bd306,_0x53c915)=>_0x4af153(_0x4bd306)?_0x4bd306:_0x5a8245(_0x4bd306)[_0x53c915],_0x1caae6);return DocumentPosition[_0x2cbdb2(0xf5)](_0x1caae6,_0x1190c7,_0x171539[_0x171539[_0x2cbdb2(0xe7)]-0x1]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16e46c=_0xa644;(function(_0x4003a9,_0x6d508c){const _0xdc01b5=_0xa644,_0x5795c6=_0x4003a9();while(!![]){try{const _0x9fa3c2=-parseInt(_0xdc01b5(0x138))/0x1+parseInt(_0xdc01b5(0x141))/0x2*(parseInt(_0xdc01b5(0x131))/0x3)+parseInt(_0xdc01b5(0x14c))/0x4*(-parseInt(_0xdc01b5(0x12d))/0x5)+-parseInt(_0xdc01b5(0x12f))/0x6*(-parseInt(_0xdc01b5(0x13f))/0x7)+-parseInt(_0xdc01b5(0x14d))/0x8*(parseInt(_0xdc01b5(0x130))/0x9)+parseInt(_0xdc01b5(0x134))/0xa+-parseInt(_0xdc01b5(0x13d))/0xb*(-parseInt(_0xdc01b5(0x140))/0xc);if(_0x9fa3c2===_0x6d508c)break;else _0x5795c6['push'](_0x5795c6['shift']());}catch(_0x4f404a){_0x5795c6['push'](_0x5795c6['shift']());}}}(_0x2fb2,0x247b9));import{DocumentPosition as _0xdc308d}from'./documentposition.js';function _0x2fb2(){const _0x17aed4=['3941WBvsMC','140052oNFSOI','408ktjdDj','createAfter','length','includes','reverse','getContent','slice','lastChild','forEach','firstChild','isEqual','12zDEkak','112BfrqYm','path','data','310715fZWurm','push','282mKlmHV','78102YNtUzY','1545chShoi','start','createFromPath','2522960BDTuuM','createAt','getNudgedToWordBoundary','createBefore','159883zFUrMO','previousNode','document','parent','end','220ORnidd','nextNode'];_0x2fb2=function(){return _0x17aed4;};return _0x2fb2();}function _0xa644(_0x980bd,_0x2e6b92){const _0x2fb214=_0x2fb2();return _0xa644=function(_0xa644a3,_0x3705f6){_0xa644a3=_0xa644a3-0x12b;let _0x3aadbb=_0x2fb214[_0xa644a3];return _0x3aadbb;},_0xa644(_0x980bd,_0x2e6b92);}import{clone as _0x4bacb5,getParents as _0x31ebe4,Document as _0x2cdfc1,Text as _0x21d907,isTag as _0x2f865f,isText as _0x4ffaca,replaceElement as _0x5d72a4,removeElement as _0x3b7815}from'./htmlparser.js';export class DocumentRange{[_0x16e46c(0x132)];[_0x16e46c(0x13c)];constructor(_0x49cf92,_0xf6a0f6){const _0x244073=_0x16e46c;this[_0x244073(0x132)]=_0x49cf92,this[_0x244073(0x13c)]=_0xf6a0f6;}[_0x16e46c(0x14b)](_0x50c740){const _0x426262=_0x16e46c;return this==_0x50c740||this[_0x426262(0x132)][_0x426262(0x14b)](_0x50c740[_0x426262(0x132)])&&this[_0x426262(0x13c)][_0x426262(0x14b)](_0x50c740[_0x426262(0x13c)]);}[_0x16e46c(0x136)](){const _0x21eb54=_0x16e46c;return new DocumentRange(this[_0x21eb54(0x132)][_0x21eb54(0x136)](_0x21eb54(0x132)),this[_0x21eb54(0x13c)][_0x21eb54(0x136)](_0x21eb54(0x13c)));}[_0x16e46c(0x146)](){const _0x460b64=_0x16e46c,_0x574e90=_0x4bacb5(this[_0x460b64(0x132)][_0x460b64(0x13a)]),_0x1215d6=_0xdc308d[_0x460b64(0x133)](_0x574e90,this[_0x460b64(0x132)][_0x460b64(0x12b)]),_0x19b8b6=_0xdc308d[_0x460b64(0x133)](_0x574e90,this[_0x460b64(0x13c)][_0x460b64(0x12b)]);let _0x2be38b,_0x5e0bc6;if(_0x4ffaca(_0x1215d6[_0x460b64(0x13b)])){const _0x4a9a96=_0x1215d6[_0x460b64(0x12b)][_0x1215d6[_0x460b64(0x12b)][_0x460b64(0x143)]-0x1],_0x3cfc1f=new _0x21d907(_0x1215d6[_0x460b64(0x13b)][_0x460b64(0x12c)][_0x460b64(0x147)](_0x4a9a96));_0x5d72a4(_0x1215d6[_0x460b64(0x13b)],_0x3cfc1f),_0x2be38b=_0x3cfc1f;}else _0x2be38b=_0x1215d6[_0x460b64(0x13e)];if(_0x4ffaca(_0x19b8b6[_0x460b64(0x13b)])){const _0x4f27dd=_0x19b8b6[_0x460b64(0x12b)][_0x19b8b6[_0x460b64(0x12b)][_0x460b64(0x143)]-0x1],_0x1e2beb=new _0x21d907(_0x19b8b6[_0x460b64(0x13b)][_0x460b64(0x12c)][_0x460b64(0x147)](0x0,_0x4f27dd));_0x5d72a4(_0x19b8b6[_0x460b64(0x13b)],_0x1e2beb),_0x5e0bc6=_0x1e2beb;}else _0x5e0bc6=_0x19b8b6[_0x460b64(0x139)];if(!(_0x2be38b&&_0x5e0bc6&&_0x574e90[_0x460b64(0x14a)]&&_0x574e90[_0x460b64(0x148)]))return new _0x2cdfc1([]);const _0x17d9c6=_0x31ebe4(_0x2be38b),_0x5ae9a3=_0x31ebe4(_0x5e0bc6),_0x199814=[],_0x1da84b=[];let _0x2cdd37=_0x574e90[_0x460b64(0x14a)];for(;_0x2cdd37&&_0x2cdd37!==_0x2be38b;){let _0x35991b;_0x17d9c6[_0x460b64(0x144)](_0x2cdd37)||_0x199814[_0x460b64(0x12e)](_0x2cdd37),_0x35991b=_0x2f865f(_0x2cdd37)?_0xdc308d[_0x460b64(0x135)](_0x574e90,_0x2cdd37,_0x460b64(0x132)):_0xdc308d[_0x460b64(0x142)](_0x574e90,_0x2cdd37),_0x2cdd37=_0x35991b?_0x35991b[_0x460b64(0x13e)]:null;}for(_0x2cdd37=_0x574e90[_0x460b64(0x148)];_0x2cdd37&&_0x2cdd37!==_0x5e0bc6;){let _0x28e0bc;_0x5ae9a3[_0x460b64(0x144)](_0x2cdd37)||_0x1da84b[_0x460b64(0x12e)](_0x2cdd37),_0x28e0bc=_0x2f865f(_0x2cdd37)?_0xdc308d[_0x460b64(0x135)](_0x574e90,_0x2cdd37,_0x460b64(0x13c)):_0xdc308d[_0x460b64(0x137)](_0x574e90,_0x2cdd37),_0x2cdd37=_0x28e0bc?_0x28e0bc[_0x460b64(0x139)]:null;}return _0x199814[_0x460b64(0x149)](_0x469dbe=>{_0x3b7815(_0x469dbe);}),_0x1da84b[_0x460b64(0x145)]()[_0x460b64(0x149)](_0x5e4407=>{_0x3b7815(_0x5e4407);}),_0x574e90;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x27e05d,_0x423d51){var _0xda3c91=_0x408f,_0x479f48=_0x27e05d();while(!![]){try{var _0x59c27b=parseInt(_0xda3c91(0x1a6))/0x1+parseInt(_0xda3c91(0x1a0))/0x2+parseInt(_0xda3c91(0x1a3))/0x3*(parseInt(_0xda3c91(0x1a8))/0x4)+-parseInt(_0xda3c91(0x1aa))/0x5+parseInt(_0xda3c91(0x1a2))/0x6+-parseInt(_0xda3c91(0x1a7))/0x7+parseInt(_0xda3c91(0x1a1))/0x8;if(_0x59c27b===_0x423d51)break;else _0x479f48['push'](_0x479f48['shift']());}catch(_0x2edf31){_0x479f48['push'](_0x479f48['shift']());}}}(_0x583a,0xc82ce));import{CKEditorError as _0x2cad53}from'ckeditor5/src/utils.js';function _0x408f(_0x1bb019,_0x585e29){var _0x583acf=_0x583a();return _0x408f=function(_0x408ffc,_0x1700b8){_0x408ffc=_0x408ffc-0x19e;var _0x2aac88=_0x583acf[_0x408ffc];return _0x2aac88;},_0x408f(_0x1bb019,_0x585e29);}import{Editor as _0x197608}from'ckeditor5/src/core.js';function _0x583a(){var _0x141207=['969120lahsXM','6186esJwGp','warn','length','252126nkKoCW','4395986qJXnfR','564cpeffI','editors','3970310rrjaFq','ai-get-editor-from-context-no-editor','get','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.','897622XVMpEp','8710232gevQnx'];_0x583a=function(){return _0x141207;};return _0x583a();}export function getEditorFromContext(_0x2e07ec){var _0x2e5c98=_0x408f;if(_0x2e07ec instanceof _0x197608)return _0x2e07ec;if(_0x2e07ec?.[_0x2e5c98(0x1a9)]&&_0x2e07ec[_0x2e5c98(0x1a9)][_0x2e5c98(0x19e)](0x0))return _0x2e07ec[_0x2e5c98(0x1a9)][_0x2e5c98(0x1a5)]>0x1&&console[_0x2e5c98(0x1a4)](_0x2e5c98(0x19f)),_0x2e07ec[_0x2e5c98(0x1a9)][_0x2e5c98(0x19e)](0x0);throw new _0x2cad53(_0x2e5c98(0x1ab));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0xf48a(){const _0x7465af=['anchorId','node','length','oldRange','previousSibling','version','model','data-id','type','content','getRange','name','8YEOTkt','filter','get','8691725NPwWNb','615472xCPzpd','operationsA','863997zNObuG','removed','163448jLDUjO','cloneNode','886660WGocOx','map','1596150JuHLFz','getDiff','marker','805684AIsYGW','history','document','documentContextContent','new','getDocumentContext','shift','getOperations','markers'];_0xf48a=function(){return _0x7465af;};return _0xf48a();}(function(_0x574604,_0x5cac87){const _0x55bd5a=_0x137b,_0x2d49aa=_0x574604();while(!![]){try{const _0x1c8874=parseInt(_0x55bd5a(0x189))/0x1+parseInt(_0x55bd5a(0x185))/0x2+parseInt(_0x55bd5a(0x187))/0x3+parseInt(_0x55bd5a(0x16c))/0x4+parseInt(_0x55bd5a(0x18b))/0x5+parseInt(_0x55bd5a(0x169))/0x6+-parseInt(_0x55bd5a(0x184))/0x7*(parseInt(_0x55bd5a(0x181))/0x8);if(_0x1c8874===_0x5cac87)break;else _0x2d49aa['push'](_0x2d49aa['shift']());}catch(_0x198f74){_0x2d49aa['push'](_0x2d49aa['shift']());}}}(_0xf48a,0x279ee));function _0x137b(_0x20eac9,_0x263220){const _0xf48a32=_0xf48a();return _0x137b=function(_0x137b34,_0x2fb1cf){_0x137b34=_0x137b34-0x168;let _0x5ce701=_0xf48a32[_0x137b34];return _0x5ce701;},_0x137b(_0x20eac9,_0x263220);}import{transformOperationSets as _0x38017d}from'ckeditor5/src/engine.js';import{append as _0xcb29e3,findByAttribute as _0x5d30eb,prependChild as _0x58b436,removeElement as _0x20aa4d,serialize as _0x57ba1c}from'./htmlparser.js';export function getOperationsFromReply({editor:_0x5aca14,interaction:_0x5d0458,reply:_0x63ae3d,groups:_0x471011,transform:_0x39c433,documentCompare:_0x30b28e,documentCompareOptions:_0x12f67e}){const _0x549a5e=_0x137b,_0x2bd3d4=_0x5d0458[_0x549a5e(0x171)]();if(!_0x2bd3d4)return[];const _0x1a8762=_0x2bd3d4[_0x549a5e(0x17e)],_0x137499=_0x2bd3d4[_0x549a5e(0x17a)],_0x107ba9=_0x63ae3d[_0x549a5e(0x16f)][_0x549a5e(0x18a)](!0x0);for(const {changes:_0x3143e1}of _0x471011){const _0x34dcf2=_0x3143e1[_0x549a5e(0x182)](_0x4b3d66=>_0x549a5e(0x170)!=_0x4b3d66[_0x549a5e(0x17d)])[_0x549a5e(0x168)](_0x5dbd63=>_0x5d30eb(_0x549a5e(0x17c),_0x5dbd63['id'],_0x107ba9)),_0x4ae079=_0x3143e1[_0x549a5e(0x182)](_0x20760c=>_0x549a5e(0x188)!=_0x20760c[_0x549a5e(0x17d)])[_0x549a5e(0x168)](_0x51b250=>_0x51b250[_0x549a5e(0x176)][_0x549a5e(0x18a)](!0x0));let _0x319bb4=null;if(_0x34dcf2[_0x549a5e(0x177)]){_0x319bb4=_0x34dcf2[0x0][_0x549a5e(0x179)];for(let _0x4b5fad=0x0;_0x4b5fad<_0x34dcf2[_0x549a5e(0x177)];_0x4b5fad++)_0x20aa4d(_0x34dcf2[_0x4b5fad]);}if(_0x4ae079[_0x549a5e(0x177)]){_0x319bb4||(_0x3143e1[0x0][_0x549a5e(0x175)]?_0x319bb4=_0x5d30eb(_0x549a5e(0x17c),_0x3143e1[0x0][_0x549a5e(0x175)],_0x107ba9):(_0x319bb4=_0x4ae079[_0x549a5e(0x172)](),_0x58b436(_0x107ba9,_0x319bb4)));for(let _0x3efc15=0x0;_0x3efc15<_0x4ae079[_0x549a5e(0x177)];_0x3efc15++)_0xcb29e3(_0x319bb4,_0x4ae079[_0x3efc15]),_0x319bb4=_0x4ae079[_0x3efc15];}}const _0x1d032e=_0x57ba1c(_0x107ba9),_0x246d69=_0x30b28e[_0x549a5e(0x16a)](_0x1a8762,_0x1d032e,_0x12f67e)[_0x549a5e(0x173)]();if(_0x39c433){const _0x3ef03a=_0x5aca14[_0x549a5e(0x17b)][_0x549a5e(0x16e)][_0x549a5e(0x16d)][_0x549a5e(0x173)](_0x137499),_0x452849={'document':_0x5aca14[_0x549a5e(0x17b)][_0x549a5e(0x16e)],'useRelations':!0x1,'padWithNoOps':!0x1};return _0x38017d(_0x246d69,_0x3ef03a,_0x452849)[_0x549a5e(0x186)];}return _0x246d69;}export function fixMarkerOperationOldRange(_0x284ca1,_0x458fdb){const _0x2d12b8=_0x137b;if(_0x2d12b8(0x16b)!=_0x458fdb[_0x2d12b8(0x17d)])return;const _0x1d2018=_0x284ca1[_0x2d12b8(0x17b)][_0x2d12b8(0x174)][_0x2d12b8(0x183)](_0x458fdb[_0x2d12b8(0x180)]);_0x1d2018&&(_0x458fdb[_0x2d12b8(0x178)]=_0x1d2018[_0x2d12b8(0x17f)]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(_0x4e0d17,_0x155e6d){const _0x20a630=_0x26a2,_0x2eacbd=_0x4e0d17();while(!![]){try{const _0x5177e9=parseInt(_0x20a630(0x147))/0x1*(parseInt(_0x20a630(0x12e))/0x2)+-parseInt(_0x20a630(0xfb))/0x3+-parseInt(_0x20a630(0xf5))/0x4*(parseInt(_0x20a630(0xe0))/0x5)+parseInt(_0x20a630(0xe5))/0x6*(-parseInt(_0x20a630(0xdd))/0x7)+-parseInt(_0x20a630(0x126))/0x8*(parseInt(_0x20a630(0x12c))/0x9)+parseInt(_0x20a630(0xeb))/0xa*(-parseInt(_0x20a630(0xf8))/0xb)+-parseInt(_0x20a630(0x133))/0xc*(-parseInt(_0x20a630(0x10e))/0xd);if(_0x5177e9===_0x155e6d)break;else _0x2eacbd['push'](_0x2eacbd['shift']());}catch(_0x94a162){_0x2eacbd['push'](_0x2eacbd['shift']());}}}(_0x4de8,0x393a1));import{findOne as _0x5d737c,getAttribute as _0xc6b66a,Document as _0x42d2b9,serialize as _0x2f2c12,parse as _0x1bc2dc}from'./htmlparser.js';import{fixElementSuggestionRange as _0x48b867}from'ckeditor5-collaboration/src/collaboration-core.js';import{ModelRange as _0x18e2c6,_DetachOperation as _0x48a01c,_removeFromModelNodeList as _0x56a793,_insertIntoModelNodeList as _0x48f1e8}from'ckeditor5/src/engine.js';import{uid as _0x39ca44}from'ckeditor5/src/utils.js';export function getSuggestionPartsFromReply({editor:_0x4df82f,changeGroups:_0x10cdc8,documentContextContent:_0x56480a,showDiff:_0x45f4f2,trimUnchanged:_0x30af1f=!0x0}){const _0x361aaf=_0x26a2;return _0x10cdc8[_0x361aaf(0x118)](_0x28ded7=>{const _0x5c089b=_0x361aaf,_0x2f207c=new _0x42d2b9([]),_0x321dbd=new _0x42d2b9([]);for(const _0x2c8a1d of _0x28ded7[_0x5c089b(0x127)])if(_0x45f4f2&&_0x5c089b(0xf2)==_0x2c8a1d[_0x5c089b(0x144)]||_0x321dbd[_0x5c089b(0xfc)][_0x5c089b(0x135)](_0x2c8a1d[_0x5c089b(0x148)][_0x5c089b(0x123)](!0x0)),_0x5c089b(0xf4)!=_0x2c8a1d[_0x5c089b(0x144)]&&(_0x45f4f2||_0x5c089b(0xf2)!=_0x2c8a1d[_0x5c089b(0x144)])){const _0x3001e9=_0x5d737c(_0x4aece6=>_0xc6b66a(_0x4aece6,_0x5c089b(0x101))==_0x2c8a1d['id'],_0x56480a,!0x0);_0x3001e9&&_0x2f207c[_0x5c089b(0xfc)][_0x5c089b(0x135)](_0x3001e9[_0x5c089b(0x123)](!0x0));}const {content:_0xb02147,hasChanges:_0x434f8a}=function(_0x5790d2,_0x3cf768,_0x50e500,_0x164d27,_0x546681=!0x0){const _0x3c6bba=_0x5c089b,_0x19a2c1=_0x5790d2[_0x3c6bba(0xf7)][_0x3c6bba(0xe2)](_0x3c6bba(0x130)),_0x49f39d=_0x2f2c12(_0x3cf768),_0x492627=_0x2f2c12(_0x50e500),_0x426369=_0x5790d2[_0x3c6bba(0xda)][_0x3c6bba(0xd6)](_0x49f39d,_0x3c6bba(0x10c)),_0x597bc2=_0x5790d2[_0x3c6bba(0x138)][_0x3c6bba(0x145)](_0x426369,0x0),_0x491291=_0x19a2c1[_0x3c6bba(0xe4)](_0x49f39d,_0x492627,{'anchor':_0x597bc2,'markDeletions':_0x164d27,'context':_0x3c6bba(0x10c)}),_0x1d816c=_0x491291[_0x3c6bba(0x114)]();if(0x0==_0x1d816c[_0x3c6bba(0x13a)])return{'content':_0x3cf768[_0x3c6bba(0x123)](!0x0),'hasChanges':!0x1};_0x164d27?function(_0x3d0beb,_0x57597e,_0x4403d6){const _0x5f5419=_0x3c6bba;if(0x0==_0x3d0beb[_0x5f5419(0x13a)])return;const _0x138a5d=_0x4403d6[_0x5f5419(0xf7)][_0x5f5419(0xe2)](_0x5f5419(0x130)),_0xd6e0f=_0x4403d6[_0x5f5419(0xf7)][_0x5f5419(0xe2)](_0x5f5419(0xe9));_0x4403d6[_0x5f5419(0x138)][_0x5f5419(0xea)](_0x4494f2=>{const _0x4f17b7=_0x5f5419,_0x1b9562=new Set();for(let _0x52749a=0x0;_0x52749a<_0x3d0beb[_0x4f17b7(0x13a)];_0x52749a++){const _0x1e4ead=_0x3d0beb[_0x52749a];if(_0x1e4ead[_0x4f17b7(0x11c)]=null,_0x1e4ead[_0x4f17b7(0x137)]=!0x1,_0x138a5d[_0x4f17b7(0x149)](_0x1e4ead)){const _0x43307b=_0x48b867(_0x1e4ead[_0x4f17b7(0x122)],_0x4403d6[_0x4f17b7(0x138)]),_0x5d8bed=_0x4f17b7(0xd9)+_0x39ca44()+_0x4f17b7(0x10d);_0x57597e[_0x4f17b7(0x14a)][_0x4f17b7(0x121)](_0x5d8bed,_0x43307b);}else switch(_0x1e4ead[_0x4f17b7(0x144)]){case _0x4f17b7(0x143):{if(_0x1e4ead[_0x4f17b7(0x132)]==_0x1e4ead[_0x4f17b7(0x12d)])break;_0x4494f2[_0x4f17b7(0x11a)][_0x4f17b7(0xec)](_0x1e4ead),_0x4403d6[_0x4f17b7(0x138)][_0x4f17b7(0x102)](_0x1e4ead);const _0x58f7dd=_0x4f17b7(0xee),_0x4a81da=_0x1e4ead[_0x4f17b7(0xef)],_0x4abd1d=_0x4403d6[_0x4f17b7(0x138)][_0x4f17b7(0x12f)](_0x4a81da,_0x4403d6[_0x4f17b7(0x138)][_0x4f17b7(0x145)](_0x4a81da[_0x4f17b7(0x12b)],_0x4f17b7(0xfa))),_0x59c34d=_0x4f17b7(0x110)+_0x58f7dd+':'+_0x39ca44()+_0x4f17b7(0x10d);_0x57597e[_0x4f17b7(0x14a)][_0x4f17b7(0x121)](_0x59c34d,_0x4abd1d);break;}case _0x4f17b7(0xdc):case _0x4f17b7(0x13b):case _0x4f17b7(0x136):{if(_0x1e4ead[_0x4f17b7(0xd7)]==_0x1e4ead[_0x4f17b7(0xe7)])break;_0x4494f2[_0x4f17b7(0x11a)][_0x4f17b7(0xec)](_0x1e4ead),_0x4403d6[_0x4f17b7(0x138)][_0x4f17b7(0x102)](_0x1e4ead);const _0x53a52d=_0x1e4ead[_0x4f17b7(0x13e)];if(!_0xd6e0f[_0x4f17b7(0x124)](_0x53a52d))break;const _0x26633d=_0x48b867(_0x1e4ead[_0x4f17b7(0x14c)],_0x4403d6[_0x4f17b7(0x138)]),_0x3bd5dd=_0x4f17b7(0x110)+_0x53a52d+':'+_0x39ca44()+_0x4f17b7(0x10d);_0x57597e[_0x4f17b7(0x14a)][_0x4f17b7(0x121)](_0x3bd5dd,_0x26633d);break;}case _0x4f17b7(0x125):{_0x4494f2[_0x4f17b7(0x11a)][_0x4f17b7(0xec)](_0x1e4ead),_0x4403d6[_0x4f17b7(0x138)][_0x4f17b7(0x102)](_0x1e4ead);if(_0x3d0beb[_0x52749a+0x1]&&_0x4f17b7(0x105)==_0x3d0beb[_0x52749a+0x1][_0x4f17b7(0x144)]){ro(_0x57597e,_0x1e4ead);break;}const _0x975319=_0x1e4ead[_0x4f17b7(0xef)],_0x5968f5=_0x1e4ead[_0x4f17b7(0xde)],_0x39b19e=_0x48b867(_0x4403d6[_0x4f17b7(0x138)][_0x4f17b7(0x12f)](_0x975319,_0x975319[_0x4f17b7(0xfd)](_0x5968f5)),_0x4403d6[_0x4f17b7(0x138)]),_0x390958=_0x4f17b7(0xf3)+_0x39ca44()+_0x4f17b7(0x10d);_0x57597e[_0x4f17b7(0x14a)][_0x4f17b7(0x121)](_0x390958,_0x39b19e);break;}case _0x4f17b7(0xe3):{_0x4494f2[_0x4f17b7(0x11a)][_0x4f17b7(0xec)](_0x1e4ead),_0x4403d6[_0x4f17b7(0x138)][_0x4f17b7(0x102)](_0x1e4ead);const _0x20b4d5=_0x1e4ead[_0x4f17b7(0x139)],_0x34c13c=_0x1e4ead[_0x4f17b7(0x13c)],_0x17ce43=_0x4403d6[_0x4f17b7(0x138)][_0x4f17b7(0x12f)](_0x20b4d5,_0x34c13c),_0x1be246=_0x4f17b7(0xf3)+_0x39ca44()+_0x4f17b7(0x10d);_0x57597e[_0x4f17b7(0x14a)][_0x4f17b7(0x121)](_0x1be246,_0x17ce43);break;}case _0x4f17b7(0x105):{_0x4494f2[_0x4f17b7(0x11a)][_0x4f17b7(0xec)](_0x1e4ead),_0x4403d6[_0x4f17b7(0x138)][_0x4f17b7(0x102)](_0x1e4ead),_0x3d0beb[_0x52749a-0x1]&&_0x4f17b7(0x125)==_0x3d0beb[_0x52749a-0x1][_0x4f17b7(0x144)]&&ro(_0x57597e,_0x1e4ead);const _0x2249fd=_0x1e4ead[_0x4f17b7(0x14b)](),_0x205239=_0x1e4ead[_0x4f17b7(0xde)];for(let _0x2eaff7=0x0;_0x2eaff7<_0x205239;_0x2eaff7++){const _0x450c97=_0x2249fd[_0x4f17b7(0xfd)](_0x2eaff7)[_0x4f17b7(0x12b)];_0x1b9562[_0x4f17b7(0x131)](_0x450c97);}break;}case _0x4f17b7(0x104):{const _0x5245da=_0x1e4ead[_0x4f17b7(0x103)],_0x420b32=_0x1e4ead[_0x4f17b7(0xde)],_0x3a270a=new _0x48a01c(_0x5245da,_0x420b32);_0x4494f2[_0x4f17b7(0x11a)][_0x4f17b7(0xec)](_0x3a270a),_0x4403d6[_0x4f17b7(0x138)][_0x4f17b7(0x102)](_0x3a270a);break;}}}for(const _0x52e5bd of _0x1b9562){const _0x5a5fd5=_0x4403d6[_0x4f17b7(0x138)][_0x4f17b7(0x113)](_0x52e5bd),_0x1b661e=_0x4f17b7(0xdf)+_0x39ca44()+_0x4f17b7(0x10d);_0x57597e[_0x4f17b7(0x14a)][_0x4f17b7(0x121)](_0x1b661e,_0x48b867(_0x5a5fd5,_0x4403d6[_0x4f17b7(0x138)]));}});}(_0x1d816c,_0x426369,_0x5790d2):_0x5790d2[_0x3c6bba(0x138)][_0x3c6bba(0xea)](_0x47b8bb=>{const _0x4fe113=_0x3c6bba;for(const _0x29e311 of _0x1d816c)if(_0x4fe113(0x104)==_0x29e311[_0x4fe113(0x144)]){const _0x2e7e7c=_0x29e311[_0x4fe113(0x103)],_0x5782a3=_0x29e311[_0x4fe113(0xde)],_0x21f831=new _0x48a01c(_0x2e7e7c,_0x5782a3);_0x47b8bb[_0x4fe113(0x11a)][_0x4fe113(0xec)](_0x21f831),_0x5790d2[_0x4fe113(0x138)][_0x4fe113(0x102)](_0x21f831);}else{if(_0x4fe113(0x112)==_0x29e311[_0x4fe113(0x144)]){const _0x59cbd9=_0x29e311[_0x4fe113(0x10f)],_0x481ce5=_0x29e311[_0x4fe113(0x122)];_0x426369[_0x4fe113(0x14a)][_0x4fe113(0x121)](_0x59cbd9,_0x481ce5);}else _0x29e311[_0x4fe113(0x11c)]=null,_0x29e311[_0x4fe113(0x137)]=!0x1,_0x47b8bb[_0x4fe113(0x11a)][_0x4fe113(0xec)](_0x29e311),_0x5790d2[_0x4fe113(0x138)][_0x4fe113(0x102)](_0x29e311);}});if(_0x546681){const _0x2eb5e4=getMinimalSelection(_0x5790d2,_0x1d816c,_0x426369);expandSelectionWithContext(_0x5790d2[_0x3c6bba(0x138)],_0x2eb5e4),function(_0x4706e0,_0x326234){const _0x4b1328=_0x3c6bba,_0x3986d9=_0x326234[_0x4b1328(0xdb)]()[_0x4b1328(0xfe)];let _0xe931ad=_0x326234[_0x4b1328(0xdb)]()[_0x4b1328(0xfa)];const _0x4f53cc=_0x3986d9[_0x4b1328(0xf0)];(_0xe931ad[_0x4b1328(0x106)]||_0xe931ad[_0x4b1328(0x12b)]&&_0xe931ad[_0x4b1328(0x12b)]['is'](_0x4b1328(0xff)))&&(_0x48f1e8(_0xe931ad,_0x4b1328(0x129)),_0xe931ad=_0xe931ad[_0x4b1328(0xfd)](0x3)),(_0x3986d9[_0x4b1328(0x106)]||_0x3986d9[_0x4b1328(0x116)]&&_0x3986d9[_0x4b1328(0x116)]['is'](_0x4b1328(0xff)))&&(_0x48f1e8(_0x3986d9,_0x4b1328(0x129)),function(_0x21c306,_0x130cdf,_0x3e57e5){const _0x3903f9=_0x4b1328;for(let [_0x2020d4,_0x51419a]of _0x21c306[_0x3903f9(0x14a)]){const _0x37a4b6=_0x51419a[_0x3903f9(0x117)](_0x130cdf,_0x3e57e5,!0x1);_0x51419a=_0x37a4b6[0x0],_0x21c306[_0x3903f9(0x14a)][_0x3903f9(0x121)](_0x2020d4,_0x51419a);}}(_0x4f53cc,_0x3986d9,0x3),_0x3986d9[_0x4b1328(0xed)]==_0xe931ad[_0x4b1328(0xed)]&&(_0xe931ad=_0xe931ad[_0x4b1328(0xfd)](0x3)));const _0x139830=_0x4706e0[_0x4b1328(0x12f)](_0x4706e0[_0x4b1328(0x145)](_0x4f53cc,0x0),_0x3986d9),_0x47c114=_0x4706e0[_0x4b1328(0x12f)](_0xe931ad,_0x4706e0[_0x4b1328(0x145)](_0x4f53cc,_0x4b1328(0xfa))),_0x46bb9c=[..._0x139830[_0x4b1328(0x13d)](),..._0x47c114[_0x4b1328(0x13d)]()];_0x46bb9c[_0x4b1328(0xe8)]();for(const _0x5eece3 of _0x46bb9c)_0x56a793(_0x5eece3),_transformMarkersByDeletion(_0x4f53cc,_0x5eece3);}(_0x5790d2[_0x3c6bba(0x138)],_0x2eb5e4);}const _0x2da6dc=_0x5790d2[_0x3c6bba(0xda)][_0x3c6bba(0x111)](_0x426369,{'showSuggestionHighlights':!0x0});return{'content':_0x1bc2dc(_0x2da6dc),'hasChanges':!0x0};}(_0x4df82f,_0x2f207c,_0x321dbd,_0x45f4f2,_0x30af1f);return{'type':_0x28ded7[_0x5c089b(0x127)][0x0][_0x5c089b(0x144)],'index':_0x28ded7[_0x5c089b(0x13f)],'content':_0xb02147,'hasChanges':_0x434f8a};});}function ro(_0x4af082,_0x33828a){const _0x1eb19e=_0x26a2;for(const [_0xe10881,_0x2afacf]of _0x4af082[_0x1eb19e(0x14a)]){const _0x4ad58e=_0x18e2c6[_0x1eb19e(0xe6)](_0x2afacf[_0x1eb19e(0x12a)](_0x33828a));_0x4af082[_0x1eb19e(0x14a)][_0x1eb19e(0x121)](_0xe10881,_0x4ad58e);}}function _0x4de8(){const _0x534f33=['textNode','clone','path','targetPosition','_getTransformedByDeletion','createPositionFromPath','$root',':$aiSuggestion','13itgcpw','name','suggestion:attribute:','stringify','marker','createRangeOn','getOperations','createSelection','nodeBefore','_getTransformedByInsertion','map','focus','batch','word','baseVersion','POSITIVE_INFINITY','slice','modifySelection','offset','set','newRange','cloneNode','isRegisteredAttribute','insert','145840VJevao','changes','toNone','...','getTransformedByOperation','nodeAfter','81yhAZKw','newName','2558PHEMgk','createRange','DocumentCompare','add','oldName','11913504XMmTpa','stickiness','push','changeAttribute','isDocumentOperation','model','splitPosition','length','removeAttribute','moveTargetPosition','getMinimalFlatRanges','key','index','merge','isObject','backward','rename','type','createPositionAt','forward','147FrsZaO','node','isMarkedRemoveOperation','markers','getMovedRangeStart','range','schema','parse','oldValue','element','suggestion:deletion:','data','getFirstRange','addAttribute','7mPjFHS','howMany','suggestion:formatBlock:$fakeWrap:','145PmiJCy','isBefore','get','split','getDiff','1006686juyuLM','_createFromRanges','newValue','reverse','SuggestionsConversion','change','110hKKGKS','addOperation','parent','$elementName','position','root','setTo','removed','suggestion:insertion:','new','38292PrcQGp','delete','plugins','81565VHjbVe','isBlock','end','766113kHKJrK','children','getShiftedBy','start','$text','isAfter','data-id','applyOperation','sourcePosition','remove','move'];_0x4de8=function(){return _0x534f33;};return _0x4de8();}export function getMinimalSelection(_0xc27032,_0x1c17ec,_0x3319f4){const _0x55d28f=_0x26a2,_0x48f0ec=_0xc27032[_0x55d28f(0xf7)][_0x55d28f(0xe2)](_0x55d28f(0x130));let _0x3be0f8=_0xc27032[_0x55d28f(0x138)][_0x55d28f(0x145)](_0x3319f4,Number[_0x55d28f(0x11d)]),_0x3cd287=_0xc27032[_0x55d28f(0x138)][_0x55d28f(0x145)](_0x3319f4,0x0);for(const _0x5d1e67 of _0x1c17ec){let _0x1698fa,_0x4e328e;if(_0x48f0ec[_0x55d28f(0x149)](_0x5d1e67))_0x1698fa=_0x5d1e67[_0x55d28f(0x122)][_0x55d28f(0xfe)],_0x4e328e=_0x5d1e67[_0x55d28f(0x122)][_0x55d28f(0xfa)];else switch(_0x3be0f8=_0x3be0f8[_0x55d28f(0x12a)](_0x5d1e67),_0x3cd287=_0x3cd287[_0x55d28f(0x12a)](_0x5d1e67),_0x5d1e67[_0x55d28f(0x144)]){case _0x55d28f(0x143):_0x1698fa=_0x5d1e67[_0x55d28f(0xef)],_0x4e328e=_0x1698fa[_0x55d28f(0xfd)](0x1);break;case _0x55d28f(0xdc):case _0x55d28f(0x13b):case _0x55d28f(0x136):_0x1698fa=_0x5d1e67[_0x55d28f(0x14c)][_0x55d28f(0xfe)],_0x4e328e=_0x5d1e67[_0x55d28f(0x14c)][_0x55d28f(0xfa)];break;case _0x55d28f(0x125):_0x1698fa=_0x5d1e67[_0x55d28f(0xef)],_0x4e328e=_0x1698fa[_0x55d28f(0xfd)](_0x5d1e67[_0x55d28f(0xde)]);break;case _0x55d28f(0xe3):_0x1698fa=_0x5d1e67[_0x55d28f(0x139)],_0x4e328e=_0x5d1e67[_0x55d28f(0x13c)];break;case _0x55d28f(0x140):{const _0x5e93f6=_0x5d1e67[_0x55d28f(0x109)][_0x55d28f(0x108)][_0x55d28f(0x11e)](0x0,-0x1);_0x1698fa=_0xc27032[_0x55d28f(0x138)][_0x55d28f(0x10b)](_0x3319f4,_0x5e93f6),_0x4e328e=_0x1698fa[_0x55d28f(0xfd)](0x1);break;}case _0x55d28f(0x104):{const _0x373862=_0x5d1e67[_0x55d28f(0xde)],_0x1bf234=_0x5d1e67[_0x55d28f(0x103)][_0x55d28f(0x117)](_0x5d1e67[_0x55d28f(0x109)],_0x373862),_0x1970ce=_0x5d1e67[_0x55d28f(0x14b)]();_0x55d28f(0x104)==_0x5d1e67[_0x55d28f(0x144)]?(_0x1698fa=_0x1bf234,_0x4e328e=_0x1bf234):(_0x1698fa=_0x1970ce,_0x4e328e=_0x1970ce[_0x55d28f(0xfd)](_0x373862));break;}}_0x1698fa&&_0x1698fa[_0x55d28f(0xe1)](_0x3be0f8)&&(_0x3be0f8=_0x1698fa[_0x55d28f(0x107)](),_0x3be0f8[_0x55d28f(0x134)]=_0x55d28f(0x128)),_0x4e328e&&_0x4e328e[_0x55d28f(0x100)](_0x3cd287)&&(_0x3cd287=_0x4e328e[_0x55d28f(0x107)](),_0x3cd287[_0x55d28f(0x134)]=_0x55d28f(0x128));}return _0xc27032[_0x55d28f(0x138)][_0x55d28f(0x115)](_0xc27032[_0x55d28f(0x138)][_0x55d28f(0x12f)](_0x3be0f8,_0x3cd287));}export function expandSelectionWithContext(_0x63e1d1,_0x127e94){const _0x1c2e60=_0x26a2;so(_0x63e1d1,_0x127e94,_0x1c2e60(0x146));const _0x5710bd=_0x127e94[_0x1c2e60(0xdb)]();_0x127e94[_0x1c2e60(0xf1)]([]),_0x127e94[_0x1c2e60(0xf1)](_0x5710bd,{'backward':!0x0}),so(_0x63e1d1,_0x127e94,_0x1c2e60(0x142));}function so(_0x5f40db,_0x5c2aa3,_0x50f4a0){const _0x5b2749=_0x26a2;let _0x39d68d=0x14;for(;_0x39d68d;){_0x5f40db[_0x5b2749(0x11f)](_0x5c2aa3,{'unit':_0x5b2749(0x11b),'direction':_0x50f4a0}),_0x39d68d--;const _0x493f4c=_0x5c2aa3[_0x5b2749(0x119)][_0x5b2749(0x146)==_0x50f4a0?_0x5b2749(0x116):_0x5b2749(0x12b)];if(_0x493f4c&&_0x493f4c['is'](_0x5b2749(0xd8))&&_0x5f40db[_0x5b2749(0xd5)][_0x5b2749(0xf9)](_0x493f4c)&&_0x5f40db[_0x5b2749(0xd5)][_0x5b2749(0x141)](_0x493f4c))break;}}function _0x26a2(_0x3ea1cc,_0x4f0eed){const _0x4de8c9=_0x4de8();return _0x26a2=function(_0x26a28c,_0x2c4b96){_0x26a28c=_0x26a28c-0xd5;let _0x278c72=_0x4de8c9[_0x26a28c];return _0x278c72;},_0x26a2(_0x3ea1cc,_0x4f0eed);}export function _transformMarkersByDeletion(_0x130690,_0x26922b){const _0x2d8a2a=_0x26a2;for(const [_0x172c50,_0x28490e]of _0x130690[_0x2d8a2a(0x14a)]){const _0x29f63f=_0x28490e[_0x2d8a2a(0x10a)](_0x26922b[_0x2d8a2a(0xfe)],_0x26922b[_0x2d8a2a(0xfa)][_0x2d8a2a(0x120)]-_0x26922b[_0x2d8a2a(0xfe)][_0x2d8a2a(0x120)]);null!=_0x29f63f?_0x130690[_0x2d8a2a(0x14a)][_0x2d8a2a(0x121)](_0x172c50,_0x29f63f):_0x130690[_0x2d8a2a(0x14a)][_0x2d8a2a(0xf6)](_0x172c50);}}
|
|
23
|
+
(function(_0x26c051,_0x48dc59){const _0x39263e=_0x5bfe,_0x10054c=_0x26c051();while(!![]){try{const _0x195aee=-parseInt(_0x39263e(0x21b))/0x1+-parseInt(_0x39263e(0x1dc))/0x2*(-parseInt(_0x39263e(0x239))/0x3)+-parseInt(_0x39263e(0x229))/0x4+parseInt(_0x39263e(0x1e7))/0x5*(parseInt(_0x39263e(0x1ce))/0x6)+parseInt(_0x39263e(0x1e5))/0x7+parseInt(_0x39263e(0x1e2))/0x8+-parseInt(_0x39263e(0x211))/0x9*(-parseInt(_0x39263e(0x1e3))/0xa);if(_0x195aee===_0x48dc59)break;else _0x10054c['push'](_0x10054c['shift']());}catch(_0x3ce0fc){_0x10054c['push'](_0x10054c['shift']());}}}(_0x3932,0x6971f));import{findOne as _0x383c2c,getAttribute as _0x36ca91,Document as _0x184bb5,serialize as _0x19e812,parse as _0x309a26}from'./htmlparser.js';function _0x3932(){const _0x5d8af7=['643724gOrxFb','suggestion:attribute:','offset','toNone','textNode','_getTransformedByDeletion','range','setTo','name','word','map','batch','removeAttribute','index','3307520btjpYJ','isRegisteredAttribute','markers','new','change','$root','createPositionAt','nodeAfter','isBefore','POSITIVE_INFINITY','isAfter','_getTransformedByInsertion','splitPosition','clone','isObject','getDiff','3mNnFTy','insert','length','data','stickiness','changes','forward','type','DocumentCompare','_createFromRanges','78cvEwTk','$elementName','node','element','applyOperation','sourcePosition','split','add','getShiftedBy','key','remove','howMany','oldValue','stringify','1379164wFutPd','modifySelection','getOperations','isBlock','createRangeOn','focus','2313712mpwMjl','10SlxUcb','path','1059695agZQjK','newName','94415xImVBO','newValue','merge','createRange','oldName','getMinimalFlatRanges','delete','children','suggestion:deletion:','data-id','end','start','suggestion:insertion:','isDocumentOperation','isMarkedRemoveOperation','getMovedRangeStart','baseVersion','createPositionFromPath','slice','moveTargetPosition','getFirstRange','reverse','get','removed','targetPosition','model','rename','newRange','move','getTransformedByOperation',':$aiSuggestion','schema','parse','$text','...','marker','root','set','plugins','addAttribute','nodeBefore','createSelection','4741623SuOoGz','cloneNode','position','addOperation','backward','parent','suggestion:formatBlock:$fakeWrap:','changeAttribute','push','SuggestionsConversion'];_0x3932=function(){return _0x5d8af7;};return _0x3932();}import{fixElementSuggestionRange as _0x25e256}from'ckeditor5-collaboration/src/collaboration-core.js';import{ModelRange as _0x52d3fa,_DetachOperation as _0x23b923,_removeFromModelNodeList as _0xef1b0b,_insertIntoModelNodeList as _0xfc68fb}from'ckeditor5/src/engine.js';import{uid as _0x156100}from'ckeditor5/src/utils.js';function _0x5bfe(_0x2a7dc3,_0x28e937){const _0x393210=_0x3932();return _0x5bfe=function(_0x5bfe58,_0x502014){_0x5bfe58=_0x5bfe58-0x1cd;let _0x3ab0a3=_0x393210[_0x5bfe58];return _0x3ab0a3;},_0x5bfe(_0x2a7dc3,_0x28e937);}export function getSuggestionPartsFromReply({editor:_0xed5a10,changeGroups:_0x18fe48,documentContextContent:_0x254c06,showDiff:_0x3b1940,trimUnchanged:_0x417864=!0x0}){const _0x3eef49=_0x5bfe;return _0x18fe48[_0x3eef49(0x225)](_0x1c1fc2=>{const _0x29c74c=_0x3eef49,_0x1d486f=new _0x184bb5([]),_0x14e592=new _0x184bb5([]);for(const _0x1d3c57 of _0x1c1fc2[_0x29c74c(0x23e)])if(_0x3b1940&&_0x29c74c(0x1fe)==_0x1d3c57[_0x29c74c(0x240)]||_0x14e592[_0x29c74c(0x1ee)][_0x29c74c(0x219)](_0x1d3c57[_0x29c74c(0x1d0)][_0x29c74c(0x212)](!0x0)),_0x29c74c(0x22c)!=_0x1d3c57[_0x29c74c(0x240)]&&(_0x3b1940||_0x29c74c(0x1fe)!=_0x1d3c57[_0x29c74c(0x240)])){const _0x5cfef1=_0x383c2c(_0x3cf347=>_0x36ca91(_0x3cf347,_0x29c74c(0x1f0))==_0x1d3c57['id'],_0x254c06,!0x0);_0x5cfef1&&_0x1d486f[_0x29c74c(0x1ee)][_0x29c74c(0x219)](_0x5cfef1[_0x29c74c(0x212)](!0x0));}const {content:_0x35acd3,hasChanges:_0x3492aa}=function(_0x42e7ca,_0x134f8d,_0x128423,_0x5e5fdb,_0x210a19=!0x0){const _0x6c6ac1=_0x29c74c,_0x33e181=_0x42e7ca[_0x6c6ac1(0x20d)][_0x6c6ac1(0x1fd)](_0x6c6ac1(0x241)),_0x16def8=_0x19e812(_0x134f8d),_0x5012c6=_0x19e812(_0x128423),_0x2df189=_0x42e7ca[_0x6c6ac1(0x23c)][_0x6c6ac1(0x207)](_0x16def8,_0x6c6ac1(0x22e)),_0xf10871=_0x42e7ca[_0x6c6ac1(0x200)][_0x6c6ac1(0x22f)](_0x2df189,0x0),_0x4137af=_0x33e181[_0x6c6ac1(0x238)](_0x16def8,_0x5012c6,{'anchor':_0xf10871,'markDeletions':_0x5e5fdb,'context':_0x6c6ac1(0x22e)}),_0x34c922=_0x4137af[_0x6c6ac1(0x1de)]();if(0x0==_0x34c922[_0x6c6ac1(0x23b)])return{'content':_0x134f8d[_0x6c6ac1(0x212)](!0x0),'hasChanges':!0x1};_0x5e5fdb?function(_0x4ab555,_0xfc658d,_0x5be572){const _0x15d6d3=_0x6c6ac1;if(0x0==_0x4ab555[_0x15d6d3(0x23b)])return;const _0x168087=_0x5be572[_0x15d6d3(0x20d)][_0x15d6d3(0x1fd)](_0x15d6d3(0x241)),_0x1bf403=_0x5be572[_0x15d6d3(0x20d)][_0x15d6d3(0x1fd)](_0x15d6d3(0x21a));_0x5be572[_0x15d6d3(0x200)][_0x15d6d3(0x22d)](_0x49416c=>{const _0x4ce0fc=_0x15d6d3,_0x26627f=new Set();for(let _0x378e9e=0x0;_0x378e9e<_0x4ab555[_0x4ce0fc(0x23b)];_0x378e9e++){const _0x1d56b6=_0x4ab555[_0x378e9e];if(_0x1d56b6[_0x4ce0fc(0x1f7)]=null,_0x1d56b6[_0x4ce0fc(0x1f4)]=!0x1,_0x168087[_0x4ce0fc(0x1f5)](_0x1d56b6)){const _0x5a3962=_0x25e256(_0x1d56b6[_0x4ce0fc(0x202)],_0x5be572[_0x4ce0fc(0x200)]),_0x260369=_0x4ce0fc(0x1ef)+_0x156100()+_0x4ce0fc(0x205);_0xfc658d[_0x4ce0fc(0x22b)][_0x4ce0fc(0x20c)](_0x260369,_0x5a3962);}else switch(_0x1d56b6[_0x4ce0fc(0x240)]){case _0x4ce0fc(0x201):{if(_0x1d56b6[_0x4ce0fc(0x1eb)]==_0x1d56b6[_0x4ce0fc(0x1e6)])break;_0x49416c[_0x4ce0fc(0x226)][_0x4ce0fc(0x214)](_0x1d56b6),_0x5be572[_0x4ce0fc(0x200)][_0x4ce0fc(0x1d2)](_0x1d56b6);const _0x30725a=_0x4ce0fc(0x1cf),_0x2ef7a4=_0x1d56b6[_0x4ce0fc(0x213)],_0x368d0b=_0x5be572[_0x4ce0fc(0x200)][_0x4ce0fc(0x1ea)](_0x2ef7a4,_0x5be572[_0x4ce0fc(0x200)][_0x4ce0fc(0x22f)](_0x2ef7a4[_0x4ce0fc(0x230)],_0x4ce0fc(0x1f1))),_0x253dcc=_0x4ce0fc(0x21c)+_0x30725a+':'+_0x156100()+_0x4ce0fc(0x205);_0xfc658d[_0x4ce0fc(0x22b)][_0x4ce0fc(0x20c)](_0x253dcc,_0x368d0b);break;}case _0x4ce0fc(0x20e):case _0x4ce0fc(0x227):case _0x4ce0fc(0x218):{if(_0x1d56b6[_0x4ce0fc(0x1da)]==_0x1d56b6[_0x4ce0fc(0x1e8)])break;_0x49416c[_0x4ce0fc(0x226)][_0x4ce0fc(0x214)](_0x1d56b6),_0x5be572[_0x4ce0fc(0x200)][_0x4ce0fc(0x1d2)](_0x1d56b6);const _0x1b09df=_0x1d56b6[_0x4ce0fc(0x1d7)];if(!_0x1bf403[_0x4ce0fc(0x22a)](_0x1b09df))break;const _0x5a560e=_0x25e256(_0x1d56b6[_0x4ce0fc(0x221)],_0x5be572[_0x4ce0fc(0x200)]),_0x2f3438=_0x4ce0fc(0x21c)+_0x1b09df+':'+_0x156100()+_0x4ce0fc(0x205);_0xfc658d[_0x4ce0fc(0x22b)][_0x4ce0fc(0x20c)](_0x2f3438,_0x5a560e);break;}case _0x4ce0fc(0x23a):{_0x49416c[_0x4ce0fc(0x226)][_0x4ce0fc(0x214)](_0x1d56b6),_0x5be572[_0x4ce0fc(0x200)][_0x4ce0fc(0x1d2)](_0x1d56b6);if(_0x4ab555[_0x378e9e+0x1]&&_0x4ce0fc(0x203)==_0x4ab555[_0x378e9e+0x1][_0x4ce0fc(0x240)]){ro(_0xfc658d,_0x1d56b6);break;}const _0x3aea61=_0x1d56b6[_0x4ce0fc(0x213)],_0x2b6c6b=_0x1d56b6[_0x4ce0fc(0x1d9)],_0x33415c=_0x25e256(_0x5be572[_0x4ce0fc(0x200)][_0x4ce0fc(0x1ea)](_0x3aea61,_0x3aea61[_0x4ce0fc(0x1d6)](_0x2b6c6b)),_0x5be572[_0x4ce0fc(0x200)]),_0x48468a=_0x4ce0fc(0x1f3)+_0x156100()+_0x4ce0fc(0x205);_0xfc658d[_0x4ce0fc(0x22b)][_0x4ce0fc(0x20c)](_0x48468a,_0x33415c);break;}case _0x4ce0fc(0x1d4):{_0x49416c[_0x4ce0fc(0x226)][_0x4ce0fc(0x214)](_0x1d56b6),_0x5be572[_0x4ce0fc(0x200)][_0x4ce0fc(0x1d2)](_0x1d56b6);const _0x47c830=_0x1d56b6[_0x4ce0fc(0x235)],_0x30e92c=_0x1d56b6[_0x4ce0fc(0x1fa)],_0x1a5988=_0x5be572[_0x4ce0fc(0x200)][_0x4ce0fc(0x1ea)](_0x47c830,_0x30e92c),_0x110ee5=_0x4ce0fc(0x1f3)+_0x156100()+_0x4ce0fc(0x205);_0xfc658d[_0x4ce0fc(0x22b)][_0x4ce0fc(0x20c)](_0x110ee5,_0x1a5988);break;}case _0x4ce0fc(0x203):{_0x49416c[_0x4ce0fc(0x226)][_0x4ce0fc(0x214)](_0x1d56b6),_0x5be572[_0x4ce0fc(0x200)][_0x4ce0fc(0x1d2)](_0x1d56b6),_0x4ab555[_0x378e9e-0x1]&&_0x4ce0fc(0x23a)==_0x4ab555[_0x378e9e-0x1][_0x4ce0fc(0x240)]&&ro(_0xfc658d,_0x1d56b6);const _0x51b6f5=_0x1d56b6[_0x4ce0fc(0x1f6)](),_0x222dcb=_0x1d56b6[_0x4ce0fc(0x1d9)];for(let _0x20712f=0x0;_0x20712f<_0x222dcb;_0x20712f++){const _0x2f8fe6=_0x51b6f5[_0x4ce0fc(0x1d6)](_0x20712f)[_0x4ce0fc(0x230)];_0x26627f[_0x4ce0fc(0x1d5)](_0x2f8fe6);}break;}case _0x4ce0fc(0x1d8):{const _0x1bb73b=_0x1d56b6[_0x4ce0fc(0x1d3)],_0x5cac20=_0x1d56b6[_0x4ce0fc(0x1d9)],_0x243fdb=new _0x23b923(_0x1bb73b,_0x5cac20);_0x49416c[_0x4ce0fc(0x226)][_0x4ce0fc(0x214)](_0x243fdb),_0x5be572[_0x4ce0fc(0x200)][_0x4ce0fc(0x1d2)](_0x243fdb);break;}}}for(const _0x20a7d2 of _0x26627f){const _0x5bfee6=_0x5be572[_0x4ce0fc(0x200)][_0x4ce0fc(0x1e0)](_0x20a7d2),_0x3c8b41=_0x4ce0fc(0x217)+_0x156100()+_0x4ce0fc(0x205);_0xfc658d[_0x4ce0fc(0x22b)][_0x4ce0fc(0x20c)](_0x3c8b41,_0x25e256(_0x5bfee6,_0x5be572[_0x4ce0fc(0x200)]));}});}(_0x34c922,_0x2df189,_0x42e7ca):_0x42e7ca[_0x6c6ac1(0x200)][_0x6c6ac1(0x22d)](_0x4fc38e=>{const _0x57b278=_0x6c6ac1;for(const _0x5338e0 of _0x34c922)if(_0x57b278(0x1d8)==_0x5338e0[_0x57b278(0x240)]){const _0x43b52a=_0x5338e0[_0x57b278(0x1d3)],_0x5b07d4=_0x5338e0[_0x57b278(0x1d9)],_0x9a90e8=new _0x23b923(_0x43b52a,_0x5b07d4);_0x4fc38e[_0x57b278(0x226)][_0x57b278(0x214)](_0x9a90e8),_0x42e7ca[_0x57b278(0x200)][_0x57b278(0x1d2)](_0x9a90e8);}else{if(_0x57b278(0x20a)==_0x5338e0[_0x57b278(0x240)]){const _0x8969f4=_0x5338e0[_0x57b278(0x223)],_0x4a9e85=_0x5338e0[_0x57b278(0x202)];_0x2df189[_0x57b278(0x22b)][_0x57b278(0x20c)](_0x8969f4,_0x4a9e85);}else _0x5338e0[_0x57b278(0x1f7)]=null,_0x5338e0[_0x57b278(0x1f4)]=!0x1,_0x4fc38e[_0x57b278(0x226)][_0x57b278(0x214)](_0x5338e0),_0x42e7ca[_0x57b278(0x200)][_0x57b278(0x1d2)](_0x5338e0);}});if(_0x210a19){const _0x5c4158=getMinimalSelection(_0x42e7ca,_0x34c922,_0x2df189);expandSelectionWithContext(_0x42e7ca[_0x6c6ac1(0x200)],_0x5c4158),function(_0x5a4f83,_0x302933){const _0x3df51d=_0x6c6ac1,_0x4001f7=_0x302933[_0x3df51d(0x1fb)]()[_0x3df51d(0x1f2)];let _0x4c0784=_0x302933[_0x3df51d(0x1fb)]()[_0x3df51d(0x1f1)];const _0x59bb65=_0x4001f7[_0x3df51d(0x20b)];(_0x4c0784[_0x3df51d(0x21f)]||_0x4c0784[_0x3df51d(0x230)]&&_0x4c0784[_0x3df51d(0x230)]['is'](_0x3df51d(0x208)))&&(_0xfc68fb(_0x4c0784,_0x3df51d(0x209)),_0x4c0784=_0x4c0784[_0x3df51d(0x1d6)](0x3)),(_0x4001f7[_0x3df51d(0x21f)]||_0x4001f7[_0x3df51d(0x20f)]&&_0x4001f7[_0x3df51d(0x20f)]['is'](_0x3df51d(0x208)))&&(_0xfc68fb(_0x4001f7,_0x3df51d(0x209)),function(_0x26cda2,_0x1766a7,_0xe367c7){const _0x2613aa=_0x3df51d;for(let [_0x510646,_0x2883e2]of _0x26cda2[_0x2613aa(0x22b)]){const _0x2a978c=_0x2883e2[_0x2613aa(0x234)](_0x1766a7,_0xe367c7,!0x1);_0x2883e2=_0x2a978c[0x0],_0x26cda2[_0x2613aa(0x22b)][_0x2613aa(0x20c)](_0x510646,_0x2883e2);}}(_0x59bb65,_0x4001f7,0x3),_0x4001f7[_0x3df51d(0x216)]==_0x4c0784[_0x3df51d(0x216)]&&(_0x4c0784=_0x4c0784[_0x3df51d(0x1d6)](0x3)));const _0x3b94c3=_0x5a4f83[_0x3df51d(0x1ea)](_0x5a4f83[_0x3df51d(0x22f)](_0x59bb65,0x0),_0x4001f7),_0x116f27=_0x5a4f83[_0x3df51d(0x1ea)](_0x4c0784,_0x5a4f83[_0x3df51d(0x22f)](_0x59bb65,_0x3df51d(0x1f1))),_0x5c1c4a=[..._0x3b94c3[_0x3df51d(0x1ec)](),..._0x116f27[_0x3df51d(0x1ec)]()];_0x5c1c4a[_0x3df51d(0x1fc)]();for(const _0x550fe8 of _0x5c1c4a)_0xef1b0b(_0x550fe8),_transformMarkersByDeletion(_0x59bb65,_0x550fe8);}(_0x42e7ca[_0x6c6ac1(0x200)],_0x5c4158);}const _0x2c41ce=_0x42e7ca[_0x6c6ac1(0x23c)][_0x6c6ac1(0x1db)](_0x2df189,{'showSuggestionHighlights':!0x0});return{'content':_0x309a26(_0x2c41ce),'hasChanges':!0x0};}(_0xed5a10,_0x1d486f,_0x14e592,_0x3b1940,_0x417864);return{'type':_0x1c1fc2[_0x29c74c(0x23e)][0x0][_0x29c74c(0x240)],'index':_0x1c1fc2[_0x29c74c(0x228)],'content':_0x35acd3,'hasChanges':_0x3492aa};});}function ro(_0x42c911,_0x334f5a){const _0x208659=_0x5bfe;for(const [_0x33367a,_0x2e5c30]of _0x42c911[_0x208659(0x22b)]){const _0x2b2d91=_0x52d3fa[_0x208659(0x1cd)](_0x2e5c30[_0x208659(0x204)](_0x334f5a));_0x42c911[_0x208659(0x22b)][_0x208659(0x20c)](_0x33367a,_0x2b2d91);}}export function getMinimalSelection(_0x3186d3,_0x17e59b,_0x405ce0){const _0x3a87e0=_0x5bfe,_0x16844f=_0x3186d3[_0x3a87e0(0x20d)][_0x3a87e0(0x1fd)](_0x3a87e0(0x241));let _0x9b925=_0x3186d3[_0x3a87e0(0x200)][_0x3a87e0(0x22f)](_0x405ce0,Number[_0x3a87e0(0x232)]),_0x1ae761=_0x3186d3[_0x3a87e0(0x200)][_0x3a87e0(0x22f)](_0x405ce0,0x0);for(const _0x544308 of _0x17e59b){let _0x45f4a8,_0x303955;if(_0x16844f[_0x3a87e0(0x1f5)](_0x544308))_0x45f4a8=_0x544308[_0x3a87e0(0x202)][_0x3a87e0(0x1f2)],_0x303955=_0x544308[_0x3a87e0(0x202)][_0x3a87e0(0x1f1)];else switch(_0x9b925=_0x9b925[_0x3a87e0(0x204)](_0x544308),_0x1ae761=_0x1ae761[_0x3a87e0(0x204)](_0x544308),_0x544308[_0x3a87e0(0x240)]){case _0x3a87e0(0x201):_0x45f4a8=_0x544308[_0x3a87e0(0x213)],_0x303955=_0x45f4a8[_0x3a87e0(0x1d6)](0x1);break;case _0x3a87e0(0x20e):case _0x3a87e0(0x227):case _0x3a87e0(0x218):_0x45f4a8=_0x544308[_0x3a87e0(0x221)][_0x3a87e0(0x1f2)],_0x303955=_0x544308[_0x3a87e0(0x221)][_0x3a87e0(0x1f1)];break;case _0x3a87e0(0x23a):_0x45f4a8=_0x544308[_0x3a87e0(0x213)],_0x303955=_0x45f4a8[_0x3a87e0(0x1d6)](_0x544308[_0x3a87e0(0x1d9)]);break;case _0x3a87e0(0x1d4):_0x45f4a8=_0x544308[_0x3a87e0(0x235)],_0x303955=_0x544308[_0x3a87e0(0x1fa)];break;case _0x3a87e0(0x1e9):{const _0x56471d=_0x544308[_0x3a87e0(0x1ff)][_0x3a87e0(0x1e4)][_0x3a87e0(0x1f9)](0x0,-0x1);_0x45f4a8=_0x3186d3[_0x3a87e0(0x200)][_0x3a87e0(0x1f8)](_0x405ce0,_0x56471d),_0x303955=_0x45f4a8[_0x3a87e0(0x1d6)](0x1);break;}case _0x3a87e0(0x1d8):{const _0x593aff=_0x544308[_0x3a87e0(0x1d9)],_0x4cc8c6=_0x544308[_0x3a87e0(0x1d3)][_0x3a87e0(0x234)](_0x544308[_0x3a87e0(0x1ff)],_0x593aff),_0x48109d=_0x544308[_0x3a87e0(0x1f6)]();_0x3a87e0(0x1d8)==_0x544308[_0x3a87e0(0x240)]?(_0x45f4a8=_0x4cc8c6,_0x303955=_0x4cc8c6):(_0x45f4a8=_0x48109d,_0x303955=_0x48109d[_0x3a87e0(0x1d6)](_0x593aff));break;}}_0x45f4a8&&_0x45f4a8[_0x3a87e0(0x231)](_0x9b925)&&(_0x9b925=_0x45f4a8[_0x3a87e0(0x236)](),_0x9b925[_0x3a87e0(0x23d)]=_0x3a87e0(0x21e)),_0x303955&&_0x303955[_0x3a87e0(0x233)](_0x1ae761)&&(_0x1ae761=_0x303955[_0x3a87e0(0x236)](),_0x1ae761[_0x3a87e0(0x23d)]=_0x3a87e0(0x21e));}return _0x3186d3[_0x3a87e0(0x200)][_0x3a87e0(0x210)](_0x3186d3[_0x3a87e0(0x200)][_0x3a87e0(0x1ea)](_0x9b925,_0x1ae761));}export function expandSelectionWithContext(_0x16fa94,_0x363604){const _0x40eab8=_0x5bfe;so(_0x16fa94,_0x363604,_0x40eab8(0x23f));const _0x134158=_0x363604[_0x40eab8(0x1fb)]();_0x363604[_0x40eab8(0x222)]([]),_0x363604[_0x40eab8(0x222)](_0x134158,{'backward':!0x0}),so(_0x16fa94,_0x363604,_0x40eab8(0x215));}function so(_0x37ad20,_0x536212,_0x476327){const _0x8529a9=_0x5bfe;let _0x1eb74c=0x14;for(;_0x1eb74c;){_0x37ad20[_0x8529a9(0x1dd)](_0x536212,{'unit':_0x8529a9(0x224),'direction':_0x476327}),_0x1eb74c--;const _0x430322=_0x536212[_0x8529a9(0x1e1)][_0x8529a9(0x23f)==_0x476327?_0x8529a9(0x20f):_0x8529a9(0x230)];if(_0x430322&&_0x430322['is'](_0x8529a9(0x1d1))&&_0x37ad20[_0x8529a9(0x206)][_0x8529a9(0x1df)](_0x430322)&&_0x37ad20[_0x8529a9(0x206)][_0x8529a9(0x237)](_0x430322))break;}}export function _transformMarkersByDeletion(_0x4411c4,_0x4d8f94){const _0x35e484=_0x5bfe;for(const [_0x16c4d6,_0x4f069d]of _0x4411c4[_0x35e484(0x22b)]){const _0x1c9bd0=_0x4f069d[_0x35e484(0x220)](_0x4d8f94[_0x35e484(0x1f2)],_0x4d8f94[_0x35e484(0x1f1)][_0x35e484(0x21d)]-_0x4d8f94[_0x35e484(0x1f2)][_0x35e484(0x21d)]);null!=_0x1c9bd0?_0x4411c4[_0x35e484(0x22b)][_0x35e484(0x20c)](_0x16c4d6,_0x1c9bd0):_0x4411c4[_0x35e484(0x22b)][_0x35e484(0x1ed)](_0x16c4d6);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5ce873,_0x251f33){const _0x120029=_0x4a0a,_0x32ed07=_0x5ce873();while(!![]){try{const _0x36b01e=-parseInt(_0x120029(0xea))/0x1+-parseInt(_0x120029(0xf9))/0x2*(parseInt(_0x120029(0xe7))/0x3)+parseInt(_0x120029(0xfa))/0x4*(parseInt(_0x120029(0xee))/0x5)+-parseInt(_0x120029(0xf0))/0x6*(parseInt(_0x120029(0xf8))/0x7)+-parseInt(_0x120029(0xe3))/0x8+parseInt(_0x120029(0xe9))/0x9*(-parseInt(_0x120029(0xf6))/0xa)+parseInt(_0x120029(0xe6))/0xb;if(_0x36b01e===_0x251f33)break;else _0x32ed07['push'](_0x32ed07['shift']());}catch(_0x297b52){_0x32ed07['push'](_0x32ed07['shift']());}}}(_0x5796,0x75536));import{parseDocument as _0x1c1b0a}from'htmlparser2';import{append as _0x2203d0,appendChild as _0x52004b,find as _0x3ff098,findAll as _0x39afb0,findOne as _0x379d5e,getChildren as _0x11b8b5,isComment as _0x4e0b81,isTag as _0xbce537,prepend as _0x10caa7,prependChild as _0x360907,removeElement as _0x3a5318,replaceElement as _0x54591b,textContent as _0x55b78d,getParent as _0x2637d2,hasChildren as _0x3311e1}from'domutils';import _0x52e4f9 from'dom-serializer';import{cloneNode as _0x1c5cde,isDocument as _0x56667f,isText as _0x521209,Element as _0x3979f7,Text as _0x1ea111,Document as _0x24fa46,NodeWithChildren as _0x1934af}from'domhandler';export{_0x1c5cde as cloneNode,_0x3ff098 as find,_0x379d5e as findOne,_0x39afb0 as findAll,_0x11b8b5 as getChildren,_0x2637d2 as getParent,_0x4e0b81 as isComment,_0x56667f as isDocument,_0xbce537 as isTag,_0x521209 as isText,_0x2203d0 as append,_0x52004b as appendChild,_0x10caa7 as prepend,_0x360907 as prependChild,_0x52e4f9 as render,_0x3a5318 as removeElement,_0x54591b as replaceElement,_0x55b78d as textContent,_0x3311e1 as hasChildren,_0x3979f7 as Element,_0x24fa46 as Document,_0x1934af as NodeWithChildren,_0x1ea111 as Text};function _0x5796(){const _0x22102f=['1400932yUrnPT','cloneNode','afterend','6474200SQUgiS','parentNode','beforeend','32310135WnkkpM','39nqaeKX','map','9810vMmbjf','724030oSxdor','reverse','nextSibling','push','10NAnrBN','forEach','1002Vuwawl','attribs','afterbegin','slice','indexOf','beforebegin','4290oHilfe','replace','9289ajhYRG','143794jEdcjW'];_0x5796=function(){return _0x22102f;};return _0x5796();}export function parse(_0x2e0fce){return _0x1c1b0a(_0x2e0fce);}export function serialize(_0x1458a5){return _0x52e4f9(_0x1458a5);}export function findByAttribute(_0x5094f5,_0x13150,_0x5da1d9){const _0x29d3fa=_0x4a0a,_0x1f0e8a=null!==_0x13150?_0x40b4f7=>_0x40b4f7[_0x29d3fa(0xf1)][_0x5094f5]===_0x13150:_0x29dc75=>Boolean(_0x29dc75[_0x29d3fa(0xf1)][_0x5094f5]);return _0x379d5e(_0x5ed937=>_0xbce537(_0x5ed937)&&_0x1f0e8a(_0x5ed937),_0x5da1d9);}export function findAllByAttribute(_0x389712,_0xe228ef,_0x5b8b56){const _0x428192=_0x4a0a,_0xafad5d=null!==_0xe228ef?_0x47263f=>_0x47263f[_0x428192(0xf1)][_0x389712]===_0xe228ef:_0x472128=>Boolean(_0x472128[_0x428192(0xf1)][_0x389712]);return _0x39afb0(_0x5ed289=>_0xbce537(_0x5ed289)&&_0xafad5d(_0x5ed289),_0x5b8b56);}export function findAllComments(_0x18f41b){return _0x3ff098(_0x109e86=>_0x4e0b81(_0x109e86),_0x18f41b,!0x0,0x1/0x0);}export function getAttribute(_0xc24d05,_0x420360){const _0x25c12f=_0x4a0a;return _0xc24d05&&_0xbce537(_0xc24d05)?_0xc24d05[_0x25c12f(0xf1)][_0x420360]:null;}export function setAttribute(_0x5a820b,_0x4a8efc,_0x4575af){const _0x26eea9=_0x4a0a;_0xbce537(_0x5a820b)&&(null===_0x4575af?delete _0x5a820b[_0x26eea9(0xf1)][_0x4a8efc]:_0x5a820b[_0x26eea9(0xf1)][_0x4a8efc]=_0x4575af);}export function insertElement(_0x5f4658,_0x29b319,_0x3fa1b7){const _0x4ef290=_0x4a0a,_0x197024=_0x29b319[_0x4ef290(0xfb)](!0x0);_0x4ef290(0xf5)===_0x3fa1b7?_0x10caa7(_0x5f4658,_0x197024):_0x4ef290(0xf2)===_0x3fa1b7?_0x360907(_0x5f4658,_0x197024):_0x4ef290(0xe5)===_0x3fa1b7?_0x52004b(_0x5f4658,_0x197024):_0x4ef290(0xfc)===_0x3fa1b7&&_0x2203d0(_0x5f4658,_0x197024);}function _0x4a0a(_0x1ce16b,_0x12bd14){const _0x579696=_0x5796();return _0x4a0a=function(_0x4a0aca,_0x31f93e){_0x4a0aca=_0x4a0aca-0xe3;let _0x38584c=_0x579696[_0x4a0aca];return _0x38584c;},_0x4a0a(_0x1ce16b,_0x12bd14);}export function moveElement(_0xdfc299,_0x38243b){_0x3a5318(_0xdfc299),_0x54591b(_0x38243b,_0xdfc299);}export function clone(_0x36ffd0){const _0x49bc31=_0x4a0a;return _0x36ffd0[_0x49bc31(0xfb)](!0x0);}export function getParents(_0x156ac0){const _0x4d559a=_0x4a0a,_0x3bcee0=[];let _0x1b3dc9=_0x156ac0;for(;_0x1b3dc9;)_0x1b3dc9=_0x2637d2(_0x1b3dc9),_0x1b3dc9&&_0x3bcee0[_0x4d559a(0xed)](_0x1b3dc9);return _0x3bcee0;}export function normalizeHTML(_0x35965d){const _0x4cefcb=_0x4a0a;return _0x35965d[_0x4cefcb(0xf7)](/^\s+/gm,'')[_0x4cefcb(0xf7)](/\s+$/gm,'')[_0x4cefcb(0xf7)](/\n*/g,'')[_0x4cefcb(0xf7)](/\s+/g,'\x20')[_0x4cefcb(0xf7)](/>\s*</g,'><');}export function areNodesSame(_0x58c9ad,_0x4bbdc9){return normalizeHTML(serialize(_0x58c9ad))===normalizeHTML(serialize(_0x4bbdc9));}export function getNodeNestingLevel(_0x1dd27a){const _0x422e23=_0x4a0a;let _0x3c98d1=0x0;for(;_0x1dd27a[_0x422e23(0xe4)];)_0x1dd27a=_0x1dd27a[_0x422e23(0xe4)],_0x3c98d1++;return _0x3c98d1;}export function removeElementsAfter(_0x4d8a40){const _0xc7f109=_0x4a0a,_0x4c7e33=[];let _0x19cbf3=_0x4d8a40[_0xc7f109(0xec)];for(;_0x19cbf3;)_0x4c7e33[_0xc7f109(0xed)](_0x19cbf3),_0x19cbf3=_0x19cbf3[_0xc7f109(0xec)];_0x4c7e33[_0xc7f109(0xef)](_0x51e853=>{_0x3a5318(_0x51e853);});}export function getNodePath(_0x2d21ce){const _0x3c995b=_0x4a0a;return[_0x2d21ce,...getParents(_0x2d21ce)][_0x3c995b(0xf3)](0x0,-0x1)[_0x3c995b(0xe8)](_0x220074=>{const _0x119657=_0x3c995b,_0x123488=_0x2637d2(_0x220074);return _0x11b8b5(_0x123488)[_0x119657(0xf4)](_0x220074);})[_0x3c995b(0xeb)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x125543=_0x206a;(function(_0x2ab6b6,_0x130022){const _0x344f96=_0x206a,_0x50b9d5=_0x2ab6b6();while(!![]){try{const _0x5bf934=-parseInt(_0x344f96(0x142))/0x1*(-parseInt(_0x344f96(0x152))/0x2)+parseInt(_0x344f96(0x145))/0x3+parseInt(_0x344f96(0x11c))/0x4+parseInt(_0x344f96(0x144))/0x5+parseInt(_0x344f96(0x118))/0x6+-parseInt(_0x344f96(0x13a))/0x7*(parseInt(_0x344f96(0x14b))/0x8)+-parseInt(_0x344f96(0x13b))/0x9*(parseInt(_0x344f96(0x128))/0xa);if(_0x5bf934===_0x130022)break;else _0x50b9d5['push'](_0x50b9d5['shift']());}catch(_0x4cf1b5){_0x50b9d5['push'](_0x50b9d5['shift']());}}}(_0x51a5,0x37ed1));import _0x4e8083 from'morphdom';function _0x206a(_0xd0948a,_0x1d16e5){const _0x51a531=_0x51a5();return _0x206a=function(_0x206a40,_0x34bb04){_0x206a40=_0x206a40-0x117;let _0x2cb9b6=_0x51a531[_0x206a40];return _0x2cb9b6;},_0x206a(_0xd0948a,_0x1d16e5);}import{NodeWithChildren as _0x40c488,Text as _0xb8dc81,Element as _0x131538,isText as _0x220a4c,isDocument as _0x3437d8,isTag as _0x23e314,cloneNode as _0x4bb836,getChildren as _0x26815e,prepend as _0x142513,removeElement as _0x4dbd70,textContent as _0x4f1f42,render as _0x5345a4}from'./htmlparser.js';import{logWarning as _0x34c410}from'ckeditor5/src/utils.js';export class HTMLStreamer{[_0x125543(0x12e)];[_0x125543(0x129)]=!0x1;[_0x125543(0x12f)]=null;[_0x125543(0x12a)]=[];[_0x125543(0x13f)]=0x0;[_0x125543(0x119)]=null;constructor(_0x5e7a42){const _0x199efe=_0x125543;this[_0x199efe(0x12e)]={'delay':_0x5e7a42[_0x199efe(0x153)]??0x14,'textNodeStyle':_0x5e7a42[_0x199efe(0x122)],'onStreamUpdate':_0x5e7a42[_0x199efe(0x138)]||(()=>{})};}async[_0x125543(0x117)]({document:_0x33f43e,targetElement:_0x395faf,abortSignal:_0x4248ae}){const _0x2ab4bb=_0x125543;this[_0x2ab4bb(0x129)]&&this[_0x2ab4bb(0x137)](),_0x4248ae?.[_0x2ab4bb(0x14f)](_0x2ab4bb(0x14e),this[_0x2ab4bb(0x137)][_0x2ab4bb(0x11d)](this)),this[_0x2ab4bb(0x12f)]=_0x4bb836(_0x33f43e,!0x0),this[_0x2ab4bb(0x12a)]=this[_0x2ab4bb(0x11a)](),this[_0x2ab4bb(0x129)]=!0x0,this[_0x2ab4bb(0x13f)]>this[_0x2ab4bb(0x12a)][_0x2ab4bb(0x13d)]&&(_0x34c410(_0x2ab4bb(0x146),{'currentIndex':this[_0x2ab4bb(0x13f)],'nodeList':this[_0x2ab4bb(0x12a)]}),this[_0x2ab4bb(0x13f)]=this[_0x2ab4bb(0x12a)][_0x2ab4bb(0x13d)]);for(let _0x45b92b=0x0;_0x45b92b<this[_0x2ab4bb(0x13f)];_0x45b92b++)this[_0x2ab4bb(0x12a)][_0x45b92b][_0x2ab4bb(0x148)]=!0x0;let _0x338885=0x0;for(let _0x2b09ed=this[_0x2ab4bb(0x13f)];_0x2b09ed<this[_0x2ab4bb(0x12a)][_0x2ab4bb(0x13d)];_0x2b09ed++){const _0x4965c5=Date[_0x2ab4bb(0x139)](),_0x2a4c28=this[_0x2ab4bb(0x12a)][_0x2b09ed],_0x535f16=_0x4965c5-_0x338885;_0x2a4c28[_0x2ab4bb(0x148)]=!0x0;let _0x1b3870=_0x2a4c28[_0x2ab4bb(0x13c)];for(;_0x1b3870;)_0x1b3870[_0x2ab4bb(0x148)]=!0x0,_0x1b3870=_0x1b3870[_0x2ab4bb(0x13c)];if(_0x535f16<this[_0x2ab4bb(0x12e)][_0x2ab4bb(0x153)])try{const {promise:_0x25b1f9,abortController:_0x1b32d7}=br(this[_0x2ab4bb(0x12e)][_0x2ab4bb(0x153)]-_0x535f16);this[_0x2ab4bb(0x119)]=_0x1b32d7,await _0x25b1f9;}catch(_0x346f0a){return;}_0x4e8083(_0x395faf,'<'+_0x395faf[_0x2ab4bb(0x11b)]+'>'+this[_0x2ab4bb(0x150)](this[_0x2ab4bb(0x12f)])+'</'+_0x395faf[_0x2ab4bb(0x11b)]+'>',{'childrenOnly':!0x0}),this[_0x2ab4bb(0x12e)][_0x2ab4bb(0x138)]&&this[_0x2ab4bb(0x12e)][_0x2ab4bb(0x138)](),this[_0x2ab4bb(0x13f)]=_0x2b09ed,_0x338885=Date[_0x2ab4bb(0x139)]();}this[_0x2ab4bb(0x129)]=!0x1;}[_0x125543(0x126)]({targetElement:_0x85988c}){const _0x2d382c=_0x125543;Array[_0x2d382c(0x14d)](_0x85988c[_0x2d382c(0x11e)](_0x2d382c(0x130)))[_0x2d382c(0x149)]()[_0x2d382c(0x13e)](_0x35e7a5=>{const _0x518ff3=_0x2d382c;_0x35e7a5[_0x518ff3(0x133)](_0x35e7a5[_0x518ff3(0x127)][0x0]);});}[_0x125543(0x137)](){const _0x383c76=_0x125543;this[_0x383c76(0x129)]=!0x1,this[_0x383c76(0x119)]&&(this[_0x383c76(0x119)][_0x383c76(0x14e)](),this[_0x383c76(0x119)]=null);}[_0x125543(0x150)](_0x32c36d){const _0x4ec12=_0x125543;let _0x41dee4='';if(function(_0xdba292){return _0x3437d8(_0xdba292);}(_0x32c36d)){for(const _0x589972 of _0x32c36d[_0x4ec12(0x132)])_0x41dee4+=this[_0x4ec12(0x150)](_0x589972);}else{if(pr(_0x32c36d)){if(!_0x32c36d[_0x4ec12(0x148)])return'';const _0x5024b3=_0x32c36d,_0x7b0496=Object[_0x4ec12(0x12d)](_0x5024b3[_0x4ec12(0x11f)])[_0x4ec12(0x120)](([_0x284ab2,_0x4ff3b8])=>_0x284ab2+'=\x22'+_0x4ff3b8+'\x22')[_0x4ec12(0x12b)]('\x20');_0x41dee4+='<'+_0x5024b3[_0x4ec12(0x11b)]+(_0x7b0496?'\x20'+_0x7b0496:'')+'>';for(const _0x46330f of _0x26815e(_0x5024b3))_0x41dee4+=this[_0x4ec12(0x150)](_0x46330f);_0x41dee4+='</'+_0x5024b3[_0x4ec12(0x11b)]+'>';}else{if(!dr(_0x32c36d))return'';if(!_0x32c36d[_0x4ec12(0x148)])return'';!function(_0x5456ce){const _0x37c91f=_0x4ec12;if(!_0x5456ce[_0x37c91f(0x13c)]||!pr(_0x5456ce[_0x37c91f(0x13c)]))return!0x1;if(!ar[_0x37c91f(0x131)](_0x5456ce[_0x37c91f(0x13c)][_0x37c91f(0x11b)]))return!0x1;return!_0x4f1f42(_0x5456ce)[_0x37c91f(0x125)](/^\s*[<>]\s*$/);}(_0x32c36d)?_0x41dee4+=_0x5345a4(_0x32c36d):_0x41dee4+=_0x5345a4(new _0x131538(_0x4ec12(0x143),{'data-ck-html-streamer-word-chunk':'','style':this[_0x4ec12(0x12e)][_0x4ec12(0x122)]},[_0x32c36d]));}}return _0x41dee4;}[_0x125543(0x11a)](){const _0x42cafb=_0x125543,_0x4000ff=[];return function(_0x233c3a,_0x319d90){const _0x21a30a=_0x206a,_0x5212a2=_0x40529f=>{const _0x3c980=_0x206a;if(_0x319d90(_0x40529f),_0x40529f instanceof _0x40c488)for(let _0x1a1c3e=0x0;_0x1a1c3e<_0x40529f[_0x3c980(0x132)][_0x3c980(0x13d)];_0x1a1c3e++){const _0x574912=_0x40529f[_0x3c980(0x132)][_0x1a1c3e];_0x5212a2(_0x574912);}};for(let _0x16377d=0x0;_0x16377d<_0x233c3a[_0x21a30a(0x132)][_0x21a30a(0x13d)];_0x16377d++)_0x5212a2(_0x233c3a[_0x21a30a(0x132)][_0x16377d]);}(this[_0x42cafb(0x12f)],_0xea222b=>{const _0x3fc4ca=_0x42cafb;if(dr(_0xea222b)){const _0x3c3b54=this[_0x3fc4ca(0x134)](_0xea222b);_0x3c3b54[_0x3fc4ca(0x13d)]&&_0x4000ff[_0x3fc4ca(0x151)](..._0x3c3b54);}_0xea222b[_0x3fc4ca(0x140)]||_0xea222b[_0x3fc4ca(0x12c)]||_0x4000ff[_0x3fc4ca(0x151)](_0xea222b);}),_0x4000ff;}[_0x125543(0x134)](_0x30f37f){const _0x4bc449=_0x125543;if(_0x30f37f[_0x4bc449(0x140)]||_0x30f37f[_0x4bc449(0x12c)])return[];const _0x567f0b=_0x4f1f42(_0x30f37f)[_0x4bc449(0x125)](/(?:\s*\S+\s*)/g),_0x4ee512=[];if(_0x567f0b&&_0x567f0b[_0x4bc449(0x13d)]>0x1){for(const _0x29abd3 of _0x567f0b){const _0x4ec7c3=new _0xb8dc81(_0x29abd3);_0x4ec7c3[_0x4bc449(0x12c)]=!0x0,_0x142513(_0x30f37f,_0x4ec7c3),_0x4ee512[_0x4bc449(0x151)](_0x4ec7c3);}_0x30f37f[_0x4bc449(0x140)]=!0x0,_0x4dbd70(_0x30f37f);}return _0x4ee512;}}const ar=['p','li','td','th',_0x125543(0x143),'h1','h2','h3','h4','h5','h6','b',_0x125543(0x135),'i','em',_0x125543(0x147),_0x125543(0x14c),_0x125543(0x14a),_0x125543(0x141),_0x125543(0x136),'a',_0x125543(0x123),_0x125543(0x121)];function _0x51a5(){const _0x1bd46b=['entries','options','document','span[data-ck-html-streamer-word-chunk]','includes','children','replaceWith','splitTextNodeIntoWordNodes','strong','sub','stop','onStreamUpdate','now','6202WcJhIP','4399587NItNsz','parent','length','forEach','currentIndex','isWordSplitSource','sup','63669leIHvv','span','647100lKFZgt','678069DEIPFG','ai-html-streamer-current-index-out-of-bounds','mark','shouldBeStreamed','reverse','ins','368awsdIr','del','from','abort','addEventListener','renderNode','push','2oQhncd','delay','stream','2646102TehrsM','timeoutAbortController','getParsedDocumentNodeList','tagName','1549544ADEFCi','bind','querySelectorAll','attribs','map','div','textNodeStyle','code','signal','match','cleanUpAnimations','childNodes','20TmJNOl','isStreaming','nodesList','join','isWordSplitResult'];_0x51a5=function(){return _0x1bd46b;};return _0x51a5();}function dr(_0x59e173){return _0x220a4c(_0x59e173);}function pr(_0xe417f4){return _0x23e314(_0xe417f4);}function br(_0x280e09){const _0x236ed7=new AbortController();return{'promise':new Promise((_0x3679ff,_0x533652)=>{const _0x4a076f=_0x206a,_0x4268fe=setTimeout(_0x3679ff,_0x280e09);_0x236ed7[_0x4a076f(0x124)][_0x4a076f(0x14f)](_0x4a076f(0x14e),()=>{clearTimeout(_0x4268fe),_0x533652();});}),'abortController':_0x236ed7};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x672fa8=_0x1ec4;(function(_0x5a7604,_0x18c7e1){const _0x365ebc=_0x1ec4,_0x3316e3=_0x5a7604();while(!![]){try{const _0x1b74b9=parseInt(_0x365ebc(0x185))/0x1+-parseInt(_0x365ebc(0x17c))/0x2+-parseInt(_0x365ebc(0x191))/0x3+parseInt(_0x365ebc(0x18a))/0x4*(-parseInt(_0x365ebc(0x1a0))/0x5)+-parseInt(_0x365ebc(0x19c))/0x6*(-parseInt(_0x365ebc(0x17e))/0x7)+parseInt(_0x365ebc(0x182))/0x8*(parseInt(_0x365ebc(0x196))/0x9)+-parseInt(_0x365ebc(0x17b))/0xa;if(_0x1b74b9===_0x18c7e1)break;else _0x3316e3['push'](_0x3316e3['shift']());}catch(_0x4afbb3){_0x3316e3['push'](_0x3316e3['shift']());}}}(_0x84e0,0x83c41));const As=[_0x672fa8(0x177),_0x672fa8(0x195),_0x672fa8(0x186),_0x672fa8(0x19e)],fs=[_0x672fa8(0x17d),_0x672fa8(0x194),_0x672fa8(0x199),_0x672fa8(0x179),_0x672fa8(0x183),_0x672fa8(0x19f),'\x20'];function _0x1ec4(_0x46f96e,_0x3e23b3){const _0x84e02a=_0x84e0();return _0x1ec4=function(_0x1ec4e3,_0x5c7bd9){_0x1ec4e3=_0x1ec4e3-0x176;let _0x18ad49=_0x84e02a[_0x1ec4e3];return _0x18ad49;},_0x1ec4(_0x46f96e,_0x3e23b3);}export class ScrollManager{[_0x672fa8(0x193)];[_0x672fa8(0x197)];[_0x672fa8(0x189)];[_0x672fa8(0x18f)];[_0x672fa8(0x178)];constructor(_0x22f484){const _0x5266f8=_0x672fa8;this[_0x5266f8(0x193)]=_0x22f484,this[_0x5266f8(0x197)]=null,this[_0x5266f8(0x189)]=!0x1,this[_0x5266f8(0x18f)]=new AbortController(),this[_0x5266f8(0x178)]=!0x1;for(const _0x4a842e of As){const _0x2a6b10=_0x5266f8(0x19e)!==_0x4a842e;this[_0x5266f8(0x193)][_0x5266f8(0x19a)](_0x4a842e,this[_0x5266f8(0x18c)][_0x5266f8(0x18d)](this),{'passive':_0x2a6b10,'signal':this[_0x5266f8(0x18f)][_0x5266f8(0x192)]});}}[_0x672fa8(0x17f)](){const _0x5c0e48=_0x672fa8;this[_0x5c0e48(0x189)]||(this[_0x5c0e48(0x189)]=!0x0,this[_0x5c0e48(0x178)]=!0x1,this[_0x5c0e48(0x197)]=requestAnimationFrame(this[_0x5c0e48(0x184)][_0x5c0e48(0x18d)](this)));}[_0x672fa8(0x19b)](){requestAnimationFrame(()=>{const _0x56113a=_0x1ec4;this[_0x56113a(0x18e)]();});}[_0x672fa8(0x198)](){const _0x9b63fa=_0x672fa8;this[_0x9b63fa(0x18e)](),this[_0x9b63fa(0x18f)][_0x9b63fa(0x190)]();}[_0x672fa8(0x18e)](){const _0x599e06=_0x672fa8;null!==this[_0x599e06(0x197)]&&(cancelAnimationFrame(this[_0x599e06(0x197)]),this[_0x599e06(0x197)]=null),this[_0x599e06(0x189)]&&(this[_0x599e06(0x189)]=!0x1),this[_0x599e06(0x178)]=!0x1;}[_0x672fa8(0x18c)](_0x2d2d96){const _0x217d09=_0x672fa8;if(this[_0x217d09(0x189)]){if(_0x217d09(0x19e)===_0x2d2d96[_0x217d09(0x176)]){const _0x53ff1f=_0x2d2d96[_0x217d09(0x188)];if(!fs[_0x217d09(0x187)](_0x53ff1f))return;}_0x2d2d96 instanceof WheelEvent?_0x2d2d96[_0x217d09(0x19d)]<0x0?this[_0x217d09(0x178)]=!0x0:this[_0x217d09(0x178)]=!this[_0x217d09(0x180)]():this[_0x217d09(0x178)]=!0x0;}}[_0x672fa8(0x180)](){const _0x15129d=_0x672fa8,{scrollTop:_0x92884a,scrollHeight:_0x39deb0,clientHeight:_0x46aa86}=this[_0x15129d(0x193)];return _0x39deb0-_0x92884a-_0x46aa86<=0x5;}[_0x672fa8(0x184)](){const _0x379424=_0x672fa8;this[_0x379424(0x189)]&&(this[_0x379424(0x178)]||this[_0x379424(0x193)][_0x379424(0x18b)]({'top':this[_0x379424(0x193)][_0x379424(0x181)],'behavior':_0x379424(0x17a)}),this[_0x379424(0x197)]=requestAnimationFrame(this[_0x379424(0x184)][_0x379424(0x18d)](this)));}}function _0x84e0(){const _0x385966=['keydown','End','49415kFGfLV','type','wheel','isUserPaused','PageDown','auto','4792130DdWiKW','744328AXPJkl','ArrowUp','310863IvsgCL','start','_isAtBottom','scrollHeight','12248ijwoJc','Home','_rafUpdate','1003063KFyMxc','pointerdown','includes','key','isRunning','164wRcovS','scrollTo','_onUserEvent','bind','_stop','abortController','abort','45444jKPQIq','signal','element','ArrowDown','touchstart','4491hVxWNo','animationFrameId','destroy','PageUp','addEventListener','stop','6dUbRgx','deltaY'];_0x84e0=function(){return _0x385966;};return _0x84e0();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7a311d=_0x1d44;(function(_0x444578,_0x297811){const _0x59b226=_0x1d44,_0x20700d=_0x444578();while(!![]){try{const _0x29a8f0=-parseInt(_0x59b226(0x1cd))/0x1+-parseInt(_0x59b226(0x1c7))/0x2*(parseInt(_0x59b226(0x1d5))/0x3)+parseInt(_0x59b226(0x1da))/0x4+parseInt(_0x59b226(0x1db))/0x5+parseInt(_0x59b226(0x1c8))/0x6+parseInt(_0x59b226(0x1d1))/0x7*(parseInt(_0x59b226(0x1dc))/0x8)+-parseInt(_0x59b226(0x1e1))/0x9*(parseInt(_0x59b226(0x1c3))/0xa);if(_0x29a8f0===_0x297811)break;else _0x20700d['push'](_0x20700d['shift']());}catch(_0x15cbf7){_0x20700d['push'](_0x20700d['shift']());}}}(_0x1f99,0x23c95));import{Plugin as _0x5c8aa8}from'ckeditor5/src/core.js';import{ToggleAICommand as _0x2d4a1a}from'./toggleaicommand.js';function _0x1d44(_0x12cc57,_0x1ddca4){const _0x1f9919=_0x1f99();return _0x1d44=function(_0x1d4407,_0x5ab2d7){_0x1d4407=_0x1d4407-0x1bf;let _0x3fb24b=_0x1f9919[_0x1d4407];return _0x3fb24b;},_0x1d44(_0x12cc57,_0x1ddca4);}import{ButtonView as _0x12e5bc,MenuBarMenuListItemButtonView as _0x2d29db}from'ckeditor5/src/ui.js';import{IconAIAskAI as _0xbc96b}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x4f3767}from'../../aicore/utils/common-translations.js';function _0x1f99(){const _0x2cb85d=['locale','9OBtqpD','toggleAi','editor','isOn','value','2894230MaVfAd','_createAIUIButton','componentFactory','isEnabled','2oXIXPL','1399842Aglltx','ck-ai-toggle-button','menuitemcheckbox','AIToggleButtonUI','execute','86247xgfSCP','set','init','add','1572221sYHChE','requires','get','bind','493338osHaBg','commands','pluginName','isPremiumPlugin','listenTo','839104gzHKky','95055aEIXdm','8qgIooz','isOfficialPlugin','menuBar:toggleAi','AI_TOGGLE_BUTTON_LABEL'];_0x1f99=function(){return _0x2cb85d;};return _0x1f99();}import{AITabs as _0xd8f0c4}from'../../aitabs/aitabs.js';import'../../../theme/aieditorintegration/aitogglebutton.css';export class AIToggleButtonUI extends _0x5c8aa8{static get[_0x7a311d(0x1d2)](){return[_0xd8f0c4];}static get[_0x7a311d(0x1d7)](){const _0x49a1f9=_0x7a311d;return _0x49a1f9(0x1cb);}static get[_0x7a311d(0x1dd)](){return!0x0;}static get[_0x7a311d(0x1d8)](){return!0x0;}[_0x7a311d(0x1cf)](){const _0x375068=_0x7a311d,_0x383c53=this[_0x375068(0x1c0)];_0x383c53[_0x375068(0x1d6)][_0x375068(0x1d0)](_0x375068(0x1bf),new _0x2d4a1a(_0x383c53)),_0x383c53['ui'][_0x375068(0x1c5)][_0x375068(0x1d0)](_0x375068(0x1bf),()=>{const _0x540103=_0x375068,_0x406dda=this[_0x540103(0x1c4)](_0x12e5bc);return _0x406dda[_0x540103(0x1ce)]({'tooltip':!0x0,'class':_0x540103(0x1c9)}),_0x406dda;}),_0x383c53['ui'][_0x375068(0x1c5)][_0x375068(0x1d0)](_0x375068(0x1de),()=>{const _0xf3b0f4=_0x375068,_0x208406=this[_0xf3b0f4(0x1c4)](_0x2d29db);return _0x208406[_0xf3b0f4(0x1ce)]({'role':_0xf3b0f4(0x1ca)}),_0x208406;});}[_0x7a311d(0x1c4)](_0x267baa){const _0x557b65=_0x7a311d,_0x109e0f=this[_0x557b65(0x1c0)],_0x318808=_0x109e0f[_0x557b65(0x1d6)][_0x557b65(0x1d3)](_0x557b65(0x1bf)),_0x11e416=new _0x267baa(_0x109e0f[_0x557b65(0x1e0)]);return _0x11e416[_0x557b65(0x1ce)]({'label':_0x4f3767(_0x109e0f[_0x557b65(0x1e0)],_0x557b65(0x1df)),'icon':_0xbc96b,'isToggleable':!0x0}),_0x11e416[_0x557b65(0x1d4)](_0x557b65(0x1c6))['to'](_0x318808),_0x11e416[_0x557b65(0x1d4)](_0x557b65(0x1c1))['to'](_0x318808,_0x557b65(0x1c2),_0x3aaa66=>!!_0x3aaa66),this[_0x557b65(0x1d9)](_0x11e416,_0x557b65(0x1cc),()=>{const _0x3c0da7=_0x557b65;_0x318808[_0x3c0da7(0x1cc)]();}),_0x11e416;}}
|