@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240124.0 → 0.0.0-nightly-20240125.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x339a=['open','end','markerName','map','add','announce','never','isBlock','formatInline:discard','_registerBlockAttribute','_trackFormatChanges','removeMarker','plugins','acceptSuggestion','markerReady','unbindElementFromMarkerName','_adapter','activeMarkers','commands','toJSON','newRange','formatInline:accept','marker-count','elementStart','_joinWithAdjacentSuggestions','writer','addCommentThread','createRangeIn','getItems','size','rootName','_model','_registerDefaultCallbacks','_suggestionFactory','_getAttributeKey','getCustomProperty','deletion:accept','_setSuggestionRange','newValue','pop','track-changes-suggestion-not-found','isBefore','ck-suggestion-marker-formatInline','markInlineFormat','subType','getNearestSelectionRange','_isBlockAttribute','parent','containsItem','ready','differ','position','getRanges','formatBlock','isObject','formatBlock:discard','adapter','meta','isMultiRange','registerPostFixer','always','moveTargetPosition','insertion:chain','hasComments','_blockAttributeKeys','_getMarkerAnnouncementText','track-changes-enable-command-twice','default','discardAllSuggestions','clone','_refreshSuggestionsChain','_isForcedDefaultExecutionBlock','trackChanges','getShiftedBy','addMarker:suggestion:attribute','every','upcast','deletion:discard','ck-suggestion-marker-formatBlock','stopListening','get','CommentsRepository','detach','fire','removeMarkers','TrackChangesEditing','isAfter','mapper','markMultiRangeBlockFormat','PendingActions','_getExternalAuthor','_reduceExistingSuggestions','insertion','includes','getMarkers','suggestionUnloaded','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.','ck-suggestion-marker--active','locale','deletion:chain','markBlockFormat','$graveyard','containsRange','_isRegisteredAttribute','key','config','removeMarker:suggestion:formatBlock','ck-suggestion-marker-','hasCommentThread','dataToMarker','_recordAttributeSuggestions','addSuggestion','elementToElement','isLimit','formatBlock:accept','attribute:accept','getCommentThread','ck-suggestion-marker','_checkSuggestionCorrectness','suggestion:attribute:','isLocal','isEqual','forward','_editor','insertContent','backward','createElement','createSelection','root','skipNestingCheck','$marker','track-changes-user-not-found','removeMarker:suggestion:attribute','registerCustomCallback','getAllAdjacentSuggestions','_inlineAttributeKeys','Users','track-changes-adapter-missing-getsuggestion','containsRangeInObject','tablePasteChainId','push','_splitMarkerName','enableCommand','_cutOutSuggestionMarker','attribute:discard','_suggestions','howMany','updateSuggestion','isUndo','move','_addSuggestionMarker','_getSuggestionData','low','_enableDefaultAttributesIntegration','PENDING_ACTION_SUGGESTION','documentSelection','from','getContainedElement','showSuggestionHighlights','consumable','_rangeIsInLocalUserInsertion','execute','nodeAfter','_defaultCallbacks','commandName','oldValue','oldRange','deletion:join','isOwn','document','model','_customCallbacks','isIntersectingWithRange','getIntersection','insertion:','track-changes-command-not-found','$text','clear','markers','FORMATTING','schema','containsPosition','formatInline:join','resolve','delete','isExternal','getUser','creator','range','change:data','$elementName','splice','error-saving-suggestion-data-suggestion-discarded','getLastMatchingPosition','formatGroupId','_saved','trackChanges.trackFormatChanges','concat','element','getMultiRangeId','selection','deletion:','getSuggestionCallback','external:','formatInline:','substring','isAtStart','change','ariaLiveAnnouncer','stop','highest','collaboration.channelId','return','forceDefaultExecution','_getAuthorFromId','addMarker','listenTo','editing','isAtEnd','formatBlock:','attributeKey','createRange','_recordAttributeChanges','getAttribute','next','startsWith','type','_joinSuggestions','isIntersecting','setTo','dataDowncast','getFirstRange','suggestionChanged','_mergeNestedSuggestions','getChangedMarkers','conversion','addRange','fromCharCode','getDifference','attribute','addHighlight','addMarkerName','_initAriaMarkerChangeAnnouncements','authoredAt','isInContent','createPositionBefore','formatBlock:join','_afterChanges','_findSuggestions','before','_updateSuggestionData','catch','accept','getFirstMarker','accepted','has','_addThreadToSuggestion','isArray','toViewElement','createPositionAfter','editor','_handleNewSuggestionMarker','_createSuggestion','normal','addComment','fetchCommentThread','discardSelectedSuggestions','fromRange','toUpperCase','multi','item','$textProxy','format','markDeletion','_breakSuggestionMarker','start','chain','consume','createdAt','_refreshAttributeSuggestionsChain','suggestion','lowest','previous','_suggestionState','attribute:join','change:activeMarkers','addUser','markAttributeChange','pluginName','for','getWalker','attributeNewValue','markerNameToElements','join','enqueueChange','rejected','values','getSuggestion','filter','discardSuggestion','set','name','markMultiRangeInsertion','containerElement','groupId','length','getRange','enableReadOnlyMode','comments','define','acceptSelectedSuggestions','_setSuggestionData','suggestion:','_commentsRepository','notReady','buildSuggestion','setSelection','dataReady','getAncestors','formatInline:chain','updateMarker','reconvertMarker','value','rethrowUnexpectedError','multipleBlocks','deletion','createPositionAt','setAttribute','keys','track-changes-suggestion-data-mismatch','data-suggestion','trackChangesCommand','author','remove','originalSuggestionId','editingDowncast','init','attributeOldValue','isNextTo','after','addSuggestionData','change:_saved','_isDataLoaded','split','isInsideObject','insertion:discard','markerToHighlight','addClass','formatInline','removeClass','markMultiRangeDeletion','some','then','_processAttributeChanges','find','@external','insert','forEach','commentThread','_registerInlineAttribute','suggestionLoaded','_enabledCommands','sort','isCollapsed','options','attributes','removed','discard','high','removeAttribute','_removeSuggestion','getSuggestions','_onDiscard','batch','formatBlock:chain','_reduceSuggestionAttributeRange','data','trackChanges.mergeNestedSuggestions','_descriptionFactory','nodeBefore','getChanges','warn','addMarker:suggestion'];(function(_0x306401,_0x339a2d){const _0x30241a=function(_0x46df72){while(--_0x46df72){_0x306401['push'](_0x306401['shift']());}};_0x30241a(++_0x339a2d);}(_0x339a,0x12f));const _0x3024=function(_0x306401,_0x339a2d){_0x306401=_0x306401-0x0;let _0x30241a=_0x339a[_0x306401];return _0x30241a;};import{Plugin as _0x7dd224,PendingActions as _0x12b474}from'ckeditor5/src/core.js';import{LiveRange as _0x205e8b}from'ckeditor5/src/engine.js';import{CKEditorError as _0x255fda,uid as _0x25b08a,priorities as _0x277c40,logWarning as _0x59dd10}from'ckeditor5/src/utils.js';import{toWidget as _0x582c0d}from'ckeditor5/src/widget.js';import{Users as _0x2b5144,hashObject as _0x4a1e6a,surroundingMarkersDetector as _0x471275}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x465380 from'./commands/trackchangescommand.js';import _0x5a1e43 from'./commands/acceptsuggestioncommand.js';import _0xc4b4ed from'./commands/discardsuggestioncommand.js';import _0x5918cc from'./commands/executeonallsuggestionscommand.js';import _0x58fc2a from'./commands/executeonselectedsuggestionscommand.js';import _0x1f2ce3 from'./suggestion.js';import _0x1618ee from'./suggestiondescriptionfactory.js';import _0x4a63f4 from'./integrations/aiassistant.js';import _0x29c374 from'./integrations/alignment.js';import _0x8abd13 from'./integrations/basicstyles.js';import _0x4ce919 from'./integrations/blockquote.js';import _0x20492e from'./integrations/casechange.js';import _0x48e0ac from'./integrations/ckbox.js';import _0x42a55a from'./integrations/codeblock.js';import _0xd1271c from'./integrations/comments.js';import _0x4d87b6 from'./integrations/deletecommand.js';import _0x4f69a6 from'./integrations/list.js';import _0x27e9d0 from'./integrations/listproperties.js';import _0x70c667 from'./integrations/entercommand.js';import _0x42805d from'./integrations/findandreplace.js';import _0x59090a from'./integrations/font.js';import _0x41299d from'./integrations/formatpainter.js';import _0x41e347 from'./integrations/heading.js';import _0x542e5a from'./integrations/highlight.js';import _0x413bc7 from'./integrations/horizontalline.js';import _0x5d0349 from'./integrations/htmlembed.js';import _0x4263c1 from'./integrations/image.js';import _0x30e568 from'./integrations/imagereplace.js';import _0x36b564 from'./integrations/imagestyle.js';import _0x12c210 from'./integrations/importword.js';import _0x31f901 from'./integrations/indent.js';import _0x4cad25 from'./integrations/inputcommand.js';import _0x58a30f from'./integrations/link.js';import _0x296531 from'./integrations/legacylist.js';import _0x1ddeba from'./integrations/legacylistproperties.js';import _0x49a662 from'./integrations/mediaembed.js';import _0x399ac2 from'./integrations/mention.js';import _0x1cc671 from'./integrations/pagebreak.js';import _0x2ec65a from'./integrations/paragraph.js';import _0x1dadb1 from'./integrations/removeformat.js';import _0x5f11c0 from'./integrations/restrictededitingmode.js';import _0x1b4730 from'./integrations/shiftentercommand.js';import _0x1b27eb from'./integrations/standardeditingmode.js';import _0x172ae1 from'./integrations/style.js';import _0x1076dd from'./integrations/table.js';import _0x3acb78 from'./integrations/tablemergesplit.js';import _0x3bf472 from'./integrations/tableheadings.js';import _0x50d5f6 from'./integrations/tableclipboard.js';import _0x2cab1b from'./integrations/tablecolumnresize.js';import _0x1818fc from'./integrations/template.js';import _0x1b9997 from'./integrations/tableofcontents.js';import _0x5df3c7 from'./integrations/title.js';import _0x5cd449 from'./integrations/undo.js';import _0x49bb0b from'./integrations/tablecaption.js';import _0x2eb079 from'./integrations/tableproperties.js';import{getTranslation as _0x44f115}from'./utils/common-translations.js';import{isEqual as _0x2963a5,omit as _0x5a017a}from'lodash-es';export const renameAttributeKey=_0x3024('0x10e');export default class p extends _0x7dd224{static get['requires'](){return['CommentsRepository',_0x2b5144,_0x12b474,_0x4a63f4,_0x29c374,_0x8abd13,_0x4ce919,_0x48e0ac,_0x20492e,_0x42a55a,_0xd1271c,_0x4d87b6,_0x70c667,_0x42805d,_0x59090a,_0x41299d,_0x41e347,_0x542e5a,_0x413bc7,_0x5d0349,_0x4263c1,_0x36b564,_0x30e568,_0x12c210,_0x31f901,_0x4cad25,_0x296531,_0x1ddeba,_0x58a30f,_0x4f69a6,_0x27e9d0,_0x49a662,_0x399ac2,_0x1cc671,_0x2ec65a,_0x1dadb1,_0x5f11c0,_0x1b4730,_0x1b27eb,_0x172ae1,_0x1076dd,_0x3acb78,_0x3bf472,_0x49bb0b,_0x50d5f6,_0x2cab1b,_0x1b9997,_0x2eb079,_0x1818fc,_0x5df3c7,_0x5cd449];}static get[_0x3024('0x170')](){return _0x3024('0xa5');}constructor(_0x51a5f8){function _0x3f9eac(_0x4b360e){return _0x4b360e[_0x3024('0x53')](_0xcf2532=>String[_0x3024('0x13d')](_0xcf2532))[_0x3024('0x175')]('');}super(_0x51a5f8),this[_0x3024('0xbe')]=!0x1,this[_0x3024('0x17c')](_0x3024('0x61'),[]),this['on'](_0x3024('0x16d'),(_0x41e4c1,_0x3a077f,_0x341c3f,_0x2d605b)=>{this[_0x3024('0x6f')][_0x3024('0x11f')](()=>{for(const _0x56e1c4 of[..._0x2d605b,..._0x341c3f])this[_0x3024('0x6f')][_0x3024('0x102')][_0x3024('0x14f')](_0x56e1c4)&&_0x51a5f8[_0x3024('0x129')][_0x3024('0x12')](_0x56e1c4);});}),this[_0x3024('0x4b')]=new _0x1618ee(this[_0x3024('0x154')]['model']['schema'],this[_0x3024('0x154')][_0x3024('0xb2')]),this['_adapter']=null,this[_0x3024('0x71')]=new Bt(this[_0x3024('0x154')]),this[_0x3024('0xe1')]=new Map(),this['_commentsRepository']=_0x51a5f8[_0x3024('0x5c')][_0x3024('0xa0')](_0x3024('0xa1')),this[_0x3024('0x3a')]=new Set(),this[_0x3024('0x6f')]=this[_0x3024('0x154')][_0x3024('0xfa')],this[_0x3024('0x16b')]=new WeakMap(),this[_0x3024('0x97')]=!0x1,this['_blockAttributeKeys']=new Set(['$elementName']),this[_0x3024('0xd7')]=new Set(),_0x51a5f8[_0x3024('0xb9')][_0x3024('0x6')](_0x3024('0x114'),_0x3024('0x93')),this['_trackFormatChanges']=_0x51a5f8[_0x3024('0xb9')][_0x3024('0xa0')](_0x3024('0x114')),_0x51a5f8[_0x3024('0xb9')][_0x3024('0x6')](_0x3024('0x4a'),!0x0),this[_0x3024('0x139')]=_0x51a5f8['config'][_0x3024('0xa0')]('trackChanges.mergeNestedSuggestions'),this[_0x3024('0x1c')]=new _0x465380(_0x51a5f8,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3f9eac([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3f9eac([0x34,0x30,0x34,0x38,0x30,0x32,0x34,0x38]);}[_0x3024('0x21')](){const _0x15d3e4=this['editor'],_0x56e65d=(_0x113e53,_0x41aa57)=>{if('attribute'!=_0x113e53)return _0x3024('0xbb')+_0x113e53;const _0x28726b=_0x41aa57['split']('|')[0x0];return this[_0x3024('0x7e')](_0x28726b)?_0x3024('0x9e'):_0x3024('0x7a');};_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')]('editingDowncast')['markerToHighlight']({'model':_0x3024('0x168'),'view':_0x237706=>{const {id:_0x455be6,type:_0x218b88,subType:_0x343c1f}=this[_0x3024('0xdd')](_0x237706[_0x3024('0x52')]),_0x2e7cfa=[_0x3024('0xc5'),_0x56e65d(_0x218b88,_0x343c1f)];let _0x546628=0xbb8;return this[_0x3024('0x61')][_0x3024('0xad')](_0x237706[_0x3024('0x52')])&&(_0x2e7cfa['push'](_0x3024('0xb1')),_0x546628=0xbc2),'deletion'==_0x218b88&&(_0x546628+=0x5),{'classes':_0x2e7cfa,'attributes':{'data-suggestion':_0x455be6},'priority':_0x546628};}}),_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')](_0x3024('0x136'))['add'](_0x3c5c92=>{_0x3c5c92['on'](_0x3024('0x4f'),(_0x1087ee,_0x345788,_0x543429)=>{if(!_0x543429['options']['showSuggestionHighlights'])return;const _0x4b8b73=_0x345788['item'];if(!_0x4b8b73)return;const _0x5c0007=_0x543429[_0x3024('0xa7')][_0x3024('0x152')](_0x4b8b73);_0x15d3e4[_0x3024('0xfa')][_0x3024('0x104')][_0x3024('0x86')](_0x4b8b73)&&_0x5c0007&&!_0x5c0007[_0x3024('0x73')]('widget')&&_0x5c0007['is'](_0x3024('0x0'))&&_0x582c0d(_0x5c0007,_0x543429[_0x3024('0x69')]);},{'priority':'high'});}),_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')](_0x3024('0x136'))[_0x3024('0x2b')]({'model':_0x3024('0x168'),'view':(_0x16040e,_0x42e9a3)=>{if(!_0x42e9a3[_0x3024('0x3d')][_0x3024('0xee')])return null;const {type:_0x19d25b,subType:_0x178546}=this[_0x3024('0xdd')](_0x16040e[_0x3024('0x52')]);return{'classes':[_0x3024('0xc5'),_0x56e65d(_0x19d25b,_0x178546)],'priority':0xbb8};}});const _0x56e49c=({showActiveMarkers:_0x1833ea=!0x0,isAttributeSuggestion:_0x4c6f52=!0x1}={})=>(_0x2bd7dc,_0x2dc10a,_0x1ae290)=>{if(!_0x2dc10a[_0x3024('0x15e')])return;const {id:_0xe972a}=this['_splitMarkerName'](_0x2dc10a[_0x3024('0x52')]);if(_0x4c6f52){const _0x2e51ad=this[_0x3024('0xe1')]['get'](_0xe972a),_0x51992b=this['_getAttributeKey'](_0x2e51ad);if(!this[_0x3024('0x7e')](_0x51992b))return;}if(_0x2dc10a[_0x3024('0x15e')]['is'](_0x3024('0x118')))return void _0x1ae290[_0x3024('0xef')][_0x3024('0x165')](_0x2dc10a[_0x3024('0x15e')],_0x2bd7dc[_0x3024('0x17d')]);const _0x47cc99=_0x1ae290[_0x3024('0xa7')]['toViewElement'](_0x2dc10a[_0x3024('0x15e')]);if(_0x2dc10a[_0x3024('0x15e')]['is'](_0x3024('0x116'))&&_0x15d3e4[_0x3024('0xfa')][_0x3024('0x104')]['isBlock'](_0x2dc10a[_0x3024('0x15e')])&&!_0x47cc99[_0x3024('0x73')]('addHighlight')){_0x1ae290['writer'][_0x3024('0x2c')]([_0x3024('0xc5'),_0x3024('0x9e')],_0x47cc99),_0x1ae290[_0x3024('0x69')][_0x3024('0x18')]('data-suggestion',_0xe972a,_0x47cc99),_0x1ae290[_0x3024('0xa7')]['bindElementToMarker'](_0x47cc99,_0x2dc10a['markerName']),_0x1833ea&&(this[_0x3024('0x61')]['includes'](_0x2dc10a['markerName'])?_0x1ae290[_0x3024('0x69')][_0x3024('0x2c')](_0x3024('0xb1'),_0x47cc99):_0x1ae290[_0x3024('0x69')][_0x3024('0x2e')](_0x3024('0xb1'),_0x47cc99));for(const _0x20dd67 of _0x15d3e4['model'][_0x3024('0x6b')](_0x2dc10a[_0x3024('0x15e')])[_0x3024('0x6c')]())_0x1ae290['consumable'][_0x3024('0x165')](_0x20dd67,_0x2bd7dc[_0x3024('0x17d')]);_0x1ae290[_0x3024('0xef')][_0x3024('0x165')](_0x2dc10a[_0x3024('0x15e')],_0x2bd7dc[_0x3024('0x17d')]);}};_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')](_0x3024('0x136'))[_0x3024('0x54')](_0x5ed49f=>{_0x5ed49f['on']('addMarker:suggestion:formatBlock',(_0x2fe2c3,_0x5a6ac4,_0x59ebc6)=>{_0x59ebc6[_0x3024('0x3d')][_0x3024('0xee')]&&_0x56e49c({'showActiveMarkers':!0x1})(_0x2fe2c3,_0x5a6ac4,_0x59ebc6);},{'priority':'highest'});}),_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')](_0x3024('0x136'))['add'](_0x11b942=>{_0x11b942['on'](_0x3024('0x9a'),(_0x2c1e30,_0x26fef1,_0x5e7138)=>{_0x5e7138[_0x3024('0x3d')][_0x3024('0xee')]&&_0x56e49c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2c1e30,_0x26fef1,_0x5e7138);},{'priority':_0x3024('0x122')});}),_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')]('dataDowncast')['markerToData']({'model':_0x3024('0x168'),'view':(_0x17fb16,_0x2be510)=>_0x2be510[_0x3024('0x3d')][_0x3024('0xee')]?null:{'group':_0x3024('0x168'),'name':_0x17fb16['substr'](0xb)}}),_0x15d3e4['conversion'][_0x3024('0x171')](_0x3024('0x9c'))[_0x3024('0xc0')]({'view':{'name':_0x3024('0x168'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4e3520,{writer:_0x2f3c91})=>{let _0x2caf24='suggestion:'+_0x4e3520['getAttribute']('suggestion-type')+':'+_0x4e3520['getAttribute']('id');return _0x4e3520[_0x3024('0x12f')](_0x3024('0x66'))&&(_0x2caf24+=':'+_0x4e3520['getAttribute'](_0x3024('0x66'))),_0x2f3c91[_0x3024('0xce')](_0x3024('0xd2'),{'data-name':_0x2caf24});}}),_0x15d3e4[_0x3024('0x13b')]['for'](_0x3024('0x9c'))[_0x3024('0xbd')]({'view':'suggestion'}),_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')](_0x3024('0x20'))[_0x3024('0x54')](_0x28b556=>{_0x28b556['on']('addMarker:suggestion:formatBlock',_0x56e49c(),{'priority':'high'});}),_0x15d3e4['conversion'][_0x3024('0x171')]('editingDowncast')[_0x3024('0x54')](_0x9e3f72=>{_0x9e3f72['on'](_0x3024('0x9a'),_0x56e49c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x15d3e4['conversion'][_0x3024('0x171')](_0x3024('0x20'))['add'](_0x12a9af=>{_0x12a9af['on'](_0x3024('0xba'),(_0x2bb387,_0x337ed8,_0x1e55b7)=>{const _0x40990e=_0x1e55b7[_0x3024('0xa7')][_0x3024('0x174')](_0x337ed8['markerName']);if(_0x40990e)for(const _0x512b52 of _0x40990e)_0x512b52[_0x3024('0x73')]('addHighlight')||(_0x1e55b7[_0x3024('0x69')][_0x3024('0x2e')]([_0x3024('0xc5'),'ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x512b52),_0x1e55b7[_0x3024('0x69')][_0x3024('0x42')](_0x3024('0x1b'),_0x512b52),_0x1e55b7[_0x3024('0xa7')][_0x3024('0x5f')](_0x512b52,_0x337ed8[_0x3024('0x52')]));},{'priority':_0x3024('0x41')});}),_0x15d3e4['conversion'][_0x3024('0x171')](_0x3024('0x20'))[_0x3024('0x54')](_0x1c60e0=>{_0x1c60e0['on'](_0x3024('0xd4'),(_0x5d0bb6,_0x71669e,_0x1110ab)=>{const _0x450722=_0x1110ab[_0x3024('0xa7')][_0x3024('0x174')](_0x71669e['markerName']);if(!_0x450722)return;const {id:_0x1c7dcf}=this['_splitMarkerName'](_0x71669e[_0x3024('0x52')]),_0x54f44c=this['_suggestions'][_0x3024('0xa0')](_0x1c7dcf),_0x5cc2a9=this['_getAttributeKey'](_0x54f44c);if(this[_0x3024('0x7e')](_0x5cc2a9))for(const _0x2a6434 of _0x450722)_0x2a6434[_0x3024('0x73')](_0x3024('0x140'))||(_0x1110ab[_0x3024('0x69')][_0x3024('0x2e')](['ck-suggestion-marker',_0x3024('0x9e'),_0x3024('0xb1')],_0x2a6434),_0x1110ab[_0x3024('0x69')][_0x3024('0x42')]('data-suggestion',_0x2a6434),_0x1110ab['mapper']['unbindElementFromMarkerName'](_0x2a6434,_0x71669e[_0x3024('0x52')]));},{'priority':_0x3024('0x41')});}),_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')]['registerPostFixer'](_0x2c318e=>{let _0x51589f=!0x1;const _0xbb5d9f=Array[_0x3024('0xec')](_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')]['differ'][_0x3024('0x13a')]()),_0x166764=new Set();for(const {name:_0x5caf7f,data:_0x2b757d}of _0xbb5d9f){const {group:_0x1a0307,type:_0x308f5d,subType:_0x3aabb,id:_0x217170}=this[_0x3024('0xdd')](_0x5caf7f);if(_0x3024('0x168')!==_0x1a0307)continue;const _0x65fe59=this[_0x3024('0xe1')]['get'](_0x217170);if(null!=_0x2b757d['newRange']){_0x3024('0x2d')==_0x308f5d&&(_0x51589f=_0x51589f||Tt(_0x2b757d[_0x3024('0x64')],_0x5caf7f,_0x2c318e,_0x15d3e4[_0x3024('0xfa')][_0x3024('0x104')]));const _0x43b421='attribute'==_0x308f5d&&this[_0x3024('0x7e')](_0x3aabb[_0x3024('0x28')]('|')[0x0]);if(_0x2b757d[_0x3024('0x64')][_0x3024('0x3c')]||_0x3024('0xb5')==_0x2b757d[_0x3024('0x64')]['root'][_0x3024('0x6e')]||'formatBlock'==_0x308f5d&&!Vt(_0x2b757d[_0x3024('0x64')])||_0x43b421&&!Vt(_0x2b757d['newRange'])||'deletion'==_0x308f5d&&!(!Rt(_0x549221=_0x2b757d[_0x3024('0x64')])&&!function(_0x4ae95c){return _0x4ae95c[_0x3024('0x163')][_0x3024('0x7f')]==_0x4ae95c[_0x3024('0x51')][_0x3024('0x4c')]&&_0x4ae95c[_0x3024('0x163')]['isAtEnd'];}(_0x549221)))_0x2c318e['removeMarker'](_0x5caf7f),_0x51589f=!0x0;else{if(!_0x65fe59||!_0x65fe59['isInContent'])continue;_0x166764[_0x3024('0x54')](_0x65fe59);}}}var _0x549221;return _0x166764[_0x3024('0x6d')]>0x0&&(_0x51589f=!!this[_0x3024('0x68')](_0x166764)||_0x51589f),_0x51589f;}),_0x15d3e4[_0x3024('0xfa')]['document'][_0x3024('0x8b')](_0x123ed7=>{let _0xd0e915=!0x1;for(const _0x2d9884 of _0x15d3e4['model'][_0x3024('0xf9')][_0x3024('0x82')][_0x3024('0x4d')]())if(_0x3024('0x35')==_0x2d9884[_0x3024('0x132')])for(const _0x4ca8df of this[_0x3024('0xe1')][_0x3024('0x178')]()){if(_0x4ca8df[_0x3024('0x8a')]||!_0x4ca8df['isInContent'])continue;const _0x5d64e9='formatBlock'==_0x4ca8df['type'],_0x3a3464=this[_0x3024('0x72')](_0x4ca8df),_0x59b43d=_0x3a3464&&this[_0x3024('0x7e')](_0x3a3464);if(!_0x5d64e9&&!_0x59b43d)continue;const _0x3e5fc3=_0x4ca8df[_0x3024('0x137')]();if(_0x3e5fc3[_0x3024('0x163')][_0x3024('0x7f')]!=_0x3e5fc3['end'][_0x3024('0x7f')]&&!_0x3e5fc3['end']['isAtEnd']){const _0x4ec3b4=_0x15d3e4[_0x3024('0xfa')]['createPositionAt'](_0x3e5fc3[_0x3024('0x163')][_0x3024('0xf2')],_0x3024('0x51')),_0x302254=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x12d')](_0x3e5fc3['start'],_0x4ec3b4);_0x123ed7['updateMarker'](_0x4ca8df[_0x3024('0x14d')](),{'range':_0x302254}),_0xd0e915=!0x0;}}return _0xd0e915;}),_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')][_0x3024('0x8b')](_0x3df3c8=>this[_0x3024('0x32')](_0x3df3c8)),_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')][_0x3024('0x8b')](_0x53496e=>!_0x53496e[_0x3024('0x46')]['isLocal']&&this['_processAttributeSuggestions'](_0x53496e)),_0x15d3e4[_0x3024('0xfa')]['on'](_0x3024('0x147'),()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')]['on'](_0x3024('0x10d'),(_0x51bf87,_0x82fb7)=>{if(!_0x82fb7[_0x3024('0xc8')]||_0x82fb7[_0x3024('0xe4')])return;if(!this[_0x3024('0xbe')])return;const _0x487128=_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')][_0x3024('0x82')]['getChanges']();if(0x0==_0x487128[_0x3024('0x2')])return;const _0x578dda=[],_0x41793d=_0x487128[_0x3024('0x17a')](_0x3ac953=>_0x3024('0x13f')==_0x3ac953[_0x3024('0x132')]),_0x2b7d5f=_0x487128[_0x3024('0x17a')](_0x2bad8d=>_0x3024('0x35')==_0x2bad8d['type']&&_0x3024('0x100')!=_0x2bad8d[_0x3024('0x17d')]),_0x1ec172=_0x487128[_0x3024('0x17a')](_0x2c13df=>_0x3024('0x1e')==_0x2c13df[_0x3024('0x132')]&&_0x3024('0x100')!=_0x2c13df['name']);for(const _0x373e2b of _0x41793d)this[_0x3024('0xb7')](_0x373e2b[_0x3024('0x12c')])&&_0x578dda['push']({'key':_0x373e2b[_0x3024('0x12c')],'newValue':_0x373e2b[_0x3024('0x173')],'oldValue':_0x373e2b[_0x3024('0x22')],'range':Ut(_0x373e2b[_0x3024('0x10c')],_0x15d3e4[_0x3024('0xfa')])});for(const _0x5d8a3f of _0x2b7d5f){const _0x217e37=_0x1ec172['find'](_0x1bfeca=>_0x1bfeca['_element']===_0x5d8a3f['_element']);if(_0x217e37){const _0x575957=Ot(_0x5d8a3f[_0x3024('0x83')]['nodeAfter'],_0x15d3e4['model']);_0x217e37['name']!==_0x5d8a3f[_0x3024('0x17d')]&&_0x578dda[_0x3024('0xdc')]({'key':_0x3024('0x10e'),'newValue':_0x5d8a3f[_0x3024('0x17d')],'oldValue':_0x217e37[_0x3024('0x17d')],'range':_0x575957});for(const [_0x551cff,_0x3bfe79]of _0x217e37[_0x3024('0x3e')]){if(!this[_0x3024('0xb7')](_0x551cff))continue;const _0x2f9813=_0x5d8a3f[_0x3024('0x3e')]['get'](_0x551cff);_0x3bfe79!==_0x2f9813&&_0x578dda['push']({'key':_0x551cff,'newValue':_0x2f9813,'oldValue':_0x3bfe79,'range':_0x575957});}for(const [_0x529bf5,_0x359c86]of _0x5d8a3f[_0x3024('0x3e')])this[_0x3024('0xb7')](_0x529bf5)&&(_0x217e37['attributes'][_0x3024('0x14f')](_0x529bf5)||_0x578dda[_0x3024('0xdc')]({'key':_0x529bf5,'newValue':_0x359c86,'oldValue':null,'range':_0x575957}));}}0x0!=_0x578dda['length']&&_0x15d3e4[_0x3024('0xfa')]['enqueueChange'](_0x82fb7,_0x22e46a=>{const _0xb56239=_0x25b08a();for(const {range:_0x15007d,key:_0x926c17,oldValue:_0x33074d,newValue:_0x512970}of _0x578dda)this[_0x3024('0x16f')](_0x15007d,_0x926c17,_0x33074d,_0x512970,{'groupId':_0xb56239});this[_0x3024('0xab')](_0x22e46a,_0x578dda);});},{'priority':'lowest'}),_0x15d3e4[_0x3024('0xfa')][_0x3024('0x102')]['on']('update:suggestion',(_0x5cd370,_0x38f5df,_0x213f5f)=>{if(null==_0x213f5f){const {id:_0x480cd4}=this['_splitMarkerName'](_0x38f5df[_0x3024('0x17d')]),_0x22d013=this[_0x3024('0xe1')][_0x3024('0xa0')](_0x480cd4);_0x22d013&&_0x22d013[_0x3024('0x141')](_0x38f5df['name']);}}),_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')]['on'](_0x3024('0x10d'),()=>{const _0x236531=Array[_0x3024('0xec')](_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')][_0x3024('0x82')][_0x3024('0x13a')]())['filter'](_0x107708=>_0x3024('0x168')===this['_splitMarkerName'](_0x107708[_0x3024('0x17d')])['group']);if(0x0===_0x236531[_0x3024('0x2')])return;_0x236531['sort']((_0x17191b,_0x228046)=>{const _0x1216e8=_0x17191b[_0x3024('0x49')][_0x3024('0xf6')],_0xa4ab0d=_0x228046['data'][_0x3024('0xf6')];return null===_0x1216e8&&null===_0xa4ab0d?0x0:null===_0x1216e8&&null!==_0xa4ab0d?-0x1:null!==_0x1216e8&&null===_0xa4ab0d?0x1:_0x1216e8[_0x3024('0x163')][_0x3024('0x79')](_0xa4ab0d['start'])?-0x1:0x1;});const _0x151d55=new Set(),_0x23d46b=new Set();for(const {name:_0x3aba77,data:_0x24124b}of _0x236531){const {id:_0x34e54a}=this[_0x3024('0xdd')](_0x3aba77);if(null===_0x24124b[_0x3024('0xf6')]){const _0xc5a76e=this['_handleNewSuggestionMarker'](_0x3aba77);_0x23d46b[_0x3024('0x54')](_0xc5a76e);}else{const _0x4721da=this[_0x3024('0xe1')][_0x3024('0xa0')](_0x34e54a);null!==_0x24124b[_0x3024('0x64')]||_0x4721da[_0x3024('0x144')]?(_0x151d55[_0x3024('0x54')](_0x4721da['head']),_0x23d46b[_0x3024('0x54')](_0x4721da)):this[_0x3024('0x43')](_0x4721da);}}_0x23d46b[_0x3024('0x6d')]>0x0&&this['_refreshSuggestionsChain'](_0x23d46b);for(const _0x2da19b of _0x151d55)this[_0x3024('0xa3')](_0x3024('0x138'),_0x2da19b);}),_0x15d3e4[_0x3024('0xfa')]['on']('applyOperation',(_0x4bef07,_0x81df73)=>{const _0x1db948=_0x81df73[0x0];if(!this[_0x3024('0xe1')][_0x3024('0x6d')])return;if(!_0x1db948['isDocumentOperation'])return;if(_0x1db948[_0x3024('0x46')]['isUndo']||!_0x1db948['batch']['isLocal'])return;let _0x44f4d8,_0x3d8258;switch(_0x1db948[_0x3024('0x132')]){case _0x3024('0x35'):_0x44f4d8=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x17')](_0x1db948[_0x3024('0x83')]),_0x3d8258=_0x44f4d8[_0x3024('0x99')](_0x1db948[_0x3024('0xe2')]);break;case'split':_0x44f4d8=_0x15d3e4['model'][_0x3024('0x17')](_0x1db948['splitPosition']),_0x3d8258=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x17')](_0x1db948[_0x3024('0x8d')]);break;case _0x3024('0xe5'):_0x44f4d8=_0x15d3e4['model'][_0x3024('0x17')](_0x1db948['targetPosition']),_0x3d8258=_0x44f4d8[_0x3024('0x99')](_0x1db948[_0x3024('0xe2')]);break;default:return;}const _0x39b7ff=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x12d')](_0x44f4d8,_0x3d8258);_0x15d3e4[_0x3024('0xfa')][_0x3024('0x11f')](()=>{for(const {suggestion:_0x2cb23c,meta:_0xd315e6}of this[_0x3024('0x148')](_0x39b7ff)){if(_0x2cb23c['isMultiRange'])continue;if(_0x3024('0x2d')==_0x2cb23c[_0x3024('0x132')])continue;const _0x23ee44=this[_0x3024('0x72')](_0x2cb23c);if(_0x23ee44&&this[_0x3024('0x7e')](_0x23ee44)&&'split'!=_0x1db948[_0x3024('0x132')])continue;const _0x19a58c=_0x2cb23c['data']&&_0x2cb23c[_0x3024('0x49')]['multipleBlocks'];('formatBlock'!=_0x2cb23c[_0x3024('0x132')]||_0x3024('0x28')==_0x1db948[_0x3024('0x132')]&&!_0x19a58c)&&(_0xd315e6['containsRangeInObject']||_0x3024('0xac')==_0x2cb23c[_0x3024('0x132')]&&_0xd315e6[_0x3024('0xf8')]||_0x2cb23c[_0x3024('0x137')]()['containsRange'](_0x39b7ff)&&this[_0x3024('0x162')](_0x2cb23c,_0x44f4d8,_0x3d8258));}});},{'priority':_0x3024('0x169')}),_0x15d3e4[_0x3024('0xfa')]['on']('deleteContent',(_0x1858e7,_0x415a57)=>{const _0x3b2fc9=_0x415a57[0x0],_0x1a3c69=_0x415a57[0x1];if(_0x1a3c69&&_0x1a3c69[_0x3024('0x125')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x3024('0x1c')]['value'])return;if(_0x3b2fc9['isCollapsed'])return;const _0x434004=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x104')],{start:_0x54ffb5,end:_0x20f00d}=_0x3b2fc9[_0x3024('0x137')](),_0x573460=_0x54ffb5[_0x3024('0xf2')]&&_0x434004[_0x3024('0xc1')](_0x54ffb5[_0x3024('0xf2')])?null:_0x434004[_0x3024('0x7d')](_0x54ffb5,_0x3024('0xca')),_0x3a7186=_0x20f00d[_0x3024('0x4c')]&&_0x434004['isLimit'](_0x20f00d['nodeBefore'])?null:_0x434004[_0x3024('0x7d')](_0x20f00d,'backward'),_0x14455b=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x12d')](_0x573460?_0x573460[_0x3024('0x163')]:_0x54ffb5,_0x3a7186?_0x3a7186[_0x3024('0x51')]:_0x20f00d);_0x15d3e4['model'][_0x3024('0x11f')](_0x46481b=>{this[_0x3024('0x161')](_0x14455b);const _0x46f45e=_0x15d3e4[_0x3024('0xfa')]['schema'][_0x3024('0x7d')](_0x14455b[_0x3024('0x163')]);_0x3b2fc9['is'](_0x3024('0xeb'))?_0x46481b['setSelection'](_0x46f45e):_0x3b2fc9[_0x3024('0x135')](_0x46f45e);}),_0x1858e7['stop']();},{'priority':_0x277c40[_0x3024('0x157')]+0xa}),_0x15d3e4[_0x3024('0xfa')]['on'](_0x3024('0xcc'),(_0x124720,_0x12212d)=>{const _0x4dcafc=_0x12212d[_0x12212d[_0x3024('0x2')]-0x1];_0x4dcafc&&_0x4dcafc[_0x3024('0x125')]||this[_0x3024('0x97')]||this[_0x3024('0x1c')][_0x3024('0x13')]&&(_0x15d3e4[_0x3024('0xfa')]['change'](()=>{let _0x4a2d89=_0x15d3e4[_0x3024('0xfa')][_0x3024('0xcc')](_0x12212d[0x0],_0x12212d[0x1],_0x12212d[0x2],{'forceDefaultExecution':!0x0});if(!_0x4a2d89)return;_0x124720[_0x3024('0x124')]=_0x4a2d89[_0x3024('0x95')]();const _0x25bc09=_0x4a2d89[_0x3024('0x51')][_0x3024('0x4c')],_0x1e2eb6=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x104')];_0x25bc09&&_0x1e2eb6[_0x3024('0x57')](_0x25bc09)&&!_0x1e2eb6[_0x3024('0x86')](_0x25bc09)&&(_0x4a2d89=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x12d')](_0x4a2d89['start'],_0x15d3e4['model'][_0x3024('0x17')](_0x25bc09,_0x3024('0x51')))),this['markInsertion'](_0x4a2d89);}),_0x124720['stop']());},{'priority':'high'}),this[_0x3024('0x154')][_0x3024('0x62')][_0x3024('0x54')](_0x3024('0x98'),this[_0x3024('0x1c')]),this[_0x3024('0xde')](_0x3024('0x98'));const _0x61eed5=new _0x5a1e43(_0x15d3e4,this[_0x3024('0xe1')]);_0x15d3e4[_0x3024('0x62')][_0x3024('0x54')](_0x3024('0x5d'),_0x61eed5),this['enableCommand'](_0x3024('0x5d'));const _0x3cafbc=new _0xc4b4ed(_0x15d3e4,this[_0x3024('0xe1')]);_0x15d3e4[_0x3024('0x62')][_0x3024('0x54')]('discardSuggestion',_0x3cafbc),this[_0x3024('0xde')](_0x3024('0x17b')),_0x15d3e4[_0x3024('0x62')]['add']('acceptAllSuggestions',new _0x5918cc(_0x15d3e4,_0x61eed5,this[_0x3024('0xe1')])),this[_0x3024('0xde')]('acceptAllSuggestions'),_0x15d3e4[_0x3024('0x62')][_0x3024('0x54')](_0x3024('0x94'),new _0x5918cc(_0x15d3e4,_0x3cafbc,this['_suggestions'])),this[_0x3024('0xde')]('discardAllSuggestions'),_0x15d3e4['commands']['add']('acceptSelectedSuggestions',new _0x58fc2a(_0x15d3e4,_0x61eed5,this[_0x3024('0xe1')])),this[_0x3024('0xde')](_0x3024('0x7')),_0x15d3e4[_0x3024('0x62')]['add'](_0x3024('0x15a'),new _0x58fc2a(_0x15d3e4,_0x3cafbc,this[_0x3024('0xe1')])),this[_0x3024('0xde')](_0x3024('0x15a'));const _0x26ad5f=_0x15d3e4['plugins'][_0x3024('0xa0')](_0x3024('0xa1'));this[_0x3024('0x128')](_0x26ad5f,_0x3024('0x158'),(_0x402565,{threadId:_0x27064d})=>{const _0x538c6=this[_0x3024('0xe1')]['get'](_0x27064d);_0x538c6&&_0x538c6[_0x3024('0x37')]&&0x1===_0x538c6[_0x3024('0x37')]['length']&&this['_updateSuggestionData'](_0x27064d,{'hasComments':!0x0});},{'priority':_0x3024('0xe8')}),this[_0x3024('0x128')](_0x26ad5f,'removeComment',(_0x46bbf6,{threadId:_0x1a792f})=>{const _0x149453=this[_0x3024('0xe1')][_0x3024('0xa0')](_0x1a792f);_0x149453&&_0x149453['commentThread']&&!_0x149453[_0x3024('0x37')][_0x3024('0x2')]&&this[_0x3024('0x14a')](_0x1a792f,{'hasComments':!0x1});},{'priority':_0x3024('0xe8')});}set[_0x3024('0x88')](_0x303c01){if(this['_adapter'])throw new _0x255fda('track-changes-adapter-already-set',this);this[_0x3024('0x60')]=_0x303c01;}get[_0x3024('0x88')](){return this[_0x3024('0x60')];}[_0x3024('0x44')]({skipNotAttached:_0x40552e=!0x1,toJSON:_0x54f130=!0x1}={}){const _0x3d9bff=[];for(const _0x131a7c of this['_suggestions'][_0x3024('0x178')]())_0x40552e&&!_0x131a7c[_0x3024('0x144')]||_0x3d9bff[_0x3024('0xdc')](_0x131a7c);return _0x54f130?_0x3d9bff[_0x3024('0x53')](_0x222677=>_0x222677[_0x3024('0x63')]()):_0x3d9bff;}[_0x3024('0x179')](_0x27cffc){const _0x53d2ef=this[_0x3024('0xe1')]['get'](_0x27cffc);if(!_0x53d2ef)throw new _0x255fda(_0x3024('0x78'),this);return _0x53d2ef;}['hasSuggestion'](_0x524885){return this[_0x3024('0xe1')]['has'](_0x524885);}[_0x3024('0x25')](_0x53f529){const {authorId:_0x4dbe87,id:_0x119d0c,attributes:_0x1ba14f}=_0x53f529,[_0x7f7fd0,_0x1d1390]=_0x53f529[_0x3024('0x132')][_0x3024('0x28')](':'),_0x4f838d=this[_0x3024('0xe1')][_0x3024('0xa0')](_0x119d0c)||this['_createSuggestion'](_0x7f7fd0,_0x1d1390,_0x119d0c,_0x4dbe87,_0x1ba14f);if(this[_0x3024('0x150')](_0x4f838d),this[_0x3024('0xc6')](_0x4f838d,_0x7f7fd0,_0x1d1390||null,_0x4dbe87),_0x4f838d[_0x3024('0x166')]=_0x53f529['createdAt'],_0x4f838d[_0x3024('0x27')]=!0x0,_0x1ba14f&&_0x1ba14f['@external']){const _0x593cd1=_0x1ba14f[_0x3024('0x34')],_0x317d33=this[_0x3024('0xaa')](_0x593cd1['authorName']);_0x4f838d[_0x3024('0x143')]=_0x593cd1[_0x3024('0x166')],_0x4f838d[_0x3024('0x1d')]=_0x317d33,_0x4f838d[_0x3024('0x109')]=!0x0;}else _0x4f838d['authoredAt']=_0x53f529['createdAt'];switch(_0x53f529['data']&&(_0x4f838d['data']=_0x53f529[_0x3024('0x49')]),_0x53f529['attributes']&&(_0x4f838d['attributes']=_0x53f529['attributes']),this[_0x3024('0x60')]&&this[_0x3024('0x60')]['addSuggestion']||(_0x4f838d[_0x3024('0x113')]=!0x0),this[_0x3024('0x16b')][_0x3024('0xa0')](_0x4f838d)){case _0x3024('0xb'):this[_0x3024('0x16b')][_0x3024('0x17c')](_0x4f838d,'dataReady');break;case _0x3024('0x5e'):_0x4f838d['isInContent']?(this[_0x3024('0x68')](new Set([_0x4f838d])),this[_0x3024('0x96')](new Set([_0x4f838d])),this['_suggestionState'][_0x3024('0x17c')](_0x4f838d,_0x3024('0x81')),this['fire'](_0x3024('0x39'),_0x4f838d)):this['_suggestionState']['set'](_0x4f838d,_0x3024('0x3f'));}return _0x4f838d;}[_0x3024('0x5d')](_0x50a9d9){this[_0x3024('0x125')](()=>{this[_0x3024('0x154')][_0x3024('0xfa')]['change'](()=>{for(const _0x32779c of _0x50a9d9[_0x3024('0xd6')]())_0x32779c[_0x3024('0x14c')]();});});}[_0x3024('0x17b')](_0x5b0670){this[_0x3024('0x125')](()=>{this[_0x3024('0x154')][_0x3024('0xfa')][_0x3024('0x11f')](()=>{for(const _0x5de593 of _0x5b0670['getAllAdjacentSuggestions']())_0x5de593[_0x3024('0x40')]();});});}[_0x3024('0xde')](_0x3eab26,_0x2dcee2){const _0x2d85a4=this['editor'][_0x3024('0x62')][_0x3024('0xa0')](_0x3eab26);if(!_0x2d85a4)throw new _0x255fda(_0x3024('0xff'),this,{'commandName':_0x3eab26});if(this[_0x3024('0x3a')]['has'](_0x2d85a4))throw new _0x255fda(_0x3024('0x92'),this,{'commandName':_0x3eab26});this[_0x3024('0x3a')][_0x3024('0x54')](_0x2d85a4),_0x2dcee2&&_0x2d85a4['on'](_0x3024('0xf1'),(_0x3ea452,_0x317603)=>{this[_0x3024('0x1c')]['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x317603[_0x3024('0x2')]>0x0&&_0x317603[_0x317603[_0x3024('0x2')]-0x1]&&_0x317603[_0x317603[_0x3024('0x2')]-0x1]['forceDefaultExecution']?_0x317603[_0x3024('0x77')]():(_0x3ea452[_0x3024('0x124')]=_0x2dcee2((..._0x243914)=>_0x2d85a4[_0x3024('0xf1')](..._0x243914,{'forceDefaultExecution':!0x0}),..._0x317603),_0x3ea452[_0x3024('0x121')]())));},{'priority':'high'});}[_0x3024('0x125')](_0x279c6e){let _0x18b811,_0x461127;const _0xdc9f0d=this[_0x3024('0x97')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x18b811=_0x279c6e();}catch(_0x3acf30){_0x461127=_0x3acf30;}return _0xdc9f0d||(this[_0x3024('0x97')]=!0x1),_0x461127&&_0x255fda[_0x3024('0x14')](_0x461127,this),_0x18b811;}['markInsertion'](_0x58109f,_0x97c285=null,_0x5a3509={}){if(_0x58109f[_0x3024('0x3c')])return null;const _0x56d1ca=this[_0x3024('0x154')][_0x3024('0x5c')]['get'](_0x3024('0xd8'))['me'];for(const {suggestion:_0x559eeb,meta:_0x149a85}of this[_0x3024('0x148')](_0x58109f,_0x3024('0xac')))if(_0x149a85[_0x3024('0xf8')]){if(!_0x149a85['isNextTo']){if(_0x149a85[_0x3024('0xda')]){if(!this[_0x3024('0x139')]||!Pt(_0x559eeb,_0x5a3509))continue;return _0x559eeb;}if(Pt(_0x559eeb,_0x5a3509))return _0x559eeb;this[_0x3024('0x162')](_0x559eeb,_0x58109f['start'],_0x58109f['end']);break;}if(_0x97c285==_0x559eeb['subType']&&Pt(_0x559eeb,_0x5a3509)){const _0x5db0d4=_0x559eeb[_0x3024('0x137')]();return _0x5db0d4[_0x3024('0x163')]['isEqual'](_0x58109f['end'])?this[_0x3024('0x75')](_0x559eeb,this[_0x3024('0x6f')][_0x3024('0x12d')](_0x58109f[_0x3024('0x163')],_0x5db0d4[_0x3024('0x51')])):this[_0x3024('0x75')](_0x559eeb,this['_model'][_0x3024('0x12d')](_0x5db0d4[_0x3024('0x163')],_0x58109f[_0x3024('0x51')])),_0x559eeb;}}const _0x31b4b9=_0x25b08a(),_0x16cd6f=_0x56d1ca['id'],_0x341778=_0x97c285?_0x3024('0xfe')+_0x97c285:_0x3024('0xac'),_0x11a8d1=this[_0x3024('0x8')]({'id':_0x31b4b9,'type':_0x341778,'createdAt':new Date(),'authorId':_0x16cd6f,'attributes':_0x5a3509});return this[_0x3024('0xe6')](_0x341778,_0x31b4b9,_0x16cd6f,_0x58109f),_0x11a8d1;}[_0x3024('0x17e')](_0x54457d,_0x378c80=_0x3024('0x15d'),_0x506a75={}){const _0x1f9019=this['editor'][_0x3024('0x5c')][_0x3024('0xa0')](_0x3024('0xd8'))['me'],_0x1d250b=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0xac'),_0x378c80,_0x3024('0x175'));for(const _0x2c7757 of this[_0x3024('0x44')]())if(_0x2c7757[_0x3024('0x1d')]['id']==_0x1f9019['id']&&_0x3024('0xac')==_0x2c7757[_0x3024('0x132')]&&_0x2c7757[_0x3024('0x7c')]==_0x378c80&&Pt(_0x2c7757,_0x506a75)&&(_0x1d250b(_0x2c7757[_0x3024('0x84')](),_0x54457d)||_0x1d250b(_0x54457d,_0x2c7757[_0x3024('0x84')]()))){for(const _0x178cbc of _0x54457d)_0x2c7757[_0x3024('0x13c')](_0x178cbc);return _0x2c7757;}for(const {suggestion:_0x4272bc,meta:_0x38ca32}of this[_0x3024('0x148')](_0x54457d,_0x3024('0xac'))){if(!_0x38ca32['isOwn'])continue;if(!this[_0x3024('0x139')]&&_0x38ca32[_0x3024('0xda')])continue;if(!Pt(_0x4272bc,_0x506a75))continue;let _0x2957f1=!0x0;for(const _0x296dd3 of _0x4272bc[_0x3024('0x84')]())for(const _0x554f25 of _0x54457d)if(!_0x296dd3[_0x3024('0xb6')](_0x554f25)){_0x2957f1=!0x1;break;}if(_0x2957f1)return _0x4272bc;}const _0x1d6a07=_0x25b08a(),_0x295021=_0x1f9019['id'],_0x2db1e5=_0x3024('0xfe')+_0x378c80,_0x4523d1=this[_0x3024('0x8')]({'id':_0x1d6a07,'type':_0x2db1e5,'createdAt':new Date(),'authorId':_0x295021,'attributes':_0x506a75});for(const _0x1f28c8 of _0x54457d)this['_addSuggestionMarker'](_0x2db1e5,_0x1d6a07,_0x295021,_0x1f28c8,_0x1f2ce3['getMultiRangeId']());return _0x4523d1;}[_0x3024('0x7b')](_0x376608,_0x2db0cb,_0x571fd7=null,_0x2e89dc={}){if(_0x571fd7=_0x571fd7||Et(_0x2db0cb),_0x376608[_0x3024('0x3c')])return null;if(_0x3024('0x56')===this[_0x3024('0x5a')]){const _0x1391ae=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0x2d'),_0x571fd7,_0x3024('0x14c'));return this[_0x3024('0x125')](()=>_0x1391ae([_0x376608],_0x2db0cb,_0x2e89dc)),null;}const _0x14ebe1=this[_0x3024('0x154')][_0x3024('0x5c')][_0x3024('0xa0')](_0x3024('0xd8'))['me'],_0x48cdbc=[];if('always'!==this[_0x3024('0x5a')])for(const {suggestion:_0x4ab85f,meta:_0x2bbac0}of this[_0x3024('0x148')](_0x376608,_0x3024('0xac')))_0x2bbac0['isOwn']&&!_0x2bbac0[_0x3024('0x29')]&&_0x48cdbc['push'](..._0x4ab85f[_0x3024('0x84')]());const _0xa6adc5=function(_0x4b625e,_0x14ac3b){const _0x1b9d47=[];for(const _0x50b3ad of _0x14ac3b){const _0x167fec=_0x4b625e[_0x3024('0xfd')](_0x50b3ad);_0x167fec&&_0x1b9d47[_0x3024('0xdc')](_0x167fec);}return _0x1b9d47;}(_0x376608,_0x48cdbc),_0x206317=function(_0x4cad6a,_0x2d2f5a){const _0xdc9403=[_0x4cad6a];for(const _0x219d43 of _0x2d2f5a){let _0xcfab7a=0x0;for(;_0xcfab7a<_0xdc9403[_0x3024('0x2')];){const _0x5d29f1=_0xdc9403[_0xcfab7a][_0x3024('0x13e')](_0x219d43);_0xdc9403[_0x3024('0x10f')](_0xcfab7a,0x1,..._0x5d29f1),_0xcfab7a+=_0x5d29f1[_0x3024('0x2')];}}return _0xdc9403;}(_0x376608,_0x48cdbc);_0xa6adc5[_0x3024('0x2')]&&this[_0x3024('0x6f')]['change'](()=>{for(const _0xcc2fc2 of _0xa6adc5){const _0x3ff0bc=this[_0x3024('0x71')][_0x3024('0x11a')]('formatInline',_0x571fd7,'accept');this[_0x3024('0x125')](()=>_0x3ff0bc([_0xcc2fc2],_0x2db0cb,_0x2e89dc));}});for(const _0x11cf46 of _0x206317){let _0x2574d1=null,_0x14c343=_0x11cf46[_0x3024('0x163')],_0x49cb54=_0x11cf46['end'];for(const {suggestion:_0x396814,meta:_0x18e2f4}of this[_0x3024('0x148')](_0x11cf46,_0x3024('0x2d'))){if(!_0x18e2f4[_0x3024('0xf8')])continue;if(_0x396814[_0x3024('0x7c')]!=_0x571fd7)continue;if(!Pt(_0x396814,_0x2e89dc))continue;const _0x2bbe72=_0x396814[_0x3024('0x137')]();if(_0x2bbe72['containsRange'](_0x11cf46,!0x0))return null;_0x14c343=_0x14c343[_0x3024('0x79')](_0x2bbe72[_0x3024('0x163')])?_0x14c343:_0x2bbe72['start'],_0x49cb54=_0x49cb54[_0x3024('0xa6')](_0x2bbe72[_0x3024('0x51')])?_0x49cb54:_0x2bbe72[_0x3024('0x51')],_0x2574d1?_0x2bbe72['start'][_0x3024('0x79')](_0x2574d1['getFirstRange']()['start'])?(_0x2574d1[_0x3024('0xa4')](),_0x2574d1=_0x396814):_0x396814[_0x3024('0xa4')]():_0x2574d1=_0x396814;}const _0x7e1757=this[_0x3024('0x6f')][_0x3024('0x12d')](_0x14c343,_0x49cb54);if(_0x2574d1)this['_setSuggestionRange'](_0x2574d1,_0x7e1757);else{const _0x441c4f=_0x25b08a(),_0x20cddc=_0x14ebe1['id'];this[_0x3024('0x8')]({'id':_0x441c4f,'type':_0x3024('0x11c')+_0x571fd7,'data':_0x2db0cb,'createdAt':new Date(),'authorId':_0x20cddc,'attributes':_0x2e89dc}),this['_addSuggestionMarker'](_0x3024('0x11c')+_0x571fd7,_0x441c4f,_0x20cddc,_0x7e1757);}}return null;}[_0x3024('0xb4')](_0xc87a4e,_0x4a93b9,_0x53ef67=[],_0x4f9ccf=null,_0x75d0e1={}){_0x4a93b9['formatGroupId']||(_0x4a93b9['formatGroupId']=_0x4a93b9[_0x3024('0xf4')]),_0x4a93b9[_0x3024('0x15')]=_0xc87a4e['is'](_0x3024('0x10c')),_0x4f9ccf=_0x4f9ccf||Et(_0x4a93b9);const _0x46523a=_0x53ef67[_0x3024('0x53')](_0x598ef3=>Ot(_0x598ef3,this[_0x3024('0x6f')])),_0x80c4ee=_0xc87a4e['is'](_0x3024('0x10c'))?_0xc87a4e:Ot(_0xc87a4e,this[_0x3024('0x6f')]);if('never'===this[_0x3024('0x5a')]){const _0x3f1994=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0x85'),_0x4f9ccf,'accept');return this[_0x3024('0x125')](()=>_0x3f1994([_0x80c4ee],_0x4a93b9,_0x75d0e1)),null;}_0x46523a[_0x3024('0xdc')](_0x80c4ee);let _0x4aac59=!0x0;for(const _0x1691d3 of _0x46523a)if(!this[_0x3024('0xf0')](_0x1691d3)){_0x4aac59=!0x1;break;}if(_0x4aac59&&_0x3024('0x8c')!==this[_0x3024('0x5a')]){const _0x20986e=this[_0x3024('0x71')]['getSuggestionCallback']('formatBlock',_0x4f9ccf,_0x3024('0x14c'));return this['forceDefaultExecution'](()=>_0x20986e([_0x80c4ee],_0x4a93b9,_0x75d0e1)),null;}let _0x1cb0be=null,_0x5b00ca=_0x80c4ee['start'],_0x4cc693=_0x80c4ee[_0x3024('0x51')];for(const {suggestion:_0x4ff239,meta:_0xee4e4c}of this[_0x3024('0x148')](_0x80c4ee,_0x3024('0x85'))){if(!_0xee4e4c['isOwn'])continue;if(_0xee4e4c[_0x3024('0x23')]||_0xee4e4c[_0x3024('0xda')]||_0xee4e4c[_0x3024('0x29')])continue;if(_0x4ff239[_0x3024('0x49')][_0x3024('0x112')]!=_0x4a93b9[_0x3024('0x112')])continue;if(!Pt(_0x4ff239,_0x75d0e1))continue;const _0x5006c0=_0x4ff239[_0x3024('0x137')]();if(_0x4ff239['subType']==_0x4f9ccf){if(_0x5006c0[_0x3024('0xb6')](_0x80c4ee,!0x0))return null;_0x5b00ca=_0x5b00ca[_0x3024('0x79')](_0x5006c0[_0x3024('0x163')])?_0x5b00ca:_0x5006c0[_0x3024('0x163')],_0x4cc693=_0x4cc693[_0x3024('0xa6')](_0x5006c0[_0x3024('0x51')])?_0x4cc693:_0x5006c0[_0x3024('0x51')],_0x1cb0be?_0x5006c0['start']['isBefore'](_0x1cb0be[_0x3024('0x137')]()[_0x3024('0x163')])?(_0x1cb0be[_0x3024('0xa4')](),_0x1cb0be=_0x4ff239):_0x4ff239['removeMarkers']():_0x1cb0be=_0x4ff239;}else{const _0x1251a5=_0x80c4ee[_0x3024('0xfd')](_0x5006c0);this[_0x3024('0xdf')](_0x4ff239,_0x1251a5);}}const _0x529b91=this['editor'][_0x3024('0x5c')][_0x3024('0xa0')]('Users')['me'],_0x12e4ec=_0x25b08a(),_0x444e49=_0x529b91['id'];if(_0x1cb0be)return this[_0x3024('0x75')](_0x1cb0be,this['_model'][_0x3024('0x12d')](_0x5b00ca,_0x4cc693)),_0x1cb0be;{const _0x1574f5=this['_setSuggestionData']({'id':_0x12e4ec,'type':'formatBlock:'+_0x4f9ccf,'data':_0x4a93b9,'createdAt':new Date(),'authorId':_0x444e49,'attributes':_0x75d0e1});return this[_0x3024('0xe6')](_0x3024('0x12b')+_0x4f9ccf,_0x12e4ec,_0x444e49,this[_0x3024('0x6f')]['createRange'](_0x5b00ca,_0x4cc693)),_0x1574f5;}}[_0x3024('0xa8')](_0x479a47,_0x338d31,_0x4eafda=[],_0x420224=null,_0x5ddff3={}){_0x338d31[_0x3024('0x112')]||(_0x338d31[_0x3024('0x112')]=_0x338d31['commandName']);const _0x4af162=_0x479a47[0x0];_0x338d31[_0x3024('0x15')]=_0x4af162['is'](_0x3024('0x10c')),_0x420224=_0x420224||Et(_0x338d31);const _0x4032cd=_0x4eafda[_0x3024('0x53')](_0x462fa1=>Ot(_0x462fa1,this[_0x3024('0x6f')])),_0x4840e3=_0x4af162['is']('range')?_0x479a47:_0x479a47[_0x3024('0x53')](_0x26e655=>Ot(_0x26e655,this[_0x3024('0x6f')]));if(_0x3024('0x56')===this[_0x3024('0x5a')]){const _0x5b5217=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0x85'),_0x420224,_0x3024('0x14c'));return this[_0x3024('0x125')](()=>_0x5b5217(_0x4840e3,_0x338d31,_0x5ddff3)),null;}_0x4032cd[_0x3024('0xdc')](..._0x4840e3);let _0x38cefc=!0x0;for(const _0x595161 of _0x4032cd)if(!this[_0x3024('0xf0')](_0x595161)){_0x38cefc=!0x1;break;}if(_0x38cefc&&_0x3024('0x8c')!==this[_0x3024('0x5a')]){const _0x599486=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0x85'),_0x420224,_0x3024('0x14c'));return this[_0x3024('0x125')](()=>_0x599486(_0x4840e3,_0x338d31,_0x5ddff3)),null;}const _0x424fa0=this[_0x3024('0x154')][_0x3024('0x5c')][_0x3024('0xa0')]('Users')['me'];for(const _0x412e1a of this[_0x3024('0x44')]()){if(_0x412e1a[_0x3024('0x1d')]['id']!=_0x424fa0['id'])continue;if(_0x3024('0x85')!=_0x412e1a[_0x3024('0x132')]||_0x412e1a[_0x3024('0x49')][_0x3024('0x112')]!=_0x338d31[_0x3024('0x112')])continue;if(!Pt(_0x412e1a,_0x5ddff3))continue;const _0x51e10a=_0x412e1a[_0x3024('0x7c')]==_0x420224;for(let _0x5778e9=0x0;_0x5778e9<_0x4840e3[_0x3024('0x2')];_0x5778e9++){const _0x52b640=_0x4840e3[_0x5778e9];for(const _0x4787af of _0x412e1a[_0x3024('0xae')]()){const _0x4201d0=_0x4787af[_0x3024('0x3')]();if(_0x52b640[_0x3024('0xc9')](_0x4201d0)){_0x51e10a?(_0x4840e3['splice'](_0x5778e9,0x1),_0x5778e9--):_0x412e1a['removeMarker'](_0x4787af[_0x3024('0x17d')]);break;}}}}if(0x0==_0x4840e3['length'])return null;const _0x3d24b6=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0x85'),_0x420224,_0x3024('0x175'));for(const _0x27d382 of this[_0x3024('0x44')]())if(_0x27d382['author']['id']==_0x424fa0['id']&&_0x3024('0x85')==_0x27d382['type']&&_0x27d382[_0x3024('0x49')][_0x3024('0x112')]==_0x338d31[_0x3024('0x112')]&&_0x27d382[_0x3024('0x7c')]==_0x420224&&Pt(_0x27d382,_0x5ddff3)&&(_0x3d24b6(_0x27d382['getRanges'](),_0x4840e3)||_0x3d24b6(_0x4840e3,_0x27d382[_0x3024('0x84')]()))){for(const _0x12808c of _0x4840e3)_0x27d382[_0x3024('0x13c')](_0x12808c);return _0x27d382;}const _0x46c71e=_0x25b08a(),_0x295fb8=_0x424fa0['id'],_0x6ae9e7=_0x3024('0x12b')+_0x420224,_0x5c08d0=this[_0x3024('0x8')]({'id':_0x46c71e,'type':_0x6ae9e7,'data':_0x338d31,'createdAt':new Date(),'authorId':_0x295fb8,'attributes':_0x5ddff3});for(const _0x58c7b0 of _0x4840e3)this[_0x3024('0xe6')](_0x6ae9e7,_0x46c71e,_0x295fb8,_0x58c7b0,_0x1f2ce3['getMultiRangeId']());return _0x5c08d0;}[_0x3024('0x161')](_0x40c864,_0x1f3ab2=null,_0x5a6147={}){if(_0x40c864['isCollapsed'])return null;const _0x29af35=this[_0x3024('0x154')][_0x3024('0x5c')]['get'](_0x3024('0xd8'))['me'],_0x15cafd=new _0x205e8b(_0x40c864[_0x3024('0x163')],_0x40c864[_0x3024('0x51')]);for(const {suggestion:_0xa4608d,meta:_0x2b913f}of this[_0x3024('0x148')](_0x15cafd,_0x3024('0xac')))if(_0x2b913f[_0x3024('0xf8')]&&!_0x2b913f[_0x3024('0x23')]){if(_0xa4608d[_0x3024('0x8a')]){const _0x5665a1=_0xa4608d['getRanges']()[_0x3024('0x17a')](_0x2fd3b1=>_0x3024('0xb5')!=_0x2fd3b1[_0x3024('0xd0')][_0x3024('0x6e')]);_0x5665a1[_0x3024('0x9b')](_0x3913fb=>_0x15cafd['containsRange'](_0x3913fb,!0x0))&&_0xa4608d['discard']();if(_0x5665a1[_0x3024('0x30')](_0x27c499=>_0x27c499[_0x3024('0xb6')](_0x15cafd,!0x0))){const _0x478747=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0x16'),_0x1f3ab2,_0x3024('0x14c'));return this[_0x3024('0x125')](()=>_0x478747([_0x15cafd],null,_0x5a6147)),null;}}else{const _0x1094e8=_0x15cafd[_0x3024('0xfd')](_0xa4608d[_0x3024('0x137')]());null!==_0x1094e8&&_0xa4608d[_0x3024('0x45')]([_0x1094e8],null,_0x5a6147);}}if(_0x15cafd[_0x3024('0xa2')](),_0x15cafd[_0x3024('0x3c')]||_0x3024('0xb5')==_0x15cafd[_0x3024('0xd0')]['rootName'])return null;let _0xd3fcf8=null,_0x47bdd7=_0x15cafd['start'],_0x238608=_0x15cafd[_0x3024('0x51')];const _0x3658c7=this[_0x3024('0x148')](_0x15cafd,'deletion');for(const {suggestion:_0x18dc85,meta:_0x1bc42a}of _0x3658c7){const _0x29d969=this[_0x3024('0x6f')][_0x3024('0x12d')](_0x47bdd7,_0x238608);if(_0x1bc42a[_0x3024('0xf8')]&&(this[_0x3024('0x139')]||!_0x1bc42a['containsRangeInObject']&&!_0x1bc42a[_0x3024('0x29')])){if(_0x18dc85['isMultiRange']){if(!Pt(_0x18dc85,_0x5a6147))continue;let _0x529096=!0x0;for(const _0x2fb155 of _0x18dc85[_0x3024('0x84')]()){if(_0x2fb155[_0x3024('0xb6')](_0x29d969,!0x0))return _0x18dc85;_0x29d969[_0x3024('0xb6')](_0x2fb155)||(_0x529096=!0x1);}_0x529096&&_0x18dc85[_0x3024('0x40')]();}else{const _0x5b8a65=_0x18dc85['getFirstRange']();if(_0x5b8a65[_0x3024('0xb6')](_0x29d969,!0x0))return _0x18dc85;if(!Pt(_0x18dc85,_0x5a6147)){_0x29d969[_0x3024('0xb6')](_0x5b8a65)?_0x18dc85[_0x3024('0xa4')]():_0x5b8a65[_0x3024('0x105')](_0x47bdd7)?_0x47bdd7=_0x5b8a65[_0x3024('0x51')]:_0x5b8a65[_0x3024('0x105')](_0x238608)&&(_0x238608=_0x5b8a65['start']);continue;}_0x47bdd7=_0x47bdd7[_0x3024('0x79')](_0x5b8a65[_0x3024('0x163')])?_0x47bdd7:_0x5b8a65[_0x3024('0x163')],_0x238608=_0x238608[_0x3024('0xa6')](_0x5b8a65[_0x3024('0x51')])?_0x238608:_0x5b8a65[_0x3024('0x51')],_0x5a6147=Object['assign']({},_0x18dc85['attributes']),_0xd3fcf8?_0x5b8a65[_0x3024('0x163')]['isBefore'](_0xd3fcf8[_0x3024('0x137')]()['start'])?(_0xd3fcf8[_0x3024('0xa4')](),_0xd3fcf8=_0x18dc85):_0x18dc85[_0x3024('0xa4')]():_0xd3fcf8=_0x18dc85;}}}if(_0xd3fcf8)return this[_0x3024('0x75')](_0xd3fcf8,this['_model'][_0x3024('0x12d')](_0x47bdd7,_0x238608)),_0xd3fcf8;{const _0x5e4e32=_0x25b08a(),_0x5c6d91=this[_0x3024('0x6f')][_0x3024('0x12d')](_0x47bdd7,_0x238608),_0x441b48=_0x29af35['id'],_0x3a1cc4=_0x1f3ab2?_0x3024('0x119')+_0x1f3ab2:'deletion',_0x35ee1d=this['_setSuggestionData']({'id':_0x5e4e32,'type':_0x3a1cc4,'createdAt':new Date(),'authorId':_0x441b48,'attributes':_0x5a6147});return this['_addSuggestionMarker'](_0x3a1cc4,_0x5e4e32,_0x441b48,_0x5c6d91),_0x35ee1d;}}[_0x3024('0x2f')](_0x2b916d,_0x2753ba='multi',_0x5bd077={}){const _0x39e2d2=this[_0x3024('0x154')][_0x3024('0x5c')][_0x3024('0xa0')](_0x3024('0xd8'))['me'],_0x12dd5c=_0x2b916d[_0x3024('0x53')](_0x1ada4a=>new _0x205e8b(_0x1ada4a[_0x3024('0x163')],_0x1ada4a[_0x3024('0x51')])),_0x43852e=new Set();for(const {suggestion:_0x5986f8,meta:_0x52b6a4}of this[_0x3024('0x148')](_0x12dd5c,'insertion'))_0x52b6a4[_0x3024('0xf8')]&&!_0x52b6a4['isNextTo']&&_0x43852e['add'](_0x5986f8);for(const _0x274bf3 of _0x43852e)if(_0x274bf3[_0x3024('0x8a')]){const _0x1797bb=_0x274bf3[_0x3024('0x84')]();(!_0x274bf3['attributes']||!_0x274bf3[_0x3024('0x3e')]['skipNestingCheck'])&&(_0x1797bb[_0x3024('0x9b')](_0x1cac32=>_0x12dd5c[_0x3024('0x30')](_0x198858=>_0x198858['containsRange'](_0x1cac32,!0x0)))&&_0x274bf3[_0x3024('0x40')]());if(_0x12dd5c[_0x3024('0x9b')](_0x4a27c7=>_0x1797bb[_0x3024('0x30')](_0x4c775d=>_0x4c775d[_0x3024('0xb6')](_0x4a27c7,!0x0)))){const _0x4056d4=this[_0x3024('0x71')][_0x3024('0x11a')]('deletion',_0x2753ba,_0x3024('0x14c'));return this[_0x3024('0x125')](()=>_0x4056d4(_0x2b916d,null,_0x5bd077)),null;}}else{const _0x3a736b=_0x274bf3[_0x3024('0x137')]();_0x12dd5c['some'](_0x2127f0=>_0x2127f0[_0x3024('0xb6')](_0x3a736b,!0x0))&&_0x274bf3['discard']();if(_0x12dd5c[_0x3024('0x9b')](_0x102528=>_0x3a736b[_0x3024('0xb6')](_0x102528,!0x0))){const _0x41a6f7=this['_suggestionFactory'][_0x3024('0x11a')](_0x3024('0x16'),_0x2753ba,_0x3024('0x14c'));return this[_0x3024('0x125')](()=>_0x41a6f7(_0x12dd5c,null,_0x5bd077)),null;}}const _0x3960af=this['_suggestionFactory'][_0x3024('0x11a')](_0x3024('0x16'),_0x2753ba,'join');let _0x523174=null;for(const _0x1651ce of this[_0x3024('0x44')]())if(_0x1651ce['author']['id']==_0x39e2d2['id']&&_0x1651ce[_0x3024('0x144')]&&_0x3024('0x16')==_0x1651ce['type']&&_0x1651ce[_0x3024('0x7c')]==_0x2753ba&&Pt(_0x1651ce,_0x5bd077)&&(_0x3960af(_0x1651ce[_0x3024('0x84')](),_0x12dd5c)||_0x3960af(_0x12dd5c,_0x1651ce['getRanges']()))){if(_0x523174){if(_0x1651ce[_0x3024('0x37')]&&_0x1651ce[_0x3024('0x37')][_0x3024('0x2')])continue;for(const _0x468fe1 of _0x1651ce[_0x3024('0x84')]())_0x523174['isIntersectingWithRange'](_0x468fe1)||_0x523174['addRange'](_0x468fe1);_0x1651ce[_0x3024('0xa4')]();}else{_0x523174=_0x1651ce;for(const _0x52182f of _0x12dd5c)_0x1651ce['isIntersectingWithRange'](_0x52182f)||_0x1651ce['addRange'](_0x52182f);}}if(_0x523174)return _0x523174;_0x43852e[_0x3024('0x101')]();for(const {suggestion:_0x45bc73,meta:_0x287b4b}of this[_0x3024('0x148')](_0x12dd5c,_0x3024('0x16')))_0x287b4b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x287b4b[_0x3024('0xda')]&&!_0x287b4b['isInsideObject'])&&Pt(_0x45bc73,_0x5bd077)&&_0x43852e[_0x3024('0x54')](_0x45bc73);for(const _0x4bddc of _0x43852e){const _0x4aab0c=_0x4bddc['getRanges']();if(!_0x5bd077||!_0x5bd077['skipNestingCheck']){if(_0x12dd5c['every'](_0x573cc8=>_0x4aab0c[_0x3024('0x30')](_0x475ed9=>_0x475ed9[_0x3024('0xb6')](_0x573cc8,!0x0))))return _0x4bddc;}(!_0x4bddc['attributes']||!_0x4bddc[_0x3024('0x3e')][_0x3024('0xd1')])&&(_0x4aab0c[_0x3024('0x9b')](_0x119593=>_0x12dd5c[_0x3024('0x30')](_0x6729d3=>_0x6729d3[_0x3024('0xb6')](_0x119593,!0x0)))&&_0x4bddc['discard']());}const _0x1264c8=_0x25b08a(),_0x38c844=_0x39e2d2['id'],_0xd33703=_0x3024('0x119')+_0x2753ba,_0x2083c0=this[_0x3024('0x8')]({'id':_0x1264c8,'type':_0xd33703,'createdAt':new Date(),'authorId':_0x38c844,'attributes':_0x5bd077});for(const _0x1df1a5 of _0x12dd5c)_0x1df1a5[_0x3024('0xa2')](),_0x1df1a5[_0x3024('0x3c')]||_0x3024('0xb5')==_0x1df1a5[_0x3024('0xd0')][_0x3024('0x6e')]||this[_0x3024('0xe6')](_0xd33703,_0x1264c8,_0x38c844,_0x1df1a5,_0x1f2ce3[_0x3024('0x117')]());return _0x2083c0;}[_0x3024('0x16f')](_0x40fe36,_0xe294c8,_0x27e892,_0x1de251,_0x13a079){if(_0x40fe36[_0x3024('0x3c')])return[];if(_0x3024('0x56')===this[_0x3024('0x5a')])return[];const _0x1facc7=this[_0x3024('0x154')][_0x3024('0x5c')]['get'](_0x3024('0xd8'))['me']['id'],_0x25a1fb=Array['from'](this[_0x3024('0xe1')][_0x3024('0x178')]())['filter'](_0x1736dc=>_0x3024('0x13f')==_0x1736dc['type']&&_0x1736dc[_0x3024('0x49')][_0x3024('0xb8')]==_0xe294c8&&_0x1736dc[_0x3024('0xfc')](_0x40fe36));if(_0x3024('0x93')===this['_trackFormatChanges']){const _0x260eb4=this[_0x3024('0x148')](_0x40fe36,_0x3024('0xac'))['filter'](({meta:_0xfac6a9})=>_0xfac6a9[_0x3024('0xf8')]&&!_0xfac6a9[_0x3024('0x29')]&&!_0xfac6a9['isNextTo'])[_0x3024('0x53')](({suggestion:_0x432012})=>_0x432012);_0x25a1fb['unshift'](..._0x260eb4);}const _0x3f491a=new Map([[_0x40fe36,_0x27e892]]);for(const _0x1c4425 of _0x25a1fb){const _0x134cb1='attribute'==_0x1c4425['type']?_0x1c4425[_0x3024('0x49')][_0x3024('0xf5')]:void 0x0,_0x5697a8=_0x1c4425['getFirstRange'](),_0x4b3cd4=Array['from'](_0x3f491a[_0x3024('0x19')]())[_0x3024('0x33')](_0x14a73d=>_0x14a73d[_0x3024('0x134')](_0x5697a8));if(!_0x4b3cd4)continue;const _0x2cc487=_0x4b3cd4[_0x3024('0x13e')](_0x5697a8);this[_0x3024('0x7e')](_0xe294c8)&&'insertion'==_0x1c4425['type']&&0x0!=_0x2cc487['length']||(_0x3f491a[_0x3024('0x108')](_0x4b3cd4),_0x2cc487['forEach'](_0x18fcd9=>{_0x3f491a[_0x3024('0x17c')](_0x18fcd9,_0x27e892);}),_0x3024('0xac')!=_0x1c4425[_0x3024('0x132')]&&_0x134cb1!=_0x1de251&&_0x3f491a[_0x3024('0x17c')](_0x4b3cd4[_0x3024('0xfd')](_0x5697a8),_0x134cb1));}const _0x229d91=[];for(const [_0x493653,_0x4bcedd]of _0x3f491a){const _0x225398=_0x25b08a(),_0xe10387={'key':_0xe294c8,'oldValue':_0x4bcedd,'newValue':_0x1de251};_0xe294c8['length']>0x25&&console[_0x3024('0x4e')](_0x3024('0xb0'),{'key':_0xe294c8});const _0x4c9dec=('attribute:'+(_0xe294c8+'|'+Et({'newValue':_0x1de251})))[_0x3024('0x11d')](0x0,0x3c),_0x21cafc=this[_0x3024('0x8')]({'id':_0x225398,'type':_0x4c9dec,'data':_0xe10387,'createdAt':new Date(),'authorId':_0x1facc7,'attributes':_0x13a079});_0x229d91[_0x3024('0xdc')](_0x21cafc),this['_addSuggestionMarker'](_0x4c9dec,_0x225398,_0x1facc7,_0x493653);}return _0x229d91;}[_0x3024('0x59')](_0x2db657){this[_0x3024('0x90')][_0x3024('0x54')](_0x2db657);}[_0x3024('0x38')](_0x2d47b8){this['_inlineAttributeKeys'][_0x3024('0x54')](_0x2d47b8);}[_0x3024('0xe9')](_0x5dd4d5,_0x3cd8a1=[],_0x48cf9e=[]){this[_0x3024('0xde')](_0x5dd4d5,(_0x5c48c6,..._0x1404e4)=>{this[_0x3024('0x12e')](()=>{_0x5c48c6(..._0x1404e4);});});for(const _0x45df8c of _0x3cd8a1)this[_0x3024('0x38')](_0x45df8c);for(const _0x4b5c79 of _0x48cf9e)this[_0x3024('0x59')](_0x4b5c79);}[_0x3024('0x72')](_0x4bb513){return _0x3024('0x13f')==_0x4bb513[_0x3024('0x132')]?_0x4bb513[_0x3024('0x7c')][_0x3024('0x28')]('|')[0x0]:null;}[_0x3024('0x75')](_0x1028d8,_0x640f35){const _0x3572d4=_0x1028d8['getFirstMarker']();this[_0x3024('0x6f')][_0x3024('0x11f')](_0x5bf5c7=>{_0x5bf5c7[_0x3024('0x11')](_0x3572d4,{'range':_0x640f35});});}[_0x3024('0x150')](_0x5a3497){const _0x223808=_0x5a3497['id'],_0x2a47c5=this[_0x3024('0x154')][_0x3024('0xb9')]['get'](_0x3024('0x123'));this[_0x3024('0xa')][_0x3024('0xbc')](_0x223808)||this[_0x3024('0xa')][_0x3024('0x6a')]({'channelId':_0x2a47c5,'threadId':_0x223808,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5087e4=this[_0x3024('0xa')][_0x3024('0xc4')](_0x223808);_0x5087e4['unbind']('isRemovable'),_0x5087e4['isRemovable']=!0x1,_0x5a3497['commentThread']=_0x5087e4;}[_0x3024('0xc6')](_0x4f2e07,_0x4ec40f,_0x1ad4c8,_0xb18d5d){if(_0x4f2e07['type']!=_0x4ec40f||_0x4f2e07[_0x3024('0x7c')]!=_0x1ad4c8||_0x4f2e07[_0x3024('0x10b')]['id']!=_0xb18d5d)throw this[_0x3024('0x154')][_0x3024('0x4')]('track-changes-suggestion-data-mismatch'),new _0x255fda(_0x3024('0x1a'),this);}[_0x3024('0xdf')](_0x5529e4,_0x144ad6){const _0xb4225f=_0x5529e4[_0x3024('0x137')]();if(_0x144ad6[_0x3024('0xc9')](_0xb4225f))_0x5529e4[_0x3024('0xa4')]();else{if(_0xb4225f['containsRange'](_0x144ad6)){const _0x5ea3c0=this[_0x3024('0x6f')][_0x3024('0x17')](_0x144ad6[_0x3024('0x163')]['nodeBefore'],_0x3024('0x51'));this['_setSuggestionRange'](_0x5529e4,this[_0x3024('0x6f')][_0x3024('0x12d')](_0xb4225f[_0x3024('0x163')],_0x5ea3c0));const _0x225724=_0x25b08a(),_0x26b772=_0x5529e4['creator']['id'],_0xcd470b=_0x5529e4[_0x3024('0x132')]+':'+_0x5529e4[_0x3024('0x7c')];this[_0x3024('0x8')]({'id':_0x225724,'type':_0xcd470b,'createdAt':new Date(),'authorId':_0x26b772,'data':_0x5529e4[_0x3024('0x49')],'attributes':_0x5529e4[_0x3024('0x3e')]});const _0x168d8d=this['_model']['createPositionAt'](_0x144ad6['end']['parent'],_0x3024('0x24')),_0x2d6cbb=this[_0x3024('0x6f')][_0x3024('0x12d')](_0x168d8d,_0xb4225f['end']);this[_0x3024('0xe6')](_0xcd470b,_0x225724,_0x26b772,_0x2d6cbb);}else{if(_0xb4225f[_0x3024('0x105')](_0x144ad6[_0x3024('0x163')])){const _0x46ad52=this[_0x3024('0x6f')][_0x3024('0x17')](_0x144ad6[_0x3024('0x163')][_0x3024('0x4c')],_0x3024('0x51'));this[_0x3024('0x75')](_0x5529e4,this[_0x3024('0x6f')][_0x3024('0x12d')](_0xb4225f[_0x3024('0x163')],_0x46ad52));}else{const _0x9c5590=this[_0x3024('0x6f')][_0x3024('0x17')](_0x144ad6[_0x3024('0x51')][_0x3024('0x7f')],_0x3024('0x24'));this[_0x3024('0x75')](_0x5529e4,this[_0x3024('0x6f')][_0x3024('0x12d')](_0x9c5590,_0xb4225f['end']));}}}}[_0x3024('0xf0')](_0x15c421){for(const {suggestion:_0x13c762,meta:_0x735e3a}of this[_0x3024('0x148')](_0x15c421,_0x3024('0xac'))){if(!_0x735e3a[_0x3024('0xf8')])continue;const _0xbc7b18=_0x13c762[_0x3024('0x84')]();for(const _0x5e9362 of _0xbc7b18)if(!_0x15c421[_0x3024('0x13e')](_0x5e9362)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1d05e6){const _0x3c350c=this[_0x3024('0x154')][_0x3024('0x5c')][_0x3024('0xa0')](_0x3024('0xd8'))['getUser'](_0x1d05e6);if(!_0x3c350c)throw new _0x255fda(_0x3024('0xd3'),this);return _0x3c350c;}[_0x3024('0xaa')](_0x1221ff){const _0x15fff5=this['editor'][_0x3024('0x5c')][_0x3024('0xa0')](_0x3024('0xd8')),_0x463567=_0x4a1e6a(_0x3024('0x11b')+_0x1221ff),_0x4ac671=_0x15fff5[_0x3024('0x10a')](_0x463567);return _0x4ac671||_0x15fff5[_0x3024('0x16e')]({'id':_0x463567,'name':_0x1221ff});}['_createSuggestion'](_0x6f507c,_0x386fad,_0x4fa913,_0x43e1cd,_0x2f17e3){const _0x4e7ec8=this[_0x3024('0x126')](_0x43e1cd),_0x35eed7=this[_0x3024('0x71')][_0x3024('0xc')](_0x6f507c,_0x386fad,_0x4fa913,_0x4e7ec8,_0x2f17e3,_0x2aec11=>{this[_0x3024('0x14a')](_0x4fa913,{'attributes':_0x2aec11});const _0x156a89=this[_0x3024('0x179')](_0x4fa913);this[_0x3024('0x68')](new Set([_0x156a89])),this['_refreshSuggestionsChain'](new Set([_0x156a89]));});return this[_0x3024('0x128')](_0x35eed7,_0x3024('0x14c'),()=>{this['_updateSuggestionData'](_0x4fa913,{'state':_0x3024('0x14e')});},{'priority':_0x3024('0x41')}),this[_0x3024('0x128')](_0x35eed7,_0x3024('0x40'),()=>{this['_updateSuggestionData'](_0x4fa913,{'state':_0x3024('0x177')});},{'priority':_0x3024('0x41')}),this['_suggestions'][_0x3024('0x17c')](_0x4fa913,_0x35eed7),this[_0x3024('0x16b')][_0x3024('0x17c')](_0x35eed7,_0x3024('0xb')),_0x35eed7;}[_0x3024('0xdd')](_0x3a144e){const _0x2ba0fb=_0x3a144e[_0x3024('0x28')](':');return{'group':_0x2ba0fb[0x0],'type':_0x2ba0fb[0x1],'subType':_0x2ba0fb[_0x3024('0x2')]>=0x5?_0x2ba0fb[0x2]:null,'id':_0x2ba0fb[_0x3024('0x2')]<0x5?_0x2ba0fb[0x2]:_0x2ba0fb[0x3],'authorId':_0x2ba0fb[_0x3024('0x2')]<0x5?_0x2ba0fb[0x3]:_0x2ba0fb[0x4],'markerCount':0x6==_0x2ba0fb[_0x3024('0x2')]?_0x2ba0fb[0x5]:null};}[_0x3024('0x162')](_0x499e7b,_0x7d11c5,_0x3ddf6d){const _0x39b4c7=_0x499e7b['getFirstRange'](),_0x35506e=_0x39b4c7[_0x3024('0x163')],_0x2ad953=_0x39b4c7[_0x3024('0x51')];this[_0x3024('0x75')](_0x499e7b,this[_0x3024('0x6f')][_0x3024('0x12d')](_0x35506e,_0x7d11c5));const _0x493ea4=_0x25b08a(),_0x3c4be1=_0x499e7b['creator']['id'],_0xd16c89=_0x499e7b[_0x3024('0x132')]+(_0x499e7b[_0x3024('0x7c')]?':'+_0x499e7b[_0x3024('0x7c')]:'');this[_0x3024('0x8')]({'id':_0x493ea4,'type':_0xd16c89,'createdAt':new Date(),'authorId':_0x3c4be1,'originalSuggestionId':_0x499e7b['id'],'attributes':_0x499e7b[_0x3024('0x3e')],'data':_0x499e7b['data']});const _0x1e646d=this[_0x3024('0x72')](_0x499e7b);(_0x3024('0x85')==_0x499e7b[_0x3024('0x132')]||_0x1e646d&&this[_0x3024('0x7e')](_0x1e646d))&&(_0x3ddf6d=this[_0x3024('0x6f')][_0x3024('0x145')](_0x3ddf6d[_0x3024('0x7f')])),this['_addSuggestionMarker'](_0xd16c89,_0x493ea4,_0x3c4be1,this[_0x3024('0x6f')]['createRange'](_0x3ddf6d,_0x2ad953));}[_0x3024('0x148')](_0x4a2b75,_0x28988b=null){const _0x82472e=[],_0x418ec2=this['editor'][_0x3024('0x5c')]['get'](_0x3024('0xd8'))['me'];Array[_0x3024('0x151')](_0x4a2b75)||(_0x4a2b75=[_0x4a2b75]);for(const _0x28946a of this['getSuggestions']()){if(!_0x28946a[_0x3024('0x144')])continue;if(_0x28988b&&_0x28946a[_0x3024('0x132')]!=_0x28988b)continue;let _0x4785e4=!0x1;for(const _0x134aa7 of _0x28946a[_0x3024('0x84')]()){for(const _0x7bb8ad of _0x4a2b75){const _0x4f61d1=_0x7bb8ad['start'][_0x3024('0xc9')](_0x134aa7[_0x3024('0x51')])||_0x7bb8ad['end'][_0x3024('0xc9')](_0x134aa7['start']);if(_0x4f61d1||_0x7bb8ad[_0x3024('0xfd')](_0x134aa7)){const _0x127f84=_0x7bb8ad[_0x3024('0xb6')](_0x134aa7)&&xt(this[_0x3024('0x6f')][_0x3024('0x104')],_0x134aa7['start'],_0x7bb8ad),_0x4dbe35=_0x134aa7[_0x3024('0xb6')](_0x7bb8ad)&&xt(this['_model'][_0x3024('0x104')],_0x7bb8ad['start'],_0x134aa7);_0x82472e[_0x3024('0xdc')]({'suggestion':_0x28946a,'meta':{'isOwn':_0x418ec2==_0x28946a['author'],'isNextTo':_0x4f61d1,'isInsideObject':_0x127f84,'containsRangeInObject':_0x4dbe35}}),_0x4785e4=!0x0;break;}}if(_0x4785e4)break;}}return _0x82472e;}['_addSuggestionMarker'](_0x16657b,_0x291a35,_0x6383de,_0x5c4e60,_0x13ce1a){this[_0x3024('0x6f')][_0x3024('0x11f')](_0x4b5ccc=>{let _0x2fac6e=_0x3024('0x9')+_0x16657b+':'+_0x291a35+':'+_0x6383de;_0x13ce1a&&(_0x2fac6e=_0x2fac6e+':'+_0x13ce1a),_0x4b5ccc[_0x3024('0x127')](_0x2fac6e,{'range':_0x5c4e60,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3024('0x43')](_0x19e4c5){const _0x1027b3=_0x19e4c5['previous'],_0x45e3e5=_0x19e4c5[_0x3024('0x130')];_0x19e4c5['previous']=null,_0x19e4c5[_0x3024('0x130')]=null,null!=_0x1027b3&&_0x1027b3[_0x3024('0x130')]==_0x19e4c5&&(_0x1027b3[_0x3024('0x130')]=_0x45e3e5),null!=_0x45e3e5&&_0x45e3e5['previous']==_0x19e4c5&&(_0x45e3e5[_0x3024('0x16a')]=_0x1027b3),'ready'==this[_0x3024('0x16b')][_0x3024('0xa0')](_0x19e4c5)&&(this[_0x3024('0x16b')]['set'](_0x19e4c5,_0x3024('0x3f')),this[_0x3024('0xa3')](_0x3024('0xaf'),_0x19e4c5,_0x1027b3,_0x45e3e5));}['_setSuggestionData'](_0x5dc8ca){const _0x4c7e76=_0x5dc8ca['id'],_0x44c105=this[_0x3024('0x25')](_0x5dc8ca);if(this['_adapter']&&this['_adapter'][_0x3024('0xbf')]){const _0x53560f=this['editor']['plugins'][_0x3024('0xa0')](_0x3024('0xa9')),_0x91df99=_0x44c105[_0x3024('0x8f')],_0xd63110=_0x44c105[_0x3024('0x7c')]?_0x44c105[_0x3024('0x132')]+':'+_0x44c105['subType']:_0x44c105[_0x3024('0x132')],_0x63d1fb=this[_0x3024('0x154')]['locale'],_0x577a98=_0x53560f[_0x3024('0x54')](_0x44f115(_0x63d1fb,_0x3024('0xea'))),_0x56959e={'id':_0x4c7e76,'type':_0xd63110,'hasComments':_0x91df99,'data':_0x5dc8ca[_0x3024('0x49')]||null,'originalSuggestionId':_0x5dc8ca[_0x3024('0x1f')]||null,'attributes':_0x44c105['attributes']};this[_0x3024('0x60')][_0x3024('0xbf')](_0x56959e)[_0x3024('0x31')](_0x19eb95=>{_0x44c105[_0x3024('0x113')]=!0x0,_0x53560f[_0x3024('0x1e')](_0x577a98),_0x19eb95&&_0x19eb95[_0x3024('0x166')]&&(this[_0x3024('0xe1')][_0x3024('0xa0')](_0x4c7e76)[_0x3024('0x166')]=_0x19eb95[_0x3024('0x166')]);})[_0x3024('0x14b')](_0x4e9110=>{throw _0x59dd10(_0x3024('0x110')),this[_0x3024('0x154')][_0x3024('0xfa')][_0x3024('0x176')]({'isUndoable':!0x1},()=>{_0x44c105['discard']();}),_0x44c105[_0x3024('0x9f')](),this[_0x3024('0xe1')]['delete'](_0x44c105['id']),this[_0x3024('0x16b')][_0x3024('0x108')](_0x44c105),_0x4e9110;});}return _0x44c105;}[_0x3024('0x7e')](_0x71710b){return this['_blockAttributeKeys']['has'](_0x71710b);}['_updateSuggestionData'](_0x128fe8,_0x424b25){const _0x3fb59a=this[_0x3024('0x154')]['plugins'][_0x3024('0xa0')](_0x3024('0xa9')),_0x6e8d0a=this['getSuggestion'](_0x128fe8);if(this[_0x3024('0x60')]&&this[_0x3024('0x60')][_0x3024('0xe3')]){if(_0x6e8d0a[_0x3024('0x113')]){const _0x941a16=_0x3fb59a[_0x3024('0x54')](_0x44f115(this[_0x3024('0x154')][_0x3024('0xb2')],_0x3024('0xea')));this[_0x3024('0x60')]['updateSuggestion'](_0x128fe8,_0x424b25)[_0x3024('0x31')](()=>{_0x3fb59a[_0x3024('0x1e')](_0x941a16);});}else _0x6e8d0a['on'](_0x3024('0x26'),()=>{this['_updateSuggestionData'](_0x128fe8,_0x424b25);});}}[_0x3024('0xe7')](_0x1e1584){if(!this['_adapter']||!this[_0x3024('0x60')][_0x3024('0x179')])throw new _0x255fda(_0x3024('0xd9'),this);return this[_0x3024('0x60')][_0x3024('0x179')](_0x1e1584);}[_0x3024('0x155')](_0x547eeb){const {id:_0x691f76,type:_0x545b63,subType:_0x23fdfc,authorId:_0x19e3c5}=this[_0x3024('0xdd')](_0x547eeb),_0x585b54=this[_0x3024('0xe1')][_0x3024('0xa0')](_0x691f76)||this[_0x3024('0x156')](_0x545b63,_0x23fdfc,_0x691f76,_0x19e3c5,{});switch(this[_0x3024('0xc6')](_0x585b54,_0x545b63,_0x23fdfc,_0x19e3c5),this[_0x3024('0x16b')]['get'](_0x585b54)){case _0x3024('0xb'):this['_getSuggestionData'](_0x691f76)[_0x3024('0x31')](_0x598523=>{let _0x8a951f=Promise[_0x3024('0x107')]();_0x598523[_0x3024('0x8f')]&&(_0x8a951f=this[_0x3024('0xa')][_0x3024('0x159')]({'channelId':this['editor'][_0x3024('0xb9')]['get'](_0x3024('0x123')),'threadId':_0x691f76})),_0x8a951f['then'](()=>{this[_0x3024('0x25')](_0x598523)['_saved']=!0x0;});}),this[_0x3024('0x16b')][_0x3024('0x17c')](_0x585b54,_0x3024('0x5e'));break;case _0x3024('0x3f'):this[_0x3024('0x14a')](_0x691f76,{'state':_0x3024('0x50')});case _0x3024('0xe'):this['_suggestionState'][_0x3024('0x17c')](_0x585b54,_0x3024('0x81')),this['fire'](_0x3024('0x39'),_0x585b54);break;case _0x3024('0x81'):this['fire'](_0x3024('0x138'),_0x585b54);}return _0x585b54[_0x3024('0x141')](_0x547eeb),_0x585b54;}[_0x3024('0x96')](_0x232c92){const _0x42f068=Array['from'](_0x232c92),_0x4c0801=_0x42f068['filter'](_0x4f3aad=>_0x3024('0x13f')==_0x4f3aad[_0x3024('0x132')]);this[_0x3024('0x167')](_0x4c0801);const _0x118566=_0x42f068['filter'](_0x427fb5=>!_0x427fb5[_0x3024('0x8a')]&&_0x3024('0x13f')!=_0x427fb5['type']),_0x12fad3=this[_0x3024('0x44')]({'skipNotAttached':!0x0})[_0x3024('0x17a')](_0x28caf8=>!_0x28caf8['isMultiRange']&&_0x3024('0x13f')!=_0x28caf8[_0x3024('0x132')]),_0x5111b1=_0x12fad3[_0x3024('0x17a')](_0xbccd5e=>!_0x232c92[_0x3024('0x14f')](_0xbccd5e)),_0x40661f=new Map(_0x12fad3[_0x3024('0x53')](_0x31403f=>[_0x31403f,this[_0x3024('0x71')][_0x3024('0x11a')](_0x31403f[_0x3024('0x132')],_0x31403f[_0x3024('0x7c')],_0x3024('0x164'))])),_0x510c3f=new Map(_0x12fad3['map'](_0x1c8813=>[_0x1c8813,_0x1c8813[_0x3024('0x137')]()])),_0x238bc5=new Set(),_0x4bdcd4=new Set();for(let _0x1a459c=0x0;_0x1a459c<_0x118566[_0x3024('0x2')];_0x1a459c++)_0x5998d4(_0x118566[_0x1a459c],_0x118566,_0x1a459c+0x1);for(let _0x487b94=0x0;_0x487b94<_0x118566['length'];_0x487b94++)_0x5998d4(_0x118566[_0x487b94],_0x5111b1,0x0);const _0x14241f=new Set();for(let _0x4f34f5=0x0;_0x4f34f5<_0x118566[_0x3024('0x2')];_0x4f34f5++){const _0x5b0748=_0x118566[_0x4f34f5];!_0x4bdcd4[_0x3024('0x14f')](_0x5b0748)&&_0x5b0748[_0x3024('0x16a')]&&(_0x14241f[_0x3024('0x54')](_0x5b0748[_0x3024('0x16a')]),_0x5b0748['previous'][_0x3024('0x130')]===_0x5b0748&&(_0x5b0748['previous'][_0x3024('0x130')]=null),_0x5b0748[_0x3024('0x16a')]=null),!_0x238bc5[_0x3024('0x14f')](_0x5b0748)&&_0x5b0748['next']&&(_0x14241f[_0x3024('0x54')](_0x5b0748[_0x3024('0x130')]),_0x5b0748[_0x3024('0x130')]['previous']===_0x5b0748&&(_0x5b0748['next']['previous']=null),_0x5b0748[_0x3024('0x130')]=null);}function _0x5998d4(_0x35deae,_0x4b394b,_0x405b35){for(let _0x568d83=_0x405b35;_0x568d83<_0x4b394b['length'];_0x568d83++){const _0x2b430b=_0x435224(_0x35deae,_0x4b394b[_0x568d83]);_0x2b430b&&(_0x2b430b[0x0][_0x3024('0x130')]=_0x2b430b[0x1],_0x2b430b[0x1][_0x3024('0x16a')]=_0x2b430b[0x0],_0x238bc5[_0x3024('0x54')](_0x2b430b[0x0]),_0x4bdcd4['add'](_0x2b430b[0x1]));}}function _0x435224(_0x50c474,_0x40c063){if(_0x50c474['author']['id']!==_0x40c063[_0x3024('0x1d')]['id'])return null;const _0x3b5307=_0x40661f['get'](_0x50c474)(_0x50c474,_0x40c063,_0x510c3f[_0x3024('0xa0')](_0x50c474),_0x510c3f[_0x3024('0xa0')](_0x40c063));if(!_0x3b5307)return null;return _0x40661f[_0x3024('0xa0')](_0x40c063)(_0x50c474,_0x40c063,_0x510c3f[_0x3024('0xa0')](_0x50c474),_0x510c3f[_0x3024('0xa0')](_0x40c063))?_0x3b5307[0x1][_0x3024('0x37')]&&_0x3b5307[0x1][_0x3024('0x37')]['length']?null:_0x3b5307:null;}_0x14241f[_0x3024('0x6d')]&&this[_0x3024('0x96')](_0x14241f);}[_0x3024('0x167')](_0x2c3dc1){if(0x0==_0x2c3dc1[_0x3024('0x2')])return;const _0x259fd6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2abe87=>'attribute'==_0x2abe87[_0x3024('0x132')]&&_0x2abe87['_isDataLoaded']),_0xd29c86=[],_0x3034da=new Map();for(const _0x15d7cc of _0x259fd6){const _0x39e619=_0x4a1e6a(_0x15d7cc[_0x3024('0x3e')]);_0x3034da['has'](_0x39e619)||(_0x3034da[_0x3024('0x17c')](_0x39e619,_0xd29c86['length']),_0xd29c86[_0x3024('0xdc')]([]));const _0x4720d5=_0x3034da[_0x3024('0xa0')](_0x39e619);_0xd29c86[_0x4720d5][_0x3024('0xdc')](_0x15d7cc);}!function(){_0xd29c86['sort']((_0x446619,_0x714fc4)=>{const _0x4573fd=_0x446619[0x0]['createdAt'],_0x264eeb=_0x714fc4[0x0]['createdAt'];return _0x4573fd==_0x264eeb?_0x446619[0x0]['attributes'][_0x3024('0x1')]<_0x714fc4[0x0][_0x3024('0x3e')][_0x3024('0x1')]?-0x1:0x1:_0x4573fd<_0x264eeb?-0x1:0x1;});for(const _0xf3aa4 of _0xd29c86)_0xf3aa4[_0x3024('0x3b')]((_0x1b8104,_0x148c1a)=>_0x1b8104['id']<_0x148c1a['id']?-0x1:0x1);}();for(let _0x51884c=0x0;_0x51884c<_0xd29c86['length'];_0x51884c++){if(0x0==_0xd29c86[_0x51884c][_0x3024('0x2')])continue;const _0x147cd1=[];for(let _0x5499b6=_0x51884c+0x1;_0x5499b6<_0xd29c86[_0x3024('0x2')];_0x5499b6++)0x0!=_0xd29c86[_0x5499b6][_0x3024('0x2')]&&_0x3ef553(_0xd29c86[_0x51884c],_0xd29c86[_0x5499b6])&&_0x147cd1[_0x3024('0xdc')](_0x5499b6);for(const _0x43db33 of _0x147cd1)_0xd29c86[_0x51884c]=_0xd29c86[_0x51884c][_0x3024('0x115')](_0xd29c86[_0x43db33]),_0xd29c86[_0x43db33]=[];}for(const _0x124e69 of _0xd29c86)for(let _0x53604c=0x0;_0x53604c<_0x124e69[_0x3024('0x2')];_0x53604c++)_0x124e69[_0x53604c][_0x3024('0x130')]=_0x124e69[_0x53604c+0x1]||null;for(const _0x4ee21f of _0xd29c86)for(let _0x10c9dd=0x0;_0x10c9dd<_0x4ee21f[_0x3024('0x2')];_0x10c9dd++)_0x4ee21f[_0x10c9dd][_0x3024('0x16a')]=_0x4ee21f[_0x10c9dd-0x1]||null;function _0x3ef553(_0x4dcc31,_0x209d39){if(_0x4dcc31[0x0][_0x3024('0x3e')][_0x3024('0x1')]!==_0x209d39[0x0][_0x3024('0x3e')]['groupId']&&_0x4dcc31[0x0][_0x3024('0x1d')]!==_0x209d39[0x0]['author'])return!0x1;if(!function(_0x253df1,_0x176ca4){if(!_0x253df1[_0x3024('0x8f')]&&!_0x176ca4[_0x3024('0x8f')])return!0x0;if(_0x253df1[_0x3024('0x8f')]&&_0x176ca4[_0x3024('0x8f')])return!0x1;if(_0x253df1[_0x3024('0x8f')]&&_0x176ca4[_0x3024('0x166')]<_0x253df1[_0x3024('0x37')][_0x3024('0x5')]['get'](0x0)[_0x3024('0x166')])return!0x0;if(_0x176ca4['hasComments']&&_0x253df1[_0x3024('0x166')]<_0x176ca4[_0x3024('0x37')][_0x3024('0x5')][_0x3024('0xa0')](0x0)[_0x3024('0x166')])return!0x0;return!0x1;}(_0x4dcc31[0x0],_0x209d39[0x0]))return!0x1;const _0x253833=_0x5a017a(_0x4dcc31[0x0][_0x3024('0x3e')],'groupId'),_0x48df63=_0x5a017a(_0x209d39[0x0][_0x3024('0x3e')],_0x3024('0x1'));if(!_0x2963a5(_0x253833,_0x48df63))return!0x1;return!!_0x4dcc31[_0x3024('0x9b')](_0x2b1801=>_0x209d39[_0x3024('0x30')](_0x5e79c7=>_0x2b1801[_0x3024('0x137')]()[_0x3024('0xc9')](_0x5e79c7['getFirstRange']())))&&_0x209d39['every'](_0x1fa442=>_0x4dcc31['some'](_0x53ea61=>_0x1fa442[_0x3024('0x137')]()['isEqual'](_0x53ea61[_0x3024('0x137')]())));}}[_0x3024('0x68')](_0x4d8794){const _0x391185=Array[_0x3024('0xec')](_0x4d8794),_0x28c190=this['getSuggestions']({'skipNotAttached':!0x0}),_0x7d52d3=_0x28c190[_0x3024('0x17a')](_0x26b6e1=>!_0x4d8794[_0x3024('0x14f')](_0x26b6e1)),_0x5f2519=new Map(_0x391185['map'](_0x24aeed=>[_0x24aeed,this[_0x3024('0x71')][_0x3024('0x11a')](_0x24aeed[_0x3024('0x132')],_0x24aeed[_0x3024('0x7c')],_0x3024('0x175'))])),_0x262efb=new Map(_0x28c190[_0x3024('0x53')](_0x53db9c=>[_0x53db9c,_0x53db9c[_0x3024('0x84')]()]));for(let _0x38fa5b=0x0;_0x38fa5b<_0x391185[_0x3024('0x2')];_0x38fa5b++){if(_0x1a4c1e(this,_0x391185[_0x38fa5b],_0x391185,_0x38fa5b+0x1))return!0x0;}for(let _0x51cbb8=0x0;_0x51cbb8<_0x391185[_0x3024('0x2')];_0x51cbb8++){if(_0x1a4c1e(this,_0x391185[_0x51cbb8],_0x7d52d3,0x0))return!0x0;}return!0x1;function _0x1a4c1e(_0x826590,_0x21e1e9,_0x1e4491,_0x77e2e9){for(let _0x48626d=_0x77e2e9;_0x48626d<_0x1e4491[_0x3024('0x2')];_0x48626d++){const _0x5e9502=_0x1e4491[_0x48626d];if(_0x5e9502[_0x3024('0x132')]!==_0x21e1e9[_0x3024('0x132')]||_0x5e9502[_0x3024('0x1d')]['id']!==_0x21e1e9[_0x3024('0x1d')]['id']||_0x5e9502[_0x3024('0x7c')]!==_0x21e1e9[_0x3024('0x7c')])continue;if(!Ft(_0x21e1e9,_0x5e9502,['groupId']))continue;if(_0x3024('0x13f')==_0x21e1e9['type']&&_0x21e1e9[_0x3024('0x49')][_0x3024('0xf5')]!=_0x5e9502['data'][_0x3024('0xf5')])continue;if(_0x3024('0x13f')==_0x21e1e9[_0x3024('0x132')]&&_0x826590[_0x3024('0x7e')](_0x21e1e9[_0x3024('0x49')][_0x3024('0xb8')]))continue;if(_0x3024('0x85')==_0x21e1e9[_0x3024('0x132')]){const _0x2d9d55=_0x826590[_0x3024('0x154')]['model'],_0x285a03=_0x21e1e9[_0x3024('0xed')]();if(_0x285a03&&(_0x2d9d55[_0x3024('0x104')][_0x3024('0x86')](_0x285a03)||_0x2d9d55['schema'][_0x3024('0xc1')](_0x285a03)))continue;}const _0x2939b9=_0x5f2519['get'](_0x21e1e9),_0x2b2773=_0x262efb[_0x3024('0xa0')](_0x21e1e9),_0xabbb81=_0x262efb[_0x3024('0xa0')](_0x5e9502),_0xa39de6=_0x21e1e9[_0x3024('0x37')]&&_0x21e1e9[_0x3024('0x37')][_0x3024('0x2')],_0x384b2d=_0x5e9502['commentThread']&&_0x5e9502['commentThread'][_0x3024('0x2')];if(!_0xa39de6&&_0x2939b9(_0xabbb81,_0x2b2773))return _0x826590[_0x3024('0x133')](_0x5e9502,_0x21e1e9),_0x262efb['delete'](_0x21e1e9),!0x0;if(!_0x384b2d&&_0x2939b9(_0x2b2773,_0xabbb81))return _0x826590['_joinSuggestions'](_0x21e1e9,_0x5e9502),_0x262efb['delete'](_0x5e9502),!0x0;}return!0x1;}}[_0x3024('0x133')](_0x570e1e,_0x5b2a20){if(_0x570e1e['isMultiRange'])for(const _0x236588 of _0x5b2a20[_0x3024('0x84')]())_0x570e1e['addRange'](_0x236588);else{const _0x4501a3=_0x5b2a20['getFirstRange']()[_0x3024('0x51')];this[_0x3024('0x75')](_0x570e1e,this['_model'][_0x3024('0x12d')](_0x570e1e[_0x3024('0x137')]()[_0x3024('0x163')],_0x4501a3));}_0x5b2a20[_0x3024('0xa4')]();}['_getMarkerAnnouncementText'](_0x5867e0,_0x55daad){const _0x526751=_0x5867e0[_0x3024('0x131')](_0x3024('0x160'))||_0x5867e0['startsWith'](_0x3024('0x13f'))?_0x3024('0x103'):_0x5867e0[_0x3024('0x15c')]();return _0x44f115(this[_0x3024('0x154')]['locale'],_0x55daad+'_'+_0x526751+'_SUGGESTION_ANNOUNCEMENT');}[_0x3024('0x142')](){const _0x43daed=this[_0x3024('0x154')];_0x471275(this[_0x3024('0x6f')],({left:_0x36c3d5,entered:_0x31460d})=>{const _0x31b552=[];for(const _0x578499 of _0x36c3d5){const {group:_0x16b92f,type:_0xf1eb13}=this['_splitMarkerName'](_0x578499['name']);if(_0x3024('0x168')===_0x16b92f){_0x31b552[_0x3024('0xdc')](this[_0x3024('0x91')](_0xf1eb13,'LEAVE'));break;}}for(const _0xe701d0 of _0x31460d){const {group:_0x6637b7,type:_0x3cc97c}=this[_0x3024('0xdd')](_0xe701d0[_0x3024('0x17d')]);if(_0x3024('0x168')===_0x6637b7){_0x31b552['push'](this[_0x3024('0x91')](_0x3cc97c,'ENTER'));break;}}_0x31b552[_0x3024('0x2')]&&_0x43daed['ui'][_0x3024('0x120')][_0x3024('0x55')](_0x3024('0x98'),_0x31b552[_0x3024('0x175')]('\x20'));});}[_0x3024('0x32')](_0x379c7f){if(this[_0x3024('0xbe')])return!0x1;const _0xe5715a=this[_0x3024('0x154')],_0x2f68fb=_0xe5715a[_0x3024('0xfa')][_0x3024('0xf9')]['differ'][_0x3024('0x4d')]();if(0x0==_0x2f68fb[_0x3024('0x2')])return!0x1;const _0x51dd18=[],_0x60fa50=_0x2f68fb[_0x3024('0x17a')](_0x5ab1de=>_0x3024('0x13f')==_0x5ab1de[_0x3024('0x132')]),_0x6e32ff=_0x2f68fb[_0x3024('0x17a')](_0xe610b0=>_0x3024('0x35')==_0xe610b0['type']&&_0x3024('0x100')!=_0xe610b0['name']),_0x181f1b=_0x2f68fb[_0x3024('0x17a')](_0x2ce394=>_0x3024('0x1e')==_0x2ce394[_0x3024('0x132')]&&'$text'!=_0x2ce394[_0x3024('0x17d')]);for(const _0x54195b of _0x60fa50)_0x51dd18[_0x3024('0xdc')]({'key':_0x54195b[_0x3024('0x12c')],'newValue':_0x54195b['attributeNewValue'],'oldValue':_0x54195b[_0x3024('0x22')],'range':Ut(_0x54195b[_0x3024('0x10c')],_0xe5715a[_0x3024('0xfa')])});for(const _0x53aa50 of _0x6e32ff){const _0x100cda=_0x181f1b[_0x3024('0x33')](_0x3f9747=>_0x3f9747[_0x3024('0x83')][_0x3024('0xc9')](_0x53aa50[_0x3024('0x83')]));_0x100cda&&_0x51dd18[_0x3024('0xdc')]({'key':_0x3024('0x10e'),'newValue':_0x53aa50[_0x3024('0x17d')],'oldValue':_0x100cda[_0x3024('0x17d')],'range':_0xe5715a[_0x3024('0xfa')]['createRangeOn'](_0x53aa50[_0x3024('0x83')]['nodeAfter'])});}return 0x0!=_0x51dd18[_0x3024('0x2')]&&this[_0x3024('0xab')](_0x379c7f,_0x51dd18);}['_processAttributeSuggestions'](_0x55efda){let _0xfd803f=!0x1;const _0x523020=this[_0x3024('0x154')][_0x3024('0xfa')][_0x3024('0xf9')]['differ'][_0x3024('0x13a')]()[_0x3024('0x17a')](_0x582e17=>_0x582e17['data'][_0x3024('0x64')]&&_0x582e17['name'][_0x3024('0x131')](_0x3024('0xc7')));for(const _0x3d331e of _0x523020){const {subType:_0x10e632,id:_0x29b9db}=this[_0x3024('0xdd')](_0x3d331e[_0x3024('0x17d')]),_0x669740=_0x10e632[_0x3024('0x28')]('|')[0x0];for(const _0x9c9bac of this[_0x3024('0x44')]({'skipNotAttached':!0x0}))_0x9c9bac['id']!=_0x29b9db&&'attribute'==_0x9c9bac[_0x3024('0x132')]&&_0x9c9bac[_0x3024('0x49')]&&_0x9c9bac['data'][_0x3024('0xb8')]==_0x669740&&_0x9c9bac[_0x3024('0x137')]()[_0x3024('0x134')](_0x3d331e[_0x3024('0x49')]['newRange'])&&(this[_0x3024('0x48')](_0x9c9bac,_0x3d331e['data'][_0x3024('0x64')],_0x55efda),_0xfd803f=!0x0);}return _0xfd803f;}[_0x3024('0x12e')](_0xbfee5b){this[_0x3024('0x154')],(this[_0x3024('0xbe')]=!0x0,_0xbfee5b());}[_0x3024('0xb7')](_0x211ba0){const _0x3ca0b5=this['_isBlockAttribute'](_0x211ba0),_0x4e2de5=this[_0x3024('0xd7')][_0x3024('0x14f')](_0x211ba0);return _0x3ca0b5||_0x4e2de5;}['_reduceExistingSuggestions'](_0x4a645d,_0x5a8068){if(0x0==_0x5a8068['length'])return!0x1;let _0x2aa86b=!0x1;for(const _0x16be1b of _0x5a8068){const _0x5b908d=this[_0x3024('0x148')](_0x16be1b['range'],_0x3024('0x13f'))[_0x3024('0x17a')](_0x3c3692=>!_0x3c3692[_0x3024('0x89')][_0x3024('0x23')])[_0x3024('0x53')](_0x5c7ac3=>_0x5c7ac3['suggestion']),_0x1a89d7=_0x4a1e6a({'newValue':_0x16be1b[_0x3024('0x76')]});_0x5b908d[_0x3024('0x17a')](_0x59473c=>{const [_0x847c0e,_0x38e8af]=_0x59473c[_0x3024('0x7c')][_0x3024('0x28')]('|');return _0x847c0e==_0x16be1b[_0x3024('0xb8')]&&_0x38e8af!=_0x1a89d7;})[_0x3024('0x36')](_0x2dba06=>{this['_reduceSuggestionAttributeRange'](_0x2dba06,_0x16be1b[_0x3024('0x10c')],_0x4a645d),_0x2aa86b=!0x0;});}return _0x2aa86b;}['_reduceSuggestionAttributeRange'](_0xa821d2,_0x24f636,_0x48e644){const _0x32ee03=_0xa821d2[_0x3024('0x137')]()[_0x3024('0x13e')](_0x24f636);0x0!==_0x32ee03[_0x3024('0x2')]?0x1!==_0x32ee03['length']?this[_0x3024('0x162')](_0xa821d2,_0x24f636[_0x3024('0x163')],_0x24f636['end']):this[_0x3024('0x75')](_0xa821d2,_0x32ee03[0x0]):_0x48e644[_0x3024('0x5b')](_0xa821d2[_0x3024('0x14d')]());}}class Bt{constructor(_0x4b00f9){this[_0x3024('0xcb')]=_0x4b00f9,this['_model']=_0x4b00f9[_0x3024('0xfa')],this['_customCallbacks']=new Map(),this[_0x3024('0xf3')]=new Map(),this['_registerDefaultCallbacks']();}[_0x3024('0xc')](_0x53f81d,_0x3ce7ab,_0x23945a,_0x52054c,_0x43a494,_0xefb61e){return new _0x1f2ce3(this[_0x3024('0x6f')],{'type':_0x53f81d,'subType':_0x3ce7ab,'id':_0x23945a,'author':_0x52054c,'creator':_0x52054c,'attributes':_0x43a494,'onAttributesChange':_0xefb61e,'onAccept':(..._0x2ad376)=>this[_0x3024('0x11a')](_0x53f81d,_0x3ce7ab,_0x3024('0x14c'))(..._0x2ad376),'onDiscard':(..._0x51cc64)=>this[_0x3024('0x11a')](_0x53f81d,_0x3ce7ab,'discard')(..._0x51cc64)});}[_0x3024('0xd5')](_0x41c913,_0x4e6d30,_0x45e9c0,_0x497e20){const _0x414e1c=_0x41c913+':'+_0x4e6d30+':'+_0x45e9c0;this[_0x3024('0xfb')][_0x3024('0x17c')](_0x414e1c,_0x497e20);}[_0x3024('0x11a')](_0x5f4a6b,_0x2e566a,_0x346cbc){const _0x314900=_0x5f4a6b+':'+_0x2e566a+':'+_0x346cbc;return this[_0x3024('0xfb')][_0x3024('0xa0')](_0x314900)||this[_0x3024('0xf3')]['get'](_0x5f4a6b+':'+_0x346cbc);}[_0x3024('0x70')](){const _0x56bed8=()=>!0x1,_0x58de8d=_0x2f78b4=>{_0x2f78b4[_0x3024('0x3b')]((_0x5e5c14,_0x5ad484)=>_0x5e5c14['start'][_0x3024('0x79')](_0x5ad484[_0x3024('0x163')])?0x1:-0x1),this['_model'][_0x3024('0x11f')](_0x59456e=>{for(const _0x58bc65 of _0x2f78b4){let _0x662168;_0x662168=_0x58bc65['end'][_0x3024('0x12a')]&&_0x58bc65[_0x3024('0x51')][_0x3024('0x7f')]==_0x58bc65[_0x3024('0x163')][_0x3024('0xf2')]?_0x59456e[_0x3024('0xcf')](_0x58bc65[_0x3024('0x163')]['nodeAfter'],'on'):_0x59456e[_0x3024('0xcf')](_0x58bc65),this['_model']['deleteContent'](_0x662168,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1bdf32=(_0x295db5,_0x14f3ed)=>{_0x14f3ed&&this['_model']['change'](_0x3e0dcb=>{const {commandName:_0x535004,commandParams:_0x390942=[]}=_0x14f3ed,_0x188e14=_0x295db5[_0x3024('0x53')](_0x4e7849=>(Rt(_0x4e7849)&&(_0x4e7849=this[_0x3024('0x6f')][_0x3024('0x12d')](_0x4e7849['end'])),_0x4e7849))['filter'](_0x2b9a6b=>_0x3024('0xb5')!==_0x2b9a6b[_0x3024('0xd0')][_0x3024('0x6e')]);if(_0x188e14[_0x3024('0x2')]<0x1)return;const _0xb76483=Array[_0x3024('0xec')](this[_0x3024('0x6f')]['document'][_0x3024('0x118')][_0x3024('0x84')]())['map'](_0x54ab81=>_0x205e8b[_0x3024('0x15b')](_0x54ab81));_0x3e0dcb[_0x3024('0xd')](_0x188e14);for(const _0x209b22 of this[_0x3024('0xcb')]['commands']['commands']())_0x209b22['refresh']();_0x390942[_0x3024('0xdc')]({'forceDefaultExecution':!0x0}),this[_0x3024('0xcb')][_0x3024('0xf1')](_0x535004,..._0x390942);const _0x445ed2=_0xb76483[_0x3024('0x17a')](_0x5c45b2=>_0x3024('0xb5')!=_0x5c45b2[_0x3024('0xd0')][_0x3024('0x6e')]);_0x445ed2['length']>0x0&&_0x3e0dcb[_0x3024('0xd')](_0x445ed2);for(const _0x400d0d of _0xb76483)_0x400d0d['detach']();});},_0x1c987c=(_0xc71e00,_0x45f011)=>0x1==_0xc71e00[_0x3024('0x2')]&&0x1==_0x45f011['length']&&_0xc71e00[0x0][_0x3024('0x51')][_0x3024('0xc9')](_0x45f011[0x0][_0x3024('0x163')]),_0xc9ab48=(_0x2f3d8a,_0x4069e6,_0x5a577e,_0x5cda3c)=>Gt(_0x2f3d8a,_0x4069e6,_0x5a577e,_0x5cda3c,this[_0x3024('0x6f')])?[_0x2f3d8a,_0x4069e6]:Gt(_0x4069e6,_0x2f3d8a,_0x5cda3c,_0x5a577e,this[_0x3024('0x6f')])?[_0x4069e6,_0x2f3d8a]:null;this[_0x3024('0xf3')][_0x3024('0x17c')]('insertion:accept',_0x56bed8),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x2a'),_0x58de8d),this['_defaultCallbacks']['set']('insertion:join',_0x1c987c),this[_0x3024('0xf3')]['set'](_0x3024('0x8e'),_0xc9ab48),this[_0x3024('0xf3')]['set'](_0x3024('0x74'),_0x58de8d),this['_defaultCallbacks'][_0x3024('0x17c')](_0x3024('0x9d'),_0x56bed8),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0xf7'),_0x1c987c),this[_0x3024('0xf3')]['set'](_0x3024('0xb3'),_0xc9ab48),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x65'),_0x1bdf32),this[_0x3024('0xf3')]['set'](_0x3024('0x58'),_0x56bed8),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x106'),_0x1c987c),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x10'),_0x56bed8),this[_0x3024('0xf3')]['set'](_0x3024('0xc2'),_0x1bdf32),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x87'),_0x56bed8),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x146'),_0x1c987c),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x47'),_0x56bed8),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0xc3'),_0x56bed8),this['_defaultCallbacks'][_0x3024('0x17c')](_0x3024('0xe0'),(_0x4283a1,_0x3b286c)=>{if(!_0x3b286c)return;const _0x4fe540=this[_0x3024('0xcb')]['plugins'][_0x3024('0xa0')](p);this[_0x3024('0x6f')][_0x3024('0x11f')](_0xc1f66b=>{if('$elementName'==_0x3b286c['key'])for(const _0x351796 of _0x4283a1){const _0x323a80=_0x351796[_0x3024('0x163')]['nodeAfter'],_0x4e5124=_0x3b286c['oldValue'];_0xc1f66b['rename'](_0x323a80,_0x4e5124);}else{if(_0x4fe540[_0x3024('0x7e')](_0x3b286c['key']))for(const _0xac1e81 of _0x4283a1)void 0x0!==_0x3b286c['oldValue']?_0xc1f66b[_0x3024('0x18')](_0x3b286c['key'],_0x3b286c[_0x3024('0xf5')],_0xac1e81[_0x3024('0x163')][_0x3024('0xf2')]):_0xc1f66b[_0x3024('0x42')](_0x3b286c[_0x3024('0xb8')],_0xac1e81[_0x3024('0x163')][_0x3024('0xf2')]);else for(const _0x31a22a of _0x4283a1)_0x3b286c[_0x3024('0xf5')]?_0xc1f66b[_0x3024('0x18')](_0x3b286c[_0x3024('0xb8')],_0x3b286c[_0x3024('0xf5')],_0x31a22a):_0xc1f66b[_0x3024('0x42')](_0x3b286c['key'],_0x31a22a);}});}),this['_defaultCallbacks'][_0x3024('0x17c')](_0x3024('0x16c'),_0x1c987c);}}function xt(_0x8d611d,_0x11b7d7,_0x2d8bb2){for(const _0x1564dd of _0x11b7d7[_0x3024('0x7f')][_0x3024('0xf')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1564dd[_0x3024('0xd0')]==_0x1564dd)return!0x1;if(!_0x2d8bb2[_0x3024('0x80')](_0x1564dd))return!0x1;if(_0x8d611d['isObject'](_0x1564dd)||_0x8d611d[_0x3024('0xc1')](_0x1564dd))return!0x0;}return!0x1;}function Rt(_0x5f514d){return _0x5f514d['end'][_0x3024('0x7f')]==_0x5f514d[_0x3024('0x163')][_0x3024('0xf2')]&&_0x5f514d[_0x3024('0x51')][_0x3024('0x11e')];}function Tt(_0x590a22,_0x414f4e,_0x379cd5,_0x236590){const _0x156a1f=_0x2fe15e=>!_0x2fe15e['item']['is'](_0x3024('0x15f'))&&!_0x236590[_0x3024('0x86')](_0x2fe15e['item']),_0x582da0=_0x590a22[_0x3024('0x163')][_0x3024('0x111')](_0x156a1f),_0x734f88=_0x590a22[_0x3024('0x51')]['getLastMatchingPosition'](_0x156a1f,{'direction':_0x3024('0xcd')});return(!_0x590a22[_0x3024('0x163')][_0x3024('0xc9')](_0x582da0)||!_0x590a22[_0x3024('0x51')][_0x3024('0xc9')](_0x734f88))&&(_0x582da0[_0x3024('0x79')](_0x734f88)?_0x379cd5[_0x3024('0x11')](_0x414f4e,{'range':_0x379cd5[_0x3024('0x12d')](_0x582da0,_0x734f88)}):_0x379cd5['removeMarker'](_0x414f4e),!0x0);}function Et(_0x4634f9){return _0x4a1e6a(_0x4634f9);}function Vt(_0x97cd0){const _0x49a638=_0x97cd0[_0x3024('0x163')]['nodeAfter'];return _0x49a638&&_0x49a638['is']('element');}function Ut(_0x1ed39d,_0x10571e){return null==_0x1ed39d['end'][_0x3024('0x4c')]&&_0x1ed39d[_0x3024('0x51')][_0x3024('0x7f')]==_0x1ed39d['start'][_0x3024('0xf2')]?Ot(_0x1ed39d[_0x3024('0x163')][_0x3024('0xf2')],_0x10571e):_0x1ed39d;}function Ot(_0x40649d,_0x26f47d){const _0xb459bf=_0x26f47d['schema']['isObject'](_0x40649d)||_0x26f47d[_0x3024('0x104')]['isSelectable'](_0x40649d);return _0x26f47d[_0x3024('0x12d')](_0x26f47d['createPositionAt'](_0x40649d,_0x3024('0x149')),_0xb459bf?_0x26f47d[_0x3024('0x153')](_0x40649d):_0x26f47d[_0x3024('0x17')](_0x40649d,_0x3024('0x51')));}function Gt(_0x5d0630,_0x3d8217,_0x2f8c7e,_0x3e84f6,_0x52d8be){if(!Ft(_0x5d0630,_0x3d8217))return!0x1;if(_0x2f8c7e[_0x3024('0x51')][_0x3024('0xc9')](_0x3e84f6[_0x3024('0x163')]))return!0x0;if(_0x5d0630[_0x3024('0x132')]!=_0x3d8217[_0x3024('0x132')])return!0x1;if(!_0x2f8c7e[_0x3024('0x51')]['isTouching'](_0x3e84f6[_0x3024('0x163')]))return!0x1;const _0x36dc69=_0x52d8be[_0x3024('0x12d')](_0x2f8c7e[_0x3024('0x51')],_0x3e84f6['start'])[_0x3024('0x172')]();for(const _0x480150 of _0x36dc69)if([_0x3024('0x67'),'elementEnd'][_0x3024('0xad')](_0x480150[_0x3024('0x132')])&&_0x52d8be[_0x3024('0x104')][_0x3024('0xc1')](_0x480150['item']))return!0x1;return!0x0;}function Ft(_0x218f8b,_0x5de237,_0x41bc5a=[]){return!(!_0x218f8b[_0x3024('0x27')]||!_0x5de237[_0x3024('0x27')])&&_0x2963a5(_0x5a017a(_0x218f8b[_0x3024('0x3e')],_0x41bc5a),_0x5a017a(_0x5de237[_0x3024('0x3e')],_0x41bc5a));}function Pt(_0x5c97bb,_0x94e3fa){const _0x225779=Lt(_0x5c97bb['attributes']),_0x1b588b=Lt(_0x94e3fa);if(!_0x5c97bb[_0x3024('0x27')])return!0x1;for(const _0x5e149d of Object[_0x3024('0x19')](_0x1b588b))if(!_0x2963a5(_0x225779[_0x5e149d],_0x1b588b[_0x5e149d]))return!0x1;return!0x0;}function Lt(_0x4fb839){const _0x3130aa=Object['assign']({},_0x4fb839);return delete _0x3130aa['skipNestingCheck'],delete _0x3130aa[_0x3024('0xdb')],_0x3130aa;}
|
|
23
|
+
const _0x12f0=['isLimit','batch','_descriptionFactory','_processAttributeChanges','default','containsPosition','suggestion:','isRemovable','name','$marker','formatBlock','_inlineAttributeKeys','getContainedElement','collaboration.channelId','containsRange','_recordAttributeSuggestions','markerToData','showSuggestionHighlights','markDeletion','never','suggestionLoaded','attribute:join','editingDowncast','createdAt','insertContent','addSuggestionData','_refreshAttributeSuggestionsChain','values','schema','isAtStart','change','getAncestors','discardSelectedSuggestions','model','differ','attributeKey','isMultiRange','containerElement','sort','config','set','discard','getWalker','move','suggestion:attribute:','writer','isIntersecting','getUser','_enabledCommands','consumable','commentThread','attributes','markInsertion','_joinWithAdjacentSuggestions','getChanges','lowest','isCollapsed','createRangeOn','trackChangesCommand','getSuggestions','getChangedMarkers','getMarkers','_registerInlineAttribute','markMultiRangeBlockFormat','originalSuggestionId','unbindElementFromMarkerName','fire','value','nodeAfter','update:suggestion','$elementName','parent','requires','getAllAdjacentSuggestions','_suggestionFactory','getAttribute','_blockAttributeKeys','return','markerNameToElements','warn','removeMarkers','_checkSuggestionCorrectness','root','fetchCommentThread','isBefore','oldValue','_addSuggestionMarker','key','getCommentThread','splice','_saved','containsItem','ck-suggestion-marker','_splitMarkerName','$textProxy','meta','multi','_joinSuggestions','author','from','suggestionUnloaded','markerToHighlight','catch','data-suggestion','acceptSelectedSuggestions','comments','addCommentThread','markers','addClass','FORMATTING','authoredAt','options','markerReady','_handleNewSuggestionMarker','_defaultCallbacks','formatBlock:discard','isEqual','plugins','setAttribute','change:_saved','ck-suggestion-marker-formatInline','push','upcast','start','_commentsRepository','addSuggestion','_getAttributeKey','highest','_initAriaMarkerChangeAnnouncements','trackChanges.mergeNestedSuggestions','pop','type','external:','trackChanges','fromCharCode','_isDataLoaded','createPositionBefore','remove','includes','getFirstMarker','locale','ariaLiveAnnouncer','accepted','insertion:join','trackChanges.trackFormatChanges','removeAttribute','formatInline:accept','suggestionChanged','removeClass','next','execute','backward','document','_adapter','commandName','formatInline','groupId','forceDefaultExecution','_rangeIsInLocalUserInsertion','_removeSuggestion','accept','_cutOutSuggestionMarker','rootName','TrackChangesEditing','elementEnd','oldRange','nodeBefore','after','conversion','elementToElement','toJSON','refresh','size','assign','multipleBlocks','for','buildSuggestion','$graveyard','every','isBlock','get','filter','discardAllSuggestions','addUser','formatGroupId','applyOperation','moveTargetPosition','formatInline:','documentSelection','isAtEnd','bindElementToMarker','pluginName','markerName','previous','track-changes-enable-command-twice','item','clear','join','attribute:accept','_mergeNestedSuggestions','_reduceExistingSuggestions','registerPostFixer','acceptSuggestion','normal','startsWith','formatBlock:accept','skipNestingCheck','removed','insertion:','isOwn','tablePasteChainId','formatBlock:join','PENDING_ACTION_SUGGESTION','CommentsRepository','isArray','createElement','getSuggestionCallback','_model','enqueueChange','discardSuggestion','consume','updateMarker','activeMarkers','_isBlockAttribute','position','isLocal','rejected','isAfter','map','resolve','_onDiscard','attributeOldValue','stop','rename','split','createRange','$text','editor','clone','open','createRangeIn','getShiftedBy','range','removeMarker:suggestion:attribute','isObject','markMultiRangeInsertion','_registerBlockAttribute','enableReadOnlyMode','_suggestions','_findSuggestions','updateSuggestion','substr','forEach','track-changes-user-not-found','suggestion','_editor','selection','Users','addMarkerName','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.','deletion:discard','setTo','getMultiRangeId','_isRegisteredAttribute','insert','dataDowncast','_setSuggestionRange','isIntersectingWithRange','suggestion-type','isInsideObject','isExternal','creator','ck-suggestion-marker--active','elementStart','some','deletion:join','attributeNewValue','rethrowUnexpectedError','mapper','formatInline:chain','getNearestSelectionRange','_element','_getSuggestionData','hasCommentThread','_addThreadToSuggestion','getItems','detach','has','addMarker:suggestion:attribute','deletion:','@external','PendingActions','addHighlight','containsRangeInObject','enableCommand','keys','getFirstRange','data','deletion','getCustomProperty','insertion','addMarker:suggestion:formatBlock','getRanges','splitPosition','ready','dataToMarker','_getExternalAuthor','ck-suggestion-marker-formatBlock','_updateSuggestionData','deletion:chain','_getAuthorFromId','add','_isForcedDefaultExecutionBlock','element','_recordAttributeChanges','end','_refreshSuggestionsChain','error-saving-suggestion-data-suggestion-discarded','toUpperCase','addRange','concat','_trackFormatChanges','formatInline:discard','setSelection','ck-suggestion-marker-','_suggestionState','isUndo','isSelectable','dataReady','insertion:discard','_breakSuggestionMarker','find','notReady','attribute','removeMarker','track-changes-adapter-missing-getsuggestion','isInContent','then','addMarker','adapter','getSuggestion','getDifference','commands','markMultiRangeDeletion','format','_getMarkerAnnouncementText','low','change:data','howMany','change:activeMarkers','delete','high','newRange','_customCallbacks','isNextTo','hasSuggestion','getIntersection','markAttributeChange','_reduceSuggestionAttributeRange','isDocumentOperation','attribute:discard','marker-count','getLastMatchingPosition','define','deleteContent','announce','_setSuggestionData','subType','markBlockFormat','markInlineFormat','hasComments','_afterChanges','listenTo','_createSuggestion','_registerDefaultCallbacks','always','length','createPositionAt'];(function(_0x33edc4,_0x12f0e9){const _0x3e0264=function(_0x2208a8){while(--_0x2208a8){_0x33edc4['push'](_0x33edc4['shift']());}};_0x3e0264(++_0x12f0e9);}(_0x12f0,0x13e));const _0x3e02=function(_0x33edc4,_0x12f0e9){_0x33edc4=_0x33edc4-0x0;let _0x3e0264=_0x12f0[_0x33edc4];return _0x3e0264;};import{Plugin as _0x2f1066,PendingActions as _0xeaee94}from'ckeditor5/src/core.js';import{LiveRange as _0x55afed}from'ckeditor5/src/engine.js';import{CKEditorError as _0x115de0,uid as _0x4f4e21,priorities as _0x1ce8b7,logWarning as _0x3d9484}from'ckeditor5/src/utils.js';import{toWidget as _0x355878}from'ckeditor5/src/widget.js';import{Users as _0x127dce,hashObject as _0x1b5f96,surroundingMarkersDetector as _0x246342}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x394f30 from'./commands/trackchangescommand.js';import _0xc195a9 from'./commands/acceptsuggestioncommand.js';import _0x139621 from'./commands/discardsuggestioncommand.js';import _0x5b00bd from'./commands/executeonallsuggestionscommand.js';import _0x1678a3 from'./commands/executeonselectedsuggestionscommand.js';import _0x38dd3e from'./suggestion.js';import _0x249bd5 from'./suggestiondescriptionfactory.js';import _0x14b127 from'./integrations/aiassistant.js';import _0x3d0188 from'./integrations/alignment.js';import _0x32b1bf from'./integrations/basicstyles.js';import _0x1561f8 from'./integrations/blockquote.js';import _0x1d4898 from'./integrations/casechange.js';import _0x2627ae from'./integrations/ckbox.js';import _0x29d742 from'./integrations/codeblock.js';import _0x514eed from'./integrations/comments.js';import _0xc49521 from'./integrations/deletecommand.js';import _0x5c4081 from'./integrations/list.js';import _0xbcbab0 from'./integrations/listproperties.js';import _0x568511 from'./integrations/entercommand.js';import _0x6484af from'./integrations/findandreplace.js';import _0x4dd8bb from'./integrations/font.js';import _0x3a76ef from'./integrations/formatpainter.js';import _0x44b605 from'./integrations/heading.js';import _0x1cf745 from'./integrations/highlight.js';import _0xa41237 from'./integrations/horizontalline.js';import _0x1de4b6 from'./integrations/htmlembed.js';import _0x359964 from'./integrations/image.js';import _0x1a66b9 from'./integrations/imagereplace.js';import _0x1ffcc5 from'./integrations/imagestyle.js';import _0x531795 from'./integrations/importword.js';import _0x267141 from'./integrations/indent.js';import _0x126c1d from'./integrations/inputcommand.js';import _0x5aaa02 from'./integrations/link.js';import _0x5b26f3 from'./integrations/legacylist.js';import _0x1b0c9e from'./integrations/legacylistproperties.js';import _0x2fe8e8 from'./integrations/mediaembed.js';import _0x47ed25 from'./integrations/mention.js';import _0x54ff2c from'./integrations/pagebreak.js';import _0x22a172 from'./integrations/paragraph.js';import _0x4911d5 from'./integrations/removeformat.js';import _0x47e11d from'./integrations/restrictededitingmode.js';import _0x3fa7ae from'./integrations/shiftentercommand.js';import _0x1ef76b from'./integrations/standardeditingmode.js';import _0x1b3929 from'./integrations/style.js';import _0x555a77 from'./integrations/table.js';import _0x4c509d from'./integrations/tablemergesplit.js';import _0x106960 from'./integrations/tableheadings.js';import _0x342c08 from'./integrations/tableclipboard.js';import _0x388072 from'./integrations/tablecolumnresize.js';import _0x566691 from'./integrations/template.js';import _0x627ede from'./integrations/tableofcontents.js';import _0x3afb3c from'./integrations/title.js';import _0x409708 from'./integrations/undo.js';import _0x57daea from'./integrations/tablecaption.js';import _0x1f15ae from'./integrations/tableproperties.js';import{getTranslation as _0x4097cc}from'./utils/common-translations.js';import{isEqual as _0x1b3653,omit as _0x1bc1cd}from'lodash-es';export const renameAttributeKey=_0x3e02('0x82');export default class p extends _0x2f1066{static get[_0x3e02('0x84')](){return['CommentsRepository',_0x127dce,_0xeaee94,_0x14b127,_0x3d0188,_0x32b1bf,_0x1561f8,_0x2627ae,_0x1d4898,_0x29d742,_0x514eed,_0xc49521,_0x568511,_0x6484af,_0x4dd8bb,_0x3a76ef,_0x44b605,_0x1cf745,_0xa41237,_0x1de4b6,_0x359964,_0x1ffcc5,_0x1a66b9,_0x531795,_0x267141,_0x126c1d,_0x5b26f3,_0x1b0c9e,_0x5aaa02,_0x5c4081,_0xbcbab0,_0x2fe8e8,_0x47ed25,_0x54ff2c,_0x22a172,_0x4911d5,_0x47e11d,_0x3fa7ae,_0x1ef76b,_0x1b3929,_0x555a77,_0x4c509d,_0x106960,_0x57daea,_0x342c08,_0x388072,_0x627ede,_0x1f15ae,_0x566691,_0x3afb3c,_0x409708];}static get[_0x3e02('0xfb')](){return _0x3e02('0xdf');}constructor(_0x30ef66){function _0x1544b1(_0x9b1fe0){return _0x9b1fe0[_0x3e02('0x120')](_0x556490=>String[_0x3e02('0xc2')](_0x556490))[_0x3e02('0x101')]('');}super(_0x30ef66),this[_0x3e02('0x4b')]=!0x1,this[_0x3e02('0x64')](_0x3e02('0x11a'),[]),this['on'](_0x3e02('0x1f'),(_0x3111e0,_0x50eb2e,_0x46eaf1,_0x60b4e0)=>{this[_0x3e02('0x115')][_0x3e02('0x5a')](()=>{for(const _0x3d4415 of[..._0x60b4e0,..._0x46eaf1])this[_0x3e02('0x115')][_0x3e02('0xa7')]['has'](_0x3d4415)&&_0x30ef66['editing']['reconvertMarker'](_0x3d4415);});}),this[_0x3e02('0x3e')]=new _0x249bd5(this[_0x3e02('0x129')][_0x3e02('0x5d')]['schema'],this[_0x3e02('0x129')][_0x3e02('0xc8')]),this[_0x3e02('0xd5')]=null,this[_0x3e02('0x86')]=new Bt(this['editor']),this[_0x3e02('0x134')]=new Map(),this['_commentsRepository']=_0x30ef66[_0x3e02('0xb1')]['get'](_0x3e02('0x111')),this[_0x3e02('0x6c')]=new Set(),this[_0x3e02('0x115')]=this['editor'][_0x3e02('0x5d')],this[_0x3e02('0x7')]=new WeakMap(),this[_0x3e02('0x174')]=!0x1,this[_0x3e02('0x88')]=new Set([_0x3e02('0x82')]),this[_0x3e02('0x47')]=new Set(),_0x30ef66[_0x3e02('0x63')]['define'](_0x3e02('0xcc'),_0x3e02('0x40')),this[_0x3e02('0x3')]=_0x30ef66[_0x3e02('0x63')][_0x3e02('0xf0')](_0x3e02('0xcc')),_0x30ef66[_0x3e02('0x63')][_0x3e02('0x2d')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x3e02('0x103')]=_0x30ef66[_0x3e02('0x63')][_0x3e02('0xf0')](_0x3e02('0xbd')),this[_0x3e02('0x76')]=new _0x394f30(_0x30ef66,this[_0x3e02('0x6c')]),this[_0x3e02('0xbc')](),this[_0x1544b1([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1544b1([0x34,0x30,0x34,0x38,0x30,0x32,0x35,0x30]);}['init'](){const _0x3cb40f=this[_0x3e02('0x129')],_0x585274=(_0xd83b8b,_0x23ff6f)=>{if(_0x3e02('0xf')!=_0xd83b8b)return _0x3e02('0x6')+_0xd83b8b;const _0x4c2696=_0x23ff6f[_0x3e02('0x126')]('|')[0x0];return this[_0x3e02('0x11b')](_0x4c2696)?_0x3e02('0x16f'):_0x3e02('0xb4');};_0x3cb40f['conversion'][_0x3e02('0xeb')]('editingDowncast')[_0x3e02('0xa1')]({'model':'suggestion','view':_0x36a0ac=>{const {id:_0x5bff24,type:_0x5a6b51,subType:_0x14c23b}=this[_0x3e02('0x99')](_0x36a0ac[_0x3e02('0xfc')]),_0x1c89cb=[_0x3e02('0x98'),_0x585274(_0x5a6b51,_0x14c23b)];let _0x3b1c35=0xbb8;return this[_0x3e02('0x11a')]['includes'](_0x36a0ac['markerName'])&&(_0x1c89cb['push']('ck-suggestion-marker--active'),_0x3b1c35=0xbc2),'deletion'==_0x5a6b51&&(_0x3b1c35+=0x5),{'classes':_0x1c89cb,'attributes':{'data-suggestion':_0x5bff24},'priority':_0x3b1c35};}}),_0x3cb40f['conversion'][_0x3e02('0xeb')](_0x3e02('0x145'))[_0x3e02('0x173')](_0x2f5498=>{_0x2f5498['on']('addMarker:suggestion',(_0x4d8185,_0x54447f,_0x5e9bcd)=>{if(!_0x5e9bcd[_0x3e02('0xab')]['showSuggestionHighlights'])return;const _0x3a936a=_0x54447f[_0x3e02('0xff')];if(!_0x3a936a)return;const _0x407443=_0x5e9bcd[_0x3e02('0x152')]['toViewElement'](_0x3a936a);_0x3cb40f['model'][_0x3e02('0x58')][_0x3e02('0x130')](_0x3a936a)&&_0x407443&&!_0x407443[_0x3e02('0x167')]('widget')&&_0x407443['is'](_0x3e02('0x61'))&&_0x355878(_0x407443,_0x5e9bcd[_0x3e02('0x69')]);},{'priority':_0x3e02('0x21')});}),_0x3cb40f[_0x3e02('0xe4')]['for'](_0x3e02('0x145'))['markerToHighlight']({'model':_0x3e02('0x13a'),'view':(_0x2e90fa,_0x3a90b5)=>{if(!_0x3a90b5[_0x3e02('0xab')]['showSuggestionHighlights'])return null;const {type:_0x48c4b1,subType:_0x3066d9}=this['_splitMarkerName'](_0x2e90fa[_0x3e02('0xfc')]);return{'classes':['ck-suggestion-marker',_0x585274(_0x48c4b1,_0x3066d9)],'priority':0xbb8};}});const _0x56267f=({showActiveMarkers:_0x2ac02c=!0x0,isAttributeSuggestion:_0x2500fe=!0x1}={})=>(_0x34ff79,_0x4d7bbc,_0x4389ba)=>{if(!_0x4d7bbc['item'])return;const {id:_0x45166d}=this['_splitMarkerName'](_0x4d7bbc['markerName']);if(_0x2500fe){const _0x483abf=this[_0x3e02('0x134')][_0x3e02('0xf0')](_0x45166d),_0x3f213c=this[_0x3e02('0xba')](_0x483abf);if(!this[_0x3e02('0x11b')](_0x3f213c))return;}if(_0x4d7bbc[_0x3e02('0xff')]['is'](_0x3e02('0x13c')))return void _0x4389ba['consumable'][_0x3e02('0x118')](_0x4d7bbc[_0x3e02('0xff')],_0x34ff79[_0x3e02('0x44')]);const _0x24ec66=_0x4389ba[_0x3e02('0x152')]['toViewElement'](_0x4d7bbc[_0x3e02('0xff')]);if(_0x4d7bbc['item']['is'](_0x3e02('0x175'))&&_0x3cb40f['model'][_0x3e02('0x58')][_0x3e02('0xef')](_0x4d7bbc[_0x3e02('0xff')])&&!_0x24ec66[_0x3e02('0x167')](_0x3e02('0x160'))){_0x4389ba[_0x3e02('0x69')][_0x3e02('0xa8')](['ck-suggestion-marker',_0x3e02('0x16f')],_0x24ec66),_0x4389ba['writer'][_0x3e02('0xb2')](_0x3e02('0xa3'),_0x45166d,_0x24ec66),_0x4389ba['mapper'][_0x3e02('0xfa')](_0x24ec66,_0x4d7bbc[_0x3e02('0xfc')]),_0x2ac02c&&(this[_0x3e02('0x11a')][_0x3e02('0xc6')](_0x4d7bbc[_0x3e02('0xfc')])?_0x4389ba[_0x3e02('0x69')][_0x3e02('0xa8')](_0x3e02('0x14c'),_0x24ec66):_0x4389ba[_0x3e02('0x69')][_0x3e02('0xd0')](_0x3e02('0x14c'),_0x24ec66));for(const _0x2a68d1 of _0x3cb40f[_0x3e02('0x5d')][_0x3e02('0x12c')](_0x4d7bbc[_0x3e02('0xff')])[_0x3e02('0x159')]())_0x4389ba['consumable']['consume'](_0x2a68d1,_0x34ff79[_0x3e02('0x44')]);_0x4389ba[_0x3e02('0x6d')]['consume'](_0x4d7bbc[_0x3e02('0xff')],_0x34ff79[_0x3e02('0x44')]);}};_0x3cb40f['conversion'][_0x3e02('0xeb')]('dataDowncast')[_0x3e02('0x173')](_0x307068=>{_0x307068['on'](_0x3e02('0x169'),(_0x40c1cf,_0x36b58b,_0x5b2c97)=>{_0x5b2c97[_0x3e02('0xab')]['showSuggestionHighlights']&&_0x56267f({'showActiveMarkers':!0x1})(_0x40c1cf,_0x36b58b,_0x5b2c97);},{'priority':'highest'});}),_0x3cb40f['conversion'][_0x3e02('0xeb')](_0x3e02('0x145'))[_0x3e02('0x173')](_0x2bacbd=>{_0x2bacbd['on'](_0x3e02('0x15c'),(_0x28fd02,_0x2e35f0,_0x43201e)=>{_0x43201e['options'][_0x3e02('0x4d')]&&_0x56267f({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x28fd02,_0x2e35f0,_0x43201e);},{'priority':_0x3e02('0xbb')});}),_0x3cb40f['conversion']['for'](_0x3e02('0x145'))[_0x3e02('0x4c')]({'model':_0x3e02('0x13a'),'view':(_0x281236,_0x23e3bb)=>_0x23e3bb['options'][_0x3e02('0x4d')]?null:{'group':_0x3e02('0x13a'),'name':_0x281236[_0x3e02('0x137')](0xb)}}),_0x3cb40f[_0x3e02('0xe4')][_0x3e02('0xeb')](_0x3e02('0xb6'))[_0x3e02('0xe5')]({'view':{'name':_0x3e02('0x13a'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3a4380,{writer:_0x2e5d0f})=>{let _0x28f1b2=_0x3e02('0x42')+_0x3a4380['getAttribute'](_0x3e02('0x148'))+':'+_0x3a4380[_0x3e02('0x87')]('id');return _0x3a4380[_0x3e02('0x87')](_0x3e02('0x2b'))&&(_0x28f1b2+=':'+_0x3a4380[_0x3e02('0x87')](_0x3e02('0x2b'))),_0x2e5d0f[_0x3e02('0x113')](_0x3e02('0x45'),{'data-name':_0x28f1b2});}}),_0x3cb40f['conversion'][_0x3e02('0xeb')](_0x3e02('0xb6'))[_0x3e02('0x16d')]({'view':_0x3e02('0x13a')}),_0x3cb40f[_0x3e02('0xe4')]['for']('editingDowncast')[_0x3e02('0x173')](_0x6393b2=>{_0x6393b2['on'](_0x3e02('0x169'),_0x56267f(),{'priority':'high'});}),_0x3cb40f['conversion'][_0x3e02('0xeb')](_0x3e02('0x52'))[_0x3e02('0x173')](_0x49ad0f=>{_0x49ad0f['on'](_0x3e02('0x15c'),_0x56267f({'isAttributeSuggestion':!0x0}),{'priority':_0x3e02('0x21')});}),_0x3cb40f[_0x3e02('0xe4')][_0x3e02('0xeb')](_0x3e02('0x52'))[_0x3e02('0x173')](_0x31f1ca=>{_0x31f1ca['on']('removeMarker:suggestion:formatBlock',(_0x511787,_0x17ddb5,_0x59ace6)=>{const _0xde59e6=_0x59ace6[_0x3e02('0x152')][_0x3e02('0x8a')](_0x17ddb5[_0x3e02('0xfc')]);if(_0xde59e6)for(const _0x9f9baf of _0xde59e6)_0x9f9baf['getCustomProperty'](_0x3e02('0x160'))||(_0x59ace6[_0x3e02('0x69')][_0x3e02('0xd0')](['ck-suggestion-marker',_0x3e02('0x16f'),_0x3e02('0x14c')],_0x9f9baf),_0x59ace6[_0x3e02('0x69')][_0x3e02('0xcd')](_0x3e02('0xa3'),_0x9f9baf),_0x59ace6['mapper'][_0x3e02('0x7d')](_0x9f9baf,_0x17ddb5[_0x3e02('0xfc')]));},{'priority':_0x3e02('0x21')});}),_0x3cb40f[_0x3e02('0xe4')]['for'](_0x3e02('0x52'))[_0x3e02('0x173')](_0x58dfb9=>{_0x58dfb9['on'](_0x3e02('0x12f'),(_0x1fbd17,_0x3748f2,_0x1e4c48)=>{const _0x2a131a=_0x1e4c48[_0x3e02('0x152')][_0x3e02('0x8a')](_0x3748f2[_0x3e02('0xfc')]);if(!_0x2a131a)return;const {id:_0x2ddf48}=this[_0x3e02('0x99')](_0x3748f2[_0x3e02('0xfc')]),_0x20096c=this[_0x3e02('0x134')][_0x3e02('0xf0')](_0x2ddf48),_0x1793bb=this['_getAttributeKey'](_0x20096c);if(this['_isBlockAttribute'](_0x1793bb))for(const _0x4003ee of _0x2a131a)_0x4003ee[_0x3e02('0x167')](_0x3e02('0x160'))||(_0x1e4c48[_0x3e02('0x69')]['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4003ee),_0x1e4c48[_0x3e02('0x69')][_0x3e02('0xcd')](_0x3e02('0xa3'),_0x4003ee),_0x1e4c48[_0x3e02('0x152')][_0x3e02('0x7d')](_0x4003ee,_0x3748f2[_0x3e02('0xfc')]));},{'priority':_0x3e02('0x21')});}),_0x3cb40f['model'][_0x3e02('0xd4')][_0x3e02('0x105')](_0x3a8fa8=>{let _0x18d39e=!0x1;const _0x374281=Array['from'](_0x3cb40f['model'][_0x3e02('0xd4')][_0x3e02('0x5e')][_0x3e02('0x78')]()),_0x31e05c=new Set();for(const {name:_0x3798cd,data:_0x4a5d13}of _0x374281){const {group:_0x1d6985,type:_0xf592e9,subType:_0x13bc15,id:_0x1eeb07}=this[_0x3e02('0x99')](_0x3798cd);if('suggestion'!==_0x1d6985)continue;const _0x51cdcd=this['_suggestions'][_0x3e02('0xf0')](_0x1eeb07);if(null!=_0x4a5d13['newRange']){'formatInline'==_0xf592e9&&(_0x18d39e=_0x18d39e||Tt(_0x4a5d13['newRange'],_0x3798cd,_0x3a8fa8,_0x3cb40f[_0x3e02('0x5d')]['schema']));const _0x353f00=_0x3e02('0xf')==_0xf592e9&&this[_0x3e02('0x11b')](_0x13bc15[_0x3e02('0x126')]('|')[0x0]);if(_0x4a5d13[_0x3e02('0x22')][_0x3e02('0x74')]||_0x3e02('0xed')==_0x4a5d13['newRange'][_0x3e02('0x8e')][_0x3e02('0xde')]||_0x3e02('0x46')==_0xf592e9&&!Vt(_0x4a5d13['newRange'])||_0x353f00&&!Vt(_0x4a5d13[_0x3e02('0x22')])||_0x3e02('0x166')==_0xf592e9&&!(!Rt(_0x10bdb6=_0x4a5d13[_0x3e02('0x22')])&&!function(_0x241e4c){return _0x241e4c[_0x3e02('0xb7')][_0x3e02('0x83')]==_0x241e4c[_0x3e02('0x177')][_0x3e02('0xe2')]&&_0x241e4c['start']['isAtEnd'];}(_0x10bdb6)))_0x3a8fa8['removeMarker'](_0x3798cd),_0x18d39e=!0x0;else{if(!_0x51cdcd||!_0x51cdcd['isInContent'])continue;_0x31e05c['add'](_0x51cdcd);}}}var _0x10bdb6;return _0x31e05c[_0x3e02('0xe8')]>0x0&&(_0x18d39e=!!this['_joinWithAdjacentSuggestions'](_0x31e05c)||_0x18d39e),_0x18d39e;}),_0x3cb40f[_0x3e02('0x5d')][_0x3e02('0xd4')][_0x3e02('0x105')](_0x53d48f=>{let _0x3fd331=!0x1;for(const _0x103560 of _0x3cb40f[_0x3e02('0x5d')][_0x3e02('0xd4')][_0x3e02('0x5e')][_0x3e02('0x72')]())if(_0x3e02('0x144')==_0x103560[_0x3e02('0xbf')])for(const _0x4a2f0f of this[_0x3e02('0x134')][_0x3e02('0x57')]()){if(_0x4a2f0f['isMultiRange']||!_0x4a2f0f['isInContent'])continue;const _0x1dc358=_0x3e02('0x46')==_0x4a2f0f[_0x3e02('0xbf')],_0x332e24=this[_0x3e02('0xba')](_0x4a2f0f),_0x16ca92=_0x332e24&&this['_isBlockAttribute'](_0x332e24);if(!_0x1dc358&&!_0x16ca92)continue;const _0x1fa770=_0x4a2f0f['getFirstRange']();if(_0x1fa770[_0x3e02('0xb7')][_0x3e02('0x83')]!=_0x1fa770[_0x3e02('0x177')][_0x3e02('0x83')]&&!_0x1fa770[_0x3e02('0x177')][_0x3e02('0xf9')]){const _0x593f1c=_0x3cb40f['model'][_0x3e02('0x3b')](_0x1fa770['start'][_0x3e02('0x80')],_0x3e02('0x177')),_0x314ae2=_0x3cb40f[_0x3e02('0x5d')]['createRange'](_0x1fa770['start'],_0x593f1c);_0x53d48f[_0x3e02('0x119')](_0x4a2f0f[_0x3e02('0xc7')](),{'range':_0x314ae2}),_0x3fd331=!0x0;}}return _0x3fd331;}),_0x3cb40f[_0x3e02('0x5d')][_0x3e02('0xd4')]['registerPostFixer'](_0x3aca24=>this['_processAttributeChanges'](_0x3aca24)),_0x3cb40f[_0x3e02('0x5d')][_0x3e02('0xd4')][_0x3e02('0x105')](_0x4429ff=>!_0x4429ff[_0x3e02('0x3d')][_0x3e02('0x11d')]&&this['_processAttributeSuggestions'](_0x4429ff)),_0x3cb40f[_0x3e02('0x5d')]['on'](_0x3e02('0x35'),()=>{this[_0x3e02('0x4b')]=!0x1;}),_0x3cb40f['model'][_0x3e02('0xd4')]['on'](_0x3e02('0x1d'),(_0x40bf28,_0x167f30)=>{if(!_0x167f30[_0x3e02('0x11d')]||_0x167f30[_0x3e02('0x8')])return;if(!this[_0x3e02('0x4b')])return;const _0x3d385d=_0x3cb40f['model'][_0x3e02('0xd4')][_0x3e02('0x5e')][_0x3e02('0x72')]();if(0x0==_0x3d385d['length'])return;const _0xb5b2b1=[],_0x589d40=_0x3d385d['filter'](_0x1cf82b=>_0x3e02('0xf')==_0x1cf82b[_0x3e02('0xbf')]),_0x57bd4c=_0x3d385d[_0x3e02('0xf1')](_0x107d2a=>_0x3e02('0x144')==_0x107d2a[_0x3e02('0xbf')]&&'$text'!=_0x107d2a[_0x3e02('0x44')]),_0x5c6dd5=_0x3d385d['filter'](_0x506fa0=>_0x3e02('0xc5')==_0x506fa0['type']&&_0x3e02('0x128')!=_0x506fa0['name']);for(const _0x2f4ab2 of _0x589d40)this['_isRegisteredAttribute'](_0x2f4ab2['attributeKey'])&&_0xb5b2b1[_0x3e02('0xb5')]({'key':_0x2f4ab2[_0x3e02('0x5f')],'newValue':_0x2f4ab2[_0x3e02('0x150')],'oldValue':_0x2f4ab2[_0x3e02('0x123')],'range':Ut(_0x2f4ab2[_0x3e02('0x12e')],_0x3cb40f[_0x3e02('0x5d')])});for(const _0x50693c of _0x57bd4c){const _0x1c46c9=_0x5c6dd5['find'](_0x278899=>_0x278899[_0x3e02('0x155')]===_0x50693c[_0x3e02('0x155')]);if(_0x1c46c9){const _0x3aebbe=Ot(_0x50693c[_0x3e02('0x11c')][_0x3e02('0x80')],_0x3cb40f[_0x3e02('0x5d')]);_0x1c46c9[_0x3e02('0x44')]!==_0x50693c['name']&&_0xb5b2b1[_0x3e02('0xb5')]({'key':_0x3e02('0x82'),'newValue':_0x50693c[_0x3e02('0x44')],'oldValue':_0x1c46c9[_0x3e02('0x44')],'range':_0x3aebbe});for(const [_0x3cd95e,_0x3dba61]of _0x1c46c9[_0x3e02('0x6f')]){if(!this['_isRegisteredAttribute'](_0x3cd95e))continue;const _0x4ff00c=_0x50693c['attributes'][_0x3e02('0xf0')](_0x3cd95e);_0x3dba61!==_0x4ff00c&&_0xb5b2b1['push']({'key':_0x3cd95e,'newValue':_0x4ff00c,'oldValue':_0x3dba61,'range':_0x3aebbe});}for(const [_0x37636d,_0x53e251]of _0x50693c['attributes'])this['_isRegisteredAttribute'](_0x37636d)&&(_0x1c46c9[_0x3e02('0x6f')][_0x3e02('0x15b')](_0x37636d)||_0xb5b2b1[_0x3e02('0xb5')]({'key':_0x37636d,'newValue':_0x53e251,'oldValue':null,'range':_0x3aebbe}));}}0x0!=_0xb5b2b1['length']&&_0x3cb40f[_0x3e02('0x5d')][_0x3e02('0x116')](_0x167f30,_0x4c5abd=>{const _0x1feacd=_0x4f4e21();for(const {range:_0x2ea3e8,key:_0x59a37f,oldValue:_0x57d4c7,newValue:_0x1ca4bd}of _0xb5b2b1)this[_0x3e02('0x27')](_0x2ea3e8,_0x59a37f,_0x57d4c7,_0x1ca4bd,{'groupId':_0x1feacd});this['_reduceExistingSuggestions'](_0x4c5abd,_0xb5b2b1);});},{'priority':_0x3e02('0x73')}),_0x3cb40f[_0x3e02('0x5d')][_0x3e02('0xa7')]['on'](_0x3e02('0x81'),(_0x1552c1,_0x1dc4ab,_0x69992a)=>{if(null==_0x69992a){const {id:_0x20625b}=this[_0x3e02('0x99')](_0x1dc4ab['name']),_0x2e20de=this[_0x3e02('0x134')][_0x3e02('0xf0')](_0x20625b);_0x2e20de&&_0x2e20de['addMarkerName'](_0x1dc4ab[_0x3e02('0x44')]);}}),_0x3cb40f[_0x3e02('0x5d')][_0x3e02('0xd4')]['on'](_0x3e02('0x1d'),()=>{const _0x2cc763=Array['from'](_0x3cb40f['model'][_0x3e02('0xd4')][_0x3e02('0x5e')][_0x3e02('0x78')]())[_0x3e02('0xf1')](_0x2a032c=>_0x3e02('0x13a')===this[_0x3e02('0x99')](_0x2a032c[_0x3e02('0x44')])['group']);if(0x0===_0x2cc763['length'])return;_0x2cc763['sort']((_0x5a4aa3,_0x4da2cc)=>{const _0x536fd0=_0x5a4aa3[_0x3e02('0x165')][_0x3e02('0xe1')],_0x4e4d6e=_0x4da2cc[_0x3e02('0x165')][_0x3e02('0xe1')];return null===_0x536fd0&&null===_0x4e4d6e?0x0:null===_0x536fd0&&null!==_0x4e4d6e?-0x1:null!==_0x536fd0&&null===_0x4e4d6e?0x1:_0x536fd0[_0x3e02('0xb7')]['isBefore'](_0x4e4d6e[_0x3e02('0xb7')])?-0x1:0x1;});const _0x18e247=new Set(),_0x1d59cc=new Set();for(const {name:_0xf07430,data:_0x3380a5}of _0x2cc763){const {id:_0x263026}=this[_0x3e02('0x99')](_0xf07430);if(null===_0x3380a5[_0x3e02('0xe1')]){const _0x42e74b=this[_0x3e02('0xad')](_0xf07430);_0x1d59cc[_0x3e02('0x173')](_0x42e74b);}else{const _0x3223f1=this[_0x3e02('0x134')][_0x3e02('0xf0')](_0x263026);null!==_0x3380a5[_0x3e02('0x22')]||_0x3223f1['isInContent']?(_0x18e247['add'](_0x3223f1['head']),_0x1d59cc['add'](_0x3223f1)):this[_0x3e02('0xdb')](_0x3223f1);}}_0x1d59cc[_0x3e02('0xe8')]>0x0&&this[_0x3e02('0x178')](_0x1d59cc);for(const _0x5810bf of _0x18e247)this['fire'](_0x3e02('0xcf'),_0x5810bf);}),_0x3cb40f[_0x3e02('0x5d')]['on'](_0x3e02('0xf5'),(_0x573c81,_0x14788c)=>{const _0x97988d=_0x14788c[0x0];if(!this['_suggestions'][_0x3e02('0xe8')])return;if(!_0x97988d[_0x3e02('0x29')])return;if(_0x97988d[_0x3e02('0x3d')][_0x3e02('0x8')]||!_0x97988d[_0x3e02('0x3d')][_0x3e02('0x11d')])return;let _0x335bae,_0x588cfb;switch(_0x97988d[_0x3e02('0xbf')]){case _0x3e02('0x144'):_0x335bae=_0x3cb40f['model'][_0x3e02('0x3b')](_0x97988d[_0x3e02('0x11c')]),_0x588cfb=_0x335bae[_0x3e02('0x12d')](_0x97988d['howMany']);break;case _0x3e02('0x126'):_0x335bae=_0x3cb40f['model']['createPositionAt'](_0x97988d[_0x3e02('0x16b')]),_0x588cfb=_0x3cb40f['model']['createPositionAt'](_0x97988d[_0x3e02('0xf6')]);break;case _0x3e02('0x67'):_0x335bae=_0x3cb40f[_0x3e02('0x5d')]['createPositionAt'](_0x97988d['targetPosition']),_0x588cfb=_0x335bae[_0x3e02('0x12d')](_0x97988d[_0x3e02('0x1e')]);break;default:return;}const _0x2990d6=_0x3cb40f[_0x3e02('0x5d')][_0x3e02('0x127')](_0x335bae,_0x588cfb);_0x3cb40f[_0x3e02('0x5d')][_0x3e02('0x5a')](()=>{for(const {suggestion:_0x4f9854,meta:_0x20e5a1}of this[_0x3e02('0x135')](_0x2990d6)){if(_0x4f9854[_0x3e02('0x60')])continue;if(_0x3e02('0xd7')==_0x4f9854[_0x3e02('0xbf')])continue;const _0x3d8486=this[_0x3e02('0xba')](_0x4f9854);if(_0x3d8486&&this[_0x3e02('0x11b')](_0x3d8486)&&_0x3e02('0x126')!=_0x97988d['type'])continue;const _0x31e37c=_0x4f9854[_0x3e02('0x165')]&&_0x4f9854[_0x3e02('0x165')]['multipleBlocks'];('formatBlock'!=_0x4f9854[_0x3e02('0xbf')]||_0x3e02('0x126')==_0x97988d['type']&&!_0x31e37c)&&(_0x20e5a1[_0x3e02('0x161')]||_0x3e02('0x168')==_0x4f9854[_0x3e02('0xbf')]&&_0x20e5a1[_0x3e02('0x10d')]||_0x4f9854[_0x3e02('0x164')]()['containsRange'](_0x2990d6)&&this[_0x3e02('0xc')](_0x4f9854,_0x335bae,_0x588cfb));}});},{'priority':'lowest'}),_0x3cb40f[_0x3e02('0x5d')]['on'](_0x3e02('0x2e'),(_0x11175e,_0x272f32)=>{const _0x56ee91=_0x272f32[0x0],_0x1486f6=_0x272f32[0x1];if(_0x1486f6&&_0x1486f6[_0x3e02('0xd9')])return;if(this[_0x3e02('0x174')])return;if(!this[_0x3e02('0x76')][_0x3e02('0x7f')])return;if(_0x56ee91[_0x3e02('0x74')])return;const _0x3f41b5=_0x3cb40f[_0x3e02('0x5d')][_0x3e02('0x58')],{start:_0x598b55,end:_0x58b02d}=_0x56ee91['getFirstRange'](),_0x5ce71f=_0x598b55[_0x3e02('0x80')]&&_0x3f41b5[_0x3e02('0x3c')](_0x598b55[_0x3e02('0x80')])?null:_0x3f41b5[_0x3e02('0x154')](_0x598b55,'forward'),_0x5b5272=_0x58b02d['nodeBefore']&&_0x3f41b5[_0x3e02('0x3c')](_0x58b02d[_0x3e02('0xe2')])?null:_0x3f41b5[_0x3e02('0x154')](_0x58b02d,_0x3e02('0xd3')),_0x35d8fe=_0x3cb40f[_0x3e02('0x5d')][_0x3e02('0x127')](_0x5ce71f?_0x5ce71f[_0x3e02('0xb7')]:_0x598b55,_0x5b5272?_0x5b5272[_0x3e02('0x177')]:_0x58b02d);_0x3cb40f[_0x3e02('0x5d')][_0x3e02('0x5a')](_0x4125a9=>{this[_0x3e02('0x4e')](_0x35d8fe);const _0x40f10f=_0x3cb40f[_0x3e02('0x5d')][_0x3e02('0x58')][_0x3e02('0x154')](_0x35d8fe[_0x3e02('0xb7')]);_0x56ee91['is'](_0x3e02('0xf8'))?_0x4125a9[_0x3e02('0x5')](_0x40f10f):_0x56ee91[_0x3e02('0x141')](_0x40f10f);}),_0x11175e['stop']();},{'priority':_0x1ce8b7[_0x3e02('0x107')]+0xa}),_0x3cb40f[_0x3e02('0x5d')]['on'](_0x3e02('0x54'),(_0x540167,_0x5a8494)=>{const _0x32bd13=_0x5a8494[_0x5a8494[_0x3e02('0x3a')]-0x1];_0x32bd13&&_0x32bd13['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand'][_0x3e02('0x7f')]&&(_0x3cb40f['model'][_0x3e02('0x5a')](()=>{let _0x2f9139=_0x3cb40f['model'][_0x3e02('0x54')](_0x5a8494[0x0],_0x5a8494[0x1],_0x5a8494[0x2],{'forceDefaultExecution':!0x0});if(!_0x2f9139)return;_0x540167[_0x3e02('0x89')]=_0x2f9139[_0x3e02('0x12a')]();const _0x505921=_0x2f9139[_0x3e02('0x177')]['nodeBefore'],_0x231801=_0x3cb40f[_0x3e02('0x5d')][_0x3e02('0x58')];_0x505921&&_0x231801[_0x3e02('0xef')](_0x505921)&&!_0x231801[_0x3e02('0x130')](_0x505921)&&(_0x2f9139=_0x3cb40f[_0x3e02('0x5d')][_0x3e02('0x127')](_0x2f9139['start'],_0x3cb40f[_0x3e02('0x5d')][_0x3e02('0x3b')](_0x505921,_0x3e02('0x177')))),this['markInsertion'](_0x2f9139);}),_0x540167[_0x3e02('0x124')]());},{'priority':'high'}),this['editor'][_0x3e02('0x18')][_0x3e02('0x173')]('trackChanges',this[_0x3e02('0x76')]),this[_0x3e02('0x162')](_0x3e02('0xc1'));const _0x7d316c=new _0xc195a9(_0x3cb40f,this[_0x3e02('0x134')]);_0x3cb40f[_0x3e02('0x18')][_0x3e02('0x173')]('acceptSuggestion',_0x7d316c),this[_0x3e02('0x162')](_0x3e02('0x106'));const _0x3ec424=new _0x139621(_0x3cb40f,this['_suggestions']);_0x3cb40f[_0x3e02('0x18')][_0x3e02('0x173')](_0x3e02('0x117'),_0x3ec424),this[_0x3e02('0x162')](_0x3e02('0x117')),_0x3cb40f[_0x3e02('0x18')][_0x3e02('0x173')]('acceptAllSuggestions',new _0x5b00bd(_0x3cb40f,_0x7d316c,this[_0x3e02('0x134')])),this['enableCommand']('acceptAllSuggestions'),_0x3cb40f[_0x3e02('0x18')][_0x3e02('0x173')](_0x3e02('0xf2'),new _0x5b00bd(_0x3cb40f,_0x3ec424,this['_suggestions'])),this[_0x3e02('0x162')](_0x3e02('0xf2')),_0x3cb40f[_0x3e02('0x18')][_0x3e02('0x173')](_0x3e02('0xa4'),new _0x1678a3(_0x3cb40f,_0x7d316c,this['_suggestions'])),this[_0x3e02('0x162')](_0x3e02('0xa4')),_0x3cb40f[_0x3e02('0x18')][_0x3e02('0x173')]('discardSelectedSuggestions',new _0x1678a3(_0x3cb40f,_0x3ec424,this[_0x3e02('0x134')])),this[_0x3e02('0x162')](_0x3e02('0x5c'));const _0x52185a=_0x3cb40f['plugins']['get'](_0x3e02('0x111'));this['listenTo'](_0x52185a,'addComment',(_0x2b0670,{threadId:_0x48d6bf})=>{const _0x2a5fc1=this[_0x3e02('0x134')][_0x3e02('0xf0')](_0x48d6bf);_0x2a5fc1&&_0x2a5fc1[_0x3e02('0x6e')]&&0x1===_0x2a5fc1[_0x3e02('0x6e')][_0x3e02('0x3a')]&&this[_0x3e02('0x170')](_0x48d6bf,{'hasComments':!0x0});},{'priority':_0x3e02('0x1c')}),this['listenTo'](_0x52185a,'removeComment',(_0x143f8b,{threadId:_0x254af7})=>{const _0xb7cfe4=this[_0x3e02('0x134')][_0x3e02('0xf0')](_0x254af7);_0xb7cfe4&&_0xb7cfe4[_0x3e02('0x6e')]&&!_0xb7cfe4[_0x3e02('0x6e')][_0x3e02('0x3a')]&&this[_0x3e02('0x170')](_0x254af7,{'hasComments':!0x1});},{'priority':'low'});}set[_0x3e02('0x15')](_0x450475){if(this['_adapter'])throw new _0x115de0('track-changes-adapter-already-set',this);this[_0x3e02('0xd5')]=_0x450475;}get[_0x3e02('0x15')](){return this['_adapter'];}[_0x3e02('0x77')]({skipNotAttached:_0x8769d=!0x1,toJSON:_0x21b0cf=!0x1}={}){const _0xfb78cc=[];for(const _0x56762d of this[_0x3e02('0x134')][_0x3e02('0x57')]())_0x8769d&&!_0x56762d[_0x3e02('0x12')]||_0xfb78cc[_0x3e02('0xb5')](_0x56762d);return _0x21b0cf?_0xfb78cc[_0x3e02('0x120')](_0x160d82=>_0x160d82[_0x3e02('0xe6')]()):_0xfb78cc;}[_0x3e02('0x16')](_0x23a6ca){const _0x330f77=this[_0x3e02('0x134')][_0x3e02('0xf0')](_0x23a6ca);if(!_0x330f77)throw new _0x115de0('track-changes-suggestion-not-found',this);return _0x330f77;}[_0x3e02('0x25')](_0x276d3b){return this['_suggestions'][_0x3e02('0x15b')](_0x276d3b);}[_0x3e02('0x55')](_0x2c668f){const {authorId:_0x126d0b,id:_0x5d1991,attributes:_0x585b7b}=_0x2c668f,[_0x2b2a95,_0x1e868b]=_0x2c668f[_0x3e02('0xbf')][_0x3e02('0x126')](':'),_0x2c3fbe=this[_0x3e02('0x134')][_0x3e02('0xf0')](_0x5d1991)||this[_0x3e02('0x37')](_0x2b2a95,_0x1e868b,_0x5d1991,_0x126d0b,_0x585b7b);if(this['_addThreadToSuggestion'](_0x2c3fbe),this[_0x3e02('0x8d')](_0x2c3fbe,_0x2b2a95,_0x1e868b||null,_0x126d0b),_0x2c3fbe[_0x3e02('0x53')]=_0x2c668f['createdAt'],_0x2c3fbe[_0x3e02('0xc3')]=!0x0,_0x585b7b&&_0x585b7b[_0x3e02('0x15e')]){const _0x5c66ae=_0x585b7b[_0x3e02('0x15e')],_0x5a70ad=this[_0x3e02('0x16e')](_0x5c66ae['authorName']);_0x2c3fbe[_0x3e02('0xaa')]=_0x5c66ae['createdAt'],_0x2c3fbe['author']=_0x5a70ad,_0x2c3fbe[_0x3e02('0x14a')]=!0x0;}else _0x2c3fbe[_0x3e02('0xaa')]=_0x2c668f[_0x3e02('0x53')];switch(_0x2c668f['data']&&(_0x2c3fbe[_0x3e02('0x165')]=_0x2c668f['data']),_0x2c668f[_0x3e02('0x6f')]&&(_0x2c3fbe['attributes']=_0x2c668f['attributes']),this[_0x3e02('0xd5')]&&this[_0x3e02('0xd5')][_0x3e02('0xb9')]||(_0x2c3fbe[_0x3e02('0x96')]=!0x0),this['_suggestionState']['get'](_0x2c3fbe)){case _0x3e02('0xe'):this[_0x3e02('0x7')][_0x3e02('0x64')](_0x2c3fbe,_0x3e02('0xa'));break;case _0x3e02('0xac'):_0x2c3fbe[_0x3e02('0x12')]?(this[_0x3e02('0x71')](new Set([_0x2c3fbe])),this['_refreshSuggestionsChain'](new Set([_0x2c3fbe])),this['_suggestionState'][_0x3e02('0x64')](_0x2c3fbe,_0x3e02('0x16c')),this[_0x3e02('0x7e')]('suggestionLoaded',_0x2c3fbe)):this[_0x3e02('0x7')][_0x3e02('0x64')](_0x2c3fbe,_0x3e02('0x10b'));}return _0x2c3fbe;}['acceptSuggestion'](_0xa24b3f){this[_0x3e02('0xd9')](()=>{this[_0x3e02('0x129')][_0x3e02('0x5d')][_0x3e02('0x5a')](()=>{for(const _0x3a193a of _0xa24b3f[_0x3e02('0x85')]())_0x3a193a[_0x3e02('0xdc')]();});});}[_0x3e02('0x117')](_0xc27df7){this[_0x3e02('0xd9')](()=>{this[_0x3e02('0x129')][_0x3e02('0x5d')][_0x3e02('0x5a')](()=>{for(const _0x1ada7e of _0xc27df7[_0x3e02('0x85')]())_0x1ada7e[_0x3e02('0x65')]();});});}['enableCommand'](_0x11b5bf,_0xcbbf25){const _0x303e0a=this[_0x3e02('0x129')][_0x3e02('0x18')][_0x3e02('0xf0')](_0x11b5bf);if(!_0x303e0a)throw new _0x115de0('track-changes-command-not-found',this,{'commandName':_0x11b5bf});if(this[_0x3e02('0x6c')][_0x3e02('0x15b')](_0x303e0a))throw new _0x115de0(_0x3e02('0xfe'),this,{'commandName':_0x11b5bf});this[_0x3e02('0x6c')][_0x3e02('0x173')](_0x303e0a),_0xcbbf25&&_0x303e0a['on']('execute',(_0x59f435,_0x3c9fbc)=>{this[_0x3e02('0x76')][_0x3e02('0x7f')]&&(this[_0x3e02('0x174')]||(_0x3c9fbc[_0x3e02('0x3a')]>0x0&&_0x3c9fbc[_0x3c9fbc['length']-0x1]&&_0x3c9fbc[_0x3c9fbc[_0x3e02('0x3a')]-0x1]['forceDefaultExecution']?_0x3c9fbc[_0x3e02('0xbe')]():(_0x59f435[_0x3e02('0x89')]=_0xcbbf25((..._0x244bcb)=>_0x303e0a[_0x3e02('0xd2')](..._0x244bcb,{'forceDefaultExecution':!0x0}),..._0x3c9fbc),_0x59f435[_0x3e02('0x124')]())));},{'priority':_0x3e02('0x21')});}[_0x3e02('0xd9')](_0x804547){let _0x3a9d25,_0x9bbd65;const _0x22d5af=this['_isForcedDefaultExecutionBlock'];this[_0x3e02('0x174')]=!0x0;try{_0x3a9d25=_0x804547();}catch(_0x3cf564){_0x9bbd65=_0x3cf564;}return _0x22d5af||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x9bbd65&&_0x115de0[_0x3e02('0x151')](_0x9bbd65,this),_0x3a9d25;}[_0x3e02('0x70')](_0x16f1d7,_0x1b85c4=null,_0x1a8f34={}){if(_0x16f1d7['isCollapsed'])return null;const _0x41cbec=this[_0x3e02('0x129')][_0x3e02('0xb1')][_0x3e02('0xf0')](_0x3e02('0x13d'))['me'];for(const {suggestion:_0x75a7ab,meta:_0xae04a1}of this[_0x3e02('0x135')](_0x16f1d7,'insertion'))if(_0xae04a1[_0x3e02('0x10d')]){if(!_0xae04a1[_0x3e02('0x24')]){if(_0xae04a1[_0x3e02('0x161')]){if(!this[_0x3e02('0x103')]||!Pt(_0x75a7ab,_0x1a8f34))continue;return _0x75a7ab;}if(Pt(_0x75a7ab,_0x1a8f34))return _0x75a7ab;this[_0x3e02('0xc')](_0x75a7ab,_0x16f1d7[_0x3e02('0xb7')],_0x16f1d7[_0x3e02('0x177')]);break;}if(_0x1b85c4==_0x75a7ab[_0x3e02('0x31')]&&Pt(_0x75a7ab,_0x1a8f34)){const _0x1b4179=_0x75a7ab[_0x3e02('0x164')]();return _0x1b4179[_0x3e02('0xb7')][_0x3e02('0xb0')](_0x16f1d7[_0x3e02('0x177')])?this[_0x3e02('0x146')](_0x75a7ab,this[_0x3e02('0x115')][_0x3e02('0x127')](_0x16f1d7[_0x3e02('0xb7')],_0x1b4179['end'])):this[_0x3e02('0x146')](_0x75a7ab,this[_0x3e02('0x115')]['createRange'](_0x1b4179[_0x3e02('0xb7')],_0x16f1d7[_0x3e02('0x177')])),_0x75a7ab;}}const _0x3c76a8=_0x4f4e21(),_0x45a8a4=_0x41cbec['id'],_0x3eaa97=_0x1b85c4?_0x3e02('0x10c')+_0x1b85c4:'insertion',_0x28a213=this[_0x3e02('0x30')]({'id':_0x3c76a8,'type':_0x3eaa97,'createdAt':new Date(),'authorId':_0x45a8a4,'attributes':_0x1a8f34});return this[_0x3e02('0x92')](_0x3eaa97,_0x3c76a8,_0x45a8a4,_0x16f1d7),_0x28a213;}[_0x3e02('0x131')](_0x33494a,_0x288520=_0x3e02('0x9c'),_0x1b13f7={}){const _0x47c69b=this[_0x3e02('0x129')][_0x3e02('0xb1')][_0x3e02('0xf0')]('Users')['me'],_0x512a9d=this[_0x3e02('0x86')][_0x3e02('0x114')]('insertion',_0x288520,_0x3e02('0x101'));for(const _0x4c2423 of this['getSuggestions']())if(_0x4c2423[_0x3e02('0x9e')]['id']==_0x47c69b['id']&&_0x3e02('0x168')==_0x4c2423[_0x3e02('0xbf')]&&_0x4c2423['subType']==_0x288520&&Pt(_0x4c2423,_0x1b13f7)&&(_0x512a9d(_0x4c2423[_0x3e02('0x16a')](),_0x33494a)||_0x512a9d(_0x33494a,_0x4c2423[_0x3e02('0x16a')]()))){for(const _0x57fa70 of _0x33494a)_0x4c2423['addRange'](_0x57fa70);return _0x4c2423;}for(const {suggestion:_0x43fa81,meta:_0x2469df}of this['_findSuggestions'](_0x33494a,'insertion')){if(!_0x2469df['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2469df[_0x3e02('0x161')])continue;if(!Pt(_0x43fa81,_0x1b13f7))continue;let _0xf81374=!0x0;for(const _0x5e8da5 of _0x43fa81['getRanges']())for(const _0x11cc8a of _0x33494a)if(!_0x5e8da5[_0x3e02('0x4a')](_0x11cc8a)){_0xf81374=!0x1;break;}if(_0xf81374)return _0x43fa81;}const _0x496461=_0x4f4e21(),_0x3557c9=_0x47c69b['id'],_0x2ff0bc='insertion:'+_0x288520,_0x1c3c36=this[_0x3e02('0x30')]({'id':_0x496461,'type':_0x2ff0bc,'createdAt':new Date(),'authorId':_0x3557c9,'attributes':_0x1b13f7});for(const _0x486aa3 of _0x33494a)this['_addSuggestionMarker'](_0x2ff0bc,_0x496461,_0x3557c9,_0x486aa3,_0x38dd3e[_0x3e02('0x142')]());return _0x1c3c36;}[_0x3e02('0x33')](_0x3a1fad,_0x2c1940,_0x1f2843=null,_0x338a66={}){if(_0x1f2843=_0x1f2843||Et(_0x2c1940),_0x3a1fad[_0x3e02('0x74')])return null;if(_0x3e02('0x4f')===this[_0x3e02('0x3')]){const _0x36279f=this[_0x3e02('0x86')][_0x3e02('0x114')]('formatInline',_0x1f2843,_0x3e02('0xdc'));return this[_0x3e02('0xd9')](()=>_0x36279f([_0x3a1fad],_0x2c1940,_0x338a66)),null;}const _0x554972=this['editor'][_0x3e02('0xb1')][_0x3e02('0xf0')](_0x3e02('0x13d'))['me'],_0x7ca550=[];if(_0x3e02('0x39')!==this['_trackFormatChanges'])for(const {suggestion:_0x1d4c27,meta:_0x21f4e8}of this[_0x3e02('0x135')](_0x3a1fad,_0x3e02('0x168')))_0x21f4e8[_0x3e02('0x10d')]&&!_0x21f4e8[_0x3e02('0x149')]&&_0x7ca550[_0x3e02('0xb5')](..._0x1d4c27[_0x3e02('0x16a')]());const _0x19002e=function(_0x3efc1c,_0x35be09){const _0x27fa5b=[];for(const _0x10b339 of _0x35be09){const _0x5a6a3a=_0x3efc1c[_0x3e02('0x26')](_0x10b339);_0x5a6a3a&&_0x27fa5b[_0x3e02('0xb5')](_0x5a6a3a);}return _0x27fa5b;}(_0x3a1fad,_0x7ca550),_0x3850d2=function(_0x3bf8b9,_0x56836d){const _0x13d4c3=[_0x3bf8b9];for(const _0xeee29a of _0x56836d){let _0x2e65b1=0x0;for(;_0x2e65b1<_0x13d4c3[_0x3e02('0x3a')];){const _0x38de17=_0x13d4c3[_0x2e65b1]['getDifference'](_0xeee29a);_0x13d4c3[_0x3e02('0x95')](_0x2e65b1,0x1,..._0x38de17),_0x2e65b1+=_0x38de17[_0x3e02('0x3a')];}}return _0x13d4c3;}(_0x3a1fad,_0x7ca550);_0x19002e[_0x3e02('0x3a')]&&this['_model'][_0x3e02('0x5a')](()=>{for(const _0x5e1767 of _0x19002e){const _0x597642=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f2843,_0x3e02('0xdc'));this[_0x3e02('0xd9')](()=>_0x597642([_0x5e1767],_0x2c1940,_0x338a66));}});for(const _0x462950 of _0x3850d2){let _0x52136e=null,_0x31b002=_0x462950[_0x3e02('0xb7')],_0x20986d=_0x462950['end'];for(const {suggestion:_0x18e06d,meta:_0x3d3f6f}of this[_0x3e02('0x135')](_0x462950,_0x3e02('0xd7'))){if(!_0x3d3f6f[_0x3e02('0x10d')])continue;if(_0x18e06d[_0x3e02('0x31')]!=_0x1f2843)continue;if(!Pt(_0x18e06d,_0x338a66))continue;const _0x3d65df=_0x18e06d[_0x3e02('0x164')]();if(_0x3d65df[_0x3e02('0x4a')](_0x462950,!0x0))return null;_0x31b002=_0x31b002[_0x3e02('0x90')](_0x3d65df['start'])?_0x31b002:_0x3d65df[_0x3e02('0xb7')],_0x20986d=_0x20986d[_0x3e02('0x11f')](_0x3d65df[_0x3e02('0x177')])?_0x20986d:_0x3d65df[_0x3e02('0x177')],_0x52136e?_0x3d65df[_0x3e02('0xb7')][_0x3e02('0x90')](_0x52136e['getFirstRange']()[_0x3e02('0xb7')])?(_0x52136e[_0x3e02('0x8c')](),_0x52136e=_0x18e06d):_0x18e06d[_0x3e02('0x8c')]():_0x52136e=_0x18e06d;}const _0x1514a1=this[_0x3e02('0x115')][_0x3e02('0x127')](_0x31b002,_0x20986d);if(_0x52136e)this[_0x3e02('0x146')](_0x52136e,_0x1514a1);else{const _0x1e67fe=_0x4f4e21(),_0xeaa71b=_0x554972['id'];this[_0x3e02('0x30')]({'id':_0x1e67fe,'type':_0x3e02('0xf7')+_0x1f2843,'data':_0x2c1940,'createdAt':new Date(),'authorId':_0xeaa71b,'attributes':_0x338a66}),this[_0x3e02('0x92')]('formatInline:'+_0x1f2843,_0x1e67fe,_0xeaa71b,_0x1514a1);}}return null;}[_0x3e02('0x32')](_0x2185c6,_0x3281ae,_0x52a243=[],_0x4e5518=null,_0x151fbf={}){_0x3281ae[_0x3e02('0xf4')]||(_0x3281ae['formatGroupId']=_0x3281ae[_0x3e02('0xd6')]),_0x3281ae['multipleBlocks']=_0x2185c6['is']('range'),_0x4e5518=_0x4e5518||Et(_0x3281ae);const _0x2861ab=_0x52a243[_0x3e02('0x120')](_0x5beeb7=>Ot(_0x5beeb7,this['_model'])),_0x563aab=_0x2185c6['is'](_0x3e02('0x12e'))?_0x2185c6:Ot(_0x2185c6,this[_0x3e02('0x115')]);if(_0x3e02('0x4f')===this['_trackFormatChanges']){const _0x59935d=this['_suggestionFactory'][_0x3e02('0x114')](_0x3e02('0x46'),_0x4e5518,_0x3e02('0xdc'));return this[_0x3e02('0xd9')](()=>_0x59935d([_0x563aab],_0x3281ae,_0x151fbf)),null;}_0x2861ab[_0x3e02('0xb5')](_0x563aab);let _0x1bc59a=!0x0;for(const _0x33c7bd of _0x2861ab)if(!this['_rangeIsInLocalUserInsertion'](_0x33c7bd)){_0x1bc59a=!0x1;break;}if(_0x1bc59a&&_0x3e02('0x39')!==this[_0x3e02('0x3')]){const _0xa62bb4=this['_suggestionFactory']['getSuggestionCallback'](_0x3e02('0x46'),_0x4e5518,_0x3e02('0xdc'));return this[_0x3e02('0xd9')](()=>_0xa62bb4([_0x563aab],_0x3281ae,_0x151fbf)),null;}let _0x3ddb82=null,_0x1208ac=_0x563aab[_0x3e02('0xb7')],_0x3cc0f8=_0x563aab[_0x3e02('0x177')];for(const {suggestion:_0x44f0f8,meta:_0x13609e}of this[_0x3e02('0x135')](_0x563aab,_0x3e02('0x46'))){if(!_0x13609e[_0x3e02('0x10d')])continue;if(_0x13609e[_0x3e02('0x24')]||_0x13609e['containsRangeInObject']||_0x13609e[_0x3e02('0x149')])continue;if(_0x44f0f8[_0x3e02('0x165')][_0x3e02('0xf4')]!=_0x3281ae[_0x3e02('0xf4')])continue;if(!Pt(_0x44f0f8,_0x151fbf))continue;const _0x2f7b7c=_0x44f0f8[_0x3e02('0x164')]();if(_0x44f0f8[_0x3e02('0x31')]==_0x4e5518){if(_0x2f7b7c['containsRange'](_0x563aab,!0x0))return null;_0x1208ac=_0x1208ac[_0x3e02('0x90')](_0x2f7b7c['start'])?_0x1208ac:_0x2f7b7c[_0x3e02('0xb7')],_0x3cc0f8=_0x3cc0f8[_0x3e02('0x11f')](_0x2f7b7c[_0x3e02('0x177')])?_0x3cc0f8:_0x2f7b7c[_0x3e02('0x177')],_0x3ddb82?_0x2f7b7c[_0x3e02('0xb7')][_0x3e02('0x90')](_0x3ddb82[_0x3e02('0x164')]()[_0x3e02('0xb7')])?(_0x3ddb82[_0x3e02('0x8c')](),_0x3ddb82=_0x44f0f8):_0x44f0f8['removeMarkers']():_0x3ddb82=_0x44f0f8;}else{const _0x2673cd=_0x563aab[_0x3e02('0x26')](_0x2f7b7c);this[_0x3e02('0xdd')](_0x44f0f8,_0x2673cd);}}const _0x2647cd=this[_0x3e02('0x129')][_0x3e02('0xb1')]['get'](_0x3e02('0x13d'))['me'],_0x53eb0f=_0x4f4e21(),_0x4b50eb=_0x2647cd['id'];if(_0x3ddb82)return this[_0x3e02('0x146')](_0x3ddb82,this[_0x3e02('0x115')][_0x3e02('0x127')](_0x1208ac,_0x3cc0f8)),_0x3ddb82;{const _0x1f0dcb=this[_0x3e02('0x30')]({'id':_0x53eb0f,'type':'formatBlock:'+_0x4e5518,'data':_0x3281ae,'createdAt':new Date(),'authorId':_0x4b50eb,'attributes':_0x151fbf});return this['_addSuggestionMarker']('formatBlock:'+_0x4e5518,_0x53eb0f,_0x4b50eb,this['_model'][_0x3e02('0x127')](_0x1208ac,_0x3cc0f8)),_0x1f0dcb;}}[_0x3e02('0x7b')](_0x4e33b1,_0x4ab363,_0x3a4bac=[],_0x3c094a=null,_0x3019d6={}){_0x4ab363[_0x3e02('0xf4')]||(_0x4ab363[_0x3e02('0xf4')]=_0x4ab363[_0x3e02('0xd6')]);const _0xd6d41f=_0x4e33b1[0x0];_0x4ab363[_0x3e02('0xea')]=_0xd6d41f['is']('range'),_0x3c094a=_0x3c094a||Et(_0x4ab363);const _0x2bba62=_0x3a4bac[_0x3e02('0x120')](_0x1bbeb8=>Ot(_0x1bbeb8,this[_0x3e02('0x115')])),_0x479638=_0xd6d41f['is'](_0x3e02('0x12e'))?_0x4e33b1:_0x4e33b1[_0x3e02('0x120')](_0x129a3f=>Ot(_0x129a3f,this[_0x3e02('0x115')]));if(_0x3e02('0x4f')===this[_0x3e02('0x3')]){const _0x2c2a1a=this[_0x3e02('0x86')]['getSuggestionCallback']('formatBlock',_0x3c094a,_0x3e02('0xdc'));return this[_0x3e02('0xd9')](()=>_0x2c2a1a(_0x479638,_0x4ab363,_0x3019d6)),null;}_0x2bba62[_0x3e02('0xb5')](..._0x479638);let _0x3f1acc=!0x0;for(const _0xc9bfa0 of _0x2bba62)if(!this['_rangeIsInLocalUserInsertion'](_0xc9bfa0)){_0x3f1acc=!0x1;break;}if(_0x3f1acc&&_0x3e02('0x39')!==this['_trackFormatChanges']){const _0x152606=this['_suggestionFactory']['getSuggestionCallback'](_0x3e02('0x46'),_0x3c094a,'accept');return this[_0x3e02('0xd9')](()=>_0x152606(_0x479638,_0x4ab363,_0x3019d6)),null;}const _0x30bb41=this[_0x3e02('0x129')]['plugins'][_0x3e02('0xf0')](_0x3e02('0x13d'))['me'];for(const _0x28a87d of this[_0x3e02('0x77')]()){if(_0x28a87d[_0x3e02('0x9e')]['id']!=_0x30bb41['id'])continue;if(_0x3e02('0x46')!=_0x28a87d['type']||_0x28a87d[_0x3e02('0x165')][_0x3e02('0xf4')]!=_0x4ab363[_0x3e02('0xf4')])continue;if(!Pt(_0x28a87d,_0x3019d6))continue;const _0x2b6c8a=_0x28a87d[_0x3e02('0x31')]==_0x3c094a;for(let _0x4224c4=0x0;_0x4224c4<_0x479638[_0x3e02('0x3a')];_0x4224c4++){const _0x3c7c1d=_0x479638[_0x4224c4];for(const _0x1e0a3b of _0x28a87d[_0x3e02('0x79')]()){const _0x37e9b2=_0x1e0a3b['getRange']();if(_0x3c7c1d['isEqual'](_0x37e9b2)){_0x2b6c8a?(_0x479638['splice'](_0x4224c4,0x1),_0x4224c4--):_0x28a87d[_0x3e02('0x10')](_0x1e0a3b[_0x3e02('0x44')]);break;}}}}if(0x0==_0x479638['length'])return null;const _0x3d10e2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c094a,_0x3e02('0x101'));for(const _0x34e52e of this[_0x3e02('0x77')]())if(_0x34e52e[_0x3e02('0x9e')]['id']==_0x30bb41['id']&&_0x3e02('0x46')==_0x34e52e[_0x3e02('0xbf')]&&_0x34e52e[_0x3e02('0x165')][_0x3e02('0xf4')]==_0x4ab363[_0x3e02('0xf4')]&&_0x34e52e[_0x3e02('0x31')]==_0x3c094a&&Pt(_0x34e52e,_0x3019d6)&&(_0x3d10e2(_0x34e52e['getRanges'](),_0x479638)||_0x3d10e2(_0x479638,_0x34e52e[_0x3e02('0x16a')]()))){for(const _0x17e0b4 of _0x479638)_0x34e52e[_0x3e02('0x1')](_0x17e0b4);return _0x34e52e;}const _0x5c93c5=_0x4f4e21(),_0x171cf9=_0x30bb41['id'],_0x133396='formatBlock:'+_0x3c094a,_0x3eb6d6=this[_0x3e02('0x30')]({'id':_0x5c93c5,'type':_0x133396,'data':_0x4ab363,'createdAt':new Date(),'authorId':_0x171cf9,'attributes':_0x3019d6});for(const _0x4a539f of _0x479638)this[_0x3e02('0x92')](_0x133396,_0x5c93c5,_0x171cf9,_0x4a539f,_0x38dd3e[_0x3e02('0x142')]());return _0x3eb6d6;}['markDeletion'](_0x1f19c5,_0x2b8fd0=null,_0x1638fc={}){if(_0x1f19c5[_0x3e02('0x74')])return null;const _0x2c59bf=this['editor'][_0x3e02('0xb1')][_0x3e02('0xf0')](_0x3e02('0x13d'))['me'],_0x307af1=new _0x55afed(_0x1f19c5['start'],_0x1f19c5['end']);for(const {suggestion:_0x205c5d,meta:_0x4f1ea4}of this[_0x3e02('0x135')](_0x307af1,_0x3e02('0x168')))if(_0x4f1ea4[_0x3e02('0x10d')]&&!_0x4f1ea4[_0x3e02('0x24')]){if(_0x205c5d[_0x3e02('0x60')]){const _0x64c662=_0x205c5d['getRanges']()['filter'](_0x16da45=>_0x3e02('0xed')!=_0x16da45['root'][_0x3e02('0xde')]);_0x64c662[_0x3e02('0xee')](_0x18f60b=>_0x307af1[_0x3e02('0x4a')](_0x18f60b,!0x0))&&_0x205c5d['discard']();if(_0x64c662[_0x3e02('0x14e')](_0x33f4f1=>_0x33f4f1[_0x3e02('0x4a')](_0x307af1,!0x0))){const _0x31288b=this[_0x3e02('0x86')][_0x3e02('0x114')](_0x3e02('0x166'),_0x2b8fd0,_0x3e02('0xdc'));return this[_0x3e02('0xd9')](()=>_0x31288b([_0x307af1],null,_0x1638fc)),null;}}else{const _0x56c575=_0x307af1[_0x3e02('0x26')](_0x205c5d['getFirstRange']());null!==_0x56c575&&_0x205c5d[_0x3e02('0x122')]([_0x56c575],null,_0x1638fc);}}if(_0x307af1[_0x3e02('0x15a')](),_0x307af1[_0x3e02('0x74')]||_0x3e02('0xed')==_0x307af1['root']['rootName'])return null;let _0x29f397=null,_0x2976ea=_0x307af1[_0x3e02('0xb7')],_0x5ebb8a=_0x307af1[_0x3e02('0x177')];const _0x3d2b48=this[_0x3e02('0x135')](_0x307af1,'deletion');for(const {suggestion:_0x46c611,meta:_0x58bdd2}of _0x3d2b48){const _0x2a223c=this[_0x3e02('0x115')]['createRange'](_0x2976ea,_0x5ebb8a);if(_0x58bdd2[_0x3e02('0x10d')]&&(this['_mergeNestedSuggestions']||!_0x58bdd2[_0x3e02('0x161')]&&!_0x58bdd2[_0x3e02('0x149')])){if(_0x46c611['isMultiRange']){if(!Pt(_0x46c611,_0x1638fc))continue;let _0x58f94d=!0x0;for(const _0x4b6b41 of _0x46c611[_0x3e02('0x16a')]()){if(_0x4b6b41[_0x3e02('0x4a')](_0x2a223c,!0x0))return _0x46c611;_0x2a223c['containsRange'](_0x4b6b41)||(_0x58f94d=!0x1);}_0x58f94d&&_0x46c611[_0x3e02('0x65')]();}else{const _0x76d274=_0x46c611[_0x3e02('0x164')]();if(_0x76d274[_0x3e02('0x4a')](_0x2a223c,!0x0))return _0x46c611;if(!Pt(_0x46c611,_0x1638fc)){_0x2a223c[_0x3e02('0x4a')](_0x76d274)?_0x46c611[_0x3e02('0x8c')]():_0x76d274[_0x3e02('0x41')](_0x2976ea)?_0x2976ea=_0x76d274[_0x3e02('0x177')]:_0x76d274['containsPosition'](_0x5ebb8a)&&(_0x5ebb8a=_0x76d274[_0x3e02('0xb7')]);continue;}_0x2976ea=_0x2976ea[_0x3e02('0x90')](_0x76d274[_0x3e02('0xb7')])?_0x2976ea:_0x76d274[_0x3e02('0xb7')],_0x5ebb8a=_0x5ebb8a[_0x3e02('0x11f')](_0x76d274[_0x3e02('0x177')])?_0x5ebb8a:_0x76d274[_0x3e02('0x177')],_0x1638fc=Object[_0x3e02('0xe9')]({},_0x46c611['attributes']),_0x29f397?_0x76d274[_0x3e02('0xb7')]['isBefore'](_0x29f397['getFirstRange']()[_0x3e02('0xb7')])?(_0x29f397['removeMarkers'](),_0x29f397=_0x46c611):_0x46c611[_0x3e02('0x8c')]():_0x29f397=_0x46c611;}}}if(_0x29f397)return this[_0x3e02('0x146')](_0x29f397,this[_0x3e02('0x115')][_0x3e02('0x127')](_0x2976ea,_0x5ebb8a)),_0x29f397;{const _0x3af741=_0x4f4e21(),_0x156966=this[_0x3e02('0x115')]['createRange'](_0x2976ea,_0x5ebb8a),_0xadc12b=_0x2c59bf['id'],_0x185602=_0x2b8fd0?_0x3e02('0x15d')+_0x2b8fd0:_0x3e02('0x166'),_0x1e73ef=this[_0x3e02('0x30')]({'id':_0x3af741,'type':_0x185602,'createdAt':new Date(),'authorId':_0xadc12b,'attributes':_0x1638fc});return this[_0x3e02('0x92')](_0x185602,_0x3af741,_0xadc12b,_0x156966),_0x1e73ef;}}[_0x3e02('0x19')](_0x108469,_0x446f7d=_0x3e02('0x9c'),_0x337478={}){const _0x4d29f9=this[_0x3e02('0x129')][_0x3e02('0xb1')]['get'](_0x3e02('0x13d'))['me'],_0x4c9ad9=_0x108469[_0x3e02('0x120')](_0xe57859=>new _0x55afed(_0xe57859[_0x3e02('0xb7')],_0xe57859[_0x3e02('0x177')])),_0x2638da=new Set();for(const {suggestion:_0x40b2fe,meta:_0x45642d}of this['_findSuggestions'](_0x4c9ad9,'insertion'))_0x45642d[_0x3e02('0x10d')]&&!_0x45642d[_0x3e02('0x24')]&&_0x2638da[_0x3e02('0x173')](_0x40b2fe);for(const _0x3f1cf4 of _0x2638da)if(_0x3f1cf4[_0x3e02('0x60')]){const _0x3ad7c9=_0x3f1cf4['getRanges']();(!_0x3f1cf4[_0x3e02('0x6f')]||!_0x3f1cf4[_0x3e02('0x6f')][_0x3e02('0x10a')])&&(_0x3ad7c9['every'](_0x44a78=>_0x4c9ad9[_0x3e02('0x14e')](_0x15d635=>_0x15d635[_0x3e02('0x4a')](_0x44a78,!0x0)))&&_0x3f1cf4[_0x3e02('0x65')]());if(_0x4c9ad9['every'](_0x4624a3=>_0x3ad7c9[_0x3e02('0x14e')](_0x37b857=>_0x37b857['containsRange'](_0x4624a3,!0x0)))){const _0xc7bbfa=this[_0x3e02('0x86')][_0x3e02('0x114')](_0x3e02('0x166'),_0x446f7d,_0x3e02('0xdc'));return this['forceDefaultExecution'](()=>_0xc7bbfa(_0x108469,null,_0x337478)),null;}}else{const _0x166a1c=_0x3f1cf4[_0x3e02('0x164')]();_0x4c9ad9['some'](_0x24ff4c=>_0x24ff4c[_0x3e02('0x4a')](_0x166a1c,!0x0))&&_0x3f1cf4[_0x3e02('0x65')]();if(_0x4c9ad9[_0x3e02('0xee')](_0x2298f2=>_0x166a1c['containsRange'](_0x2298f2,!0x0))){const _0x2a7497=this['_suggestionFactory'][_0x3e02('0x114')](_0x3e02('0x166'),_0x446f7d,_0x3e02('0xdc'));return this[_0x3e02('0xd9')](()=>_0x2a7497(_0x4c9ad9,null,_0x337478)),null;}}const _0x577887=this[_0x3e02('0x86')][_0x3e02('0x114')](_0x3e02('0x166'),_0x446f7d,_0x3e02('0x101'));let _0x53e700=null;for(const _0x453aa1 of this[_0x3e02('0x77')]())if(_0x453aa1[_0x3e02('0x9e')]['id']==_0x4d29f9['id']&&_0x453aa1[_0x3e02('0x12')]&&'deletion'==_0x453aa1[_0x3e02('0xbf')]&&_0x453aa1['subType']==_0x446f7d&&Pt(_0x453aa1,_0x337478)&&(_0x577887(_0x453aa1[_0x3e02('0x16a')](),_0x4c9ad9)||_0x577887(_0x4c9ad9,_0x453aa1[_0x3e02('0x16a')]()))){if(_0x53e700){if(_0x453aa1[_0x3e02('0x6e')]&&_0x453aa1[_0x3e02('0x6e')]['length'])continue;for(const _0x349c0a of _0x453aa1[_0x3e02('0x16a')]())_0x53e700['isIntersectingWithRange'](_0x349c0a)||_0x53e700[_0x3e02('0x1')](_0x349c0a);_0x453aa1[_0x3e02('0x8c')]();}else{_0x53e700=_0x453aa1;for(const _0x4bec01 of _0x4c9ad9)_0x453aa1[_0x3e02('0x147')](_0x4bec01)||_0x453aa1[_0x3e02('0x1')](_0x4bec01);}}if(_0x53e700)return _0x53e700;_0x2638da[_0x3e02('0x100')]();for(const {suggestion:_0x788cda,meta:_0x3f48ea}of this[_0x3e02('0x135')](_0x4c9ad9,_0x3e02('0x166')))_0x3f48ea[_0x3e02('0x10d')]&&(this['_mergeNestedSuggestions']||!_0x3f48ea[_0x3e02('0x161')]&&!_0x3f48ea['isInsideObject'])&&Pt(_0x788cda,_0x337478)&&_0x2638da[_0x3e02('0x173')](_0x788cda);for(const _0x29a3da of _0x2638da){const _0x2908ef=_0x29a3da[_0x3e02('0x16a')]();if(!_0x337478||!_0x337478[_0x3e02('0x10a')]){if(_0x4c9ad9[_0x3e02('0xee')](_0xf73e46=>_0x2908ef[_0x3e02('0x14e')](_0x1f251f=>_0x1f251f[_0x3e02('0x4a')](_0xf73e46,!0x0))))return _0x29a3da;}(!_0x29a3da[_0x3e02('0x6f')]||!_0x29a3da[_0x3e02('0x6f')][_0x3e02('0x10a')])&&(_0x2908ef[_0x3e02('0xee')](_0x4e708e=>_0x4c9ad9[_0x3e02('0x14e')](_0x2cdd56=>_0x2cdd56[_0x3e02('0x4a')](_0x4e708e,!0x0)))&&_0x29a3da[_0x3e02('0x65')]());}const _0x4f57e8=_0x4f4e21(),_0x29ed47=_0x4d29f9['id'],_0x517eaa='deletion:'+_0x446f7d,_0x57c78d=this[_0x3e02('0x30')]({'id':_0x4f57e8,'type':_0x517eaa,'createdAt':new Date(),'authorId':_0x29ed47,'attributes':_0x337478});for(const _0x32c2d6 of _0x4c9ad9)_0x32c2d6[_0x3e02('0x15a')](),_0x32c2d6[_0x3e02('0x74')]||_0x3e02('0xed')==_0x32c2d6[_0x3e02('0x8e')][_0x3e02('0xde')]||this[_0x3e02('0x92')](_0x517eaa,_0x4f57e8,_0x29ed47,_0x32c2d6,_0x38dd3e[_0x3e02('0x142')]());return _0x57c78d;}[_0x3e02('0x27')](_0xb1ca85,_0x5690d9,_0x30d132,_0x381db8,_0x2ed25b){if(_0xb1ca85[_0x3e02('0x74')])return[];if(_0x3e02('0x4f')===this[_0x3e02('0x3')])return[];const _0x426958=this['editor']['plugins'][_0x3e02('0xf0')](_0x3e02('0x13d'))['me']['id'],_0x524e95=Array[_0x3e02('0x9f')](this[_0x3e02('0x134')][_0x3e02('0x57')]())[_0x3e02('0xf1')](_0x3b2ebc=>_0x3e02('0xf')==_0x3b2ebc['type']&&_0x3b2ebc[_0x3e02('0x165')][_0x3e02('0x93')]==_0x5690d9&&_0x3b2ebc[_0x3e02('0x147')](_0xb1ca85));if(_0x3e02('0x40')===this[_0x3e02('0x3')]){const _0x1f6d94=this[_0x3e02('0x135')](_0xb1ca85,'insertion')[_0x3e02('0xf1')](({meta:_0x30b884})=>_0x30b884[_0x3e02('0x10d')]&&!_0x30b884[_0x3e02('0x149')]&&!_0x30b884[_0x3e02('0x24')])[_0x3e02('0x120')](({suggestion:_0x184aad})=>_0x184aad);_0x524e95['unshift'](..._0x1f6d94);}const _0x2369cf=new Map([[_0xb1ca85,_0x30d132]]);for(const _0x1ee4bd of _0x524e95){const _0xce5ac3='attribute'==_0x1ee4bd['type']?_0x1ee4bd[_0x3e02('0x165')][_0x3e02('0x91')]:void 0x0,_0x2853f9=_0x1ee4bd['getFirstRange'](),_0x11c3b8=Array['from'](_0x2369cf['keys']())[_0x3e02('0xd')](_0x24ec9f=>_0x24ec9f[_0x3e02('0x6a')](_0x2853f9));if(!_0x11c3b8)continue;const _0x1b4c3b=_0x11c3b8['getDifference'](_0x2853f9);this['_isBlockAttribute'](_0x5690d9)&&_0x3e02('0x168')==_0x1ee4bd[_0x3e02('0xbf')]&&0x0!=_0x1b4c3b[_0x3e02('0x3a')]||(_0x2369cf[_0x3e02('0x20')](_0x11c3b8),_0x1b4c3b['forEach'](_0x54b68c=>{_0x2369cf[_0x3e02('0x64')](_0x54b68c,_0x30d132);}),_0x3e02('0x168')!=_0x1ee4bd[_0x3e02('0xbf')]&&_0xce5ac3!=_0x381db8&&_0x2369cf[_0x3e02('0x64')](_0x11c3b8['getIntersection'](_0x2853f9),_0xce5ac3));}const _0x63c8cc=[];for(const [_0x261a1a,_0x1513b]of _0x2369cf){const _0xe30349=_0x4f4e21(),_0x310ed9={'key':_0x5690d9,'oldValue':_0x1513b,'newValue':_0x381db8};_0x5690d9[_0x3e02('0x3a')]>0x25&&console[_0x3e02('0x8b')](_0x3e02('0x13f'),{'key':_0x5690d9});const _0x445fc8=('attribute:'+(_0x5690d9+'|'+Et({'newValue':_0x381db8})))['substring'](0x0,0x3c),_0x362e12=this[_0x3e02('0x30')]({'id':_0xe30349,'type':_0x445fc8,'data':_0x310ed9,'createdAt':new Date(),'authorId':_0x426958,'attributes':_0x2ed25b});_0x63c8cc[_0x3e02('0xb5')](_0x362e12),this['_addSuggestionMarker'](_0x445fc8,_0xe30349,_0x426958,_0x261a1a);}return _0x63c8cc;}[_0x3e02('0x132')](_0x159f2a){this[_0x3e02('0x88')][_0x3e02('0x173')](_0x159f2a);}['_registerInlineAttribute'](_0x5653c4){this[_0x3e02('0x47')][_0x3e02('0x173')](_0x5653c4);}['_enableDefaultAttributesIntegration'](_0x1e93f0,_0x7ab465=[],_0x2cd9dd=[]){this[_0x3e02('0x162')](_0x1e93f0,(_0xfb1ce9,..._0x759cca)=>{this[_0x3e02('0x176')](()=>{_0xfb1ce9(..._0x759cca);});});for(const _0x52a285 of _0x7ab465)this[_0x3e02('0x7a')](_0x52a285);for(const _0x151a95 of _0x2cd9dd)this[_0x3e02('0x132')](_0x151a95);}[_0x3e02('0xba')](_0x1b168e){return _0x3e02('0xf')==_0x1b168e['type']?_0x1b168e[_0x3e02('0x31')][_0x3e02('0x126')]('|')[0x0]:null;}[_0x3e02('0x146')](_0x22af81,_0x1768ad){const _0x3604b5=_0x22af81[_0x3e02('0xc7')]();this['_model']['change'](_0x235a89=>{_0x235a89[_0x3e02('0x119')](_0x3604b5,{'range':_0x1768ad});});}[_0x3e02('0x158')](_0x590c31){const _0x40eab9=_0x590c31['id'],_0x17e3b9=this[_0x3e02('0x129')][_0x3e02('0x63')][_0x3e02('0xf0')](_0x3e02('0x49'));this[_0x3e02('0xb8')][_0x3e02('0x157')](_0x40eab9)||this[_0x3e02('0xb8')][_0x3e02('0xa6')]({'channelId':_0x17e3b9,'threadId':_0x40eab9,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x192738=this[_0x3e02('0xb8')][_0x3e02('0x94')](_0x40eab9);_0x192738['unbind']('isRemovable'),_0x192738[_0x3e02('0x43')]=!0x1,_0x590c31[_0x3e02('0x6e')]=_0x192738;}[_0x3e02('0x8d')](_0x270304,_0x247b5e,_0x57fd2f,_0x5152de){if(_0x270304[_0x3e02('0xbf')]!=_0x247b5e||_0x270304[_0x3e02('0x31')]!=_0x57fd2f||_0x270304[_0x3e02('0x14b')]['id']!=_0x5152de)throw this['editor'][_0x3e02('0x133')]('track-changes-suggestion-data-mismatch'),new _0x115de0('track-changes-suggestion-data-mismatch',this);}[_0x3e02('0xdd')](_0x410808,_0x409fe5){const _0x5e55d2=_0x410808[_0x3e02('0x164')]();if(_0x409fe5['isEqual'](_0x5e55d2))_0x410808['removeMarkers']();else{if(_0x5e55d2[_0x3e02('0x4a')](_0x409fe5)){const _0x4a566f=this[_0x3e02('0x115')][_0x3e02('0x3b')](_0x409fe5['start'][_0x3e02('0xe2')],_0x3e02('0x177'));this[_0x3e02('0x146')](_0x410808,this[_0x3e02('0x115')][_0x3e02('0x127')](_0x5e55d2[_0x3e02('0xb7')],_0x4a566f));const _0xf8f049=_0x4f4e21(),_0xba6b1a=_0x410808[_0x3e02('0x14b')]['id'],_0x17bd16=_0x410808['type']+':'+_0x410808[_0x3e02('0x31')];this[_0x3e02('0x30')]({'id':_0xf8f049,'type':_0x17bd16,'createdAt':new Date(),'authorId':_0xba6b1a,'data':_0x410808[_0x3e02('0x165')],'attributes':_0x410808[_0x3e02('0x6f')]});const _0x21831d=this['_model'][_0x3e02('0x3b')](_0x409fe5[_0x3e02('0x177')][_0x3e02('0x83')],_0x3e02('0xe3')),_0xe9b61f=this[_0x3e02('0x115')][_0x3e02('0x127')](_0x21831d,_0x5e55d2['end']);this[_0x3e02('0x92')](_0x17bd16,_0xf8f049,_0xba6b1a,_0xe9b61f);}else{if(_0x5e55d2[_0x3e02('0x41')](_0x409fe5[_0x3e02('0xb7')])){const _0x33fa92=this[_0x3e02('0x115')][_0x3e02('0x3b')](_0x409fe5['start'][_0x3e02('0xe2')],_0x3e02('0x177'));this['_setSuggestionRange'](_0x410808,this[_0x3e02('0x115')][_0x3e02('0x127')](_0x5e55d2['start'],_0x33fa92));}else{const _0x5d27c1=this[_0x3e02('0x115')][_0x3e02('0x3b')](_0x409fe5[_0x3e02('0x177')][_0x3e02('0x83')],_0x3e02('0xe3'));this[_0x3e02('0x146')](_0x410808,this[_0x3e02('0x115')][_0x3e02('0x127')](_0x5d27c1,_0x5e55d2[_0x3e02('0x177')]));}}}}[_0x3e02('0xda')](_0x8ed565){for(const {suggestion:_0x34fb1e,meta:_0x2cc621}of this[_0x3e02('0x135')](_0x8ed565,_0x3e02('0x168'))){if(!_0x2cc621[_0x3e02('0x10d')])continue;const _0x54e9b8=_0x34fb1e['getRanges']();for(const _0x4c906f of _0x54e9b8)if(!_0x8ed565[_0x3e02('0x17')](_0x4c906f)[_0x3e02('0x3a')])return!0x0;}return!0x1;}[_0x3e02('0x172')](_0x452669){const _0x22bd49=this[_0x3e02('0x129')][_0x3e02('0xb1')][_0x3e02('0xf0')](_0x3e02('0x13d'))[_0x3e02('0x6b')](_0x452669);if(!_0x22bd49)throw new _0x115de0(_0x3e02('0x139'),this);return _0x22bd49;}['_getExternalAuthor'](_0x35ce2c){const _0x2b6d43=this[_0x3e02('0x129')][_0x3e02('0xb1')][_0x3e02('0xf0')]('Users'),_0x16a087=_0x1b5f96(_0x3e02('0xc0')+_0x35ce2c),_0x39d9dc=_0x2b6d43[_0x3e02('0x6b')](_0x16a087);return _0x39d9dc||_0x2b6d43[_0x3e02('0xf3')]({'id':_0x16a087,'name':_0x35ce2c});}[_0x3e02('0x37')](_0x37f274,_0x557183,_0x2c9b4f,_0x43e7f6,_0x1e41bc){const _0x1bac25=this[_0x3e02('0x172')](_0x43e7f6),_0x52c64d=this[_0x3e02('0x86')][_0x3e02('0xec')](_0x37f274,_0x557183,_0x2c9b4f,_0x1bac25,_0x1e41bc,_0xf9bf53=>{this[_0x3e02('0x170')](_0x2c9b4f,{'attributes':_0xf9bf53});const _0x2c5659=this[_0x3e02('0x16')](_0x2c9b4f);this[_0x3e02('0x71')](new Set([_0x2c5659])),this[_0x3e02('0x178')](new Set([_0x2c5659]));});return this['listenTo'](_0x52c64d,'accept',()=>{this[_0x3e02('0x170')](_0x2c9b4f,{'state':_0x3e02('0xca')});},{'priority':'high'}),this[_0x3e02('0x36')](_0x52c64d,_0x3e02('0x65'),()=>{this[_0x3e02('0x170')](_0x2c9b4f,{'state':_0x3e02('0x11e')});},{'priority':'high'}),this[_0x3e02('0x134')][_0x3e02('0x64')](_0x2c9b4f,_0x52c64d),this[_0x3e02('0x7')][_0x3e02('0x64')](_0x52c64d,_0x3e02('0xe')),_0x52c64d;}['_splitMarkerName'](_0xa161b7){const _0x28a5e0=_0xa161b7['split'](':');return{'group':_0x28a5e0[0x0],'type':_0x28a5e0[0x1],'subType':_0x28a5e0[_0x3e02('0x3a')]>=0x5?_0x28a5e0[0x2]:null,'id':_0x28a5e0[_0x3e02('0x3a')]<0x5?_0x28a5e0[0x2]:_0x28a5e0[0x3],'authorId':_0x28a5e0[_0x3e02('0x3a')]<0x5?_0x28a5e0[0x3]:_0x28a5e0[0x4],'markerCount':0x6==_0x28a5e0[_0x3e02('0x3a')]?_0x28a5e0[0x5]:null};}[_0x3e02('0xc')](_0x2e7144,_0x1c6846,_0x3a903b){const _0x3697b8=_0x2e7144['getFirstRange'](),_0x36600c=_0x3697b8[_0x3e02('0xb7')],_0x4275db=_0x3697b8[_0x3e02('0x177')];this[_0x3e02('0x146')](_0x2e7144,this[_0x3e02('0x115')][_0x3e02('0x127')](_0x36600c,_0x1c6846));const _0x50069c=_0x4f4e21(),_0x1b01dc=_0x2e7144[_0x3e02('0x14b')]['id'],_0x5b629a=_0x2e7144[_0x3e02('0xbf')]+(_0x2e7144[_0x3e02('0x31')]?':'+_0x2e7144[_0x3e02('0x31')]:'');this['_setSuggestionData']({'id':_0x50069c,'type':_0x5b629a,'createdAt':new Date(),'authorId':_0x1b01dc,'originalSuggestionId':_0x2e7144['id'],'attributes':_0x2e7144[_0x3e02('0x6f')],'data':_0x2e7144[_0x3e02('0x165')]});const _0x393628=this[_0x3e02('0xba')](_0x2e7144);('formatBlock'==_0x2e7144['type']||_0x393628&&this[_0x3e02('0x11b')](_0x393628))&&(_0x3a903b=this['_model'][_0x3e02('0xc4')](_0x3a903b[_0x3e02('0x83')])),this[_0x3e02('0x92')](_0x5b629a,_0x50069c,_0x1b01dc,this['_model']['createRange'](_0x3a903b,_0x4275db));}['_findSuggestions'](_0x41e087,_0x6a84b0=null){const _0x345864=[],_0x556338=this[_0x3e02('0x129')][_0x3e02('0xb1')]['get']('Users')['me'];Array[_0x3e02('0x112')](_0x41e087)||(_0x41e087=[_0x41e087]);for(const _0x65a5a4 of this['getSuggestions']()){if(!_0x65a5a4[_0x3e02('0x12')])continue;if(_0x6a84b0&&_0x65a5a4[_0x3e02('0xbf')]!=_0x6a84b0)continue;let _0x537a39=!0x1;for(const _0x116ff1 of _0x65a5a4[_0x3e02('0x16a')]()){for(const _0x5d3acb of _0x41e087){const _0x53fcb8=_0x5d3acb[_0x3e02('0xb7')][_0x3e02('0xb0')](_0x116ff1[_0x3e02('0x177')])||_0x5d3acb[_0x3e02('0x177')][_0x3e02('0xb0')](_0x116ff1[_0x3e02('0xb7')]);if(_0x53fcb8||_0x5d3acb[_0x3e02('0x26')](_0x116ff1)){const _0x486223=_0x5d3acb[_0x3e02('0x4a')](_0x116ff1)&&xt(this['_model'][_0x3e02('0x58')],_0x116ff1[_0x3e02('0xb7')],_0x5d3acb),_0x20b9e3=_0x116ff1['containsRange'](_0x5d3acb)&&xt(this[_0x3e02('0x115')][_0x3e02('0x58')],_0x5d3acb[_0x3e02('0xb7')],_0x116ff1);_0x345864[_0x3e02('0xb5')]({'suggestion':_0x65a5a4,'meta':{'isOwn':_0x556338==_0x65a5a4['author'],'isNextTo':_0x53fcb8,'isInsideObject':_0x486223,'containsRangeInObject':_0x20b9e3}}),_0x537a39=!0x0;break;}}if(_0x537a39)break;}}return _0x345864;}[_0x3e02('0x92')](_0x3ccf83,_0x45cea3,_0x1b6d8a,_0xefee0f,_0x3ee337){this[_0x3e02('0x115')][_0x3e02('0x5a')](_0x5b3587=>{let _0x85b2a7=_0x3e02('0x42')+_0x3ccf83+':'+_0x45cea3+':'+_0x1b6d8a;_0x3ee337&&(_0x85b2a7=_0x85b2a7+':'+_0x3ee337),_0x5b3587[_0x3e02('0x14')](_0x85b2a7,{'range':_0xefee0f,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1dbd19){const _0x42fed5=_0x1dbd19['previous'],_0x2a1e53=_0x1dbd19['next'];_0x1dbd19[_0x3e02('0xfd')]=null,_0x1dbd19[_0x3e02('0xd1')]=null,null!=_0x42fed5&&_0x42fed5['next']==_0x1dbd19&&(_0x42fed5[_0x3e02('0xd1')]=_0x2a1e53),null!=_0x2a1e53&&_0x2a1e53[_0x3e02('0xfd')]==_0x1dbd19&&(_0x2a1e53[_0x3e02('0xfd')]=_0x42fed5),'ready'==this[_0x3e02('0x7')][_0x3e02('0xf0')](_0x1dbd19)&&(this[_0x3e02('0x7')][_0x3e02('0x64')](_0x1dbd19,_0x3e02('0x10b')),this[_0x3e02('0x7e')](_0x3e02('0xa0'),_0x1dbd19,_0x42fed5,_0x2a1e53));}[_0x3e02('0x30')](_0x423713){const _0x45293b=_0x423713['id'],_0xd87249=this[_0x3e02('0x55')](_0x423713);if(this[_0x3e02('0xd5')]&&this[_0x3e02('0xd5')]['addSuggestion']){const _0x268885=this[_0x3e02('0x129')][_0x3e02('0xb1')][_0x3e02('0xf0')]('PendingActions'),_0x37394c=_0xd87249['hasComments'],_0x4d2490=_0xd87249['subType']?_0xd87249[_0x3e02('0xbf')]+':'+_0xd87249[_0x3e02('0x31')]:_0xd87249['type'],_0x29fcd3=this[_0x3e02('0x129')][_0x3e02('0xc8')],_0x4e5029=_0x268885['add'](_0x4097cc(_0x29fcd3,_0x3e02('0x110'))),_0x32b788={'id':_0x45293b,'type':_0x4d2490,'hasComments':_0x37394c,'data':_0x423713[_0x3e02('0x165')]||null,'originalSuggestionId':_0x423713[_0x3e02('0x7c')]||null,'attributes':_0xd87249['attributes']};this[_0x3e02('0xd5')][_0x3e02('0xb9')](_0x32b788)[_0x3e02('0x13')](_0x50b22a=>{_0xd87249[_0x3e02('0x96')]=!0x0,_0x268885['remove'](_0x4e5029),_0x50b22a&&_0x50b22a[_0x3e02('0x53')]&&(this[_0x3e02('0x134')][_0x3e02('0xf0')](_0x45293b)[_0x3e02('0x53')]=_0x50b22a[_0x3e02('0x53')]);})[_0x3e02('0xa2')](_0x42a5b3=>{throw _0x3d9484(_0x3e02('0x179')),this[_0x3e02('0x129')]['model'][_0x3e02('0x116')]({'isUndoable':!0x1},()=>{_0xd87249['discard']();}),_0xd87249['stopListening'](),this[_0x3e02('0x134')][_0x3e02('0x20')](_0xd87249['id']),this[_0x3e02('0x7')][_0x3e02('0x20')](_0xd87249),_0x42a5b3;});}return _0xd87249;}['_isBlockAttribute'](_0x214cbf){return this[_0x3e02('0x88')][_0x3e02('0x15b')](_0x214cbf);}[_0x3e02('0x170')](_0x1a21d3,_0x5c7d6f){const _0x1eaccb=this[_0x3e02('0x129')][_0x3e02('0xb1')]['get'](_0x3e02('0x15f')),_0x3af3cb=this[_0x3e02('0x16')](_0x1a21d3);if(this['_adapter']&&this[_0x3e02('0xd5')][_0x3e02('0x136')]){if(_0x3af3cb[_0x3e02('0x96')]){const _0x4eb49b=_0x1eaccb[_0x3e02('0x173')](_0x4097cc(this[_0x3e02('0x129')]['locale'],_0x3e02('0x110')));this['_adapter'][_0x3e02('0x136')](_0x1a21d3,_0x5c7d6f)[_0x3e02('0x13')](()=>{_0x1eaccb[_0x3e02('0xc5')](_0x4eb49b);});}else _0x3af3cb['on'](_0x3e02('0xb3'),()=>{this[_0x3e02('0x170')](_0x1a21d3,_0x5c7d6f);});}}['_getSuggestionData'](_0x4573c6){if(!this[_0x3e02('0xd5')]||!this[_0x3e02('0xd5')][_0x3e02('0x16')])throw new _0x115de0(_0x3e02('0x11'),this);return this[_0x3e02('0xd5')][_0x3e02('0x16')](_0x4573c6);}[_0x3e02('0xad')](_0x2719f1){const {id:_0x30e144,type:_0x4a935e,subType:_0x33bce1,authorId:_0x2a331f}=this[_0x3e02('0x99')](_0x2719f1),_0x425b7d=this[_0x3e02('0x134')][_0x3e02('0xf0')](_0x30e144)||this[_0x3e02('0x37')](_0x4a935e,_0x33bce1,_0x30e144,_0x2a331f,{});switch(this[_0x3e02('0x8d')](_0x425b7d,_0x4a935e,_0x33bce1,_0x2a331f),this['_suggestionState'][_0x3e02('0xf0')](_0x425b7d)){case _0x3e02('0xe'):this[_0x3e02('0x156')](_0x30e144)['then'](_0x118757=>{let _0x193464=Promise[_0x3e02('0x121')]();_0x118757['hasComments']&&(_0x193464=this[_0x3e02('0xb8')][_0x3e02('0x8f')]({'channelId':this[_0x3e02('0x129')][_0x3e02('0x63')][_0x3e02('0xf0')](_0x3e02('0x49')),'threadId':_0x30e144})),_0x193464[_0x3e02('0x13')](()=>{this['addSuggestionData'](_0x118757)[_0x3e02('0x96')]=!0x0;});}),this[_0x3e02('0x7')][_0x3e02('0x64')](_0x425b7d,_0x3e02('0xac'));break;case _0x3e02('0x10b'):this['_updateSuggestionData'](_0x30e144,{'state':_0x3e02('0x12b')});case _0x3e02('0xa'):this['_suggestionState'][_0x3e02('0x64')](_0x425b7d,_0x3e02('0x16c')),this[_0x3e02('0x7e')](_0x3e02('0x50'),_0x425b7d);break;case _0x3e02('0x16c'):this[_0x3e02('0x7e')]('suggestionChanged',_0x425b7d);}return _0x425b7d[_0x3e02('0x13e')](_0x2719f1),_0x425b7d;}[_0x3e02('0x178')](_0x467804){const _0x2654f8=Array['from'](_0x467804),_0x3016a7=_0x2654f8[_0x3e02('0xf1')](_0x51d461=>'attribute'==_0x51d461[_0x3e02('0xbf')]);this[_0x3e02('0x56')](_0x3016a7);const _0x5dac7e=_0x2654f8[_0x3e02('0xf1')](_0x1a4faa=>!_0x1a4faa[_0x3e02('0x60')]&&'attribute'!=_0x1a4faa[_0x3e02('0xbf')]),_0xd0e0de=this[_0x3e02('0x77')]({'skipNotAttached':!0x0})['filter'](_0x374a15=>!_0x374a15['isMultiRange']&&'attribute'!=_0x374a15[_0x3e02('0xbf')]),_0x48aa30=_0xd0e0de[_0x3e02('0xf1')](_0x15d835=>!_0x467804['has'](_0x15d835)),_0x44ff2c=new Map(_0xd0e0de[_0x3e02('0x120')](_0xde84b3=>[_0xde84b3,this[_0x3e02('0x86')][_0x3e02('0x114')](_0xde84b3[_0x3e02('0xbf')],_0xde84b3[_0x3e02('0x31')],'chain')])),_0x42b9b4=new Map(_0xd0e0de['map'](_0x42a69c=>[_0x42a69c,_0x42a69c[_0x3e02('0x164')]()])),_0x530f65=new Set(),_0x3cf3ba=new Set();for(let _0x40187e=0x0;_0x40187e<_0x5dac7e['length'];_0x40187e++)_0xed5de9(_0x5dac7e[_0x40187e],_0x5dac7e,_0x40187e+0x1);for(let _0x16d1b7=0x0;_0x16d1b7<_0x5dac7e[_0x3e02('0x3a')];_0x16d1b7++)_0xed5de9(_0x5dac7e[_0x16d1b7],_0x48aa30,0x0);const _0x59e175=new Set();for(let _0x1821ad=0x0;_0x1821ad<_0x5dac7e[_0x3e02('0x3a')];_0x1821ad++){const _0x1e4400=_0x5dac7e[_0x1821ad];!_0x3cf3ba[_0x3e02('0x15b')](_0x1e4400)&&_0x1e4400['previous']&&(_0x59e175[_0x3e02('0x173')](_0x1e4400[_0x3e02('0xfd')]),_0x1e4400[_0x3e02('0xfd')][_0x3e02('0xd1')]===_0x1e4400&&(_0x1e4400['previous']['next']=null),_0x1e4400['previous']=null),!_0x530f65[_0x3e02('0x15b')](_0x1e4400)&&_0x1e4400[_0x3e02('0xd1')]&&(_0x59e175[_0x3e02('0x173')](_0x1e4400[_0x3e02('0xd1')]),_0x1e4400[_0x3e02('0xd1')][_0x3e02('0xfd')]===_0x1e4400&&(_0x1e4400[_0x3e02('0xd1')][_0x3e02('0xfd')]=null),_0x1e4400[_0x3e02('0xd1')]=null);}function _0xed5de9(_0x3747ca,_0x59a883,_0x398d6b){for(let _0x278101=_0x398d6b;_0x278101<_0x59a883[_0x3e02('0x3a')];_0x278101++){const _0x5cf44b=_0x97e70a(_0x3747ca,_0x59a883[_0x278101]);_0x5cf44b&&(_0x5cf44b[0x0]['next']=_0x5cf44b[0x1],_0x5cf44b[0x1]['previous']=_0x5cf44b[0x0],_0x530f65[_0x3e02('0x173')](_0x5cf44b[0x0]),_0x3cf3ba[_0x3e02('0x173')](_0x5cf44b[0x1]));}}function _0x97e70a(_0xf2afc9,_0x5af656){if(_0xf2afc9['author']['id']!==_0x5af656[_0x3e02('0x9e')]['id'])return null;const _0x4e0855=_0x44ff2c[_0x3e02('0xf0')](_0xf2afc9)(_0xf2afc9,_0x5af656,_0x42b9b4[_0x3e02('0xf0')](_0xf2afc9),_0x42b9b4[_0x3e02('0xf0')](_0x5af656));if(!_0x4e0855)return null;return _0x44ff2c[_0x3e02('0xf0')](_0x5af656)(_0xf2afc9,_0x5af656,_0x42b9b4[_0x3e02('0xf0')](_0xf2afc9),_0x42b9b4[_0x3e02('0xf0')](_0x5af656))?_0x4e0855[0x1][_0x3e02('0x6e')]&&_0x4e0855[0x1]['commentThread']['length']?null:_0x4e0855:null;}_0x59e175[_0x3e02('0xe8')]&&this[_0x3e02('0x178')](_0x59e175);}[_0x3e02('0x56')](_0x3a16a6){if(0x0==_0x3a16a6[_0x3e02('0x3a')])return;const _0x48009b=this['getSuggestions']({'skipNotAttached':!0x0})[_0x3e02('0xf1')](_0x156cb2=>_0x3e02('0xf')==_0x156cb2['type']&&_0x156cb2[_0x3e02('0xc3')]),_0x3713f0=[],_0x1f79ed=new Map();for(const _0xa5dffd of _0x48009b){const _0x74cbd4=_0x1b5f96(_0xa5dffd[_0x3e02('0x6f')]);_0x1f79ed[_0x3e02('0x15b')](_0x74cbd4)||(_0x1f79ed[_0x3e02('0x64')](_0x74cbd4,_0x3713f0[_0x3e02('0x3a')]),_0x3713f0[_0x3e02('0xb5')]([]));const _0x39dc34=_0x1f79ed[_0x3e02('0xf0')](_0x74cbd4);_0x3713f0[_0x39dc34][_0x3e02('0xb5')](_0xa5dffd);}!function(){_0x3713f0['sort']((_0x530f9c,_0x218444)=>{const _0x48b2b8=_0x530f9c[0x0]['createdAt'],_0x3c9ef5=_0x218444[0x0][_0x3e02('0x53')];return _0x48b2b8==_0x3c9ef5?_0x530f9c[0x0][_0x3e02('0x6f')][_0x3e02('0xd8')]<_0x218444[0x0][_0x3e02('0x6f')]['groupId']?-0x1:0x1:_0x48b2b8<_0x3c9ef5?-0x1:0x1;});for(const _0x33a92e of _0x3713f0)_0x33a92e[_0x3e02('0x62')]((_0x595bf3,_0x2ce925)=>_0x595bf3['id']<_0x2ce925['id']?-0x1:0x1);}();for(let _0x4498ec=0x0;_0x4498ec<_0x3713f0['length'];_0x4498ec++){if(0x0==_0x3713f0[_0x4498ec][_0x3e02('0x3a')])continue;const _0xc5c4ef=[];for(let _0x256986=_0x4498ec+0x1;_0x256986<_0x3713f0['length'];_0x256986++)0x0!=_0x3713f0[_0x256986][_0x3e02('0x3a')]&&_0x23b6bb(_0x3713f0[_0x4498ec],_0x3713f0[_0x256986])&&_0xc5c4ef[_0x3e02('0xb5')](_0x256986);for(const _0x41f8f2 of _0xc5c4ef)_0x3713f0[_0x4498ec]=_0x3713f0[_0x4498ec][_0x3e02('0x2')](_0x3713f0[_0x41f8f2]),_0x3713f0[_0x41f8f2]=[];}for(const _0x2abf29 of _0x3713f0)for(let _0x12575a=0x0;_0x12575a<_0x2abf29[_0x3e02('0x3a')];_0x12575a++)_0x2abf29[_0x12575a][_0x3e02('0xd1')]=_0x2abf29[_0x12575a+0x1]||null;for(const _0x33f7af of _0x3713f0)for(let _0x4c6429=0x0;_0x4c6429<_0x33f7af[_0x3e02('0x3a')];_0x4c6429++)_0x33f7af[_0x4c6429][_0x3e02('0xfd')]=_0x33f7af[_0x4c6429-0x1]||null;function _0x23b6bb(_0x14b395,_0x490017){if(_0x14b395[0x0]['attributes']['groupId']!==_0x490017[0x0][_0x3e02('0x6f')]['groupId']&&_0x14b395[0x0][_0x3e02('0x9e')]!==_0x490017[0x0][_0x3e02('0x9e')])return!0x1;if(!function(_0x3b8476,_0x37e209){if(!_0x3b8476['hasComments']&&!_0x37e209[_0x3e02('0x34')])return!0x0;if(_0x3b8476['hasComments']&&_0x37e209['hasComments'])return!0x1;if(_0x3b8476[_0x3e02('0x34')]&&_0x37e209['createdAt']<_0x3b8476[_0x3e02('0x6e')][_0x3e02('0xa5')][_0x3e02('0xf0')](0x0)[_0x3e02('0x53')])return!0x0;if(_0x37e209[_0x3e02('0x34')]&&_0x3b8476[_0x3e02('0x53')]<_0x37e209['commentThread']['comments'][_0x3e02('0xf0')](0x0)[_0x3e02('0x53')])return!0x0;return!0x1;}(_0x14b395[0x0],_0x490017[0x0]))return!0x1;const _0x1cf55c=_0x1bc1cd(_0x14b395[0x0][_0x3e02('0x6f')],_0x3e02('0xd8')),_0x1f6ba6=_0x1bc1cd(_0x490017[0x0][_0x3e02('0x6f')],_0x3e02('0xd8'));if(!_0x1b3653(_0x1cf55c,_0x1f6ba6))return!0x1;return!!_0x14b395[_0x3e02('0xee')](_0x1d8db2=>_0x490017[_0x3e02('0x14e')](_0x44cee3=>_0x1d8db2[_0x3e02('0x164')]()[_0x3e02('0xb0')](_0x44cee3['getFirstRange']())))&&_0x490017['every'](_0x2fec18=>_0x14b395['some'](_0x1b0cdc=>_0x2fec18[_0x3e02('0x164')]()[_0x3e02('0xb0')](_0x1b0cdc['getFirstRange']())));}}[_0x3e02('0x71')](_0x10480a){const _0x53ab64=Array['from'](_0x10480a),_0x39a690=this[_0x3e02('0x77')]({'skipNotAttached':!0x0}),_0x49a8a4=_0x39a690[_0x3e02('0xf1')](_0x462be7=>!_0x10480a[_0x3e02('0x15b')](_0x462be7)),_0x22824a=new Map(_0x53ab64[_0x3e02('0x120')](_0x2789c8=>[_0x2789c8,this[_0x3e02('0x86')]['getSuggestionCallback'](_0x2789c8[_0x3e02('0xbf')],_0x2789c8[_0x3e02('0x31')],_0x3e02('0x101'))])),_0x38287b=new Map(_0x39a690['map'](_0x150fa5=>[_0x150fa5,_0x150fa5[_0x3e02('0x16a')]()]));for(let _0x56fb2a=0x0;_0x56fb2a<_0x53ab64[_0x3e02('0x3a')];_0x56fb2a++){if(_0x270a03(this,_0x53ab64[_0x56fb2a],_0x53ab64,_0x56fb2a+0x1))return!0x0;}for(let _0x53d81f=0x0;_0x53d81f<_0x53ab64[_0x3e02('0x3a')];_0x53d81f++){if(_0x270a03(this,_0x53ab64[_0x53d81f],_0x49a8a4,0x0))return!0x0;}return!0x1;function _0x270a03(_0x38a001,_0x547ffa,_0x2158b1,_0x471b16){for(let _0x45eebd=_0x471b16;_0x45eebd<_0x2158b1[_0x3e02('0x3a')];_0x45eebd++){const _0x2f80d2=_0x2158b1[_0x45eebd];if(_0x2f80d2[_0x3e02('0xbf')]!==_0x547ffa[_0x3e02('0xbf')]||_0x2f80d2[_0x3e02('0x9e')]['id']!==_0x547ffa[_0x3e02('0x9e')]['id']||_0x2f80d2[_0x3e02('0x31')]!==_0x547ffa[_0x3e02('0x31')])continue;if(!Ft(_0x547ffa,_0x2f80d2,[_0x3e02('0xd8')]))continue;if('attribute'==_0x547ffa[_0x3e02('0xbf')]&&_0x547ffa[_0x3e02('0x165')][_0x3e02('0x91')]!=_0x2f80d2[_0x3e02('0x165')][_0x3e02('0x91')])continue;if(_0x3e02('0xf')==_0x547ffa['type']&&_0x38a001[_0x3e02('0x11b')](_0x547ffa[_0x3e02('0x165')][_0x3e02('0x93')]))continue;if(_0x3e02('0x46')==_0x547ffa['type']){const _0x18036d=_0x38a001['editor'][_0x3e02('0x5d')],_0x472fb1=_0x547ffa[_0x3e02('0x48')]();if(_0x472fb1&&(_0x18036d[_0x3e02('0x58')][_0x3e02('0x130')](_0x472fb1)||_0x18036d[_0x3e02('0x58')][_0x3e02('0x3c')](_0x472fb1)))continue;}const _0x1b37ce=_0x22824a[_0x3e02('0xf0')](_0x547ffa),_0xe4c6b=_0x38287b[_0x3e02('0xf0')](_0x547ffa),_0x5e6932=_0x38287b[_0x3e02('0xf0')](_0x2f80d2),_0x3a569e=_0x547ffa[_0x3e02('0x6e')]&&_0x547ffa['commentThread'][_0x3e02('0x3a')],_0x1b694a=_0x2f80d2[_0x3e02('0x6e')]&&_0x2f80d2[_0x3e02('0x6e')][_0x3e02('0x3a')];if(!_0x3a569e&&_0x1b37ce(_0x5e6932,_0xe4c6b))return _0x38a001['_joinSuggestions'](_0x2f80d2,_0x547ffa),_0x38287b[_0x3e02('0x20')](_0x547ffa),!0x0;if(!_0x1b694a&&_0x1b37ce(_0xe4c6b,_0x5e6932))return _0x38a001['_joinSuggestions'](_0x547ffa,_0x2f80d2),_0x38287b[_0x3e02('0x20')](_0x2f80d2),!0x0;}return!0x1;}}[_0x3e02('0x9d')](_0x5413e9,_0x3fe2d9){if(_0x5413e9['isMultiRange'])for(const _0x2aeb0d of _0x3fe2d9['getRanges']())_0x5413e9[_0x3e02('0x1')](_0x2aeb0d);else{const _0x4f49a2=_0x3fe2d9[_0x3e02('0x164')]()[_0x3e02('0x177')];this[_0x3e02('0x146')](_0x5413e9,this[_0x3e02('0x115')][_0x3e02('0x127')](_0x5413e9[_0x3e02('0x164')]()[_0x3e02('0xb7')],_0x4f49a2));}_0x3fe2d9[_0x3e02('0x8c')]();}['_getMarkerAnnouncementText'](_0x288572,_0x4f42b8){const _0x3941f5=_0x288572[_0x3e02('0x108')](_0x3e02('0x1a'))||_0x288572[_0x3e02('0x108')]('attribute')?_0x3e02('0xa9'):_0x288572[_0x3e02('0x0')]();return _0x4097cc(this[_0x3e02('0x129')][_0x3e02('0xc8')],_0x4f42b8+'_'+_0x3941f5+'_SUGGESTION_ANNOUNCEMENT');}[_0x3e02('0xbc')](){const _0x27a480=this[_0x3e02('0x129')];_0x246342(this['_model'],({left:_0x12a022,entered:_0x4b802f})=>{const _0x51af70=[];for(const _0x2c0375 of _0x12a022){const {group:_0x3338e8,type:_0xcd5cd8}=this[_0x3e02('0x99')](_0x2c0375['name']);if(_0x3e02('0x13a')===_0x3338e8){_0x51af70['push'](this[_0x3e02('0x1b')](_0xcd5cd8,'LEAVE'));break;}}for(const _0x1b4ee8 of _0x4b802f){const {group:_0x2a6e44,type:_0x135efc}=this[_0x3e02('0x99')](_0x1b4ee8[_0x3e02('0x44')]);if(_0x3e02('0x13a')===_0x2a6e44){_0x51af70[_0x3e02('0xb5')](this[_0x3e02('0x1b')](_0x135efc,'ENTER'));break;}}_0x51af70[_0x3e02('0x3a')]&&_0x27a480['ui'][_0x3e02('0xc9')][_0x3e02('0x2f')](_0x3e02('0xc1'),_0x51af70[_0x3e02('0x101')]('\x20'));});}[_0x3e02('0x3f')](_0x582940){if(this[_0x3e02('0x4b')])return!0x1;const _0x361ed7=this[_0x3e02('0x129')],_0x11d628=_0x361ed7[_0x3e02('0x5d')][_0x3e02('0xd4')]['differ'][_0x3e02('0x72')]();if(0x0==_0x11d628[_0x3e02('0x3a')])return!0x1;const _0x49b4f4=[],_0x38c63d=_0x11d628[_0x3e02('0xf1')](_0x54894f=>_0x3e02('0xf')==_0x54894f['type']),_0x35324f=_0x11d628[_0x3e02('0xf1')](_0x36daaa=>_0x3e02('0x144')==_0x36daaa[_0x3e02('0xbf')]&&_0x3e02('0x128')!=_0x36daaa[_0x3e02('0x44')]),_0x36cd67=_0x11d628[_0x3e02('0xf1')](_0x47d936=>_0x3e02('0xc5')==_0x47d936[_0x3e02('0xbf')]&&_0x3e02('0x128')!=_0x47d936[_0x3e02('0x44')]);for(const _0x71909f of _0x38c63d)_0x49b4f4[_0x3e02('0xb5')]({'key':_0x71909f[_0x3e02('0x5f')],'newValue':_0x71909f[_0x3e02('0x150')],'oldValue':_0x71909f[_0x3e02('0x123')],'range':Ut(_0x71909f[_0x3e02('0x12e')],_0x361ed7[_0x3e02('0x5d')])});for(const _0x197c56 of _0x35324f){const _0x11561e=_0x36cd67['find'](_0x300dd7=>_0x300dd7['position']['isEqual'](_0x197c56[_0x3e02('0x11c')]));_0x11561e&&_0x49b4f4['push']({'key':'$elementName','newValue':_0x197c56[_0x3e02('0x44')],'oldValue':_0x11561e[_0x3e02('0x44')],'range':_0x361ed7[_0x3e02('0x5d')][_0x3e02('0x75')](_0x197c56['position']['nodeAfter'])});}return 0x0!=_0x49b4f4[_0x3e02('0x3a')]&&this[_0x3e02('0x104')](_0x582940,_0x49b4f4);}['_processAttributeSuggestions'](_0x4225bd){let _0x474c7f=!0x1;const _0x1295cc=this['editor'][_0x3e02('0x5d')]['document'][_0x3e02('0x5e')][_0x3e02('0x78')]()['filter'](_0x1273b2=>_0x1273b2[_0x3e02('0x165')][_0x3e02('0x22')]&&_0x1273b2[_0x3e02('0x44')][_0x3e02('0x108')](_0x3e02('0x68')));for(const _0x9adeed of _0x1295cc){const {subType:_0x5209d9,id:_0x7a3d42}=this[_0x3e02('0x99')](_0x9adeed[_0x3e02('0x44')]),_0x434c7f=_0x5209d9['split']('|')[0x0];for(const _0x19bdc1 of this[_0x3e02('0x77')]({'skipNotAttached':!0x0}))_0x19bdc1['id']!=_0x7a3d42&&_0x3e02('0xf')==_0x19bdc1['type']&&_0x19bdc1[_0x3e02('0x165')]&&_0x19bdc1['data'][_0x3e02('0x93')]==_0x434c7f&&_0x19bdc1['getFirstRange']()[_0x3e02('0x6a')](_0x9adeed[_0x3e02('0x165')][_0x3e02('0x22')])&&(this[_0x3e02('0x28')](_0x19bdc1,_0x9adeed[_0x3e02('0x165')][_0x3e02('0x22')],_0x4225bd),_0x474c7f=!0x0);}return _0x474c7f;}[_0x3e02('0x176')](_0xd51573){this[_0x3e02('0x129')],(this[_0x3e02('0x4b')]=!0x0,_0xd51573());}[_0x3e02('0x143')](_0x1a3507){const _0x3b6533=this[_0x3e02('0x11b')](_0x1a3507),_0x2ff987=this[_0x3e02('0x47')]['has'](_0x1a3507);return _0x3b6533||_0x2ff987;}['_reduceExistingSuggestions'](_0x1abfbd,_0x1a39d1){if(0x0==_0x1a39d1[_0x3e02('0x3a')])return!0x1;let _0x121711=!0x1;for(const _0x20b465 of _0x1a39d1){const _0xb0eda9=this[_0x3e02('0x135')](_0x20b465['range'],_0x3e02('0xf'))[_0x3e02('0xf1')](_0x3a1742=>!_0x3a1742[_0x3e02('0x9b')][_0x3e02('0x24')])[_0x3e02('0x120')](_0x5c4b25=>_0x5c4b25[_0x3e02('0x13a')]),_0x211b6d=_0x1b5f96({'newValue':_0x20b465['newValue']});_0xb0eda9[_0x3e02('0xf1')](_0x22e2b6=>{const [_0x180c09,_0x1e3be4]=_0x22e2b6[_0x3e02('0x31')][_0x3e02('0x126')]('|');return _0x180c09==_0x20b465['key']&&_0x1e3be4!=_0x211b6d;})[_0x3e02('0x138')](_0x3def3d=>{this[_0x3e02('0x28')](_0x3def3d,_0x20b465[_0x3e02('0x12e')],_0x1abfbd),_0x121711=!0x0;});}return _0x121711;}[_0x3e02('0x28')](_0x5ccb17,_0x11dee4,_0x22ae84){const _0x301c41=_0x5ccb17[_0x3e02('0x164')]()[_0x3e02('0x17')](_0x11dee4);0x0!==_0x301c41['length']?0x1!==_0x301c41[_0x3e02('0x3a')]?this[_0x3e02('0xc')](_0x5ccb17,_0x11dee4[_0x3e02('0xb7')],_0x11dee4[_0x3e02('0x177')]):this[_0x3e02('0x146')](_0x5ccb17,_0x301c41[0x0]):_0x22ae84['removeMarker'](_0x5ccb17['getFirstMarker']());}}class Bt{constructor(_0x33bda1){this[_0x3e02('0x13b')]=_0x33bda1,this['_model']=_0x33bda1[_0x3e02('0x5d')],this[_0x3e02('0x23')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x3e02('0x38')]();}[_0x3e02('0xec')](_0x4947c7,_0x1f8977,_0x1121c1,_0x13eb99,_0x31c089,_0x14fb92){return new _0x38dd3e(this[_0x3e02('0x115')],{'type':_0x4947c7,'subType':_0x1f8977,'id':_0x1121c1,'author':_0x13eb99,'creator':_0x13eb99,'attributes':_0x31c089,'onAttributesChange':_0x14fb92,'onAccept':(..._0x5e017a)=>this[_0x3e02('0x114')](_0x4947c7,_0x1f8977,'accept')(..._0x5e017a),'onDiscard':(..._0x486f73)=>this[_0x3e02('0x114')](_0x4947c7,_0x1f8977,_0x3e02('0x65'))(..._0x486f73)});}['registerCustomCallback'](_0xf0eaf0,_0x930103,_0x1e2e5e,_0x5b23ca){const _0x26bf8a=_0xf0eaf0+':'+_0x930103+':'+_0x1e2e5e;this[_0x3e02('0x23')][_0x3e02('0x64')](_0x26bf8a,_0x5b23ca);}[_0x3e02('0x114')](_0x12b0b7,_0x12efb4,_0x2f5e09){const _0x6acba5=_0x12b0b7+':'+_0x12efb4+':'+_0x2f5e09;return this[_0x3e02('0x23')][_0x3e02('0xf0')](_0x6acba5)||this[_0x3e02('0xae')]['get'](_0x12b0b7+':'+_0x2f5e09);}['_registerDefaultCallbacks'](){const _0x5535ee=()=>!0x1,_0x436968=_0x464eaf=>{_0x464eaf['sort']((_0x2d6fe2,_0x291c05)=>_0x2d6fe2['start'][_0x3e02('0x90')](_0x291c05[_0x3e02('0xb7')])?0x1:-0x1),this[_0x3e02('0x115')][_0x3e02('0x5a')](_0xe84f17=>{for(const _0x16f4ab of _0x464eaf){let _0x5a38bd;_0x5a38bd=_0x16f4ab[_0x3e02('0x177')][_0x3e02('0xf9')]&&_0x16f4ab[_0x3e02('0x177')][_0x3e02('0x83')]==_0x16f4ab['start'][_0x3e02('0x80')]?_0xe84f17['createSelection'](_0x16f4ab[_0x3e02('0xb7')][_0x3e02('0x80')],'on'):_0xe84f17['createSelection'](_0x16f4ab),this[_0x3e02('0x115')][_0x3e02('0x2e')](_0x5a38bd,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x11038e=(_0x25a758,_0x4ba9b7)=>{_0x4ba9b7&&this['_model'][_0x3e02('0x5a')](_0x316828=>{const {commandName:_0x9834db,commandParams:_0x3ce96d=[]}=_0x4ba9b7,_0x42f47e=_0x25a758[_0x3e02('0x120')](_0xac5681=>(Rt(_0xac5681)&&(_0xac5681=this[_0x3e02('0x115')][_0x3e02('0x127')](_0xac5681['end'])),_0xac5681))['filter'](_0x46ba06=>_0x3e02('0xed')!==_0x46ba06[_0x3e02('0x8e')][_0x3e02('0xde')]);if(_0x42f47e[_0x3e02('0x3a')]<0x1)return;const _0x1455ef=Array['from'](this[_0x3e02('0x115')][_0x3e02('0xd4')]['selection'][_0x3e02('0x16a')]())[_0x3e02('0x120')](_0x30f783=>_0x55afed['fromRange'](_0x30f783));_0x316828[_0x3e02('0x5')](_0x42f47e);for(const _0x16cffe of this[_0x3e02('0x13b')][_0x3e02('0x18')][_0x3e02('0x18')]())_0x16cffe[_0x3e02('0xe7')]();_0x3ce96d[_0x3e02('0xb5')]({'forceDefaultExecution':!0x0}),this[_0x3e02('0x13b')]['execute'](_0x9834db,..._0x3ce96d);const _0x3d03bd=_0x1455ef[_0x3e02('0xf1')](_0x53e63f=>_0x3e02('0xed')!=_0x53e63f[_0x3e02('0x8e')][_0x3e02('0xde')]);_0x3d03bd[_0x3e02('0x3a')]>0x0&&_0x316828[_0x3e02('0x5')](_0x3d03bd);for(const _0x23ba44 of _0x1455ef)_0x23ba44[_0x3e02('0x15a')]();});},_0x31cb07=(_0x404c61,_0x15516c)=>0x1==_0x404c61['length']&&0x1==_0x15516c[_0x3e02('0x3a')]&&_0x404c61[0x0][_0x3e02('0x177')][_0x3e02('0xb0')](_0x15516c[0x0][_0x3e02('0xb7')]),_0x3779bc=(_0xec2ab2,_0x18c00b,_0x34ae0f,_0x441d3a)=>Gt(_0xec2ab2,_0x18c00b,_0x34ae0f,_0x441d3a,this['_model'])?[_0xec2ab2,_0x18c00b]:Gt(_0x18c00b,_0xec2ab2,_0x441d3a,_0x34ae0f,this[_0x3e02('0x115')])?[_0x18c00b,_0xec2ab2]:null;this[_0x3e02('0xae')]['set']('insertion:accept',_0x5535ee),this[_0x3e02('0xae')][_0x3e02('0x64')](_0x3e02('0xb'),_0x436968),this[_0x3e02('0xae')]['set'](_0x3e02('0xcb'),_0x31cb07),this[_0x3e02('0xae')][_0x3e02('0x64')]('insertion:chain',_0x3779bc),this['_defaultCallbacks']['set']('deletion:accept',_0x436968),this[_0x3e02('0xae')][_0x3e02('0x64')](_0x3e02('0x140'),_0x5535ee),this[_0x3e02('0xae')][_0x3e02('0x64')](_0x3e02('0x14f'),_0x31cb07),this['_defaultCallbacks'][_0x3e02('0x64')](_0x3e02('0x171'),_0x3779bc),this['_defaultCallbacks'][_0x3e02('0x64')](_0x3e02('0xce'),_0x11038e),this[_0x3e02('0xae')][_0x3e02('0x64')](_0x3e02('0x4'),_0x5535ee),this[_0x3e02('0xae')][_0x3e02('0x64')]('formatInline:join',_0x31cb07),this['_defaultCallbacks'][_0x3e02('0x64')](_0x3e02('0x153'),_0x5535ee),this['_defaultCallbacks'][_0x3e02('0x64')](_0x3e02('0x109'),_0x11038e),this[_0x3e02('0xae')][_0x3e02('0x64')](_0x3e02('0xaf'),_0x5535ee),this[_0x3e02('0xae')][_0x3e02('0x64')](_0x3e02('0x10f'),_0x31cb07),this['_defaultCallbacks'][_0x3e02('0x64')]('formatBlock:chain',_0x5535ee),this[_0x3e02('0xae')][_0x3e02('0x64')](_0x3e02('0x102'),_0x5535ee),this[_0x3e02('0xae')][_0x3e02('0x64')](_0x3e02('0x2a'),(_0x227fcd,_0x351f7a)=>{if(!_0x351f7a)return;const _0x4856d6=this['_editor']['plugins']['get'](p);this[_0x3e02('0x115')][_0x3e02('0x5a')](_0x4c3128=>{if(_0x3e02('0x82')==_0x351f7a[_0x3e02('0x93')])for(const _0x2a3a95 of _0x227fcd){const _0x12d6f1=_0x2a3a95[_0x3e02('0xb7')]['nodeAfter'],_0x282313=_0x351f7a[_0x3e02('0x91')];_0x4c3128[_0x3e02('0x125')](_0x12d6f1,_0x282313);}else{if(_0x4856d6[_0x3e02('0x11b')](_0x351f7a['key']))for(const _0x3a64c1 of _0x227fcd)void 0x0!==_0x351f7a['oldValue']?_0x4c3128[_0x3e02('0xb2')](_0x351f7a['key'],_0x351f7a[_0x3e02('0x91')],_0x3a64c1[_0x3e02('0xb7')][_0x3e02('0x80')]):_0x4c3128[_0x3e02('0xcd')](_0x351f7a[_0x3e02('0x93')],_0x3a64c1[_0x3e02('0xb7')][_0x3e02('0x80')]);else for(const _0x4810c4 of _0x227fcd)_0x351f7a[_0x3e02('0x91')]?_0x4c3128['setAttribute'](_0x351f7a[_0x3e02('0x93')],_0x351f7a['oldValue'],_0x4810c4):_0x4c3128[_0x3e02('0xcd')](_0x351f7a[_0x3e02('0x93')],_0x4810c4);}});}),this[_0x3e02('0xae')][_0x3e02('0x64')](_0x3e02('0x51'),_0x31cb07);}}function xt(_0x123bd0,_0x4813db,_0x4fa83f){for(const _0x766f57 of _0x4813db['parent'][_0x3e02('0x5b')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x766f57[_0x3e02('0x8e')]==_0x766f57)return!0x1;if(!_0x4fa83f[_0x3e02('0x97')](_0x766f57))return!0x1;if(_0x123bd0[_0x3e02('0x130')](_0x766f57)||_0x123bd0[_0x3e02('0x3c')](_0x766f57))return!0x0;}return!0x1;}function Rt(_0x4db23d){return _0x4db23d['end']['parent']==_0x4db23d[_0x3e02('0xb7')]['nodeAfter']&&_0x4db23d['end'][_0x3e02('0x59')];}function Tt(_0x38a65c,_0x296237,_0x1efe11,_0x31ac2e){const _0x4a8202=_0x295881=>!_0x295881[_0x3e02('0xff')]['is'](_0x3e02('0x9a'))&&!_0x31ac2e[_0x3e02('0x130')](_0x295881[_0x3e02('0xff')]),_0x617f0d=_0x38a65c[_0x3e02('0xb7')][_0x3e02('0x2c')](_0x4a8202),_0x826595=_0x38a65c[_0x3e02('0x177')][_0x3e02('0x2c')](_0x4a8202,{'direction':_0x3e02('0xd3')});return(!_0x38a65c[_0x3e02('0xb7')][_0x3e02('0xb0')](_0x617f0d)||!_0x38a65c[_0x3e02('0x177')][_0x3e02('0xb0')](_0x826595))&&(_0x617f0d['isBefore'](_0x826595)?_0x1efe11[_0x3e02('0x119')](_0x296237,{'range':_0x1efe11[_0x3e02('0x127')](_0x617f0d,_0x826595)}):_0x1efe11['removeMarker'](_0x296237),!0x0);}function Et(_0xe18af5){return _0x1b5f96(_0xe18af5);}function Vt(_0x45cdfd){const _0x1fd122=_0x45cdfd[_0x3e02('0xb7')]['nodeAfter'];return _0x1fd122&&_0x1fd122['is'](_0x3e02('0x175'));}function Ut(_0x290ab9,_0x579d6c){return null==_0x290ab9[_0x3e02('0x177')][_0x3e02('0xe2')]&&_0x290ab9[_0x3e02('0x177')][_0x3e02('0x83')]==_0x290ab9[_0x3e02('0xb7')][_0x3e02('0x80')]?Ot(_0x290ab9[_0x3e02('0xb7')][_0x3e02('0x80')],_0x579d6c):_0x290ab9;}function Ot(_0x2ec721,_0x23d52a){const _0xe02651=_0x23d52a['schema'][_0x3e02('0x130')](_0x2ec721)||_0x23d52a[_0x3e02('0x58')][_0x3e02('0x9')](_0x2ec721);return _0x23d52a[_0x3e02('0x127')](_0x23d52a[_0x3e02('0x3b')](_0x2ec721,'before'),_0xe02651?_0x23d52a['createPositionAfter'](_0x2ec721):_0x23d52a['createPositionAt'](_0x2ec721,'end'));}function Gt(_0x6822a4,_0x421fab,_0x542161,_0x14c436,_0x12245f){if(!Ft(_0x6822a4,_0x421fab))return!0x1;if(_0x542161[_0x3e02('0x177')][_0x3e02('0xb0')](_0x14c436[_0x3e02('0xb7')]))return!0x0;if(_0x6822a4[_0x3e02('0xbf')]!=_0x421fab['type'])return!0x1;if(!_0x542161['end']['isTouching'](_0x14c436[_0x3e02('0xb7')]))return!0x1;const _0x190038=_0x12245f[_0x3e02('0x127')](_0x542161[_0x3e02('0x177')],_0x14c436[_0x3e02('0xb7')])[_0x3e02('0x66')]();for(const _0x37217e of _0x190038)if([_0x3e02('0x14d'),_0x3e02('0xe0')]['includes'](_0x37217e[_0x3e02('0xbf')])&&_0x12245f['schema']['isLimit'](_0x37217e[_0x3e02('0xff')]))return!0x1;return!0x0;}function Ft(_0x4d52f8,_0x559bd1,_0x2d3381=[]){return!(!_0x4d52f8[_0x3e02('0xc3')]||!_0x559bd1[_0x3e02('0xc3')])&&_0x1b3653(_0x1bc1cd(_0x4d52f8[_0x3e02('0x6f')],_0x2d3381),_0x1bc1cd(_0x559bd1['attributes'],_0x2d3381));}function Pt(_0x35b0be,_0x18d3fb){const _0x429c8b=Lt(_0x35b0be['attributes']),_0xf18368=Lt(_0x18d3fb);if(!_0x35b0be[_0x3e02('0xc3')])return!0x1;for(const _0xc05c4b of Object[_0x3e02('0x163')](_0xf18368))if(!_0x1b3653(_0x429c8b[_0xc05c4b],_0xf18368[_0xc05c4b]))return!0x1;return!0x0;}function Lt(_0x225278){const _0x5dc67c=Object[_0x3e02('0xe9')]({},_0x225278);return delete _0x5dc67c[_0x3e02('0x10a')],delete _0x5dc67c[_0x3e02('0x10e')],_0x5dc67c;}
|