@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230707.0 → 0.0.0-nightly-20230709.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 _0x24b2=['isAfter','batch','remove','addSuggestionData','getAllAdjacentSuggestions','addMarkerName','trackChanges.mergeNestedSuggestions','isInContent','fetchCommentThread','join','formatInline','hasComments','getFirstRange','isNextTo','elementToElement','delete','refresh','getRange','rethrowUnexpectedError','previous','values','formatBlock:','addMarker:suggestion','nodeAfter','commentThread','isDocumentOperation','activeMarkers','fromCharCode','getSuggestionCallback','markerToHighlight','options','default','range','registerPostFixer','acceptSelectedSuggestions','_defaultCallbacks','containerElement','setAttribute','PENDING_ACTION_SUGGESTION','substr','_registerDefaultCallbacks','track-changes-adapter-already-set','root','getMultiRangeId','updateMarker','bindElementToMarker','_getAuthorFromId','removed','isBefore','move','element','deletion','pluginName','accept','ck-suggestion-marker-formatBlock','catch','formatInline:discard','removeClass','item','addRange','_suggestionFactory','requires','isIntersectingWithRange','upcast','_enabledCommands','enableReadOnlyMode','chain','addSuggestion','newRange','acceptSuggestion','set','isEqual','fromRange','isLocal','end','deletion:','_refreshSuggestionsChain','split','addClass','getChangedMarkers','detach','value','Users','_adapter','_mergeNestedSuggestions','insertion:accept','_customCallbacks','createRangeIn','containsRangeInObject','skipNestingCheck','oldRange','CommentsRepository','data','change','position','accepted','_commentsRepository','stop','removeMarker','containsRange','error-saving-suggestion-data-suggestion-discarded','acceptAllSuggestions','attributes','forceDefaultExecution','addHighlight','fire','ready','sort','_rangeIsInLocalUserInsertion','formatInline:','suggestion:','createRange','change:_saved','_checkSuggestionCorrectness','_suggestionState','suggestionUnloaded','formatGroupId','define','name','isAtEnd','consumable','_onDiscard','has','_descriptionFactory','_addSuggestionMarker','getLastMatchingPosition','_isForcedDefaultExecutionBlock','removeComment','_updateSuggestionData','markBlockFormat','track-changes-suggestion-not-found','isRemovable','markerReady','formatBlock:accept','notReady','updateSuggestion','_trackFormatChanges','get','insertion','createSelection','getUser','isTouching','createPositionAfter','getFirstMarker','getRanges','createPositionBefore','getAttribute','formatBlock:join','consume','document','removeMarkers','isExternal','discardAllSuggestions','backward','_editor','from','authorName','model','@external','update:suggestion','suggestionLoaded','deletion:accept','howMany','plugins','never','selection','isCollapsed','markInsertion','differ','_breakSuggestionMarker','some','formatInline:chain','change:activeMarkers','_setSuggestionData','locale','multi','high','getAncestors','$marker','insertContent','getCustomProperty','markDeletion','collaboration.channelId','stopListening','parent','writer','every','dataToMarker','_addThreadToSuggestion','always','ck-suggestion-marker','_cutOutSuggestionMarker','showSuggestionHighlights','deletion:join','dataReady','suggestion-type','originalSuggestionId','_joinSuggestions','_findSuggestions','moveTargetPosition','subType','getMarkers','$graveyard','trackChanges.trackFormatChanges','_setSuggestionRange','isBlock','track-changes-suggestion-data-mismatch','formatInline:join','markMultiRangeBlockFormat','elementEnd','deleteContent','isUndo','isOwn','_createSuggestion','adapter','after','size','insertion:chain','schema','formatBlock','data-suggestion','ck-suggestion-marker-','_handleNewSuggestionMarker','splice','addUser','add','applyOperation','getSuggestion','normal','markerNameToElements','_model','getShiftedBy','registerCustomCallback','author','discardSuggestion','creator','for','group','open','length','insert','_joinWithAdjacentSuggestions','createPositionAt','getDifference','buildSuggestion','getSuggestions','marker-count','setSelection','conversion','mapper','suggestionChanged','discardSelectedSuggestions','addCommentThread','markers','push','filter','return','then','isMultiRange','enableCommand','listenTo','PendingActions','multipleBlocks','_getExternalAuthor','ck-suggestion-marker--active','removeMarker:suggestion:formatBlock','widget','$textProxy','setTo','head','containsItem','low','rootName','toViewElement','getIntersection','isInsideObject','type','commands','isLimit','dataDowncast','addMarker','isObject','hasSuggestion','_saved','authoredAt','trackChanges','map','markerName','nodeBefore','commandName','editingDowncast','_suggestions','createElement','lowest','unbind','config','rejected','insertion:join','documentSelection','_splitMarkerName','getChanges','getNearestSelectionRange','includes','suggestion','start','formatBlock:chain','formatBlock:discard','unbindElementFromMarkerName','forward','discard','editor','trackChangesCommand','next','_removeSuggestion','isAtStart','_getSuggestionData','markMultiRangeDeletion','createdAt'];(function(_0x411d17,_0x24b2ca){const _0x38669f=function(_0xd6b13a){while(--_0xd6b13a){_0x411d17['push'](_0x411d17['shift']());}};_0x38669f(++_0x24b2ca);}(_0x24b2,0x175));const _0x3866=function(_0x411d17,_0x24b2ca){_0x411d17=_0x411d17-0x0;let _0x38669f=_0x24b2[_0x411d17];return _0x38669f;};import{Plugin as _0xfd98c0,PendingActions as _0x3a68de}from'ckeditor5/src/core';import{LiveRange as _0x10ff46}from'ckeditor5/src/engine';import{CKEditorError as _0x217484,uid as _0x2760d2,priorities as _0x5a7cbd,logWarning as _0x394639}from'ckeditor5/src/utils';import{toWidget as _0x1700a1}from'ckeditor5/src/widget';import{Users as _0x2a2bae,hashObject as _0x1e68fd}from'ckeditor5-collaboration/src/collaboration-core';import _0x491a90 from'./commands/trackchangescommand';import _0x4d7ced from'./commands/acceptsuggestioncommand';import _0x2a2caf from'./commands/discardsuggestioncommand';import _0x4b9b1f from'./commands/executeonallsuggestionscommand';import _0x1e58db from'./commands/executeonselectedsuggestionscommand';import _0x3a1096 from'./suggestion';import _0x396d25 from'./suggestiondescriptionfactory';import _0x15203a from'./integrations/alignment';import _0x364ef4 from'./integrations/basicstyles';import _0x53850e from'./integrations/blockquote';import _0x3d614c from'./integrations/ckbox';import _0x3f1a76 from'./integrations/codeblock';import _0x26fdd2 from'./integrations/comments';import _0x40ed5d from'./integrations/deletecommand';import _0x1d5017 from'./integrations/documentlist';import _0x1b0b3b from'./integrations/entercommand';import _0x60b039 from'./integrations/findandreplace';import _0x3123cf from'./integrations/font';import _0x56026c from'./integrations/formatpainter';import _0xd31d0f from'./integrations/heading';import _0x4725e8 from'./integrations/highlight';import _0x124712 from'./integrations/horizontalline';import _0x20998c from'./integrations/htmlembed';import _0x448d77 from'./integrations/image';import _0x27da03 from'./integrations/imagereplace';import _0x1ffe09 from'./integrations/importword';import _0x5cdab6 from'./integrations/indent';import _0x310a3a from'./integrations/inputcommand';import _0x1cfe62 from'./integrations/link';import _0xebea54 from'./integrations/list';import _0x31da56 from'./integrations/listproperties';import _0x51835c from'./integrations/mediaembed';import _0x3b77d0 from'./integrations/mention';import _0x470494 from'./integrations/pagebreak';import _0x29d4b7 from'./integrations/paragraph';import _0x81daa0 from'./integrations/removeformat';import _0x11b69b from'./integrations/restrictededitingmode';import _0xa3f387 from'./integrations/shiftentercommand';import _0x15a35c from'./integrations/standardeditingmode';import _0x26eca3 from'./integrations/style';import _0x29dfec from'./integrations/table';import _0x14a6fc from'./integrations/tablemergesplit';import _0x2a997a from'./integrations/tableheadings';import _0x43d031 from'./integrations/tableclipboard';import _0xc0322c from'./integrations/tablecolumnresize';import _0x35cc79 from'./integrations/template';import _0x25136f from'./integrations/tableofcontents';import _0x31e5eb from'./integrations/title';import _0x86a226 from'./integrations/undo';import{getTranslation as _0x2cae61}from'./utils/common-translations';import _0x2e21f7 from'./integrations/tablecaption';import _0x4536ec from'./integrations/documentlistproperties';import _0x113d30 from'./integrations/tableproperties';export default class p extends _0xfd98c0{static get[_0x3866('0x6')](){return[_0x3866('0x24'),_0x2a2bae,_0x3a68de,_0x15203a,_0x364ef4,_0x53850e,_0x3d614c,_0x3f1a76,_0x26fdd2,_0x40ed5d,_0x1d5017,_0x4536ec,_0x1b0b3b,_0x60b039,_0x3123cf,_0x56026c,_0xd31d0f,_0x4725e8,_0x124712,_0x20998c,_0x448d77,_0x27da03,_0x1ffe09,_0x5cdab6,_0x310a3a,_0x1cfe62,_0xebea54,_0x31da56,_0x51835c,_0x3b77d0,_0x470494,_0x29d4b7,_0x81daa0,_0x11b69b,_0xa3f387,_0x15a35c,_0x26eca3,_0x29dfec,_0x14a6fc,_0x2a997a,_0x2e21f7,_0x43d031,_0xc0322c,_0x25136f,_0x113d30,_0x35cc79,_0x31e5eb,_0x86a226];}static get[_0x3866('0x13b')](){return'TrackChangesEditing';}constructor(_0x46f0d6){function _0x306a27(_0x3a793a){return _0x3a793a[_0x3866('0xe7')](_0x2a5b7b=>String[_0x3866('0x122')](_0x2a5b7b))[_0x3866('0x110')]('');}super(_0x46f0d6),this[_0x3866('0xf')](_0x3866('0x121'),[]),this['on'](_0x3866('0x75'),(_0x41724d,_0x289d26,_0x1cd66e,_0x134178)=>{this[_0x3866('0xaf')][_0x3866('0x26')](()=>{for(const _0x2b690e of[..._0x134178,..._0x1cd66e])this[_0x3866('0xaf')][_0x3866('0xc6')]['has'](_0x2b690e)&&_0x46f0d6['editing']['reconvertMarker'](_0x2b690e);});}),this[_0x3866('0x44')]=new _0x396d25(this[_0x3866('0xff')]['model'][_0x3866('0xa3')],this[_0x3866('0xff')][_0x3866('0x77')]),this[_0x3866('0x1c')]=null,this[_0x3866('0x5')]=new Dt(this[_0x3866('0xff')]),this['_suggestions']=new Map(),this[_0x3866('0x29')]=_0x46f0d6['plugins']['get']('CommentsRepository'),this[_0x3866('0x9')]=new Set(),this[_0x3866('0xaf')]=this[_0x3866('0xff')][_0x3866('0x66')],this['_suggestionState']=new WeakMap(),this[_0x3866('0x47')]=!0x1,_0x46f0d6[_0x3866('0xf0')]['define'](_0x3866('0x94'),_0x3866('0x126')),this['_trackFormatChanges']=_0x46f0d6['config'][_0x3866('0x52')](_0x3866('0x94')),_0x46f0d6[_0x3866('0xf0')][_0x3866('0x3e')](_0x3866('0x10d'),!0x0),this['_mergeNestedSuggestions']=_0x46f0d6[_0x3866('0xf0')][_0x3866('0x52')](_0x3866('0x10d')),this[_0x3866('0x100')]=new _0x491a90(_0x46f0d6,this[_0x3866('0x9')]),this[_0x306a27([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x306a27([0x34,0x30,0x34,0x36,0x31,0x34,0x31,0x34]);}['init'](){const _0x326423=this[_0x3866('0xff')];_0x326423[_0x3866('0xc1')][_0x3866('0xb5')](_0x3866('0xeb'))[_0x3866('0x124')]({'model':_0x3866('0xf8'),'view':_0x3b8a15=>{const {id:_0x36427c,type:_0x21aa2a}=this[_0x3866('0xf4')](_0x3b8a15[_0x3866('0xe8')]),_0xcd9573=[_0x3866('0x87'),_0x3866('0xa6')+_0x21aa2a];let _0x1e233e=0xbb8;return this[_0x3866('0x121')][_0x3866('0xf7')](_0x3b8a15['markerName'])&&(_0xcd9573[_0x3866('0xc7')]('ck-suggestion-marker--active'),_0x1e233e=0xbc2),_0x3866('0x13a')==_0x21aa2a&&(_0x1e233e+=0x5),{'classes':_0xcd9573,'attributes':{'data-suggestion':_0x36427c},'priority':_0x1e233e};}}),_0x326423[_0x3866('0xc1')][_0x3866('0xb5')](_0x3866('0xe0'))['add'](_0x5576b1=>{_0x5576b1['on'](_0x3866('0x11d'),(_0x28b511,_0x2ac3e8,_0x5e3443)=>{if(!_0x5e3443[_0x3866('0x125')][_0x3866('0x89')])return;const _0x22d8df=_0x2ac3e8[_0x3866('0x3')];if(!_0x22d8df)return;const _0x5cae6e=_0x5e3443['mapper']['toViewElement'](_0x22d8df);_0x326423[_0x3866('0x66')][_0x3866('0xa3')][_0x3866('0xe2')](_0x22d8df)&&_0x5cae6e&&!_0x5cae6e['getCustomProperty'](_0x3866('0xd3'))&&_0x5cae6e['is'](_0x3866('0x12b'))&&_0x1700a1(_0x5cae6e,_0x5e3443[_0x3866('0x82')]);},{'priority':_0x3866('0x79')});}),_0x326423['conversion'][_0x3866('0xb5')](_0x3866('0xe0'))[_0x3866('0x124')]({'model':_0x3866('0xf8'),'view':(_0x47bf3c,_0x1ea799)=>{if(!_0x1ea799['options'][_0x3866('0x89')])return null;const {type:_0x5b638d}=this[_0x3866('0xf4')](_0x47bf3c[_0x3866('0xe8')]);return{'classes':[_0x3866('0x87'),_0x3866('0xa6')+_0x5b638d],'priority':0xbb8};}});const _0x15371a=({showActiveMarkers:_0x30ad51=!0x0}={})=>(_0x25cd8e,_0x5429c4,_0x5b261b)=>{if(!_0x5429c4['item'])return;if(_0x5429c4[_0x3866('0x3')]['is'](_0x3866('0x6e')))return void _0x5b261b[_0x3866('0x41')]['consume'](_0x5429c4[_0x3866('0x3')],_0x25cd8e['name']);const _0x2fc647=_0x5b261b['mapper'][_0x3866('0xda')](_0x5429c4[_0x3866('0x3')]);if(!(_0x5429c4[_0x3866('0x3')]['is'](_0x3866('0x139'))&&_0x326423[_0x3866('0x66')][_0x3866('0xa3')][_0x3866('0x96')](_0x5429c4['item'])&&!_0x2fc647['getCustomProperty']('addHighlight')))return;const {id:_0x1432aa}=this['_splitMarkerName'](_0x5429c4[_0x3866('0xe8')]);_0x5b261b['writer'][_0x3866('0x17')]([_0x3866('0x87'),_0x3866('0x13d')],_0x2fc647),_0x5b261b['writer'][_0x3866('0x12c')]('data-suggestion',_0x1432aa,_0x2fc647),_0x5b261b[_0x3866('0xc2')][_0x3866('0x134')](_0x2fc647,_0x5429c4['markerName']),_0x30ad51&&(this[_0x3866('0x121')]['includes'](_0x5429c4[_0x3866('0xe8')])?_0x5b261b[_0x3866('0x82')][_0x3866('0x17')](_0x3866('0xd1'),_0x2fc647):_0x5b261b[_0x3866('0x82')][_0x3866('0x2')](_0x3866('0xd1'),_0x2fc647));for(const _0x2f5135 of _0x326423[_0x3866('0x66')][_0x3866('0x20')](_0x5429c4[_0x3866('0x3')])['getItems']())_0x5b261b['consumable'][_0x3866('0x5d')](_0x2f5135,_0x25cd8e[_0x3866('0x3f')]);_0x5b261b[_0x3866('0x41')][_0x3866('0x5d')](_0x5429c4[_0x3866('0x3')],_0x25cd8e['name']);};_0x326423[_0x3866('0xc1')][_0x3866('0xb5')]('dataDowncast')[_0x3866('0xaa')](_0x112e34=>{_0x112e34['on']('addMarker:suggestion:formatBlock',(_0x18d147,_0x35ed8c,_0x505760)=>{_0x505760[_0x3866('0x125')][_0x3866('0x89')]&&_0x15371a({'showActiveMarkers':!0x1})(_0x18d147,_0x35ed8c,_0x505760);},{'priority':'highest'});}),_0x326423[_0x3866('0xc1')][_0x3866('0xb5')](_0x3866('0xe0'))['markerToData']({'model':_0x3866('0xf8'),'view':(_0x3eec87,_0x465919)=>_0x465919[_0x3866('0x125')][_0x3866('0x89')]?null:{'group':'suggestion','name':_0x3eec87[_0x3866('0x12e')](0xb)}}),_0x326423[_0x3866('0xc1')]['for']('upcast')[_0x3866('0x115')]({'view':{'name':_0x3866('0xf8'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x42897c,{writer:_0x42c7a0})=>{let _0x3cc76b=_0x3866('0x37')+_0x42897c[_0x3866('0x5b')](_0x3866('0x8c'))+':'+_0x42897c[_0x3866('0x5b')]('id');return _0x42897c['getAttribute'](_0x3866('0xbf'))&&(_0x3cc76b+=':'+_0x42897c[_0x3866('0x5b')](_0x3866('0xbf'))),_0x42c7a0[_0x3866('0xed')](_0x3866('0x7b'),{'data-name':_0x3cc76b});}}),_0x326423[_0x3866('0xc1')][_0x3866('0xb5')](_0x3866('0x8'))[_0x3866('0x84')]({'view':_0x3866('0xf8')}),_0x326423[_0x3866('0xc1')][_0x3866('0xb5')]('editingDowncast')['add'](_0x450988=>{_0x450988['on']('addMarker:suggestion:formatBlock',_0x15371a(),{'priority':_0x3866('0x79')});}),_0x326423[_0x3866('0xc1')][_0x3866('0xb5')](_0x3866('0xeb'))[_0x3866('0xaa')](_0x23a543=>{_0x23a543['on'](_0x3866('0xd2'),(_0x4833fe,_0x41ac15,_0x2d6889)=>{const _0x36b309=_0x2d6889[_0x3866('0xc2')][_0x3866('0xae')](_0x41ac15[_0x3866('0xe8')]);if(_0x36b309)for(const _0x464b50 of _0x36b309)_0x464b50[_0x3866('0x7d')](_0x3866('0x31'))||(_0x2d6889[_0x3866('0x82')][_0x3866('0x2')]([_0x3866('0x87'),_0x3866('0x13d'),'ck-suggestion-marker--active'],_0x464b50),_0x2d6889[_0x3866('0x82')]['removeAttribute'](_0x3866('0xa5'),_0x464b50),_0x2d6889['mapper'][_0x3866('0xfc')](_0x464b50,_0x41ac15['markerName']));},{'priority':_0x3866('0x79')});}),_0x326423[_0x3866('0x66')]['document']['registerPostFixer'](_0x2db07c=>{let _0xd594ea=!0x1;const _0x28d872=Array[_0x3866('0x64')](_0x326423[_0x3866('0x66')][_0x3866('0x5e')][_0x3866('0x71')][_0x3866('0x18')]()),_0x1dd2e6=new Set();for(const {name:_0x20c345,data:_0x13b2e2}of _0x28d872){const {group:_0x5651b3,type:_0x570831,id:_0x1bc266}=this[_0x3866('0xf4')](_0x20c345);if(_0x3866('0xf8')!==_0x5651b3)continue;const _0x3e5d4a=this[_0x3866('0xec')][_0x3866('0x52')](_0x1bc266);if(null!=_0x13b2e2[_0x3866('0xd')]){_0x3866('0x111')==_0x570831&&(_0xd594ea=_0xd594ea||Mt(_0x13b2e2[_0x3866('0xd')],_0x20c345,_0x2db07c,_0x326423['model']['schema']));if(_0x13b2e2['newRange']['isCollapsed']||_0x3866('0x93')==_0x13b2e2[_0x3866('0xd')][_0x3866('0x131')][_0x3866('0xd9')]||'formatBlock'==_0x570831&&!Nt(_0x13b2e2['newRange'])||_0x3866('0x13a')==_0x570831&&!(!_t(_0x44cb62=_0x13b2e2[_0x3866('0xd')])&&!function(_0x2b218b){return _0x2b218b[_0x3866('0xf9')]['parent']==_0x2b218b[_0x3866('0x13')][_0x3866('0xe9')]&&_0x2b218b[_0x3866('0xf9')]['isAtEnd'];}(_0x44cb62)))_0x2db07c[_0x3866('0x2b')](_0x20c345),_0xd594ea=!0x0;else{if(!_0x3e5d4a||!_0x3e5d4a[_0x3866('0x10e')])continue;_0x1dd2e6[_0x3866('0xaa')](_0x3e5d4a);}}}var _0x44cb62;return _0x1dd2e6[_0x3866('0xa1')]>0x0&&(_0xd594ea=!!this[_0x3866('0xba')](_0x1dd2e6)||_0xd594ea),_0xd594ea;}),_0x326423[_0x3866('0x66')][_0x3866('0x5e')][_0x3866('0x128')](_0x452b9d=>{let _0x3bdfef=!0x1;for(const _0x21e9ce of _0x326423[_0x3866('0x66')][_0x3866('0x5e')]['differ'][_0x3866('0xf5')]()){if(_0x3866('0xb9')!=_0x21e9ce[_0x3866('0xdd')])continue;const _0x2376a0=_0x21e9ce[_0x3866('0x27')][_0x3866('0xb0')](_0x21e9ce[_0x3866('0xb8')]);if(_0x2376a0[_0x3866('0x40')])for(const _0x2c05e6 of this[_0x3866('0xec')][_0x3866('0x11b')]()){if(_0x2c05e6[_0x3866('0xcb')]||!_0x2c05e6['isInContent'])continue;if(_0x3866('0xa4')!=_0x2c05e6[_0x3866('0xdd')])continue;const _0xa1b7e7=_0x2c05e6[_0x3866('0x113')]();if(_0xa1b7e7[_0x3866('0xf9')][_0x3866('0x81')]!=_0xa1b7e7[_0x3866('0x13')][_0x3866('0x81')]&&_0xa1b7e7['end'][_0x3866('0x10')](_0x21e9ce[_0x3866('0x27')])){const _0x20282d=_0x326423['model'][_0x3866('0x38')](_0xa1b7e7[_0x3866('0xf9')],_0x2376a0);_0x452b9d[_0x3866('0x133')](_0x2c05e6[_0x3866('0x58')](),{'range':_0x20282d}),_0x3bdfef=!0x0;}}}return _0x3bdfef;}),_0x326423[_0x3866('0x66')][_0x3866('0xc6')]['on'](_0x3866('0x68'),(_0x20f900,_0x3fbac0,_0x17475a)=>{if(null==_0x17475a){const {id:_0x2cc7d5}=this[_0x3866('0xf4')](_0x3fbac0[_0x3866('0x3f')]),_0x43f331=this['_suggestions'][_0x3866('0x52')](_0x2cc7d5);_0x43f331&&_0x43f331['addMarkerName'](_0x3fbac0[_0x3866('0x3f')]);}}),_0x326423[_0x3866('0x66')][_0x3866('0x5e')]['on']('change:data',()=>{const _0x3b5f3e=Array[_0x3866('0x64')](_0x326423[_0x3866('0x66')][_0x3866('0x5e')][_0x3866('0x71')]['getChangedMarkers']())['filter'](_0x2de3ad=>_0x3866('0xf8')===this[_0x3866('0xf4')](_0x2de3ad[_0x3866('0x3f')])[_0x3866('0xb6')]);if(0x0===_0x3b5f3e[_0x3866('0xb8')])return;_0x3b5f3e[_0x3866('0x34')]((_0x2fd43d,_0x3db44a)=>{const _0x5b7776=_0x2fd43d[_0x3866('0x25')][_0x3866('0x23')],_0x287d77=_0x3db44a[_0x3866('0x25')]['oldRange'];return null===_0x5b7776&&null===_0x287d77?0x0:null===_0x5b7776&&null!==_0x287d77?-0x1:null!==_0x5b7776&&null===_0x287d77?0x1:_0x5b7776[_0x3866('0xf9')][_0x3866('0x137')](_0x287d77['start'])?-0x1:0x1;});const _0x22f102=new Set(),_0x58e840=new Set();for(const {name:_0x36c828,data:_0x38295e}of _0x3b5f3e){const {id:_0x5150f5}=this['_splitMarkerName'](_0x36c828);if(null===_0x38295e[_0x3866('0x23')]){const _0x43ee3c=this[_0x3866('0xa7')](_0x36c828);_0x58e840['add'](_0x43ee3c);}else{const _0x527564=this[_0x3866('0xec')]['get'](_0x5150f5);null!==_0x38295e[_0x3866('0xd')]||_0x527564[_0x3866('0x10e')]?(_0x22f102[_0x3866('0xaa')](_0x527564[_0x3866('0xd6')]),_0x58e840[_0x3866('0xaa')](_0x527564)):this[_0x3866('0x102')](_0x527564);}}_0x58e840[_0x3866('0xa1')]>0x0&&this[_0x3866('0x15')](_0x58e840);for(const _0x24721e of _0x22f102)this['fire'](_0x3866('0xc3'),_0x24721e);}),_0x326423['model']['on'](_0x3866('0xab'),(_0x8b48f4,_0x3f6e44)=>{const _0x2ef1a6=_0x3f6e44[0x0];if(!this[_0x3866('0xec')]['size'])return;if(!_0x2ef1a6[_0x3866('0x120')])return;if(_0x2ef1a6[_0x3866('0x108')][_0x3866('0x9c')]||!_0x2ef1a6[_0x3866('0x108')][_0x3866('0x12')])return;let _0x1f2671,_0x755187;switch(_0x2ef1a6['type']){case _0x3866('0xb9'):_0x1f2671=_0x326423[_0x3866('0x66')][_0x3866('0xbb')](_0x2ef1a6['position']),_0x755187=_0x1f2671[_0x3866('0xb0')](_0x2ef1a6[_0x3866('0x6b')]);break;case _0x3866('0x16'):_0x1f2671=_0x326423[_0x3866('0x66')][_0x3866('0xbb')](_0x2ef1a6['splitPosition']),_0x755187=_0x326423[_0x3866('0x66')][_0x3866('0xbb')](_0x2ef1a6[_0x3866('0x90')]);break;case _0x3866('0x138'):_0x1f2671=_0x326423[_0x3866('0x66')][_0x3866('0xbb')](_0x2ef1a6['targetPosition']),_0x755187=_0x1f2671[_0x3866('0xb0')](_0x2ef1a6[_0x3866('0x6b')]);break;default:return;}const _0x56915d=_0x326423[_0x3866('0x66')][_0x3866('0x38')](_0x1f2671,_0x755187);_0x326423[_0x3866('0x66')][_0x3866('0x26')](()=>{for(const {suggestion:_0x110751,meta:_0x2f528a}of this[_0x3866('0x8f')](_0x56915d)){if(_0x110751[_0x3866('0xcb')])continue;if(_0x3866('0x111')==_0x110751[_0x3866('0xdd')])continue;const _0x4e8185=_0x110751[_0x3866('0x25')]&&_0x110751[_0x3866('0x25')][_0x3866('0xcf')];(_0x3866('0xa4')!=_0x110751['type']||_0x3866('0x16')==_0x2ef1a6[_0x3866('0xdd')]&&!_0x4e8185)&&(_0x2f528a[_0x3866('0x21')]||_0x3866('0x53')==_0x110751[_0x3866('0xdd')]&&_0x2f528a['isOwn']||_0x110751[_0x3866('0x113')]()[_0x3866('0x2c')](_0x56915d)&&this[_0x3866('0x72')](_0x110751,_0x1f2671,_0x755187));}});},{'priority':_0x3866('0xee')}),_0x326423[_0x3866('0x66')]['on'](_0x3866('0x9b'),(_0x11736d,_0x33ab2b)=>{const _0x1f6b61=_0x33ab2b[0x0],_0x3595a2=_0x33ab2b[0x1];if(_0x3595a2&&_0x3595a2[_0x3866('0x30')])return;if(this[_0x3866('0x47')])return;if(!this[_0x3866('0x100')][_0x3866('0x1a')])return;if(_0x1f6b61[_0x3866('0x6f')])return;const _0x544a9b=_0x326423[_0x3866('0x66')][_0x3866('0xa3')],{start:_0x4be2e8,end:_0x407505}=_0x1f6b61[_0x3866('0x113')](),_0x1c6f91=_0x4be2e8[_0x3866('0x11e')]&&_0x544a9b[_0x3866('0xdf')](_0x4be2e8[_0x3866('0x11e')])?null:_0x544a9b['getNearestSelectionRange'](_0x4be2e8,_0x3866('0xfd')),_0x320efb=_0x407505[_0x3866('0xe9')]&&_0x544a9b[_0x3866('0xdf')](_0x407505[_0x3866('0xe9')])?null:_0x544a9b[_0x3866('0xf6')](_0x407505,_0x3866('0x62')),_0x3ac091=_0x326423[_0x3866('0x66')][_0x3866('0x38')](_0x1c6f91?_0x1c6f91[_0x3866('0xf9')]:_0x4be2e8,_0x320efb?_0x320efb[_0x3866('0x13')]:_0x407505);_0x326423[_0x3866('0x66')][_0x3866('0x26')](_0x1a827b=>{this[_0x3866('0x7e')](_0x3ac091);const _0xa254de=_0x326423[_0x3866('0x66')][_0x3866('0xa3')][_0x3866('0xf6')](_0x3ac091['start']);_0x1f6b61['is'](_0x3866('0xf3'))?_0x1a827b[_0x3866('0xc0')](_0xa254de):_0x1f6b61[_0x3866('0xd5')](_0xa254de);}),_0x11736d['stop']();},{'priority':_0x5a7cbd[_0x3866('0xad')]+0xa}),_0x326423[_0x3866('0x66')]['on'](_0x3866('0x7c'),(_0x483476,_0x3537db)=>{const _0x16cf29=_0x3537db[_0x3537db[_0x3866('0xb8')]-0x1];_0x16cf29&&_0x16cf29['forceDefaultExecution']||this[_0x3866('0x47')]||this[_0x3866('0x100')]['value']&&(_0x326423[_0x3866('0x66')][_0x3866('0x26')](()=>{let _0x573872=_0x326423[_0x3866('0x66')][_0x3866('0x7c')](_0x3537db[0x0],_0x3537db[0x1],_0x3537db[0x2],{'forceDefaultExecution':!0x0});if(!_0x573872)return;_0x483476[_0x3866('0xc9')]=_0x573872['clone']();const _0x128d41=_0x573872[_0x3866('0x13')][_0x3866('0xe9')],_0x15220b=_0x326423[_0x3866('0x66')]['schema'];_0x128d41&&_0x15220b[_0x3866('0x96')](_0x128d41)&&!_0x15220b['isObject'](_0x128d41)&&(_0x573872=_0x326423[_0x3866('0x66')][_0x3866('0x38')](_0x573872[_0x3866('0xf9')],_0x326423[_0x3866('0x66')]['createPositionAt'](_0x128d41,_0x3866('0x13')))),this[_0x3866('0x70')](_0x573872);}),_0x483476[_0x3866('0x2a')]());},{'priority':'high'}),this[_0x3866('0xff')][_0x3866('0xde')][_0x3866('0xaa')](_0x3866('0xe6'),this[_0x3866('0x100')]),this[_0x3866('0xcc')](_0x3866('0xe6'));const _0x45ef8a=new _0x4d7ced(_0x326423,this['_suggestions']);_0x326423[_0x3866('0xde')][_0x3866('0xaa')]('acceptSuggestion',_0x45ef8a),this[_0x3866('0xcc')]('acceptSuggestion');const _0x52fc14=new _0x2a2caf(_0x326423,this[_0x3866('0xec')]);_0x326423['commands'][_0x3866('0xaa')](_0x3866('0xb3'),_0x52fc14),this[_0x3866('0xcc')](_0x3866('0xb3')),_0x326423['commands']['add'](_0x3866('0x2e'),new _0x4b9b1f(_0x326423,_0x45ef8a,this[_0x3866('0xec')])),this[_0x3866('0xcc')](_0x3866('0x2e')),_0x326423['commands'][_0x3866('0xaa')](_0x3866('0x61'),new _0x4b9b1f(_0x326423,_0x52fc14,this[_0x3866('0xec')])),this[_0x3866('0xcc')](_0x3866('0x61')),_0x326423[_0x3866('0xde')][_0x3866('0xaa')](_0x3866('0x129'),new _0x1e58db(_0x326423,_0x45ef8a,this[_0x3866('0xec')])),this['enableCommand']('acceptSelectedSuggestions'),_0x326423['commands'][_0x3866('0xaa')](_0x3866('0xc4'),new _0x1e58db(_0x326423,_0x52fc14,this['_suggestions'])),this[_0x3866('0xcc')](_0x3866('0xc4'));const _0x436770=_0x326423[_0x3866('0x6c')][_0x3866('0x52')]('CommentsRepository');this[_0x3866('0xcd')](_0x436770,'addComment',(_0x1081e4,{threadId:_0x488dc7})=>{const _0x15a717=this[_0x3866('0xec')][_0x3866('0x52')](_0x488dc7);_0x15a717&&_0x15a717[_0x3866('0x11f')]&&0x1===_0x15a717['commentThread']['length']&&this[_0x3866('0x49')](_0x488dc7,{'hasComments':!0x0});},{'priority':_0x3866('0xd8')}),this['listenTo'](_0x436770,_0x3866('0x48'),(_0x19131d,{threadId:_0x154d4a})=>{const _0x756fa0=this[_0x3866('0xec')][_0x3866('0x52')](_0x154d4a);_0x756fa0&&_0x756fa0[_0x3866('0x11f')]&&!_0x756fa0[_0x3866('0x11f')]['length']&&this['_updateSuggestionData'](_0x154d4a,{'hasComments':!0x1});},{'priority':_0x3866('0xd8')});}set[_0x3866('0x9f')](_0x15f9d0){if(this[_0x3866('0x1c')])throw new _0x217484(_0x3866('0x130'),this);this['_adapter']=_0x15f9d0;}get[_0x3866('0x9f')](){return this[_0x3866('0x1c')];}[_0x3866('0xbe')]({skipNotAttached:_0xb93673=!0x1,toJSON:_0x455b50=!0x1}={}){const _0x37b6e7=[];for(const _0x5583a1 of this['_suggestions'][_0x3866('0x11b')]())_0xb93673&&!_0x5583a1['isInContent']||_0x37b6e7[_0x3866('0xc7')](_0x5583a1);return _0x455b50?_0x37b6e7[_0x3866('0xe7')](_0x5220c3=>_0x5220c3['toJSON']()):_0x37b6e7;}['getSuggestion'](_0x4d3b50){const _0x44caf4=this[_0x3866('0xec')][_0x3866('0x52')](_0x4d3b50);if(!_0x44caf4)throw new _0x217484(_0x3866('0x4b'),this);return _0x44caf4;}[_0x3866('0xe3')](_0x3a2307){return this[_0x3866('0xec')][_0x3866('0x43')](_0x3a2307);}[_0x3866('0x10a')](_0x514484){const {authorId:_0x402cbe,id:_0x2fff23,attributes:_0x2cd933}=_0x514484,[_0x2b1f94,_0x63bc41]=_0x514484['type'][_0x3866('0x16')](':'),_0xd0a2a3=this['_suggestions'][_0x3866('0x52')](_0x2fff23)||this[_0x3866('0x9e')](_0x2b1f94,_0x63bc41,_0x2fff23,_0x402cbe,_0x2cd933);if(this[_0x3866('0x85')](_0xd0a2a3),this[_0x3866('0x3a')](_0xd0a2a3,_0x2b1f94,_0x63bc41||null,_0x402cbe),_0xd0a2a3['createdAt']=_0x514484[_0x3866('0x106')],_0x2cd933&&_0x2cd933[_0x3866('0x67')]){const _0x4017a4=_0x2cd933['@external'],_0x270d71=this[_0x3866('0xd0')](_0x4017a4[_0x3866('0x65')]);_0xd0a2a3[_0x3866('0xe5')]=_0x4017a4['createdAt'],_0xd0a2a3[_0x3866('0xb2')]=_0x270d71,_0xd0a2a3[_0x3866('0x60')]=!0x0;}else _0xd0a2a3[_0x3866('0xe5')]=_0x514484[_0x3866('0x106')];switch(_0x514484['data']&&(_0xd0a2a3[_0x3866('0x25')]=_0x514484['data']),_0x514484['attributes']&&(_0xd0a2a3[_0x3866('0x2f')]=_0x514484[_0x3866('0x2f')]),this[_0x3866('0x1c')]&&this['_adapter'][_0x3866('0xc')]||(_0xd0a2a3[_0x3866('0xe4')]=!0x0),this[_0x3866('0x3b')][_0x3866('0x52')](_0xd0a2a3)){case _0x3866('0x4f'):this[_0x3866('0x3b')]['set'](_0xd0a2a3,_0x3866('0x8b'));break;case _0x3866('0x4d'):_0xd0a2a3[_0x3866('0x10e')]?(this['_suggestionState']['set'](_0xd0a2a3,_0x3866('0x33')),this[_0x3866('0x32')](_0x3866('0x69'),_0xd0a2a3)):this['_suggestionState'][_0x3866('0xf')](_0xd0a2a3,_0x3866('0x136'));}return _0xd0a2a3;}[_0x3866('0xe')](_0x3baf39){this[_0x3866('0x30')](()=>{this['editor'][_0x3866('0x66')][_0x3866('0x26')](()=>{for(const _0xb2425 of _0x3baf39[_0x3866('0x10b')]())_0xb2425['accept']();});});}[_0x3866('0xb3')](_0x502e30){this['forceDefaultExecution'](()=>{this[_0x3866('0xff')][_0x3866('0x66')][_0x3866('0x26')](()=>{for(const _0x42f5b8 of _0x502e30[_0x3866('0x10b')]())_0x42f5b8['discard']();});});}['enableCommand'](_0x16f2d2,_0x294606){const _0x30e860=this['editor']['commands'][_0x3866('0x52')](_0x16f2d2);if(!_0x30e860)throw new _0x217484('track-changes-command-not-found',this,{'commandName':_0x16f2d2});this['_enabledCommands'][_0x3866('0xaa')](_0x30e860),_0x294606&&_0x30e860['on']('execute',(_0x581904,_0x29ffcc)=>{this[_0x3866('0x100')][_0x3866('0x1a')]&&(this[_0x3866('0x47')]||_0x29ffcc['length']>0x0&&_0x29ffcc[_0x29ffcc['length']-0x1]&&_0x29ffcc[_0x29ffcc['length']-0x1][_0x3866('0x30')]||(_0x294606((..._0x4162ad)=>_0x30e860['execute'](..._0x4162ad,{'forceDefaultExecution':!0x0}),..._0x29ffcc),_0x581904[_0x3866('0x2a')]()));},{'priority':_0x3866('0x79')});}[_0x3866('0x30')](_0xda0f5f){let _0x3ba60d,_0x1c032a;const _0x252308=this[_0x3866('0x47')];this[_0x3866('0x47')]=!0x0;try{_0x3ba60d=_0xda0f5f();}catch(_0x305278){_0x1c032a=_0x305278;}return _0x252308||(this[_0x3866('0x47')]=!0x1),_0x1c032a&&_0x217484[_0x3866('0x119')](_0x1c032a,this),_0x3ba60d;}[_0x3866('0x70')](_0x280798,_0x5f437f=null,_0x15c2de={}){if(_0x280798[_0x3866('0x6f')])return null;const _0x32aa71=this[_0x3866('0xff')][_0x3866('0x6c')]['get'](_0x3866('0x1b'))['me'];for(const {suggestion:_0x212a90,meta:_0x3ac0c2}of this[_0x3866('0x8f')](_0x280798,_0x3866('0x53')))if(_0x3ac0c2[_0x3866('0x9d')]){if(!_0x3ac0c2[_0x3866('0x114')]){if(!this['_mergeNestedSuggestions']&&_0x3ac0c2[_0x3866('0x21')])continue;return _0x212a90;}if(_0x5f437f==_0x212a90[_0x3866('0x91')]){const _0x1c2164=_0x212a90['getFirstRange']();return _0x1c2164['start']['isEqual'](_0x280798[_0x3866('0x13')])?this[_0x3866('0x95')](_0x212a90,this[_0x3866('0xaf')][_0x3866('0x38')](_0x280798[_0x3866('0xf9')],_0x1c2164[_0x3866('0x13')])):this[_0x3866('0x95')](_0x212a90,this[_0x3866('0xaf')][_0x3866('0x38')](_0x1c2164[_0x3866('0xf9')],_0x280798[_0x3866('0x13')])),_0x212a90;}}const _0x17f8c4=_0x2760d2(),_0x53433c=_0x32aa71['id'],_0x1d9734=_0x5f437f?'insertion:'+_0x5f437f:'insertion',_0x41ed92=this['_setSuggestionData']({'id':_0x17f8c4,'type':_0x1d9734,'createdAt':new Date(),'authorId':_0x53433c,'attributes':_0x15c2de});return this[_0x3866('0x45')](_0x1d9734,_0x17f8c4,_0x53433c,_0x280798),_0x41ed92;}['markMultiRangeInsertion'](_0x9c7eff,_0x8afe1d=_0x3866('0x78'),_0x206c39={}){const _0x614cc9=this[_0x3866('0xff')][_0x3866('0x6c')]['get']('Users')['me'],_0x1e6b98=this[_0x3866('0x5')][_0x3866('0x123')](_0x3866('0x53'),_0x8afe1d,_0x3866('0x110'));for(const _0x4dbbf2 of this[_0x3866('0xbe')]())if(_0x4dbbf2[_0x3866('0xb2')]['id']==_0x614cc9['id']&&_0x3866('0x53')==_0x4dbbf2[_0x3866('0xdd')]&&_0x4dbbf2[_0x3866('0x91')]==_0x8afe1d&&(_0x1e6b98(_0x4dbbf2['getRanges'](),_0x9c7eff)||_0x1e6b98(_0x9c7eff,_0x4dbbf2[_0x3866('0x59')]()))){for(const _0x441d56 of _0x9c7eff)_0x4dbbf2[_0x3866('0x4')](_0x441d56);return _0x4dbbf2;}if(this[_0x3866('0x1d')])for(const _0x315594 of _0x9c7eff)for(const {suggestion:_0x38a577,meta:_0x30c121}of this[_0x3866('0x8f')](_0x315594,_0x3866('0x53'))){if(!_0x30c121[_0x3866('0x9d')])continue;let _0x5d0e2a=!0x0;for(const _0x5e2742 of _0x38a577[_0x3866('0x59')]())for(const _0x3ba542 of _0x9c7eff)if(!_0x5e2742[_0x3866('0x2c')](_0x3ba542)){_0x5d0e2a=!0x1;break;}if(_0x5d0e2a)return _0x38a577;}const _0x5364d0=_0x2760d2(),_0x37fde0=_0x614cc9['id'],_0xc288bb='insertion:'+_0x8afe1d,_0x3eab1e=this[_0x3866('0x76')]({'id':_0x5364d0,'type':_0xc288bb,'createdAt':new Date(),'authorId':_0x37fde0,'attributes':_0x206c39});for(const _0x511029 of _0x9c7eff)this[_0x3866('0x45')](_0xc288bb,_0x5364d0,_0x37fde0,_0x511029,_0x3a1096[_0x3866('0x132')]());return _0x3eab1e;}['markInlineFormat'](_0x4dc512,_0xa95374,_0x25bf67=null,_0x26125f={}){if(_0x25bf67=_0x25bf67||$t(_0xa95374),_0x4dc512[_0x3866('0x6f')])return null;if(_0x3866('0x6d')===this[_0x3866('0x51')]){const _0xcec9d7=this['_suggestionFactory'][_0x3866('0x123')](_0x3866('0x111'),_0x25bf67,_0x3866('0x13c'));return this[_0x3866('0x30')](()=>_0xcec9d7([_0x4dc512],_0xa95374,_0x26125f)),null;}const _0x3ed42c=this[_0x3866('0xff')]['plugins'][_0x3866('0x52')](_0x3866('0x1b'))['me'],_0x42b00b=[];if(_0x3866('0x86')!==this[_0x3866('0x51')])for(const {suggestion:_0x244015,meta:_0x19fc69}of this[_0x3866('0x8f')](_0x4dc512,_0x3866('0x53')))_0x19fc69[_0x3866('0x9d')]&&!_0x19fc69[_0x3866('0xdc')]&&_0x42b00b[_0x3866('0xc7')](..._0x244015[_0x3866('0x59')]());const _0x41ed61=function(_0x57bcda,_0x1c04bf){const _0xfa955a=[];for(const _0x385dc4 of _0x1c04bf){const _0x28380e=_0x57bcda[_0x3866('0xdb')](_0x385dc4);_0x28380e&&_0xfa955a[_0x3866('0xc7')](_0x28380e);}return _0xfa955a;}(_0x4dc512,_0x42b00b),_0x35d491=function(_0x1c6b6d,_0x235477){const _0x2fe698=[_0x1c6b6d];for(const _0x111def of _0x235477){let _0x4609ed=0x0;for(;_0x4609ed<_0x2fe698[_0x3866('0xb8')];){const _0x4cf401=_0x2fe698[_0x4609ed][_0x3866('0xbc')](_0x111def);_0x2fe698[_0x3866('0xa8')](_0x4609ed,0x1,..._0x4cf401),_0x4609ed+=_0x4cf401[_0x3866('0xb8')];}}return _0x2fe698;}(_0x4dc512,_0x42b00b);_0x41ed61[_0x3866('0xb8')]&&this[_0x3866('0xaf')][_0x3866('0x26')](()=>{for(const _0x3ae5b8 of _0x41ed61){const _0x5685e9=this['_suggestionFactory'][_0x3866('0x123')](_0x3866('0x111'),_0x25bf67,'accept');this[_0x3866('0x30')](()=>_0x5685e9([_0x3ae5b8],_0xa95374,_0x26125f));}});for(const _0x2b162e of _0x35d491){let _0x1cbdcb=null,_0x2b2dcc=_0x2b162e['start'],_0x174ff1=_0x2b162e[_0x3866('0x13')];for(const {suggestion:_0x4c7099,meta:_0x529fcd}of this[_0x3866('0x8f')](_0x2b162e,_0x3866('0x111'))){if(!_0x529fcd['isOwn'])continue;if(_0x4c7099[_0x3866('0x91')]!=_0x25bf67)continue;const _0x305f11=_0x4c7099['getFirstRange']();if(_0x305f11[_0x3866('0x2c')](_0x2b162e,!0x0))return null;_0x2b2dcc=_0x2b2dcc[_0x3866('0x137')](_0x305f11[_0x3866('0xf9')])?_0x2b2dcc:_0x305f11[_0x3866('0xf9')],_0x174ff1=_0x174ff1[_0x3866('0x107')](_0x305f11[_0x3866('0x13')])?_0x174ff1:_0x305f11['end'],_0x1cbdcb?_0x305f11[_0x3866('0xf9')][_0x3866('0x137')](_0x1cbdcb[_0x3866('0x113')]()[_0x3866('0xf9')])?(_0x1cbdcb[_0x3866('0x5f')](),_0x1cbdcb=_0x4c7099):_0x4c7099[_0x3866('0x5f')]():_0x1cbdcb=_0x4c7099;}const _0x3f342d=this[_0x3866('0xaf')]['createRange'](_0x2b2dcc,_0x174ff1);if(_0x1cbdcb)this[_0x3866('0x95')](_0x1cbdcb,_0x3f342d);else{const _0x54623e=_0x2760d2(),_0x484f29=_0x3ed42c['id'];this[_0x3866('0x76')]({'id':_0x54623e,'type':_0x3866('0x36')+_0x25bf67,'data':_0xa95374,'createdAt':new Date(),'authorId':_0x484f29,'attributes':_0x26125f}),this[_0x3866('0x45')]('formatInline:'+_0x25bf67,_0x54623e,_0x484f29,_0x3f342d);}}return null;}[_0x3866('0x4a')](_0x156be8,_0x4f924e,_0x52ba38=[],_0x391810=null,_0x786f72={}){_0x4f924e[_0x3866('0x3d')]||(_0x4f924e[_0x3866('0x3d')]=_0x4f924e[_0x3866('0xea')]),_0x4f924e[_0x3866('0xcf')]=_0x156be8['is'](_0x3866('0x127')),_0x391810=_0x391810||$t(_0x4f924e);const _0x258449=_0x52ba38[_0x3866('0xe7')](_0x13ccc5=>Rt(_0x13ccc5,this[_0x3866('0xaf')])),_0x12275f=_0x156be8['is']('range')?_0x156be8:Rt(_0x156be8,this['_model']);if(_0x3866('0x6d')===this[_0x3866('0x51')]){const _0x59c09a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x391810,_0x3866('0x13c'));return this[_0x3866('0x30')](()=>_0x59c09a([_0x12275f],_0x4f924e,_0x786f72)),null;}_0x258449['push'](_0x12275f);let _0x4e67b1=!0x0;for(const _0x3948e8 of _0x258449)if(!this['_rangeIsInLocalUserInsertion'](_0x3948e8)){_0x4e67b1=!0x1;break;}if(_0x4e67b1&&'always'!==this[_0x3866('0x51')]){const _0x552ffb=this['_suggestionFactory'][_0x3866('0x123')]('formatBlock',_0x391810,'accept');return this[_0x3866('0x30')](()=>_0x552ffb([_0x12275f],_0x4f924e,_0x786f72)),null;}let _0x4d3a9e=null,_0x1e57ed=_0x12275f[_0x3866('0xf9')],_0x21cfa7=_0x12275f[_0x3866('0x13')];for(const {suggestion:_0xbc46b8,meta:_0x676c82}of this[_0x3866('0x8f')](_0x12275f,_0x3866('0xa4'))){if(!_0x676c82[_0x3866('0x9d')]||_0x676c82['isNextTo']||_0x676c82[_0x3866('0x21')]||_0x676c82[_0x3866('0xdc')])continue;if(_0xbc46b8[_0x3866('0x25')][_0x3866('0x3d')]!=_0x4f924e[_0x3866('0x3d')])continue;const _0xcf09cd=_0xbc46b8['getFirstRange']();if(_0xbc46b8[_0x3866('0x91')]==_0x391810){if(_0xcf09cd[_0x3866('0x2c')](_0x12275f,!0x0))return null;_0x1e57ed=_0x1e57ed[_0x3866('0x137')](_0xcf09cd['start'])?_0x1e57ed:_0xcf09cd[_0x3866('0xf9')],_0x21cfa7=_0x21cfa7[_0x3866('0x107')](_0xcf09cd['end'])?_0x21cfa7:_0xcf09cd[_0x3866('0x13')],_0x4d3a9e?_0xcf09cd[_0x3866('0xf9')][_0x3866('0x137')](_0x4d3a9e[_0x3866('0x113')]()[_0x3866('0xf9')])?(_0x4d3a9e['removeMarkers'](),_0x4d3a9e=_0xbc46b8):_0xbc46b8[_0x3866('0x5f')]():_0x4d3a9e=_0xbc46b8;}else{const _0x178211=_0x12275f[_0x3866('0xdb')](_0xcf09cd);this[_0x3866('0x88')](_0xbc46b8,_0x178211);}}const _0x125165=this[_0x3866('0xff')][_0x3866('0x6c')][_0x3866('0x52')](_0x3866('0x1b'))['me'],_0x4957bb=_0x2760d2(),_0x4ac80a=_0x125165['id'];if(_0x4d3a9e)return this['_setSuggestionRange'](_0x4d3a9e,this['_model'][_0x3866('0x38')](_0x1e57ed,_0x21cfa7)),_0x4d3a9e;{const _0x13474a=this[_0x3866('0x76')]({'id':_0x4957bb,'type':_0x3866('0x11c')+_0x391810,'data':_0x4f924e,'createdAt':new Date(),'authorId':_0x4ac80a,'attributes':_0x786f72});return this[_0x3866('0x45')]('formatBlock:'+_0x391810,_0x4957bb,_0x4ac80a,this['_model'][_0x3866('0x38')](_0x1e57ed,_0x21cfa7)),_0x13474a;}}[_0x3866('0x99')](_0x14c62e,_0x21cf5e,_0x2839b3=[],_0x45b143=null,_0x3bdd54={}){_0x21cf5e[_0x3866('0x3d')]||(_0x21cf5e[_0x3866('0x3d')]=_0x21cf5e[_0x3866('0xea')]);const _0x21bcee=_0x14c62e[0x0];_0x21cf5e['multipleBlocks']=_0x21bcee['is'](_0x3866('0x127')),_0x45b143=_0x45b143||$t(_0x21cf5e);const _0x5c5441=_0x2839b3['map'](_0x2e517e=>Rt(_0x2e517e,this[_0x3866('0xaf')])),_0x1d9035=_0x21bcee['is']('range')?_0x14c62e:_0x14c62e[_0x3866('0xe7')](_0x22ea4f=>Rt(_0x22ea4f,this[_0x3866('0xaf')]));if(_0x3866('0x6d')===this[_0x3866('0x51')]){const _0x3403e3=this[_0x3866('0x5')][_0x3866('0x123')]('formatBlock',_0x45b143,_0x3866('0x13c'));return this[_0x3866('0x30')](()=>_0x3403e3(_0x1d9035,_0x21cf5e,_0x3bdd54)),null;}_0x5c5441['push'](..._0x1d9035);let _0x4ca72e=!0x0;for(const _0x2f4233 of _0x5c5441)if(!this[_0x3866('0x35')](_0x2f4233)){_0x4ca72e=!0x1;break;}if(_0x4ca72e&&'always'!==this[_0x3866('0x51')]){const _0x5be0e6=this[_0x3866('0x5')]['getSuggestionCallback'](_0x3866('0xa4'),_0x45b143,_0x3866('0x13c'));return this['forceDefaultExecution'](()=>_0x5be0e6(_0x1d9035,_0x21cf5e,_0x3bdd54)),null;}const _0x5330b1=this[_0x3866('0xff')][_0x3866('0x6c')]['get'](_0x3866('0x1b'))['me'];for(const _0x17f260 of this[_0x3866('0xbe')]()){if(_0x17f260[_0x3866('0xb2')]['id']!=_0x5330b1['id'])continue;if(_0x3866('0xa4')!=_0x17f260[_0x3866('0xdd')]||_0x17f260['data']['formatGroupId']!=_0x21cf5e[_0x3866('0x3d')])continue;const _0x536787=_0x17f260[_0x3866('0x91')]==_0x45b143;for(let _0x3a1710=0x0;_0x3a1710<_0x1d9035[_0x3866('0xb8')];_0x3a1710++){const _0x478579=_0x1d9035[_0x3a1710];for(const _0x8d0fcd of _0x17f260[_0x3866('0x92')]()){const _0x64580c=_0x8d0fcd[_0x3866('0x118')]();if(_0x478579['isEqual'](_0x64580c)){_0x536787?(_0x1d9035[_0x3866('0xa8')](_0x3a1710,0x1),_0x3a1710--):_0x17f260[_0x3866('0x2b')](_0x8d0fcd[_0x3866('0x3f')]);break;}}}}if(0x0==_0x1d9035[_0x3866('0xb8')])return null;const _0x570478=this[_0x3866('0x5')]['getSuggestionCallback'](_0x3866('0xa4'),_0x45b143,_0x3866('0x110'));for(const _0x3a9b6a of this[_0x3866('0xbe')]())if(_0x3a9b6a[_0x3866('0xb2')]['id']==_0x5330b1['id']&&_0x3866('0xa4')==_0x3a9b6a['type']&&_0x3a9b6a['data'][_0x3866('0x3d')]==_0x21cf5e[_0x3866('0x3d')]&&_0x3a9b6a[_0x3866('0x91')]==_0x45b143&&(_0x570478(_0x3a9b6a[_0x3866('0x59')](),_0x1d9035)||_0x570478(_0x1d9035,_0x3a9b6a[_0x3866('0x59')]()))){for(const _0xa5c5b6 of _0x1d9035)_0x3a9b6a[_0x3866('0x4')](_0xa5c5b6);return _0x3a9b6a;}const _0x4ece87=_0x2760d2(),_0x53cc55=_0x5330b1['id'],_0x243810='formatBlock:'+_0x45b143,_0x38dfe3=this[_0x3866('0x76')]({'id':_0x4ece87,'type':_0x243810,'data':_0x21cf5e,'createdAt':new Date(),'authorId':_0x53cc55,'attributes':_0x3bdd54});for(const _0x22acd5 of _0x1d9035)this[_0x3866('0x45')](_0x243810,_0x4ece87,_0x53cc55,_0x22acd5,_0x3a1096['getMultiRangeId']());return _0x38dfe3;}[_0x3866('0x7e')](_0x36a7e9,_0x8024fc=null,_0x37f9a7={}){if(_0x36a7e9['isCollapsed'])return null;const _0x5bbdfd=this[_0x3866('0xff')][_0x3866('0x6c')][_0x3866('0x52')](_0x3866('0x1b'))['me'],_0x47197a=new _0x10ff46(_0x36a7e9['start'],_0x36a7e9[_0x3866('0x13')]);for(const {suggestion:_0x120a6f,meta:_0x4aabeb}of this[_0x3866('0x8f')](_0x47197a,_0x3866('0x53')))if(_0x4aabeb['isOwn']&&!_0x4aabeb[_0x3866('0x114')]){if(_0x120a6f[_0x3866('0xcb')]){const _0x47464c=_0x120a6f['getRanges']()[_0x3866('0xc8')](_0x5aa9b1=>_0x3866('0x93')!=_0x5aa9b1[_0x3866('0x131')][_0x3866('0xd9')]);_0x47464c[_0x3866('0x83')](_0x467473=>_0x47197a[_0x3866('0x2c')](_0x467473,!0x0))&&_0x120a6f[_0x3866('0xfe')]();if(_0x47464c['some'](_0x5e0bb3=>_0x5e0bb3['containsRange'](_0x47197a,!0x0))){const _0x1895bd=this[_0x3866('0x5')][_0x3866('0x123')](_0x3866('0x13a'),_0x8024fc,'accept');return this[_0x3866('0x30')](()=>_0x1895bd([_0x47197a],null,_0x37f9a7)),null;}}else{const _0x4fbca6=_0x47197a['getIntersection'](_0x120a6f[_0x3866('0x113')]());null!==_0x4fbca6&&_0x120a6f[_0x3866('0x42')]([_0x4fbca6],null,_0x37f9a7);}}if(_0x47197a[_0x3866('0x19')](),_0x47197a[_0x3866('0x6f')]||_0x3866('0x93')==_0x47197a[_0x3866('0x131')][_0x3866('0xd9')])return null;let _0x461953=null,_0x12df6d=_0x47197a[_0x3866('0xf9')],_0x410a52=_0x47197a['end'];for(const {suggestion:_0x8663,meta:_0x1c3e5e}of this[_0x3866('0x8f')](_0x47197a,'deletion'))if(_0x1c3e5e[_0x3866('0x9d')]){if(_0x8663[_0x3866('0xcb')]&&this['_mergeNestedSuggestions']){let _0x27f942=!0x0;for(const _0x67bed1 of _0x8663[_0x3866('0x59')]()){if(_0x67bed1[_0x3866('0x2c')](_0x47197a,!0x0))return _0x8663;_0x47197a['containsRange'](_0x67bed1)||(_0x27f942=!0x1);}_0x27f942&&_0x8663[_0x3866('0xfe')]();}else{const _0x2bee5b=_0x8663[_0x3866('0x113')]();if(_0x2bee5b[_0x3866('0x2c')](_0x47197a,!0x0)){if(!this[_0x3866('0x1d')]&&_0x1c3e5e['containsRangeInObject'])continue;return _0x8663;}_0x12df6d=_0x12df6d[_0x3866('0x137')](_0x2bee5b[_0x3866('0xf9')])?_0x12df6d:_0x2bee5b['start'],_0x410a52=_0x410a52[_0x3866('0x107')](_0x2bee5b['end'])?_0x410a52:_0x2bee5b[_0x3866('0x13')],_0x461953?_0x2bee5b[_0x3866('0xf9')]['isBefore'](_0x461953['getFirstRange']()[_0x3866('0xf9')])?(_0x461953[_0x3866('0x5f')](),_0x461953=_0x8663):_0x8663[_0x3866('0x5f')]():_0x461953=_0x8663;}}if(_0x461953)return this['_setSuggestionRange'](_0x461953,this[_0x3866('0xaf')][_0x3866('0x38')](_0x12df6d,_0x410a52)),_0x461953;{const _0x41386d=_0x2760d2(),_0x2168b8=this[_0x3866('0xaf')][_0x3866('0x38')](_0x12df6d,_0x410a52),_0x1be748=_0x5bbdfd['id'],_0x521470=_0x8024fc?_0x3866('0x14')+_0x8024fc:'deletion',_0x45a1c0=this['_setSuggestionData']({'id':_0x41386d,'type':_0x521470,'createdAt':new Date(),'authorId':_0x1be748,'attributes':_0x37f9a7});return this[_0x3866('0x45')](_0x521470,_0x41386d,_0x1be748,_0x2168b8),_0x45a1c0;}}[_0x3866('0x105')](_0x1d0e61,_0x2e3331=_0x3866('0x78'),_0x424af8={}){const _0x48d078=this[_0x3866('0xff')][_0x3866('0x6c')]['get'](_0x3866('0x1b'))['me'],_0x1beac2=_0x1d0e61[_0x3866('0xe7')](_0x186319=>new _0x10ff46(_0x186319[_0x3866('0xf9')],_0x186319[_0x3866('0x13')])),_0x2187d9=new Set();for(const _0x43f7b7 of _0x1beac2)for(const {suggestion:_0x13f305,meta:_0x5b3e1a}of this['_findSuggestions'](_0x43f7b7,'insertion'))_0x5b3e1a[_0x3866('0x9d')]&&!_0x5b3e1a[_0x3866('0x114')]&&_0x2187d9[_0x3866('0xaa')](_0x13f305);for(const _0x4189b9 of _0x2187d9)if(_0x4189b9[_0x3866('0xcb')]){const _0x1f462d=_0x4189b9[_0x3866('0x59')]();(!_0x4189b9['attributes']||!_0x4189b9[_0x3866('0x2f')][_0x3866('0x22')])&&(_0x1f462d['every'](_0x3da533=>_0x1beac2[_0x3866('0x73')](_0x5d5421=>_0x5d5421[_0x3866('0x2c')](_0x3da533,!0x0)))&&_0x4189b9[_0x3866('0xfe')]());if(_0x1beac2[_0x3866('0x83')](_0x9303d0=>_0x1f462d[_0x3866('0x73')](_0x3bf16c=>_0x3bf16c['containsRange'](_0x9303d0,!0x0)))){const _0x1bb95d=this['_suggestionFactory'][_0x3866('0x123')](_0x3866('0x13a'),_0x2e3331,'accept');return this['forceDefaultExecution'](()=>_0x1bb95d(_0x1d0e61,null,_0x424af8)),null;}}else{const _0xa78b3f=_0x4189b9['getFirstRange']();_0x1beac2[_0x3866('0x73')](_0x36966b=>_0x36966b[_0x3866('0x2c')](_0xa78b3f,!0x0))&&_0x4189b9[_0x3866('0xfe')]();if(_0x1beac2[_0x3866('0x83')](_0x2c187e=>_0xa78b3f['containsRange'](_0x2c187e,!0x0))){const _0x56ab9c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2e3331,_0x3866('0x13c'));return this[_0x3866('0x30')](()=>_0x56ab9c(_0x1beac2,null,_0x424af8)),null;}}const _0x11d56d=this['_suggestionFactory']['getSuggestionCallback'](_0x3866('0x13a'),_0x2e3331,_0x3866('0x110'));let _0x40911c=null;for(const _0x4bf4b9 of this[_0x3866('0xbe')]())if(_0x4bf4b9['author']['id']==_0x48d078['id']&&_0x4bf4b9[_0x3866('0x10e')]&&_0x3866('0x13a')==_0x4bf4b9[_0x3866('0xdd')]&&_0x4bf4b9['subType']==_0x2e3331&&(_0x11d56d(_0x4bf4b9[_0x3866('0x59')](),_0x1beac2)||_0x11d56d(_0x1beac2,_0x4bf4b9[_0x3866('0x59')]()))){if(_0x40911c){if(_0x4bf4b9['commentThread']&&_0x4bf4b9['commentThread'][_0x3866('0xb8')])continue;for(const _0x103079 of _0x4bf4b9[_0x3866('0x59')]())_0x40911c[_0x3866('0x7')](_0x103079)||_0x40911c['addRange'](_0x103079);_0x4bf4b9[_0x3866('0x5f')]();}else{_0x40911c=_0x4bf4b9;for(const _0x1cce0d of _0x1beac2)_0x4bf4b9[_0x3866('0x7')](_0x1cce0d)||_0x4bf4b9['addRange'](_0x1cce0d);}}if(_0x40911c)return _0x40911c;_0x2187d9['clear']();for(const _0x3d3754 of _0x1beac2)for(const {suggestion:_0x39f255,meta:_0x5db502}of this[_0x3866('0x8f')](_0x3d3754,'deletion'))_0x5db502[_0x3866('0x9d')]&&_0x2187d9['add'](_0x39f255);for(const _0x350dd3 of _0x2187d9){const _0x41d808=_0x350dd3[_0x3866('0x59')]();if(!_0x424af8||!_0x424af8['skipNestingCheck']){if(_0x1beac2[_0x3866('0x83')](_0x58618a=>_0x41d808[_0x3866('0x73')](_0x461dc6=>_0x461dc6[_0x3866('0x2c')](_0x58618a,!0x0))))return _0x350dd3;}(!_0x350dd3[_0x3866('0x2f')]||!_0x350dd3['attributes'][_0x3866('0x22')])&&(_0x41d808[_0x3866('0x83')](_0x525685=>_0x1beac2['some'](_0x1276ef=>_0x1276ef[_0x3866('0x2c')](_0x525685,!0x0)))&&_0x350dd3[_0x3866('0xfe')]());}const _0x217d0e=_0x2760d2(),_0x53fc02=_0x48d078['id'],_0x58a325=_0x3866('0x14')+_0x2e3331,_0x6e3a88=this[_0x3866('0x76')]({'id':_0x217d0e,'type':_0x58a325,'createdAt':new Date(),'authorId':_0x53fc02,'attributes':_0x424af8});for(const _0x27e4ed of _0x1beac2)_0x27e4ed[_0x3866('0x19')](),_0x27e4ed['isCollapsed']||_0x3866('0x93')==_0x27e4ed['root'][_0x3866('0xd9')]||this[_0x3866('0x45')](_0x58a325,_0x217d0e,_0x53fc02,_0x27e4ed,_0x3a1096[_0x3866('0x132')]());return _0x6e3a88;}[_0x3866('0x95')](_0x311e8e,_0x14fe18){const _0x27c033=_0x311e8e[_0x3866('0x58')]();this[_0x3866('0xaf')][_0x3866('0x26')](_0x5a708a=>{_0x5a708a[_0x3866('0x133')](_0x27c033,{'range':_0x14fe18});});}['_addThreadToSuggestion'](_0xe66fac){const _0x11915a=_0xe66fac['id'],_0x141713=this[_0x3866('0xff')][_0x3866('0xf0')]['get'](_0x3866('0x7f'));this[_0x3866('0x29')]['hasCommentThread'](_0x11915a)||this[_0x3866('0x29')][_0x3866('0xc5')]({'channelId':_0x141713,'threadId':_0x11915a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x219406=this[_0x3866('0x29')]['getCommentThread'](_0x11915a);_0x219406[_0x3866('0xef')](_0x3866('0x4c')),_0x219406[_0x3866('0x4c')]=!0x1,_0xe66fac[_0x3866('0x11f')]=_0x219406;}[_0x3866('0x3a')](_0x55fe7e,_0x5987df,_0x353274,_0x95e254){if(_0x55fe7e[_0x3866('0xdd')]!=_0x5987df||_0x55fe7e[_0x3866('0x91')]!=_0x353274||_0x55fe7e[_0x3866('0xb4')]['id']!=_0x95e254)throw this[_0x3866('0xff')][_0x3866('0xa')](_0x3866('0x97')),new _0x217484(_0x3866('0x97'),this);}[_0x3866('0x88')](_0x12fb3a,_0x3bc910){const _0x29689=_0x12fb3a[_0x3866('0x113')]();if(_0x3bc910['isEqual'](_0x29689))_0x12fb3a['removeMarkers']();else{if(_0x29689[_0x3866('0x2c')](_0x3bc910)){const _0xc47b74=this[_0x3866('0xaf')][_0x3866('0xbb')](_0x3bc910[_0x3866('0xf9')][_0x3866('0xe9')],'end');this[_0x3866('0x95')](_0x12fb3a,this[_0x3866('0xaf')][_0x3866('0x38')](_0x29689['start'],_0xc47b74));const _0x3af4ed=_0x2760d2(),_0xa614c4=_0x12fb3a[_0x3866('0xb4')]['id'],_0x1e2750=_0x12fb3a[_0x3866('0xdd')]+':'+_0x12fb3a[_0x3866('0x91')];this[_0x3866('0x76')]({'id':_0x3af4ed,'type':_0x1e2750,'createdAt':new Date(),'authorId':_0xa614c4,'data':_0x12fb3a['data'],'attributes':_0x12fb3a[_0x3866('0x2f')]});const _0x5db63b=this[_0x3866('0xaf')][_0x3866('0xbb')](_0x3bc910[_0x3866('0x13')][_0x3866('0x81')],_0x3866('0xa0')),_0xaf2bd7=this[_0x3866('0xaf')][_0x3866('0x38')](_0x5db63b,_0x29689[_0x3866('0x13')]);this[_0x3866('0x45')](_0x1e2750,_0x3af4ed,_0xa614c4,_0xaf2bd7);}else{if(_0x29689['containsPosition'](_0x3bc910[_0x3866('0xf9')])){const _0xb4dbb3=this[_0x3866('0xaf')]['createPositionAt'](_0x3bc910[_0x3866('0xf9')]['nodeBefore'],_0x3866('0x13'));this[_0x3866('0x95')](_0x12fb3a,this[_0x3866('0xaf')][_0x3866('0x38')](_0x29689['start'],_0xb4dbb3));}else{const _0x510014=this[_0x3866('0xaf')][_0x3866('0xbb')](_0x3bc910['end'][_0x3866('0x81')],_0x3866('0xa0'));this[_0x3866('0x95')](_0x12fb3a,this[_0x3866('0xaf')]['createRange'](_0x510014,_0x29689[_0x3866('0x13')]));}}}}[_0x3866('0x35')](_0x366658){for(const {suggestion:_0x326991,meta:_0x2b644a}of this[_0x3866('0x8f')](_0x366658,_0x3866('0x53'))){if(!_0x2b644a[_0x3866('0x9d')])continue;const _0x49fe0f=_0x326991['getRanges']();for(const _0x1e4060 of _0x49fe0f)if(!_0x366658[_0x3866('0xbc')](_0x1e4060)[_0x3866('0xb8')])return!0x0;}return!0x1;}[_0x3866('0x135')](_0x4c13cb){const _0x19e73a=this[_0x3866('0xff')][_0x3866('0x6c')][_0x3866('0x52')](_0x3866('0x1b'))[_0x3866('0x55')](_0x4c13cb);if(!_0x19e73a)throw new _0x217484('track-changes-user-not-found',this);return _0x19e73a;}[_0x3866('0xd0')](_0x5206d9){const _0x55ae97=this[_0x3866('0xff')][_0x3866('0x6c')][_0x3866('0x52')](_0x3866('0x1b')),_0x42a34c=_0x1e68fd('external:'+_0x5206d9),_0x538ee9=_0x55ae97[_0x3866('0x55')](_0x42a34c);return _0x538ee9||_0x55ae97[_0x3866('0xa9')]({'id':_0x42a34c,'name':_0x5206d9});}[_0x3866('0x9e')](_0x1dd371,_0x319e13,_0x23cea9,_0x34c027,_0x4bbf43){const _0x486769=this['_getAuthorFromId'](_0x34c027),_0x5743a1=this['_suggestionFactory'][_0x3866('0xbd')](_0x1dd371,_0x319e13,_0x23cea9,_0x486769,_0x4bbf43,_0x1838a4=>this[_0x3866('0x49')](_0x23cea9,{'attributes':_0x1838a4}));return this[_0x3866('0xcd')](_0x5743a1,_0x3866('0x13c'),()=>{this[_0x3866('0x49')](_0x23cea9,{'state':_0x3866('0x28')});},{'priority':_0x3866('0x79')}),this[_0x3866('0xcd')](_0x5743a1,_0x3866('0xfe'),()=>{this[_0x3866('0x49')](_0x23cea9,{'state':_0x3866('0xf1')});},{'priority':_0x3866('0x79')}),this[_0x3866('0xec')][_0x3866('0xf')](_0x23cea9,_0x5743a1),this[_0x3866('0x3b')]['set'](_0x5743a1,_0x3866('0x4f')),_0x5743a1;}[_0x3866('0xf4')](_0x46cd85){const _0x1c5c6c=_0x46cd85['split'](':');return{'group':_0x1c5c6c[0x0],'type':_0x1c5c6c[0x1],'subType':_0x1c5c6c[_0x3866('0xb8')]>=0x5?_0x1c5c6c[0x2]:null,'id':_0x1c5c6c['length']<0x5?_0x1c5c6c[0x2]:_0x1c5c6c[0x3],'authorId':_0x1c5c6c[_0x3866('0xb8')]<0x5?_0x1c5c6c[0x3]:_0x1c5c6c[0x4],'markerCount':0x6==_0x1c5c6c[_0x3866('0xb8')]?_0x1c5c6c[0x5]:null};}[_0x3866('0x72')](_0x5040d2,_0x95e0eb,_0x786d33){const _0x300495=_0x5040d2[_0x3866('0x113')](),_0x586bae=_0x300495[_0x3866('0xf9')],_0x27287b=_0x300495['end'];this[_0x3866('0x95')](_0x5040d2,this[_0x3866('0xaf')][_0x3866('0x38')](_0x586bae,_0x95e0eb));const _0x1ccab1=_0x2760d2(),_0x5800b4=_0x5040d2[_0x3866('0xb4')]['id'],_0x3de26d=_0x5040d2['type']+(_0x5040d2['subType']?':'+_0x5040d2[_0x3866('0x91')]:'');this['_setSuggestionData']({'id':_0x1ccab1,'type':_0x3de26d,'createdAt':new Date(),'authorId':_0x5800b4,'originalSuggestionId':_0x5040d2['id'],'attributes':_0x5040d2['attributes'],'data':_0x5040d2[_0x3866('0x25')]}),_0x3866('0xa4')==_0x5040d2[_0x3866('0xdd')]&&(_0x786d33=this['_model'][_0x3866('0x5a')](_0x786d33[_0x3866('0x81')])),this[_0x3866('0x45')](_0x3de26d,_0x1ccab1,_0x5800b4,this[_0x3866('0xaf')][_0x3866('0x38')](_0x786d33,_0x27287b));}[_0x3866('0x8f')](_0x25c858,_0x267776=null){const _0x4b23ab=[],_0x308e5f=this[_0x3866('0xaf')]['schema'],_0x44f57f=this[_0x3866('0xff')][_0x3866('0x6c')]['get'](_0x3866('0x1b'))['me'];for(const _0x31e87d of this['getSuggestions']())if(_0x31e87d[_0x3866('0x10e')]&&(!_0x267776||_0x31e87d[_0x3866('0xdd')]==_0x267776))for(const _0x58385d of _0x31e87d['getRanges']()){const _0x1be7c8=_0x25c858[_0x3866('0xf9')][_0x3866('0x10')](_0x58385d['end'])||_0x25c858[_0x3866('0x13')][_0x3866('0x10')](_0x58385d[_0x3866('0xf9')]);if(_0x1be7c8||_0x25c858['getIntersection'](_0x58385d)){const _0x48a615=_0x25c858[_0x3866('0x2c')](_0x58385d)&&Bt(_0x308e5f,_0x58385d[_0x3866('0xf9')],_0x25c858),_0x2b2904=_0x58385d[_0x3866('0x2c')](_0x25c858)&&Bt(_0x308e5f,_0x25c858[_0x3866('0xf9')],_0x58385d);_0x4b23ab[_0x3866('0xc7')]({'suggestion':_0x31e87d,'meta':{'isOwn':_0x44f57f==_0x31e87d[_0x3866('0xb2')],'isNextTo':_0x1be7c8,'isInsideObject':_0x48a615,'containsRangeInObject':_0x2b2904}});break;}}return _0x4b23ab;}[_0x3866('0x45')](_0x183d66,_0x252da0,_0x4c528c,_0x4802ce,_0x244e3a){this[_0x3866('0xaf')]['change'](_0xb0d787=>{let _0x4a0a1d='suggestion:'+_0x183d66+':'+_0x252da0+':'+_0x4c528c;_0x244e3a&&(_0x4a0a1d=_0x4a0a1d+':'+_0x244e3a),_0xb0d787[_0x3866('0xe1')](_0x4a0a1d,{'range':_0x4802ce,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3866('0x102')](_0x47325f){const _0x16aedf=_0x47325f[_0x3866('0x11a')],_0xed081f=_0x47325f['next'];_0x47325f['previous']=null,null!=_0x16aedf&&(_0x16aedf[_0x3866('0x101')]=null),_0x47325f['next']=null,null!=_0xed081f&&(_0xed081f[_0x3866('0x11a')]=null),_0x3866('0x33')==this[_0x3866('0x3b')][_0x3866('0x52')](_0x47325f)&&(this[_0x3866('0x3b')][_0x3866('0xf')](_0x47325f,_0x3866('0x136')),this['fire'](_0x3866('0x3c'),_0x47325f,_0x16aedf,_0xed081f));}[_0x3866('0x76')](_0x5f3b36){const _0x1a754c=_0x5f3b36['id'],_0x3ad758=this['addSuggestionData'](_0x5f3b36);if(this[_0x3866('0x1c')]&&this[_0x3866('0x1c')][_0x3866('0xc')]){const _0x18907b=this[_0x3866('0xff')][_0x3866('0x6c')][_0x3866('0x52')](_0x3866('0xce')),_0x46922a=_0x3ad758[_0x3866('0x112')],_0x42beda=_0x3ad758['subType']?_0x3ad758['type']+':'+_0x3ad758[_0x3866('0x91')]:_0x3ad758[_0x3866('0xdd')],_0x2d4191=this[_0x3866('0xff')]['locale'],_0x53c98e=_0x18907b['add'](_0x2cae61(_0x2d4191,_0x3866('0x12d'))),_0x1f41cf={'id':_0x1a754c,'type':_0x42beda,'hasComments':_0x46922a,'data':_0x5f3b36['data']||null,'originalSuggestionId':_0x5f3b36[_0x3866('0x8d')]||null,'attributes':_0x3ad758['attributes']};this['_adapter'][_0x3866('0xc')](_0x1f41cf)[_0x3866('0xca')](_0x1d6961=>{_0x3ad758[_0x3866('0xe4')]=!0x0,_0x18907b[_0x3866('0x109')](_0x53c98e),_0x1d6961&&_0x1d6961['createdAt']&&(this[_0x3866('0xec')][_0x3866('0x52')](_0x1a754c)['createdAt']=_0x1d6961[_0x3866('0x106')]);})[_0x3866('0x0')](_0x15ad46=>{throw _0x394639(_0x3866('0x2d')),this[_0x3866('0xff')][_0x3866('0x66')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x3ad758[_0x3866('0xfe')]();}),_0x3ad758[_0x3866('0x80')](),this[_0x3866('0xec')][_0x3866('0x116')](_0x3ad758['id']),this['_suggestionState'][_0x3866('0x116')](_0x3ad758),_0x15ad46;});}return _0x3ad758;}[_0x3866('0x49')](_0x108f56,_0x119373){const _0x32d8be=this['editor'][_0x3866('0x6c')][_0x3866('0x52')](_0x3866('0xce')),_0x2f0743=this[_0x3866('0xac')](_0x108f56);if(this[_0x3866('0x1c')]&&this[_0x3866('0x1c')]['updateSuggestion']){if(_0x2f0743['_saved']){const _0x28761b=_0x32d8be[_0x3866('0xaa')](_0x2cae61(this[_0x3866('0xff')]['locale'],_0x3866('0x12d')));this[_0x3866('0x1c')][_0x3866('0x50')](_0x108f56,_0x119373)[_0x3866('0xca')](()=>{_0x32d8be[_0x3866('0x109')](_0x28761b);});}else _0x2f0743['on'](_0x3866('0x39'),()=>{this[_0x3866('0x49')](_0x108f56,_0x119373);});}}[_0x3866('0x104')](_0x381e86){if(!this[_0x3866('0x1c')]||!this['_adapter'][_0x3866('0xac')])throw new _0x217484('track-changes-adapter-missing-getsuggestion',this);return this[_0x3866('0x1c')]['getSuggestion'](_0x381e86);}[_0x3866('0xa7')](_0x86e3f2){const {id:_0xf4bfd,type:_0xb3ab14,subType:_0x1e3bf0,authorId:_0x2a0153}=this['_splitMarkerName'](_0x86e3f2),_0x1d62a2=this[_0x3866('0xec')][_0x3866('0x52')](_0xf4bfd)||this[_0x3866('0x9e')](_0xb3ab14,_0x1e3bf0,_0xf4bfd,_0x2a0153,{});switch(this['_checkSuggestionCorrectness'](_0x1d62a2,_0xb3ab14,_0x1e3bf0,_0x2a0153),this[_0x3866('0x3b')][_0x3866('0x52')](_0x1d62a2)){case _0x3866('0x4f'):this[_0x3866('0x104')](_0xf4bfd)['then'](_0x38333b=>{let _0x5f64b0=Promise['resolve']();_0x38333b[_0x3866('0x112')]&&(_0x5f64b0=this[_0x3866('0x29')][_0x3866('0x10f')]({'channelId':this[_0x3866('0xff')]['config'][_0x3866('0x52')](_0x3866('0x7f')),'threadId':_0xf4bfd})),_0x5f64b0['then'](()=>{this[_0x3866('0x10a')](_0x38333b)['_saved']=!0x0;});}),this[_0x3866('0x3b')][_0x3866('0xf')](_0x1d62a2,_0x3866('0x4d'));break;case _0x3866('0x136'):this[_0x3866('0x49')](_0xf4bfd,{'state':_0x3866('0xb7')});case _0x3866('0x8b'):this[_0x3866('0x3b')][_0x3866('0xf')](_0x1d62a2,_0x3866('0x33')),this['fire'](_0x3866('0x69'),_0x1d62a2);break;case _0x3866('0x33'):this[_0x3866('0x32')](_0x3866('0xc3'),_0x1d62a2);}return _0x1d62a2[_0x3866('0x10c')](_0x86e3f2),_0x1d62a2;}[_0x3866('0x15')](_0x3f21eb){const _0x677205=Array[_0x3866('0x64')](_0x3f21eb)[_0x3866('0xc8')](_0x2aaa2d=>!_0x2aaa2d[_0x3866('0xcb')]),_0x209cdd=this[_0x3866('0xbe')]({'skipNotAttached':!0x0})[_0x3866('0xc8')](_0x169932=>!_0x169932[_0x3866('0xcb')]),_0x4a568f=_0x209cdd[_0x3866('0xc8')](_0x2fc81e=>!_0x3f21eb['has'](_0x2fc81e)),_0x4c282d=new Map(_0x209cdd[_0x3866('0xe7')](_0x52f989=>[_0x52f989,this['_suggestionFactory']['getSuggestionCallback'](_0x52f989[_0x3866('0xdd')],_0x52f989[_0x3866('0x91')],_0x3866('0xb'))])),_0x1b6930=new Map(_0x209cdd[_0x3866('0xe7')](_0x10d61c=>[_0x10d61c,_0x10d61c[_0x3866('0x113')]()])),_0x5c33a4=new Set(),_0x234d7e=new Set();for(let _0xc56daa=0x0;_0xc56daa<_0x677205['length'];_0xc56daa++)_0x8b0cb5(_0x677205[_0xc56daa],_0x677205,_0xc56daa+0x1);for(let _0x4e3a6d=0x0;_0x4e3a6d<_0x677205['length'];_0x4e3a6d++)_0x8b0cb5(_0x677205[_0x4e3a6d],_0x4a568f,0x0);for(let _0x5a1fb4=0x0;_0x5a1fb4<_0x677205[_0x3866('0xb8')];_0x5a1fb4++){const _0x1cd5bc=_0x677205[_0x5a1fb4];!_0x234d7e[_0x3866('0x43')](_0x1cd5bc)&&_0x1cd5bc['previous']&&(_0x1cd5bc[_0x3866('0x11a')]['next']===_0x1cd5bc&&(_0x1cd5bc[_0x3866('0x11a')][_0x3866('0x101')]=null),_0x1cd5bc[_0x3866('0x11a')]=null),!_0x5c33a4[_0x3866('0x43')](_0x1cd5bc)&&_0x1cd5bc[_0x3866('0x101')]&&(_0x1cd5bc[_0x3866('0x101')][_0x3866('0x11a')]===_0x1cd5bc&&(_0x1cd5bc[_0x3866('0x101')]['previous']=null),_0x1cd5bc[_0x3866('0x101')]=null);}function _0x8b0cb5(_0x4a17c2,_0x5396d7,_0x483a5c){for(let _0x2efef0=_0x483a5c;_0x2efef0<_0x5396d7[_0x3866('0xb8')];_0x2efef0++){const _0x5e5850=_0x15abbf(_0x4a17c2,_0x5396d7[_0x2efef0]);_0x5e5850&&(_0x5e5850[0x0][_0x3866('0x101')]=_0x5e5850[0x1],_0x5e5850[0x1]['previous']=_0x5e5850[0x0],_0x5c33a4[_0x3866('0xaa')](_0x5e5850[0x0]),_0x234d7e[_0x3866('0xaa')](_0x5e5850[0x1]));}}function _0x15abbf(_0x549271,_0x59a554){if(_0x549271[_0x3866('0xb2')]['id']!==_0x59a554[_0x3866('0xb2')]['id'])return null;const _0x57a1b5=_0x4c282d[_0x3866('0x52')](_0x549271)(_0x549271,_0x59a554,_0x1b6930[_0x3866('0x52')](_0x549271),_0x1b6930[_0x3866('0x52')](_0x59a554));if(!_0x57a1b5)return null;return _0x4c282d[_0x3866('0x52')](_0x59a554)(_0x549271,_0x59a554,_0x1b6930[_0x3866('0x52')](_0x549271),_0x1b6930[_0x3866('0x52')](_0x59a554))?_0x57a1b5[0x1]['commentThread']&&_0x57a1b5[0x1][_0x3866('0x11f')][_0x3866('0xb8')]?null:_0x57a1b5:null;}}[_0x3866('0xba')](_0xa464a5){const _0x530976=Array[_0x3866('0x64')](_0xa464a5),_0x2f9dc1=this[_0x3866('0xbe')]({'skipNotAttached':!0x0}),_0x53a818=_0x2f9dc1[_0x3866('0xc8')](_0x22f2c8=>!_0xa464a5[_0x3866('0x43')](_0x22f2c8)),_0x207d1e=new Map(_0x530976[_0x3866('0xe7')](_0x4238c1=>[_0x4238c1,this[_0x3866('0x5')][_0x3866('0x123')](_0x4238c1['type'],_0x4238c1[_0x3866('0x91')],_0x3866('0x110'))])),_0x2b91c3=new Map(_0x2f9dc1['map'](_0x1ed31b=>[_0x1ed31b,_0x1ed31b[_0x3866('0x59')]()]));for(let _0x3362ed=0x0;_0x3362ed<_0x530976['length'];_0x3362ed++){if(_0x4345f7(this,_0x530976[_0x3362ed],_0x530976,_0x3362ed+0x1))return!0x0;}for(let _0x38c322=0x0;_0x38c322<_0x530976[_0x3866('0xb8')];_0x38c322++){if(_0x4345f7(this,_0x530976[_0x38c322],_0x53a818,0x0))return!0x0;}return!0x1;function _0x4345f7(_0x1b4d45,_0xb8d64b,_0x3e191d,_0x388a4a){for(let _0x38d609=_0x388a4a;_0x38d609<_0x3e191d['length'];_0x38d609++){const _0x954df9=_0x3e191d[_0x38d609];if(_0x954df9['type']!==_0xb8d64b[_0x3866('0xdd')]||_0x954df9[_0x3866('0xb2')]['id']!==_0xb8d64b[_0x3866('0xb2')]['id']||_0x954df9['subType']!==_0xb8d64b[_0x3866('0x91')])continue;const _0x1d6db5=_0x207d1e[_0x3866('0x52')](_0xb8d64b),_0x319fba=_0x2b91c3[_0x3866('0x52')](_0xb8d64b),_0x49000e=_0x2b91c3['get'](_0x954df9),_0x50da2a=_0xb8d64b[_0x3866('0x11f')]&&_0xb8d64b[_0x3866('0x11f')]['length'],_0x45938f=_0x954df9[_0x3866('0x11f')]&&_0x954df9['commentThread'][_0x3866('0xb8')];if(!_0x50da2a&&_0x1d6db5(_0x49000e,_0x319fba))return _0x1b4d45[_0x3866('0x8e')](_0x954df9,_0xb8d64b),_0x2b91c3[_0x3866('0x116')](_0xb8d64b),!0x0;if(!_0x45938f&&_0x1d6db5(_0x319fba,_0x49000e))return _0x1b4d45[_0x3866('0x8e')](_0xb8d64b,_0x954df9),_0x2b91c3['delete'](_0x954df9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1e28ad,_0x396e48){if(_0x1e28ad['isMultiRange'])for(const _0x594129 of _0x396e48[_0x3866('0x59')]())_0x1e28ad[_0x3866('0x4')](_0x594129);else{const _0x81e22c=_0x396e48[_0x3866('0x113')]()[_0x3866('0x13')];this[_0x3866('0x95')](_0x1e28ad,this[_0x3866('0xaf')]['createRange'](_0x1e28ad[_0x3866('0x113')]()[_0x3866('0xf9')],_0x81e22c));}_0x396e48[_0x3866('0x5f')]();}}class Dt{constructor(_0x3737b6){this[_0x3866('0x63')]=_0x3737b6,this['_model']=_0x3737b6[_0x3866('0x66')],this[_0x3866('0x1f')]=new Map(),this[_0x3866('0x12a')]=new Map(),this[_0x3866('0x12f')]();}['buildSuggestion'](_0x2ede17,_0x4437dc,_0xf9a5e4,_0x4bbf45,_0x1fc8ac,_0x1ad65a){return new _0x3a1096(this[_0x3866('0xaf')],{'type':_0x2ede17,'subType':_0x4437dc,'id':_0xf9a5e4,'author':_0x4bbf45,'creator':_0x4bbf45,'attributes':_0x1fc8ac,'onAttributesChange':_0x1ad65a,'onAccept':(..._0x2e3401)=>this[_0x3866('0x123')](_0x2ede17,_0x4437dc,'accept')(..._0x2e3401),'onDiscard':(..._0x164608)=>this[_0x3866('0x123')](_0x2ede17,_0x4437dc,_0x3866('0xfe'))(..._0x164608)});}[_0x3866('0xb1')](_0x4b31e8,_0x172af1,_0x3de91d,_0x1ddbb8){const _0x3c3349=_0x4b31e8+':'+_0x172af1+':'+_0x3de91d;this[_0x3866('0x1f')]['set'](_0x3c3349,_0x1ddbb8);}[_0x3866('0x123')](_0x375c66,_0xde4df9,_0x197ae2){const _0x40a070=_0x375c66+':'+_0xde4df9+':'+_0x197ae2;return this[_0x3866('0x1f')][_0x3866('0x52')](_0x40a070)||this[_0x3866('0x12a')]['get'](_0x375c66+':'+_0x197ae2);}[_0x3866('0x12f')](){const _0x4ff2e0=()=>{},_0x341a60=_0x36ace3=>{_0x36ace3[_0x3866('0x34')]((_0x1b8c45,_0x3e440e)=>_0x1b8c45['start'][_0x3866('0x137')](_0x3e440e[_0x3866('0xf9')])?0x1:-0x1),this[_0x3866('0xaf')][_0x3866('0x26')](_0x9bf9c8=>{for(const _0x2cf6eb of _0x36ace3){let _0x459375;_0x459375=_0x2cf6eb['end'][_0x3866('0x40')]&&_0x2cf6eb['end'][_0x3866('0x81')]==_0x2cf6eb[_0x3866('0xf9')]['nodeAfter']?_0x9bf9c8[_0x3866('0x54')](_0x2cf6eb['start'][_0x3866('0x11e')],'on'):_0x9bf9c8[_0x3866('0x54')](_0x2cf6eb),this['_model'][_0x3866('0x9b')](_0x459375,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xf44714=(_0x20ebb8,_0xb7ef6d)=>{this['_model'][_0x3866('0x26')](_0x375efd=>{const {commandName:_0x449393,commandParams:_0x813899=[]}=_0xb7ef6d,_0x56e621=_0x20ebb8[_0x3866('0xe7')](_0x53e127=>(_t(_0x53e127)&&(_0x53e127=this['_model'][_0x3866('0x38')](_0x53e127[_0x3866('0x13')])),_0x53e127))['filter'](_0xc9c5b9=>_0x3866('0x93')!==_0xc9c5b9[_0x3866('0x131')][_0x3866('0xd9')]);if(_0x56e621[_0x3866('0xb8')]<0x1)return;const _0x48316f=Array['from'](this[_0x3866('0xaf')][_0x3866('0x5e')][_0x3866('0x6e')][_0x3866('0x59')]())[_0x3866('0xe7')](_0x449363=>_0x10ff46[_0x3866('0x11')](_0x449363));_0x375efd[_0x3866('0xc0')](_0x56e621);for(const _0x55214a of this['_editor'][_0x3866('0xde')][_0x3866('0xde')]())_0x55214a[_0x3866('0x117')]();_0x813899[_0x3866('0xc7')]({'forceDefaultExecution':!0x0}),this[_0x3866('0x63')]['execute'](_0x449393,..._0x813899);const _0x396a07=_0x48316f[_0x3866('0xc8')](_0x5802b9=>'$graveyard'!=_0x5802b9['root'][_0x3866('0xd9')]);_0x396a07[_0x3866('0xb8')]>0x0&&_0x375efd[_0x3866('0xc0')](_0x396a07);for(const _0x3067bb of _0x48316f)_0x3067bb[_0x3866('0x19')]();});},_0x4d4394=(_0x1957b6,_0x326bf5)=>0x1==_0x1957b6[_0x3866('0xb8')]&&0x1==_0x326bf5[_0x3866('0xb8')]&&_0x1957b6[0x0]['end'][_0x3866('0x10')](_0x326bf5[0x0]['start']),_0x149a21=(_0x51d72b,_0x2fb1c5,_0x12fddd,_0x53d578)=>xt(_0x51d72b,_0x2fb1c5,_0x12fddd,_0x53d578,this['_model'])?[_0x51d72b,_0x2fb1c5]:xt(_0x2fb1c5,_0x51d72b,_0x53d578,_0x12fddd,this['_model'])?[_0x2fb1c5,_0x51d72b]:null;this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0x1e'),_0x4ff2e0),this[_0x3866('0x12a')][_0x3866('0xf')]('insertion:discard',_0x341a60),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0xf2'),_0x4d4394),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0xa2'),_0x149a21),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0x6a'),_0x341a60),this[_0x3866('0x12a')][_0x3866('0xf')]('deletion:discard',_0x4ff2e0),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0x8a'),_0x4d4394),this[_0x3866('0x12a')][_0x3866('0xf')]('deletion:chain',_0x149a21),this[_0x3866('0x12a')][_0x3866('0xf')]('formatInline:accept',_0xf44714),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0x1'),_0x4ff2e0),this['_defaultCallbacks'][_0x3866('0xf')](_0x3866('0x98'),_0x4d4394),this[_0x3866('0x12a')]['set'](_0x3866('0x74'),_0x4ff2e0),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0x4e'),_0xf44714),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0xfb'),_0x4ff2e0),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0x5c'),_0x4d4394),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0xfa'),_0x4ff2e0);}}function Bt(_0x519764,_0x174380,_0x51785e){for(const _0x481bda of _0x174380['parent'][_0x3866('0x7a')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x481bda[_0x3866('0x131')]==_0x481bda)return!0x1;if(!_0x51785e[_0x3866('0xd7')](_0x481bda))return!0x1;if(_0x519764[_0x3866('0xe2')](_0x481bda)||_0x519764[_0x3866('0xdf')](_0x481bda))return!0x0;}return!0x1;}function _t(_0x2175aa){return _0x2175aa[_0x3866('0x13')][_0x3866('0x81')]==_0x2175aa[_0x3866('0xf9')][_0x3866('0x11e')]&&_0x2175aa['end'][_0x3866('0x103')];}function Mt(_0x2cf431,_0x57ede7,_0x3bd6bc,_0x43eead){const _0x3fe766=_0x2d44ac=>!_0x2d44ac[_0x3866('0x3')]['is'](_0x3866('0xd4'))&&!_0x43eead[_0x3866('0xe2')](_0x2d44ac[_0x3866('0x3')]),_0x4317b6=_0x2cf431[_0x3866('0xf9')][_0x3866('0x46')](_0x3fe766),_0x3bd2ba=_0x2cf431[_0x3866('0x13')][_0x3866('0x46')](_0x3fe766,{'direction':_0x3866('0x62')});return(!_0x2cf431[_0x3866('0xf9')][_0x3866('0x10')](_0x4317b6)||!_0x2cf431[_0x3866('0x13')][_0x3866('0x10')](_0x3bd2ba))&&(_0x4317b6[_0x3866('0x137')](_0x3bd2ba)?_0x3bd6bc[_0x3866('0x133')](_0x57ede7,{'range':_0x3bd6bc[_0x3866('0x38')](_0x4317b6,_0x3bd2ba)}):_0x3bd6bc[_0x3866('0x2b')](_0x57ede7),!0x0);}function $t(_0x412b4d){return _0x1e68fd(_0x412b4d);}function Nt(_0x5e55d9){const _0x504491=_0x5e55d9['start'][_0x3866('0x11e')];return _0x504491&&_0x504491['is']('element');}function Rt(_0x16ff98,_0x4bf606){const _0x2e0424=_0x4bf606[_0x3866('0xa3')][_0x3866('0xe2')](_0x16ff98)||_0x4bf606['schema']['isSelectable'](_0x16ff98);return _0x4bf606[_0x3866('0x38')](_0x4bf606[_0x3866('0xbb')](_0x16ff98,'before'),_0x2e0424?_0x4bf606[_0x3866('0x57')](_0x16ff98):_0x4bf606['createPositionAt'](_0x16ff98,_0x3866('0x13')));}function xt(_0x3d53a5,_0x4e6b3d,_0x3ebae0,_0x30db8d,_0x181bc3){if(_0x3ebae0[_0x3866('0x13')]['isEqual'](_0x30db8d[_0x3866('0xf9')]))return!0x0;if(_0x3d53a5[_0x3866('0xdd')]!=_0x4e6b3d[_0x3866('0xdd')])return!0x1;if(!_0x3ebae0[_0x3866('0x13')][_0x3866('0x56')](_0x30db8d['start']))return!0x1;const _0x3c2222=_0x181bc3[_0x3866('0x38')](_0x3ebae0[_0x3866('0x13')],_0x30db8d['start'])['getWalker']();for(const _0x175850 of _0x3c2222)if(['elementStart',_0x3866('0x9a')][_0x3866('0xf7')](_0x175850[_0x3866('0xdd')])&&_0x181bc3[_0x3866('0xa3')][_0x3866('0xdf')](_0x175850[_0x3866('0x3')]))return!0x1;return!0x0;}
|
|
23
|
+
const _0x4ae9=['discardSelectedSuggestions','elementToElement','isUndo','addHighlight','removed','insertContent','dataReady','default','writer','removeClass','_removeSuggestion','map','_trackFormatChanges','acceptSelectedSuggestions','createPositionBefore','track-changes-command-not-found','_checkSuggestionCorrectness','removeAttribute','documentSelection','suggestionChanged','accepted','formatBlock','nodeBefore','_getSuggestionData','formatInline:discard','forward','insert','containsRangeInObject','_registerDefaultCallbacks','isNextTo','selection','activeMarkers','enableCommand','before','addUser','_customCallbacks','creator','applyOperation','split','toJSON','parent','buildSuggestion','editingDowncast','splitPosition','showSuggestionHighlights','getAllAdjacentSuggestions','change:activeMarkers','Users','addMarker:suggestion:formatBlock','fromRange','commentThread','item','move','_addSuggestionMarker','commands','set','marker-count','range','_setSuggestionRange','isAfter','locale','normal','formatGroupId','trackChanges','change:data','setAttribute','getCustomProperty','getAttribute','editor','_setSuggestionData','getMarkers','clone','trackChanges.trackFormatChanges','getSuggestionCallback','$textProxy','listenTo','suggestion:','_addThreadToSuggestion','insertion:discard','rootName','markInsertion','_adapter','size','markInlineFormat','getDifference','isExternal','CommentsRepository','createdAt','author','detach','isMultiRange','getShiftedBy','clear','after','_findSuggestions','PendingActions','formatInline:','acceptAllSuggestions','getRanges','formatBlock:join','discardAllSuggestions','addSuggestionData','newRange','conversion','markMultiRangeBlockFormat','stop','createRange','addCommentThread','isSelectable','filter','dataToMarker','mapper','isInContent','change','isLimit','addClass','addMarker','howMany','isObject','update:suggestion','element','editing','discard','schema','insertion:join','resolve','fire','splice','track-changes-suggestion-not-found','_breakSuggestionMarker','markerReady','batch','fromCharCode','_joinWithAdjacentSuggestions','change:_saved','dataDowncast','getFirstRange','hasComments','_cutOutSuggestionMarker','data','commandName','discardSuggestion','root','isCollapsed','plugins','some','suggestionLoaded','has','_getAuthorFromId','previous','from','insertion:accept','markerToHighlight','options','_model','_saved','markers','_suggestionFactory','updateSuggestion','getNearestSelectionRange','every','consumable','$graveyard','_splitMarkerName','multi','skipNestingCheck','_defaultCallbacks','setTo','unbind','track-changes-user-not-found','deletion:','getRange','insertion','end','addMarkerName','isBefore','name','_rangeIsInLocalUserInsertion','lowest','config','formatBlock:chain','_refreshSuggestionsChain','_editor','track-changes-adapter-already-set','_updateSuggestionData','never','error-saving-suggestion-data-suggestion-discarded','formatBlock:discard','suggestion','then','getSuggestion','rejected','_descriptionFactory','pluginName','createPositionAfter','markMultiRangeInsertion','high','init','ready','createPositionAt','_enabledCommands','formatInline:chain','formatBlock:','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active','getIntersection','elementStart','_commentsRepository','oldRange','always','collaboration.channelId','_suggestionState','join','add','subType','containsRange','getUser','remove','createSelection','isAtEnd','authoredAt','suggestion-type','unbindElementFromMarkerName','suggestionUnloaded','sort','for','trackChangesCommand','getFirstMarker','ck-suggestion-marker-','low','formatInline','isRemovable','consume','acceptSuggestion','TrackChangesEditing','PENDING_ACTION_SUGGESTION','attributes','registerCustomCallback','_suggestions','getSuggestions','document','deleteContent','enqueueChange','catch','hasSuggestion','moveTargetPosition','track-changes-suggestion-data-mismatch','getLastMatchingPosition','adapter','rethrowUnexpectedError','getAncestors','_joinSuggestions','nodeAfter','elementEnd','execute','deletion','@external','removeMarkers','isEqual','delete','markMultiRangeDeletion','model','addSuggestion','next','multipleBlocks','chain','formatInline:accept','ck-suggestion-marker','reconvertMarker','removeMarker','start','upcast','getChangedMarkers','markerName','isAtStart','value','setSelection','formatBlock:accept','head','_createSuggestion','isIntersectingWithRange','addRange','isInsideObject','registerPostFixer','_isForcedDefaultExecutionBlock','markBlockFormat','isBlock','values','getChanges','fetchCommentThread','getCommentThread','addComment','createElement','markerToData','length','type','hasCommentThread','forceDefaultExecution','get','differ','insertion:','removeMarker:suggestion:formatBlock','define','getMultiRangeId','containsPosition','accept','widget','data-suggestion','targetPosition','push','getItems','_handleNewSuggestionMarker','trackChanges.mergeNestedSuggestions','toViewElement','isOwn','backward','_mergeNestedSuggestions','includes','deletion:chain','updateMarker'];(function(_0x156c4c,_0x4ae939){const _0x4407d6=function(_0x1e7645){while(--_0x1e7645){_0x156c4c['push'](_0x156c4c['shift']());}};_0x4407d6(++_0x4ae939);}(_0x4ae9,0xbe));const _0x4407=function(_0x156c4c,_0x4ae939){_0x156c4c=_0x156c4c-0x0;let _0x4407d6=_0x4ae9[_0x156c4c];return _0x4407d6;};import{Plugin as _0x2986d8,PendingActions as _0x103b2c}from'ckeditor5/src/core';import{LiveRange as _0xe7e90e}from'ckeditor5/src/engine';import{CKEditorError as _0xd26818,uid as _0xd49a,priorities as _0x493584,logWarning as _0x3fd0ac}from'ckeditor5/src/utils';import{toWidget as _0x40a379}from'ckeditor5/src/widget';import{Users as _0x10a38b,hashObject as _0x457b72}from'ckeditor5-collaboration/src/collaboration-core';import _0x50529e from'./commands/trackchangescommand';import _0x20fc77 from'./commands/acceptsuggestioncommand';import _0x35b2b4 from'./commands/discardsuggestioncommand';import _0x3de5e9 from'./commands/executeonallsuggestionscommand';import _0x1f85f1 from'./commands/executeonselectedsuggestionscommand';import _0x30b61b from'./suggestion';import _0x4286d5 from'./suggestiondescriptionfactory';import _0x5330bd from'./integrations/alignment';import _0xb900f8 from'./integrations/basicstyles';import _0x4a4a13 from'./integrations/blockquote';import _0x4aee25 from'./integrations/ckbox';import _0x9da8 from'./integrations/codeblock';import _0x4daf0d from'./integrations/comments';import _0xb1f7cd from'./integrations/deletecommand';import _0x53b480 from'./integrations/documentlist';import _0x3a202e from'./integrations/entercommand';import _0x18b2eb from'./integrations/findandreplace';import _0x3add49 from'./integrations/font';import _0x43c7e7 from'./integrations/formatpainter';import _0x46837f from'./integrations/heading';import _0x58bce4 from'./integrations/highlight';import _0x22cacb from'./integrations/horizontalline';import _0x1cbc84 from'./integrations/htmlembed';import _0x18b42c from'./integrations/image';import _0x24c97b from'./integrations/imagereplace';import _0x560982 from'./integrations/importword';import _0x5af473 from'./integrations/indent';import _0x4a044a from'./integrations/inputcommand';import _0x593b92 from'./integrations/link';import _0x34ad0a from'./integrations/list';import _0x326c6a from'./integrations/listproperties';import _0x2cc50f from'./integrations/mediaembed';import _0x512bab from'./integrations/mention';import _0x39bf5b from'./integrations/pagebreak';import _0x1381fb from'./integrations/paragraph';import _0x4c4fe8 from'./integrations/removeformat';import _0x250bac from'./integrations/restrictededitingmode';import _0x238c9f from'./integrations/shiftentercommand';import _0x17248a from'./integrations/standardeditingmode';import _0x5ec99f from'./integrations/style';import _0x58c4db from'./integrations/table';import _0xa75e8c from'./integrations/tablemergesplit';import _0x5e7a8a from'./integrations/tableheadings';import _0x4f10c5 from'./integrations/tableclipboard';import _0x2e787b from'./integrations/tablecolumnresize';import _0x26a9b0 from'./integrations/template';import _0x1390c2 from'./integrations/tableofcontents';import _0x59401f from'./integrations/title';import _0x326fdb from'./integrations/undo';import{getTranslation as _0x1042ed}from'./utils/common-translations';import _0x1b4a64 from'./integrations/tablecaption';import _0x304433 from'./integrations/documentlistproperties';import _0x32dfcc from'./integrations/tableproperties';export default class p extends _0x2986d8{static get['requires'](){return[_0x4407('0xd8'),_0x10a38b,_0x103b2c,_0x5330bd,_0xb900f8,_0x4a4a13,_0x4aee25,_0x9da8,_0x4daf0d,_0xb1f7cd,_0x53b480,_0x304433,_0x3a202e,_0x18b2eb,_0x3add49,_0x43c7e7,_0x46837f,_0x58bce4,_0x22cacb,_0x1cbc84,_0x18b42c,_0x24c97b,_0x560982,_0x5af473,_0x4a044a,_0x593b92,_0x34ad0a,_0x326c6a,_0x2cc50f,_0x512bab,_0x39bf5b,_0x1381fb,_0x4c4fe8,_0x250bac,_0x238c9f,_0x17248a,_0x5ec99f,_0x58c4db,_0xa75e8c,_0x5e7a8a,_0x1b4a64,_0x4f10c5,_0x2e787b,_0x1390c2,_0x32dfcc,_0x26a9b0,_0x59401f,_0x326fdb];}static get[_0x4407('0x3')](){return _0x4407('0x2c');}constructor(_0x555e84){function _0x59af12(_0x383e72){return _0x383e72['map'](_0x3bc1ab=>String[_0x4407('0x106')](_0x3bc1ab))[_0x4407('0x16')]('');}super(_0x555e84),this[_0x4407('0xb9')](_0x4407('0xa1'),[]),this['on'](_0x4407('0xb0'),(_0x820caf,_0x1c11e7,_0x4a14d4,_0x642a92)=>{this['_model']['change'](()=>{for(const _0x27af4f of[..._0x642a92,..._0x4a14d4])this[_0x4407('0x11c')][_0x4407('0x11e')][_0x4407('0x115')](_0x27af4f)&&_0x555e84[_0x4407('0xfb')][_0x4407('0x4e')](_0x27af4f);});}),this[_0x4407('0x2')]=new _0x4286d5(this[_0x4407('0xc6')][_0x4407('0x47')][_0x4407('0xfd')],this[_0x4407('0xc6')][_0x4407('0xbe')]),this[_0x4407('0xd3')]=null,this[_0x4407('0x11f')]=new Dt(this[_0x4407('0xc6')]),this['_suggestions']=new Map(),this[_0x4407('0x11')]=_0x555e84['plugins'][_0x4407('0x6c')](_0x4407('0xd8')),this[_0x4407('0xa')]=new Set(),this[_0x4407('0x11c')]=this[_0x4407('0xc6')][_0x4407('0x47')],this[_0x4407('0x15')]=new WeakMap(),this[_0x4407('0x5e')]=!0x1,_0x555e84[_0x4407('0x135')][_0x4407('0x70')]('trackChanges.trackFormatChanges',_0x4407('0x89')),this['_trackFormatChanges']=_0x555e84[_0x4407('0x135')][_0x4407('0x6c')](_0x4407('0xca')),_0x555e84[_0x4407('0x135')][_0x4407('0x70')](_0x4407('0x7a'),!0x0),this[_0x4407('0x7e')]=_0x555e84[_0x4407('0x135')]['get']('trackChanges.mergeNestedSuggestions'),this[_0x4407('0x24')]=new _0x50529e(_0x555e84,this[_0x4407('0xa')]),this[_0x59af12([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x59af12([0x34,0x30,0x34,0x36,0x31,0x34,0x31,0x38]);}[_0x4407('0x7')](){const _0x46b922=this['editor'];_0x46b922[_0x4407('0xe9')]['for'](_0x4407('0xac'))['markerToHighlight']({'model':_0x4407('0x13e'),'view':_0x38a369=>{const {id:_0xa2b743,type:_0x440f50}=this[_0x4407('0x125')](_0x38a369[_0x4407('0x53')]),_0x3f567f=[_0x4407('0x4d'),_0x4407('0x26')+_0x440f50];let _0x8722c7=0xbb8;return this[_0x4407('0xa1')][_0x4407('0x7f')](_0x38a369[_0x4407('0x53')])&&(_0x3f567f[_0x4407('0x77')]('ck-suggestion-marker--active'),_0x8722c7=0xbc2),_0x4407('0x41')==_0x440f50&&(_0x8722c7+=0x5),{'classes':_0x3f567f,'attributes':{'data-suggestion':_0xa2b743},'priority':_0x8722c7};}}),_0x46b922[_0x4407('0xe9')][_0x4407('0x23')](_0x4407('0x109'))['add'](_0x3d9f82=>{_0x3d9f82['on']('addMarker:suggestion',(_0x2c9553,_0x1a0266,_0x4d453e)=>{if(!_0x4d453e[_0x4407('0x11b')][_0x4407('0xae')])return;const _0x2dfc28=_0x1a0266[_0x4407('0xb5')];if(!_0x2dfc28)return;const _0x188e4a=_0x4d453e[_0x4407('0xf1')]['toViewElement'](_0x2dfc28);_0x46b922['model'][_0x4407('0xfd')][_0x4407('0xf8')](_0x2dfc28)&&_0x188e4a&&!_0x188e4a[_0x4407('0xc4')](_0x4407('0x74'))&&_0x188e4a['is']('containerElement')&&_0x40a379(_0x188e4a,_0x4d453e[_0x4407('0x8a')]);},{'priority':'high'});}),_0x46b922[_0x4407('0xe9')][_0x4407('0x23')](_0x4407('0x109'))[_0x4407('0x11a')]({'model':_0x4407('0x13e'),'view':(_0x26616c,_0x43e1f7)=>{if(!_0x43e1f7['options'][_0x4407('0xae')])return null;const {type:_0x45c3e9}=this[_0x4407('0x125')](_0x26616c[_0x4407('0x53')]);return{'classes':[_0x4407('0x4d'),_0x4407('0x26')+_0x45c3e9],'priority':0xbb8};}});const _0x171c7a=({showActiveMarkers:_0x32a8c4=!0x0}={})=>(_0x2e4029,_0x44d3d6,_0x5be4a5)=>{if(!_0x44d3d6[_0x4407('0xb5')])return;if(_0x44d3d6['item']['is'](_0x4407('0xa0')))return void _0x5be4a5[_0x4407('0x123')][_0x4407('0x2a')](_0x44d3d6[_0x4407('0xb5')],_0x2e4029[_0x4407('0x132')]);const _0x41cf80=_0x5be4a5[_0x4407('0xf1')][_0x4407('0x7b')](_0x44d3d6[_0x4407('0xb5')]);if(!(_0x44d3d6[_0x4407('0xb5')]['is'](_0x4407('0xfa'))&&_0x46b922[_0x4407('0x47')]['schema'][_0x4407('0x60')](_0x44d3d6[_0x4407('0xb5')])&&!_0x41cf80[_0x4407('0xc4')]('addHighlight')))return;const {id:_0x27a1c7}=this[_0x4407('0x125')](_0x44d3d6['markerName']);_0x5be4a5[_0x4407('0x8a')]['addClass']([_0x4407('0x4d'),_0x4407('0xd')],_0x41cf80),_0x5be4a5[_0x4407('0x8a')][_0x4407('0xc3')](_0x4407('0x75'),_0x27a1c7,_0x41cf80),_0x5be4a5[_0x4407('0xf1')]['bindElementToMarker'](_0x41cf80,_0x44d3d6[_0x4407('0x53')]),_0x32a8c4&&(this[_0x4407('0xa1')]['includes'](_0x44d3d6[_0x4407('0x53')])?_0x5be4a5[_0x4407('0x8a')][_0x4407('0xf5')](_0x4407('0xe'),_0x41cf80):_0x5be4a5['writer']['removeClass'](_0x4407('0xe'),_0x41cf80));for(const _0x2a7712 of _0x46b922[_0x4407('0x47')]['createRangeIn'](_0x44d3d6[_0x4407('0xb5')])[_0x4407('0x78')]())_0x5be4a5[_0x4407('0x123')]['consume'](_0x2a7712,_0x2e4029[_0x4407('0x132')]);_0x5be4a5[_0x4407('0x123')][_0x4407('0x2a')](_0x44d3d6[_0x4407('0xb5')],_0x2e4029['name']);};_0x46b922[_0x4407('0xe9')][_0x4407('0x23')](_0x4407('0x109'))[_0x4407('0x17')](_0x30cf2b=>{_0x30cf2b['on']('addMarker:suggestion:formatBlock',(_0x30b5aa,_0x501070,_0x1b5819)=>{_0x1b5819[_0x4407('0x11b')][_0x4407('0xae')]&&_0x171c7a({'showActiveMarkers':!0x1})(_0x30b5aa,_0x501070,_0x1b5819);},{'priority':'highest'});}),_0x46b922['conversion'][_0x4407('0x23')](_0x4407('0x109'))[_0x4407('0x67')]({'model':_0x4407('0x13e'),'view':(_0xa8a127,_0x2d46e3)=>_0x2d46e3[_0x4407('0x11b')][_0x4407('0xae')]?null:{'group':_0x4407('0x13e'),'name':_0xa8a127['substr'](0xb)}}),_0x46b922[_0x4407('0xe9')][_0x4407('0x23')](_0x4407('0x51'))[_0x4407('0x83')]({'view':{'name':_0x4407('0x13e'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x28d12a,{writer:_0x2cbb2b})=>{let _0x2b418f='suggestion:'+_0x28d12a[_0x4407('0xc5')](_0x4407('0x1f'))+':'+_0x28d12a[_0x4407('0xc5')]('id');return _0x28d12a[_0x4407('0xc5')]('marker-count')&&(_0x2b418f+=':'+_0x28d12a[_0x4407('0xc5')](_0x4407('0xba'))),_0x2cbb2b[_0x4407('0x66')]('$marker',{'data-name':_0x2b418f});}}),_0x46b922['conversion'][_0x4407('0x23')]('upcast')[_0x4407('0xf0')]({'view':_0x4407('0x13e')}),_0x46b922[_0x4407('0xe9')][_0x4407('0x23')](_0x4407('0xac'))['add'](_0x732b34=>{_0x732b34['on'](_0x4407('0xb2'),_0x171c7a(),{'priority':'high'});}),_0x46b922[_0x4407('0xe9')][_0x4407('0x23')]('editingDowncast')['add'](_0x217fa7=>{_0x217fa7['on'](_0x4407('0x6f'),(_0x1d001e,_0x58d3a7,_0x2dc305)=>{const _0x4542ff=_0x2dc305[_0x4407('0xf1')]['markerNameToElements'](_0x58d3a7['markerName']);if(_0x4542ff)for(const _0xe71099 of _0x4542ff)_0xe71099[_0x4407('0xc4')](_0x4407('0x85'))||(_0x2dc305['writer'][_0x4407('0x8b')](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xe71099),_0x2dc305[_0x4407('0x8a')][_0x4407('0x93')]('data-suggestion',_0xe71099),_0x2dc305[_0x4407('0xf1')][_0x4407('0x20')](_0xe71099,_0x58d3a7[_0x4407('0x53')]));},{'priority':_0x4407('0x6')});}),_0x46b922['model']['document'][_0x4407('0x5d')](_0x5a46bc=>{let _0x1a105d=!0x1;const _0x30a8f5=Array[_0x4407('0x118')](_0x46b922[_0x4407('0x47')][_0x4407('0x32')][_0x4407('0x6d')][_0x4407('0x52')]()),_0x531f51=new Set();for(const {name:_0x13ea77,data:_0x3c439a}of _0x30a8f5){const {group:_0x632f4a,type:_0x1ddf43,id:_0x326904}=this[_0x4407('0x125')](_0x13ea77);if(_0x4407('0x13e')!==_0x632f4a)continue;const _0x433abd=this[_0x4407('0x30')][_0x4407('0x6c')](_0x326904);if(null!=_0x3c439a['newRange']){_0x4407('0x28')==_0x1ddf43&&(_0x1a105d=_0x1a105d||Mt(_0x3c439a[_0x4407('0xe8')],_0x13ea77,_0x5a46bc,_0x46b922[_0x4407('0x47')][_0x4407('0xfd')]));if(_0x3c439a['newRange']['isCollapsed']||_0x4407('0x124')==_0x3c439a[_0x4407('0xe8')]['root'][_0x4407('0xd1')]||_0x4407('0x97')==_0x1ddf43&&!Nt(_0x3c439a[_0x4407('0xe8')])||_0x4407('0x41')==_0x1ddf43&&!(!_t(_0x3cb3b5=_0x3c439a[_0x4407('0xe8')])&&!function(_0x432e5d){return _0x432e5d[_0x4407('0x50')][_0x4407('0xaa')]==_0x432e5d[_0x4407('0x12f')]['nodeBefore']&&_0x432e5d[_0x4407('0x50')]['isAtEnd'];}(_0x3cb3b5)))_0x5a46bc[_0x4407('0x4f')](_0x13ea77),_0x1a105d=!0x0;else{if(!_0x433abd||!_0x433abd[_0x4407('0xf2')])continue;_0x531f51['add'](_0x433abd);}}}var _0x3cb3b5;return _0x531f51[_0x4407('0xd4')]>0x0&&(_0x1a105d=!!this['_joinWithAdjacentSuggestions'](_0x531f51)||_0x1a105d),_0x1a105d;}),_0x46b922[_0x4407('0x47')][_0x4407('0x32')]['registerPostFixer'](_0x1bbb14=>{let _0x471e28=!0x1;for(const _0x50cf98 of _0x46b922[_0x4407('0x47')][_0x4407('0x32')]['differ'][_0x4407('0x62')]()){if('insert'!=_0x50cf98[_0x4407('0x69')])continue;const _0x53143d=_0x50cf98['position'][_0x4407('0xdd')](_0x50cf98['length']);if(_0x53143d[_0x4407('0x1d')])for(const _0x5c9832 of this[_0x4407('0x30')][_0x4407('0x61')]()){if(_0x5c9832[_0x4407('0xdc')]||!_0x5c9832['isInContent'])continue;if(_0x4407('0x97')!=_0x5c9832[_0x4407('0x69')])continue;const _0x42bd3b=_0x5c9832['getFirstRange']();if(_0x42bd3b[_0x4407('0x50')][_0x4407('0xaa')]!=_0x42bd3b[_0x4407('0x12f')]['parent']&&_0x42bd3b[_0x4407('0x12f')]['isEqual'](_0x50cf98['position'])){const _0x1b56ef=_0x46b922[_0x4407('0x47')][_0x4407('0xec')](_0x42bd3b[_0x4407('0x50')],_0x53143d);_0x1bbb14[_0x4407('0x81')](_0x5c9832[_0x4407('0x25')](),{'range':_0x1b56ef}),_0x471e28=!0x0;}}}return _0x471e28;}),_0x46b922['model'][_0x4407('0x11e')]['on'](_0x4407('0xf9'),(_0xa39c36,_0x333114,_0x65c7b0)=>{if(null==_0x65c7b0){const {id:_0x49032c}=this[_0x4407('0x125')](_0x333114['name']),_0x2e81db=this[_0x4407('0x30')][_0x4407('0x6c')](_0x49032c);_0x2e81db&&_0x2e81db[_0x4407('0x130')](_0x333114['name']);}}),_0x46b922[_0x4407('0x47')][_0x4407('0x32')]['on'](_0x4407('0xc2'),()=>{const _0x23b194=Array[_0x4407('0x118')](_0x46b922['model']['document'][_0x4407('0x6d')][_0x4407('0x52')]())['filter'](_0x37b1c6=>_0x4407('0x13e')===this[_0x4407('0x125')](_0x37b1c6[_0x4407('0x132')])['group']);if(0x0===_0x23b194['length'])return;_0x23b194[_0x4407('0x22')]((_0x48d847,_0x21935e)=>{const _0x4ba885=_0x48d847[_0x4407('0x10d')]['oldRange'],_0x4f142d=_0x21935e[_0x4407('0x10d')][_0x4407('0x12')];return null===_0x4ba885&&null===_0x4f142d?0x0:null===_0x4ba885&&null!==_0x4f142d?-0x1:null!==_0x4ba885&&null===_0x4f142d?0x1:_0x4ba885[_0x4407('0x50')][_0x4407('0x131')](_0x4f142d[_0x4407('0x50')])?-0x1:0x1;});const _0x2f94d9=new Set(),_0x33bea8=new Set();for(const {name:_0x4ec41c,data:_0x57a399}of _0x23b194){const {id:_0x57939f}=this['_splitMarkerName'](_0x4ec41c);if(null===_0x57a399[_0x4407('0x12')]){const _0x3f4e58=this['_handleNewSuggestionMarker'](_0x4ec41c);_0x33bea8[_0x4407('0x17')](_0x3f4e58);}else{const _0x471d54=this['_suggestions']['get'](_0x57939f);null!==_0x57a399['newRange']||_0x471d54[_0x4407('0xf2')]?(_0x2f94d9[_0x4407('0x17')](_0x471d54[_0x4407('0x58')]),_0x33bea8[_0x4407('0x17')](_0x471d54)):this[_0x4407('0x8c')](_0x471d54);}}_0x33bea8[_0x4407('0xd4')]>0x0&&this[_0x4407('0x137')](_0x33bea8);for(const _0x28f336 of _0x2f94d9)this[_0x4407('0x100')](_0x4407('0x95'),_0x28f336);}),_0x46b922[_0x4407('0x47')]['on'](_0x4407('0xa7'),(_0x41e6c0,_0xcc6a76)=>{const _0x100948=_0xcc6a76[0x0];if(!this[_0x4407('0x30')]['size'])return;if(!_0x100948['isDocumentOperation'])return;if(_0x100948[_0x4407('0x105')][_0x4407('0x84')]||!_0x100948[_0x4407('0x105')]['isLocal'])return;let _0xaea0ac,_0x3f4c77;switch(_0x100948[_0x4407('0x69')]){case _0x4407('0x9c'):_0xaea0ac=_0x46b922[_0x4407('0x47')][_0x4407('0x9')](_0x100948['position']),_0x3f4c77=_0xaea0ac[_0x4407('0xdd')](_0x100948[_0x4407('0xf7')]);break;case _0x4407('0xa8'):_0xaea0ac=_0x46b922[_0x4407('0x47')]['createPositionAt'](_0x100948[_0x4407('0xad')]),_0x3f4c77=_0x46b922['model'][_0x4407('0x9')](_0x100948[_0x4407('0x37')]);break;case _0x4407('0xb6'):_0xaea0ac=_0x46b922[_0x4407('0x47')][_0x4407('0x9')](_0x100948[_0x4407('0x76')]),_0x3f4c77=_0xaea0ac['getShiftedBy'](_0x100948[_0x4407('0xf7')]);break;default:return;}const _0x42a832=_0x46b922[_0x4407('0x47')][_0x4407('0xec')](_0xaea0ac,_0x3f4c77);_0x46b922['model']['change'](()=>{for(const {suggestion:_0x566337,meta:_0x60e037}of this[_0x4407('0xe0')](_0x42a832)){if(_0x566337[_0x4407('0xdc')])continue;if('formatInline'==_0x566337[_0x4407('0x69')])continue;const _0x2e08ec=_0x566337[_0x4407('0x10d')]&&_0x566337[_0x4407('0x10d')][_0x4407('0x4a')];(_0x4407('0x97')!=_0x566337[_0x4407('0x69')]||'split'==_0x100948['type']&&!_0x2e08ec)&&(_0x60e037[_0x4407('0x9d')]||_0x4407('0x12e')==_0x566337[_0x4407('0x69')]&&_0x60e037['isOwn']||_0x566337['getFirstRange']()[_0x4407('0x19')](_0x42a832)&&this[_0x4407('0x103')](_0x566337,_0xaea0ac,_0x3f4c77));}});},{'priority':_0x4407('0x134')}),_0x46b922[_0x4407('0x47')]['on']('deleteContent',(_0x4894c4,_0x340e00)=>{const _0x500f69=_0x340e00[0x0],_0x17cfea=_0x340e00[0x1];if(_0x17cfea&&_0x17cfea[_0x4407('0x6b')])return;if(this[_0x4407('0x5e')])return;if(!this['trackChangesCommand'][_0x4407('0x55')])return;if(_0x500f69[_0x4407('0x111')])return;const _0x240a43=_0x46b922[_0x4407('0x47')][_0x4407('0xfd')],{start:_0x14ed95,end:_0x5cdad5}=_0x500f69[_0x4407('0x10a')](),_0x4935ff=_0x14ed95[_0x4407('0x3e')]&&_0x240a43[_0x4407('0xf4')](_0x14ed95['nodeAfter'])?null:_0x240a43['getNearestSelectionRange'](_0x14ed95,_0x4407('0x9b')),_0x984abb=_0x5cdad5['nodeBefore']&&_0x240a43['isLimit'](_0x5cdad5[_0x4407('0x98')])?null:_0x240a43[_0x4407('0x121')](_0x5cdad5,_0x4407('0x7d')),_0x395280=_0x46b922[_0x4407('0x47')]['createRange'](_0x4935ff?_0x4935ff['start']:_0x14ed95,_0x984abb?_0x984abb['end']:_0x5cdad5);_0x46b922[_0x4407('0x47')][_0x4407('0xf3')](_0x42f726=>{this['markDeletion'](_0x395280);const _0x25c9a6=_0x46b922[_0x4407('0x47')]['schema'][_0x4407('0x121')](_0x395280[_0x4407('0x50')]);_0x500f69['is'](_0x4407('0x94'))?_0x42f726[_0x4407('0x56')](_0x25c9a6):_0x500f69[_0x4407('0x129')](_0x25c9a6);}),_0x4894c4[_0x4407('0xeb')]();},{'priority':_0x493584[_0x4407('0xbf')]+0xa}),_0x46b922[_0x4407('0x47')]['on'](_0x4407('0x87'),(_0x28ffe3,_0x103d86)=>{const _0x27aff2=_0x103d86[_0x103d86['length']-0x1];_0x27aff2&&_0x27aff2['forceDefaultExecution']||this[_0x4407('0x5e')]||this['trackChangesCommand'][_0x4407('0x55')]&&(_0x46b922['model'][_0x4407('0xf3')](()=>{let _0x15861b=_0x46b922[_0x4407('0x47')]['insertContent'](_0x103d86[0x0],_0x103d86[0x1],_0x103d86[0x2],{'forceDefaultExecution':!0x0});if(!_0x15861b)return;_0x28ffe3['return']=_0x15861b[_0x4407('0xc9')]();const _0x43af9e=_0x15861b['end'][_0x4407('0x98')],_0x4e2681=_0x46b922[_0x4407('0x47')]['schema'];_0x43af9e&&_0x4e2681[_0x4407('0x60')](_0x43af9e)&&!_0x4e2681[_0x4407('0xf8')](_0x43af9e)&&(_0x15861b=_0x46b922[_0x4407('0x47')]['createRange'](_0x15861b[_0x4407('0x50')],_0x46b922['model'][_0x4407('0x9')](_0x43af9e,_0x4407('0x12f')))),this['markInsertion'](_0x15861b);}),_0x28ffe3['stop']());},{'priority':_0x4407('0x6')}),this[_0x4407('0xc6')]['commands'][_0x4407('0x17')](_0x4407('0xc1'),this['trackChangesCommand']),this[_0x4407('0xa2')](_0x4407('0xc1'));const _0x4d27e4=new _0x20fc77(_0x46b922,this[_0x4407('0x30')]);_0x46b922[_0x4407('0xb8')][_0x4407('0x17')](_0x4407('0x2b'),_0x4d27e4),this['enableCommand'](_0x4407('0x2b'));const _0x539264=new _0x35b2b4(_0x46b922,this[_0x4407('0x30')]);_0x46b922[_0x4407('0xb8')][_0x4407('0x17')]('discardSuggestion',_0x539264),this['enableCommand'](_0x4407('0x10f')),_0x46b922[_0x4407('0xb8')][_0x4407('0x17')](_0x4407('0xe3'),new _0x3de5e9(_0x46b922,_0x4d27e4,this[_0x4407('0x30')])),this[_0x4407('0xa2')](_0x4407('0xe3')),_0x46b922[_0x4407('0xb8')][_0x4407('0x17')](_0x4407('0xe6'),new _0x3de5e9(_0x46b922,_0x539264,this['_suggestions'])),this[_0x4407('0xa2')](_0x4407('0xe6')),_0x46b922[_0x4407('0xb8')]['add'](_0x4407('0x8f'),new _0x1f85f1(_0x46b922,_0x4d27e4,this[_0x4407('0x30')])),this[_0x4407('0xa2')](_0x4407('0x8f')),_0x46b922['commands'][_0x4407('0x17')](_0x4407('0x82'),new _0x1f85f1(_0x46b922,_0x539264,this['_suggestions'])),this[_0x4407('0xa2')](_0x4407('0x82'));const _0x44588a=_0x46b922[_0x4407('0x112')][_0x4407('0x6c')](_0x4407('0xd8'));this[_0x4407('0xcd')](_0x44588a,_0x4407('0x65'),(_0x2ed5c8,{threadId:_0x46c33b})=>{const _0x58bc8d=this[_0x4407('0x30')][_0x4407('0x6c')](_0x46c33b);_0x58bc8d&&_0x58bc8d[_0x4407('0xb4')]&&0x1===_0x58bc8d[_0x4407('0xb4')][_0x4407('0x68')]&&this[_0x4407('0x13a')](_0x46c33b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x44588a,'removeComment',(_0x59b848,{threadId:_0x5b520e})=>{const _0x24215a=this[_0x4407('0x30')][_0x4407('0x6c')](_0x5b520e);_0x24215a&&_0x24215a[_0x4407('0xb4')]&&!_0x24215a[_0x4407('0xb4')][_0x4407('0x68')]&&this[_0x4407('0x13a')](_0x5b520e,{'hasComments':!0x1});},{'priority':_0x4407('0x27')});}set[_0x4407('0x3a')](_0x1f4f81){if(this[_0x4407('0xd3')])throw new _0xd26818(_0x4407('0x139'),this);this[_0x4407('0xd3')]=_0x1f4f81;}get[_0x4407('0x3a')](){return this['_adapter'];}[_0x4407('0x31')]({skipNotAttached:_0x239c5f=!0x1,toJSON:_0x27f688=!0x1}={}){const _0x6083e=[];for(const _0x2a1e0f of this[_0x4407('0x30')][_0x4407('0x61')]())_0x239c5f&&!_0x2a1e0f['isInContent']||_0x6083e[_0x4407('0x77')](_0x2a1e0f);return _0x27f688?_0x6083e[_0x4407('0x8d')](_0x263d0a=>_0x263d0a[_0x4407('0xa9')]()):_0x6083e;}[_0x4407('0x0')](_0x21b242){const _0x51262f=this[_0x4407('0x30')]['get'](_0x21b242);if(!_0x51262f)throw new _0xd26818(_0x4407('0x102'),this);return _0x51262f;}[_0x4407('0x36')](_0x319757){return this[_0x4407('0x30')][_0x4407('0x115')](_0x319757);}[_0x4407('0xe7')](_0x163f4f){const {authorId:_0x412f70,id:_0x294d71,attributes:_0x450646}=_0x163f4f,[_0x4c96d8,_0x40872c]=_0x163f4f[_0x4407('0x69')][_0x4407('0xa8')](':'),_0x405e82=this['_suggestions'][_0x4407('0x6c')](_0x294d71)||this[_0x4407('0x59')](_0x4c96d8,_0x40872c,_0x294d71,_0x412f70,_0x450646);if(this[_0x4407('0xcf')](_0x405e82),this[_0x4407('0x92')](_0x405e82,_0x4c96d8,_0x40872c||null,_0x412f70),_0x405e82['createdAt']=_0x163f4f[_0x4407('0xd9')],_0x450646&&_0x450646['@external']){const _0x42742a=_0x450646[_0x4407('0x42')],_0x264430=this['_getExternalAuthor'](_0x42742a['authorName']);_0x405e82[_0x4407('0x1e')]=_0x42742a[_0x4407('0xd9')],_0x405e82[_0x4407('0xda')]=_0x264430,_0x405e82[_0x4407('0xd7')]=!0x0;}else _0x405e82['authoredAt']=_0x163f4f['createdAt'];switch(_0x163f4f[_0x4407('0x10d')]&&(_0x405e82[_0x4407('0x10d')]=_0x163f4f[_0x4407('0x10d')]),_0x163f4f[_0x4407('0x2e')]&&(_0x405e82[_0x4407('0x2e')]=_0x163f4f['attributes']),this[_0x4407('0xd3')]&&this[_0x4407('0xd3')][_0x4407('0x48')]||(_0x405e82[_0x4407('0x11d')]=!0x0),this[_0x4407('0x15')][_0x4407('0x6c')](_0x405e82)){case'notReady':this[_0x4407('0x15')][_0x4407('0xb9')](_0x405e82,_0x4407('0x88'));break;case _0x4407('0x104'):_0x405e82[_0x4407('0xf2')]?(this['_suggestionState'][_0x4407('0xb9')](_0x405e82,_0x4407('0x8')),this[_0x4407('0x100')]('suggestionLoaded',_0x405e82)):this[_0x4407('0x15')]['set'](_0x405e82,_0x4407('0x86'));}return _0x405e82;}[_0x4407('0x2b')](_0x5d0445){this[_0x4407('0x6b')](()=>{this[_0x4407('0xc6')]['model'][_0x4407('0xf3')](()=>{for(const _0x1291ce of _0x5d0445[_0x4407('0xaf')]())_0x1291ce[_0x4407('0x73')]();});});}['discardSuggestion'](_0x31e767){this[_0x4407('0x6b')](()=>{this[_0x4407('0xc6')][_0x4407('0x47')][_0x4407('0xf3')](()=>{for(const _0x53531c of _0x31e767[_0x4407('0xaf')]())_0x53531c[_0x4407('0xfc')]();});});}[_0x4407('0xa2')](_0x18a31b,_0x190e1b){const _0x184c80=this[_0x4407('0xc6')][_0x4407('0xb8')][_0x4407('0x6c')](_0x18a31b);if(!_0x184c80)throw new _0xd26818(_0x4407('0x91'),this,{'commandName':_0x18a31b});this['_enabledCommands']['add'](_0x184c80),_0x190e1b&&_0x184c80['on'](_0x4407('0x40'),(_0x582588,_0x4d9f6c)=>{this[_0x4407('0x24')][_0x4407('0x55')]&&(this['_isForcedDefaultExecutionBlock']||_0x4d9f6c[_0x4407('0x68')]>0x0&&_0x4d9f6c[_0x4d9f6c[_0x4407('0x68')]-0x1]&&_0x4d9f6c[_0x4d9f6c[_0x4407('0x68')]-0x1][_0x4407('0x6b')]||(_0x190e1b((..._0x565b16)=>_0x184c80['execute'](..._0x565b16,{'forceDefaultExecution':!0x0}),..._0x4d9f6c),_0x582588['stop']()));},{'priority':_0x4407('0x6')});}['forceDefaultExecution'](_0x447465){let _0x5b0130,_0x1bee18;const _0x1cd142=this[_0x4407('0x5e')];this[_0x4407('0x5e')]=!0x0;try{_0x5b0130=_0x447465();}catch(_0x189aad){_0x1bee18=_0x189aad;}return _0x1cd142||(this[_0x4407('0x5e')]=!0x1),_0x1bee18&&_0xd26818[_0x4407('0x3b')](_0x1bee18,this),_0x5b0130;}[_0x4407('0xd2')](_0x1f600d,_0x11b431=null,_0x357dae={}){if(_0x1f600d[_0x4407('0x111')])return null;const _0x4966df=this[_0x4407('0xc6')]['plugins'][_0x4407('0x6c')]('Users')['me'];for(const {suggestion:_0x501604,meta:_0x4b5459}of this[_0x4407('0xe0')](_0x1f600d,_0x4407('0x12e')))if(_0x4b5459[_0x4407('0x7c')]){if(!_0x4b5459[_0x4407('0x9f')]){if(!this['_mergeNestedSuggestions']&&_0x4b5459[_0x4407('0x9d')])continue;return _0x501604;}if(_0x11b431==_0x501604[_0x4407('0x18')]){const _0x1c52e0=_0x501604['getFirstRange']();return _0x1c52e0['start']['isEqual'](_0x1f600d[_0x4407('0x12f')])?this[_0x4407('0xbc')](_0x501604,this[_0x4407('0x11c')][_0x4407('0xec')](_0x1f600d[_0x4407('0x50')],_0x1c52e0[_0x4407('0x12f')])):this[_0x4407('0xbc')](_0x501604,this['_model']['createRange'](_0x1c52e0[_0x4407('0x50')],_0x1f600d[_0x4407('0x12f')])),_0x501604;}}const _0xb64b6=_0xd49a(),_0x5af2fe=_0x4966df['id'],_0x1b312d=_0x11b431?_0x4407('0x6e')+_0x11b431:'insertion',_0x19c4ec=this[_0x4407('0xc7')]({'id':_0xb64b6,'type':_0x1b312d,'createdAt':new Date(),'authorId':_0x5af2fe,'attributes':_0x357dae});return this[_0x4407('0xb7')](_0x1b312d,_0xb64b6,_0x5af2fe,_0x1f600d),_0x19c4ec;}[_0x4407('0x5')](_0xc354fc,_0x4d690f=_0x4407('0x126'),_0x3b0746={}){const _0xdf2a64=this[_0x4407('0xc6')][_0x4407('0x112')][_0x4407('0x6c')](_0x4407('0xb1'))['me'],_0x16299f=this[_0x4407('0x11f')][_0x4407('0xcb')]('insertion',_0x4d690f,_0x4407('0x16'));for(const _0x55ff4b of this['getSuggestions']())if(_0x55ff4b[_0x4407('0xda')]['id']==_0xdf2a64['id']&&_0x4407('0x12e')==_0x55ff4b[_0x4407('0x69')]&&_0x55ff4b[_0x4407('0x18')]==_0x4d690f&&(_0x16299f(_0x55ff4b[_0x4407('0xe4')](),_0xc354fc)||_0x16299f(_0xc354fc,_0x55ff4b[_0x4407('0xe4')]()))){for(const _0x5a5aeb of _0xc354fc)_0x55ff4b[_0x4407('0x5b')](_0x5a5aeb);return _0x55ff4b;}if(this[_0x4407('0x7e')])for(const _0x147433 of _0xc354fc)for(const {suggestion:_0x401e40,meta:_0x505516}of this[_0x4407('0xe0')](_0x147433,_0x4407('0x12e'))){if(!_0x505516[_0x4407('0x7c')])continue;let _0x4a8599=!0x0;for(const _0x375692 of _0x401e40[_0x4407('0xe4')]())for(const _0x146042 of _0xc354fc)if(!_0x375692[_0x4407('0x19')](_0x146042)){_0x4a8599=!0x1;break;}if(_0x4a8599)return _0x401e40;}const _0x42959a=_0xd49a(),_0x130095=_0xdf2a64['id'],_0x398949=_0x4407('0x6e')+_0x4d690f,_0xf007e4=this['_setSuggestionData']({'id':_0x42959a,'type':_0x398949,'createdAt':new Date(),'authorId':_0x130095,'attributes':_0x3b0746});for(const _0x17bb52 of _0xc354fc)this['_addSuggestionMarker'](_0x398949,_0x42959a,_0x130095,_0x17bb52,_0x30b61b[_0x4407('0x71')]());return _0xf007e4;}[_0x4407('0xd5')](_0xecd003,_0x29ebb8,_0x3cdd99=null,_0x471518={}){if(_0x3cdd99=_0x3cdd99||$t(_0x29ebb8),_0xecd003[_0x4407('0x111')])return null;if(_0x4407('0x13b')===this[_0x4407('0x8e')]){const _0x5d7677=this[_0x4407('0x11f')]['getSuggestionCallback'](_0x4407('0x28'),_0x3cdd99,'accept');return this[_0x4407('0x6b')](()=>_0x5d7677([_0xecd003],_0x29ebb8,_0x471518)),null;}const _0x1614c5=this['editor'][_0x4407('0x112')][_0x4407('0x6c')](_0x4407('0xb1'))['me'],_0x6675df=[];if(_0x4407('0x13')!==this[_0x4407('0x8e')])for(const {suggestion:_0x3d1ad3,meta:_0x1bf282}of this[_0x4407('0xe0')](_0xecd003,_0x4407('0x12e')))_0x1bf282['isOwn']&&!_0x1bf282[_0x4407('0x5c')]&&_0x6675df[_0x4407('0x77')](..._0x3d1ad3[_0x4407('0xe4')]());const _0x355f5f=function(_0xad2832,_0xfd06d3){const _0x439433=[];for(const _0x49f468 of _0xfd06d3){const _0x2f4f26=_0xad2832[_0x4407('0xf')](_0x49f468);_0x2f4f26&&_0x439433[_0x4407('0x77')](_0x2f4f26);}return _0x439433;}(_0xecd003,_0x6675df),_0xc3d06c=function(_0x1c869d,_0x59c2b0){const _0x2c6739=[_0x1c869d];for(const _0x118686 of _0x59c2b0){let _0x5bb1e0=0x0;for(;_0x5bb1e0<_0x2c6739[_0x4407('0x68')];){const _0x4f4542=_0x2c6739[_0x5bb1e0][_0x4407('0xd6')](_0x118686);_0x2c6739[_0x4407('0x101')](_0x5bb1e0,0x1,..._0x4f4542),_0x5bb1e0+=_0x4f4542[_0x4407('0x68')];}}return _0x2c6739;}(_0xecd003,_0x6675df);_0x355f5f[_0x4407('0x68')]&&this[_0x4407('0x11c')][_0x4407('0xf3')](()=>{for(const _0x381e1b of _0x355f5f){const _0x4fac3d=this[_0x4407('0x11f')][_0x4407('0xcb')]('formatInline',_0x3cdd99,_0x4407('0x73'));this[_0x4407('0x6b')](()=>_0x4fac3d([_0x381e1b],_0x29ebb8,_0x471518));}});for(const _0x3507a3 of _0xc3d06c){let _0x2971a5=null,_0x1c3028=_0x3507a3[_0x4407('0x50')],_0x9e2d53=_0x3507a3[_0x4407('0x12f')];for(const {suggestion:_0x37a377,meta:_0x4b6968}of this[_0x4407('0xe0')](_0x3507a3,'formatInline')){if(!_0x4b6968[_0x4407('0x7c')])continue;if(_0x37a377[_0x4407('0x18')]!=_0x3cdd99)continue;const _0x355847=_0x37a377[_0x4407('0x10a')]();if(_0x355847['containsRange'](_0x3507a3,!0x0))return null;_0x1c3028=_0x1c3028['isBefore'](_0x355847[_0x4407('0x50')])?_0x1c3028:_0x355847[_0x4407('0x50')],_0x9e2d53=_0x9e2d53['isAfter'](_0x355847[_0x4407('0x12f')])?_0x9e2d53:_0x355847[_0x4407('0x12f')],_0x2971a5?_0x355847[_0x4407('0x50')]['isBefore'](_0x2971a5[_0x4407('0x10a')]()[_0x4407('0x50')])?(_0x2971a5[_0x4407('0x43')](),_0x2971a5=_0x37a377):_0x37a377['removeMarkers']():_0x2971a5=_0x37a377;}const _0x5eb7ce=this[_0x4407('0x11c')]['createRange'](_0x1c3028,_0x9e2d53);if(_0x2971a5)this[_0x4407('0xbc')](_0x2971a5,_0x5eb7ce);else{const _0x995805=_0xd49a(),_0x5a1416=_0x1614c5['id'];this['_setSuggestionData']({'id':_0x995805,'type':'formatInline:'+_0x3cdd99,'data':_0x29ebb8,'createdAt':new Date(),'authorId':_0x5a1416,'attributes':_0x471518}),this[_0x4407('0xb7')](_0x4407('0xe2')+_0x3cdd99,_0x995805,_0x5a1416,_0x5eb7ce);}}return null;}[_0x4407('0x5f')](_0x57c364,_0x43f312,_0x1f2371=[],_0x2897af=null,_0x1667ca={}){_0x43f312['formatGroupId']||(_0x43f312['formatGroupId']=_0x43f312[_0x4407('0x10e')]),_0x43f312[_0x4407('0x4a')]=_0x57c364['is'](_0x4407('0xbb')),_0x2897af=_0x2897af||$t(_0x43f312);const _0x2bf401=_0x1f2371['map'](_0x281278=>Rt(_0x281278,this[_0x4407('0x11c')])),_0x6dfe01=_0x57c364['is'](_0x4407('0xbb'))?_0x57c364:Rt(_0x57c364,this[_0x4407('0x11c')]);if(_0x4407('0x13b')===this[_0x4407('0x8e')]){const _0x4fd9cf=this[_0x4407('0x11f')][_0x4407('0xcb')](_0x4407('0x97'),_0x2897af,_0x4407('0x73'));return this[_0x4407('0x6b')](()=>_0x4fd9cf([_0x6dfe01],_0x43f312,_0x1667ca)),null;}_0x2bf401['push'](_0x6dfe01);let _0x588359=!0x0;for(const _0x316038 of _0x2bf401)if(!this[_0x4407('0x133')](_0x316038)){_0x588359=!0x1;break;}if(_0x588359&&_0x4407('0x13')!==this[_0x4407('0x8e')]){const _0x5e010e=this[_0x4407('0x11f')][_0x4407('0xcb')](_0x4407('0x97'),_0x2897af,_0x4407('0x73'));return this['forceDefaultExecution'](()=>_0x5e010e([_0x6dfe01],_0x43f312,_0x1667ca)),null;}let _0x52b0f2=null,_0x5931a5=_0x6dfe01[_0x4407('0x50')],_0x1813b1=_0x6dfe01[_0x4407('0x12f')];for(const {suggestion:_0x134535,meta:_0xf743ca}of this['_findSuggestions'](_0x6dfe01,_0x4407('0x97'))){if(!_0xf743ca['isOwn']||_0xf743ca[_0x4407('0x9f')]||_0xf743ca['containsRangeInObject']||_0xf743ca[_0x4407('0x5c')])continue;if(_0x134535[_0x4407('0x10d')][_0x4407('0xc0')]!=_0x43f312[_0x4407('0xc0')])continue;const _0xc0ca49=_0x134535['getFirstRange']();if(_0x134535[_0x4407('0x18')]==_0x2897af){if(_0xc0ca49[_0x4407('0x19')](_0x6dfe01,!0x0))return null;_0x5931a5=_0x5931a5['isBefore'](_0xc0ca49[_0x4407('0x50')])?_0x5931a5:_0xc0ca49[_0x4407('0x50')],_0x1813b1=_0x1813b1[_0x4407('0xbd')](_0xc0ca49['end'])?_0x1813b1:_0xc0ca49['end'],_0x52b0f2?_0xc0ca49[_0x4407('0x50')][_0x4407('0x131')](_0x52b0f2[_0x4407('0x10a')]()['start'])?(_0x52b0f2[_0x4407('0x43')](),_0x52b0f2=_0x134535):_0x134535[_0x4407('0x43')]():_0x52b0f2=_0x134535;}else{const _0x3ece74=_0x6dfe01[_0x4407('0xf')](_0xc0ca49);this[_0x4407('0x10c')](_0x134535,_0x3ece74);}}const _0x498555=this[_0x4407('0xc6')][_0x4407('0x112')][_0x4407('0x6c')](_0x4407('0xb1'))['me'],_0x5f3e54=_0xd49a(),_0x1903af=_0x498555['id'];if(_0x52b0f2)return this[_0x4407('0xbc')](_0x52b0f2,this[_0x4407('0x11c')][_0x4407('0xec')](_0x5931a5,_0x1813b1)),_0x52b0f2;{const _0x36bf43=this[_0x4407('0xc7')]({'id':_0x5f3e54,'type':_0x4407('0xc')+_0x2897af,'data':_0x43f312,'createdAt':new Date(),'authorId':_0x1903af,'attributes':_0x1667ca});return this['_addSuggestionMarker'](_0x4407('0xc')+_0x2897af,_0x5f3e54,_0x1903af,this[_0x4407('0x11c')][_0x4407('0xec')](_0x5931a5,_0x1813b1)),_0x36bf43;}}[_0x4407('0xea')](_0x503c0c,_0x4d4a59,_0x575d4f=[],_0x48b829=null,_0x33bef8={}){_0x4d4a59['formatGroupId']||(_0x4d4a59[_0x4407('0xc0')]=_0x4d4a59[_0x4407('0x10e')]);const _0x21387c=_0x503c0c[0x0];_0x4d4a59['multipleBlocks']=_0x21387c['is'](_0x4407('0xbb')),_0x48b829=_0x48b829||$t(_0x4d4a59);const _0x9e0d11=_0x575d4f['map'](_0x520ea8=>Rt(_0x520ea8,this[_0x4407('0x11c')])),_0x3b30bf=_0x21387c['is'](_0x4407('0xbb'))?_0x503c0c:_0x503c0c['map'](_0x534b81=>Rt(_0x534b81,this['_model']));if(_0x4407('0x13b')===this['_trackFormatChanges']){const _0x370e71=this[_0x4407('0x11f')][_0x4407('0xcb')](_0x4407('0x97'),_0x48b829,'accept');return this[_0x4407('0x6b')](()=>_0x370e71(_0x3b30bf,_0x4d4a59,_0x33bef8)),null;}_0x9e0d11[_0x4407('0x77')](..._0x3b30bf);let _0x22d75b=!0x0;for(const _0x5e078a of _0x9e0d11)if(!this[_0x4407('0x133')](_0x5e078a)){_0x22d75b=!0x1;break;}if(_0x22d75b&&_0x4407('0x13')!==this['_trackFormatChanges']){const _0x51285d=this[_0x4407('0x11f')][_0x4407('0xcb')](_0x4407('0x97'),_0x48b829,_0x4407('0x73'));return this[_0x4407('0x6b')](()=>_0x51285d(_0x3b30bf,_0x4d4a59,_0x33bef8)),null;}const _0x286a9a=this['editor']['plugins'][_0x4407('0x6c')]('Users')['me'];for(const _0x413a33 of this[_0x4407('0x31')]()){if(_0x413a33[_0x4407('0xda')]['id']!=_0x286a9a['id'])continue;if('formatBlock'!=_0x413a33[_0x4407('0x69')]||_0x413a33[_0x4407('0x10d')][_0x4407('0xc0')]!=_0x4d4a59[_0x4407('0xc0')])continue;const _0xa5730a=_0x413a33[_0x4407('0x18')]==_0x48b829;for(let _0x1cd830=0x0;_0x1cd830<_0x3b30bf[_0x4407('0x68')];_0x1cd830++){const _0x7b5045=_0x3b30bf[_0x1cd830];for(const _0x329a6e of _0x413a33[_0x4407('0xc8')]()){const _0x474f43=_0x329a6e[_0x4407('0x12d')]();if(_0x7b5045[_0x4407('0x44')](_0x474f43)){_0xa5730a?(_0x3b30bf['splice'](_0x1cd830,0x1),_0x1cd830--):_0x413a33[_0x4407('0x4f')](_0x329a6e[_0x4407('0x132')]);break;}}}}if(0x0==_0x3b30bf[_0x4407('0x68')])return null;const _0x26be76=this[_0x4407('0x11f')][_0x4407('0xcb')](_0x4407('0x97'),_0x48b829,'join');for(const _0x18c806 of this[_0x4407('0x31')]())if(_0x18c806[_0x4407('0xda')]['id']==_0x286a9a['id']&&_0x4407('0x97')==_0x18c806[_0x4407('0x69')]&&_0x18c806['data'][_0x4407('0xc0')]==_0x4d4a59[_0x4407('0xc0')]&&_0x18c806[_0x4407('0x18')]==_0x48b829&&(_0x26be76(_0x18c806['getRanges'](),_0x3b30bf)||_0x26be76(_0x3b30bf,_0x18c806[_0x4407('0xe4')]()))){for(const _0x58ae34 of _0x3b30bf)_0x18c806['addRange'](_0x58ae34);return _0x18c806;}const _0x25ed86=_0xd49a(),_0x2e6311=_0x286a9a['id'],_0x35d3ad=_0x4407('0xc')+_0x48b829,_0x4ea942=this[_0x4407('0xc7')]({'id':_0x25ed86,'type':_0x35d3ad,'data':_0x4d4a59,'createdAt':new Date(),'authorId':_0x2e6311,'attributes':_0x33bef8});for(const _0x1035cc of _0x3b30bf)this[_0x4407('0xb7')](_0x35d3ad,_0x25ed86,_0x2e6311,_0x1035cc,_0x30b61b['getMultiRangeId']());return _0x4ea942;}['markDeletion'](_0x37ae53,_0x3a39e5=null,_0x482b6f={}){if(_0x37ae53[_0x4407('0x111')])return null;const _0x14bef4=this['editor']['plugins'][_0x4407('0x6c')](_0x4407('0xb1'))['me'],_0x1e8947=new _0xe7e90e(_0x37ae53['start'],_0x37ae53[_0x4407('0x12f')]);for(const {suggestion:_0x69291f,meta:_0x442ed6}of this[_0x4407('0xe0')](_0x1e8947,_0x4407('0x12e')))if(_0x442ed6['isOwn']&&!_0x442ed6['isNextTo']){if(_0x69291f[_0x4407('0xdc')]){const _0xe36a28=_0x69291f[_0x4407('0xe4')]()[_0x4407('0xef')](_0x463d38=>_0x4407('0x124')!=_0x463d38['root'][_0x4407('0xd1')]);_0xe36a28[_0x4407('0x122')](_0x248836=>_0x1e8947[_0x4407('0x19')](_0x248836,!0x0))&&_0x69291f['discard']();if(_0xe36a28[_0x4407('0x113')](_0xd2b188=>_0xd2b188[_0x4407('0x19')](_0x1e8947,!0x0))){const _0x5bb949=this[_0x4407('0x11f')][_0x4407('0xcb')](_0x4407('0x41'),_0x3a39e5,_0x4407('0x73'));return this['forceDefaultExecution'](()=>_0x5bb949([_0x1e8947],null,_0x482b6f)),null;}}else{const _0x2de733=_0x1e8947[_0x4407('0xf')](_0x69291f[_0x4407('0x10a')]());null!==_0x2de733&&_0x69291f['_onDiscard']([_0x2de733],null,_0x482b6f);}}if(_0x1e8947['detach'](),_0x1e8947[_0x4407('0x111')]||'$graveyard'==_0x1e8947[_0x4407('0x110')][_0x4407('0xd1')])return null;let _0x2ee047=null,_0x1fa435=_0x1e8947[_0x4407('0x50')],_0x2b0986=_0x1e8947[_0x4407('0x12f')];for(const {suggestion:_0xaedb0c,meta:_0x2e41bd}of this['_findSuggestions'](_0x1e8947,_0x4407('0x41')))if(_0x2e41bd[_0x4407('0x7c')]){if(_0xaedb0c[_0x4407('0xdc')]&&this[_0x4407('0x7e')]){let _0x4b60cb=!0x0;for(const _0x2686ed of _0xaedb0c[_0x4407('0xe4')]()){if(_0x2686ed[_0x4407('0x19')](_0x1e8947,!0x0))return _0xaedb0c;_0x1e8947[_0x4407('0x19')](_0x2686ed)||(_0x4b60cb=!0x1);}_0x4b60cb&&_0xaedb0c[_0x4407('0xfc')]();}else{const _0x406093=_0xaedb0c[_0x4407('0x10a')]();if(_0x406093[_0x4407('0x19')](_0x1e8947,!0x0)){if(!this[_0x4407('0x7e')]&&_0x2e41bd[_0x4407('0x9d')])continue;return _0xaedb0c;}_0x1fa435=_0x1fa435[_0x4407('0x131')](_0x406093[_0x4407('0x50')])?_0x1fa435:_0x406093[_0x4407('0x50')],_0x2b0986=_0x2b0986[_0x4407('0xbd')](_0x406093['end'])?_0x2b0986:_0x406093[_0x4407('0x12f')],_0x2ee047?_0x406093[_0x4407('0x50')][_0x4407('0x131')](_0x2ee047[_0x4407('0x10a')]()[_0x4407('0x50')])?(_0x2ee047[_0x4407('0x43')](),_0x2ee047=_0xaedb0c):_0xaedb0c['removeMarkers']():_0x2ee047=_0xaedb0c;}}if(_0x2ee047)return this[_0x4407('0xbc')](_0x2ee047,this[_0x4407('0x11c')][_0x4407('0xec')](_0x1fa435,_0x2b0986)),_0x2ee047;{const _0x2d8736=_0xd49a(),_0x15d73a=this[_0x4407('0x11c')][_0x4407('0xec')](_0x1fa435,_0x2b0986),_0x2a29e7=_0x14bef4['id'],_0x16aab0=_0x3a39e5?_0x4407('0x12c')+_0x3a39e5:'deletion',_0x3b5f73=this[_0x4407('0xc7')]({'id':_0x2d8736,'type':_0x16aab0,'createdAt':new Date(),'authorId':_0x2a29e7,'attributes':_0x482b6f});return this[_0x4407('0xb7')](_0x16aab0,_0x2d8736,_0x2a29e7,_0x15d73a),_0x3b5f73;}}[_0x4407('0x46')](_0xe0c959,_0x2dd69e='multi',_0x4f83b0={}){const _0x154eb0=this[_0x4407('0xc6')]['plugins']['get'](_0x4407('0xb1'))['me'],_0x79f756=_0xe0c959[_0x4407('0x8d')](_0x2bdf88=>new _0xe7e90e(_0x2bdf88['start'],_0x2bdf88['end'])),_0x410a4e=new Set();for(const _0xf35fb7 of _0x79f756)for(const {suggestion:_0x126210,meta:_0x3d957d}of this['_findSuggestions'](_0xf35fb7,_0x4407('0x12e')))_0x3d957d['isOwn']&&!_0x3d957d[_0x4407('0x9f')]&&_0x410a4e['add'](_0x126210);for(const _0x5b79fd of _0x410a4e)if(_0x5b79fd[_0x4407('0xdc')]){const _0x44696e=_0x5b79fd[_0x4407('0xe4')]();(!_0x5b79fd['attributes']||!_0x5b79fd[_0x4407('0x2e')][_0x4407('0x127')])&&(_0x44696e[_0x4407('0x122')](_0x32c2a=>_0x79f756[_0x4407('0x113')](_0x4a7cb7=>_0x4a7cb7[_0x4407('0x19')](_0x32c2a,!0x0)))&&_0x5b79fd[_0x4407('0xfc')]());if(_0x79f756[_0x4407('0x122')](_0x13e22e=>_0x44696e[_0x4407('0x113')](_0x23ebca=>_0x23ebca[_0x4407('0x19')](_0x13e22e,!0x0)))){const _0x3d0876=this[_0x4407('0x11f')]['getSuggestionCallback'](_0x4407('0x41'),_0x2dd69e,'accept');return this[_0x4407('0x6b')](()=>_0x3d0876(_0xe0c959,null,_0x4f83b0)),null;}}else{const _0x57dab7=_0x5b79fd[_0x4407('0x10a')]();_0x79f756[_0x4407('0x113')](_0x6bb6cb=>_0x6bb6cb[_0x4407('0x19')](_0x57dab7,!0x0))&&_0x5b79fd[_0x4407('0xfc')]();if(_0x79f756[_0x4407('0x122')](_0x49c16a=>_0x57dab7[_0x4407('0x19')](_0x49c16a,!0x0))){const _0xcdc836=this[_0x4407('0x11f')][_0x4407('0xcb')]('deletion',_0x2dd69e,_0x4407('0x73'));return this['forceDefaultExecution'](()=>_0xcdc836(_0x79f756,null,_0x4f83b0)),null;}}const _0x3d1c3b=this[_0x4407('0x11f')][_0x4407('0xcb')](_0x4407('0x41'),_0x2dd69e,'join');let _0x557009=null;for(const _0x315e48 of this[_0x4407('0x31')]())if(_0x315e48[_0x4407('0xda')]['id']==_0x154eb0['id']&&_0x315e48[_0x4407('0xf2')]&&'deletion'==_0x315e48[_0x4407('0x69')]&&_0x315e48[_0x4407('0x18')]==_0x2dd69e&&(_0x3d1c3b(_0x315e48[_0x4407('0xe4')](),_0x79f756)||_0x3d1c3b(_0x79f756,_0x315e48[_0x4407('0xe4')]()))){if(_0x557009){if(_0x315e48['commentThread']&&_0x315e48['commentThread'][_0x4407('0x68')])continue;for(const _0x1d7d2f of _0x315e48['getRanges']())_0x557009[_0x4407('0x5a')](_0x1d7d2f)||_0x557009[_0x4407('0x5b')](_0x1d7d2f);_0x315e48[_0x4407('0x43')]();}else{_0x557009=_0x315e48;for(const _0x3d8843 of _0x79f756)_0x315e48['isIntersectingWithRange'](_0x3d8843)||_0x315e48[_0x4407('0x5b')](_0x3d8843);}}if(_0x557009)return _0x557009;_0x410a4e[_0x4407('0xde')]();for(const _0x4dca0f of _0x79f756)for(const {suggestion:_0x465080,meta:_0x126639}of this[_0x4407('0xe0')](_0x4dca0f,_0x4407('0x41')))_0x126639[_0x4407('0x7c')]&&_0x410a4e[_0x4407('0x17')](_0x465080);for(const _0xbd64b0 of _0x410a4e){const _0x21db99=_0xbd64b0['getRanges']();if(!_0x4f83b0||!_0x4f83b0[_0x4407('0x127')]){if(_0x79f756[_0x4407('0x122')](_0x5833fa=>_0x21db99[_0x4407('0x113')](_0x408116=>_0x408116[_0x4407('0x19')](_0x5833fa,!0x0))))return _0xbd64b0;}(!_0xbd64b0[_0x4407('0x2e')]||!_0xbd64b0[_0x4407('0x2e')][_0x4407('0x127')])&&(_0x21db99['every'](_0x57623e=>_0x79f756[_0x4407('0x113')](_0x4be2f3=>_0x4be2f3[_0x4407('0x19')](_0x57623e,!0x0)))&&_0xbd64b0[_0x4407('0xfc')]());}const _0x169962=_0xd49a(),_0x1e0db4=_0x154eb0['id'],_0x1b2f80='deletion:'+_0x2dd69e,_0x3759b3=this[_0x4407('0xc7')]({'id':_0x169962,'type':_0x1b2f80,'createdAt':new Date(),'authorId':_0x1e0db4,'attributes':_0x4f83b0});for(const _0x3ae08f of _0x79f756)_0x3ae08f['detach'](),_0x3ae08f[_0x4407('0x111')]||_0x4407('0x124')==_0x3ae08f['root'][_0x4407('0xd1')]||this[_0x4407('0xb7')](_0x1b2f80,_0x169962,_0x1e0db4,_0x3ae08f,_0x30b61b[_0x4407('0x71')]());return _0x3759b3;}['_setSuggestionRange'](_0x217e21,_0x383902){const _0x4e3922=_0x217e21[_0x4407('0x25')]();this['_model'][_0x4407('0xf3')](_0x55c6f6=>{_0x55c6f6['updateMarker'](_0x4e3922,{'range':_0x383902});});}['_addThreadToSuggestion'](_0x4c3c2d){const _0x1250d5=_0x4c3c2d['id'],_0x1b7a25=this[_0x4407('0xc6')][_0x4407('0x135')][_0x4407('0x6c')](_0x4407('0x14'));this[_0x4407('0x11')][_0x4407('0x6a')](_0x1250d5)||this[_0x4407('0x11')][_0x4407('0xed')]({'channelId':_0x1b7a25,'threadId':_0x1250d5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xe10b4a=this[_0x4407('0x11')][_0x4407('0x64')](_0x1250d5);_0xe10b4a[_0x4407('0x12a')](_0x4407('0x29')),_0xe10b4a['isRemovable']=!0x1,_0x4c3c2d['commentThread']=_0xe10b4a;}['_checkSuggestionCorrectness'](_0x4e6777,_0x53448d,_0x1f2beb,_0x56ccd2){if(_0x4e6777['type']!=_0x53448d||_0x4e6777[_0x4407('0x18')]!=_0x1f2beb||_0x4e6777[_0x4407('0xa6')]['id']!=_0x56ccd2)throw this['editor']['enableReadOnlyMode'](_0x4407('0x38')),new _0xd26818(_0x4407('0x38'),this);}[_0x4407('0x10c')](_0x2bb29c,_0x4dd87a){const _0xc5fc4f=_0x2bb29c[_0x4407('0x10a')]();if(_0x4dd87a[_0x4407('0x44')](_0xc5fc4f))_0x2bb29c['removeMarkers']();else{if(_0xc5fc4f[_0x4407('0x19')](_0x4dd87a)){const _0x453ed4=this[_0x4407('0x11c')][_0x4407('0x9')](_0x4dd87a['start'][_0x4407('0x98')],_0x4407('0x12f'));this[_0x4407('0xbc')](_0x2bb29c,this['_model'][_0x4407('0xec')](_0xc5fc4f[_0x4407('0x50')],_0x453ed4));const _0x1b4862=_0xd49a(),_0x2d549d=_0x2bb29c['creator']['id'],_0x505264=_0x2bb29c[_0x4407('0x69')]+':'+_0x2bb29c[_0x4407('0x18')];this[_0x4407('0xc7')]({'id':_0x1b4862,'type':_0x505264,'createdAt':new Date(),'authorId':_0x2d549d,'data':_0x2bb29c[_0x4407('0x10d')],'attributes':_0x2bb29c[_0x4407('0x2e')]});const _0x20ca80=this[_0x4407('0x11c')][_0x4407('0x9')](_0x4dd87a['end'][_0x4407('0xaa')],_0x4407('0xdf')),_0x4d86f1=this[_0x4407('0x11c')][_0x4407('0xec')](_0x20ca80,_0xc5fc4f[_0x4407('0x12f')]);this[_0x4407('0xb7')](_0x505264,_0x1b4862,_0x2d549d,_0x4d86f1);}else{if(_0xc5fc4f[_0x4407('0x72')](_0x4dd87a['start'])){const _0x48d1e0=this['_model'][_0x4407('0x9')](_0x4dd87a[_0x4407('0x50')][_0x4407('0x98')],'end');this[_0x4407('0xbc')](_0x2bb29c,this[_0x4407('0x11c')][_0x4407('0xec')](_0xc5fc4f[_0x4407('0x50')],_0x48d1e0));}else{const _0x7bf208=this[_0x4407('0x11c')]['createPositionAt'](_0x4dd87a[_0x4407('0x12f')][_0x4407('0xaa')],_0x4407('0xdf'));this['_setSuggestionRange'](_0x2bb29c,this[_0x4407('0x11c')]['createRange'](_0x7bf208,_0xc5fc4f[_0x4407('0x12f')]));}}}}[_0x4407('0x133')](_0x48710c){for(const {suggestion:_0x3dc523,meta:_0x414eed}of this[_0x4407('0xe0')](_0x48710c,'insertion')){if(!_0x414eed['isOwn'])continue;const _0x1ded04=_0x3dc523[_0x4407('0xe4')]();for(const _0x3f0cf5 of _0x1ded04)if(!_0x48710c[_0x4407('0xd6')](_0x3f0cf5)[_0x4407('0x68')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x31ac9a){const _0x15a1f0=this['editor'][_0x4407('0x112')][_0x4407('0x6c')](_0x4407('0xb1'))[_0x4407('0x1a')](_0x31ac9a);if(!_0x15a1f0)throw new _0xd26818(_0x4407('0x12b'),this);return _0x15a1f0;}['_getExternalAuthor'](_0x5e22cb){const _0x43e1d0=this['editor'][_0x4407('0x112')]['get'](_0x4407('0xb1')),_0x20029b=_0x457b72('external:'+_0x5e22cb),_0x23bd90=_0x43e1d0[_0x4407('0x1a')](_0x20029b);return _0x23bd90||_0x43e1d0[_0x4407('0xa4')]({'id':_0x20029b,'name':_0x5e22cb});}['_createSuggestion'](_0x602269,_0x3ececf,_0x5669eb,_0x55d2ba,_0x2ca36f){const _0x3a0991=this[_0x4407('0x116')](_0x55d2ba),_0xc7067=this[_0x4407('0x11f')]['buildSuggestion'](_0x602269,_0x3ececf,_0x5669eb,_0x3a0991,_0x2ca36f,_0x209d41=>this[_0x4407('0x13a')](_0x5669eb,{'attributes':_0x209d41}));return this[_0x4407('0xcd')](_0xc7067,_0x4407('0x73'),()=>{this[_0x4407('0x13a')](_0x5669eb,{'state':_0x4407('0x96')});},{'priority':_0x4407('0x6')}),this[_0x4407('0xcd')](_0xc7067,_0x4407('0xfc'),()=>{this[_0x4407('0x13a')](_0x5669eb,{'state':_0x4407('0x1')});},{'priority':_0x4407('0x6')}),this[_0x4407('0x30')]['set'](_0x5669eb,_0xc7067),this['_suggestionState'][_0x4407('0xb9')](_0xc7067,'notReady'),_0xc7067;}['_splitMarkerName'](_0x42d2c6){const _0x554585=_0x42d2c6[_0x4407('0xa8')](':');return{'group':_0x554585[0x0],'type':_0x554585[0x1],'subType':_0x554585[_0x4407('0x68')]>=0x5?_0x554585[0x2]:null,'id':_0x554585['length']<0x5?_0x554585[0x2]:_0x554585[0x3],'authorId':_0x554585[_0x4407('0x68')]<0x5?_0x554585[0x3]:_0x554585[0x4],'markerCount':0x6==_0x554585[_0x4407('0x68')]?_0x554585[0x5]:null};}['_breakSuggestionMarker'](_0x2399ca,_0x19a065,_0x21a7ea){const _0x51f3cf=_0x2399ca['getFirstRange'](),_0x4571c0=_0x51f3cf['start'],_0x53ed82=_0x51f3cf[_0x4407('0x12f')];this[_0x4407('0xbc')](_0x2399ca,this[_0x4407('0x11c')]['createRange'](_0x4571c0,_0x19a065));const _0xb44ca7=_0xd49a(),_0x31fbe7=_0x2399ca[_0x4407('0xa6')]['id'],_0x21860a=_0x2399ca[_0x4407('0x69')]+(_0x2399ca['subType']?':'+_0x2399ca['subType']:'');this['_setSuggestionData']({'id':_0xb44ca7,'type':_0x21860a,'createdAt':new Date(),'authorId':_0x31fbe7,'originalSuggestionId':_0x2399ca['id'],'attributes':_0x2399ca[_0x4407('0x2e')],'data':_0x2399ca[_0x4407('0x10d')]}),'formatBlock'==_0x2399ca[_0x4407('0x69')]&&(_0x21a7ea=this['_model'][_0x4407('0x90')](_0x21a7ea[_0x4407('0xaa')])),this[_0x4407('0xb7')](_0x21860a,_0xb44ca7,_0x31fbe7,this['_model']['createRange'](_0x21a7ea,_0x53ed82));}[_0x4407('0xe0')](_0x1ae9d2,_0xd4851=null){const _0x4d6e60=[],_0x2796ef=this['_model'][_0x4407('0xfd')],_0x71ce55=this[_0x4407('0xc6')][_0x4407('0x112')][_0x4407('0x6c')](_0x4407('0xb1'))['me'];for(const _0xb17bc3 of this['getSuggestions']())if(_0xb17bc3[_0x4407('0xf2')]&&(!_0xd4851||_0xb17bc3[_0x4407('0x69')]==_0xd4851))for(const _0x1f0393 of _0xb17bc3[_0x4407('0xe4')]()){const _0x2cedde=_0x1ae9d2['start'][_0x4407('0x44')](_0x1f0393['end'])||_0x1ae9d2[_0x4407('0x12f')]['isEqual'](_0x1f0393[_0x4407('0x50')]);if(_0x2cedde||_0x1ae9d2[_0x4407('0xf')](_0x1f0393)){const _0xee734c=_0x1ae9d2[_0x4407('0x19')](_0x1f0393)&&Bt(_0x2796ef,_0x1f0393['start'],_0x1ae9d2),_0x8867a7=_0x1f0393[_0x4407('0x19')](_0x1ae9d2)&&Bt(_0x2796ef,_0x1ae9d2['start'],_0x1f0393);_0x4d6e60[_0x4407('0x77')]({'suggestion':_0xb17bc3,'meta':{'isOwn':_0x71ce55==_0xb17bc3['author'],'isNextTo':_0x2cedde,'isInsideObject':_0xee734c,'containsRangeInObject':_0x8867a7}});break;}}return _0x4d6e60;}[_0x4407('0xb7')](_0x11c568,_0x12a558,_0x56a44c,_0x4e3213,_0x376ce7){this[_0x4407('0x11c')][_0x4407('0xf3')](_0x1ce976=>{let _0x41bed0=_0x4407('0xce')+_0x11c568+':'+_0x12a558+':'+_0x56a44c;_0x376ce7&&(_0x41bed0=_0x41bed0+':'+_0x376ce7),_0x1ce976[_0x4407('0xf6')](_0x41bed0,{'range':_0x4e3213,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4407('0x8c')](_0x271e24){const _0x1ddc3e=_0x271e24['previous'],_0x5acfbf=_0x271e24[_0x4407('0x49')];_0x271e24[_0x4407('0x117')]=null,null!=_0x1ddc3e&&(_0x1ddc3e[_0x4407('0x49')]=null),_0x271e24[_0x4407('0x49')]=null,null!=_0x5acfbf&&(_0x5acfbf[_0x4407('0x117')]=null),'ready'==this[_0x4407('0x15')]['get'](_0x271e24)&&(this[_0x4407('0x15')]['set'](_0x271e24,_0x4407('0x86')),this[_0x4407('0x100')](_0x4407('0x21'),_0x271e24,_0x1ddc3e,_0x5acfbf));}[_0x4407('0xc7')](_0x19f4df){const _0x120cd0=_0x19f4df['id'],_0x39dcee=this[_0x4407('0xe7')](_0x19f4df);if(this[_0x4407('0xd3')]&&this[_0x4407('0xd3')][_0x4407('0x48')]){const _0x17eafa=this[_0x4407('0xc6')][_0x4407('0x112')][_0x4407('0x6c')](_0x4407('0xe1')),_0x16f91c=_0x39dcee[_0x4407('0x10b')],_0x46d6e3=_0x39dcee[_0x4407('0x18')]?_0x39dcee[_0x4407('0x69')]+':'+_0x39dcee[_0x4407('0x18')]:_0x39dcee['type'],_0x53e9eb=this['editor']['locale'],_0x5a606c=_0x17eafa['add'](_0x1042ed(_0x53e9eb,_0x4407('0x2d'))),_0x3a371d={'id':_0x120cd0,'type':_0x46d6e3,'hasComments':_0x16f91c,'data':_0x19f4df[_0x4407('0x10d')]||null,'originalSuggestionId':_0x19f4df['originalSuggestionId']||null,'attributes':_0x39dcee[_0x4407('0x2e')]};this[_0x4407('0xd3')]['addSuggestion'](_0x3a371d)['then'](_0x75e764=>{_0x39dcee[_0x4407('0x11d')]=!0x0,_0x17eafa[_0x4407('0x1b')](_0x5a606c),_0x75e764&&_0x75e764['createdAt']&&(this['_suggestions'][_0x4407('0x6c')](_0x120cd0)['createdAt']=_0x75e764['createdAt']);})[_0x4407('0x35')](_0x2f54cd=>{throw _0x3fd0ac(_0x4407('0x13c')),this[_0x4407('0xc6')]['model'][_0x4407('0x34')]({'isUndoable':!0x1},()=>{_0x39dcee[_0x4407('0xfc')]();}),_0x39dcee['stopListening'](),this['_suggestions']['delete'](_0x39dcee['id']),this['_suggestionState'][_0x4407('0x45')](_0x39dcee),_0x2f54cd;});}return _0x39dcee;}[_0x4407('0x13a')](_0x47999f,_0x149557){const _0x4e4303=this[_0x4407('0xc6')][_0x4407('0x112')][_0x4407('0x6c')](_0x4407('0xe1')),_0x4aa3f6=this[_0x4407('0x0')](_0x47999f);if(this[_0x4407('0xd3')]&&this[_0x4407('0xd3')][_0x4407('0x120')]){if(_0x4aa3f6[_0x4407('0x11d')]){const _0x3ab420=_0x4e4303[_0x4407('0x17')](_0x1042ed(this[_0x4407('0xc6')][_0x4407('0xbe')],_0x4407('0x2d')));this['_adapter']['updateSuggestion'](_0x47999f,_0x149557)[_0x4407('0x13f')](()=>{_0x4e4303[_0x4407('0x1b')](_0x3ab420);});}else _0x4aa3f6['on'](_0x4407('0x108'),()=>{this[_0x4407('0x13a')](_0x47999f,_0x149557);});}}[_0x4407('0x99')](_0x45d868){if(!this[_0x4407('0xd3')]||!this[_0x4407('0xd3')][_0x4407('0x0')])throw new _0xd26818('track-changes-adapter-missing-getsuggestion',this);return this['_adapter'][_0x4407('0x0')](_0x45d868);}[_0x4407('0x79')](_0x4221d3){const {id:_0x1fb928,type:_0x205388,subType:_0x1c0c88,authorId:_0x1b78c4}=this[_0x4407('0x125')](_0x4221d3),_0x253737=this[_0x4407('0x30')][_0x4407('0x6c')](_0x1fb928)||this[_0x4407('0x59')](_0x205388,_0x1c0c88,_0x1fb928,_0x1b78c4,{});switch(this[_0x4407('0x92')](_0x253737,_0x205388,_0x1c0c88,_0x1b78c4),this['_suggestionState'][_0x4407('0x6c')](_0x253737)){case'notReady':this[_0x4407('0x99')](_0x1fb928)[_0x4407('0x13f')](_0x38d4c8=>{let _0x2d3b31=Promise[_0x4407('0xff')]();_0x38d4c8[_0x4407('0x10b')]&&(_0x2d3b31=this[_0x4407('0x11')][_0x4407('0x63')]({'channelId':this[_0x4407('0xc6')][_0x4407('0x135')][_0x4407('0x6c')](_0x4407('0x14')),'threadId':_0x1fb928})),_0x2d3b31[_0x4407('0x13f')](()=>{this[_0x4407('0xe7')](_0x38d4c8)['_saved']=!0x0;});}),this['_suggestionState'][_0x4407('0xb9')](_0x253737,'markerReady');break;case _0x4407('0x86'):this[_0x4407('0x13a')](_0x1fb928,{'state':'open'});case'dataReady':this[_0x4407('0x15')][_0x4407('0xb9')](_0x253737,_0x4407('0x8')),this[_0x4407('0x100')](_0x4407('0x114'),_0x253737);break;case _0x4407('0x8'):this[_0x4407('0x100')](_0x4407('0x95'),_0x253737);}return _0x253737[_0x4407('0x130')](_0x4221d3),_0x253737;}[_0x4407('0x137')](_0x50e2d1){const _0x54e379=Array['from'](_0x50e2d1)[_0x4407('0xef')](_0x43d8e9=>!_0x43d8e9[_0x4407('0xdc')]),_0x1e3351=this[_0x4407('0x31')]({'skipNotAttached':!0x0})[_0x4407('0xef')](_0x2fe79e=>!_0x2fe79e[_0x4407('0xdc')]),_0x3bc545=_0x1e3351[_0x4407('0xef')](_0xe5580d=>!_0x50e2d1['has'](_0xe5580d)),_0x11a3bb=new Map(_0x1e3351[_0x4407('0x8d')](_0x2d9c3f=>[_0x2d9c3f,this[_0x4407('0x11f')][_0x4407('0xcb')](_0x2d9c3f[_0x4407('0x69')],_0x2d9c3f[_0x4407('0x18')],_0x4407('0x4b'))])),_0x4b4fc7=new Map(_0x1e3351[_0x4407('0x8d')](_0x3657c8=>[_0x3657c8,_0x3657c8['getFirstRange']()])),_0x4e0e77=new Set(),_0x447942=new Set();for(let _0x5955cb=0x0;_0x5955cb<_0x54e379[_0x4407('0x68')];_0x5955cb++)_0x2c15ce(_0x54e379[_0x5955cb],_0x54e379,_0x5955cb+0x1);for(let _0x8af959=0x0;_0x8af959<_0x54e379['length'];_0x8af959++)_0x2c15ce(_0x54e379[_0x8af959],_0x3bc545,0x0);for(let _0x136492=0x0;_0x136492<_0x54e379[_0x4407('0x68')];_0x136492++){const _0x44e714=_0x54e379[_0x136492];!_0x447942[_0x4407('0x115')](_0x44e714)&&_0x44e714['previous']&&(_0x44e714[_0x4407('0x117')]['next']===_0x44e714&&(_0x44e714[_0x4407('0x117')]['next']=null),_0x44e714[_0x4407('0x117')]=null),!_0x4e0e77[_0x4407('0x115')](_0x44e714)&&_0x44e714['next']&&(_0x44e714[_0x4407('0x49')][_0x4407('0x117')]===_0x44e714&&(_0x44e714[_0x4407('0x49')]['previous']=null),_0x44e714[_0x4407('0x49')]=null);}function _0x2c15ce(_0x49dec1,_0x1d8f35,_0x49f5a3){for(let _0x56673c=_0x49f5a3;_0x56673c<_0x1d8f35[_0x4407('0x68')];_0x56673c++){const _0x2ee7fe=_0x1ab603(_0x49dec1,_0x1d8f35[_0x56673c]);_0x2ee7fe&&(_0x2ee7fe[0x0][_0x4407('0x49')]=_0x2ee7fe[0x1],_0x2ee7fe[0x1][_0x4407('0x117')]=_0x2ee7fe[0x0],_0x4e0e77[_0x4407('0x17')](_0x2ee7fe[0x0]),_0x447942[_0x4407('0x17')](_0x2ee7fe[0x1]));}}function _0x1ab603(_0x4fc0a0,_0x42ad85){if(_0x4fc0a0[_0x4407('0xda')]['id']!==_0x42ad85[_0x4407('0xda')]['id'])return null;const _0x143b98=_0x11a3bb['get'](_0x4fc0a0)(_0x4fc0a0,_0x42ad85,_0x4b4fc7[_0x4407('0x6c')](_0x4fc0a0),_0x4b4fc7[_0x4407('0x6c')](_0x42ad85));if(!_0x143b98)return null;return _0x11a3bb['get'](_0x42ad85)(_0x4fc0a0,_0x42ad85,_0x4b4fc7['get'](_0x4fc0a0),_0x4b4fc7[_0x4407('0x6c')](_0x42ad85))?_0x143b98[0x1]['commentThread']&&_0x143b98[0x1][_0x4407('0xb4')][_0x4407('0x68')]?null:_0x143b98:null;}}[_0x4407('0x107')](_0x546c8c){const _0x599905=Array[_0x4407('0x118')](_0x546c8c),_0x21f9aa=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1f5b1d=_0x21f9aa[_0x4407('0xef')](_0xaf1e4e=>!_0x546c8c['has'](_0xaf1e4e)),_0x3d0e35=new Map(_0x599905['map'](_0x3505bb=>[_0x3505bb,this[_0x4407('0x11f')][_0x4407('0xcb')](_0x3505bb[_0x4407('0x69')],_0x3505bb['subType'],_0x4407('0x16'))])),_0x52478b=new Map(_0x21f9aa[_0x4407('0x8d')](_0x16f10d=>[_0x16f10d,_0x16f10d[_0x4407('0xe4')]()]));for(let _0x294830=0x0;_0x294830<_0x599905[_0x4407('0x68')];_0x294830++){if(_0x329e0b(this,_0x599905[_0x294830],_0x599905,_0x294830+0x1))return!0x0;}for(let _0x39e788=0x0;_0x39e788<_0x599905['length'];_0x39e788++){if(_0x329e0b(this,_0x599905[_0x39e788],_0x1f5b1d,0x0))return!0x0;}return!0x1;function _0x329e0b(_0x176a11,_0x8a107d,_0xd7e826,_0x149a78){for(let _0x407cff=_0x149a78;_0x407cff<_0xd7e826[_0x4407('0x68')];_0x407cff++){const _0x225bbe=_0xd7e826[_0x407cff];if(_0x225bbe[_0x4407('0x69')]!==_0x8a107d[_0x4407('0x69')]||_0x225bbe['author']['id']!==_0x8a107d[_0x4407('0xda')]['id']||_0x225bbe[_0x4407('0x18')]!==_0x8a107d['subType'])continue;const _0x5946a5=_0x3d0e35[_0x4407('0x6c')](_0x8a107d),_0x48fcd9=_0x52478b[_0x4407('0x6c')](_0x8a107d),_0x322a13=_0x52478b[_0x4407('0x6c')](_0x225bbe),_0x1799b2=_0x8a107d[_0x4407('0xb4')]&&_0x8a107d['commentThread']['length'],_0x502449=_0x225bbe[_0x4407('0xb4')]&&_0x225bbe[_0x4407('0xb4')][_0x4407('0x68')];if(!_0x1799b2&&_0x5946a5(_0x322a13,_0x48fcd9))return _0x176a11['_joinSuggestions'](_0x225bbe,_0x8a107d),_0x52478b[_0x4407('0x45')](_0x8a107d),!0x0;if(!_0x502449&&_0x5946a5(_0x48fcd9,_0x322a13))return _0x176a11[_0x4407('0x3d')](_0x8a107d,_0x225bbe),_0x52478b[_0x4407('0x45')](_0x225bbe),!0x0;}return!0x1;}}[_0x4407('0x3d')](_0x2c5a8e,_0x2c8392){if(_0x2c5a8e['isMultiRange'])for(const _0x3c64f7 of _0x2c8392['getRanges']())_0x2c5a8e[_0x4407('0x5b')](_0x3c64f7);else{const _0x1dd543=_0x2c8392[_0x4407('0x10a')]()[_0x4407('0x12f')];this[_0x4407('0xbc')](_0x2c5a8e,this[_0x4407('0x11c')][_0x4407('0xec')](_0x2c5a8e[_0x4407('0x10a')]()[_0x4407('0x50')],_0x1dd543));}_0x2c8392['removeMarkers']();}}class Dt{constructor(_0x225360){this[_0x4407('0x138')]=_0x225360,this[_0x4407('0x11c')]=_0x225360[_0x4407('0x47')],this[_0x4407('0xa5')]=new Map(),this[_0x4407('0x128')]=new Map(),this[_0x4407('0x9e')]();}[_0x4407('0xab')](_0x34e034,_0x25b398,_0x56d857,_0x23dc45,_0x32a369,_0x99c6a4){return new _0x30b61b(this[_0x4407('0x11c')],{'type':_0x34e034,'subType':_0x25b398,'id':_0x56d857,'author':_0x23dc45,'creator':_0x23dc45,'attributes':_0x32a369,'onAttributesChange':_0x99c6a4,'onAccept':(..._0x2c29be)=>this[_0x4407('0xcb')](_0x34e034,_0x25b398,_0x4407('0x73'))(..._0x2c29be),'onDiscard':(..._0x163c2d)=>this['getSuggestionCallback'](_0x34e034,_0x25b398,_0x4407('0xfc'))(..._0x163c2d)});}[_0x4407('0x2f')](_0x204a67,_0x8ac35f,_0x2e3d21,_0x54afdc){const _0x58dc08=_0x204a67+':'+_0x8ac35f+':'+_0x2e3d21;this[_0x4407('0xa5')]['set'](_0x58dc08,_0x54afdc);}[_0x4407('0xcb')](_0x2c9b70,_0x13cc77,_0x381bcb){const _0x53d2dd=_0x2c9b70+':'+_0x13cc77+':'+_0x381bcb;return this['_customCallbacks'][_0x4407('0x6c')](_0x53d2dd)||this['_defaultCallbacks'][_0x4407('0x6c')](_0x2c9b70+':'+_0x381bcb);}[_0x4407('0x9e')](){const _0x464577=()=>{},_0x7167de=_0x4d5f46=>{_0x4d5f46[_0x4407('0x22')]((_0x38a212,_0x4e0590)=>_0x38a212[_0x4407('0x50')][_0x4407('0x131')](_0x4e0590[_0x4407('0x50')])?0x1:-0x1),this[_0x4407('0x11c')]['change'](_0x2959e4=>{for(const _0x504a64 of _0x4d5f46){let _0x371b55;_0x371b55=_0x504a64[_0x4407('0x12f')][_0x4407('0x1d')]&&_0x504a64['end'][_0x4407('0xaa')]==_0x504a64[_0x4407('0x50')][_0x4407('0x3e')]?_0x2959e4[_0x4407('0x1c')](_0x504a64[_0x4407('0x50')][_0x4407('0x3e')],'on'):_0x2959e4[_0x4407('0x1c')](_0x504a64),this['_model'][_0x4407('0x33')](_0x371b55,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2763c0=(_0x122454,_0x12ac00)=>{this[_0x4407('0x11c')][_0x4407('0xf3')](_0x275bde=>{const {commandName:_0x2476ae,commandParams:_0x57161f=[]}=_0x12ac00,_0x38e7c3=_0x122454[_0x4407('0x8d')](_0xe072c7=>(_t(_0xe072c7)&&(_0xe072c7=this[_0x4407('0x11c')][_0x4407('0xec')](_0xe072c7['end'])),_0xe072c7))[_0x4407('0xef')](_0x336087=>'$graveyard'!==_0x336087[_0x4407('0x110')][_0x4407('0xd1')]);if(_0x38e7c3[_0x4407('0x68')]<0x1)return;const _0x3a3a5f=Array[_0x4407('0x118')](this[_0x4407('0x11c')][_0x4407('0x32')][_0x4407('0xa0')][_0x4407('0xe4')]())[_0x4407('0x8d')](_0x575d48=>_0xe7e90e[_0x4407('0xb3')](_0x575d48));_0x275bde[_0x4407('0x56')](_0x38e7c3);for(const _0x3ee840 of this[_0x4407('0x138')][_0x4407('0xb8')]['commands']())_0x3ee840['refresh']();_0x57161f[_0x4407('0x77')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x4407('0x40')](_0x2476ae,..._0x57161f);const _0x4f6bb5=_0x3a3a5f[_0x4407('0xef')](_0x5bddfc=>_0x4407('0x124')!=_0x5bddfc['root'][_0x4407('0xd1')]);_0x4f6bb5[_0x4407('0x68')]>0x0&&_0x275bde[_0x4407('0x56')](_0x4f6bb5);for(const _0x30b029 of _0x3a3a5f)_0x30b029[_0x4407('0xdb')]();});},_0x5da5b4=(_0xfb7391,_0x2f79f1)=>0x1==_0xfb7391[_0x4407('0x68')]&&0x1==_0x2f79f1['length']&&_0xfb7391[0x0]['end'][_0x4407('0x44')](_0x2f79f1[0x0][_0x4407('0x50')]),_0x26779e=(_0x397549,_0x214ae2,_0x173b4f,_0x216f25)=>xt(_0x397549,_0x214ae2,_0x173b4f,_0x216f25,this[_0x4407('0x11c')])?[_0x397549,_0x214ae2]:xt(_0x214ae2,_0x397549,_0x216f25,_0x173b4f,this[_0x4407('0x11c')])?[_0x214ae2,_0x397549]:null;this[_0x4407('0x128')]['set'](_0x4407('0x119'),_0x464577),this[_0x4407('0x128')][_0x4407('0xb9')](_0x4407('0xd0'),_0x7167de),this[_0x4407('0x128')][_0x4407('0xb9')](_0x4407('0xfe'),_0x5da5b4),this['_defaultCallbacks']['set']('insertion:chain',_0x26779e),this[_0x4407('0x128')]['set']('deletion:accept',_0x7167de),this[_0x4407('0x128')][_0x4407('0xb9')]('deletion:discard',_0x464577),this[_0x4407('0x128')][_0x4407('0xb9')]('deletion:join',_0x5da5b4),this[_0x4407('0x128')][_0x4407('0xb9')](_0x4407('0x80'),_0x26779e),this[_0x4407('0x128')][_0x4407('0xb9')](_0x4407('0x4c'),_0x2763c0),this['_defaultCallbacks'][_0x4407('0xb9')](_0x4407('0x9a'),_0x464577),this['_defaultCallbacks']['set']('formatInline:join',_0x5da5b4),this[_0x4407('0x128')]['set'](_0x4407('0xb'),_0x464577),this[_0x4407('0x128')][_0x4407('0xb9')](_0x4407('0x57'),_0x2763c0),this[_0x4407('0x128')]['set'](_0x4407('0x13d'),_0x464577),this[_0x4407('0x128')][_0x4407('0xb9')](_0x4407('0xe5'),_0x5da5b4),this[_0x4407('0x128')][_0x4407('0xb9')](_0x4407('0x136'),_0x464577);}}function Bt(_0x2fc579,_0x101c18,_0x4b883a){for(const _0x246bed of _0x101c18['parent'][_0x4407('0x3c')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x246bed[_0x4407('0x110')]==_0x246bed)return!0x1;if(!_0x4b883a['containsItem'](_0x246bed))return!0x1;if(_0x2fc579[_0x4407('0xf8')](_0x246bed)||_0x2fc579[_0x4407('0xf4')](_0x246bed))return!0x0;}return!0x1;}function _t(_0x1f596a){return _0x1f596a[_0x4407('0x12f')][_0x4407('0xaa')]==_0x1f596a[_0x4407('0x50')]['nodeAfter']&&_0x1f596a[_0x4407('0x12f')][_0x4407('0x54')];}function Mt(_0x3814c9,_0x23ceef,_0x14f924,_0x4aef2a){const _0x425d6b=_0x41c31f=>!_0x41c31f[_0x4407('0xb5')]['is'](_0x4407('0xcc'))&&!_0x4aef2a[_0x4407('0xf8')](_0x41c31f['item']),_0x106a22=_0x3814c9['start'][_0x4407('0x39')](_0x425d6b),_0x119757=_0x3814c9[_0x4407('0x12f')]['getLastMatchingPosition'](_0x425d6b,{'direction':_0x4407('0x7d')});return(!_0x3814c9[_0x4407('0x50')][_0x4407('0x44')](_0x106a22)||!_0x3814c9[_0x4407('0x12f')]['isEqual'](_0x119757))&&(_0x106a22[_0x4407('0x131')](_0x119757)?_0x14f924[_0x4407('0x81')](_0x23ceef,{'range':_0x14f924[_0x4407('0xec')](_0x106a22,_0x119757)}):_0x14f924['removeMarker'](_0x23ceef),!0x0);}function $t(_0x5f03ff){return _0x457b72(_0x5f03ff);}function Nt(_0x4d1406){const _0x4e79f4=_0x4d1406['start'][_0x4407('0x3e')];return _0x4e79f4&&_0x4e79f4['is']('element');}function Rt(_0x1f5f52,_0x1d7be7){const _0x35ed4d=_0x1d7be7[_0x4407('0xfd')][_0x4407('0xf8')](_0x1f5f52)||_0x1d7be7[_0x4407('0xfd')][_0x4407('0xee')](_0x1f5f52);return _0x1d7be7[_0x4407('0xec')](_0x1d7be7['createPositionAt'](_0x1f5f52,_0x4407('0xa3')),_0x35ed4d?_0x1d7be7[_0x4407('0x4')](_0x1f5f52):_0x1d7be7[_0x4407('0x9')](_0x1f5f52,_0x4407('0x12f')));}function xt(_0x4447aa,_0x48face,_0x240af1,_0x50865f,_0x502d7f){if(_0x240af1[_0x4407('0x12f')]['isEqual'](_0x50865f[_0x4407('0x50')]))return!0x0;if(_0x4447aa['type']!=_0x48face[_0x4407('0x69')])return!0x1;if(!_0x240af1[_0x4407('0x12f')]['isTouching'](_0x50865f[_0x4407('0x50')]))return!0x1;const _0x2049ff=_0x502d7f['createRange'](_0x240af1[_0x4407('0x12f')],_0x50865f['start'])['getWalker']();for(const _0x21f0ad of _0x2049ff)if([_0x4407('0x10'),_0x4407('0x3f')][_0x4407('0x7f')](_0x21f0ad[_0x4407('0x69')])&&_0x502d7f['schema'][_0x4407('0xf4')](_0x21f0ad[_0x4407('0xb5')]))return!0x1;return!0x0;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4ba1=['isDirty','descriptionParts','SuggestionThreadView','map','switchbutton','createCommentThreadController','acceptSelectedSuggestions','requires','comments.maxCommentsWhenCollapsed','getByInnerView','execute','getAllAdjacentSuggestions','Annotations','TrackChangesUI','init','componentFactory','_updateController','discardSelectedSuggestions','change:activeAnnotations','add','mainView','registerAnnotation','TrackChangesEditing','commandName','getDescriptions','get','commands','button','lowest','comments.maxCommentCharsWhenCollapsed','from','commentThread','activeAnnotations','length','push','config','filter','source','trackChanges','_createUIButton','getSuggestion','_disableComments','createAnnotation','_handleControllerBuffer','model','bind','type','isEnabled','separator','unbind','activeMarkers','focus','remove','plugins','CommentsUI','Accept\x20all\x20selected\x20suggestions','_suggestionToController','actionView','listenTo','comments.editorConfig','getMarkerNames','_annotationViews','addComment','getFirstRange','Discard\x20all\x20suggestions','values','locale','editing','CommentsRepository','view','buttonView','define','acceptAllSuggestions','clear','trackChanges.disableComments','arrowView','suggestion-','getJoined','acceptButton','innerView','size','change:previous','_destroyController','isMultiRange','destroy','_refreshActiveMarkers','delete','_descriptionFactory','_initializeController','head','set','isOn','has','discardAllSuggestions','_handleSuggestionControllerDelayed','previous','trackChanges.SuggestionThreadView','Discard\x20all\x20selected\x20suggestions','_viewToController','CommentView','editor','isInContent','value','EditorAnnotations','suggestionLoaded','suggestionChanged'];(function(_0xb3698f,_0x4ba119){const _0x345a85=function(_0x31fdda){while(--_0x31fdda){_0xb3698f['push'](_0xb3698f['shift']());}};_0x345a85(++_0x4ba119);}(_0x4ba1,0x93));const _0x345a=function(_0xb3698f,_0x4ba119){_0xb3698f=_0xb3698f-0x0;let _0x345a85=_0x4ba1[_0xb3698f];return _0x345a85;};import{Plugin as _0x188373}from'ckeditor5/src/core';import{Collection as _0xc7327b}from'ckeditor5/src/utils';import{Model as _0x4e3dfd,SplitButtonView as _0x358107,createDropdown as _0x2d9f64,addListToDropdown as _0x35a39f}from'ckeditor5/src/ui';import{Users as _0x16578d,getDateTimeFormatter as _0xce73b7,getAllMarkersDomElementsSorted as _0x38f1bb}from'ckeditor5-collaboration/src/collaboration-core';import _0x3fba2b from'./trackchangesediting';import _0x3c8b89 from'./ui/suggestioncontroller';import _0x333803 from'./ui/view/suggestionthreadview';import{getTranslation as _0x57d1ff}from'./utils/common-translations';import _0x1abfc8 from'../theme/icons/track-changes.svg';export default class d extends _0x188373{static get[_0x345a('0x48')](){return[_0x3fba2b,_0x16578d,_0x345a('0x1b'),_0x345a('0x4d'),_0x345a('0x3e')];}static get['pluginName'](){return _0x345a('0x4e');}constructor(_0x39bcd6){super(_0x39bcd6),this[_0x345a('0xf')]=new Map(),this[_0x345a('0x39')]=new Map(),this[_0x345a('0x14')]=new Map(),this[_0x345a('0x2')]=new Map();const _0x2563d9=this[_0x345a('0x3b')][_0x345a('0x64')];_0x2563d9[_0x345a('0x1e')](_0x345a('0x37'),_0x333803),_0x2563d9['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2563d9[_0x345a('0x5a')](_0x345a('0x21'));}[_0x345a('0x35')](_0x20b7f6,_0x599025){0x0===this['_handleControllerBuffer'][_0x345a('0x27')]&&setTimeout(()=>{for(const [_0x50feb6,_0x4e772a]of this[_0x345a('0x2')]){const _0x33aa94=this[_0x345a('0xf')][_0x345a('0x33')](_0x50feb6);_0x33aa94||_0x4e772a?_0x33aa94&&_0x4e772a&&this['_destroyController'](_0x50feb6):this['_initializeController'](_0x50feb6);}this['editor']['plugins']['get'](_0x345a('0x3e'))['refreshSelectedViews'](),this[_0x345a('0x2c')](),this[_0x345a('0x2')][_0x345a('0x20')]();},0xa),this[_0x345a('0x2')]['set'](_0x20b7f6,_0x599025);}[_0x345a('0x4f')](){const _0x1e44a4=this[_0x345a('0x3b')],_0x5835e7=_0x1e44a4[_0x345a('0xc')][_0x345a('0x5a')](_0x345a('0x57')),_0x261719=_0x1e44a4[_0x345a('0xc')]['get']('Annotations'),_0x524be8=_0x1e44a4[_0x345a('0xc')]['get'](_0x345a('0x3e')),_0x53e05e=_0x1e44a4[_0x345a('0xc')][_0x345a('0x5a')](_0x345a('0x1b'));_0x1e44a4['ui'][_0x345a('0x50')][_0x345a('0x54')]('trackChanges',_0x5ab7a4=>this[_0x345a('0x68')](_0x5ab7a4)),_0x524be8['addSourceCollector'](()=>{const _0x390ee8=[];for(const [_0x2038c3,_0x3a241b]of Array[_0x345a('0x5f')](this[_0x345a('0xf')])){const _0x3e40df=_0x2038c3[_0x345a('0x4c')](),_0xf8d778=[];for(const _0x4b9da0 of _0x3e40df){if(!_0x4b9da0[_0x345a('0x3c')])continue;if(_0x4b9da0[_0x345a('0x2a')]){_0xf8d778['push'](..._0x4b9da0['getRanges']());continue;}const _0x424778=_0x4b9da0[_0x345a('0x16')]();if(_0xf8d778[_0x345a('0x62')]>0x0){const _0x34e6a7=_0xf8d778[0x0][_0x345a('0x24')](_0x424778);if(_0x34e6a7){_0xf8d778[0x0]=_0x34e6a7;continue;}}_0xf8d778[_0x345a('0x63')](_0x424778);}_0x390ee8[_0x345a('0x63')]([_0x3a241b[_0x345a('0x1c')],_0xf8d778]);}return _0x390ee8;}),this[_0x345a('0x11')](_0x5835e7,_0x345a('0x3f'),(_0x1660b3,_0x3c7b13)=>{this['listenTo'](_0x3c7b13,_0x345a('0x28'),(_0x2b4810,_0x3e002a,_0x157da5,_0x19223f)=>{_0x3c7b13['isInContent']&&(null==_0x157da5?(this[_0x345a('0x51')](_0x19223f[_0x345a('0x30')]),this[_0x345a('0x35')](_0x3c7b13,!0x1)):(this['_updateController'](_0x157da5[_0x345a('0x30')]),this[_0x345a('0x35')](_0x3c7b13,!0x0)));}),null===_0x3c7b13[_0x345a('0x36')]?this[_0x345a('0x35')](_0x3c7b13,!0x1):this['_updateController'](_0x3c7b13[_0x345a('0x30')]);}),this[_0x345a('0x11')](_0x5835e7,'suggestionUnloaded',(_0x2b8988,_0x3838f8,_0x4a0452)=>{this['stopListening'](_0x3838f8,_0x345a('0x28')),this[_0x345a('0x2')][_0x345a('0x2d')](_0x3838f8);const _0x4ede02=_0x4a0452?_0x4a0452[_0x345a('0x30')]:_0x3838f8,_0x2739c8=this[_0x345a('0xf')][_0x345a('0x5a')](_0x4ede02);null!==_0x4a0452&&this[_0x345a('0x51')](_0x4ede02),null===_0x4a0452&&_0x2739c8&&this['_destroyController'](_0x3838f8);}),this[_0x345a('0x11')](_0x5835e7,_0x345a('0x40'),(_0x21c133,_0x341e1c)=>{this[_0x345a('0x51')](_0x341e1c);}),this['listenTo'](_0x261719,_0x345a('0x53'),()=>{this[_0x345a('0x2c')]();}),this[_0x345a('0x11')](_0x53e05e,_0x345a('0x15'),(_0x557475,{threadId:_0x483580,isFromAdapter:_0x5f1cf4})=>{if(_0x5f1cf4||!_0x5835e7['hasSuggestion'](_0x483580))return;const _0x4ee37c=_0x5835e7[_0x345a('0x69')](_0x483580);this[_0x345a('0xf')]['get'](_0x4ee37c)[_0x345a('0x1c')][_0x345a('0xa')]();},{'priority':_0x345a('0x5d')});}['_refreshActiveMarkers'](){const _0x3b5ba3=this[_0x345a('0x3b')][_0x345a('0xc')][_0x345a('0x5a')](_0x345a('0x4d')),_0x57ecfe=this[_0x345a('0x3b')][_0x345a('0xc')][_0x345a('0x5a')](_0x345a('0x57')),_0x22fb29=Array[_0x345a('0x5f')](_0x3b5ba3[_0x345a('0x61')],_0x32ca13=>_0x32ca13[_0x345a('0x26')])['filter'](_0x220ba8=>this['_viewToController'][_0x345a('0x33')](_0x220ba8)),_0x36ea4c=[];for(const _0x4e4bdb of _0x22fb29){const _0x2e57ba=this[_0x345a('0x39')][_0x345a('0x5a')](_0x4e4bdb)[_0x345a('0x3')]['getAllAdjacentSuggestions']();_0x36ea4c[_0x345a('0x63')](..._0x2e57ba['reduce']((_0x24fe6a,_0x56473b)=>[..._0x24fe6a,..._0x56473b[_0x345a('0x13')]()],[]));}_0x57ecfe[_0x345a('0x9')]=_0x36ea4c;}[_0x345a('0x68')](_0x5986f7){const _0x1cc97f=_0x2d9f64(_0x5986f7,_0x358107),_0x50f8c9=this['editor'][_0x345a('0x5b')][_0x345a('0x5a')](_0x345a('0x67')),_0x2bbc1b=_0x57d1ff(_0x5986f7,'Track\x20changes');_0x1cc97f[_0x345a('0x1d')][_0x345a('0x31')]({'tooltip':_0x2bbc1b,'label':_0x2bbc1b,'icon':_0x1abfc8}),_0x1cc97f['buttonView']['bind'](_0x345a('0x32'))['to'](_0x50f8c9,_0x345a('0x3d')),_0x1cc97f[_0x345a('0x1d')]['on'](_0x345a('0x4b'),()=>{_0x50f8c9['execute'](),this[_0x345a('0x3b')][_0x345a('0x1a')][_0x345a('0x1c')][_0x345a('0xa')]();});const _0x39e678=new _0xc7327b(),_0x2bad44=[{'type':_0x345a('0x45'),'model':{'withText':!0x0,'label':_0x2bbc1b,'commandName':_0x345a('0x67')}},{'type':_0x345a('0x7')},{'type':'button','model':{'withText':!0x0,'label':_0x57d1ff(_0x5986f7,'Accept\x20all\x20suggestions'),'commandName':_0x345a('0x1f')}},{'type':_0x345a('0x5c'),'model':{'withText':!0x0,'label':_0x57d1ff(_0x5986f7,_0x345a('0xe')),'commandName':_0x345a('0x47')}},{'type':_0x345a('0x5c'),'model':{'withText':!0x0,'label':_0x57d1ff(_0x5986f7,_0x345a('0x17')),'commandName':_0x345a('0x34')}},{'type':_0x345a('0x5c'),'model':{'withText':!0x0,'label':_0x57d1ff(_0x5986f7,_0x345a('0x38')),'commandName':_0x345a('0x52')}}];for(const _0xc87c81 of _0x2bad44){let _0x13582b={'type':_0x345a('0x7')};if(_0xc87c81[_0x345a('0x3')]){const _0x407ab8=new _0x4e3dfd(_0xc87c81[_0x345a('0x3')]),_0x4c962f=this[_0x345a('0x3b')][_0x345a('0x5b')][_0x345a('0x5a')](_0x407ab8[_0x345a('0x58')]);_0x407ab8[_0x345a('0x4')](_0x345a('0x32'),_0x345a('0x6'))['to'](_0x4c962f,'value',_0x345a('0x6')),_0x13582b={'type':_0xc87c81[_0x345a('0x5')],'model':_0x407ab8};}_0x39e678[_0x345a('0x54')](_0x13582b);}_0x35a39f(_0x1cc97f,_0x39e678);const _0x52118d=_0x2bad44[_0x345a('0x65')](_0x500955=>null!=_0x500955[_0x345a('0x3')])[_0x345a('0x44')](_0xce767b=>this[_0x345a('0x3b')][_0x345a('0x5b')][_0x345a('0x5a')](_0xce767b[_0x345a('0x3')]['commandName'])),_0xdc2398=_0x1cc97f['buttonView'];return _0xdc2398[_0x345a('0x10')][_0x345a('0x8')](_0x345a('0x6')),_0xdc2398[_0x345a('0x22')][_0x345a('0x8')](_0x345a('0x6')),_0xdc2398[_0x345a('0x10')][_0x345a('0x4')](_0x345a('0x6'))['to'](_0x50f8c9,_0x345a('0x6')),_0xdc2398[_0x345a('0x22')][_0x345a('0x4')]('isEnabled')['toMany'](_0x52118d,_0x345a('0x6'),(..._0x12b596)=>_0x12b596['some'](_0x27db69=>_0x27db69)),_0x1cc97f['on'](_0x345a('0x4b'),_0x3f6ece=>{this[_0x345a('0x3b')][_0x345a('0x4b')](_0x3f6ece[_0x345a('0x66')]['commandName']),this['editor'][_0x345a('0x1a')]['view'][_0x345a('0xa')]();}),_0x1cc97f;}[_0x345a('0x2f')](_0x549e5){const _0x3d8ffd=this[_0x345a('0x3b')],_0x4b81fe=_0x3d8ffd[_0x345a('0x64')],_0x9060cd=_0x3d8ffd['plugins'][_0x345a('0x5a')](_0x345a('0x4d')),_0x57bcb9=_0x3d8ffd[_0x345a('0xc')]['get'](_0x345a('0x1b')),_0x33d404=_0x3d8ffd[_0x345a('0xc')][_0x345a('0x5a')](_0x345a('0x3e')),_0x14bedc=_0x3d8ffd[_0x345a('0xc')]['get'](_0x16578d)['me'],_0x19b103=_0x4b81fe[_0x345a('0x5a')](_0x345a('0x67'))[_0x345a('0x43')],{CommentsListView:_0x29110c,CommentThreadInputView:_0x3444cc}=_0x3d8ffd[_0x345a('0xc')]['get'](_0x345a('0xd'));let _0x3e6233,_0x391408;this[_0x345a('0x14')][_0x345a('0x33')](_0x549e5['id'])?(_0x391408=this[_0x345a('0x14')][_0x345a('0x5a')](_0x549e5['id']),_0x3e6233=_0x391408['mainView']):(_0x3e6233=new _0x19b103(_0x3d8ffd['locale'],_0x549e5,_0x14bedc,{'disableComments':this[_0x345a('0x0')],'editorConfig':_0x4b81fe[_0x345a('0x5a')](_0x345a('0x12')),'maxCommentsWhenCollapsed':_0x4b81fe['get'](_0x345a('0x49')),'maxThreadTotalWeight':_0x4b81fe[_0x345a('0x5a')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4b81fe[_0x345a('0x5a')](_0x345a('0x5e')),'formatDateTime':_0xce73b7(_0x4b81fe[_0x345a('0x5a')](_0x345a('0x19'))),'CommentView':_0x4b81fe[_0x345a('0x5a')]('comments')[_0x345a('0x3a')],'CommentsListView':_0x29110c,'CommentThreadInputView':_0x3444cc}),_0x3e6233[_0x345a('0x25')]['on']('execute',()=>{_0x3d8ffd['editing'][_0x345a('0x1c')][_0x345a('0xa')]();}),_0x3e6233['discardButton']['on']('execute',()=>{_0x3d8ffd[_0x345a('0x1a')][_0x345a('0x1c')]['focus']();}),_0x391408=_0x9060cd['createAnnotationView'](this[_0x345a('0x3b')]['locale'],_0x3e6233),_0x391408[_0x345a('0x4')]('isDirty')['to'](_0x3e6233,_0x345a('0x41')),_0x391408[_0x345a('0x4')]('length')['to'](_0x3e6233),_0x391408[_0x345a('0x4')](_0x345a('0x5'))['to'](_0x3e6233,_0x345a('0x5'),_0x22613e=>_0x345a('0x23')+_0x22613e),this[_0x345a('0x14')][_0x345a('0x31')](_0x549e5['id'],_0x391408));const _0xcd64c1=_0x57bcb9[_0x345a('0x46')](_0x549e5[_0x345a('0x60')],_0x3e6233),_0x1b2c08=new _0x3c8b89(_0x3d8ffd,_0x549e5,_0x3e6233,_0xcd64c1),_0x375129=_0x549e5[_0x345a('0x4c')]()[_0x345a('0x65')](_0x27bb52=>_0x27bb52[_0x345a('0x3c')]);_0x3e6233[_0x345a('0x42')]=_0x3d8ffd[_0x345a('0xc')][_0x345a('0x5a')](_0x345a('0x57'))[_0x345a('0x2e')]['getDescriptions'](_0x375129),this[_0x345a('0xf')]['set'](_0x549e5,_0x1b2c08),this['_viewToController']['set'](_0x3e6233,_0x1b2c08);const _0x573cb5=_0x9060cd[_0x345a('0x1')]({'view':_0x391408,'target':()=>{const _0x1c029d=[],_0x3e7fce=_0x549e5[_0x345a('0x4c')]()[_0x345a('0x65')](_0x2deda3=>_0x2deda3['isInContent']);for(const _0x1fdae9 of _0x3e7fce)_0x1c029d[_0x345a('0x63')](..._0x1fdae9['getMarkers']());return _0x38f1bb(_0x3d8ffd['editing'],_0x1c029d);},'type':()=>_0x345a('0x23')+_0x1b2c08['view'][_0x345a('0x5')]});_0x9060cd[_0x345a('0x54')](_0x573cb5),_0x33d404[_0x345a('0x56')](_0x573cb5);}[_0x345a('0x29')](_0x3a32b8){const _0xc53668=this[_0x345a('0x3b')]['plugins'][_0x345a('0x5a')](_0x345a('0x4d')),_0x168619=this[_0x345a('0xf')][_0x345a('0x5a')](_0x3a32b8),_0x231018=_0x168619[_0x345a('0x1c')],_0x4f878f=_0xc53668[_0x345a('0x4a')](_0x231018);_0x4f878f&&_0xc53668[_0x345a('0xb')](_0x4f878f),this[_0x345a('0xf')][_0x345a('0x2d')](_0x3a32b8),this[_0x345a('0x39')][_0x345a('0x2d')](_0x231018),_0x168619['destroy']();}[_0x345a('0x51')](_0x57afe2){if(!_0x57afe2[_0x345a('0x3c')]||!this['_suggestionToController']['has'](_0x57afe2))return;const _0x3dbb95=this[_0x345a('0x3b')][_0x345a('0xc')]['get'](_0x345a('0x57')),_0x2b014b=this[_0x345a('0xf')]['get'](_0x57afe2),_0x1fddae=_0x57afe2['getAllAdjacentSuggestions']();_0x2b014b[_0x345a('0x1c')][_0x345a('0x42')]=_0x3dbb95[_0x345a('0x2e')][_0x345a('0x59')](_0x1fddae);}['destroy'](){for(const _0x2aacab of this['_suggestionToController']['keys']())this[_0x345a('0x29')](_0x2aacab);for(const _0x5eb560 of this[_0x345a('0x14')][_0x345a('0x18')]())_0x5eb560[_0x345a('0x55')]['destroy']();super[_0x345a('0x2b')]();}}
|
|
23
|
+
const _0x2e38=['commandName','model','trackChanges','EditorAnnotations','isDirty','buttonView','_initializeController','comments.editorConfig','size','remove','CommentsUI','getRanges','CommentsRepository','source','comments','head','isEnabled','has','unbind','push','from','_descriptionFactory','toMany','_annotationViews','focus','TrackChangesUI','suggestion-','pluginName','config','some','isInContent','stopListening','createAnnotation','isOn','requires','type','suggestionChanged','destroy','descriptionParts','Annotations','init','_destroyController','acceptButton','commands','TrackChangesEditing','map','_disableComments','view','getMarkers','bind','comments.maxCommentCharsWhenCollapsed','getByInnerView','change:previous','button','_updateController','acceptSelectedSuggestions','innerView','previous','execute','activeMarkers','CommentView','Accept\x20all\x20suggestions','_createUIButton','switchbutton','filter','refreshSelectedViews','createCommentThreadController','_handleSuggestionControllerDelayed','isMultiRange','componentFactory','_viewToController','actionView','Discard\x20all\x20suggestions','activeAnnotations','_handleControllerBuffer','discardButton','define','locale','set','getAllAdjacentSuggestions','delete','editing','get','length','editor','Track\x20changes','getJoined','acceptAllSuggestions','_suggestionToController','value','comments.maxCommentsWhenCollapsed','trackChanges.disableComments','change:activeAnnotations','mainView','add','separator','keys','discardSelectedSuggestions','clear','lowest','suggestionLoaded','addSourceCollector','getDescriptions','listenTo','plugins','discardAllSuggestions','suggestionUnloaded','createAnnotationView'];(function(_0x3fcd1b,_0x2e389c){const _0x259fa4=function(_0xf4f521){while(--_0xf4f521){_0x3fcd1b['push'](_0x3fcd1b['shift']());}};_0x259fa4(++_0x2e389c);}(_0x2e38,0x170));const _0x259f=function(_0x3fcd1b,_0x2e389c){_0x3fcd1b=_0x3fcd1b-0x0;let _0x259fa4=_0x2e38[_0x3fcd1b];return _0x259fa4;};import{Plugin as _0x17a3cf}from'ckeditor5/src/core';import{Collection as _0x180f4e}from'ckeditor5/src/utils';import{Model as _0x5cceef,SplitButtonView as _0x545a35,createDropdown as _0x5afe29,addListToDropdown as _0x409cd8}from'ckeditor5/src/ui';import{Users as _0x1e0091,getDateTimeFormatter as _0x28eda6,getAllMarkersDomElementsSorted as _0x242f75}from'ckeditor5-collaboration/src/collaboration-core';import _0x5ebf71 from'./trackchangesediting';import _0x1b96bd from'./ui/suggestioncontroller';import _0x1ed5a1 from'./ui/view/suggestionthreadview';import{getTranslation as _0x1c2ad5}from'./utils/common-translations';import _0x3f705d from'../theme/icons/track-changes.svg';export default class d extends _0x17a3cf{static get[_0x259f('0x62')](){return[_0x5ebf71,_0x1e0091,_0x259f('0x4c'),_0x259f('0x67'),_0x259f('0x43')];}static get[_0x259f('0x5b')](){return _0x259f('0x59');}constructor(_0x285a00){super(_0x285a00),this[_0x259f('0x2c')]=new Map(),this['_viewToController']=new Map(),this[_0x259f('0x57')]=new Map(),this[_0x259f('0x1e')]=new Map();const _0x336227=this[_0x259f('0x28')]['config'];_0x336227[_0x259f('0x20')]('trackChanges.SuggestionThreadView',_0x1ed5a1),_0x336227[_0x259f('0x20')](_0x259f('0x2f'),!0x1),this[_0x259f('0x2')]=_0x336227[_0x259f('0x26')]('trackChanges.disableComments');}[_0x259f('0x17')](_0x4214d8,_0xc852b8){0x0===this[_0x259f('0x1e')][_0x259f('0x48')]&&setTimeout(()=>{for(const [_0x272476,_0x99898c]of this[_0x259f('0x1e')]){const _0x2c5f2b=this[_0x259f('0x2c')]['has'](_0x272476);_0x2c5f2b||_0x99898c?_0x2c5f2b&&_0x99898c&&this['_destroyController'](_0x272476):this['_initializeController'](_0x272476);}this['editor'][_0x259f('0x3c')]['get'](_0x259f('0x43'))[_0x259f('0x15')](),this['_refreshActiveMarkers'](),this[_0x259f('0x1e')][_0x259f('0x36')]();},0xa),this[_0x259f('0x1e')][_0x259f('0x22')](_0x4214d8,_0xc852b8);}[_0x259f('0x68')](){const _0x199699=this[_0x259f('0x28')],_0x13ef2d=_0x199699[_0x259f('0x3c')][_0x259f('0x26')]('TrackChangesEditing'),_0x30e908=_0x199699[_0x259f('0x3c')][_0x259f('0x26')]('Annotations'),_0xa2526d=_0x199699[_0x259f('0x3c')][_0x259f('0x26')](_0x259f('0x43')),_0x4cfad3=_0x199699[_0x259f('0x3c')][_0x259f('0x26')]('CommentsRepository');_0x199699['ui'][_0x259f('0x19')]['add'](_0x259f('0x42'),_0xcc2ccf=>this[_0x259f('0x12')](_0xcc2ccf)),_0xa2526d[_0x259f('0x39')](()=>{const _0x166368=[];for(const [_0x34dd66,_0x174c29]of Array['from'](this['_suggestionToController'])){const _0x882b27=_0x34dd66['getAllAdjacentSuggestions'](),_0x3b72fb=[];for(const _0x2dd3d3 of _0x882b27){if(!_0x2dd3d3['isInContent'])continue;if(_0x2dd3d3[_0x259f('0x18')]){_0x3b72fb['push'](..._0x2dd3d3[_0x259f('0x4b')]());continue;}const _0x3ede87=_0x2dd3d3['getFirstRange']();if(_0x3b72fb[_0x259f('0x27')]>0x0){const _0x5d65e1=_0x3b72fb[0x0][_0x259f('0x2a')](_0x3ede87);if(_0x5d65e1){_0x3b72fb[0x0]=_0x5d65e1;continue;}}_0x3b72fb['push'](_0x3ede87);}_0x166368[_0x259f('0x53')]([_0x174c29[_0x259f('0x3')],_0x3b72fb]);}return _0x166368;}),this[_0x259f('0x3b')](_0x13ef2d,_0x259f('0x38'),(_0x5db2b7,_0x2932aa)=>{this[_0x259f('0x3b')](_0x2932aa,'change:previous',(_0x5b99a9,_0x4af14a,_0x99b3a,_0x1ba155)=>{_0x2932aa['isInContent']&&(null==_0x99b3a?(this[_0x259f('0xa')](_0x1ba155[_0x259f('0x4f')]),this[_0x259f('0x17')](_0x2932aa,!0x1)):(this[_0x259f('0xa')](_0x99b3a['head']),this[_0x259f('0x17')](_0x2932aa,!0x0)));}),null===_0x2932aa[_0x259f('0xd')]?this[_0x259f('0x17')](_0x2932aa,!0x1):this['_updateController'](_0x2932aa[_0x259f('0x4f')]);}),this[_0x259f('0x3b')](_0x13ef2d,_0x259f('0x3e'),(_0x438750,_0x5ba5ff,_0x1b4841)=>{this[_0x259f('0x5f')](_0x5ba5ff,_0x259f('0x8')),this['_handleControllerBuffer'][_0x259f('0x24')](_0x5ba5ff);const _0x48f8c0=_0x1b4841?_0x1b4841[_0x259f('0x4f')]:_0x5ba5ff,_0xa8a6e5=this[_0x259f('0x2c')][_0x259f('0x26')](_0x48f8c0);null!==_0x1b4841&&this[_0x259f('0xa')](_0x48f8c0),null===_0x1b4841&&_0xa8a6e5&&this[_0x259f('0x69')](_0x5ba5ff);}),this[_0x259f('0x3b')](_0x13ef2d,_0x259f('0x64'),(_0x5f54d2,_0x45ff24)=>{this[_0x259f('0xa')](_0x45ff24);}),this[_0x259f('0x3b')](_0x30e908,_0x259f('0x30'),()=>{this['_refreshActiveMarkers']();}),this[_0x259f('0x3b')](_0x4cfad3,'addComment',(_0xe24ffb,{threadId:_0x38d938,isFromAdapter:_0xa85f4f})=>{if(_0xa85f4f||!_0x13ef2d['hasSuggestion'](_0x38d938))return;const _0x1b5e05=_0x13ef2d['getSuggestion'](_0x38d938);this[_0x259f('0x2c')][_0x259f('0x26')](_0x1b5e05)[_0x259f('0x3')]['focus']();},{'priority':_0x259f('0x37')});}['_refreshActiveMarkers'](){const _0x50775a=this['editor'][_0x259f('0x3c')][_0x259f('0x26')](_0x259f('0x67')),_0x177b44=this[_0x259f('0x28')][_0x259f('0x3c')][_0x259f('0x26')](_0x259f('0x0')),_0x188f54=Array[_0x259f('0x54')](_0x50775a[_0x259f('0x1d')],_0x4ca286=>_0x4ca286[_0x259f('0xc')])['filter'](_0x3b3917=>this[_0x259f('0x1a')][_0x259f('0x51')](_0x3b3917)),_0x5b753f=[];for(const _0x4d9c5b of _0x188f54){const _0x573fc4=this[_0x259f('0x1a')]['get'](_0x4d9c5b)[_0x259f('0x41')][_0x259f('0x23')]();_0x5b753f[_0x259f('0x53')](..._0x573fc4['reduce']((_0x48cba0,_0x18f853)=>[..._0x48cba0,..._0x18f853['getMarkerNames']()],[]));}_0x177b44[_0x259f('0xf')]=_0x5b753f;}['_createUIButton'](_0x45f687){const _0x58c984=_0x5afe29(_0x45f687,_0x545a35),_0x264d6f=this[_0x259f('0x28')]['commands'][_0x259f('0x26')](_0x259f('0x42')),_0x4eef64=_0x1c2ad5(_0x45f687,_0x259f('0x29'));_0x58c984[_0x259f('0x45')][_0x259f('0x22')]({'tooltip':_0x4eef64,'label':_0x4eef64,'icon':_0x3f705d}),_0x58c984[_0x259f('0x45')][_0x259f('0x5')](_0x259f('0x61'))['to'](_0x264d6f,_0x259f('0x2d')),_0x58c984[_0x259f('0x45')]['on'](_0x259f('0xe'),()=>{_0x264d6f[_0x259f('0xe')](),this['editor'][_0x259f('0x25')]['view'][_0x259f('0x58')]();});const _0x223af1=new _0x180f4e(),_0x4a4850=[{'type':_0x259f('0x13'),'model':{'withText':!0x0,'label':_0x4eef64,'commandName':_0x259f('0x42')}},{'type':'separator'},{'type':_0x259f('0x9'),'model':{'withText':!0x0,'label':_0x1c2ad5(_0x45f687,_0x259f('0x11')),'commandName':_0x259f('0x2b')}},{'type':_0x259f('0x9'),'model':{'withText':!0x0,'label':_0x1c2ad5(_0x45f687,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x259f('0xb')}},{'type':_0x259f('0x9'),'model':{'withText':!0x0,'label':_0x1c2ad5(_0x45f687,_0x259f('0x1c')),'commandName':_0x259f('0x3d')}},{'type':_0x259f('0x9'),'model':{'withText':!0x0,'label':_0x1c2ad5(_0x45f687,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x259f('0x35')}}];for(const _0x21b144 of _0x4a4850){let _0x3ecf8e={'type':_0x259f('0x33')};if(_0x21b144[_0x259f('0x41')]){const _0x282a1f=new _0x5cceef(_0x21b144[_0x259f('0x41')]),_0x279e96=this[_0x259f('0x28')]['commands'][_0x259f('0x26')](_0x282a1f[_0x259f('0x40')]);_0x282a1f[_0x259f('0x5')](_0x259f('0x61'),'isEnabled')['to'](_0x279e96,_0x259f('0x2d'),_0x259f('0x50')),_0x3ecf8e={'type':_0x21b144[_0x259f('0x63')],'model':_0x282a1f};}_0x223af1[_0x259f('0x32')](_0x3ecf8e);}_0x409cd8(_0x58c984,_0x223af1);const _0x574c4f=_0x4a4850[_0x259f('0x14')](_0x38368e=>null!=_0x38368e[_0x259f('0x41')])[_0x259f('0x1')](_0x11f001=>this[_0x259f('0x28')][_0x259f('0x6b')][_0x259f('0x26')](_0x11f001[_0x259f('0x41')]['commandName'])),_0x30d005=_0x58c984[_0x259f('0x45')];return _0x30d005[_0x259f('0x1b')][_0x259f('0x52')](_0x259f('0x50')),_0x30d005['arrowView']['unbind'](_0x259f('0x50')),_0x30d005[_0x259f('0x1b')][_0x259f('0x5')]('isEnabled')['to'](_0x264d6f,_0x259f('0x50')),_0x30d005['arrowView']['bind'](_0x259f('0x50'))[_0x259f('0x56')](_0x574c4f,_0x259f('0x50'),(..._0xbebdd0)=>_0xbebdd0[_0x259f('0x5d')](_0x19c4d3=>_0x19c4d3)),_0x58c984['on'](_0x259f('0xe'),_0x5951a9=>{this['editor']['execute'](_0x5951a9[_0x259f('0x4d')][_0x259f('0x40')]),this[_0x259f('0x28')]['editing']['view'][_0x259f('0x58')]();}),_0x58c984;}[_0x259f('0x46')](_0x145dae){const _0x5ed37a=this[_0x259f('0x28')],_0xf98972=_0x5ed37a[_0x259f('0x5c')],_0x25c5e3=_0x5ed37a[_0x259f('0x3c')][_0x259f('0x26')](_0x259f('0x67')),_0x1b49a3=_0x5ed37a[_0x259f('0x3c')][_0x259f('0x26')](_0x259f('0x4c')),_0x278c26=_0x5ed37a['plugins'][_0x259f('0x26')](_0x259f('0x43')),_0x1bc2c6=_0x5ed37a['plugins'][_0x259f('0x26')](_0x1e0091)['me'],_0x17f80d=_0xf98972[_0x259f('0x26')](_0x259f('0x42'))['SuggestionThreadView'],{CommentsListView:_0x45f446,CommentThreadInputView:_0x4a6b84}=_0x5ed37a[_0x259f('0x3c')]['get'](_0x259f('0x4a'));let _0x2d1dd3,_0x35a0d4;this[_0x259f('0x57')]['has'](_0x145dae['id'])?(_0x35a0d4=this[_0x259f('0x57')][_0x259f('0x26')](_0x145dae['id']),_0x2d1dd3=_0x35a0d4[_0x259f('0x31')]):(_0x2d1dd3=new _0x17f80d(_0x5ed37a[_0x259f('0x21')],_0x145dae,_0x1bc2c6,{'disableComments':this[_0x259f('0x2')],'editorConfig':_0xf98972[_0x259f('0x26')](_0x259f('0x47')),'maxCommentsWhenCollapsed':_0xf98972[_0x259f('0x26')](_0x259f('0x2e')),'maxThreadTotalWeight':_0xf98972[_0x259f('0x26')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xf98972[_0x259f('0x26')](_0x259f('0x6')),'formatDateTime':_0x28eda6(_0xf98972[_0x259f('0x26')](_0x259f('0x21'))),'CommentView':_0xf98972[_0x259f('0x26')](_0x259f('0x4e'))[_0x259f('0x10')],'CommentsListView':_0x45f446,'CommentThreadInputView':_0x4a6b84}),_0x2d1dd3[_0x259f('0x6a')]['on'](_0x259f('0xe'),()=>{_0x5ed37a[_0x259f('0x25')][_0x259f('0x3')][_0x259f('0x58')]();}),_0x2d1dd3[_0x259f('0x1f')]['on'](_0x259f('0xe'),()=>{_0x5ed37a[_0x259f('0x25')][_0x259f('0x3')][_0x259f('0x58')]();}),_0x35a0d4=_0x25c5e3[_0x259f('0x3f')](this[_0x259f('0x28')][_0x259f('0x21')],_0x2d1dd3),_0x35a0d4[_0x259f('0x5')]('isDirty')['to'](_0x2d1dd3,_0x259f('0x44')),_0x35a0d4[_0x259f('0x5')]('length')['to'](_0x2d1dd3),_0x35a0d4[_0x259f('0x5')](_0x259f('0x63'))['to'](_0x2d1dd3,_0x259f('0x63'),_0x2883ec=>_0x259f('0x5a')+_0x2883ec),this[_0x259f('0x57')][_0x259f('0x22')](_0x145dae['id'],_0x35a0d4));const _0xde9729=_0x1b49a3[_0x259f('0x16')](_0x145dae['commentThread'],_0x2d1dd3),_0x45c773=new _0x1b96bd(_0x5ed37a,_0x145dae,_0x2d1dd3,_0xde9729),_0x59e318=_0x145dae['getAllAdjacentSuggestions']()[_0x259f('0x14')](_0x1f81d0=>_0x1f81d0[_0x259f('0x5e')]);_0x2d1dd3[_0x259f('0x66')]=_0x5ed37a['plugins'][_0x259f('0x26')](_0x259f('0x0'))[_0x259f('0x55')][_0x259f('0x3a')](_0x59e318),this[_0x259f('0x2c')][_0x259f('0x22')](_0x145dae,_0x45c773),this[_0x259f('0x1a')][_0x259f('0x22')](_0x2d1dd3,_0x45c773);const _0x2c9ded=_0x25c5e3[_0x259f('0x60')]({'view':_0x35a0d4,'target':()=>{const _0xfddfd0=[],_0x37de7b=_0x145dae[_0x259f('0x23')]()[_0x259f('0x14')](_0x356805=>_0x356805[_0x259f('0x5e')]);for(const _0x1fd500 of _0x37de7b)_0xfddfd0[_0x259f('0x53')](..._0x1fd500[_0x259f('0x4')]());return _0x242f75(_0x5ed37a[_0x259f('0x25')],_0xfddfd0);},'type':()=>_0x259f('0x5a')+_0x45c773['view']['type']});_0x25c5e3[_0x259f('0x32')](_0x2c9ded),_0x278c26['registerAnnotation'](_0x2c9ded);}[_0x259f('0x69')](_0x124782){const _0x146a9a=this[_0x259f('0x28')][_0x259f('0x3c')][_0x259f('0x26')](_0x259f('0x67')),_0x14927f=this['_suggestionToController'][_0x259f('0x26')](_0x124782),_0x50ff67=_0x14927f['view'],_0x4a126d=_0x146a9a[_0x259f('0x7')](_0x50ff67);_0x4a126d&&_0x146a9a[_0x259f('0x49')](_0x4a126d),this[_0x259f('0x2c')][_0x259f('0x24')](_0x124782),this['_viewToController'][_0x259f('0x24')](_0x50ff67),_0x14927f[_0x259f('0x65')]();}[_0x259f('0xa')](_0x4d3821){if(!_0x4d3821[_0x259f('0x5e')]||!this['_suggestionToController'][_0x259f('0x51')](_0x4d3821))return;const _0x4a76f0=this[_0x259f('0x28')][_0x259f('0x3c')][_0x259f('0x26')](_0x259f('0x0')),_0x1c5b62=this[_0x259f('0x2c')][_0x259f('0x26')](_0x4d3821),_0x19aa60=_0x4d3821[_0x259f('0x23')]();_0x1c5b62[_0x259f('0x3')][_0x259f('0x66')]=_0x4a76f0['_descriptionFactory'][_0x259f('0x3a')](_0x19aa60);}[_0x259f('0x65')](){for(const _0x36fa6e of this[_0x259f('0x2c')][_0x259f('0x34')]())this['_destroyController'](_0x36fa6e);for(const _0x2863df of this['_annotationViews']['values']())_0x2863df[_0x259f('0x31')][_0x259f('0x65')]();super[_0x259f('0x65')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f07=['_editor','canEditAt','canDiscard','add','_acceptCommand','commands','destroy','isEnabled','discardSuggestion','execute','_setPendingAction','_pendingAction','stopListening','change:isDirty','_removePendingAction','get','view','commentThreadController','unbind','getRanges','bind','acceptSuggestion','model','remove','canAccept','_discardCommand','PendingActions','plugins','listenTo'];(function(_0x52fab2,_0x4f074c){const _0x382ff7=function(_0x2a7e1c){while(--_0x2a7e1c){_0x52fab2['push'](_0x52fab2['shift']());}};_0x382ff7(++_0x4f074c);}(_0x4f07,0x1c0));const _0x382f=function(_0x52fab2,_0x4f074c){_0x52fab2=_0x52fab2-0x0;let _0x382ff7=_0x4f07[_0x52fab2];return _0x382ff7;};import{ObservableMixin as _0x1da643}from'ckeditor5/src/utils';import{getTranslation as _0x2616a1}from'../utils/common-translations';export default class qt extends _0x1da643(){constructor(_0x5284e5,_0x2d3461,_0x3146ce,_0x614a55){super(),this[_0x382f('0x9')]=_0x2d3461,this[_0x382f('0x3')]=_0x3146ce,this[_0x382f('0x4')]=_0x614a55,this[_0x382f('0x10')]=_0x5284e5,this[_0x382f('0x14')]=_0x5284e5[_0x382f('0x15')][_0x382f('0x2')](_0x382f('0x8')),this[_0x382f('0xc')]=_0x5284e5['commands'][_0x382f('0x2')](_0x382f('0x18')),this[_0x382f('0x3')]['bind'](_0x382f('0x17'))['to'](this[_0x382f('0x14')],this[_0x382f('0xc')],(_0x200df4,_0x31ab9c)=>_0x200df4||_0x31ab9c),this[_0x382f('0x3')][_0x382f('0x7')](_0x382f('0xb'))['to'](this['_acceptCommand'],_0x382f('0x17'),_0x458fde=>_0x458fde&&this[_0x382f('0x10')][_0x382f('0x9')]['canEditAt'](_0x2d3461[_0x382f('0x6')]())),this[_0x382f('0x3')][_0x382f('0x7')]('canDiscard')['to'](this[_0x382f('0xc')],_0x382f('0x17'),_0x5ecbd8=>_0x5ecbd8&&this['_editor'][_0x382f('0x9')][_0x382f('0x11')](_0x2d3461[_0x382f('0x6')]())),this[_0x382f('0x1b')]=null,_0x3146ce['isDirty']&&this[_0x382f('0x1a')](),this[_0x382f('0xf')](_0x3146ce,_0x382f('0x8'),()=>this[_0x382f('0x8')]()),this[_0x382f('0xf')](_0x3146ce,_0x382f('0x18'),()=>this[_0x382f('0x18')]()),this['listenTo'](_0x3146ce,_0x382f('0x0'),()=>{_0x3146ce['isDirty']?this[_0x382f('0x1a')]():this[_0x382f('0x1')]();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this[_0x382f('0xc')][_0x382f('0x19')](this[_0x382f('0x9')]['id']);}[_0x382f('0x16')](){this['view'][_0x382f('0x5')](_0x382f('0x17')),this[_0x382f('0x3')][_0x382f('0x5')](_0x382f('0xb')),this[_0x382f('0x3')]['unbind'](_0x382f('0x12')),this[_0x382f('0x1c')](),this[_0x382f('0x4')][_0x382f('0x16')](),this[_0x382f('0x1b')]&&this[_0x382f('0x1')]();}['_setPendingAction'](){const _0x28b977=_0x2616a1(this[_0x382f('0x10')]['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this[_0x382f('0x10')]['plugins'][_0x382f('0x2')](_0x382f('0xd'))[_0x382f('0x13')](_0x28b977);}['_removePendingAction'](){null!==this[_0x382f('0x1b')]&&this['_editor'][_0x382f('0xe')][_0x382f('0x2')](_0x382f('0xd'))[_0x382f('0xa')](this['_pendingAction']),this[_0x382f('0x1b')]=null;}}
|