@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231216.0 → 0.0.0-nightly-20231218.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-
|
|
3
|
+
"version": "0.0.0-nightly-20231218.0",
|
|
4
4
|
"description": "CKEditor 5 track changes plugin.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"CHANGELOG.md"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"ckeditor5": "0.0.0-nightly-
|
|
44
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
43
|
+
"ckeditor5": "0.0.0-nightly-20231218.0",
|
|
44
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20231218.0",
|
|
45
45
|
"lodash-es": "4.17.21"
|
|
46
46
|
},
|
|
47
47
|
"types": "src/index.d.ts",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1e34=['start','multi','formatInline:accept','suggestion','join','resolve','assign','acceptSelectedSuggestions','format','Users','newRange','_splitMarkerName','isRemovable','$elementName','collaboration.channelId','ready','removeMarker','catch','addSuggestion','_mergeNestedSuggestions','commentThread','trackChanges','getCommentThread','_suggestions','deletion:discard','trackChanges.mergeNestedSuggestions','accept','elementToElement','getDifference','insertion:chain','_breakSuggestionMarker','attribute:discard','removeClass','consumable','createPositionBefore','bindElementToMarker','attribute:accept','_onDiscard','ck-suggestion-marker-','return','isTouching','lowest','addHighlight','editing','model','Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.','_cutOutSuggestionMarker','has','formatBlock:chain','track-changes-adapter-missing-getsuggestion','getSuggestionCallback','getChangedMarkers','deletion','adapter','data','history','isBefore','isSelectable','getChanges','addRange','open','markAttributeChange','attributes','isAtStart','highest','batch','commands','for','every','FORMATTING','oldValue','containsRange','formatBlock:','trackChangesCommand','_handleNewSuggestionMarker','addMarker:suggestion:attribute','markerNameToElements','formatBlock:join','removeAttribute','substr','isBlock','ck-suggestion-marker','listenTo','ck-suggestion-marker-formatInline','isArray','oldRange','dataDowncast','_initAriaMarkerChangeAnnouncements','_model','getSuggestion','conversion','config','discardSuggestion','removeMarkers','filter','split','originalSuggestionId','getFirstRange','default','from','discardAllSuggestions','suggestionLoaded','define','skipNestingCheck','some','createSelection','get','discardSelectedSuggestions','map','upcast','locale','length','editingDowncast','subType','getAllAdjacentSuggestions','fire','newValue','acceptAllSuggestions','concat','addMarker:suggestion:formatBlock','insertion','getRanges','track-changes-suggestion-data-mismatch','track-changes-user-not-found','name','$text','_getMarkerAnnouncementText','isOwn','move','execute','deletion:','size','createElement','buildSuggestion','splice','requires','containsPosition','forEach','oldName','unshift','_checkSuggestionCorrectness','detach','chain','deleteContent','isLocal','registerPostFixer','_refreshSuggestionsChain','containerElement','getShiftedBy','enqueueChange','formatInline:join','range','mapper','$textProxy','data-suggestion','formatBlock','getNearestSelectionRange','setAttribute','documentSelection','getMultiRangeId','_recordAttributeSuggestionsFromVersion','isObject','authoredAt','acceptSuggestion','set','isLimit','change','changeAttribute','normal','insert','differ','_SUGGESTION_ANNOUNCEMENT','markDeletion','markers','addSuggestionData','createPositionAt','_saved','_suggestionState','getMarkers','key','widget','$graveyard','PendingActions','isInsideObject','clear','nodeBefore','markInlineFormat','_trackFormatChanges','hasCommentThread','markBlockFormat','_commentsRepository','howMany','getAncestors','enableCommand','formatInline','_refreshAttributeSuggestionsChain','setTo','insertion:join','markMultiRangeDeletion','sort','isEqual','dataReady','item','_getSuggestionData','schema','commandName','_getAuthorFromId','hasComments','suggestionChanged','suggestion:attribute:','group','_isForcedDefaultExecutionBlock','updateMarker','init','marker-count','_removeSuggestion','stop','addMarker','getSuggestions','selection','parent','_getExternalAuthor','getLastMatchingPosition','getCustomProperty','_descriptionFactory','keys','@external','addClass','createRange','fetchCommentThread','creator','change:_saved','newName','always','refresh','applyOperation','_registerBlockAttribute','before','pop','isInContent','_processAttributeSuggestions','rename','attribute:','markerReady','isNextTo','document','comments','_addSuggestionMarker','_reduceSuggestionAttributeRange','accepted','remove','suggestion:','toViewElement','removeMarker:suggestion:attribute','isIntersecting','deletion:chain','insertContent','_suggestionFactory','insertion:accept','containsRangeInObject','rootName','isAtEnd','editor','update:suggestion','getUser','includes','markMultiRangeInsertion','rethrowUnexpectedError','PENDING_ACTION_SUGGESTION','getAttribute','trackChanges.trackFormatChanges','ck-suggestion-marker-formatBlock','getItems','ENTER','addUser','author','activeMarkers','getContainedElement','containsItem','_inlineAttributeKeys','isAfter','updateSuggestion','isMultiRange','suggestion-type','push','values','_isDataLoaded','after','addMarkerName','notReady','reconvertMarker','_setSuggestionData','type','_defaultCallbacks','next','_enableDefaultAttributesIntegration','forceDefaultExecution','_setSuggestionRange','element','track-changes-command-not-found','markerName','_joinSuggestions','_blockAttributeKeys','getWalker','discard','formatGroupId','showSuggestionHighlights','_customCallbacks','_addThreadToSuggestion','consume','attributeNewValue','previous','delete','add','_createSuggestion','splitPosition','isIntersectingWithRange','nodeAfter','ck-suggestion-marker--active','low','createdAt','formatInline:chain','registerCustomCallback','moveTargetPosition','_processAttributeChanges','clone','startsWith','_adapter','_findSuggestions','formatInline:','_editor','track-changes-enable-command-twice','end','markerToHighlight','_registerDefaultCallbacks','meta','getIntersection','never','position','authorName','change:data','createPositionAfter','_updateSuggestionData','isCollapsed','writer','pluginName','then','getOperations','markInsertion','groupId','deletion:accept','root','getFirstMarker','_enabledCommands','error-saving-suggestion-data-suggestion-discarded','dataToMarker','stopListening','value','_registerInlineAttribute','_reduceExistingSuggestions','removeMarker:suggestion:formatBlock','multipleBlocks','removed','fromRange','_isBlockAttribute','find','insertion:','setSelection','attribute','high','_rangeIsInLocalUserInsertion','fromCharCode','unbindElementFromMarkerName','plugins','options'];(function(_0x531393,_0x1e3405){const _0x45fd6e=function(_0x1de08c){while(--_0x1de08c){_0x531393['push'](_0x531393['shift']());}};_0x45fd6e(++_0x1e3405);}(_0x1e34,0x1c1));const _0x45fd=function(_0x531393,_0x1e3405){_0x531393=_0x531393-0x0;let _0x45fd6e=_0x1e34[_0x531393];return _0x45fd6e;};import{Plugin as _0x200ad3,PendingActions as _0xe54b6c}from'ckeditor5/src/core.js';import{LiveRange as _0x1586d7}from'ckeditor5/src/engine.js';import{CKEditorError as _0x4f5e3f,uid as _0x1d4647,priorities as _0x281aa9,logWarning as _0x4d5f77}from'ckeditor5/src/utils.js';import{toWidget as _0x354e8a}from'ckeditor5/src/widget.js';import{Users as _0x11fa66,hashObject as _0x59c5b9,surroundingMarkersDetector as _0x52f036}from'ckeditor5-collaboration/src/collaboration-core.js';import _0xd845c1 from'./commands/trackchangescommand.js';import _0x296c51 from'./commands/acceptsuggestioncommand.js';import _0x530fdd from'./commands/discardsuggestioncommand.js';import _0x2c8829 from'./commands/executeonallsuggestionscommand.js';import _0x14056d from'./commands/executeonselectedsuggestionscommand.js';import _0x1de743 from'./suggestion.js';import _0x4f8496 from'./suggestiondescriptionfactory.js';import _0xd5729 from'./integrations/aiassistant.js';import _0x113233 from'./integrations/alignment.js';import _0x5dbab9 from'./integrations/basicstyles.js';import _0x2ca556 from'./integrations/blockquote.js';import _0x24b6fc from'./integrations/ckbox.js';import _0x5e4a6a from'./integrations/codeblock.js';import _0xc08e5b from'./integrations/comments.js';import _0x309dac from'./integrations/deletecommand.js';import _0x1fe1c0 from'./integrations/documentlist.js';import _0x476727 from'./integrations/documentlistproperties.js';import _0x5a1e4a from'./integrations/entercommand.js';import _0x334c26 from'./integrations/findandreplace.js';import _0x217a92 from'./integrations/font.js';import _0x2e7918 from'./integrations/formatpainter.js';import _0x194f16 from'./integrations/heading.js';import _0xd49241 from'./integrations/highlight.js';import _0x3746a9 from'./integrations/horizontalline.js';import _0x5d1202 from'./integrations/htmlembed.js';import _0x291f45 from'./integrations/image.js';import _0x5965bb from'./integrations/imagereplace.js';import _0x3583f7 from'./integrations/imagestyle.js';import _0x1c1ef4 from'./integrations/importword.js';import _0x47dae9 from'./integrations/indent.js';import _0x5e5751 from'./integrations/inputcommand.js';import _0x56fe50 from'./integrations/link.js';import _0x3252ab from'./integrations/list.js';import _0x2d4873 from'./integrations/listproperties.js';import _0x2c6fd9 from'./integrations/mediaembed.js';import _0x2543ab from'./integrations/mention.js';import _0x3162df from'./integrations/pagebreak.js';import _0x1c08cb from'./integrations/paragraph.js';import _0x53636d from'./integrations/removeformat.js';import _0x13f447 from'./integrations/restrictededitingmode.js';import _0x2ed787 from'./integrations/shiftentercommand.js';import _0x144b99 from'./integrations/standardeditingmode.js';import _0x558136 from'./integrations/style.js';import _0x158dae from'./integrations/table.js';import _0x1ed72a from'./integrations/tablemergesplit.js';import _0x2ec710 from'./integrations/tableheadings.js';import _0x96ba9f from'./integrations/tableclipboard.js';import _0x1794d7 from'./integrations/tablecolumnresize.js';import _0x1cd0a6 from'./integrations/template.js';import _0x19e852 from'./integrations/tableofcontents.js';import _0x473dca from'./integrations/title.js';import _0x1aedac from'./integrations/undo.js';import _0x5cb027 from'./integrations/tablecaption.js';import _0x3657cc from'./integrations/tableproperties.js';import{getTranslation as _0x14698f}from'./utils/common-translations.js';import{isEqual as _0x4a6831,omit as _0x1286d7}from'lodash-es';export const renameAttributeKey=_0x45fd('0x13a');export default class p extends _0x200ad3{static get[_0x45fd('0x3d')](){return['CommentsRepository',_0x11fa66,_0xe54b6c,_0xd5729,_0x113233,_0x5dbab9,_0x2ca556,_0x24b6fc,_0x5e4a6a,_0xc08e5b,_0x309dac,_0x1fe1c0,_0x476727,_0x5a1e4a,_0x334c26,_0x217a92,_0x2e7918,_0x194f16,_0xd49241,_0x3746a9,_0x5d1202,_0x291f45,_0x3583f7,_0x5965bb,_0x1c1ef4,_0x47dae9,_0x5e5751,_0x56fe50,_0x3252ab,_0x2d4873,_0x2c6fd9,_0x2543ab,_0x3162df,_0x1c08cb,_0x53636d,_0x13f447,_0x2ed787,_0x144b99,_0x558136,_0x158dae,_0x1ed72a,_0x2ec710,_0x5cb027,_0x96ba9f,_0x1794d7,_0x19e852,_0x3657cc,_0x1cd0a6,_0x473dca,_0x1aedac];}static get[_0x45fd('0x10f')](){return'TrackChangesEditing';}constructor(_0x2da73b){function _0x10c245(_0x2d2a83){return _0x2d2a83[_0x45fd('0x22')](_0x3733b5=>String[_0x45fd('0x129')](_0x3733b5))[_0x45fd('0x131')]('');}super(_0x2da73b),this[_0x45fd('0x56')]=null,this['set'](_0x45fd('0xca'),[]),this['on']('change:activeMarkers',(_0x501ad5,_0x5502cb,_0x14e85b,_0x2eb654)=>{this[_0x45fd('0xe')][_0x45fd('0x5c')](()=>{for(const _0x2d0638 of[..._0x2eb654,..._0x14e85b])this['_model'][_0x45fd('0x63')][_0x45fd('0x15c')](_0x2d0638)&&_0x2da73b[_0x45fd('0x158')][_0x45fd('0xd8')](_0x2d0638);});}),this[_0x45fd('0x96')]=new _0x4f8496(this['editor']['model'][_0x45fd('0x82')],this[_0x45fd('0xbc')][_0x45fd('0x24')]),this[_0x45fd('0xfd')]=null,this['_suggestionFactory']=new $t(this[_0x45fd('0xbc')]),this[_0x45fd('0x144')]=new Map(),this[_0x45fd('0x74')]=_0x2da73b[_0x45fd('0x12b')]['get']('CommentsRepository'),this[_0x45fd('0x117')]=new Set(),this[_0x45fd('0xe')]=this['editor']['model'],this[_0x45fd('0x67')]=new WeakMap(),this[_0x45fd('0x89')]=!0x1,this['_blockAttributeKeys']=new Set([_0x45fd('0x13a')]),this[_0x45fd('0xcd')]=new Set(),_0x2da73b[_0x45fd('0x11')]['define'](_0x45fd('0xc4'),_0x45fd('0x18')),this[_0x45fd('0x71')]=_0x2da73b[_0x45fd('0x11')][_0x45fd('0x20')](_0x45fd('0xc4')),_0x2da73b[_0x45fd('0x11')][_0x45fd('0x1c')](_0x45fd('0x146'),!0x0),this[_0x45fd('0x140')]=_0x2da73b[_0x45fd('0x11')][_0x45fd('0x20')](_0x45fd('0x146')),this[_0x45fd('0x176')]=new _0xd845c1(_0x2da73b,this['_enabledCommands']),this[_0x45fd('0xd')](),this[_0x10c245([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x10c245([0x34,0x30,0x34,0x36,0x32,0x34,0x33,0x32]);}[_0x45fd('0x8b')](){const _0x1acd97=this[_0x45fd('0xbc')],_0x448493=(_0x5049f8,_0x588203)=>{if(_0x45fd('0x126')!=_0x5049f8)return _0x45fd('0x153')+_0x5049f8;const _0x525f1e=_0x588203['split']('|')[0x0];return this[_0x45fd('0x122')](_0x525f1e)?_0x45fd('0xc5'):_0x45fd('0x9');};_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')](_0x45fd('0x26'))[_0x45fd('0x103')]({'model':_0x45fd('0x130'),'view':_0x61903b=>{const {id:_0x10d77b,type:_0x5e99e7,subType:_0x445ea3}=this[_0x45fd('0x138')](_0x61903b[_0x45fd('0xe2')]),_0x2f0d7c=[_0x45fd('0x7'),_0x448493(_0x5e99e7,_0x445ea3)];let _0x319341=0xbb8;return this[_0x45fd('0xca')][_0x45fd('0xbf')](_0x61903b['markerName'])&&(_0x2f0d7c[_0x45fd('0xd2')](_0x45fd('0xf4')),_0x319341=0xbc2),_0x45fd('0x161')==_0x5e99e7&&(_0x319341+=0x5),{'classes':_0x2f0d7c,'attributes':{'data-suggestion':_0x10d77b},'priority':_0x319341};}}),_0x1acd97[_0x45fd('0x10')]['for'](_0x45fd('0xc'))[_0x45fd('0xef')](_0x2a81ad=>{_0x2a81ad['on']('addMarker:suggestion',(_0x42b967,_0x3c382f,_0x512880)=>{if(!_0x512880[_0x45fd('0x12c')]['showSuggestionHighlights'])return;const _0x24ace1=_0x3c382f[_0x45fd('0x80')];if(!_0x24ace1)return;const _0xe98dca=_0x512880[_0x45fd('0x4e')][_0x45fd('0xb2')](_0x24ace1);_0x1acd97['model'][_0x45fd('0x82')][_0x45fd('0x57')](_0x24ace1)&&_0xe98dca&&!_0xe98dca[_0x45fd('0x95')](_0x45fd('0x6a'))&&_0xe98dca['is'](_0x45fd('0x49'))&&_0x354e8a(_0xe98dca,_0x512880[_0x45fd('0x10e')]);},{'priority':_0x45fd('0x127')});}),_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')](_0x45fd('0xc'))[_0x45fd('0x103')]({'model':_0x45fd('0x130'),'view':(_0x366819,_0x1bb5a6)=>{if(!_0x1bb5a6['options'][_0x45fd('0xe8')])return null;const {type:_0x30ca9c,subType:_0x3ee69f}=this['_splitMarkerName'](_0x366819[_0x45fd('0xe2')]);return{'classes':['ck-suggestion-marker',_0x448493(_0x30ca9c,_0x3ee69f)],'priority':0xbb8};}});const _0x53559e=({showActiveMarkers:_0x3840c1=!0x0,isAttributeSuggestion:_0x16cdd0=!0x1}={})=>(_0x2eceb8,_0x15a8b4,_0x9f9395)=>{if(!_0x15a8b4[_0x45fd('0x80')])return;const {id:_0x1243e8}=this[_0x45fd('0x138')](_0x15a8b4[_0x45fd('0xe2')]);if(_0x16cdd0){const _0x37e69f=Pt(this[_0x45fd('0x144')][_0x45fd('0x20')](_0x1243e8));if(!this[_0x45fd('0x122')](_0x37e69f))return;}if(_0x15a8b4[_0x45fd('0x80')]['is'](_0x45fd('0x91')))return void _0x9f9395[_0x45fd('0x14e')][_0x45fd('0xeb')](_0x15a8b4[_0x45fd('0x80')],_0x2eceb8['name']);const _0x389a04=_0x9f9395[_0x45fd('0x4e')]['toViewElement'](_0x15a8b4[_0x45fd('0x80')]);if(_0x15a8b4[_0x45fd('0x80')]['is'](_0x45fd('0xe0'))&&_0x1acd97[_0x45fd('0x159')]['schema'][_0x45fd('0x6')](_0x15a8b4[_0x45fd('0x80')])&&!_0x389a04['getCustomProperty'](_0x45fd('0x157'))){_0x9f9395[_0x45fd('0x10e')][_0x45fd('0x99')]([_0x45fd('0x7'),_0x45fd('0xc5')],_0x389a04),_0x9f9395['writer'][_0x45fd('0x53')](_0x45fd('0x50'),_0x1243e8,_0x389a04),_0x9f9395[_0x45fd('0x4e')][_0x45fd('0x150')](_0x389a04,_0x15a8b4[_0x45fd('0xe2')]),_0x3840c1&&(this['activeMarkers'][_0x45fd('0xbf')](_0x15a8b4[_0x45fd('0xe2')])?_0x9f9395[_0x45fd('0x10e')][_0x45fd('0x99')](_0x45fd('0xf4'),_0x389a04):_0x9f9395['writer'][_0x45fd('0x14d')]('ck-suggestion-marker--active',_0x389a04));for(const _0x47c9cb of _0x1acd97[_0x45fd('0x159')]['createRangeIn'](_0x15a8b4[_0x45fd('0x80')])[_0x45fd('0xc6')]())_0x9f9395[_0x45fd('0x14e')]['consume'](_0x47c9cb,_0x2eceb8[_0x45fd('0x32')]);_0x9f9395[_0x45fd('0x14e')][_0x45fd('0xeb')](_0x15a8b4[_0x45fd('0x80')],_0x2eceb8[_0x45fd('0x32')]);}};_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')]('dataDowncast')[_0x45fd('0xef')](_0x22b4cb=>{_0x22b4cb['on'](_0x45fd('0x2d'),(_0x2b0312,_0x4b0672,_0x49d12f)=>{_0x49d12f[_0x45fd('0x12c')][_0x45fd('0xe8')]&&_0x53559e({'showActiveMarkers':!0x1})(_0x2b0312,_0x4b0672,_0x49d12f);},{'priority':_0x45fd('0x16d')});}),_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')](_0x45fd('0xc'))[_0x45fd('0xef')](_0x1c0dc8=>{_0x1c0dc8['on']('addMarker:suggestion:attribute',(_0x39377d,_0x361b20,_0x305f63)=>{_0x305f63[_0x45fd('0x12c')][_0x45fd('0xe8')]&&_0x53559e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x39377d,_0x361b20,_0x305f63);},{'priority':_0x45fd('0x16d')});}),_0x1acd97['conversion'][_0x45fd('0x170')](_0x45fd('0xc'))['markerToData']({'model':_0x45fd('0x130'),'view':(_0xa1519c,_0x141561)=>_0x141561[_0x45fd('0x12c')][_0x45fd('0xe8')]?null:{'group':'suggestion','name':_0xa1519c[_0x45fd('0x5')](0xb)}}),_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')](_0x45fd('0x23'))[_0x45fd('0x148')]({'view':{'name':_0x45fd('0x130'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2a748f,{writer:_0x19f2c7})=>{let _0x3c0d50='suggestion:'+_0x2a748f[_0x45fd('0xc3')](_0x45fd('0xd1'))+':'+_0x2a748f[_0x45fd('0xc3')]('id');return _0x2a748f[_0x45fd('0xc3')](_0x45fd('0x8c'))&&(_0x3c0d50+=':'+_0x2a748f[_0x45fd('0xc3')](_0x45fd('0x8c'))),_0x19f2c7[_0x45fd('0x3a')]('$marker',{'data-name':_0x3c0d50});}}),_0x1acd97[_0x45fd('0x10')]['for'](_0x45fd('0x23'))[_0x45fd('0x119')]({'view':_0x45fd('0x130')}),_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')]('editingDowncast')[_0x45fd('0xef')](_0x4f29b4=>{_0x4f29b4['on'](_0x45fd('0x2d'),_0x53559e(),{'priority':'high'});}),_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')]('editingDowncast')[_0x45fd('0xef')](_0x1f527c=>{_0x1f527c['on'](_0x45fd('0x1'),_0x53559e({'isAttributeSuggestion':!0x0}),{'priority':_0x45fd('0x127')});}),_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')](_0x45fd('0x26'))[_0x45fd('0xef')](_0x4adacb=>{_0x4adacb['on'](_0x45fd('0x11e'),(_0x3f9bbe,_0x2650d2,_0x12fbff)=>{const _0x503f4a=_0x12fbff[_0x45fd('0x4e')][_0x45fd('0x2')](_0x2650d2[_0x45fd('0xe2')]);if(_0x503f4a)for(const _0x5c7953 of _0x503f4a)_0x5c7953[_0x45fd('0x95')]('addHighlight')||(_0x12fbff[_0x45fd('0x10e')][_0x45fd('0x14d')]([_0x45fd('0x7'),_0x45fd('0xc5'),'ck-suggestion-marker--active'],_0x5c7953),_0x12fbff[_0x45fd('0x10e')][_0x45fd('0x4')](_0x45fd('0x50'),_0x5c7953),_0x12fbff[_0x45fd('0x4e')][_0x45fd('0x12a')](_0x5c7953,_0x2650d2[_0x45fd('0xe2')]));},{'priority':_0x45fd('0x127')});}),_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')]('editingDowncast')[_0x45fd('0xef')](_0x316533=>{_0x316533['on'](_0x45fd('0xb3'),(_0x5cc889,_0x421626,_0x2776ff)=>{const _0x1714b8=_0x2776ff['mapper'][_0x45fd('0x2')](_0x421626[_0x45fd('0xe2')]);if(!_0x1714b8)return;const {id:_0x12cd6b}=this[_0x45fd('0x138')](_0x421626['markerName']),_0xdec90e=Pt(this[_0x45fd('0x144')][_0x45fd('0x20')](_0x12cd6b));if(this[_0x45fd('0x122')](_0xdec90e))for(const _0x3b4654 of _0x1714b8)_0x3b4654[_0x45fd('0x95')]('addHighlight')||(_0x2776ff[_0x45fd('0x10e')][_0x45fd('0x14d')]([_0x45fd('0x7'),'ck-suggestion-marker-formatBlock',_0x45fd('0xf4')],_0x3b4654),_0x2776ff[_0x45fd('0x10e')][_0x45fd('0x4')]('data-suggestion',_0x3b4654),_0x2776ff[_0x45fd('0x4e')]['unbindElementFromMarkerName'](_0x3b4654,_0x421626['markerName']));},{'priority':_0x45fd('0x127')});}),_0x1acd97['model'][_0x45fd('0xab')][_0x45fd('0x47')](_0x29026b=>{let _0x43ba1f=!0x1;const _0x1444ca=Array[_0x45fd('0x19')](_0x1acd97[_0x45fd('0x159')][_0x45fd('0xab')][_0x45fd('0x60')][_0x45fd('0x160')]()),_0xa982e0=new Set();for(const {name:_0x4cef2e,data:_0x4e639a}of _0x1444ca){const {group:_0x59dca1,type:_0xc5947c,subType:_0x7e288c,id:_0x3f78e4}=this['_splitMarkerName'](_0x4cef2e);if(_0x45fd('0x130')!==_0x59dca1)continue;const _0x2f1080=this[_0x45fd('0x144')][_0x45fd('0x20')](_0x3f78e4);if(null!=_0x4e639a[_0x45fd('0x137')]){_0x45fd('0x78')==_0xc5947c&&(_0x43ba1f=_0x43ba1f||xt(_0x4e639a[_0x45fd('0x137')],_0x4cef2e,_0x29026b,_0x1acd97[_0x45fd('0x159')][_0x45fd('0x82')]));const _0x5a733c='attribute'==_0xc5947c&&this[_0x45fd('0x122')](_0x7e288c[_0x45fd('0x15')]('|')[0x0]);if(_0x4e639a[_0x45fd('0x137')]['isCollapsed']||'$graveyard'==_0x4e639a[_0x45fd('0x137')][_0x45fd('0x115')]['rootName']||'formatBlock'==_0xc5947c&&!Rt(_0x4e639a[_0x45fd('0x137')])||_0x5a733c&&!Rt(_0x4e639a[_0x45fd('0x137')])||_0x45fd('0x161')==_0xc5947c&&!(!Tt(_0x23abca=_0x4e639a[_0x45fd('0x137')])&&!function(_0x18de2d){return _0x18de2d[_0x45fd('0x12d')][_0x45fd('0x92')]==_0x18de2d[_0x45fd('0x102')][_0x45fd('0x6f')]&&_0x18de2d[_0x45fd('0x12d')][_0x45fd('0xbb')];}(_0x23abca)))_0x29026b['removeMarker'](_0x4cef2e),_0x43ba1f=!0x0;else{if(!_0x2f1080||!_0x2f1080[_0x45fd('0xa5')])continue;_0xa982e0['add'](_0x2f1080);}}}var _0x23abca;return _0xa982e0[_0x45fd('0x39')]>0x0&&(_0x43ba1f=!!this['_joinWithAdjacentSuggestions'](_0xa982e0)||_0x43ba1f),_0x43ba1f;}),_0x1acd97[_0x45fd('0x159')][_0x45fd('0xab')]['registerPostFixer'](_0x147336=>{let _0x28359e=!0x1;for(const _0x4f6b9b of _0x1acd97[_0x45fd('0x159')]['document'][_0x45fd('0x60')][_0x45fd('0x167')]())if(_0x45fd('0x5f')==_0x4f6b9b[_0x45fd('0xda')])for(const _0x117de4 of this[_0x45fd('0x144')]['values']()){if(_0x117de4[_0x45fd('0xd0')]||!_0x117de4['isInContent'])continue;const _0x2b8fba=_0x45fd('0x51')==_0x117de4[_0x45fd('0xda')],_0x2a99c5=Pt(_0x117de4),_0x52da1f=_0x2a99c5&&this[_0x45fd('0x122')](_0x2a99c5);if(!_0x2b8fba&&!_0x52da1f)continue;const _0x58745f=_0x117de4['getFirstRange']();if(_0x58745f[_0x45fd('0x12d')]['parent']!=_0x58745f[_0x45fd('0x102')][_0x45fd('0x92')]&&!_0x58745f[_0x45fd('0x102')]['isAtEnd']){const _0x5eb178=_0x1acd97[_0x45fd('0x159')][_0x45fd('0x65')](_0x58745f[_0x45fd('0x12d')][_0x45fd('0xf3')],'end'),_0x2285fa=_0x1acd97[_0x45fd('0x159')][_0x45fd('0x9a')](_0x58745f['start'],_0x5eb178);_0x147336[_0x45fd('0x8a')](_0x117de4[_0x45fd('0x116')](),{'range':_0x2285fa}),_0x28359e=!0x0;}}return _0x28359e;}),_0x1acd97['model'][_0x45fd('0xab')][_0x45fd('0x47')](_0x151384=>this[_0x45fd('0xfa')](_0x151384)),_0x1acd97['model'][_0x45fd('0xab')]['registerPostFixer'](_0x4f28b2=>!_0x4f28b2[_0x45fd('0x16e')][_0x45fd('0x46')]&&this[_0x45fd('0xa6')](_0x4f28b2)),_0x1acd97[_0x45fd('0x159')]['markers']['on'](_0x45fd('0xbd'),(_0x3011a4,_0x489afe,_0x568478)=>{if(null==_0x568478){const {id:_0x30167b}=this[_0x45fd('0x138')](_0x489afe[_0x45fd('0x32')]),_0x4b3464=this[_0x45fd('0x144')][_0x45fd('0x20')](_0x30167b);_0x4b3464&&_0x4b3464[_0x45fd('0xd6')](_0x489afe[_0x45fd('0x32')]);}}),_0x1acd97[_0x45fd('0x159')][_0x45fd('0xab')]['on'](_0x45fd('0x10a'),()=>{const _0xc0d5c1=Array[_0x45fd('0x19')](_0x1acd97['model'][_0x45fd('0xab')]['differ'][_0x45fd('0x160')]())[_0x45fd('0x14')](_0x1dd711=>_0x45fd('0x130')===this[_0x45fd('0x138')](_0x1dd711['name'])[_0x45fd('0x88')]);if(0x0===_0xc0d5c1[_0x45fd('0x25')])return;_0xc0d5c1[_0x45fd('0x7d')]((_0x15848c,_0x303e93)=>{const _0x5bf4f7=_0x15848c[_0x45fd('0x163')]['oldRange'],_0x4e5a04=_0x303e93[_0x45fd('0x163')][_0x45fd('0xb')];return null===_0x5bf4f7&&null===_0x4e5a04?0x0:null===_0x5bf4f7&&null!==_0x4e5a04?-0x1:null!==_0x5bf4f7&&null===_0x4e5a04?0x1:_0x5bf4f7[_0x45fd('0x12d')]['isBefore'](_0x4e5a04[_0x45fd('0x12d')])?-0x1:0x1;});const _0x2cdc16=new Set(),_0x44d8a2=new Set();for(const {name:_0x2faf96,data:_0x5d4a13}of _0xc0d5c1){const {id:_0x2c2c20}=this['_splitMarkerName'](_0x2faf96);if(null===_0x5d4a13[_0x45fd('0xb')]){const _0x171784=this[_0x45fd('0x0')](_0x2faf96);_0x44d8a2[_0x45fd('0xef')](_0x171784);}else{const _0x3c0814=this[_0x45fd('0x144')][_0x45fd('0x20')](_0x2c2c20);null!==_0x5d4a13[_0x45fd('0x137')]||_0x3c0814['isInContent']?(_0x2cdc16[_0x45fd('0xef')](_0x3c0814['head']),_0x44d8a2['add'](_0x3c0814)):this['_removeSuggestion'](_0x3c0814);}}_0x44d8a2['size']>0x0&&this[_0x45fd('0x48')](_0x44d8a2);for(const _0x49eeb3 of _0x2cdc16)this[_0x45fd('0x29')]('suggestionChanged',_0x49eeb3);}),_0x1acd97['model']['on'](_0x45fd('0xa1'),(_0x31caf5,_0x336f4e)=>{const _0x2f40fa=_0x336f4e[0x0];if(!this[_0x45fd('0x144')][_0x45fd('0x39')])return;if(!_0x2f40fa['isDocumentOperation'])return;if(_0x2f40fa['batch']['isUndo']||!_0x2f40fa['batch']['isLocal'])return;let _0x6cc67e,_0x2d60ca;switch(_0x2f40fa[_0x45fd('0xda')]){case _0x45fd('0x5f'):_0x6cc67e=_0x1acd97['model'][_0x45fd('0x65')](_0x2f40fa['position']),_0x2d60ca=_0x6cc67e['getShiftedBy'](_0x2f40fa[_0x45fd('0x75')]);break;case _0x45fd('0x15'):_0x6cc67e=_0x1acd97[_0x45fd('0x159')][_0x45fd('0x65')](_0x2f40fa[_0x45fd('0xf1')]),_0x2d60ca=_0x1acd97['model']['createPositionAt'](_0x2f40fa[_0x45fd('0xf9')]);break;case _0x45fd('0x36'):_0x6cc67e=_0x1acd97[_0x45fd('0x159')][_0x45fd('0x65')](_0x2f40fa['targetPosition']),_0x2d60ca=_0x6cc67e[_0x45fd('0x4a')](_0x2f40fa['howMany']);break;default:return;}const _0x2eeb6f=_0x1acd97[_0x45fd('0x159')][_0x45fd('0x9a')](_0x6cc67e,_0x2d60ca);_0x1acd97['model'][_0x45fd('0x5c')](()=>{for(const {suggestion:_0x27b5bb,meta:_0x4c08ec}of this[_0x45fd('0xfe')](_0x2eeb6f)){if(_0x27b5bb[_0x45fd('0xd0')])continue;if('formatInline'==_0x27b5bb[_0x45fd('0xda')])continue;const _0x19ebf5=Pt(_0x27b5bb);if(_0x19ebf5&&this[_0x45fd('0x122')](_0x19ebf5)&&'split'!=_0x2f40fa[_0x45fd('0xda')])continue;const _0x32c0b0=_0x27b5bb[_0x45fd('0x163')]&&_0x27b5bb['data'][_0x45fd('0x11f')];('formatBlock'!=_0x27b5bb['type']||_0x45fd('0x15')==_0x2f40fa['type']&&!_0x32c0b0)&&(_0x4c08ec[_0x45fd('0xb9')]||_0x45fd('0x2e')==_0x27b5bb[_0x45fd('0xda')]&&_0x4c08ec[_0x45fd('0x35')]||_0x27b5bb[_0x45fd('0x17')]()[_0x45fd('0x174')](_0x2eeb6f)&&this[_0x45fd('0x14b')](_0x27b5bb,_0x6cc67e,_0x2d60ca));}});},{'priority':_0x45fd('0x156')}),_0x1acd97['model']['on'](_0x45fd('0x45'),(_0x5a2cc8,_0x2eadea)=>{const _0x3a6a95=_0x2eadea[0x0],_0x41d202=_0x2eadea[0x1];if(_0x41d202&&_0x41d202['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand'][_0x45fd('0x11b')])return;if(_0x3a6a95[_0x45fd('0x10d')])return;const _0x48c485=_0x1acd97['model'][_0x45fd('0x82')],{start:_0x218eee,end:_0x3dc9b1}=_0x3a6a95[_0x45fd('0x17')](),_0x4f3e20=_0x218eee[_0x45fd('0xf3')]&&_0x48c485[_0x45fd('0x5b')](_0x218eee[_0x45fd('0xf3')])?null:_0x48c485[_0x45fd('0x52')](_0x218eee,'forward'),_0x9958d4=_0x3dc9b1[_0x45fd('0x6f')]&&_0x48c485['isLimit'](_0x3dc9b1[_0x45fd('0x6f')])?null:_0x48c485['getNearestSelectionRange'](_0x3dc9b1,'backward'),_0x485447=_0x1acd97[_0x45fd('0x159')]['createRange'](_0x4f3e20?_0x4f3e20[_0x45fd('0x12d')]:_0x218eee,_0x9958d4?_0x9958d4['end']:_0x3dc9b1);_0x1acd97['model'][_0x45fd('0x5c')](_0x38c935=>{this[_0x45fd('0x62')](_0x485447);const _0x48e74a=_0x1acd97[_0x45fd('0x159')][_0x45fd('0x82')]['getNearestSelectionRange'](_0x485447[_0x45fd('0x12d')]);_0x3a6a95['is'](_0x45fd('0x54'))?_0x38c935[_0x45fd('0x125')](_0x48e74a):_0x3a6a95[_0x45fd('0x7a')](_0x48e74a);}),_0x5a2cc8[_0x45fd('0x8e')]();},{'priority':_0x281aa9[_0x45fd('0x5e')]+0xa}),_0x1acd97[_0x45fd('0x159')]['on'](_0x45fd('0xb6'),(_0x5f4a7d,_0x423585)=>{const _0x52e6f3=_0x423585[_0x423585[_0x45fd('0x25')]-0x1];_0x52e6f3&&_0x52e6f3[_0x45fd('0xde')]||this[_0x45fd('0x89')]||this[_0x45fd('0x176')][_0x45fd('0x11b')]&&(_0x1acd97[_0x45fd('0x159')]['change'](()=>{let _0x10b57a=_0x1acd97['model']['insertContent'](_0x423585[0x0],_0x423585[0x1],_0x423585[0x2],{'forceDefaultExecution':!0x0});if(!_0x10b57a)return;_0x5f4a7d[_0x45fd('0x154')]=_0x10b57a[_0x45fd('0xfb')]();const _0x36ca89=_0x10b57a[_0x45fd('0x102')][_0x45fd('0x6f')],_0x3f582c=_0x1acd97[_0x45fd('0x159')]['schema'];_0x36ca89&&_0x3f582c[_0x45fd('0x6')](_0x36ca89)&&!_0x3f582c[_0x45fd('0x57')](_0x36ca89)&&(_0x10b57a=_0x1acd97[_0x45fd('0x159')][_0x45fd('0x9a')](_0x10b57a[_0x45fd('0x12d')],_0x1acd97[_0x45fd('0x159')][_0x45fd('0x65')](_0x36ca89,_0x45fd('0x102')))),this[_0x45fd('0x112')](_0x10b57a);}),_0x5f4a7d['stop']());},{'priority':'high'}),this[_0x45fd('0xbc')][_0x45fd('0x16f')][_0x45fd('0xef')](_0x45fd('0x142'),this['trackChangesCommand']),this[_0x45fd('0x77')](_0x45fd('0x142'));const _0x578d56=new _0x296c51(_0x1acd97,this['_suggestions']);_0x1acd97['commands']['add']('acceptSuggestion',_0x578d56),this[_0x45fd('0x77')](_0x45fd('0x59'));const _0x325bea=new _0x530fdd(_0x1acd97,this[_0x45fd('0x144')]);_0x1acd97[_0x45fd('0x16f')][_0x45fd('0xef')](_0x45fd('0x12'),_0x325bea),this[_0x45fd('0x77')]('discardSuggestion'),_0x1acd97[_0x45fd('0x16f')]['add'](_0x45fd('0x2b'),new _0x2c8829(_0x1acd97,_0x578d56,this['_suggestions'])),this[_0x45fd('0x77')](_0x45fd('0x2b')),_0x1acd97['commands'][_0x45fd('0xef')](_0x45fd('0x1a'),new _0x2c8829(_0x1acd97,_0x325bea,this[_0x45fd('0x144')])),this[_0x45fd('0x77')](_0x45fd('0x1a')),_0x1acd97[_0x45fd('0x16f')][_0x45fd('0xef')](_0x45fd('0x134'),new _0x14056d(_0x1acd97,_0x578d56,this['_suggestions'])),this[_0x45fd('0x77')](_0x45fd('0x134')),_0x1acd97[_0x45fd('0x16f')][_0x45fd('0xef')](_0x45fd('0x21'),new _0x14056d(_0x1acd97,_0x325bea,this['_suggestions'])),this[_0x45fd('0x77')](_0x45fd('0x21'));const _0x5aec3d=_0x1acd97[_0x45fd('0x12b')]['get']('CommentsRepository');this[_0x45fd('0x8')](_0x5aec3d,'addComment',(_0x55d1b1,{threadId:_0x437691})=>{const _0x9f079f=this[_0x45fd('0x144')][_0x45fd('0x20')](_0x437691);_0x9f079f&&_0x9f079f[_0x45fd('0x141')]&&0x1===_0x9f079f['commentThread'][_0x45fd('0x25')]&&this[_0x45fd('0x10c')](_0x437691,{'hasComments':!0x0});},{'priority':'low'}),this[_0x45fd('0x8')](_0x5aec3d,'removeComment',(_0x1f4985,{threadId:_0x3aec8d})=>{const _0x50309d=this[_0x45fd('0x144')][_0x45fd('0x20')](_0x3aec8d);_0x50309d&&_0x50309d[_0x45fd('0x141')]&&!_0x50309d['commentThread'][_0x45fd('0x25')]&&this[_0x45fd('0x10c')](_0x3aec8d,{'hasComments':!0x1});},{'priority':_0x45fd('0xf5')});}set[_0x45fd('0x162')](_0x1a5323){if(this[_0x45fd('0xfd')])throw new _0x4f5e3f('track-changes-adapter-already-set',this);this['_adapter']=_0x1a5323;}get[_0x45fd('0x162')](){return this['_adapter'];}[_0x45fd('0x90')]({skipNotAttached:_0x258f6e=!0x1,toJSON:_0x485781=!0x1}={}){const _0xe6c4b7=[];for(const _0x301e7b of this[_0x45fd('0x144')][_0x45fd('0xd3')]())_0x258f6e&&!_0x301e7b[_0x45fd('0xa5')]||_0xe6c4b7['push'](_0x301e7b);return _0x485781?_0xe6c4b7['map'](_0x5c7e98=>_0x5c7e98['toJSON']()):_0xe6c4b7;}[_0x45fd('0xf')](_0x35bd83){const _0x2f40a4=this[_0x45fd('0x144')][_0x45fd('0x20')](_0x35bd83);if(!_0x2f40a4)throw new _0x4f5e3f('track-changes-suggestion-not-found',this);return _0x2f40a4;}['hasSuggestion'](_0x3aeda5){return this[_0x45fd('0x144')][_0x45fd('0x15c')](_0x3aeda5);}['addSuggestionData'](_0x21b058){const {authorId:_0x54d9c6,id:_0xd146ac,attributes:_0x44212b}=_0x21b058,[_0x3792fc,_0x55716f]=_0x21b058[_0x45fd('0xda')][_0x45fd('0x15')](':'),_0x30a4c2=this[_0x45fd('0x144')][_0x45fd('0x20')](_0xd146ac)||this[_0x45fd('0xf0')](_0x3792fc,_0x55716f,_0xd146ac,_0x54d9c6,_0x44212b);if(this[_0x45fd('0xea')](_0x30a4c2),this[_0x45fd('0x42')](_0x30a4c2,_0x3792fc,_0x55716f||null,_0x54d9c6),_0x30a4c2['createdAt']=_0x21b058[_0x45fd('0xf6')],_0x30a4c2[_0x45fd('0xd4')]=!0x0,_0x44212b&&_0x44212b[_0x45fd('0x98')]){const _0x54761c=_0x44212b[_0x45fd('0x98')],_0x4156b0=this['_getExternalAuthor'](_0x54761c[_0x45fd('0x109')]);_0x30a4c2[_0x45fd('0x58')]=_0x54761c[_0x45fd('0xf6')],_0x30a4c2[_0x45fd('0xc9')]=_0x4156b0,_0x30a4c2['isExternal']=!0x0;}else _0x30a4c2[_0x45fd('0x58')]=_0x21b058[_0x45fd('0xf6')];switch(_0x21b058['data']&&(_0x30a4c2[_0x45fd('0x163')]=_0x21b058[_0x45fd('0x163')]),_0x21b058[_0x45fd('0x16b')]&&(_0x30a4c2['attributes']=_0x21b058[_0x45fd('0x16b')]),this['_adapter']&&this[_0x45fd('0xfd')][_0x45fd('0x13f')]||(_0x30a4c2[_0x45fd('0x66')]=!0x0),this['_suggestionState']['get'](_0x30a4c2)){case _0x45fd('0xd7'):this['_suggestionState'][_0x45fd('0x5a')](_0x30a4c2,'dataReady');break;case'markerReady':_0x30a4c2['isInContent']?(this[_0x45fd('0x48')](new Set([_0x30a4c2])),this['_joinWithAdjacentSuggestions'](new Set([_0x30a4c2])),this['_suggestionState'][_0x45fd('0x5a')](_0x30a4c2,'ready'),this[_0x45fd('0x29')](_0x45fd('0x1b'),_0x30a4c2)):this[_0x45fd('0x67')]['set'](_0x30a4c2,_0x45fd('0x120'));}return _0x30a4c2;}['acceptSuggestion'](_0x64c7c2){this[_0x45fd('0xde')](()=>{this[_0x45fd('0xbc')][_0x45fd('0x159')][_0x45fd('0x5c')](()=>{for(const _0x56796c of _0x64c7c2[_0x45fd('0x28')]())_0x56796c[_0x45fd('0x147')]();});});}[_0x45fd('0x12')](_0x1ad422){this[_0x45fd('0xde')](()=>{this[_0x45fd('0xbc')][_0x45fd('0x159')][_0x45fd('0x5c')](()=>{for(const _0x3faa31 of _0x1ad422[_0x45fd('0x28')]())_0x3faa31['discard']();});});}['enableCommand'](_0x547c77,_0x2fc916){const _0xcdf9cd=this[_0x45fd('0xbc')]['commands'][_0x45fd('0x20')](_0x547c77);if(!_0xcdf9cd)throw new _0x4f5e3f(_0x45fd('0xe1'),this,{'commandName':_0x547c77});if(this[_0x45fd('0x117')][_0x45fd('0x15c')](_0xcdf9cd))throw new _0x4f5e3f(_0x45fd('0x101'),this,{'commandName':_0x547c77});this['_enabledCommands'][_0x45fd('0xef')](_0xcdf9cd),_0x2fc916&&_0xcdf9cd['on']('execute',(_0x59ea8f,_0x3379d2)=>{this[_0x45fd('0x176')][_0x45fd('0x11b')]&&(this[_0x45fd('0x89')]||(_0x3379d2[_0x45fd('0x25')]>0x0&&_0x3379d2[_0x3379d2[_0x45fd('0x25')]-0x1]&&_0x3379d2[_0x3379d2[_0x45fd('0x25')]-0x1][_0x45fd('0xde')]?_0x3379d2[_0x45fd('0xa4')]():(_0x59ea8f[_0x45fd('0x154')]=_0x2fc916((..._0x5243be)=>_0xcdf9cd[_0x45fd('0x37')](..._0x5243be,{'forceDefaultExecution':!0x0}),..._0x3379d2),_0x59ea8f[_0x45fd('0x8e')]())));},{'priority':'high'});}[_0x45fd('0xde')](_0xf34720){let _0x2d10e2,_0x2a34c0;const _0x331d89=this[_0x45fd('0x89')];this[_0x45fd('0x89')]=!0x0;try{_0x2d10e2=_0xf34720();}catch(_0x3d75a3){_0x2a34c0=_0x3d75a3;}return _0x331d89||(this[_0x45fd('0x89')]=!0x1),_0x2a34c0&&_0x4f5e3f[_0x45fd('0xc1')](_0x2a34c0,this),_0x2d10e2;}[_0x45fd('0x112')](_0x7390d0,_0x3a8c14=null,_0x2c517a={}){if(_0x7390d0[_0x45fd('0x10d')])return null;const _0x5001fb=this['editor']['plugins'][_0x45fd('0x20')](_0x45fd('0x136'))['me'];for(const {suggestion:_0x145a43,meta:_0x5d9de6}of this[_0x45fd('0xfe')](_0x7390d0,_0x45fd('0x2e')))if(_0x5d9de6['isOwn']){if(!_0x5d9de6[_0x45fd('0xaa')]){if(_0x5d9de6[_0x45fd('0xb9')]){if(!this[_0x45fd('0x140')]||!Gt(_0x145a43,_0x2c517a))continue;return _0x145a43;}if(Gt(_0x145a43,_0x2c517a))return _0x145a43;this[_0x45fd('0x14b')](_0x145a43,_0x7390d0['start'],_0x7390d0[_0x45fd('0x102')]);break;}if(_0x3a8c14==_0x145a43[_0x45fd('0x27')]&&Gt(_0x145a43,_0x2c517a)){const _0x2ce99e=_0x145a43[_0x45fd('0x17')]();return _0x2ce99e['start'][_0x45fd('0x7e')](_0x7390d0['end'])?this['_setSuggestionRange'](_0x145a43,this[_0x45fd('0xe')][_0x45fd('0x9a')](_0x7390d0[_0x45fd('0x12d')],_0x2ce99e['end'])):this['_setSuggestionRange'](_0x145a43,this[_0x45fd('0xe')]['createRange'](_0x2ce99e[_0x45fd('0x12d')],_0x7390d0[_0x45fd('0x102')])),_0x145a43;}}const _0x365d69=_0x1d4647(),_0x5e5103=_0x5001fb['id'],_0x5a6ffa=_0x3a8c14?_0x45fd('0x124')+_0x3a8c14:_0x45fd('0x2e'),_0x44e80e=this['_setSuggestionData']({'id':_0x365d69,'type':_0x5a6ffa,'createdAt':new Date(),'authorId':_0x5e5103,'attributes':_0x2c517a});return this[_0x45fd('0xad')](_0x5a6ffa,_0x365d69,_0x5e5103,_0x7390d0),_0x44e80e;}[_0x45fd('0xc0')](_0xe9e2eb,_0x827842=_0x45fd('0x12e'),_0x4e75a5={}){const _0x93435f=this[_0x45fd('0xbc')][_0x45fd('0x12b')][_0x45fd('0x20')](_0x45fd('0x136'))['me'],_0x18d34b=this[_0x45fd('0xb7')][_0x45fd('0x15f')](_0x45fd('0x2e'),_0x827842,_0x45fd('0x131'));for(const _0x2965bf of this['getSuggestions']())if(_0x2965bf[_0x45fd('0xc9')]['id']==_0x93435f['id']&&_0x45fd('0x2e')==_0x2965bf[_0x45fd('0xda')]&&_0x2965bf[_0x45fd('0x27')]==_0x827842&&Gt(_0x2965bf,_0x4e75a5)&&(_0x18d34b(_0x2965bf['getRanges'](),_0xe9e2eb)||_0x18d34b(_0xe9e2eb,_0x2965bf[_0x45fd('0x2f')]()))){for(const _0x324045 of _0xe9e2eb)_0x2965bf[_0x45fd('0x168')](_0x324045);return _0x2965bf;}for(const {suggestion:_0x3939aa,meta:_0x286984}of this[_0x45fd('0xfe')](_0xe9e2eb,_0x45fd('0x2e'))){if(!_0x286984[_0x45fd('0x35')])continue;if(!this[_0x45fd('0x140')]&&_0x286984[_0x45fd('0xb9')])continue;if(!Gt(_0x3939aa,_0x4e75a5))continue;let _0x59aa5b=!0x0;for(const _0x32c102 of _0x3939aa['getRanges']())for(const _0x5384c9 of _0xe9e2eb)if(!_0x32c102[_0x45fd('0x174')](_0x5384c9)){_0x59aa5b=!0x1;break;}if(_0x59aa5b)return _0x3939aa;}const _0x145a92=_0x1d4647(),_0x2a91c3=_0x93435f['id'],_0x5d13fa='insertion:'+_0x827842,_0x5e942e=this['_setSuggestionData']({'id':_0x145a92,'type':_0x5d13fa,'createdAt':new Date(),'authorId':_0x2a91c3,'attributes':_0x4e75a5});for(const _0x1bcb2e of _0xe9e2eb)this[_0x45fd('0xad')](_0x5d13fa,_0x145a92,_0x2a91c3,_0x1bcb2e,_0x1de743['getMultiRangeId']());return _0x5e942e;}[_0x45fd('0x70')](_0x2460eb,_0x22a153,_0x13dccc=null,_0x2022be={}){if(_0x13dccc=_0x13dccc||Et(_0x22a153),_0x2460eb['isCollapsed'])return null;if('never'===this[_0x45fd('0x71')]){const _0x4e3aab=this[_0x45fd('0xb7')][_0x45fd('0x15f')](_0x45fd('0x78'),_0x13dccc,_0x45fd('0x147'));return this[_0x45fd('0xde')](()=>_0x4e3aab([_0x2460eb],_0x22a153,_0x2022be)),null;}const _0x4a1daf=this[_0x45fd('0xbc')][_0x45fd('0x12b')][_0x45fd('0x20')](_0x45fd('0x136'))['me'],_0x1aee41=[];if(_0x45fd('0x9f')!==this[_0x45fd('0x71')])for(const {suggestion:_0x2dc1f4,meta:_0x2f8c3d}of this[_0x45fd('0xfe')](_0x2460eb,_0x45fd('0x2e')))_0x2f8c3d['isOwn']&&!_0x2f8c3d['isInsideObject']&&_0x1aee41[_0x45fd('0xd2')](..._0x2dc1f4['getRanges']());const _0x36e975=function(_0x3eb53b,_0x16ffd3){const _0x5985b8=[];for(const _0x3c2e16 of _0x16ffd3){const _0x2fb90c=_0x3eb53b[_0x45fd('0x106')](_0x3c2e16);_0x2fb90c&&_0x5985b8[_0x45fd('0xd2')](_0x2fb90c);}return _0x5985b8;}(_0x2460eb,_0x1aee41),_0x3f725f=function(_0x351779,_0x4c9dff){const _0x1ff6af=[_0x351779];for(const _0x310cd1 of _0x4c9dff){let _0x548c1d=0x0;for(;_0x548c1d<_0x1ff6af[_0x45fd('0x25')];){const _0x7e9248=_0x1ff6af[_0x548c1d][_0x45fd('0x149')](_0x310cd1);_0x1ff6af[_0x45fd('0x3c')](_0x548c1d,0x1,..._0x7e9248),_0x548c1d+=_0x7e9248[_0x45fd('0x25')];}}return _0x1ff6af;}(_0x2460eb,_0x1aee41);_0x36e975['length']&&this[_0x45fd('0xe')][_0x45fd('0x5c')](()=>{for(const _0x4dfb13 of _0x36e975){const _0x562f9e=this[_0x45fd('0xb7')][_0x45fd('0x15f')](_0x45fd('0x78'),_0x13dccc,_0x45fd('0x147'));this[_0x45fd('0xde')](()=>_0x562f9e([_0x4dfb13],_0x22a153,_0x2022be));}});for(const _0x3927c0 of _0x3f725f){let _0x7e9d52=null,_0x1435da=_0x3927c0['start'],_0x10f979=_0x3927c0[_0x45fd('0x102')];for(const {suggestion:_0x272c3a,meta:_0x777a6}of this[_0x45fd('0xfe')](_0x3927c0,'formatInline')){if(!_0x777a6[_0x45fd('0x35')])continue;if(_0x272c3a['subType']!=_0x13dccc)continue;if(!Gt(_0x272c3a,_0x2022be))continue;const _0x41d2c9=_0x272c3a[_0x45fd('0x17')]();if(_0x41d2c9['containsRange'](_0x3927c0,!0x0))return null;_0x1435da=_0x1435da[_0x45fd('0x165')](_0x41d2c9[_0x45fd('0x12d')])?_0x1435da:_0x41d2c9[_0x45fd('0x12d')],_0x10f979=_0x10f979[_0x45fd('0xce')](_0x41d2c9['end'])?_0x10f979:_0x41d2c9[_0x45fd('0x102')],_0x7e9d52?_0x41d2c9[_0x45fd('0x12d')][_0x45fd('0x165')](_0x7e9d52['getFirstRange']()[_0x45fd('0x12d')])?(_0x7e9d52[_0x45fd('0x13')](),_0x7e9d52=_0x272c3a):_0x272c3a[_0x45fd('0x13')]():_0x7e9d52=_0x272c3a;}const _0x580275=this['_model'][_0x45fd('0x9a')](_0x1435da,_0x10f979);if(_0x7e9d52)this[_0x45fd('0xdf')](_0x7e9d52,_0x580275);else{const _0x27ac5a=_0x1d4647(),_0x302f91=_0x4a1daf['id'];this[_0x45fd('0xd9')]({'id':_0x27ac5a,'type':_0x45fd('0xff')+_0x13dccc,'data':_0x22a153,'createdAt':new Date(),'authorId':_0x302f91,'attributes':_0x2022be}),this[_0x45fd('0xad')](_0x45fd('0xff')+_0x13dccc,_0x27ac5a,_0x302f91,_0x580275);}}return null;}[_0x45fd('0x73')](_0x41ccfb,_0x5093e1,_0x4b9136=[],_0x20bc6b=null,_0xbbbf20={}){_0x5093e1['formatGroupId']||(_0x5093e1[_0x45fd('0xe7')]=_0x5093e1[_0x45fd('0x83')]),_0x5093e1['multipleBlocks']=_0x41ccfb['is'](_0x45fd('0x4d')),_0x20bc6b=_0x20bc6b||Et(_0x5093e1);const _0xcb148a=_0x4b9136[_0x45fd('0x22')](_0x41720d=>Ut(_0x41720d,this[_0x45fd('0xe')])),_0x2ea699=_0x41ccfb['is'](_0x45fd('0x4d'))?_0x41ccfb:Ut(_0x41ccfb,this['_model']);if(_0x45fd('0x107')===this['_trackFormatChanges']){const _0x32a5e9=this[_0x45fd('0xb7')][_0x45fd('0x15f')]('formatBlock',_0x20bc6b,_0x45fd('0x147'));return this[_0x45fd('0xde')](()=>_0x32a5e9([_0x2ea699],_0x5093e1,_0xbbbf20)),null;}_0xcb148a[_0x45fd('0xd2')](_0x2ea699);let _0x32f283=!0x0;for(const _0x1948a5 of _0xcb148a)if(!this[_0x45fd('0x128')](_0x1948a5)){_0x32f283=!0x1;break;}if(_0x32f283&&_0x45fd('0x9f')!==this[_0x45fd('0x71')]){const _0x433bd1=this[_0x45fd('0xb7')][_0x45fd('0x15f')](_0x45fd('0x51'),_0x20bc6b,_0x45fd('0x147'));return this[_0x45fd('0xde')](()=>_0x433bd1([_0x2ea699],_0x5093e1,_0xbbbf20)),null;}let _0x2b4b0d=null,_0xaa3726=_0x2ea699[_0x45fd('0x12d')],_0x1442a4=_0x2ea699[_0x45fd('0x102')];for(const {suggestion:_0x5b4b29,meta:_0x24d56c}of this[_0x45fd('0xfe')](_0x2ea699,_0x45fd('0x51'))){if(!_0x24d56c[_0x45fd('0x35')])continue;if(_0x24d56c['isNextTo']||_0x24d56c[_0x45fd('0xb9')]||_0x24d56c['isInsideObject'])continue;if(_0x5b4b29[_0x45fd('0x163')][_0x45fd('0xe7')]!=_0x5093e1[_0x45fd('0xe7')])continue;if(!Gt(_0x5b4b29,_0xbbbf20))continue;const _0x395525=_0x5b4b29[_0x45fd('0x17')]();if(_0x5b4b29['subType']==_0x20bc6b){if(_0x395525['containsRange'](_0x2ea699,!0x0))return null;_0xaa3726=_0xaa3726[_0x45fd('0x165')](_0x395525['start'])?_0xaa3726:_0x395525['start'],_0x1442a4=_0x1442a4[_0x45fd('0xce')](_0x395525[_0x45fd('0x102')])?_0x1442a4:_0x395525[_0x45fd('0x102')],_0x2b4b0d?_0x395525[_0x45fd('0x12d')][_0x45fd('0x165')](_0x2b4b0d[_0x45fd('0x17')]()[_0x45fd('0x12d')])?(_0x2b4b0d[_0x45fd('0x13')](),_0x2b4b0d=_0x5b4b29):_0x5b4b29[_0x45fd('0x13')]():_0x2b4b0d=_0x5b4b29;}else{const _0x33b528=_0x2ea699['getIntersection'](_0x395525);this[_0x45fd('0x15b')](_0x5b4b29,_0x33b528);}}const _0x4b5582=this['editor'][_0x45fd('0x12b')][_0x45fd('0x20')](_0x45fd('0x136'))['me'],_0x10ac37=_0x1d4647(),_0x391b40=_0x4b5582['id'];if(_0x2b4b0d)return this[_0x45fd('0xdf')](_0x2b4b0d,this[_0x45fd('0xe')][_0x45fd('0x9a')](_0xaa3726,_0x1442a4)),_0x2b4b0d;{const _0x51485a=this[_0x45fd('0xd9')]({'id':_0x10ac37,'type':'formatBlock:'+_0x20bc6b,'data':_0x5093e1,'createdAt':new Date(),'authorId':_0x391b40,'attributes':_0xbbbf20});return this[_0x45fd('0xad')](_0x45fd('0x175')+_0x20bc6b,_0x10ac37,_0x391b40,this['_model'][_0x45fd('0x9a')](_0xaa3726,_0x1442a4)),_0x51485a;}}['markMultiRangeBlockFormat'](_0x2ff549,_0x1b787e,_0x2632e4=[],_0x3259c1=null,_0x403909={}){_0x1b787e[_0x45fd('0xe7')]||(_0x1b787e[_0x45fd('0xe7')]=_0x1b787e[_0x45fd('0x83')]);const _0x4a369e=_0x2ff549[0x0];_0x1b787e['multipleBlocks']=_0x4a369e['is'](_0x45fd('0x4d')),_0x3259c1=_0x3259c1||Et(_0x1b787e);const _0x31b275=_0x2632e4[_0x45fd('0x22')](_0x3d8018=>Ut(_0x3d8018,this['_model'])),_0x1f7579=_0x4a369e['is'](_0x45fd('0x4d'))?_0x2ff549:_0x2ff549[_0x45fd('0x22')](_0x3f2e3a=>Ut(_0x3f2e3a,this['_model']));if(_0x45fd('0x107')===this['_trackFormatChanges']){const _0x2dba5a=this[_0x45fd('0xb7')][_0x45fd('0x15f')]('formatBlock',_0x3259c1,_0x45fd('0x147'));return this[_0x45fd('0xde')](()=>_0x2dba5a(_0x1f7579,_0x1b787e,_0x403909)),null;}_0x31b275[_0x45fd('0xd2')](..._0x1f7579);let _0x3a9bd6=!0x0;for(const _0x457a87 of _0x31b275)if(!this[_0x45fd('0x128')](_0x457a87)){_0x3a9bd6=!0x1;break;}if(_0x3a9bd6&&_0x45fd('0x9f')!==this['_trackFormatChanges']){const _0x5b178a=this[_0x45fd('0xb7')]['getSuggestionCallback'](_0x45fd('0x51'),_0x3259c1,'accept');return this[_0x45fd('0xde')](()=>_0x5b178a(_0x1f7579,_0x1b787e,_0x403909)),null;}const _0x8209d4=this[_0x45fd('0xbc')][_0x45fd('0x12b')][_0x45fd('0x20')]('Users')['me'];for(const _0x35d9c2 of this[_0x45fd('0x90')]()){if(_0x35d9c2[_0x45fd('0xc9')]['id']!=_0x8209d4['id'])continue;if('formatBlock'!=_0x35d9c2['type']||_0x35d9c2[_0x45fd('0x163')][_0x45fd('0xe7')]!=_0x1b787e[_0x45fd('0xe7')])continue;if(!Gt(_0x35d9c2,_0x403909))continue;const _0x1bc0ce=_0x35d9c2[_0x45fd('0x27')]==_0x3259c1;for(let _0x2bee88=0x0;_0x2bee88<_0x1f7579['length'];_0x2bee88++){const _0x5c44b9=_0x1f7579[_0x2bee88];for(const _0xcbfd4e of _0x35d9c2[_0x45fd('0x68')]()){const _0x3a770b=_0xcbfd4e['getRange']();if(_0x5c44b9[_0x45fd('0x7e')](_0x3a770b)){_0x1bc0ce?(_0x1f7579[_0x45fd('0x3c')](_0x2bee88,0x1),_0x2bee88--):_0x35d9c2[_0x45fd('0x13d')](_0xcbfd4e[_0x45fd('0x32')]);break;}}}}if(0x0==_0x1f7579[_0x45fd('0x25')])return null;const _0x4a8557=this['_suggestionFactory'][_0x45fd('0x15f')]('formatBlock',_0x3259c1,_0x45fd('0x131'));for(const _0x56ac82 of this[_0x45fd('0x90')]())if(_0x56ac82['author']['id']==_0x8209d4['id']&&_0x45fd('0x51')==_0x56ac82[_0x45fd('0xda')]&&_0x56ac82[_0x45fd('0x163')][_0x45fd('0xe7')]==_0x1b787e[_0x45fd('0xe7')]&&_0x56ac82['subType']==_0x3259c1&&Gt(_0x56ac82,_0x403909)&&(_0x4a8557(_0x56ac82[_0x45fd('0x2f')](),_0x1f7579)||_0x4a8557(_0x1f7579,_0x56ac82[_0x45fd('0x2f')]()))){for(const _0x109963 of _0x1f7579)_0x56ac82['addRange'](_0x109963);return _0x56ac82;}const _0x77823d=_0x1d4647(),_0x4d52c0=_0x8209d4['id'],_0xd717b4=_0x45fd('0x175')+_0x3259c1,_0x383c9=this[_0x45fd('0xd9')]({'id':_0x77823d,'type':_0xd717b4,'data':_0x1b787e,'createdAt':new Date(),'authorId':_0x4d52c0,'attributes':_0x403909});for(const _0x3923bd of _0x1f7579)this[_0x45fd('0xad')](_0xd717b4,_0x77823d,_0x4d52c0,_0x3923bd,_0x1de743[_0x45fd('0x55')]());return _0x383c9;}[_0x45fd('0x62')](_0x272d63,_0x201599=null,_0x2b3ecf={}){if(_0x272d63[_0x45fd('0x10d')])return null;const _0x2042e0=this[_0x45fd('0xbc')]['plugins'][_0x45fd('0x20')](_0x45fd('0x136'))['me'],_0x2697e9=new _0x1586d7(_0x272d63[_0x45fd('0x12d')],_0x272d63[_0x45fd('0x102')]);for(const {suggestion:_0xc09381,meta:_0x1d374b}of this['_findSuggestions'](_0x2697e9,'insertion'))if(_0x1d374b[_0x45fd('0x35')]&&!_0x1d374b[_0x45fd('0xaa')]){if(_0xc09381['isMultiRange']){const _0x499bce=_0xc09381['getRanges']()[_0x45fd('0x14')](_0x160061=>_0x45fd('0x6b')!=_0x160061['root']['rootName']);_0x499bce[_0x45fd('0x171')](_0x5dcf60=>_0x2697e9['containsRange'](_0x5dcf60,!0x0))&&_0xc09381['discard']();if(_0x499bce[_0x45fd('0x1e')](_0x19d394=>_0x19d394['containsRange'](_0x2697e9,!0x0))){const _0xc2e1c1=this[_0x45fd('0xb7')]['getSuggestionCallback'](_0x45fd('0x161'),_0x201599,_0x45fd('0x147'));return this['forceDefaultExecution'](()=>_0xc2e1c1([_0x2697e9],null,_0x2b3ecf)),null;}}else{const _0xbfbb7b=_0x2697e9[_0x45fd('0x106')](_0xc09381[_0x45fd('0x17')]());null!==_0xbfbb7b&&_0xc09381[_0x45fd('0x152')]([_0xbfbb7b],null,_0x2b3ecf);}}if(_0x2697e9[_0x45fd('0x43')](),_0x2697e9[_0x45fd('0x10d')]||_0x45fd('0x6b')==_0x2697e9[_0x45fd('0x115')][_0x45fd('0xba')])return null;let _0x13cc2a=null,_0x586226=_0x2697e9[_0x45fd('0x12d')],_0x5af5bd=_0x2697e9[_0x45fd('0x102')];const _0x1783b1=this[_0x45fd('0xfe')](_0x2697e9,_0x45fd('0x161'));for(const {suggestion:_0x1785d8,meta:_0xb5e0f6}of _0x1783b1){const _0x29cd70=this[_0x45fd('0xe')][_0x45fd('0x9a')](_0x586226,_0x5af5bd);if(_0xb5e0f6[_0x45fd('0x35')]&&(this[_0x45fd('0x140')]||!_0xb5e0f6[_0x45fd('0xb9')]&&!_0xb5e0f6[_0x45fd('0x6d')])){if(_0x1785d8['isMultiRange']){if(!Gt(_0x1785d8,_0x2b3ecf))continue;let _0x1f4c91=!0x0;for(const _0x10a706 of _0x1785d8[_0x45fd('0x2f')]()){if(_0x10a706['containsRange'](_0x29cd70,!0x0))return _0x1785d8;_0x29cd70[_0x45fd('0x174')](_0x10a706)||(_0x1f4c91=!0x1);}_0x1f4c91&&_0x1785d8[_0x45fd('0xe6')]();}else{const _0xf08eba=_0x1785d8['getFirstRange']();if(_0xf08eba['containsRange'](_0x29cd70,!0x0))return _0x1785d8;if(!Gt(_0x1785d8,_0x2b3ecf)){_0x29cd70[_0x45fd('0x174')](_0xf08eba)?_0x1785d8[_0x45fd('0x13')]():_0xf08eba[_0x45fd('0x3e')](_0x586226)?_0x586226=_0xf08eba['end']:_0xf08eba['containsPosition'](_0x5af5bd)&&(_0x5af5bd=_0xf08eba[_0x45fd('0x12d')]);continue;}_0x586226=_0x586226[_0x45fd('0x165')](_0xf08eba[_0x45fd('0x12d')])?_0x586226:_0xf08eba['start'],_0x5af5bd=_0x5af5bd['isAfter'](_0xf08eba[_0x45fd('0x102')])?_0x5af5bd:_0xf08eba[_0x45fd('0x102')],_0x2b3ecf=Object['assign']({},_0x1785d8['attributes']),_0x13cc2a?_0xf08eba['start'][_0x45fd('0x165')](_0x13cc2a[_0x45fd('0x17')]()['start'])?(_0x13cc2a[_0x45fd('0x13')](),_0x13cc2a=_0x1785d8):_0x1785d8['removeMarkers']():_0x13cc2a=_0x1785d8;}}}if(_0x13cc2a)return this[_0x45fd('0xdf')](_0x13cc2a,this['_model'][_0x45fd('0x9a')](_0x586226,_0x5af5bd)),_0x13cc2a;{const _0x588bc4=_0x1d4647(),_0x26e3c0=this[_0x45fd('0xe')]['createRange'](_0x586226,_0x5af5bd),_0x29d828=_0x2042e0['id'],_0x15b7c5=_0x201599?_0x45fd('0x38')+_0x201599:_0x45fd('0x161'),_0x39f6e9=this[_0x45fd('0xd9')]({'id':_0x588bc4,'type':_0x15b7c5,'createdAt':new Date(),'authorId':_0x29d828,'attributes':_0x2b3ecf});return this['_addSuggestionMarker'](_0x15b7c5,_0x588bc4,_0x29d828,_0x26e3c0),_0x39f6e9;}}[_0x45fd('0x7c')](_0x42b990,_0x3434f1='multi',_0x5d1f12={}){const _0x1cb606=this[_0x45fd('0xbc')][_0x45fd('0x12b')][_0x45fd('0x20')](_0x45fd('0x136'))['me'],_0x40e5cf=_0x42b990[_0x45fd('0x22')](_0x2ac8df=>new _0x1586d7(_0x2ac8df[_0x45fd('0x12d')],_0x2ac8df[_0x45fd('0x102')])),_0x1d4ef1=new Set();for(const {suggestion:_0x1113cc,meta:_0x7466c3}of this[_0x45fd('0xfe')](_0x40e5cf,'insertion'))_0x7466c3[_0x45fd('0x35')]&&!_0x7466c3['isNextTo']&&_0x1d4ef1[_0x45fd('0xef')](_0x1113cc);for(const _0x9d66a7 of _0x1d4ef1)if(_0x9d66a7[_0x45fd('0xd0')]){const _0x42a3af=_0x9d66a7[_0x45fd('0x2f')]();(!_0x9d66a7['attributes']||!_0x9d66a7[_0x45fd('0x16b')]['skipNestingCheck'])&&(_0x42a3af[_0x45fd('0x171')](_0x4bd345=>_0x40e5cf[_0x45fd('0x1e')](_0x19286c=>_0x19286c['containsRange'](_0x4bd345,!0x0)))&&_0x9d66a7[_0x45fd('0xe6')]());if(_0x40e5cf[_0x45fd('0x171')](_0x1424d3=>_0x42a3af[_0x45fd('0x1e')](_0x22e0d8=>_0x22e0d8[_0x45fd('0x174')](_0x1424d3,!0x0)))){const _0x332d52=this[_0x45fd('0xb7')][_0x45fd('0x15f')](_0x45fd('0x161'),_0x3434f1,_0x45fd('0x147'));return this[_0x45fd('0xde')](()=>_0x332d52(_0x42b990,null,_0x5d1f12)),null;}}else{const _0x503d34=_0x9d66a7[_0x45fd('0x17')]();_0x40e5cf['some'](_0x5cac94=>_0x5cac94['containsRange'](_0x503d34,!0x0))&&_0x9d66a7['discard']();if(_0x40e5cf[_0x45fd('0x171')](_0x5e0360=>_0x503d34[_0x45fd('0x174')](_0x5e0360,!0x0))){const _0x45e270=this[_0x45fd('0xb7')][_0x45fd('0x15f')]('deletion',_0x3434f1,_0x45fd('0x147'));return this['forceDefaultExecution'](()=>_0x45e270(_0x40e5cf,null,_0x5d1f12)),null;}}const _0x17617c=this[_0x45fd('0xb7')][_0x45fd('0x15f')]('deletion',_0x3434f1,_0x45fd('0x131'));let _0x35c495=null;for(const _0x129839 of this['getSuggestions']())if(_0x129839['author']['id']==_0x1cb606['id']&&_0x129839[_0x45fd('0xa5')]&&_0x45fd('0x161')==_0x129839[_0x45fd('0xda')]&&_0x129839['subType']==_0x3434f1&&Gt(_0x129839,_0x5d1f12)&&(_0x17617c(_0x129839[_0x45fd('0x2f')](),_0x40e5cf)||_0x17617c(_0x40e5cf,_0x129839[_0x45fd('0x2f')]()))){if(_0x35c495){if(_0x129839['commentThread']&&_0x129839[_0x45fd('0x141')][_0x45fd('0x25')])continue;for(const _0x168d32 of _0x129839[_0x45fd('0x2f')]())_0x35c495[_0x45fd('0xf2')](_0x168d32)||_0x35c495['addRange'](_0x168d32);_0x129839['removeMarkers']();}else{_0x35c495=_0x129839;for(const _0x75ef03 of _0x40e5cf)_0x129839[_0x45fd('0xf2')](_0x75ef03)||_0x129839[_0x45fd('0x168')](_0x75ef03);}}if(_0x35c495)return _0x35c495;_0x1d4ef1[_0x45fd('0x6e')]();for(const {suggestion:_0x2f7426,meta:_0x8f5d22}of this['_findSuggestions'](_0x40e5cf,_0x45fd('0x161')))_0x8f5d22[_0x45fd('0x35')]&&(this['_mergeNestedSuggestions']||!_0x8f5d22[_0x45fd('0xb9')]&&!_0x8f5d22[_0x45fd('0x6d')])&&Gt(_0x2f7426,_0x5d1f12)&&_0x1d4ef1[_0x45fd('0xef')](_0x2f7426);for(const _0xbc48b3 of _0x1d4ef1){const _0x4e6b9e=_0xbc48b3[_0x45fd('0x2f')]();if(!_0x5d1f12||!_0x5d1f12['skipNestingCheck']){if(_0x40e5cf[_0x45fd('0x171')](_0x26060a=>_0x4e6b9e[_0x45fd('0x1e')](_0x24117e=>_0x24117e[_0x45fd('0x174')](_0x26060a,!0x0))))return _0xbc48b3;}(!_0xbc48b3['attributes']||!_0xbc48b3['attributes'][_0x45fd('0x1d')])&&(_0x4e6b9e['every'](_0x36d5d8=>_0x40e5cf['some'](_0xb599f5=>_0xb599f5[_0x45fd('0x174')](_0x36d5d8,!0x0)))&&_0xbc48b3[_0x45fd('0xe6')]());}const _0xc344b2=_0x1d4647(),_0x33f6ce=_0x1cb606['id'],_0x31f6ba='deletion:'+_0x3434f1,_0x51cf03=this['_setSuggestionData']({'id':_0xc344b2,'type':_0x31f6ba,'createdAt':new Date(),'authorId':_0x33f6ce,'attributes':_0x5d1f12});for(const _0x4375d of _0x40e5cf)_0x4375d['detach'](),_0x4375d['isCollapsed']||'$graveyard'==_0x4375d[_0x45fd('0x115')][_0x45fd('0xba')]||this['_addSuggestionMarker'](_0x31f6ba,_0xc344b2,_0x33f6ce,_0x4375d,_0x1de743[_0x45fd('0x55')]());return _0x51cf03;}[_0x45fd('0x16a')](_0x42031f,_0x406071,_0x5931ad,_0x10e444,_0x5ad58a){if(_0x42031f[_0x45fd('0x10d')])return[];if(_0x45fd('0x107')===this[_0x45fd('0x71')])return[];const _0x1dc491=this[_0x45fd('0xbc')][_0x45fd('0x12b')][_0x45fd('0x20')](_0x45fd('0x136'))['me']['id'],_0x29a2a7=Array['from'](this[_0x45fd('0x144')]['values']())[_0x45fd('0x14')](_0x9ce8be=>'attribute'==_0x9ce8be['type']&&_0x9ce8be['data'][_0x45fd('0x69')]==_0x406071&&_0x9ce8be[_0x45fd('0xf2')](_0x42031f));if(_0x45fd('0x18')===this[_0x45fd('0x71')]){const _0x18808f=this[_0x45fd('0xfe')](_0x42031f,_0x45fd('0x2e'))[_0x45fd('0x14')](({meta:_0x4c7c0e})=>_0x4c7c0e[_0x45fd('0x35')]&&!_0x4c7c0e[_0x45fd('0x6d')]&&!_0x4c7c0e[_0x45fd('0xaa')])[_0x45fd('0x22')](({suggestion:_0x4e2a5d})=>_0x4e2a5d);_0x29a2a7[_0x45fd('0x41')](..._0x18808f);}const _0x17f860=new Map([[_0x42031f,_0x5931ad]]);for(const _0x44a96e of _0x29a2a7){const _0x88687c=_0x45fd('0x126')==_0x44a96e[_0x45fd('0xda')]?_0x44a96e[_0x45fd('0x163')][_0x45fd('0x173')]:void 0x0,_0x443152=_0x44a96e[_0x45fd('0x17')](),_0x2fbd36=Array[_0x45fd('0x19')](_0x17f860[_0x45fd('0x97')]())[_0x45fd('0x123')](_0x40d708=>_0x40d708[_0x45fd('0xb4')](_0x443152));if(!_0x2fbd36)continue;const _0x172e68=_0x2fbd36[_0x45fd('0x149')](_0x443152);this[_0x45fd('0x122')](_0x406071)&&_0x45fd('0x2e')==_0x44a96e[_0x45fd('0xda')]&&0x0!=_0x172e68[_0x45fd('0x25')]||(_0x17f860[_0x45fd('0xee')](_0x2fbd36),_0x172e68[_0x45fd('0x3f')](_0x4167f0=>{_0x17f860[_0x45fd('0x5a')](_0x4167f0,_0x5931ad);}),_0x45fd('0x2e')!=_0x44a96e[_0x45fd('0xda')]&&_0x88687c!=_0x10e444&&_0x17f860[_0x45fd('0x5a')](_0x2fbd36[_0x45fd('0x106')](_0x443152),_0x88687c));}const _0x1403aa=[];for(const [_0x588596,_0x4bd45c]of _0x17f860){const _0x5a762e=_0x1d4647(),_0x38e864={'key':_0x406071,'oldValue':_0x4bd45c,'newValue':_0x10e444};_0x406071[_0x45fd('0x25')]>0x25&&console['warn'](_0x45fd('0x15a'),{'key':_0x406071});const _0x14922c=(_0x45fd('0xa8')+(_0x406071+'|'+Et({'newValue':_0x10e444})))['substring'](0x0,0x3c),_0x5e8206=this['_setSuggestionData']({'id':_0x5a762e,'type':_0x14922c,'data':_0x38e864,'createdAt':new Date(),'authorId':_0x1dc491,'attributes':_0x5ad58a});_0x1403aa[_0x45fd('0xd2')](_0x5e8206),this[_0x45fd('0xad')](_0x14922c,_0x5a762e,_0x1dc491,_0x588596);}return _0x1403aa;}[_0x45fd('0xa2')](_0x53a6fc){this[_0x45fd('0xe4')][_0x45fd('0xef')](_0x53a6fc);}[_0x45fd('0x11c')](_0x144120){this[_0x45fd('0xcd')][_0x45fd('0xef')](_0x144120);}[_0x45fd('0xdd')](_0x14e891,_0x17c7d7=[],_0x2d3206=[]){this['enableCommand'](_0x14e891,(_0x2d8d9e,..._0x2bdabc)=>{this['_recordAttributeChanges'](()=>{_0x2d8d9e(..._0x2bdabc);});});for(const _0x5cd325 of _0x17c7d7)this[_0x45fd('0x11c')](_0x5cd325);for(const _0x2637fe of _0x2d3206)this['_registerBlockAttribute'](_0x2637fe);}[_0x45fd('0xdf')](_0x14fece,_0xc3be23){const _0x2d282c=_0x14fece[_0x45fd('0x116')]();this[_0x45fd('0xe')][_0x45fd('0x5c')](_0x5942a4=>{_0x5942a4[_0x45fd('0x8a')](_0x2d282c,{'range':_0xc3be23});});}['_addThreadToSuggestion'](_0x5c4fc9){const _0xe679fd=_0x5c4fc9['id'],_0x22bdfd=this[_0x45fd('0xbc')][_0x45fd('0x11')][_0x45fd('0x20')](_0x45fd('0x13b'));this['_commentsRepository'][_0x45fd('0x72')](_0xe679fd)||this[_0x45fd('0x74')]['addCommentThread']({'channelId':_0x22bdfd,'threadId':_0xe679fd,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x19e485=this['_commentsRepository'][_0x45fd('0x143')](_0xe679fd);_0x19e485['unbind'](_0x45fd('0x139')),_0x19e485['isRemovable']=!0x1,_0x5c4fc9[_0x45fd('0x141')]=_0x19e485;}['_checkSuggestionCorrectness'](_0x63fc48,_0x5c2c2b,_0x50e028,_0x28d5be){if(_0x63fc48[_0x45fd('0xda')]!=_0x5c2c2b||_0x63fc48[_0x45fd('0x27')]!=_0x50e028||_0x63fc48[_0x45fd('0x9c')]['id']!=_0x28d5be)throw this[_0x45fd('0xbc')]['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4f5e3f(_0x45fd('0x30'),this);}['_cutOutSuggestionMarker'](_0x42992a,_0x3d7ae2){const _0x50a3ca=_0x42992a[_0x45fd('0x17')]();if(_0x3d7ae2[_0x45fd('0x7e')](_0x50a3ca))_0x42992a[_0x45fd('0x13')]();else{if(_0x50a3ca[_0x45fd('0x174')](_0x3d7ae2)){const _0x43e05a=this['_model'][_0x45fd('0x65')](_0x3d7ae2['start'][_0x45fd('0x6f')],'end');this[_0x45fd('0xdf')](_0x42992a,this[_0x45fd('0xe')][_0x45fd('0x9a')](_0x50a3ca[_0x45fd('0x12d')],_0x43e05a));const _0x4b4c04=_0x1d4647(),_0x5a3fbe=_0x42992a[_0x45fd('0x9c')]['id'],_0x4fac2b=_0x42992a['type']+':'+_0x42992a[_0x45fd('0x27')];this[_0x45fd('0xd9')]({'id':_0x4b4c04,'type':_0x4fac2b,'createdAt':new Date(),'authorId':_0x5a3fbe,'data':_0x42992a['data'],'attributes':_0x42992a[_0x45fd('0x16b')]});const _0xfd1f14=this[_0x45fd('0xe')][_0x45fd('0x65')](_0x3d7ae2[_0x45fd('0x102')][_0x45fd('0x92')],_0x45fd('0xd5')),_0x37dba6=this[_0x45fd('0xe')][_0x45fd('0x9a')](_0xfd1f14,_0x50a3ca[_0x45fd('0x102')]);this['_addSuggestionMarker'](_0x4fac2b,_0x4b4c04,_0x5a3fbe,_0x37dba6);}else{if(_0x50a3ca['containsPosition'](_0x3d7ae2['start'])){const _0x3ae517=this['_model']['createPositionAt'](_0x3d7ae2[_0x45fd('0x12d')][_0x45fd('0x6f')],_0x45fd('0x102'));this[_0x45fd('0xdf')](_0x42992a,this[_0x45fd('0xe')][_0x45fd('0x9a')](_0x50a3ca[_0x45fd('0x12d')],_0x3ae517));}else{const _0x1a3c4c=this[_0x45fd('0xe')][_0x45fd('0x65')](_0x3d7ae2[_0x45fd('0x102')][_0x45fd('0x92')],'after');this[_0x45fd('0xdf')](_0x42992a,this[_0x45fd('0xe')][_0x45fd('0x9a')](_0x1a3c4c,_0x50a3ca[_0x45fd('0x102')]));}}}}[_0x45fd('0x128')](_0x3791c5){for(const {suggestion:_0x584fbe,meta:_0x5a4f4a}of this[_0x45fd('0xfe')](_0x3791c5,_0x45fd('0x2e'))){if(!_0x5a4f4a['isOwn'])continue;const _0x3e27dc=_0x584fbe[_0x45fd('0x2f')]();for(const _0x25e9cc of _0x3e27dc)if(!_0x3791c5[_0x45fd('0x149')](_0x25e9cc)[_0x45fd('0x25')])return!0x0;}return!0x1;}[_0x45fd('0x84')](_0x53f49b){const _0x52b04d=this[_0x45fd('0xbc')]['plugins'][_0x45fd('0x20')]('Users')[_0x45fd('0xbe')](_0x53f49b);if(!_0x52b04d)throw new _0x4f5e3f(_0x45fd('0x31'),this);return _0x52b04d;}[_0x45fd('0x93')](_0x591f11){const _0x2df92b=this['editor'][_0x45fd('0x12b')][_0x45fd('0x20')](_0x45fd('0x136')),_0xc7e10a=_0x59c5b9('external:'+_0x591f11),_0x502646=_0x2df92b[_0x45fd('0xbe')](_0xc7e10a);return _0x502646||_0x2df92b[_0x45fd('0xc8')]({'id':_0xc7e10a,'name':_0x591f11});}['_createSuggestion'](_0x4f5d2b,_0x4564c5,_0x45276b,_0x4d8e3c,_0xe438e5){const _0x232c30=this['_getAuthorFromId'](_0x4d8e3c),_0x172586=this[_0x45fd('0xb7')][_0x45fd('0x3b')](_0x4f5d2b,_0x4564c5,_0x45276b,_0x232c30,_0xe438e5,_0x5ceafa=>this[_0x45fd('0x10c')](_0x45276b,{'attributes':_0x5ceafa}));return this[_0x45fd('0x8')](_0x172586,_0x45fd('0x147'),()=>{this[_0x45fd('0x10c')](_0x45276b,{'state':_0x45fd('0xaf')});},{'priority':_0x45fd('0x127')}),this[_0x45fd('0x8')](_0x172586,'discard',()=>{this[_0x45fd('0x10c')](_0x45276b,{'state':'rejected'});},{'priority':'high'}),this[_0x45fd('0x144')][_0x45fd('0x5a')](_0x45276b,_0x172586),this[_0x45fd('0x67')]['set'](_0x172586,_0x45fd('0xd7')),_0x172586;}[_0x45fd('0x138')](_0x59c1eb){const _0x53ab64=_0x59c1eb['split'](':');return{'group':_0x53ab64[0x0],'type':_0x53ab64[0x1],'subType':_0x53ab64['length']>=0x5?_0x53ab64[0x2]:null,'id':_0x53ab64['length']<0x5?_0x53ab64[0x2]:_0x53ab64[0x3],'authorId':_0x53ab64['length']<0x5?_0x53ab64[0x3]:_0x53ab64[0x4],'markerCount':0x6==_0x53ab64[_0x45fd('0x25')]?_0x53ab64[0x5]:null};}[_0x45fd('0x14b')](_0x103ea3,_0x13dd24,_0x4e8211){const _0x5b1fa4=_0x103ea3['getFirstRange'](),_0x41419b=_0x5b1fa4[_0x45fd('0x12d')],_0x84115c=_0x5b1fa4[_0x45fd('0x102')];this[_0x45fd('0xdf')](_0x103ea3,this['_model'][_0x45fd('0x9a')](_0x41419b,_0x13dd24));const _0x552e1c=_0x1d4647(),_0x45823f=_0x103ea3[_0x45fd('0x9c')]['id'],_0x5cc34f=_0x103ea3['type']+(_0x103ea3[_0x45fd('0x27')]?':'+_0x103ea3['subType']:'');this['_setSuggestionData']({'id':_0x552e1c,'type':_0x5cc34f,'createdAt':new Date(),'authorId':_0x45823f,'originalSuggestionId':_0x103ea3['id'],'attributes':_0x103ea3[_0x45fd('0x16b')],'data':_0x103ea3['data']});const _0x4ac029=Pt(_0x103ea3);('formatBlock'==_0x103ea3['type']||_0x4ac029&&this[_0x45fd('0x122')](_0x4ac029))&&(_0x4e8211=this[_0x45fd('0xe')][_0x45fd('0x14f')](_0x4e8211[_0x45fd('0x92')])),this[_0x45fd('0xad')](_0x5cc34f,_0x552e1c,_0x45823f,this[_0x45fd('0xe')]['createRange'](_0x4e8211,_0x84115c));}[_0x45fd('0xfe')](_0x20073e,_0xabce8e=null){const _0x332e1d=[],_0x56301d=this[_0x45fd('0xbc')]['plugins'][_0x45fd('0x20')](_0x45fd('0x136'))['me'];Array[_0x45fd('0xa')](_0x20073e)||(_0x20073e=[_0x20073e]);for(const _0x452a7c of this[_0x45fd('0x90')]()){if(!_0x452a7c['isInContent'])continue;if(_0xabce8e&&_0x452a7c[_0x45fd('0xda')]!=_0xabce8e)continue;let _0x33a81f=!0x1;for(const _0x504ede of _0x452a7c[_0x45fd('0x2f')]()){for(const _0x405c35 of _0x20073e){const _0x56e286=_0x405c35[_0x45fd('0x12d')][_0x45fd('0x7e')](_0x504ede[_0x45fd('0x102')])||_0x405c35['end']['isEqual'](_0x504ede[_0x45fd('0x12d')]);if(_0x56e286||_0x405c35[_0x45fd('0x106')](_0x504ede)){const _0x75144a=_0x405c35[_0x45fd('0x174')](_0x504ede)&&Bt(this['_model'][_0x45fd('0x82')],_0x504ede['start'],_0x405c35),_0x400534=_0x504ede[_0x45fd('0x174')](_0x405c35)&&Bt(this[_0x45fd('0xe')]['schema'],_0x405c35[_0x45fd('0x12d')],_0x504ede);_0x332e1d[_0x45fd('0xd2')]({'suggestion':_0x452a7c,'meta':{'isOwn':_0x56301d==_0x452a7c[_0x45fd('0xc9')],'isNextTo':_0x56e286,'isInsideObject':_0x75144a,'containsRangeInObject':_0x400534}}),_0x33a81f=!0x0;break;}}if(_0x33a81f)break;}}return _0x332e1d;}[_0x45fd('0xad')](_0x848662,_0x2ffd3d,_0x51ef93,_0x149f1d,_0x34b27d){this['_model'][_0x45fd('0x5c')](_0x3208b4=>{let _0xdc36b8=_0x45fd('0xb1')+_0x848662+':'+_0x2ffd3d+':'+_0x51ef93;_0x34b27d&&(_0xdc36b8=_0xdc36b8+':'+_0x34b27d),_0x3208b4[_0x45fd('0x8f')](_0xdc36b8,{'range':_0x149f1d,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x45fd('0x8d')](_0xe8a9e7){const _0x1b1ddb=_0xe8a9e7[_0x45fd('0xed')],_0x59224b=_0xe8a9e7[_0x45fd('0xdc')];_0xe8a9e7[_0x45fd('0xed')]=null,_0xe8a9e7[_0x45fd('0xdc')]=null,null!=_0x1b1ddb&&(_0x1b1ddb[_0x45fd('0xdc')]=_0x59224b),null!=_0x59224b&&(_0x59224b[_0x45fd('0xed')]=_0x1b1ddb),'ready'==this[_0x45fd('0x67')][_0x45fd('0x20')](_0xe8a9e7)&&(this['_suggestionState'][_0x45fd('0x5a')](_0xe8a9e7,_0x45fd('0x120')),this[_0x45fd('0x29')]('suggestionUnloaded',_0xe8a9e7,_0x1b1ddb,_0x59224b));}['_setSuggestionData'](_0x4ec821){const _0xf81af5=_0x4ec821['id'],_0x460570=this[_0x45fd('0x64')](_0x4ec821);if(this[_0x45fd('0xfd')]&&this[_0x45fd('0xfd')][_0x45fd('0x13f')]){const _0x4f641f=this[_0x45fd('0xbc')][_0x45fd('0x12b')][_0x45fd('0x20')](_0x45fd('0x6c')),_0x483083=_0x460570['hasComments'],_0xbcd719=_0x460570['subType']?_0x460570[_0x45fd('0xda')]+':'+_0x460570[_0x45fd('0x27')]:_0x460570['type'],_0xed4a92=this[_0x45fd('0xbc')][_0x45fd('0x24')],_0x128ba0=_0x4f641f[_0x45fd('0xef')](_0x14698f(_0xed4a92,_0x45fd('0xc2'))),_0x5336df={'id':_0xf81af5,'type':_0xbcd719,'hasComments':_0x483083,'data':_0x4ec821['data']||null,'originalSuggestionId':_0x4ec821[_0x45fd('0x16')]||null,'attributes':_0x460570['attributes']};this[_0x45fd('0xfd')][_0x45fd('0x13f')](_0x5336df)['then'](_0x3fb536=>{_0x460570[_0x45fd('0x66')]=!0x0,_0x4f641f['remove'](_0x128ba0),_0x3fb536&&_0x3fb536[_0x45fd('0xf6')]&&(this[_0x45fd('0x144')][_0x45fd('0x20')](_0xf81af5)['createdAt']=_0x3fb536['createdAt']);})[_0x45fd('0x13e')](_0x37237c=>{throw _0x4d5f77(_0x45fd('0x118')),this[_0x45fd('0xbc')][_0x45fd('0x159')][_0x45fd('0x4b')]({'isUndoable':!0x1},()=>{_0x460570[_0x45fd('0xe6')]();}),_0x460570[_0x45fd('0x11a')](),this[_0x45fd('0x144')]['delete'](_0x460570['id']),this[_0x45fd('0x67')][_0x45fd('0xee')](_0x460570),_0x37237c;});}return _0x460570;}[_0x45fd('0x122')](_0x189e4f){return this[_0x45fd('0xe4')][_0x45fd('0x15c')](_0x189e4f);}[_0x45fd('0x10c')](_0x52ffec,_0x4b83ec){const _0x31f821=this['editor'][_0x45fd('0x12b')][_0x45fd('0x20')](_0x45fd('0x6c')),_0x3ba9f1=this['getSuggestion'](_0x52ffec);if(this[_0x45fd('0xfd')]&&this[_0x45fd('0xfd')][_0x45fd('0xcf')]){if(_0x3ba9f1[_0x45fd('0x66')]){const _0x7113ba=_0x31f821[_0x45fd('0xef')](_0x14698f(this['editor'][_0x45fd('0x24')],_0x45fd('0xc2')));this[_0x45fd('0xfd')]['updateSuggestion'](_0x52ffec,_0x4b83ec)['then'](()=>{_0x31f821[_0x45fd('0xb0')](_0x7113ba);});}else _0x3ba9f1['on'](_0x45fd('0x9d'),()=>{this[_0x45fd('0x10c')](_0x52ffec,_0x4b83ec);});}}[_0x45fd('0x81')](_0x325f93){if(!this[_0x45fd('0xfd')]||!this['_adapter']['getSuggestion'])throw new _0x4f5e3f(_0x45fd('0x15e'),this);return this[_0x45fd('0xfd')]['getSuggestion'](_0x325f93);}[_0x45fd('0x0')](_0x5a14aa){const {id:_0x1d93b4,type:_0x4ae057,subType:_0x481855,authorId:_0x58b183}=this[_0x45fd('0x138')](_0x5a14aa),_0x3ee611=this[_0x45fd('0x144')]['get'](_0x1d93b4)||this[_0x45fd('0xf0')](_0x4ae057,_0x481855,_0x1d93b4,_0x58b183,{});switch(this['_checkSuggestionCorrectness'](_0x3ee611,_0x4ae057,_0x481855,_0x58b183),this[_0x45fd('0x67')][_0x45fd('0x20')](_0x3ee611)){case _0x45fd('0xd7'):this[_0x45fd('0x81')](_0x1d93b4)[_0x45fd('0x110')](_0xf031d0=>{let _0x1ff3bc=Promise[_0x45fd('0x132')]();_0xf031d0['hasComments']&&(_0x1ff3bc=this['_commentsRepository'][_0x45fd('0x9b')]({'channelId':this[_0x45fd('0xbc')][_0x45fd('0x11')][_0x45fd('0x20')](_0x45fd('0x13b')),'threadId':_0x1d93b4})),_0x1ff3bc['then'](()=>{this[_0x45fd('0x64')](_0xf031d0)['_saved']=!0x0;});}),this['_suggestionState'][_0x45fd('0x5a')](_0x3ee611,_0x45fd('0xa9'));break;case _0x45fd('0x120'):this[_0x45fd('0x10c')](_0x1d93b4,{'state':_0x45fd('0x169')});case _0x45fd('0x7f'):this[_0x45fd('0x67')][_0x45fd('0x5a')](_0x3ee611,_0x45fd('0x13c')),this['fire']('suggestionLoaded',_0x3ee611);break;case'ready':this[_0x45fd('0x29')](_0x45fd('0x86'),_0x3ee611);}return _0x3ee611['addMarkerName'](_0x5a14aa),_0x3ee611;}['_refreshSuggestionsChain'](_0x283eed){const _0x45bb81=Array['from'](_0x283eed),_0x5f199c=_0x45bb81[_0x45fd('0x14')](_0x2b473c=>'attribute'==_0x2b473c['type']);this[_0x45fd('0x79')](_0x5f199c);const _0xbc1a2c=_0x45bb81[_0x45fd('0x14')](_0x10da04=>!_0x10da04[_0x45fd('0xd0')]&&_0x45fd('0x126')!=_0x10da04[_0x45fd('0xda')]),_0x40f0bb=this['getSuggestions']({'skipNotAttached':!0x0})[_0x45fd('0x14')](_0x58803d=>!_0x58803d[_0x45fd('0xd0')]&&_0x45fd('0x126')!=_0x58803d[_0x45fd('0xda')]),_0x3e98e1=_0x40f0bb[_0x45fd('0x14')](_0x2267f1=>!_0x283eed[_0x45fd('0x15c')](_0x2267f1)),_0x383d77=new Map(_0x40f0bb[_0x45fd('0x22')](_0x5b81e5=>[_0x5b81e5,this[_0x45fd('0xb7')][_0x45fd('0x15f')](_0x5b81e5[_0x45fd('0xda')],_0x5b81e5['subType'],_0x45fd('0x44'))])),_0xb37024=new Map(_0x40f0bb[_0x45fd('0x22')](_0x540b41=>[_0x540b41,_0x540b41[_0x45fd('0x17')]()])),_0xf01070=new Set(),_0xd8ea3f=new Set();for(let _0x3f51f1=0x0;_0x3f51f1<_0xbc1a2c[_0x45fd('0x25')];_0x3f51f1++)_0x16334c(_0xbc1a2c[_0x3f51f1],_0xbc1a2c,_0x3f51f1+0x1);for(let _0x158545=0x0;_0x158545<_0xbc1a2c[_0x45fd('0x25')];_0x158545++)_0x16334c(_0xbc1a2c[_0x158545],_0x3e98e1,0x0);const _0x593169=new Set();for(let _0x5e6911=0x0;_0x5e6911<_0xbc1a2c[_0x45fd('0x25')];_0x5e6911++){const _0x43b2eb=_0xbc1a2c[_0x5e6911];!_0xd8ea3f[_0x45fd('0x15c')](_0x43b2eb)&&_0x43b2eb['previous']&&(_0x593169[_0x45fd('0xef')](_0x43b2eb[_0x45fd('0xed')]),_0x43b2eb[_0x45fd('0xed')][_0x45fd('0xdc')]===_0x43b2eb&&(_0x43b2eb['previous']['next']=null),_0x43b2eb[_0x45fd('0xed')]=null),!_0xf01070[_0x45fd('0x15c')](_0x43b2eb)&&_0x43b2eb[_0x45fd('0xdc')]&&(_0x593169[_0x45fd('0xef')](_0x43b2eb[_0x45fd('0xdc')]),_0x43b2eb['next'][_0x45fd('0xed')]===_0x43b2eb&&(_0x43b2eb[_0x45fd('0xdc')][_0x45fd('0xed')]=null),_0x43b2eb[_0x45fd('0xdc')]=null);}function _0x16334c(_0x4b0be6,_0x2eed56,_0x1ba0fd){for(let _0x48e4d7=_0x1ba0fd;_0x48e4d7<_0x2eed56['length'];_0x48e4d7++){const _0x1f1639=_0x5d72c8(_0x4b0be6,_0x2eed56[_0x48e4d7]);_0x1f1639&&(_0x1f1639[0x0][_0x45fd('0xdc')]=_0x1f1639[0x1],_0x1f1639[0x1]['previous']=_0x1f1639[0x0],_0xf01070[_0x45fd('0xef')](_0x1f1639[0x0]),_0xd8ea3f[_0x45fd('0xef')](_0x1f1639[0x1]));}}function _0x5d72c8(_0x3ecd42,_0x43cab6){if(_0x3ecd42[_0x45fd('0xc9')]['id']!==_0x43cab6['author']['id'])return null;const _0x3f9b4b=_0x383d77['get'](_0x3ecd42)(_0x3ecd42,_0x43cab6,_0xb37024[_0x45fd('0x20')](_0x3ecd42),_0xb37024[_0x45fd('0x20')](_0x43cab6));if(!_0x3f9b4b)return null;return _0x383d77['get'](_0x43cab6)(_0x3ecd42,_0x43cab6,_0xb37024['get'](_0x3ecd42),_0xb37024[_0x45fd('0x20')](_0x43cab6))?_0x3f9b4b[0x1]['commentThread']&&_0x3f9b4b[0x1]['commentThread'][_0x45fd('0x25')]?null:_0x3f9b4b:null;}_0x593169[_0x45fd('0x39')]&&this[_0x45fd('0x48')](_0x593169);}['_refreshAttributeSuggestionsChain'](_0x1954be){if(0x0==_0x1954be['length'])return;const _0x4b917a=this['getSuggestions']({'skipNotAttached':!0x0})[_0x45fd('0x14')](_0x409657=>_0x45fd('0x126')==_0x409657[_0x45fd('0xda')]&&_0x409657[_0x45fd('0xd4')]),_0x386902=[],_0x19581a=new Map();for(const _0x177a9b of _0x4b917a){const _0x26590e=_0x59c5b9(_0x177a9b['attributes']);_0x19581a[_0x45fd('0x15c')](_0x26590e)||(_0x19581a['set'](_0x26590e,_0x386902['length']),_0x386902['push']([]));const _0x82d605=_0x19581a['get'](_0x26590e);_0x386902[_0x82d605][_0x45fd('0xd2')](_0x177a9b);}!function(){_0x386902[_0x45fd('0x7d')]((_0x49a19b,_0x51722b)=>{const _0x1a6cf3=_0x49a19b[0x0][_0x45fd('0xf6')],_0xcf893b=_0x51722b[0x0][_0x45fd('0xf6')];return _0x1a6cf3==_0xcf893b?_0x49a19b[0x0][_0x45fd('0x16b')]['groupId']<_0x51722b[0x0]['attributes'][_0x45fd('0x113')]?-0x1:0x1:_0x1a6cf3<_0xcf893b?-0x1:0x1;});for(const _0x578e30 of _0x386902)_0x578e30[_0x45fd('0x7d')]((_0xba8b9f,_0x1c5f8c)=>_0xba8b9f['id']<_0x1c5f8c['id']?-0x1:0x1);}();for(let _0x2b6ec4=0x0;_0x2b6ec4<_0x386902[_0x45fd('0x25')];_0x2b6ec4++){if(0x0==_0x386902[_0x2b6ec4][_0x45fd('0x25')])continue;const _0x16fa7d=[];for(let _0x4ac3cd=_0x2b6ec4+0x1;_0x4ac3cd<_0x386902[_0x45fd('0x25')];_0x4ac3cd++)0x0!=_0x386902[_0x4ac3cd][_0x45fd('0x25')]&&_0x3b2721(_0x386902[_0x2b6ec4],_0x386902[_0x4ac3cd])&&_0x16fa7d[_0x45fd('0xd2')](_0x4ac3cd);for(const _0x23921f of _0x16fa7d)_0x386902[_0x2b6ec4]=_0x386902[_0x2b6ec4][_0x45fd('0x2c')](_0x386902[_0x23921f]),_0x386902[_0x23921f]=[];}for(const _0x164584 of _0x386902)for(let _0x2d89b0=0x0;_0x2d89b0<_0x164584['length'];_0x2d89b0++)_0x164584[_0x2d89b0][_0x45fd('0xdc')]=_0x164584[_0x2d89b0+0x1]||null;for(const _0x23a9fa of _0x386902)for(let _0x438e6c=0x0;_0x438e6c<_0x23a9fa[_0x45fd('0x25')];_0x438e6c++)_0x23a9fa[_0x438e6c][_0x45fd('0xed')]=_0x23a9fa[_0x438e6c-0x1]||null;function _0x3b2721(_0x5f535e,_0x296d08){if(_0x5f535e[0x0][_0x45fd('0xc9')]!==_0x296d08[0x0]['author'])return!0x1;if(!function(_0x16d3c1,_0xd1e30d){if(!_0x16d3c1[_0x45fd('0x85')]&&!_0xd1e30d[_0x45fd('0x85')])return!0x0;if(_0x16d3c1[_0x45fd('0x85')]&&_0xd1e30d[_0x45fd('0x85')])return!0x1;if(_0x16d3c1['hasComments']&&_0xd1e30d[_0x45fd('0xf6')]<_0x16d3c1[_0x45fd('0x141')][_0x45fd('0xac')][_0x45fd('0x20')](0x0)['createdAt'])return!0x0;if(_0xd1e30d[_0x45fd('0x85')]&&_0x16d3c1['createdAt']<_0xd1e30d['commentThread'][_0x45fd('0xac')][_0x45fd('0x20')](0x0)[_0x45fd('0xf6')])return!0x0;return!0x1;}(_0x5f535e[0x0],_0x296d08[0x0]))return!0x1;const _0x311306=_0x1286d7(_0x5f535e[0x0][_0x45fd('0x16b')],'groupId'),_0x429d1b=_0x1286d7(_0x296d08[0x0]['attributes'],_0x45fd('0x113'));if(!_0x4a6831(_0x311306,_0x429d1b))return!0x1;return!!_0x5f535e[_0x45fd('0x171')](_0x58df2a=>_0x296d08['some'](_0x212ba5=>_0x58df2a['getFirstRange']()[_0x45fd('0x7e')](_0x212ba5[_0x45fd('0x17')]())))&&_0x296d08[_0x45fd('0x171')](_0x347286=>_0x5f535e[_0x45fd('0x1e')](_0x5e7f1e=>_0x347286[_0x45fd('0x17')]()[_0x45fd('0x7e')](_0x5e7f1e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4640fb){const _0x267741=Array['from'](_0x4640fb),_0x44743f=this[_0x45fd('0x90')]({'skipNotAttached':!0x0}),_0x89f883=_0x44743f[_0x45fd('0x14')](_0x5a1db8=>!_0x4640fb['has'](_0x5a1db8)),_0x4ad46a=new Map(_0x267741[_0x45fd('0x22')](_0x31a061=>[_0x31a061,this['_suggestionFactory'][_0x45fd('0x15f')](_0x31a061['type'],_0x31a061[_0x45fd('0x27')],_0x45fd('0x131'))])),_0x79b958=new Map(_0x44743f[_0x45fd('0x22')](_0x4ea132=>[_0x4ea132,_0x4ea132[_0x45fd('0x2f')]()]));for(let _0x534077=0x0;_0x534077<_0x267741[_0x45fd('0x25')];_0x534077++){if(_0x5715d0(this,_0x267741[_0x534077],_0x267741,_0x534077+0x1))return!0x0;}for(let _0x41ff47=0x0;_0x41ff47<_0x267741[_0x45fd('0x25')];_0x41ff47++){if(_0x5715d0(this,_0x267741[_0x41ff47],_0x89f883,0x0))return!0x0;}return!0x1;function _0x5715d0(_0x4a3606,_0x591993,_0x53bd71,_0x1522f2){for(let _0x20a133=_0x1522f2;_0x20a133<_0x53bd71[_0x45fd('0x25')];_0x20a133++){const _0x47182c=_0x53bd71[_0x20a133];if(_0x47182c['type']!==_0x591993[_0x45fd('0xda')]||_0x47182c[_0x45fd('0xc9')]['id']!==_0x591993[_0x45fd('0xc9')]['id']||_0x47182c[_0x45fd('0x27')]!==_0x591993[_0x45fd('0x27')])continue;if(!Vt(_0x591993,_0x47182c))continue;if('attribute'==_0x591993[_0x45fd('0xda')]&&_0x591993['data'][_0x45fd('0x173')]!=_0x47182c[_0x45fd('0x163')][_0x45fd('0x173')])continue;if(_0x45fd('0x126')==_0x591993[_0x45fd('0xda')]&&_0x4a3606['_isBlockAttribute'](_0x591993['data']['key']))continue;if(_0x45fd('0x51')==_0x591993[_0x45fd('0xda')]){const _0x1f9f31=_0x4a3606[_0x45fd('0xbc')][_0x45fd('0x159')],_0x4c1751=_0x591993[_0x45fd('0xcb')]();if(_0x4c1751&&(_0x1f9f31[_0x45fd('0x82')][_0x45fd('0x57')](_0x4c1751)||_0x1f9f31[_0x45fd('0x82')][_0x45fd('0x5b')](_0x4c1751)))continue;}const _0x3656f0=_0x4ad46a[_0x45fd('0x20')](_0x591993),_0xc49953=_0x79b958[_0x45fd('0x20')](_0x591993),_0x19c15a=_0x79b958[_0x45fd('0x20')](_0x47182c),_0x260ae9=_0x591993[_0x45fd('0x141')]&&_0x591993[_0x45fd('0x141')][_0x45fd('0x25')],_0x45f48e=_0x47182c[_0x45fd('0x141')]&&_0x47182c[_0x45fd('0x141')][_0x45fd('0x25')];if(!_0x260ae9&&_0x3656f0(_0x19c15a,_0xc49953))return _0x4a3606[_0x45fd('0xe3')](_0x47182c,_0x591993),_0x79b958[_0x45fd('0xee')](_0x591993),!0x0;if(!_0x45f48e&&_0x3656f0(_0xc49953,_0x19c15a))return _0x4a3606[_0x45fd('0xe3')](_0x591993,_0x47182c),_0x79b958[_0x45fd('0xee')](_0x47182c),!0x0;}return!0x1;}}[_0x45fd('0xe3')](_0x252fdb,_0xbc4bcc){if(_0x252fdb['isMultiRange'])for(const _0x161ec1 of _0xbc4bcc['getRanges']())_0x252fdb[_0x45fd('0x168')](_0x161ec1);else{const _0x87a1f5=_0xbc4bcc[_0x45fd('0x17')]()['end'];this['_setSuggestionRange'](_0x252fdb,this[_0x45fd('0xe')][_0x45fd('0x9a')](_0x252fdb['getFirstRange']()['start'],_0x87a1f5));}_0xbc4bcc['removeMarkers']();}[_0x45fd('0x34')](_0xd1b36c,_0x226a50){const _0x4342dc=_0xd1b36c[_0x45fd('0xfc')](_0x45fd('0x135'))||_0xd1b36c[_0x45fd('0xfc')](_0x45fd('0x126'))?_0x45fd('0x172'):_0xd1b36c['toUpperCase']();return _0x14698f(this[_0x45fd('0xbc')][_0x45fd('0x24')],_0x226a50+'_'+_0x4342dc+_0x45fd('0x61'));}[_0x45fd('0xd')](){const _0x4e898a=this[_0x45fd('0xbc')];_0x52f036(this[_0x45fd('0xe')],({left:_0x7760c9,entered:_0x2e65be})=>{const _0x265867=[];for(const _0x5bfed3 of _0x7760c9){const {group:_0x5f5493,type:_0x23dcdb}=this[_0x45fd('0x138')](_0x5bfed3[_0x45fd('0x32')]);if(_0x45fd('0x130')===_0x5f5493){_0x265867['push'](this['_getMarkerAnnouncementText'](_0x23dcdb,'LEAVE'));break;}}for(const _0x4bb1dc of _0x2e65be){const {group:_0x99581f,type:_0x1a3f7a}=this[_0x45fd('0x138')](_0x4bb1dc[_0x45fd('0x32')]);if(_0x45fd('0x130')===_0x99581f){_0x265867[_0x45fd('0xd2')](this['_getMarkerAnnouncementText'](_0x1a3f7a,_0x45fd('0xc7')));break;}}_0x265867['length']&&_0x4e898a['ui']['ariaLiveAnnouncer']['announce']('trackChanges',_0x265867[_0x45fd('0x131')]('\x20'));});}[_0x45fd('0xfa')](_0x383afd){if(null!==this['_recordAttributeSuggestionsFromVersion'])return!0x1;const _0x3942de=this['editor'],_0x2ff54c=_0x3942de[_0x45fd('0x159')]['document'][_0x45fd('0x60')][_0x45fd('0x167')]();if(0x0==_0x2ff54c[_0x45fd('0x25')])return!0x1;const _0x2a7b87=[],_0x2fd5f9=_0x2ff54c[_0x45fd('0x14')](_0x249213=>_0x45fd('0x126')==_0x249213[_0x45fd('0xda')]),_0x551d3e=_0x2ff54c[_0x45fd('0x14')](_0x5eac91=>'insert'==_0x5eac91[_0x45fd('0xda')]&&_0x45fd('0x33')!=_0x5eac91['name']),_0x32f780=_0x2ff54c['filter'](_0x1e0669=>'remove'==_0x1e0669[_0x45fd('0xda')]&&'$text'!=_0x1e0669['name']);for(const _0x3e37ac of _0x2fd5f9)_0x2a7b87[_0x45fd('0xd2')]({'key':_0x3e37ac['attributeKey'],'newValue':_0x3e37ac[_0x45fd('0xec')],'oldValue':_0x3e37ac['attributeOldValue'],'range':_0x353732(_0x3e37ac['range'])});for(const _0x1df0c2 of _0x551d3e){const _0x5410cf=_0x32f780[_0x45fd('0x123')](_0x16c7d0=>_0x16c7d0[_0x45fd('0x108')][_0x45fd('0x7e')](_0x1df0c2[_0x45fd('0x108')]));_0x5410cf&&_0x2a7b87['push']({'key':'$elementName','newValue':_0x1df0c2[_0x45fd('0x32')],'oldValue':_0x5410cf['name'],'range':_0x3942de['model']['createRangeOn'](_0x1df0c2[_0x45fd('0x108')][_0x45fd('0xf3')])});}return 0x0!=_0x2a7b87['length']&&this[_0x45fd('0x11d')](_0x383afd,_0x2a7b87);function _0x353732(_0x25841c){return null==_0x25841c[_0x45fd('0x102')][_0x45fd('0x6f')]&&_0x25841c[_0x45fd('0x102')][_0x45fd('0x92')]==_0x25841c[_0x45fd('0x12d')]['nodeAfter']?Ut(_0x25841c[_0x45fd('0x12d')]['nodeAfter'],_0x3942de[_0x45fd('0x159')]):_0x25841c;}}[_0x45fd('0xa6')](_0xc03481){let _0x5eb711=!0x1;const _0x1aa136=this[_0x45fd('0xbc')][_0x45fd('0x159')][_0x45fd('0xab')][_0x45fd('0x60')][_0x45fd('0x160')]()[_0x45fd('0x14')](_0x204520=>_0x204520[_0x45fd('0x163')][_0x45fd('0x137')]&&_0x204520[_0x45fd('0x32')][_0x45fd('0xfc')](_0x45fd('0x87')));for(const _0x5c2d8a of _0x1aa136){const {subType:_0x125cf7,id:_0xf88fd0}=this[_0x45fd('0x138')](_0x5c2d8a[_0x45fd('0x32')]),_0x2d2175=_0x125cf7[_0x45fd('0x15')]('|')[0x0];for(const _0x5e97c2 of this[_0x45fd('0x90')]({'skipNotAttached':!0x0}))_0x5e97c2['id']!=_0xf88fd0&&'attribute'==_0x5e97c2[_0x45fd('0xda')]&&_0x5e97c2[_0x45fd('0x163')]&&_0x5e97c2[_0x45fd('0x163')][_0x45fd('0x69')]==_0x2d2175&&_0x5e97c2['getFirstRange']()[_0x45fd('0xb4')](_0x5c2d8a['data'][_0x45fd('0x137')])&&(this[_0x45fd('0xae')](_0x5e97c2,_0x5c2d8a[_0x45fd('0x163')][_0x45fd('0x137')],_0xc03481),_0x5eb711=!0x0);}return _0x5eb711;}['_recordAttributeChanges'](_0x33a8aa){if(null!==this[_0x45fd('0x56')])return void _0x33a8aa();const _0x256620=this[_0x45fd('0xbc')];this[_0x45fd('0x56')]=_0x256620['model']['document']['version'],_0x33a8aa();const _0x15c613=new Map();for(const _0x34e691 of _0x256620[_0x45fd('0x159')]['document'][_0x45fd('0x164')][_0x45fd('0x111')](this['_recordAttributeSuggestionsFromVersion']))if([_0x45fd('0xa7'),'addAttribute','removeAttribute',_0x45fd('0x5d')][_0x45fd('0xbf')](_0x34e691[_0x45fd('0xda')])){const _0x451603=_0x34e691[_0x45fd('0x16e')],_0x50cccc=_0x15c613[_0x45fd('0x20')](_0x451603)||[];_0x50cccc[_0x45fd('0xd2')](_0x34e691),_0x15c613[_0x45fd('0x5a')](_0x451603,_0x50cccc);}this[_0x45fd('0x56')]=null;for(const [_0x45a541,_0x3a5d1c]of _0x15c613){const _0x2c0d48=_0x1d4647();_0x256620['model'][_0x45fd('0x4b')](_0x45a541,_0x8cc31a=>{const _0x28be39=[];for(const _0x30732c of _0x3a5d1c){let _0xa51a7e,_0x4b518e,_0x50bf03,_0x90209d;if(_0x45fd('0xa7')==_0x30732c[_0x45fd('0xda')]){const _0x89ef35=_0x30732c;_0xa51a7e=Ut(_0x89ef35[_0x45fd('0x108')]['nodeAfter'],_0x256620['model']),_0x4b518e=_0x45fd('0x13a'),_0x50bf03=_0x89ef35[_0x45fd('0x9e')],_0x90209d=_0x89ef35[_0x45fd('0x40')];}else{const _0x50c43f=_0x30732c,_0x208b57=this[_0x45fd('0x122')](_0x50c43f['key']),_0x42162a=this[_0x45fd('0xcd')][_0x45fd('0x15c')](_0x50c43f['key']);if(!_0x208b57&&!_0x42162a)continue;_0xa51a7e=_0x208b57?Ut(_0x50c43f[_0x45fd('0x4d')][_0x45fd('0x12d')][_0x45fd('0xf3')],_0x256620[_0x45fd('0x159')]):_0x50c43f[_0x45fd('0x4d')],_0x4b518e=_0x50c43f[_0x45fd('0x69')],_0x50bf03=_0x45fd('0x4')==_0x30732c[_0x45fd('0xda')]?void 0x0:_0x50c43f['newValue'],_0x90209d=_0x50c43f[_0x45fd('0x173')];}this[_0x45fd('0x16a')](_0xa51a7e,_0x4b518e,_0x90209d,_0x50bf03,{'groupId':_0x2c0d48}),_0x28be39[_0x45fd('0xd2')]({'range':_0xa51a7e,'key':_0x4b518e,'newValue':_0x50bf03,'oldValue':_0x90209d});}this['_reduceExistingSuggestions'](_0x8cc31a,_0x28be39);});}}['_reduceExistingSuggestions'](_0x3edc71,_0x356bb3){if(0x0==_0x356bb3[_0x45fd('0x25')])return!0x1;let _0x17ccf0=!0x1;for(const _0x445b36 of _0x356bb3){const _0x4a8803=this[_0x45fd('0xfe')](_0x445b36['range'],_0x45fd('0x126'))[_0x45fd('0x14')](_0x3286a6=>!_0x3286a6[_0x45fd('0x105')][_0x45fd('0xaa')])[_0x45fd('0x22')](_0x354155=>_0x354155['suggestion']),_0x18480b=_0x59c5b9({'newValue':_0x445b36[_0x45fd('0x2a')]});_0x4a8803['filter'](_0x2d1633=>{const [_0x1dadc8,_0x32e0c6]=_0x2d1633[_0x45fd('0x27')]['split']('|');return _0x1dadc8==_0x445b36[_0x45fd('0x69')]&&_0x32e0c6!=_0x18480b;})[_0x45fd('0x3f')](_0x47e345=>{this['_reduceSuggestionAttributeRange'](_0x47e345,_0x445b36[_0x45fd('0x4d')],_0x3edc71),_0x17ccf0=!0x0;});}return _0x17ccf0;}[_0x45fd('0xae')](_0x4c57f8,_0x24fa4f,_0x4fe5c7){const _0x51a1e2=_0x4c57f8[_0x45fd('0x17')]()[_0x45fd('0x149')](_0x24fa4f);0x0!==_0x51a1e2[_0x45fd('0x25')]?0x1!==_0x51a1e2['length']?this[_0x45fd('0x14b')](_0x4c57f8,_0x24fa4f[_0x45fd('0x12d')],_0x24fa4f['end']):this[_0x45fd('0xdf')](_0x4c57f8,_0x51a1e2[0x0]):_0x4fe5c7[_0x45fd('0x13d')](_0x4c57f8[_0x45fd('0x116')]());}}class $t{constructor(_0xf6b416){this[_0x45fd('0x100')]=_0xf6b416,this[_0x45fd('0xe')]=_0xf6b416['model'],this[_0x45fd('0xe9')]=new Map(),this[_0x45fd('0xdb')]=new Map(),this['_registerDefaultCallbacks']();}[_0x45fd('0x3b')](_0x2ac999,_0x5e3102,_0x2b9518,_0x23510e,_0x6cc50f,_0x5f29d9){return new _0x1de743(this['_model'],{'type':_0x2ac999,'subType':_0x5e3102,'id':_0x2b9518,'author':_0x23510e,'creator':_0x23510e,'attributes':_0x6cc50f,'onAttributesChange':_0x5f29d9,'onAccept':(..._0x1e761a)=>this[_0x45fd('0x15f')](_0x2ac999,_0x5e3102,'accept')(..._0x1e761a),'onDiscard':(..._0x4154a8)=>this[_0x45fd('0x15f')](_0x2ac999,_0x5e3102,'discard')(..._0x4154a8)});}[_0x45fd('0xf8')](_0x5807f3,_0x56e632,_0x4e472e,_0x544916){const _0x3f37c3=_0x5807f3+':'+_0x56e632+':'+_0x4e472e;this[_0x45fd('0xe9')][_0x45fd('0x5a')](_0x3f37c3,_0x544916);}[_0x45fd('0x15f')](_0x368f6d,_0x6533a1,_0x40c542){const _0x5dd250=_0x368f6d+':'+_0x6533a1+':'+_0x40c542;return this['_customCallbacks']['get'](_0x5dd250)||this[_0x45fd('0xdb')][_0x45fd('0x20')](_0x368f6d+':'+_0x40c542);}[_0x45fd('0x104')](){const _0x17e763=()=>!0x1,_0x16dea8=_0x3fd29e=>{_0x3fd29e[_0x45fd('0x7d')]((_0x28794a,_0x91b46c)=>_0x28794a['start'][_0x45fd('0x165')](_0x91b46c[_0x45fd('0x12d')])?0x1:-0x1),this['_model']['change'](_0x13bbf6=>{for(const _0x3849f9 of _0x3fd29e){let _0x3afcb1;_0x3afcb1=_0x3849f9['end'][_0x45fd('0xbb')]&&_0x3849f9['end']['parent']==_0x3849f9[_0x45fd('0x12d')][_0x45fd('0xf3')]?_0x13bbf6['createSelection'](_0x3849f9[_0x45fd('0x12d')][_0x45fd('0xf3')],'on'):_0x13bbf6[_0x45fd('0x1f')](_0x3849f9),this[_0x45fd('0xe')]['deleteContent'](_0x3afcb1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1715eb=(_0x5b9bc9,_0x3b8694)=>{_0x3b8694&&this[_0x45fd('0xe')]['change'](_0x19f876=>{const {commandName:_0x457bf5,commandParams:_0x5dc915=[]}=_0x3b8694,_0x228e28=_0x5b9bc9[_0x45fd('0x22')](_0x1eb7aa=>(Tt(_0x1eb7aa)&&(_0x1eb7aa=this[_0x45fd('0xe')]['createRange'](_0x1eb7aa[_0x45fd('0x102')])),_0x1eb7aa))[_0x45fd('0x14')](_0x96f869=>'$graveyard'!==_0x96f869[_0x45fd('0x115')][_0x45fd('0xba')]);if(_0x228e28[_0x45fd('0x25')]<0x1)return;const _0x3771de=Array[_0x45fd('0x19')](this[_0x45fd('0xe')][_0x45fd('0xab')][_0x45fd('0x91')][_0x45fd('0x2f')]())[_0x45fd('0x22')](_0x43e5a4=>_0x1586d7[_0x45fd('0x121')](_0x43e5a4));_0x19f876[_0x45fd('0x125')](_0x228e28);for(const _0x3df302 of this[_0x45fd('0x100')][_0x45fd('0x16f')][_0x45fd('0x16f')]())_0x3df302[_0x45fd('0xa0')]();_0x5dc915['push']({'forceDefaultExecution':!0x0}),this[_0x45fd('0x100')][_0x45fd('0x37')](_0x457bf5,..._0x5dc915);const _0x34c039=_0x3771de['filter'](_0x38ed95=>_0x45fd('0x6b')!=_0x38ed95[_0x45fd('0x115')][_0x45fd('0xba')]);_0x34c039[_0x45fd('0x25')]>0x0&&_0x19f876[_0x45fd('0x125')](_0x34c039);for(const _0x75d566 of _0x3771de)_0x75d566['detach']();});},_0x192c9e=(_0x8ce453,_0x427b25)=>0x1==_0x8ce453[_0x45fd('0x25')]&&0x1==_0x427b25[_0x45fd('0x25')]&&_0x8ce453[0x0]['end'][_0x45fd('0x7e')](_0x427b25[0x0][_0x45fd('0x12d')]),_0x4d2e0c=(_0x198181,_0x5b45d9,_0x242f8c,_0x581f00)=>Ot(_0x198181,_0x5b45d9,_0x242f8c,_0x581f00,this[_0x45fd('0xe')])?[_0x198181,_0x5b45d9]:Ot(_0x5b45d9,_0x198181,_0x581f00,_0x242f8c,this[_0x45fd('0xe')])?[_0x5b45d9,_0x198181]:null;this[_0x45fd('0xdb')][_0x45fd('0x5a')](_0x45fd('0xb8'),_0x17e763),this[_0x45fd('0xdb')][_0x45fd('0x5a')]('insertion:discard',_0x16dea8),this[_0x45fd('0xdb')][_0x45fd('0x5a')](_0x45fd('0x7b'),_0x192c9e),this[_0x45fd('0xdb')]['set'](_0x45fd('0x14a'),_0x4d2e0c),this[_0x45fd('0xdb')][_0x45fd('0x5a')](_0x45fd('0x114'),_0x16dea8),this['_defaultCallbacks'][_0x45fd('0x5a')](_0x45fd('0x145'),_0x17e763),this[_0x45fd('0xdb')][_0x45fd('0x5a')]('deletion:join',_0x192c9e),this[_0x45fd('0xdb')][_0x45fd('0x5a')](_0x45fd('0xb5'),_0x4d2e0c),this['_defaultCallbacks'][_0x45fd('0x5a')](_0x45fd('0x12f'),_0x1715eb),this[_0x45fd('0xdb')]['set']('formatInline:discard',_0x17e763),this[_0x45fd('0xdb')][_0x45fd('0x5a')](_0x45fd('0x4c'),_0x192c9e),this['_defaultCallbacks']['set'](_0x45fd('0xf7'),_0x17e763),this['_defaultCallbacks'][_0x45fd('0x5a')]('formatBlock:accept',_0x1715eb),this[_0x45fd('0xdb')][_0x45fd('0x5a')]('formatBlock:discard',_0x17e763),this[_0x45fd('0xdb')][_0x45fd('0x5a')](_0x45fd('0x3'),_0x192c9e),this[_0x45fd('0xdb')][_0x45fd('0x5a')](_0x45fd('0x15d'),_0x17e763),this[_0x45fd('0xdb')][_0x45fd('0x5a')](_0x45fd('0x151'),_0x17e763),this[_0x45fd('0xdb')]['set'](_0x45fd('0x14c'),(_0x5941eb,_0x290939)=>{if(!_0x290939)return;const _0x2fda40=this[_0x45fd('0x100')][_0x45fd('0x12b')]['get'](p);this[_0x45fd('0xe')]['change'](_0x3a0afc=>{if(_0x45fd('0x13a')==_0x290939[_0x45fd('0x69')])for(const _0x34c68b of _0x5941eb){const _0xe1f34b=_0x34c68b[_0x45fd('0x12d')]['nodeAfter'],_0x1acd4a=_0x290939[_0x45fd('0x173')];_0x3a0afc['rename'](_0xe1f34b,_0x1acd4a);}else{if(_0x2fda40['_isBlockAttribute'](_0x290939[_0x45fd('0x69')]))for(const _0x561409 of _0x5941eb)void 0x0!==_0x290939[_0x45fd('0x173')]?_0x3a0afc[_0x45fd('0x53')](_0x290939['key'],_0x290939[_0x45fd('0x173')],_0x561409['start'][_0x45fd('0xf3')]):_0x3a0afc['removeAttribute'](_0x290939[_0x45fd('0x69')],_0x561409[_0x45fd('0x12d')][_0x45fd('0xf3')]);else for(const _0x5bdbc5 of _0x5941eb)_0x290939[_0x45fd('0x173')]?_0x3a0afc[_0x45fd('0x53')](_0x290939[_0x45fd('0x69')],_0x290939[_0x45fd('0x173')],_0x5bdbc5):_0x3a0afc[_0x45fd('0x4')](_0x290939[_0x45fd('0x69')],_0x5bdbc5);}});}),this[_0x45fd('0xdb')][_0x45fd('0x5a')]('attribute:join',_0x192c9e);}}function Bt(_0x258053,_0x16efe8,_0x1e8813){for(const _0x43ee26 of _0x16efe8[_0x45fd('0x92')][_0x45fd('0x76')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x43ee26[_0x45fd('0x115')]==_0x43ee26)return!0x1;if(!_0x1e8813[_0x45fd('0xcc')](_0x43ee26))return!0x1;if(_0x258053[_0x45fd('0x57')](_0x43ee26)||_0x258053[_0x45fd('0x5b')](_0x43ee26))return!0x0;}return!0x1;}function Tt(_0x4bff3a){return _0x4bff3a['end']['parent']==_0x4bff3a['start'][_0x45fd('0xf3')]&&_0x4bff3a['end'][_0x45fd('0x16c')];}function xt(_0x42265c,_0x199fa9,_0x380c3c,_0x1c5634){const _0x1fc129=_0x234229=>!_0x234229[_0x45fd('0x80')]['is'](_0x45fd('0x4f'))&&!_0x1c5634[_0x45fd('0x57')](_0x234229['item']),_0x11accb=_0x42265c[_0x45fd('0x12d')][_0x45fd('0x94')](_0x1fc129),_0x42cee9=_0x42265c[_0x45fd('0x102')][_0x45fd('0x94')](_0x1fc129,{'direction':'backward'});return(!_0x42265c[_0x45fd('0x12d')]['isEqual'](_0x11accb)||!_0x42265c[_0x45fd('0x102')][_0x45fd('0x7e')](_0x42cee9))&&(_0x11accb[_0x45fd('0x165')](_0x42cee9)?_0x380c3c['updateMarker'](_0x199fa9,{'range':_0x380c3c[_0x45fd('0x9a')](_0x11accb,_0x42cee9)}):_0x380c3c[_0x45fd('0x13d')](_0x199fa9),!0x0);}function Et(_0xcfe37c){return _0x59c5b9(_0xcfe37c);}function Rt(_0x1f3a89){const _0x2f3830=_0x1f3a89[_0x45fd('0x12d')][_0x45fd('0xf3')];return _0x2f3830&&_0x2f3830['is'](_0x45fd('0xe0'));}function Ut(_0x1c1a14,_0x3d48c7){const _0x272bc7=_0x3d48c7['schema'][_0x45fd('0x57')](_0x1c1a14)||_0x3d48c7[_0x45fd('0x82')][_0x45fd('0x166')](_0x1c1a14);return _0x3d48c7[_0x45fd('0x9a')](_0x3d48c7[_0x45fd('0x65')](_0x1c1a14,_0x45fd('0xa3')),_0x272bc7?_0x3d48c7[_0x45fd('0x10b')](_0x1c1a14):_0x3d48c7['createPositionAt'](_0x1c1a14,_0x45fd('0x102')));}function Ot(_0x511b52,_0x18a986,_0x30f209,_0x1d73b8,_0x1eaa44){if(!Vt(_0x511b52,_0x18a986))return!0x1;if(_0x30f209[_0x45fd('0x102')][_0x45fd('0x7e')](_0x1d73b8['start']))return!0x0;if(_0x511b52[_0x45fd('0xda')]!=_0x18a986[_0x45fd('0xda')])return!0x1;if(!_0x30f209[_0x45fd('0x102')][_0x45fd('0x155')](_0x1d73b8[_0x45fd('0x12d')]))return!0x1;const _0x242f02=_0x1eaa44[_0x45fd('0x9a')](_0x30f209[_0x45fd('0x102')],_0x1d73b8[_0x45fd('0x12d')])[_0x45fd('0xe5')]();for(const _0x94a6a1 of _0x242f02)if(['elementStart','elementEnd']['includes'](_0x94a6a1['type'])&&_0x1eaa44[_0x45fd('0x82')][_0x45fd('0x5b')](_0x94a6a1[_0x45fd('0x80')]))return!0x1;return!0x0;}function Vt(_0x4ef9a2,_0x546c28){return!(!_0x4ef9a2[_0x45fd('0xd4')]||!_0x546c28['_isDataLoaded'])&&_0x4a6831(_0x4ef9a2[_0x45fd('0x16b')],_0x546c28[_0x45fd('0x16b')]);}function Gt(_0x384500,_0x8fb9a6){const _0x479b33=Ft(_0x384500[_0x45fd('0x16b')]),_0x588476=Ft(_0x8fb9a6);if(!_0x384500[_0x45fd('0xd4')])return!0x1;for(const _0x4b5b6b of Object[_0x45fd('0x97')](_0x588476))if(!_0x4a6831(_0x479b33[_0x4b5b6b],_0x588476[_0x4b5b6b]))return!0x1;return!0x0;}function Ft(_0x48cfad){const _0xcff98e=Object[_0x45fd('0x133')]({},_0x48cfad);return delete _0xcff98e[_0x45fd('0x1d')],delete _0xcff98e['tablePasteChainId'],_0xcff98e;}function Pt(_0x427e31){return _0x45fd('0x126')==_0x427e31['type']?_0x427e31[_0x45fd('0x27')]['split']('|')[0x0]:null;}
|
|
23
|
+
const _0x4e67=['get','getAttribute','_registerDefaultCallbacks','markers','commandName','addUser','_initAriaMarkerChangeAnnouncements','getShiftedBy','_refreshAttributeSuggestionsChain','deleteContent','upcast','always','TrackChangesEditing','multi','_joinWithAdjacentSuggestions','isBlock','insertion:','stopListening','external:','formatInline:discard','isLimit','change:_saved','getChanges','clone','_checkSuggestionCorrectness','set','originalSuggestionId','applyOperation','pluginName','author','track-changes-user-not-found','formatBlock:discard','suggestion-type','hasSuggestion','editor','_splitMarkerName','from','enableCommand','oldName','containsRange','data-suggestion','removeClass','trackChanges.trackFormatChanges','values','Users','buildSuggestion','howMany','skipNestingCheck','isAfter','getUser','trackChangesCommand','execute','acceptSuggestion','attribute:accept','item','push','substring','chain','newName','registerPostFixer','formatGroupId','getSuggestionCallback','_descriptionFactory','catch','locale','removed','size','adapter','addSuggestionData','previous','deletion:discard','formatBlock:accept','formatBlock:join','deletion:join','attributeKey','suggestion:','activeMarkers','batch','default','_processAttributeSuggestions','fire','history','map','head','authorName','version','widget','containsRangeInObject','conversion','elementToElement','splitPosition','addHighlight','low','ENTER','high','find','_reduceSuggestionAttributeRange','markMultiRangeDeletion','containsItem','markDeletion','createPositionBefore','deletion:','formatInline:join','attribute','removeAttribute','sort','clear','_getAuthorFromId','refresh','_registerInlineAttribute','filter','attributeNewValue','_commentsRepository','join','getCustomProperty','@external','startsWith','insertion:join','deletion:accept','ck-suggestion-marker-formatInline','acceptAllSuggestions','addCommentThread','position','createdAt','init','_suggestions','_suggestionFactory','mapper','split','deletion:chain','oldValue','addMarkerName','end','updateSuggestion','commands','markerToData','markInlineFormat','normal','moveTargetPosition','isArray','_findSuggestions','nodeAfter','change','createElement','includes','_enabledCommands','markAttributeChange','delete','config','setAttribute','isIntersectingWithRange','FORMATTING','name','isInContent','insertion:discard','keys','getFirstMarker','accept','multipleBlocks','deletion','enableReadOnlyMode','range','track-changes-command-not-found','data','authoredAt','markInsertion','editingDowncast','schema','_reduceExistingSuggestions','formatInline:','comments','concat','assign','listenTo','getNearestSelectionRange','_editor','$text','_registerBlockAttribute','fromCharCode','consumable','removeMarker:suggestion:attribute','isObject','groupId','getMultiRangeId','update:suggestion','define','isNextTo','getRanges','dataDowncast','open','_saved','markBlockFormat','Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.','fetchCommentThread','$textProxy','getLastMatchingPosition','getIntersection','isRemovable','createPositionAfter','getSuggestions','elementEnd','formatInline','_suggestionState','addMarker','oldRange','isUndo','ck-suggestion-marker','add','subType','_getSuggestionData','attributes','addMarker:suggestion:attribute','$graveyard','options','isLocal','insertContent','discardSuggestion','splice','isDocumentOperation','ck-suggestion-marker--active','meta','removeMarker:suggestion:formatBlock','isCollapsed','$marker','collaboration.channelId','insertion','_isForcedDefaultExecutionBlock','removeMarker','discard','consume','unbindElementFromMarkerName','for','createRange','ready','_rangeIsInLocalUserInsertion','newValue','targetPosition','forward','_updateSuggestionData','insert','_setSuggestionData','suggestion','_createSuggestion','stop','trackChanges','document','type','never','isOwn','_recordAttributeSuggestionsFromVersion','_customCallbacks','addClass','createRangeIn','_setSuggestionRange','isAtEnd','_getExternalAuthor','showSuggestionHighlights','hasComments','enqueueChange','_isDataLoaded','writer','announce','ck-suggestion-marker-','lowest','LEAVE','rejected','removeMarkers','addSuggestion','forEach','remove','containerElement','updateMarker','getCommentThread','element','attribute:','_defaultCallbacks','changeAttribute','markerNameToElements','isEqual','highest','getDifference','acceptSelectedSuggestions','PendingActions','group','ariaLiveAnnouncer','_recordAttributeChanges','attribute:join','getOperations','_isBlockAttribute','_inlineAttributeKeys','key','addMarker:suggestion:formatBlock','reconvertMarker','plugins','_joinSuggestions','marker-count','move','model','creator','fromRange','_removeSuggestion','newRange','discardAllSuggestions','after','suggestionUnloaded','unbind','every','next','commentThread','formatBlock:','differ','parent','attribute:discard','notReady','value','nodeBefore','change:data','detach','length','_model','isAtStart','start','forceDefaultExecution','_cutOutSuggestionMarker','containsPosition','rename','_getMarkerAnnouncementText','trackChanges.mergeNestedSuggestions','markerToHighlight','formatBlock','formatInline:accept','markerName','_addThreadToSuggestion','elementStart','PENDING_ACTION_SUGGESTION','documentSelection','_breakSuggestionMarker','insertion:accept','dataReady','CommentsRepository','rootName','has','$elementName','_refreshSuggestionsChain','tablePasteChainId','substr','isIntersecting','isBefore','dataToMarker','addMarker:suggestion','setTo','registerCustomCallback','markerReady','some','_mergeNestedSuggestions','root','_handleNewSuggestionMarker','_processAttributeChanges','suggestionChanged','createPositionAt','_enableDefaultAttributesIntegration','isMultiRange','track-changes-suggestion-not-found','_adapter','getSuggestion','createSelection','toViewElement','ck-suggestion-marker-formatBlock','addComment','isInsideObject','discardSelectedSuggestions','formatInline:chain','setSelection','backward','track-changes-adapter-already-set','getAncestors','toJSON','getAllAdjacentSuggestions','removeComment','selection','track-changes-suggestion-data-mismatch','_addSuggestionMarker','_blockAttributeKeys','_trackFormatChanges','_onDiscard','addRange','getContainedElement','then','change:activeMarkers','getFirstRange'];(function(_0x5282fa,_0x4e671f){const _0x3da7f8=function(_0x415c98){while(--_0x415c98){_0x5282fa['push'](_0x5282fa['shift']());}};_0x3da7f8(++_0x4e671f);}(_0x4e67,0x1be));const _0x3da7=function(_0x5282fa,_0x4e671f){_0x5282fa=_0x5282fa-0x0;let _0x3da7f8=_0x4e67[_0x5282fa];return _0x3da7f8;};import{Plugin as _0x2e26ef,PendingActions as _0x1ac119}from'ckeditor5/src/core.js';import{LiveRange as _0x9900e8}from'ckeditor5/src/engine.js';import{CKEditorError as _0x25c9d9,uid as _0x371e7c,priorities as _0x3169b2,logWarning as _0x43bb45}from'ckeditor5/src/utils.js';import{toWidget as _0x290caf}from'ckeditor5/src/widget.js';import{Users as _0x2341a4,hashObject as _0x5d1574,surroundingMarkersDetector as _0x5ac87a}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x31345e from'./commands/trackchangescommand.js';import _0x3a9e24 from'./commands/acceptsuggestioncommand.js';import _0x32d6d1 from'./commands/discardsuggestioncommand.js';import _0x268e56 from'./commands/executeonallsuggestionscommand.js';import _0x6435e7 from'./commands/executeonselectedsuggestionscommand.js';import _0x39434b from'./suggestion.js';import _0x3a00c0 from'./suggestiondescriptionfactory.js';import _0x35a90a from'./integrations/aiassistant.js';import _0x279c6a from'./integrations/alignment.js';import _0x53fd55 from'./integrations/basicstyles.js';import _0x3c84f7 from'./integrations/blockquote.js';import _0x162d15 from'./integrations/ckbox.js';import _0x325b0b from'./integrations/codeblock.js';import _0x5b3446 from'./integrations/comments.js';import _0x4e8c19 from'./integrations/deletecommand.js';import _0xc61bd5 from'./integrations/documentlist.js';import _0x107b76 from'./integrations/documentlistproperties.js';import _0x4bcfaa from'./integrations/entercommand.js';import _0x4dc761 from'./integrations/findandreplace.js';import _0x506344 from'./integrations/font.js';import _0x271417 from'./integrations/formatpainter.js';import _0x3735c3 from'./integrations/heading.js';import _0x4eda59 from'./integrations/highlight.js';import _0x529aed from'./integrations/horizontalline.js';import _0x534f10 from'./integrations/htmlembed.js';import _0x42c71d from'./integrations/image.js';import _0x56ce95 from'./integrations/imagereplace.js';import _0x4a8c9e from'./integrations/imagestyle.js';import _0x51da1d from'./integrations/importword.js';import _0x3734d9 from'./integrations/indent.js';import _0x5de890 from'./integrations/inputcommand.js';import _0xf638ca from'./integrations/link.js';import _0x50c678 from'./integrations/list.js';import _0x370d47 from'./integrations/listproperties.js';import _0x2af888 from'./integrations/mediaembed.js';import _0x11f3ea from'./integrations/mention.js';import _0x1f8161 from'./integrations/pagebreak.js';import _0x2af7ed from'./integrations/paragraph.js';import _0x4a1cc7 from'./integrations/removeformat.js';import _0x7f6d6f from'./integrations/restrictededitingmode.js';import _0x5082b2 from'./integrations/shiftentercommand.js';import _0x3a97d2 from'./integrations/standardeditingmode.js';import _0x1e198d from'./integrations/style.js';import _0x2005fe from'./integrations/table.js';import _0x18c654 from'./integrations/tablemergesplit.js';import _0xc5e8ec from'./integrations/tableheadings.js';import _0x5546e8 from'./integrations/tableclipboard.js';import _0x8c032d from'./integrations/tablecolumnresize.js';import _0x54cef8 from'./integrations/template.js';import _0xe06a63 from'./integrations/tableofcontents.js';import _0x113d66 from'./integrations/title.js';import _0x4823e5 from'./integrations/undo.js';import _0x578a08 from'./integrations/tablecaption.js';import _0x33fc6a from'./integrations/tableproperties.js';import{getTranslation as _0x190d68}from'./utils/common-translations.js';import{isEqual as _0x46524a,omit as _0x32eebb}from'lodash-es';export const renameAttributeKey=_0x3da7('0x11e');export default class p extends _0x2e26ef{static get['requires'](){return[_0x3da7('0x11b'),_0x2341a4,_0x1ac119,_0x35a90a,_0x279c6a,_0x53fd55,_0x3c84f7,_0x162d15,_0x325b0b,_0x5b3446,_0x4e8c19,_0xc61bd5,_0x107b76,_0x4bcfaa,_0x4dc761,_0x506344,_0x271417,_0x3735c3,_0x4eda59,_0x529aed,_0x534f10,_0x42c71d,_0x4a8c9e,_0x56ce95,_0x51da1d,_0x3734d9,_0x5de890,_0xf638ca,_0x50c678,_0x370d47,_0x2af888,_0x11f3ea,_0x1f8161,_0x2af7ed,_0x4a1cc7,_0x7f6d6f,_0x5082b2,_0x3a97d2,_0x1e198d,_0x2005fe,_0x18c654,_0xc5e8ec,_0x578a08,_0x5546e8,_0x8c032d,_0xe06a63,_0x33fc6a,_0x54cef8,_0x113d66,_0x4823e5];}static get[_0x3da7('0x16a')](){return _0x3da7('0x15a');}constructor(_0x2d8ac0){function _0x656bb9(_0x350925){return _0x350925[_0x3da7('0x1a')](_0x47e4f1=>String[_0x3da7('0x7a')](_0x47e4f1))[_0x3da7('0x39')]('');}super(_0x2d8ac0),this[_0x3da7('0xc1')]=null,this[_0x3da7('0x167')](_0x3da7('0x14'),[]),this['on'](_0x3da7('0x14c'),(_0x5cc13a,_0x131704,_0x2120f2,_0x13c79f)=>{this[_0x3da7('0x107')]['change'](()=>{for(const _0xa9107e of[..._0x13c79f,..._0x2120f2])this[_0x3da7('0x107')][_0x3da7('0x151')][_0x3da7('0x11d')](_0xa9107e)&&_0x2d8ac0['editing'][_0x3da7('0xec')](_0xa9107e);});}),this[_0x3da7('0x6')]=new _0x3a00c0(this['editor'][_0x3da7('0xf1')][_0x3da7('0x6f')],this[_0x3da7('0x170')][_0x3da7('0x8')]),this[_0x3da7('0x133')]=null,this[_0x3da7('0x46')]=new $t(this[_0x3da7('0x170')]),this[_0x3da7('0x45')]=new Map(),this[_0x3da7('0x38')]=_0x2d8ac0[_0x3da7('0xed')][_0x3da7('0x14e')](_0x3da7('0x11b')),this['_enabledCommands']=new Set(),this['_model']=this[_0x3da7('0x170')]['model'],this['_suggestionState']=new WeakMap(),this[_0x3da7('0xaa')]=!0x1,this[_0x3da7('0x146')]=new Set(['$elementName']),this['_inlineAttributeKeys']=new Set(),_0x2d8ac0[_0x3da7('0x5c')][_0x3da7('0x81')](_0x3da7('0x178'),'default'),this[_0x3da7('0x147')]=_0x2d8ac0[_0x3da7('0x5c')]['get']('trackChanges.trackFormatChanges'),_0x2d8ac0[_0x3da7('0x5c')]['define'](_0x3da7('0x10f'),!0x0),this['_mergeNestedSuggestions']=_0x2d8ac0['config'][_0x3da7('0x14e')](_0x3da7('0x10f')),this[_0x3da7('0x180')]=new _0x31345e(_0x2d8ac0,this[_0x3da7('0x59')]),this[_0x3da7('0x154')](),this[_0x656bb9([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x656bb9([0x34,0x30,0x34,0x36,0x32,0x34,0x33,0x36]);}[_0x3da7('0x44')](){const _0x18708c=this[_0x3da7('0x170')],_0x459806=(_0x5f4c03,_0x110790)=>{if(_0x3da7('0x2f')!=_0x5f4c03)return _0x3da7('0xce')+_0x5f4c03;const _0x284539=_0x110790['split']('|')[0x0];return this[_0x3da7('0xe8')](_0x284539)?_0x3da7('0x137'):_0x3da7('0x3f');};_0x18708c[_0x3da7('0x20')][_0x3da7('0xaf')](_0x3da7('0x6e'))[_0x3da7('0x110')]({'model':_0x3da7('0xb9'),'view':_0x123a81=>{const {id:_0x397740,type:_0x3491de,subType:_0x35e2ef}=this[_0x3da7('0x171')](_0x123a81[_0x3da7('0x113')]),_0x874bc8=[_0x3da7('0x96'),_0x459806(_0x3491de,_0x35e2ef)];let _0x567ab1=0xbb8;return this[_0x3da7('0x14')][_0x3da7('0x58')](_0x123a81[_0x3da7('0x113')])&&(_0x874bc8[_0x3da7('0x185')](_0x3da7('0xa3')),_0x567ab1=0xbc2),_0x3da7('0x67')==_0x3491de&&(_0x567ab1+=0x5),{'classes':_0x874bc8,'attributes':{'data-suggestion':_0x397740},'priority':_0x567ab1};}}),_0x18708c['conversion']['for'](_0x3da7('0x84'))[_0x3da7('0x97')](_0xa3077=>{_0xa3077['on'](_0x3da7('0x125'),(_0xbc6523,_0x45a54f,_0x2131ba)=>{if(!_0x2131ba[_0x3da7('0x9d')][_0x3da7('0xc8')])return;const _0x20a73a=_0x45a54f['item'];if(!_0x20a73a)return;const _0x27f1fd=_0x2131ba['mapper'][_0x3da7('0x136')](_0x20a73a);_0x18708c[_0x3da7('0xf1')][_0x3da7('0x6f')][_0x3da7('0x7d')](_0x20a73a)&&_0x27f1fd&&!_0x27f1fd[_0x3da7('0x3a')](_0x3da7('0x1e'))&&_0x27f1fd['is'](_0x3da7('0xd6'))&&_0x290caf(_0x27f1fd,_0x2131ba[_0x3da7('0xcc')]);},{'priority':_0x3da7('0x26')});}),_0x18708c[_0x3da7('0x20')]['for']('dataDowncast')['markerToHighlight']({'model':_0x3da7('0xb9'),'view':(_0x3f2ea8,_0x55fcb5)=>{if(!_0x55fcb5[_0x3da7('0x9d')][_0x3da7('0xc8')])return null;const {type:_0x449a52,subType:_0x1c7979}=this['_splitMarkerName'](_0x3f2ea8[_0x3da7('0x113')]);return{'classes':[_0x3da7('0x96'),_0x459806(_0x449a52,_0x1c7979)],'priority':0xbb8};}});const _0x4e5942=({showActiveMarkers:_0x3b59b3=!0x0,isAttributeSuggestion:_0x163b76=!0x1}={})=>(_0x2df1bb,_0xe44748,_0x4eb541)=>{if(!_0xe44748[_0x3da7('0x184')])return;const {id:_0x4c88ef}=this['_splitMarkerName'](_0xe44748[_0x3da7('0x113')]);if(_0x163b76){const _0x5a1d01=Pt(this[_0x3da7('0x45')][_0x3da7('0x14e')](_0x4c88ef));if(!this[_0x3da7('0xe8')](_0x5a1d01))return;}if(_0xe44748[_0x3da7('0x184')]['is'](_0x3da7('0x143')))return void _0x4eb541['consumable'][_0x3da7('0xad')](_0xe44748[_0x3da7('0x184')],_0x2df1bb[_0x3da7('0x60')]);const _0x80af4a=_0x4eb541[_0x3da7('0x47')][_0x3da7('0x136')](_0xe44748[_0x3da7('0x184')]);if(_0xe44748[_0x3da7('0x184')]['is'](_0x3da7('0xd9'))&&_0x18708c[_0x3da7('0xf1')]['schema'][_0x3da7('0x15d')](_0xe44748['item'])&&!_0x80af4a[_0x3da7('0x3a')](_0x3da7('0x23'))){_0x4eb541[_0x3da7('0xcc')][_0x3da7('0xc3')]([_0x3da7('0x96'),_0x3da7('0x137')],_0x80af4a),_0x4eb541[_0x3da7('0xcc')][_0x3da7('0x5d')](_0x3da7('0x176'),_0x4c88ef,_0x80af4a),_0x4eb541[_0x3da7('0x47')]['bindElementToMarker'](_0x80af4a,_0xe44748['markerName']),_0x3b59b3&&(this[_0x3da7('0x14')][_0x3da7('0x58')](_0xe44748[_0x3da7('0x113')])?_0x4eb541[_0x3da7('0xcc')][_0x3da7('0xc3')]('ck-suggestion-marker--active',_0x80af4a):_0x4eb541[_0x3da7('0xcc')][_0x3da7('0x177')]('ck-suggestion-marker--active',_0x80af4a));for(const _0x446f5d of _0x18708c[_0x3da7('0xf1')][_0x3da7('0xc4')](_0xe44748['item'])['getItems']())_0x4eb541['consumable'][_0x3da7('0xad')](_0x446f5d,_0x2df1bb[_0x3da7('0x60')]);_0x4eb541[_0x3da7('0x7b')]['consume'](_0xe44748[_0x3da7('0x184')],_0x2df1bb[_0x3da7('0x60')]);}};_0x18708c[_0x3da7('0x20')]['for'](_0x3da7('0x84'))['add'](_0x4cd6e5=>{_0x4cd6e5['on'](_0x3da7('0xeb'),(_0x10dfb5,_0x19c77d,_0x3c9d60)=>{_0x3c9d60[_0x3da7('0x9d')][_0x3da7('0xc8')]&&_0x4e5942({'showActiveMarkers':!0x1})(_0x10dfb5,_0x19c77d,_0x3c9d60);},{'priority':'highest'});}),_0x18708c[_0x3da7('0x20')][_0x3da7('0xaf')](_0x3da7('0x84'))[_0x3da7('0x97')](_0x54832b=>{_0x54832b['on'](_0x3da7('0x9b'),(_0x30cbda,_0x3d2950,_0x3f092a)=>{_0x3f092a['options'][_0x3da7('0xc8')]&&_0x4e5942({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x30cbda,_0x3d2950,_0x3f092a);},{'priority':_0x3da7('0xdf')});}),_0x18708c[_0x3da7('0x20')][_0x3da7('0xaf')]('dataDowncast')[_0x3da7('0x4f')]({'model':_0x3da7('0xb9'),'view':(_0x450a4c,_0x4f6a19)=>_0x4f6a19[_0x3da7('0x9d')][_0x3da7('0xc8')]?null:{'group':_0x3da7('0xb9'),'name':_0x450a4c[_0x3da7('0x121')](0xb)}}),_0x18708c[_0x3da7('0x20')]['for'](_0x3da7('0x158'))[_0x3da7('0x21')]({'view':{'name':_0x3da7('0xb9'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x17caf1,{writer:_0x326e45})=>{let _0x42cd46='suggestion:'+_0x17caf1[_0x3da7('0x14f')](_0x3da7('0x16e'))+':'+_0x17caf1[_0x3da7('0x14f')]('id');return _0x17caf1[_0x3da7('0x14f')](_0x3da7('0xef'))&&(_0x42cd46+=':'+_0x17caf1[_0x3da7('0x14f')](_0x3da7('0xef'))),_0x326e45[_0x3da7('0x57')](_0x3da7('0xa7'),{'data-name':_0x42cd46});}}),_0x18708c[_0x3da7('0x20')]['for']('upcast')[_0x3da7('0x124')]({'view':_0x3da7('0xb9')}),_0x18708c['conversion']['for']('editingDowncast')[_0x3da7('0x97')](_0x5e5873=>{_0x5e5873['on'](_0x3da7('0xeb'),_0x4e5942(),{'priority':_0x3da7('0x26')});}),_0x18708c[_0x3da7('0x20')][_0x3da7('0xaf')](_0x3da7('0x6e'))['add'](_0x4b3eb4=>{_0x4b3eb4['on']('addMarker:suggestion:attribute',_0x4e5942({'isAttributeSuggestion':!0x0}),{'priority':_0x3da7('0x26')});}),_0x18708c[_0x3da7('0x20')][_0x3da7('0xaf')](_0x3da7('0x6e'))[_0x3da7('0x97')](_0x48345b=>{_0x48345b['on'](_0x3da7('0xa5'),(_0x4dec78,_0x48af1e,_0x69b98)=>{const _0x50687d=_0x69b98[_0x3da7('0x47')][_0x3da7('0xdd')](_0x48af1e[_0x3da7('0x113')]);if(_0x50687d)for(const _0x45bc1a of _0x50687d)_0x45bc1a[_0x3da7('0x3a')](_0x3da7('0x23'))||(_0x69b98['writer'][_0x3da7('0x177')](['ck-suggestion-marker',_0x3da7('0x137'),'ck-suggestion-marker--active'],_0x45bc1a),_0x69b98[_0x3da7('0xcc')][_0x3da7('0x30')]('data-suggestion',_0x45bc1a),_0x69b98['mapper'][_0x3da7('0xae')](_0x45bc1a,_0x48af1e[_0x3da7('0x113')]));},{'priority':_0x3da7('0x26')});}),_0x18708c[_0x3da7('0x20')][_0x3da7('0xaf')](_0x3da7('0x6e'))[_0x3da7('0x97')](_0x3f8296=>{_0x3f8296['on'](_0x3da7('0x7c'),(_0x42ac97,_0x218031,_0x265801)=>{const _0x249763=_0x265801['mapper'][_0x3da7('0xdd')](_0x218031['markerName']);if(!_0x249763)return;const {id:_0x30dc1b}=this[_0x3da7('0x171')](_0x218031[_0x3da7('0x113')]),_0x108493=Pt(this[_0x3da7('0x45')][_0x3da7('0x14e')](_0x30dc1b));if(this['_isBlockAttribute'](_0x108493))for(const _0x3afbc3 of _0x249763)_0x3afbc3[_0x3da7('0x3a')]('addHighlight')||(_0x265801[_0x3da7('0xcc')][_0x3da7('0x177')]([_0x3da7('0x96'),_0x3da7('0x137'),_0x3da7('0xa3')],_0x3afbc3),_0x265801[_0x3da7('0xcc')]['removeAttribute'](_0x3da7('0x176'),_0x3afbc3),_0x265801[_0x3da7('0x47')][_0x3da7('0xae')](_0x3afbc3,_0x218031[_0x3da7('0x113')]));},{'priority':_0x3da7('0x26')});}),_0x18708c[_0x3da7('0xf1')][_0x3da7('0xbd')][_0x3da7('0x3')](_0x251390=>{let _0x2cfe90=!0x1;const _0x151406=Array[_0x3da7('0x172')](_0x18708c[_0x3da7('0xf1')][_0x3da7('0xbd')][_0x3da7('0xfe')]['getChangedMarkers']()),_0x20af24=new Set();for(const {name:_0x42e5ad,data:_0x26187f}of _0x151406){const {group:_0x491f7b,type:_0x59fd5f,subType:_0x56cbae,id:_0x1c88a6}=this[_0x3da7('0x171')](_0x42e5ad);if(_0x3da7('0xb9')!==_0x491f7b)continue;const _0x394310=this[_0x3da7('0x45')][_0x3da7('0x14e')](_0x1c88a6);if(null!=_0x26187f[_0x3da7('0xf5')]){'formatInline'==_0x59fd5f&&(_0x2cfe90=_0x2cfe90||xt(_0x26187f[_0x3da7('0xf5')],_0x42e5ad,_0x251390,_0x18708c['model']['schema']));const _0x52b3bf=_0x3da7('0x2f')==_0x59fd5f&&this['_isBlockAttribute'](_0x56cbae[_0x3da7('0x48')]('|')[0x0]);if(_0x26187f['newRange'][_0x3da7('0xa6')]||_0x3da7('0x9c')==_0x26187f['newRange'][_0x3da7('0x12b')][_0x3da7('0x11c')]||'formatBlock'==_0x59fd5f&&!Rt(_0x26187f[_0x3da7('0xf5')])||_0x52b3bf&&!Rt(_0x26187f[_0x3da7('0xf5')])||_0x3da7('0x67')==_0x59fd5f&&!(!Tt(_0x1dca1c=_0x26187f[_0x3da7('0xf5')])&&!function(_0x1addfb){return _0x1addfb[_0x3da7('0x109')][_0x3da7('0xff')]==_0x1addfb[_0x3da7('0x4c')][_0x3da7('0x103')]&&_0x1addfb[_0x3da7('0x109')][_0x3da7('0xc6')];}(_0x1dca1c)))_0x251390[_0x3da7('0xab')](_0x42e5ad),_0x2cfe90=!0x0;else{if(!_0x394310||!_0x394310[_0x3da7('0x61')])continue;_0x20af24['add'](_0x394310);}}}var _0x1dca1c;return _0x20af24[_0x3da7('0xa')]>0x0&&(_0x2cfe90=!!this['_joinWithAdjacentSuggestions'](_0x20af24)||_0x2cfe90),_0x2cfe90;}),_0x18708c[_0x3da7('0xf1')]['document']['registerPostFixer'](_0x3e4c83=>{let _0x3c721e=!0x1;for(const _0x419d2f of _0x18708c[_0x3da7('0xf1')][_0x3da7('0xbd')][_0x3da7('0xfe')][_0x3da7('0x164')]())if(_0x3da7('0xb7')==_0x419d2f['type'])for(const _0x516327 of this[_0x3da7('0x45')][_0x3da7('0x179')]()){if(_0x516327['isMultiRange']||!_0x516327[_0x3da7('0x61')])continue;const _0x2b09db=_0x3da7('0x111')==_0x516327[_0x3da7('0xbe')],_0x14f7dd=Pt(_0x516327),_0x642e9d=_0x14f7dd&&this[_0x3da7('0xe8')](_0x14f7dd);if(!_0x2b09db&&!_0x642e9d)continue;const _0x529537=_0x516327[_0x3da7('0x14d')]();if(_0x529537[_0x3da7('0x109')]['parent']!=_0x529537['end'][_0x3da7('0xff')]&&!_0x529537['end']['isAtEnd']){const _0x43343d=_0x18708c[_0x3da7('0xf1')][_0x3da7('0x12f')](_0x529537[_0x3da7('0x109')]['nodeAfter'],_0x3da7('0x4c')),_0x29511a=_0x18708c[_0x3da7('0xf1')][_0x3da7('0xb0')](_0x529537[_0x3da7('0x109')],_0x43343d);_0x3e4c83[_0x3da7('0xd7')](_0x516327['getFirstMarker'](),{'range':_0x29511a}),_0x3c721e=!0x0;}}return _0x3c721e;}),_0x18708c['model']['document'][_0x3da7('0x3')](_0x1771c8=>this[_0x3da7('0x12d')](_0x1771c8)),_0x18708c['model']['document'][_0x3da7('0x3')](_0x42768f=>!_0x42768f[_0x3da7('0x15')]['isLocal']&&this['_processAttributeSuggestions'](_0x42768f)),_0x18708c[_0x3da7('0xf1')]['markers']['on'](_0x3da7('0x80'),(_0x3f58b1,_0x2653c7,_0x49faae)=>{if(null==_0x49faae){const {id:_0x2d1a31}=this['_splitMarkerName'](_0x2653c7['name']),_0x14205e=this[_0x3da7('0x45')][_0x3da7('0x14e')](_0x2d1a31);_0x14205e&&_0x14205e[_0x3da7('0x4b')](_0x2653c7[_0x3da7('0x60')]);}}),_0x18708c[_0x3da7('0xf1')][_0x3da7('0xbd')]['on'](_0x3da7('0x104'),()=>{const _0x239f9a=Array[_0x3da7('0x172')](_0x18708c[_0x3da7('0xf1')][_0x3da7('0xbd')][_0x3da7('0xfe')]['getChangedMarkers']())[_0x3da7('0x36')](_0x217f70=>_0x3da7('0xb9')===this[_0x3da7('0x171')](_0x217f70[_0x3da7('0x60')])[_0x3da7('0xe3')]);if(0x0===_0x239f9a[_0x3da7('0x106')])return;_0x239f9a['sort']((_0xb7d480,_0x329f24)=>{const _0x1f5adf=_0xb7d480[_0x3da7('0x6b')]['oldRange'],_0x136c09=_0x329f24['data'][_0x3da7('0x94')];return null===_0x1f5adf&&null===_0x136c09?0x0:null===_0x1f5adf&&null!==_0x136c09?-0x1:null!==_0x1f5adf&&null===_0x136c09?0x1:_0x1f5adf[_0x3da7('0x109')][_0x3da7('0x123')](_0x136c09[_0x3da7('0x109')])?-0x1:0x1;});const _0xd6e5a7=new Set(),_0x2aee43=new Set();for(const {name:_0x1702dc,data:_0x2858fa}of _0x239f9a){const {id:_0x220e14}=this[_0x3da7('0x171')](_0x1702dc);if(null===_0x2858fa[_0x3da7('0x94')]){const _0x21a2b9=this[_0x3da7('0x12c')](_0x1702dc);_0x2aee43['add'](_0x21a2b9);}else{const _0x25083d=this[_0x3da7('0x45')][_0x3da7('0x14e')](_0x220e14);null!==_0x2858fa[_0x3da7('0xf5')]||_0x25083d[_0x3da7('0x61')]?(_0xd6e5a7[_0x3da7('0x97')](_0x25083d[_0x3da7('0x1b')]),_0x2aee43[_0x3da7('0x97')](_0x25083d)):this[_0x3da7('0xf4')](_0x25083d);}}_0x2aee43['size']>0x0&&this[_0x3da7('0x11f')](_0x2aee43);for(const _0x221cce of _0xd6e5a7)this[_0x3da7('0x18')](_0x3da7('0x12e'),_0x221cce);}),_0x18708c[_0x3da7('0xf1')]['on'](_0x3da7('0x169'),(_0x19cbf7,_0x551b8c)=>{const _0x4eb42c=_0x551b8c[0x0];if(!this[_0x3da7('0x45')]['size'])return;if(!_0x4eb42c[_0x3da7('0xa2')])return;if(_0x4eb42c['batch'][_0x3da7('0x95')]||!_0x4eb42c[_0x3da7('0x15')][_0x3da7('0x9e')])return;let _0x379104,_0x2cdf3d;switch(_0x4eb42c['type']){case'insert':_0x379104=_0x18708c[_0x3da7('0xf1')][_0x3da7('0x12f')](_0x4eb42c['position']),_0x2cdf3d=_0x379104[_0x3da7('0x155')](_0x4eb42c[_0x3da7('0x17c')]);break;case _0x3da7('0x48'):_0x379104=_0x18708c['model'][_0x3da7('0x12f')](_0x4eb42c[_0x3da7('0x22')]),_0x2cdf3d=_0x18708c[_0x3da7('0xf1')]['createPositionAt'](_0x4eb42c[_0x3da7('0x52')]);break;case _0x3da7('0xf0'):_0x379104=_0x18708c[_0x3da7('0xf1')][_0x3da7('0x12f')](_0x4eb42c[_0x3da7('0xb4')]),_0x2cdf3d=_0x379104[_0x3da7('0x155')](_0x4eb42c[_0x3da7('0x17c')]);break;default:return;}const _0x3780af=_0x18708c[_0x3da7('0xf1')][_0x3da7('0xb0')](_0x379104,_0x2cdf3d);_0x18708c['model'][_0x3da7('0x56')](()=>{for(const {suggestion:_0x5074d1,meta:_0x2f5d6a}of this['_findSuggestions'](_0x3780af)){if(_0x5074d1[_0x3da7('0x131')])continue;if('formatInline'==_0x5074d1[_0x3da7('0xbe')])continue;const _0x31f281=Pt(_0x5074d1);if(_0x31f281&&this[_0x3da7('0xe8')](_0x31f281)&&_0x3da7('0x48')!=_0x4eb42c['type'])continue;const _0x495281=_0x5074d1[_0x3da7('0x6b')]&&_0x5074d1[_0x3da7('0x6b')][_0x3da7('0x66')];(_0x3da7('0x111')!=_0x5074d1['type']||_0x3da7('0x48')==_0x4eb42c['type']&&!_0x495281)&&(_0x2f5d6a[_0x3da7('0x1f')]||_0x3da7('0xa9')==_0x5074d1[_0x3da7('0xbe')]&&_0x2f5d6a['isOwn']||_0x5074d1[_0x3da7('0x14d')]()['containsRange'](_0x3780af)&&this[_0x3da7('0x118')](_0x5074d1,_0x379104,_0x2cdf3d));}});},{'priority':_0x3da7('0xcf')}),_0x18708c[_0x3da7('0xf1')]['on'](_0x3da7('0x157'),(_0xa6921,_0x824e53)=>{const _0x3f785c=_0x824e53[0x0],_0x3e6a85=_0x824e53[0x1];if(_0x3e6a85&&_0x3e6a85[_0x3da7('0x10a')])return;if(this[_0x3da7('0xaa')])return;if(!this[_0x3da7('0x180')][_0x3da7('0x102')])return;if(_0x3f785c[_0x3da7('0xa6')])return;const _0x366503=_0x18708c[_0x3da7('0xf1')][_0x3da7('0x6f')],{start:_0x3a78fa,end:_0x1920da}=_0x3f785c['getFirstRange'](),_0x59addb=_0x3a78fa[_0x3da7('0x55')]&&_0x366503['isLimit'](_0x3a78fa['nodeAfter'])?null:_0x366503[_0x3da7('0x76')](_0x3a78fa,_0x3da7('0xb5')),_0xd0b71e=_0x1920da[_0x3da7('0x103')]&&_0x366503['isLimit'](_0x1920da[_0x3da7('0x103')])?null:_0x366503[_0x3da7('0x76')](_0x1920da,_0x3da7('0x13d')),_0x524d51=_0x18708c[_0x3da7('0xf1')]['createRange'](_0x59addb?_0x59addb['start']:_0x3a78fa,_0xd0b71e?_0xd0b71e[_0x3da7('0x4c')]:_0x1920da);_0x18708c[_0x3da7('0xf1')][_0x3da7('0x56')](_0x85669=>{this['markDeletion'](_0x524d51);const _0x39d3db=_0x18708c[_0x3da7('0xf1')][_0x3da7('0x6f')][_0x3da7('0x76')](_0x524d51['start']);_0x3f785c['is'](_0x3da7('0x117'))?_0x85669[_0x3da7('0x13c')](_0x39d3db):_0x3f785c[_0x3da7('0x126')](_0x39d3db);}),_0xa6921[_0x3da7('0xbb')]();},{'priority':_0x3169b2[_0x3da7('0x51')]+0xa}),_0x18708c[_0x3da7('0xf1')]['on'](_0x3da7('0x9f'),(_0x4226c8,_0x377b0e)=>{const _0x1aec4e=_0x377b0e[_0x377b0e['length']-0x1];_0x1aec4e&&_0x1aec4e[_0x3da7('0x10a')]||this['_isForcedDefaultExecutionBlock']||this[_0x3da7('0x180')][_0x3da7('0x102')]&&(_0x18708c[_0x3da7('0xf1')][_0x3da7('0x56')](()=>{let _0x1eafb7=_0x18708c[_0x3da7('0xf1')]['insertContent'](_0x377b0e[0x0],_0x377b0e[0x1],_0x377b0e[0x2],{'forceDefaultExecution':!0x0});if(!_0x1eafb7)return;_0x4226c8['return']=_0x1eafb7[_0x3da7('0x165')]();const _0xa3c2ed=_0x1eafb7[_0x3da7('0x4c')][_0x3da7('0x103')],_0xbb298=_0x18708c['model'][_0x3da7('0x6f')];_0xa3c2ed&&_0xbb298[_0x3da7('0x15d')](_0xa3c2ed)&&!_0xbb298[_0x3da7('0x7d')](_0xa3c2ed)&&(_0x1eafb7=_0x18708c[_0x3da7('0xf1')][_0x3da7('0xb0')](_0x1eafb7['start'],_0x18708c['model'][_0x3da7('0x12f')](_0xa3c2ed,_0x3da7('0x4c')))),this[_0x3da7('0x6d')](_0x1eafb7);}),_0x4226c8['stop']());},{'priority':_0x3da7('0x26')}),this['editor']['commands'][_0x3da7('0x97')](_0x3da7('0xbc'),this[_0x3da7('0x180')]),this[_0x3da7('0x173')](_0x3da7('0xbc'));const _0x5c7750=new _0x3a9e24(_0x18708c,this[_0x3da7('0x45')]);_0x18708c[_0x3da7('0x4e')][_0x3da7('0x97')](_0x3da7('0x182'),_0x5c7750),this[_0x3da7('0x173')]('acceptSuggestion');const _0x59365b=new _0x32d6d1(_0x18708c,this[_0x3da7('0x45')]);_0x18708c[_0x3da7('0x4e')][_0x3da7('0x97')](_0x3da7('0xa0'),_0x59365b),this['enableCommand'](_0x3da7('0xa0')),_0x18708c[_0x3da7('0x4e')][_0x3da7('0x97')]('acceptAllSuggestions',new _0x268e56(_0x18708c,_0x5c7750,this[_0x3da7('0x45')])),this[_0x3da7('0x173')](_0x3da7('0x40')),_0x18708c[_0x3da7('0x4e')]['add'](_0x3da7('0xf6'),new _0x268e56(_0x18708c,_0x59365b,this[_0x3da7('0x45')])),this[_0x3da7('0x173')](_0x3da7('0xf6')),_0x18708c[_0x3da7('0x4e')][_0x3da7('0x97')](_0x3da7('0xe1'),new _0x6435e7(_0x18708c,_0x5c7750,this[_0x3da7('0x45')])),this['enableCommand']('acceptSelectedSuggestions'),_0x18708c[_0x3da7('0x4e')]['add'](_0x3da7('0x13a'),new _0x6435e7(_0x18708c,_0x59365b,this[_0x3da7('0x45')])),this[_0x3da7('0x173')](_0x3da7('0x13a'));const _0x9fcb0b=_0x18708c['plugins'][_0x3da7('0x14e')](_0x3da7('0x11b'));this[_0x3da7('0x75')](_0x9fcb0b,_0x3da7('0x138'),(_0x43218c,{threadId:_0x34f14b})=>{const _0x53776b=this[_0x3da7('0x45')][_0x3da7('0x14e')](_0x34f14b);_0x53776b&&_0x53776b[_0x3da7('0xfc')]&&0x1===_0x53776b[_0x3da7('0xfc')]['length']&&this['_updateSuggestionData'](_0x34f14b,{'hasComments':!0x0});},{'priority':'low'}),this[_0x3da7('0x75')](_0x9fcb0b,_0x3da7('0x142'),(_0x34cbbb,{threadId:_0x3579da})=>{const _0x97b4e3=this[_0x3da7('0x45')][_0x3da7('0x14e')](_0x3579da);_0x97b4e3&&_0x97b4e3[_0x3da7('0xfc')]&&!_0x97b4e3[_0x3da7('0xfc')][_0x3da7('0x106')]&&this[_0x3da7('0xb6')](_0x3579da,{'hasComments':!0x1});},{'priority':_0x3da7('0x24')});}set[_0x3da7('0xb')](_0x3b3ef3){if(this[_0x3da7('0x133')])throw new _0x25c9d9(_0x3da7('0x13e'),this);this[_0x3da7('0x133')]=_0x3b3ef3;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3d7728=!0x1,toJSON:_0x2d70d2=!0x1}={}){const _0x1748d0=[];for(const _0x5a9a06 of this[_0x3da7('0x45')]['values']())_0x3d7728&&!_0x5a9a06['isInContent']||_0x1748d0['push'](_0x5a9a06);return _0x2d70d2?_0x1748d0[_0x3da7('0x1a')](_0x5ba407=>_0x5ba407[_0x3da7('0x140')]()):_0x1748d0;}[_0x3da7('0x134')](_0x57e7d0){const _0x438474=this[_0x3da7('0x45')][_0x3da7('0x14e')](_0x57e7d0);if(!_0x438474)throw new _0x25c9d9(_0x3da7('0x132'),this);return _0x438474;}[_0x3da7('0x16f')](_0xa1f916){return this['_suggestions'][_0x3da7('0x11d')](_0xa1f916);}[_0x3da7('0xc')](_0x14e62a){const {authorId:_0x4d2724,id:_0xc543ee,attributes:_0x1c16e4}=_0x14e62a,[_0x500d41,_0x3f9c13]=_0x14e62a[_0x3da7('0xbe')][_0x3da7('0x48')](':'),_0x2c4d8c=this[_0x3da7('0x45')][_0x3da7('0x14e')](_0xc543ee)||this[_0x3da7('0xba')](_0x500d41,_0x3f9c13,_0xc543ee,_0x4d2724,_0x1c16e4);if(this[_0x3da7('0x114')](_0x2c4d8c),this['_checkSuggestionCorrectness'](_0x2c4d8c,_0x500d41,_0x3f9c13||null,_0x4d2724),_0x2c4d8c[_0x3da7('0x43')]=_0x14e62a[_0x3da7('0x43')],_0x2c4d8c[_0x3da7('0xcb')]=!0x0,_0x1c16e4&&_0x1c16e4['@external']){const _0x5caba2=_0x1c16e4[_0x3da7('0x3b')],_0x110f9a=this[_0x3da7('0xc7')](_0x5caba2[_0x3da7('0x1c')]);_0x2c4d8c['authoredAt']=_0x5caba2[_0x3da7('0x43')],_0x2c4d8c['author']=_0x110f9a,_0x2c4d8c['isExternal']=!0x0;}else _0x2c4d8c[_0x3da7('0x6c')]=_0x14e62a[_0x3da7('0x43')];switch(_0x14e62a['data']&&(_0x2c4d8c['data']=_0x14e62a[_0x3da7('0x6b')]),_0x14e62a['attributes']&&(_0x2c4d8c[_0x3da7('0x9a')]=_0x14e62a[_0x3da7('0x9a')]),this[_0x3da7('0x133')]&&this[_0x3da7('0x133')]['addSuggestion']||(_0x2c4d8c[_0x3da7('0x86')]=!0x0),this['_suggestionState'][_0x3da7('0x14e')](_0x2c4d8c)){case'notReady':this[_0x3da7('0x92')][_0x3da7('0x167')](_0x2c4d8c,_0x3da7('0x11a'));break;case'markerReady':_0x2c4d8c[_0x3da7('0x61')]?(this[_0x3da7('0x11f')](new Set([_0x2c4d8c])),this[_0x3da7('0x15c')](new Set([_0x2c4d8c])),this[_0x3da7('0x92')][_0x3da7('0x167')](_0x2c4d8c,_0x3da7('0xb1')),this[_0x3da7('0x18')]('suggestionLoaded',_0x2c4d8c)):this[_0x3da7('0x92')]['set'](_0x2c4d8c,_0x3da7('0x9'));}return _0x2c4d8c;}['acceptSuggestion'](_0x4da62c){this[_0x3da7('0x10a')](()=>{this[_0x3da7('0x170')][_0x3da7('0xf1')][_0x3da7('0x56')](()=>{for(const _0x26d268 of _0x4da62c[_0x3da7('0x141')]())_0x26d268['accept']();});});}[_0x3da7('0xa0')](_0x2aa853){this['forceDefaultExecution'](()=>{this['editor'][_0x3da7('0xf1')]['change'](()=>{for(const _0x2ca731 of _0x2aa853[_0x3da7('0x141')]())_0x2ca731[_0x3da7('0xac')]();});});}[_0x3da7('0x173')](_0x341b51,_0x49c297){const _0x810dd7=this['editor'][_0x3da7('0x4e')]['get'](_0x341b51);if(!_0x810dd7)throw new _0x25c9d9(_0x3da7('0x6a'),this,{'commandName':_0x341b51});if(this['_enabledCommands']['has'](_0x810dd7))throw new _0x25c9d9('track-changes-enable-command-twice',this,{'commandName':_0x341b51});this['_enabledCommands'][_0x3da7('0x97')](_0x810dd7),_0x49c297&&_0x810dd7['on'](_0x3da7('0x181'),(_0x274c01,_0x4b5cbe)=>{this[_0x3da7('0x180')][_0x3da7('0x102')]&&(this[_0x3da7('0xaa')]||(_0x4b5cbe[_0x3da7('0x106')]>0x0&&_0x4b5cbe[_0x4b5cbe[_0x3da7('0x106')]-0x1]&&_0x4b5cbe[_0x4b5cbe[_0x3da7('0x106')]-0x1][_0x3da7('0x10a')]?_0x4b5cbe['pop']():(_0x274c01['return']=_0x49c297((..._0x284801)=>_0x810dd7[_0x3da7('0x181')](..._0x284801,{'forceDefaultExecution':!0x0}),..._0x4b5cbe),_0x274c01[_0x3da7('0xbb')]())));},{'priority':_0x3da7('0x26')});}[_0x3da7('0x10a')](_0x4ec72a){let _0x34318b,_0x1d69e7;const _0x54e132=this[_0x3da7('0xaa')];this[_0x3da7('0xaa')]=!0x0;try{_0x34318b=_0x4ec72a();}catch(_0x41a38f){_0x1d69e7=_0x41a38f;}return _0x54e132||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1d69e7&&_0x25c9d9['rethrowUnexpectedError'](_0x1d69e7,this),_0x34318b;}[_0x3da7('0x6d')](_0x1898b0,_0x52ccf0=null,_0x3565e2={}){if(_0x1898b0[_0x3da7('0xa6')])return null;const _0x3802a8=this[_0x3da7('0x170')][_0x3da7('0xed')][_0x3da7('0x14e')]('Users')['me'];for(const {suggestion:_0x20feaf,meta:_0x224c78}of this[_0x3da7('0x54')](_0x1898b0,'insertion'))if(_0x224c78[_0x3da7('0xc0')]){if(!_0x224c78[_0x3da7('0x82')]){if(_0x224c78['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Gt(_0x20feaf,_0x3565e2))continue;return _0x20feaf;}if(Gt(_0x20feaf,_0x3565e2))return _0x20feaf;this[_0x3da7('0x118')](_0x20feaf,_0x1898b0[_0x3da7('0x109')],_0x1898b0['end']);break;}if(_0x52ccf0==_0x20feaf[_0x3da7('0x98')]&&Gt(_0x20feaf,_0x3565e2)){const _0xcdc10f=_0x20feaf[_0x3da7('0x14d')]();return _0xcdc10f['start'][_0x3da7('0xde')](_0x1898b0[_0x3da7('0x4c')])?this[_0x3da7('0xc5')](_0x20feaf,this['_model'][_0x3da7('0xb0')](_0x1898b0[_0x3da7('0x109')],_0xcdc10f[_0x3da7('0x4c')])):this[_0x3da7('0xc5')](_0x20feaf,this[_0x3da7('0x107')][_0x3da7('0xb0')](_0xcdc10f['start'],_0x1898b0['end'])),_0x20feaf;}}const _0x3c3b4f=_0x371e7c(),_0xe1de03=_0x3802a8['id'],_0x26832a=_0x52ccf0?_0x3da7('0x15e')+_0x52ccf0:_0x3da7('0xa9'),_0x1ec550=this[_0x3da7('0xb8')]({'id':_0x3c3b4f,'type':_0x26832a,'createdAt':new Date(),'authorId':_0xe1de03,'attributes':_0x3565e2});return this[_0x3da7('0x145')](_0x26832a,_0x3c3b4f,_0xe1de03,_0x1898b0),_0x1ec550;}['markMultiRangeInsertion'](_0x4045bd,_0x4a38b7='multi',_0x4c881a={}){const _0x236923=this[_0x3da7('0x170')][_0x3da7('0xed')]['get'](_0x3da7('0x17a'))['me'],_0x294e7f=this['_suggestionFactory']['getSuggestionCallback'](_0x3da7('0xa9'),_0x4a38b7,_0x3da7('0x39'));for(const _0xbf4310 of this[_0x3da7('0x8f')]())if(_0xbf4310[_0x3da7('0x16b')]['id']==_0x236923['id']&&'insertion'==_0xbf4310['type']&&_0xbf4310[_0x3da7('0x98')]==_0x4a38b7&&Gt(_0xbf4310,_0x4c881a)&&(_0x294e7f(_0xbf4310[_0x3da7('0x83')](),_0x4045bd)||_0x294e7f(_0x4045bd,_0xbf4310[_0x3da7('0x83')]()))){for(const _0x459f08 of _0x4045bd)_0xbf4310[_0x3da7('0x149')](_0x459f08);return _0xbf4310;}for(const {suggestion:_0x4ff705,meta:_0x56b30d}of this[_0x3da7('0x54')](_0x4045bd,_0x3da7('0xa9'))){if(!_0x56b30d[_0x3da7('0xc0')])continue;if(!this[_0x3da7('0x12a')]&&_0x56b30d[_0x3da7('0x1f')])continue;if(!Gt(_0x4ff705,_0x4c881a))continue;let _0x3a4064=!0x0;for(const _0x5e427e of _0x4ff705[_0x3da7('0x83')]())for(const _0x2bfd6d of _0x4045bd)if(!_0x5e427e[_0x3da7('0x175')](_0x2bfd6d)){_0x3a4064=!0x1;break;}if(_0x3a4064)return _0x4ff705;}const _0x3fd29c=_0x371e7c(),_0x2c36cb=_0x236923['id'],_0x1a8317='insertion:'+_0x4a38b7,_0x21aa72=this[_0x3da7('0xb8')]({'id':_0x3fd29c,'type':_0x1a8317,'createdAt':new Date(),'authorId':_0x2c36cb,'attributes':_0x4c881a});for(const _0x5e994b of _0x4045bd)this[_0x3da7('0x145')](_0x1a8317,_0x3fd29c,_0x2c36cb,_0x5e994b,_0x39434b[_0x3da7('0x7f')]());return _0x21aa72;}[_0x3da7('0x50')](_0xad919b,_0x57fc95,_0x14d2e2=null,_0x172665={}){if(_0x14d2e2=_0x14d2e2||Et(_0x57fc95),_0xad919b[_0x3da7('0xa6')])return null;if(_0x3da7('0xbf')===this['_trackFormatChanges']){const _0x2c4a31=this[_0x3da7('0x46')][_0x3da7('0x5')]('formatInline',_0x14d2e2,_0x3da7('0x65'));return this['forceDefaultExecution'](()=>_0x2c4a31([_0xad919b],_0x57fc95,_0x172665)),null;}const _0x13f841=this[_0x3da7('0x170')]['plugins'][_0x3da7('0x14e')](_0x3da7('0x17a'))['me'],_0x30840b=[];if('always'!==this['_trackFormatChanges'])for(const {suggestion:_0x483adf,meta:_0x2de9fe}of this[_0x3da7('0x54')](_0xad919b,_0x3da7('0xa9')))_0x2de9fe['isOwn']&&!_0x2de9fe[_0x3da7('0x139')]&&_0x30840b[_0x3da7('0x185')](..._0x483adf['getRanges']());const _0x5d14da=function(_0x593d52,_0xd03bc){const _0x278fa4=[];for(const _0xb7715e of _0xd03bc){const _0x38d835=_0x593d52[_0x3da7('0x8c')](_0xb7715e);_0x38d835&&_0x278fa4[_0x3da7('0x185')](_0x38d835);}return _0x278fa4;}(_0xad919b,_0x30840b),_0x37003e=function(_0x10432a,_0x3bc470){const _0x4b312a=[_0x10432a];for(const _0x203617 of _0x3bc470){let _0x3a69c3=0x0;for(;_0x3a69c3<_0x4b312a[_0x3da7('0x106')];){const _0x44c9c6=_0x4b312a[_0x3a69c3][_0x3da7('0xe0')](_0x203617);_0x4b312a[_0x3da7('0xa1')](_0x3a69c3,0x1,..._0x44c9c6),_0x3a69c3+=_0x44c9c6['length'];}}return _0x4b312a;}(_0xad919b,_0x30840b);_0x5d14da[_0x3da7('0x106')]&&this['_model'][_0x3da7('0x56')](()=>{for(const _0x57c8a7 of _0x5d14da){const _0xff3409=this['_suggestionFactory'][_0x3da7('0x5')](_0x3da7('0x91'),_0x14d2e2,_0x3da7('0x65'));this[_0x3da7('0x10a')](()=>_0xff3409([_0x57c8a7],_0x57fc95,_0x172665));}});for(const _0x19124b of _0x37003e){let _0x5d4853=null,_0x4bfaf9=_0x19124b['start'],_0x19300d=_0x19124b[_0x3da7('0x4c')];for(const {suggestion:_0x1ccf0d,meta:_0x13bbe7}of this[_0x3da7('0x54')](_0x19124b,_0x3da7('0x91'))){if(!_0x13bbe7['isOwn'])continue;if(_0x1ccf0d['subType']!=_0x14d2e2)continue;if(!Gt(_0x1ccf0d,_0x172665))continue;const _0xb308f1=_0x1ccf0d[_0x3da7('0x14d')]();if(_0xb308f1[_0x3da7('0x175')](_0x19124b,!0x0))return null;_0x4bfaf9=_0x4bfaf9[_0x3da7('0x123')](_0xb308f1[_0x3da7('0x109')])?_0x4bfaf9:_0xb308f1['start'],_0x19300d=_0x19300d[_0x3da7('0x17e')](_0xb308f1['end'])?_0x19300d:_0xb308f1[_0x3da7('0x4c')],_0x5d4853?_0xb308f1[_0x3da7('0x109')]['isBefore'](_0x5d4853[_0x3da7('0x14d')]()[_0x3da7('0x109')])?(_0x5d4853[_0x3da7('0xd2')](),_0x5d4853=_0x1ccf0d):_0x1ccf0d['removeMarkers']():_0x5d4853=_0x1ccf0d;}const _0x49aabb=this['_model'][_0x3da7('0xb0')](_0x4bfaf9,_0x19300d);if(_0x5d4853)this[_0x3da7('0xc5')](_0x5d4853,_0x49aabb);else{const _0x26768a=_0x371e7c(),_0x2b37f1=_0x13f841['id'];this[_0x3da7('0xb8')]({'id':_0x26768a,'type':_0x3da7('0x71')+_0x14d2e2,'data':_0x57fc95,'createdAt':new Date(),'authorId':_0x2b37f1,'attributes':_0x172665}),this[_0x3da7('0x145')]('formatInline:'+_0x14d2e2,_0x26768a,_0x2b37f1,_0x49aabb);}}return null;}[_0x3da7('0x87')](_0x512220,_0x4a6eb1,_0x26b8b8=[],_0x7eb630=null,_0x4ccd52={}){_0x4a6eb1[_0x3da7('0x4')]||(_0x4a6eb1[_0x3da7('0x4')]=_0x4a6eb1[_0x3da7('0x152')]),_0x4a6eb1[_0x3da7('0x66')]=_0x512220['is'](_0x3da7('0x69')),_0x7eb630=_0x7eb630||Et(_0x4a6eb1);const _0x775d30=_0x26b8b8[_0x3da7('0x1a')](_0x37353e=>Ut(_0x37353e,this[_0x3da7('0x107')])),_0x40193a=_0x512220['is']('range')?_0x512220:Ut(_0x512220,this[_0x3da7('0x107')]);if(_0x3da7('0xbf')===this[_0x3da7('0x147')]){const _0x5e63c7=this['_suggestionFactory'][_0x3da7('0x5')](_0x3da7('0x111'),_0x7eb630,_0x3da7('0x65'));return this['forceDefaultExecution'](()=>_0x5e63c7([_0x40193a],_0x4a6eb1,_0x4ccd52)),null;}_0x775d30[_0x3da7('0x185')](_0x40193a);let _0x592c07=!0x0;for(const _0x54a2f1 of _0x775d30)if(!this['_rangeIsInLocalUserInsertion'](_0x54a2f1)){_0x592c07=!0x1;break;}if(_0x592c07&&_0x3da7('0x159')!==this[_0x3da7('0x147')]){const _0x578660=this['_suggestionFactory']['getSuggestionCallback'](_0x3da7('0x111'),_0x7eb630,_0x3da7('0x65'));return this[_0x3da7('0x10a')](()=>_0x578660([_0x40193a],_0x4a6eb1,_0x4ccd52)),null;}let _0x2d2c2f=null,_0x18aaab=_0x40193a[_0x3da7('0x109')],_0x1bff2=_0x40193a[_0x3da7('0x4c')];for(const {suggestion:_0x4be28d,meta:_0xa512fd}of this['_findSuggestions'](_0x40193a,_0x3da7('0x111'))){if(!_0xa512fd[_0x3da7('0xc0')])continue;if(_0xa512fd[_0x3da7('0x82')]||_0xa512fd[_0x3da7('0x1f')]||_0xa512fd['isInsideObject'])continue;if(_0x4be28d['data'][_0x3da7('0x4')]!=_0x4a6eb1[_0x3da7('0x4')])continue;if(!Gt(_0x4be28d,_0x4ccd52))continue;const _0x4f0f68=_0x4be28d[_0x3da7('0x14d')]();if(_0x4be28d['subType']==_0x7eb630){if(_0x4f0f68['containsRange'](_0x40193a,!0x0))return null;_0x18aaab=_0x18aaab[_0x3da7('0x123')](_0x4f0f68['start'])?_0x18aaab:_0x4f0f68[_0x3da7('0x109')],_0x1bff2=_0x1bff2[_0x3da7('0x17e')](_0x4f0f68[_0x3da7('0x4c')])?_0x1bff2:_0x4f0f68['end'],_0x2d2c2f?_0x4f0f68[_0x3da7('0x109')]['isBefore'](_0x2d2c2f[_0x3da7('0x14d')]()[_0x3da7('0x109')])?(_0x2d2c2f[_0x3da7('0xd2')](),_0x2d2c2f=_0x4be28d):_0x4be28d[_0x3da7('0xd2')]():_0x2d2c2f=_0x4be28d;}else{const _0x4f5ba5=_0x40193a[_0x3da7('0x8c')](_0x4f0f68);this['_cutOutSuggestionMarker'](_0x4be28d,_0x4f5ba5);}}const _0x389f7a=this[_0x3da7('0x170')]['plugins'][_0x3da7('0x14e')](_0x3da7('0x17a'))['me'],_0x37524c=_0x371e7c(),_0x113804=_0x389f7a['id'];if(_0x2d2c2f)return this[_0x3da7('0xc5')](_0x2d2c2f,this[_0x3da7('0x107')][_0x3da7('0xb0')](_0x18aaab,_0x1bff2)),_0x2d2c2f;{const _0x5812d4=this[_0x3da7('0xb8')]({'id':_0x37524c,'type':'formatBlock:'+_0x7eb630,'data':_0x4a6eb1,'createdAt':new Date(),'authorId':_0x113804,'attributes':_0x4ccd52});return this[_0x3da7('0x145')](_0x3da7('0xfd')+_0x7eb630,_0x37524c,_0x113804,this[_0x3da7('0x107')][_0x3da7('0xb0')](_0x18aaab,_0x1bff2)),_0x5812d4;}}['markMultiRangeBlockFormat'](_0x310c7f,_0x4c91db,_0xf72358=[],_0x4c94d9=null,_0xa11237={}){_0x4c91db['formatGroupId']||(_0x4c91db[_0x3da7('0x4')]=_0x4c91db['commandName']);const _0x6c0476=_0x310c7f[0x0];_0x4c91db[_0x3da7('0x66')]=_0x6c0476['is']('range'),_0x4c94d9=_0x4c94d9||Et(_0x4c91db);const _0x57c4fe=_0xf72358[_0x3da7('0x1a')](_0x4fa329=>Ut(_0x4fa329,this[_0x3da7('0x107')])),_0x5ec691=_0x6c0476['is'](_0x3da7('0x69'))?_0x310c7f:_0x310c7f[_0x3da7('0x1a')](_0x28ef01=>Ut(_0x28ef01,this[_0x3da7('0x107')]));if(_0x3da7('0xbf')===this[_0x3da7('0x147')]){const _0x41579f=this[_0x3da7('0x46')][_0x3da7('0x5')](_0x3da7('0x111'),_0x4c94d9,_0x3da7('0x65'));return this[_0x3da7('0x10a')](()=>_0x41579f(_0x5ec691,_0x4c91db,_0xa11237)),null;}_0x57c4fe[_0x3da7('0x185')](..._0x5ec691);let _0x5dfa0d=!0x0;for(const _0x5ed697 of _0x57c4fe)if(!this[_0x3da7('0xb2')](_0x5ed697)){_0x5dfa0d=!0x1;break;}if(_0x5dfa0d&&_0x3da7('0x159')!==this[_0x3da7('0x147')]){const _0x2baf24=this['_suggestionFactory'][_0x3da7('0x5')](_0x3da7('0x111'),_0x4c94d9,'accept');return this[_0x3da7('0x10a')](()=>_0x2baf24(_0x5ec691,_0x4c91db,_0xa11237)),null;}const _0x2d3c33=this[_0x3da7('0x170')][_0x3da7('0xed')][_0x3da7('0x14e')]('Users')['me'];for(const _0x579ca7 of this['getSuggestions']()){if(_0x579ca7[_0x3da7('0x16b')]['id']!=_0x2d3c33['id'])continue;if(_0x3da7('0x111')!=_0x579ca7[_0x3da7('0xbe')]||_0x579ca7[_0x3da7('0x6b')][_0x3da7('0x4')]!=_0x4c91db[_0x3da7('0x4')])continue;if(!Gt(_0x579ca7,_0xa11237))continue;const _0xbe16a5=_0x579ca7['subType']==_0x4c94d9;for(let _0x37052f=0x0;_0x37052f<_0x5ec691['length'];_0x37052f++){const _0x3792d2=_0x5ec691[_0x37052f];for(const _0x4ec61b of _0x579ca7['getMarkers']()){const _0x190a3f=_0x4ec61b['getRange']();if(_0x3792d2[_0x3da7('0xde')](_0x190a3f)){_0xbe16a5?(_0x5ec691[_0x3da7('0xa1')](_0x37052f,0x1),_0x37052f--):_0x579ca7[_0x3da7('0xab')](_0x4ec61b[_0x3da7('0x60')]);break;}}}}if(0x0==_0x5ec691[_0x3da7('0x106')])return null;const _0x74e5fe=this['_suggestionFactory'][_0x3da7('0x5')]('formatBlock',_0x4c94d9,_0x3da7('0x39'));for(const _0x4d6473 of this[_0x3da7('0x8f')]())if(_0x4d6473[_0x3da7('0x16b')]['id']==_0x2d3c33['id']&&_0x3da7('0x111')==_0x4d6473[_0x3da7('0xbe')]&&_0x4d6473[_0x3da7('0x6b')][_0x3da7('0x4')]==_0x4c91db[_0x3da7('0x4')]&&_0x4d6473['subType']==_0x4c94d9&&Gt(_0x4d6473,_0xa11237)&&(_0x74e5fe(_0x4d6473['getRanges'](),_0x5ec691)||_0x74e5fe(_0x5ec691,_0x4d6473[_0x3da7('0x83')]()))){for(const _0x34e157 of _0x5ec691)_0x4d6473[_0x3da7('0x149')](_0x34e157);return _0x4d6473;}const _0x21c5dd=_0x371e7c(),_0x43ad39=_0x2d3c33['id'],_0x4f3016=_0x3da7('0xfd')+_0x4c94d9,_0x4f3aeb=this['_setSuggestionData']({'id':_0x21c5dd,'type':_0x4f3016,'data':_0x4c91db,'createdAt':new Date(),'authorId':_0x43ad39,'attributes':_0xa11237});for(const _0x22b835 of _0x5ec691)this[_0x3da7('0x145')](_0x4f3016,_0x21c5dd,_0x43ad39,_0x22b835,_0x39434b[_0x3da7('0x7f')]());return _0x4f3aeb;}[_0x3da7('0x2b')](_0x4a130f,_0x1f18d2=null,_0x5d8418={}){if(_0x4a130f[_0x3da7('0xa6')])return null;const _0x2a6211=this[_0x3da7('0x170')][_0x3da7('0xed')][_0x3da7('0x14e')](_0x3da7('0x17a'))['me'],_0x527471=new _0x9900e8(_0x4a130f[_0x3da7('0x109')],_0x4a130f['end']);for(const {suggestion:_0x24bfe3,meta:_0x2fec1c}of this[_0x3da7('0x54')](_0x527471,_0x3da7('0xa9')))if(_0x2fec1c[_0x3da7('0xc0')]&&!_0x2fec1c[_0x3da7('0x82')]){if(_0x24bfe3[_0x3da7('0x131')]){const _0x2e5a29=_0x24bfe3['getRanges']()[_0x3da7('0x36')](_0x59f16a=>_0x3da7('0x9c')!=_0x59f16a['root'][_0x3da7('0x11c')]);_0x2e5a29[_0x3da7('0xfa')](_0x147311=>_0x527471[_0x3da7('0x175')](_0x147311,!0x0))&&_0x24bfe3[_0x3da7('0xac')]();if(_0x2e5a29[_0x3da7('0x129')](_0x31e3b9=>_0x31e3b9[_0x3da7('0x175')](_0x527471,!0x0))){const _0xc2bd31=this[_0x3da7('0x46')][_0x3da7('0x5')]('deletion',_0x1f18d2,'accept');return this[_0x3da7('0x10a')](()=>_0xc2bd31([_0x527471],null,_0x5d8418)),null;}}else{const _0x27ad0e=_0x527471[_0x3da7('0x8c')](_0x24bfe3[_0x3da7('0x14d')]());null!==_0x27ad0e&&_0x24bfe3[_0x3da7('0x148')]([_0x27ad0e],null,_0x5d8418);}}if(_0x527471[_0x3da7('0x105')](),_0x527471[_0x3da7('0xa6')]||_0x3da7('0x9c')==_0x527471[_0x3da7('0x12b')][_0x3da7('0x11c')])return null;let _0x7fd031=null,_0x189077=_0x527471['start'],_0x144750=_0x527471[_0x3da7('0x4c')];const _0x4e38ec=this[_0x3da7('0x54')](_0x527471,'deletion');for(const {suggestion:_0x43eca4,meta:_0x27242b}of _0x4e38ec){const _0x580547=this[_0x3da7('0x107')][_0x3da7('0xb0')](_0x189077,_0x144750);if(_0x27242b[_0x3da7('0xc0')]&&(this['_mergeNestedSuggestions']||!_0x27242b[_0x3da7('0x1f')]&&!_0x27242b['isInsideObject'])){if(_0x43eca4[_0x3da7('0x131')]){if(!Gt(_0x43eca4,_0x5d8418))continue;let _0x17eaac=!0x0;for(const _0x3ee3f3 of _0x43eca4[_0x3da7('0x83')]()){if(_0x3ee3f3[_0x3da7('0x175')](_0x580547,!0x0))return _0x43eca4;_0x580547[_0x3da7('0x175')](_0x3ee3f3)||(_0x17eaac=!0x1);}_0x17eaac&&_0x43eca4['discard']();}else{const _0x232e6d=_0x43eca4[_0x3da7('0x14d')]();if(_0x232e6d['containsRange'](_0x580547,!0x0))return _0x43eca4;if(!Gt(_0x43eca4,_0x5d8418)){_0x580547['containsRange'](_0x232e6d)?_0x43eca4[_0x3da7('0xd2')]():_0x232e6d[_0x3da7('0x10c')](_0x189077)?_0x189077=_0x232e6d[_0x3da7('0x4c')]:_0x232e6d['containsPosition'](_0x144750)&&(_0x144750=_0x232e6d['start']);continue;}_0x189077=_0x189077[_0x3da7('0x123')](_0x232e6d['start'])?_0x189077:_0x232e6d['start'],_0x144750=_0x144750[_0x3da7('0x17e')](_0x232e6d[_0x3da7('0x4c')])?_0x144750:_0x232e6d[_0x3da7('0x4c')],_0x5d8418=Object[_0x3da7('0x74')]({},_0x43eca4[_0x3da7('0x9a')]),_0x7fd031?_0x232e6d['start'][_0x3da7('0x123')](_0x7fd031[_0x3da7('0x14d')]()['start'])?(_0x7fd031[_0x3da7('0xd2')](),_0x7fd031=_0x43eca4):_0x43eca4[_0x3da7('0xd2')]():_0x7fd031=_0x43eca4;}}}if(_0x7fd031)return this['_setSuggestionRange'](_0x7fd031,this['_model'][_0x3da7('0xb0')](_0x189077,_0x144750)),_0x7fd031;{const _0x4bafac=_0x371e7c(),_0x38466b=this[_0x3da7('0x107')][_0x3da7('0xb0')](_0x189077,_0x144750),_0x35f063=_0x2a6211['id'],_0x2ba7f8=_0x1f18d2?_0x3da7('0x2d')+_0x1f18d2:_0x3da7('0x67'),_0x38af15=this[_0x3da7('0xb8')]({'id':_0x4bafac,'type':_0x2ba7f8,'createdAt':new Date(),'authorId':_0x35f063,'attributes':_0x5d8418});return this[_0x3da7('0x145')](_0x2ba7f8,_0x4bafac,_0x35f063,_0x38466b),_0x38af15;}}[_0x3da7('0x29')](_0x7f3102,_0x3478c6=_0x3da7('0x15b'),_0x44b7b3={}){const _0x15a328=this[_0x3da7('0x170')][_0x3da7('0xed')][_0x3da7('0x14e')]('Users')['me'],_0x13cad0=_0x7f3102[_0x3da7('0x1a')](_0x165d64=>new _0x9900e8(_0x165d64[_0x3da7('0x109')],_0x165d64[_0x3da7('0x4c')])),_0x27cc2c=new Set();for(const {suggestion:_0xd856a6,meta:_0x1db082}of this[_0x3da7('0x54')](_0x13cad0,_0x3da7('0xa9')))_0x1db082[_0x3da7('0xc0')]&&!_0x1db082[_0x3da7('0x82')]&&_0x27cc2c[_0x3da7('0x97')](_0xd856a6);for(const _0x531dd7 of _0x27cc2c)if(_0x531dd7[_0x3da7('0x131')]){const _0x2c11e2=_0x531dd7[_0x3da7('0x83')]();(!_0x531dd7[_0x3da7('0x9a')]||!_0x531dd7[_0x3da7('0x9a')][_0x3da7('0x17d')])&&(_0x2c11e2['every'](_0x49548e=>_0x13cad0['some'](_0x35ed20=>_0x35ed20[_0x3da7('0x175')](_0x49548e,!0x0)))&&_0x531dd7[_0x3da7('0xac')]());if(_0x13cad0[_0x3da7('0xfa')](_0x261758=>_0x2c11e2[_0x3da7('0x129')](_0x1ad663=>_0x1ad663['containsRange'](_0x261758,!0x0)))){const _0x1de93e=this[_0x3da7('0x46')][_0x3da7('0x5')](_0x3da7('0x67'),_0x3478c6,_0x3da7('0x65'));return this[_0x3da7('0x10a')](()=>_0x1de93e(_0x7f3102,null,_0x44b7b3)),null;}}else{const _0x473c31=_0x531dd7['getFirstRange']();_0x13cad0[_0x3da7('0x129')](_0x487cee=>_0x487cee[_0x3da7('0x175')](_0x473c31,!0x0))&&_0x531dd7[_0x3da7('0xac')]();if(_0x13cad0[_0x3da7('0xfa')](_0x38c461=>_0x473c31[_0x3da7('0x175')](_0x38c461,!0x0))){const _0x5501ed=this[_0x3da7('0x46')]['getSuggestionCallback'](_0x3da7('0x67'),_0x3478c6,_0x3da7('0x65'));return this['forceDefaultExecution'](()=>_0x5501ed(_0x13cad0,null,_0x44b7b3)),null;}}const _0x5b068e=this[_0x3da7('0x46')][_0x3da7('0x5')](_0x3da7('0x67'),_0x3478c6,'join');let _0x245a5a=null;for(const _0x3d8f16 of this[_0x3da7('0x8f')]())if(_0x3d8f16[_0x3da7('0x16b')]['id']==_0x15a328['id']&&_0x3d8f16[_0x3da7('0x61')]&&_0x3da7('0x67')==_0x3d8f16[_0x3da7('0xbe')]&&_0x3d8f16[_0x3da7('0x98')]==_0x3478c6&&Gt(_0x3d8f16,_0x44b7b3)&&(_0x5b068e(_0x3d8f16['getRanges'](),_0x13cad0)||_0x5b068e(_0x13cad0,_0x3d8f16[_0x3da7('0x83')]()))){if(_0x245a5a){if(_0x3d8f16[_0x3da7('0xfc')]&&_0x3d8f16[_0x3da7('0xfc')][_0x3da7('0x106')])continue;for(const _0x7e7f25 of _0x3d8f16[_0x3da7('0x83')]())_0x245a5a[_0x3da7('0x5e')](_0x7e7f25)||_0x245a5a['addRange'](_0x7e7f25);_0x3d8f16['removeMarkers']();}else{_0x245a5a=_0x3d8f16;for(const _0x58bbf6 of _0x13cad0)_0x3d8f16[_0x3da7('0x5e')](_0x58bbf6)||_0x3d8f16[_0x3da7('0x149')](_0x58bbf6);}}if(_0x245a5a)return _0x245a5a;_0x27cc2c[_0x3da7('0x32')]();for(const {suggestion:_0x4f23de,meta:_0x4297d8}of this[_0x3da7('0x54')](_0x13cad0,_0x3da7('0x67')))_0x4297d8[_0x3da7('0xc0')]&&(this[_0x3da7('0x12a')]||!_0x4297d8[_0x3da7('0x1f')]&&!_0x4297d8[_0x3da7('0x139')])&&Gt(_0x4f23de,_0x44b7b3)&&_0x27cc2c[_0x3da7('0x97')](_0x4f23de);for(const _0xab0a2c of _0x27cc2c){const _0x5937e1=_0xab0a2c[_0x3da7('0x83')]();if(!_0x44b7b3||!_0x44b7b3[_0x3da7('0x17d')]){if(_0x13cad0[_0x3da7('0xfa')](_0x52e52f=>_0x5937e1['some'](_0x5383b3=>_0x5383b3[_0x3da7('0x175')](_0x52e52f,!0x0))))return _0xab0a2c;}(!_0xab0a2c[_0x3da7('0x9a')]||!_0xab0a2c[_0x3da7('0x9a')]['skipNestingCheck'])&&(_0x5937e1[_0x3da7('0xfa')](_0xf7092e=>_0x13cad0[_0x3da7('0x129')](_0xe7eadb=>_0xe7eadb[_0x3da7('0x175')](_0xf7092e,!0x0)))&&_0xab0a2c[_0x3da7('0xac')]());}const _0x36b2a=_0x371e7c(),_0x5ac956=_0x15a328['id'],_0x506c8a=_0x3da7('0x2d')+_0x3478c6,_0x5d655d=this[_0x3da7('0xb8')]({'id':_0x36b2a,'type':_0x506c8a,'createdAt':new Date(),'authorId':_0x5ac956,'attributes':_0x44b7b3});for(const _0x2df1b7 of _0x13cad0)_0x2df1b7['detach'](),_0x2df1b7[_0x3da7('0xa6')]||_0x3da7('0x9c')==_0x2df1b7['root'][_0x3da7('0x11c')]||this[_0x3da7('0x145')](_0x506c8a,_0x36b2a,_0x5ac956,_0x2df1b7,_0x39434b['getMultiRangeId']());return _0x5d655d;}[_0x3da7('0x5a')](_0x89b9dc,_0x2c6e0f,_0x5013a2,_0x14790f,_0x1be992){if(_0x89b9dc[_0x3da7('0xa6')])return[];if('never'===this[_0x3da7('0x147')])return[];const _0x3faada=this[_0x3da7('0x170')][_0x3da7('0xed')][_0x3da7('0x14e')](_0x3da7('0x17a'))['me']['id'],_0x169ceb=Array[_0x3da7('0x172')](this[_0x3da7('0x45')][_0x3da7('0x179')]())[_0x3da7('0x36')](_0x5ace67=>_0x3da7('0x2f')==_0x5ace67[_0x3da7('0xbe')]&&_0x5ace67['data'][_0x3da7('0xea')]==_0x2c6e0f&&_0x5ace67['isIntersectingWithRange'](_0x89b9dc));if(_0x3da7('0x16')===this[_0x3da7('0x147')]){const _0x483a10=this[_0x3da7('0x54')](_0x89b9dc,'insertion')[_0x3da7('0x36')](({meta:_0x270818})=>_0x270818[_0x3da7('0xc0')]&&!_0x270818[_0x3da7('0x139')]&&!_0x270818[_0x3da7('0x82')])[_0x3da7('0x1a')](({suggestion:_0x3b1f5b})=>_0x3b1f5b);_0x169ceb['unshift'](..._0x483a10);}const _0x47513a=new Map([[_0x89b9dc,_0x5013a2]]);for(const _0xae3f3 of _0x169ceb){const _0x3d8aef=_0x3da7('0x2f')==_0xae3f3['type']?_0xae3f3[_0x3da7('0x6b')][_0x3da7('0x4a')]:void 0x0,_0x3caa54=_0xae3f3[_0x3da7('0x14d')](),_0xe0d9ba=Array[_0x3da7('0x172')](_0x47513a[_0x3da7('0x63')]())[_0x3da7('0x27')](_0x23105d=>_0x23105d['isIntersecting'](_0x3caa54));if(!_0xe0d9ba)continue;const _0x7f1876=_0xe0d9ba[_0x3da7('0xe0')](_0x3caa54);this['_isBlockAttribute'](_0x2c6e0f)&&_0x3da7('0xa9')==_0xae3f3[_0x3da7('0xbe')]&&0x0!=_0x7f1876[_0x3da7('0x106')]||(_0x47513a[_0x3da7('0x5b')](_0xe0d9ba),_0x7f1876[_0x3da7('0xd4')](_0x4ea1b3=>{_0x47513a[_0x3da7('0x167')](_0x4ea1b3,_0x5013a2);}),'insertion'!=_0xae3f3['type']&&_0x3d8aef!=_0x14790f&&_0x47513a[_0x3da7('0x167')](_0xe0d9ba[_0x3da7('0x8c')](_0x3caa54),_0x3d8aef));}const _0xcc6125=[];for(const [_0x38ba4f,_0x3f545e]of _0x47513a){const _0x1f4651=_0x371e7c(),_0x4c24fc={'key':_0x2c6e0f,'oldValue':_0x3f545e,'newValue':_0x14790f};_0x2c6e0f[_0x3da7('0x106')]>0x25&&console['warn'](_0x3da7('0x88'),{'key':_0x2c6e0f});const _0x52736f=(_0x3da7('0xda')+(_0x2c6e0f+'|'+Et({'newValue':_0x14790f})))[_0x3da7('0x0')](0x0,0x3c),_0x3b2ab8=this[_0x3da7('0xb8')]({'id':_0x1f4651,'type':_0x52736f,'data':_0x4c24fc,'createdAt':new Date(),'authorId':_0x3faada,'attributes':_0x1be992});_0xcc6125[_0x3da7('0x185')](_0x3b2ab8),this[_0x3da7('0x145')](_0x52736f,_0x1f4651,_0x3faada,_0x38ba4f);}return _0xcc6125;}[_0x3da7('0x79')](_0xa38947){this['_blockAttributeKeys'][_0x3da7('0x97')](_0xa38947);}[_0x3da7('0x35')](_0x3adbcc){this[_0x3da7('0xe9')][_0x3da7('0x97')](_0x3adbcc);}[_0x3da7('0x130')](_0xd2cf35,_0x41feb9=[],_0x4e458a=[]){this[_0x3da7('0x173')](_0xd2cf35,(_0x24e5e6,..._0x4aec65)=>{this[_0x3da7('0xe5')](()=>{_0x24e5e6(..._0x4aec65);});});for(const _0x315fa1 of _0x41feb9)this[_0x3da7('0x35')](_0x315fa1);for(const _0x3704c8 of _0x4e458a)this[_0x3da7('0x79')](_0x3704c8);}[_0x3da7('0xc5')](_0x378c18,_0x467e99){const _0x295750=_0x378c18[_0x3da7('0x64')]();this[_0x3da7('0x107')][_0x3da7('0x56')](_0x473baa=>{_0x473baa[_0x3da7('0xd7')](_0x295750,{'range':_0x467e99});});}[_0x3da7('0x114')](_0x1b54e4){const _0x2f1f6e=_0x1b54e4['id'],_0x3d69a7=this[_0x3da7('0x170')][_0x3da7('0x5c')][_0x3da7('0x14e')](_0x3da7('0xa8'));this[_0x3da7('0x38')]['hasCommentThread'](_0x2f1f6e)||this[_0x3da7('0x38')][_0x3da7('0x41')]({'channelId':_0x3d69a7,'threadId':_0x2f1f6e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x15166e=this[_0x3da7('0x38')][_0x3da7('0xd8')](_0x2f1f6e);_0x15166e[_0x3da7('0xf9')]('isRemovable'),_0x15166e[_0x3da7('0x8d')]=!0x1,_0x1b54e4[_0x3da7('0xfc')]=_0x15166e;}['_checkSuggestionCorrectness'](_0x47142b,_0x122201,_0x2ac38c,_0x5a305b){if(_0x47142b[_0x3da7('0xbe')]!=_0x122201||_0x47142b[_0x3da7('0x98')]!=_0x2ac38c||_0x47142b[_0x3da7('0xf2')]['id']!=_0x5a305b)throw this[_0x3da7('0x170')][_0x3da7('0x68')](_0x3da7('0x144')),new _0x25c9d9(_0x3da7('0x144'),this);}[_0x3da7('0x10b')](_0x3e7c25,_0x14dde8){const _0x423f91=_0x3e7c25[_0x3da7('0x14d')]();if(_0x14dde8[_0x3da7('0xde')](_0x423f91))_0x3e7c25[_0x3da7('0xd2')]();else{if(_0x423f91[_0x3da7('0x175')](_0x14dde8)){const _0x371f14=this[_0x3da7('0x107')][_0x3da7('0x12f')](_0x14dde8[_0x3da7('0x109')][_0x3da7('0x103')],_0x3da7('0x4c'));this[_0x3da7('0xc5')](_0x3e7c25,this['_model'][_0x3da7('0xb0')](_0x423f91[_0x3da7('0x109')],_0x371f14));const _0x40b104=_0x371e7c(),_0x15e0bc=_0x3e7c25['creator']['id'],_0x46c2d0=_0x3e7c25[_0x3da7('0xbe')]+':'+_0x3e7c25[_0x3da7('0x98')];this[_0x3da7('0xb8')]({'id':_0x40b104,'type':_0x46c2d0,'createdAt':new Date(),'authorId':_0x15e0bc,'data':_0x3e7c25[_0x3da7('0x6b')],'attributes':_0x3e7c25[_0x3da7('0x9a')]});const _0x2764d3=this[_0x3da7('0x107')][_0x3da7('0x12f')](_0x14dde8[_0x3da7('0x4c')]['parent'],'after'),_0x4771ac=this[_0x3da7('0x107')][_0x3da7('0xb0')](_0x2764d3,_0x423f91[_0x3da7('0x4c')]);this['_addSuggestionMarker'](_0x46c2d0,_0x40b104,_0x15e0bc,_0x4771ac);}else{if(_0x423f91['containsPosition'](_0x14dde8[_0x3da7('0x109')])){const _0x45558f=this[_0x3da7('0x107')]['createPositionAt'](_0x14dde8[_0x3da7('0x109')][_0x3da7('0x103')],_0x3da7('0x4c'));this[_0x3da7('0xc5')](_0x3e7c25,this[_0x3da7('0x107')][_0x3da7('0xb0')](_0x423f91['start'],_0x45558f));}else{const _0x4f881c=this[_0x3da7('0x107')]['createPositionAt'](_0x14dde8[_0x3da7('0x4c')][_0x3da7('0xff')],_0x3da7('0xf7'));this[_0x3da7('0xc5')](_0x3e7c25,this['_model']['createRange'](_0x4f881c,_0x423f91['end']));}}}}[_0x3da7('0xb2')](_0x40b93b){for(const {suggestion:_0x1364f2,meta:_0x12fca7}of this['_findSuggestions'](_0x40b93b,'insertion')){if(!_0x12fca7[_0x3da7('0xc0')])continue;const _0x423d13=_0x1364f2[_0x3da7('0x83')]();for(const _0x5c87d1 of _0x423d13)if(!_0x40b93b[_0x3da7('0xe0')](_0x5c87d1)['length'])return!0x0;}return!0x1;}[_0x3da7('0x33')](_0x4c90c4){const _0x5c0bc8=this['editor'][_0x3da7('0xed')][_0x3da7('0x14e')](_0x3da7('0x17a'))[_0x3da7('0x17f')](_0x4c90c4);if(!_0x5c0bc8)throw new _0x25c9d9(_0x3da7('0x16c'),this);return _0x5c0bc8;}[_0x3da7('0xc7')](_0x17acc1){const _0x522ad4=this[_0x3da7('0x170')][_0x3da7('0xed')][_0x3da7('0x14e')](_0x3da7('0x17a')),_0x4fdf5e=_0x5d1574(_0x3da7('0x160')+_0x17acc1),_0x588fd7=_0x522ad4[_0x3da7('0x17f')](_0x4fdf5e);return _0x588fd7||_0x522ad4[_0x3da7('0x153')]({'id':_0x4fdf5e,'name':_0x17acc1});}[_0x3da7('0xba')](_0x12e78d,_0xbf003c,_0x41e932,_0x3d01e1,_0x428d3b){const _0x493c5e=this[_0x3da7('0x33')](_0x3d01e1),_0x4e763b=this[_0x3da7('0x46')]['buildSuggestion'](_0x12e78d,_0xbf003c,_0x41e932,_0x493c5e,_0x428d3b,_0x34835b=>this[_0x3da7('0xb6')](_0x41e932,{'attributes':_0x34835b}));return this[_0x3da7('0x75')](_0x4e763b,_0x3da7('0x65'),()=>{this[_0x3da7('0xb6')](_0x41e932,{'state':'accepted'});},{'priority':_0x3da7('0x26')}),this[_0x3da7('0x75')](_0x4e763b,_0x3da7('0xac'),()=>{this[_0x3da7('0xb6')](_0x41e932,{'state':_0x3da7('0xd1')});},{'priority':'high'}),this['_suggestions'][_0x3da7('0x167')](_0x41e932,_0x4e763b),this[_0x3da7('0x92')]['set'](_0x4e763b,_0x3da7('0x101')),_0x4e763b;}[_0x3da7('0x171')](_0x5bc605){const _0x34d8ca=_0x5bc605[_0x3da7('0x48')](':');return{'group':_0x34d8ca[0x0],'type':_0x34d8ca[0x1],'subType':_0x34d8ca[_0x3da7('0x106')]>=0x5?_0x34d8ca[0x2]:null,'id':_0x34d8ca['length']<0x5?_0x34d8ca[0x2]:_0x34d8ca[0x3],'authorId':_0x34d8ca[_0x3da7('0x106')]<0x5?_0x34d8ca[0x3]:_0x34d8ca[0x4],'markerCount':0x6==_0x34d8ca[_0x3da7('0x106')]?_0x34d8ca[0x5]:null};}[_0x3da7('0x118')](_0x339039,_0x4c9814,_0x34e274){const _0x2eaae8=_0x339039[_0x3da7('0x14d')](),_0x38185a=_0x2eaae8[_0x3da7('0x109')],_0x57177f=_0x2eaae8['end'];this['_setSuggestionRange'](_0x339039,this[_0x3da7('0x107')]['createRange'](_0x38185a,_0x4c9814));const _0x30556d=_0x371e7c(),_0x865db2=_0x339039[_0x3da7('0xf2')]['id'],_0x2738ab=_0x339039[_0x3da7('0xbe')]+(_0x339039[_0x3da7('0x98')]?':'+_0x339039[_0x3da7('0x98')]:'');this[_0x3da7('0xb8')]({'id':_0x30556d,'type':_0x2738ab,'createdAt':new Date(),'authorId':_0x865db2,'originalSuggestionId':_0x339039['id'],'attributes':_0x339039[_0x3da7('0x9a')],'data':_0x339039[_0x3da7('0x6b')]});const _0x2ba505=Pt(_0x339039);(_0x3da7('0x111')==_0x339039[_0x3da7('0xbe')]||_0x2ba505&&this[_0x3da7('0xe8')](_0x2ba505))&&(_0x34e274=this[_0x3da7('0x107')][_0x3da7('0x2c')](_0x34e274[_0x3da7('0xff')])),this[_0x3da7('0x145')](_0x2738ab,_0x30556d,_0x865db2,this['_model'][_0x3da7('0xb0')](_0x34e274,_0x57177f));}[_0x3da7('0x54')](_0x3b111b,_0x2a5533=null){const _0x39e5d2=[],_0x3bbb47=this[_0x3da7('0x170')][_0x3da7('0xed')]['get'](_0x3da7('0x17a'))['me'];Array[_0x3da7('0x53')](_0x3b111b)||(_0x3b111b=[_0x3b111b]);for(const _0x2d64fc of this[_0x3da7('0x8f')]()){if(!_0x2d64fc[_0x3da7('0x61')])continue;if(_0x2a5533&&_0x2d64fc[_0x3da7('0xbe')]!=_0x2a5533)continue;let _0x36d49e=!0x1;for(const _0x110f79 of _0x2d64fc[_0x3da7('0x83')]()){for(const _0xba2b96 of _0x3b111b){const _0x9975aa=_0xba2b96[_0x3da7('0x109')][_0x3da7('0xde')](_0x110f79[_0x3da7('0x4c')])||_0xba2b96[_0x3da7('0x4c')][_0x3da7('0xde')](_0x110f79['start']);if(_0x9975aa||_0xba2b96[_0x3da7('0x8c')](_0x110f79)){const _0x72454f=_0xba2b96['containsRange'](_0x110f79)&&Bt(this[_0x3da7('0x107')][_0x3da7('0x6f')],_0x110f79[_0x3da7('0x109')],_0xba2b96),_0x4f7352=_0x110f79[_0x3da7('0x175')](_0xba2b96)&&Bt(this[_0x3da7('0x107')]['schema'],_0xba2b96['start'],_0x110f79);_0x39e5d2['push']({'suggestion':_0x2d64fc,'meta':{'isOwn':_0x3bbb47==_0x2d64fc[_0x3da7('0x16b')],'isNextTo':_0x9975aa,'isInsideObject':_0x72454f,'containsRangeInObject':_0x4f7352}}),_0x36d49e=!0x0;break;}}if(_0x36d49e)break;}}return _0x39e5d2;}['_addSuggestionMarker'](_0x2926bf,_0x2c2298,_0x1676f8,_0x27bf2c,_0x5456d9){this['_model'][_0x3da7('0x56')](_0x5748c6=>{let _0x5a44e2=_0x3da7('0x13')+_0x2926bf+':'+_0x2c2298+':'+_0x1676f8;_0x5456d9&&(_0x5a44e2=_0x5a44e2+':'+_0x5456d9),_0x5748c6[_0x3da7('0x93')](_0x5a44e2,{'range':_0x27bf2c,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3da7('0xf4')](_0x3f304c){const _0x1c9f83=_0x3f304c[_0x3da7('0xd')],_0x6cbb52=_0x3f304c[_0x3da7('0xfb')];_0x3f304c[_0x3da7('0xd')]=null,_0x3f304c[_0x3da7('0xfb')]=null,null!=_0x1c9f83&&(_0x1c9f83[_0x3da7('0xfb')]=_0x6cbb52),null!=_0x6cbb52&&(_0x6cbb52[_0x3da7('0xd')]=_0x1c9f83),'ready'==this['_suggestionState'][_0x3da7('0x14e')](_0x3f304c)&&(this[_0x3da7('0x92')][_0x3da7('0x167')](_0x3f304c,'removed'),this['fire'](_0x3da7('0xf8'),_0x3f304c,_0x1c9f83,_0x6cbb52));}[_0x3da7('0xb8')](_0x1ee389){const _0xf2d305=_0x1ee389['id'],_0x450d45=this[_0x3da7('0xc')](_0x1ee389);if(this[_0x3da7('0x133')]&&this[_0x3da7('0x133')][_0x3da7('0xd3')]){const _0x1c103c=this[_0x3da7('0x170')][_0x3da7('0xed')][_0x3da7('0x14e')](_0x3da7('0xe2')),_0x9e08cd=_0x450d45[_0x3da7('0xc9')],_0x4277a5=_0x450d45[_0x3da7('0x98')]?_0x450d45['type']+':'+_0x450d45[_0x3da7('0x98')]:_0x450d45[_0x3da7('0xbe')],_0xa23249=this[_0x3da7('0x170')][_0x3da7('0x8')],_0x5a60c4=_0x1c103c['add'](_0x190d68(_0xa23249,_0x3da7('0x116'))),_0x2cf730={'id':_0xf2d305,'type':_0x4277a5,'hasComments':_0x9e08cd,'data':_0x1ee389[_0x3da7('0x6b')]||null,'originalSuggestionId':_0x1ee389[_0x3da7('0x168')]||null,'attributes':_0x450d45['attributes']};this[_0x3da7('0x133')][_0x3da7('0xd3')](_0x2cf730)[_0x3da7('0x14b')](_0x2b81d2=>{_0x450d45['_saved']=!0x0,_0x1c103c[_0x3da7('0xd5')](_0x5a60c4),_0x2b81d2&&_0x2b81d2[_0x3da7('0x43')]&&(this[_0x3da7('0x45')][_0x3da7('0x14e')](_0xf2d305)[_0x3da7('0x43')]=_0x2b81d2['createdAt']);})[_0x3da7('0x7')](_0x25e7d7=>{throw _0x43bb45('error-saving-suggestion-data-suggestion-discarded'),this[_0x3da7('0x170')][_0x3da7('0xf1')][_0x3da7('0xca')]({'isUndoable':!0x1},()=>{_0x450d45['discard']();}),_0x450d45[_0x3da7('0x15f')](),this[_0x3da7('0x45')][_0x3da7('0x5b')](_0x450d45['id']),this[_0x3da7('0x92')][_0x3da7('0x5b')](_0x450d45),_0x25e7d7;});}return _0x450d45;}['_isBlockAttribute'](_0x3fbe79){return this[_0x3da7('0x146')][_0x3da7('0x11d')](_0x3fbe79);}['_updateSuggestionData'](_0x88af30,_0x59c86c){const _0x4301e9=this['editor'][_0x3da7('0xed')]['get'](_0x3da7('0xe2')),_0x1a7ab9=this['getSuggestion'](_0x88af30);if(this['_adapter']&&this[_0x3da7('0x133')][_0x3da7('0x4d')]){if(_0x1a7ab9[_0x3da7('0x86')]){const _0x50a95e=_0x4301e9[_0x3da7('0x97')](_0x190d68(this[_0x3da7('0x170')][_0x3da7('0x8')],_0x3da7('0x116')));this[_0x3da7('0x133')][_0x3da7('0x4d')](_0x88af30,_0x59c86c)['then'](()=>{_0x4301e9[_0x3da7('0xd5')](_0x50a95e);});}else _0x1a7ab9['on'](_0x3da7('0x163'),()=>{this[_0x3da7('0xb6')](_0x88af30,_0x59c86c);});}}[_0x3da7('0x99')](_0x2ccd97){if(!this[_0x3da7('0x133')]||!this['_adapter'][_0x3da7('0x134')])throw new _0x25c9d9('track-changes-adapter-missing-getsuggestion',this);return this[_0x3da7('0x133')]['getSuggestion'](_0x2ccd97);}[_0x3da7('0x12c')](_0x290891){const {id:_0x33806c,type:_0x2d4cd6,subType:_0xbd7d03,authorId:_0x595426}=this[_0x3da7('0x171')](_0x290891),_0x19f0fb=this[_0x3da7('0x45')][_0x3da7('0x14e')](_0x33806c)||this['_createSuggestion'](_0x2d4cd6,_0xbd7d03,_0x33806c,_0x595426,{});switch(this[_0x3da7('0x166')](_0x19f0fb,_0x2d4cd6,_0xbd7d03,_0x595426),this[_0x3da7('0x92')]['get'](_0x19f0fb)){case'notReady':this[_0x3da7('0x99')](_0x33806c)[_0x3da7('0x14b')](_0xaf79e5=>{let _0x1b53ab=Promise['resolve']();_0xaf79e5[_0x3da7('0xc9')]&&(_0x1b53ab=this[_0x3da7('0x38')][_0x3da7('0x89')]({'channelId':this[_0x3da7('0x170')][_0x3da7('0x5c')]['get'](_0x3da7('0xa8')),'threadId':_0x33806c})),_0x1b53ab[_0x3da7('0x14b')](()=>{this[_0x3da7('0xc')](_0xaf79e5)[_0x3da7('0x86')]=!0x0;});}),this['_suggestionState']['set'](_0x19f0fb,_0x3da7('0x128'));break;case _0x3da7('0x9'):this[_0x3da7('0xb6')](_0x33806c,{'state':_0x3da7('0x85')});case'dataReady':this[_0x3da7('0x92')]['set'](_0x19f0fb,_0x3da7('0xb1')),this[_0x3da7('0x18')]('suggestionLoaded',_0x19f0fb);break;case _0x3da7('0xb1'):this[_0x3da7('0x18')](_0x3da7('0x12e'),_0x19f0fb);}return _0x19f0fb[_0x3da7('0x4b')](_0x290891),_0x19f0fb;}[_0x3da7('0x11f')](_0x5c5d37){const _0x4d47e4=Array[_0x3da7('0x172')](_0x5c5d37),_0x2876ed=_0x4d47e4[_0x3da7('0x36')](_0x12a74c=>_0x3da7('0x2f')==_0x12a74c['type']);this[_0x3da7('0x156')](_0x2876ed);const _0x18c8c6=_0x4d47e4[_0x3da7('0x36')](_0x45ac3f=>!_0x45ac3f[_0x3da7('0x131')]&&'attribute'!=_0x45ac3f['type']),_0x3d92c7=this[_0x3da7('0x8f')]({'skipNotAttached':!0x0})[_0x3da7('0x36')](_0x123f70=>!_0x123f70[_0x3da7('0x131')]&&'attribute'!=_0x123f70[_0x3da7('0xbe')]),_0x376bda=_0x3d92c7[_0x3da7('0x36')](_0x4ed90d=>!_0x5c5d37[_0x3da7('0x11d')](_0x4ed90d)),_0x4701a1=new Map(_0x3d92c7[_0x3da7('0x1a')](_0x142364=>[_0x142364,this[_0x3da7('0x46')][_0x3da7('0x5')](_0x142364[_0x3da7('0xbe')],_0x142364[_0x3da7('0x98')],_0x3da7('0x1'))])),_0xb5899c=new Map(_0x3d92c7[_0x3da7('0x1a')](_0x2aa4f9=>[_0x2aa4f9,_0x2aa4f9[_0x3da7('0x14d')]()])),_0x5028fe=new Set(),_0x23f208=new Set();for(let _0x2ddaad=0x0;_0x2ddaad<_0x18c8c6[_0x3da7('0x106')];_0x2ddaad++)_0x1a35d3(_0x18c8c6[_0x2ddaad],_0x18c8c6,_0x2ddaad+0x1);for(let _0x376301=0x0;_0x376301<_0x18c8c6[_0x3da7('0x106')];_0x376301++)_0x1a35d3(_0x18c8c6[_0x376301],_0x376bda,0x0);const _0x4f6086=new Set();for(let _0x2a2f30=0x0;_0x2a2f30<_0x18c8c6[_0x3da7('0x106')];_0x2a2f30++){const _0xec1cfa=_0x18c8c6[_0x2a2f30];!_0x23f208[_0x3da7('0x11d')](_0xec1cfa)&&_0xec1cfa['previous']&&(_0x4f6086[_0x3da7('0x97')](_0xec1cfa['previous']),_0xec1cfa[_0x3da7('0xd')][_0x3da7('0xfb')]===_0xec1cfa&&(_0xec1cfa[_0x3da7('0xd')][_0x3da7('0xfb')]=null),_0xec1cfa[_0x3da7('0xd')]=null),!_0x5028fe[_0x3da7('0x11d')](_0xec1cfa)&&_0xec1cfa['next']&&(_0x4f6086['add'](_0xec1cfa[_0x3da7('0xfb')]),_0xec1cfa[_0x3da7('0xfb')][_0x3da7('0xd')]===_0xec1cfa&&(_0xec1cfa[_0x3da7('0xfb')][_0x3da7('0xd')]=null),_0xec1cfa['next']=null);}function _0x1a35d3(_0x3609ca,_0x493d3d,_0xcfd30e){for(let _0x5108f3=_0xcfd30e;_0x5108f3<_0x493d3d[_0x3da7('0x106')];_0x5108f3++){const _0x1a9aa8=_0x7e8179(_0x3609ca,_0x493d3d[_0x5108f3]);_0x1a9aa8&&(_0x1a9aa8[0x0][_0x3da7('0xfb')]=_0x1a9aa8[0x1],_0x1a9aa8[0x1][_0x3da7('0xd')]=_0x1a9aa8[0x0],_0x5028fe[_0x3da7('0x97')](_0x1a9aa8[0x0]),_0x23f208[_0x3da7('0x97')](_0x1a9aa8[0x1]));}}function _0x7e8179(_0x51d0d7,_0x33640f){if(_0x51d0d7[_0x3da7('0x16b')]['id']!==_0x33640f[_0x3da7('0x16b')]['id'])return null;const _0x413c88=_0x4701a1[_0x3da7('0x14e')](_0x51d0d7)(_0x51d0d7,_0x33640f,_0xb5899c['get'](_0x51d0d7),_0xb5899c[_0x3da7('0x14e')](_0x33640f));if(!_0x413c88)return null;return _0x4701a1[_0x3da7('0x14e')](_0x33640f)(_0x51d0d7,_0x33640f,_0xb5899c['get'](_0x51d0d7),_0xb5899c[_0x3da7('0x14e')](_0x33640f))?_0x413c88[0x1][_0x3da7('0xfc')]&&_0x413c88[0x1]['commentThread'][_0x3da7('0x106')]?null:_0x413c88:null;}_0x4f6086[_0x3da7('0xa')]&&this[_0x3da7('0x11f')](_0x4f6086);}[_0x3da7('0x156')](_0x200c91){if(0x0==_0x200c91['length'])return;const _0x514de7=this[_0x3da7('0x8f')]({'skipNotAttached':!0x0})[_0x3da7('0x36')](_0x550f88=>_0x3da7('0x2f')==_0x550f88['type']&&_0x550f88[_0x3da7('0xcb')]),_0x3fa6c2=[],_0x1a2ecc=new Map();for(const _0x525b86 of _0x514de7){const _0x4452bf=_0x5d1574(_0x525b86[_0x3da7('0x9a')]);_0x1a2ecc[_0x3da7('0x11d')](_0x4452bf)||(_0x1a2ecc['set'](_0x4452bf,_0x3fa6c2[_0x3da7('0x106')]),_0x3fa6c2[_0x3da7('0x185')]([]));const _0x236c49=_0x1a2ecc['get'](_0x4452bf);_0x3fa6c2[_0x236c49][_0x3da7('0x185')](_0x525b86);}!function(){_0x3fa6c2[_0x3da7('0x31')]((_0x55a2fe,_0x2406e3)=>{const _0x246de2=_0x55a2fe[0x0][_0x3da7('0x43')],_0x4713bc=_0x2406e3[0x0]['createdAt'];return _0x246de2==_0x4713bc?_0x55a2fe[0x0][_0x3da7('0x9a')]['groupId']<_0x2406e3[0x0]['attributes'][_0x3da7('0x7e')]?-0x1:0x1:_0x246de2<_0x4713bc?-0x1:0x1;});for(const _0x3c2ae2 of _0x3fa6c2)_0x3c2ae2[_0x3da7('0x31')]((_0xff2f5e,_0x4dfb7e)=>_0xff2f5e['id']<_0x4dfb7e['id']?-0x1:0x1);}();for(let _0x2bdfc6=0x0;_0x2bdfc6<_0x3fa6c2['length'];_0x2bdfc6++){if(0x0==_0x3fa6c2[_0x2bdfc6]['length'])continue;const _0x43e877=[];for(let _0x266d18=_0x2bdfc6+0x1;_0x266d18<_0x3fa6c2[_0x3da7('0x106')];_0x266d18++)0x0!=_0x3fa6c2[_0x266d18][_0x3da7('0x106')]&&_0x2c7712(_0x3fa6c2[_0x2bdfc6],_0x3fa6c2[_0x266d18])&&_0x43e877['push'](_0x266d18);for(const _0x52c5f2 of _0x43e877)_0x3fa6c2[_0x2bdfc6]=_0x3fa6c2[_0x2bdfc6][_0x3da7('0x73')](_0x3fa6c2[_0x52c5f2]),_0x3fa6c2[_0x52c5f2]=[];}for(const _0x1701a9 of _0x3fa6c2)for(let _0x67b9b2=0x0;_0x67b9b2<_0x1701a9[_0x3da7('0x106')];_0x67b9b2++)_0x1701a9[_0x67b9b2]['next']=_0x1701a9[_0x67b9b2+0x1]||null;for(const _0x23d158 of _0x3fa6c2)for(let _0x39f149=0x0;_0x39f149<_0x23d158[_0x3da7('0x106')];_0x39f149++)_0x23d158[_0x39f149][_0x3da7('0xd')]=_0x23d158[_0x39f149-0x1]||null;function _0x2c7712(_0x98d159,_0x4a8444){if(_0x98d159[0x0][_0x3da7('0x16b')]!==_0x4a8444[0x0][_0x3da7('0x16b')])return!0x1;if(!function(_0xfbd969,_0x7f44b6){if(!_0xfbd969[_0x3da7('0xc9')]&&!_0x7f44b6[_0x3da7('0xc9')])return!0x0;if(_0xfbd969['hasComments']&&_0x7f44b6['hasComments'])return!0x1;if(_0xfbd969['hasComments']&&_0x7f44b6[_0x3da7('0x43')]<_0xfbd969['commentThread']['comments'][_0x3da7('0x14e')](0x0)[_0x3da7('0x43')])return!0x0;if(_0x7f44b6[_0x3da7('0xc9')]&&_0xfbd969[_0x3da7('0x43')]<_0x7f44b6[_0x3da7('0xfc')][_0x3da7('0x72')][_0x3da7('0x14e')](0x0)[_0x3da7('0x43')])return!0x0;return!0x1;}(_0x98d159[0x0],_0x4a8444[0x0]))return!0x1;const _0x357517=_0x32eebb(_0x98d159[0x0][_0x3da7('0x9a')],_0x3da7('0x7e')),_0xdb8824=_0x32eebb(_0x4a8444[0x0][_0x3da7('0x9a')],_0x3da7('0x7e'));if(!_0x46524a(_0x357517,_0xdb8824))return!0x1;return!!_0x98d159[_0x3da7('0xfa')](_0x925513=>_0x4a8444[_0x3da7('0x129')](_0x2466c1=>_0x925513['getFirstRange']()['isEqual'](_0x2466c1[_0x3da7('0x14d')]())))&&_0x4a8444[_0x3da7('0xfa')](_0x125787=>_0x98d159[_0x3da7('0x129')](_0x4f3a32=>_0x125787['getFirstRange']()[_0x3da7('0xde')](_0x4f3a32[_0x3da7('0x14d')]())));}}[_0x3da7('0x15c')](_0x34e115){const _0x2d2931=Array[_0x3da7('0x172')](_0x34e115),_0x3a897b=this[_0x3da7('0x8f')]({'skipNotAttached':!0x0}),_0x195ad3=_0x3a897b[_0x3da7('0x36')](_0x274ded=>!_0x34e115['has'](_0x274ded)),_0x58d5d9=new Map(_0x2d2931[_0x3da7('0x1a')](_0x574e47=>[_0x574e47,this[_0x3da7('0x46')]['getSuggestionCallback'](_0x574e47[_0x3da7('0xbe')],_0x574e47[_0x3da7('0x98')],'join')])),_0x4e6ea8=new Map(_0x3a897b[_0x3da7('0x1a')](_0x1eba91=>[_0x1eba91,_0x1eba91[_0x3da7('0x83')]()]));for(let _0x50b6a5=0x0;_0x50b6a5<_0x2d2931[_0x3da7('0x106')];_0x50b6a5++){if(_0x2f7535(this,_0x2d2931[_0x50b6a5],_0x2d2931,_0x50b6a5+0x1))return!0x0;}for(let _0x2931e5=0x0;_0x2931e5<_0x2d2931[_0x3da7('0x106')];_0x2931e5++){if(_0x2f7535(this,_0x2d2931[_0x2931e5],_0x195ad3,0x0))return!0x0;}return!0x1;function _0x2f7535(_0x181077,_0x2957aa,_0x4c265f,_0x34928b){for(let _0xb07ca0=_0x34928b;_0xb07ca0<_0x4c265f[_0x3da7('0x106')];_0xb07ca0++){const _0x577b84=_0x4c265f[_0xb07ca0];if(_0x577b84[_0x3da7('0xbe')]!==_0x2957aa[_0x3da7('0xbe')]||_0x577b84[_0x3da7('0x16b')]['id']!==_0x2957aa[_0x3da7('0x16b')]['id']||_0x577b84[_0x3da7('0x98')]!==_0x2957aa[_0x3da7('0x98')])continue;if(!Vt(_0x2957aa,_0x577b84))continue;if('attribute'==_0x2957aa[_0x3da7('0xbe')]&&_0x2957aa[_0x3da7('0x6b')]['oldValue']!=_0x577b84[_0x3da7('0x6b')]['oldValue'])continue;if('attribute'==_0x2957aa[_0x3da7('0xbe')]&&_0x181077[_0x3da7('0xe8')](_0x2957aa[_0x3da7('0x6b')][_0x3da7('0xea')]))continue;if(_0x3da7('0x111')==_0x2957aa['type']){const _0x34f59f=_0x181077[_0x3da7('0x170')][_0x3da7('0xf1')],_0x1def49=_0x2957aa[_0x3da7('0x14a')]();if(_0x1def49&&(_0x34f59f[_0x3da7('0x6f')][_0x3da7('0x7d')](_0x1def49)||_0x34f59f['schema'][_0x3da7('0x162')](_0x1def49)))continue;}const _0x137ae4=_0x58d5d9[_0x3da7('0x14e')](_0x2957aa),_0xaf0702=_0x4e6ea8['get'](_0x2957aa),_0x239728=_0x4e6ea8[_0x3da7('0x14e')](_0x577b84),_0x555063=_0x2957aa[_0x3da7('0xfc')]&&_0x2957aa['commentThread'][_0x3da7('0x106')],_0x4c770a=_0x577b84['commentThread']&&_0x577b84[_0x3da7('0xfc')][_0x3da7('0x106')];if(!_0x555063&&_0x137ae4(_0x239728,_0xaf0702))return _0x181077['_joinSuggestions'](_0x577b84,_0x2957aa),_0x4e6ea8[_0x3da7('0x5b')](_0x2957aa),!0x0;if(!_0x4c770a&&_0x137ae4(_0xaf0702,_0x239728))return _0x181077['_joinSuggestions'](_0x2957aa,_0x577b84),_0x4e6ea8[_0x3da7('0x5b')](_0x577b84),!0x0;}return!0x1;}}[_0x3da7('0xee')](_0x211de7,_0x5ca109){if(_0x211de7[_0x3da7('0x131')])for(const _0xfc9600 of _0x5ca109[_0x3da7('0x83')]())_0x211de7[_0x3da7('0x149')](_0xfc9600);else{const _0x47a1f7=_0x5ca109['getFirstRange']()[_0x3da7('0x4c')];this['_setSuggestionRange'](_0x211de7,this[_0x3da7('0x107')][_0x3da7('0xb0')](_0x211de7[_0x3da7('0x14d')]()[_0x3da7('0x109')],_0x47a1f7));}_0x5ca109['removeMarkers']();}[_0x3da7('0x10e')](_0x59b82d,_0x36e411){const _0x17b380=_0x59b82d[_0x3da7('0x3c')]('format')||_0x59b82d[_0x3da7('0x3c')](_0x3da7('0x2f'))?_0x3da7('0x5f'):_0x59b82d['toUpperCase']();return _0x190d68(this[_0x3da7('0x170')][_0x3da7('0x8')],_0x36e411+'_'+_0x17b380+'_SUGGESTION_ANNOUNCEMENT');}[_0x3da7('0x154')](){const _0x586247=this[_0x3da7('0x170')];_0x5ac87a(this[_0x3da7('0x107')],({left:_0x478960,entered:_0x3eff23})=>{const _0x22e43e=[];for(const _0xece0d2 of _0x478960){const {group:_0x3e12ad,type:_0x1b6920}=this[_0x3da7('0x171')](_0xece0d2[_0x3da7('0x60')]);if('suggestion'===_0x3e12ad){_0x22e43e['push'](this[_0x3da7('0x10e')](_0x1b6920,_0x3da7('0xd0')));break;}}for(const _0x1a3c33 of _0x3eff23){const {group:_0x4f0b05,type:_0x2378a2}=this[_0x3da7('0x171')](_0x1a3c33[_0x3da7('0x60')]);if(_0x3da7('0xb9')===_0x4f0b05){_0x22e43e[_0x3da7('0x185')](this['_getMarkerAnnouncementText'](_0x2378a2,_0x3da7('0x25')));break;}}_0x22e43e['length']&&_0x586247['ui'][_0x3da7('0xe4')][_0x3da7('0xcd')](_0x3da7('0xbc'),_0x22e43e[_0x3da7('0x39')]('\x20'));});}[_0x3da7('0x12d')](_0x3a8657){if(null!==this[_0x3da7('0xc1')])return!0x1;const _0x56a9ea=this['editor'],_0x49e3fc=_0x56a9ea[_0x3da7('0xf1')]['document'][_0x3da7('0xfe')][_0x3da7('0x164')]();if(0x0==_0x49e3fc[_0x3da7('0x106')])return!0x1;const _0x3f0960=[],_0x57565d=_0x49e3fc[_0x3da7('0x36')](_0x134757=>'attribute'==_0x134757['type']),_0x4be8c6=_0x49e3fc[_0x3da7('0x36')](_0x273a8e=>_0x3da7('0xb7')==_0x273a8e['type']&&_0x3da7('0x78')!=_0x273a8e[_0x3da7('0x60')]),_0x7e8b50=_0x49e3fc[_0x3da7('0x36')](_0x32fd63=>_0x3da7('0xd5')==_0x32fd63[_0x3da7('0xbe')]&&_0x3da7('0x78')!=_0x32fd63[_0x3da7('0x60')]);for(const _0xb2fb55 of _0x57565d)_0x3f0960[_0x3da7('0x185')]({'key':_0xb2fb55[_0x3da7('0x12')],'newValue':_0xb2fb55[_0x3da7('0x37')],'oldValue':_0xb2fb55['attributeOldValue'],'range':_0x219672(_0xb2fb55[_0x3da7('0x69')])});for(const _0x5bdbc of _0x4be8c6){const _0xfadaa5=_0x7e8b50[_0x3da7('0x27')](_0xdf7d80=>_0xdf7d80[_0x3da7('0x42')][_0x3da7('0xde')](_0x5bdbc[_0x3da7('0x42')]));_0xfadaa5&&_0x3f0960[_0x3da7('0x185')]({'key':_0x3da7('0x11e'),'newValue':_0x5bdbc['name'],'oldValue':_0xfadaa5[_0x3da7('0x60')],'range':_0x56a9ea['model']['createRangeOn'](_0x5bdbc[_0x3da7('0x42')][_0x3da7('0x55')])});}return 0x0!=_0x3f0960[_0x3da7('0x106')]&&this['_reduceExistingSuggestions'](_0x3a8657,_0x3f0960);function _0x219672(_0x8ed7d2){return null==_0x8ed7d2[_0x3da7('0x4c')][_0x3da7('0x103')]&&_0x8ed7d2[_0x3da7('0x4c')][_0x3da7('0xff')]==_0x8ed7d2[_0x3da7('0x109')][_0x3da7('0x55')]?Ut(_0x8ed7d2['start'][_0x3da7('0x55')],_0x56a9ea[_0x3da7('0xf1')]):_0x8ed7d2;}}[_0x3da7('0x17')](_0x2efbe2){let _0x1fc43d=!0x1;const _0x5662d8=this[_0x3da7('0x170')][_0x3da7('0xf1')][_0x3da7('0xbd')][_0x3da7('0xfe')]['getChangedMarkers']()[_0x3da7('0x36')](_0x54f006=>_0x54f006['data'][_0x3da7('0xf5')]&&_0x54f006[_0x3da7('0x60')][_0x3da7('0x3c')]('suggestion:attribute:'));for(const _0x142faa of _0x5662d8){const {subType:_0x1bc85b,id:_0xe40b3b}=this[_0x3da7('0x171')](_0x142faa['name']),_0x2351d7=_0x1bc85b[_0x3da7('0x48')]('|')[0x0];for(const _0x5c955d of this[_0x3da7('0x8f')]({'skipNotAttached':!0x0}))_0x5c955d['id']!=_0xe40b3b&&'attribute'==_0x5c955d[_0x3da7('0xbe')]&&_0x5c955d[_0x3da7('0x6b')]&&_0x5c955d[_0x3da7('0x6b')]['key']==_0x2351d7&&_0x5c955d[_0x3da7('0x14d')]()[_0x3da7('0x122')](_0x142faa['data'][_0x3da7('0xf5')])&&(this[_0x3da7('0x28')](_0x5c955d,_0x142faa[_0x3da7('0x6b')]['newRange'],_0x2efbe2),_0x1fc43d=!0x0);}return _0x1fc43d;}[_0x3da7('0xe5')](_0xaa8e4b){if(null!==this['_recordAttributeSuggestionsFromVersion'])return void _0xaa8e4b();const _0x5623d=this[_0x3da7('0x170')];this[_0x3da7('0xc1')]=_0x5623d[_0x3da7('0xf1')][_0x3da7('0xbd')][_0x3da7('0x1d')],_0xaa8e4b();const _0x5921db=new Map();for(const _0x3268d3 of _0x5623d[_0x3da7('0xf1')][_0x3da7('0xbd')][_0x3da7('0x19')][_0x3da7('0xe7')](this['_recordAttributeSuggestionsFromVersion']))if([_0x3da7('0x10d'),'addAttribute','removeAttribute',_0x3da7('0xdc')][_0x3da7('0x58')](_0x3268d3[_0x3da7('0xbe')])){const _0x380afa=_0x3268d3[_0x3da7('0x15')],_0x5246a6=_0x5921db[_0x3da7('0x14e')](_0x380afa)||[];_0x5246a6['push'](_0x3268d3),_0x5921db[_0x3da7('0x167')](_0x380afa,_0x5246a6);}this[_0x3da7('0xc1')]=null;for(const [_0x3b6f00,_0x3e1264]of _0x5921db){const _0x259537=_0x371e7c();_0x5623d[_0x3da7('0xf1')][_0x3da7('0xca')](_0x3b6f00,_0x4a718d=>{const _0x4ae1d1=[];for(const _0x200e24 of _0x3e1264){let _0x22c380,_0xabfe8e,_0x137b54,_0x1d484c;if('rename'==_0x200e24[_0x3da7('0xbe')]){const _0x1c8588=_0x200e24;_0x22c380=Ut(_0x1c8588[_0x3da7('0x42')][_0x3da7('0x55')],_0x5623d[_0x3da7('0xf1')]),_0xabfe8e=_0x3da7('0x11e'),_0x137b54=_0x1c8588[_0x3da7('0x2')],_0x1d484c=_0x1c8588[_0x3da7('0x174')];}else{const _0x182454=_0x200e24,_0x4aa4ed=this[_0x3da7('0xe8')](_0x182454[_0x3da7('0xea')]),_0x13c6b6=this[_0x3da7('0xe9')]['has'](_0x182454['key']);if(!_0x4aa4ed&&!_0x13c6b6)continue;_0x22c380=_0x4aa4ed?Ut(_0x182454['range'][_0x3da7('0x109')][_0x3da7('0x55')],_0x5623d[_0x3da7('0xf1')]):_0x182454[_0x3da7('0x69')],_0xabfe8e=_0x182454[_0x3da7('0xea')],_0x137b54=_0x3da7('0x30')==_0x200e24['type']?void 0x0:_0x182454[_0x3da7('0xb3')],_0x1d484c=_0x182454['oldValue'];}this[_0x3da7('0x5a')](_0x22c380,_0xabfe8e,_0x1d484c,_0x137b54,{'groupId':_0x259537}),_0x4ae1d1[_0x3da7('0x185')]({'range':_0x22c380,'key':_0xabfe8e,'newValue':_0x137b54,'oldValue':_0x1d484c});}this[_0x3da7('0x70')](_0x4a718d,_0x4ae1d1);});}}['_reduceExistingSuggestions'](_0x5b17f5,_0x1b45b0){if(0x0==_0x1b45b0[_0x3da7('0x106')])return!0x1;let _0x29380f=!0x1;for(const _0x252ac7 of _0x1b45b0){const _0x897dae=this[_0x3da7('0x54')](_0x252ac7['range'],_0x3da7('0x2f'))[_0x3da7('0x36')](_0x6554f6=>!_0x6554f6[_0x3da7('0xa4')][_0x3da7('0x82')])[_0x3da7('0x1a')](_0x38bab4=>_0x38bab4[_0x3da7('0xb9')]),_0x13aa18=_0x5d1574({'newValue':_0x252ac7[_0x3da7('0xb3')]});_0x897dae[_0x3da7('0x36')](_0x148a84=>{const [_0x24930c,_0x4be603]=_0x148a84['subType'][_0x3da7('0x48')]('|');return _0x24930c==_0x252ac7[_0x3da7('0xea')]&&_0x4be603!=_0x13aa18;})[_0x3da7('0xd4')](_0x322f13=>{this[_0x3da7('0x28')](_0x322f13,_0x252ac7[_0x3da7('0x69')],_0x5b17f5),_0x29380f=!0x0;});}return _0x29380f;}[_0x3da7('0x28')](_0x2cf72e,_0x9b22a8,_0x260760){const _0x30f46f=_0x2cf72e[_0x3da7('0x14d')]()[_0x3da7('0xe0')](_0x9b22a8);0x0!==_0x30f46f[_0x3da7('0x106')]?0x1!==_0x30f46f[_0x3da7('0x106')]?this[_0x3da7('0x118')](_0x2cf72e,_0x9b22a8['start'],_0x9b22a8[_0x3da7('0x4c')]):this['_setSuggestionRange'](_0x2cf72e,_0x30f46f[0x0]):_0x260760[_0x3da7('0xab')](_0x2cf72e[_0x3da7('0x64')]());}}class $t{constructor(_0xc9d46e){this[_0x3da7('0x77')]=_0xc9d46e,this[_0x3da7('0x107')]=_0xc9d46e['model'],this[_0x3da7('0xc2')]=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}[_0x3da7('0x17b')](_0x30a9fa,_0x20a99,_0x2c4808,_0x5b9ea6,_0x2a1bf9,_0xe1f270){return new _0x39434b(this[_0x3da7('0x107')],{'type':_0x30a9fa,'subType':_0x20a99,'id':_0x2c4808,'author':_0x5b9ea6,'creator':_0x5b9ea6,'attributes':_0x2a1bf9,'onAttributesChange':_0xe1f270,'onAccept':(..._0x388a77)=>this[_0x3da7('0x5')](_0x30a9fa,_0x20a99,_0x3da7('0x65'))(..._0x388a77),'onDiscard':(..._0x4a02f1)=>this[_0x3da7('0x5')](_0x30a9fa,_0x20a99,_0x3da7('0xac'))(..._0x4a02f1)});}[_0x3da7('0x127')](_0x23ad99,_0x372924,_0x4f9b43,_0x3bb332){const _0x5d5fef=_0x23ad99+':'+_0x372924+':'+_0x4f9b43;this[_0x3da7('0xc2')][_0x3da7('0x167')](_0x5d5fef,_0x3bb332);}[_0x3da7('0x5')](_0x5765f5,_0x5cb9bb,_0x2d81cb){const _0x29752a=_0x5765f5+':'+_0x5cb9bb+':'+_0x2d81cb;return this[_0x3da7('0xc2')][_0x3da7('0x14e')](_0x29752a)||this[_0x3da7('0xdb')]['get'](_0x5765f5+':'+_0x2d81cb);}[_0x3da7('0x150')](){const _0x44cf8a=()=>!0x1,_0x60776=_0x20948f=>{_0x20948f[_0x3da7('0x31')]((_0x513762,_0x730c35)=>_0x513762[_0x3da7('0x109')]['isBefore'](_0x730c35[_0x3da7('0x109')])?0x1:-0x1),this[_0x3da7('0x107')][_0x3da7('0x56')](_0x7a5c0b=>{for(const _0x387e15 of _0x20948f){let _0x3ef143;_0x3ef143=_0x387e15[_0x3da7('0x4c')]['isAtEnd']&&_0x387e15[_0x3da7('0x4c')]['parent']==_0x387e15[_0x3da7('0x109')]['nodeAfter']?_0x7a5c0b[_0x3da7('0x135')](_0x387e15[_0x3da7('0x109')][_0x3da7('0x55')],'on'):_0x7a5c0b[_0x3da7('0x135')](_0x387e15),this[_0x3da7('0x107')][_0x3da7('0x157')](_0x3ef143,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x25e4c1=(_0x3113d7,_0xcaec7d)=>{_0xcaec7d&&this['_model'][_0x3da7('0x56')](_0x2f1c05=>{const {commandName:_0x1ff96a,commandParams:_0x343abf=[]}=_0xcaec7d,_0x5bc9db=_0x3113d7[_0x3da7('0x1a')](_0x523f5f=>(Tt(_0x523f5f)&&(_0x523f5f=this[_0x3da7('0x107')][_0x3da7('0xb0')](_0x523f5f[_0x3da7('0x4c')])),_0x523f5f))[_0x3da7('0x36')](_0x28ed09=>_0x3da7('0x9c')!==_0x28ed09[_0x3da7('0x12b')][_0x3da7('0x11c')]);if(_0x5bc9db[_0x3da7('0x106')]<0x1)return;const _0x8d7ff3=Array[_0x3da7('0x172')](this[_0x3da7('0x107')][_0x3da7('0xbd')]['selection'][_0x3da7('0x83')]())['map'](_0x214cb6=>_0x9900e8[_0x3da7('0xf3')](_0x214cb6));_0x2f1c05[_0x3da7('0x13c')](_0x5bc9db);for(const _0x3ebc67 of this[_0x3da7('0x77')][_0x3da7('0x4e')][_0x3da7('0x4e')]())_0x3ebc67[_0x3da7('0x34')]();_0x343abf[_0x3da7('0x185')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x3da7('0x181')](_0x1ff96a,..._0x343abf);const _0x419290=_0x8d7ff3[_0x3da7('0x36')](_0x5f44ee=>_0x3da7('0x9c')!=_0x5f44ee[_0x3da7('0x12b')][_0x3da7('0x11c')]);_0x419290[_0x3da7('0x106')]>0x0&&_0x2f1c05[_0x3da7('0x13c')](_0x419290);for(const _0x2df6a of _0x8d7ff3)_0x2df6a[_0x3da7('0x105')]();});},_0x28b90d=(_0x548272,_0x282e2a)=>0x1==_0x548272[_0x3da7('0x106')]&&0x1==_0x282e2a[_0x3da7('0x106')]&&_0x548272[0x0]['end'][_0x3da7('0xde')](_0x282e2a[0x0][_0x3da7('0x109')]),_0x3e4e4f=(_0x46258e,_0x5813b7,_0x24f9f6,_0x309344)=>Ot(_0x46258e,_0x5813b7,_0x24f9f6,_0x309344,this[_0x3da7('0x107')])?[_0x46258e,_0x5813b7]:Ot(_0x5813b7,_0x46258e,_0x309344,_0x24f9f6,this[_0x3da7('0x107')])?[_0x5813b7,_0x46258e]:null;this[_0x3da7('0xdb')][_0x3da7('0x167')](_0x3da7('0x119'),_0x44cf8a),this[_0x3da7('0xdb')]['set'](_0x3da7('0x62'),_0x60776),this['_defaultCallbacks'][_0x3da7('0x167')](_0x3da7('0x3d'),_0x28b90d),this[_0x3da7('0xdb')][_0x3da7('0x167')]('insertion:chain',_0x3e4e4f),this[_0x3da7('0xdb')][_0x3da7('0x167')](_0x3da7('0x3e'),_0x60776),this['_defaultCallbacks']['set'](_0x3da7('0xe'),_0x44cf8a),this[_0x3da7('0xdb')][_0x3da7('0x167')](_0x3da7('0x11'),_0x28b90d),this['_defaultCallbacks'][_0x3da7('0x167')](_0x3da7('0x49'),_0x3e4e4f),this['_defaultCallbacks'][_0x3da7('0x167')](_0x3da7('0x112'),_0x25e4c1),this[_0x3da7('0xdb')][_0x3da7('0x167')](_0x3da7('0x161'),_0x44cf8a),this[_0x3da7('0xdb')]['set'](_0x3da7('0x2e'),_0x28b90d),this[_0x3da7('0xdb')][_0x3da7('0x167')](_0x3da7('0x13b'),_0x44cf8a),this['_defaultCallbacks'][_0x3da7('0x167')](_0x3da7('0xf'),_0x25e4c1),this[_0x3da7('0xdb')]['set'](_0x3da7('0x16d'),_0x44cf8a),this[_0x3da7('0xdb')]['set'](_0x3da7('0x10'),_0x28b90d),this['_defaultCallbacks'][_0x3da7('0x167')]('formatBlock:chain',_0x44cf8a),this[_0x3da7('0xdb')][_0x3da7('0x167')](_0x3da7('0x183'),_0x44cf8a),this[_0x3da7('0xdb')][_0x3da7('0x167')](_0x3da7('0x100'),(_0x59170d,_0xfcb30a)=>{if(!_0xfcb30a)return;const _0x18ffe8=this[_0x3da7('0x77')][_0x3da7('0xed')][_0x3da7('0x14e')](p);this[_0x3da7('0x107')]['change'](_0x3a1652=>{if(_0x3da7('0x11e')==_0xfcb30a['key'])for(const _0x25538d of _0x59170d){const _0xa4e521=_0x25538d['start'][_0x3da7('0x55')],_0x1b2e2b=_0xfcb30a[_0x3da7('0x4a')];_0x3a1652[_0x3da7('0x10d')](_0xa4e521,_0x1b2e2b);}else{if(_0x18ffe8[_0x3da7('0xe8')](_0xfcb30a[_0x3da7('0xea')]))for(const _0x40854c of _0x59170d)void 0x0!==_0xfcb30a[_0x3da7('0x4a')]?_0x3a1652[_0x3da7('0x5d')](_0xfcb30a[_0x3da7('0xea')],_0xfcb30a[_0x3da7('0x4a')],_0x40854c['start']['nodeAfter']):_0x3a1652[_0x3da7('0x30')](_0xfcb30a['key'],_0x40854c[_0x3da7('0x109')][_0x3da7('0x55')]);else for(const _0x2ce8c7 of _0x59170d)_0xfcb30a[_0x3da7('0x4a')]?_0x3a1652[_0x3da7('0x5d')](_0xfcb30a[_0x3da7('0xea')],_0xfcb30a[_0x3da7('0x4a')],_0x2ce8c7):_0x3a1652['removeAttribute'](_0xfcb30a[_0x3da7('0xea')],_0x2ce8c7);}});}),this[_0x3da7('0xdb')][_0x3da7('0x167')](_0x3da7('0xe6'),_0x28b90d);}}function Bt(_0x51b516,_0x56d592,_0x4b808a){for(const _0x20a529 of _0x56d592[_0x3da7('0xff')][_0x3da7('0x13f')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x20a529[_0x3da7('0x12b')]==_0x20a529)return!0x1;if(!_0x4b808a[_0x3da7('0x2a')](_0x20a529))return!0x1;if(_0x51b516[_0x3da7('0x7d')](_0x20a529)||_0x51b516['isLimit'](_0x20a529))return!0x0;}return!0x1;}function Tt(_0x437ca8){return _0x437ca8['end']['parent']==_0x437ca8[_0x3da7('0x109')][_0x3da7('0x55')]&&_0x437ca8[_0x3da7('0x4c')][_0x3da7('0x108')];}function xt(_0x2aaf37,_0x116a74,_0x4946b0,_0xea5478){const _0x51c8ac=_0x552b30=>!_0x552b30[_0x3da7('0x184')]['is'](_0x3da7('0x8a'))&&!_0xea5478['isObject'](_0x552b30['item']),_0x4917bd=_0x2aaf37['start'][_0x3da7('0x8b')](_0x51c8ac),_0x58b7cf=_0x2aaf37[_0x3da7('0x4c')]['getLastMatchingPosition'](_0x51c8ac,{'direction':_0x3da7('0x13d')});return(!_0x2aaf37[_0x3da7('0x109')][_0x3da7('0xde')](_0x4917bd)||!_0x2aaf37[_0x3da7('0x4c')][_0x3da7('0xde')](_0x58b7cf))&&(_0x4917bd[_0x3da7('0x123')](_0x58b7cf)?_0x4946b0[_0x3da7('0xd7')](_0x116a74,{'range':_0x4946b0[_0x3da7('0xb0')](_0x4917bd,_0x58b7cf)}):_0x4946b0[_0x3da7('0xab')](_0x116a74),!0x0);}function Et(_0x4e008e){return _0x5d1574(_0x4e008e);}function Rt(_0x9bed93){const _0x1a710e=_0x9bed93['start'][_0x3da7('0x55')];return _0x1a710e&&_0x1a710e['is']('element');}function Ut(_0x3aa349,_0x3b0d13){const _0x2a21b2=_0x3b0d13['schema'][_0x3da7('0x7d')](_0x3aa349)||_0x3b0d13[_0x3da7('0x6f')]['isSelectable'](_0x3aa349);return _0x3b0d13[_0x3da7('0xb0')](_0x3b0d13[_0x3da7('0x12f')](_0x3aa349,'before'),_0x2a21b2?_0x3b0d13[_0x3da7('0x8e')](_0x3aa349):_0x3b0d13[_0x3da7('0x12f')](_0x3aa349,_0x3da7('0x4c')));}function Ot(_0x369cfe,_0x57717a,_0x39c753,_0x3eea8d,_0x2301f9){if(!Vt(_0x369cfe,_0x57717a))return!0x1;if(_0x39c753['end']['isEqual'](_0x3eea8d[_0x3da7('0x109')]))return!0x0;if(_0x369cfe[_0x3da7('0xbe')]!=_0x57717a[_0x3da7('0xbe')])return!0x1;if(!_0x39c753[_0x3da7('0x4c')]['isTouching'](_0x3eea8d[_0x3da7('0x109')]))return!0x1;const _0xfbc7ac=_0x2301f9[_0x3da7('0xb0')](_0x39c753['end'],_0x3eea8d[_0x3da7('0x109')])['getWalker']();for(const _0x2330db of _0xfbc7ac)if([_0x3da7('0x115'),_0x3da7('0x90')][_0x3da7('0x58')](_0x2330db[_0x3da7('0xbe')])&&_0x2301f9[_0x3da7('0x6f')][_0x3da7('0x162')](_0x2330db[_0x3da7('0x184')]))return!0x1;return!0x0;}function Vt(_0x55d3bb,_0x1b58e6){return!(!_0x55d3bb['_isDataLoaded']||!_0x1b58e6[_0x3da7('0xcb')])&&_0x46524a(_0x55d3bb[_0x3da7('0x9a')],_0x1b58e6[_0x3da7('0x9a')]);}function Gt(_0x52ef9a,_0x5592fe){const _0x5f2852=Ft(_0x52ef9a[_0x3da7('0x9a')]),_0x4f5618=Ft(_0x5592fe);if(!_0x52ef9a[_0x3da7('0xcb')])return!0x1;for(const _0x57a908 of Object[_0x3da7('0x63')](_0x4f5618))if(!_0x46524a(_0x5f2852[_0x57a908],_0x4f5618[_0x57a908]))return!0x1;return!0x0;}function Ft(_0x1b92f1){const _0x2de72c=Object[_0x3da7('0x74')]({},_0x1b92f1);return delete _0x2de72c[_0x3da7('0x17d')],delete _0x2de72c[_0x3da7('0x120')],_0x2de72c;}function Pt(_0x3153c9){return _0x3da7('0x2f')==_0x3153c9[_0x3da7('0xbe')]?_0x3153c9[_0x3da7('0x98')][_0x3da7('0x48')]('|')[0x0]:null;}
|