@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230706.0 → 0.0.0-nightly-20230707.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x445c=['then','conversion','deletion:join','setTo','backward','attributes','insertContent','always','_rangeIsInLocalUserInsertion','marker-count','createRangeIn','formatInline:','locale','addComment','_splitMarkerName','formatBlock:join','some','authoredAt','has','author','widget','formatBlock:','removeMarker','oldRange','markerName','getFirstRange','skipNestingCheck','_breakSuggestionMarker','subType','markInlineFormat','elementToElement','trackChangesCommand','markMultiRangeDeletion','_onDiscard','item','enqueueChange','getAllAdjacentSuggestions','isInsideObject','moveTargetPosition','removeMarkers','adapter','insertion:chain','_joinSuggestions','getRange','getAttribute','unbind','collaboration.channelId','_suggestionState','low','isNextTo','forward','next','$graveyard','editingDowncast','suggestionLoaded','setSelection','_descriptionFactory','accept','remove','enableReadOnlyMode','hasSuggestion','isSelectable','discardAllSuggestions','isAfter','change:activeMarkers','every','commandName','discard','insertion:accept','stopListening','showSuggestionHighlights','isAtEnd','getDifference','fetchCommentThread','differ','_model','howMany','isInContent','size','createPositionAfter','start','after','discardSuggestion','addRange','isObject','insert','_editor','init','updateMarker','rethrowUnexpectedError','_setSuggestionRange','substr','getChangedMarkers','_checkSuggestionCorrectness','activeMarkers','addClass','options','selection','getRanges','highest','getUser','delete','dataReady','_getExternalAuthor','isTouching','isRemovable','elementStart','formatInline:accept','lowest','createSelection','never','markBlockFormat','length','position','_saved','split','normal','add','get','containsItem','pluginName','requires','TrackChangesEditing','containsRange','suggestion-type','_getAuthorFromId','getMarkers','dataDowncast','suggestionUnloaded','suggestion:','set','schema','_customCallbacks','detach','range','markDeletion','markerToData','trackChanges','data','removed','getIntersection','previous','multipleBlocks','registerCustomCallback','head','createElement','formatBlock:accept','containsRangeInObject','markerReady','change','_cutOutSuggestionMarker','authorName','splice','formatBlock:chain','getItems','acceptSelectedSuggestions','_setSuggestionData','data-suggestion','track-changes-adapter-already-set','map','hasCommentThread','isExternal','createPositionAt','getShiftedBy','_updateSuggestionData','addSuggestion','_trackFormatChanges','_suggestionFactory','insertion:','nodeBefore','formatInline','_handleNewSuggestionMarker','bindElementToMarker','track-changes-suggestion-not-found','from','ck-suggestion-marker-formatBlock','isLocal','end','batch','isCollapsed','getCustomProperty','track-changes-suggestion-data-mismatch','listenTo','addMarker:suggestion','CommentsRepository','suggestion','suggestionChanged','parent','ck-suggestion-marker--active','Users','notReady','updateSuggestion','values','clone','removeMarker:suggestion:formatBlock','dataToMarker','_refreshSuggestionsChain','_findSuggestions','isIntersectingWithRange','type','targetPosition','define','getSuggestion','element','addCommentThread','writer','hasComments','ready','commands','getSuggestions','deletion','isBlock','model','nodeAfter','deletion:','getMultiRangeId','commentThread','formatInline:chain','markers','value','splitPosition','_mergeNestedSuggestions','execute','root','_isForcedDefaultExecutionBlock','markerToHighlight','ck-suggestion-marker-','document','getChanges','getFirstMarker','getNearestSelectionRange','getSuggestionCallback','PENDING_ACTION_SUGGESTION','removeComment','isMultiRange','group','stop','addHighlight','addMarker','multi','insertion:join','fromCharCode','removeClass','_addThreadToSuggestion','createRange','high','toJSON','addMarkerName','fromRange','registerPostFixer','getAncestors','accepted','@external','error-saving-suggestion-data-suggestion-discarded','documentSelection','acceptAllSuggestions','_adapter','plugins','markInsertion','filter','markMultiRangeBlockFormat','_enabledCommands','isUndo','config','getWalker','_commentsRepository','consume','toViewElement','join','_createSuggestion','trackChanges.trackFormatChanges','PendingActions','push','elementEnd','for','_suggestions','insertion','isBefore','enableCommand','reconvertMarker','upcast','fire','forceDefaultExecution','discardSelectedSuggestions','clear','editor','formatGroupId','isLimit','refresh','trackChanges.mergeNestedSuggestions','_addSuggestionMarker','_joinWithAdjacentSuggestions','containsPosition','_registerDefaultCallbacks','addMarker:suggestion:formatBlock','consumable','addSuggestionData','newRange','formatBlock','buildSuggestion','deleteContent','rootName','name','ck-suggestion-marker','isDocumentOperation','_defaultCallbacks','getLastMatchingPosition','deletion:chain','formatInline:discard','includes','mapper','resolve','_removeSuggestion','isEqual','createdAt','isOwn','external:','applyOperation','default','change:_saved','creator'];(function(_0x1f0853,_0x445ce8){const _0x3cc073=function(_0x4a8b22){while(--_0x4a8b22){_0x1f0853['push'](_0x1f0853['shift']());}};_0x3cc073(++_0x445ce8);}(_0x445c,0xe6));const _0x3cc0=function(_0x1f0853,_0x445ce8){_0x1f0853=_0x1f0853-0x0;let _0x3cc073=_0x445c[_0x1f0853];return _0x3cc073;};import{Plugin as _0x294816,PendingActions as _0x1cabea}from'ckeditor5/src/core';import{LiveRange as _0x4b431b}from'ckeditor5/src/engine';import{CKEditorError as _0x352f3d,uid as _0x29dde6,priorities as _0x39fcb1,logWarning as _0x512b36}from'ckeditor5/src/utils';import{toWidget as _0x526dc8}from'ckeditor5/src/widget';import{Users as _0x49dde2,hashObject as _0x17e8a1}from'ckeditor5-collaboration/src/collaboration-core';import _0x4b8acc from'./commands/trackchangescommand';import _0x3c867c from'./commands/acceptsuggestioncommand';import _0x89ac98 from'./commands/discardsuggestioncommand';import _0x1156fe from'./commands/executeonallsuggestionscommand';import _0x2fccee from'./commands/executeonselectedsuggestionscommand';import _0x1bda2a from'./suggestion';import _0x2edd7c from'./suggestiondescriptionfactory';import _0x425b75 from'./integrations/alignment';import _0x369667 from'./integrations/basicstyles';import _0x250293 from'./integrations/blockquote';import _0x240b2b from'./integrations/ckbox';import _0x3d2007 from'./integrations/codeblock';import _0x1d7607 from'./integrations/comments';import _0x39e631 from'./integrations/deletecommand';import _0x430e69 from'./integrations/documentlist';import _0x192c8f from'./integrations/entercommand';import _0x1c76f0 from'./integrations/findandreplace';import _0x40a97a from'./integrations/font';import _0x14bf93 from'./integrations/formatpainter';import _0x521ccc from'./integrations/heading';import _0x2aa956 from'./integrations/highlight';import _0x42e05e from'./integrations/horizontalline';import _0x4c023e from'./integrations/htmlembed';import _0x1d9489 from'./integrations/image';import _0x25cd74 from'./integrations/imagereplace';import _0x3f6c9b from'./integrations/importword';import _0x1ece04 from'./integrations/indent';import _0x2757a9 from'./integrations/inputcommand';import _0x28c13c from'./integrations/link';import _0x6423a4 from'./integrations/list';import _0x2bc1f0 from'./integrations/listproperties';import _0x167f8f from'./integrations/mediaembed';import _0x2f9922 from'./integrations/mention';import _0x21e79b from'./integrations/pagebreak';import _0x234507 from'./integrations/paragraph';import _0xebcea1 from'./integrations/removeformat';import _0x4e9827 from'./integrations/restrictededitingmode';import _0x443267 from'./integrations/shiftentercommand';import _0x59d316 from'./integrations/standardeditingmode';import _0x45c07b from'./integrations/style';import _0x571ef from'./integrations/table';import _0x4924ef from'./integrations/tablemergesplit';import _0x1fe183 from'./integrations/tableheadings';import _0x53e2c8 from'./integrations/tableclipboard';import _0x2a142f from'./integrations/tablecolumnresize';import _0x1e965e from'./integrations/template';import _0xdcb17f from'./integrations/tableofcontents';import _0x2ffdcd from'./integrations/title';import _0x235e46 from'./integrations/undo';import{getTranslation as _0x5b8049}from'./utils/common-translations';import _0xff5417 from'./integrations/tablecaption';import _0x5b630d from'./integrations/documentlistproperties';import _0x14c8f4 from'./integrations/tableproperties';export default class p extends _0x294816{static get[_0x3cc0('0xd4')](){return[_0x3cc0('0x113'),_0x49dde2,_0x1cabea,_0x425b75,_0x369667,_0x250293,_0x240b2b,_0x3d2007,_0x1d7607,_0x39e631,_0x430e69,_0x5b630d,_0x192c8f,_0x1c76f0,_0x40a97a,_0x14bf93,_0x521ccc,_0x2aa956,_0x42e05e,_0x4c023e,_0x1d9489,_0x25cd74,_0x3f6c9b,_0x1ece04,_0x2757a9,_0x28c13c,_0x6423a4,_0x2bc1f0,_0x167f8f,_0x2f9922,_0x21e79b,_0x234507,_0xebcea1,_0x4e9827,_0x443267,_0x59d316,_0x45c07b,_0x571ef,_0x4924ef,_0x1fe183,_0xff5417,_0x53e2c8,_0x2a142f,_0xdcb17f,_0x14c8f4,_0x1e965e,_0x2ffdcd,_0x235e46];}static get[_0x3cc0('0xd3')](){return _0x3cc0('0xd5');}constructor(_0x14b6ad){function _0x15f9aa(_0x83ae84){return _0x83ae84[_0x3cc0('0xfa')](_0x43e0e1=>String[_0x3cc0('0xb')](_0x43e0e1))[_0x3cc0('0x26')]('');}super(_0x14b6ad),this[_0x3cc0('0xdd')](_0x3cc0('0xb9'),[]),this['on'](_0x3cc0('0x9b'),(_0x17f9fe,_0x32eca7,_0x2f34e2,_0x50d0ee)=>{this[_0x3cc0('0xa6')][_0x3cc0('0xf0')](()=>{for(const _0x430cc6 of[..._0x50d0ee,..._0x2f34e2])this['_model'][_0x3cc0('0x135')]['has'](_0x430cc6)&&_0x14b6ad['editing'][_0x3cc0('0x31')](_0x430cc6);});}),this[_0x3cc0('0x93')]=new _0x2edd7c(this[_0x3cc0('0x37')]['model']['schema'],this['editor'][_0x3cc0('0x67')]),this[_0x3cc0('0x1a')]=null,this[_0x3cc0('0x102')]=new Dt(this[_0x3cc0('0x37')]),this[_0x3cc0('0x2d')]=new Map(),this[_0x3cc0('0x23')]=_0x14b6ad[_0x3cc0('0x1b')][_0x3cc0('0xd1')]('CommentsRepository'),this['_enabledCommands']=new Set(),this[_0x3cc0('0xa6')]=this[_0x3cc0('0x37')][_0x3cc0('0x12f')],this['_suggestionState']=new WeakMap(),this[_0x3cc0('0x13b')]=!0x1,_0x14b6ad[_0x3cc0('0x21')][_0x3cc0('0x124')](_0x3cc0('0x28'),_0x3cc0('0x58')),this[_0x3cc0('0x101')]=_0x14b6ad[_0x3cc0('0x21')][_0x3cc0('0xd1')]('trackChanges.trackFormatChanges'),_0x14b6ad['config'][_0x3cc0('0x124')](_0x3cc0('0x3b'),!0x0),this[_0x3cc0('0x138')]=_0x14b6ad[_0x3cc0('0x21')][_0x3cc0('0xd1')](_0x3cc0('0x3b')),this[_0x3cc0('0x7a')]=new _0x4b8acc(_0x14b6ad,this[_0x3cc0('0x1f')]),this[_0x15f9aa([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x15f9aa([0x34,0x30,0x34,0x36,0x31,0x34,0x31,0x32]);}[_0x3cc0('0xb2')](){const _0x139679=this[_0x3cc0('0x37')];_0x139679[_0x3cc0('0x5c')][_0x3cc0('0x2c')](_0x3cc0('0x90'))[_0x3cc0('0x13c')]({'model':_0x3cc0('0x114'),'view':_0x829a7a=>{const {id:_0x16d97a,type:_0x38fe10}=this[_0x3cc0('0x69')](_0x829a7a[_0x3cc0('0x73')]),_0x4a3a2d=[_0x3cc0('0x49'),_0x3cc0('0x13d')+_0x38fe10];let _0x44ab8d=0xbb8;return this[_0x3cc0('0xb9')][_0x3cc0('0x4f')](_0x829a7a[_0x3cc0('0x73')])&&(_0x4a3a2d[_0x3cc0('0x2a')](_0x3cc0('0x117')),_0x44ab8d=0xbc2),'deletion'==_0x38fe10&&(_0x44ab8d+=0x5),{'classes':_0x4a3a2d,'attributes':{'data-suggestion':_0x16d97a},'priority':_0x44ab8d};}}),_0x139679[_0x3cc0('0x5c')]['for'](_0x3cc0('0xda'))[_0x3cc0('0xd0')](_0x1e472d=>{_0x1e472d['on'](_0x3cc0('0x112'),(_0x44c9e0,_0x3bade4,_0x1a61da)=>{if(!_0x1a61da[_0x3cc0('0xbb')][_0x3cc0('0xa1')])return;const _0x345f4b=_0x3bade4[_0x3cc0('0x7d')];if(!_0x345f4b)return;const _0x8b5cbe=_0x1a61da[_0x3cc0('0x50')][_0x3cc0('0x25')](_0x345f4b);_0x139679[_0x3cc0('0x12f')]['schema']['isObject'](_0x345f4b)&&_0x8b5cbe&&!_0x8b5cbe['getCustomProperty'](_0x3cc0('0x6f'))&&_0x8b5cbe['is']('containerElement')&&_0x526dc8(_0x8b5cbe,_0x1a61da[_0x3cc0('0x128')]);},{'priority':_0x3cc0('0xf')});}),_0x139679[_0x3cc0('0x5c')][_0x3cc0('0x2c')](_0x3cc0('0xda'))[_0x3cc0('0x13c')]({'model':'suggestion','view':(_0x1c3b9d,_0x317169)=>{if(!_0x317169[_0x3cc0('0xbb')]['showSuggestionHighlights'])return null;const {type:_0x539519}=this[_0x3cc0('0x69')](_0x1c3b9d[_0x3cc0('0x73')]);return{'classes':[_0x3cc0('0x49'),'ck-suggestion-marker-'+_0x539519],'priority':0xbb8};}});const _0x3343f2=({showActiveMarkers:_0x2a46db=!0x0}={})=>(_0x40dedc,_0x22aaf8,_0x23e0a0)=>{if(!_0x22aaf8[_0x3cc0('0x7d')])return;if(_0x22aaf8[_0x3cc0('0x7d')]['is'](_0x3cc0('0xbc')))return void _0x23e0a0['consumable'][_0x3cc0('0x24')](_0x22aaf8[_0x3cc0('0x7d')],_0x40dedc[_0x3cc0('0x48')]);const _0x44bd8f=_0x23e0a0['mapper'][_0x3cc0('0x25')](_0x22aaf8[_0x3cc0('0x7d')]);if(!(_0x22aaf8['item']['is']('element')&&_0x139679[_0x3cc0('0x12f')][_0x3cc0('0xde')][_0x3cc0('0x12e')](_0x22aaf8['item'])&&!_0x44bd8f['getCustomProperty'](_0x3cc0('0x7'))))return;const {id:_0x273273}=this[_0x3cc0('0x69')](_0x22aaf8[_0x3cc0('0x73')]);_0x23e0a0[_0x3cc0('0x128')][_0x3cc0('0xba')]([_0x3cc0('0x49'),_0x3cc0('0x10a')],_0x44bd8f),_0x23e0a0[_0x3cc0('0x128')]['setAttribute'](_0x3cc0('0xf8'),_0x273273,_0x44bd8f),_0x23e0a0[_0x3cc0('0x50')][_0x3cc0('0x107')](_0x44bd8f,_0x22aaf8['markerName']),_0x2a46db&&(this[_0x3cc0('0xb9')][_0x3cc0('0x4f')](_0x22aaf8['markerName'])?_0x23e0a0['writer'][_0x3cc0('0xba')](_0x3cc0('0x117'),_0x44bd8f):_0x23e0a0[_0x3cc0('0x128')][_0x3cc0('0xc')](_0x3cc0('0x117'),_0x44bd8f));for(const _0x2be561 of _0x139679['model'][_0x3cc0('0x65')](_0x22aaf8[_0x3cc0('0x7d')])[_0x3cc0('0xf5')]())_0x23e0a0['consumable']['consume'](_0x2be561,_0x40dedc[_0x3cc0('0x48')]);_0x23e0a0[_0x3cc0('0x41')]['consume'](_0x22aaf8['item'],_0x40dedc[_0x3cc0('0x48')]);};_0x139679[_0x3cc0('0x5c')][_0x3cc0('0x2c')]('dataDowncast')['add'](_0x329c2d=>{_0x329c2d['on']('addMarker:suggestion:formatBlock',(_0x46306d,_0x2d9cc6,_0x316848)=>{_0x316848[_0x3cc0('0xbb')]['showSuggestionHighlights']&&_0x3343f2({'showActiveMarkers':!0x1})(_0x46306d,_0x2d9cc6,_0x316848);},{'priority':_0x3cc0('0xbe')});}),_0x139679[_0x3cc0('0x5c')]['for'](_0x3cc0('0xda'))[_0x3cc0('0xe3')]({'model':_0x3cc0('0x114'),'view':(_0x88ce75,_0x1e41ca)=>_0x1e41ca[_0x3cc0('0xbb')][_0x3cc0('0xa1')]?null:{'group':_0x3cc0('0x114'),'name':_0x88ce75[_0x3cc0('0xb6')](0xb)}}),_0x139679[_0x3cc0('0x5c')][_0x3cc0('0x2c')](_0x3cc0('0x32'))[_0x3cc0('0x79')]({'view':{'name':_0x3cc0('0x114'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2fc32f,{writer:_0x52a0c5})=>{let _0x4b216d=_0x3cc0('0xdc')+_0x2fc32f['getAttribute'](_0x3cc0('0xd7'))+':'+_0x2fc32f[_0x3cc0('0x87')]('id');return _0x2fc32f[_0x3cc0('0x87')](_0x3cc0('0x64'))&&(_0x4b216d+=':'+_0x2fc32f[_0x3cc0('0x87')]('marker-count')),_0x52a0c5[_0x3cc0('0xec')]('$marker',{'data-name':_0x4b216d});}}),_0x139679[_0x3cc0('0x5c')]['for'](_0x3cc0('0x32'))[_0x3cc0('0x11e')]({'view':_0x3cc0('0x114')}),_0x139679[_0x3cc0('0x5c')][_0x3cc0('0x2c')](_0x3cc0('0x90'))[_0x3cc0('0xd0')](_0x3322d1=>{_0x3322d1['on'](_0x3cc0('0x40'),_0x3343f2(),{'priority':'high'});}),_0x139679[_0x3cc0('0x5c')][_0x3cc0('0x2c')](_0x3cc0('0x90'))[_0x3cc0('0xd0')](_0x2b2e48=>{_0x2b2e48['on'](_0x3cc0('0x11d'),(_0x31ab7a,_0x2c1858,_0x3a213f)=>{const _0xda3841=_0x3a213f['mapper']['markerNameToElements'](_0x2c1858[_0x3cc0('0x73')]);if(_0xda3841)for(const _0x160004 of _0xda3841)_0x160004[_0x3cc0('0x10f')](_0x3cc0('0x7'))||(_0x3a213f[_0x3cc0('0x128')][_0x3cc0('0xc')]([_0x3cc0('0x49'),_0x3cc0('0x10a'),'ck-suggestion-marker--active'],_0x160004),_0x3a213f[_0x3cc0('0x128')]['removeAttribute'](_0x3cc0('0xf8'),_0x160004),_0x3a213f['mapper']['unbindElementFromMarkerName'](_0x160004,_0x2c1858[_0x3cc0('0x73')]));},{'priority':_0x3cc0('0xf')});}),_0x139679[_0x3cc0('0x12f')][_0x3cc0('0x13e')][_0x3cc0('0x13')](_0x5cd0d5=>{let _0x3064e3=!0x1;const _0x71ce4c=Array['from'](_0x139679[_0x3cc0('0x12f')][_0x3cc0('0x13e')][_0x3cc0('0xa5')][_0x3cc0('0xb7')]()),_0x5aa45f=new Set();for(const {name:_0x365861,data:_0x3b5882}of _0x71ce4c){const {group:_0x25049a,type:_0x5f32d8,id:_0x46fc2d}=this[_0x3cc0('0x69')](_0x365861);if(_0x3cc0('0x114')!==_0x25049a)continue;const _0x4be194=this[_0x3cc0('0x2d')][_0x3cc0('0xd1')](_0x46fc2d);if(null!=_0x3b5882[_0x3cc0('0x43')]){_0x3cc0('0x105')==_0x5f32d8&&(_0x3064e3=_0x3064e3||Mt(_0x3b5882['newRange'],_0x365861,_0x5cd0d5,_0x139679['model']['schema']));if(_0x3b5882[_0x3cc0('0x43')]['isCollapsed']||_0x3cc0('0x8f')==_0x3b5882[_0x3cc0('0x43')]['root']['rootName']||_0x3cc0('0x44')==_0x5f32d8&&!Nt(_0x3b5882['newRange'])||'deletion'==_0x5f32d8&&!(!_t(_0x35f5ab=_0x3b5882[_0x3cc0('0x43')])&&!function(_0x31c0e3){return _0x31c0e3[_0x3cc0('0xab')][_0x3cc0('0x116')]==_0x31c0e3[_0x3cc0('0x10c')][_0x3cc0('0x104')]&&_0x31c0e3[_0x3cc0('0xab')]['isAtEnd'];}(_0x35f5ab)))_0x5cd0d5[_0x3cc0('0x71')](_0x365861),_0x3064e3=!0x0;else{if(!_0x4be194||!_0x4be194['isInContent'])continue;_0x5aa45f[_0x3cc0('0xd0')](_0x4be194);}}}var _0x35f5ab;return _0x5aa45f['size']>0x0&&(_0x3064e3=!!this[_0x3cc0('0x3d')](_0x5aa45f)||_0x3064e3),_0x3064e3;}),_0x139679['model']['document'][_0x3cc0('0x13')](_0x42b28c=>{let _0x420257=!0x1;for(const _0x4b7ca2 of _0x139679[_0x3cc0('0x12f')][_0x3cc0('0x13e')][_0x3cc0('0xa5')][_0x3cc0('0x13f')]()){if(_0x3cc0('0xb0')!=_0x4b7ca2[_0x3cc0('0x122')])continue;const _0x4573db=_0x4b7ca2['position'][_0x3cc0('0xfe')](_0x4b7ca2[_0x3cc0('0xcb')]);if(_0x4573db['isAtEnd'])for(const _0x541960 of this['_suggestions'][_0x3cc0('0x11b')]()){if(_0x541960['isMultiRange']||!_0x541960[_0x3cc0('0xa8')])continue;if(_0x3cc0('0x44')!=_0x541960[_0x3cc0('0x122')])continue;const _0x123c6d=_0x541960[_0x3cc0('0x74')]();if(_0x123c6d[_0x3cc0('0xab')]['parent']!=_0x123c6d[_0x3cc0('0x10c')][_0x3cc0('0x116')]&&_0x123c6d[_0x3cc0('0x10c')][_0x3cc0('0x53')](_0x4b7ca2[_0x3cc0('0xcc')])){const _0x434e1c=_0x139679['model'][_0x3cc0('0xe')](_0x123c6d[_0x3cc0('0xab')],_0x4573db);_0x42b28c['updateMarker'](_0x541960[_0x3cc0('0x140')](),{'range':_0x434e1c}),_0x420257=!0x0;}}}return _0x420257;}),_0x139679['model'][_0x3cc0('0x135')]['on']('update:suggestion',(_0x3e04b4,_0x25c4ff,_0x41d56f)=>{if(null==_0x41d56f){const {id:_0x44e0fd}=this[_0x3cc0('0x69')](_0x25c4ff[_0x3cc0('0x48')]),_0xa2ae1c=this[_0x3cc0('0x2d')][_0x3cc0('0xd1')](_0x44e0fd);_0xa2ae1c&&_0xa2ae1c[_0x3cc0('0x11')](_0x25c4ff[_0x3cc0('0x48')]);}}),_0x139679[_0x3cc0('0x12f')]['document']['on']('change:data',()=>{const _0x258ce3=Array[_0x3cc0('0x109')](_0x139679['model'][_0x3cc0('0x13e')][_0x3cc0('0xa5')]['getChangedMarkers']())[_0x3cc0('0x1d')](_0x407a67=>'suggestion'===this[_0x3cc0('0x69')](_0x407a67[_0x3cc0('0x48')])[_0x3cc0('0x5')]);if(0x0===_0x258ce3[_0x3cc0('0xcb')])return;_0x258ce3['sort']((_0x18a57d,_0x2914b0)=>{const _0x2c086e=_0x18a57d['data'][_0x3cc0('0x72')],_0x25182b=_0x2914b0[_0x3cc0('0xe5')][_0x3cc0('0x72')];return null===_0x2c086e&&null===_0x25182b?0x0:null===_0x2c086e&&null!==_0x25182b?-0x1:null!==_0x2c086e&&null===_0x25182b?0x1:_0x2c086e[_0x3cc0('0xab')][_0x3cc0('0x2f')](_0x25182b[_0x3cc0('0xab')])?-0x1:0x1;});const _0x52ac04=new Set(),_0x2adc10=new Set();for(const {name:_0x154719,data:_0x26adc1}of _0x258ce3){const {id:_0x7821a4}=this['_splitMarkerName'](_0x154719);if(null===_0x26adc1[_0x3cc0('0x72')]){const _0x49eff3=this['_handleNewSuggestionMarker'](_0x154719);_0x2adc10[_0x3cc0('0xd0')](_0x49eff3);}else{const _0x301c4b=this[_0x3cc0('0x2d')][_0x3cc0('0xd1')](_0x7821a4);null!==_0x26adc1[_0x3cc0('0x43')]||_0x301c4b['isInContent']?(_0x52ac04[_0x3cc0('0xd0')](_0x301c4b[_0x3cc0('0xeb')]),_0x2adc10['add'](_0x301c4b)):this[_0x3cc0('0x52')](_0x301c4b);}}_0x2adc10[_0x3cc0('0xa9')]>0x0&&this[_0x3cc0('0x11f')](_0x2adc10);for(const _0x419fd4 of _0x52ac04)this[_0x3cc0('0x33')](_0x3cc0('0x115'),_0x419fd4);}),_0x139679[_0x3cc0('0x12f')]['on'](_0x3cc0('0x57'),(_0x5949ba,_0x3a685c)=>{const _0x5d9df1=_0x3a685c[0x0];if(!this[_0x3cc0('0x2d')][_0x3cc0('0xa9')])return;if(!_0x5d9df1[_0x3cc0('0x4a')])return;if(_0x5d9df1['batch'][_0x3cc0('0x20')]||!_0x5d9df1[_0x3cc0('0x10d')][_0x3cc0('0x10b')])return;let _0x2b5383,_0x27922e;switch(_0x5d9df1[_0x3cc0('0x122')]){case'insert':_0x2b5383=_0x139679['model'][_0x3cc0('0xfd')](_0x5d9df1[_0x3cc0('0xcc')]),_0x27922e=_0x2b5383['getShiftedBy'](_0x5d9df1['howMany']);break;case'split':_0x2b5383=_0x139679[_0x3cc0('0x12f')][_0x3cc0('0xfd')](_0x5d9df1[_0x3cc0('0x137')]),_0x27922e=_0x139679[_0x3cc0('0x12f')][_0x3cc0('0xfd')](_0x5d9df1[_0x3cc0('0x81')]);break;case'move':_0x2b5383=_0x139679[_0x3cc0('0x12f')]['createPositionAt'](_0x5d9df1[_0x3cc0('0x123')]),_0x27922e=_0x2b5383['getShiftedBy'](_0x5d9df1[_0x3cc0('0xa7')]);break;default:return;}const _0x5a9de0=_0x139679[_0x3cc0('0x12f')][_0x3cc0('0xe')](_0x2b5383,_0x27922e);_0x139679[_0x3cc0('0x12f')]['change'](()=>{for(const {suggestion:_0x1940f5,meta:_0x3c7e15}of this[_0x3cc0('0x120')](_0x5a9de0)){if(_0x1940f5[_0x3cc0('0x4')])continue;if('formatInline'==_0x1940f5[_0x3cc0('0x122')])continue;const _0x1a0c21=_0x1940f5[_0x3cc0('0xe5')]&&_0x1940f5[_0x3cc0('0xe5')][_0x3cc0('0xe9')];('formatBlock'!=_0x1940f5['type']||'split'==_0x5d9df1['type']&&!_0x1a0c21)&&(_0x3c7e15[_0x3cc0('0xee')]||_0x3cc0('0x2e')==_0x1940f5[_0x3cc0('0x122')]&&_0x3c7e15[_0x3cc0('0x55')]||_0x1940f5[_0x3cc0('0x74')]()[_0x3cc0('0xd6')](_0x5a9de0)&&this['_breakSuggestionMarker'](_0x1940f5,_0x2b5383,_0x27922e));}});},{'priority':_0x3cc0('0xc7')}),_0x139679[_0x3cc0('0x12f')]['on'](_0x3cc0('0x46'),(_0x374758,_0x1ecbd4)=>{const _0x35b13f=_0x1ecbd4[0x0],_0x30edfc=_0x1ecbd4[0x1];if(_0x30edfc&&_0x30edfc[_0x3cc0('0x34')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x35b13f[_0x3cc0('0x10e')])return;const _0x3d0f9=_0x139679[_0x3cc0('0x12f')]['schema'],{start:_0x5da603,end:_0x1934fe}=_0x35b13f[_0x3cc0('0x74')](),_0xb15961=_0x5da603['nodeAfter']&&_0x3d0f9[_0x3cc0('0x39')](_0x5da603[_0x3cc0('0x130')])?null:_0x3d0f9[_0x3cc0('0x0')](_0x5da603,_0x3cc0('0x8d')),_0x92950c=_0x1934fe[_0x3cc0('0x104')]&&_0x3d0f9[_0x3cc0('0x39')](_0x1934fe[_0x3cc0('0x104')])?null:_0x3d0f9[_0x3cc0('0x0')](_0x1934fe,_0x3cc0('0x5f')),_0x3a58b2=_0x139679[_0x3cc0('0x12f')][_0x3cc0('0xe')](_0xb15961?_0xb15961[_0x3cc0('0xab')]:_0x5da603,_0x92950c?_0x92950c[_0x3cc0('0x10c')]:_0x1934fe);_0x139679[_0x3cc0('0x12f')][_0x3cc0('0xf0')](_0xd832e5=>{this[_0x3cc0('0xe2')](_0x3a58b2);const _0x743df9=_0x139679[_0x3cc0('0x12f')]['schema'][_0x3cc0('0x0')](_0x3a58b2[_0x3cc0('0xab')]);_0x35b13f['is'](_0x3cc0('0x18'))?_0xd832e5[_0x3cc0('0x92')](_0x743df9):_0x35b13f[_0x3cc0('0x5e')](_0x743df9);}),_0x374758[_0x3cc0('0x6')]();},{'priority':_0x39fcb1[_0x3cc0('0xcf')]+0xa}),_0x139679['model']['on'](_0x3cc0('0x61'),(_0x5d14c4,_0x243393)=>{const _0x20696e=_0x243393[_0x243393[_0x3cc0('0xcb')]-0x1];_0x20696e&&_0x20696e[_0x3cc0('0x34')]||this[_0x3cc0('0x13b')]||this[_0x3cc0('0x7a')][_0x3cc0('0x136')]&&(_0x139679[_0x3cc0('0x12f')]['change'](()=>{let _0x3d8055=_0x139679[_0x3cc0('0x12f')]['insertContent'](_0x243393[0x0],_0x243393[0x1],_0x243393[0x2],{'forceDefaultExecution':!0x0});if(!_0x3d8055)return;_0x5d14c4['return']=_0x3d8055[_0x3cc0('0x11c')]();const _0xc12982=_0x3d8055[_0x3cc0('0x10c')][_0x3cc0('0x104')],_0x1a1ebc=_0x139679[_0x3cc0('0x12f')]['schema'];_0xc12982&&_0x1a1ebc[_0x3cc0('0x12e')](_0xc12982)&&!_0x1a1ebc[_0x3cc0('0xaf')](_0xc12982)&&(_0x3d8055=_0x139679[_0x3cc0('0x12f')]['createRange'](_0x3d8055[_0x3cc0('0xab')],_0x139679['model'][_0x3cc0('0xfd')](_0xc12982,_0x3cc0('0x10c')))),this[_0x3cc0('0x1c')](_0x3d8055);}),_0x5d14c4[_0x3cc0('0x6')]());},{'priority':_0x3cc0('0xf')}),this[_0x3cc0('0x37')][_0x3cc0('0x12b')][_0x3cc0('0xd0')](_0x3cc0('0xe4'),this[_0x3cc0('0x7a')]),this[_0x3cc0('0x30')](_0x3cc0('0xe4'));const _0x283eff=new _0x3c867c(_0x139679,this[_0x3cc0('0x2d')]);_0x139679['commands'][_0x3cc0('0xd0')]('acceptSuggestion',_0x283eff),this[_0x3cc0('0x30')]('acceptSuggestion');const _0x1cf63d=new _0x89ac98(_0x139679,this[_0x3cc0('0x2d')]);_0x139679[_0x3cc0('0x12b')]['add']('discardSuggestion',_0x1cf63d),this[_0x3cc0('0x30')](_0x3cc0('0xad')),_0x139679['commands'][_0x3cc0('0xd0')]('acceptAllSuggestions',new _0x1156fe(_0x139679,_0x283eff,this['_suggestions'])),this[_0x3cc0('0x30')](_0x3cc0('0x19')),_0x139679[_0x3cc0('0x12b')][_0x3cc0('0xd0')](_0x3cc0('0x99'),new _0x1156fe(_0x139679,_0x1cf63d,this[_0x3cc0('0x2d')])),this[_0x3cc0('0x30')](_0x3cc0('0x99')),_0x139679[_0x3cc0('0x12b')][_0x3cc0('0xd0')](_0x3cc0('0xf6'),new _0x2fccee(_0x139679,_0x283eff,this[_0x3cc0('0x2d')])),this[_0x3cc0('0x30')](_0x3cc0('0xf6')),_0x139679[_0x3cc0('0x12b')][_0x3cc0('0xd0')](_0x3cc0('0x35'),new _0x2fccee(_0x139679,_0x1cf63d,this[_0x3cc0('0x2d')])),this[_0x3cc0('0x30')](_0x3cc0('0x35'));const _0x3219e6=_0x139679[_0x3cc0('0x1b')][_0x3cc0('0xd1')](_0x3cc0('0x113'));this[_0x3cc0('0x111')](_0x3219e6,_0x3cc0('0x68'),(_0x8acd2f,{threadId:_0x11905b})=>{const _0x2c418b=this[_0x3cc0('0x2d')]['get'](_0x11905b);_0x2c418b&&_0x2c418b[_0x3cc0('0x133')]&&0x1===_0x2c418b[_0x3cc0('0x133')][_0x3cc0('0xcb')]&&this[_0x3cc0('0xff')](_0x11905b,{'hasComments':!0x0});},{'priority':_0x3cc0('0x8b')}),this[_0x3cc0('0x111')](_0x3219e6,_0x3cc0('0x3'),(_0x221b36,{threadId:_0x10d3c3})=>{const _0xe972ff=this[_0x3cc0('0x2d')]['get'](_0x10d3c3);_0xe972ff&&_0xe972ff[_0x3cc0('0x133')]&&!_0xe972ff[_0x3cc0('0x133')][_0x3cc0('0xcb')]&&this[_0x3cc0('0xff')](_0x10d3c3,{'hasComments':!0x1});},{'priority':_0x3cc0('0x8b')});}set[_0x3cc0('0x83')](_0x2efe5c){if(this[_0x3cc0('0x1a')])throw new _0x352f3d(_0x3cc0('0xf9'),this);this['_adapter']=_0x2efe5c;}get[_0x3cc0('0x83')](){return this[_0x3cc0('0x1a')];}[_0x3cc0('0x12c')]({skipNotAttached:_0x3f028d=!0x1,toJSON:_0x4cdf31=!0x1}={}){const _0x5bf3ef=[];for(const _0x553287 of this[_0x3cc0('0x2d')]['values']())_0x3f028d&&!_0x553287[_0x3cc0('0xa8')]||_0x5bf3ef[_0x3cc0('0x2a')](_0x553287);return _0x4cdf31?_0x5bf3ef[_0x3cc0('0xfa')](_0x13f525=>_0x13f525[_0x3cc0('0x10')]()):_0x5bf3ef;}[_0x3cc0('0x125')](_0xd11c0c){const _0x5b9885=this['_suggestions']['get'](_0xd11c0c);if(!_0x5b9885)throw new _0x352f3d(_0x3cc0('0x108'),this);return _0x5b9885;}[_0x3cc0('0x97')](_0x46af1c){return this[_0x3cc0('0x2d')][_0x3cc0('0x6d')](_0x46af1c);}[_0x3cc0('0x42')](_0x43ece4){const {authorId:_0x6211a1,id:_0x4cd6be,attributes:_0x46053c}=_0x43ece4,[_0x26077d,_0x308df4]=_0x43ece4[_0x3cc0('0x122')][_0x3cc0('0xce')](':'),_0x36533d=this[_0x3cc0('0x2d')][_0x3cc0('0xd1')](_0x4cd6be)||this[_0x3cc0('0x27')](_0x26077d,_0x308df4,_0x4cd6be,_0x6211a1,_0x46053c);if(this[_0x3cc0('0xd')](_0x36533d),this[_0x3cc0('0xb8')](_0x36533d,_0x26077d,_0x308df4||null,_0x6211a1),_0x36533d[_0x3cc0('0x54')]=_0x43ece4['createdAt'],_0x46053c&&_0x46053c[_0x3cc0('0x16')]){const _0x2fc851=_0x46053c[_0x3cc0('0x16')],_0x1668d4=this[_0x3cc0('0xc2')](_0x2fc851[_0x3cc0('0xf2')]);_0x36533d[_0x3cc0('0x6c')]=_0x2fc851[_0x3cc0('0x54')],_0x36533d['author']=_0x1668d4,_0x36533d[_0x3cc0('0xfc')]=!0x0;}else _0x36533d[_0x3cc0('0x6c')]=_0x43ece4[_0x3cc0('0x54')];switch(_0x43ece4[_0x3cc0('0xe5')]&&(_0x36533d[_0x3cc0('0xe5')]=_0x43ece4[_0x3cc0('0xe5')]),_0x43ece4[_0x3cc0('0x60')]&&(_0x36533d[_0x3cc0('0x60')]=_0x43ece4[_0x3cc0('0x60')]),this['_adapter']&&this['_adapter'][_0x3cc0('0x100')]||(_0x36533d[_0x3cc0('0xcd')]=!0x0),this[_0x3cc0('0x8a')][_0x3cc0('0xd1')](_0x36533d)){case _0x3cc0('0x119'):this['_suggestionState']['set'](_0x36533d,'dataReady');break;case _0x3cc0('0xef'):_0x36533d[_0x3cc0('0xa8')]?(this[_0x3cc0('0x8a')]['set'](_0x36533d,_0x3cc0('0x12a')),this['fire']('suggestionLoaded',_0x36533d)):this[_0x3cc0('0x8a')][_0x3cc0('0xdd')](_0x36533d,_0x3cc0('0xe6'));}return _0x36533d;}['acceptSuggestion'](_0x52568c){this[_0x3cc0('0x34')](()=>{this[_0x3cc0('0x37')][_0x3cc0('0x12f')][_0x3cc0('0xf0')](()=>{for(const _0x589c47 of _0x52568c[_0x3cc0('0x7f')]())_0x589c47[_0x3cc0('0x94')]();});});}['discardSuggestion'](_0x5b2047){this[_0x3cc0('0x34')](()=>{this['editor']['model']['change'](()=>{for(const _0x42b39a of _0x5b2047[_0x3cc0('0x7f')]())_0x42b39a['discard']();});});}['enableCommand'](_0x34c398,_0x5a229f){const _0x28f84c=this[_0x3cc0('0x37')][_0x3cc0('0x12b')][_0x3cc0('0xd1')](_0x34c398);if(!_0x28f84c)throw new _0x352f3d('track-changes-command-not-found',this,{'commandName':_0x34c398});this[_0x3cc0('0x1f')]['add'](_0x28f84c),_0x5a229f&&_0x28f84c['on'](_0x3cc0('0x139'),(_0xc35717,_0x2def8b)=>{this['trackChangesCommand'][_0x3cc0('0x136')]&&(this[_0x3cc0('0x13b')]||_0x2def8b[_0x3cc0('0xcb')]>0x0&&_0x2def8b[_0x2def8b['length']-0x1]&&_0x2def8b[_0x2def8b[_0x3cc0('0xcb')]-0x1][_0x3cc0('0x34')]||(_0x5a229f((..._0x4c6eb3)=>_0x28f84c[_0x3cc0('0x139')](..._0x4c6eb3,{'forceDefaultExecution':!0x0}),..._0x2def8b),_0xc35717[_0x3cc0('0x6')]()));},{'priority':_0x3cc0('0xf')});}[_0x3cc0('0x34')](_0x2aa1a4){let _0x1f8ec6,_0xb0f2df;const _0x33f8a6=this[_0x3cc0('0x13b')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1f8ec6=_0x2aa1a4();}catch(_0x29f024){_0xb0f2df=_0x29f024;}return _0x33f8a6||(this[_0x3cc0('0x13b')]=!0x1),_0xb0f2df&&_0x352f3d[_0x3cc0('0xb4')](_0xb0f2df,this),_0x1f8ec6;}[_0x3cc0('0x1c')](_0x21dbc0,_0x11c7db=null,_0x5bf691={}){if(_0x21dbc0[_0x3cc0('0x10e')])return null;const _0x58faaa=this[_0x3cc0('0x37')][_0x3cc0('0x1b')]['get'](_0x3cc0('0x118'))['me'];for(const {suggestion:_0x1a6801,meta:_0x2407d3}of this['_findSuggestions'](_0x21dbc0,_0x3cc0('0x2e')))if(_0x2407d3[_0x3cc0('0x55')]){if(!_0x2407d3[_0x3cc0('0x8c')]){if(!this[_0x3cc0('0x138')]&&_0x2407d3['containsRangeInObject'])continue;return _0x1a6801;}if(_0x11c7db==_0x1a6801[_0x3cc0('0x77')]){const _0x24fe78=_0x1a6801[_0x3cc0('0x74')]();return _0x24fe78[_0x3cc0('0xab')][_0x3cc0('0x53')](_0x21dbc0[_0x3cc0('0x10c')])?this[_0x3cc0('0xb5')](_0x1a6801,this[_0x3cc0('0xa6')][_0x3cc0('0xe')](_0x21dbc0['start'],_0x24fe78[_0x3cc0('0x10c')])):this[_0x3cc0('0xb5')](_0x1a6801,this[_0x3cc0('0xa6')]['createRange'](_0x24fe78[_0x3cc0('0xab')],_0x21dbc0[_0x3cc0('0x10c')])),_0x1a6801;}}const _0x3f1c5f=_0x29dde6(),_0x30f5e9=_0x58faaa['id'],_0x514c73=_0x11c7db?'insertion:'+_0x11c7db:_0x3cc0('0x2e'),_0xa3ecf3=this[_0x3cc0('0xf7')]({'id':_0x3f1c5f,'type':_0x514c73,'createdAt':new Date(),'authorId':_0x30f5e9,'attributes':_0x5bf691});return this[_0x3cc0('0x3c')](_0x514c73,_0x3f1c5f,_0x30f5e9,_0x21dbc0),_0xa3ecf3;}['markMultiRangeInsertion'](_0x4b3382,_0x557bfe=_0x3cc0('0x9'),_0x17ead1={}){const _0x2d0732=this[_0x3cc0('0x37')][_0x3cc0('0x1b')][_0x3cc0('0xd1')](_0x3cc0('0x118'))['me'],_0x352022=this[_0x3cc0('0x102')][_0x3cc0('0x1')](_0x3cc0('0x2e'),_0x557bfe,_0x3cc0('0x26'));for(const _0x4f9c2f of this[_0x3cc0('0x12c')]())if(_0x4f9c2f[_0x3cc0('0x6e')]['id']==_0x2d0732['id']&&_0x3cc0('0x2e')==_0x4f9c2f[_0x3cc0('0x122')]&&_0x4f9c2f[_0x3cc0('0x77')]==_0x557bfe&&(_0x352022(_0x4f9c2f[_0x3cc0('0xbd')](),_0x4b3382)||_0x352022(_0x4b3382,_0x4f9c2f[_0x3cc0('0xbd')]()))){for(const _0x12db36 of _0x4b3382)_0x4f9c2f[_0x3cc0('0xae')](_0x12db36);return _0x4f9c2f;}if(this['_mergeNestedSuggestions'])for(const _0x436b5a of _0x4b3382)for(const {suggestion:_0x1d2421,meta:_0x1ba489}of this[_0x3cc0('0x120')](_0x436b5a,'insertion')){if(!_0x1ba489[_0x3cc0('0x55')])continue;let _0x2f1f69=!0x0;for(const _0x23cb8d of _0x1d2421['getRanges']())for(const _0x3b3ad0 of _0x4b3382)if(!_0x23cb8d[_0x3cc0('0xd6')](_0x3b3ad0)){_0x2f1f69=!0x1;break;}if(_0x2f1f69)return _0x1d2421;}const _0x4c1a3a=_0x29dde6(),_0x28b27a=_0x2d0732['id'],_0x57e6c5=_0x3cc0('0x103')+_0x557bfe,_0x2ca978=this[_0x3cc0('0xf7')]({'id':_0x4c1a3a,'type':_0x57e6c5,'createdAt':new Date(),'authorId':_0x28b27a,'attributes':_0x17ead1});for(const _0x2aaa94 of _0x4b3382)this[_0x3cc0('0x3c')](_0x57e6c5,_0x4c1a3a,_0x28b27a,_0x2aaa94,_0x1bda2a[_0x3cc0('0x132')]());return _0x2ca978;}[_0x3cc0('0x78')](_0x12a1b7,_0x289254,_0x43847e=null,_0x29c67e={}){if(_0x43847e=_0x43847e||$t(_0x289254),_0x12a1b7[_0x3cc0('0x10e')])return null;if(_0x3cc0('0xc9')===this[_0x3cc0('0x101')]){const _0x4b39df=this[_0x3cc0('0x102')][_0x3cc0('0x1')]('formatInline',_0x43847e,_0x3cc0('0x94'));return this['forceDefaultExecution'](()=>_0x4b39df([_0x12a1b7],_0x289254,_0x29c67e)),null;}const _0x59a3b4=this['editor']['plugins'][_0x3cc0('0xd1')](_0x3cc0('0x118'))['me'],_0x4d36ea=[];if('always'!==this[_0x3cc0('0x101')])for(const {suggestion:_0x401b53,meta:_0x33f757}of this[_0x3cc0('0x120')](_0x12a1b7,_0x3cc0('0x2e')))_0x33f757[_0x3cc0('0x55')]&&!_0x33f757[_0x3cc0('0x80')]&&_0x4d36ea[_0x3cc0('0x2a')](..._0x401b53[_0x3cc0('0xbd')]());const _0x54b5bf=function(_0xb31020,_0x496778){const _0x2e759b=[];for(const _0x1f90d3 of _0x496778){const _0x120b90=_0xb31020[_0x3cc0('0xe7')](_0x1f90d3);_0x120b90&&_0x2e759b[_0x3cc0('0x2a')](_0x120b90);}return _0x2e759b;}(_0x12a1b7,_0x4d36ea),_0x21269d=function(_0x17c476,_0x34d326){const _0x1026df=[_0x17c476];for(const _0x1a3c57 of _0x34d326){let _0x13fa35=0x0;for(;_0x13fa35<_0x1026df[_0x3cc0('0xcb')];){const _0x3d84d2=_0x1026df[_0x13fa35][_0x3cc0('0xa3')](_0x1a3c57);_0x1026df[_0x3cc0('0xf3')](_0x13fa35,0x1,..._0x3d84d2),_0x13fa35+=_0x3d84d2[_0x3cc0('0xcb')];}}return _0x1026df;}(_0x12a1b7,_0x4d36ea);_0x54b5bf[_0x3cc0('0xcb')]&&this['_model'][_0x3cc0('0xf0')](()=>{for(const _0xc627de of _0x54b5bf){const _0x2dda8b=this[_0x3cc0('0x102')][_0x3cc0('0x1')](_0x3cc0('0x105'),_0x43847e,_0x3cc0('0x94'));this['forceDefaultExecution'](()=>_0x2dda8b([_0xc627de],_0x289254,_0x29c67e));}});for(const _0x2c6b59 of _0x21269d){let _0x5e351d=null,_0x58c2e3=_0x2c6b59[_0x3cc0('0xab')],_0x375cc6=_0x2c6b59[_0x3cc0('0x10c')];for(const {suggestion:_0x2b534a,meta:_0x4899c5}of this[_0x3cc0('0x120')](_0x2c6b59,_0x3cc0('0x105'))){if(!_0x4899c5[_0x3cc0('0x55')])continue;if(_0x2b534a[_0x3cc0('0x77')]!=_0x43847e)continue;const _0x49a698=_0x2b534a[_0x3cc0('0x74')]();if(_0x49a698['containsRange'](_0x2c6b59,!0x0))return null;_0x58c2e3=_0x58c2e3[_0x3cc0('0x2f')](_0x49a698[_0x3cc0('0xab')])?_0x58c2e3:_0x49a698[_0x3cc0('0xab')],_0x375cc6=_0x375cc6['isAfter'](_0x49a698[_0x3cc0('0x10c')])?_0x375cc6:_0x49a698[_0x3cc0('0x10c')],_0x5e351d?_0x49a698['start'][_0x3cc0('0x2f')](_0x5e351d[_0x3cc0('0x74')]()[_0x3cc0('0xab')])?(_0x5e351d[_0x3cc0('0x82')](),_0x5e351d=_0x2b534a):_0x2b534a['removeMarkers']():_0x5e351d=_0x2b534a;}const _0x270191=this[_0x3cc0('0xa6')][_0x3cc0('0xe')](_0x58c2e3,_0x375cc6);if(_0x5e351d)this[_0x3cc0('0xb5')](_0x5e351d,_0x270191);else{const _0x585ddf=_0x29dde6(),_0x238334=_0x59a3b4['id'];this['_setSuggestionData']({'id':_0x585ddf,'type':_0x3cc0('0x66')+_0x43847e,'data':_0x289254,'createdAt':new Date(),'authorId':_0x238334,'attributes':_0x29c67e}),this['_addSuggestionMarker']('formatInline:'+_0x43847e,_0x585ddf,_0x238334,_0x270191);}}return null;}[_0x3cc0('0xca')](_0x3f59b5,_0x34d1d8,_0x5cff6e=[],_0x83b524=null,_0x3b103d={}){_0x34d1d8['formatGroupId']||(_0x34d1d8[_0x3cc0('0x38')]=_0x34d1d8[_0x3cc0('0x9d')]),_0x34d1d8[_0x3cc0('0xe9')]=_0x3f59b5['is'](_0x3cc0('0xe1')),_0x83b524=_0x83b524||$t(_0x34d1d8);const _0xfac13f=_0x5cff6e[_0x3cc0('0xfa')](_0x1d0bab=>Rt(_0x1d0bab,this[_0x3cc0('0xa6')])),_0x337d98=_0x3f59b5['is']('range')?_0x3f59b5:Rt(_0x3f59b5,this[_0x3cc0('0xa6')]);if('never'===this[_0x3cc0('0x101')]){const _0x15dd7f=this[_0x3cc0('0x102')]['getSuggestionCallback'](_0x3cc0('0x44'),_0x83b524,_0x3cc0('0x94'));return this['forceDefaultExecution'](()=>_0x15dd7f([_0x337d98],_0x34d1d8,_0x3b103d)),null;}_0xfac13f[_0x3cc0('0x2a')](_0x337d98);let _0x43ebe4=!0x0;for(const _0x2874dd of _0xfac13f)if(!this[_0x3cc0('0x63')](_0x2874dd)){_0x43ebe4=!0x1;break;}if(_0x43ebe4&&_0x3cc0('0x62')!==this[_0x3cc0('0x101')]){const _0x50cfc6=this[_0x3cc0('0x102')]['getSuggestionCallback']('formatBlock',_0x83b524,_0x3cc0('0x94'));return this['forceDefaultExecution'](()=>_0x50cfc6([_0x337d98],_0x34d1d8,_0x3b103d)),null;}let _0x33aa18=null,_0x45e83d=_0x337d98[_0x3cc0('0xab')],_0x4441f3=_0x337d98[_0x3cc0('0x10c')];for(const {suggestion:_0xec5f8c,meta:_0x5d95f8}of this[_0x3cc0('0x120')](_0x337d98,_0x3cc0('0x44'))){if(!_0x5d95f8[_0x3cc0('0x55')]||_0x5d95f8[_0x3cc0('0x8c')]||_0x5d95f8[_0x3cc0('0xee')]||_0x5d95f8[_0x3cc0('0x80')])continue;if(_0xec5f8c[_0x3cc0('0xe5')]['formatGroupId']!=_0x34d1d8['formatGroupId'])continue;const _0x2e4b94=_0xec5f8c[_0x3cc0('0x74')]();if(_0xec5f8c[_0x3cc0('0x77')]==_0x83b524){if(_0x2e4b94[_0x3cc0('0xd6')](_0x337d98,!0x0))return null;_0x45e83d=_0x45e83d[_0x3cc0('0x2f')](_0x2e4b94['start'])?_0x45e83d:_0x2e4b94[_0x3cc0('0xab')],_0x4441f3=_0x4441f3[_0x3cc0('0x9a')](_0x2e4b94[_0x3cc0('0x10c')])?_0x4441f3:_0x2e4b94[_0x3cc0('0x10c')],_0x33aa18?_0x2e4b94[_0x3cc0('0xab')][_0x3cc0('0x2f')](_0x33aa18[_0x3cc0('0x74')]()[_0x3cc0('0xab')])?(_0x33aa18[_0x3cc0('0x82')](),_0x33aa18=_0xec5f8c):_0xec5f8c[_0x3cc0('0x82')]():_0x33aa18=_0xec5f8c;}else{const _0x55adea=_0x337d98[_0x3cc0('0xe7')](_0x2e4b94);this[_0x3cc0('0xf1')](_0xec5f8c,_0x55adea);}}const _0x5ed850=this[_0x3cc0('0x37')]['plugins'][_0x3cc0('0xd1')](_0x3cc0('0x118'))['me'],_0x3921e9=_0x29dde6(),_0xe75430=_0x5ed850['id'];if(_0x33aa18)return this[_0x3cc0('0xb5')](_0x33aa18,this['_model']['createRange'](_0x45e83d,_0x4441f3)),_0x33aa18;{const _0x5e3da2=this[_0x3cc0('0xf7')]({'id':_0x3921e9,'type':_0x3cc0('0x70')+_0x83b524,'data':_0x34d1d8,'createdAt':new Date(),'authorId':_0xe75430,'attributes':_0x3b103d});return this['_addSuggestionMarker'](_0x3cc0('0x70')+_0x83b524,_0x3921e9,_0xe75430,this[_0x3cc0('0xa6')][_0x3cc0('0xe')](_0x45e83d,_0x4441f3)),_0x5e3da2;}}[_0x3cc0('0x1e')](_0x216552,_0x5422cd,_0x207bb1=[],_0xbf2790=null,_0x4ca5d6={}){_0x5422cd['formatGroupId']||(_0x5422cd[_0x3cc0('0x38')]=_0x5422cd[_0x3cc0('0x9d')]);const _0xd62a6a=_0x216552[0x0];_0x5422cd[_0x3cc0('0xe9')]=_0xd62a6a['is'](_0x3cc0('0xe1')),_0xbf2790=_0xbf2790||$t(_0x5422cd);const _0x2c618a=_0x207bb1[_0x3cc0('0xfa')](_0x5e1e64=>Rt(_0x5e1e64,this[_0x3cc0('0xa6')])),_0x8840f0=_0xd62a6a['is'](_0x3cc0('0xe1'))?_0x216552:_0x216552['map'](_0x5ef98c=>Rt(_0x5ef98c,this[_0x3cc0('0xa6')]));if('never'===this[_0x3cc0('0x101')]){const _0xcf301e=this['_suggestionFactory'][_0x3cc0('0x1')]('formatBlock',_0xbf2790,_0x3cc0('0x94'));return this['forceDefaultExecution'](()=>_0xcf301e(_0x8840f0,_0x5422cd,_0x4ca5d6)),null;}_0x2c618a[_0x3cc0('0x2a')](..._0x8840f0);let _0x3d5ebe=!0x0;for(const _0x502d49 of _0x2c618a)if(!this[_0x3cc0('0x63')](_0x502d49)){_0x3d5ebe=!0x1;break;}if(_0x3d5ebe&&_0x3cc0('0x62')!==this['_trackFormatChanges']){const _0x340bd3=this[_0x3cc0('0x102')]['getSuggestionCallback']('formatBlock',_0xbf2790,'accept');return this['forceDefaultExecution'](()=>_0x340bd3(_0x8840f0,_0x5422cd,_0x4ca5d6)),null;}const _0x1c14b3=this[_0x3cc0('0x37')][_0x3cc0('0x1b')][_0x3cc0('0xd1')]('Users')['me'];for(const _0x1845b9 of this['getSuggestions']()){if(_0x1845b9[_0x3cc0('0x6e')]['id']!=_0x1c14b3['id'])continue;if('formatBlock'!=_0x1845b9['type']||_0x1845b9[_0x3cc0('0xe5')][_0x3cc0('0x38')]!=_0x5422cd[_0x3cc0('0x38')])continue;const _0x3aafd6=_0x1845b9[_0x3cc0('0x77')]==_0xbf2790;for(let _0x3dfe79=0x0;_0x3dfe79<_0x8840f0[_0x3cc0('0xcb')];_0x3dfe79++){const _0x1af049=_0x8840f0[_0x3dfe79];for(const _0x3d11a5 of _0x1845b9[_0x3cc0('0xd9')]()){const _0x440ae0=_0x3d11a5[_0x3cc0('0x86')]();if(_0x1af049[_0x3cc0('0x53')](_0x440ae0)){_0x3aafd6?(_0x8840f0[_0x3cc0('0xf3')](_0x3dfe79,0x1),_0x3dfe79--):_0x1845b9['removeMarker'](_0x3d11a5[_0x3cc0('0x48')]);break;}}}}if(0x0==_0x8840f0[_0x3cc0('0xcb')])return null;const _0x44b530=this[_0x3cc0('0x102')][_0x3cc0('0x1')]('formatBlock',_0xbf2790,_0x3cc0('0x26'));for(const _0x5c13f3 of this['getSuggestions']())if(_0x5c13f3[_0x3cc0('0x6e')]['id']==_0x1c14b3['id']&&_0x3cc0('0x44')==_0x5c13f3[_0x3cc0('0x122')]&&_0x5c13f3[_0x3cc0('0xe5')][_0x3cc0('0x38')]==_0x5422cd[_0x3cc0('0x38')]&&_0x5c13f3[_0x3cc0('0x77')]==_0xbf2790&&(_0x44b530(_0x5c13f3['getRanges'](),_0x8840f0)||_0x44b530(_0x8840f0,_0x5c13f3[_0x3cc0('0xbd')]()))){for(const _0xccdd29 of _0x8840f0)_0x5c13f3['addRange'](_0xccdd29);return _0x5c13f3;}const _0x5670b6=_0x29dde6(),_0x4088c6=_0x1c14b3['id'],_0x3cdc73=_0x3cc0('0x70')+_0xbf2790,_0x1cdcd7=this[_0x3cc0('0xf7')]({'id':_0x5670b6,'type':_0x3cdc73,'data':_0x5422cd,'createdAt':new Date(),'authorId':_0x4088c6,'attributes':_0x4ca5d6});for(const _0x4e5a42 of _0x8840f0)this[_0x3cc0('0x3c')](_0x3cdc73,_0x5670b6,_0x4088c6,_0x4e5a42,_0x1bda2a[_0x3cc0('0x132')]());return _0x1cdcd7;}[_0x3cc0('0xe2')](_0x162871,_0x289e99=null,_0x292773={}){if(_0x162871[_0x3cc0('0x10e')])return null;const _0x2df081=this[_0x3cc0('0x37')][_0x3cc0('0x1b')][_0x3cc0('0xd1')](_0x3cc0('0x118'))['me'],_0x4c6b8f=new _0x4b431b(_0x162871['start'],_0x162871[_0x3cc0('0x10c')]);for(const {suggestion:_0x2357d8,meta:_0x12fc73}of this['_findSuggestions'](_0x4c6b8f,'insertion'))if(_0x12fc73[_0x3cc0('0x55')]&&!_0x12fc73['isNextTo']){if(_0x2357d8['isMultiRange']){const _0x2f9296=_0x2357d8[_0x3cc0('0xbd')]()[_0x3cc0('0x1d')](_0x49d9e5=>_0x3cc0('0x8f')!=_0x49d9e5['root']['rootName']);_0x2f9296[_0x3cc0('0x9c')](_0x33da3c=>_0x4c6b8f[_0x3cc0('0xd6')](_0x33da3c,!0x0))&&_0x2357d8['discard']();if(_0x2f9296[_0x3cc0('0x6b')](_0x1841be=>_0x1841be[_0x3cc0('0xd6')](_0x4c6b8f,!0x0))){const _0x35c68b=this[_0x3cc0('0x102')][_0x3cc0('0x1')](_0x3cc0('0x12d'),_0x289e99,_0x3cc0('0x94'));return this[_0x3cc0('0x34')](()=>_0x35c68b([_0x4c6b8f],null,_0x292773)),null;}}else{const _0x54b7c0=_0x4c6b8f['getIntersection'](_0x2357d8[_0x3cc0('0x74')]());null!==_0x54b7c0&&_0x2357d8[_0x3cc0('0x7c')]([_0x54b7c0],null,_0x292773);}}if(_0x4c6b8f[_0x3cc0('0xe0')](),_0x4c6b8f[_0x3cc0('0x10e')]||_0x3cc0('0x8f')==_0x4c6b8f['root'][_0x3cc0('0x47')])return null;let _0x488d48=null,_0x4673fb=_0x4c6b8f[_0x3cc0('0xab')],_0x409b69=_0x4c6b8f[_0x3cc0('0x10c')];for(const {suggestion:_0x405eaa,meta:_0x4206b1}of this[_0x3cc0('0x120')](_0x4c6b8f,_0x3cc0('0x12d')))if(_0x4206b1[_0x3cc0('0x55')]){if(_0x405eaa[_0x3cc0('0x4')]&&this[_0x3cc0('0x138')]){let _0x33d307=!0x0;for(const _0x2b11ae of _0x405eaa['getRanges']()){if(_0x2b11ae['containsRange'](_0x4c6b8f,!0x0))return _0x405eaa;_0x4c6b8f[_0x3cc0('0xd6')](_0x2b11ae)||(_0x33d307=!0x1);}_0x33d307&&_0x405eaa[_0x3cc0('0x9e')]();}else{const _0x21749f=_0x405eaa['getFirstRange']();if(_0x21749f[_0x3cc0('0xd6')](_0x4c6b8f,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x4206b1[_0x3cc0('0xee')])continue;return _0x405eaa;}_0x4673fb=_0x4673fb[_0x3cc0('0x2f')](_0x21749f[_0x3cc0('0xab')])?_0x4673fb:_0x21749f[_0x3cc0('0xab')],_0x409b69=_0x409b69[_0x3cc0('0x9a')](_0x21749f[_0x3cc0('0x10c')])?_0x409b69:_0x21749f['end'],_0x488d48?_0x21749f['start'][_0x3cc0('0x2f')](_0x488d48[_0x3cc0('0x74')]()['start'])?(_0x488d48[_0x3cc0('0x82')](),_0x488d48=_0x405eaa):_0x405eaa[_0x3cc0('0x82')]():_0x488d48=_0x405eaa;}}if(_0x488d48)return this['_setSuggestionRange'](_0x488d48,this['_model'][_0x3cc0('0xe')](_0x4673fb,_0x409b69)),_0x488d48;{const _0x5344ff=_0x29dde6(),_0x199531=this['_model'][_0x3cc0('0xe')](_0x4673fb,_0x409b69),_0x57ea3f=_0x2df081['id'],_0xd985a1=_0x289e99?_0x3cc0('0x131')+_0x289e99:'deletion',_0x49ee5b=this[_0x3cc0('0xf7')]({'id':_0x5344ff,'type':_0xd985a1,'createdAt':new Date(),'authorId':_0x57ea3f,'attributes':_0x292773});return this[_0x3cc0('0x3c')](_0xd985a1,_0x5344ff,_0x57ea3f,_0x199531),_0x49ee5b;}}[_0x3cc0('0x7b')](_0x4d19ce,_0x136a60=_0x3cc0('0x9'),_0x5e78fc={}){const _0x4648f2=this[_0x3cc0('0x37')][_0x3cc0('0x1b')][_0x3cc0('0xd1')]('Users')['me'],_0x6c511b=_0x4d19ce[_0x3cc0('0xfa')](_0x3e5a28=>new _0x4b431b(_0x3e5a28[_0x3cc0('0xab')],_0x3e5a28[_0x3cc0('0x10c')])),_0xb4c1f7=new Set();for(const _0x23dbc9 of _0x6c511b)for(const {suggestion:_0x4870a3,meta:_0x706b28}of this[_0x3cc0('0x120')](_0x23dbc9,_0x3cc0('0x2e')))_0x706b28['isOwn']&&!_0x706b28[_0x3cc0('0x8c')]&&_0xb4c1f7[_0x3cc0('0xd0')](_0x4870a3);for(const _0x19b9a5 of _0xb4c1f7)if(_0x19b9a5[_0x3cc0('0x4')]){const _0x40fce4=_0x19b9a5[_0x3cc0('0xbd')]();(!_0x19b9a5[_0x3cc0('0x60')]||!_0x19b9a5[_0x3cc0('0x60')]['skipNestingCheck'])&&(_0x40fce4[_0x3cc0('0x9c')](_0x3b9522=>_0x6c511b[_0x3cc0('0x6b')](_0x8bc670=>_0x8bc670[_0x3cc0('0xd6')](_0x3b9522,!0x0)))&&_0x19b9a5[_0x3cc0('0x9e')]());if(_0x6c511b[_0x3cc0('0x9c')](_0x3a6061=>_0x40fce4[_0x3cc0('0x6b')](_0x2d0292=>_0x2d0292[_0x3cc0('0xd6')](_0x3a6061,!0x0)))){const _0x3482db=this[_0x3cc0('0x102')][_0x3cc0('0x1')](_0x3cc0('0x12d'),_0x136a60,_0x3cc0('0x94'));return this[_0x3cc0('0x34')](()=>_0x3482db(_0x4d19ce,null,_0x5e78fc)),null;}}else{const _0x1d8ba7=_0x19b9a5[_0x3cc0('0x74')]();_0x6c511b[_0x3cc0('0x6b')](_0xc883b0=>_0xc883b0[_0x3cc0('0xd6')](_0x1d8ba7,!0x0))&&_0x19b9a5[_0x3cc0('0x9e')]();if(_0x6c511b[_0x3cc0('0x9c')](_0x439bfd=>_0x1d8ba7[_0x3cc0('0xd6')](_0x439bfd,!0x0))){const _0x3f1df4=this[_0x3cc0('0x102')]['getSuggestionCallback']('deletion',_0x136a60,_0x3cc0('0x94'));return this[_0x3cc0('0x34')](()=>_0x3f1df4(_0x6c511b,null,_0x5e78fc)),null;}}const _0x270ea2=this[_0x3cc0('0x102')][_0x3cc0('0x1')]('deletion',_0x136a60,_0x3cc0('0x26'));let _0x528638=null;for(const _0x583e38 of this['getSuggestions']())if(_0x583e38[_0x3cc0('0x6e')]['id']==_0x4648f2['id']&&_0x583e38[_0x3cc0('0xa8')]&&_0x3cc0('0x12d')==_0x583e38[_0x3cc0('0x122')]&&_0x583e38[_0x3cc0('0x77')]==_0x136a60&&(_0x270ea2(_0x583e38[_0x3cc0('0xbd')](),_0x6c511b)||_0x270ea2(_0x6c511b,_0x583e38['getRanges']()))){if(_0x528638){if(_0x583e38['commentThread']&&_0x583e38[_0x3cc0('0x133')]['length'])continue;for(const _0x1708c0 of _0x583e38[_0x3cc0('0xbd')]())_0x528638['isIntersectingWithRange'](_0x1708c0)||_0x528638[_0x3cc0('0xae')](_0x1708c0);_0x583e38['removeMarkers']();}else{_0x528638=_0x583e38;for(const _0x331517 of _0x6c511b)_0x583e38[_0x3cc0('0x121')](_0x331517)||_0x583e38[_0x3cc0('0xae')](_0x331517);}}if(_0x528638)return _0x528638;_0xb4c1f7[_0x3cc0('0x36')]();for(const _0x3661e2 of _0x6c511b)for(const {suggestion:_0x2f3d89,meta:_0x2adb2e}of this['_findSuggestions'](_0x3661e2,_0x3cc0('0x12d')))_0x2adb2e[_0x3cc0('0x55')]&&_0xb4c1f7[_0x3cc0('0xd0')](_0x2f3d89);for(const _0xec63e9 of _0xb4c1f7){const _0xdc10d6=_0xec63e9[_0x3cc0('0xbd')]();if(!_0x5e78fc||!_0x5e78fc['skipNestingCheck']){if(_0x6c511b[_0x3cc0('0x9c')](_0x22b843=>_0xdc10d6[_0x3cc0('0x6b')](_0x4a372b=>_0x4a372b[_0x3cc0('0xd6')](_0x22b843,!0x0))))return _0xec63e9;}(!_0xec63e9[_0x3cc0('0x60')]||!_0xec63e9['attributes'][_0x3cc0('0x75')])&&(_0xdc10d6[_0x3cc0('0x9c')](_0x2a3376=>_0x6c511b['some'](_0x8a13c0=>_0x8a13c0[_0x3cc0('0xd6')](_0x2a3376,!0x0)))&&_0xec63e9['discard']());}const _0x1d2446=_0x29dde6(),_0x5b0f36=_0x4648f2['id'],_0x28d43a=_0x3cc0('0x131')+_0x136a60,_0xaf89c6=this[_0x3cc0('0xf7')]({'id':_0x1d2446,'type':_0x28d43a,'createdAt':new Date(),'authorId':_0x5b0f36,'attributes':_0x5e78fc});for(const _0x581ba8 of _0x6c511b)_0x581ba8[_0x3cc0('0xe0')](),_0x581ba8[_0x3cc0('0x10e')]||_0x3cc0('0x8f')==_0x581ba8[_0x3cc0('0x13a')][_0x3cc0('0x47')]||this[_0x3cc0('0x3c')](_0x28d43a,_0x1d2446,_0x5b0f36,_0x581ba8,_0x1bda2a[_0x3cc0('0x132')]());return _0xaf89c6;}[_0x3cc0('0xb5')](_0x2e7a7f,_0x2b6235){const _0x4ad902=_0x2e7a7f[_0x3cc0('0x140')]();this[_0x3cc0('0xa6')][_0x3cc0('0xf0')](_0x331331=>{_0x331331[_0x3cc0('0xb3')](_0x4ad902,{'range':_0x2b6235});});}['_addThreadToSuggestion'](_0x4f671b){const _0x458702=_0x4f671b['id'],_0x4f0879=this[_0x3cc0('0x37')][_0x3cc0('0x21')]['get'](_0x3cc0('0x89'));this[_0x3cc0('0x23')][_0x3cc0('0xfb')](_0x458702)||this[_0x3cc0('0x23')][_0x3cc0('0x127')]({'channelId':_0x4f0879,'threadId':_0x458702,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x55267a=this[_0x3cc0('0x23')]['getCommentThread'](_0x458702);_0x55267a[_0x3cc0('0x88')](_0x3cc0('0xc4')),_0x55267a[_0x3cc0('0xc4')]=!0x1,_0x4f671b[_0x3cc0('0x133')]=_0x55267a;}['_checkSuggestionCorrectness'](_0x387317,_0x528d16,_0x176495,_0x3235ea){if(_0x387317[_0x3cc0('0x122')]!=_0x528d16||_0x387317[_0x3cc0('0x77')]!=_0x176495||_0x387317[_0x3cc0('0x5a')]['id']!=_0x3235ea)throw this[_0x3cc0('0x37')][_0x3cc0('0x96')](_0x3cc0('0x110')),new _0x352f3d(_0x3cc0('0x110'),this);}[_0x3cc0('0xf1')](_0x1b8ed1,_0x93dc43){const _0x1d08c8=_0x1b8ed1['getFirstRange']();if(_0x93dc43[_0x3cc0('0x53')](_0x1d08c8))_0x1b8ed1[_0x3cc0('0x82')]();else{if(_0x1d08c8[_0x3cc0('0xd6')](_0x93dc43)){const _0x1d7163=this[_0x3cc0('0xa6')][_0x3cc0('0xfd')](_0x93dc43[_0x3cc0('0xab')][_0x3cc0('0x104')],_0x3cc0('0x10c'));this[_0x3cc0('0xb5')](_0x1b8ed1,this['_model'][_0x3cc0('0xe')](_0x1d08c8[_0x3cc0('0xab')],_0x1d7163));const _0x248da5=_0x29dde6(),_0x199a0a=_0x1b8ed1[_0x3cc0('0x5a')]['id'],_0x468698=_0x1b8ed1['type']+':'+_0x1b8ed1['subType'];this[_0x3cc0('0xf7')]({'id':_0x248da5,'type':_0x468698,'createdAt':new Date(),'authorId':_0x199a0a,'data':_0x1b8ed1[_0x3cc0('0xe5')],'attributes':_0x1b8ed1[_0x3cc0('0x60')]});const _0x569cae=this[_0x3cc0('0xa6')][_0x3cc0('0xfd')](_0x93dc43[_0x3cc0('0x10c')][_0x3cc0('0x116')],_0x3cc0('0xac')),_0x3d49d3=this['_model'][_0x3cc0('0xe')](_0x569cae,_0x1d08c8['end']);this['_addSuggestionMarker'](_0x468698,_0x248da5,_0x199a0a,_0x3d49d3);}else{if(_0x1d08c8[_0x3cc0('0x3e')](_0x93dc43[_0x3cc0('0xab')])){const _0x150185=this[_0x3cc0('0xa6')]['createPositionAt'](_0x93dc43['start'][_0x3cc0('0x104')],_0x3cc0('0x10c'));this[_0x3cc0('0xb5')](_0x1b8ed1,this[_0x3cc0('0xa6')][_0x3cc0('0xe')](_0x1d08c8['start'],_0x150185));}else{const _0x17c890=this[_0x3cc0('0xa6')][_0x3cc0('0xfd')](_0x93dc43[_0x3cc0('0x10c')][_0x3cc0('0x116')],_0x3cc0('0xac'));this[_0x3cc0('0xb5')](_0x1b8ed1,this[_0x3cc0('0xa6')][_0x3cc0('0xe')](_0x17c890,_0x1d08c8[_0x3cc0('0x10c')]));}}}}[_0x3cc0('0x63')](_0x198df0){for(const {suggestion:_0x531223,meta:_0x296e45}of this[_0x3cc0('0x120')](_0x198df0,_0x3cc0('0x2e'))){if(!_0x296e45[_0x3cc0('0x55')])continue;const _0xaffd09=_0x531223[_0x3cc0('0xbd')]();for(const _0x22317d of _0xaffd09)if(!_0x198df0[_0x3cc0('0xa3')](_0x22317d)[_0x3cc0('0xcb')])return!0x0;}return!0x1;}[_0x3cc0('0xd8')](_0x144e49){const _0x193242=this[_0x3cc0('0x37')]['plugins'][_0x3cc0('0xd1')](_0x3cc0('0x118'))[_0x3cc0('0xbf')](_0x144e49);if(!_0x193242)throw new _0x352f3d('track-changes-user-not-found',this);return _0x193242;}[_0x3cc0('0xc2')](_0x24932a){const _0xf509d5=this[_0x3cc0('0x37')][_0x3cc0('0x1b')][_0x3cc0('0xd1')](_0x3cc0('0x118')),_0x2be01e=_0x17e8a1(_0x3cc0('0x56')+_0x24932a),_0x54e627=_0xf509d5['getUser'](_0x2be01e);return _0x54e627||_0xf509d5['addUser']({'id':_0x2be01e,'name':_0x24932a});}[_0x3cc0('0x27')](_0x3f5541,_0x6cadb8,_0x5233d3,_0x3e09de,_0x17c7ad){const _0x3ce767=this['_getAuthorFromId'](_0x3e09de),_0x198a4d=this['_suggestionFactory'][_0x3cc0('0x45')](_0x3f5541,_0x6cadb8,_0x5233d3,_0x3ce767,_0x17c7ad,_0x32d52b=>this[_0x3cc0('0xff')](_0x5233d3,{'attributes':_0x32d52b}));return this[_0x3cc0('0x111')](_0x198a4d,_0x3cc0('0x94'),()=>{this['_updateSuggestionData'](_0x5233d3,{'state':_0x3cc0('0x15')});},{'priority':_0x3cc0('0xf')}),this[_0x3cc0('0x111')](_0x198a4d,_0x3cc0('0x9e'),()=>{this['_updateSuggestionData'](_0x5233d3,{'state':'rejected'});},{'priority':_0x3cc0('0xf')}),this[_0x3cc0('0x2d')][_0x3cc0('0xdd')](_0x5233d3,_0x198a4d),this[_0x3cc0('0x8a')][_0x3cc0('0xdd')](_0x198a4d,_0x3cc0('0x119')),_0x198a4d;}[_0x3cc0('0x69')](_0xc35a2){const _0x82ef70=_0xc35a2[_0x3cc0('0xce')](':');return{'group':_0x82ef70[0x0],'type':_0x82ef70[0x1],'subType':_0x82ef70[_0x3cc0('0xcb')]>=0x5?_0x82ef70[0x2]:null,'id':_0x82ef70['length']<0x5?_0x82ef70[0x2]:_0x82ef70[0x3],'authorId':_0x82ef70['length']<0x5?_0x82ef70[0x3]:_0x82ef70[0x4],'markerCount':0x6==_0x82ef70[_0x3cc0('0xcb')]?_0x82ef70[0x5]:null};}[_0x3cc0('0x76')](_0x1cf70f,_0x164653,_0x3e5c50){const _0x36a8d3=_0x1cf70f['getFirstRange'](),_0xe37142=_0x36a8d3['start'],_0x2d3133=_0x36a8d3['end'];this['_setSuggestionRange'](_0x1cf70f,this[_0x3cc0('0xa6')][_0x3cc0('0xe')](_0xe37142,_0x164653));const _0x19d7c0=_0x29dde6(),_0x344264=_0x1cf70f[_0x3cc0('0x5a')]['id'],_0x3426b5=_0x1cf70f[_0x3cc0('0x122')]+(_0x1cf70f[_0x3cc0('0x77')]?':'+_0x1cf70f['subType']:'');this[_0x3cc0('0xf7')]({'id':_0x19d7c0,'type':_0x3426b5,'createdAt':new Date(),'authorId':_0x344264,'originalSuggestionId':_0x1cf70f['id'],'attributes':_0x1cf70f['attributes'],'data':_0x1cf70f[_0x3cc0('0xe5')]}),_0x3cc0('0x44')==_0x1cf70f['type']&&(_0x3e5c50=this[_0x3cc0('0xa6')]['createPositionBefore'](_0x3e5c50['parent'])),this['_addSuggestionMarker'](_0x3426b5,_0x19d7c0,_0x344264,this[_0x3cc0('0xa6')][_0x3cc0('0xe')](_0x3e5c50,_0x2d3133));}['_findSuggestions'](_0x26de94,_0x3a9068=null){const _0x2ee395=[],_0x59a676=this[_0x3cc0('0xa6')][_0x3cc0('0xde')],_0x2e52a3=this[_0x3cc0('0x37')]['plugins'][_0x3cc0('0xd1')](_0x3cc0('0x118'))['me'];for(const _0x115569 of this[_0x3cc0('0x12c')]())if(_0x115569[_0x3cc0('0xa8')]&&(!_0x3a9068||_0x115569[_0x3cc0('0x122')]==_0x3a9068))for(const _0x56db4b of _0x115569[_0x3cc0('0xbd')]()){const _0x3ac388=_0x26de94[_0x3cc0('0xab')][_0x3cc0('0x53')](_0x56db4b[_0x3cc0('0x10c')])||_0x26de94[_0x3cc0('0x10c')]['isEqual'](_0x56db4b[_0x3cc0('0xab')]);if(_0x3ac388||_0x26de94[_0x3cc0('0xe7')](_0x56db4b)){const _0x36c349=_0x26de94[_0x3cc0('0xd6')](_0x56db4b)&&Bt(_0x59a676,_0x56db4b[_0x3cc0('0xab')],_0x26de94),_0x18a522=_0x56db4b[_0x3cc0('0xd6')](_0x26de94)&&Bt(_0x59a676,_0x26de94['start'],_0x56db4b);_0x2ee395[_0x3cc0('0x2a')]({'suggestion':_0x115569,'meta':{'isOwn':_0x2e52a3==_0x115569[_0x3cc0('0x6e')],'isNextTo':_0x3ac388,'isInsideObject':_0x36c349,'containsRangeInObject':_0x18a522}});break;}}return _0x2ee395;}['_addSuggestionMarker'](_0x2c1df8,_0x3fab5f,_0x3b00cc,_0x1ffd86,_0x5d3ecc){this[_0x3cc0('0xa6')][_0x3cc0('0xf0')](_0x21a9aa=>{let _0x37deff=_0x3cc0('0xdc')+_0x2c1df8+':'+_0x3fab5f+':'+_0x3b00cc;_0x5d3ecc&&(_0x37deff=_0x37deff+':'+_0x5d3ecc),_0x21a9aa[_0x3cc0('0x8')](_0x37deff,{'range':_0x1ffd86,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3cc0('0x52')](_0x595c6d){const _0x2bd52f=_0x595c6d[_0x3cc0('0xe8')],_0x2d5e59=_0x595c6d[_0x3cc0('0x8e')];_0x595c6d[_0x3cc0('0xe8')]=null,null!=_0x2bd52f&&(_0x2bd52f[_0x3cc0('0x8e')]=null),_0x595c6d[_0x3cc0('0x8e')]=null,null!=_0x2d5e59&&(_0x2d5e59['previous']=null),_0x3cc0('0x12a')==this[_0x3cc0('0x8a')][_0x3cc0('0xd1')](_0x595c6d)&&(this[_0x3cc0('0x8a')][_0x3cc0('0xdd')](_0x595c6d,_0x3cc0('0xe6')),this[_0x3cc0('0x33')](_0x3cc0('0xdb'),_0x595c6d,_0x2bd52f,_0x2d5e59));}[_0x3cc0('0xf7')](_0x575556){const _0x759f31=_0x575556['id'],_0x2bf85c=this[_0x3cc0('0x42')](_0x575556);if(this['_adapter']&&this['_adapter'][_0x3cc0('0x100')]){const _0x53d119=this[_0x3cc0('0x37')][_0x3cc0('0x1b')][_0x3cc0('0xd1')](_0x3cc0('0x29')),_0x1798ff=_0x2bf85c[_0x3cc0('0x129')],_0xdc66ed=_0x2bf85c[_0x3cc0('0x77')]?_0x2bf85c['type']+':'+_0x2bf85c[_0x3cc0('0x77')]:_0x2bf85c[_0x3cc0('0x122')],_0x507f77=this[_0x3cc0('0x37')][_0x3cc0('0x67')],_0x48a532=_0x53d119[_0x3cc0('0xd0')](_0x5b8049(_0x507f77,_0x3cc0('0x2'))),_0x5ade19={'id':_0x759f31,'type':_0xdc66ed,'hasComments':_0x1798ff,'data':_0x575556[_0x3cc0('0xe5')]||null,'originalSuggestionId':_0x575556['originalSuggestionId']||null,'attributes':_0x2bf85c[_0x3cc0('0x60')]};this['_adapter']['addSuggestion'](_0x5ade19)[_0x3cc0('0x5b')](_0x721b0f=>{_0x2bf85c[_0x3cc0('0xcd')]=!0x0,_0x53d119[_0x3cc0('0x95')](_0x48a532),_0x721b0f&&_0x721b0f['createdAt']&&(this[_0x3cc0('0x2d')][_0x3cc0('0xd1')](_0x759f31)[_0x3cc0('0x54')]=_0x721b0f['createdAt']);})['catch'](_0x401967=>{throw _0x512b36(_0x3cc0('0x17')),this[_0x3cc0('0x37')][_0x3cc0('0x12f')][_0x3cc0('0x7e')]({'isUndoable':!0x1},()=>{_0x2bf85c[_0x3cc0('0x9e')]();}),_0x2bf85c[_0x3cc0('0xa0')](),this[_0x3cc0('0x2d')]['delete'](_0x2bf85c['id']),this[_0x3cc0('0x8a')][_0x3cc0('0xc0')](_0x2bf85c),_0x401967;});}return _0x2bf85c;}[_0x3cc0('0xff')](_0x345be0,_0xcdb56e){const _0x4ad8d6=this[_0x3cc0('0x37')]['plugins'][_0x3cc0('0xd1')](_0x3cc0('0x29')),_0x46475c=this[_0x3cc0('0x125')](_0x345be0);if(this[_0x3cc0('0x1a')]&&this['_adapter']['updateSuggestion']){if(_0x46475c['_saved']){const _0x2d320e=_0x4ad8d6[_0x3cc0('0xd0')](_0x5b8049(this['editor']['locale'],_0x3cc0('0x2')));this[_0x3cc0('0x1a')][_0x3cc0('0x11a')](_0x345be0,_0xcdb56e)[_0x3cc0('0x5b')](()=>{_0x4ad8d6[_0x3cc0('0x95')](_0x2d320e);});}else _0x46475c['on'](_0x3cc0('0x59'),()=>{this[_0x3cc0('0xff')](_0x345be0,_0xcdb56e);});}}['_getSuggestionData'](_0x3c3ac5){if(!this[_0x3cc0('0x1a')]||!this['_adapter'][_0x3cc0('0x125')])throw new _0x352f3d('track-changes-adapter-missing-getsuggestion',this);return this[_0x3cc0('0x1a')][_0x3cc0('0x125')](_0x3c3ac5);}[_0x3cc0('0x106')](_0x25055a){const {id:_0x5a7d2c,type:_0x3bfeb4,subType:_0x498a62,authorId:_0x51b147}=this[_0x3cc0('0x69')](_0x25055a),_0x2c42e8=this[_0x3cc0('0x2d')]['get'](_0x5a7d2c)||this['_createSuggestion'](_0x3bfeb4,_0x498a62,_0x5a7d2c,_0x51b147,{});switch(this[_0x3cc0('0xb8')](_0x2c42e8,_0x3bfeb4,_0x498a62,_0x51b147),this['_suggestionState'][_0x3cc0('0xd1')](_0x2c42e8)){case _0x3cc0('0x119'):this['_getSuggestionData'](_0x5a7d2c)['then'](_0xb93145=>{let _0x2c46f8=Promise[_0x3cc0('0x51')]();_0xb93145['hasComments']&&(_0x2c46f8=this[_0x3cc0('0x23')][_0x3cc0('0xa4')]({'channelId':this[_0x3cc0('0x37')]['config'][_0x3cc0('0xd1')](_0x3cc0('0x89')),'threadId':_0x5a7d2c})),_0x2c46f8[_0x3cc0('0x5b')](()=>{this[_0x3cc0('0x42')](_0xb93145)[_0x3cc0('0xcd')]=!0x0;});}),this[_0x3cc0('0x8a')][_0x3cc0('0xdd')](_0x2c42e8,_0x3cc0('0xef'));break;case _0x3cc0('0xe6'):this['_updateSuggestionData'](_0x5a7d2c,{'state':'open'});case _0x3cc0('0xc1'):this[_0x3cc0('0x8a')]['set'](_0x2c42e8,'ready'),this[_0x3cc0('0x33')](_0x3cc0('0x91'),_0x2c42e8);break;case _0x3cc0('0x12a'):this[_0x3cc0('0x33')](_0x3cc0('0x115'),_0x2c42e8);}return _0x2c42e8[_0x3cc0('0x11')](_0x25055a),_0x2c42e8;}['_refreshSuggestionsChain'](_0x294738){const _0x12de30=Array['from'](_0x294738)['filter'](_0x5b5862=>!_0x5b5862[_0x3cc0('0x4')]),_0x5b9ebc=this[_0x3cc0('0x12c')]({'skipNotAttached':!0x0})[_0x3cc0('0x1d')](_0x5a7942=>!_0x5a7942[_0x3cc0('0x4')]),_0x5953e2=_0x5b9ebc[_0x3cc0('0x1d')](_0x1bcac8=>!_0x294738[_0x3cc0('0x6d')](_0x1bcac8)),_0x274a73=new Map(_0x5b9ebc['map'](_0x42ce87=>[_0x42ce87,this[_0x3cc0('0x102')][_0x3cc0('0x1')](_0x42ce87[_0x3cc0('0x122')],_0x42ce87['subType'],'chain')])),_0x70e971=new Map(_0x5b9ebc['map'](_0x3de679=>[_0x3de679,_0x3de679[_0x3cc0('0x74')]()])),_0x2ff6eb=new Set(),_0x21f92a=new Set();for(let _0x51059c=0x0;_0x51059c<_0x12de30[_0x3cc0('0xcb')];_0x51059c++)_0x5326c7(_0x12de30[_0x51059c],_0x12de30,_0x51059c+0x1);for(let _0x5f8c71=0x0;_0x5f8c71<_0x12de30['length'];_0x5f8c71++)_0x5326c7(_0x12de30[_0x5f8c71],_0x5953e2,0x0);for(let _0x473c53=0x0;_0x473c53<_0x12de30['length'];_0x473c53++){const _0x55dc6e=_0x12de30[_0x473c53];!_0x21f92a[_0x3cc0('0x6d')](_0x55dc6e)&&_0x55dc6e[_0x3cc0('0xe8')]&&(_0x55dc6e[_0x3cc0('0xe8')][_0x3cc0('0x8e')]===_0x55dc6e&&(_0x55dc6e[_0x3cc0('0xe8')][_0x3cc0('0x8e')]=null),_0x55dc6e['previous']=null),!_0x2ff6eb[_0x3cc0('0x6d')](_0x55dc6e)&&_0x55dc6e['next']&&(_0x55dc6e['next'][_0x3cc0('0xe8')]===_0x55dc6e&&(_0x55dc6e[_0x3cc0('0x8e')][_0x3cc0('0xe8')]=null),_0x55dc6e[_0x3cc0('0x8e')]=null);}function _0x5326c7(_0x97fd7c,_0x14d6ab,_0x39b86d){for(let _0x4df2aa=_0x39b86d;_0x4df2aa<_0x14d6ab[_0x3cc0('0xcb')];_0x4df2aa++){const _0x20f1d4=_0x2cfc3e(_0x97fd7c,_0x14d6ab[_0x4df2aa]);_0x20f1d4&&(_0x20f1d4[0x0][_0x3cc0('0x8e')]=_0x20f1d4[0x1],_0x20f1d4[0x1]['previous']=_0x20f1d4[0x0],_0x2ff6eb[_0x3cc0('0xd0')](_0x20f1d4[0x0]),_0x21f92a['add'](_0x20f1d4[0x1]));}}function _0x2cfc3e(_0x36cd35,_0x4343f8){if(_0x36cd35[_0x3cc0('0x6e')]['id']!==_0x4343f8[_0x3cc0('0x6e')]['id'])return null;const _0x457046=_0x274a73[_0x3cc0('0xd1')](_0x36cd35)(_0x36cd35,_0x4343f8,_0x70e971[_0x3cc0('0xd1')](_0x36cd35),_0x70e971[_0x3cc0('0xd1')](_0x4343f8));if(!_0x457046)return null;return _0x274a73['get'](_0x4343f8)(_0x36cd35,_0x4343f8,_0x70e971[_0x3cc0('0xd1')](_0x36cd35),_0x70e971[_0x3cc0('0xd1')](_0x4343f8))?_0x457046[0x1][_0x3cc0('0x133')]&&_0x457046[0x1][_0x3cc0('0x133')][_0x3cc0('0xcb')]?null:_0x457046:null;}}[_0x3cc0('0x3d')](_0x581f75){const _0x2f359d=Array[_0x3cc0('0x109')](_0x581f75),_0x34588b=this['getSuggestions']({'skipNotAttached':!0x0}),_0xa0da94=_0x34588b[_0x3cc0('0x1d')](_0x29fcd9=>!_0x581f75[_0x3cc0('0x6d')](_0x29fcd9)),_0x5b02a2=new Map(_0x2f359d[_0x3cc0('0xfa')](_0x5aead7=>[_0x5aead7,this[_0x3cc0('0x102')][_0x3cc0('0x1')](_0x5aead7[_0x3cc0('0x122')],_0x5aead7[_0x3cc0('0x77')],_0x3cc0('0x26'))])),_0x382147=new Map(_0x34588b['map'](_0x39a1aa=>[_0x39a1aa,_0x39a1aa['getRanges']()]));for(let _0xe20481=0x0;_0xe20481<_0x2f359d['length'];_0xe20481++){if(_0x1bb35c(this,_0x2f359d[_0xe20481],_0x2f359d,_0xe20481+0x1))return!0x0;}for(let _0x511e86=0x0;_0x511e86<_0x2f359d[_0x3cc0('0xcb')];_0x511e86++){if(_0x1bb35c(this,_0x2f359d[_0x511e86],_0xa0da94,0x0))return!0x0;}return!0x1;function _0x1bb35c(_0x3fb99c,_0x224a45,_0x51948c,_0x21ae56){for(let _0x225e0e=_0x21ae56;_0x225e0e<_0x51948c[_0x3cc0('0xcb')];_0x225e0e++){const _0x4a9fac=_0x51948c[_0x225e0e];if(_0x4a9fac[_0x3cc0('0x122')]!==_0x224a45['type']||_0x4a9fac['author']['id']!==_0x224a45[_0x3cc0('0x6e')]['id']||_0x4a9fac[_0x3cc0('0x77')]!==_0x224a45[_0x3cc0('0x77')])continue;const _0x30e3cf=_0x5b02a2[_0x3cc0('0xd1')](_0x224a45),_0x4ccb7f=_0x382147['get'](_0x224a45),_0x22cf07=_0x382147['get'](_0x4a9fac),_0x5745b8=_0x224a45[_0x3cc0('0x133')]&&_0x224a45[_0x3cc0('0x133')]['length'],_0x2480ce=_0x4a9fac[_0x3cc0('0x133')]&&_0x4a9fac[_0x3cc0('0x133')][_0x3cc0('0xcb')];if(!_0x5745b8&&_0x30e3cf(_0x22cf07,_0x4ccb7f))return _0x3fb99c[_0x3cc0('0x85')](_0x4a9fac,_0x224a45),_0x382147['delete'](_0x224a45),!0x0;if(!_0x2480ce&&_0x30e3cf(_0x4ccb7f,_0x22cf07))return _0x3fb99c[_0x3cc0('0x85')](_0x224a45,_0x4a9fac),_0x382147[_0x3cc0('0xc0')](_0x4a9fac),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5667bc,_0x6dc044){if(_0x5667bc[_0x3cc0('0x4')])for(const _0x3ff882 of _0x6dc044[_0x3cc0('0xbd')]())_0x5667bc['addRange'](_0x3ff882);else{const _0x16056f=_0x6dc044[_0x3cc0('0x74')]()[_0x3cc0('0x10c')];this[_0x3cc0('0xb5')](_0x5667bc,this[_0x3cc0('0xa6')]['createRange'](_0x5667bc[_0x3cc0('0x74')]()[_0x3cc0('0xab')],_0x16056f));}_0x6dc044['removeMarkers']();}}class Dt{constructor(_0x98ff17){this['_editor']=_0x98ff17,this[_0x3cc0('0xa6')]=_0x98ff17[_0x3cc0('0x12f')],this['_customCallbacks']=new Map(),this[_0x3cc0('0x4b')]=new Map(),this[_0x3cc0('0x3f')]();}[_0x3cc0('0x45')](_0x214c16,_0x142b64,_0x5926d9,_0x32b7af,_0x2af1af,_0x2baccb){return new _0x1bda2a(this[_0x3cc0('0xa6')],{'type':_0x214c16,'subType':_0x142b64,'id':_0x5926d9,'author':_0x32b7af,'creator':_0x32b7af,'attributes':_0x2af1af,'onAttributesChange':_0x2baccb,'onAccept':(..._0xd6c9e6)=>this[_0x3cc0('0x1')](_0x214c16,_0x142b64,_0x3cc0('0x94'))(..._0xd6c9e6),'onDiscard':(..._0x53181b)=>this['getSuggestionCallback'](_0x214c16,_0x142b64,_0x3cc0('0x9e'))(..._0x53181b)});}[_0x3cc0('0xea')](_0x1dee36,_0x3466b5,_0x118e45,_0x1c3bb9){const _0x5e365d=_0x1dee36+':'+_0x3466b5+':'+_0x118e45;this[_0x3cc0('0xdf')][_0x3cc0('0xdd')](_0x5e365d,_0x1c3bb9);}['getSuggestionCallback'](_0x2fd81d,_0x154f39,_0x3252fc){const _0x3ea2b9=_0x2fd81d+':'+_0x154f39+':'+_0x3252fc;return this[_0x3cc0('0xdf')][_0x3cc0('0xd1')](_0x3ea2b9)||this[_0x3cc0('0x4b')][_0x3cc0('0xd1')](_0x2fd81d+':'+_0x3252fc);}['_registerDefaultCallbacks'](){const _0x445da4=()=>{},_0x588f05=_0x21adf7=>{_0x21adf7['sort']((_0x159691,_0x47b76f)=>_0x159691[_0x3cc0('0xab')][_0x3cc0('0x2f')](_0x47b76f['start'])?0x1:-0x1),this['_model'][_0x3cc0('0xf0')](_0x5b04d9=>{for(const _0x41ecd7 of _0x21adf7){let _0x414503;_0x414503=_0x41ecd7[_0x3cc0('0x10c')][_0x3cc0('0xa2')]&&_0x41ecd7[_0x3cc0('0x10c')]['parent']==_0x41ecd7['start']['nodeAfter']?_0x5b04d9['createSelection'](_0x41ecd7['start']['nodeAfter'],'on'):_0x5b04d9[_0x3cc0('0xc8')](_0x41ecd7),this[_0x3cc0('0xa6')][_0x3cc0('0x46')](_0x414503,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3a94df=(_0x488de9,_0x147f61)=>{this[_0x3cc0('0xa6')][_0x3cc0('0xf0')](_0xc5ca7b=>{const {commandName:_0x5c924c,commandParams:_0x8c494=[]}=_0x147f61,_0x9ae626=_0x488de9['map'](_0x342139=>(_t(_0x342139)&&(_0x342139=this[_0x3cc0('0xa6')][_0x3cc0('0xe')](_0x342139['end'])),_0x342139))['filter'](_0x4ec1dd=>'$graveyard'!==_0x4ec1dd[_0x3cc0('0x13a')][_0x3cc0('0x47')]);if(_0x9ae626['length']<0x1)return;const _0x11adde=Array['from'](this['_model'][_0x3cc0('0x13e')][_0x3cc0('0xbc')][_0x3cc0('0xbd')]())[_0x3cc0('0xfa')](_0x51369b=>_0x4b431b[_0x3cc0('0x12')](_0x51369b));_0xc5ca7b[_0x3cc0('0x92')](_0x9ae626);for(const _0x2e17fb of this[_0x3cc0('0xb1')]['commands'][_0x3cc0('0x12b')]())_0x2e17fb[_0x3cc0('0x3a')]();_0x8c494['push']({'forceDefaultExecution':!0x0}),this[_0x3cc0('0xb1')]['execute'](_0x5c924c,..._0x8c494);const _0x5a7196=_0x11adde[_0x3cc0('0x1d')](_0x3ffbdb=>'$graveyard'!=_0x3ffbdb[_0x3cc0('0x13a')][_0x3cc0('0x47')]);_0x5a7196[_0x3cc0('0xcb')]>0x0&&_0xc5ca7b[_0x3cc0('0x92')](_0x5a7196);for(const _0xe4618a of _0x11adde)_0xe4618a[_0x3cc0('0xe0')]();});},_0x5c0f0c=(_0x56f290,_0x1d1db7)=>0x1==_0x56f290[_0x3cc0('0xcb')]&&0x1==_0x1d1db7[_0x3cc0('0xcb')]&&_0x56f290[0x0]['end'][_0x3cc0('0x53')](_0x1d1db7[0x0][_0x3cc0('0xab')]),_0x37f5e5=(_0x5f0d26,_0x5532d7,_0x1f4f1c,_0x21808b)=>xt(_0x5f0d26,_0x5532d7,_0x1f4f1c,_0x21808b,this[_0x3cc0('0xa6')])?[_0x5f0d26,_0x5532d7]:xt(_0x5532d7,_0x5f0d26,_0x21808b,_0x1f4f1c,this[_0x3cc0('0xa6')])?[_0x5532d7,_0x5f0d26]:null;this[_0x3cc0('0x4b')]['set'](_0x3cc0('0x9f'),_0x445da4),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')]('insertion:discard',_0x588f05),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')](_0x3cc0('0xa'),_0x5c0f0c),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')](_0x3cc0('0x84'),_0x37f5e5),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')]('deletion:accept',_0x588f05),this['_defaultCallbacks']['set']('deletion:discard',_0x445da4),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')](_0x3cc0('0x5d'),_0x5c0f0c),this['_defaultCallbacks'][_0x3cc0('0xdd')](_0x3cc0('0x4d'),_0x37f5e5),this[_0x3cc0('0x4b')]['set'](_0x3cc0('0xc6'),_0x3a94df),this[_0x3cc0('0x4b')]['set'](_0x3cc0('0x4e'),_0x445da4),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')]('formatInline:join',_0x5c0f0c),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')](_0x3cc0('0x134'),_0x445da4),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')](_0x3cc0('0xed'),_0x3a94df),this['_defaultCallbacks']['set']('formatBlock:discard',_0x445da4),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')](_0x3cc0('0x6a'),_0x5c0f0c),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')](_0x3cc0('0xf4'),_0x445da4);}}function Bt(_0x313545,_0x1f327b,_0x28e98e){for(const _0x5e7d1c of _0x1f327b['parent'][_0x3cc0('0x14')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5e7d1c[_0x3cc0('0x13a')]==_0x5e7d1c)return!0x1;if(!_0x28e98e[_0x3cc0('0xd2')](_0x5e7d1c))return!0x1;if(_0x313545[_0x3cc0('0xaf')](_0x5e7d1c)||_0x313545[_0x3cc0('0x39')](_0x5e7d1c))return!0x0;}return!0x1;}function _t(_0xddd045){return _0xddd045[_0x3cc0('0x10c')][_0x3cc0('0x116')]==_0xddd045[_0x3cc0('0xab')]['nodeAfter']&&_0xddd045['end']['isAtStart'];}function Mt(_0x47e689,_0x529a60,_0x169448,_0x248208){const _0x18ad42=_0x48b436=>!_0x48b436['item']['is']('$textProxy')&&!_0x248208[_0x3cc0('0xaf')](_0x48b436[_0x3cc0('0x7d')]),_0x7b4552=_0x47e689[_0x3cc0('0xab')][_0x3cc0('0x4c')](_0x18ad42),_0x26967f=_0x47e689['end'][_0x3cc0('0x4c')](_0x18ad42,{'direction':_0x3cc0('0x5f')});return(!_0x47e689['start'][_0x3cc0('0x53')](_0x7b4552)||!_0x47e689['end'][_0x3cc0('0x53')](_0x26967f))&&(_0x7b4552[_0x3cc0('0x2f')](_0x26967f)?_0x169448[_0x3cc0('0xb3')](_0x529a60,{'range':_0x169448[_0x3cc0('0xe')](_0x7b4552,_0x26967f)}):_0x169448['removeMarker'](_0x529a60),!0x0);}function $t(_0x5e8ebc){return _0x17e8a1(_0x5e8ebc);}function Nt(_0x958db1){const _0x38c871=_0x958db1[_0x3cc0('0xab')][_0x3cc0('0x130')];return _0x38c871&&_0x38c871['is'](_0x3cc0('0x126'));}function Rt(_0x33b6fd,_0xd5cf47){const _0x4b3fd7=_0xd5cf47[_0x3cc0('0xde')][_0x3cc0('0xaf')](_0x33b6fd)||_0xd5cf47[_0x3cc0('0xde')][_0x3cc0('0x98')](_0x33b6fd);return _0xd5cf47[_0x3cc0('0xe')](_0xd5cf47[_0x3cc0('0xfd')](_0x33b6fd,'before'),_0x4b3fd7?_0xd5cf47[_0x3cc0('0xaa')](_0x33b6fd):_0xd5cf47[_0x3cc0('0xfd')](_0x33b6fd,_0x3cc0('0x10c')));}function xt(_0x16373b,_0x56705d,_0x3cc7e6,_0x4e2ad7,_0x121d11){if(_0x3cc7e6[_0x3cc0('0x10c')]['isEqual'](_0x4e2ad7[_0x3cc0('0xab')]))return!0x0;if(_0x16373b[_0x3cc0('0x122')]!=_0x56705d[_0x3cc0('0x122')])return!0x1;if(!_0x3cc7e6['end'][_0x3cc0('0xc3')](_0x4e2ad7[_0x3cc0('0xab')]))return!0x1;const _0x4dca14=_0x121d11[_0x3cc0('0xe')](_0x3cc7e6[_0x3cc0('0x10c')],_0x4e2ad7[_0x3cc0('0xab')])[_0x3cc0('0x22')]();for(const _0x55de7b of _0x4dca14)if([_0x3cc0('0xc5'),_0x3cc0('0x2b')][_0x3cc0('0x4f')](_0x55de7b[_0x3cc0('0x122')])&&_0x121d11[_0x3cc0('0xde')]['isLimit'](_0x55de7b[_0x3cc0('0x7d')]))return!0x1;return!0x0;}
|
|
23
|
+
const _0x24b2=['isAfter','batch','remove','addSuggestionData','getAllAdjacentSuggestions','addMarkerName','trackChanges.mergeNestedSuggestions','isInContent','fetchCommentThread','join','formatInline','hasComments','getFirstRange','isNextTo','elementToElement','delete','refresh','getRange','rethrowUnexpectedError','previous','values','formatBlock:','addMarker:suggestion','nodeAfter','commentThread','isDocumentOperation','activeMarkers','fromCharCode','getSuggestionCallback','markerToHighlight','options','default','range','registerPostFixer','acceptSelectedSuggestions','_defaultCallbacks','containerElement','setAttribute','PENDING_ACTION_SUGGESTION','substr','_registerDefaultCallbacks','track-changes-adapter-already-set','root','getMultiRangeId','updateMarker','bindElementToMarker','_getAuthorFromId','removed','isBefore','move','element','deletion','pluginName','accept','ck-suggestion-marker-formatBlock','catch','formatInline:discard','removeClass','item','addRange','_suggestionFactory','requires','isIntersectingWithRange','upcast','_enabledCommands','enableReadOnlyMode','chain','addSuggestion','newRange','acceptSuggestion','set','isEqual','fromRange','isLocal','end','deletion:','_refreshSuggestionsChain','split','addClass','getChangedMarkers','detach','value','Users','_adapter','_mergeNestedSuggestions','insertion:accept','_customCallbacks','createRangeIn','containsRangeInObject','skipNestingCheck','oldRange','CommentsRepository','data','change','position','accepted','_commentsRepository','stop','removeMarker','containsRange','error-saving-suggestion-data-suggestion-discarded','acceptAllSuggestions','attributes','forceDefaultExecution','addHighlight','fire','ready','sort','_rangeIsInLocalUserInsertion','formatInline:','suggestion:','createRange','change:_saved','_checkSuggestionCorrectness','_suggestionState','suggestionUnloaded','formatGroupId','define','name','isAtEnd','consumable','_onDiscard','has','_descriptionFactory','_addSuggestionMarker','getLastMatchingPosition','_isForcedDefaultExecutionBlock','removeComment','_updateSuggestionData','markBlockFormat','track-changes-suggestion-not-found','isRemovable','markerReady','formatBlock:accept','notReady','updateSuggestion','_trackFormatChanges','get','insertion','createSelection','getUser','isTouching','createPositionAfter','getFirstMarker','getRanges','createPositionBefore','getAttribute','formatBlock:join','consume','document','removeMarkers','isExternal','discardAllSuggestions','backward','_editor','from','authorName','model','@external','update:suggestion','suggestionLoaded','deletion:accept','howMany','plugins','never','selection','isCollapsed','markInsertion','differ','_breakSuggestionMarker','some','formatInline:chain','change:activeMarkers','_setSuggestionData','locale','multi','high','getAncestors','$marker','insertContent','getCustomProperty','markDeletion','collaboration.channelId','stopListening','parent','writer','every','dataToMarker','_addThreadToSuggestion','always','ck-suggestion-marker','_cutOutSuggestionMarker','showSuggestionHighlights','deletion:join','dataReady','suggestion-type','originalSuggestionId','_joinSuggestions','_findSuggestions','moveTargetPosition','subType','getMarkers','$graveyard','trackChanges.trackFormatChanges','_setSuggestionRange','isBlock','track-changes-suggestion-data-mismatch','formatInline:join','markMultiRangeBlockFormat','elementEnd','deleteContent','isUndo','isOwn','_createSuggestion','adapter','after','size','insertion:chain','schema','formatBlock','data-suggestion','ck-suggestion-marker-','_handleNewSuggestionMarker','splice','addUser','add','applyOperation','getSuggestion','normal','markerNameToElements','_model','getShiftedBy','registerCustomCallback','author','discardSuggestion','creator','for','group','open','length','insert','_joinWithAdjacentSuggestions','createPositionAt','getDifference','buildSuggestion','getSuggestions','marker-count','setSelection','conversion','mapper','suggestionChanged','discardSelectedSuggestions','addCommentThread','markers','push','filter','return','then','isMultiRange','enableCommand','listenTo','PendingActions','multipleBlocks','_getExternalAuthor','ck-suggestion-marker--active','removeMarker:suggestion:formatBlock','widget','$textProxy','setTo','head','containsItem','low','rootName','toViewElement','getIntersection','isInsideObject','type','commands','isLimit','dataDowncast','addMarker','isObject','hasSuggestion','_saved','authoredAt','trackChanges','map','markerName','nodeBefore','commandName','editingDowncast','_suggestions','createElement','lowest','unbind','config','rejected','insertion:join','documentSelection','_splitMarkerName','getChanges','getNearestSelectionRange','includes','suggestion','start','formatBlock:chain','formatBlock:discard','unbindElementFromMarkerName','forward','discard','editor','trackChangesCommand','next','_removeSuggestion','isAtStart','_getSuggestionData','markMultiRangeDeletion','createdAt'];(function(_0x411d17,_0x24b2ca){const _0x38669f=function(_0xd6b13a){while(--_0xd6b13a){_0x411d17['push'](_0x411d17['shift']());}};_0x38669f(++_0x24b2ca);}(_0x24b2,0x175));const _0x3866=function(_0x411d17,_0x24b2ca){_0x411d17=_0x411d17-0x0;let _0x38669f=_0x24b2[_0x411d17];return _0x38669f;};import{Plugin as _0xfd98c0,PendingActions as _0x3a68de}from'ckeditor5/src/core';import{LiveRange as _0x10ff46}from'ckeditor5/src/engine';import{CKEditorError as _0x217484,uid as _0x2760d2,priorities as _0x5a7cbd,logWarning as _0x394639}from'ckeditor5/src/utils';import{toWidget as _0x1700a1}from'ckeditor5/src/widget';import{Users as _0x2a2bae,hashObject as _0x1e68fd}from'ckeditor5-collaboration/src/collaboration-core';import _0x491a90 from'./commands/trackchangescommand';import _0x4d7ced from'./commands/acceptsuggestioncommand';import _0x2a2caf from'./commands/discardsuggestioncommand';import _0x4b9b1f from'./commands/executeonallsuggestionscommand';import _0x1e58db from'./commands/executeonselectedsuggestionscommand';import _0x3a1096 from'./suggestion';import _0x396d25 from'./suggestiondescriptionfactory';import _0x15203a from'./integrations/alignment';import _0x364ef4 from'./integrations/basicstyles';import _0x53850e from'./integrations/blockquote';import _0x3d614c from'./integrations/ckbox';import _0x3f1a76 from'./integrations/codeblock';import _0x26fdd2 from'./integrations/comments';import _0x40ed5d from'./integrations/deletecommand';import _0x1d5017 from'./integrations/documentlist';import _0x1b0b3b from'./integrations/entercommand';import _0x60b039 from'./integrations/findandreplace';import _0x3123cf from'./integrations/font';import _0x56026c from'./integrations/formatpainter';import _0xd31d0f from'./integrations/heading';import _0x4725e8 from'./integrations/highlight';import _0x124712 from'./integrations/horizontalline';import _0x20998c from'./integrations/htmlembed';import _0x448d77 from'./integrations/image';import _0x27da03 from'./integrations/imagereplace';import _0x1ffe09 from'./integrations/importword';import _0x5cdab6 from'./integrations/indent';import _0x310a3a from'./integrations/inputcommand';import _0x1cfe62 from'./integrations/link';import _0xebea54 from'./integrations/list';import _0x31da56 from'./integrations/listproperties';import _0x51835c from'./integrations/mediaembed';import _0x3b77d0 from'./integrations/mention';import _0x470494 from'./integrations/pagebreak';import _0x29d4b7 from'./integrations/paragraph';import _0x81daa0 from'./integrations/removeformat';import _0x11b69b from'./integrations/restrictededitingmode';import _0xa3f387 from'./integrations/shiftentercommand';import _0x15a35c from'./integrations/standardeditingmode';import _0x26eca3 from'./integrations/style';import _0x29dfec from'./integrations/table';import _0x14a6fc from'./integrations/tablemergesplit';import _0x2a997a from'./integrations/tableheadings';import _0x43d031 from'./integrations/tableclipboard';import _0xc0322c from'./integrations/tablecolumnresize';import _0x35cc79 from'./integrations/template';import _0x25136f from'./integrations/tableofcontents';import _0x31e5eb from'./integrations/title';import _0x86a226 from'./integrations/undo';import{getTranslation as _0x2cae61}from'./utils/common-translations';import _0x2e21f7 from'./integrations/tablecaption';import _0x4536ec from'./integrations/documentlistproperties';import _0x113d30 from'./integrations/tableproperties';export default class p extends _0xfd98c0{static get[_0x3866('0x6')](){return[_0x3866('0x24'),_0x2a2bae,_0x3a68de,_0x15203a,_0x364ef4,_0x53850e,_0x3d614c,_0x3f1a76,_0x26fdd2,_0x40ed5d,_0x1d5017,_0x4536ec,_0x1b0b3b,_0x60b039,_0x3123cf,_0x56026c,_0xd31d0f,_0x4725e8,_0x124712,_0x20998c,_0x448d77,_0x27da03,_0x1ffe09,_0x5cdab6,_0x310a3a,_0x1cfe62,_0xebea54,_0x31da56,_0x51835c,_0x3b77d0,_0x470494,_0x29d4b7,_0x81daa0,_0x11b69b,_0xa3f387,_0x15a35c,_0x26eca3,_0x29dfec,_0x14a6fc,_0x2a997a,_0x2e21f7,_0x43d031,_0xc0322c,_0x25136f,_0x113d30,_0x35cc79,_0x31e5eb,_0x86a226];}static get[_0x3866('0x13b')](){return'TrackChangesEditing';}constructor(_0x46f0d6){function _0x306a27(_0x3a793a){return _0x3a793a[_0x3866('0xe7')](_0x2a5b7b=>String[_0x3866('0x122')](_0x2a5b7b))[_0x3866('0x110')]('');}super(_0x46f0d6),this[_0x3866('0xf')](_0x3866('0x121'),[]),this['on'](_0x3866('0x75'),(_0x41724d,_0x289d26,_0x1cd66e,_0x134178)=>{this[_0x3866('0xaf')][_0x3866('0x26')](()=>{for(const _0x2b690e of[..._0x134178,..._0x1cd66e])this[_0x3866('0xaf')][_0x3866('0xc6')]['has'](_0x2b690e)&&_0x46f0d6['editing']['reconvertMarker'](_0x2b690e);});}),this[_0x3866('0x44')]=new _0x396d25(this[_0x3866('0xff')]['model'][_0x3866('0xa3')],this[_0x3866('0xff')][_0x3866('0x77')]),this[_0x3866('0x1c')]=null,this[_0x3866('0x5')]=new Dt(this[_0x3866('0xff')]),this['_suggestions']=new Map(),this[_0x3866('0x29')]=_0x46f0d6['plugins']['get']('CommentsRepository'),this[_0x3866('0x9')]=new Set(),this[_0x3866('0xaf')]=this[_0x3866('0xff')][_0x3866('0x66')],this['_suggestionState']=new WeakMap(),this[_0x3866('0x47')]=!0x1,_0x46f0d6[_0x3866('0xf0')]['define'](_0x3866('0x94'),_0x3866('0x126')),this['_trackFormatChanges']=_0x46f0d6['config'][_0x3866('0x52')](_0x3866('0x94')),_0x46f0d6[_0x3866('0xf0')][_0x3866('0x3e')](_0x3866('0x10d'),!0x0),this['_mergeNestedSuggestions']=_0x46f0d6[_0x3866('0xf0')][_0x3866('0x52')](_0x3866('0x10d')),this[_0x3866('0x100')]=new _0x491a90(_0x46f0d6,this[_0x3866('0x9')]),this[_0x306a27([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x306a27([0x34,0x30,0x34,0x36,0x31,0x34,0x31,0x34]);}['init'](){const _0x326423=this[_0x3866('0xff')];_0x326423[_0x3866('0xc1')][_0x3866('0xb5')](_0x3866('0xeb'))[_0x3866('0x124')]({'model':_0x3866('0xf8'),'view':_0x3b8a15=>{const {id:_0x36427c,type:_0x21aa2a}=this[_0x3866('0xf4')](_0x3b8a15[_0x3866('0xe8')]),_0xcd9573=[_0x3866('0x87'),_0x3866('0xa6')+_0x21aa2a];let _0x1e233e=0xbb8;return this[_0x3866('0x121')][_0x3866('0xf7')](_0x3b8a15['markerName'])&&(_0xcd9573[_0x3866('0xc7')]('ck-suggestion-marker--active'),_0x1e233e=0xbc2),_0x3866('0x13a')==_0x21aa2a&&(_0x1e233e+=0x5),{'classes':_0xcd9573,'attributes':{'data-suggestion':_0x36427c},'priority':_0x1e233e};}}),_0x326423[_0x3866('0xc1')][_0x3866('0xb5')](_0x3866('0xe0'))['add'](_0x5576b1=>{_0x5576b1['on'](_0x3866('0x11d'),(_0x28b511,_0x2ac3e8,_0x5e3443)=>{if(!_0x5e3443[_0x3866('0x125')][_0x3866('0x89')])return;const _0x22d8df=_0x2ac3e8[_0x3866('0x3')];if(!_0x22d8df)return;const _0x5cae6e=_0x5e3443['mapper']['toViewElement'](_0x22d8df);_0x326423[_0x3866('0x66')][_0x3866('0xa3')][_0x3866('0xe2')](_0x22d8df)&&_0x5cae6e&&!_0x5cae6e['getCustomProperty'](_0x3866('0xd3'))&&_0x5cae6e['is'](_0x3866('0x12b'))&&_0x1700a1(_0x5cae6e,_0x5e3443[_0x3866('0x82')]);},{'priority':_0x3866('0x79')});}),_0x326423['conversion'][_0x3866('0xb5')](_0x3866('0xe0'))[_0x3866('0x124')]({'model':_0x3866('0xf8'),'view':(_0x47bf3c,_0x1ea799)=>{if(!_0x1ea799['options'][_0x3866('0x89')])return null;const {type:_0x5b638d}=this[_0x3866('0xf4')](_0x47bf3c[_0x3866('0xe8')]);return{'classes':[_0x3866('0x87'),_0x3866('0xa6')+_0x5b638d],'priority':0xbb8};}});const _0x15371a=({showActiveMarkers:_0x30ad51=!0x0}={})=>(_0x25cd8e,_0x5429c4,_0x5b261b)=>{if(!_0x5429c4['item'])return;if(_0x5429c4[_0x3866('0x3')]['is'](_0x3866('0x6e')))return void _0x5b261b[_0x3866('0x41')]['consume'](_0x5429c4[_0x3866('0x3')],_0x25cd8e['name']);const _0x2fc647=_0x5b261b['mapper'][_0x3866('0xda')](_0x5429c4[_0x3866('0x3')]);if(!(_0x5429c4[_0x3866('0x3')]['is'](_0x3866('0x139'))&&_0x326423[_0x3866('0x66')][_0x3866('0xa3')][_0x3866('0x96')](_0x5429c4['item'])&&!_0x2fc647['getCustomProperty']('addHighlight')))return;const {id:_0x1432aa}=this['_splitMarkerName'](_0x5429c4[_0x3866('0xe8')]);_0x5b261b['writer'][_0x3866('0x17')]([_0x3866('0x87'),_0x3866('0x13d')],_0x2fc647),_0x5b261b['writer'][_0x3866('0x12c')]('data-suggestion',_0x1432aa,_0x2fc647),_0x5b261b[_0x3866('0xc2')][_0x3866('0x134')](_0x2fc647,_0x5429c4['markerName']),_0x30ad51&&(this[_0x3866('0x121')]['includes'](_0x5429c4[_0x3866('0xe8')])?_0x5b261b[_0x3866('0x82')][_0x3866('0x17')](_0x3866('0xd1'),_0x2fc647):_0x5b261b[_0x3866('0x82')][_0x3866('0x2')](_0x3866('0xd1'),_0x2fc647));for(const _0x2f5135 of _0x326423[_0x3866('0x66')][_0x3866('0x20')](_0x5429c4[_0x3866('0x3')])['getItems']())_0x5b261b['consumable'][_0x3866('0x5d')](_0x2f5135,_0x25cd8e[_0x3866('0x3f')]);_0x5b261b[_0x3866('0x41')][_0x3866('0x5d')](_0x5429c4[_0x3866('0x3')],_0x25cd8e['name']);};_0x326423[_0x3866('0xc1')][_0x3866('0xb5')]('dataDowncast')[_0x3866('0xaa')](_0x112e34=>{_0x112e34['on']('addMarker:suggestion:formatBlock',(_0x18d147,_0x35ed8c,_0x505760)=>{_0x505760[_0x3866('0x125')][_0x3866('0x89')]&&_0x15371a({'showActiveMarkers':!0x1})(_0x18d147,_0x35ed8c,_0x505760);},{'priority':'highest'});}),_0x326423[_0x3866('0xc1')][_0x3866('0xb5')](_0x3866('0xe0'))['markerToData']({'model':_0x3866('0xf8'),'view':(_0x3eec87,_0x465919)=>_0x465919[_0x3866('0x125')][_0x3866('0x89')]?null:{'group':'suggestion','name':_0x3eec87[_0x3866('0x12e')](0xb)}}),_0x326423[_0x3866('0xc1')]['for']('upcast')[_0x3866('0x115')]({'view':{'name':_0x3866('0xf8'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x42897c,{writer:_0x42c7a0})=>{let _0x3cc76b=_0x3866('0x37')+_0x42897c[_0x3866('0x5b')](_0x3866('0x8c'))+':'+_0x42897c[_0x3866('0x5b')]('id');return _0x42897c['getAttribute'](_0x3866('0xbf'))&&(_0x3cc76b+=':'+_0x42897c[_0x3866('0x5b')](_0x3866('0xbf'))),_0x42c7a0[_0x3866('0xed')](_0x3866('0x7b'),{'data-name':_0x3cc76b});}}),_0x326423[_0x3866('0xc1')][_0x3866('0xb5')](_0x3866('0x8'))[_0x3866('0x84')]({'view':_0x3866('0xf8')}),_0x326423[_0x3866('0xc1')][_0x3866('0xb5')]('editingDowncast')['add'](_0x450988=>{_0x450988['on']('addMarker:suggestion:formatBlock',_0x15371a(),{'priority':_0x3866('0x79')});}),_0x326423[_0x3866('0xc1')][_0x3866('0xb5')](_0x3866('0xeb'))[_0x3866('0xaa')](_0x23a543=>{_0x23a543['on'](_0x3866('0xd2'),(_0x4833fe,_0x41ac15,_0x2d6889)=>{const _0x36b309=_0x2d6889[_0x3866('0xc2')][_0x3866('0xae')](_0x41ac15[_0x3866('0xe8')]);if(_0x36b309)for(const _0x464b50 of _0x36b309)_0x464b50[_0x3866('0x7d')](_0x3866('0x31'))||(_0x2d6889[_0x3866('0x82')][_0x3866('0x2')]([_0x3866('0x87'),_0x3866('0x13d'),'ck-suggestion-marker--active'],_0x464b50),_0x2d6889[_0x3866('0x82')]['removeAttribute'](_0x3866('0xa5'),_0x464b50),_0x2d6889['mapper'][_0x3866('0xfc')](_0x464b50,_0x41ac15['markerName']));},{'priority':_0x3866('0x79')});}),_0x326423[_0x3866('0x66')]['document']['registerPostFixer'](_0x2db07c=>{let _0xd594ea=!0x1;const _0x28d872=Array[_0x3866('0x64')](_0x326423[_0x3866('0x66')][_0x3866('0x5e')][_0x3866('0x71')][_0x3866('0x18')]()),_0x1dd2e6=new Set();for(const {name:_0x20c345,data:_0x13b2e2}of _0x28d872){const {group:_0x5651b3,type:_0x570831,id:_0x1bc266}=this[_0x3866('0xf4')](_0x20c345);if(_0x3866('0xf8')!==_0x5651b3)continue;const _0x3e5d4a=this[_0x3866('0xec')][_0x3866('0x52')](_0x1bc266);if(null!=_0x13b2e2[_0x3866('0xd')]){_0x3866('0x111')==_0x570831&&(_0xd594ea=_0xd594ea||Mt(_0x13b2e2[_0x3866('0xd')],_0x20c345,_0x2db07c,_0x326423['model']['schema']));if(_0x13b2e2['newRange']['isCollapsed']||_0x3866('0x93')==_0x13b2e2[_0x3866('0xd')][_0x3866('0x131')][_0x3866('0xd9')]||'formatBlock'==_0x570831&&!Nt(_0x13b2e2['newRange'])||_0x3866('0x13a')==_0x570831&&!(!_t(_0x44cb62=_0x13b2e2[_0x3866('0xd')])&&!function(_0x2b218b){return _0x2b218b[_0x3866('0xf9')]['parent']==_0x2b218b[_0x3866('0x13')][_0x3866('0xe9')]&&_0x2b218b[_0x3866('0xf9')]['isAtEnd'];}(_0x44cb62)))_0x2db07c[_0x3866('0x2b')](_0x20c345),_0xd594ea=!0x0;else{if(!_0x3e5d4a||!_0x3e5d4a[_0x3866('0x10e')])continue;_0x1dd2e6[_0x3866('0xaa')](_0x3e5d4a);}}}var _0x44cb62;return _0x1dd2e6[_0x3866('0xa1')]>0x0&&(_0xd594ea=!!this[_0x3866('0xba')](_0x1dd2e6)||_0xd594ea),_0xd594ea;}),_0x326423[_0x3866('0x66')][_0x3866('0x5e')][_0x3866('0x128')](_0x452b9d=>{let _0x3bdfef=!0x1;for(const _0x21e9ce of _0x326423[_0x3866('0x66')][_0x3866('0x5e')]['differ'][_0x3866('0xf5')]()){if(_0x3866('0xb9')!=_0x21e9ce[_0x3866('0xdd')])continue;const _0x2376a0=_0x21e9ce[_0x3866('0x27')][_0x3866('0xb0')](_0x21e9ce[_0x3866('0xb8')]);if(_0x2376a0[_0x3866('0x40')])for(const _0x2c05e6 of this[_0x3866('0xec')][_0x3866('0x11b')]()){if(_0x2c05e6[_0x3866('0xcb')]||!_0x2c05e6['isInContent'])continue;if(_0x3866('0xa4')!=_0x2c05e6[_0x3866('0xdd')])continue;const _0xa1b7e7=_0x2c05e6[_0x3866('0x113')]();if(_0xa1b7e7[_0x3866('0xf9')][_0x3866('0x81')]!=_0xa1b7e7[_0x3866('0x13')][_0x3866('0x81')]&&_0xa1b7e7['end'][_0x3866('0x10')](_0x21e9ce[_0x3866('0x27')])){const _0x20282d=_0x326423['model'][_0x3866('0x38')](_0xa1b7e7[_0x3866('0xf9')],_0x2376a0);_0x452b9d[_0x3866('0x133')](_0x2c05e6[_0x3866('0x58')](),{'range':_0x20282d}),_0x3bdfef=!0x0;}}}return _0x3bdfef;}),_0x326423[_0x3866('0x66')][_0x3866('0xc6')]['on'](_0x3866('0x68'),(_0x20f900,_0x3fbac0,_0x17475a)=>{if(null==_0x17475a){const {id:_0x2cc7d5}=this[_0x3866('0xf4')](_0x3fbac0[_0x3866('0x3f')]),_0x43f331=this['_suggestions'][_0x3866('0x52')](_0x2cc7d5);_0x43f331&&_0x43f331['addMarkerName'](_0x3fbac0[_0x3866('0x3f')]);}}),_0x326423[_0x3866('0x66')][_0x3866('0x5e')]['on']('change:data',()=>{const _0x3b5f3e=Array[_0x3866('0x64')](_0x326423[_0x3866('0x66')][_0x3866('0x5e')][_0x3866('0x71')]['getChangedMarkers']())['filter'](_0x2de3ad=>_0x3866('0xf8')===this[_0x3866('0xf4')](_0x2de3ad[_0x3866('0x3f')])[_0x3866('0xb6')]);if(0x0===_0x3b5f3e[_0x3866('0xb8')])return;_0x3b5f3e[_0x3866('0x34')]((_0x2fd43d,_0x3db44a)=>{const _0x5b7776=_0x2fd43d[_0x3866('0x25')][_0x3866('0x23')],_0x287d77=_0x3db44a[_0x3866('0x25')]['oldRange'];return null===_0x5b7776&&null===_0x287d77?0x0:null===_0x5b7776&&null!==_0x287d77?-0x1:null!==_0x5b7776&&null===_0x287d77?0x1:_0x5b7776[_0x3866('0xf9')][_0x3866('0x137')](_0x287d77['start'])?-0x1:0x1;});const _0x22f102=new Set(),_0x58e840=new Set();for(const {name:_0x36c828,data:_0x38295e}of _0x3b5f3e){const {id:_0x5150f5}=this['_splitMarkerName'](_0x36c828);if(null===_0x38295e[_0x3866('0x23')]){const _0x43ee3c=this[_0x3866('0xa7')](_0x36c828);_0x58e840['add'](_0x43ee3c);}else{const _0x527564=this[_0x3866('0xec')]['get'](_0x5150f5);null!==_0x38295e[_0x3866('0xd')]||_0x527564[_0x3866('0x10e')]?(_0x22f102[_0x3866('0xaa')](_0x527564[_0x3866('0xd6')]),_0x58e840[_0x3866('0xaa')](_0x527564)):this[_0x3866('0x102')](_0x527564);}}_0x58e840[_0x3866('0xa1')]>0x0&&this[_0x3866('0x15')](_0x58e840);for(const _0x24721e of _0x22f102)this['fire'](_0x3866('0xc3'),_0x24721e);}),_0x326423['model']['on'](_0x3866('0xab'),(_0x8b48f4,_0x3f6e44)=>{const _0x2ef1a6=_0x3f6e44[0x0];if(!this[_0x3866('0xec')]['size'])return;if(!_0x2ef1a6[_0x3866('0x120')])return;if(_0x2ef1a6[_0x3866('0x108')][_0x3866('0x9c')]||!_0x2ef1a6[_0x3866('0x108')][_0x3866('0x12')])return;let _0x1f2671,_0x755187;switch(_0x2ef1a6['type']){case _0x3866('0xb9'):_0x1f2671=_0x326423[_0x3866('0x66')][_0x3866('0xbb')](_0x2ef1a6['position']),_0x755187=_0x1f2671[_0x3866('0xb0')](_0x2ef1a6[_0x3866('0x6b')]);break;case _0x3866('0x16'):_0x1f2671=_0x326423[_0x3866('0x66')][_0x3866('0xbb')](_0x2ef1a6['splitPosition']),_0x755187=_0x326423[_0x3866('0x66')][_0x3866('0xbb')](_0x2ef1a6[_0x3866('0x90')]);break;case _0x3866('0x138'):_0x1f2671=_0x326423[_0x3866('0x66')][_0x3866('0xbb')](_0x2ef1a6['targetPosition']),_0x755187=_0x1f2671[_0x3866('0xb0')](_0x2ef1a6[_0x3866('0x6b')]);break;default:return;}const _0x56915d=_0x326423[_0x3866('0x66')][_0x3866('0x38')](_0x1f2671,_0x755187);_0x326423[_0x3866('0x66')][_0x3866('0x26')](()=>{for(const {suggestion:_0x110751,meta:_0x2f528a}of this[_0x3866('0x8f')](_0x56915d)){if(_0x110751[_0x3866('0xcb')])continue;if(_0x3866('0x111')==_0x110751[_0x3866('0xdd')])continue;const _0x4e8185=_0x110751[_0x3866('0x25')]&&_0x110751[_0x3866('0x25')][_0x3866('0xcf')];(_0x3866('0xa4')!=_0x110751['type']||_0x3866('0x16')==_0x2ef1a6[_0x3866('0xdd')]&&!_0x4e8185)&&(_0x2f528a[_0x3866('0x21')]||_0x3866('0x53')==_0x110751[_0x3866('0xdd')]&&_0x2f528a['isOwn']||_0x110751[_0x3866('0x113')]()[_0x3866('0x2c')](_0x56915d)&&this[_0x3866('0x72')](_0x110751,_0x1f2671,_0x755187));}});},{'priority':_0x3866('0xee')}),_0x326423[_0x3866('0x66')]['on'](_0x3866('0x9b'),(_0x11736d,_0x33ab2b)=>{const _0x1f6b61=_0x33ab2b[0x0],_0x3595a2=_0x33ab2b[0x1];if(_0x3595a2&&_0x3595a2[_0x3866('0x30')])return;if(this[_0x3866('0x47')])return;if(!this[_0x3866('0x100')][_0x3866('0x1a')])return;if(_0x1f6b61[_0x3866('0x6f')])return;const _0x544a9b=_0x326423[_0x3866('0x66')][_0x3866('0xa3')],{start:_0x4be2e8,end:_0x407505}=_0x1f6b61[_0x3866('0x113')](),_0x1c6f91=_0x4be2e8[_0x3866('0x11e')]&&_0x544a9b[_0x3866('0xdf')](_0x4be2e8[_0x3866('0x11e')])?null:_0x544a9b['getNearestSelectionRange'](_0x4be2e8,_0x3866('0xfd')),_0x320efb=_0x407505[_0x3866('0xe9')]&&_0x544a9b[_0x3866('0xdf')](_0x407505[_0x3866('0xe9')])?null:_0x544a9b[_0x3866('0xf6')](_0x407505,_0x3866('0x62')),_0x3ac091=_0x326423[_0x3866('0x66')][_0x3866('0x38')](_0x1c6f91?_0x1c6f91[_0x3866('0xf9')]:_0x4be2e8,_0x320efb?_0x320efb[_0x3866('0x13')]:_0x407505);_0x326423[_0x3866('0x66')][_0x3866('0x26')](_0x1a827b=>{this[_0x3866('0x7e')](_0x3ac091);const _0xa254de=_0x326423[_0x3866('0x66')][_0x3866('0xa3')][_0x3866('0xf6')](_0x3ac091['start']);_0x1f6b61['is'](_0x3866('0xf3'))?_0x1a827b[_0x3866('0xc0')](_0xa254de):_0x1f6b61[_0x3866('0xd5')](_0xa254de);}),_0x11736d['stop']();},{'priority':_0x5a7cbd[_0x3866('0xad')]+0xa}),_0x326423[_0x3866('0x66')]['on'](_0x3866('0x7c'),(_0x483476,_0x3537db)=>{const _0x16cf29=_0x3537db[_0x3537db[_0x3866('0xb8')]-0x1];_0x16cf29&&_0x16cf29['forceDefaultExecution']||this[_0x3866('0x47')]||this[_0x3866('0x100')]['value']&&(_0x326423[_0x3866('0x66')][_0x3866('0x26')](()=>{let _0x573872=_0x326423[_0x3866('0x66')][_0x3866('0x7c')](_0x3537db[0x0],_0x3537db[0x1],_0x3537db[0x2],{'forceDefaultExecution':!0x0});if(!_0x573872)return;_0x483476[_0x3866('0xc9')]=_0x573872['clone']();const _0x128d41=_0x573872[_0x3866('0x13')][_0x3866('0xe9')],_0x15220b=_0x326423[_0x3866('0x66')]['schema'];_0x128d41&&_0x15220b[_0x3866('0x96')](_0x128d41)&&!_0x15220b['isObject'](_0x128d41)&&(_0x573872=_0x326423[_0x3866('0x66')][_0x3866('0x38')](_0x573872[_0x3866('0xf9')],_0x326423[_0x3866('0x66')]['createPositionAt'](_0x128d41,_0x3866('0x13')))),this[_0x3866('0x70')](_0x573872);}),_0x483476[_0x3866('0x2a')]());},{'priority':'high'}),this[_0x3866('0xff')][_0x3866('0xde')][_0x3866('0xaa')](_0x3866('0xe6'),this[_0x3866('0x100')]),this[_0x3866('0xcc')](_0x3866('0xe6'));const _0x45ef8a=new _0x4d7ced(_0x326423,this['_suggestions']);_0x326423[_0x3866('0xde')][_0x3866('0xaa')]('acceptSuggestion',_0x45ef8a),this[_0x3866('0xcc')]('acceptSuggestion');const _0x52fc14=new _0x2a2caf(_0x326423,this[_0x3866('0xec')]);_0x326423['commands'][_0x3866('0xaa')](_0x3866('0xb3'),_0x52fc14),this[_0x3866('0xcc')](_0x3866('0xb3')),_0x326423['commands']['add'](_0x3866('0x2e'),new _0x4b9b1f(_0x326423,_0x45ef8a,this[_0x3866('0xec')])),this[_0x3866('0xcc')](_0x3866('0x2e')),_0x326423['commands'][_0x3866('0xaa')](_0x3866('0x61'),new _0x4b9b1f(_0x326423,_0x52fc14,this[_0x3866('0xec')])),this[_0x3866('0xcc')](_0x3866('0x61')),_0x326423[_0x3866('0xde')][_0x3866('0xaa')](_0x3866('0x129'),new _0x1e58db(_0x326423,_0x45ef8a,this[_0x3866('0xec')])),this['enableCommand']('acceptSelectedSuggestions'),_0x326423['commands'][_0x3866('0xaa')](_0x3866('0xc4'),new _0x1e58db(_0x326423,_0x52fc14,this['_suggestions'])),this[_0x3866('0xcc')](_0x3866('0xc4'));const _0x436770=_0x326423[_0x3866('0x6c')][_0x3866('0x52')]('CommentsRepository');this[_0x3866('0xcd')](_0x436770,'addComment',(_0x1081e4,{threadId:_0x488dc7})=>{const _0x15a717=this[_0x3866('0xec')][_0x3866('0x52')](_0x488dc7);_0x15a717&&_0x15a717[_0x3866('0x11f')]&&0x1===_0x15a717['commentThread']['length']&&this[_0x3866('0x49')](_0x488dc7,{'hasComments':!0x0});},{'priority':_0x3866('0xd8')}),this['listenTo'](_0x436770,_0x3866('0x48'),(_0x19131d,{threadId:_0x154d4a})=>{const _0x756fa0=this[_0x3866('0xec')][_0x3866('0x52')](_0x154d4a);_0x756fa0&&_0x756fa0[_0x3866('0x11f')]&&!_0x756fa0[_0x3866('0x11f')]['length']&&this['_updateSuggestionData'](_0x154d4a,{'hasComments':!0x1});},{'priority':_0x3866('0xd8')});}set[_0x3866('0x9f')](_0x15f9d0){if(this[_0x3866('0x1c')])throw new _0x217484(_0x3866('0x130'),this);this['_adapter']=_0x15f9d0;}get[_0x3866('0x9f')](){return this[_0x3866('0x1c')];}[_0x3866('0xbe')]({skipNotAttached:_0xb93673=!0x1,toJSON:_0x455b50=!0x1}={}){const _0x37b6e7=[];for(const _0x5583a1 of this['_suggestions'][_0x3866('0x11b')]())_0xb93673&&!_0x5583a1['isInContent']||_0x37b6e7[_0x3866('0xc7')](_0x5583a1);return _0x455b50?_0x37b6e7[_0x3866('0xe7')](_0x5220c3=>_0x5220c3['toJSON']()):_0x37b6e7;}['getSuggestion'](_0x4d3b50){const _0x44caf4=this[_0x3866('0xec')][_0x3866('0x52')](_0x4d3b50);if(!_0x44caf4)throw new _0x217484(_0x3866('0x4b'),this);return _0x44caf4;}[_0x3866('0xe3')](_0x3a2307){return this[_0x3866('0xec')][_0x3866('0x43')](_0x3a2307);}[_0x3866('0x10a')](_0x514484){const {authorId:_0x402cbe,id:_0x2fff23,attributes:_0x2cd933}=_0x514484,[_0x2b1f94,_0x63bc41]=_0x514484['type'][_0x3866('0x16')](':'),_0xd0a2a3=this['_suggestions'][_0x3866('0x52')](_0x2fff23)||this[_0x3866('0x9e')](_0x2b1f94,_0x63bc41,_0x2fff23,_0x402cbe,_0x2cd933);if(this[_0x3866('0x85')](_0xd0a2a3),this[_0x3866('0x3a')](_0xd0a2a3,_0x2b1f94,_0x63bc41||null,_0x402cbe),_0xd0a2a3['createdAt']=_0x514484[_0x3866('0x106')],_0x2cd933&&_0x2cd933[_0x3866('0x67')]){const _0x4017a4=_0x2cd933['@external'],_0x270d71=this[_0x3866('0xd0')](_0x4017a4[_0x3866('0x65')]);_0xd0a2a3[_0x3866('0xe5')]=_0x4017a4['createdAt'],_0xd0a2a3[_0x3866('0xb2')]=_0x270d71,_0xd0a2a3[_0x3866('0x60')]=!0x0;}else _0xd0a2a3[_0x3866('0xe5')]=_0x514484[_0x3866('0x106')];switch(_0x514484['data']&&(_0xd0a2a3[_0x3866('0x25')]=_0x514484['data']),_0x514484['attributes']&&(_0xd0a2a3[_0x3866('0x2f')]=_0x514484[_0x3866('0x2f')]),this[_0x3866('0x1c')]&&this['_adapter'][_0x3866('0xc')]||(_0xd0a2a3[_0x3866('0xe4')]=!0x0),this[_0x3866('0x3b')][_0x3866('0x52')](_0xd0a2a3)){case _0x3866('0x4f'):this[_0x3866('0x3b')]['set'](_0xd0a2a3,_0x3866('0x8b'));break;case _0x3866('0x4d'):_0xd0a2a3[_0x3866('0x10e')]?(this['_suggestionState']['set'](_0xd0a2a3,_0x3866('0x33')),this[_0x3866('0x32')](_0x3866('0x69'),_0xd0a2a3)):this['_suggestionState'][_0x3866('0xf')](_0xd0a2a3,_0x3866('0x136'));}return _0xd0a2a3;}[_0x3866('0xe')](_0x3baf39){this[_0x3866('0x30')](()=>{this['editor'][_0x3866('0x66')][_0x3866('0x26')](()=>{for(const _0xb2425 of _0x3baf39[_0x3866('0x10b')]())_0xb2425['accept']();});});}[_0x3866('0xb3')](_0x502e30){this['forceDefaultExecution'](()=>{this[_0x3866('0xff')][_0x3866('0x66')][_0x3866('0x26')](()=>{for(const _0x42f5b8 of _0x502e30[_0x3866('0x10b')]())_0x42f5b8['discard']();});});}['enableCommand'](_0x16f2d2,_0x294606){const _0x30e860=this['editor']['commands'][_0x3866('0x52')](_0x16f2d2);if(!_0x30e860)throw new _0x217484('track-changes-command-not-found',this,{'commandName':_0x16f2d2});this['_enabledCommands'][_0x3866('0xaa')](_0x30e860),_0x294606&&_0x30e860['on']('execute',(_0x581904,_0x29ffcc)=>{this[_0x3866('0x100')][_0x3866('0x1a')]&&(this[_0x3866('0x47')]||_0x29ffcc['length']>0x0&&_0x29ffcc[_0x29ffcc['length']-0x1]&&_0x29ffcc[_0x29ffcc['length']-0x1][_0x3866('0x30')]||(_0x294606((..._0x4162ad)=>_0x30e860['execute'](..._0x4162ad,{'forceDefaultExecution':!0x0}),..._0x29ffcc),_0x581904[_0x3866('0x2a')]()));},{'priority':_0x3866('0x79')});}[_0x3866('0x30')](_0xda0f5f){let _0x3ba60d,_0x1c032a;const _0x252308=this[_0x3866('0x47')];this[_0x3866('0x47')]=!0x0;try{_0x3ba60d=_0xda0f5f();}catch(_0x305278){_0x1c032a=_0x305278;}return _0x252308||(this[_0x3866('0x47')]=!0x1),_0x1c032a&&_0x217484[_0x3866('0x119')](_0x1c032a,this),_0x3ba60d;}[_0x3866('0x70')](_0x280798,_0x5f437f=null,_0x15c2de={}){if(_0x280798[_0x3866('0x6f')])return null;const _0x32aa71=this[_0x3866('0xff')][_0x3866('0x6c')]['get'](_0x3866('0x1b'))['me'];for(const {suggestion:_0x212a90,meta:_0x3ac0c2}of this[_0x3866('0x8f')](_0x280798,_0x3866('0x53')))if(_0x3ac0c2[_0x3866('0x9d')]){if(!_0x3ac0c2[_0x3866('0x114')]){if(!this['_mergeNestedSuggestions']&&_0x3ac0c2[_0x3866('0x21')])continue;return _0x212a90;}if(_0x5f437f==_0x212a90[_0x3866('0x91')]){const _0x1c2164=_0x212a90['getFirstRange']();return _0x1c2164['start']['isEqual'](_0x280798[_0x3866('0x13')])?this[_0x3866('0x95')](_0x212a90,this[_0x3866('0xaf')][_0x3866('0x38')](_0x280798[_0x3866('0xf9')],_0x1c2164[_0x3866('0x13')])):this[_0x3866('0x95')](_0x212a90,this[_0x3866('0xaf')][_0x3866('0x38')](_0x1c2164[_0x3866('0xf9')],_0x280798[_0x3866('0x13')])),_0x212a90;}}const _0x17f8c4=_0x2760d2(),_0x53433c=_0x32aa71['id'],_0x1d9734=_0x5f437f?'insertion:'+_0x5f437f:'insertion',_0x41ed92=this['_setSuggestionData']({'id':_0x17f8c4,'type':_0x1d9734,'createdAt':new Date(),'authorId':_0x53433c,'attributes':_0x15c2de});return this[_0x3866('0x45')](_0x1d9734,_0x17f8c4,_0x53433c,_0x280798),_0x41ed92;}['markMultiRangeInsertion'](_0x9c7eff,_0x8afe1d=_0x3866('0x78'),_0x206c39={}){const _0x614cc9=this[_0x3866('0xff')][_0x3866('0x6c')]['get']('Users')['me'],_0x1e6b98=this[_0x3866('0x5')][_0x3866('0x123')](_0x3866('0x53'),_0x8afe1d,_0x3866('0x110'));for(const _0x4dbbf2 of this[_0x3866('0xbe')]())if(_0x4dbbf2[_0x3866('0xb2')]['id']==_0x614cc9['id']&&_0x3866('0x53')==_0x4dbbf2[_0x3866('0xdd')]&&_0x4dbbf2[_0x3866('0x91')]==_0x8afe1d&&(_0x1e6b98(_0x4dbbf2['getRanges'](),_0x9c7eff)||_0x1e6b98(_0x9c7eff,_0x4dbbf2[_0x3866('0x59')]()))){for(const _0x441d56 of _0x9c7eff)_0x4dbbf2[_0x3866('0x4')](_0x441d56);return _0x4dbbf2;}if(this[_0x3866('0x1d')])for(const _0x315594 of _0x9c7eff)for(const {suggestion:_0x38a577,meta:_0x30c121}of this[_0x3866('0x8f')](_0x315594,_0x3866('0x53'))){if(!_0x30c121[_0x3866('0x9d')])continue;let _0x5d0e2a=!0x0;for(const _0x5e2742 of _0x38a577[_0x3866('0x59')]())for(const _0x3ba542 of _0x9c7eff)if(!_0x5e2742[_0x3866('0x2c')](_0x3ba542)){_0x5d0e2a=!0x1;break;}if(_0x5d0e2a)return _0x38a577;}const _0x5364d0=_0x2760d2(),_0x37fde0=_0x614cc9['id'],_0xc288bb='insertion:'+_0x8afe1d,_0x3eab1e=this[_0x3866('0x76')]({'id':_0x5364d0,'type':_0xc288bb,'createdAt':new Date(),'authorId':_0x37fde0,'attributes':_0x206c39});for(const _0x511029 of _0x9c7eff)this[_0x3866('0x45')](_0xc288bb,_0x5364d0,_0x37fde0,_0x511029,_0x3a1096[_0x3866('0x132')]());return _0x3eab1e;}['markInlineFormat'](_0x4dc512,_0xa95374,_0x25bf67=null,_0x26125f={}){if(_0x25bf67=_0x25bf67||$t(_0xa95374),_0x4dc512[_0x3866('0x6f')])return null;if(_0x3866('0x6d')===this[_0x3866('0x51')]){const _0xcec9d7=this['_suggestionFactory'][_0x3866('0x123')](_0x3866('0x111'),_0x25bf67,_0x3866('0x13c'));return this[_0x3866('0x30')](()=>_0xcec9d7([_0x4dc512],_0xa95374,_0x26125f)),null;}const _0x3ed42c=this[_0x3866('0xff')]['plugins'][_0x3866('0x52')](_0x3866('0x1b'))['me'],_0x42b00b=[];if(_0x3866('0x86')!==this[_0x3866('0x51')])for(const {suggestion:_0x244015,meta:_0x19fc69}of this[_0x3866('0x8f')](_0x4dc512,_0x3866('0x53')))_0x19fc69[_0x3866('0x9d')]&&!_0x19fc69[_0x3866('0xdc')]&&_0x42b00b[_0x3866('0xc7')](..._0x244015[_0x3866('0x59')]());const _0x41ed61=function(_0x57bcda,_0x1c04bf){const _0xfa955a=[];for(const _0x385dc4 of _0x1c04bf){const _0x28380e=_0x57bcda[_0x3866('0xdb')](_0x385dc4);_0x28380e&&_0xfa955a[_0x3866('0xc7')](_0x28380e);}return _0xfa955a;}(_0x4dc512,_0x42b00b),_0x35d491=function(_0x1c6b6d,_0x235477){const _0x2fe698=[_0x1c6b6d];for(const _0x111def of _0x235477){let _0x4609ed=0x0;for(;_0x4609ed<_0x2fe698[_0x3866('0xb8')];){const _0x4cf401=_0x2fe698[_0x4609ed][_0x3866('0xbc')](_0x111def);_0x2fe698[_0x3866('0xa8')](_0x4609ed,0x1,..._0x4cf401),_0x4609ed+=_0x4cf401[_0x3866('0xb8')];}}return _0x2fe698;}(_0x4dc512,_0x42b00b);_0x41ed61[_0x3866('0xb8')]&&this[_0x3866('0xaf')][_0x3866('0x26')](()=>{for(const _0x3ae5b8 of _0x41ed61){const _0x5685e9=this['_suggestionFactory'][_0x3866('0x123')](_0x3866('0x111'),_0x25bf67,'accept');this[_0x3866('0x30')](()=>_0x5685e9([_0x3ae5b8],_0xa95374,_0x26125f));}});for(const _0x2b162e of _0x35d491){let _0x1cbdcb=null,_0x2b2dcc=_0x2b162e['start'],_0x174ff1=_0x2b162e[_0x3866('0x13')];for(const {suggestion:_0x4c7099,meta:_0x529fcd}of this[_0x3866('0x8f')](_0x2b162e,_0x3866('0x111'))){if(!_0x529fcd['isOwn'])continue;if(_0x4c7099[_0x3866('0x91')]!=_0x25bf67)continue;const _0x305f11=_0x4c7099['getFirstRange']();if(_0x305f11[_0x3866('0x2c')](_0x2b162e,!0x0))return null;_0x2b2dcc=_0x2b2dcc[_0x3866('0x137')](_0x305f11[_0x3866('0xf9')])?_0x2b2dcc:_0x305f11[_0x3866('0xf9')],_0x174ff1=_0x174ff1[_0x3866('0x107')](_0x305f11[_0x3866('0x13')])?_0x174ff1:_0x305f11['end'],_0x1cbdcb?_0x305f11[_0x3866('0xf9')][_0x3866('0x137')](_0x1cbdcb[_0x3866('0x113')]()[_0x3866('0xf9')])?(_0x1cbdcb[_0x3866('0x5f')](),_0x1cbdcb=_0x4c7099):_0x4c7099[_0x3866('0x5f')]():_0x1cbdcb=_0x4c7099;}const _0x3f342d=this[_0x3866('0xaf')]['createRange'](_0x2b2dcc,_0x174ff1);if(_0x1cbdcb)this[_0x3866('0x95')](_0x1cbdcb,_0x3f342d);else{const _0x54623e=_0x2760d2(),_0x484f29=_0x3ed42c['id'];this[_0x3866('0x76')]({'id':_0x54623e,'type':_0x3866('0x36')+_0x25bf67,'data':_0xa95374,'createdAt':new Date(),'authorId':_0x484f29,'attributes':_0x26125f}),this[_0x3866('0x45')]('formatInline:'+_0x25bf67,_0x54623e,_0x484f29,_0x3f342d);}}return null;}[_0x3866('0x4a')](_0x156be8,_0x4f924e,_0x52ba38=[],_0x391810=null,_0x786f72={}){_0x4f924e[_0x3866('0x3d')]||(_0x4f924e[_0x3866('0x3d')]=_0x4f924e[_0x3866('0xea')]),_0x4f924e[_0x3866('0xcf')]=_0x156be8['is'](_0x3866('0x127')),_0x391810=_0x391810||$t(_0x4f924e);const _0x258449=_0x52ba38[_0x3866('0xe7')](_0x13ccc5=>Rt(_0x13ccc5,this[_0x3866('0xaf')])),_0x12275f=_0x156be8['is']('range')?_0x156be8:Rt(_0x156be8,this['_model']);if(_0x3866('0x6d')===this[_0x3866('0x51')]){const _0x59c09a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x391810,_0x3866('0x13c'));return this[_0x3866('0x30')](()=>_0x59c09a([_0x12275f],_0x4f924e,_0x786f72)),null;}_0x258449['push'](_0x12275f);let _0x4e67b1=!0x0;for(const _0x3948e8 of _0x258449)if(!this['_rangeIsInLocalUserInsertion'](_0x3948e8)){_0x4e67b1=!0x1;break;}if(_0x4e67b1&&'always'!==this[_0x3866('0x51')]){const _0x552ffb=this['_suggestionFactory'][_0x3866('0x123')]('formatBlock',_0x391810,'accept');return this[_0x3866('0x30')](()=>_0x552ffb([_0x12275f],_0x4f924e,_0x786f72)),null;}let _0x4d3a9e=null,_0x1e57ed=_0x12275f[_0x3866('0xf9')],_0x21cfa7=_0x12275f[_0x3866('0x13')];for(const {suggestion:_0xbc46b8,meta:_0x676c82}of this[_0x3866('0x8f')](_0x12275f,_0x3866('0xa4'))){if(!_0x676c82[_0x3866('0x9d')]||_0x676c82['isNextTo']||_0x676c82[_0x3866('0x21')]||_0x676c82[_0x3866('0xdc')])continue;if(_0xbc46b8[_0x3866('0x25')][_0x3866('0x3d')]!=_0x4f924e[_0x3866('0x3d')])continue;const _0xcf09cd=_0xbc46b8['getFirstRange']();if(_0xbc46b8[_0x3866('0x91')]==_0x391810){if(_0xcf09cd[_0x3866('0x2c')](_0x12275f,!0x0))return null;_0x1e57ed=_0x1e57ed[_0x3866('0x137')](_0xcf09cd['start'])?_0x1e57ed:_0xcf09cd[_0x3866('0xf9')],_0x21cfa7=_0x21cfa7[_0x3866('0x107')](_0xcf09cd['end'])?_0x21cfa7:_0xcf09cd[_0x3866('0x13')],_0x4d3a9e?_0xcf09cd[_0x3866('0xf9')][_0x3866('0x137')](_0x4d3a9e[_0x3866('0x113')]()[_0x3866('0xf9')])?(_0x4d3a9e['removeMarkers'](),_0x4d3a9e=_0xbc46b8):_0xbc46b8[_0x3866('0x5f')]():_0x4d3a9e=_0xbc46b8;}else{const _0x178211=_0x12275f[_0x3866('0xdb')](_0xcf09cd);this[_0x3866('0x88')](_0xbc46b8,_0x178211);}}const _0x125165=this[_0x3866('0xff')][_0x3866('0x6c')][_0x3866('0x52')](_0x3866('0x1b'))['me'],_0x4957bb=_0x2760d2(),_0x4ac80a=_0x125165['id'];if(_0x4d3a9e)return this['_setSuggestionRange'](_0x4d3a9e,this['_model'][_0x3866('0x38')](_0x1e57ed,_0x21cfa7)),_0x4d3a9e;{const _0x13474a=this[_0x3866('0x76')]({'id':_0x4957bb,'type':_0x3866('0x11c')+_0x391810,'data':_0x4f924e,'createdAt':new Date(),'authorId':_0x4ac80a,'attributes':_0x786f72});return this[_0x3866('0x45')]('formatBlock:'+_0x391810,_0x4957bb,_0x4ac80a,this['_model'][_0x3866('0x38')](_0x1e57ed,_0x21cfa7)),_0x13474a;}}[_0x3866('0x99')](_0x14c62e,_0x21cf5e,_0x2839b3=[],_0x45b143=null,_0x3bdd54={}){_0x21cf5e[_0x3866('0x3d')]||(_0x21cf5e[_0x3866('0x3d')]=_0x21cf5e[_0x3866('0xea')]);const _0x21bcee=_0x14c62e[0x0];_0x21cf5e['multipleBlocks']=_0x21bcee['is'](_0x3866('0x127')),_0x45b143=_0x45b143||$t(_0x21cf5e);const _0x5c5441=_0x2839b3['map'](_0x2e517e=>Rt(_0x2e517e,this[_0x3866('0xaf')])),_0x1d9035=_0x21bcee['is']('range')?_0x14c62e:_0x14c62e[_0x3866('0xe7')](_0x22ea4f=>Rt(_0x22ea4f,this[_0x3866('0xaf')]));if(_0x3866('0x6d')===this[_0x3866('0x51')]){const _0x3403e3=this[_0x3866('0x5')][_0x3866('0x123')]('formatBlock',_0x45b143,_0x3866('0x13c'));return this[_0x3866('0x30')](()=>_0x3403e3(_0x1d9035,_0x21cf5e,_0x3bdd54)),null;}_0x5c5441['push'](..._0x1d9035);let _0x4ca72e=!0x0;for(const _0x2f4233 of _0x5c5441)if(!this[_0x3866('0x35')](_0x2f4233)){_0x4ca72e=!0x1;break;}if(_0x4ca72e&&'always'!==this[_0x3866('0x51')]){const _0x5be0e6=this[_0x3866('0x5')]['getSuggestionCallback'](_0x3866('0xa4'),_0x45b143,_0x3866('0x13c'));return this['forceDefaultExecution'](()=>_0x5be0e6(_0x1d9035,_0x21cf5e,_0x3bdd54)),null;}const _0x5330b1=this[_0x3866('0xff')][_0x3866('0x6c')]['get'](_0x3866('0x1b'))['me'];for(const _0x17f260 of this[_0x3866('0xbe')]()){if(_0x17f260[_0x3866('0xb2')]['id']!=_0x5330b1['id'])continue;if(_0x3866('0xa4')!=_0x17f260[_0x3866('0xdd')]||_0x17f260['data']['formatGroupId']!=_0x21cf5e[_0x3866('0x3d')])continue;const _0x536787=_0x17f260[_0x3866('0x91')]==_0x45b143;for(let _0x3a1710=0x0;_0x3a1710<_0x1d9035[_0x3866('0xb8')];_0x3a1710++){const _0x478579=_0x1d9035[_0x3a1710];for(const _0x8d0fcd of _0x17f260[_0x3866('0x92')]()){const _0x64580c=_0x8d0fcd[_0x3866('0x118')]();if(_0x478579['isEqual'](_0x64580c)){_0x536787?(_0x1d9035[_0x3866('0xa8')](_0x3a1710,0x1),_0x3a1710--):_0x17f260[_0x3866('0x2b')](_0x8d0fcd[_0x3866('0x3f')]);break;}}}}if(0x0==_0x1d9035[_0x3866('0xb8')])return null;const _0x570478=this[_0x3866('0x5')]['getSuggestionCallback'](_0x3866('0xa4'),_0x45b143,_0x3866('0x110'));for(const _0x3a9b6a of this[_0x3866('0xbe')]())if(_0x3a9b6a[_0x3866('0xb2')]['id']==_0x5330b1['id']&&_0x3866('0xa4')==_0x3a9b6a['type']&&_0x3a9b6a['data'][_0x3866('0x3d')]==_0x21cf5e[_0x3866('0x3d')]&&_0x3a9b6a[_0x3866('0x91')]==_0x45b143&&(_0x570478(_0x3a9b6a[_0x3866('0x59')](),_0x1d9035)||_0x570478(_0x1d9035,_0x3a9b6a[_0x3866('0x59')]()))){for(const _0xa5c5b6 of _0x1d9035)_0x3a9b6a[_0x3866('0x4')](_0xa5c5b6);return _0x3a9b6a;}const _0x4ece87=_0x2760d2(),_0x53cc55=_0x5330b1['id'],_0x243810='formatBlock:'+_0x45b143,_0x38dfe3=this[_0x3866('0x76')]({'id':_0x4ece87,'type':_0x243810,'data':_0x21cf5e,'createdAt':new Date(),'authorId':_0x53cc55,'attributes':_0x3bdd54});for(const _0x22acd5 of _0x1d9035)this[_0x3866('0x45')](_0x243810,_0x4ece87,_0x53cc55,_0x22acd5,_0x3a1096['getMultiRangeId']());return _0x38dfe3;}[_0x3866('0x7e')](_0x36a7e9,_0x8024fc=null,_0x37f9a7={}){if(_0x36a7e9['isCollapsed'])return null;const _0x5bbdfd=this[_0x3866('0xff')][_0x3866('0x6c')][_0x3866('0x52')](_0x3866('0x1b'))['me'],_0x47197a=new _0x10ff46(_0x36a7e9['start'],_0x36a7e9[_0x3866('0x13')]);for(const {suggestion:_0x120a6f,meta:_0x4aabeb}of this[_0x3866('0x8f')](_0x47197a,_0x3866('0x53')))if(_0x4aabeb['isOwn']&&!_0x4aabeb[_0x3866('0x114')]){if(_0x120a6f[_0x3866('0xcb')]){const _0x47464c=_0x120a6f['getRanges']()[_0x3866('0xc8')](_0x5aa9b1=>_0x3866('0x93')!=_0x5aa9b1[_0x3866('0x131')][_0x3866('0xd9')]);_0x47464c[_0x3866('0x83')](_0x467473=>_0x47197a[_0x3866('0x2c')](_0x467473,!0x0))&&_0x120a6f[_0x3866('0xfe')]();if(_0x47464c['some'](_0x5e0bb3=>_0x5e0bb3['containsRange'](_0x47197a,!0x0))){const _0x1895bd=this[_0x3866('0x5')][_0x3866('0x123')](_0x3866('0x13a'),_0x8024fc,'accept');return this[_0x3866('0x30')](()=>_0x1895bd([_0x47197a],null,_0x37f9a7)),null;}}else{const _0x4fbca6=_0x47197a['getIntersection'](_0x120a6f[_0x3866('0x113')]());null!==_0x4fbca6&&_0x120a6f[_0x3866('0x42')]([_0x4fbca6],null,_0x37f9a7);}}if(_0x47197a[_0x3866('0x19')](),_0x47197a[_0x3866('0x6f')]||_0x3866('0x93')==_0x47197a[_0x3866('0x131')][_0x3866('0xd9')])return null;let _0x461953=null,_0x12df6d=_0x47197a[_0x3866('0xf9')],_0x410a52=_0x47197a['end'];for(const {suggestion:_0x8663,meta:_0x1c3e5e}of this[_0x3866('0x8f')](_0x47197a,'deletion'))if(_0x1c3e5e[_0x3866('0x9d')]){if(_0x8663[_0x3866('0xcb')]&&this['_mergeNestedSuggestions']){let _0x27f942=!0x0;for(const _0x67bed1 of _0x8663[_0x3866('0x59')]()){if(_0x67bed1[_0x3866('0x2c')](_0x47197a,!0x0))return _0x8663;_0x47197a['containsRange'](_0x67bed1)||(_0x27f942=!0x1);}_0x27f942&&_0x8663[_0x3866('0xfe')]();}else{const _0x2bee5b=_0x8663[_0x3866('0x113')]();if(_0x2bee5b[_0x3866('0x2c')](_0x47197a,!0x0)){if(!this[_0x3866('0x1d')]&&_0x1c3e5e['containsRangeInObject'])continue;return _0x8663;}_0x12df6d=_0x12df6d[_0x3866('0x137')](_0x2bee5b[_0x3866('0xf9')])?_0x12df6d:_0x2bee5b['start'],_0x410a52=_0x410a52[_0x3866('0x107')](_0x2bee5b['end'])?_0x410a52:_0x2bee5b[_0x3866('0x13')],_0x461953?_0x2bee5b[_0x3866('0xf9')]['isBefore'](_0x461953['getFirstRange']()[_0x3866('0xf9')])?(_0x461953[_0x3866('0x5f')](),_0x461953=_0x8663):_0x8663[_0x3866('0x5f')]():_0x461953=_0x8663;}}if(_0x461953)return this['_setSuggestionRange'](_0x461953,this[_0x3866('0xaf')][_0x3866('0x38')](_0x12df6d,_0x410a52)),_0x461953;{const _0x41386d=_0x2760d2(),_0x2168b8=this[_0x3866('0xaf')][_0x3866('0x38')](_0x12df6d,_0x410a52),_0x1be748=_0x5bbdfd['id'],_0x521470=_0x8024fc?_0x3866('0x14')+_0x8024fc:'deletion',_0x45a1c0=this['_setSuggestionData']({'id':_0x41386d,'type':_0x521470,'createdAt':new Date(),'authorId':_0x1be748,'attributes':_0x37f9a7});return this[_0x3866('0x45')](_0x521470,_0x41386d,_0x1be748,_0x2168b8),_0x45a1c0;}}[_0x3866('0x105')](_0x1d0e61,_0x2e3331=_0x3866('0x78'),_0x424af8={}){const _0x48d078=this[_0x3866('0xff')][_0x3866('0x6c')]['get'](_0x3866('0x1b'))['me'],_0x1beac2=_0x1d0e61[_0x3866('0xe7')](_0x186319=>new _0x10ff46(_0x186319[_0x3866('0xf9')],_0x186319[_0x3866('0x13')])),_0x2187d9=new Set();for(const _0x43f7b7 of _0x1beac2)for(const {suggestion:_0x13f305,meta:_0x5b3e1a}of this['_findSuggestions'](_0x43f7b7,'insertion'))_0x5b3e1a[_0x3866('0x9d')]&&!_0x5b3e1a[_0x3866('0x114')]&&_0x2187d9[_0x3866('0xaa')](_0x13f305);for(const _0x4189b9 of _0x2187d9)if(_0x4189b9[_0x3866('0xcb')]){const _0x1f462d=_0x4189b9[_0x3866('0x59')]();(!_0x4189b9['attributes']||!_0x4189b9[_0x3866('0x2f')][_0x3866('0x22')])&&(_0x1f462d['every'](_0x3da533=>_0x1beac2[_0x3866('0x73')](_0x5d5421=>_0x5d5421[_0x3866('0x2c')](_0x3da533,!0x0)))&&_0x4189b9[_0x3866('0xfe')]());if(_0x1beac2[_0x3866('0x83')](_0x9303d0=>_0x1f462d[_0x3866('0x73')](_0x3bf16c=>_0x3bf16c['containsRange'](_0x9303d0,!0x0)))){const _0x1bb95d=this['_suggestionFactory'][_0x3866('0x123')](_0x3866('0x13a'),_0x2e3331,'accept');return this['forceDefaultExecution'](()=>_0x1bb95d(_0x1d0e61,null,_0x424af8)),null;}}else{const _0xa78b3f=_0x4189b9['getFirstRange']();_0x1beac2[_0x3866('0x73')](_0x36966b=>_0x36966b[_0x3866('0x2c')](_0xa78b3f,!0x0))&&_0x4189b9[_0x3866('0xfe')]();if(_0x1beac2[_0x3866('0x83')](_0x2c187e=>_0xa78b3f['containsRange'](_0x2c187e,!0x0))){const _0x56ab9c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2e3331,_0x3866('0x13c'));return this[_0x3866('0x30')](()=>_0x56ab9c(_0x1beac2,null,_0x424af8)),null;}}const _0x11d56d=this['_suggestionFactory']['getSuggestionCallback'](_0x3866('0x13a'),_0x2e3331,_0x3866('0x110'));let _0x40911c=null;for(const _0x4bf4b9 of this[_0x3866('0xbe')]())if(_0x4bf4b9['author']['id']==_0x48d078['id']&&_0x4bf4b9[_0x3866('0x10e')]&&_0x3866('0x13a')==_0x4bf4b9[_0x3866('0xdd')]&&_0x4bf4b9['subType']==_0x2e3331&&(_0x11d56d(_0x4bf4b9[_0x3866('0x59')](),_0x1beac2)||_0x11d56d(_0x1beac2,_0x4bf4b9[_0x3866('0x59')]()))){if(_0x40911c){if(_0x4bf4b9['commentThread']&&_0x4bf4b9['commentThread'][_0x3866('0xb8')])continue;for(const _0x103079 of _0x4bf4b9[_0x3866('0x59')]())_0x40911c[_0x3866('0x7')](_0x103079)||_0x40911c['addRange'](_0x103079);_0x4bf4b9[_0x3866('0x5f')]();}else{_0x40911c=_0x4bf4b9;for(const _0x1cce0d of _0x1beac2)_0x4bf4b9[_0x3866('0x7')](_0x1cce0d)||_0x4bf4b9['addRange'](_0x1cce0d);}}if(_0x40911c)return _0x40911c;_0x2187d9['clear']();for(const _0x3d3754 of _0x1beac2)for(const {suggestion:_0x39f255,meta:_0x5db502}of this[_0x3866('0x8f')](_0x3d3754,'deletion'))_0x5db502[_0x3866('0x9d')]&&_0x2187d9['add'](_0x39f255);for(const _0x350dd3 of _0x2187d9){const _0x41d808=_0x350dd3[_0x3866('0x59')]();if(!_0x424af8||!_0x424af8['skipNestingCheck']){if(_0x1beac2[_0x3866('0x83')](_0x58618a=>_0x41d808[_0x3866('0x73')](_0x461dc6=>_0x461dc6[_0x3866('0x2c')](_0x58618a,!0x0))))return _0x350dd3;}(!_0x350dd3[_0x3866('0x2f')]||!_0x350dd3['attributes'][_0x3866('0x22')])&&(_0x41d808[_0x3866('0x83')](_0x525685=>_0x1beac2['some'](_0x1276ef=>_0x1276ef[_0x3866('0x2c')](_0x525685,!0x0)))&&_0x350dd3[_0x3866('0xfe')]());}const _0x217d0e=_0x2760d2(),_0x53fc02=_0x48d078['id'],_0x58a325=_0x3866('0x14')+_0x2e3331,_0x6e3a88=this[_0x3866('0x76')]({'id':_0x217d0e,'type':_0x58a325,'createdAt':new Date(),'authorId':_0x53fc02,'attributes':_0x424af8});for(const _0x27e4ed of _0x1beac2)_0x27e4ed[_0x3866('0x19')](),_0x27e4ed['isCollapsed']||_0x3866('0x93')==_0x27e4ed['root'][_0x3866('0xd9')]||this[_0x3866('0x45')](_0x58a325,_0x217d0e,_0x53fc02,_0x27e4ed,_0x3a1096[_0x3866('0x132')]());return _0x6e3a88;}[_0x3866('0x95')](_0x311e8e,_0x14fe18){const _0x27c033=_0x311e8e[_0x3866('0x58')]();this[_0x3866('0xaf')][_0x3866('0x26')](_0x5a708a=>{_0x5a708a[_0x3866('0x133')](_0x27c033,{'range':_0x14fe18});});}['_addThreadToSuggestion'](_0xe66fac){const _0x11915a=_0xe66fac['id'],_0x141713=this[_0x3866('0xff')][_0x3866('0xf0')]['get'](_0x3866('0x7f'));this[_0x3866('0x29')]['hasCommentThread'](_0x11915a)||this[_0x3866('0x29')][_0x3866('0xc5')]({'channelId':_0x141713,'threadId':_0x11915a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x219406=this[_0x3866('0x29')]['getCommentThread'](_0x11915a);_0x219406[_0x3866('0xef')](_0x3866('0x4c')),_0x219406[_0x3866('0x4c')]=!0x1,_0xe66fac[_0x3866('0x11f')]=_0x219406;}[_0x3866('0x3a')](_0x55fe7e,_0x5987df,_0x353274,_0x95e254){if(_0x55fe7e[_0x3866('0xdd')]!=_0x5987df||_0x55fe7e[_0x3866('0x91')]!=_0x353274||_0x55fe7e[_0x3866('0xb4')]['id']!=_0x95e254)throw this[_0x3866('0xff')][_0x3866('0xa')](_0x3866('0x97')),new _0x217484(_0x3866('0x97'),this);}[_0x3866('0x88')](_0x12fb3a,_0x3bc910){const _0x29689=_0x12fb3a[_0x3866('0x113')]();if(_0x3bc910['isEqual'](_0x29689))_0x12fb3a['removeMarkers']();else{if(_0x29689[_0x3866('0x2c')](_0x3bc910)){const _0xc47b74=this[_0x3866('0xaf')][_0x3866('0xbb')](_0x3bc910[_0x3866('0xf9')][_0x3866('0xe9')],'end');this[_0x3866('0x95')](_0x12fb3a,this[_0x3866('0xaf')][_0x3866('0x38')](_0x29689['start'],_0xc47b74));const _0x3af4ed=_0x2760d2(),_0xa614c4=_0x12fb3a[_0x3866('0xb4')]['id'],_0x1e2750=_0x12fb3a[_0x3866('0xdd')]+':'+_0x12fb3a[_0x3866('0x91')];this[_0x3866('0x76')]({'id':_0x3af4ed,'type':_0x1e2750,'createdAt':new Date(),'authorId':_0xa614c4,'data':_0x12fb3a['data'],'attributes':_0x12fb3a[_0x3866('0x2f')]});const _0x5db63b=this[_0x3866('0xaf')][_0x3866('0xbb')](_0x3bc910[_0x3866('0x13')][_0x3866('0x81')],_0x3866('0xa0')),_0xaf2bd7=this[_0x3866('0xaf')][_0x3866('0x38')](_0x5db63b,_0x29689[_0x3866('0x13')]);this[_0x3866('0x45')](_0x1e2750,_0x3af4ed,_0xa614c4,_0xaf2bd7);}else{if(_0x29689['containsPosition'](_0x3bc910[_0x3866('0xf9')])){const _0xb4dbb3=this[_0x3866('0xaf')]['createPositionAt'](_0x3bc910[_0x3866('0xf9')]['nodeBefore'],_0x3866('0x13'));this[_0x3866('0x95')](_0x12fb3a,this[_0x3866('0xaf')][_0x3866('0x38')](_0x29689['start'],_0xb4dbb3));}else{const _0x510014=this[_0x3866('0xaf')][_0x3866('0xbb')](_0x3bc910['end'][_0x3866('0x81')],_0x3866('0xa0'));this[_0x3866('0x95')](_0x12fb3a,this[_0x3866('0xaf')]['createRange'](_0x510014,_0x29689[_0x3866('0x13')]));}}}}[_0x3866('0x35')](_0x366658){for(const {suggestion:_0x326991,meta:_0x2b644a}of this[_0x3866('0x8f')](_0x366658,_0x3866('0x53'))){if(!_0x2b644a[_0x3866('0x9d')])continue;const _0x49fe0f=_0x326991['getRanges']();for(const _0x1e4060 of _0x49fe0f)if(!_0x366658[_0x3866('0xbc')](_0x1e4060)[_0x3866('0xb8')])return!0x0;}return!0x1;}[_0x3866('0x135')](_0x4c13cb){const _0x19e73a=this[_0x3866('0xff')][_0x3866('0x6c')][_0x3866('0x52')](_0x3866('0x1b'))[_0x3866('0x55')](_0x4c13cb);if(!_0x19e73a)throw new _0x217484('track-changes-user-not-found',this);return _0x19e73a;}[_0x3866('0xd0')](_0x5206d9){const _0x55ae97=this[_0x3866('0xff')][_0x3866('0x6c')][_0x3866('0x52')](_0x3866('0x1b')),_0x42a34c=_0x1e68fd('external:'+_0x5206d9),_0x538ee9=_0x55ae97[_0x3866('0x55')](_0x42a34c);return _0x538ee9||_0x55ae97[_0x3866('0xa9')]({'id':_0x42a34c,'name':_0x5206d9});}[_0x3866('0x9e')](_0x1dd371,_0x319e13,_0x23cea9,_0x34c027,_0x4bbf43){const _0x486769=this['_getAuthorFromId'](_0x34c027),_0x5743a1=this['_suggestionFactory'][_0x3866('0xbd')](_0x1dd371,_0x319e13,_0x23cea9,_0x486769,_0x4bbf43,_0x1838a4=>this[_0x3866('0x49')](_0x23cea9,{'attributes':_0x1838a4}));return this[_0x3866('0xcd')](_0x5743a1,_0x3866('0x13c'),()=>{this[_0x3866('0x49')](_0x23cea9,{'state':_0x3866('0x28')});},{'priority':_0x3866('0x79')}),this[_0x3866('0xcd')](_0x5743a1,_0x3866('0xfe'),()=>{this[_0x3866('0x49')](_0x23cea9,{'state':_0x3866('0xf1')});},{'priority':_0x3866('0x79')}),this[_0x3866('0xec')][_0x3866('0xf')](_0x23cea9,_0x5743a1),this[_0x3866('0x3b')]['set'](_0x5743a1,_0x3866('0x4f')),_0x5743a1;}[_0x3866('0xf4')](_0x46cd85){const _0x1c5c6c=_0x46cd85['split'](':');return{'group':_0x1c5c6c[0x0],'type':_0x1c5c6c[0x1],'subType':_0x1c5c6c[_0x3866('0xb8')]>=0x5?_0x1c5c6c[0x2]:null,'id':_0x1c5c6c['length']<0x5?_0x1c5c6c[0x2]:_0x1c5c6c[0x3],'authorId':_0x1c5c6c[_0x3866('0xb8')]<0x5?_0x1c5c6c[0x3]:_0x1c5c6c[0x4],'markerCount':0x6==_0x1c5c6c[_0x3866('0xb8')]?_0x1c5c6c[0x5]:null};}[_0x3866('0x72')](_0x5040d2,_0x95e0eb,_0x786d33){const _0x300495=_0x5040d2[_0x3866('0x113')](),_0x586bae=_0x300495[_0x3866('0xf9')],_0x27287b=_0x300495['end'];this[_0x3866('0x95')](_0x5040d2,this[_0x3866('0xaf')][_0x3866('0x38')](_0x586bae,_0x95e0eb));const _0x1ccab1=_0x2760d2(),_0x5800b4=_0x5040d2[_0x3866('0xb4')]['id'],_0x3de26d=_0x5040d2['type']+(_0x5040d2['subType']?':'+_0x5040d2[_0x3866('0x91')]:'');this['_setSuggestionData']({'id':_0x1ccab1,'type':_0x3de26d,'createdAt':new Date(),'authorId':_0x5800b4,'originalSuggestionId':_0x5040d2['id'],'attributes':_0x5040d2['attributes'],'data':_0x5040d2[_0x3866('0x25')]}),_0x3866('0xa4')==_0x5040d2[_0x3866('0xdd')]&&(_0x786d33=this['_model'][_0x3866('0x5a')](_0x786d33[_0x3866('0x81')])),this[_0x3866('0x45')](_0x3de26d,_0x1ccab1,_0x5800b4,this[_0x3866('0xaf')][_0x3866('0x38')](_0x786d33,_0x27287b));}[_0x3866('0x8f')](_0x25c858,_0x267776=null){const _0x4b23ab=[],_0x308e5f=this[_0x3866('0xaf')]['schema'],_0x44f57f=this[_0x3866('0xff')][_0x3866('0x6c')]['get'](_0x3866('0x1b'))['me'];for(const _0x31e87d of this['getSuggestions']())if(_0x31e87d[_0x3866('0x10e')]&&(!_0x267776||_0x31e87d[_0x3866('0xdd')]==_0x267776))for(const _0x58385d of _0x31e87d['getRanges']()){const _0x1be7c8=_0x25c858[_0x3866('0xf9')][_0x3866('0x10')](_0x58385d['end'])||_0x25c858[_0x3866('0x13')][_0x3866('0x10')](_0x58385d[_0x3866('0xf9')]);if(_0x1be7c8||_0x25c858['getIntersection'](_0x58385d)){const _0x48a615=_0x25c858[_0x3866('0x2c')](_0x58385d)&&Bt(_0x308e5f,_0x58385d[_0x3866('0xf9')],_0x25c858),_0x2b2904=_0x58385d[_0x3866('0x2c')](_0x25c858)&&Bt(_0x308e5f,_0x25c858[_0x3866('0xf9')],_0x58385d);_0x4b23ab[_0x3866('0xc7')]({'suggestion':_0x31e87d,'meta':{'isOwn':_0x44f57f==_0x31e87d[_0x3866('0xb2')],'isNextTo':_0x1be7c8,'isInsideObject':_0x48a615,'containsRangeInObject':_0x2b2904}});break;}}return _0x4b23ab;}[_0x3866('0x45')](_0x183d66,_0x252da0,_0x4c528c,_0x4802ce,_0x244e3a){this[_0x3866('0xaf')]['change'](_0xb0d787=>{let _0x4a0a1d='suggestion:'+_0x183d66+':'+_0x252da0+':'+_0x4c528c;_0x244e3a&&(_0x4a0a1d=_0x4a0a1d+':'+_0x244e3a),_0xb0d787[_0x3866('0xe1')](_0x4a0a1d,{'range':_0x4802ce,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3866('0x102')](_0x47325f){const _0x16aedf=_0x47325f[_0x3866('0x11a')],_0xed081f=_0x47325f['next'];_0x47325f['previous']=null,null!=_0x16aedf&&(_0x16aedf[_0x3866('0x101')]=null),_0x47325f['next']=null,null!=_0xed081f&&(_0xed081f[_0x3866('0x11a')]=null),_0x3866('0x33')==this[_0x3866('0x3b')][_0x3866('0x52')](_0x47325f)&&(this[_0x3866('0x3b')][_0x3866('0xf')](_0x47325f,_0x3866('0x136')),this['fire'](_0x3866('0x3c'),_0x47325f,_0x16aedf,_0xed081f));}[_0x3866('0x76')](_0x5f3b36){const _0x1a754c=_0x5f3b36['id'],_0x3ad758=this['addSuggestionData'](_0x5f3b36);if(this[_0x3866('0x1c')]&&this[_0x3866('0x1c')][_0x3866('0xc')]){const _0x18907b=this[_0x3866('0xff')][_0x3866('0x6c')][_0x3866('0x52')](_0x3866('0xce')),_0x46922a=_0x3ad758[_0x3866('0x112')],_0x42beda=_0x3ad758['subType']?_0x3ad758['type']+':'+_0x3ad758[_0x3866('0x91')]:_0x3ad758[_0x3866('0xdd')],_0x2d4191=this[_0x3866('0xff')]['locale'],_0x53c98e=_0x18907b['add'](_0x2cae61(_0x2d4191,_0x3866('0x12d'))),_0x1f41cf={'id':_0x1a754c,'type':_0x42beda,'hasComments':_0x46922a,'data':_0x5f3b36['data']||null,'originalSuggestionId':_0x5f3b36[_0x3866('0x8d')]||null,'attributes':_0x3ad758['attributes']};this['_adapter'][_0x3866('0xc')](_0x1f41cf)[_0x3866('0xca')](_0x1d6961=>{_0x3ad758[_0x3866('0xe4')]=!0x0,_0x18907b[_0x3866('0x109')](_0x53c98e),_0x1d6961&&_0x1d6961['createdAt']&&(this[_0x3866('0xec')][_0x3866('0x52')](_0x1a754c)['createdAt']=_0x1d6961[_0x3866('0x106')]);})[_0x3866('0x0')](_0x15ad46=>{throw _0x394639(_0x3866('0x2d')),this[_0x3866('0xff')][_0x3866('0x66')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x3ad758[_0x3866('0xfe')]();}),_0x3ad758[_0x3866('0x80')](),this[_0x3866('0xec')][_0x3866('0x116')](_0x3ad758['id']),this['_suggestionState'][_0x3866('0x116')](_0x3ad758),_0x15ad46;});}return _0x3ad758;}[_0x3866('0x49')](_0x108f56,_0x119373){const _0x32d8be=this['editor'][_0x3866('0x6c')][_0x3866('0x52')](_0x3866('0xce')),_0x2f0743=this[_0x3866('0xac')](_0x108f56);if(this[_0x3866('0x1c')]&&this[_0x3866('0x1c')]['updateSuggestion']){if(_0x2f0743['_saved']){const _0x28761b=_0x32d8be[_0x3866('0xaa')](_0x2cae61(this[_0x3866('0xff')]['locale'],_0x3866('0x12d')));this[_0x3866('0x1c')][_0x3866('0x50')](_0x108f56,_0x119373)[_0x3866('0xca')](()=>{_0x32d8be[_0x3866('0x109')](_0x28761b);});}else _0x2f0743['on'](_0x3866('0x39'),()=>{this[_0x3866('0x49')](_0x108f56,_0x119373);});}}[_0x3866('0x104')](_0x381e86){if(!this[_0x3866('0x1c')]||!this['_adapter'][_0x3866('0xac')])throw new _0x217484('track-changes-adapter-missing-getsuggestion',this);return this[_0x3866('0x1c')]['getSuggestion'](_0x381e86);}[_0x3866('0xa7')](_0x86e3f2){const {id:_0xf4bfd,type:_0xb3ab14,subType:_0x1e3bf0,authorId:_0x2a0153}=this['_splitMarkerName'](_0x86e3f2),_0x1d62a2=this[_0x3866('0xec')][_0x3866('0x52')](_0xf4bfd)||this[_0x3866('0x9e')](_0xb3ab14,_0x1e3bf0,_0xf4bfd,_0x2a0153,{});switch(this['_checkSuggestionCorrectness'](_0x1d62a2,_0xb3ab14,_0x1e3bf0,_0x2a0153),this[_0x3866('0x3b')][_0x3866('0x52')](_0x1d62a2)){case _0x3866('0x4f'):this[_0x3866('0x104')](_0xf4bfd)['then'](_0x38333b=>{let _0x5f64b0=Promise['resolve']();_0x38333b[_0x3866('0x112')]&&(_0x5f64b0=this[_0x3866('0x29')][_0x3866('0x10f')]({'channelId':this[_0x3866('0xff')]['config'][_0x3866('0x52')](_0x3866('0x7f')),'threadId':_0xf4bfd})),_0x5f64b0['then'](()=>{this[_0x3866('0x10a')](_0x38333b)['_saved']=!0x0;});}),this[_0x3866('0x3b')][_0x3866('0xf')](_0x1d62a2,_0x3866('0x4d'));break;case _0x3866('0x136'):this[_0x3866('0x49')](_0xf4bfd,{'state':_0x3866('0xb7')});case _0x3866('0x8b'):this[_0x3866('0x3b')][_0x3866('0xf')](_0x1d62a2,_0x3866('0x33')),this['fire'](_0x3866('0x69'),_0x1d62a2);break;case _0x3866('0x33'):this[_0x3866('0x32')](_0x3866('0xc3'),_0x1d62a2);}return _0x1d62a2[_0x3866('0x10c')](_0x86e3f2),_0x1d62a2;}[_0x3866('0x15')](_0x3f21eb){const _0x677205=Array[_0x3866('0x64')](_0x3f21eb)[_0x3866('0xc8')](_0x2aaa2d=>!_0x2aaa2d[_0x3866('0xcb')]),_0x209cdd=this[_0x3866('0xbe')]({'skipNotAttached':!0x0})[_0x3866('0xc8')](_0x169932=>!_0x169932[_0x3866('0xcb')]),_0x4a568f=_0x209cdd[_0x3866('0xc8')](_0x2fc81e=>!_0x3f21eb['has'](_0x2fc81e)),_0x4c282d=new Map(_0x209cdd[_0x3866('0xe7')](_0x52f989=>[_0x52f989,this['_suggestionFactory']['getSuggestionCallback'](_0x52f989[_0x3866('0xdd')],_0x52f989[_0x3866('0x91')],_0x3866('0xb'))])),_0x1b6930=new Map(_0x209cdd[_0x3866('0xe7')](_0x10d61c=>[_0x10d61c,_0x10d61c[_0x3866('0x113')]()])),_0x5c33a4=new Set(),_0x234d7e=new Set();for(let _0xc56daa=0x0;_0xc56daa<_0x677205['length'];_0xc56daa++)_0x8b0cb5(_0x677205[_0xc56daa],_0x677205,_0xc56daa+0x1);for(let _0x4e3a6d=0x0;_0x4e3a6d<_0x677205['length'];_0x4e3a6d++)_0x8b0cb5(_0x677205[_0x4e3a6d],_0x4a568f,0x0);for(let _0x5a1fb4=0x0;_0x5a1fb4<_0x677205[_0x3866('0xb8')];_0x5a1fb4++){const _0x1cd5bc=_0x677205[_0x5a1fb4];!_0x234d7e[_0x3866('0x43')](_0x1cd5bc)&&_0x1cd5bc['previous']&&(_0x1cd5bc[_0x3866('0x11a')]['next']===_0x1cd5bc&&(_0x1cd5bc[_0x3866('0x11a')][_0x3866('0x101')]=null),_0x1cd5bc[_0x3866('0x11a')]=null),!_0x5c33a4[_0x3866('0x43')](_0x1cd5bc)&&_0x1cd5bc[_0x3866('0x101')]&&(_0x1cd5bc[_0x3866('0x101')][_0x3866('0x11a')]===_0x1cd5bc&&(_0x1cd5bc[_0x3866('0x101')]['previous']=null),_0x1cd5bc[_0x3866('0x101')]=null);}function _0x8b0cb5(_0x4a17c2,_0x5396d7,_0x483a5c){for(let _0x2efef0=_0x483a5c;_0x2efef0<_0x5396d7[_0x3866('0xb8')];_0x2efef0++){const _0x5e5850=_0x15abbf(_0x4a17c2,_0x5396d7[_0x2efef0]);_0x5e5850&&(_0x5e5850[0x0][_0x3866('0x101')]=_0x5e5850[0x1],_0x5e5850[0x1]['previous']=_0x5e5850[0x0],_0x5c33a4[_0x3866('0xaa')](_0x5e5850[0x0]),_0x234d7e[_0x3866('0xaa')](_0x5e5850[0x1]));}}function _0x15abbf(_0x549271,_0x59a554){if(_0x549271[_0x3866('0xb2')]['id']!==_0x59a554[_0x3866('0xb2')]['id'])return null;const _0x57a1b5=_0x4c282d[_0x3866('0x52')](_0x549271)(_0x549271,_0x59a554,_0x1b6930[_0x3866('0x52')](_0x549271),_0x1b6930[_0x3866('0x52')](_0x59a554));if(!_0x57a1b5)return null;return _0x4c282d[_0x3866('0x52')](_0x59a554)(_0x549271,_0x59a554,_0x1b6930[_0x3866('0x52')](_0x549271),_0x1b6930[_0x3866('0x52')](_0x59a554))?_0x57a1b5[0x1]['commentThread']&&_0x57a1b5[0x1][_0x3866('0x11f')][_0x3866('0xb8')]?null:_0x57a1b5:null;}}[_0x3866('0xba')](_0xa464a5){const _0x530976=Array[_0x3866('0x64')](_0xa464a5),_0x2f9dc1=this[_0x3866('0xbe')]({'skipNotAttached':!0x0}),_0x53a818=_0x2f9dc1[_0x3866('0xc8')](_0x22f2c8=>!_0xa464a5[_0x3866('0x43')](_0x22f2c8)),_0x207d1e=new Map(_0x530976[_0x3866('0xe7')](_0x4238c1=>[_0x4238c1,this[_0x3866('0x5')][_0x3866('0x123')](_0x4238c1['type'],_0x4238c1[_0x3866('0x91')],_0x3866('0x110'))])),_0x2b91c3=new Map(_0x2f9dc1['map'](_0x1ed31b=>[_0x1ed31b,_0x1ed31b[_0x3866('0x59')]()]));for(let _0x3362ed=0x0;_0x3362ed<_0x530976['length'];_0x3362ed++){if(_0x4345f7(this,_0x530976[_0x3362ed],_0x530976,_0x3362ed+0x1))return!0x0;}for(let _0x38c322=0x0;_0x38c322<_0x530976[_0x3866('0xb8')];_0x38c322++){if(_0x4345f7(this,_0x530976[_0x38c322],_0x53a818,0x0))return!0x0;}return!0x1;function _0x4345f7(_0x1b4d45,_0xb8d64b,_0x3e191d,_0x388a4a){for(let _0x38d609=_0x388a4a;_0x38d609<_0x3e191d['length'];_0x38d609++){const _0x954df9=_0x3e191d[_0x38d609];if(_0x954df9['type']!==_0xb8d64b[_0x3866('0xdd')]||_0x954df9[_0x3866('0xb2')]['id']!==_0xb8d64b[_0x3866('0xb2')]['id']||_0x954df9['subType']!==_0xb8d64b[_0x3866('0x91')])continue;const _0x1d6db5=_0x207d1e[_0x3866('0x52')](_0xb8d64b),_0x319fba=_0x2b91c3[_0x3866('0x52')](_0xb8d64b),_0x49000e=_0x2b91c3['get'](_0x954df9),_0x50da2a=_0xb8d64b[_0x3866('0x11f')]&&_0xb8d64b[_0x3866('0x11f')]['length'],_0x45938f=_0x954df9[_0x3866('0x11f')]&&_0x954df9['commentThread'][_0x3866('0xb8')];if(!_0x50da2a&&_0x1d6db5(_0x49000e,_0x319fba))return _0x1b4d45[_0x3866('0x8e')](_0x954df9,_0xb8d64b),_0x2b91c3[_0x3866('0x116')](_0xb8d64b),!0x0;if(!_0x45938f&&_0x1d6db5(_0x319fba,_0x49000e))return _0x1b4d45[_0x3866('0x8e')](_0xb8d64b,_0x954df9),_0x2b91c3['delete'](_0x954df9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1e28ad,_0x396e48){if(_0x1e28ad['isMultiRange'])for(const _0x594129 of _0x396e48[_0x3866('0x59')]())_0x1e28ad[_0x3866('0x4')](_0x594129);else{const _0x81e22c=_0x396e48[_0x3866('0x113')]()[_0x3866('0x13')];this[_0x3866('0x95')](_0x1e28ad,this[_0x3866('0xaf')]['createRange'](_0x1e28ad[_0x3866('0x113')]()[_0x3866('0xf9')],_0x81e22c));}_0x396e48[_0x3866('0x5f')]();}}class Dt{constructor(_0x3737b6){this[_0x3866('0x63')]=_0x3737b6,this['_model']=_0x3737b6[_0x3866('0x66')],this[_0x3866('0x1f')]=new Map(),this[_0x3866('0x12a')]=new Map(),this[_0x3866('0x12f')]();}['buildSuggestion'](_0x2ede17,_0x4437dc,_0xf9a5e4,_0x4bbf45,_0x1fc8ac,_0x1ad65a){return new _0x3a1096(this[_0x3866('0xaf')],{'type':_0x2ede17,'subType':_0x4437dc,'id':_0xf9a5e4,'author':_0x4bbf45,'creator':_0x4bbf45,'attributes':_0x1fc8ac,'onAttributesChange':_0x1ad65a,'onAccept':(..._0x2e3401)=>this[_0x3866('0x123')](_0x2ede17,_0x4437dc,'accept')(..._0x2e3401),'onDiscard':(..._0x164608)=>this[_0x3866('0x123')](_0x2ede17,_0x4437dc,_0x3866('0xfe'))(..._0x164608)});}[_0x3866('0xb1')](_0x4b31e8,_0x172af1,_0x3de91d,_0x1ddbb8){const _0x3c3349=_0x4b31e8+':'+_0x172af1+':'+_0x3de91d;this[_0x3866('0x1f')]['set'](_0x3c3349,_0x1ddbb8);}[_0x3866('0x123')](_0x375c66,_0xde4df9,_0x197ae2){const _0x40a070=_0x375c66+':'+_0xde4df9+':'+_0x197ae2;return this[_0x3866('0x1f')][_0x3866('0x52')](_0x40a070)||this[_0x3866('0x12a')]['get'](_0x375c66+':'+_0x197ae2);}[_0x3866('0x12f')](){const _0x4ff2e0=()=>{},_0x341a60=_0x36ace3=>{_0x36ace3[_0x3866('0x34')]((_0x1b8c45,_0x3e440e)=>_0x1b8c45['start'][_0x3866('0x137')](_0x3e440e[_0x3866('0xf9')])?0x1:-0x1),this[_0x3866('0xaf')][_0x3866('0x26')](_0x9bf9c8=>{for(const _0x2cf6eb of _0x36ace3){let _0x459375;_0x459375=_0x2cf6eb['end'][_0x3866('0x40')]&&_0x2cf6eb['end'][_0x3866('0x81')]==_0x2cf6eb[_0x3866('0xf9')]['nodeAfter']?_0x9bf9c8[_0x3866('0x54')](_0x2cf6eb['start'][_0x3866('0x11e')],'on'):_0x9bf9c8[_0x3866('0x54')](_0x2cf6eb),this['_model'][_0x3866('0x9b')](_0x459375,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xf44714=(_0x20ebb8,_0xb7ef6d)=>{this['_model'][_0x3866('0x26')](_0x375efd=>{const {commandName:_0x449393,commandParams:_0x813899=[]}=_0xb7ef6d,_0x56e621=_0x20ebb8[_0x3866('0xe7')](_0x53e127=>(_t(_0x53e127)&&(_0x53e127=this['_model'][_0x3866('0x38')](_0x53e127[_0x3866('0x13')])),_0x53e127))['filter'](_0xc9c5b9=>_0x3866('0x93')!==_0xc9c5b9[_0x3866('0x131')][_0x3866('0xd9')]);if(_0x56e621[_0x3866('0xb8')]<0x1)return;const _0x48316f=Array['from'](this[_0x3866('0xaf')][_0x3866('0x5e')][_0x3866('0x6e')][_0x3866('0x59')]())[_0x3866('0xe7')](_0x449363=>_0x10ff46[_0x3866('0x11')](_0x449363));_0x375efd[_0x3866('0xc0')](_0x56e621);for(const _0x55214a of this['_editor'][_0x3866('0xde')][_0x3866('0xde')]())_0x55214a[_0x3866('0x117')]();_0x813899[_0x3866('0xc7')]({'forceDefaultExecution':!0x0}),this[_0x3866('0x63')]['execute'](_0x449393,..._0x813899);const _0x396a07=_0x48316f[_0x3866('0xc8')](_0x5802b9=>'$graveyard'!=_0x5802b9['root'][_0x3866('0xd9')]);_0x396a07[_0x3866('0xb8')]>0x0&&_0x375efd[_0x3866('0xc0')](_0x396a07);for(const _0x3067bb of _0x48316f)_0x3067bb[_0x3866('0x19')]();});},_0x4d4394=(_0x1957b6,_0x326bf5)=>0x1==_0x1957b6[_0x3866('0xb8')]&&0x1==_0x326bf5[_0x3866('0xb8')]&&_0x1957b6[0x0]['end'][_0x3866('0x10')](_0x326bf5[0x0]['start']),_0x149a21=(_0x51d72b,_0x2fb1c5,_0x12fddd,_0x53d578)=>xt(_0x51d72b,_0x2fb1c5,_0x12fddd,_0x53d578,this['_model'])?[_0x51d72b,_0x2fb1c5]:xt(_0x2fb1c5,_0x51d72b,_0x53d578,_0x12fddd,this['_model'])?[_0x2fb1c5,_0x51d72b]:null;this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0x1e'),_0x4ff2e0),this[_0x3866('0x12a')][_0x3866('0xf')]('insertion:discard',_0x341a60),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0xf2'),_0x4d4394),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0xa2'),_0x149a21),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0x6a'),_0x341a60),this[_0x3866('0x12a')][_0x3866('0xf')]('deletion:discard',_0x4ff2e0),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0x8a'),_0x4d4394),this[_0x3866('0x12a')][_0x3866('0xf')]('deletion:chain',_0x149a21),this[_0x3866('0x12a')][_0x3866('0xf')]('formatInline:accept',_0xf44714),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0x1'),_0x4ff2e0),this['_defaultCallbacks'][_0x3866('0xf')](_0x3866('0x98'),_0x4d4394),this[_0x3866('0x12a')]['set'](_0x3866('0x74'),_0x4ff2e0),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0x4e'),_0xf44714),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0xfb'),_0x4ff2e0),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0x5c'),_0x4d4394),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0xfa'),_0x4ff2e0);}}function Bt(_0x519764,_0x174380,_0x51785e){for(const _0x481bda of _0x174380['parent'][_0x3866('0x7a')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x481bda[_0x3866('0x131')]==_0x481bda)return!0x1;if(!_0x51785e[_0x3866('0xd7')](_0x481bda))return!0x1;if(_0x519764[_0x3866('0xe2')](_0x481bda)||_0x519764[_0x3866('0xdf')](_0x481bda))return!0x0;}return!0x1;}function _t(_0x2175aa){return _0x2175aa[_0x3866('0x13')][_0x3866('0x81')]==_0x2175aa[_0x3866('0xf9')][_0x3866('0x11e')]&&_0x2175aa['end'][_0x3866('0x103')];}function Mt(_0x2cf431,_0x57ede7,_0x3bd6bc,_0x43eead){const _0x3fe766=_0x2d44ac=>!_0x2d44ac[_0x3866('0x3')]['is'](_0x3866('0xd4'))&&!_0x43eead[_0x3866('0xe2')](_0x2d44ac[_0x3866('0x3')]),_0x4317b6=_0x2cf431[_0x3866('0xf9')][_0x3866('0x46')](_0x3fe766),_0x3bd2ba=_0x2cf431[_0x3866('0x13')][_0x3866('0x46')](_0x3fe766,{'direction':_0x3866('0x62')});return(!_0x2cf431[_0x3866('0xf9')][_0x3866('0x10')](_0x4317b6)||!_0x2cf431[_0x3866('0x13')][_0x3866('0x10')](_0x3bd2ba))&&(_0x4317b6[_0x3866('0x137')](_0x3bd2ba)?_0x3bd6bc[_0x3866('0x133')](_0x57ede7,{'range':_0x3bd6bc[_0x3866('0x38')](_0x4317b6,_0x3bd2ba)}):_0x3bd6bc[_0x3866('0x2b')](_0x57ede7),!0x0);}function $t(_0x412b4d){return _0x1e68fd(_0x412b4d);}function Nt(_0x5e55d9){const _0x504491=_0x5e55d9['start'][_0x3866('0x11e')];return _0x504491&&_0x504491['is']('element');}function Rt(_0x16ff98,_0x4bf606){const _0x2e0424=_0x4bf606[_0x3866('0xa3')][_0x3866('0xe2')](_0x16ff98)||_0x4bf606['schema']['isSelectable'](_0x16ff98);return _0x4bf606[_0x3866('0x38')](_0x4bf606[_0x3866('0xbb')](_0x16ff98,'before'),_0x2e0424?_0x4bf606[_0x3866('0x57')](_0x16ff98):_0x4bf606['createPositionAt'](_0x16ff98,_0x3866('0x13')));}function xt(_0x3d53a5,_0x4e6b3d,_0x3ebae0,_0x30db8d,_0x181bc3){if(_0x3ebae0[_0x3866('0x13')]['isEqual'](_0x30db8d[_0x3866('0xf9')]))return!0x0;if(_0x3d53a5[_0x3866('0xdd')]!=_0x4e6b3d[_0x3866('0xdd')])return!0x1;if(!_0x3ebae0[_0x3866('0x13')][_0x3866('0x56')](_0x30db8d['start']))return!0x1;const _0x3c2222=_0x181bc3[_0x3866('0x38')](_0x3ebae0[_0x3866('0x13')],_0x30db8d['start'])['getWalker']();for(const _0x175850 of _0x3c2222)if(['elementStart',_0x3866('0x9a')][_0x3866('0xf7')](_0x175850[_0x3866('0xdd')])&&_0x181bc3[_0x3866('0xa3')][_0x3866('0xdf')](_0x175850[_0x3866('0x3')]))return!0x1;return!0x0;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3fd0=['getMarkers','stopListening','getMarkerNames','discardAllSuggestions','_updateController','CommentView','change:previous','getFirstRange','trackChanges.SuggestionThreadView','buttonView','filter','delete','mainView','_initializeController','discardButton','_suggestionToController','keys','discardSelectedSuggestions','plugins','Accept\x20all\x20selected\x20suggestions','length','createCommentThreadController','some','arrowView','button','model','Accept\x20all\x20suggestions','add','_descriptionFactory','comments.maxCommentsWhenCollapsed','isDirty','activeAnnotations','pluginName','innerView','actionView','_refreshActiveMarkers','change:activeAnnotations','acceptAllSuggestions','destroy','map','clear','_createUIButton','init','suggestion-','lowest','_viewToController','isEnabled','previous','view','getByInnerView','unbind','config','isOn','_handleControllerBuffer','separator','source','getJoined','from','_disableComments','SuggestionThreadView','_annotationViews','commandName','acceptButton','Track\x20changes','get','comments','value','toMany','TrackChangesUI','suggestionLoaded','getDescriptions','trackChanges','suggestionChanged','editing','head','commentThread','comments.maxThreadTotalWeight','locale','focus','commands','getAllAdjacentSuggestions','suggestionUnloaded','type','bind','_handleSuggestionControllerDelayed','activeMarkers','componentFactory','listenTo','editor','set','isInContent','descriptionParts','Discard\x20all\x20suggestions','remove','EditorAnnotations','push','_destroyController','Annotations','comments.maxCommentCharsWhenCollapsed','has','size','execute','TrackChangesEditing','createAnnotation'];(function(_0x1f0caa,_0x3fd03d){const _0x3f32e1=function(_0xb7b217){while(--_0xb7b217){_0x1f0caa['push'](_0x1f0caa['shift']());}};_0x3f32e1(++_0x3fd03d);}(_0x3fd0,0xe6));const _0x3f32=function(_0x1f0caa,_0x3fd03d){_0x1f0caa=_0x1f0caa-0x0;let _0x3f32e1=_0x3fd0[_0x1f0caa];return _0x3f32e1;};import{Plugin as _0x4c46c1}from'ckeditor5/src/core';import{Collection as _0xa93931}from'ckeditor5/src/utils';import{Model as _0x28a0ed,SplitButtonView as _0x4fba7f,createDropdown as _0x201c4d,addListToDropdown as _0x254a26}from'ckeditor5/src/ui';import{Users as _0x985b26,getDateTimeFormatter as _0x3ca02a,getAllMarkersDomElementsSorted as _0x4fdfcd}from'ckeditor5-collaboration/src/collaboration-core';import _0x17ee29 from'./trackchangesediting';import _0xbc8ca4 from'./ui/suggestioncontroller';import _0x2a4090 from'./ui/view/suggestionthreadview';import{getTranslation as _0x2cff71}from'./utils/common-translations';import _0x1699fb from'../theme/icons/track-changes.svg';export default class d extends _0x4c46c1{static get['requires'](){return[_0x17ee29,_0x985b26,'CommentsRepository',_0x3f32('0x4b'),_0x3f32('0x48')];}static get[_0x3f32('0xa')](){return _0x3f32('0x2e');}constructor(_0x3eb8de){super(_0x3eb8de),this[_0x3f32('0x61')]=new Map(),this[_0x3f32('0x17')]=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x91f942=this[_0x3f32('0x42')][_0x3f32('0x1d')];_0x91f942['define'](_0x3f32('0x5a'),_0x2a4090),_0x91f942['define']('trackChanges.disableComments',!0x1),this[_0x3f32('0x24')]=_0x91f942['get']('trackChanges.disableComments');}[_0x3f32('0x3e')](_0xe1e8ea,_0x464686){0x0===this[_0x3f32('0x1f')][_0x3f32('0x4e')]&&setTimeout(()=>{for(const [_0x1a479a,_0x1c2171]of this[_0x3f32('0x1f')]){const _0x38f6f1=this[_0x3f32('0x61')][_0x3f32('0x4d')](_0x1a479a);_0x38f6f1||_0x1c2171?_0x38f6f1&&_0x1c2171&&this['_destroyController'](_0x1a479a):this[_0x3f32('0x5f')](_0x1a479a);}this[_0x3f32('0x42')][_0x3f32('0x64')][_0x3f32('0x2a')](_0x3f32('0x48'))['refreshSelectedViews'](),this[_0x3f32('0xd')](),this['_handleControllerBuffer'][_0x3f32('0x12')]();},0xa),this['_handleControllerBuffer'][_0x3f32('0x43')](_0xe1e8ea,_0x464686);}[_0x3f32('0x14')](){const _0x2dfd3e=this['editor'],_0x99c9fc=_0x2dfd3e[_0x3f32('0x64')]['get']('TrackChangesEditing'),_0x1a6ebf=_0x2dfd3e[_0x3f32('0x64')][_0x3f32('0x2a')](_0x3f32('0x4b')),_0x36d56f=_0x2dfd3e[_0x3f32('0x64')][_0x3f32('0x2a')](_0x3f32('0x48')),_0x5efcc2=_0x2dfd3e[_0x3f32('0x64')]['get']('CommentsRepository');_0x2dfd3e['ui'][_0x3f32('0x40')]['add'](_0x3f32('0x31'),_0x37eef6=>this[_0x3f32('0x13')](_0x37eef6)),_0x36d56f['addSourceCollector'](()=>{const _0x59dedc=[];for(const [_0x9bb46a,_0x5c0604]of Array['from'](this[_0x3f32('0x61')])){const _0xfd4d57=_0x9bb46a['getAllAdjacentSuggestions'](),_0x127163=[];for(const _0x29a0e9 of _0xfd4d57){if(!_0x29a0e9[_0x3f32('0x44')])continue;if(_0x29a0e9['isMultiRange']){_0x127163['push'](..._0x29a0e9['getRanges']());continue;}const _0x424051=_0x29a0e9[_0x3f32('0x59')]();if(_0x127163['length']>0x0){const _0x2a6901=_0x127163[0x0][_0x3f32('0x22')](_0x424051);if(_0x2a6901){_0x127163[0x0]=_0x2a6901;continue;}}_0x127163['push'](_0x424051);}_0x59dedc['push']([_0x5c0604[_0x3f32('0x1a')],_0x127163]);}return _0x59dedc;}),this[_0x3f32('0x41')](_0x99c9fc,_0x3f32('0x2f'),(_0x43b861,_0x496597)=>{this[_0x3f32('0x41')](_0x496597,_0x3f32('0x58'),(_0x18a489,_0x42085e,_0x1ed024,_0x264fac)=>{_0x496597[_0x3f32('0x44')]&&(null==_0x1ed024?(this[_0x3f32('0x56')](_0x264fac[_0x3f32('0x34')]),this[_0x3f32('0x3e')](_0x496597,!0x1)):(this[_0x3f32('0x56')](_0x1ed024[_0x3f32('0x34')]),this[_0x3f32('0x3e')](_0x496597,!0x0)));}),null===_0x496597[_0x3f32('0x19')]?this[_0x3f32('0x3e')](_0x496597,!0x1):this[_0x3f32('0x56')](_0x496597[_0x3f32('0x34')]);}),this[_0x3f32('0x41')](_0x99c9fc,_0x3f32('0x3b'),(_0x113eb5,_0x4d9f57,_0x4a3dce)=>{this[_0x3f32('0x53')](_0x4d9f57,'change:previous'),this[_0x3f32('0x1f')][_0x3f32('0x5d')](_0x4d9f57);const _0x388860=_0x4a3dce?_0x4a3dce['head']:_0x4d9f57,_0x1486c4=this['_suggestionToController'][_0x3f32('0x2a')](_0x388860);null!==_0x4a3dce&&this[_0x3f32('0x56')](_0x388860),null===_0x4a3dce&&_0x1486c4&&this[_0x3f32('0x4a')](_0x4d9f57);}),this['listenTo'](_0x99c9fc,_0x3f32('0x32'),(_0x119f3b,_0xee215f)=>{this[_0x3f32('0x56')](_0xee215f);}),this[_0x3f32('0x41')](_0x1a6ebf,_0x3f32('0xe'),()=>{this[_0x3f32('0xd')]();}),this['listenTo'](_0x5efcc2,'addComment',(_0x5c7c84,{threadId:_0x532082,isFromAdapter:_0x5ad6d9})=>{if(_0x5ad6d9||!_0x99c9fc['hasSuggestion'](_0x532082))return;const _0x51cf7d=_0x99c9fc['getSuggestion'](_0x532082);this[_0x3f32('0x61')][_0x3f32('0x2a')](_0x51cf7d)[_0x3f32('0x1a')][_0x3f32('0x38')]();},{'priority':_0x3f32('0x16')});}[_0x3f32('0xd')](){const _0xefbcaf=this[_0x3f32('0x42')]['plugins'][_0x3f32('0x2a')](_0x3f32('0x4b')),_0x45c07a=this['editor'][_0x3f32('0x64')][_0x3f32('0x2a')](_0x3f32('0x50')),_0x333641=Array[_0x3f32('0x23')](_0xefbcaf[_0x3f32('0x9')],_0x3ad02f=>_0x3ad02f[_0x3f32('0xb')])[_0x3f32('0x5c')](_0x168357=>this['_viewToController']['has'](_0x168357)),_0x3790d0=[];for(const _0x163923 of _0x333641){const _0x6451b8=this[_0x3f32('0x17')][_0x3f32('0x2a')](_0x163923)['model'][_0x3f32('0x3a')]();_0x3790d0[_0x3f32('0x49')](..._0x6451b8['reduce']((_0x350b88,_0x430f08)=>[..._0x350b88,..._0x430f08[_0x3f32('0x54')]()],[]));}_0x45c07a[_0x3f32('0x3f')]=_0x3790d0;}[_0x3f32('0x13')](_0xc5ab1e){const _0x5153c2=_0x201c4d(_0xc5ab1e,_0x4fba7f),_0x5e3dc4=this[_0x3f32('0x42')][_0x3f32('0x39')][_0x3f32('0x2a')](_0x3f32('0x31')),_0x20e56b=_0x2cff71(_0xc5ab1e,_0x3f32('0x29'));_0x5153c2['buttonView'][_0x3f32('0x43')]({'tooltip':_0x20e56b,'label':_0x20e56b,'icon':_0x1699fb}),_0x5153c2[_0x3f32('0x5b')]['bind'](_0x3f32('0x1e'))['to'](_0x5e3dc4,_0x3f32('0x2c')),_0x5153c2[_0x3f32('0x5b')]['on'](_0x3f32('0x4f'),()=>{_0x5e3dc4[_0x3f32('0x4f')](),this[_0x3f32('0x42')][_0x3f32('0x33')][_0x3f32('0x1a')][_0x3f32('0x38')]();});const _0x3806ae=new _0xa93931(),_0x37d9cd=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x20e56b,'commandName':_0x3f32('0x31')}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0x2cff71(_0xc5ab1e,_0x3f32('0x4')),'commandName':_0x3f32('0xf')}},{'type':'button','model':{'withText':!0x0,'label':_0x2cff71(_0xc5ab1e,_0x3f32('0x65')),'commandName':'acceptSelectedSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x2cff71(_0xc5ab1e,_0x3f32('0x46')),'commandName':_0x3f32('0x55')}},{'type':_0x3f32('0x2'),'model':{'withText':!0x0,'label':_0x2cff71(_0xc5ab1e,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x3f32('0x63')}}];for(const _0x5030ab of _0x37d9cd){let _0x4d702e={'type':_0x3f32('0x20')};if(_0x5030ab['model']){const _0x32db07=new _0x28a0ed(_0x5030ab[_0x3f32('0x3')]),_0x176b1f=this[_0x3f32('0x42')][_0x3f32('0x39')]['get'](_0x32db07[_0x3f32('0x27')]);_0x32db07[_0x3f32('0x3d')]('isOn',_0x3f32('0x18'))['to'](_0x176b1f,_0x3f32('0x2c'),_0x3f32('0x18')),_0x4d702e={'type':_0x5030ab[_0x3f32('0x3c')],'model':_0x32db07};}_0x3806ae[_0x3f32('0x5')](_0x4d702e);}_0x254a26(_0x5153c2,_0x3806ae);const _0x46af18=_0x37d9cd[_0x3f32('0x5c')](_0x14a97d=>null!=_0x14a97d[_0x3f32('0x3')])[_0x3f32('0x11')](_0x3dfa70=>this[_0x3f32('0x42')][_0x3f32('0x39')][_0x3f32('0x2a')](_0x3dfa70[_0x3f32('0x3')][_0x3f32('0x27')])),_0x5dfc2c=_0x5153c2[_0x3f32('0x5b')];return _0x5dfc2c[_0x3f32('0xc')][_0x3f32('0x1c')](_0x3f32('0x18')),_0x5dfc2c[_0x3f32('0x1')][_0x3f32('0x1c')](_0x3f32('0x18')),_0x5dfc2c[_0x3f32('0xc')][_0x3f32('0x3d')](_0x3f32('0x18'))['to'](_0x5e3dc4,_0x3f32('0x18')),_0x5dfc2c[_0x3f32('0x1')][_0x3f32('0x3d')](_0x3f32('0x18'))[_0x3f32('0x2d')](_0x46af18,_0x3f32('0x18'),(..._0x411fb5)=>_0x411fb5[_0x3f32('0x0')](_0x119b18=>_0x119b18)),_0x5153c2['on'](_0x3f32('0x4f'),_0x4a3f99=>{this[_0x3f32('0x42')][_0x3f32('0x4f')](_0x4a3f99[_0x3f32('0x21')]['commandName']),this[_0x3f32('0x42')][_0x3f32('0x33')][_0x3f32('0x1a')][_0x3f32('0x38')]();}),_0x5153c2;}['_initializeController'](_0x41adbf){const _0x1fe8e4=this[_0x3f32('0x42')],_0x30df6=_0x1fe8e4['config'],_0x2ab8b9=_0x1fe8e4['plugins']['get'](_0x3f32('0x4b')),_0x1eed7e=_0x1fe8e4[_0x3f32('0x64')]['get']('CommentsRepository'),_0x466214=_0x1fe8e4[_0x3f32('0x64')][_0x3f32('0x2a')](_0x3f32('0x48')),_0x3e2784=_0x1fe8e4['plugins'][_0x3f32('0x2a')](_0x985b26)['me'],_0x50262a=_0x30df6[_0x3f32('0x2a')]('trackChanges')[_0x3f32('0x25')],{CommentsListView:_0x5089b5,CommentThreadInputView:_0x41c2ef}=_0x1fe8e4[_0x3f32('0x64')]['get']('CommentsUI');let _0x43dca9,_0x43eff1;this[_0x3f32('0x26')]['has'](_0x41adbf['id'])?(_0x43eff1=this['_annotationViews'][_0x3f32('0x2a')](_0x41adbf['id']),_0x43dca9=_0x43eff1[_0x3f32('0x5e')]):(_0x43dca9=new _0x50262a(_0x1fe8e4[_0x3f32('0x37')],_0x41adbf,_0x3e2784,{'disableComments':this[_0x3f32('0x24')],'editorConfig':_0x30df6['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x30df6[_0x3f32('0x2a')](_0x3f32('0x7')),'maxThreadTotalWeight':_0x30df6['get'](_0x3f32('0x36')),'maxCommentCharsWhenCollapsed':_0x30df6['get'](_0x3f32('0x4c')),'formatDateTime':_0x3ca02a(_0x30df6[_0x3f32('0x2a')](_0x3f32('0x37'))),'CommentView':_0x30df6[_0x3f32('0x2a')](_0x3f32('0x2b'))[_0x3f32('0x57')],'CommentsListView':_0x5089b5,'CommentThreadInputView':_0x41c2ef}),_0x43dca9[_0x3f32('0x28')]['on'](_0x3f32('0x4f'),()=>{_0x1fe8e4[_0x3f32('0x33')]['view'][_0x3f32('0x38')]();}),_0x43dca9[_0x3f32('0x60')]['on'](_0x3f32('0x4f'),()=>{_0x1fe8e4[_0x3f32('0x33')][_0x3f32('0x1a')]['focus']();}),_0x43eff1=_0x2ab8b9['createAnnotationView'](this[_0x3f32('0x42')]['locale'],_0x43dca9),_0x43eff1[_0x3f32('0x3d')]('isDirty')['to'](_0x43dca9,_0x3f32('0x8')),_0x43eff1[_0x3f32('0x3d')](_0x3f32('0x66'))['to'](_0x43dca9),_0x43eff1[_0x3f32('0x3d')]('type')['to'](_0x43dca9,_0x3f32('0x3c'),_0x4af1f7=>_0x3f32('0x15')+_0x4af1f7),this['_annotationViews'][_0x3f32('0x43')](_0x41adbf['id'],_0x43eff1));const _0x5a3732=_0x1eed7e[_0x3f32('0x67')](_0x41adbf[_0x3f32('0x35')],_0x43dca9),_0x46a847=new _0xbc8ca4(_0x1fe8e4,_0x41adbf,_0x43dca9,_0x5a3732),_0x213367=_0x41adbf[_0x3f32('0x3a')]()['filter'](_0x5bdb6c=>_0x5bdb6c[_0x3f32('0x44')]);_0x43dca9[_0x3f32('0x45')]=_0x1fe8e4['plugins'][_0x3f32('0x2a')]('TrackChangesEditing')['_descriptionFactory'][_0x3f32('0x30')](_0x213367),this[_0x3f32('0x61')][_0x3f32('0x43')](_0x41adbf,_0x46a847),this[_0x3f32('0x17')][_0x3f32('0x43')](_0x43dca9,_0x46a847);const _0xe93918=_0x2ab8b9[_0x3f32('0x51')]({'view':_0x43eff1,'target':()=>{const _0x54152d=[],_0x38952e=_0x41adbf[_0x3f32('0x3a')]()[_0x3f32('0x5c')](_0x54e3cf=>_0x54e3cf['isInContent']);for(const _0x108a3f of _0x38952e)_0x54152d[_0x3f32('0x49')](..._0x108a3f[_0x3f32('0x52')]());return _0x4fdfcd(_0x1fe8e4['editing'],_0x54152d);},'type':()=>_0x3f32('0x15')+_0x46a847['view'][_0x3f32('0x3c')]});_0x2ab8b9[_0x3f32('0x5')](_0xe93918),_0x466214['registerAnnotation'](_0xe93918);}[_0x3f32('0x4a')](_0x1ee86b){const _0x31fd03=this[_0x3f32('0x42')][_0x3f32('0x64')][_0x3f32('0x2a')](_0x3f32('0x4b')),_0x36b65c=this[_0x3f32('0x61')][_0x3f32('0x2a')](_0x1ee86b),_0x1e58e4=_0x36b65c[_0x3f32('0x1a')],_0x4402f5=_0x31fd03[_0x3f32('0x1b')](_0x1e58e4);_0x4402f5&&_0x31fd03[_0x3f32('0x47')](_0x4402f5),this['_suggestionToController'][_0x3f32('0x5d')](_0x1ee86b),this['_viewToController'][_0x3f32('0x5d')](_0x1e58e4),_0x36b65c[_0x3f32('0x10')]();}[_0x3f32('0x56')](_0x10975){if(!_0x10975[_0x3f32('0x44')]||!this['_suggestionToController'][_0x3f32('0x4d')](_0x10975))return;const _0x15673b=this['editor'][_0x3f32('0x64')][_0x3f32('0x2a')](_0x3f32('0x50')),_0x3a2dc1=this[_0x3f32('0x61')][_0x3f32('0x2a')](_0x10975),_0x218737=_0x10975[_0x3f32('0x3a')]();_0x3a2dc1[_0x3f32('0x1a')][_0x3f32('0x45')]=_0x15673b[_0x3f32('0x6')]['getDescriptions'](_0x218737);}[_0x3f32('0x10')](){for(const _0x216949 of this['_suggestionToController'][_0x3f32('0x62')]())this[_0x3f32('0x4a')](_0x216949);for(const _0x2ce163 of this[_0x3f32('0x26')]['values']())_0x2ce163[_0x3f32('0x5e')][_0x3f32('0x10')]();super[_0x3f32('0x10')]();}}
|
|
23
|
+
const _0x4ba1=['isDirty','descriptionParts','SuggestionThreadView','map','switchbutton','createCommentThreadController','acceptSelectedSuggestions','requires','comments.maxCommentsWhenCollapsed','getByInnerView','execute','getAllAdjacentSuggestions','Annotations','TrackChangesUI','init','componentFactory','_updateController','discardSelectedSuggestions','change:activeAnnotations','add','mainView','registerAnnotation','TrackChangesEditing','commandName','getDescriptions','get','commands','button','lowest','comments.maxCommentCharsWhenCollapsed','from','commentThread','activeAnnotations','length','push','config','filter','source','trackChanges','_createUIButton','getSuggestion','_disableComments','createAnnotation','_handleControllerBuffer','model','bind','type','isEnabled','separator','unbind','activeMarkers','focus','remove','plugins','CommentsUI','Accept\x20all\x20selected\x20suggestions','_suggestionToController','actionView','listenTo','comments.editorConfig','getMarkerNames','_annotationViews','addComment','getFirstRange','Discard\x20all\x20suggestions','values','locale','editing','CommentsRepository','view','buttonView','define','acceptAllSuggestions','clear','trackChanges.disableComments','arrowView','suggestion-','getJoined','acceptButton','innerView','size','change:previous','_destroyController','isMultiRange','destroy','_refreshActiveMarkers','delete','_descriptionFactory','_initializeController','head','set','isOn','has','discardAllSuggestions','_handleSuggestionControllerDelayed','previous','trackChanges.SuggestionThreadView','Discard\x20all\x20selected\x20suggestions','_viewToController','CommentView','editor','isInContent','value','EditorAnnotations','suggestionLoaded','suggestionChanged'];(function(_0xb3698f,_0x4ba119){const _0x345a85=function(_0x31fdda){while(--_0x31fdda){_0xb3698f['push'](_0xb3698f['shift']());}};_0x345a85(++_0x4ba119);}(_0x4ba1,0x93));const _0x345a=function(_0xb3698f,_0x4ba119){_0xb3698f=_0xb3698f-0x0;let _0x345a85=_0x4ba1[_0xb3698f];return _0x345a85;};import{Plugin as _0x188373}from'ckeditor5/src/core';import{Collection as _0xc7327b}from'ckeditor5/src/utils';import{Model as _0x4e3dfd,SplitButtonView as _0x358107,createDropdown as _0x2d9f64,addListToDropdown as _0x35a39f}from'ckeditor5/src/ui';import{Users as _0x16578d,getDateTimeFormatter as _0xce73b7,getAllMarkersDomElementsSorted as _0x38f1bb}from'ckeditor5-collaboration/src/collaboration-core';import _0x3fba2b from'./trackchangesediting';import _0x3c8b89 from'./ui/suggestioncontroller';import _0x333803 from'./ui/view/suggestionthreadview';import{getTranslation as _0x57d1ff}from'./utils/common-translations';import _0x1abfc8 from'../theme/icons/track-changes.svg';export default class d extends _0x188373{static get[_0x345a('0x48')](){return[_0x3fba2b,_0x16578d,_0x345a('0x1b'),_0x345a('0x4d'),_0x345a('0x3e')];}static get['pluginName'](){return _0x345a('0x4e');}constructor(_0x39bcd6){super(_0x39bcd6),this[_0x345a('0xf')]=new Map(),this[_0x345a('0x39')]=new Map(),this[_0x345a('0x14')]=new Map(),this[_0x345a('0x2')]=new Map();const _0x2563d9=this[_0x345a('0x3b')][_0x345a('0x64')];_0x2563d9[_0x345a('0x1e')](_0x345a('0x37'),_0x333803),_0x2563d9['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2563d9[_0x345a('0x5a')](_0x345a('0x21'));}[_0x345a('0x35')](_0x20b7f6,_0x599025){0x0===this['_handleControllerBuffer'][_0x345a('0x27')]&&setTimeout(()=>{for(const [_0x50feb6,_0x4e772a]of this[_0x345a('0x2')]){const _0x33aa94=this[_0x345a('0xf')][_0x345a('0x33')](_0x50feb6);_0x33aa94||_0x4e772a?_0x33aa94&&_0x4e772a&&this['_destroyController'](_0x50feb6):this['_initializeController'](_0x50feb6);}this['editor']['plugins']['get'](_0x345a('0x3e'))['refreshSelectedViews'](),this[_0x345a('0x2c')](),this[_0x345a('0x2')][_0x345a('0x20')]();},0xa),this[_0x345a('0x2')]['set'](_0x20b7f6,_0x599025);}[_0x345a('0x4f')](){const _0x1e44a4=this[_0x345a('0x3b')],_0x5835e7=_0x1e44a4[_0x345a('0xc')][_0x345a('0x5a')](_0x345a('0x57')),_0x261719=_0x1e44a4[_0x345a('0xc')]['get']('Annotations'),_0x524be8=_0x1e44a4[_0x345a('0xc')]['get'](_0x345a('0x3e')),_0x53e05e=_0x1e44a4[_0x345a('0xc')][_0x345a('0x5a')](_0x345a('0x1b'));_0x1e44a4['ui'][_0x345a('0x50')][_0x345a('0x54')]('trackChanges',_0x5ab7a4=>this[_0x345a('0x68')](_0x5ab7a4)),_0x524be8['addSourceCollector'](()=>{const _0x390ee8=[];for(const [_0x2038c3,_0x3a241b]of Array[_0x345a('0x5f')](this[_0x345a('0xf')])){const _0x3e40df=_0x2038c3[_0x345a('0x4c')](),_0xf8d778=[];for(const _0x4b9da0 of _0x3e40df){if(!_0x4b9da0[_0x345a('0x3c')])continue;if(_0x4b9da0[_0x345a('0x2a')]){_0xf8d778['push'](..._0x4b9da0['getRanges']());continue;}const _0x424778=_0x4b9da0[_0x345a('0x16')]();if(_0xf8d778[_0x345a('0x62')]>0x0){const _0x34e6a7=_0xf8d778[0x0][_0x345a('0x24')](_0x424778);if(_0x34e6a7){_0xf8d778[0x0]=_0x34e6a7;continue;}}_0xf8d778[_0x345a('0x63')](_0x424778);}_0x390ee8[_0x345a('0x63')]([_0x3a241b[_0x345a('0x1c')],_0xf8d778]);}return _0x390ee8;}),this[_0x345a('0x11')](_0x5835e7,_0x345a('0x3f'),(_0x1660b3,_0x3c7b13)=>{this['listenTo'](_0x3c7b13,_0x345a('0x28'),(_0x2b4810,_0x3e002a,_0x157da5,_0x19223f)=>{_0x3c7b13['isInContent']&&(null==_0x157da5?(this[_0x345a('0x51')](_0x19223f[_0x345a('0x30')]),this[_0x345a('0x35')](_0x3c7b13,!0x1)):(this['_updateController'](_0x157da5[_0x345a('0x30')]),this[_0x345a('0x35')](_0x3c7b13,!0x0)));}),null===_0x3c7b13[_0x345a('0x36')]?this[_0x345a('0x35')](_0x3c7b13,!0x1):this['_updateController'](_0x3c7b13[_0x345a('0x30')]);}),this[_0x345a('0x11')](_0x5835e7,'suggestionUnloaded',(_0x2b8988,_0x3838f8,_0x4a0452)=>{this['stopListening'](_0x3838f8,_0x345a('0x28')),this[_0x345a('0x2')][_0x345a('0x2d')](_0x3838f8);const _0x4ede02=_0x4a0452?_0x4a0452[_0x345a('0x30')]:_0x3838f8,_0x2739c8=this[_0x345a('0xf')][_0x345a('0x5a')](_0x4ede02);null!==_0x4a0452&&this[_0x345a('0x51')](_0x4ede02),null===_0x4a0452&&_0x2739c8&&this['_destroyController'](_0x3838f8);}),this[_0x345a('0x11')](_0x5835e7,_0x345a('0x40'),(_0x21c133,_0x341e1c)=>{this[_0x345a('0x51')](_0x341e1c);}),this['listenTo'](_0x261719,_0x345a('0x53'),()=>{this[_0x345a('0x2c')]();}),this[_0x345a('0x11')](_0x53e05e,_0x345a('0x15'),(_0x557475,{threadId:_0x483580,isFromAdapter:_0x5f1cf4})=>{if(_0x5f1cf4||!_0x5835e7['hasSuggestion'](_0x483580))return;const _0x4ee37c=_0x5835e7[_0x345a('0x69')](_0x483580);this[_0x345a('0xf')]['get'](_0x4ee37c)[_0x345a('0x1c')][_0x345a('0xa')]();},{'priority':_0x345a('0x5d')});}['_refreshActiveMarkers'](){const _0x3b5ba3=this[_0x345a('0x3b')][_0x345a('0xc')][_0x345a('0x5a')](_0x345a('0x4d')),_0x57ecfe=this[_0x345a('0x3b')][_0x345a('0xc')][_0x345a('0x5a')](_0x345a('0x57')),_0x22fb29=Array[_0x345a('0x5f')](_0x3b5ba3[_0x345a('0x61')],_0x32ca13=>_0x32ca13[_0x345a('0x26')])['filter'](_0x220ba8=>this['_viewToController'][_0x345a('0x33')](_0x220ba8)),_0x36ea4c=[];for(const _0x4e4bdb of _0x22fb29){const _0x2e57ba=this[_0x345a('0x39')][_0x345a('0x5a')](_0x4e4bdb)[_0x345a('0x3')]['getAllAdjacentSuggestions']();_0x36ea4c[_0x345a('0x63')](..._0x2e57ba['reduce']((_0x24fe6a,_0x56473b)=>[..._0x24fe6a,..._0x56473b[_0x345a('0x13')]()],[]));}_0x57ecfe[_0x345a('0x9')]=_0x36ea4c;}[_0x345a('0x68')](_0x5986f7){const _0x1cc97f=_0x2d9f64(_0x5986f7,_0x358107),_0x50f8c9=this['editor'][_0x345a('0x5b')][_0x345a('0x5a')](_0x345a('0x67')),_0x2bbc1b=_0x57d1ff(_0x5986f7,'Track\x20changes');_0x1cc97f[_0x345a('0x1d')][_0x345a('0x31')]({'tooltip':_0x2bbc1b,'label':_0x2bbc1b,'icon':_0x1abfc8}),_0x1cc97f['buttonView']['bind'](_0x345a('0x32'))['to'](_0x50f8c9,_0x345a('0x3d')),_0x1cc97f[_0x345a('0x1d')]['on'](_0x345a('0x4b'),()=>{_0x50f8c9['execute'](),this[_0x345a('0x3b')][_0x345a('0x1a')][_0x345a('0x1c')][_0x345a('0xa')]();});const _0x39e678=new _0xc7327b(),_0x2bad44=[{'type':_0x345a('0x45'),'model':{'withText':!0x0,'label':_0x2bbc1b,'commandName':_0x345a('0x67')}},{'type':_0x345a('0x7')},{'type':'button','model':{'withText':!0x0,'label':_0x57d1ff(_0x5986f7,'Accept\x20all\x20suggestions'),'commandName':_0x345a('0x1f')}},{'type':_0x345a('0x5c'),'model':{'withText':!0x0,'label':_0x57d1ff(_0x5986f7,_0x345a('0xe')),'commandName':_0x345a('0x47')}},{'type':_0x345a('0x5c'),'model':{'withText':!0x0,'label':_0x57d1ff(_0x5986f7,_0x345a('0x17')),'commandName':_0x345a('0x34')}},{'type':_0x345a('0x5c'),'model':{'withText':!0x0,'label':_0x57d1ff(_0x5986f7,_0x345a('0x38')),'commandName':_0x345a('0x52')}}];for(const _0xc87c81 of _0x2bad44){let _0x13582b={'type':_0x345a('0x7')};if(_0xc87c81[_0x345a('0x3')]){const _0x407ab8=new _0x4e3dfd(_0xc87c81[_0x345a('0x3')]),_0x4c962f=this[_0x345a('0x3b')][_0x345a('0x5b')][_0x345a('0x5a')](_0x407ab8[_0x345a('0x58')]);_0x407ab8[_0x345a('0x4')](_0x345a('0x32'),_0x345a('0x6'))['to'](_0x4c962f,'value',_0x345a('0x6')),_0x13582b={'type':_0xc87c81[_0x345a('0x5')],'model':_0x407ab8};}_0x39e678[_0x345a('0x54')](_0x13582b);}_0x35a39f(_0x1cc97f,_0x39e678);const _0x52118d=_0x2bad44[_0x345a('0x65')](_0x500955=>null!=_0x500955[_0x345a('0x3')])[_0x345a('0x44')](_0xce767b=>this[_0x345a('0x3b')][_0x345a('0x5b')][_0x345a('0x5a')](_0xce767b[_0x345a('0x3')]['commandName'])),_0xdc2398=_0x1cc97f['buttonView'];return _0xdc2398[_0x345a('0x10')][_0x345a('0x8')](_0x345a('0x6')),_0xdc2398[_0x345a('0x22')][_0x345a('0x8')](_0x345a('0x6')),_0xdc2398[_0x345a('0x10')][_0x345a('0x4')](_0x345a('0x6'))['to'](_0x50f8c9,_0x345a('0x6')),_0xdc2398[_0x345a('0x22')][_0x345a('0x4')]('isEnabled')['toMany'](_0x52118d,_0x345a('0x6'),(..._0x12b596)=>_0x12b596['some'](_0x27db69=>_0x27db69)),_0x1cc97f['on'](_0x345a('0x4b'),_0x3f6ece=>{this[_0x345a('0x3b')][_0x345a('0x4b')](_0x3f6ece[_0x345a('0x66')]['commandName']),this['editor'][_0x345a('0x1a')]['view'][_0x345a('0xa')]();}),_0x1cc97f;}[_0x345a('0x2f')](_0x549e5){const _0x3d8ffd=this[_0x345a('0x3b')],_0x4b81fe=_0x3d8ffd[_0x345a('0x64')],_0x9060cd=_0x3d8ffd['plugins'][_0x345a('0x5a')](_0x345a('0x4d')),_0x57bcb9=_0x3d8ffd[_0x345a('0xc')]['get'](_0x345a('0x1b')),_0x33d404=_0x3d8ffd[_0x345a('0xc')][_0x345a('0x5a')](_0x345a('0x3e')),_0x14bedc=_0x3d8ffd[_0x345a('0xc')]['get'](_0x16578d)['me'],_0x19b103=_0x4b81fe[_0x345a('0x5a')](_0x345a('0x67'))[_0x345a('0x43')],{CommentsListView:_0x29110c,CommentThreadInputView:_0x3444cc}=_0x3d8ffd[_0x345a('0xc')]['get'](_0x345a('0xd'));let _0x3e6233,_0x391408;this[_0x345a('0x14')][_0x345a('0x33')](_0x549e5['id'])?(_0x391408=this[_0x345a('0x14')][_0x345a('0x5a')](_0x549e5['id']),_0x3e6233=_0x391408['mainView']):(_0x3e6233=new _0x19b103(_0x3d8ffd['locale'],_0x549e5,_0x14bedc,{'disableComments':this[_0x345a('0x0')],'editorConfig':_0x4b81fe[_0x345a('0x5a')](_0x345a('0x12')),'maxCommentsWhenCollapsed':_0x4b81fe['get'](_0x345a('0x49')),'maxThreadTotalWeight':_0x4b81fe[_0x345a('0x5a')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4b81fe[_0x345a('0x5a')](_0x345a('0x5e')),'formatDateTime':_0xce73b7(_0x4b81fe[_0x345a('0x5a')](_0x345a('0x19'))),'CommentView':_0x4b81fe[_0x345a('0x5a')]('comments')[_0x345a('0x3a')],'CommentsListView':_0x29110c,'CommentThreadInputView':_0x3444cc}),_0x3e6233[_0x345a('0x25')]['on']('execute',()=>{_0x3d8ffd['editing'][_0x345a('0x1c')][_0x345a('0xa')]();}),_0x3e6233['discardButton']['on']('execute',()=>{_0x3d8ffd[_0x345a('0x1a')][_0x345a('0x1c')]['focus']();}),_0x391408=_0x9060cd['createAnnotationView'](this[_0x345a('0x3b')]['locale'],_0x3e6233),_0x391408[_0x345a('0x4')]('isDirty')['to'](_0x3e6233,_0x345a('0x41')),_0x391408[_0x345a('0x4')]('length')['to'](_0x3e6233),_0x391408[_0x345a('0x4')](_0x345a('0x5'))['to'](_0x3e6233,_0x345a('0x5'),_0x22613e=>_0x345a('0x23')+_0x22613e),this[_0x345a('0x14')][_0x345a('0x31')](_0x549e5['id'],_0x391408));const _0xcd64c1=_0x57bcb9[_0x345a('0x46')](_0x549e5[_0x345a('0x60')],_0x3e6233),_0x1b2c08=new _0x3c8b89(_0x3d8ffd,_0x549e5,_0x3e6233,_0xcd64c1),_0x375129=_0x549e5[_0x345a('0x4c')]()[_0x345a('0x65')](_0x27bb52=>_0x27bb52[_0x345a('0x3c')]);_0x3e6233[_0x345a('0x42')]=_0x3d8ffd[_0x345a('0xc')][_0x345a('0x5a')](_0x345a('0x57'))[_0x345a('0x2e')]['getDescriptions'](_0x375129),this[_0x345a('0xf')]['set'](_0x549e5,_0x1b2c08),this['_viewToController']['set'](_0x3e6233,_0x1b2c08);const _0x573cb5=_0x9060cd[_0x345a('0x1')]({'view':_0x391408,'target':()=>{const _0x1c029d=[],_0x3e7fce=_0x549e5[_0x345a('0x4c')]()[_0x345a('0x65')](_0x2deda3=>_0x2deda3['isInContent']);for(const _0x1fdae9 of _0x3e7fce)_0x1c029d[_0x345a('0x63')](..._0x1fdae9['getMarkers']());return _0x38f1bb(_0x3d8ffd['editing'],_0x1c029d);},'type':()=>_0x345a('0x23')+_0x1b2c08['view'][_0x345a('0x5')]});_0x9060cd[_0x345a('0x54')](_0x573cb5),_0x33d404[_0x345a('0x56')](_0x573cb5);}[_0x345a('0x29')](_0x3a32b8){const _0xc53668=this[_0x345a('0x3b')]['plugins'][_0x345a('0x5a')](_0x345a('0x4d')),_0x168619=this[_0x345a('0xf')][_0x345a('0x5a')](_0x3a32b8),_0x231018=_0x168619[_0x345a('0x1c')],_0x4f878f=_0xc53668[_0x345a('0x4a')](_0x231018);_0x4f878f&&_0xc53668[_0x345a('0xb')](_0x4f878f),this[_0x345a('0xf')][_0x345a('0x2d')](_0x3a32b8),this[_0x345a('0x39')][_0x345a('0x2d')](_0x231018),_0x168619['destroy']();}[_0x345a('0x51')](_0x57afe2){if(!_0x57afe2[_0x345a('0x3c')]||!this['_suggestionToController']['has'](_0x57afe2))return;const _0x3dbb95=this[_0x345a('0x3b')][_0x345a('0xc')]['get'](_0x345a('0x57')),_0x2b014b=this[_0x345a('0xf')]['get'](_0x57afe2),_0x1fddae=_0x57afe2['getAllAdjacentSuggestions']();_0x2b014b[_0x345a('0x1c')][_0x345a('0x42')]=_0x3dbb95[_0x345a('0x2e')][_0x345a('0x59')](_0x1fddae);}['destroy'](){for(const _0x2aacab of this['_suggestionToController']['keys']())this[_0x345a('0x29')](_0x2aacab);for(const _0x5eb560 of this[_0x345a('0x14')][_0x345a('0x18')]())_0x5eb560[_0x345a('0x55')]['destroy']();super[_0x345a('0x2b')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf6bc=['_removePendingAction','canEditAt','canAccept','add','discardSuggestion','view','plugins','isDirty','destroy','_pendingAction','acceptSuggestion','bind','stopListening','commands','isEnabled','unbind','locale','_discardCommand','canDiscard','listenTo','get','_editor','_setPendingAction','PendingActions','commentThreadController','getRanges','_acceptCommand','remove','model'];(function(_0x2d255c,_0xf6bca4){const _0x5e8055=function(_0x16ee77){while(--_0x16ee77){_0x2d255c['push'](_0x2d255c['shift']());}};_0x5e8055(++_0xf6bca4);}(_0xf6bc,0x121));const _0x5e80=function(_0x2d255c,_0xf6bca4){_0x2d255c=_0x2d255c-0x0;let _0x5e8055=_0xf6bc[_0x2d255c];return _0x5e8055;};import{ObservableMixin as _0x3f66ed}from'ckeditor5/src/utils';import{getTranslation as _0xd58529}from'../utils/common-translations';export default class qt extends _0x3f66ed(){constructor(_0x2249a4,_0x8ff790,_0x2d2184,_0x5f0833){super(),this[_0x5e80('0x0')]=_0x8ff790,this[_0x5e80('0x6')]=_0x2d2184,this[_0x5e80('0x19')]=_0x5f0833,this[_0x5e80('0x16')]=_0x2249a4,this[_0x5e80('0x1b')]=_0x2249a4[_0x5e80('0xe')][_0x5e80('0x15')](_0x5e80('0xb')),this['_discardCommand']=_0x2249a4['commands'][_0x5e80('0x15')](_0x5e80('0x5')),this['view']['bind'](_0x5e80('0xf'))['to'](this[_0x5e80('0x1b')],this[_0x5e80('0x12')],(_0xc484d1,_0x65fbc8)=>_0xc484d1||_0x65fbc8),this[_0x5e80('0x6')][_0x5e80('0xc')](_0x5e80('0x3'))['to'](this[_0x5e80('0x1b')],_0x5e80('0xf'),_0x15e259=>_0x15e259&&this[_0x5e80('0x16')]['model'][_0x5e80('0x2')](_0x8ff790[_0x5e80('0x1a')]())),this[_0x5e80('0x6')][_0x5e80('0xc')](_0x5e80('0x13'))['to'](this[_0x5e80('0x12')],_0x5e80('0xf'),_0x1c5cea=>_0x1c5cea&&this[_0x5e80('0x16')][_0x5e80('0x0')][_0x5e80('0x2')](_0x8ff790[_0x5e80('0x1a')]())),this[_0x5e80('0xa')]=null,_0x2d2184[_0x5e80('0x8')]&&this[_0x5e80('0x17')](),this[_0x5e80('0x14')](_0x2d2184,'acceptSuggestion',()=>this[_0x5e80('0xb')]()),this[_0x5e80('0x14')](_0x2d2184,_0x5e80('0x5'),()=>this['discardSuggestion']()),this[_0x5e80('0x14')](_0x2d2184,'change:isDirty',()=>{_0x2d2184[_0x5e80('0x8')]?this[_0x5e80('0x17')]():this[_0x5e80('0x1')]();});}['acceptSuggestion'](){this[_0x5e80('0x1b')]['execute'](this[_0x5e80('0x0')]['id']);}[_0x5e80('0x5')](){this[_0x5e80('0x12')]['execute'](this[_0x5e80('0x0')]['id']);}[_0x5e80('0x9')](){this[_0x5e80('0x6')][_0x5e80('0x10')](_0x5e80('0xf')),this['view'][_0x5e80('0x10')]('canAccept'),this[_0x5e80('0x6')][_0x5e80('0x10')]('canDiscard'),this[_0x5e80('0xd')](),this[_0x5e80('0x19')][_0x5e80('0x9')](),this[_0x5e80('0xa')]&&this[_0x5e80('0x1')]();}['_setPendingAction'](){const _0x1709bf=_0xd58529(this[_0x5e80('0x16')][_0x5e80('0x11')],'PENDING_ACTION_SUGGESTION');this[_0x5e80('0xa')]=this[_0x5e80('0x16')][_0x5e80('0x7')][_0x5e80('0x15')](_0x5e80('0x18'))[_0x5e80('0x4')](_0x1709bf);}['_removePendingAction'](){null!==this['_pendingAction']&&this[_0x5e80('0x16')][_0x5e80('0x7')][_0x5e80('0x15')](_0x5e80('0x18'))[_0x5e80('0x1c')](this[_0x5e80('0xa')]),this[_0x5e80('0xa')]=null;}}
|