@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231213.0 → 0.0.0-nightly-20231214.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-track-changes",
3
- "version": "0.0.0-nightly-20231213.0",
3
+ "version": "0.0.0-nightly-20231214.0",
4
4
  "description": "CKEditor 5 track changes plugin.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -39,8 +39,8 @@
39
39
  "CHANGELOG.md"
40
40
  ],
41
41
  "dependencies": {
42
- "ckeditor5": "0.0.0-nightly-20231213.0",
43
- "ckeditor5-collaboration": "0.0.0-nightly-20231213.0",
42
+ "ckeditor5": "0.0.0-nightly-20231214.0",
43
+ "ckeditor5-collaboration": "0.0.0-nightly-20231214.0",
44
44
  "lodash-es": "4.17.21"
45
45
  },
46
46
  "types": "src/index.d.ts",
@@ -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 _0x2c5b=['markAttributeChange','dataDowncast','_cutOutSuggestionMarker','model','every','forceDefaultExecution','addMarker:suggestion:attribute','size','addAttribute','isAfter','acceptSuggestion','has','_registerInlineAttribute','_defaultCallbacks','LEAVE','getWalker','getShiftedBy','accept','includes','_isDataLoaded','toJSON','error-saving-suggestion-data-suggestion-discarded','addSuggestion','_suggestionFactory','isRemovable','get','elementEnd','createRangeIn','changeAttribute','toUpperCase','markDeletion','addHighlight','_setSuggestionRange','change:_saved','_handleNewSuggestionMarker','nodeAfter','containsRangeInObject','activeMarkers','_getAuthorFromId','plugins','version','_registerDefaultCallbacks','_initAriaMarkerChangeAnnouncements','ck-suggestion-marker--active','elementStart','getFirstRange','addMarker:suggestion','commentThread','trackChanges.mergeNestedSuggestions','getMultiRangeId','fire','isLimit','isBlock','deletion:accept','attribute','formatInline:discard','substr','author','acceptSelectedSuggestions','formatBlock:join','selection','getOperations','setAttribute','newValue','isSelectable','bindElementToMarker','oldName','ck-suggestion-marker-formatInline','formatInline','markerNameToElements','updateMarker','originalSuggestionId','insert','document','default','from','mapper','addClass','markInlineFormat','removeMarker:suggestion:attribute','push','trackChangesCommand','_createSuggestion','Users','updateSuggestion','skipNestingCheck','locale','name','getAttribute','targetPosition','_getExternalAuthor','markMultiRangeDeletion','external:','FORMATTING','isOwn','_joinSuggestions','stop','_checkSuggestionCorrectness','remove','getContainedElement','createdAt','track-changes-suggestion-not-found','attribute:','range','_model','addCommentThread','map','move','listenTo','createRange','_addSuggestionMarker','discardSuggestion','conversion','_setSuggestionData','containsRange','previous','getChangedMarkers','markInsertion','keys','requires','getSuggestion','isNextTo','enqueueChange','_joinWithAdjacentSuggestions','howMany','_enabledCommands','insertion:','update:suggestion','hasCommentThread','notReady','some','find','CommentsRepository','acceptAllSuggestions','rootName','deletion:chain','getItems','upcast','_getSuggestionData','markerToHighlight','isMultiRange','data','_suggestions','formatBlock:discard','markerName','formatBlock:','formatBlock:accept','unshift','deleteContent','_trackFormatChanges','_enableDefaultAttributesIntegration','formatBlock','add','trackChanges','formatInline:chain','creator','unbind','_processAttributeChanges','attribute:join','_rangeIsInLocalUserInsertion','@external','isObject','isUndo','fromRange','reconvertMarker','formatInline:join','filter','isInContent','detach','setSelection','track-changes-adapter-already-set','dataReady','values','buildSuggestion','track-changes-command-not-found','_adapter','insertion:chain','discardSelectedSuggestions','batch','_breakSuggestionMarker','$marker','substring','isAtEnd','position','attributeKey','containerElement','newRange','join','addMarker','clone','_saved','isBefore','getDifference','track-changes-suggestion-data-mismatch','trackChanges.trackFormatChanges','suggestionChanged','change','registerPostFixer','isCollapsed','$graveyard','rejected','_isBlockAttribute','markBlockFormat','head','getMarkers','suggestion:attribute:','_updateSuggestionData','deletion','toViewElement','insertContent','assign','commands','formatGroupId','high','addRange','removeMarker','_refreshSuggestionsChain','deletion:','isLocal','$elementName','startsWith','editor','getSuggestionCallback','_recordAttributeChanges','length','subType','insertion','item','isInsideObject','parent','ck-suggestion-marker','_inlineAttributeKeys','_isForcedDefaultExecutionBlock','containsPosition','always','differ','comments','suggestion','_reduceSuggestionAttributeRange','formatBlock:chain','oldRange','PENDING_ACTION_SUGGESTION','removeComment','ENTER','removeClass','isExternal','for','normal','change:data','split','root','enableReadOnlyMode','$textProxy','attribute:discard','sort','createPositionAt','ready','isArray','pop','key','set','createElement','delete','_getMarkerAnnouncementText','hasSuggestion','discard','marker-count','type','execute','end','discardAllSuggestions','oldValue','showSuggestionHighlights','history','_mergeNestedSuggestions','suggestionLoaded','_commentsRepository','then','markMultiRangeBlockFormat','markerReady','unbindElementFromMarkerName','_findSuggestions','dataToMarker','consumable','applyOperation','value','removeAttribute','chain','removeMarkers','getRanges','attributes','addSuggestionData','element','_blockAttributeKeys','config','highest','_recordAttributeSuggestionsFromVersion','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.','addMarkerName','start','_splitMarkerName','adapter','formatInline:','_registerBlockAttribute','getFirstMarker','newName','options','createPositionAfter','forEach','widget','suggestion:','getLastMatchingPosition','writer','getSuggestions','attributeOldValue','addMarker:suggestion:formatBlock','isTouching','_suggestionState','resolve','containsItem','open','nodeBefore','return','hasComments','removeMarker:suggestion:formatBlock','createSelection','data-suggestion','getRange','never','_editor','removed','rethrowUnexpectedError','backward','refresh','isIntersecting','getUser','ck-suggestion-marker-formatBlock','define','splice','markMultiRangeInsertion','TrackChangesEditing','multipleBlocks','_removeSuggestion','authoredAt','commandName','track-changes-adapter-missing-getsuggestion','_onDiscard','createPositionBefore','getAllAdjacentSuggestions','_reduceExistingSuggestions','editingDowncast','isEqual','init','getCommentThread','schema','setTo','rename','markers','addComment','groupId','getCustomProperty','tablePasteChainId','next','enableCommand','after','multi','_processAttributeSuggestions','getIntersection','_SUGGESTION_ANNOUNCEMENT','_customCallbacks','consume','isIntersectingWithRange'];(function(_0x5254a4,_0x2c5b75){const _0x5bb46a=function(_0x304f7a){while(--_0x304f7a){_0x5254a4['push'](_0x5254a4['shift']());}};_0x5bb46a(++_0x2c5b75);}(_0x2c5b,0x1be));const _0x5bb4=function(_0x5254a4,_0x2c5b75){_0x5254a4=_0x5254a4-0x0;let _0x5bb46a=_0x2c5b[_0x5254a4];return _0x5bb46a;};import{Plugin as _0x11b42f,PendingActions as _0x6e80da}from'ckeditor5/src/core';import{LiveRange as _0x87e607}from'ckeditor5/src/engine';import{CKEditorError as _0x426846,uid as _0x4f0212,priorities as _0x347639,logWarning as _0x841a3}from'ckeditor5/src/utils';import{toWidget as _0x1c2951}from'ckeditor5/src/widget';import{Users as _0x2197d7,hashObject as _0x457066,surroundingMarkersDetector as _0x2f2298}from'ckeditor5-collaboration/src/collaboration-core';import _0x4e1f9b from'./commands/trackchangescommand';import _0x378fec from'./commands/acceptsuggestioncommand';import _0x180cf0 from'./commands/discardsuggestioncommand';import _0x87823c from'./commands/executeonallsuggestionscommand';import _0x2b3bd6 from'./commands/executeonselectedsuggestionscommand';import _0x1343f2 from'./suggestion';import _0x4e352a from'./suggestiondescriptionfactory';import _0x264121 from'./integrations/aiassistant';import _0x5e86c1 from'./integrations/alignment';import _0x2a7c39 from'./integrations/basicstyles';import _0x5326aa from'./integrations/blockquote';import _0x1e101a from'./integrations/ckbox';import _0x59d1a0 from'./integrations/codeblock';import _0x42cb88 from'./integrations/comments';import _0x1082a7 from'./integrations/deletecommand';import _0x56eaab from'./integrations/documentlist';import _0x12676c from'./integrations/documentlistproperties';import _0x45ee9d from'./integrations/entercommand';import _0x5c242f from'./integrations/findandreplace';import _0x48aef5 from'./integrations/font';import _0x268aab from'./integrations/formatpainter';import _0x17c367 from'./integrations/heading';import _0x20f879 from'./integrations/highlight';import _0x410379 from'./integrations/horizontalline';import _0x2efda7 from'./integrations/htmlembed';import _0x4c8b4c from'./integrations/image';import _0x52a301 from'./integrations/imagereplace';import _0x18deaf from'./integrations/imagestyle';import _0x270d07 from'./integrations/importword';import _0x5d94ac from'./integrations/indent';import _0x120520 from'./integrations/inputcommand';import _0x49ef97 from'./integrations/link';import _0x292cf0 from'./integrations/list';import _0x3db439 from'./integrations/listproperties';import _0x324a63 from'./integrations/mediaembed';import _0x496038 from'./integrations/mention';import _0x4fab4e from'./integrations/pagebreak';import _0x5c9942 from'./integrations/paragraph';import _0x4e3f05 from'./integrations/removeformat';import _0x39c8a3 from'./integrations/restrictededitingmode';import _0x158ae0 from'./integrations/shiftentercommand';import _0x5505d6 from'./integrations/standardeditingmode';import _0x26a06e from'./integrations/style';import _0x5759dd from'./integrations/table';import _0x144338 from'./integrations/tablemergesplit';import _0x41c673 from'./integrations/tableheadings';import _0x47a501 from'./integrations/tableclipboard';import _0xc30a89 from'./integrations/tablecolumnresize';import _0x3886fc from'./integrations/template';import _0x4e2e0c from'./integrations/tableofcontents';import _0x141646 from'./integrations/title';import _0x5969be from'./integrations/undo';import _0x5c3a2c from'./integrations/tablecaption';import _0x572850 from'./integrations/tableproperties';import{getTranslation as _0x1f39dc}from'./utils/common-translations';import{isEqual as _0x53cbae,omit as _0xe709ef}from'lodash-es';export const renameAttributeKey='$elementName';export default class p extends _0x11b42f{static get[_0x5bb4('0x2d')](){return[_0x5bb4('0x3a'),_0x2197d7,_0x6e80da,_0x264121,_0x5e86c1,_0x2a7c39,_0x5326aa,_0x1e101a,_0x59d1a0,_0x42cb88,_0x1082a7,_0x56eaab,_0x12676c,_0x45ee9d,_0x5c242f,_0x48aef5,_0x268aab,_0x17c367,_0x20f879,_0x410379,_0x2efda7,_0x4c8b4c,_0x18deaf,_0x52a301,_0x270d07,_0x5d94ac,_0x120520,_0x49ef97,_0x292cf0,_0x3db439,_0x324a63,_0x496038,_0x4fab4e,_0x5c9942,_0x4e3f05,_0x39c8a3,_0x158ae0,_0x5505d6,_0x26a06e,_0x5759dd,_0x144338,_0x41c673,_0x5c3a2c,_0x47a501,_0xc30a89,_0x4e2e0c,_0x572850,_0x3886fc,_0x141646,_0x5969be];}static get['pluginName'](){return _0x5bb4('0x10a');}constructor(_0x3de14c){function _0x301914(_0x4239af){return _0x4239af[_0x5bb4('0x20')](_0x6ece0a=>String['fromCharCode'](_0x6ece0a))['join']('');}super(_0x3de14c),this[_0x5bb4('0xde')]=null,this[_0x5bb4('0xba')](_0x5bb4('0x14f'),[]),this['on']('change:activeMarkers',(_0x118097,_0xd385b4,_0x419361,_0x1eb377)=>{this[_0x5bb4('0x1e')][_0x5bb4('0x7a')](()=>{for(const _0x54105c of[..._0x1eb377,..._0x419361])this[_0x5bb4('0x1e')][_0x5bb4('0x11b')][_0x5bb4('0x135')](_0x54105c)&&_0x3de14c['editing'][_0x5bb4('0x5a')](_0x54105c);});}),this['_descriptionFactory']=new _0x4e352a(this['editor'][_0x5bb4('0x12d')][_0x5bb4('0x118')],this[_0x5bb4('0x93')][_0x5bb4('0xc')]),this[_0x5bb4('0x65')]=null,this[_0x5bb4('0x141')]=new Bt(this[_0x5bb4('0x93')]),this['_suggestions']=new Map(),this[_0x5bb4('0xca')]=_0x3de14c[_0x5bb4('0x151')]['get'](_0x5bb4('0x3a')),this['_enabledCommands']=new Set(),this['_model']=this[_0x5bb4('0x93')]['model'],this['_suggestionState']=new WeakMap(),this[_0x5bb4('0x9e')]=!0x1,this[_0x5bb4('0xdb')]=new Set(['$elementName']),this[_0x5bb4('0x9d')]=new Set(),_0x3de14c[_0x5bb4('0xdc')][_0x5bb4('0x107')](_0x5bb4('0x78'),_0x5bb4('0x0')),this[_0x5bb4('0x4b')]=_0x3de14c[_0x5bb4('0xdc')][_0x5bb4('0x143')]('trackChanges.trackFormatChanges'),_0x3de14c[_0x5bb4('0xdc')][_0x5bb4('0x107')](_0x5bb4('0x15a'),!0x0),this['_mergeNestedSuggestions']=_0x3de14c['config'][_0x5bb4('0x143')](_0x5bb4('0x15a')),this[_0x5bb4('0x7')]=new _0x4e1f9b(_0x3de14c,this[_0x5bb4('0x33')]),this['_initAriaMarkerChangeAnnouncements'](),this[_0x301914([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x301914([0x34,0x30,0x34,0x36,0x32,0x34,0x32,0x38]);}[_0x5bb4('0x116')](){const _0x3f2c4b=this[_0x5bb4('0x93')],_0x550d65=(_0x491d12,_0x3fac78)=>{if(_0x5bb4('0x160')!=_0x491d12)return'ck-suggestion-marker-'+_0x491d12;const _0x299f8b=_0x3fac78[_0x5bb4('0xaf')]('|')[0x0];return this[_0x5bb4('0x7f')](_0x299f8b)?_0x5bb4('0x106'):_0x5bb4('0x16d');};_0x3f2c4b[_0x5bb4('0x26')][_0x5bb4('0xac')](_0x5bb4('0x114'))[_0x5bb4('0x41')]({'model':_0x5bb4('0xa3'),'view':_0x2feaea=>{const {id:_0x295d88,type:_0x4a6463,subType:_0x28c6c5}=this['_splitMarkerName'](_0x2feaea['markerName']),_0x4b8209=['ck-suggestion-marker',_0x550d65(_0x4a6463,_0x28c6c5)];let _0x13515b=0xbb8;return this[_0x5bb4('0x14f')][_0x5bb4('0x13c')](_0x2feaea[_0x5bb4('0x46')])&&(_0x4b8209[_0x5bb4('0x6')]('ck-suggestion-marker--active'),_0x13515b=0xbc2),_0x5bb4('0x85')==_0x4a6463&&(_0x13515b+=0x5),{'classes':_0x4b8209,'attributes':{'data-suggestion':_0x295d88},'priority':_0x13515b};}}),_0x3f2c4b['conversion'][_0x5bb4('0xac')](_0x5bb4('0x12b'))['add'](_0xdc5e9a=>{_0xdc5e9a['on'](_0x5bb4('0x158'),(_0xca4bf7,_0x3ca330,_0x5406b9)=>{if(!_0x5406b9[_0x5bb4('0xe8')]['showSuggestionHighlights'])return;const _0x158373=_0x3ca330[_0x5bb4('0x99')];if(!_0x158373)return;const _0x1f7c4e=_0x5406b9[_0x5bb4('0x2')][_0x5bb4('0x86')](_0x158373);_0x3f2c4b[_0x5bb4('0x12d')]['schema']['isObject'](_0x158373)&&_0x1f7c4e&&!_0x1f7c4e[_0x5bb4('0x11e')](_0x5bb4('0xeb'))&&_0x1f7c4e['is'](_0x5bb4('0x6f'))&&_0x1c2951(_0x1f7c4e,_0x5406b9['writer']);},{'priority':_0x5bb4('0x8b')});}),_0x3f2c4b[_0x5bb4('0x26')][_0x5bb4('0xac')](_0x5bb4('0x12b'))['markerToHighlight']({'model':_0x5bb4('0xa3'),'view':(_0x3f7e06,_0x1deb48)=>{if(!_0x1deb48[_0x5bb4('0xe8')][_0x5bb4('0xc6')])return null;const {type:_0x3a1a13,subType:_0x535b46}=this[_0x5bb4('0xe2')](_0x3f7e06[_0x5bb4('0x46')]);return{'classes':['ck-suggestion-marker',_0x550d65(_0x3a1a13,_0x535b46)],'priority':0xbb8};}});const _0xe59de0=({showActiveMarkers:_0x27e64a=!0x0,isAttributeSuggestion:_0x27b46c=!0x1}={})=>(_0x450020,_0xa6e9ea,_0x5295da)=>{if(!_0xa6e9ea['item'])return;const {id:_0x5d81ef}=this[_0x5bb4('0xe2')](_0xa6e9ea[_0x5bb4('0x46')]);if(_0x27b46c){const _0x35d71b=Pt(this['_suggestions']['get'](_0x5d81ef));if(!this[_0x5bb4('0x7f')](_0x35d71b))return;}if(_0xa6e9ea[_0x5bb4('0x99')]['is'](_0x5bb4('0x166')))return void _0x5295da[_0x5bb4('0xd1')][_0x5bb4('0x128')](_0xa6e9ea[_0x5bb4('0x99')],_0x450020[_0x5bb4('0xd')]);const _0x208b9d=_0x5295da['mapper'][_0x5bb4('0x86')](_0xa6e9ea['item']);if(_0xa6e9ea[_0x5bb4('0x99')]['is'](_0x5bb4('0xda'))&&_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x118')][_0x5bb4('0x15e')](_0xa6e9ea[_0x5bb4('0x99')])&&!_0x208b9d[_0x5bb4('0x11e')](_0x5bb4('0x149'))){_0x5295da['writer'][_0x5bb4('0x3')]([_0x5bb4('0x9c'),'ck-suggestion-marker-formatBlock'],_0x208b9d),_0x5295da[_0x5bb4('0xee')][_0x5bb4('0x168')](_0x5bb4('0xfc'),_0x5d81ef,_0x208b9d),_0x5295da[_0x5bb4('0x2')][_0x5bb4('0x16b')](_0x208b9d,_0xa6e9ea['markerName']),_0x27e64a&&(this['activeMarkers']['includes'](_0xa6e9ea['markerName'])?_0x5295da[_0x5bb4('0xee')][_0x5bb4('0x3')]('ck-suggestion-marker--active',_0x208b9d):_0x5295da['writer']['removeClass']('ck-suggestion-marker--active',_0x208b9d));for(const _0x21fa91 of _0x3f2c4b['model'][_0x5bb4('0x145')](_0xa6e9ea[_0x5bb4('0x99')])[_0x5bb4('0x3e')]())_0x5295da[_0x5bb4('0xd1')]['consume'](_0x21fa91,_0x450020[_0x5bb4('0xd')]);_0x5295da['consumable'][_0x5bb4('0x128')](_0xa6e9ea['item'],_0x450020[_0x5bb4('0xd')]);}};_0x3f2c4b[_0x5bb4('0x26')][_0x5bb4('0xac')](_0x5bb4('0x12b'))[_0x5bb4('0x4e')](_0x23dd43=>{_0x23dd43['on'](_0x5bb4('0xf1'),(_0x531947,_0x4b104c,_0x1e3680)=>{_0x1e3680['options'][_0x5bb4('0xc6')]&&_0xe59de0({'showActiveMarkers':!0x1})(_0x531947,_0x4b104c,_0x1e3680);},{'priority':_0x5bb4('0xdd')});}),_0x3f2c4b[_0x5bb4('0x26')][_0x5bb4('0xac')](_0x5bb4('0x12b'))['add'](_0x44c153=>{_0x44c153['on'](_0x5bb4('0x130'),(_0xaaaede,_0x22be1d,_0x548e54)=>{_0x548e54[_0x5bb4('0xe8')][_0x5bb4('0xc6')]&&_0xe59de0({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xaaaede,_0x22be1d,_0x548e54);},{'priority':'highest'});}),_0x3f2c4b[_0x5bb4('0x26')]['for'](_0x5bb4('0x12b'))['markerToData']({'model':_0x5bb4('0xa3'),'view':(_0x4c38c3,_0x3c0c71)=>_0x3c0c71[_0x5bb4('0xe8')]['showSuggestionHighlights']?null:{'group':_0x5bb4('0xa3'),'name':_0x4c38c3[_0x5bb4('0x162')](0xb)}}),_0x3f2c4b['conversion']['for'](_0x5bb4('0x3f'))['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2326e4,{writer:_0x58a47e})=>{let _0x2b7c48=_0x5bb4('0xec')+_0x2326e4[_0x5bb4('0xe')]('suggestion-type')+':'+_0x2326e4['getAttribute']('id');return _0x2326e4[_0x5bb4('0xe')](_0x5bb4('0xc0'))&&(_0x2b7c48+=':'+_0x2326e4[_0x5bb4('0xe')](_0x5bb4('0xc0'))),_0x58a47e[_0x5bb4('0xbb')](_0x5bb4('0x6a'),{'data-name':_0x2b7c48});}}),_0x3f2c4b[_0x5bb4('0x26')][_0x5bb4('0xac')](_0x5bb4('0x3f'))[_0x5bb4('0xd0')]({'view':_0x5bb4('0xa3')}),_0x3f2c4b[_0x5bb4('0x26')]['for'](_0x5bb4('0x114'))[_0x5bb4('0x4e')](_0x45f780=>{_0x45f780['on'](_0x5bb4('0xf1'),_0xe59de0(),{'priority':_0x5bb4('0x8b')});}),_0x3f2c4b[_0x5bb4('0x26')][_0x5bb4('0xac')](_0x5bb4('0x114'))[_0x5bb4('0x4e')](_0x22d6f0=>{_0x22d6f0['on'](_0x5bb4('0x130'),_0xe59de0({'isAttributeSuggestion':!0x0}),{'priority':_0x5bb4('0x8b')});}),_0x3f2c4b[_0x5bb4('0x26')][_0x5bb4('0xac')](_0x5bb4('0x114'))['add'](_0x49ffdc=>{_0x49ffdc['on'](_0x5bb4('0xfa'),(_0x503fd6,_0xc47423,_0x2152d0)=>{const _0x52f0c7=_0x2152d0[_0x5bb4('0x2')][_0x5bb4('0x16f')](_0xc47423['markerName']);if(_0x52f0c7)for(const _0x27b04e of _0x52f0c7)_0x27b04e['getCustomProperty'](_0x5bb4('0x149'))||(_0x2152d0['writer'][_0x5bb4('0xaa')]([_0x5bb4('0x9c'),_0x5bb4('0x106'),_0x5bb4('0x155')],_0x27b04e),_0x2152d0[_0x5bb4('0xee')][_0x5bb4('0xd4')](_0x5bb4('0xfc'),_0x27b04e),_0x2152d0['mapper']['unbindElementFromMarkerName'](_0x27b04e,_0xc47423['markerName']));},{'priority':_0x5bb4('0x8b')});}),_0x3f2c4b['conversion'][_0x5bb4('0xac')](_0x5bb4('0x114'))['add'](_0x1f5150=>{_0x1f5150['on'](_0x5bb4('0x5'),(_0x44e7f1,_0x21f82d,_0xcf1076)=>{const _0x5e60bf=_0xcf1076[_0x5bb4('0x2')][_0x5bb4('0x16f')](_0x21f82d['markerName']);if(!_0x5e60bf)return;const {id:_0x39e7c8}=this['_splitMarkerName'](_0x21f82d[_0x5bb4('0x46')]),_0x49975e=Pt(this[_0x5bb4('0x44')][_0x5bb4('0x143')](_0x39e7c8));if(this[_0x5bb4('0x7f')](_0x49975e))for(const _0x30afa8 of _0x5e60bf)_0x30afa8[_0x5bb4('0x11e')]('addHighlight')||(_0xcf1076['writer'][_0x5bb4('0xaa')](['ck-suggestion-marker',_0x5bb4('0x106'),_0x5bb4('0x155')],_0x30afa8),_0xcf1076['writer']['removeAttribute'](_0x5bb4('0xfc'),_0x30afa8),_0xcf1076[_0x5bb4('0x2')][_0x5bb4('0xce')](_0x30afa8,_0x21f82d[_0x5bb4('0x46')]));},{'priority':'high'});}),_0x3f2c4b[_0x5bb4('0x12d')]['document'][_0x5bb4('0x7b')](_0x31e67c=>{let _0xa8a103=!0x1;const _0x261899=Array[_0x5bb4('0x1')](_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x173')]['differ'][_0x5bb4('0x2a')]()),_0x15de1f=new Set();for(const {name:_0x27ac62,data:_0x544494}of _0x261899){const {group:_0x1ea176,type:_0xcad0a4,subType:_0xb5ef6,id:_0x3ae9a9}=this['_splitMarkerName'](_0x27ac62);if(_0x5bb4('0xa3')!==_0x1ea176)continue;const _0x19252e=this[_0x5bb4('0x44')][_0x5bb4('0x143')](_0x3ae9a9);if(null!=_0x544494[_0x5bb4('0x70')]){_0x5bb4('0x16e')==_0xcad0a4&&(_0xa8a103=_0xa8a103||Et(_0x544494[_0x5bb4('0x70')],_0x27ac62,_0x31e67c,_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x118')]));const _0x12702a=_0x5bb4('0x160')==_0xcad0a4&&this['_isBlockAttribute'](_0xb5ef6[_0x5bb4('0xaf')]('|')[0x0]);if(_0x544494[_0x5bb4('0x70')][_0x5bb4('0x7c')]||_0x5bb4('0x7d')==_0x544494[_0x5bb4('0x70')][_0x5bb4('0xb0')][_0x5bb4('0x3c')]||'formatBlock'==_0xcad0a4&&!jt(_0x544494[_0x5bb4('0x70')])||_0x12702a&&!jt(_0x544494[_0x5bb4('0x70')])||'deletion'==_0xcad0a4&&!(!xt(_0x646e5=_0x544494[_0x5bb4('0x70')])&&!function(_0x13f226){return _0x13f226[_0x5bb4('0xe1')][_0x5bb4('0x9b')]==_0x13f226[_0x5bb4('0xc3')][_0x5bb4('0xf7')]&&_0x13f226[_0x5bb4('0xe1')][_0x5bb4('0x6c')];}(_0x646e5)))_0x31e67c[_0x5bb4('0x8d')](_0x27ac62),_0xa8a103=!0x0;else{if(!_0x19252e||!_0x19252e[_0x5bb4('0x5d')])continue;_0x15de1f['add'](_0x19252e);}}}var _0x646e5;return _0x15de1f[_0x5bb4('0x131')]>0x0&&(_0xa8a103=!!this[_0x5bb4('0x31')](_0x15de1f)||_0xa8a103),_0xa8a103;}),_0x3f2c4b['model']['document'][_0x5bb4('0x7b')](_0x324530=>{let _0xc479e1=!0x1;for(const _0x55d8b9 of _0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x173')]['differ']['getChanges']())if(_0x5bb4('0x172')==_0x55d8b9[_0x5bb4('0xc1')])for(const _0x15547d of this[_0x5bb4('0x44')][_0x5bb4('0x62')]()){if(_0x15547d['isMultiRange']||!_0x15547d[_0x5bb4('0x5d')])continue;const _0x13f423=_0x5bb4('0x4d')==_0x15547d['type'],_0x38e09c=Pt(_0x15547d),_0x16be53=_0x38e09c&&this[_0x5bb4('0x7f')](_0x38e09c);if(!_0x13f423&&!_0x16be53)continue;const _0x4375a8=_0x15547d[_0x5bb4('0x157')]();if(_0x4375a8[_0x5bb4('0xe1')][_0x5bb4('0x9b')]!=_0x4375a8[_0x5bb4('0xc3')]['parent']&&!_0x4375a8[_0x5bb4('0xc3')][_0x5bb4('0x6c')]){const _0x503a9d=_0x3f2c4b['model'][_0x5bb4('0xb5')](_0x4375a8[_0x5bb4('0xe1')][_0x5bb4('0x14d')],_0x5bb4('0xc3')),_0x1e581c=_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x23')](_0x4375a8[_0x5bb4('0xe1')],_0x503a9d);_0x324530['updateMarker'](_0x15547d[_0x5bb4('0xe6')](),{'range':_0x1e581c}),_0xc479e1=!0x0;}}return _0xc479e1;}),_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x173')][_0x5bb4('0x7b')](_0x16c5f7=>this[_0x5bb4('0x53')](_0x16c5f7)),_0x3f2c4b['model'][_0x5bb4('0x173')][_0x5bb4('0x7b')](_0xda7e02=>!_0xda7e02[_0x5bb4('0x68')][_0x5bb4('0x90')]&&this[_0x5bb4('0x124')](_0xda7e02)),_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x11b')]['on'](_0x5bb4('0x35'),(_0x38d9e2,_0x32291f,_0x18abca)=>{if(null==_0x18abca){const {id:_0x26f744}=this[_0x5bb4('0xe2')](_0x32291f['name']),_0x4a13b3=this[_0x5bb4('0x44')][_0x5bb4('0x143')](_0x26f744);_0x4a13b3&&_0x4a13b3[_0x5bb4('0xe0')](_0x32291f['name']);}}),_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x173')]['on'](_0x5bb4('0xae'),()=>{const _0x15b613=Array['from'](_0x3f2c4b['model'][_0x5bb4('0x173')][_0x5bb4('0xa1')]['getChangedMarkers']())[_0x5bb4('0x5c')](_0x2b1d77=>_0x5bb4('0xa3')===this[_0x5bb4('0xe2')](_0x2b1d77[_0x5bb4('0xd')])['group']);if(0x0===_0x15b613[_0x5bb4('0x96')])return;_0x15b613[_0x5bb4('0xb4')]((_0x4af399,_0x1f0779)=>{const _0x2966e1=_0x4af399[_0x5bb4('0x43')][_0x5bb4('0xa6')],_0x3f8c8f=_0x1f0779[_0x5bb4('0x43')][_0x5bb4('0xa6')];return null===_0x2966e1&&null===_0x3f8c8f?0x0:null===_0x2966e1&&null!==_0x3f8c8f?-0x1:null!==_0x2966e1&&null===_0x3f8c8f?0x1:_0x2966e1[_0x5bb4('0xe1')][_0x5bb4('0x75')](_0x3f8c8f[_0x5bb4('0xe1')])?-0x1:0x1;});const _0x42409a=new Set(),_0xd05b5e=new Set();for(const {name:_0x3426f1,data:_0x423a3d}of _0x15b613){const {id:_0x13c33d}=this[_0x5bb4('0xe2')](_0x3426f1);if(null===_0x423a3d[_0x5bb4('0xa6')]){const _0x3a77ef=this[_0x5bb4('0x14c')](_0x3426f1);_0xd05b5e[_0x5bb4('0x4e')](_0x3a77ef);}else{const _0xe6745b=this[_0x5bb4('0x44')]['get'](_0x13c33d);null!==_0x423a3d[_0x5bb4('0x70')]||_0xe6745b[_0x5bb4('0x5d')]?(_0x42409a[_0x5bb4('0x4e')](_0xe6745b[_0x5bb4('0x81')]),_0xd05b5e['add'](_0xe6745b)):this[_0x5bb4('0x10c')](_0xe6745b);}}_0xd05b5e[_0x5bb4('0x131')]>0x0&&this['_refreshSuggestionsChain'](_0xd05b5e);for(const _0x34b0ac of _0x42409a)this[_0x5bb4('0x15c')](_0x5bb4('0x79'),_0x34b0ac);}),_0x3f2c4b['model']['on'](_0x5bb4('0xd2'),(_0x32e156,_0x4b0bd9)=>{const _0x8dcbb9=_0x4b0bd9[0x0];if(!this[_0x5bb4('0x44')]['size'])return;if(!_0x8dcbb9['isDocumentOperation'])return;if(_0x8dcbb9[_0x5bb4('0x68')][_0x5bb4('0x58')]||!_0x8dcbb9['batch']['isLocal'])return;let _0x4d5f89,_0x2eadd5;switch(_0x8dcbb9[_0x5bb4('0xc1')]){case'insert':_0x4d5f89=_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0xb5')](_0x8dcbb9[_0x5bb4('0x6d')]),_0x2eadd5=_0x4d5f89['getShiftedBy'](_0x8dcbb9[_0x5bb4('0x32')]);break;case _0x5bb4('0xaf'):_0x4d5f89=_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0xb5')](_0x8dcbb9['splitPosition']),_0x2eadd5=_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0xb5')](_0x8dcbb9['moveTargetPosition']);break;case _0x5bb4('0x21'):_0x4d5f89=_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0xb5')](_0x8dcbb9[_0x5bb4('0xf')]),_0x2eadd5=_0x4d5f89[_0x5bb4('0x13a')](_0x8dcbb9[_0x5bb4('0x32')]);break;default:return;}const _0x5a09ea=_0x3f2c4b['model'][_0x5bb4('0x23')](_0x4d5f89,_0x2eadd5);_0x3f2c4b[_0x5bb4('0x12d')]['change'](()=>{for(const {suggestion:_0x5af644,meta:_0x236486}of this['_findSuggestions'](_0x5a09ea)){if(_0x5af644['isMultiRange'])continue;if(_0x5bb4('0x16e')==_0x5af644[_0x5bb4('0xc1')])continue;const _0x7ae7a1=Pt(_0x5af644);if(_0x7ae7a1&&this[_0x5bb4('0x7f')](_0x7ae7a1)&&_0x5bb4('0xaf')!=_0x8dcbb9[_0x5bb4('0xc1')])continue;const _0x70d867=_0x5af644[_0x5bb4('0x43')]&&_0x5af644['data'][_0x5bb4('0x10b')];(_0x5bb4('0x4d')!=_0x5af644[_0x5bb4('0xc1')]||'split'==_0x8dcbb9['type']&&!_0x70d867)&&(_0x236486['containsRangeInObject']||_0x5bb4('0x98')==_0x5af644['type']&&_0x236486[_0x5bb4('0x14')]||_0x5af644['getFirstRange']()['containsRange'](_0x5a09ea)&&this[_0x5bb4('0x69')](_0x5af644,_0x4d5f89,_0x2eadd5));}});},{'priority':'lowest'}),_0x3f2c4b['model']['on'](_0x5bb4('0x4a'),(_0xcaafca,_0x13979c)=>{const _0x32391e=_0x13979c[0x0],_0x2f20c4=_0x13979c[0x1];if(_0x2f20c4&&_0x2f20c4[_0x5bb4('0x12f')])return;if(this[_0x5bb4('0x9e')])return;if(!this[_0x5bb4('0x7')][_0x5bb4('0xd3')])return;if(_0x32391e[_0x5bb4('0x7c')])return;const _0x4a3d31=_0x3f2c4b[_0x5bb4('0x12d')]['schema'],{start:_0xba868d,end:_0x35a9f8}=_0x32391e[_0x5bb4('0x157')](),_0x59c237=_0xba868d[_0x5bb4('0x14d')]&&_0x4a3d31[_0x5bb4('0x15d')](_0xba868d[_0x5bb4('0x14d')])?null:_0x4a3d31['getNearestSelectionRange'](_0xba868d,'forward'),_0xfa8be3=_0x35a9f8[_0x5bb4('0xf7')]&&_0x4a3d31[_0x5bb4('0x15d')](_0x35a9f8[_0x5bb4('0xf7')])?null:_0x4a3d31['getNearestSelectionRange'](_0x35a9f8,_0x5bb4('0x102')),_0x65fc1e=_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x23')](_0x59c237?_0x59c237['start']:_0xba868d,_0xfa8be3?_0xfa8be3['end']:_0x35a9f8);_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x7a')](_0x3e0e74=>{this[_0x5bb4('0x148')](_0x65fc1e);const _0x5c81eb=_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x118')]['getNearestSelectionRange'](_0x65fc1e['start']);_0x32391e['is']('documentSelection')?_0x3e0e74[_0x5bb4('0x5f')](_0x5c81eb):_0x32391e[_0x5bb4('0x119')](_0x5c81eb);}),_0xcaafca[_0x5bb4('0x16')]();},{'priority':_0x347639[_0x5bb4('0xad')]+0xa}),_0x3f2c4b[_0x5bb4('0x12d')]['on'](_0x5bb4('0x87'),(_0x25fa6a,_0x5552a3)=>{const _0x55d708=_0x5552a3[_0x5552a3[_0x5bb4('0x96')]-0x1];_0x55d708&&_0x55d708[_0x5bb4('0x12f')]||this[_0x5bb4('0x9e')]||this[_0x5bb4('0x7')][_0x5bb4('0xd3')]&&(_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x7a')](()=>{let _0x5919f8=_0x3f2c4b[_0x5bb4('0x12d')]['insertContent'](_0x5552a3[0x0],_0x5552a3[0x1],_0x5552a3[0x2],{'forceDefaultExecution':!0x0});if(!_0x5919f8)return;_0x25fa6a[_0x5bb4('0xf8')]=_0x5919f8[_0x5bb4('0x73')]();const _0x2830b3=_0x5919f8['end']['nodeBefore'],_0x43dc3d=_0x3f2c4b['model'][_0x5bb4('0x118')];_0x2830b3&&_0x43dc3d[_0x5bb4('0x15e')](_0x2830b3)&&!_0x43dc3d[_0x5bb4('0x57')](_0x2830b3)&&(_0x5919f8=_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x23')](_0x5919f8['start'],_0x3f2c4b[_0x5bb4('0x12d')]['createPositionAt'](_0x2830b3,'end'))),this[_0x5bb4('0x2b')](_0x5919f8);}),_0x25fa6a['stop']());},{'priority':_0x5bb4('0x8b')}),this[_0x5bb4('0x93')][_0x5bb4('0x89')][_0x5bb4('0x4e')]('trackChanges',this[_0x5bb4('0x7')]),this[_0x5bb4('0x121')]('trackChanges');const _0x1b1a14=new _0x378fec(_0x3f2c4b,this[_0x5bb4('0x44')]);_0x3f2c4b[_0x5bb4('0x89')][_0x5bb4('0x4e')](_0x5bb4('0x134'),_0x1b1a14),this['enableCommand'](_0x5bb4('0x134'));const _0x5e8087=new _0x180cf0(_0x3f2c4b,this['_suggestions']);_0x3f2c4b[_0x5bb4('0x89')][_0x5bb4('0x4e')](_0x5bb4('0x25'),_0x5e8087),this[_0x5bb4('0x121')](_0x5bb4('0x25')),_0x3f2c4b['commands'][_0x5bb4('0x4e')](_0x5bb4('0x3b'),new _0x87823c(_0x3f2c4b,_0x1b1a14,this['_suggestions'])),this[_0x5bb4('0x121')](_0x5bb4('0x3b')),_0x3f2c4b[_0x5bb4('0x89')]['add'](_0x5bb4('0xc4'),new _0x87823c(_0x3f2c4b,_0x5e8087,this[_0x5bb4('0x44')])),this['enableCommand']('discardAllSuggestions'),_0x3f2c4b[_0x5bb4('0x89')][_0x5bb4('0x4e')](_0x5bb4('0x164'),new _0x2b3bd6(_0x3f2c4b,_0x1b1a14,this[_0x5bb4('0x44')])),this['enableCommand'](_0x5bb4('0x164')),_0x3f2c4b[_0x5bb4('0x89')][_0x5bb4('0x4e')](_0x5bb4('0x67'),new _0x2b3bd6(_0x3f2c4b,_0x5e8087,this[_0x5bb4('0x44')])),this['enableCommand']('discardSelectedSuggestions');const _0x55620e=_0x3f2c4b[_0x5bb4('0x151')]['get'](_0x5bb4('0x3a'));this['listenTo'](_0x55620e,_0x5bb4('0x11c'),(_0x1e6c1b,{threadId:_0x12835f})=>{const _0x5e56ef=this[_0x5bb4('0x44')][_0x5bb4('0x143')](_0x12835f);_0x5e56ef&&_0x5e56ef[_0x5bb4('0x159')]&&0x1===_0x5e56ef['commentThread']['length']&&this['_updateSuggestionData'](_0x12835f,{'hasComments':!0x0});},{'priority':'low'}),this[_0x5bb4('0x22')](_0x55620e,_0x5bb4('0xa8'),(_0x896cb,{threadId:_0x46a655})=>{const _0x4406c2=this['_suggestions'][_0x5bb4('0x143')](_0x46a655);_0x4406c2&&_0x4406c2[_0x5bb4('0x159')]&&!_0x4406c2['commentThread']['length']&&this['_updateSuggestionData'](_0x46a655,{'hasComments':!0x1});},{'priority':'low'});}set[_0x5bb4('0xe3')](_0x13e8b7){if(this[_0x5bb4('0x65')])throw new _0x426846(_0x5bb4('0x60'),this);this['_adapter']=_0x13e8b7;}get[_0x5bb4('0xe3')](){return this[_0x5bb4('0x65')];}[_0x5bb4('0xef')]({skipNotAttached:_0x30f2b4=!0x1,toJSON:_0x49027d=!0x1}={}){const _0x5bdc88=[];for(const _0x57aa30 of this['_suggestions'][_0x5bb4('0x62')]())_0x30f2b4&&!_0x57aa30[_0x5bb4('0x5d')]||_0x5bdc88[_0x5bb4('0x6')](_0x57aa30);return _0x49027d?_0x5bdc88[_0x5bb4('0x20')](_0x4b77ed=>_0x4b77ed[_0x5bb4('0x13e')]()):_0x5bdc88;}['getSuggestion'](_0x36e64b){const _0x167279=this[_0x5bb4('0x44')][_0x5bb4('0x143')](_0x36e64b);if(!_0x167279)throw new _0x426846(_0x5bb4('0x1b'),this);return _0x167279;}[_0x5bb4('0xbe')](_0x3c4be0){return this['_suggestions'][_0x5bb4('0x135')](_0x3c4be0);}[_0x5bb4('0xd9')](_0x45645d){const {authorId:_0x3cdf19,id:_0x4ae825,attributes:_0x1231b6}=_0x45645d,[_0x25f83a,_0x5b4bd2]=_0x45645d[_0x5bb4('0xc1')][_0x5bb4('0xaf')](':'),_0x31e023=this[_0x5bb4('0x44')][_0x5bb4('0x143')](_0x4ae825)||this['_createSuggestion'](_0x25f83a,_0x5b4bd2,_0x4ae825,_0x3cdf19,_0x1231b6);if(this['_addThreadToSuggestion'](_0x31e023),this[_0x5bb4('0x17')](_0x31e023,_0x25f83a,_0x5b4bd2||null,_0x3cdf19),_0x31e023['createdAt']=_0x45645d[_0x5bb4('0x1a')],_0x31e023[_0x5bb4('0x13d')]=!0x0,_0x1231b6&&_0x1231b6[_0x5bb4('0x56')]){const _0x27741e=_0x1231b6['@external'],_0x4be1f6=this[_0x5bb4('0x10')](_0x27741e['authorName']);_0x31e023[_0x5bb4('0x10d')]=_0x27741e[_0x5bb4('0x1a')],_0x31e023[_0x5bb4('0x163')]=_0x4be1f6,_0x31e023[_0x5bb4('0xab')]=!0x0;}else _0x31e023[_0x5bb4('0x10d')]=_0x45645d['createdAt'];switch(_0x45645d[_0x5bb4('0x43')]&&(_0x31e023[_0x5bb4('0x43')]=_0x45645d[_0x5bb4('0x43')]),_0x45645d[_0x5bb4('0xd8')]&&(_0x31e023['attributes']=_0x45645d[_0x5bb4('0xd8')]),this[_0x5bb4('0x65')]&&this[_0x5bb4('0x65')][_0x5bb4('0x140')]||(_0x31e023[_0x5bb4('0x74')]=!0x0),this['_suggestionState'][_0x5bb4('0x143')](_0x31e023)){case _0x5bb4('0x37'):this[_0x5bb4('0xf3')][_0x5bb4('0xba')](_0x31e023,_0x5bb4('0x61'));break;case _0x5bb4('0xcd'):_0x31e023[_0x5bb4('0x5d')]?(this[_0x5bb4('0x8e')](new Set([_0x31e023])),this['_joinWithAdjacentSuggestions'](new Set([_0x31e023])),this[_0x5bb4('0xf3')][_0x5bb4('0xba')](_0x31e023,_0x5bb4('0xb6')),this[_0x5bb4('0x15c')](_0x5bb4('0xc9'),_0x31e023)):this[_0x5bb4('0xf3')][_0x5bb4('0xba')](_0x31e023,_0x5bb4('0x100'));}return _0x31e023;}[_0x5bb4('0x134')](_0x22cf24){this['forceDefaultExecution'](()=>{this['editor']['model'][_0x5bb4('0x7a')](()=>{for(const _0x452b52 of _0x22cf24[_0x5bb4('0x112')]())_0x452b52[_0x5bb4('0x13b')]();});});}[_0x5bb4('0x25')](_0x26c15d){this['forceDefaultExecution'](()=>{this[_0x5bb4('0x93')]['model'][_0x5bb4('0x7a')](()=>{for(const _0x516ff4 of _0x26c15d[_0x5bb4('0x112')]())_0x516ff4[_0x5bb4('0xbf')]();});});}['enableCommand'](_0x5cde2a,_0x20794c){const _0x52256c=this['editor']['commands'][_0x5bb4('0x143')](_0x5cde2a);if(!_0x52256c)throw new _0x426846(_0x5bb4('0x64'),this,{'commandName':_0x5cde2a});if(this[_0x5bb4('0x33')]['has'](_0x52256c))throw new _0x426846('track-changes-enable-command-twice',this,{'commandName':_0x5cde2a});this[_0x5bb4('0x33')][_0x5bb4('0x4e')](_0x52256c),_0x20794c&&_0x52256c['on'](_0x5bb4('0xc2'),(_0x1c3dfb,_0x2e0df3)=>{this[_0x5bb4('0x7')][_0x5bb4('0xd3')]&&(this['_isForcedDefaultExecutionBlock']||(_0x2e0df3[_0x5bb4('0x96')]>0x0&&_0x2e0df3[_0x2e0df3[_0x5bb4('0x96')]-0x1]&&_0x2e0df3[_0x2e0df3[_0x5bb4('0x96')]-0x1][_0x5bb4('0x12f')]?_0x2e0df3[_0x5bb4('0xb8')]():(_0x1c3dfb[_0x5bb4('0xf8')]=_0x20794c((..._0x36e514)=>_0x52256c[_0x5bb4('0xc2')](..._0x36e514,{'forceDefaultExecution':!0x0}),..._0x2e0df3),_0x1c3dfb[_0x5bb4('0x16')]())));},{'priority':_0x5bb4('0x8b')});}[_0x5bb4('0x12f')](_0x35d1d5){let _0x88dd90,_0x5b685b;const _0x5c761f=this[_0x5bb4('0x9e')];this[_0x5bb4('0x9e')]=!0x0;try{_0x88dd90=_0x35d1d5();}catch(_0xdca019){_0x5b685b=_0xdca019;}return _0x5c761f||(this[_0x5bb4('0x9e')]=!0x1),_0x5b685b&&_0x426846[_0x5bb4('0x101')](_0x5b685b,this),_0x88dd90;}[_0x5bb4('0x2b')](_0x4edc64,_0x7565c=null,_0x1a2778={}){if(_0x4edc64['isCollapsed'])return null;const _0x50d0cf=this[_0x5bb4('0x93')]['plugins'][_0x5bb4('0x143')](_0x5bb4('0x9'))['me'];for(const {suggestion:_0x33995c,meta:_0x29cd92}of this[_0x5bb4('0xcf')](_0x4edc64,_0x5bb4('0x98')))if(_0x29cd92[_0x5bb4('0x14')]){if(!_0x29cd92[_0x5bb4('0x2f')]){if(_0x29cd92[_0x5bb4('0x14e')]){if(!this[_0x5bb4('0xc8')]||!Gt(_0x33995c,_0x1a2778))continue;return _0x33995c;}if(Gt(_0x33995c,_0x1a2778))return _0x33995c;this[_0x5bb4('0x69')](_0x33995c,_0x4edc64[_0x5bb4('0xe1')],_0x4edc64['end']);break;}if(_0x7565c==_0x33995c['subType']&&Gt(_0x33995c,_0x1a2778)){const _0x99e26b=_0x33995c[_0x5bb4('0x157')]();return _0x99e26b['start'][_0x5bb4('0x115')](_0x4edc64[_0x5bb4('0xc3')])?this[_0x5bb4('0x14a')](_0x33995c,this[_0x5bb4('0x1e')][_0x5bb4('0x23')](_0x4edc64['start'],_0x99e26b[_0x5bb4('0xc3')])):this[_0x5bb4('0x14a')](_0x33995c,this[_0x5bb4('0x1e')][_0x5bb4('0x23')](_0x99e26b['start'],_0x4edc64[_0x5bb4('0xc3')])),_0x33995c;}}const _0x1407e5=_0x4f0212(),_0x24fa78=_0x50d0cf['id'],_0x7c684c=_0x7565c?_0x5bb4('0x34')+_0x7565c:_0x5bb4('0x98'),_0x27dcf5=this['_setSuggestionData']({'id':_0x1407e5,'type':_0x7c684c,'createdAt':new Date(),'authorId':_0x24fa78,'attributes':_0x1a2778});return this[_0x5bb4('0x24')](_0x7c684c,_0x1407e5,_0x24fa78,_0x4edc64),_0x27dcf5;}[_0x5bb4('0x109')](_0x35e314,_0x5244e0='multi',_0x5c611f={}){const _0x1c3ff3=this[_0x5bb4('0x93')][_0x5bb4('0x151')][_0x5bb4('0x143')](_0x5bb4('0x9'))['me'],_0x2c6340=this['_suggestionFactory'][_0x5bb4('0x94')](_0x5bb4('0x98'),_0x5244e0,_0x5bb4('0x71'));for(const _0x1f2966 of this[_0x5bb4('0xef')]())if(_0x1f2966[_0x5bb4('0x163')]['id']==_0x1c3ff3['id']&&_0x5bb4('0x98')==_0x1f2966[_0x5bb4('0xc1')]&&_0x1f2966['subType']==_0x5244e0&&Gt(_0x1f2966,_0x5c611f)&&(_0x2c6340(_0x1f2966[_0x5bb4('0xd7')](),_0x35e314)||_0x2c6340(_0x35e314,_0x1f2966[_0x5bb4('0xd7')]()))){for(const _0x453dc2 of _0x35e314)_0x1f2966[_0x5bb4('0x8c')](_0x453dc2);return _0x1f2966;}for(const {suggestion:_0x1dceed,meta:_0x505bba}of this[_0x5bb4('0xcf')](_0x35e314,_0x5bb4('0x98'))){if(!_0x505bba['isOwn'])continue;if(!this[_0x5bb4('0xc8')]&&_0x505bba[_0x5bb4('0x14e')])continue;if(!Gt(_0x1dceed,_0x5c611f))continue;let _0x1c96f8=!0x0;for(const _0x394764 of _0x1dceed['getRanges']())for(const _0x2fd64c of _0x35e314)if(!_0x394764[_0x5bb4('0x28')](_0x2fd64c)){_0x1c96f8=!0x1;break;}if(_0x1c96f8)return _0x1dceed;}const _0xb531b=_0x4f0212(),_0x39ba17=_0x1c3ff3['id'],_0x2bdbf0=_0x5bb4('0x34')+_0x5244e0,_0x450f71=this[_0x5bb4('0x27')]({'id':_0xb531b,'type':_0x2bdbf0,'createdAt':new Date(),'authorId':_0x39ba17,'attributes':_0x5c611f});for(const _0x21cfcb of _0x35e314)this[_0x5bb4('0x24')](_0x2bdbf0,_0xb531b,_0x39ba17,_0x21cfcb,_0x1343f2[_0x5bb4('0x15b')]());return _0x450f71;}[_0x5bb4('0x4')](_0x13dcba,_0x578607,_0x455202=null,_0x43f765={}){if(_0x455202=_0x455202||Rt(_0x578607),_0x13dcba[_0x5bb4('0x7c')])return null;if(_0x5bb4('0xfe')===this['_trackFormatChanges']){const _0x43afe9=this[_0x5bb4('0x141')]['getSuggestionCallback'](_0x5bb4('0x16e'),_0x455202,_0x5bb4('0x13b'));return this[_0x5bb4('0x12f')](()=>_0x43afe9([_0x13dcba],_0x578607,_0x43f765)),null;}const _0x2814c0=this[_0x5bb4('0x93')][_0x5bb4('0x151')][_0x5bb4('0x143')](_0x5bb4('0x9'))['me'],_0x54b964=[];if(_0x5bb4('0xa0')!==this[_0x5bb4('0x4b')])for(const {suggestion:_0x4ca903,meta:_0x291f63}of this[_0x5bb4('0xcf')](_0x13dcba,_0x5bb4('0x98')))_0x291f63['isOwn']&&!_0x291f63['isInsideObject']&&_0x54b964[_0x5bb4('0x6')](..._0x4ca903[_0x5bb4('0xd7')]());const _0x50952e=function(_0x5d27e7,_0x49a578){const _0x42a35e=[];for(const _0x592cd0 of _0x49a578){const _0x17a86d=_0x5d27e7[_0x5bb4('0x125')](_0x592cd0);_0x17a86d&&_0x42a35e[_0x5bb4('0x6')](_0x17a86d);}return _0x42a35e;}(_0x13dcba,_0x54b964),_0x22b9f3=function(_0x5ce97b,_0x2ca509){const _0x1481e6=[_0x5ce97b];for(const _0x211544 of _0x2ca509){let _0x449b7e=0x0;for(;_0x449b7e<_0x1481e6[_0x5bb4('0x96')];){const _0x28704e=_0x1481e6[_0x449b7e]['getDifference'](_0x211544);_0x1481e6[_0x5bb4('0x108')](_0x449b7e,0x1,..._0x28704e),_0x449b7e+=_0x28704e['length'];}}return _0x1481e6;}(_0x13dcba,_0x54b964);_0x50952e[_0x5bb4('0x96')]&&this['_model'][_0x5bb4('0x7a')](()=>{for(const _0x147bd9 of _0x50952e){const _0x3278c1=this[_0x5bb4('0x141')]['getSuggestionCallback'](_0x5bb4('0x16e'),_0x455202,_0x5bb4('0x13b'));this[_0x5bb4('0x12f')](()=>_0x3278c1([_0x147bd9],_0x578607,_0x43f765));}});for(const _0x181af5 of _0x22b9f3){let _0x4a4af9=null,_0x3d2b4b=_0x181af5[_0x5bb4('0xe1')],_0x5af05f=_0x181af5['end'];for(const {suggestion:_0x263c09,meta:_0x13acd8}of this[_0x5bb4('0xcf')](_0x181af5,'formatInline')){if(!_0x13acd8[_0x5bb4('0x14')])continue;if(_0x263c09[_0x5bb4('0x97')]!=_0x455202)continue;if(!Gt(_0x263c09,_0x43f765))continue;const _0x59bfc5=_0x263c09[_0x5bb4('0x157')]();if(_0x59bfc5['containsRange'](_0x181af5,!0x0))return null;_0x3d2b4b=_0x3d2b4b[_0x5bb4('0x75')](_0x59bfc5[_0x5bb4('0xe1')])?_0x3d2b4b:_0x59bfc5['start'],_0x5af05f=_0x5af05f[_0x5bb4('0x133')](_0x59bfc5['end'])?_0x5af05f:_0x59bfc5['end'],_0x4a4af9?_0x59bfc5['start'][_0x5bb4('0x75')](_0x4a4af9[_0x5bb4('0x157')]()[_0x5bb4('0xe1')])?(_0x4a4af9[_0x5bb4('0xd6')](),_0x4a4af9=_0x263c09):_0x263c09[_0x5bb4('0xd6')]():_0x4a4af9=_0x263c09;}const _0x53fa68=this[_0x5bb4('0x1e')][_0x5bb4('0x23')](_0x3d2b4b,_0x5af05f);if(_0x4a4af9)this['_setSuggestionRange'](_0x4a4af9,_0x53fa68);else{const _0x3727b0=_0x4f0212(),_0x13a1b8=_0x2814c0['id'];this[_0x5bb4('0x27')]({'id':_0x3727b0,'type':_0x5bb4('0xe4')+_0x455202,'data':_0x578607,'createdAt':new Date(),'authorId':_0x13a1b8,'attributes':_0x43f765}),this[_0x5bb4('0x24')](_0x5bb4('0xe4')+_0x455202,_0x3727b0,_0x13a1b8,_0x53fa68);}}return null;}[_0x5bb4('0x80')](_0x7c3d3e,_0x5dcaec,_0x10bc1a=[],_0x3f8425=null,_0x30971b={}){_0x5dcaec[_0x5bb4('0x8a')]||(_0x5dcaec[_0x5bb4('0x8a')]=_0x5dcaec[_0x5bb4('0x10e')]),_0x5dcaec[_0x5bb4('0x10b')]=_0x7c3d3e['is'](_0x5bb4('0x1d')),_0x3f8425=_0x3f8425||Rt(_0x5dcaec);const _0xa943c6=_0x10bc1a[_0x5bb4('0x20')](_0x4342ca=>Ut(_0x4342ca,this[_0x5bb4('0x1e')])),_0x5e7247=_0x7c3d3e['is'](_0x5bb4('0x1d'))?_0x7c3d3e:Ut(_0x7c3d3e,this[_0x5bb4('0x1e')]);if(_0x5bb4('0xfe')===this[_0x5bb4('0x4b')]){const _0x124688=this[_0x5bb4('0x141')][_0x5bb4('0x94')]('formatBlock',_0x3f8425,_0x5bb4('0x13b'));return this[_0x5bb4('0x12f')](()=>_0x124688([_0x5e7247],_0x5dcaec,_0x30971b)),null;}_0xa943c6['push'](_0x5e7247);let _0x2ddd79=!0x0;for(const _0x46370b of _0xa943c6)if(!this[_0x5bb4('0x55')](_0x46370b)){_0x2ddd79=!0x1;break;}if(_0x2ddd79&&'always'!==this[_0x5bb4('0x4b')]){const _0xc526d9=this[_0x5bb4('0x141')][_0x5bb4('0x94')]('formatBlock',_0x3f8425,_0x5bb4('0x13b'));return this[_0x5bb4('0x12f')](()=>_0xc526d9([_0x5e7247],_0x5dcaec,_0x30971b)),null;}let _0x230bdd=null,_0x15fe5e=_0x5e7247[_0x5bb4('0xe1')],_0x34402b=_0x5e7247[_0x5bb4('0xc3')];for(const {suggestion:_0x1ef477,meta:_0x547ea2}of this[_0x5bb4('0xcf')](_0x5e7247,_0x5bb4('0x4d'))){if(!_0x547ea2['isOwn'])continue;if(_0x547ea2['isNextTo']||_0x547ea2[_0x5bb4('0x14e')]||_0x547ea2['isInsideObject'])continue;if(_0x1ef477[_0x5bb4('0x43')][_0x5bb4('0x8a')]!=_0x5dcaec[_0x5bb4('0x8a')])continue;if(!Gt(_0x1ef477,_0x30971b))continue;const _0x540c4b=_0x1ef477[_0x5bb4('0x157')]();if(_0x1ef477[_0x5bb4('0x97')]==_0x3f8425){if(_0x540c4b[_0x5bb4('0x28')](_0x5e7247,!0x0))return null;_0x15fe5e=_0x15fe5e[_0x5bb4('0x75')](_0x540c4b[_0x5bb4('0xe1')])?_0x15fe5e:_0x540c4b['start'],_0x34402b=_0x34402b[_0x5bb4('0x133')](_0x540c4b[_0x5bb4('0xc3')])?_0x34402b:_0x540c4b['end'],_0x230bdd?_0x540c4b[_0x5bb4('0xe1')][_0x5bb4('0x75')](_0x230bdd[_0x5bb4('0x157')]()[_0x5bb4('0xe1')])?(_0x230bdd[_0x5bb4('0xd6')](),_0x230bdd=_0x1ef477):_0x1ef477['removeMarkers']():_0x230bdd=_0x1ef477;}else{const _0x7d7d4a=_0x5e7247[_0x5bb4('0x125')](_0x540c4b);this[_0x5bb4('0x12c')](_0x1ef477,_0x7d7d4a);}}const _0x5a42e1=this[_0x5bb4('0x93')]['plugins']['get'](_0x5bb4('0x9'))['me'],_0x1f2548=_0x4f0212(),_0x29c66a=_0x5a42e1['id'];if(_0x230bdd)return this[_0x5bb4('0x14a')](_0x230bdd,this[_0x5bb4('0x1e')][_0x5bb4('0x23')](_0x15fe5e,_0x34402b)),_0x230bdd;{const _0x39870c=this['_setSuggestionData']({'id':_0x1f2548,'type':'formatBlock:'+_0x3f8425,'data':_0x5dcaec,'createdAt':new Date(),'authorId':_0x29c66a,'attributes':_0x30971b});return this['_addSuggestionMarker'](_0x5bb4('0x47')+_0x3f8425,_0x1f2548,_0x29c66a,this[_0x5bb4('0x1e')]['createRange'](_0x15fe5e,_0x34402b)),_0x39870c;}}[_0x5bb4('0xcc')](_0x4950e5,_0x5748cd,_0x173a42=[],_0x952aaf=null,_0x54bdb9={}){_0x5748cd['formatGroupId']||(_0x5748cd[_0x5bb4('0x8a')]=_0x5748cd[_0x5bb4('0x10e')]);const _0x5e6246=_0x4950e5[0x0];_0x5748cd['multipleBlocks']=_0x5e6246['is']('range'),_0x952aaf=_0x952aaf||Rt(_0x5748cd);const _0x3faffe=_0x173a42[_0x5bb4('0x20')](_0x27b4df=>Ut(_0x27b4df,this['_model'])),_0x5c2448=_0x5e6246['is']('range')?_0x4950e5:_0x4950e5[_0x5bb4('0x20')](_0x4eeac9=>Ut(_0x4eeac9,this[_0x5bb4('0x1e')]));if(_0x5bb4('0xfe')===this[_0x5bb4('0x4b')]){const _0x329b98=this[_0x5bb4('0x141')]['getSuggestionCallback'](_0x5bb4('0x4d'),_0x952aaf,'accept');return this[_0x5bb4('0x12f')](()=>_0x329b98(_0x5c2448,_0x5748cd,_0x54bdb9)),null;}_0x3faffe[_0x5bb4('0x6')](..._0x5c2448);let _0x2fe3ab=!0x0;for(const _0x1ca2b5 of _0x3faffe)if(!this[_0x5bb4('0x55')](_0x1ca2b5)){_0x2fe3ab=!0x1;break;}if(_0x2fe3ab&&'always'!==this['_trackFormatChanges']){const _0x134eea=this[_0x5bb4('0x141')]['getSuggestionCallback']('formatBlock',_0x952aaf,_0x5bb4('0x13b'));return this[_0x5bb4('0x12f')](()=>_0x134eea(_0x5c2448,_0x5748cd,_0x54bdb9)),null;}const _0x55ad54=this[_0x5bb4('0x93')]['plugins']['get'](_0x5bb4('0x9'))['me'];for(const _0x37cacb of this[_0x5bb4('0xef')]()){if(_0x37cacb[_0x5bb4('0x163')]['id']!=_0x55ad54['id'])continue;if('formatBlock'!=_0x37cacb[_0x5bb4('0xc1')]||_0x37cacb[_0x5bb4('0x43')][_0x5bb4('0x8a')]!=_0x5748cd['formatGroupId'])continue;if(!Gt(_0x37cacb,_0x54bdb9))continue;const _0x22f4f2=_0x37cacb['subType']==_0x952aaf;for(let _0x5c7141=0x0;_0x5c7141<_0x5c2448[_0x5bb4('0x96')];_0x5c7141++){const _0x2d75c9=_0x5c2448[_0x5c7141];for(const _0x5a284d of _0x37cacb[_0x5bb4('0x82')]()){const _0x17bcd8=_0x5a284d[_0x5bb4('0xfd')]();if(_0x2d75c9['isEqual'](_0x17bcd8)){_0x22f4f2?(_0x5c2448[_0x5bb4('0x108')](_0x5c7141,0x1),_0x5c7141--):_0x37cacb[_0x5bb4('0x8d')](_0x5a284d['name']);break;}}}}if(0x0==_0x5c2448[_0x5bb4('0x96')])return null;const _0x3d9ddf=this[_0x5bb4('0x141')][_0x5bb4('0x94')](_0x5bb4('0x4d'),_0x952aaf,_0x5bb4('0x71'));for(const _0x170bda of this[_0x5bb4('0xef')]())if(_0x170bda[_0x5bb4('0x163')]['id']==_0x55ad54['id']&&'formatBlock'==_0x170bda[_0x5bb4('0xc1')]&&_0x170bda[_0x5bb4('0x43')][_0x5bb4('0x8a')]==_0x5748cd['formatGroupId']&&_0x170bda['subType']==_0x952aaf&&Gt(_0x170bda,_0x54bdb9)&&(_0x3d9ddf(_0x170bda[_0x5bb4('0xd7')](),_0x5c2448)||_0x3d9ddf(_0x5c2448,_0x170bda['getRanges']()))){for(const _0x47a0d9 of _0x5c2448)_0x170bda[_0x5bb4('0x8c')](_0x47a0d9);return _0x170bda;}const _0x328aa1=_0x4f0212(),_0x38e107=_0x55ad54['id'],_0x2eae48=_0x5bb4('0x47')+_0x952aaf,_0xca8d7a=this[_0x5bb4('0x27')]({'id':_0x328aa1,'type':_0x2eae48,'data':_0x5748cd,'createdAt':new Date(),'authorId':_0x38e107,'attributes':_0x54bdb9});for(const _0x43aa45 of _0x5c2448)this['_addSuggestionMarker'](_0x2eae48,_0x328aa1,_0x38e107,_0x43aa45,_0x1343f2[_0x5bb4('0x15b')]());return _0xca8d7a;}[_0x5bb4('0x148')](_0x31adc3,_0x44b802=null,_0x116a0c={}){if(_0x31adc3['isCollapsed'])return null;const _0x11b8d4=this[_0x5bb4('0x93')]['plugins']['get'](_0x5bb4('0x9'))['me'],_0x381535=new _0x87e607(_0x31adc3['start'],_0x31adc3['end']);for(const {suggestion:_0x44ff34,meta:_0x4d5a31}of this['_findSuggestions'](_0x381535,'insertion'))if(_0x4d5a31['isOwn']&&!_0x4d5a31[_0x5bb4('0x2f')]){if(_0x44ff34['isMultiRange']){const _0x24a8e5=_0x44ff34[_0x5bb4('0xd7')]()[_0x5bb4('0x5c')](_0x5cedb8=>_0x5bb4('0x7d')!=_0x5cedb8[_0x5bb4('0xb0')][_0x5bb4('0x3c')]);_0x24a8e5['every'](_0x2c547a=>_0x381535[_0x5bb4('0x28')](_0x2c547a,!0x0))&&_0x44ff34[_0x5bb4('0xbf')]();if(_0x24a8e5['some'](_0x5631e0=>_0x5631e0[_0x5bb4('0x28')](_0x381535,!0x0))){const _0x4bf5be=this['_suggestionFactory'][_0x5bb4('0x94')](_0x5bb4('0x85'),_0x44b802,'accept');return this[_0x5bb4('0x12f')](()=>_0x4bf5be([_0x381535],null,_0x116a0c)),null;}}else{const _0x58b457=_0x381535['getIntersection'](_0x44ff34['getFirstRange']());null!==_0x58b457&&_0x44ff34[_0x5bb4('0x110')]([_0x58b457],null,_0x116a0c);}}if(_0x381535[_0x5bb4('0x5e')](),_0x381535[_0x5bb4('0x7c')]||_0x5bb4('0x7d')==_0x381535[_0x5bb4('0xb0')][_0x5bb4('0x3c')])return null;let _0x17946b=null,_0x533785=_0x381535[_0x5bb4('0xe1')],_0x159acb=_0x381535[_0x5bb4('0xc3')];const _0x4465b0=this[_0x5bb4('0xcf')](_0x381535,_0x5bb4('0x85'));for(const {suggestion:_0x21ec97,meta:_0x83a5da}of _0x4465b0){const _0x437fd5=this[_0x5bb4('0x1e')][_0x5bb4('0x23')](_0x533785,_0x159acb);if(_0x83a5da[_0x5bb4('0x14')]&&(this['_mergeNestedSuggestions']||!_0x83a5da[_0x5bb4('0x14e')]&&!_0x83a5da['isInsideObject'])){if(_0x21ec97[_0x5bb4('0x42')]){if(!Gt(_0x21ec97,_0x116a0c))continue;let _0xedf560=!0x0;for(const _0x4631a8 of _0x21ec97[_0x5bb4('0xd7')]()){if(_0x4631a8[_0x5bb4('0x28')](_0x437fd5,!0x0))return _0x21ec97;_0x437fd5[_0x5bb4('0x28')](_0x4631a8)||(_0xedf560=!0x1);}_0xedf560&&_0x21ec97[_0x5bb4('0xbf')]();}else{const _0x11e8dd=_0x21ec97[_0x5bb4('0x157')]();if(_0x11e8dd[_0x5bb4('0x28')](_0x437fd5,!0x0))return _0x21ec97;if(!Gt(_0x21ec97,_0x116a0c)){_0x437fd5[_0x5bb4('0x28')](_0x11e8dd)?_0x21ec97[_0x5bb4('0xd6')]():_0x11e8dd[_0x5bb4('0x9f')](_0x533785)?_0x533785=_0x11e8dd[_0x5bb4('0xc3')]:_0x11e8dd['containsPosition'](_0x159acb)&&(_0x159acb=_0x11e8dd[_0x5bb4('0xe1')]);continue;}_0x533785=_0x533785[_0x5bb4('0x75')](_0x11e8dd['start'])?_0x533785:_0x11e8dd[_0x5bb4('0xe1')],_0x159acb=_0x159acb[_0x5bb4('0x133')](_0x11e8dd[_0x5bb4('0xc3')])?_0x159acb:_0x11e8dd[_0x5bb4('0xc3')],_0x116a0c=Object[_0x5bb4('0x88')]({},_0x21ec97[_0x5bb4('0xd8')]),_0x17946b?_0x11e8dd[_0x5bb4('0xe1')][_0x5bb4('0x75')](_0x17946b['getFirstRange']()[_0x5bb4('0xe1')])?(_0x17946b[_0x5bb4('0xd6')](),_0x17946b=_0x21ec97):_0x21ec97[_0x5bb4('0xd6')]():_0x17946b=_0x21ec97;}}}if(_0x17946b)return this[_0x5bb4('0x14a')](_0x17946b,this['_model']['createRange'](_0x533785,_0x159acb)),_0x17946b;{const _0x4a3d1a=_0x4f0212(),_0x5036b1=this[_0x5bb4('0x1e')][_0x5bb4('0x23')](_0x533785,_0x159acb),_0x561fd4=_0x11b8d4['id'],_0x3ec3e4=_0x44b802?'deletion:'+_0x44b802:'deletion',_0x1784dc=this[_0x5bb4('0x27')]({'id':_0x4a3d1a,'type':_0x3ec3e4,'createdAt':new Date(),'authorId':_0x561fd4,'attributes':_0x116a0c});return this[_0x5bb4('0x24')](_0x3ec3e4,_0x4a3d1a,_0x561fd4,_0x5036b1),_0x1784dc;}}[_0x5bb4('0x11')](_0x2b51fa,_0x45006f=_0x5bb4('0x123'),_0x872302={}){const _0x53bb82=this['editor'][_0x5bb4('0x151')][_0x5bb4('0x143')]('Users')['me'],_0x4754d9=_0x2b51fa[_0x5bb4('0x20')](_0x57c30d=>new _0x87e607(_0x57c30d['start'],_0x57c30d['end'])),_0x5712c7=new Set();for(const {suggestion:_0x3c812d,meta:_0xfc1751}of this[_0x5bb4('0xcf')](_0x4754d9,_0x5bb4('0x98')))_0xfc1751[_0x5bb4('0x14')]&&!_0xfc1751[_0x5bb4('0x2f')]&&_0x5712c7[_0x5bb4('0x4e')](_0x3c812d);for(const _0x36c742 of _0x5712c7)if(_0x36c742[_0x5bb4('0x42')]){const _0x5032d1=_0x36c742[_0x5bb4('0xd7')]();(!_0x36c742['attributes']||!_0x36c742[_0x5bb4('0xd8')][_0x5bb4('0xb')])&&(_0x5032d1[_0x5bb4('0x12e')](_0x15cc56=>_0x4754d9[_0x5bb4('0x38')](_0x15665a=>_0x15665a[_0x5bb4('0x28')](_0x15cc56,!0x0)))&&_0x36c742['discard']());if(_0x4754d9[_0x5bb4('0x12e')](_0x28adb7=>_0x5032d1[_0x5bb4('0x38')](_0x422fa6=>_0x422fa6[_0x5bb4('0x28')](_0x28adb7,!0x0)))){const _0x1a8b6a=this[_0x5bb4('0x141')][_0x5bb4('0x94')](_0x5bb4('0x85'),_0x45006f,'accept');return this[_0x5bb4('0x12f')](()=>_0x1a8b6a(_0x2b51fa,null,_0x872302)),null;}}else{const _0x2aea55=_0x36c742[_0x5bb4('0x157')]();_0x4754d9[_0x5bb4('0x38')](_0xef626e=>_0xef626e[_0x5bb4('0x28')](_0x2aea55,!0x0))&&_0x36c742['discard']();if(_0x4754d9[_0x5bb4('0x12e')](_0x3647fc=>_0x2aea55[_0x5bb4('0x28')](_0x3647fc,!0x0))){const _0xfaa0af=this[_0x5bb4('0x141')][_0x5bb4('0x94')](_0x5bb4('0x85'),_0x45006f,_0x5bb4('0x13b'));return this[_0x5bb4('0x12f')](()=>_0xfaa0af(_0x4754d9,null,_0x872302)),null;}}const _0x48cb41=this[_0x5bb4('0x141')]['getSuggestionCallback']('deletion',_0x45006f,_0x5bb4('0x71'));let _0x589623=null;for(const _0x25951e of this['getSuggestions']())if(_0x25951e[_0x5bb4('0x163')]['id']==_0x53bb82['id']&&_0x25951e[_0x5bb4('0x5d')]&&_0x5bb4('0x85')==_0x25951e['type']&&_0x25951e[_0x5bb4('0x97')]==_0x45006f&&Gt(_0x25951e,_0x872302)&&(_0x48cb41(_0x25951e['getRanges'](),_0x4754d9)||_0x48cb41(_0x4754d9,_0x25951e[_0x5bb4('0xd7')]()))){if(_0x589623){if(_0x25951e[_0x5bb4('0x159')]&&_0x25951e['commentThread'][_0x5bb4('0x96')])continue;for(const _0x1d9105 of _0x25951e[_0x5bb4('0xd7')]())_0x589623[_0x5bb4('0x129')](_0x1d9105)||_0x589623[_0x5bb4('0x8c')](_0x1d9105);_0x25951e[_0x5bb4('0xd6')]();}else{_0x589623=_0x25951e;for(const _0x767e07 of _0x4754d9)_0x25951e[_0x5bb4('0x129')](_0x767e07)||_0x25951e['addRange'](_0x767e07);}}if(_0x589623)return _0x589623;_0x5712c7['clear']();for(const {suggestion:_0x2ff5a2,meta:_0x46c823}of this['_findSuggestions'](_0x4754d9,_0x5bb4('0x85')))_0x46c823[_0x5bb4('0x14')]&&(this[_0x5bb4('0xc8')]||!_0x46c823[_0x5bb4('0x14e')]&&!_0x46c823['isInsideObject'])&&Gt(_0x2ff5a2,_0x872302)&&_0x5712c7[_0x5bb4('0x4e')](_0x2ff5a2);for(const _0x1fc5c2 of _0x5712c7){const _0xde55cd=_0x1fc5c2['getRanges']();if(!_0x872302||!_0x872302[_0x5bb4('0xb')]){if(_0x4754d9['every'](_0x2b0292=>_0xde55cd['some'](_0x54357c=>_0x54357c['containsRange'](_0x2b0292,!0x0))))return _0x1fc5c2;}(!_0x1fc5c2['attributes']||!_0x1fc5c2[_0x5bb4('0xd8')][_0x5bb4('0xb')])&&(_0xde55cd[_0x5bb4('0x12e')](_0x425e93=>_0x4754d9['some'](_0x12372f=>_0x12372f[_0x5bb4('0x28')](_0x425e93,!0x0)))&&_0x1fc5c2[_0x5bb4('0xbf')]());}const _0x1bfee2=_0x4f0212(),_0x21aec4=_0x53bb82['id'],_0x1ef260=_0x5bb4('0x8f')+_0x45006f,_0x4777b1=this[_0x5bb4('0x27')]({'id':_0x1bfee2,'type':_0x1ef260,'createdAt':new Date(),'authorId':_0x21aec4,'attributes':_0x872302});for(const _0xe98f80 of _0x4754d9)_0xe98f80[_0x5bb4('0x5e')](),_0xe98f80[_0x5bb4('0x7c')]||'$graveyard'==_0xe98f80[_0x5bb4('0xb0')][_0x5bb4('0x3c')]||this[_0x5bb4('0x24')](_0x1ef260,_0x1bfee2,_0x21aec4,_0xe98f80,_0x1343f2[_0x5bb4('0x15b')]());return _0x4777b1;}[_0x5bb4('0x12a')](_0x293413,_0x551a0b,_0x3f0f75,_0xdf24f6,_0x27d1c3){if(_0x293413['isCollapsed'])return[];if(_0x5bb4('0xfe')===this[_0x5bb4('0x4b')])return[];const _0xb3c8bb=this[_0x5bb4('0x93')][_0x5bb4('0x151')][_0x5bb4('0x143')](_0x5bb4('0x9'))['me']['id'],_0x5991f5=Array['from'](this['_suggestions'][_0x5bb4('0x62')]())[_0x5bb4('0x5c')](_0x18e977=>'attribute'==_0x18e977['type']&&_0x18e977[_0x5bb4('0x43')]['key']==_0x551a0b&&_0x18e977[_0x5bb4('0x129')](_0x293413));if(_0x5bb4('0x0')===this['_trackFormatChanges']){const _0x5ceef7=this['_findSuggestions'](_0x293413,_0x5bb4('0x98'))[_0x5bb4('0x5c')](({meta:_0x1b6617})=>_0x1b6617[_0x5bb4('0x14')]&&!_0x1b6617[_0x5bb4('0x9a')]&&!_0x1b6617[_0x5bb4('0x2f')])['map'](({suggestion:_0x463599})=>_0x463599);_0x5991f5[_0x5bb4('0x49')](..._0x5ceef7);}const _0x47089b=new Map([[_0x293413,_0x3f0f75]]);for(const _0x3129c0 of _0x5991f5){const _0x20595a=_0x5bb4('0x160')==_0x3129c0[_0x5bb4('0xc1')]?_0x3129c0[_0x5bb4('0x43')][_0x5bb4('0xc5')]:void 0x0,_0x1acf0a=_0x3129c0['getFirstRange'](),_0x4db521=Array[_0x5bb4('0x1')](_0x47089b['keys']())['find'](_0x3b9451=>_0x3b9451[_0x5bb4('0x104')](_0x1acf0a));if(!_0x4db521)continue;const _0x21cd69=_0x4db521['getDifference'](_0x1acf0a);this[_0x5bb4('0x7f')](_0x551a0b)&&_0x5bb4('0x98')==_0x3129c0[_0x5bb4('0xc1')]&&0x0!=_0x21cd69[_0x5bb4('0x96')]||(_0x47089b[_0x5bb4('0xbc')](_0x4db521),_0x21cd69[_0x5bb4('0xea')](_0x24dfa3=>{_0x47089b[_0x5bb4('0xba')](_0x24dfa3,_0x3f0f75);}),'insertion'!=_0x3129c0[_0x5bb4('0xc1')]&&_0x20595a!=_0xdf24f6&&_0x47089b['set'](_0x4db521[_0x5bb4('0x125')](_0x1acf0a),_0x20595a));}const _0x4a2cf3=[];for(const [_0x6ab091,_0x22b8cb]of _0x47089b){const _0x4bdd56=_0x4f0212(),_0x3c4c83={'key':_0x551a0b,'oldValue':_0x22b8cb,'newValue':_0xdf24f6};_0x551a0b[_0x5bb4('0x96')]>0x25&&console['warn'](_0x5bb4('0xdf'),{'key':_0x551a0b});const _0x5ffc0a=(_0x5bb4('0x1c')+(_0x551a0b+'|'+Rt({'newValue':_0xdf24f6})))[_0x5bb4('0x6b')](0x0,0x3c),_0x5cce9d=this[_0x5bb4('0x27')]({'id':_0x4bdd56,'type':_0x5ffc0a,'data':_0x3c4c83,'createdAt':new Date(),'authorId':_0xb3c8bb,'attributes':_0x27d1c3});_0x4a2cf3[_0x5bb4('0x6')](_0x5cce9d),this[_0x5bb4('0x24')](_0x5ffc0a,_0x4bdd56,_0xb3c8bb,_0x6ab091);}return _0x4a2cf3;}[_0x5bb4('0xe5')](_0x2761c3){this[_0x5bb4('0xdb')][_0x5bb4('0x4e')](_0x2761c3);}[_0x5bb4('0x136')](_0x24c6c9){this[_0x5bb4('0x9d')][_0x5bb4('0x4e')](_0x24c6c9);}[_0x5bb4('0x4c')](_0x170c0a,_0x12f12b=[],_0x318db5=[]){this['enableCommand'](_0x170c0a,(_0x316340,..._0x3b158c)=>{this[_0x5bb4('0x95')](()=>{_0x316340(..._0x3b158c);});});for(const _0x4d05f4 of _0x12f12b)this['_registerInlineAttribute'](_0x4d05f4);for(const _0x485519 of _0x318db5)this[_0x5bb4('0xe5')](_0x485519);}[_0x5bb4('0x14a')](_0x24633b,_0x21a610){const _0x3634b0=_0x24633b[_0x5bb4('0xe6')]();this[_0x5bb4('0x1e')]['change'](_0x5abb90=>{_0x5abb90[_0x5bb4('0x170')](_0x3634b0,{'range':_0x21a610});});}['_addThreadToSuggestion'](_0x52780f){const _0x1493b3=_0x52780f['id'],_0x6a037=this['editor']['config'][_0x5bb4('0x143')]('collaboration.channelId');this['_commentsRepository'][_0x5bb4('0x36')](_0x1493b3)||this[_0x5bb4('0xca')][_0x5bb4('0x1f')]({'channelId':_0x6a037,'threadId':_0x1493b3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5ea4cd=this[_0x5bb4('0xca')][_0x5bb4('0x117')](_0x1493b3);_0x5ea4cd[_0x5bb4('0x52')]('isRemovable'),_0x5ea4cd[_0x5bb4('0x142')]=!0x1,_0x52780f[_0x5bb4('0x159')]=_0x5ea4cd;}[_0x5bb4('0x17')](_0x5adb1e,_0x53950f,_0x4ffa75,_0x413a71){if(_0x5adb1e[_0x5bb4('0xc1')]!=_0x53950f||_0x5adb1e[_0x5bb4('0x97')]!=_0x4ffa75||_0x5adb1e[_0x5bb4('0x51')]['id']!=_0x413a71)throw this[_0x5bb4('0x93')][_0x5bb4('0xb1')](_0x5bb4('0x77')),new _0x426846(_0x5bb4('0x77'),this);}[_0x5bb4('0x12c')](_0x4df9d3,_0x5a34fc){const _0x388844=_0x4df9d3['getFirstRange']();if(_0x5a34fc[_0x5bb4('0x115')](_0x388844))_0x4df9d3[_0x5bb4('0xd6')]();else{if(_0x388844[_0x5bb4('0x28')](_0x5a34fc)){const _0x17b65f=this[_0x5bb4('0x1e')][_0x5bb4('0xb5')](_0x5a34fc[_0x5bb4('0xe1')]['nodeBefore'],_0x5bb4('0xc3'));this[_0x5bb4('0x14a')](_0x4df9d3,this[_0x5bb4('0x1e')]['createRange'](_0x388844[_0x5bb4('0xe1')],_0x17b65f));const _0x3631dd=_0x4f0212(),_0x326fa3=_0x4df9d3[_0x5bb4('0x51')]['id'],_0x1fc32e=_0x4df9d3[_0x5bb4('0xc1')]+':'+_0x4df9d3[_0x5bb4('0x97')];this[_0x5bb4('0x27')]({'id':_0x3631dd,'type':_0x1fc32e,'createdAt':new Date(),'authorId':_0x326fa3,'data':_0x4df9d3['data'],'attributes':_0x4df9d3[_0x5bb4('0xd8')]});const _0x1f66f5=this[_0x5bb4('0x1e')][_0x5bb4('0xb5')](_0x5a34fc['end'][_0x5bb4('0x9b')],'after'),_0x1396a6=this[_0x5bb4('0x1e')][_0x5bb4('0x23')](_0x1f66f5,_0x388844[_0x5bb4('0xc3')]);this['_addSuggestionMarker'](_0x1fc32e,_0x3631dd,_0x326fa3,_0x1396a6);}else{if(_0x388844['containsPosition'](_0x5a34fc[_0x5bb4('0xe1')])){const _0x141562=this['_model'][_0x5bb4('0xb5')](_0x5a34fc[_0x5bb4('0xe1')]['nodeBefore'],'end');this[_0x5bb4('0x14a')](_0x4df9d3,this[_0x5bb4('0x1e')][_0x5bb4('0x23')](_0x388844[_0x5bb4('0xe1')],_0x141562));}else{const _0x2ecc54=this[_0x5bb4('0x1e')][_0x5bb4('0xb5')](_0x5a34fc[_0x5bb4('0xc3')]['parent'],_0x5bb4('0x122'));this[_0x5bb4('0x14a')](_0x4df9d3,this[_0x5bb4('0x1e')]['createRange'](_0x2ecc54,_0x388844[_0x5bb4('0xc3')]));}}}}[_0x5bb4('0x55')](_0x38ccef){for(const {suggestion:_0xb1f3a1,meta:_0x378de2}of this['_findSuggestions'](_0x38ccef,'insertion')){if(!_0x378de2[_0x5bb4('0x14')])continue;const _0xc09ad=_0xb1f3a1[_0x5bb4('0xd7')]();for(const _0x12cd61 of _0xc09ad)if(!_0x38ccef['getDifference'](_0x12cd61)['length'])return!0x0;}return!0x1;}[_0x5bb4('0x150')](_0x5ade1d){const _0x4c8b81=this[_0x5bb4('0x93')][_0x5bb4('0x151')][_0x5bb4('0x143')](_0x5bb4('0x9'))[_0x5bb4('0x105')](_0x5ade1d);if(!_0x4c8b81)throw new _0x426846('track-changes-user-not-found',this);return _0x4c8b81;}['_getExternalAuthor'](_0x32603e){const _0x4f9474=this[_0x5bb4('0x93')]['plugins']['get'](_0x5bb4('0x9')),_0x5ee7be=_0x457066(_0x5bb4('0x12')+_0x32603e),_0x2b323a=_0x4f9474[_0x5bb4('0x105')](_0x5ee7be);return _0x2b323a||_0x4f9474['addUser']({'id':_0x5ee7be,'name':_0x32603e});}[_0x5bb4('0x8')](_0x2920ee,_0x3f30da,_0x16a551,_0x141b55,_0x7d57d1){const _0x1651ab=this[_0x5bb4('0x150')](_0x141b55),_0x27d765=this[_0x5bb4('0x141')][_0x5bb4('0x63')](_0x2920ee,_0x3f30da,_0x16a551,_0x1651ab,_0x7d57d1,_0x54cd20=>this['_updateSuggestionData'](_0x16a551,{'attributes':_0x54cd20}));return this['listenTo'](_0x27d765,'accept',()=>{this[_0x5bb4('0x84')](_0x16a551,{'state':'accepted'});},{'priority':_0x5bb4('0x8b')}),this[_0x5bb4('0x22')](_0x27d765,_0x5bb4('0xbf'),()=>{this[_0x5bb4('0x84')](_0x16a551,{'state':_0x5bb4('0x7e')});},{'priority':_0x5bb4('0x8b')}),this[_0x5bb4('0x44')][_0x5bb4('0xba')](_0x16a551,_0x27d765),this[_0x5bb4('0xf3')][_0x5bb4('0xba')](_0x27d765,_0x5bb4('0x37')),_0x27d765;}[_0x5bb4('0xe2')](_0x2f1e9f){const _0x1cd79f=_0x2f1e9f[_0x5bb4('0xaf')](':');return{'group':_0x1cd79f[0x0],'type':_0x1cd79f[0x1],'subType':_0x1cd79f['length']>=0x5?_0x1cd79f[0x2]:null,'id':_0x1cd79f[_0x5bb4('0x96')]<0x5?_0x1cd79f[0x2]:_0x1cd79f[0x3],'authorId':_0x1cd79f[_0x5bb4('0x96')]<0x5?_0x1cd79f[0x3]:_0x1cd79f[0x4],'markerCount':0x6==_0x1cd79f[_0x5bb4('0x96')]?_0x1cd79f[0x5]:null};}['_breakSuggestionMarker'](_0x4b4447,_0x1f607b,_0x52fa9f){const _0x142c33=_0x4b4447[_0x5bb4('0x157')](),_0x58b248=_0x142c33[_0x5bb4('0xe1')],_0x19d02c=_0x142c33[_0x5bb4('0xc3')];this[_0x5bb4('0x14a')](_0x4b4447,this['_model'][_0x5bb4('0x23')](_0x58b248,_0x1f607b));const _0x42b7c6=_0x4f0212(),_0x14867f=_0x4b4447[_0x5bb4('0x51')]['id'],_0x204bf7=_0x4b4447[_0x5bb4('0xc1')]+(_0x4b4447['subType']?':'+_0x4b4447[_0x5bb4('0x97')]:'');this['_setSuggestionData']({'id':_0x42b7c6,'type':_0x204bf7,'createdAt':new Date(),'authorId':_0x14867f,'originalSuggestionId':_0x4b4447['id'],'attributes':_0x4b4447['attributes'],'data':_0x4b4447[_0x5bb4('0x43')]});const _0x1a89fa=Pt(_0x4b4447);(_0x5bb4('0x4d')==_0x4b4447[_0x5bb4('0xc1')]||_0x1a89fa&&this[_0x5bb4('0x7f')](_0x1a89fa))&&(_0x52fa9f=this[_0x5bb4('0x1e')][_0x5bb4('0x111')](_0x52fa9f[_0x5bb4('0x9b')])),this['_addSuggestionMarker'](_0x204bf7,_0x42b7c6,_0x14867f,this[_0x5bb4('0x1e')]['createRange'](_0x52fa9f,_0x19d02c));}[_0x5bb4('0xcf')](_0x1fc05d,_0x136523=null){const _0x3a0e32=[],_0x392ce8=this[_0x5bb4('0x93')][_0x5bb4('0x151')][_0x5bb4('0x143')](_0x5bb4('0x9'))['me'];Array[_0x5bb4('0xb7')](_0x1fc05d)||(_0x1fc05d=[_0x1fc05d]);for(const _0x5d89a0 of this['getSuggestions']()){if(!_0x5d89a0[_0x5bb4('0x5d')])continue;if(_0x136523&&_0x5d89a0[_0x5bb4('0xc1')]!=_0x136523)continue;let _0x215982=!0x1;for(const _0x5d8ddb of _0x5d89a0[_0x5bb4('0xd7')]()){for(const _0x4cd1c4 of _0x1fc05d){const _0x1fa532=_0x4cd1c4[_0x5bb4('0xe1')][_0x5bb4('0x115')](_0x5d8ddb[_0x5bb4('0xc3')])||_0x4cd1c4[_0x5bb4('0xc3')][_0x5bb4('0x115')](_0x5d8ddb[_0x5bb4('0xe1')]);if(_0x1fa532||_0x4cd1c4[_0x5bb4('0x125')](_0x5d8ddb)){const _0x55698f=_0x4cd1c4[_0x5bb4('0x28')](_0x5d8ddb)&&Tt(this[_0x5bb4('0x1e')][_0x5bb4('0x118')],_0x5d8ddb[_0x5bb4('0xe1')],_0x4cd1c4),_0x4d4ad8=_0x5d8ddb[_0x5bb4('0x28')](_0x4cd1c4)&&Tt(this[_0x5bb4('0x1e')]['schema'],_0x4cd1c4[_0x5bb4('0xe1')],_0x5d8ddb);_0x3a0e32[_0x5bb4('0x6')]({'suggestion':_0x5d89a0,'meta':{'isOwn':_0x392ce8==_0x5d89a0['author'],'isNextTo':_0x1fa532,'isInsideObject':_0x55698f,'containsRangeInObject':_0x4d4ad8}}),_0x215982=!0x0;break;}}if(_0x215982)break;}}return _0x3a0e32;}[_0x5bb4('0x24')](_0x4e62b1,_0x4fe23a,_0x19fe75,_0x3e5fff,_0x462e15){this[_0x5bb4('0x1e')][_0x5bb4('0x7a')](_0x423808=>{let _0x1a45a5=_0x5bb4('0xec')+_0x4e62b1+':'+_0x4fe23a+':'+_0x19fe75;_0x462e15&&(_0x1a45a5=_0x1a45a5+':'+_0x462e15),_0x423808[_0x5bb4('0x72')](_0x1a45a5,{'range':_0x3e5fff,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5bb4('0x10c')](_0x480245){const _0x523f7b=_0x480245[_0x5bb4('0x29')],_0x165a01=_0x480245[_0x5bb4('0x120')];_0x480245['previous']=null,_0x480245[_0x5bb4('0x120')]=null,null!=_0x523f7b&&(_0x523f7b[_0x5bb4('0x120')]=_0x165a01),null!=_0x165a01&&(_0x165a01['previous']=_0x523f7b),_0x5bb4('0xb6')==this[_0x5bb4('0xf3')][_0x5bb4('0x143')](_0x480245)&&(this[_0x5bb4('0xf3')][_0x5bb4('0xba')](_0x480245,_0x5bb4('0x100')),this[_0x5bb4('0x15c')]('suggestionUnloaded',_0x480245,_0x523f7b,_0x165a01));}[_0x5bb4('0x27')](_0x576094){const _0x1c7e10=_0x576094['id'],_0x6b0b21=this[_0x5bb4('0xd9')](_0x576094);if(this[_0x5bb4('0x65')]&&this[_0x5bb4('0x65')][_0x5bb4('0x140')]){const _0x41738c=this[_0x5bb4('0x93')][_0x5bb4('0x151')][_0x5bb4('0x143')]('PendingActions'),_0x37d347=_0x6b0b21[_0x5bb4('0xf9')],_0x262a54=_0x6b0b21['subType']?_0x6b0b21[_0x5bb4('0xc1')]+':'+_0x6b0b21[_0x5bb4('0x97')]:_0x6b0b21['type'],_0xdc4fbe=this[_0x5bb4('0x93')][_0x5bb4('0xc')],_0x385bbc=_0x41738c[_0x5bb4('0x4e')](_0x1f39dc(_0xdc4fbe,'PENDING_ACTION_SUGGESTION')),_0x59e344={'id':_0x1c7e10,'type':_0x262a54,'hasComments':_0x37d347,'data':_0x576094[_0x5bb4('0x43')]||null,'originalSuggestionId':_0x576094[_0x5bb4('0x171')]||null,'attributes':_0x6b0b21[_0x5bb4('0xd8')]};this[_0x5bb4('0x65')]['addSuggestion'](_0x59e344)['then'](_0x122e1d=>{_0x6b0b21['_saved']=!0x0,_0x41738c['remove'](_0x385bbc),_0x122e1d&&_0x122e1d[_0x5bb4('0x1a')]&&(this['_suggestions']['get'](_0x1c7e10)['createdAt']=_0x122e1d[_0x5bb4('0x1a')]);})['catch'](_0x45cc93=>{throw _0x841a3(_0x5bb4('0x13f')),this[_0x5bb4('0x93')][_0x5bb4('0x12d')][_0x5bb4('0x30')]({'isUndoable':!0x1},()=>{_0x6b0b21[_0x5bb4('0xbf')]();}),_0x6b0b21['stopListening'](),this['_suggestions'][_0x5bb4('0xbc')](_0x6b0b21['id']),this[_0x5bb4('0xf3')][_0x5bb4('0xbc')](_0x6b0b21),_0x45cc93;});}return _0x6b0b21;}[_0x5bb4('0x7f')](_0x5c648b){return this[_0x5bb4('0xdb')][_0x5bb4('0x135')](_0x5c648b);}[_0x5bb4('0x84')](_0xe6f03a,_0x4f7ca0){const _0x901d44=this['editor'][_0x5bb4('0x151')]['get']('PendingActions'),_0x5aeba4=this[_0x5bb4('0x2e')](_0xe6f03a);if(this[_0x5bb4('0x65')]&&this[_0x5bb4('0x65')][_0x5bb4('0xa')]){if(_0x5aeba4[_0x5bb4('0x74')]){const _0x28616a=_0x901d44[_0x5bb4('0x4e')](_0x1f39dc(this[_0x5bb4('0x93')][_0x5bb4('0xc')],_0x5bb4('0xa7')));this['_adapter'][_0x5bb4('0xa')](_0xe6f03a,_0x4f7ca0)['then'](()=>{_0x901d44[_0x5bb4('0x18')](_0x28616a);});}else _0x5aeba4['on'](_0x5bb4('0x14b'),()=>{this['_updateSuggestionData'](_0xe6f03a,_0x4f7ca0);});}}[_0x5bb4('0x40')](_0x3ec72a){if(!this[_0x5bb4('0x65')]||!this[_0x5bb4('0x65')][_0x5bb4('0x2e')])throw new _0x426846(_0x5bb4('0x10f'),this);return this[_0x5bb4('0x65')][_0x5bb4('0x2e')](_0x3ec72a);}[_0x5bb4('0x14c')](_0x37192d){const {id:_0x5b49a5,type:_0x3b1fdb,subType:_0x2e6205,authorId:_0x428e78}=this[_0x5bb4('0xe2')](_0x37192d),_0x33fe24=this['_suggestions'][_0x5bb4('0x143')](_0x5b49a5)||this[_0x5bb4('0x8')](_0x3b1fdb,_0x2e6205,_0x5b49a5,_0x428e78,{});switch(this['_checkSuggestionCorrectness'](_0x33fe24,_0x3b1fdb,_0x2e6205,_0x428e78),this[_0x5bb4('0xf3')][_0x5bb4('0x143')](_0x33fe24)){case _0x5bb4('0x37'):this[_0x5bb4('0x40')](_0x5b49a5)[_0x5bb4('0xcb')](_0x3cbd7a=>{let _0x254b9e=Promise[_0x5bb4('0xf4')]();_0x3cbd7a[_0x5bb4('0xf9')]&&(_0x254b9e=this['_commentsRepository']['fetchCommentThread']({'channelId':this[_0x5bb4('0x93')][_0x5bb4('0xdc')][_0x5bb4('0x143')]('collaboration.channelId'),'threadId':_0x5b49a5})),_0x254b9e[_0x5bb4('0xcb')](()=>{this[_0x5bb4('0xd9')](_0x3cbd7a)[_0x5bb4('0x74')]=!0x0;});}),this[_0x5bb4('0xf3')][_0x5bb4('0xba')](_0x33fe24,_0x5bb4('0xcd'));break;case'removed':this[_0x5bb4('0x84')](_0x5b49a5,{'state':_0x5bb4('0xf6')});case _0x5bb4('0x61'):this[_0x5bb4('0xf3')][_0x5bb4('0xba')](_0x33fe24,_0x5bb4('0xb6')),this['fire'](_0x5bb4('0xc9'),_0x33fe24);break;case _0x5bb4('0xb6'):this[_0x5bb4('0x15c')](_0x5bb4('0x79'),_0x33fe24);}return _0x33fe24[_0x5bb4('0xe0')](_0x37192d),_0x33fe24;}[_0x5bb4('0x8e')](_0x34530c){const _0x4ab635=Array[_0x5bb4('0x1')](_0x34530c),_0x5a51d9=_0x4ab635[_0x5bb4('0x5c')](_0x39cb82=>_0x5bb4('0x160')==_0x39cb82[_0x5bb4('0xc1')]);this['_refreshAttributeSuggestionsChain'](_0x5a51d9);const _0x508e46=_0x4ab635['filter'](_0x3ffe01=>!_0x3ffe01[_0x5bb4('0x42')]&&'attribute'!=_0x3ffe01[_0x5bb4('0xc1')]),_0x142cf8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x246f9c=>!_0x246f9c[_0x5bb4('0x42')]&&_0x5bb4('0x160')!=_0x246f9c[_0x5bb4('0xc1')]),_0x458c87=_0x142cf8['filter'](_0x58d6c7=>!_0x34530c['has'](_0x58d6c7)),_0xb39b26=new Map(_0x142cf8[_0x5bb4('0x20')](_0x4b922c=>[_0x4b922c,this[_0x5bb4('0x141')][_0x5bb4('0x94')](_0x4b922c[_0x5bb4('0xc1')],_0x4b922c[_0x5bb4('0x97')],_0x5bb4('0xd5'))])),_0x2fa6f7=new Map(_0x142cf8[_0x5bb4('0x20')](_0x2d375c=>[_0x2d375c,_0x2d375c[_0x5bb4('0x157')]()])),_0x23e7e0=new Set(),_0x47e4d9=new Set();for(let _0x50833a=0x0;_0x50833a<_0x508e46[_0x5bb4('0x96')];_0x50833a++)_0x4c59e2(_0x508e46[_0x50833a],_0x508e46,_0x50833a+0x1);for(let _0x49a6dc=0x0;_0x49a6dc<_0x508e46[_0x5bb4('0x96')];_0x49a6dc++)_0x4c59e2(_0x508e46[_0x49a6dc],_0x458c87,0x0);const _0x547e9a=new Set();for(let _0x25e297=0x0;_0x25e297<_0x508e46[_0x5bb4('0x96')];_0x25e297++){const _0x3b0f0d=_0x508e46[_0x25e297];!_0x47e4d9[_0x5bb4('0x135')](_0x3b0f0d)&&_0x3b0f0d[_0x5bb4('0x29')]&&(_0x547e9a[_0x5bb4('0x4e')](_0x3b0f0d[_0x5bb4('0x29')]),_0x3b0f0d[_0x5bb4('0x29')][_0x5bb4('0x120')]===_0x3b0f0d&&(_0x3b0f0d[_0x5bb4('0x29')][_0x5bb4('0x120')]=null),_0x3b0f0d[_0x5bb4('0x29')]=null),!_0x23e7e0[_0x5bb4('0x135')](_0x3b0f0d)&&_0x3b0f0d[_0x5bb4('0x120')]&&(_0x547e9a[_0x5bb4('0x4e')](_0x3b0f0d[_0x5bb4('0x120')]),_0x3b0f0d['next']['previous']===_0x3b0f0d&&(_0x3b0f0d['next'][_0x5bb4('0x29')]=null),_0x3b0f0d['next']=null);}function _0x4c59e2(_0x5107bc,_0x263863,_0x11a99c){for(let _0x40ca2d=_0x11a99c;_0x40ca2d<_0x263863[_0x5bb4('0x96')];_0x40ca2d++){const _0x1887e2=_0x738ee(_0x5107bc,_0x263863[_0x40ca2d]);_0x1887e2&&(_0x1887e2[0x0][_0x5bb4('0x120')]=_0x1887e2[0x1],_0x1887e2[0x1][_0x5bb4('0x29')]=_0x1887e2[0x0],_0x23e7e0[_0x5bb4('0x4e')](_0x1887e2[0x0]),_0x47e4d9['add'](_0x1887e2[0x1]));}}function _0x738ee(_0x5b2835,_0xfc4f87){if(_0x5b2835['author']['id']!==_0xfc4f87[_0x5bb4('0x163')]['id'])return null;const _0x3a8284=_0xb39b26[_0x5bb4('0x143')](_0x5b2835)(_0x5b2835,_0xfc4f87,_0x2fa6f7[_0x5bb4('0x143')](_0x5b2835),_0x2fa6f7[_0x5bb4('0x143')](_0xfc4f87));if(!_0x3a8284)return null;return _0xb39b26[_0x5bb4('0x143')](_0xfc4f87)(_0x5b2835,_0xfc4f87,_0x2fa6f7[_0x5bb4('0x143')](_0x5b2835),_0x2fa6f7[_0x5bb4('0x143')](_0xfc4f87))?_0x3a8284[0x1][_0x5bb4('0x159')]&&_0x3a8284[0x1]['commentThread'][_0x5bb4('0x96')]?null:_0x3a8284:null;}_0x547e9a[_0x5bb4('0x131')]&&this[_0x5bb4('0x8e')](_0x547e9a);}['_refreshAttributeSuggestionsChain'](_0x34fd2c){if(0x0==_0x34fd2c[_0x5bb4('0x96')])return;const _0x2db9b9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58278f=>_0x5bb4('0x160')==_0x58278f['type']&&_0x58278f[_0x5bb4('0x13d')]),_0x5d951=[],_0x4c46ee=new Map();for(const _0x375c27 of _0x2db9b9){const _0xef80ec=_0x457066(_0x375c27[_0x5bb4('0xd8')]);_0x4c46ee['has'](_0xef80ec)||(_0x4c46ee[_0x5bb4('0xba')](_0xef80ec,_0x5d951[_0x5bb4('0x96')]),_0x5d951[_0x5bb4('0x6')]([]));const _0x5611c9=_0x4c46ee[_0x5bb4('0x143')](_0xef80ec);_0x5d951[_0x5611c9][_0x5bb4('0x6')](_0x375c27);}!function(){_0x5d951['sort']((_0x4be14b,_0x284912)=>{const _0xcb6fe1=_0x4be14b[0x0][_0x5bb4('0x1a')],_0x2ada05=_0x284912[0x0][_0x5bb4('0x1a')];return _0xcb6fe1==_0x2ada05?_0x4be14b[0x0][_0x5bb4('0xd8')][_0x5bb4('0x11d')]<_0x284912[0x0][_0x5bb4('0xd8')][_0x5bb4('0x11d')]?-0x1:0x1:_0xcb6fe1<_0x2ada05?-0x1:0x1;});for(const _0x5138af of _0x5d951)_0x5138af['sort']((_0x2913ca,_0x3b6409)=>_0x2913ca['id']<_0x3b6409['id']?-0x1:0x1);}();for(let _0xfbea34=0x0;_0xfbea34<_0x5d951['length'];_0xfbea34++){if(0x0==_0x5d951[_0xfbea34][_0x5bb4('0x96')])continue;const _0x28805c=[];for(let _0x3774b6=_0xfbea34+0x1;_0x3774b6<_0x5d951['length'];_0x3774b6++)0x0!=_0x5d951[_0x3774b6][_0x5bb4('0x96')]&&_0x5daac5(_0x5d951[_0xfbea34],_0x5d951[_0x3774b6])&&_0x28805c['push'](_0x3774b6);for(const _0x3c53bf of _0x28805c)_0x5d951[_0xfbea34]=_0x5d951[_0xfbea34]['concat'](_0x5d951[_0x3c53bf]),_0x5d951[_0x3c53bf]=[];}for(const _0x25e5ba of _0x5d951)for(let _0x3b91d4=0x0;_0x3b91d4<_0x25e5ba[_0x5bb4('0x96')];_0x3b91d4++)_0x25e5ba[_0x3b91d4][_0x5bb4('0x120')]=_0x25e5ba[_0x3b91d4+0x1]||null;for(const _0x15af63 of _0x5d951)for(let _0x8c2d9e=0x0;_0x8c2d9e<_0x15af63['length'];_0x8c2d9e++)_0x15af63[_0x8c2d9e][_0x5bb4('0x29')]=_0x15af63[_0x8c2d9e-0x1]||null;function _0x5daac5(_0x4cb28d,_0x4e54a7){if(_0x4cb28d[0x0][_0x5bb4('0x163')]!==_0x4e54a7[0x0]['author'])return!0x1;if(!function(_0x1554b7,_0x336af8){if(!_0x1554b7[_0x5bb4('0xf9')]&&!_0x336af8[_0x5bb4('0xf9')])return!0x0;if(_0x1554b7[_0x5bb4('0xf9')]&&_0x336af8[_0x5bb4('0xf9')])return!0x1;if(_0x1554b7[_0x5bb4('0xf9')]&&_0x336af8[_0x5bb4('0x1a')]<_0x1554b7[_0x5bb4('0x159')][_0x5bb4('0xa2')]['get'](0x0)[_0x5bb4('0x1a')])return!0x0;if(_0x336af8['hasComments']&&_0x1554b7[_0x5bb4('0x1a')]<_0x336af8[_0x5bb4('0x159')][_0x5bb4('0xa2')]['get'](0x0)[_0x5bb4('0x1a')])return!0x0;return!0x1;}(_0x4cb28d[0x0],_0x4e54a7[0x0]))return!0x1;const _0x5e27ae=_0xe709ef(_0x4cb28d[0x0]['attributes'],'groupId'),_0x8e7cd5=_0xe709ef(_0x4e54a7[0x0][_0x5bb4('0xd8')],_0x5bb4('0x11d'));if(!_0x53cbae(_0x5e27ae,_0x8e7cd5))return!0x1;return!!_0x4cb28d['every'](_0x18fefa=>_0x4e54a7[_0x5bb4('0x38')](_0x59c2ea=>_0x18fefa['getFirstRange']()[_0x5bb4('0x115')](_0x59c2ea['getFirstRange']())))&&_0x4e54a7[_0x5bb4('0x12e')](_0x2b3e0a=>_0x4cb28d[_0x5bb4('0x38')](_0x20420a=>_0x2b3e0a[_0x5bb4('0x157')]()[_0x5bb4('0x115')](_0x20420a[_0x5bb4('0x157')]())));}}[_0x5bb4('0x31')](_0x17ae93){const _0x4b3b47=Array[_0x5bb4('0x1')](_0x17ae93),_0x17bb1f=this[_0x5bb4('0xef')]({'skipNotAttached':!0x0}),_0x1222ee=_0x17bb1f[_0x5bb4('0x5c')](_0x284446=>!_0x17ae93[_0x5bb4('0x135')](_0x284446)),_0x44a247=new Map(_0x4b3b47[_0x5bb4('0x20')](_0x32bfc7=>[_0x32bfc7,this[_0x5bb4('0x141')][_0x5bb4('0x94')](_0x32bfc7[_0x5bb4('0xc1')],_0x32bfc7[_0x5bb4('0x97')],_0x5bb4('0x71'))])),_0x49d12d=new Map(_0x17bb1f[_0x5bb4('0x20')](_0x2cd7fb=>[_0x2cd7fb,_0x2cd7fb['getRanges']()]));for(let _0x1c886d=0x0;_0x1c886d<_0x4b3b47[_0x5bb4('0x96')];_0x1c886d++){if(_0x57c8a7(this,_0x4b3b47[_0x1c886d],_0x4b3b47,_0x1c886d+0x1))return!0x0;}for(let _0x163027=0x0;_0x163027<_0x4b3b47[_0x5bb4('0x96')];_0x163027++){if(_0x57c8a7(this,_0x4b3b47[_0x163027],_0x1222ee,0x0))return!0x0;}return!0x1;function _0x57c8a7(_0x519927,_0x1f810f,_0x4e5961,_0x5e32d5){for(let _0x2d450b=_0x5e32d5;_0x2d450b<_0x4e5961[_0x5bb4('0x96')];_0x2d450b++){const _0x2b6ccb=_0x4e5961[_0x2d450b];if(_0x2b6ccb[_0x5bb4('0xc1')]!==_0x1f810f[_0x5bb4('0xc1')]||_0x2b6ccb[_0x5bb4('0x163')]['id']!==_0x1f810f[_0x5bb4('0x163')]['id']||_0x2b6ccb[_0x5bb4('0x97')]!==_0x1f810f[_0x5bb4('0x97')])continue;if(!Vt(_0x1f810f,_0x2b6ccb))continue;if('attribute'==_0x1f810f[_0x5bb4('0xc1')]&&_0x1f810f[_0x5bb4('0x43')][_0x5bb4('0xc5')]!=_0x2b6ccb['data'][_0x5bb4('0xc5')])continue;if(_0x5bb4('0x160')==_0x1f810f[_0x5bb4('0xc1')]&&_0x519927['_isBlockAttribute'](_0x1f810f[_0x5bb4('0x43')][_0x5bb4('0xb9')]))continue;if('formatBlock'==_0x1f810f['type']){const _0x1eff59=_0x519927[_0x5bb4('0x93')][_0x5bb4('0x12d')],_0xc8f8b3=_0x1f810f[_0x5bb4('0x19')]();if(_0xc8f8b3&&(_0x1eff59['schema'][_0x5bb4('0x57')](_0xc8f8b3)||_0x1eff59[_0x5bb4('0x118')][_0x5bb4('0x15d')](_0xc8f8b3)))continue;}const _0xa3b52b=_0x44a247[_0x5bb4('0x143')](_0x1f810f),_0x9a103a=_0x49d12d[_0x5bb4('0x143')](_0x1f810f),_0x577322=_0x49d12d[_0x5bb4('0x143')](_0x2b6ccb),_0x5354fe=_0x1f810f[_0x5bb4('0x159')]&&_0x1f810f['commentThread'][_0x5bb4('0x96')],_0x4b876b=_0x2b6ccb[_0x5bb4('0x159')]&&_0x2b6ccb['commentThread'][_0x5bb4('0x96')];if(!_0x5354fe&&_0xa3b52b(_0x577322,_0x9a103a))return _0x519927[_0x5bb4('0x15')](_0x2b6ccb,_0x1f810f),_0x49d12d[_0x5bb4('0xbc')](_0x1f810f),!0x0;if(!_0x4b876b&&_0xa3b52b(_0x9a103a,_0x577322))return _0x519927[_0x5bb4('0x15')](_0x1f810f,_0x2b6ccb),_0x49d12d[_0x5bb4('0xbc')](_0x2b6ccb),!0x0;}return!0x1;}}[_0x5bb4('0x15')](_0x474490,_0xbb6785){if(_0x474490['isMultiRange'])for(const _0x55947d of _0xbb6785['getRanges']())_0x474490[_0x5bb4('0x8c')](_0x55947d);else{const _0x3d9e35=_0xbb6785['getFirstRange']()[_0x5bb4('0xc3')];this[_0x5bb4('0x14a')](_0x474490,this[_0x5bb4('0x1e')][_0x5bb4('0x23')](_0x474490[_0x5bb4('0x157')]()[_0x5bb4('0xe1')],_0x3d9e35));}_0xbb6785[_0x5bb4('0xd6')]();}['_getMarkerAnnouncementText'](_0x2d4271,_0x3cf453){const _0x3062de=_0x2d4271['startsWith']('format')||_0x2d4271[_0x5bb4('0x92')](_0x5bb4('0x160'))?_0x5bb4('0x13'):_0x2d4271[_0x5bb4('0x147')]();return _0x1f39dc(this[_0x5bb4('0x93')][_0x5bb4('0xc')],_0x3cf453+'_'+_0x3062de+_0x5bb4('0x126'));}[_0x5bb4('0x154')](){const _0xb28c6=this[_0x5bb4('0x93')];_0x2f2298(this[_0x5bb4('0x1e')],({left:_0xdb35ab,entered:_0x391fe4})=>{const _0x27d3fc=[];for(const _0x1108fc of _0xdb35ab){const {group:_0x1cdb71,type:_0x286ee2}=this[_0x5bb4('0xe2')](_0x1108fc['name']);if('suggestion'===_0x1cdb71){_0x27d3fc[_0x5bb4('0x6')](this[_0x5bb4('0xbd')](_0x286ee2,_0x5bb4('0x138')));break;}}for(const _0x558c11 of _0x391fe4){const {group:_0xf63569,type:_0x30ba5a}=this['_splitMarkerName'](_0x558c11[_0x5bb4('0xd')]);if(_0x5bb4('0xa3')===_0xf63569){_0x27d3fc['push'](this['_getMarkerAnnouncementText'](_0x30ba5a,_0x5bb4('0xa9')));break;}}_0x27d3fc[_0x5bb4('0x96')]&&_0xb28c6['ui']['ariaLiveAnnouncer']['announce'](_0x5bb4('0x4f'),_0x27d3fc[_0x5bb4('0x71')]('\x20'));});}[_0x5bb4('0x53')](_0x52bc04){if(null!==this[_0x5bb4('0xde')])return!0x1;const _0x3d02d2=this[_0x5bb4('0x93')],_0x1b28fe=_0x3d02d2['model'][_0x5bb4('0x173')]['differ']['getChanges']();if(0x0==_0x1b28fe[_0x5bb4('0x96')])return!0x1;const _0x529b60=[],_0x160b9f=_0x1b28fe[_0x5bb4('0x5c')](_0x2f05dc=>_0x5bb4('0x160')==_0x2f05dc[_0x5bb4('0xc1')]),_0x566f86=_0x1b28fe[_0x5bb4('0x5c')](_0x4cfbb1=>'insert'==_0x4cfbb1['type']&&'$text'!=_0x4cfbb1[_0x5bb4('0xd')]),_0x2b6a5b=_0x1b28fe[_0x5bb4('0x5c')](_0x4833ad=>_0x5bb4('0x18')==_0x4833ad['type']&&'$text'!=_0x4833ad[_0x5bb4('0xd')]);for(const _0x3b123a of _0x160b9f)_0x529b60[_0x5bb4('0x6')]({'key':_0x3b123a[_0x5bb4('0x6e')],'newValue':_0x3b123a['attributeNewValue'],'oldValue':_0x3b123a[_0x5bb4('0xf0')],'range':_0x4cfca4(_0x3b123a[_0x5bb4('0x1d')])});for(const _0xcfd5d3 of _0x566f86){const _0x196aad=_0x2b6a5b[_0x5bb4('0x39')](_0x47a1d4=>_0x47a1d4[_0x5bb4('0x6d')][_0x5bb4('0x115')](_0xcfd5d3[_0x5bb4('0x6d')]));_0x196aad&&_0x529b60['push']({'key':_0x5bb4('0x91'),'newValue':_0xcfd5d3[_0x5bb4('0xd')],'oldValue':_0x196aad[_0x5bb4('0xd')],'range':_0x3d02d2['model']['createRangeOn'](_0xcfd5d3[_0x5bb4('0x6d')][_0x5bb4('0x14d')])});}return 0x0!=_0x529b60[_0x5bb4('0x96')]&&this[_0x5bb4('0x113')](_0x52bc04,_0x529b60);function _0x4cfca4(_0xfef5e0){return null==_0xfef5e0['end']['nodeBefore']&&_0xfef5e0[_0x5bb4('0xc3')][_0x5bb4('0x9b')]==_0xfef5e0['start'][_0x5bb4('0x14d')]?Ut(_0xfef5e0[_0x5bb4('0xe1')][_0x5bb4('0x14d')],_0x3d02d2[_0x5bb4('0x12d')]):_0xfef5e0;}}[_0x5bb4('0x124')](_0x528394){let _0x4ce49d=!0x1;const _0x3e567f=this[_0x5bb4('0x93')][_0x5bb4('0x12d')]['document'][_0x5bb4('0xa1')][_0x5bb4('0x2a')]()[_0x5bb4('0x5c')](_0x258556=>_0x258556[_0x5bb4('0x43')][_0x5bb4('0x70')]&&_0x258556[_0x5bb4('0xd')][_0x5bb4('0x92')](_0x5bb4('0x83')));for(const _0x371af1 of _0x3e567f){const {subType:_0x23fd2e,id:_0x347332}=this[_0x5bb4('0xe2')](_0x371af1[_0x5bb4('0xd')]),_0x31b700=_0x23fd2e[_0x5bb4('0xaf')]('|')[0x0];for(const _0x62ea01 of this[_0x5bb4('0xef')]({'skipNotAttached':!0x0}))_0x62ea01['id']!=_0x347332&&_0x5bb4('0x160')==_0x62ea01[_0x5bb4('0xc1')]&&_0x62ea01[_0x5bb4('0x43')]&&_0x62ea01[_0x5bb4('0x43')][_0x5bb4('0xb9')]==_0x31b700&&_0x62ea01[_0x5bb4('0x157')]()[_0x5bb4('0x104')](_0x371af1[_0x5bb4('0x43')][_0x5bb4('0x70')])&&(this[_0x5bb4('0xa4')](_0x62ea01,_0x371af1[_0x5bb4('0x43')]['newRange'],_0x528394),_0x4ce49d=!0x0);}return _0x4ce49d;}[_0x5bb4('0x95')](_0x156a3e){if(null!==this[_0x5bb4('0xde')])return void _0x156a3e();const _0x38f7fd=this[_0x5bb4('0x93')];this[_0x5bb4('0xde')]=_0x38f7fd[_0x5bb4('0x12d')][_0x5bb4('0x173')][_0x5bb4('0x152')],_0x156a3e();const _0x58f4a7=new Map();for(const _0x2d314 of _0x38f7fd['model'][_0x5bb4('0x173')][_0x5bb4('0xc7')][_0x5bb4('0x167')](this['_recordAttributeSuggestionsFromVersion']))if([_0x5bb4('0x11a'),_0x5bb4('0x132'),_0x5bb4('0xd4'),_0x5bb4('0x146')][_0x5bb4('0x13c')](_0x2d314[_0x5bb4('0xc1')])){const _0x51068f=_0x2d314['batch'],_0x4a5cc4=_0x58f4a7[_0x5bb4('0x143')](_0x51068f)||[];_0x4a5cc4[_0x5bb4('0x6')](_0x2d314),_0x58f4a7[_0x5bb4('0xba')](_0x51068f,_0x4a5cc4);}this[_0x5bb4('0xde')]=null;for(const [_0x1647de,_0x4168d3]of _0x58f4a7){const _0x2e1a84=_0x4f0212();_0x38f7fd['model']['enqueueChange'](_0x1647de,_0x134c04=>{const _0x4b40ca=[];for(const _0x5c65be of _0x4168d3){let _0x4e366d,_0x1ee896,_0x25a1a7,_0x31df80;if(_0x5bb4('0x11a')==_0x5c65be[_0x5bb4('0xc1')]){const _0x41ebb1=_0x5c65be;_0x4e366d=Ut(_0x41ebb1[_0x5bb4('0x6d')][_0x5bb4('0x14d')],_0x38f7fd['model']),_0x1ee896=_0x5bb4('0x91'),_0x25a1a7=_0x41ebb1[_0x5bb4('0xe7')],_0x31df80=_0x41ebb1[_0x5bb4('0x16c')];}else{const _0x4b640a=_0x5c65be,_0x16c066=this[_0x5bb4('0x7f')](_0x4b640a[_0x5bb4('0xb9')]),_0x1085c8=this[_0x5bb4('0x9d')][_0x5bb4('0x135')](_0x4b640a['key']);if(!_0x16c066&&!_0x1085c8)continue;_0x4e366d=_0x16c066?Ut(_0x4b640a[_0x5bb4('0x1d')]['start'][_0x5bb4('0x14d')],_0x38f7fd[_0x5bb4('0x12d')]):_0x4b640a[_0x5bb4('0x1d')],_0x1ee896=_0x4b640a['key'],_0x25a1a7='removeAttribute'==_0x5c65be[_0x5bb4('0xc1')]?void 0x0:_0x4b640a[_0x5bb4('0x169')],_0x31df80=_0x4b640a[_0x5bb4('0xc5')];}this['markAttributeChange'](_0x4e366d,_0x1ee896,_0x31df80,_0x25a1a7,{'groupId':_0x2e1a84}),_0x4b40ca['push']({'range':_0x4e366d,'key':_0x1ee896,'newValue':_0x25a1a7,'oldValue':_0x31df80});}this[_0x5bb4('0x113')](_0x134c04,_0x4b40ca);});}}[_0x5bb4('0x113')](_0x58ba79,_0x563183){if(0x0==_0x563183[_0x5bb4('0x96')])return!0x1;let _0x524495=!0x1;for(const _0x5a41fd of _0x563183){const _0x8cf95c=this[_0x5bb4('0xcf')](_0x5a41fd[_0x5bb4('0x1d')],_0x5bb4('0x160'))[_0x5bb4('0x5c')](_0x11e69f=>!_0x11e69f['meta'][_0x5bb4('0x2f')])[_0x5bb4('0x20')](_0x11df1e=>_0x11df1e['suggestion']),_0x50d1d4=_0x457066({'newValue':_0x5a41fd['newValue']});_0x8cf95c['filter'](_0x2578cd=>{const [_0x537313,_0x364d50]=_0x2578cd['subType'][_0x5bb4('0xaf')]('|');return _0x537313==_0x5a41fd[_0x5bb4('0xb9')]&&_0x364d50!=_0x50d1d4;})[_0x5bb4('0xea')](_0x1b1cc2=>{this[_0x5bb4('0xa4')](_0x1b1cc2,_0x5a41fd[_0x5bb4('0x1d')],_0x58ba79),_0x524495=!0x0;});}return _0x524495;}[_0x5bb4('0xa4')](_0x31ad7b,_0x429d64,_0x56d31d){const _0x1f6a6f=_0x31ad7b['getFirstRange']()[_0x5bb4('0x76')](_0x429d64);0x0!==_0x1f6a6f[_0x5bb4('0x96')]?0x1!==_0x1f6a6f[_0x5bb4('0x96')]?this[_0x5bb4('0x69')](_0x31ad7b,_0x429d64[_0x5bb4('0xe1')],_0x429d64[_0x5bb4('0xc3')]):this['_setSuggestionRange'](_0x31ad7b,_0x1f6a6f[0x0]):_0x56d31d[_0x5bb4('0x8d')](_0x31ad7b[_0x5bb4('0xe6')]());}}class Bt{constructor(_0x246e24){this[_0x5bb4('0xff')]=_0x246e24,this[_0x5bb4('0x1e')]=_0x246e24[_0x5bb4('0x12d')],this[_0x5bb4('0x127')]=new Map(),this[_0x5bb4('0x137')]=new Map(),this[_0x5bb4('0x153')]();}['buildSuggestion'](_0xa90619,_0x1d2c76,_0x3947d6,_0x2e28fa,_0xd6527d,_0x17480e){return new _0x1343f2(this[_0x5bb4('0x1e')],{'type':_0xa90619,'subType':_0x1d2c76,'id':_0x3947d6,'author':_0x2e28fa,'creator':_0x2e28fa,'attributes':_0xd6527d,'onAttributesChange':_0x17480e,'onAccept':(..._0x150e22)=>this[_0x5bb4('0x94')](_0xa90619,_0x1d2c76,_0x5bb4('0x13b'))(..._0x150e22),'onDiscard':(..._0x56b556)=>this[_0x5bb4('0x94')](_0xa90619,_0x1d2c76,_0x5bb4('0xbf'))(..._0x56b556)});}['registerCustomCallback'](_0x2ff254,_0x4b946e,_0x32ef84,_0x34ef96){const _0x55068a=_0x2ff254+':'+_0x4b946e+':'+_0x32ef84;this['_customCallbacks'][_0x5bb4('0xba')](_0x55068a,_0x34ef96);}[_0x5bb4('0x94')](_0x4acdfd,_0x3d3110,_0x15ab2e){const _0x3c6ba0=_0x4acdfd+':'+_0x3d3110+':'+_0x15ab2e;return this['_customCallbacks'][_0x5bb4('0x143')](_0x3c6ba0)||this[_0x5bb4('0x137')][_0x5bb4('0x143')](_0x4acdfd+':'+_0x15ab2e);}[_0x5bb4('0x153')](){const _0x589ea3=()=>!0x1,_0x35ebb0=_0x3b2477=>{_0x3b2477[_0x5bb4('0xb4')]((_0x229768,_0x345fd5)=>_0x229768['start']['isBefore'](_0x345fd5['start'])?0x1:-0x1),this['_model'][_0x5bb4('0x7a')](_0x32a62e=>{for(const _0x1036bb of _0x3b2477){let _0xfae031;_0xfae031=_0x1036bb[_0x5bb4('0xc3')][_0x5bb4('0x6c')]&&_0x1036bb['end'][_0x5bb4('0x9b')]==_0x1036bb[_0x5bb4('0xe1')][_0x5bb4('0x14d')]?_0x32a62e[_0x5bb4('0xfb')](_0x1036bb['start'][_0x5bb4('0x14d')],'on'):_0x32a62e[_0x5bb4('0xfb')](_0x1036bb),this[_0x5bb4('0x1e')][_0x5bb4('0x4a')](_0xfae031,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2b9ad3=(_0x4a847c,_0x117195)=>{_0x117195&&this[_0x5bb4('0x1e')][_0x5bb4('0x7a')](_0x474caf=>{const {commandName:_0x4126f9,commandParams:_0x119cf0=[]}=_0x117195,_0x21ebdc=_0x4a847c[_0x5bb4('0x20')](_0x525966=>(xt(_0x525966)&&(_0x525966=this[_0x5bb4('0x1e')][_0x5bb4('0x23')](_0x525966[_0x5bb4('0xc3')])),_0x525966))[_0x5bb4('0x5c')](_0x59cb15=>_0x5bb4('0x7d')!==_0x59cb15[_0x5bb4('0xb0')]['rootName']);if(_0x21ebdc[_0x5bb4('0x96')]<0x1)return;const _0x3a91de=Array[_0x5bb4('0x1')](this[_0x5bb4('0x1e')]['document'][_0x5bb4('0x166')][_0x5bb4('0xd7')]())['map'](_0x50b7c8=>_0x87e607[_0x5bb4('0x59')](_0x50b7c8));_0x474caf['setSelection'](_0x21ebdc);for(const _0x35f463 of this[_0x5bb4('0xff')][_0x5bb4('0x89')][_0x5bb4('0x89')]())_0x35f463[_0x5bb4('0x103')]();_0x119cf0[_0x5bb4('0x6')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x5bb4('0xc2')](_0x4126f9,..._0x119cf0);const _0x1af9f3=_0x3a91de[_0x5bb4('0x5c')](_0x503381=>_0x5bb4('0x7d')!=_0x503381[_0x5bb4('0xb0')][_0x5bb4('0x3c')]);_0x1af9f3['length']>0x0&&_0x474caf[_0x5bb4('0x5f')](_0x1af9f3);for(const _0x389dd0 of _0x3a91de)_0x389dd0[_0x5bb4('0x5e')]();});},_0x223cf9=(_0x1baa99,_0x4c9215)=>0x1==_0x1baa99['length']&&0x1==_0x4c9215['length']&&_0x1baa99[0x0][_0x5bb4('0xc3')]['isEqual'](_0x4c9215[0x0][_0x5bb4('0xe1')]),_0x5eeb04=(_0x5e482a,_0xd5fdca,_0x58a8df,_0x1dfa0a)=>Ot(_0x5e482a,_0xd5fdca,_0x58a8df,_0x1dfa0a,this[_0x5bb4('0x1e')])?[_0x5e482a,_0xd5fdca]:Ot(_0xd5fdca,_0x5e482a,_0x1dfa0a,_0x58a8df,this[_0x5bb4('0x1e')])?[_0xd5fdca,_0x5e482a]:null;this['_defaultCallbacks'][_0x5bb4('0xba')]('insertion:accept',_0x589ea3),this['_defaultCallbacks'][_0x5bb4('0xba')]('insertion:discard',_0x35ebb0),this[_0x5bb4('0x137')]['set']('insertion:join',_0x223cf9),this[_0x5bb4('0x137')][_0x5bb4('0xba')](_0x5bb4('0x66'),_0x5eeb04),this[_0x5bb4('0x137')][_0x5bb4('0xba')](_0x5bb4('0x15f'),_0x35ebb0),this[_0x5bb4('0x137')][_0x5bb4('0xba')]('deletion:discard',_0x589ea3),this[_0x5bb4('0x137')][_0x5bb4('0xba')]('deletion:join',_0x223cf9),this[_0x5bb4('0x137')][_0x5bb4('0xba')](_0x5bb4('0x3d'),_0x5eeb04),this['_defaultCallbacks']['set']('formatInline:accept',_0x2b9ad3),this[_0x5bb4('0x137')][_0x5bb4('0xba')](_0x5bb4('0x161'),_0x589ea3),this[_0x5bb4('0x137')]['set'](_0x5bb4('0x5b'),_0x223cf9),this[_0x5bb4('0x137')][_0x5bb4('0xba')](_0x5bb4('0x50'),_0x589ea3),this[_0x5bb4('0x137')][_0x5bb4('0xba')](_0x5bb4('0x48'),_0x2b9ad3),this[_0x5bb4('0x137')][_0x5bb4('0xba')](_0x5bb4('0x45'),_0x589ea3),this[_0x5bb4('0x137')][_0x5bb4('0xba')](_0x5bb4('0x165'),_0x223cf9),this[_0x5bb4('0x137')][_0x5bb4('0xba')](_0x5bb4('0xa5'),_0x589ea3),this[_0x5bb4('0x137')][_0x5bb4('0xba')]('attribute:accept',_0x589ea3),this[_0x5bb4('0x137')]['set'](_0x5bb4('0xb3'),(_0x41e752,_0x492426)=>{if(!_0x492426)return;const _0x193d3a=this[_0x5bb4('0xff')]['plugins'][_0x5bb4('0x143')](p);this[_0x5bb4('0x1e')][_0x5bb4('0x7a')](_0x1278bc=>{if('$elementName'==_0x492426['key'])for(const _0x59b38b of _0x41e752){const _0x4c79c0=_0x59b38b[_0x5bb4('0xe1')]['nodeAfter'],_0xd30d68=_0x492426[_0x5bb4('0xc5')];_0x1278bc[_0x5bb4('0x11a')](_0x4c79c0,_0xd30d68);}else{if(_0x193d3a[_0x5bb4('0x7f')](_0x492426[_0x5bb4('0xb9')]))for(const _0x39598e of _0x41e752)void 0x0!==_0x492426[_0x5bb4('0xc5')]?_0x1278bc['setAttribute'](_0x492426[_0x5bb4('0xb9')],_0x492426[_0x5bb4('0xc5')],_0x39598e['start']['nodeAfter']):_0x1278bc[_0x5bb4('0xd4')](_0x492426[_0x5bb4('0xb9')],_0x39598e[_0x5bb4('0xe1')]['nodeAfter']);else for(const _0x1b0623 of _0x41e752)_0x492426[_0x5bb4('0xc5')]?_0x1278bc['setAttribute'](_0x492426['key'],_0x492426[_0x5bb4('0xc5')],_0x1b0623):_0x1278bc['removeAttribute'](_0x492426[_0x5bb4('0xb9')],_0x1b0623);}});}),this['_defaultCallbacks'][_0x5bb4('0xba')](_0x5bb4('0x54'),_0x223cf9);}}function Tt(_0xeccfd4,_0x5edb43,_0x3ce728){for(const _0x29166a of _0x5edb43[_0x5bb4('0x9b')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x29166a[_0x5bb4('0xb0')]==_0x29166a)return!0x1;if(!_0x3ce728[_0x5bb4('0xf5')](_0x29166a))return!0x1;if(_0xeccfd4['isObject'](_0x29166a)||_0xeccfd4[_0x5bb4('0x15d')](_0x29166a))return!0x0;}return!0x1;}function xt(_0x5eb766){return _0x5eb766[_0x5bb4('0xc3')][_0x5bb4('0x9b')]==_0x5eb766['start'][_0x5bb4('0x14d')]&&_0x5eb766['end']['isAtStart'];}function Et(_0x2a7d23,_0x28aa7e,_0x565e8e,_0xf89454){const _0x5b6e84=_0x5974b6=>!_0x5974b6['item']['is'](_0x5bb4('0xb2'))&&!_0xf89454[_0x5bb4('0x57')](_0x5974b6[_0x5bb4('0x99')]),_0x4ba8a1=_0x2a7d23[_0x5bb4('0xe1')][_0x5bb4('0xed')](_0x5b6e84),_0x502507=_0x2a7d23[_0x5bb4('0xc3')]['getLastMatchingPosition'](_0x5b6e84,{'direction':'backward'});return(!_0x2a7d23['start'][_0x5bb4('0x115')](_0x4ba8a1)||!_0x2a7d23[_0x5bb4('0xc3')][_0x5bb4('0x115')](_0x502507))&&(_0x4ba8a1['isBefore'](_0x502507)?_0x565e8e[_0x5bb4('0x170')](_0x28aa7e,{'range':_0x565e8e[_0x5bb4('0x23')](_0x4ba8a1,_0x502507)}):_0x565e8e[_0x5bb4('0x8d')](_0x28aa7e),!0x0);}function Rt(_0x309b2a){return _0x457066(_0x309b2a);}function jt(_0x38f090){const _0x3b9078=_0x38f090[_0x5bb4('0xe1')][_0x5bb4('0x14d')];return _0x3b9078&&_0x3b9078['is'](_0x5bb4('0xda'));}function Ut(_0x3b13e6,_0x1ba9b7){const _0x33e2a8=_0x1ba9b7[_0x5bb4('0x118')][_0x5bb4('0x57')](_0x3b13e6)||_0x1ba9b7[_0x5bb4('0x118')][_0x5bb4('0x16a')](_0x3b13e6);return _0x1ba9b7[_0x5bb4('0x23')](_0x1ba9b7[_0x5bb4('0xb5')](_0x3b13e6,'before'),_0x33e2a8?_0x1ba9b7[_0x5bb4('0xe9')](_0x3b13e6):_0x1ba9b7[_0x5bb4('0xb5')](_0x3b13e6,'end'));}function Ot(_0x485560,_0x424b69,_0x151dec,_0x5dda41,_0x3febf1){if(!Vt(_0x485560,_0x424b69))return!0x1;if(_0x151dec['end'][_0x5bb4('0x115')](_0x5dda41['start']))return!0x0;if(_0x485560[_0x5bb4('0xc1')]!=_0x424b69[_0x5bb4('0xc1')])return!0x1;if(!_0x151dec['end'][_0x5bb4('0xf2')](_0x5dda41[_0x5bb4('0xe1')]))return!0x1;const _0x34e4c8=_0x3febf1[_0x5bb4('0x23')](_0x151dec[_0x5bb4('0xc3')],_0x5dda41[_0x5bb4('0xe1')])[_0x5bb4('0x139')]();for(const _0xcb7664 of _0x34e4c8)if([_0x5bb4('0x156'),_0x5bb4('0x144')][_0x5bb4('0x13c')](_0xcb7664[_0x5bb4('0xc1')])&&_0x3febf1[_0x5bb4('0x118')][_0x5bb4('0x15d')](_0xcb7664['item']))return!0x1;return!0x0;}function Vt(_0x2df0bf,_0x98bab0){return!(!_0x2df0bf[_0x5bb4('0x13d')]||!_0x98bab0[_0x5bb4('0x13d')])&&_0x53cbae(_0x2df0bf['attributes'],_0x98bab0[_0x5bb4('0xd8')]);}function Gt(_0x21851a,_0x57781e){const _0x64558e=Ft(_0x21851a[_0x5bb4('0xd8')]),_0x2c6527=Ft(_0x57781e);if(!_0x21851a[_0x5bb4('0x13d')])return!0x1;for(const _0x2afe1b of Object[_0x5bb4('0x2c')](_0x2c6527))if(!_0x53cbae(_0x64558e[_0x2afe1b],_0x2c6527[_0x2afe1b]))return!0x1;return!0x0;}function Ft(_0x32dbc7){const _0x37e00c=Object[_0x5bb4('0x88')]({},_0x32dbc7);return delete _0x37e00c[_0x5bb4('0xb')],delete _0x37e00c[_0x5bb4('0x11f')],_0x37e00c;}function Pt(_0x41204d){return'attribute'==_0x41204d[_0x5bb4('0xc1')]?_0x41204d[_0x5bb4('0x97')][_0x5bb4('0xaf')]('|')[0x0]:null;}