@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231226.0 → 0.0.0-nightly-20231227.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-20231227.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-20231227.0",
|
|
44
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20231227.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 _0x46a3=['_trackFormatChanges','newRange','requires','change','key','options','@external','Users','getChanges','isOwn','_addThreadToSuggestion','ck-suggestion-marker','find','_saved','acceptAllSuggestions','unbindElementFromMarkerName','isArray','data-suggestion','markInlineFormat','createRangeOn','discardAllSuggestions','getIntersection','resolve','accept','marker-count','ck-suggestion-marker--active','rename','notReady','removeAttribute','suggestion-type','update:suggestion','suggestion','markDeletion','suggestionChanged','editingDowncast','_registerDefaultCallbacks','getRange','forward','removeMarkers','default','$marker','createRangeIn','getMultiRangeId','markAttributeChange','change:data','isDocumentOperation','warn','getAllAdjacentSuggestions','_isDataLoaded','containerElement','trackChanges','registerPostFixer','_suggestions','moveTargetPosition','execute','data','hasSuggestion','setTo','_checkSuggestionCorrectness','getNearestSelectionRange','writer','showSuggestionHighlights','getFirstRange','init','markerToHighlight','commentThread','substring','push','discardSuggestion','item','createPositionBefore','getUser','open','activeMarkers','track-changes-suggestion-data-mismatch','consume','addSuggestion','low','substr','_customCallbacks','addMarker:suggestion','_addSuggestionMarker','isEqual','_suggestionFactory','element','previous','schema','_processAttributeSuggestions','markerNameToElements','selection','getAttribute','catch','external:','howMany','isLocal','tablePasteChainId','toUpperCase','batch','mapper','_adapter','_registerBlockAttribute','_getAuthorFromId','forEach','addClass','elementEnd','containsPosition','never','differ','locale','comments','isTouching','getChangedMarkers','insertion:accept','$elementName','markMultiRangeBlockFormat','every','commands','markMultiRangeInsertion','isObject','fire','editor','removeMarker','pop','_recordAttributeChanges','getSuggestionCallback','formatGroupId','type','dataDowncast','deletion:accept','_enableDefaultAttributesIntegration','track-changes-adapter-already-set','isExternal','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.','formatInline:chain','getAncestors','insertion:chain','markInsertion','_refreshAttributeSuggestionsChain','end','filter','suggestion:attribute:','createSelection','_isForcedDefaultExecutionBlock','_handleNewSuggestionMarker','startsWith','track-changes-suggestion-not-found','join','addHighlight','_isBlockAttribute','createElement','position','always','registerCustomCallback','next','addRange','oldValue','CommentsRepository','_initAriaMarkerChangeAnnouncements','removeMarker:suggestion:attribute','isSelectable','_reduceExistingSuggestions','isLimit','createRange','head','chain','stopListening','setAttribute','sort','insertion:','backward','applyOperation','removeClass','trackChangesCommand','oldRange','after','_refreshSuggestionsChain','_joinSuggestions','track-changes-user-not-found','discardSelectedSuggestions','toJSON','from','getContainedElement','subType','markBlockFormat','formatBlock:','has','updateMarker','fromRange','isAtEnd','deletion','getDifference','deleteContent','markers','define','_processAttributeChanges','_rangeIsInLocalUserInsertion','getRanges','isCollapsed','PENDING_ACTION_SUGGESTION','containsRangeInObject','commandName','trackChanges.trackFormatChanges','removed','getLastMatchingPosition','PendingActions','format','newValue','_defaultCallbacks','high','normal','formatBlock','skipNestingCheck','fromCharCode','isInContent','root','attributeOldValue','formatBlock:chain','isUndo','_descriptionFactory','stop','keys','acceptSelectedSuggestions','error-saving-suggestion-data-suggestion-discarded','isNextTo','trackChanges.mergeNestedSuggestions','$text','creator','addSuggestionData','rethrowUnexpectedError','unbind','widget','removeMarker:suggestion:formatBlock','set','multi','remove','author','isBefore','formatInline:accept','_mergeNestedSuggestions','move','forceDefaultExecution','setSelection','_blockAttributeKeys','_model','isInsideObject','splitPosition','_reduceSuggestionAttributeRange','assign','plugins','_updateSuggestionData','enqueueChange','parent','_joinWithAdjacentSuggestions','FORMATTING','consumable','range','ready','accepted','suggestionLoaded','getItems','createdAt','before','_getMarkerAnnouncementText','group','oldName','length','_findSuggestions','rootName','meta','suggestion:','refresh','attribute','createPositionAt','collaboration.channelId','deletion:chain','addMarkerName','nodeAfter','originalSuggestionId','name','listenTo','start','deletion:discard','some','_setSuggestionRange','delete','elementStart','history','multipleBlocks','insertion:join','enableCommand','formatInline','add','formatBlock:discard','lowest','highest','_editor','markerToData','getSuggestion','hasComments','authoredAt','getFirstMarker','hasCommentThread','newName','acceptSuggestion','_setSuggestionData','ENTER','ck-suggestion-marker-','version','nodeBefore','markerName','_suggestionState','_enabledCommands','discard','groupId','markerReady','splice','ariaLiveAnnouncer','insertContent','isMultiRange','deletion:','addMarker:suggestion:formatBlock','_breakSuggestionMarker','_commentsRepository','reconvertMarker','_inlineAttributeKeys','_onDiscard','split','_getExternalAuthor','attributes','suggestionUnloaded','updateSuggestion','map','formatBlock:accept','insertion','getCustomProperty','_registerInlineAttribute','conversion','for','isAfter','track-changes-enable-command-twice','_cutOutSuggestionMarker','isIntersecting','document','adapter','_createSuggestion','includes','size','track-changes-adapter-missing-getsuggestion','containsRange','$graveyard','getShiftedBy','config','upcast','elementToElement','_splitMarkerName','isIntersectingWithRange','clone','addMarker:suggestion:attribute','formatInline:join','attribute:','ck-suggestion-marker-formatBlock','enableReadOnlyMode','attribute:join','model','$textProxy','isRemovable','getSuggestions','attribute:discard','then','value','_removeSuggestion','values','buildSuggestion','get','_getSuggestionData','_recordAttributeSuggestionsFromVersion','insert','targetPosition'];(function(_0x12073b,_0x46a3f5){const _0x4afba3=function(_0x1c8dbd){while(--_0x1c8dbd){_0x12073b['push'](_0x12073b['shift']());}};_0x4afba3(++_0x46a3f5);}(_0x46a3,0xaf));const _0x4afb=function(_0x12073b,_0x46a3f5){_0x12073b=_0x12073b-0x0;let _0x4afba3=_0x46a3[_0x12073b];return _0x4afba3;};import{Plugin as _0x2a1d47,PendingActions as _0x2bb305}from'ckeditor5/src/core.js';import{LiveRange as _0x3bf644}from'ckeditor5/src/engine.js';import{CKEditorError as _0x40538a,uid as _0x10e1a2,priorities as _0x508283,logWarning as _0x169fb8}from'ckeditor5/src/utils.js';import{toWidget as _0x5cdb96}from'ckeditor5/src/widget.js';import{Users as _0x4ef168,hashObject as _0x2446e5,surroundingMarkersDetector as _0x42f1cd}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x1326bb from'./commands/trackchangescommand.js';import _0xd83162 from'./commands/acceptsuggestioncommand.js';import _0x83434a from'./commands/discardsuggestioncommand.js';import _0x4bdcd5 from'./commands/executeonallsuggestionscommand.js';import _0x4050e4 from'./commands/executeonselectedsuggestionscommand.js';import _0x322e16 from'./suggestion.js';import _0x34701a from'./suggestiondescriptionfactory.js';import _0x431da6 from'./integrations/aiassistant.js';import _0x2fa83d from'./integrations/alignment.js';import _0x34fc6b from'./integrations/basicstyles.js';import _0x49885a from'./integrations/blockquote.js';import _0x5c3482 from'./integrations/ckbox.js';import _0x37963f from'./integrations/codeblock.js';import _0x5d4fdd from'./integrations/comments.js';import _0x746eaa from'./integrations/deletecommand.js';import _0x44c3e6 from'./integrations/documentlist.js';import _0x5034af from'./integrations/documentlistproperties.js';import _0x1b1f73 from'./integrations/entercommand.js';import _0x51e010 from'./integrations/findandreplace.js';import _0x1ce43b from'./integrations/font.js';import _0x3ce2d2 from'./integrations/formatpainter.js';import _0x10d8e3 from'./integrations/heading.js';import _0x60a6ac from'./integrations/highlight.js';import _0x5f3b2a from'./integrations/horizontalline.js';import _0x2736d5 from'./integrations/htmlembed.js';import _0x5bdbba from'./integrations/image.js';import _0x26ebcb from'./integrations/imagereplace.js';import _0x4b4b1d from'./integrations/imagestyle.js';import _0x2e9823 from'./integrations/importword.js';import _0x359022 from'./integrations/indent.js';import _0xc73f5d from'./integrations/inputcommand.js';import _0xd1fc5a from'./integrations/link.js';import _0x32bfb4 from'./integrations/list.js';import _0x4d0451 from'./integrations/listproperties.js';import _0x2958bb from'./integrations/mediaembed.js';import _0x9d74fc from'./integrations/mention.js';import _0x1e35b6 from'./integrations/pagebreak.js';import _0x4f6a76 from'./integrations/paragraph.js';import _0x4466fd from'./integrations/removeformat.js';import _0x2716c0 from'./integrations/restrictededitingmode.js';import _0xb6658 from'./integrations/shiftentercommand.js';import _0x4991be from'./integrations/standardeditingmode.js';import _0x31735d from'./integrations/style.js';import _0x4d82fe from'./integrations/table.js';import _0x257e49 from'./integrations/tablemergesplit.js';import _0x3fd54e from'./integrations/tableheadings.js';import _0x3f1268 from'./integrations/tableclipboard.js';import _0x3ded74 from'./integrations/tablecolumnresize.js';import _0x2fb4f8 from'./integrations/template.js';import _0x23f958 from'./integrations/tableofcontents.js';import _0x1c458d from'./integrations/title.js';import _0x5d2565 from'./integrations/undo.js';import _0x16d7d3 from'./integrations/tablecaption.js';import _0x5ed926 from'./integrations/tableproperties.js';import{getTranslation as _0xde621d}from'./utils/common-translations.js';import{isEqual as _0x2d3350,omit as _0x34d2aa}from'lodash-es';export const renameAttributeKey=_0x4afb('0x13c');export default class p extends _0x2a1d47{static get[_0x4afb('0xcd')](){return[_0x4afb('0x167'),_0x4ef168,_0x2bb305,_0x431da6,_0x2fa83d,_0x34fc6b,_0x49885a,_0x5c3482,_0x37963f,_0x5d4fdd,_0x746eaa,_0x44c3e6,_0x5034af,_0x1b1f73,_0x51e010,_0x1ce43b,_0x3ce2d2,_0x10d8e3,_0x60a6ac,_0x5f3b2a,_0x2736d5,_0x5bdbba,_0x4b4b1d,_0x26ebcb,_0x2e9823,_0x359022,_0xc73f5d,_0xd1fc5a,_0x32bfb4,_0x4d0451,_0x2958bb,_0x9d74fc,_0x1e35b6,_0x4f6a76,_0x4466fd,_0x2716c0,_0xb6658,_0x4991be,_0x31735d,_0x4d82fe,_0x257e49,_0x3fd54e,_0x16d7d3,_0x3f1268,_0x3ded74,_0x23f958,_0x5ed926,_0x2fb4f8,_0x1c458d,_0x5d2565];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x59685e){function _0x161622(_0x270fb8){return _0x270fb8[_0x4afb('0x9c')](_0x138857=>String[_0x4afb('0x25')](_0x138857))['join']('');}super(_0x59685e),this['_recordAttributeSuggestionsFromVersion']=null,this[_0x4afb('0x39')]('activeMarkers',[]),this['on']('change:activeMarkers',(_0x283bfa,_0x284bdb,_0x4fabde,_0x4f003f)=>{this[_0x4afb('0x44')][_0x4afb('0xce')](()=>{for(const _0x1af045 of[..._0x4f003f,..._0x4fabde])this[_0x4afb('0x44')][_0x4afb('0x11')][_0x4afb('0xa')](_0x1af045)&&_0x59685e['editing'][_0x4afb('0x94')](_0x1af045);});}),this[_0x4afb('0x2b')]=new _0x34701a(this[_0x4afb('0x143')]['model'][_0x4afb('0x121')],this[_0x4afb('0x143')][_0x4afb('0x137')]),this[_0x4afb('0x12e')]=null,this[_0x4afb('0x11e')]=new $t(this[_0x4afb('0x143')]),this[_0x4afb('0xff')]=new Map(),this[_0x4afb('0x93')]=_0x59685e[_0x4afb('0x49')][_0x4afb('0xc6')](_0x4afb('0x167')),this['_enabledCommands']=new Set(),this[_0x4afb('0x44')]=this[_0x4afb('0x143')][_0x4afb('0xbc')],this[_0x4afb('0x87')]=new WeakMap(),this[_0x4afb('0x159')]=!0x1,this['_blockAttributeKeys']=new Set([_0x4afb('0x13c')]),this['_inlineAttributeKeys']=new Set(),_0x59685e[_0x4afb('0xb0')][_0x4afb('0x12')](_0x4afb('0x1a'),_0x4afb('0xf2')),this[_0x4afb('0xcb')]=_0x59685e[_0x4afb('0xb0')][_0x4afb('0xc6')](_0x4afb('0x1a')),_0x59685e['config'][_0x4afb('0x12')](_0x4afb('0x31'),!0x0),this[_0x4afb('0x3f')]=_0x59685e['config']['get'](_0x4afb('0x31')),this['trackChangesCommand']=new _0x1326bb(_0x59685e,this[_0x4afb('0x88')]),this[_0x4afb('0x168')](),this[_0x161622([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x161622([0x34,0x30,0x34,0x36,0x32,0x34,0x35,0x32]);}[_0x4afb('0x10a')](){const _0x473b34=this[_0x4afb('0x143')],_0x25c120=(_0x6de42,_0x197d64)=>{if('attribute'!=_0x6de42)return _0x4afb('0x83')+_0x6de42;const _0x5a5e50=_0x197d64['split']('|')[0x0];return this[_0x4afb('0x15f')](_0x5a5e50)?_0x4afb('0xb9'):'ck-suggestion-marker-formatInline';};_0x473b34[_0x4afb('0xa1')][_0x4afb('0xa2')](_0x4afb('0xed'))['markerToHighlight']({'model':_0x4afb('0xea'),'view':_0x2dcfaf=>{const {id:_0x249d52,type:_0x48e041,subType:_0x19bf74}=this[_0x4afb('0xb3')](_0x2dcfaf[_0x4afb('0x86')]),_0x5c7daf=[_0x4afb('0xd6'),_0x25c120(_0x48e041,_0x19bf74)];let _0x50930b=0xbb8;return this[_0x4afb('0x114')][_0x4afb('0xaa')](_0x2dcfaf[_0x4afb('0x86')])&&(_0x5c7daf[_0x4afb('0x10e')](_0x4afb('0xe4')),_0x50930b=0xbc2),_0x4afb('0xe')==_0x48e041&&(_0x50930b+=0x5),{'classes':_0x5c7daf,'attributes':{'data-suggestion':_0x249d52},'priority':_0x50930b};}}),_0x473b34['conversion'][_0x4afb('0xa2')]('dataDowncast')[_0x4afb('0x74')](_0x42aea9=>{_0x42aea9['on'](_0x4afb('0x11b'),(_0xb54279,_0x5a437f,_0x25f434)=>{if(!_0x25f434[_0x4afb('0xd0')][_0x4afb('0x108')])return;const _0x66dda=_0x5a437f[_0x4afb('0x110')];if(!_0x66dda)return;const _0x15fcdf=_0x25f434['mapper']['toViewElement'](_0x66dda);_0x473b34[_0x4afb('0xbc')][_0x4afb('0x121')][_0x4afb('0x141')](_0x66dda)&&_0x15fcdf&&!_0x15fcdf[_0x4afb('0x9f')](_0x4afb('0x37'))&&_0x15fcdf['is'](_0x4afb('0xfc'))&&_0x5cdb96(_0x15fcdf,_0x25f434[_0x4afb('0x107')]);},{'priority':'high'});}),_0x473b34[_0x4afb('0xa1')]['for'](_0x4afb('0x14a'))[_0x4afb('0x10b')]({'model':_0x4afb('0xea'),'view':(_0x462043,_0x59ca08)=>{if(!_0x59ca08[_0x4afb('0xd0')]['showSuggestionHighlights'])return null;const {type:_0x4fc5d7,subType:_0x21a82c}=this[_0x4afb('0xb3')](_0x462043[_0x4afb('0x86')]);return{'classes':[_0x4afb('0xd6'),_0x25c120(_0x4fc5d7,_0x21a82c)],'priority':0xbb8};}});const _0x17271f=({showActiveMarkers:_0x1460b5=!0x0,isAttributeSuggestion:_0xa70d2e=!0x1}={})=>(_0x11989e,_0x3dc9d6,_0x4f4af0)=>{if(!_0x3dc9d6[_0x4afb('0x110')])return;const {id:_0x4d0ab5}=this[_0x4afb('0xb3')](_0x3dc9d6[_0x4afb('0x86')]);if(_0xa70d2e){const _0x448084=Pt(this[_0x4afb('0xff')][_0x4afb('0xc6')](_0x4d0ab5));if(!this['_isBlockAttribute'](_0x448084))return;}if(_0x3dc9d6['item']['is'](_0x4afb('0x124')))return void _0x4f4af0['consumable'][_0x4afb('0x116')](_0x3dc9d6[_0x4afb('0x110')],_0x11989e['name']);const _0x4f59c2=_0x4f4af0[_0x4afb('0x12d')]['toViewElement'](_0x3dc9d6['item']);if(_0x3dc9d6['item']['is'](_0x4afb('0x11f'))&&_0x473b34[_0x4afb('0xbc')]['schema']['isBlock'](_0x3dc9d6['item'])&&!_0x4f59c2[_0x4afb('0x9f')](_0x4afb('0x15e'))){_0x4f4af0[_0x4afb('0x107')][_0x4afb('0x132')]([_0x4afb('0xd6'),_0x4afb('0xb9')],_0x4f59c2),_0x4f4af0[_0x4afb('0x107')][_0x4afb('0x171')](_0x4afb('0xdc'),_0x4d0ab5,_0x4f59c2),_0x4f4af0['mapper']['bindElementToMarker'](_0x4f59c2,_0x3dc9d6[_0x4afb('0x86')]),_0x1460b5&&(this[_0x4afb('0x114')][_0x4afb('0xaa')](_0x3dc9d6[_0x4afb('0x86')])?_0x4f4af0[_0x4afb('0x107')]['addClass'](_0x4afb('0xe4'),_0x4f59c2):_0x4f4af0[_0x4afb('0x107')]['removeClass'](_0x4afb('0xe4'),_0x4f59c2));for(const _0x3f9c5d of _0x473b34[_0x4afb('0xbc')][_0x4afb('0xf4')](_0x3dc9d6[_0x4afb('0x110')])[_0x4afb('0x54')]())_0x4f4af0['consumable']['consume'](_0x3f9c5d,_0x11989e[_0x4afb('0x67')]);_0x4f4af0[_0x4afb('0x4f')][_0x4afb('0x116')](_0x3dc9d6[_0x4afb('0x110')],_0x11989e[_0x4afb('0x67')]);}};_0x473b34[_0x4afb('0xa1')][_0x4afb('0xa2')](_0x4afb('0x14a'))[_0x4afb('0x74')](_0xeb53c=>{_0xeb53c['on'](_0x4afb('0x91'),(_0xc15ab9,_0x271ad8,_0x26e9ff)=>{_0x26e9ff[_0x4afb('0xd0')][_0x4afb('0x108')]&&_0x17271f({'showActiveMarkers':!0x1})(_0xc15ab9,_0x271ad8,_0x26e9ff);},{'priority':_0x4afb('0x77')});}),_0x473b34[_0x4afb('0xa1')]['for']('dataDowncast')[_0x4afb('0x74')](_0x5857a5=>{_0x5857a5['on'](_0x4afb('0xb6'),(_0x5078b8,_0x2a9438,_0x41b58e)=>{_0x41b58e[_0x4afb('0xd0')][_0x4afb('0x108')]&&_0x17271f({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5078b8,_0x2a9438,_0x41b58e);},{'priority':_0x4afb('0x77')});}),_0x473b34[_0x4afb('0xa1')][_0x4afb('0xa2')]('dataDowncast')[_0x4afb('0x79')]({'model':_0x4afb('0xea'),'view':(_0x1d15ee,_0x1eec30)=>_0x1eec30[_0x4afb('0xd0')][_0x4afb('0x108')]?null:{'group':_0x4afb('0xea'),'name':_0x1d15ee[_0x4afb('0x119')](0xb)}}),_0x473b34['conversion'][_0x4afb('0xa2')]('upcast')[_0x4afb('0xb2')]({'view':{'name':_0x4afb('0xea'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x33d7da,{writer:_0x6f1ad1})=>{let _0x73203=_0x4afb('0x5e')+_0x33d7da[_0x4afb('0x125')](_0x4afb('0xe8'))+':'+_0x33d7da[_0x4afb('0x125')]('id');return _0x33d7da[_0x4afb('0x125')](_0x4afb('0xe3'))&&(_0x73203+=':'+_0x33d7da[_0x4afb('0x125')]('marker-count')),_0x6f1ad1[_0x4afb('0x160')](_0x4afb('0xf3'),{'data-name':_0x73203});}}),_0x473b34['conversion']['for'](_0x4afb('0xb1'))['dataToMarker']({'view':_0x4afb('0xea')}),_0x473b34[_0x4afb('0xa1')]['for']('editingDowncast')[_0x4afb('0x74')](_0x3cf7ec=>{_0x3cf7ec['on'](_0x4afb('0x91'),_0x17271f(),{'priority':_0x4afb('0x21')});}),_0x473b34['conversion'][_0x4afb('0xa2')](_0x4afb('0xed'))[_0x4afb('0x74')](_0x3bdf90=>{_0x3bdf90['on']('addMarker:suggestion:attribute',_0x17271f({'isAttributeSuggestion':!0x0}),{'priority':_0x4afb('0x21')});}),_0x473b34[_0x4afb('0xa1')][_0x4afb('0xa2')](_0x4afb('0xed'))[_0x4afb('0x74')](_0x83a40d=>{_0x83a40d['on'](_0x4afb('0x38'),(_0x21300f,_0x4c381d,_0x1c9f90)=>{const _0x3cd970=_0x1c9f90[_0x4afb('0x12d')][_0x4afb('0x123')](_0x4c381d[_0x4afb('0x86')]);if(_0x3cd970)for(const _0x269b87 of _0x3cd970)_0x269b87['getCustomProperty']('addHighlight')||(_0x1c9f90[_0x4afb('0x107')]['removeClass']([_0x4afb('0xd6'),_0x4afb('0xb9'),_0x4afb('0xe4')],_0x269b87),_0x1c9f90['writer'][_0x4afb('0xe7')]('data-suggestion',_0x269b87),_0x1c9f90[_0x4afb('0x12d')][_0x4afb('0xda')](_0x269b87,_0x4c381d[_0x4afb('0x86')]));},{'priority':_0x4afb('0x21')});}),_0x473b34[_0x4afb('0xa1')][_0x4afb('0xa2')](_0x4afb('0xed'))[_0x4afb('0x74')](_0x50a86e=>{_0x50a86e['on'](_0x4afb('0x169'),(_0x35c9dd,_0x39b667,_0x5068b6)=>{const _0x55bb4b=_0x5068b6[_0x4afb('0x12d')]['markerNameToElements'](_0x39b667[_0x4afb('0x86')]);if(!_0x55bb4b)return;const {id:_0x3fb76b}=this['_splitMarkerName'](_0x39b667[_0x4afb('0x86')]),_0x414d85=Pt(this['_suggestions'][_0x4afb('0xc6')](_0x3fb76b));if(this[_0x4afb('0x15f')](_0x414d85))for(const _0xea3b62 of _0x55bb4b)_0xea3b62['getCustomProperty']('addHighlight')||(_0x5068b6['writer'][_0x4afb('0x176')]([_0x4afb('0xd6'),_0x4afb('0xb9'),'ck-suggestion-marker--active'],_0xea3b62),_0x5068b6[_0x4afb('0x107')][_0x4afb('0xe7')](_0x4afb('0xdc'),_0xea3b62),_0x5068b6[_0x4afb('0x12d')]['unbindElementFromMarkerName'](_0xea3b62,_0x39b667[_0x4afb('0x86')]));},{'priority':_0x4afb('0x21')});}),_0x473b34[_0x4afb('0xbc')]['document'][_0x4afb('0xfe')](_0x1314b0=>{let _0x218a93=!0x1;const _0x282353=Array[_0x4afb('0x5')](_0x473b34[_0x4afb('0xbc')][_0x4afb('0xa7')][_0x4afb('0x136')][_0x4afb('0x13a')]()),_0x2a0a24=new Set();for(const {name:_0xa3f4aa,data:_0xf852bd}of _0x282353){const {group:_0x439f48,type:_0x26f58f,subType:_0x2c0e2f,id:_0x3a1d27}=this[_0x4afb('0xb3')](_0xa3f4aa);if('suggestion'!==_0x439f48)continue;const _0x1d112b=this[_0x4afb('0xff')][_0x4afb('0xc6')](_0x3a1d27);if(null!=_0xf852bd[_0x4afb('0xcc')]){'formatInline'==_0x26f58f&&(_0x218a93=_0x218a93||xt(_0xf852bd['newRange'],_0xa3f4aa,_0x1314b0,_0x473b34[_0x4afb('0xbc')][_0x4afb('0x121')]));const _0x4dcea9=_0x4afb('0x60')==_0x26f58f&&this['_isBlockAttribute'](_0x2c0e2f[_0x4afb('0x97')]('|')[0x0]);if(_0xf852bd[_0x4afb('0xcc')][_0x4afb('0x16')]||_0x4afb('0xae')==_0xf852bd['newRange']['root'][_0x4afb('0x5c')]||'formatBlock'==_0x26f58f&&!Rt(_0xf852bd[_0x4afb('0xcc')])||_0x4dcea9&&!Rt(_0xf852bd[_0x4afb('0xcc')])||'deletion'==_0x26f58f&&!(!Tt(_0xdb78a4=_0xf852bd[_0x4afb('0xcc')])&&!function(_0x5e8728){return _0x5e8728[_0x4afb('0x69')][_0x4afb('0x4c')]==_0x5e8728[_0x4afb('0x155')][_0x4afb('0x85')]&&_0x5e8728['start'][_0x4afb('0xd')];}(_0xdb78a4)))_0x1314b0['removeMarker'](_0xa3f4aa),_0x218a93=!0x0;else{if(!_0x1d112b||!_0x1d112b['isInContent'])continue;_0x2a0a24[_0x4afb('0x74')](_0x1d112b);}}}var _0xdb78a4;return _0x2a0a24['size']>0x0&&(_0x218a93=!!this[_0x4afb('0x4d')](_0x2a0a24)||_0x218a93),_0x218a93;}),_0x473b34['model'][_0x4afb('0xa7')][_0x4afb('0xfe')](_0x2bc559=>{let _0x294aa3=!0x1;for(const _0x8173e3 of _0x473b34[_0x4afb('0xbc')][_0x4afb('0xa7')][_0x4afb('0x136')][_0x4afb('0xd3')]())if('insert'==_0x8173e3['type'])for(const _0x374dbb of this[_0x4afb('0xff')][_0x4afb('0xc4')]()){if(_0x374dbb[_0x4afb('0x8f')]||!_0x374dbb[_0x4afb('0x26')])continue;const _0x38fef6=_0x4afb('0x23')==_0x374dbb['type'],_0x5c916e=Pt(_0x374dbb),_0x44fedc=_0x5c916e&&this['_isBlockAttribute'](_0x5c916e);if(!_0x38fef6&&!_0x44fedc)continue;const _0x25962e=_0x374dbb[_0x4afb('0x109')]();if(_0x25962e['start'][_0x4afb('0x4c')]!=_0x25962e['end'][_0x4afb('0x4c')]&&!_0x25962e[_0x4afb('0x155')][_0x4afb('0xd')]){const _0x275df2=_0x473b34['model'][_0x4afb('0x61')](_0x25962e['start'][_0x4afb('0x65')],_0x4afb('0x155')),_0x1f57a6=_0x473b34[_0x4afb('0xbc')][_0x4afb('0x16d')](_0x25962e[_0x4afb('0x69')],_0x275df2);_0x2bc559[_0x4afb('0xb')](_0x374dbb['getFirstMarker'](),{'range':_0x1f57a6}),_0x294aa3=!0x0;}}return _0x294aa3;}),_0x473b34[_0x4afb('0xbc')][_0x4afb('0xa7')][_0x4afb('0xfe')](_0x306623=>this[_0x4afb('0x13')](_0x306623)),_0x473b34['model'][_0x4afb('0xa7')][_0x4afb('0xfe')](_0x506126=>!_0x506126[_0x4afb('0x12c')]['isLocal']&&this[_0x4afb('0x122')](_0x506126)),_0x473b34['model'][_0x4afb('0x11')]['on'](_0x4afb('0xe9'),(_0x2333c8,_0xa20f5a,_0x41f253)=>{if(null==_0x41f253){const {id:_0x100267}=this[_0x4afb('0xb3')](_0xa20f5a[_0x4afb('0x67')]),_0x52e825=this[_0x4afb('0xff')][_0x4afb('0xc6')](_0x100267);_0x52e825&&_0x52e825['addMarkerName'](_0xa20f5a[_0x4afb('0x67')]);}}),_0x473b34['model'][_0x4afb('0xa7')]['on'](_0x4afb('0xf7'),()=>{const _0x336d99=Array['from'](_0x473b34[_0x4afb('0xbc')][_0x4afb('0xa7')]['differ'][_0x4afb('0x13a')]())[_0x4afb('0x156')](_0x220fa3=>_0x4afb('0xea')===this['_splitMarkerName'](_0x220fa3[_0x4afb('0x67')])[_0x4afb('0x58')]);if(0x0===_0x336d99[_0x4afb('0x5a')])return;_0x336d99[_0x4afb('0x172')]((_0x62a737,_0x4ac1b9)=>{const _0x1def37=_0x62a737['data'][_0x4afb('0x178')],_0x4ac2c9=_0x4ac1b9[_0x4afb('0x102')][_0x4afb('0x178')];return null===_0x1def37&&null===_0x4ac2c9?0x0:null===_0x1def37&&null!==_0x4ac2c9?-0x1:null!==_0x1def37&&null===_0x4ac2c9?0x1:_0x1def37[_0x4afb('0x69')][_0x4afb('0x3d')](_0x4ac2c9[_0x4afb('0x69')])?-0x1:0x1;});const _0x229dea=new Set(),_0x4483c3=new Set();for(const {name:_0x184f89,data:_0x4c49af}of _0x336d99){const {id:_0x41dd4e}=this[_0x4afb('0xb3')](_0x184f89);if(null===_0x4c49af[_0x4afb('0x178')]){const _0x156114=this[_0x4afb('0x15a')](_0x184f89);_0x4483c3['add'](_0x156114);}else{const _0x3ad8c1=this[_0x4afb('0xff')][_0x4afb('0xc6')](_0x41dd4e);null!==_0x4c49af['newRange']||_0x3ad8c1[_0x4afb('0x26')]?(_0x229dea['add'](_0x3ad8c1[_0x4afb('0x16e')]),_0x4483c3['add'](_0x3ad8c1)):this[_0x4afb('0xc3')](_0x3ad8c1);}}_0x4483c3['size']>0x0&&this[_0x4afb('0x0')](_0x4483c3);for(const _0xba1ec2 of _0x229dea)this[_0x4afb('0x142')](_0x4afb('0xec'),_0xba1ec2);}),_0x473b34[_0x4afb('0xbc')]['on'](_0x4afb('0x175'),(_0x5526f3,_0x5d5fe4)=>{const _0x488c59=_0x5d5fe4[0x0];if(!this[_0x4afb('0xff')]['size'])return;if(!_0x488c59[_0x4afb('0xf8')])return;if(_0x488c59[_0x4afb('0x12c')][_0x4afb('0x2a')]||!_0x488c59[_0x4afb('0x12c')][_0x4afb('0x129')])return;let _0x8a088d,_0x58ab81;switch(_0x488c59[_0x4afb('0x149')]){case _0x4afb('0xc9'):_0x8a088d=_0x473b34[_0x4afb('0xbc')][_0x4afb('0x61')](_0x488c59['position']),_0x58ab81=_0x8a088d[_0x4afb('0xaf')](_0x488c59[_0x4afb('0x128')]);break;case'split':_0x8a088d=_0x473b34[_0x4afb('0xbc')]['createPositionAt'](_0x488c59[_0x4afb('0x46')]),_0x58ab81=_0x473b34['model'][_0x4afb('0x61')](_0x488c59[_0x4afb('0x100')]);break;case _0x4afb('0x40'):_0x8a088d=_0x473b34[_0x4afb('0xbc')]['createPositionAt'](_0x488c59[_0x4afb('0xca')]),_0x58ab81=_0x8a088d['getShiftedBy'](_0x488c59[_0x4afb('0x128')]);break;default:return;}const _0x222f6e=_0x473b34[_0x4afb('0xbc')][_0x4afb('0x16d')](_0x8a088d,_0x58ab81);_0x473b34[_0x4afb('0xbc')]['change'](()=>{for(const {suggestion:_0x58a735,meta:_0x243975}of this['_findSuggestions'](_0x222f6e)){if(_0x58a735['isMultiRange'])continue;if(_0x4afb('0x73')==_0x58a735[_0x4afb('0x149')])continue;const _0x4f66fe=Pt(_0x58a735);if(_0x4f66fe&&this['_isBlockAttribute'](_0x4f66fe)&&'split'!=_0x488c59[_0x4afb('0x149')])continue;const _0x58dbba=_0x58a735[_0x4afb('0x102')]&&_0x58a735['data'][_0x4afb('0x70')];(_0x4afb('0x23')!=_0x58a735[_0x4afb('0x149')]||_0x4afb('0x97')==_0x488c59['type']&&!_0x58dbba)&&(_0x243975[_0x4afb('0x18')]||_0x4afb('0x9e')==_0x58a735['type']&&_0x243975[_0x4afb('0xd4')]||_0x58a735[_0x4afb('0x109')]()[_0x4afb('0xad')](_0x222f6e)&&this[_0x4afb('0x92')](_0x58a735,_0x8a088d,_0x58ab81));}});},{'priority':_0x4afb('0x76')}),_0x473b34['model']['on'](_0x4afb('0x10'),(_0xbc1733,_0x452096)=>{const _0x1c17aa=_0x452096[0x0],_0x198f9=_0x452096[0x1];if(_0x198f9&&_0x198f9[_0x4afb('0x41')])return;if(this[_0x4afb('0x159')])return;if(!this[_0x4afb('0x177')][_0x4afb('0xc2')])return;if(_0x1c17aa[_0x4afb('0x16')])return;const _0x5c0972=_0x473b34[_0x4afb('0xbc')][_0x4afb('0x121')],{start:_0x75285a,end:_0x581bea}=_0x1c17aa[_0x4afb('0x109')](),_0x51fff2=_0x75285a[_0x4afb('0x65')]&&_0x5c0972['isLimit'](_0x75285a['nodeAfter'])?null:_0x5c0972['getNearestSelectionRange'](_0x75285a,_0x4afb('0xf0')),_0x319c8f=_0x581bea[_0x4afb('0x85')]&&_0x5c0972[_0x4afb('0x16c')](_0x581bea[_0x4afb('0x85')])?null:_0x5c0972[_0x4afb('0x106')](_0x581bea,_0x4afb('0x174')),_0x4220dc=_0x473b34['model'][_0x4afb('0x16d')](_0x51fff2?_0x51fff2['start']:_0x75285a,_0x319c8f?_0x319c8f[_0x4afb('0x155')]:_0x581bea);_0x473b34[_0x4afb('0xbc')][_0x4afb('0xce')](_0x443c45=>{this[_0x4afb('0xeb')](_0x4220dc);const _0x4f49f8=_0x473b34[_0x4afb('0xbc')][_0x4afb('0x121')]['getNearestSelectionRange'](_0x4220dc[_0x4afb('0x69')]);_0x1c17aa['is']('documentSelection')?_0x443c45[_0x4afb('0x42')](_0x4f49f8):_0x1c17aa[_0x4afb('0x104')](_0x4f49f8);}),_0xbc1733['stop']();},{'priority':_0x508283[_0x4afb('0x22')]+0xa}),_0x473b34[_0x4afb('0xbc')]['on'](_0x4afb('0x8e'),(_0x166889,_0x1855b9)=>{const _0x20de4f=_0x1855b9[_0x1855b9[_0x4afb('0x5a')]-0x1];_0x20de4f&&_0x20de4f['forceDefaultExecution']||this[_0x4afb('0x159')]||this[_0x4afb('0x177')][_0x4afb('0xc2')]&&(_0x473b34[_0x4afb('0xbc')][_0x4afb('0xce')](()=>{let _0x3d9ea5=_0x473b34['model'][_0x4afb('0x8e')](_0x1855b9[0x0],_0x1855b9[0x1],_0x1855b9[0x2],{'forceDefaultExecution':!0x0});if(!_0x3d9ea5)return;_0x166889['return']=_0x3d9ea5[_0x4afb('0xb5')]();const _0x41452d=_0x3d9ea5[_0x4afb('0x155')][_0x4afb('0x85')],_0x17a69b=_0x473b34[_0x4afb('0xbc')][_0x4afb('0x121')];_0x41452d&&_0x17a69b['isBlock'](_0x41452d)&&!_0x17a69b['isObject'](_0x41452d)&&(_0x3d9ea5=_0x473b34[_0x4afb('0xbc')][_0x4afb('0x16d')](_0x3d9ea5['start'],_0x473b34['model'][_0x4afb('0x61')](_0x41452d,'end'))),this[_0x4afb('0x153')](_0x3d9ea5);}),_0x166889[_0x4afb('0x2c')]());},{'priority':_0x4afb('0x21')}),this['editor'][_0x4afb('0x13f')][_0x4afb('0x74')](_0x4afb('0xfd'),this[_0x4afb('0x177')]),this[_0x4afb('0x72')](_0x4afb('0xfd'));const _0x575886=new _0xd83162(_0x473b34,this['_suggestions']);_0x473b34[_0x4afb('0x13f')]['add'](_0x4afb('0x80'),_0x575886),this[_0x4afb('0x72')](_0x4afb('0x80'));const _0x14113e=new _0x83434a(_0x473b34,this['_suggestions']);_0x473b34[_0x4afb('0x13f')][_0x4afb('0x74')](_0x4afb('0x10f'),_0x14113e),this['enableCommand'](_0x4afb('0x10f')),_0x473b34[_0x4afb('0x13f')]['add'](_0x4afb('0xd9'),new _0x4bdcd5(_0x473b34,_0x575886,this[_0x4afb('0xff')])),this['enableCommand'](_0x4afb('0xd9')),_0x473b34[_0x4afb('0x13f')][_0x4afb('0x74')](_0x4afb('0xdf'),new _0x4bdcd5(_0x473b34,_0x14113e,this[_0x4afb('0xff')])),this['enableCommand'](_0x4afb('0xdf')),_0x473b34['commands']['add']('acceptSelectedSuggestions',new _0x4050e4(_0x473b34,_0x575886,this[_0x4afb('0xff')])),this[_0x4afb('0x72')](_0x4afb('0x2e')),_0x473b34[_0x4afb('0x13f')]['add'](_0x4afb('0x3'),new _0x4050e4(_0x473b34,_0x14113e,this[_0x4afb('0xff')])),this[_0x4afb('0x72')](_0x4afb('0x3'));const _0x1b18b1=_0x473b34[_0x4afb('0x49')][_0x4afb('0xc6')](_0x4afb('0x167'));this[_0x4afb('0x68')](_0x1b18b1,'addComment',(_0x240684,{threadId:_0x305834})=>{const _0x336c76=this[_0x4afb('0xff')][_0x4afb('0xc6')](_0x305834);_0x336c76&&_0x336c76[_0x4afb('0x10c')]&&0x1===_0x336c76['commentThread'][_0x4afb('0x5a')]&&this[_0x4afb('0x4a')](_0x305834,{'hasComments':!0x0});},{'priority':_0x4afb('0x118')}),this[_0x4afb('0x68')](_0x1b18b1,'removeComment',(_0x45bec9,{threadId:_0x59a91f})=>{const _0x468c51=this[_0x4afb('0xff')]['get'](_0x59a91f);_0x468c51&&_0x468c51['commentThread']&&!_0x468c51[_0x4afb('0x10c')][_0x4afb('0x5a')]&&this[_0x4afb('0x4a')](_0x59a91f,{'hasComments':!0x1});},{'priority':_0x4afb('0x118')});}set[_0x4afb('0xa8')](_0x1b8c26){if(this[_0x4afb('0x12e')])throw new _0x40538a(_0x4afb('0x14d'),this);this[_0x4afb('0x12e')]=_0x1b8c26;}get[_0x4afb('0xa8')](){return this[_0x4afb('0x12e')];}['getSuggestions']({skipNotAttached:_0x58d2bb=!0x1,toJSON:_0x2ec87a=!0x1}={}){const _0x211876=[];for(const _0x4fce48 of this[_0x4afb('0xff')][_0x4afb('0xc4')]())_0x58d2bb&&!_0x4fce48[_0x4afb('0x26')]||_0x211876[_0x4afb('0x10e')](_0x4fce48);return _0x2ec87a?_0x211876[_0x4afb('0x9c')](_0x2d3639=>_0x2d3639[_0x4afb('0x4')]()):_0x211876;}[_0x4afb('0x7a')](_0x542f3a){const _0x253d9d=this[_0x4afb('0xff')][_0x4afb('0xc6')](_0x542f3a);if(!_0x253d9d)throw new _0x40538a(_0x4afb('0x15c'),this);return _0x253d9d;}[_0x4afb('0x103')](_0x1d1757){return this['_suggestions']['has'](_0x1d1757);}[_0x4afb('0x34')](_0x9d3f8d){const {authorId:_0xf10c9e,id:_0x3755f0,attributes:_0x316f68}=_0x9d3f8d,[_0x30e02b,_0x16853f]=_0x9d3f8d[_0x4afb('0x149')][_0x4afb('0x97')](':'),_0x168cd1=this[_0x4afb('0xff')]['get'](_0x3755f0)||this['_createSuggestion'](_0x30e02b,_0x16853f,_0x3755f0,_0xf10c9e,_0x316f68);if(this[_0x4afb('0xd5')](_0x168cd1),this[_0x4afb('0x105')](_0x168cd1,_0x30e02b,_0x16853f||null,_0xf10c9e),_0x168cd1[_0x4afb('0x55')]=_0x9d3f8d[_0x4afb('0x55')],_0x168cd1[_0x4afb('0xfb')]=!0x0,_0x316f68&&_0x316f68[_0x4afb('0xd1')]){const _0x3184a5=_0x316f68[_0x4afb('0xd1')],_0x23ac3e=this[_0x4afb('0x98')](_0x3184a5['authorName']);_0x168cd1[_0x4afb('0x7c')]=_0x3184a5[_0x4afb('0x55')],_0x168cd1['author']=_0x23ac3e,_0x168cd1[_0x4afb('0x14e')]=!0x0;}else _0x168cd1['authoredAt']=_0x9d3f8d['createdAt'];switch(_0x9d3f8d[_0x4afb('0x102')]&&(_0x168cd1[_0x4afb('0x102')]=_0x9d3f8d[_0x4afb('0x102')]),_0x9d3f8d[_0x4afb('0x99')]&&(_0x168cd1['attributes']=_0x9d3f8d['attributes']),this[_0x4afb('0x12e')]&&this['_adapter'][_0x4afb('0x117')]||(_0x168cd1[_0x4afb('0xd8')]=!0x0),this[_0x4afb('0x87')][_0x4afb('0xc6')](_0x168cd1)){case _0x4afb('0xe6'):this[_0x4afb('0x87')][_0x4afb('0x39')](_0x168cd1,'dataReady');break;case'markerReady':_0x168cd1[_0x4afb('0x26')]?(this[_0x4afb('0x0')](new Set([_0x168cd1])),this[_0x4afb('0x4d')](new Set([_0x168cd1])),this[_0x4afb('0x87')][_0x4afb('0x39')](_0x168cd1,_0x4afb('0x51')),this[_0x4afb('0x142')](_0x4afb('0x53'),_0x168cd1)):this[_0x4afb('0x87')]['set'](_0x168cd1,_0x4afb('0x1b'));}return _0x168cd1;}['acceptSuggestion'](_0x58399d){this[_0x4afb('0x41')](()=>{this[_0x4afb('0x143')][_0x4afb('0xbc')]['change'](()=>{for(const _0x2bc6d2 of _0x58399d[_0x4afb('0xfa')]())_0x2bc6d2['accept']();});});}[_0x4afb('0x10f')](_0x3eca38){this[_0x4afb('0x41')](()=>{this[_0x4afb('0x143')][_0x4afb('0xbc')][_0x4afb('0xce')](()=>{for(const _0x16464e of _0x3eca38['getAllAdjacentSuggestions']())_0x16464e['discard']();});});}['enableCommand'](_0x28db8e,_0x14a8af){const _0x8014ed=this[_0x4afb('0x143')][_0x4afb('0x13f')][_0x4afb('0xc6')](_0x28db8e);if(!_0x8014ed)throw new _0x40538a('track-changes-command-not-found',this,{'commandName':_0x28db8e});if(this[_0x4afb('0x88')]['has'](_0x8014ed))throw new _0x40538a(_0x4afb('0xa4'),this,{'commandName':_0x28db8e});this['_enabledCommands']['add'](_0x8014ed),_0x14a8af&&_0x8014ed['on'](_0x4afb('0x101'),(_0x1f14ea,_0x4559aa)=>{this[_0x4afb('0x177')][_0x4afb('0xc2')]&&(this[_0x4afb('0x159')]||(_0x4559aa['length']>0x0&&_0x4559aa[_0x4559aa[_0x4afb('0x5a')]-0x1]&&_0x4559aa[_0x4559aa[_0x4afb('0x5a')]-0x1][_0x4afb('0x41')]?_0x4559aa[_0x4afb('0x145')]():(_0x1f14ea['return']=_0x14a8af((..._0x1237e1)=>_0x8014ed[_0x4afb('0x101')](..._0x1237e1,{'forceDefaultExecution':!0x0}),..._0x4559aa),_0x1f14ea[_0x4afb('0x2c')]())));},{'priority':_0x4afb('0x21')});}[_0x4afb('0x41')](_0x2db277){let _0x346a3f,_0x1e9917;const _0x53e523=this[_0x4afb('0x159')];this[_0x4afb('0x159')]=!0x0;try{_0x346a3f=_0x2db277();}catch(_0x36e14f){_0x1e9917=_0x36e14f;}return _0x53e523||(this[_0x4afb('0x159')]=!0x1),_0x1e9917&&_0x40538a[_0x4afb('0x35')](_0x1e9917,this),_0x346a3f;}[_0x4afb('0x153')](_0x1c36a7,_0x367faa=null,_0xb51bcc={}){if(_0x1c36a7[_0x4afb('0x16')])return null;const _0x4192e3=this[_0x4afb('0x143')][_0x4afb('0x49')]['get']('Users')['me'];for(const {suggestion:_0x1a3296,meta:_0x318777}of this['_findSuggestions'](_0x1c36a7,_0x4afb('0x9e')))if(_0x318777['isOwn']){if(!_0x318777[_0x4afb('0x30')]){if(_0x318777[_0x4afb('0x18')]){if(!this[_0x4afb('0x3f')]||!Gt(_0x1a3296,_0xb51bcc))continue;return _0x1a3296;}if(Gt(_0x1a3296,_0xb51bcc))return _0x1a3296;this[_0x4afb('0x92')](_0x1a3296,_0x1c36a7[_0x4afb('0x69')],_0x1c36a7[_0x4afb('0x155')]);break;}if(_0x367faa==_0x1a3296[_0x4afb('0x7')]&&Gt(_0x1a3296,_0xb51bcc)){const _0x79803=_0x1a3296[_0x4afb('0x109')]();return _0x79803[_0x4afb('0x69')]['isEqual'](_0x1c36a7[_0x4afb('0x155')])?this['_setSuggestionRange'](_0x1a3296,this['_model'][_0x4afb('0x16d')](_0x1c36a7[_0x4afb('0x69')],_0x79803[_0x4afb('0x155')])):this[_0x4afb('0x6c')](_0x1a3296,this[_0x4afb('0x44')][_0x4afb('0x16d')](_0x79803['start'],_0x1c36a7[_0x4afb('0x155')])),_0x1a3296;}}const _0x3227f5=_0x10e1a2(),_0x5b1829=_0x4192e3['id'],_0x5e37ad=_0x367faa?_0x4afb('0x173')+_0x367faa:_0x4afb('0x9e'),_0x8df46c=this[_0x4afb('0x81')]({'id':_0x3227f5,'type':_0x5e37ad,'createdAt':new Date(),'authorId':_0x5b1829,'attributes':_0xb51bcc});return this[_0x4afb('0x11c')](_0x5e37ad,_0x3227f5,_0x5b1829,_0x1c36a7),_0x8df46c;}[_0x4afb('0x140')](_0xbb5c96,_0x502840=_0x4afb('0x3a'),_0x3c7553={}){const _0x4e6969=this['editor'][_0x4afb('0x49')][_0x4afb('0xc6')](_0x4afb('0xd2'))['me'],_0xb9462b=this[_0x4afb('0x11e')][_0x4afb('0x147')]('insertion',_0x502840,_0x4afb('0x15d'));for(const _0x3dffa6 of this[_0x4afb('0xbf')]())if(_0x3dffa6[_0x4afb('0x3c')]['id']==_0x4e6969['id']&&_0x4afb('0x9e')==_0x3dffa6['type']&&_0x3dffa6['subType']==_0x502840&&Gt(_0x3dffa6,_0x3c7553)&&(_0xb9462b(_0x3dffa6[_0x4afb('0x15')](),_0xbb5c96)||_0xb9462b(_0xbb5c96,_0x3dffa6[_0x4afb('0x15')]()))){for(const _0x24bb1b of _0xbb5c96)_0x3dffa6[_0x4afb('0x165')](_0x24bb1b);return _0x3dffa6;}for(const {suggestion:_0x51618e,meta:_0x5f3d8f}of this['_findSuggestions'](_0xbb5c96,_0x4afb('0x9e'))){if(!_0x5f3d8f[_0x4afb('0xd4')])continue;if(!this['_mergeNestedSuggestions']&&_0x5f3d8f[_0x4afb('0x18')])continue;if(!Gt(_0x51618e,_0x3c7553))continue;let _0x2ae905=!0x0;for(const _0x2b8f28 of _0x51618e['getRanges']())for(const _0x2d176b of _0xbb5c96)if(!_0x2b8f28[_0x4afb('0xad')](_0x2d176b)){_0x2ae905=!0x1;break;}if(_0x2ae905)return _0x51618e;}const _0x3f606d=_0x10e1a2(),_0x11e11f=_0x4e6969['id'],_0x473740=_0x4afb('0x173')+_0x502840,_0x4728ce=this[_0x4afb('0x81')]({'id':_0x3f606d,'type':_0x473740,'createdAt':new Date(),'authorId':_0x11e11f,'attributes':_0x3c7553});for(const _0x148525 of _0xbb5c96)this[_0x4afb('0x11c')](_0x473740,_0x3f606d,_0x11e11f,_0x148525,_0x322e16[_0x4afb('0xf5')]());return _0x4728ce;}[_0x4afb('0xdd')](_0x38f4bb,_0x204c4c,_0x1372f2=null,_0x3edffc={}){if(_0x1372f2=_0x1372f2||Et(_0x204c4c),_0x38f4bb[_0x4afb('0x16')])return null;if(_0x4afb('0x135')===this[_0x4afb('0xcb')]){const _0x108086=this[_0x4afb('0x11e')][_0x4afb('0x147')]('formatInline',_0x1372f2,_0x4afb('0xe2'));return this['forceDefaultExecution'](()=>_0x108086([_0x38f4bb],_0x204c4c,_0x3edffc)),null;}const _0x307f6c=this[_0x4afb('0x143')][_0x4afb('0x49')][_0x4afb('0xc6')](_0x4afb('0xd2'))['me'],_0x57610f=[];if(_0x4afb('0x162')!==this[_0x4afb('0xcb')])for(const {suggestion:_0x4bd07d,meta:_0x1b500b}of this[_0x4afb('0x5b')](_0x38f4bb,'insertion'))_0x1b500b[_0x4afb('0xd4')]&&!_0x1b500b[_0x4afb('0x45')]&&_0x57610f[_0x4afb('0x10e')](..._0x4bd07d['getRanges']());const _0x2ac980=function(_0x3ac816,_0x5dfd51){const _0x2b5b66=[];for(const _0x4721b3 of _0x5dfd51){const _0x5e458a=_0x3ac816[_0x4afb('0xe0')](_0x4721b3);_0x5e458a&&_0x2b5b66[_0x4afb('0x10e')](_0x5e458a);}return _0x2b5b66;}(_0x38f4bb,_0x57610f),_0x3930ce=function(_0x2f11aa,_0x388b1d){const _0x22f144=[_0x2f11aa];for(const _0x5363e1 of _0x388b1d){let _0xdc8e2c=0x0;for(;_0xdc8e2c<_0x22f144[_0x4afb('0x5a')];){const _0x4d388d=_0x22f144[_0xdc8e2c][_0x4afb('0xf')](_0x5363e1);_0x22f144['splice'](_0xdc8e2c,0x1,..._0x4d388d),_0xdc8e2c+=_0x4d388d[_0x4afb('0x5a')];}}return _0x22f144;}(_0x38f4bb,_0x57610f);_0x2ac980[_0x4afb('0x5a')]&&this[_0x4afb('0x44')][_0x4afb('0xce')](()=>{for(const _0xb6e286 of _0x2ac980){const _0x4a0dac=this['_suggestionFactory'][_0x4afb('0x147')]('formatInline',_0x1372f2,_0x4afb('0xe2'));this['forceDefaultExecution'](()=>_0x4a0dac([_0xb6e286],_0x204c4c,_0x3edffc));}});for(const _0xc36b6e of _0x3930ce){let _0x5835f9=null,_0x1527e1=_0xc36b6e[_0x4afb('0x69')],_0x3ee7fa=_0xc36b6e[_0x4afb('0x155')];for(const {suggestion:_0x49c184,meta:_0x4cd183}of this[_0x4afb('0x5b')](_0xc36b6e,_0x4afb('0x73'))){if(!_0x4cd183['isOwn'])continue;if(_0x49c184[_0x4afb('0x7')]!=_0x1372f2)continue;if(!Gt(_0x49c184,_0x3edffc))continue;const _0xc2c716=_0x49c184[_0x4afb('0x109')]();if(_0xc2c716[_0x4afb('0xad')](_0xc36b6e,!0x0))return null;_0x1527e1=_0x1527e1[_0x4afb('0x3d')](_0xc2c716[_0x4afb('0x69')])?_0x1527e1:_0xc2c716[_0x4afb('0x69')],_0x3ee7fa=_0x3ee7fa[_0x4afb('0xa3')](_0xc2c716[_0x4afb('0x155')])?_0x3ee7fa:_0xc2c716[_0x4afb('0x155')],_0x5835f9?_0xc2c716[_0x4afb('0x69')][_0x4afb('0x3d')](_0x5835f9['getFirstRange']()[_0x4afb('0x69')])?(_0x5835f9[_0x4afb('0xf1')](),_0x5835f9=_0x49c184):_0x49c184[_0x4afb('0xf1')]():_0x5835f9=_0x49c184;}const _0x22374f=this[_0x4afb('0x44')]['createRange'](_0x1527e1,_0x3ee7fa);if(_0x5835f9)this[_0x4afb('0x6c')](_0x5835f9,_0x22374f);else{const _0x403ead=_0x10e1a2(),_0x513518=_0x307f6c['id'];this[_0x4afb('0x81')]({'id':_0x403ead,'type':'formatInline:'+_0x1372f2,'data':_0x204c4c,'createdAt':new Date(),'authorId':_0x513518,'attributes':_0x3edffc}),this[_0x4afb('0x11c')]('formatInline:'+_0x1372f2,_0x403ead,_0x513518,_0x22374f);}}return null;}[_0x4afb('0x8')](_0x58bf56,_0x2301f4,_0x154707=[],_0x4ef5f9=null,_0x43bce={}){_0x2301f4[_0x4afb('0x148')]||(_0x2301f4[_0x4afb('0x148')]=_0x2301f4[_0x4afb('0x19')]),_0x2301f4['multipleBlocks']=_0x58bf56['is'](_0x4afb('0x50')),_0x4ef5f9=_0x4ef5f9||Et(_0x2301f4);const _0x4c9194=_0x154707[_0x4afb('0x9c')](_0x385702=>Ut(_0x385702,this[_0x4afb('0x44')])),_0x57f83b=_0x58bf56['is'](_0x4afb('0x50'))?_0x58bf56:Ut(_0x58bf56,this[_0x4afb('0x44')]);if('never'===this[_0x4afb('0xcb')]){const _0x182f3b=this[_0x4afb('0x11e')]['getSuggestionCallback'](_0x4afb('0x23'),_0x4ef5f9,_0x4afb('0xe2'));return this['forceDefaultExecution'](()=>_0x182f3b([_0x57f83b],_0x2301f4,_0x43bce)),null;}_0x4c9194['push'](_0x57f83b);let _0x4a3fde=!0x0;for(const _0xeda8a1 of _0x4c9194)if(!this[_0x4afb('0x14')](_0xeda8a1)){_0x4a3fde=!0x1;break;}if(_0x4a3fde&&_0x4afb('0x162')!==this[_0x4afb('0xcb')]){const _0x1a2d92=this[_0x4afb('0x11e')]['getSuggestionCallback'](_0x4afb('0x23'),_0x4ef5f9,_0x4afb('0xe2'));return this[_0x4afb('0x41')](()=>_0x1a2d92([_0x57f83b],_0x2301f4,_0x43bce)),null;}let _0x13fcab=null,_0x491442=_0x57f83b[_0x4afb('0x69')],_0x49d399=_0x57f83b['end'];for(const {suggestion:_0x1dc545,meta:_0x16561d}of this[_0x4afb('0x5b')](_0x57f83b,'formatBlock')){if(!_0x16561d[_0x4afb('0xd4')])continue;if(_0x16561d[_0x4afb('0x30')]||_0x16561d[_0x4afb('0x18')]||_0x16561d[_0x4afb('0x45')])continue;if(_0x1dc545[_0x4afb('0x102')][_0x4afb('0x148')]!=_0x2301f4[_0x4afb('0x148')])continue;if(!Gt(_0x1dc545,_0x43bce))continue;const _0x1974c4=_0x1dc545['getFirstRange']();if(_0x1dc545[_0x4afb('0x7')]==_0x4ef5f9){if(_0x1974c4['containsRange'](_0x57f83b,!0x0))return null;_0x491442=_0x491442[_0x4afb('0x3d')](_0x1974c4[_0x4afb('0x69')])?_0x491442:_0x1974c4['start'],_0x49d399=_0x49d399[_0x4afb('0xa3')](_0x1974c4[_0x4afb('0x155')])?_0x49d399:_0x1974c4[_0x4afb('0x155')],_0x13fcab?_0x1974c4[_0x4afb('0x69')][_0x4afb('0x3d')](_0x13fcab[_0x4afb('0x109')]()['start'])?(_0x13fcab['removeMarkers'](),_0x13fcab=_0x1dc545):_0x1dc545['removeMarkers']():_0x13fcab=_0x1dc545;}else{const _0x12c439=_0x57f83b['getIntersection'](_0x1974c4);this[_0x4afb('0xa5')](_0x1dc545,_0x12c439);}}const _0xa68e4c=this[_0x4afb('0x143')][_0x4afb('0x49')][_0x4afb('0xc6')]('Users')['me'],_0x581f50=_0x10e1a2(),_0x2065fe=_0xa68e4c['id'];if(_0x13fcab)return this['_setSuggestionRange'](_0x13fcab,this[_0x4afb('0x44')][_0x4afb('0x16d')](_0x491442,_0x49d399)),_0x13fcab;{const _0x335506=this[_0x4afb('0x81')]({'id':_0x581f50,'type':'formatBlock:'+_0x4ef5f9,'data':_0x2301f4,'createdAt':new Date(),'authorId':_0x2065fe,'attributes':_0x43bce});return this[_0x4afb('0x11c')](_0x4afb('0x9')+_0x4ef5f9,_0x581f50,_0x2065fe,this[_0x4afb('0x44')]['createRange'](_0x491442,_0x49d399)),_0x335506;}}[_0x4afb('0x13d')](_0x4a2b9a,_0x431602,_0x26a8a2=[],_0x443524=null,_0x4a3c15={}){_0x431602[_0x4afb('0x148')]||(_0x431602[_0x4afb('0x148')]=_0x431602[_0x4afb('0x19')]);const _0x337c46=_0x4a2b9a[0x0];_0x431602[_0x4afb('0x70')]=_0x337c46['is'](_0x4afb('0x50')),_0x443524=_0x443524||Et(_0x431602);const _0x236581=_0x26a8a2['map'](_0xbab165=>Ut(_0xbab165,this['_model'])),_0x396cbd=_0x337c46['is'](_0x4afb('0x50'))?_0x4a2b9a:_0x4a2b9a['map'](_0x4719ef=>Ut(_0x4719ef,this[_0x4afb('0x44')]));if('never'===this[_0x4afb('0xcb')]){const _0xb522d3=this['_suggestionFactory'][_0x4afb('0x147')]('formatBlock',_0x443524,_0x4afb('0xe2'));return this[_0x4afb('0x41')](()=>_0xb522d3(_0x396cbd,_0x431602,_0x4a3c15)),null;}_0x236581['push'](..._0x396cbd);let _0x3a7858=!0x0;for(const _0x51fc14 of _0x236581)if(!this['_rangeIsInLocalUserInsertion'](_0x51fc14)){_0x3a7858=!0x1;break;}if(_0x3a7858&&_0x4afb('0x162')!==this[_0x4afb('0xcb')]){const _0x228cd3=this[_0x4afb('0x11e')][_0x4afb('0x147')](_0x4afb('0x23'),_0x443524,_0x4afb('0xe2'));return this[_0x4afb('0x41')](()=>_0x228cd3(_0x396cbd,_0x431602,_0x4a3c15)),null;}const _0x270e4c=this[_0x4afb('0x143')]['plugins'][_0x4afb('0xc6')](_0x4afb('0xd2'))['me'];for(const _0x9a19eb of this['getSuggestions']()){if(_0x9a19eb[_0x4afb('0x3c')]['id']!=_0x270e4c['id'])continue;if(_0x4afb('0x23')!=_0x9a19eb[_0x4afb('0x149')]||_0x9a19eb[_0x4afb('0x102')][_0x4afb('0x148')]!=_0x431602['formatGroupId'])continue;if(!Gt(_0x9a19eb,_0x4a3c15))continue;const _0x200c5b=_0x9a19eb[_0x4afb('0x7')]==_0x443524;for(let _0x21cc92=0x0;_0x21cc92<_0x396cbd['length'];_0x21cc92++){const _0x4b8436=_0x396cbd[_0x21cc92];for(const _0x1c7350 of _0x9a19eb['getMarkers']()){const _0x293004=_0x1c7350[_0x4afb('0xef')]();if(_0x4b8436['isEqual'](_0x293004)){_0x200c5b?(_0x396cbd[_0x4afb('0x8c')](_0x21cc92,0x1),_0x21cc92--):_0x9a19eb[_0x4afb('0x144')](_0x1c7350['name']);break;}}}}if(0x0==_0x396cbd[_0x4afb('0x5a')])return null;const _0x85f672=this[_0x4afb('0x11e')][_0x4afb('0x147')]('formatBlock',_0x443524,'join');for(const _0x1e85a7 of this[_0x4afb('0xbf')]())if(_0x1e85a7['author']['id']==_0x270e4c['id']&&'formatBlock'==_0x1e85a7[_0x4afb('0x149')]&&_0x1e85a7[_0x4afb('0x102')]['formatGroupId']==_0x431602[_0x4afb('0x148')]&&_0x1e85a7['subType']==_0x443524&&Gt(_0x1e85a7,_0x4a3c15)&&(_0x85f672(_0x1e85a7[_0x4afb('0x15')](),_0x396cbd)||_0x85f672(_0x396cbd,_0x1e85a7['getRanges']()))){for(const _0x472fed of _0x396cbd)_0x1e85a7['addRange'](_0x472fed);return _0x1e85a7;}const _0x80d01e=_0x10e1a2(),_0x206b4d=_0x270e4c['id'],_0x25e0da='formatBlock:'+_0x443524,_0x45fb45=this[_0x4afb('0x81')]({'id':_0x80d01e,'type':_0x25e0da,'data':_0x431602,'createdAt':new Date(),'authorId':_0x206b4d,'attributes':_0x4a3c15});for(const _0x50f10d of _0x396cbd)this[_0x4afb('0x11c')](_0x25e0da,_0x80d01e,_0x206b4d,_0x50f10d,_0x322e16[_0x4afb('0xf5')]());return _0x45fb45;}[_0x4afb('0xeb')](_0x1e3602,_0x865a26=null,_0x2d35e2={}){if(_0x1e3602[_0x4afb('0x16')])return null;const _0xb7c038=this[_0x4afb('0x143')]['plugins'][_0x4afb('0xc6')](_0x4afb('0xd2'))['me'],_0x18104b=new _0x3bf644(_0x1e3602[_0x4afb('0x69')],_0x1e3602[_0x4afb('0x155')]);for(const {suggestion:_0x53d3dd,meta:_0x4c51e2}of this[_0x4afb('0x5b')](_0x18104b,'insertion'))if(_0x4c51e2[_0x4afb('0xd4')]&&!_0x4c51e2['isNextTo']){if(_0x53d3dd[_0x4afb('0x8f')]){const _0x459b0d=_0x53d3dd['getRanges']()[_0x4afb('0x156')](_0x2c48d6=>_0x4afb('0xae')!=_0x2c48d6[_0x4afb('0x27')][_0x4afb('0x5c')]);_0x459b0d[_0x4afb('0x13e')](_0x36c867=>_0x18104b[_0x4afb('0xad')](_0x36c867,!0x0))&&_0x53d3dd['discard']();if(_0x459b0d['some'](_0x33d736=>_0x33d736[_0x4afb('0xad')](_0x18104b,!0x0))){const _0x1918d5=this['_suggestionFactory'][_0x4afb('0x147')](_0x4afb('0xe'),_0x865a26,_0x4afb('0xe2'));return this[_0x4afb('0x41')](()=>_0x1918d5([_0x18104b],null,_0x2d35e2)),null;}}else{const _0x248eba=_0x18104b[_0x4afb('0xe0')](_0x53d3dd[_0x4afb('0x109')]());null!==_0x248eba&&_0x53d3dd[_0x4afb('0x96')]([_0x248eba],null,_0x2d35e2);}}if(_0x18104b['detach'](),_0x18104b[_0x4afb('0x16')]||_0x4afb('0xae')==_0x18104b[_0x4afb('0x27')][_0x4afb('0x5c')])return null;let _0x2c4b77=null,_0x47ad9b=_0x18104b[_0x4afb('0x69')],_0x5d20e9=_0x18104b['end'];const _0x2665ff=this[_0x4afb('0x5b')](_0x18104b,'deletion');for(const {suggestion:_0xe0da99,meta:_0x3a10de}of _0x2665ff){const _0x2576d5=this[_0x4afb('0x44')][_0x4afb('0x16d')](_0x47ad9b,_0x5d20e9);if(_0x3a10de[_0x4afb('0xd4')]&&(this['_mergeNestedSuggestions']||!_0x3a10de[_0x4afb('0x18')]&&!_0x3a10de[_0x4afb('0x45')])){if(_0xe0da99[_0x4afb('0x8f')]){if(!Gt(_0xe0da99,_0x2d35e2))continue;let _0x258ace=!0x0;for(const _0x15b26b of _0xe0da99[_0x4afb('0x15')]()){if(_0x15b26b['containsRange'](_0x2576d5,!0x0))return _0xe0da99;_0x2576d5[_0x4afb('0xad')](_0x15b26b)||(_0x258ace=!0x1);}_0x258ace&&_0xe0da99[_0x4afb('0x89')]();}else{const _0x582bec=_0xe0da99[_0x4afb('0x109')]();if(_0x582bec['containsRange'](_0x2576d5,!0x0))return _0xe0da99;if(!Gt(_0xe0da99,_0x2d35e2)){_0x2576d5[_0x4afb('0xad')](_0x582bec)?_0xe0da99[_0x4afb('0xf1')]():_0x582bec[_0x4afb('0x134')](_0x47ad9b)?_0x47ad9b=_0x582bec['end']:_0x582bec[_0x4afb('0x134')](_0x5d20e9)&&(_0x5d20e9=_0x582bec[_0x4afb('0x69')]);continue;}_0x47ad9b=_0x47ad9b[_0x4afb('0x3d')](_0x582bec[_0x4afb('0x69')])?_0x47ad9b:_0x582bec[_0x4afb('0x69')],_0x5d20e9=_0x5d20e9[_0x4afb('0xa3')](_0x582bec[_0x4afb('0x155')])?_0x5d20e9:_0x582bec['end'],_0x2d35e2=Object[_0x4afb('0x48')]({},_0xe0da99[_0x4afb('0x99')]),_0x2c4b77?_0x582bec[_0x4afb('0x69')][_0x4afb('0x3d')](_0x2c4b77['getFirstRange']()[_0x4afb('0x69')])?(_0x2c4b77['removeMarkers'](),_0x2c4b77=_0xe0da99):_0xe0da99[_0x4afb('0xf1')]():_0x2c4b77=_0xe0da99;}}}if(_0x2c4b77)return this[_0x4afb('0x6c')](_0x2c4b77,this['_model'][_0x4afb('0x16d')](_0x47ad9b,_0x5d20e9)),_0x2c4b77;{const _0x374389=_0x10e1a2(),_0x43238f=this[_0x4afb('0x44')][_0x4afb('0x16d')](_0x47ad9b,_0x5d20e9),_0x1c945f=_0xb7c038['id'],_0x3ec26e=_0x865a26?'deletion:'+_0x865a26:_0x4afb('0xe'),_0x3f6778=this[_0x4afb('0x81')]({'id':_0x374389,'type':_0x3ec26e,'createdAt':new Date(),'authorId':_0x1c945f,'attributes':_0x2d35e2});return this[_0x4afb('0x11c')](_0x3ec26e,_0x374389,_0x1c945f,_0x43238f),_0x3f6778;}}['markMultiRangeDeletion'](_0x34b277,_0x112ca9=_0x4afb('0x3a'),_0x2606b7={}){const _0x1dee08=this[_0x4afb('0x143')][_0x4afb('0x49')][_0x4afb('0xc6')](_0x4afb('0xd2'))['me'],_0x43adbc=_0x34b277['map'](_0x1245f3=>new _0x3bf644(_0x1245f3['start'],_0x1245f3[_0x4afb('0x155')])),_0x4f19c0=new Set();for(const {suggestion:_0x148300,meta:_0x2bfe90}of this[_0x4afb('0x5b')](_0x43adbc,_0x4afb('0x9e')))_0x2bfe90[_0x4afb('0xd4')]&&!_0x2bfe90[_0x4afb('0x30')]&&_0x4f19c0[_0x4afb('0x74')](_0x148300);for(const _0x2d11b2 of _0x4f19c0)if(_0x2d11b2[_0x4afb('0x8f')]){const _0x282e41=_0x2d11b2[_0x4afb('0x15')]();(!_0x2d11b2['attributes']||!_0x2d11b2[_0x4afb('0x99')][_0x4afb('0x24')])&&(_0x282e41[_0x4afb('0x13e')](_0x2b8ae1=>_0x43adbc[_0x4afb('0x6b')](_0x27080c=>_0x27080c[_0x4afb('0xad')](_0x2b8ae1,!0x0)))&&_0x2d11b2[_0x4afb('0x89')]());if(_0x43adbc[_0x4afb('0x13e')](_0x2604dd=>_0x282e41[_0x4afb('0x6b')](_0x493333=>_0x493333['containsRange'](_0x2604dd,!0x0)))){const _0x316092=this[_0x4afb('0x11e')][_0x4afb('0x147')]('deletion',_0x112ca9,_0x4afb('0xe2'));return this[_0x4afb('0x41')](()=>_0x316092(_0x34b277,null,_0x2606b7)),null;}}else{const _0x2b74d0=_0x2d11b2[_0x4afb('0x109')]();_0x43adbc['some'](_0x3da086=>_0x3da086['containsRange'](_0x2b74d0,!0x0))&&_0x2d11b2['discard']();if(_0x43adbc[_0x4afb('0x13e')](_0x5d86fb=>_0x2b74d0[_0x4afb('0xad')](_0x5d86fb,!0x0))){const _0x1704bc=this[_0x4afb('0x11e')][_0x4afb('0x147')](_0x4afb('0xe'),_0x112ca9,_0x4afb('0xe2'));return this['forceDefaultExecution'](()=>_0x1704bc(_0x43adbc,null,_0x2606b7)),null;}}const _0x19e4a4=this['_suggestionFactory'][_0x4afb('0x147')](_0x4afb('0xe'),_0x112ca9,_0x4afb('0x15d'));let _0x164d84=null;for(const _0x23b8f5 of this[_0x4afb('0xbf')]())if(_0x23b8f5['author']['id']==_0x1dee08['id']&&_0x23b8f5[_0x4afb('0x26')]&&_0x4afb('0xe')==_0x23b8f5[_0x4afb('0x149')]&&_0x23b8f5[_0x4afb('0x7')]==_0x112ca9&&Gt(_0x23b8f5,_0x2606b7)&&(_0x19e4a4(_0x23b8f5[_0x4afb('0x15')](),_0x43adbc)||_0x19e4a4(_0x43adbc,_0x23b8f5[_0x4afb('0x15')]()))){if(_0x164d84){if(_0x23b8f5[_0x4afb('0x10c')]&&_0x23b8f5[_0x4afb('0x10c')]['length'])continue;for(const _0x47e6de of _0x23b8f5[_0x4afb('0x15')]())_0x164d84['isIntersectingWithRange'](_0x47e6de)||_0x164d84[_0x4afb('0x165')](_0x47e6de);_0x23b8f5[_0x4afb('0xf1')]();}else{_0x164d84=_0x23b8f5;for(const _0x15b923 of _0x43adbc)_0x23b8f5[_0x4afb('0xb4')](_0x15b923)||_0x23b8f5[_0x4afb('0x165')](_0x15b923);}}if(_0x164d84)return _0x164d84;_0x4f19c0['clear']();for(const {suggestion:_0x58a1b5,meta:_0x301add}of this[_0x4afb('0x5b')](_0x43adbc,_0x4afb('0xe')))_0x301add['isOwn']&&(this[_0x4afb('0x3f')]||!_0x301add[_0x4afb('0x18')]&&!_0x301add[_0x4afb('0x45')])&&Gt(_0x58a1b5,_0x2606b7)&&_0x4f19c0[_0x4afb('0x74')](_0x58a1b5);for(const _0x53cac6 of _0x4f19c0){const _0x30e057=_0x53cac6[_0x4afb('0x15')]();if(!_0x2606b7||!_0x2606b7[_0x4afb('0x24')]){if(_0x43adbc['every'](_0x50038f=>_0x30e057['some'](_0x58a06e=>_0x58a06e[_0x4afb('0xad')](_0x50038f,!0x0))))return _0x53cac6;}(!_0x53cac6[_0x4afb('0x99')]||!_0x53cac6[_0x4afb('0x99')][_0x4afb('0x24')])&&(_0x30e057[_0x4afb('0x13e')](_0x34cb06=>_0x43adbc['some'](_0x54aa81=>_0x54aa81[_0x4afb('0xad')](_0x34cb06,!0x0)))&&_0x53cac6['discard']());}const _0xd64718=_0x10e1a2(),_0x29698a=_0x1dee08['id'],_0x5de7dc=_0x4afb('0x90')+_0x112ca9,_0x4ef383=this[_0x4afb('0x81')]({'id':_0xd64718,'type':_0x5de7dc,'createdAt':new Date(),'authorId':_0x29698a,'attributes':_0x2606b7});for(const _0xed3a3a of _0x43adbc)_0xed3a3a['detach'](),_0xed3a3a['isCollapsed']||_0x4afb('0xae')==_0xed3a3a[_0x4afb('0x27')][_0x4afb('0x5c')]||this['_addSuggestionMarker'](_0x5de7dc,_0xd64718,_0x29698a,_0xed3a3a,_0x322e16[_0x4afb('0xf5')]());return _0x4ef383;}['markAttributeChange'](_0x2c7678,_0x1ad5a3,_0x4a759f,_0x107673,_0x540eb7){if(_0x2c7678[_0x4afb('0x16')])return[];if(_0x4afb('0x135')===this['_trackFormatChanges'])return[];const _0x142af8=this['editor'][_0x4afb('0x49')][_0x4afb('0xc6')](_0x4afb('0xd2'))['me']['id'],_0x589cde=Array[_0x4afb('0x5')](this[_0x4afb('0xff')][_0x4afb('0xc4')]())[_0x4afb('0x156')](_0x29622b=>_0x4afb('0x60')==_0x29622b['type']&&_0x29622b[_0x4afb('0x102')][_0x4afb('0xcf')]==_0x1ad5a3&&_0x29622b[_0x4afb('0xb4')](_0x2c7678));if('default'===this[_0x4afb('0xcb')]){const _0x21638c=this[_0x4afb('0x5b')](_0x2c7678,_0x4afb('0x9e'))['filter'](({meta:_0x1eb47e})=>_0x1eb47e[_0x4afb('0xd4')]&&!_0x1eb47e[_0x4afb('0x45')]&&!_0x1eb47e[_0x4afb('0x30')])['map'](({suggestion:_0x2f1470})=>_0x2f1470);_0x589cde['unshift'](..._0x21638c);}const _0x5170b7=new Map([[_0x2c7678,_0x4a759f]]);for(const _0x3811ae of _0x589cde){const _0xff3c2d=_0x4afb('0x60')==_0x3811ae['type']?_0x3811ae[_0x4afb('0x102')][_0x4afb('0x166')]:void 0x0,_0x35aaac=_0x3811ae[_0x4afb('0x109')](),_0x3d671b=Array['from'](_0x5170b7[_0x4afb('0x2d')]())['find'](_0x55e786=>_0x55e786['isIntersecting'](_0x35aaac));if(!_0x3d671b)continue;const _0x26f1df=_0x3d671b[_0x4afb('0xf')](_0x35aaac);this[_0x4afb('0x15f')](_0x1ad5a3)&&'insertion'==_0x3811ae[_0x4afb('0x149')]&&0x0!=_0x26f1df['length']||(_0x5170b7[_0x4afb('0x6d')](_0x3d671b),_0x26f1df[_0x4afb('0x131')](_0x539158=>{_0x5170b7[_0x4afb('0x39')](_0x539158,_0x4a759f);}),_0x4afb('0x9e')!=_0x3811ae[_0x4afb('0x149')]&&_0xff3c2d!=_0x107673&&_0x5170b7[_0x4afb('0x39')](_0x3d671b[_0x4afb('0xe0')](_0x35aaac),_0xff3c2d));}const _0x14eef5=[];for(const [_0x1d097e,_0x1c4ac4]of _0x5170b7){const _0x2d1fb6=_0x10e1a2(),_0x2e36c0={'key':_0x1ad5a3,'oldValue':_0x1c4ac4,'newValue':_0x107673};_0x1ad5a3[_0x4afb('0x5a')]>0x25&&console[_0x4afb('0xf9')](_0x4afb('0x14f'),{'key':_0x1ad5a3});const _0x162fbc=(_0x4afb('0xb8')+(_0x1ad5a3+'|'+Et({'newValue':_0x107673})))[_0x4afb('0x10d')](0x0,0x3c),_0x4c0efe=this['_setSuggestionData']({'id':_0x2d1fb6,'type':_0x162fbc,'data':_0x2e36c0,'createdAt':new Date(),'authorId':_0x142af8,'attributes':_0x540eb7});_0x14eef5[_0x4afb('0x10e')](_0x4c0efe),this[_0x4afb('0x11c')](_0x162fbc,_0x2d1fb6,_0x142af8,_0x1d097e);}return _0x14eef5;}[_0x4afb('0x12f')](_0x1b42a7){this[_0x4afb('0x43')][_0x4afb('0x74')](_0x1b42a7);}[_0x4afb('0xa0')](_0x2822b4){this['_inlineAttributeKeys'][_0x4afb('0x74')](_0x2822b4);}[_0x4afb('0x14c')](_0x5e21ab,_0x748653=[],_0x1c1f89=[]){this[_0x4afb('0x72')](_0x5e21ab,(_0x56312f,..._0x4ced0b)=>{this[_0x4afb('0x146')](()=>{_0x56312f(..._0x4ced0b);});});for(const _0x3e358b of _0x748653)this[_0x4afb('0xa0')](_0x3e358b);for(const _0x32e9fe of _0x1c1f89)this[_0x4afb('0x12f')](_0x32e9fe);}[_0x4afb('0x6c')](_0x78e06,_0x6f4873){const _0x490c20=_0x78e06[_0x4afb('0x7d')]();this[_0x4afb('0x44')][_0x4afb('0xce')](_0x46ed70=>{_0x46ed70['updateMarker'](_0x490c20,{'range':_0x6f4873});});}['_addThreadToSuggestion'](_0x5c7af0){const _0x32b08c=_0x5c7af0['id'],_0x1c7463=this[_0x4afb('0x143')][_0x4afb('0xb0')]['get'](_0x4afb('0x62'));this[_0x4afb('0x93')][_0x4afb('0x7e')](_0x32b08c)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1c7463,'threadId':_0x32b08c,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x925796=this[_0x4afb('0x93')]['getCommentThread'](_0x32b08c);_0x925796[_0x4afb('0x36')]('isRemovable'),_0x925796[_0x4afb('0xbe')]=!0x1,_0x5c7af0[_0x4afb('0x10c')]=_0x925796;}[_0x4afb('0x105')](_0x4dce40,_0x4d4005,_0x5e5852,_0x32890e){if(_0x4dce40['type']!=_0x4d4005||_0x4dce40['subType']!=_0x5e5852||_0x4dce40[_0x4afb('0x33')]['id']!=_0x32890e)throw this[_0x4afb('0x143')][_0x4afb('0xba')](_0x4afb('0x115')),new _0x40538a('track-changes-suggestion-data-mismatch',this);}[_0x4afb('0xa5')](_0x73515d,_0x1f029a){const _0x574f44=_0x73515d['getFirstRange']();if(_0x1f029a[_0x4afb('0x11d')](_0x574f44))_0x73515d[_0x4afb('0xf1')]();else{if(_0x574f44[_0x4afb('0xad')](_0x1f029a)){const _0x31badd=this['_model'][_0x4afb('0x61')](_0x1f029a[_0x4afb('0x69')][_0x4afb('0x85')],_0x4afb('0x155'));this['_setSuggestionRange'](_0x73515d,this[_0x4afb('0x44')][_0x4afb('0x16d')](_0x574f44[_0x4afb('0x69')],_0x31badd));const _0x2ec37e=_0x10e1a2(),_0x569218=_0x73515d['creator']['id'],_0x4e7f25=_0x73515d[_0x4afb('0x149')]+':'+_0x73515d[_0x4afb('0x7')];this[_0x4afb('0x81')]({'id':_0x2ec37e,'type':_0x4e7f25,'createdAt':new Date(),'authorId':_0x569218,'data':_0x73515d[_0x4afb('0x102')],'attributes':_0x73515d[_0x4afb('0x99')]});const _0x1ccaac=this[_0x4afb('0x44')]['createPositionAt'](_0x1f029a[_0x4afb('0x155')][_0x4afb('0x4c')],_0x4afb('0x179')),_0x4481d9=this['_model'][_0x4afb('0x16d')](_0x1ccaac,_0x574f44[_0x4afb('0x155')]);this[_0x4afb('0x11c')](_0x4e7f25,_0x2ec37e,_0x569218,_0x4481d9);}else{if(_0x574f44['containsPosition'](_0x1f029a[_0x4afb('0x69')])){const _0x2a455f=this['_model'][_0x4afb('0x61')](_0x1f029a[_0x4afb('0x69')][_0x4afb('0x85')],_0x4afb('0x155'));this[_0x4afb('0x6c')](_0x73515d,this[_0x4afb('0x44')]['createRange'](_0x574f44['start'],_0x2a455f));}else{const _0x3ff945=this[_0x4afb('0x44')][_0x4afb('0x61')](_0x1f029a['end'][_0x4afb('0x4c')],_0x4afb('0x179'));this[_0x4afb('0x6c')](_0x73515d,this[_0x4afb('0x44')][_0x4afb('0x16d')](_0x3ff945,_0x574f44[_0x4afb('0x155')]));}}}}[_0x4afb('0x14')](_0x565983){for(const {suggestion:_0x47dcc7,meta:_0x56fd2a}of this[_0x4afb('0x5b')](_0x565983,_0x4afb('0x9e'))){if(!_0x56fd2a[_0x4afb('0xd4')])continue;const _0x500949=_0x47dcc7[_0x4afb('0x15')]();for(const _0x137b80 of _0x500949)if(!_0x565983['getDifference'](_0x137b80)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xc3409f){const _0x5c4262=this['editor'][_0x4afb('0x49')][_0x4afb('0xc6')](_0x4afb('0xd2'))[_0x4afb('0x112')](_0xc3409f);if(!_0x5c4262)throw new _0x40538a(_0x4afb('0x2'),this);return _0x5c4262;}[_0x4afb('0x98')](_0x5d9f81){const _0x150cc3=this[_0x4afb('0x143')][_0x4afb('0x49')][_0x4afb('0xc6')](_0x4afb('0xd2')),_0x203a9e=_0x2446e5(_0x4afb('0x127')+_0x5d9f81),_0x59942f=_0x150cc3[_0x4afb('0x112')](_0x203a9e);return _0x59942f||_0x150cc3['addUser']({'id':_0x203a9e,'name':_0x5d9f81});}[_0x4afb('0xa9')](_0x430f32,_0x58b105,_0x411716,_0x3a211a,_0x2f2a60){const _0x4b0345=this[_0x4afb('0x130')](_0x3a211a),_0x572f66=this[_0x4afb('0x11e')][_0x4afb('0xc5')](_0x430f32,_0x58b105,_0x411716,_0x4b0345,_0x2f2a60,_0x5b4356=>this[_0x4afb('0x4a')](_0x411716,{'attributes':_0x5b4356}));return this[_0x4afb('0x68')](_0x572f66,_0x4afb('0xe2'),()=>{this[_0x4afb('0x4a')](_0x411716,{'state':_0x4afb('0x52')});},{'priority':_0x4afb('0x21')}),this['listenTo'](_0x572f66,_0x4afb('0x89'),()=>{this[_0x4afb('0x4a')](_0x411716,{'state':'rejected'});},{'priority':_0x4afb('0x21')}),this['_suggestions'][_0x4afb('0x39')](_0x411716,_0x572f66),this[_0x4afb('0x87')]['set'](_0x572f66,'notReady'),_0x572f66;}[_0x4afb('0xb3')](_0x127113){const _0x15f966=_0x127113['split'](':');return{'group':_0x15f966[0x0],'type':_0x15f966[0x1],'subType':_0x15f966[_0x4afb('0x5a')]>=0x5?_0x15f966[0x2]:null,'id':_0x15f966[_0x4afb('0x5a')]<0x5?_0x15f966[0x2]:_0x15f966[0x3],'authorId':_0x15f966[_0x4afb('0x5a')]<0x5?_0x15f966[0x3]:_0x15f966[0x4],'markerCount':0x6==_0x15f966[_0x4afb('0x5a')]?_0x15f966[0x5]:null};}[_0x4afb('0x92')](_0x13c023,_0x3cdc72,_0x4fa3a6){const _0x4d7537=_0x13c023['getFirstRange'](),_0x1d39c8=_0x4d7537[_0x4afb('0x69')],_0x131d9d=_0x4d7537[_0x4afb('0x155')];this['_setSuggestionRange'](_0x13c023,this[_0x4afb('0x44')][_0x4afb('0x16d')](_0x1d39c8,_0x3cdc72));const _0x38975a=_0x10e1a2(),_0x506032=_0x13c023[_0x4afb('0x33')]['id'],_0x3e7403=_0x13c023['type']+(_0x13c023[_0x4afb('0x7')]?':'+_0x13c023[_0x4afb('0x7')]:'');this[_0x4afb('0x81')]({'id':_0x38975a,'type':_0x3e7403,'createdAt':new Date(),'authorId':_0x506032,'originalSuggestionId':_0x13c023['id'],'attributes':_0x13c023[_0x4afb('0x99')],'data':_0x13c023[_0x4afb('0x102')]});const _0x4cf3df=Pt(_0x13c023);(_0x4afb('0x23')==_0x13c023['type']||_0x4cf3df&&this['_isBlockAttribute'](_0x4cf3df))&&(_0x4fa3a6=this[_0x4afb('0x44')][_0x4afb('0x111')](_0x4fa3a6[_0x4afb('0x4c')])),this[_0x4afb('0x11c')](_0x3e7403,_0x38975a,_0x506032,this['_model'][_0x4afb('0x16d')](_0x4fa3a6,_0x131d9d));}[_0x4afb('0x5b')](_0x4cf5d3,_0x514fb3=null){const _0x4e8739=[],_0x14149f=this[_0x4afb('0x143')]['plugins']['get']('Users')['me'];Array[_0x4afb('0xdb')](_0x4cf5d3)||(_0x4cf5d3=[_0x4cf5d3]);for(const _0x1b90bb of this['getSuggestions']()){if(!_0x1b90bb[_0x4afb('0x26')])continue;if(_0x514fb3&&_0x1b90bb['type']!=_0x514fb3)continue;let _0x4309cd=!0x1;for(const _0x3e6e42 of _0x1b90bb[_0x4afb('0x15')]()){for(const _0x11251e of _0x4cf5d3){const _0x335ee5=_0x11251e[_0x4afb('0x69')][_0x4afb('0x11d')](_0x3e6e42['end'])||_0x11251e[_0x4afb('0x155')][_0x4afb('0x11d')](_0x3e6e42['start']);if(_0x335ee5||_0x11251e[_0x4afb('0xe0')](_0x3e6e42)){const _0x435b60=_0x11251e[_0x4afb('0xad')](_0x3e6e42)&&Bt(this[_0x4afb('0x44')][_0x4afb('0x121')],_0x3e6e42['start'],_0x11251e),_0x27765f=_0x3e6e42[_0x4afb('0xad')](_0x11251e)&&Bt(this[_0x4afb('0x44')][_0x4afb('0x121')],_0x11251e[_0x4afb('0x69')],_0x3e6e42);_0x4e8739[_0x4afb('0x10e')]({'suggestion':_0x1b90bb,'meta':{'isOwn':_0x14149f==_0x1b90bb[_0x4afb('0x3c')],'isNextTo':_0x335ee5,'isInsideObject':_0x435b60,'containsRangeInObject':_0x27765f}}),_0x4309cd=!0x0;break;}}if(_0x4309cd)break;}}return _0x4e8739;}[_0x4afb('0x11c')](_0x306cbd,_0x65b931,_0x578628,_0x2e7cd2,_0x11e122){this[_0x4afb('0x44')]['change'](_0x25cca2=>{let _0x4247b9=_0x4afb('0x5e')+_0x306cbd+':'+_0x65b931+':'+_0x578628;_0x11e122&&(_0x4247b9=_0x4247b9+':'+_0x11e122),_0x25cca2['addMarker'](_0x4247b9,{'range':_0x2e7cd2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x29aa11){const _0x22a3d1=_0x29aa11[_0x4afb('0x120')],_0x1e9731=_0x29aa11[_0x4afb('0x164')];_0x29aa11[_0x4afb('0x120')]=null,_0x29aa11[_0x4afb('0x164')]=null,null!=_0x22a3d1&&(_0x22a3d1[_0x4afb('0x164')]=_0x1e9731),null!=_0x1e9731&&(_0x1e9731[_0x4afb('0x120')]=_0x22a3d1),'ready'==this[_0x4afb('0x87')][_0x4afb('0xc6')](_0x29aa11)&&(this[_0x4afb('0x87')][_0x4afb('0x39')](_0x29aa11,_0x4afb('0x1b')),this[_0x4afb('0x142')](_0x4afb('0x9a'),_0x29aa11,_0x22a3d1,_0x1e9731));}[_0x4afb('0x81')](_0x31d0fa){const _0x490063=_0x31d0fa['id'],_0x3ad012=this['addSuggestionData'](_0x31d0fa);if(this[_0x4afb('0x12e')]&&this[_0x4afb('0x12e')]['addSuggestion']){const _0x379e29=this[_0x4afb('0x143')][_0x4afb('0x49')][_0x4afb('0xc6')](_0x4afb('0x1d')),_0x52ea86=_0x3ad012['hasComments'],_0x374a62=_0x3ad012['subType']?_0x3ad012[_0x4afb('0x149')]+':'+_0x3ad012[_0x4afb('0x7')]:_0x3ad012[_0x4afb('0x149')],_0x1958d0=this[_0x4afb('0x143')][_0x4afb('0x137')],_0x37bd80=_0x379e29[_0x4afb('0x74')](_0xde621d(_0x1958d0,_0x4afb('0x17'))),_0x172edc={'id':_0x490063,'type':_0x374a62,'hasComments':_0x52ea86,'data':_0x31d0fa[_0x4afb('0x102')]||null,'originalSuggestionId':_0x31d0fa[_0x4afb('0x66')]||null,'attributes':_0x3ad012[_0x4afb('0x99')]};this[_0x4afb('0x12e')][_0x4afb('0x117')](_0x172edc)[_0x4afb('0xc1')](_0x84f5f0=>{_0x3ad012[_0x4afb('0xd8')]=!0x0,_0x379e29[_0x4afb('0x3b')](_0x37bd80),_0x84f5f0&&_0x84f5f0[_0x4afb('0x55')]&&(this[_0x4afb('0xff')][_0x4afb('0xc6')](_0x490063)['createdAt']=_0x84f5f0['createdAt']);})[_0x4afb('0x126')](_0x165e79=>{throw _0x169fb8(_0x4afb('0x2f')),this[_0x4afb('0x143')]['model'][_0x4afb('0x4b')]({'isUndoable':!0x1},()=>{_0x3ad012[_0x4afb('0x89')]();}),_0x3ad012[_0x4afb('0x170')](),this[_0x4afb('0xff')]['delete'](_0x3ad012['id']),this['_suggestionState'][_0x4afb('0x6d')](_0x3ad012),_0x165e79;});}return _0x3ad012;}['_isBlockAttribute'](_0x2d8310){return this[_0x4afb('0x43')][_0x4afb('0xa')](_0x2d8310);}[_0x4afb('0x4a')](_0x1883c4,_0x5df962){const _0x14d6ff=this[_0x4afb('0x143')][_0x4afb('0x49')]['get'](_0x4afb('0x1d')),_0x2f4a5d=this[_0x4afb('0x7a')](_0x1883c4);if(this[_0x4afb('0x12e')]&&this[_0x4afb('0x12e')][_0x4afb('0x9b')]){if(_0x2f4a5d[_0x4afb('0xd8')]){const _0x3d6d0f=_0x14d6ff[_0x4afb('0x74')](_0xde621d(this[_0x4afb('0x143')][_0x4afb('0x137')],'PENDING_ACTION_SUGGESTION'));this['_adapter'][_0x4afb('0x9b')](_0x1883c4,_0x5df962)[_0x4afb('0xc1')](()=>{_0x14d6ff[_0x4afb('0x3b')](_0x3d6d0f);});}else _0x2f4a5d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1883c4,_0x5df962);});}}['_getSuggestionData'](_0x2c211f){if(!this['_adapter']||!this[_0x4afb('0x12e')][_0x4afb('0x7a')])throw new _0x40538a(_0x4afb('0xac'),this);return this[_0x4afb('0x12e')][_0x4afb('0x7a')](_0x2c211f);}['_handleNewSuggestionMarker'](_0x156964){const {id:_0x18058f,type:_0x4a3261,subType:_0x576a70,authorId:_0x3b22b1}=this[_0x4afb('0xb3')](_0x156964),_0x220c0c=this[_0x4afb('0xff')]['get'](_0x18058f)||this[_0x4afb('0xa9')](_0x4a3261,_0x576a70,_0x18058f,_0x3b22b1,{});switch(this[_0x4afb('0x105')](_0x220c0c,_0x4a3261,_0x576a70,_0x3b22b1),this[_0x4afb('0x87')][_0x4afb('0xc6')](_0x220c0c)){case _0x4afb('0xe6'):this[_0x4afb('0xc7')](_0x18058f)[_0x4afb('0xc1')](_0x339bca=>{let _0x48ffb6=Promise[_0x4afb('0xe1')]();_0x339bca[_0x4afb('0x7b')]&&(_0x48ffb6=this[_0x4afb('0x93')]['fetchCommentThread']({'channelId':this[_0x4afb('0x143')][_0x4afb('0xb0')]['get'](_0x4afb('0x62')),'threadId':_0x18058f})),_0x48ffb6[_0x4afb('0xc1')](()=>{this[_0x4afb('0x34')](_0x339bca)[_0x4afb('0xd8')]=!0x0;});}),this[_0x4afb('0x87')][_0x4afb('0x39')](_0x220c0c,_0x4afb('0x8b'));break;case _0x4afb('0x1b'):this[_0x4afb('0x4a')](_0x18058f,{'state':_0x4afb('0x113')});case'dataReady':this[_0x4afb('0x87')][_0x4afb('0x39')](_0x220c0c,_0x4afb('0x51')),this['fire'](_0x4afb('0x53'),_0x220c0c);break;case _0x4afb('0x51'):this[_0x4afb('0x142')]('suggestionChanged',_0x220c0c);}return _0x220c0c[_0x4afb('0x64')](_0x156964),_0x220c0c;}[_0x4afb('0x0')](_0x453078){const _0xb0d29f=Array[_0x4afb('0x5')](_0x453078),_0x19d28f=_0xb0d29f[_0x4afb('0x156')](_0x485a59=>_0x4afb('0x60')==_0x485a59[_0x4afb('0x149')]);this[_0x4afb('0x154')](_0x19d28f);const _0x4b922d=_0xb0d29f[_0x4afb('0x156')](_0xb51778=>!_0xb51778[_0x4afb('0x8f')]&&_0x4afb('0x60')!=_0xb51778[_0x4afb('0x149')]),_0x5b6a61=this[_0x4afb('0xbf')]({'skipNotAttached':!0x0})['filter'](_0x5d26b9=>!_0x5d26b9[_0x4afb('0x8f')]&&'attribute'!=_0x5d26b9[_0x4afb('0x149')]),_0xee3ba7=_0x5b6a61[_0x4afb('0x156')](_0x4698ea=>!_0x453078[_0x4afb('0xa')](_0x4698ea)),_0x5551e2=new Map(_0x5b6a61[_0x4afb('0x9c')](_0x426c39=>[_0x426c39,this['_suggestionFactory'][_0x4afb('0x147')](_0x426c39[_0x4afb('0x149')],_0x426c39['subType'],_0x4afb('0x16f'))])),_0x516d37=new Map(_0x5b6a61[_0x4afb('0x9c')](_0x43dcc7=>[_0x43dcc7,_0x43dcc7[_0x4afb('0x109')]()])),_0x5d4700=new Set(),_0x145e5e=new Set();for(let _0x37b29b=0x0;_0x37b29b<_0x4b922d['length'];_0x37b29b++)_0x54936b(_0x4b922d[_0x37b29b],_0x4b922d,_0x37b29b+0x1);for(let _0x48da1c=0x0;_0x48da1c<_0x4b922d['length'];_0x48da1c++)_0x54936b(_0x4b922d[_0x48da1c],_0xee3ba7,0x0);const _0x17b7a5=new Set();for(let _0x46f3c9=0x0;_0x46f3c9<_0x4b922d[_0x4afb('0x5a')];_0x46f3c9++){const _0x134c69=_0x4b922d[_0x46f3c9];!_0x145e5e['has'](_0x134c69)&&_0x134c69[_0x4afb('0x120')]&&(_0x17b7a5[_0x4afb('0x74')](_0x134c69[_0x4afb('0x120')]),_0x134c69['previous'][_0x4afb('0x164')]===_0x134c69&&(_0x134c69[_0x4afb('0x120')][_0x4afb('0x164')]=null),_0x134c69[_0x4afb('0x120')]=null),!_0x5d4700[_0x4afb('0xa')](_0x134c69)&&_0x134c69[_0x4afb('0x164')]&&(_0x17b7a5['add'](_0x134c69[_0x4afb('0x164')]),_0x134c69[_0x4afb('0x164')]['previous']===_0x134c69&&(_0x134c69[_0x4afb('0x164')][_0x4afb('0x120')]=null),_0x134c69[_0x4afb('0x164')]=null);}function _0x54936b(_0x3b3efd,_0x5a4869,_0x4011c9){for(let _0x55d8f3=_0x4011c9;_0x55d8f3<_0x5a4869[_0x4afb('0x5a')];_0x55d8f3++){const _0x5aff32=_0x1f1931(_0x3b3efd,_0x5a4869[_0x55d8f3]);_0x5aff32&&(_0x5aff32[0x0]['next']=_0x5aff32[0x1],_0x5aff32[0x1][_0x4afb('0x120')]=_0x5aff32[0x0],_0x5d4700[_0x4afb('0x74')](_0x5aff32[0x0]),_0x145e5e[_0x4afb('0x74')](_0x5aff32[0x1]));}}function _0x1f1931(_0x2a05c0,_0x50f22e){if(_0x2a05c0[_0x4afb('0x3c')]['id']!==_0x50f22e[_0x4afb('0x3c')]['id'])return null;const _0xda8fd2=_0x5551e2[_0x4afb('0xc6')](_0x2a05c0)(_0x2a05c0,_0x50f22e,_0x516d37[_0x4afb('0xc6')](_0x2a05c0),_0x516d37[_0x4afb('0xc6')](_0x50f22e));if(!_0xda8fd2)return null;return _0x5551e2['get'](_0x50f22e)(_0x2a05c0,_0x50f22e,_0x516d37[_0x4afb('0xc6')](_0x2a05c0),_0x516d37['get'](_0x50f22e))?_0xda8fd2[0x1]['commentThread']&&_0xda8fd2[0x1][_0x4afb('0x10c')][_0x4afb('0x5a')]?null:_0xda8fd2:null;}_0x17b7a5[_0x4afb('0xab')]&&this[_0x4afb('0x0')](_0x17b7a5);}[_0x4afb('0x154')](_0x2753e0){if(0x0==_0x2753e0[_0x4afb('0x5a')])return;const _0x3e0e4b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b46a2=>_0x4afb('0x60')==_0x4b46a2['type']&&_0x4b46a2[_0x4afb('0xfb')]),_0x51c8aa=[],_0x26c0d2=new Map();for(const _0x4afa70 of _0x3e0e4b){const _0x1f62a3=_0x2446e5(_0x4afa70[_0x4afb('0x99')]);_0x26c0d2[_0x4afb('0xa')](_0x1f62a3)||(_0x26c0d2['set'](_0x1f62a3,_0x51c8aa[_0x4afb('0x5a')]),_0x51c8aa[_0x4afb('0x10e')]([]));const _0x45ac0b=_0x26c0d2[_0x4afb('0xc6')](_0x1f62a3);_0x51c8aa[_0x45ac0b][_0x4afb('0x10e')](_0x4afa70);}!function(){_0x51c8aa[_0x4afb('0x172')]((_0x4b88cb,_0x1a839d)=>{const _0x22db82=_0x4b88cb[0x0][_0x4afb('0x55')],_0x418444=_0x1a839d[0x0][_0x4afb('0x55')];return _0x22db82==_0x418444?_0x4b88cb[0x0]['attributes'][_0x4afb('0x8a')]<_0x1a839d[0x0]['attributes']['groupId']?-0x1:0x1:_0x22db82<_0x418444?-0x1:0x1;});for(const _0x447c9d of _0x51c8aa)_0x447c9d[_0x4afb('0x172')]((_0x32f138,_0x1b2c32)=>_0x32f138['id']<_0x1b2c32['id']?-0x1:0x1);}();for(let _0x53bd51=0x0;_0x53bd51<_0x51c8aa[_0x4afb('0x5a')];_0x53bd51++){if(0x0==_0x51c8aa[_0x53bd51][_0x4afb('0x5a')])continue;const _0x336f80=[];for(let _0x2b1f54=_0x53bd51+0x1;_0x2b1f54<_0x51c8aa[_0x4afb('0x5a')];_0x2b1f54++)0x0!=_0x51c8aa[_0x2b1f54][_0x4afb('0x5a')]&&_0x50f1c1(_0x51c8aa[_0x53bd51],_0x51c8aa[_0x2b1f54])&&_0x336f80['push'](_0x2b1f54);for(const _0x54038a of _0x336f80)_0x51c8aa[_0x53bd51]=_0x51c8aa[_0x53bd51]['concat'](_0x51c8aa[_0x54038a]),_0x51c8aa[_0x54038a]=[];}for(const _0xb5883 of _0x51c8aa)for(let _0x48d5ec=0x0;_0x48d5ec<_0xb5883[_0x4afb('0x5a')];_0x48d5ec++)_0xb5883[_0x48d5ec]['next']=_0xb5883[_0x48d5ec+0x1]||null;for(const _0xbbe1d2 of _0x51c8aa)for(let _0x1ffab9=0x0;_0x1ffab9<_0xbbe1d2[_0x4afb('0x5a')];_0x1ffab9++)_0xbbe1d2[_0x1ffab9][_0x4afb('0x120')]=_0xbbe1d2[_0x1ffab9-0x1]||null;function _0x50f1c1(_0x4a17c9,_0x5079bd){if(_0x4a17c9[0x0][_0x4afb('0x3c')]!==_0x5079bd[0x0][_0x4afb('0x3c')])return!0x1;if(!function(_0x4552e6,_0x213c31){if(!_0x4552e6[_0x4afb('0x7b')]&&!_0x213c31[_0x4afb('0x7b')])return!0x0;if(_0x4552e6[_0x4afb('0x7b')]&&_0x213c31[_0x4afb('0x7b')])return!0x1;if(_0x4552e6[_0x4afb('0x7b')]&&_0x213c31[_0x4afb('0x55')]<_0x4552e6[_0x4afb('0x10c')][_0x4afb('0x138')][_0x4afb('0xc6')](0x0)['createdAt'])return!0x0;if(_0x213c31[_0x4afb('0x7b')]&&_0x4552e6[_0x4afb('0x55')]<_0x213c31[_0x4afb('0x10c')][_0x4afb('0x138')][_0x4afb('0xc6')](0x0)[_0x4afb('0x55')])return!0x0;return!0x1;}(_0x4a17c9[0x0],_0x5079bd[0x0]))return!0x1;const _0x58de56=_0x34d2aa(_0x4a17c9[0x0][_0x4afb('0x99')],_0x4afb('0x8a')),_0x1db97b=_0x34d2aa(_0x5079bd[0x0]['attributes'],_0x4afb('0x8a'));if(!_0x2d3350(_0x58de56,_0x1db97b))return!0x1;return!!_0x4a17c9[_0x4afb('0x13e')](_0x5e760b=>_0x5079bd[_0x4afb('0x6b')](_0x2f3d7d=>_0x5e760b[_0x4afb('0x109')]()['isEqual'](_0x2f3d7d[_0x4afb('0x109')]())))&&_0x5079bd[_0x4afb('0x13e')](_0xa9211=>_0x4a17c9[_0x4afb('0x6b')](_0x707452=>_0xa9211[_0x4afb('0x109')]()[_0x4afb('0x11d')](_0x707452[_0x4afb('0x109')]())));}}[_0x4afb('0x4d')](_0x327fae){const _0x50bc5e=Array['from'](_0x327fae),_0x7bcf55=this['getSuggestions']({'skipNotAttached':!0x0}),_0x266c10=_0x7bcf55[_0x4afb('0x156')](_0x4fa566=>!_0x327fae[_0x4afb('0xa')](_0x4fa566)),_0x208967=new Map(_0x50bc5e['map'](_0x58b060=>[_0x58b060,this[_0x4afb('0x11e')]['getSuggestionCallback'](_0x58b060['type'],_0x58b060[_0x4afb('0x7')],_0x4afb('0x15d'))])),_0x18d27a=new Map(_0x7bcf55[_0x4afb('0x9c')](_0x535876=>[_0x535876,_0x535876['getRanges']()]));for(let _0x577e2c=0x0;_0x577e2c<_0x50bc5e[_0x4afb('0x5a')];_0x577e2c++){if(_0x55b9ab(this,_0x50bc5e[_0x577e2c],_0x50bc5e,_0x577e2c+0x1))return!0x0;}for(let _0x4b0bde=0x0;_0x4b0bde<_0x50bc5e['length'];_0x4b0bde++){if(_0x55b9ab(this,_0x50bc5e[_0x4b0bde],_0x266c10,0x0))return!0x0;}return!0x1;function _0x55b9ab(_0x2614d3,_0x1d31ad,_0x3df8d7,_0x2b1bc3){for(let _0x1651f0=_0x2b1bc3;_0x1651f0<_0x3df8d7[_0x4afb('0x5a')];_0x1651f0++){const _0x1a2072=_0x3df8d7[_0x1651f0];if(_0x1a2072[_0x4afb('0x149')]!==_0x1d31ad[_0x4afb('0x149')]||_0x1a2072[_0x4afb('0x3c')]['id']!==_0x1d31ad[_0x4afb('0x3c')]['id']||_0x1a2072[_0x4afb('0x7')]!==_0x1d31ad['subType'])continue;if(!Vt(_0x1d31ad,_0x1a2072))continue;if('attribute'==_0x1d31ad['type']&&_0x1d31ad['data'][_0x4afb('0x166')]!=_0x1a2072[_0x4afb('0x102')][_0x4afb('0x166')])continue;if(_0x4afb('0x60')==_0x1d31ad[_0x4afb('0x149')]&&_0x2614d3['_isBlockAttribute'](_0x1d31ad[_0x4afb('0x102')][_0x4afb('0xcf')]))continue;if(_0x4afb('0x23')==_0x1d31ad[_0x4afb('0x149')]){const _0x50c1aa=_0x2614d3['editor'][_0x4afb('0xbc')],_0x48a177=_0x1d31ad[_0x4afb('0x6')]();if(_0x48a177&&(_0x50c1aa[_0x4afb('0x121')]['isObject'](_0x48a177)||_0x50c1aa[_0x4afb('0x121')][_0x4afb('0x16c')](_0x48a177)))continue;}const _0x4455d7=_0x208967['get'](_0x1d31ad),_0x586e4e=_0x18d27a[_0x4afb('0xc6')](_0x1d31ad),_0x54bcdf=_0x18d27a[_0x4afb('0xc6')](_0x1a2072),_0x2127d9=_0x1d31ad['commentThread']&&_0x1d31ad['commentThread']['length'],_0x16c718=_0x1a2072['commentThread']&&_0x1a2072[_0x4afb('0x10c')][_0x4afb('0x5a')];if(!_0x2127d9&&_0x4455d7(_0x54bcdf,_0x586e4e))return _0x2614d3[_0x4afb('0x1')](_0x1a2072,_0x1d31ad),_0x18d27a[_0x4afb('0x6d')](_0x1d31ad),!0x0;if(!_0x16c718&&_0x4455d7(_0x586e4e,_0x54bcdf))return _0x2614d3[_0x4afb('0x1')](_0x1d31ad,_0x1a2072),_0x18d27a['delete'](_0x1a2072),!0x0;}return!0x1;}}[_0x4afb('0x1')](_0x5f3ea6,_0x182a69){if(_0x5f3ea6['isMultiRange'])for(const _0x532513 of _0x182a69[_0x4afb('0x15')]())_0x5f3ea6[_0x4afb('0x165')](_0x532513);else{const _0x38cc22=_0x182a69[_0x4afb('0x109')]()['end'];this['_setSuggestionRange'](_0x5f3ea6,this[_0x4afb('0x44')]['createRange'](_0x5f3ea6[_0x4afb('0x109')]()[_0x4afb('0x69')],_0x38cc22));}_0x182a69[_0x4afb('0xf1')]();}[_0x4afb('0x57')](_0x517b9c,_0x41c099){const _0x5ec551=_0x517b9c[_0x4afb('0x15b')](_0x4afb('0x1e'))||_0x517b9c[_0x4afb('0x15b')](_0x4afb('0x60'))?_0x4afb('0x4e'):_0x517b9c[_0x4afb('0x12b')]();return _0xde621d(this['editor'][_0x4afb('0x137')],_0x41c099+'_'+_0x5ec551+'_SUGGESTION_ANNOUNCEMENT');}[_0x4afb('0x168')](){const _0x1c84dc=this[_0x4afb('0x143')];_0x42f1cd(this['_model'],({left:_0x627726,entered:_0x517719})=>{const _0x495f76=[];for(const _0xa40499 of _0x627726){const {group:_0x3f68ba,type:_0x2fc9d5}=this[_0x4afb('0xb3')](_0xa40499[_0x4afb('0x67')]);if(_0x4afb('0xea')===_0x3f68ba){_0x495f76[_0x4afb('0x10e')](this[_0x4afb('0x57')](_0x2fc9d5,'LEAVE'));break;}}for(const _0x46c990 of _0x517719){const {group:_0x53cf25,type:_0x2252a2}=this[_0x4afb('0xb3')](_0x46c990[_0x4afb('0x67')]);if(_0x4afb('0xea')===_0x53cf25){_0x495f76[_0x4afb('0x10e')](this[_0x4afb('0x57')](_0x2252a2,_0x4afb('0x82')));break;}}_0x495f76[_0x4afb('0x5a')]&&_0x1c84dc['ui'][_0x4afb('0x8d')]['announce'](_0x4afb('0xfd'),_0x495f76[_0x4afb('0x15d')]('\x20'));});}[_0x4afb('0x13')](_0x3a5a3f){if(null!==this[_0x4afb('0xc8')])return!0x1;const _0x3998c7=this[_0x4afb('0x143')],_0x97791e=_0x3998c7[_0x4afb('0xbc')]['document'][_0x4afb('0x136')][_0x4afb('0xd3')]();if(0x0==_0x97791e[_0x4afb('0x5a')])return!0x1;const _0x2f8eac=[],_0x430d68=_0x97791e['filter'](_0x1d4b25=>_0x4afb('0x60')==_0x1d4b25[_0x4afb('0x149')]),_0x1968ef=_0x97791e[_0x4afb('0x156')](_0x3fcfbb=>_0x4afb('0xc9')==_0x3fcfbb['type']&&_0x4afb('0x32')!=_0x3fcfbb['name']),_0x285b7c=_0x97791e[_0x4afb('0x156')](_0x54a7c4=>_0x4afb('0x3b')==_0x54a7c4['type']&&_0x4afb('0x32')!=_0x54a7c4['name']);for(const _0x1aa7c4 of _0x430d68)_0x2f8eac[_0x4afb('0x10e')]({'key':_0x1aa7c4['attributeKey'],'newValue':_0x1aa7c4['attributeNewValue'],'oldValue':_0x1aa7c4[_0x4afb('0x28')],'range':_0x203aed(_0x1aa7c4[_0x4afb('0x50')])});for(const _0x4c313e of _0x1968ef){const _0x5d81a9=_0x285b7c[_0x4afb('0xd7')](_0xd72567=>_0xd72567[_0x4afb('0x161')][_0x4afb('0x11d')](_0x4c313e[_0x4afb('0x161')]));_0x5d81a9&&_0x2f8eac['push']({'key':'$elementName','newValue':_0x4c313e[_0x4afb('0x67')],'oldValue':_0x5d81a9[_0x4afb('0x67')],'range':_0x3998c7[_0x4afb('0xbc')][_0x4afb('0xde')](_0x4c313e[_0x4afb('0x161')]['nodeAfter'])});}return 0x0!=_0x2f8eac['length']&&this[_0x4afb('0x16b')](_0x3a5a3f,_0x2f8eac);function _0x203aed(_0x39ed05){return null==_0x39ed05['end'][_0x4afb('0x85')]&&_0x39ed05[_0x4afb('0x155')][_0x4afb('0x4c')]==_0x39ed05[_0x4afb('0x69')]['nodeAfter']?Ut(_0x39ed05[_0x4afb('0x69')]['nodeAfter'],_0x3998c7[_0x4afb('0xbc')]):_0x39ed05;}}['_processAttributeSuggestions'](_0x69f1cb){let _0x2e12f7=!0x1;const _0x578ce4=this[_0x4afb('0x143')][_0x4afb('0xbc')][_0x4afb('0xa7')]['differ'][_0x4afb('0x13a')]()[_0x4afb('0x156')](_0x236893=>_0x236893[_0x4afb('0x102')][_0x4afb('0xcc')]&&_0x236893[_0x4afb('0x67')]['startsWith'](_0x4afb('0x157')));for(const _0xad6070 of _0x578ce4){const {subType:_0xb45aa,id:_0x2f15fc}=this[_0x4afb('0xb3')](_0xad6070['name']),_0x4f3ea8=_0xb45aa[_0x4afb('0x97')]('|')[0x0];for(const _0x44fcb0 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x44fcb0['id']!=_0x2f15fc&&_0x4afb('0x60')==_0x44fcb0[_0x4afb('0x149')]&&_0x44fcb0['data']&&_0x44fcb0[_0x4afb('0x102')][_0x4afb('0xcf')]==_0x4f3ea8&&_0x44fcb0[_0x4afb('0x109')]()[_0x4afb('0xa6')](_0xad6070['data'][_0x4afb('0xcc')])&&(this[_0x4afb('0x47')](_0x44fcb0,_0xad6070[_0x4afb('0x102')][_0x4afb('0xcc')],_0x69f1cb),_0x2e12f7=!0x0);}return _0x2e12f7;}[_0x4afb('0x146')](_0x3b0403){if(null!==this[_0x4afb('0xc8')])return void _0x3b0403();const _0xa8ec00=this[_0x4afb('0x143')];this[_0x4afb('0xc8')]=_0xa8ec00[_0x4afb('0xbc')][_0x4afb('0xa7')][_0x4afb('0x84')],_0x3b0403();const _0x10a331=new Map();for(const _0x2aca45 of _0xa8ec00[_0x4afb('0xbc')]['document'][_0x4afb('0x6f')]['getOperations'](this['_recordAttributeSuggestionsFromVersion']))if([_0x4afb('0xe5'),'addAttribute',_0x4afb('0xe7'),'changeAttribute'][_0x4afb('0xaa')](_0x2aca45[_0x4afb('0x149')])){const _0x1cfe59=_0x2aca45[_0x4afb('0x12c')],_0x589a55=_0x10a331[_0x4afb('0xc6')](_0x1cfe59)||[];_0x589a55[_0x4afb('0x10e')](_0x2aca45),_0x10a331['set'](_0x1cfe59,_0x589a55);}this[_0x4afb('0xc8')]=null;for(const [_0x2c78b6,_0x15e9ad]of _0x10a331){const _0x119f98=_0x10e1a2();_0xa8ec00[_0x4afb('0xbc')][_0x4afb('0x4b')](_0x2c78b6,_0x3a2be3=>{const _0x5b7b69=[];for(const _0x849aa1 of _0x15e9ad){let _0xe5b432,_0x24ee06,_0xa3f3e2,_0x29f559;if(_0x4afb('0xe5')==_0x849aa1[_0x4afb('0x149')]){const _0x52c08d=_0x849aa1;_0xe5b432=Ut(_0x52c08d[_0x4afb('0x161')]['nodeAfter'],_0xa8ec00[_0x4afb('0xbc')]),_0x24ee06=_0x4afb('0x13c'),_0xa3f3e2=_0x52c08d[_0x4afb('0x7f')],_0x29f559=_0x52c08d[_0x4afb('0x59')];}else{const _0x110e97=_0x849aa1,_0x4739ac=this[_0x4afb('0x15f')](_0x110e97[_0x4afb('0xcf')]),_0x25b7fb=this[_0x4afb('0x95')][_0x4afb('0xa')](_0x110e97[_0x4afb('0xcf')]);if(!_0x4739ac&&!_0x25b7fb)continue;_0xe5b432=_0x4739ac?Ut(_0x110e97['range'][_0x4afb('0x69')]['nodeAfter'],_0xa8ec00[_0x4afb('0xbc')]):_0x110e97[_0x4afb('0x50')],_0x24ee06=_0x110e97[_0x4afb('0xcf')],_0xa3f3e2='removeAttribute'==_0x849aa1[_0x4afb('0x149')]?void 0x0:_0x110e97[_0x4afb('0x1f')],_0x29f559=_0x110e97['oldValue'];}this[_0x4afb('0xf6')](_0xe5b432,_0x24ee06,_0x29f559,_0xa3f3e2,{'groupId':_0x119f98}),_0x5b7b69[_0x4afb('0x10e')]({'range':_0xe5b432,'key':_0x24ee06,'newValue':_0xa3f3e2,'oldValue':_0x29f559});}this[_0x4afb('0x16b')](_0x3a2be3,_0x5b7b69);});}}[_0x4afb('0x16b')](_0x47ea9f,_0x931d14){if(0x0==_0x931d14[_0x4afb('0x5a')])return!0x1;let _0x18b6f8=!0x1;for(const _0x49e99b of _0x931d14){const _0x16ee1f=this[_0x4afb('0x5b')](_0x49e99b['range'],_0x4afb('0x60'))['filter'](_0x371303=>!_0x371303[_0x4afb('0x5d')][_0x4afb('0x30')])[_0x4afb('0x9c')](_0x2ce26c=>_0x2ce26c[_0x4afb('0xea')]),_0x44944d=_0x2446e5({'newValue':_0x49e99b[_0x4afb('0x1f')]});_0x16ee1f[_0x4afb('0x156')](_0x503b53=>{const [_0x35acf8,_0x199f6d]=_0x503b53[_0x4afb('0x7')][_0x4afb('0x97')]('|');return _0x35acf8==_0x49e99b[_0x4afb('0xcf')]&&_0x199f6d!=_0x44944d;})[_0x4afb('0x131')](_0xf45b3f=>{this[_0x4afb('0x47')](_0xf45b3f,_0x49e99b['range'],_0x47ea9f),_0x18b6f8=!0x0;});}return _0x18b6f8;}['_reduceSuggestionAttributeRange'](_0x362489,_0x4570bb,_0x24e7b7){const _0x177f54=_0x362489[_0x4afb('0x109')]()[_0x4afb('0xf')](_0x4570bb);0x0!==_0x177f54['length']?0x1!==_0x177f54[_0x4afb('0x5a')]?this[_0x4afb('0x92')](_0x362489,_0x4570bb[_0x4afb('0x69')],_0x4570bb[_0x4afb('0x155')]):this[_0x4afb('0x6c')](_0x362489,_0x177f54[0x0]):_0x24e7b7[_0x4afb('0x144')](_0x362489['getFirstMarker']());}}class $t{constructor(_0x3bcf35){this['_editor']=_0x3bcf35,this[_0x4afb('0x44')]=_0x3bcf35['model'],this[_0x4afb('0x11a')]=new Map(),this[_0x4afb('0x20')]=new Map(),this[_0x4afb('0xee')]();}[_0x4afb('0xc5')](_0x26ef5d,_0x47538d,_0x578544,_0x102327,_0x35af23,_0x386c28){return new _0x322e16(this[_0x4afb('0x44')],{'type':_0x26ef5d,'subType':_0x47538d,'id':_0x578544,'author':_0x102327,'creator':_0x102327,'attributes':_0x35af23,'onAttributesChange':_0x386c28,'onAccept':(..._0x4909fd)=>this[_0x4afb('0x147')](_0x26ef5d,_0x47538d,_0x4afb('0xe2'))(..._0x4909fd),'onDiscard':(..._0x53617f)=>this['getSuggestionCallback'](_0x26ef5d,_0x47538d,'discard')(..._0x53617f)});}[_0x4afb('0x163')](_0xb5aa94,_0x831603,_0x3caf6a,_0x2028c9){const _0x39aef3=_0xb5aa94+':'+_0x831603+':'+_0x3caf6a;this[_0x4afb('0x11a')][_0x4afb('0x39')](_0x39aef3,_0x2028c9);}[_0x4afb('0x147')](_0x393a7a,_0x32c275,_0x4bbe36){const _0x581612=_0x393a7a+':'+_0x32c275+':'+_0x4bbe36;return this[_0x4afb('0x11a')][_0x4afb('0xc6')](_0x581612)||this[_0x4afb('0x20')]['get'](_0x393a7a+':'+_0x4bbe36);}['_registerDefaultCallbacks'](){const _0x5eb0f7=()=>!0x1,_0x2c8942=_0x2c3a20=>{_0x2c3a20[_0x4afb('0x172')]((_0x176e51,_0x347462)=>_0x176e51[_0x4afb('0x69')][_0x4afb('0x3d')](_0x347462['start'])?0x1:-0x1),this[_0x4afb('0x44')][_0x4afb('0xce')](_0x25e024=>{for(const _0x138446 of _0x2c3a20){let _0x52b4aa;_0x52b4aa=_0x138446[_0x4afb('0x155')][_0x4afb('0xd')]&&_0x138446['end'][_0x4afb('0x4c')]==_0x138446[_0x4afb('0x69')]['nodeAfter']?_0x25e024[_0x4afb('0x158')](_0x138446['start'][_0x4afb('0x65')],'on'):_0x25e024[_0x4afb('0x158')](_0x138446),this['_model']['deleteContent'](_0x52b4aa,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x122cbb=(_0x5046cd,_0x5ac51c)=>{_0x5ac51c&&this[_0x4afb('0x44')]['change'](_0x419384=>{const {commandName:_0xd41ae1,commandParams:_0x328e92=[]}=_0x5ac51c,_0x2dab46=_0x5046cd[_0x4afb('0x9c')](_0x71d4f1=>(Tt(_0x71d4f1)&&(_0x71d4f1=this[_0x4afb('0x44')][_0x4afb('0x16d')](_0x71d4f1[_0x4afb('0x155')])),_0x71d4f1))[_0x4afb('0x156')](_0x3535cb=>_0x4afb('0xae')!==_0x3535cb[_0x4afb('0x27')]['rootName']);if(_0x2dab46[_0x4afb('0x5a')]<0x1)return;const _0x2a727b=Array[_0x4afb('0x5')](this['_model'][_0x4afb('0xa7')][_0x4afb('0x124')][_0x4afb('0x15')]())[_0x4afb('0x9c')](_0x238dcd=>_0x3bf644[_0x4afb('0xc')](_0x238dcd));_0x419384[_0x4afb('0x42')](_0x2dab46);for(const _0x3c4b8c of this[_0x4afb('0x78')][_0x4afb('0x13f')][_0x4afb('0x13f')]())_0x3c4b8c[_0x4afb('0x5f')]();_0x328e92[_0x4afb('0x10e')]({'forceDefaultExecution':!0x0}),this[_0x4afb('0x78')][_0x4afb('0x101')](_0xd41ae1,..._0x328e92);const _0x332cac=_0x2a727b[_0x4afb('0x156')](_0x592cc8=>'$graveyard'!=_0x592cc8[_0x4afb('0x27')]['rootName']);_0x332cac[_0x4afb('0x5a')]>0x0&&_0x419384[_0x4afb('0x42')](_0x332cac);for(const _0x226bb1 of _0x2a727b)_0x226bb1['detach']();});},_0x1d646f=(_0x125aa1,_0x32e427)=>0x1==_0x125aa1[_0x4afb('0x5a')]&&0x1==_0x32e427['length']&&_0x125aa1[0x0][_0x4afb('0x155')][_0x4afb('0x11d')](_0x32e427[0x0][_0x4afb('0x69')]),_0x15bbf0=(_0x477884,_0x6a1f13,_0xcd45b9,_0x157ca0)=>Ot(_0x477884,_0x6a1f13,_0xcd45b9,_0x157ca0,this[_0x4afb('0x44')])?[_0x477884,_0x6a1f13]:Ot(_0x6a1f13,_0x477884,_0x157ca0,_0xcd45b9,this[_0x4afb('0x44')])?[_0x6a1f13,_0x477884]:null;this[_0x4afb('0x20')]['set'](_0x4afb('0x13b'),_0x5eb0f7),this[_0x4afb('0x20')][_0x4afb('0x39')]('insertion:discard',_0x2c8942),this['_defaultCallbacks'][_0x4afb('0x39')](_0x4afb('0x71'),_0x1d646f),this[_0x4afb('0x20')][_0x4afb('0x39')](_0x4afb('0x152'),_0x15bbf0),this[_0x4afb('0x20')][_0x4afb('0x39')](_0x4afb('0x14b'),_0x2c8942),this['_defaultCallbacks'][_0x4afb('0x39')](_0x4afb('0x6a'),_0x5eb0f7),this[_0x4afb('0x20')]['set']('deletion:join',_0x1d646f),this['_defaultCallbacks'][_0x4afb('0x39')](_0x4afb('0x63'),_0x15bbf0),this[_0x4afb('0x20')][_0x4afb('0x39')](_0x4afb('0x3e'),_0x122cbb),this[_0x4afb('0x20')][_0x4afb('0x39')]('formatInline:discard',_0x5eb0f7),this[_0x4afb('0x20')][_0x4afb('0x39')](_0x4afb('0xb7'),_0x1d646f),this[_0x4afb('0x20')][_0x4afb('0x39')](_0x4afb('0x150'),_0x5eb0f7),this['_defaultCallbacks'][_0x4afb('0x39')](_0x4afb('0x9d'),_0x122cbb),this[_0x4afb('0x20')]['set'](_0x4afb('0x75'),_0x5eb0f7),this[_0x4afb('0x20')][_0x4afb('0x39')]('formatBlock:join',_0x1d646f),this[_0x4afb('0x20')][_0x4afb('0x39')](_0x4afb('0x29'),_0x5eb0f7),this['_defaultCallbacks'][_0x4afb('0x39')]('attribute:accept',_0x5eb0f7),this['_defaultCallbacks'][_0x4afb('0x39')](_0x4afb('0xc0'),(_0x47ef1e,_0x5bde31)=>{if(!_0x5bde31)return;const _0x337446=this[_0x4afb('0x78')][_0x4afb('0x49')][_0x4afb('0xc6')](p);this[_0x4afb('0x44')]['change'](_0x5b57c4=>{if(_0x4afb('0x13c')==_0x5bde31[_0x4afb('0xcf')])for(const _0x2180e7 of _0x47ef1e){const _0x368794=_0x2180e7[_0x4afb('0x69')]['nodeAfter'],_0x574519=_0x5bde31[_0x4afb('0x166')];_0x5b57c4[_0x4afb('0xe5')](_0x368794,_0x574519);}else{if(_0x337446[_0x4afb('0x15f')](_0x5bde31[_0x4afb('0xcf')]))for(const _0x1dec7c of _0x47ef1e)void 0x0!==_0x5bde31[_0x4afb('0x166')]?_0x5b57c4[_0x4afb('0x171')](_0x5bde31['key'],_0x5bde31[_0x4afb('0x166')],_0x1dec7c[_0x4afb('0x69')]['nodeAfter']):_0x5b57c4[_0x4afb('0xe7')](_0x5bde31[_0x4afb('0xcf')],_0x1dec7c[_0x4afb('0x69')][_0x4afb('0x65')]);else for(const _0x2c83b5 of _0x47ef1e)_0x5bde31[_0x4afb('0x166')]?_0x5b57c4['setAttribute'](_0x5bde31['key'],_0x5bde31[_0x4afb('0x166')],_0x2c83b5):_0x5b57c4[_0x4afb('0xe7')](_0x5bde31['key'],_0x2c83b5);}});}),this[_0x4afb('0x20')]['set'](_0x4afb('0xbb'),_0x1d646f);}}function Bt(_0x587139,_0x225ae6,_0x1d4580){for(const _0x42b896 of _0x225ae6[_0x4afb('0x4c')][_0x4afb('0x151')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x42b896[_0x4afb('0x27')]==_0x42b896)return!0x1;if(!_0x1d4580['containsItem'](_0x42b896))return!0x1;if(_0x587139[_0x4afb('0x141')](_0x42b896)||_0x587139[_0x4afb('0x16c')](_0x42b896))return!0x0;}return!0x1;}function Tt(_0x3a10f8){return _0x3a10f8['end'][_0x4afb('0x4c')]==_0x3a10f8[_0x4afb('0x69')][_0x4afb('0x65')]&&_0x3a10f8['end']['isAtStart'];}function xt(_0x4e9593,_0x44b0e0,_0x3b6a1f,_0x52286d){const _0x329003=_0x40c6d9=>!_0x40c6d9[_0x4afb('0x110')]['is'](_0x4afb('0xbd'))&&!_0x52286d[_0x4afb('0x141')](_0x40c6d9['item']),_0x2ca111=_0x4e9593[_0x4afb('0x69')][_0x4afb('0x1c')](_0x329003),_0x23ac75=_0x4e9593['end'][_0x4afb('0x1c')](_0x329003,{'direction':'backward'});return(!_0x4e9593[_0x4afb('0x69')]['isEqual'](_0x2ca111)||!_0x4e9593[_0x4afb('0x155')][_0x4afb('0x11d')](_0x23ac75))&&(_0x2ca111[_0x4afb('0x3d')](_0x23ac75)?_0x3b6a1f[_0x4afb('0xb')](_0x44b0e0,{'range':_0x3b6a1f[_0x4afb('0x16d')](_0x2ca111,_0x23ac75)}):_0x3b6a1f[_0x4afb('0x144')](_0x44b0e0),!0x0);}function Et(_0x2f7f0b){return _0x2446e5(_0x2f7f0b);}function Rt(_0x2ae6b4){const _0x53ae48=_0x2ae6b4[_0x4afb('0x69')]['nodeAfter'];return _0x53ae48&&_0x53ae48['is'](_0x4afb('0x11f'));}function Ut(_0x903980,_0x9b8cda){const _0x3d83df=_0x9b8cda[_0x4afb('0x121')]['isObject'](_0x903980)||_0x9b8cda['schema'][_0x4afb('0x16a')](_0x903980);return _0x9b8cda['createRange'](_0x9b8cda[_0x4afb('0x61')](_0x903980,_0x4afb('0x56')),_0x3d83df?_0x9b8cda['createPositionAfter'](_0x903980):_0x9b8cda['createPositionAt'](_0x903980,_0x4afb('0x155')));}function Ot(_0x4e91cf,_0x16b567,_0x4f9c30,_0x5a000d,_0x1d49d9){if(!Vt(_0x4e91cf,_0x16b567))return!0x1;if(_0x4f9c30['end'][_0x4afb('0x11d')](_0x5a000d[_0x4afb('0x69')]))return!0x0;if(_0x4e91cf['type']!=_0x16b567[_0x4afb('0x149')])return!0x1;if(!_0x4f9c30[_0x4afb('0x155')][_0x4afb('0x139')](_0x5a000d[_0x4afb('0x69')]))return!0x1;const _0x1dc228=_0x1d49d9['createRange'](_0x4f9c30[_0x4afb('0x155')],_0x5a000d[_0x4afb('0x69')])['getWalker']();for(const _0x3c78f0 of _0x1dc228)if([_0x4afb('0x6e'),_0x4afb('0x133')][_0x4afb('0xaa')](_0x3c78f0[_0x4afb('0x149')])&&_0x1d49d9[_0x4afb('0x121')][_0x4afb('0x16c')](_0x3c78f0[_0x4afb('0x110')]))return!0x1;return!0x0;}function Vt(_0x7a07af,_0x31e320){return!(!_0x7a07af[_0x4afb('0xfb')]||!_0x31e320[_0x4afb('0xfb')])&&_0x2d3350(_0x7a07af[_0x4afb('0x99')],_0x31e320[_0x4afb('0x99')]);}function Gt(_0x1ca82b,_0xd909d5){const _0xc0f593=Ft(_0x1ca82b[_0x4afb('0x99')]),_0x5ec5c2=Ft(_0xd909d5);if(!_0x1ca82b['_isDataLoaded'])return!0x1;for(const _0x6f4af0 of Object[_0x4afb('0x2d')](_0x5ec5c2))if(!_0x2d3350(_0xc0f593[_0x6f4af0],_0x5ec5c2[_0x6f4af0]))return!0x1;return!0x0;}function Ft(_0x3e91d6){const _0x1f270c=Object[_0x4afb('0x48')]({},_0x3e91d6);return delete _0x1f270c[_0x4afb('0x24')],delete _0x1f270c[_0x4afb('0x12a')],_0x1f270c;}function Pt(_0x348846){return _0x4afb('0x60')==_0x348846[_0x4afb('0x149')]?_0x348846['subType'][_0x4afb('0x97')]('|')[0x0]:null;}
|
|
23
|
+
const _0x557c=['_getAuthorFromId','attribute:discard','data','isBefore','isMultiRange','_reduceExistingSuggestions','discard','addMarker:suggestion','_enableDefaultAttributesIntegration','containsRangeInObject','removeAttribute','isBlock','isIntersectingWithRange','_registerInlineAttribute','deletion:chain','start','formatInline','substring','$text','setSelection','Users','addSuggestionData','isRemovable','authoredAt','acceptAllSuggestions','options','_isBlockAttribute','addAttribute','getShiftedBy','_enabledCommands','startsWith','version','from','isAtEnd','skipNestingCheck','formatBlock:join','commandName','removeClass','filter','moveTargetPosition','upcast','deletion:discard','getSuggestionCallback','discardSelectedSuggestions','documentSelection','_getExternalAuthor','add','containsItem','removeMarkers','updateSuggestion','trackChangesCommand','markMultiRangeBlockFormat','config','sort','tablePasteChainId','join','unbindElementFromMarkerName','elementStart','isObject','rejected','enqueueChange','formatBlock','markerReady','getSuggestion','newRange','getFirstRange','data-suggestion','isEqual','insertContent','name','oldRange','schema','_suggestionState','_reduceSuggestionAttributeRange','isLimit','containsPosition','createRange','includes','lowest','marker-count','TrackChangesEditing','track-changes-adapter-already-set','activeMarkers','warn','then','getIntersection','consumable','_customCallbacks','setAttribute','clone','markAttributeChange','meta','always','resolve','pop','_refreshSuggestionsChain','getLastMatchingPosition','removed','creator','update:suggestion','author','_saved','consume','addUser','notReady','newValue','enableCommand','createSelection','subType','external:','addMarker:suggestion:attribute','isArray','isLocal','define','deletion:join','addComment','formatInline:join','removeMarker:suggestion:attribute','elementToElement','unshift','toJSON','getWalker','removeMarker','remove','deletion:','isDocumentOperation','element','_cutOutSuggestionMarker','_isForcedDefaultExecutionBlock','isCollapsed','addClass','previous','delete','length','default','rethrowUnexpectedError','comments','multi','_joinSuggestions','enableReadOnlyMode','getAncestors','hasComments','values','$graveyard','originalSuggestionId','authorName','_createSuggestion','markers','find','formatInline:accept','_recordAttributeSuggestionsFromVersion','createdAt','listenTo','get','attributeNewValue','getRanges','_adapter','@external','addCommentThread','getMarkers','_model','oldName','has','head','differ','commands','getChanges','formatInline:discard','addMarker','PENDING_ACTION_SUGGESTION','normal','forceDefaultExecution','getNearestSelectionRange','getFirstMarker','getDifference','splitPosition','getAttribute','LEAVE','containsRange','next','deleteContent','markerName','_inlineAttributeKeys','key','markerNameToElements','fromRange','plugins','_handleNewSuggestionMarker','insertion:discard','isInsideObject','isAfter','applyOperation','suggestion','clear','_editor','dataDowncast','isExternal','ck-suggestion-marker','position','$elementName','dataToMarker','before','deletion','updateMarker','_checkSuggestionCorrectness','fromCharCode','_registerDefaultCallbacks','_rangeIsInLocalUserInsertion','hasSuggestion','discardSuggestion','return','range','_trackFormatChanges','getOperations','chain','attributeOldValue','getMultiRangeId','parent','isAtStart','never','size','_processAttributeSuggestions','mapper','toUpperCase','model','formatInline:','rootName','addSuggestion','suggestionChanged','attribute:join','every','oldValue','addMarker:suggestion:formatBlock','root','isOwn','toViewElement','getContainedElement','_setSuggestionRange','getUser','map','item','editor','fire','showSuggestionHighlights','addHighlight','track-changes-command-not-found','track-changes-user-not-found','formatBlock:chain','markInsertion','acceptSelectedSuggestions','insertion','writer','accept','CommentsRepository','howMany','createPositionAfter','_processAttributeChanges','attribute','_blockAttributeKeys','editing','ENTER','suggestionLoaded','refresh','after','containerElement','deletion:accept','_updateSuggestionData','_addThreadToSuggestion','_isDataLoaded','widget','createRangeOn','collaboration.channelId','rename','getSuggestions','isInContent','nodeBefore','acceptSuggestion','isTouching','_findSuggestions','fetchCommentThread','track-changes-enable-command-twice','trackChanges.trackFormatChanges','selection','batch','_registerBlockAttribute','suggestion:attribute:','createElement','createPositionAt','for','trackChanges.mergeNestedSuggestions','_initAriaMarkerChangeAnnouncements','buildSuggestion','init','_suggestions','_mergeNestedSuggestions','getCustomProperty','formatGroupId','assign','attributes','value','_recordAttributeChanges','isNextTo','backward','_getMarkerAnnouncementText','ck-suggestion-marker-','track-changes-suggestion-data-mismatch','splice','ck-suggestion-marker-formatBlock','PendingActions','execute','keys','concat','getAllAdjacentSuggestions','groupId','ready','nodeAfter','forEach','type','conversion','_removeSuggestion','announce','_setSuggestionData','dataReady','_suggestionFactory','formatBlock:','set','editingDowncast','_SUGGESTION_ANNOUNCEMENT','ck-suggestion-marker--active','multipleBlocks','end','_breakSuggestionMarker','removeMarker:suggestion:formatBlock','locale','getChangedMarkers','_refreshAttributeSuggestionsChain','document','discardAllSuggestions','_splitMarkerName','markBlockFormat','getCommentThread','attribute:accept','change:activeMarkers','registerPostFixer','change','ariaLiveAnnouncer','markMultiRangeDeletion','suggestion:','_defaultCallbacks','move','_commentsRepository','ck-suggestion-marker-formatInline','_addSuggestionMarker','trackChanges','markerToData','_descriptionFactory','high','markMultiRangeInsertion','registerCustomCallback','split','detach','commentThread','isIntersecting','low','formatBlock:accept','some','push','insert','history','addRange','_getSuggestionData','attributeKey','unbind','adapter','stop','markInlineFormat'];(function(_0x2181e1,_0x557c44){const _0x76e965=function(_0x2daac1){while(--_0x2daac1){_0x2181e1['push'](_0x2181e1['shift']());}};_0x76e965(++_0x557c44);}(_0x557c,0xf0));const _0x76e9=function(_0x2181e1,_0x557c44){_0x2181e1=_0x2181e1-0x0;let _0x76e965=_0x557c[_0x2181e1];return _0x76e965;};import{Plugin as _0x1b63b8,PendingActions as _0x15ae4a}from'ckeditor5/src/core.js';import{LiveRange as _0x3d60eb}from'ckeditor5/src/engine.js';import{CKEditorError as _0x1e95d6,uid as _0x5c5e0d,priorities as _0x105203,logWarning as _0x17fdeb}from'ckeditor5/src/utils.js';import{toWidget as _0x245964}from'ckeditor5/src/widget.js';import{Users as _0x4c8ef0,hashObject as _0x124d30,surroundingMarkersDetector as _0xe6d183}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x361b5b from'./commands/trackchangescommand.js';import _0x18fb45 from'./commands/acceptsuggestioncommand.js';import _0xe6afbc from'./commands/discardsuggestioncommand.js';import _0x3ee988 from'./commands/executeonallsuggestionscommand.js';import _0x5caaac from'./commands/executeonselectedsuggestionscommand.js';import _0x8624f0 from'./suggestion.js';import _0x34b023 from'./suggestiondescriptionfactory.js';import _0x544c88 from'./integrations/aiassistant.js';import _0xc8e48a from'./integrations/alignment.js';import _0x42886f from'./integrations/basicstyles.js';import _0x1acd5b from'./integrations/blockquote.js';import _0x5218a3 from'./integrations/ckbox.js';import _0x5a1950 from'./integrations/codeblock.js';import _0x41b3c9 from'./integrations/comments.js';import _0x586e8b from'./integrations/deletecommand.js';import _0xdc5f02 from'./integrations/documentlist.js';import _0x178cc1 from'./integrations/documentlistproperties.js';import _0x3f126e from'./integrations/entercommand.js';import _0xc58d9c from'./integrations/findandreplace.js';import _0x443054 from'./integrations/font.js';import _0x108a12 from'./integrations/formatpainter.js';import _0x3544e2 from'./integrations/heading.js';import _0xffb76e from'./integrations/highlight.js';import _0x3a25ea from'./integrations/horizontalline.js';import _0x425fff from'./integrations/htmlembed.js';import _0x92580b from'./integrations/image.js';import _0xdb8791 from'./integrations/imagereplace.js';import _0x597be4 from'./integrations/imagestyle.js';import _0x8ec735 from'./integrations/importword.js';import _0x55682c from'./integrations/indent.js';import _0x3e7628 from'./integrations/inputcommand.js';import _0x668a4f from'./integrations/link.js';import _0x318b90 from'./integrations/list.js';import _0x1ddd4e from'./integrations/listproperties.js';import _0xba592a from'./integrations/mediaembed.js';import _0x554e62 from'./integrations/mention.js';import _0x4696e6 from'./integrations/pagebreak.js';import _0x183ac2 from'./integrations/paragraph.js';import _0x21e03c from'./integrations/removeformat.js';import _0x43f7c0 from'./integrations/restrictededitingmode.js';import _0xb1ebb5 from'./integrations/shiftentercommand.js';import _0x333690 from'./integrations/standardeditingmode.js';import _0x476c61 from'./integrations/style.js';import _0x40cb69 from'./integrations/table.js';import _0x5552f3 from'./integrations/tablemergesplit.js';import _0x1c0abf from'./integrations/tableheadings.js';import _0xa9217a from'./integrations/tableclipboard.js';import _0x4cab2f from'./integrations/tablecolumnresize.js';import _0x314520 from'./integrations/template.js';import _0x54fdbd from'./integrations/tableofcontents.js';import _0x50d99d from'./integrations/title.js';import _0x3656d8 from'./integrations/undo.js';import _0x1d2d3f from'./integrations/tablecaption.js';import _0x2715f8 from'./integrations/tableproperties.js';import{getTranslation as _0xa7ebad}from'./utils/common-translations.js';import{isEqual as _0x57a80c,omit as _0x503eec}from'lodash-es';export const renameAttributeKey=_0x76e9('0x14f');export default class p extends _0x1b63b8{static get['requires'](){return['CommentsRepository',_0x4c8ef0,_0x15ae4a,_0x544c88,_0xc8e48a,_0x42886f,_0x1acd5b,_0x5218a3,_0x5a1950,_0x41b3c9,_0x586e8b,_0xdc5f02,_0x178cc1,_0x3f126e,_0xc58d9c,_0x443054,_0x108a12,_0x3544e2,_0xffb76e,_0x3a25ea,_0x425fff,_0x92580b,_0x597be4,_0xdb8791,_0x8ec735,_0x55682c,_0x3e7628,_0x668a4f,_0x318b90,_0x1ddd4e,_0xba592a,_0x554e62,_0x4696e6,_0x183ac2,_0x21e03c,_0x43f7c0,_0xb1ebb5,_0x333690,_0x476c61,_0x40cb69,_0x5552f3,_0x1c0abf,_0x1d2d3f,_0xa9217a,_0x4cab2f,_0x54fdbd,_0x2715f8,_0x314520,_0x50d99d,_0x3656d8];}static get['pluginName'](){return _0x76e9('0xd8');}constructor(_0x5ea118){function _0x10593d(_0x21bd9a){return _0x21bd9a[_0x76e9('0x177')](_0x57082d=>String[_0x76e9('0x155')](_0x57082d))[_0x76e9('0xbf')]('');}super(_0x5ea118),this[_0x76e9('0x11e')]=null,this[_0x76e9('0x55')](_0x76e9('0xda'),[]),this['on'](_0x76e9('0x66'),(_0x272e00,_0x1f04a1,_0x41af03,_0x5448eb)=>{this[_0x76e9('0x128')][_0x76e9('0x68')](()=>{for(const _0x32e830 of[..._0x5448eb,..._0x41af03])this[_0x76e9('0x128')]['markers'][_0x76e9('0x12a')](_0x32e830)&&_0x5ea118[_0x76e9('0x13')]['reconvertMarker'](_0x32e830);});}),this[_0x76e9('0x73')]=new _0x34b023(this[_0x76e9('0x1')]['model']['schema'],this[_0x76e9('0x1')][_0x76e9('0x5d')]),this['_adapter']=null,this[_0x76e9('0x53')]=new $t(this['editor']),this['_suggestions']=new Map(),this[_0x76e9('0x6e')]=_0x5ea118[_0x76e9('0x142')][_0x76e9('0x121')](_0x76e9('0xd')),this[_0x76e9('0xa5')]=new Set(),this[_0x76e9('0x128')]=this[_0x76e9('0x1')][_0x76e9('0x168')],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([_0x76e9('0x14f')]),this[_0x76e9('0x13e')]=new Set(),_0x5ea118[_0x76e9('0xbc')][_0x76e9('0xf9')](_0x76e9('0x29'),'default'),this['_trackFormatChanges']=_0x5ea118[_0x76e9('0xbc')][_0x76e9('0x121')](_0x76e9('0x29')),_0x5ea118[_0x76e9('0xbc')][_0x76e9('0xf9')](_0x76e9('0x31'),!0x0),this['_mergeNestedSuggestions']=_0x5ea118['config'][_0x76e9('0x121')]('trackChanges.mergeNestedSuggestions'),this[_0x76e9('0xba')]=new _0x361b5b(_0x5ea118,this[_0x76e9('0xa5')]),this[_0x76e9('0x32')](),this[_0x10593d([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x10593d([0x34,0x30,0x34,0x36,0x32,0x34,0x35,0x34]);}[_0x76e9('0x34')](){const _0x4c241f=this['editor'],_0x43d823=(_0x157d3c,_0x24e6c0)=>{if(_0x76e9('0x11')!=_0x157d3c)return _0x76e9('0x40')+_0x157d3c;const _0x1f581d=_0x24e6c0[_0x76e9('0x77')]('|')[0x0];return this[_0x76e9('0xa2')](_0x1f581d)?_0x76e9('0x43'):_0x76e9('0x6f');};_0x4c241f[_0x76e9('0x4e')]['for'](_0x76e9('0x56'))['markerToHighlight']({'model':'suggestion','view':_0x59f157=>{const {id:_0x4e3ec1,type:_0x3f1680,subType:_0x5c6c52}=this[_0x76e9('0x62')](_0x59f157[_0x76e9('0x13d')]),_0x554692=[_0x76e9('0x14d'),_0x43d823(_0x3f1680,_0x5c6c52)];let _0x454d33=0xbb8;return this[_0x76e9('0xda')][_0x76e9('0xd5')](_0x59f157[_0x76e9('0x13d')])&&(_0x554692[_0x76e9('0x7e')]('ck-suggestion-marker--active'),_0x454d33=0xbc2),_0x76e9('0x152')==_0x3f1680&&(_0x454d33+=0x5),{'classes':_0x554692,'attributes':{'data-suggestion':_0x4e3ec1},'priority':_0x454d33};}}),_0x4c241f['conversion']['for'](_0x76e9('0x14b'))[_0x76e9('0xb6')](_0xce2f38=>{_0xce2f38['on'](_0x76e9('0x8f'),(_0x29a49a,_0x441e35,_0xbf1a7d)=>{if(!_0xbf1a7d['options']['showSuggestionHighlights'])return;const _0x2c08bb=_0x441e35[_0x76e9('0x0')];if(!_0x2c08bb)return;const _0xa5b115=_0xbf1a7d['mapper']['toViewElement'](_0x2c08bb);_0x4c241f[_0x76e9('0x168')][_0x76e9('0xcf')][_0x76e9('0xc2')](_0x2c08bb)&&_0xa5b115&&!_0xa5b115['getCustomProperty'](_0x76e9('0x1d'))&&_0xa5b115['is'](_0x76e9('0x18'))&&_0x245964(_0xa5b115,_0xbf1a7d[_0x76e9('0xb')]);},{'priority':_0x76e9('0x74')});}),_0x4c241f[_0x76e9('0x4e')]['for']('dataDowncast')['markerToHighlight']({'model':_0x76e9('0x148'),'view':(_0x193560,_0x4af8a5)=>{if(!_0x4af8a5['options'][_0x76e9('0x3')])return null;const {type:_0x1da26c,subType:_0x4095b1}=this[_0x76e9('0x62')](_0x193560['markerName']);return{'classes':[_0x76e9('0x14d'),_0x43d823(_0x1da26c,_0x4095b1)],'priority':0xbb8};}});const _0x3409dc=({showActiveMarkers:_0x1ea2ba=!0x0,isAttributeSuggestion:_0x3383d1=!0x1}={})=>(_0x32f645,_0x46ca1c,_0x477dd0)=>{if(!_0x46ca1c['item'])return;const {id:_0x26f248}=this[_0x76e9('0x62')](_0x46ca1c['markerName']);if(_0x3383d1){const _0x249c2a=Pt(this[_0x76e9('0x35')][_0x76e9('0x121')](_0x26f248));if(!this[_0x76e9('0xa2')](_0x249c2a))return;}if(_0x46ca1c[_0x76e9('0x0')]['is'](_0x76e9('0x2a')))return void _0x477dd0[_0x76e9('0xde')][_0x76e9('0xee')](_0x46ca1c[_0x76e9('0x0')],_0x32f645[_0x76e9('0xcd')]);const _0x1da82e=_0x477dd0['mapper'][_0x76e9('0x173')](_0x46ca1c[_0x76e9('0x0')]);if(_0x46ca1c['item']['is'](_0x76e9('0x106'))&&_0x4c241f[_0x76e9('0x168')][_0x76e9('0xcf')][_0x76e9('0x93')](_0x46ca1c[_0x76e9('0x0')])&&!_0x1da82e[_0x76e9('0x37')](_0x76e9('0x4'))){_0x477dd0['writer'][_0x76e9('0x10a')](['ck-suggestion-marker',_0x76e9('0x43')],_0x1da82e),_0x477dd0[_0x76e9('0xb')]['setAttribute'](_0x76e9('0xca'),_0x26f248,_0x1da82e),_0x477dd0['mapper']['bindElementToMarker'](_0x1da82e,_0x46ca1c[_0x76e9('0x13d')]),_0x1ea2ba&&(this[_0x76e9('0xda')][_0x76e9('0xd5')](_0x46ca1c[_0x76e9('0x13d')])?_0x477dd0[_0x76e9('0xb')][_0x76e9('0x10a')](_0x76e9('0x58'),_0x1da82e):_0x477dd0[_0x76e9('0xb')][_0x76e9('0xad')](_0x76e9('0x58'),_0x1da82e));for(const _0x3754a5 of _0x4c241f['model']['createRangeIn'](_0x46ca1c['item'])['getItems']())_0x477dd0[_0x76e9('0xde')][_0x76e9('0xee')](_0x3754a5,_0x32f645[_0x76e9('0xcd')]);_0x477dd0[_0x76e9('0xde')][_0x76e9('0xee')](_0x46ca1c[_0x76e9('0x0')],_0x32f645[_0x76e9('0xcd')]);}};_0x4c241f[_0x76e9('0x4e')]['for'](_0x76e9('0x14b'))[_0x76e9('0xb6')](_0x106b17=>{_0x106b17['on']('addMarker:suggestion:formatBlock',(_0xc277a8,_0x2f62f5,_0xdf3376)=>{_0xdf3376[_0x76e9('0xa1')][_0x76e9('0x3')]&&_0x3409dc({'showActiveMarkers':!0x1})(_0xc277a8,_0x2f62f5,_0xdf3376);},{'priority':'highest'});}),_0x4c241f[_0x76e9('0x4e')][_0x76e9('0x30')](_0x76e9('0x14b'))[_0x76e9('0xb6')](_0x5d264a=>{_0x5d264a['on'](_0x76e9('0xf6'),(_0x1da48a,_0x44b270,_0x32e534)=>{_0x32e534['options'][_0x76e9('0x3')]&&_0x3409dc({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1da48a,_0x44b270,_0x32e534);},{'priority':'highest'});}),_0x4c241f['conversion']['for'](_0x76e9('0x14b'))[_0x76e9('0x72')]({'model':_0x76e9('0x148'),'view':(_0x3bfc8b,_0x3b27b6)=>_0x3b27b6['options']['showSuggestionHighlights']?null:{'group':_0x76e9('0x148'),'name':_0x3bfc8b['substr'](0xb)}}),_0x4c241f[_0x76e9('0x4e')][_0x76e9('0x30')](_0x76e9('0xb0'))[_0x76e9('0xfe')]({'view':{'name':_0x76e9('0x148'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x530395,{writer:_0x1f9183})=>{let _0x5d04a5=_0x76e9('0x6b')+_0x530395[_0x76e9('0x138')]('suggestion-type')+':'+_0x530395[_0x76e9('0x138')]('id');return _0x530395[_0x76e9('0x138')](_0x76e9('0xd7'))&&(_0x5d04a5+=':'+_0x530395[_0x76e9('0x138')]('marker-count')),_0x1f9183[_0x76e9('0x2e')]('$marker',{'data-name':_0x5d04a5});}}),_0x4c241f[_0x76e9('0x4e')][_0x76e9('0x30')](_0x76e9('0xb0'))[_0x76e9('0x150')]({'view':'suggestion'}),_0x4c241f['conversion'][_0x76e9('0x30')](_0x76e9('0x56'))[_0x76e9('0xb6')](_0x255ec5=>{_0x255ec5['on'](_0x76e9('0x170'),_0x3409dc(),{'priority':'high'});}),_0x4c241f[_0x76e9('0x4e')][_0x76e9('0x30')](_0x76e9('0x56'))[_0x76e9('0xb6')](_0x1caaff=>{_0x1caaff['on'](_0x76e9('0xf6'),_0x3409dc({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4c241f['conversion'][_0x76e9('0x30')](_0x76e9('0x56'))[_0x76e9('0xb6')](_0x1f91a2=>{_0x1f91a2['on'](_0x76e9('0x5c'),(_0x2db56d,_0x1e2573,_0xead1c9)=>{const _0x5109c0=_0xead1c9[_0x76e9('0x166')][_0x76e9('0x140')](_0x1e2573[_0x76e9('0x13d')]);if(_0x5109c0)for(const _0x1e9455 of _0x5109c0)_0x1e9455[_0x76e9('0x37')]('addHighlight')||(_0xead1c9['writer']['removeClass']([_0x76e9('0x14d'),_0x76e9('0x43'),_0x76e9('0x58')],_0x1e9455),_0xead1c9[_0x76e9('0xb')][_0x76e9('0x92')](_0x76e9('0xca'),_0x1e9455),_0xead1c9['mapper'][_0x76e9('0xc0')](_0x1e9455,_0x1e2573[_0x76e9('0x13d')]));},{'priority':_0x76e9('0x74')});}),_0x4c241f['conversion'][_0x76e9('0x30')](_0x76e9('0x56'))[_0x76e9('0xb6')](_0x1c2df2=>{_0x1c2df2['on'](_0x76e9('0xfd'),(_0x327be7,_0x4a685c,_0x1580d5)=>{const _0x5c3791=_0x1580d5['mapper'][_0x76e9('0x140')](_0x4a685c[_0x76e9('0x13d')]);if(!_0x5c3791)return;const {id:_0x4ecc88}=this[_0x76e9('0x62')](_0x4a685c[_0x76e9('0x13d')]),_0x3b6856=Pt(this['_suggestions'][_0x76e9('0x121')](_0x4ecc88));if(this[_0x76e9('0xa2')](_0x3b6856))for(const _0x188964 of _0x5c3791)_0x188964['getCustomProperty'](_0x76e9('0x4'))||(_0x1580d5[_0x76e9('0xb')][_0x76e9('0xad')](['ck-suggestion-marker',_0x76e9('0x43'),_0x76e9('0x58')],_0x188964),_0x1580d5[_0x76e9('0xb')][_0x76e9('0x92')](_0x76e9('0xca'),_0x188964),_0x1580d5[_0x76e9('0x166')]['unbindElementFromMarkerName'](_0x188964,_0x4a685c['markerName']));},{'priority':_0x76e9('0x74')});}),_0x4c241f[_0x76e9('0x168')][_0x76e9('0x60')][_0x76e9('0x67')](_0x52be44=>{let _0x1c842b=!0x1;const _0x425e74=Array[_0x76e9('0xa8')](_0x4c241f[_0x76e9('0x168')][_0x76e9('0x60')][_0x76e9('0x12c')][_0x76e9('0x5e')]()),_0x4b9961=new Set();for(const {name:_0xce4afc,data:_0x5eabb6}of _0x425e74){const {group:_0x3a5cf2,type:_0x2b9e1f,subType:_0x4aeb89,id:_0x106c32}=this['_splitMarkerName'](_0xce4afc);if(_0x76e9('0x148')!==_0x3a5cf2)continue;const _0x581772=this[_0x76e9('0x35')]['get'](_0x106c32);if(null!=_0x5eabb6['newRange']){_0x76e9('0x98')==_0x2b9e1f&&(_0x1c842b=_0x1c842b||xt(_0x5eabb6[_0x76e9('0xc8')],_0xce4afc,_0x52be44,_0x4c241f['model'][_0x76e9('0xcf')]));const _0x4666b9=_0x76e9('0x11')==_0x2b9e1f&&this[_0x76e9('0xa2')](_0x4aeb89[_0x76e9('0x77')]('|')[0x0]);if(_0x5eabb6[_0x76e9('0xc8')][_0x76e9('0x109')]||_0x76e9('0x117')==_0x5eabb6[_0x76e9('0xc8')]['root'][_0x76e9('0x16a')]||_0x76e9('0xc5')==_0x2b9e1f&&!Rt(_0x5eabb6['newRange'])||_0x4666b9&&!Rt(_0x5eabb6[_0x76e9('0xc8')])||_0x76e9('0x152')==_0x2b9e1f&&!(!Tt(_0x443d67=_0x5eabb6['newRange'])&&!function(_0x4b1bbc){return _0x4b1bbc['start'][_0x76e9('0x161')]==_0x4b1bbc[_0x76e9('0x5a')][_0x76e9('0x23')]&&_0x4b1bbc[_0x76e9('0x97')][_0x76e9('0xa9')];}(_0x443d67)))_0x52be44[_0x76e9('0x102')](_0xce4afc),_0x1c842b=!0x0;else{if(!_0x581772||!_0x581772['isInContent'])continue;_0x4b9961[_0x76e9('0xb6')](_0x581772);}}}var _0x443d67;return _0x4b9961['size']>0x0&&(_0x1c842b=!!this['_joinWithAdjacentSuggestions'](_0x4b9961)||_0x1c842b),_0x1c842b;}),_0x4c241f[_0x76e9('0x168')][_0x76e9('0x60')][_0x76e9('0x67')](_0x5a9e75=>{let _0x112ccd=!0x1;for(const _0x4af704 of _0x4c241f[_0x76e9('0x168')]['document'][_0x76e9('0x12c')][_0x76e9('0x12e')]())if(_0x76e9('0x7f')==_0x4af704[_0x76e9('0x4d')])for(const _0x4ecd4e of this['_suggestions'][_0x76e9('0x116')]()){if(_0x4ecd4e['isMultiRange']||!_0x4ecd4e[_0x76e9('0x22')])continue;const _0x3720d0=_0x76e9('0xc5')==_0x4ecd4e[_0x76e9('0x4d')],_0x87a402=Pt(_0x4ecd4e),_0x3dfed8=_0x87a402&&this[_0x76e9('0xa2')](_0x87a402);if(!_0x3720d0&&!_0x3dfed8)continue;const _0x3a32d7=_0x4ecd4e[_0x76e9('0xc9')]();if(_0x3a32d7[_0x76e9('0x97')][_0x76e9('0x161')]!=_0x3a32d7[_0x76e9('0x5a')][_0x76e9('0x161')]&&!_0x3a32d7[_0x76e9('0x5a')]['isAtEnd']){const _0x2a4b2b=_0x4c241f[_0x76e9('0x168')]['createPositionAt'](_0x3a32d7[_0x76e9('0x97')][_0x76e9('0x4b')],_0x76e9('0x5a')),_0x3066db=_0x4c241f[_0x76e9('0x168')][_0x76e9('0xd4')](_0x3a32d7[_0x76e9('0x97')],_0x2a4b2b);_0x5a9e75['updateMarker'](_0x4ecd4e[_0x76e9('0x135')](),{'range':_0x3066db}),_0x112ccd=!0x0;}}return _0x112ccd;}),_0x4c241f[_0x76e9('0x168')][_0x76e9('0x60')][_0x76e9('0x67')](_0x282102=>this['_processAttributeChanges'](_0x282102)),_0x4c241f[_0x76e9('0x168')][_0x76e9('0x60')]['registerPostFixer'](_0x1cb9a2=>!_0x1cb9a2[_0x76e9('0x2b')][_0x76e9('0xf8')]&&this[_0x76e9('0x165')](_0x1cb9a2)),_0x4c241f[_0x76e9('0x168')][_0x76e9('0x11b')]['on'](_0x76e9('0xeb'),(_0x7450ee,_0x4e798b,_0x49a88a)=>{if(null==_0x49a88a){const {id:_0xf16c96}=this[_0x76e9('0x62')](_0x4e798b[_0x76e9('0xcd')]),_0x1a363f=this[_0x76e9('0x35')]['get'](_0xf16c96);_0x1a363f&&_0x1a363f['addMarkerName'](_0x4e798b[_0x76e9('0xcd')]);}}),_0x4c241f['model'][_0x76e9('0x60')]['on']('change:data',()=>{const _0x461e3c=Array[_0x76e9('0xa8')](_0x4c241f['model']['document'][_0x76e9('0x12c')][_0x76e9('0x5e')]())[_0x76e9('0xae')](_0x1f6b3e=>_0x76e9('0x148')===this['_splitMarkerName'](_0x1f6b3e[_0x76e9('0xcd')])['group']);if(0x0===_0x461e3c[_0x76e9('0x10d')])return;_0x461e3c[_0x76e9('0xbd')]((_0x1e97e3,_0x33a740)=>{const _0x4d7f04=_0x1e97e3[_0x76e9('0x8a')][_0x76e9('0xce')],_0x2ba197=_0x33a740[_0x76e9('0x8a')][_0x76e9('0xce')];return null===_0x4d7f04&&null===_0x2ba197?0x0:null===_0x4d7f04&&null!==_0x2ba197?-0x1:null!==_0x4d7f04&&null===_0x2ba197?0x1:_0x4d7f04['start'][_0x76e9('0x8b')](_0x2ba197[_0x76e9('0x97')])?-0x1:0x1;});const _0x4e99f9=new Set(),_0x464101=new Set();for(const {name:_0x5a766f,data:_0x1ece89}of _0x461e3c){const {id:_0x2de9e2}=this[_0x76e9('0x62')](_0x5a766f);if(null===_0x1ece89[_0x76e9('0xce')]){const _0x3cf5e=this[_0x76e9('0x143')](_0x5a766f);_0x464101[_0x76e9('0xb6')](_0x3cf5e);}else{const _0x97c750=this[_0x76e9('0x35')]['get'](_0x2de9e2);null!==_0x1ece89[_0x76e9('0xc8')]||_0x97c750[_0x76e9('0x22')]?(_0x4e99f9[_0x76e9('0xb6')](_0x97c750[_0x76e9('0x12b')]),_0x464101[_0x76e9('0xb6')](_0x97c750)):this[_0x76e9('0x4f')](_0x97c750);}}_0x464101[_0x76e9('0x164')]>0x0&&this[_0x76e9('0xe7')](_0x464101);for(const _0x25b126 of _0x4e99f9)this[_0x76e9('0x2')](_0x76e9('0x16c'),_0x25b126);}),_0x4c241f[_0x76e9('0x168')]['on'](_0x76e9('0x147'),(_0x11f3fc,_0x583025)=>{const _0x439379=_0x583025[0x0];if(!this[_0x76e9('0x35')]['size'])return;if(!_0x439379[_0x76e9('0x105')])return;if(_0x439379[_0x76e9('0x2b')]['isUndo']||!_0x439379['batch']['isLocal'])return;let _0x5e24ca,_0x127554;switch(_0x439379['type']){case _0x76e9('0x7f'):_0x5e24ca=_0x4c241f['model'][_0x76e9('0x2f')](_0x439379['position']),_0x127554=_0x5e24ca[_0x76e9('0xa4')](_0x439379[_0x76e9('0xe')]);break;case'split':_0x5e24ca=_0x4c241f[_0x76e9('0x168')][_0x76e9('0x2f')](_0x439379[_0x76e9('0x137')]),_0x127554=_0x4c241f[_0x76e9('0x168')]['createPositionAt'](_0x439379[_0x76e9('0xaf')]);break;case _0x76e9('0x6d'):_0x5e24ca=_0x4c241f[_0x76e9('0x168')][_0x76e9('0x2f')](_0x439379['targetPosition']),_0x127554=_0x5e24ca['getShiftedBy'](_0x439379[_0x76e9('0xe')]);break;default:return;}const _0x3081e0=_0x4c241f[_0x76e9('0x168')][_0x76e9('0xd4')](_0x5e24ca,_0x127554);_0x4c241f[_0x76e9('0x168')][_0x76e9('0x68')](()=>{for(const {suggestion:_0x1bcf92,meta:_0x1b6757}of this['_findSuggestions'](_0x3081e0)){if(_0x1bcf92[_0x76e9('0x8c')])continue;if(_0x76e9('0x98')==_0x1bcf92[_0x76e9('0x4d')])continue;const _0x3c3d9e=Pt(_0x1bcf92);if(_0x3c3d9e&&this[_0x76e9('0xa2')](_0x3c3d9e)&&'split'!=_0x439379[_0x76e9('0x4d')])continue;const _0x483a25=_0x1bcf92[_0x76e9('0x8a')]&&_0x1bcf92[_0x76e9('0x8a')][_0x76e9('0x59')];(_0x76e9('0xc5')!=_0x1bcf92[_0x76e9('0x4d')]||'split'==_0x439379['type']&&!_0x483a25)&&(_0x1b6757[_0x76e9('0x91')]||_0x76e9('0xa')==_0x1bcf92['type']&&_0x1b6757['isOwn']||_0x1bcf92[_0x76e9('0xc9')]()[_0x76e9('0x13a')](_0x3081e0)&&this[_0x76e9('0x5b')](_0x1bcf92,_0x5e24ca,_0x127554));}});},{'priority':_0x76e9('0xd6')}),_0x4c241f[_0x76e9('0x168')]['on'](_0x76e9('0x13c'),(_0x1a06ea,_0x154777)=>{const _0x4af74c=_0x154777[0x0],_0x4dde66=_0x154777[0x1];if(_0x4dde66&&_0x4dde66[_0x76e9('0x133')])return;if(this[_0x76e9('0x108')])return;if(!this['trackChangesCommand'][_0x76e9('0x3b')])return;if(_0x4af74c['isCollapsed'])return;const _0x4c095d=_0x4c241f[_0x76e9('0x168')][_0x76e9('0xcf')],{start:_0x5c64ae,end:_0x189132}=_0x4af74c['getFirstRange'](),_0x570169=_0x5c64ae[_0x76e9('0x4b')]&&_0x4c095d['isLimit'](_0x5c64ae['nodeAfter'])?null:_0x4c095d[_0x76e9('0x134')](_0x5c64ae,'forward'),_0x1206a8=_0x189132[_0x76e9('0x23')]&&_0x4c095d[_0x76e9('0xd2')](_0x189132['nodeBefore'])?null:_0x4c095d[_0x76e9('0x134')](_0x189132,_0x76e9('0x3e')),_0x5bcf25=_0x4c241f[_0x76e9('0x168')]['createRange'](_0x570169?_0x570169[_0x76e9('0x97')]:_0x5c64ae,_0x1206a8?_0x1206a8['end']:_0x189132);_0x4c241f[_0x76e9('0x168')][_0x76e9('0x68')](_0x3ebcbe=>{this['markDeletion'](_0x5bcf25);const _0xc9ee79=_0x4c241f['model'][_0x76e9('0xcf')]['getNearestSelectionRange'](_0x5bcf25[_0x76e9('0x97')]);_0x4af74c['is'](_0x76e9('0xb4'))?_0x3ebcbe['setSelection'](_0xc9ee79):_0x4af74c['setTo'](_0xc9ee79);}),_0x1a06ea[_0x76e9('0x86')]();},{'priority':_0x105203[_0x76e9('0x132')]+0xa}),_0x4c241f['model']['on'](_0x76e9('0xcc'),(_0x4ad2b2,_0x1e6f66)=>{const _0x178234=_0x1e6f66[_0x1e6f66[_0x76e9('0x10d')]-0x1];_0x178234&&_0x178234['forceDefaultExecution']||this[_0x76e9('0x108')]||this[_0x76e9('0xba')][_0x76e9('0x3b')]&&(_0x4c241f[_0x76e9('0x168')][_0x76e9('0x68')](()=>{let _0x508d8c=_0x4c241f[_0x76e9('0x168')]['insertContent'](_0x1e6f66[0x0],_0x1e6f66[0x1],_0x1e6f66[0x2],{'forceDefaultExecution':!0x0});if(!_0x508d8c)return;_0x4ad2b2[_0x76e9('0x15a')]=_0x508d8c[_0x76e9('0xe1')]();const _0x5e7d47=_0x508d8c[_0x76e9('0x5a')]['nodeBefore'],_0x501e3e=_0x4c241f[_0x76e9('0x168')][_0x76e9('0xcf')];_0x5e7d47&&_0x501e3e[_0x76e9('0x93')](_0x5e7d47)&&!_0x501e3e[_0x76e9('0xc2')](_0x5e7d47)&&(_0x508d8c=_0x4c241f['model'][_0x76e9('0xd4')](_0x508d8c[_0x76e9('0x97')],_0x4c241f[_0x76e9('0x168')]['createPositionAt'](_0x5e7d47,'end'))),this[_0x76e9('0x8')](_0x508d8c);}),_0x4ad2b2[_0x76e9('0x86')]());},{'priority':_0x76e9('0x74')}),this[_0x76e9('0x1')]['commands'][_0x76e9('0xb6')](_0x76e9('0x71'),this['trackChangesCommand']),this[_0x76e9('0xf2')](_0x76e9('0x71'));const _0x189399=new _0x18fb45(_0x4c241f,this['_suggestions']);_0x4c241f['commands']['add'](_0x76e9('0x24'),_0x189399),this[_0x76e9('0xf2')](_0x76e9('0x24'));const _0x5caf47=new _0xe6afbc(_0x4c241f,this['_suggestions']);_0x4c241f[_0x76e9('0x12d')][_0x76e9('0xb6')](_0x76e9('0x159'),_0x5caf47),this[_0x76e9('0xf2')]('discardSuggestion'),_0x4c241f[_0x76e9('0x12d')][_0x76e9('0xb6')](_0x76e9('0xa0'),new _0x3ee988(_0x4c241f,_0x189399,this['_suggestions'])),this['enableCommand'](_0x76e9('0xa0')),_0x4c241f[_0x76e9('0x12d')][_0x76e9('0xb6')](_0x76e9('0x61'),new _0x3ee988(_0x4c241f,_0x5caf47,this[_0x76e9('0x35')])),this[_0x76e9('0xf2')]('discardAllSuggestions'),_0x4c241f[_0x76e9('0x12d')][_0x76e9('0xb6')](_0x76e9('0x9'),new _0x5caaac(_0x4c241f,_0x189399,this[_0x76e9('0x35')])),this[_0x76e9('0xf2')](_0x76e9('0x9')),_0x4c241f[_0x76e9('0x12d')][_0x76e9('0xb6')](_0x76e9('0xb3'),new _0x5caaac(_0x4c241f,_0x5caf47,this[_0x76e9('0x35')])),this['enableCommand'](_0x76e9('0xb3'));const _0x42fba7=_0x4c241f[_0x76e9('0x142')][_0x76e9('0x121')](_0x76e9('0xd'));this[_0x76e9('0x120')](_0x42fba7,_0x76e9('0xfb'),(_0x216b4a,{threadId:_0x7d73c7})=>{const _0x395bf3=this[_0x76e9('0x35')][_0x76e9('0x121')](_0x7d73c7);_0x395bf3&&_0x395bf3['commentThread']&&0x1===_0x395bf3['commentThread'][_0x76e9('0x10d')]&&this[_0x76e9('0x1a')](_0x7d73c7,{'hasComments':!0x0});},{'priority':_0x76e9('0x7b')}),this[_0x76e9('0x120')](_0x42fba7,'removeComment',(_0x2787c6,{threadId:_0x4930d5})=>{const _0x1b339c=this[_0x76e9('0x35')]['get'](_0x4930d5);_0x1b339c&&_0x1b339c['commentThread']&&!_0x1b339c[_0x76e9('0x79')][_0x76e9('0x10d')]&&this['_updateSuggestionData'](_0x4930d5,{'hasComments':!0x1});},{'priority':'low'});}set[_0x76e9('0x85')](_0x315ad3){if(this[_0x76e9('0x124')])throw new _0x1e95d6(_0x76e9('0xd9'),this);this['_adapter']=_0x315ad3;}get[_0x76e9('0x85')](){return this[_0x76e9('0x124')];}[_0x76e9('0x21')]({skipNotAttached:_0x59f76b=!0x1,toJSON:_0x93135d=!0x1}={}){const _0x1fdd67=[];for(const _0x796eda of this[_0x76e9('0x35')]['values']())_0x59f76b&&!_0x796eda['isInContent']||_0x1fdd67[_0x76e9('0x7e')](_0x796eda);return _0x93135d?_0x1fdd67[_0x76e9('0x177')](_0x3e8640=>_0x3e8640[_0x76e9('0x100')]()):_0x1fdd67;}[_0x76e9('0xc7')](_0x54e5e1){const _0x47f8a4=this['_suggestions'][_0x76e9('0x121')](_0x54e5e1);if(!_0x47f8a4)throw new _0x1e95d6('track-changes-suggestion-not-found',this);return _0x47f8a4;}[_0x76e9('0x158')](_0x157102){return this[_0x76e9('0x35')][_0x76e9('0x12a')](_0x157102);}[_0x76e9('0x9d')](_0x33f9dc){const {authorId:_0x3b8eba,id:_0x5c541f,attributes:_0x1033cd}=_0x33f9dc,[_0x3b4f96,_0x5f2b9e]=_0x33f9dc[_0x76e9('0x4d')][_0x76e9('0x77')](':'),_0xfee949=this[_0x76e9('0x35')]['get'](_0x5c541f)||this[_0x76e9('0x11a')](_0x3b4f96,_0x5f2b9e,_0x5c541f,_0x3b8eba,_0x1033cd);if(this[_0x76e9('0x1b')](_0xfee949),this['_checkSuggestionCorrectness'](_0xfee949,_0x3b4f96,_0x5f2b9e||null,_0x3b8eba),_0xfee949[_0x76e9('0x11f')]=_0x33f9dc[_0x76e9('0x11f')],_0xfee949[_0x76e9('0x1c')]=!0x0,_0x1033cd&&_0x1033cd[_0x76e9('0x125')]){const _0x3a9b06=_0x1033cd[_0x76e9('0x125')],_0x4768c1=this[_0x76e9('0xb5')](_0x3a9b06[_0x76e9('0x119')]);_0xfee949[_0x76e9('0x9f')]=_0x3a9b06[_0x76e9('0x11f')],_0xfee949[_0x76e9('0xec')]=_0x4768c1,_0xfee949[_0x76e9('0x14c')]=!0x0;}else _0xfee949[_0x76e9('0x9f')]=_0x33f9dc['createdAt'];switch(_0x33f9dc[_0x76e9('0x8a')]&&(_0xfee949[_0x76e9('0x8a')]=_0x33f9dc['data']),_0x33f9dc['attributes']&&(_0xfee949[_0x76e9('0x3a')]=_0x33f9dc[_0x76e9('0x3a')]),this[_0x76e9('0x124')]&&this[_0x76e9('0x124')][_0x76e9('0x16b')]||(_0xfee949[_0x76e9('0xed')]=!0x0),this[_0x76e9('0xd0')][_0x76e9('0x121')](_0xfee949)){case _0x76e9('0xf0'):this[_0x76e9('0xd0')]['set'](_0xfee949,_0x76e9('0x52'));break;case'markerReady':_0xfee949[_0x76e9('0x22')]?(this[_0x76e9('0xe7')](new Set([_0xfee949])),this['_joinWithAdjacentSuggestions'](new Set([_0xfee949])),this[_0x76e9('0xd0')]['set'](_0xfee949,'ready'),this[_0x76e9('0x2')](_0x76e9('0x15'),_0xfee949)):this[_0x76e9('0xd0')][_0x76e9('0x55')](_0xfee949,_0x76e9('0xe9'));}return _0xfee949;}[_0x76e9('0x24')](_0x333cac){this[_0x76e9('0x133')](()=>{this['editor'][_0x76e9('0x168')][_0x76e9('0x68')](()=>{for(const _0x5c897f of _0x333cac[_0x76e9('0x48')]())_0x5c897f[_0x76e9('0xc')]();});});}[_0x76e9('0x159')](_0x5da512){this[_0x76e9('0x133')](()=>{this['editor'][_0x76e9('0x168')][_0x76e9('0x68')](()=>{for(const _0x13e4c9 of _0x5da512['getAllAdjacentSuggestions']())_0x13e4c9[_0x76e9('0x8e')]();});});}['enableCommand'](_0x4ac487,_0x3a1ebe){const _0xd6523d=this[_0x76e9('0x1')][_0x76e9('0x12d')][_0x76e9('0x121')](_0x4ac487);if(!_0xd6523d)throw new _0x1e95d6(_0x76e9('0x5'),this,{'commandName':_0x4ac487});if(this['_enabledCommands']['has'](_0xd6523d))throw new _0x1e95d6(_0x76e9('0x28'),this,{'commandName':_0x4ac487});this['_enabledCommands']['add'](_0xd6523d),_0x3a1ebe&&_0xd6523d['on'](_0x76e9('0x45'),(_0x307948,_0x103d06)=>{this[_0x76e9('0xba')][_0x76e9('0x3b')]&&(this[_0x76e9('0x108')]||(_0x103d06[_0x76e9('0x10d')]>0x0&&_0x103d06[_0x103d06[_0x76e9('0x10d')]-0x1]&&_0x103d06[_0x103d06[_0x76e9('0x10d')]-0x1][_0x76e9('0x133')]?_0x103d06[_0x76e9('0xe6')]():(_0x307948[_0x76e9('0x15a')]=_0x3a1ebe((..._0x53b4cb)=>_0xd6523d[_0x76e9('0x45')](..._0x53b4cb,{'forceDefaultExecution':!0x0}),..._0x103d06),_0x307948[_0x76e9('0x86')]())));},{'priority':_0x76e9('0x74')});}[_0x76e9('0x133')](_0x40dd59){let _0x4b4a44,_0x14c2bb;const _0x1ce91b=this['_isForcedDefaultExecutionBlock'];this[_0x76e9('0x108')]=!0x0;try{_0x4b4a44=_0x40dd59();}catch(_0x1f735c){_0x14c2bb=_0x1f735c;}return _0x1ce91b||(this[_0x76e9('0x108')]=!0x1),_0x14c2bb&&_0x1e95d6[_0x76e9('0x10f')](_0x14c2bb,this),_0x4b4a44;}['markInsertion'](_0xf7640a,_0x3c0700=null,_0x29c1f2={}){if(_0xf7640a[_0x76e9('0x109')])return null;const _0x4afe5e=this[_0x76e9('0x1')]['plugins'][_0x76e9('0x121')](_0x76e9('0x9c'))['me'];for(const {suggestion:_0xa016bd,meta:_0x343bb4}of this[_0x76e9('0x26')](_0xf7640a,_0x76e9('0xa')))if(_0x343bb4[_0x76e9('0x172')]){if(!_0x343bb4[_0x76e9('0x3d')]){if(_0x343bb4[_0x76e9('0x91')]){if(!this['_mergeNestedSuggestions']||!Gt(_0xa016bd,_0x29c1f2))continue;return _0xa016bd;}if(Gt(_0xa016bd,_0x29c1f2))return _0xa016bd;this[_0x76e9('0x5b')](_0xa016bd,_0xf7640a[_0x76e9('0x97')],_0xf7640a['end']);break;}if(_0x3c0700==_0xa016bd[_0x76e9('0xf4')]&&Gt(_0xa016bd,_0x29c1f2)){const _0x160ce3=_0xa016bd[_0x76e9('0xc9')]();return _0x160ce3[_0x76e9('0x97')][_0x76e9('0xcb')](_0xf7640a['end'])?this['_setSuggestionRange'](_0xa016bd,this[_0x76e9('0x128')][_0x76e9('0xd4')](_0xf7640a[_0x76e9('0x97')],_0x160ce3[_0x76e9('0x5a')])):this[_0x76e9('0x175')](_0xa016bd,this[_0x76e9('0x128')]['createRange'](_0x160ce3[_0x76e9('0x97')],_0xf7640a[_0x76e9('0x5a')])),_0xa016bd;}}const _0x2adb34=_0x5c5e0d(),_0x402b8a=_0x4afe5e['id'],_0x35e0d8=_0x3c0700?'insertion:'+_0x3c0700:_0x76e9('0xa'),_0x4b15ca=this[_0x76e9('0x51')]({'id':_0x2adb34,'type':_0x35e0d8,'createdAt':new Date(),'authorId':_0x402b8a,'attributes':_0x29c1f2});return this[_0x76e9('0x70')](_0x35e0d8,_0x2adb34,_0x402b8a,_0xf7640a),_0x4b15ca;}[_0x76e9('0x75')](_0x46f8bf,_0x44dcbe=_0x76e9('0x111'),_0x40a8ef={}){const _0x4f966b=this[_0x76e9('0x1')]['plugins'][_0x76e9('0x121')](_0x76e9('0x9c'))['me'],_0x507c1e=this[_0x76e9('0x53')][_0x76e9('0xb2')](_0x76e9('0xa'),_0x44dcbe,_0x76e9('0xbf'));for(const _0xd0ddf5 of this[_0x76e9('0x21')]())if(_0xd0ddf5[_0x76e9('0xec')]['id']==_0x4f966b['id']&&_0x76e9('0xa')==_0xd0ddf5[_0x76e9('0x4d')]&&_0xd0ddf5[_0x76e9('0xf4')]==_0x44dcbe&&Gt(_0xd0ddf5,_0x40a8ef)&&(_0x507c1e(_0xd0ddf5[_0x76e9('0x123')](),_0x46f8bf)||_0x507c1e(_0x46f8bf,_0xd0ddf5[_0x76e9('0x123')]()))){for(const _0x39f74c of _0x46f8bf)_0xd0ddf5[_0x76e9('0x81')](_0x39f74c);return _0xd0ddf5;}for(const {suggestion:_0xc05286,meta:_0x1e2eb8}of this[_0x76e9('0x26')](_0x46f8bf,_0x76e9('0xa'))){if(!_0x1e2eb8['isOwn'])continue;if(!this[_0x76e9('0x36')]&&_0x1e2eb8['containsRangeInObject'])continue;if(!Gt(_0xc05286,_0x40a8ef))continue;let _0x5806b5=!0x0;for(const _0x677783 of _0xc05286[_0x76e9('0x123')]())for(const _0x4102ac of _0x46f8bf)if(!_0x677783[_0x76e9('0x13a')](_0x4102ac)){_0x5806b5=!0x1;break;}if(_0x5806b5)return _0xc05286;}const _0x6fca8a=_0x5c5e0d(),_0x1d19f3=_0x4f966b['id'],_0x58ce81='insertion:'+_0x44dcbe,_0x2040bd=this[_0x76e9('0x51')]({'id':_0x6fca8a,'type':_0x58ce81,'createdAt':new Date(),'authorId':_0x1d19f3,'attributes':_0x40a8ef});for(const _0x1a70be of _0x46f8bf)this['_addSuggestionMarker'](_0x58ce81,_0x6fca8a,_0x1d19f3,_0x1a70be,_0x8624f0[_0x76e9('0x160')]());return _0x2040bd;}[_0x76e9('0x87')](_0x46fb79,_0x4268dd,_0x2152f2=null,_0xc926f8={}){if(_0x2152f2=_0x2152f2||Et(_0x4268dd),_0x46fb79['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4dd81d=this[_0x76e9('0x53')][_0x76e9('0xb2')](_0x76e9('0x98'),_0x2152f2,'accept');return this[_0x76e9('0x133')](()=>_0x4dd81d([_0x46fb79],_0x4268dd,_0xc926f8)),null;}const _0x303518=this['editor'][_0x76e9('0x142')][_0x76e9('0x121')](_0x76e9('0x9c'))['me'],_0x34fd40=[];if(_0x76e9('0xe4')!==this['_trackFormatChanges'])for(const {suggestion:_0x362cb0,meta:_0x30a569}of this[_0x76e9('0x26')](_0x46fb79,_0x76e9('0xa')))_0x30a569[_0x76e9('0x172')]&&!_0x30a569[_0x76e9('0x145')]&&_0x34fd40['push'](..._0x362cb0[_0x76e9('0x123')]());const _0x56f431=function(_0x2f5f5d,_0x1d5f60){const _0xe685c0=[];for(const _0x23b881 of _0x1d5f60){const _0x1a9c79=_0x2f5f5d[_0x76e9('0xdd')](_0x23b881);_0x1a9c79&&_0xe685c0[_0x76e9('0x7e')](_0x1a9c79);}return _0xe685c0;}(_0x46fb79,_0x34fd40),_0xcdbb13=function(_0xaec027,_0x19a0e0){const _0x4315b8=[_0xaec027];for(const _0xd88c97 of _0x19a0e0){let _0x3b992f=0x0;for(;_0x3b992f<_0x4315b8[_0x76e9('0x10d')];){const _0x10fd64=_0x4315b8[_0x3b992f][_0x76e9('0x136')](_0xd88c97);_0x4315b8['splice'](_0x3b992f,0x1,..._0x10fd64),_0x3b992f+=_0x10fd64[_0x76e9('0x10d')];}}return _0x4315b8;}(_0x46fb79,_0x34fd40);_0x56f431[_0x76e9('0x10d')]&&this['_model'][_0x76e9('0x68')](()=>{for(const _0x4bc824 of _0x56f431){const _0x3b3487=this[_0x76e9('0x53')][_0x76e9('0xb2')](_0x76e9('0x98'),_0x2152f2,_0x76e9('0xc'));this[_0x76e9('0x133')](()=>_0x3b3487([_0x4bc824],_0x4268dd,_0xc926f8));}});for(const _0x16a489 of _0xcdbb13){let _0x30f754=null,_0x513086=_0x16a489[_0x76e9('0x97')],_0x277dc5=_0x16a489[_0x76e9('0x5a')];for(const {suggestion:_0x27e059,meta:_0x1c2a97}of this[_0x76e9('0x26')](_0x16a489,_0x76e9('0x98'))){if(!_0x1c2a97['isOwn'])continue;if(_0x27e059[_0x76e9('0xf4')]!=_0x2152f2)continue;if(!Gt(_0x27e059,_0xc926f8))continue;const _0x42e6fd=_0x27e059[_0x76e9('0xc9')]();if(_0x42e6fd['containsRange'](_0x16a489,!0x0))return null;_0x513086=_0x513086['isBefore'](_0x42e6fd[_0x76e9('0x97')])?_0x513086:_0x42e6fd[_0x76e9('0x97')],_0x277dc5=_0x277dc5['isAfter'](_0x42e6fd[_0x76e9('0x5a')])?_0x277dc5:_0x42e6fd['end'],_0x30f754?_0x42e6fd[_0x76e9('0x97')][_0x76e9('0x8b')](_0x30f754[_0x76e9('0xc9')]()[_0x76e9('0x97')])?(_0x30f754['removeMarkers'](),_0x30f754=_0x27e059):_0x27e059[_0x76e9('0xb8')]():_0x30f754=_0x27e059;}const _0x3e70c1=this[_0x76e9('0x128')][_0x76e9('0xd4')](_0x513086,_0x277dc5);if(_0x30f754)this[_0x76e9('0x175')](_0x30f754,_0x3e70c1);else{const _0x40a76c=_0x5c5e0d(),_0x2b7de1=_0x303518['id'];this[_0x76e9('0x51')]({'id':_0x40a76c,'type':_0x76e9('0x169')+_0x2152f2,'data':_0x4268dd,'createdAt':new Date(),'authorId':_0x2b7de1,'attributes':_0xc926f8}),this['_addSuggestionMarker'](_0x76e9('0x169')+_0x2152f2,_0x40a76c,_0x2b7de1,_0x3e70c1);}}return null;}[_0x76e9('0x63')](_0x3ce3a7,_0x50af1a,_0xddf43f=[],_0x40c1de=null,_0x705bad={}){_0x50af1a[_0x76e9('0x38')]||(_0x50af1a[_0x76e9('0x38')]=_0x50af1a[_0x76e9('0xac')]),_0x50af1a[_0x76e9('0x59')]=_0x3ce3a7['is'](_0x76e9('0x15b')),_0x40c1de=_0x40c1de||Et(_0x50af1a);const _0x433afa=_0xddf43f[_0x76e9('0x177')](_0x27ebf9=>Ut(_0x27ebf9,this[_0x76e9('0x128')])),_0x97589c=_0x3ce3a7['is']('range')?_0x3ce3a7:Ut(_0x3ce3a7,this[_0x76e9('0x128')]);if(_0x76e9('0x163')===this['_trackFormatChanges']){const _0x396539=this[_0x76e9('0x53')][_0x76e9('0xb2')]('formatBlock',_0x40c1de,_0x76e9('0xc'));return this[_0x76e9('0x133')](()=>_0x396539([_0x97589c],_0x50af1a,_0x705bad)),null;}_0x433afa[_0x76e9('0x7e')](_0x97589c);let _0x10d017=!0x0;for(const _0x5002ff of _0x433afa)if(!this[_0x76e9('0x157')](_0x5002ff)){_0x10d017=!0x1;break;}if(_0x10d017&&_0x76e9('0xe4')!==this['_trackFormatChanges']){const _0x53a4da=this['_suggestionFactory'][_0x76e9('0xb2')](_0x76e9('0xc5'),_0x40c1de,_0x76e9('0xc'));return this[_0x76e9('0x133')](()=>_0x53a4da([_0x97589c],_0x50af1a,_0x705bad)),null;}let _0x453dc2=null,_0xa07264=_0x97589c['start'],_0x4f2347=_0x97589c[_0x76e9('0x5a')];for(const {suggestion:_0x1fe66e,meta:_0x5b9ef8}of this[_0x76e9('0x26')](_0x97589c,'formatBlock')){if(!_0x5b9ef8[_0x76e9('0x172')])continue;if(_0x5b9ef8[_0x76e9('0x3d')]||_0x5b9ef8[_0x76e9('0x91')]||_0x5b9ef8['isInsideObject'])continue;if(_0x1fe66e['data'][_0x76e9('0x38')]!=_0x50af1a[_0x76e9('0x38')])continue;if(!Gt(_0x1fe66e,_0x705bad))continue;const _0x407ed4=_0x1fe66e['getFirstRange']();if(_0x1fe66e[_0x76e9('0xf4')]==_0x40c1de){if(_0x407ed4[_0x76e9('0x13a')](_0x97589c,!0x0))return null;_0xa07264=_0xa07264[_0x76e9('0x8b')](_0x407ed4[_0x76e9('0x97')])?_0xa07264:_0x407ed4[_0x76e9('0x97')],_0x4f2347=_0x4f2347[_0x76e9('0x146')](_0x407ed4['end'])?_0x4f2347:_0x407ed4[_0x76e9('0x5a')],_0x453dc2?_0x407ed4[_0x76e9('0x97')][_0x76e9('0x8b')](_0x453dc2[_0x76e9('0xc9')]()[_0x76e9('0x97')])?(_0x453dc2[_0x76e9('0xb8')](),_0x453dc2=_0x1fe66e):_0x1fe66e[_0x76e9('0xb8')]():_0x453dc2=_0x1fe66e;}else{const _0x591237=_0x97589c[_0x76e9('0xdd')](_0x407ed4);this[_0x76e9('0x107')](_0x1fe66e,_0x591237);}}const _0x1f3b9a=this[_0x76e9('0x1')][_0x76e9('0x142')][_0x76e9('0x121')](_0x76e9('0x9c'))['me'],_0x5b2a22=_0x5c5e0d(),_0x40924c=_0x1f3b9a['id'];if(_0x453dc2)return this[_0x76e9('0x175')](_0x453dc2,this[_0x76e9('0x128')][_0x76e9('0xd4')](_0xa07264,_0x4f2347)),_0x453dc2;{const _0x440ed2=this[_0x76e9('0x51')]({'id':_0x5b2a22,'type':_0x76e9('0x54')+_0x40c1de,'data':_0x50af1a,'createdAt':new Date(),'authorId':_0x40924c,'attributes':_0x705bad});return this['_addSuggestionMarker'](_0x76e9('0x54')+_0x40c1de,_0x5b2a22,_0x40924c,this[_0x76e9('0x128')][_0x76e9('0xd4')](_0xa07264,_0x4f2347)),_0x440ed2;}}[_0x76e9('0xbb')](_0x2eed72,_0x31f142,_0x3c707f=[],_0x4589ba=null,_0x5f4a0f={}){_0x31f142['formatGroupId']||(_0x31f142[_0x76e9('0x38')]=_0x31f142['commandName']);const _0x668b76=_0x2eed72[0x0];_0x31f142[_0x76e9('0x59')]=_0x668b76['is'](_0x76e9('0x15b')),_0x4589ba=_0x4589ba||Et(_0x31f142);const _0x37b34a=_0x3c707f[_0x76e9('0x177')](_0x1265ea=>Ut(_0x1265ea,this['_model'])),_0x56d7e9=_0x668b76['is']('range')?_0x2eed72:_0x2eed72[_0x76e9('0x177')](_0x4fe54b=>Ut(_0x4fe54b,this[_0x76e9('0x128')]));if(_0x76e9('0x163')===this[_0x76e9('0x15c')]){const _0x511535=this['_suggestionFactory']['getSuggestionCallback'](_0x76e9('0xc5'),_0x4589ba,_0x76e9('0xc'));return this[_0x76e9('0x133')](()=>_0x511535(_0x56d7e9,_0x31f142,_0x5f4a0f)),null;}_0x37b34a[_0x76e9('0x7e')](..._0x56d7e9);let _0x47319e=!0x0;for(const _0x17bb98 of _0x37b34a)if(!this[_0x76e9('0x157')](_0x17bb98)){_0x47319e=!0x1;break;}if(_0x47319e&&'always'!==this[_0x76e9('0x15c')]){const _0x12b28f=this[_0x76e9('0x53')][_0x76e9('0xb2')](_0x76e9('0xc5'),_0x4589ba,_0x76e9('0xc'));return this[_0x76e9('0x133')](()=>_0x12b28f(_0x56d7e9,_0x31f142,_0x5f4a0f)),null;}const _0x3b4b41=this[_0x76e9('0x1')]['plugins'][_0x76e9('0x121')](_0x76e9('0x9c'))['me'];for(const _0x116fc6 of this[_0x76e9('0x21')]()){if(_0x116fc6[_0x76e9('0xec')]['id']!=_0x3b4b41['id'])continue;if(_0x76e9('0xc5')!=_0x116fc6[_0x76e9('0x4d')]||_0x116fc6[_0x76e9('0x8a')]['formatGroupId']!=_0x31f142[_0x76e9('0x38')])continue;if(!Gt(_0x116fc6,_0x5f4a0f))continue;const _0x46a146=_0x116fc6['subType']==_0x4589ba;for(let _0xec7583=0x0;_0xec7583<_0x56d7e9[_0x76e9('0x10d')];_0xec7583++){const _0x2d4eda=_0x56d7e9[_0xec7583];for(const _0x518154 of _0x116fc6[_0x76e9('0x127')]()){const _0x16bc1d=_0x518154['getRange']();if(_0x2d4eda[_0x76e9('0xcb')](_0x16bc1d)){_0x46a146?(_0x56d7e9[_0x76e9('0x42')](_0xec7583,0x1),_0xec7583--):_0x116fc6[_0x76e9('0x102')](_0x518154[_0x76e9('0xcd')]);break;}}}}if(0x0==_0x56d7e9['length'])return null;const _0x549d49=this[_0x76e9('0x53')][_0x76e9('0xb2')](_0x76e9('0xc5'),_0x4589ba,'join');for(const _0x46ab46 of this['getSuggestions']())if(_0x46ab46[_0x76e9('0xec')]['id']==_0x3b4b41['id']&&'formatBlock'==_0x46ab46[_0x76e9('0x4d')]&&_0x46ab46['data'][_0x76e9('0x38')]==_0x31f142[_0x76e9('0x38')]&&_0x46ab46['subType']==_0x4589ba&&Gt(_0x46ab46,_0x5f4a0f)&&(_0x549d49(_0x46ab46['getRanges'](),_0x56d7e9)||_0x549d49(_0x56d7e9,_0x46ab46['getRanges']()))){for(const _0x16fafd of _0x56d7e9)_0x46ab46[_0x76e9('0x81')](_0x16fafd);return _0x46ab46;}const _0x196c2c=_0x5c5e0d(),_0x532b8c=_0x3b4b41['id'],_0x4de015=_0x76e9('0x54')+_0x4589ba,_0x66888b=this['_setSuggestionData']({'id':_0x196c2c,'type':_0x4de015,'data':_0x31f142,'createdAt':new Date(),'authorId':_0x532b8c,'attributes':_0x5f4a0f});for(const _0x43fa0b of _0x56d7e9)this[_0x76e9('0x70')](_0x4de015,_0x196c2c,_0x532b8c,_0x43fa0b,_0x8624f0['getMultiRangeId']());return _0x66888b;}['markDeletion'](_0x38a7fa,_0x16a74c=null,_0x31be8b={}){if(_0x38a7fa['isCollapsed'])return null;const _0x1ceac6=this[_0x76e9('0x1')][_0x76e9('0x142')][_0x76e9('0x121')](_0x76e9('0x9c'))['me'],_0x4e205e=new _0x3d60eb(_0x38a7fa[_0x76e9('0x97')],_0x38a7fa[_0x76e9('0x5a')]);for(const {suggestion:_0x2e7806,meta:_0x464cd7}of this[_0x76e9('0x26')](_0x4e205e,_0x76e9('0xa')))if(_0x464cd7[_0x76e9('0x172')]&&!_0x464cd7[_0x76e9('0x3d')]){if(_0x2e7806[_0x76e9('0x8c')]){const _0x55edf5=_0x2e7806[_0x76e9('0x123')]()['filter'](_0x37ec42=>_0x76e9('0x117')!=_0x37ec42[_0x76e9('0x171')][_0x76e9('0x16a')]);_0x55edf5[_0x76e9('0x16e')](_0x22f851=>_0x4e205e['containsRange'](_0x22f851,!0x0))&&_0x2e7806['discard']();if(_0x55edf5[_0x76e9('0x7d')](_0x16c179=>_0x16c179[_0x76e9('0x13a')](_0x4e205e,!0x0))){const _0x2359de=this['_suggestionFactory'][_0x76e9('0xb2')](_0x76e9('0x152'),_0x16a74c,_0x76e9('0xc'));return this[_0x76e9('0x133')](()=>_0x2359de([_0x4e205e],null,_0x31be8b)),null;}}else{const _0x649f2a=_0x4e205e[_0x76e9('0xdd')](_0x2e7806[_0x76e9('0xc9')]());null!==_0x649f2a&&_0x2e7806['_onDiscard']([_0x649f2a],null,_0x31be8b);}}if(_0x4e205e[_0x76e9('0x78')](),_0x4e205e[_0x76e9('0x109')]||'$graveyard'==_0x4e205e[_0x76e9('0x171')][_0x76e9('0x16a')])return null;let _0x241fe6=null,_0x37eedb=_0x4e205e[_0x76e9('0x97')],_0x4969af=_0x4e205e[_0x76e9('0x5a')];const _0x7886ae=this['_findSuggestions'](_0x4e205e,_0x76e9('0x152'));for(const {suggestion:_0x136a90,meta:_0x308e30}of _0x7886ae){const _0x30121b=this[_0x76e9('0x128')]['createRange'](_0x37eedb,_0x4969af);if(_0x308e30['isOwn']&&(this[_0x76e9('0x36')]||!_0x308e30['containsRangeInObject']&&!_0x308e30['isInsideObject'])){if(_0x136a90[_0x76e9('0x8c')]){if(!Gt(_0x136a90,_0x31be8b))continue;let _0x15e07f=!0x0;for(const _0x4efdf8 of _0x136a90[_0x76e9('0x123')]()){if(_0x4efdf8[_0x76e9('0x13a')](_0x30121b,!0x0))return _0x136a90;_0x30121b[_0x76e9('0x13a')](_0x4efdf8)||(_0x15e07f=!0x1);}_0x15e07f&&_0x136a90[_0x76e9('0x8e')]();}else{const _0x4057c3=_0x136a90[_0x76e9('0xc9')]();if(_0x4057c3[_0x76e9('0x13a')](_0x30121b,!0x0))return _0x136a90;if(!Gt(_0x136a90,_0x31be8b)){_0x30121b['containsRange'](_0x4057c3)?_0x136a90[_0x76e9('0xb8')]():_0x4057c3[_0x76e9('0xd3')](_0x37eedb)?_0x37eedb=_0x4057c3[_0x76e9('0x5a')]:_0x4057c3[_0x76e9('0xd3')](_0x4969af)&&(_0x4969af=_0x4057c3[_0x76e9('0x97')]);continue;}_0x37eedb=_0x37eedb['isBefore'](_0x4057c3[_0x76e9('0x97')])?_0x37eedb:_0x4057c3['start'],_0x4969af=_0x4969af[_0x76e9('0x146')](_0x4057c3['end'])?_0x4969af:_0x4057c3[_0x76e9('0x5a')],_0x31be8b=Object['assign']({},_0x136a90[_0x76e9('0x3a')]),_0x241fe6?_0x4057c3['start'][_0x76e9('0x8b')](_0x241fe6[_0x76e9('0xc9')]()[_0x76e9('0x97')])?(_0x241fe6[_0x76e9('0xb8')](),_0x241fe6=_0x136a90):_0x136a90[_0x76e9('0xb8')]():_0x241fe6=_0x136a90;}}}if(_0x241fe6)return this['_setSuggestionRange'](_0x241fe6,this[_0x76e9('0x128')][_0x76e9('0xd4')](_0x37eedb,_0x4969af)),_0x241fe6;{const _0x5caebb=_0x5c5e0d(),_0x250c0d=this['_model'][_0x76e9('0xd4')](_0x37eedb,_0x4969af),_0x663d84=_0x1ceac6['id'],_0x2a4885=_0x16a74c?'deletion:'+_0x16a74c:_0x76e9('0x152'),_0x46df13=this[_0x76e9('0x51')]({'id':_0x5caebb,'type':_0x2a4885,'createdAt':new Date(),'authorId':_0x663d84,'attributes':_0x31be8b});return this[_0x76e9('0x70')](_0x2a4885,_0x5caebb,_0x663d84,_0x250c0d),_0x46df13;}}[_0x76e9('0x6a')](_0x3d6036,_0x73fefa=_0x76e9('0x111'),_0x32d634={}){const _0x17c70c=this[_0x76e9('0x1')]['plugins']['get'](_0x76e9('0x9c'))['me'],_0x13e39c=_0x3d6036['map'](_0x52bd20=>new _0x3d60eb(_0x52bd20[_0x76e9('0x97')],_0x52bd20[_0x76e9('0x5a')])),_0x397c83=new Set();for(const {suggestion:_0x503433,meta:_0x5dd0a9}of this['_findSuggestions'](_0x13e39c,_0x76e9('0xa')))_0x5dd0a9[_0x76e9('0x172')]&&!_0x5dd0a9[_0x76e9('0x3d')]&&_0x397c83[_0x76e9('0xb6')](_0x503433);for(const _0x32dc2f of _0x397c83)if(_0x32dc2f[_0x76e9('0x8c')]){const _0x1bb7a7=_0x32dc2f[_0x76e9('0x123')]();(!_0x32dc2f[_0x76e9('0x3a')]||!_0x32dc2f[_0x76e9('0x3a')][_0x76e9('0xaa')])&&(_0x1bb7a7[_0x76e9('0x16e')](_0x290ae4=>_0x13e39c[_0x76e9('0x7d')](_0x473a5a=>_0x473a5a['containsRange'](_0x290ae4,!0x0)))&&_0x32dc2f['discard']());if(_0x13e39c[_0x76e9('0x16e')](_0x217cd5=>_0x1bb7a7['some'](_0x2a6ca7=>_0x2a6ca7[_0x76e9('0x13a')](_0x217cd5,!0x0)))){const _0x1369f2=this[_0x76e9('0x53')][_0x76e9('0xb2')](_0x76e9('0x152'),_0x73fefa,_0x76e9('0xc'));return this[_0x76e9('0x133')](()=>_0x1369f2(_0x3d6036,null,_0x32d634)),null;}}else{const _0x30e942=_0x32dc2f[_0x76e9('0xc9')]();_0x13e39c[_0x76e9('0x7d')](_0x405d76=>_0x405d76[_0x76e9('0x13a')](_0x30e942,!0x0))&&_0x32dc2f['discard']();if(_0x13e39c[_0x76e9('0x16e')](_0x45361c=>_0x30e942[_0x76e9('0x13a')](_0x45361c,!0x0))){const _0x112cf0=this['_suggestionFactory'][_0x76e9('0xb2')]('deletion',_0x73fefa,_0x76e9('0xc'));return this[_0x76e9('0x133')](()=>_0x112cf0(_0x13e39c,null,_0x32d634)),null;}}const _0x18f014=this[_0x76e9('0x53')][_0x76e9('0xb2')](_0x76e9('0x152'),_0x73fefa,_0x76e9('0xbf'));let _0x40444c=null;for(const _0x37ae79 of this[_0x76e9('0x21')]())if(_0x37ae79[_0x76e9('0xec')]['id']==_0x17c70c['id']&&_0x37ae79[_0x76e9('0x22')]&&_0x76e9('0x152')==_0x37ae79[_0x76e9('0x4d')]&&_0x37ae79['subType']==_0x73fefa&&Gt(_0x37ae79,_0x32d634)&&(_0x18f014(_0x37ae79['getRanges'](),_0x13e39c)||_0x18f014(_0x13e39c,_0x37ae79[_0x76e9('0x123')]()))){if(_0x40444c){if(_0x37ae79['commentThread']&&_0x37ae79[_0x76e9('0x79')]['length'])continue;for(const _0x96e413 of _0x37ae79['getRanges']())_0x40444c[_0x76e9('0x94')](_0x96e413)||_0x40444c[_0x76e9('0x81')](_0x96e413);_0x37ae79[_0x76e9('0xb8')]();}else{_0x40444c=_0x37ae79;for(const _0x2f0556 of _0x13e39c)_0x37ae79[_0x76e9('0x94')](_0x2f0556)||_0x37ae79['addRange'](_0x2f0556);}}if(_0x40444c)return _0x40444c;_0x397c83[_0x76e9('0x149')]();for(const {suggestion:_0x45f360,meta:_0x4685c2}of this[_0x76e9('0x26')](_0x13e39c,_0x76e9('0x152')))_0x4685c2[_0x76e9('0x172')]&&(this[_0x76e9('0x36')]||!_0x4685c2[_0x76e9('0x91')]&&!_0x4685c2[_0x76e9('0x145')])&&Gt(_0x45f360,_0x32d634)&&_0x397c83[_0x76e9('0xb6')](_0x45f360);for(const _0x2bea16 of _0x397c83){const _0x5945dc=_0x2bea16[_0x76e9('0x123')]();if(!_0x32d634||!_0x32d634[_0x76e9('0xaa')]){if(_0x13e39c[_0x76e9('0x16e')](_0xf89308=>_0x5945dc[_0x76e9('0x7d')](_0x4275a2=>_0x4275a2['containsRange'](_0xf89308,!0x0))))return _0x2bea16;}(!_0x2bea16[_0x76e9('0x3a')]||!_0x2bea16[_0x76e9('0x3a')]['skipNestingCheck'])&&(_0x5945dc[_0x76e9('0x16e')](_0x23131d=>_0x13e39c[_0x76e9('0x7d')](_0x4bd6fe=>_0x4bd6fe['containsRange'](_0x23131d,!0x0)))&&_0x2bea16[_0x76e9('0x8e')]());}const _0xe3cc4=_0x5c5e0d(),_0x27f98b=_0x17c70c['id'],_0x349ef2=_0x76e9('0x104')+_0x73fefa,_0x57e2e4=this[_0x76e9('0x51')]({'id':_0xe3cc4,'type':_0x349ef2,'createdAt':new Date(),'authorId':_0x27f98b,'attributes':_0x32d634});for(const _0x568f2b of _0x13e39c)_0x568f2b['detach'](),_0x568f2b[_0x76e9('0x109')]||_0x76e9('0x117')==_0x568f2b[_0x76e9('0x171')]['rootName']||this[_0x76e9('0x70')](_0x349ef2,_0xe3cc4,_0x27f98b,_0x568f2b,_0x8624f0[_0x76e9('0x160')]());return _0x57e2e4;}['markAttributeChange'](_0x4ef945,_0x33b40d,_0xe03054,_0xee933e,_0x322986){if(_0x4ef945[_0x76e9('0x109')])return[];if('never'===this[_0x76e9('0x15c')])return[];const _0xd05d6a=this[_0x76e9('0x1')]['plugins'][_0x76e9('0x121')](_0x76e9('0x9c'))['me']['id'],_0x9aad3d=Array[_0x76e9('0xa8')](this[_0x76e9('0x35')][_0x76e9('0x116')]())[_0x76e9('0xae')](_0x2e9fab=>_0x76e9('0x11')==_0x2e9fab[_0x76e9('0x4d')]&&_0x2e9fab[_0x76e9('0x8a')][_0x76e9('0x13f')]==_0x33b40d&&_0x2e9fab[_0x76e9('0x94')](_0x4ef945));if(_0x76e9('0x10e')===this[_0x76e9('0x15c')]){const _0x134e1c=this[_0x76e9('0x26')](_0x4ef945,_0x76e9('0xa'))[_0x76e9('0xae')](({meta:_0x576c10})=>_0x576c10[_0x76e9('0x172')]&&!_0x576c10[_0x76e9('0x145')]&&!_0x576c10['isNextTo'])[_0x76e9('0x177')](({suggestion:_0x506693})=>_0x506693);_0x9aad3d[_0x76e9('0xff')](..._0x134e1c);}const _0x22c4ed=new Map([[_0x4ef945,_0xe03054]]);for(const _0x5019d8 of _0x9aad3d){const _0x596185='attribute'==_0x5019d8[_0x76e9('0x4d')]?_0x5019d8['data'][_0x76e9('0x16f')]:void 0x0,_0x5b18f7=_0x5019d8[_0x76e9('0xc9')](),_0x269738=Array['from'](_0x22c4ed[_0x76e9('0x46')]())[_0x76e9('0x11c')](_0x1edf1b=>_0x1edf1b[_0x76e9('0x7a')](_0x5b18f7));if(!_0x269738)continue;const _0xdd60e1=_0x269738[_0x76e9('0x136')](_0x5b18f7);this[_0x76e9('0xa2')](_0x33b40d)&&'insertion'==_0x5019d8[_0x76e9('0x4d')]&&0x0!=_0xdd60e1[_0x76e9('0x10d')]||(_0x22c4ed['delete'](_0x269738),_0xdd60e1[_0x76e9('0x4c')](_0x36a537=>{_0x22c4ed[_0x76e9('0x55')](_0x36a537,_0xe03054);}),'insertion'!=_0x5019d8[_0x76e9('0x4d')]&&_0x596185!=_0xee933e&&_0x22c4ed[_0x76e9('0x55')](_0x269738[_0x76e9('0xdd')](_0x5b18f7),_0x596185));}const _0x211a6f=[];for(const [_0x214292,_0x1a0248]of _0x22c4ed){const _0x1c7cc4=_0x5c5e0d(),_0x1620b4={'key':_0x33b40d,'oldValue':_0x1a0248,'newValue':_0xee933e};_0x33b40d['length']>0x25&&console[_0x76e9('0xdb')]('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.',{'key':_0x33b40d});const _0x383081=('attribute:'+(_0x33b40d+'|'+Et({'newValue':_0xee933e})))[_0x76e9('0x99')](0x0,0x3c),_0x51ca07=this[_0x76e9('0x51')]({'id':_0x1c7cc4,'type':_0x383081,'data':_0x1620b4,'createdAt':new Date(),'authorId':_0xd05d6a,'attributes':_0x322986});_0x211a6f[_0x76e9('0x7e')](_0x51ca07),this[_0x76e9('0x70')](_0x383081,_0x1c7cc4,_0xd05d6a,_0x214292);}return _0x211a6f;}[_0x76e9('0x2c')](_0x38ac33){this[_0x76e9('0x12')][_0x76e9('0xb6')](_0x38ac33);}[_0x76e9('0x95')](_0x4d1d1d){this['_inlineAttributeKeys'][_0x76e9('0xb6')](_0x4d1d1d);}[_0x76e9('0x90')](_0xce094a,_0x243fb0=[],_0x1f7361=[]){this['enableCommand'](_0xce094a,(_0x181672,..._0x53a357)=>{this[_0x76e9('0x3c')](()=>{_0x181672(..._0x53a357);});});for(const _0x5d807d of _0x243fb0)this[_0x76e9('0x95')](_0x5d807d);for(const _0x5f3488 of _0x1f7361)this[_0x76e9('0x2c')](_0x5f3488);}[_0x76e9('0x175')](_0x44fe38,_0x133ad0){const _0x1bebfa=_0x44fe38[_0x76e9('0x135')]();this[_0x76e9('0x128')]['change'](_0x31f3b9=>{_0x31f3b9['updateMarker'](_0x1bebfa,{'range':_0x133ad0});});}['_addThreadToSuggestion'](_0x274544){const _0x5cc1d1=_0x274544['id'],_0x2ed84d=this[_0x76e9('0x1')][_0x76e9('0xbc')][_0x76e9('0x121')](_0x76e9('0x1f'));this[_0x76e9('0x6e')]['hasCommentThread'](_0x5cc1d1)||this['_commentsRepository'][_0x76e9('0x126')]({'channelId':_0x2ed84d,'threadId':_0x5cc1d1,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x403ba0=this[_0x76e9('0x6e')][_0x76e9('0x64')](_0x5cc1d1);_0x403ba0[_0x76e9('0x84')](_0x76e9('0x9e')),_0x403ba0[_0x76e9('0x9e')]=!0x1,_0x274544['commentThread']=_0x403ba0;}['_checkSuggestionCorrectness'](_0x49345e,_0x412514,_0x4236a9,_0x1a9994){if(_0x49345e['type']!=_0x412514||_0x49345e[_0x76e9('0xf4')]!=_0x4236a9||_0x49345e['creator']['id']!=_0x1a9994)throw this[_0x76e9('0x1')][_0x76e9('0x113')]('track-changes-suggestion-data-mismatch'),new _0x1e95d6(_0x76e9('0x41'),this);}[_0x76e9('0x107')](_0x460b1f,_0x4ffd7c){const _0x399413=_0x460b1f[_0x76e9('0xc9')]();if(_0x4ffd7c['isEqual'](_0x399413))_0x460b1f[_0x76e9('0xb8')]();else{if(_0x399413['containsRange'](_0x4ffd7c)){const _0x488009=this[_0x76e9('0x128')][_0x76e9('0x2f')](_0x4ffd7c[_0x76e9('0x97')][_0x76e9('0x23')],_0x76e9('0x5a'));this[_0x76e9('0x175')](_0x460b1f,this[_0x76e9('0x128')][_0x76e9('0xd4')](_0x399413[_0x76e9('0x97')],_0x488009));const _0xa2cdf0=_0x5c5e0d(),_0x100b94=_0x460b1f['creator']['id'],_0x15ac90=_0x460b1f['type']+':'+_0x460b1f['subType'];this[_0x76e9('0x51')]({'id':_0xa2cdf0,'type':_0x15ac90,'createdAt':new Date(),'authorId':_0x100b94,'data':_0x460b1f['data'],'attributes':_0x460b1f[_0x76e9('0x3a')]});const _0x2176a3=this[_0x76e9('0x128')][_0x76e9('0x2f')](_0x4ffd7c[_0x76e9('0x5a')][_0x76e9('0x161')],_0x76e9('0x17')),_0x2a25d1=this['_model'][_0x76e9('0xd4')](_0x2176a3,_0x399413[_0x76e9('0x5a')]);this[_0x76e9('0x70')](_0x15ac90,_0xa2cdf0,_0x100b94,_0x2a25d1);}else{if(_0x399413['containsPosition'](_0x4ffd7c[_0x76e9('0x97')])){const _0x3dcf21=this[_0x76e9('0x128')][_0x76e9('0x2f')](_0x4ffd7c[_0x76e9('0x97')]['nodeBefore'],_0x76e9('0x5a'));this[_0x76e9('0x175')](_0x460b1f,this['_model'][_0x76e9('0xd4')](_0x399413[_0x76e9('0x97')],_0x3dcf21));}else{const _0x5ed76a=this['_model']['createPositionAt'](_0x4ffd7c[_0x76e9('0x5a')][_0x76e9('0x161')],'after');this[_0x76e9('0x175')](_0x460b1f,this[_0x76e9('0x128')][_0x76e9('0xd4')](_0x5ed76a,_0x399413[_0x76e9('0x5a')]));}}}}['_rangeIsInLocalUserInsertion'](_0x2feecf){for(const {suggestion:_0x358d0c,meta:_0x375bb3}of this[_0x76e9('0x26')](_0x2feecf,'insertion')){if(!_0x375bb3[_0x76e9('0x172')])continue;const _0x5bce90=_0x358d0c[_0x76e9('0x123')]();for(const _0x3a8914 of _0x5bce90)if(!_0x2feecf[_0x76e9('0x136')](_0x3a8914)[_0x76e9('0x10d')])return!0x0;}return!0x1;}[_0x76e9('0x88')](_0x25a434){const _0x140a1d=this[_0x76e9('0x1')][_0x76e9('0x142')][_0x76e9('0x121')](_0x76e9('0x9c'))[_0x76e9('0x176')](_0x25a434);if(!_0x140a1d)throw new _0x1e95d6(_0x76e9('0x6'),this);return _0x140a1d;}[_0x76e9('0xb5')](_0x412c45){const _0x3d8b2b=this[_0x76e9('0x1')]['plugins'][_0x76e9('0x121')](_0x76e9('0x9c')),_0xc01b61=_0x124d30(_0x76e9('0xf5')+_0x412c45),_0x398c8a=_0x3d8b2b[_0x76e9('0x176')](_0xc01b61);return _0x398c8a||_0x3d8b2b[_0x76e9('0xef')]({'id':_0xc01b61,'name':_0x412c45});}[_0x76e9('0x11a')](_0x2129a6,_0x3ba15c,_0x570e08,_0x4b8806,_0x242b9e){const _0x5e5f19=this[_0x76e9('0x88')](_0x4b8806),_0x559448=this[_0x76e9('0x53')]['buildSuggestion'](_0x2129a6,_0x3ba15c,_0x570e08,_0x5e5f19,_0x242b9e,_0x507344=>this['_updateSuggestionData'](_0x570e08,{'attributes':_0x507344}));return this[_0x76e9('0x120')](_0x559448,_0x76e9('0xc'),()=>{this[_0x76e9('0x1a')](_0x570e08,{'state':'accepted'});},{'priority':_0x76e9('0x74')}),this[_0x76e9('0x120')](_0x559448,_0x76e9('0x8e'),()=>{this[_0x76e9('0x1a')](_0x570e08,{'state':_0x76e9('0xc3')});},{'priority':'high'}),this[_0x76e9('0x35')]['set'](_0x570e08,_0x559448),this[_0x76e9('0xd0')]['set'](_0x559448,'notReady'),_0x559448;}['_splitMarkerName'](_0x43faa9){const _0x213f26=_0x43faa9['split'](':');return{'group':_0x213f26[0x0],'type':_0x213f26[0x1],'subType':_0x213f26[_0x76e9('0x10d')]>=0x5?_0x213f26[0x2]:null,'id':_0x213f26['length']<0x5?_0x213f26[0x2]:_0x213f26[0x3],'authorId':_0x213f26[_0x76e9('0x10d')]<0x5?_0x213f26[0x3]:_0x213f26[0x4],'markerCount':0x6==_0x213f26[_0x76e9('0x10d')]?_0x213f26[0x5]:null};}[_0x76e9('0x5b')](_0x11870b,_0x4f6f20,_0x4a1a44){const _0x20695b=_0x11870b['getFirstRange'](),_0x52705e=_0x20695b[_0x76e9('0x97')],_0x5b171f=_0x20695b[_0x76e9('0x5a')];this['_setSuggestionRange'](_0x11870b,this[_0x76e9('0x128')][_0x76e9('0xd4')](_0x52705e,_0x4f6f20));const _0x4f20f4=_0x5c5e0d(),_0x54aae3=_0x11870b[_0x76e9('0xea')]['id'],_0x23bc98=_0x11870b[_0x76e9('0x4d')]+(_0x11870b[_0x76e9('0xf4')]?':'+_0x11870b['subType']:'');this['_setSuggestionData']({'id':_0x4f20f4,'type':_0x23bc98,'createdAt':new Date(),'authorId':_0x54aae3,'originalSuggestionId':_0x11870b['id'],'attributes':_0x11870b[_0x76e9('0x3a')],'data':_0x11870b[_0x76e9('0x8a')]});const _0x141057=Pt(_0x11870b);('formatBlock'==_0x11870b[_0x76e9('0x4d')]||_0x141057&&this[_0x76e9('0xa2')](_0x141057))&&(_0x4a1a44=this['_model']['createPositionBefore'](_0x4a1a44['parent'])),this[_0x76e9('0x70')](_0x23bc98,_0x4f20f4,_0x54aae3,this[_0x76e9('0x128')]['createRange'](_0x4a1a44,_0x5b171f));}[_0x76e9('0x26')](_0x2c7960,_0x239e93=null){const _0x245889=[],_0x1cf94c=this[_0x76e9('0x1')]['plugins']['get'](_0x76e9('0x9c'))['me'];Array[_0x76e9('0xf7')](_0x2c7960)||(_0x2c7960=[_0x2c7960]);for(const _0xffe0ac of this[_0x76e9('0x21')]()){if(!_0xffe0ac['isInContent'])continue;if(_0x239e93&&_0xffe0ac[_0x76e9('0x4d')]!=_0x239e93)continue;let _0x47c4af=!0x1;for(const _0x3122f5 of _0xffe0ac[_0x76e9('0x123')]()){for(const _0x87ba29 of _0x2c7960){const _0x379201=_0x87ba29[_0x76e9('0x97')][_0x76e9('0xcb')](_0x3122f5[_0x76e9('0x5a')])||_0x87ba29[_0x76e9('0x5a')][_0x76e9('0xcb')](_0x3122f5[_0x76e9('0x97')]);if(_0x379201||_0x87ba29[_0x76e9('0xdd')](_0x3122f5)){const _0x3333fa=_0x87ba29[_0x76e9('0x13a')](_0x3122f5)&&Bt(this['_model'][_0x76e9('0xcf')],_0x3122f5[_0x76e9('0x97')],_0x87ba29),_0xeebbf7=_0x3122f5[_0x76e9('0x13a')](_0x87ba29)&&Bt(this[_0x76e9('0x128')][_0x76e9('0xcf')],_0x87ba29[_0x76e9('0x97')],_0x3122f5);_0x245889[_0x76e9('0x7e')]({'suggestion':_0xffe0ac,'meta':{'isOwn':_0x1cf94c==_0xffe0ac[_0x76e9('0xec')],'isNextTo':_0x379201,'isInsideObject':_0x3333fa,'containsRangeInObject':_0xeebbf7}}),_0x47c4af=!0x0;break;}}if(_0x47c4af)break;}}return _0x245889;}['_addSuggestionMarker'](_0x24989f,_0x47ebc3,_0x2cf9a9,_0x1a3690,_0x3b18f1){this[_0x76e9('0x128')][_0x76e9('0x68')](_0x2e185d=>{let _0x5cc39d='suggestion:'+_0x24989f+':'+_0x47ebc3+':'+_0x2cf9a9;_0x3b18f1&&(_0x5cc39d=_0x5cc39d+':'+_0x3b18f1),_0x2e185d[_0x76e9('0x130')](_0x5cc39d,{'range':_0x1a3690,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x76e9('0x4f')](_0x250b2b){const _0x1fd941=_0x250b2b[_0x76e9('0x10b')],_0x534d49=_0x250b2b[_0x76e9('0x13b')];_0x250b2b[_0x76e9('0x10b')]=null,_0x250b2b['next']=null,null!=_0x1fd941&&(_0x1fd941[_0x76e9('0x13b')]=_0x534d49),null!=_0x534d49&&(_0x534d49[_0x76e9('0x10b')]=_0x1fd941),_0x76e9('0x4a')==this[_0x76e9('0xd0')]['get'](_0x250b2b)&&(this[_0x76e9('0xd0')][_0x76e9('0x55')](_0x250b2b,'removed'),this[_0x76e9('0x2')]('suggestionUnloaded',_0x250b2b,_0x1fd941,_0x534d49));}[_0x76e9('0x51')](_0x18e65f){const _0x120d02=_0x18e65f['id'],_0x495936=this[_0x76e9('0x9d')](_0x18e65f);if(this[_0x76e9('0x124')]&&this[_0x76e9('0x124')][_0x76e9('0x16b')]){const _0x4db372=this[_0x76e9('0x1')][_0x76e9('0x142')][_0x76e9('0x121')]('PendingActions'),_0x1e4630=_0x495936[_0x76e9('0x115')],_0x417642=_0x495936[_0x76e9('0xf4')]?_0x495936[_0x76e9('0x4d')]+':'+_0x495936['subType']:_0x495936[_0x76e9('0x4d')],_0x22af9e=this['editor'][_0x76e9('0x5d')],_0x480b9d=_0x4db372[_0x76e9('0xb6')](_0xa7ebad(_0x22af9e,_0x76e9('0x131'))),_0x10dbc8={'id':_0x120d02,'type':_0x417642,'hasComments':_0x1e4630,'data':_0x18e65f[_0x76e9('0x8a')]||null,'originalSuggestionId':_0x18e65f[_0x76e9('0x118')]||null,'attributes':_0x495936[_0x76e9('0x3a')]};this['_adapter'][_0x76e9('0x16b')](_0x10dbc8)[_0x76e9('0xdc')](_0xb291b8=>{_0x495936[_0x76e9('0xed')]=!0x0,_0x4db372[_0x76e9('0x103')](_0x480b9d),_0xb291b8&&_0xb291b8[_0x76e9('0x11f')]&&(this[_0x76e9('0x35')]['get'](_0x120d02)[_0x76e9('0x11f')]=_0xb291b8[_0x76e9('0x11f')]);})['catch'](_0x5da349=>{throw _0x17fdeb('error-saving-suggestion-data-suggestion-discarded'),this[_0x76e9('0x1')]['model'][_0x76e9('0xc4')]({'isUndoable':!0x1},()=>{_0x495936[_0x76e9('0x8e')]();}),_0x495936['stopListening'](),this[_0x76e9('0x35')][_0x76e9('0x10c')](_0x495936['id']),this[_0x76e9('0xd0')][_0x76e9('0x10c')](_0x495936),_0x5da349;});}return _0x495936;}[_0x76e9('0xa2')](_0x59f542){return this[_0x76e9('0x12')]['has'](_0x59f542);}[_0x76e9('0x1a')](_0x473425,_0x61ba3b){const _0x1da835=this[_0x76e9('0x1')]['plugins']['get'](_0x76e9('0x44')),_0x529769=this[_0x76e9('0xc7')](_0x473425);if(this[_0x76e9('0x124')]&&this[_0x76e9('0x124')][_0x76e9('0xb9')]){if(_0x529769[_0x76e9('0xed')]){const _0x5e70fd=_0x1da835[_0x76e9('0xb6')](_0xa7ebad(this[_0x76e9('0x1')]['locale'],'PENDING_ACTION_SUGGESTION'));this[_0x76e9('0x124')][_0x76e9('0xb9')](_0x473425,_0x61ba3b)[_0x76e9('0xdc')](()=>{_0x1da835['remove'](_0x5e70fd);});}else _0x529769['on']('change:_saved',()=>{this[_0x76e9('0x1a')](_0x473425,_0x61ba3b);});}}[_0x76e9('0x82')](_0x2aa629){if(!this['_adapter']||!this[_0x76e9('0x124')][_0x76e9('0xc7')])throw new _0x1e95d6('track-changes-adapter-missing-getsuggestion',this);return this[_0x76e9('0x124')][_0x76e9('0xc7')](_0x2aa629);}[_0x76e9('0x143')](_0x3fe05e){const {id:_0x5a6dfb,type:_0x4a1231,subType:_0x200d42,authorId:_0x2125de}=this[_0x76e9('0x62')](_0x3fe05e),_0x5f97b7=this['_suggestions'][_0x76e9('0x121')](_0x5a6dfb)||this[_0x76e9('0x11a')](_0x4a1231,_0x200d42,_0x5a6dfb,_0x2125de,{});switch(this[_0x76e9('0x154')](_0x5f97b7,_0x4a1231,_0x200d42,_0x2125de),this[_0x76e9('0xd0')][_0x76e9('0x121')](_0x5f97b7)){case'notReady':this[_0x76e9('0x82')](_0x5a6dfb)['then'](_0x3a1c73=>{let _0x3ace46=Promise[_0x76e9('0xe5')]();_0x3a1c73[_0x76e9('0x115')]&&(_0x3ace46=this[_0x76e9('0x6e')][_0x76e9('0x27')]({'channelId':this[_0x76e9('0x1')]['config']['get']('collaboration.channelId'),'threadId':_0x5a6dfb})),_0x3ace46[_0x76e9('0xdc')](()=>{this[_0x76e9('0x9d')](_0x3a1c73)['_saved']=!0x0;});}),this[_0x76e9('0xd0')][_0x76e9('0x55')](_0x5f97b7,_0x76e9('0xc6'));break;case _0x76e9('0xe9'):this['_updateSuggestionData'](_0x5a6dfb,{'state':'open'});case _0x76e9('0x52'):this[_0x76e9('0xd0')][_0x76e9('0x55')](_0x5f97b7,_0x76e9('0x4a')),this[_0x76e9('0x2')](_0x76e9('0x15'),_0x5f97b7);break;case _0x76e9('0x4a'):this['fire'](_0x76e9('0x16c'),_0x5f97b7);}return _0x5f97b7['addMarkerName'](_0x3fe05e),_0x5f97b7;}[_0x76e9('0xe7')](_0x3cae34){const _0x36c657=Array['from'](_0x3cae34),_0x43b5da=_0x36c657[_0x76e9('0xae')](_0x193dd7=>'attribute'==_0x193dd7[_0x76e9('0x4d')]);this[_0x76e9('0x5f')](_0x43b5da);const _0x4a84dc=_0x36c657[_0x76e9('0xae')](_0x1338ac=>!_0x1338ac['isMultiRange']&&'attribute'!=_0x1338ac[_0x76e9('0x4d')]),_0xafcba5=this['getSuggestions']({'skipNotAttached':!0x0})[_0x76e9('0xae')](_0x33c9ff=>!_0x33c9ff[_0x76e9('0x8c')]&&_0x76e9('0x11')!=_0x33c9ff[_0x76e9('0x4d')]),_0x2c25f2=_0xafcba5[_0x76e9('0xae')](_0x276e1e=>!_0x3cae34[_0x76e9('0x12a')](_0x276e1e)),_0x4f3fd9=new Map(_0xafcba5[_0x76e9('0x177')](_0x9a7838=>[_0x9a7838,this[_0x76e9('0x53')][_0x76e9('0xb2')](_0x9a7838[_0x76e9('0x4d')],_0x9a7838[_0x76e9('0xf4')],_0x76e9('0x15e'))])),_0x1b23df=new Map(_0xafcba5['map'](_0x379973=>[_0x379973,_0x379973[_0x76e9('0xc9')]()])),_0x1a5f60=new Set(),_0x187164=new Set();for(let _0x3a05c7=0x0;_0x3a05c7<_0x4a84dc[_0x76e9('0x10d')];_0x3a05c7++)_0x564b53(_0x4a84dc[_0x3a05c7],_0x4a84dc,_0x3a05c7+0x1);for(let _0x3a27f1=0x0;_0x3a27f1<_0x4a84dc[_0x76e9('0x10d')];_0x3a27f1++)_0x564b53(_0x4a84dc[_0x3a27f1],_0x2c25f2,0x0);const _0xddc81f=new Set();for(let _0x31e924=0x0;_0x31e924<_0x4a84dc[_0x76e9('0x10d')];_0x31e924++){const _0x4f0898=_0x4a84dc[_0x31e924];!_0x187164[_0x76e9('0x12a')](_0x4f0898)&&_0x4f0898[_0x76e9('0x10b')]&&(_0xddc81f[_0x76e9('0xb6')](_0x4f0898['previous']),_0x4f0898[_0x76e9('0x10b')][_0x76e9('0x13b')]===_0x4f0898&&(_0x4f0898[_0x76e9('0x10b')][_0x76e9('0x13b')]=null),_0x4f0898[_0x76e9('0x10b')]=null),!_0x1a5f60[_0x76e9('0x12a')](_0x4f0898)&&_0x4f0898[_0x76e9('0x13b')]&&(_0xddc81f['add'](_0x4f0898['next']),_0x4f0898[_0x76e9('0x13b')]['previous']===_0x4f0898&&(_0x4f0898['next'][_0x76e9('0x10b')]=null),_0x4f0898[_0x76e9('0x13b')]=null);}function _0x564b53(_0x2a28be,_0x45aa62,_0x1bf3b4){for(let _0x22766e=_0x1bf3b4;_0x22766e<_0x45aa62['length'];_0x22766e++){const _0x23f186=_0x455e55(_0x2a28be,_0x45aa62[_0x22766e]);_0x23f186&&(_0x23f186[0x0][_0x76e9('0x13b')]=_0x23f186[0x1],_0x23f186[0x1]['previous']=_0x23f186[0x0],_0x1a5f60['add'](_0x23f186[0x0]),_0x187164[_0x76e9('0xb6')](_0x23f186[0x1]));}}function _0x455e55(_0x40f2c9,_0x3c905b){if(_0x40f2c9[_0x76e9('0xec')]['id']!==_0x3c905b['author']['id'])return null;const _0x2bd5fa=_0x4f3fd9[_0x76e9('0x121')](_0x40f2c9)(_0x40f2c9,_0x3c905b,_0x1b23df['get'](_0x40f2c9),_0x1b23df[_0x76e9('0x121')](_0x3c905b));if(!_0x2bd5fa)return null;return _0x4f3fd9[_0x76e9('0x121')](_0x3c905b)(_0x40f2c9,_0x3c905b,_0x1b23df[_0x76e9('0x121')](_0x40f2c9),_0x1b23df[_0x76e9('0x121')](_0x3c905b))?_0x2bd5fa[0x1][_0x76e9('0x79')]&&_0x2bd5fa[0x1][_0x76e9('0x79')][_0x76e9('0x10d')]?null:_0x2bd5fa:null;}_0xddc81f[_0x76e9('0x164')]&&this[_0x76e9('0xe7')](_0xddc81f);}[_0x76e9('0x5f')](_0x312945){if(0x0==_0x312945[_0x76e9('0x10d')])return;const _0x1ddae0=this[_0x76e9('0x21')]({'skipNotAttached':!0x0})[_0x76e9('0xae')](_0x54140e=>_0x76e9('0x11')==_0x54140e['type']&&_0x54140e[_0x76e9('0x1c')]),_0x5a1108=[],_0x2622ef=new Map();for(const _0xc43717 of _0x1ddae0){const _0x41a357=_0x124d30(_0xc43717[_0x76e9('0x3a')]);_0x2622ef[_0x76e9('0x12a')](_0x41a357)||(_0x2622ef[_0x76e9('0x55')](_0x41a357,_0x5a1108[_0x76e9('0x10d')]),_0x5a1108[_0x76e9('0x7e')]([]));const _0x23921a=_0x2622ef['get'](_0x41a357);_0x5a1108[_0x23921a][_0x76e9('0x7e')](_0xc43717);}!function(){_0x5a1108[_0x76e9('0xbd')]((_0xc093de,_0x370b25)=>{const _0x1bff99=_0xc093de[0x0][_0x76e9('0x11f')],_0x396728=_0x370b25[0x0][_0x76e9('0x11f')];return _0x1bff99==_0x396728?_0xc093de[0x0][_0x76e9('0x3a')][_0x76e9('0x49')]<_0x370b25[0x0]['attributes'][_0x76e9('0x49')]?-0x1:0x1:_0x1bff99<_0x396728?-0x1:0x1;});for(const _0x3ffdab of _0x5a1108)_0x3ffdab[_0x76e9('0xbd')]((_0x39cea7,_0x524386)=>_0x39cea7['id']<_0x524386['id']?-0x1:0x1);}();for(let _0x333599=0x0;_0x333599<_0x5a1108[_0x76e9('0x10d')];_0x333599++){if(0x0==_0x5a1108[_0x333599][_0x76e9('0x10d')])continue;const _0x291314=[];for(let _0x160d07=_0x333599+0x1;_0x160d07<_0x5a1108[_0x76e9('0x10d')];_0x160d07++)0x0!=_0x5a1108[_0x160d07][_0x76e9('0x10d')]&&_0x4861db(_0x5a1108[_0x333599],_0x5a1108[_0x160d07])&&_0x291314['push'](_0x160d07);for(const _0x4eca9c of _0x291314)_0x5a1108[_0x333599]=_0x5a1108[_0x333599][_0x76e9('0x47')](_0x5a1108[_0x4eca9c]),_0x5a1108[_0x4eca9c]=[];}for(const _0x4147e1 of _0x5a1108)for(let _0x441dff=0x0;_0x441dff<_0x4147e1['length'];_0x441dff++)_0x4147e1[_0x441dff][_0x76e9('0x13b')]=_0x4147e1[_0x441dff+0x1]||null;for(const _0x3721e5 of _0x5a1108)for(let _0x1bdaa7=0x0;_0x1bdaa7<_0x3721e5[_0x76e9('0x10d')];_0x1bdaa7++)_0x3721e5[_0x1bdaa7][_0x76e9('0x10b')]=_0x3721e5[_0x1bdaa7-0x1]||null;function _0x4861db(_0x208494,_0x513d21){if(_0x208494[0x0][_0x76e9('0xec')]!==_0x513d21[0x0][_0x76e9('0xec')])return!0x1;if(!function(_0x226082,_0x5a6c4c){if(!_0x226082[_0x76e9('0x115')]&&!_0x5a6c4c[_0x76e9('0x115')])return!0x0;if(_0x226082['hasComments']&&_0x5a6c4c[_0x76e9('0x115')])return!0x1;if(_0x226082['hasComments']&&_0x5a6c4c['createdAt']<_0x226082[_0x76e9('0x79')][_0x76e9('0x110')][_0x76e9('0x121')](0x0)[_0x76e9('0x11f')])return!0x0;if(_0x5a6c4c['hasComments']&&_0x226082[_0x76e9('0x11f')]<_0x5a6c4c[_0x76e9('0x79')][_0x76e9('0x110')][_0x76e9('0x121')](0x0)[_0x76e9('0x11f')])return!0x0;return!0x1;}(_0x208494[0x0],_0x513d21[0x0]))return!0x1;const _0x340165=_0x503eec(_0x208494[0x0][_0x76e9('0x3a')],_0x76e9('0x49')),_0x4013f6=_0x503eec(_0x513d21[0x0][_0x76e9('0x3a')],'groupId');if(!_0x57a80c(_0x340165,_0x4013f6))return!0x1;return!!_0x208494[_0x76e9('0x16e')](_0x4fcfd0=>_0x513d21[_0x76e9('0x7d')](_0x2e3a75=>_0x4fcfd0['getFirstRange']()['isEqual'](_0x2e3a75[_0x76e9('0xc9')]())))&&_0x513d21[_0x76e9('0x16e')](_0x5b7f10=>_0x208494[_0x76e9('0x7d')](_0x2ee3b7=>_0x5b7f10[_0x76e9('0xc9')]()[_0x76e9('0xcb')](_0x2ee3b7['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x126e74){const _0x3578ca=Array[_0x76e9('0xa8')](_0x126e74),_0x30988f=this[_0x76e9('0x21')]({'skipNotAttached':!0x0}),_0x3b2bff=_0x30988f[_0x76e9('0xae')](_0x51df2c=>!_0x126e74[_0x76e9('0x12a')](_0x51df2c)),_0x5365b0=new Map(_0x3578ca[_0x76e9('0x177')](_0x827906=>[_0x827906,this['_suggestionFactory']['getSuggestionCallback'](_0x827906[_0x76e9('0x4d')],_0x827906['subType'],_0x76e9('0xbf'))])),_0x21ac0f=new Map(_0x30988f[_0x76e9('0x177')](_0x4e80a5=>[_0x4e80a5,_0x4e80a5[_0x76e9('0x123')]()]));for(let _0x45c84b=0x0;_0x45c84b<_0x3578ca[_0x76e9('0x10d')];_0x45c84b++){if(_0x453a6d(this,_0x3578ca[_0x45c84b],_0x3578ca,_0x45c84b+0x1))return!0x0;}for(let _0x89bc94=0x0;_0x89bc94<_0x3578ca[_0x76e9('0x10d')];_0x89bc94++){if(_0x453a6d(this,_0x3578ca[_0x89bc94],_0x3b2bff,0x0))return!0x0;}return!0x1;function _0x453a6d(_0xfbb4b3,_0x553570,_0x41cf17,_0x72380c){for(let _0x21e372=_0x72380c;_0x21e372<_0x41cf17[_0x76e9('0x10d')];_0x21e372++){const _0x5c76d0=_0x41cf17[_0x21e372];if(_0x5c76d0['type']!==_0x553570[_0x76e9('0x4d')]||_0x5c76d0[_0x76e9('0xec')]['id']!==_0x553570['author']['id']||_0x5c76d0[_0x76e9('0xf4')]!==_0x553570[_0x76e9('0xf4')])continue;if(!Vt(_0x553570,_0x5c76d0))continue;if(_0x76e9('0x11')==_0x553570[_0x76e9('0x4d')]&&_0x553570['data']['oldValue']!=_0x5c76d0[_0x76e9('0x8a')][_0x76e9('0x16f')])continue;if(_0x76e9('0x11')==_0x553570[_0x76e9('0x4d')]&&_0xfbb4b3[_0x76e9('0xa2')](_0x553570[_0x76e9('0x8a')][_0x76e9('0x13f')]))continue;if('formatBlock'==_0x553570[_0x76e9('0x4d')]){const _0x2d2ef8=_0xfbb4b3[_0x76e9('0x1')]['model'],_0x9ff9e2=_0x553570[_0x76e9('0x174')]();if(_0x9ff9e2&&(_0x2d2ef8[_0x76e9('0xcf')][_0x76e9('0xc2')](_0x9ff9e2)||_0x2d2ef8[_0x76e9('0xcf')][_0x76e9('0xd2')](_0x9ff9e2)))continue;}const _0x11d967=_0x5365b0[_0x76e9('0x121')](_0x553570),_0x2f5520=_0x21ac0f[_0x76e9('0x121')](_0x553570),_0x300829=_0x21ac0f[_0x76e9('0x121')](_0x5c76d0),_0x414f28=_0x553570[_0x76e9('0x79')]&&_0x553570[_0x76e9('0x79')][_0x76e9('0x10d')],_0x567460=_0x5c76d0[_0x76e9('0x79')]&&_0x5c76d0[_0x76e9('0x79')][_0x76e9('0x10d')];if(!_0x414f28&&_0x11d967(_0x300829,_0x2f5520))return _0xfbb4b3[_0x76e9('0x112')](_0x5c76d0,_0x553570),_0x21ac0f[_0x76e9('0x10c')](_0x553570),!0x0;if(!_0x567460&&_0x11d967(_0x2f5520,_0x300829))return _0xfbb4b3[_0x76e9('0x112')](_0x553570,_0x5c76d0),_0x21ac0f[_0x76e9('0x10c')](_0x5c76d0),!0x0;}return!0x1;}}['_joinSuggestions'](_0x504b06,_0x376a9a){if(_0x504b06[_0x76e9('0x8c')])for(const _0x30491a of _0x376a9a[_0x76e9('0x123')]())_0x504b06['addRange'](_0x30491a);else{const _0x57a30c=_0x376a9a[_0x76e9('0xc9')]()['end'];this[_0x76e9('0x175')](_0x504b06,this[_0x76e9('0x128')][_0x76e9('0xd4')](_0x504b06[_0x76e9('0xc9')]()[_0x76e9('0x97')],_0x57a30c));}_0x376a9a[_0x76e9('0xb8')]();}[_0x76e9('0x3f')](_0x4e37d8,_0x43ceda){const _0x23c7c6=_0x4e37d8[_0x76e9('0xa6')]('format')||_0x4e37d8[_0x76e9('0xa6')](_0x76e9('0x11'))?'FORMATTING':_0x4e37d8[_0x76e9('0x167')]();return _0xa7ebad(this[_0x76e9('0x1')]['locale'],_0x43ceda+'_'+_0x23c7c6+_0x76e9('0x57'));}['_initAriaMarkerChangeAnnouncements'](){const _0x9fe2db=this['editor'];_0xe6d183(this[_0x76e9('0x128')],({left:_0x23460a,entered:_0xdff164})=>{const _0x4ffb2d=[];for(const _0x95f208 of _0x23460a){const {group:_0x3e727f,type:_0x43260a}=this[_0x76e9('0x62')](_0x95f208[_0x76e9('0xcd')]);if(_0x76e9('0x148')===_0x3e727f){_0x4ffb2d[_0x76e9('0x7e')](this['_getMarkerAnnouncementText'](_0x43260a,_0x76e9('0x139')));break;}}for(const _0x37aa1f of _0xdff164){const {group:_0x2fc269,type:_0x4c5ce1}=this['_splitMarkerName'](_0x37aa1f['name']);if(_0x76e9('0x148')===_0x2fc269){_0x4ffb2d[_0x76e9('0x7e')](this[_0x76e9('0x3f')](_0x4c5ce1,_0x76e9('0x14')));break;}}_0x4ffb2d['length']&&_0x9fe2db['ui'][_0x76e9('0x69')][_0x76e9('0x50')](_0x76e9('0x71'),_0x4ffb2d[_0x76e9('0xbf')]('\x20'));});}[_0x76e9('0x10')](_0x15518d){if(null!==this[_0x76e9('0x11e')])return!0x1;const _0x53eb50=this['editor'],_0x390bd7=_0x53eb50['model'][_0x76e9('0x60')][_0x76e9('0x12c')][_0x76e9('0x12e')]();if(0x0==_0x390bd7[_0x76e9('0x10d')])return!0x1;const _0x45dc03=[],_0x4c0f6c=_0x390bd7['filter'](_0x2ded07=>_0x76e9('0x11')==_0x2ded07[_0x76e9('0x4d')]),_0x323ba9=_0x390bd7[_0x76e9('0xae')](_0x55625b=>'insert'==_0x55625b['type']&&_0x76e9('0x9a')!=_0x55625b[_0x76e9('0xcd')]),_0x4bbf95=_0x390bd7[_0x76e9('0xae')](_0x1e10df=>'remove'==_0x1e10df['type']&&_0x76e9('0x9a')!=_0x1e10df[_0x76e9('0xcd')]);for(const _0x501173 of _0x4c0f6c)_0x45dc03['push']({'key':_0x501173[_0x76e9('0x83')],'newValue':_0x501173[_0x76e9('0x122')],'oldValue':_0x501173[_0x76e9('0x15f')],'range':_0x14e0a1(_0x501173[_0x76e9('0x15b')])});for(const _0x25a05d of _0x323ba9){const _0x5a1874=_0x4bbf95['find'](_0x6b9754=>_0x6b9754['position']['isEqual'](_0x25a05d[_0x76e9('0x14e')]));_0x5a1874&&_0x45dc03[_0x76e9('0x7e')]({'key':_0x76e9('0x14f'),'newValue':_0x25a05d['name'],'oldValue':_0x5a1874[_0x76e9('0xcd')],'range':_0x53eb50['model'][_0x76e9('0x1e')](_0x25a05d[_0x76e9('0x14e')][_0x76e9('0x4b')])});}return 0x0!=_0x45dc03['length']&&this[_0x76e9('0x8d')](_0x15518d,_0x45dc03);function _0x14e0a1(_0x470a09){return null==_0x470a09[_0x76e9('0x5a')][_0x76e9('0x23')]&&_0x470a09['end'][_0x76e9('0x161')]==_0x470a09[_0x76e9('0x97')][_0x76e9('0x4b')]?Ut(_0x470a09[_0x76e9('0x97')][_0x76e9('0x4b')],_0x53eb50[_0x76e9('0x168')]):_0x470a09;}}['_processAttributeSuggestions'](_0xb50649){let _0x874965=!0x1;const _0x313e58=this[_0x76e9('0x1')][_0x76e9('0x168')][_0x76e9('0x60')]['differ'][_0x76e9('0x5e')]()[_0x76e9('0xae')](_0x1c4e32=>_0x1c4e32[_0x76e9('0x8a')]['newRange']&&_0x1c4e32[_0x76e9('0xcd')][_0x76e9('0xa6')](_0x76e9('0x2d')));for(const _0x485f58 of _0x313e58){const {subType:_0x36d1fa,id:_0x50f8d6}=this['_splitMarkerName'](_0x485f58[_0x76e9('0xcd')]),_0x47aa10=_0x36d1fa[_0x76e9('0x77')]('|')[0x0];for(const _0x1a20e1 of this[_0x76e9('0x21')]({'skipNotAttached':!0x0}))_0x1a20e1['id']!=_0x50f8d6&&_0x76e9('0x11')==_0x1a20e1[_0x76e9('0x4d')]&&_0x1a20e1[_0x76e9('0x8a')]&&_0x1a20e1['data']['key']==_0x47aa10&&_0x1a20e1[_0x76e9('0xc9')]()[_0x76e9('0x7a')](_0x485f58['data'][_0x76e9('0xc8')])&&(this[_0x76e9('0xd1')](_0x1a20e1,_0x485f58[_0x76e9('0x8a')][_0x76e9('0xc8')],_0xb50649),_0x874965=!0x0);}return _0x874965;}[_0x76e9('0x3c')](_0x425096){if(null!==this['_recordAttributeSuggestionsFromVersion'])return void _0x425096();const _0x1e1378=this[_0x76e9('0x1')];this['_recordAttributeSuggestionsFromVersion']=_0x1e1378[_0x76e9('0x168')][_0x76e9('0x60')][_0x76e9('0xa7')],_0x425096();const _0x236609=new Map();for(const _0x373911 of _0x1e1378[_0x76e9('0x168')]['document'][_0x76e9('0x80')][_0x76e9('0x15d')](this['_recordAttributeSuggestionsFromVersion']))if(['rename',_0x76e9('0xa3'),'removeAttribute','changeAttribute'][_0x76e9('0xd5')](_0x373911['type'])){const _0x4616e1=_0x373911[_0x76e9('0x2b')],_0x389445=_0x236609['get'](_0x4616e1)||[];_0x389445['push'](_0x373911),_0x236609['set'](_0x4616e1,_0x389445);}this[_0x76e9('0x11e')]=null;for(const [_0x5263be,_0x1d2133]of _0x236609){const _0x65f10a=_0x5c5e0d();_0x1e1378[_0x76e9('0x168')][_0x76e9('0xc4')](_0x5263be,_0x21c247=>{const _0x43f66f=[];for(const _0x48c489 of _0x1d2133){let _0x5d5889,_0xf4e1da,_0x49ae1d,_0x23f9da;if(_0x76e9('0x20')==_0x48c489[_0x76e9('0x4d')]){const _0x25bc51=_0x48c489;_0x5d5889=Ut(_0x25bc51[_0x76e9('0x14e')][_0x76e9('0x4b')],_0x1e1378['model']),_0xf4e1da=_0x76e9('0x14f'),_0x49ae1d=_0x25bc51['newName'],_0x23f9da=_0x25bc51[_0x76e9('0x129')];}else{const _0x920f72=_0x48c489,_0x5f2a65=this[_0x76e9('0xa2')](_0x920f72[_0x76e9('0x13f')]),_0x3a093c=this[_0x76e9('0x13e')][_0x76e9('0x12a')](_0x920f72[_0x76e9('0x13f')]);if(!_0x5f2a65&&!_0x3a093c)continue;_0x5d5889=_0x5f2a65?Ut(_0x920f72[_0x76e9('0x15b')][_0x76e9('0x97')][_0x76e9('0x4b')],_0x1e1378[_0x76e9('0x168')]):_0x920f72[_0x76e9('0x15b')],_0xf4e1da=_0x920f72[_0x76e9('0x13f')],_0x49ae1d='removeAttribute'==_0x48c489['type']?void 0x0:_0x920f72[_0x76e9('0xf1')],_0x23f9da=_0x920f72[_0x76e9('0x16f')];}this[_0x76e9('0xe2')](_0x5d5889,_0xf4e1da,_0x23f9da,_0x49ae1d,{'groupId':_0x65f10a}),_0x43f66f[_0x76e9('0x7e')]({'range':_0x5d5889,'key':_0xf4e1da,'newValue':_0x49ae1d,'oldValue':_0x23f9da});}this[_0x76e9('0x8d')](_0x21c247,_0x43f66f);});}}[_0x76e9('0x8d')](_0x5aa0ae,_0x2e0b5a){if(0x0==_0x2e0b5a['length'])return!0x1;let _0x466b0b=!0x1;for(const _0x35c306 of _0x2e0b5a){const _0x287a7e=this[_0x76e9('0x26')](_0x35c306[_0x76e9('0x15b')],_0x76e9('0x11'))[_0x76e9('0xae')](_0xc9f51f=>!_0xc9f51f[_0x76e9('0xe3')]['isNextTo'])['map'](_0x459e69=>_0x459e69[_0x76e9('0x148')]),_0x8d4052=_0x124d30({'newValue':_0x35c306[_0x76e9('0xf1')]});_0x287a7e[_0x76e9('0xae')](_0x45b5cd=>{const [_0x103228,_0x417238]=_0x45b5cd[_0x76e9('0xf4')][_0x76e9('0x77')]('|');return _0x103228==_0x35c306[_0x76e9('0x13f')]&&_0x417238!=_0x8d4052;})['forEach'](_0x9abc41=>{this[_0x76e9('0xd1')](_0x9abc41,_0x35c306[_0x76e9('0x15b')],_0x5aa0ae),_0x466b0b=!0x0;});}return _0x466b0b;}[_0x76e9('0xd1')](_0x6fe7d8,_0x417cf3,_0x4952df){const _0x181797=_0x6fe7d8[_0x76e9('0xc9')]()['getDifference'](_0x417cf3);0x0!==_0x181797[_0x76e9('0x10d')]?0x1!==_0x181797[_0x76e9('0x10d')]?this[_0x76e9('0x5b')](_0x6fe7d8,_0x417cf3[_0x76e9('0x97')],_0x417cf3[_0x76e9('0x5a')]):this[_0x76e9('0x175')](_0x6fe7d8,_0x181797[0x0]):_0x4952df['removeMarker'](_0x6fe7d8['getFirstMarker']());}}class $t{constructor(_0x5f05b7){this[_0x76e9('0x14a')]=_0x5f05b7,this[_0x76e9('0x128')]=_0x5f05b7['model'],this[_0x76e9('0xdf')]=new Map(),this[_0x76e9('0x6c')]=new Map(),this[_0x76e9('0x156')]();}[_0x76e9('0x33')](_0x4ba984,_0xaae8af,_0x39db70,_0x2a5966,_0x86510d,_0x11c6a0){return new _0x8624f0(this[_0x76e9('0x128')],{'type':_0x4ba984,'subType':_0xaae8af,'id':_0x39db70,'author':_0x2a5966,'creator':_0x2a5966,'attributes':_0x86510d,'onAttributesChange':_0x11c6a0,'onAccept':(..._0x54c2a8)=>this[_0x76e9('0xb2')](_0x4ba984,_0xaae8af,'accept')(..._0x54c2a8),'onDiscard':(..._0x3cfbb2)=>this[_0x76e9('0xb2')](_0x4ba984,_0xaae8af,_0x76e9('0x8e'))(..._0x3cfbb2)});}[_0x76e9('0x76')](_0x1c23a3,_0x359e04,_0x306658,_0x283337){const _0x3b41b4=_0x1c23a3+':'+_0x359e04+':'+_0x306658;this[_0x76e9('0xdf')][_0x76e9('0x55')](_0x3b41b4,_0x283337);}[_0x76e9('0xb2')](_0x31f028,_0x2f2c8c,_0x2ed342){const _0xf62ba0=_0x31f028+':'+_0x2f2c8c+':'+_0x2ed342;return this[_0x76e9('0xdf')][_0x76e9('0x121')](_0xf62ba0)||this[_0x76e9('0x6c')][_0x76e9('0x121')](_0x31f028+':'+_0x2ed342);}[_0x76e9('0x156')](){const _0x4b0883=()=>!0x1,_0x3ffa93=_0x15b808=>{_0x15b808[_0x76e9('0xbd')]((_0x4cb38f,_0x1d45a6)=>_0x4cb38f[_0x76e9('0x97')][_0x76e9('0x8b')](_0x1d45a6[_0x76e9('0x97')])?0x1:-0x1),this['_model'][_0x76e9('0x68')](_0x4f0c4c=>{for(const _0x307dfa of _0x15b808){let _0x2b57f4;_0x2b57f4=_0x307dfa['end']['isAtEnd']&&_0x307dfa[_0x76e9('0x5a')][_0x76e9('0x161')]==_0x307dfa[_0x76e9('0x97')][_0x76e9('0x4b')]?_0x4f0c4c[_0x76e9('0xf3')](_0x307dfa[_0x76e9('0x97')][_0x76e9('0x4b')],'on'):_0x4f0c4c[_0x76e9('0xf3')](_0x307dfa),this[_0x76e9('0x128')][_0x76e9('0x13c')](_0x2b57f4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x30305a=(_0x5aaf81,_0x547997)=>{_0x547997&&this[_0x76e9('0x128')][_0x76e9('0x68')](_0x508c69=>{const {commandName:_0x5aed86,commandParams:_0x42288f=[]}=_0x547997,_0x55990b=_0x5aaf81['map'](_0x3898cf=>(Tt(_0x3898cf)&&(_0x3898cf=this[_0x76e9('0x128')]['createRange'](_0x3898cf['end'])),_0x3898cf))[_0x76e9('0xae')](_0x49d467=>_0x76e9('0x117')!==_0x49d467[_0x76e9('0x171')][_0x76e9('0x16a')]);if(_0x55990b['length']<0x1)return;const _0x4134e8=Array[_0x76e9('0xa8')](this[_0x76e9('0x128')][_0x76e9('0x60')][_0x76e9('0x2a')][_0x76e9('0x123')]())[_0x76e9('0x177')](_0x54bba6=>_0x3d60eb[_0x76e9('0x141')](_0x54bba6));_0x508c69[_0x76e9('0x9b')](_0x55990b);for(const _0x1aca1a of this['_editor']['commands'][_0x76e9('0x12d')]())_0x1aca1a[_0x76e9('0x16')]();_0x42288f[_0x76e9('0x7e')]({'forceDefaultExecution':!0x0}),this[_0x76e9('0x14a')][_0x76e9('0x45')](_0x5aed86,..._0x42288f);const _0x52dcb1=_0x4134e8[_0x76e9('0xae')](_0x523cb3=>_0x76e9('0x117')!=_0x523cb3['root']['rootName']);_0x52dcb1[_0x76e9('0x10d')]>0x0&&_0x508c69[_0x76e9('0x9b')](_0x52dcb1);for(const _0x205e51 of _0x4134e8)_0x205e51[_0x76e9('0x78')]();});},_0x436691=(_0x357b1b,_0x5721cb)=>0x1==_0x357b1b['length']&&0x1==_0x5721cb[_0x76e9('0x10d')]&&_0x357b1b[0x0][_0x76e9('0x5a')]['isEqual'](_0x5721cb[0x0][_0x76e9('0x97')]),_0x1c777f=(_0x2e38d9,_0x49e2b9,_0x574fda,_0x77b3da)=>Ot(_0x2e38d9,_0x49e2b9,_0x574fda,_0x77b3da,this[_0x76e9('0x128')])?[_0x2e38d9,_0x49e2b9]:Ot(_0x49e2b9,_0x2e38d9,_0x77b3da,_0x574fda,this[_0x76e9('0x128')])?[_0x49e2b9,_0x2e38d9]:null;this[_0x76e9('0x6c')][_0x76e9('0x55')]('insertion:accept',_0x4b0883),this[_0x76e9('0x6c')]['set'](_0x76e9('0x144'),_0x3ffa93),this['_defaultCallbacks'][_0x76e9('0x55')]('insertion:join',_0x436691),this[_0x76e9('0x6c')][_0x76e9('0x55')]('insertion:chain',_0x1c777f),this[_0x76e9('0x6c')][_0x76e9('0x55')](_0x76e9('0x19'),_0x3ffa93),this[_0x76e9('0x6c')]['set'](_0x76e9('0xb1'),_0x4b0883),this[_0x76e9('0x6c')][_0x76e9('0x55')](_0x76e9('0xfa'),_0x436691),this[_0x76e9('0x6c')]['set'](_0x76e9('0x96'),_0x1c777f),this[_0x76e9('0x6c')]['set'](_0x76e9('0x11d'),_0x30305a),this[_0x76e9('0x6c')][_0x76e9('0x55')](_0x76e9('0x12f'),_0x4b0883),this[_0x76e9('0x6c')]['set'](_0x76e9('0xfc'),_0x436691),this[_0x76e9('0x6c')][_0x76e9('0x55')]('formatInline:chain',_0x4b0883),this[_0x76e9('0x6c')][_0x76e9('0x55')](_0x76e9('0x7c'),_0x30305a),this[_0x76e9('0x6c')][_0x76e9('0x55')]('formatBlock:discard',_0x4b0883),this[_0x76e9('0x6c')][_0x76e9('0x55')](_0x76e9('0xab'),_0x436691),this[_0x76e9('0x6c')][_0x76e9('0x55')](_0x76e9('0x7'),_0x4b0883),this[_0x76e9('0x6c')][_0x76e9('0x55')](_0x76e9('0x65'),_0x4b0883),this['_defaultCallbacks'][_0x76e9('0x55')](_0x76e9('0x89'),(_0x352102,_0x4bdf26)=>{if(!_0x4bdf26)return;const _0x2f26eb=this['_editor']['plugins'][_0x76e9('0x121')](p);this['_model'][_0x76e9('0x68')](_0x2c3345=>{if(_0x76e9('0x14f')==_0x4bdf26['key'])for(const _0x474082 of _0x352102){const _0x4ab92c=_0x474082[_0x76e9('0x97')]['nodeAfter'],_0x34ecc0=_0x4bdf26[_0x76e9('0x16f')];_0x2c3345[_0x76e9('0x20')](_0x4ab92c,_0x34ecc0);}else{if(_0x2f26eb[_0x76e9('0xa2')](_0x4bdf26['key']))for(const _0x5c9252 of _0x352102)void 0x0!==_0x4bdf26['oldValue']?_0x2c3345[_0x76e9('0xe0')](_0x4bdf26['key'],_0x4bdf26[_0x76e9('0x16f')],_0x5c9252[_0x76e9('0x97')][_0x76e9('0x4b')]):_0x2c3345[_0x76e9('0x92')](_0x4bdf26[_0x76e9('0x13f')],_0x5c9252['start'][_0x76e9('0x4b')]);else for(const _0x12b0c6 of _0x352102)_0x4bdf26[_0x76e9('0x16f')]?_0x2c3345['setAttribute'](_0x4bdf26[_0x76e9('0x13f')],_0x4bdf26[_0x76e9('0x16f')],_0x12b0c6):_0x2c3345['removeAttribute'](_0x4bdf26[_0x76e9('0x13f')],_0x12b0c6);}});}),this['_defaultCallbacks'][_0x76e9('0x55')](_0x76e9('0x16d'),_0x436691);}}function Bt(_0x291b33,_0x53c83b,_0x36a922){for(const _0x1495f7 of _0x53c83b[_0x76e9('0x161')][_0x76e9('0x114')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1495f7[_0x76e9('0x171')]==_0x1495f7)return!0x1;if(!_0x36a922[_0x76e9('0xb7')](_0x1495f7))return!0x1;if(_0x291b33['isObject'](_0x1495f7)||_0x291b33[_0x76e9('0xd2')](_0x1495f7))return!0x0;}return!0x1;}function Tt(_0x44ea2e){return _0x44ea2e[_0x76e9('0x5a')][_0x76e9('0x161')]==_0x44ea2e[_0x76e9('0x97')][_0x76e9('0x4b')]&&_0x44ea2e[_0x76e9('0x5a')][_0x76e9('0x162')];}function xt(_0x920d21,_0x581f55,_0x5a8781,_0x48497f){const _0x3680cd=_0x657175=>!_0x657175['item']['is']('$textProxy')&&!_0x48497f[_0x76e9('0xc2')](_0x657175[_0x76e9('0x0')]),_0x32266c=_0x920d21['start'][_0x76e9('0xe8')](_0x3680cd),_0x23d970=_0x920d21[_0x76e9('0x5a')][_0x76e9('0xe8')](_0x3680cd,{'direction':_0x76e9('0x3e')});return(!_0x920d21[_0x76e9('0x97')]['isEqual'](_0x32266c)||!_0x920d21['end'][_0x76e9('0xcb')](_0x23d970))&&(_0x32266c[_0x76e9('0x8b')](_0x23d970)?_0x5a8781[_0x76e9('0x153')](_0x581f55,{'range':_0x5a8781[_0x76e9('0xd4')](_0x32266c,_0x23d970)}):_0x5a8781['removeMarker'](_0x581f55),!0x0);}function Et(_0x46f32a){return _0x124d30(_0x46f32a);}function Rt(_0x4a47d2){const _0x3ad5b2=_0x4a47d2[_0x76e9('0x97')][_0x76e9('0x4b')];return _0x3ad5b2&&_0x3ad5b2['is'](_0x76e9('0x106'));}function Ut(_0x56b1cc,_0x2ddd49){const _0x489c00=_0x2ddd49[_0x76e9('0xcf')]['isObject'](_0x56b1cc)||_0x2ddd49[_0x76e9('0xcf')]['isSelectable'](_0x56b1cc);return _0x2ddd49['createRange'](_0x2ddd49[_0x76e9('0x2f')](_0x56b1cc,_0x76e9('0x151')),_0x489c00?_0x2ddd49[_0x76e9('0xf')](_0x56b1cc):_0x2ddd49[_0x76e9('0x2f')](_0x56b1cc,_0x76e9('0x5a')));}function Ot(_0x4bf29e,_0x4fc686,_0x2a15dc,_0x29b4d1,_0x4a24d6){if(!Vt(_0x4bf29e,_0x4fc686))return!0x1;if(_0x2a15dc[_0x76e9('0x5a')]['isEqual'](_0x29b4d1[_0x76e9('0x97')]))return!0x0;if(_0x4bf29e[_0x76e9('0x4d')]!=_0x4fc686[_0x76e9('0x4d')])return!0x1;if(!_0x2a15dc[_0x76e9('0x5a')][_0x76e9('0x25')](_0x29b4d1[_0x76e9('0x97')]))return!0x1;const _0xbad20b=_0x4a24d6[_0x76e9('0xd4')](_0x2a15dc[_0x76e9('0x5a')],_0x29b4d1[_0x76e9('0x97')])[_0x76e9('0x101')]();for(const _0x4f16b3 of _0xbad20b)if([_0x76e9('0xc1'),'elementEnd'][_0x76e9('0xd5')](_0x4f16b3[_0x76e9('0x4d')])&&_0x4a24d6[_0x76e9('0xcf')][_0x76e9('0xd2')](_0x4f16b3[_0x76e9('0x0')]))return!0x1;return!0x0;}function Vt(_0x27c599,_0x4da423){return!(!_0x27c599['_isDataLoaded']||!_0x4da423[_0x76e9('0x1c')])&&_0x57a80c(_0x27c599['attributes'],_0x4da423[_0x76e9('0x3a')]);}function Gt(_0x1f29ad,_0x4968e5){const _0x1eacbc=Ft(_0x1f29ad[_0x76e9('0x3a')]),_0x5dd9b5=Ft(_0x4968e5);if(!_0x1f29ad[_0x76e9('0x1c')])return!0x1;for(const _0x172aca of Object['keys'](_0x5dd9b5))if(!_0x57a80c(_0x1eacbc[_0x172aca],_0x5dd9b5[_0x172aca]))return!0x1;return!0x0;}function Ft(_0x30124c){const _0xfd238a=Object[_0x76e9('0x39')]({},_0x30124c);return delete _0xfd238a[_0x76e9('0xaa')],delete _0xfd238a[_0x76e9('0xbe')],_0xfd238a;}function Pt(_0x5da14b){return _0x76e9('0x11')==_0x5da14b[_0x76e9('0x4d')]?_0x5da14b[_0x76e9('0xf4')][_0x76e9('0x77')]('|')[0x0]:null;}
|