@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231213.0 → 0.0.0-nightly-20231215.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x205d=['CommentsRepository','insertion:discard','originalSuggestionId','removeMarkers','documentSelection','assign','editing','delete','containerElement','createPositionAfter','_createSuggestion','isNextTo','_descriptionFactory','end','requires','hasCommentThread','removed','key','_reduceSuggestionAttributeRange','locale','change:data','data-suggestion','getAttribute','chain','isUndo','getShiftedBy','markMultiRangeBlockFormat','_findSuggestions','removeMarker','consumable','editingDowncast','insertion:','format','substr','addMarker','stopListening','trackChanges','rootName','high','mapper','markers','_editor','getChangedMarkers','createdAt','normal','ck-suggestion-marker-formatInline','_enabledCommands','insertion:chain','forEach','formatInline:','length','announce','nodeAfter','toViewElement','parent','deletion:accept','values','suggestion:attribute:','containsRangeInObject','addHighlight','unbindElementFromMarkerName','_inlineAttributeKeys','_getMarkerAnnouncementText','plugins','update:suggestion','_setSuggestionData','enableReadOnlyMode','suggestionChanged','getDifference','enableCommand','formatBlock:','_reduceExistingSuggestions','addMarker:suggestion:formatBlock','from','join','markInlineFormat','multipleBlocks','rejected','attribute','_saved','open','_setSuggestionRange','_breakSuggestionMarker','keys','name','trackChanges.mergeNestedSuggestions','isEqual','track-changes-enable-command-twice','$graveyard','acceptSuggestion','newRange','_trackFormatChanges','_registerBlockAttribute','_registerInlineAttribute','_getAuthorFromId','_SUGGESTION_ANNOUNCEMENT','isDocumentOperation','stop','find','some','getChanges','PendingActions','isExternal','filter','start','attributeOldValue','isOwn','return','isInsideObject','getAllAdjacentSuggestions','forward','formatBlock:join','suggestionLoaded','upcast','size','remove','isCollapsed','_blockAttributeKeys','formatGroupId','acceptSelectedSuggestions','_recordAttributeSuggestionsFromVersion','formatInline:discard','oldValue','$text','groupId','addSuggestionData','highest','formatBlock','push','isIntersecting','startsWith','_checkSuggestionCorrectness','notReady','ready','lowest','conversion','never','howMany','addSuggestion','_recordAttributeChanges','accept','_isForcedDefaultExecutionBlock','getUser','reconvertMarker','deletion:join','commandName','_addSuggestionMarker','markerToHighlight','markerReady','group','marker-count','TrackChangesEditing','always','schema','_removeSuggestion','substring','getIntersection','fromCharCode','includes','_suggestionFactory','discardSuggestion','adapter','execute','every','attribute:discard','collaboration.channelId','isAtEnd','getMultiRangeId','containsRange','enqueueChange','batch','markMultiRangeDeletion','previous','subType','isIntersectingWithRange','editor','$textProxy','changeAttribute','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.','showSuggestionHighlights','_isBlockAttribute','_refreshAttributeSuggestionsChain','change:activeMarkers','suggestion','_mergeNestedSuggestions','accepted','after','track-changes-user-not-found','warn','config','low','markInsertion','multi','createPositionAt','createRange','deletion:','version','buildSuggestion','isLimit','insertContent','addAttribute','document','track-changes-suggestion-data-mismatch','removeAttribute','_updateSuggestionData','elementStart','skipNestingCheck','addCommentThread','getCommentThread','isLocal','getSuggestions','set','forceDefaultExecution','elementToElement','isInContent','getContainedElement','comments','get','formatInline:join','selection','attributeNewValue','commentThread','element','_joinSuggestions','nodeBefore','insertion:accept','elementEnd','map','ck-suggestion-marker-','addRange','then','_processAttributeChanges','catch','setAttribute','bindElementToMarker','addComment','addClass','type','PENDING_ACTION_SUGGESTION','item','getSuggestion','isObject','tablePasteChainId','markAttributeChange','removeMarker:suggestion:formatBlock','removeClass','removeMarker:suggestion:attribute','addMarkerName','discard','position','ck-suggestion-marker--active','attributes','track-changes-adapter-already-set','default','_isDataLoaded','has','_joinWithAdjacentSuggestions','_handleNewSuggestionMarker','authoredAt','_splitMarkerName','_commentsRepository','attributeKey','_getSuggestionData','trackChangesCommand','_enableDefaultAttributesIntegration','isAfter','next','attribute:accept','_customCallbacks','_defaultCallbacks','splice','hasComments','getFirstRange','range','isBefore','differ','detach','getItems','hasSuggestion','addMarker:suggestion:attribute','createRangeOn','createRangeIn','markerToData','newValue','writer','value','_registerDefaultCallbacks','model','for','insertion','_onDiscard','getFirstMarker','add','_refreshSuggestionsChain','sort','ck-suggestion-marker','trackChanges.trackFormatChanges','listenTo','formatBlock:discard','isRemovable','getAncestors','formatInline','rename','change:_saved','containsItem','activeMarkers','refresh','_getExternalAuthor','$elementName','markBlockFormat','isMultiRange','addUser','clear','_initAriaMarkerChangeAnnouncements','_cutOutSuggestionMarker','discardSelectedSuggestions','consume','rethrowUnexpectedError','split','getRanges','commands','_suggestions','_adapter','getSuggestionCallback','setTo','authorName','_model','creator','_addThreadToSuggestion','getCustomProperty','author','Users','pop','fetchCommentThread','deletion:chain','getLastMatchingPosition','widget','markerName','updateSuggestion','unbind','updateMarker','acceptAllSuggestions','options','define','isArray','_processAttributeSuggestions','track-changes-adapter-missing-getsuggestion','_rangeIsInLocalUserInsertion','createElement','fire','unshift','applyOperation','markDeletion','data','_suggestionState','ariaLiveAnnouncer','registerPostFixer','toJSON','suggestion:','getWalker','head','fromRange','attribute:','discardAllSuggestions','isBlock','suggestion-type','ck-suggestion-marker-formatBlock','meta','deleteContent','root','removeComment','deletion:discard','backward','createSelection','getOperations','deletion','setSelection','insert','move','dataDowncast','@external','change'];(function(_0x28bf39,_0x205d0e){const _0x23ae50=function(_0x2dc45f){while(--_0x2dc45f){_0x28bf39['push'](_0x28bf39['shift']());}};_0x23ae50(++_0x205d0e);}(_0x205d,0x10f));const _0x23ae=function(_0x28bf39,_0x205d0e){_0x28bf39=_0x28bf39-0x0;let _0x23ae50=_0x205d[_0x28bf39];return _0x23ae50;};import{Plugin as _0x216f6f,PendingActions as _0x405604}from'ckeditor5/src/core';import{LiveRange as _0x384459}from'ckeditor5/src/engine';import{CKEditorError as _0x3918ce,uid as _0x4e6c1e,priorities as _0x40a7cb,logWarning as _0x444db6}from'ckeditor5/src/utils';import{toWidget as _0x2e7c38}from'ckeditor5/src/widget';import{Users as _0x44bfef,hashObject as _0x39bb41,surroundingMarkersDetector as _0x1dcf72}from'ckeditor5-collaboration/src/collaboration-core';import _0xb55a6b from'./commands/trackchangescommand';import _0x556d61 from'./commands/acceptsuggestioncommand';import _0x5fa051 from'./commands/discardsuggestioncommand';import _0x223d2a from'./commands/executeonallsuggestionscommand';import _0x215d49 from'./commands/executeonselectedsuggestionscommand';import _0x3d27b9 from'./suggestion';import _0x470454 from'./suggestiondescriptionfactory';import _0x140010 from'./integrations/aiassistant';import _0xadfb14 from'./integrations/alignment';import _0x39fcf2 from'./integrations/basicstyles';import _0xbc95d4 from'./integrations/blockquote';import _0x3c4cee from'./integrations/ckbox';import _0x143901 from'./integrations/codeblock';import _0x2f0bdc from'./integrations/comments';import _0x5043ca from'./integrations/deletecommand';import _0x282d6d from'./integrations/documentlist';import _0x414e8c from'./integrations/documentlistproperties';import _0x1865ac from'./integrations/entercommand';import _0x197c10 from'./integrations/findandreplace';import _0x528686 from'./integrations/font';import _0xbb737b from'./integrations/formatpainter';import _0x4cd5a4 from'./integrations/heading';import _0x21595d from'./integrations/highlight';import _0x545042 from'./integrations/horizontalline';import _0x311469 from'./integrations/htmlembed';import _0x362682 from'./integrations/image';import _0x2ae6b5 from'./integrations/imagereplace';import _0x406963 from'./integrations/imagestyle';import _0x1a80f4 from'./integrations/importword';import _0x586307 from'./integrations/indent';import _0x31f4ab from'./integrations/inputcommand';import _0x4dece8 from'./integrations/link';import _0x36c70b from'./integrations/list';import _0x3230df from'./integrations/listproperties';import _0x24ec03 from'./integrations/mediaembed';import _0x48a527 from'./integrations/mention';import _0x16a9c8 from'./integrations/pagebreak';import _0x498b54 from'./integrations/paragraph';import _0x17abce from'./integrations/removeformat';import _0x1e018f from'./integrations/restrictededitingmode';import _0x373dd4 from'./integrations/shiftentercommand';import _0x41ca50 from'./integrations/standardeditingmode';import _0x374716 from'./integrations/style';import _0x543aa8 from'./integrations/table';import _0x1ac2f7 from'./integrations/tablemergesplit';import _0x47b6a2 from'./integrations/tableheadings';import _0x17ed86 from'./integrations/tableclipboard';import _0x29398c from'./integrations/tablecolumnresize';import _0x37b38d from'./integrations/template';import _0x1348a5 from'./integrations/tableofcontents';import _0x5774dd from'./integrations/title';import _0x19e092 from'./integrations/undo';import _0x2c6ae8 from'./integrations/tablecaption';import _0x4547fc from'./integrations/tableproperties';import{getTranslation as _0x1d5e1f}from'./utils/common-translations';import{isEqual as _0xaf05e6,omit as _0x1b4521}from'lodash-es';export const renameAttributeKey=_0x23ae('0x25');export default class p extends _0x216f6f{static get[_0x23ae('0x7d')](){return['CommentsRepository',_0x44bfef,_0x405604,_0x140010,_0xadfb14,_0x39fcf2,_0xbc95d4,_0x3c4cee,_0x143901,_0x2f0bdc,_0x5043ca,_0x282d6d,_0x414e8c,_0x1865ac,_0x197c10,_0x528686,_0xbb737b,_0x4cd5a4,_0x21595d,_0x545042,_0x311469,_0x362682,_0x406963,_0x2ae6b5,_0x1a80f4,_0x586307,_0x31f4ab,_0x4dece8,_0x36c70b,_0x3230df,_0x24ec03,_0x48a527,_0x16a9c8,_0x498b54,_0x17abce,_0x1e018f,_0x373dd4,_0x41ca50,_0x374716,_0x543aa8,_0x1ac2f7,_0x47b6a2,_0x2c6ae8,_0x17ed86,_0x29398c,_0x1348a5,_0x4547fc,_0x37b38d,_0x5774dd,_0x19e092];}static get['pluginName'](){return _0x23ae('0x106');}constructor(_0x548b4b){function _0x41419c(_0x5d13c1){return _0x5d13c1['map'](_0x5490fd=>String[_0x23ae('0x10c')](_0x5490fd))[_0x23ae('0xb9')]('');}super(_0x548b4b),this[_0x23ae('0xe7')]=null,this['set'](_0x23ae('0x22'),[]),this['on'](_0x23ae('0x125'),(_0x16a4e2,_0x5f1324,_0xcd9fc9,_0x204ea5)=>{this[_0x23ae('0x37')]['change'](()=>{for(const _0x3e0659 of[..._0x204ea5,..._0xcd9fc9])this[_0x23ae('0x37')]['markers'][_0x23ae('0x16e')](_0x3e0659)&&_0x548b4b[_0x23ae('0x75')][_0x23ae('0xfe')](_0x3e0659);});}),this[_0x23ae('0x7b')]=new _0x470454(this[_0x23ae('0x11e')]['model'][_0x23ae('0x108')],this['editor'][_0x23ae('0x82')]),this['_adapter']=null,this[_0x23ae('0x10e')]=new Bt(this[_0x23ae('0x11e')]),this[_0x23ae('0x32')]=new Map(),this['_commentsRepository']=_0x548b4b[_0x23ae('0xae')][_0x23ae('0x148')](_0x23ae('0x6f')),this[_0x23ae('0x9d')]=new Set(),this[_0x23ae('0x37')]=this[_0x23ae('0x11e')][_0x23ae('0x10')],this[_0x23ae('0x53')]=new WeakMap(),this[_0x23ae('0xfc')]=!0x1,this['_blockAttributeKeys']=new Set([_0x23ae('0x25')]),this[_0x23ae('0xac')]=new Set(),_0x548b4b[_0x23ae('0x12c')]['define']('trackChanges.trackFormatChanges',_0x23ae('0x16c')),this[_0x23ae('0xca')]=_0x548b4b[_0x23ae('0x12c')][_0x23ae('0x148')](_0x23ae('0x19')),_0x548b4b[_0x23ae('0x12c')][_0x23ae('0x48')](_0x23ae('0xc4'),!0x0),this['_mergeNestedSuggestions']=_0x548b4b[_0x23ae('0x12c')]['get'](_0x23ae('0xc4')),this[_0x23ae('0x176')]=new _0xb55a6b(_0x548b4b,this['_enabledCommands']),this[_0x23ae('0x2a')](),this[_0x41419c([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x41419c([0x34,0x30,0x34,0x36,0x32,0x34,0x32,0x36]);}['init'](){const _0x3cf3e5=this[_0x23ae('0x11e')],_0x39866d=(_0x57bdf6,_0xffad8e)=>{if(_0x23ae('0xbd')!=_0x57bdf6)return _0x23ae('0x153')+_0x57bdf6;const _0x1a74c2=_0xffad8e['split']('|')[0x0];return this[_0x23ae('0x123')](_0x1a74c2)?_0x23ae('0x5f'):_0x23ae('0x9c');};_0x3cf3e5[_0x23ae('0xf6')]['for'](_0x23ae('0x8d'))[_0x23ae('0x102')]({'model':_0x23ae('0x126'),'view':_0x346287=>{const {id:_0x33be80,type:_0x51cf11,subType:_0x70ea3a}=this[_0x23ae('0x172')](_0x346287[_0x23ae('0x42')]),_0x2f8d96=[_0x23ae('0x18'),_0x39866d(_0x51cf11,_0x70ea3a)];let _0x5304fd=0xbb8;return this[_0x23ae('0x22')][_0x23ae('0x10d')](_0x346287[_0x23ae('0x42')])&&(_0x2f8d96['push'](_0x23ae('0x169')),_0x5304fd=0xbc2),_0x23ae('0x68')==_0x51cf11&&(_0x5304fd+=0x5),{'classes':_0x2f8d96,'attributes':{'data-suggestion':_0x33be80},'priority':_0x5304fd};}}),_0x3cf3e5[_0x23ae('0xf6')][_0x23ae('0x11')](_0x23ae('0x6c'))[_0x23ae('0x15')](_0x5111c1=>{_0x5111c1['on']('addMarker:suggestion',(_0x7466b0,_0x563b99,_0x2a36ad)=>{if(!_0x2a36ad[_0x23ae('0x47')]['showSuggestionHighlights'])return;const _0x395641=_0x563b99['item'];if(!_0x395641)return;const _0x24bfa1=_0x2a36ad[_0x23ae('0x96')]['toViewElement'](_0x395641);_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x108')][_0x23ae('0x160')](_0x395641)&&_0x24bfa1&&!_0x24bfa1[_0x23ae('0x3a')](_0x23ae('0x41'))&&_0x24bfa1['is'](_0x23ae('0x77'))&&_0x2e7c38(_0x24bfa1,_0x2a36ad[_0x23ae('0xd')]);},{'priority':_0x23ae('0x95')});}),_0x3cf3e5[_0x23ae('0xf6')][_0x23ae('0x11')](_0x23ae('0x6c'))[_0x23ae('0x102')]({'model':_0x23ae('0x126'),'view':(_0x57c8d4,_0x38fdc0)=>{if(!_0x38fdc0[_0x23ae('0x47')][_0x23ae('0x122')])return null;const {type:_0x535221,subType:_0x92037d}=this[_0x23ae('0x172')](_0x57c8d4[_0x23ae('0x42')]);return{'classes':[_0x23ae('0x18'),_0x39866d(_0x535221,_0x92037d)],'priority':0xbb8};}});const _0x23a25b=({showActiveMarkers:_0x579e24=!0x0,isAttributeSuggestion:_0xb2405f=!0x1}={})=>(_0x5b1965,_0x1c8327,_0x4d26de)=>{if(!_0x1c8327['item'])return;const {id:_0x3e2706}=this[_0x23ae('0x172')](_0x1c8327[_0x23ae('0x42')]);if(_0xb2405f){const _0x564665=Pt(this['_suggestions'][_0x23ae('0x148')](_0x3e2706));if(!this[_0x23ae('0x123')](_0x564665))return;}if(_0x1c8327[_0x23ae('0x15e')]['is'](_0x23ae('0x14a')))return void _0x4d26de['consumable']['consume'](_0x1c8327['item'],_0x5b1965['name']);const _0x437074=_0x4d26de[_0x23ae('0x96')][_0x23ae('0xa4')](_0x1c8327[_0x23ae('0x15e')]);if(_0x1c8327['item']['is'](_0x23ae('0x14d'))&&_0x3cf3e5['model']['schema'][_0x23ae('0x5d')](_0x1c8327['item'])&&!_0x437074[_0x23ae('0x3a')]('addHighlight')){_0x4d26de[_0x23ae('0xd')][_0x23ae('0x15b')]([_0x23ae('0x18'),_0x23ae('0x5f')],_0x437074),_0x4d26de[_0x23ae('0xd')]['setAttribute']('data-suggestion',_0x3e2706,_0x437074),_0x4d26de[_0x23ae('0x96')][_0x23ae('0x159')](_0x437074,_0x1c8327[_0x23ae('0x42')]),_0x579e24&&(this[_0x23ae('0x22')][_0x23ae('0x10d')](_0x1c8327['markerName'])?_0x4d26de[_0x23ae('0xd')]['addClass'](_0x23ae('0x169'),_0x437074):_0x4d26de[_0x23ae('0xd')]['removeClass']('ck-suggestion-marker--active',_0x437074));for(const _0x5a0ab2 of _0x3cf3e5['model'][_0x23ae('0xa')](_0x1c8327['item'])[_0x23ae('0x6')]())_0x4d26de[_0x23ae('0x8c')]['consume'](_0x5a0ab2,_0x5b1965[_0x23ae('0xc3')]);_0x4d26de['consumable'][_0x23ae('0x2d')](_0x1c8327[_0x23ae('0x15e')],_0x5b1965[_0x23ae('0xc3')]);}};_0x3cf3e5[_0x23ae('0xf6')][_0x23ae('0x11')]('dataDowncast')[_0x23ae('0x15')](_0x5e05a3=>{_0x5e05a3['on'](_0x23ae('0xb7'),(_0x1d60c2,_0x8f3e5b,_0x1f6cc4)=>{_0x1f6cc4[_0x23ae('0x47')][_0x23ae('0x122')]&&_0x23a25b({'showActiveMarkers':!0x1})(_0x1d60c2,_0x8f3e5b,_0x1f6cc4);},{'priority':_0x23ae('0xed')});}),_0x3cf3e5[_0x23ae('0xf6')][_0x23ae('0x11')](_0x23ae('0x6c'))[_0x23ae('0x15')](_0x2a0417=>{_0x2a0417['on'](_0x23ae('0x8'),(_0x134f02,_0x6bafc1,_0x507245)=>{_0x507245['options']['showSuggestionHighlights']&&_0x23a25b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x134f02,_0x6bafc1,_0x507245);},{'priority':_0x23ae('0xed')});}),_0x3cf3e5['conversion']['for']('dataDowncast')[_0x23ae('0xb')]({'model':'suggestion','view':(_0x61d1c,_0x3ff80f)=>_0x3ff80f[_0x23ae('0x47')]['showSuggestionHighlights']?null:{'group':_0x23ae('0x126'),'name':_0x61d1c[_0x23ae('0x90')](0xb)}}),_0x3cf3e5['conversion'][_0x23ae('0x11')](_0x23ae('0xe0'))[_0x23ae('0x144')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x342d05,{writer:_0x38ab7c})=>{let _0x4efddb=_0x23ae('0x57')+_0x342d05['getAttribute'](_0x23ae('0x5e'))+':'+_0x342d05[_0x23ae('0x85')]('id');return _0x342d05[_0x23ae('0x85')](_0x23ae('0x105'))&&(_0x4efddb+=':'+_0x342d05[_0x23ae('0x85')](_0x23ae('0x105'))),_0x38ab7c[_0x23ae('0x4d')]('$marker',{'data-name':_0x4efddb});}}),_0x3cf3e5[_0x23ae('0xf6')]['for'](_0x23ae('0xe0'))['dataToMarker']({'view':_0x23ae('0x126')}),_0x3cf3e5[_0x23ae('0xf6')][_0x23ae('0x11')](_0x23ae('0x8d'))['add'](_0x28338e=>{_0x28338e['on'](_0x23ae('0xb7'),_0x23a25b(),{'priority':_0x23ae('0x95')});}),_0x3cf3e5[_0x23ae('0xf6')][_0x23ae('0x11')](_0x23ae('0x8d'))['add'](_0x578f7b=>{_0x578f7b['on']('addMarker:suggestion:attribute',_0x23a25b({'isAttributeSuggestion':!0x0}),{'priority':_0x23ae('0x95')});}),_0x3cf3e5[_0x23ae('0xf6')][_0x23ae('0x11')]('editingDowncast')['add'](_0x123b96=>{_0x123b96['on'](_0x23ae('0x163'),(_0x2c5752,_0x22d676,_0x56e6df)=>{const _0x2d9cf4=_0x56e6df[_0x23ae('0x96')]['markerNameToElements'](_0x22d676[_0x23ae('0x42')]);if(_0x2d9cf4)for(const _0x403df8 of _0x2d9cf4)_0x403df8[_0x23ae('0x3a')](_0x23ae('0xaa'))||(_0x56e6df[_0x23ae('0xd')][_0x23ae('0x164')]([_0x23ae('0x18'),_0x23ae('0x5f'),'ck-suggestion-marker--active'],_0x403df8),_0x56e6df['writer']['removeAttribute'](_0x23ae('0x84'),_0x403df8),_0x56e6df[_0x23ae('0x96')]['unbindElementFromMarkerName'](_0x403df8,_0x22d676[_0x23ae('0x42')]));},{'priority':_0x23ae('0x95')});}),_0x3cf3e5[_0x23ae('0xf6')][_0x23ae('0x11')](_0x23ae('0x8d'))[_0x23ae('0x15')](_0x77d27b=>{_0x77d27b['on'](_0x23ae('0x165'),(_0x462788,_0x10f8b1,_0x1d00c7)=>{const _0x3a2eee=_0x1d00c7[_0x23ae('0x96')]['markerNameToElements'](_0x10f8b1[_0x23ae('0x42')]);if(!_0x3a2eee)return;const {id:_0x2714b8}=this[_0x23ae('0x172')](_0x10f8b1[_0x23ae('0x42')]),_0x54e021=Pt(this[_0x23ae('0x32')]['get'](_0x2714b8));if(this[_0x23ae('0x123')](_0x54e021))for(const _0x28605d of _0x3a2eee)_0x28605d[_0x23ae('0x3a')]('addHighlight')||(_0x1d00c7[_0x23ae('0xd')][_0x23ae('0x164')]([_0x23ae('0x18'),_0x23ae('0x5f'),'ck-suggestion-marker--active'],_0x28605d),_0x1d00c7[_0x23ae('0xd')][_0x23ae('0x13a')]('data-suggestion',_0x28605d),_0x1d00c7[_0x23ae('0x96')][_0x23ae('0xab')](_0x28605d,_0x10f8b1['markerName']));},{'priority':_0x23ae('0x95')});}),_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x138')][_0x23ae('0x55')](_0x23106a=>{let _0x18c27c=!0x1;const _0xd43e98=Array[_0x23ae('0xb8')](_0x3cf3e5[_0x23ae('0x10')]['document'][_0x23ae('0x4')][_0x23ae('0x99')]()),_0x596f30=new Set();for(const {name:_0x52732e,data:_0xc5972e}of _0xd43e98){const {group:_0x196d69,type:_0x377fbb,subType:_0xda2cf0,id:_0x2d129b}=this[_0x23ae('0x172')](_0x52732e);if(_0x23ae('0x126')!==_0x196d69)continue;const _0x1d6012=this[_0x23ae('0x32')][_0x23ae('0x148')](_0x2d129b);if(null!=_0xc5972e['newRange']){_0x23ae('0x1e')==_0x377fbb&&(_0x18c27c=_0x18c27c||Et(_0xc5972e[_0x23ae('0xc9')],_0x52732e,_0x23106a,_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x108')]));const _0x2a0218=_0x23ae('0xbd')==_0x377fbb&&this[_0x23ae('0x123')](_0xda2cf0[_0x23ae('0x2f')]('|')[0x0]);if(_0xc5972e[_0x23ae('0xc9')][_0x23ae('0xe3')]||'$graveyard'==_0xc5972e[_0x23ae('0xc9')][_0x23ae('0x62')][_0x23ae('0x94')]||_0x23ae('0xee')==_0x377fbb&&!jt(_0xc5972e[_0x23ae('0xc9')])||_0x2a0218&&!jt(_0xc5972e['newRange'])||_0x23ae('0x68')==_0x377fbb&&!(!xt(_0x5aebf8=_0xc5972e[_0x23ae('0xc9')])&&!function(_0x34c496){return _0x34c496['start'][_0x23ae('0xa5')]==_0x34c496['end']['nodeBefore']&&_0x34c496[_0x23ae('0xd7')]['isAtEnd'];}(_0x5aebf8)))_0x23106a[_0x23ae('0x8b')](_0x52732e),_0x18c27c=!0x0;else{if(!_0x1d6012||!_0x1d6012[_0x23ae('0x145')])continue;_0x596f30[_0x23ae('0x15')](_0x1d6012);}}}var _0x5aebf8;return _0x596f30['size']>0x0&&(_0x18c27c=!!this[_0x23ae('0x16f')](_0x596f30)||_0x18c27c),_0x18c27c;}),_0x3cf3e5['model'][_0x23ae('0x138')][_0x23ae('0x55')](_0x5f3055=>{let _0x23a806=!0x1;for(const _0x103b19 of _0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x138')][_0x23ae('0x4')][_0x23ae('0xd3')]())if(_0x23ae('0x6a')==_0x103b19[_0x23ae('0x15c')])for(const _0x490038 of this[_0x23ae('0x32')][_0x23ae('0xa7')]()){if(_0x490038[_0x23ae('0x27')]||!_0x490038['isInContent'])continue;const _0x53a3b8=_0x23ae('0xee')==_0x490038[_0x23ae('0x15c')],_0x13d581=Pt(_0x490038),_0x31aed3=_0x13d581&&this[_0x23ae('0x123')](_0x13d581);if(!_0x53a3b8&&!_0x31aed3)continue;const _0x5db6f7=_0x490038[_0x23ae('0x1')]();if(_0x5db6f7['start'][_0x23ae('0xa5')]!=_0x5db6f7[_0x23ae('0x7c')][_0x23ae('0xa5')]&&!_0x5db6f7[_0x23ae('0x7c')][_0x23ae('0x115')]){const _0x45295f=_0x3cf3e5[_0x23ae('0x10')]['createPositionAt'](_0x5db6f7[_0x23ae('0xd7')][_0x23ae('0xa3')],_0x23ae('0x7c')),_0x4159b8=_0x3cf3e5[_0x23ae('0x10')]['createRange'](_0x5db6f7[_0x23ae('0xd7')],_0x45295f);_0x5f3055[_0x23ae('0x45')](_0x490038['getFirstMarker'](),{'range':_0x4159b8}),_0x23a806=!0x0;}}return _0x23a806;}),_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x138')][_0x23ae('0x55')](_0x28bfd8=>this[_0x23ae('0x156')](_0x28bfd8)),_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x138')]['registerPostFixer'](_0x2871d2=>!_0x2871d2[_0x23ae('0x119')][_0x23ae('0x140')]&&this[_0x23ae('0x4a')](_0x2871d2)),_0x3cf3e5['model'][_0x23ae('0x97')]['on'](_0x23ae('0xaf'),(_0x3380e8,_0x2cd94c,_0x4b4123)=>{if(null==_0x4b4123){const {id:_0x8d07c2}=this[_0x23ae('0x172')](_0x2cd94c[_0x23ae('0xc3')]),_0x149bbe=this[_0x23ae('0x32')][_0x23ae('0x148')](_0x8d07c2);_0x149bbe&&_0x149bbe[_0x23ae('0x166')](_0x2cd94c['name']);}}),_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x138')]['on'](_0x23ae('0x83'),()=>{const _0x23c48e=Array[_0x23ae('0xb8')](_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x138')][_0x23ae('0x4')][_0x23ae('0x99')]())['filter'](_0x215c36=>_0x23ae('0x126')===this[_0x23ae('0x172')](_0x215c36[_0x23ae('0xc3')])[_0x23ae('0x104')]);if(0x0===_0x23c48e[_0x23ae('0xa1')])return;_0x23c48e[_0x23ae('0x17')]((_0x5cf903,_0x333e81)=>{const _0x5e0402=_0x5cf903[_0x23ae('0x52')]['oldRange'],_0x1d6232=_0x333e81[_0x23ae('0x52')]['oldRange'];return null===_0x5e0402&&null===_0x1d6232?0x0:null===_0x5e0402&&null!==_0x1d6232?-0x1:null!==_0x5e0402&&null===_0x1d6232?0x1:_0x5e0402[_0x23ae('0xd7')][_0x23ae('0x3')](_0x1d6232['start'])?-0x1:0x1;});const _0x4e44ea=new Set(),_0x2ceb1a=new Set();for(const {name:_0x345169,data:_0x1e3f6d}of _0x23c48e){const {id:_0x449a12}=this[_0x23ae('0x172')](_0x345169);if(null===_0x1e3f6d['oldRange']){const _0xf250ac=this[_0x23ae('0x170')](_0x345169);_0x2ceb1a[_0x23ae('0x15')](_0xf250ac);}else{const _0xec0a01=this[_0x23ae('0x32')][_0x23ae('0x148')](_0x449a12);null!==_0x1e3f6d[_0x23ae('0xc9')]||_0xec0a01['isInContent']?(_0x4e44ea[_0x23ae('0x15')](_0xec0a01[_0x23ae('0x59')]),_0x2ceb1a['add'](_0xec0a01)):this[_0x23ae('0x109')](_0xec0a01);}}_0x2ceb1a['size']>0x0&&this[_0x23ae('0x16')](_0x2ceb1a);for(const _0x282877 of _0x4e44ea)this[_0x23ae('0x4e')](_0x23ae('0xb2'),_0x282877);}),_0x3cf3e5[_0x23ae('0x10')]['on'](_0x23ae('0x50'),(_0xf5ae74,_0x4a7048)=>{const _0x5dcd19=_0x4a7048[0x0];if(!this[_0x23ae('0x32')][_0x23ae('0xe1')])return;if(!_0x5dcd19[_0x23ae('0xcf')])return;if(_0x5dcd19[_0x23ae('0x119')][_0x23ae('0x87')]||!_0x5dcd19['batch']['isLocal'])return;let _0x45c146,_0x16f7ea;switch(_0x5dcd19[_0x23ae('0x15c')]){case'insert':_0x45c146=_0x3cf3e5[_0x23ae('0x10')]['createPositionAt'](_0x5dcd19['position']),_0x16f7ea=_0x45c146['getShiftedBy'](_0x5dcd19[_0x23ae('0xf8')]);break;case'split':_0x45c146=_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x130')](_0x5dcd19['splitPosition']),_0x16f7ea=_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x130')](_0x5dcd19['moveTargetPosition']);break;case _0x23ae('0x6b'):_0x45c146=_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x130')](_0x5dcd19['targetPosition']),_0x16f7ea=_0x45c146[_0x23ae('0x88')](_0x5dcd19[_0x23ae('0xf8')]);break;default:return;}const _0xdf35b7=_0x3cf3e5[_0x23ae('0x10')]['createRange'](_0x45c146,_0x16f7ea);_0x3cf3e5[_0x23ae('0x10')]['change'](()=>{for(const {suggestion:_0x395b3e,meta:_0x42906f}of this['_findSuggestions'](_0xdf35b7)){if(_0x395b3e[_0x23ae('0x27')])continue;if(_0x23ae('0x1e')==_0x395b3e[_0x23ae('0x15c')])continue;const _0xa205d4=Pt(_0x395b3e);if(_0xa205d4&&this[_0x23ae('0x123')](_0xa205d4)&&'split'!=_0x5dcd19[_0x23ae('0x15c')])continue;const _0x1cbd28=_0x395b3e[_0x23ae('0x52')]&&_0x395b3e[_0x23ae('0x52')][_0x23ae('0xbb')];('formatBlock'!=_0x395b3e[_0x23ae('0x15c')]||_0x23ae('0x2f')==_0x5dcd19[_0x23ae('0x15c')]&&!_0x1cbd28)&&(_0x42906f[_0x23ae('0xa9')]||_0x23ae('0x12')==_0x395b3e[_0x23ae('0x15c')]&&_0x42906f[_0x23ae('0xd9')]||_0x395b3e['getFirstRange']()[_0x23ae('0x117')](_0xdf35b7)&&this[_0x23ae('0xc1')](_0x395b3e,_0x45c146,_0x16f7ea));}});},{'priority':_0x23ae('0xf5')}),_0x3cf3e5[_0x23ae('0x10')]['on'](_0x23ae('0x61'),(_0x3a80b8,_0x4ded1e)=>{const _0x493c7c=_0x4ded1e[0x0],_0x58b20c=_0x4ded1e[0x1];if(_0x58b20c&&_0x58b20c[_0x23ae('0x143')])return;if(this[_0x23ae('0xfc')])return;if(!this['trackChangesCommand']['value'])return;if(_0x493c7c['isCollapsed'])return;const _0x4d6dca=_0x3cf3e5['model'][_0x23ae('0x108')],{start:_0x531fcf,end:_0x720a08}=_0x493c7c[_0x23ae('0x1')](),_0x26f989=_0x531fcf[_0x23ae('0xa3')]&&_0x4d6dca['isLimit'](_0x531fcf[_0x23ae('0xa3')])?null:_0x4d6dca['getNearestSelectionRange'](_0x531fcf,_0x23ae('0xdd')),_0x1b1e4c=_0x720a08[_0x23ae('0x14f')]&&_0x4d6dca[_0x23ae('0x135')](_0x720a08[_0x23ae('0x14f')])?null:_0x4d6dca['getNearestSelectionRange'](_0x720a08,_0x23ae('0x65')),_0x240be8=_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x131')](_0x26f989?_0x26f989[_0x23ae('0xd7')]:_0x531fcf,_0x1b1e4c?_0x1b1e4c[_0x23ae('0x7c')]:_0x720a08);_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x6e')](_0x2cca27=>{this['markDeletion'](_0x240be8);const _0x3ca066=_0x3cf3e5['model'][_0x23ae('0x108')]['getNearestSelectionRange'](_0x240be8['start']);_0x493c7c['is'](_0x23ae('0x73'))?_0x2cca27[_0x23ae('0x69')](_0x3ca066):_0x493c7c[_0x23ae('0x35')](_0x3ca066);}),_0x3a80b8[_0x23ae('0xd0')]();},{'priority':_0x40a7cb[_0x23ae('0x9b')]+0xa}),_0x3cf3e5[_0x23ae('0x10')]['on'](_0x23ae('0x136'),(_0xbc757,_0x39b26a)=>{const _0x18fdb2=_0x39b26a[_0x39b26a[_0x23ae('0xa1')]-0x1];_0x18fdb2&&_0x18fdb2['forceDefaultExecution']||this[_0x23ae('0xfc')]||this[_0x23ae('0x176')][_0x23ae('0xe')]&&(_0x3cf3e5['model'][_0x23ae('0x6e')](()=>{let _0x5a1696=_0x3cf3e5[_0x23ae('0x10')]['insertContent'](_0x39b26a[0x0],_0x39b26a[0x1],_0x39b26a[0x2],{'forceDefaultExecution':!0x0});if(!_0x5a1696)return;_0xbc757[_0x23ae('0xda')]=_0x5a1696['clone']();const _0x47ff7d=_0x5a1696[_0x23ae('0x7c')]['nodeBefore'],_0x26a7c8=_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x108')];_0x47ff7d&&_0x26a7c8['isBlock'](_0x47ff7d)&&!_0x26a7c8[_0x23ae('0x160')](_0x47ff7d)&&(_0x5a1696=_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x131')](_0x5a1696[_0x23ae('0xd7')],_0x3cf3e5[_0x23ae('0x10')][_0x23ae('0x130')](_0x47ff7d,_0x23ae('0x7c')))),this[_0x23ae('0x12e')](_0x5a1696);}),_0xbc757[_0x23ae('0xd0')]());},{'priority':'high'}),this[_0x23ae('0x11e')][_0x23ae('0x31')][_0x23ae('0x15')](_0x23ae('0x93'),this[_0x23ae('0x176')]),this[_0x23ae('0xb4')](_0x23ae('0x93'));const _0xfe6dfb=new _0x556d61(_0x3cf3e5,this['_suggestions']);_0x3cf3e5['commands']['add']('acceptSuggestion',_0xfe6dfb),this['enableCommand'](_0x23ae('0xc8'));const _0x2a13b8=new _0x5fa051(_0x3cf3e5,this[_0x23ae('0x32')]);_0x3cf3e5[_0x23ae('0x31')][_0x23ae('0x15')](_0x23ae('0x10f'),_0x2a13b8),this[_0x23ae('0xb4')](_0x23ae('0x10f')),_0x3cf3e5[_0x23ae('0x31')][_0x23ae('0x15')](_0x23ae('0x46'),new _0x223d2a(_0x3cf3e5,_0xfe6dfb,this[_0x23ae('0x32')])),this['enableCommand'](_0x23ae('0x46')),_0x3cf3e5[_0x23ae('0x31')][_0x23ae('0x15')](_0x23ae('0x5c'),new _0x223d2a(_0x3cf3e5,_0x2a13b8,this['_suggestions'])),this[_0x23ae('0xb4')](_0x23ae('0x5c')),_0x3cf3e5['commands']['add'](_0x23ae('0xe6'),new _0x215d49(_0x3cf3e5,_0xfe6dfb,this[_0x23ae('0x32')])),this['enableCommand']('acceptSelectedSuggestions'),_0x3cf3e5[_0x23ae('0x31')][_0x23ae('0x15')](_0x23ae('0x2c'),new _0x215d49(_0x3cf3e5,_0x2a13b8,this[_0x23ae('0x32')])),this[_0x23ae('0xb4')](_0x23ae('0x2c'));const _0x28b5e9=_0x3cf3e5[_0x23ae('0xae')]['get']('CommentsRepository');this[_0x23ae('0x1a')](_0x28b5e9,_0x23ae('0x15a'),(_0xe087a5,{threadId:_0x2bc337})=>{const _0x530fd5=this[_0x23ae('0x32')][_0x23ae('0x148')](_0x2bc337);_0x530fd5&&_0x530fd5[_0x23ae('0x14c')]&&0x1===_0x530fd5[_0x23ae('0x14c')][_0x23ae('0xa1')]&&this[_0x23ae('0x13b')](_0x2bc337,{'hasComments':!0x0});},{'priority':_0x23ae('0x12d')}),this[_0x23ae('0x1a')](_0x28b5e9,_0x23ae('0x63'),(_0x510bb9,{threadId:_0x4bb2d4})=>{const _0xf1ce5c=this[_0x23ae('0x32')][_0x23ae('0x148')](_0x4bb2d4);_0xf1ce5c&&_0xf1ce5c[_0x23ae('0x14c')]&&!_0xf1ce5c[_0x23ae('0x14c')][_0x23ae('0xa1')]&&this['_updateSuggestionData'](_0x4bb2d4,{'hasComments':!0x1});},{'priority':_0x23ae('0x12d')});}set[_0x23ae('0x110')](_0x9ff434){if(this[_0x23ae('0x33')])throw new _0x3918ce(_0x23ae('0x16b'),this);this[_0x23ae('0x33')]=_0x9ff434;}get[_0x23ae('0x110')](){return this[_0x23ae('0x33')];}[_0x23ae('0x141')]({skipNotAttached:_0x51296d=!0x1,toJSON:_0xdcc0b7=!0x1}={}){const _0x243fa4=[];for(const _0x44968d of this[_0x23ae('0x32')][_0x23ae('0xa7')]())_0x51296d&&!_0x44968d[_0x23ae('0x145')]||_0x243fa4[_0x23ae('0xef')](_0x44968d);return _0xdcc0b7?_0x243fa4[_0x23ae('0x152')](_0x4b5ec4=>_0x4b5ec4[_0x23ae('0x56')]()):_0x243fa4;}[_0x23ae('0x15f')](_0x1cf48d){const _0x12d877=this[_0x23ae('0x32')][_0x23ae('0x148')](_0x1cf48d);if(!_0x12d877)throw new _0x3918ce('track-changes-suggestion-not-found',this);return _0x12d877;}[_0x23ae('0x7')](_0x2ff503){return this[_0x23ae('0x32')]['has'](_0x2ff503);}[_0x23ae('0xec')](_0x42b881){const {authorId:_0x597427,id:_0x2f059d,attributes:_0x2d6f6b}=_0x42b881,[_0x5e58e3,_0x1c7e53]=_0x42b881[_0x23ae('0x15c')][_0x23ae('0x2f')](':'),_0x2d6757=this['_suggestions'][_0x23ae('0x148')](_0x2f059d)||this[_0x23ae('0x79')](_0x5e58e3,_0x1c7e53,_0x2f059d,_0x597427,_0x2d6f6b);if(this[_0x23ae('0x39')](_0x2d6757),this[_0x23ae('0xf2')](_0x2d6757,_0x5e58e3,_0x1c7e53||null,_0x597427),_0x2d6757['createdAt']=_0x42b881[_0x23ae('0x9a')],_0x2d6757[_0x23ae('0x16d')]=!0x0,_0x2d6f6b&&_0x2d6f6b['@external']){const _0x52fe45=_0x2d6f6b[_0x23ae('0x6d')],_0x57cb8d=this[_0x23ae('0x24')](_0x52fe45[_0x23ae('0x36')]);_0x2d6757[_0x23ae('0x171')]=_0x52fe45['createdAt'],_0x2d6757[_0x23ae('0x3b')]=_0x57cb8d,_0x2d6757[_0x23ae('0xd5')]=!0x0;}else _0x2d6757[_0x23ae('0x171')]=_0x42b881[_0x23ae('0x9a')];switch(_0x42b881[_0x23ae('0x52')]&&(_0x2d6757['data']=_0x42b881[_0x23ae('0x52')]),_0x42b881['attributes']&&(_0x2d6757['attributes']=_0x42b881[_0x23ae('0x16a')]),this[_0x23ae('0x33')]&&this[_0x23ae('0x33')][_0x23ae('0xf9')]||(_0x2d6757[_0x23ae('0xbe')]=!0x0),this[_0x23ae('0x53')]['get'](_0x2d6757)){case _0x23ae('0xf3'):this[_0x23ae('0x53')][_0x23ae('0x142')](_0x2d6757,'dataReady');break;case'markerReady':_0x2d6757['isInContent']?(this[_0x23ae('0x16')](new Set([_0x2d6757])),this[_0x23ae('0x16f')](new Set([_0x2d6757])),this[_0x23ae('0x53')][_0x23ae('0x142')](_0x2d6757,'ready'),this[_0x23ae('0x4e')](_0x23ae('0xdf'),_0x2d6757)):this[_0x23ae('0x53')][_0x23ae('0x142')](_0x2d6757,_0x23ae('0x7f'));}return _0x2d6757;}['acceptSuggestion'](_0x49a89f){this[_0x23ae('0x143')](()=>{this[_0x23ae('0x11e')]['model'][_0x23ae('0x6e')](()=>{for(const _0x23007f of _0x49a89f[_0x23ae('0xdc')]())_0x23007f[_0x23ae('0xfb')]();});});}['discardSuggestion'](_0x5bd19b){this[_0x23ae('0x143')](()=>{this['editor']['model'][_0x23ae('0x6e')](()=>{for(const _0x4845cc of _0x5bd19b[_0x23ae('0xdc')]())_0x4845cc[_0x23ae('0x167')]();});});}[_0x23ae('0xb4')](_0x316206,_0x504681){const _0x4d34fb=this[_0x23ae('0x11e')][_0x23ae('0x31')]['get'](_0x316206);if(!_0x4d34fb)throw new _0x3918ce('track-changes-command-not-found',this,{'commandName':_0x316206});if(this[_0x23ae('0x9d')][_0x23ae('0x16e')](_0x4d34fb))throw new _0x3918ce(_0x23ae('0xc6'),this,{'commandName':_0x316206});this[_0x23ae('0x9d')][_0x23ae('0x15')](_0x4d34fb),_0x504681&&_0x4d34fb['on'](_0x23ae('0x111'),(_0x324e90,_0xd12324)=>{this[_0x23ae('0x176')][_0x23ae('0xe')]&&(this[_0x23ae('0xfc')]||(_0xd12324[_0x23ae('0xa1')]>0x0&&_0xd12324[_0xd12324[_0x23ae('0xa1')]-0x1]&&_0xd12324[_0xd12324['length']-0x1]['forceDefaultExecution']?_0xd12324[_0x23ae('0x3d')]():(_0x324e90[_0x23ae('0xda')]=_0x504681((..._0x1be989)=>_0x4d34fb[_0x23ae('0x111')](..._0x1be989,{'forceDefaultExecution':!0x0}),..._0xd12324),_0x324e90[_0x23ae('0xd0')]())));},{'priority':_0x23ae('0x95')});}[_0x23ae('0x143')](_0x21aebf){let _0x228304,_0x4ba350;const _0x4fe864=this[_0x23ae('0xfc')];this[_0x23ae('0xfc')]=!0x0;try{_0x228304=_0x21aebf();}catch(_0x2c86ef){_0x4ba350=_0x2c86ef;}return _0x4fe864||(this[_0x23ae('0xfc')]=!0x1),_0x4ba350&&_0x3918ce[_0x23ae('0x2e')](_0x4ba350,this),_0x228304;}[_0x23ae('0x12e')](_0x18126a,_0x327763=null,_0x27ce78={}){if(_0x18126a[_0x23ae('0xe3')])return null;const _0x32d496=this[_0x23ae('0x11e')][_0x23ae('0xae')]['get'](_0x23ae('0x3c'))['me'];for(const {suggestion:_0x2e8230,meta:_0x46f914}of this['_findSuggestions'](_0x18126a,_0x23ae('0x12')))if(_0x46f914[_0x23ae('0xd9')]){if(!_0x46f914[_0x23ae('0x7a')]){if(_0x46f914[_0x23ae('0xa9')]){if(!this[_0x23ae('0x127')]||!Gt(_0x2e8230,_0x27ce78))continue;return _0x2e8230;}if(Gt(_0x2e8230,_0x27ce78))return _0x2e8230;this['_breakSuggestionMarker'](_0x2e8230,_0x18126a[_0x23ae('0xd7')],_0x18126a[_0x23ae('0x7c')]);break;}if(_0x327763==_0x2e8230[_0x23ae('0x11c')]&&Gt(_0x2e8230,_0x27ce78)){const _0x818d3e=_0x2e8230['getFirstRange']();return _0x818d3e['start'][_0x23ae('0xc5')](_0x18126a[_0x23ae('0x7c')])?this['_setSuggestionRange'](_0x2e8230,this[_0x23ae('0x37')][_0x23ae('0x131')](_0x18126a['start'],_0x818d3e[_0x23ae('0x7c')])):this['_setSuggestionRange'](_0x2e8230,this[_0x23ae('0x37')][_0x23ae('0x131')](_0x818d3e[_0x23ae('0xd7')],_0x18126a['end'])),_0x2e8230;}}const _0x48e85e=_0x4e6c1e(),_0xe166bd=_0x32d496['id'],_0x19cc00=_0x327763?_0x23ae('0x8e')+_0x327763:'insertion',_0x32c181=this[_0x23ae('0xb0')]({'id':_0x48e85e,'type':_0x19cc00,'createdAt':new Date(),'authorId':_0xe166bd,'attributes':_0x27ce78});return this[_0x23ae('0x101')](_0x19cc00,_0x48e85e,_0xe166bd,_0x18126a),_0x32c181;}['markMultiRangeInsertion'](_0x611fbb,_0x3416c5=_0x23ae('0x12f'),_0x4a8c1d={}){const _0x31cd2b=this[_0x23ae('0x11e')][_0x23ae('0xae')]['get']('Users')['me'],_0xce1db5=this[_0x23ae('0x10e')]['getSuggestionCallback'](_0x23ae('0x12'),_0x3416c5,_0x23ae('0xb9'));for(const _0x2e3aa9 of this[_0x23ae('0x141')]())if(_0x2e3aa9['author']['id']==_0x31cd2b['id']&&'insertion'==_0x2e3aa9[_0x23ae('0x15c')]&&_0x2e3aa9['subType']==_0x3416c5&&Gt(_0x2e3aa9,_0x4a8c1d)&&(_0xce1db5(_0x2e3aa9[_0x23ae('0x30')](),_0x611fbb)||_0xce1db5(_0x611fbb,_0x2e3aa9[_0x23ae('0x30')]()))){for(const _0xb21ae7 of _0x611fbb)_0x2e3aa9[_0x23ae('0x154')](_0xb21ae7);return _0x2e3aa9;}for(const {suggestion:_0x2a9ec4,meta:_0x51012c}of this[_0x23ae('0x8a')](_0x611fbb,_0x23ae('0x12'))){if(!_0x51012c[_0x23ae('0xd9')])continue;if(!this[_0x23ae('0x127')]&&_0x51012c[_0x23ae('0xa9')])continue;if(!Gt(_0x2a9ec4,_0x4a8c1d))continue;let _0x45fb2c=!0x0;for(const _0x4bb207 of _0x2a9ec4[_0x23ae('0x30')]())for(const _0x288d3d of _0x611fbb)if(!_0x4bb207[_0x23ae('0x117')](_0x288d3d)){_0x45fb2c=!0x1;break;}if(_0x45fb2c)return _0x2a9ec4;}const _0x408723=_0x4e6c1e(),_0x127567=_0x31cd2b['id'],_0x4627a1=_0x23ae('0x8e')+_0x3416c5,_0x23369f=this[_0x23ae('0xb0')]({'id':_0x408723,'type':_0x4627a1,'createdAt':new Date(),'authorId':_0x127567,'attributes':_0x4a8c1d});for(const _0x54cc7a of _0x611fbb)this[_0x23ae('0x101')](_0x4627a1,_0x408723,_0x127567,_0x54cc7a,_0x3d27b9[_0x23ae('0x116')]());return _0x23369f;}[_0x23ae('0xba')](_0x5b751a,_0x1a9caa,_0x58c7ae=null,_0x2c77e9={}){if(_0x58c7ae=_0x58c7ae||Rt(_0x1a9caa),_0x5b751a['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x42340d=this[_0x23ae('0x10e')]['getSuggestionCallback'](_0x23ae('0x1e'),_0x58c7ae,'accept');return this[_0x23ae('0x143')](()=>_0x42340d([_0x5b751a],_0x1a9caa,_0x2c77e9)),null;}const _0x30816a=this['editor']['plugins'][_0x23ae('0x148')](_0x23ae('0x3c'))['me'],_0x5b206a=[];if(_0x23ae('0x107')!==this[_0x23ae('0xca')])for(const {suggestion:_0x27b0a4,meta:_0x439329}of this['_findSuggestions'](_0x5b751a,_0x23ae('0x12')))_0x439329[_0x23ae('0xd9')]&&!_0x439329[_0x23ae('0xdb')]&&_0x5b206a[_0x23ae('0xef')](..._0x27b0a4[_0x23ae('0x30')]());const _0x513eab=function(_0x2235bd,_0x359d23){const _0x727c8=[];for(const _0x251926 of _0x359d23){const _0x41db47=_0x2235bd['getIntersection'](_0x251926);_0x41db47&&_0x727c8[_0x23ae('0xef')](_0x41db47);}return _0x727c8;}(_0x5b751a,_0x5b206a),_0x1e64ce=function(_0x32450f,_0x34b571){const _0x575b8a=[_0x32450f];for(const _0x45748c of _0x34b571){let _0x2d2b54=0x0;for(;_0x2d2b54<_0x575b8a[_0x23ae('0xa1')];){const _0x2ccfb6=_0x575b8a[_0x2d2b54][_0x23ae('0xb3')](_0x45748c);_0x575b8a[_0x23ae('0x17d')](_0x2d2b54,0x1,..._0x2ccfb6),_0x2d2b54+=_0x2ccfb6[_0x23ae('0xa1')];}}return _0x575b8a;}(_0x5b751a,_0x5b206a);_0x513eab['length']&&this[_0x23ae('0x37')][_0x23ae('0x6e')](()=>{for(const _0x5902b9 of _0x513eab){const _0x2859c8=this[_0x23ae('0x10e')][_0x23ae('0x34')](_0x23ae('0x1e'),_0x58c7ae,_0x23ae('0xfb'));this['forceDefaultExecution'](()=>_0x2859c8([_0x5902b9],_0x1a9caa,_0x2c77e9));}});for(const _0x54e2ed of _0x1e64ce){let _0x52d4fd=null,_0x4193e4=_0x54e2ed[_0x23ae('0xd7')],_0x55486b=_0x54e2ed[_0x23ae('0x7c')];for(const {suggestion:_0x45b755,meta:_0x3ba75d}of this[_0x23ae('0x8a')](_0x54e2ed,_0x23ae('0x1e'))){if(!_0x3ba75d[_0x23ae('0xd9')])continue;if(_0x45b755[_0x23ae('0x11c')]!=_0x58c7ae)continue;if(!Gt(_0x45b755,_0x2c77e9))continue;const _0x1eccdb=_0x45b755[_0x23ae('0x1')]();if(_0x1eccdb['containsRange'](_0x54e2ed,!0x0))return null;_0x4193e4=_0x4193e4[_0x23ae('0x3')](_0x1eccdb[_0x23ae('0xd7')])?_0x4193e4:_0x1eccdb[_0x23ae('0xd7')],_0x55486b=_0x55486b[_0x23ae('0x178')](_0x1eccdb['end'])?_0x55486b:_0x1eccdb['end'],_0x52d4fd?_0x1eccdb[_0x23ae('0xd7')][_0x23ae('0x3')](_0x52d4fd[_0x23ae('0x1')]()[_0x23ae('0xd7')])?(_0x52d4fd[_0x23ae('0x72')](),_0x52d4fd=_0x45b755):_0x45b755[_0x23ae('0x72')]():_0x52d4fd=_0x45b755;}const _0x67d3af=this[_0x23ae('0x37')][_0x23ae('0x131')](_0x4193e4,_0x55486b);if(_0x52d4fd)this[_0x23ae('0xc0')](_0x52d4fd,_0x67d3af);else{const _0x54cfe0=_0x4e6c1e(),_0x52502c=_0x30816a['id'];this[_0x23ae('0xb0')]({'id':_0x54cfe0,'type':_0x23ae('0xa0')+_0x58c7ae,'data':_0x1a9caa,'createdAt':new Date(),'authorId':_0x52502c,'attributes':_0x2c77e9}),this[_0x23ae('0x101')](_0x23ae('0xa0')+_0x58c7ae,_0x54cfe0,_0x52502c,_0x67d3af);}}return null;}[_0x23ae('0x26')](_0x14fbce,_0xd5458f,_0x310622=[],_0x17a161=null,_0xd2119e={}){_0xd5458f['formatGroupId']||(_0xd5458f['formatGroupId']=_0xd5458f[_0x23ae('0x100')]),_0xd5458f[_0x23ae('0xbb')]=_0x14fbce['is'](_0x23ae('0x2')),_0x17a161=_0x17a161||Rt(_0xd5458f);const _0x102f20=_0x310622[_0x23ae('0x152')](_0x2e2cdf=>Ut(_0x2e2cdf,this[_0x23ae('0x37')])),_0x107863=_0x14fbce['is']('range')?_0x14fbce:Ut(_0x14fbce,this[_0x23ae('0x37')]);if(_0x23ae('0xf7')===this[_0x23ae('0xca')]){const _0x329b4f=this[_0x23ae('0x10e')][_0x23ae('0x34')](_0x23ae('0xee'),_0x17a161,'accept');return this[_0x23ae('0x143')](()=>_0x329b4f([_0x107863],_0xd5458f,_0xd2119e)),null;}_0x102f20[_0x23ae('0xef')](_0x107863);let _0x1a5c2e=!0x0;for(const _0x466fbe of _0x102f20)if(!this[_0x23ae('0x4c')](_0x466fbe)){_0x1a5c2e=!0x1;break;}if(_0x1a5c2e&&_0x23ae('0x107')!==this['_trackFormatChanges']){const _0x42cbe7=this[_0x23ae('0x10e')][_0x23ae('0x34')](_0x23ae('0xee'),_0x17a161,_0x23ae('0xfb'));return this[_0x23ae('0x143')](()=>_0x42cbe7([_0x107863],_0xd5458f,_0xd2119e)),null;}let _0x2e618c=null,_0x39a164=_0x107863['start'],_0xdc1ffb=_0x107863['end'];for(const {suggestion:_0x22352c,meta:_0x39f99f}of this[_0x23ae('0x8a')](_0x107863,_0x23ae('0xee'))){if(!_0x39f99f[_0x23ae('0xd9')])continue;if(_0x39f99f[_0x23ae('0x7a')]||_0x39f99f['containsRangeInObject']||_0x39f99f['isInsideObject'])continue;if(_0x22352c[_0x23ae('0x52')][_0x23ae('0xe5')]!=_0xd5458f[_0x23ae('0xe5')])continue;if(!Gt(_0x22352c,_0xd2119e))continue;const _0x401b49=_0x22352c[_0x23ae('0x1')]();if(_0x22352c['subType']==_0x17a161){if(_0x401b49[_0x23ae('0x117')](_0x107863,!0x0))return null;_0x39a164=_0x39a164[_0x23ae('0x3')](_0x401b49[_0x23ae('0xd7')])?_0x39a164:_0x401b49[_0x23ae('0xd7')],_0xdc1ffb=_0xdc1ffb[_0x23ae('0x178')](_0x401b49[_0x23ae('0x7c')])?_0xdc1ffb:_0x401b49[_0x23ae('0x7c')],_0x2e618c?_0x401b49[_0x23ae('0xd7')]['isBefore'](_0x2e618c[_0x23ae('0x1')]()[_0x23ae('0xd7')])?(_0x2e618c[_0x23ae('0x72')](),_0x2e618c=_0x22352c):_0x22352c['removeMarkers']():_0x2e618c=_0x22352c;}else{const _0x3da7f4=_0x107863[_0x23ae('0x10b')](_0x401b49);this[_0x23ae('0x2b')](_0x22352c,_0x3da7f4);}}const _0x2ec6d0=this[_0x23ae('0x11e')][_0x23ae('0xae')]['get'](_0x23ae('0x3c'))['me'],_0x3443dd=_0x4e6c1e(),_0x504699=_0x2ec6d0['id'];if(_0x2e618c)return this['_setSuggestionRange'](_0x2e618c,this['_model'][_0x23ae('0x131')](_0x39a164,_0xdc1ffb)),_0x2e618c;{const _0x145b5c=this[_0x23ae('0xb0')]({'id':_0x3443dd,'type':'formatBlock:'+_0x17a161,'data':_0xd5458f,'createdAt':new Date(),'authorId':_0x504699,'attributes':_0xd2119e});return this[_0x23ae('0x101')](_0x23ae('0xb5')+_0x17a161,_0x3443dd,_0x504699,this[_0x23ae('0x37')][_0x23ae('0x131')](_0x39a164,_0xdc1ffb)),_0x145b5c;}}[_0x23ae('0x89')](_0x19e73a,_0x4ef8c5,_0x1561ad=[],_0x1bbdbe=null,_0x5e7e1b={}){_0x4ef8c5[_0x23ae('0xe5')]||(_0x4ef8c5['formatGroupId']=_0x4ef8c5[_0x23ae('0x100')]);const _0x58e407=_0x19e73a[0x0];_0x4ef8c5[_0x23ae('0xbb')]=_0x58e407['is'](_0x23ae('0x2')),_0x1bbdbe=_0x1bbdbe||Rt(_0x4ef8c5);const _0x1903fc=_0x1561ad[_0x23ae('0x152')](_0x595f26=>Ut(_0x595f26,this[_0x23ae('0x37')])),_0x30db23=_0x58e407['is'](_0x23ae('0x2'))?_0x19e73a:_0x19e73a['map'](_0x5e5dfc=>Ut(_0x5e5dfc,this[_0x23ae('0x37')]));if('never'===this[_0x23ae('0xca')]){const _0x41fea8=this[_0x23ae('0x10e')]['getSuggestionCallback'](_0x23ae('0xee'),_0x1bbdbe,_0x23ae('0xfb'));return this[_0x23ae('0x143')](()=>_0x41fea8(_0x30db23,_0x4ef8c5,_0x5e7e1b)),null;}_0x1903fc[_0x23ae('0xef')](..._0x30db23);let _0x104641=!0x0;for(const _0x456a65 of _0x1903fc)if(!this[_0x23ae('0x4c')](_0x456a65)){_0x104641=!0x1;break;}if(_0x104641&&_0x23ae('0x107')!==this[_0x23ae('0xca')]){const _0x35f3c0=this[_0x23ae('0x10e')]['getSuggestionCallback'](_0x23ae('0xee'),_0x1bbdbe,_0x23ae('0xfb'));return this[_0x23ae('0x143')](()=>_0x35f3c0(_0x30db23,_0x4ef8c5,_0x5e7e1b)),null;}const _0x5ae80a=this['editor'][_0x23ae('0xae')][_0x23ae('0x148')](_0x23ae('0x3c'))['me'];for(const _0x475ef3 of this[_0x23ae('0x141')]()){if(_0x475ef3[_0x23ae('0x3b')]['id']!=_0x5ae80a['id'])continue;if(_0x23ae('0xee')!=_0x475ef3[_0x23ae('0x15c')]||_0x475ef3[_0x23ae('0x52')]['formatGroupId']!=_0x4ef8c5[_0x23ae('0xe5')])continue;if(!Gt(_0x475ef3,_0x5e7e1b))continue;const _0x3fa9c1=_0x475ef3['subType']==_0x1bbdbe;for(let _0x5bbc8f=0x0;_0x5bbc8f<_0x30db23[_0x23ae('0xa1')];_0x5bbc8f++){const _0x46f3f7=_0x30db23[_0x5bbc8f];for(const _0x3bef50 of _0x475ef3['getMarkers']()){const _0x237066=_0x3bef50['getRange']();if(_0x46f3f7[_0x23ae('0xc5')](_0x237066)){_0x3fa9c1?(_0x30db23[_0x23ae('0x17d')](_0x5bbc8f,0x1),_0x5bbc8f--):_0x475ef3[_0x23ae('0x8b')](_0x3bef50[_0x23ae('0xc3')]);break;}}}}if(0x0==_0x30db23['length'])return null;const _0x1bce40=this[_0x23ae('0x10e')][_0x23ae('0x34')](_0x23ae('0xee'),_0x1bbdbe,'join');for(const _0x4c76da of this[_0x23ae('0x141')]())if(_0x4c76da[_0x23ae('0x3b')]['id']==_0x5ae80a['id']&&_0x23ae('0xee')==_0x4c76da[_0x23ae('0x15c')]&&_0x4c76da[_0x23ae('0x52')][_0x23ae('0xe5')]==_0x4ef8c5[_0x23ae('0xe5')]&&_0x4c76da['subType']==_0x1bbdbe&&Gt(_0x4c76da,_0x5e7e1b)&&(_0x1bce40(_0x4c76da['getRanges'](),_0x30db23)||_0x1bce40(_0x30db23,_0x4c76da[_0x23ae('0x30')]()))){for(const _0x14c8d2 of _0x30db23)_0x4c76da['addRange'](_0x14c8d2);return _0x4c76da;}const _0x27246a=_0x4e6c1e(),_0x193588=_0x5ae80a['id'],_0x3719e4=_0x23ae('0xb5')+_0x1bbdbe,_0x1e9c22=this[_0x23ae('0xb0')]({'id':_0x27246a,'type':_0x3719e4,'data':_0x4ef8c5,'createdAt':new Date(),'authorId':_0x193588,'attributes':_0x5e7e1b});for(const _0x7225f9 of _0x30db23)this['_addSuggestionMarker'](_0x3719e4,_0x27246a,_0x193588,_0x7225f9,_0x3d27b9[_0x23ae('0x116')]());return _0x1e9c22;}[_0x23ae('0x51')](_0x28c054,_0x228f91=null,_0x11a849={}){if(_0x28c054[_0x23ae('0xe3')])return null;const _0x2cafe4=this['editor'][_0x23ae('0xae')][_0x23ae('0x148')]('Users')['me'],_0x4539c3=new _0x384459(_0x28c054['start'],_0x28c054[_0x23ae('0x7c')]);for(const {suggestion:_0x556362,meta:_0x3af90b}of this['_findSuggestions'](_0x4539c3,'insertion'))if(_0x3af90b['isOwn']&&!_0x3af90b[_0x23ae('0x7a')]){if(_0x556362[_0x23ae('0x27')]){const _0x3f1326=_0x556362[_0x23ae('0x30')]()[_0x23ae('0xd6')](_0xc2623f=>_0x23ae('0xc7')!=_0xc2623f[_0x23ae('0x62')][_0x23ae('0x94')]);_0x3f1326[_0x23ae('0x112')](_0x250c33=>_0x4539c3[_0x23ae('0x117')](_0x250c33,!0x0))&&_0x556362['discard']();if(_0x3f1326[_0x23ae('0xd2')](_0x57bb82=>_0x57bb82[_0x23ae('0x117')](_0x4539c3,!0x0))){const _0x56e9c3=this[_0x23ae('0x10e')]['getSuggestionCallback'](_0x23ae('0x68'),_0x228f91,_0x23ae('0xfb'));return this[_0x23ae('0x143')](()=>_0x56e9c3([_0x4539c3],null,_0x11a849)),null;}}else{const _0x37a4c6=_0x4539c3[_0x23ae('0x10b')](_0x556362['getFirstRange']());null!==_0x37a4c6&&_0x556362[_0x23ae('0x13')]([_0x37a4c6],null,_0x11a849);}}if(_0x4539c3[_0x23ae('0x5')](),_0x4539c3[_0x23ae('0xe3')]||_0x23ae('0xc7')==_0x4539c3['root']['rootName'])return null;let _0x5e2f9e=null,_0x564f22=_0x4539c3[_0x23ae('0xd7')],_0xfee17c=_0x4539c3[_0x23ae('0x7c')];const _0x15e6c6=this[_0x23ae('0x8a')](_0x4539c3,_0x23ae('0x68'));for(const {suggestion:_0x86db35,meta:_0x4ece58}of _0x15e6c6){const _0x32758d=this[_0x23ae('0x37')][_0x23ae('0x131')](_0x564f22,_0xfee17c);if(_0x4ece58[_0x23ae('0xd9')]&&(this[_0x23ae('0x127')]||!_0x4ece58[_0x23ae('0xa9')]&&!_0x4ece58[_0x23ae('0xdb')])){if(_0x86db35[_0x23ae('0x27')]){if(!Gt(_0x86db35,_0x11a849))continue;let _0x46b4b9=!0x0;for(const _0x38d501 of _0x86db35[_0x23ae('0x30')]()){if(_0x38d501[_0x23ae('0x117')](_0x32758d,!0x0))return _0x86db35;_0x32758d[_0x23ae('0x117')](_0x38d501)||(_0x46b4b9=!0x1);}_0x46b4b9&&_0x86db35['discard']();}else{const _0x158d51=_0x86db35[_0x23ae('0x1')]();if(_0x158d51[_0x23ae('0x117')](_0x32758d,!0x0))return _0x86db35;if(!Gt(_0x86db35,_0x11a849)){_0x32758d[_0x23ae('0x117')](_0x158d51)?_0x86db35[_0x23ae('0x72')]():_0x158d51['containsPosition'](_0x564f22)?_0x564f22=_0x158d51[_0x23ae('0x7c')]:_0x158d51['containsPosition'](_0xfee17c)&&(_0xfee17c=_0x158d51[_0x23ae('0xd7')]);continue;}_0x564f22=_0x564f22['isBefore'](_0x158d51[_0x23ae('0xd7')])?_0x564f22:_0x158d51['start'],_0xfee17c=_0xfee17c[_0x23ae('0x178')](_0x158d51[_0x23ae('0x7c')])?_0xfee17c:_0x158d51[_0x23ae('0x7c')],_0x11a849=Object[_0x23ae('0x74')]({},_0x86db35[_0x23ae('0x16a')]),_0x5e2f9e?_0x158d51[_0x23ae('0xd7')][_0x23ae('0x3')](_0x5e2f9e['getFirstRange']()['start'])?(_0x5e2f9e[_0x23ae('0x72')](),_0x5e2f9e=_0x86db35):_0x86db35[_0x23ae('0x72')]():_0x5e2f9e=_0x86db35;}}}if(_0x5e2f9e)return this[_0x23ae('0xc0')](_0x5e2f9e,this[_0x23ae('0x37')][_0x23ae('0x131')](_0x564f22,_0xfee17c)),_0x5e2f9e;{const _0x197616=_0x4e6c1e(),_0x5ecc9f=this[_0x23ae('0x37')][_0x23ae('0x131')](_0x564f22,_0xfee17c),_0x2f36b5=_0x2cafe4['id'],_0x5cdff1=_0x228f91?_0x23ae('0x132')+_0x228f91:'deletion',_0x2df89f=this[_0x23ae('0xb0')]({'id':_0x197616,'type':_0x5cdff1,'createdAt':new Date(),'authorId':_0x2f36b5,'attributes':_0x11a849});return this[_0x23ae('0x101')](_0x5cdff1,_0x197616,_0x2f36b5,_0x5ecc9f),_0x2df89f;}}[_0x23ae('0x11a')](_0x1e0fc9,_0x48a99d='multi',_0x2b008c={}){const _0x2fa62d=this[_0x23ae('0x11e')]['plugins']['get'](_0x23ae('0x3c'))['me'],_0x4011c5=_0x1e0fc9['map'](_0x92d74d=>new _0x384459(_0x92d74d['start'],_0x92d74d[_0x23ae('0x7c')])),_0x9f090d=new Set();for(const {suggestion:_0x27285b,meta:_0x553ac0}of this[_0x23ae('0x8a')](_0x4011c5,_0x23ae('0x12')))_0x553ac0[_0x23ae('0xd9')]&&!_0x553ac0[_0x23ae('0x7a')]&&_0x9f090d[_0x23ae('0x15')](_0x27285b);for(const _0x17e7c1 of _0x9f090d)if(_0x17e7c1[_0x23ae('0x27')]){const _0xcb4a65=_0x17e7c1[_0x23ae('0x30')]();(!_0x17e7c1[_0x23ae('0x16a')]||!_0x17e7c1[_0x23ae('0x16a')][_0x23ae('0x13d')])&&(_0xcb4a65[_0x23ae('0x112')](_0x252437=>_0x4011c5[_0x23ae('0xd2')](_0x5dcded=>_0x5dcded[_0x23ae('0x117')](_0x252437,!0x0)))&&_0x17e7c1['discard']());if(_0x4011c5[_0x23ae('0x112')](_0x431923=>_0xcb4a65[_0x23ae('0xd2')](_0x541fa2=>_0x541fa2[_0x23ae('0x117')](_0x431923,!0x0)))){const _0x4aa569=this[_0x23ae('0x10e')]['getSuggestionCallback'](_0x23ae('0x68'),_0x48a99d,'accept');return this[_0x23ae('0x143')](()=>_0x4aa569(_0x1e0fc9,null,_0x2b008c)),null;}}else{const _0x44ed7b=_0x17e7c1['getFirstRange']();_0x4011c5[_0x23ae('0xd2')](_0x77095b=>_0x77095b[_0x23ae('0x117')](_0x44ed7b,!0x0))&&_0x17e7c1[_0x23ae('0x167')]();if(_0x4011c5['every'](_0x52fb0b=>_0x44ed7b[_0x23ae('0x117')](_0x52fb0b,!0x0))){const _0xa9c338=this['_suggestionFactory'][_0x23ae('0x34')](_0x23ae('0x68'),_0x48a99d,_0x23ae('0xfb'));return this[_0x23ae('0x143')](()=>_0xa9c338(_0x4011c5,null,_0x2b008c)),null;}}const _0x4f5421=this[_0x23ae('0x10e')][_0x23ae('0x34')]('deletion',_0x48a99d,_0x23ae('0xb9'));let _0x2c66c5=null;for(const _0x5612f3 of this[_0x23ae('0x141')]())if(_0x5612f3[_0x23ae('0x3b')]['id']==_0x2fa62d['id']&&_0x5612f3['isInContent']&&_0x23ae('0x68')==_0x5612f3[_0x23ae('0x15c')]&&_0x5612f3[_0x23ae('0x11c')]==_0x48a99d&&Gt(_0x5612f3,_0x2b008c)&&(_0x4f5421(_0x5612f3[_0x23ae('0x30')](),_0x4011c5)||_0x4f5421(_0x4011c5,_0x5612f3['getRanges']()))){if(_0x2c66c5){if(_0x5612f3['commentThread']&&_0x5612f3[_0x23ae('0x14c')]['length'])continue;for(const _0x93e5f6 of _0x5612f3[_0x23ae('0x30')]())_0x2c66c5[_0x23ae('0x11d')](_0x93e5f6)||_0x2c66c5['addRange'](_0x93e5f6);_0x5612f3[_0x23ae('0x72')]();}else{_0x2c66c5=_0x5612f3;for(const _0x1dee94 of _0x4011c5)_0x5612f3[_0x23ae('0x11d')](_0x1dee94)||_0x5612f3[_0x23ae('0x154')](_0x1dee94);}}if(_0x2c66c5)return _0x2c66c5;_0x9f090d[_0x23ae('0x29')]();for(const {suggestion:_0x53c4ff,meta:_0x53dcbd}of this[_0x23ae('0x8a')](_0x4011c5,_0x23ae('0x68')))_0x53dcbd[_0x23ae('0xd9')]&&(this[_0x23ae('0x127')]||!_0x53dcbd[_0x23ae('0xa9')]&&!_0x53dcbd[_0x23ae('0xdb')])&&Gt(_0x53c4ff,_0x2b008c)&&_0x9f090d[_0x23ae('0x15')](_0x53c4ff);for(const _0x38efa2 of _0x9f090d){const _0x308e0f=_0x38efa2[_0x23ae('0x30')]();if(!_0x2b008c||!_0x2b008c[_0x23ae('0x13d')]){if(_0x4011c5[_0x23ae('0x112')](_0x21263a=>_0x308e0f['some'](_0x1fe3e5=>_0x1fe3e5[_0x23ae('0x117')](_0x21263a,!0x0))))return _0x38efa2;}(!_0x38efa2[_0x23ae('0x16a')]||!_0x38efa2['attributes'][_0x23ae('0x13d')])&&(_0x308e0f[_0x23ae('0x112')](_0x45ceef=>_0x4011c5[_0x23ae('0xd2')](_0x3ecb8b=>_0x3ecb8b[_0x23ae('0x117')](_0x45ceef,!0x0)))&&_0x38efa2[_0x23ae('0x167')]());}const _0x1df5b0=_0x4e6c1e(),_0x370aa3=_0x2fa62d['id'],_0x1b5a03=_0x23ae('0x132')+_0x48a99d,_0x1da7e6=this[_0x23ae('0xb0')]({'id':_0x1df5b0,'type':_0x1b5a03,'createdAt':new Date(),'authorId':_0x370aa3,'attributes':_0x2b008c});for(const _0x768a76 of _0x4011c5)_0x768a76['detach'](),_0x768a76[_0x23ae('0xe3')]||'$graveyard'==_0x768a76[_0x23ae('0x62')][_0x23ae('0x94')]||this[_0x23ae('0x101')](_0x1b5a03,_0x1df5b0,_0x370aa3,_0x768a76,_0x3d27b9[_0x23ae('0x116')]());return _0x1da7e6;}['markAttributeChange'](_0x4961d5,_0x3789c9,_0x3f0017,_0x50dccc,_0xa10779){if(_0x4961d5[_0x23ae('0xe3')])return[];if(_0x23ae('0xf7')===this[_0x23ae('0xca')])return[];const _0xb61767=this['editor'][_0x23ae('0xae')][_0x23ae('0x148')](_0x23ae('0x3c'))['me']['id'],_0x5e5bdf=Array['from'](this['_suggestions'][_0x23ae('0xa7')]())[_0x23ae('0xd6')](_0x6e0ebb=>_0x23ae('0xbd')==_0x6e0ebb[_0x23ae('0x15c')]&&_0x6e0ebb[_0x23ae('0x52')][_0x23ae('0x80')]==_0x3789c9&&_0x6e0ebb[_0x23ae('0x11d')](_0x4961d5));if(_0x23ae('0x16c')===this[_0x23ae('0xca')]){const _0x471dde=this[_0x23ae('0x8a')](_0x4961d5,_0x23ae('0x12'))[_0x23ae('0xd6')](({meta:_0x55a5cf})=>_0x55a5cf[_0x23ae('0xd9')]&&!_0x55a5cf['isInsideObject']&&!_0x55a5cf[_0x23ae('0x7a')])[_0x23ae('0x152')](({suggestion:_0x10b367})=>_0x10b367);_0x5e5bdf[_0x23ae('0x4f')](..._0x471dde);}const _0xf6672=new Map([[_0x4961d5,_0x3f0017]]);for(const _0x57ac9b of _0x5e5bdf){const _0x5441e8=_0x23ae('0xbd')==_0x57ac9b[_0x23ae('0x15c')]?_0x57ac9b[_0x23ae('0x52')][_0x23ae('0xe9')]:void 0x0,_0x3f50bb=_0x57ac9b[_0x23ae('0x1')](),_0x20d737=Array[_0x23ae('0xb8')](_0xf6672['keys']())[_0x23ae('0xd1')](_0x2095aa=>_0x2095aa[_0x23ae('0xf0')](_0x3f50bb));if(!_0x20d737)continue;const _0x23435c=_0x20d737[_0x23ae('0xb3')](_0x3f50bb);this['_isBlockAttribute'](_0x3789c9)&&_0x23ae('0x12')==_0x57ac9b['type']&&0x0!=_0x23435c[_0x23ae('0xa1')]||(_0xf6672['delete'](_0x20d737),_0x23435c['forEach'](_0x30ff16=>{_0xf6672[_0x23ae('0x142')](_0x30ff16,_0x3f0017);}),_0x23ae('0x12')!=_0x57ac9b[_0x23ae('0x15c')]&&_0x5441e8!=_0x50dccc&&_0xf6672['set'](_0x20d737['getIntersection'](_0x3f50bb),_0x5441e8));}const _0x3c0ead=[];for(const [_0x15d9d4,_0x38924f]of _0xf6672){const _0x268303=_0x4e6c1e(),_0x16680e={'key':_0x3789c9,'oldValue':_0x38924f,'newValue':_0x50dccc};_0x3789c9[_0x23ae('0xa1')]>0x25&&console[_0x23ae('0x12b')](_0x23ae('0x121'),{'key':_0x3789c9});const _0x228a7e=(_0x23ae('0x5b')+(_0x3789c9+'|'+Rt({'newValue':_0x50dccc})))[_0x23ae('0x10a')](0x0,0x3c),_0x50a513=this[_0x23ae('0xb0')]({'id':_0x268303,'type':_0x228a7e,'data':_0x16680e,'createdAt':new Date(),'authorId':_0xb61767,'attributes':_0xa10779});_0x3c0ead[_0x23ae('0xef')](_0x50a513),this['_addSuggestionMarker'](_0x228a7e,_0x268303,_0xb61767,_0x15d9d4);}return _0x3c0ead;}[_0x23ae('0xcb')](_0xa5a0f7){this[_0x23ae('0xe4')][_0x23ae('0x15')](_0xa5a0f7);}['_registerInlineAttribute'](_0x592268){this[_0x23ae('0xac')][_0x23ae('0x15')](_0x592268);}[_0x23ae('0x177')](_0x21055a,_0x41664e=[],_0xf3fbae=[]){this[_0x23ae('0xb4')](_0x21055a,(_0x44ac61,..._0x5c9495)=>{this[_0x23ae('0xfa')](()=>{_0x44ac61(..._0x5c9495);});});for(const _0x1c11c2 of _0x41664e)this[_0x23ae('0xcc')](_0x1c11c2);for(const _0xfc4cb9 of _0xf3fbae)this[_0x23ae('0xcb')](_0xfc4cb9);}[_0x23ae('0xc0')](_0x4f7132,_0x5db20e){const _0x2a0b2d=_0x4f7132[_0x23ae('0x14')]();this[_0x23ae('0x37')]['change'](_0x1bead4=>{_0x1bead4[_0x23ae('0x45')](_0x2a0b2d,{'range':_0x5db20e});});}['_addThreadToSuggestion'](_0x565eb7){const _0x8bfb57=_0x565eb7['id'],_0x5ee2c9=this[_0x23ae('0x11e')][_0x23ae('0x12c')]['get'](_0x23ae('0x114'));this[_0x23ae('0x173')][_0x23ae('0x7e')](_0x8bfb57)||this[_0x23ae('0x173')][_0x23ae('0x13e')]({'channelId':_0x5ee2c9,'threadId':_0x8bfb57,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2ce857=this[_0x23ae('0x173')][_0x23ae('0x13f')](_0x8bfb57);_0x2ce857[_0x23ae('0x44')](_0x23ae('0x1c')),_0x2ce857[_0x23ae('0x1c')]=!0x1,_0x565eb7[_0x23ae('0x14c')]=_0x2ce857;}['_checkSuggestionCorrectness'](_0x486b3b,_0x908d34,_0x39bcee,_0x5c2719){if(_0x486b3b[_0x23ae('0x15c')]!=_0x908d34||_0x486b3b[_0x23ae('0x11c')]!=_0x39bcee||_0x486b3b['creator']['id']!=_0x5c2719)throw this[_0x23ae('0x11e')][_0x23ae('0xb1')](_0x23ae('0x139')),new _0x3918ce(_0x23ae('0x139'),this);}[_0x23ae('0x2b')](_0x2f984c,_0x235db0){const _0xd2d4bf=_0x2f984c['getFirstRange']();if(_0x235db0[_0x23ae('0xc5')](_0xd2d4bf))_0x2f984c[_0x23ae('0x72')]();else{if(_0xd2d4bf[_0x23ae('0x117')](_0x235db0)){const _0xe5835b=this[_0x23ae('0x37')][_0x23ae('0x130')](_0x235db0[_0x23ae('0xd7')]['nodeBefore'],'end');this['_setSuggestionRange'](_0x2f984c,this[_0x23ae('0x37')][_0x23ae('0x131')](_0xd2d4bf['start'],_0xe5835b));const _0x8e543f=_0x4e6c1e(),_0x2a181f=_0x2f984c[_0x23ae('0x38')]['id'],_0x277ad4=_0x2f984c[_0x23ae('0x15c')]+':'+_0x2f984c[_0x23ae('0x11c')];this[_0x23ae('0xb0')]({'id':_0x8e543f,'type':_0x277ad4,'createdAt':new Date(),'authorId':_0x2a181f,'data':_0x2f984c['data'],'attributes':_0x2f984c['attributes']});const _0x4b7982=this[_0x23ae('0x37')]['createPositionAt'](_0x235db0[_0x23ae('0x7c')][_0x23ae('0xa5')],_0x23ae('0x129')),_0x49cb42=this[_0x23ae('0x37')]['createRange'](_0x4b7982,_0xd2d4bf[_0x23ae('0x7c')]);this[_0x23ae('0x101')](_0x277ad4,_0x8e543f,_0x2a181f,_0x49cb42);}else{if(_0xd2d4bf['containsPosition'](_0x235db0[_0x23ae('0xd7')])){const _0x8516dd=this[_0x23ae('0x37')][_0x23ae('0x130')](_0x235db0[_0x23ae('0xd7')][_0x23ae('0x14f')],_0x23ae('0x7c'));this[_0x23ae('0xc0')](_0x2f984c,this[_0x23ae('0x37')][_0x23ae('0x131')](_0xd2d4bf[_0x23ae('0xd7')],_0x8516dd));}else{const _0x2ec882=this[_0x23ae('0x37')]['createPositionAt'](_0x235db0[_0x23ae('0x7c')][_0x23ae('0xa5')],'after');this['_setSuggestionRange'](_0x2f984c,this['_model'][_0x23ae('0x131')](_0x2ec882,_0xd2d4bf[_0x23ae('0x7c')]));}}}}[_0x23ae('0x4c')](_0x25e6b6){for(const {suggestion:_0x30beaa,meta:_0x12c9a6}of this[_0x23ae('0x8a')](_0x25e6b6,_0x23ae('0x12'))){if(!_0x12c9a6[_0x23ae('0xd9')])continue;const _0x2abb80=_0x30beaa[_0x23ae('0x30')]();for(const _0x1ba7f8 of _0x2abb80)if(!_0x25e6b6[_0x23ae('0xb3')](_0x1ba7f8)[_0x23ae('0xa1')])return!0x0;}return!0x1;}[_0x23ae('0xcd')](_0x1bb207){const _0x19ac6e=this['editor'][_0x23ae('0xae')][_0x23ae('0x148')](_0x23ae('0x3c'))[_0x23ae('0xfd')](_0x1bb207);if(!_0x19ac6e)throw new _0x3918ce(_0x23ae('0x12a'),this);return _0x19ac6e;}['_getExternalAuthor'](_0x43df78){const _0x23dfe3=this[_0x23ae('0x11e')][_0x23ae('0xae')][_0x23ae('0x148')](_0x23ae('0x3c')),_0x9dcd95=_0x39bb41('external:'+_0x43df78),_0x460e1a=_0x23dfe3[_0x23ae('0xfd')](_0x9dcd95);return _0x460e1a||_0x23dfe3[_0x23ae('0x28')]({'id':_0x9dcd95,'name':_0x43df78});}[_0x23ae('0x79')](_0x53a965,_0x4372bb,_0x24fabd,_0xc30a6d,_0x3f6303){const _0x2bf0fa=this[_0x23ae('0xcd')](_0xc30a6d),_0x5ce6ff=this[_0x23ae('0x10e')][_0x23ae('0x134')](_0x53a965,_0x4372bb,_0x24fabd,_0x2bf0fa,_0x3f6303,_0x1385b4=>this[_0x23ae('0x13b')](_0x24fabd,{'attributes':_0x1385b4}));return this['listenTo'](_0x5ce6ff,_0x23ae('0xfb'),()=>{this['_updateSuggestionData'](_0x24fabd,{'state':_0x23ae('0x128')});},{'priority':_0x23ae('0x95')}),this[_0x23ae('0x1a')](_0x5ce6ff,'discard',()=>{this[_0x23ae('0x13b')](_0x24fabd,{'state':_0x23ae('0xbc')});},{'priority':'high'}),this[_0x23ae('0x32')][_0x23ae('0x142')](_0x24fabd,_0x5ce6ff),this[_0x23ae('0x53')][_0x23ae('0x142')](_0x5ce6ff,_0x23ae('0xf3')),_0x5ce6ff;}[_0x23ae('0x172')](_0x585b1d){const _0x485770=_0x585b1d[_0x23ae('0x2f')](':');return{'group':_0x485770[0x0],'type':_0x485770[0x1],'subType':_0x485770['length']>=0x5?_0x485770[0x2]:null,'id':_0x485770['length']<0x5?_0x485770[0x2]:_0x485770[0x3],'authorId':_0x485770[_0x23ae('0xa1')]<0x5?_0x485770[0x3]:_0x485770[0x4],'markerCount':0x6==_0x485770[_0x23ae('0xa1')]?_0x485770[0x5]:null};}[_0x23ae('0xc1')](_0x5a7dc1,_0x12820b,_0x9f323a){const _0x1259f2=_0x5a7dc1[_0x23ae('0x1')](),_0x4686c3=_0x1259f2[_0x23ae('0xd7')],_0x417f98=_0x1259f2['end'];this[_0x23ae('0xc0')](_0x5a7dc1,this[_0x23ae('0x37')][_0x23ae('0x131')](_0x4686c3,_0x12820b));const _0x45265a=_0x4e6c1e(),_0x4f8f90=_0x5a7dc1['creator']['id'],_0x94448d=_0x5a7dc1[_0x23ae('0x15c')]+(_0x5a7dc1[_0x23ae('0x11c')]?':'+_0x5a7dc1[_0x23ae('0x11c')]:'');this[_0x23ae('0xb0')]({'id':_0x45265a,'type':_0x94448d,'createdAt':new Date(),'authorId':_0x4f8f90,'originalSuggestionId':_0x5a7dc1['id'],'attributes':_0x5a7dc1[_0x23ae('0x16a')],'data':_0x5a7dc1[_0x23ae('0x52')]});const _0x5d843b=Pt(_0x5a7dc1);(_0x23ae('0xee')==_0x5a7dc1[_0x23ae('0x15c')]||_0x5d843b&&this[_0x23ae('0x123')](_0x5d843b))&&(_0x9f323a=this['_model']['createPositionBefore'](_0x9f323a[_0x23ae('0xa5')])),this[_0x23ae('0x101')](_0x94448d,_0x45265a,_0x4f8f90,this[_0x23ae('0x37')][_0x23ae('0x131')](_0x9f323a,_0x417f98));}[_0x23ae('0x8a')](_0x112cd0,_0x448773=null){const _0x3ce530=[],_0x229623=this['editor'][_0x23ae('0xae')][_0x23ae('0x148')](_0x23ae('0x3c'))['me'];Array[_0x23ae('0x49')](_0x112cd0)||(_0x112cd0=[_0x112cd0]);for(const _0xecda06 of this[_0x23ae('0x141')]()){if(!_0xecda06[_0x23ae('0x145')])continue;if(_0x448773&&_0xecda06['type']!=_0x448773)continue;let _0x4f39b1=!0x1;for(const _0x24ce33 of _0xecda06[_0x23ae('0x30')]()){for(const _0x2295b9 of _0x112cd0){const _0x22d7f6=_0x2295b9[_0x23ae('0xd7')][_0x23ae('0xc5')](_0x24ce33[_0x23ae('0x7c')])||_0x2295b9[_0x23ae('0x7c')][_0x23ae('0xc5')](_0x24ce33[_0x23ae('0xd7')]);if(_0x22d7f6||_0x2295b9[_0x23ae('0x10b')](_0x24ce33)){const _0x31fc0a=_0x2295b9[_0x23ae('0x117')](_0x24ce33)&&Tt(this[_0x23ae('0x37')][_0x23ae('0x108')],_0x24ce33[_0x23ae('0xd7')],_0x2295b9),_0x4abd5c=_0x24ce33[_0x23ae('0x117')](_0x2295b9)&&Tt(this[_0x23ae('0x37')][_0x23ae('0x108')],_0x2295b9['start'],_0x24ce33);_0x3ce530[_0x23ae('0xef')]({'suggestion':_0xecda06,'meta':{'isOwn':_0x229623==_0xecda06['author'],'isNextTo':_0x22d7f6,'isInsideObject':_0x31fc0a,'containsRangeInObject':_0x4abd5c}}),_0x4f39b1=!0x0;break;}}if(_0x4f39b1)break;}}return _0x3ce530;}['_addSuggestionMarker'](_0xbf371e,_0x59b4cf,_0x545d01,_0x7694c3,_0x2076cf){this[_0x23ae('0x37')][_0x23ae('0x6e')](_0x2911b5=>{let _0x49e98f=_0x23ae('0x57')+_0xbf371e+':'+_0x59b4cf+':'+_0x545d01;_0x2076cf&&(_0x49e98f=_0x49e98f+':'+_0x2076cf),_0x2911b5[_0x23ae('0x91')](_0x49e98f,{'range':_0x7694c3,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x23ae('0x109')](_0x52c5e3){const _0x2f92a0=_0x52c5e3[_0x23ae('0x11b')],_0x2d3d7c=_0x52c5e3[_0x23ae('0x179')];_0x52c5e3[_0x23ae('0x11b')]=null,_0x52c5e3['next']=null,null!=_0x2f92a0&&(_0x2f92a0[_0x23ae('0x179')]=_0x2d3d7c),null!=_0x2d3d7c&&(_0x2d3d7c[_0x23ae('0x11b')]=_0x2f92a0),_0x23ae('0xf4')==this[_0x23ae('0x53')][_0x23ae('0x148')](_0x52c5e3)&&(this[_0x23ae('0x53')][_0x23ae('0x142')](_0x52c5e3,_0x23ae('0x7f')),this[_0x23ae('0x4e')]('suggestionUnloaded',_0x52c5e3,_0x2f92a0,_0x2d3d7c));}[_0x23ae('0xb0')](_0x3be391){const _0x90096a=_0x3be391['id'],_0x13a496=this['addSuggestionData'](_0x3be391);if(this[_0x23ae('0x33')]&&this[_0x23ae('0x33')][_0x23ae('0xf9')]){const _0x24b22e=this[_0x23ae('0x11e')]['plugins']['get'](_0x23ae('0xd4')),_0x3442c1=_0x13a496[_0x23ae('0x0')],_0x24478a=_0x13a496[_0x23ae('0x11c')]?_0x13a496[_0x23ae('0x15c')]+':'+_0x13a496[_0x23ae('0x11c')]:_0x13a496['type'],_0x4ed196=this[_0x23ae('0x11e')][_0x23ae('0x82')],_0x18c721=_0x24b22e[_0x23ae('0x15')](_0x1d5e1f(_0x4ed196,_0x23ae('0x15d'))),_0xa411a7={'id':_0x90096a,'type':_0x24478a,'hasComments':_0x3442c1,'data':_0x3be391['data']||null,'originalSuggestionId':_0x3be391[_0x23ae('0x71')]||null,'attributes':_0x13a496[_0x23ae('0x16a')]};this[_0x23ae('0x33')][_0x23ae('0xf9')](_0xa411a7)[_0x23ae('0x155')](_0x5d0fe9=>{_0x13a496[_0x23ae('0xbe')]=!0x0,_0x24b22e['remove'](_0x18c721),_0x5d0fe9&&_0x5d0fe9['createdAt']&&(this[_0x23ae('0x32')][_0x23ae('0x148')](_0x90096a)[_0x23ae('0x9a')]=_0x5d0fe9['createdAt']);})[_0x23ae('0x157')](_0x58a6aa=>{throw _0x444db6('error-saving-suggestion-data-suggestion-discarded'),this[_0x23ae('0x11e')][_0x23ae('0x10')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x13a496[_0x23ae('0x167')]();}),_0x13a496[_0x23ae('0x92')](),this[_0x23ae('0x32')][_0x23ae('0x76')](_0x13a496['id']),this[_0x23ae('0x53')][_0x23ae('0x76')](_0x13a496),_0x58a6aa;});}return _0x13a496;}['_isBlockAttribute'](_0x2e05e5){return this[_0x23ae('0xe4')][_0x23ae('0x16e')](_0x2e05e5);}[_0x23ae('0x13b')](_0x2f640b,_0x27bcc8){const _0x501a27=this[_0x23ae('0x11e')][_0x23ae('0xae')][_0x23ae('0x148')]('PendingActions'),_0x5add81=this[_0x23ae('0x15f')](_0x2f640b);if(this[_0x23ae('0x33')]&&this[_0x23ae('0x33')][_0x23ae('0x43')]){if(_0x5add81[_0x23ae('0xbe')]){const _0x78a9=_0x501a27['add'](_0x1d5e1f(this[_0x23ae('0x11e')][_0x23ae('0x82')],'PENDING_ACTION_SUGGESTION'));this[_0x23ae('0x33')][_0x23ae('0x43')](_0x2f640b,_0x27bcc8)[_0x23ae('0x155')](()=>{_0x501a27[_0x23ae('0xe2')](_0x78a9);});}else _0x5add81['on'](_0x23ae('0x20'),()=>{this[_0x23ae('0x13b')](_0x2f640b,_0x27bcc8);});}}[_0x23ae('0x175')](_0x7a8ef3){if(!this['_adapter']||!this['_adapter'][_0x23ae('0x15f')])throw new _0x3918ce(_0x23ae('0x4b'),this);return this[_0x23ae('0x33')][_0x23ae('0x15f')](_0x7a8ef3);}['_handleNewSuggestionMarker'](_0x4592fa){const {id:_0x593c0e,type:_0xf269f7,subType:_0x4327b6,authorId:_0x1e8dff}=this[_0x23ae('0x172')](_0x4592fa),_0x76e57b=this[_0x23ae('0x32')][_0x23ae('0x148')](_0x593c0e)||this[_0x23ae('0x79')](_0xf269f7,_0x4327b6,_0x593c0e,_0x1e8dff,{});switch(this[_0x23ae('0xf2')](_0x76e57b,_0xf269f7,_0x4327b6,_0x1e8dff),this[_0x23ae('0x53')][_0x23ae('0x148')](_0x76e57b)){case'notReady':this[_0x23ae('0x175')](_0x593c0e)[_0x23ae('0x155')](_0x4ac2b2=>{let _0x1093cc=Promise['resolve']();_0x4ac2b2[_0x23ae('0x0')]&&(_0x1093cc=this[_0x23ae('0x173')][_0x23ae('0x3e')]({'channelId':this[_0x23ae('0x11e')][_0x23ae('0x12c')]['get'](_0x23ae('0x114')),'threadId':_0x593c0e})),_0x1093cc[_0x23ae('0x155')](()=>{this[_0x23ae('0xec')](_0x4ac2b2)[_0x23ae('0xbe')]=!0x0;});}),this['_suggestionState'][_0x23ae('0x142')](_0x76e57b,_0x23ae('0x103'));break;case _0x23ae('0x7f'):this['_updateSuggestionData'](_0x593c0e,{'state':_0x23ae('0xbf')});case'dataReady':this['_suggestionState']['set'](_0x76e57b,_0x23ae('0xf4')),this[_0x23ae('0x4e')](_0x23ae('0xdf'),_0x76e57b);break;case _0x23ae('0xf4'):this['fire'](_0x23ae('0xb2'),_0x76e57b);}return _0x76e57b['addMarkerName'](_0x4592fa),_0x76e57b;}[_0x23ae('0x16')](_0x338968){const _0x5930b9=Array[_0x23ae('0xb8')](_0x338968),_0x14ab23=_0x5930b9[_0x23ae('0xd6')](_0x3a58e3=>_0x23ae('0xbd')==_0x3a58e3[_0x23ae('0x15c')]);this[_0x23ae('0x124')](_0x14ab23);const _0x279438=_0x5930b9[_0x23ae('0xd6')](_0x3682e5=>!_0x3682e5['isMultiRange']&&'attribute'!=_0x3682e5[_0x23ae('0x15c')]),_0x444357=this['getSuggestions']({'skipNotAttached':!0x0})[_0x23ae('0xd6')](_0x727ca0=>!_0x727ca0[_0x23ae('0x27')]&&_0x23ae('0xbd')!=_0x727ca0[_0x23ae('0x15c')]),_0x3c75f2=_0x444357[_0x23ae('0xd6')](_0xb26cb4=>!_0x338968[_0x23ae('0x16e')](_0xb26cb4)),_0x2b062d=new Map(_0x444357[_0x23ae('0x152')](_0x51f706=>[_0x51f706,this[_0x23ae('0x10e')][_0x23ae('0x34')](_0x51f706['type'],_0x51f706['subType'],_0x23ae('0x86'))])),_0x28f6b9=new Map(_0x444357[_0x23ae('0x152')](_0x1062e6=>[_0x1062e6,_0x1062e6[_0x23ae('0x1')]()])),_0x3dbf8f=new Set(),_0x2585be=new Set();for(let _0x58eaf4=0x0;_0x58eaf4<_0x279438[_0x23ae('0xa1')];_0x58eaf4++)_0x58a21f(_0x279438[_0x58eaf4],_0x279438,_0x58eaf4+0x1);for(let _0x37c150=0x0;_0x37c150<_0x279438[_0x23ae('0xa1')];_0x37c150++)_0x58a21f(_0x279438[_0x37c150],_0x3c75f2,0x0);const _0x524754=new Set();for(let _0x31a836=0x0;_0x31a836<_0x279438[_0x23ae('0xa1')];_0x31a836++){const _0x6e10c8=_0x279438[_0x31a836];!_0x2585be['has'](_0x6e10c8)&&_0x6e10c8[_0x23ae('0x11b')]&&(_0x524754[_0x23ae('0x15')](_0x6e10c8[_0x23ae('0x11b')]),_0x6e10c8['previous'][_0x23ae('0x179')]===_0x6e10c8&&(_0x6e10c8[_0x23ae('0x11b')]['next']=null),_0x6e10c8['previous']=null),!_0x3dbf8f['has'](_0x6e10c8)&&_0x6e10c8[_0x23ae('0x179')]&&(_0x524754[_0x23ae('0x15')](_0x6e10c8[_0x23ae('0x179')]),_0x6e10c8[_0x23ae('0x179')][_0x23ae('0x11b')]===_0x6e10c8&&(_0x6e10c8[_0x23ae('0x179')][_0x23ae('0x11b')]=null),_0x6e10c8[_0x23ae('0x179')]=null);}function _0x58a21f(_0x51e11f,_0x3a8866,_0x3800da){for(let _0x4536e1=_0x3800da;_0x4536e1<_0x3a8866['length'];_0x4536e1++){const _0x567059=_0x22ff86(_0x51e11f,_0x3a8866[_0x4536e1]);_0x567059&&(_0x567059[0x0][_0x23ae('0x179')]=_0x567059[0x1],_0x567059[0x1][_0x23ae('0x11b')]=_0x567059[0x0],_0x3dbf8f[_0x23ae('0x15')](_0x567059[0x0]),_0x2585be[_0x23ae('0x15')](_0x567059[0x1]));}}function _0x22ff86(_0x5e8229,_0x4b8814){if(_0x5e8229[_0x23ae('0x3b')]['id']!==_0x4b8814[_0x23ae('0x3b')]['id'])return null;const _0xe942a0=_0x2b062d[_0x23ae('0x148')](_0x5e8229)(_0x5e8229,_0x4b8814,_0x28f6b9['get'](_0x5e8229),_0x28f6b9[_0x23ae('0x148')](_0x4b8814));if(!_0xe942a0)return null;return _0x2b062d[_0x23ae('0x148')](_0x4b8814)(_0x5e8229,_0x4b8814,_0x28f6b9[_0x23ae('0x148')](_0x5e8229),_0x28f6b9['get'](_0x4b8814))?_0xe942a0[0x1][_0x23ae('0x14c')]&&_0xe942a0[0x1]['commentThread'][_0x23ae('0xa1')]?null:_0xe942a0:null;}_0x524754[_0x23ae('0xe1')]&&this[_0x23ae('0x16')](_0x524754);}[_0x23ae('0x124')](_0x368e0d){if(0x0==_0x368e0d[_0x23ae('0xa1')])return;const _0x5bc703=this['getSuggestions']({'skipNotAttached':!0x0})[_0x23ae('0xd6')](_0x14eb6d=>'attribute'==_0x14eb6d['type']&&_0x14eb6d['_isDataLoaded']),_0x29190b=[],_0x128e9a=new Map();for(const _0x34d851 of _0x5bc703){const _0x119669=_0x39bb41(_0x34d851['attributes']);_0x128e9a[_0x23ae('0x16e')](_0x119669)||(_0x128e9a['set'](_0x119669,_0x29190b[_0x23ae('0xa1')]),_0x29190b[_0x23ae('0xef')]([]));const _0x444f68=_0x128e9a['get'](_0x119669);_0x29190b[_0x444f68][_0x23ae('0xef')](_0x34d851);}!function(){_0x29190b[_0x23ae('0x17')]((_0x21f5da,_0x2e2c46)=>{const _0x39dca1=_0x21f5da[0x0][_0x23ae('0x9a')],_0x300dbe=_0x2e2c46[0x0][_0x23ae('0x9a')];return _0x39dca1==_0x300dbe?_0x21f5da[0x0][_0x23ae('0x16a')]['groupId']<_0x2e2c46[0x0]['attributes'][_0x23ae('0xeb')]?-0x1:0x1:_0x39dca1<_0x300dbe?-0x1:0x1;});for(const _0x541dd6 of _0x29190b)_0x541dd6[_0x23ae('0x17')]((_0x459dfe,_0x2ee8ff)=>_0x459dfe['id']<_0x2ee8ff['id']?-0x1:0x1);}();for(let _0x1631ee=0x0;_0x1631ee<_0x29190b[_0x23ae('0xa1')];_0x1631ee++){if(0x0==_0x29190b[_0x1631ee][_0x23ae('0xa1')])continue;const _0x34b8c9=[];for(let _0x3358b5=_0x1631ee+0x1;_0x3358b5<_0x29190b[_0x23ae('0xa1')];_0x3358b5++)0x0!=_0x29190b[_0x3358b5]['length']&&_0x2bcbba(_0x29190b[_0x1631ee],_0x29190b[_0x3358b5])&&_0x34b8c9[_0x23ae('0xef')](_0x3358b5);for(const _0x5e19cd of _0x34b8c9)_0x29190b[_0x1631ee]=_0x29190b[_0x1631ee]['concat'](_0x29190b[_0x5e19cd]),_0x29190b[_0x5e19cd]=[];}for(const _0x4cd00c of _0x29190b)for(let _0x3018e5=0x0;_0x3018e5<_0x4cd00c[_0x23ae('0xa1')];_0x3018e5++)_0x4cd00c[_0x3018e5][_0x23ae('0x179')]=_0x4cd00c[_0x3018e5+0x1]||null;for(const _0x5f21f8 of _0x29190b)for(let _0x12c9df=0x0;_0x12c9df<_0x5f21f8['length'];_0x12c9df++)_0x5f21f8[_0x12c9df][_0x23ae('0x11b')]=_0x5f21f8[_0x12c9df-0x1]||null;function _0x2bcbba(_0x75191b,_0x7f08af){if(_0x75191b[0x0][_0x23ae('0x3b')]!==_0x7f08af[0x0][_0x23ae('0x3b')])return!0x1;if(!function(_0x56eb1b,_0x4ed153){if(!_0x56eb1b[_0x23ae('0x0')]&&!_0x4ed153['hasComments'])return!0x0;if(_0x56eb1b[_0x23ae('0x0')]&&_0x4ed153[_0x23ae('0x0')])return!0x1;if(_0x56eb1b[_0x23ae('0x0')]&&_0x4ed153[_0x23ae('0x9a')]<_0x56eb1b['commentThread'][_0x23ae('0x147')][_0x23ae('0x148')](0x0)['createdAt'])return!0x0;if(_0x4ed153[_0x23ae('0x0')]&&_0x56eb1b[_0x23ae('0x9a')]<_0x4ed153[_0x23ae('0x14c')][_0x23ae('0x147')][_0x23ae('0x148')](0x0)['createdAt'])return!0x0;return!0x1;}(_0x75191b[0x0],_0x7f08af[0x0]))return!0x1;const _0x383bb6=_0x1b4521(_0x75191b[0x0][_0x23ae('0x16a')],_0x23ae('0xeb')),_0x92fa4a=_0x1b4521(_0x7f08af[0x0][_0x23ae('0x16a')],_0x23ae('0xeb'));if(!_0xaf05e6(_0x383bb6,_0x92fa4a))return!0x1;return!!_0x75191b['every'](_0x38ee25=>_0x7f08af[_0x23ae('0xd2')](_0x3d7913=>_0x38ee25[_0x23ae('0x1')]()[_0x23ae('0xc5')](_0x3d7913[_0x23ae('0x1')]())))&&_0x7f08af['every'](_0x4a8c5e=>_0x75191b['some'](_0x3cf6e1=>_0x4a8c5e[_0x23ae('0x1')]()[_0x23ae('0xc5')](_0x3cf6e1[_0x23ae('0x1')]())));}}['_joinWithAdjacentSuggestions'](_0x2f68ba){const _0x5c5482=Array['from'](_0x2f68ba),_0x2a4bea=this[_0x23ae('0x141')]({'skipNotAttached':!0x0}),_0x2c9206=_0x2a4bea['filter'](_0x146cfd=>!_0x2f68ba[_0x23ae('0x16e')](_0x146cfd)),_0x58b6b0=new Map(_0x5c5482['map'](_0x1608f8=>[_0x1608f8,this[_0x23ae('0x10e')][_0x23ae('0x34')](_0x1608f8[_0x23ae('0x15c')],_0x1608f8[_0x23ae('0x11c')],_0x23ae('0xb9'))])),_0x27463d=new Map(_0x2a4bea['map'](_0xd81b52=>[_0xd81b52,_0xd81b52[_0x23ae('0x30')]()]));for(let _0x68ce53=0x0;_0x68ce53<_0x5c5482[_0x23ae('0xa1')];_0x68ce53++){if(_0x2edff2(this,_0x5c5482[_0x68ce53],_0x5c5482,_0x68ce53+0x1))return!0x0;}for(let _0x407e98=0x0;_0x407e98<_0x5c5482[_0x23ae('0xa1')];_0x407e98++){if(_0x2edff2(this,_0x5c5482[_0x407e98],_0x2c9206,0x0))return!0x0;}return!0x1;function _0x2edff2(_0x3de653,_0x28370c,_0x59345b,_0x1179b1){for(let _0x591778=_0x1179b1;_0x591778<_0x59345b['length'];_0x591778++){const _0x13ab64=_0x59345b[_0x591778];if(_0x13ab64[_0x23ae('0x15c')]!==_0x28370c[_0x23ae('0x15c')]||_0x13ab64[_0x23ae('0x3b')]['id']!==_0x28370c[_0x23ae('0x3b')]['id']||_0x13ab64[_0x23ae('0x11c')]!==_0x28370c[_0x23ae('0x11c')])continue;if(!Vt(_0x28370c,_0x13ab64))continue;if('attribute'==_0x28370c[_0x23ae('0x15c')]&&_0x28370c[_0x23ae('0x52')]['oldValue']!=_0x13ab64[_0x23ae('0x52')]['oldValue'])continue;if('attribute'==_0x28370c[_0x23ae('0x15c')]&&_0x3de653['_isBlockAttribute'](_0x28370c[_0x23ae('0x52')]['key']))continue;if(_0x23ae('0xee')==_0x28370c[_0x23ae('0x15c')]){const _0x309afc=_0x3de653[_0x23ae('0x11e')][_0x23ae('0x10')],_0x35e09f=_0x28370c[_0x23ae('0x146')]();if(_0x35e09f&&(_0x309afc[_0x23ae('0x108')]['isObject'](_0x35e09f)||_0x309afc[_0x23ae('0x108')][_0x23ae('0x135')](_0x35e09f)))continue;}const _0x5b0e1a=_0x58b6b0[_0x23ae('0x148')](_0x28370c),_0x23af90=_0x27463d[_0x23ae('0x148')](_0x28370c),_0x527eb1=_0x27463d['get'](_0x13ab64),_0x586878=_0x28370c['commentThread']&&_0x28370c['commentThread']['length'],_0x235a4c=_0x13ab64['commentThread']&&_0x13ab64[_0x23ae('0x14c')][_0x23ae('0xa1')];if(!_0x586878&&_0x5b0e1a(_0x527eb1,_0x23af90))return _0x3de653[_0x23ae('0x14e')](_0x13ab64,_0x28370c),_0x27463d[_0x23ae('0x76')](_0x28370c),!0x0;if(!_0x235a4c&&_0x5b0e1a(_0x23af90,_0x527eb1))return _0x3de653[_0x23ae('0x14e')](_0x28370c,_0x13ab64),_0x27463d[_0x23ae('0x76')](_0x13ab64),!0x0;}return!0x1;}}[_0x23ae('0x14e')](_0xda2aeb,_0x12e50b){if(_0xda2aeb[_0x23ae('0x27')])for(const _0x517889 of _0x12e50b[_0x23ae('0x30')]())_0xda2aeb[_0x23ae('0x154')](_0x517889);else{const _0x509a45=_0x12e50b[_0x23ae('0x1')]()['end'];this[_0x23ae('0xc0')](_0xda2aeb,this[_0x23ae('0x37')][_0x23ae('0x131')](_0xda2aeb[_0x23ae('0x1')]()[_0x23ae('0xd7')],_0x509a45));}_0x12e50b['removeMarkers']();}[_0x23ae('0xad')](_0xf5c8c6,_0x4604a9){const _0x498982=_0xf5c8c6['startsWith'](_0x23ae('0x8f'))||_0xf5c8c6[_0x23ae('0xf1')]('attribute')?'FORMATTING':_0xf5c8c6['toUpperCase']();return _0x1d5e1f(this[_0x23ae('0x11e')]['locale'],_0x4604a9+'_'+_0x498982+_0x23ae('0xce'));}[_0x23ae('0x2a')](){const _0x36a88c=this[_0x23ae('0x11e')];_0x1dcf72(this[_0x23ae('0x37')],({left:_0x3bf7b7,entered:_0x387b3a})=>{const _0x5937f4=[];for(const _0x1332a4 of _0x3bf7b7){const {group:_0x349068,type:_0x54be96}=this[_0x23ae('0x172')](_0x1332a4[_0x23ae('0xc3')]);if(_0x23ae('0x126')===_0x349068){_0x5937f4[_0x23ae('0xef')](this[_0x23ae('0xad')](_0x54be96,'LEAVE'));break;}}for(const _0x44cc2a of _0x387b3a){const {group:_0x12adc1,type:_0x322107}=this[_0x23ae('0x172')](_0x44cc2a[_0x23ae('0xc3')]);if(_0x23ae('0x126')===_0x12adc1){_0x5937f4[_0x23ae('0xef')](this['_getMarkerAnnouncementText'](_0x322107,'ENTER'));break;}}_0x5937f4[_0x23ae('0xa1')]&&_0x36a88c['ui'][_0x23ae('0x54')][_0x23ae('0xa2')]('trackChanges',_0x5937f4[_0x23ae('0xb9')]('\x20'));});}[_0x23ae('0x156')](_0x2756da){if(null!==this[_0x23ae('0xe7')])return!0x1;const _0x412e97=this[_0x23ae('0x11e')],_0x5eb696=_0x412e97[_0x23ae('0x10')][_0x23ae('0x138')]['differ'][_0x23ae('0xd3')]();if(0x0==_0x5eb696[_0x23ae('0xa1')])return!0x1;const _0x51fd7c=[],_0x43693a=_0x5eb696[_0x23ae('0xd6')](_0x2cb1c7=>'attribute'==_0x2cb1c7[_0x23ae('0x15c')]),_0x48d223=_0x5eb696[_0x23ae('0xd6')](_0x16447e=>_0x23ae('0x6a')==_0x16447e['type']&&_0x23ae('0xea')!=_0x16447e[_0x23ae('0xc3')]),_0x471006=_0x5eb696[_0x23ae('0xd6')](_0x377b4a=>_0x23ae('0xe2')==_0x377b4a[_0x23ae('0x15c')]&&_0x23ae('0xea')!=_0x377b4a[_0x23ae('0xc3')]);for(const _0x406f42 of _0x43693a)_0x51fd7c[_0x23ae('0xef')]({'key':_0x406f42[_0x23ae('0x174')],'newValue':_0x406f42[_0x23ae('0x14b')],'oldValue':_0x406f42[_0x23ae('0xd8')],'range':_0x4e0ce6(_0x406f42[_0x23ae('0x2')])});for(const _0x656f41 of _0x48d223){const _0x3654df=_0x471006[_0x23ae('0xd1')](_0xf1b033=>_0xf1b033[_0x23ae('0x168')][_0x23ae('0xc5')](_0x656f41[_0x23ae('0x168')]));_0x3654df&&_0x51fd7c['push']({'key':_0x23ae('0x25'),'newValue':_0x656f41[_0x23ae('0xc3')],'oldValue':_0x3654df[_0x23ae('0xc3')],'range':_0x412e97['model'][_0x23ae('0x9')](_0x656f41[_0x23ae('0x168')][_0x23ae('0xa3')])});}return 0x0!=_0x51fd7c[_0x23ae('0xa1')]&&this['_reduceExistingSuggestions'](_0x2756da,_0x51fd7c);function _0x4e0ce6(_0x20fbc6){return null==_0x20fbc6[_0x23ae('0x7c')][_0x23ae('0x14f')]&&_0x20fbc6[_0x23ae('0x7c')]['parent']==_0x20fbc6[_0x23ae('0xd7')][_0x23ae('0xa3')]?Ut(_0x20fbc6['start'][_0x23ae('0xa3')],_0x412e97[_0x23ae('0x10')]):_0x20fbc6;}}[_0x23ae('0x4a')](_0x142e30){let _0x293401=!0x1;const _0x27f74b=this[_0x23ae('0x11e')][_0x23ae('0x10')][_0x23ae('0x138')][_0x23ae('0x4')][_0x23ae('0x99')]()['filter'](_0x3dbd33=>_0x3dbd33[_0x23ae('0x52')][_0x23ae('0xc9')]&&_0x3dbd33['name'][_0x23ae('0xf1')](_0x23ae('0xa8')));for(const _0x4b835f of _0x27f74b){const {subType:_0x20e835,id:_0x4bad5c}=this[_0x23ae('0x172')](_0x4b835f[_0x23ae('0xc3')]),_0x54a11a=_0x20e835['split']('|')[0x0];for(const _0x1dd7bf of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1dd7bf['id']!=_0x4bad5c&&_0x23ae('0xbd')==_0x1dd7bf['type']&&_0x1dd7bf[_0x23ae('0x52')]&&_0x1dd7bf['data']['key']==_0x54a11a&&_0x1dd7bf[_0x23ae('0x1')]()[_0x23ae('0xf0')](_0x4b835f[_0x23ae('0x52')][_0x23ae('0xc9')])&&(this[_0x23ae('0x81')](_0x1dd7bf,_0x4b835f[_0x23ae('0x52')][_0x23ae('0xc9')],_0x142e30),_0x293401=!0x0);}return _0x293401;}[_0x23ae('0xfa')](_0x33d5aa){if(null!==this[_0x23ae('0xe7')])return void _0x33d5aa();const _0x1ab13c=this[_0x23ae('0x11e')];this[_0x23ae('0xe7')]=_0x1ab13c[_0x23ae('0x10')]['document'][_0x23ae('0x133')],_0x33d5aa();const _0x4f0bcf=new Map();for(const _0x4aa3fe of _0x1ab13c[_0x23ae('0x10')][_0x23ae('0x138')]['history'][_0x23ae('0x67')](this[_0x23ae('0xe7')]))if([_0x23ae('0x1f'),_0x23ae('0x137'),_0x23ae('0x13a'),_0x23ae('0x120')][_0x23ae('0x10d')](_0x4aa3fe[_0x23ae('0x15c')])){const _0x259db6=_0x4aa3fe[_0x23ae('0x119')],_0x110944=_0x4f0bcf[_0x23ae('0x148')](_0x259db6)||[];_0x110944[_0x23ae('0xef')](_0x4aa3fe),_0x4f0bcf[_0x23ae('0x142')](_0x259db6,_0x110944);}this[_0x23ae('0xe7')]=null;for(const [_0x42ed21,_0x257ccb]of _0x4f0bcf){const _0x285928=_0x4e6c1e();_0x1ab13c[_0x23ae('0x10')][_0x23ae('0x118')](_0x42ed21,_0x2eab66=>{const _0x1cf52f=[];for(const _0x22ca4e of _0x257ccb){let _0x2a09f3,_0x16c94e,_0x420d5b,_0x54f352;if(_0x23ae('0x1f')==_0x22ca4e['type']){const _0x5ce6cc=_0x22ca4e;_0x2a09f3=Ut(_0x5ce6cc[_0x23ae('0x168')][_0x23ae('0xa3')],_0x1ab13c[_0x23ae('0x10')]),_0x16c94e=_0x23ae('0x25'),_0x420d5b=_0x5ce6cc['newName'],_0x54f352=_0x5ce6cc['oldName'];}else{const _0xce2f42=_0x22ca4e,_0x586956=this[_0x23ae('0x123')](_0xce2f42[_0x23ae('0x80')]),_0x2b4cd2=this[_0x23ae('0xac')][_0x23ae('0x16e')](_0xce2f42['key']);if(!_0x586956&&!_0x2b4cd2)continue;_0x2a09f3=_0x586956?Ut(_0xce2f42[_0x23ae('0x2')][_0x23ae('0xd7')][_0x23ae('0xa3')],_0x1ab13c[_0x23ae('0x10')]):_0xce2f42[_0x23ae('0x2')],_0x16c94e=_0xce2f42[_0x23ae('0x80')],_0x420d5b=_0x23ae('0x13a')==_0x22ca4e[_0x23ae('0x15c')]?void 0x0:_0xce2f42[_0x23ae('0xc')],_0x54f352=_0xce2f42[_0x23ae('0xe9')];}this[_0x23ae('0x162')](_0x2a09f3,_0x16c94e,_0x54f352,_0x420d5b,{'groupId':_0x285928}),_0x1cf52f[_0x23ae('0xef')]({'range':_0x2a09f3,'key':_0x16c94e,'newValue':_0x420d5b,'oldValue':_0x54f352});}this[_0x23ae('0xb6')](_0x2eab66,_0x1cf52f);});}}['_reduceExistingSuggestions'](_0x1c27b8,_0x5a3bb5){if(0x0==_0x5a3bb5[_0x23ae('0xa1')])return!0x1;let _0x3f4787=!0x1;for(const _0x5da1e9 of _0x5a3bb5){const _0x2c9b00=this[_0x23ae('0x8a')](_0x5da1e9[_0x23ae('0x2')],_0x23ae('0xbd'))['filter'](_0x21b184=>!_0x21b184[_0x23ae('0x60')][_0x23ae('0x7a')])[_0x23ae('0x152')](_0x37b4e1=>_0x37b4e1['suggestion']),_0xaf50d9=_0x39bb41({'newValue':_0x5da1e9[_0x23ae('0xc')]});_0x2c9b00['filter'](_0x573581=>{const [_0x4de316,_0x22d43c]=_0x573581[_0x23ae('0x11c')][_0x23ae('0x2f')]('|');return _0x4de316==_0x5da1e9[_0x23ae('0x80')]&&_0x22d43c!=_0xaf50d9;})[_0x23ae('0x9f')](_0x49a4ca=>{this['_reduceSuggestionAttributeRange'](_0x49a4ca,_0x5da1e9[_0x23ae('0x2')],_0x1c27b8),_0x3f4787=!0x0;});}return _0x3f4787;}['_reduceSuggestionAttributeRange'](_0x2c6b4c,_0x1acb0c,_0x490bac){const _0x1666e3=_0x2c6b4c[_0x23ae('0x1')]()[_0x23ae('0xb3')](_0x1acb0c);0x0!==_0x1666e3[_0x23ae('0xa1')]?0x1!==_0x1666e3[_0x23ae('0xa1')]?this['_breakSuggestionMarker'](_0x2c6b4c,_0x1acb0c[_0x23ae('0xd7')],_0x1acb0c[_0x23ae('0x7c')]):this[_0x23ae('0xc0')](_0x2c6b4c,_0x1666e3[0x0]):_0x490bac[_0x23ae('0x8b')](_0x2c6b4c['getFirstMarker']());}}class Bt{constructor(_0x4613ac){this['_editor']=_0x4613ac,this[_0x23ae('0x37')]=_0x4613ac['model'],this[_0x23ae('0x17b')]=new Map(),this[_0x23ae('0x17c')]=new Map(),this[_0x23ae('0xf')]();}[_0x23ae('0x134')](_0x1a55fa,_0x56f54b,_0x43062f,_0x38512e,_0x1919ec,_0x42dd0a){return new _0x3d27b9(this[_0x23ae('0x37')],{'type':_0x1a55fa,'subType':_0x56f54b,'id':_0x43062f,'author':_0x38512e,'creator':_0x38512e,'attributes':_0x1919ec,'onAttributesChange':_0x42dd0a,'onAccept':(..._0x3fa7de)=>this['getSuggestionCallback'](_0x1a55fa,_0x56f54b,_0x23ae('0xfb'))(..._0x3fa7de),'onDiscard':(..._0x9e0e62)=>this[_0x23ae('0x34')](_0x1a55fa,_0x56f54b,_0x23ae('0x167'))(..._0x9e0e62)});}['registerCustomCallback'](_0x285262,_0x4abd11,_0x18c957,_0x39cc22){const _0x5a18d4=_0x285262+':'+_0x4abd11+':'+_0x18c957;this[_0x23ae('0x17b')][_0x23ae('0x142')](_0x5a18d4,_0x39cc22);}[_0x23ae('0x34')](_0x199fa9,_0x27f0e1,_0x28c0f6){const _0x53fb1c=_0x199fa9+':'+_0x27f0e1+':'+_0x28c0f6;return this[_0x23ae('0x17b')]['get'](_0x53fb1c)||this[_0x23ae('0x17c')]['get'](_0x199fa9+':'+_0x28c0f6);}[_0x23ae('0xf')](){const _0x44244a=()=>!0x1,_0x46c350=_0x4e3cad=>{_0x4e3cad[_0x23ae('0x17')]((_0x26464c,_0xbfa81)=>_0x26464c[_0x23ae('0xd7')][_0x23ae('0x3')](_0xbfa81['start'])?0x1:-0x1),this[_0x23ae('0x37')][_0x23ae('0x6e')](_0x519d38=>{for(const _0x2c834c of _0x4e3cad){let _0x5090c5;_0x5090c5=_0x2c834c[_0x23ae('0x7c')]['isAtEnd']&&_0x2c834c['end'][_0x23ae('0xa5')]==_0x2c834c[_0x23ae('0xd7')]['nodeAfter']?_0x519d38[_0x23ae('0x66')](_0x2c834c[_0x23ae('0xd7')][_0x23ae('0xa3')],'on'):_0x519d38[_0x23ae('0x66')](_0x2c834c),this['_model']['deleteContent'](_0x5090c5,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x13aea4=(_0x3f9bde,_0x262cd2)=>{_0x262cd2&&this[_0x23ae('0x37')][_0x23ae('0x6e')](_0x55e135=>{const {commandName:_0x3af67d,commandParams:_0x2119ce=[]}=_0x262cd2,_0x475b06=_0x3f9bde[_0x23ae('0x152')](_0x8b0c2=>(xt(_0x8b0c2)&&(_0x8b0c2=this['_model'][_0x23ae('0x131')](_0x8b0c2[_0x23ae('0x7c')])),_0x8b0c2))['filter'](_0x321c6b=>_0x23ae('0xc7')!==_0x321c6b[_0x23ae('0x62')][_0x23ae('0x94')]);if(_0x475b06['length']<0x1)return;const _0x4ee9b5=Array[_0x23ae('0xb8')](this[_0x23ae('0x37')][_0x23ae('0x138')][_0x23ae('0x14a')][_0x23ae('0x30')]())[_0x23ae('0x152')](_0x3e0f9b=>_0x384459[_0x23ae('0x5a')](_0x3e0f9b));_0x55e135['setSelection'](_0x475b06);for(const _0x573d1b of this[_0x23ae('0x98')][_0x23ae('0x31')][_0x23ae('0x31')]())_0x573d1b[_0x23ae('0x23')]();_0x2119ce['push']({'forceDefaultExecution':!0x0}),this[_0x23ae('0x98')][_0x23ae('0x111')](_0x3af67d,..._0x2119ce);const _0x536641=_0x4ee9b5[_0x23ae('0xd6')](_0x406ec5=>'$graveyard'!=_0x406ec5[_0x23ae('0x62')][_0x23ae('0x94')]);_0x536641['length']>0x0&&_0x55e135[_0x23ae('0x69')](_0x536641);for(const _0x4c9d56 of _0x4ee9b5)_0x4c9d56[_0x23ae('0x5')]();});},_0x584109=(_0x1bbfca,_0x29dddd)=>0x1==_0x1bbfca['length']&&0x1==_0x29dddd[_0x23ae('0xa1')]&&_0x1bbfca[0x0]['end']['isEqual'](_0x29dddd[0x0][_0x23ae('0xd7')]),_0x29c5a6=(_0x59b3ef,_0x611c2b,_0x2bc752,_0x38fed1)=>Ot(_0x59b3ef,_0x611c2b,_0x2bc752,_0x38fed1,this[_0x23ae('0x37')])?[_0x59b3ef,_0x611c2b]:Ot(_0x611c2b,_0x59b3ef,_0x38fed1,_0x2bc752,this[_0x23ae('0x37')])?[_0x611c2b,_0x59b3ef]:null;this['_defaultCallbacks']['set'](_0x23ae('0x150'),_0x44244a),this[_0x23ae('0x17c')][_0x23ae('0x142')](_0x23ae('0x70'),_0x46c350),this[_0x23ae('0x17c')][_0x23ae('0x142')]('insertion:join',_0x584109),this[_0x23ae('0x17c')][_0x23ae('0x142')](_0x23ae('0x9e'),_0x29c5a6),this[_0x23ae('0x17c')][_0x23ae('0x142')](_0x23ae('0xa6'),_0x46c350),this[_0x23ae('0x17c')][_0x23ae('0x142')](_0x23ae('0x64'),_0x44244a),this[_0x23ae('0x17c')][_0x23ae('0x142')](_0x23ae('0xff'),_0x584109),this['_defaultCallbacks'][_0x23ae('0x142')](_0x23ae('0x3f'),_0x29c5a6),this[_0x23ae('0x17c')][_0x23ae('0x142')]('formatInline:accept',_0x13aea4),this[_0x23ae('0x17c')][_0x23ae('0x142')](_0x23ae('0xe8'),_0x44244a),this[_0x23ae('0x17c')][_0x23ae('0x142')](_0x23ae('0x149'),_0x584109),this[_0x23ae('0x17c')]['set']('formatInline:chain',_0x44244a),this[_0x23ae('0x17c')][_0x23ae('0x142')]('formatBlock:accept',_0x13aea4),this['_defaultCallbacks'][_0x23ae('0x142')](_0x23ae('0x1b'),_0x44244a),this[_0x23ae('0x17c')][_0x23ae('0x142')](_0x23ae('0xde'),_0x584109),this[_0x23ae('0x17c')][_0x23ae('0x142')]('formatBlock:chain',_0x44244a),this[_0x23ae('0x17c')][_0x23ae('0x142')](_0x23ae('0x17a'),_0x44244a),this[_0x23ae('0x17c')][_0x23ae('0x142')](_0x23ae('0x113'),(_0x5eb9fb,_0x2329f6)=>{if(!_0x2329f6)return;const _0x165524=this['_editor']['plugins'][_0x23ae('0x148')](p);this[_0x23ae('0x37')]['change'](_0x1e1092=>{if('$elementName'==_0x2329f6[_0x23ae('0x80')])for(const _0xfe668a of _0x5eb9fb){const _0x14da27=_0xfe668a[_0x23ae('0xd7')][_0x23ae('0xa3')],_0x2f32f6=_0x2329f6[_0x23ae('0xe9')];_0x1e1092[_0x23ae('0x1f')](_0x14da27,_0x2f32f6);}else{if(_0x165524[_0x23ae('0x123')](_0x2329f6[_0x23ae('0x80')]))for(const _0x1c904e of _0x5eb9fb)void 0x0!==_0x2329f6[_0x23ae('0xe9')]?_0x1e1092[_0x23ae('0x158')](_0x2329f6['key'],_0x2329f6['oldValue'],_0x1c904e[_0x23ae('0xd7')]['nodeAfter']):_0x1e1092[_0x23ae('0x13a')](_0x2329f6[_0x23ae('0x80')],_0x1c904e[_0x23ae('0xd7')]['nodeAfter']);else for(const _0x51637b of _0x5eb9fb)_0x2329f6[_0x23ae('0xe9')]?_0x1e1092[_0x23ae('0x158')](_0x2329f6[_0x23ae('0x80')],_0x2329f6['oldValue'],_0x51637b):_0x1e1092[_0x23ae('0x13a')](_0x2329f6[_0x23ae('0x80')],_0x51637b);}});}),this[_0x23ae('0x17c')]['set']('attribute:join',_0x584109);}}function Tt(_0x597d0f,_0x55b7d3,_0x461ee7){for(const _0x2a53ae of _0x55b7d3[_0x23ae('0xa5')][_0x23ae('0x1d')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2a53ae[_0x23ae('0x62')]==_0x2a53ae)return!0x1;if(!_0x461ee7[_0x23ae('0x21')](_0x2a53ae))return!0x1;if(_0x597d0f[_0x23ae('0x160')](_0x2a53ae)||_0x597d0f[_0x23ae('0x135')](_0x2a53ae))return!0x0;}return!0x1;}function xt(_0x3e3791){return _0x3e3791['end'][_0x23ae('0xa5')]==_0x3e3791[_0x23ae('0xd7')][_0x23ae('0xa3')]&&_0x3e3791[_0x23ae('0x7c')]['isAtStart'];}function Et(_0x5e1fba,_0x257f3b,_0x31a9c9,_0x5ef8f8){const _0x35e031=_0x339015=>!_0x339015[_0x23ae('0x15e')]['is'](_0x23ae('0x11f'))&&!_0x5ef8f8['isObject'](_0x339015['item']),_0x594400=_0x5e1fba[_0x23ae('0xd7')][_0x23ae('0x40')](_0x35e031),_0x27b356=_0x5e1fba['end']['getLastMatchingPosition'](_0x35e031,{'direction':_0x23ae('0x65')});return(!_0x5e1fba['start'][_0x23ae('0xc5')](_0x594400)||!_0x5e1fba[_0x23ae('0x7c')]['isEqual'](_0x27b356))&&(_0x594400[_0x23ae('0x3')](_0x27b356)?_0x31a9c9[_0x23ae('0x45')](_0x257f3b,{'range':_0x31a9c9['createRange'](_0x594400,_0x27b356)}):_0x31a9c9[_0x23ae('0x8b')](_0x257f3b),!0x0);}function Rt(_0x3efd13){return _0x39bb41(_0x3efd13);}function jt(_0x584c5c){const _0x5c6ebb=_0x584c5c[_0x23ae('0xd7')][_0x23ae('0xa3')];return _0x5c6ebb&&_0x5c6ebb['is']('element');}function Ut(_0x6c7d88,_0x2d80fe){const _0x377f91=_0x2d80fe[_0x23ae('0x108')]['isObject'](_0x6c7d88)||_0x2d80fe[_0x23ae('0x108')]['isSelectable'](_0x6c7d88);return _0x2d80fe[_0x23ae('0x131')](_0x2d80fe[_0x23ae('0x130')](_0x6c7d88,'before'),_0x377f91?_0x2d80fe[_0x23ae('0x78')](_0x6c7d88):_0x2d80fe[_0x23ae('0x130')](_0x6c7d88,_0x23ae('0x7c')));}function Ot(_0x168108,_0x1690bc,_0x19a128,_0x48b557,_0x3bb97b){if(!Vt(_0x168108,_0x1690bc))return!0x1;if(_0x19a128[_0x23ae('0x7c')][_0x23ae('0xc5')](_0x48b557[_0x23ae('0xd7')]))return!0x0;if(_0x168108[_0x23ae('0x15c')]!=_0x1690bc['type'])return!0x1;if(!_0x19a128[_0x23ae('0x7c')]['isTouching'](_0x48b557[_0x23ae('0xd7')]))return!0x1;const _0x467585=_0x3bb97b['createRange'](_0x19a128[_0x23ae('0x7c')],_0x48b557[_0x23ae('0xd7')])[_0x23ae('0x58')]();for(const _0x115694 of _0x467585)if([_0x23ae('0x13c'),_0x23ae('0x151')]['includes'](_0x115694[_0x23ae('0x15c')])&&_0x3bb97b[_0x23ae('0x108')][_0x23ae('0x135')](_0x115694[_0x23ae('0x15e')]))return!0x1;return!0x0;}function Vt(_0x39278e,_0x1c2c0a){return!(!_0x39278e[_0x23ae('0x16d')]||!_0x1c2c0a[_0x23ae('0x16d')])&&_0xaf05e6(_0x39278e[_0x23ae('0x16a')],_0x1c2c0a[_0x23ae('0x16a')]);}function Gt(_0x52ed10,_0x2b3859){const _0x5a11e0=Ft(_0x52ed10[_0x23ae('0x16a')]),_0x503cb0=Ft(_0x2b3859);if(!_0x52ed10[_0x23ae('0x16d')])return!0x1;for(const _0x1a6d50 of Object[_0x23ae('0xc2')](_0x503cb0))if(!_0xaf05e6(_0x5a11e0[_0x1a6d50],_0x503cb0[_0x1a6d50]))return!0x1;return!0x0;}function Ft(_0x1fc619){const _0x279416=Object['assign']({},_0x1fc619);return delete _0x279416['skipNestingCheck'],delete _0x279416[_0x23ae('0x161')],_0x279416;}function Pt(_0x47131d){return'attribute'==_0x47131d['type']?_0x47131d[_0x23ae('0x11c')][_0x23ae('0x2f')]('|')[0x0]:null;}
|
|
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;}
|