@ckeditor/ckeditor5-track-changes 38.2.0-alpha.1 → 39.0.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/README.md +0 -1
- package/build/track-changes.js +2 -2
- package/build/translations/gl.js +1 -1
- package/build/translations/sq.js +1 -0
- package/lang/translations/gl.po +23 -23
- package/lang/translations/sq.po +487 -0
- package/package.json +4 -5
- package/src/augmentation.d.ts +6 -2
- package/src/augmentation.js +1 -1
- package/src/commands/acceptsuggestioncommand.d.ts +6 -2
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardsuggestioncommand.d.ts +6 -2
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/executeonallsuggestionscommand.d.ts +6 -2
- package/src/commands/executeonallsuggestionscommand.js +2 -2
- package/src/commands/executeonselectedsuggestionscommand.d.ts +6 -2
- package/src/commands/executeonselectedsuggestionscommand.js +2 -2
- package/src/commands/trackchangescommand.d.ts +5 -1
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.d.ts +16 -12
- package/src/index.js +2 -2
- package/src/integrations/alignment.d.ts +5 -1
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.d.ts +5 -1
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.d.ts +5 -1
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/ckbox.d.ts +5 -1
- package/src/integrations/ckbox.js +2 -2
- package/src/integrations/codeblock.d.ts +5 -1
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.d.ts +5 -1
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.d.ts +6 -2
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/documentlist.d.ts +5 -1
- package/src/integrations/documentlist.js +2 -2
- package/src/integrations/documentlistproperties.d.ts +7 -3
- package/src/integrations/documentlistproperties.js +2 -2
- package/src/integrations/entercommand.d.ts +6 -2
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/findandreplace.d.ts +5 -1
- package/src/integrations/findandreplace.js +2 -2
- package/src/integrations/font.d.ts +5 -1
- package/src/integrations/font.js +2 -2
- package/src/integrations/formatpainter.d.ts +5 -1
- package/src/integrations/formatpainter.js +2 -2
- package/src/integrations/heading.d.ts +5 -1
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.d.ts +5 -1
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.d.ts +5 -1
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/htmlembed.d.ts +5 -1
- package/src/integrations/htmlembed.js +2 -2
- package/src/integrations/image.d.ts +5 -1
- package/src/integrations/image.js +2 -2
- package/src/integrations/imagereplace.d.ts +7 -3
- package/src/integrations/imagereplace.js +2 -2
- package/src/integrations/importword.d.ts +5 -1
- package/src/integrations/importword.js +2 -2
- package/src/integrations/indent.d.ts +5 -1
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.d.ts +6 -2
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/link.d.ts +5 -1
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.d.ts +5 -1
- package/src/integrations/list.js +2 -2
- package/src/integrations/listproperties.d.ts +7 -3
- package/src/integrations/listproperties.js +2 -2
- package/src/integrations/mediaembed.d.ts +5 -1
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.d.ts +5 -1
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.d.ts +5 -1
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.d.ts +5 -1
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.d.ts +5 -1
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.d.ts +5 -1
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.d.ts +6 -2
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.d.ts +5 -1
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/style.d.ts +5 -1
- package/src/integrations/style.js +2 -2
- package/src/integrations/table.d.ts +5 -1
- package/src/integrations/table.js +2 -2
- package/src/integrations/tablecaption.d.ts +6 -2
- package/src/integrations/tablecaption.js +2 -2
- package/src/integrations/tableclipboard.d.ts +4 -3
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.d.ts +8 -4
- package/src/integrations/tablecolumnresize.js +2 -2
- package/src/integrations/tableheadings.d.ts +6 -2
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.d.ts +6 -2
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/tableofcontents.d.ts +5 -1
- package/src/integrations/tableofcontents.js +2 -2
- package/src/integrations/tableproperties.d.ts +8 -4
- package/src/integrations/tableproperties.js +2 -2
- package/src/integrations/template.d.ts +5 -1
- package/src/integrations/template.js +2 -2
- package/src/integrations/title.d.ts +5 -1
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.d.ts +5 -1
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.d.ts +7 -3
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.d.ts +15 -5
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.d.ts +5 -5
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.d.ts +10 -6
- package/src/trackchanges.js +2 -2
- package/src/trackchangesconfig.d.ts +5 -1
- package/src/trackchangesconfig.js +1 -1
- package/src/trackchangesdata.d.ts +6 -2
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.d.ts +55 -51
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.d.ts +7 -3
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.d.ts +7 -6
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.d.ts +10 -6
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.d.ts +7 -7
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/common-translations.d.ts +5 -1
- package/src/utils/common-translations.js +2 -2
- package/src/utils/utils.d.ts +8 -4
- package/src/utils/utils.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5bbc=['high','push','updateSuggestion','_removeSuggestion','getWalker','removeMarkers','getDifference','consume','formatGroupId','formatBlock:accept','addClass','getAllAdjacentSuggestions','acceptAllSuggestions','ck-suggestion-marker','trackChanges','formatBlock:join','detach','isInsideObject','markerName','_addSuggestionMarker','_breakSuggestionMarker','_trackFormatChanges','_joinWithAdjacentSuggestions','isBlock','element','removeMarker:suggestion:formatBlock','isUndo','removeClass','never','ck-suggestion-marker-','schema','addMarker:suggestion','isMultiRange','markerToHighlight','isAtEnd','deletion:','updateMarker','discardSelectedSuggestions','toJSON','previous','every','split','_addThreadToSuggestion','skipNestingCheck','createPositionAt','parent','isExternal','substr','addSuggestionData','resolve','_findSuggestions','next','ck-suggestion-marker--active','marker-count','markMultiRangeInsertion','execute','group','insertion','filter','options','formatInline:','discard','_onDiscard','editing','addHighlight','markDeletion','unbindElementFromMarkerName','low','deletion:discard','update:suggestion','suggestion:','trackChangesCommand','_adapter','$graveyard','insertion:chain','insert','name','markers','trackChanges.trackFormatChanges','_suggestionFactory','_joinSuggestions','refresh','editor','markerReady','insertion:accept','hasComments','position','documentSelection','getLastMatchingPosition','_model','removeAttribute','track-changes-command-not-found','createRangeIn','isOwn','discardAllSuggestions','accept','createdAt','getCustomProperty','join','_saved','track-changes-adapter-already-set','howMany','createElement','rethrowUnexpectedError','getAttribute','markInsertion','suggestion','track-changes-suggestion-data-mismatch','backward','insertion:discard','differ','document','attributes','createRange','default','always','reconvertMarker','deletion:chain','_createSuggestion','setAttribute','_rangeIsInLocalUserInsertion','_getAuthorFromId','oldRange','markMultiRangeDeletion','Users','_commentsRepository','clear','getRange','getChangedMarkers','containsItem','removeComment','pluginName','formatBlock','splice','setTo','getCommentThread','$marker','nodeBefore','batch','value','elementEnd','isCollapsed','_enabledCommands','_splitMarkerName','then','bindElementToMarker','adapter','registerCustomCallback','containsRange','isIntersectingWithRange','_isForcedDefaultExecutionBlock','catch','_descriptionFactory','formatInline:join','isEqual','open','originalSuggestionId','ck-suggestion-marker-formatBlock','addRange','_mergeNestedSuggestions','selection','isDocumentOperation','authoredAt','isNextTo','hasCommentThread','consumable','for','targetPosition','toViewElement','upcast','rootName','applyOperation','forceDefaultExecution','isBefore','containsRangeInObject','getIntersection','createSelection','nodeAfter','multi','define','_checkSuggestionCorrectness','stopListening','_setSuggestionRange','chain','commentThread','_suggestionState','head','rejected','trackChanges.mergeNestedSuggestions','normal','isAfter','change','requires','author','$textProxy','item','suggestionUnloaded','insertion:join','dataDowncast','newRange','PENDING_ACTION_SUGGESTION','removed','_cutOutSuggestionMarker','editingDowncast','showSuggestionHighlights','range','addSuggestion','CommentsRepository','model','includes','size','plugins','PendingActions','markMultiRangeBlockFormat','getRanges','get','some','conversion','_suggestions','track-changes-suggestion-not-found','config','fire','_defaultCallbacks','containerElement','moveTargetPosition','_setSuggestionData','notReady','error-saving-suggestion-data-suggestion-discarded','stop','insertContent','fromRange','creator','getSuggestions','_registerDefaultCallbacks','createPositionBefore','_getExternalAuthor','listenTo','commands','map','markerToData','addMarker:suggestion:formatBlock','commandName','getFirstRange','isLimit','acceptSelectedSuggestions','mapper','formatBlock:','_customCallbacks','elementToElement','getAncestors','track-changes-adapter-missing-getsuggestion','getFirstMarker','getSuggestion','buildSuggestion','length','TrackChangesEditing','values','_updateSuggestionData','setSelection','formatInline','ready','isRemovable','dataToMarker','discardSuggestion','suggestionChanged','enqueueChange','forward','activeMarkers','type','acceptSuggestion','enableCommand','collaboration.channelId','getSuggestionCallback','subType','highest','end','formatBlock:discard','writer','deleteContent','move','_handleNewSuggestionMarker','from','multipleBlocks','markBlockFormat','registerPostFixer','isInContent','fetchCommentThread','removeMarker','insertion:','set','isLocal','getNearestSelectionRange','root','getShiftedBy','deletion','has','@external','isObject','formatInline:discard','change:_saved','clone','locale','start','addMarkerName','_editor','remove','getUser','delete','dataReady','suggestionLoaded','data','isTouching','add'];(function(_0x1be480,_0x5bbce1){const _0x540709=function(_0x540302){while(--_0x540302){_0x1be480['push'](_0x1be480['shift']());}};_0x540709(++_0x5bbce1);}(_0x5bbc,0xd9));const _0x5407=function(_0x1be480,_0x5bbce1){_0x1be480=_0x1be480-0x0;let _0x540709=_0x5bbc[_0x1be480];return _0x540709;};import{Plugin as _0x559d86,PendingActions as _0x31ddb5}from'ckeditor5/src/core.js';import{LiveRange as _0x376084}from'ckeditor5/src/engine.js';import{CKEditorError as _0x468b33,uid as _0x3f2a4c,priorities as _0x22ed0b,logWarning as _0x7a3173}from'ckeditor5/src/utils.js';import{toWidget as _0x3eb375}from'ckeditor5/src/widget.js';import{Users as _0x342db6,hashObject as _0x3bf0e7}from'ckeditor5-collaboration';import _0x896c8e from'./commands/trackchangescommand.js';import _0x2e24c2 from'./commands/acceptsuggestioncommand.js';import _0x4dd945 from'./commands/discardsuggestioncommand.js';import _0x5d31d7 from'./commands/executeonallsuggestionscommand.js';import _0x16a204 from'./commands/executeonselectedsuggestionscommand.js';import _0x37741b from'./suggestion.js';import _0x5163ba from'./suggestiondescriptionfactory.js';import _0x38a610 from'./integrations/alignment.js';import _0x3f838d from'./integrations/basicstyles.js';import _0x758172 from'./integrations/blockquote.js';import _0x431657 from'./integrations/ckbox.js';import _0x1bcdd0 from'./integrations/codeblock.js';import _0x2fd025 from'./integrations/comments.js';import _0x104f23 from'./integrations/deletecommand.js';import _0xebc9d6 from'./integrations/documentlist.js';import _0x22e1fe from'./integrations/entercommand.js';import _0x168df3 from'./integrations/findandreplace.js';import _0x486ee8 from'./integrations/font.js';import _0x1a0730 from'./integrations/formatpainter.js';import _0x5766a5 from'./integrations/heading.js';import _0x2304a6 from'./integrations/highlight.js';import _0xc47f5d from'./integrations/horizontalline.js';import _0x48613c from'./integrations/htmlembed.js';import _0x4d5158 from'./integrations/image.js';import _0x3cd642 from'./integrations/imagereplace.js';import _0x3e80cc from'./integrations/importword.js';import _0x2a7883 from'./integrations/indent.js';import _0x5b8e07 from'./integrations/inputcommand.js';import _0x40ceb1 from'./integrations/link.js';import _0x513295 from'./integrations/list.js';import _0x444b8a from'./integrations/listproperties.js';import _0x50d66e from'./integrations/mediaembed.js';import _0x27f6b3 from'./integrations/mention.js';import _0x516918 from'./integrations/pagebreak.js';import _0x154a5a from'./integrations/paragraph.js';import _0x5465a3 from'./integrations/removeformat.js';import _0x4528f9 from'./integrations/restrictededitingmode.js';import _0x46ea33 from'./integrations/shiftentercommand.js';import _0x9eb300 from'./integrations/standardeditingmode.js';import _0x31b84e from'./integrations/style.js';import _0x102d77 from'./integrations/table.js';import _0x499c61 from'./integrations/tablemergesplit.js';import _0x5707d4 from'./integrations/tableheadings.js';import _0x47ac76 from'./integrations/tableclipboard.js';import _0x1690f0 from'./integrations/tablecolumnresize.js';import _0x4ab979 from'./integrations/template.js';import _0x3c06c2 from'./integrations/tableofcontents.js';import _0x1c3d42 from'./integrations/title.js';import _0x89e8b5 from'./integrations/undo.js';import{getTranslation as _0x59c829}from'./utils/common-translations.js';import _0x34d785 from'./integrations/tablecaption.js';import _0x17f744 from'./integrations/documentlistproperties.js';import _0x4ecf2e from'./integrations/tableproperties.js';export default class p extends _0x559d86{static get[_0x5407('0x120')](){return[_0x5407('0x12f'),_0x342db6,_0x31ddb5,_0x38a610,_0x3f838d,_0x758172,_0x431657,_0x1bcdd0,_0x2fd025,_0x104f23,_0xebc9d6,_0x17f744,_0x22e1fe,_0x168df3,_0x486ee8,_0x1a0730,_0x5766a5,_0x2304a6,_0xc47f5d,_0x48613c,_0x4d5158,_0x3cd642,_0x3e80cc,_0x2a7883,_0x5b8e07,_0x40ceb1,_0x513295,_0x444b8a,_0x50d66e,_0x27f6b3,_0x516918,_0x154a5a,_0x5465a3,_0x4528f9,_0x46ea33,_0x9eb300,_0x31b84e,_0x102d77,_0x499c61,_0x5707d4,_0x34d785,_0x47ac76,_0x1690f0,_0x3c06c2,_0x4ecf2e,_0x4ab979,_0x1c3d42,_0x89e8b5];}static get[_0x5407('0xe3')](){return _0x5407('0x26');}constructor(_0x1b887f){function _0x403dff(_0x15e28f){return _0x15e28f[_0x5407('0x15')](_0x2db561=>String['fromCharCode'](_0x2db561))[_0x5407('0xc2')]('');}super(_0x1b887f),this[_0x5407('0x48')]('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2c5624,_0x3974fa,_0x486dfc,_0xee6d07)=>{this[_0x5407('0xb9')][_0x5407('0x11f')](()=>{for(const _0x5e2991 of[..._0xee6d07,..._0x486dfc])this[_0x5407('0xb9')][_0x5407('0xad')][_0x5407('0x4e')](_0x5e2991)&&_0x1b887f[_0x5407('0x9f')][_0x5407('0xd4')](_0x5e2991);});}),this[_0x5407('0xf8')]=new _0x5163ba(this[_0x5407('0xb2')][_0x5407('0x130')][_0x5407('0x7e')],this['editor'][_0x5407('0x54')]),this[_0x5407('0xa8')]=null,this[_0x5407('0xaf')]=new Ct(this[_0x5407('0xb2')]),this[_0x5407('0x1')]=new Map(),this['_commentsRepository']=_0x1b887f['plugins'][_0x5407('0x137')](_0x5407('0x12f')),this[_0x5407('0xee')]=new Set(),this[_0x5407('0xb9')]=this[_0x5407('0xb2')][_0x5407('0x130')],this[_0x5407('0x119')]=new WeakMap(),this[_0x5407('0xf6')]=!0x1,_0x1b887f['config'][_0x5407('0x113')](_0x5407('0xae'),_0x5407('0xd2')),this['_trackFormatChanges']=_0x1b887f[_0x5407('0x3')][_0x5407('0x137')](_0x5407('0xae')),_0x1b887f[_0x5407('0x3')][_0x5407('0x113')](_0x5407('0x11c'),!0x0),this['_mergeNestedSuggestions']=_0x1b887f[_0x5407('0x3')][_0x5407('0x137')](_0x5407('0x11c')),this[_0x5407('0xa7')]=new _0x896c8e(_0x1b887f,this[_0x5407('0xee')]),this[_0x403dff([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x403dff([0x34,0x30,0x34,0x36,0x31,0x34,0x33,0x34]);}['init'](){const _0x31f731=this[_0x5407('0xb2')];_0x31f731[_0x5407('0x0')][_0x5407('0x106')](_0x5407('0x12b'))[_0x5407('0x81')]({'model':_0x5407('0xca'),'view':_0x34e6da=>{const {id:_0x5a62e5,type:_0x20cec6}=this['_splitMarkerName'](_0x34e6da[_0x5407('0x72')]),_0x52a0e2=[_0x5407('0x6d'),_0x5407('0x7d')+_0x20cec6];let _0x381f47=0xbb8;return this[_0x5407('0x32')][_0x5407('0x131')](_0x34e6da[_0x5407('0x72')])&&(_0x52a0e2[_0x5407('0x61')](_0x5407('0x94')),_0x381f47=0xbc2),'deletion'==_0x20cec6&&(_0x381f47+=0x5),{'classes':_0x52a0e2,'attributes':{'data-suggestion':_0x5a62e5},'priority':_0x381f47};}}),_0x31f731[_0x5407('0x0')][_0x5407('0x106')](_0x5407('0x126'))[_0x5407('0x5f')](_0xb4904a=>{_0xb4904a['on'](_0x5407('0x7f'),(_0x3e541c,_0x561231,_0x34f742)=>{if(!_0x34f742[_0x5407('0x9b')][_0x5407('0x12c')])return;const _0x2a3c77=_0x561231[_0x5407('0x123')];if(!_0x2a3c77)return;const _0x156038=_0x34f742[_0x5407('0x1c')]['toViewElement'](_0x2a3c77);_0x31f731[_0x5407('0x130')]['schema'][_0x5407('0x50')](_0x2a3c77)&&_0x156038&&!_0x156038[_0x5407('0xc1')]('widget')&&_0x156038['is'](_0x5407('0x6'))&&_0x3eb375(_0x156038,_0x34f742['writer']);},{'priority':_0x5407('0x60')});}),_0x31f731[_0x5407('0x0')][_0x5407('0x106')](_0x5407('0x126'))[_0x5407('0x81')]({'model':'suggestion','view':(_0x459d5f,_0x2bb55e)=>{if(!_0x2bb55e[_0x5407('0x9b')][_0x5407('0x12c')])return null;const {type:_0x202792}=this['_splitMarkerName'](_0x459d5f[_0x5407('0x72')]);return{'classes':['ck-suggestion-marker',_0x5407('0x7d')+_0x202792],'priority':0xbb8};}});const _0x3398d3=({showActiveMarkers:_0x195d01=!0x0}={})=>(_0x5c4a4c,_0x1d4d48,_0x490822)=>{if(!_0x1d4d48['item'])return;if(_0x1d4d48['item']['is'](_0x5407('0x100')))return void _0x490822['consumable'][_0x5407('0x67')](_0x1d4d48[_0x5407('0x123')],_0x5c4a4c[_0x5407('0xac')]);const _0x454a29=_0x490822[_0x5407('0x1c')][_0x5407('0x108')](_0x1d4d48[_0x5407('0x123')]);if(!(_0x1d4d48[_0x5407('0x123')]['is'](_0x5407('0x78'))&&_0x31f731['model'][_0x5407('0x7e')][_0x5407('0x77')](_0x1d4d48['item'])&&!_0x454a29[_0x5407('0xc1')](_0x5407('0xa0'))))return;const {id:_0x5a9627}=this[_0x5407('0xef')](_0x1d4d48[_0x5407('0x72')]);_0x490822['writer']['addClass'](['ck-suggestion-marker',_0x5407('0xfd')],_0x454a29),_0x490822[_0x5407('0x3c')][_0x5407('0xd7')]('data-suggestion',_0x5a9627,_0x454a29),_0x490822['mapper'][_0x5407('0xf1')](_0x454a29,_0x1d4d48[_0x5407('0x72')]),_0x195d01&&(this[_0x5407('0x32')][_0x5407('0x131')](_0x1d4d48[_0x5407('0x72')])?_0x490822['writer'][_0x5407('0x6a')](_0x5407('0x94'),_0x454a29):_0x490822['writer']['removeClass'](_0x5407('0x94'),_0x454a29));for(const _0x287529 of _0x31f731[_0x5407('0x130')][_0x5407('0xbc')](_0x1d4d48[_0x5407('0x123')])['getItems']())_0x490822[_0x5407('0x105')]['consume'](_0x287529,_0x5c4a4c['name']);_0x490822[_0x5407('0x105')]['consume'](_0x1d4d48['item'],_0x5c4a4c[_0x5407('0xac')]);};_0x31f731['conversion']['for'](_0x5407('0x126'))[_0x5407('0x5f')](_0xfd99ef=>{_0xfd99ef['on']('addMarker:suggestion:formatBlock',(_0x43df5f,_0x3ca2a2,_0x4e3fd2)=>{_0x4e3fd2[_0x5407('0x9b')]['showSuggestionHighlights']&&_0x3398d3({'showActiveMarkers':!0x1})(_0x43df5f,_0x3ca2a2,_0x4e3fd2);},{'priority':_0x5407('0x39')});}),_0x31f731[_0x5407('0x0')]['for'](_0x5407('0x126'))[_0x5407('0x16')]({'model':_0x5407('0xca'),'view':(_0x501c0e,_0x304396)=>_0x304396['options'][_0x5407('0x12c')]?null:{'group':_0x5407('0xca'),'name':_0x501c0e[_0x5407('0x8f')](0xb)}}),_0x31f731['conversion'][_0x5407('0x106')](_0x5407('0x109'))[_0x5407('0x1f')]({'view':{'name':_0x5407('0xca'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x45cd1f,{writer:_0x256e92})=>{let _0x139f3=_0x5407('0xa6')+_0x45cd1f[_0x5407('0xc8')]('suggestion-type')+':'+_0x45cd1f[_0x5407('0xc8')]('id');return _0x45cd1f[_0x5407('0xc8')](_0x5407('0x95'))&&(_0x139f3+=':'+_0x45cd1f[_0x5407('0xc8')](_0x5407('0x95'))),_0x256e92[_0x5407('0xc6')](_0x5407('0xe8'),{'data-name':_0x139f3});}}),_0x31f731[_0x5407('0x0')]['for'](_0x5407('0x109'))[_0x5407('0x2d')]({'view':_0x5407('0xca')}),_0x31f731[_0x5407('0x0')][_0x5407('0x106')](_0x5407('0x12b'))[_0x5407('0x5f')](_0x1f636f=>{_0x1f636f['on'](_0x5407('0x17'),_0x3398d3(),{'priority':_0x5407('0x60')});}),_0x31f731[_0x5407('0x0')][_0x5407('0x106')](_0x5407('0x12b'))['add'](_0x3bc62d=>{_0x3bc62d['on'](_0x5407('0x79'),(_0x44f246,_0x3df9d8,_0x1ea96a)=>{const _0x53f780=_0x1ea96a[_0x5407('0x1c')]['markerNameToElements'](_0x3df9d8['markerName']);if(_0x53f780)for(const _0x4c8e0c of _0x53f780)_0x4c8e0c[_0x5407('0xc1')](_0x5407('0xa0'))||(_0x1ea96a[_0x5407('0x3c')][_0x5407('0x7b')]([_0x5407('0x6d'),'ck-suggestion-marker-formatBlock',_0x5407('0x94')],_0x4c8e0c),_0x1ea96a[_0x5407('0x3c')][_0x5407('0xba')]('data-suggestion',_0x4c8e0c),_0x1ea96a[_0x5407('0x1c')][_0x5407('0xa2')](_0x4c8e0c,_0x3df9d8[_0x5407('0x72')]));},{'priority':_0x5407('0x60')});}),_0x31f731[_0x5407('0x130')]['document'][_0x5407('0x43')](_0x530055=>{let _0x53c5e9=!0x1;const _0x1c8734=Array[_0x5407('0x40')](_0x31f731[_0x5407('0x130')][_0x5407('0xcf')][_0x5407('0xce')][_0x5407('0xe0')]()),_0x33790f=new Set();for(const {name:_0x2bf8e1,data:_0x2a67bd}of _0x1c8734){const {group:_0x6eff5f,type:_0x17f34d,id:_0xb85d2}=this[_0x5407('0xef')](_0x2bf8e1);if(_0x5407('0xca')!==_0x6eff5f)continue;const _0x416a02=this['_suggestions'][_0x5407('0x137')](_0xb85d2);if(null!=_0x2a67bd[_0x5407('0x127')]){_0x5407('0x2a')==_0x17f34d&&(_0x53c5e9=_0x53c5e9||_t(_0x2a67bd[_0x5407('0x127')],_0x2bf8e1,_0x530055,_0x31f731[_0x5407('0x130')]['schema']));if(_0x2a67bd[_0x5407('0x127')]['isCollapsed']||'$graveyard'==_0x2a67bd['newRange'][_0x5407('0x4b')][_0x5407('0x10a')]||_0x5407('0xe4')==_0x17f34d&&!$t(_0x2a67bd[_0x5407('0x127')])||_0x5407('0x4d')==_0x17f34d&&!(!Bt(_0x1db81e=_0x2a67bd[_0x5407('0x127')])&&!function(_0x3911b1){return _0x3911b1[_0x5407('0x55')][_0x5407('0x8d')]==_0x3911b1[_0x5407('0x3a')][_0x5407('0xe9')]&&_0x3911b1['start'][_0x5407('0x82')];}(_0x1db81e)))_0x530055[_0x5407('0x46')](_0x2bf8e1),_0x53c5e9=!0x0;else{if(!_0x416a02||!_0x416a02[_0x5407('0x44')])continue;_0x33790f[_0x5407('0x5f')](_0x416a02);}}}var _0x1db81e;return _0x33790f[_0x5407('0x132')]>0x0&&(_0x53c5e9=!!this[_0x5407('0x76')](_0x33790f)||_0x53c5e9),_0x53c5e9;}),_0x31f731['model']['document'][_0x5407('0x43')](_0x52b02a=>{let _0x3aec76=!0x1;for(const _0x381511 of _0x31f731[_0x5407('0x130')][_0x5407('0xcf')]['differ']['getChanges']()){if(_0x5407('0xab')!=_0x381511[_0x5407('0x33')])continue;const _0xb9cf78=_0x381511[_0x5407('0xb6')][_0x5407('0x4c')](_0x381511[_0x5407('0x25')]);if(_0xb9cf78[_0x5407('0x82')])for(const _0x1ba677 of this[_0x5407('0x1')]['values']()){if(_0x1ba677[_0x5407('0x80')]||!_0x1ba677[_0x5407('0x44')])continue;if(_0x5407('0xe4')!=_0x1ba677['type'])continue;const _0x23f7bf=_0x1ba677['getFirstRange']();if(_0x23f7bf[_0x5407('0x55')][_0x5407('0x8d')]!=_0x23f7bf[_0x5407('0x3a')][_0x5407('0x8d')]&&_0x23f7bf[_0x5407('0x3a')][_0x5407('0xfa')](_0x381511['position'])){const _0x3d3569=_0x31f731[_0x5407('0x130')][_0x5407('0xd1')](_0x23f7bf[_0x5407('0x55')],_0xb9cf78);_0x52b02a[_0x5407('0x84')](_0x1ba677[_0x5407('0x22')](),{'range':_0x3d3569}),_0x3aec76=!0x0;}}}return _0x3aec76;}),_0x31f731[_0x5407('0x130')]['markers']['on'](_0x5407('0xa5'),(_0x25f95b,_0xb18858,_0x1d3213)=>{if(null==_0x1d3213){const {id:_0x3ff2d7}=this[_0x5407('0xef')](_0xb18858[_0x5407('0xac')]),_0x34975b=this[_0x5407('0x1')][_0x5407('0x137')](_0x3ff2d7);_0x34975b&&_0x34975b[_0x5407('0x56')](_0xb18858[_0x5407('0xac')]);}}),_0x31f731[_0x5407('0x130')][_0x5407('0xcf')]['on']('change:data',()=>{const _0x4cc04e=Array[_0x5407('0x40')](_0x31f731[_0x5407('0x130')][_0x5407('0xcf')][_0x5407('0xce')][_0x5407('0xe0')]())[_0x5407('0x9a')](_0x5a0145=>_0x5407('0xca')===this[_0x5407('0xef')](_0x5a0145['name'])[_0x5407('0x98')]);if(0x0===_0x4cc04e[_0x5407('0x25')])return;_0x4cc04e['sort']((_0x378660,_0x27f6af)=>{const _0x4a4d28=_0x378660[_0x5407('0x5d')][_0x5407('0xda')],_0x4d203e=_0x27f6af[_0x5407('0x5d')][_0x5407('0xda')];return null===_0x4a4d28&&null===_0x4d203e?0x0:null===_0x4a4d28&&null!==_0x4d203e?-0x1:null!==_0x4a4d28&&null===_0x4d203e?0x1:_0x4a4d28[_0x5407('0x55')][_0x5407('0x10d')](_0x4d203e[_0x5407('0x55')])?-0x1:0x1;});const _0x19b60c=new Set(),_0x4702d7=new Set();for(const {name:_0x13bcee,data:_0x2d7e48}of _0x4cc04e){const {id:_0x45b3da}=this[_0x5407('0xef')](_0x13bcee);if(null===_0x2d7e48['oldRange']){const _0x1375c1=this[_0x5407('0x3f')](_0x13bcee);_0x4702d7['add'](_0x1375c1);}else{const _0x177d9e=this['_suggestions'][_0x5407('0x137')](_0x45b3da);null!==_0x2d7e48['newRange']||_0x177d9e[_0x5407('0x44')]?(_0x19b60c[_0x5407('0x5f')](_0x177d9e[_0x5407('0x11a')]),_0x4702d7[_0x5407('0x5f')](_0x177d9e)):this[_0x5407('0x63')](_0x177d9e);}}_0x4702d7[_0x5407('0x132')]>0x0&&this['_refreshSuggestionsChain'](_0x4702d7);for(const _0x148506 of _0x19b60c)this[_0x5407('0x4')]('suggestionChanged',_0x148506);}),_0x31f731[_0x5407('0x130')]['on'](_0x5407('0x10b'),(_0xd1113e,_0x23ec62)=>{const _0x504291=_0x23ec62[0x0];if(!this[_0x5407('0x1')]['size'])return;if(!_0x504291[_0x5407('0x101')])return;if(_0x504291[_0x5407('0xea')][_0x5407('0x7a')]||!_0x504291[_0x5407('0xea')][_0x5407('0x49')])return;let _0x5ae816,_0x3185a1;switch(_0x504291[_0x5407('0x33')]){case _0x5407('0xab'):_0x5ae816=_0x31f731[_0x5407('0x130')]['createPositionAt'](_0x504291[_0x5407('0xb6')]),_0x3185a1=_0x5ae816['getShiftedBy'](_0x504291[_0x5407('0xc5')]);break;case _0x5407('0x89'):_0x5ae816=_0x31f731[_0x5407('0x130')][_0x5407('0x8c')](_0x504291['splitPosition']),_0x3185a1=_0x31f731[_0x5407('0x130')][_0x5407('0x8c')](_0x504291[_0x5407('0x7')]);break;case _0x5407('0x3e'):_0x5ae816=_0x31f731[_0x5407('0x130')][_0x5407('0x8c')](_0x504291[_0x5407('0x107')]),_0x3185a1=_0x5ae816[_0x5407('0x4c')](_0x504291['howMany']);break;default:return;}const _0x3b597a=_0x31f731['model'][_0x5407('0xd1')](_0x5ae816,_0x3185a1);_0x31f731[_0x5407('0x130')]['change'](()=>{for(const {suggestion:_0x126c04,meta:_0x5e4ac2}of this[_0x5407('0x92')](_0x3b597a)){if(_0x126c04[_0x5407('0x80')])continue;if(_0x5407('0x2a')==_0x126c04['type'])continue;const _0x2b5c51=_0x126c04[_0x5407('0x5d')]&&_0x126c04['data'][_0x5407('0x41')];(_0x5407('0xe4')!=_0x126c04[_0x5407('0x33')]||_0x5407('0x89')==_0x504291[_0x5407('0x33')]&&!_0x2b5c51)&&(_0x5e4ac2[_0x5407('0x10e')]||_0x5407('0x99')==_0x126c04['type']&&_0x5e4ac2[_0x5407('0xbd')]||_0x126c04['getFirstRange']()[_0x5407('0xf4')](_0x3b597a)&&this[_0x5407('0x74')](_0x126c04,_0x5ae816,_0x3185a1));}});},{'priority':'lowest'}),_0x31f731[_0x5407('0x130')]['on']('deleteContent',(_0x423ae5,_0x176f1d)=>{const _0x405433=_0x176f1d[0x0],_0x220296=_0x176f1d[0x1];if(_0x220296&&_0x220296[_0x5407('0x10c')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x5407('0xa7')][_0x5407('0xeb')])return;if(_0x405433[_0x5407('0xed')])return;const _0x42dfb5=_0x31f731[_0x5407('0x130')]['schema'],{start:_0x8fd354,end:_0x3bb0c7}=_0x405433[_0x5407('0x19')](),_0x3042dc=_0x8fd354[_0x5407('0x111')]&&_0x42dfb5[_0x5407('0x1a')](_0x8fd354[_0x5407('0x111')])?null:_0x42dfb5[_0x5407('0x4a')](_0x8fd354,_0x5407('0x31')),_0x45d74a=_0x3bb0c7[_0x5407('0xe9')]&&_0x42dfb5['isLimit'](_0x3bb0c7[_0x5407('0xe9')])?null:_0x42dfb5[_0x5407('0x4a')](_0x3bb0c7,_0x5407('0xcc')),_0x4e3655=_0x31f731[_0x5407('0x130')]['createRange'](_0x3042dc?_0x3042dc[_0x5407('0x55')]:_0x8fd354,_0x45d74a?_0x45d74a[_0x5407('0x3a')]:_0x3bb0c7);_0x31f731[_0x5407('0x130')][_0x5407('0x11f')](_0x38297a=>{this[_0x5407('0xa1')](_0x4e3655);const _0x15646e=_0x31f731[_0x5407('0x130')][_0x5407('0x7e')]['getNearestSelectionRange'](_0x4e3655[_0x5407('0x55')]);_0x405433['is'](_0x5407('0xb7'))?_0x38297a[_0x5407('0x29')](_0x15646e):_0x405433[_0x5407('0xe6')](_0x15646e);}),_0x423ae5[_0x5407('0xb')]();},{'priority':_0x22ed0b[_0x5407('0x11d')]+0xa}),_0x31f731['model']['on'](_0x5407('0xc'),(_0x38c7f7,_0x2965cd)=>{const _0x4e5bdb=_0x2965cd[_0x2965cd['length']-0x1];_0x4e5bdb&&_0x4e5bdb[_0x5407('0x10c')]||this[_0x5407('0xf6')]||this[_0x5407('0xa7')][_0x5407('0xeb')]&&(_0x31f731['model'][_0x5407('0x11f')](()=>{let _0x11ef77=_0x31f731[_0x5407('0x130')]['insertContent'](_0x2965cd[0x0],_0x2965cd[0x1],_0x2965cd[0x2],{'forceDefaultExecution':!0x0});if(!_0x11ef77)return;_0x38c7f7['return']=_0x11ef77[_0x5407('0x53')]();const _0x1fb275=_0x11ef77[_0x5407('0x3a')]['nodeBefore'],_0x378a8a=_0x31f731[_0x5407('0x130')]['schema'];_0x1fb275&&_0x378a8a['isBlock'](_0x1fb275)&&!_0x378a8a[_0x5407('0x50')](_0x1fb275)&&(_0x11ef77=_0x31f731['model'][_0x5407('0xd1')](_0x11ef77[_0x5407('0x55')],_0x31f731[_0x5407('0x130')][_0x5407('0x8c')](_0x1fb275,_0x5407('0x3a')))),this[_0x5407('0xc9')](_0x11ef77);}),_0x38c7f7[_0x5407('0xb')]());},{'priority':_0x5407('0x60')}),this[_0x5407('0xb2')]['commands']['add'](_0x5407('0x6e'),this[_0x5407('0xa7')]),this['enableCommand']('trackChanges');const _0x3d4455=new _0x2e24c2(_0x31f731,this[_0x5407('0x1')]);_0x31f731[_0x5407('0x14')][_0x5407('0x5f')](_0x5407('0x34'),_0x3d4455),this[_0x5407('0x35')](_0x5407('0x34'));const _0x4ca597=new _0x4dd945(_0x31f731,this[_0x5407('0x1')]);_0x31f731[_0x5407('0x14')][_0x5407('0x5f')](_0x5407('0x2e'),_0x4ca597),this[_0x5407('0x35')](_0x5407('0x2e')),_0x31f731[_0x5407('0x14')][_0x5407('0x5f')](_0x5407('0x6c'),new _0x5d31d7(_0x31f731,_0x3d4455,this[_0x5407('0x1')])),this['enableCommand'](_0x5407('0x6c')),_0x31f731[_0x5407('0x14')][_0x5407('0x5f')](_0x5407('0xbe'),new _0x5d31d7(_0x31f731,_0x4ca597,this['_suggestions'])),this[_0x5407('0x35')](_0x5407('0xbe')),_0x31f731[_0x5407('0x14')][_0x5407('0x5f')](_0x5407('0x1b'),new _0x16a204(_0x31f731,_0x3d4455,this[_0x5407('0x1')])),this[_0x5407('0x35')]('acceptSelectedSuggestions'),_0x31f731[_0x5407('0x14')][_0x5407('0x5f')](_0x5407('0x85'),new _0x16a204(_0x31f731,_0x4ca597,this[_0x5407('0x1')])),this['enableCommand'](_0x5407('0x85'));const _0x21e86a=_0x31f731[_0x5407('0x133')]['get']('CommentsRepository');this[_0x5407('0x13')](_0x21e86a,'addComment',(_0x384622,{threadId:_0x9c9c27})=>{const _0x134709=this[_0x5407('0x1')][_0x5407('0x137')](_0x9c9c27);_0x134709&&_0x134709[_0x5407('0x118')]&&0x1===_0x134709[_0x5407('0x118')]['length']&&this[_0x5407('0x28')](_0x9c9c27,{'hasComments':!0x0});},{'priority':'low'}),this[_0x5407('0x13')](_0x21e86a,_0x5407('0xe2'),(_0x48348a,{threadId:_0x33056c})=>{const _0x2cbacc=this[_0x5407('0x1')][_0x5407('0x137')](_0x33056c);_0x2cbacc&&_0x2cbacc[_0x5407('0x118')]&&!_0x2cbacc[_0x5407('0x118')][_0x5407('0x25')]&&this[_0x5407('0x28')](_0x33056c,{'hasComments':!0x1});},{'priority':_0x5407('0xa3')});}set[_0x5407('0xf2')](_0x5c3bde){if(this[_0x5407('0xa8')])throw new _0x468b33(_0x5407('0xc4'),this);this[_0x5407('0xa8')]=_0x5c3bde;}get[_0x5407('0xf2')](){return this['_adapter'];}[_0x5407('0xf')]({skipNotAttached:_0x1c655c=!0x1,toJSON:_0x23c4bd=!0x1}={}){const _0x5ed8de=[];for(const _0x11fb7f of this[_0x5407('0x1')][_0x5407('0x27')]())_0x1c655c&&!_0x11fb7f['isInContent']||_0x5ed8de['push'](_0x11fb7f);return _0x23c4bd?_0x5ed8de['map'](_0x4afa25=>_0x4afa25[_0x5407('0x86')]()):_0x5ed8de;}[_0x5407('0x23')](_0x529fad){const _0x53315a=this[_0x5407('0x1')][_0x5407('0x137')](_0x529fad);if(!_0x53315a)throw new _0x468b33(_0x5407('0x2'),this);return _0x53315a;}['hasSuggestion'](_0x4106e9){return this['_suggestions']['has'](_0x4106e9);}['addSuggestionData'](_0x4e3b2f){const {authorId:_0x341c45,id:_0xe4d5a5,attributes:_0x113736}=_0x4e3b2f,[_0x4d0aed,_0x5a5f6c]=_0x4e3b2f['type'][_0x5407('0x89')](':'),_0x31ff49=this[_0x5407('0x1')][_0x5407('0x137')](_0xe4d5a5)||this[_0x5407('0xd6')](_0x4d0aed,_0x5a5f6c,_0xe4d5a5,_0x341c45,_0x113736);if(this[_0x5407('0x8a')](_0x31ff49),this['_checkSuggestionCorrectness'](_0x31ff49,_0x4d0aed,_0x5a5f6c||null,_0x341c45),_0x31ff49[_0x5407('0xc0')]=_0x4e3b2f[_0x5407('0xc0')],_0x113736&&_0x113736[_0x5407('0x4f')]){const _0x367a0b=_0x113736[_0x5407('0x4f')],_0x1bbfdc=this['_getExternalAuthor'](_0x367a0b['authorName']);_0x31ff49[_0x5407('0x102')]=_0x367a0b[_0x5407('0xc0')],_0x31ff49[_0x5407('0x121')]=_0x1bbfdc,_0x31ff49[_0x5407('0x8e')]=!0x0;}else _0x31ff49['authoredAt']=_0x4e3b2f['createdAt'];switch(_0x4e3b2f[_0x5407('0x5d')]&&(_0x31ff49[_0x5407('0x5d')]=_0x4e3b2f[_0x5407('0x5d')]),_0x4e3b2f[_0x5407('0xd0')]&&(_0x31ff49[_0x5407('0xd0')]=_0x4e3b2f[_0x5407('0xd0')]),this['_adapter']&&this[_0x5407('0xa8')][_0x5407('0x12e')]||(_0x31ff49[_0x5407('0xc3')]=!0x0),this[_0x5407('0x119')][_0x5407('0x137')](_0x31ff49)){case _0x5407('0x9'):this[_0x5407('0x119')][_0x5407('0x48')](_0x31ff49,_0x5407('0x5b'));break;case'markerReady':_0x31ff49['isInContent']?(this[_0x5407('0x119')]['set'](_0x31ff49,_0x5407('0x2b')),this[_0x5407('0x4')](_0x5407('0x5c'),_0x31ff49)):this[_0x5407('0x119')][_0x5407('0x48')](_0x31ff49,_0x5407('0x129'));}return _0x31ff49;}[_0x5407('0x34')](_0x587827){this[_0x5407('0x10c')](()=>{this['editor'][_0x5407('0x130')][_0x5407('0x11f')](()=>{for(const _0x4f5f48 of _0x587827['getAllAdjacentSuggestions']())_0x4f5f48['accept']();});});}[_0x5407('0x2e')](_0x99f2f2){this['forceDefaultExecution'](()=>{this[_0x5407('0xb2')]['model'][_0x5407('0x11f')](()=>{for(const _0x425af3 of _0x99f2f2[_0x5407('0x6b')]())_0x425af3[_0x5407('0x9d')]();});});}['enableCommand'](_0x46135e,_0x29f397){const _0x5e18e1=this[_0x5407('0xb2')]['commands'][_0x5407('0x137')](_0x46135e);if(!_0x5e18e1)throw new _0x468b33(_0x5407('0xbb'),this,{'commandName':_0x46135e});this['_enabledCommands']['add'](_0x5e18e1),_0x29f397&&_0x5e18e1['on'](_0x5407('0x97'),(_0x4d14e0,_0x245612)=>{this[_0x5407('0xa7')]['value']&&(this[_0x5407('0xf6')]||_0x245612['length']>0x0&&_0x245612[_0x245612['length']-0x1]&&_0x245612[_0x245612[_0x5407('0x25')]-0x1][_0x5407('0x10c')]||(_0x29f397((..._0x1296e3)=>_0x5e18e1[_0x5407('0x97')](..._0x1296e3,{'forceDefaultExecution':!0x0}),..._0x245612),_0x4d14e0[_0x5407('0xb')]()));},{'priority':_0x5407('0x60')});}[_0x5407('0x10c')](_0x47d674){let _0x1b80e5,_0x1de276;const _0x28d19a=this[_0x5407('0xf6')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1b80e5=_0x47d674();}catch(_0x57a085){_0x1de276=_0x57a085;}return _0x28d19a||(this[_0x5407('0xf6')]=!0x1),_0x1de276&&_0x468b33[_0x5407('0xc7')](_0x1de276,this),_0x1b80e5;}[_0x5407('0xc9')](_0x56217f,_0x36c9d9=null,_0x3d7efd={}){if(_0x56217f[_0x5407('0xed')])return null;const _0x4c5eba=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0xdc'))['me'];for(const {suggestion:_0x1a9252,meta:_0x374f30}of this['_findSuggestions'](_0x56217f,_0x5407('0x99')))if(_0x374f30[_0x5407('0xbd')]){if(!_0x374f30[_0x5407('0x103')]){if(!this[_0x5407('0xff')]&&_0x374f30[_0x5407('0x10e')])continue;return _0x1a9252;}if(_0x36c9d9==_0x1a9252[_0x5407('0x38')]){const _0x5efcde=_0x1a9252[_0x5407('0x19')]();return _0x5efcde[_0x5407('0x55')][_0x5407('0xfa')](_0x56217f['end'])?this[_0x5407('0x116')](_0x1a9252,this[_0x5407('0xb9')][_0x5407('0xd1')](_0x56217f['start'],_0x5efcde['end'])):this[_0x5407('0x116')](_0x1a9252,this[_0x5407('0xb9')]['createRange'](_0x5efcde[_0x5407('0x55')],_0x56217f[_0x5407('0x3a')])),_0x1a9252;}}const _0x5cd2dc=_0x3f2a4c(),_0x14fa5d=_0x4c5eba['id'],_0x2ed401=_0x36c9d9?'insertion:'+_0x36c9d9:_0x5407('0x99'),_0x1a7120=this[_0x5407('0x8')]({'id':_0x5cd2dc,'type':_0x2ed401,'createdAt':new Date(),'authorId':_0x14fa5d,'attributes':_0x3d7efd});return this[_0x5407('0x73')](_0x2ed401,_0x5cd2dc,_0x14fa5d,_0x56217f),_0x1a7120;}[_0x5407('0x96')](_0x4da630,_0x3a6f1c=_0x5407('0x112'),_0x2848d1={}){const _0x1ca94b=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0xdc'))['me'],_0x3b1a9c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3a6f1c,_0x5407('0xc2'));for(const _0x5e955e of this[_0x5407('0xf')]())if(_0x5e955e[_0x5407('0x121')]['id']==_0x1ca94b['id']&&'insertion'==_0x5e955e['type']&&_0x5e955e[_0x5407('0x38')]==_0x3a6f1c&&(_0x3b1a9c(_0x5e955e[_0x5407('0x136')](),_0x4da630)||_0x3b1a9c(_0x4da630,_0x5e955e[_0x5407('0x136')]()))){for(const _0x18126 of _0x4da630)_0x5e955e[_0x5407('0xfe')](_0x18126);return _0x5e955e;}if(this[_0x5407('0xff')])for(const _0x353c71 of _0x4da630)for(const {suggestion:_0x6b278c,meta:_0x81f3ae}of this[_0x5407('0x92')](_0x353c71,_0x5407('0x99'))){if(!_0x81f3ae['isOwn'])continue;let _0x1f01c4=!0x0;for(const _0x50b074 of _0x6b278c['getRanges']())for(const _0x2dfa68 of _0x4da630)if(!_0x50b074['containsRange'](_0x2dfa68)){_0x1f01c4=!0x1;break;}if(_0x1f01c4)return _0x6b278c;}const _0x45b6bd=_0x3f2a4c(),_0x51f4f5=_0x1ca94b['id'],_0x3af5e5=_0x5407('0x47')+_0x3a6f1c,_0x29fe41=this['_setSuggestionData']({'id':_0x45b6bd,'type':_0x3af5e5,'createdAt':new Date(),'authorId':_0x51f4f5,'attributes':_0x2848d1});for(const _0x2a08cc of _0x4da630)this[_0x5407('0x73')](_0x3af5e5,_0x45b6bd,_0x51f4f5,_0x2a08cc,_0x37741b['getMultiRangeId']());return _0x29fe41;}['markInlineFormat'](_0x4f0f31,_0x1bddd8,_0x176f5e=null,_0x5c0e05={}){if(_0x176f5e=_0x176f5e||Mt(_0x1bddd8),_0x4f0f31[_0x5407('0xed')])return null;if(_0x5407('0x7c')===this[_0x5407('0x75')]){const _0x36baf9=this[_0x5407('0xaf')][_0x5407('0x37')](_0x5407('0x2a'),_0x176f5e,_0x5407('0xbf'));return this[_0x5407('0x10c')](()=>_0x36baf9([_0x4f0f31],_0x1bddd8,_0x5c0e05)),null;}const _0x1afe22=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0xdc'))['me'],_0x2e5f37=[];if(_0x5407('0xd3')!==this['_trackFormatChanges'])for(const {suggestion:_0xbf9ef6,meta:_0x3b6997}of this[_0x5407('0x92')](_0x4f0f31,_0x5407('0x99')))_0x3b6997[_0x5407('0xbd')]&&!_0x3b6997[_0x5407('0x71')]&&_0x2e5f37[_0x5407('0x61')](..._0xbf9ef6['getRanges']());const _0x2bbe3d=function(_0x1139ed,_0x370b12){const _0x52f65f=[];for(const _0x59685d of _0x370b12){const _0x41e9ff=_0x1139ed[_0x5407('0x10f')](_0x59685d);_0x41e9ff&&_0x52f65f['push'](_0x41e9ff);}return _0x52f65f;}(_0x4f0f31,_0x2e5f37),_0x1a52f6=function(_0x581776,_0x4ad772){const _0x1bc89c=[_0x581776];for(const _0x10f8cd of _0x4ad772){let _0xd2f4=0x0;for(;_0xd2f4<_0x1bc89c[_0x5407('0x25')];){const _0x2f3f06=_0x1bc89c[_0xd2f4][_0x5407('0x66')](_0x10f8cd);_0x1bc89c[_0x5407('0xe5')](_0xd2f4,0x1,..._0x2f3f06),_0xd2f4+=_0x2f3f06['length'];}}return _0x1bc89c;}(_0x4f0f31,_0x2e5f37);_0x2bbe3d[_0x5407('0x25')]&&this[_0x5407('0xb9')][_0x5407('0x11f')](()=>{for(const _0x3714fb of _0x2bbe3d){const _0x595c4a=this[_0x5407('0xaf')]['getSuggestionCallback'](_0x5407('0x2a'),_0x176f5e,'accept');this[_0x5407('0x10c')](()=>_0x595c4a([_0x3714fb],_0x1bddd8,_0x5c0e05));}});for(const _0x1884f1 of _0x1a52f6){let _0x1eacd1=null,_0x103ea1=_0x1884f1[_0x5407('0x55')],_0x1b4778=_0x1884f1[_0x5407('0x3a')];for(const {suggestion:_0x23d292,meta:_0x1419bc}of this[_0x5407('0x92')](_0x1884f1,_0x5407('0x2a'))){if(!_0x1419bc[_0x5407('0xbd')])continue;if(_0x23d292[_0x5407('0x38')]!=_0x176f5e)continue;const _0x3a6fff=_0x23d292[_0x5407('0x19')]();if(_0x3a6fff[_0x5407('0xf4')](_0x1884f1,!0x0))return null;_0x103ea1=_0x103ea1[_0x5407('0x10d')](_0x3a6fff['start'])?_0x103ea1:_0x3a6fff[_0x5407('0x55')],_0x1b4778=_0x1b4778[_0x5407('0x11e')](_0x3a6fff[_0x5407('0x3a')])?_0x1b4778:_0x3a6fff[_0x5407('0x3a')],_0x1eacd1?_0x3a6fff[_0x5407('0x55')][_0x5407('0x10d')](_0x1eacd1[_0x5407('0x19')]()[_0x5407('0x55')])?(_0x1eacd1['removeMarkers'](),_0x1eacd1=_0x23d292):_0x23d292[_0x5407('0x65')]():_0x1eacd1=_0x23d292;}const _0x13162e=this['_model'][_0x5407('0xd1')](_0x103ea1,_0x1b4778);if(_0x1eacd1)this[_0x5407('0x116')](_0x1eacd1,_0x13162e);else{const _0xb0c371=_0x3f2a4c(),_0x3c0d23=_0x1afe22['id'];this[_0x5407('0x8')]({'id':_0xb0c371,'type':_0x5407('0x9c')+_0x176f5e,'data':_0x1bddd8,'createdAt':new Date(),'authorId':_0x3c0d23,'attributes':_0x5c0e05}),this[_0x5407('0x73')](_0x5407('0x9c')+_0x176f5e,_0xb0c371,_0x3c0d23,_0x13162e);}}return null;}[_0x5407('0x42')](_0x1ab1ef,_0x22e2e4,_0x1ae6b9=[],_0x3fb056=null,_0xe93115={}){_0x22e2e4[_0x5407('0x68')]||(_0x22e2e4[_0x5407('0x68')]=_0x22e2e4[_0x5407('0x18')]),_0x22e2e4[_0x5407('0x41')]=_0x1ab1ef['is'](_0x5407('0x12d')),_0x3fb056=_0x3fb056||Mt(_0x22e2e4);const _0xec9abd=_0x1ae6b9[_0x5407('0x15')](_0x8e35f0=>Nt(_0x8e35f0,this[_0x5407('0xb9')])),_0x317a68=_0x1ab1ef['is']('range')?_0x1ab1ef:Nt(_0x1ab1ef,this[_0x5407('0xb9')]);if(_0x5407('0x7c')===this[_0x5407('0x75')]){const _0x54e05a=this[_0x5407('0xaf')][_0x5407('0x37')]('formatBlock',_0x3fb056,_0x5407('0xbf'));return this[_0x5407('0x10c')](()=>_0x54e05a([_0x317a68],_0x22e2e4,_0xe93115)),null;}_0xec9abd[_0x5407('0x61')](_0x317a68);let _0x34cac4=!0x0;for(const _0x2ae9c6 of _0xec9abd)if(!this['_rangeIsInLocalUserInsertion'](_0x2ae9c6)){_0x34cac4=!0x1;break;}if(_0x34cac4&&_0x5407('0xd3')!==this[_0x5407('0x75')]){const _0x22e931=this[_0x5407('0xaf')]['getSuggestionCallback']('formatBlock',_0x3fb056,'accept');return this[_0x5407('0x10c')](()=>_0x22e931([_0x317a68],_0x22e2e4,_0xe93115)),null;}let _0x550139=null,_0xd11d82=_0x317a68[_0x5407('0x55')],_0x36bd12=_0x317a68['end'];for(const {suggestion:_0x5b07f5,meta:_0x4b386f}of this['_findSuggestions'](_0x317a68,'formatBlock')){if(!_0x4b386f[_0x5407('0xbd')]||_0x4b386f[_0x5407('0x103')]||_0x4b386f[_0x5407('0x10e')]||_0x4b386f['isInsideObject'])continue;if(_0x5b07f5['data'][_0x5407('0x68')]!=_0x22e2e4[_0x5407('0x68')])continue;const _0x47d635=_0x5b07f5[_0x5407('0x19')]();if(_0x5b07f5[_0x5407('0x38')]==_0x3fb056){if(_0x47d635[_0x5407('0xf4')](_0x317a68,!0x0))return null;_0xd11d82=_0xd11d82[_0x5407('0x10d')](_0x47d635[_0x5407('0x55')])?_0xd11d82:_0x47d635['start'],_0x36bd12=_0x36bd12[_0x5407('0x11e')](_0x47d635[_0x5407('0x3a')])?_0x36bd12:_0x47d635['end'],_0x550139?_0x47d635[_0x5407('0x55')][_0x5407('0x10d')](_0x550139['getFirstRange']()[_0x5407('0x55')])?(_0x550139[_0x5407('0x65')](),_0x550139=_0x5b07f5):_0x5b07f5[_0x5407('0x65')]():_0x550139=_0x5b07f5;}else{const _0x25d4d2=_0x317a68[_0x5407('0x10f')](_0x47d635);this['_cutOutSuggestionMarker'](_0x5b07f5,_0x25d4d2);}}const _0x34dcc7=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')]('Users')['me'],_0x47f4c1=_0x3f2a4c(),_0x5ee070=_0x34dcc7['id'];if(_0x550139)return this[_0x5407('0x116')](_0x550139,this['_model'][_0x5407('0xd1')](_0xd11d82,_0x36bd12)),_0x550139;{const _0x3e29e=this[_0x5407('0x8')]({'id':_0x47f4c1,'type':_0x5407('0x1d')+_0x3fb056,'data':_0x22e2e4,'createdAt':new Date(),'authorId':_0x5ee070,'attributes':_0xe93115});return this[_0x5407('0x73')]('formatBlock:'+_0x3fb056,_0x47f4c1,_0x5ee070,this[_0x5407('0xb9')][_0x5407('0xd1')](_0xd11d82,_0x36bd12)),_0x3e29e;}}[_0x5407('0x135')](_0x23e8cb,_0x5a7010,_0x4ffcd4=[],_0x492a66=null,_0x36a9a2={}){_0x5a7010[_0x5407('0x68')]||(_0x5a7010[_0x5407('0x68')]=_0x5a7010[_0x5407('0x18')]);const _0x17bdf4=_0x23e8cb[0x0];_0x5a7010[_0x5407('0x41')]=_0x17bdf4['is'](_0x5407('0x12d')),_0x492a66=_0x492a66||Mt(_0x5a7010);const _0x3572d6=_0x4ffcd4[_0x5407('0x15')](_0x10855f=>Nt(_0x10855f,this['_model'])),_0xdfe8bc=_0x17bdf4['is'](_0x5407('0x12d'))?_0x23e8cb:_0x23e8cb['map'](_0x1bb88b=>Nt(_0x1bb88b,this['_model']));if('never'===this[_0x5407('0x75')]){const _0x76eeeb=this[_0x5407('0xaf')][_0x5407('0x37')]('formatBlock',_0x492a66,_0x5407('0xbf'));return this[_0x5407('0x10c')](()=>_0x76eeeb(_0xdfe8bc,_0x5a7010,_0x36a9a2)),null;}_0x3572d6[_0x5407('0x61')](..._0xdfe8bc);let _0x19a8d3=!0x0;for(const _0x21e3e1 of _0x3572d6)if(!this[_0x5407('0xd8')](_0x21e3e1)){_0x19a8d3=!0x1;break;}if(_0x19a8d3&&_0x5407('0xd3')!==this[_0x5407('0x75')]){const _0x56139b=this[_0x5407('0xaf')][_0x5407('0x37')]('formatBlock',_0x492a66,'accept');return this[_0x5407('0x10c')](()=>_0x56139b(_0xdfe8bc,_0x5a7010,_0x36a9a2)),null;}const _0x55c17b=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0xdc'))['me'];for(const _0xc9eefa of this[_0x5407('0xf')]()){if(_0xc9eefa[_0x5407('0x121')]['id']!=_0x55c17b['id'])continue;if('formatBlock'!=_0xc9eefa[_0x5407('0x33')]||_0xc9eefa[_0x5407('0x5d')][_0x5407('0x68')]!=_0x5a7010['formatGroupId'])continue;const _0x3b0943=_0xc9eefa[_0x5407('0x38')]==_0x492a66;for(let _0x29139b=0x0;_0x29139b<_0xdfe8bc[_0x5407('0x25')];_0x29139b++){const _0x53dc23=_0xdfe8bc[_0x29139b];for(const _0x20f1f8 of _0xc9eefa['getMarkers']()){const _0x45f008=_0x20f1f8[_0x5407('0xdf')]();if(_0x53dc23[_0x5407('0xfa')](_0x45f008)){_0x3b0943?(_0xdfe8bc[_0x5407('0xe5')](_0x29139b,0x1),_0x29139b--):_0xc9eefa['removeMarker'](_0x20f1f8[_0x5407('0xac')]);break;}}}}if(0x0==_0xdfe8bc[_0x5407('0x25')])return null;const _0xdbcb3b=this[_0x5407('0xaf')][_0x5407('0x37')](_0x5407('0xe4'),_0x492a66,_0x5407('0xc2'));for(const _0x2fce30 of this['getSuggestions']())if(_0x2fce30[_0x5407('0x121')]['id']==_0x55c17b['id']&&_0x5407('0xe4')==_0x2fce30[_0x5407('0x33')]&&_0x2fce30['data'][_0x5407('0x68')]==_0x5a7010[_0x5407('0x68')]&&_0x2fce30[_0x5407('0x38')]==_0x492a66&&(_0xdbcb3b(_0x2fce30[_0x5407('0x136')](),_0xdfe8bc)||_0xdbcb3b(_0xdfe8bc,_0x2fce30[_0x5407('0x136')]()))){for(const _0x27d7fa of _0xdfe8bc)_0x2fce30[_0x5407('0xfe')](_0x27d7fa);return _0x2fce30;}const _0x3805dd=_0x3f2a4c(),_0x144660=_0x55c17b['id'],_0x45e75b='formatBlock:'+_0x492a66,_0x20b75f=this[_0x5407('0x8')]({'id':_0x3805dd,'type':_0x45e75b,'data':_0x5a7010,'createdAt':new Date(),'authorId':_0x144660,'attributes':_0x36a9a2});for(const _0x270f9e of _0xdfe8bc)this[_0x5407('0x73')](_0x45e75b,_0x3805dd,_0x144660,_0x270f9e,_0x37741b['getMultiRangeId']());return _0x20b75f;}[_0x5407('0xa1')](_0x5f5c34,_0x3fef5f=null,_0x93c9f={}){if(_0x5f5c34[_0x5407('0xed')])return null;const _0x52155d=this['editor'][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0xdc'))['me'],_0x37e479=new _0x376084(_0x5f5c34[_0x5407('0x55')],_0x5f5c34['end']);for(const {suggestion:_0x451fc4,meta:_0x308765}of this[_0x5407('0x92')](_0x37e479,_0x5407('0x99')))if(_0x308765[_0x5407('0xbd')]&&!_0x308765[_0x5407('0x103')]){if(_0x451fc4['isMultiRange']){const _0x18617a=_0x451fc4[_0x5407('0x136')]()[_0x5407('0x9a')](_0x531a61=>'$graveyard'!=_0x531a61['root'][_0x5407('0x10a')]);_0x18617a['every'](_0x5a1f12=>_0x37e479[_0x5407('0xf4')](_0x5a1f12,!0x0))&&_0x451fc4[_0x5407('0x9d')]();if(_0x18617a[_0x5407('0x138')](_0x101dad=>_0x101dad['containsRange'](_0x37e479,!0x0))){const _0x5b389a=this[_0x5407('0xaf')][_0x5407('0x37')]('deletion',_0x3fef5f,_0x5407('0xbf'));return this[_0x5407('0x10c')](()=>_0x5b389a([_0x37e479],null,_0x93c9f)),null;}}else{const _0x10236b=_0x37e479['getIntersection'](_0x451fc4['getFirstRange']());null!==_0x10236b&&_0x451fc4[_0x5407('0x9e')]([_0x10236b],null,_0x93c9f);}}if(_0x37e479[_0x5407('0x70')](),_0x37e479[_0x5407('0xed')]||'$graveyard'==_0x37e479['root'][_0x5407('0x10a')])return null;let _0x45e1c1=null,_0x37c831=_0x37e479[_0x5407('0x55')],_0x8b288a=_0x37e479[_0x5407('0x3a')];for(const {suggestion:_0x534a56,meta:_0x4f13bb}of this[_0x5407('0x92')](_0x37e479,_0x5407('0x4d')))if(_0x4f13bb[_0x5407('0xbd')]){if(_0x534a56['isMultiRange']&&this['_mergeNestedSuggestions']){let _0x46a981=!0x0;for(const _0x4e7393 of _0x534a56['getRanges']()){if(_0x4e7393[_0x5407('0xf4')](_0x37e479,!0x0))return _0x534a56;_0x37e479[_0x5407('0xf4')](_0x4e7393)||(_0x46a981=!0x1);}_0x46a981&&_0x534a56['discard']();}else{const _0x3f40a3=_0x534a56[_0x5407('0x19')]();if(_0x3f40a3['containsRange'](_0x37e479,!0x0)){if(!this[_0x5407('0xff')]&&_0x4f13bb[_0x5407('0x10e')])continue;return _0x534a56;}_0x37c831=_0x37c831[_0x5407('0x10d')](_0x3f40a3[_0x5407('0x55')])?_0x37c831:_0x3f40a3[_0x5407('0x55')],_0x8b288a=_0x8b288a['isAfter'](_0x3f40a3[_0x5407('0x3a')])?_0x8b288a:_0x3f40a3['end'],_0x45e1c1?_0x3f40a3[_0x5407('0x55')][_0x5407('0x10d')](_0x45e1c1[_0x5407('0x19')]()[_0x5407('0x55')])?(_0x45e1c1[_0x5407('0x65')](),_0x45e1c1=_0x534a56):_0x534a56[_0x5407('0x65')]():_0x45e1c1=_0x534a56;}}if(_0x45e1c1)return this[_0x5407('0x116')](_0x45e1c1,this[_0x5407('0xb9')]['createRange'](_0x37c831,_0x8b288a)),_0x45e1c1;{const _0x2a3e36=_0x3f2a4c(),_0x49262a=this[_0x5407('0xb9')]['createRange'](_0x37c831,_0x8b288a),_0xb151ad=_0x52155d['id'],_0x4e2a14=_0x3fef5f?_0x5407('0x83')+_0x3fef5f:_0x5407('0x4d'),_0x30959c=this[_0x5407('0x8')]({'id':_0x2a3e36,'type':_0x4e2a14,'createdAt':new Date(),'authorId':_0xb151ad,'attributes':_0x93c9f});return this[_0x5407('0x73')](_0x4e2a14,_0x2a3e36,_0xb151ad,_0x49262a),_0x30959c;}}[_0x5407('0xdb')](_0x35c99e,_0x4b8f90=_0x5407('0x112'),_0x1d6542={}){const _0x30a66c=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0xdc'))['me'],_0x5c11b9=_0x35c99e[_0x5407('0x15')](_0x96f060=>new _0x376084(_0x96f060[_0x5407('0x55')],_0x96f060[_0x5407('0x3a')])),_0x140702=new Set();for(const _0x48ae50 of _0x5c11b9)for(const {suggestion:_0x44c7e6,meta:_0x4d13cd}of this[_0x5407('0x92')](_0x48ae50,_0x5407('0x99')))_0x4d13cd[_0x5407('0xbd')]&&!_0x4d13cd[_0x5407('0x103')]&&_0x140702[_0x5407('0x5f')](_0x44c7e6);for(const _0x217add of _0x140702)if(_0x217add['isMultiRange']){const _0x35cc04=_0x217add[_0x5407('0x136')]();(!_0x217add[_0x5407('0xd0')]||!_0x217add[_0x5407('0xd0')]['skipNestingCheck'])&&(_0x35cc04[_0x5407('0x88')](_0x1e57f5=>_0x5c11b9[_0x5407('0x138')](_0x134f48=>_0x134f48[_0x5407('0xf4')](_0x1e57f5,!0x0)))&&_0x217add[_0x5407('0x9d')]());if(_0x5c11b9[_0x5407('0x88')](_0x437a74=>_0x35cc04[_0x5407('0x138')](_0x3a5844=>_0x3a5844[_0x5407('0xf4')](_0x437a74,!0x0)))){const _0x3d2c5e=this[_0x5407('0xaf')][_0x5407('0x37')](_0x5407('0x4d'),_0x4b8f90,_0x5407('0xbf'));return this[_0x5407('0x10c')](()=>_0x3d2c5e(_0x35c99e,null,_0x1d6542)),null;}}else{const _0xb00579=_0x217add[_0x5407('0x19')]();_0x5c11b9[_0x5407('0x138')](_0x1ba4be=>_0x1ba4be['containsRange'](_0xb00579,!0x0))&&_0x217add[_0x5407('0x9d')]();if(_0x5c11b9[_0x5407('0x88')](_0x3b167c=>_0xb00579[_0x5407('0xf4')](_0x3b167c,!0x0))){const _0x3393cf=this[_0x5407('0xaf')][_0x5407('0x37')](_0x5407('0x4d'),_0x4b8f90,_0x5407('0xbf'));return this[_0x5407('0x10c')](()=>_0x3393cf(_0x5c11b9,null,_0x1d6542)),null;}}const _0x59fc98=this['_suggestionFactory'][_0x5407('0x37')](_0x5407('0x4d'),_0x4b8f90,'join');let _0x1731dd=null;for(const _0x29fe67 of this[_0x5407('0xf')]())if(_0x29fe67['author']['id']==_0x30a66c['id']&&_0x29fe67[_0x5407('0x44')]&&_0x5407('0x4d')==_0x29fe67[_0x5407('0x33')]&&_0x29fe67['subType']==_0x4b8f90&&(_0x59fc98(_0x29fe67[_0x5407('0x136')](),_0x5c11b9)||_0x59fc98(_0x5c11b9,_0x29fe67[_0x5407('0x136')]()))){if(_0x1731dd){if(_0x29fe67[_0x5407('0x118')]&&_0x29fe67[_0x5407('0x118')]['length'])continue;for(const _0x2a306b of _0x29fe67[_0x5407('0x136')]())_0x1731dd['isIntersectingWithRange'](_0x2a306b)||_0x1731dd['addRange'](_0x2a306b);_0x29fe67[_0x5407('0x65')]();}else{_0x1731dd=_0x29fe67;for(const _0x1fb95e of _0x5c11b9)_0x29fe67[_0x5407('0xf5')](_0x1fb95e)||_0x29fe67[_0x5407('0xfe')](_0x1fb95e);}}if(_0x1731dd)return _0x1731dd;_0x140702[_0x5407('0xde')]();for(const _0x37b712 of _0x5c11b9)for(const {suggestion:_0x3c11dc,meta:_0x204062}of this['_findSuggestions'](_0x37b712,'deletion'))_0x204062[_0x5407('0xbd')]&&_0x140702[_0x5407('0x5f')](_0x3c11dc);for(const _0x171971 of _0x140702){const _0x1e563e=_0x171971[_0x5407('0x136')]();if(!_0x1d6542||!_0x1d6542[_0x5407('0x8b')]){if(_0x5c11b9[_0x5407('0x88')](_0x1bde42=>_0x1e563e[_0x5407('0x138')](_0x4f916e=>_0x4f916e[_0x5407('0xf4')](_0x1bde42,!0x0))))return _0x171971;}(!_0x171971['attributes']||!_0x171971[_0x5407('0xd0')][_0x5407('0x8b')])&&(_0x1e563e[_0x5407('0x88')](_0x3f34d7=>_0x5c11b9[_0x5407('0x138')](_0x190cc7=>_0x190cc7['containsRange'](_0x3f34d7,!0x0)))&&_0x171971[_0x5407('0x9d')]());}const _0x9e643=_0x3f2a4c(),_0x56cc48=_0x30a66c['id'],_0x4a5cba=_0x5407('0x83')+_0x4b8f90,_0x2e9401=this[_0x5407('0x8')]({'id':_0x9e643,'type':_0x4a5cba,'createdAt':new Date(),'authorId':_0x56cc48,'attributes':_0x1d6542});for(const _0x2c189c of _0x5c11b9)_0x2c189c[_0x5407('0x70')](),_0x2c189c['isCollapsed']||_0x5407('0xa9')==_0x2c189c[_0x5407('0x4b')][_0x5407('0x10a')]||this['_addSuggestionMarker'](_0x4a5cba,_0x9e643,_0x56cc48,_0x2c189c,_0x37741b['getMultiRangeId']());return _0x2e9401;}[_0x5407('0x116')](_0x2eb010,_0x5338f8){const _0x5d1b6d=_0x2eb010['getFirstMarker']();this[_0x5407('0xb9')]['change'](_0x115dbc=>{_0x115dbc['updateMarker'](_0x5d1b6d,{'range':_0x5338f8});});}['_addThreadToSuggestion'](_0x5966e9){const _0x286f9d=_0x5966e9['id'],_0x5854b1=this[_0x5407('0xb2')]['config'][_0x5407('0x137')](_0x5407('0x36'));this[_0x5407('0xdd')][_0x5407('0x104')](_0x286f9d)||this[_0x5407('0xdd')]['addCommentThread']({'channelId':_0x5854b1,'threadId':_0x286f9d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x230424=this['_commentsRepository'][_0x5407('0xe7')](_0x286f9d);_0x230424['unbind'](_0x5407('0x2c')),_0x230424['isRemovable']=!0x1,_0x5966e9['commentThread']=_0x230424;}['_checkSuggestionCorrectness'](_0x49333c,_0x58ff25,_0x148050,_0x3e5e12){if(_0x49333c[_0x5407('0x33')]!=_0x58ff25||_0x49333c[_0x5407('0x38')]!=_0x148050||_0x49333c[_0x5407('0xe')]['id']!=_0x3e5e12)throw this[_0x5407('0xb2')]['enableReadOnlyMode'](_0x5407('0xcb')),new _0x468b33(_0x5407('0xcb'),this);}[_0x5407('0x12a')](_0x402bb7,_0x35cf16){const _0x639e5e=_0x402bb7[_0x5407('0x19')]();if(_0x35cf16[_0x5407('0xfa')](_0x639e5e))_0x402bb7[_0x5407('0x65')]();else{if(_0x639e5e['containsRange'](_0x35cf16)){const _0x58d401=this[_0x5407('0xb9')][_0x5407('0x8c')](_0x35cf16['start']['nodeBefore'],_0x5407('0x3a'));this[_0x5407('0x116')](_0x402bb7,this[_0x5407('0xb9')][_0x5407('0xd1')](_0x639e5e['start'],_0x58d401));const _0x3c4c34=_0x3f2a4c(),_0x112bdc=_0x402bb7['creator']['id'],_0x5b8524=_0x402bb7['type']+':'+_0x402bb7[_0x5407('0x38')];this['_setSuggestionData']({'id':_0x3c4c34,'type':_0x5b8524,'createdAt':new Date(),'authorId':_0x112bdc,'data':_0x402bb7['data'],'attributes':_0x402bb7[_0x5407('0xd0')]});const _0x49006e=this[_0x5407('0xb9')][_0x5407('0x8c')](_0x35cf16['end'][_0x5407('0x8d')],'after'),_0x19b2db=this[_0x5407('0xb9')][_0x5407('0xd1')](_0x49006e,_0x639e5e[_0x5407('0x3a')]);this[_0x5407('0x73')](_0x5b8524,_0x3c4c34,_0x112bdc,_0x19b2db);}else{if(_0x639e5e['containsPosition'](_0x35cf16['start'])){const _0x59b3b9=this[_0x5407('0xb9')][_0x5407('0x8c')](_0x35cf16[_0x5407('0x55')][_0x5407('0xe9')],_0x5407('0x3a'));this[_0x5407('0x116')](_0x402bb7,this[_0x5407('0xb9')][_0x5407('0xd1')](_0x639e5e[_0x5407('0x55')],_0x59b3b9));}else{const _0x52a0c5=this[_0x5407('0xb9')][_0x5407('0x8c')](_0x35cf16[_0x5407('0x3a')]['parent'],'after');this[_0x5407('0x116')](_0x402bb7,this['_model'][_0x5407('0xd1')](_0x52a0c5,_0x639e5e[_0x5407('0x3a')]));}}}}[_0x5407('0xd8')](_0x382473){for(const {suggestion:_0x466ab8,meta:_0x15e7bb}of this[_0x5407('0x92')](_0x382473,_0x5407('0x99'))){if(!_0x15e7bb[_0x5407('0xbd')])continue;const _0x4dff35=_0x466ab8['getRanges']();for(const _0x5f2f58 of _0x4dff35)if(!_0x382473[_0x5407('0x66')](_0x5f2f58)[_0x5407('0x25')])return!0x0;}return!0x1;}[_0x5407('0xd9')](_0x133457){const _0x4f2365=this[_0x5407('0xb2')]['plugins'][_0x5407('0x137')]('Users')[_0x5407('0x59')](_0x133457);if(!_0x4f2365)throw new _0x468b33('track-changes-user-not-found',this);return _0x4f2365;}[_0x5407('0x12')](_0x43b990){const _0x2882a7=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0xdc')),_0x9a4776=_0x3bf0e7('external:'+_0x43b990),_0xccea98=_0x2882a7[_0x5407('0x59')](_0x9a4776);return _0xccea98||_0x2882a7['addUser']({'id':_0x9a4776,'name':_0x43b990});}[_0x5407('0xd6')](_0x37235f,_0x13fd9f,_0x41f71b,_0x5d2b58,_0xb2669b){const _0x26e1a4=this[_0x5407('0xd9')](_0x5d2b58),_0x3a78ee=this[_0x5407('0xaf')][_0x5407('0x24')](_0x37235f,_0x13fd9f,_0x41f71b,_0x26e1a4,_0xb2669b,_0x3c3aca=>this[_0x5407('0x28')](_0x41f71b,{'attributes':_0x3c3aca}));return this[_0x5407('0x13')](_0x3a78ee,_0x5407('0xbf'),()=>{this[_0x5407('0x28')](_0x41f71b,{'state':'accepted'});},{'priority':_0x5407('0x60')}),this[_0x5407('0x13')](_0x3a78ee,_0x5407('0x9d'),()=>{this['_updateSuggestionData'](_0x41f71b,{'state':_0x5407('0x11b')});},{'priority':_0x5407('0x60')}),this['_suggestions']['set'](_0x41f71b,_0x3a78ee),this[_0x5407('0x119')][_0x5407('0x48')](_0x3a78ee,'notReady'),_0x3a78ee;}['_splitMarkerName'](_0x7be8e4){const _0x26592b=_0x7be8e4[_0x5407('0x89')](':');return{'group':_0x26592b[0x0],'type':_0x26592b[0x1],'subType':_0x26592b['length']>=0x5?_0x26592b[0x2]:null,'id':_0x26592b[_0x5407('0x25')]<0x5?_0x26592b[0x2]:_0x26592b[0x3],'authorId':_0x26592b[_0x5407('0x25')]<0x5?_0x26592b[0x3]:_0x26592b[0x4],'markerCount':0x6==_0x26592b[_0x5407('0x25')]?_0x26592b[0x5]:null};}[_0x5407('0x74')](_0x470716,_0x966252,_0x2dbef8){const _0x13d95c=_0x470716[_0x5407('0x19')](),_0x5ab35f=_0x13d95c[_0x5407('0x55')],_0x5bf575=_0x13d95c[_0x5407('0x3a')];this[_0x5407('0x116')](_0x470716,this[_0x5407('0xb9')][_0x5407('0xd1')](_0x5ab35f,_0x966252));const _0x9635a4=_0x3f2a4c(),_0x598211=_0x470716['creator']['id'],_0xe6751a=_0x470716[_0x5407('0x33')]+(_0x470716[_0x5407('0x38')]?':'+_0x470716['subType']:'');this[_0x5407('0x8')]({'id':_0x9635a4,'type':_0xe6751a,'createdAt':new Date(),'authorId':_0x598211,'originalSuggestionId':_0x470716['id'],'attributes':_0x470716[_0x5407('0xd0')],'data':_0x470716[_0x5407('0x5d')]}),_0x5407('0xe4')==_0x470716[_0x5407('0x33')]&&(_0x2dbef8=this[_0x5407('0xb9')][_0x5407('0x11')](_0x2dbef8['parent'])),this[_0x5407('0x73')](_0xe6751a,_0x9635a4,_0x598211,this['_model'][_0x5407('0xd1')](_0x2dbef8,_0x5bf575));}[_0x5407('0x92')](_0x5bab05,_0x48449f=null){const _0x3f995e=[],_0x2ed9ab=this[_0x5407('0xb9')][_0x5407('0x7e')],_0x5e33e7=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0xdc'))['me'];for(const _0x3e3f60 of this[_0x5407('0xf')]())if(_0x3e3f60[_0x5407('0x44')]&&(!_0x48449f||_0x3e3f60[_0x5407('0x33')]==_0x48449f))for(const _0x1870b9 of _0x3e3f60[_0x5407('0x136')]()){const _0x13f98b=_0x5bab05[_0x5407('0x55')][_0x5407('0xfa')](_0x1870b9[_0x5407('0x3a')])||_0x5bab05[_0x5407('0x3a')][_0x5407('0xfa')](_0x1870b9[_0x5407('0x55')]);if(_0x13f98b||_0x5bab05[_0x5407('0x10f')](_0x1870b9)){const _0x478350=_0x5bab05[_0x5407('0xf4')](_0x1870b9)&&Dt(_0x2ed9ab,_0x1870b9[_0x5407('0x55')],_0x5bab05),_0x4552c6=_0x1870b9[_0x5407('0xf4')](_0x5bab05)&&Dt(_0x2ed9ab,_0x5bab05[_0x5407('0x55')],_0x1870b9);_0x3f995e[_0x5407('0x61')]({'suggestion':_0x3e3f60,'meta':{'isOwn':_0x5e33e7==_0x3e3f60['author'],'isNextTo':_0x13f98b,'isInsideObject':_0x478350,'containsRangeInObject':_0x4552c6}});break;}}return _0x3f995e;}[_0x5407('0x73')](_0x4150b1,_0x2f0e5b,_0x4871b4,_0x4a44ed,_0x5f2040){this[_0x5407('0xb9')][_0x5407('0x11f')](_0x1508b5=>{let _0x19d5c6=_0x5407('0xa6')+_0x4150b1+':'+_0x2f0e5b+':'+_0x4871b4;_0x5f2040&&(_0x19d5c6=_0x19d5c6+':'+_0x5f2040),_0x1508b5['addMarker'](_0x19d5c6,{'range':_0x4a44ed,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5407('0x63')](_0x1871f2){const _0x49b846=_0x1871f2['previous'],_0x4c7f03=_0x1871f2['next'];_0x1871f2[_0x5407('0x87')]=null,null!=_0x49b846&&(_0x49b846[_0x5407('0x93')]=null),_0x1871f2[_0x5407('0x93')]=null,null!=_0x4c7f03&&(_0x4c7f03['previous']=null),_0x5407('0x2b')==this['_suggestionState'][_0x5407('0x137')](_0x1871f2)&&(this[_0x5407('0x119')][_0x5407('0x48')](_0x1871f2,_0x5407('0x129')),this[_0x5407('0x4')](_0x5407('0x124'),_0x1871f2,_0x49b846,_0x4c7f03));}[_0x5407('0x8')](_0x526df2){const _0x87f9a=_0x526df2['id'],_0x5121f4=this[_0x5407('0x90')](_0x526df2);if(this[_0x5407('0xa8')]&&this[_0x5407('0xa8')][_0x5407('0x12e')]){const _0x244b20=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')](_0x5407('0x134')),_0x10c803=_0x5121f4[_0x5407('0xb5')],_0x48f3f2=_0x5121f4[_0x5407('0x38')]?_0x5121f4[_0x5407('0x33')]+':'+_0x5121f4[_0x5407('0x38')]:_0x5121f4[_0x5407('0x33')],_0x435cd7=this['editor'][_0x5407('0x54')],_0x326257=_0x244b20[_0x5407('0x5f')](_0x59c829(_0x435cd7,_0x5407('0x128'))),_0x101a49={'id':_0x87f9a,'type':_0x48f3f2,'hasComments':_0x10c803,'data':_0x526df2[_0x5407('0x5d')]||null,'originalSuggestionId':_0x526df2[_0x5407('0xfc')]||null,'attributes':_0x5121f4[_0x5407('0xd0')]};this[_0x5407('0xa8')][_0x5407('0x12e')](_0x101a49)[_0x5407('0xf0')](_0x53d3a4=>{_0x5121f4[_0x5407('0xc3')]=!0x0,_0x244b20[_0x5407('0x58')](_0x326257),_0x53d3a4&&_0x53d3a4[_0x5407('0xc0')]&&(this['_suggestions']['get'](_0x87f9a)[_0x5407('0xc0')]=_0x53d3a4['createdAt']);})[_0x5407('0xf7')](_0xb88dad=>{throw _0x7a3173(_0x5407('0xa')),this[_0x5407('0xb2')][_0x5407('0x130')][_0x5407('0x30')]({'isUndoable':!0x1},()=>{_0x5121f4['discard']();}),_0x5121f4[_0x5407('0x115')](),this[_0x5407('0x1')]['delete'](_0x5121f4['id']),this[_0x5407('0x119')]['delete'](_0x5121f4),_0xb88dad;});}return _0x5121f4;}[_0x5407('0x28')](_0x1ad47d,_0xd64f35){const _0x35b7c4=this[_0x5407('0xb2')][_0x5407('0x133')][_0x5407('0x137')]('PendingActions'),_0x39df03=this[_0x5407('0x23')](_0x1ad47d);if(this[_0x5407('0xa8')]&&this[_0x5407('0xa8')][_0x5407('0x62')]){if(_0x39df03[_0x5407('0xc3')]){const _0x3b56c8=_0x35b7c4[_0x5407('0x5f')](_0x59c829(this['editor']['locale'],_0x5407('0x128')));this[_0x5407('0xa8')][_0x5407('0x62')](_0x1ad47d,_0xd64f35)['then'](()=>{_0x35b7c4[_0x5407('0x58')](_0x3b56c8);});}else _0x39df03['on'](_0x5407('0x52'),()=>{this[_0x5407('0x28')](_0x1ad47d,_0xd64f35);});}}['_getSuggestionData'](_0x5c31f0){if(!this[_0x5407('0xa8')]||!this[_0x5407('0xa8')][_0x5407('0x23')])throw new _0x468b33(_0x5407('0x21'),this);return this[_0x5407('0xa8')][_0x5407('0x23')](_0x5c31f0);}['_handleNewSuggestionMarker'](_0x38f255){const {id:_0x3de4b2,type:_0x37cc00,subType:_0xdc8a72,authorId:_0x337df7}=this[_0x5407('0xef')](_0x38f255),_0x2dee6c=this[_0x5407('0x1')][_0x5407('0x137')](_0x3de4b2)||this['_createSuggestion'](_0x37cc00,_0xdc8a72,_0x3de4b2,_0x337df7,{});switch(this[_0x5407('0x114')](_0x2dee6c,_0x37cc00,_0xdc8a72,_0x337df7),this['_suggestionState'][_0x5407('0x137')](_0x2dee6c)){case'notReady':this['_getSuggestionData'](_0x3de4b2)[_0x5407('0xf0')](_0x1834af=>{let _0x55bc7e=Promise[_0x5407('0x91')]();_0x1834af[_0x5407('0xb5')]&&(_0x55bc7e=this[_0x5407('0xdd')][_0x5407('0x45')]({'channelId':this[_0x5407('0xb2')][_0x5407('0x3')][_0x5407('0x137')](_0x5407('0x36')),'threadId':_0x3de4b2})),_0x55bc7e[_0x5407('0xf0')](()=>{this['addSuggestionData'](_0x1834af)[_0x5407('0xc3')]=!0x0;});}),this[_0x5407('0x119')]['set'](_0x2dee6c,_0x5407('0xb3'));break;case _0x5407('0x129'):this[_0x5407('0x28')](_0x3de4b2,{'state':_0x5407('0xfb')});case'dataReady':this[_0x5407('0x119')]['set'](_0x2dee6c,'ready'),this[_0x5407('0x4')](_0x5407('0x5c'),_0x2dee6c);break;case _0x5407('0x2b'):this[_0x5407('0x4')](_0x5407('0x2f'),_0x2dee6c);}return _0x2dee6c['addMarkerName'](_0x38f255),_0x2dee6c;}['_refreshSuggestionsChain'](_0x540702){const _0x561cbc=Array[_0x5407('0x40')](_0x540702)['filter'](_0x439f5f=>!_0x439f5f['isMultiRange']),_0x15fd3c=this[_0x5407('0xf')]({'skipNotAttached':!0x0})[_0x5407('0x9a')](_0x40e401=>!_0x40e401[_0x5407('0x80')]),_0x4d7acf=_0x15fd3c[_0x5407('0x9a')](_0x2ceab9=>!_0x540702[_0x5407('0x4e')](_0x2ceab9)),_0x3eb1a2=new Map(_0x15fd3c['map'](_0x5a164f=>[_0x5a164f,this[_0x5407('0xaf')][_0x5407('0x37')](_0x5a164f[_0x5407('0x33')],_0x5a164f[_0x5407('0x38')],_0x5407('0x117'))])),_0x5c4a5b=new Map(_0x15fd3c[_0x5407('0x15')](_0xf3e1c3=>[_0xf3e1c3,_0xf3e1c3[_0x5407('0x19')]()])),_0x3dd52a=new Set(),_0x1c8ea7=new Set();for(let _0x53f01d=0x0;_0x53f01d<_0x561cbc[_0x5407('0x25')];_0x53f01d++)_0x255aec(_0x561cbc[_0x53f01d],_0x561cbc,_0x53f01d+0x1);for(let _0x2d0820=0x0;_0x2d0820<_0x561cbc[_0x5407('0x25')];_0x2d0820++)_0x255aec(_0x561cbc[_0x2d0820],_0x4d7acf,0x0);for(let _0x7e18c=0x0;_0x7e18c<_0x561cbc['length'];_0x7e18c++){const _0x48b9e8=_0x561cbc[_0x7e18c];!_0x1c8ea7[_0x5407('0x4e')](_0x48b9e8)&&_0x48b9e8[_0x5407('0x87')]&&(_0x48b9e8[_0x5407('0x87')]['next']===_0x48b9e8&&(_0x48b9e8[_0x5407('0x87')]['next']=null),_0x48b9e8[_0x5407('0x87')]=null),!_0x3dd52a['has'](_0x48b9e8)&&_0x48b9e8[_0x5407('0x93')]&&(_0x48b9e8['next'][_0x5407('0x87')]===_0x48b9e8&&(_0x48b9e8[_0x5407('0x93')][_0x5407('0x87')]=null),_0x48b9e8[_0x5407('0x93')]=null);}function _0x255aec(_0x3e572f,_0x406d87,_0x1f83fe){for(let _0x4ce062=_0x1f83fe;_0x4ce062<_0x406d87[_0x5407('0x25')];_0x4ce062++){const _0x3d28f0=_0x558690(_0x3e572f,_0x406d87[_0x4ce062]);_0x3d28f0&&(_0x3d28f0[0x0][_0x5407('0x93')]=_0x3d28f0[0x1],_0x3d28f0[0x1][_0x5407('0x87')]=_0x3d28f0[0x0],_0x3dd52a[_0x5407('0x5f')](_0x3d28f0[0x0]),_0x1c8ea7[_0x5407('0x5f')](_0x3d28f0[0x1]));}}function _0x558690(_0x5d2425,_0x5db22b){if(_0x5d2425['author']['id']!==_0x5db22b['author']['id'])return null;const _0x39a8ea=_0x3eb1a2[_0x5407('0x137')](_0x5d2425)(_0x5d2425,_0x5db22b,_0x5c4a5b[_0x5407('0x137')](_0x5d2425),_0x5c4a5b[_0x5407('0x137')](_0x5db22b));if(!_0x39a8ea)return null;return _0x3eb1a2['get'](_0x5db22b)(_0x5d2425,_0x5db22b,_0x5c4a5b[_0x5407('0x137')](_0x5d2425),_0x5c4a5b[_0x5407('0x137')](_0x5db22b))?_0x39a8ea[0x1][_0x5407('0x118')]&&_0x39a8ea[0x1]['commentThread'][_0x5407('0x25')]?null:_0x39a8ea:null;}}[_0x5407('0x76')](_0x32b779){const _0x44a796=Array[_0x5407('0x40')](_0x32b779),_0x87053c=this[_0x5407('0xf')]({'skipNotAttached':!0x0}),_0x1ec9a5=_0x87053c[_0x5407('0x9a')](_0x2c4db1=>!_0x32b779[_0x5407('0x4e')](_0x2c4db1)),_0x1147f0=new Map(_0x44a796[_0x5407('0x15')](_0x5bfd88=>[_0x5bfd88,this[_0x5407('0xaf')]['getSuggestionCallback'](_0x5bfd88[_0x5407('0x33')],_0x5bfd88['subType'],'join')])),_0x2afba6=new Map(_0x87053c[_0x5407('0x15')](_0x519c91=>[_0x519c91,_0x519c91[_0x5407('0x136')]()]));for(let _0x4d70d8=0x0;_0x4d70d8<_0x44a796[_0x5407('0x25')];_0x4d70d8++){if(_0x20b362(this,_0x44a796[_0x4d70d8],_0x44a796,_0x4d70d8+0x1))return!0x0;}for(let _0x3d5e82=0x0;_0x3d5e82<_0x44a796['length'];_0x3d5e82++){if(_0x20b362(this,_0x44a796[_0x3d5e82],_0x1ec9a5,0x0))return!0x0;}return!0x1;function _0x20b362(_0x47bce7,_0x236a80,_0x424cb7,_0x32e291){for(let _0x13493=_0x32e291;_0x13493<_0x424cb7[_0x5407('0x25')];_0x13493++){const _0x1dc9f8=_0x424cb7[_0x13493];if(_0x1dc9f8['type']!==_0x236a80[_0x5407('0x33')]||_0x1dc9f8[_0x5407('0x121')]['id']!==_0x236a80[_0x5407('0x121')]['id']||_0x1dc9f8[_0x5407('0x38')]!==_0x236a80[_0x5407('0x38')])continue;const _0x6551aa=_0x1147f0['get'](_0x236a80),_0x1c6a60=_0x2afba6[_0x5407('0x137')](_0x236a80),_0x4dd7ad=_0x2afba6[_0x5407('0x137')](_0x1dc9f8),_0x4d405d=_0x236a80['commentThread']&&_0x236a80[_0x5407('0x118')][_0x5407('0x25')],_0x493038=_0x1dc9f8[_0x5407('0x118')]&&_0x1dc9f8[_0x5407('0x118')]['length'];if(!_0x4d405d&&_0x6551aa(_0x4dd7ad,_0x1c6a60))return _0x47bce7[_0x5407('0xb0')](_0x1dc9f8,_0x236a80),_0x2afba6[_0x5407('0x5a')](_0x236a80),!0x0;if(!_0x493038&&_0x6551aa(_0x1c6a60,_0x4dd7ad))return _0x47bce7[_0x5407('0xb0')](_0x236a80,_0x1dc9f8),_0x2afba6[_0x5407('0x5a')](_0x1dc9f8),!0x0;}return!0x1;}}[_0x5407('0xb0')](_0x2e6523,_0x30d87b){if(_0x2e6523[_0x5407('0x80')])for(const _0x2a24dc of _0x30d87b[_0x5407('0x136')]())_0x2e6523['addRange'](_0x2a24dc);else{const _0x3d363e=_0x30d87b['getFirstRange']()[_0x5407('0x3a')];this[_0x5407('0x116')](_0x2e6523,this[_0x5407('0xb9')]['createRange'](_0x2e6523[_0x5407('0x19')]()[_0x5407('0x55')],_0x3d363e));}_0x30d87b[_0x5407('0x65')]();}}class Ct{constructor(_0xefd03f){this[_0x5407('0x57')]=_0xefd03f,this[_0x5407('0xb9')]=_0xefd03f[_0x5407('0x130')],this[_0x5407('0x1e')]=new Map(),this[_0x5407('0x5')]=new Map(),this[_0x5407('0x10')]();}[_0x5407('0x24')](_0x21f009,_0x4da7fd,_0x42f761,_0x51cb71,_0x532874,_0x15df96){return new _0x37741b(this[_0x5407('0xb9')],{'type':_0x21f009,'subType':_0x4da7fd,'id':_0x42f761,'author':_0x51cb71,'creator':_0x51cb71,'attributes':_0x532874,'onAttributesChange':_0x15df96,'onAccept':(..._0x4feea1)=>this[_0x5407('0x37')](_0x21f009,_0x4da7fd,_0x5407('0xbf'))(..._0x4feea1),'onDiscard':(..._0x50b944)=>this[_0x5407('0x37')](_0x21f009,_0x4da7fd,_0x5407('0x9d'))(..._0x50b944)});}[_0x5407('0xf3')](_0xabd2ef,_0x3079e6,_0x4f022b,_0x2c7fe6){const _0x38203b=_0xabd2ef+':'+_0x3079e6+':'+_0x4f022b;this[_0x5407('0x1e')]['set'](_0x38203b,_0x2c7fe6);}[_0x5407('0x37')](_0xb2c6d8,_0x2a8ee7,_0x4a321b){const _0x28139f=_0xb2c6d8+':'+_0x2a8ee7+':'+_0x4a321b;return this[_0x5407('0x1e')]['get'](_0x28139f)||this[_0x5407('0x5')][_0x5407('0x137')](_0xb2c6d8+':'+_0x4a321b);}[_0x5407('0x10')](){const _0x570ff7=()=>{},_0x8b334f=_0x123078=>{_0x123078['sort']((_0x36c242,_0x7be825)=>_0x36c242[_0x5407('0x55')][_0x5407('0x10d')](_0x7be825['start'])?0x1:-0x1),this[_0x5407('0xb9')]['change'](_0x5037ec=>{for(const _0x4b91db of _0x123078){let _0x4b719b;_0x4b719b=_0x4b91db['end'][_0x5407('0x82')]&&_0x4b91db['end'][_0x5407('0x8d')]==_0x4b91db[_0x5407('0x55')][_0x5407('0x111')]?_0x5037ec[_0x5407('0x110')](_0x4b91db[_0x5407('0x55')]['nodeAfter'],'on'):_0x5037ec[_0x5407('0x110')](_0x4b91db),this['_model'][_0x5407('0x3d')](_0x4b719b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3b346c=(_0x4f3688,_0x49f062)=>{this[_0x5407('0xb9')]['change'](_0x55d78b=>{const {commandName:_0x2e87fd,commandParams:_0xfb5426=[]}=_0x49f062,_0x19826b=_0x4f3688[_0x5407('0x15')](_0x5e1455=>(Bt(_0x5e1455)&&(_0x5e1455=this['_model'][_0x5407('0xd1')](_0x5e1455[_0x5407('0x3a')])),_0x5e1455))[_0x5407('0x9a')](_0x2670f6=>_0x5407('0xa9')!==_0x2670f6[_0x5407('0x4b')][_0x5407('0x10a')]);if(_0x19826b[_0x5407('0x25')]<0x1)return;const _0x17899e=Array[_0x5407('0x40')](this[_0x5407('0xb9')][_0x5407('0xcf')][_0x5407('0x100')][_0x5407('0x136')]())[_0x5407('0x15')](_0xc68c4d=>_0x376084[_0x5407('0xd')](_0xc68c4d));_0x55d78b[_0x5407('0x29')](_0x19826b);for(const _0x2906dc of this['_editor'][_0x5407('0x14')][_0x5407('0x14')]())_0x2906dc[_0x5407('0xb1')]();_0xfb5426['push']({'forceDefaultExecution':!0x0}),this[_0x5407('0x57')][_0x5407('0x97')](_0x2e87fd,..._0xfb5426);const _0x268171=_0x17899e[_0x5407('0x9a')](_0x3ee5c8=>_0x5407('0xa9')!=_0x3ee5c8[_0x5407('0x4b')][_0x5407('0x10a')]);_0x268171[_0x5407('0x25')]>0x0&&_0x55d78b[_0x5407('0x29')](_0x268171);for(const _0x5ef506 of _0x17899e)_0x5ef506['detach']();});},_0x3797ad=(_0xa1cbb,_0x4f298c)=>0x1==_0xa1cbb[_0x5407('0x25')]&&0x1==_0x4f298c[_0x5407('0x25')]&&_0xa1cbb[0x0][_0x5407('0x3a')]['isEqual'](_0x4f298c[0x0]['start']),_0x9157d0=(_0x184443,_0x36dfa9,_0x2ae650,_0x11b886)=>Rt(_0x184443,_0x36dfa9,_0x2ae650,_0x11b886,this[_0x5407('0xb9')])?[_0x184443,_0x36dfa9]:Rt(_0x36dfa9,_0x184443,_0x11b886,_0x2ae650,this[_0x5407('0xb9')])?[_0x36dfa9,_0x184443]:null;this[_0x5407('0x5')]['set'](_0x5407('0xb4'),_0x570ff7),this[_0x5407('0x5')][_0x5407('0x48')](_0x5407('0xcd'),_0x8b334f),this[_0x5407('0x5')][_0x5407('0x48')](_0x5407('0x125'),_0x3797ad),this[_0x5407('0x5')][_0x5407('0x48')](_0x5407('0xaa'),_0x9157d0),this[_0x5407('0x5')]['set']('deletion:accept',_0x8b334f),this[_0x5407('0x5')][_0x5407('0x48')](_0x5407('0xa4'),_0x570ff7),this['_defaultCallbacks'][_0x5407('0x48')]('deletion:join',_0x3797ad),this[_0x5407('0x5')][_0x5407('0x48')](_0x5407('0xd5'),_0x9157d0),this[_0x5407('0x5')]['set']('formatInline:accept',_0x3b346c),this[_0x5407('0x5')][_0x5407('0x48')](_0x5407('0x51'),_0x570ff7),this[_0x5407('0x5')]['set'](_0x5407('0xf9'),_0x3797ad),this[_0x5407('0x5')][_0x5407('0x48')]('formatInline:chain',_0x570ff7),this[_0x5407('0x5')][_0x5407('0x48')](_0x5407('0x69'),_0x3b346c),this[_0x5407('0x5')][_0x5407('0x48')](_0x5407('0x3b'),_0x570ff7),this['_defaultCallbacks'][_0x5407('0x48')](_0x5407('0x6f'),_0x3797ad),this[_0x5407('0x5')][_0x5407('0x48')]('formatBlock:chain',_0x570ff7);}}function Dt(_0x4ec0da,_0xfe8f50,_0x1260e7){for(const _0x2349b5 of _0xfe8f50[_0x5407('0x8d')][_0x5407('0x20')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2349b5[_0x5407('0x4b')]==_0x2349b5)return!0x1;if(!_0x1260e7[_0x5407('0xe1')](_0x2349b5))return!0x1;if(_0x4ec0da['isObject'](_0x2349b5)||_0x4ec0da['isLimit'](_0x2349b5))return!0x0;}return!0x1;}function Bt(_0x6cae33){return _0x6cae33[_0x5407('0x3a')][_0x5407('0x8d')]==_0x6cae33[_0x5407('0x55')][_0x5407('0x111')]&&_0x6cae33['end']['isAtStart'];}function _t(_0x175027,_0x2abb50,_0x5d2734,_0x401f1f){const _0x46c80d=_0x581da6=>!_0x581da6[_0x5407('0x123')]['is'](_0x5407('0x122'))&&!_0x401f1f[_0x5407('0x50')](_0x581da6[_0x5407('0x123')]),_0x352eac=_0x175027[_0x5407('0x55')]['getLastMatchingPosition'](_0x46c80d),_0x37eefa=_0x175027['end'][_0x5407('0xb8')](_0x46c80d,{'direction':_0x5407('0xcc')});return(!_0x175027['start']['isEqual'](_0x352eac)||!_0x175027[_0x5407('0x3a')][_0x5407('0xfa')](_0x37eefa))&&(_0x352eac[_0x5407('0x10d')](_0x37eefa)?_0x5d2734[_0x5407('0x84')](_0x2abb50,{'range':_0x5d2734[_0x5407('0xd1')](_0x352eac,_0x37eefa)}):_0x5d2734[_0x5407('0x46')](_0x2abb50),!0x0);}function Mt(_0x2a4432){return _0x3bf0e7(_0x2a4432);}function $t(_0x3b210c){const _0x351ee9=_0x3b210c[_0x5407('0x55')][_0x5407('0x111')];return _0x351ee9&&_0x351ee9['is'](_0x5407('0x78'));}function Nt(_0x361bf0,_0x115052){const _0x5b988e=_0x115052[_0x5407('0x7e')]['isObject'](_0x361bf0)||_0x115052['schema']['isSelectable'](_0x361bf0);return _0x115052['createRange'](_0x115052['createPositionAt'](_0x361bf0,'before'),_0x5b988e?_0x115052['createPositionAfter'](_0x361bf0):_0x115052['createPositionAt'](_0x361bf0,'end'));}function Rt(_0x31ea03,_0x54301d,_0x5f514c,_0x2b2c7c,_0xe033bc){if(_0x5f514c[_0x5407('0x3a')]['isEqual'](_0x2b2c7c[_0x5407('0x55')]))return!0x0;if(_0x31ea03['type']!=_0x54301d['type'])return!0x1;if(!_0x5f514c[_0x5407('0x3a')][_0x5407('0x5e')](_0x2b2c7c[_0x5407('0x55')]))return!0x1;const _0xf72343=_0xe033bc[_0x5407('0xd1')](_0x5f514c['end'],_0x2b2c7c['start'])[_0x5407('0x64')]();for(const _0x408ad3 of _0xf72343)if(['elementStart',_0x5407('0xec')]['includes'](_0x408ad3[_0x5407('0x33')])&&_0xe033bc['schema'][_0x5407('0x1a')](_0x408ad3[_0x5407('0x123')]))return!0x1;return!0x0;}
|
|
23
|
+
const _0x5ec0=['applyOperation','upcast','_addThreadToSuggestion','listenTo','addUser','insertion','forceDefaultExecution','for','start','markInlineFormat','createRange','map','insertion:','getAncestors','commands','consume','update:suggestion','markers','backward','stopListening','activeMarkers','addComment','getDifference','track-changes-command-not-found','$marker','commandName','author','_removeSuggestion','subType','clone','hasComments','_refreshSuggestionsChain','then','adapter','_cutOutSuggestionMarker','_trackFormatChanges','ck-suggestion-marker-formatBlock','plugins','commentThread','authorName','getSuggestionCallback','isLocal','discardSelectedSuggestions','isObject','authoredAt','length','define','getRanges','unbind','always','nodeBefore','conversion','discardAllSuggestions','resolve','lowest','isBefore','_customCallbacks','acceptSelectedSuggestions','rootName','suggestion-type','_createSuggestion','getFirstMarker','multi','high','registerPostFixer','markDeletion','return','getAttribute','rethrowUnexpectedError','insertContent','_model','addMarkerName','removeMarker:suggestion:formatBlock','remove','isCollapsed','getCustomProperty','collaboration.channelId','markerName','external:','moveTargetPosition','addSuggestion','elementEnd','trackChanges.mergeNestedSuggestions','howMany','formatBlock:','isIntersectingWithRange','createPositionAt','getIntersection','selection','dataReady','updateMarker','from','deletion:discard','forward','CommentsRepository','containsPosition','add','isUndo','elementToElement','pluginName','insertion:accept','_getAuthorFromId','ck-suggestion-marker','head','change','data','trackChanges','removed','type','setTo','root','isBlock','_enabledCommands','change:_saved','reconvertMarker','oldRange','end','rejected','split','_mergeNestedSuggestions','_splitMarkerName','config','dataDowncast','deletion','toJSON','formatBlock','createdAt','isLimit','highest','writer','createPositionBefore','refresh','deletion:chain','deletion:join','isNextTo','_breakSuggestionMarker','getLastMatchingPosition','addClass','_onDiscard','splitPosition','_editor','registerCustomCallback','error-saving-suggestion-data-suggestion-discarded','model','trackChanges.trackFormatChanges','splice','_adapter','notReady','batch','newRange','_suggestionState','_handleNewSuggestionMarker','value','values','PENDING_ACTION_SUGGESTION','toViewElement','creator','_commentsRepository','markMultiRangeInsertion','TrackChangesEditing','removeClass','createElement','range','getMarkers','addMarker','parent','updateSuggestion','suggestion:','PendingActions','editingDowncast','createRangeIn','widget','_isForcedDefaultExecutionBlock','getUser','_suggestionFactory','isAtStart','before','getChangedMarkers','substr','has','formatBlock:chain','_rangeIsInLocalUserInsertion','hasCommentThread','enableCommand','@external','fire','Users','isInsideObject','element','isInContent','isMultiRange','getFirstRange','differ','documentSelection','detach','markerToData','$textProxy','track-changes-suggestion-not-found','after','item','document','track-changes-user-not-found','_suggestions','every','bindElementToMarker','getNearestSelectionRange','catch','formatBlock:discard','sort','suggestion','getAllAdjacentSuggestions','some','ck-suggestion-marker--active','unbindElementFromMarkerName','_saved','ck-suggestion-marker-','acceptAllSuggestions','previous','_addSuggestionMarker','containerElement','acceptSuggestion','low','suggestionChanged','deleteContent','formatInline:chain','addHighlight','get','formatInline','size','set','setAttribute','getCommentThread','fromRange','ready','getSuggestions','multipleBlocks','removeMarker','default','attributes','markInsertion','addMarker:suggestion','schema','_findSuggestions','marker-count','getSuggestion','elementStart','removeAttribute','_getExternalAuthor','removeMarkers','addSuggestionData','_updateSuggestionData','next','formatGroupId','showSuggestionHighlights','formatInline:join','never','buildSuggestion','isEqual','_checkSuggestionCorrectness','consumable','formatInline:','getShiftedBy','_defaultCallbacks','deletion:','trackChangesCommand','addMarker:suggestion:formatBlock','getWalker','locale','mapper','skipNestingCheck','group','_getSuggestionData','position','_setSuggestionData','_joinSuggestions','chain','isDocumentOperation','$graveyard','hasSuggestion','isSelectable','createPositionAfter','join','nodeAfter','insert','execute','accept','filter','isAtEnd','discardSuggestion','editor','markerToHighlight','move','addRange','markerReady','containsItem','getItems','_registerDefaultCallbacks','push','isOwn','discard','markMultiRangeBlockFormat','suggestionLoaded','deletion:accept','name','createSelection','accepted','clear','containsRangeInObject','delete','stop','formatInline:discard','normal','includes','track-changes-suggestion-data-mismatch','setSelection','markerNameToElements','_setSuggestionRange','containsRange','_descriptionFactory','targetPosition'];(function(_0x4f287f,_0x5ec055){const _0x39af01=function(_0x10af73){while(--_0x10af73){_0x4f287f['push'](_0x4f287f['shift']());}};_0x39af01(++_0x5ec055);}(_0x5ec0,0x1b0));const _0x39af=function(_0x4f287f,_0x5ec055){_0x4f287f=_0x4f287f-0x0;let _0x39af01=_0x5ec0[_0x4f287f];return _0x39af01;};import{Plugin as _0x250295,PendingActions as _0x28ef4b}from'ckeditor5/src/core';import{LiveRange as _0x3b5b82}from'ckeditor5/src/engine';import{CKEditorError as _0x14653c,uid as _0x16cd6a,priorities as _0x511a76,logWarning as _0xd82b5d}from'ckeditor5/src/utils';import{toWidget as _0x11ace6}from'ckeditor5/src/widget';import{Users as _0x200b6e,hashObject as _0x2a29b6}from'ckeditor5-collaboration/src/collaboration-core';import _0xf78113 from'./commands/trackchangescommand';import _0x49f9ee from'./commands/acceptsuggestioncommand';import _0x3899d2 from'./commands/discardsuggestioncommand';import _0x219ed6 from'./commands/executeonallsuggestionscommand';import _0x3a708a from'./commands/executeonselectedsuggestionscommand';import _0x1760a0 from'./suggestion';import _0x3e6b2c from'./suggestiondescriptionfactory';import _0x300cf5 from'./integrations/alignment';import _0x298214 from'./integrations/basicstyles';import _0x4be9e5 from'./integrations/blockquote';import _0x32a3f7 from'./integrations/ckbox';import _0x29e731 from'./integrations/codeblock';import _0x4454ec from'./integrations/comments';import _0x914320 from'./integrations/deletecommand';import _0x1c036a from'./integrations/documentlist';import _0x2a8f12 from'./integrations/entercommand';import _0x91a114 from'./integrations/findandreplace';import _0x33af1a from'./integrations/font';import _0xf205b5 from'./integrations/formatpainter';import _0x15b8d1 from'./integrations/heading';import _0x3b2368 from'./integrations/highlight';import _0x48308 from'./integrations/horizontalline';import _0x8978fc from'./integrations/htmlembed';import _0x1e4fbd from'./integrations/image';import _0x1f6204 from'./integrations/imagereplace';import _0x2eae25 from'./integrations/importword';import _0x5e9226 from'./integrations/indent';import _0x4c2b30 from'./integrations/inputcommand';import _0x17a4e3 from'./integrations/link';import _0x393466 from'./integrations/list';import _0x3362b7 from'./integrations/listproperties';import _0xb17ae7 from'./integrations/mediaembed';import _0x29ef9a from'./integrations/mention';import _0x3472fb from'./integrations/pagebreak';import _0x458c70 from'./integrations/paragraph';import _0x104f5e from'./integrations/removeformat';import _0x973ba6 from'./integrations/restrictededitingmode';import _0x39ca8b from'./integrations/shiftentercommand';import _0x35720a from'./integrations/standardeditingmode';import _0x569738 from'./integrations/style';import _0x33e46f from'./integrations/table';import _0x1c4afa from'./integrations/tablemergesplit';import _0x1bc775 from'./integrations/tableheadings';import _0x3220a4 from'./integrations/tableclipboard';import _0x4e9dbe from'./integrations/tablecolumnresize';import _0x3d64e1 from'./integrations/template';import _0x2aed10 from'./integrations/tableofcontents';import _0x3a9470 from'./integrations/title';import _0x558a18 from'./integrations/undo';import{getTranslation as _0x13674c}from'./utils/common-translations';import _0x516be8 from'./integrations/tablecaption';import _0x4fd767 from'./integrations/documentlistproperties';import _0x736a75 from'./integrations/tableproperties';export default class p extends _0x250295{static get['requires'](){return[_0x39af('0x12e'),_0x200b6e,_0x28ef4b,_0x300cf5,_0x298214,_0x4be9e5,_0x32a3f7,_0x29e731,_0x4454ec,_0x914320,_0x1c036a,_0x4fd767,_0x2a8f12,_0x91a114,_0x33af1a,_0xf205b5,_0x15b8d1,_0x3b2368,_0x48308,_0x8978fc,_0x1e4fbd,_0x1f6204,_0x2eae25,_0x5e9226,_0x4c2b30,_0x17a4e3,_0x393466,_0x3362b7,_0xb17ae7,_0x29ef9a,_0x3472fb,_0x458c70,_0x104f5e,_0x973ba6,_0x39ca8b,_0x35720a,_0x569738,_0x33e46f,_0x1c4afa,_0x1bc775,_0x516be8,_0x3220a4,_0x4e9dbe,_0x2aed10,_0x736a75,_0x3d64e1,_0x3a9470,_0x558a18];}static get[_0x39af('0x133')](){return _0x39af('0x2f');}constructor(_0x66233c){function _0x13fadf(_0x226f76){return _0x226f76[_0x39af('0xdb')](_0x32801c=>String['fromCharCode'](_0x32801c))['join']('');}super(_0x66233c),this['set'](_0x39af('0xe4'),[]),this['on']('change:activeMarkers',(_0x2c9e42,_0x2f0f12,_0x5cda33,_0x14465e)=>{this[_0x39af('0x116')]['change'](()=>{for(const _0x474fd0 of[..._0x14465e,..._0x5cda33])this[_0x39af('0x116')][_0x39af('0xe1')][_0x39af('0x43')](_0x474fd0)&&_0x66233c['editing'][_0x39af('0x2')](_0x474fd0);});}),this[_0x39af('0xce')]=new _0x3e6b2c(this[_0x39af('0xb1')][_0x39af('0x1f')][_0x39af('0x81')],this[_0x39af('0xb1')][_0x39af('0x9b')]),this['_adapter']=null,this[_0x39af('0x3e')]=new Dt(this[_0x39af('0xb1')]),this[_0x39af('0x5a')]=new Map(),this['_commentsRepository']=_0x66233c[_0x39af('0xf5')]['get'](_0x39af('0x12e')),this['_enabledCommands']=new Set(),this[_0x39af('0x116')]=this[_0x39af('0xb1')][_0x39af('0x1f')],this[_0x39af('0x26')]=new WeakMap(),this[_0x39af('0x3c')]=!0x1,_0x66233c['config'][_0x39af('0xfe')]('trackChanges.trackFormatChanges',_0x39af('0x7d')),this['_trackFormatChanges']=_0x66233c['config'][_0x39af('0x72')](_0x39af('0x20')),_0x66233c[_0x39af('0x9')][_0x39af('0xfe')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x39af('0x7')]=_0x66233c[_0x39af('0x9')][_0x39af('0x72')](_0x39af('0x122')),this[_0x39af('0x98')]=new _0xf78113(_0x66233c,this[_0x39af('0x0')]),this[_0x13fadf([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x13fadf([0x34,0x30,0x34,0x36,0x31,0x36,0x30,0x34]);}['init'](){const _0x45c449=this[_0x39af('0xb1')];_0x45c449[_0x39af('0x103')][_0x39af('0xd7')](_0x39af('0x39'))[_0x39af('0xb2')]({'model':_0x39af('0x61'),'view':_0x325c23=>{const {id:_0x1eb60f,type:_0x34bac9}=this[_0x39af('0x8')](_0x325c23[_0x39af('0x11d')]),_0x72e9a8=[_0x39af('0x136'),_0x39af('0x67')+_0x34bac9];let _0x3cd86c=0xbb8;return this[_0x39af('0xe4')][_0x39af('0xc8')](_0x325c23[_0x39af('0x11d')])&&(_0x72e9a8[_0x39af('0xb9')]('ck-suggestion-marker--active'),_0x3cd86c=0xbc2),_0x39af('0xb')==_0x34bac9&&(_0x3cd86c+=0x5),{'classes':_0x72e9a8,'attributes':{'data-suggestion':_0x1eb60f},'priority':_0x3cd86c};}}),_0x45c449[_0x39af('0x103')][_0x39af('0xd7')](_0x39af('0xa'))[_0x39af('0x130')](_0x4da753=>{_0x4da753['on'](_0x39af('0x80'),(_0x524164,_0x3b3b5a,_0x4bc8a1)=>{if(!_0x4bc8a1['options'][_0x39af('0x8d')])return;const _0x14733f=_0x3b3b5a[_0x39af('0x57')];if(!_0x14733f)return;const _0x2a191c=_0x4bc8a1['mapper'][_0x39af('0x2b')](_0x14733f);_0x45c449[_0x39af('0x1f')][_0x39af('0x81')][_0x39af('0xfb')](_0x14733f)&&_0x2a191c&&!_0x2a191c[_0x39af('0x11b')](_0x39af('0x3b'))&&_0x2a191c['is'](_0x39af('0x6b'))&&_0x11ace6(_0x2a191c,_0x4bc8a1[_0x39af('0x11')]);},{'priority':'high'});}),_0x45c449[_0x39af('0x103')]['for']('dataDowncast')[_0x39af('0xb2')]({'model':_0x39af('0x61'),'view':(_0xed88b3,_0xc5ffdb)=>{if(!_0xc5ffdb['options'][_0x39af('0x8d')])return null;const {type:_0x2fb9a5}=this['_splitMarkerName'](_0xed88b3['markerName']);return{'classes':[_0x39af('0x136'),_0x39af('0x67')+_0x2fb9a5],'priority':0xbb8};}});const _0x3e13d9=({showActiveMarkers:_0x1bbe81=!0x0}={})=>(_0x480b3e,_0x3feb63,_0x205a40)=>{if(!_0x3feb63[_0x39af('0x57')])return;if(_0x3feb63['item']['is'](_0x39af('0x128')))return void _0x205a40[_0x39af('0x93')]['consume'](_0x3feb63[_0x39af('0x57')],_0x480b3e[_0x39af('0xbf')]);const _0x22235f=_0x205a40['mapper'][_0x39af('0x2b')](_0x3feb63[_0x39af('0x57')]);if(!(_0x3feb63[_0x39af('0x57')]['is']('element')&&_0x45c449[_0x39af('0x1f')][_0x39af('0x81')][_0x39af('0x13f')](_0x3feb63['item'])&&!_0x22235f[_0x39af('0x11b')](_0x39af('0x71'))))return;const {id:_0xb2319f}=this[_0x39af('0x8')](_0x3feb63[_0x39af('0x11d')]);_0x205a40[_0x39af('0x11')][_0x39af('0x19')]([_0x39af('0x136'),_0x39af('0xf4')],_0x22235f),_0x205a40[_0x39af('0x11')][_0x39af('0x76')]('data-suggestion',_0xb2319f,_0x22235f),_0x205a40[_0x39af('0x9c')][_0x39af('0x5c')](_0x22235f,_0x3feb63[_0x39af('0x11d')]),_0x1bbe81&&(this[_0x39af('0xe4')][_0x39af('0xc8')](_0x3feb63['markerName'])?_0x205a40[_0x39af('0x11')][_0x39af('0x19')](_0x39af('0x64'),_0x22235f):_0x205a40['writer'][_0x39af('0x30')](_0x39af('0x64'),_0x22235f));for(const _0x4671f6 of _0x45c449[_0x39af('0x1f')][_0x39af('0x3a')](_0x3feb63[_0x39af('0x57')])[_0x39af('0xb7')]())_0x205a40['consumable'][_0x39af('0xdf')](_0x4671f6,_0x480b3e[_0x39af('0xbf')]);_0x205a40[_0x39af('0x93')][_0x39af('0xdf')](_0x3feb63['item'],_0x480b3e['name']);};_0x45c449[_0x39af('0x103')]['for']('dataDowncast')[_0x39af('0x130')](_0x1aa1b4=>{_0x1aa1b4['on'](_0x39af('0x99'),(_0x1e1f22,_0x3e65d4,_0x1a3241)=>{_0x1a3241['options'][_0x39af('0x8d')]&&_0x3e13d9({'showActiveMarkers':!0x1})(_0x1e1f22,_0x3e65d4,_0x1a3241);},{'priority':_0x39af('0x10')});}),_0x45c449[_0x39af('0x103')][_0x39af('0xd7')](_0x39af('0xa'))[_0x39af('0x53')]({'model':_0x39af('0x61'),'view':(_0x2dd97a,_0x55cf72)=>_0x55cf72['options'][_0x39af('0x8d')]?null:{'group':_0x39af('0x61'),'name':_0x2dd97a[_0x39af('0x42')](0xb)}}),_0x45c449[_0x39af('0x103')][_0x39af('0xd7')]('upcast')[_0x39af('0x132')]({'view':{'name':_0x39af('0x61'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x48ed38,{writer:_0x312fb0})=>{let _0x2253ff=_0x39af('0x37')+_0x48ed38['getAttribute'](_0x39af('0x10b'))+':'+_0x48ed38['getAttribute']('id');return _0x48ed38['getAttribute'](_0x39af('0x83'))&&(_0x2253ff+=':'+_0x48ed38[_0x39af('0x113')](_0x39af('0x83'))),_0x312fb0[_0x39af('0x31')](_0x39af('0xe8'),{'data-name':_0x2253ff});}}),_0x45c449[_0x39af('0x103')]['for'](_0x39af('0xd1'))['dataToMarker']({'view':_0x39af('0x61')}),_0x45c449['conversion'][_0x39af('0xd7')](_0x39af('0x39'))['add'](_0x54cc84=>{_0x54cc84['on']('addMarker:suggestion:formatBlock',_0x3e13d9(),{'priority':_0x39af('0x10f')});}),_0x45c449[_0x39af('0x103')][_0x39af('0xd7')](_0x39af('0x39'))[_0x39af('0x130')](_0x50a220=>{_0x50a220['on'](_0x39af('0x118'),(_0x57e982,_0x1d29e8,_0x421f67)=>{const _0x4adb17=_0x421f67[_0x39af('0x9c')][_0x39af('0xcb')](_0x1d29e8['markerName']);if(_0x4adb17)for(const _0x5937ab of _0x4adb17)_0x5937ab[_0x39af('0x11b')](_0x39af('0x71'))||(_0x421f67['writer'][_0x39af('0x30')](['ck-suggestion-marker',_0x39af('0xf4'),_0x39af('0x64')],_0x5937ab),_0x421f67[_0x39af('0x11')][_0x39af('0x86')]('data-suggestion',_0x5937ab),_0x421f67[_0x39af('0x9c')][_0x39af('0x65')](_0x5937ab,_0x1d29e8[_0x39af('0x11d')]));},{'priority':_0x39af('0x10f')});}),_0x45c449[_0x39af('0x1f')][_0x39af('0x58')][_0x39af('0x110')](_0x201e76=>{let _0x61c8a0=!0x1;const _0x45564d=Array[_0x39af('0x12b')](_0x45c449[_0x39af('0x1f')][_0x39af('0x58')][_0x39af('0x50')][_0x39af('0x41')]()),_0xb50017=new Set();for(const {name:_0x5488da,data:_0x5b452e}of _0x45564d){const {group:_0x2f6380,type:_0x1ca931,id:_0x357044}=this['_splitMarkerName'](_0x5488da);if(_0x39af('0x61')!==_0x2f6380)continue;const _0x31cbca=this['_suggestions']['get'](_0x357044);if(null!=_0x5b452e[_0x39af('0x25')]){_0x39af('0x73')==_0x1ca931&&(_0x61c8a0=_0x61c8a0||Mt(_0x5b452e[_0x39af('0x25')],_0x5488da,_0x201e76,_0x45c449[_0x39af('0x1f')][_0x39af('0x81')]));if(_0x5b452e['newRange'][_0x39af('0x11a')]||_0x39af('0xa5')==_0x5b452e[_0x39af('0x25')][_0x39af('0x13e')][_0x39af('0x10a')]||'formatBlock'==_0x1ca931&&!Nt(_0x5b452e[_0x39af('0x25')])||'deletion'==_0x1ca931&&!(!_t(_0x48b87d=_0x5b452e[_0x39af('0x25')])&&!function(_0x5040d9){return _0x5040d9[_0x39af('0xd8')]['parent']==_0x5040d9[_0x39af('0x4')][_0x39af('0x102')]&&_0x5040d9[_0x39af('0xd8')][_0x39af('0xaf')];}(_0x48b87d)))_0x201e76[_0x39af('0x7c')](_0x5488da),_0x61c8a0=!0x0;else{if(!_0x31cbca||!_0x31cbca[_0x39af('0x4d')])continue;_0xb50017[_0x39af('0x130')](_0x31cbca);}}}var _0x48b87d;return _0xb50017['size']>0x0&&(_0x61c8a0=!!this['_joinWithAdjacentSuggestions'](_0xb50017)||_0x61c8a0),_0x61c8a0;}),_0x45c449[_0x39af('0x1f')][_0x39af('0x58')][_0x39af('0x110')](_0x39614c=>{let _0x2573a1=!0x1;for(const _0x24dd7f of _0x45c449[_0x39af('0x1f')][_0x39af('0x58')][_0x39af('0x50')]['getChanges']()){if(_0x39af('0xab')!=_0x24dd7f[_0x39af('0x13c')])continue;const _0x179117=_0x24dd7f['position'][_0x39af('0x95')](_0x24dd7f['length']);if(_0x179117['isAtEnd'])for(const _0x430c64 of this['_suggestions'][_0x39af('0x29')]()){if(_0x430c64[_0x39af('0x4e')]||!_0x430c64[_0x39af('0x4d')])continue;if(_0x39af('0xd')!=_0x430c64[_0x39af('0x13c')])continue;const _0x4cda21=_0x430c64[_0x39af('0x4f')]();if(_0x4cda21[_0x39af('0xd8')][_0x39af('0x35')]!=_0x4cda21[_0x39af('0x4')][_0x39af('0x35')]&&_0x4cda21['end'][_0x39af('0x91')](_0x24dd7f[_0x39af('0xa0')])){const _0x5b91ed=_0x45c449[_0x39af('0x1f')]['createRange'](_0x4cda21[_0x39af('0xd8')],_0x179117);_0x39614c[_0x39af('0x12a')](_0x430c64[_0x39af('0x10d')](),{'range':_0x5b91ed}),_0x2573a1=!0x0;}}}return _0x2573a1;}),_0x45c449[_0x39af('0x1f')]['markers']['on'](_0x39af('0xe0'),(_0x2e039e,_0x53db32,_0x59dd0d)=>{if(null==_0x59dd0d){const {id:_0x4fa6ba}=this[_0x39af('0x8')](_0x53db32[_0x39af('0xbf')]),_0x3e3503=this[_0x39af('0x5a')][_0x39af('0x72')](_0x4fa6ba);_0x3e3503&&_0x3e3503[_0x39af('0x117')](_0x53db32['name']);}}),_0x45c449[_0x39af('0x1f')][_0x39af('0x58')]['on']('change:data',()=>{const _0x1ff9f8=Array[_0x39af('0x12b')](_0x45c449[_0x39af('0x1f')][_0x39af('0x58')][_0x39af('0x50')]['getChangedMarkers']())[_0x39af('0xae')](_0x1384fa=>'suggestion'===this[_0x39af('0x8')](_0x1384fa[_0x39af('0xbf')])[_0x39af('0x9e')]);if(0x0===_0x1ff9f8[_0x39af('0xfd')])return;_0x1ff9f8[_0x39af('0x60')]((_0x5ed7a8,_0x1495fc)=>{const _0x589d83=_0x5ed7a8[_0x39af('0x139')][_0x39af('0x3')],_0x2b01a6=_0x1495fc[_0x39af('0x139')][_0x39af('0x3')];return null===_0x589d83&&null===_0x2b01a6?0x0:null===_0x589d83&&null!==_0x2b01a6?-0x1:null!==_0x589d83&&null===_0x2b01a6?0x1:_0x589d83[_0x39af('0xd8')][_0x39af('0x107')](_0x2b01a6[_0x39af('0xd8')])?-0x1:0x1;});const _0x27d53b=new Set(),_0x4bc8fa=new Set();for(const {name:_0x16443c,data:_0x1231a0}of _0x1ff9f8){const {id:_0x97be84}=this['_splitMarkerName'](_0x16443c);if(null===_0x1231a0[_0x39af('0x3')]){const _0x418f77=this[_0x39af('0x27')](_0x16443c);_0x4bc8fa[_0x39af('0x130')](_0x418f77);}else{const _0x8e0979=this['_suggestions'][_0x39af('0x72')](_0x97be84);null!==_0x1231a0[_0x39af('0x25')]||_0x8e0979[_0x39af('0x4d')]?(_0x27d53b[_0x39af('0x130')](_0x8e0979[_0x39af('0x137')]),_0x4bc8fa[_0x39af('0x130')](_0x8e0979)):this['_removeSuggestion'](_0x8e0979);}}_0x4bc8fa[_0x39af('0x74')]>0x0&&this[_0x39af('0xef')](_0x4bc8fa);for(const _0x4d179f of _0x27d53b)this[_0x39af('0x49')](_0x39af('0x6e'),_0x4d179f);}),_0x45c449['model']['on'](_0x39af('0xd0'),(_0x17854c,_0x5e39d3)=>{const _0xb088a6=_0x5e39d3[0x0];if(!this[_0x39af('0x5a')][_0x39af('0x74')])return;if(!_0xb088a6[_0x39af('0xa4')])return;if(_0xb088a6[_0x39af('0x24')][_0x39af('0x131')]||!_0xb088a6[_0x39af('0x24')][_0x39af('0xf9')])return;let _0x204ad3,_0x32c212;switch(_0xb088a6[_0x39af('0x13c')]){case _0x39af('0xab'):_0x204ad3=_0x45c449[_0x39af('0x1f')][_0x39af('0x126')](_0xb088a6['position']),_0x32c212=_0x204ad3[_0x39af('0x95')](_0xb088a6[_0x39af('0x123')]);break;case _0x39af('0x6'):_0x204ad3=_0x45c449[_0x39af('0x1f')][_0x39af('0x126')](_0xb088a6[_0x39af('0x1b')]),_0x32c212=_0x45c449['model'][_0x39af('0x126')](_0xb088a6[_0x39af('0x11f')]);break;case _0x39af('0xb3'):_0x204ad3=_0x45c449['model']['createPositionAt'](_0xb088a6[_0x39af('0xcf')]),_0x32c212=_0x204ad3[_0x39af('0x95')](_0xb088a6[_0x39af('0x123')]);break;default:return;}const _0x52965e=_0x45c449[_0x39af('0x1f')]['createRange'](_0x204ad3,_0x32c212);_0x45c449['model']['change'](()=>{for(const {suggestion:_0x59d73d,meta:_0x22d719}of this[_0x39af('0x82')](_0x52965e)){if(_0x59d73d[_0x39af('0x4e')])continue;if(_0x39af('0x73')==_0x59d73d[_0x39af('0x13c')])continue;const _0x1093f8=_0x59d73d['data']&&_0x59d73d['data'][_0x39af('0x7b')];(_0x39af('0xd')!=_0x59d73d['type']||'split'==_0xb088a6[_0x39af('0x13c')]&&!_0x1093f8)&&(_0x22d719[_0x39af('0xc3')]||_0x39af('0xd5')==_0x59d73d['type']&&_0x22d719[_0x39af('0xba')]||_0x59d73d[_0x39af('0x4f')]()[_0x39af('0xcd')](_0x52965e)&&this[_0x39af('0x17')](_0x59d73d,_0x204ad3,_0x32c212));}});},{'priority':_0x39af('0x106')}),_0x45c449[_0x39af('0x1f')]['on'](_0x39af('0x6f'),(_0x547550,_0x3e35a6)=>{const _0x394105=_0x3e35a6[0x0],_0x134f90=_0x3e35a6[0x1];if(_0x134f90&&_0x134f90[_0x39af('0xd6')])return;if(this[_0x39af('0x3c')])return;if(!this['trackChangesCommand'][_0x39af('0x28')])return;if(_0x394105[_0x39af('0x11a')])return;const _0x45f4ee=_0x45c449[_0x39af('0x1f')][_0x39af('0x81')],{start:_0xb100c9,end:_0x317a9e}=_0x394105['getFirstRange'](),_0x49e5cf=_0xb100c9[_0x39af('0xaa')]&&_0x45f4ee[_0x39af('0xf')](_0xb100c9['nodeAfter'])?null:_0x45f4ee['getNearestSelectionRange'](_0xb100c9,_0x39af('0x12d')),_0x53312d=_0x317a9e[_0x39af('0x102')]&&_0x45f4ee[_0x39af('0xf')](_0x317a9e['nodeBefore'])?null:_0x45f4ee['getNearestSelectionRange'](_0x317a9e,_0x39af('0xe2')),_0x2f219e=_0x45c449[_0x39af('0x1f')][_0x39af('0xda')](_0x49e5cf?_0x49e5cf[_0x39af('0xd8')]:_0xb100c9,_0x53312d?_0x53312d[_0x39af('0x4')]:_0x317a9e);_0x45c449[_0x39af('0x1f')][_0x39af('0x138')](_0x403f91=>{this[_0x39af('0x111')](_0x2f219e);const _0x48f656=_0x45c449[_0x39af('0x1f')][_0x39af('0x81')][_0x39af('0x5d')](_0x2f219e[_0x39af('0xd8')]);_0x394105['is'](_0x39af('0x51'))?_0x403f91[_0x39af('0xca')](_0x48f656):_0x394105[_0x39af('0x13d')](_0x48f656);}),_0x547550['stop']();},{'priority':_0x511a76[_0x39af('0xc7')]+0xa}),_0x45c449[_0x39af('0x1f')]['on'](_0x39af('0x115'),(_0x3fe30e,_0x4ff72d)=>{const _0xb3e6d7=_0x4ff72d[_0x4ff72d[_0x39af('0xfd')]-0x1];_0xb3e6d7&&_0xb3e6d7[_0x39af('0xd6')]||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x45c449[_0x39af('0x1f')][_0x39af('0x138')](()=>{let _0x27f170=_0x45c449['model'][_0x39af('0x115')](_0x4ff72d[0x0],_0x4ff72d[0x1],_0x4ff72d[0x2],{'forceDefaultExecution':!0x0});if(!_0x27f170)return;_0x3fe30e[_0x39af('0x112')]=_0x27f170[_0x39af('0xed')]();const _0x450c10=_0x27f170[_0x39af('0x4')][_0x39af('0x102')],_0x48be72=_0x45c449[_0x39af('0x1f')][_0x39af('0x81')];_0x450c10&&_0x48be72[_0x39af('0x13f')](_0x450c10)&&!_0x48be72['isObject'](_0x450c10)&&(_0x27f170=_0x45c449[_0x39af('0x1f')]['createRange'](_0x27f170[_0x39af('0xd8')],_0x45c449[_0x39af('0x1f')][_0x39af('0x126')](_0x450c10,_0x39af('0x4')))),this['markInsertion'](_0x27f170);}),_0x3fe30e[_0x39af('0xc5')]());},{'priority':_0x39af('0x10f')}),this[_0x39af('0xb1')][_0x39af('0xde')][_0x39af('0x130')](_0x39af('0x13a'),this[_0x39af('0x98')]),this['enableCommand'](_0x39af('0x13a'));const _0x207109=new _0x49f9ee(_0x45c449,this['_suggestions']);_0x45c449[_0x39af('0xde')][_0x39af('0x130')](_0x39af('0x6c'),_0x207109),this[_0x39af('0x47')]('acceptSuggestion');const _0x20cd01=new _0x3899d2(_0x45c449,this['_suggestions']);_0x45c449[_0x39af('0xde')][_0x39af('0x130')](_0x39af('0xb0'),_0x20cd01),this[_0x39af('0x47')](_0x39af('0xb0')),_0x45c449['commands'][_0x39af('0x130')](_0x39af('0x68'),new _0x219ed6(_0x45c449,_0x207109,this['_suggestions'])),this['enableCommand'](_0x39af('0x68')),_0x45c449[_0x39af('0xde')]['add'](_0x39af('0x104'),new _0x219ed6(_0x45c449,_0x20cd01,this['_suggestions'])),this[_0x39af('0x47')](_0x39af('0x104')),_0x45c449[_0x39af('0xde')]['add'](_0x39af('0x109'),new _0x3a708a(_0x45c449,_0x207109,this['_suggestions'])),this[_0x39af('0x47')](_0x39af('0x109')),_0x45c449[_0x39af('0xde')]['add'](_0x39af('0xfa'),new _0x3a708a(_0x45c449,_0x20cd01,this[_0x39af('0x5a')])),this[_0x39af('0x47')](_0x39af('0xfa'));const _0x1ac2ed=_0x45c449[_0x39af('0xf5')]['get'](_0x39af('0x12e'));this[_0x39af('0xd3')](_0x1ac2ed,_0x39af('0xe5'),(_0x480409,{threadId:_0x32c911})=>{const _0x112196=this[_0x39af('0x5a')][_0x39af('0x72')](_0x32c911);_0x112196&&_0x112196[_0x39af('0xf6')]&&0x1===_0x112196[_0x39af('0xf6')]['length']&&this[_0x39af('0x8a')](_0x32c911,{'hasComments':!0x0});},{'priority':_0x39af('0x6d')}),this[_0x39af('0xd3')](_0x1ac2ed,'removeComment',(_0x1cfb08,{threadId:_0xfd2a7d})=>{const _0x5a9963=this[_0x39af('0x5a')]['get'](_0xfd2a7d);_0x5a9963&&_0x5a9963[_0x39af('0xf6')]&&!_0x5a9963[_0x39af('0xf6')]['length']&&this[_0x39af('0x8a')](_0xfd2a7d,{'hasComments':!0x1});},{'priority':_0x39af('0x6d')});}set[_0x39af('0xf1')](_0x2abc89){if(this[_0x39af('0x22')])throw new _0x14653c('track-changes-adapter-already-set',this);this[_0x39af('0x22')]=_0x2abc89;}get[_0x39af('0xf1')](){return this[_0x39af('0x22')];}['getSuggestions']({skipNotAttached:_0x2f8ad8=!0x1,toJSON:_0x140dbf=!0x1}={}){const _0x28e208=[];for(const _0x41a7ca of this[_0x39af('0x5a')][_0x39af('0x29')]())_0x2f8ad8&&!_0x41a7ca['isInContent']||_0x28e208[_0x39af('0xb9')](_0x41a7ca);return _0x140dbf?_0x28e208[_0x39af('0xdb')](_0x5ee26f=>_0x5ee26f[_0x39af('0xc')]()):_0x28e208;}['getSuggestion'](_0x34a4a6){const _0x42ce4e=this[_0x39af('0x5a')][_0x39af('0x72')](_0x34a4a6);if(!_0x42ce4e)throw new _0x14653c(_0x39af('0x55'),this);return _0x42ce4e;}[_0x39af('0xa6')](_0x5c4f1e){return this[_0x39af('0x5a')][_0x39af('0x43')](_0x5c4f1e);}['addSuggestionData'](_0x53e175){const {authorId:_0x49bf56,id:_0x30b4a4,attributes:_0x24a31d}=_0x53e175,[_0x3bb573,_0x4cc9af]=_0x53e175[_0x39af('0x13c')]['split'](':'),_0x59c211=this[_0x39af('0x5a')][_0x39af('0x72')](_0x30b4a4)||this[_0x39af('0x10c')](_0x3bb573,_0x4cc9af,_0x30b4a4,_0x49bf56,_0x24a31d);if(this[_0x39af('0xd2')](_0x59c211),this[_0x39af('0x92')](_0x59c211,_0x3bb573,_0x4cc9af||null,_0x49bf56),_0x59c211[_0x39af('0xe')]=_0x53e175[_0x39af('0xe')],_0x24a31d&&_0x24a31d[_0x39af('0x48')]){const _0x41726c=_0x24a31d[_0x39af('0x48')],_0x5d83ec=this['_getExternalAuthor'](_0x41726c[_0x39af('0xf7')]);_0x59c211[_0x39af('0xfc')]=_0x41726c[_0x39af('0xe')],_0x59c211['author']=_0x5d83ec,_0x59c211['isExternal']=!0x0;}else _0x59c211[_0x39af('0xfc')]=_0x53e175['createdAt'];switch(_0x53e175[_0x39af('0x139')]&&(_0x59c211[_0x39af('0x139')]=_0x53e175[_0x39af('0x139')]),_0x53e175[_0x39af('0x7e')]&&(_0x59c211[_0x39af('0x7e')]=_0x53e175[_0x39af('0x7e')]),this[_0x39af('0x22')]&&this[_0x39af('0x22')][_0x39af('0x120')]||(_0x59c211[_0x39af('0x66')]=!0x0),this['_suggestionState'][_0x39af('0x72')](_0x59c211)){case _0x39af('0x23'):this[_0x39af('0x26')][_0x39af('0x75')](_0x59c211,_0x39af('0x129'));break;case _0x39af('0xb5'):_0x59c211[_0x39af('0x4d')]?(this[_0x39af('0x26')][_0x39af('0x75')](_0x59c211,_0x39af('0x79')),this[_0x39af('0x49')](_0x39af('0xbd'),_0x59c211)):this[_0x39af('0x26')][_0x39af('0x75')](_0x59c211,_0x39af('0x13b'));}return _0x59c211;}[_0x39af('0x6c')](_0x499152){this[_0x39af('0xd6')](()=>{this['editor'][_0x39af('0x1f')][_0x39af('0x138')](()=>{for(const _0x6cf68a of _0x499152['getAllAdjacentSuggestions']())_0x6cf68a['accept']();});});}['discardSuggestion'](_0x48568d){this[_0x39af('0xd6')](()=>{this[_0x39af('0xb1')][_0x39af('0x1f')][_0x39af('0x138')](()=>{for(const _0x53a816 of _0x48568d[_0x39af('0x62')]())_0x53a816[_0x39af('0xbb')]();});});}[_0x39af('0x47')](_0x505831,_0x5bc3d5){const _0x26035d=this[_0x39af('0xb1')]['commands']['get'](_0x505831);if(!_0x26035d)throw new _0x14653c(_0x39af('0xe7'),this,{'commandName':_0x505831});this[_0x39af('0x0')][_0x39af('0x130')](_0x26035d),_0x5bc3d5&&_0x26035d['on'](_0x39af('0xac'),(_0x405b66,_0x39ecc1)=>{this['trackChangesCommand'][_0x39af('0x28')]&&(this['_isForcedDefaultExecutionBlock']||_0x39ecc1[_0x39af('0xfd')]>0x0&&_0x39ecc1[_0x39ecc1[_0x39af('0xfd')]-0x1]&&_0x39ecc1[_0x39ecc1['length']-0x1][_0x39af('0xd6')]||(_0x5bc3d5((..._0x231b7b)=>_0x26035d[_0x39af('0xac')](..._0x231b7b,{'forceDefaultExecution':!0x0}),..._0x39ecc1),_0x405b66[_0x39af('0xc5')]()));},{'priority':_0x39af('0x10f')});}[_0x39af('0xd6')](_0x21fc89){let _0x43ed0e,_0x3f63d5;const _0x5439eb=this[_0x39af('0x3c')];this[_0x39af('0x3c')]=!0x0;try{_0x43ed0e=_0x21fc89();}catch(_0x429c61){_0x3f63d5=_0x429c61;}return _0x5439eb||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3f63d5&&_0x14653c[_0x39af('0x114')](_0x3f63d5,this),_0x43ed0e;}[_0x39af('0x7f')](_0x1498f4,_0x1ed83a=null,_0x115cae={}){if(_0x1498f4['isCollapsed'])return null;const _0x2c95cd=this[_0x39af('0xb1')][_0x39af('0xf5')][_0x39af('0x72')]('Users')['me'];for(const {suggestion:_0x553f32,meta:_0x533fb8}of this['_findSuggestions'](_0x1498f4,_0x39af('0xd5')))if(_0x533fb8[_0x39af('0xba')]){if(!_0x533fb8[_0x39af('0x16')]){if(!this[_0x39af('0x7')]&&_0x533fb8[_0x39af('0xc3')])continue;return _0x553f32;}if(_0x1ed83a==_0x553f32[_0x39af('0xec')]){const _0xd8d5dc=_0x553f32[_0x39af('0x4f')]();return _0xd8d5dc[_0x39af('0xd8')][_0x39af('0x91')](_0x1498f4[_0x39af('0x4')])?this[_0x39af('0xcc')](_0x553f32,this[_0x39af('0x116')][_0x39af('0xda')](_0x1498f4[_0x39af('0xd8')],_0xd8d5dc['end'])):this['_setSuggestionRange'](_0x553f32,this[_0x39af('0x116')][_0x39af('0xda')](_0xd8d5dc[_0x39af('0xd8')],_0x1498f4[_0x39af('0x4')])),_0x553f32;}}const _0x2cb1bb=_0x16cd6a(),_0x338953=_0x2c95cd['id'],_0x500887=_0x1ed83a?_0x39af('0xdc')+_0x1ed83a:'insertion',_0x352b32=this[_0x39af('0xa1')]({'id':_0x2cb1bb,'type':_0x500887,'createdAt':new Date(),'authorId':_0x338953,'attributes':_0x115cae});return this[_0x39af('0x6a')](_0x500887,_0x2cb1bb,_0x338953,_0x1498f4),_0x352b32;}[_0x39af('0x2e')](_0x1c5839,_0xfd6dbf=_0x39af('0x10e'),_0x2f32e7={}){const _0x7e99e6=this[_0x39af('0xb1')][_0x39af('0xf5')][_0x39af('0x72')](_0x39af('0x4a'))['me'],_0x47c0d9=this[_0x39af('0x3e')][_0x39af('0xf8')]('insertion',_0xfd6dbf,_0x39af('0xa9'));for(const _0x5caaac of this[_0x39af('0x7a')]())if(_0x5caaac[_0x39af('0xea')]['id']==_0x7e99e6['id']&&_0x39af('0xd5')==_0x5caaac[_0x39af('0x13c')]&&_0x5caaac[_0x39af('0xec')]==_0xfd6dbf&&(_0x47c0d9(_0x5caaac[_0x39af('0xff')](),_0x1c5839)||_0x47c0d9(_0x1c5839,_0x5caaac[_0x39af('0xff')]()))){for(const _0x2ff4b1 of _0x1c5839)_0x5caaac['addRange'](_0x2ff4b1);return _0x5caaac;}if(this['_mergeNestedSuggestions'])for(const _0xc380b8 of _0x1c5839)for(const {suggestion:_0x2e91ad,meta:_0x594738}of this[_0x39af('0x82')](_0xc380b8,'insertion')){if(!_0x594738[_0x39af('0xba')])continue;let _0x5925cb=!0x0;for(const _0xdc451f of _0x2e91ad[_0x39af('0xff')]())for(const _0x47f928 of _0x1c5839)if(!_0xdc451f[_0x39af('0xcd')](_0x47f928)){_0x5925cb=!0x1;break;}if(_0x5925cb)return _0x2e91ad;}const _0x177c09=_0x16cd6a(),_0x566d36=_0x7e99e6['id'],_0x293528=_0x39af('0xdc')+_0xfd6dbf,_0x5c8719=this[_0x39af('0xa1')]({'id':_0x177c09,'type':_0x293528,'createdAt':new Date(),'authorId':_0x566d36,'attributes':_0x2f32e7});for(const _0x1d923b of _0x1c5839)this[_0x39af('0x6a')](_0x293528,_0x177c09,_0x566d36,_0x1d923b,_0x1760a0['getMultiRangeId']());return _0x5c8719;}[_0x39af('0xd9')](_0x565bef,_0x4d4df5,_0x299244=null,_0x36019e={}){if(_0x299244=_0x299244||$t(_0x4d4df5),_0x565bef[_0x39af('0x11a')])return null;if(_0x39af('0x8f')===this[_0x39af('0xf3')]){const _0x570f81=this[_0x39af('0x3e')][_0x39af('0xf8')]('formatInline',_0x299244,_0x39af('0xad'));return this['forceDefaultExecution'](()=>_0x570f81([_0x565bef],_0x4d4df5,_0x36019e)),null;}const _0x3d2a34=this[_0x39af('0xb1')]['plugins'][_0x39af('0x72')](_0x39af('0x4a'))['me'],_0x14866f=[];if('always'!==this[_0x39af('0xf3')])for(const {suggestion:_0x40b0f7,meta:_0x4bac31}of this[_0x39af('0x82')](_0x565bef,'insertion'))_0x4bac31[_0x39af('0xba')]&&!_0x4bac31[_0x39af('0x4b')]&&_0x14866f[_0x39af('0xb9')](..._0x40b0f7[_0x39af('0xff')]());const _0x2a40c1=function(_0x215b86,_0xfa820a){const _0xc61066=[];for(const _0x5168b7 of _0xfa820a){const _0xb7b946=_0x215b86[_0x39af('0x127')](_0x5168b7);_0xb7b946&&_0xc61066[_0x39af('0xb9')](_0xb7b946);}return _0xc61066;}(_0x565bef,_0x14866f),_0x1c04dc=function(_0x1bbfaa,_0x37076d){const _0x2f99ec=[_0x1bbfaa];for(const _0x1f73fd of _0x37076d){let _0x3c0496=0x0;for(;_0x3c0496<_0x2f99ec[_0x39af('0xfd')];){const _0x46c6c4=_0x2f99ec[_0x3c0496][_0x39af('0xe6')](_0x1f73fd);_0x2f99ec[_0x39af('0x21')](_0x3c0496,0x1,..._0x46c6c4),_0x3c0496+=_0x46c6c4['length'];}}return _0x2f99ec;}(_0x565bef,_0x14866f);_0x2a40c1[_0x39af('0xfd')]&&this[_0x39af('0x116')][_0x39af('0x138')](()=>{for(const _0x1568fc of _0x2a40c1){const _0x48a87b=this[_0x39af('0x3e')]['getSuggestionCallback'](_0x39af('0x73'),_0x299244,_0x39af('0xad'));this[_0x39af('0xd6')](()=>_0x48a87b([_0x1568fc],_0x4d4df5,_0x36019e));}});for(const _0xd1908b of _0x1c04dc){let _0x5b9c6b=null,_0x290a96=_0xd1908b[_0x39af('0xd8')],_0x1db95d=_0xd1908b[_0x39af('0x4')];for(const {suggestion:_0x388d48,meta:_0x1f34cd}of this[_0x39af('0x82')](_0xd1908b,'formatInline')){if(!_0x1f34cd[_0x39af('0xba')])continue;if(_0x388d48[_0x39af('0xec')]!=_0x299244)continue;const _0x2eb0ba=_0x388d48[_0x39af('0x4f')]();if(_0x2eb0ba['containsRange'](_0xd1908b,!0x0))return null;_0x290a96=_0x290a96[_0x39af('0x107')](_0x2eb0ba[_0x39af('0xd8')])?_0x290a96:_0x2eb0ba[_0x39af('0xd8')],_0x1db95d=_0x1db95d['isAfter'](_0x2eb0ba[_0x39af('0x4')])?_0x1db95d:_0x2eb0ba[_0x39af('0x4')],_0x5b9c6b?_0x2eb0ba['start'][_0x39af('0x107')](_0x5b9c6b[_0x39af('0x4f')]()[_0x39af('0xd8')])?(_0x5b9c6b[_0x39af('0x88')](),_0x5b9c6b=_0x388d48):_0x388d48[_0x39af('0x88')]():_0x5b9c6b=_0x388d48;}const _0x155910=this['_model'][_0x39af('0xda')](_0x290a96,_0x1db95d);if(_0x5b9c6b)this[_0x39af('0xcc')](_0x5b9c6b,_0x155910);else{const _0x203224=_0x16cd6a(),_0x2901d9=_0x3d2a34['id'];this[_0x39af('0xa1')]({'id':_0x203224,'type':_0x39af('0x94')+_0x299244,'data':_0x4d4df5,'createdAt':new Date(),'authorId':_0x2901d9,'attributes':_0x36019e}),this[_0x39af('0x6a')](_0x39af('0x94')+_0x299244,_0x203224,_0x2901d9,_0x155910);}}return null;}['markBlockFormat'](_0x888f50,_0x76dab5,_0x1478b7=[],_0x1ddae0=null,_0x309011={}){_0x76dab5['formatGroupId']||(_0x76dab5[_0x39af('0x8c')]=_0x76dab5[_0x39af('0xe9')]),_0x76dab5[_0x39af('0x7b')]=_0x888f50['is'](_0x39af('0x32')),_0x1ddae0=_0x1ddae0||$t(_0x76dab5);const _0x52231b=_0x1478b7[_0x39af('0xdb')](_0x95efd=>Rt(_0x95efd,this[_0x39af('0x116')])),_0x4788b1=_0x888f50['is']('range')?_0x888f50:Rt(_0x888f50,this['_model']);if(_0x39af('0x8f')===this[_0x39af('0xf3')]){const _0x444f6b=this[_0x39af('0x3e')][_0x39af('0xf8')]('formatBlock',_0x1ddae0,'accept');return this[_0x39af('0xd6')](()=>_0x444f6b([_0x4788b1],_0x76dab5,_0x309011)),null;}_0x52231b[_0x39af('0xb9')](_0x4788b1);let _0x419ebb=!0x0;for(const _0x175ae6 of _0x52231b)if(!this['_rangeIsInLocalUserInsertion'](_0x175ae6)){_0x419ebb=!0x1;break;}if(_0x419ebb&&_0x39af('0x101')!==this[_0x39af('0xf3')]){const _0x23c978=this['_suggestionFactory'][_0x39af('0xf8')]('formatBlock',_0x1ddae0,'accept');return this[_0x39af('0xd6')](()=>_0x23c978([_0x4788b1],_0x76dab5,_0x309011)),null;}let _0x39ff98=null,_0x5a5fdd=_0x4788b1['start'],_0x40c628=_0x4788b1['end'];for(const {suggestion:_0x529397,meta:_0x1c3378}of this[_0x39af('0x82')](_0x4788b1,_0x39af('0xd'))){if(!_0x1c3378[_0x39af('0xba')]||_0x1c3378['isNextTo']||_0x1c3378['containsRangeInObject']||_0x1c3378[_0x39af('0x4b')])continue;if(_0x529397[_0x39af('0x139')][_0x39af('0x8c')]!=_0x76dab5[_0x39af('0x8c')])continue;const _0x4629a1=_0x529397[_0x39af('0x4f')]();if(_0x529397[_0x39af('0xec')]==_0x1ddae0){if(_0x4629a1[_0x39af('0xcd')](_0x4788b1,!0x0))return null;_0x5a5fdd=_0x5a5fdd[_0x39af('0x107')](_0x4629a1['start'])?_0x5a5fdd:_0x4629a1[_0x39af('0xd8')],_0x40c628=_0x40c628['isAfter'](_0x4629a1[_0x39af('0x4')])?_0x40c628:_0x4629a1['end'],_0x39ff98?_0x4629a1[_0x39af('0xd8')][_0x39af('0x107')](_0x39ff98['getFirstRange']()[_0x39af('0xd8')])?(_0x39ff98[_0x39af('0x88')](),_0x39ff98=_0x529397):_0x529397['removeMarkers']():_0x39ff98=_0x529397;}else{const _0x8baac6=_0x4788b1[_0x39af('0x127')](_0x4629a1);this[_0x39af('0xf2')](_0x529397,_0x8baac6);}}const _0x17a46a=this[_0x39af('0xb1')][_0x39af('0xf5')][_0x39af('0x72')]('Users')['me'],_0x33e61=_0x16cd6a(),_0x29d5a6=_0x17a46a['id'];if(_0x39ff98)return this[_0x39af('0xcc')](_0x39ff98,this['_model'][_0x39af('0xda')](_0x5a5fdd,_0x40c628)),_0x39ff98;{const _0x32dab0=this[_0x39af('0xa1')]({'id':_0x33e61,'type':_0x39af('0x124')+_0x1ddae0,'data':_0x76dab5,'createdAt':new Date(),'authorId':_0x29d5a6,'attributes':_0x309011});return this['_addSuggestionMarker'](_0x39af('0x124')+_0x1ddae0,_0x33e61,_0x29d5a6,this[_0x39af('0x116')][_0x39af('0xda')](_0x5a5fdd,_0x40c628)),_0x32dab0;}}[_0x39af('0xbc')](_0x33af09,_0x3b0855,_0x43f4c3=[],_0x340a7f=null,_0x165948={}){_0x3b0855[_0x39af('0x8c')]||(_0x3b0855[_0x39af('0x8c')]=_0x3b0855[_0x39af('0xe9')]);const _0x17d3ca=_0x33af09[0x0];_0x3b0855[_0x39af('0x7b')]=_0x17d3ca['is']('range'),_0x340a7f=_0x340a7f||$t(_0x3b0855);const _0x5a3af2=_0x43f4c3['map'](_0x253cf7=>Rt(_0x253cf7,this[_0x39af('0x116')])),_0x244871=_0x17d3ca['is'](_0x39af('0x32'))?_0x33af09:_0x33af09[_0x39af('0xdb')](_0x2e277a=>Rt(_0x2e277a,this[_0x39af('0x116')]));if(_0x39af('0x8f')===this[_0x39af('0xf3')]){const _0x33c320=this[_0x39af('0x3e')][_0x39af('0xf8')](_0x39af('0xd'),_0x340a7f,_0x39af('0xad'));return this['forceDefaultExecution'](()=>_0x33c320(_0x244871,_0x3b0855,_0x165948)),null;}_0x5a3af2[_0x39af('0xb9')](..._0x244871);let _0x1e1d3b=!0x0;for(const _0x47a5da of _0x5a3af2)if(!this[_0x39af('0x45')](_0x47a5da)){_0x1e1d3b=!0x1;break;}if(_0x1e1d3b&&_0x39af('0x101')!==this['_trackFormatChanges']){const _0x30ea82=this['_suggestionFactory'][_0x39af('0xf8')](_0x39af('0xd'),_0x340a7f,_0x39af('0xad'));return this[_0x39af('0xd6')](()=>_0x30ea82(_0x244871,_0x3b0855,_0x165948)),null;}const _0x4ab8ab=this[_0x39af('0xb1')]['plugins'][_0x39af('0x72')]('Users')['me'];for(const _0x20a05b of this[_0x39af('0x7a')]()){if(_0x20a05b[_0x39af('0xea')]['id']!=_0x4ab8ab['id'])continue;if(_0x39af('0xd')!=_0x20a05b[_0x39af('0x13c')]||_0x20a05b[_0x39af('0x139')]['formatGroupId']!=_0x3b0855['formatGroupId'])continue;const _0x49fba6=_0x20a05b[_0x39af('0xec')]==_0x340a7f;for(let _0x78b1af=0x0;_0x78b1af<_0x244871[_0x39af('0xfd')];_0x78b1af++){const _0x529a67=_0x244871[_0x78b1af];for(const _0x2501c2 of _0x20a05b[_0x39af('0x33')]()){const _0x542462=_0x2501c2['getRange']();if(_0x529a67['isEqual'](_0x542462)){_0x49fba6?(_0x244871['splice'](_0x78b1af,0x1),_0x78b1af--):_0x20a05b[_0x39af('0x7c')](_0x2501c2[_0x39af('0xbf')]);break;}}}}if(0x0==_0x244871[_0x39af('0xfd')])return null;const _0x4865e3=this[_0x39af('0x3e')]['getSuggestionCallback'](_0x39af('0xd'),_0x340a7f,_0x39af('0xa9'));for(const _0x23726d of this['getSuggestions']())if(_0x23726d['author']['id']==_0x4ab8ab['id']&&'formatBlock'==_0x23726d['type']&&_0x23726d[_0x39af('0x139')][_0x39af('0x8c')]==_0x3b0855[_0x39af('0x8c')]&&_0x23726d[_0x39af('0xec')]==_0x340a7f&&(_0x4865e3(_0x23726d[_0x39af('0xff')](),_0x244871)||_0x4865e3(_0x244871,_0x23726d[_0x39af('0xff')]()))){for(const _0x2a1a4b of _0x244871)_0x23726d[_0x39af('0xb4')](_0x2a1a4b);return _0x23726d;}const _0x1ab32c=_0x16cd6a(),_0x5ee2e8=_0x4ab8ab['id'],_0x1059b5=_0x39af('0x124')+_0x340a7f,_0x23330d=this['_setSuggestionData']({'id':_0x1ab32c,'type':_0x1059b5,'data':_0x3b0855,'createdAt':new Date(),'authorId':_0x5ee2e8,'attributes':_0x165948});for(const _0x89ef47 of _0x244871)this[_0x39af('0x6a')](_0x1059b5,_0x1ab32c,_0x5ee2e8,_0x89ef47,_0x1760a0['getMultiRangeId']());return _0x23330d;}[_0x39af('0x111')](_0xb9b4b1,_0x40b275=null,_0x389426={}){if(_0xb9b4b1[_0x39af('0x11a')])return null;const _0x40b773=this[_0x39af('0xb1')][_0x39af('0xf5')][_0x39af('0x72')](_0x39af('0x4a'))['me'],_0x1b112e=new _0x3b5b82(_0xb9b4b1[_0x39af('0xd8')],_0xb9b4b1[_0x39af('0x4')]);for(const {suggestion:_0xf32362,meta:_0x24a418}of this['_findSuggestions'](_0x1b112e,'insertion'))if(_0x24a418[_0x39af('0xba')]&&!_0x24a418[_0x39af('0x16')]){if(_0xf32362[_0x39af('0x4e')]){const _0x17f425=_0xf32362[_0x39af('0xff')]()[_0x39af('0xae')](_0x27c1f8=>'$graveyard'!=_0x27c1f8[_0x39af('0x13e')][_0x39af('0x10a')]);_0x17f425['every'](_0x248e80=>_0x1b112e[_0x39af('0xcd')](_0x248e80,!0x0))&&_0xf32362[_0x39af('0xbb')]();if(_0x17f425['some'](_0x33ad19=>_0x33ad19[_0x39af('0xcd')](_0x1b112e,!0x0))){const _0x17bce6=this[_0x39af('0x3e')][_0x39af('0xf8')]('deletion',_0x40b275,_0x39af('0xad'));return this[_0x39af('0xd6')](()=>_0x17bce6([_0x1b112e],null,_0x389426)),null;}}else{const _0x3f626c=_0x1b112e['getIntersection'](_0xf32362[_0x39af('0x4f')]());null!==_0x3f626c&&_0xf32362[_0x39af('0x1a')]([_0x3f626c],null,_0x389426);}}if(_0x1b112e[_0x39af('0x52')](),_0x1b112e['isCollapsed']||_0x39af('0xa5')==_0x1b112e[_0x39af('0x13e')][_0x39af('0x10a')])return null;let _0x39b0a7=null,_0x3a0e98=_0x1b112e[_0x39af('0xd8')],_0x5744a5=_0x1b112e[_0x39af('0x4')];for(const {suggestion:_0x317f55,meta:_0x498647}of this[_0x39af('0x82')](_0x1b112e,'deletion'))if(_0x498647[_0x39af('0xba')]){if(_0x317f55[_0x39af('0x4e')]&&this[_0x39af('0x7')]){let _0x131849=!0x0;for(const _0x3a4f36 of _0x317f55[_0x39af('0xff')]()){if(_0x3a4f36[_0x39af('0xcd')](_0x1b112e,!0x0))return _0x317f55;_0x1b112e['containsRange'](_0x3a4f36)||(_0x131849=!0x1);}_0x131849&&_0x317f55['discard']();}else{const _0x34ad20=_0x317f55[_0x39af('0x4f')]();if(_0x34ad20['containsRange'](_0x1b112e,!0x0)){if(!this[_0x39af('0x7')]&&_0x498647[_0x39af('0xc3')])continue;return _0x317f55;}_0x3a0e98=_0x3a0e98[_0x39af('0x107')](_0x34ad20['start'])?_0x3a0e98:_0x34ad20[_0x39af('0xd8')],_0x5744a5=_0x5744a5['isAfter'](_0x34ad20['end'])?_0x5744a5:_0x34ad20['end'],_0x39b0a7?_0x34ad20[_0x39af('0xd8')][_0x39af('0x107')](_0x39b0a7[_0x39af('0x4f')]()[_0x39af('0xd8')])?(_0x39b0a7[_0x39af('0x88')](),_0x39b0a7=_0x317f55):_0x317f55[_0x39af('0x88')]():_0x39b0a7=_0x317f55;}}if(_0x39b0a7)return this[_0x39af('0xcc')](_0x39b0a7,this[_0x39af('0x116')][_0x39af('0xda')](_0x3a0e98,_0x5744a5)),_0x39b0a7;{const _0x50bd2e=_0x16cd6a(),_0x843a0d=this[_0x39af('0x116')][_0x39af('0xda')](_0x3a0e98,_0x5744a5),_0x114cfd=_0x40b773['id'],_0x2fe41b=_0x40b275?_0x39af('0x97')+_0x40b275:_0x39af('0xb'),_0x54205d=this[_0x39af('0xa1')]({'id':_0x50bd2e,'type':_0x2fe41b,'createdAt':new Date(),'authorId':_0x114cfd,'attributes':_0x389426});return this['_addSuggestionMarker'](_0x2fe41b,_0x50bd2e,_0x114cfd,_0x843a0d),_0x54205d;}}['markMultiRangeDeletion'](_0x513575,_0x2467a7=_0x39af('0x10e'),_0x586470={}){const _0x531c6d=this[_0x39af('0xb1')][_0x39af('0xf5')]['get'](_0x39af('0x4a'))['me'],_0x17c39d=_0x513575[_0x39af('0xdb')](_0x3ad43e=>new _0x3b5b82(_0x3ad43e['start'],_0x3ad43e[_0x39af('0x4')])),_0x5afdd5=new Set();for(const _0x3fbc01 of _0x17c39d)for(const {suggestion:_0x20812e,meta:_0x445e9d}of this[_0x39af('0x82')](_0x3fbc01,_0x39af('0xd5')))_0x445e9d[_0x39af('0xba')]&&!_0x445e9d[_0x39af('0x16')]&&_0x5afdd5[_0x39af('0x130')](_0x20812e);for(const _0x4903a3 of _0x5afdd5)if(_0x4903a3[_0x39af('0x4e')]){const _0x5e386a=_0x4903a3[_0x39af('0xff')]();(!_0x4903a3[_0x39af('0x7e')]||!_0x4903a3[_0x39af('0x7e')][_0x39af('0x9d')])&&(_0x5e386a[_0x39af('0x5b')](_0x1b0516=>_0x17c39d[_0x39af('0x63')](_0x4c7b00=>_0x4c7b00[_0x39af('0xcd')](_0x1b0516,!0x0)))&&_0x4903a3[_0x39af('0xbb')]());if(_0x17c39d[_0x39af('0x5b')](_0x4b240a=>_0x5e386a[_0x39af('0x63')](_0x420869=>_0x420869[_0x39af('0xcd')](_0x4b240a,!0x0)))){const _0x20b129=this[_0x39af('0x3e')][_0x39af('0xf8')]('deletion',_0x2467a7,_0x39af('0xad'));return this['forceDefaultExecution'](()=>_0x20b129(_0x513575,null,_0x586470)),null;}}else{const _0x33a01d=_0x4903a3[_0x39af('0x4f')]();_0x17c39d['some'](_0x436b14=>_0x436b14[_0x39af('0xcd')](_0x33a01d,!0x0))&&_0x4903a3[_0x39af('0xbb')]();if(_0x17c39d[_0x39af('0x5b')](_0x2b07ac=>_0x33a01d[_0x39af('0xcd')](_0x2b07ac,!0x0))){const _0x644014=this['_suggestionFactory'][_0x39af('0xf8')](_0x39af('0xb'),_0x2467a7,_0x39af('0xad'));return this[_0x39af('0xd6')](()=>_0x644014(_0x17c39d,null,_0x586470)),null;}}const _0x303353=this[_0x39af('0x3e')][_0x39af('0xf8')](_0x39af('0xb'),_0x2467a7,_0x39af('0xa9'));let _0x241f18=null;for(const _0x4dd4cf of this[_0x39af('0x7a')]())if(_0x4dd4cf[_0x39af('0xea')]['id']==_0x531c6d['id']&&_0x4dd4cf['isInContent']&&_0x39af('0xb')==_0x4dd4cf[_0x39af('0x13c')]&&_0x4dd4cf['subType']==_0x2467a7&&(_0x303353(_0x4dd4cf[_0x39af('0xff')](),_0x17c39d)||_0x303353(_0x17c39d,_0x4dd4cf[_0x39af('0xff')]()))){if(_0x241f18){if(_0x4dd4cf[_0x39af('0xf6')]&&_0x4dd4cf[_0x39af('0xf6')][_0x39af('0xfd')])continue;for(const _0x49c239 of _0x4dd4cf[_0x39af('0xff')]())_0x241f18[_0x39af('0x125')](_0x49c239)||_0x241f18['addRange'](_0x49c239);_0x4dd4cf[_0x39af('0x88')]();}else{_0x241f18=_0x4dd4cf;for(const _0x133fb2 of _0x17c39d)_0x4dd4cf[_0x39af('0x125')](_0x133fb2)||_0x4dd4cf[_0x39af('0xb4')](_0x133fb2);}}if(_0x241f18)return _0x241f18;_0x5afdd5[_0x39af('0xc2')]();for(const _0x482403 of _0x17c39d)for(const {suggestion:_0x26e2fd,meta:_0x2ca53d}of this[_0x39af('0x82')](_0x482403,'deletion'))_0x2ca53d['isOwn']&&_0x5afdd5[_0x39af('0x130')](_0x26e2fd);for(const _0x330848 of _0x5afdd5){const _0x554f7a=_0x330848[_0x39af('0xff')]();if(!_0x586470||!_0x586470[_0x39af('0x9d')]){if(_0x17c39d[_0x39af('0x5b')](_0x594567=>_0x554f7a[_0x39af('0x63')](_0x4bc584=>_0x4bc584[_0x39af('0xcd')](_0x594567,!0x0))))return _0x330848;}(!_0x330848['attributes']||!_0x330848[_0x39af('0x7e')][_0x39af('0x9d')])&&(_0x554f7a[_0x39af('0x5b')](_0x299744=>_0x17c39d[_0x39af('0x63')](_0x2a5d52=>_0x2a5d52['containsRange'](_0x299744,!0x0)))&&_0x330848['discard']());}const _0x33dd99=_0x16cd6a(),_0x5d4b76=_0x531c6d['id'],_0x1f09cb=_0x39af('0x97')+_0x2467a7,_0x5a1024=this[_0x39af('0xa1')]({'id':_0x33dd99,'type':_0x1f09cb,'createdAt':new Date(),'authorId':_0x5d4b76,'attributes':_0x586470});for(const _0x1cd61a of _0x17c39d)_0x1cd61a[_0x39af('0x52')](),_0x1cd61a['isCollapsed']||_0x39af('0xa5')==_0x1cd61a[_0x39af('0x13e')][_0x39af('0x10a')]||this['_addSuggestionMarker'](_0x1f09cb,_0x33dd99,_0x5d4b76,_0x1cd61a,_0x1760a0['getMultiRangeId']());return _0x5a1024;}['_setSuggestionRange'](_0x2d9f1e,_0x504425){const _0x2becab=_0x2d9f1e['getFirstMarker']();this[_0x39af('0x116')]['change'](_0xb6e2fb=>{_0xb6e2fb[_0x39af('0x12a')](_0x2becab,{'range':_0x504425});});}[_0x39af('0xd2')](_0x4a309b){const _0x2229c0=_0x4a309b['id'],_0x2668ae=this[_0x39af('0xb1')][_0x39af('0x9')][_0x39af('0x72')](_0x39af('0x11c'));this[_0x39af('0x2d')][_0x39af('0x46')](_0x2229c0)||this[_0x39af('0x2d')]['addCommentThread']({'channelId':_0x2668ae,'threadId':_0x2229c0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x192e06=this['_commentsRepository'][_0x39af('0x77')](_0x2229c0);_0x192e06[_0x39af('0x100')]('isRemovable'),_0x192e06['isRemovable']=!0x1,_0x4a309b[_0x39af('0xf6')]=_0x192e06;}[_0x39af('0x92')](_0x41df4d,_0x12428d,_0x446a82,_0xf99a7c){if(_0x41df4d[_0x39af('0x13c')]!=_0x12428d||_0x41df4d[_0x39af('0xec')]!=_0x446a82||_0x41df4d['creator']['id']!=_0xf99a7c)throw this[_0x39af('0xb1')]['enableReadOnlyMode'](_0x39af('0xc9')),new _0x14653c(_0x39af('0xc9'),this);}[_0x39af('0xf2')](_0x4c6cf6,_0x140400){const _0x152a67=_0x4c6cf6[_0x39af('0x4f')]();if(_0x140400[_0x39af('0x91')](_0x152a67))_0x4c6cf6[_0x39af('0x88')]();else{if(_0x152a67[_0x39af('0xcd')](_0x140400)){const _0x14168d=this[_0x39af('0x116')][_0x39af('0x126')](_0x140400[_0x39af('0xd8')][_0x39af('0x102')],_0x39af('0x4'));this[_0x39af('0xcc')](_0x4c6cf6,this[_0x39af('0x116')][_0x39af('0xda')](_0x152a67[_0x39af('0xd8')],_0x14168d));const _0x3bebcc=_0x16cd6a(),_0x5a7e31=_0x4c6cf6[_0x39af('0x2c')]['id'],_0x57cab0=_0x4c6cf6['type']+':'+_0x4c6cf6[_0x39af('0xec')];this[_0x39af('0xa1')]({'id':_0x3bebcc,'type':_0x57cab0,'createdAt':new Date(),'authorId':_0x5a7e31,'data':_0x4c6cf6[_0x39af('0x139')],'attributes':_0x4c6cf6[_0x39af('0x7e')]});const _0x3db828=this['_model']['createPositionAt'](_0x140400[_0x39af('0x4')][_0x39af('0x35')],'after'),_0x46b66f=this[_0x39af('0x116')]['createRange'](_0x3db828,_0x152a67['end']);this[_0x39af('0x6a')](_0x57cab0,_0x3bebcc,_0x5a7e31,_0x46b66f);}else{if(_0x152a67[_0x39af('0x12f')](_0x140400[_0x39af('0xd8')])){const _0x3df039=this[_0x39af('0x116')][_0x39af('0x126')](_0x140400[_0x39af('0xd8')][_0x39af('0x102')],'end');this[_0x39af('0xcc')](_0x4c6cf6,this[_0x39af('0x116')][_0x39af('0xda')](_0x152a67['start'],_0x3df039));}else{const _0x2ff6d3=this[_0x39af('0x116')]['createPositionAt'](_0x140400[_0x39af('0x4')][_0x39af('0x35')],_0x39af('0x56'));this['_setSuggestionRange'](_0x4c6cf6,this[_0x39af('0x116')][_0x39af('0xda')](_0x2ff6d3,_0x152a67[_0x39af('0x4')]));}}}}[_0x39af('0x45')](_0x5941d7){for(const {suggestion:_0x3da60c,meta:_0x5b15f1}of this[_0x39af('0x82')](_0x5941d7,_0x39af('0xd5'))){if(!_0x5b15f1[_0x39af('0xba')])continue;const _0x14f19b=_0x3da60c[_0x39af('0xff')]();for(const _0x165a98 of _0x14f19b)if(!_0x5941d7[_0x39af('0xe6')](_0x165a98)[_0x39af('0xfd')])return!0x0;}return!0x1;}[_0x39af('0x135')](_0x583d45){const _0xa2959b=this['editor']['plugins'][_0x39af('0x72')](_0x39af('0x4a'))[_0x39af('0x3d')](_0x583d45);if(!_0xa2959b)throw new _0x14653c(_0x39af('0x59'),this);return _0xa2959b;}[_0x39af('0x87')](_0x26fcb0){const _0x419ded=this[_0x39af('0xb1')][_0x39af('0xf5')][_0x39af('0x72')](_0x39af('0x4a')),_0x59f84d=_0x2a29b6(_0x39af('0x11e')+_0x26fcb0),_0x382472=_0x419ded['getUser'](_0x59f84d);return _0x382472||_0x419ded[_0x39af('0xd4')]({'id':_0x59f84d,'name':_0x26fcb0});}[_0x39af('0x10c')](_0x52a5e6,_0x5cfd10,_0x59e79d,_0x8a391f,_0x37ac6f){const _0x5bc7bd=this[_0x39af('0x135')](_0x8a391f),_0x23bfa1=this[_0x39af('0x3e')][_0x39af('0x90')](_0x52a5e6,_0x5cfd10,_0x59e79d,_0x5bc7bd,_0x37ac6f,_0x56d5be=>this[_0x39af('0x8a')](_0x59e79d,{'attributes':_0x56d5be}));return this[_0x39af('0xd3')](_0x23bfa1,'accept',()=>{this[_0x39af('0x8a')](_0x59e79d,{'state':_0x39af('0xc1')});},{'priority':_0x39af('0x10f')}),this[_0x39af('0xd3')](_0x23bfa1,'discard',()=>{this['_updateSuggestionData'](_0x59e79d,{'state':_0x39af('0x5')});},{'priority':_0x39af('0x10f')}),this['_suggestions'][_0x39af('0x75')](_0x59e79d,_0x23bfa1),this[_0x39af('0x26')][_0x39af('0x75')](_0x23bfa1,_0x39af('0x23')),_0x23bfa1;}[_0x39af('0x8')](_0x194ab8){const _0x3e958e=_0x194ab8[_0x39af('0x6')](':');return{'group':_0x3e958e[0x0],'type':_0x3e958e[0x1],'subType':_0x3e958e[_0x39af('0xfd')]>=0x5?_0x3e958e[0x2]:null,'id':_0x3e958e[_0x39af('0xfd')]<0x5?_0x3e958e[0x2]:_0x3e958e[0x3],'authorId':_0x3e958e[_0x39af('0xfd')]<0x5?_0x3e958e[0x3]:_0x3e958e[0x4],'markerCount':0x6==_0x3e958e['length']?_0x3e958e[0x5]:null};}[_0x39af('0x17')](_0x384510,_0x4dbd73,_0x371b7c){const _0x2f05ce=_0x384510[_0x39af('0x4f')](),_0x5ce130=_0x2f05ce[_0x39af('0xd8')],_0x42c64e=_0x2f05ce[_0x39af('0x4')];this['_setSuggestionRange'](_0x384510,this[_0x39af('0x116')][_0x39af('0xda')](_0x5ce130,_0x4dbd73));const _0x2af80c=_0x16cd6a(),_0xfd4ba5=_0x384510[_0x39af('0x2c')]['id'],_0x47cc6e=_0x384510[_0x39af('0x13c')]+(_0x384510[_0x39af('0xec')]?':'+_0x384510[_0x39af('0xec')]:'');this[_0x39af('0xa1')]({'id':_0x2af80c,'type':_0x47cc6e,'createdAt':new Date(),'authorId':_0xfd4ba5,'originalSuggestionId':_0x384510['id'],'attributes':_0x384510[_0x39af('0x7e')],'data':_0x384510[_0x39af('0x139')]}),'formatBlock'==_0x384510[_0x39af('0x13c')]&&(_0x371b7c=this[_0x39af('0x116')][_0x39af('0x12')](_0x371b7c[_0x39af('0x35')])),this[_0x39af('0x6a')](_0x47cc6e,_0x2af80c,_0xfd4ba5,this[_0x39af('0x116')][_0x39af('0xda')](_0x371b7c,_0x42c64e));}['_findSuggestions'](_0x57d956,_0x5e449a=null){const _0x4021da=[],_0xb47df1=this['_model']['schema'],_0x2c4890=this[_0x39af('0xb1')]['plugins'][_0x39af('0x72')]('Users')['me'];for(const _0x1aa6e2 of this['getSuggestions']())if(_0x1aa6e2['isInContent']&&(!_0x5e449a||_0x1aa6e2[_0x39af('0x13c')]==_0x5e449a))for(const _0x312c48 of _0x1aa6e2['getRanges']()){const _0xe41705=_0x57d956['start']['isEqual'](_0x312c48[_0x39af('0x4')])||_0x57d956[_0x39af('0x4')]['isEqual'](_0x312c48[_0x39af('0xd8')]);if(_0xe41705||_0x57d956[_0x39af('0x127')](_0x312c48)){const _0x388072=_0x57d956['containsRange'](_0x312c48)&&Bt(_0xb47df1,_0x312c48['start'],_0x57d956),_0x1db38e=_0x312c48[_0x39af('0xcd')](_0x57d956)&&Bt(_0xb47df1,_0x57d956[_0x39af('0xd8')],_0x312c48);_0x4021da[_0x39af('0xb9')]({'suggestion':_0x1aa6e2,'meta':{'isOwn':_0x2c4890==_0x1aa6e2[_0x39af('0xea')],'isNextTo':_0xe41705,'isInsideObject':_0x388072,'containsRangeInObject':_0x1db38e}});break;}}return _0x4021da;}['_addSuggestionMarker'](_0x46cf2b,_0x118748,_0x5109a0,_0x5bcab3,_0x59798e){this[_0x39af('0x116')][_0x39af('0x138')](_0x51a14d=>{let _0x5d41f9=_0x39af('0x37')+_0x46cf2b+':'+_0x118748+':'+_0x5109a0;_0x59798e&&(_0x5d41f9=_0x5d41f9+':'+_0x59798e),_0x51a14d[_0x39af('0x34')](_0x5d41f9,{'range':_0x5bcab3,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x39af('0xeb')](_0x2137ba){const _0x132f80=_0x2137ba['previous'],_0x5d764c=_0x2137ba[_0x39af('0x8b')];_0x2137ba[_0x39af('0x69')]=null,null!=_0x132f80&&(_0x132f80[_0x39af('0x8b')]=null),_0x2137ba[_0x39af('0x8b')]=null,null!=_0x5d764c&&(_0x5d764c[_0x39af('0x69')]=null),_0x39af('0x79')==this['_suggestionState']['get'](_0x2137ba)&&(this[_0x39af('0x26')][_0x39af('0x75')](_0x2137ba,'removed'),this[_0x39af('0x49')]('suggestionUnloaded',_0x2137ba,_0x132f80,_0x5d764c));}['_setSuggestionData'](_0x5a4eee){const _0x5b691f=_0x5a4eee['id'],_0x66c997=this[_0x39af('0x89')](_0x5a4eee);if(this[_0x39af('0x22')]&&this['_adapter'][_0x39af('0x120')]){const _0x221c8c=this[_0x39af('0xb1')]['plugins'][_0x39af('0x72')](_0x39af('0x38')),_0x21fc9b=_0x66c997[_0x39af('0xee')],_0x46a835=_0x66c997[_0x39af('0xec')]?_0x66c997[_0x39af('0x13c')]+':'+_0x66c997['subType']:_0x66c997[_0x39af('0x13c')],_0x288d87=this[_0x39af('0xb1')][_0x39af('0x9b')],_0x90a972=_0x221c8c[_0x39af('0x130')](_0x13674c(_0x288d87,'PENDING_ACTION_SUGGESTION')),_0x2a0d23={'id':_0x5b691f,'type':_0x46a835,'hasComments':_0x21fc9b,'data':_0x5a4eee['data']||null,'originalSuggestionId':_0x5a4eee['originalSuggestionId']||null,'attributes':_0x66c997[_0x39af('0x7e')]};this['_adapter'][_0x39af('0x120')](_0x2a0d23)[_0x39af('0xf0')](_0x3af955=>{_0x66c997[_0x39af('0x66')]=!0x0,_0x221c8c[_0x39af('0x119')](_0x90a972),_0x3af955&&_0x3af955[_0x39af('0xe')]&&(this[_0x39af('0x5a')][_0x39af('0x72')](_0x5b691f)[_0x39af('0xe')]=_0x3af955[_0x39af('0xe')]);})[_0x39af('0x5e')](_0x325c5b=>{throw _0xd82b5d(_0x39af('0x1e')),this[_0x39af('0xb1')][_0x39af('0x1f')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x66c997[_0x39af('0xbb')]();}),_0x66c997[_0x39af('0xe3')](),this['_suggestions'][_0x39af('0xc4')](_0x66c997['id']),this[_0x39af('0x26')][_0x39af('0xc4')](_0x66c997),_0x325c5b;});}return _0x66c997;}['_updateSuggestionData'](_0x7aa61a,_0x25548f){const _0x20d0e5=this['editor'][_0x39af('0xf5')][_0x39af('0x72')]('PendingActions'),_0x2c748e=this[_0x39af('0x84')](_0x7aa61a);if(this[_0x39af('0x22')]&&this[_0x39af('0x22')][_0x39af('0x36')]){if(_0x2c748e[_0x39af('0x66')]){const _0x3777f9=_0x20d0e5['add'](_0x13674c(this[_0x39af('0xb1')][_0x39af('0x9b')],_0x39af('0x2a')));this[_0x39af('0x22')]['updateSuggestion'](_0x7aa61a,_0x25548f)['then'](()=>{_0x20d0e5['remove'](_0x3777f9);});}else _0x2c748e['on'](_0x39af('0x1'),()=>{this['_updateSuggestionData'](_0x7aa61a,_0x25548f);});}}[_0x39af('0x9f')](_0x306be4){if(!this['_adapter']||!this[_0x39af('0x22')][_0x39af('0x84')])throw new _0x14653c('track-changes-adapter-missing-getsuggestion',this);return this[_0x39af('0x22')][_0x39af('0x84')](_0x306be4);}[_0x39af('0x27')](_0x23ba44){const {id:_0x30bf97,type:_0x5d8d36,subType:_0x550f90,authorId:_0x262ab0}=this[_0x39af('0x8')](_0x23ba44),_0x36e760=this[_0x39af('0x5a')]['get'](_0x30bf97)||this[_0x39af('0x10c')](_0x5d8d36,_0x550f90,_0x30bf97,_0x262ab0,{});switch(this[_0x39af('0x92')](_0x36e760,_0x5d8d36,_0x550f90,_0x262ab0),this[_0x39af('0x26')][_0x39af('0x72')](_0x36e760)){case _0x39af('0x23'):this[_0x39af('0x9f')](_0x30bf97)['then'](_0xcef32a=>{let _0x56699a=Promise[_0x39af('0x105')]();_0xcef32a[_0x39af('0xee')]&&(_0x56699a=this[_0x39af('0x2d')]['fetchCommentThread']({'channelId':this[_0x39af('0xb1')][_0x39af('0x9')][_0x39af('0x72')](_0x39af('0x11c')),'threadId':_0x30bf97})),_0x56699a[_0x39af('0xf0')](()=>{this[_0x39af('0x89')](_0xcef32a)['_saved']=!0x0;});}),this[_0x39af('0x26')][_0x39af('0x75')](_0x36e760,_0x39af('0xb5'));break;case _0x39af('0x13b'):this[_0x39af('0x8a')](_0x30bf97,{'state':'open'});case _0x39af('0x129'):this[_0x39af('0x26')]['set'](_0x36e760,'ready'),this['fire'](_0x39af('0xbd'),_0x36e760);break;case'ready':this[_0x39af('0x49')](_0x39af('0x6e'),_0x36e760);}return _0x36e760[_0x39af('0x117')](_0x23ba44),_0x36e760;}[_0x39af('0xef')](_0x59f3fd){const _0x46761e=Array[_0x39af('0x12b')](_0x59f3fd)[_0x39af('0xae')](_0x384328=>!_0x384328[_0x39af('0x4e')]),_0x50e69d=this[_0x39af('0x7a')]({'skipNotAttached':!0x0})[_0x39af('0xae')](_0x4a75c0=>!_0x4a75c0[_0x39af('0x4e')]),_0x1691ee=_0x50e69d['filter'](_0x435bdc=>!_0x59f3fd[_0x39af('0x43')](_0x435bdc)),_0x1363f6=new Map(_0x50e69d[_0x39af('0xdb')](_0x5205bc=>[_0x5205bc,this[_0x39af('0x3e')][_0x39af('0xf8')](_0x5205bc[_0x39af('0x13c')],_0x5205bc[_0x39af('0xec')],_0x39af('0xa3'))])),_0x1499e1=new Map(_0x50e69d['map'](_0xf2df87=>[_0xf2df87,_0xf2df87[_0x39af('0x4f')]()])),_0x38523d=new Set(),_0x54a137=new Set();for(let _0x37b59d=0x0;_0x37b59d<_0x46761e[_0x39af('0xfd')];_0x37b59d++)_0x1a10ad(_0x46761e[_0x37b59d],_0x46761e,_0x37b59d+0x1);for(let _0x3a9b66=0x0;_0x3a9b66<_0x46761e[_0x39af('0xfd')];_0x3a9b66++)_0x1a10ad(_0x46761e[_0x3a9b66],_0x1691ee,0x0);for(let _0x1942b0=0x0;_0x1942b0<_0x46761e[_0x39af('0xfd')];_0x1942b0++){const _0xca937=_0x46761e[_0x1942b0];!_0x54a137['has'](_0xca937)&&_0xca937['previous']&&(_0xca937['previous'][_0x39af('0x8b')]===_0xca937&&(_0xca937[_0x39af('0x69')]['next']=null),_0xca937[_0x39af('0x69')]=null),!_0x38523d[_0x39af('0x43')](_0xca937)&&_0xca937[_0x39af('0x8b')]&&(_0xca937['next'][_0x39af('0x69')]===_0xca937&&(_0xca937['next'][_0x39af('0x69')]=null),_0xca937[_0x39af('0x8b')]=null);}function _0x1a10ad(_0x291ed9,_0x10f866,_0x1730da){for(let _0x3c04aa=_0x1730da;_0x3c04aa<_0x10f866[_0x39af('0xfd')];_0x3c04aa++){const _0x8c0a65=_0x1794f8(_0x291ed9,_0x10f866[_0x3c04aa]);_0x8c0a65&&(_0x8c0a65[0x0]['next']=_0x8c0a65[0x1],_0x8c0a65[0x1][_0x39af('0x69')]=_0x8c0a65[0x0],_0x38523d[_0x39af('0x130')](_0x8c0a65[0x0]),_0x54a137[_0x39af('0x130')](_0x8c0a65[0x1]));}}function _0x1794f8(_0x3e9335,_0x14af0c){if(_0x3e9335[_0x39af('0xea')]['id']!==_0x14af0c[_0x39af('0xea')]['id'])return null;const _0x477173=_0x1363f6[_0x39af('0x72')](_0x3e9335)(_0x3e9335,_0x14af0c,_0x1499e1[_0x39af('0x72')](_0x3e9335),_0x1499e1[_0x39af('0x72')](_0x14af0c));if(!_0x477173)return null;return _0x1363f6[_0x39af('0x72')](_0x14af0c)(_0x3e9335,_0x14af0c,_0x1499e1['get'](_0x3e9335),_0x1499e1[_0x39af('0x72')](_0x14af0c))?_0x477173[0x1][_0x39af('0xf6')]&&_0x477173[0x1][_0x39af('0xf6')][_0x39af('0xfd')]?null:_0x477173:null;}}['_joinWithAdjacentSuggestions'](_0x48da46){const _0x107c84=Array['from'](_0x48da46),_0x386027=this[_0x39af('0x7a')]({'skipNotAttached':!0x0}),_0x591482=_0x386027[_0x39af('0xae')](_0x32fa44=>!_0x48da46[_0x39af('0x43')](_0x32fa44)),_0x2aabd5=new Map(_0x107c84['map'](_0x5424f0=>[_0x5424f0,this[_0x39af('0x3e')][_0x39af('0xf8')](_0x5424f0[_0x39af('0x13c')],_0x5424f0[_0x39af('0xec')],_0x39af('0xa9'))])),_0x4eda7c=new Map(_0x386027[_0x39af('0xdb')](_0xb8264f=>[_0xb8264f,_0xb8264f[_0x39af('0xff')]()]));for(let _0x4ac36c=0x0;_0x4ac36c<_0x107c84['length'];_0x4ac36c++){if(_0x54c1ce(this,_0x107c84[_0x4ac36c],_0x107c84,_0x4ac36c+0x1))return!0x0;}for(let _0x1465c5=0x0;_0x1465c5<_0x107c84['length'];_0x1465c5++){if(_0x54c1ce(this,_0x107c84[_0x1465c5],_0x591482,0x0))return!0x0;}return!0x1;function _0x54c1ce(_0x3900e2,_0x31a0b5,_0x1f6e91,_0x335fb7){for(let _0x1fd2a2=_0x335fb7;_0x1fd2a2<_0x1f6e91['length'];_0x1fd2a2++){const _0x1bcbc0=_0x1f6e91[_0x1fd2a2];if(_0x1bcbc0[_0x39af('0x13c')]!==_0x31a0b5['type']||_0x1bcbc0[_0x39af('0xea')]['id']!==_0x31a0b5[_0x39af('0xea')]['id']||_0x1bcbc0[_0x39af('0xec')]!==_0x31a0b5[_0x39af('0xec')])continue;const _0x388610=_0x2aabd5[_0x39af('0x72')](_0x31a0b5),_0x2433e9=_0x4eda7c[_0x39af('0x72')](_0x31a0b5),_0x93077a=_0x4eda7c[_0x39af('0x72')](_0x1bcbc0),_0x33c74a=_0x31a0b5['commentThread']&&_0x31a0b5['commentThread'][_0x39af('0xfd')],_0x3d434d=_0x1bcbc0[_0x39af('0xf6')]&&_0x1bcbc0['commentThread'][_0x39af('0xfd')];if(!_0x33c74a&&_0x388610(_0x93077a,_0x2433e9))return _0x3900e2[_0x39af('0xa2')](_0x1bcbc0,_0x31a0b5),_0x4eda7c['delete'](_0x31a0b5),!0x0;if(!_0x3d434d&&_0x388610(_0x2433e9,_0x93077a))return _0x3900e2[_0x39af('0xa2')](_0x31a0b5,_0x1bcbc0),_0x4eda7c[_0x39af('0xc4')](_0x1bcbc0),!0x0;}return!0x1;}}[_0x39af('0xa2')](_0xdcd91c,_0x522132){if(_0xdcd91c[_0x39af('0x4e')])for(const _0x191e65 of _0x522132[_0x39af('0xff')]())_0xdcd91c[_0x39af('0xb4')](_0x191e65);else{const _0x4a0cd2=_0x522132[_0x39af('0x4f')]()['end'];this[_0x39af('0xcc')](_0xdcd91c,this[_0x39af('0x116')]['createRange'](_0xdcd91c[_0x39af('0x4f')]()['start'],_0x4a0cd2));}_0x522132[_0x39af('0x88')]();}}class Dt{constructor(_0x14c2c8){this[_0x39af('0x1c')]=_0x14c2c8,this[_0x39af('0x116')]=_0x14c2c8['model'],this[_0x39af('0x108')]=new Map(),this[_0x39af('0x96')]=new Map(),this[_0x39af('0xb8')]();}[_0x39af('0x90')](_0x198ae7,_0x642083,_0x33dfdc,_0x56cfbc,_0x1596cd,_0x28f452){return new _0x1760a0(this[_0x39af('0x116')],{'type':_0x198ae7,'subType':_0x642083,'id':_0x33dfdc,'author':_0x56cfbc,'creator':_0x56cfbc,'attributes':_0x1596cd,'onAttributesChange':_0x28f452,'onAccept':(..._0x15a2c6)=>this[_0x39af('0xf8')](_0x198ae7,_0x642083,_0x39af('0xad'))(..._0x15a2c6),'onDiscard':(..._0x485097)=>this[_0x39af('0xf8')](_0x198ae7,_0x642083,_0x39af('0xbb'))(..._0x485097)});}[_0x39af('0x1d')](_0x18c869,_0x57c364,_0x3b057e,_0x5cc587){const _0x4981e6=_0x18c869+':'+_0x57c364+':'+_0x3b057e;this['_customCallbacks']['set'](_0x4981e6,_0x5cc587);}[_0x39af('0xf8')](_0x3163c2,_0x57eade,_0x2b8c0b){const _0x49c5d1=_0x3163c2+':'+_0x57eade+':'+_0x2b8c0b;return this['_customCallbacks'][_0x39af('0x72')](_0x49c5d1)||this[_0x39af('0x96')]['get'](_0x3163c2+':'+_0x2b8c0b);}[_0x39af('0xb8')](){const _0x356b2a=()=>{},_0xb90d94=_0x3a73bd=>{_0x3a73bd['sort']((_0x352083,_0x15805c)=>_0x352083[_0x39af('0xd8')][_0x39af('0x107')](_0x15805c[_0x39af('0xd8')])?0x1:-0x1),this[_0x39af('0x116')][_0x39af('0x138')](_0x58c9b4=>{for(const _0x45dde2 of _0x3a73bd){let _0x303725;_0x303725=_0x45dde2[_0x39af('0x4')][_0x39af('0xaf')]&&_0x45dde2[_0x39af('0x4')][_0x39af('0x35')]==_0x45dde2[_0x39af('0xd8')][_0x39af('0xaa')]?_0x58c9b4[_0x39af('0xc0')](_0x45dde2['start'][_0x39af('0xaa')],'on'):_0x58c9b4[_0x39af('0xc0')](_0x45dde2),this[_0x39af('0x116')][_0x39af('0x6f')](_0x303725,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3214e3=(_0x35b06a,_0x59a4b0)=>{this[_0x39af('0x116')][_0x39af('0x138')](_0x2356d7=>{const {commandName:_0x3340e2,commandParams:_0x39d7b6=[]}=_0x59a4b0,_0x5ce4f0=_0x35b06a[_0x39af('0xdb')](_0x56d0dd=>(_t(_0x56d0dd)&&(_0x56d0dd=this[_0x39af('0x116')]['createRange'](_0x56d0dd[_0x39af('0x4')])),_0x56d0dd))[_0x39af('0xae')](_0x431713=>_0x39af('0xa5')!==_0x431713[_0x39af('0x13e')][_0x39af('0x10a')]);if(_0x5ce4f0[_0x39af('0xfd')]<0x1)return;const _0x32a0bc=Array[_0x39af('0x12b')](this[_0x39af('0x116')][_0x39af('0x58')][_0x39af('0x128')][_0x39af('0xff')]())[_0x39af('0xdb')](_0x5a2bbf=>_0x3b5b82[_0x39af('0x78')](_0x5a2bbf));_0x2356d7[_0x39af('0xca')](_0x5ce4f0);for(const _0xbc9e04 of this[_0x39af('0x1c')][_0x39af('0xde')]['commands']())_0xbc9e04[_0x39af('0x13')]();_0x39d7b6[_0x39af('0xb9')]({'forceDefaultExecution':!0x0}),this[_0x39af('0x1c')][_0x39af('0xac')](_0x3340e2,..._0x39d7b6);const _0x54b049=_0x32a0bc[_0x39af('0xae')](_0x251818=>'$graveyard'!=_0x251818['root'][_0x39af('0x10a')]);_0x54b049[_0x39af('0xfd')]>0x0&&_0x2356d7[_0x39af('0xca')](_0x54b049);for(const _0x22ac7f of _0x32a0bc)_0x22ac7f['detach']();});},_0x489f20=(_0x37353c,_0x1177e3)=>0x1==_0x37353c['length']&&0x1==_0x1177e3[_0x39af('0xfd')]&&_0x37353c[0x0]['end'][_0x39af('0x91')](_0x1177e3[0x0][_0x39af('0xd8')]),_0x290584=(_0x54a0fe,_0x56e241,_0x503023,_0x590a47)=>xt(_0x54a0fe,_0x56e241,_0x503023,_0x590a47,this[_0x39af('0x116')])?[_0x54a0fe,_0x56e241]:xt(_0x56e241,_0x54a0fe,_0x590a47,_0x503023,this['_model'])?[_0x56e241,_0x54a0fe]:null;this[_0x39af('0x96')]['set'](_0x39af('0x134'),_0x356b2a),this[_0x39af('0x96')][_0x39af('0x75')]('insertion:discard',_0xb90d94),this['_defaultCallbacks'][_0x39af('0x75')]('insertion:join',_0x489f20),this['_defaultCallbacks'][_0x39af('0x75')]('insertion:chain',_0x290584),this[_0x39af('0x96')][_0x39af('0x75')](_0x39af('0xbe'),_0xb90d94),this[_0x39af('0x96')][_0x39af('0x75')](_0x39af('0x12c'),_0x356b2a),this['_defaultCallbacks'][_0x39af('0x75')](_0x39af('0x15'),_0x489f20),this[_0x39af('0x96')][_0x39af('0x75')](_0x39af('0x14'),_0x290584),this[_0x39af('0x96')][_0x39af('0x75')]('formatInline:accept',_0x3214e3),this[_0x39af('0x96')]['set'](_0x39af('0xc6'),_0x356b2a),this[_0x39af('0x96')][_0x39af('0x75')](_0x39af('0x8e'),_0x489f20),this[_0x39af('0x96')][_0x39af('0x75')](_0x39af('0x70'),_0x356b2a),this[_0x39af('0x96')][_0x39af('0x75')]('formatBlock:accept',_0x3214e3),this['_defaultCallbacks'][_0x39af('0x75')](_0x39af('0x5f'),_0x356b2a),this[_0x39af('0x96')][_0x39af('0x75')]('formatBlock:join',_0x489f20),this[_0x39af('0x96')][_0x39af('0x75')](_0x39af('0x44'),_0x356b2a);}}function Bt(_0x1879d8,_0x305886,_0x424c8b){for(const _0x43ed4a of _0x305886[_0x39af('0x35')][_0x39af('0xdd')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x43ed4a[_0x39af('0x13e')]==_0x43ed4a)return!0x1;if(!_0x424c8b[_0x39af('0xb6')](_0x43ed4a))return!0x1;if(_0x1879d8['isObject'](_0x43ed4a)||_0x1879d8[_0x39af('0xf')](_0x43ed4a))return!0x0;}return!0x1;}function _t(_0xcd6760){return _0xcd6760[_0x39af('0x4')][_0x39af('0x35')]==_0xcd6760[_0x39af('0xd8')][_0x39af('0xaa')]&&_0xcd6760['end'][_0x39af('0x3f')];}function Mt(_0x19146f,_0x280b7c,_0x16c2ca,_0x5908ac){const _0x50a390=_0x551309=>!_0x551309[_0x39af('0x57')]['is'](_0x39af('0x54'))&&!_0x5908ac[_0x39af('0xfb')](_0x551309[_0x39af('0x57')]),_0x4b04c3=_0x19146f['start'][_0x39af('0x18')](_0x50a390),_0x2d5534=_0x19146f[_0x39af('0x4')][_0x39af('0x18')](_0x50a390,{'direction':_0x39af('0xe2')});return(!_0x19146f[_0x39af('0xd8')]['isEqual'](_0x4b04c3)||!_0x19146f['end'][_0x39af('0x91')](_0x2d5534))&&(_0x4b04c3[_0x39af('0x107')](_0x2d5534)?_0x16c2ca[_0x39af('0x12a')](_0x280b7c,{'range':_0x16c2ca[_0x39af('0xda')](_0x4b04c3,_0x2d5534)}):_0x16c2ca[_0x39af('0x7c')](_0x280b7c),!0x0);}function $t(_0x5ec63f){return _0x2a29b6(_0x5ec63f);}function Nt(_0x202bd4){const _0x404104=_0x202bd4[_0x39af('0xd8')]['nodeAfter'];return _0x404104&&_0x404104['is'](_0x39af('0x4c'));}function Rt(_0x1c7c2d,_0x4225c4){const _0x52c578=_0x4225c4['schema']['isObject'](_0x1c7c2d)||_0x4225c4['schema'][_0x39af('0xa7')](_0x1c7c2d);return _0x4225c4[_0x39af('0xda')](_0x4225c4[_0x39af('0x126')](_0x1c7c2d,_0x39af('0x40')),_0x52c578?_0x4225c4[_0x39af('0xa8')](_0x1c7c2d):_0x4225c4[_0x39af('0x126')](_0x1c7c2d,'end'));}function xt(_0x5676b6,_0x4c6ef5,_0x58a294,_0x40e005,_0x2f1700){if(_0x58a294['end'][_0x39af('0x91')](_0x40e005[_0x39af('0xd8')]))return!0x0;if(_0x5676b6[_0x39af('0x13c')]!=_0x4c6ef5[_0x39af('0x13c')])return!0x1;if(!_0x58a294[_0x39af('0x4')]['isTouching'](_0x40e005[_0x39af('0xd8')]))return!0x1;const _0xc8899e=_0x2f1700[_0x39af('0xda')](_0x58a294[_0x39af('0x4')],_0x40e005[_0x39af('0xd8')])[_0x39af('0x9a')]();for(const _0x16c915 of _0xc8899e)if([_0x39af('0x85'),_0x39af('0x121')][_0x39af('0xc8')](_0x16c915[_0x39af('0x13c')])&&_0x2f1700['schema'][_0x39af('0xf')](_0x16c915[_0x39af('0x57')]))return!0x1;return!0x0;}
|
package/src/trackchangesui.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* @module track-changes/trackchangesui
|
|
3
7
|
*/
|
|
4
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core
|
|
5
|
-
import { Users } from 'ckeditor5-collaboration';
|
|
6
|
-
import TrackChangesEditing from './trackchangesediting
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
+
import { Users } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
10
|
+
import TrackChangesEditing from './trackchangesediting';
|
|
7
11
|
/**
|
|
8
12
|
* Provides UI for track changes plugin.
|
|
9
13
|
*
|
package/src/trackchangesui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4e3d=['discardSelectedSuggestions','comments','stopListening','_destroyController','discardButton','unbind','buttonView','locale','TrackChangesEditing','define','execute','comments.maxThreadTotalWeight','_suggestionToController','clear','CommentsRepository','switchbutton','change:activeAnnotations','plugins','init','listenTo','createAnnotationView','commandName','isEnabled','EditorAnnotations','suggestionLoaded','view','get','trackChanges','separator','addSourceCollector','discardAllSuggestions','_viewToController','length','set','comments.editorConfig','suggestionChanged','isDirty','requires','getMarkers','change:previous','trackChanges.disableComments','_refreshActiveMarkers','pluginName','descriptionParts','mainView','_descriptionFactory','model','_handleSuggestionControllerDelayed','push','value','Accept\x20all\x20suggestions','TrackChangesUI','getByInnerView','registerAnnotation','toMany','actionView','hasSuggestion','isOn','add','createCommentThreadController','CommentsUI','_updateController','delete','filter','type','activeAnnotations','map','bind','has','commands','Annotations','editing','button','acceptSelectedSuggestions','getAllAdjacentSuggestions','destroy','getFirstRange','acceptButton','_handleControllerBuffer','addComment','Accept\x20all\x20selected\x20suggestions','innerView','getDescriptions','Track\x20changes','refreshSelectedViews','_initializeController','config','getJoined','_annotationViews','head','values','suggestionUnloaded','isInContent','trackChanges.SuggestionThreadView','comments.maxCommentCharsWhenCollapsed','SuggestionThreadView','suggestion-','acceptAllSuggestions','remove','activeMarkers','size','comments.maxCommentsWhenCollapsed','keys','editor','lowest','_disableComments','getRanges','from','componentFactory','reduce','focus'];(function(_0x260ed6,_0x4e3d57){const _0xcb6b10=function(_0x52d4e1){while(--_0x52d4e1){_0x260ed6['push'](_0x260ed6['shift']());}};_0xcb6b10(++_0x4e3d57);}(_0x4e3d,0x104));const _0xcb6b=function(_0x260ed6,_0x4e3d57){_0x260ed6=_0x260ed6-0x0;let _0xcb6b10=_0x4e3d[_0x260ed6];return _0xcb6b10;};import{Plugin as _0x1285cc}from'ckeditor5/src/core.js';import{Collection as _0x2807c0}from'ckeditor5/src/utils.js';import{Model as _0x5c86a8,SplitButtonView as _0x11c077,createDropdown as _0x585c72,addListToDropdown as _0x5ab85a}from'ckeditor5/src/ui.js';import{Users as _0x5af069,getDateTimeFormatter as _0x1de0fa,getAllMarkersDomElementsSorted as _0x4b0274}from'ckeditor5-collaboration';import _0x301c9a from'./trackchangesediting.js';import _0x2c716a from'./ui/suggestioncontroller.js';import _0x4fba5f from'./ui/view/suggestionthreadview.js';import{getTranslation as _0x1979a6}from'./utils/common-translations.js';import _0x5185d5 from'../theme/icons/track-changes.svg';export default class d extends _0x1285cc{static get[_0xcb6b('0x6e')](){return[_0x301c9a,_0x5af069,_0xcb6b('0x57'),'Annotations',_0xcb6b('0x60')];}static get[_0xcb6b('0x4')](){return _0xcb6b('0xd');}constructor(_0x30e8e1){super(_0x30e8e1),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this[_0xcb6b('0x32')]=new Map(),this[_0xcb6b('0x28')]=new Map();const _0x1cb69c=this[_0xcb6b('0x41')]['config'];_0x1cb69c[_0xcb6b('0x52')](_0xcb6b('0x37'),_0x4fba5f),_0x1cb69c[_0xcb6b('0x52')](_0xcb6b('0x2'),!0x1),this[_0xcb6b('0x43')]=_0x1cb69c['get'](_0xcb6b('0x2'));}[_0xcb6b('0x9')](_0x93ffd1,_0x39c880){0x0===this['_handleControllerBuffer'][_0xcb6b('0x3e')]&&setTimeout(()=>{for(const [_0x55bf9e,_0x26bf51]of this[_0xcb6b('0x28')]){const _0x422099=this['_suggestionToController']['has'](_0x55bf9e);_0x422099||_0x26bf51?_0x422099&&_0x26bf51&&this[_0xcb6b('0x4c')](_0x55bf9e):this['_initializeController'](_0x55bf9e);}this[_0xcb6b('0x41')][_0xcb6b('0x5a')]['get']('EditorAnnotations')[_0xcb6b('0x2e')](),this['_refreshActiveMarkers'](),this['_handleControllerBuffer'][_0xcb6b('0x56')]();},0xa),this[_0xcb6b('0x28')][_0xcb6b('0x6a')](_0x93ffd1,_0x39c880);}[_0xcb6b('0x5b')](){const _0x47bc79=this[_0xcb6b('0x41')],_0x4735a1=_0x47bc79[_0xcb6b('0x5a')][_0xcb6b('0x63')](_0xcb6b('0x51')),_0x3d539d=_0x47bc79[_0xcb6b('0x5a')]['get'](_0xcb6b('0x20')),_0x17d5c4=_0x47bc79[_0xcb6b('0x5a')][_0xcb6b('0x63')](_0xcb6b('0x60')),_0x4e187f=_0x47bc79[_0xcb6b('0x5a')]['get']('CommentsRepository');_0x47bc79['ui'][_0xcb6b('0x46')][_0xcb6b('0x14')](_0xcb6b('0x64'),_0x195da0=>this['_createUIButton'](_0x195da0)),_0x17d5c4[_0xcb6b('0x66')](()=>{const _0x59c8f3=[];for(const [_0x10869b,_0x33a4d4]of Array[_0xcb6b('0x45')](this[_0xcb6b('0x55')])){const _0x35eaca=_0x10869b[_0xcb6b('0x24')](),_0x261c22=[];for(const _0x5c009f of _0x35eaca){if(!_0x5c009f[_0xcb6b('0x36')])continue;if(_0x5c009f['isMultiRange']){_0x261c22[_0xcb6b('0xa')](..._0x5c009f[_0xcb6b('0x44')]());continue;}const _0x526e8f=_0x5c009f[_0xcb6b('0x26')]();if(_0x261c22[_0xcb6b('0x69')]>0x0){const _0x390ac9=_0x261c22[0x0][_0xcb6b('0x31')](_0x526e8f);if(_0x390ac9){_0x261c22[0x0]=_0x390ac9;continue;}}_0x261c22[_0xcb6b('0xa')](_0x526e8f);}_0x59c8f3[_0xcb6b('0xa')]([_0x33a4d4[_0xcb6b('0x62')],_0x261c22]);}return _0x59c8f3;}),this[_0xcb6b('0x5c')](_0x4735a1,_0xcb6b('0x61'),(_0x4f4a63,_0x20f70c)=>{this[_0xcb6b('0x5c')](_0x20f70c,'change:previous',(_0x51d6f5,_0x52e0a5,_0x314bd7,_0x301c65)=>{_0x20f70c[_0xcb6b('0x36')]&&(null==_0x314bd7?(this[_0xcb6b('0x17')](_0x301c65[_0xcb6b('0x33')]),this[_0xcb6b('0x9')](_0x20f70c,!0x1)):(this[_0xcb6b('0x17')](_0x314bd7[_0xcb6b('0x33')]),this[_0xcb6b('0x9')](_0x20f70c,!0x0)));}),null===_0x20f70c['previous']?this['_handleSuggestionControllerDelayed'](_0x20f70c,!0x1):this[_0xcb6b('0x17')](_0x20f70c[_0xcb6b('0x33')]);}),this[_0xcb6b('0x5c')](_0x4735a1,_0xcb6b('0x35'),(_0x3ed55e,_0xb208bf,_0x19d2d2)=>{this[_0xcb6b('0x4b')](_0xb208bf,_0xcb6b('0x1')),this['_handleControllerBuffer'][_0xcb6b('0x18')](_0xb208bf);const _0x520862=_0x19d2d2?_0x19d2d2[_0xcb6b('0x33')]:_0xb208bf,_0x1bbcbd=this[_0xcb6b('0x55')][_0xcb6b('0x63')](_0x520862);null!==_0x19d2d2&&this[_0xcb6b('0x17')](_0x520862),null===_0x19d2d2&&_0x1bbcbd&&this[_0xcb6b('0x4c')](_0xb208bf);}),this[_0xcb6b('0x5c')](_0x4735a1,_0xcb6b('0x6c'),(_0x2a671f,_0x281833)=>{this[_0xcb6b('0x17')](_0x281833);}),this[_0xcb6b('0x5c')](_0x3d539d,_0xcb6b('0x59'),()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4e187f,_0xcb6b('0x29'),(_0x464ae0,{threadId:_0x473360,isFromAdapter:_0xa3898f})=>{if(_0xa3898f||!_0x4735a1[_0xcb6b('0x12')](_0x473360))return;const _0xa3f9a9=_0x4735a1['getSuggestion'](_0x473360);this['_suggestionToController'][_0xcb6b('0x63')](_0xa3f9a9)[_0xcb6b('0x62')][_0xcb6b('0x48')]();},{'priority':_0xcb6b('0x42')});}[_0xcb6b('0x3')](){const _0x34cd61=this['editor'][_0xcb6b('0x5a')]['get'](_0xcb6b('0x20')),_0x17dbd3=this[_0xcb6b('0x41')][_0xcb6b('0x5a')][_0xcb6b('0x63')](_0xcb6b('0x51')),_0x7b5ea9=Array[_0xcb6b('0x45')](_0x34cd61[_0xcb6b('0x1b')],_0x79e147=>_0x79e147[_0xcb6b('0x2b')])[_0xcb6b('0x19')](_0x4f6df2=>this[_0xcb6b('0x68')][_0xcb6b('0x1e')](_0x4f6df2)),_0x50108c=[];for(const _0x474673 of _0x7b5ea9){const _0x13dfc8=this['_viewToController'][_0xcb6b('0x63')](_0x474673)[_0xcb6b('0x8')][_0xcb6b('0x24')]();_0x50108c['push'](..._0x13dfc8[_0xcb6b('0x47')]((_0x136a86,_0x574181)=>[..._0x136a86,..._0x574181['getMarkerNames']()],[]));}_0x17dbd3[_0xcb6b('0x3d')]=_0x50108c;}['_createUIButton'](_0x57339d){const _0x57e457=_0x585c72(_0x57339d,_0x11c077),_0x514a5a=this[_0xcb6b('0x41')][_0xcb6b('0x1f')]['get'](_0xcb6b('0x64')),_0x5b1d1c=_0x1979a6(_0x57339d,_0xcb6b('0x2d'));_0x57e457[_0xcb6b('0x4f')][_0xcb6b('0x6a')]({'tooltip':_0x5b1d1c,'label':_0x5b1d1c,'icon':_0x5185d5}),_0x57e457[_0xcb6b('0x4f')][_0xcb6b('0x1d')]('isOn')['to'](_0x514a5a,_0xcb6b('0xb')),_0x57e457[_0xcb6b('0x4f')]['on'](_0xcb6b('0x53'),()=>{_0x514a5a[_0xcb6b('0x53')](),this[_0xcb6b('0x41')][_0xcb6b('0x21')][_0xcb6b('0x62')][_0xcb6b('0x48')]();});const _0x4963fe=new _0x2807c0(),_0x2a4205=[{'type':_0xcb6b('0x58'),'model':{'withText':!0x0,'label':_0x5b1d1c,'commandName':_0xcb6b('0x64')}},{'type':_0xcb6b('0x65')},{'type':_0xcb6b('0x22'),'model':{'withText':!0x0,'label':_0x1979a6(_0x57339d,_0xcb6b('0xc')),'commandName':_0xcb6b('0x3b')}},{'type':_0xcb6b('0x22'),'model':{'withText':!0x0,'label':_0x1979a6(_0x57339d,_0xcb6b('0x2a')),'commandName':_0xcb6b('0x23')}},{'type':_0xcb6b('0x22'),'model':{'withText':!0x0,'label':_0x1979a6(_0x57339d,'Discard\x20all\x20suggestions'),'commandName':_0xcb6b('0x67')}},{'type':_0xcb6b('0x22'),'model':{'withText':!0x0,'label':_0x1979a6(_0x57339d,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0xcb6b('0x49')}}];for(const _0x51cf73 of _0x2a4205){let _0x55c75e={'type':_0xcb6b('0x65')};if(_0x51cf73[_0xcb6b('0x8')]){const _0x515a1a=new _0x5c86a8(_0x51cf73['model']),_0x4cd8a3=this[_0xcb6b('0x41')][_0xcb6b('0x1f')][_0xcb6b('0x63')](_0x515a1a[_0xcb6b('0x5e')]);_0x515a1a[_0xcb6b('0x1d')](_0xcb6b('0x13'),_0xcb6b('0x5f'))['to'](_0x4cd8a3,_0xcb6b('0xb'),_0xcb6b('0x5f')),_0x55c75e={'type':_0x51cf73[_0xcb6b('0x1a')],'model':_0x515a1a};}_0x4963fe[_0xcb6b('0x14')](_0x55c75e);}_0x5ab85a(_0x57e457,_0x4963fe);const _0x3dd4cd=_0x2a4205[_0xcb6b('0x19')](_0x26a065=>null!=_0x26a065[_0xcb6b('0x8')])[_0xcb6b('0x1c')](_0x2199a6=>this[_0xcb6b('0x41')][_0xcb6b('0x1f')][_0xcb6b('0x63')](_0x2199a6[_0xcb6b('0x8')][_0xcb6b('0x5e')])),_0x2cd613=_0x57e457['buttonView'];return _0x2cd613[_0xcb6b('0x11')][_0xcb6b('0x4e')]('isEnabled'),_0x2cd613['arrowView'][_0xcb6b('0x4e')](_0xcb6b('0x5f')),_0x2cd613[_0xcb6b('0x11')][_0xcb6b('0x1d')](_0xcb6b('0x5f'))['to'](_0x514a5a,_0xcb6b('0x5f')),_0x2cd613['arrowView'][_0xcb6b('0x1d')]('isEnabled')[_0xcb6b('0x10')](_0x3dd4cd,_0xcb6b('0x5f'),(..._0x54e219)=>_0x54e219['some'](_0x5925bb=>_0x5925bb)),_0x57e457['on']('execute',_0x10efd8=>{this['editor'][_0xcb6b('0x53')](_0x10efd8['source'][_0xcb6b('0x5e')]),this['editor'][_0xcb6b('0x21')][_0xcb6b('0x62')][_0xcb6b('0x48')]();}),_0x57e457;}[_0xcb6b('0x2f')](_0x4076d1){const _0xde2a51=this[_0xcb6b('0x41')],_0x4db8b4=_0xde2a51[_0xcb6b('0x30')],_0x49ed1c=_0xde2a51[_0xcb6b('0x5a')][_0xcb6b('0x63')](_0xcb6b('0x20')),_0x3b5247=_0xde2a51[_0xcb6b('0x5a')][_0xcb6b('0x63')]('CommentsRepository'),_0x13c0fc=_0xde2a51[_0xcb6b('0x5a')][_0xcb6b('0x63')](_0xcb6b('0x60')),_0x5470f7=_0xde2a51['plugins'][_0xcb6b('0x63')](_0x5af069)['me'],_0xccdf37=_0x4db8b4[_0xcb6b('0x63')](_0xcb6b('0x64'))[_0xcb6b('0x39')],{CommentsListView:_0x40a555,CommentThreadInputView:_0xb97f0f}=_0xde2a51['plugins']['get'](_0xcb6b('0x16'));let _0x4a30ed,_0x2a92d8;this[_0xcb6b('0x32')][_0xcb6b('0x1e')](_0x4076d1['id'])?(_0x2a92d8=this[_0xcb6b('0x32')]['get'](_0x4076d1['id']),_0x4a30ed=_0x2a92d8[_0xcb6b('0x6')]):(_0x4a30ed=new _0xccdf37(_0xde2a51['locale'],_0x4076d1,_0x5470f7,{'disableComments':this[_0xcb6b('0x43')],'editorConfig':_0x4db8b4[_0xcb6b('0x63')](_0xcb6b('0x6b')),'maxCommentsWhenCollapsed':_0x4db8b4['get'](_0xcb6b('0x3f')),'maxThreadTotalWeight':_0x4db8b4[_0xcb6b('0x63')](_0xcb6b('0x54')),'maxCommentCharsWhenCollapsed':_0x4db8b4['get'](_0xcb6b('0x38')),'formatDateTime':_0x1de0fa(_0x4db8b4['get'](_0xcb6b('0x50'))),'CommentView':_0x4db8b4[_0xcb6b('0x63')](_0xcb6b('0x4a'))['CommentView'],'CommentsListView':_0x40a555,'CommentThreadInputView':_0xb97f0f}),_0x4a30ed[_0xcb6b('0x27')]['on']('execute',()=>{_0xde2a51[_0xcb6b('0x21')][_0xcb6b('0x62')]['focus']();}),_0x4a30ed[_0xcb6b('0x4d')]['on'](_0xcb6b('0x53'),()=>{_0xde2a51[_0xcb6b('0x21')][_0xcb6b('0x62')]['focus']();}),_0x2a92d8=_0x49ed1c[_0xcb6b('0x5d')](this[_0xcb6b('0x41')][_0xcb6b('0x50')],_0x4a30ed),_0x2a92d8[_0xcb6b('0x1d')](_0xcb6b('0x6d'))['to'](_0x4a30ed,_0xcb6b('0x6d')),_0x2a92d8[_0xcb6b('0x1d')](_0xcb6b('0x69'))['to'](_0x4a30ed),_0x2a92d8[_0xcb6b('0x1d')](_0xcb6b('0x1a'))['to'](_0x4a30ed,'type',_0x2592e3=>'suggestion-'+_0x2592e3),this[_0xcb6b('0x32')][_0xcb6b('0x6a')](_0x4076d1['id'],_0x2a92d8));const _0x3288ed=_0x3b5247[_0xcb6b('0x15')](_0x4076d1['commentThread'],_0x4a30ed),_0x460e41=new _0x2c716a(_0xde2a51,_0x4076d1,_0x4a30ed,_0x3288ed),_0x4f29c4=_0x4076d1['getAllAdjacentSuggestions']()[_0xcb6b('0x19')](_0x4c98fe=>_0x4c98fe[_0xcb6b('0x36')]);_0x4a30ed[_0xcb6b('0x5')]=_0xde2a51[_0xcb6b('0x5a')]['get']('TrackChangesEditing')[_0xcb6b('0x7')]['getDescriptions'](_0x4f29c4),this[_0xcb6b('0x55')][_0xcb6b('0x6a')](_0x4076d1,_0x460e41),this[_0xcb6b('0x68')][_0xcb6b('0x6a')](_0x4a30ed,_0x460e41);const _0x588f4c=_0x49ed1c['createAnnotation']({'view':_0x2a92d8,'target':()=>{const _0x8aa6d7=[],_0x11da54=_0x4076d1[_0xcb6b('0x24')]()[_0xcb6b('0x19')](_0x5c1e8d=>_0x5c1e8d[_0xcb6b('0x36')]);for(const _0x42311d of _0x11da54)_0x8aa6d7['push'](..._0x42311d[_0xcb6b('0x0')]());return _0x4b0274(_0xde2a51[_0xcb6b('0x21')],_0x8aa6d7);},'type':()=>_0xcb6b('0x3a')+_0x460e41[_0xcb6b('0x62')][_0xcb6b('0x1a')]});_0x49ed1c[_0xcb6b('0x14')](_0x588f4c),_0x13c0fc[_0xcb6b('0xf')](_0x588f4c);}['_destroyController'](_0xefff1d){const _0x3db804=this[_0xcb6b('0x41')]['plugins'][_0xcb6b('0x63')](_0xcb6b('0x20')),_0x2c9072=this['_suggestionToController'][_0xcb6b('0x63')](_0xefff1d),_0x3b09e5=_0x2c9072[_0xcb6b('0x62')],_0x290fd4=_0x3db804[_0xcb6b('0xe')](_0x3b09e5);_0x290fd4&&_0x3db804[_0xcb6b('0x3c')](_0x290fd4),this[_0xcb6b('0x55')][_0xcb6b('0x18')](_0xefff1d),this['_viewToController']['delete'](_0x3b09e5),_0x2c9072[_0xcb6b('0x25')]();}[_0xcb6b('0x17')](_0x3c9453){if(!_0x3c9453[_0xcb6b('0x36')]||!this[_0xcb6b('0x55')][_0xcb6b('0x1e')](_0x3c9453))return;const _0x15b04c=this[_0xcb6b('0x41')][_0xcb6b('0x5a')][_0xcb6b('0x63')](_0xcb6b('0x51')),_0x576d54=this['_suggestionToController']['get'](_0x3c9453),_0x17df05=_0x3c9453['getAllAdjacentSuggestions']();_0x576d54[_0xcb6b('0x62')]['descriptionParts']=_0x15b04c[_0xcb6b('0x7')][_0xcb6b('0x2c')](_0x17df05);}[_0xcb6b('0x25')](){for(const _0xd38de7 of this[_0xcb6b('0x55')][_0xcb6b('0x40')]())this[_0xcb6b('0x4c')](_0xd38de7);for(const _0x3f8196 of this[_0xcb6b('0x32')][_0xcb6b('0x34')]())_0x3f8196[_0xcb6b('0x6')][_0xcb6b('0x25')]();super[_0xcb6b('0x25')]();}}
|
|
23
|
+
const _0x52c8=['getSuggestion','CommentsUI','separator','createCommentThreadController','registerAnnotation','getAllAdjacentSuggestions','_bindAnnotationToEditors','clear','commentThread','_descriptionFactory','map','head','plugins','filter','add','comments.maxThreadTotalWeight','comments.editorConfig','value','mainView','suggestion-','activeMarkers','Accept\x20all\x20suggestions','focus','bind','trackChanges','_handleSuggestionControllerDelayed','change:activeAnnotations','addSourceCollector','isEnabled','from','CommentView','_destroyController','size','button','isMultiRange','commands','length','comments.maxCommentCharsWhenCollapsed','execute','_createUIButton','_handleControllerBuffer','previous','isOn','EditorAnnotations','Accept\x20all\x20selected\x20suggestions','componentFactory','Discard\x20all\x20suggestions','discardSelectedSuggestions','_updateController','discardAllSuggestions','Track\x20changes','_refreshActiveMarkers','suggestionChanged','actionView','arrowView','buttonView','_disableComments','getJoined','getDescriptions','isInContent','TrackChangesEditing','editing','Discard\x20all\x20selected\x20suggestions','activeAnnotations','remove','createAnnotationView','push','getMarkerNames','unbind','_viewToController','acceptSelectedSuggestions','destroy','stopListening','lowest','trackChanges.SuggestionThreadView','pluginName','reduce','view','model','refreshSelectedViews','comments.maxCommentsWhenCollapsed','keys','listenTo','descriptionParts','source','createAnnotation','delete','commandName','CommentsRepository','toMany','get','Annotations','hasSuggestion','getRanges','innerView','config','isDirty','has','acceptButton','editor','locale','_suggestionToController','trackChanges.disableComments','_annotationViews','define','getMarkers','_initializeController','type','set','suggestionUnloaded'];(function(_0x41bbad,_0x52c86c){const _0x306685=function(_0x3d795a){while(--_0x3d795a){_0x41bbad['push'](_0x41bbad['shift']());}};_0x306685(++_0x52c86c);}(_0x52c8,0x178));const _0x3066=function(_0x41bbad,_0x52c86c){_0x41bbad=_0x41bbad-0x0;let _0x306685=_0x52c8[_0x41bbad];return _0x306685;};import{Plugin as _0x150f8e}from'ckeditor5/src/core';import{Collection as _0x105231}from'ckeditor5/src/utils';import{Model as _0x57de1c,SplitButtonView as _0x2310fa,createDropdown as _0xc09fa7,addListToDropdown as _0x488754}from'ckeditor5/src/ui';import{Users as _0x58949e,getDateTimeFormatter as _0x5c812c,getAllMarkersDomElementsSorted as _0x21dc61}from'ckeditor5-collaboration/src/collaboration-core';import _0x5eba2c from'./trackchangesediting';import _0x31106f from'./ui/suggestioncontroller';import _0x9b6e8e from'./ui/view/suggestionthreadview';import{getTranslation as _0x222207}from'./utils/common-translations';import _0x2f83d9 from'../theme/icons/track-changes.svg';export default class d extends _0x150f8e{static get['requires'](){return[_0x5eba2c,_0x58949e,'CommentsRepository','Annotations','EditorAnnotations'];}static get[_0x3066('0x1d')](){return'TrackChangesUI';}constructor(_0x42e4d6){super(_0x42e4d6),this[_0x3066('0x37')]=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this[_0x3066('0x68')]=new Map();const _0x5cd72e=this['editor'][_0x3066('0x31')];_0x5cd72e[_0x3066('0x3a')](_0x3066('0x1c'),_0x9b6e8e),_0x5cd72e['define']('trackChanges.disableComments',!0x1),this[_0x3066('0xa')]=_0x5cd72e[_0x3066('0x2c')](_0x3066('0x38'));}[_0x3066('0x59')](_0x25c8a5,_0x35505e){0x0===this['_handleControllerBuffer'][_0x3066('0x60')]&&setTimeout(()=>{for(const [_0x3e5db5,_0x1b509d]of this[_0x3066('0x68')]){const _0x32544a=this[_0x3066('0x37')][_0x3066('0x33')](_0x3e5db5);_0x32544a||_0x1b509d?_0x32544a&&_0x1b509d&&this[_0x3066('0x5f')](_0x3e5db5):this[_0x3066('0x3c')](_0x3e5db5);}this[_0x3066('0x35')]['plugins']['get'](_0x3066('0x6b'))[_0x3066('0x21')](),this[_0x3066('0x5')](),this['_handleControllerBuffer'][_0x3066('0x47')]();},0xa),this[_0x3066('0x68')][_0x3066('0x3e')](_0x25c8a5,_0x35505e);}['init'](){const _0x5a21e4=this[_0x3066('0x35')],_0x2831c6=_0x5a21e4['plugins'][_0x3066('0x2c')](_0x3066('0xe')),_0x1042ff=_0x5a21e4[_0x3066('0x4c')]['get']('Annotations'),_0x300203=_0x5a21e4[_0x3066('0x4c')][_0x3066('0x2c')]('EditorAnnotations'),_0x8a483d=_0x5a21e4[_0x3066('0x4c')][_0x3066('0x2c')](_0x3066('0x2a'));_0x5a21e4['ui'][_0x3066('0x6d')][_0x3066('0x4e')]('trackChanges',_0x16a0e2=>this['_createUIButton'](_0x16a0e2)),_0x300203[_0x3066('0x5b')](()=>{const _0x471a5a=[];for(const [_0x5cbc80,_0x1db24d]of Array[_0x3066('0x5d')](this['_suggestionToController'])){const _0x4e19da=_0x5cbc80[_0x3066('0x45')](),_0x44b122=[];for(const _0x501800 of _0x4e19da){if(!_0x501800[_0x3066('0xd')])continue;if(_0x501800[_0x3066('0x62')]){_0x44b122[_0x3066('0x14')](..._0x501800[_0x3066('0x2f')]());continue;}const _0xce4225=_0x501800['getFirstRange']();if(_0x44b122['length']>0x0){const _0x3e6235=_0x44b122[0x0][_0x3066('0xb')](_0xce4225);if(_0x3e6235){_0x44b122[0x0]=_0x3e6235;continue;}}_0x44b122['push'](_0xce4225);}_0x471a5a[_0x3066('0x14')]([_0x1db24d[_0x3066('0x1f')],_0x44b122]);}return _0x471a5a;}),this[_0x3066('0x24')](_0x2831c6,'suggestionLoaded',(_0x418bbc,_0x18ee7f)=>{this[_0x3066('0x24')](_0x18ee7f,'change:previous',(_0x1f9327,_0x3c7178,_0x29399c,_0x1b1877)=>{_0x18ee7f[_0x3066('0xd')]&&(null==_0x29399c?(this[_0x3066('0x2')](_0x1b1877['head']),this['_handleSuggestionControllerDelayed'](_0x18ee7f,!0x1)):(this[_0x3066('0x2')](_0x29399c['head']),this[_0x3066('0x59')](_0x18ee7f,!0x0)));}),null===_0x18ee7f[_0x3066('0x69')]?this['_handleSuggestionControllerDelayed'](_0x18ee7f,!0x1):this[_0x3066('0x2')](_0x18ee7f[_0x3066('0x4b')]);}),this['listenTo'](_0x2831c6,_0x3066('0x3f'),(_0x25f1cf,_0x1e2fa4,_0x13cfbb)=>{this[_0x3066('0x1a')](_0x1e2fa4,'change:previous'),this['_handleControllerBuffer'][_0x3066('0x28')](_0x1e2fa4);const _0x69abc7=_0x13cfbb?_0x13cfbb[_0x3066('0x4b')]:_0x1e2fa4,_0x3558f0=this['_suggestionToController'][_0x3066('0x2c')](_0x69abc7);null!==_0x13cfbb&&this[_0x3066('0x2')](_0x69abc7),null===_0x13cfbb&&_0x3558f0&&this[_0x3066('0x5f')](_0x1e2fa4);}),this[_0x3066('0x24')](_0x2831c6,_0x3066('0x6'),(_0x3dba31,_0x4a5c43)=>{this[_0x3066('0x2')](_0x4a5c43);}),this[_0x3066('0x24')](_0x1042ff,_0x3066('0x5a'),()=>{this['_refreshActiveMarkers']();}),this[_0x3066('0x24')](_0x8a483d,'addComment',(_0x13d8a6,{threadId:_0x3a75ce,isFromAdapter:_0x12a120})=>{if(_0x12a120||!_0x2831c6[_0x3066('0x2e')](_0x3a75ce))return;const _0x368224=_0x2831c6[_0x3066('0x40')](_0x3a75ce);this[_0x3066('0x37')]['get'](_0x368224)['view'][_0x3066('0x56')]();},{'priority':_0x3066('0x1b')});}[_0x3066('0x5')](){const _0x3cb2c0=this[_0x3066('0x35')][_0x3066('0x4c')][_0x3066('0x2c')](_0x3066('0x2d')),_0x5da5b1=this['editor']['plugins'][_0x3066('0x2c')]('TrackChangesEditing'),_0x941e10=Array['from'](_0x3cb2c0[_0x3066('0x11')],_0x6a992=>_0x6a992[_0x3066('0x30')])[_0x3066('0x4d')](_0x1d7e9f=>this[_0x3066('0x17')][_0x3066('0x33')](_0x1d7e9f)),_0x430920=[];for(const _0x3856c3 of _0x941e10){const _0x505988=this[_0x3066('0x17')][_0x3066('0x2c')](_0x3856c3)[_0x3066('0x20')][_0x3066('0x45')]();_0x430920[_0x3066('0x14')](..._0x505988[_0x3066('0x1e')]((_0x17680f,_0x132404)=>[..._0x17680f,..._0x132404[_0x3066('0x15')]()],[]));}_0x5da5b1[_0x3066('0x54')]=_0x430920;}[_0x3066('0x67')](_0x4a444f){const _0x19dbec=_0xc09fa7(_0x4a444f,_0x2310fa),_0x13d132=this['editor']['commands'][_0x3066('0x2c')]('trackChanges'),_0x4b4456=_0x222207(_0x4a444f,_0x3066('0x4'));_0x19dbec[_0x3066('0x9')][_0x3066('0x3e')]({'tooltip':_0x4b4456,'label':_0x4b4456,'icon':_0x2f83d9}),_0x19dbec[_0x3066('0x9')][_0x3066('0x57')](_0x3066('0x6a'))['to'](_0x13d132,_0x3066('0x51')),_0x19dbec[_0x3066('0x9')]['on'](_0x3066('0x66'),()=>{_0x13d132[_0x3066('0x66')](),this[_0x3066('0x35')][_0x3066('0xf')][_0x3066('0x1f')]['focus']();});const _0x35edcf=new _0x105231(),_0x26714e=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x4b4456,'commandName':_0x3066('0x58')}},{'type':_0x3066('0x42')},{'type':_0x3066('0x61'),'model':{'withText':!0x0,'label':_0x222207(_0x4a444f,_0x3066('0x55')),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x222207(_0x4a444f,_0x3066('0x6c')),'commandName':_0x3066('0x18')}},{'type':'button','model':{'withText':!0x0,'label':_0x222207(_0x4a444f,_0x3066('0x0')),'commandName':_0x3066('0x3')}},{'type':_0x3066('0x61'),'model':{'withText':!0x0,'label':_0x222207(_0x4a444f,_0x3066('0x10')),'commandName':_0x3066('0x1')}}];for(const _0x37c8a7 of _0x26714e){let _0x1498ab={'type':'separator'};if(_0x37c8a7[_0x3066('0x20')]){const _0x492cd9=new _0x57de1c(_0x37c8a7['model']),_0x1dccf8=this[_0x3066('0x35')][_0x3066('0x63')][_0x3066('0x2c')](_0x492cd9[_0x3066('0x29')]);_0x492cd9[_0x3066('0x57')](_0x3066('0x6a'),'isEnabled')['to'](_0x1dccf8,_0x3066('0x51'),_0x3066('0x5c')),_0x1498ab={'type':_0x37c8a7[_0x3066('0x3d')],'model':_0x492cd9};}_0x35edcf[_0x3066('0x4e')](_0x1498ab);}_0x488754(_0x19dbec,_0x35edcf);const _0xfb7c45=_0x26714e[_0x3066('0x4d')](_0x2ae6f0=>null!=_0x2ae6f0[_0x3066('0x20')])[_0x3066('0x4a')](_0x35a5f6=>this[_0x3066('0x35')][_0x3066('0x63')][_0x3066('0x2c')](_0x35a5f6[_0x3066('0x20')]['commandName'])),_0x459904=_0x19dbec[_0x3066('0x9')];return _0x459904[_0x3066('0x7')]['unbind']('isEnabled'),_0x459904['arrowView'][_0x3066('0x16')](_0x3066('0x5c')),_0x459904[_0x3066('0x7')][_0x3066('0x57')]('isEnabled')['to'](_0x13d132,_0x3066('0x5c')),_0x459904[_0x3066('0x8')]['bind'](_0x3066('0x5c'))[_0x3066('0x2b')](_0xfb7c45,_0x3066('0x5c'),(..._0x567b44)=>_0x567b44['some'](_0x2ec89f=>_0x2ec89f)),_0x19dbec['on'](_0x3066('0x66'),_0x5d9bdb=>{this[_0x3066('0x35')][_0x3066('0x66')](_0x5d9bdb[_0x3066('0x26')][_0x3066('0x29')]),this[_0x3066('0x35')]['editing'][_0x3066('0x1f')][_0x3066('0x56')]();}),_0x19dbec;}[_0x3066('0x3c')](_0x2ca4d9){const _0x3ae8bb=this[_0x3066('0x35')],_0x361edb=_0x3ae8bb[_0x3066('0x31')],_0x99b80a=_0x3ae8bb[_0x3066('0x4c')][_0x3066('0x2c')](_0x3066('0x2d')),_0x5784a1=_0x3ae8bb[_0x3066('0x4c')][_0x3066('0x2c')](_0x3066('0x2a')),_0x56d27a=_0x3ae8bb[_0x3066('0x4c')][_0x3066('0x2c')](_0x3066('0x6b')),_0x18556c=_0x3ae8bb[_0x3066('0x4c')][_0x3066('0x2c')](_0x58949e)['me'],_0x30d073=_0x361edb['get'](_0x3066('0x58'))['SuggestionThreadView'],{CommentsListView:_0x48f4c4,CommentThreadInputView:_0x559f8f}=_0x3ae8bb[_0x3066('0x4c')][_0x3066('0x2c')](_0x3066('0x41'));let _0x72d1a4,_0x4be4fb;this['_annotationViews'][_0x3066('0x33')](_0x2ca4d9['id'])?(_0x4be4fb=this['_annotationViews'][_0x3066('0x2c')](_0x2ca4d9['id']),_0x72d1a4=_0x4be4fb[_0x3066('0x52')]):(_0x72d1a4=new _0x30d073(_0x3ae8bb[_0x3066('0x36')],_0x2ca4d9,_0x18556c,{'disableComments':this[_0x3066('0xa')],'editorConfig':_0x361edb[_0x3066('0x2c')](_0x3066('0x50')),'maxCommentsWhenCollapsed':_0x361edb['get'](_0x3066('0x22')),'maxThreadTotalWeight':_0x361edb[_0x3066('0x2c')](_0x3066('0x4f')),'maxCommentCharsWhenCollapsed':_0x361edb[_0x3066('0x2c')](_0x3066('0x65')),'formatDateTime':_0x5c812c(_0x361edb[_0x3066('0x2c')](_0x3066('0x36'))),'CommentView':_0x361edb[_0x3066('0x2c')]('comments')[_0x3066('0x5e')],'CommentsListView':_0x48f4c4,'CommentThreadInputView':_0x559f8f}),_0x72d1a4[_0x3066('0x34')]['on'](_0x3066('0x66'),()=>{_0x3ae8bb['editing'][_0x3066('0x1f')][_0x3066('0x56')]();}),_0x72d1a4['discardButton']['on'](_0x3066('0x66'),()=>{_0x3ae8bb['editing'][_0x3066('0x1f')][_0x3066('0x56')]();}),_0x4be4fb=_0x99b80a[_0x3066('0x13')](this[_0x3066('0x35')][_0x3066('0x36')],_0x72d1a4),_0x4be4fb[_0x3066('0x57')](_0x3066('0x32'))['to'](_0x72d1a4,_0x3066('0x32')),_0x4be4fb[_0x3066('0x57')](_0x3066('0x64'))['to'](_0x72d1a4),_0x4be4fb[_0x3066('0x57')]('type')['to'](_0x72d1a4,'type',_0x2630af=>_0x3066('0x53')+_0x2630af),this[_0x3066('0x39')][_0x3066('0x3e')](_0x2ca4d9['id'],_0x4be4fb));const _0x5dea67=_0x5784a1[_0x3066('0x43')](_0x2ca4d9[_0x3066('0x48')],_0x72d1a4),_0x341dda=new _0x31106f(_0x3ae8bb,_0x2ca4d9,_0x72d1a4,_0x5dea67),_0x3afac1=_0x2ca4d9[_0x3066('0x45')]()[_0x3066('0x4d')](_0x3d5e91=>_0x3d5e91[_0x3066('0xd')]);_0x72d1a4[_0x3066('0x25')]=_0x3ae8bb[_0x3066('0x4c')]['get'](_0x3066('0xe'))[_0x3066('0x49')][_0x3066('0xc')](_0x3afac1),this['_suggestionToController']['set'](_0x2ca4d9,_0x341dda),this[_0x3066('0x17')][_0x3066('0x3e')](_0x72d1a4,_0x341dda);const _0x322422=_0x99b80a[_0x3066('0x27')]({'view':_0x4be4fb,'target':()=>{const _0x2deffa=[],_0x3b3b42=_0x2ca4d9[_0x3066('0x45')]()[_0x3066('0x4d')](_0x5e5b9c=>_0x5e5b9c[_0x3066('0xd')]);for(const _0x2599ff of _0x3b3b42)_0x2deffa[_0x3066('0x14')](..._0x2599ff[_0x3066('0x3b')]());return _0x21dc61(_0x3ae8bb['editing'],_0x2deffa);},'type':()=>'suggestion-'+_0x341dda[_0x3066('0x1f')][_0x3066('0x3d')]});_0x5784a1[_0x3066('0x46')](_0x72d1a4,_0x322422),_0x99b80a[_0x3066('0x4e')](_0x322422),_0x56d27a[_0x3066('0x44')](_0x322422);}[_0x3066('0x5f')](_0x11324b){const _0x33152a=this[_0x3066('0x35')]['plugins'][_0x3066('0x2c')](_0x3066('0x2d')),_0x5652d1=this[_0x3066('0x37')][_0x3066('0x2c')](_0x11324b),_0x5904e9=_0x5652d1[_0x3066('0x1f')],_0xc23a27=_0x33152a['getByInnerView'](_0x5904e9);_0xc23a27&&_0x33152a[_0x3066('0x12')](_0xc23a27),this[_0x3066('0x37')][_0x3066('0x28')](_0x11324b),this[_0x3066('0x17')][_0x3066('0x28')](_0x5904e9),_0x5652d1[_0x3066('0x19')]();}[_0x3066('0x2')](_0x4df611){if(!_0x4df611[_0x3066('0xd')]||!this[_0x3066('0x37')][_0x3066('0x33')](_0x4df611))return;const _0x1cfb40=this['editor'][_0x3066('0x4c')][_0x3066('0x2c')]('TrackChangesEditing'),_0x2b8b4e=this[_0x3066('0x37')]['get'](_0x4df611),_0x22f1f8=_0x4df611[_0x3066('0x45')]();_0x2b8b4e[_0x3066('0x1f')][_0x3066('0x25')]=_0x1cfb40['_descriptionFactory'][_0x3066('0xc')](_0x22f1f8);}[_0x3066('0x19')](){for(const _0x4d06f0 of this[_0x3066('0x37')][_0x3066('0x23')]())this['_destroyController'](_0x4d06f0);for(const _0x430378 of this[_0x3066('0x39')]['values']())_0x430378[_0x3066('0x52')][_0x3066('0x19')]();super[_0x3066('0x19')]();}}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
3
4
|
*/
|
|
4
|
-
import type { Editor } from 'ckeditor5/src/core
|
|
5
|
-
import type Suggestion from '../suggestion
|
|
6
|
-
import type BaseSuggestionThreadView from './view/basesuggestionthreadview
|
|
5
|
+
import type { Editor } from 'ckeditor5/src/core';
|
|
6
|
+
import type Suggestion from '../suggestion';
|
|
7
|
+
import type BaseSuggestionThreadView from './view/basesuggestionthreadview';
|
|
7
8
|
import type { CommentThreadController } from '@ckeditor/ckeditor5-comments';
|
|
8
9
|
declare const SuggestionController_base: {
|
|
9
|
-
new (): import("ckeditor5/src/utils
|
|
10
|
-
prototype: import("ckeditor5/src/utils
|
|
10
|
+
new (): import("ckeditor5/src/utils").Observable;
|
|
11
|
+
prototype: import("ckeditor5/src/utils").Observable;
|
|
11
12
|
};
|
|
12
13
|
/**
|
|
13
14
|
* A controller for a suggestion.
|