@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231215.0 → 0.0.0-nightly-20231216.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/CHANGELOG.md +1 -1
- package/build/track-changes.js +1 -1
- package/package.json +4 -3
- package/src/augmentation.d.ts +2 -2
- package/src/commands/acceptsuggestioncommand.d.ts +2 -2
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.d.ts +2 -2
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.d.ts +2 -2
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.d.ts +2 -2
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.d.ts +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.d.ts +12 -12
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.d.ts +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.d.ts +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.d.ts +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.d.ts +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.d.ts +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.d.ts +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.d.ts +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.d.ts +2 -2
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.d.ts +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.d.ts +3 -3
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.d.ts +2 -2
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.d.ts +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.d.ts +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.d.ts +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.d.ts +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.d.ts +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.d.ts +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.d.ts +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.d.ts +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.d.ts +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.d.ts +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.d.ts +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.d.ts +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.d.ts +2 -2
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.d.ts +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.d.ts +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.d.ts +3 -3
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.d.ts +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.d.ts +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.d.ts +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.d.ts +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.d.ts +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.d.ts +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.d.ts +2 -2
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.d.ts +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.d.ts +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.d.ts +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.d.ts +2 -2
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.d.ts +2 -2
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.d.ts +4 -4
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.d.ts +2 -2
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.d.ts +2 -2
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.d.ts +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.d.ts +4 -4
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.d.ts +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.d.ts +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +3 -3
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +5 -5
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.d.ts +3 -3
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.d.ts +5 -5
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +1 -1
- package/src/trackchangesdata.d.ts +2 -2
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +53 -53
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +3 -3
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +5 -5
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.d.ts +6 -6
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +5 -5
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.d.ts +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.d.ts +4 -4
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x30be=['accept','size','getContainedElement','warn','hasComments','_SUGGESTION_ANNOUNCEMENT','_suggestions','Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.','fire','_setSuggestionData','document','_customCallbacks','change:activeMarkers','includes','next','attribute:','getFirstMarker','rethrowUnexpectedError','@external','CommentsRepository','newName','from','chain','attribute:accept','applyOperation','value','_enableDefaultAttributesIntegration','getShiftedBy','registerCustomCallback','_cutOutSuggestionMarker','normal','discard','isAtEnd','subType','insertion:chain','getOperations','_suggestionState','formatInline','_saved','markerToHighlight','clear','rootName','isRemovable','getIntersection','_initAriaMarkerChangeAnnouncements','containsRange','writer','editing','suggestion:attribute:','has','createPositionAt','selection','formatBlock:chain','getAllAdjacentSuggestions','isSelectable','setAttribute','discardAllSuggestions','isIntersecting','isInContent','containsRangeInObject','_getMarkerAnnouncementText','isBefore','values','stop','authoredAt','group','containsItem','always','setTo','suggestion-type','track-changes-user-not-found','discardSelectedSuggestions','_getAuthorFromId','set','refresh','batch','formatInline:','isIntersectingWithRange','insert','getChanges','isArray','getRange','trackChangesCommand','listenTo','elementStart','addSuggestion','getCustomProperty','every','unbindElementFromMarkerName','execute','_rangeIsInLocalUserInsertion','commands','attributes','_recordAttributeSuggestionsFromVersion','createdAt','forceDefaultExecution','_isDataLoaded','attributeOldValue','track-changes-adapter-missing-getsuggestion','markAttributeChange','format','split','isExternal','discardSuggestion','key','assign','_commentsRepository','meta','deletion:join','consume','_refreshSuggestionsChain','_adapter','_handleNewSuggestionMarker','forEach','nodeAfter','mapper','low','author','trackChanges','forward','howMany','comments','root','plugins','addHighlight','removeClass','attribute','isObject','ENTER','stopListening','addRange','TrackChangesEditing','markInlineFormat','element','_processAttributeSuggestions','isBlock','formatInline:discard','change:_saved','delete','range','addUser','unshift','getChangedMarkers','addMarker:suggestion','insertion:join','isTouching','originalSuggestionId','editor','removeComment','change','acceptSuggestion','getAttribute','dataReady','previous','change:data','notReady','enqueueChange','enableReadOnlyMode','_joinSuggestions','editingDowncast','consumable','push','_descriptionFactory','options','dataDowncast','_reduceExistingSuggestions','_mergeNestedSuggestions','ck-suggestion-marker','unbind','insertContent','ariaLiveAnnouncer','formatBlock:discard','newRange','keys','addAttribute','$marker','init','dataToMarker','removeMarkers','suggestionLoaded','_processAttributeChanges','deletion:chain','trackChanges.trackFormatChanges','createRangeOn','_registerInlineAttribute','_addSuggestionMarker','name','find','_removeSuggestion','_refreshAttributeSuggestionsChain','define','newValue','backward','markerName','suggestion:','commentThread','some','ck-suggestion-marker--active','_checkSuggestionCorrectness','markMultiRangeDeletion','suggestionChanged','getDifference','setSelection','changeAttribute','deletion:','addMarkerName','deleteContent','_inlineAttributeKeys','reconvertMarker','showSuggestionHighlights','isEqual','widget','markDeletion','multipleBlocks','createPositionBefore','detach','_recordAttributeChanges','suggestionUnloaded','Users','removed','_breakSuggestionMarker','removeAttribute','createRange','toViewElement','rejected','item','conversion','requires','_suggestionFactory','getCommentThread','formatBlock','for','then','addMarker','addSuggestionData','nodeBefore','_isBlockAttribute','join','deletion','formatBlock:join','splitPosition','ck-suggestion-marker-formatBlock','never','_findSuggestions','markerNameToElements','markerReady','end','getSuggestionCallback','attributeKey','before','locale','announce','containsPosition','track-changes-suggestion-data-mismatch','getAncestors','insertion:','addCommentThread','multi','getSuggestions','head','update:suggestion','formatBlock:accept','oldRange','accepted','createRangeIn','elementEnd','getMultiRangeId','removeMarker','removeMarker:suggestion:formatBlock','oldValue','LEAVE','markInsertion','attributeNewValue','_splitMarkerName','getNearestSelectionRange','registerPostFixer','isInsideObject','_registerDefaultCallbacks','attribute:join','addComment','rename','containerElement','$graveyard','markMultiRangeBlockFormat','updateSuggestion','track-changes-adapter-already-set','high','substring','filter','createPositionAfter','splice','fromCharCode','pop','acceptAllSuggestions','add','createSelection','history','parent','_trackFormatChanges','isNextTo','_registerBlockAttribute','acceptSelectedSuggestions','model','getRanges','enableCommand','_setSuggestionRange','insertion','isAfter','isLimit','isLocal','addClass','_isForcedDefaultExecutionBlock','buildSuggestion','isMultiRange','after','clone','external:','data-suggestion','addMarker:suggestion:attribute','config','length','_updateSuggestionData','_reduceSuggestionAttributeRange','activeMarkers','_model','isAtStart','highest','getSuggestion','data','get','position','_getSuggestionData','_joinWithAdjacentSuggestions','formatInline:join','_blockAttributeKeys','differ','trackChanges.mergeNestedSuggestions','type','tablePasteChainId','deletion:discard','formatGroupId','start','fetchCommentThread','isUndo','isOwn','_addThreadToSuggestion','getLastMatchingPosition','remove','open','marker-count','suggestion','adapter','upcast','schema','groupId','formatBlock:','getMarkers','getUser','_defaultCallbacks','bindElementToMarker','default','updateMarker','addMarker:suggestion:formatBlock','getWalker','skipNestingCheck','_enabledCommands','markers','catch','PENDING_ACTION_SUGGESTION','startsWith','getFirstRange','creator','$elementName','_editor','ready','isCollapsed','getItems','$text','toJSON','sort','_createSuggestion','return','track-changes-enable-command-twice','collaboration.channelId','map','insertion:discard'];(function(_0xc91a1c,_0x30bef7){const _0xea0491=function(_0x38e5c8){while(--_0x38e5c8){_0xc91a1c['push'](_0xc91a1c['shift']());}};_0xea0491(++_0x30bef7);}(_0x30be,0x98));const _0xea04=function(_0xc91a1c,_0x30bef7){_0xc91a1c=_0xc91a1c-0x0;let _0xea0491=_0x30be[_0xc91a1c];return _0xea0491;};import{Plugin as _0x5930ca,PendingActions as _0xf01f44}from'ckeditor5/src/core';import{LiveRange as _0x567f7b}from'ckeditor5/src/engine';import{CKEditorError as _0x588824,uid as _0x5973ad,priorities as _0x2a3d94,logWarning as _0x33f7d9}from'ckeditor5/src/utils';import{toWidget as _0x1f8dd9}from'ckeditor5/src/widget';import{Users as _0x431167,hashObject as _0x5a38d7,surroundingMarkersDetector as _0x484966}from'ckeditor5-collaboration/src/collaboration-core';import _0x4ba7bf from'./commands/trackchangescommand';import _0x270082 from'./commands/acceptsuggestioncommand';import _0xc4eca8 from'./commands/discardsuggestioncommand';import _0x35da60 from'./commands/executeonallsuggestionscommand';import _0x181273 from'./commands/executeonselectedsuggestionscommand';import _0x5b9956 from'./suggestion';import _0x3200e3 from'./suggestiondescriptionfactory';import _0x4dc6a9 from'./integrations/aiassistant';import _0x2cb92a from'./integrations/alignment';import _0x500d99 from'./integrations/basicstyles';import _0x2e1112 from'./integrations/blockquote';import _0x52219f from'./integrations/ckbox';import _0x2d5c8f from'./integrations/codeblock';import _0x5e5989 from'./integrations/comments';import _0x45fd5e from'./integrations/deletecommand';import _0x301d5a from'./integrations/documentlist';import _0x3e166c from'./integrations/documentlistproperties';import _0x5319ab from'./integrations/entercommand';import _0x534f92 from'./integrations/findandreplace';import _0x2b4cd6 from'./integrations/font';import _0x34bf17 from'./integrations/formatpainter';import _0x3a9aed from'./integrations/heading';import _0xb7f293 from'./integrations/highlight';import _0x8be87c from'./integrations/horizontalline';import _0x37dc8c from'./integrations/htmlembed';import _0x357ef4 from'./integrations/image';import _0x43ece5 from'./integrations/imagereplace';import _0x48d8ed from'./integrations/imagestyle';import _0x5d85d3 from'./integrations/importword';import _0x18f729 from'./integrations/indent';import _0x4028e6 from'./integrations/inputcommand';import _0x3491e1 from'./integrations/link';import _0x1ad2f4 from'./integrations/list';import _0x4546c7 from'./integrations/listproperties';import _0x3024ba from'./integrations/mediaembed';import _0x43210e from'./integrations/mention';import _0x35babd from'./integrations/pagebreak';import _0x28aef4 from'./integrations/paragraph';import _0x1a2bb2 from'./integrations/removeformat';import _0xa9f070 from'./integrations/restrictededitingmode';import _0x457ca8 from'./integrations/shiftentercommand';import _0x405ec3 from'./integrations/standardeditingmode';import _0x5c627a from'./integrations/style';import _0x318d75 from'./integrations/table';import _0x1c3958 from'./integrations/tablemergesplit';import _0x1a308b from'./integrations/tableheadings';import _0x531d58 from'./integrations/tableclipboard';import _0x553f65 from'./integrations/tablecolumnresize';import _0x261ae2 from'./integrations/template';import _0x141efd from'./integrations/tableofcontents';import _0x2fc27c from'./integrations/title';import _0x581115 from'./integrations/undo';import _0x4cfe4f from'./integrations/tablecaption';import _0x37f636 from'./integrations/tableproperties';import{getTranslation as _0x4b9969}from'./utils/common-translations';import{isEqual as _0x2f12fa,omit as _0x5282d2}from'lodash-es';export const renameAttributeKey=_0xea04('0xdc');export default class p extends _0x5930ca{static get[_0xea04('0x4b')](){return[_0xea04('0xfd'),_0x431167,_0xf01f44,_0x4dc6a9,_0x2cb92a,_0x500d99,_0x2e1112,_0x52219f,_0x2d5c8f,_0x5e5989,_0x45fd5e,_0x301d5a,_0x3e166c,_0x5319ab,_0x534f92,_0x2b4cd6,_0x34bf17,_0x3a9aed,_0xb7f293,_0x8be87c,_0x37dc8c,_0x357ef4,_0x48d8ed,_0x43ece5,_0x5d85d3,_0x18f729,_0x4028e6,_0x3491e1,_0x1ad2f4,_0x4546c7,_0x3024ba,_0x43210e,_0x35babd,_0x28aef4,_0x1a2bb2,_0xa9f070,_0x457ca8,_0x405ec3,_0x5c627a,_0x318d75,_0x1c3958,_0x1a308b,_0x4cfe4f,_0x531d58,_0x553f65,_0x141efd,_0x37f636,_0x261ae2,_0x2fc27c,_0x581115];}static get['pluginName'](){return _0xea04('0x16d');}constructor(_0x304d39){function _0x588d32(_0x58af01){return _0x58af01[_0xea04('0xe8')](_0x2fb1c6=>String[_0xea04('0x8b')](_0x2fb1c6))['join']('');}super(_0x304d39),this[_0xea04('0x147')]=null,this[_0xea04('0x133')](_0xea04('0xab'),[]),this['on'](_0xea04('0xf6'),(_0x551814,_0x3dfb21,_0x58c7bb,_0x1d8502)=>{this['_model'][_0xea04('0x17f')](()=>{for(const _0x56926c of[..._0x1d8502,..._0x58c7bb])this['_model'][_0xea04('0xd6')][_0xea04('0x11b')](_0x56926c)&&_0x304d39[_0xea04('0x119')][_0xea04('0x38')](_0x56926c);});}),this[_0xea04('0xa')]=new _0x3200e3(this[_0xea04('0x17d')]['model'][_0xea04('0xc9')],this[_0xea04('0x17d')][_0xea04('0x62')]),this[_0xea04('0x159')]=null,this['_suggestionFactory']=new Bt(this['editor']),this[_0xea04('0xf0')]=new Map(),this[_0xea04('0x154')]=_0x304d39[_0xea04('0x165')]['get'](_0xea04('0xfd')),this[_0xea04('0xd5')]=new Set(),this[_0xea04('0xac')]=this[_0xea04('0x17d')][_0xea04('0x96')],this[_0xea04('0x10e')]=new WeakMap(),this[_0xea04('0x9f')]=!0x1,this[_0xea04('0xb6')]=new Set([_0xea04('0xdc')]),this['_inlineAttributeKeys']=new Set(),_0x304d39['config']['define'](_0xea04('0x1e'),_0xea04('0xd0')),this[_0xea04('0x92')]=_0x304d39[_0xea04('0xa7')][_0xea04('0xb1')](_0xea04('0x1e')),_0x304d39[_0xea04('0xa7')][_0xea04('0x26')](_0xea04('0xb8'),!0x0),this[_0xea04('0xe')]=_0x304d39['config'][_0xea04('0xb1')](_0xea04('0xb8')),this[_0xea04('0x13c')]=new _0x4ba7bf(_0x304d39,this[_0xea04('0xd5')]),this['_initAriaMarkerChangeAnnouncements'](),this[_0x588d32([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x588d32([0x34,0x30,0x34,0x36,0x32,0x34,0x33,0x30]);}[_0xea04('0x18')](){const _0x223d5a=this['editor'],_0x11af32=(_0x210152,_0x168ed2)=>{if(_0xea04('0x168')!=_0x210152)return'ck-suggestion-marker-'+_0x210152;const _0x4016e6=_0x168ed2[_0xea04('0x14f')]('|')[0x0];return this[_0xea04('0x54')](_0x4016e6)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x223d5a[_0xea04('0x4a')][_0xea04('0x4f')](_0xea04('0x7'))[_0xea04('0x111')]({'model':'suggestion','view':_0x2e636f=>{const {id:_0x124892,type:_0x55820e,subType:_0x5b21d0}=this['_splitMarkerName'](_0x2e636f[_0xea04('0x29')]),_0x369882=[_0xea04('0xf'),_0x11af32(_0x55820e,_0x5b21d0)];let _0x46f35f=0xbb8;return this[_0xea04('0xab')]['includes'](_0x2e636f[_0xea04('0x29')])&&(_0x369882['push']('ck-suggestion-marker--active'),_0x46f35f=0xbc2),_0xea04('0x56')==_0x55820e&&(_0x46f35f+=0x5),{'classes':_0x369882,'attributes':{'data-suggestion':_0x124892},'priority':_0x46f35f};}}),_0x223d5a['conversion']['for'](_0xea04('0xc'))[_0xea04('0x8e')](_0x15228f=>{_0x15228f['on'](_0xea04('0x179'),(_0x1033e2,_0xa0d35f,_0x3752de)=>{if(!_0x3752de[_0xea04('0xb')][_0xea04('0x39')])return;const _0xf5331a=_0xa0d35f[_0xea04('0x49')];if(!_0xf5331a)return;const _0x5531e6=_0x3752de['mapper'][_0xea04('0x47')](_0xf5331a);_0x223d5a[_0xea04('0x96')][_0xea04('0xc9')][_0xea04('0x169')](_0xf5331a)&&_0x5531e6&&!_0x5531e6[_0xea04('0x140')](_0xea04('0x3b'))&&_0x5531e6['is'](_0xea04('0x81'))&&_0x1f8dd9(_0x5531e6,_0x3752de['writer']);},{'priority':_0xea04('0x86')});}),_0x223d5a['conversion'][_0xea04('0x4f')](_0xea04('0xc'))[_0xea04('0x111')]({'model':'suggestion','view':(_0x293809,_0x5e0370)=>{if(!_0x5e0370[_0xea04('0xb')]['showSuggestionHighlights'])return null;const {type:_0x17c349,subType:_0x339ff2}=this[_0xea04('0x79')](_0x293809[_0xea04('0x29')]);return{'classes':['ck-suggestion-marker',_0x11af32(_0x17c349,_0x339ff2)],'priority':0xbb8};}});const _0x25858c=({showActiveMarkers:_0x3cdfdc=!0x0,isAttributeSuggestion:_0xfaf2c7=!0x1}={})=>(_0x5c6e9e,_0x4b70f9,_0x40cbe8)=>{if(!_0x4b70f9[_0xea04('0x49')])return;const {id:_0x3aea97}=this[_0xea04('0x79')](_0x4b70f9[_0xea04('0x29')]);if(_0xfaf2c7){const _0x59c209=Pt(this[_0xea04('0xf0')][_0xea04('0xb1')](_0x3aea97));if(!this[_0xea04('0x54')](_0x59c209))return;}if(_0x4b70f9[_0xea04('0x49')]['is'](_0xea04('0x11d')))return void _0x40cbe8[_0xea04('0x8')][_0xea04('0x157')](_0x4b70f9['item'],_0x5c6e9e['name']);const _0x42d16f=_0x40cbe8['mapper'][_0xea04('0x47')](_0x4b70f9[_0xea04('0x49')]);if(_0x4b70f9[_0xea04('0x49')]['is'](_0xea04('0x16f'))&&_0x223d5a[_0xea04('0x96')][_0xea04('0xc9')][_0xea04('0x171')](_0x4b70f9['item'])&&!_0x42d16f[_0xea04('0x140')]('addHighlight')){_0x40cbe8[_0xea04('0x118')]['addClass']([_0xea04('0xf'),_0xea04('0x59')],_0x42d16f),_0x40cbe8[_0xea04('0x118')][_0xea04('0x121')](_0xea04('0xa5'),_0x3aea97,_0x42d16f),_0x40cbe8['mapper'][_0xea04('0xcf')](_0x42d16f,_0x4b70f9[_0xea04('0x29')]),_0x3cdfdc&&(this[_0xea04('0xab')][_0xea04('0xf7')](_0x4b70f9['markerName'])?_0x40cbe8[_0xea04('0x118')][_0xea04('0x9e')](_0xea04('0x2d'),_0x42d16f):_0x40cbe8[_0xea04('0x118')][_0xea04('0x167')](_0xea04('0x2d'),_0x42d16f));for(const _0x4b3f0e of _0x223d5a[_0xea04('0x96')][_0xea04('0x70')](_0x4b70f9[_0xea04('0x49')])[_0xea04('0xe0')]())_0x40cbe8[_0xea04('0x8')][_0xea04('0x157')](_0x4b3f0e,_0x5c6e9e[_0xea04('0x22')]);_0x40cbe8['consumable']['consume'](_0x4b70f9[_0xea04('0x49')],_0x5c6e9e['name']);}};_0x223d5a[_0xea04('0x4a')][_0xea04('0x4f')](_0xea04('0xc'))[_0xea04('0x8e')](_0x4ffecc=>{_0x4ffecc['on'](_0xea04('0xd2'),(_0x5cb933,_0x48736b,_0x599ff4)=>{_0x599ff4[_0xea04('0xb')][_0xea04('0x39')]&&_0x25858c({'showActiveMarkers':!0x1})(_0x5cb933,_0x48736b,_0x599ff4);},{'priority':_0xea04('0xae')});}),_0x223d5a[_0xea04('0x4a')]['for'](_0xea04('0xc'))[_0xea04('0x8e')](_0x2318d8=>{_0x2318d8['on'](_0xea04('0xa6'),(_0x4de7b,_0x4a7021,_0x418ddb)=>{_0x418ddb[_0xea04('0xb')][_0xea04('0x39')]&&_0x25858c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4de7b,_0x4a7021,_0x418ddb);},{'priority':'highest'});}),_0x223d5a[_0xea04('0x4a')][_0xea04('0x4f')](_0xea04('0xc'))['markerToData']({'model':_0xea04('0xc6'),'view':(_0x45063b,_0x51f9c4)=>_0x51f9c4[_0xea04('0xb')][_0xea04('0x39')]?null:{'group':'suggestion','name':_0x45063b['substr'](0xb)}}),_0x223d5a[_0xea04('0x4a')][_0xea04('0x4f')]('upcast')['elementToElement']({'view':{'name':_0xea04('0xc6'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4b1543,{writer:_0x16fd4d})=>{let _0x231c6b=_0xea04('0x2a')+_0x4b1543[_0xea04('0x181')](_0xea04('0x12f'))+':'+_0x4b1543[_0xea04('0x181')]('id');return _0x4b1543['getAttribute'](_0xea04('0xc5'))&&(_0x231c6b+=':'+_0x4b1543[_0xea04('0x181')](_0xea04('0xc5'))),_0x16fd4d['createElement'](_0xea04('0x17'),{'data-name':_0x231c6b});}}),_0x223d5a[_0xea04('0x4a')][_0xea04('0x4f')](_0xea04('0xc8'))[_0xea04('0x19')]({'view':_0xea04('0xc6')}),_0x223d5a[_0xea04('0x4a')][_0xea04('0x4f')](_0xea04('0x7'))[_0xea04('0x8e')](_0x406277=>{_0x406277['on'](_0xea04('0xd2'),_0x25858c(),{'priority':_0xea04('0x86')});}),_0x223d5a[_0xea04('0x4a')]['for']('editingDowncast')['add'](_0x3ad7c4=>{_0x3ad7c4['on']('addMarker:suggestion:attribute',_0x25858c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x223d5a['conversion'][_0xea04('0x4f')](_0xea04('0x7'))['add'](_0x1a0211=>{_0x1a0211['on'](_0xea04('0x74'),(_0x4bf26f,_0x19dff4,_0x481a2f)=>{const _0x31e263=_0x481a2f[_0xea04('0x15d')][_0xea04('0x5c')](_0x19dff4[_0xea04('0x29')]);if(_0x31e263)for(const _0x1a7f3a of _0x31e263)_0x1a7f3a[_0xea04('0x140')](_0xea04('0x166'))||(_0x481a2f[_0xea04('0x118')][_0xea04('0x167')]([_0xea04('0xf'),_0xea04('0x59'),_0xea04('0x2d')],_0x1a7f3a),_0x481a2f[_0xea04('0x118')][_0xea04('0x45')](_0xea04('0xa5'),_0x1a7f3a),_0x481a2f[_0xea04('0x15d')][_0xea04('0x142')](_0x1a7f3a,_0x19dff4[_0xea04('0x29')]));},{'priority':_0xea04('0x86')});}),_0x223d5a[_0xea04('0x4a')]['for']('editingDowncast')[_0xea04('0x8e')](_0x5703c4=>{_0x5703c4['on']('removeMarker:suggestion:attribute',(_0x1308d9,_0x3bed50,_0x2f9d46)=>{const _0x2ef5ba=_0x2f9d46[_0xea04('0x15d')][_0xea04('0x5c')](_0x3bed50['markerName']);if(!_0x2ef5ba)return;const {id:_0x5bae62}=this['_splitMarkerName'](_0x3bed50[_0xea04('0x29')]),_0x4a0656=Pt(this[_0xea04('0xf0')]['get'](_0x5bae62));if(this['_isBlockAttribute'](_0x4a0656))for(const _0x117e45 of _0x2ef5ba)_0x117e45['getCustomProperty'](_0xea04('0x166'))||(_0x2f9d46[_0xea04('0x118')][_0xea04('0x167')]([_0xea04('0xf'),_0xea04('0x59'),'ck-suggestion-marker--active'],_0x117e45),_0x2f9d46['writer'][_0xea04('0x45')](_0xea04('0xa5'),_0x117e45),_0x2f9d46[_0xea04('0x15d')][_0xea04('0x142')](_0x117e45,_0x3bed50[_0xea04('0x29')]));},{'priority':_0xea04('0x86')});}),_0x223d5a['model'][_0xea04('0xf4')][_0xea04('0x7b')](_0x50e7f4=>{let _0x54676b=!0x1;const _0x3cd2b6=Array[_0xea04('0xff')](_0x223d5a[_0xea04('0x96')][_0xea04('0xf4')][_0xea04('0xb7')]['getChangedMarkers']()),_0x5e9ba0=new Set();for(const {name:_0x33bdf3,data:_0x50c800}of _0x3cd2b6){const {group:_0x381346,type:_0xb29bcf,subType:_0x5e54b2,id:_0x191416}=this['_splitMarkerName'](_0x33bdf3);if('suggestion'!==_0x381346)continue;const _0x3c11bd=this[_0xea04('0xf0')][_0xea04('0xb1')](_0x191416);if(null!=_0x50c800[_0xea04('0x14')]){_0xea04('0x10f')==_0xb29bcf&&(_0x54676b=_0x54676b||Et(_0x50c800[_0xea04('0x14')],_0x33bdf3,_0x50e7f4,_0x223d5a[_0xea04('0x96')]['schema']));const _0xbb1388='attribute'==_0xb29bcf&&this[_0xea04('0x54')](_0x5e54b2['split']('|')[0x0]);if(_0x50c800['newRange'][_0xea04('0xdf')]||_0xea04('0x82')==_0x50c800[_0xea04('0x14')][_0xea04('0x164')][_0xea04('0x113')]||_0xea04('0x4e')==_0xb29bcf&&!jt(_0x50c800['newRange'])||_0xbb1388&&!jt(_0x50c800['newRange'])||_0xea04('0x56')==_0xb29bcf&&!(!xt(_0x3fd5f8=_0x50c800[_0xea04('0x14')])&&!function(_0x3dfb35){return _0x3dfb35[_0xea04('0xbd')][_0xea04('0x91')]==_0x3dfb35[_0xea04('0x5e')][_0xea04('0x53')]&&_0x3dfb35[_0xea04('0xbd')][_0xea04('0x10a')];}(_0x3fd5f8)))_0x50e7f4[_0xea04('0x73')](_0x33bdf3),_0x54676b=!0x0;else{if(!_0x3c11bd||!_0x3c11bd[_0xea04('0x124')])continue;_0x5e9ba0[_0xea04('0x8e')](_0x3c11bd);}}}var _0x3fd5f8;return _0x5e9ba0[_0xea04('0xeb')]>0x0&&(_0x54676b=!!this[_0xea04('0xb4')](_0x5e9ba0)||_0x54676b),_0x54676b;}),_0x223d5a[_0xea04('0x96')][_0xea04('0xf4')][_0xea04('0x7b')](_0x1e8f21=>{let _0x3f1e7f=!0x1;for(const _0x51b921 of _0x223d5a['model'][_0xea04('0xf4')]['differ'][_0xea04('0x139')]())if(_0xea04('0x138')==_0x51b921[_0xea04('0xb9')])for(const _0x1333e2 of this[_0xea04('0xf0')][_0xea04('0x128')]()){if(_0x1333e2[_0xea04('0xa1')]||!_0x1333e2[_0xea04('0x124')])continue;const _0x135d7a=_0xea04('0x4e')==_0x1333e2['type'],_0x16c8b1=Pt(_0x1333e2),_0x5361a9=_0x16c8b1&&this['_isBlockAttribute'](_0x16c8b1);if(!_0x135d7a&&!_0x5361a9)continue;const _0x394f55=_0x1333e2[_0xea04('0xda')]();if(_0x394f55[_0xea04('0xbd')][_0xea04('0x91')]!=_0x394f55[_0xea04('0x5e')][_0xea04('0x91')]&&!_0x394f55[_0xea04('0x5e')][_0xea04('0x10a')]){const _0x259a9e=_0x223d5a[_0xea04('0x96')][_0xea04('0x11c')](_0x394f55[_0xea04('0xbd')]['nodeAfter'],_0xea04('0x5e')),_0x5371cc=_0x223d5a[_0xea04('0x96')][_0xea04('0x46')](_0x394f55[_0xea04('0xbd')],_0x259a9e);_0x1e8f21[_0xea04('0xd1')](_0x1333e2[_0xea04('0xfa')](),{'range':_0x5371cc}),_0x3f1e7f=!0x0;}}return _0x3f1e7f;}),_0x223d5a[_0xea04('0x96')][_0xea04('0xf4')][_0xea04('0x7b')](_0x573c46=>this[_0xea04('0x1c')](_0x573c46)),_0x223d5a[_0xea04('0x96')][_0xea04('0xf4')][_0xea04('0x7b')](_0x1f8107=>!_0x1f8107['batch'][_0xea04('0x9d')]&&this[_0xea04('0x170')](_0x1f8107)),_0x223d5a['model'][_0xea04('0xd6')]['on'](_0xea04('0x6c'),(_0x40fdb4,_0x26c940,_0x5941b5)=>{if(null==_0x5941b5){const {id:_0x57b7f2}=this['_splitMarkerName'](_0x26c940['name']),_0x354307=this[_0xea04('0xf0')]['get'](_0x57b7f2);_0x354307&&_0x354307[_0xea04('0x35')](_0x26c940[_0xea04('0x22')]);}}),_0x223d5a[_0xea04('0x96')][_0xea04('0xf4')]['on'](_0xea04('0x2'),()=>{const _0xf782ae=Array[_0xea04('0xff')](_0x223d5a[_0xea04('0x96')]['document'][_0xea04('0xb7')][_0xea04('0x178')]())[_0xea04('0x88')](_0x426861=>_0xea04('0xc6')===this['_splitMarkerName'](_0x426861['name'])[_0xea04('0x12b')]);if(0x0===_0xf782ae[_0xea04('0xa8')])return;_0xf782ae[_0xea04('0xe3')]((_0x489de7,_0x331847)=>{const _0x1a6184=_0x489de7[_0xea04('0xb0')][_0xea04('0x6e')],_0x7819b8=_0x331847[_0xea04('0xb0')][_0xea04('0x6e')];return null===_0x1a6184&&null===_0x7819b8?0x0:null===_0x1a6184&&null!==_0x7819b8?-0x1:null!==_0x1a6184&&null===_0x7819b8?0x1:_0x1a6184['start'][_0xea04('0x127')](_0x7819b8[_0xea04('0xbd')])?-0x1:0x1;});const _0x5b6be=new Set(),_0x28cd2a=new Set();for(const {name:_0x4541d3,data:_0x1ca70d}of _0xf782ae){const {id:_0x268e72}=this[_0xea04('0x79')](_0x4541d3);if(null===_0x1ca70d[_0xea04('0x6e')]){const _0x2904c8=this[_0xea04('0x15a')](_0x4541d3);_0x28cd2a[_0xea04('0x8e')](_0x2904c8);}else{const _0x22194b=this['_suggestions'][_0xea04('0xb1')](_0x268e72);null!==_0x1ca70d[_0xea04('0x14')]||_0x22194b['isInContent']?(_0x5b6be[_0xea04('0x8e')](_0x22194b[_0xea04('0x6b')]),_0x28cd2a[_0xea04('0x8e')](_0x22194b)):this[_0xea04('0x24')](_0x22194b);}}_0x28cd2a[_0xea04('0xeb')]>0x0&&this['_refreshSuggestionsChain'](_0x28cd2a);for(const _0x380262 of _0x5b6be)this[_0xea04('0xf2')](_0xea04('0x30'),_0x380262);}),_0x223d5a['model']['on'](_0xea04('0x102'),(_0x2b6152,_0x5538aa)=>{const _0x389005=_0x5538aa[0x0];if(!this['_suggestions']['size'])return;if(!_0x389005['isDocumentOperation'])return;if(_0x389005[_0xea04('0x135')][_0xea04('0xbf')]||!_0x389005[_0xea04('0x135')][_0xea04('0x9d')])return;let _0x5794ec,_0x469c13;switch(_0x389005[_0xea04('0xb9')]){case _0xea04('0x138'):_0x5794ec=_0x223d5a['model'][_0xea04('0x11c')](_0x389005['position']),_0x469c13=_0x5794ec[_0xea04('0x105')](_0x389005[_0xea04('0x162')]);break;case'split':_0x5794ec=_0x223d5a[_0xea04('0x96')][_0xea04('0x11c')](_0x389005[_0xea04('0x58')]),_0x469c13=_0x223d5a[_0xea04('0x96')][_0xea04('0x11c')](_0x389005['moveTargetPosition']);break;case'move':_0x5794ec=_0x223d5a[_0xea04('0x96')][_0xea04('0x11c')](_0x389005['targetPosition']),_0x469c13=_0x5794ec[_0xea04('0x105')](_0x389005['howMany']);break;default:return;}const _0x40b7bc=_0x223d5a[_0xea04('0x96')][_0xea04('0x46')](_0x5794ec,_0x469c13);_0x223d5a[_0xea04('0x96')][_0xea04('0x17f')](()=>{for(const {suggestion:_0xb459ca,meta:_0x55493a}of this[_0xea04('0x5b')](_0x40b7bc)){if(_0xb459ca[_0xea04('0xa1')])continue;if(_0xea04('0x10f')==_0xb459ca[_0xea04('0xb9')])continue;const _0x16506f=Pt(_0xb459ca);if(_0x16506f&&this[_0xea04('0x54')](_0x16506f)&&_0xea04('0x14f')!=_0x389005[_0xea04('0xb9')])continue;const _0x85dff6=_0xb459ca[_0xea04('0xb0')]&&_0xb459ca['data'][_0xea04('0x3d')];(_0xea04('0x4e')!=_0xb459ca['type']||_0xea04('0x14f')==_0x389005[_0xea04('0xb9')]&&!_0x85dff6)&&(_0x55493a[_0xea04('0x125')]||_0xea04('0x9a')==_0xb459ca[_0xea04('0xb9')]&&_0x55493a[_0xea04('0xc0')]||_0xb459ca[_0xea04('0xda')]()[_0xea04('0x117')](_0x40b7bc)&&this[_0xea04('0x44')](_0xb459ca,_0x5794ec,_0x469c13));}});},{'priority':'lowest'}),_0x223d5a['model']['on'](_0xea04('0x36'),(_0x5a559f,_0x304d80)=>{const _0x3a93e0=_0x304d80[0x0],_0x4622fb=_0x304d80[0x1];if(_0x4622fb&&_0x4622fb[_0xea04('0x149')])return;if(this[_0xea04('0x9f')])return;if(!this[_0xea04('0x13c')][_0xea04('0x103')])return;if(_0x3a93e0[_0xea04('0xdf')])return;const _0x178ea0=_0x223d5a[_0xea04('0x96')][_0xea04('0xc9')],{start:_0x52220d,end:_0x204065}=_0x3a93e0[_0xea04('0xda')](),_0x1b2a24=_0x52220d[_0xea04('0x15c')]&&_0x178ea0[_0xea04('0x9c')](_0x52220d[_0xea04('0x15c')])?null:_0x178ea0[_0xea04('0x7a')](_0x52220d,_0xea04('0x161')),_0x44c5d2=_0x204065['nodeBefore']&&_0x178ea0[_0xea04('0x9c')](_0x204065[_0xea04('0x53')])?null:_0x178ea0[_0xea04('0x7a')](_0x204065,_0xea04('0x28')),_0x31fed6=_0x223d5a['model'][_0xea04('0x46')](_0x1b2a24?_0x1b2a24['start']:_0x52220d,_0x44c5d2?_0x44c5d2['end']:_0x204065);_0x223d5a[_0xea04('0x96')][_0xea04('0x17f')](_0x531f64=>{this[_0xea04('0x3c')](_0x31fed6);const _0x25a150=_0x223d5a[_0xea04('0x96')][_0xea04('0xc9')]['getNearestSelectionRange'](_0x31fed6['start']);_0x3a93e0['is']('documentSelection')?_0x531f64['setSelection'](_0x25a150):_0x3a93e0[_0xea04('0x12e')](_0x25a150);}),_0x5a559f[_0xea04('0x129')]();},{'priority':_0x2a3d94[_0xea04('0x108')]+0xa}),_0x223d5a[_0xea04('0x96')]['on'](_0xea04('0x11'),(_0xb3a217,_0x30ad17)=>{const _0xf03c16=_0x30ad17[_0x30ad17[_0xea04('0xa8')]-0x1];_0xf03c16&&_0xf03c16['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand'][_0xea04('0x103')]&&(_0x223d5a[_0xea04('0x96')][_0xea04('0x17f')](()=>{let _0xabc0c5=_0x223d5a['model']['insertContent'](_0x30ad17[0x0],_0x30ad17[0x1],_0x30ad17[0x2],{'forceDefaultExecution':!0x0});if(!_0xabc0c5)return;_0xb3a217['return']=_0xabc0c5[_0xea04('0xa3')]();const _0x1a249e=_0xabc0c5[_0xea04('0x5e')][_0xea04('0x53')],_0x2681d2=_0x223d5a['model'][_0xea04('0xc9')];_0x1a249e&&_0x2681d2[_0xea04('0x171')](_0x1a249e)&&!_0x2681d2['isObject'](_0x1a249e)&&(_0xabc0c5=_0x223d5a[_0xea04('0x96')][_0xea04('0x46')](_0xabc0c5[_0xea04('0xbd')],_0x223d5a[_0xea04('0x96')][_0xea04('0x11c')](_0x1a249e,'end'))),this[_0xea04('0x77')](_0xabc0c5);}),_0xb3a217['stop']());},{'priority':'high'}),this['editor']['commands'][_0xea04('0x8e')]('trackChanges',this[_0xea04('0x13c')]),this[_0xea04('0x98')]('trackChanges');const _0x508de0=new _0x270082(_0x223d5a,this[_0xea04('0xf0')]);_0x223d5a[_0xea04('0x145')][_0xea04('0x8e')](_0xea04('0x180'),_0x508de0),this[_0xea04('0x98')]('acceptSuggestion');const _0x5d1055=new _0xc4eca8(_0x223d5a,this[_0xea04('0xf0')]);_0x223d5a[_0xea04('0x145')]['add'](_0xea04('0x151'),_0x5d1055),this[_0xea04('0x98')](_0xea04('0x151')),_0x223d5a[_0xea04('0x145')]['add']('acceptAllSuggestions',new _0x35da60(_0x223d5a,_0x508de0,this[_0xea04('0xf0')])),this[_0xea04('0x98')](_0xea04('0x8d')),_0x223d5a['commands'][_0xea04('0x8e')](_0xea04('0x122'),new _0x35da60(_0x223d5a,_0x5d1055,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x223d5a[_0xea04('0x145')][_0xea04('0x8e')](_0xea04('0x95'),new _0x181273(_0x223d5a,_0x508de0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x223d5a[_0xea04('0x145')][_0xea04('0x8e')](_0xea04('0x131'),new _0x181273(_0x223d5a,_0x5d1055,this['_suggestions'])),this[_0xea04('0x98')](_0xea04('0x131'));const _0x41fb5e=_0x223d5a[_0xea04('0x165')][_0xea04('0xb1')]('CommentsRepository');this[_0xea04('0x13d')](_0x41fb5e,_0xea04('0x7f'),(_0x966525,{threadId:_0x49b1fa})=>{const _0x40cbda=this[_0xea04('0xf0')][_0xea04('0xb1')](_0x49b1fa);_0x40cbda&&_0x40cbda[_0xea04('0x2b')]&&0x1===_0x40cbda['commentThread'][_0xea04('0xa8')]&&this[_0xea04('0xa9')](_0x49b1fa,{'hasComments':!0x0});},{'priority':_0xea04('0x15e')}),this[_0xea04('0x13d')](_0x41fb5e,_0xea04('0x17e'),(_0x532e65,{threadId:_0x1b9d8c})=>{const _0x851335=this[_0xea04('0xf0')][_0xea04('0xb1')](_0x1b9d8c);_0x851335&&_0x851335[_0xea04('0x2b')]&&!_0x851335[_0xea04('0x2b')][_0xea04('0xa8')]&&this[_0xea04('0xa9')](_0x1b9d8c,{'hasComments':!0x1});},{'priority':_0xea04('0x15e')});}set['adapter'](_0x5854f0){if(this[_0xea04('0x159')])throw new _0x588824(_0xea04('0x85'),this);this[_0xea04('0x159')]=_0x5854f0;}get[_0xea04('0xc7')](){return this['_adapter'];}[_0xea04('0x6a')]({skipNotAttached:_0x228a84=!0x1,toJSON:_0x4f5440=!0x1}={}){const _0x5e20aa=[];for(const _0x419f2e of this[_0xea04('0xf0')][_0xea04('0x128')]())_0x228a84&&!_0x419f2e[_0xea04('0x124')]||_0x5e20aa['push'](_0x419f2e);return _0x4f5440?_0x5e20aa[_0xea04('0xe8')](_0x2b7cb7=>_0x2b7cb7[_0xea04('0xe2')]()):_0x5e20aa;}[_0xea04('0xaf')](_0x1cfdb4){const _0x3b7882=this[_0xea04('0xf0')][_0xea04('0xb1')](_0x1cfdb4);if(!_0x3b7882)throw new _0x588824('track-changes-suggestion-not-found',this);return _0x3b7882;}['hasSuggestion'](_0x3837b8){return this[_0xea04('0xf0')][_0xea04('0x11b')](_0x3837b8);}[_0xea04('0x52')](_0x46210e){const {authorId:_0x47d992,id:_0x57454e,attributes:_0x15ae0a}=_0x46210e,[_0x3a9bcd,_0x378569]=_0x46210e[_0xea04('0xb9')][_0xea04('0x14f')](':'),_0x3b24bb=this[_0xea04('0xf0')][_0xea04('0xb1')](_0x57454e)||this[_0xea04('0xe4')](_0x3a9bcd,_0x378569,_0x57454e,_0x47d992,_0x15ae0a);if(this[_0xea04('0xc1')](_0x3b24bb),this[_0xea04('0x2e')](_0x3b24bb,_0x3a9bcd,_0x378569||null,_0x47d992),_0x3b24bb['createdAt']=_0x46210e[_0xea04('0x148')],_0x3b24bb['_isDataLoaded']=!0x0,_0x15ae0a&&_0x15ae0a[_0xea04('0xfc')]){const _0x56d89a=_0x15ae0a['@external'],_0x2ec6ae=this['_getExternalAuthor'](_0x56d89a['authorName']);_0x3b24bb[_0xea04('0x12a')]=_0x56d89a[_0xea04('0x148')],_0x3b24bb[_0xea04('0x15f')]=_0x2ec6ae,_0x3b24bb[_0xea04('0x150')]=!0x0;}else _0x3b24bb[_0xea04('0x12a')]=_0x46210e[_0xea04('0x148')];switch(_0x46210e[_0xea04('0xb0')]&&(_0x3b24bb[_0xea04('0xb0')]=_0x46210e[_0xea04('0xb0')]),_0x46210e[_0xea04('0x146')]&&(_0x3b24bb[_0xea04('0x146')]=_0x46210e['attributes']),this[_0xea04('0x159')]&&this[_0xea04('0x159')]['addSuggestion']||(_0x3b24bb[_0xea04('0x110')]=!0x0),this[_0xea04('0x10e')][_0xea04('0xb1')](_0x3b24bb)){case _0xea04('0x3'):this[_0xea04('0x10e')][_0xea04('0x133')](_0x3b24bb,_0xea04('0x0'));break;case _0xea04('0x5d'):_0x3b24bb[_0xea04('0x124')]?(this['_refreshSuggestionsChain'](new Set([_0x3b24bb])),this[_0xea04('0xb4')](new Set([_0x3b24bb])),this[_0xea04('0x10e')][_0xea04('0x133')](_0x3b24bb,_0xea04('0xde')),this[_0xea04('0xf2')](_0xea04('0x1b'),_0x3b24bb)):this[_0xea04('0x10e')]['set'](_0x3b24bb,_0xea04('0x43'));}return _0x3b24bb;}[_0xea04('0x180')](_0xf68c12){this[_0xea04('0x149')](()=>{this['editor']['model'][_0xea04('0x17f')](()=>{for(const _0x4e6b8c of _0xf68c12[_0xea04('0x11f')]())_0x4e6b8c[_0xea04('0xea')]();});});}['discardSuggestion'](_0x46e4bb){this[_0xea04('0x149')](()=>{this[_0xea04('0x17d')][_0xea04('0x96')][_0xea04('0x17f')](()=>{for(const _0x3e7d89 of _0x46e4bb[_0xea04('0x11f')]())_0x3e7d89[_0xea04('0x109')]();});});}[_0xea04('0x98')](_0x3c1fd9,_0x597d45){const _0x586ffb=this[_0xea04('0x17d')][_0xea04('0x145')][_0xea04('0xb1')](_0x3c1fd9);if(!_0x586ffb)throw new _0x588824('track-changes-command-not-found',this,{'commandName':_0x3c1fd9});if(this[_0xea04('0xd5')][_0xea04('0x11b')](_0x586ffb))throw new _0x588824(_0xea04('0xe6'),this,{'commandName':_0x3c1fd9});this[_0xea04('0xd5')][_0xea04('0x8e')](_0x586ffb),_0x597d45&&_0x586ffb['on'](_0xea04('0x143'),(_0x2eadff,_0x5b1ee3)=>{this['trackChangesCommand'][_0xea04('0x103')]&&(this['_isForcedDefaultExecutionBlock']||(_0x5b1ee3[_0xea04('0xa8')]>0x0&&_0x5b1ee3[_0x5b1ee3[_0xea04('0xa8')]-0x1]&&_0x5b1ee3[_0x5b1ee3[_0xea04('0xa8')]-0x1][_0xea04('0x149')]?_0x5b1ee3[_0xea04('0x8c')]():(_0x2eadff[_0xea04('0xe5')]=_0x597d45((..._0x6e0ac3)=>_0x586ffb[_0xea04('0x143')](..._0x6e0ac3,{'forceDefaultExecution':!0x0}),..._0x5b1ee3),_0x2eadff[_0xea04('0x129')]())));},{'priority':'high'});}[_0xea04('0x149')](_0x2c7e9){let _0x3c013f,_0x298746;const _0x43930d=this[_0xea04('0x9f')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3c013f=_0x2c7e9();}catch(_0x423b29){_0x298746=_0x423b29;}return _0x43930d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x298746&&_0x588824[_0xea04('0xfb')](_0x298746,this),_0x3c013f;}['markInsertion'](_0xd64afd,_0x12d32f=null,_0x4aef4b={}){if(_0xd64afd['isCollapsed'])return null;const _0x412486=this[_0xea04('0x17d')][_0xea04('0x165')][_0xea04('0xb1')](_0xea04('0x42'))['me'];for(const {suggestion:_0x37123f,meta:_0x1b0c68}of this['_findSuggestions'](_0xd64afd,_0xea04('0x9a')))if(_0x1b0c68[_0xea04('0xc0')]){if(!_0x1b0c68['isNextTo']){if(_0x1b0c68[_0xea04('0x125')]){if(!this[_0xea04('0xe')]||!Gt(_0x37123f,_0x4aef4b))continue;return _0x37123f;}if(Gt(_0x37123f,_0x4aef4b))return _0x37123f;this[_0xea04('0x44')](_0x37123f,_0xd64afd['start'],_0xd64afd[_0xea04('0x5e')]);break;}if(_0x12d32f==_0x37123f[_0xea04('0x10b')]&&Gt(_0x37123f,_0x4aef4b)){const _0x2eaa44=_0x37123f['getFirstRange']();return _0x2eaa44['start'][_0xea04('0x3a')](_0xd64afd[_0xea04('0x5e')])?this[_0xea04('0x99')](_0x37123f,this['_model'][_0xea04('0x46')](_0xd64afd[_0xea04('0xbd')],_0x2eaa44[_0xea04('0x5e')])):this[_0xea04('0x99')](_0x37123f,this[_0xea04('0xac')][_0xea04('0x46')](_0x2eaa44[_0xea04('0xbd')],_0xd64afd[_0xea04('0x5e')])),_0x37123f;}}const _0x176a6e=_0x5973ad(),_0x36b06c=_0x412486['id'],_0x22228c=_0x12d32f?_0xea04('0x67')+_0x12d32f:'insertion',_0xf1f338=this['_setSuggestionData']({'id':_0x176a6e,'type':_0x22228c,'createdAt':new Date(),'authorId':_0x36b06c,'attributes':_0x4aef4b});return this[_0xea04('0x21')](_0x22228c,_0x176a6e,_0x36b06c,_0xd64afd),_0xf1f338;}['markMultiRangeInsertion'](_0x409873,_0x289c47='multi',_0x12c07f={}){const _0x4cc721=this[_0xea04('0x17d')][_0xea04('0x165')][_0xea04('0xb1')]('Users')['me'],_0xa15ebd=this[_0xea04('0x4c')][_0xea04('0x5f')](_0xea04('0x9a'),_0x289c47,_0xea04('0x55'));for(const _0x45c6b3 of this[_0xea04('0x6a')]())if(_0x45c6b3[_0xea04('0x15f')]['id']==_0x4cc721['id']&&_0xea04('0x9a')==_0x45c6b3[_0xea04('0xb9')]&&_0x45c6b3['subType']==_0x289c47&&Gt(_0x45c6b3,_0x12c07f)&&(_0xa15ebd(_0x45c6b3[_0xea04('0x97')](),_0x409873)||_0xa15ebd(_0x409873,_0x45c6b3[_0xea04('0x97')]()))){for(const _0x22dfad of _0x409873)_0x45c6b3[_0xea04('0x16c')](_0x22dfad);return _0x45c6b3;}for(const {suggestion:_0x2dc17b,meta:_0x4ad1bd}of this[_0xea04('0x5b')](_0x409873,_0xea04('0x9a'))){if(!_0x4ad1bd[_0xea04('0xc0')])continue;if(!this[_0xea04('0xe')]&&_0x4ad1bd[_0xea04('0x125')])continue;if(!Gt(_0x2dc17b,_0x12c07f))continue;let _0x53f118=!0x0;for(const _0x4aa609 of _0x2dc17b[_0xea04('0x97')]())for(const _0x12d9d6 of _0x409873)if(!_0x4aa609[_0xea04('0x117')](_0x12d9d6)){_0x53f118=!0x1;break;}if(_0x53f118)return _0x2dc17b;}const _0x227a08=_0x5973ad(),_0x1124f9=_0x4cc721['id'],_0x543f1f='insertion:'+_0x289c47,_0x3a7b26=this[_0xea04('0xf3')]({'id':_0x227a08,'type':_0x543f1f,'createdAt':new Date(),'authorId':_0x1124f9,'attributes':_0x12c07f});for(const _0x5e2c78 of _0x409873)this[_0xea04('0x21')](_0x543f1f,_0x227a08,_0x1124f9,_0x5e2c78,_0x5b9956['getMultiRangeId']());return _0x3a7b26;}[_0xea04('0x16e')](_0x3f8bd2,_0xbffeca,_0x4ac6a3=null,_0x1b906c={}){if(_0x4ac6a3=_0x4ac6a3||Rt(_0xbffeca),_0x3f8bd2[_0xea04('0xdf')])return null;if(_0xea04('0x5a')===this[_0xea04('0x92')]){const _0x1d4f3a=this[_0xea04('0x4c')][_0xea04('0x5f')](_0xea04('0x10f'),_0x4ac6a3,_0xea04('0xea'));return this['forceDefaultExecution'](()=>_0x1d4f3a([_0x3f8bd2],_0xbffeca,_0x1b906c)),null;}const _0x4b63e8=this[_0xea04('0x17d')]['plugins'][_0xea04('0xb1')](_0xea04('0x42'))['me'],_0x5dac3b=[];if(_0xea04('0x12d')!==this[_0xea04('0x92')])for(const {suggestion:_0x25e3b0,meta:_0x30e2a5}of this[_0xea04('0x5b')](_0x3f8bd2,_0xea04('0x9a')))_0x30e2a5[_0xea04('0xc0')]&&!_0x30e2a5[_0xea04('0x7c')]&&_0x5dac3b[_0xea04('0x9')](..._0x25e3b0['getRanges']());const _0x16d638=function(_0x37b708,_0x4fb49a){const _0x375efc=[];for(const _0x4939e0 of _0x4fb49a){const _0x30896b=_0x37b708[_0xea04('0x115')](_0x4939e0);_0x30896b&&_0x375efc[_0xea04('0x9')](_0x30896b);}return _0x375efc;}(_0x3f8bd2,_0x5dac3b),_0x18c17b=function(_0x1aca39,_0x415067){const _0x59bac1=[_0x1aca39];for(const _0x29bd6d of _0x415067){let _0x433ccd=0x0;for(;_0x433ccd<_0x59bac1[_0xea04('0xa8')];){const _0x35359e=_0x59bac1[_0x433ccd][_0xea04('0x31')](_0x29bd6d);_0x59bac1['splice'](_0x433ccd,0x1,..._0x35359e),_0x433ccd+=_0x35359e[_0xea04('0xa8')];}}return _0x59bac1;}(_0x3f8bd2,_0x5dac3b);_0x16d638['length']&&this[_0xea04('0xac')][_0xea04('0x17f')](()=>{for(const _0x29ff35 of _0x16d638){const _0x3aeb86=this[_0xea04('0x4c')][_0xea04('0x5f')](_0xea04('0x10f'),_0x4ac6a3,_0xea04('0xea'));this[_0xea04('0x149')](()=>_0x3aeb86([_0x29ff35],_0xbffeca,_0x1b906c));}});for(const _0x1adc8a of _0x18c17b){let _0x505a6a=null,_0x4e4d69=_0x1adc8a[_0xea04('0xbd')],_0x26690a=_0x1adc8a['end'];for(const {suggestion:_0x2134bc,meta:_0x119b8b}of this[_0xea04('0x5b')](_0x1adc8a,_0xea04('0x10f'))){if(!_0x119b8b[_0xea04('0xc0')])continue;if(_0x2134bc[_0xea04('0x10b')]!=_0x4ac6a3)continue;if(!Gt(_0x2134bc,_0x1b906c))continue;const _0x580318=_0x2134bc['getFirstRange']();if(_0x580318[_0xea04('0x117')](_0x1adc8a,!0x0))return null;_0x4e4d69=_0x4e4d69[_0xea04('0x127')](_0x580318[_0xea04('0xbd')])?_0x4e4d69:_0x580318['start'],_0x26690a=_0x26690a[_0xea04('0x9b')](_0x580318[_0xea04('0x5e')])?_0x26690a:_0x580318[_0xea04('0x5e')],_0x505a6a?_0x580318[_0xea04('0xbd')][_0xea04('0x127')](_0x505a6a[_0xea04('0xda')]()[_0xea04('0xbd')])?(_0x505a6a['removeMarkers'](),_0x505a6a=_0x2134bc):_0x2134bc['removeMarkers']():_0x505a6a=_0x2134bc;}const _0x36b95a=this[_0xea04('0xac')][_0xea04('0x46')](_0x4e4d69,_0x26690a);if(_0x505a6a)this[_0xea04('0x99')](_0x505a6a,_0x36b95a);else{const _0x7ce292=_0x5973ad(),_0x2268d9=_0x4b63e8['id'];this['_setSuggestionData']({'id':_0x7ce292,'type':_0xea04('0x136')+_0x4ac6a3,'data':_0xbffeca,'createdAt':new Date(),'authorId':_0x2268d9,'attributes':_0x1b906c}),this[_0xea04('0x21')](_0xea04('0x136')+_0x4ac6a3,_0x7ce292,_0x2268d9,_0x36b95a);}}return null;}['markBlockFormat'](_0x4bb850,_0x4bcb6b,_0x4f407a=[],_0xe95bc7=null,_0x237de6={}){_0x4bcb6b[_0xea04('0xbc')]||(_0x4bcb6b[_0xea04('0xbc')]=_0x4bcb6b['commandName']),_0x4bcb6b['multipleBlocks']=_0x4bb850['is'](_0xea04('0x175')),_0xe95bc7=_0xe95bc7||Rt(_0x4bcb6b);const _0x134b18=_0x4f407a[_0xea04('0xe8')](_0x17f09a=>Ut(_0x17f09a,this['_model'])),_0x37850d=_0x4bb850['is'](_0xea04('0x175'))?_0x4bb850:Ut(_0x4bb850,this['_model']);if(_0xea04('0x5a')===this[_0xea04('0x92')]){const _0xe13d74=this[_0xea04('0x4c')]['getSuggestionCallback']('formatBlock',_0xe95bc7,_0xea04('0xea'));return this[_0xea04('0x149')](()=>_0xe13d74([_0x37850d],_0x4bcb6b,_0x237de6)),null;}_0x134b18[_0xea04('0x9')](_0x37850d);let _0x12cb79=!0x0;for(const _0x2cb98a of _0x134b18)if(!this[_0xea04('0x144')](_0x2cb98a)){_0x12cb79=!0x1;break;}if(_0x12cb79&&_0xea04('0x12d')!==this[_0xea04('0x92')]){const _0x175b1e=this[_0xea04('0x4c')][_0xea04('0x5f')](_0xea04('0x4e'),_0xe95bc7,_0xea04('0xea'));return this[_0xea04('0x149')](()=>_0x175b1e([_0x37850d],_0x4bcb6b,_0x237de6)),null;}let _0x290809=null,_0x866bd7=_0x37850d[_0xea04('0xbd')],_0x255bd2=_0x37850d[_0xea04('0x5e')];for(const {suggestion:_0x303684,meta:_0x97a274}of this['_findSuggestions'](_0x37850d,'formatBlock')){if(!_0x97a274['isOwn'])continue;if(_0x97a274[_0xea04('0x93')]||_0x97a274[_0xea04('0x125')]||_0x97a274[_0xea04('0x7c')])continue;if(_0x303684['data'][_0xea04('0xbc')]!=_0x4bcb6b['formatGroupId'])continue;if(!Gt(_0x303684,_0x237de6))continue;const _0x5b167a=_0x303684[_0xea04('0xda')]();if(_0x303684['subType']==_0xe95bc7){if(_0x5b167a[_0xea04('0x117')](_0x37850d,!0x0))return null;_0x866bd7=_0x866bd7['isBefore'](_0x5b167a[_0xea04('0xbd')])?_0x866bd7:_0x5b167a[_0xea04('0xbd')],_0x255bd2=_0x255bd2[_0xea04('0x9b')](_0x5b167a[_0xea04('0x5e')])?_0x255bd2:_0x5b167a[_0xea04('0x5e')],_0x290809?_0x5b167a[_0xea04('0xbd')][_0xea04('0x127')](_0x290809[_0xea04('0xda')]()[_0xea04('0xbd')])?(_0x290809[_0xea04('0x1a')](),_0x290809=_0x303684):_0x303684[_0xea04('0x1a')]():_0x290809=_0x303684;}else{const _0x1ddfcd=_0x37850d[_0xea04('0x115')](_0x5b167a);this[_0xea04('0x107')](_0x303684,_0x1ddfcd);}}const _0x58eb49=this[_0xea04('0x17d')][_0xea04('0x165')][_0xea04('0xb1')](_0xea04('0x42'))['me'],_0x317ead=_0x5973ad(),_0x29afc5=_0x58eb49['id'];if(_0x290809)return this[_0xea04('0x99')](_0x290809,this[_0xea04('0xac')][_0xea04('0x46')](_0x866bd7,_0x255bd2)),_0x290809;{const _0x473e34=this[_0xea04('0xf3')]({'id':_0x317ead,'type':'formatBlock:'+_0xe95bc7,'data':_0x4bcb6b,'createdAt':new Date(),'authorId':_0x29afc5,'attributes':_0x237de6});return this['_addSuggestionMarker'](_0xea04('0xcb')+_0xe95bc7,_0x317ead,_0x29afc5,this[_0xea04('0xac')][_0xea04('0x46')](_0x866bd7,_0x255bd2)),_0x473e34;}}[_0xea04('0x83')](_0x15a650,_0x1cbab1,_0x3d7a46=[],_0x4abec8=null,_0x421ad7={}){_0x1cbab1[_0xea04('0xbc')]||(_0x1cbab1['formatGroupId']=_0x1cbab1['commandName']);const _0x32f907=_0x15a650[0x0];_0x1cbab1[_0xea04('0x3d')]=_0x32f907['is'](_0xea04('0x175')),_0x4abec8=_0x4abec8||Rt(_0x1cbab1);const _0xf3c0bc=_0x3d7a46[_0xea04('0xe8')](_0x186b0b=>Ut(_0x186b0b,this[_0xea04('0xac')])),_0x445511=_0x32f907['is'](_0xea04('0x175'))?_0x15a650:_0x15a650[_0xea04('0xe8')](_0x447d46=>Ut(_0x447d46,this[_0xea04('0xac')]));if('never'===this[_0xea04('0x92')]){const _0x33cdf0=this[_0xea04('0x4c')]['getSuggestionCallback']('formatBlock',_0x4abec8,_0xea04('0xea'));return this[_0xea04('0x149')](()=>_0x33cdf0(_0x445511,_0x1cbab1,_0x421ad7)),null;}_0xf3c0bc[_0xea04('0x9')](..._0x445511);let _0x235b53=!0x0;for(const _0x120a41 of _0xf3c0bc)if(!this[_0xea04('0x144')](_0x120a41)){_0x235b53=!0x1;break;}if(_0x235b53&&_0xea04('0x12d')!==this[_0xea04('0x92')]){const _0x315fe5=this['_suggestionFactory'][_0xea04('0x5f')](_0xea04('0x4e'),_0x4abec8,_0xea04('0xea'));return this[_0xea04('0x149')](()=>_0x315fe5(_0x445511,_0x1cbab1,_0x421ad7)),null;}const _0x5c3e5d=this[_0xea04('0x17d')][_0xea04('0x165')][_0xea04('0xb1')]('Users')['me'];for(const _0x32a687 of this[_0xea04('0x6a')]()){if(_0x32a687[_0xea04('0x15f')]['id']!=_0x5c3e5d['id'])continue;if(_0xea04('0x4e')!=_0x32a687[_0xea04('0xb9')]||_0x32a687[_0xea04('0xb0')][_0xea04('0xbc')]!=_0x1cbab1['formatGroupId'])continue;if(!Gt(_0x32a687,_0x421ad7))continue;const _0x29f21c=_0x32a687[_0xea04('0x10b')]==_0x4abec8;for(let _0x5471bd=0x0;_0x5471bd<_0x445511[_0xea04('0xa8')];_0x5471bd++){const _0x325dea=_0x445511[_0x5471bd];for(const _0x3314e2 of _0x32a687[_0xea04('0xcc')]()){const _0x1ed30a=_0x3314e2[_0xea04('0x13b')]();if(_0x325dea[_0xea04('0x3a')](_0x1ed30a)){_0x29f21c?(_0x445511[_0xea04('0x8a')](_0x5471bd,0x1),_0x5471bd--):_0x32a687[_0xea04('0x73')](_0x3314e2[_0xea04('0x22')]);break;}}}}if(0x0==_0x445511[_0xea04('0xa8')])return null;const _0x242169=this['_suggestionFactory'][_0xea04('0x5f')](_0xea04('0x4e'),_0x4abec8,'join');for(const _0x2298e5 of this[_0xea04('0x6a')]())if(_0x2298e5[_0xea04('0x15f')]['id']==_0x5c3e5d['id']&&_0xea04('0x4e')==_0x2298e5[_0xea04('0xb9')]&&_0x2298e5[_0xea04('0xb0')][_0xea04('0xbc')]==_0x1cbab1[_0xea04('0xbc')]&&_0x2298e5['subType']==_0x4abec8&&Gt(_0x2298e5,_0x421ad7)&&(_0x242169(_0x2298e5[_0xea04('0x97')](),_0x445511)||_0x242169(_0x445511,_0x2298e5[_0xea04('0x97')]()))){for(const _0x1d2955 of _0x445511)_0x2298e5[_0xea04('0x16c')](_0x1d2955);return _0x2298e5;}const _0x49e24a=_0x5973ad(),_0x66a3b4=_0x5c3e5d['id'],_0x2bae0c=_0xea04('0xcb')+_0x4abec8,_0x2f74cc=this[_0xea04('0xf3')]({'id':_0x49e24a,'type':_0x2bae0c,'data':_0x1cbab1,'createdAt':new Date(),'authorId':_0x66a3b4,'attributes':_0x421ad7});for(const _0x11fc46 of _0x445511)this[_0xea04('0x21')](_0x2bae0c,_0x49e24a,_0x66a3b4,_0x11fc46,_0x5b9956[_0xea04('0x72')]());return _0x2f74cc;}['markDeletion'](_0x10e9ec,_0x154440=null,_0x45a20e={}){if(_0x10e9ec[_0xea04('0xdf')])return null;const _0x30ff02=this[_0xea04('0x17d')][_0xea04('0x165')][_0xea04('0xb1')]('Users')['me'],_0x5c6987=new _0x567f7b(_0x10e9ec['start'],_0x10e9ec[_0xea04('0x5e')]);for(const {suggestion:_0x481de3,meta:_0x19f961}of this[_0xea04('0x5b')](_0x5c6987,'insertion'))if(_0x19f961[_0xea04('0xc0')]&&!_0x19f961['isNextTo']){if(_0x481de3[_0xea04('0xa1')]){const _0x579ec4=_0x481de3[_0xea04('0x97')]()[_0xea04('0x88')](_0x5ba148=>'$graveyard'!=_0x5ba148[_0xea04('0x164')][_0xea04('0x113')]);_0x579ec4[_0xea04('0x141')](_0x3bca55=>_0x5c6987[_0xea04('0x117')](_0x3bca55,!0x0))&&_0x481de3['discard']();if(_0x579ec4[_0xea04('0x2c')](_0x2b794a=>_0x2b794a[_0xea04('0x117')](_0x5c6987,!0x0))){const _0x527131=this['_suggestionFactory'][_0xea04('0x5f')]('deletion',_0x154440,_0xea04('0xea'));return this[_0xea04('0x149')](()=>_0x527131([_0x5c6987],null,_0x45a20e)),null;}}else{const _0x6e963=_0x5c6987['getIntersection'](_0x481de3['getFirstRange']());null!==_0x6e963&&_0x481de3['_onDiscard']([_0x6e963],null,_0x45a20e);}}if(_0x5c6987['detach'](),_0x5c6987['isCollapsed']||_0xea04('0x82')==_0x5c6987[_0xea04('0x164')][_0xea04('0x113')])return null;let _0x574b2d=null,_0x128b55=_0x5c6987['start'],_0x79bb21=_0x5c6987[_0xea04('0x5e')];const _0x1c2adc=this[_0xea04('0x5b')](_0x5c6987,_0xea04('0x56'));for(const {suggestion:_0x3f0e89,meta:_0x5f1bff}of _0x1c2adc){const _0x3bae57=this[_0xea04('0xac')][_0xea04('0x46')](_0x128b55,_0x79bb21);if(_0x5f1bff[_0xea04('0xc0')]&&(this[_0xea04('0xe')]||!_0x5f1bff[_0xea04('0x125')]&&!_0x5f1bff[_0xea04('0x7c')])){if(_0x3f0e89[_0xea04('0xa1')]){if(!Gt(_0x3f0e89,_0x45a20e))continue;let _0x337bc7=!0x0;for(const _0x106eb8 of _0x3f0e89[_0xea04('0x97')]()){if(_0x106eb8[_0xea04('0x117')](_0x3bae57,!0x0))return _0x3f0e89;_0x3bae57[_0xea04('0x117')](_0x106eb8)||(_0x337bc7=!0x1);}_0x337bc7&&_0x3f0e89['discard']();}else{const _0x3ea134=_0x3f0e89[_0xea04('0xda')]();if(_0x3ea134[_0xea04('0x117')](_0x3bae57,!0x0))return _0x3f0e89;if(!Gt(_0x3f0e89,_0x45a20e)){_0x3bae57[_0xea04('0x117')](_0x3ea134)?_0x3f0e89[_0xea04('0x1a')]():_0x3ea134['containsPosition'](_0x128b55)?_0x128b55=_0x3ea134[_0xea04('0x5e')]:_0x3ea134[_0xea04('0x64')](_0x79bb21)&&(_0x79bb21=_0x3ea134[_0xea04('0xbd')]);continue;}_0x128b55=_0x128b55['isBefore'](_0x3ea134[_0xea04('0xbd')])?_0x128b55:_0x3ea134['start'],_0x79bb21=_0x79bb21['isAfter'](_0x3ea134[_0xea04('0x5e')])?_0x79bb21:_0x3ea134[_0xea04('0x5e')],_0x45a20e=Object[_0xea04('0x153')]({},_0x3f0e89[_0xea04('0x146')]),_0x574b2d?_0x3ea134[_0xea04('0xbd')][_0xea04('0x127')](_0x574b2d['getFirstRange']()['start'])?(_0x574b2d['removeMarkers'](),_0x574b2d=_0x3f0e89):_0x3f0e89[_0xea04('0x1a')]():_0x574b2d=_0x3f0e89;}}}if(_0x574b2d)return this[_0xea04('0x99')](_0x574b2d,this[_0xea04('0xac')][_0xea04('0x46')](_0x128b55,_0x79bb21)),_0x574b2d;{const _0x1325fd=_0x5973ad(),_0x15abb9=this[_0xea04('0xac')][_0xea04('0x46')](_0x128b55,_0x79bb21),_0x16a387=_0x30ff02['id'],_0x5199cd=_0x154440?_0xea04('0x34')+_0x154440:_0xea04('0x56'),_0x1801a2=this[_0xea04('0xf3')]({'id':_0x1325fd,'type':_0x5199cd,'createdAt':new Date(),'authorId':_0x16a387,'attributes':_0x45a20e});return this['_addSuggestionMarker'](_0x5199cd,_0x1325fd,_0x16a387,_0x15abb9),_0x1801a2;}}[_0xea04('0x2f')](_0x1516c6,_0x23f2f2=_0xea04('0x69'),_0x231b91={}){const _0x36d851=this['editor'][_0xea04('0x165')][_0xea04('0xb1')](_0xea04('0x42'))['me'],_0xaf2790=_0x1516c6['map'](_0x234e3a=>new _0x567f7b(_0x234e3a[_0xea04('0xbd')],_0x234e3a['end'])),_0x15c0fd=new Set();for(const {suggestion:_0x1e26a7,meta:_0x495806}of this[_0xea04('0x5b')](_0xaf2790,_0xea04('0x9a')))_0x495806[_0xea04('0xc0')]&&!_0x495806[_0xea04('0x93')]&&_0x15c0fd[_0xea04('0x8e')](_0x1e26a7);for(const _0x211e84 of _0x15c0fd)if(_0x211e84[_0xea04('0xa1')]){const _0x38f09d=_0x211e84[_0xea04('0x97')]();(!_0x211e84[_0xea04('0x146')]||!_0x211e84[_0xea04('0x146')][_0xea04('0xd4')])&&(_0x38f09d['every'](_0xf6ba3d=>_0xaf2790[_0xea04('0x2c')](_0x4e0ff8=>_0x4e0ff8[_0xea04('0x117')](_0xf6ba3d,!0x0)))&&_0x211e84[_0xea04('0x109')]());if(_0xaf2790['every'](_0x276feb=>_0x38f09d[_0xea04('0x2c')](_0x12d450=>_0x12d450[_0xea04('0x117')](_0x276feb,!0x0)))){const _0xce137=this[_0xea04('0x4c')][_0xea04('0x5f')]('deletion',_0x23f2f2,_0xea04('0xea'));return this['forceDefaultExecution'](()=>_0xce137(_0x1516c6,null,_0x231b91)),null;}}else{const _0x36ec4e=_0x211e84[_0xea04('0xda')]();_0xaf2790['some'](_0x4c2867=>_0x4c2867[_0xea04('0x117')](_0x36ec4e,!0x0))&&_0x211e84[_0xea04('0x109')]();if(_0xaf2790[_0xea04('0x141')](_0x43b3d4=>_0x36ec4e[_0xea04('0x117')](_0x43b3d4,!0x0))){const _0x5184e8=this[_0xea04('0x4c')][_0xea04('0x5f')](_0xea04('0x56'),_0x23f2f2,'accept');return this[_0xea04('0x149')](()=>_0x5184e8(_0xaf2790,null,_0x231b91)),null;}}const _0x1becb6=this['_suggestionFactory'][_0xea04('0x5f')](_0xea04('0x56'),_0x23f2f2,'join');let _0x3bffcd=null;for(const _0x2417ef of this[_0xea04('0x6a')]())if(_0x2417ef[_0xea04('0x15f')]['id']==_0x36d851['id']&&_0x2417ef[_0xea04('0x124')]&&_0xea04('0x56')==_0x2417ef[_0xea04('0xb9')]&&_0x2417ef[_0xea04('0x10b')]==_0x23f2f2&&Gt(_0x2417ef,_0x231b91)&&(_0x1becb6(_0x2417ef['getRanges'](),_0xaf2790)||_0x1becb6(_0xaf2790,_0x2417ef[_0xea04('0x97')]()))){if(_0x3bffcd){if(_0x2417ef[_0xea04('0x2b')]&&_0x2417ef[_0xea04('0x2b')][_0xea04('0xa8')])continue;for(const _0x1a467c of _0x2417ef[_0xea04('0x97')]())_0x3bffcd[_0xea04('0x137')](_0x1a467c)||_0x3bffcd[_0xea04('0x16c')](_0x1a467c);_0x2417ef[_0xea04('0x1a')]();}else{_0x3bffcd=_0x2417ef;for(const _0x14ae58 of _0xaf2790)_0x2417ef[_0xea04('0x137')](_0x14ae58)||_0x2417ef[_0xea04('0x16c')](_0x14ae58);}}if(_0x3bffcd)return _0x3bffcd;_0x15c0fd[_0xea04('0x112')]();for(const {suggestion:_0x1fec3a,meta:_0x2f9e7d}of this[_0xea04('0x5b')](_0xaf2790,'deletion'))_0x2f9e7d[_0xea04('0xc0')]&&(this['_mergeNestedSuggestions']||!_0x2f9e7d['containsRangeInObject']&&!_0x2f9e7d['isInsideObject'])&&Gt(_0x1fec3a,_0x231b91)&&_0x15c0fd[_0xea04('0x8e')](_0x1fec3a);for(const _0x4ba78f of _0x15c0fd){const _0x1d9b5c=_0x4ba78f['getRanges']();if(!_0x231b91||!_0x231b91['skipNestingCheck']){if(_0xaf2790['every'](_0x5ba589=>_0x1d9b5c[_0xea04('0x2c')](_0x478e96=>_0x478e96[_0xea04('0x117')](_0x5ba589,!0x0))))return _0x4ba78f;}(!_0x4ba78f[_0xea04('0x146')]||!_0x4ba78f[_0xea04('0x146')]['skipNestingCheck'])&&(_0x1d9b5c[_0xea04('0x141')](_0x1993e4=>_0xaf2790[_0xea04('0x2c')](_0x4b7a87=>_0x4b7a87['containsRange'](_0x1993e4,!0x0)))&&_0x4ba78f['discard']());}const _0xc92b85=_0x5973ad(),_0x51c2b2=_0x36d851['id'],_0xf1ac96=_0xea04('0x34')+_0x23f2f2,_0x51d1a3=this[_0xea04('0xf3')]({'id':_0xc92b85,'type':_0xf1ac96,'createdAt':new Date(),'authorId':_0x51c2b2,'attributes':_0x231b91});for(const _0x5bc8a1 of _0xaf2790)_0x5bc8a1[_0xea04('0x3f')](),_0x5bc8a1[_0xea04('0xdf')]||_0xea04('0x82')==_0x5bc8a1['root'][_0xea04('0x113')]||this[_0xea04('0x21')](_0xf1ac96,_0xc92b85,_0x51c2b2,_0x5bc8a1,_0x5b9956[_0xea04('0x72')]());return _0x51d1a3;}[_0xea04('0x14d')](_0x3af865,_0x1586d4,_0x1347cd,_0x55cb70,_0x220645){if(_0x3af865[_0xea04('0xdf')])return[];if(_0xea04('0x5a')===this[_0xea04('0x92')])return[];const _0x96ddf0=this[_0xea04('0x17d')][_0xea04('0x165')][_0xea04('0xb1')](_0xea04('0x42'))['me']['id'],_0x5020b1=Array[_0xea04('0xff')](this[_0xea04('0xf0')][_0xea04('0x128')]())['filter'](_0x1672b8=>_0xea04('0x168')==_0x1672b8[_0xea04('0xb9')]&&_0x1672b8['data']['key']==_0x1586d4&&_0x1672b8[_0xea04('0x137')](_0x3af865));if(_0xea04('0xd0')===this['_trackFormatChanges']){const _0x136f0e=this[_0xea04('0x5b')](_0x3af865,_0xea04('0x9a'))[_0xea04('0x88')](({meta:_0x140a22})=>_0x140a22[_0xea04('0xc0')]&&!_0x140a22['isInsideObject']&&!_0x140a22['isNextTo'])[_0xea04('0xe8')](({suggestion:_0x374a9b})=>_0x374a9b);_0x5020b1[_0xea04('0x177')](..._0x136f0e);}const _0x555012=new Map([[_0x3af865,_0x1347cd]]);for(const _0x2795ad of _0x5020b1){const _0x55af2f='attribute'==_0x2795ad[_0xea04('0xb9')]?_0x2795ad[_0xea04('0xb0')][_0xea04('0x75')]:void 0x0,_0x4a9ccb=_0x2795ad[_0xea04('0xda')](),_0xd79777=Array['from'](_0x555012[_0xea04('0x15')]())[_0xea04('0x23')](_0x207801=>_0x207801[_0xea04('0x123')](_0x4a9ccb));if(!_0xd79777)continue;const _0x5eb70a=_0xd79777['getDifference'](_0x4a9ccb);this[_0xea04('0x54')](_0x1586d4)&&_0xea04('0x9a')==_0x2795ad[_0xea04('0xb9')]&&0x0!=_0x5eb70a['length']||(_0x555012['delete'](_0xd79777),_0x5eb70a[_0xea04('0x15b')](_0x7bd8ae=>{_0x555012[_0xea04('0x133')](_0x7bd8ae,_0x1347cd);}),_0xea04('0x9a')!=_0x2795ad[_0xea04('0xb9')]&&_0x55af2f!=_0x55cb70&&_0x555012[_0xea04('0x133')](_0xd79777[_0xea04('0x115')](_0x4a9ccb),_0x55af2f));}const _0x347186=[];for(const [_0x36b059,_0x5e18b1]of _0x555012){const _0x24f707=_0x5973ad(),_0x4a1e2a={'key':_0x1586d4,'oldValue':_0x5e18b1,'newValue':_0x55cb70};_0x1586d4['length']>0x25&&console[_0xea04('0xed')](_0xea04('0xf1'),{'key':_0x1586d4});const _0x508209=(_0xea04('0xf9')+(_0x1586d4+'|'+Rt({'newValue':_0x55cb70})))[_0xea04('0x87')](0x0,0x3c),_0x3234e1=this[_0xea04('0xf3')]({'id':_0x24f707,'type':_0x508209,'data':_0x4a1e2a,'createdAt':new Date(),'authorId':_0x96ddf0,'attributes':_0x220645});_0x347186[_0xea04('0x9')](_0x3234e1),this[_0xea04('0x21')](_0x508209,_0x24f707,_0x96ddf0,_0x36b059);}return _0x347186;}['_registerBlockAttribute'](_0x3b750a){this[_0xea04('0xb6')][_0xea04('0x8e')](_0x3b750a);}[_0xea04('0x20')](_0x366b1d){this['_inlineAttributeKeys'][_0xea04('0x8e')](_0x366b1d);}[_0xea04('0x104')](_0x452d47,_0x3e6ca0=[],_0x21000a=[]){this[_0xea04('0x98')](_0x452d47,(_0x51713f,..._0x9f8c88)=>{this[_0xea04('0x40')](()=>{_0x51713f(..._0x9f8c88);});});for(const _0x33bf02 of _0x3e6ca0)this['_registerInlineAttribute'](_0x33bf02);for(const _0xf8380f of _0x21000a)this[_0xea04('0x94')](_0xf8380f);}[_0xea04('0x99')](_0x10dc98,_0x1ec16c){const _0x174308=_0x10dc98[_0xea04('0xfa')]();this[_0xea04('0xac')][_0xea04('0x17f')](_0x535257=>{_0x535257['updateMarker'](_0x174308,{'range':_0x1ec16c});});}['_addThreadToSuggestion'](_0x4a4800){const _0xf0b48c=_0x4a4800['id'],_0x3bff90=this[_0xea04('0x17d')][_0xea04('0xa7')][_0xea04('0xb1')](_0xea04('0xe7'));this[_0xea04('0x154')]['hasCommentThread'](_0xf0b48c)||this[_0xea04('0x154')][_0xea04('0x68')]({'channelId':_0x3bff90,'threadId':_0xf0b48c,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x22c50a=this[_0xea04('0x154')][_0xea04('0x4d')](_0xf0b48c);_0x22c50a[_0xea04('0x10')](_0xea04('0x114')),_0x22c50a[_0xea04('0x114')]=!0x1,_0x4a4800[_0xea04('0x2b')]=_0x22c50a;}[_0xea04('0x2e')](_0x5c838a,_0x414846,_0xe9a6c4,_0x2131e7){if(_0x5c838a['type']!=_0x414846||_0x5c838a[_0xea04('0x10b')]!=_0xe9a6c4||_0x5c838a[_0xea04('0xdb')]['id']!=_0x2131e7)throw this[_0xea04('0x17d')][_0xea04('0x5')]('track-changes-suggestion-data-mismatch'),new _0x588824(_0xea04('0x65'),this);}[_0xea04('0x107')](_0x5b84ec,_0x53c48d){const _0x1099d2=_0x5b84ec['getFirstRange']();if(_0x53c48d[_0xea04('0x3a')](_0x1099d2))_0x5b84ec[_0xea04('0x1a')]();else{if(_0x1099d2[_0xea04('0x117')](_0x53c48d)){const _0x33bd26=this['_model'][_0xea04('0x11c')](_0x53c48d[_0xea04('0xbd')][_0xea04('0x53')],_0xea04('0x5e'));this[_0xea04('0x99')](_0x5b84ec,this[_0xea04('0xac')][_0xea04('0x46')](_0x1099d2[_0xea04('0xbd')],_0x33bd26));const _0x1499d1=_0x5973ad(),_0x1646e8=_0x5b84ec[_0xea04('0xdb')]['id'],_0x499d78=_0x5b84ec['type']+':'+_0x5b84ec[_0xea04('0x10b')];this[_0xea04('0xf3')]({'id':_0x1499d1,'type':_0x499d78,'createdAt':new Date(),'authorId':_0x1646e8,'data':_0x5b84ec[_0xea04('0xb0')],'attributes':_0x5b84ec[_0xea04('0x146')]});const _0x39d907=this[_0xea04('0xac')][_0xea04('0x11c')](_0x53c48d[_0xea04('0x5e')]['parent'],_0xea04('0xa2')),_0x61193=this['_model']['createRange'](_0x39d907,_0x1099d2[_0xea04('0x5e')]);this[_0xea04('0x21')](_0x499d78,_0x1499d1,_0x1646e8,_0x61193);}else{if(_0x1099d2['containsPosition'](_0x53c48d['start'])){const _0xa7c79=this[_0xea04('0xac')][_0xea04('0x11c')](_0x53c48d[_0xea04('0xbd')][_0xea04('0x53')],'end');this[_0xea04('0x99')](_0x5b84ec,this[_0xea04('0xac')][_0xea04('0x46')](_0x1099d2[_0xea04('0xbd')],_0xa7c79));}else{const _0xc9f3b=this[_0xea04('0xac')][_0xea04('0x11c')](_0x53c48d[_0xea04('0x5e')]['parent'],'after');this['_setSuggestionRange'](_0x5b84ec,this[_0xea04('0xac')][_0xea04('0x46')](_0xc9f3b,_0x1099d2[_0xea04('0x5e')]));}}}}['_rangeIsInLocalUserInsertion'](_0x3ec3be){for(const {suggestion:_0x3ceaf6,meta:_0x7586e5}of this[_0xea04('0x5b')](_0x3ec3be,'insertion')){if(!_0x7586e5['isOwn'])continue;const _0xdac560=_0x3ceaf6[_0xea04('0x97')]();for(const _0x5b28eb of _0xdac560)if(!_0x3ec3be[_0xea04('0x31')](_0x5b28eb)[_0xea04('0xa8')])return!0x0;}return!0x1;}[_0xea04('0x132')](_0x47a0e1){const _0x2be975=this[_0xea04('0x17d')][_0xea04('0x165')][_0xea04('0xb1')](_0xea04('0x42'))[_0xea04('0xcd')](_0x47a0e1);if(!_0x2be975)throw new _0x588824(_0xea04('0x130'),this);return _0x2be975;}['_getExternalAuthor'](_0xf5cefa){const _0x3488ef=this[_0xea04('0x17d')][_0xea04('0x165')][_0xea04('0xb1')]('Users'),_0xc8f729=_0x5a38d7(_0xea04('0xa4')+_0xf5cefa),_0x4f37fb=_0x3488ef['getUser'](_0xc8f729);return _0x4f37fb||_0x3488ef[_0xea04('0x176')]({'id':_0xc8f729,'name':_0xf5cefa});}['_createSuggestion'](_0x214138,_0x27e47b,_0x464607,_0x4ac5aa,_0x30c73a){const _0x16aafd=this[_0xea04('0x132')](_0x4ac5aa),_0x368412=this['_suggestionFactory'][_0xea04('0xa0')](_0x214138,_0x27e47b,_0x464607,_0x16aafd,_0x30c73a,_0x58e5e1=>this['_updateSuggestionData'](_0x464607,{'attributes':_0x58e5e1}));return this[_0xea04('0x13d')](_0x368412,_0xea04('0xea'),()=>{this['_updateSuggestionData'](_0x464607,{'state':_0xea04('0x6f')});},{'priority':_0xea04('0x86')}),this['listenTo'](_0x368412,'discard',()=>{this[_0xea04('0xa9')](_0x464607,{'state':_0xea04('0x48')});},{'priority':_0xea04('0x86')}),this[_0xea04('0xf0')][_0xea04('0x133')](_0x464607,_0x368412),this[_0xea04('0x10e')][_0xea04('0x133')](_0x368412,'notReady'),_0x368412;}[_0xea04('0x79')](_0xcb6125){const _0x484028=_0xcb6125[_0xea04('0x14f')](':');return{'group':_0x484028[0x0],'type':_0x484028[0x1],'subType':_0x484028['length']>=0x5?_0x484028[0x2]:null,'id':_0x484028['length']<0x5?_0x484028[0x2]:_0x484028[0x3],'authorId':_0x484028[_0xea04('0xa8')]<0x5?_0x484028[0x3]:_0x484028[0x4],'markerCount':0x6==_0x484028[_0xea04('0xa8')]?_0x484028[0x5]:null};}[_0xea04('0x44')](_0x521794,_0x2bdacc,_0x427de8){const _0x30a62e=_0x521794[_0xea04('0xda')](),_0x1badf9=_0x30a62e[_0xea04('0xbd')],_0x1b400f=_0x30a62e['end'];this['_setSuggestionRange'](_0x521794,this[_0xea04('0xac')][_0xea04('0x46')](_0x1badf9,_0x2bdacc));const _0x11ba2b=_0x5973ad(),_0x7ac4fa=_0x521794[_0xea04('0xdb')]['id'],_0x5310ae=_0x521794[_0xea04('0xb9')]+(_0x521794[_0xea04('0x10b')]?':'+_0x521794['subType']:'');this[_0xea04('0xf3')]({'id':_0x11ba2b,'type':_0x5310ae,'createdAt':new Date(),'authorId':_0x7ac4fa,'originalSuggestionId':_0x521794['id'],'attributes':_0x521794['attributes'],'data':_0x521794[_0xea04('0xb0')]});const _0x2d479e=Pt(_0x521794);(_0xea04('0x4e')==_0x521794['type']||_0x2d479e&&this[_0xea04('0x54')](_0x2d479e))&&(_0x427de8=this[_0xea04('0xac')][_0xea04('0x3e')](_0x427de8[_0xea04('0x91')])),this[_0xea04('0x21')](_0x5310ae,_0x11ba2b,_0x7ac4fa,this['_model'][_0xea04('0x46')](_0x427de8,_0x1b400f));}[_0xea04('0x5b')](_0x5055ad,_0x211cfa=null){const _0x4ef0d6=[],_0x90cc42=this[_0xea04('0x17d')][_0xea04('0x165')]['get']('Users')['me'];Array[_0xea04('0x13a')](_0x5055ad)||(_0x5055ad=[_0x5055ad]);for(const _0x27fd8e of this[_0xea04('0x6a')]()){if(!_0x27fd8e['isInContent'])continue;if(_0x211cfa&&_0x27fd8e[_0xea04('0xb9')]!=_0x211cfa)continue;let _0x3b52f7=!0x1;for(const _0x14f395 of _0x27fd8e[_0xea04('0x97')]()){for(const _0xe05461 of _0x5055ad){const _0x20877c=_0xe05461['start']['isEqual'](_0x14f395['end'])||_0xe05461[_0xea04('0x5e')][_0xea04('0x3a')](_0x14f395[_0xea04('0xbd')]);if(_0x20877c||_0xe05461[_0xea04('0x115')](_0x14f395)){const _0x4f155a=_0xe05461['containsRange'](_0x14f395)&&Tt(this['_model'][_0xea04('0xc9')],_0x14f395['start'],_0xe05461),_0x599705=_0x14f395[_0xea04('0x117')](_0xe05461)&&Tt(this[_0xea04('0xac')]['schema'],_0xe05461[_0xea04('0xbd')],_0x14f395);_0x4ef0d6[_0xea04('0x9')]({'suggestion':_0x27fd8e,'meta':{'isOwn':_0x90cc42==_0x27fd8e[_0xea04('0x15f')],'isNextTo':_0x20877c,'isInsideObject':_0x4f155a,'containsRangeInObject':_0x599705}}),_0x3b52f7=!0x0;break;}}if(_0x3b52f7)break;}}return _0x4ef0d6;}[_0xea04('0x21')](_0xd7ae7e,_0x3c7451,_0x45959f,_0x51100e,_0x4486c4){this[_0xea04('0xac')]['change'](_0x44d256=>{let _0x564f3e=_0xea04('0x2a')+_0xd7ae7e+':'+_0x3c7451+':'+_0x45959f;_0x4486c4&&(_0x564f3e=_0x564f3e+':'+_0x4486c4),_0x44d256[_0xea04('0x51')](_0x564f3e,{'range':_0x51100e,'usingOperation':!0x0,'affectsData':!0x0});});}[_0xea04('0x24')](_0x47a080){const _0x6ff786=_0x47a080[_0xea04('0x1')],_0x102757=_0x47a080[_0xea04('0xf8')];_0x47a080[_0xea04('0x1')]=null,_0x47a080[_0xea04('0xf8')]=null,null!=_0x6ff786&&(_0x6ff786[_0xea04('0xf8')]=_0x102757),null!=_0x102757&&(_0x102757[_0xea04('0x1')]=_0x6ff786),_0xea04('0xde')==this[_0xea04('0x10e')][_0xea04('0xb1')](_0x47a080)&&(this['_suggestionState'][_0xea04('0x133')](_0x47a080,'removed'),this[_0xea04('0xf2')](_0xea04('0x41'),_0x47a080,_0x6ff786,_0x102757));}[_0xea04('0xf3')](_0x24cafe){const _0x49903e=_0x24cafe['id'],_0x29395d=this[_0xea04('0x52')](_0x24cafe);if(this['_adapter']&&this[_0xea04('0x159')][_0xea04('0x13f')]){const _0x153b9c=this[_0xea04('0x17d')][_0xea04('0x165')]['get']('PendingActions'),_0x2d87a2=_0x29395d['hasComments'],_0x19e032=_0x29395d[_0xea04('0x10b')]?_0x29395d['type']+':'+_0x29395d[_0xea04('0x10b')]:_0x29395d[_0xea04('0xb9')],_0x5d4515=this['editor'][_0xea04('0x62')],_0x354476=_0x153b9c[_0xea04('0x8e')](_0x4b9969(_0x5d4515,_0xea04('0xd8'))),_0x20f64e={'id':_0x49903e,'type':_0x19e032,'hasComments':_0x2d87a2,'data':_0x24cafe['data']||null,'originalSuggestionId':_0x24cafe[_0xea04('0x17c')]||null,'attributes':_0x29395d[_0xea04('0x146')]};this['_adapter'][_0xea04('0x13f')](_0x20f64e)[_0xea04('0x50')](_0x532b66=>{_0x29395d[_0xea04('0x110')]=!0x0,_0x153b9c['remove'](_0x354476),_0x532b66&&_0x532b66[_0xea04('0x148')]&&(this[_0xea04('0xf0')]['get'](_0x49903e)[_0xea04('0x148')]=_0x532b66[_0xea04('0x148')]);})[_0xea04('0xd7')](_0x20012a=>{throw _0x33f7d9('error-saving-suggestion-data-suggestion-discarded'),this['editor'][_0xea04('0x96')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x29395d[_0xea04('0x109')]();}),_0x29395d[_0xea04('0x16b')](),this[_0xea04('0xf0')][_0xea04('0x174')](_0x29395d['id']),this[_0xea04('0x10e')][_0xea04('0x174')](_0x29395d),_0x20012a;});}return _0x29395d;}[_0xea04('0x54')](_0x187fdd){return this['_blockAttributeKeys'][_0xea04('0x11b')](_0x187fdd);}[_0xea04('0xa9')](_0x233d59,_0x4f4b1b){const _0x426367=this['editor'][_0xea04('0x165')]['get']('PendingActions'),_0x38faef=this['getSuggestion'](_0x233d59);if(this[_0xea04('0x159')]&&this[_0xea04('0x159')][_0xea04('0x84')]){if(_0x38faef[_0xea04('0x110')]){const _0x50581e=_0x426367[_0xea04('0x8e')](_0x4b9969(this['editor'][_0xea04('0x62')],_0xea04('0xd8')));this[_0xea04('0x159')][_0xea04('0x84')](_0x233d59,_0x4f4b1b)[_0xea04('0x50')](()=>{_0x426367[_0xea04('0xc3')](_0x50581e);});}else _0x38faef['on'](_0xea04('0x173'),()=>{this[_0xea04('0xa9')](_0x233d59,_0x4f4b1b);});}}[_0xea04('0xb3')](_0x5a4622){if(!this['_adapter']||!this[_0xea04('0x159')][_0xea04('0xaf')])throw new _0x588824(_0xea04('0x14c'),this);return this[_0xea04('0x159')][_0xea04('0xaf')](_0x5a4622);}['_handleNewSuggestionMarker'](_0x31c7aa){const {id:_0xd72624,type:_0x3e3078,subType:_0x40a514,authorId:_0x49376c}=this[_0xea04('0x79')](_0x31c7aa),_0x83df1e=this[_0xea04('0xf0')][_0xea04('0xb1')](_0xd72624)||this[_0xea04('0xe4')](_0x3e3078,_0x40a514,_0xd72624,_0x49376c,{});switch(this[_0xea04('0x2e')](_0x83df1e,_0x3e3078,_0x40a514,_0x49376c),this['_suggestionState'][_0xea04('0xb1')](_0x83df1e)){case _0xea04('0x3'):this[_0xea04('0xb3')](_0xd72624)[_0xea04('0x50')](_0x23d8a9=>{let _0x302a2c=Promise['resolve']();_0x23d8a9[_0xea04('0xee')]&&(_0x302a2c=this['_commentsRepository'][_0xea04('0xbe')]({'channelId':this[_0xea04('0x17d')][_0xea04('0xa7')]['get'](_0xea04('0xe7')),'threadId':_0xd72624})),_0x302a2c[_0xea04('0x50')](()=>{this[_0xea04('0x52')](_0x23d8a9)[_0xea04('0x110')]=!0x0;});}),this[_0xea04('0x10e')]['set'](_0x83df1e,'markerReady');break;case _0xea04('0x43'):this['_updateSuggestionData'](_0xd72624,{'state':_0xea04('0xc4')});case _0xea04('0x0'):this['_suggestionState'][_0xea04('0x133')](_0x83df1e,_0xea04('0xde')),this[_0xea04('0xf2')](_0xea04('0x1b'),_0x83df1e);break;case'ready':this[_0xea04('0xf2')](_0xea04('0x30'),_0x83df1e);}return _0x83df1e[_0xea04('0x35')](_0x31c7aa),_0x83df1e;}['_refreshSuggestionsChain'](_0x5569a0){const _0x4514ef=Array[_0xea04('0xff')](_0x5569a0),_0x4f0d9d=_0x4514ef[_0xea04('0x88')](_0x19821f=>_0xea04('0x168')==_0x19821f[_0xea04('0xb9')]);this[_0xea04('0x25')](_0x4f0d9d);const _0x2e8b79=_0x4514ef[_0xea04('0x88')](_0x33c7c5=>!_0x33c7c5[_0xea04('0xa1')]&&'attribute'!=_0x33c7c5[_0xea04('0xb9')]),_0x2a3c48=this[_0xea04('0x6a')]({'skipNotAttached':!0x0})['filter'](_0x4a4c60=>!_0x4a4c60[_0xea04('0xa1')]&&_0xea04('0x168')!=_0x4a4c60['type']),_0x2fa999=_0x2a3c48[_0xea04('0x88')](_0x4499f8=>!_0x5569a0[_0xea04('0x11b')](_0x4499f8)),_0x3476dc=new Map(_0x2a3c48[_0xea04('0xe8')](_0x3cbc4e=>[_0x3cbc4e,this['_suggestionFactory'][_0xea04('0x5f')](_0x3cbc4e[_0xea04('0xb9')],_0x3cbc4e[_0xea04('0x10b')],_0xea04('0x100'))])),_0x3dabf2=new Map(_0x2a3c48[_0xea04('0xe8')](_0x5b4b46=>[_0x5b4b46,_0x5b4b46['getFirstRange']()])),_0x444b92=new Set(),_0x5b5c86=new Set();for(let _0x5acc92=0x0;_0x5acc92<_0x2e8b79[_0xea04('0xa8')];_0x5acc92++)_0x2326f2(_0x2e8b79[_0x5acc92],_0x2e8b79,_0x5acc92+0x1);for(let _0x5a34ae=0x0;_0x5a34ae<_0x2e8b79[_0xea04('0xa8')];_0x5a34ae++)_0x2326f2(_0x2e8b79[_0x5a34ae],_0x2fa999,0x0);const _0x41c78c=new Set();for(let _0x5b464c=0x0;_0x5b464c<_0x2e8b79[_0xea04('0xa8')];_0x5b464c++){const _0x4bc5b9=_0x2e8b79[_0x5b464c];!_0x5b5c86[_0xea04('0x11b')](_0x4bc5b9)&&_0x4bc5b9[_0xea04('0x1')]&&(_0x41c78c[_0xea04('0x8e')](_0x4bc5b9['previous']),_0x4bc5b9['previous'][_0xea04('0xf8')]===_0x4bc5b9&&(_0x4bc5b9['previous'][_0xea04('0xf8')]=null),_0x4bc5b9[_0xea04('0x1')]=null),!_0x444b92[_0xea04('0x11b')](_0x4bc5b9)&&_0x4bc5b9[_0xea04('0xf8')]&&(_0x41c78c[_0xea04('0x8e')](_0x4bc5b9[_0xea04('0xf8')]),_0x4bc5b9['next'][_0xea04('0x1')]===_0x4bc5b9&&(_0x4bc5b9[_0xea04('0xf8')][_0xea04('0x1')]=null),_0x4bc5b9[_0xea04('0xf8')]=null);}function _0x2326f2(_0x4c8f6d,_0x31f7e7,_0x2c255d){for(let _0x1fcdb3=_0x2c255d;_0x1fcdb3<_0x31f7e7[_0xea04('0xa8')];_0x1fcdb3++){const _0x206b3f=_0x1eca4a(_0x4c8f6d,_0x31f7e7[_0x1fcdb3]);_0x206b3f&&(_0x206b3f[0x0][_0xea04('0xf8')]=_0x206b3f[0x1],_0x206b3f[0x1][_0xea04('0x1')]=_0x206b3f[0x0],_0x444b92[_0xea04('0x8e')](_0x206b3f[0x0]),_0x5b5c86[_0xea04('0x8e')](_0x206b3f[0x1]));}}function _0x1eca4a(_0x12cf71,_0x3aaf13){if(_0x12cf71['author']['id']!==_0x3aaf13[_0xea04('0x15f')]['id'])return null;const _0x1fed2c=_0x3476dc[_0xea04('0xb1')](_0x12cf71)(_0x12cf71,_0x3aaf13,_0x3dabf2[_0xea04('0xb1')](_0x12cf71),_0x3dabf2[_0xea04('0xb1')](_0x3aaf13));if(!_0x1fed2c)return null;return _0x3476dc[_0xea04('0xb1')](_0x3aaf13)(_0x12cf71,_0x3aaf13,_0x3dabf2['get'](_0x12cf71),_0x3dabf2[_0xea04('0xb1')](_0x3aaf13))?_0x1fed2c[0x1][_0xea04('0x2b')]&&_0x1fed2c[0x1][_0xea04('0x2b')]['length']?null:_0x1fed2c:null;}_0x41c78c['size']&&this[_0xea04('0x158')](_0x41c78c);}[_0xea04('0x25')](_0x3f808c){if(0x0==_0x3f808c[_0xea04('0xa8')])return;const _0x27a928=this[_0xea04('0x6a')]({'skipNotAttached':!0x0})[_0xea04('0x88')](_0x5d1429=>_0xea04('0x168')==_0x5d1429[_0xea04('0xb9')]&&_0x5d1429[_0xea04('0x14a')]),_0x23c1f1=[],_0x503cc8=new Map();for(const _0x2ddc29 of _0x27a928){const _0xa04c48=_0x5a38d7(_0x2ddc29[_0xea04('0x146')]);_0x503cc8[_0xea04('0x11b')](_0xa04c48)||(_0x503cc8[_0xea04('0x133')](_0xa04c48,_0x23c1f1[_0xea04('0xa8')]),_0x23c1f1[_0xea04('0x9')]([]));const _0x2ca62a=_0x503cc8[_0xea04('0xb1')](_0xa04c48);_0x23c1f1[_0x2ca62a][_0xea04('0x9')](_0x2ddc29);}!function(){_0x23c1f1[_0xea04('0xe3')]((_0x5df2e5,_0xc696c5)=>{const _0x5c52ae=_0x5df2e5[0x0][_0xea04('0x148')],_0x39ebec=_0xc696c5[0x0]['createdAt'];return _0x5c52ae==_0x39ebec?_0x5df2e5[0x0]['attributes']['groupId']<_0xc696c5[0x0][_0xea04('0x146')][_0xea04('0xca')]?-0x1:0x1:_0x5c52ae<_0x39ebec?-0x1:0x1;});for(const _0x15ea33 of _0x23c1f1)_0x15ea33[_0xea04('0xe3')]((_0x438db4,_0x11e0e2)=>_0x438db4['id']<_0x11e0e2['id']?-0x1:0x1);}();for(let _0x5ec04f=0x0;_0x5ec04f<_0x23c1f1[_0xea04('0xa8')];_0x5ec04f++){if(0x0==_0x23c1f1[_0x5ec04f][_0xea04('0xa8')])continue;const _0x3bb358=[];for(let _0x48ebdf=_0x5ec04f+0x1;_0x48ebdf<_0x23c1f1[_0xea04('0xa8')];_0x48ebdf++)0x0!=_0x23c1f1[_0x48ebdf]['length']&&_0x5d131c(_0x23c1f1[_0x5ec04f],_0x23c1f1[_0x48ebdf])&&_0x3bb358[_0xea04('0x9')](_0x48ebdf);for(const _0x3ca562 of _0x3bb358)_0x23c1f1[_0x5ec04f]=_0x23c1f1[_0x5ec04f]['concat'](_0x23c1f1[_0x3ca562]),_0x23c1f1[_0x3ca562]=[];}for(const _0x5ef955 of _0x23c1f1)for(let _0xaf470e=0x0;_0xaf470e<_0x5ef955['length'];_0xaf470e++)_0x5ef955[_0xaf470e][_0xea04('0xf8')]=_0x5ef955[_0xaf470e+0x1]||null;for(const _0x4266ce of _0x23c1f1)for(let _0x3ff734=0x0;_0x3ff734<_0x4266ce['length'];_0x3ff734++)_0x4266ce[_0x3ff734]['previous']=_0x4266ce[_0x3ff734-0x1]||null;function _0x5d131c(_0x2c6183,_0x16036f){if(_0x2c6183[0x0][_0xea04('0x15f')]!==_0x16036f[0x0][_0xea04('0x15f')])return!0x1;if(!function(_0xd9810a,_0x2b95a9){if(!_0xd9810a[_0xea04('0xee')]&&!_0x2b95a9[_0xea04('0xee')])return!0x0;if(_0xd9810a[_0xea04('0xee')]&&_0x2b95a9[_0xea04('0xee')])return!0x1;if(_0xd9810a[_0xea04('0xee')]&&_0x2b95a9[_0xea04('0x148')]<_0xd9810a['commentThread'][_0xea04('0x163')][_0xea04('0xb1')](0x0)['createdAt'])return!0x0;if(_0x2b95a9[_0xea04('0xee')]&&_0xd9810a[_0xea04('0x148')]<_0x2b95a9[_0xea04('0x2b')][_0xea04('0x163')]['get'](0x0)[_0xea04('0x148')])return!0x0;return!0x1;}(_0x2c6183[0x0],_0x16036f[0x0]))return!0x1;const _0x4362e4=_0x5282d2(_0x2c6183[0x0]['attributes'],_0xea04('0xca')),_0xa90e4f=_0x5282d2(_0x16036f[0x0][_0xea04('0x146')],_0xea04('0xca'));if(!_0x2f12fa(_0x4362e4,_0xa90e4f))return!0x1;return!!_0x2c6183[_0xea04('0x141')](_0x41b2ff=>_0x16036f['some'](_0x27dbcd=>_0x41b2ff['getFirstRange']()[_0xea04('0x3a')](_0x27dbcd[_0xea04('0xda')]())))&&_0x16036f[_0xea04('0x141')](_0x4ab253=>_0x2c6183[_0xea04('0x2c')](_0x339393=>_0x4ab253[_0xea04('0xda')]()[_0xea04('0x3a')](_0x339393[_0xea04('0xda')]())));}}[_0xea04('0xb4')](_0x34948c){const _0x1da5ec=Array[_0xea04('0xff')](_0x34948c),_0x4c89c4=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4d57e5=_0x4c89c4[_0xea04('0x88')](_0x2a87db=>!_0x34948c[_0xea04('0x11b')](_0x2a87db)),_0x2062f1=new Map(_0x1da5ec['map'](_0x16c62d=>[_0x16c62d,this[_0xea04('0x4c')][_0xea04('0x5f')](_0x16c62d[_0xea04('0xb9')],_0x16c62d[_0xea04('0x10b')],_0xea04('0x55'))])),_0x44d1fa=new Map(_0x4c89c4[_0xea04('0xe8')](_0x4124e9=>[_0x4124e9,_0x4124e9[_0xea04('0x97')]()]));for(let _0x4f3e6a=0x0;_0x4f3e6a<_0x1da5ec[_0xea04('0xa8')];_0x4f3e6a++){if(_0x232928(this,_0x1da5ec[_0x4f3e6a],_0x1da5ec,_0x4f3e6a+0x1))return!0x0;}for(let _0x3f7495=0x0;_0x3f7495<_0x1da5ec[_0xea04('0xa8')];_0x3f7495++){if(_0x232928(this,_0x1da5ec[_0x3f7495],_0x4d57e5,0x0))return!0x0;}return!0x1;function _0x232928(_0x39ca2b,_0x4385f9,_0x496f41,_0x328eb9){for(let _0x137ff9=_0x328eb9;_0x137ff9<_0x496f41[_0xea04('0xa8')];_0x137ff9++){const _0x16024b=_0x496f41[_0x137ff9];if(_0x16024b['type']!==_0x4385f9[_0xea04('0xb9')]||_0x16024b[_0xea04('0x15f')]['id']!==_0x4385f9[_0xea04('0x15f')]['id']||_0x16024b[_0xea04('0x10b')]!==_0x4385f9[_0xea04('0x10b')])continue;if(!Vt(_0x4385f9,_0x16024b))continue;if(_0xea04('0x168')==_0x4385f9[_0xea04('0xb9')]&&_0x4385f9[_0xea04('0xb0')][_0xea04('0x75')]!=_0x16024b[_0xea04('0xb0')]['oldValue'])continue;if('attribute'==_0x4385f9[_0xea04('0xb9')]&&_0x39ca2b[_0xea04('0x54')](_0x4385f9[_0xea04('0xb0')][_0xea04('0x152')]))continue;if(_0xea04('0x4e')==_0x4385f9[_0xea04('0xb9')]){const _0x134bb7=_0x39ca2b[_0xea04('0x17d')][_0xea04('0x96')],_0x3be395=_0x4385f9[_0xea04('0xec')]();if(_0x3be395&&(_0x134bb7[_0xea04('0xc9')][_0xea04('0x169')](_0x3be395)||_0x134bb7[_0xea04('0xc9')]['isLimit'](_0x3be395)))continue;}const _0x3bce50=_0x2062f1[_0xea04('0xb1')](_0x4385f9),_0x7d7f6f=_0x44d1fa['get'](_0x4385f9),_0x2bbcfe=_0x44d1fa['get'](_0x16024b),_0x266b45=_0x4385f9['commentThread']&&_0x4385f9[_0xea04('0x2b')][_0xea04('0xa8')],_0x52eec1=_0x16024b[_0xea04('0x2b')]&&_0x16024b['commentThread'][_0xea04('0xa8')];if(!_0x266b45&&_0x3bce50(_0x2bbcfe,_0x7d7f6f))return _0x39ca2b[_0xea04('0x6')](_0x16024b,_0x4385f9),_0x44d1fa['delete'](_0x4385f9),!0x0;if(!_0x52eec1&&_0x3bce50(_0x7d7f6f,_0x2bbcfe))return _0x39ca2b['_joinSuggestions'](_0x4385f9,_0x16024b),_0x44d1fa[_0xea04('0x174')](_0x16024b),!0x0;}return!0x1;}}[_0xea04('0x6')](_0x1d21a4,_0x43792b){if(_0x1d21a4['isMultiRange'])for(const _0x47098c of _0x43792b['getRanges']())_0x1d21a4[_0xea04('0x16c')](_0x47098c);else{const _0x4a81ac=_0x43792b[_0xea04('0xda')]()['end'];this[_0xea04('0x99')](_0x1d21a4,this['_model'][_0xea04('0x46')](_0x1d21a4[_0xea04('0xda')]()[_0xea04('0xbd')],_0x4a81ac));}_0x43792b[_0xea04('0x1a')]();}[_0xea04('0x126')](_0x126ba8,_0x3bd319){const _0x30837e=_0x126ba8['startsWith'](_0xea04('0x14e'))||_0x126ba8[_0xea04('0xd9')](_0xea04('0x168'))?'FORMATTING':_0x126ba8['toUpperCase']();return _0x4b9969(this[_0xea04('0x17d')]['locale'],_0x3bd319+'_'+_0x30837e+_0xea04('0xef'));}[_0xea04('0x116')](){const _0x3c2b6e=this['editor'];_0x484966(this['_model'],({left:_0x4e4b01,entered:_0x403346})=>{const _0x235101=[];for(const _0x52f6f4 of _0x4e4b01){const {group:_0x2a2aa8,type:_0x4ee139}=this[_0xea04('0x79')](_0x52f6f4[_0xea04('0x22')]);if('suggestion'===_0x2a2aa8){_0x235101['push'](this['_getMarkerAnnouncementText'](_0x4ee139,_0xea04('0x76')));break;}}for(const _0xec273d of _0x403346){const {group:_0x20336e,type:_0x4d257b}=this[_0xea04('0x79')](_0xec273d[_0xea04('0x22')]);if(_0xea04('0xc6')===_0x20336e){_0x235101[_0xea04('0x9')](this[_0xea04('0x126')](_0x4d257b,_0xea04('0x16a')));break;}}_0x235101['length']&&_0x3c2b6e['ui'][_0xea04('0x12')][_0xea04('0x63')](_0xea04('0x160'),_0x235101['join']('\x20'));});}[_0xea04('0x1c')](_0x319edb){if(null!==this[_0xea04('0x147')])return!0x1;const _0x16c0d9=this[_0xea04('0x17d')],_0x58e04f=_0x16c0d9[_0xea04('0x96')][_0xea04('0xf4')]['differ'][_0xea04('0x139')]();if(0x0==_0x58e04f[_0xea04('0xa8')])return!0x1;const _0x1df672=[],_0x5b6165=_0x58e04f[_0xea04('0x88')](_0x503c15=>_0xea04('0x168')==_0x503c15[_0xea04('0xb9')]),_0x394ece=_0x58e04f[_0xea04('0x88')](_0x1a62e4=>_0xea04('0x138')==_0x1a62e4[_0xea04('0xb9')]&&_0xea04('0xe1')!=_0x1a62e4[_0xea04('0x22')]),_0x44c472=_0x58e04f['filter'](_0x3c479d=>'remove'==_0x3c479d[_0xea04('0xb9')]&&_0xea04('0xe1')!=_0x3c479d[_0xea04('0x22')]);for(const _0xc99e1e of _0x5b6165)_0x1df672[_0xea04('0x9')]({'key':_0xc99e1e[_0xea04('0x60')],'newValue':_0xc99e1e[_0xea04('0x78')],'oldValue':_0xc99e1e[_0xea04('0x14b')],'range':_0x3136f0(_0xc99e1e['range'])});for(const _0x339337 of _0x394ece){const _0x558c02=_0x44c472[_0xea04('0x23')](_0x1cb4e2=>_0x1cb4e2[_0xea04('0xb2')][_0xea04('0x3a')](_0x339337[_0xea04('0xb2')]));_0x558c02&&_0x1df672[_0xea04('0x9')]({'key':_0xea04('0xdc'),'newValue':_0x339337[_0xea04('0x22')],'oldValue':_0x558c02[_0xea04('0x22')],'range':_0x16c0d9['model'][_0xea04('0x1f')](_0x339337['position']['nodeAfter'])});}return 0x0!=_0x1df672[_0xea04('0xa8')]&&this[_0xea04('0xd')](_0x319edb,_0x1df672);function _0x3136f0(_0x598d24){return null==_0x598d24[_0xea04('0x5e')][_0xea04('0x53')]&&_0x598d24[_0xea04('0x5e')]['parent']==_0x598d24['start']['nodeAfter']?Ut(_0x598d24[_0xea04('0xbd')][_0xea04('0x15c')],_0x16c0d9['model']):_0x598d24;}}[_0xea04('0x170')](_0x36c531){let _0x368a33=!0x1;const _0x5f7fe=this[_0xea04('0x17d')][_0xea04('0x96')][_0xea04('0xf4')]['differ']['getChangedMarkers']()[_0xea04('0x88')](_0x26ebf8=>_0x26ebf8['data'][_0xea04('0x14')]&&_0x26ebf8['name'][_0xea04('0xd9')](_0xea04('0x11a')));for(const _0x36c15a of _0x5f7fe){const {subType:_0xc766a1,id:_0x295777}=this['_splitMarkerName'](_0x36c15a['name']),_0x3bb6f4=_0xc766a1['split']('|')[0x0];for(const _0x19f70a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x19f70a['id']!=_0x295777&&_0xea04('0x168')==_0x19f70a[_0xea04('0xb9')]&&_0x19f70a[_0xea04('0xb0')]&&_0x19f70a[_0xea04('0xb0')][_0xea04('0x152')]==_0x3bb6f4&&_0x19f70a[_0xea04('0xda')]()[_0xea04('0x123')](_0x36c15a[_0xea04('0xb0')][_0xea04('0x14')])&&(this[_0xea04('0xaa')](_0x19f70a,_0x36c15a[_0xea04('0xb0')][_0xea04('0x14')],_0x36c531),_0x368a33=!0x0);}return _0x368a33;}[_0xea04('0x40')](_0x10d9c7){if(null!==this[_0xea04('0x147')])return void _0x10d9c7();const _0x1e51bf=this[_0xea04('0x17d')];this[_0xea04('0x147')]=_0x1e51bf['model'][_0xea04('0xf4')]['version'],_0x10d9c7();const _0x2c367a=new Map();for(const _0xd19528 of _0x1e51bf[_0xea04('0x96')][_0xea04('0xf4')][_0xea04('0x90')][_0xea04('0x10d')](this[_0xea04('0x147')]))if([_0xea04('0x80'),_0xea04('0x16'),_0xea04('0x45'),_0xea04('0x33')][_0xea04('0xf7')](_0xd19528[_0xea04('0xb9')])){const _0xd9cbd3=_0xd19528[_0xea04('0x135')],_0x13fa41=_0x2c367a[_0xea04('0xb1')](_0xd9cbd3)||[];_0x13fa41['push'](_0xd19528),_0x2c367a[_0xea04('0x133')](_0xd9cbd3,_0x13fa41);}this[_0xea04('0x147')]=null;for(const [_0x3ff8f9,_0x3720e6]of _0x2c367a){const _0x5298f1=_0x5973ad();_0x1e51bf[_0xea04('0x96')][_0xea04('0x4')](_0x3ff8f9,_0x49c7fd=>{const _0x1171c6=[];for(const _0x338028 of _0x3720e6){let _0x46dfb6,_0x260b28,_0x3bae3e,_0x4e10c9;if(_0xea04('0x80')==_0x338028[_0xea04('0xb9')]){const _0x3019d7=_0x338028;_0x46dfb6=Ut(_0x3019d7['position'][_0xea04('0x15c')],_0x1e51bf['model']),_0x260b28=_0xea04('0xdc'),_0x3bae3e=_0x3019d7[_0xea04('0xfe')],_0x4e10c9=_0x3019d7['oldName'];}else{const _0xe030=_0x338028,_0x38f87c=this[_0xea04('0x54')](_0xe030['key']),_0x470328=this[_0xea04('0x37')]['has'](_0xe030['key']);if(!_0x38f87c&&!_0x470328)continue;_0x46dfb6=_0x38f87c?Ut(_0xe030[_0xea04('0x175')][_0xea04('0xbd')][_0xea04('0x15c')],_0x1e51bf[_0xea04('0x96')]):_0xe030[_0xea04('0x175')],_0x260b28=_0xe030[_0xea04('0x152')],_0x3bae3e='removeAttribute'==_0x338028[_0xea04('0xb9')]?void 0x0:_0xe030[_0xea04('0x27')],_0x4e10c9=_0xe030[_0xea04('0x75')];}this[_0xea04('0x14d')](_0x46dfb6,_0x260b28,_0x4e10c9,_0x3bae3e,{'groupId':_0x5298f1}),_0x1171c6[_0xea04('0x9')]({'range':_0x46dfb6,'key':_0x260b28,'newValue':_0x3bae3e,'oldValue':_0x4e10c9});}this['_reduceExistingSuggestions'](_0x49c7fd,_0x1171c6);});}}[_0xea04('0xd')](_0x52ad79,_0xddfb9c){if(0x0==_0xddfb9c['length'])return!0x1;let _0x54390a=!0x1;for(const _0x560feb of _0xddfb9c){const _0x52a7e0=this[_0xea04('0x5b')](_0x560feb['range'],_0xea04('0x168'))['filter'](_0x248080=>!_0x248080[_0xea04('0x155')][_0xea04('0x93')])[_0xea04('0xe8')](_0x43381e=>_0x43381e[_0xea04('0xc6')]),_0x28d1ca=_0x5a38d7({'newValue':_0x560feb['newValue']});_0x52a7e0[_0xea04('0x88')](_0x1a3164=>{const [_0x2adf68,_0x2aeaec]=_0x1a3164[_0xea04('0x10b')]['split']('|');return _0x2adf68==_0x560feb[_0xea04('0x152')]&&_0x2aeaec!=_0x28d1ca;})[_0xea04('0x15b')](_0x40a1e5=>{this['_reduceSuggestionAttributeRange'](_0x40a1e5,_0x560feb[_0xea04('0x175')],_0x52ad79),_0x54390a=!0x0;});}return _0x54390a;}[_0xea04('0xaa')](_0x537efc,_0x38410d,_0x96fc9){const _0x4c190e=_0x537efc[_0xea04('0xda')]()[_0xea04('0x31')](_0x38410d);0x0!==_0x4c190e[_0xea04('0xa8')]?0x1!==_0x4c190e[_0xea04('0xa8')]?this[_0xea04('0x44')](_0x537efc,_0x38410d[_0xea04('0xbd')],_0x38410d[_0xea04('0x5e')]):this[_0xea04('0x99')](_0x537efc,_0x4c190e[0x0]):_0x96fc9[_0xea04('0x73')](_0x537efc['getFirstMarker']());}}class Bt{constructor(_0x4d3aea){this[_0xea04('0xdd')]=_0x4d3aea,this[_0xea04('0xac')]=_0x4d3aea[_0xea04('0x96')],this['_customCallbacks']=new Map(),this[_0xea04('0xce')]=new Map(),this[_0xea04('0x7d')]();}[_0xea04('0xa0')](_0x233261,_0x2fd61b,_0x4a9161,_0x182d07,_0x4c84a8,_0x48a66f){return new _0x5b9956(this[_0xea04('0xac')],{'type':_0x233261,'subType':_0x2fd61b,'id':_0x4a9161,'author':_0x182d07,'creator':_0x182d07,'attributes':_0x4c84a8,'onAttributesChange':_0x48a66f,'onAccept':(..._0x5dba55)=>this[_0xea04('0x5f')](_0x233261,_0x2fd61b,_0xea04('0xea'))(..._0x5dba55),'onDiscard':(..._0x22bbca)=>this[_0xea04('0x5f')](_0x233261,_0x2fd61b,_0xea04('0x109'))(..._0x22bbca)});}[_0xea04('0x106')](_0x2c4ce8,_0x19b45b,_0x47fd6f,_0x255f4f){const _0x3b022b=_0x2c4ce8+':'+_0x19b45b+':'+_0x47fd6f;this[_0xea04('0xf5')][_0xea04('0x133')](_0x3b022b,_0x255f4f);}[_0xea04('0x5f')](_0x2da461,_0xa6d9c5,_0x43c913){const _0x4022d5=_0x2da461+':'+_0xa6d9c5+':'+_0x43c913;return this[_0xea04('0xf5')]['get'](_0x4022d5)||this[_0xea04('0xce')]['get'](_0x2da461+':'+_0x43c913);}[_0xea04('0x7d')](){const _0x35dbf9=()=>!0x1,_0x4e8bd7=_0x2da4e9=>{_0x2da4e9['sort']((_0x3badfe,_0xad1e24)=>_0x3badfe[_0xea04('0xbd')][_0xea04('0x127')](_0xad1e24['start'])?0x1:-0x1),this[_0xea04('0xac')]['change'](_0x491f1c=>{for(const _0x2221c6 of _0x2da4e9){let _0x402eab;_0x402eab=_0x2221c6[_0xea04('0x5e')][_0xea04('0x10a')]&&_0x2221c6['end'][_0xea04('0x91')]==_0x2221c6[_0xea04('0xbd')][_0xea04('0x15c')]?_0x491f1c[_0xea04('0x8f')](_0x2221c6[_0xea04('0xbd')][_0xea04('0x15c')],'on'):_0x491f1c[_0xea04('0x8f')](_0x2221c6),this[_0xea04('0xac')][_0xea04('0x36')](_0x402eab,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5c5208=(_0x296a72,_0x41acca)=>{_0x41acca&&this[_0xea04('0xac')][_0xea04('0x17f')](_0x4b66e4=>{const {commandName:_0x30cfcb,commandParams:_0x5442c1=[]}=_0x41acca,_0x8074b6=_0x296a72[_0xea04('0xe8')](_0x2452a7=>(xt(_0x2452a7)&&(_0x2452a7=this[_0xea04('0xac')][_0xea04('0x46')](_0x2452a7[_0xea04('0x5e')])),_0x2452a7))[_0xea04('0x88')](_0x2b50a5=>_0xea04('0x82')!==_0x2b50a5[_0xea04('0x164')][_0xea04('0x113')]);if(_0x8074b6['length']<0x1)return;const _0x424405=Array['from'](this[_0xea04('0xac')][_0xea04('0xf4')]['selection'][_0xea04('0x97')]())[_0xea04('0xe8')](_0x10065f=>_0x567f7b['fromRange'](_0x10065f));_0x4b66e4['setSelection'](_0x8074b6);for(const _0x430147 of this[_0xea04('0xdd')][_0xea04('0x145')][_0xea04('0x145')]())_0x430147[_0xea04('0x134')]();_0x5442c1[_0xea04('0x9')]({'forceDefaultExecution':!0x0}),this[_0xea04('0xdd')][_0xea04('0x143')](_0x30cfcb,..._0x5442c1);const _0x557c8e=_0x424405['filter'](_0x117a92=>'$graveyard'!=_0x117a92[_0xea04('0x164')][_0xea04('0x113')]);_0x557c8e[_0xea04('0xa8')]>0x0&&_0x4b66e4[_0xea04('0x32')](_0x557c8e);for(const _0x36858c of _0x424405)_0x36858c[_0xea04('0x3f')]();});},_0x35c2e7=(_0x2106a1,_0x4851b9)=>0x1==_0x2106a1[_0xea04('0xa8')]&&0x1==_0x4851b9[_0xea04('0xa8')]&&_0x2106a1[0x0][_0xea04('0x5e')][_0xea04('0x3a')](_0x4851b9[0x0][_0xea04('0xbd')]),_0x293a3b=(_0x37b08f,_0x2d4e7b,_0x598181,_0xec3ea5)=>Ot(_0x37b08f,_0x2d4e7b,_0x598181,_0xec3ea5,this[_0xea04('0xac')])?[_0x37b08f,_0x2d4e7b]:Ot(_0x2d4e7b,_0x37b08f,_0xec3ea5,_0x598181,this[_0xea04('0xac')])?[_0x2d4e7b,_0x37b08f]:null;this[_0xea04('0xce')][_0xea04('0x133')]('insertion:accept',_0x35dbf9),this[_0xea04('0xce')]['set'](_0xea04('0xe9'),_0x4e8bd7),this[_0xea04('0xce')][_0xea04('0x133')](_0xea04('0x17a'),_0x35c2e7),this[_0xea04('0xce')][_0xea04('0x133')](_0xea04('0x10c'),_0x293a3b),this['_defaultCallbacks'][_0xea04('0x133')]('deletion:accept',_0x4e8bd7),this['_defaultCallbacks'][_0xea04('0x133')](_0xea04('0xbb'),_0x35dbf9),this['_defaultCallbacks'][_0xea04('0x133')](_0xea04('0x156'),_0x35c2e7),this[_0xea04('0xce')][_0xea04('0x133')](_0xea04('0x1d'),_0x293a3b),this[_0xea04('0xce')]['set']('formatInline:accept',_0x5c5208),this[_0xea04('0xce')][_0xea04('0x133')](_0xea04('0x172'),_0x35dbf9),this[_0xea04('0xce')][_0xea04('0x133')](_0xea04('0xb5'),_0x35c2e7),this['_defaultCallbacks'][_0xea04('0x133')]('formatInline:chain',_0x35dbf9),this['_defaultCallbacks'][_0xea04('0x133')](_0xea04('0x6d'),_0x5c5208),this['_defaultCallbacks'][_0xea04('0x133')](_0xea04('0x13'),_0x35dbf9),this['_defaultCallbacks'][_0xea04('0x133')](_0xea04('0x57'),_0x35c2e7),this[_0xea04('0xce')]['set'](_0xea04('0x11e'),_0x35dbf9),this['_defaultCallbacks'][_0xea04('0x133')](_0xea04('0x101'),_0x35dbf9),this['_defaultCallbacks'][_0xea04('0x133')]('attribute:discard',(_0x27b441,_0x4a832c)=>{if(!_0x4a832c)return;const _0x3016f8=this['_editor'][_0xea04('0x165')]['get'](p);this[_0xea04('0xac')][_0xea04('0x17f')](_0x22d572=>{if('$elementName'==_0x4a832c[_0xea04('0x152')])for(const _0x5b4331 of _0x27b441){const _0x5b8115=_0x5b4331[_0xea04('0xbd')][_0xea04('0x15c')],_0x80d687=_0x4a832c[_0xea04('0x75')];_0x22d572[_0xea04('0x80')](_0x5b8115,_0x80d687);}else{if(_0x3016f8[_0xea04('0x54')](_0x4a832c[_0xea04('0x152')]))for(const _0x6c2d91 of _0x27b441)void 0x0!==_0x4a832c[_0xea04('0x75')]?_0x22d572[_0xea04('0x121')](_0x4a832c[_0xea04('0x152')],_0x4a832c[_0xea04('0x75')],_0x6c2d91[_0xea04('0xbd')][_0xea04('0x15c')]):_0x22d572[_0xea04('0x45')](_0x4a832c[_0xea04('0x152')],_0x6c2d91[_0xea04('0xbd')][_0xea04('0x15c')]);else for(const _0x2f61f2 of _0x27b441)_0x4a832c[_0xea04('0x75')]?_0x22d572[_0xea04('0x121')](_0x4a832c[_0xea04('0x152')],_0x4a832c[_0xea04('0x75')],_0x2f61f2):_0x22d572[_0xea04('0x45')](_0x4a832c[_0xea04('0x152')],_0x2f61f2);}});}),this[_0xea04('0xce')]['set'](_0xea04('0x7e'),_0x35c2e7);}}function Tt(_0x41a5ed,_0x2c3a18,_0x3745af){for(const _0x2b1e14 of _0x2c3a18['parent'][_0xea04('0x66')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2b1e14[_0xea04('0x164')]==_0x2b1e14)return!0x1;if(!_0x3745af[_0xea04('0x12c')](_0x2b1e14))return!0x1;if(_0x41a5ed[_0xea04('0x169')](_0x2b1e14)||_0x41a5ed[_0xea04('0x9c')](_0x2b1e14))return!0x0;}return!0x1;}function xt(_0x34f12c){return _0x34f12c[_0xea04('0x5e')]['parent']==_0x34f12c[_0xea04('0xbd')][_0xea04('0x15c')]&&_0x34f12c[_0xea04('0x5e')][_0xea04('0xad')];}function Et(_0x3503fd,_0x5e3961,_0x1c6956,_0x2e8c6f){const _0x495376=_0xd8f55e=>!_0xd8f55e[_0xea04('0x49')]['is']('$textProxy')&&!_0x2e8c6f['isObject'](_0xd8f55e[_0xea04('0x49')]),_0x2dd988=_0x3503fd['start'][_0xea04('0xc2')](_0x495376),_0x316318=_0x3503fd['end'][_0xea04('0xc2')](_0x495376,{'direction':_0xea04('0x28')});return(!_0x3503fd[_0xea04('0xbd')][_0xea04('0x3a')](_0x2dd988)||!_0x3503fd[_0xea04('0x5e')][_0xea04('0x3a')](_0x316318))&&(_0x2dd988[_0xea04('0x127')](_0x316318)?_0x1c6956[_0xea04('0xd1')](_0x5e3961,{'range':_0x1c6956[_0xea04('0x46')](_0x2dd988,_0x316318)}):_0x1c6956[_0xea04('0x73')](_0x5e3961),!0x0);}function Rt(_0xf5801a){return _0x5a38d7(_0xf5801a);}function jt(_0x3b1fdb){const _0x2c099a=_0x3b1fdb[_0xea04('0xbd')][_0xea04('0x15c')];return _0x2c099a&&_0x2c099a['is'](_0xea04('0x16f'));}function Ut(_0xc984d6,_0xd9aa7d){const _0xb3dd1d=_0xd9aa7d[_0xea04('0xc9')][_0xea04('0x169')](_0xc984d6)||_0xd9aa7d[_0xea04('0xc9')][_0xea04('0x120')](_0xc984d6);return _0xd9aa7d[_0xea04('0x46')](_0xd9aa7d[_0xea04('0x11c')](_0xc984d6,_0xea04('0x61')),_0xb3dd1d?_0xd9aa7d[_0xea04('0x89')](_0xc984d6):_0xd9aa7d[_0xea04('0x11c')](_0xc984d6,_0xea04('0x5e')));}function Ot(_0x292a81,_0x5cbcc2,_0x21e881,_0x5278e1,_0x2319f7){if(!Vt(_0x292a81,_0x5cbcc2))return!0x1;if(_0x21e881[_0xea04('0x5e')][_0xea04('0x3a')](_0x5278e1['start']))return!0x0;if(_0x292a81[_0xea04('0xb9')]!=_0x5cbcc2[_0xea04('0xb9')])return!0x1;if(!_0x21e881[_0xea04('0x5e')][_0xea04('0x17b')](_0x5278e1[_0xea04('0xbd')]))return!0x1;const _0x43e312=_0x2319f7[_0xea04('0x46')](_0x21e881[_0xea04('0x5e')],_0x5278e1[_0xea04('0xbd')])[_0xea04('0xd3')]();for(const _0x582c85 of _0x43e312)if([_0xea04('0x13e'),_0xea04('0x71')]['includes'](_0x582c85[_0xea04('0xb9')])&&_0x2319f7[_0xea04('0xc9')]['isLimit'](_0x582c85[_0xea04('0x49')]))return!0x1;return!0x0;}function Vt(_0x9aa14c,_0xd5a530){return!(!_0x9aa14c[_0xea04('0x14a')]||!_0xd5a530[_0xea04('0x14a')])&&_0x2f12fa(_0x9aa14c[_0xea04('0x146')],_0xd5a530[_0xea04('0x146')]);}function Gt(_0x16bf72,_0x24f5ab){const _0x2ba039=Ft(_0x16bf72[_0xea04('0x146')]),_0x546501=Ft(_0x24f5ab);if(!_0x16bf72[_0xea04('0x14a')])return!0x1;for(const _0x3dbb37 of Object[_0xea04('0x15')](_0x546501))if(!_0x2f12fa(_0x2ba039[_0x3dbb37],_0x546501[_0x3dbb37]))return!0x1;return!0x0;}function Ft(_0x2cddbe){const _0x83b2c1=Object[_0xea04('0x153')]({},_0x2cddbe);return delete _0x83b2c1[_0xea04('0xd4')],delete _0x83b2c1[_0xea04('0xba')],_0x83b2c1;}function Pt(_0x5114ac){return'attribute'==_0x5114ac['type']?_0x5114ac[_0xea04('0x10b')]['split']('|')[0x0]:null;}
|
|
23
|
+
const _0x1e34=['start','multi','formatInline:accept','suggestion','join','resolve','assign','acceptSelectedSuggestions','format','Users','newRange','_splitMarkerName','isRemovable','$elementName','collaboration.channelId','ready','removeMarker','catch','addSuggestion','_mergeNestedSuggestions','commentThread','trackChanges','getCommentThread','_suggestions','deletion:discard','trackChanges.mergeNestedSuggestions','accept','elementToElement','getDifference','insertion:chain','_breakSuggestionMarker','attribute:discard','removeClass','consumable','createPositionBefore','bindElementToMarker','attribute:accept','_onDiscard','ck-suggestion-marker-','return','isTouching','lowest','addHighlight','editing','model','Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.','_cutOutSuggestionMarker','has','formatBlock:chain','track-changes-adapter-missing-getsuggestion','getSuggestionCallback','getChangedMarkers','deletion','adapter','data','history','isBefore','isSelectable','getChanges','addRange','open','markAttributeChange','attributes','isAtStart','highest','batch','commands','for','every','FORMATTING','oldValue','containsRange','formatBlock:','trackChangesCommand','_handleNewSuggestionMarker','addMarker:suggestion:attribute','markerNameToElements','formatBlock:join','removeAttribute','substr','isBlock','ck-suggestion-marker','listenTo','ck-suggestion-marker-formatInline','isArray','oldRange','dataDowncast','_initAriaMarkerChangeAnnouncements','_model','getSuggestion','conversion','config','discardSuggestion','removeMarkers','filter','split','originalSuggestionId','getFirstRange','default','from','discardAllSuggestions','suggestionLoaded','define','skipNestingCheck','some','createSelection','get','discardSelectedSuggestions','map','upcast','locale','length','editingDowncast','subType','getAllAdjacentSuggestions','fire','newValue','acceptAllSuggestions','concat','addMarker:suggestion:formatBlock','insertion','getRanges','track-changes-suggestion-data-mismatch','track-changes-user-not-found','name','$text','_getMarkerAnnouncementText','isOwn','move','execute','deletion:','size','createElement','buildSuggestion','splice','requires','containsPosition','forEach','oldName','unshift','_checkSuggestionCorrectness','detach','chain','deleteContent','isLocal','registerPostFixer','_refreshSuggestionsChain','containerElement','getShiftedBy','enqueueChange','formatInline:join','range','mapper','$textProxy','data-suggestion','formatBlock','getNearestSelectionRange','setAttribute','documentSelection','getMultiRangeId','_recordAttributeSuggestionsFromVersion','isObject','authoredAt','acceptSuggestion','set','isLimit','change','changeAttribute','normal','insert','differ','_SUGGESTION_ANNOUNCEMENT','markDeletion','markers','addSuggestionData','createPositionAt','_saved','_suggestionState','getMarkers','key','widget','$graveyard','PendingActions','isInsideObject','clear','nodeBefore','markInlineFormat','_trackFormatChanges','hasCommentThread','markBlockFormat','_commentsRepository','howMany','getAncestors','enableCommand','formatInline','_refreshAttributeSuggestionsChain','setTo','insertion:join','markMultiRangeDeletion','sort','isEqual','dataReady','item','_getSuggestionData','schema','commandName','_getAuthorFromId','hasComments','suggestionChanged','suggestion:attribute:','group','_isForcedDefaultExecutionBlock','updateMarker','init','marker-count','_removeSuggestion','stop','addMarker','getSuggestions','selection','parent','_getExternalAuthor','getLastMatchingPosition','getCustomProperty','_descriptionFactory','keys','@external','addClass','createRange','fetchCommentThread','creator','change:_saved','newName','always','refresh','applyOperation','_registerBlockAttribute','before','pop','isInContent','_processAttributeSuggestions','rename','attribute:','markerReady','isNextTo','document','comments','_addSuggestionMarker','_reduceSuggestionAttributeRange','accepted','remove','suggestion:','toViewElement','removeMarker:suggestion:attribute','isIntersecting','deletion:chain','insertContent','_suggestionFactory','insertion:accept','containsRangeInObject','rootName','isAtEnd','editor','update:suggestion','getUser','includes','markMultiRangeInsertion','rethrowUnexpectedError','PENDING_ACTION_SUGGESTION','getAttribute','trackChanges.trackFormatChanges','ck-suggestion-marker-formatBlock','getItems','ENTER','addUser','author','activeMarkers','getContainedElement','containsItem','_inlineAttributeKeys','isAfter','updateSuggestion','isMultiRange','suggestion-type','push','values','_isDataLoaded','after','addMarkerName','notReady','reconvertMarker','_setSuggestionData','type','_defaultCallbacks','next','_enableDefaultAttributesIntegration','forceDefaultExecution','_setSuggestionRange','element','track-changes-command-not-found','markerName','_joinSuggestions','_blockAttributeKeys','getWalker','discard','formatGroupId','showSuggestionHighlights','_customCallbacks','_addThreadToSuggestion','consume','attributeNewValue','previous','delete','add','_createSuggestion','splitPosition','isIntersectingWithRange','nodeAfter','ck-suggestion-marker--active','low','createdAt','formatInline:chain','registerCustomCallback','moveTargetPosition','_processAttributeChanges','clone','startsWith','_adapter','_findSuggestions','formatInline:','_editor','track-changes-enable-command-twice','end','markerToHighlight','_registerDefaultCallbacks','meta','getIntersection','never','position','authorName','change:data','createPositionAfter','_updateSuggestionData','isCollapsed','writer','pluginName','then','getOperations','markInsertion','groupId','deletion:accept','root','getFirstMarker','_enabledCommands','error-saving-suggestion-data-suggestion-discarded','dataToMarker','stopListening','value','_registerInlineAttribute','_reduceExistingSuggestions','removeMarker:suggestion:formatBlock','multipleBlocks','removed','fromRange','_isBlockAttribute','find','insertion:','setSelection','attribute','high','_rangeIsInLocalUserInsertion','fromCharCode','unbindElementFromMarkerName','plugins','options'];(function(_0x531393,_0x1e3405){const _0x45fd6e=function(_0x1de08c){while(--_0x1de08c){_0x531393['push'](_0x531393['shift']());}};_0x45fd6e(++_0x1e3405);}(_0x1e34,0x1c1));const _0x45fd=function(_0x531393,_0x1e3405){_0x531393=_0x531393-0x0;let _0x45fd6e=_0x1e34[_0x531393];return _0x45fd6e;};import{Plugin as _0x200ad3,PendingActions as _0xe54b6c}from'ckeditor5/src/core.js';import{LiveRange as _0x1586d7}from'ckeditor5/src/engine.js';import{CKEditorError as _0x4f5e3f,uid as _0x1d4647,priorities as _0x281aa9,logWarning as _0x4d5f77}from'ckeditor5/src/utils.js';import{toWidget as _0x354e8a}from'ckeditor5/src/widget.js';import{Users as _0x11fa66,hashObject as _0x59c5b9,surroundingMarkersDetector as _0x52f036}from'ckeditor5-collaboration/src/collaboration-core.js';import _0xd845c1 from'./commands/trackchangescommand.js';import _0x296c51 from'./commands/acceptsuggestioncommand.js';import _0x530fdd from'./commands/discardsuggestioncommand.js';import _0x2c8829 from'./commands/executeonallsuggestionscommand.js';import _0x14056d from'./commands/executeonselectedsuggestionscommand.js';import _0x1de743 from'./suggestion.js';import _0x4f8496 from'./suggestiondescriptionfactory.js';import _0xd5729 from'./integrations/aiassistant.js';import _0x113233 from'./integrations/alignment.js';import _0x5dbab9 from'./integrations/basicstyles.js';import _0x2ca556 from'./integrations/blockquote.js';import _0x24b6fc from'./integrations/ckbox.js';import _0x5e4a6a from'./integrations/codeblock.js';import _0xc08e5b from'./integrations/comments.js';import _0x309dac from'./integrations/deletecommand.js';import _0x1fe1c0 from'./integrations/documentlist.js';import _0x476727 from'./integrations/documentlistproperties.js';import _0x5a1e4a from'./integrations/entercommand.js';import _0x334c26 from'./integrations/findandreplace.js';import _0x217a92 from'./integrations/font.js';import _0x2e7918 from'./integrations/formatpainter.js';import _0x194f16 from'./integrations/heading.js';import _0xd49241 from'./integrations/highlight.js';import _0x3746a9 from'./integrations/horizontalline.js';import _0x5d1202 from'./integrations/htmlembed.js';import _0x291f45 from'./integrations/image.js';import _0x5965bb from'./integrations/imagereplace.js';import _0x3583f7 from'./integrations/imagestyle.js';import _0x1c1ef4 from'./integrations/importword.js';import _0x47dae9 from'./integrations/indent.js';import _0x5e5751 from'./integrations/inputcommand.js';import _0x56fe50 from'./integrations/link.js';import _0x3252ab from'./integrations/list.js';import _0x2d4873 from'./integrations/listproperties.js';import _0x2c6fd9 from'./integrations/mediaembed.js';import _0x2543ab from'./integrations/mention.js';import _0x3162df from'./integrations/pagebreak.js';import _0x1c08cb from'./integrations/paragraph.js';import _0x53636d from'./integrations/removeformat.js';import _0x13f447 from'./integrations/restrictededitingmode.js';import _0x2ed787 from'./integrations/shiftentercommand.js';import _0x144b99 from'./integrations/standardeditingmode.js';import _0x558136 from'./integrations/style.js';import _0x158dae from'./integrations/table.js';import _0x1ed72a from'./integrations/tablemergesplit.js';import _0x2ec710 from'./integrations/tableheadings.js';import _0x96ba9f from'./integrations/tableclipboard.js';import _0x1794d7 from'./integrations/tablecolumnresize.js';import _0x1cd0a6 from'./integrations/template.js';import _0x19e852 from'./integrations/tableofcontents.js';import _0x473dca from'./integrations/title.js';import _0x1aedac from'./integrations/undo.js';import _0x5cb027 from'./integrations/tablecaption.js';import _0x3657cc from'./integrations/tableproperties.js';import{getTranslation as _0x14698f}from'./utils/common-translations.js';import{isEqual as _0x4a6831,omit as _0x1286d7}from'lodash-es';export const renameAttributeKey=_0x45fd('0x13a');export default class p extends _0x200ad3{static get[_0x45fd('0x3d')](){return['CommentsRepository',_0x11fa66,_0xe54b6c,_0xd5729,_0x113233,_0x5dbab9,_0x2ca556,_0x24b6fc,_0x5e4a6a,_0xc08e5b,_0x309dac,_0x1fe1c0,_0x476727,_0x5a1e4a,_0x334c26,_0x217a92,_0x2e7918,_0x194f16,_0xd49241,_0x3746a9,_0x5d1202,_0x291f45,_0x3583f7,_0x5965bb,_0x1c1ef4,_0x47dae9,_0x5e5751,_0x56fe50,_0x3252ab,_0x2d4873,_0x2c6fd9,_0x2543ab,_0x3162df,_0x1c08cb,_0x53636d,_0x13f447,_0x2ed787,_0x144b99,_0x558136,_0x158dae,_0x1ed72a,_0x2ec710,_0x5cb027,_0x96ba9f,_0x1794d7,_0x19e852,_0x3657cc,_0x1cd0a6,_0x473dca,_0x1aedac];}static get[_0x45fd('0x10f')](){return'TrackChangesEditing';}constructor(_0x2da73b){function _0x10c245(_0x2d2a83){return _0x2d2a83[_0x45fd('0x22')](_0x3733b5=>String[_0x45fd('0x129')](_0x3733b5))[_0x45fd('0x131')]('');}super(_0x2da73b),this[_0x45fd('0x56')]=null,this['set'](_0x45fd('0xca'),[]),this['on']('change:activeMarkers',(_0x501ad5,_0x5502cb,_0x14e85b,_0x2eb654)=>{this[_0x45fd('0xe')][_0x45fd('0x5c')](()=>{for(const _0x2d0638 of[..._0x2eb654,..._0x14e85b])this['_model'][_0x45fd('0x63')][_0x45fd('0x15c')](_0x2d0638)&&_0x2da73b[_0x45fd('0x158')][_0x45fd('0xd8')](_0x2d0638);});}),this[_0x45fd('0x96')]=new _0x4f8496(this['editor']['model'][_0x45fd('0x82')],this[_0x45fd('0xbc')][_0x45fd('0x24')]),this[_0x45fd('0xfd')]=null,this['_suggestionFactory']=new $t(this[_0x45fd('0xbc')]),this[_0x45fd('0x144')]=new Map(),this[_0x45fd('0x74')]=_0x2da73b[_0x45fd('0x12b')]['get']('CommentsRepository'),this[_0x45fd('0x117')]=new Set(),this[_0x45fd('0xe')]=this['editor']['model'],this[_0x45fd('0x67')]=new WeakMap(),this[_0x45fd('0x89')]=!0x1,this['_blockAttributeKeys']=new Set([_0x45fd('0x13a')]),this[_0x45fd('0xcd')]=new Set(),_0x2da73b[_0x45fd('0x11')]['define'](_0x45fd('0xc4'),_0x45fd('0x18')),this[_0x45fd('0x71')]=_0x2da73b[_0x45fd('0x11')][_0x45fd('0x20')](_0x45fd('0xc4')),_0x2da73b[_0x45fd('0x11')][_0x45fd('0x1c')](_0x45fd('0x146'),!0x0),this[_0x45fd('0x140')]=_0x2da73b[_0x45fd('0x11')][_0x45fd('0x20')](_0x45fd('0x146')),this[_0x45fd('0x176')]=new _0xd845c1(_0x2da73b,this['_enabledCommands']),this[_0x45fd('0xd')](),this[_0x10c245([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x10c245([0x34,0x30,0x34,0x36,0x32,0x34,0x33,0x32]);}[_0x45fd('0x8b')](){const _0x1acd97=this[_0x45fd('0xbc')],_0x448493=(_0x5049f8,_0x588203)=>{if(_0x45fd('0x126')!=_0x5049f8)return _0x45fd('0x153')+_0x5049f8;const _0x525f1e=_0x588203['split']('|')[0x0];return this[_0x45fd('0x122')](_0x525f1e)?_0x45fd('0xc5'):_0x45fd('0x9');};_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')](_0x45fd('0x26'))[_0x45fd('0x103')]({'model':_0x45fd('0x130'),'view':_0x61903b=>{const {id:_0x10d77b,type:_0x5e99e7,subType:_0x445ea3}=this[_0x45fd('0x138')](_0x61903b[_0x45fd('0xe2')]),_0x2f0d7c=[_0x45fd('0x7'),_0x448493(_0x5e99e7,_0x445ea3)];let _0x319341=0xbb8;return this[_0x45fd('0xca')][_0x45fd('0xbf')](_0x61903b['markerName'])&&(_0x2f0d7c[_0x45fd('0xd2')](_0x45fd('0xf4')),_0x319341=0xbc2),_0x45fd('0x161')==_0x5e99e7&&(_0x319341+=0x5),{'classes':_0x2f0d7c,'attributes':{'data-suggestion':_0x10d77b},'priority':_0x319341};}}),_0x1acd97[_0x45fd('0x10')]['for'](_0x45fd('0xc'))[_0x45fd('0xef')](_0x2a81ad=>{_0x2a81ad['on']('addMarker:suggestion',(_0x42b967,_0x3c382f,_0x512880)=>{if(!_0x512880[_0x45fd('0x12c')]['showSuggestionHighlights'])return;const _0x24ace1=_0x3c382f[_0x45fd('0x80')];if(!_0x24ace1)return;const _0xe98dca=_0x512880[_0x45fd('0x4e')][_0x45fd('0xb2')](_0x24ace1);_0x1acd97['model'][_0x45fd('0x82')][_0x45fd('0x57')](_0x24ace1)&&_0xe98dca&&!_0xe98dca[_0x45fd('0x95')](_0x45fd('0x6a'))&&_0xe98dca['is'](_0x45fd('0x49'))&&_0x354e8a(_0xe98dca,_0x512880[_0x45fd('0x10e')]);},{'priority':_0x45fd('0x127')});}),_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')](_0x45fd('0xc'))[_0x45fd('0x103')]({'model':_0x45fd('0x130'),'view':(_0x366819,_0x1bb5a6)=>{if(!_0x1bb5a6['options'][_0x45fd('0xe8')])return null;const {type:_0x30ca9c,subType:_0x3ee69f}=this['_splitMarkerName'](_0x366819[_0x45fd('0xe2')]);return{'classes':['ck-suggestion-marker',_0x448493(_0x30ca9c,_0x3ee69f)],'priority':0xbb8};}});const _0x53559e=({showActiveMarkers:_0x3840c1=!0x0,isAttributeSuggestion:_0x16cdd0=!0x1}={})=>(_0x2eceb8,_0x15a8b4,_0x9f9395)=>{if(!_0x15a8b4[_0x45fd('0x80')])return;const {id:_0x1243e8}=this[_0x45fd('0x138')](_0x15a8b4[_0x45fd('0xe2')]);if(_0x16cdd0){const _0x37e69f=Pt(this[_0x45fd('0x144')][_0x45fd('0x20')](_0x1243e8));if(!this[_0x45fd('0x122')](_0x37e69f))return;}if(_0x15a8b4[_0x45fd('0x80')]['is'](_0x45fd('0x91')))return void _0x9f9395[_0x45fd('0x14e')][_0x45fd('0xeb')](_0x15a8b4[_0x45fd('0x80')],_0x2eceb8['name']);const _0x389a04=_0x9f9395[_0x45fd('0x4e')]['toViewElement'](_0x15a8b4[_0x45fd('0x80')]);if(_0x15a8b4[_0x45fd('0x80')]['is'](_0x45fd('0xe0'))&&_0x1acd97[_0x45fd('0x159')]['schema'][_0x45fd('0x6')](_0x15a8b4[_0x45fd('0x80')])&&!_0x389a04['getCustomProperty'](_0x45fd('0x157'))){_0x9f9395[_0x45fd('0x10e')][_0x45fd('0x99')]([_0x45fd('0x7'),_0x45fd('0xc5')],_0x389a04),_0x9f9395['writer'][_0x45fd('0x53')](_0x45fd('0x50'),_0x1243e8,_0x389a04),_0x9f9395[_0x45fd('0x4e')][_0x45fd('0x150')](_0x389a04,_0x15a8b4[_0x45fd('0xe2')]),_0x3840c1&&(this['activeMarkers'][_0x45fd('0xbf')](_0x15a8b4[_0x45fd('0xe2')])?_0x9f9395[_0x45fd('0x10e')][_0x45fd('0x99')](_0x45fd('0xf4'),_0x389a04):_0x9f9395['writer'][_0x45fd('0x14d')]('ck-suggestion-marker--active',_0x389a04));for(const _0x47c9cb of _0x1acd97[_0x45fd('0x159')]['createRangeIn'](_0x15a8b4[_0x45fd('0x80')])[_0x45fd('0xc6')]())_0x9f9395[_0x45fd('0x14e')]['consume'](_0x47c9cb,_0x2eceb8[_0x45fd('0x32')]);_0x9f9395[_0x45fd('0x14e')][_0x45fd('0xeb')](_0x15a8b4[_0x45fd('0x80')],_0x2eceb8[_0x45fd('0x32')]);}};_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')]('dataDowncast')[_0x45fd('0xef')](_0x22b4cb=>{_0x22b4cb['on'](_0x45fd('0x2d'),(_0x2b0312,_0x4b0672,_0x49d12f)=>{_0x49d12f[_0x45fd('0x12c')][_0x45fd('0xe8')]&&_0x53559e({'showActiveMarkers':!0x1})(_0x2b0312,_0x4b0672,_0x49d12f);},{'priority':_0x45fd('0x16d')});}),_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')](_0x45fd('0xc'))[_0x45fd('0xef')](_0x1c0dc8=>{_0x1c0dc8['on']('addMarker:suggestion:attribute',(_0x39377d,_0x361b20,_0x305f63)=>{_0x305f63[_0x45fd('0x12c')][_0x45fd('0xe8')]&&_0x53559e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x39377d,_0x361b20,_0x305f63);},{'priority':_0x45fd('0x16d')});}),_0x1acd97['conversion'][_0x45fd('0x170')](_0x45fd('0xc'))['markerToData']({'model':_0x45fd('0x130'),'view':(_0xa1519c,_0x141561)=>_0x141561[_0x45fd('0x12c')][_0x45fd('0xe8')]?null:{'group':'suggestion','name':_0xa1519c[_0x45fd('0x5')](0xb)}}),_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')](_0x45fd('0x23'))[_0x45fd('0x148')]({'view':{'name':_0x45fd('0x130'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2a748f,{writer:_0x19f2c7})=>{let _0x3c0d50='suggestion:'+_0x2a748f[_0x45fd('0xc3')](_0x45fd('0xd1'))+':'+_0x2a748f[_0x45fd('0xc3')]('id');return _0x2a748f[_0x45fd('0xc3')](_0x45fd('0x8c'))&&(_0x3c0d50+=':'+_0x2a748f[_0x45fd('0xc3')](_0x45fd('0x8c'))),_0x19f2c7[_0x45fd('0x3a')]('$marker',{'data-name':_0x3c0d50});}}),_0x1acd97[_0x45fd('0x10')]['for'](_0x45fd('0x23'))[_0x45fd('0x119')]({'view':_0x45fd('0x130')}),_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')]('editingDowncast')[_0x45fd('0xef')](_0x4f29b4=>{_0x4f29b4['on'](_0x45fd('0x2d'),_0x53559e(),{'priority':'high'});}),_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')]('editingDowncast')[_0x45fd('0xef')](_0x1f527c=>{_0x1f527c['on'](_0x45fd('0x1'),_0x53559e({'isAttributeSuggestion':!0x0}),{'priority':_0x45fd('0x127')});}),_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')](_0x45fd('0x26'))[_0x45fd('0xef')](_0x4adacb=>{_0x4adacb['on'](_0x45fd('0x11e'),(_0x3f9bbe,_0x2650d2,_0x12fbff)=>{const _0x503f4a=_0x12fbff[_0x45fd('0x4e')][_0x45fd('0x2')](_0x2650d2[_0x45fd('0xe2')]);if(_0x503f4a)for(const _0x5c7953 of _0x503f4a)_0x5c7953[_0x45fd('0x95')]('addHighlight')||(_0x12fbff[_0x45fd('0x10e')][_0x45fd('0x14d')]([_0x45fd('0x7'),_0x45fd('0xc5'),'ck-suggestion-marker--active'],_0x5c7953),_0x12fbff[_0x45fd('0x10e')][_0x45fd('0x4')](_0x45fd('0x50'),_0x5c7953),_0x12fbff[_0x45fd('0x4e')][_0x45fd('0x12a')](_0x5c7953,_0x2650d2[_0x45fd('0xe2')]));},{'priority':_0x45fd('0x127')});}),_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')]('editingDowncast')[_0x45fd('0xef')](_0x316533=>{_0x316533['on'](_0x45fd('0xb3'),(_0x5cc889,_0x421626,_0x2776ff)=>{const _0x1714b8=_0x2776ff['mapper'][_0x45fd('0x2')](_0x421626[_0x45fd('0xe2')]);if(!_0x1714b8)return;const {id:_0x12cd6b}=this[_0x45fd('0x138')](_0x421626['markerName']),_0xdec90e=Pt(this[_0x45fd('0x144')][_0x45fd('0x20')](_0x12cd6b));if(this[_0x45fd('0x122')](_0xdec90e))for(const _0x3b4654 of _0x1714b8)_0x3b4654[_0x45fd('0x95')]('addHighlight')||(_0x2776ff[_0x45fd('0x10e')][_0x45fd('0x14d')]([_0x45fd('0x7'),'ck-suggestion-marker-formatBlock',_0x45fd('0xf4')],_0x3b4654),_0x2776ff[_0x45fd('0x10e')][_0x45fd('0x4')]('data-suggestion',_0x3b4654),_0x2776ff[_0x45fd('0x4e')]['unbindElementFromMarkerName'](_0x3b4654,_0x421626['markerName']));},{'priority':_0x45fd('0x127')});}),_0x1acd97['model'][_0x45fd('0xab')][_0x45fd('0x47')](_0x29026b=>{let _0x43ba1f=!0x1;const _0x1444ca=Array[_0x45fd('0x19')](_0x1acd97[_0x45fd('0x159')][_0x45fd('0xab')][_0x45fd('0x60')][_0x45fd('0x160')]()),_0xa982e0=new Set();for(const {name:_0x4cef2e,data:_0x4e639a}of _0x1444ca){const {group:_0x59dca1,type:_0xc5947c,subType:_0x7e288c,id:_0x3f78e4}=this['_splitMarkerName'](_0x4cef2e);if(_0x45fd('0x130')!==_0x59dca1)continue;const _0x2f1080=this[_0x45fd('0x144')][_0x45fd('0x20')](_0x3f78e4);if(null!=_0x4e639a[_0x45fd('0x137')]){_0x45fd('0x78')==_0xc5947c&&(_0x43ba1f=_0x43ba1f||xt(_0x4e639a[_0x45fd('0x137')],_0x4cef2e,_0x29026b,_0x1acd97[_0x45fd('0x159')][_0x45fd('0x82')]));const _0x5a733c='attribute'==_0xc5947c&&this[_0x45fd('0x122')](_0x7e288c[_0x45fd('0x15')]('|')[0x0]);if(_0x4e639a[_0x45fd('0x137')]['isCollapsed']||'$graveyard'==_0x4e639a[_0x45fd('0x137')][_0x45fd('0x115')]['rootName']||'formatBlock'==_0xc5947c&&!Rt(_0x4e639a[_0x45fd('0x137')])||_0x5a733c&&!Rt(_0x4e639a[_0x45fd('0x137')])||_0x45fd('0x161')==_0xc5947c&&!(!Tt(_0x23abca=_0x4e639a[_0x45fd('0x137')])&&!function(_0x18de2d){return _0x18de2d[_0x45fd('0x12d')][_0x45fd('0x92')]==_0x18de2d[_0x45fd('0x102')][_0x45fd('0x6f')]&&_0x18de2d[_0x45fd('0x12d')][_0x45fd('0xbb')];}(_0x23abca)))_0x29026b['removeMarker'](_0x4cef2e),_0x43ba1f=!0x0;else{if(!_0x2f1080||!_0x2f1080[_0x45fd('0xa5')])continue;_0xa982e0['add'](_0x2f1080);}}}var _0x23abca;return _0xa982e0[_0x45fd('0x39')]>0x0&&(_0x43ba1f=!!this['_joinWithAdjacentSuggestions'](_0xa982e0)||_0x43ba1f),_0x43ba1f;}),_0x1acd97[_0x45fd('0x159')][_0x45fd('0xab')]['registerPostFixer'](_0x147336=>{let _0x28359e=!0x1;for(const _0x4f6b9b of _0x1acd97[_0x45fd('0x159')]['document'][_0x45fd('0x60')][_0x45fd('0x167')]())if(_0x45fd('0x5f')==_0x4f6b9b[_0x45fd('0xda')])for(const _0x117de4 of this[_0x45fd('0x144')]['values']()){if(_0x117de4[_0x45fd('0xd0')]||!_0x117de4['isInContent'])continue;const _0x2b8fba=_0x45fd('0x51')==_0x117de4[_0x45fd('0xda')],_0x2a99c5=Pt(_0x117de4),_0x52da1f=_0x2a99c5&&this[_0x45fd('0x122')](_0x2a99c5);if(!_0x2b8fba&&!_0x52da1f)continue;const _0x58745f=_0x117de4['getFirstRange']();if(_0x58745f[_0x45fd('0x12d')]['parent']!=_0x58745f[_0x45fd('0x102')][_0x45fd('0x92')]&&!_0x58745f[_0x45fd('0x102')]['isAtEnd']){const _0x5eb178=_0x1acd97[_0x45fd('0x159')][_0x45fd('0x65')](_0x58745f[_0x45fd('0x12d')][_0x45fd('0xf3')],'end'),_0x2285fa=_0x1acd97[_0x45fd('0x159')][_0x45fd('0x9a')](_0x58745f['start'],_0x5eb178);_0x147336[_0x45fd('0x8a')](_0x117de4[_0x45fd('0x116')](),{'range':_0x2285fa}),_0x28359e=!0x0;}}return _0x28359e;}),_0x1acd97['model'][_0x45fd('0xab')][_0x45fd('0x47')](_0x151384=>this[_0x45fd('0xfa')](_0x151384)),_0x1acd97['model'][_0x45fd('0xab')]['registerPostFixer'](_0x4f28b2=>!_0x4f28b2[_0x45fd('0x16e')][_0x45fd('0x46')]&&this[_0x45fd('0xa6')](_0x4f28b2)),_0x1acd97[_0x45fd('0x159')]['markers']['on'](_0x45fd('0xbd'),(_0x3011a4,_0x489afe,_0x568478)=>{if(null==_0x568478){const {id:_0x30167b}=this[_0x45fd('0x138')](_0x489afe[_0x45fd('0x32')]),_0x4b3464=this[_0x45fd('0x144')][_0x45fd('0x20')](_0x30167b);_0x4b3464&&_0x4b3464[_0x45fd('0xd6')](_0x489afe[_0x45fd('0x32')]);}}),_0x1acd97[_0x45fd('0x159')][_0x45fd('0xab')]['on'](_0x45fd('0x10a'),()=>{const _0xc0d5c1=Array[_0x45fd('0x19')](_0x1acd97['model'][_0x45fd('0xab')]['differ'][_0x45fd('0x160')]())[_0x45fd('0x14')](_0x1dd711=>_0x45fd('0x130')===this[_0x45fd('0x138')](_0x1dd711['name'])[_0x45fd('0x88')]);if(0x0===_0xc0d5c1[_0x45fd('0x25')])return;_0xc0d5c1[_0x45fd('0x7d')]((_0x15848c,_0x303e93)=>{const _0x5bf4f7=_0x15848c[_0x45fd('0x163')]['oldRange'],_0x4e5a04=_0x303e93[_0x45fd('0x163')][_0x45fd('0xb')];return null===_0x5bf4f7&&null===_0x4e5a04?0x0:null===_0x5bf4f7&&null!==_0x4e5a04?-0x1:null!==_0x5bf4f7&&null===_0x4e5a04?0x1:_0x5bf4f7[_0x45fd('0x12d')]['isBefore'](_0x4e5a04[_0x45fd('0x12d')])?-0x1:0x1;});const _0x2cdc16=new Set(),_0x44d8a2=new Set();for(const {name:_0x2faf96,data:_0x5d4a13}of _0xc0d5c1){const {id:_0x2c2c20}=this['_splitMarkerName'](_0x2faf96);if(null===_0x5d4a13[_0x45fd('0xb')]){const _0x171784=this[_0x45fd('0x0')](_0x2faf96);_0x44d8a2[_0x45fd('0xef')](_0x171784);}else{const _0x3c0814=this[_0x45fd('0x144')][_0x45fd('0x20')](_0x2c2c20);null!==_0x5d4a13[_0x45fd('0x137')]||_0x3c0814['isInContent']?(_0x2cdc16[_0x45fd('0xef')](_0x3c0814['head']),_0x44d8a2['add'](_0x3c0814)):this['_removeSuggestion'](_0x3c0814);}}_0x44d8a2['size']>0x0&&this[_0x45fd('0x48')](_0x44d8a2);for(const _0x49eeb3 of _0x2cdc16)this[_0x45fd('0x29')]('suggestionChanged',_0x49eeb3);}),_0x1acd97['model']['on'](_0x45fd('0xa1'),(_0x31caf5,_0x336f4e)=>{const _0x2f40fa=_0x336f4e[0x0];if(!this[_0x45fd('0x144')][_0x45fd('0x39')])return;if(!_0x2f40fa['isDocumentOperation'])return;if(_0x2f40fa['batch']['isUndo']||!_0x2f40fa['batch']['isLocal'])return;let _0x6cc67e,_0x2d60ca;switch(_0x2f40fa[_0x45fd('0xda')]){case _0x45fd('0x5f'):_0x6cc67e=_0x1acd97['model'][_0x45fd('0x65')](_0x2f40fa['position']),_0x2d60ca=_0x6cc67e['getShiftedBy'](_0x2f40fa[_0x45fd('0x75')]);break;case _0x45fd('0x15'):_0x6cc67e=_0x1acd97[_0x45fd('0x159')][_0x45fd('0x65')](_0x2f40fa[_0x45fd('0xf1')]),_0x2d60ca=_0x1acd97['model']['createPositionAt'](_0x2f40fa[_0x45fd('0xf9')]);break;case _0x45fd('0x36'):_0x6cc67e=_0x1acd97[_0x45fd('0x159')][_0x45fd('0x65')](_0x2f40fa['targetPosition']),_0x2d60ca=_0x6cc67e[_0x45fd('0x4a')](_0x2f40fa['howMany']);break;default:return;}const _0x2eeb6f=_0x1acd97[_0x45fd('0x159')][_0x45fd('0x9a')](_0x6cc67e,_0x2d60ca);_0x1acd97['model'][_0x45fd('0x5c')](()=>{for(const {suggestion:_0x27b5bb,meta:_0x4c08ec}of this[_0x45fd('0xfe')](_0x2eeb6f)){if(_0x27b5bb[_0x45fd('0xd0')])continue;if('formatInline'==_0x27b5bb[_0x45fd('0xda')])continue;const _0x19ebf5=Pt(_0x27b5bb);if(_0x19ebf5&&this[_0x45fd('0x122')](_0x19ebf5)&&'split'!=_0x2f40fa[_0x45fd('0xda')])continue;const _0x32c0b0=_0x27b5bb[_0x45fd('0x163')]&&_0x27b5bb['data'][_0x45fd('0x11f')];('formatBlock'!=_0x27b5bb['type']||_0x45fd('0x15')==_0x2f40fa['type']&&!_0x32c0b0)&&(_0x4c08ec[_0x45fd('0xb9')]||_0x45fd('0x2e')==_0x27b5bb[_0x45fd('0xda')]&&_0x4c08ec[_0x45fd('0x35')]||_0x27b5bb[_0x45fd('0x17')]()[_0x45fd('0x174')](_0x2eeb6f)&&this[_0x45fd('0x14b')](_0x27b5bb,_0x6cc67e,_0x2d60ca));}});},{'priority':_0x45fd('0x156')}),_0x1acd97['model']['on'](_0x45fd('0x45'),(_0x5a2cc8,_0x2eadea)=>{const _0x3a6a95=_0x2eadea[0x0],_0x41d202=_0x2eadea[0x1];if(_0x41d202&&_0x41d202['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand'][_0x45fd('0x11b')])return;if(_0x3a6a95[_0x45fd('0x10d')])return;const _0x48c485=_0x1acd97['model'][_0x45fd('0x82')],{start:_0x218eee,end:_0x3dc9b1}=_0x3a6a95[_0x45fd('0x17')](),_0x4f3e20=_0x218eee[_0x45fd('0xf3')]&&_0x48c485[_0x45fd('0x5b')](_0x218eee[_0x45fd('0xf3')])?null:_0x48c485[_0x45fd('0x52')](_0x218eee,'forward'),_0x9958d4=_0x3dc9b1[_0x45fd('0x6f')]&&_0x48c485['isLimit'](_0x3dc9b1[_0x45fd('0x6f')])?null:_0x48c485['getNearestSelectionRange'](_0x3dc9b1,'backward'),_0x485447=_0x1acd97[_0x45fd('0x159')]['createRange'](_0x4f3e20?_0x4f3e20[_0x45fd('0x12d')]:_0x218eee,_0x9958d4?_0x9958d4['end']:_0x3dc9b1);_0x1acd97['model'][_0x45fd('0x5c')](_0x38c935=>{this[_0x45fd('0x62')](_0x485447);const _0x48e74a=_0x1acd97[_0x45fd('0x159')][_0x45fd('0x82')]['getNearestSelectionRange'](_0x485447[_0x45fd('0x12d')]);_0x3a6a95['is'](_0x45fd('0x54'))?_0x38c935[_0x45fd('0x125')](_0x48e74a):_0x3a6a95[_0x45fd('0x7a')](_0x48e74a);}),_0x5a2cc8[_0x45fd('0x8e')]();},{'priority':_0x281aa9[_0x45fd('0x5e')]+0xa}),_0x1acd97[_0x45fd('0x159')]['on'](_0x45fd('0xb6'),(_0x5f4a7d,_0x423585)=>{const _0x52e6f3=_0x423585[_0x423585[_0x45fd('0x25')]-0x1];_0x52e6f3&&_0x52e6f3[_0x45fd('0xde')]||this[_0x45fd('0x89')]||this[_0x45fd('0x176')][_0x45fd('0x11b')]&&(_0x1acd97[_0x45fd('0x159')]['change'](()=>{let _0x10b57a=_0x1acd97['model']['insertContent'](_0x423585[0x0],_0x423585[0x1],_0x423585[0x2],{'forceDefaultExecution':!0x0});if(!_0x10b57a)return;_0x5f4a7d[_0x45fd('0x154')]=_0x10b57a[_0x45fd('0xfb')]();const _0x36ca89=_0x10b57a[_0x45fd('0x102')][_0x45fd('0x6f')],_0x3f582c=_0x1acd97[_0x45fd('0x159')]['schema'];_0x36ca89&&_0x3f582c[_0x45fd('0x6')](_0x36ca89)&&!_0x3f582c[_0x45fd('0x57')](_0x36ca89)&&(_0x10b57a=_0x1acd97[_0x45fd('0x159')][_0x45fd('0x9a')](_0x10b57a[_0x45fd('0x12d')],_0x1acd97[_0x45fd('0x159')][_0x45fd('0x65')](_0x36ca89,_0x45fd('0x102')))),this[_0x45fd('0x112')](_0x10b57a);}),_0x5f4a7d['stop']());},{'priority':'high'}),this[_0x45fd('0xbc')][_0x45fd('0x16f')][_0x45fd('0xef')](_0x45fd('0x142'),this['trackChangesCommand']),this[_0x45fd('0x77')](_0x45fd('0x142'));const _0x578d56=new _0x296c51(_0x1acd97,this['_suggestions']);_0x1acd97['commands']['add']('acceptSuggestion',_0x578d56),this[_0x45fd('0x77')](_0x45fd('0x59'));const _0x325bea=new _0x530fdd(_0x1acd97,this[_0x45fd('0x144')]);_0x1acd97[_0x45fd('0x16f')][_0x45fd('0xef')](_0x45fd('0x12'),_0x325bea),this[_0x45fd('0x77')]('discardSuggestion'),_0x1acd97[_0x45fd('0x16f')]['add'](_0x45fd('0x2b'),new _0x2c8829(_0x1acd97,_0x578d56,this['_suggestions'])),this[_0x45fd('0x77')](_0x45fd('0x2b')),_0x1acd97['commands'][_0x45fd('0xef')](_0x45fd('0x1a'),new _0x2c8829(_0x1acd97,_0x325bea,this[_0x45fd('0x144')])),this[_0x45fd('0x77')](_0x45fd('0x1a')),_0x1acd97[_0x45fd('0x16f')][_0x45fd('0xef')](_0x45fd('0x134'),new _0x14056d(_0x1acd97,_0x578d56,this['_suggestions'])),this[_0x45fd('0x77')](_0x45fd('0x134')),_0x1acd97[_0x45fd('0x16f')][_0x45fd('0xef')](_0x45fd('0x21'),new _0x14056d(_0x1acd97,_0x325bea,this['_suggestions'])),this[_0x45fd('0x77')](_0x45fd('0x21'));const _0x5aec3d=_0x1acd97[_0x45fd('0x12b')]['get']('CommentsRepository');this[_0x45fd('0x8')](_0x5aec3d,'addComment',(_0x55d1b1,{threadId:_0x437691})=>{const _0x9f079f=this[_0x45fd('0x144')][_0x45fd('0x20')](_0x437691);_0x9f079f&&_0x9f079f[_0x45fd('0x141')]&&0x1===_0x9f079f['commentThread'][_0x45fd('0x25')]&&this[_0x45fd('0x10c')](_0x437691,{'hasComments':!0x0});},{'priority':'low'}),this[_0x45fd('0x8')](_0x5aec3d,'removeComment',(_0x1f4985,{threadId:_0x3aec8d})=>{const _0x50309d=this[_0x45fd('0x144')][_0x45fd('0x20')](_0x3aec8d);_0x50309d&&_0x50309d[_0x45fd('0x141')]&&!_0x50309d['commentThread'][_0x45fd('0x25')]&&this[_0x45fd('0x10c')](_0x3aec8d,{'hasComments':!0x1});},{'priority':_0x45fd('0xf5')});}set[_0x45fd('0x162')](_0x1a5323){if(this[_0x45fd('0xfd')])throw new _0x4f5e3f('track-changes-adapter-already-set',this);this['_adapter']=_0x1a5323;}get[_0x45fd('0x162')](){return this['_adapter'];}[_0x45fd('0x90')]({skipNotAttached:_0x258f6e=!0x1,toJSON:_0x485781=!0x1}={}){const _0xe6c4b7=[];for(const _0x301e7b of this[_0x45fd('0x144')][_0x45fd('0xd3')]())_0x258f6e&&!_0x301e7b[_0x45fd('0xa5')]||_0xe6c4b7['push'](_0x301e7b);return _0x485781?_0xe6c4b7['map'](_0x5c7e98=>_0x5c7e98['toJSON']()):_0xe6c4b7;}[_0x45fd('0xf')](_0x35bd83){const _0x2f40a4=this[_0x45fd('0x144')][_0x45fd('0x20')](_0x35bd83);if(!_0x2f40a4)throw new _0x4f5e3f('track-changes-suggestion-not-found',this);return _0x2f40a4;}['hasSuggestion'](_0x3aeda5){return this[_0x45fd('0x144')][_0x45fd('0x15c')](_0x3aeda5);}['addSuggestionData'](_0x21b058){const {authorId:_0x54d9c6,id:_0xd146ac,attributes:_0x44212b}=_0x21b058,[_0x3792fc,_0x55716f]=_0x21b058[_0x45fd('0xda')][_0x45fd('0x15')](':'),_0x30a4c2=this[_0x45fd('0x144')][_0x45fd('0x20')](_0xd146ac)||this[_0x45fd('0xf0')](_0x3792fc,_0x55716f,_0xd146ac,_0x54d9c6,_0x44212b);if(this[_0x45fd('0xea')](_0x30a4c2),this[_0x45fd('0x42')](_0x30a4c2,_0x3792fc,_0x55716f||null,_0x54d9c6),_0x30a4c2['createdAt']=_0x21b058[_0x45fd('0xf6')],_0x30a4c2[_0x45fd('0xd4')]=!0x0,_0x44212b&&_0x44212b[_0x45fd('0x98')]){const _0x54761c=_0x44212b[_0x45fd('0x98')],_0x4156b0=this['_getExternalAuthor'](_0x54761c[_0x45fd('0x109')]);_0x30a4c2[_0x45fd('0x58')]=_0x54761c[_0x45fd('0xf6')],_0x30a4c2[_0x45fd('0xc9')]=_0x4156b0,_0x30a4c2['isExternal']=!0x0;}else _0x30a4c2[_0x45fd('0x58')]=_0x21b058[_0x45fd('0xf6')];switch(_0x21b058['data']&&(_0x30a4c2[_0x45fd('0x163')]=_0x21b058[_0x45fd('0x163')]),_0x21b058[_0x45fd('0x16b')]&&(_0x30a4c2['attributes']=_0x21b058[_0x45fd('0x16b')]),this['_adapter']&&this[_0x45fd('0xfd')][_0x45fd('0x13f')]||(_0x30a4c2[_0x45fd('0x66')]=!0x0),this['_suggestionState']['get'](_0x30a4c2)){case _0x45fd('0xd7'):this['_suggestionState'][_0x45fd('0x5a')](_0x30a4c2,'dataReady');break;case'markerReady':_0x30a4c2['isInContent']?(this[_0x45fd('0x48')](new Set([_0x30a4c2])),this['_joinWithAdjacentSuggestions'](new Set([_0x30a4c2])),this['_suggestionState'][_0x45fd('0x5a')](_0x30a4c2,'ready'),this[_0x45fd('0x29')](_0x45fd('0x1b'),_0x30a4c2)):this[_0x45fd('0x67')]['set'](_0x30a4c2,_0x45fd('0x120'));}return _0x30a4c2;}['acceptSuggestion'](_0x64c7c2){this[_0x45fd('0xde')](()=>{this[_0x45fd('0xbc')][_0x45fd('0x159')][_0x45fd('0x5c')](()=>{for(const _0x56796c of _0x64c7c2[_0x45fd('0x28')]())_0x56796c[_0x45fd('0x147')]();});});}[_0x45fd('0x12')](_0x1ad422){this[_0x45fd('0xde')](()=>{this[_0x45fd('0xbc')][_0x45fd('0x159')][_0x45fd('0x5c')](()=>{for(const _0x3faa31 of _0x1ad422[_0x45fd('0x28')]())_0x3faa31['discard']();});});}['enableCommand'](_0x547c77,_0x2fc916){const _0xcdf9cd=this[_0x45fd('0xbc')]['commands'][_0x45fd('0x20')](_0x547c77);if(!_0xcdf9cd)throw new _0x4f5e3f(_0x45fd('0xe1'),this,{'commandName':_0x547c77});if(this[_0x45fd('0x117')][_0x45fd('0x15c')](_0xcdf9cd))throw new _0x4f5e3f(_0x45fd('0x101'),this,{'commandName':_0x547c77});this['_enabledCommands'][_0x45fd('0xef')](_0xcdf9cd),_0x2fc916&&_0xcdf9cd['on']('execute',(_0x59ea8f,_0x3379d2)=>{this[_0x45fd('0x176')][_0x45fd('0x11b')]&&(this[_0x45fd('0x89')]||(_0x3379d2[_0x45fd('0x25')]>0x0&&_0x3379d2[_0x3379d2[_0x45fd('0x25')]-0x1]&&_0x3379d2[_0x3379d2[_0x45fd('0x25')]-0x1][_0x45fd('0xde')]?_0x3379d2[_0x45fd('0xa4')]():(_0x59ea8f[_0x45fd('0x154')]=_0x2fc916((..._0x5243be)=>_0xcdf9cd[_0x45fd('0x37')](..._0x5243be,{'forceDefaultExecution':!0x0}),..._0x3379d2),_0x59ea8f[_0x45fd('0x8e')]())));},{'priority':'high'});}[_0x45fd('0xde')](_0xf34720){let _0x2d10e2,_0x2a34c0;const _0x331d89=this[_0x45fd('0x89')];this[_0x45fd('0x89')]=!0x0;try{_0x2d10e2=_0xf34720();}catch(_0x3d75a3){_0x2a34c0=_0x3d75a3;}return _0x331d89||(this[_0x45fd('0x89')]=!0x1),_0x2a34c0&&_0x4f5e3f[_0x45fd('0xc1')](_0x2a34c0,this),_0x2d10e2;}[_0x45fd('0x112')](_0x7390d0,_0x3a8c14=null,_0x2c517a={}){if(_0x7390d0[_0x45fd('0x10d')])return null;const _0x5001fb=this['editor']['plugins'][_0x45fd('0x20')](_0x45fd('0x136'))['me'];for(const {suggestion:_0x145a43,meta:_0x5d9de6}of this[_0x45fd('0xfe')](_0x7390d0,_0x45fd('0x2e')))if(_0x5d9de6['isOwn']){if(!_0x5d9de6[_0x45fd('0xaa')]){if(_0x5d9de6[_0x45fd('0xb9')]){if(!this[_0x45fd('0x140')]||!Gt(_0x145a43,_0x2c517a))continue;return _0x145a43;}if(Gt(_0x145a43,_0x2c517a))return _0x145a43;this[_0x45fd('0x14b')](_0x145a43,_0x7390d0['start'],_0x7390d0[_0x45fd('0x102')]);break;}if(_0x3a8c14==_0x145a43[_0x45fd('0x27')]&&Gt(_0x145a43,_0x2c517a)){const _0x2ce99e=_0x145a43[_0x45fd('0x17')]();return _0x2ce99e['start'][_0x45fd('0x7e')](_0x7390d0['end'])?this['_setSuggestionRange'](_0x145a43,this[_0x45fd('0xe')][_0x45fd('0x9a')](_0x7390d0[_0x45fd('0x12d')],_0x2ce99e['end'])):this['_setSuggestionRange'](_0x145a43,this[_0x45fd('0xe')]['createRange'](_0x2ce99e[_0x45fd('0x12d')],_0x7390d0[_0x45fd('0x102')])),_0x145a43;}}const _0x365d69=_0x1d4647(),_0x5e5103=_0x5001fb['id'],_0x5a6ffa=_0x3a8c14?_0x45fd('0x124')+_0x3a8c14:_0x45fd('0x2e'),_0x44e80e=this['_setSuggestionData']({'id':_0x365d69,'type':_0x5a6ffa,'createdAt':new Date(),'authorId':_0x5e5103,'attributes':_0x2c517a});return this[_0x45fd('0xad')](_0x5a6ffa,_0x365d69,_0x5e5103,_0x7390d0),_0x44e80e;}[_0x45fd('0xc0')](_0xe9e2eb,_0x827842=_0x45fd('0x12e'),_0x4e75a5={}){const _0x93435f=this[_0x45fd('0xbc')][_0x45fd('0x12b')][_0x45fd('0x20')](_0x45fd('0x136'))['me'],_0x18d34b=this[_0x45fd('0xb7')][_0x45fd('0x15f')](_0x45fd('0x2e'),_0x827842,_0x45fd('0x131'));for(const _0x2965bf of this['getSuggestions']())if(_0x2965bf[_0x45fd('0xc9')]['id']==_0x93435f['id']&&_0x45fd('0x2e')==_0x2965bf[_0x45fd('0xda')]&&_0x2965bf[_0x45fd('0x27')]==_0x827842&&Gt(_0x2965bf,_0x4e75a5)&&(_0x18d34b(_0x2965bf['getRanges'](),_0xe9e2eb)||_0x18d34b(_0xe9e2eb,_0x2965bf[_0x45fd('0x2f')]()))){for(const _0x324045 of _0xe9e2eb)_0x2965bf[_0x45fd('0x168')](_0x324045);return _0x2965bf;}for(const {suggestion:_0x3939aa,meta:_0x286984}of this[_0x45fd('0xfe')](_0xe9e2eb,_0x45fd('0x2e'))){if(!_0x286984[_0x45fd('0x35')])continue;if(!this[_0x45fd('0x140')]&&_0x286984[_0x45fd('0xb9')])continue;if(!Gt(_0x3939aa,_0x4e75a5))continue;let _0x59aa5b=!0x0;for(const _0x32c102 of _0x3939aa['getRanges']())for(const _0x5384c9 of _0xe9e2eb)if(!_0x32c102[_0x45fd('0x174')](_0x5384c9)){_0x59aa5b=!0x1;break;}if(_0x59aa5b)return _0x3939aa;}const _0x145a92=_0x1d4647(),_0x2a91c3=_0x93435f['id'],_0x5d13fa='insertion:'+_0x827842,_0x5e942e=this['_setSuggestionData']({'id':_0x145a92,'type':_0x5d13fa,'createdAt':new Date(),'authorId':_0x2a91c3,'attributes':_0x4e75a5});for(const _0x1bcb2e of _0xe9e2eb)this[_0x45fd('0xad')](_0x5d13fa,_0x145a92,_0x2a91c3,_0x1bcb2e,_0x1de743['getMultiRangeId']());return _0x5e942e;}[_0x45fd('0x70')](_0x2460eb,_0x22a153,_0x13dccc=null,_0x2022be={}){if(_0x13dccc=_0x13dccc||Et(_0x22a153),_0x2460eb['isCollapsed'])return null;if('never'===this[_0x45fd('0x71')]){const _0x4e3aab=this[_0x45fd('0xb7')][_0x45fd('0x15f')](_0x45fd('0x78'),_0x13dccc,_0x45fd('0x147'));return this[_0x45fd('0xde')](()=>_0x4e3aab([_0x2460eb],_0x22a153,_0x2022be)),null;}const _0x4a1daf=this[_0x45fd('0xbc')][_0x45fd('0x12b')][_0x45fd('0x20')](_0x45fd('0x136'))['me'],_0x1aee41=[];if(_0x45fd('0x9f')!==this[_0x45fd('0x71')])for(const {suggestion:_0x2dc1f4,meta:_0x2f8c3d}of this[_0x45fd('0xfe')](_0x2460eb,_0x45fd('0x2e')))_0x2f8c3d['isOwn']&&!_0x2f8c3d['isInsideObject']&&_0x1aee41[_0x45fd('0xd2')](..._0x2dc1f4['getRanges']());const _0x36e975=function(_0x3eb53b,_0x16ffd3){const _0x5985b8=[];for(const _0x3c2e16 of _0x16ffd3){const _0x2fb90c=_0x3eb53b[_0x45fd('0x106')](_0x3c2e16);_0x2fb90c&&_0x5985b8[_0x45fd('0xd2')](_0x2fb90c);}return _0x5985b8;}(_0x2460eb,_0x1aee41),_0x3f725f=function(_0x351779,_0x4c9dff){const _0x1ff6af=[_0x351779];for(const _0x310cd1 of _0x4c9dff){let _0x548c1d=0x0;for(;_0x548c1d<_0x1ff6af[_0x45fd('0x25')];){const _0x7e9248=_0x1ff6af[_0x548c1d][_0x45fd('0x149')](_0x310cd1);_0x1ff6af[_0x45fd('0x3c')](_0x548c1d,0x1,..._0x7e9248),_0x548c1d+=_0x7e9248[_0x45fd('0x25')];}}return _0x1ff6af;}(_0x2460eb,_0x1aee41);_0x36e975['length']&&this[_0x45fd('0xe')][_0x45fd('0x5c')](()=>{for(const _0x4dfb13 of _0x36e975){const _0x562f9e=this[_0x45fd('0xb7')][_0x45fd('0x15f')](_0x45fd('0x78'),_0x13dccc,_0x45fd('0x147'));this[_0x45fd('0xde')](()=>_0x562f9e([_0x4dfb13],_0x22a153,_0x2022be));}});for(const _0x3927c0 of _0x3f725f){let _0x7e9d52=null,_0x1435da=_0x3927c0['start'],_0x10f979=_0x3927c0[_0x45fd('0x102')];for(const {suggestion:_0x272c3a,meta:_0x777a6}of this[_0x45fd('0xfe')](_0x3927c0,'formatInline')){if(!_0x777a6[_0x45fd('0x35')])continue;if(_0x272c3a['subType']!=_0x13dccc)continue;if(!Gt(_0x272c3a,_0x2022be))continue;const _0x41d2c9=_0x272c3a[_0x45fd('0x17')]();if(_0x41d2c9['containsRange'](_0x3927c0,!0x0))return null;_0x1435da=_0x1435da[_0x45fd('0x165')](_0x41d2c9[_0x45fd('0x12d')])?_0x1435da:_0x41d2c9[_0x45fd('0x12d')],_0x10f979=_0x10f979[_0x45fd('0xce')](_0x41d2c9['end'])?_0x10f979:_0x41d2c9[_0x45fd('0x102')],_0x7e9d52?_0x41d2c9[_0x45fd('0x12d')][_0x45fd('0x165')](_0x7e9d52['getFirstRange']()[_0x45fd('0x12d')])?(_0x7e9d52[_0x45fd('0x13')](),_0x7e9d52=_0x272c3a):_0x272c3a[_0x45fd('0x13')]():_0x7e9d52=_0x272c3a;}const _0x580275=this['_model'][_0x45fd('0x9a')](_0x1435da,_0x10f979);if(_0x7e9d52)this[_0x45fd('0xdf')](_0x7e9d52,_0x580275);else{const _0x27ac5a=_0x1d4647(),_0x302f91=_0x4a1daf['id'];this[_0x45fd('0xd9')]({'id':_0x27ac5a,'type':_0x45fd('0xff')+_0x13dccc,'data':_0x22a153,'createdAt':new Date(),'authorId':_0x302f91,'attributes':_0x2022be}),this[_0x45fd('0xad')](_0x45fd('0xff')+_0x13dccc,_0x27ac5a,_0x302f91,_0x580275);}}return null;}[_0x45fd('0x73')](_0x41ccfb,_0x5093e1,_0x4b9136=[],_0x20bc6b=null,_0xbbbf20={}){_0x5093e1['formatGroupId']||(_0x5093e1[_0x45fd('0xe7')]=_0x5093e1[_0x45fd('0x83')]),_0x5093e1['multipleBlocks']=_0x41ccfb['is'](_0x45fd('0x4d')),_0x20bc6b=_0x20bc6b||Et(_0x5093e1);const _0xcb148a=_0x4b9136[_0x45fd('0x22')](_0x41720d=>Ut(_0x41720d,this[_0x45fd('0xe')])),_0x2ea699=_0x41ccfb['is'](_0x45fd('0x4d'))?_0x41ccfb:Ut(_0x41ccfb,this['_model']);if(_0x45fd('0x107')===this['_trackFormatChanges']){const _0x32a5e9=this[_0x45fd('0xb7')][_0x45fd('0x15f')]('formatBlock',_0x20bc6b,_0x45fd('0x147'));return this[_0x45fd('0xde')](()=>_0x32a5e9([_0x2ea699],_0x5093e1,_0xbbbf20)),null;}_0xcb148a[_0x45fd('0xd2')](_0x2ea699);let _0x32f283=!0x0;for(const _0x1948a5 of _0xcb148a)if(!this[_0x45fd('0x128')](_0x1948a5)){_0x32f283=!0x1;break;}if(_0x32f283&&_0x45fd('0x9f')!==this[_0x45fd('0x71')]){const _0x433bd1=this[_0x45fd('0xb7')][_0x45fd('0x15f')](_0x45fd('0x51'),_0x20bc6b,_0x45fd('0x147'));return this[_0x45fd('0xde')](()=>_0x433bd1([_0x2ea699],_0x5093e1,_0xbbbf20)),null;}let _0x2b4b0d=null,_0xaa3726=_0x2ea699[_0x45fd('0x12d')],_0x1442a4=_0x2ea699[_0x45fd('0x102')];for(const {suggestion:_0x5b4b29,meta:_0x24d56c}of this[_0x45fd('0xfe')](_0x2ea699,_0x45fd('0x51'))){if(!_0x24d56c[_0x45fd('0x35')])continue;if(_0x24d56c['isNextTo']||_0x24d56c[_0x45fd('0xb9')]||_0x24d56c['isInsideObject'])continue;if(_0x5b4b29[_0x45fd('0x163')][_0x45fd('0xe7')]!=_0x5093e1[_0x45fd('0xe7')])continue;if(!Gt(_0x5b4b29,_0xbbbf20))continue;const _0x395525=_0x5b4b29[_0x45fd('0x17')]();if(_0x5b4b29['subType']==_0x20bc6b){if(_0x395525['containsRange'](_0x2ea699,!0x0))return null;_0xaa3726=_0xaa3726[_0x45fd('0x165')](_0x395525['start'])?_0xaa3726:_0x395525['start'],_0x1442a4=_0x1442a4[_0x45fd('0xce')](_0x395525[_0x45fd('0x102')])?_0x1442a4:_0x395525[_0x45fd('0x102')],_0x2b4b0d?_0x395525[_0x45fd('0x12d')][_0x45fd('0x165')](_0x2b4b0d[_0x45fd('0x17')]()[_0x45fd('0x12d')])?(_0x2b4b0d[_0x45fd('0x13')](),_0x2b4b0d=_0x5b4b29):_0x5b4b29[_0x45fd('0x13')]():_0x2b4b0d=_0x5b4b29;}else{const _0x33b528=_0x2ea699['getIntersection'](_0x395525);this[_0x45fd('0x15b')](_0x5b4b29,_0x33b528);}}const _0x4b5582=this['editor'][_0x45fd('0x12b')][_0x45fd('0x20')](_0x45fd('0x136'))['me'],_0x10ac37=_0x1d4647(),_0x391b40=_0x4b5582['id'];if(_0x2b4b0d)return this[_0x45fd('0xdf')](_0x2b4b0d,this[_0x45fd('0xe')][_0x45fd('0x9a')](_0xaa3726,_0x1442a4)),_0x2b4b0d;{const _0x51485a=this[_0x45fd('0xd9')]({'id':_0x10ac37,'type':'formatBlock:'+_0x20bc6b,'data':_0x5093e1,'createdAt':new Date(),'authorId':_0x391b40,'attributes':_0xbbbf20});return this[_0x45fd('0xad')](_0x45fd('0x175')+_0x20bc6b,_0x10ac37,_0x391b40,this['_model'][_0x45fd('0x9a')](_0xaa3726,_0x1442a4)),_0x51485a;}}['markMultiRangeBlockFormat'](_0x2ff549,_0x1b787e,_0x2632e4=[],_0x3259c1=null,_0x403909={}){_0x1b787e[_0x45fd('0xe7')]||(_0x1b787e[_0x45fd('0xe7')]=_0x1b787e[_0x45fd('0x83')]);const _0x4a369e=_0x2ff549[0x0];_0x1b787e['multipleBlocks']=_0x4a369e['is'](_0x45fd('0x4d')),_0x3259c1=_0x3259c1||Et(_0x1b787e);const _0x31b275=_0x2632e4[_0x45fd('0x22')](_0x3d8018=>Ut(_0x3d8018,this['_model'])),_0x1f7579=_0x4a369e['is'](_0x45fd('0x4d'))?_0x2ff549:_0x2ff549[_0x45fd('0x22')](_0x3f2e3a=>Ut(_0x3f2e3a,this['_model']));if(_0x45fd('0x107')===this['_trackFormatChanges']){const _0x2dba5a=this[_0x45fd('0xb7')][_0x45fd('0x15f')]('formatBlock',_0x3259c1,_0x45fd('0x147'));return this[_0x45fd('0xde')](()=>_0x2dba5a(_0x1f7579,_0x1b787e,_0x403909)),null;}_0x31b275[_0x45fd('0xd2')](..._0x1f7579);let _0x3a9bd6=!0x0;for(const _0x457a87 of _0x31b275)if(!this[_0x45fd('0x128')](_0x457a87)){_0x3a9bd6=!0x1;break;}if(_0x3a9bd6&&_0x45fd('0x9f')!==this['_trackFormatChanges']){const _0x5b178a=this[_0x45fd('0xb7')]['getSuggestionCallback'](_0x45fd('0x51'),_0x3259c1,'accept');return this[_0x45fd('0xde')](()=>_0x5b178a(_0x1f7579,_0x1b787e,_0x403909)),null;}const _0x8209d4=this[_0x45fd('0xbc')][_0x45fd('0x12b')][_0x45fd('0x20')]('Users')['me'];for(const _0x35d9c2 of this[_0x45fd('0x90')]()){if(_0x35d9c2[_0x45fd('0xc9')]['id']!=_0x8209d4['id'])continue;if('formatBlock'!=_0x35d9c2['type']||_0x35d9c2[_0x45fd('0x163')][_0x45fd('0xe7')]!=_0x1b787e[_0x45fd('0xe7')])continue;if(!Gt(_0x35d9c2,_0x403909))continue;const _0x1bc0ce=_0x35d9c2[_0x45fd('0x27')]==_0x3259c1;for(let _0x2bee88=0x0;_0x2bee88<_0x1f7579['length'];_0x2bee88++){const _0x5c44b9=_0x1f7579[_0x2bee88];for(const _0xcbfd4e of _0x35d9c2[_0x45fd('0x68')]()){const _0x3a770b=_0xcbfd4e['getRange']();if(_0x5c44b9[_0x45fd('0x7e')](_0x3a770b)){_0x1bc0ce?(_0x1f7579[_0x45fd('0x3c')](_0x2bee88,0x1),_0x2bee88--):_0x35d9c2[_0x45fd('0x13d')](_0xcbfd4e[_0x45fd('0x32')]);break;}}}}if(0x0==_0x1f7579[_0x45fd('0x25')])return null;const _0x4a8557=this['_suggestionFactory'][_0x45fd('0x15f')]('formatBlock',_0x3259c1,_0x45fd('0x131'));for(const _0x56ac82 of this[_0x45fd('0x90')]())if(_0x56ac82['author']['id']==_0x8209d4['id']&&_0x45fd('0x51')==_0x56ac82[_0x45fd('0xda')]&&_0x56ac82[_0x45fd('0x163')][_0x45fd('0xe7')]==_0x1b787e[_0x45fd('0xe7')]&&_0x56ac82['subType']==_0x3259c1&&Gt(_0x56ac82,_0x403909)&&(_0x4a8557(_0x56ac82[_0x45fd('0x2f')](),_0x1f7579)||_0x4a8557(_0x1f7579,_0x56ac82[_0x45fd('0x2f')]()))){for(const _0x109963 of _0x1f7579)_0x56ac82['addRange'](_0x109963);return _0x56ac82;}const _0x77823d=_0x1d4647(),_0x4d52c0=_0x8209d4['id'],_0xd717b4=_0x45fd('0x175')+_0x3259c1,_0x383c9=this[_0x45fd('0xd9')]({'id':_0x77823d,'type':_0xd717b4,'data':_0x1b787e,'createdAt':new Date(),'authorId':_0x4d52c0,'attributes':_0x403909});for(const _0x3923bd of _0x1f7579)this[_0x45fd('0xad')](_0xd717b4,_0x77823d,_0x4d52c0,_0x3923bd,_0x1de743[_0x45fd('0x55')]());return _0x383c9;}[_0x45fd('0x62')](_0x272d63,_0x201599=null,_0x2b3ecf={}){if(_0x272d63[_0x45fd('0x10d')])return null;const _0x2042e0=this[_0x45fd('0xbc')]['plugins'][_0x45fd('0x20')](_0x45fd('0x136'))['me'],_0x2697e9=new _0x1586d7(_0x272d63[_0x45fd('0x12d')],_0x272d63[_0x45fd('0x102')]);for(const {suggestion:_0xc09381,meta:_0x1d374b}of this['_findSuggestions'](_0x2697e9,'insertion'))if(_0x1d374b[_0x45fd('0x35')]&&!_0x1d374b[_0x45fd('0xaa')]){if(_0xc09381['isMultiRange']){const _0x499bce=_0xc09381['getRanges']()[_0x45fd('0x14')](_0x160061=>_0x45fd('0x6b')!=_0x160061['root']['rootName']);_0x499bce[_0x45fd('0x171')](_0x5dcf60=>_0x2697e9['containsRange'](_0x5dcf60,!0x0))&&_0xc09381['discard']();if(_0x499bce[_0x45fd('0x1e')](_0x19d394=>_0x19d394['containsRange'](_0x2697e9,!0x0))){const _0xc2e1c1=this[_0x45fd('0xb7')]['getSuggestionCallback'](_0x45fd('0x161'),_0x201599,_0x45fd('0x147'));return this['forceDefaultExecution'](()=>_0xc2e1c1([_0x2697e9],null,_0x2b3ecf)),null;}}else{const _0xbfbb7b=_0x2697e9[_0x45fd('0x106')](_0xc09381[_0x45fd('0x17')]());null!==_0xbfbb7b&&_0xc09381[_0x45fd('0x152')]([_0xbfbb7b],null,_0x2b3ecf);}}if(_0x2697e9[_0x45fd('0x43')](),_0x2697e9[_0x45fd('0x10d')]||_0x45fd('0x6b')==_0x2697e9[_0x45fd('0x115')][_0x45fd('0xba')])return null;let _0x13cc2a=null,_0x586226=_0x2697e9[_0x45fd('0x12d')],_0x5af5bd=_0x2697e9[_0x45fd('0x102')];const _0x1783b1=this[_0x45fd('0xfe')](_0x2697e9,_0x45fd('0x161'));for(const {suggestion:_0x1785d8,meta:_0xb5e0f6}of _0x1783b1){const _0x29cd70=this[_0x45fd('0xe')][_0x45fd('0x9a')](_0x586226,_0x5af5bd);if(_0xb5e0f6[_0x45fd('0x35')]&&(this[_0x45fd('0x140')]||!_0xb5e0f6[_0x45fd('0xb9')]&&!_0xb5e0f6[_0x45fd('0x6d')])){if(_0x1785d8['isMultiRange']){if(!Gt(_0x1785d8,_0x2b3ecf))continue;let _0x1f4c91=!0x0;for(const _0x10a706 of _0x1785d8[_0x45fd('0x2f')]()){if(_0x10a706['containsRange'](_0x29cd70,!0x0))return _0x1785d8;_0x29cd70[_0x45fd('0x174')](_0x10a706)||(_0x1f4c91=!0x1);}_0x1f4c91&&_0x1785d8[_0x45fd('0xe6')]();}else{const _0xf08eba=_0x1785d8['getFirstRange']();if(_0xf08eba['containsRange'](_0x29cd70,!0x0))return _0x1785d8;if(!Gt(_0x1785d8,_0x2b3ecf)){_0x29cd70[_0x45fd('0x174')](_0xf08eba)?_0x1785d8[_0x45fd('0x13')]():_0xf08eba[_0x45fd('0x3e')](_0x586226)?_0x586226=_0xf08eba['end']:_0xf08eba['containsPosition'](_0x5af5bd)&&(_0x5af5bd=_0xf08eba[_0x45fd('0x12d')]);continue;}_0x586226=_0x586226[_0x45fd('0x165')](_0xf08eba[_0x45fd('0x12d')])?_0x586226:_0xf08eba['start'],_0x5af5bd=_0x5af5bd['isAfter'](_0xf08eba[_0x45fd('0x102')])?_0x5af5bd:_0xf08eba[_0x45fd('0x102')],_0x2b3ecf=Object['assign']({},_0x1785d8['attributes']),_0x13cc2a?_0xf08eba['start'][_0x45fd('0x165')](_0x13cc2a[_0x45fd('0x17')]()['start'])?(_0x13cc2a[_0x45fd('0x13')](),_0x13cc2a=_0x1785d8):_0x1785d8['removeMarkers']():_0x13cc2a=_0x1785d8;}}}if(_0x13cc2a)return this[_0x45fd('0xdf')](_0x13cc2a,this['_model'][_0x45fd('0x9a')](_0x586226,_0x5af5bd)),_0x13cc2a;{const _0x588bc4=_0x1d4647(),_0x26e3c0=this[_0x45fd('0xe')]['createRange'](_0x586226,_0x5af5bd),_0x29d828=_0x2042e0['id'],_0x15b7c5=_0x201599?_0x45fd('0x38')+_0x201599:_0x45fd('0x161'),_0x39f6e9=this[_0x45fd('0xd9')]({'id':_0x588bc4,'type':_0x15b7c5,'createdAt':new Date(),'authorId':_0x29d828,'attributes':_0x2b3ecf});return this['_addSuggestionMarker'](_0x15b7c5,_0x588bc4,_0x29d828,_0x26e3c0),_0x39f6e9;}}[_0x45fd('0x7c')](_0x42b990,_0x3434f1='multi',_0x5d1f12={}){const _0x1cb606=this[_0x45fd('0xbc')][_0x45fd('0x12b')][_0x45fd('0x20')](_0x45fd('0x136'))['me'],_0x40e5cf=_0x42b990[_0x45fd('0x22')](_0x2ac8df=>new _0x1586d7(_0x2ac8df[_0x45fd('0x12d')],_0x2ac8df[_0x45fd('0x102')])),_0x1d4ef1=new Set();for(const {suggestion:_0x1113cc,meta:_0x7466c3}of this[_0x45fd('0xfe')](_0x40e5cf,'insertion'))_0x7466c3[_0x45fd('0x35')]&&!_0x7466c3['isNextTo']&&_0x1d4ef1[_0x45fd('0xef')](_0x1113cc);for(const _0x9d66a7 of _0x1d4ef1)if(_0x9d66a7[_0x45fd('0xd0')]){const _0x42a3af=_0x9d66a7[_0x45fd('0x2f')]();(!_0x9d66a7['attributes']||!_0x9d66a7[_0x45fd('0x16b')]['skipNestingCheck'])&&(_0x42a3af[_0x45fd('0x171')](_0x4bd345=>_0x40e5cf[_0x45fd('0x1e')](_0x19286c=>_0x19286c['containsRange'](_0x4bd345,!0x0)))&&_0x9d66a7[_0x45fd('0xe6')]());if(_0x40e5cf[_0x45fd('0x171')](_0x1424d3=>_0x42a3af[_0x45fd('0x1e')](_0x22e0d8=>_0x22e0d8[_0x45fd('0x174')](_0x1424d3,!0x0)))){const _0x332d52=this[_0x45fd('0xb7')][_0x45fd('0x15f')](_0x45fd('0x161'),_0x3434f1,_0x45fd('0x147'));return this[_0x45fd('0xde')](()=>_0x332d52(_0x42b990,null,_0x5d1f12)),null;}}else{const _0x503d34=_0x9d66a7[_0x45fd('0x17')]();_0x40e5cf['some'](_0x5cac94=>_0x5cac94['containsRange'](_0x503d34,!0x0))&&_0x9d66a7['discard']();if(_0x40e5cf[_0x45fd('0x171')](_0x5e0360=>_0x503d34[_0x45fd('0x174')](_0x5e0360,!0x0))){const _0x45e270=this[_0x45fd('0xb7')][_0x45fd('0x15f')]('deletion',_0x3434f1,_0x45fd('0x147'));return this['forceDefaultExecution'](()=>_0x45e270(_0x40e5cf,null,_0x5d1f12)),null;}}const _0x17617c=this[_0x45fd('0xb7')][_0x45fd('0x15f')]('deletion',_0x3434f1,_0x45fd('0x131'));let _0x35c495=null;for(const _0x129839 of this['getSuggestions']())if(_0x129839['author']['id']==_0x1cb606['id']&&_0x129839[_0x45fd('0xa5')]&&_0x45fd('0x161')==_0x129839[_0x45fd('0xda')]&&_0x129839['subType']==_0x3434f1&&Gt(_0x129839,_0x5d1f12)&&(_0x17617c(_0x129839[_0x45fd('0x2f')](),_0x40e5cf)||_0x17617c(_0x40e5cf,_0x129839[_0x45fd('0x2f')]()))){if(_0x35c495){if(_0x129839['commentThread']&&_0x129839[_0x45fd('0x141')][_0x45fd('0x25')])continue;for(const _0x168d32 of _0x129839[_0x45fd('0x2f')]())_0x35c495[_0x45fd('0xf2')](_0x168d32)||_0x35c495['addRange'](_0x168d32);_0x129839['removeMarkers']();}else{_0x35c495=_0x129839;for(const _0x75ef03 of _0x40e5cf)_0x129839[_0x45fd('0xf2')](_0x75ef03)||_0x129839[_0x45fd('0x168')](_0x75ef03);}}if(_0x35c495)return _0x35c495;_0x1d4ef1[_0x45fd('0x6e')]();for(const {suggestion:_0x2f7426,meta:_0x8f5d22}of this['_findSuggestions'](_0x40e5cf,_0x45fd('0x161')))_0x8f5d22[_0x45fd('0x35')]&&(this['_mergeNestedSuggestions']||!_0x8f5d22[_0x45fd('0xb9')]&&!_0x8f5d22[_0x45fd('0x6d')])&&Gt(_0x2f7426,_0x5d1f12)&&_0x1d4ef1[_0x45fd('0xef')](_0x2f7426);for(const _0xbc48b3 of _0x1d4ef1){const _0x4e6b9e=_0xbc48b3[_0x45fd('0x2f')]();if(!_0x5d1f12||!_0x5d1f12['skipNestingCheck']){if(_0x40e5cf[_0x45fd('0x171')](_0x26060a=>_0x4e6b9e[_0x45fd('0x1e')](_0x24117e=>_0x24117e[_0x45fd('0x174')](_0x26060a,!0x0))))return _0xbc48b3;}(!_0xbc48b3['attributes']||!_0xbc48b3['attributes'][_0x45fd('0x1d')])&&(_0x4e6b9e['every'](_0x36d5d8=>_0x40e5cf['some'](_0xb599f5=>_0xb599f5[_0x45fd('0x174')](_0x36d5d8,!0x0)))&&_0xbc48b3[_0x45fd('0xe6')]());}const _0xc344b2=_0x1d4647(),_0x33f6ce=_0x1cb606['id'],_0x31f6ba='deletion:'+_0x3434f1,_0x51cf03=this['_setSuggestionData']({'id':_0xc344b2,'type':_0x31f6ba,'createdAt':new Date(),'authorId':_0x33f6ce,'attributes':_0x5d1f12});for(const _0x4375d of _0x40e5cf)_0x4375d['detach'](),_0x4375d['isCollapsed']||'$graveyard'==_0x4375d[_0x45fd('0x115')][_0x45fd('0xba')]||this['_addSuggestionMarker'](_0x31f6ba,_0xc344b2,_0x33f6ce,_0x4375d,_0x1de743[_0x45fd('0x55')]());return _0x51cf03;}[_0x45fd('0x16a')](_0x42031f,_0x406071,_0x5931ad,_0x10e444,_0x5ad58a){if(_0x42031f[_0x45fd('0x10d')])return[];if(_0x45fd('0x107')===this[_0x45fd('0x71')])return[];const _0x1dc491=this[_0x45fd('0xbc')][_0x45fd('0x12b')][_0x45fd('0x20')](_0x45fd('0x136'))['me']['id'],_0x29a2a7=Array['from'](this[_0x45fd('0x144')]['values']())[_0x45fd('0x14')](_0x9ce8be=>'attribute'==_0x9ce8be['type']&&_0x9ce8be['data'][_0x45fd('0x69')]==_0x406071&&_0x9ce8be[_0x45fd('0xf2')](_0x42031f));if(_0x45fd('0x18')===this[_0x45fd('0x71')]){const _0x18808f=this[_0x45fd('0xfe')](_0x42031f,_0x45fd('0x2e'))[_0x45fd('0x14')](({meta:_0x4c7c0e})=>_0x4c7c0e[_0x45fd('0x35')]&&!_0x4c7c0e[_0x45fd('0x6d')]&&!_0x4c7c0e[_0x45fd('0xaa')])[_0x45fd('0x22')](({suggestion:_0x4e2a5d})=>_0x4e2a5d);_0x29a2a7[_0x45fd('0x41')](..._0x18808f);}const _0x17f860=new Map([[_0x42031f,_0x5931ad]]);for(const _0x44a96e of _0x29a2a7){const _0x88687c=_0x45fd('0x126')==_0x44a96e[_0x45fd('0xda')]?_0x44a96e[_0x45fd('0x163')][_0x45fd('0x173')]:void 0x0,_0x443152=_0x44a96e[_0x45fd('0x17')](),_0x2fbd36=Array[_0x45fd('0x19')](_0x17f860[_0x45fd('0x97')]())[_0x45fd('0x123')](_0x40d708=>_0x40d708[_0x45fd('0xb4')](_0x443152));if(!_0x2fbd36)continue;const _0x172e68=_0x2fbd36[_0x45fd('0x149')](_0x443152);this[_0x45fd('0x122')](_0x406071)&&_0x45fd('0x2e')==_0x44a96e[_0x45fd('0xda')]&&0x0!=_0x172e68[_0x45fd('0x25')]||(_0x17f860[_0x45fd('0xee')](_0x2fbd36),_0x172e68[_0x45fd('0x3f')](_0x4167f0=>{_0x17f860[_0x45fd('0x5a')](_0x4167f0,_0x5931ad);}),_0x45fd('0x2e')!=_0x44a96e[_0x45fd('0xda')]&&_0x88687c!=_0x10e444&&_0x17f860[_0x45fd('0x5a')](_0x2fbd36[_0x45fd('0x106')](_0x443152),_0x88687c));}const _0x1403aa=[];for(const [_0x588596,_0x4bd45c]of _0x17f860){const _0x5a762e=_0x1d4647(),_0x38e864={'key':_0x406071,'oldValue':_0x4bd45c,'newValue':_0x10e444};_0x406071[_0x45fd('0x25')]>0x25&&console['warn'](_0x45fd('0x15a'),{'key':_0x406071});const _0x14922c=(_0x45fd('0xa8')+(_0x406071+'|'+Et({'newValue':_0x10e444})))['substring'](0x0,0x3c),_0x5e8206=this['_setSuggestionData']({'id':_0x5a762e,'type':_0x14922c,'data':_0x38e864,'createdAt':new Date(),'authorId':_0x1dc491,'attributes':_0x5ad58a});_0x1403aa[_0x45fd('0xd2')](_0x5e8206),this[_0x45fd('0xad')](_0x14922c,_0x5a762e,_0x1dc491,_0x588596);}return _0x1403aa;}[_0x45fd('0xa2')](_0x53a6fc){this[_0x45fd('0xe4')][_0x45fd('0xef')](_0x53a6fc);}[_0x45fd('0x11c')](_0x144120){this[_0x45fd('0xcd')][_0x45fd('0xef')](_0x144120);}[_0x45fd('0xdd')](_0x14e891,_0x17c7d7=[],_0x2d3206=[]){this['enableCommand'](_0x14e891,(_0x2d8d9e,..._0x2bdabc)=>{this['_recordAttributeChanges'](()=>{_0x2d8d9e(..._0x2bdabc);});});for(const _0x5cd325 of _0x17c7d7)this[_0x45fd('0x11c')](_0x5cd325);for(const _0x2637fe of _0x2d3206)this['_registerBlockAttribute'](_0x2637fe);}[_0x45fd('0xdf')](_0x14fece,_0xc3be23){const _0x2d282c=_0x14fece[_0x45fd('0x116')]();this[_0x45fd('0xe')][_0x45fd('0x5c')](_0x5942a4=>{_0x5942a4[_0x45fd('0x8a')](_0x2d282c,{'range':_0xc3be23});});}['_addThreadToSuggestion'](_0x5c4fc9){const _0xe679fd=_0x5c4fc9['id'],_0x22bdfd=this[_0x45fd('0xbc')][_0x45fd('0x11')][_0x45fd('0x20')](_0x45fd('0x13b'));this['_commentsRepository'][_0x45fd('0x72')](_0xe679fd)||this[_0x45fd('0x74')]['addCommentThread']({'channelId':_0x22bdfd,'threadId':_0xe679fd,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x19e485=this['_commentsRepository'][_0x45fd('0x143')](_0xe679fd);_0x19e485['unbind'](_0x45fd('0x139')),_0x19e485['isRemovable']=!0x1,_0x5c4fc9[_0x45fd('0x141')]=_0x19e485;}['_checkSuggestionCorrectness'](_0x63fc48,_0x5c2c2b,_0x50e028,_0x28d5be){if(_0x63fc48[_0x45fd('0xda')]!=_0x5c2c2b||_0x63fc48[_0x45fd('0x27')]!=_0x50e028||_0x63fc48[_0x45fd('0x9c')]['id']!=_0x28d5be)throw this[_0x45fd('0xbc')]['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4f5e3f(_0x45fd('0x30'),this);}['_cutOutSuggestionMarker'](_0x42992a,_0x3d7ae2){const _0x50a3ca=_0x42992a[_0x45fd('0x17')]();if(_0x3d7ae2[_0x45fd('0x7e')](_0x50a3ca))_0x42992a[_0x45fd('0x13')]();else{if(_0x50a3ca[_0x45fd('0x174')](_0x3d7ae2)){const _0x43e05a=this['_model'][_0x45fd('0x65')](_0x3d7ae2['start'][_0x45fd('0x6f')],'end');this[_0x45fd('0xdf')](_0x42992a,this[_0x45fd('0xe')][_0x45fd('0x9a')](_0x50a3ca[_0x45fd('0x12d')],_0x43e05a));const _0x4b4c04=_0x1d4647(),_0x5a3fbe=_0x42992a[_0x45fd('0x9c')]['id'],_0x4fac2b=_0x42992a['type']+':'+_0x42992a[_0x45fd('0x27')];this[_0x45fd('0xd9')]({'id':_0x4b4c04,'type':_0x4fac2b,'createdAt':new Date(),'authorId':_0x5a3fbe,'data':_0x42992a['data'],'attributes':_0x42992a[_0x45fd('0x16b')]});const _0xfd1f14=this[_0x45fd('0xe')][_0x45fd('0x65')](_0x3d7ae2[_0x45fd('0x102')][_0x45fd('0x92')],_0x45fd('0xd5')),_0x37dba6=this[_0x45fd('0xe')][_0x45fd('0x9a')](_0xfd1f14,_0x50a3ca[_0x45fd('0x102')]);this['_addSuggestionMarker'](_0x4fac2b,_0x4b4c04,_0x5a3fbe,_0x37dba6);}else{if(_0x50a3ca['containsPosition'](_0x3d7ae2['start'])){const _0x3ae517=this['_model']['createPositionAt'](_0x3d7ae2[_0x45fd('0x12d')][_0x45fd('0x6f')],_0x45fd('0x102'));this[_0x45fd('0xdf')](_0x42992a,this[_0x45fd('0xe')][_0x45fd('0x9a')](_0x50a3ca[_0x45fd('0x12d')],_0x3ae517));}else{const _0x1a3c4c=this[_0x45fd('0xe')][_0x45fd('0x65')](_0x3d7ae2[_0x45fd('0x102')][_0x45fd('0x92')],'after');this[_0x45fd('0xdf')](_0x42992a,this[_0x45fd('0xe')][_0x45fd('0x9a')](_0x1a3c4c,_0x50a3ca[_0x45fd('0x102')]));}}}}[_0x45fd('0x128')](_0x3791c5){for(const {suggestion:_0x584fbe,meta:_0x5a4f4a}of this[_0x45fd('0xfe')](_0x3791c5,_0x45fd('0x2e'))){if(!_0x5a4f4a['isOwn'])continue;const _0x3e27dc=_0x584fbe[_0x45fd('0x2f')]();for(const _0x25e9cc of _0x3e27dc)if(!_0x3791c5[_0x45fd('0x149')](_0x25e9cc)[_0x45fd('0x25')])return!0x0;}return!0x1;}[_0x45fd('0x84')](_0x53f49b){const _0x52b04d=this[_0x45fd('0xbc')]['plugins'][_0x45fd('0x20')]('Users')[_0x45fd('0xbe')](_0x53f49b);if(!_0x52b04d)throw new _0x4f5e3f(_0x45fd('0x31'),this);return _0x52b04d;}[_0x45fd('0x93')](_0x591f11){const _0x2df92b=this['editor'][_0x45fd('0x12b')][_0x45fd('0x20')](_0x45fd('0x136')),_0xc7e10a=_0x59c5b9('external:'+_0x591f11),_0x502646=_0x2df92b[_0x45fd('0xbe')](_0xc7e10a);return _0x502646||_0x2df92b[_0x45fd('0xc8')]({'id':_0xc7e10a,'name':_0x591f11});}['_createSuggestion'](_0x4f5d2b,_0x4564c5,_0x45276b,_0x4d8e3c,_0xe438e5){const _0x232c30=this['_getAuthorFromId'](_0x4d8e3c),_0x172586=this[_0x45fd('0xb7')][_0x45fd('0x3b')](_0x4f5d2b,_0x4564c5,_0x45276b,_0x232c30,_0xe438e5,_0x5ceafa=>this[_0x45fd('0x10c')](_0x45276b,{'attributes':_0x5ceafa}));return this[_0x45fd('0x8')](_0x172586,_0x45fd('0x147'),()=>{this[_0x45fd('0x10c')](_0x45276b,{'state':_0x45fd('0xaf')});},{'priority':_0x45fd('0x127')}),this[_0x45fd('0x8')](_0x172586,'discard',()=>{this[_0x45fd('0x10c')](_0x45276b,{'state':'rejected'});},{'priority':'high'}),this[_0x45fd('0x144')][_0x45fd('0x5a')](_0x45276b,_0x172586),this[_0x45fd('0x67')]['set'](_0x172586,_0x45fd('0xd7')),_0x172586;}[_0x45fd('0x138')](_0x59c1eb){const _0x53ab64=_0x59c1eb['split'](':');return{'group':_0x53ab64[0x0],'type':_0x53ab64[0x1],'subType':_0x53ab64['length']>=0x5?_0x53ab64[0x2]:null,'id':_0x53ab64['length']<0x5?_0x53ab64[0x2]:_0x53ab64[0x3],'authorId':_0x53ab64['length']<0x5?_0x53ab64[0x3]:_0x53ab64[0x4],'markerCount':0x6==_0x53ab64[_0x45fd('0x25')]?_0x53ab64[0x5]:null};}[_0x45fd('0x14b')](_0x103ea3,_0x13dd24,_0x4e8211){const _0x5b1fa4=_0x103ea3['getFirstRange'](),_0x41419b=_0x5b1fa4[_0x45fd('0x12d')],_0x84115c=_0x5b1fa4[_0x45fd('0x102')];this[_0x45fd('0xdf')](_0x103ea3,this['_model'][_0x45fd('0x9a')](_0x41419b,_0x13dd24));const _0x552e1c=_0x1d4647(),_0x45823f=_0x103ea3[_0x45fd('0x9c')]['id'],_0x5cc34f=_0x103ea3['type']+(_0x103ea3[_0x45fd('0x27')]?':'+_0x103ea3['subType']:'');this['_setSuggestionData']({'id':_0x552e1c,'type':_0x5cc34f,'createdAt':new Date(),'authorId':_0x45823f,'originalSuggestionId':_0x103ea3['id'],'attributes':_0x103ea3[_0x45fd('0x16b')],'data':_0x103ea3['data']});const _0x4ac029=Pt(_0x103ea3);('formatBlock'==_0x103ea3['type']||_0x4ac029&&this[_0x45fd('0x122')](_0x4ac029))&&(_0x4e8211=this[_0x45fd('0xe')][_0x45fd('0x14f')](_0x4e8211[_0x45fd('0x92')])),this[_0x45fd('0xad')](_0x5cc34f,_0x552e1c,_0x45823f,this[_0x45fd('0xe')]['createRange'](_0x4e8211,_0x84115c));}[_0x45fd('0xfe')](_0x20073e,_0xabce8e=null){const _0x332e1d=[],_0x56301d=this[_0x45fd('0xbc')]['plugins'][_0x45fd('0x20')](_0x45fd('0x136'))['me'];Array[_0x45fd('0xa')](_0x20073e)||(_0x20073e=[_0x20073e]);for(const _0x452a7c of this[_0x45fd('0x90')]()){if(!_0x452a7c['isInContent'])continue;if(_0xabce8e&&_0x452a7c[_0x45fd('0xda')]!=_0xabce8e)continue;let _0x33a81f=!0x1;for(const _0x504ede of _0x452a7c[_0x45fd('0x2f')]()){for(const _0x405c35 of _0x20073e){const _0x56e286=_0x405c35[_0x45fd('0x12d')][_0x45fd('0x7e')](_0x504ede[_0x45fd('0x102')])||_0x405c35['end']['isEqual'](_0x504ede[_0x45fd('0x12d')]);if(_0x56e286||_0x405c35[_0x45fd('0x106')](_0x504ede)){const _0x75144a=_0x405c35[_0x45fd('0x174')](_0x504ede)&&Bt(this['_model'][_0x45fd('0x82')],_0x504ede['start'],_0x405c35),_0x400534=_0x504ede[_0x45fd('0x174')](_0x405c35)&&Bt(this[_0x45fd('0xe')]['schema'],_0x405c35[_0x45fd('0x12d')],_0x504ede);_0x332e1d[_0x45fd('0xd2')]({'suggestion':_0x452a7c,'meta':{'isOwn':_0x56301d==_0x452a7c[_0x45fd('0xc9')],'isNextTo':_0x56e286,'isInsideObject':_0x75144a,'containsRangeInObject':_0x400534}}),_0x33a81f=!0x0;break;}}if(_0x33a81f)break;}}return _0x332e1d;}[_0x45fd('0xad')](_0x848662,_0x2ffd3d,_0x51ef93,_0x149f1d,_0x34b27d){this['_model'][_0x45fd('0x5c')](_0x3208b4=>{let _0xdc36b8=_0x45fd('0xb1')+_0x848662+':'+_0x2ffd3d+':'+_0x51ef93;_0x34b27d&&(_0xdc36b8=_0xdc36b8+':'+_0x34b27d),_0x3208b4[_0x45fd('0x8f')](_0xdc36b8,{'range':_0x149f1d,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x45fd('0x8d')](_0xe8a9e7){const _0x1b1ddb=_0xe8a9e7[_0x45fd('0xed')],_0x59224b=_0xe8a9e7[_0x45fd('0xdc')];_0xe8a9e7[_0x45fd('0xed')]=null,_0xe8a9e7[_0x45fd('0xdc')]=null,null!=_0x1b1ddb&&(_0x1b1ddb[_0x45fd('0xdc')]=_0x59224b),null!=_0x59224b&&(_0x59224b[_0x45fd('0xed')]=_0x1b1ddb),'ready'==this[_0x45fd('0x67')][_0x45fd('0x20')](_0xe8a9e7)&&(this['_suggestionState'][_0x45fd('0x5a')](_0xe8a9e7,_0x45fd('0x120')),this[_0x45fd('0x29')]('suggestionUnloaded',_0xe8a9e7,_0x1b1ddb,_0x59224b));}['_setSuggestionData'](_0x4ec821){const _0xf81af5=_0x4ec821['id'],_0x460570=this[_0x45fd('0x64')](_0x4ec821);if(this[_0x45fd('0xfd')]&&this[_0x45fd('0xfd')][_0x45fd('0x13f')]){const _0x4f641f=this[_0x45fd('0xbc')][_0x45fd('0x12b')][_0x45fd('0x20')](_0x45fd('0x6c')),_0x483083=_0x460570['hasComments'],_0xbcd719=_0x460570['subType']?_0x460570[_0x45fd('0xda')]+':'+_0x460570[_0x45fd('0x27')]:_0x460570['type'],_0xed4a92=this[_0x45fd('0xbc')][_0x45fd('0x24')],_0x128ba0=_0x4f641f[_0x45fd('0xef')](_0x14698f(_0xed4a92,_0x45fd('0xc2'))),_0x5336df={'id':_0xf81af5,'type':_0xbcd719,'hasComments':_0x483083,'data':_0x4ec821['data']||null,'originalSuggestionId':_0x4ec821[_0x45fd('0x16')]||null,'attributes':_0x460570['attributes']};this[_0x45fd('0xfd')][_0x45fd('0x13f')](_0x5336df)['then'](_0x3fb536=>{_0x460570[_0x45fd('0x66')]=!0x0,_0x4f641f['remove'](_0x128ba0),_0x3fb536&&_0x3fb536[_0x45fd('0xf6')]&&(this[_0x45fd('0x144')][_0x45fd('0x20')](_0xf81af5)['createdAt']=_0x3fb536['createdAt']);})[_0x45fd('0x13e')](_0x37237c=>{throw _0x4d5f77(_0x45fd('0x118')),this[_0x45fd('0xbc')][_0x45fd('0x159')][_0x45fd('0x4b')]({'isUndoable':!0x1},()=>{_0x460570[_0x45fd('0xe6')]();}),_0x460570[_0x45fd('0x11a')](),this[_0x45fd('0x144')]['delete'](_0x460570['id']),this[_0x45fd('0x67')][_0x45fd('0xee')](_0x460570),_0x37237c;});}return _0x460570;}[_0x45fd('0x122')](_0x189e4f){return this[_0x45fd('0xe4')][_0x45fd('0x15c')](_0x189e4f);}[_0x45fd('0x10c')](_0x52ffec,_0x4b83ec){const _0x31f821=this['editor'][_0x45fd('0x12b')][_0x45fd('0x20')](_0x45fd('0x6c')),_0x3ba9f1=this['getSuggestion'](_0x52ffec);if(this[_0x45fd('0xfd')]&&this[_0x45fd('0xfd')][_0x45fd('0xcf')]){if(_0x3ba9f1[_0x45fd('0x66')]){const _0x7113ba=_0x31f821[_0x45fd('0xef')](_0x14698f(this['editor'][_0x45fd('0x24')],_0x45fd('0xc2')));this[_0x45fd('0xfd')]['updateSuggestion'](_0x52ffec,_0x4b83ec)['then'](()=>{_0x31f821[_0x45fd('0xb0')](_0x7113ba);});}else _0x3ba9f1['on'](_0x45fd('0x9d'),()=>{this[_0x45fd('0x10c')](_0x52ffec,_0x4b83ec);});}}[_0x45fd('0x81')](_0x325f93){if(!this[_0x45fd('0xfd')]||!this['_adapter']['getSuggestion'])throw new _0x4f5e3f(_0x45fd('0x15e'),this);return this[_0x45fd('0xfd')]['getSuggestion'](_0x325f93);}[_0x45fd('0x0')](_0x5a14aa){const {id:_0x1d93b4,type:_0x4ae057,subType:_0x481855,authorId:_0x58b183}=this[_0x45fd('0x138')](_0x5a14aa),_0x3ee611=this[_0x45fd('0x144')]['get'](_0x1d93b4)||this[_0x45fd('0xf0')](_0x4ae057,_0x481855,_0x1d93b4,_0x58b183,{});switch(this['_checkSuggestionCorrectness'](_0x3ee611,_0x4ae057,_0x481855,_0x58b183),this[_0x45fd('0x67')][_0x45fd('0x20')](_0x3ee611)){case _0x45fd('0xd7'):this[_0x45fd('0x81')](_0x1d93b4)[_0x45fd('0x110')](_0xf031d0=>{let _0x1ff3bc=Promise[_0x45fd('0x132')]();_0xf031d0['hasComments']&&(_0x1ff3bc=this['_commentsRepository'][_0x45fd('0x9b')]({'channelId':this[_0x45fd('0xbc')][_0x45fd('0x11')][_0x45fd('0x20')](_0x45fd('0x13b')),'threadId':_0x1d93b4})),_0x1ff3bc['then'](()=>{this[_0x45fd('0x64')](_0xf031d0)['_saved']=!0x0;});}),this['_suggestionState'][_0x45fd('0x5a')](_0x3ee611,_0x45fd('0xa9'));break;case _0x45fd('0x120'):this[_0x45fd('0x10c')](_0x1d93b4,{'state':_0x45fd('0x169')});case _0x45fd('0x7f'):this[_0x45fd('0x67')][_0x45fd('0x5a')](_0x3ee611,_0x45fd('0x13c')),this['fire']('suggestionLoaded',_0x3ee611);break;case'ready':this[_0x45fd('0x29')](_0x45fd('0x86'),_0x3ee611);}return _0x3ee611['addMarkerName'](_0x5a14aa),_0x3ee611;}['_refreshSuggestionsChain'](_0x283eed){const _0x45bb81=Array['from'](_0x283eed),_0x5f199c=_0x45bb81[_0x45fd('0x14')](_0x2b473c=>'attribute'==_0x2b473c['type']);this[_0x45fd('0x79')](_0x5f199c);const _0xbc1a2c=_0x45bb81[_0x45fd('0x14')](_0x10da04=>!_0x10da04[_0x45fd('0xd0')]&&_0x45fd('0x126')!=_0x10da04[_0x45fd('0xda')]),_0x40f0bb=this['getSuggestions']({'skipNotAttached':!0x0})[_0x45fd('0x14')](_0x58803d=>!_0x58803d[_0x45fd('0xd0')]&&_0x45fd('0x126')!=_0x58803d[_0x45fd('0xda')]),_0x3e98e1=_0x40f0bb[_0x45fd('0x14')](_0x2267f1=>!_0x283eed[_0x45fd('0x15c')](_0x2267f1)),_0x383d77=new Map(_0x40f0bb[_0x45fd('0x22')](_0x5b81e5=>[_0x5b81e5,this[_0x45fd('0xb7')][_0x45fd('0x15f')](_0x5b81e5[_0x45fd('0xda')],_0x5b81e5['subType'],_0x45fd('0x44'))])),_0xb37024=new Map(_0x40f0bb[_0x45fd('0x22')](_0x540b41=>[_0x540b41,_0x540b41[_0x45fd('0x17')]()])),_0xf01070=new Set(),_0xd8ea3f=new Set();for(let _0x3f51f1=0x0;_0x3f51f1<_0xbc1a2c[_0x45fd('0x25')];_0x3f51f1++)_0x16334c(_0xbc1a2c[_0x3f51f1],_0xbc1a2c,_0x3f51f1+0x1);for(let _0x158545=0x0;_0x158545<_0xbc1a2c[_0x45fd('0x25')];_0x158545++)_0x16334c(_0xbc1a2c[_0x158545],_0x3e98e1,0x0);const _0x593169=new Set();for(let _0x5e6911=0x0;_0x5e6911<_0xbc1a2c[_0x45fd('0x25')];_0x5e6911++){const _0x43b2eb=_0xbc1a2c[_0x5e6911];!_0xd8ea3f[_0x45fd('0x15c')](_0x43b2eb)&&_0x43b2eb['previous']&&(_0x593169[_0x45fd('0xef')](_0x43b2eb[_0x45fd('0xed')]),_0x43b2eb[_0x45fd('0xed')][_0x45fd('0xdc')]===_0x43b2eb&&(_0x43b2eb['previous']['next']=null),_0x43b2eb[_0x45fd('0xed')]=null),!_0xf01070[_0x45fd('0x15c')](_0x43b2eb)&&_0x43b2eb[_0x45fd('0xdc')]&&(_0x593169[_0x45fd('0xef')](_0x43b2eb[_0x45fd('0xdc')]),_0x43b2eb['next'][_0x45fd('0xed')]===_0x43b2eb&&(_0x43b2eb[_0x45fd('0xdc')][_0x45fd('0xed')]=null),_0x43b2eb[_0x45fd('0xdc')]=null);}function _0x16334c(_0x4b0be6,_0x2eed56,_0x1ba0fd){for(let _0x48e4d7=_0x1ba0fd;_0x48e4d7<_0x2eed56['length'];_0x48e4d7++){const _0x1f1639=_0x5d72c8(_0x4b0be6,_0x2eed56[_0x48e4d7]);_0x1f1639&&(_0x1f1639[0x0][_0x45fd('0xdc')]=_0x1f1639[0x1],_0x1f1639[0x1]['previous']=_0x1f1639[0x0],_0xf01070[_0x45fd('0xef')](_0x1f1639[0x0]),_0xd8ea3f[_0x45fd('0xef')](_0x1f1639[0x1]));}}function _0x5d72c8(_0x3ecd42,_0x43cab6){if(_0x3ecd42[_0x45fd('0xc9')]['id']!==_0x43cab6['author']['id'])return null;const _0x3f9b4b=_0x383d77['get'](_0x3ecd42)(_0x3ecd42,_0x43cab6,_0xb37024[_0x45fd('0x20')](_0x3ecd42),_0xb37024[_0x45fd('0x20')](_0x43cab6));if(!_0x3f9b4b)return null;return _0x383d77['get'](_0x43cab6)(_0x3ecd42,_0x43cab6,_0xb37024['get'](_0x3ecd42),_0xb37024[_0x45fd('0x20')](_0x43cab6))?_0x3f9b4b[0x1]['commentThread']&&_0x3f9b4b[0x1]['commentThread'][_0x45fd('0x25')]?null:_0x3f9b4b:null;}_0x593169[_0x45fd('0x39')]&&this[_0x45fd('0x48')](_0x593169);}['_refreshAttributeSuggestionsChain'](_0x1954be){if(0x0==_0x1954be['length'])return;const _0x4b917a=this['getSuggestions']({'skipNotAttached':!0x0})[_0x45fd('0x14')](_0x409657=>_0x45fd('0x126')==_0x409657[_0x45fd('0xda')]&&_0x409657[_0x45fd('0xd4')]),_0x386902=[],_0x19581a=new Map();for(const _0x177a9b of _0x4b917a){const _0x26590e=_0x59c5b9(_0x177a9b['attributes']);_0x19581a[_0x45fd('0x15c')](_0x26590e)||(_0x19581a['set'](_0x26590e,_0x386902['length']),_0x386902['push']([]));const _0x82d605=_0x19581a['get'](_0x26590e);_0x386902[_0x82d605][_0x45fd('0xd2')](_0x177a9b);}!function(){_0x386902[_0x45fd('0x7d')]((_0x49a19b,_0x51722b)=>{const _0x1a6cf3=_0x49a19b[0x0][_0x45fd('0xf6')],_0xcf893b=_0x51722b[0x0][_0x45fd('0xf6')];return _0x1a6cf3==_0xcf893b?_0x49a19b[0x0][_0x45fd('0x16b')]['groupId']<_0x51722b[0x0]['attributes'][_0x45fd('0x113')]?-0x1:0x1:_0x1a6cf3<_0xcf893b?-0x1:0x1;});for(const _0x578e30 of _0x386902)_0x578e30[_0x45fd('0x7d')]((_0xba8b9f,_0x1c5f8c)=>_0xba8b9f['id']<_0x1c5f8c['id']?-0x1:0x1);}();for(let _0x2b6ec4=0x0;_0x2b6ec4<_0x386902[_0x45fd('0x25')];_0x2b6ec4++){if(0x0==_0x386902[_0x2b6ec4][_0x45fd('0x25')])continue;const _0x16fa7d=[];for(let _0x4ac3cd=_0x2b6ec4+0x1;_0x4ac3cd<_0x386902[_0x45fd('0x25')];_0x4ac3cd++)0x0!=_0x386902[_0x4ac3cd][_0x45fd('0x25')]&&_0x3b2721(_0x386902[_0x2b6ec4],_0x386902[_0x4ac3cd])&&_0x16fa7d[_0x45fd('0xd2')](_0x4ac3cd);for(const _0x23921f of _0x16fa7d)_0x386902[_0x2b6ec4]=_0x386902[_0x2b6ec4][_0x45fd('0x2c')](_0x386902[_0x23921f]),_0x386902[_0x23921f]=[];}for(const _0x164584 of _0x386902)for(let _0x2d89b0=0x0;_0x2d89b0<_0x164584['length'];_0x2d89b0++)_0x164584[_0x2d89b0][_0x45fd('0xdc')]=_0x164584[_0x2d89b0+0x1]||null;for(const _0x23a9fa of _0x386902)for(let _0x438e6c=0x0;_0x438e6c<_0x23a9fa[_0x45fd('0x25')];_0x438e6c++)_0x23a9fa[_0x438e6c][_0x45fd('0xed')]=_0x23a9fa[_0x438e6c-0x1]||null;function _0x3b2721(_0x5f535e,_0x296d08){if(_0x5f535e[0x0][_0x45fd('0xc9')]!==_0x296d08[0x0]['author'])return!0x1;if(!function(_0x16d3c1,_0xd1e30d){if(!_0x16d3c1[_0x45fd('0x85')]&&!_0xd1e30d[_0x45fd('0x85')])return!0x0;if(_0x16d3c1[_0x45fd('0x85')]&&_0xd1e30d[_0x45fd('0x85')])return!0x1;if(_0x16d3c1['hasComments']&&_0xd1e30d[_0x45fd('0xf6')]<_0x16d3c1[_0x45fd('0x141')][_0x45fd('0xac')][_0x45fd('0x20')](0x0)['createdAt'])return!0x0;if(_0xd1e30d[_0x45fd('0x85')]&&_0x16d3c1['createdAt']<_0xd1e30d['commentThread'][_0x45fd('0xac')][_0x45fd('0x20')](0x0)[_0x45fd('0xf6')])return!0x0;return!0x1;}(_0x5f535e[0x0],_0x296d08[0x0]))return!0x1;const _0x311306=_0x1286d7(_0x5f535e[0x0][_0x45fd('0x16b')],'groupId'),_0x429d1b=_0x1286d7(_0x296d08[0x0]['attributes'],_0x45fd('0x113'));if(!_0x4a6831(_0x311306,_0x429d1b))return!0x1;return!!_0x5f535e[_0x45fd('0x171')](_0x58df2a=>_0x296d08['some'](_0x212ba5=>_0x58df2a['getFirstRange']()[_0x45fd('0x7e')](_0x212ba5[_0x45fd('0x17')]())))&&_0x296d08[_0x45fd('0x171')](_0x347286=>_0x5f535e[_0x45fd('0x1e')](_0x5e7f1e=>_0x347286[_0x45fd('0x17')]()[_0x45fd('0x7e')](_0x5e7f1e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4640fb){const _0x267741=Array['from'](_0x4640fb),_0x44743f=this[_0x45fd('0x90')]({'skipNotAttached':!0x0}),_0x89f883=_0x44743f[_0x45fd('0x14')](_0x5a1db8=>!_0x4640fb['has'](_0x5a1db8)),_0x4ad46a=new Map(_0x267741[_0x45fd('0x22')](_0x31a061=>[_0x31a061,this['_suggestionFactory'][_0x45fd('0x15f')](_0x31a061['type'],_0x31a061[_0x45fd('0x27')],_0x45fd('0x131'))])),_0x79b958=new Map(_0x44743f[_0x45fd('0x22')](_0x4ea132=>[_0x4ea132,_0x4ea132[_0x45fd('0x2f')]()]));for(let _0x534077=0x0;_0x534077<_0x267741[_0x45fd('0x25')];_0x534077++){if(_0x5715d0(this,_0x267741[_0x534077],_0x267741,_0x534077+0x1))return!0x0;}for(let _0x41ff47=0x0;_0x41ff47<_0x267741[_0x45fd('0x25')];_0x41ff47++){if(_0x5715d0(this,_0x267741[_0x41ff47],_0x89f883,0x0))return!0x0;}return!0x1;function _0x5715d0(_0x4a3606,_0x591993,_0x53bd71,_0x1522f2){for(let _0x20a133=_0x1522f2;_0x20a133<_0x53bd71[_0x45fd('0x25')];_0x20a133++){const _0x47182c=_0x53bd71[_0x20a133];if(_0x47182c['type']!==_0x591993[_0x45fd('0xda')]||_0x47182c[_0x45fd('0xc9')]['id']!==_0x591993[_0x45fd('0xc9')]['id']||_0x47182c[_0x45fd('0x27')]!==_0x591993[_0x45fd('0x27')])continue;if(!Vt(_0x591993,_0x47182c))continue;if('attribute'==_0x591993[_0x45fd('0xda')]&&_0x591993['data'][_0x45fd('0x173')]!=_0x47182c[_0x45fd('0x163')][_0x45fd('0x173')])continue;if(_0x45fd('0x126')==_0x591993[_0x45fd('0xda')]&&_0x4a3606['_isBlockAttribute'](_0x591993['data']['key']))continue;if(_0x45fd('0x51')==_0x591993[_0x45fd('0xda')]){const _0x1f9f31=_0x4a3606[_0x45fd('0xbc')][_0x45fd('0x159')],_0x4c1751=_0x591993[_0x45fd('0xcb')]();if(_0x4c1751&&(_0x1f9f31[_0x45fd('0x82')][_0x45fd('0x57')](_0x4c1751)||_0x1f9f31[_0x45fd('0x82')][_0x45fd('0x5b')](_0x4c1751)))continue;}const _0x3656f0=_0x4ad46a[_0x45fd('0x20')](_0x591993),_0xc49953=_0x79b958[_0x45fd('0x20')](_0x591993),_0x19c15a=_0x79b958[_0x45fd('0x20')](_0x47182c),_0x260ae9=_0x591993[_0x45fd('0x141')]&&_0x591993[_0x45fd('0x141')][_0x45fd('0x25')],_0x45f48e=_0x47182c[_0x45fd('0x141')]&&_0x47182c[_0x45fd('0x141')][_0x45fd('0x25')];if(!_0x260ae9&&_0x3656f0(_0x19c15a,_0xc49953))return _0x4a3606[_0x45fd('0xe3')](_0x47182c,_0x591993),_0x79b958[_0x45fd('0xee')](_0x591993),!0x0;if(!_0x45f48e&&_0x3656f0(_0xc49953,_0x19c15a))return _0x4a3606[_0x45fd('0xe3')](_0x591993,_0x47182c),_0x79b958[_0x45fd('0xee')](_0x47182c),!0x0;}return!0x1;}}[_0x45fd('0xe3')](_0x252fdb,_0xbc4bcc){if(_0x252fdb['isMultiRange'])for(const _0x161ec1 of _0xbc4bcc['getRanges']())_0x252fdb[_0x45fd('0x168')](_0x161ec1);else{const _0x87a1f5=_0xbc4bcc[_0x45fd('0x17')]()['end'];this['_setSuggestionRange'](_0x252fdb,this[_0x45fd('0xe')][_0x45fd('0x9a')](_0x252fdb['getFirstRange']()['start'],_0x87a1f5));}_0xbc4bcc['removeMarkers']();}[_0x45fd('0x34')](_0xd1b36c,_0x226a50){const _0x4342dc=_0xd1b36c[_0x45fd('0xfc')](_0x45fd('0x135'))||_0xd1b36c[_0x45fd('0xfc')](_0x45fd('0x126'))?_0x45fd('0x172'):_0xd1b36c['toUpperCase']();return _0x14698f(this[_0x45fd('0xbc')][_0x45fd('0x24')],_0x226a50+'_'+_0x4342dc+_0x45fd('0x61'));}[_0x45fd('0xd')](){const _0x4e898a=this[_0x45fd('0xbc')];_0x52f036(this[_0x45fd('0xe')],({left:_0x7760c9,entered:_0x2e65be})=>{const _0x265867=[];for(const _0x5bfed3 of _0x7760c9){const {group:_0x5f5493,type:_0x23dcdb}=this[_0x45fd('0x138')](_0x5bfed3[_0x45fd('0x32')]);if(_0x45fd('0x130')===_0x5f5493){_0x265867['push'](this['_getMarkerAnnouncementText'](_0x23dcdb,'LEAVE'));break;}}for(const _0x4bb1dc of _0x2e65be){const {group:_0x99581f,type:_0x1a3f7a}=this[_0x45fd('0x138')](_0x4bb1dc[_0x45fd('0x32')]);if(_0x45fd('0x130')===_0x99581f){_0x265867[_0x45fd('0xd2')](this['_getMarkerAnnouncementText'](_0x1a3f7a,_0x45fd('0xc7')));break;}}_0x265867['length']&&_0x4e898a['ui']['ariaLiveAnnouncer']['announce']('trackChanges',_0x265867[_0x45fd('0x131')]('\x20'));});}[_0x45fd('0xfa')](_0x383afd){if(null!==this['_recordAttributeSuggestionsFromVersion'])return!0x1;const _0x3942de=this['editor'],_0x2ff54c=_0x3942de[_0x45fd('0x159')]['document'][_0x45fd('0x60')][_0x45fd('0x167')]();if(0x0==_0x2ff54c[_0x45fd('0x25')])return!0x1;const _0x2a7b87=[],_0x2fd5f9=_0x2ff54c[_0x45fd('0x14')](_0x249213=>_0x45fd('0x126')==_0x249213[_0x45fd('0xda')]),_0x551d3e=_0x2ff54c[_0x45fd('0x14')](_0x5eac91=>'insert'==_0x5eac91[_0x45fd('0xda')]&&_0x45fd('0x33')!=_0x5eac91['name']),_0x32f780=_0x2ff54c['filter'](_0x1e0669=>'remove'==_0x1e0669[_0x45fd('0xda')]&&'$text'!=_0x1e0669['name']);for(const _0x3e37ac of _0x2fd5f9)_0x2a7b87[_0x45fd('0xd2')]({'key':_0x3e37ac['attributeKey'],'newValue':_0x3e37ac[_0x45fd('0xec')],'oldValue':_0x3e37ac['attributeOldValue'],'range':_0x353732(_0x3e37ac['range'])});for(const _0x1df0c2 of _0x551d3e){const _0x5410cf=_0x32f780[_0x45fd('0x123')](_0x16c7d0=>_0x16c7d0[_0x45fd('0x108')][_0x45fd('0x7e')](_0x1df0c2[_0x45fd('0x108')]));_0x5410cf&&_0x2a7b87['push']({'key':'$elementName','newValue':_0x1df0c2[_0x45fd('0x32')],'oldValue':_0x5410cf['name'],'range':_0x3942de['model']['createRangeOn'](_0x1df0c2[_0x45fd('0x108')][_0x45fd('0xf3')])});}return 0x0!=_0x2a7b87['length']&&this[_0x45fd('0x11d')](_0x383afd,_0x2a7b87);function _0x353732(_0x25841c){return null==_0x25841c[_0x45fd('0x102')][_0x45fd('0x6f')]&&_0x25841c[_0x45fd('0x102')][_0x45fd('0x92')]==_0x25841c[_0x45fd('0x12d')]['nodeAfter']?Ut(_0x25841c[_0x45fd('0x12d')]['nodeAfter'],_0x3942de[_0x45fd('0x159')]):_0x25841c;}}[_0x45fd('0xa6')](_0xc03481){let _0x5eb711=!0x1;const _0x1aa136=this[_0x45fd('0xbc')][_0x45fd('0x159')][_0x45fd('0xab')][_0x45fd('0x60')][_0x45fd('0x160')]()[_0x45fd('0x14')](_0x204520=>_0x204520[_0x45fd('0x163')][_0x45fd('0x137')]&&_0x204520[_0x45fd('0x32')][_0x45fd('0xfc')](_0x45fd('0x87')));for(const _0x5c2d8a of _0x1aa136){const {subType:_0x125cf7,id:_0xf88fd0}=this[_0x45fd('0x138')](_0x5c2d8a[_0x45fd('0x32')]),_0x2d2175=_0x125cf7[_0x45fd('0x15')]('|')[0x0];for(const _0x5e97c2 of this[_0x45fd('0x90')]({'skipNotAttached':!0x0}))_0x5e97c2['id']!=_0xf88fd0&&'attribute'==_0x5e97c2[_0x45fd('0xda')]&&_0x5e97c2[_0x45fd('0x163')]&&_0x5e97c2[_0x45fd('0x163')][_0x45fd('0x69')]==_0x2d2175&&_0x5e97c2['getFirstRange']()[_0x45fd('0xb4')](_0x5c2d8a['data'][_0x45fd('0x137')])&&(this[_0x45fd('0xae')](_0x5e97c2,_0x5c2d8a[_0x45fd('0x163')][_0x45fd('0x137')],_0xc03481),_0x5eb711=!0x0);}return _0x5eb711;}['_recordAttributeChanges'](_0x33a8aa){if(null!==this[_0x45fd('0x56')])return void _0x33a8aa();const _0x256620=this[_0x45fd('0xbc')];this[_0x45fd('0x56')]=_0x256620['model']['document']['version'],_0x33a8aa();const _0x15c613=new Map();for(const _0x34e691 of _0x256620[_0x45fd('0x159')]['document'][_0x45fd('0x164')][_0x45fd('0x111')](this['_recordAttributeSuggestionsFromVersion']))if([_0x45fd('0xa7'),'addAttribute','removeAttribute',_0x45fd('0x5d')][_0x45fd('0xbf')](_0x34e691[_0x45fd('0xda')])){const _0x451603=_0x34e691[_0x45fd('0x16e')],_0x50cccc=_0x15c613[_0x45fd('0x20')](_0x451603)||[];_0x50cccc[_0x45fd('0xd2')](_0x34e691),_0x15c613[_0x45fd('0x5a')](_0x451603,_0x50cccc);}this[_0x45fd('0x56')]=null;for(const [_0x45a541,_0x3a5d1c]of _0x15c613){const _0x2c0d48=_0x1d4647();_0x256620['model'][_0x45fd('0x4b')](_0x45a541,_0x8cc31a=>{const _0x28be39=[];for(const _0x30732c of _0x3a5d1c){let _0xa51a7e,_0x4b518e,_0x50bf03,_0x90209d;if(_0x45fd('0xa7')==_0x30732c[_0x45fd('0xda')]){const _0x89ef35=_0x30732c;_0xa51a7e=Ut(_0x89ef35[_0x45fd('0x108')]['nodeAfter'],_0x256620['model']),_0x4b518e=_0x45fd('0x13a'),_0x50bf03=_0x89ef35[_0x45fd('0x9e')],_0x90209d=_0x89ef35[_0x45fd('0x40')];}else{const _0x50c43f=_0x30732c,_0x208b57=this[_0x45fd('0x122')](_0x50c43f['key']),_0x42162a=this[_0x45fd('0xcd')][_0x45fd('0x15c')](_0x50c43f['key']);if(!_0x208b57&&!_0x42162a)continue;_0xa51a7e=_0x208b57?Ut(_0x50c43f[_0x45fd('0x4d')][_0x45fd('0x12d')][_0x45fd('0xf3')],_0x256620[_0x45fd('0x159')]):_0x50c43f[_0x45fd('0x4d')],_0x4b518e=_0x50c43f[_0x45fd('0x69')],_0x50bf03=_0x45fd('0x4')==_0x30732c[_0x45fd('0xda')]?void 0x0:_0x50c43f['newValue'],_0x90209d=_0x50c43f[_0x45fd('0x173')];}this[_0x45fd('0x16a')](_0xa51a7e,_0x4b518e,_0x90209d,_0x50bf03,{'groupId':_0x2c0d48}),_0x28be39[_0x45fd('0xd2')]({'range':_0xa51a7e,'key':_0x4b518e,'newValue':_0x50bf03,'oldValue':_0x90209d});}this['_reduceExistingSuggestions'](_0x8cc31a,_0x28be39);});}}['_reduceExistingSuggestions'](_0x3edc71,_0x356bb3){if(0x0==_0x356bb3[_0x45fd('0x25')])return!0x1;let _0x17ccf0=!0x1;for(const _0x445b36 of _0x356bb3){const _0x4a8803=this[_0x45fd('0xfe')](_0x445b36['range'],_0x45fd('0x126'))[_0x45fd('0x14')](_0x3286a6=>!_0x3286a6[_0x45fd('0x105')][_0x45fd('0xaa')])[_0x45fd('0x22')](_0x354155=>_0x354155['suggestion']),_0x18480b=_0x59c5b9({'newValue':_0x445b36[_0x45fd('0x2a')]});_0x4a8803['filter'](_0x2d1633=>{const [_0x1dadc8,_0x32e0c6]=_0x2d1633[_0x45fd('0x27')]['split']('|');return _0x1dadc8==_0x445b36[_0x45fd('0x69')]&&_0x32e0c6!=_0x18480b;})[_0x45fd('0x3f')](_0x47e345=>{this['_reduceSuggestionAttributeRange'](_0x47e345,_0x445b36[_0x45fd('0x4d')],_0x3edc71),_0x17ccf0=!0x0;});}return _0x17ccf0;}[_0x45fd('0xae')](_0x4c57f8,_0x24fa4f,_0x4fe5c7){const _0x51a1e2=_0x4c57f8[_0x45fd('0x17')]()[_0x45fd('0x149')](_0x24fa4f);0x0!==_0x51a1e2[_0x45fd('0x25')]?0x1!==_0x51a1e2['length']?this[_0x45fd('0x14b')](_0x4c57f8,_0x24fa4f[_0x45fd('0x12d')],_0x24fa4f['end']):this[_0x45fd('0xdf')](_0x4c57f8,_0x51a1e2[0x0]):_0x4fe5c7[_0x45fd('0x13d')](_0x4c57f8[_0x45fd('0x116')]());}}class $t{constructor(_0xf6b416){this[_0x45fd('0x100')]=_0xf6b416,this[_0x45fd('0xe')]=_0xf6b416['model'],this[_0x45fd('0xe9')]=new Map(),this[_0x45fd('0xdb')]=new Map(),this['_registerDefaultCallbacks']();}[_0x45fd('0x3b')](_0x2ac999,_0x5e3102,_0x2b9518,_0x23510e,_0x6cc50f,_0x5f29d9){return new _0x1de743(this['_model'],{'type':_0x2ac999,'subType':_0x5e3102,'id':_0x2b9518,'author':_0x23510e,'creator':_0x23510e,'attributes':_0x6cc50f,'onAttributesChange':_0x5f29d9,'onAccept':(..._0x1e761a)=>this[_0x45fd('0x15f')](_0x2ac999,_0x5e3102,'accept')(..._0x1e761a),'onDiscard':(..._0x4154a8)=>this[_0x45fd('0x15f')](_0x2ac999,_0x5e3102,'discard')(..._0x4154a8)});}[_0x45fd('0xf8')](_0x5807f3,_0x56e632,_0x4e472e,_0x544916){const _0x3f37c3=_0x5807f3+':'+_0x56e632+':'+_0x4e472e;this[_0x45fd('0xe9')][_0x45fd('0x5a')](_0x3f37c3,_0x544916);}[_0x45fd('0x15f')](_0x368f6d,_0x6533a1,_0x40c542){const _0x5dd250=_0x368f6d+':'+_0x6533a1+':'+_0x40c542;return this['_customCallbacks']['get'](_0x5dd250)||this[_0x45fd('0xdb')][_0x45fd('0x20')](_0x368f6d+':'+_0x40c542);}[_0x45fd('0x104')](){const _0x17e763=()=>!0x1,_0x16dea8=_0x3fd29e=>{_0x3fd29e[_0x45fd('0x7d')]((_0x28794a,_0x91b46c)=>_0x28794a['start'][_0x45fd('0x165')](_0x91b46c[_0x45fd('0x12d')])?0x1:-0x1),this['_model']['change'](_0x13bbf6=>{for(const _0x3849f9 of _0x3fd29e){let _0x3afcb1;_0x3afcb1=_0x3849f9['end'][_0x45fd('0xbb')]&&_0x3849f9['end']['parent']==_0x3849f9[_0x45fd('0x12d')][_0x45fd('0xf3')]?_0x13bbf6['createSelection'](_0x3849f9[_0x45fd('0x12d')][_0x45fd('0xf3')],'on'):_0x13bbf6[_0x45fd('0x1f')](_0x3849f9),this[_0x45fd('0xe')]['deleteContent'](_0x3afcb1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1715eb=(_0x5b9bc9,_0x3b8694)=>{_0x3b8694&&this[_0x45fd('0xe')]['change'](_0x19f876=>{const {commandName:_0x457bf5,commandParams:_0x5dc915=[]}=_0x3b8694,_0x228e28=_0x5b9bc9[_0x45fd('0x22')](_0x1eb7aa=>(Tt(_0x1eb7aa)&&(_0x1eb7aa=this[_0x45fd('0xe')]['createRange'](_0x1eb7aa[_0x45fd('0x102')])),_0x1eb7aa))[_0x45fd('0x14')](_0x96f869=>'$graveyard'!==_0x96f869[_0x45fd('0x115')][_0x45fd('0xba')]);if(_0x228e28[_0x45fd('0x25')]<0x1)return;const _0x3771de=Array[_0x45fd('0x19')](this[_0x45fd('0xe')][_0x45fd('0xab')][_0x45fd('0x91')][_0x45fd('0x2f')]())[_0x45fd('0x22')](_0x43e5a4=>_0x1586d7[_0x45fd('0x121')](_0x43e5a4));_0x19f876[_0x45fd('0x125')](_0x228e28);for(const _0x3df302 of this[_0x45fd('0x100')][_0x45fd('0x16f')][_0x45fd('0x16f')]())_0x3df302[_0x45fd('0xa0')]();_0x5dc915['push']({'forceDefaultExecution':!0x0}),this[_0x45fd('0x100')][_0x45fd('0x37')](_0x457bf5,..._0x5dc915);const _0x34c039=_0x3771de['filter'](_0x38ed95=>_0x45fd('0x6b')!=_0x38ed95[_0x45fd('0x115')][_0x45fd('0xba')]);_0x34c039[_0x45fd('0x25')]>0x0&&_0x19f876[_0x45fd('0x125')](_0x34c039);for(const _0x75d566 of _0x3771de)_0x75d566['detach']();});},_0x192c9e=(_0x8ce453,_0x427b25)=>0x1==_0x8ce453[_0x45fd('0x25')]&&0x1==_0x427b25[_0x45fd('0x25')]&&_0x8ce453[0x0]['end'][_0x45fd('0x7e')](_0x427b25[0x0][_0x45fd('0x12d')]),_0x4d2e0c=(_0x198181,_0x5b45d9,_0x242f8c,_0x581f00)=>Ot(_0x198181,_0x5b45d9,_0x242f8c,_0x581f00,this[_0x45fd('0xe')])?[_0x198181,_0x5b45d9]:Ot(_0x5b45d9,_0x198181,_0x581f00,_0x242f8c,this[_0x45fd('0xe')])?[_0x5b45d9,_0x198181]:null;this[_0x45fd('0xdb')][_0x45fd('0x5a')](_0x45fd('0xb8'),_0x17e763),this[_0x45fd('0xdb')][_0x45fd('0x5a')]('insertion:discard',_0x16dea8),this[_0x45fd('0xdb')][_0x45fd('0x5a')](_0x45fd('0x7b'),_0x192c9e),this[_0x45fd('0xdb')]['set'](_0x45fd('0x14a'),_0x4d2e0c),this[_0x45fd('0xdb')][_0x45fd('0x5a')](_0x45fd('0x114'),_0x16dea8),this['_defaultCallbacks'][_0x45fd('0x5a')](_0x45fd('0x145'),_0x17e763),this[_0x45fd('0xdb')][_0x45fd('0x5a')]('deletion:join',_0x192c9e),this[_0x45fd('0xdb')][_0x45fd('0x5a')](_0x45fd('0xb5'),_0x4d2e0c),this['_defaultCallbacks'][_0x45fd('0x5a')](_0x45fd('0x12f'),_0x1715eb),this[_0x45fd('0xdb')]['set']('formatInline:discard',_0x17e763),this[_0x45fd('0xdb')][_0x45fd('0x5a')](_0x45fd('0x4c'),_0x192c9e),this['_defaultCallbacks']['set'](_0x45fd('0xf7'),_0x17e763),this['_defaultCallbacks'][_0x45fd('0x5a')]('formatBlock:accept',_0x1715eb),this[_0x45fd('0xdb')][_0x45fd('0x5a')]('formatBlock:discard',_0x17e763),this[_0x45fd('0xdb')][_0x45fd('0x5a')](_0x45fd('0x3'),_0x192c9e),this[_0x45fd('0xdb')][_0x45fd('0x5a')](_0x45fd('0x15d'),_0x17e763),this[_0x45fd('0xdb')][_0x45fd('0x5a')](_0x45fd('0x151'),_0x17e763),this[_0x45fd('0xdb')]['set'](_0x45fd('0x14c'),(_0x5941eb,_0x290939)=>{if(!_0x290939)return;const _0x2fda40=this[_0x45fd('0x100')][_0x45fd('0x12b')]['get'](p);this[_0x45fd('0xe')]['change'](_0x3a0afc=>{if(_0x45fd('0x13a')==_0x290939[_0x45fd('0x69')])for(const _0x34c68b of _0x5941eb){const _0xe1f34b=_0x34c68b[_0x45fd('0x12d')]['nodeAfter'],_0x1acd4a=_0x290939[_0x45fd('0x173')];_0x3a0afc['rename'](_0xe1f34b,_0x1acd4a);}else{if(_0x2fda40['_isBlockAttribute'](_0x290939[_0x45fd('0x69')]))for(const _0x561409 of _0x5941eb)void 0x0!==_0x290939[_0x45fd('0x173')]?_0x3a0afc[_0x45fd('0x53')](_0x290939['key'],_0x290939[_0x45fd('0x173')],_0x561409['start'][_0x45fd('0xf3')]):_0x3a0afc['removeAttribute'](_0x290939[_0x45fd('0x69')],_0x561409[_0x45fd('0x12d')][_0x45fd('0xf3')]);else for(const _0x5bdbc5 of _0x5941eb)_0x290939[_0x45fd('0x173')]?_0x3a0afc[_0x45fd('0x53')](_0x290939[_0x45fd('0x69')],_0x290939[_0x45fd('0x173')],_0x5bdbc5):_0x3a0afc[_0x45fd('0x4')](_0x290939[_0x45fd('0x69')],_0x5bdbc5);}});}),this[_0x45fd('0xdb')][_0x45fd('0x5a')]('attribute:join',_0x192c9e);}}function Bt(_0x258053,_0x16efe8,_0x1e8813){for(const _0x43ee26 of _0x16efe8[_0x45fd('0x92')][_0x45fd('0x76')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x43ee26[_0x45fd('0x115')]==_0x43ee26)return!0x1;if(!_0x1e8813[_0x45fd('0xcc')](_0x43ee26))return!0x1;if(_0x258053[_0x45fd('0x57')](_0x43ee26)||_0x258053[_0x45fd('0x5b')](_0x43ee26))return!0x0;}return!0x1;}function Tt(_0x4bff3a){return _0x4bff3a['end']['parent']==_0x4bff3a['start'][_0x45fd('0xf3')]&&_0x4bff3a['end'][_0x45fd('0x16c')];}function xt(_0x42265c,_0x199fa9,_0x380c3c,_0x1c5634){const _0x1fc129=_0x234229=>!_0x234229[_0x45fd('0x80')]['is'](_0x45fd('0x4f'))&&!_0x1c5634[_0x45fd('0x57')](_0x234229['item']),_0x11accb=_0x42265c[_0x45fd('0x12d')][_0x45fd('0x94')](_0x1fc129),_0x42cee9=_0x42265c[_0x45fd('0x102')][_0x45fd('0x94')](_0x1fc129,{'direction':'backward'});return(!_0x42265c[_0x45fd('0x12d')]['isEqual'](_0x11accb)||!_0x42265c[_0x45fd('0x102')][_0x45fd('0x7e')](_0x42cee9))&&(_0x11accb[_0x45fd('0x165')](_0x42cee9)?_0x380c3c['updateMarker'](_0x199fa9,{'range':_0x380c3c[_0x45fd('0x9a')](_0x11accb,_0x42cee9)}):_0x380c3c[_0x45fd('0x13d')](_0x199fa9),!0x0);}function Et(_0xcfe37c){return _0x59c5b9(_0xcfe37c);}function Rt(_0x1f3a89){const _0x2f3830=_0x1f3a89[_0x45fd('0x12d')][_0x45fd('0xf3')];return _0x2f3830&&_0x2f3830['is'](_0x45fd('0xe0'));}function Ut(_0x1c1a14,_0x3d48c7){const _0x272bc7=_0x3d48c7['schema'][_0x45fd('0x57')](_0x1c1a14)||_0x3d48c7[_0x45fd('0x82')][_0x45fd('0x166')](_0x1c1a14);return _0x3d48c7[_0x45fd('0x9a')](_0x3d48c7[_0x45fd('0x65')](_0x1c1a14,_0x45fd('0xa3')),_0x272bc7?_0x3d48c7[_0x45fd('0x10b')](_0x1c1a14):_0x3d48c7['createPositionAt'](_0x1c1a14,_0x45fd('0x102')));}function Ot(_0x511b52,_0x18a986,_0x30f209,_0x1d73b8,_0x1eaa44){if(!Vt(_0x511b52,_0x18a986))return!0x1;if(_0x30f209[_0x45fd('0x102')][_0x45fd('0x7e')](_0x1d73b8['start']))return!0x0;if(_0x511b52[_0x45fd('0xda')]!=_0x18a986[_0x45fd('0xda')])return!0x1;if(!_0x30f209[_0x45fd('0x102')][_0x45fd('0x155')](_0x1d73b8[_0x45fd('0x12d')]))return!0x1;const _0x242f02=_0x1eaa44[_0x45fd('0x9a')](_0x30f209[_0x45fd('0x102')],_0x1d73b8[_0x45fd('0x12d')])[_0x45fd('0xe5')]();for(const _0x94a6a1 of _0x242f02)if(['elementStart','elementEnd']['includes'](_0x94a6a1['type'])&&_0x1eaa44[_0x45fd('0x82')][_0x45fd('0x5b')](_0x94a6a1[_0x45fd('0x80')]))return!0x1;return!0x0;}function Vt(_0x4ef9a2,_0x546c28){return!(!_0x4ef9a2[_0x45fd('0xd4')]||!_0x546c28['_isDataLoaded'])&&_0x4a6831(_0x4ef9a2[_0x45fd('0x16b')],_0x546c28[_0x45fd('0x16b')]);}function Gt(_0x384500,_0x8fb9a6){const _0x479b33=Ft(_0x384500[_0x45fd('0x16b')]),_0x588476=Ft(_0x8fb9a6);if(!_0x384500[_0x45fd('0xd4')])return!0x1;for(const _0x4b5b6b of Object[_0x45fd('0x97')](_0x588476))if(!_0x4a6831(_0x479b33[_0x4b5b6b],_0x588476[_0x4b5b6b]))return!0x1;return!0x0;}function Ft(_0x48cfad){const _0xcff98e=Object[_0x45fd('0x133')]({},_0x48cfad);return delete _0xcff98e[_0x45fd('0x1d')],delete _0xcff98e['tablePasteChainId'],_0xcff98e;}function Pt(_0x427e31){return _0x45fd('0x126')==_0x427e31['type']?_0x427e31[_0x45fd('0x27')]['split']('|')[0x0]:null;}
|
package/src/trackchangesui.d.ts
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module track-changes/trackchangesui
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin, type Editor } from 'ckeditor5/src/core';
|
|
9
|
-
import { Users } from 'ckeditor5-collaboration/src/collaboration-core';
|
|
10
|
-
import TrackChangesEditing from './trackchangesediting';
|
|
8
|
+
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { Users } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
10
|
+
import TrackChangesEditing from './trackchangesediting.js';
|
|
11
11
|
/**
|
|
12
12
|
* Provides UI for track changes plugin.
|
|
13
13
|
*
|