@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230701.0 → 0.0.0-nightly-20230703.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-20230701.0",
3
+ "version": "0.0.0-nightly-20230703.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-20230701.0",
43
- "ckeditor5-collaboration": "0.0.0-nightly-20230701.0",
42
+ "ckeditor5": "0.0.0-nightly-20230703.0",
43
+ "ckeditor5-collaboration": "0.0.0-nightly-20230703.0",
44
44
  "lodash-es": "^4.17.11"
45
45
  },
46
46
  "engines": {
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x8067=['containsRangeInObject','documentSelection','error-saving-suggestion-data-suggestion-discarded','requires','backward','highest','getFirstMarker','toViewElement','_adapter','showSuggestionHighlights','open','isBefore','isCollapsed','formatInline:','stop','end','ck-suggestion-marker-formatBlock','splice','pluginName','default','resolve','suggestion-type','isRemovable','updateMarker','ck-suggestion-marker-','upcast','formatBlock:chain','set','setTo','group','execute','suggestionUnloaded','getDifference','_commentsRepository','isAtStart','enqueueChange','applyOperation','ready','$graveyard','locale','hasComments','createSelection','insertion:chain','getShiftedBy','range','insertion:join','registerPostFixer','trackChanges','getFirstRange','bindElementToMarker','createPositionBefore','isExternal','nodeBefore','_setSuggestionRange','has','collaboration.channelId','hasCommentThread','notReady','attributes','commands','add','listenTo','setSelection','plugins','_checkSuggestionCorrectness','_addSuggestionMarker','_removeSuggestion','addHighlight','getCustomProperty','trackChanges.mergeNestedSuggestions','registerCustomCallback','_splitMarkerName','CommentsRepository','size','push','getSuggestionCallback','isInsideObject','values','elementStart','isSelectable','marker-count','suggestionLoaded','formatGroupId','acceptSuggestion','_registerDefaultCallbacks','getAllAdjacentSuggestions','fetchCommentThread','ck-suggestion-marker--active','rethrowUnexpectedError','normal','previous','element','_setSuggestionData','next','update:suggestion','markerToData','formatInline','_getSuggestionData','delete','data-suggestion','_handleNewSuggestionMarker','splitPosition','toJSON','skipNestingCheck','removed','addClass','suggestionChanged','multipleBlocks','writer','high','_mergeNestedSuggestions','deletion:','getRanges','creator','_trackFormatChanges','@external','_descriptionFactory','createPositionAt','chain','containerElement','markMultiRangeDeletion','newRange','consume','formatInline:chain','parent','isDocumentOperation','remove','discardSuggestion','enableCommand','suggestion','hasSuggestion','value','config','join','consumable','mapper','markInsertion','_createSuggestion','isInContent','getAttribute','markMultiRangeInsertion','activeMarkers','low','removeClass','head','fromRange','_enabledCommands','_model','_breakSuggestionMarker','getItems','_updateSuggestionData','containsItem','getLastMatchingPosition','_joinSuggestions','for','formatBlock:accept','track-changes-user-not-found','getUser','length','_suggestionState','removeMarker:suggestion:formatBlock','rootName','discard','includes','$marker','isAfter','commandName','batch','type','createElement','containsPosition','change:data','elementToElement','deletion','isLimit','addSuggestion','isEqual','getIntersection','map','isBlock','commentThread','formatBlock','acceptSelectedSuggestions','$textProxy','always','createPositionAfter','_editor','createRange','sort','isTouching','trackChangesCommand','enableReadOnlyMode','_defaultCallbacks','markBlockFormat','discardSelectedSuggestions','_refreshSuggestionsChain','addComment','createdAt','_saved','clone','dataReady','deletion:discard','nodeAfter','markerReady','some','insert','multi','conversion','removeMarkers','every','deletion:chain','split','isOwn','markerToHighlight','author','formatInline:accept','originalSuggestionId','get','authoredAt','_rangeIsInLocalUserInsertion','getSuggestions','insertion','dataDowncast','isObject','removeComment','acceptAllSuggestions','root','data','stopListening','trackChanges.trackFormatChanges','editor','_customCallbacks','_cutOutSuggestionMarker','move','addMarker:suggestion','insertion:','Users','containsRange','selection','ck-suggestion-marker','adapter','addMarkerName','markMultiRangeBlockFormat','isIntersectingWithRange','insertContent','removeMarker','elementEnd','_onDiscard','updateSuggestion','getRange','markerName','formatBlock:','howMany','differ','_suggestions','track-changes-adapter-already-set','getSuggestion','isMultiRange','then','subType','item','fire','accept','_isForcedDefaultExecutionBlock','editingDowncast','getChanges','from','markers','document','options','_getExternalAuthor','change','deletion:join','before','getAncestors','start','PENDING_ACTION_SUGGESTION','oldRange','deletion:accept','schema','isNextTo','_addThreadToSuggestion','PendingActions','buildSuggestion','suggestion:','filter','getNearestSelectionRange','setAttribute','model','addUser','addMarker:suggestion:formatBlock','addRange','position','forward','_suggestionFactory','unbind','name','catch','markDeletion','removeAttribute','deleteContent','change:activeMarkers','_findSuggestions','accepted','return','forceDefaultExecution','getMultiRangeId','track-changes-suggestion-data-mismatch','addSuggestionData','isAtEnd'];(function(_0x35ee50,_0x806707){const _0x505c69=function(_0x2ae937){while(--_0x2ae937){_0x35ee50['push'](_0x35ee50['shift']());}};_0x505c69(++_0x806707);}(_0x8067,0x146));const _0x505c=function(_0x35ee50,_0x806707){_0x35ee50=_0x35ee50-0x0;let _0x505c69=_0x8067[_0x35ee50];return _0x505c69;};import{Plugin as _0x642b50,PendingActions as _0x26601d}from'ckeditor5/src/core';import{LiveRange as _0x12fcf0}from'ckeditor5/src/engine';import{CKEditorError as _0x1dd7d0,uid as _0x226cf0,priorities as _0x3338f3,logWarning as _0x47ac89}from'ckeditor5/src/utils';import{toWidget as _0x3fc30f}from'ckeditor5/src/widget';import{Users as _0x1d2d11,hashObject as _0x496d2d}from'ckeditor5-collaboration/src/collaboration-core';import _0x3f9045 from'./commands/trackchangescommand';import _0x1ea979 from'./commands/acceptsuggestioncommand';import _0x4135ca from'./commands/discardsuggestioncommand';import _0xf7c60c from'./commands/executeonallsuggestionscommand';import _0x39a61f from'./commands/executeonselectedsuggestionscommand';import _0x492b8e from'./suggestion';import _0x2818a4 from'./suggestiondescriptionfactory';import _0x3a0fcc from'./integrations/alignment';import _0x436a63 from'./integrations/basicstyles';import _0x482416 from'./integrations/blockquote';import _0x114425 from'./integrations/ckbox';import _0xc0f196 from'./integrations/codeblock';import _0x18447f from'./integrations/comments';import _0x180757 from'./integrations/deletecommand';import _0x40af64 from'./integrations/documentlist';import _0x363648 from'./integrations/entercommand';import _0x2642b4 from'./integrations/findandreplace';import _0x341b91 from'./integrations/font';import _0x949ee3 from'./integrations/formatpainter';import _0x4a90a5 from'./integrations/heading';import _0x8fd302 from'./integrations/highlight';import _0x5ca8ca from'./integrations/horizontalline';import _0x2cfd17 from'./integrations/htmlembed';import _0x37e678 from'./integrations/image';import _0x565224 from'./integrations/imagereplace';import _0x2266d5 from'./integrations/importword';import _0x1500ab from'./integrations/indent';import _0x3e1293 from'./integrations/inputcommand';import _0x441d44 from'./integrations/link';import _0x2d0db7 from'./integrations/list';import _0x1254ad from'./integrations/listproperties';import _0x166cee from'./integrations/mediaembed';import _0x9d9403 from'./integrations/mention';import _0x536b8f from'./integrations/pagebreak';import _0x1e3f7d from'./integrations/paragraph';import _0x10d4fa from'./integrations/removeformat';import _0x487434 from'./integrations/restrictededitingmode';import _0x23b86f from'./integrations/shiftentercommand';import _0x48871d from'./integrations/standardeditingmode';import _0x35553d from'./integrations/style';import _0x4089a0 from'./integrations/table';import _0x2d25f8 from'./integrations/tablemergesplit';import _0x2b3f5e from'./integrations/tableheadings';import _0x3b5f2e from'./integrations/tableclipboard';import _0x4912ee from'./integrations/tablecolumnresize';import _0x4b26d6 from'./integrations/template';import _0x43e91d from'./integrations/tableofcontents';import _0x3caf88 from'./integrations/title';import _0x24744c from'./integrations/undo';import{getTranslation as _0x413b77}from'./utils/common-translations';import _0x2971e3 from'./integrations/tablecaption';import _0x1a6b48 from'./integrations/documentlistproperties';import _0x1ded50 from'./integrations/tableproperties';export default class p extends _0x642b50{static get[_0x505c('0x129')](){return[_0x505c('0x38'),_0x1d2d11,_0x26601d,_0x3a0fcc,_0x436a63,_0x482416,_0x114425,_0xc0f196,_0x18447f,_0x180757,_0x40af64,_0x1a6b48,_0x363648,_0x2642b4,_0x341b91,_0x949ee3,_0x4a90a5,_0x8fd302,_0x5ca8ca,_0x2cfd17,_0x37e678,_0x565224,_0x2266d5,_0x1500ab,_0x3e1293,_0x441d44,_0x2d0db7,_0x1254ad,_0x166cee,_0x9d9403,_0x536b8f,_0x1e3f7d,_0x10d4fa,_0x487434,_0x23b86f,_0x48871d,_0x35553d,_0x4089a0,_0x2d25f8,_0x2b3f5e,_0x2971e3,_0x3b5f2e,_0x4912ee,_0x43e91d,_0x1ded50,_0x4b26d6,_0x3caf88,_0x24744c];}static get[_0x505c('0x2')](){return'TrackChangesEditing';}constructor(_0x2858b4){function _0x1d3cdb(_0x132a3f){return _0x132a3f[_0x505c('0xa2')](_0x1a45b1=>String['fromCharCode'](_0x1a45b1))[_0x505c('0x75')]('');}super(_0x2858b4),this['set']('activeMarkers',[]),this['on'](_0x505c('0x11d'),(_0x29e0ca,_0x42f0e9,_0x2916fd,_0x4aed18)=>{this['_model'][_0x505c('0xff')](()=>{for(const _0x55a176 of[..._0x4aed18,..._0x2916fd])this[_0x505c('0x83')][_0x505c('0xfb')][_0x505c('0x26')](_0x55a176)&&_0x2858b4['editing']['reconvertMarker'](_0x55a176);});}),this[_0x505c('0x64')]=new _0x2818a4(this[_0x505c('0xd6')][_0x505c('0x110')]['schema'],this[_0x505c('0xd6')][_0x505c('0x17')]),this[_0x505c('0x12e')]=null,this[_0x505c('0x116')]=new Dt(this[_0x505c('0xd6')]),this[_0x505c('0xee')]=new Map(),this[_0x505c('0x11')]=_0x2858b4[_0x505c('0x2f')][_0x505c('0xc9')](_0x505c('0x38')),this[_0x505c('0x82')]=new Set(),this[_0x505c('0x83')]=this[_0x505c('0xd6')]['model'],this[_0x505c('0x8f')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x2858b4['config']['define']('trackChanges.trackFormatChanges',_0x505c('0x3')),this[_0x505c('0x62')]=_0x2858b4[_0x505c('0x74')]['get'](_0x505c('0xd5')),_0x2858b4['config']['define'](_0x505c('0x35'),!0x0),this['_mergeNestedSuggestions']=_0x2858b4['config']['get'](_0x505c('0x35')),this['trackChangesCommand']=new _0x3f9045(_0x2858b4,this['_enabledCommands']),this[_0x1d3cdb([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1d3cdb([0x34,0x30,0x34,0x36,0x31,0x34,0x30,0x32]);}['init'](){const _0xfcc73c=this['editor'];_0xfcc73c[_0x505c('0xbf')][_0x505c('0x8a')](_0x505c('0xf8'))['markerToHighlight']({'model':_0x505c('0x71'),'view':_0x127a1a=>{const {id:_0xc59534,type:_0x134c8d}=this[_0x505c('0x37')](_0x127a1a[_0x505c('0xea')]),_0x4fc1bd=['ck-suggestion-marker',_0x505c('0x8')+_0x134c8d];let _0x413387=0xbb8;return this['activeMarkers'][_0x505c('0x93')](_0x127a1a['markerName'])&&(_0x4fc1bd[_0x505c('0x3a')](_0x505c('0x47')),_0x413387=0xbc2),_0x505c('0x9d')==_0x134c8d&&(_0x413387+=0x5),{'classes':_0x4fc1bd,'attributes':{'data-suggestion':_0xc59534},'priority':_0x413387};}}),_0xfcc73c[_0x505c('0xbf')][_0x505c('0x8a')]('dataDowncast')['add'](_0xb7a245=>{_0xb7a245['on'](_0x505c('0xda'),(_0x1a6486,_0x5ca713,_0x1d4205)=>{if(!_0x1d4205[_0x505c('0xfd')][_0x505c('0x12f')])return;const _0x5e0654=_0x5ca713['item'];if(!_0x5e0654)return;const _0x4dfa67=_0x1d4205[_0x505c('0x77')][_0x505c('0x12d')](_0x5e0654);_0xfcc73c['model'][_0x505c('0x107')][_0x505c('0xcf')](_0x5e0654)&&_0x4dfa67&&!_0x4dfa67[_0x505c('0x34')]('widget')&&_0x4dfa67['is'](_0x505c('0x67'))&&_0x3fc30f(_0x4dfa67,_0x1d4205['writer']);},{'priority':_0x505c('0x5d')});}),_0xfcc73c['conversion']['for'](_0x505c('0xce'))[_0x505c('0xc5')]({'model':_0x505c('0x71'),'view':(_0x16942b,_0x3e21ee)=>{if(!_0x3e21ee[_0x505c('0xfd')][_0x505c('0x12f')])return null;const {type:_0x42450e}=this[_0x505c('0x37')](_0x16942b['markerName']);return{'classes':[_0x505c('0xdf'),'ck-suggestion-marker-'+_0x42450e],'priority':0xbb8};}});const _0x591f60=({showActiveMarkers:_0x34ecd8=!0x0}={})=>(_0x463d9d,_0xeab74,_0x105fde)=>{if(!_0xeab74[_0x505c('0xf4')])return;if(_0xeab74['item']['is'](_0x505c('0xde')))return void _0x105fde[_0x505c('0x76')][_0x505c('0x6a')](_0xeab74['item'],_0x463d9d[_0x505c('0x118')]);const _0x2d39bc=_0x105fde['mapper'][_0x505c('0x12d')](_0xeab74[_0x505c('0xf4')]);if(!(_0xeab74[_0x505c('0xf4')]['is'](_0x505c('0x4b'))&&_0xfcc73c[_0x505c('0x110')][_0x505c('0x107')][_0x505c('0xa3')](_0xeab74[_0x505c('0xf4')])&&!_0x2d39bc[_0x505c('0x34')](_0x505c('0x33'))))return;const {id:_0x2ea813}=this[_0x505c('0x37')](_0xeab74[_0x505c('0xea')]);_0x105fde['writer'][_0x505c('0x59')]([_0x505c('0xdf'),_0x505c('0x0')],_0x2d39bc),_0x105fde[_0x505c('0x5c')][_0x505c('0x10f')](_0x505c('0x53'),_0x2ea813,_0x2d39bc),_0x105fde['mapper'][_0x505c('0x21')](_0x2d39bc,_0xeab74['markerName']),_0x34ecd8&&(this[_0x505c('0x7d')][_0x505c('0x93')](_0xeab74[_0x505c('0xea')])?_0x105fde[_0x505c('0x5c')][_0x505c('0x59')]('ck-suggestion-marker--active',_0x2d39bc):_0x105fde[_0x505c('0x5c')][_0x505c('0x7f')](_0x505c('0x47'),_0x2d39bc));for(const _0x4450f0 of _0xfcc73c[_0x505c('0x110')]['createRangeIn'](_0xeab74['item'])[_0x505c('0x85')]())_0x105fde[_0x505c('0x76')][_0x505c('0x6a')](_0x4450f0,_0x463d9d[_0x505c('0x118')]);_0x105fde[_0x505c('0x76')][_0x505c('0x6a')](_0xeab74['item'],_0x463d9d[_0x505c('0x118')]);};_0xfcc73c[_0x505c('0xbf')][_0x505c('0x8a')](_0x505c('0xce'))['add'](_0x32ae24=>{_0x32ae24['on']('addMarker:suggestion:formatBlock',(_0x5d91f3,_0x353504,_0x1e9e76)=>{_0x1e9e76[_0x505c('0xfd')]['showSuggestionHighlights']&&_0x591f60({'showActiveMarkers':!0x1})(_0x5d91f3,_0x353504,_0x1e9e76);},{'priority':_0x505c('0x12b')});}),_0xfcc73c[_0x505c('0xbf')]['for'](_0x505c('0xce'))[_0x505c('0x4f')]({'model':_0x505c('0x71'),'view':(_0x41e22a,_0x5775ff)=>_0x5775ff[_0x505c('0xfd')][_0x505c('0x12f')]?null:{'group':'suggestion','name':_0x41e22a['substr'](0xb)}}),_0xfcc73c[_0x505c('0xbf')][_0x505c('0x8a')](_0x505c('0x9'))[_0x505c('0x9c')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xc54fda,{writer:_0x17b8ff})=>{let _0xf9d0d8=_0x505c('0x10c')+_0xc54fda[_0x505c('0x7b')](_0x505c('0x5'))+':'+_0xc54fda[_0x505c('0x7b')]('id');return _0xc54fda[_0x505c('0x7b')]('marker-count')&&(_0xf9d0d8+=':'+_0xc54fda[_0x505c('0x7b')](_0x505c('0x40'))),_0x17b8ff[_0x505c('0x99')](_0x505c('0x94'),{'data-name':_0xf9d0d8});}}),_0xfcc73c[_0x505c('0xbf')]['for'](_0x505c('0x9'))['dataToMarker']({'view':_0x505c('0x71')}),_0xfcc73c[_0x505c('0xbf')][_0x505c('0x8a')](_0x505c('0xf8'))[_0x505c('0x2c')](_0x331ff5=>{_0x331ff5['on'](_0x505c('0x112'),_0x591f60(),{'priority':_0x505c('0x5d')});}),_0xfcc73c[_0x505c('0xbf')][_0x505c('0x8a')](_0x505c('0xf8'))[_0x505c('0x2c')](_0x2d1480=>{_0x2d1480['on'](_0x505c('0x90'),(_0x5efeb3,_0x5d8b0c,_0x275e81)=>{const _0x2a94a4=_0x275e81['mapper']['markerNameToElements'](_0x5d8b0c[_0x505c('0xea')]);if(_0x2a94a4)for(const _0xf2f903 of _0x2a94a4)_0xf2f903[_0x505c('0x34')](_0x505c('0x33'))||(_0x275e81[_0x505c('0x5c')][_0x505c('0x7f')]([_0x505c('0xdf'),_0x505c('0x0'),_0x505c('0x47')],_0xf2f903),_0x275e81[_0x505c('0x5c')][_0x505c('0x11b')](_0x505c('0x53'),_0xf2f903),_0x275e81[_0x505c('0x77')]['unbindElementFromMarkerName'](_0xf2f903,_0x5d8b0c[_0x505c('0xea')]));},{'priority':_0x505c('0x5d')});}),_0xfcc73c[_0x505c('0x110')][_0x505c('0xfc')][_0x505c('0x1e')](_0x3d54b1=>{let _0x4a100a=!0x1;const _0x213600=Array[_0x505c('0xfa')](_0xfcc73c[_0x505c('0x110')]['document'][_0x505c('0xed')]['getChangedMarkers']()),_0x1041dd=new Set();for(const {name:_0x51e049,data:_0xe3358a}of _0x213600){const {group:_0x4c497e,type:_0x173418,id:_0x36c54f}=this['_splitMarkerName'](_0x51e049);if(_0x505c('0x71')!==_0x4c497e)continue;const _0x15dbce=this['_suggestions']['get'](_0x36c54f);if(null!=_0xe3358a['newRange']){_0x505c('0x50')==_0x173418&&(_0x4a100a=_0x4a100a||Mt(_0xe3358a[_0x505c('0x69')],_0x51e049,_0x3d54b1,_0xfcc73c[_0x505c('0x110')]['schema']));if(_0xe3358a[_0x505c('0x69')][_0x505c('0x132')]||_0x505c('0x16')==_0xe3358a['newRange'][_0x505c('0xd2')][_0x505c('0x91')]||_0x505c('0xa5')==_0x173418&&!Nt(_0xe3358a[_0x505c('0x69')])||_0x505c('0x9d')==_0x173418&&!(!_t(_0x370551=_0xe3358a[_0x505c('0x69')])&&!function(_0x318eb1){return _0x318eb1[_0x505c('0x103')][_0x505c('0x6c')]==_0x318eb1[_0x505c('0x135')][_0x505c('0x24')]&&_0x318eb1[_0x505c('0x103')][_0x505c('0x125')];}(_0x370551)))_0x3d54b1[_0x505c('0xe5')](_0x51e049),_0x4a100a=!0x0;else{if(!_0x15dbce||!_0x15dbce['isInContent'])continue;_0x1041dd['add'](_0x15dbce);}}}var _0x370551;return _0x1041dd[_0x505c('0x39')]>0x0&&(_0x4a100a=!!this['_joinWithAdjacentSuggestions'](_0x1041dd)||_0x4a100a),_0x4a100a;}),_0xfcc73c[_0x505c('0x110')][_0x505c('0xfc')][_0x505c('0x1e')](_0x4cdb15=>{let _0x42230a=!0x1;for(const _0x44452e of _0xfcc73c[_0x505c('0x110')][_0x505c('0xfc')][_0x505c('0xed')][_0x505c('0xf9')]()){if(_0x505c('0xbd')!=_0x44452e[_0x505c('0x98')])continue;const _0x57d80b=_0x44452e[_0x505c('0x114')][_0x505c('0x1b')](_0x44452e[_0x505c('0x8e')]);if(_0x57d80b[_0x505c('0x125')])for(const _0x502a95 of this[_0x505c('0xee')]['values']()){if(_0x502a95[_0x505c('0xf1')]||!_0x502a95[_0x505c('0x7a')])continue;if(_0x505c('0xa5')!=_0x502a95['type'])continue;const _0x28c196=_0x502a95[_0x505c('0x20')]();if(_0x28c196[_0x505c('0x103')]['parent']!=_0x28c196[_0x505c('0x135')][_0x505c('0x6c')]&&_0x28c196[_0x505c('0x135')][_0x505c('0xa0')](_0x44452e[_0x505c('0x114')])){const _0xd0c977=_0xfcc73c[_0x505c('0x110')][_0x505c('0xab')](_0x28c196[_0x505c('0x103')],_0x57d80b);_0x4cdb15[_0x505c('0x7')](_0x502a95[_0x505c('0x12c')](),{'range':_0xd0c977}),_0x42230a=!0x0;}}}return _0x42230a;}),_0xfcc73c[_0x505c('0x110')][_0x505c('0xfb')]['on'](_0x505c('0x4e'),(_0x462bce,_0x45285c,_0x54f81f)=>{if(null==_0x54f81f){const {id:_0x5550c9}=this['_splitMarkerName'](_0x45285c[_0x505c('0x118')]),_0x20b8c4=this[_0x505c('0xee')][_0x505c('0xc9')](_0x5550c9);_0x20b8c4&&_0x20b8c4['addMarkerName'](_0x45285c[_0x505c('0x118')]);}}),_0xfcc73c[_0x505c('0x110')][_0x505c('0xfc')]['on'](_0x505c('0x9b'),()=>{const _0x588086=Array['from'](_0xfcc73c[_0x505c('0x110')][_0x505c('0xfc')][_0x505c('0xed')]['getChangedMarkers']())[_0x505c('0x10d')](_0x1063c4=>_0x505c('0x71')===this['_splitMarkerName'](_0x1063c4[_0x505c('0x118')])[_0x505c('0xd')]);if(0x0===_0x588086['length'])return;_0x588086['sort']((_0xc5b674,_0x4cd56c)=>{const _0x3bd53b=_0xc5b674[_0x505c('0xd3')][_0x505c('0x105')],_0x5d7d08=_0x4cd56c[_0x505c('0xd3')][_0x505c('0x105')];return null===_0x3bd53b&&null===_0x5d7d08?0x0:null===_0x3bd53b&&null!==_0x5d7d08?-0x1:null!==_0x3bd53b&&null===_0x5d7d08?0x1:_0x3bd53b[_0x505c('0x103')][_0x505c('0x131')](_0x5d7d08[_0x505c('0x103')])?-0x1:0x1;});const _0xcd86ec=new Set(),_0xbc4e9d=new Set();for(const {name:_0x4860b2,data:_0x47b44d}of _0x588086){const {id:_0x36c054}=this[_0x505c('0x37')](_0x4860b2);if(null===_0x47b44d[_0x505c('0x105')]){const _0x28f280=this[_0x505c('0x54')](_0x4860b2);_0xbc4e9d[_0x505c('0x2c')](_0x28f280);}else{const _0x58de6b=this[_0x505c('0xee')][_0x505c('0xc9')](_0x36c054);null!==_0x47b44d[_0x505c('0x69')]||_0x58de6b[_0x505c('0x7a')]?(_0xcd86ec[_0x505c('0x2c')](_0x58de6b[_0x505c('0x80')]),_0xbc4e9d['add'](_0x58de6b)):this['_removeSuggestion'](_0x58de6b);}}_0xbc4e9d['size']>0x0&&this['_refreshSuggestionsChain'](_0xbc4e9d);for(const _0x53cabc of _0xcd86ec)this[_0x505c('0xf5')](_0x505c('0x5a'),_0x53cabc);}),_0xfcc73c[_0x505c('0x110')]['on'](_0x505c('0x14'),(_0x828f0,_0x2386f1)=>{const _0x2113e6=_0x2386f1[0x0];if(!this[_0x505c('0xee')][_0x505c('0x39')])return;if(!_0x2113e6[_0x505c('0x6d')])return;if(_0x2113e6[_0x505c('0x97')]['isUndo']||!_0x2113e6['batch']['isLocal'])return;let _0x366d4b,_0x5e3ea1;switch(_0x2113e6[_0x505c('0x98')]){case'insert':_0x366d4b=_0xfcc73c['model'][_0x505c('0x65')](_0x2113e6[_0x505c('0x114')]),_0x5e3ea1=_0x366d4b['getShiftedBy'](_0x2113e6['howMany']);break;case _0x505c('0xc3'):_0x366d4b=_0xfcc73c[_0x505c('0x110')]['createPositionAt'](_0x2113e6[_0x505c('0x55')]),_0x5e3ea1=_0xfcc73c[_0x505c('0x110')][_0x505c('0x65')](_0x2113e6['moveTargetPosition']);break;case _0x505c('0xd9'):_0x366d4b=_0xfcc73c[_0x505c('0x110')][_0x505c('0x65')](_0x2113e6['targetPosition']),_0x5e3ea1=_0x366d4b[_0x505c('0x1b')](_0x2113e6[_0x505c('0xec')]);break;default:return;}const _0x331864=_0xfcc73c[_0x505c('0x110')]['createRange'](_0x366d4b,_0x5e3ea1);_0xfcc73c['model'][_0x505c('0xff')](()=>{for(const {suggestion:_0x570538,meta:_0x4bb097}of this[_0x505c('0x11e')](_0x331864)){if(_0x570538[_0x505c('0xf1')])continue;if('formatInline'==_0x570538[_0x505c('0x98')])continue;const _0x4ab535=_0x570538[_0x505c('0xd3')]&&_0x570538[_0x505c('0xd3')]['multipleBlocks'];('formatBlock'!=_0x570538[_0x505c('0x98')]||_0x505c('0xc3')==_0x2113e6[_0x505c('0x98')]&&!_0x4ab535)&&(_0x4bb097['containsRangeInObject']||'insertion'==_0x570538[_0x505c('0x98')]&&_0x4bb097[_0x505c('0xc4')]||_0x570538[_0x505c('0x20')]()['containsRange'](_0x331864)&&this[_0x505c('0x84')](_0x570538,_0x366d4b,_0x5e3ea1));}});},{'priority':'lowest'}),_0xfcc73c[_0x505c('0x110')]['on'](_0x505c('0x11c'),(_0x541c9f,_0x27833d)=>{const _0x1b90ae=_0x27833d[0x0],_0x288aec=_0x27833d[0x1];if(_0x288aec&&_0x288aec['forceDefaultExecution'])return;if(this[_0x505c('0xf7')])return;if(!this['trackChangesCommand'][_0x505c('0x73')])return;if(_0x1b90ae[_0x505c('0x132')])return;const _0x2f8966=_0xfcc73c['model'][_0x505c('0x107')],{start:_0x3120e1,end:_0x1a1dd2}=_0x1b90ae[_0x505c('0x20')](),_0x4e6240=_0x3120e1[_0x505c('0xba')]&&_0x2f8966[_0x505c('0x9e')](_0x3120e1[_0x505c('0xba')])?null:_0x2f8966['getNearestSelectionRange'](_0x3120e1,_0x505c('0x115')),_0x44179c=_0x1a1dd2[_0x505c('0x24')]&&_0x2f8966[_0x505c('0x9e')](_0x1a1dd2[_0x505c('0x24')])?null:_0x2f8966[_0x505c('0x10e')](_0x1a1dd2,_0x505c('0x12a')),_0x2747b4=_0xfcc73c[_0x505c('0x110')][_0x505c('0xab')](_0x4e6240?_0x4e6240[_0x505c('0x103')]:_0x3120e1,_0x44179c?_0x44179c['end']:_0x1a1dd2);_0xfcc73c[_0x505c('0x110')][_0x505c('0xff')](_0x286494=>{this[_0x505c('0x11a')](_0x2747b4);const _0x1f6653=_0xfcc73c['model'][_0x505c('0x107')][_0x505c('0x10e')](_0x2747b4[_0x505c('0x103')]);_0x1b90ae['is'](_0x505c('0x127'))?_0x286494[_0x505c('0x2e')](_0x1f6653):_0x1b90ae[_0x505c('0xc')](_0x1f6653);}),_0x541c9f[_0x505c('0x134')]();},{'priority':_0x3338f3[_0x505c('0x49')]+0xa}),_0xfcc73c[_0x505c('0x110')]['on']('insertContent',(_0x40d875,_0x341c36)=>{const _0x5bcef2=_0x341c36[_0x341c36[_0x505c('0x8e')]-0x1];_0x5bcef2&&_0x5bcef2['forceDefaultExecution']||this[_0x505c('0xf7')]||this[_0x505c('0xae')][_0x505c('0x73')]&&(_0xfcc73c['model']['change'](()=>{let _0xce1962=_0xfcc73c[_0x505c('0x110')][_0x505c('0xe4')](_0x341c36[0x0],_0x341c36[0x1],_0x341c36[0x2],{'forceDefaultExecution':!0x0});if(!_0xce1962)return;_0x40d875[_0x505c('0x120')]=_0xce1962[_0x505c('0xb7')]();const _0x12d27b=_0xce1962[_0x505c('0x135')]['nodeBefore'],_0x54b9c9=_0xfcc73c['model']['schema'];_0x12d27b&&_0x54b9c9['isBlock'](_0x12d27b)&&!_0x54b9c9[_0x505c('0xcf')](_0x12d27b)&&(_0xce1962=_0xfcc73c[_0x505c('0x110')]['createRange'](_0xce1962['start'],_0xfcc73c[_0x505c('0x110')][_0x505c('0x65')](_0x12d27b,_0x505c('0x135')))),this[_0x505c('0x78')](_0xce1962);}),_0x40d875[_0x505c('0x134')]());},{'priority':_0x505c('0x5d')}),this[_0x505c('0xd6')]['commands'][_0x505c('0x2c')](_0x505c('0x1f'),this['trackChangesCommand']),this[_0x505c('0x70')](_0x505c('0x1f'));const _0x318247=new _0x1ea979(_0xfcc73c,this[_0x505c('0xee')]);_0xfcc73c[_0x505c('0x2b')][_0x505c('0x2c')]('acceptSuggestion',_0x318247),this[_0x505c('0x70')]('acceptSuggestion');const _0x5d5650=new _0x4135ca(_0xfcc73c,this[_0x505c('0xee')]);_0xfcc73c[_0x505c('0x2b')]['add'](_0x505c('0x6f'),_0x5d5650),this[_0x505c('0x70')](_0x505c('0x6f')),_0xfcc73c[_0x505c('0x2b')][_0x505c('0x2c')](_0x505c('0xd1'),new _0xf7c60c(_0xfcc73c,_0x318247,this[_0x505c('0xee')])),this['enableCommand'](_0x505c('0xd1')),_0xfcc73c['commands']['add']('discardAllSuggestions',new _0xf7c60c(_0xfcc73c,_0x5d5650,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xfcc73c[_0x505c('0x2b')][_0x505c('0x2c')]('acceptSelectedSuggestions',new _0x39a61f(_0xfcc73c,_0x318247,this[_0x505c('0xee')])),this[_0x505c('0x70')](_0x505c('0xa6')),_0xfcc73c[_0x505c('0x2b')][_0x505c('0x2c')](_0x505c('0xb2'),new _0x39a61f(_0xfcc73c,_0x5d5650,this['_suggestions'])),this[_0x505c('0x70')](_0x505c('0xb2'));const _0x59dc5e=_0xfcc73c['plugins'][_0x505c('0xc9')](_0x505c('0x38'));this[_0x505c('0x2d')](_0x59dc5e,_0x505c('0xb4'),(_0x43183c,{threadId:_0xa872d2})=>{const _0x1c3df5=this[_0x505c('0xee')][_0x505c('0xc9')](_0xa872d2);_0x1c3df5&&_0x1c3df5['commentThread']&&0x1===_0x1c3df5[_0x505c('0xa4')]['length']&&this[_0x505c('0x86')](_0xa872d2,{'hasComments':!0x0});},{'priority':_0x505c('0x7e')}),this[_0x505c('0x2d')](_0x59dc5e,_0x505c('0xd0'),(_0xe302a5,{threadId:_0x189681})=>{const _0x56f23d=this['_suggestions'][_0x505c('0xc9')](_0x189681);_0x56f23d&&_0x56f23d['commentThread']&&!_0x56f23d[_0x505c('0xa4')][_0x505c('0x8e')]&&this[_0x505c('0x86')](_0x189681,{'hasComments':!0x1});},{'priority':_0x505c('0x7e')});}set[_0x505c('0xe0')](_0x5557d2){if(this[_0x505c('0x12e')])throw new _0x1dd7d0(_0x505c('0xef'),this);this[_0x505c('0x12e')]=_0x5557d2;}get[_0x505c('0xe0')](){return this[_0x505c('0x12e')];}[_0x505c('0xcc')]({skipNotAttached:_0x2f8a7f=!0x1,toJSON:_0x2957de=!0x1}={}){const _0xe7793b=[];for(const _0x48011e of this['_suggestions'][_0x505c('0x3d')]())_0x2f8a7f&&!_0x48011e['isInContent']||_0xe7793b[_0x505c('0x3a')](_0x48011e);return _0x2957de?_0xe7793b[_0x505c('0xa2')](_0x3c9393=>_0x3c9393[_0x505c('0x56')]()):_0xe7793b;}[_0x505c('0xf0')](_0x47fab7){const _0x2e50f4=this['_suggestions']['get'](_0x47fab7);if(!_0x2e50f4)throw new _0x1dd7d0('track-changes-suggestion-not-found',this);return _0x2e50f4;}[_0x505c('0x72')](_0x3eeee7){return this['_suggestions'][_0x505c('0x26')](_0x3eeee7);}[_0x505c('0x124')](_0x583c19){const {authorId:_0x455e8e,id:_0x2243de,attributes:_0x163176}=_0x583c19,[_0xf77646,_0xdc8a4c]=_0x583c19[_0x505c('0x98')][_0x505c('0xc3')](':'),_0x481b67=this[_0x505c('0xee')][_0x505c('0xc9')](_0x2243de)||this[_0x505c('0x79')](_0xf77646,_0xdc8a4c,_0x2243de,_0x455e8e,_0x163176);if(this[_0x505c('0x109')](_0x481b67),this[_0x505c('0x30')](_0x481b67,_0xf77646,_0xdc8a4c||null,_0x455e8e),_0x481b67[_0x505c('0xb5')]=_0x583c19[_0x505c('0xb5')],_0x163176&&_0x163176[_0x505c('0x63')]){const _0x48d08e=_0x163176[_0x505c('0x63')],_0x2f8725=this['_getExternalAuthor'](_0x48d08e['authorName']);_0x481b67[_0x505c('0xca')]=_0x48d08e[_0x505c('0xb5')],_0x481b67[_0x505c('0xc6')]=_0x2f8725,_0x481b67[_0x505c('0x23')]=!0x0;}else _0x481b67['authoredAt']=_0x583c19[_0x505c('0xb5')];switch(_0x583c19['data']&&(_0x481b67[_0x505c('0xd3')]=_0x583c19[_0x505c('0xd3')]),_0x583c19[_0x505c('0x2a')]&&(_0x481b67['attributes']=_0x583c19['attributes']),this[_0x505c('0x12e')]&&this[_0x505c('0x12e')][_0x505c('0x9f')]||(_0x481b67[_0x505c('0xb6')]=!0x0),this[_0x505c('0x8f')]['get'](_0x481b67)){case _0x505c('0x29'):this[_0x505c('0x8f')][_0x505c('0xb')](_0x481b67,_0x505c('0xb8'));break;case _0x505c('0xbb'):_0x481b67[_0x505c('0x7a')]?(this[_0x505c('0x8f')][_0x505c('0xb')](_0x481b67,_0x505c('0x15')),this[_0x505c('0xf5')](_0x505c('0x41'),_0x481b67)):this['_suggestionState'][_0x505c('0xb')](_0x481b67,_0x505c('0x58'));}return _0x481b67;}[_0x505c('0x43')](_0x17fdb9){this[_0x505c('0x121')](()=>{this[_0x505c('0xd6')]['model'][_0x505c('0xff')](()=>{for(const _0x224417 of _0x17fdb9[_0x505c('0x45')]())_0x224417[_0x505c('0xf6')]();});});}['discardSuggestion'](_0x3550ed){this[_0x505c('0x121')](()=>{this[_0x505c('0xd6')][_0x505c('0x110')][_0x505c('0xff')](()=>{for(const _0x1e8227 of _0x3550ed[_0x505c('0x45')]())_0x1e8227[_0x505c('0x92')]();});});}['enableCommand'](_0xfb8087,_0x4ed0ca){const _0x393210=this[_0x505c('0xd6')][_0x505c('0x2b')][_0x505c('0xc9')](_0xfb8087);if(!_0x393210)throw new _0x1dd7d0('track-changes-command-not-found',this,{'commandName':_0xfb8087});this['_enabledCommands'][_0x505c('0x2c')](_0x393210),_0x4ed0ca&&_0x393210['on'](_0x505c('0xe'),(_0x3e2975,_0x2bcdfc)=>{this[_0x505c('0xae')][_0x505c('0x73')]&&(this[_0x505c('0xf7')]||_0x2bcdfc[_0x505c('0x8e')]>0x0&&_0x2bcdfc[_0x2bcdfc[_0x505c('0x8e')]-0x1]&&_0x2bcdfc[_0x2bcdfc[_0x505c('0x8e')]-0x1][_0x505c('0x121')]||(_0x4ed0ca((..._0x38be0f)=>_0x393210[_0x505c('0xe')](..._0x38be0f,{'forceDefaultExecution':!0x0}),..._0x2bcdfc),_0x3e2975['stop']()));},{'priority':_0x505c('0x5d')});}[_0x505c('0x121')](_0x1fd766){let _0x56e26d,_0x3fba97;const _0x2353e6=this[_0x505c('0xf7')];this[_0x505c('0xf7')]=!0x0;try{_0x56e26d=_0x1fd766();}catch(_0x4448e1){_0x3fba97=_0x4448e1;}return _0x2353e6||(this[_0x505c('0xf7')]=!0x1),_0x3fba97&&_0x1dd7d0[_0x505c('0x48')](_0x3fba97,this),_0x56e26d;}[_0x505c('0x78')](_0x59cb65,_0x2c0f00=null,_0x380c8f={}){if(_0x59cb65[_0x505c('0x132')])return null;const _0x370d70=this[_0x505c('0xd6')]['plugins']['get'](_0x505c('0xdc'))['me'];for(const {suggestion:_0x5b7fa1,meta:_0xbfb3c}of this[_0x505c('0x11e')](_0x59cb65,_0x505c('0xcd')))if(_0xbfb3c['isOwn']){if(!_0xbfb3c[_0x505c('0x108')]){if(!this[_0x505c('0x5e')]&&_0xbfb3c[_0x505c('0x126')])continue;return _0x5b7fa1;}if(_0x2c0f00==_0x5b7fa1[_0x505c('0xf3')]){const _0x340934=_0x5b7fa1[_0x505c('0x20')]();return _0x340934[_0x505c('0x103')]['isEqual'](_0x59cb65[_0x505c('0x135')])?this['_setSuggestionRange'](_0x5b7fa1,this['_model'][_0x505c('0xab')](_0x59cb65[_0x505c('0x103')],_0x340934[_0x505c('0x135')])):this['_setSuggestionRange'](_0x5b7fa1,this[_0x505c('0x83')]['createRange'](_0x340934['start'],_0x59cb65[_0x505c('0x135')])),_0x5b7fa1;}}const _0x5d9d20=_0x226cf0(),_0x5ccec9=_0x370d70['id'],_0x5bda67=_0x2c0f00?_0x505c('0xdb')+_0x2c0f00:_0x505c('0xcd'),_0x456d16=this[_0x505c('0x4c')]({'id':_0x5d9d20,'type':_0x5bda67,'createdAt':new Date(),'authorId':_0x5ccec9,'attributes':_0x380c8f});return this['_addSuggestionMarker'](_0x5bda67,_0x5d9d20,_0x5ccec9,_0x59cb65),_0x456d16;}[_0x505c('0x7c')](_0x4c8706,_0x209059=_0x505c('0xbe'),_0x4d2188={}){const _0x334672=this[_0x505c('0xd6')][_0x505c('0x2f')][_0x505c('0xc9')](_0x505c('0xdc'))['me'],_0x2a6922=this[_0x505c('0x116')][_0x505c('0x3b')](_0x505c('0xcd'),_0x209059,_0x505c('0x75'));for(const _0x46ca7d of this[_0x505c('0xcc')]())if(_0x46ca7d['author']['id']==_0x334672['id']&&'insertion'==_0x46ca7d[_0x505c('0x98')]&&_0x46ca7d[_0x505c('0xf3')]==_0x209059&&(_0x2a6922(_0x46ca7d[_0x505c('0x60')](),_0x4c8706)||_0x2a6922(_0x4c8706,_0x46ca7d[_0x505c('0x60')]()))){for(const _0x2456cb of _0x4c8706)_0x46ca7d[_0x505c('0x113')](_0x2456cb);return _0x46ca7d;}if(this[_0x505c('0x5e')])for(const _0x588ed7 of _0x4c8706)for(const {suggestion:_0x3f8e64,meta:_0x358a27}of this['_findSuggestions'](_0x588ed7,'insertion')){if(!_0x358a27[_0x505c('0xc4')])continue;let _0x52dc76=!0x0;for(const _0x1d01dc of _0x3f8e64[_0x505c('0x60')]())for(const _0xc32c7d of _0x4c8706)if(!_0x1d01dc[_0x505c('0xdd')](_0xc32c7d)){_0x52dc76=!0x1;break;}if(_0x52dc76)return _0x3f8e64;}const _0x32fb17=_0x226cf0(),_0x282411=_0x334672['id'],_0x3de328=_0x505c('0xdb')+_0x209059,_0x2003a3=this[_0x505c('0x4c')]({'id':_0x32fb17,'type':_0x3de328,'createdAt':new Date(),'authorId':_0x282411,'attributes':_0x4d2188});for(const _0x58104c of _0x4c8706)this[_0x505c('0x31')](_0x3de328,_0x32fb17,_0x282411,_0x58104c,_0x492b8e[_0x505c('0x122')]());return _0x2003a3;}['markInlineFormat'](_0x42076f,_0x2a19f4,_0x234c9d=null,_0x33c3c6={}){if(_0x234c9d=_0x234c9d||$t(_0x2a19f4),_0x42076f[_0x505c('0x132')])return null;if('never'===this[_0x505c('0x62')]){const _0x33cb23=this[_0x505c('0x116')][_0x505c('0x3b')]('formatInline',_0x234c9d,'accept');return this[_0x505c('0x121')](()=>_0x33cb23([_0x42076f],_0x2a19f4,_0x33c3c6)),null;}const _0x56bed5=this[_0x505c('0xd6')][_0x505c('0x2f')][_0x505c('0xc9')]('Users')['me'],_0x472dd6=[];if('always'!==this[_0x505c('0x62')])for(const {suggestion:_0x1c916f,meta:_0x3f114f}of this[_0x505c('0x11e')](_0x42076f,_0x505c('0xcd')))_0x3f114f[_0x505c('0xc4')]&&!_0x3f114f[_0x505c('0x3c')]&&_0x472dd6[_0x505c('0x3a')](..._0x1c916f[_0x505c('0x60')]());const _0x4825bb=function(_0x244b20,_0x5de4d2){const _0x5d8b20=[];for(const _0x2120ca of _0x5de4d2){const _0x5c7b95=_0x244b20[_0x505c('0xa1')](_0x2120ca);_0x5c7b95&&_0x5d8b20[_0x505c('0x3a')](_0x5c7b95);}return _0x5d8b20;}(_0x42076f,_0x472dd6),_0x92348e=function(_0xb8ed9b,_0x316ecf){const _0x3bde23=[_0xb8ed9b];for(const _0x3e853f of _0x316ecf){let _0x26bbd9=0x0;for(;_0x26bbd9<_0x3bde23['length'];){const _0x2113f1=_0x3bde23[_0x26bbd9][_0x505c('0x10')](_0x3e853f);_0x3bde23[_0x505c('0x1')](_0x26bbd9,0x1,..._0x2113f1),_0x26bbd9+=_0x2113f1[_0x505c('0x8e')];}}return _0x3bde23;}(_0x42076f,_0x472dd6);_0x4825bb[_0x505c('0x8e')]&&this[_0x505c('0x83')][_0x505c('0xff')](()=>{for(const _0x5ee958 of _0x4825bb){const _0x307971=this['_suggestionFactory']['getSuggestionCallback'](_0x505c('0x50'),_0x234c9d,'accept');this[_0x505c('0x121')](()=>_0x307971([_0x5ee958],_0x2a19f4,_0x33c3c6));}});for(const _0x9505f4 of _0x92348e){let _0x1fd4b5=null,_0x45dec6=_0x9505f4[_0x505c('0x103')],_0x386219=_0x9505f4[_0x505c('0x135')];for(const {suggestion:_0xf86a78,meta:_0x2edd32}of this['_findSuggestions'](_0x9505f4,_0x505c('0x50'))){if(!_0x2edd32[_0x505c('0xc4')])continue;if(_0xf86a78[_0x505c('0xf3')]!=_0x234c9d)continue;const _0x587a4f=_0xf86a78[_0x505c('0x20')]();if(_0x587a4f[_0x505c('0xdd')](_0x9505f4,!0x0))return null;_0x45dec6=_0x45dec6[_0x505c('0x131')](_0x587a4f['start'])?_0x45dec6:_0x587a4f[_0x505c('0x103')],_0x386219=_0x386219[_0x505c('0x95')](_0x587a4f[_0x505c('0x135')])?_0x386219:_0x587a4f['end'],_0x1fd4b5?_0x587a4f[_0x505c('0x103')]['isBefore'](_0x1fd4b5[_0x505c('0x20')]()[_0x505c('0x103')])?(_0x1fd4b5[_0x505c('0xc0')](),_0x1fd4b5=_0xf86a78):_0xf86a78[_0x505c('0xc0')]():_0x1fd4b5=_0xf86a78;}const _0xf142f6=this[_0x505c('0x83')]['createRange'](_0x45dec6,_0x386219);if(_0x1fd4b5)this[_0x505c('0x25')](_0x1fd4b5,_0xf142f6);else{const _0x483e46=_0x226cf0(),_0xe3d670=_0x56bed5['id'];this['_setSuggestionData']({'id':_0x483e46,'type':_0x505c('0x133')+_0x234c9d,'data':_0x2a19f4,'createdAt':new Date(),'authorId':_0xe3d670,'attributes':_0x33c3c6}),this[_0x505c('0x31')]('formatInline:'+_0x234c9d,_0x483e46,_0xe3d670,_0xf142f6);}}return null;}[_0x505c('0xb1')](_0x25d64d,_0x5dd056,_0x17f9e8=[],_0x111025=null,_0x4a9095={}){_0x5dd056[_0x505c('0x42')]||(_0x5dd056[_0x505c('0x42')]=_0x5dd056[_0x505c('0x96')]),_0x5dd056[_0x505c('0x5b')]=_0x25d64d['is']('range'),_0x111025=_0x111025||$t(_0x5dd056);const _0x5b43c2=_0x17f9e8[_0x505c('0xa2')](_0x111eca=>Rt(_0x111eca,this[_0x505c('0x83')])),_0x2172a5=_0x25d64d['is']('range')?_0x25d64d:Rt(_0x25d64d,this['_model']);if('never'===this[_0x505c('0x62')]){const _0x4b0520=this['_suggestionFactory'][_0x505c('0x3b')]('formatBlock',_0x111025,_0x505c('0xf6'));return this[_0x505c('0x121')](()=>_0x4b0520([_0x2172a5],_0x5dd056,_0x4a9095)),null;}_0x5b43c2[_0x505c('0x3a')](_0x2172a5);let _0x226324=!0x0;for(const _0x11b35a of _0x5b43c2)if(!this[_0x505c('0xcb')](_0x11b35a)){_0x226324=!0x1;break;}if(_0x226324&&_0x505c('0xa8')!==this[_0x505c('0x62')]){const _0x217378=this[_0x505c('0x116')][_0x505c('0x3b')](_0x505c('0xa5'),_0x111025,_0x505c('0xf6'));return this[_0x505c('0x121')](()=>_0x217378([_0x2172a5],_0x5dd056,_0x4a9095)),null;}let _0x33fc36=null,_0x115a28=_0x2172a5['start'],_0x400a65=_0x2172a5[_0x505c('0x135')];for(const {suggestion:_0x10f6f7,meta:_0x35909a}of this[_0x505c('0x11e')](_0x2172a5,_0x505c('0xa5'))){if(!_0x35909a['isOwn']||_0x35909a['isNextTo']||_0x35909a['containsRangeInObject']||_0x35909a[_0x505c('0x3c')])continue;if(_0x10f6f7['data'][_0x505c('0x42')]!=_0x5dd056['formatGroupId'])continue;const _0x492560=_0x10f6f7['getFirstRange']();if(_0x10f6f7[_0x505c('0xf3')]==_0x111025){if(_0x492560[_0x505c('0xdd')](_0x2172a5,!0x0))return null;_0x115a28=_0x115a28[_0x505c('0x131')](_0x492560[_0x505c('0x103')])?_0x115a28:_0x492560['start'],_0x400a65=_0x400a65[_0x505c('0x95')](_0x492560[_0x505c('0x135')])?_0x400a65:_0x492560[_0x505c('0x135')],_0x33fc36?_0x492560[_0x505c('0x103')][_0x505c('0x131')](_0x33fc36[_0x505c('0x20')]()[_0x505c('0x103')])?(_0x33fc36[_0x505c('0xc0')](),_0x33fc36=_0x10f6f7):_0x10f6f7['removeMarkers']():_0x33fc36=_0x10f6f7;}else{const _0x93d125=_0x2172a5['getIntersection'](_0x492560);this[_0x505c('0xd8')](_0x10f6f7,_0x93d125);}}const _0x39623a=this['editor']['plugins']['get'](_0x505c('0xdc'))['me'],_0x44a226=_0x226cf0(),_0x64e140=_0x39623a['id'];if(_0x33fc36)return this[_0x505c('0x25')](_0x33fc36,this[_0x505c('0x83')][_0x505c('0xab')](_0x115a28,_0x400a65)),_0x33fc36;{const _0x551485=this[_0x505c('0x4c')]({'id':_0x44a226,'type':'formatBlock:'+_0x111025,'data':_0x5dd056,'createdAt':new Date(),'authorId':_0x64e140,'attributes':_0x4a9095});return this[_0x505c('0x31')](_0x505c('0xeb')+_0x111025,_0x44a226,_0x64e140,this[_0x505c('0x83')][_0x505c('0xab')](_0x115a28,_0x400a65)),_0x551485;}}[_0x505c('0xe2')](_0x1a77df,_0x574e56,_0x2adf46=[],_0x115eb0=null,_0x3d7faf={}){_0x574e56['formatGroupId']||(_0x574e56[_0x505c('0x42')]=_0x574e56[_0x505c('0x96')]);const _0x1f8e43=_0x1a77df[0x0];_0x574e56[_0x505c('0x5b')]=_0x1f8e43['is'](_0x505c('0x1c')),_0x115eb0=_0x115eb0||$t(_0x574e56);const _0xbeb56f=_0x2adf46[_0x505c('0xa2')](_0x337169=>Rt(_0x337169,this[_0x505c('0x83')])),_0x53beb6=_0x1f8e43['is']('range')?_0x1a77df:_0x1a77df[_0x505c('0xa2')](_0x1c42c5=>Rt(_0x1c42c5,this[_0x505c('0x83')]));if('never'===this[_0x505c('0x62')]){const _0x192aab=this['_suggestionFactory']['getSuggestionCallback'](_0x505c('0xa5'),_0x115eb0,_0x505c('0xf6'));return this[_0x505c('0x121')](()=>_0x192aab(_0x53beb6,_0x574e56,_0x3d7faf)),null;}_0xbeb56f[_0x505c('0x3a')](..._0x53beb6);let _0x3bd561=!0x0;for(const _0x40a513 of _0xbeb56f)if(!this['_rangeIsInLocalUserInsertion'](_0x40a513)){_0x3bd561=!0x1;break;}if(_0x3bd561&&'always'!==this[_0x505c('0x62')]){const _0x190f72=this[_0x505c('0x116')][_0x505c('0x3b')](_0x505c('0xa5'),_0x115eb0,'accept');return this['forceDefaultExecution'](()=>_0x190f72(_0x53beb6,_0x574e56,_0x3d7faf)),null;}const _0x4e00b0=this[_0x505c('0xd6')]['plugins'][_0x505c('0xc9')](_0x505c('0xdc'))['me'];for(const _0x9ac6 of this[_0x505c('0xcc')]()){if(_0x9ac6['author']['id']!=_0x4e00b0['id'])continue;if(_0x505c('0xa5')!=_0x9ac6['type']||_0x9ac6[_0x505c('0xd3')][_0x505c('0x42')]!=_0x574e56[_0x505c('0x42')])continue;const _0x38971d=_0x9ac6[_0x505c('0xf3')]==_0x115eb0;for(let _0x4bcb97=0x0;_0x4bcb97<_0x53beb6[_0x505c('0x8e')];_0x4bcb97++){const _0x5dbf6c=_0x53beb6[_0x4bcb97];for(const _0x91a9e1 of _0x9ac6['getMarkers']()){const _0x18aab8=_0x91a9e1[_0x505c('0xe9')]();if(_0x5dbf6c['isEqual'](_0x18aab8)){_0x38971d?(_0x53beb6[_0x505c('0x1')](_0x4bcb97,0x1),_0x4bcb97--):_0x9ac6[_0x505c('0xe5')](_0x91a9e1[_0x505c('0x118')]);break;}}}}if(0x0==_0x53beb6[_0x505c('0x8e')])return null;const _0x4ef21b=this[_0x505c('0x116')][_0x505c('0x3b')]('formatBlock',_0x115eb0,'join');for(const _0x11d588 of this[_0x505c('0xcc')]())if(_0x11d588[_0x505c('0xc6')]['id']==_0x4e00b0['id']&&_0x505c('0xa5')==_0x11d588[_0x505c('0x98')]&&_0x11d588[_0x505c('0xd3')][_0x505c('0x42')]==_0x574e56[_0x505c('0x42')]&&_0x11d588[_0x505c('0xf3')]==_0x115eb0&&(_0x4ef21b(_0x11d588['getRanges'](),_0x53beb6)||_0x4ef21b(_0x53beb6,_0x11d588[_0x505c('0x60')]()))){for(const _0x3dc391 of _0x53beb6)_0x11d588[_0x505c('0x113')](_0x3dc391);return _0x11d588;}const _0x18d5f8=_0x226cf0(),_0x401f60=_0x4e00b0['id'],_0x26a34e='formatBlock:'+_0x115eb0,_0x45b573=this['_setSuggestionData']({'id':_0x18d5f8,'type':_0x26a34e,'data':_0x574e56,'createdAt':new Date(),'authorId':_0x401f60,'attributes':_0x3d7faf});for(const _0x27c453 of _0x53beb6)this[_0x505c('0x31')](_0x26a34e,_0x18d5f8,_0x401f60,_0x27c453,_0x492b8e[_0x505c('0x122')]());return _0x45b573;}[_0x505c('0x11a')](_0x6ef183,_0x1a4549=null,_0x9e611f={}){if(_0x6ef183['isCollapsed'])return null;const _0x517983=this[_0x505c('0xd6')][_0x505c('0x2f')][_0x505c('0xc9')](_0x505c('0xdc'))['me'],_0x18effc=new _0x12fcf0(_0x6ef183['start'],_0x6ef183[_0x505c('0x135')]);for(const {suggestion:_0x225565,meta:_0x1d0311}of this[_0x505c('0x11e')](_0x18effc,'insertion'))if(_0x1d0311[_0x505c('0xc4')]&&!_0x1d0311[_0x505c('0x108')]){if(_0x225565[_0x505c('0xf1')]){const _0x5273ec=_0x225565[_0x505c('0x60')]()[_0x505c('0x10d')](_0x2568f3=>_0x505c('0x16')!=_0x2568f3[_0x505c('0xd2')][_0x505c('0x91')]);_0x5273ec['every'](_0x41eeed=>_0x18effc['containsRange'](_0x41eeed,!0x0))&&_0x225565[_0x505c('0x92')]();if(_0x5273ec['some'](_0x59b47c=>_0x59b47c[_0x505c('0xdd')](_0x18effc,!0x0))){const _0x4186b6=this['_suggestionFactory']['getSuggestionCallback'](_0x505c('0x9d'),_0x1a4549,'accept');return this[_0x505c('0x121')](()=>_0x4186b6([_0x18effc],null,_0x9e611f)),null;}}else{const _0x58ac62=_0x18effc[_0x505c('0xa1')](_0x225565[_0x505c('0x20')]());null!==_0x58ac62&&_0x225565[_0x505c('0xe7')]([_0x58ac62],null,_0x9e611f);}}if(_0x18effc['detach'](),_0x18effc[_0x505c('0x132')]||'$graveyard'==_0x18effc['root'][_0x505c('0x91')])return null;let _0x173d14=null,_0xd31a26=_0x18effc['start'],_0x166a4f=_0x18effc[_0x505c('0x135')];for(const {suggestion:_0x23ec72,meta:_0x1f22e7}of this[_0x505c('0x11e')](_0x18effc,'deletion'))if(_0x1f22e7['isOwn']){if(_0x23ec72[_0x505c('0xf1')]&&this[_0x505c('0x5e')]){let _0x3502cf=!0x0;for(const _0x9ba429 of _0x23ec72[_0x505c('0x60')]()){if(_0x9ba429[_0x505c('0xdd')](_0x18effc,!0x0))return _0x23ec72;_0x18effc[_0x505c('0xdd')](_0x9ba429)||(_0x3502cf=!0x1);}_0x3502cf&&_0x23ec72[_0x505c('0x92')]();}else{const _0x9b7302=_0x23ec72['getFirstRange']();if(_0x9b7302[_0x505c('0xdd')](_0x18effc,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x1f22e7[_0x505c('0x126')])continue;return _0x23ec72;}_0xd31a26=_0xd31a26[_0x505c('0x131')](_0x9b7302[_0x505c('0x103')])?_0xd31a26:_0x9b7302[_0x505c('0x103')],_0x166a4f=_0x166a4f[_0x505c('0x95')](_0x9b7302[_0x505c('0x135')])?_0x166a4f:_0x9b7302[_0x505c('0x135')],_0x173d14?_0x9b7302[_0x505c('0x103')]['isBefore'](_0x173d14['getFirstRange']()[_0x505c('0x103')])?(_0x173d14['removeMarkers'](),_0x173d14=_0x23ec72):_0x23ec72[_0x505c('0xc0')]():_0x173d14=_0x23ec72;}}if(_0x173d14)return this[_0x505c('0x25')](_0x173d14,this['_model'][_0x505c('0xab')](_0xd31a26,_0x166a4f)),_0x173d14;{const _0x10b39b=_0x226cf0(),_0x1b6c3b=this[_0x505c('0x83')][_0x505c('0xab')](_0xd31a26,_0x166a4f),_0x3a0f15=_0x517983['id'],_0x18f5cd=_0x1a4549?_0x505c('0x5f')+_0x1a4549:'deletion',_0x5567c4=this['_setSuggestionData']({'id':_0x10b39b,'type':_0x18f5cd,'createdAt':new Date(),'authorId':_0x3a0f15,'attributes':_0x9e611f});return this['_addSuggestionMarker'](_0x18f5cd,_0x10b39b,_0x3a0f15,_0x1b6c3b),_0x5567c4;}}[_0x505c('0x68')](_0x1f4c96,_0x577b31=_0x505c('0xbe'),_0x5cde9c={}){const _0x28794b=this[_0x505c('0xd6')][_0x505c('0x2f')][_0x505c('0xc9')]('Users')['me'],_0x4bfcf4=_0x1f4c96[_0x505c('0xa2')](_0x359438=>new _0x12fcf0(_0x359438['start'],_0x359438['end'])),_0x27cedc=new Set();for(const _0x444a8c of _0x4bfcf4)for(const {suggestion:_0x3d811e,meta:_0xc1fca6}of this[_0x505c('0x11e')](_0x444a8c,_0x505c('0xcd')))_0xc1fca6[_0x505c('0xc4')]&&!_0xc1fca6[_0x505c('0x108')]&&_0x27cedc[_0x505c('0x2c')](_0x3d811e);for(const _0x36cfb7 of _0x27cedc)if(_0x36cfb7[_0x505c('0xf1')]){const _0x5d39ec=_0x36cfb7['getRanges']();(!_0x36cfb7[_0x505c('0x2a')]||!_0x36cfb7['attributes'][_0x505c('0x57')])&&(_0x5d39ec[_0x505c('0xc1')](_0x3cf8aa=>_0x4bfcf4[_0x505c('0xbc')](_0x1eccc6=>_0x1eccc6['containsRange'](_0x3cf8aa,!0x0)))&&_0x36cfb7[_0x505c('0x92')]());if(_0x4bfcf4[_0x505c('0xc1')](_0x5dd028=>_0x5d39ec[_0x505c('0xbc')](_0x23baa1=>_0x23baa1['containsRange'](_0x5dd028,!0x0)))){const _0x4891b9=this[_0x505c('0x116')][_0x505c('0x3b')](_0x505c('0x9d'),_0x577b31,'accept');return this[_0x505c('0x121')](()=>_0x4891b9(_0x1f4c96,null,_0x5cde9c)),null;}}else{const _0xcacb09=_0x36cfb7[_0x505c('0x20')]();_0x4bfcf4[_0x505c('0xbc')](_0x33e66f=>_0x33e66f['containsRange'](_0xcacb09,!0x0))&&_0x36cfb7[_0x505c('0x92')]();if(_0x4bfcf4[_0x505c('0xc1')](_0x13d99d=>_0xcacb09[_0x505c('0xdd')](_0x13d99d,!0x0))){const _0x399676=this[_0x505c('0x116')][_0x505c('0x3b')](_0x505c('0x9d'),_0x577b31,_0x505c('0xf6'));return this[_0x505c('0x121')](()=>_0x399676(_0x4bfcf4,null,_0x5cde9c)),null;}}const _0x4598e0=this[_0x505c('0x116')][_0x505c('0x3b')](_0x505c('0x9d'),_0x577b31,_0x505c('0x75'));let _0x3e705e=null;for(const _0x53ed06 of this[_0x505c('0xcc')]())if(_0x53ed06[_0x505c('0xc6')]['id']==_0x28794b['id']&&_0x53ed06[_0x505c('0x7a')]&&_0x505c('0x9d')==_0x53ed06[_0x505c('0x98')]&&_0x53ed06[_0x505c('0xf3')]==_0x577b31&&(_0x4598e0(_0x53ed06[_0x505c('0x60')](),_0x4bfcf4)||_0x4598e0(_0x4bfcf4,_0x53ed06[_0x505c('0x60')]()))){if(_0x3e705e){if(_0x53ed06[_0x505c('0xa4')]&&_0x53ed06['commentThread'][_0x505c('0x8e')])continue;for(const _0x501c57 of _0x53ed06[_0x505c('0x60')]())_0x3e705e[_0x505c('0xe3')](_0x501c57)||_0x3e705e[_0x505c('0x113')](_0x501c57);_0x53ed06[_0x505c('0xc0')]();}else{_0x3e705e=_0x53ed06;for(const _0x3eb8da of _0x4bfcf4)_0x53ed06['isIntersectingWithRange'](_0x3eb8da)||_0x53ed06[_0x505c('0x113')](_0x3eb8da);}}if(_0x3e705e)return _0x3e705e;_0x27cedc['clear']();for(const _0x1df05c of _0x4bfcf4)for(const {suggestion:_0x15ae00,meta:_0x304a9c}of this[_0x505c('0x11e')](_0x1df05c,'deletion'))_0x304a9c[_0x505c('0xc4')]&&_0x27cedc[_0x505c('0x2c')](_0x15ae00);for(const _0x369f00 of _0x27cedc){const _0x3e4d37=_0x369f00[_0x505c('0x60')]();if(!_0x5cde9c||!_0x5cde9c[_0x505c('0x57')]){if(_0x4bfcf4['every'](_0x13106c=>_0x3e4d37[_0x505c('0xbc')](_0x2ba393=>_0x2ba393[_0x505c('0xdd')](_0x13106c,!0x0))))return _0x369f00;}(!_0x369f00[_0x505c('0x2a')]||!_0x369f00[_0x505c('0x2a')][_0x505c('0x57')])&&(_0x3e4d37[_0x505c('0xc1')](_0x3ae000=>_0x4bfcf4[_0x505c('0xbc')](_0x38a441=>_0x38a441['containsRange'](_0x3ae000,!0x0)))&&_0x369f00[_0x505c('0x92')]());}const _0xbe3a00=_0x226cf0(),_0x1665f1=_0x28794b['id'],_0x5ef6ad=_0x505c('0x5f')+_0x577b31,_0x49e61b=this[_0x505c('0x4c')]({'id':_0xbe3a00,'type':_0x5ef6ad,'createdAt':new Date(),'authorId':_0x1665f1,'attributes':_0x5cde9c});for(const _0x45d507 of _0x4bfcf4)_0x45d507['detach'](),_0x45d507[_0x505c('0x132')]||_0x505c('0x16')==_0x45d507[_0x505c('0xd2')][_0x505c('0x91')]||this[_0x505c('0x31')](_0x5ef6ad,_0xbe3a00,_0x1665f1,_0x45d507,_0x492b8e[_0x505c('0x122')]());return _0x49e61b;}[_0x505c('0x25')](_0x1395e8,_0x314075){const _0x4225d2=_0x1395e8[_0x505c('0x12c')]();this['_model'][_0x505c('0xff')](_0x362bcf=>{_0x362bcf[_0x505c('0x7')](_0x4225d2,{'range':_0x314075});});}[_0x505c('0x109')](_0x3469e4){const _0x4e68bf=_0x3469e4['id'],_0x598b71=this[_0x505c('0xd6')][_0x505c('0x74')]['get'](_0x505c('0x27'));this[_0x505c('0x11')][_0x505c('0x28')](_0x4e68bf)||this[_0x505c('0x11')]['addCommentThread']({'channelId':_0x598b71,'threadId':_0x4e68bf,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2567f1=this[_0x505c('0x11')]['getCommentThread'](_0x4e68bf);_0x2567f1[_0x505c('0x117')](_0x505c('0x6')),_0x2567f1[_0x505c('0x6')]=!0x1,_0x3469e4[_0x505c('0xa4')]=_0x2567f1;}[_0x505c('0x30')](_0x2b4167,_0xd7a227,_0x2f37f0,_0x484faf){if(_0x2b4167['type']!=_0xd7a227||_0x2b4167[_0x505c('0xf3')]!=_0x2f37f0||_0x2b4167[_0x505c('0x61')]['id']!=_0x484faf)throw this['editor'][_0x505c('0xaf')](_0x505c('0x123')),new _0x1dd7d0('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3b040,_0x52e3e9){const _0x11dcc7=_0x3b040[_0x505c('0x20')]();if(_0x52e3e9[_0x505c('0xa0')](_0x11dcc7))_0x3b040[_0x505c('0xc0')]();else{if(_0x11dcc7[_0x505c('0xdd')](_0x52e3e9)){const _0x3e0b5a=this[_0x505c('0x83')]['createPositionAt'](_0x52e3e9[_0x505c('0x103')]['nodeBefore'],_0x505c('0x135'));this[_0x505c('0x25')](_0x3b040,this['_model'][_0x505c('0xab')](_0x11dcc7['start'],_0x3e0b5a));const _0x309265=_0x226cf0(),_0x231452=_0x3b040[_0x505c('0x61')]['id'],_0x3137f3=_0x3b040['type']+':'+_0x3b040[_0x505c('0xf3')];this[_0x505c('0x4c')]({'id':_0x309265,'type':_0x3137f3,'createdAt':new Date(),'authorId':_0x231452,'data':_0x3b040[_0x505c('0xd3')],'attributes':_0x3b040['attributes']});const _0x594a84=this[_0x505c('0x83')][_0x505c('0x65')](_0x52e3e9[_0x505c('0x135')][_0x505c('0x6c')],'after'),_0x1f5732=this['_model'][_0x505c('0xab')](_0x594a84,_0x11dcc7[_0x505c('0x135')]);this['_addSuggestionMarker'](_0x3137f3,_0x309265,_0x231452,_0x1f5732);}else{if(_0x11dcc7[_0x505c('0x9a')](_0x52e3e9[_0x505c('0x103')])){const _0x531551=this[_0x505c('0x83')]['createPositionAt'](_0x52e3e9[_0x505c('0x103')][_0x505c('0x24')],_0x505c('0x135'));this[_0x505c('0x25')](_0x3b040,this[_0x505c('0x83')][_0x505c('0xab')](_0x11dcc7[_0x505c('0x103')],_0x531551));}else{const _0x4f7b1e=this[_0x505c('0x83')][_0x505c('0x65')](_0x52e3e9[_0x505c('0x135')][_0x505c('0x6c')],'after');this[_0x505c('0x25')](_0x3b040,this[_0x505c('0x83')]['createRange'](_0x4f7b1e,_0x11dcc7[_0x505c('0x135')]));}}}}[_0x505c('0xcb')](_0x4d6f56){for(const {suggestion:_0xefda90,meta:_0x40d9aa}of this['_findSuggestions'](_0x4d6f56,_0x505c('0xcd'))){if(!_0x40d9aa['isOwn'])continue;const _0x1d94f9=_0xefda90[_0x505c('0x60')]();for(const _0x5cf9f7 of _0x1d94f9)if(!_0x4d6f56[_0x505c('0x10')](_0x5cf9f7)[_0x505c('0x8e')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x33b11c){const _0x3232de=this[_0x505c('0xd6')][_0x505c('0x2f')]['get'](_0x505c('0xdc'))[_0x505c('0x8d')](_0x33b11c);if(!_0x3232de)throw new _0x1dd7d0(_0x505c('0x8c'),this);return _0x3232de;}[_0x505c('0xfe')](_0x4e98ff){const _0x553cab=this[_0x505c('0xd6')][_0x505c('0x2f')]['get'](_0x505c('0xdc')),_0x1f251f=_0x496d2d('external:'+_0x4e98ff),_0x4eac41=_0x553cab[_0x505c('0x8d')](_0x1f251f);return _0x4eac41||_0x553cab[_0x505c('0x111')]({'id':_0x1f251f,'name':_0x4e98ff});}[_0x505c('0x79')](_0x8ffa91,_0x13759c,_0x47e0f6,_0x3b1513,_0x37a2af){const _0x1bfb11=this['_getAuthorFromId'](_0x3b1513),_0x2b6225=this[_0x505c('0x116')][_0x505c('0x10b')](_0x8ffa91,_0x13759c,_0x47e0f6,_0x1bfb11,_0x37a2af,_0x315814=>this['_updateSuggestionData'](_0x47e0f6,{'attributes':_0x315814}));return this[_0x505c('0x2d')](_0x2b6225,_0x505c('0xf6'),()=>{this[_0x505c('0x86')](_0x47e0f6,{'state':_0x505c('0x11f')});},{'priority':_0x505c('0x5d')}),this['listenTo'](_0x2b6225,_0x505c('0x92'),()=>{this[_0x505c('0x86')](_0x47e0f6,{'state':'rejected'});},{'priority':_0x505c('0x5d')}),this[_0x505c('0xee')][_0x505c('0xb')](_0x47e0f6,_0x2b6225),this[_0x505c('0x8f')][_0x505c('0xb')](_0x2b6225,'notReady'),_0x2b6225;}[_0x505c('0x37')](_0x23f262){const _0x467f46=_0x23f262['split'](':');return{'group':_0x467f46[0x0],'type':_0x467f46[0x1],'subType':_0x467f46[_0x505c('0x8e')]>=0x5?_0x467f46[0x2]:null,'id':_0x467f46[_0x505c('0x8e')]<0x5?_0x467f46[0x2]:_0x467f46[0x3],'authorId':_0x467f46[_0x505c('0x8e')]<0x5?_0x467f46[0x3]:_0x467f46[0x4],'markerCount':0x6==_0x467f46[_0x505c('0x8e')]?_0x467f46[0x5]:null};}[_0x505c('0x84')](_0x46c60f,_0x3562d6,_0x18007c){const _0x509538=_0x46c60f['getFirstRange'](),_0x14372f=_0x509538['start'],_0x5cd094=_0x509538['end'];this[_0x505c('0x25')](_0x46c60f,this[_0x505c('0x83')][_0x505c('0xab')](_0x14372f,_0x3562d6));const _0x5d1f9e=_0x226cf0(),_0x4642f0=_0x46c60f['creator']['id'],_0x305dc2=_0x46c60f[_0x505c('0x98')]+(_0x46c60f[_0x505c('0xf3')]?':'+_0x46c60f[_0x505c('0xf3')]:'');this[_0x505c('0x4c')]({'id':_0x5d1f9e,'type':_0x305dc2,'createdAt':new Date(),'authorId':_0x4642f0,'originalSuggestionId':_0x46c60f['id'],'attributes':_0x46c60f[_0x505c('0x2a')],'data':_0x46c60f[_0x505c('0xd3')]}),_0x505c('0xa5')==_0x46c60f[_0x505c('0x98')]&&(_0x18007c=this[_0x505c('0x83')][_0x505c('0x22')](_0x18007c[_0x505c('0x6c')])),this[_0x505c('0x31')](_0x305dc2,_0x5d1f9e,_0x4642f0,this[_0x505c('0x83')][_0x505c('0xab')](_0x18007c,_0x5cd094));}[_0x505c('0x11e')](_0x59569c,_0x58ad90=null){const _0x18b2fc=[],_0x2d7fe0=this[_0x505c('0x83')]['schema'],_0x150070=this[_0x505c('0xd6')][_0x505c('0x2f')][_0x505c('0xc9')]('Users')['me'];for(const _0x3bc60b of this[_0x505c('0xcc')]())if(_0x3bc60b['isInContent']&&(!_0x58ad90||_0x3bc60b[_0x505c('0x98')]==_0x58ad90))for(const _0x128b1c of _0x3bc60b[_0x505c('0x60')]()){const _0x280250=_0x59569c['start'][_0x505c('0xa0')](_0x128b1c[_0x505c('0x135')])||_0x59569c['end'][_0x505c('0xa0')](_0x128b1c['start']);if(_0x280250||_0x59569c['getIntersection'](_0x128b1c)){const _0x735d4c=_0x59569c[_0x505c('0xdd')](_0x128b1c)&&Bt(_0x2d7fe0,_0x128b1c[_0x505c('0x103')],_0x59569c),_0xa0dc4b=_0x128b1c[_0x505c('0xdd')](_0x59569c)&&Bt(_0x2d7fe0,_0x59569c[_0x505c('0x103')],_0x128b1c);_0x18b2fc[_0x505c('0x3a')]({'suggestion':_0x3bc60b,'meta':{'isOwn':_0x150070==_0x3bc60b['author'],'isNextTo':_0x280250,'isInsideObject':_0x735d4c,'containsRangeInObject':_0xa0dc4b}});break;}}return _0x18b2fc;}[_0x505c('0x31')](_0x43cdb2,_0x316663,_0x4e0072,_0x4b68cf,_0x427ecf){this[_0x505c('0x83')]['change'](_0x5eec14=>{let _0x12715c=_0x505c('0x10c')+_0x43cdb2+':'+_0x316663+':'+_0x4e0072;_0x427ecf&&(_0x12715c=_0x12715c+':'+_0x427ecf),_0x5eec14['addMarker'](_0x12715c,{'range':_0x4b68cf,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x505c('0x32')](_0x1a045b){const _0x589d1f=_0x1a045b['previous'],_0x2f4bbd=_0x1a045b[_0x505c('0x4d')];_0x1a045b[_0x505c('0x4a')]=null,null!=_0x589d1f&&(_0x589d1f[_0x505c('0x4d')]=null),_0x1a045b['next']=null,null!=_0x2f4bbd&&(_0x2f4bbd[_0x505c('0x4a')]=null),_0x505c('0x15')==this[_0x505c('0x8f')][_0x505c('0xc9')](_0x1a045b)&&(this[_0x505c('0x8f')][_0x505c('0xb')](_0x1a045b,_0x505c('0x58')),this[_0x505c('0xf5')](_0x505c('0xf'),_0x1a045b,_0x589d1f,_0x2f4bbd));}[_0x505c('0x4c')](_0x4f798a){const _0x2da9d9=_0x4f798a['id'],_0x54f4fb=this[_0x505c('0x124')](_0x4f798a);if(this['_adapter']&&this[_0x505c('0x12e')][_0x505c('0x9f')]){const _0x44cf4e=this['editor'][_0x505c('0x2f')]['get'](_0x505c('0x10a')),_0x41975b=_0x54f4fb['hasComments'],_0x3c1e0f=_0x54f4fb[_0x505c('0xf3')]?_0x54f4fb['type']+':'+_0x54f4fb[_0x505c('0xf3')]:_0x54f4fb['type'],_0xdb1e9e=this[_0x505c('0xd6')][_0x505c('0x17')],_0x2b1a6f=_0x44cf4e[_0x505c('0x2c')](_0x413b77(_0xdb1e9e,_0x505c('0x104'))),_0x375cbd={'id':_0x2da9d9,'type':_0x3c1e0f,'hasComments':_0x41975b,'data':_0x4f798a[_0x505c('0xd3')]||null,'originalSuggestionId':_0x4f798a[_0x505c('0xc8')]||null,'attributes':_0x54f4fb[_0x505c('0x2a')]};this[_0x505c('0x12e')][_0x505c('0x9f')](_0x375cbd)[_0x505c('0xf2')](_0x2894dd=>{_0x54f4fb[_0x505c('0xb6')]=!0x0,_0x44cf4e[_0x505c('0x6e')](_0x2b1a6f),_0x2894dd&&_0x2894dd['createdAt']&&(this[_0x505c('0xee')][_0x505c('0xc9')](_0x2da9d9)['createdAt']=_0x2894dd['createdAt']);})[_0x505c('0x119')](_0x52560=>{throw _0x47ac89(_0x505c('0x128')),this[_0x505c('0xd6')][_0x505c('0x110')][_0x505c('0x13')]({'isUndoable':!0x1},()=>{_0x54f4fb['discard']();}),_0x54f4fb[_0x505c('0xd4')](),this[_0x505c('0xee')][_0x505c('0x52')](_0x54f4fb['id']),this[_0x505c('0x8f')][_0x505c('0x52')](_0x54f4fb),_0x52560;});}return _0x54f4fb;}[_0x505c('0x86')](_0x21a616,_0x5d9e3c){const _0x31bcf1=this['editor'][_0x505c('0x2f')][_0x505c('0xc9')](_0x505c('0x10a')),_0x4a7c8e=this['getSuggestion'](_0x21a616);if(this[_0x505c('0x12e')]&&this[_0x505c('0x12e')][_0x505c('0xe8')]){if(_0x4a7c8e[_0x505c('0xb6')]){const _0x56594b=_0x31bcf1[_0x505c('0x2c')](_0x413b77(this[_0x505c('0xd6')][_0x505c('0x17')],_0x505c('0x104')));this[_0x505c('0x12e')][_0x505c('0xe8')](_0x21a616,_0x5d9e3c)['then'](()=>{_0x31bcf1['remove'](_0x56594b);});}else _0x4a7c8e['on']('change:_saved',()=>{this[_0x505c('0x86')](_0x21a616,_0x5d9e3c);});}}['_getSuggestionData'](_0x3c0b9c){if(!this[_0x505c('0x12e')]||!this[_0x505c('0x12e')]['getSuggestion'])throw new _0x1dd7d0('track-changes-adapter-missing-getsuggestion',this);return this[_0x505c('0x12e')][_0x505c('0xf0')](_0x3c0b9c);}[_0x505c('0x54')](_0x24da24){const {id:_0x31cb2b,type:_0x5c10a5,subType:_0x69de64,authorId:_0x2d5726}=this[_0x505c('0x37')](_0x24da24),_0x2268a0=this[_0x505c('0xee')][_0x505c('0xc9')](_0x31cb2b)||this[_0x505c('0x79')](_0x5c10a5,_0x69de64,_0x31cb2b,_0x2d5726,{});switch(this[_0x505c('0x30')](_0x2268a0,_0x5c10a5,_0x69de64,_0x2d5726),this[_0x505c('0x8f')]['get'](_0x2268a0)){case _0x505c('0x29'):this[_0x505c('0x51')](_0x31cb2b)[_0x505c('0xf2')](_0x19261d=>{let _0xfb98a6=Promise[_0x505c('0x4')]();_0x19261d[_0x505c('0x18')]&&(_0xfb98a6=this[_0x505c('0x11')][_0x505c('0x46')]({'channelId':this[_0x505c('0xd6')][_0x505c('0x74')][_0x505c('0xc9')]('collaboration.channelId'),'threadId':_0x31cb2b})),_0xfb98a6['then'](()=>{this[_0x505c('0x124')](_0x19261d)[_0x505c('0xb6')]=!0x0;});}),this[_0x505c('0x8f')]['set'](_0x2268a0,_0x505c('0xbb'));break;case _0x505c('0x58'):this[_0x505c('0x86')](_0x31cb2b,{'state':_0x505c('0x130')});case'dataReady':this['_suggestionState'][_0x505c('0xb')](_0x2268a0,'ready'),this[_0x505c('0xf5')](_0x505c('0x41'),_0x2268a0);break;case _0x505c('0x15'):this[_0x505c('0xf5')](_0x505c('0x5a'),_0x2268a0);}return _0x2268a0[_0x505c('0xe1')](_0x24da24),_0x2268a0;}[_0x505c('0xb3')](_0x36fb71){const _0x1d5304=Array[_0x505c('0xfa')](_0x36fb71)[_0x505c('0x10d')](_0x3cad00=>!_0x3cad00[_0x505c('0xf1')]),_0xbf5287=this[_0x505c('0xcc')]({'skipNotAttached':!0x0})[_0x505c('0x10d')](_0x10af91=>!_0x10af91['isMultiRange']),_0x396d9f=_0xbf5287['filter'](_0x2614ce=>!_0x36fb71[_0x505c('0x26')](_0x2614ce)),_0x418efc=new Map(_0xbf5287[_0x505c('0xa2')](_0x31fd66=>[_0x31fd66,this[_0x505c('0x116')]['getSuggestionCallback'](_0x31fd66[_0x505c('0x98')],_0x31fd66[_0x505c('0xf3')],_0x505c('0x66'))])),_0xb569cc=new Map(_0xbf5287[_0x505c('0xa2')](_0x23bb33=>[_0x23bb33,_0x23bb33[_0x505c('0x20')]()])),_0x3178d3=new Set(),_0x125653=new Set();for(let _0x5421a8=0x0;_0x5421a8<_0x1d5304[_0x505c('0x8e')];_0x5421a8++)_0x41ea34(_0x1d5304[_0x5421a8],_0x1d5304,_0x5421a8+0x1);for(let _0x2d893c=0x0;_0x2d893c<_0x1d5304[_0x505c('0x8e')];_0x2d893c++)_0x41ea34(_0x1d5304[_0x2d893c],_0x396d9f,0x0);for(let _0x3b5a9a=0x0;_0x3b5a9a<_0x1d5304[_0x505c('0x8e')];_0x3b5a9a++){const _0x34d42c=_0x1d5304[_0x3b5a9a];!_0x125653[_0x505c('0x26')](_0x34d42c)&&_0x34d42c[_0x505c('0x4a')]&&(_0x34d42c[_0x505c('0x4a')][_0x505c('0x4d')]===_0x34d42c&&(_0x34d42c[_0x505c('0x4a')][_0x505c('0x4d')]=null),_0x34d42c['previous']=null),!_0x3178d3[_0x505c('0x26')](_0x34d42c)&&_0x34d42c[_0x505c('0x4d')]&&(_0x34d42c[_0x505c('0x4d')]['previous']===_0x34d42c&&(_0x34d42c['next'][_0x505c('0x4a')]=null),_0x34d42c[_0x505c('0x4d')]=null);}function _0x41ea34(_0x14cecb,_0x4dcbdc,_0x33591d){for(let _0x410502=_0x33591d;_0x410502<_0x4dcbdc[_0x505c('0x8e')];_0x410502++){const _0xeba712=_0x6f376b(_0x14cecb,_0x4dcbdc[_0x410502]);_0xeba712&&(_0xeba712[0x0][_0x505c('0x4d')]=_0xeba712[0x1],_0xeba712[0x1][_0x505c('0x4a')]=_0xeba712[0x0],_0x3178d3['add'](_0xeba712[0x0]),_0x125653[_0x505c('0x2c')](_0xeba712[0x1]));}}function _0x6f376b(_0x42e59f,_0x5037f3){if(_0x42e59f[_0x505c('0xc6')]['id']!==_0x5037f3[_0x505c('0xc6')]['id'])return null;const _0x26a427=_0x418efc['get'](_0x42e59f)(_0x42e59f,_0x5037f3,_0xb569cc[_0x505c('0xc9')](_0x42e59f),_0xb569cc[_0x505c('0xc9')](_0x5037f3));if(!_0x26a427)return null;return _0x418efc[_0x505c('0xc9')](_0x5037f3)(_0x42e59f,_0x5037f3,_0xb569cc['get'](_0x42e59f),_0xb569cc[_0x505c('0xc9')](_0x5037f3))?_0x26a427[0x1][_0x505c('0xa4')]&&_0x26a427[0x1]['commentThread']['length']?null:_0x26a427:null;}}['_joinWithAdjacentSuggestions'](_0x55e3b0){const _0x2965bb=Array[_0x505c('0xfa')](_0x55e3b0),_0x11cc4b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x203316=_0x11cc4b[_0x505c('0x10d')](_0x10becf=>!_0x55e3b0['has'](_0x10becf)),_0x3ccb55=new Map(_0x2965bb[_0x505c('0xa2')](_0xc3ee79=>[_0xc3ee79,this[_0x505c('0x116')][_0x505c('0x3b')](_0xc3ee79['type'],_0xc3ee79['subType'],_0x505c('0x75'))])),_0xd247ba=new Map(_0x11cc4b['map'](_0xe797c5=>[_0xe797c5,_0xe797c5[_0x505c('0x60')]()]));for(let _0xa33abb=0x0;_0xa33abb<_0x2965bb['length'];_0xa33abb++){if(_0x22e966(this,_0x2965bb[_0xa33abb],_0x2965bb,_0xa33abb+0x1))return!0x0;}for(let _0x36ee35=0x0;_0x36ee35<_0x2965bb[_0x505c('0x8e')];_0x36ee35++){if(_0x22e966(this,_0x2965bb[_0x36ee35],_0x203316,0x0))return!0x0;}return!0x1;function _0x22e966(_0x5d788f,_0x1e15ce,_0x44dab7,_0x36e232){for(let _0x128384=_0x36e232;_0x128384<_0x44dab7['length'];_0x128384++){const _0x450cc9=_0x44dab7[_0x128384];if(_0x450cc9['type']!==_0x1e15ce[_0x505c('0x98')]||_0x450cc9[_0x505c('0xc6')]['id']!==_0x1e15ce[_0x505c('0xc6')]['id']||_0x450cc9[_0x505c('0xf3')]!==_0x1e15ce[_0x505c('0xf3')])continue;const _0x9f5b7c=_0x3ccb55[_0x505c('0xc9')](_0x1e15ce),_0x57e917=_0xd247ba['get'](_0x1e15ce),_0x1084e6=_0xd247ba[_0x505c('0xc9')](_0x450cc9),_0x5eaabf=_0x1e15ce[_0x505c('0xa4')]&&_0x1e15ce[_0x505c('0xa4')][_0x505c('0x8e')],_0x53bb29=_0x450cc9[_0x505c('0xa4')]&&_0x450cc9[_0x505c('0xa4')]['length'];if(!_0x5eaabf&&_0x9f5b7c(_0x1084e6,_0x57e917))return _0x5d788f[_0x505c('0x89')](_0x450cc9,_0x1e15ce),_0xd247ba['delete'](_0x1e15ce),!0x0;if(!_0x53bb29&&_0x9f5b7c(_0x57e917,_0x1084e6))return _0x5d788f[_0x505c('0x89')](_0x1e15ce,_0x450cc9),_0xd247ba[_0x505c('0x52')](_0x450cc9),!0x0;}return!0x1;}}[_0x505c('0x89')](_0x149f65,_0x4598d7){if(_0x149f65[_0x505c('0xf1')])for(const _0x494482 of _0x4598d7[_0x505c('0x60')]())_0x149f65[_0x505c('0x113')](_0x494482);else{const _0x404123=_0x4598d7[_0x505c('0x20')]()[_0x505c('0x135')];this[_0x505c('0x25')](_0x149f65,this[_0x505c('0x83')][_0x505c('0xab')](_0x149f65[_0x505c('0x20')]()[_0x505c('0x103')],_0x404123));}_0x4598d7['removeMarkers']();}}class Dt{constructor(_0x4dc98b){this[_0x505c('0xaa')]=_0x4dc98b,this[_0x505c('0x83')]=_0x4dc98b[_0x505c('0x110')],this['_customCallbacks']=new Map(),this[_0x505c('0xb0')]=new Map(),this[_0x505c('0x44')]();}[_0x505c('0x10b')](_0x3a9c2c,_0x168d90,_0x5093a5,_0x1f23c1,_0x76ee5c,_0x105e7e){return new _0x492b8e(this['_model'],{'type':_0x3a9c2c,'subType':_0x168d90,'id':_0x5093a5,'author':_0x1f23c1,'creator':_0x1f23c1,'attributes':_0x76ee5c,'onAttributesChange':_0x105e7e,'onAccept':(..._0x1a8dd1)=>this[_0x505c('0x3b')](_0x3a9c2c,_0x168d90,'accept')(..._0x1a8dd1),'onDiscard':(..._0x193000)=>this['getSuggestionCallback'](_0x3a9c2c,_0x168d90,_0x505c('0x92'))(..._0x193000)});}[_0x505c('0x36')](_0x1e796a,_0x1aeb3a,_0x3b9f1a,_0x3a0f6e){const _0x422c7e=_0x1e796a+':'+_0x1aeb3a+':'+_0x3b9f1a;this[_0x505c('0xd7')][_0x505c('0xb')](_0x422c7e,_0x3a0f6e);}['getSuggestionCallback'](_0x5c820e,_0x38d4b8,_0x34b3bd){const _0x375f87=_0x5c820e+':'+_0x38d4b8+':'+_0x34b3bd;return this[_0x505c('0xd7')][_0x505c('0xc9')](_0x375f87)||this[_0x505c('0xb0')][_0x505c('0xc9')](_0x5c820e+':'+_0x34b3bd);}[_0x505c('0x44')](){const _0xd76db2=()=>{},_0x1a854b=_0x59f581=>{_0x59f581[_0x505c('0xac')]((_0xcf55fd,_0x2fdf26)=>_0xcf55fd[_0x505c('0x103')][_0x505c('0x131')](_0x2fdf26['start'])?0x1:-0x1),this[_0x505c('0x83')]['change'](_0x43f08f=>{for(const _0x44dd14 of _0x59f581){let _0x4df215;_0x4df215=_0x44dd14[_0x505c('0x135')][_0x505c('0x125')]&&_0x44dd14[_0x505c('0x135')]['parent']==_0x44dd14[_0x505c('0x103')][_0x505c('0xba')]?_0x43f08f[_0x505c('0x19')](_0x44dd14[_0x505c('0x103')][_0x505c('0xba')],'on'):_0x43f08f[_0x505c('0x19')](_0x44dd14),this[_0x505c('0x83')]['deleteContent'](_0x4df215,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3389c5=(_0x3df0bf,_0x7d0cd6)=>{this['_model'][_0x505c('0xff')](_0x38ecb5=>{const {commandName:_0xfdb8ea,commandParams:_0x5b81ce=[]}=_0x7d0cd6,_0x4ec5fd=_0x3df0bf[_0x505c('0xa2')](_0x3e4211=>(_t(_0x3e4211)&&(_0x3e4211=this[_0x505c('0x83')][_0x505c('0xab')](_0x3e4211['end'])),_0x3e4211))[_0x505c('0x10d')](_0x8adce=>_0x505c('0x16')!==_0x8adce[_0x505c('0xd2')][_0x505c('0x91')]);if(_0x4ec5fd[_0x505c('0x8e')]<0x1)return;const _0x40ae00=Array[_0x505c('0xfa')](this[_0x505c('0x83')][_0x505c('0xfc')][_0x505c('0xde')][_0x505c('0x60')]())[_0x505c('0xa2')](_0x33258a=>_0x12fcf0[_0x505c('0x81')](_0x33258a));_0x38ecb5[_0x505c('0x2e')](_0x4ec5fd);for(const _0x566a53 of this[_0x505c('0xaa')][_0x505c('0x2b')][_0x505c('0x2b')]())_0x566a53['refresh']();_0x5b81ce[_0x505c('0x3a')]({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xfdb8ea,..._0x5b81ce);const _0x4bfdbc=_0x40ae00[_0x505c('0x10d')](_0x964068=>'$graveyard'!=_0x964068['root'][_0x505c('0x91')]);_0x4bfdbc['length']>0x0&&_0x38ecb5[_0x505c('0x2e')](_0x4bfdbc);for(const _0x31c5b9 of _0x40ae00)_0x31c5b9['detach']();});},_0x23b7c5=(_0x30979c,_0x3ef8cd)=>0x1==_0x30979c['length']&&0x1==_0x3ef8cd['length']&&_0x30979c[0x0][_0x505c('0x135')][_0x505c('0xa0')](_0x3ef8cd[0x0][_0x505c('0x103')]),_0x31860c=(_0x1b7544,_0x1439f3,_0x1ecb8b,_0x1629d8)=>xt(_0x1b7544,_0x1439f3,_0x1ecb8b,_0x1629d8,this[_0x505c('0x83')])?[_0x1b7544,_0x1439f3]:xt(_0x1439f3,_0x1b7544,_0x1629d8,_0x1ecb8b,this[_0x505c('0x83')])?[_0x1439f3,_0x1b7544]:null;this['_defaultCallbacks'][_0x505c('0xb')]('insertion:accept',_0xd76db2),this[_0x505c('0xb0')][_0x505c('0xb')]('insertion:discard',_0x1a854b),this['_defaultCallbacks'][_0x505c('0xb')](_0x505c('0x1d'),_0x23b7c5),this[_0x505c('0xb0')][_0x505c('0xb')](_0x505c('0x1a'),_0x31860c),this[_0x505c('0xb0')][_0x505c('0xb')](_0x505c('0x106'),_0x1a854b),this[_0x505c('0xb0')][_0x505c('0xb')](_0x505c('0xb9'),_0xd76db2),this['_defaultCallbacks']['set'](_0x505c('0x100'),_0x23b7c5),this['_defaultCallbacks']['set'](_0x505c('0xc2'),_0x31860c),this[_0x505c('0xb0')][_0x505c('0xb')](_0x505c('0xc7'),_0x3389c5),this[_0x505c('0xb0')][_0x505c('0xb')]('formatInline:discard',_0xd76db2),this[_0x505c('0xb0')][_0x505c('0xb')]('formatInline:join',_0x23b7c5),this[_0x505c('0xb0')][_0x505c('0xb')](_0x505c('0x6b'),_0xd76db2),this[_0x505c('0xb0')][_0x505c('0xb')](_0x505c('0x8b'),_0x3389c5),this[_0x505c('0xb0')]['set']('formatBlock:discard',_0xd76db2),this[_0x505c('0xb0')][_0x505c('0xb')]('formatBlock:join',_0x23b7c5),this[_0x505c('0xb0')][_0x505c('0xb')](_0x505c('0xa'),_0xd76db2);}}function Bt(_0x3534c9,_0x1ac7ad,_0x4cd459){for(const _0x41e2b5 of _0x1ac7ad['parent'][_0x505c('0x102')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x41e2b5['root']==_0x41e2b5)return!0x1;if(!_0x4cd459[_0x505c('0x87')](_0x41e2b5))return!0x1;if(_0x3534c9[_0x505c('0xcf')](_0x41e2b5)||_0x3534c9[_0x505c('0x9e')](_0x41e2b5))return!0x0;}return!0x1;}function _t(_0x377bd7){return _0x377bd7[_0x505c('0x135')]['parent']==_0x377bd7[_0x505c('0x103')][_0x505c('0xba')]&&_0x377bd7['end'][_0x505c('0x12')];}function Mt(_0xbf9b26,_0x550444,_0x12366f,_0x544259){const _0x2948ad=_0x28945c=>!_0x28945c[_0x505c('0xf4')]['is'](_0x505c('0xa7'))&&!_0x544259[_0x505c('0xcf')](_0x28945c['item']),_0x25d079=_0xbf9b26[_0x505c('0x103')][_0x505c('0x88')](_0x2948ad),_0xab13d4=_0xbf9b26[_0x505c('0x135')][_0x505c('0x88')](_0x2948ad,{'direction':_0x505c('0x12a')});return(!_0xbf9b26['start']['isEqual'](_0x25d079)||!_0xbf9b26[_0x505c('0x135')][_0x505c('0xa0')](_0xab13d4))&&(_0x25d079[_0x505c('0x131')](_0xab13d4)?_0x12366f[_0x505c('0x7')](_0x550444,{'range':_0x12366f[_0x505c('0xab')](_0x25d079,_0xab13d4)}):_0x12366f[_0x505c('0xe5')](_0x550444),!0x0);}function $t(_0x13f3e8){return _0x496d2d(_0x13f3e8);}function Nt(_0x223415){const _0x1ae3b9=_0x223415[_0x505c('0x103')][_0x505c('0xba')];return _0x1ae3b9&&_0x1ae3b9['is'](_0x505c('0x4b'));}function Rt(_0x40d294,_0x4b6e1f){const _0x36fd80=_0x4b6e1f[_0x505c('0x107')]['isObject'](_0x40d294)||_0x4b6e1f[_0x505c('0x107')][_0x505c('0x3f')](_0x40d294);return _0x4b6e1f[_0x505c('0xab')](_0x4b6e1f[_0x505c('0x65')](_0x40d294,_0x505c('0x101')),_0x36fd80?_0x4b6e1f[_0x505c('0xa9')](_0x40d294):_0x4b6e1f[_0x505c('0x65')](_0x40d294,_0x505c('0x135')));}function xt(_0x363ce2,_0x3cc9d3,_0x5cb7d5,_0x4ff849,_0x16f787){if(_0x5cb7d5[_0x505c('0x135')]['isEqual'](_0x4ff849[_0x505c('0x103')]))return!0x0;if(_0x363ce2[_0x505c('0x98')]!=_0x3cc9d3[_0x505c('0x98')])return!0x1;if(!_0x5cb7d5[_0x505c('0x135')][_0x505c('0xad')](_0x4ff849[_0x505c('0x103')]))return!0x1;const _0x16e50f=_0x16f787[_0x505c('0xab')](_0x5cb7d5[_0x505c('0x135')],_0x4ff849[_0x505c('0x103')])['getWalker']();for(const _0x5d345c of _0x16e50f)if([_0x505c('0x3e'),_0x505c('0xe6')][_0x505c('0x93')](_0x5d345c[_0x505c('0x98')])&&_0x16f787[_0x505c('0x107')]['isLimit'](_0x5d345c[_0x505c('0xf4')]))return!0x1;return!0x0;}
23
+ const _0x46b4=['isUndo','document','bindElementToMarker','buildSuggestion','activeMarkers','differ','markerReady','isIntersectingWithRange','multipleBlocks','_customCallbacks','_getAuthorFromId','low','_editor','never','_onDiscard','getAttribute','removeMarkers','config','getCustomProperty','commentThread','isInsideObject','showSuggestionHighlights','dataReady','attributes','deletion:chain','define','dataDowncast','markMultiRangeDeletion','schema','data','markMultiRangeInsertion','external:','_isForcedDefaultExecutionBlock','enableCommand','splice','track-changes-user-not-found','PendingActions','hasComments','formatInline','acceptSuggestion','elementToElement','targetPosition','getUser','formatBlock:join','authorName','howMany','getSuggestionCallback','isAfter','formatGroupId','editor','isNextTo','before','addUser','formatInline:accept','_registerDefaultCallbacks','has','ck-suggestion-marker-formatBlock','deletion:','CommentsRepository','_splitMarkerName','updateMarker','getAncestors','discardSelectedSuggestions','_cutOutSuggestionMarker','track-changes-suggestion-not-found','_breakSuggestionMarker','setTo','getChangedMarkers','removeMarker','name','$graveyard','resolve','getRanges','includes','size','getChanges','suggestionLoaded','normal','_saved','accepted','_removeSuggestion','_setSuggestionData','suggestion','remove','markerName','previous','isRemovable','createSelection','rethrowUnexpectedError','clone','getFirstMarker','hasCommentThread','plugins','suggestion-type','splitPosition','Users','isLimit','removeComment','writer','isOwn','notReady','getDifference','nodeBefore','isAtEnd','some','_updateSuggestionData','formatInline:join','addComment','next','containerElement','applyOperation','track-changes-command-not-found','value','get','selection','registerPostFixer','split','_defaultCallbacks','trackChanges.mergeNestedSuggestions','insertion:','item','acceptAllSuggestions','batch','suggestionChanged','isEqual','_commentsRepository','deletion:discard','formatInline:','markDeletion','always','formatInline:discard','fromRange','containsRange','return','rootName','delete','getCommentThread','detach','_joinWithAdjacentSuggestions','author','after','collaboration.channelId','mapper','_suggestionFactory','_descriptionFactory','enqueueChange','_suggestionState','default','markerToData','hasSuggestion','formatInline:chain','push','multi','upcast','every','trackChanges.trackFormatChanges','ck-suggestion-marker-','highest','_model','type','updateSuggestion','documentSelection','setSelection','insertion','filter','toViewElement','createPositionAt','containsRangeInObject','getMultiRangeId','getMarkers','acceptSelectedSuggestions','getLastMatchingPosition','_getSuggestionData','from','_createSuggestion','TrackChangesEditing','_addSuggestionMarker','markerToHighlight','insertion:join','then','@external','forceDefaultExecution','_getExternalAuthor','commandName','sort','init','_trackFormatChanges','consumable','oldRange','setAttribute','isDocumentOperation','length','markMultiRangeBlockFormat','substr','isInContent','ck-suggestion-marker--active','_addThreadToSuggestion','map','end','registerCustomCallback','position','getFirstRange','_suggestions','addHighlight','createElement','isTouching','for','editing','lowest','nodeAfter','locale','getSuggestions','addClass','createPositionBefore','parent','change:data','stop','discardSuggestion','element','newRange','markers','refresh','values','addMarkerName','catch','addRange','root','deleteContent','rejected','pluginName','range','$marker','getSuggestion','_findSuggestions','suggestionUnloaded','getIntersection','adapter','change:_saved','getAllAdjacentSuggestions','creator','_adapter','move','dataToMarker','getItems','options','trackChangesCommand','_mergeNestedSuggestions','execute','isMultiRange','suggestion:','insertContent','formatBlock:','addMarker:suggestion:formatBlock','marker-count','widget','_checkSuggestionCorrectness','createdAt','chain','deletion','head','ready','removed','_setSuggestionRange','error-saving-suggestion-data-suggestion-discarded','join','elementStart','data-suggestion','fire','commands','authoredAt','track-changes-adapter-missing-getsuggestion','markInsertion','accept','insert','deletion:accept','formatBlock:chain','track-changes-suggestion-data-mismatch','formatBlock:accept','elementEnd','isBefore','isCollapsed','change','removeClass','formatBlock','editingDowncast','isLocal','getShiftedBy','getNearestSelectionRange','skipNestingCheck','conversion','removeAttribute','getWalker','markerNameToElements','consume','discard','_enabledCommands','model','high','open','moveTargetPosition','update:suggestion','getRange','listenTo','set','enableReadOnlyMode','isBlock','unbindElementFromMarkerName','trackChanges','insertion:chain','_handleNewSuggestionMarker','addMarker','isObject','subType','_rangeIsInLocalUserInsertion','createRange','containsPosition','addSuggestion','PENDING_ACTION_SUGGESTION','add','backward','_joinSuggestions','isExternal','addSuggestionData','insertion:discard','discardAllSuggestions','reconvertMarker','toJSON','ck-suggestion-marker','isSelectable','stopListening','start'];(function(_0x48a65e,_0x46b403){const _0x37a679=function(_0x362c7c){while(--_0x362c7c){_0x48a65e['push'](_0x48a65e['shift']());}};_0x37a679(++_0x46b403);}(_0x46b4,0x195));const _0x37a6=function(_0x48a65e,_0x46b403){_0x48a65e=_0x48a65e-0x0;let _0x37a679=_0x46b4[_0x48a65e];return _0x37a679;};import{Plugin as _0x33d7fb,PendingActions as _0x56e5f0}from'ckeditor5/src/core';import{LiveRange as _0x237754}from'ckeditor5/src/engine';import{CKEditorError as _0x54d2cb,uid as _0x347c0d,priorities as _0x1075f6,logWarning as _0x20f396}from'ckeditor5/src/utils';import{toWidget as _0x4629d0}from'ckeditor5/src/widget';import{Users as _0x3d0b55,hashObject as _0x1992b8}from'ckeditor5-collaboration/src/collaboration-core';import _0x24b533 from'./commands/trackchangescommand';import _0x4bbdd1 from'./commands/acceptsuggestioncommand';import _0x1ab194 from'./commands/discardsuggestioncommand';import _0x3619cf from'./commands/executeonallsuggestionscommand';import _0x59b893 from'./commands/executeonselectedsuggestionscommand';import _0x3b9d53 from'./suggestion';import _0x37cadd from'./suggestiondescriptionfactory';import _0x2694ee from'./integrations/alignment';import _0x4ba249 from'./integrations/basicstyles';import _0x308f0d from'./integrations/blockquote';import _0x4c6bf7 from'./integrations/ckbox';import _0x2af024 from'./integrations/codeblock';import _0x2cbaa2 from'./integrations/comments';import _0x167641 from'./integrations/deletecommand';import _0xa556b1 from'./integrations/documentlist';import _0x568134 from'./integrations/entercommand';import _0x5a59c5 from'./integrations/findandreplace';import _0x4d5c47 from'./integrations/font';import _0x47211a from'./integrations/formatpainter';import _0x38291f from'./integrations/heading';import _0x1eb81b from'./integrations/highlight';import _0x476f30 from'./integrations/horizontalline';import _0x426675 from'./integrations/htmlembed';import _0xebded3 from'./integrations/image';import _0x14eb7b from'./integrations/imagereplace';import _0xa01bec from'./integrations/importword';import _0x28262f from'./integrations/indent';import _0x332168 from'./integrations/inputcommand';import _0x40f364 from'./integrations/link';import _0x2f2963 from'./integrations/list';import _0x4e3a22 from'./integrations/listproperties';import _0x5ef030 from'./integrations/mediaembed';import _0x32fe9b from'./integrations/mention';import _0x257ace from'./integrations/pagebreak';import _0x234206 from'./integrations/paragraph';import _0x427fad from'./integrations/removeformat';import _0x13966b from'./integrations/restrictededitingmode';import _0xa52708 from'./integrations/shiftentercommand';import _0x34bb8a from'./integrations/standardeditingmode';import _0x5acf4c from'./integrations/style';import _0x9b0d6a from'./integrations/table';import _0x1c8ecc from'./integrations/tablemergesplit';import _0x493b0c from'./integrations/tableheadings';import _0x594909 from'./integrations/tableclipboard';import _0x2ccc5f from'./integrations/tablecolumnresize';import _0x2b7316 from'./integrations/template';import _0x3ccaf2 from'./integrations/tableofcontents';import _0x31284e from'./integrations/title';import _0x25d0ef from'./integrations/undo';import{getTranslation as _0x59e706}from'./utils/common-translations';import _0x53b39d from'./integrations/tablecaption';import _0x525260 from'./integrations/documentlistproperties';import _0x3f88f3 from'./integrations/tableproperties';export default class p extends _0x33d7fb{static get['requires'](){return[_0x37a6('0x13b'),_0x3d0b55,_0x56e5f0,_0x2694ee,_0x4ba249,_0x308f0d,_0x4c6bf7,_0x2af024,_0x2cbaa2,_0x167641,_0xa556b1,_0x525260,_0x568134,_0x5a59c5,_0x4d5c47,_0x47211a,_0x38291f,_0x1eb81b,_0x476f30,_0x426675,_0xebded3,_0x14eb7b,_0xa01bec,_0x28262f,_0x332168,_0x40f364,_0x2f2963,_0x4e3a22,_0x5ef030,_0x32fe9b,_0x257ace,_0x234206,_0x427fad,_0x13966b,_0xa52708,_0x34bb8a,_0x5acf4c,_0x9b0d6a,_0x1c8ecc,_0x493b0c,_0x53b39d,_0x594909,_0x2ccc5f,_0x3ccaf2,_0x3f88f3,_0x2b7316,_0x31284e,_0x25d0ef];}static get[_0x37a6('0x9b')](){return _0x37a6('0x65');}constructor(_0x1d53fd){function _0x4168f1(_0x23d75a){return _0x23d75a[_0x37a6('0x7b')](_0x27014f=>String['fromCharCode'](_0x27014f))[_0x37a6('0xbe')]('');}super(_0x1d53fd),this[_0x37a6('0xe5')](_0x37a6('0x105'),[]),this['on']('change:activeMarkers',(_0x3f901f,_0x375b6c,_0x18c04d,_0x25f532)=>{this[_0x37a6('0x54')][_0x37a6('0xcf')](()=>{for(const _0x11a770 of[..._0x25f532,..._0x18c04d])this['_model'][_0x37a6('0x92')][_0x37a6('0x138')](_0x11a770)&&_0x1d53fd[_0x37a6('0x85')][_0x37a6('0xfb')](_0x11a770);});}),this[_0x37a6('0x46')]=new _0x37cadd(this['editor'][_0x37a6('0xde')]['schema'],this[_0x37a6('0x132')]['locale']),this['_adapter']=null,this[_0x37a6('0x45')]=new Dt(this[_0x37a6('0x132')]),this[_0x37a6('0x80')]=new Map(),this['_commentsRepository']=_0x1d53fd[_0x37a6('0x12')]['get']('CommentsRepository'),this[_0x37a6('0xdd')]=new Set(),this[_0x37a6('0x54')]=this[_0x37a6('0x132')][_0x37a6('0xde')],this[_0x37a6('0x48')]=new WeakMap(),this[_0x37a6('0x121')]=!0x1,_0x1d53fd[_0x37a6('0x112')][_0x37a6('0x11a')](_0x37a6('0x51'),_0x37a6('0x49')),this[_0x37a6('0x70')]=_0x1d53fd[_0x37a6('0x112')][_0x37a6('0x27')]('trackChanges.trackFormatChanges'),_0x1d53fd[_0x37a6('0x112')][_0x37a6('0x11a')](_0x37a6('0x2c'),!0x0),this[_0x37a6('0xac')]=_0x1d53fd[_0x37a6('0x112')]['get'](_0x37a6('0x2c')),this[_0x37a6('0xab')]=new _0x24b533(_0x1d53fd,this[_0x37a6('0xdd')]),this[_0x4168f1([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4168f1([0x34,0x30,0x34,0x36,0x31,0x34,0x30,0x36]);}[_0x37a6('0x6f')](){const _0x1a264e=this[_0x37a6('0x132')];_0x1a264e[_0x37a6('0xd7')][_0x37a6('0x84')](_0x37a6('0xd2'))[_0x37a6('0x67')]({'model':_0x37a6('0x8'),'view':_0x2c4fc8=>{const {id:_0xf572cb,type:_0x1e07e9}=this[_0x37a6('0x13c')](_0x2c4fc8[_0x37a6('0xa')]),_0x122a6b=[_0x37a6('0xfd'),_0x37a6('0x52')+_0x1e07e9];let _0xb080=0xbb8;return this['activeMarkers'][_0x37a6('0x14a')](_0x2c4fc8[_0x37a6('0xa')])&&(_0x122a6b[_0x37a6('0x4d')](_0x37a6('0x79')),_0xb080=0xbc2),_0x37a6('0xb8')==_0x1e07e9&&(_0xb080+=0x5),{'classes':_0x122a6b,'attributes':{'data-suggestion':_0xf572cb},'priority':_0xb080};}}),_0x1a264e[_0x37a6('0xd7')]['for'](_0x37a6('0x11b'))['add'](_0x1bcf8d=>{_0x1bcf8d['on']('addMarker:suggestion',(_0x82fdbc,_0x3cf6c7,_0x3355e3)=>{if(!_0x3355e3[_0x37a6('0xaa')][_0x37a6('0x116')])return;const _0x1348c0=_0x3cf6c7[_0x37a6('0x2e')];if(!_0x1348c0)return;const _0x3ce619=_0x3355e3[_0x37a6('0x44')][_0x37a6('0x5b')](_0x1348c0);_0x1a264e[_0x37a6('0xde')]['schema']['isObject'](_0x1348c0)&&_0x3ce619&&!_0x3ce619[_0x37a6('0x113')](_0x37a6('0xb4'))&&_0x3ce619['is'](_0x37a6('0x23'))&&_0x4629d0(_0x3ce619,_0x3355e3[_0x37a6('0x18')]);},{'priority':_0x37a6('0xdf')});}),_0x1a264e[_0x37a6('0xd7')][_0x37a6('0x84')](_0x37a6('0x11b'))[_0x37a6('0x67')]({'model':_0x37a6('0x8'),'view':(_0x1365e2,_0x6ade4e)=>{if(!_0x6ade4e[_0x37a6('0xaa')]['showSuggestionHighlights'])return null;const {type:_0x697a00}=this['_splitMarkerName'](_0x1365e2[_0x37a6('0xa')]);return{'classes':[_0x37a6('0xfd'),'ck-suggestion-marker-'+_0x697a00],'priority':0xbb8};}});const _0x3fc313=({showActiveMarkers:_0x4ca470=!0x0}={})=>(_0x532beb,_0x5a2bd9,_0x586b60)=>{if(!_0x5a2bd9['item'])return;if(_0x5a2bd9[_0x37a6('0x2e')]['is'](_0x37a6('0x28')))return void _0x586b60[_0x37a6('0x71')][_0x37a6('0xdb')](_0x5a2bd9[_0x37a6('0x2e')],_0x532beb['name']);const _0x23e4c4=_0x586b60[_0x37a6('0x44')][_0x37a6('0x5b')](_0x5a2bd9[_0x37a6('0x2e')]);if(!(_0x5a2bd9[_0x37a6('0x2e')]['is'](_0x37a6('0x90'))&&_0x1a264e[_0x37a6('0xde')][_0x37a6('0x11d')]['isBlock'](_0x5a2bd9[_0x37a6('0x2e')])&&!_0x23e4c4[_0x37a6('0x113')](_0x37a6('0x81'))))return;const {id:_0x1bde5f}=this[_0x37a6('0x13c')](_0x5a2bd9[_0x37a6('0xa')]);_0x586b60['writer'][_0x37a6('0x8a')]([_0x37a6('0xfd'),_0x37a6('0x139')],_0x23e4c4),_0x586b60[_0x37a6('0x18')][_0x37a6('0x73')](_0x37a6('0xc0'),_0x1bde5f,_0x23e4c4),_0x586b60['mapper'][_0x37a6('0x103')](_0x23e4c4,_0x5a2bd9[_0x37a6('0xa')]),_0x4ca470&&(this[_0x37a6('0x105')]['includes'](_0x5a2bd9[_0x37a6('0xa')])?_0x586b60['writer'][_0x37a6('0x8a')](_0x37a6('0x79'),_0x23e4c4):_0x586b60[_0x37a6('0x18')][_0x37a6('0xd0')](_0x37a6('0x79'),_0x23e4c4));for(const _0x50a77f of _0x1a264e[_0x37a6('0xde')]['createRangeIn'](_0x5a2bd9['item'])[_0x37a6('0xa9')]())_0x586b60[_0x37a6('0x71')][_0x37a6('0xdb')](_0x50a77f,_0x532beb[_0x37a6('0x146')]);_0x586b60[_0x37a6('0x71')]['consume'](_0x5a2bd9['item'],_0x532beb[_0x37a6('0x146')]);};_0x1a264e[_0x37a6('0xd7')][_0x37a6('0x84')](_0x37a6('0x11b'))[_0x37a6('0xf4')](_0x3f6870=>{_0x3f6870['on'](_0x37a6('0xb2'),(_0x2d6594,_0x577141,_0x12bb46)=>{_0x12bb46['options']['showSuggestionHighlights']&&_0x3fc313({'showActiveMarkers':!0x1})(_0x2d6594,_0x577141,_0x12bb46);},{'priority':_0x37a6('0x53')});}),_0x1a264e[_0x37a6('0xd7')][_0x37a6('0x84')](_0x37a6('0x11b'))[_0x37a6('0x4a')]({'model':_0x37a6('0x8'),'view':(_0x4a5e3f,_0xf70586)=>_0xf70586[_0x37a6('0xaa')][_0x37a6('0x116')]?null:{'group':_0x37a6('0x8'),'name':_0x4a5e3f[_0x37a6('0x77')](0xb)}}),_0x1a264e[_0x37a6('0xd7')][_0x37a6('0x84')](_0x37a6('0x4f'))[_0x37a6('0x129')]({'view':{'name':_0x37a6('0x8'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x597044,{writer:_0x1cc05c})=>{let _0x2cabbc=_0x37a6('0xaf')+_0x597044[_0x37a6('0x110')](_0x37a6('0x13'))+':'+_0x597044[_0x37a6('0x110')]('id');return _0x597044[_0x37a6('0x110')]('marker-count')&&(_0x2cabbc+=':'+_0x597044[_0x37a6('0x110')](_0x37a6('0xb3'))),_0x1cc05c[_0x37a6('0x82')](_0x37a6('0x9d'),{'data-name':_0x2cabbc});}}),_0x1a264e[_0x37a6('0xd7')][_0x37a6('0x84')](_0x37a6('0x4f'))[_0x37a6('0xa8')]({'view':'suggestion'}),_0x1a264e[_0x37a6('0xd7')][_0x37a6('0x84')](_0x37a6('0xd2'))[_0x37a6('0xf4')](_0x5eb1b9=>{_0x5eb1b9['on'](_0x37a6('0xb2'),_0x3fc313(),{'priority':_0x37a6('0xdf')});}),_0x1a264e[_0x37a6('0xd7')][_0x37a6('0x84')](_0x37a6('0xd2'))[_0x37a6('0xf4')](_0x31349b=>{_0x31349b['on']('removeMarker:suggestion:formatBlock',(_0x153816,_0x5cf357,_0x13e826)=>{const _0x42b588=_0x13e826[_0x37a6('0x44')][_0x37a6('0xda')](_0x5cf357[_0x37a6('0xa')]);if(_0x42b588)for(const _0x1adfe8 of _0x42b588)_0x1adfe8[_0x37a6('0x113')](_0x37a6('0x81'))||(_0x13e826[_0x37a6('0x18')]['removeClass'](['ck-suggestion-marker',_0x37a6('0x139'),_0x37a6('0x79')],_0x1adfe8),_0x13e826['writer'][_0x37a6('0xd8')](_0x37a6('0xc0'),_0x1adfe8),_0x13e826[_0x37a6('0x44')][_0x37a6('0xe8')](_0x1adfe8,_0x5cf357[_0x37a6('0xa')]));},{'priority':_0x37a6('0xdf')});}),_0x1a264e['model']['document']['registerPostFixer'](_0x45c567=>{let _0x3beda9=!0x1;const _0x1a6aaa=Array[_0x37a6('0x63')](_0x1a264e['model'][_0x37a6('0x102')][_0x37a6('0x106')][_0x37a6('0x144')]()),_0x1d2a29=new Set();for(const {name:_0x450efc,data:_0xfbfaa1}of _0x1a6aaa){const {group:_0xbe62e6,type:_0x4a1620,id:_0x53949a}=this[_0x37a6('0x13c')](_0x450efc);if(_0x37a6('0x8')!==_0xbe62e6)continue;const _0x21bc14=this[_0x37a6('0x80')]['get'](_0x53949a);if(null!=_0xfbfaa1[_0x37a6('0x91')]){_0x37a6('0x127')==_0x4a1620&&(_0x3beda9=_0x3beda9||Mt(_0xfbfaa1[_0x37a6('0x91')],_0x450efc,_0x45c567,_0x1a264e[_0x37a6('0xde')]['schema']));if(_0xfbfaa1['newRange'][_0x37a6('0xce')]||_0x37a6('0x147')==_0xfbfaa1['newRange'][_0x37a6('0x98')][_0x37a6('0x3c')]||'formatBlock'==_0x4a1620&&!Nt(_0xfbfaa1[_0x37a6('0x91')])||_0x37a6('0xb8')==_0x4a1620&&!(!_t(_0x3835f3=_0xfbfaa1[_0x37a6('0x91')])&&!function(_0x4e0a64){return _0x4e0a64[_0x37a6('0x100')][_0x37a6('0x8c')]==_0x4e0a64[_0x37a6('0x7c')][_0x37a6('0x1c')]&&_0x4e0a64[_0x37a6('0x100')]['isAtEnd'];}(_0x3835f3)))_0x45c567[_0x37a6('0x145')](_0x450efc),_0x3beda9=!0x0;else{if(!_0x21bc14||!_0x21bc14[_0x37a6('0x78')])continue;_0x1d2a29[_0x37a6('0xf4')](_0x21bc14);}}}var _0x3835f3;return _0x1d2a29[_0x37a6('0x0')]>0x0&&(_0x3beda9=!!this[_0x37a6('0x40')](_0x1d2a29)||_0x3beda9),_0x3beda9;}),_0x1a264e[_0x37a6('0xde')]['document'][_0x37a6('0x29')](_0x216e60=>{let _0x97ed1d=!0x1;for(const _0x455306 of _0x1a264e[_0x37a6('0xde')]['document']['differ'][_0x37a6('0x1')]()){if('insert'!=_0x455306[_0x37a6('0x55')])continue;const _0x11f22c=_0x455306[_0x37a6('0x7e')][_0x37a6('0xd4')](_0x455306[_0x37a6('0x75')]);if(_0x11f22c[_0x37a6('0x1d')])for(const _0x95e201 of this['_suggestions'][_0x37a6('0x94')]()){if(_0x95e201[_0x37a6('0xae')]||!_0x95e201[_0x37a6('0x78')])continue;if(_0x37a6('0xd1')!=_0x95e201[_0x37a6('0x55')])continue;const _0x29ae25=_0x95e201[_0x37a6('0x7f')]();if(_0x29ae25[_0x37a6('0x100')][_0x37a6('0x8c')]!=_0x29ae25[_0x37a6('0x7c')][_0x37a6('0x8c')]&&_0x29ae25['end'][_0x37a6('0x32')](_0x455306['position'])){const _0x273927=_0x1a264e[_0x37a6('0xde')][_0x37a6('0xf0')](_0x29ae25[_0x37a6('0x100')],_0x11f22c);_0x216e60[_0x37a6('0x13d')](_0x95e201[_0x37a6('0x10')](),{'range':_0x273927}),_0x97ed1d=!0x0;}}}return _0x97ed1d;}),_0x1a264e[_0x37a6('0xde')][_0x37a6('0x92')]['on'](_0x37a6('0xe2'),(_0x2251d9,_0x5b43f0,_0x1b9cb7)=>{if(null==_0x1b9cb7){const {id:_0x3f7394}=this['_splitMarkerName'](_0x5b43f0[_0x37a6('0x146')]),_0x46ac1e=this['_suggestions']['get'](_0x3f7394);_0x46ac1e&&_0x46ac1e['addMarkerName'](_0x5b43f0[_0x37a6('0x146')]);}}),_0x1a264e['model']['document']['on'](_0x37a6('0x8d'),()=>{const _0x27191f=Array['from'](_0x1a264e[_0x37a6('0xde')][_0x37a6('0x102')][_0x37a6('0x106')][_0x37a6('0x144')]())['filter'](_0x46ab03=>_0x37a6('0x8')===this[_0x37a6('0x13c')](_0x46ab03[_0x37a6('0x146')])['group']);if(0x0===_0x27191f['length'])return;_0x27191f[_0x37a6('0x6e')]((_0x961984,_0x433247)=>{const _0x158c9c=_0x961984[_0x37a6('0x11e')][_0x37a6('0x72')],_0x195a2f=_0x433247['data']['oldRange'];return null===_0x158c9c&&null===_0x195a2f?0x0:null===_0x158c9c&&null!==_0x195a2f?-0x1:null!==_0x158c9c&&null===_0x195a2f?0x1:_0x158c9c[_0x37a6('0x100')][_0x37a6('0xcd')](_0x195a2f[_0x37a6('0x100')])?-0x1:0x1;});const _0x4f8608=new Set(),_0x326af0=new Set();for(const {name:_0x3f0ecc,data:_0x239c25}of _0x27191f){const {id:_0x327449}=this[_0x37a6('0x13c')](_0x3f0ecc);if(null===_0x239c25[_0x37a6('0x72')]){const _0xe7481a=this[_0x37a6('0xeb')](_0x3f0ecc);_0x326af0[_0x37a6('0xf4')](_0xe7481a);}else{const _0x22db69=this[_0x37a6('0x80')][_0x37a6('0x27')](_0x327449);null!==_0x239c25[_0x37a6('0x91')]||_0x22db69['isInContent']?(_0x4f8608[_0x37a6('0xf4')](_0x22db69[_0x37a6('0xb9')]),_0x326af0[_0x37a6('0xf4')](_0x22db69)):this['_removeSuggestion'](_0x22db69);}}_0x326af0[_0x37a6('0x0')]>0x0&&this['_refreshSuggestionsChain'](_0x326af0);for(const _0x481c82 of _0x4f8608)this[_0x37a6('0xc1')]('suggestionChanged',_0x481c82);}),_0x1a264e['model']['on'](_0x37a6('0x24'),(_0x3699e1,_0x4da902)=>{const _0x33528c=_0x4da902[0x0];if(!this[_0x37a6('0x80')][_0x37a6('0x0')])return;if(!_0x33528c[_0x37a6('0x74')])return;if(_0x33528c[_0x37a6('0x30')][_0x37a6('0x101')]||!_0x33528c[_0x37a6('0x30')][_0x37a6('0xd3')])return;let _0x25292f,_0x4e69c1;switch(_0x33528c['type']){case _0x37a6('0xc7'):_0x25292f=_0x1a264e[_0x37a6('0xde')]['createPositionAt'](_0x33528c[_0x37a6('0x7e')]),_0x4e69c1=_0x25292f['getShiftedBy'](_0x33528c[_0x37a6('0x12e')]);break;case _0x37a6('0x2a'):_0x25292f=_0x1a264e['model']['createPositionAt'](_0x33528c[_0x37a6('0x14')]),_0x4e69c1=_0x1a264e[_0x37a6('0xde')][_0x37a6('0x5c')](_0x33528c[_0x37a6('0xe1')]);break;case _0x37a6('0xa7'):_0x25292f=_0x1a264e[_0x37a6('0xde')][_0x37a6('0x5c')](_0x33528c[_0x37a6('0x12a')]),_0x4e69c1=_0x25292f[_0x37a6('0xd4')](_0x33528c[_0x37a6('0x12e')]);break;default:return;}const _0x12a19d=_0x1a264e[_0x37a6('0xde')][_0x37a6('0xf0')](_0x25292f,_0x4e69c1);_0x1a264e[_0x37a6('0xde')][_0x37a6('0xcf')](()=>{for(const {suggestion:_0x3a0fdb,meta:_0x5343fe}of this[_0x37a6('0x9f')](_0x12a19d)){if(_0x3a0fdb[_0x37a6('0xae')])continue;if(_0x37a6('0x127')==_0x3a0fdb[_0x37a6('0x55')])continue;const _0xd5883=_0x3a0fdb[_0x37a6('0x11e')]&&_0x3a0fdb[_0x37a6('0x11e')][_0x37a6('0x109')];(_0x37a6('0xd1')!=_0x3a0fdb['type']||_0x37a6('0x2a')==_0x33528c[_0x37a6('0x55')]&&!_0xd5883)&&(_0x5343fe[_0x37a6('0x5d')]||'insertion'==_0x3a0fdb[_0x37a6('0x55')]&&_0x5343fe[_0x37a6('0x19')]||_0x3a0fdb[_0x37a6('0x7f')]()[_0x37a6('0x3a')](_0x12a19d)&&this[_0x37a6('0x142')](_0x3a0fdb,_0x25292f,_0x4e69c1));}});},{'priority':_0x37a6('0x86')}),_0x1a264e[_0x37a6('0xde')]['on']('deleteContent',(_0x234357,_0x7b89af)=>{const _0x4e2fa3=_0x7b89af[0x0],_0x88f40f=_0x7b89af[0x1];if(_0x88f40f&&_0x88f40f[_0x37a6('0x6b')])return;if(this[_0x37a6('0x121')])return;if(!this[_0x37a6('0xab')]['value'])return;if(_0x4e2fa3[_0x37a6('0xce')])return;const _0x262fb3=_0x1a264e[_0x37a6('0xde')][_0x37a6('0x11d')],{start:_0x35171c,end:_0x46dc95}=_0x4e2fa3[_0x37a6('0x7f')](),_0x3e5603=_0x35171c['nodeAfter']&&_0x262fb3[_0x37a6('0x16')](_0x35171c[_0x37a6('0x87')])?null:_0x262fb3[_0x37a6('0xd5')](_0x35171c,'forward'),_0x2df9e8=_0x46dc95['nodeBefore']&&_0x262fb3[_0x37a6('0x16')](_0x46dc95['nodeBefore'])?null:_0x262fb3[_0x37a6('0xd5')](_0x46dc95,_0x37a6('0xf5')),_0x7f6c8c=_0x1a264e[_0x37a6('0xde')][_0x37a6('0xf0')](_0x3e5603?_0x3e5603['start']:_0x35171c,_0x2df9e8?_0x2df9e8['end']:_0x46dc95);_0x1a264e['model'][_0x37a6('0xcf')](_0x1605c9=>{this['markDeletion'](_0x7f6c8c);const _0x2cb74b=_0x1a264e[_0x37a6('0xde')]['schema'][_0x37a6('0xd5')](_0x7f6c8c[_0x37a6('0x100')]);_0x4e2fa3['is'](_0x37a6('0x57'))?_0x1605c9[_0x37a6('0x58')](_0x2cb74b):_0x4e2fa3[_0x37a6('0x143')](_0x2cb74b);}),_0x234357[_0x37a6('0x8e')]();},{'priority':_0x1075f6[_0x37a6('0x3')]+0xa}),_0x1a264e[_0x37a6('0xde')]['on'](_0x37a6('0xb0'),(_0x4d3f21,_0x309eea)=>{const _0x1bf448=_0x309eea[_0x309eea[_0x37a6('0x75')]-0x1];_0x1bf448&&_0x1bf448[_0x37a6('0x6b')]||this[_0x37a6('0x121')]||this[_0x37a6('0xab')][_0x37a6('0x26')]&&(_0x1a264e[_0x37a6('0xde')][_0x37a6('0xcf')](()=>{let _0x593388=_0x1a264e['model'][_0x37a6('0xb0')](_0x309eea[0x0],_0x309eea[0x1],_0x309eea[0x2],{'forceDefaultExecution':!0x0});if(!_0x593388)return;_0x4d3f21[_0x37a6('0x3b')]=_0x593388[_0x37a6('0xf')]();const _0x5d20f4=_0x593388[_0x37a6('0x7c')][_0x37a6('0x1c')],_0x1ac07b=_0x1a264e[_0x37a6('0xde')][_0x37a6('0x11d')];_0x5d20f4&&_0x1ac07b[_0x37a6('0xe7')](_0x5d20f4)&&!_0x1ac07b[_0x37a6('0xed')](_0x5d20f4)&&(_0x593388=_0x1a264e['model']['createRange'](_0x593388[_0x37a6('0x100')],_0x1a264e[_0x37a6('0xde')]['createPositionAt'](_0x5d20f4,_0x37a6('0x7c')))),this['markInsertion'](_0x593388);}),_0x4d3f21[_0x37a6('0x8e')]());},{'priority':_0x37a6('0xdf')}),this[_0x37a6('0x132')][_0x37a6('0xc2')]['add'](_0x37a6('0xe9'),this[_0x37a6('0xab')]),this['enableCommand'](_0x37a6('0xe9'));const _0x5c0108=new _0x4bbdd1(_0x1a264e,this[_0x37a6('0x80')]);_0x1a264e['commands'][_0x37a6('0xf4')]('acceptSuggestion',_0x5c0108),this[_0x37a6('0x122')]('acceptSuggestion');const _0x3490bf=new _0x1ab194(_0x1a264e,this['_suggestions']);_0x1a264e[_0x37a6('0xc2')]['add'](_0x37a6('0x8f'),_0x3490bf),this[_0x37a6('0x122')](_0x37a6('0x8f')),_0x1a264e[_0x37a6('0xc2')][_0x37a6('0xf4')](_0x37a6('0x2f'),new _0x3619cf(_0x1a264e,_0x5c0108,this[_0x37a6('0x80')])),this[_0x37a6('0x122')](_0x37a6('0x2f')),_0x1a264e[_0x37a6('0xc2')][_0x37a6('0xf4')](_0x37a6('0xfa'),new _0x3619cf(_0x1a264e,_0x3490bf,this[_0x37a6('0x80')])),this[_0x37a6('0x122')](_0x37a6('0xfa')),_0x1a264e[_0x37a6('0xc2')]['add']('acceptSelectedSuggestions',new _0x59b893(_0x1a264e,_0x5c0108,this['_suggestions'])),this[_0x37a6('0x122')](_0x37a6('0x60')),_0x1a264e['commands'][_0x37a6('0xf4')]('discardSelectedSuggestions',new _0x59b893(_0x1a264e,_0x3490bf,this[_0x37a6('0x80')])),this[_0x37a6('0x122')](_0x37a6('0x13f'));const _0x3ab1d9=_0x1a264e['plugins'][_0x37a6('0x27')](_0x37a6('0x13b'));this[_0x37a6('0xe4')](_0x3ab1d9,_0x37a6('0x21'),(_0x446ca4,{threadId:_0x1ed3f6})=>{const _0x209ab7=this[_0x37a6('0x80')]['get'](_0x1ed3f6);_0x209ab7&&_0x209ab7[_0x37a6('0x114')]&&0x1===_0x209ab7['commentThread'][_0x37a6('0x75')]&&this[_0x37a6('0x1f')](_0x1ed3f6,{'hasComments':!0x0});},{'priority':_0x37a6('0x10c')}),this[_0x37a6('0xe4')](_0x3ab1d9,_0x37a6('0x17'),(_0x5eebdf,{threadId:_0x2661eb})=>{const _0x2ea8df=this[_0x37a6('0x80')][_0x37a6('0x27')](_0x2661eb);_0x2ea8df&&_0x2ea8df[_0x37a6('0x114')]&&!_0x2ea8df[_0x37a6('0x114')]['length']&&this['_updateSuggestionData'](_0x2661eb,{'hasComments':!0x1});},{'priority':_0x37a6('0x10c')});}set['adapter'](_0x429d0b){if(this[_0x37a6('0xa6')])throw new _0x54d2cb('track-changes-adapter-already-set',this);this[_0x37a6('0xa6')]=_0x429d0b;}get[_0x37a6('0xa2')](){return this[_0x37a6('0xa6')];}[_0x37a6('0x89')]({skipNotAttached:_0x48c7da=!0x1,toJSON:_0x4d1f97=!0x1}={}){const _0x4a6036=[];for(const _0x212dfa of this[_0x37a6('0x80')][_0x37a6('0x94')]())_0x48c7da&&!_0x212dfa[_0x37a6('0x78')]||_0x4a6036[_0x37a6('0x4d')](_0x212dfa);return _0x4d1f97?_0x4a6036[_0x37a6('0x7b')](_0xc37f11=>_0xc37f11[_0x37a6('0xfc')]()):_0x4a6036;}[_0x37a6('0x9e')](_0x51d88b){const _0x1c6634=this[_0x37a6('0x80')][_0x37a6('0x27')](_0x51d88b);if(!_0x1c6634)throw new _0x54d2cb(_0x37a6('0x141'),this);return _0x1c6634;}[_0x37a6('0x4b')](_0x4a0a49){return this[_0x37a6('0x80')][_0x37a6('0x138')](_0x4a0a49);}[_0x37a6('0xf8')](_0x378886){const {authorId:_0x19fcad,id:_0x188644,attributes:_0x2e4b52}=_0x378886,[_0x515bf0,_0x3cb42a]=_0x378886[_0x37a6('0x55')][_0x37a6('0x2a')](':'),_0x51dd3a=this[_0x37a6('0x80')][_0x37a6('0x27')](_0x188644)||this['_createSuggestion'](_0x515bf0,_0x3cb42a,_0x188644,_0x19fcad,_0x2e4b52);if(this[_0x37a6('0x7a')](_0x51dd3a),this[_0x37a6('0xb5')](_0x51dd3a,_0x515bf0,_0x3cb42a||null,_0x19fcad),_0x51dd3a[_0x37a6('0xb6')]=_0x378886[_0x37a6('0xb6')],_0x2e4b52&&_0x2e4b52['@external']){const _0xb151f9=_0x2e4b52[_0x37a6('0x6a')],_0x47bef0=this[_0x37a6('0x6c')](_0xb151f9[_0x37a6('0x12d')]);_0x51dd3a[_0x37a6('0xc3')]=_0xb151f9[_0x37a6('0xb6')],_0x51dd3a['author']=_0x47bef0,_0x51dd3a[_0x37a6('0xf7')]=!0x0;}else _0x51dd3a[_0x37a6('0xc3')]=_0x378886[_0x37a6('0xb6')];switch(_0x378886[_0x37a6('0x11e')]&&(_0x51dd3a[_0x37a6('0x11e')]=_0x378886[_0x37a6('0x11e')]),_0x378886[_0x37a6('0x118')]&&(_0x51dd3a[_0x37a6('0x118')]=_0x378886[_0x37a6('0x118')]),this['_adapter']&&this[_0x37a6('0xa6')]['addSuggestion']||(_0x51dd3a[_0x37a6('0x4')]=!0x0),this[_0x37a6('0x48')]['get'](_0x51dd3a)){case _0x37a6('0x1a'):this['_suggestionState']['set'](_0x51dd3a,_0x37a6('0x117'));break;case _0x37a6('0x107'):_0x51dd3a[_0x37a6('0x78')]?(this[_0x37a6('0x48')]['set'](_0x51dd3a,_0x37a6('0xba')),this[_0x37a6('0xc1')](_0x37a6('0x2'),_0x51dd3a)):this[_0x37a6('0x48')][_0x37a6('0xe5')](_0x51dd3a,_0x37a6('0xbb'));}return _0x51dd3a;}[_0x37a6('0x128')](_0x1ff667){this[_0x37a6('0x6b')](()=>{this[_0x37a6('0x132')][_0x37a6('0xde')]['change'](()=>{for(const _0x1af86c of _0x1ff667[_0x37a6('0xa4')]())_0x1af86c[_0x37a6('0xc6')]();});});}[_0x37a6('0x8f')](_0x529ac1){this[_0x37a6('0x6b')](()=>{this[_0x37a6('0x132')]['model'][_0x37a6('0xcf')](()=>{for(const _0x29ed40 of _0x529ac1[_0x37a6('0xa4')]())_0x29ed40[_0x37a6('0xdc')]();});});}[_0x37a6('0x122')](_0x4b070a,_0x2441a1){const _0x3deddf=this['editor'][_0x37a6('0xc2')]['get'](_0x4b070a);if(!_0x3deddf)throw new _0x54d2cb(_0x37a6('0x25'),this,{'commandName':_0x4b070a});this['_enabledCommands']['add'](_0x3deddf),_0x2441a1&&_0x3deddf['on'](_0x37a6('0xad'),(_0x11461d,_0x4de6cb)=>{this['trackChangesCommand'][_0x37a6('0x26')]&&(this[_0x37a6('0x121')]||_0x4de6cb[_0x37a6('0x75')]>0x0&&_0x4de6cb[_0x4de6cb[_0x37a6('0x75')]-0x1]&&_0x4de6cb[_0x4de6cb[_0x37a6('0x75')]-0x1][_0x37a6('0x6b')]||(_0x2441a1((..._0x534084)=>_0x3deddf[_0x37a6('0xad')](..._0x534084,{'forceDefaultExecution':!0x0}),..._0x4de6cb),_0x11461d['stop']()));},{'priority':_0x37a6('0xdf')});}[_0x37a6('0x6b')](_0x5a7af0){let _0x52187e,_0x47cdc9;const _0x19cde7=this['_isForcedDefaultExecutionBlock'];this[_0x37a6('0x121')]=!0x0;try{_0x52187e=_0x5a7af0();}catch(_0x3cf1ef){_0x47cdc9=_0x3cf1ef;}return _0x19cde7||(this[_0x37a6('0x121')]=!0x1),_0x47cdc9&&_0x54d2cb[_0x37a6('0xe')](_0x47cdc9,this),_0x52187e;}[_0x37a6('0xc5')](_0x557ce0,_0x20a824=null,_0x3d7835={}){if(_0x557ce0[_0x37a6('0xce')])return null;const _0x2ea71f=this[_0x37a6('0x132')]['plugins']['get'](_0x37a6('0x15'))['me'];for(const {suggestion:_0x3b2d17,meta:_0x3e258e}of this[_0x37a6('0x9f')](_0x557ce0,'insertion'))if(_0x3e258e[_0x37a6('0x19')]){if(!_0x3e258e[_0x37a6('0x133')]){if(!this['_mergeNestedSuggestions']&&_0x3e258e[_0x37a6('0x5d')])continue;return _0x3b2d17;}if(_0x20a824==_0x3b2d17['subType']){const _0x303a82=_0x3b2d17[_0x37a6('0x7f')]();return _0x303a82['start'][_0x37a6('0x32')](_0x557ce0[_0x37a6('0x7c')])?this[_0x37a6('0xbc')](_0x3b2d17,this[_0x37a6('0x54')][_0x37a6('0xf0')](_0x557ce0[_0x37a6('0x100')],_0x303a82[_0x37a6('0x7c')])):this['_setSuggestionRange'](_0x3b2d17,this[_0x37a6('0x54')]['createRange'](_0x303a82[_0x37a6('0x100')],_0x557ce0['end'])),_0x3b2d17;}}const _0x7ad9d2=_0x347c0d(),_0x5574d7=_0x2ea71f['id'],_0x3978dc=_0x20a824?_0x37a6('0x2d')+_0x20a824:'insertion',_0x42d74d=this['_setSuggestionData']({'id':_0x7ad9d2,'type':_0x3978dc,'createdAt':new Date(),'authorId':_0x5574d7,'attributes':_0x3d7835});return this['_addSuggestionMarker'](_0x3978dc,_0x7ad9d2,_0x5574d7,_0x557ce0),_0x42d74d;}[_0x37a6('0x11f')](_0x20c069,_0x233903='multi',_0x4749cc={}){const _0x5ba7bc=this[_0x37a6('0x132')][_0x37a6('0x12')][_0x37a6('0x27')](_0x37a6('0x15'))['me'],_0xbaf66c=this[_0x37a6('0x45')][_0x37a6('0x12f')]('insertion',_0x233903,_0x37a6('0xbe'));for(const _0x968e05 of this['getSuggestions']())if(_0x968e05['author']['id']==_0x5ba7bc['id']&&_0x37a6('0x59')==_0x968e05[_0x37a6('0x55')]&&_0x968e05[_0x37a6('0xee')]==_0x233903&&(_0xbaf66c(_0x968e05['getRanges'](),_0x20c069)||_0xbaf66c(_0x20c069,_0x968e05[_0x37a6('0x149')]()))){for(const _0x4ee0ae of _0x20c069)_0x968e05['addRange'](_0x4ee0ae);return _0x968e05;}if(this[_0x37a6('0xac')])for(const _0x3e8dfc of _0x20c069)for(const {suggestion:_0x5e1df1,meta:_0x41257f}of this[_0x37a6('0x9f')](_0x3e8dfc,_0x37a6('0x59'))){if(!_0x41257f[_0x37a6('0x19')])continue;let _0x1bf35c=!0x0;for(const _0xeb931b of _0x5e1df1[_0x37a6('0x149')]())for(const _0x4d6905 of _0x20c069)if(!_0xeb931b[_0x37a6('0x3a')](_0x4d6905)){_0x1bf35c=!0x1;break;}if(_0x1bf35c)return _0x5e1df1;}const _0x3f53d4=_0x347c0d(),_0x3b5734=_0x5ba7bc['id'],_0xeae75='insertion:'+_0x233903,_0x205cab=this[_0x37a6('0x7')]({'id':_0x3f53d4,'type':_0xeae75,'createdAt':new Date(),'authorId':_0x3b5734,'attributes':_0x4749cc});for(const _0x257c51 of _0x20c069)this[_0x37a6('0x66')](_0xeae75,_0x3f53d4,_0x3b5734,_0x257c51,_0x3b9d53[_0x37a6('0x5e')]());return _0x205cab;}['markInlineFormat'](_0x4c5320,_0x58e77e,_0x89a157=null,_0x472748={}){if(_0x89a157=_0x89a157||$t(_0x58e77e),_0x4c5320[_0x37a6('0xce')])return null;if(_0x37a6('0x10e')===this[_0x37a6('0x70')]){const _0x34822c=this[_0x37a6('0x45')][_0x37a6('0x12f')](_0x37a6('0x127'),_0x89a157,'accept');return this[_0x37a6('0x6b')](()=>_0x34822c([_0x4c5320],_0x58e77e,_0x472748)),null;}const _0x1af5af=this[_0x37a6('0x132')][_0x37a6('0x12')][_0x37a6('0x27')](_0x37a6('0x15'))['me'],_0x389ea5=[];if(_0x37a6('0x37')!==this[_0x37a6('0x70')])for(const {suggestion:_0x4762d0,meta:_0x15627c}of this['_findSuggestions'](_0x4c5320,_0x37a6('0x59')))_0x15627c[_0x37a6('0x19')]&&!_0x15627c[_0x37a6('0x115')]&&_0x389ea5['push'](..._0x4762d0['getRanges']());const _0x3dbd39=function(_0x32938c,_0x3c586b){const _0x4fdb52=[];for(const _0x596181 of _0x3c586b){const _0x1d211d=_0x32938c[_0x37a6('0xa1')](_0x596181);_0x1d211d&&_0x4fdb52[_0x37a6('0x4d')](_0x1d211d);}return _0x4fdb52;}(_0x4c5320,_0x389ea5),_0x545c68=function(_0x1e3987,_0xcbddb3){const _0x4bf8af=[_0x1e3987];for(const _0x4cd484 of _0xcbddb3){let _0x3a8f80=0x0;for(;_0x3a8f80<_0x4bf8af['length'];){const _0x893416=_0x4bf8af[_0x3a8f80][_0x37a6('0x1b')](_0x4cd484);_0x4bf8af[_0x37a6('0x123')](_0x3a8f80,0x1,..._0x893416),_0x3a8f80+=_0x893416[_0x37a6('0x75')];}}return _0x4bf8af;}(_0x4c5320,_0x389ea5);_0x3dbd39[_0x37a6('0x75')]&&this[_0x37a6('0x54')]['change'](()=>{for(const _0x5ddc7c of _0x3dbd39){const _0x1652e0=this[_0x37a6('0x45')][_0x37a6('0x12f')]('formatInline',_0x89a157,_0x37a6('0xc6'));this[_0x37a6('0x6b')](()=>_0x1652e0([_0x5ddc7c],_0x58e77e,_0x472748));}});for(const _0x2ad6ef of _0x545c68){let _0x229b1e=null,_0x28f1ea=_0x2ad6ef[_0x37a6('0x100')],_0x383fd2=_0x2ad6ef['end'];for(const {suggestion:_0x2f4749,meta:_0x2005c6}of this[_0x37a6('0x9f')](_0x2ad6ef,'formatInline')){if(!_0x2005c6[_0x37a6('0x19')])continue;if(_0x2f4749[_0x37a6('0xee')]!=_0x89a157)continue;const _0x1e3094=_0x2f4749['getFirstRange']();if(_0x1e3094[_0x37a6('0x3a')](_0x2ad6ef,!0x0))return null;_0x28f1ea=_0x28f1ea[_0x37a6('0xcd')](_0x1e3094[_0x37a6('0x100')])?_0x28f1ea:_0x1e3094[_0x37a6('0x100')],_0x383fd2=_0x383fd2[_0x37a6('0x130')](_0x1e3094['end'])?_0x383fd2:_0x1e3094[_0x37a6('0x7c')],_0x229b1e?_0x1e3094['start']['isBefore'](_0x229b1e['getFirstRange']()[_0x37a6('0x100')])?(_0x229b1e[_0x37a6('0x111')](),_0x229b1e=_0x2f4749):_0x2f4749[_0x37a6('0x111')]():_0x229b1e=_0x2f4749;}const _0x2a1012=this[_0x37a6('0x54')][_0x37a6('0xf0')](_0x28f1ea,_0x383fd2);if(_0x229b1e)this[_0x37a6('0xbc')](_0x229b1e,_0x2a1012);else{const _0x51ee03=_0x347c0d(),_0x3edb4c=_0x1af5af['id'];this[_0x37a6('0x7')]({'id':_0x51ee03,'type':_0x37a6('0x35')+_0x89a157,'data':_0x58e77e,'createdAt':new Date(),'authorId':_0x3edb4c,'attributes':_0x472748}),this[_0x37a6('0x66')](_0x37a6('0x35')+_0x89a157,_0x51ee03,_0x3edb4c,_0x2a1012);}}return null;}['markBlockFormat'](_0x12c66c,_0x41b4f1,_0x7d10ea=[],_0x346bb8=null,_0x58ea3e={}){_0x41b4f1[_0x37a6('0x131')]||(_0x41b4f1['formatGroupId']=_0x41b4f1[_0x37a6('0x6d')]),_0x41b4f1[_0x37a6('0x109')]=_0x12c66c['is'](_0x37a6('0x9c')),_0x346bb8=_0x346bb8||$t(_0x41b4f1);const _0x216f08=_0x7d10ea['map'](_0x1d34f4=>Rt(_0x1d34f4,this[_0x37a6('0x54')])),_0x11e8b3=_0x12c66c['is'](_0x37a6('0x9c'))?_0x12c66c:Rt(_0x12c66c,this[_0x37a6('0x54')]);if(_0x37a6('0x10e')===this[_0x37a6('0x70')]){const _0x437e26=this[_0x37a6('0x45')][_0x37a6('0x12f')]('formatBlock',_0x346bb8,_0x37a6('0xc6'));return this[_0x37a6('0x6b')](()=>_0x437e26([_0x11e8b3],_0x41b4f1,_0x58ea3e)),null;}_0x216f08[_0x37a6('0x4d')](_0x11e8b3);let _0x300c98=!0x0;for(const _0x2e5496 of _0x216f08)if(!this[_0x37a6('0xef')](_0x2e5496)){_0x300c98=!0x1;break;}if(_0x300c98&&_0x37a6('0x37')!==this['_trackFormatChanges']){const _0x492c7d=this[_0x37a6('0x45')]['getSuggestionCallback'](_0x37a6('0xd1'),_0x346bb8,_0x37a6('0xc6'));return this[_0x37a6('0x6b')](()=>_0x492c7d([_0x11e8b3],_0x41b4f1,_0x58ea3e)),null;}let _0x3f1b5c=null,_0x2208ca=_0x11e8b3[_0x37a6('0x100')],_0x131586=_0x11e8b3[_0x37a6('0x7c')];for(const {suggestion:_0x1c873a,meta:_0xa495e2}of this[_0x37a6('0x9f')](_0x11e8b3,_0x37a6('0xd1'))){if(!_0xa495e2['isOwn']||_0xa495e2['isNextTo']||_0xa495e2['containsRangeInObject']||_0xa495e2[_0x37a6('0x115')])continue;if(_0x1c873a[_0x37a6('0x11e')]['formatGroupId']!=_0x41b4f1[_0x37a6('0x131')])continue;const _0x18c67d=_0x1c873a[_0x37a6('0x7f')]();if(_0x1c873a['subType']==_0x346bb8){if(_0x18c67d[_0x37a6('0x3a')](_0x11e8b3,!0x0))return null;_0x2208ca=_0x2208ca[_0x37a6('0xcd')](_0x18c67d[_0x37a6('0x100')])?_0x2208ca:_0x18c67d[_0x37a6('0x100')],_0x131586=_0x131586[_0x37a6('0x130')](_0x18c67d[_0x37a6('0x7c')])?_0x131586:_0x18c67d[_0x37a6('0x7c')],_0x3f1b5c?_0x18c67d[_0x37a6('0x100')][_0x37a6('0xcd')](_0x3f1b5c[_0x37a6('0x7f')]()[_0x37a6('0x100')])?(_0x3f1b5c['removeMarkers'](),_0x3f1b5c=_0x1c873a):_0x1c873a[_0x37a6('0x111')]():_0x3f1b5c=_0x1c873a;}else{const _0x2aabc2=_0x11e8b3[_0x37a6('0xa1')](_0x18c67d);this[_0x37a6('0x140')](_0x1c873a,_0x2aabc2);}}const _0x383998=this[_0x37a6('0x132')][_0x37a6('0x12')][_0x37a6('0x27')](_0x37a6('0x15'))['me'],_0x252d1f=_0x347c0d(),_0x2917b6=_0x383998['id'];if(_0x3f1b5c)return this['_setSuggestionRange'](_0x3f1b5c,this[_0x37a6('0x54')][_0x37a6('0xf0')](_0x2208ca,_0x131586)),_0x3f1b5c;{const _0x40a893=this[_0x37a6('0x7')]({'id':_0x252d1f,'type':_0x37a6('0xb1')+_0x346bb8,'data':_0x41b4f1,'createdAt':new Date(),'authorId':_0x2917b6,'attributes':_0x58ea3e});return this[_0x37a6('0x66')](_0x37a6('0xb1')+_0x346bb8,_0x252d1f,_0x2917b6,this[_0x37a6('0x54')]['createRange'](_0x2208ca,_0x131586)),_0x40a893;}}[_0x37a6('0x76')](_0x50055a,_0x4483b2,_0x430d5d=[],_0x1d37c2=null,_0x35e63c={}){_0x4483b2[_0x37a6('0x131')]||(_0x4483b2['formatGroupId']=_0x4483b2[_0x37a6('0x6d')]);const _0x1b9b66=_0x50055a[0x0];_0x4483b2[_0x37a6('0x109')]=_0x1b9b66['is'](_0x37a6('0x9c')),_0x1d37c2=_0x1d37c2||$t(_0x4483b2);const _0x4e60d3=_0x430d5d[_0x37a6('0x7b')](_0x1d9cdb=>Rt(_0x1d9cdb,this[_0x37a6('0x54')])),_0x3c491c=_0x1b9b66['is'](_0x37a6('0x9c'))?_0x50055a:_0x50055a[_0x37a6('0x7b')](_0x357dff=>Rt(_0x357dff,this[_0x37a6('0x54')]));if(_0x37a6('0x10e')===this['_trackFormatChanges']){const _0x1737ab=this['_suggestionFactory'][_0x37a6('0x12f')](_0x37a6('0xd1'),_0x1d37c2,_0x37a6('0xc6'));return this['forceDefaultExecution'](()=>_0x1737ab(_0x3c491c,_0x4483b2,_0x35e63c)),null;}_0x4e60d3[_0x37a6('0x4d')](..._0x3c491c);let _0xebf56b=!0x0;for(const _0x46f90d of _0x4e60d3)if(!this[_0x37a6('0xef')](_0x46f90d)){_0xebf56b=!0x1;break;}if(_0xebf56b&&'always'!==this[_0x37a6('0x70')]){const _0x42d7ee=this[_0x37a6('0x45')][_0x37a6('0x12f')](_0x37a6('0xd1'),_0x1d37c2,'accept');return this[_0x37a6('0x6b')](()=>_0x42d7ee(_0x3c491c,_0x4483b2,_0x35e63c)),null;}const _0x3718d1=this[_0x37a6('0x132')][_0x37a6('0x12')][_0x37a6('0x27')](_0x37a6('0x15'))['me'];for(const _0x385011 of this[_0x37a6('0x89')]()){if(_0x385011[_0x37a6('0x41')]['id']!=_0x3718d1['id'])continue;if(_0x37a6('0xd1')!=_0x385011[_0x37a6('0x55')]||_0x385011['data']['formatGroupId']!=_0x4483b2[_0x37a6('0x131')])continue;const _0x439d2a=_0x385011[_0x37a6('0xee')]==_0x1d37c2;for(let _0xeba707=0x0;_0xeba707<_0x3c491c[_0x37a6('0x75')];_0xeba707++){const _0x2b715d=_0x3c491c[_0xeba707];for(const _0x18f917 of _0x385011[_0x37a6('0x5f')]()){const _0x14879b=_0x18f917[_0x37a6('0xe3')]();if(_0x2b715d['isEqual'](_0x14879b)){_0x439d2a?(_0x3c491c[_0x37a6('0x123')](_0xeba707,0x1),_0xeba707--):_0x385011[_0x37a6('0x145')](_0x18f917['name']);break;}}}}if(0x0==_0x3c491c[_0x37a6('0x75')])return null;const _0x414152=this[_0x37a6('0x45')][_0x37a6('0x12f')](_0x37a6('0xd1'),_0x1d37c2,'join');for(const _0x5129fe of this[_0x37a6('0x89')]())if(_0x5129fe[_0x37a6('0x41')]['id']==_0x3718d1['id']&&'formatBlock'==_0x5129fe[_0x37a6('0x55')]&&_0x5129fe[_0x37a6('0x11e')][_0x37a6('0x131')]==_0x4483b2['formatGroupId']&&_0x5129fe[_0x37a6('0xee')]==_0x1d37c2&&(_0x414152(_0x5129fe['getRanges'](),_0x3c491c)||_0x414152(_0x3c491c,_0x5129fe[_0x37a6('0x149')]()))){for(const _0xa64056 of _0x3c491c)_0x5129fe[_0x37a6('0x97')](_0xa64056);return _0x5129fe;}const _0x203749=_0x347c0d(),_0x1072cc=_0x3718d1['id'],_0x484c33=_0x37a6('0xb1')+_0x1d37c2,_0x5125f1=this[_0x37a6('0x7')]({'id':_0x203749,'type':_0x484c33,'data':_0x4483b2,'createdAt':new Date(),'authorId':_0x1072cc,'attributes':_0x35e63c});for(const _0x59c31c of _0x3c491c)this[_0x37a6('0x66')](_0x484c33,_0x203749,_0x1072cc,_0x59c31c,_0x3b9d53[_0x37a6('0x5e')]());return _0x5125f1;}[_0x37a6('0x36')](_0x2bfba8,_0x8b5afe=null,_0x169333={}){if(_0x2bfba8[_0x37a6('0xce')])return null;const _0x51ca1f=this[_0x37a6('0x132')][_0x37a6('0x12')][_0x37a6('0x27')]('Users')['me'],_0x5aba49=new _0x237754(_0x2bfba8[_0x37a6('0x100')],_0x2bfba8['end']);for(const {suggestion:_0x1a8971,meta:_0x3620b9}of this[_0x37a6('0x9f')](_0x5aba49,_0x37a6('0x59')))if(_0x3620b9['isOwn']&&!_0x3620b9[_0x37a6('0x133')]){if(_0x1a8971[_0x37a6('0xae')]){const _0x538165=_0x1a8971[_0x37a6('0x149')]()[_0x37a6('0x5a')](_0x1eaefb=>_0x37a6('0x147')!=_0x1eaefb[_0x37a6('0x98')][_0x37a6('0x3c')]);_0x538165[_0x37a6('0x50')](_0x450028=>_0x5aba49['containsRange'](_0x450028,!0x0))&&_0x1a8971['discard']();if(_0x538165[_0x37a6('0x1e')](_0x11e03b=>_0x11e03b['containsRange'](_0x5aba49,!0x0))){const _0xf9ca08=this[_0x37a6('0x45')][_0x37a6('0x12f')]('deletion',_0x8b5afe,'accept');return this[_0x37a6('0x6b')](()=>_0xf9ca08([_0x5aba49],null,_0x169333)),null;}}else{const _0x340927=_0x5aba49[_0x37a6('0xa1')](_0x1a8971[_0x37a6('0x7f')]());null!==_0x340927&&_0x1a8971[_0x37a6('0x10f')]([_0x340927],null,_0x169333);}}if(_0x5aba49['detach'](),_0x5aba49[_0x37a6('0xce')]||'$graveyard'==_0x5aba49[_0x37a6('0x98')][_0x37a6('0x3c')])return null;let _0x197c28=null,_0x33ae31=_0x5aba49['start'],_0x430b8b=_0x5aba49['end'];for(const {suggestion:_0x16ce2d,meta:_0x42a996}of this['_findSuggestions'](_0x5aba49,'deletion'))if(_0x42a996[_0x37a6('0x19')]){if(_0x16ce2d['isMultiRange']&&this[_0x37a6('0xac')]){let _0x499b9c=!0x0;for(const _0x210cc8 of _0x16ce2d[_0x37a6('0x149')]()){if(_0x210cc8[_0x37a6('0x3a')](_0x5aba49,!0x0))return _0x16ce2d;_0x5aba49['containsRange'](_0x210cc8)||(_0x499b9c=!0x1);}_0x499b9c&&_0x16ce2d[_0x37a6('0xdc')]();}else{const _0x525900=_0x16ce2d[_0x37a6('0x7f')]();if(_0x525900['containsRange'](_0x5aba49,!0x0)){if(!this[_0x37a6('0xac')]&&_0x42a996[_0x37a6('0x5d')])continue;return _0x16ce2d;}_0x33ae31=_0x33ae31[_0x37a6('0xcd')](_0x525900['start'])?_0x33ae31:_0x525900[_0x37a6('0x100')],_0x430b8b=_0x430b8b[_0x37a6('0x130')](_0x525900['end'])?_0x430b8b:_0x525900[_0x37a6('0x7c')],_0x197c28?_0x525900[_0x37a6('0x100')]['isBefore'](_0x197c28[_0x37a6('0x7f')]()[_0x37a6('0x100')])?(_0x197c28['removeMarkers'](),_0x197c28=_0x16ce2d):_0x16ce2d[_0x37a6('0x111')]():_0x197c28=_0x16ce2d;}}if(_0x197c28)return this[_0x37a6('0xbc')](_0x197c28,this['_model'][_0x37a6('0xf0')](_0x33ae31,_0x430b8b)),_0x197c28;{const _0x1ac3cb=_0x347c0d(),_0x389331=this[_0x37a6('0x54')][_0x37a6('0xf0')](_0x33ae31,_0x430b8b),_0x49cb40=_0x51ca1f['id'],_0x155c5d=_0x8b5afe?'deletion:'+_0x8b5afe:_0x37a6('0xb8'),_0x2b20b0=this[_0x37a6('0x7')]({'id':_0x1ac3cb,'type':_0x155c5d,'createdAt':new Date(),'authorId':_0x49cb40,'attributes':_0x169333});return this[_0x37a6('0x66')](_0x155c5d,_0x1ac3cb,_0x49cb40,_0x389331),_0x2b20b0;}}[_0x37a6('0x11c')](_0x1a2cab,_0xac7102=_0x37a6('0x4e'),_0x964877={}){const _0x4629b0=this[_0x37a6('0x132')][_0x37a6('0x12')][_0x37a6('0x27')](_0x37a6('0x15'))['me'],_0xe6d685=_0x1a2cab[_0x37a6('0x7b')](_0x42cd15=>new _0x237754(_0x42cd15['start'],_0x42cd15[_0x37a6('0x7c')])),_0x5ed9e2=new Set();for(const _0x134a6a of _0xe6d685)for(const {suggestion:_0x288409,meta:_0xd3ba37}of this[_0x37a6('0x9f')](_0x134a6a,_0x37a6('0x59')))_0xd3ba37[_0x37a6('0x19')]&&!_0xd3ba37['isNextTo']&&_0x5ed9e2[_0x37a6('0xf4')](_0x288409);for(const _0x387603 of _0x5ed9e2)if(_0x387603[_0x37a6('0xae')]){const _0x358bd1=_0x387603[_0x37a6('0x149')]();(!_0x387603[_0x37a6('0x118')]||!_0x387603[_0x37a6('0x118')][_0x37a6('0xd6')])&&(_0x358bd1[_0x37a6('0x50')](_0x12a2f2=>_0xe6d685[_0x37a6('0x1e')](_0x19926e=>_0x19926e[_0x37a6('0x3a')](_0x12a2f2,!0x0)))&&_0x387603['discard']());if(_0xe6d685[_0x37a6('0x50')](_0x3e2b2e=>_0x358bd1['some'](_0x374a2d=>_0x374a2d[_0x37a6('0x3a')](_0x3e2b2e,!0x0)))){const _0x1525eb=this[_0x37a6('0x45')][_0x37a6('0x12f')](_0x37a6('0xb8'),_0xac7102,'accept');return this[_0x37a6('0x6b')](()=>_0x1525eb(_0x1a2cab,null,_0x964877)),null;}}else{const _0x2adb7d=_0x387603[_0x37a6('0x7f')]();_0xe6d685[_0x37a6('0x1e')](_0xea962f=>_0xea962f[_0x37a6('0x3a')](_0x2adb7d,!0x0))&&_0x387603[_0x37a6('0xdc')]();if(_0xe6d685[_0x37a6('0x50')](_0xef7f18=>_0x2adb7d['containsRange'](_0xef7f18,!0x0))){const _0x51e0c9=this[_0x37a6('0x45')][_0x37a6('0x12f')]('deletion',_0xac7102,'accept');return this['forceDefaultExecution'](()=>_0x51e0c9(_0xe6d685,null,_0x964877)),null;}}const _0x59757a=this[_0x37a6('0x45')][_0x37a6('0x12f')]('deletion',_0xac7102,'join');let _0x41e74a=null;for(const _0x5b5418 of this[_0x37a6('0x89')]())if(_0x5b5418['author']['id']==_0x4629b0['id']&&_0x5b5418[_0x37a6('0x78')]&&'deletion'==_0x5b5418[_0x37a6('0x55')]&&_0x5b5418[_0x37a6('0xee')]==_0xac7102&&(_0x59757a(_0x5b5418[_0x37a6('0x149')](),_0xe6d685)||_0x59757a(_0xe6d685,_0x5b5418['getRanges']()))){if(_0x41e74a){if(_0x5b5418['commentThread']&&_0x5b5418[_0x37a6('0x114')][_0x37a6('0x75')])continue;for(const _0x2e594d of _0x5b5418['getRanges']())_0x41e74a[_0x37a6('0x108')](_0x2e594d)||_0x41e74a['addRange'](_0x2e594d);_0x5b5418[_0x37a6('0x111')]();}else{_0x41e74a=_0x5b5418;for(const _0x442158 of _0xe6d685)_0x5b5418[_0x37a6('0x108')](_0x442158)||_0x5b5418[_0x37a6('0x97')](_0x442158);}}if(_0x41e74a)return _0x41e74a;_0x5ed9e2['clear']();for(const _0xc4b7d7 of _0xe6d685)for(const {suggestion:_0x2e96f0,meta:_0x169e78}of this['_findSuggestions'](_0xc4b7d7,_0x37a6('0xb8')))_0x169e78['isOwn']&&_0x5ed9e2[_0x37a6('0xf4')](_0x2e96f0);for(const _0x39df4d of _0x5ed9e2){const _0x2deddc=_0x39df4d[_0x37a6('0x149')]();if(!_0x964877||!_0x964877['skipNestingCheck']){if(_0xe6d685[_0x37a6('0x50')](_0x5460a8=>_0x2deddc[_0x37a6('0x1e')](_0x555992=>_0x555992[_0x37a6('0x3a')](_0x5460a8,!0x0))))return _0x39df4d;}(!_0x39df4d[_0x37a6('0x118')]||!_0x39df4d['attributes'][_0x37a6('0xd6')])&&(_0x2deddc[_0x37a6('0x50')](_0x2c9a9f=>_0xe6d685[_0x37a6('0x1e')](_0xd369e0=>_0xd369e0['containsRange'](_0x2c9a9f,!0x0)))&&_0x39df4d[_0x37a6('0xdc')]());}const _0xe867d2=_0x347c0d(),_0x32674a=_0x4629b0['id'],_0x4c860a=_0x37a6('0x13a')+_0xac7102,_0x57ccb4=this[_0x37a6('0x7')]({'id':_0xe867d2,'type':_0x4c860a,'createdAt':new Date(),'authorId':_0x32674a,'attributes':_0x964877});for(const _0x54d469 of _0xe6d685)_0x54d469[_0x37a6('0x3f')](),_0x54d469[_0x37a6('0xce')]||_0x37a6('0x147')==_0x54d469[_0x37a6('0x98')][_0x37a6('0x3c')]||this['_addSuggestionMarker'](_0x4c860a,_0xe867d2,_0x32674a,_0x54d469,_0x3b9d53[_0x37a6('0x5e')]());return _0x57ccb4;}[_0x37a6('0xbc')](_0x4440d6,_0x352a45){const _0x49fd20=_0x4440d6[_0x37a6('0x10')]();this[_0x37a6('0x54')][_0x37a6('0xcf')](_0x2c5bdf=>{_0x2c5bdf[_0x37a6('0x13d')](_0x49fd20,{'range':_0x352a45});});}[_0x37a6('0x7a')](_0x1290ea){const _0x369bfa=_0x1290ea['id'],_0x3f6dcf=this['editor']['config'][_0x37a6('0x27')](_0x37a6('0x43'));this['_commentsRepository'][_0x37a6('0x11')](_0x369bfa)||this[_0x37a6('0x33')]['addCommentThread']({'channelId':_0x3f6dcf,'threadId':_0x369bfa,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x36834a=this[_0x37a6('0x33')][_0x37a6('0x3e')](_0x369bfa);_0x36834a['unbind']('isRemovable'),_0x36834a[_0x37a6('0xc')]=!0x1,_0x1290ea[_0x37a6('0x114')]=_0x36834a;}[_0x37a6('0xb5')](_0x119237,_0x272db5,_0x2d7d37,_0x169fd0){if(_0x119237[_0x37a6('0x55')]!=_0x272db5||_0x119237[_0x37a6('0xee')]!=_0x2d7d37||_0x119237[_0x37a6('0xa5')]['id']!=_0x169fd0)throw this['editor'][_0x37a6('0xe6')](_0x37a6('0xca')),new _0x54d2cb(_0x37a6('0xca'),this);}[_0x37a6('0x140')](_0x277a3d,_0x294d7b){const _0x5bb067=_0x277a3d[_0x37a6('0x7f')]();if(_0x294d7b[_0x37a6('0x32')](_0x5bb067))_0x277a3d['removeMarkers']();else{if(_0x5bb067[_0x37a6('0x3a')](_0x294d7b)){const _0x681eed=this[_0x37a6('0x54')][_0x37a6('0x5c')](_0x294d7b['start'][_0x37a6('0x1c')],'end');this['_setSuggestionRange'](_0x277a3d,this['_model'][_0x37a6('0xf0')](_0x5bb067[_0x37a6('0x100')],_0x681eed));const _0x10302f=_0x347c0d(),_0x73f5b4=_0x277a3d[_0x37a6('0xa5')]['id'],_0x452bae=_0x277a3d[_0x37a6('0x55')]+':'+_0x277a3d['subType'];this[_0x37a6('0x7')]({'id':_0x10302f,'type':_0x452bae,'createdAt':new Date(),'authorId':_0x73f5b4,'data':_0x277a3d[_0x37a6('0x11e')],'attributes':_0x277a3d[_0x37a6('0x118')]});const _0x5187f3=this[_0x37a6('0x54')][_0x37a6('0x5c')](_0x294d7b[_0x37a6('0x7c')][_0x37a6('0x8c')],_0x37a6('0x42')),_0x1bcf3c=this[_0x37a6('0x54')][_0x37a6('0xf0')](_0x5187f3,_0x5bb067[_0x37a6('0x7c')]);this[_0x37a6('0x66')](_0x452bae,_0x10302f,_0x73f5b4,_0x1bcf3c);}else{if(_0x5bb067[_0x37a6('0xf1')](_0x294d7b[_0x37a6('0x100')])){const _0x28ec25=this[_0x37a6('0x54')][_0x37a6('0x5c')](_0x294d7b[_0x37a6('0x100')][_0x37a6('0x1c')],_0x37a6('0x7c'));this['_setSuggestionRange'](_0x277a3d,this['_model']['createRange'](_0x5bb067[_0x37a6('0x100')],_0x28ec25));}else{const _0x5a6609=this['_model']['createPositionAt'](_0x294d7b[_0x37a6('0x7c')][_0x37a6('0x8c')],_0x37a6('0x42'));this[_0x37a6('0xbc')](_0x277a3d,this[_0x37a6('0x54')][_0x37a6('0xf0')](_0x5a6609,_0x5bb067[_0x37a6('0x7c')]));}}}}['_rangeIsInLocalUserInsertion'](_0x1a8e67){for(const {suggestion:_0x1984a3,meta:_0x4883d5}of this[_0x37a6('0x9f')](_0x1a8e67,_0x37a6('0x59'))){if(!_0x4883d5[_0x37a6('0x19')])continue;const _0x1ddf16=_0x1984a3[_0x37a6('0x149')]();for(const _0x36b33b of _0x1ddf16)if(!_0x1a8e67[_0x37a6('0x1b')](_0x36b33b)['length'])return!0x0;}return!0x1;}[_0x37a6('0x10b')](_0x427b48){const _0x318f7e=this[_0x37a6('0x132')][_0x37a6('0x12')][_0x37a6('0x27')](_0x37a6('0x15'))[_0x37a6('0x12b')](_0x427b48);if(!_0x318f7e)throw new _0x54d2cb(_0x37a6('0x124'),this);return _0x318f7e;}[_0x37a6('0x6c')](_0x10442d){const _0x41880a=this['editor'][_0x37a6('0x12')][_0x37a6('0x27')](_0x37a6('0x15')),_0xc588bc=_0x1992b8(_0x37a6('0x120')+_0x10442d),_0x455cfa=_0x41880a[_0x37a6('0x12b')](_0xc588bc);return _0x455cfa||_0x41880a[_0x37a6('0x135')]({'id':_0xc588bc,'name':_0x10442d});}[_0x37a6('0x64')](_0x24da24,_0x318dbd,_0xd6c3af,_0x2703db,_0x53ebd8){const _0x189aed=this[_0x37a6('0x10b')](_0x2703db),_0x33fc5a=this['_suggestionFactory'][_0x37a6('0x104')](_0x24da24,_0x318dbd,_0xd6c3af,_0x189aed,_0x53ebd8,_0x5e0352=>this[_0x37a6('0x1f')](_0xd6c3af,{'attributes':_0x5e0352}));return this[_0x37a6('0xe4')](_0x33fc5a,'accept',()=>{this[_0x37a6('0x1f')](_0xd6c3af,{'state':_0x37a6('0x5')});},{'priority':_0x37a6('0xdf')}),this[_0x37a6('0xe4')](_0x33fc5a,'discard',()=>{this['_updateSuggestionData'](_0xd6c3af,{'state':_0x37a6('0x9a')});},{'priority':_0x37a6('0xdf')}),this[_0x37a6('0x80')][_0x37a6('0xe5')](_0xd6c3af,_0x33fc5a),this[_0x37a6('0x48')][_0x37a6('0xe5')](_0x33fc5a,_0x37a6('0x1a')),_0x33fc5a;}[_0x37a6('0x13c')](_0x1c36a2){const _0x42762d=_0x1c36a2[_0x37a6('0x2a')](':');return{'group':_0x42762d[0x0],'type':_0x42762d[0x1],'subType':_0x42762d[_0x37a6('0x75')]>=0x5?_0x42762d[0x2]:null,'id':_0x42762d[_0x37a6('0x75')]<0x5?_0x42762d[0x2]:_0x42762d[0x3],'authorId':_0x42762d[_0x37a6('0x75')]<0x5?_0x42762d[0x3]:_0x42762d[0x4],'markerCount':0x6==_0x42762d[_0x37a6('0x75')]?_0x42762d[0x5]:null};}[_0x37a6('0x142')](_0x20cad4,_0x4343fc,_0x1ebdb1){const _0x5d4530=_0x20cad4[_0x37a6('0x7f')](),_0x283687=_0x5d4530['start'],_0x314fa5=_0x5d4530[_0x37a6('0x7c')];this[_0x37a6('0xbc')](_0x20cad4,this[_0x37a6('0x54')][_0x37a6('0xf0')](_0x283687,_0x4343fc));const _0x5d975a=_0x347c0d(),_0x21c78b=_0x20cad4[_0x37a6('0xa5')]['id'],_0x5e121c=_0x20cad4[_0x37a6('0x55')]+(_0x20cad4[_0x37a6('0xee')]?':'+_0x20cad4['subType']:'');this[_0x37a6('0x7')]({'id':_0x5d975a,'type':_0x5e121c,'createdAt':new Date(),'authorId':_0x21c78b,'originalSuggestionId':_0x20cad4['id'],'attributes':_0x20cad4['attributes'],'data':_0x20cad4[_0x37a6('0x11e')]}),_0x37a6('0xd1')==_0x20cad4[_0x37a6('0x55')]&&(_0x1ebdb1=this[_0x37a6('0x54')][_0x37a6('0x8b')](_0x1ebdb1[_0x37a6('0x8c')])),this['_addSuggestionMarker'](_0x5e121c,_0x5d975a,_0x21c78b,this[_0x37a6('0x54')]['createRange'](_0x1ebdb1,_0x314fa5));}[_0x37a6('0x9f')](_0x22f8b8,_0x3778ea=null){const _0x30a58f=[],_0x23d232=this[_0x37a6('0x54')]['schema'],_0x11fe61=this['editor'][_0x37a6('0x12')][_0x37a6('0x27')](_0x37a6('0x15'))['me'];for(const _0x4c0e29 of this[_0x37a6('0x89')]())if(_0x4c0e29[_0x37a6('0x78')]&&(!_0x3778ea||_0x4c0e29['type']==_0x3778ea))for(const _0x30d578 of _0x4c0e29[_0x37a6('0x149')]()){const _0x26f358=_0x22f8b8[_0x37a6('0x100')]['isEqual'](_0x30d578[_0x37a6('0x7c')])||_0x22f8b8[_0x37a6('0x7c')][_0x37a6('0x32')](_0x30d578[_0x37a6('0x100')]);if(_0x26f358||_0x22f8b8[_0x37a6('0xa1')](_0x30d578)){const _0x37d8c0=_0x22f8b8[_0x37a6('0x3a')](_0x30d578)&&Bt(_0x23d232,_0x30d578['start'],_0x22f8b8),_0x280aec=_0x30d578[_0x37a6('0x3a')](_0x22f8b8)&&Bt(_0x23d232,_0x22f8b8[_0x37a6('0x100')],_0x30d578);_0x30a58f[_0x37a6('0x4d')]({'suggestion':_0x4c0e29,'meta':{'isOwn':_0x11fe61==_0x4c0e29[_0x37a6('0x41')],'isNextTo':_0x26f358,'isInsideObject':_0x37d8c0,'containsRangeInObject':_0x280aec}});break;}}return _0x30a58f;}['_addSuggestionMarker'](_0x1f15fa,_0x288122,_0x2fa8dc,_0x2bcf90,_0x23af8c){this[_0x37a6('0x54')][_0x37a6('0xcf')](_0x480f28=>{let _0xc5f8d7=_0x37a6('0xaf')+_0x1f15fa+':'+_0x288122+':'+_0x2fa8dc;_0x23af8c&&(_0xc5f8d7=_0xc5f8d7+':'+_0x23af8c),_0x480f28[_0x37a6('0xec')](_0xc5f8d7,{'range':_0x2bcf90,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x37a6('0x6')](_0xc97ed4){const _0x1e6597=_0xc97ed4['previous'],_0x166016=_0xc97ed4[_0x37a6('0x22')];_0xc97ed4[_0x37a6('0xb')]=null,null!=_0x1e6597&&(_0x1e6597[_0x37a6('0x22')]=null),_0xc97ed4['next']=null,null!=_0x166016&&(_0x166016[_0x37a6('0xb')]=null),_0x37a6('0xba')==this[_0x37a6('0x48')][_0x37a6('0x27')](_0xc97ed4)&&(this[_0x37a6('0x48')]['set'](_0xc97ed4,_0x37a6('0xbb')),this[_0x37a6('0xc1')](_0x37a6('0xa0'),_0xc97ed4,_0x1e6597,_0x166016));}['_setSuggestionData'](_0xeffe28){const _0x3c0ba6=_0xeffe28['id'],_0x342f0a=this[_0x37a6('0xf8')](_0xeffe28);if(this[_0x37a6('0xa6')]&&this[_0x37a6('0xa6')][_0x37a6('0xf2')]){const _0x3afc9e=this['editor']['plugins'][_0x37a6('0x27')](_0x37a6('0x125')),_0x2a081a=_0x342f0a[_0x37a6('0x126')],_0x637850=_0x342f0a['subType']?_0x342f0a[_0x37a6('0x55')]+':'+_0x342f0a['subType']:_0x342f0a[_0x37a6('0x55')],_0x4c3179=this['editor'][_0x37a6('0x88')],_0x13f602=_0x3afc9e[_0x37a6('0xf4')](_0x59e706(_0x4c3179,_0x37a6('0xf3'))),_0x26f536={'id':_0x3c0ba6,'type':_0x637850,'hasComments':_0x2a081a,'data':_0xeffe28['data']||null,'originalSuggestionId':_0xeffe28['originalSuggestionId']||null,'attributes':_0x342f0a[_0x37a6('0x118')]};this[_0x37a6('0xa6')][_0x37a6('0xf2')](_0x26f536)[_0x37a6('0x69')](_0x5673db=>{_0x342f0a[_0x37a6('0x4')]=!0x0,_0x3afc9e[_0x37a6('0x9')](_0x13f602),_0x5673db&&_0x5673db['createdAt']&&(this['_suggestions']['get'](_0x3c0ba6)[_0x37a6('0xb6')]=_0x5673db[_0x37a6('0xb6')]);})[_0x37a6('0x96')](_0x174723=>{throw _0x20f396(_0x37a6('0xbd')),this['editor'][_0x37a6('0xde')][_0x37a6('0x47')]({'isUndoable':!0x1},()=>{_0x342f0a[_0x37a6('0xdc')]();}),_0x342f0a[_0x37a6('0xff')](),this['_suggestions']['delete'](_0x342f0a['id']),this['_suggestionState'][_0x37a6('0x3d')](_0x342f0a),_0x174723;});}return _0x342f0a;}['_updateSuggestionData'](_0x32470d,_0x5c9e90){const _0x1b1fa8=this[_0x37a6('0x132')][_0x37a6('0x12')][_0x37a6('0x27')](_0x37a6('0x125')),_0x3d760e=this[_0x37a6('0x9e')](_0x32470d);if(this['_adapter']&&this[_0x37a6('0xa6')][_0x37a6('0x56')]){if(_0x3d760e[_0x37a6('0x4')]){const _0x70bc66=_0x1b1fa8[_0x37a6('0xf4')](_0x59e706(this[_0x37a6('0x132')][_0x37a6('0x88')],_0x37a6('0xf3')));this[_0x37a6('0xa6')][_0x37a6('0x56')](_0x32470d,_0x5c9e90)['then'](()=>{_0x1b1fa8['remove'](_0x70bc66);});}else _0x3d760e['on'](_0x37a6('0xa3'),()=>{this['_updateSuggestionData'](_0x32470d,_0x5c9e90);});}}[_0x37a6('0x62')](_0x411d8f){if(!this['_adapter']||!this[_0x37a6('0xa6')][_0x37a6('0x9e')])throw new _0x54d2cb(_0x37a6('0xc4'),this);return this[_0x37a6('0xa6')][_0x37a6('0x9e')](_0x411d8f);}[_0x37a6('0xeb')](_0x560d5a){const {id:_0x2facd2,type:_0x58ed38,subType:_0x2c6156,authorId:_0x2de1ed}=this[_0x37a6('0x13c')](_0x560d5a),_0xfe3ecb=this[_0x37a6('0x80')][_0x37a6('0x27')](_0x2facd2)||this[_0x37a6('0x64')](_0x58ed38,_0x2c6156,_0x2facd2,_0x2de1ed,{});switch(this['_checkSuggestionCorrectness'](_0xfe3ecb,_0x58ed38,_0x2c6156,_0x2de1ed),this[_0x37a6('0x48')][_0x37a6('0x27')](_0xfe3ecb)){case _0x37a6('0x1a'):this[_0x37a6('0x62')](_0x2facd2)[_0x37a6('0x69')](_0xea833b=>{let _0x5c2941=Promise[_0x37a6('0x148')]();_0xea833b['hasComments']&&(_0x5c2941=this[_0x37a6('0x33')]['fetchCommentThread']({'channelId':this[_0x37a6('0x132')][_0x37a6('0x112')][_0x37a6('0x27')](_0x37a6('0x43')),'threadId':_0x2facd2})),_0x5c2941[_0x37a6('0x69')](()=>{this['addSuggestionData'](_0xea833b)[_0x37a6('0x4')]=!0x0;});}),this[_0x37a6('0x48')][_0x37a6('0xe5')](_0xfe3ecb,_0x37a6('0x107'));break;case _0x37a6('0xbb'):this[_0x37a6('0x1f')](_0x2facd2,{'state':_0x37a6('0xe0')});case _0x37a6('0x117'):this[_0x37a6('0x48')]['set'](_0xfe3ecb,_0x37a6('0xba')),this[_0x37a6('0xc1')](_0x37a6('0x2'),_0xfe3ecb);break;case'ready':this[_0x37a6('0xc1')](_0x37a6('0x31'),_0xfe3ecb);}return _0xfe3ecb[_0x37a6('0x95')](_0x560d5a),_0xfe3ecb;}['_refreshSuggestionsChain'](_0x274576){const _0x3d0ba2=Array[_0x37a6('0x63')](_0x274576)['filter'](_0x8a8b64=>!_0x8a8b64[_0x37a6('0xae')]),_0x2a4f12=this[_0x37a6('0x89')]({'skipNotAttached':!0x0})['filter'](_0xdac05a=>!_0xdac05a[_0x37a6('0xae')]),_0x300a20=_0x2a4f12[_0x37a6('0x5a')](_0x3f43e9=>!_0x274576[_0x37a6('0x138')](_0x3f43e9)),_0x2ff9e9=new Map(_0x2a4f12['map'](_0x2b20bf=>[_0x2b20bf,this['_suggestionFactory'][_0x37a6('0x12f')](_0x2b20bf['type'],_0x2b20bf['subType'],_0x37a6('0xb7'))])),_0x5c5ad2=new Map(_0x2a4f12[_0x37a6('0x7b')](_0x14c542=>[_0x14c542,_0x14c542[_0x37a6('0x7f')]()])),_0x1e4bf1=new Set(),_0x14fcd5=new Set();for(let _0x15f4e8=0x0;_0x15f4e8<_0x3d0ba2[_0x37a6('0x75')];_0x15f4e8++)_0x449613(_0x3d0ba2[_0x15f4e8],_0x3d0ba2,_0x15f4e8+0x1);for(let _0x3ea976=0x0;_0x3ea976<_0x3d0ba2[_0x37a6('0x75')];_0x3ea976++)_0x449613(_0x3d0ba2[_0x3ea976],_0x300a20,0x0);for(let _0x561d5b=0x0;_0x561d5b<_0x3d0ba2['length'];_0x561d5b++){const _0x391873=_0x3d0ba2[_0x561d5b];!_0x14fcd5[_0x37a6('0x138')](_0x391873)&&_0x391873[_0x37a6('0xb')]&&(_0x391873[_0x37a6('0xb')][_0x37a6('0x22')]===_0x391873&&(_0x391873[_0x37a6('0xb')][_0x37a6('0x22')]=null),_0x391873[_0x37a6('0xb')]=null),!_0x1e4bf1['has'](_0x391873)&&_0x391873[_0x37a6('0x22')]&&(_0x391873[_0x37a6('0x22')][_0x37a6('0xb')]===_0x391873&&(_0x391873['next'][_0x37a6('0xb')]=null),_0x391873[_0x37a6('0x22')]=null);}function _0x449613(_0x4a7a6f,_0xf83551,_0x1886d0){for(let _0x18cb3b=_0x1886d0;_0x18cb3b<_0xf83551[_0x37a6('0x75')];_0x18cb3b++){const _0x44223b=_0x143e74(_0x4a7a6f,_0xf83551[_0x18cb3b]);_0x44223b&&(_0x44223b[0x0][_0x37a6('0x22')]=_0x44223b[0x1],_0x44223b[0x1]['previous']=_0x44223b[0x0],_0x1e4bf1['add'](_0x44223b[0x0]),_0x14fcd5[_0x37a6('0xf4')](_0x44223b[0x1]));}}function _0x143e74(_0x498cdf,_0x5f1e5c){if(_0x498cdf[_0x37a6('0x41')]['id']!==_0x5f1e5c['author']['id'])return null;const _0x415b26=_0x2ff9e9['get'](_0x498cdf)(_0x498cdf,_0x5f1e5c,_0x5c5ad2[_0x37a6('0x27')](_0x498cdf),_0x5c5ad2[_0x37a6('0x27')](_0x5f1e5c));if(!_0x415b26)return null;return _0x2ff9e9[_0x37a6('0x27')](_0x5f1e5c)(_0x498cdf,_0x5f1e5c,_0x5c5ad2[_0x37a6('0x27')](_0x498cdf),_0x5c5ad2[_0x37a6('0x27')](_0x5f1e5c))?_0x415b26[0x1]['commentThread']&&_0x415b26[0x1]['commentThread'][_0x37a6('0x75')]?null:_0x415b26:null;}}[_0x37a6('0x40')](_0x589a9d){const _0x2ed764=Array[_0x37a6('0x63')](_0x589a9d),_0x5de690=this[_0x37a6('0x89')]({'skipNotAttached':!0x0}),_0x17946c=_0x5de690[_0x37a6('0x5a')](_0x4dfa8c=>!_0x589a9d[_0x37a6('0x138')](_0x4dfa8c)),_0x17b0a4=new Map(_0x2ed764[_0x37a6('0x7b')](_0x2db086=>[_0x2db086,this['_suggestionFactory'][_0x37a6('0x12f')](_0x2db086[_0x37a6('0x55')],_0x2db086[_0x37a6('0xee')],_0x37a6('0xbe'))])),_0x464c0c=new Map(_0x5de690['map'](_0x4947b1=>[_0x4947b1,_0x4947b1[_0x37a6('0x149')]()]));for(let _0x340d27=0x0;_0x340d27<_0x2ed764[_0x37a6('0x75')];_0x340d27++){if(_0x283aed(this,_0x2ed764[_0x340d27],_0x2ed764,_0x340d27+0x1))return!0x0;}for(let _0x43a8f8=0x0;_0x43a8f8<_0x2ed764[_0x37a6('0x75')];_0x43a8f8++){if(_0x283aed(this,_0x2ed764[_0x43a8f8],_0x17946c,0x0))return!0x0;}return!0x1;function _0x283aed(_0x3f8c8f,_0xac5459,_0x4a3f89,_0x3a13bc){for(let _0x2b2276=_0x3a13bc;_0x2b2276<_0x4a3f89['length'];_0x2b2276++){const _0x1368cc=_0x4a3f89[_0x2b2276];if(_0x1368cc[_0x37a6('0x55')]!==_0xac5459[_0x37a6('0x55')]||_0x1368cc[_0x37a6('0x41')]['id']!==_0xac5459[_0x37a6('0x41')]['id']||_0x1368cc[_0x37a6('0xee')]!==_0xac5459[_0x37a6('0xee')])continue;const _0x1215ab=_0x17b0a4['get'](_0xac5459),_0x1d6aa5=_0x464c0c[_0x37a6('0x27')](_0xac5459),_0x290b3b=_0x464c0c[_0x37a6('0x27')](_0x1368cc),_0x30de70=_0xac5459[_0x37a6('0x114')]&&_0xac5459['commentThread']['length'],_0x8fcd3e=_0x1368cc[_0x37a6('0x114')]&&_0x1368cc[_0x37a6('0x114')]['length'];if(!_0x30de70&&_0x1215ab(_0x290b3b,_0x1d6aa5))return _0x3f8c8f[_0x37a6('0xf6')](_0x1368cc,_0xac5459),_0x464c0c[_0x37a6('0x3d')](_0xac5459),!0x0;if(!_0x8fcd3e&&_0x1215ab(_0x1d6aa5,_0x290b3b))return _0x3f8c8f['_joinSuggestions'](_0xac5459,_0x1368cc),_0x464c0c[_0x37a6('0x3d')](_0x1368cc),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5de5f2,_0x3d0e24){if(_0x5de5f2[_0x37a6('0xae')])for(const _0x38e3bc of _0x3d0e24['getRanges']())_0x5de5f2[_0x37a6('0x97')](_0x38e3bc);else{const _0x545864=_0x3d0e24['getFirstRange']()[_0x37a6('0x7c')];this[_0x37a6('0xbc')](_0x5de5f2,this[_0x37a6('0x54')][_0x37a6('0xf0')](_0x5de5f2[_0x37a6('0x7f')]()['start'],_0x545864));}_0x3d0e24[_0x37a6('0x111')]();}}class Dt{constructor(_0x2763ed){this[_0x37a6('0x10d')]=_0x2763ed,this[_0x37a6('0x54')]=_0x2763ed['model'],this[_0x37a6('0x10a')]=new Map(),this[_0x37a6('0x2b')]=new Map(),this[_0x37a6('0x137')]();}['buildSuggestion'](_0x4367e5,_0x5e3c09,_0x466d51,_0x33beaf,_0x502324,_0x341881){return new _0x3b9d53(this['_model'],{'type':_0x4367e5,'subType':_0x5e3c09,'id':_0x466d51,'author':_0x33beaf,'creator':_0x33beaf,'attributes':_0x502324,'onAttributesChange':_0x341881,'onAccept':(..._0x1338e0)=>this[_0x37a6('0x12f')](_0x4367e5,_0x5e3c09,_0x37a6('0xc6'))(..._0x1338e0),'onDiscard':(..._0x5f5704)=>this[_0x37a6('0x12f')](_0x4367e5,_0x5e3c09,_0x37a6('0xdc'))(..._0x5f5704)});}[_0x37a6('0x7d')](_0x208e1d,_0x44d7e7,_0x5268ba,_0x437a5f){const _0x136083=_0x208e1d+':'+_0x44d7e7+':'+_0x5268ba;this['_customCallbacks'][_0x37a6('0xe5')](_0x136083,_0x437a5f);}[_0x37a6('0x12f')](_0x1ddf5f,_0x1987ee,_0x4f3d1a){const _0x555dc2=_0x1ddf5f+':'+_0x1987ee+':'+_0x4f3d1a;return this[_0x37a6('0x10a')][_0x37a6('0x27')](_0x555dc2)||this[_0x37a6('0x2b')][_0x37a6('0x27')](_0x1ddf5f+':'+_0x4f3d1a);}[_0x37a6('0x137')](){const _0xea73c2=()=>{},_0x44838b=_0x17bc13=>{_0x17bc13[_0x37a6('0x6e')]((_0x53ea24,_0x5a545f)=>_0x53ea24[_0x37a6('0x100')]['isBefore'](_0x5a545f[_0x37a6('0x100')])?0x1:-0x1),this[_0x37a6('0x54')][_0x37a6('0xcf')](_0xb5b210=>{for(const _0x1cafac of _0x17bc13){let _0x5f87e0;_0x5f87e0=_0x1cafac['end'][_0x37a6('0x1d')]&&_0x1cafac[_0x37a6('0x7c')]['parent']==_0x1cafac['start'][_0x37a6('0x87')]?_0xb5b210['createSelection'](_0x1cafac[_0x37a6('0x100')][_0x37a6('0x87')],'on'):_0xb5b210[_0x37a6('0xd')](_0x1cafac),this[_0x37a6('0x54')][_0x37a6('0x99')](_0x5f87e0,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5f46a2=(_0x34fb4b,_0x28d3dc)=>{this[_0x37a6('0x54')][_0x37a6('0xcf')](_0x1c9a9f=>{const {commandName:_0x4c9b94,commandParams:_0x20639d=[]}=_0x28d3dc,_0x5475bf=_0x34fb4b[_0x37a6('0x7b')](_0x1a8d0a=>(_t(_0x1a8d0a)&&(_0x1a8d0a=this[_0x37a6('0x54')][_0x37a6('0xf0')](_0x1a8d0a[_0x37a6('0x7c')])),_0x1a8d0a))[_0x37a6('0x5a')](_0x2e8bd3=>_0x37a6('0x147')!==_0x2e8bd3['root'][_0x37a6('0x3c')]);if(_0x5475bf['length']<0x1)return;const _0x31c0f7=Array[_0x37a6('0x63')](this['_model']['document'][_0x37a6('0x28')]['getRanges']())['map'](_0x17ffe9=>_0x237754[_0x37a6('0x39')](_0x17ffe9));_0x1c9a9f[_0x37a6('0x58')](_0x5475bf);for(const _0x5962aa of this[_0x37a6('0x10d')]['commands'][_0x37a6('0xc2')]())_0x5962aa[_0x37a6('0x93')]();_0x20639d[_0x37a6('0x4d')]({'forceDefaultExecution':!0x0}),this[_0x37a6('0x10d')]['execute'](_0x4c9b94,..._0x20639d);const _0x15f0a2=_0x31c0f7['filter'](_0x47d08b=>_0x37a6('0x147')!=_0x47d08b[_0x37a6('0x98')][_0x37a6('0x3c')]);_0x15f0a2['length']>0x0&&_0x1c9a9f[_0x37a6('0x58')](_0x15f0a2);for(const _0x3bbd14 of _0x31c0f7)_0x3bbd14[_0x37a6('0x3f')]();});},_0x357d7d=(_0x490bfc,_0x376a35)=>0x1==_0x490bfc[_0x37a6('0x75')]&&0x1==_0x376a35[_0x37a6('0x75')]&&_0x490bfc[0x0][_0x37a6('0x7c')][_0x37a6('0x32')](_0x376a35[0x0][_0x37a6('0x100')]),_0x1803b1=(_0x5e384b,_0x3f89fb,_0x41814c,_0x31f3a7)=>xt(_0x5e384b,_0x3f89fb,_0x41814c,_0x31f3a7,this[_0x37a6('0x54')])?[_0x5e384b,_0x3f89fb]:xt(_0x3f89fb,_0x5e384b,_0x31f3a7,_0x41814c,this[_0x37a6('0x54')])?[_0x3f89fb,_0x5e384b]:null;this[_0x37a6('0x2b')]['set']('insertion:accept',_0xea73c2),this['_defaultCallbacks'][_0x37a6('0xe5')](_0x37a6('0xf9'),_0x44838b),this[_0x37a6('0x2b')][_0x37a6('0xe5')](_0x37a6('0x68'),_0x357d7d),this[_0x37a6('0x2b')][_0x37a6('0xe5')](_0x37a6('0xea'),_0x1803b1),this[_0x37a6('0x2b')][_0x37a6('0xe5')](_0x37a6('0xc8'),_0x44838b),this[_0x37a6('0x2b')][_0x37a6('0xe5')](_0x37a6('0x34'),_0xea73c2),this[_0x37a6('0x2b')][_0x37a6('0xe5')]('deletion:join',_0x357d7d),this[_0x37a6('0x2b')]['set'](_0x37a6('0x119'),_0x1803b1),this['_defaultCallbacks'][_0x37a6('0xe5')](_0x37a6('0x136'),_0x5f46a2),this[_0x37a6('0x2b')][_0x37a6('0xe5')](_0x37a6('0x38'),_0xea73c2),this[_0x37a6('0x2b')]['set'](_0x37a6('0x20'),_0x357d7d),this[_0x37a6('0x2b')][_0x37a6('0xe5')](_0x37a6('0x4c'),_0xea73c2),this[_0x37a6('0x2b')][_0x37a6('0xe5')](_0x37a6('0xcb'),_0x5f46a2),this[_0x37a6('0x2b')][_0x37a6('0xe5')]('formatBlock:discard',_0xea73c2),this[_0x37a6('0x2b')][_0x37a6('0xe5')](_0x37a6('0x12c'),_0x357d7d),this['_defaultCallbacks'][_0x37a6('0xe5')](_0x37a6('0xc9'),_0xea73c2);}}function Bt(_0x4f4100,_0x598a85,_0x33bb60){for(const _0x1eb24d of _0x598a85[_0x37a6('0x8c')][_0x37a6('0x13e')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1eb24d[_0x37a6('0x98')]==_0x1eb24d)return!0x1;if(!_0x33bb60['containsItem'](_0x1eb24d))return!0x1;if(_0x4f4100[_0x37a6('0xed')](_0x1eb24d)||_0x4f4100[_0x37a6('0x16')](_0x1eb24d))return!0x0;}return!0x1;}function _t(_0xe74d56){return _0xe74d56['end'][_0x37a6('0x8c')]==_0xe74d56['start'][_0x37a6('0x87')]&&_0xe74d56[_0x37a6('0x7c')]['isAtStart'];}function Mt(_0x3b1448,_0x2cf81a,_0x5512e7,_0x343e56){const _0x107a55=_0x41bc30=>!_0x41bc30[_0x37a6('0x2e')]['is']('$textProxy')&&!_0x343e56[_0x37a6('0xed')](_0x41bc30[_0x37a6('0x2e')]),_0x5e1f0d=_0x3b1448['start'][_0x37a6('0x61')](_0x107a55),_0x300c0a=_0x3b1448[_0x37a6('0x7c')][_0x37a6('0x61')](_0x107a55,{'direction':_0x37a6('0xf5')});return(!_0x3b1448[_0x37a6('0x100')]['isEqual'](_0x5e1f0d)||!_0x3b1448['end'][_0x37a6('0x32')](_0x300c0a))&&(_0x5e1f0d[_0x37a6('0xcd')](_0x300c0a)?_0x5512e7[_0x37a6('0x13d')](_0x2cf81a,{'range':_0x5512e7[_0x37a6('0xf0')](_0x5e1f0d,_0x300c0a)}):_0x5512e7['removeMarker'](_0x2cf81a),!0x0);}function $t(_0x5998b2){return _0x1992b8(_0x5998b2);}function Nt(_0x440580){const _0x2ddb13=_0x440580[_0x37a6('0x100')][_0x37a6('0x87')];return _0x2ddb13&&_0x2ddb13['is'](_0x37a6('0x90'));}function Rt(_0xdce142,_0x417604){const _0x42872f=_0x417604['schema'][_0x37a6('0xed')](_0xdce142)||_0x417604[_0x37a6('0x11d')][_0x37a6('0xfe')](_0xdce142);return _0x417604['createRange'](_0x417604['createPositionAt'](_0xdce142,_0x37a6('0x134')),_0x42872f?_0x417604['createPositionAfter'](_0xdce142):_0x417604[_0x37a6('0x5c')](_0xdce142,_0x37a6('0x7c')));}function xt(_0x2049cc,_0xe61d3a,_0x3f077b,_0x2c712a,_0x30c835){if(_0x3f077b[_0x37a6('0x7c')][_0x37a6('0x32')](_0x2c712a[_0x37a6('0x100')]))return!0x0;if(_0x2049cc['type']!=_0xe61d3a[_0x37a6('0x55')])return!0x1;if(!_0x3f077b['end'][_0x37a6('0x83')](_0x2c712a['start']))return!0x1;const _0x1f6b64=_0x30c835[_0x37a6('0xf0')](_0x3f077b[_0x37a6('0x7c')],_0x2c712a[_0x37a6('0x100')])[_0x37a6('0xd9')]();for(const _0xc97681 of _0x1f6b64)if([_0x37a6('0xbf'),_0x37a6('0xcc')]['includes'](_0xc97681['type'])&&_0x30c835['schema']['isLimit'](_0xc97681[_0x37a6('0x2e')]))return!0x1;return!0x0;}