@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230906.0 → 0.0.0-nightly-20230907.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 _0x2f59=['getFirstRange','locale','moveTargetPosition','isAfter','authoredAt','containerElement','then','stop','oldRange','getWalker','resolve','accepted','commandName','track-changes-adapter-already-set','markerToData','removeMarker:suggestion:formatBlock','ck-suggestion-marker','addClass','start','getNearestSelectionRange','discardSelectedSuggestions','createRange','data','editingDowncast','_registerDefaultCallbacks','addSuggestion','formatBlock:join','_splitMarkerName','originalSuggestionId','formatGroupId','normal','insertion','getSuggestionCallback','config','_handleNewSuggestionMarker','error-saving-suggestion-data-suggestion-discarded','change','setSelection','markerToHighlight','change:data','isMultiRange','isExternal','acceptSelectedSuggestions','add','forceDefaultExecution','root','head','splice','track-changes-suggestion-not-found','define','removed','ck-suggestion-marker-','formatInline:join','backward','from','for','low','selection','_editor','move','@external','updateMarker','formatInline:accept','addSuggestionData','targetPosition','join','_saved','PendingActions','track-changes-adapter-missing-getsuggestion','listenTo','containsItem','group','value','addRange','_suggestionState','creator','isSelectable','isDocumentOperation','ck-suggestion-marker-formatBlock','_customCallbacks','_setSuggestionData','plugins','_onDiscard','_commentsRepository','deletion:chain','_joinWithAdjacentSuggestions','suggestion','applyOperation','track-changes-user-not-found','refresh','_setSuggestionRange','_updateSuggestionData','element','always','editing','isBefore','stopListening','deletion:discard','$textProxy','_addThreadToSuggestion','addMarker:suggestion:formatBlock','_rangeIsInLocalUserInsertion','accept','length','updateSuggestion','ready','_adapter','suggestionUnloaded','previous','discardSuggestion','writer','markers','insertion:chain','getRange','detach','deletion','discard','suggestion:','getChangedMarkers','unbind','_refreshSuggestionsChain','_defaultCallbacks','clone','howMany','_removeSuggestion','discardAllSuggestions','getUser','never','commentThread','track-changes-suggestion-data-mismatch','setAttribute','chain','options','nodeBefore','addUser','_suggestions','getMarkers','removeClass','reconvertMarker','createPositionBefore','_breakSuggestionMarker','widget','end','hasCommentThread','isArray','isNextTo','elementToElement','conversion','insertion:join','remove','item','position','markerReady','isBlock','containsRange','catch','trackChangesCommand','toViewElement','getAllAdjacentSuggestions','createPositionAt','deletion:accept','formatInline','attributes','dataToMarker','isCollapsed','nodeAfter','registerCustomCallback','next','values','_mergeNestedSuggestions','activeMarkers','containsPosition','splitPosition','fire','model','addHighlight','_suggestionFactory','isObject','fromCharCode','substr','rejected','_isForcedDefaultExecutionBlock','getIntersection','notReady','update:suggestion','PENDING_ACTION_SUGGESTION','sort','newRange','some','size','getCustomProperty','_getExternalAuthor','multi','documentSelection','createSelection','multipleBlocks','acceptSuggestion','markInsertion','_getSuggestionData','markMultiRangeDeletion','removeMarker','_findSuggestions','dataReady','_addSuggestionMarker','range','createElement','_joinSuggestions','mapper','change:activeMarkers','_getAuthorFromId','formatBlock','collaboration.channelId','formatInline:','editor','consumable','tablePasteChainId','enableCommand','batch','dataDowncast','getShiftedBy','commands','document','rootName','trackChanges.mergeNestedSuggestions','formatBlock:','addMarkerName','trackChanges','isRemovable','deletion:','bindElementToMarker','consume','push','showSuggestionHighlights','markMultiRangeInsertion','elementStart','markerName','parent','formatBlock:accept','trackChanges.trackFormatChanges','init','_enabledCommands','_model','upcast','acceptAllSuggestions','every','_createSuggestion','skipNestingCheck','addCommentThread','buildSuggestion','type','split','getMultiRangeId','registerPostFixer','get','addComment','insertContent','Users','high','assign','isAtStart','formatInline:discard','includes','differ','getChanges','ck-suggestion-marker--active','has','schema','external:','change:_saved','addMarker','getLastMatchingPosition','rethrowUnexpectedError','name','_checkSuggestionCorrectness','_cutOutSuggestionMarker','open','containsRangeInObject','_trackFormatChanges','author','isInsideObject','subType','suggestionChanged','isInContent','map','getCommentThread','deleteContent','requires','isIntersectingWithRange','set','delete','createdAt','addMarker:suggestion','removeMarkers','getFirstMarker','isAtEnd','hasSuggestion','isEqual','suggestion-type','suggestionLoaded','getItems','isLimit','after','insertion:','$graveyard','_isDataLoaded','getAncestors','adapter','getDifference','isOwn','getRanges','execute','CommentsRepository','filter','getAttribute','marker-count','hasComments','getSuggestion','formatBlock:discard','toJSON','unbindElementFromMarkerName','insertion:discard','clear','getSuggestions'];(function(_0xf4ba58,_0x2f5991){const _0x37eb2a=function(_0x329f17){while(--_0x329f17){_0xf4ba58['push'](_0xf4ba58['shift']());}};_0x37eb2a(++_0x2f5991);}(_0x2f59,0xa4));const _0x37eb=function(_0xf4ba58,_0x2f5991){_0xf4ba58=_0xf4ba58-0x0;let _0x37eb2a=_0x2f59[_0xf4ba58];return _0x37eb2a;};import{Plugin as _0x4f925a,PendingActions as _0x4ef2af}from'ckeditor5/src/core';import{LiveRange as _0x4586a9}from'ckeditor5/src/engine';import{CKEditorError as _0x1805df,uid as _0x1f3984,priorities as _0x41825d,logWarning as _0x16f58e}from'ckeditor5/src/utils';import{toWidget as _0x54fb95}from'ckeditor5/src/widget';import{Users as _0x2a8a63,hashObject as _0x10009b}from'ckeditor5-collaboration/src/collaboration-core';import _0x173bdd from'./commands/trackchangescommand';import _0x271455 from'./commands/acceptsuggestioncommand';import _0x1e70cd from'./commands/discardsuggestioncommand';import _0x4d89c9 from'./commands/executeonallsuggestionscommand';import _0x2136f0 from'./commands/executeonselectedsuggestionscommand';import _0x5d4473 from'./suggestion';import _0x2a6692 from'./suggestiondescriptionfactory';import _0x505dfd from'./integrations/alignment';import _0x3ddcf9 from'./integrations/basicstyles';import _0x3eefd2 from'./integrations/blockquote';import _0x2c78a7 from'./integrations/ckbox';import _0x4d051d from'./integrations/codeblock';import _0x292c35 from'./integrations/comments';import _0x493553 from'./integrations/deletecommand';import _0x5c588a from'./integrations/documentlist';import _0x2d82da from'./integrations/entercommand';import _0x17877a from'./integrations/findandreplace';import _0x13294c from'./integrations/font';import _0x38240d from'./integrations/formatpainter';import _0x480c20 from'./integrations/heading';import _0x1d1339 from'./integrations/highlight';import _0x3849c from'./integrations/horizontalline';import _0x596a49 from'./integrations/htmlembed';import _0x47f05b from'./integrations/image';import _0x3a80b2 from'./integrations/imagereplace';import _0x134e79 from'./integrations/importword';import _0x56a243 from'./integrations/indent';import _0x3c65fb from'./integrations/inputcommand';import _0x2df648 from'./integrations/link';import _0x2f1b10 from'./integrations/list';import _0x12927a from'./integrations/listproperties';import _0x4b313d from'./integrations/mediaembed';import _0x1fda9c from'./integrations/mention';import _0x6413eb from'./integrations/pagebreak';import _0x909a8 from'./integrations/paragraph';import _0x67b85c from'./integrations/removeformat';import _0x5a0a13 from'./integrations/restrictededitingmode';import _0x17073d from'./integrations/shiftentercommand';import _0x41605d from'./integrations/standardeditingmode';import _0x239539 from'./integrations/style';import _0x556153 from'./integrations/table';import _0x421ffe from'./integrations/tablemergesplit';import _0x540ea5 from'./integrations/tableheadings';import _0x269e22 from'./integrations/tableclipboard';import _0x56e28 from'./integrations/tablecolumnresize';import _0x56337a from'./integrations/template';import _0x311307 from'./integrations/tableofcontents';import _0x8a4995 from'./integrations/title';import _0x446234 from'./integrations/undo';import{getTranslation as _0x116ea4}from'./utils/common-translations';import _0x4070c2 from'./integrations/tablecaption';import _0x51f3bf from'./integrations/documentlistproperties';import _0x560b9f from'./integrations/tableproperties';import{isEqual as _0x49024e}from'lodash-es';export default class p extends _0x4f925a{static get[_0x37eb('0x7a')](){return[_0x37eb('0x93'),_0x2a8a63,_0x4ef2af,_0x505dfd,_0x3ddcf9,_0x3eefd2,_0x2c78a7,_0x4d051d,_0x292c35,_0x493553,_0x5c588a,_0x51f3bf,_0x2d82da,_0x17877a,_0x13294c,_0x38240d,_0x480c20,_0x1d1339,_0x3849c,_0x596a49,_0x47f05b,_0x3a80b2,_0x134e79,_0x56a243,_0x3c65fb,_0x2df648,_0x2f1b10,_0x12927a,_0x4b313d,_0x1fda9c,_0x6413eb,_0x909a8,_0x67b85c,_0x5a0a13,_0x17073d,_0x41605d,_0x239539,_0x556153,_0x421ffe,_0x540ea5,_0x4070c2,_0x269e22,_0x56e28,_0x311307,_0x560b9f,_0x56337a,_0x8a4995,_0x446234];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x283cee){function _0x19822e(_0x4d695a){return _0x4d695a[_0x37eb('0x77')](_0x3806d4=>String[_0x37eb('0xe')](_0x3806d4))['join']('');}super(_0x283cee),this[_0x37eb('0x7c')](_0x37eb('0x6'),[]),this['on'](_0x37eb('0x2c'),(_0x3b98c3,_0x268d7d,_0x2d13cf,_0x37efcf)=>{this[_0x37eb('0x4d')][_0x37eb('0xc3')](()=>{for(const _0x7dda34 of[..._0x37efcf,..._0x2d13cf])this['_model'][_0x37eb('0x10e')][_0x37eb('0x65')](_0x7dda34)&&_0x283cee[_0x37eb('0xfd')][_0x37eb('0x129')](_0x7dda34);});}),this['_descriptionFactory']=new _0x2a6692(this[_0x37eb('0x31')][_0x37eb('0xa')][_0x37eb('0x66')],this['editor'][_0x37eb('0xa0')]),this[_0x37eb('0x109')]=null,this['_suggestionFactory']=new Dt(this[_0x37eb('0x31')]),this[_0x37eb('0x126')]=new Map(),this[_0x37eb('0xf2')]=_0x283cee['plugins']['get'](_0x37eb('0x93')),this[_0x37eb('0x4c')]=new Set(),this[_0x37eb('0x4d')]=this['editor'][_0x37eb('0xa')],this['_suggestionState']=new WeakMap(),this[_0x37eb('0x11')]=!0x1,_0x283cee[_0x37eb('0xc0')][_0x37eb('0xd0')](_0x37eb('0x4a'),'default'),this[_0x37eb('0x71')]=_0x283cee[_0x37eb('0xc0')][_0x37eb('0x59')](_0x37eb('0x4a')),_0x283cee[_0x37eb('0xc0')][_0x37eb('0xd0')](_0x37eb('0x3b'),!0x0),this[_0x37eb('0x5')]=_0x283cee['config'][_0x37eb('0x59')]('trackChanges.mergeNestedSuggestions'),this[_0x37eb('0x13b')]=new _0x173bdd(_0x283cee,this[_0x37eb('0x4c')]),this[_0x19822e([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x19822e([0x34,0x30,0x34,0x36,0x31,0x38,0x31,0x32]);}[_0x37eb('0x4b')](){const _0x17a325=this[_0x37eb('0x31')];_0x17a325[_0x37eb('0x132')][_0x37eb('0xd6')]('editingDowncast')[_0x37eb('0xc5')]({'model':_0x37eb('0xf5'),'view':_0x25a798=>{const {id:_0x5adcb0,type:_0x395c94}=this[_0x37eb('0xba')](_0x25a798['markerName']),_0x2470b4=['ck-suggestion-marker',_0x37eb('0xd2')+_0x395c94];let _0x287545=0xbb8;return this[_0x37eb('0x6')][_0x37eb('0x61')](_0x25a798[_0x37eb('0x47')])&&(_0x2470b4[_0x37eb('0x43')](_0x37eb('0x64')),_0x287545=0xbc2),_0x37eb('0x112')==_0x395c94&&(_0x287545+=0x5),{'classes':_0x2470b4,'attributes':{'data-suggestion':_0x5adcb0},'priority':_0x287545};}}),_0x17a325[_0x37eb('0x132')][_0x37eb('0xd6')]('dataDowncast')[_0x37eb('0xca')](_0x341003=>{_0x341003['on'](_0x37eb('0x7f'),(_0xd30b17,_0x5be7d6,_0x27704b)=>{if(!_0x27704b[_0x37eb('0x123')]['showSuggestionHighlights'])return;const _0x135418=_0x5be7d6['item'];if(!_0x135418)return;const _0x33a9a0=_0x27704b['mapper'][_0x37eb('0x13c')](_0x135418);_0x17a325[_0x37eb('0xa')][_0x37eb('0x66')][_0x37eb('0xd')](_0x135418)&&_0x33a9a0&&!_0x33a9a0[_0x37eb('0x1a')](_0x37eb('0x12c'))&&_0x33a9a0['is'](_0x37eb('0xa4'))&&_0x54fb95(_0x33a9a0,_0x27704b['writer']);},{'priority':_0x37eb('0x5d')});}),_0x17a325[_0x37eb('0x132')][_0x37eb('0xd6')](_0x37eb('0x36'))[_0x37eb('0xc5')]({'model':_0x37eb('0xf5'),'view':(_0x342865,_0x5cf494)=>{if(!_0x5cf494[_0x37eb('0x123')][_0x37eb('0x44')])return null;const {type:_0x1f15a0}=this['_splitMarkerName'](_0x342865[_0x37eb('0x47')]);return{'classes':[_0x37eb('0xaf'),'ck-suggestion-marker-'+_0x1f15a0],'priority':0xbb8};}});const _0x210339=({showActiveMarkers:_0x54f8ea=!0x0}={})=>(_0x5a8360,_0x2b4b6b,_0x3efc43)=>{if(!_0x2b4b6b[_0x37eb('0x135')])return;if(_0x2b4b6b['item']['is'](_0x37eb('0xd8')))return void _0x3efc43[_0x37eb('0x32')][_0x37eb('0x42')](_0x2b4b6b['item'],_0x5a8360[_0x37eb('0x6c')]);const _0x563f09=_0x3efc43['mapper'][_0x37eb('0x13c')](_0x2b4b6b[_0x37eb('0x135')]);if(!(_0x2b4b6b['item']['is'](_0x37eb('0xfb'))&&_0x17a325[_0x37eb('0xa')][_0x37eb('0x66')]['isBlock'](_0x2b4b6b[_0x37eb('0x135')])&&!_0x563f09[_0x37eb('0x1a')](_0x37eb('0xb'))))return;const {id:_0x3017a5}=this[_0x37eb('0xba')](_0x2b4b6b[_0x37eb('0x47')]);_0x3efc43[_0x37eb('0x10d')]['addClass'](['ck-suggestion-marker',_0x37eb('0xed')],_0x563f09),_0x3efc43['writer'][_0x37eb('0x121')]('data-suggestion',_0x3017a5,_0x563f09),_0x3efc43[_0x37eb('0x2b')][_0x37eb('0x41')](_0x563f09,_0x2b4b6b['markerName']),_0x54f8ea&&(this['activeMarkers'][_0x37eb('0x61')](_0x2b4b6b[_0x37eb('0x47')])?_0x3efc43['writer'][_0x37eb('0xb0')](_0x37eb('0x64'),_0x563f09):_0x3efc43[_0x37eb('0x10d')][_0x37eb('0x128')](_0x37eb('0x64'),_0x563f09));for(const _0x278158 of _0x17a325[_0x37eb('0xa')]['createRangeIn'](_0x2b4b6b[_0x37eb('0x135')])[_0x37eb('0x87')]())_0x3efc43[_0x37eb('0x32')][_0x37eb('0x42')](_0x278158,_0x5a8360['name']);_0x3efc43[_0x37eb('0x32')][_0x37eb('0x42')](_0x2b4b6b[_0x37eb('0x135')],_0x5a8360[_0x37eb('0x6c')]);};_0x17a325[_0x37eb('0x132')]['for'](_0x37eb('0x36'))['add'](_0x527b71=>{_0x527b71['on']('addMarker:suggestion:formatBlock',(_0x2848cb,_0x73f73a,_0x55d0fd)=>{_0x55d0fd[_0x37eb('0x123')][_0x37eb('0x44')]&&_0x210339({'showActiveMarkers':!0x1})(_0x2848cb,_0x73f73a,_0x55d0fd);},{'priority':'highest'});}),_0x17a325[_0x37eb('0x132')][_0x37eb('0xd6')](_0x37eb('0x36'))[_0x37eb('0xad')]({'model':_0x37eb('0xf5'),'view':(_0x539156,_0x59ba06)=>_0x59ba06[_0x37eb('0x123')]['showSuggestionHighlights']?null:{'group':_0x37eb('0xf5'),'name':_0x539156[_0x37eb('0xf')](0xb)}}),_0x17a325[_0x37eb('0x132')][_0x37eb('0xd6')](_0x37eb('0x4e'))[_0x37eb('0x131')]({'view':{'name':_0x37eb('0xf5'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1ec598,{writer:_0x1c6c14})=>{let _0x32e6c7=_0x37eb('0x114')+_0x1ec598['getAttribute'](_0x37eb('0x85'))+':'+_0x1ec598[_0x37eb('0x95')]('id');return _0x1ec598[_0x37eb('0x95')](_0x37eb('0x96'))&&(_0x32e6c7+=':'+_0x1ec598[_0x37eb('0x95')](_0x37eb('0x96'))),_0x1c6c14[_0x37eb('0x29')]('$marker',{'data-name':_0x32e6c7});}}),_0x17a325['conversion']['for'](_0x37eb('0x4e'))[_0x37eb('0x142')]({'view':_0x37eb('0xf5')}),_0x17a325[_0x37eb('0x132')][_0x37eb('0xd6')]('editingDowncast')[_0x37eb('0xca')](_0x534e16=>{_0x534e16['on'](_0x37eb('0x103'),_0x210339(),{'priority':_0x37eb('0x5d')});}),_0x17a325[_0x37eb('0x132')][_0x37eb('0xd6')](_0x37eb('0xb6'))['add'](_0x29cd6d=>{_0x29cd6d['on'](_0x37eb('0xae'),(_0x288e6e,_0x2b2fbb,_0x3605d9)=>{const _0x30ce07=_0x3605d9[_0x37eb('0x2b')]['markerNameToElements'](_0x2b2fbb[_0x37eb('0x47')]);if(_0x30ce07)for(const _0xa3de6b of _0x30ce07)_0xa3de6b['getCustomProperty'](_0x37eb('0xb'))||(_0x3605d9['writer'][_0x37eb('0x128')]([_0x37eb('0xaf'),'ck-suggestion-marker-formatBlock',_0x37eb('0x64')],_0xa3de6b),_0x3605d9[_0x37eb('0x10d')]['removeAttribute']('data-suggestion',_0xa3de6b),_0x3605d9[_0x37eb('0x2b')][_0x37eb('0x9b')](_0xa3de6b,_0x2b2fbb[_0x37eb('0x47')]));},{'priority':_0x37eb('0x5d')});}),_0x17a325[_0x37eb('0xa')][_0x37eb('0x39')][_0x37eb('0x58')](_0x40a818=>{let _0x1d6bc1=!0x1;const _0xd515b=Array[_0x37eb('0xd5')](_0x17a325[_0x37eb('0xa')][_0x37eb('0x39')][_0x37eb('0x62')][_0x37eb('0x115')]()),_0x39971c=new Set();for(const {name:_0x24929b,data:_0x31c30f}of _0xd515b){const {group:_0x40eaee,type:_0x3459fd,id:_0x3058e1}=this[_0x37eb('0xba')](_0x24929b);if(_0x37eb('0xf5')!==_0x40eaee)continue;const _0x2e9141=this['_suggestions'][_0x37eb('0x59')](_0x3058e1);if(null!=_0x31c30f[_0x37eb('0x17')]){_0x37eb('0x140')==_0x3459fd&&(_0x1d6bc1=_0x1d6bc1||Mt(_0x31c30f['newRange'],_0x24929b,_0x40a818,_0x17a325[_0x37eb('0xa')][_0x37eb('0x66')]));if(_0x31c30f[_0x37eb('0x17')]['isCollapsed']||_0x37eb('0x8b')==_0x31c30f[_0x37eb('0x17')][_0x37eb('0xcc')][_0x37eb('0x3a')]||_0x37eb('0x2e')==_0x3459fd&&!Nt(_0x31c30f[_0x37eb('0x17')])||'deletion'==_0x3459fd&&!(!_t(_0x572c7f=_0x31c30f[_0x37eb('0x17')])&&!function(_0x1ba415){return _0x1ba415[_0x37eb('0xb1')][_0x37eb('0x48')]==_0x1ba415['end'][_0x37eb('0x124')]&&_0x1ba415[_0x37eb('0xb1')][_0x37eb('0x82')];}(_0x572c7f)))_0x40a818[_0x37eb('0x24')](_0x24929b),_0x1d6bc1=!0x0;else{if(!_0x2e9141||!_0x2e9141[_0x37eb('0x76')])continue;_0x39971c[_0x37eb('0xca')](_0x2e9141);}}}var _0x572c7f;return _0x39971c[_0x37eb('0x19')]>0x0&&(_0x1d6bc1=!!this[_0x37eb('0xf4')](_0x39971c)||_0x1d6bc1),_0x1d6bc1;}),_0x17a325[_0x37eb('0xa')][_0x37eb('0x39')]['registerPostFixer'](_0x3c1a13=>{let _0x282950=!0x1;for(const _0xcd4d5e of _0x17a325[_0x37eb('0xa')][_0x37eb('0x39')]['differ'][_0x37eb('0x63')]()){if('insert'!=_0xcd4d5e[_0x37eb('0x55')])continue;const _0x3647c1=_0xcd4d5e[_0x37eb('0x136')][_0x37eb('0x37')](_0xcd4d5e[_0x37eb('0x106')]);if(_0x3647c1[_0x37eb('0x82')])for(const _0xf468c of this['_suggestions'][_0x37eb('0x4')]()){if(_0xf468c['isMultiRange']||!_0xf468c[_0x37eb('0x76')])continue;if(_0x37eb('0x2e')!=_0xf468c['type'])continue;const _0x2a5110=_0xf468c[_0x37eb('0x9f')]();if(_0x2a5110[_0x37eb('0xb1')][_0x37eb('0x48')]!=_0x2a5110[_0x37eb('0x12d')][_0x37eb('0x48')]&&_0x2a5110[_0x37eb('0x12d')][_0x37eb('0x84')](_0xcd4d5e['position'])){const _0x47ec78=_0x17a325[_0x37eb('0xa')][_0x37eb('0xb4')](_0x2a5110['start'],_0x3647c1);_0x3c1a13['updateMarker'](_0xf468c['getFirstMarker'](),{'range':_0x47ec78}),_0x282950=!0x0;}}}return _0x282950;}),_0x17a325[_0x37eb('0xa')][_0x37eb('0x10e')]['on'](_0x37eb('0x14'),(_0x270054,_0x13758b,_0x504595)=>{if(null==_0x504595){const {id:_0x7881b9}=this[_0x37eb('0xba')](_0x13758b[_0x37eb('0x6c')]),_0x47c41e=this[_0x37eb('0x126')][_0x37eb('0x59')](_0x7881b9);_0x47c41e&&_0x47c41e[_0x37eb('0x3d')](_0x13758b[_0x37eb('0x6c')]);}}),_0x17a325[_0x37eb('0xa')][_0x37eb('0x39')]['on'](_0x37eb('0xc6'),()=>{const _0x3aac3c=Array['from'](_0x17a325[_0x37eb('0xa')][_0x37eb('0x39')][_0x37eb('0x62')]['getChangedMarkers']())[_0x37eb('0x94')](_0x50ecc0=>_0x37eb('0xf5')===this['_splitMarkerName'](_0x50ecc0[_0x37eb('0x6c')])[_0x37eb('0xe6')]);if(0x0===_0x3aac3c[_0x37eb('0x106')])return;_0x3aac3c[_0x37eb('0x16')]((_0x519b97,_0x2057cc)=>{const _0x153f56=_0x519b97['data'][_0x37eb('0xa7')],_0x2faae8=_0x2057cc[_0x37eb('0xb5')][_0x37eb('0xa7')];return null===_0x153f56&&null===_0x2faae8?0x0:null===_0x153f56&&null!==_0x2faae8?-0x1:null!==_0x153f56&&null===_0x2faae8?0x1:_0x153f56[_0x37eb('0xb1')][_0x37eb('0xfe')](_0x2faae8[_0x37eb('0xb1')])?-0x1:0x1;});const _0x2b1845=new Set(),_0x2148e5=new Set();for(const {name:_0x250cf6,data:_0x5c12c2}of _0x3aac3c){const {id:_0xaecfdb}=this[_0x37eb('0xba')](_0x250cf6);if(null===_0x5c12c2[_0x37eb('0xa7')]){const _0x2e187f=this['_handleNewSuggestionMarker'](_0x250cf6);_0x2148e5[_0x37eb('0xca')](_0x2e187f);}else{const _0x64cc8e=this[_0x37eb('0x126')][_0x37eb('0x59')](_0xaecfdb);null!==_0x5c12c2[_0x37eb('0x17')]||_0x64cc8e[_0x37eb('0x76')]?(_0x2b1845[_0x37eb('0xca')](_0x64cc8e[_0x37eb('0xcd')]),_0x2148e5[_0x37eb('0xca')](_0x64cc8e)):this[_0x37eb('0x11b')](_0x64cc8e);}}_0x2148e5[_0x37eb('0x19')]>0x0&&this[_0x37eb('0x117')](_0x2148e5);for(const _0x1052eb of _0x2b1845)this[_0x37eb('0x9')]('suggestionChanged',_0x1052eb);}),_0x17a325[_0x37eb('0xa')]['on'](_0x37eb('0xf6'),(_0x243551,_0x4802b5)=>{const _0x1d2ec1=_0x4802b5[0x0];if(!this[_0x37eb('0x126')][_0x37eb('0x19')])return;if(!_0x1d2ec1[_0x37eb('0xec')])return;if(_0x1d2ec1[_0x37eb('0x35')]['isUndo']||!_0x1d2ec1[_0x37eb('0x35')]['isLocal'])return;let _0xb9b560,_0xd950c4;switch(_0x1d2ec1[_0x37eb('0x55')]){case'insert':_0xb9b560=_0x17a325['model'][_0x37eb('0x13e')](_0x1d2ec1[_0x37eb('0x136')]),_0xd950c4=_0xb9b560[_0x37eb('0x37')](_0x1d2ec1[_0x37eb('0x11a')]);break;case _0x37eb('0x56'):_0xb9b560=_0x17a325[_0x37eb('0xa')][_0x37eb('0x13e')](_0x1d2ec1[_0x37eb('0x8')]),_0xd950c4=_0x17a325[_0x37eb('0xa')][_0x37eb('0x13e')](_0x1d2ec1[_0x37eb('0xa1')]);break;case _0x37eb('0xda'):_0xb9b560=_0x17a325[_0x37eb('0xa')][_0x37eb('0x13e')](_0x1d2ec1[_0x37eb('0xdf')]),_0xd950c4=_0xb9b560[_0x37eb('0x37')](_0x1d2ec1[_0x37eb('0x11a')]);break;default:return;}const _0x4c36d7=_0x17a325[_0x37eb('0xa')][_0x37eb('0xb4')](_0xb9b560,_0xd950c4);_0x17a325[_0x37eb('0xa')][_0x37eb('0xc3')](()=>{for(const {suggestion:_0xb67a22,meta:_0x4c2155}of this['_findSuggestions'](_0x4c36d7)){if(_0xb67a22[_0x37eb('0xc7')])continue;if('formatInline'==_0xb67a22[_0x37eb('0x55')])continue;const _0xe0427d=_0xb67a22[_0x37eb('0xb5')]&&_0xb67a22[_0x37eb('0xb5')][_0x37eb('0x1f')];(_0x37eb('0x2e')!=_0xb67a22[_0x37eb('0x55')]||_0x37eb('0x56')==_0x1d2ec1[_0x37eb('0x55')]&&!_0xe0427d)&&(_0x4c2155['containsRangeInObject']||_0x37eb('0xbe')==_0xb67a22[_0x37eb('0x55')]&&_0x4c2155[_0x37eb('0x90')]||_0xb67a22[_0x37eb('0x9f')]()[_0x37eb('0x139')](_0x4c36d7)&&this[_0x37eb('0x12b')](_0xb67a22,_0xb9b560,_0xd950c4));}});},{'priority':'lowest'}),_0x17a325['model']['on'](_0x37eb('0x79'),(_0x5b216f,_0x1a970d)=>{const _0x217ae8=_0x1a970d[0x0],_0xcb036e=_0x1a970d[0x1];if(_0xcb036e&&_0xcb036e['forceDefaultExecution'])return;if(this[_0x37eb('0x11')])return;if(!this[_0x37eb('0x13b')][_0x37eb('0xe7')])return;if(_0x217ae8[_0x37eb('0x0')])return;const _0x1dc3ff=_0x17a325[_0x37eb('0xa')][_0x37eb('0x66')],{start:_0x1b085c,end:_0x3965bb}=_0x217ae8['getFirstRange'](),_0x47f9fa=_0x1b085c[_0x37eb('0x1')]&&_0x1dc3ff['isLimit'](_0x1b085c[_0x37eb('0x1')])?null:_0x1dc3ff[_0x37eb('0xb2')](_0x1b085c,'forward'),_0x40cb45=_0x3965bb[_0x37eb('0x124')]&&_0x1dc3ff[_0x37eb('0x88')](_0x3965bb['nodeBefore'])?null:_0x1dc3ff[_0x37eb('0xb2')](_0x3965bb,_0x37eb('0xd4')),_0x219f78=_0x17a325[_0x37eb('0xa')][_0x37eb('0xb4')](_0x47f9fa?_0x47f9fa['start']:_0x1b085c,_0x40cb45?_0x40cb45['end']:_0x3965bb);_0x17a325[_0x37eb('0xa')][_0x37eb('0xc3')](_0x2b3f54=>{this['markDeletion'](_0x219f78);const _0x6d3bf=_0x17a325[_0x37eb('0xa')][_0x37eb('0x66')][_0x37eb('0xb2')](_0x219f78[_0x37eb('0xb1')]);_0x217ae8['is'](_0x37eb('0x1d'))?_0x2b3f54[_0x37eb('0xc4')](_0x6d3bf):_0x217ae8['setTo'](_0x6d3bf);}),_0x5b216f['stop']();},{'priority':_0x41825d[_0x37eb('0xbd')]+0xa}),_0x17a325[_0x37eb('0xa')]['on'](_0x37eb('0x5b'),(_0x10b962,_0x4b1f1d)=>{const _0x315393=_0x4b1f1d[_0x4b1f1d[_0x37eb('0x106')]-0x1];_0x315393&&_0x315393[_0x37eb('0xcb')]||this[_0x37eb('0x11')]||this[_0x37eb('0x13b')][_0x37eb('0xe7')]&&(_0x17a325[_0x37eb('0xa')]['change'](()=>{let _0x14d794=_0x17a325[_0x37eb('0xa')][_0x37eb('0x5b')](_0x4b1f1d[0x0],_0x4b1f1d[0x1],_0x4b1f1d[0x2],{'forceDefaultExecution':!0x0});if(!_0x14d794)return;_0x10b962['return']=_0x14d794[_0x37eb('0x119')]();const _0x2c04bd=_0x14d794[_0x37eb('0x12d')][_0x37eb('0x124')],_0x49696c=_0x17a325[_0x37eb('0xa')]['schema'];_0x2c04bd&&_0x49696c[_0x37eb('0x138')](_0x2c04bd)&&!_0x49696c['isObject'](_0x2c04bd)&&(_0x14d794=_0x17a325[_0x37eb('0xa')][_0x37eb('0xb4')](_0x14d794[_0x37eb('0xb1')],_0x17a325[_0x37eb('0xa')][_0x37eb('0x13e')](_0x2c04bd,_0x37eb('0x12d')))),this[_0x37eb('0x21')](_0x14d794);}),_0x10b962[_0x37eb('0xa6')]());},{'priority':_0x37eb('0x5d')}),this[_0x37eb('0x31')][_0x37eb('0x38')][_0x37eb('0xca')]('trackChanges',this[_0x37eb('0x13b')]),this[_0x37eb('0x34')](_0x37eb('0x3e'));const _0x45ecae=new _0x271455(_0x17a325,this[_0x37eb('0x126')]);_0x17a325[_0x37eb('0x38')][_0x37eb('0xca')]('acceptSuggestion',_0x45ecae),this[_0x37eb('0x34')](_0x37eb('0x20'));const _0x25a293=new _0x1e70cd(_0x17a325,this[_0x37eb('0x126')]);_0x17a325['commands'][_0x37eb('0xca')]('discardSuggestion',_0x25a293),this[_0x37eb('0x34')](_0x37eb('0x10c')),_0x17a325['commands'][_0x37eb('0xca')](_0x37eb('0x4f'),new _0x4d89c9(_0x17a325,_0x45ecae,this[_0x37eb('0x126')])),this['enableCommand'](_0x37eb('0x4f')),_0x17a325[_0x37eb('0x38')][_0x37eb('0xca')]('discardAllSuggestions',new _0x4d89c9(_0x17a325,_0x25a293,this[_0x37eb('0x126')])),this[_0x37eb('0x34')](_0x37eb('0x11c')),_0x17a325[_0x37eb('0x38')]['add']('acceptSelectedSuggestions',new _0x2136f0(_0x17a325,_0x45ecae,this[_0x37eb('0x126')])),this['enableCommand'](_0x37eb('0xc9')),_0x17a325[_0x37eb('0x38')][_0x37eb('0xca')](_0x37eb('0xb3'),new _0x2136f0(_0x17a325,_0x25a293,this['_suggestions'])),this[_0x37eb('0x34')]('discardSelectedSuggestions');const _0x28cebf=_0x17a325[_0x37eb('0xf0')][_0x37eb('0x59')](_0x37eb('0x93'));this[_0x37eb('0xe4')](_0x28cebf,_0x37eb('0x5a'),(_0x531af5,{threadId:_0x4ab21d})=>{const _0x2b1cf=this[_0x37eb('0x126')][_0x37eb('0x59')](_0x4ab21d);_0x2b1cf&&_0x2b1cf[_0x37eb('0x11f')]&&0x1===_0x2b1cf[_0x37eb('0x11f')][_0x37eb('0x106')]&&this[_0x37eb('0xfa')](_0x4ab21d,{'hasComments':!0x0});},{'priority':'low'}),this[_0x37eb('0xe4')](_0x28cebf,'removeComment',(_0x1a4b79,{threadId:_0x2d4f2b})=>{const _0x6b427a=this['_suggestions'][_0x37eb('0x59')](_0x2d4f2b);_0x6b427a&&_0x6b427a[_0x37eb('0x11f')]&&!_0x6b427a[_0x37eb('0x11f')][_0x37eb('0x106')]&&this['_updateSuggestionData'](_0x2d4f2b,{'hasComments':!0x1});},{'priority':_0x37eb('0xd7')});}set[_0x37eb('0x8e')](_0x4ad865){if(this[_0x37eb('0x109')])throw new _0x1805df(_0x37eb('0xac'),this);this[_0x37eb('0x109')]=_0x4ad865;}get[_0x37eb('0x8e')](){return this[_0x37eb('0x109')];}[_0x37eb('0x9e')]({skipNotAttached:_0x1317b9=!0x1,toJSON:_0x171f88=!0x1}={}){const _0x113fb3=[];for(const _0x4f83b8 of this[_0x37eb('0x126')]['values']())_0x1317b9&&!_0x4f83b8[_0x37eb('0x76')]||_0x113fb3[_0x37eb('0x43')](_0x4f83b8);return _0x171f88?_0x113fb3[_0x37eb('0x77')](_0x37dd7b=>_0x37dd7b[_0x37eb('0x9a')]()):_0x113fb3;}[_0x37eb('0x98')](_0x57675c){const _0xcf00c4=this[_0x37eb('0x126')][_0x37eb('0x59')](_0x57675c);if(!_0xcf00c4)throw new _0x1805df(_0x37eb('0xcf'),this);return _0xcf00c4;}[_0x37eb('0x83')](_0x3c3e13){return this[_0x37eb('0x126')][_0x37eb('0x65')](_0x3c3e13);}[_0x37eb('0xde')](_0x51aa81){const {authorId:_0xbbd4b0,id:_0x1bfcd5,attributes:_0x157f77}=_0x51aa81,[_0xe5f044,_0x13f72b]=_0x51aa81['type']['split'](':'),_0x537cdf=this[_0x37eb('0x126')][_0x37eb('0x59')](_0x1bfcd5)||this[_0x37eb('0x51')](_0xe5f044,_0x13f72b,_0x1bfcd5,_0xbbd4b0,_0x157f77);if(this[_0x37eb('0x102')](_0x537cdf),this[_0x37eb('0x6d')](_0x537cdf,_0xe5f044,_0x13f72b||null,_0xbbd4b0),_0x537cdf[_0x37eb('0x7e')]=_0x51aa81[_0x37eb('0x7e')],_0x537cdf[_0x37eb('0x8c')]=!0x0,_0x157f77&&_0x157f77[_0x37eb('0xdb')]){const _0x4a37a6=_0x157f77[_0x37eb('0xdb')],_0x17b07c=this[_0x37eb('0x1b')](_0x4a37a6['authorName']);_0x537cdf[_0x37eb('0xa3')]=_0x4a37a6[_0x37eb('0x7e')],_0x537cdf[_0x37eb('0x72')]=_0x17b07c,_0x537cdf[_0x37eb('0xc8')]=!0x0;}else _0x537cdf[_0x37eb('0xa3')]=_0x51aa81[_0x37eb('0x7e')];switch(_0x51aa81['data']&&(_0x537cdf[_0x37eb('0xb5')]=_0x51aa81[_0x37eb('0xb5')]),_0x51aa81['attributes']&&(_0x537cdf[_0x37eb('0x141')]=_0x51aa81[_0x37eb('0x141')]),this[_0x37eb('0x109')]&&this[_0x37eb('0x109')][_0x37eb('0xb8')]||(_0x537cdf[_0x37eb('0xe1')]=!0x0),this['_suggestionState'][_0x37eb('0x59')](_0x537cdf)){case _0x37eb('0x13'):this[_0x37eb('0xe9')][_0x37eb('0x7c')](_0x537cdf,_0x37eb('0x26'));break;case _0x37eb('0x137'):_0x537cdf[_0x37eb('0x76')]?(this[_0x37eb('0x117')](new Set([_0x537cdf])),this['_joinWithAdjacentSuggestions'](new Set([_0x537cdf])),this[_0x37eb('0xe9')][_0x37eb('0x7c')](_0x537cdf,'ready'),this['fire'](_0x37eb('0x86'),_0x537cdf)):this[_0x37eb('0xe9')][_0x37eb('0x7c')](_0x537cdf,'removed');}return _0x537cdf;}[_0x37eb('0x20')](_0x58eb8f){this[_0x37eb('0xcb')](()=>{this['editor'][_0x37eb('0xa')]['change'](()=>{for(const _0x27b13f of _0x58eb8f['getAllAdjacentSuggestions']())_0x27b13f[_0x37eb('0x105')]();});});}['discardSuggestion'](_0x32b608){this[_0x37eb('0xcb')](()=>{this[_0x37eb('0x31')]['model'][_0x37eb('0xc3')](()=>{for(const _0x7e2c89 of _0x32b608[_0x37eb('0x13d')]())_0x7e2c89[_0x37eb('0x113')]();});});}['enableCommand'](_0xb879fc,_0x2b8f99){const _0x5b2c17=this[_0x37eb('0x31')]['commands'][_0x37eb('0x59')](_0xb879fc);if(!_0x5b2c17)throw new _0x1805df('track-changes-command-not-found',this,{'commandName':_0xb879fc});this[_0x37eb('0x4c')][_0x37eb('0xca')](_0x5b2c17),_0x2b8f99&&_0x5b2c17['on']('execute',(_0x269690,_0x4e59b2)=>{this[_0x37eb('0x13b')]['value']&&(this[_0x37eb('0x11')]||_0x4e59b2[_0x37eb('0x106')]>0x0&&_0x4e59b2[_0x4e59b2[_0x37eb('0x106')]-0x1]&&_0x4e59b2[_0x4e59b2[_0x37eb('0x106')]-0x1]['forceDefaultExecution']||(_0x2b8f99((..._0xf6e156)=>_0x5b2c17[_0x37eb('0x92')](..._0xf6e156,{'forceDefaultExecution':!0x0}),..._0x4e59b2),_0x269690[_0x37eb('0xa6')]()));},{'priority':_0x37eb('0x5d')});}[_0x37eb('0xcb')](_0x8b769){let _0x2bcc06,_0x2bf87d;const _0x402161=this[_0x37eb('0x11')];this[_0x37eb('0x11')]=!0x0;try{_0x2bcc06=_0x8b769();}catch(_0x48b92d){_0x2bf87d=_0x48b92d;}return _0x402161||(this[_0x37eb('0x11')]=!0x1),_0x2bf87d&&_0x1805df[_0x37eb('0x6b')](_0x2bf87d,this),_0x2bcc06;}[_0x37eb('0x21')](_0x8d9e07,_0x28f0b6=null,_0xeb2229={}){if(_0x8d9e07[_0x37eb('0x0')])return null;const _0x886fd9=this[_0x37eb('0x31')]['plugins'][_0x37eb('0x59')](_0x37eb('0x5c'))['me'];for(const {suggestion:_0x5ca57c,meta:_0x2f80d8}of this[_0x37eb('0x25')](_0x8d9e07,_0x37eb('0xbe')))if(_0x2f80d8['isOwn']){if(!_0x2f80d8[_0x37eb('0x130')]){if(_0x2f80d8[_0x37eb('0x70')]){if(!this['_mergeNestedSuggestions']||!Ut(_0x5ca57c,_0xeb2229))continue;return _0x5ca57c;}if(Ut(_0x5ca57c,_0xeb2229))return _0x5ca57c;this['_breakSuggestionMarker'](_0x5ca57c,_0x8d9e07[_0x37eb('0xb1')],_0x8d9e07['end']);break;}if(_0x28f0b6==_0x5ca57c[_0x37eb('0x74')]&&Ut(_0x5ca57c,_0xeb2229)){const _0x402fd8=_0x5ca57c[_0x37eb('0x9f')]();return _0x402fd8[_0x37eb('0xb1')][_0x37eb('0x84')](_0x8d9e07['end'])?this[_0x37eb('0xf9')](_0x5ca57c,this[_0x37eb('0x4d')][_0x37eb('0xb4')](_0x8d9e07[_0x37eb('0xb1')],_0x402fd8[_0x37eb('0x12d')])):this[_0x37eb('0xf9')](_0x5ca57c,this[_0x37eb('0x4d')][_0x37eb('0xb4')](_0x402fd8[_0x37eb('0xb1')],_0x8d9e07['end'])),_0x5ca57c;}}const _0x960f6b=_0x1f3984(),_0x19776f=_0x886fd9['id'],_0xc575d1=_0x28f0b6?_0x37eb('0x8a')+_0x28f0b6:_0x37eb('0xbe'),_0x206485=this[_0x37eb('0xef')]({'id':_0x960f6b,'type':_0xc575d1,'createdAt':new Date(),'authorId':_0x19776f,'attributes':_0xeb2229});return this[_0x37eb('0x27')](_0xc575d1,_0x960f6b,_0x19776f,_0x8d9e07),_0x206485;}[_0x37eb('0x45')](_0x742120,_0x28f95c=_0x37eb('0x1c'),_0x4d9185={}){const _0x5a0df7=this[_0x37eb('0x31')]['plugins']['get'](_0x37eb('0x5c'))['me'],_0x24c7b9=this['_suggestionFactory'][_0x37eb('0xbf')](_0x37eb('0xbe'),_0x28f95c,_0x37eb('0xe0'));for(const _0x3593c7 of this[_0x37eb('0x9e')]())if(_0x3593c7[_0x37eb('0x72')]['id']==_0x5a0df7['id']&&_0x37eb('0xbe')==_0x3593c7[_0x37eb('0x55')]&&_0x3593c7[_0x37eb('0x74')]==_0x28f95c&&Ut(_0x3593c7,_0x4d9185)&&(_0x24c7b9(_0x3593c7['getRanges'](),_0x742120)||_0x24c7b9(_0x742120,_0x3593c7[_0x37eb('0x91')]()))){for(const _0x4b6b3b of _0x742120)_0x3593c7['addRange'](_0x4b6b3b);return _0x3593c7;}for(const {suggestion:_0x5179a7,meta:_0x4a8008}of this[_0x37eb('0x25')](_0x742120,_0x37eb('0xbe'))){if(!_0x4a8008[_0x37eb('0x90')])continue;if(!this[_0x37eb('0x5')]&&_0x4a8008[_0x37eb('0x70')])continue;if(!Ut(_0x5179a7,_0x4d9185))continue;let _0x328664=!0x0;for(const _0x50e94b of _0x5179a7[_0x37eb('0x91')]())for(const _0x17da46 of _0x742120)if(!_0x50e94b[_0x37eb('0x139')](_0x17da46)){_0x328664=!0x1;break;}if(_0x328664)return _0x5179a7;}const _0x324cb8=_0x1f3984(),_0xa262fa=_0x5a0df7['id'],_0x5787c1='insertion:'+_0x28f95c,_0x3cf993=this[_0x37eb('0xef')]({'id':_0x324cb8,'type':_0x5787c1,'createdAt':new Date(),'authorId':_0xa262fa,'attributes':_0x4d9185});for(const _0x2db58d of _0x742120)this[_0x37eb('0x27')](_0x5787c1,_0x324cb8,_0xa262fa,_0x2db58d,_0x5d4473['getMultiRangeId']());return _0x3cf993;}['markInlineFormat'](_0x1e8e04,_0x13b059,_0x4fd7bf=null,_0x3ec041={}){if(_0x4fd7bf=_0x4fd7bf||$t(_0x13b059),_0x1e8e04[_0x37eb('0x0')])return null;if('never'===this[_0x37eb('0x71')]){const _0x345de0=this[_0x37eb('0xc')][_0x37eb('0xbf')](_0x37eb('0x140'),_0x4fd7bf,_0x37eb('0x105'));return this[_0x37eb('0xcb')](()=>_0x345de0([_0x1e8e04],_0x13b059,_0x3ec041)),null;}const _0x452ef4=this[_0x37eb('0x31')]['plugins'][_0x37eb('0x59')](_0x37eb('0x5c'))['me'],_0x50647d=[];if(_0x37eb('0xfc')!==this[_0x37eb('0x71')])for(const {suggestion:_0x17f0b1,meta:_0x4fbe14}of this['_findSuggestions'](_0x1e8e04,_0x37eb('0xbe')))_0x4fbe14[_0x37eb('0x90')]&&!_0x4fbe14[_0x37eb('0x73')]&&_0x50647d[_0x37eb('0x43')](..._0x17f0b1[_0x37eb('0x91')]());const _0x23d1d1=function(_0x2f4638,_0xea2553){const _0x14210f=[];for(const _0x1737d4 of _0xea2553){const _0x30fc43=_0x2f4638[_0x37eb('0x12')](_0x1737d4);_0x30fc43&&_0x14210f[_0x37eb('0x43')](_0x30fc43);}return _0x14210f;}(_0x1e8e04,_0x50647d),_0x576659=function(_0x436301,_0x3fa964){const _0x4a3309=[_0x436301];for(const _0x1738e2 of _0x3fa964){let _0x19eeb4=0x0;for(;_0x19eeb4<_0x4a3309[_0x37eb('0x106')];){const _0x45a873=_0x4a3309[_0x19eeb4][_0x37eb('0x8f')](_0x1738e2);_0x4a3309[_0x37eb('0xce')](_0x19eeb4,0x1,..._0x45a873),_0x19eeb4+=_0x45a873[_0x37eb('0x106')];}}return _0x4a3309;}(_0x1e8e04,_0x50647d);_0x23d1d1[_0x37eb('0x106')]&&this[_0x37eb('0x4d')]['change'](()=>{for(const _0x2a1e05 of _0x23d1d1){const _0x4c4b3e=this[_0x37eb('0xc')][_0x37eb('0xbf')](_0x37eb('0x140'),_0x4fd7bf,_0x37eb('0x105'));this[_0x37eb('0xcb')](()=>_0x4c4b3e([_0x2a1e05],_0x13b059,_0x3ec041));}});for(const _0xb50970 of _0x576659){let _0x3de6c0=null,_0xad713d=_0xb50970['start'],_0x370d14=_0xb50970[_0x37eb('0x12d')];for(const {suggestion:_0x28e888,meta:_0x25ecaa}of this['_findSuggestions'](_0xb50970,'formatInline')){if(!_0x25ecaa[_0x37eb('0x90')])continue;if(_0x28e888[_0x37eb('0x74')]!=_0x4fd7bf)continue;if(!Ut(_0x28e888,_0x3ec041))continue;const _0x361d97=_0x28e888['getFirstRange']();if(_0x361d97[_0x37eb('0x139')](_0xb50970,!0x0))return null;_0xad713d=_0xad713d[_0x37eb('0xfe')](_0x361d97[_0x37eb('0xb1')])?_0xad713d:_0x361d97[_0x37eb('0xb1')],_0x370d14=_0x370d14['isAfter'](_0x361d97[_0x37eb('0x12d')])?_0x370d14:_0x361d97[_0x37eb('0x12d')],_0x3de6c0?_0x361d97[_0x37eb('0xb1')][_0x37eb('0xfe')](_0x3de6c0[_0x37eb('0x9f')]()[_0x37eb('0xb1')])?(_0x3de6c0['removeMarkers'](),_0x3de6c0=_0x28e888):_0x28e888['removeMarkers']():_0x3de6c0=_0x28e888;}const _0x244ae5=this[_0x37eb('0x4d')][_0x37eb('0xb4')](_0xad713d,_0x370d14);if(_0x3de6c0)this[_0x37eb('0xf9')](_0x3de6c0,_0x244ae5);else{const _0x1b9564=_0x1f3984(),_0x63776c=_0x452ef4['id'];this[_0x37eb('0xef')]({'id':_0x1b9564,'type':_0x37eb('0x30')+_0x4fd7bf,'data':_0x13b059,'createdAt':new Date(),'authorId':_0x63776c,'attributes':_0x3ec041}),this[_0x37eb('0x27')]('formatInline:'+_0x4fd7bf,_0x1b9564,_0x63776c,_0x244ae5);}}return null;}['markBlockFormat'](_0x199e10,_0x9fd613,_0x122fc5=[],_0x28c1f7=null,_0x1b86c6={}){_0x9fd613[_0x37eb('0xbc')]||(_0x9fd613[_0x37eb('0xbc')]=_0x9fd613[_0x37eb('0xab')]),_0x9fd613[_0x37eb('0x1f')]=_0x199e10['is'](_0x37eb('0x28')),_0x28c1f7=_0x28c1f7||$t(_0x9fd613);const _0x559ef4=_0x122fc5['map'](_0xd41875=>Rt(_0xd41875,this[_0x37eb('0x4d')])),_0x3e284e=_0x199e10['is'](_0x37eb('0x28'))?_0x199e10:Rt(_0x199e10,this[_0x37eb('0x4d')]);if(_0x37eb('0x11e')===this[_0x37eb('0x71')]){const _0x29c63f=this['_suggestionFactory']['getSuggestionCallback'](_0x37eb('0x2e'),_0x28c1f7,_0x37eb('0x105'));return this[_0x37eb('0xcb')](()=>_0x29c63f([_0x3e284e],_0x9fd613,_0x1b86c6)),null;}_0x559ef4[_0x37eb('0x43')](_0x3e284e);let _0x1f3e4d=!0x0;for(const _0x16743a of _0x559ef4)if(!this[_0x37eb('0x104')](_0x16743a)){_0x1f3e4d=!0x1;break;}if(_0x1f3e4d&&_0x37eb('0xfc')!==this['_trackFormatChanges']){const _0x5757ea=this[_0x37eb('0xc')]['getSuggestionCallback'](_0x37eb('0x2e'),_0x28c1f7,_0x37eb('0x105'));return this[_0x37eb('0xcb')](()=>_0x5757ea([_0x3e284e],_0x9fd613,_0x1b86c6)),null;}let _0x23b98b=null,_0x769b5f=_0x3e284e[_0x37eb('0xb1')],_0x44716c=_0x3e284e['end'];for(const {suggestion:_0x8356f8,meta:_0x3e7afe}of this['_findSuggestions'](_0x3e284e,_0x37eb('0x2e'))){if(!_0x3e7afe[_0x37eb('0x90')])continue;if(_0x3e7afe[_0x37eb('0x130')]||_0x3e7afe[_0x37eb('0x70')]||_0x3e7afe[_0x37eb('0x73')])continue;if(_0x8356f8[_0x37eb('0xb5')][_0x37eb('0xbc')]!=_0x9fd613['formatGroupId'])continue;if(!Ut(_0x8356f8,_0x1b86c6))continue;const _0x4b4716=_0x8356f8[_0x37eb('0x9f')]();if(_0x8356f8[_0x37eb('0x74')]==_0x28c1f7){if(_0x4b4716['containsRange'](_0x3e284e,!0x0))return null;_0x769b5f=_0x769b5f[_0x37eb('0xfe')](_0x4b4716['start'])?_0x769b5f:_0x4b4716[_0x37eb('0xb1')],_0x44716c=_0x44716c[_0x37eb('0xa2')](_0x4b4716['end'])?_0x44716c:_0x4b4716[_0x37eb('0x12d')],_0x23b98b?_0x4b4716['start']['isBefore'](_0x23b98b[_0x37eb('0x9f')]()[_0x37eb('0xb1')])?(_0x23b98b[_0x37eb('0x80')](),_0x23b98b=_0x8356f8):_0x8356f8[_0x37eb('0x80')]():_0x23b98b=_0x8356f8;}else{const _0x52af46=_0x3e284e[_0x37eb('0x12')](_0x4b4716);this[_0x37eb('0x6e')](_0x8356f8,_0x52af46);}}const _0x15324f=this['editor']['plugins']['get'](_0x37eb('0x5c'))['me'],_0x12f38a=_0x1f3984(),_0x3b9283=_0x15324f['id'];if(_0x23b98b)return this['_setSuggestionRange'](_0x23b98b,this[_0x37eb('0x4d')][_0x37eb('0xb4')](_0x769b5f,_0x44716c)),_0x23b98b;{const _0x4ac464=this[_0x37eb('0xef')]({'id':_0x12f38a,'type':_0x37eb('0x3c')+_0x28c1f7,'data':_0x9fd613,'createdAt':new Date(),'authorId':_0x3b9283,'attributes':_0x1b86c6});return this['_addSuggestionMarker']('formatBlock:'+_0x28c1f7,_0x12f38a,_0x3b9283,this[_0x37eb('0x4d')][_0x37eb('0xb4')](_0x769b5f,_0x44716c)),_0x4ac464;}}['markMultiRangeBlockFormat'](_0x3894a0,_0x4b1ed6,_0x39305d=[],_0x55ebba=null,_0x720bbd={}){_0x4b1ed6[_0x37eb('0xbc')]||(_0x4b1ed6['formatGroupId']=_0x4b1ed6['commandName']);const _0x5d5ff3=_0x3894a0[0x0];_0x4b1ed6[_0x37eb('0x1f')]=_0x5d5ff3['is'](_0x37eb('0x28')),_0x55ebba=_0x55ebba||$t(_0x4b1ed6);const _0x46d1fe=_0x39305d['map'](_0x1daff3=>Rt(_0x1daff3,this['_model'])),_0xf985c9=_0x5d5ff3['is'](_0x37eb('0x28'))?_0x3894a0:_0x3894a0[_0x37eb('0x77')](_0x3503c7=>Rt(_0x3503c7,this[_0x37eb('0x4d')]));if(_0x37eb('0x11e')===this[_0x37eb('0x71')]){const _0x5f4407=this['_suggestionFactory'][_0x37eb('0xbf')](_0x37eb('0x2e'),_0x55ebba,_0x37eb('0x105'));return this[_0x37eb('0xcb')](()=>_0x5f4407(_0xf985c9,_0x4b1ed6,_0x720bbd)),null;}_0x46d1fe[_0x37eb('0x43')](..._0xf985c9);let _0x5dfac7=!0x0;for(const _0x2e5f8a of _0x46d1fe)if(!this[_0x37eb('0x104')](_0x2e5f8a)){_0x5dfac7=!0x1;break;}if(_0x5dfac7&&_0x37eb('0xfc')!==this[_0x37eb('0x71')]){const _0x5e6abf=this[_0x37eb('0xc')][_0x37eb('0xbf')]('formatBlock',_0x55ebba,'accept');return this['forceDefaultExecution'](()=>_0x5e6abf(_0xf985c9,_0x4b1ed6,_0x720bbd)),null;}const _0x764e1c=this[_0x37eb('0x31')][_0x37eb('0xf0')]['get'](_0x37eb('0x5c'))['me'];for(const _0x441b72 of this['getSuggestions']()){if(_0x441b72[_0x37eb('0x72')]['id']!=_0x764e1c['id'])continue;if(_0x37eb('0x2e')!=_0x441b72[_0x37eb('0x55')]||_0x441b72[_0x37eb('0xb5')][_0x37eb('0xbc')]!=_0x4b1ed6[_0x37eb('0xbc')])continue;if(!Ut(_0x441b72,_0x720bbd))continue;const _0x1c049b=_0x441b72[_0x37eb('0x74')]==_0x55ebba;for(let _0x2a600a=0x0;_0x2a600a<_0xf985c9[_0x37eb('0x106')];_0x2a600a++){const _0x2a8256=_0xf985c9[_0x2a600a];for(const _0x4a6e09 of _0x441b72[_0x37eb('0x127')]()){const _0x637473=_0x4a6e09[_0x37eb('0x110')]();if(_0x2a8256['isEqual'](_0x637473)){_0x1c049b?(_0xf985c9[_0x37eb('0xce')](_0x2a600a,0x1),_0x2a600a--):_0x441b72[_0x37eb('0x24')](_0x4a6e09[_0x37eb('0x6c')]);break;}}}}if(0x0==_0xf985c9[_0x37eb('0x106')])return null;const _0x438313=this[_0x37eb('0xc')][_0x37eb('0xbf')](_0x37eb('0x2e'),_0x55ebba,_0x37eb('0xe0'));for(const _0x15c04f of this[_0x37eb('0x9e')]())if(_0x15c04f[_0x37eb('0x72')]['id']==_0x764e1c['id']&&_0x37eb('0x2e')==_0x15c04f[_0x37eb('0x55')]&&_0x15c04f['data'][_0x37eb('0xbc')]==_0x4b1ed6[_0x37eb('0xbc')]&&_0x15c04f[_0x37eb('0x74')]==_0x55ebba&&Ut(_0x15c04f,_0x720bbd)&&(_0x438313(_0x15c04f['getRanges'](),_0xf985c9)||_0x438313(_0xf985c9,_0x15c04f[_0x37eb('0x91')]()))){for(const _0x3b217f of _0xf985c9)_0x15c04f['addRange'](_0x3b217f);return _0x15c04f;}const _0x225e4a=_0x1f3984(),_0x3584da=_0x764e1c['id'],_0x901105='formatBlock:'+_0x55ebba,_0x10e67e=this[_0x37eb('0xef')]({'id':_0x225e4a,'type':_0x901105,'data':_0x4b1ed6,'createdAt':new Date(),'authorId':_0x3584da,'attributes':_0x720bbd});for(const _0x2ab6fd of _0xf985c9)this['_addSuggestionMarker'](_0x901105,_0x225e4a,_0x3584da,_0x2ab6fd,_0x5d4473[_0x37eb('0x57')]());return _0x10e67e;}['markDeletion'](_0x4c2ce5,_0x492b4c=null,_0x783609={}){if(_0x4c2ce5[_0x37eb('0x0')])return null;const _0x1943b2=this[_0x37eb('0x31')][_0x37eb('0xf0')][_0x37eb('0x59')](_0x37eb('0x5c'))['me'],_0x380c6f=new _0x4586a9(_0x4c2ce5[_0x37eb('0xb1')],_0x4c2ce5[_0x37eb('0x12d')]);for(const {suggestion:_0x4149ff,meta:_0x135143}of this['_findSuggestions'](_0x380c6f,_0x37eb('0xbe')))if(_0x135143[_0x37eb('0x90')]&&!_0x135143[_0x37eb('0x130')]){if(_0x4149ff[_0x37eb('0xc7')]){const _0x38ee95=_0x4149ff[_0x37eb('0x91')]()[_0x37eb('0x94')](_0x246cb8=>_0x37eb('0x8b')!=_0x246cb8[_0x37eb('0xcc')][_0x37eb('0x3a')]);_0x38ee95['every'](_0x3d7302=>_0x380c6f[_0x37eb('0x139')](_0x3d7302,!0x0))&&_0x4149ff[_0x37eb('0x113')]();if(_0x38ee95[_0x37eb('0x18')](_0x362ff2=>_0x362ff2[_0x37eb('0x139')](_0x380c6f,!0x0))){const _0x9c2fad=this[_0x37eb('0xc')][_0x37eb('0xbf')](_0x37eb('0x112'),_0x492b4c,_0x37eb('0x105'));return this[_0x37eb('0xcb')](()=>_0x9c2fad([_0x380c6f],null,_0x783609)),null;}}else{const _0x50c07b=_0x380c6f[_0x37eb('0x12')](_0x4149ff['getFirstRange']());null!==_0x50c07b&&_0x4149ff[_0x37eb('0xf1')]([_0x50c07b],null,_0x783609);}}if(_0x380c6f[_0x37eb('0x111')](),_0x380c6f[_0x37eb('0x0')]||_0x37eb('0x8b')==_0x380c6f[_0x37eb('0xcc')][_0x37eb('0x3a')])return null;let _0x4e6bf6=null,_0x468f5e=_0x380c6f[_0x37eb('0xb1')],_0x4273e3=_0x380c6f['end'];const _0x3a743d=this[_0x37eb('0x25')](_0x380c6f,_0x37eb('0x112'));for(const {suggestion:_0x5bdee2,meta:_0x275748}of _0x3a743d){const _0x22f08f=this[_0x37eb('0x4d')][_0x37eb('0xb4')](_0x468f5e,_0x4273e3);if(_0x275748['isOwn']&&(this[_0x37eb('0x5')]||!_0x275748['containsRangeInObject']&&!_0x275748[_0x37eb('0x73')])){if(_0x5bdee2['isMultiRange']){if(!Ut(_0x5bdee2,_0x783609))continue;let _0x139870=!0x0;for(const _0x23952d of _0x5bdee2[_0x37eb('0x91')]()){if(_0x23952d[_0x37eb('0x139')](_0x22f08f,!0x0))return _0x5bdee2;_0x22f08f[_0x37eb('0x139')](_0x23952d)||(_0x139870=!0x1);}_0x139870&&_0x5bdee2[_0x37eb('0x113')]();}else{const _0x3e14c0=_0x5bdee2[_0x37eb('0x9f')]();if(_0x3e14c0[_0x37eb('0x139')](_0x22f08f,!0x0))return _0x5bdee2;if(!Ut(_0x5bdee2,_0x783609)){_0x22f08f[_0x37eb('0x139')](_0x3e14c0)?_0x5bdee2[_0x37eb('0x80')]():_0x3e14c0[_0x37eb('0x7')](_0x468f5e)?_0x468f5e=_0x3e14c0['end']:_0x3e14c0[_0x37eb('0x7')](_0x4273e3)&&(_0x4273e3=_0x3e14c0[_0x37eb('0xb1')]);continue;}_0x468f5e=_0x468f5e[_0x37eb('0xfe')](_0x3e14c0[_0x37eb('0xb1')])?_0x468f5e:_0x3e14c0[_0x37eb('0xb1')],_0x4273e3=_0x4273e3[_0x37eb('0xa2')](_0x3e14c0[_0x37eb('0x12d')])?_0x4273e3:_0x3e14c0[_0x37eb('0x12d')],_0x783609=Object['assign']({},_0x5bdee2[_0x37eb('0x141')]),_0x4e6bf6?_0x3e14c0[_0x37eb('0xb1')]['isBefore'](_0x4e6bf6[_0x37eb('0x9f')]()[_0x37eb('0xb1')])?(_0x4e6bf6[_0x37eb('0x80')](),_0x4e6bf6=_0x5bdee2):_0x5bdee2[_0x37eb('0x80')]():_0x4e6bf6=_0x5bdee2;}}}if(_0x4e6bf6)return this[_0x37eb('0xf9')](_0x4e6bf6,this['_model'][_0x37eb('0xb4')](_0x468f5e,_0x4273e3)),_0x4e6bf6;{const _0x128848=_0x1f3984(),_0x34e251=this[_0x37eb('0x4d')]['createRange'](_0x468f5e,_0x4273e3),_0x4c5491=_0x1943b2['id'],_0x2f1ed0=_0x492b4c?_0x37eb('0x40')+_0x492b4c:_0x37eb('0x112'),_0x2fdc14=this[_0x37eb('0xef')]({'id':_0x128848,'type':_0x2f1ed0,'createdAt':new Date(),'authorId':_0x4c5491,'attributes':_0x783609});return this[_0x37eb('0x27')](_0x2f1ed0,_0x128848,_0x4c5491,_0x34e251),_0x2fdc14;}}[_0x37eb('0x23')](_0x19216b,_0x20cb60=_0x37eb('0x1c'),_0x5b847a={}){const _0x3bb421=this[_0x37eb('0x31')]['plugins']['get'](_0x37eb('0x5c'))['me'],_0x3bc217=_0x19216b[_0x37eb('0x77')](_0x2483bb=>new _0x4586a9(_0x2483bb[_0x37eb('0xb1')],_0x2483bb[_0x37eb('0x12d')])),_0x5d08c3=new Set();for(const {suggestion:_0x5493ba,meta:_0x1b2ca9}of this[_0x37eb('0x25')](_0x3bc217,_0x37eb('0xbe')))_0x1b2ca9[_0x37eb('0x90')]&&!_0x1b2ca9[_0x37eb('0x130')]&&_0x5d08c3[_0x37eb('0xca')](_0x5493ba);for(const _0x1d5c08 of _0x5d08c3)if(_0x1d5c08[_0x37eb('0xc7')]){const _0x6e4720=_0x1d5c08['getRanges']();(!_0x1d5c08[_0x37eb('0x141')]||!_0x1d5c08[_0x37eb('0x141')][_0x37eb('0x52')])&&(_0x6e4720[_0x37eb('0x50')](_0x33cc03=>_0x3bc217[_0x37eb('0x18')](_0x1197f7=>_0x1197f7[_0x37eb('0x139')](_0x33cc03,!0x0)))&&_0x1d5c08[_0x37eb('0x113')]());if(_0x3bc217[_0x37eb('0x50')](_0x5461b5=>_0x6e4720[_0x37eb('0x18')](_0x5e5f62=>_0x5e5f62[_0x37eb('0x139')](_0x5461b5,!0x0)))){const _0x3ed4aa=this[_0x37eb('0xc')][_0x37eb('0xbf')](_0x37eb('0x112'),_0x20cb60,_0x37eb('0x105'));return this['forceDefaultExecution'](()=>_0x3ed4aa(_0x19216b,null,_0x5b847a)),null;}}else{const _0x3ab30b=_0x1d5c08[_0x37eb('0x9f')]();_0x3bc217[_0x37eb('0x18')](_0x579fcc=>_0x579fcc[_0x37eb('0x139')](_0x3ab30b,!0x0))&&_0x1d5c08[_0x37eb('0x113')]();if(_0x3bc217[_0x37eb('0x50')](_0x44bd02=>_0x3ab30b[_0x37eb('0x139')](_0x44bd02,!0x0))){const _0x19175b=this[_0x37eb('0xc')][_0x37eb('0xbf')]('deletion',_0x20cb60,_0x37eb('0x105'));return this[_0x37eb('0xcb')](()=>_0x19175b(_0x3bc217,null,_0x5b847a)),null;}}const _0x8e97e6=this[_0x37eb('0xc')]['getSuggestionCallback'](_0x37eb('0x112'),_0x20cb60,'join');let _0x192f4f=null;for(const _0x206792 of this[_0x37eb('0x9e')]())if(_0x206792[_0x37eb('0x72')]['id']==_0x3bb421['id']&&_0x206792[_0x37eb('0x76')]&&_0x37eb('0x112')==_0x206792[_0x37eb('0x55')]&&_0x206792[_0x37eb('0x74')]==_0x20cb60&&Ut(_0x206792,_0x5b847a)&&(_0x8e97e6(_0x206792[_0x37eb('0x91')](),_0x3bc217)||_0x8e97e6(_0x3bc217,_0x206792[_0x37eb('0x91')]()))){if(_0x192f4f){if(_0x206792['commentThread']&&_0x206792[_0x37eb('0x11f')][_0x37eb('0x106')])continue;for(const _0x1beefd of _0x206792['getRanges']())_0x192f4f[_0x37eb('0x7b')](_0x1beefd)||_0x192f4f[_0x37eb('0xe8')](_0x1beefd);_0x206792[_0x37eb('0x80')]();}else{_0x192f4f=_0x206792;for(const _0x5b4fc9 of _0x3bc217)_0x206792[_0x37eb('0x7b')](_0x5b4fc9)||_0x206792[_0x37eb('0xe8')](_0x5b4fc9);}}if(_0x192f4f)return _0x192f4f;_0x5d08c3[_0x37eb('0x9d')]();for(const {suggestion:_0x158f10,meta:_0x2a3c07}of this[_0x37eb('0x25')](_0x3bc217,'deletion'))_0x2a3c07[_0x37eb('0x90')]&&(this[_0x37eb('0x5')]||!_0x2a3c07['containsRangeInObject']&&!_0x2a3c07[_0x37eb('0x73')])&&Ut(_0x158f10,_0x5b847a)&&_0x5d08c3['add'](_0x158f10);for(const _0x185b79 of _0x5d08c3){const _0x2dced9=_0x185b79[_0x37eb('0x91')]();if(!_0x5b847a||!_0x5b847a[_0x37eb('0x52')]){if(_0x3bc217[_0x37eb('0x50')](_0x168b46=>_0x2dced9[_0x37eb('0x18')](_0x2752ff=>_0x2752ff['containsRange'](_0x168b46,!0x0))))return _0x185b79;}(!_0x185b79[_0x37eb('0x141')]||!_0x185b79[_0x37eb('0x141')][_0x37eb('0x52')])&&(_0x2dced9[_0x37eb('0x50')](_0x203f5a=>_0x3bc217[_0x37eb('0x18')](_0x29593d=>_0x29593d['containsRange'](_0x203f5a,!0x0)))&&_0x185b79['discard']());}const _0x26d8ff=_0x1f3984(),_0x263be2=_0x3bb421['id'],_0x11a3df=_0x37eb('0x40')+_0x20cb60,_0xed8961=this[_0x37eb('0xef')]({'id':_0x26d8ff,'type':_0x11a3df,'createdAt':new Date(),'authorId':_0x263be2,'attributes':_0x5b847a});for(const _0x5e0124 of _0x3bc217)_0x5e0124[_0x37eb('0x111')](),_0x5e0124[_0x37eb('0x0')]||'$graveyard'==_0x5e0124[_0x37eb('0xcc')][_0x37eb('0x3a')]||this[_0x37eb('0x27')](_0x11a3df,_0x26d8ff,_0x263be2,_0x5e0124,_0x5d4473['getMultiRangeId']());return _0xed8961;}[_0x37eb('0xf9')](_0xe7a848,_0xf226e2){const _0x1957fe=_0xe7a848[_0x37eb('0x81')]();this['_model'][_0x37eb('0xc3')](_0x7f8f2d=>{_0x7f8f2d[_0x37eb('0xdc')](_0x1957fe,{'range':_0xf226e2});});}[_0x37eb('0x102')](_0x31bb3c){const _0x2a90ac=_0x31bb3c['id'],_0x4502f3=this[_0x37eb('0x31')]['config'][_0x37eb('0x59')](_0x37eb('0x2f'));this[_0x37eb('0xf2')][_0x37eb('0x12e')](_0x2a90ac)||this[_0x37eb('0xf2')][_0x37eb('0x53')]({'channelId':_0x4502f3,'threadId':_0x2a90ac,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x19ac50=this['_commentsRepository'][_0x37eb('0x78')](_0x2a90ac);_0x19ac50[_0x37eb('0x116')]('isRemovable'),_0x19ac50[_0x37eb('0x3f')]=!0x1,_0x31bb3c[_0x37eb('0x11f')]=_0x19ac50;}['_checkSuggestionCorrectness'](_0x2bf3b5,_0x1f8a48,_0x388e60,_0x544f67){if(_0x2bf3b5[_0x37eb('0x55')]!=_0x1f8a48||_0x2bf3b5[_0x37eb('0x74')]!=_0x388e60||_0x2bf3b5[_0x37eb('0xea')]['id']!=_0x544f67)throw this[_0x37eb('0x31')]['enableReadOnlyMode'](_0x37eb('0x120')),new _0x1805df('track-changes-suggestion-data-mismatch',this);}[_0x37eb('0x6e')](_0x24ac3d,_0x293080){const _0x2068ae=_0x24ac3d['getFirstRange']();if(_0x293080[_0x37eb('0x84')](_0x2068ae))_0x24ac3d['removeMarkers']();else{if(_0x2068ae['containsRange'](_0x293080)){const _0x25be4f=this[_0x37eb('0x4d')]['createPositionAt'](_0x293080['start'][_0x37eb('0x124')],_0x37eb('0x12d'));this[_0x37eb('0xf9')](_0x24ac3d,this[_0x37eb('0x4d')][_0x37eb('0xb4')](_0x2068ae[_0x37eb('0xb1')],_0x25be4f));const _0x28fc5a=_0x1f3984(),_0x3646a5=_0x24ac3d[_0x37eb('0xea')]['id'],_0x347049=_0x24ac3d['type']+':'+_0x24ac3d[_0x37eb('0x74')];this[_0x37eb('0xef')]({'id':_0x28fc5a,'type':_0x347049,'createdAt':new Date(),'authorId':_0x3646a5,'data':_0x24ac3d[_0x37eb('0xb5')],'attributes':_0x24ac3d[_0x37eb('0x141')]});const _0x5a67c4=this[_0x37eb('0x4d')]['createPositionAt'](_0x293080['end']['parent'],_0x37eb('0x89')),_0x41b1f6=this[_0x37eb('0x4d')][_0x37eb('0xb4')](_0x5a67c4,_0x2068ae[_0x37eb('0x12d')]);this['_addSuggestionMarker'](_0x347049,_0x28fc5a,_0x3646a5,_0x41b1f6);}else{if(_0x2068ae[_0x37eb('0x7')](_0x293080['start'])){const _0x1975ef=this['_model']['createPositionAt'](_0x293080[_0x37eb('0xb1')][_0x37eb('0x124')],_0x37eb('0x12d'));this['_setSuggestionRange'](_0x24ac3d,this[_0x37eb('0x4d')][_0x37eb('0xb4')](_0x2068ae[_0x37eb('0xb1')],_0x1975ef));}else{const _0x567573=this[_0x37eb('0x4d')][_0x37eb('0x13e')](_0x293080[_0x37eb('0x12d')]['parent'],_0x37eb('0x89'));this[_0x37eb('0xf9')](_0x24ac3d,this['_model'][_0x37eb('0xb4')](_0x567573,_0x2068ae['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x584804){for(const {suggestion:_0x38573f,meta:_0x148f83}of this[_0x37eb('0x25')](_0x584804,_0x37eb('0xbe'))){if(!_0x148f83[_0x37eb('0x90')])continue;const _0x272a29=_0x38573f['getRanges']();for(const _0x29388d of _0x272a29)if(!_0x584804['getDifference'](_0x29388d)[_0x37eb('0x106')])return!0x0;}return!0x1;}[_0x37eb('0x2d')](_0x208598){const _0x3c979c=this[_0x37eb('0x31')][_0x37eb('0xf0')][_0x37eb('0x59')](_0x37eb('0x5c'))[_0x37eb('0x11d')](_0x208598);if(!_0x3c979c)throw new _0x1805df(_0x37eb('0xf7'),this);return _0x3c979c;}[_0x37eb('0x1b')](_0x4acbff){const _0x234826=this['editor'][_0x37eb('0xf0')][_0x37eb('0x59')](_0x37eb('0x5c')),_0xcea0f3=_0x10009b(_0x37eb('0x67')+_0x4acbff),_0x261a31=_0x234826[_0x37eb('0x11d')](_0xcea0f3);return _0x261a31||_0x234826[_0x37eb('0x125')]({'id':_0xcea0f3,'name':_0x4acbff});}[_0x37eb('0x51')](_0x3c6470,_0x2c6afa,_0x595bea,_0x2205b5,_0x63bc7c){const _0x4e4dbf=this[_0x37eb('0x2d')](_0x2205b5),_0x28284b=this[_0x37eb('0xc')][_0x37eb('0x54')](_0x3c6470,_0x2c6afa,_0x595bea,_0x4e4dbf,_0x63bc7c,_0x2b48a2=>this[_0x37eb('0xfa')](_0x595bea,{'attributes':_0x2b48a2}));return this[_0x37eb('0xe4')](_0x28284b,_0x37eb('0x105'),()=>{this['_updateSuggestionData'](_0x595bea,{'state':_0x37eb('0xaa')});},{'priority':_0x37eb('0x5d')}),this['listenTo'](_0x28284b,_0x37eb('0x113'),()=>{this[_0x37eb('0xfa')](_0x595bea,{'state':_0x37eb('0x10')});},{'priority':'high'}),this[_0x37eb('0x126')][_0x37eb('0x7c')](_0x595bea,_0x28284b),this['_suggestionState'][_0x37eb('0x7c')](_0x28284b,'notReady'),_0x28284b;}[_0x37eb('0xba')](_0x50359d){const _0xb5ba98=_0x50359d['split'](':');return{'group':_0xb5ba98[0x0],'type':_0xb5ba98[0x1],'subType':_0xb5ba98['length']>=0x5?_0xb5ba98[0x2]:null,'id':_0xb5ba98[_0x37eb('0x106')]<0x5?_0xb5ba98[0x2]:_0xb5ba98[0x3],'authorId':_0xb5ba98[_0x37eb('0x106')]<0x5?_0xb5ba98[0x3]:_0xb5ba98[0x4],'markerCount':0x6==_0xb5ba98[_0x37eb('0x106')]?_0xb5ba98[0x5]:null};}[_0x37eb('0x12b')](_0x326f70,_0x45706f,_0x13c204){const _0x306a51=_0x326f70[_0x37eb('0x9f')](),_0x79d5c0=_0x306a51[_0x37eb('0xb1')],_0xbd687d=_0x306a51[_0x37eb('0x12d')];this['_setSuggestionRange'](_0x326f70,this[_0x37eb('0x4d')]['createRange'](_0x79d5c0,_0x45706f));const _0x2af652=_0x1f3984(),_0x35e044=_0x326f70[_0x37eb('0xea')]['id'],_0x28eea5=_0x326f70[_0x37eb('0x55')]+(_0x326f70[_0x37eb('0x74')]?':'+_0x326f70[_0x37eb('0x74')]:'');this['_setSuggestionData']({'id':_0x2af652,'type':_0x28eea5,'createdAt':new Date(),'authorId':_0x35e044,'originalSuggestionId':_0x326f70['id'],'attributes':_0x326f70[_0x37eb('0x141')],'data':_0x326f70[_0x37eb('0xb5')]}),_0x37eb('0x2e')==_0x326f70[_0x37eb('0x55')]&&(_0x13c204=this[_0x37eb('0x4d')][_0x37eb('0x12a')](_0x13c204[_0x37eb('0x48')])),this['_addSuggestionMarker'](_0x28eea5,_0x2af652,_0x35e044,this[_0x37eb('0x4d')][_0x37eb('0xb4')](_0x13c204,_0xbd687d));}[_0x37eb('0x25')](_0x342650,_0x488e96=null){const _0x2f9d68=[],_0x4abb9d=this['editor'][_0x37eb('0xf0')][_0x37eb('0x59')](_0x37eb('0x5c'))['me'];Array[_0x37eb('0x12f')](_0x342650)||(_0x342650=[_0x342650]);for(const _0x298a15 of this[_0x37eb('0x9e')]()){if(!_0x298a15[_0x37eb('0x76')])continue;if(_0x488e96&&_0x298a15[_0x37eb('0x55')]!=_0x488e96)continue;let _0x768182=!0x1;for(const _0x359ef6 of _0x298a15['getRanges']()){for(const _0x3c5913 of _0x342650){const _0xb33960=_0x3c5913['start'][_0x37eb('0x84')](_0x359ef6[_0x37eb('0x12d')])||_0x3c5913[_0x37eb('0x12d')][_0x37eb('0x84')](_0x359ef6[_0x37eb('0xb1')]);if(_0xb33960||_0x3c5913[_0x37eb('0x12')](_0x359ef6)){const _0x14d622=_0x3c5913[_0x37eb('0x139')](_0x359ef6)&&Bt(this[_0x37eb('0x4d')]['schema'],_0x359ef6[_0x37eb('0xb1')],_0x3c5913),_0x18c340=_0x359ef6['containsRange'](_0x3c5913)&&Bt(this['_model'][_0x37eb('0x66')],_0x3c5913['start'],_0x359ef6);_0x2f9d68[_0x37eb('0x43')]({'suggestion':_0x298a15,'meta':{'isOwn':_0x4abb9d==_0x298a15[_0x37eb('0x72')],'isNextTo':_0xb33960,'isInsideObject':_0x14d622,'containsRangeInObject':_0x18c340}}),_0x768182=!0x0;break;}}if(_0x768182)break;}}return _0x2f9d68;}[_0x37eb('0x27')](_0x265228,_0x1a671a,_0x5940b3,_0x56e059,_0x3e3d29){this[_0x37eb('0x4d')][_0x37eb('0xc3')](_0x5c5fa6=>{let _0x38c064=_0x37eb('0x114')+_0x265228+':'+_0x1a671a+':'+_0x5940b3;_0x3e3d29&&(_0x38c064=_0x38c064+':'+_0x3e3d29),_0x5c5fa6[_0x37eb('0x69')](_0x38c064,{'range':_0x56e059,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x14a50f){const _0x4b6ebc=_0x14a50f['previous'],_0x291362=_0x14a50f['next'];_0x14a50f[_0x37eb('0x10b')]=null,null!=_0x4b6ebc&&(_0x4b6ebc[_0x37eb('0x3')]=null),_0x14a50f[_0x37eb('0x3')]=null,null!=_0x291362&&(_0x291362[_0x37eb('0x10b')]=null),_0x37eb('0x108')==this['_suggestionState'][_0x37eb('0x59')](_0x14a50f)&&(this[_0x37eb('0xe9')][_0x37eb('0x7c')](_0x14a50f,_0x37eb('0xd1')),this[_0x37eb('0x9')](_0x37eb('0x10a'),_0x14a50f,_0x4b6ebc,_0x291362));}['_setSuggestionData'](_0x19c0af){const _0x11067b=_0x19c0af['id'],_0xb19229=this['addSuggestionData'](_0x19c0af);if(this[_0x37eb('0x109')]&&this[_0x37eb('0x109')][_0x37eb('0xb8')]){const _0x3be600=this[_0x37eb('0x31')][_0x37eb('0xf0')][_0x37eb('0x59')](_0x37eb('0xe2')),_0x57bcb1=_0xb19229[_0x37eb('0x97')],_0x202317=_0xb19229['subType']?_0xb19229[_0x37eb('0x55')]+':'+_0xb19229[_0x37eb('0x74')]:_0xb19229[_0x37eb('0x55')],_0x8a8a67=this[_0x37eb('0x31')]['locale'],_0x577ddd=_0x3be600[_0x37eb('0xca')](_0x116ea4(_0x8a8a67,_0x37eb('0x15'))),_0x53a82c={'id':_0x11067b,'type':_0x202317,'hasComments':_0x57bcb1,'data':_0x19c0af[_0x37eb('0xb5')]||null,'originalSuggestionId':_0x19c0af[_0x37eb('0xbb')]||null,'attributes':_0xb19229['attributes']};this[_0x37eb('0x109')]['addSuggestion'](_0x53a82c)['then'](_0x4f9122=>{_0xb19229[_0x37eb('0xe1')]=!0x0,_0x3be600[_0x37eb('0x134')](_0x577ddd),_0x4f9122&&_0x4f9122[_0x37eb('0x7e')]&&(this[_0x37eb('0x126')][_0x37eb('0x59')](_0x11067b)['createdAt']=_0x4f9122['createdAt']);})[_0x37eb('0x13a')](_0x535dca=>{throw _0x16f58e(_0x37eb('0xc2')),this[_0x37eb('0x31')]['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xb19229[_0x37eb('0x113')]();}),_0xb19229[_0x37eb('0xff')](),this[_0x37eb('0x126')]['delete'](_0xb19229['id']),this[_0x37eb('0xe9')]['delete'](_0xb19229),_0x535dca;});}return _0xb19229;}[_0x37eb('0xfa')](_0x157213,_0x53ccea){const _0x4d3c51=this[_0x37eb('0x31')]['plugins'][_0x37eb('0x59')]('PendingActions'),_0x5e6788=this['getSuggestion'](_0x157213);if(this[_0x37eb('0x109')]&&this[_0x37eb('0x109')][_0x37eb('0x107')]){if(_0x5e6788['_saved']){const _0x49c9fd=_0x4d3c51['add'](_0x116ea4(this['editor'][_0x37eb('0xa0')],_0x37eb('0x15')));this[_0x37eb('0x109')][_0x37eb('0x107')](_0x157213,_0x53ccea)[_0x37eb('0xa5')](()=>{_0x4d3c51[_0x37eb('0x134')](_0x49c9fd);});}else _0x5e6788['on'](_0x37eb('0x68'),()=>{this[_0x37eb('0xfa')](_0x157213,_0x53ccea);});}}[_0x37eb('0x22')](_0x295f1b){if(!this[_0x37eb('0x109')]||!this[_0x37eb('0x109')][_0x37eb('0x98')])throw new _0x1805df(_0x37eb('0xe3'),this);return this[_0x37eb('0x109')]['getSuggestion'](_0x295f1b);}[_0x37eb('0xc1')](_0x26d482){const {id:_0x1d2b7f,type:_0x450065,subType:_0x27878a,authorId:_0xa26109}=this[_0x37eb('0xba')](_0x26d482),_0x5792fe=this[_0x37eb('0x126')][_0x37eb('0x59')](_0x1d2b7f)||this[_0x37eb('0x51')](_0x450065,_0x27878a,_0x1d2b7f,_0xa26109,{});switch(this[_0x37eb('0x6d')](_0x5792fe,_0x450065,_0x27878a,_0xa26109),this['_suggestionState'][_0x37eb('0x59')](_0x5792fe)){case _0x37eb('0x13'):this[_0x37eb('0x22')](_0x1d2b7f)[_0x37eb('0xa5')](_0x353553=>{let _0x4620c3=Promise[_0x37eb('0xa9')]();_0x353553[_0x37eb('0x97')]&&(_0x4620c3=this[_0x37eb('0xf2')]['fetchCommentThread']({'channelId':this[_0x37eb('0x31')]['config']['get'](_0x37eb('0x2f')),'threadId':_0x1d2b7f})),_0x4620c3['then'](()=>{this[_0x37eb('0xde')](_0x353553)[_0x37eb('0xe1')]=!0x0;});}),this[_0x37eb('0xe9')][_0x37eb('0x7c')](_0x5792fe,_0x37eb('0x137'));break;case _0x37eb('0xd1'):this[_0x37eb('0xfa')](_0x1d2b7f,{'state':_0x37eb('0x6f')});case _0x37eb('0x26'):this[_0x37eb('0xe9')][_0x37eb('0x7c')](_0x5792fe,_0x37eb('0x108')),this[_0x37eb('0x9')](_0x37eb('0x86'),_0x5792fe);break;case _0x37eb('0x108'):this[_0x37eb('0x9')](_0x37eb('0x75'),_0x5792fe);}return _0x5792fe[_0x37eb('0x3d')](_0x26d482),_0x5792fe;}[_0x37eb('0x117')](_0x3cad2f){const _0x1d3dcb=Array[_0x37eb('0xd5')](_0x3cad2f)[_0x37eb('0x94')](_0x533089=>!_0x533089[_0x37eb('0xc7')]),_0x4505b6=this[_0x37eb('0x9e')]({'skipNotAttached':!0x0})['filter'](_0x4b41c3=>!_0x4b41c3[_0x37eb('0xc7')]),_0x17bab7=_0x4505b6['filter'](_0x3c5a01=>!_0x3cad2f[_0x37eb('0x65')](_0x3c5a01)),_0x4c67e9=new Map(_0x4505b6[_0x37eb('0x77')](_0x57176b=>[_0x57176b,this['_suggestionFactory'][_0x37eb('0xbf')](_0x57176b[_0x37eb('0x55')],_0x57176b[_0x37eb('0x74')],_0x37eb('0x122'))])),_0xcc4e3f=new Map(_0x4505b6[_0x37eb('0x77')](_0x20b8f0=>[_0x20b8f0,_0x20b8f0[_0x37eb('0x9f')]()])),_0x43715c=new Set(),_0xb7bc8c=new Set();for(let _0x3e8142=0x0;_0x3e8142<_0x1d3dcb['length'];_0x3e8142++)_0x245137(_0x1d3dcb[_0x3e8142],_0x1d3dcb,_0x3e8142+0x1);for(let _0x1cae94=0x0;_0x1cae94<_0x1d3dcb[_0x37eb('0x106')];_0x1cae94++)_0x245137(_0x1d3dcb[_0x1cae94],_0x17bab7,0x0);for(let _0x358046=0x0;_0x358046<_0x1d3dcb[_0x37eb('0x106')];_0x358046++){const _0x75bdbb=_0x1d3dcb[_0x358046];!_0xb7bc8c['has'](_0x75bdbb)&&_0x75bdbb[_0x37eb('0x10b')]&&(_0x75bdbb[_0x37eb('0x10b')][_0x37eb('0x3')]===_0x75bdbb&&(_0x75bdbb[_0x37eb('0x10b')][_0x37eb('0x3')]=null),_0x75bdbb[_0x37eb('0x10b')]=null),!_0x43715c[_0x37eb('0x65')](_0x75bdbb)&&_0x75bdbb[_0x37eb('0x3')]&&(_0x75bdbb[_0x37eb('0x3')][_0x37eb('0x10b')]===_0x75bdbb&&(_0x75bdbb[_0x37eb('0x3')][_0x37eb('0x10b')]=null),_0x75bdbb['next']=null);}function _0x245137(_0x8db42,_0x146553,_0x420e28){for(let _0x40f23d=_0x420e28;_0x40f23d<_0x146553[_0x37eb('0x106')];_0x40f23d++){const _0x5c69e2=_0x30420b(_0x8db42,_0x146553[_0x40f23d]);_0x5c69e2&&(_0x5c69e2[0x0][_0x37eb('0x3')]=_0x5c69e2[0x1],_0x5c69e2[0x1]['previous']=_0x5c69e2[0x0],_0x43715c[_0x37eb('0xca')](_0x5c69e2[0x0]),_0xb7bc8c['add'](_0x5c69e2[0x1]));}}function _0x30420b(_0x47a963,_0x250bb8){if(_0x47a963[_0x37eb('0x72')]['id']!==_0x250bb8[_0x37eb('0x72')]['id'])return null;const _0x3f4b5e=_0x4c67e9[_0x37eb('0x59')](_0x47a963)(_0x47a963,_0x250bb8,_0xcc4e3f[_0x37eb('0x59')](_0x47a963),_0xcc4e3f[_0x37eb('0x59')](_0x250bb8));if(!_0x3f4b5e)return null;return _0x4c67e9[_0x37eb('0x59')](_0x250bb8)(_0x47a963,_0x250bb8,_0xcc4e3f[_0x37eb('0x59')](_0x47a963),_0xcc4e3f[_0x37eb('0x59')](_0x250bb8))?_0x3f4b5e[0x1][_0x37eb('0x11f')]&&_0x3f4b5e[0x1]['commentThread'][_0x37eb('0x106')]?null:_0x3f4b5e:null;}}[_0x37eb('0xf4')](_0x62d473){const _0x12cb69=Array['from'](_0x62d473),_0x238d1e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x345237=_0x238d1e[_0x37eb('0x94')](_0xa2aae0=>!_0x62d473[_0x37eb('0x65')](_0xa2aae0)),_0x3ebcbd=new Map(_0x12cb69[_0x37eb('0x77')](_0x245f85=>[_0x245f85,this[_0x37eb('0xc')][_0x37eb('0xbf')](_0x245f85[_0x37eb('0x55')],_0x245f85['subType'],_0x37eb('0xe0'))])),_0x2eab7e=new Map(_0x238d1e['map'](_0xaa9a3f=>[_0xaa9a3f,_0xaa9a3f[_0x37eb('0x91')]()]));for(let _0x304f0b=0x0;_0x304f0b<_0x12cb69[_0x37eb('0x106')];_0x304f0b++){if(_0x7913b5(this,_0x12cb69[_0x304f0b],_0x12cb69,_0x304f0b+0x1))return!0x0;}for(let _0x203fc3=0x0;_0x203fc3<_0x12cb69['length'];_0x203fc3++){if(_0x7913b5(this,_0x12cb69[_0x203fc3],_0x345237,0x0))return!0x0;}return!0x1;function _0x7913b5(_0x50d1da,_0x438f19,_0x5d5f37,_0x3ab45c){for(let _0x2c737e=_0x3ab45c;_0x2c737e<_0x5d5f37['length'];_0x2c737e++){const _0x19eae3=_0x5d5f37[_0x2c737e];if(_0x19eae3['type']!==_0x438f19[_0x37eb('0x55')]||_0x19eae3[_0x37eb('0x72')]['id']!==_0x438f19[_0x37eb('0x72')]['id']||_0x19eae3[_0x37eb('0x74')]!==_0x438f19[_0x37eb('0x74')])continue;if(!xt(_0x438f19,_0x19eae3))continue;const _0x443cbd=_0x3ebcbd[_0x37eb('0x59')](_0x438f19),_0x36da60=_0x2eab7e[_0x37eb('0x59')](_0x438f19),_0x32f7ca=_0x2eab7e[_0x37eb('0x59')](_0x19eae3),_0xeb9b76=_0x438f19[_0x37eb('0x11f')]&&_0x438f19[_0x37eb('0x11f')][_0x37eb('0x106')],_0xf98be=_0x19eae3['commentThread']&&_0x19eae3[_0x37eb('0x11f')][_0x37eb('0x106')];if(!_0xeb9b76&&_0x443cbd(_0x32f7ca,_0x36da60))return _0x50d1da[_0x37eb('0x2a')](_0x19eae3,_0x438f19),_0x2eab7e[_0x37eb('0x7d')](_0x438f19),!0x0;if(!_0xf98be&&_0x443cbd(_0x36da60,_0x32f7ca))return _0x50d1da[_0x37eb('0x2a')](_0x438f19,_0x19eae3),_0x2eab7e[_0x37eb('0x7d')](_0x19eae3),!0x0;}return!0x1;}}[_0x37eb('0x2a')](_0x494734,_0x1cf0f3){if(_0x494734[_0x37eb('0xc7')])for(const _0x48aa73 of _0x1cf0f3['getRanges']())_0x494734['addRange'](_0x48aa73);else{const _0x143796=_0x1cf0f3[_0x37eb('0x9f')]()[_0x37eb('0x12d')];this[_0x37eb('0xf9')](_0x494734,this[_0x37eb('0x4d')][_0x37eb('0xb4')](_0x494734[_0x37eb('0x9f')]()[_0x37eb('0xb1')],_0x143796));}_0x1cf0f3[_0x37eb('0x80')]();}}class Dt{constructor(_0x66d54d){this[_0x37eb('0xd9')]=_0x66d54d,this[_0x37eb('0x4d')]=_0x66d54d[_0x37eb('0xa')],this[_0x37eb('0xee')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x37eb('0xb7')]();}[_0x37eb('0x54')](_0x1588f7,_0x4dfaff,_0x41cf4b,_0x505de4,_0x2683dd,_0x55a69c){return new _0x5d4473(this[_0x37eb('0x4d')],{'type':_0x1588f7,'subType':_0x4dfaff,'id':_0x41cf4b,'author':_0x505de4,'creator':_0x505de4,'attributes':_0x2683dd,'onAttributesChange':_0x55a69c,'onAccept':(..._0x282de5)=>this['getSuggestionCallback'](_0x1588f7,_0x4dfaff,_0x37eb('0x105'))(..._0x282de5),'onDiscard':(..._0x223a0a)=>this[_0x37eb('0xbf')](_0x1588f7,_0x4dfaff,_0x37eb('0x113'))(..._0x223a0a)});}[_0x37eb('0x2')](_0x6f8cf5,_0x2b03bb,_0x2a07ac,_0x260f82){const _0x129166=_0x6f8cf5+':'+_0x2b03bb+':'+_0x2a07ac;this['_customCallbacks'][_0x37eb('0x7c')](_0x129166,_0x260f82);}[_0x37eb('0xbf')](_0x440725,_0x580500,_0x5b3d05){const _0x2dbe26=_0x440725+':'+_0x580500+':'+_0x5b3d05;return this[_0x37eb('0xee')][_0x37eb('0x59')](_0x2dbe26)||this[_0x37eb('0x118')][_0x37eb('0x59')](_0x440725+':'+_0x5b3d05);}['_registerDefaultCallbacks'](){const _0x184f7c=()=>!0x1,_0x539e6d=_0x58b6df=>{_0x58b6df[_0x37eb('0x16')]((_0x5a73f9,_0x22b992)=>_0x5a73f9[_0x37eb('0xb1')][_0x37eb('0xfe')](_0x22b992[_0x37eb('0xb1')])?0x1:-0x1),this[_0x37eb('0x4d')][_0x37eb('0xc3')](_0xa50ef1=>{for(const _0x568350 of _0x58b6df){let _0x13e946;_0x13e946=_0x568350[_0x37eb('0x12d')]['isAtEnd']&&_0x568350['end'][_0x37eb('0x48')]==_0x568350[_0x37eb('0xb1')][_0x37eb('0x1')]?_0xa50ef1['createSelection'](_0x568350[_0x37eb('0xb1')]['nodeAfter'],'on'):_0xa50ef1[_0x37eb('0x1e')](_0x568350),this[_0x37eb('0x4d')][_0x37eb('0x79')](_0x13e946,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2a42e4=(_0x2edce7,_0xda580c)=>{this[_0x37eb('0x4d')][_0x37eb('0xc3')](_0x171e4e=>{const {commandName:_0x3569e3,commandParams:_0x9bd51c=[]}=_0xda580c,_0x98374a=_0x2edce7['map'](_0xab578d=>(_t(_0xab578d)&&(_0xab578d=this[_0x37eb('0x4d')][_0x37eb('0xb4')](_0xab578d[_0x37eb('0x12d')])),_0xab578d))['filter'](_0xec0276=>'$graveyard'!==_0xec0276[_0x37eb('0xcc')][_0x37eb('0x3a')]);if(_0x98374a[_0x37eb('0x106')]<0x1)return;const _0x14a7b4=Array[_0x37eb('0xd5')](this[_0x37eb('0x4d')]['document']['selection'][_0x37eb('0x91')]())[_0x37eb('0x77')](_0x550d2e=>_0x4586a9['fromRange'](_0x550d2e));_0x171e4e['setSelection'](_0x98374a);for(const _0xc42e98 of this[_0x37eb('0xd9')]['commands'][_0x37eb('0x38')]())_0xc42e98[_0x37eb('0xf8')]();_0x9bd51c['push']({'forceDefaultExecution':!0x0}),this[_0x37eb('0xd9')]['execute'](_0x3569e3,..._0x9bd51c);const _0x212017=_0x14a7b4['filter'](_0x5a729d=>'$graveyard'!=_0x5a729d['root'][_0x37eb('0x3a')]);_0x212017[_0x37eb('0x106')]>0x0&&_0x171e4e[_0x37eb('0xc4')](_0x212017);for(const _0x2fe1a6 of _0x14a7b4)_0x2fe1a6[_0x37eb('0x111')]();});},_0x1cc7b5=(_0x4fe2a8,_0x54de5d)=>0x1==_0x4fe2a8[_0x37eb('0x106')]&&0x1==_0x54de5d[_0x37eb('0x106')]&&_0x4fe2a8[0x0][_0x37eb('0x12d')][_0x37eb('0x84')](_0x54de5d[0x0][_0x37eb('0xb1')]),_0x98bce3=(_0x39181c,_0x2ca840,_0xefebbf,_0x4ae91a)=>jt(_0x39181c,_0x2ca840,_0xefebbf,_0x4ae91a,this[_0x37eb('0x4d')])?[_0x39181c,_0x2ca840]:jt(_0x2ca840,_0x39181c,_0x4ae91a,_0xefebbf,this[_0x37eb('0x4d')])?[_0x2ca840,_0x39181c]:null;this[_0x37eb('0x118')][_0x37eb('0x7c')]('insertion:accept',_0x184f7c),this[_0x37eb('0x118')]['set'](_0x37eb('0x9c'),_0x539e6d),this[_0x37eb('0x118')][_0x37eb('0x7c')](_0x37eb('0x133'),_0x1cc7b5),this['_defaultCallbacks'][_0x37eb('0x7c')](_0x37eb('0x10f'),_0x98bce3),this[_0x37eb('0x118')][_0x37eb('0x7c')](_0x37eb('0x13f'),_0x539e6d),this[_0x37eb('0x118')]['set'](_0x37eb('0x100'),_0x184f7c),this['_defaultCallbacks'][_0x37eb('0x7c')]('deletion:join',_0x1cc7b5),this[_0x37eb('0x118')]['set'](_0x37eb('0xf3'),_0x98bce3),this['_defaultCallbacks']['set'](_0x37eb('0xdd'),_0x2a42e4),this[_0x37eb('0x118')][_0x37eb('0x7c')](_0x37eb('0x60'),_0x184f7c),this[_0x37eb('0x118')][_0x37eb('0x7c')](_0x37eb('0xd3'),_0x1cc7b5),this['_defaultCallbacks']['set']('formatInline:chain',_0x184f7c),this[_0x37eb('0x118')][_0x37eb('0x7c')](_0x37eb('0x49'),_0x2a42e4),this['_defaultCallbacks']['set'](_0x37eb('0x99'),_0x184f7c),this[_0x37eb('0x118')][_0x37eb('0x7c')](_0x37eb('0xb9'),_0x1cc7b5),this[_0x37eb('0x118')][_0x37eb('0x7c')]('formatBlock:chain',_0x184f7c);}}function Bt(_0x3d7f0b,_0x8edc91,_0x5e1cfd){for(const _0x341e1e of _0x8edc91[_0x37eb('0x48')][_0x37eb('0x8d')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x341e1e[_0x37eb('0xcc')]==_0x341e1e)return!0x1;if(!_0x5e1cfd[_0x37eb('0xe5')](_0x341e1e))return!0x1;if(_0x3d7f0b[_0x37eb('0xd')](_0x341e1e)||_0x3d7f0b[_0x37eb('0x88')](_0x341e1e))return!0x0;}return!0x1;}function _t(_0x44bf49){return _0x44bf49[_0x37eb('0x12d')][_0x37eb('0x48')]==_0x44bf49[_0x37eb('0xb1')][_0x37eb('0x1')]&&_0x44bf49[_0x37eb('0x12d')][_0x37eb('0x5f')];}function Mt(_0x99786e,_0x1c425a,_0x1d4f63,_0x4c56f8){const _0x1e0b55=_0x44bd6a=>!_0x44bd6a['item']['is'](_0x37eb('0x101'))&&!_0x4c56f8[_0x37eb('0xd')](_0x44bd6a['item']),_0x137969=_0x99786e[_0x37eb('0xb1')][_0x37eb('0x6a')](_0x1e0b55),_0x3d5685=_0x99786e[_0x37eb('0x12d')][_0x37eb('0x6a')](_0x1e0b55,{'direction':_0x37eb('0xd4')});return(!_0x99786e[_0x37eb('0xb1')][_0x37eb('0x84')](_0x137969)||!_0x99786e[_0x37eb('0x12d')][_0x37eb('0x84')](_0x3d5685))&&(_0x137969[_0x37eb('0xfe')](_0x3d5685)?_0x1d4f63['updateMarker'](_0x1c425a,{'range':_0x1d4f63['createRange'](_0x137969,_0x3d5685)}):_0x1d4f63['removeMarker'](_0x1c425a),!0x0);}function $t(_0x4439b0){return _0x10009b(_0x4439b0);}function Nt(_0x3df1f6){const _0x4189b3=_0x3df1f6[_0x37eb('0xb1')][_0x37eb('0x1')];return _0x4189b3&&_0x4189b3['is'](_0x37eb('0xfb'));}function Rt(_0x35a8aa,_0x5e3a3a){const _0x20949f=_0x5e3a3a[_0x37eb('0x66')]['isObject'](_0x35a8aa)||_0x5e3a3a[_0x37eb('0x66')][_0x37eb('0xeb')](_0x35a8aa);return _0x5e3a3a[_0x37eb('0xb4')](_0x5e3a3a['createPositionAt'](_0x35a8aa,'before'),_0x20949f?_0x5e3a3a['createPositionAfter'](_0x35a8aa):_0x5e3a3a[_0x37eb('0x13e')](_0x35a8aa,_0x37eb('0x12d')));}function jt(_0x2460b9,_0x328f50,_0x18194b,_0x2d3754,_0x59c477){if(!xt(_0x2460b9,_0x328f50))return!0x1;if(_0x18194b[_0x37eb('0x12d')][_0x37eb('0x84')](_0x2d3754[_0x37eb('0xb1')]))return!0x0;if(_0x2460b9[_0x37eb('0x55')]!=_0x328f50[_0x37eb('0x55')])return!0x1;if(!_0x18194b['end']['isTouching'](_0x2d3754[_0x37eb('0xb1')]))return!0x1;const _0x31aaee=_0x59c477['createRange'](_0x18194b[_0x37eb('0x12d')],_0x2d3754[_0x37eb('0xb1')])[_0x37eb('0xa8')]();for(const _0x2b8f32 of _0x31aaee)if([_0x37eb('0x46'),'elementEnd'][_0x37eb('0x61')](_0x2b8f32['type'])&&_0x59c477[_0x37eb('0x66')][_0x37eb('0x88')](_0x2b8f32['item']))return!0x1;return!0x0;}function xt(_0x49062e,_0x8ceef4){return!(!_0x49062e[_0x37eb('0x8c')]||!_0x8ceef4[_0x37eb('0x8c')])&&_0x49024e(_0x49062e[_0x37eb('0x141')],_0x8ceef4[_0x37eb('0x141')]);}function Ut(_0x2614d1,_0x30ff30){const _0x59989d=Ot(_0x2614d1[_0x37eb('0x141')]),_0x5263ab=Ot(_0x30ff30);if(!_0x2614d1[_0x37eb('0x8c')])return!0x1;for(const _0x91236a of Object['keys'](_0x5263ab))if(!_0x49024e(_0x59989d[_0x91236a],_0x5263ab[_0x91236a]))return!0x1;return!0x0;}function Ot(_0x1adcae){const _0x2aac2a=Object[_0x37eb('0x5e')]({},_0x1adcae);return delete _0x2aac2a[_0x37eb('0x52')],delete _0x2aac2a[_0x37eb('0x33')],_0x2aac2a;}
|
|
23
|
+
const _0x3278=['track-changes-user-not-found','formatInline:discard','_mergeNestedSuggestions','isObject','PendingActions','_getAuthorFromId','_updateSuggestionData','_splitMarkerName','createElement','$graveyard','catch','isAfter','document','mapper','addMarker','formatInline','position','addMarker:suggestion','after','normal','_registerDefaultCallbacks','suggestion','group','insertion:accept','suggestionLoaded','_suggestionFactory','_handleNewSuggestionMarker','resolve','_getSuggestionData','deletion:chain','getFirstRange','getCustomProperty','previous','root','isDocumentOperation','_trackFormatChanges','addSuggestion','dataReady','hasCommentThread','discardAllSuggestions','consume','formatBlock','ck-suggestion-marker-','markMultiRangeInsertion','isRemovable','trackChanges','filter','formatInline:chain','formatBlock:accept','getUser','for','size','detach','_customCallbacks','updateMarker','getSuggestionCallback','listenTo','setSelection','substr','toJSON','end','containsRangeInObject','trackChanges.mergeNestedSuggestions','createPositionAt','_suggestions','always','suggestionChanged','stop','commandName','fire','accepted','_saved','model','collaboration.channelId','remove','@external','change:data','widget','addHighlight','commands','options','_addThreadToSuggestion','_getExternalAuthor','containsRange','removed','activeMarkers','_rangeIsInLocalUserInsertion','join','element','registerCustomCallback','isUndo','plugins','isInsideObject','map','getRanges','insertContent','every','ready','isOwn','insertion:','_setSuggestionRange','addComment','$marker','get','nodeBefore','_checkSuggestionCorrectness','formatInline:join','setTo','editor','createSelection','removeMarkers','getRange','track-changes-suggestion-data-mismatch','registerPostFixer','deletion:discard','delete','deletion:accept','getIntersection','formatGroupId','containsPosition','item','formatBlock:join','assign','fromCharCode','markMultiRangeBlockFormat','rejected','head','_isForcedDefaultExecutionBlock','_suggestionState','markInsertion','originalSuggestionId','requires','pluginName','getSuggestions','author','return','insertion:join','isEqual','value','ck-suggestion-marker--active','high','name','addMarkerName','addCommentThread','dataDowncast','getSuggestion','createPositionAfter','define','skipNestingCheck','enableCommand','howMany','containsItem','_joinSuggestions','hasSuggestion','isLocal','markInlineFormat','backward','isBlock','deletion:join','newRange','splice','getFirstMarker','creator','moveTargetPosition','init','createRange','isNextTo','isAtEnd','setAttribute','removeClass','isExternal','showSuggestionHighlights','_enabledCommands','_joinWithAdjacentSuggestions','writer','never','length','_defaultCallbacks','stopListening','updateSuggestion','getItems','formatInline:accept','_editor','isBefore','attributes','change:_saved','markerReady','elementToElement','multipleBlocks','isAtStart','forceDefaultExecution','CommentsRepository','addRange','notReady','elementStart','multi','removeMarker:suggestion:formatBlock','discard','rootName','_breakSuggestionMarker','getShiftedBy','createdAt','ck-suggestion-marker-formatBlock','_cutOutSuggestionMarker','default','_onDiscard','external:','discardSelectedSuggestions','parent','from','accept','isCollapsed','track-changes-suggestion-not-found','consumable','sort','move','lowest','low','_adapter','toViewElement','data','_createSuggestion','suggestion-type','_refreshSuggestionsChain','enableReadOnlyMode','_model','open','commentThread','formatBlock:discard','adapter','insertion','push','update:suggestion','insertion:discard','buildSuggestion','acceptSuggestion','conversion','change','markerToHighlight','editingDowncast','getChanges','track-changes-command-not-found','differ','schema','getWalker','execute','getMarkers','getMultiRangeId','getChangedMarkers','authoredAt','dataToMarker','then','track-changes-adapter-missing-getsuggestion','isInContent','removeMarker','Users','TrackChangesEditing','addClass','getLastMatchingPosition','locale','getDifference','track-changes-adapter-already-set','subType','trackChanges.trackFormatChanges','selection','chain','_setSuggestionData','removeComment','isLimit','rethrowUnexpectedError','change:activeMarkers','trackChangesCommand','isMultiRange','start','some','type','deleteContent','bindElementToMarker','addSuggestionData','data-suggestion','reconvertMarker','_findSuggestions','_addSuggestionMarker','fetchCommentThread','isIntersectingWithRange','authorName','getAttribute','insertion:chain','_descriptionFactory','config','next','suggestionUnloaded','nodeAfter','add','getNearestSelectionRange','split','addMarker:suggestion:formatBlock','isSelectable','_commentsRepository','batch','hasComments','markerName','range','markers','oldRange','includes','has','_removeSuggestion','discardSuggestion','set','acceptAllSuggestions','createPositionBefore','_isDataLoaded','values','markerNameToElements','marker-count','ck-suggestion-marker','formatBlock:','enqueueChange','addUser','targetPosition','deletion'];(function(_0x8b4b13,_0x32783c){const _0x250d03=function(_0x16a4ce){while(--_0x16a4ce){_0x8b4b13['push'](_0x8b4b13['shift']());}};_0x250d03(++_0x32783c);}(_0x3278,0x88));const _0x250d=function(_0x8b4b13,_0x32783c){_0x8b4b13=_0x8b4b13-0x0;let _0x250d03=_0x3278[_0x8b4b13];return _0x250d03;};import{Plugin as _0x520408,PendingActions as _0x3b9ed4}from'ckeditor5/src/core';import{LiveRange as _0x9d3d24}from'ckeditor5/src/engine';import{CKEditorError as _0xcb584e,uid as _0x2bf15d,priorities as _0x517b7a,logWarning as _0x2a11d4}from'ckeditor5/src/utils';import{toWidget as _0x42aa07}from'ckeditor5/src/widget';import{Users as _0x53cbfe,hashObject as _0x24c28a}from'ckeditor5-collaboration/src/collaboration-core';import _0x5dad87 from'./commands/trackchangescommand';import _0x37b7e0 from'./commands/acceptsuggestioncommand';import _0x231d70 from'./commands/discardsuggestioncommand';import _0x210eba from'./commands/executeonallsuggestionscommand';import _0x286847 from'./commands/executeonselectedsuggestionscommand';import _0x4b3b66 from'./suggestion';import _0x2b0724 from'./suggestiondescriptionfactory';import _0x321fb2 from'./integrations/alignment';import _0x382658 from'./integrations/basicstyles';import _0x12c52f from'./integrations/blockquote';import _0x56faff from'./integrations/ckbox';import _0x3c0451 from'./integrations/codeblock';import _0x904841 from'./integrations/comments';import _0x595b1d from'./integrations/deletecommand';import _0x466b81 from'./integrations/documentlist';import _0x12fa88 from'./integrations/entercommand';import _0x5359df from'./integrations/findandreplace';import _0x13b10b from'./integrations/font';import _0x334cc6 from'./integrations/formatpainter';import _0xbb456c from'./integrations/heading';import _0x392cfe from'./integrations/highlight';import _0x2ce349 from'./integrations/horizontalline';import _0x1f841f from'./integrations/htmlembed';import _0x5b41fd from'./integrations/image';import _0x3f8b5c from'./integrations/imagereplace';import _0x1743d3 from'./integrations/importword';import _0x3e30be from'./integrations/indent';import _0x350deb from'./integrations/inputcommand';import _0x428396 from'./integrations/link';import _0x370fc2 from'./integrations/list';import _0x27078e from'./integrations/listproperties';import _0x33ebc3 from'./integrations/mediaembed';import _0x2c5dca from'./integrations/mention';import _0x40f1c5 from'./integrations/pagebreak';import _0x4c3962 from'./integrations/paragraph';import _0x23af5e from'./integrations/removeformat';import _0x28a674 from'./integrations/restrictededitingmode';import _0x4619f5 from'./integrations/shiftentercommand';import _0x57951f from'./integrations/standardeditingmode';import _0x728844 from'./integrations/style';import _0x36bf8a from'./integrations/table';import _0x2ae53a from'./integrations/tablemergesplit';import _0xc955fd from'./integrations/tableheadings';import _0x12a7ac from'./integrations/tableclipboard';import _0x512965 from'./integrations/tablecolumnresize';import _0x9383d8 from'./integrations/template';import _0x1d34d8 from'./integrations/tableofcontents';import _0x2249f6 from'./integrations/title';import _0x46612f from'./integrations/undo';import{getTranslation as _0x5de460}from'./utils/common-translations';import _0x2aacf5 from'./integrations/tablecaption';import _0x14417c from'./integrations/documentlistproperties';import _0x109a6a from'./integrations/tableproperties';import{isEqual as _0xd6169}from'lodash-es';export default class p extends _0x520408{static get[_0x250d('0x13d')](){return['CommentsRepository',_0x53cbfe,_0x3b9ed4,_0x321fb2,_0x382658,_0x12c52f,_0x56faff,_0x3c0451,_0x904841,_0x595b1d,_0x466b81,_0x14417c,_0x12fa88,_0x5359df,_0x13b10b,_0x334cc6,_0xbb456c,_0x392cfe,_0x2ce349,_0x1f841f,_0x5b41fd,_0x3f8b5c,_0x1743d3,_0x3e30be,_0x350deb,_0x428396,_0x370fc2,_0x27078e,_0x33ebc3,_0x2c5dca,_0x40f1c5,_0x4c3962,_0x23af5e,_0x28a674,_0x4619f5,_0x57951f,_0x728844,_0x36bf8a,_0x2ae53a,_0xc955fd,_0x2aacf5,_0x12a7ac,_0x512965,_0x1d34d8,_0x109a6a,_0x9383d8,_0x2249f6,_0x46612f];}static get[_0x250d('0x13e')](){return _0x250d('0x78');}constructor(_0x2dd2cd){function _0x4551c9(_0x230408){return _0x230408[_0x250d('0x117')](_0x2d965a=>String[_0x250d('0x135')](_0x2d965a))[_0x250d('0x111')]('');}super(_0x2dd2cd),this[_0x250d('0xad')](_0x250d('0x10f'),[]),this['on'](_0x250d('0x86'),(_0x374104,_0x3c3d0f,_0x86a919,_0x4a9b8b)=>{this['_model'][_0x250d('0x65')](()=>{for(const _0x1bc17e of[..._0x4a9b8b,..._0x86a919])this['_model']['markers'][_0x250d('0xaa')](_0x1bc17e)&&_0x2dd2cd['editing'][_0x250d('0x90')](_0x1bc17e);});}),this[_0x250d('0x98')]=new _0x2b0724(this[_0x250d('0x126')][_0x250d('0x102')]['schema'],this[_0x250d('0x126')]['locale']),this[_0x250d('0x52')]=null,this[_0x250d('0xd3')]=new Dt(this[_0x250d('0x126')]),this[_0x250d('0xfa')]=new Map(),this['_commentsRepository']=_0x2dd2cd[_0x250d('0x115')][_0x250d('0x121')](_0x250d('0x37')),this[_0x250d('0x24')]=new Set(),this['_model']=this[_0x250d('0x126')][_0x250d('0x102')],this[_0x250d('0x13a')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x2dd2cd['config'][_0x250d('0xb')](_0x250d('0x7f'),_0x250d('0x44')),this[_0x250d('0xdd')]=_0x2dd2cd[_0x250d('0x99')][_0x250d('0x121')](_0x250d('0x7f')),_0x2dd2cd['config']['define'](_0x250d('0xf8'),!0x0),this['_mergeNestedSuggestions']=_0x2dd2cd[_0x250d('0x99')][_0x250d('0x121')](_0x250d('0xf8')),this[_0x250d('0x87')]=new _0x5dad87(_0x2dd2cd,this[_0x250d('0x24')]),this[_0x4551c9([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4551c9([0x34,0x30,0x34,0x36,0x31,0x38,0x31,0x34]);}[_0x250d('0x1c')](){const _0x18998c=this[_0x250d('0x126')];_0x18998c[_0x250d('0x64')][_0x250d('0xec')](_0x250d('0x67'))[_0x250d('0x66')]({'model':_0x250d('0xcf'),'view':_0x297528=>{const {id:_0x211343,type:_0x1bcc02}=this[_0x250d('0xc1')](_0x297528[_0x250d('0xa5')]),_0x572aa6=[_0x250d('0xb4'),_0x250d('0xe4')+_0x1bcc02];let _0x3b53c3=0xbb8;return this[_0x250d('0x10f')][_0x250d('0xa9')](_0x297528['markerName'])&&(_0x572aa6[_0x250d('0x5f')](_0x250d('0x3')),_0x3b53c3=0xbc2),_0x250d('0xb9')==_0x1bcc02&&(_0x3b53c3+=0x5),{'classes':_0x572aa6,'attributes':{'data-suggestion':_0x211343},'priority':_0x3b53c3};}}),_0x18998c[_0x250d('0x64')]['for'](_0x250d('0x8'))[_0x250d('0x9d')](_0x11c40e=>{_0x11c40e['on'](_0x250d('0xcb'),(_0x319eea,_0x427309,_0x20189c)=>{if(!_0x20189c[_0x250d('0x10a')][_0x250d('0x23')])return;const _0x8bb376=_0x427309[_0x250d('0x132')];if(!_0x8bb376)return;const _0x312dcb=_0x20189c[_0x250d('0xc7')][_0x250d('0x53')](_0x8bb376);_0x18998c['model'][_0x250d('0x6b')][_0x250d('0xbd')](_0x8bb376)&&_0x312dcb&&!_0x312dcb[_0x250d('0xd9')](_0x250d('0x107'))&&_0x312dcb['is']('containerElement')&&_0x42aa07(_0x312dcb,_0x20189c[_0x250d('0x26')]);},{'priority':_0x250d('0x4')});}),_0x18998c[_0x250d('0x64')][_0x250d('0xec')](_0x250d('0x8'))[_0x250d('0x66')]({'model':_0x250d('0xcf'),'view':(_0x3a42a4,_0x8fc7e5)=>{if(!_0x8fc7e5['options'][_0x250d('0x23')])return null;const {type:_0x560665}=this[_0x250d('0xc1')](_0x3a42a4[_0x250d('0xa5')]);return{'classes':[_0x250d('0xb4'),_0x250d('0xe4')+_0x560665],'priority':0xbb8};}});const _0x2aa53e=({showActiveMarkers:_0x2a4000=!0x0}={})=>(_0x32f684,_0xcdacde,_0x2f0a2e)=>{if(!_0xcdacde[_0x250d('0x132')])return;if(_0xcdacde[_0x250d('0x132')]['is'](_0x250d('0x80')))return void _0x2f0a2e[_0x250d('0x4d')][_0x250d('0xe2')](_0xcdacde[_0x250d('0x132')],_0x32f684[_0x250d('0x5')]);const _0x59ad33=_0x2f0a2e[_0x250d('0xc7')][_0x250d('0x53')](_0xcdacde[_0x250d('0x132')]);if(!(_0xcdacde[_0x250d('0x132')]['is'](_0x250d('0x112'))&&_0x18998c['model'][_0x250d('0x6b')][_0x250d('0x15')](_0xcdacde['item'])&&!_0x59ad33[_0x250d('0xd9')](_0x250d('0x108'))))return;const {id:_0x2ca15a}=this[_0x250d('0xc1')](_0xcdacde[_0x250d('0xa5')]);_0x2f0a2e['writer'][_0x250d('0x79')](['ck-suggestion-marker',_0x250d('0x42')],_0x59ad33),_0x2f0a2e[_0x250d('0x26')][_0x250d('0x20')](_0x250d('0x8f'),_0x2ca15a,_0x59ad33),_0x2f0a2e[_0x250d('0xc7')][_0x250d('0x8d')](_0x59ad33,_0xcdacde[_0x250d('0xa5')]),_0x2a4000&&(this['activeMarkers'][_0x250d('0xa9')](_0xcdacde[_0x250d('0xa5')])?_0x2f0a2e[_0x250d('0x26')][_0x250d('0x79')]('ck-suggestion-marker--active',_0x59ad33):_0x2f0a2e['writer'][_0x250d('0x21')](_0x250d('0x3'),_0x59ad33));for(const _0x3f7bc2 of _0x18998c[_0x250d('0x102')]['createRangeIn'](_0xcdacde[_0x250d('0x132')])[_0x250d('0x2c')]())_0x2f0a2e[_0x250d('0x4d')]['consume'](_0x3f7bc2,_0x32f684[_0x250d('0x5')]);_0x2f0a2e[_0x250d('0x4d')]['consume'](_0xcdacde[_0x250d('0x132')],_0x32f684['name']);};_0x18998c['conversion']['for'](_0x250d('0x8'))[_0x250d('0x9d')](_0x19e42e=>{_0x19e42e['on'](_0x250d('0xa0'),(_0x4275ab,_0x13fe26,_0x29b9cc)=>{_0x29b9cc[_0x250d('0x10a')][_0x250d('0x23')]&&_0x2aa53e({'showActiveMarkers':!0x1})(_0x4275ab,_0x13fe26,_0x29b9cc);},{'priority':'highest'});}),_0x18998c['conversion'][_0x250d('0xec')]('dataDowncast')['markerToData']({'model':_0x250d('0xcf'),'view':(_0x582834,_0x5833a9)=>_0x5833a9['options'][_0x250d('0x23')]?null:{'group':_0x250d('0xcf'),'name':_0x582834[_0x250d('0xf4')](0xb)}}),_0x18998c[_0x250d('0x64')]['for']('upcast')[_0x250d('0x33')]({'view':{'name':_0x250d('0xcf'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5887c1,{writer:_0x83530e})=>{let _0x482ef7='suggestion:'+_0x5887c1[_0x250d('0x96')](_0x250d('0x56'))+':'+_0x5887c1[_0x250d('0x96')]('id');return _0x5887c1['getAttribute'](_0x250d('0xb3'))&&(_0x482ef7+=':'+_0x5887c1[_0x250d('0x96')](_0x250d('0xb3'))),_0x83530e[_0x250d('0xc2')](_0x250d('0x120'),{'data-name':_0x482ef7});}}),_0x18998c[_0x250d('0x64')][_0x250d('0xec')]('upcast')[_0x250d('0x72')]({'view':_0x250d('0xcf')}),_0x18998c['conversion']['for'](_0x250d('0x67'))[_0x250d('0x9d')](_0x333642=>{_0x333642['on'](_0x250d('0xa0'),_0x2aa53e(),{'priority':_0x250d('0x4')});}),_0x18998c[_0x250d('0x64')][_0x250d('0xec')]('editingDowncast')[_0x250d('0x9d')](_0x11d6b=>{_0x11d6b['on'](_0x250d('0x3c'),(_0x270ebe,_0x338e66,_0x57c9b4)=>{const _0x51433a=_0x57c9b4['mapper'][_0x250d('0xb2')](_0x338e66[_0x250d('0xa5')]);if(_0x51433a)for(const _0x3e33a7 of _0x51433a)_0x3e33a7['getCustomProperty'](_0x250d('0x108'))||(_0x57c9b4[_0x250d('0x26')][_0x250d('0x21')]([_0x250d('0xb4'),'ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3e33a7),_0x57c9b4[_0x250d('0x26')]['removeAttribute'](_0x250d('0x8f'),_0x3e33a7),_0x57c9b4[_0x250d('0xc7')]['unbindElementFromMarkerName'](_0x3e33a7,_0x338e66['markerName']));},{'priority':_0x250d('0x4')});}),_0x18998c['model']['document']['registerPostFixer'](_0x21b8e1=>{let _0x5cc08a=!0x1;const _0x534f08=Array[_0x250d('0x49')](_0x18998c[_0x250d('0x102')][_0x250d('0xc6')][_0x250d('0x6a')][_0x250d('0x70')]()),_0x4892be=new Set();for(const {name:_0x3dde3e,data:_0x381faa}of _0x534f08){const {group:_0x1f7ea3,type:_0x348a77,id:_0x4177e2}=this[_0x250d('0xc1')](_0x3dde3e);if(_0x250d('0xcf')!==_0x1f7ea3)continue;const _0x5c6670=this[_0x250d('0xfa')]['get'](_0x4177e2);if(null!=_0x381faa[_0x250d('0x17')]){_0x250d('0xc9')==_0x348a77&&(_0x5cc08a=_0x5cc08a||Mt(_0x381faa[_0x250d('0x17')],_0x3dde3e,_0x21b8e1,_0x18998c[_0x250d('0x102')][_0x250d('0x6b')]));if(_0x381faa['newRange'][_0x250d('0x4b')]||_0x250d('0xc3')==_0x381faa[_0x250d('0x17')][_0x250d('0xdb')][_0x250d('0x3e')]||_0x250d('0xe3')==_0x348a77&&!Nt(_0x381faa[_0x250d('0x17')])||_0x250d('0xb9')==_0x348a77&&!(!_t(_0x4f72fc=_0x381faa[_0x250d('0x17')])&&!function(_0x17093b){return _0x17093b[_0x250d('0x89')][_0x250d('0x48')]==_0x17093b[_0x250d('0xf6')][_0x250d('0x122')]&&_0x17093b[_0x250d('0x89')][_0x250d('0x1f')];}(_0x4f72fc)))_0x21b8e1[_0x250d('0x76')](_0x3dde3e),_0x5cc08a=!0x0;else{if(!_0x5c6670||!_0x5c6670[_0x250d('0x75')])continue;_0x4892be[_0x250d('0x9d')](_0x5c6670);}}}var _0x4f72fc;return _0x4892be['size']>0x0&&(_0x5cc08a=!!this[_0x250d('0x25')](_0x4892be)||_0x5cc08a),_0x5cc08a;}),_0x18998c[_0x250d('0x102')][_0x250d('0xc6')][_0x250d('0x12b')](_0x5363bd=>{let _0x59db25=!0x1;for(const _0x429243 of _0x18998c[_0x250d('0x102')]['document'][_0x250d('0x6a')][_0x250d('0x68')]()){if('insert'!=_0x429243[_0x250d('0x8b')])continue;const _0x45eba5=_0x429243[_0x250d('0xca')][_0x250d('0x40')](_0x429243[_0x250d('0x28')]);if(_0x45eba5[_0x250d('0x1f')])for(const _0x3a590e of this[_0x250d('0xfa')]['values']()){if(_0x3a590e[_0x250d('0x88')]||!_0x3a590e[_0x250d('0x75')])continue;if(_0x250d('0xe3')!=_0x3a590e[_0x250d('0x8b')])continue;const _0x5c1af9=_0x3a590e['getFirstRange']();if(_0x5c1af9[_0x250d('0x89')][_0x250d('0x48')]!=_0x5c1af9[_0x250d('0xf6')][_0x250d('0x48')]&&_0x5c1af9[_0x250d('0xf6')][_0x250d('0x1')](_0x429243['position'])){const _0x5807b7=_0x18998c[_0x250d('0x102')][_0x250d('0x1d')](_0x5c1af9[_0x250d('0x89')],_0x45eba5);_0x5363bd[_0x250d('0xf0')](_0x3a590e[_0x250d('0x19')](),{'range':_0x5807b7}),_0x59db25=!0x0;}}}return _0x59db25;}),_0x18998c[_0x250d('0x102')][_0x250d('0xa7')]['on'](_0x250d('0x60'),(_0x3a3cef,_0x1443f3,_0xa05f46)=>{if(null==_0xa05f46){const {id:_0x452c7a}=this['_splitMarkerName'](_0x1443f3[_0x250d('0x5')]),_0x268ee6=this[_0x250d('0xfa')][_0x250d('0x121')](_0x452c7a);_0x268ee6&&_0x268ee6[_0x250d('0x6')](_0x1443f3[_0x250d('0x5')]);}}),_0x18998c[_0x250d('0x102')]['document']['on'](_0x250d('0x106'),()=>{const _0x59ad9a=Array[_0x250d('0x49')](_0x18998c[_0x250d('0x102')][_0x250d('0xc6')]['differ'][_0x250d('0x70')]())[_0x250d('0xe8')](_0x182482=>_0x250d('0xcf')===this[_0x250d('0xc1')](_0x182482[_0x250d('0x5')])[_0x250d('0xd0')]);if(0x0===_0x59ad9a['length'])return;_0x59ad9a['sort']((_0x46af41,_0x576fae)=>{const _0x2de791=_0x46af41['data'][_0x250d('0xa8')],_0x1d0213=_0x576fae['data'][_0x250d('0xa8')];return null===_0x2de791&&null===_0x1d0213?0x0:null===_0x2de791&&null!==_0x1d0213?-0x1:null!==_0x2de791&&null===_0x1d0213?0x1:_0x2de791[_0x250d('0x89')][_0x250d('0x2f')](_0x1d0213['start'])?-0x1:0x1;});const _0x3640d6=new Set(),_0x26d0eb=new Set();for(const {name:_0x3f47c6,data:_0x43c361}of _0x59ad9a){const {id:_0x14aa8f}=this[_0x250d('0xc1')](_0x3f47c6);if(null===_0x43c361[_0x250d('0xa8')]){const _0x2ac4e7=this[_0x250d('0xd4')](_0x3f47c6);_0x26d0eb[_0x250d('0x9d')](_0x2ac4e7);}else{const _0x58a600=this[_0x250d('0xfa')][_0x250d('0x121')](_0x14aa8f);null!==_0x43c361['newRange']||_0x58a600[_0x250d('0x75')]?(_0x3640d6[_0x250d('0x9d')](_0x58a600[_0x250d('0x138')]),_0x26d0eb[_0x250d('0x9d')](_0x58a600)):this[_0x250d('0xab')](_0x58a600);}}_0x26d0eb['size']>0x0&&this['_refreshSuggestionsChain'](_0x26d0eb);for(const _0x158e26 of _0x3640d6)this[_0x250d('0xff')](_0x250d('0xfc'),_0x158e26);}),_0x18998c['model']['on']('applyOperation',(_0x3785dc,_0x57f843)=>{const _0xf0e802=_0x57f843[0x0];if(!this[_0x250d('0xfa')][_0x250d('0xed')])return;if(!_0xf0e802[_0x250d('0xdc')])return;if(_0xf0e802[_0x250d('0xa3')][_0x250d('0x114')]||!_0xf0e802['batch'][_0x250d('0x12')])return;let _0x4e2f51,_0x2977d6;switch(_0xf0e802['type']){case'insert':_0x4e2f51=_0x18998c[_0x250d('0x102')]['createPositionAt'](_0xf0e802[_0x250d('0xca')]),_0x2977d6=_0x4e2f51[_0x250d('0x40')](_0xf0e802['howMany']);break;case _0x250d('0x9f'):_0x4e2f51=_0x18998c[_0x250d('0x102')][_0x250d('0xf9')](_0xf0e802['splitPosition']),_0x2977d6=_0x18998c[_0x250d('0x102')][_0x250d('0xf9')](_0xf0e802[_0x250d('0x1b')]);break;case _0x250d('0x4f'):_0x4e2f51=_0x18998c[_0x250d('0x102')][_0x250d('0xf9')](_0xf0e802[_0x250d('0xb8')]),_0x2977d6=_0x4e2f51[_0x250d('0x40')](_0xf0e802[_0x250d('0xe')]);break;default:return;}const _0x39f996=_0x18998c['model'][_0x250d('0x1d')](_0x4e2f51,_0x2977d6);_0x18998c[_0x250d('0x102')]['change'](()=>{for(const {suggestion:_0x1249f1,meta:_0xb1b7d}of this[_0x250d('0x91')](_0x39f996)){if(_0x1249f1[_0x250d('0x88')])continue;if('formatInline'==_0x1249f1['type'])continue;const _0x1bd8a5=_0x1249f1['data']&&_0x1249f1[_0x250d('0x54')]['multipleBlocks'];(_0x250d('0xe3')!=_0x1249f1['type']||'split'==_0xf0e802[_0x250d('0x8b')]&&!_0x1bd8a5)&&(_0xb1b7d[_0x250d('0xf7')]||'insertion'==_0x1249f1[_0x250d('0x8b')]&&_0xb1b7d['isOwn']||_0x1249f1[_0x250d('0xd8')]()[_0x250d('0x10d')](_0x39f996)&&this[_0x250d('0x3f')](_0x1249f1,_0x4e2f51,_0x2977d6));}});},{'priority':_0x250d('0x50')}),_0x18998c[_0x250d('0x102')]['on'](_0x250d('0x8c'),(_0x3a8433,_0x11cfde)=>{const _0x49ee03=_0x11cfde[0x0],_0x558bc9=_0x11cfde[0x1];if(_0x558bc9&&_0x558bc9[_0x250d('0x36')])return;if(this[_0x250d('0x139')])return;if(!this[_0x250d('0x87')]['value'])return;if(_0x49ee03[_0x250d('0x4b')])return;const _0x934f54=_0x18998c['model']['schema'],{start:_0x5e382d,end:_0x3b6063}=_0x49ee03[_0x250d('0xd8')](),_0x4d94af=_0x5e382d[_0x250d('0x9c')]&&_0x934f54[_0x250d('0x84')](_0x5e382d[_0x250d('0x9c')])?null:_0x934f54[_0x250d('0x9e')](_0x5e382d,'forward'),_0x16c0d4=_0x3b6063[_0x250d('0x122')]&&_0x934f54['isLimit'](_0x3b6063[_0x250d('0x122')])?null:_0x934f54[_0x250d('0x9e')](_0x3b6063,_0x250d('0x14')),_0x204399=_0x18998c[_0x250d('0x102')][_0x250d('0x1d')](_0x4d94af?_0x4d94af[_0x250d('0x89')]:_0x5e382d,_0x16c0d4?_0x16c0d4['end']:_0x3b6063);_0x18998c[_0x250d('0x102')][_0x250d('0x65')](_0x3cbb2d=>{this['markDeletion'](_0x204399);const _0x1525fe=_0x18998c['model'][_0x250d('0x6b')][_0x250d('0x9e')](_0x204399['start']);_0x49ee03['is']('documentSelection')?_0x3cbb2d[_0x250d('0xf3')](_0x1525fe):_0x49ee03[_0x250d('0x125')](_0x1525fe);}),_0x3a8433[_0x250d('0xfd')]();},{'priority':_0x517b7a[_0x250d('0xcd')]+0xa}),_0x18998c[_0x250d('0x102')]['on'](_0x250d('0x119'),(_0x388d0b,_0x48af16)=>{const _0x1fc1b0=_0x48af16[_0x48af16[_0x250d('0x28')]-0x1];_0x1fc1b0&&_0x1fc1b0[_0x250d('0x36')]||this[_0x250d('0x139')]||this[_0x250d('0x87')][_0x250d('0x2')]&&(_0x18998c[_0x250d('0x102')][_0x250d('0x65')](()=>{let _0x5ab059=_0x18998c[_0x250d('0x102')][_0x250d('0x119')](_0x48af16[0x0],_0x48af16[0x1],_0x48af16[0x2],{'forceDefaultExecution':!0x0});if(!_0x5ab059)return;_0x388d0b[_0x250d('0x141')]=_0x5ab059['clone']();const _0x44e7e1=_0x5ab059['end'][_0x250d('0x122')],_0x3cab87=_0x18998c[_0x250d('0x102')][_0x250d('0x6b')];_0x44e7e1&&_0x3cab87[_0x250d('0x15')](_0x44e7e1)&&!_0x3cab87[_0x250d('0xbd')](_0x44e7e1)&&(_0x5ab059=_0x18998c[_0x250d('0x102')][_0x250d('0x1d')](_0x5ab059[_0x250d('0x89')],_0x18998c[_0x250d('0x102')][_0x250d('0xf9')](_0x44e7e1,_0x250d('0xf6')))),this[_0x250d('0x13b')](_0x5ab059);}),_0x388d0b[_0x250d('0xfd')]());},{'priority':_0x250d('0x4')}),this['editor']['commands'][_0x250d('0x9d')](_0x250d('0xe7'),this[_0x250d('0x87')]),this[_0x250d('0xd')](_0x250d('0xe7'));const _0x466a93=new _0x37b7e0(_0x18998c,this[_0x250d('0xfa')]);_0x18998c[_0x250d('0x109')][_0x250d('0x9d')](_0x250d('0x63'),_0x466a93),this[_0x250d('0xd')](_0x250d('0x63'));const _0x8a70d=new _0x231d70(_0x18998c,this[_0x250d('0xfa')]);_0x18998c[_0x250d('0x109')][_0x250d('0x9d')](_0x250d('0xac'),_0x8a70d),this[_0x250d('0xd')](_0x250d('0xac')),_0x18998c[_0x250d('0x109')][_0x250d('0x9d')](_0x250d('0xae'),new _0x210eba(_0x18998c,_0x466a93,this[_0x250d('0xfa')])),this['enableCommand'](_0x250d('0xae')),_0x18998c[_0x250d('0x109')][_0x250d('0x9d')]('discardAllSuggestions',new _0x210eba(_0x18998c,_0x8a70d,this['_suggestions'])),this[_0x250d('0xd')](_0x250d('0xe1')),_0x18998c['commands'][_0x250d('0x9d')]('acceptSelectedSuggestions',new _0x286847(_0x18998c,_0x466a93,this[_0x250d('0xfa')])),this['enableCommand']('acceptSelectedSuggestions'),_0x18998c[_0x250d('0x109')][_0x250d('0x9d')](_0x250d('0x47'),new _0x286847(_0x18998c,_0x8a70d,this['_suggestions'])),this[_0x250d('0xd')](_0x250d('0x47'));const _0x36d682=_0x18998c['plugins'][_0x250d('0x121')](_0x250d('0x37'));this['listenTo'](_0x36d682,_0x250d('0x11f'),(_0x147e4e,{threadId:_0x44cc5a})=>{const _0x36350f=this[_0x250d('0xfa')][_0x250d('0x121')](_0x44cc5a);_0x36350f&&_0x36350f[_0x250d('0x5b')]&&0x1===_0x36350f[_0x250d('0x5b')][_0x250d('0x28')]&&this[_0x250d('0xc0')](_0x44cc5a,{'hasComments':!0x0});},{'priority':_0x250d('0x51')}),this[_0x250d('0xf2')](_0x36d682,_0x250d('0x83'),(_0xf9a00c,{threadId:_0x129727})=>{const _0x3602c5=this[_0x250d('0xfa')][_0x250d('0x121')](_0x129727);_0x3602c5&&_0x3602c5[_0x250d('0x5b')]&&!_0x3602c5[_0x250d('0x5b')][_0x250d('0x28')]&&this['_updateSuggestionData'](_0x129727,{'hasComments':!0x1});},{'priority':_0x250d('0x51')});}set[_0x250d('0x5d')](_0x5ba8e1){if(this[_0x250d('0x52')])throw new _0xcb584e(_0x250d('0x7d'),this);this[_0x250d('0x52')]=_0x5ba8e1;}get[_0x250d('0x5d')](){return this[_0x250d('0x52')];}['getSuggestions']({skipNotAttached:_0x1cfb69=!0x1,toJSON:_0x1204bc=!0x1}={}){const _0x137039=[];for(const _0x158295 of this['_suggestions'][_0x250d('0xb1')]())_0x1cfb69&&!_0x158295[_0x250d('0x75')]||_0x137039[_0x250d('0x5f')](_0x158295);return _0x1204bc?_0x137039[_0x250d('0x117')](_0x3b4e6c=>_0x3b4e6c[_0x250d('0xf5')]()):_0x137039;}['getSuggestion'](_0x2c56cb){const _0x28d3e9=this[_0x250d('0xfa')]['get'](_0x2c56cb);if(!_0x28d3e9)throw new _0xcb584e(_0x250d('0x4c'),this);return _0x28d3e9;}[_0x250d('0x11')](_0x26f1ed){return this[_0x250d('0xfa')][_0x250d('0xaa')](_0x26f1ed);}[_0x250d('0x8e')](_0x4fa3b8){const {authorId:_0x4cc577,id:_0x48f5a3,attributes:_0x86dd7a}=_0x4fa3b8,[_0xe4fad0,_0x4a43e2]=_0x4fa3b8[_0x250d('0x8b')][_0x250d('0x9f')](':'),_0x427850=this[_0x250d('0xfa')]['get'](_0x48f5a3)||this[_0x250d('0x55')](_0xe4fad0,_0x4a43e2,_0x48f5a3,_0x4cc577,_0x86dd7a);if(this[_0x250d('0x10b')](_0x427850),this[_0x250d('0x123')](_0x427850,_0xe4fad0,_0x4a43e2||null,_0x4cc577),_0x427850[_0x250d('0x41')]=_0x4fa3b8['createdAt'],_0x427850[_0x250d('0xb0')]=!0x0,_0x86dd7a&&_0x86dd7a[_0x250d('0x105')]){const _0x1cf9a2=_0x86dd7a[_0x250d('0x105')],_0x546a2a=this[_0x250d('0x10c')](_0x1cf9a2[_0x250d('0x95')]);_0x427850[_0x250d('0x71')]=_0x1cf9a2['createdAt'],_0x427850[_0x250d('0x140')]=_0x546a2a,_0x427850[_0x250d('0x22')]=!0x0;}else _0x427850[_0x250d('0x71')]=_0x4fa3b8['createdAt'];switch(_0x4fa3b8[_0x250d('0x54')]&&(_0x427850['data']=_0x4fa3b8[_0x250d('0x54')]),_0x4fa3b8[_0x250d('0x30')]&&(_0x427850[_0x250d('0x30')]=_0x4fa3b8[_0x250d('0x30')]),this[_0x250d('0x52')]&&this[_0x250d('0x52')][_0x250d('0xde')]||(_0x427850['_saved']=!0x0),this[_0x250d('0x13a')][_0x250d('0x121')](_0x427850)){case _0x250d('0x39'):this[_0x250d('0x13a')][_0x250d('0xad')](_0x427850,_0x250d('0xdf'));break;case _0x250d('0x32'):_0x427850[_0x250d('0x75')]?(this[_0x250d('0x57')](new Set([_0x427850])),this[_0x250d('0x25')](new Set([_0x427850])),this[_0x250d('0x13a')][_0x250d('0xad')](_0x427850,'ready'),this[_0x250d('0xff')](_0x250d('0xd2'),_0x427850)):this['_suggestionState']['set'](_0x427850,_0x250d('0x10e'));}return _0x427850;}['acceptSuggestion'](_0x4cfb97){this[_0x250d('0x36')](()=>{this[_0x250d('0x126')][_0x250d('0x102')][_0x250d('0x65')](()=>{for(const _0x37ebce of _0x4cfb97['getAllAdjacentSuggestions']())_0x37ebce[_0x250d('0x4a')]();});});}[_0x250d('0xac')](_0x43b56e){this[_0x250d('0x36')](()=>{this['editor']['model'][_0x250d('0x65')](()=>{for(const _0x270025 of _0x43b56e['getAllAdjacentSuggestions']())_0x270025[_0x250d('0x3d')]();});});}[_0x250d('0xd')](_0x25a9ec,_0x25dde4){const _0x48f9de=this['editor'][_0x250d('0x109')][_0x250d('0x121')](_0x25a9ec);if(!_0x48f9de)throw new _0xcb584e(_0x250d('0x69'),this,{'commandName':_0x25a9ec});this[_0x250d('0x24')]['add'](_0x48f9de),_0x25dde4&&_0x48f9de['on'](_0x250d('0x6d'),(_0xc1c953,_0x51106c)=>{this[_0x250d('0x87')][_0x250d('0x2')]&&(this[_0x250d('0x139')]||_0x51106c['length']>0x0&&_0x51106c[_0x51106c[_0x250d('0x28')]-0x1]&&_0x51106c[_0x51106c['length']-0x1]['forceDefaultExecution']||(_0x25dde4((..._0x1429f5)=>_0x48f9de[_0x250d('0x6d')](..._0x1429f5,{'forceDefaultExecution':!0x0}),..._0x51106c),_0xc1c953['stop']()));},{'priority':'high'});}[_0x250d('0x36')](_0x5f1c9f){let _0x2c6250,_0x5ee996;const _0x1b504d=this[_0x250d('0x139')];this[_0x250d('0x139')]=!0x0;try{_0x2c6250=_0x5f1c9f();}catch(_0x158f3f){_0x5ee996=_0x158f3f;}return _0x1b504d||(this[_0x250d('0x139')]=!0x1),_0x5ee996&&_0xcb584e[_0x250d('0x85')](_0x5ee996,this),_0x2c6250;}['markInsertion'](_0x2f2f15,_0x2d2c94=null,_0xfd53a2={}){if(_0x2f2f15[_0x250d('0x4b')])return null;const _0x4e442e=this[_0x250d('0x126')][_0x250d('0x115')][_0x250d('0x121')](_0x250d('0x77'))['me'];for(const {suggestion:_0x4018b5,meta:_0x2f10a0}of this[_0x250d('0x91')](_0x2f2f15,_0x250d('0x5e')))if(_0x2f10a0[_0x250d('0x11c')]){if(!_0x2f10a0['isNextTo']){if(_0x2f10a0[_0x250d('0xf7')]){if(!this[_0x250d('0xbc')]||!Ut(_0x4018b5,_0xfd53a2))continue;return _0x4018b5;}if(Ut(_0x4018b5,_0xfd53a2))return _0x4018b5;this[_0x250d('0x3f')](_0x4018b5,_0x2f2f15[_0x250d('0x89')],_0x2f2f15[_0x250d('0xf6')]);break;}if(_0x2d2c94==_0x4018b5['subType']&&Ut(_0x4018b5,_0xfd53a2)){const _0x36c0d1=_0x4018b5[_0x250d('0xd8')]();return _0x36c0d1[_0x250d('0x89')][_0x250d('0x1')](_0x2f2f15[_0x250d('0xf6')])?this[_0x250d('0x11e')](_0x4018b5,this[_0x250d('0x59')]['createRange'](_0x2f2f15[_0x250d('0x89')],_0x36c0d1[_0x250d('0xf6')])):this[_0x250d('0x11e')](_0x4018b5,this[_0x250d('0x59')]['createRange'](_0x36c0d1['start'],_0x2f2f15[_0x250d('0xf6')])),_0x4018b5;}}const _0x735515=_0x2bf15d(),_0x1a6e5c=_0x4e442e['id'],_0x2c38a5=_0x2d2c94?_0x250d('0x11d')+_0x2d2c94:_0x250d('0x5e'),_0x418b9f=this['_setSuggestionData']({'id':_0x735515,'type':_0x2c38a5,'createdAt':new Date(),'authorId':_0x1a6e5c,'attributes':_0xfd53a2});return this[_0x250d('0x92')](_0x2c38a5,_0x735515,_0x1a6e5c,_0x2f2f15),_0x418b9f;}[_0x250d('0xe5')](_0x2ca6cd,_0x3b6414='multi',_0x4310ba={}){const _0x51347d=this[_0x250d('0x126')][_0x250d('0x115')][_0x250d('0x121')](_0x250d('0x77'))['me'],_0x565bc2=this[_0x250d('0xd3')][_0x250d('0xf1')]('insertion',_0x3b6414,_0x250d('0x111'));for(const _0x598838 of this[_0x250d('0x13f')]())if(_0x598838[_0x250d('0x140')]['id']==_0x51347d['id']&&_0x250d('0x5e')==_0x598838[_0x250d('0x8b')]&&_0x598838[_0x250d('0x7e')]==_0x3b6414&&Ut(_0x598838,_0x4310ba)&&(_0x565bc2(_0x598838['getRanges'](),_0x2ca6cd)||_0x565bc2(_0x2ca6cd,_0x598838[_0x250d('0x118')]()))){for(const _0x3f34df of _0x2ca6cd)_0x598838[_0x250d('0x38')](_0x3f34df);return _0x598838;}for(const {suggestion:_0xb5a127,meta:_0x59738c}of this[_0x250d('0x91')](_0x2ca6cd,'insertion')){if(!_0x59738c['isOwn'])continue;if(!this[_0x250d('0xbc')]&&_0x59738c['containsRangeInObject'])continue;if(!Ut(_0xb5a127,_0x4310ba))continue;let _0x43587e=!0x0;for(const _0x402e5c of _0xb5a127['getRanges']())for(const _0x2b5328 of _0x2ca6cd)if(!_0x402e5c['containsRange'](_0x2b5328)){_0x43587e=!0x1;break;}if(_0x43587e)return _0xb5a127;}const _0x408530=_0x2bf15d(),_0x4be68f=_0x51347d['id'],_0x39f5c6='insertion:'+_0x3b6414,_0x540837=this[_0x250d('0x82')]({'id':_0x408530,'type':_0x39f5c6,'createdAt':new Date(),'authorId':_0x4be68f,'attributes':_0x4310ba});for(const _0x4c634e of _0x2ca6cd)this['_addSuggestionMarker'](_0x39f5c6,_0x408530,_0x4be68f,_0x4c634e,_0x4b3b66['getMultiRangeId']());return _0x540837;}[_0x250d('0x13')](_0x5a54b9,_0x4d0948,_0x3aa62a=null,_0x11b4ac={}){if(_0x3aa62a=_0x3aa62a||$t(_0x4d0948),_0x5a54b9['isCollapsed'])return null;if('never'===this[_0x250d('0xdd')]){const _0x396094=this[_0x250d('0xd3')][_0x250d('0xf1')](_0x250d('0xc9'),_0x3aa62a,_0x250d('0x4a'));return this[_0x250d('0x36')](()=>_0x396094([_0x5a54b9],_0x4d0948,_0x11b4ac)),null;}const _0x1a3a28=this[_0x250d('0x126')]['plugins'][_0x250d('0x121')](_0x250d('0x77'))['me'],_0x27e691=[];if(_0x250d('0xfb')!==this[_0x250d('0xdd')])for(const {suggestion:_0x48fd45,meta:_0x7bc327}of this[_0x250d('0x91')](_0x5a54b9,'insertion'))_0x7bc327[_0x250d('0x11c')]&&!_0x7bc327[_0x250d('0x116')]&&_0x27e691['push'](..._0x48fd45[_0x250d('0x118')]());const _0x136171=function(_0x4c8e75,_0x3326e0){const _0x4c5732=[];for(const _0x4927d3 of _0x3326e0){const _0x4a3749=_0x4c8e75[_0x250d('0x12f')](_0x4927d3);_0x4a3749&&_0x4c5732[_0x250d('0x5f')](_0x4a3749);}return _0x4c5732;}(_0x5a54b9,_0x27e691),_0x480e94=function(_0x2bfe1f,_0x45e012){const _0x10837f=[_0x2bfe1f];for(const _0x1680bf of _0x45e012){let _0x3f1696=0x0;for(;_0x3f1696<_0x10837f[_0x250d('0x28')];){const _0x53815f=_0x10837f[_0x3f1696][_0x250d('0x7c')](_0x1680bf);_0x10837f[_0x250d('0x18')](_0x3f1696,0x1,..._0x53815f),_0x3f1696+=_0x53815f[_0x250d('0x28')];}}return _0x10837f;}(_0x5a54b9,_0x27e691);_0x136171[_0x250d('0x28')]&&this[_0x250d('0x59')]['change'](()=>{for(const _0x50cca9 of _0x136171){const _0x3e4e06=this[_0x250d('0xd3')]['getSuggestionCallback'](_0x250d('0xc9'),_0x3aa62a,_0x250d('0x4a'));this[_0x250d('0x36')](()=>_0x3e4e06([_0x50cca9],_0x4d0948,_0x11b4ac));}});for(const _0x92539b of _0x480e94){let _0x59c77e=null,_0x291908=_0x92539b[_0x250d('0x89')],_0x3b15be=_0x92539b['end'];for(const {suggestion:_0x1a9eb1,meta:_0x1b04f1}of this[_0x250d('0x91')](_0x92539b,_0x250d('0xc9'))){if(!_0x1b04f1[_0x250d('0x11c')])continue;if(_0x1a9eb1[_0x250d('0x7e')]!=_0x3aa62a)continue;if(!Ut(_0x1a9eb1,_0x11b4ac))continue;const _0x5289e3=_0x1a9eb1[_0x250d('0xd8')]();if(_0x5289e3[_0x250d('0x10d')](_0x92539b,!0x0))return null;_0x291908=_0x291908[_0x250d('0x2f')](_0x5289e3[_0x250d('0x89')])?_0x291908:_0x5289e3[_0x250d('0x89')],_0x3b15be=_0x3b15be[_0x250d('0xc5')](_0x5289e3['end'])?_0x3b15be:_0x5289e3[_0x250d('0xf6')],_0x59c77e?_0x5289e3[_0x250d('0x89')][_0x250d('0x2f')](_0x59c77e['getFirstRange']()[_0x250d('0x89')])?(_0x59c77e['removeMarkers'](),_0x59c77e=_0x1a9eb1):_0x1a9eb1[_0x250d('0x128')]():_0x59c77e=_0x1a9eb1;}const _0x11434d=this[_0x250d('0x59')][_0x250d('0x1d')](_0x291908,_0x3b15be);if(_0x59c77e)this[_0x250d('0x11e')](_0x59c77e,_0x11434d);else{const _0xf3a056=_0x2bf15d(),_0x58d802=_0x1a3a28['id'];this[_0x250d('0x82')]({'id':_0xf3a056,'type':'formatInline:'+_0x3aa62a,'data':_0x4d0948,'createdAt':new Date(),'authorId':_0x58d802,'attributes':_0x11b4ac}),this[_0x250d('0x92')]('formatInline:'+_0x3aa62a,_0xf3a056,_0x58d802,_0x11434d);}}return null;}['markBlockFormat'](_0x30a2ab,_0x730c52,_0x136213=[],_0x591e79=null,_0x382eae={}){_0x730c52[_0x250d('0x130')]||(_0x730c52[_0x250d('0x130')]=_0x730c52['commandName']),_0x730c52[_0x250d('0x34')]=_0x30a2ab['is'](_0x250d('0xa6')),_0x591e79=_0x591e79||$t(_0x730c52);const _0x45cbb1=_0x136213[_0x250d('0x117')](_0x24f2f2=>Rt(_0x24f2f2,this[_0x250d('0x59')])),_0x4c5471=_0x30a2ab['is'](_0x250d('0xa6'))?_0x30a2ab:Rt(_0x30a2ab,this[_0x250d('0x59')]);if('never'===this[_0x250d('0xdd')]){const _0x507e01=this[_0x250d('0xd3')]['getSuggestionCallback'](_0x250d('0xe3'),_0x591e79,_0x250d('0x4a'));return this['forceDefaultExecution'](()=>_0x507e01([_0x4c5471],_0x730c52,_0x382eae)),null;}_0x45cbb1['push'](_0x4c5471);let _0x51b8f5=!0x0;for(const _0x409fb5 of _0x45cbb1)if(!this[_0x250d('0x110')](_0x409fb5)){_0x51b8f5=!0x1;break;}if(_0x51b8f5&&_0x250d('0xfb')!==this[_0x250d('0xdd')]){const _0x2889f7=this[_0x250d('0xd3')]['getSuggestionCallback']('formatBlock',_0x591e79,_0x250d('0x4a'));return this['forceDefaultExecution'](()=>_0x2889f7([_0x4c5471],_0x730c52,_0x382eae)),null;}let _0x1089e3=null,_0x1b3b40=_0x4c5471[_0x250d('0x89')],_0x4636b5=_0x4c5471[_0x250d('0xf6')];for(const {suggestion:_0x38054f,meta:_0x134da6}of this['_findSuggestions'](_0x4c5471,_0x250d('0xe3'))){if(!_0x134da6['isOwn'])continue;if(_0x134da6[_0x250d('0x1e')]||_0x134da6['containsRangeInObject']||_0x134da6['isInsideObject'])continue;if(_0x38054f[_0x250d('0x54')][_0x250d('0x130')]!=_0x730c52[_0x250d('0x130')])continue;if(!Ut(_0x38054f,_0x382eae))continue;const _0x3d8221=_0x38054f[_0x250d('0xd8')]();if(_0x38054f[_0x250d('0x7e')]==_0x591e79){if(_0x3d8221[_0x250d('0x10d')](_0x4c5471,!0x0))return null;_0x1b3b40=_0x1b3b40[_0x250d('0x2f')](_0x3d8221['start'])?_0x1b3b40:_0x3d8221[_0x250d('0x89')],_0x4636b5=_0x4636b5[_0x250d('0xc5')](_0x3d8221[_0x250d('0xf6')])?_0x4636b5:_0x3d8221[_0x250d('0xf6')],_0x1089e3?_0x3d8221[_0x250d('0x89')][_0x250d('0x2f')](_0x1089e3[_0x250d('0xd8')]()['start'])?(_0x1089e3[_0x250d('0x128')](),_0x1089e3=_0x38054f):_0x38054f[_0x250d('0x128')]():_0x1089e3=_0x38054f;}else{const _0x3e11b7=_0x4c5471[_0x250d('0x12f')](_0x3d8221);this[_0x250d('0x43')](_0x38054f,_0x3e11b7);}}const _0x47283d=this[_0x250d('0x126')][_0x250d('0x115')][_0x250d('0x121')]('Users')['me'],_0x5c3393=_0x2bf15d(),_0x513e0e=_0x47283d['id'];if(_0x1089e3)return this[_0x250d('0x11e')](_0x1089e3,this[_0x250d('0x59')]['createRange'](_0x1b3b40,_0x4636b5)),_0x1089e3;{const _0x94fb8a=this['_setSuggestionData']({'id':_0x5c3393,'type':_0x250d('0xb5')+_0x591e79,'data':_0x730c52,'createdAt':new Date(),'authorId':_0x513e0e,'attributes':_0x382eae});return this[_0x250d('0x92')]('formatBlock:'+_0x591e79,_0x5c3393,_0x513e0e,this['_model'][_0x250d('0x1d')](_0x1b3b40,_0x4636b5)),_0x94fb8a;}}[_0x250d('0x136')](_0x219377,_0x3d9fdd,_0x179fe7=[],_0x5debab=null,_0x51b14f={}){_0x3d9fdd[_0x250d('0x130')]||(_0x3d9fdd[_0x250d('0x130')]=_0x3d9fdd[_0x250d('0xfe')]);const _0x3f77fc=_0x219377[0x0];_0x3d9fdd[_0x250d('0x34')]=_0x3f77fc['is']('range'),_0x5debab=_0x5debab||$t(_0x3d9fdd);const _0x5cc5e6=_0x179fe7[_0x250d('0x117')](_0x46da52=>Rt(_0x46da52,this[_0x250d('0x59')])),_0x45fe85=_0x3f77fc['is'](_0x250d('0xa6'))?_0x219377:_0x219377['map'](_0x17c1ee=>Rt(_0x17c1ee,this[_0x250d('0x59')]));if(_0x250d('0x27')===this[_0x250d('0xdd')]){const _0x25a326=this[_0x250d('0xd3')]['getSuggestionCallback'](_0x250d('0xe3'),_0x5debab,_0x250d('0x4a'));return this['forceDefaultExecution'](()=>_0x25a326(_0x45fe85,_0x3d9fdd,_0x51b14f)),null;}_0x5cc5e6[_0x250d('0x5f')](..._0x45fe85);let _0x9a3f06=!0x0;for(const _0x103b2c of _0x5cc5e6)if(!this[_0x250d('0x110')](_0x103b2c)){_0x9a3f06=!0x1;break;}if(_0x9a3f06&&_0x250d('0xfb')!==this[_0x250d('0xdd')]){const _0x148ba9=this['_suggestionFactory'][_0x250d('0xf1')](_0x250d('0xe3'),_0x5debab,_0x250d('0x4a'));return this[_0x250d('0x36')](()=>_0x148ba9(_0x45fe85,_0x3d9fdd,_0x51b14f)),null;}const _0x17b120=this[_0x250d('0x126')][_0x250d('0x115')][_0x250d('0x121')](_0x250d('0x77'))['me'];for(const _0x3af863 of this[_0x250d('0x13f')]()){if(_0x3af863[_0x250d('0x140')]['id']!=_0x17b120['id'])continue;if(_0x250d('0xe3')!=_0x3af863['type']||_0x3af863[_0x250d('0x54')][_0x250d('0x130')]!=_0x3d9fdd[_0x250d('0x130')])continue;if(!Ut(_0x3af863,_0x51b14f))continue;const _0x15f588=_0x3af863['subType']==_0x5debab;for(let _0x22769d=0x0;_0x22769d<_0x45fe85[_0x250d('0x28')];_0x22769d++){const _0x2073b3=_0x45fe85[_0x22769d];for(const _0x46b418 of _0x3af863[_0x250d('0x6e')]()){const _0x1c14f4=_0x46b418[_0x250d('0x129')]();if(_0x2073b3['isEqual'](_0x1c14f4)){_0x15f588?(_0x45fe85[_0x250d('0x18')](_0x22769d,0x1),_0x22769d--):_0x3af863[_0x250d('0x76')](_0x46b418[_0x250d('0x5')]);break;}}}}if(0x0==_0x45fe85[_0x250d('0x28')])return null;const _0x569ee9=this['_suggestionFactory'][_0x250d('0xf1')](_0x250d('0xe3'),_0x5debab,_0x250d('0x111'));for(const _0x467ddb of this[_0x250d('0x13f')]())if(_0x467ddb[_0x250d('0x140')]['id']==_0x17b120['id']&&_0x250d('0xe3')==_0x467ddb[_0x250d('0x8b')]&&_0x467ddb[_0x250d('0x54')][_0x250d('0x130')]==_0x3d9fdd['formatGroupId']&&_0x467ddb[_0x250d('0x7e')]==_0x5debab&&Ut(_0x467ddb,_0x51b14f)&&(_0x569ee9(_0x467ddb[_0x250d('0x118')](),_0x45fe85)||_0x569ee9(_0x45fe85,_0x467ddb['getRanges']()))){for(const _0x44048b of _0x45fe85)_0x467ddb[_0x250d('0x38')](_0x44048b);return _0x467ddb;}const _0x11db02=_0x2bf15d(),_0x44c0dc=_0x17b120['id'],_0xad41=_0x250d('0xb5')+_0x5debab,_0x26bac4=this['_setSuggestionData']({'id':_0x11db02,'type':_0xad41,'data':_0x3d9fdd,'createdAt':new Date(),'authorId':_0x44c0dc,'attributes':_0x51b14f});for(const _0x410163 of _0x45fe85)this[_0x250d('0x92')](_0xad41,_0x11db02,_0x44c0dc,_0x410163,_0x4b3b66[_0x250d('0x6f')]());return _0x26bac4;}['markDeletion'](_0x469833,_0x1d6037=null,_0x30490d={}){if(_0x469833[_0x250d('0x4b')])return null;const _0x183b4a=this[_0x250d('0x126')][_0x250d('0x115')][_0x250d('0x121')]('Users')['me'],_0x4f3614=new _0x9d3d24(_0x469833['start'],_0x469833[_0x250d('0xf6')]);for(const {suggestion:_0x240f26,meta:_0xc031a8}of this[_0x250d('0x91')](_0x4f3614,_0x250d('0x5e')))if(_0xc031a8[_0x250d('0x11c')]&&!_0xc031a8[_0x250d('0x1e')]){if(_0x240f26[_0x250d('0x88')]){const _0x1fe101=_0x240f26[_0x250d('0x118')]()[_0x250d('0xe8')](_0x41723f=>'$graveyard'!=_0x41723f['root'][_0x250d('0x3e')]);_0x1fe101[_0x250d('0x11a')](_0x2e5e00=>_0x4f3614[_0x250d('0x10d')](_0x2e5e00,!0x0))&&_0x240f26['discard']();if(_0x1fe101[_0x250d('0x8a')](_0x4adcf7=>_0x4adcf7[_0x250d('0x10d')](_0x4f3614,!0x0))){const _0x6d07=this[_0x250d('0xd3')][_0x250d('0xf1')](_0x250d('0xb9'),_0x1d6037,_0x250d('0x4a'));return this[_0x250d('0x36')](()=>_0x6d07([_0x4f3614],null,_0x30490d)),null;}}else{const _0x592eec=_0x4f3614[_0x250d('0x12f')](_0x240f26[_0x250d('0xd8')]());null!==_0x592eec&&_0x240f26[_0x250d('0x45')]([_0x592eec],null,_0x30490d);}}if(_0x4f3614[_0x250d('0xee')](),_0x4f3614[_0x250d('0x4b')]||_0x250d('0xc3')==_0x4f3614[_0x250d('0xdb')][_0x250d('0x3e')])return null;let _0x4214df=null,_0x20d77c=_0x4f3614[_0x250d('0x89')],_0x1a839c=_0x4f3614[_0x250d('0xf6')];const _0x5367f6=this['_findSuggestions'](_0x4f3614,'deletion');for(const {suggestion:_0x4fbf3a,meta:_0x4ba287}of _0x5367f6){const _0x5a0dc1=this['_model'][_0x250d('0x1d')](_0x20d77c,_0x1a839c);if(_0x4ba287[_0x250d('0x11c')]&&(this[_0x250d('0xbc')]||!_0x4ba287[_0x250d('0xf7')]&&!_0x4ba287[_0x250d('0x116')])){if(_0x4fbf3a[_0x250d('0x88')]){if(!Ut(_0x4fbf3a,_0x30490d))continue;let _0x4cb155=!0x0;for(const _0x354580 of _0x4fbf3a[_0x250d('0x118')]()){if(_0x354580['containsRange'](_0x5a0dc1,!0x0))return _0x4fbf3a;_0x5a0dc1[_0x250d('0x10d')](_0x354580)||(_0x4cb155=!0x1);}_0x4cb155&&_0x4fbf3a['discard']();}else{const _0x3284af=_0x4fbf3a[_0x250d('0xd8')]();if(_0x3284af[_0x250d('0x10d')](_0x5a0dc1,!0x0))return _0x4fbf3a;if(!Ut(_0x4fbf3a,_0x30490d)){_0x5a0dc1['containsRange'](_0x3284af)?_0x4fbf3a[_0x250d('0x128')]():_0x3284af['containsPosition'](_0x20d77c)?_0x20d77c=_0x3284af[_0x250d('0xf6')]:_0x3284af[_0x250d('0x131')](_0x1a839c)&&(_0x1a839c=_0x3284af[_0x250d('0x89')]);continue;}_0x20d77c=_0x20d77c[_0x250d('0x2f')](_0x3284af['start'])?_0x20d77c:_0x3284af[_0x250d('0x89')],_0x1a839c=_0x1a839c[_0x250d('0xc5')](_0x3284af['end'])?_0x1a839c:_0x3284af[_0x250d('0xf6')],_0x30490d=Object[_0x250d('0x134')]({},_0x4fbf3a['attributes']),_0x4214df?_0x3284af[_0x250d('0x89')][_0x250d('0x2f')](_0x4214df['getFirstRange']()[_0x250d('0x89')])?(_0x4214df[_0x250d('0x128')](),_0x4214df=_0x4fbf3a):_0x4fbf3a[_0x250d('0x128')]():_0x4214df=_0x4fbf3a;}}}if(_0x4214df)return this[_0x250d('0x11e')](_0x4214df,this[_0x250d('0x59')][_0x250d('0x1d')](_0x20d77c,_0x1a839c)),_0x4214df;{const _0x54d471=_0x2bf15d(),_0x51a00c=this[_0x250d('0x59')][_0x250d('0x1d')](_0x20d77c,_0x1a839c),_0x56bc68=_0x183b4a['id'],_0x653bac=_0x1d6037?'deletion:'+_0x1d6037:_0x250d('0xb9'),_0x4a3f37=this[_0x250d('0x82')]({'id':_0x54d471,'type':_0x653bac,'createdAt':new Date(),'authorId':_0x56bc68,'attributes':_0x30490d});return this[_0x250d('0x92')](_0x653bac,_0x54d471,_0x56bc68,_0x51a00c),_0x4a3f37;}}['markMultiRangeDeletion'](_0x3c572f,_0x53ff18=_0x250d('0x3b'),_0x90e689={}){const _0x214e0d=this['editor'][_0x250d('0x115')][_0x250d('0x121')]('Users')['me'],_0xa717ea=_0x3c572f[_0x250d('0x117')](_0x554425=>new _0x9d3d24(_0x554425[_0x250d('0x89')],_0x554425[_0x250d('0xf6')])),_0x25ecc0=new Set();for(const {suggestion:_0x10c489,meta:_0x31f1f5}of this[_0x250d('0x91')](_0xa717ea,'insertion'))_0x31f1f5[_0x250d('0x11c')]&&!_0x31f1f5[_0x250d('0x1e')]&&_0x25ecc0[_0x250d('0x9d')](_0x10c489);for(const _0x5dfb4e of _0x25ecc0)if(_0x5dfb4e['isMultiRange']){const _0x45a421=_0x5dfb4e[_0x250d('0x118')]();(!_0x5dfb4e[_0x250d('0x30')]||!_0x5dfb4e[_0x250d('0x30')][_0x250d('0xc')])&&(_0x45a421[_0x250d('0x11a')](_0x13767b=>_0xa717ea[_0x250d('0x8a')](_0x3cc42b=>_0x3cc42b['containsRange'](_0x13767b,!0x0)))&&_0x5dfb4e[_0x250d('0x3d')]());if(_0xa717ea['every'](_0x49b31a=>_0x45a421[_0x250d('0x8a')](_0x15850b=>_0x15850b['containsRange'](_0x49b31a,!0x0)))){const _0x51c54a=this[_0x250d('0xd3')]['getSuggestionCallback'](_0x250d('0xb9'),_0x53ff18,_0x250d('0x4a'));return this[_0x250d('0x36')](()=>_0x51c54a(_0x3c572f,null,_0x90e689)),null;}}else{const _0x62ea7c=_0x5dfb4e['getFirstRange']();_0xa717ea[_0x250d('0x8a')](_0x27795e=>_0x27795e['containsRange'](_0x62ea7c,!0x0))&&_0x5dfb4e[_0x250d('0x3d')]();if(_0xa717ea[_0x250d('0x11a')](_0x4e5c19=>_0x62ea7c[_0x250d('0x10d')](_0x4e5c19,!0x0))){const _0x17fc42=this['_suggestionFactory']['getSuggestionCallback'](_0x250d('0xb9'),_0x53ff18,_0x250d('0x4a'));return this['forceDefaultExecution'](()=>_0x17fc42(_0xa717ea,null,_0x90e689)),null;}}const _0x798fb9=this[_0x250d('0xd3')][_0x250d('0xf1')](_0x250d('0xb9'),_0x53ff18,'join');let _0x8f19f2=null;for(const _0x45a674 of this[_0x250d('0x13f')]())if(_0x45a674[_0x250d('0x140')]['id']==_0x214e0d['id']&&_0x45a674[_0x250d('0x75')]&&'deletion'==_0x45a674[_0x250d('0x8b')]&&_0x45a674['subType']==_0x53ff18&&Ut(_0x45a674,_0x90e689)&&(_0x798fb9(_0x45a674['getRanges'](),_0xa717ea)||_0x798fb9(_0xa717ea,_0x45a674['getRanges']()))){if(_0x8f19f2){if(_0x45a674[_0x250d('0x5b')]&&_0x45a674[_0x250d('0x5b')][_0x250d('0x28')])continue;for(const _0x343736 of _0x45a674[_0x250d('0x118')]())_0x8f19f2[_0x250d('0x94')](_0x343736)||_0x8f19f2['addRange'](_0x343736);_0x45a674[_0x250d('0x128')]();}else{_0x8f19f2=_0x45a674;for(const _0x414bca of _0xa717ea)_0x45a674[_0x250d('0x94')](_0x414bca)||_0x45a674[_0x250d('0x38')](_0x414bca);}}if(_0x8f19f2)return _0x8f19f2;_0x25ecc0['clear']();for(const {suggestion:_0x2f2301,meta:_0x43953c}of this[_0x250d('0x91')](_0xa717ea,_0x250d('0xb9')))_0x43953c[_0x250d('0x11c')]&&(this[_0x250d('0xbc')]||!_0x43953c['containsRangeInObject']&&!_0x43953c[_0x250d('0x116')])&&Ut(_0x2f2301,_0x90e689)&&_0x25ecc0[_0x250d('0x9d')](_0x2f2301);for(const _0x4c10f9 of _0x25ecc0){const _0x5a0b2d=_0x4c10f9[_0x250d('0x118')]();if(!_0x90e689||!_0x90e689[_0x250d('0xc')]){if(_0xa717ea[_0x250d('0x11a')](_0x3223b3=>_0x5a0b2d[_0x250d('0x8a')](_0x586244=>_0x586244[_0x250d('0x10d')](_0x3223b3,!0x0))))return _0x4c10f9;}(!_0x4c10f9[_0x250d('0x30')]||!_0x4c10f9[_0x250d('0x30')][_0x250d('0xc')])&&(_0x5a0b2d[_0x250d('0x11a')](_0x28ad2e=>_0xa717ea[_0x250d('0x8a')](_0x392eb2=>_0x392eb2[_0x250d('0x10d')](_0x28ad2e,!0x0)))&&_0x4c10f9['discard']());}const _0x2ae159=_0x2bf15d(),_0x5cfabe=_0x214e0d['id'],_0x5f5604='deletion:'+_0x53ff18,_0x3a1354=this[_0x250d('0x82')]({'id':_0x2ae159,'type':_0x5f5604,'createdAt':new Date(),'authorId':_0x5cfabe,'attributes':_0x90e689});for(const _0xc120a6 of _0xa717ea)_0xc120a6[_0x250d('0xee')](),_0xc120a6[_0x250d('0x4b')]||_0x250d('0xc3')==_0xc120a6[_0x250d('0xdb')][_0x250d('0x3e')]||this[_0x250d('0x92')](_0x5f5604,_0x2ae159,_0x5cfabe,_0xc120a6,_0x4b3b66[_0x250d('0x6f')]());return _0x3a1354;}[_0x250d('0x11e')](_0x1985db,_0x5198a6){const _0x149ab0=_0x1985db[_0x250d('0x19')]();this[_0x250d('0x59')][_0x250d('0x65')](_0x665186=>{_0x665186['updateMarker'](_0x149ab0,{'range':_0x5198a6});});}[_0x250d('0x10b')](_0x195a7e){const _0x543c12=_0x195a7e['id'],_0x3876cf=this['editor']['config']['get'](_0x250d('0x103'));this[_0x250d('0xa2')][_0x250d('0xe0')](_0x543c12)||this['_commentsRepository'][_0x250d('0x7')]({'channelId':_0x3876cf,'threadId':_0x543c12,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x43c6a1=this[_0x250d('0xa2')]['getCommentThread'](_0x543c12);_0x43c6a1['unbind'](_0x250d('0xe6')),_0x43c6a1[_0x250d('0xe6')]=!0x1,_0x195a7e[_0x250d('0x5b')]=_0x43c6a1;}[_0x250d('0x123')](_0x2e1f81,_0x5b41e2,_0x3c3728,_0x333194){if(_0x2e1f81[_0x250d('0x8b')]!=_0x5b41e2||_0x2e1f81['subType']!=_0x3c3728||_0x2e1f81[_0x250d('0x1a')]['id']!=_0x333194)throw this['editor'][_0x250d('0x58')](_0x250d('0x12a')),new _0xcb584e(_0x250d('0x12a'),this);}['_cutOutSuggestionMarker'](_0x5d4427,_0x199b8f){const _0x30550a=_0x5d4427['getFirstRange']();if(_0x199b8f['isEqual'](_0x30550a))_0x5d4427[_0x250d('0x128')]();else{if(_0x30550a['containsRange'](_0x199b8f)){const _0x30bd66=this[_0x250d('0x59')][_0x250d('0xf9')](_0x199b8f[_0x250d('0x89')]['nodeBefore'],_0x250d('0xf6'));this[_0x250d('0x11e')](_0x5d4427,this['_model'][_0x250d('0x1d')](_0x30550a['start'],_0x30bd66));const _0x39d27b=_0x2bf15d(),_0xe84ffb=_0x5d4427[_0x250d('0x1a')]['id'],_0x454602=_0x5d4427[_0x250d('0x8b')]+':'+_0x5d4427[_0x250d('0x7e')];this[_0x250d('0x82')]({'id':_0x39d27b,'type':_0x454602,'createdAt':new Date(),'authorId':_0xe84ffb,'data':_0x5d4427[_0x250d('0x54')],'attributes':_0x5d4427[_0x250d('0x30')]});const _0x38c311=this[_0x250d('0x59')]['createPositionAt'](_0x199b8f['end'][_0x250d('0x48')],_0x250d('0xcc')),_0x19c922=this[_0x250d('0x59')][_0x250d('0x1d')](_0x38c311,_0x30550a['end']);this[_0x250d('0x92')](_0x454602,_0x39d27b,_0xe84ffb,_0x19c922);}else{if(_0x30550a['containsPosition'](_0x199b8f[_0x250d('0x89')])){const _0x25a99b=this[_0x250d('0x59')]['createPositionAt'](_0x199b8f[_0x250d('0x89')]['nodeBefore'],'end');this[_0x250d('0x11e')](_0x5d4427,this['_model'][_0x250d('0x1d')](_0x30550a[_0x250d('0x89')],_0x25a99b));}else{const _0x32640f=this['_model'][_0x250d('0xf9')](_0x199b8f[_0x250d('0xf6')]['parent'],_0x250d('0xcc'));this[_0x250d('0x11e')](_0x5d4427,this[_0x250d('0x59')][_0x250d('0x1d')](_0x32640f,_0x30550a['end']));}}}}[_0x250d('0x110')](_0x13af02){for(const {suggestion:_0xa57d8b,meta:_0x2165fd}of this[_0x250d('0x91')](_0x13af02,_0x250d('0x5e'))){if(!_0x2165fd['isOwn'])continue;const _0x10f8bf=_0xa57d8b['getRanges']();for(const _0x5d38d6 of _0x10f8bf)if(!_0x13af02[_0x250d('0x7c')](_0x5d38d6)['length'])return!0x0;}return!0x1;}[_0x250d('0xbf')](_0x118975){const _0x174eb2=this[_0x250d('0x126')]['plugins'][_0x250d('0x121')](_0x250d('0x77'))[_0x250d('0xeb')](_0x118975);if(!_0x174eb2)throw new _0xcb584e(_0x250d('0xba'),this);return _0x174eb2;}['_getExternalAuthor'](_0x56af0f){const _0x5d4cb2=this[_0x250d('0x126')]['plugins'][_0x250d('0x121')](_0x250d('0x77')),_0x43f4fd=_0x24c28a(_0x250d('0x46')+_0x56af0f),_0x4d6cf3=_0x5d4cb2[_0x250d('0xeb')](_0x43f4fd);return _0x4d6cf3||_0x5d4cb2[_0x250d('0xb7')]({'id':_0x43f4fd,'name':_0x56af0f});}[_0x250d('0x55')](_0x42b2ef,_0x2ef1d6,_0x554097,_0x361aa8,_0xd7160f){const _0xade77=this[_0x250d('0xbf')](_0x361aa8),_0x3793d1=this['_suggestionFactory'][_0x250d('0x62')](_0x42b2ef,_0x2ef1d6,_0x554097,_0xade77,_0xd7160f,_0x585128=>this['_updateSuggestionData'](_0x554097,{'attributes':_0x585128}));return this[_0x250d('0xf2')](_0x3793d1,_0x250d('0x4a'),()=>{this[_0x250d('0xc0')](_0x554097,{'state':_0x250d('0x100')});},{'priority':_0x250d('0x4')}),this['listenTo'](_0x3793d1,_0x250d('0x3d'),()=>{this['_updateSuggestionData'](_0x554097,{'state':_0x250d('0x137')});},{'priority':_0x250d('0x4')}),this[_0x250d('0xfa')][_0x250d('0xad')](_0x554097,_0x3793d1),this[_0x250d('0x13a')][_0x250d('0xad')](_0x3793d1,_0x250d('0x39')),_0x3793d1;}['_splitMarkerName'](_0x6dbaba){const _0x10ba2a=_0x6dbaba[_0x250d('0x9f')](':');return{'group':_0x10ba2a[0x0],'type':_0x10ba2a[0x1],'subType':_0x10ba2a['length']>=0x5?_0x10ba2a[0x2]:null,'id':_0x10ba2a[_0x250d('0x28')]<0x5?_0x10ba2a[0x2]:_0x10ba2a[0x3],'authorId':_0x10ba2a['length']<0x5?_0x10ba2a[0x3]:_0x10ba2a[0x4],'markerCount':0x6==_0x10ba2a[_0x250d('0x28')]?_0x10ba2a[0x5]:null};}[_0x250d('0x3f')](_0x2baeef,_0x248e0f,_0x509f07){const _0x228ae5=_0x2baeef[_0x250d('0xd8')](),_0x2e8596=_0x228ae5['start'],_0x288ca6=_0x228ae5[_0x250d('0xf6')];this[_0x250d('0x11e')](_0x2baeef,this[_0x250d('0x59')]['createRange'](_0x2e8596,_0x248e0f));const _0x261002=_0x2bf15d(),_0x1bd917=_0x2baeef['creator']['id'],_0x4cd72c=_0x2baeef[_0x250d('0x8b')]+(_0x2baeef['subType']?':'+_0x2baeef[_0x250d('0x7e')]:'');this[_0x250d('0x82')]({'id':_0x261002,'type':_0x4cd72c,'createdAt':new Date(),'authorId':_0x1bd917,'originalSuggestionId':_0x2baeef['id'],'attributes':_0x2baeef['attributes'],'data':_0x2baeef['data']}),_0x250d('0xe3')==_0x2baeef['type']&&(_0x509f07=this[_0x250d('0x59')][_0x250d('0xaf')](_0x509f07[_0x250d('0x48')])),this[_0x250d('0x92')](_0x4cd72c,_0x261002,_0x1bd917,this['_model'][_0x250d('0x1d')](_0x509f07,_0x288ca6));}[_0x250d('0x91')](_0x3eba31,_0x46a6f6=null){const _0x502149=[],_0x1e5d8c=this['editor'][_0x250d('0x115')][_0x250d('0x121')]('Users')['me'];Array['isArray'](_0x3eba31)||(_0x3eba31=[_0x3eba31]);for(const _0x1345e2 of this[_0x250d('0x13f')]()){if(!_0x1345e2[_0x250d('0x75')])continue;if(_0x46a6f6&&_0x1345e2[_0x250d('0x8b')]!=_0x46a6f6)continue;let _0x10f1a2=!0x1;for(const _0x596da4 of _0x1345e2[_0x250d('0x118')]()){for(const _0x278640 of _0x3eba31){const _0x461d4d=_0x278640[_0x250d('0x89')][_0x250d('0x1')](_0x596da4[_0x250d('0xf6')])||_0x278640[_0x250d('0xf6')][_0x250d('0x1')](_0x596da4[_0x250d('0x89')]);if(_0x461d4d||_0x278640[_0x250d('0x12f')](_0x596da4)){const _0x277710=_0x278640['containsRange'](_0x596da4)&&Bt(this[_0x250d('0x59')][_0x250d('0x6b')],_0x596da4[_0x250d('0x89')],_0x278640),_0x1f1560=_0x596da4['containsRange'](_0x278640)&&Bt(this[_0x250d('0x59')][_0x250d('0x6b')],_0x278640[_0x250d('0x89')],_0x596da4);_0x502149[_0x250d('0x5f')]({'suggestion':_0x1345e2,'meta':{'isOwn':_0x1e5d8c==_0x1345e2[_0x250d('0x140')],'isNextTo':_0x461d4d,'isInsideObject':_0x277710,'containsRangeInObject':_0x1f1560}}),_0x10f1a2=!0x0;break;}}if(_0x10f1a2)break;}}return _0x502149;}[_0x250d('0x92')](_0x3ad44d,_0x1235c6,_0x12aa43,_0x5186d6,_0x4994d4){this[_0x250d('0x59')][_0x250d('0x65')](_0x4c9ebe=>{let _0x11a09d='suggestion:'+_0x3ad44d+':'+_0x1235c6+':'+_0x12aa43;_0x4994d4&&(_0x11a09d=_0x11a09d+':'+_0x4994d4),_0x4c9ebe[_0x250d('0xc8')](_0x11a09d,{'range':_0x5186d6,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x250d('0xab')](_0x4baa0f){const _0x1fcc1f=_0x4baa0f[_0x250d('0xda')],_0x4e7f64=_0x4baa0f[_0x250d('0x9a')];_0x4baa0f[_0x250d('0xda')]=null,null!=_0x1fcc1f&&(_0x1fcc1f[_0x250d('0x9a')]=null),_0x4baa0f[_0x250d('0x9a')]=null,null!=_0x4e7f64&&(_0x4e7f64['previous']=null),_0x250d('0x11b')==this[_0x250d('0x13a')][_0x250d('0x121')](_0x4baa0f)&&(this[_0x250d('0x13a')][_0x250d('0xad')](_0x4baa0f,_0x250d('0x10e')),this[_0x250d('0xff')](_0x250d('0x9b'),_0x4baa0f,_0x1fcc1f,_0x4e7f64));}['_setSuggestionData'](_0x12e2bf){const _0x36bded=_0x12e2bf['id'],_0x268134=this[_0x250d('0x8e')](_0x12e2bf);if(this[_0x250d('0x52')]&&this[_0x250d('0x52')][_0x250d('0xde')]){const _0x3d8dc7=this[_0x250d('0x126')][_0x250d('0x115')]['get']('PendingActions'),_0x12ef16=_0x268134[_0x250d('0xa4')],_0x2e78e5=_0x268134['subType']?_0x268134['type']+':'+_0x268134[_0x250d('0x7e')]:_0x268134[_0x250d('0x8b')],_0x34f169=this[_0x250d('0x126')][_0x250d('0x7b')],_0x3f46eb=_0x3d8dc7[_0x250d('0x9d')](_0x5de460(_0x34f169,'PENDING_ACTION_SUGGESTION')),_0x413d20={'id':_0x36bded,'type':_0x2e78e5,'hasComments':_0x12ef16,'data':_0x12e2bf[_0x250d('0x54')]||null,'originalSuggestionId':_0x12e2bf[_0x250d('0x13c')]||null,'attributes':_0x268134['attributes']};this[_0x250d('0x52')][_0x250d('0xde')](_0x413d20)[_0x250d('0x73')](_0x191d23=>{_0x268134[_0x250d('0x101')]=!0x0,_0x3d8dc7[_0x250d('0x104')](_0x3f46eb),_0x191d23&&_0x191d23[_0x250d('0x41')]&&(this['_suggestions'][_0x250d('0x121')](_0x36bded)['createdAt']=_0x191d23[_0x250d('0x41')]);})[_0x250d('0xc4')](_0x284c82=>{throw _0x2a11d4('error-saving-suggestion-data-suggestion-discarded'),this[_0x250d('0x126')][_0x250d('0x102')][_0x250d('0xb6')]({'isUndoable':!0x1},()=>{_0x268134[_0x250d('0x3d')]();}),_0x268134[_0x250d('0x2a')](),this['_suggestions']['delete'](_0x268134['id']),this[_0x250d('0x13a')][_0x250d('0x12d')](_0x268134),_0x284c82;});}return _0x268134;}[_0x250d('0xc0')](_0x433f79,_0x506111){const _0x2e6361=this[_0x250d('0x126')]['plugins']['get'](_0x250d('0xbe')),_0x3dd892=this['getSuggestion'](_0x433f79);if(this[_0x250d('0x52')]&&this[_0x250d('0x52')][_0x250d('0x2b')]){if(_0x3dd892['_saved']){const _0x1762e9=_0x2e6361[_0x250d('0x9d')](_0x5de460(this[_0x250d('0x126')][_0x250d('0x7b')],'PENDING_ACTION_SUGGESTION'));this[_0x250d('0x52')][_0x250d('0x2b')](_0x433f79,_0x506111)[_0x250d('0x73')](()=>{_0x2e6361[_0x250d('0x104')](_0x1762e9);});}else _0x3dd892['on'](_0x250d('0x31'),()=>{this[_0x250d('0xc0')](_0x433f79,_0x506111);});}}[_0x250d('0xd6')](_0x2f2c74){if(!this[_0x250d('0x52')]||!this[_0x250d('0x52')]['getSuggestion'])throw new _0xcb584e(_0x250d('0x74'),this);return this[_0x250d('0x52')][_0x250d('0x9')](_0x2f2c74);}[_0x250d('0xd4')](_0xecafca){const {id:_0x4acf50,type:_0x448c96,subType:_0x4183ff,authorId:_0xce1b3}=this[_0x250d('0xc1')](_0xecafca),_0x4c26bd=this[_0x250d('0xfa')][_0x250d('0x121')](_0x4acf50)||this[_0x250d('0x55')](_0x448c96,_0x4183ff,_0x4acf50,_0xce1b3,{});switch(this['_checkSuggestionCorrectness'](_0x4c26bd,_0x448c96,_0x4183ff,_0xce1b3),this[_0x250d('0x13a')]['get'](_0x4c26bd)){case _0x250d('0x39'):this[_0x250d('0xd6')](_0x4acf50)[_0x250d('0x73')](_0x1942f4=>{let _0x9342b=Promise[_0x250d('0xd5')]();_0x1942f4['hasComments']&&(_0x9342b=this['_commentsRepository'][_0x250d('0x93')]({'channelId':this[_0x250d('0x126')][_0x250d('0x99')]['get'](_0x250d('0x103')),'threadId':_0x4acf50})),_0x9342b[_0x250d('0x73')](()=>{this[_0x250d('0x8e')](_0x1942f4)[_0x250d('0x101')]=!0x0;});}),this[_0x250d('0x13a')]['set'](_0x4c26bd,'markerReady');break;case _0x250d('0x10e'):this[_0x250d('0xc0')](_0x4acf50,{'state':_0x250d('0x5a')});case'dataReady':this[_0x250d('0x13a')]['set'](_0x4c26bd,_0x250d('0x11b')),this[_0x250d('0xff')](_0x250d('0xd2'),_0x4c26bd);break;case'ready':this[_0x250d('0xff')](_0x250d('0xfc'),_0x4c26bd);}return _0x4c26bd[_0x250d('0x6')](_0xecafca),_0x4c26bd;}[_0x250d('0x57')](_0x41c450){const _0x54b422=Array[_0x250d('0x49')](_0x41c450)[_0x250d('0xe8')](_0x4dd66a=>!_0x4dd66a[_0x250d('0x88')]),_0x107f16=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54c4d9=>!_0x54c4d9[_0x250d('0x88')]),_0x47f9bd=_0x107f16[_0x250d('0xe8')](_0x43a908=>!_0x41c450[_0x250d('0xaa')](_0x43a908)),_0x51ef4d=new Map(_0x107f16[_0x250d('0x117')](_0x21ebc7=>[_0x21ebc7,this[_0x250d('0xd3')][_0x250d('0xf1')](_0x21ebc7[_0x250d('0x8b')],_0x21ebc7[_0x250d('0x7e')],_0x250d('0x81'))])),_0x1358a5=new Map(_0x107f16['map'](_0x1c554d=>[_0x1c554d,_0x1c554d['getFirstRange']()])),_0x479574=new Set(),_0x4a7cb4=new Set();for(let _0x1e8a61=0x0;_0x1e8a61<_0x54b422[_0x250d('0x28')];_0x1e8a61++)_0x3b0f73(_0x54b422[_0x1e8a61],_0x54b422,_0x1e8a61+0x1);for(let _0xcc2801=0x0;_0xcc2801<_0x54b422[_0x250d('0x28')];_0xcc2801++)_0x3b0f73(_0x54b422[_0xcc2801],_0x47f9bd,0x0);for(let _0x25e2c4=0x0;_0x25e2c4<_0x54b422['length'];_0x25e2c4++){const _0x3fc889=_0x54b422[_0x25e2c4];!_0x4a7cb4[_0x250d('0xaa')](_0x3fc889)&&_0x3fc889[_0x250d('0xda')]&&(_0x3fc889[_0x250d('0xda')][_0x250d('0x9a')]===_0x3fc889&&(_0x3fc889['previous'][_0x250d('0x9a')]=null),_0x3fc889[_0x250d('0xda')]=null),!_0x479574[_0x250d('0xaa')](_0x3fc889)&&_0x3fc889[_0x250d('0x9a')]&&(_0x3fc889[_0x250d('0x9a')][_0x250d('0xda')]===_0x3fc889&&(_0x3fc889[_0x250d('0x9a')][_0x250d('0xda')]=null),_0x3fc889[_0x250d('0x9a')]=null);}function _0x3b0f73(_0x56489b,_0x5937b6,_0x5c8e58){for(let _0x3e5832=_0x5c8e58;_0x3e5832<_0x5937b6[_0x250d('0x28')];_0x3e5832++){const _0x16d0c3=_0x43f914(_0x56489b,_0x5937b6[_0x3e5832]);_0x16d0c3&&(_0x16d0c3[0x0]['next']=_0x16d0c3[0x1],_0x16d0c3[0x1][_0x250d('0xda')]=_0x16d0c3[0x0],_0x479574[_0x250d('0x9d')](_0x16d0c3[0x0]),_0x4a7cb4['add'](_0x16d0c3[0x1]));}}function _0x43f914(_0x78d19c,_0x1eae28){if(_0x78d19c['author']['id']!==_0x1eae28[_0x250d('0x140')]['id'])return null;const _0x1842cc=_0x51ef4d[_0x250d('0x121')](_0x78d19c)(_0x78d19c,_0x1eae28,_0x1358a5[_0x250d('0x121')](_0x78d19c),_0x1358a5[_0x250d('0x121')](_0x1eae28));if(!_0x1842cc)return null;return _0x51ef4d[_0x250d('0x121')](_0x1eae28)(_0x78d19c,_0x1eae28,_0x1358a5[_0x250d('0x121')](_0x78d19c),_0x1358a5[_0x250d('0x121')](_0x1eae28))?_0x1842cc[0x1][_0x250d('0x5b')]&&_0x1842cc[0x1]['commentThread'][_0x250d('0x28')]?null:_0x1842cc:null;}}['_joinWithAdjacentSuggestions'](_0x3e3e84){const _0x165198=Array[_0x250d('0x49')](_0x3e3e84),_0x39d115=this[_0x250d('0x13f')]({'skipNotAttached':!0x0}),_0x411edd=_0x39d115[_0x250d('0xe8')](_0x519c6c=>!_0x3e3e84['has'](_0x519c6c)),_0x2e973e=new Map(_0x165198[_0x250d('0x117')](_0x13f64b=>[_0x13f64b,this['_suggestionFactory']['getSuggestionCallback'](_0x13f64b[_0x250d('0x8b')],_0x13f64b['subType'],_0x250d('0x111'))])),_0x48dd8e=new Map(_0x39d115[_0x250d('0x117')](_0x116974=>[_0x116974,_0x116974['getRanges']()]));for(let _0x2957a5=0x0;_0x2957a5<_0x165198['length'];_0x2957a5++){if(_0x5a43e4(this,_0x165198[_0x2957a5],_0x165198,_0x2957a5+0x1))return!0x0;}for(let _0x5651d5=0x0;_0x5651d5<_0x165198[_0x250d('0x28')];_0x5651d5++){if(_0x5a43e4(this,_0x165198[_0x5651d5],_0x411edd,0x0))return!0x0;}return!0x1;function _0x5a43e4(_0x36e012,_0x595b95,_0x290159,_0x3101c7){for(let _0xd8a344=_0x3101c7;_0xd8a344<_0x290159[_0x250d('0x28')];_0xd8a344++){const _0x9ff143=_0x290159[_0xd8a344];if(_0x9ff143[_0x250d('0x8b')]!==_0x595b95[_0x250d('0x8b')]||_0x9ff143[_0x250d('0x140')]['id']!==_0x595b95[_0x250d('0x140')]['id']||_0x9ff143['subType']!==_0x595b95['subType'])continue;if(!xt(_0x595b95,_0x9ff143))continue;const _0x52f5dd=_0x2e973e[_0x250d('0x121')](_0x595b95),_0x222fff=_0x48dd8e['get'](_0x595b95),_0x2f40f1=_0x48dd8e[_0x250d('0x121')](_0x9ff143),_0x475a03=_0x595b95[_0x250d('0x5b')]&&_0x595b95[_0x250d('0x5b')][_0x250d('0x28')],_0x54f936=_0x9ff143[_0x250d('0x5b')]&&_0x9ff143[_0x250d('0x5b')][_0x250d('0x28')];if(!_0x475a03&&_0x52f5dd(_0x2f40f1,_0x222fff))return _0x36e012[_0x250d('0x10')](_0x9ff143,_0x595b95),_0x48dd8e['delete'](_0x595b95),!0x0;if(!_0x54f936&&_0x52f5dd(_0x222fff,_0x2f40f1))return _0x36e012['_joinSuggestions'](_0x595b95,_0x9ff143),_0x48dd8e['delete'](_0x9ff143),!0x0;}return!0x1;}}[_0x250d('0x10')](_0x35461e,_0x480786){if(_0x35461e[_0x250d('0x88')])for(const _0x9c50ee of _0x480786[_0x250d('0x118')]())_0x35461e[_0x250d('0x38')](_0x9c50ee);else{const _0xdea3b9=_0x480786['getFirstRange']()['end'];this[_0x250d('0x11e')](_0x35461e,this['_model'][_0x250d('0x1d')](_0x35461e[_0x250d('0xd8')]()[_0x250d('0x89')],_0xdea3b9));}_0x480786[_0x250d('0x128')]();}}class Dt{constructor(_0x2678a0){this[_0x250d('0x2e')]=_0x2678a0,this[_0x250d('0x59')]=_0x2678a0[_0x250d('0x102')],this[_0x250d('0xef')]=new Map(),this[_0x250d('0x29')]=new Map(),this[_0x250d('0xce')]();}['buildSuggestion'](_0x343069,_0x4442c1,_0x416756,_0x33bd82,_0x36467e,_0x641064){return new _0x4b3b66(this['_model'],{'type':_0x343069,'subType':_0x4442c1,'id':_0x416756,'author':_0x33bd82,'creator':_0x33bd82,'attributes':_0x36467e,'onAttributesChange':_0x641064,'onAccept':(..._0x2c20dd)=>this[_0x250d('0xf1')](_0x343069,_0x4442c1,_0x250d('0x4a'))(..._0x2c20dd),'onDiscard':(..._0x5d4dd9)=>this['getSuggestionCallback'](_0x343069,_0x4442c1,'discard')(..._0x5d4dd9)});}[_0x250d('0x113')](_0x59fc86,_0xc8e73f,_0x4236bb,_0x18cdd2){const _0x1e937e=_0x59fc86+':'+_0xc8e73f+':'+_0x4236bb;this[_0x250d('0xef')]['set'](_0x1e937e,_0x18cdd2);}[_0x250d('0xf1')](_0x31e71e,_0x3a397f,_0x8d840c){const _0x230af3=_0x31e71e+':'+_0x3a397f+':'+_0x8d840c;return this[_0x250d('0xef')][_0x250d('0x121')](_0x230af3)||this[_0x250d('0x29')][_0x250d('0x121')](_0x31e71e+':'+_0x8d840c);}['_registerDefaultCallbacks'](){const _0x3c1ddd=()=>!0x1,_0x2689d2=_0x34fcff=>{_0x34fcff[_0x250d('0x4e')]((_0xcc5b7,_0x2fd501)=>_0xcc5b7[_0x250d('0x89')]['isBefore'](_0x2fd501[_0x250d('0x89')])?0x1:-0x1),this[_0x250d('0x59')][_0x250d('0x65')](_0x393e7e=>{for(const _0x34eb68 of _0x34fcff){let _0x291212;_0x291212=_0x34eb68[_0x250d('0xf6')][_0x250d('0x1f')]&&_0x34eb68[_0x250d('0xf6')]['parent']==_0x34eb68['start']['nodeAfter']?_0x393e7e[_0x250d('0x127')](_0x34eb68[_0x250d('0x89')][_0x250d('0x9c')],'on'):_0x393e7e[_0x250d('0x127')](_0x34eb68),this[_0x250d('0x59')][_0x250d('0x8c')](_0x291212,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x556429=(_0x1800c5,_0x5988cd)=>{this[_0x250d('0x59')][_0x250d('0x65')](_0x450e9d=>{const {commandName:_0x297510,commandParams:_0x51e0da=[]}=_0x5988cd,_0x3145cd=_0x1800c5['map'](_0x4c550d=>(_t(_0x4c550d)&&(_0x4c550d=this['_model']['createRange'](_0x4c550d[_0x250d('0xf6')])),_0x4c550d))[_0x250d('0xe8')](_0x57cd3e=>_0x250d('0xc3')!==_0x57cd3e[_0x250d('0xdb')][_0x250d('0x3e')]);if(_0x3145cd[_0x250d('0x28')]<0x1)return;const _0x42b6cf=Array[_0x250d('0x49')](this[_0x250d('0x59')][_0x250d('0xc6')][_0x250d('0x80')]['getRanges']())[_0x250d('0x117')](_0x2ee07c=>_0x9d3d24['fromRange'](_0x2ee07c));_0x450e9d[_0x250d('0xf3')](_0x3145cd);for(const _0x1d87aa of this[_0x250d('0x2e')][_0x250d('0x109')][_0x250d('0x109')]())_0x1d87aa['refresh']();_0x51e0da[_0x250d('0x5f')]({'forceDefaultExecution':!0x0}),this[_0x250d('0x2e')][_0x250d('0x6d')](_0x297510,..._0x51e0da);const _0x556326=_0x42b6cf[_0x250d('0xe8')](_0x96c4cc=>_0x250d('0xc3')!=_0x96c4cc[_0x250d('0xdb')][_0x250d('0x3e')]);_0x556326[_0x250d('0x28')]>0x0&&_0x450e9d[_0x250d('0xf3')](_0x556326);for(const _0x542b7f of _0x42b6cf)_0x542b7f['detach']();});},_0x5a4656=(_0x419398,_0x59d656)=>0x1==_0x419398[_0x250d('0x28')]&&0x1==_0x59d656[_0x250d('0x28')]&&_0x419398[0x0][_0x250d('0xf6')][_0x250d('0x1')](_0x59d656[0x0][_0x250d('0x89')]),_0xed05e5=(_0x4b8c50,_0x59d17f,_0x2b2ea9,_0x3df3f8)=>jt(_0x4b8c50,_0x59d17f,_0x2b2ea9,_0x3df3f8,this['_model'])?[_0x4b8c50,_0x59d17f]:jt(_0x59d17f,_0x4b8c50,_0x3df3f8,_0x2b2ea9,this['_model'])?[_0x59d17f,_0x4b8c50]:null;this[_0x250d('0x29')]['set'](_0x250d('0xd1'),_0x3c1ddd),this[_0x250d('0x29')][_0x250d('0xad')](_0x250d('0x61'),_0x2689d2),this[_0x250d('0x29')]['set'](_0x250d('0x0'),_0x5a4656),this[_0x250d('0x29')][_0x250d('0xad')](_0x250d('0x97'),_0xed05e5),this['_defaultCallbacks'][_0x250d('0xad')](_0x250d('0x12e'),_0x2689d2),this[_0x250d('0x29')][_0x250d('0xad')](_0x250d('0x12c'),_0x3c1ddd),this[_0x250d('0x29')][_0x250d('0xad')](_0x250d('0x16'),_0x5a4656),this['_defaultCallbacks'][_0x250d('0xad')](_0x250d('0xd7'),_0xed05e5),this[_0x250d('0x29')][_0x250d('0xad')](_0x250d('0x2d'),_0x556429),this['_defaultCallbacks'][_0x250d('0xad')](_0x250d('0xbb'),_0x3c1ddd),this[_0x250d('0x29')][_0x250d('0xad')](_0x250d('0x124'),_0x5a4656),this[_0x250d('0x29')][_0x250d('0xad')](_0x250d('0xe9'),_0x3c1ddd),this[_0x250d('0x29')][_0x250d('0xad')](_0x250d('0xea'),_0x556429),this['_defaultCallbacks'][_0x250d('0xad')](_0x250d('0x5c'),_0x3c1ddd),this['_defaultCallbacks'][_0x250d('0xad')](_0x250d('0x133'),_0x5a4656),this[_0x250d('0x29')][_0x250d('0xad')]('formatBlock:chain',_0x3c1ddd);}}function Bt(_0x4ce608,_0x2eb88e,_0x97ccee){for(const _0x7e0651 of _0x2eb88e[_0x250d('0x48')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x7e0651[_0x250d('0xdb')]==_0x7e0651)return!0x1;if(!_0x97ccee[_0x250d('0xf')](_0x7e0651))return!0x1;if(_0x4ce608[_0x250d('0xbd')](_0x7e0651)||_0x4ce608[_0x250d('0x84')](_0x7e0651))return!0x0;}return!0x1;}function _t(_0x1e61dd){return _0x1e61dd[_0x250d('0xf6')][_0x250d('0x48')]==_0x1e61dd[_0x250d('0x89')][_0x250d('0x9c')]&&_0x1e61dd[_0x250d('0xf6')][_0x250d('0x35')];}function Mt(_0x520491,_0x4498b3,_0x3d9104,_0x4f1758){const _0x31ac61=_0x196b45=>!_0x196b45[_0x250d('0x132')]['is']('$textProxy')&&!_0x4f1758[_0x250d('0xbd')](_0x196b45['item']),_0x281c25=_0x520491['start']['getLastMatchingPosition'](_0x31ac61),_0x47577d=_0x520491['end'][_0x250d('0x7a')](_0x31ac61,{'direction':'backward'});return(!_0x520491[_0x250d('0x89')][_0x250d('0x1')](_0x281c25)||!_0x520491[_0x250d('0xf6')][_0x250d('0x1')](_0x47577d))&&(_0x281c25['isBefore'](_0x47577d)?_0x3d9104['updateMarker'](_0x4498b3,{'range':_0x3d9104[_0x250d('0x1d')](_0x281c25,_0x47577d)}):_0x3d9104[_0x250d('0x76')](_0x4498b3),!0x0);}function $t(_0x4364ce){return _0x24c28a(_0x4364ce);}function Nt(_0x4cb6d0){const _0x29cfdf=_0x4cb6d0['start'][_0x250d('0x9c')];return _0x29cfdf&&_0x29cfdf['is']('element');}function Rt(_0x4ed9b4,_0x10c365){const _0x4ad7ac=_0x10c365[_0x250d('0x6b')][_0x250d('0xbd')](_0x4ed9b4)||_0x10c365[_0x250d('0x6b')][_0x250d('0xa1')](_0x4ed9b4);return _0x10c365['createRange'](_0x10c365[_0x250d('0xf9')](_0x4ed9b4,'before'),_0x4ad7ac?_0x10c365[_0x250d('0xa')](_0x4ed9b4):_0x10c365[_0x250d('0xf9')](_0x4ed9b4,_0x250d('0xf6')));}function jt(_0x3019aa,_0x1684f3,_0x5dbd3e,_0x348c93,_0x5e0cc9){if(!xt(_0x3019aa,_0x1684f3))return!0x1;if(_0x5dbd3e['end'][_0x250d('0x1')](_0x348c93['start']))return!0x0;if(_0x3019aa[_0x250d('0x8b')]!=_0x1684f3[_0x250d('0x8b')])return!0x1;if(!_0x5dbd3e[_0x250d('0xf6')]['isTouching'](_0x348c93[_0x250d('0x89')]))return!0x1;const _0x252740=_0x5e0cc9[_0x250d('0x1d')](_0x5dbd3e[_0x250d('0xf6')],_0x348c93[_0x250d('0x89')])[_0x250d('0x6c')]();for(const _0x492a96 of _0x252740)if([_0x250d('0x3a'),'elementEnd'][_0x250d('0xa9')](_0x492a96[_0x250d('0x8b')])&&_0x5e0cc9[_0x250d('0x6b')][_0x250d('0x84')](_0x492a96[_0x250d('0x132')]))return!0x1;return!0x0;}function xt(_0x4950a9,_0x31f4b4){return!(!_0x4950a9['_isDataLoaded']||!_0x31f4b4['_isDataLoaded'])&&_0xd6169(_0x4950a9[_0x250d('0x30')],_0x31f4b4[_0x250d('0x30')]);}function Ut(_0x3f3fd2,_0x318ca6){const _0x3c7c9b=Ot(_0x3f3fd2[_0x250d('0x30')]),_0x2f0a83=Ot(_0x318ca6);if(!_0x3f3fd2[_0x250d('0xb0')])return!0x1;for(const _0x451258 of Object['keys'](_0x2f0a83))if(!_0xd6169(_0x3c7c9b[_0x451258],_0x2f0a83[_0x451258]))return!0x1;return!0x0;}function Ot(_0x56a27e){const _0x4e906e=Object[_0x250d('0x134')]({},_0x56a27e);return delete _0x4e906e[_0x250d('0xc')],delete _0x4e906e['tablePasteChainId'],_0x4e906e;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x51d4=['commentThread','editing','plugins','registerAnnotation','TrackChangesUI','toMany','innerView','suggestionChanged','trackChanges.SuggestionThreadView','arrowView','createAnnotation','commands','createCommentThreadController','suggestionLoaded','config','push','define','isDirty','getMarkerNames','filter','view','listenTo','comments.maxCommentsWhenCollapsed','_suggestionToController','activeMarkers','hasSuggestion','_createUIButton','suggestion-','getAllAdjacentSuggestions','trackChanges','size','_bindAnnotationToEditors','pluginName','actionView','getMarkers','destroy','length','clear','getDescriptions','editor','Accept\x20all\x20suggestions','addComment','CommentView','type','source','head','_refreshActiveMarkers','has','_disableComments','previous','comments.maxCommentCharsWhenCollapsed','CommentsUI','focus','TrackChangesEditing','trackChanges.disableComments','change:previous','mainView','Discard\x20all\x20selected\x20suggestions','activeAnnotations','_viewToController','button','acceptAllSuggestions','switchbutton','suggestionUnloaded','_updateController','model','getFirstRange','stopListening','locale','Accept\x20all\x20selected\x20suggestions','_initializeController','componentFactory','execute','separator','delete','get','_handleSuggestionControllerDelayed','discardButton','buttonView','set','isOn','map','_descriptionFactory','_annotationViews','isEnabled','_handleControllerBuffer','commandName','lowest','Annotations','unbind','change:activeAnnotations','CommentsRepository','value','from','_destroyController','isInContent','EditorAnnotations','Discard\x20all\x20suggestions','getRanges','add','descriptionParts','getSuggestion','some','bind'];(function(_0x4ce290,_0x51d499){const _0x27f289=function(_0x109ae1){while(--_0x109ae1){_0x4ce290['push'](_0x4ce290['shift']());}};_0x27f289(++_0x51d499);}(_0x51d4,0x1a7));const _0x27f2=function(_0x4ce290,_0x51d499){_0x4ce290=_0x4ce290-0x0;let _0x27f289=_0x51d4[_0x4ce290];return _0x27f289;};import{Plugin as _0x2c02ae}from'ckeditor5/src/core';import{Collection as _0x460093}from'ckeditor5/src/utils';import{Model as _0x48b50c,SplitButtonView as _0x3f51b2,createDropdown as _0x11c123,addListToDropdown as _0x19e86e}from'ckeditor5/src/ui';import{Users as _0x2aaace,getDateTimeFormatter as _0x232e0e,getAllMarkersDomElementsSorted as _0x20d90f}from'ckeditor5-collaboration/src/collaboration-core';import _0x2b0442 from'./trackchangesediting';import _0x73486 from'./ui/suggestioncontroller';import _0x9de663 from'./ui/view/suggestionthreadview';import{getTranslation as _0x192ca8}from'./utils/common-translations';import _0x54977c from'../theme/icons/track-changes.svg';export default class d extends _0x2c02ae{static get['requires'](){return[_0x2b0442,_0x2aaace,'CommentsRepository',_0x27f2('0x51'),_0x27f2('0x59')];}static get[_0x27f2('0x19')](){return _0x27f2('0x65');}constructor(_0x1e0ae5){super(_0x1e0ae5),this['_suggestionToController']=new Map(),this[_0x27f2('0x34')]=new Map(),this[_0x27f2('0x4c')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x35e44e=this[_0x27f2('0x20')][_0x27f2('0x7')];_0x35e44e[_0x27f2('0x9')](_0x27f2('0x1'),_0x9de663),_0x35e44e[_0x27f2('0x9')](_0x27f2('0x2f'),!0x1),this['_disableComments']=_0x35e44e[_0x27f2('0x44')](_0x27f2('0x2f'));}[_0x27f2('0x45')](_0x4fac41,_0x36916e){0x0===this[_0x27f2('0x4e')][_0x27f2('0x17')]&&setTimeout(()=>{for(const [_0x49d0c0,_0x5d802c]of this[_0x27f2('0x4e')]){const _0x215ba3=this[_0x27f2('0x10')][_0x27f2('0x28')](_0x49d0c0);_0x215ba3||_0x5d802c?_0x215ba3&&_0x5d802c&&this[_0x27f2('0x57')](_0x49d0c0):this[_0x27f2('0x3f')](_0x49d0c0);}this[_0x27f2('0x20')][_0x27f2('0x63')][_0x27f2('0x44')](_0x27f2('0x59'))['refreshSelectedViews'](),this['_refreshActiveMarkers'](),this[_0x27f2('0x4e')][_0x27f2('0x1e')]();},0xa),this[_0x27f2('0x4e')][_0x27f2('0x48')](_0x4fac41,_0x36916e);}['init'](){const _0x335ac3=this['editor'],_0x5b5582=_0x335ac3[_0x27f2('0x63')]['get']('TrackChangesEditing'),_0x46e829=_0x335ac3[_0x27f2('0x63')]['get'](_0x27f2('0x51')),_0xb58294=_0x335ac3[_0x27f2('0x63')][_0x27f2('0x44')](_0x27f2('0x59')),_0xe51dca=_0x335ac3[_0x27f2('0x63')]['get'](_0x27f2('0x54'));_0x335ac3['ui'][_0x27f2('0x40')]['add'](_0x27f2('0x16'),_0x20bd20=>this['_createUIButton'](_0x20bd20)),_0xb58294['addSourceCollector'](()=>{const _0x3939c3=[];for(const [_0x4b2bb9,_0x388b7f]of Array[_0x27f2('0x56')](this[_0x27f2('0x10')])){const _0x1f7046=_0x4b2bb9[_0x27f2('0x15')](),_0x3bdf71=[];for(const _0x94fb0b of _0x1f7046){if(!_0x94fb0b[_0x27f2('0x58')])continue;if(_0x94fb0b['isMultiRange']){_0x3bdf71[_0x27f2('0x8')](..._0x94fb0b[_0x27f2('0x5b')]());continue;}const _0x41b709=_0x94fb0b[_0x27f2('0x3b')]();if(_0x3bdf71[_0x27f2('0x1d')]>0x0){const _0x5e7536=_0x3bdf71[0x0]['getJoined'](_0x41b709);if(_0x5e7536){_0x3bdf71[0x0]=_0x5e7536;continue;}}_0x3bdf71[_0x27f2('0x8')](_0x41b709);}_0x3939c3['push']([_0x388b7f[_0x27f2('0xd')],_0x3bdf71]);}return _0x3939c3;}),this['listenTo'](_0x5b5582,_0x27f2('0x6'),(_0x25a327,_0x4e549d)=>{this[_0x27f2('0xe')](_0x4e549d,'change:previous',(_0x2c2afa,_0x19eb44,_0x127603,_0x19f8eb)=>{_0x4e549d[_0x27f2('0x58')]&&(null==_0x127603?(this['_updateController'](_0x19f8eb[_0x27f2('0x26')]),this[_0x27f2('0x45')](_0x4e549d,!0x1)):(this['_updateController'](_0x127603[_0x27f2('0x26')]),this[_0x27f2('0x45')](_0x4e549d,!0x0)));}),null===_0x4e549d[_0x27f2('0x2a')]?this['_handleSuggestionControllerDelayed'](_0x4e549d,!0x1):this['_updateController'](_0x4e549d[_0x27f2('0x26')]);}),this[_0x27f2('0xe')](_0x5b5582,_0x27f2('0x38'),(_0x2f6bde,_0x231112,_0x2636ca)=>{this[_0x27f2('0x3c')](_0x231112,_0x27f2('0x30')),this[_0x27f2('0x4e')][_0x27f2('0x43')](_0x231112);const _0x258620=_0x2636ca?_0x2636ca[_0x27f2('0x26')]:_0x231112,_0x143e46=this[_0x27f2('0x10')]['get'](_0x258620);null!==_0x2636ca&&this[_0x27f2('0x39')](_0x258620),null===_0x2636ca&&_0x143e46&&this[_0x27f2('0x57')](_0x231112);}),this[_0x27f2('0xe')](_0x5b5582,_0x27f2('0x0'),(_0x45823f,_0x2c91c4)=>{this[_0x27f2('0x39')](_0x2c91c4);}),this['listenTo'](_0x46e829,_0x27f2('0x53'),()=>{this['_refreshActiveMarkers']();}),this[_0x27f2('0xe')](_0xe51dca,_0x27f2('0x22'),(_0x3a0dff,{threadId:_0x2412e3,isFromAdapter:_0x563f57})=>{if(_0x563f57||!_0x5b5582[_0x27f2('0x12')](_0x2412e3))return;const _0x1c0a54=_0x5b5582[_0x27f2('0x5e')](_0x2412e3);this[_0x27f2('0x10')][_0x27f2('0x44')](_0x1c0a54)['view'][_0x27f2('0x2d')]();},{'priority':_0x27f2('0x50')});}[_0x27f2('0x27')](){const _0x12f6f6=this[_0x27f2('0x20')][_0x27f2('0x63')][_0x27f2('0x44')](_0x27f2('0x51')),_0x11df58=this[_0x27f2('0x20')][_0x27f2('0x63')]['get'](_0x27f2('0x2e')),_0x561a7a=Array[_0x27f2('0x56')](_0x12f6f6[_0x27f2('0x33')],_0x51d241=>_0x51d241[_0x27f2('0x67')])['filter'](_0x177169=>this['_viewToController'][_0x27f2('0x28')](_0x177169)),_0x52a901=[];for(const _0x38af98 of _0x561a7a){const _0x59ece9=this['_viewToController'][_0x27f2('0x44')](_0x38af98)['model'][_0x27f2('0x15')]();_0x52a901['push'](..._0x59ece9['reduce']((_0x368f50,_0x27095b)=>[..._0x368f50,..._0x27095b[_0x27f2('0xb')]()],[]));}_0x11df58[_0x27f2('0x11')]=_0x52a901;}[_0x27f2('0x13')](_0x3f66ce){const _0x3e9a29=_0x11c123(_0x3f66ce,_0x3f51b2),_0x5c3097=this[_0x27f2('0x20')][_0x27f2('0x4')]['get']('trackChanges'),_0x26f480=_0x192ca8(_0x3f66ce,'Track\x20changes');_0x3e9a29[_0x27f2('0x47')][_0x27f2('0x48')]({'tooltip':_0x26f480,'label':_0x26f480,'icon':_0x54977c}),_0x3e9a29[_0x27f2('0x47')]['bind']('isOn')['to'](_0x5c3097,_0x27f2('0x55')),_0x3e9a29[_0x27f2('0x47')]['on'](_0x27f2('0x41'),()=>{_0x5c3097['execute'](),this[_0x27f2('0x20')][_0x27f2('0x62')][_0x27f2('0xd')][_0x27f2('0x2d')]();});const _0x24ae43=new _0x460093(),_0x379e17=[{'type':_0x27f2('0x37'),'model':{'withText':!0x0,'label':_0x26f480,'commandName':'trackChanges'}},{'type':'separator'},{'type':_0x27f2('0x35'),'model':{'withText':!0x0,'label':_0x192ca8(_0x3f66ce,_0x27f2('0x21')),'commandName':_0x27f2('0x36')}},{'type':_0x27f2('0x35'),'model':{'withText':!0x0,'label':_0x192ca8(_0x3f66ce,_0x27f2('0x3e')),'commandName':'acceptSelectedSuggestions'}},{'type':_0x27f2('0x35'),'model':{'withText':!0x0,'label':_0x192ca8(_0x3f66ce,_0x27f2('0x5a')),'commandName':'discardAllSuggestions'}},{'type':_0x27f2('0x35'),'model':{'withText':!0x0,'label':_0x192ca8(_0x3f66ce,_0x27f2('0x32')),'commandName':'discardSelectedSuggestions'}}];for(const _0x58eecc of _0x379e17){let _0x3c132d={'type':_0x27f2('0x42')};if(_0x58eecc[_0x27f2('0x3a')]){const _0x4fdf5e=new _0x48b50c(_0x58eecc[_0x27f2('0x3a')]),_0x2e5453=this[_0x27f2('0x20')][_0x27f2('0x4')][_0x27f2('0x44')](_0x4fdf5e[_0x27f2('0x4f')]);_0x4fdf5e[_0x27f2('0x60')](_0x27f2('0x49'),'isEnabled')['to'](_0x2e5453,_0x27f2('0x55'),'isEnabled'),_0x3c132d={'type':_0x58eecc[_0x27f2('0x24')],'model':_0x4fdf5e};}_0x24ae43[_0x27f2('0x5c')](_0x3c132d);}_0x19e86e(_0x3e9a29,_0x24ae43);const _0x3edaab=_0x379e17[_0x27f2('0xc')](_0x4666ed=>null!=_0x4666ed[_0x27f2('0x3a')])[_0x27f2('0x4a')](_0x12c147=>this['editor'][_0x27f2('0x4')][_0x27f2('0x44')](_0x12c147[_0x27f2('0x3a')][_0x27f2('0x4f')])),_0x231022=_0x3e9a29[_0x27f2('0x47')];return _0x231022[_0x27f2('0x1a')][_0x27f2('0x52')](_0x27f2('0x4d')),_0x231022['arrowView'][_0x27f2('0x52')](_0x27f2('0x4d')),_0x231022[_0x27f2('0x1a')][_0x27f2('0x60')]('isEnabled')['to'](_0x5c3097,_0x27f2('0x4d')),_0x231022[_0x27f2('0x2')][_0x27f2('0x60')]('isEnabled')[_0x27f2('0x66')](_0x3edaab,_0x27f2('0x4d'),(..._0x473869)=>_0x473869[_0x27f2('0x5f')](_0x9b6f1a=>_0x9b6f1a)),_0x3e9a29['on'](_0x27f2('0x41'),_0x508187=>{this['editor'][_0x27f2('0x41')](_0x508187[_0x27f2('0x25')][_0x27f2('0x4f')]),this[_0x27f2('0x20')][_0x27f2('0x62')][_0x27f2('0xd')]['focus']();}),_0x3e9a29;}[_0x27f2('0x3f')](_0x43de3b){const _0x1028e6=this[_0x27f2('0x20')],_0x15e127=_0x1028e6['config'],_0x14f094=_0x1028e6['plugins'][_0x27f2('0x44')]('Annotations'),_0x3a3adb=_0x1028e6['plugins'][_0x27f2('0x44')]('CommentsRepository'),_0x377461=_0x1028e6['plugins'][_0x27f2('0x44')](_0x27f2('0x59')),_0x5f382d=_0x1028e6['plugins'][_0x27f2('0x44')](_0x2aaace)['me'],_0x2d495e=_0x15e127[_0x27f2('0x44')](_0x27f2('0x16'))['SuggestionThreadView'],{CommentsListView:_0x583d59,CommentThreadInputView:_0x1c4a44}=_0x1028e6[_0x27f2('0x63')][_0x27f2('0x44')](_0x27f2('0x2c'));let _0x2385a7,_0x4533fe;this[_0x27f2('0x4c')][_0x27f2('0x28')](_0x43de3b['id'])?(_0x4533fe=this[_0x27f2('0x4c')][_0x27f2('0x44')](_0x43de3b['id']),_0x2385a7=_0x4533fe[_0x27f2('0x31')]):(_0x2385a7=new _0x2d495e(_0x1028e6[_0x27f2('0x3d')],_0x43de3b,_0x5f382d,{'disableComments':this[_0x27f2('0x29')],'editorConfig':_0x15e127[_0x27f2('0x44')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x15e127['get'](_0x27f2('0xf')),'maxThreadTotalWeight':_0x15e127[_0x27f2('0x44')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x15e127[_0x27f2('0x44')](_0x27f2('0x2b')),'formatDateTime':_0x232e0e(_0x15e127[_0x27f2('0x44')](_0x27f2('0x3d'))),'CommentView':_0x15e127[_0x27f2('0x44')]('comments')[_0x27f2('0x23')],'CommentsListView':_0x583d59,'CommentThreadInputView':_0x1c4a44}),_0x2385a7['acceptButton']['on']('execute',()=>{_0x1028e6[_0x27f2('0x62')][_0x27f2('0xd')]['focus']();}),_0x2385a7[_0x27f2('0x46')]['on'](_0x27f2('0x41'),()=>{_0x1028e6['editing'][_0x27f2('0xd')][_0x27f2('0x2d')]();}),_0x4533fe=_0x14f094['createAnnotationView'](this[_0x27f2('0x20')][_0x27f2('0x3d')],_0x2385a7),_0x4533fe[_0x27f2('0x60')](_0x27f2('0xa'))['to'](_0x2385a7,_0x27f2('0xa')),_0x4533fe[_0x27f2('0x60')]('length')['to'](_0x2385a7),_0x4533fe[_0x27f2('0x60')](_0x27f2('0x24'))['to'](_0x2385a7,_0x27f2('0x24'),_0x2fd181=>_0x27f2('0x14')+_0x2fd181),this[_0x27f2('0x4c')][_0x27f2('0x48')](_0x43de3b['id'],_0x4533fe));const _0x34615b=_0x3a3adb[_0x27f2('0x5')](_0x43de3b[_0x27f2('0x61')],_0x2385a7),_0x375dc6=new _0x73486(_0x1028e6,_0x43de3b,_0x2385a7,_0x34615b),_0x3505c3=_0x43de3b[_0x27f2('0x15')]()[_0x27f2('0xc')](_0x353880=>_0x353880[_0x27f2('0x58')]);_0x2385a7[_0x27f2('0x5d')]=_0x1028e6[_0x27f2('0x63')][_0x27f2('0x44')]('TrackChangesEditing')[_0x27f2('0x4b')][_0x27f2('0x1f')](_0x3505c3),this[_0x27f2('0x10')][_0x27f2('0x48')](_0x43de3b,_0x375dc6),this['_viewToController']['set'](_0x2385a7,_0x375dc6);const _0x4086c4=_0x14f094[_0x27f2('0x3')]({'view':_0x4533fe,'target':()=>{const _0x417a48=[],_0x2f7ff6=_0x43de3b[_0x27f2('0x15')]()[_0x27f2('0xc')](_0x32c17c=>_0x32c17c[_0x27f2('0x58')]);for(const _0x1a3f27 of _0x2f7ff6)_0x417a48['push'](..._0x1a3f27[_0x27f2('0x1b')]());return _0x20d90f(_0x1028e6['editing'],_0x417a48);},'type':()=>_0x27f2('0x14')+_0x375dc6[_0x27f2('0xd')][_0x27f2('0x24')]});_0x3a3adb[_0x27f2('0x18')](_0x2385a7,_0x4086c4),_0x14f094['add'](_0x4086c4),_0x377461[_0x27f2('0x64')](_0x4086c4);}[_0x27f2('0x57')](_0x31e066){const _0x1a030a=this[_0x27f2('0x20')][_0x27f2('0x63')]['get']('Annotations'),_0xe1ecf9=this[_0x27f2('0x10')][_0x27f2('0x44')](_0x31e066),_0x1d1cc2=_0xe1ecf9[_0x27f2('0xd')],_0x4f2d81=_0x1a030a['getByInnerView'](_0x1d1cc2);_0x4f2d81&&_0x1a030a['remove'](_0x4f2d81),this[_0x27f2('0x10')]['delete'](_0x31e066),this[_0x27f2('0x34')]['delete'](_0x1d1cc2),_0xe1ecf9[_0x27f2('0x1c')]();}[_0x27f2('0x39')](_0x2e9249){if(!_0x2e9249[_0x27f2('0x58')]||!this['_suggestionToController'][_0x27f2('0x28')](_0x2e9249))return;const _0x186536=this[_0x27f2('0x20')][_0x27f2('0x63')][_0x27f2('0x44')](_0x27f2('0x2e')),_0x1cd938=this[_0x27f2('0x10')][_0x27f2('0x44')](_0x2e9249),_0x231206=_0x2e9249['getAllAdjacentSuggestions']();_0x1cd938[_0x27f2('0xd')]['descriptionParts']=_0x186536[_0x27f2('0x4b')]['getDescriptions'](_0x231206);}[_0x27f2('0x1c')](){for(const _0x1ccef5 of this[_0x27f2('0x10')]['keys']())this[_0x27f2('0x57')](_0x1ccef5);for(const _0x55da7f of this[_0x27f2('0x4c')]['values']())_0x55da7f[_0x27f2('0x31')][_0x27f2('0x1c')]();super['destroy']();}}
|
|
23
|
+
const _0x39fc=['createAnnotation','getDescriptions','hasSuggestion','set','actionView','add','remove','_refreshActiveMarkers','view','createAnnotationView','registerAnnotation','getJoined','change:previous','source','EditorAnnotations','type','CommentView','_updateController','_handleControllerBuffer','discardButton','isOn','innerView','isInContent','separator','commands','execute','buttonView','change:activeAnnotations','switchbutton','clear','listenTo','getRanges','comments.editorConfig','toMany','_createUIButton','previous','_initializeController','arrowView','_viewToController','getMarkers','some','length','value','filter','init','trackChanges','head','map','locale','size','unbind','getMarkerNames','getFirstRange','delete','Track\x20changes','getSuggestion','trackChanges.disableComments','TrackChangesEditing','button','_annotationViews','discardAllSuggestions','comments.maxCommentsWhenCollapsed','CommentsUI','CommentsRepository','define','stopListening','commandName','suggestionUnloaded','from','addSourceCollector','isDirty','isMultiRange','pluginName','focus','config','_destroyController','push','get','_handleSuggestionControllerDelayed','reduce','activeMarkers','bind','suggestion-','comments','getByInnerView','Accept\x20all\x20suggestions','Discard\x20all\x20selected\x20suggestions','refreshSelectedViews','editing','plugins','editor','destroy','model','TrackChangesUI','activeAnnotations','mainView','_suggestionToController','descriptionParts','Annotations','getAllAdjacentSuggestions','acceptButton','acceptSelectedSuggestions','discardSelectedSuggestions','has','isEnabled','_descriptionFactory','commentThread','_disableComments'];(function(_0x3c369e,_0x39fcaa){const _0x4e5197=function(_0x2537af){while(--_0x2537af){_0x3c369e['push'](_0x3c369e['shift']());}};_0x4e5197(++_0x39fcaa);}(_0x39fc,0x161));const _0x4e51=function(_0x3c369e,_0x39fcaa){_0x3c369e=_0x3c369e-0x0;let _0x4e5197=_0x39fc[_0x3c369e];return _0x4e5197;};import{Plugin as _0x4797f6}from'ckeditor5/src/core';import{Collection as _0x394010}from'ckeditor5/src/utils';import{Model as _0x31b224,SplitButtonView as _0x5a5c77,createDropdown as _0x9f4f1c,addListToDropdown as _0x5c9978}from'ckeditor5/src/ui';import{Users as _0x42c7f7,getDateTimeFormatter as _0x3eb480,getAllMarkersDomElementsSorted as _0x130df9}from'ckeditor5-collaboration/src/collaboration-core';import _0x5236a9 from'./trackchangesediting';import _0x3831b5 from'./ui/suggestioncontroller';import _0x53bfbe from'./ui/view/suggestionthreadview';import{getTranslation as _0x45c7f8}from'./utils/common-translations';import _0x54e465 from'../theme/icons/track-changes.svg';export default class d extends _0x4797f6{static get['requires'](){return[_0x5236a9,_0x42c7f7,'CommentsRepository',_0x4e51('0x45'),_0x4e51('0x5d')];}static get[_0x4e51('0x2b')](){return _0x4e51('0x40');}constructor(_0x45210a){super(_0x45210a),this[_0x4e51('0x43')]=new Map(),this[_0x4e51('0x9')]=new Map(),this[_0x4e51('0x1e')]=new Map(),this[_0x4e51('0x61')]=new Map();const _0x187b3e=this[_0x4e51('0x3d')]['config'];_0x187b3e[_0x4e51('0x23')]('trackChanges.SuggestionThreadView',_0x53bfbe),_0x187b3e[_0x4e51('0x23')]('trackChanges.disableComments',!0x1),this['_disableComments']=_0x187b3e[_0x4e51('0x30')](_0x4e51('0x1b'));}[_0x4e51('0x31')](_0xb0eca,_0x2a079d){0x0===this[_0x4e51('0x61')][_0x4e51('0x14')]&&setTimeout(()=>{for(const [_0x246e6b,_0x360be4]of this[_0x4e51('0x61')]){const _0x4355c1=this[_0x4e51('0x43')]['has'](_0x246e6b);_0x4355c1||_0x360be4?_0x4355c1&&_0x360be4&&this[_0x4e51('0x2e')](_0x246e6b):this[_0x4e51('0x7')](_0x246e6b);}this[_0x4e51('0x3d')]['plugins'][_0x4e51('0x30')]('EditorAnnotations')[_0x4e51('0x3a')](),this[_0x4e51('0x56')](),this[_0x4e51('0x61')][_0x4e51('0x0')]();},0xa),this[_0x4e51('0x61')][_0x4e51('0x52')](_0xb0eca,_0x2a079d);}[_0x4e51('0xf')](){const _0x50389d=this[_0x4e51('0x3d')],_0x471f6e=_0x50389d['plugins'][_0x4e51('0x30')](_0x4e51('0x1c')),_0x507dd4=_0x50389d[_0x4e51('0x3c')][_0x4e51('0x30')]('Annotations'),_0xfd1d6b=_0x50389d['plugins'][_0x4e51('0x30')]('EditorAnnotations'),_0x46c37f=_0x50389d[_0x4e51('0x3c')][_0x4e51('0x30')]('CommentsRepository');_0x50389d['ui']['componentFactory'][_0x4e51('0x54')](_0x4e51('0x10'),_0x4efa63=>this['_createUIButton'](_0x4efa63)),_0xfd1d6b[_0x4e51('0x28')](()=>{const _0x477b26=[];for(const [_0x2f7507,_0x55acb9]of Array[_0x4e51('0x27')](this['_suggestionToController'])){const _0x5c5120=_0x2f7507[_0x4e51('0x46')](),_0x26e8db=[];for(const _0x2236bd of _0x5c5120){if(!_0x2236bd[_0x4e51('0x65')])continue;if(_0x2236bd[_0x4e51('0x2a')]){_0x26e8db[_0x4e51('0x2f')](..._0x2236bd[_0x4e51('0x2')]());continue;}const _0x4df5d8=_0x2236bd[_0x4e51('0x17')]();if(_0x26e8db[_0x4e51('0xc')]>0x0){const _0x41084d=_0x26e8db[0x0][_0x4e51('0x5a')](_0x4df5d8);if(_0x41084d){_0x26e8db[0x0]=_0x41084d;continue;}}_0x26e8db['push'](_0x4df5d8);}_0x477b26[_0x4e51('0x2f')]([_0x55acb9[_0x4e51('0x57')],_0x26e8db]);}return _0x477b26;}),this[_0x4e51('0x1')](_0x471f6e,'suggestionLoaded',(_0x4710cf,_0x4a7da3)=>{this[_0x4e51('0x1')](_0x4a7da3,'change:previous',(_0x2be46a,_0x337a59,_0x10258f,_0x3e0b53)=>{_0x4a7da3[_0x4e51('0x65')]&&(null==_0x10258f?(this[_0x4e51('0x60')](_0x3e0b53['head']),this[_0x4e51('0x31')](_0x4a7da3,!0x1)):(this[_0x4e51('0x60')](_0x10258f[_0x4e51('0x11')]),this['_handleSuggestionControllerDelayed'](_0x4a7da3,!0x0)));}),null===_0x4a7da3[_0x4e51('0x6')]?this['_handleSuggestionControllerDelayed'](_0x4a7da3,!0x1):this[_0x4e51('0x60')](_0x4a7da3['head']);}),this[_0x4e51('0x1')](_0x471f6e,_0x4e51('0x26'),(_0x2edd7b,_0x1c76f4,_0x990043)=>{this[_0x4e51('0x24')](_0x1c76f4,_0x4e51('0x5b')),this[_0x4e51('0x61')][_0x4e51('0x18')](_0x1c76f4);const _0x4c09ad=_0x990043?_0x990043['head']:_0x1c76f4,_0x1c5cc7=this['_suggestionToController'][_0x4e51('0x30')](_0x4c09ad);null!==_0x990043&&this[_0x4e51('0x60')](_0x4c09ad),null===_0x990043&&_0x1c5cc7&&this[_0x4e51('0x2e')](_0x1c76f4);}),this['listenTo'](_0x471f6e,'suggestionChanged',(_0x2e73e3,_0x432b44)=>{this[_0x4e51('0x60')](_0x432b44);}),this[_0x4e51('0x1')](_0x507dd4,_0x4e51('0x6a'),()=>{this[_0x4e51('0x56')]();}),this[_0x4e51('0x1')](_0x46c37f,'addComment',(_0x466338,{threadId:_0x1b0575,isFromAdapter:_0x1c6279})=>{if(_0x1c6279||!_0x471f6e[_0x4e51('0x51')](_0x1b0575))return;const _0x5978df=_0x471f6e[_0x4e51('0x1a')](_0x1b0575);this[_0x4e51('0x43')][_0x4e51('0x30')](_0x5978df)[_0x4e51('0x57')][_0x4e51('0x2c')]();},{'priority':'lowest'});}[_0x4e51('0x56')](){const _0x4cd2cb=this[_0x4e51('0x3d')][_0x4e51('0x3c')][_0x4e51('0x30')]('Annotations'),_0x1e5766=this[_0x4e51('0x3d')]['plugins'][_0x4e51('0x30')](_0x4e51('0x1c')),_0x2b0b97=Array[_0x4e51('0x27')](_0x4cd2cb[_0x4e51('0x41')],_0xe7c36c=>_0xe7c36c[_0x4e51('0x64')])['filter'](_0xc91275=>this['_viewToController'][_0x4e51('0x4a')](_0xc91275)),_0x109d24=[];for(const _0x1bea4f of _0x2b0b97){const _0x521c18=this[_0x4e51('0x9')][_0x4e51('0x30')](_0x1bea4f)['model']['getAllAdjacentSuggestions']();_0x109d24['push'](..._0x521c18[_0x4e51('0x32')]((_0x545336,_0x4d6f37)=>[..._0x545336,..._0x4d6f37[_0x4e51('0x16')]()],[]));}_0x1e5766[_0x4e51('0x33')]=_0x109d24;}[_0x4e51('0x5')](_0x5cac21){const _0x4cffb9=_0x9f4f1c(_0x5cac21,_0x5a5c77),_0x1a98cc=this[_0x4e51('0x3d')]['commands']['get'](_0x4e51('0x10')),_0x3e3718=_0x45c7f8(_0x5cac21,_0x4e51('0x19'));_0x4cffb9[_0x4e51('0x69')]['set']({'tooltip':_0x3e3718,'label':_0x3e3718,'icon':_0x54e465}),_0x4cffb9[_0x4e51('0x69')]['bind'](_0x4e51('0x63'))['to'](_0x1a98cc,_0x4e51('0xd')),_0x4cffb9[_0x4e51('0x69')]['on'](_0x4e51('0x68'),()=>{_0x1a98cc[_0x4e51('0x68')](),this['editor'][_0x4e51('0x3b')][_0x4e51('0x57')][_0x4e51('0x2c')]();});const _0x50113d=new _0x394010(),_0x3f08c3=[{'type':_0x4e51('0x6b'),'model':{'withText':!0x0,'label':_0x3e3718,'commandName':_0x4e51('0x10')}},{'type':_0x4e51('0x66')},{'type':_0x4e51('0x1d'),'model':{'withText':!0x0,'label':_0x45c7f8(_0x5cac21,_0x4e51('0x38')),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x45c7f8(_0x5cac21,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x4e51('0x48')}},{'type':_0x4e51('0x1d'),'model':{'withText':!0x0,'label':_0x45c7f8(_0x5cac21,'Discard\x20all\x20suggestions'),'commandName':_0x4e51('0x1f')}},{'type':_0x4e51('0x1d'),'model':{'withText':!0x0,'label':_0x45c7f8(_0x5cac21,_0x4e51('0x39')),'commandName':_0x4e51('0x49')}}];for(const _0x64602b of _0x3f08c3){let _0x59978f={'type':'separator'};if(_0x64602b[_0x4e51('0x3f')]){const _0x504337=new _0x31b224(_0x64602b['model']),_0x6c5b1=this[_0x4e51('0x3d')][_0x4e51('0x67')][_0x4e51('0x30')](_0x504337['commandName']);_0x504337['bind'](_0x4e51('0x63'),_0x4e51('0x4b'))['to'](_0x6c5b1,_0x4e51('0xd'),'isEnabled'),_0x59978f={'type':_0x64602b[_0x4e51('0x5e')],'model':_0x504337};}_0x50113d[_0x4e51('0x54')](_0x59978f);}_0x5c9978(_0x4cffb9,_0x50113d);const _0x548cea=_0x3f08c3['filter'](_0x19553e=>null!=_0x19553e[_0x4e51('0x3f')])[_0x4e51('0x12')](_0x97b469=>this['editor'][_0x4e51('0x67')]['get'](_0x97b469[_0x4e51('0x3f')][_0x4e51('0x25')])),_0x3ef038=_0x4cffb9[_0x4e51('0x69')];return _0x3ef038[_0x4e51('0x53')][_0x4e51('0x15')](_0x4e51('0x4b')),_0x3ef038['arrowView'][_0x4e51('0x15')](_0x4e51('0x4b')),_0x3ef038[_0x4e51('0x53')]['bind']('isEnabled')['to'](_0x1a98cc,_0x4e51('0x4b')),_0x3ef038[_0x4e51('0x8')][_0x4e51('0x34')](_0x4e51('0x4b'))[_0x4e51('0x4')](_0x548cea,_0x4e51('0x4b'),(..._0x2b93c9)=>_0x2b93c9[_0x4e51('0xb')](_0x1f956d=>_0x1f956d)),_0x4cffb9['on'](_0x4e51('0x68'),_0x3e9ef3=>{this['editor'][_0x4e51('0x68')](_0x3e9ef3[_0x4e51('0x5c')]['commandName']),this[_0x4e51('0x3d')][_0x4e51('0x3b')][_0x4e51('0x57')][_0x4e51('0x2c')]();}),_0x4cffb9;}[_0x4e51('0x7')](_0x367ce5){const _0x1bbd63=this['editor'],_0x4d0edd=_0x1bbd63[_0x4e51('0x2d')],_0x4a55bc=_0x1bbd63[_0x4e51('0x3c')][_0x4e51('0x30')](_0x4e51('0x45')),_0x2eaed2=_0x1bbd63[_0x4e51('0x3c')][_0x4e51('0x30')](_0x4e51('0x22')),_0x41004d=_0x1bbd63[_0x4e51('0x3c')][_0x4e51('0x30')](_0x4e51('0x5d')),_0x416381=_0x1bbd63[_0x4e51('0x3c')]['get'](_0x42c7f7)['me'],_0xf9b691=_0x4d0edd['get'](_0x4e51('0x10'))['SuggestionThreadView'],{CommentsListView:_0x24a728,CommentThreadInputView:_0x57f771}=_0x1bbd63[_0x4e51('0x3c')][_0x4e51('0x30')](_0x4e51('0x21'));let _0x4c5cce,_0x3a61f0;this[_0x4e51('0x1e')]['has'](_0x367ce5['id'])?(_0x3a61f0=this['_annotationViews'][_0x4e51('0x30')](_0x367ce5['id']),_0x4c5cce=_0x3a61f0[_0x4e51('0x42')]):(_0x4c5cce=new _0xf9b691(_0x1bbd63['locale'],_0x367ce5,_0x416381,{'disableComments':this[_0x4e51('0x4e')],'editorConfig':_0x4d0edd['get'](_0x4e51('0x3')),'maxCommentsWhenCollapsed':_0x4d0edd[_0x4e51('0x30')](_0x4e51('0x20')),'maxThreadTotalWeight':_0x4d0edd[_0x4e51('0x30')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4d0edd[_0x4e51('0x30')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3eb480(_0x4d0edd[_0x4e51('0x30')](_0x4e51('0x13'))),'CommentView':_0x4d0edd[_0x4e51('0x30')](_0x4e51('0x36'))[_0x4e51('0x5f')],'CommentsListView':_0x24a728,'CommentThreadInputView':_0x57f771}),_0x4c5cce[_0x4e51('0x47')]['on'](_0x4e51('0x68'),()=>{_0x1bbd63[_0x4e51('0x3b')]['view'][_0x4e51('0x2c')]();}),_0x4c5cce[_0x4e51('0x62')]['on']('execute',()=>{_0x1bbd63[_0x4e51('0x3b')][_0x4e51('0x57')][_0x4e51('0x2c')]();}),_0x3a61f0=_0x4a55bc[_0x4e51('0x58')](this[_0x4e51('0x3d')][_0x4e51('0x13')],_0x4c5cce),_0x3a61f0[_0x4e51('0x34')]('isDirty')['to'](_0x4c5cce,_0x4e51('0x29')),_0x3a61f0[_0x4e51('0x34')](_0x4e51('0xc'))['to'](_0x4c5cce),_0x3a61f0[_0x4e51('0x34')](_0x4e51('0x5e'))['to'](_0x4c5cce,_0x4e51('0x5e'),_0x2a92dc=>_0x4e51('0x35')+_0x2a92dc),this[_0x4e51('0x1e')]['set'](_0x367ce5['id'],_0x3a61f0));const _0x1fc0c7=_0x2eaed2['createCommentThreadController'](_0x367ce5[_0x4e51('0x4d')],_0x4c5cce),_0x9b3421=new _0x3831b5(_0x1bbd63,_0x367ce5,_0x4c5cce,_0x1fc0c7),_0x55781f=_0x367ce5[_0x4e51('0x46')]()[_0x4e51('0xe')](_0x2b01d6=>_0x2b01d6[_0x4e51('0x65')]);_0x4c5cce[_0x4e51('0x44')]=_0x1bbd63[_0x4e51('0x3c')][_0x4e51('0x30')](_0x4e51('0x1c'))[_0x4e51('0x4c')][_0x4e51('0x50')](_0x55781f),this['_suggestionToController'][_0x4e51('0x52')](_0x367ce5,_0x9b3421),this['_viewToController'][_0x4e51('0x52')](_0x4c5cce,_0x9b3421);const _0xd1f6c3=_0x4a55bc[_0x4e51('0x4f')]({'view':_0x3a61f0,'target':()=>{const _0xf0bb74=[],_0x29a796=_0x367ce5['getAllAdjacentSuggestions']()[_0x4e51('0xe')](_0x1ccbe3=>_0x1ccbe3[_0x4e51('0x65')]);for(const _0x405293 of _0x29a796)_0xf0bb74['push'](..._0x405293[_0x4e51('0xa')]());return _0x130df9(_0x1bbd63['editing'],_0xf0bb74);},'type':()=>_0x4e51('0x35')+_0x9b3421[_0x4e51('0x57')][_0x4e51('0x5e')]});_0x2eaed2['_bindAnnotationToEditors'](_0x4c5cce,_0xd1f6c3),_0x4a55bc[_0x4e51('0x54')](_0xd1f6c3),_0x41004d[_0x4e51('0x59')](_0xd1f6c3);}['_destroyController'](_0x503c5f){const _0x47c258=this[_0x4e51('0x3d')]['plugins']['get'](_0x4e51('0x22')),_0xcaf7f6=this[_0x4e51('0x3d')][_0x4e51('0x3c')][_0x4e51('0x30')](_0x4e51('0x45')),_0x451bd4=this[_0x4e51('0x43')][_0x4e51('0x30')](_0x503c5f),_0x5243d1=_0x451bd4[_0x4e51('0x57')],_0x539f95=_0xcaf7f6[_0x4e51('0x37')](_0x5243d1);_0x47c258['_unbindEditors'](_0x5243d1),_0x539f95&&_0xcaf7f6[_0x4e51('0x55')](_0x539f95),this[_0x4e51('0x43')][_0x4e51('0x18')](_0x503c5f),this['_viewToController'][_0x4e51('0x18')](_0x5243d1),_0x451bd4[_0x4e51('0x3e')]();}[_0x4e51('0x60')](_0x173039){if(!_0x173039['isInContent']||!this[_0x4e51('0x43')][_0x4e51('0x4a')](_0x173039))return;const _0x348b81=this[_0x4e51('0x3d')][_0x4e51('0x3c')][_0x4e51('0x30')]('TrackChangesEditing'),_0x558d69=this[_0x4e51('0x43')][_0x4e51('0x30')](_0x173039),_0x1e29a5=_0x173039[_0x4e51('0x46')]();_0x558d69[_0x4e51('0x57')][_0x4e51('0x44')]=_0x348b81[_0x4e51('0x4c')][_0x4e51('0x50')](_0x1e29a5);}[_0x4e51('0x3e')](){for(const _0x530538 of this['_suggestionToController']['keys']())this['_destroyController'](_0x530538);for(const _0x53b15a of this[_0x4e51('0x1e')]['values']())_0x53b15a['mainView'][_0x4e51('0x3e')]();super[_0x4e51('0x3e')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5195=['_discardCommand','execute','add','PendingActions','_pendingAction','change:isDirty','acceptSuggestion','isEnabled','get','canDiscard','locale','_removePendingAction','PENDING_ACTION_SUGGESTION','model','plugins','bind','_setPendingAction','stopListening','_editor','view','discardSuggestion','isDirty','_acceptCommand','listenTo','commentThreadController','getRanges','commands','canAccept','canEditAt','unbind'];(function(_0x36f37c,_0x5195a4){const _0x26c5e5=function(_0x12c6df){while(--_0x12c6df){_0x36f37c['push'](_0x36f37c['shift']());}};_0x26c5e5(++_0x5195a4);}(_0x5195,0x14b));const _0x26c5=function(_0x36f37c,_0x5195a4){_0x36f37c=_0x36f37c-0x0;let _0x26c5e5=_0x5195[_0x36f37c];return _0x26c5e5;};import{ObservableMixin as _0xb398ad}from'ckeditor5/src/utils';import{getTranslation as _0x5a1087}from'../utils/common-translations';export default class Ft extends _0xb398ad(){constructor(_0xe0030c,_0xd11a48,_0x1f3476,_0x83eab9){super(),this['model']=_0xd11a48,this['view']=_0x1f3476,this[_0x26c5('0x17')]=_0x83eab9,this[_0x26c5('0x11')]=_0xe0030c,this[_0x26c5('0x15')]=_0xe0030c['commands'][_0x26c5('0x7')]('acceptSuggestion'),this[_0x26c5('0x1d')]=_0xe0030c[_0x26c5('0x19')][_0x26c5('0x7')]('discardSuggestion'),this['view'][_0x26c5('0xe')](_0x26c5('0x6'))['to'](this[_0x26c5('0x15')],this['_discardCommand'],(_0x39ff3b,_0x4e9501)=>_0x39ff3b||_0x4e9501),this[_0x26c5('0x12')][_0x26c5('0xe')](_0x26c5('0x1a'))['to'](this[_0x26c5('0x15')],'isEnabled',_0xca0246=>_0xca0246&&this['_editor']['model'][_0x26c5('0x1b')](_0xd11a48[_0x26c5('0x18')]())),this[_0x26c5('0x12')]['bind'](_0x26c5('0x8'))['to'](this['_discardCommand'],_0x26c5('0x6'),_0x638166=>_0x638166&&this['_editor'][_0x26c5('0xc')][_0x26c5('0x1b')](_0xd11a48[_0x26c5('0x18')]())),this['_pendingAction']=null,_0x1f3476[_0x26c5('0x14')]&&this[_0x26c5('0xf')](),this[_0x26c5('0x16')](_0x1f3476,'acceptSuggestion',()=>this[_0x26c5('0x5')]()),this['listenTo'](_0x1f3476,_0x26c5('0x13'),()=>this['discardSuggestion']()),this['listenTo'](_0x1f3476,_0x26c5('0x4'),()=>{_0x1f3476['isDirty']?this[_0x26c5('0xf')]():this[_0x26c5('0xa')]();});}[_0x26c5('0x5')](){this['_acceptCommand'][_0x26c5('0x0')](this[_0x26c5('0xc')]['id']);}['discardSuggestion'](){this[_0x26c5('0x1d')][_0x26c5('0x0')](this[_0x26c5('0xc')]['id']);}['destroy'](){this['view'][_0x26c5('0x1c')](_0x26c5('0x6')),this['view']['unbind'](_0x26c5('0x1a')),this[_0x26c5('0x12')][_0x26c5('0x1c')](_0x26c5('0x8')),this[_0x26c5('0x10')](),this[_0x26c5('0x17')]['destroy'](),this[_0x26c5('0x3')]&&this[_0x26c5('0xa')]();}[_0x26c5('0xf')](){const _0x2fc738=_0x5a1087(this[_0x26c5('0x11')][_0x26c5('0x9')],_0x26c5('0xb'));this[_0x26c5('0x3')]=this[_0x26c5('0x11')]['plugins'][_0x26c5('0x7')](_0x26c5('0x2'))[_0x26c5('0x1')](_0x2fc738);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor'][_0x26c5('0xd')][_0x26c5('0x7')]('PendingActions')['remove'](this[_0x26c5('0x3')]),this[_0x26c5('0x3')]=null;}}
|