@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240117.0 → 0.0.0-nightly-20240119.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.
Files changed (67) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/aiassistant.js +1 -1
  9. package/src/integrations/alignment.js +1 -1
  10. package/src/integrations/basicstyles.js +1 -1
  11. package/src/integrations/blockquote.js +1 -1
  12. package/src/integrations/casechange.js +1 -1
  13. package/src/integrations/ckbox.js +1 -1
  14. package/src/integrations/codeblock.js +1 -1
  15. package/src/integrations/comments.js +1 -1
  16. package/src/integrations/deletecommand.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/imagestyle.js +1 -1
  28. package/src/integrations/importword.js +1 -1
  29. package/src/integrations/indent.js +1 -1
  30. package/src/integrations/inputcommand.js +1 -1
  31. package/src/integrations/legacylist.js +1 -1
  32. package/src/integrations/legacylistproperties.js +1 -1
  33. package/src/integrations/link.js +1 -1
  34. package/src/integrations/list.js +1 -1
  35. package/src/integrations/listproperties.js +1 -1
  36. package/src/integrations/mediaembed.js +1 -1
  37. package/src/integrations/mention.js +1 -1
  38. package/src/integrations/pagebreak.js +1 -1
  39. package/src/integrations/paragraph.js +1 -1
  40. package/src/integrations/removeformat.js +1 -1
  41. package/src/integrations/restrictededitingmode.js +1 -1
  42. package/src/integrations/shiftentercommand.js +1 -1
  43. package/src/integrations/standardeditingmode.js +1 -1
  44. package/src/integrations/style.js +1 -1
  45. package/src/integrations/table.js +1 -1
  46. package/src/integrations/tablecaption.js +1 -1
  47. package/src/integrations/tableclipboard.js +1 -1
  48. package/src/integrations/tablecolumnresize.js +1 -1
  49. package/src/integrations/tableheadings.js +1 -1
  50. package/src/integrations/tablemergesplit.js +1 -1
  51. package/src/integrations/tableofcontents.js +1 -1
  52. package/src/integrations/tableproperties.js +1 -1
  53. package/src/integrations/template.js +1 -1
  54. package/src/integrations/title.js +1 -1
  55. package/src/integrations/undo.js +1 -1
  56. package/src/integrations/utils.js +1 -1
  57. package/src/suggestion.js +1 -1
  58. package/src/suggestiondescriptionfactory.js +1 -1
  59. package/src/trackchanges.js +1 -1
  60. package/src/trackchangesdata.js +1 -1
  61. package/src/trackchangesediting.js +1 -1
  62. package/src/trackchangesui.js +1 -1
  63. package/src/ui/suggestioncontroller.js +1 -1
  64. package/src/ui/view/basesuggestionthreadview.js +1 -1
  65. package/src/ui/view/suggestionthreadview.js +1 -1
  66. package/src/utils/common-translations.js +1 -1
  67. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x463f=['attribute:join','forEach','getChangedMarkers','accept','update:suggestion','isBefore','isLocal','_getExternalAuthor','getLastMatchingPosition','deletion:chain','addMarker:suggestion:formatBlock','_descriptionFactory','reconvertMarker','getContainedElement','addSuggestionData','insertion:','marker-count','has','always','_afterChanges','removeMarker:suggestion:attribute','stop','set','_handleNewSuggestionMarker','markMultiRangeDeletion','execute','low','isInContent','registerPostFixer','_recordAttributeSuggestions','multipleBlocks','attributeKey','size','trackChanges.trackFormatChanges','containsRange','enableCommand','parent','markerToData','_setSuggestionData','attributeNewValue','commentThread','multi','_getMarkerAnnouncementText','insertion:chain','acceptAllSuggestions','skipNestingCheck','track-changes-adapter-already-set','getSuggestionCallback','editing','isSelectable','clear','push','deleteContent','$elementName','CommentsRepository','markInlineFormat','change:data','length','acceptSelectedSuggestions','markMultiRangeInsertion','createRangeIn','deletion:accept','ck-suggestion-marker-formatBlock','track-changes-adapter-missing-getsuggestion','getChanges','listenTo','selection','showSuggestionHighlights','_saved','isRemovable','markerNameToElements','deletion:','toJSON','getFirstRange','getCustomProperty','editingDowncast','fire','open','addClass','_recordAttributeChanges','split','_suggestions','value','find','discard','_enabledCommands','ck-suggestion-marker-formatInline','applyOperation','addHighlight','isNextTo','writer','_addThreadToSuggestion','trackChanges.mergeNestedSuggestions','isUndo','before','schema','attributes','define','range','enqueueChange','getMultiRangeId','change','clone','sort','mapper','addCommentThread','map','attributeOldValue','values','author','high','differ','insertContent','isInsideObject','delete','_isDataLoaded','authoredAt','$text','formatBlock:accept','formatInline:discard','markerName','_rangeIsInLocalUserInsertion','oldValue','_cutOutSuggestionMarker','formatBlock:','_inlineAttributeKeys','_registerInlineAttribute','suggestion','hasSuggestion','deletion:discard','_processAttributeChanges','suggestionUnloaded','createElement','conversion','hasComments','_refreshAttributeSuggestionsChain','insert','getSuggestions','_splitMarkerName','trackChangesCommand','commands','Users','pluginName','formatInline:','discardSuggestion','bindElementToMarker','addComment','ck-suggestion-marker--active','addUser','_isBlockAttribute','default','_suggestionState','every','_suggestionFactory','item','remove','editor','updateSuggestion','getItems','keys','getCommentThread','lowest','ck-suggestion-marker-','position','isLimit','_reduceSuggestionAttributeRange','commandName','_commentsRepository','suggestion-type','newRange','announce','formatInline:chain','previous','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.','some','external:','removeClass','data-suggestion','isOwn','_createSuggestion','resolve','formatBlock:join','removeComment','_editor','highest','_getAuthorFromId','detach','deletion:join','_model','markers','markerReady','createRange','howMany','containsItem','_registerDefaultCallbacks','refresh','removeMarkers','isAtStart','containsPosition','getAllAdjacentSuggestions','targetPosition','addRange','element','type','addMarker:suggestion:attribute','formatGroupId','activeMarkers','hasCommentThread','track-changes-user-not-found','getNearestSelectionRange','markInsertion','@external','forward','unbind','start','unshift','unbindElementFromMarkerName','nodeAfter','formatInline:join','elementEnd','fromCharCode','next','batch','isBlock','insertion:join','return','_getSuggestionData','track-changes-suggestion-data-mismatch','root','_initAriaMarkerChangeAnnouncements','documentSelection','notReady','widget','_addSuggestionMarker','substring','config','plugins','setSelection','groupId','never','newValue','_customCallbacks','upcast','_SUGGESTION_ANNOUNCEMENT','consume','acceptSuggestion','name','assign','locale','rethrowUnexpectedError','registerCustomCallback','change:activeMarkers','nodeBefore','filter','createdAt','createPositionBefore','_isRegisteredAttribute','adapter','isCollapsed','getSuggestion','_joinWithAdjacentSuggestions','normal','markBlockFormat','isAtEnd','getWalker','removeAttribute','suggestionLoaded','markAttributeChange','chain','isAfter','$textProxy','$marker','createSelection','for','formatBlock:discard','from','_findSuggestions','consumable','ready','init','includes','warn','attribute:accept','addSuggestion','isObject','_reduceExistingSuggestions','rootName','isExternal','_processAttributeSuggestions','formatInline','_removeSuggestion','_defaultCallbacks','accepted','options','$graveyard','model','trackChanges','suggestion:','isEqual','dataReady','getAttribute','removeMarker','isIntersecting','creator','_adapter','subType','isMultiRange','moveTargetPosition','_element','getDifference','fetchCommentThread','_getAttributeKey','_setSuggestionRange','toViewElement','getRanges','_joinSuggestions','insertion','markMultiRangeBlockFormat','add','formatBlock:chain','createPositionAt','getShiftedBy','end','suggestionChanged','_trackFormatChanges','after','_onDiscard','PendingActions','ck-suggestion-marker','setTo','getIntersection','_breakSuggestionMarker','splitPosition','updateMarker','group','document','formatBlock','attribute','dataToMarker','ENTER','discardSelectedSuggestions','dataDowncast','removeMarker:suggestion:formatBlock','elementToElement','addMarker:suggestion','_enableDefaultAttributesIntegration','get','insertion:discard','addMarker','comments','_blockAttributeKeys','head','getFirstMarker','containsRangeInObject','_isForcedDefaultExecutionBlock','_updateSuggestionData','join','_mergeNestedSuggestions','isIntersectingWithRange','TrackChangesEditing','PENDING_ACTION_SUGGESTION','markerToHighlight','tablePasteChainId','key','deletion','track-changes-suggestion-not-found','getRange','discardAllSuggestions','pop','rename','LEAVE','startsWith','_refreshSuggestionsChain','rejected','containerElement','then','attribute:','isArray','buildSuggestion','removed','forceDefaultExecution','data','requires','setAttribute','_registerBlockAttribute','oldRange'];(function(_0x443091,_0x463f1e){const _0x16f5d0=function(_0x48ce34){while(--_0x48ce34){_0x443091['push'](_0x443091['shift']());}};_0x16f5d0(++_0x463f1e);}(_0x463f,0x75));const _0x16f5=function(_0x443091,_0x463f1e){_0x443091=_0x443091-0x0;let _0x16f5d0=_0x463f[_0x443091];return _0x16f5d0;};import{Plugin as _0x3340ed,PendingActions as _0x1e4263}from'ckeditor5/src/core.js';import{LiveRange as _0x4110f1}from'ckeditor5/src/engine.js';import{CKEditorError as _0x37ee43,uid as _0x3ea536,priorities as _0x1b252a,logWarning as _0x32f996}from'ckeditor5/src/utils.js';import{toWidget as _0x494799}from'ckeditor5/src/widget.js';import{Users as _0x393920,hashObject as _0x4331a1,surroundingMarkersDetector as _0xafe9cd}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x30799d from'./commands/trackchangescommand.js';import _0x100d08 from'./commands/acceptsuggestioncommand.js';import _0x157d79 from'./commands/discardsuggestioncommand.js';import _0x42779c from'./commands/executeonallsuggestionscommand.js';import _0xadb2f8 from'./commands/executeonselectedsuggestionscommand.js';import _0x2160f9 from'./suggestion.js';import _0x378a28 from'./suggestiondescriptionfactory.js';import _0x1998f2 from'./integrations/aiassistant.js';import _0x3b2190 from'./integrations/alignment.js';import _0x581814 from'./integrations/basicstyles.js';import _0x23ad48 from'./integrations/blockquote.js';import _0x85a355 from'./integrations/casechange.js';import _0x59aa7b from'./integrations/ckbox.js';import _0xe4014a from'./integrations/codeblock.js';import _0x3a418b from'./integrations/comments.js';import _0x4d2926 from'./integrations/deletecommand.js';import _0x178e63 from'./integrations/list.js';import _0x36f308 from'./integrations/listproperties.js';import _0xf8422d from'./integrations/entercommand.js';import _0x371f75 from'./integrations/findandreplace.js';import _0x56d09b from'./integrations/font.js';import _0x5af4d5 from'./integrations/formatpainter.js';import _0xc5f73 from'./integrations/heading.js';import _0x44527f from'./integrations/highlight.js';import _0x3f2d38 from'./integrations/horizontalline.js';import _0x300bf8 from'./integrations/htmlembed.js';import _0x2b02c6 from'./integrations/image.js';import _0x533302 from'./integrations/imagereplace.js';import _0x24ae78 from'./integrations/imagestyle.js';import _0x2e6542 from'./integrations/importword.js';import _0x5bd5fd from'./integrations/indent.js';import _0x809c40 from'./integrations/inputcommand.js';import _0x56ce7f from'./integrations/link.js';import _0x5d1372 from'./integrations/legacylist.js';import _0x2f5c41 from'./integrations/legacylistproperties.js';import _0x2f08ae from'./integrations/mediaembed.js';import _0x570bd6 from'./integrations/mention.js';import _0x5846e3 from'./integrations/pagebreak.js';import _0x21514e from'./integrations/paragraph.js';import _0x4e7753 from'./integrations/removeformat.js';import _0x277d40 from'./integrations/restrictededitingmode.js';import _0x534406 from'./integrations/shiftentercommand.js';import _0x1b78d7 from'./integrations/standardeditingmode.js';import _0x3ca21d from'./integrations/style.js';import _0x17c9be from'./integrations/table.js';import _0xea53eb from'./integrations/tablemergesplit.js';import _0x2e8b2c from'./integrations/tableheadings.js';import _0x307f16 from'./integrations/tableclipboard.js';import _0x3d7c31 from'./integrations/tablecolumnresize.js';import _0x115f78 from'./integrations/template.js';import _0x2f5947 from'./integrations/tableofcontents.js';import _0x3ef58a from'./integrations/title.js';import _0x5a904f from'./integrations/undo.js';import _0x2c81f0 from'./integrations/tablecaption.js';import _0x3d9b6e from'./integrations/tableproperties.js';import{getTranslation as _0x13ea0f}from'./utils/common-translations.js';import{isEqual as _0x5223db,omit as _0x41bede}from'lodash-es';export const renameAttributeKey=_0x16f5('0x142');export default class p extends _0x3340ed{static get[_0x16f5('0x109')](){return[_0x16f5('0x143'),_0x393920,_0x1e4263,_0x1998f2,_0x3b2190,_0x581814,_0x23ad48,_0x59aa7b,_0x85a355,_0xe4014a,_0x3a418b,_0x4d2926,_0xf8422d,_0x371f75,_0x56d09b,_0x5af4d5,_0xc5f73,_0x44527f,_0x3f2d38,_0x300bf8,_0x2b02c6,_0x24ae78,_0x533302,_0x2e6542,_0x5bd5fd,_0x809c40,_0x5d1372,_0x2f5c41,_0x56ce7f,_0x178e63,_0x36f308,_0x2f08ae,_0x570bd6,_0x5846e3,_0x21514e,_0x4e7753,_0x277d40,_0x534406,_0x1b78d7,_0x3ca21d,_0x17c9be,_0xea53eb,_0x2e8b2c,_0x2c81f0,_0x307f16,_0x3d7c31,_0x2f5947,_0x3d9b6e,_0x115f78,_0x3ef58a,_0x5a904f];}static get[_0x16f5('0x19')](){return _0x16f5('0xf2');}constructor(_0x28793b){function _0x4ffaab(_0x5dcc4a){return _0x5dcc4a[_0x16f5('0x177')](_0xbe47d1=>String[_0x16f5('0x67')](_0xbe47d1))[_0x16f5('0xef')]('');}super(_0x28793b),this['_recordAttributeSuggestions']=!0x1,this[_0x16f5('0x123')]('activeMarkers',[]),this['on'](_0x16f5('0x86'),(_0x4f0c19,_0x44d402,_0x11c7f5,_0x5b402f)=>{this[_0x16f5('0x47')][_0x16f5('0x172')](()=>{for(const _0x5c095c of[..._0x5b402f,..._0x11c7f5])this['_model'][_0x16f5('0x48')][_0x16f5('0x11e')](_0x5c095c)&&_0x28793b[_0x16f5('0x13d')][_0x16f5('0x119')](_0x5c095c);});}),this[_0x16f5('0x118')]=new _0x378a28(this[_0x16f5('0x27')][_0x16f5('0xb2')]['schema'],this[_0x16f5('0x27')][_0x16f5('0x83')]),this[_0x16f5('0xbb')]=null,this[_0x16f5('0x24')]=new Bt(this[_0x16f5('0x27')]),this[_0x16f5('0x15e')]=new Map(),this['_commentsRepository']=_0x28793b[_0x16f5('0x77')][_0x16f5('0xe5')](_0x16f5('0x143')),this[_0x16f5('0x162')]=new Set(),this[_0x16f5('0x47')]=this['editor']['model'],this[_0x16f5('0x22')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this[_0x16f5('0xe9')]=new Set([_0x16f5('0x142')]),this[_0x16f5('0x8')]=new Set(),_0x28793b[_0x16f5('0x76')]['define'](_0x16f5('0x12e'),_0x16f5('0x21')),this[_0x16f5('0xcf')]=_0x28793b[_0x16f5('0x76')][_0x16f5('0xe5')](_0x16f5('0x12e')),_0x28793b[_0x16f5('0x76')][_0x16f5('0x16e')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x16f5('0xf0')]=_0x28793b[_0x16f5('0x76')][_0x16f5('0xe5')](_0x16f5('0x169')),this['trackChangesCommand']=new _0x30799d(_0x28793b,this[_0x16f5('0x162')]),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4ffaab([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4ffaab([0x34,0x30,0x34,0x38,0x30,0x32,0x33,0x34]);}[_0x16f5('0xa2')](){const _0x327000=this[_0x16f5('0x27')],_0xca8827=(_0x2cd00a,_0x1a91da)=>{if('attribute'!=_0x2cd00a)return _0x16f5('0x2d')+_0x2cd00a;const _0x4ac6a2=_0x1a91da[_0x16f5('0x15d')]('|')[0x0];return this['_isBlockAttribute'](_0x4ac6a2)?_0x16f5('0x14b'):_0x16f5('0x163');};_0x327000[_0x16f5('0x10')][_0x16f5('0x9c')](_0x16f5('0x158'))[_0x16f5('0xf4')]({'model':_0x16f5('0xa'),'view':_0x4d544d=>{const {id:_0x3ee047,type:_0x37321a,subType:_0x4da1e3}=this[_0x16f5('0x15')](_0x4d544d[_0x16f5('0x3')]),_0x2f39d9=['ck-suggestion-marker',_0xca8827(_0x37321a,_0x4da1e3)];let _0xc81ed9=0xbb8;return this[_0x16f5('0x59')]['includes'](_0x4d544d['markerName'])&&(_0x2f39d9['push'](_0x16f5('0x1e')),_0xc81ed9=0xbc2),_0x16f5('0xf7')==_0x37321a&&(_0xc81ed9+=0x5),{'classes':_0x2f39d9,'attributes':{'data-suggestion':_0x3ee047},'priority':_0xc81ed9};}}),_0x327000[_0x16f5('0x10')]['for']('dataDowncast')[_0x16f5('0xc9')](_0x4cde6f=>{_0x4cde6f['on'](_0x16f5('0xe3'),(_0x2cb516,_0x5ca43b,_0x12eecc)=>{if(!_0x12eecc[_0x16f5('0xb0')][_0x16f5('0x150')])return;const _0x3a8630=_0x5ca43b[_0x16f5('0x25')];if(!_0x3a8630)return;const _0x29b1d3=_0x12eecc[_0x16f5('0x175')]['toViewElement'](_0x3a8630);_0x327000[_0x16f5('0xb2')][_0x16f5('0x16c')]['isObject'](_0x3a8630)&&_0x29b1d3&&!_0x29b1d3[_0x16f5('0x157')](_0x16f5('0x73'))&&_0x29b1d3['is'](_0x16f5('0x101'))&&_0x494799(_0x29b1d3,_0x12eecc[_0x16f5('0x167')]);},{'priority':_0x16f5('0x17b')});}),_0x327000['conversion'][_0x16f5('0x9c')](_0x16f5('0xe0'))[_0x16f5('0xf4')]({'model':_0x16f5('0xa'),'view':(_0x17ec8e,_0x254f6c)=>{if(!_0x254f6c[_0x16f5('0xb0')][_0x16f5('0x150')])return null;const {type:_0x4de1c1,subType:_0x3a02a3}=this[_0x16f5('0x15')](_0x17ec8e['markerName']);return{'classes':['ck-suggestion-marker',_0xca8827(_0x4de1c1,_0x3a02a3)],'priority':0xbb8};}});const _0x335bd=({showActiveMarkers:_0x3ee83f=!0x0,isAttributeSuggestion:_0x32215f=!0x1}={})=>(_0x189e87,_0x1eca11,_0x49ac4e)=>{if(!_0x1eca11[_0x16f5('0x25')])return;const {id:_0x2cbc9d}=this[_0x16f5('0x15')](_0x1eca11[_0x16f5('0x3')]);if(_0x32215f){const _0x4c2e7f=this['_suggestions']['get'](_0x2cbc9d),_0x181537=this['_getAttributeKey'](_0x4c2e7f);if(!this[_0x16f5('0x20')](_0x181537))return;}if(_0x1eca11[_0x16f5('0x25')]['is']('selection'))return void _0x49ac4e[_0x16f5('0xa0')][_0x16f5('0x7f')](_0x1eca11[_0x16f5('0x25')],_0x189e87[_0x16f5('0x81')]);const _0x596ded=_0x49ac4e[_0x16f5('0x175')][_0x16f5('0xc4')](_0x1eca11['item']);if(_0x1eca11[_0x16f5('0x25')]['is']('element')&&_0x327000[_0x16f5('0xb2')][_0x16f5('0x16c')][_0x16f5('0x6a')](_0x1eca11[_0x16f5('0x25')])&&!_0x596ded[_0x16f5('0x157')](_0x16f5('0x165'))){_0x49ac4e[_0x16f5('0x167')][_0x16f5('0x15b')]([_0x16f5('0xd3'),_0x16f5('0x14b')],_0x596ded),_0x49ac4e[_0x16f5('0x167')]['setAttribute'](_0x16f5('0x3c'),_0x2cbc9d,_0x596ded),_0x49ac4e[_0x16f5('0x175')][_0x16f5('0x1c')](_0x596ded,_0x1eca11[_0x16f5('0x3')]),_0x3ee83f&&(this[_0x16f5('0x59')]['includes'](_0x1eca11['markerName'])?_0x49ac4e[_0x16f5('0x167')][_0x16f5('0x15b')](_0x16f5('0x1e'),_0x596ded):_0x49ac4e[_0x16f5('0x167')][_0x16f5('0x3b')]('ck-suggestion-marker--active',_0x596ded));for(const _0x133334 of _0x327000[_0x16f5('0xb2')][_0x16f5('0x149')](_0x1eca11[_0x16f5('0x25')])[_0x16f5('0x29')]())_0x49ac4e['consumable'][_0x16f5('0x7f')](_0x133334,_0x189e87[_0x16f5('0x81')]);_0x49ac4e[_0x16f5('0xa0')][_0x16f5('0x7f')](_0x1eca11[_0x16f5('0x25')],_0x189e87[_0x16f5('0x81')]);}};_0x327000[_0x16f5('0x10')][_0x16f5('0x9c')](_0x16f5('0xe0'))[_0x16f5('0xc9')](_0x2b5433=>{_0x2b5433['on']('addMarker:suggestion:formatBlock',(_0x500e42,_0x58b58e,_0x3f72ca)=>{_0x3f72ca[_0x16f5('0xb0')]['showSuggestionHighlights']&&_0x335bd({'showActiveMarkers':!0x1})(_0x500e42,_0x58b58e,_0x3f72ca);},{'priority':_0x16f5('0x43')});}),_0x327000['conversion'][_0x16f5('0x9c')](_0x16f5('0xe0'))[_0x16f5('0xc9')](_0x8cd9a8=>{_0x8cd9a8['on'](_0x16f5('0x57'),(_0x5cc9da,_0x8d5b01,_0x2a2f44)=>{_0x2a2f44['options'][_0x16f5('0x150')]&&_0x335bd({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5cc9da,_0x8d5b01,_0x2a2f44);},{'priority':'highest'});}),_0x327000[_0x16f5('0x10')]['for'](_0x16f5('0xe0'))[_0x16f5('0x132')]({'model':'suggestion','view':(_0x18f7b1,_0x335292)=>_0x335292[_0x16f5('0xb0')][_0x16f5('0x150')]?null:{'group':_0x16f5('0xa'),'name':_0x18f7b1['substr'](0xb)}}),_0x327000[_0x16f5('0x10')][_0x16f5('0x9c')](_0x16f5('0x7d'))[_0x16f5('0xe2')]({'view':{'name':_0x16f5('0xa'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x49e2e0,{writer:_0x2ef57e})=>{let _0x4dde2a=_0x16f5('0xb4')+_0x49e2e0['getAttribute'](_0x16f5('0x33'))+':'+_0x49e2e0[_0x16f5('0xb7')]('id');return _0x49e2e0[_0x16f5('0xb7')](_0x16f5('0x11d'))&&(_0x4dde2a+=':'+_0x49e2e0[_0x16f5('0xb7')](_0x16f5('0x11d'))),_0x2ef57e[_0x16f5('0xf')](_0x16f5('0x9a'),{'data-name':_0x4dde2a});}}),_0x327000[_0x16f5('0x10')][_0x16f5('0x9c')]('upcast')[_0x16f5('0xdd')]({'view':'suggestion'}),_0x327000[_0x16f5('0x10')][_0x16f5('0x9c')]('editingDowncast')[_0x16f5('0xc9')](_0x2b4efc=>{_0x2b4efc['on'](_0x16f5('0x117'),_0x335bd(),{'priority':_0x16f5('0x17b')});}),_0x327000[_0x16f5('0x10')][_0x16f5('0x9c')](_0x16f5('0x158'))[_0x16f5('0xc9')](_0x49d259=>{_0x49d259['on']('addMarker:suggestion:attribute',_0x335bd({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x327000[_0x16f5('0x10')][_0x16f5('0x9c')]('editingDowncast')[_0x16f5('0xc9')](_0x2a55c2=>{_0x2a55c2['on'](_0x16f5('0xe1'),(_0xcf6b09,_0x492846,_0xcbe0ca)=>{const _0x2fde0d=_0xcbe0ca[_0x16f5('0x175')][_0x16f5('0x153')](_0x492846[_0x16f5('0x3')]);if(_0x2fde0d)for(const _0x10aec8 of _0x2fde0d)_0x10aec8[_0x16f5('0x157')](_0x16f5('0x165'))||(_0xcbe0ca[_0x16f5('0x167')]['removeClass']([_0x16f5('0xd3'),'ck-suggestion-marker-formatBlock',_0x16f5('0x1e')],_0x10aec8),_0xcbe0ca[_0x16f5('0x167')]['removeAttribute'](_0x16f5('0x3c'),_0x10aec8),_0xcbe0ca[_0x16f5('0x175')][_0x16f5('0x63')](_0x10aec8,_0x492846[_0x16f5('0x3')]));},{'priority':'high'});}),_0x327000[_0x16f5('0x10')][_0x16f5('0x9c')](_0x16f5('0x158'))[_0x16f5('0xc9')](_0x38b54c=>{_0x38b54c['on'](_0x16f5('0x121'),(_0x52d829,_0x2f6807,_0x712a5e)=>{const _0x77bf0d=_0x712a5e[_0x16f5('0x175')][_0x16f5('0x153')](_0x2f6807[_0x16f5('0x3')]);if(!_0x77bf0d)return;const {id:_0x5dacf2}=this[_0x16f5('0x15')](_0x2f6807[_0x16f5('0x3')]),_0x5d3726=this[_0x16f5('0x15e')][_0x16f5('0xe5')](_0x5dacf2),_0x570835=this[_0x16f5('0xc2')](_0x5d3726);if(this['_isBlockAttribute'](_0x570835))for(const _0x5a9dfe of _0x77bf0d)_0x5a9dfe['getCustomProperty']('addHighlight')||(_0x712a5e[_0x16f5('0x167')]['removeClass']([_0x16f5('0xd3'),_0x16f5('0x14b'),_0x16f5('0x1e')],_0x5a9dfe),_0x712a5e[_0x16f5('0x167')][_0x16f5('0x94')](_0x16f5('0x3c'),_0x5a9dfe),_0x712a5e['mapper'][_0x16f5('0x63')](_0x5a9dfe,_0x2f6807[_0x16f5('0x3')]));},{'priority':_0x16f5('0x17b')});}),_0x327000[_0x16f5('0xb2')][_0x16f5('0xda')]['registerPostFixer'](_0x1839d4=>{let _0x200374=!0x1;const _0x4dd5b0=Array[_0x16f5('0x9e')](_0x327000[_0x16f5('0xb2')][_0x16f5('0xda')][_0x16f5('0x17c')][_0x16f5('0x10f')]()),_0x82a070=new Set();for(const {name:_0x275249,data:_0x4d0ac9}of _0x4dd5b0){const {group:_0x592d18,type:_0x57b18f,subType:_0x58ab88,id:_0x1651ad}=this['_splitMarkerName'](_0x275249);if(_0x16f5('0xa')!==_0x592d18)continue;const _0x514924=this['_suggestions']['get'](_0x1651ad);if(null!=_0x4d0ac9[_0x16f5('0x34')]){_0x16f5('0xac')==_0x57b18f&&(_0x200374=_0x200374||Tt(_0x4d0ac9[_0x16f5('0x34')],_0x275249,_0x1839d4,_0x327000[_0x16f5('0xb2')][_0x16f5('0x16c')]));const _0x5bfb64='attribute'==_0x57b18f&&this[_0x16f5('0x20')](_0x58ab88[_0x16f5('0x15d')]('|')[0x0]);if(_0x4d0ac9[_0x16f5('0x34')][_0x16f5('0x8d')]||_0x16f5('0xb1')==_0x4d0ac9[_0x16f5('0x34')][_0x16f5('0x6f')][_0x16f5('0xa9')]||_0x16f5('0xdb')==_0x57b18f&&!Vt(_0x4d0ac9[_0x16f5('0x34')])||_0x5bfb64&&!Vt(_0x4d0ac9[_0x16f5('0x34')])||_0x16f5('0xf7')==_0x57b18f&&!(!Rt(_0x23f8e2=_0x4d0ac9[_0x16f5('0x34')])&&!function(_0x32e26d){return _0x32e26d[_0x16f5('0x61')]['parent']==_0x32e26d[_0x16f5('0xcd')][_0x16f5('0x87')]&&_0x32e26d[_0x16f5('0x61')][_0x16f5('0x92')];}(_0x23f8e2)))_0x1839d4[_0x16f5('0xb8')](_0x275249),_0x200374=!0x0;else{if(!_0x514924||!_0x514924[_0x16f5('0x128')])continue;_0x82a070[_0x16f5('0xc9')](_0x514924);}}}var _0x23f8e2;return _0x82a070[_0x16f5('0x12d')]>0x0&&(_0x200374=!!this[_0x16f5('0x8f')](_0x82a070)||_0x200374),_0x200374;}),_0x327000[_0x16f5('0xb2')][_0x16f5('0xda')][_0x16f5('0x129')](_0x4a4ff5=>{let _0x205c7d=!0x1;for(const _0x3588bb of _0x327000['model'][_0x16f5('0xda')]['differ'][_0x16f5('0x14d')]())if(_0x16f5('0x13')==_0x3588bb['type'])for(const _0x1bf267 of this[_0x16f5('0x15e')][_0x16f5('0x179')]()){if(_0x1bf267[_0x16f5('0xbd')]||!_0x1bf267[_0x16f5('0x128')])continue;const _0x2e2bba=_0x16f5('0xdb')==_0x1bf267[_0x16f5('0x56')],_0x2383d6=this[_0x16f5('0xc2')](_0x1bf267),_0x2b41e7=_0x2383d6&&this['_isBlockAttribute'](_0x2383d6);if(!_0x2e2bba&&!_0x2b41e7)continue;const _0x4da16f=_0x1bf267['getFirstRange']();if(_0x4da16f[_0x16f5('0x61')]['parent']!=_0x4da16f[_0x16f5('0xcd')]['parent']&&!_0x4da16f[_0x16f5('0xcd')]['isAtEnd']){const _0x44e72d=_0x327000[_0x16f5('0xb2')][_0x16f5('0xcb')](_0x4da16f[_0x16f5('0x61')][_0x16f5('0x64')],_0x16f5('0xcd')),_0x293452=_0x327000[_0x16f5('0xb2')]['createRange'](_0x4da16f[_0x16f5('0x61')],_0x44e72d);_0x4a4ff5[_0x16f5('0xd8')](_0x1bf267['getFirstMarker'](),{'range':_0x293452}),_0x205c7d=!0x0;}}return _0x205c7d;}),_0x327000[_0x16f5('0xb2')][_0x16f5('0xda')][_0x16f5('0x129')](_0x1a1b17=>this[_0x16f5('0xd')](_0x1a1b17)),_0x327000['model'][_0x16f5('0xda')][_0x16f5('0x129')](_0x63fff1=>!_0x63fff1[_0x16f5('0x69')][_0x16f5('0x113')]&&this[_0x16f5('0xab')](_0x63fff1)),_0x327000[_0x16f5('0xb2')]['on'](_0x16f5('0x120'),()=>{this[_0x16f5('0x12a')]=!0x1;}),_0x327000[_0x16f5('0xb2')][_0x16f5('0xda')]['on'](_0x16f5('0x145'),(_0x56ddd0,_0xec3e89)=>{if(!_0xec3e89[_0x16f5('0x113')]||_0xec3e89[_0x16f5('0x16a')])return;if(!this[_0x16f5('0x12a')])return;const _0x1d9a91=_0x327000['model'][_0x16f5('0xda')]['differ'][_0x16f5('0x14d')]();if(0x0==_0x1d9a91['length'])return;const _0x1908e5=[],_0x5789df=_0x1d9a91[_0x16f5('0x88')](_0x57b077=>'attribute'==_0x57b077[_0x16f5('0x56')]),_0x1c15d2=_0x1d9a91[_0x16f5('0x88')](_0x4d7a50=>_0x16f5('0x13')==_0x4d7a50[_0x16f5('0x56')]&&'$text'!=_0x4d7a50[_0x16f5('0x81')]),_0x3cc047=_0x1d9a91[_0x16f5('0x88')](_0x185f5b=>_0x16f5('0x26')==_0x185f5b[_0x16f5('0x56')]&&_0x16f5('0x0')!=_0x185f5b[_0x16f5('0x81')]);for(const _0x6da8e3 of _0x5789df)this[_0x16f5('0x8b')](_0x6da8e3[_0x16f5('0x12c')])&&_0x1908e5[_0x16f5('0x140')]({'key':_0x6da8e3[_0x16f5('0x12c')],'newValue':_0x6da8e3[_0x16f5('0x134')],'oldValue':_0x6da8e3[_0x16f5('0x178')],'range':Ut(_0x6da8e3[_0x16f5('0x16f')],_0x327000['model'])});for(const _0x41e0a2 of _0x1c15d2){const _0x54e1a5=_0x3cc047[_0x16f5('0x160')](_0x263c97=>_0x263c97[_0x16f5('0xbf')]===_0x41e0a2[_0x16f5('0xbf')]);if(_0x54e1a5){const _0x4c4ab9=Ot(_0x41e0a2[_0x16f5('0x2e')][_0x16f5('0x64')],_0x327000['model']);_0x54e1a5[_0x16f5('0x81')]!==_0x41e0a2['name']&&_0x1908e5['push']({'key':_0x16f5('0x142'),'newValue':_0x41e0a2[_0x16f5('0x81')],'oldValue':_0x54e1a5['name'],'range':_0x4c4ab9});for(const [_0x37cfcf,_0x120509]of _0x54e1a5[_0x16f5('0x16d')]){if(!this[_0x16f5('0x8b')](_0x37cfcf))continue;const _0x2bfd49=_0x41e0a2[_0x16f5('0x16d')][_0x16f5('0xe5')](_0x37cfcf);_0x120509!==_0x2bfd49&&_0x1908e5[_0x16f5('0x140')]({'key':_0x37cfcf,'newValue':_0x2bfd49,'oldValue':_0x120509,'range':_0x4c4ab9});}for(const [_0x460fd7,_0x1bf3aa]of _0x41e0a2[_0x16f5('0x16d')])this[_0x16f5('0x8b')](_0x460fd7)&&(_0x54e1a5[_0x16f5('0x16d')]['has'](_0x460fd7)||_0x1908e5['push']({'key':_0x460fd7,'newValue':_0x1bf3aa,'oldValue':void 0x0,'range':_0x4c4ab9}));}}0x0!=_0x1908e5['length']&&_0x327000[_0x16f5('0xb2')][_0x16f5('0x170')](_0xec3e89,_0x406f=>{const _0x311b75=_0x3ea536();for(const {range:_0x742be1,key:_0x5f3e32,oldValue:_0x495d25,newValue:_0x40d8f0}of _0x1908e5)this[_0x16f5('0x96')](_0x742be1,_0x5f3e32,_0x495d25,_0x40d8f0,{'groupId':_0x311b75});this[_0x16f5('0xa8')](_0x406f,_0x1908e5);});},{'priority':'lowest'}),_0x327000[_0x16f5('0xb2')][_0x16f5('0x48')]['on'](_0x16f5('0x111'),(_0xf68097,_0x255b7c,_0x13ba7a)=>{if(null==_0x13ba7a){const {id:_0x2db6bf}=this[_0x16f5('0x15')](_0x255b7c[_0x16f5('0x81')]),_0x2a4b87=this[_0x16f5('0x15e')][_0x16f5('0xe5')](_0x2db6bf);_0x2a4b87&&_0x2a4b87['addMarkerName'](_0x255b7c[_0x16f5('0x81')]);}}),_0x327000[_0x16f5('0xb2')][_0x16f5('0xda')]['on'](_0x16f5('0x145'),()=>{const _0x17c152=Array[_0x16f5('0x9e')](_0x327000[_0x16f5('0xb2')][_0x16f5('0xda')][_0x16f5('0x17c')][_0x16f5('0x10f')]())[_0x16f5('0x88')](_0x464f40=>_0x16f5('0xa')===this[_0x16f5('0x15')](_0x464f40[_0x16f5('0x81')])[_0x16f5('0xd9')]);if(0x0===_0x17c152['length'])return;_0x17c152[_0x16f5('0x174')]((_0x47647a,_0x145547)=>{const _0x204826=_0x47647a[_0x16f5('0x108')][_0x16f5('0x10c')],_0x2cc77b=_0x145547['data']['oldRange'];return null===_0x204826&&null===_0x2cc77b?0x0:null===_0x204826&&null!==_0x2cc77b?-0x1:null!==_0x204826&&null===_0x2cc77b?0x1:_0x204826['start'][_0x16f5('0x112')](_0x2cc77b['start'])?-0x1:0x1;});const _0x4165d3=new Set(),_0x1807b1=new Set();for(const {name:_0x49d4b9,data:_0x24b066}of _0x17c152){const {id:_0x26ae9e}=this[_0x16f5('0x15')](_0x49d4b9);if(null===_0x24b066[_0x16f5('0x10c')]){const _0x336398=this['_handleNewSuggestionMarker'](_0x49d4b9);_0x1807b1[_0x16f5('0xc9')](_0x336398);}else{const _0x15f154=this['_suggestions'][_0x16f5('0xe5')](_0x26ae9e);null!==_0x24b066[_0x16f5('0x34')]||_0x15f154[_0x16f5('0x128')]?(_0x4165d3[_0x16f5('0xc9')](_0x15f154[_0x16f5('0xea')]),_0x1807b1[_0x16f5('0xc9')](_0x15f154)):this['_removeSuggestion'](_0x15f154);}}_0x1807b1[_0x16f5('0x12d')]>0x0&&this[_0x16f5('0xff')](_0x1807b1);for(const _0xa6dadf of _0x4165d3)this[_0x16f5('0x159')](_0x16f5('0xce'),_0xa6dadf);}),_0x327000[_0x16f5('0xb2')]['on'](_0x16f5('0x164'),(_0x453697,_0x298b6c)=>{const _0x1a4f01=_0x298b6c[0x0];if(!this[_0x16f5('0x15e')][_0x16f5('0x12d')])return;if(!_0x1a4f01['isDocumentOperation'])return;if(_0x1a4f01[_0x16f5('0x69')]['isUndo']||!_0x1a4f01[_0x16f5('0x69')][_0x16f5('0x113')])return;let _0x2f81a7,_0x3fad74;switch(_0x1a4f01[_0x16f5('0x56')]){case _0x16f5('0x13'):_0x2f81a7=_0x327000[_0x16f5('0xb2')][_0x16f5('0xcb')](_0x1a4f01['position']),_0x3fad74=_0x2f81a7['getShiftedBy'](_0x1a4f01[_0x16f5('0x4b')]);break;case _0x16f5('0x15d'):_0x2f81a7=_0x327000[_0x16f5('0xb2')][_0x16f5('0xcb')](_0x1a4f01[_0x16f5('0xd7')]),_0x3fad74=_0x327000['model'][_0x16f5('0xcb')](_0x1a4f01[_0x16f5('0xbe')]);break;case'move':_0x2f81a7=_0x327000[_0x16f5('0xb2')][_0x16f5('0xcb')](_0x1a4f01[_0x16f5('0x53')]),_0x3fad74=_0x2f81a7[_0x16f5('0xcc')](_0x1a4f01['howMany']);break;default:return;}const _0x4f6f45=_0x327000[_0x16f5('0xb2')]['createRange'](_0x2f81a7,_0x3fad74);_0x327000['model'][_0x16f5('0x172')](()=>{for(const {suggestion:_0x5d32dc,meta:_0x3965fe}of this[_0x16f5('0x9f')](_0x4f6f45)){if(_0x5d32dc[_0x16f5('0xbd')])continue;if(_0x16f5('0xac')==_0x5d32dc['type'])continue;const _0x57a14c=this[_0x16f5('0xc2')](_0x5d32dc);if(_0x57a14c&&this[_0x16f5('0x20')](_0x57a14c)&&_0x16f5('0x15d')!=_0x1a4f01['type'])continue;const _0x260787=_0x5d32dc[_0x16f5('0x108')]&&_0x5d32dc['data']['multipleBlocks'];(_0x16f5('0xdb')!=_0x5d32dc[_0x16f5('0x56')]||_0x16f5('0x15d')==_0x1a4f01[_0x16f5('0x56')]&&!_0x260787)&&(_0x3965fe[_0x16f5('0xec')]||_0x16f5('0xc7')==_0x5d32dc[_0x16f5('0x56')]&&_0x3965fe[_0x16f5('0x3d')]||_0x5d32dc[_0x16f5('0x156')]()[_0x16f5('0x12f')](_0x4f6f45)&&this[_0x16f5('0xd6')](_0x5d32dc,_0x2f81a7,_0x3fad74));}});},{'priority':_0x16f5('0x2c')}),_0x327000['model']['on'](_0x16f5('0x141'),(_0x427b84,_0x21c599)=>{const _0x40027a=_0x21c599[0x0],_0x5d0b37=_0x21c599[0x1];if(_0x5d0b37&&_0x5d0b37['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x16f5('0x16')][_0x16f5('0x15f')])return;if(_0x40027a[_0x16f5('0x8d')])return;const _0x5947e7=_0x327000[_0x16f5('0xb2')][_0x16f5('0x16c')],{start:_0x406720,end:_0x3c6ed5}=_0x40027a['getFirstRange'](),_0x497f78=_0x406720['nodeAfter']&&_0x5947e7[_0x16f5('0x2f')](_0x406720['nodeAfter'])?null:_0x5947e7[_0x16f5('0x5c')](_0x406720,_0x16f5('0x5f')),_0xca7cd8=_0x3c6ed5[_0x16f5('0x87')]&&_0x5947e7['isLimit'](_0x3c6ed5[_0x16f5('0x87')])?null:_0x5947e7[_0x16f5('0x5c')](_0x3c6ed5,'backward'),_0x18d39c=_0x327000[_0x16f5('0xb2')][_0x16f5('0x4a')](_0x497f78?_0x497f78[_0x16f5('0x61')]:_0x406720,_0xca7cd8?_0xca7cd8[_0x16f5('0xcd')]:_0x3c6ed5);_0x327000[_0x16f5('0xb2')][_0x16f5('0x172')](_0x3f4c38=>{this['markDeletion'](_0x18d39c);const _0x172413=_0x327000[_0x16f5('0xb2')]['schema'][_0x16f5('0x5c')](_0x18d39c[_0x16f5('0x61')]);_0x40027a['is'](_0x16f5('0x71'))?_0x3f4c38[_0x16f5('0x78')](_0x172413):_0x40027a[_0x16f5('0xd4')](_0x172413);}),_0x427b84[_0x16f5('0x122')]();},{'priority':_0x1b252a[_0x16f5('0x90')]+0xa}),_0x327000[_0x16f5('0xb2')]['on'](_0x16f5('0x17d'),(_0x63981,_0x467ed3)=>{const _0x19c4b3=_0x467ed3[_0x467ed3['length']-0x1];_0x19c4b3&&_0x19c4b3[_0x16f5('0x107')]||this[_0x16f5('0xed')]||this[_0x16f5('0x16')][_0x16f5('0x15f')]&&(_0x327000[_0x16f5('0xb2')][_0x16f5('0x172')](()=>{let _0x5c9bc3=_0x327000[_0x16f5('0xb2')][_0x16f5('0x17d')](_0x467ed3[0x0],_0x467ed3[0x1],_0x467ed3[0x2],{'forceDefaultExecution':!0x0});if(!_0x5c9bc3)return;_0x63981[_0x16f5('0x6c')]=_0x5c9bc3[_0x16f5('0x173')]();const _0x45df0d=_0x5c9bc3['end']['nodeBefore'],_0x98ef01=_0x327000[_0x16f5('0xb2')][_0x16f5('0x16c')];_0x45df0d&&_0x98ef01['isBlock'](_0x45df0d)&&!_0x98ef01[_0x16f5('0xa7')](_0x45df0d)&&(_0x5c9bc3=_0x327000[_0x16f5('0xb2')][_0x16f5('0x4a')](_0x5c9bc3[_0x16f5('0x61')],_0x327000[_0x16f5('0xb2')][_0x16f5('0xcb')](_0x45df0d,_0x16f5('0xcd')))),this[_0x16f5('0x5d')](_0x5c9bc3);}),_0x63981[_0x16f5('0x122')]());},{'priority':_0x16f5('0x17b')}),this[_0x16f5('0x27')][_0x16f5('0x17')][_0x16f5('0xc9')]('trackChanges',this['trackChangesCommand']),this[_0x16f5('0x130')](_0x16f5('0xb3'));const _0x248e87=new _0x100d08(_0x327000,this[_0x16f5('0x15e')]);_0x327000['commands'][_0x16f5('0xc9')](_0x16f5('0x80'),_0x248e87),this[_0x16f5('0x130')](_0x16f5('0x80'));const _0x30a932=new _0x157d79(_0x327000,this[_0x16f5('0x15e')]);_0x327000['commands'][_0x16f5('0xc9')](_0x16f5('0x1b'),_0x30a932),this[_0x16f5('0x130')](_0x16f5('0x1b')),_0x327000[_0x16f5('0x17')][_0x16f5('0xc9')](_0x16f5('0x139'),new _0x42779c(_0x327000,_0x248e87,this[_0x16f5('0x15e')])),this[_0x16f5('0x130')](_0x16f5('0x139')),_0x327000[_0x16f5('0x17')][_0x16f5('0xc9')](_0x16f5('0xfa'),new _0x42779c(_0x327000,_0x30a932,this[_0x16f5('0x15e')])),this['enableCommand'](_0x16f5('0xfa')),_0x327000[_0x16f5('0x17')][_0x16f5('0xc9')](_0x16f5('0x147'),new _0xadb2f8(_0x327000,_0x248e87,this[_0x16f5('0x15e')])),this[_0x16f5('0x130')](_0x16f5('0x147')),_0x327000[_0x16f5('0x17')][_0x16f5('0xc9')]('discardSelectedSuggestions',new _0xadb2f8(_0x327000,_0x30a932,this[_0x16f5('0x15e')])),this['enableCommand'](_0x16f5('0xdf'));const _0x3ac13b=_0x327000[_0x16f5('0x77')][_0x16f5('0xe5')](_0x16f5('0x143'));this['listenTo'](_0x3ac13b,_0x16f5('0x1d'),(_0x2a9b0c,{threadId:_0x2c74c5})=>{const _0x3cf153=this[_0x16f5('0x15e')][_0x16f5('0xe5')](_0x2c74c5);_0x3cf153&&_0x3cf153[_0x16f5('0x135')]&&0x1===_0x3cf153['commentThread'][_0x16f5('0x146')]&&this[_0x16f5('0xee')](_0x2c74c5,{'hasComments':!0x0});},{'priority':_0x16f5('0x127')}),this[_0x16f5('0x14e')](_0x3ac13b,_0x16f5('0x41'),(_0x58341f,{threadId:_0x324f33})=>{const _0x5bda4e=this[_0x16f5('0x15e')]['get'](_0x324f33);_0x5bda4e&&_0x5bda4e[_0x16f5('0x135')]&&!_0x5bda4e[_0x16f5('0x135')]['length']&&this['_updateSuggestionData'](_0x324f33,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x122ea9){if(this[_0x16f5('0xbb')])throw new _0x37ee43(_0x16f5('0x13b'),this);this[_0x16f5('0xbb')]=_0x122ea9;}get[_0x16f5('0x8c')](){return this[_0x16f5('0xbb')];}[_0x16f5('0x14')]({skipNotAttached:_0x41486a=!0x1,toJSON:_0x216ecf=!0x1}={}){const _0x36bad6=[];for(const _0x28237f of this[_0x16f5('0x15e')][_0x16f5('0x179')]())_0x41486a&&!_0x28237f[_0x16f5('0x128')]||_0x36bad6[_0x16f5('0x140')](_0x28237f);return _0x216ecf?_0x36bad6[_0x16f5('0x177')](_0x5c94f3=>_0x5c94f3[_0x16f5('0x155')]()):_0x36bad6;}[_0x16f5('0x8e')](_0x4d86fd){const _0x472ef1=this[_0x16f5('0x15e')][_0x16f5('0xe5')](_0x4d86fd);if(!_0x472ef1)throw new _0x37ee43(_0x16f5('0xf8'),this);return _0x472ef1;}[_0x16f5('0xb')](_0x420251){return this[_0x16f5('0x15e')][_0x16f5('0x11e')](_0x420251);}[_0x16f5('0x11b')](_0x1ee807){const {authorId:_0x34c401,id:_0x3d43ae,attributes:_0x3f2ec0}=_0x1ee807,[_0x5bd0df,_0xcc485f]=_0x1ee807[_0x16f5('0x56')][_0x16f5('0x15d')](':'),_0x30411a=this[_0x16f5('0x15e')]['get'](_0x3d43ae)||this[_0x16f5('0x3e')](_0x5bd0df,_0xcc485f,_0x3d43ae,_0x34c401,_0x3f2ec0);if(this['_addThreadToSuggestion'](_0x30411a),this['_checkSuggestionCorrectness'](_0x30411a,_0x5bd0df,_0xcc485f||null,_0x34c401),_0x30411a[_0x16f5('0x89')]=_0x1ee807[_0x16f5('0x89')],_0x30411a['_isDataLoaded']=!0x0,_0x3f2ec0&&_0x3f2ec0[_0x16f5('0x5e')]){const _0x36c6da=_0x3f2ec0[_0x16f5('0x5e')],_0x40c2f2=this[_0x16f5('0x114')](_0x36c6da['authorName']);_0x30411a['authoredAt']=_0x36c6da[_0x16f5('0x89')],_0x30411a[_0x16f5('0x17a')]=_0x40c2f2,_0x30411a[_0x16f5('0xaa')]=!0x0;}else _0x30411a[_0x16f5('0x181')]=_0x1ee807[_0x16f5('0x89')];switch(_0x1ee807[_0x16f5('0x108')]&&(_0x30411a[_0x16f5('0x108')]=_0x1ee807['data']),_0x1ee807[_0x16f5('0x16d')]&&(_0x30411a[_0x16f5('0x16d')]=_0x1ee807[_0x16f5('0x16d')]),this[_0x16f5('0xbb')]&&this['_adapter']['addSuggestion']||(_0x30411a[_0x16f5('0x151')]=!0x0),this['_suggestionState'][_0x16f5('0xe5')](_0x30411a)){case _0x16f5('0x72'):this[_0x16f5('0x22')][_0x16f5('0x123')](_0x30411a,'dataReady');break;case'markerReady':_0x30411a[_0x16f5('0x128')]?(this[_0x16f5('0x8f')](new Set([_0x30411a])),this['_refreshSuggestionsChain'](new Set([_0x30411a])),this[_0x16f5('0x22')]['set'](_0x30411a,_0x16f5('0xa1')),this[_0x16f5('0x159')]('suggestionLoaded',_0x30411a)):this[_0x16f5('0x22')][_0x16f5('0x123')](_0x30411a,_0x16f5('0x106'));}return _0x30411a;}[_0x16f5('0x80')](_0x1bd2cb){this[_0x16f5('0x107')](()=>{this[_0x16f5('0x27')][_0x16f5('0xb2')]['change'](()=>{for(const _0x34faa7 of _0x1bd2cb[_0x16f5('0x52')]())_0x34faa7[_0x16f5('0x110')]();});});}[_0x16f5('0x1b')](_0x1b0fc9){this[_0x16f5('0x107')](()=>{this['editor']['model'][_0x16f5('0x172')](()=>{for(const _0x42afe1 of _0x1b0fc9[_0x16f5('0x52')]())_0x42afe1[_0x16f5('0x161')]();});});}[_0x16f5('0x130')](_0x17f156,_0x403013){const _0x5da556=this['editor']['commands'][_0x16f5('0xe5')](_0x17f156);if(!_0x5da556)throw new _0x37ee43('track-changes-command-not-found',this,{'commandName':_0x17f156});if(this[_0x16f5('0x162')][_0x16f5('0x11e')](_0x5da556))throw new _0x37ee43('track-changes-enable-command-twice',this,{'commandName':_0x17f156});this[_0x16f5('0x162')][_0x16f5('0xc9')](_0x5da556),_0x403013&&_0x5da556['on'](_0x16f5('0x126'),(_0x17de1a,_0x1c10ca)=>{this['trackChangesCommand'][_0x16f5('0x15f')]&&(this['_isForcedDefaultExecutionBlock']||(_0x1c10ca['length']>0x0&&_0x1c10ca[_0x1c10ca['length']-0x1]&&_0x1c10ca[_0x1c10ca['length']-0x1][_0x16f5('0x107')]?_0x1c10ca[_0x16f5('0xfb')]():(_0x17de1a[_0x16f5('0x6c')]=_0x403013((..._0x3a51fb)=>_0x5da556['execute'](..._0x3a51fb,{'forceDefaultExecution':!0x0}),..._0x1c10ca),_0x17de1a[_0x16f5('0x122')]())));},{'priority':_0x16f5('0x17b')});}[_0x16f5('0x107')](_0x18e60e){let _0x17a3c9,_0x18d7c1;const _0x534d80=this[_0x16f5('0xed')];this[_0x16f5('0xed')]=!0x0;try{_0x17a3c9=_0x18e60e();}catch(_0x43da13){_0x18d7c1=_0x43da13;}return _0x534d80||(this[_0x16f5('0xed')]=!0x1),_0x18d7c1&&_0x37ee43[_0x16f5('0x84')](_0x18d7c1,this),_0x17a3c9;}[_0x16f5('0x5d')](_0x62f17c,_0x55878b=null,_0x2b2f0d={}){if(_0x62f17c[_0x16f5('0x8d')])return null;const _0x527240=this[_0x16f5('0x27')][_0x16f5('0x77')]['get'](_0x16f5('0x18'))['me'];for(const {suggestion:_0x52ec53,meta:_0x18eafb}of this['_findSuggestions'](_0x62f17c,'insertion'))if(_0x18eafb[_0x16f5('0x3d')]){if(!_0x18eafb[_0x16f5('0x166')]){if(_0x18eafb[_0x16f5('0xec')]){if(!this[_0x16f5('0xf0')]||!Pt(_0x52ec53,_0x2b2f0d))continue;return _0x52ec53;}if(Pt(_0x52ec53,_0x2b2f0d))return _0x52ec53;this[_0x16f5('0xd6')](_0x52ec53,_0x62f17c[_0x16f5('0x61')],_0x62f17c[_0x16f5('0xcd')]);break;}if(_0x55878b==_0x52ec53[_0x16f5('0xbc')]&&Pt(_0x52ec53,_0x2b2f0d)){const _0x62ddb8=_0x52ec53[_0x16f5('0x156')]();return _0x62ddb8[_0x16f5('0x61')][_0x16f5('0xb5')](_0x62f17c[_0x16f5('0xcd')])?this[_0x16f5('0xc3')](_0x52ec53,this['_model'][_0x16f5('0x4a')](_0x62f17c[_0x16f5('0x61')],_0x62ddb8[_0x16f5('0xcd')])):this['_setSuggestionRange'](_0x52ec53,this[_0x16f5('0x47')]['createRange'](_0x62ddb8[_0x16f5('0x61')],_0x62f17c[_0x16f5('0xcd')])),_0x52ec53;}}const _0x8a9eee=_0x3ea536(),_0x38b48b=_0x527240['id'],_0x27fb96=_0x55878b?'insertion:'+_0x55878b:_0x16f5('0xc7'),_0x2d411f=this[_0x16f5('0x133')]({'id':_0x8a9eee,'type':_0x27fb96,'createdAt':new Date(),'authorId':_0x38b48b,'attributes':_0x2b2f0d});return this[_0x16f5('0x74')](_0x27fb96,_0x8a9eee,_0x38b48b,_0x62f17c),_0x2d411f;}[_0x16f5('0x148')](_0x452c63,_0x15261a=_0x16f5('0x136'),_0x293c02={}){const _0x4b580a=this[_0x16f5('0x27')]['plugins'][_0x16f5('0xe5')](_0x16f5('0x18'))['me'],_0xf571a0=this[_0x16f5('0x24')][_0x16f5('0x13c')]('insertion',_0x15261a,_0x16f5('0xef'));for(const _0x5ae714 of this[_0x16f5('0x14')]())if(_0x5ae714['author']['id']==_0x4b580a['id']&&_0x16f5('0xc7')==_0x5ae714[_0x16f5('0x56')]&&_0x5ae714[_0x16f5('0xbc')]==_0x15261a&&Pt(_0x5ae714,_0x293c02)&&(_0xf571a0(_0x5ae714['getRanges'](),_0x452c63)||_0xf571a0(_0x452c63,_0x5ae714[_0x16f5('0xc5')]()))){for(const _0x1d30cd of _0x452c63)_0x5ae714['addRange'](_0x1d30cd);return _0x5ae714;}for(const {suggestion:_0x400213,meta:_0x11256e}of this['_findSuggestions'](_0x452c63,_0x16f5('0xc7'))){if(!_0x11256e['isOwn'])continue;if(!this[_0x16f5('0xf0')]&&_0x11256e[_0x16f5('0xec')])continue;if(!Pt(_0x400213,_0x293c02))continue;let _0x579a07=!0x0;for(const _0x4971ed of _0x400213[_0x16f5('0xc5')]())for(const _0x24cfc0 of _0x452c63)if(!_0x4971ed['containsRange'](_0x24cfc0)){_0x579a07=!0x1;break;}if(_0x579a07)return _0x400213;}const _0x12a3b4=_0x3ea536(),_0x308473=_0x4b580a['id'],_0x5cb28b=_0x16f5('0x11c')+_0x15261a,_0x453b6f=this[_0x16f5('0x133')]({'id':_0x12a3b4,'type':_0x5cb28b,'createdAt':new Date(),'authorId':_0x308473,'attributes':_0x293c02});for(const _0x691e86 of _0x452c63)this[_0x16f5('0x74')](_0x5cb28b,_0x12a3b4,_0x308473,_0x691e86,_0x2160f9[_0x16f5('0x171')]());return _0x453b6f;}[_0x16f5('0x144')](_0x1181c5,_0x263eff,_0x164bf2=null,_0xae7af7={}){if(_0x164bf2=_0x164bf2||Et(_0x263eff),_0x1181c5[_0x16f5('0x8d')])return null;if(_0x16f5('0x7a')===this['_trackFormatChanges']){const _0x455b5f=this[_0x16f5('0x24')][_0x16f5('0x13c')](_0x16f5('0xac'),_0x164bf2,_0x16f5('0x110'));return this['forceDefaultExecution'](()=>_0x455b5f([_0x1181c5],_0x263eff,_0xae7af7)),null;}const _0xf6640f=this[_0x16f5('0x27')][_0x16f5('0x77')][_0x16f5('0xe5')](_0x16f5('0x18'))['me'],_0x1c4d38=[];if('always'!==this[_0x16f5('0xcf')])for(const {suggestion:_0x235b27,meta:_0x2139f5}of this[_0x16f5('0x9f')](_0x1181c5,_0x16f5('0xc7')))_0x2139f5[_0x16f5('0x3d')]&&!_0x2139f5[_0x16f5('0x17e')]&&_0x1c4d38[_0x16f5('0x140')](..._0x235b27['getRanges']());const _0x694d51=function(_0x1b54f6,_0x3ffcaa){const _0x2d55fe=[];for(const _0x2c6664 of _0x3ffcaa){const _0x51464a=_0x1b54f6[_0x16f5('0xd5')](_0x2c6664);_0x51464a&&_0x2d55fe[_0x16f5('0x140')](_0x51464a);}return _0x2d55fe;}(_0x1181c5,_0x1c4d38),_0x2b45a9=function(_0x188561,_0x24b51f){const _0xa6e10c=[_0x188561];for(const _0x40b1aa of _0x24b51f){let _0x2fed36=0x0;for(;_0x2fed36<_0xa6e10c[_0x16f5('0x146')];){const _0x3e97a8=_0xa6e10c[_0x2fed36][_0x16f5('0xc0')](_0x40b1aa);_0xa6e10c['splice'](_0x2fed36,0x1,..._0x3e97a8),_0x2fed36+=_0x3e97a8[_0x16f5('0x146')];}}return _0xa6e10c;}(_0x1181c5,_0x1c4d38);_0x694d51[_0x16f5('0x146')]&&this[_0x16f5('0x47')][_0x16f5('0x172')](()=>{for(const _0x2e2953 of _0x694d51){const _0x5153ff=this['_suggestionFactory'][_0x16f5('0x13c')](_0x16f5('0xac'),_0x164bf2,'accept');this[_0x16f5('0x107')](()=>_0x5153ff([_0x2e2953],_0x263eff,_0xae7af7));}});for(const _0x2a379f of _0x2b45a9){let _0x5b8337=null,_0x3e620a=_0x2a379f[_0x16f5('0x61')],_0x42686c=_0x2a379f[_0x16f5('0xcd')];for(const {suggestion:_0x109fc3,meta:_0x3a2653}of this[_0x16f5('0x9f')](_0x2a379f,'formatInline')){if(!_0x3a2653[_0x16f5('0x3d')])continue;if(_0x109fc3[_0x16f5('0xbc')]!=_0x164bf2)continue;if(!Pt(_0x109fc3,_0xae7af7))continue;const _0x4f131b=_0x109fc3['getFirstRange']();if(_0x4f131b[_0x16f5('0x12f')](_0x2a379f,!0x0))return null;_0x3e620a=_0x3e620a[_0x16f5('0x112')](_0x4f131b[_0x16f5('0x61')])?_0x3e620a:_0x4f131b['start'],_0x42686c=_0x42686c[_0x16f5('0x98')](_0x4f131b['end'])?_0x42686c:_0x4f131b[_0x16f5('0xcd')],_0x5b8337?_0x4f131b[_0x16f5('0x61')]['isBefore'](_0x5b8337[_0x16f5('0x156')]()[_0x16f5('0x61')])?(_0x5b8337[_0x16f5('0x4f')](),_0x5b8337=_0x109fc3):_0x109fc3[_0x16f5('0x4f')]():_0x5b8337=_0x109fc3;}const _0x1a7712=this[_0x16f5('0x47')]['createRange'](_0x3e620a,_0x42686c);if(_0x5b8337)this[_0x16f5('0xc3')](_0x5b8337,_0x1a7712);else{const _0x225c51=_0x3ea536(),_0xec2f40=_0xf6640f['id'];this[_0x16f5('0x133')]({'id':_0x225c51,'type':_0x16f5('0x1a')+_0x164bf2,'data':_0x263eff,'createdAt':new Date(),'authorId':_0xec2f40,'attributes':_0xae7af7}),this[_0x16f5('0x74')](_0x16f5('0x1a')+_0x164bf2,_0x225c51,_0xec2f40,_0x1a7712);}}return null;}[_0x16f5('0x91')](_0x3d6e28,_0x5694bb,_0x58d8ac=[],_0x3430bf=null,_0x42192f={}){_0x5694bb['formatGroupId']||(_0x5694bb[_0x16f5('0x58')]=_0x5694bb[_0x16f5('0x31')]),_0x5694bb[_0x16f5('0x12b')]=_0x3d6e28['is'](_0x16f5('0x16f')),_0x3430bf=_0x3430bf||Et(_0x5694bb);const _0x126d68=_0x58d8ac[_0x16f5('0x177')](_0x2d3cef=>Ot(_0x2d3cef,this[_0x16f5('0x47')])),_0x31b573=_0x3d6e28['is']('range')?_0x3d6e28:Ot(_0x3d6e28,this['_model']);if(_0x16f5('0x7a')===this[_0x16f5('0xcf')]){const _0x5cca5d=this[_0x16f5('0x24')][_0x16f5('0x13c')](_0x16f5('0xdb'),_0x3430bf,_0x16f5('0x110'));return this[_0x16f5('0x107')](()=>_0x5cca5d([_0x31b573],_0x5694bb,_0x42192f)),null;}_0x126d68[_0x16f5('0x140')](_0x31b573);let _0x5a17ff=!0x0;for(const _0x325e69 of _0x126d68)if(!this['_rangeIsInLocalUserInsertion'](_0x325e69)){_0x5a17ff=!0x1;break;}if(_0x5a17ff&&_0x16f5('0x11f')!==this[_0x16f5('0xcf')]){const _0x44ede0=this[_0x16f5('0x24')]['getSuggestionCallback'](_0x16f5('0xdb'),_0x3430bf,_0x16f5('0x110'));return this['forceDefaultExecution'](()=>_0x44ede0([_0x31b573],_0x5694bb,_0x42192f)),null;}let _0xb5f3ca=null,_0x23fcda=_0x31b573[_0x16f5('0x61')],_0xfafd86=_0x31b573[_0x16f5('0xcd')];for(const {suggestion:_0x48a35b,meta:_0x1c0792}of this[_0x16f5('0x9f')](_0x31b573,_0x16f5('0xdb'))){if(!_0x1c0792[_0x16f5('0x3d')])continue;if(_0x1c0792['isNextTo']||_0x1c0792[_0x16f5('0xec')]||_0x1c0792[_0x16f5('0x17e')])continue;if(_0x48a35b[_0x16f5('0x108')]['formatGroupId']!=_0x5694bb['formatGroupId'])continue;if(!Pt(_0x48a35b,_0x42192f))continue;const _0x578f2b=_0x48a35b[_0x16f5('0x156')]();if(_0x48a35b[_0x16f5('0xbc')]==_0x3430bf){if(_0x578f2b[_0x16f5('0x12f')](_0x31b573,!0x0))return null;_0x23fcda=_0x23fcda[_0x16f5('0x112')](_0x578f2b[_0x16f5('0x61')])?_0x23fcda:_0x578f2b[_0x16f5('0x61')],_0xfafd86=_0xfafd86[_0x16f5('0x98')](_0x578f2b[_0x16f5('0xcd')])?_0xfafd86:_0x578f2b[_0x16f5('0xcd')],_0xb5f3ca?_0x578f2b[_0x16f5('0x61')]['isBefore'](_0xb5f3ca[_0x16f5('0x156')]()[_0x16f5('0x61')])?(_0xb5f3ca[_0x16f5('0x4f')](),_0xb5f3ca=_0x48a35b):_0x48a35b[_0x16f5('0x4f')]():_0xb5f3ca=_0x48a35b;}else{const _0x510e00=_0x31b573[_0x16f5('0xd5')](_0x578f2b);this[_0x16f5('0x6')](_0x48a35b,_0x510e00);}}const _0x8c26f7=this[_0x16f5('0x27')][_0x16f5('0x77')][_0x16f5('0xe5')](_0x16f5('0x18'))['me'],_0x416b32=_0x3ea536(),_0x1482e1=_0x8c26f7['id'];if(_0xb5f3ca)return this['_setSuggestionRange'](_0xb5f3ca,this[_0x16f5('0x47')][_0x16f5('0x4a')](_0x23fcda,_0xfafd86)),_0xb5f3ca;{const _0x42b07f=this[_0x16f5('0x133')]({'id':_0x416b32,'type':_0x16f5('0x7')+_0x3430bf,'data':_0x5694bb,'createdAt':new Date(),'authorId':_0x1482e1,'attributes':_0x42192f});return this[_0x16f5('0x74')](_0x16f5('0x7')+_0x3430bf,_0x416b32,_0x1482e1,this[_0x16f5('0x47')][_0x16f5('0x4a')](_0x23fcda,_0xfafd86)),_0x42b07f;}}[_0x16f5('0xc8')](_0x1ad7ca,_0x753f15,_0x243ac0=[],_0x50e24e=null,_0x4f9296={}){_0x753f15['formatGroupId']||(_0x753f15['formatGroupId']=_0x753f15['commandName']);const _0x5529b7=_0x1ad7ca[0x0];_0x753f15[_0x16f5('0x12b')]=_0x5529b7['is']('range'),_0x50e24e=_0x50e24e||Et(_0x753f15);const _0x2ef523=_0x243ac0[_0x16f5('0x177')](_0x85c358=>Ot(_0x85c358,this[_0x16f5('0x47')])),_0x9b904e=_0x5529b7['is'](_0x16f5('0x16f'))?_0x1ad7ca:_0x1ad7ca[_0x16f5('0x177')](_0x12aeaf=>Ot(_0x12aeaf,this[_0x16f5('0x47')]));if(_0x16f5('0x7a')===this['_trackFormatChanges']){const _0x29c5b3=this['_suggestionFactory'][_0x16f5('0x13c')](_0x16f5('0xdb'),_0x50e24e,_0x16f5('0x110'));return this[_0x16f5('0x107')](()=>_0x29c5b3(_0x9b904e,_0x753f15,_0x4f9296)),null;}_0x2ef523[_0x16f5('0x140')](..._0x9b904e);let _0x52f9d8=!0x0;for(const _0xc61297 of _0x2ef523)if(!this[_0x16f5('0x4')](_0xc61297)){_0x52f9d8=!0x1;break;}if(_0x52f9d8&&'always'!==this[_0x16f5('0xcf')]){const _0x25a273=this[_0x16f5('0x24')][_0x16f5('0x13c')]('formatBlock',_0x50e24e,_0x16f5('0x110'));return this['forceDefaultExecution'](()=>_0x25a273(_0x9b904e,_0x753f15,_0x4f9296)),null;}const _0x900de8=this['editor'][_0x16f5('0x77')]['get'](_0x16f5('0x18'))['me'];for(const _0x5ad576 of this['getSuggestions']()){if(_0x5ad576[_0x16f5('0x17a')]['id']!=_0x900de8['id'])continue;if('formatBlock'!=_0x5ad576[_0x16f5('0x56')]||_0x5ad576['data'][_0x16f5('0x58')]!=_0x753f15['formatGroupId'])continue;if(!Pt(_0x5ad576,_0x4f9296))continue;const _0x2a4fe2=_0x5ad576[_0x16f5('0xbc')]==_0x50e24e;for(let _0x2c4d9a=0x0;_0x2c4d9a<_0x9b904e[_0x16f5('0x146')];_0x2c4d9a++){const _0x2a66f2=_0x9b904e[_0x2c4d9a];for(const _0x3b62c3 of _0x5ad576['getMarkers']()){const _0x28a4d9=_0x3b62c3[_0x16f5('0xf9')]();if(_0x2a66f2[_0x16f5('0xb5')](_0x28a4d9)){_0x2a4fe2?(_0x9b904e['splice'](_0x2c4d9a,0x1),_0x2c4d9a--):_0x5ad576['removeMarker'](_0x3b62c3[_0x16f5('0x81')]);break;}}}}if(0x0==_0x9b904e[_0x16f5('0x146')])return null;const _0x25ec52=this[_0x16f5('0x24')]['getSuggestionCallback'](_0x16f5('0xdb'),_0x50e24e,'join');for(const _0x4cb49d of this[_0x16f5('0x14')]())if(_0x4cb49d[_0x16f5('0x17a')]['id']==_0x900de8['id']&&_0x16f5('0xdb')==_0x4cb49d[_0x16f5('0x56')]&&_0x4cb49d[_0x16f5('0x108')][_0x16f5('0x58')]==_0x753f15[_0x16f5('0x58')]&&_0x4cb49d['subType']==_0x50e24e&&Pt(_0x4cb49d,_0x4f9296)&&(_0x25ec52(_0x4cb49d[_0x16f5('0xc5')](),_0x9b904e)||_0x25ec52(_0x9b904e,_0x4cb49d[_0x16f5('0xc5')]()))){for(const _0x339db2 of _0x9b904e)_0x4cb49d[_0x16f5('0x54')](_0x339db2);return _0x4cb49d;}const _0x416762=_0x3ea536(),_0x42fc98=_0x900de8['id'],_0x35cf33=_0x16f5('0x7')+_0x50e24e,_0x1734a9=this['_setSuggestionData']({'id':_0x416762,'type':_0x35cf33,'data':_0x753f15,'createdAt':new Date(),'authorId':_0x42fc98,'attributes':_0x4f9296});for(const _0xc87f3f of _0x9b904e)this[_0x16f5('0x74')](_0x35cf33,_0x416762,_0x42fc98,_0xc87f3f,_0x2160f9['getMultiRangeId']());return _0x1734a9;}['markDeletion'](_0x5919e9,_0xc01408=null,_0x3d71c0={}){if(_0x5919e9[_0x16f5('0x8d')])return null;const _0xe7aefc=this[_0x16f5('0x27')][_0x16f5('0x77')]['get'](_0x16f5('0x18'))['me'],_0x22efcb=new _0x4110f1(_0x5919e9[_0x16f5('0x61')],_0x5919e9[_0x16f5('0xcd')]);for(const {suggestion:_0x232f7e,meta:_0x4fdf42}of this[_0x16f5('0x9f')](_0x22efcb,'insertion'))if(_0x4fdf42['isOwn']&&!_0x4fdf42['isNextTo']){if(_0x232f7e[_0x16f5('0xbd')]){const _0xed9825=_0x232f7e['getRanges']()[_0x16f5('0x88')](_0x2c15bb=>_0x16f5('0xb1')!=_0x2c15bb[_0x16f5('0x6f')][_0x16f5('0xa9')]);_0xed9825[_0x16f5('0x23')](_0x5e55c2=>_0x22efcb['containsRange'](_0x5e55c2,!0x0))&&_0x232f7e[_0x16f5('0x161')]();if(_0xed9825['some'](_0x9d3db7=>_0x9d3db7[_0x16f5('0x12f')](_0x22efcb,!0x0))){const _0x56fbe6=this[_0x16f5('0x24')][_0x16f5('0x13c')](_0x16f5('0xf7'),_0xc01408,_0x16f5('0x110'));return this[_0x16f5('0x107')](()=>_0x56fbe6([_0x22efcb],null,_0x3d71c0)),null;}}else{const _0x2fe166=_0x22efcb['getIntersection'](_0x232f7e['getFirstRange']());null!==_0x2fe166&&_0x232f7e[_0x16f5('0xd1')]([_0x2fe166],null,_0x3d71c0);}}if(_0x22efcb[_0x16f5('0x45')](),_0x22efcb[_0x16f5('0x8d')]||_0x16f5('0xb1')==_0x22efcb['root'][_0x16f5('0xa9')])return null;let _0x599198=null,_0x44c64c=_0x22efcb[_0x16f5('0x61')],_0x2a301a=_0x22efcb['end'];const _0x1c4436=this[_0x16f5('0x9f')](_0x22efcb,_0x16f5('0xf7'));for(const {suggestion:_0x98f097,meta:_0x581f91}of _0x1c4436){const _0x286c28=this[_0x16f5('0x47')][_0x16f5('0x4a')](_0x44c64c,_0x2a301a);if(_0x581f91['isOwn']&&(this[_0x16f5('0xf0')]||!_0x581f91['containsRangeInObject']&&!_0x581f91[_0x16f5('0x17e')])){if(_0x98f097['isMultiRange']){if(!Pt(_0x98f097,_0x3d71c0))continue;let _0x477a9c=!0x0;for(const _0x4148e2 of _0x98f097['getRanges']()){if(_0x4148e2[_0x16f5('0x12f')](_0x286c28,!0x0))return _0x98f097;_0x286c28['containsRange'](_0x4148e2)||(_0x477a9c=!0x1);}_0x477a9c&&_0x98f097[_0x16f5('0x161')]();}else{const _0x10789e=_0x98f097['getFirstRange']();if(_0x10789e['containsRange'](_0x286c28,!0x0))return _0x98f097;if(!Pt(_0x98f097,_0x3d71c0)){_0x286c28[_0x16f5('0x12f')](_0x10789e)?_0x98f097[_0x16f5('0x4f')]():_0x10789e['containsPosition'](_0x44c64c)?_0x44c64c=_0x10789e['end']:_0x10789e[_0x16f5('0x51')](_0x2a301a)&&(_0x2a301a=_0x10789e[_0x16f5('0x61')]);continue;}_0x44c64c=_0x44c64c[_0x16f5('0x112')](_0x10789e['start'])?_0x44c64c:_0x10789e[_0x16f5('0x61')],_0x2a301a=_0x2a301a[_0x16f5('0x98')](_0x10789e['end'])?_0x2a301a:_0x10789e[_0x16f5('0xcd')],_0x3d71c0=Object[_0x16f5('0x82')]({},_0x98f097[_0x16f5('0x16d')]),_0x599198?_0x10789e['start'][_0x16f5('0x112')](_0x599198[_0x16f5('0x156')]()['start'])?(_0x599198[_0x16f5('0x4f')](),_0x599198=_0x98f097):_0x98f097['removeMarkers']():_0x599198=_0x98f097;}}}if(_0x599198)return this[_0x16f5('0xc3')](_0x599198,this[_0x16f5('0x47')][_0x16f5('0x4a')](_0x44c64c,_0x2a301a)),_0x599198;{const _0x4894c9=_0x3ea536(),_0x468c2b=this[_0x16f5('0x47')]['createRange'](_0x44c64c,_0x2a301a),_0x9b2ee4=_0xe7aefc['id'],_0x47b71e=_0xc01408?_0x16f5('0x154')+_0xc01408:_0x16f5('0xf7'),_0x59065f=this['_setSuggestionData']({'id':_0x4894c9,'type':_0x47b71e,'createdAt':new Date(),'authorId':_0x9b2ee4,'attributes':_0x3d71c0});return this[_0x16f5('0x74')](_0x47b71e,_0x4894c9,_0x9b2ee4,_0x468c2b),_0x59065f;}}[_0x16f5('0x125')](_0x2c8449,_0x10d626=_0x16f5('0x136'),_0x46f7cd={}){const _0x1a02a7=this[_0x16f5('0x27')]['plugins']['get']('Users')['me'],_0x29c614=_0x2c8449[_0x16f5('0x177')](_0x11adce=>new _0x4110f1(_0x11adce[_0x16f5('0x61')],_0x11adce['end'])),_0x290cd5=new Set();for(const {suggestion:_0x46af28,meta:_0x51387c}of this[_0x16f5('0x9f')](_0x29c614,_0x16f5('0xc7')))_0x51387c['isOwn']&&!_0x51387c[_0x16f5('0x166')]&&_0x290cd5[_0x16f5('0xc9')](_0x46af28);for(const _0x469a8d of _0x290cd5)if(_0x469a8d['isMultiRange']){const _0x32b3b8=_0x469a8d[_0x16f5('0xc5')]();(!_0x469a8d[_0x16f5('0x16d')]||!_0x469a8d[_0x16f5('0x16d')]['skipNestingCheck'])&&(_0x32b3b8[_0x16f5('0x23')](_0x5a4089=>_0x29c614['some'](_0x1946f6=>_0x1946f6[_0x16f5('0x12f')](_0x5a4089,!0x0)))&&_0x469a8d[_0x16f5('0x161')]());if(_0x29c614[_0x16f5('0x23')](_0x409836=>_0x32b3b8[_0x16f5('0x39')](_0x4a2d12=>_0x4a2d12[_0x16f5('0x12f')](_0x409836,!0x0)))){const _0x17fdab=this[_0x16f5('0x24')]['getSuggestionCallback'](_0x16f5('0xf7'),_0x10d626,_0x16f5('0x110'));return this['forceDefaultExecution'](()=>_0x17fdab(_0x2c8449,null,_0x46f7cd)),null;}}else{const _0xdef2cc=_0x469a8d[_0x16f5('0x156')]();_0x29c614[_0x16f5('0x39')](_0x543625=>_0x543625['containsRange'](_0xdef2cc,!0x0))&&_0x469a8d['discard']();if(_0x29c614[_0x16f5('0x23')](_0x128876=>_0xdef2cc[_0x16f5('0x12f')](_0x128876,!0x0))){const _0x3ca186=this[_0x16f5('0x24')][_0x16f5('0x13c')](_0x16f5('0xf7'),_0x10d626,_0x16f5('0x110'));return this['forceDefaultExecution'](()=>_0x3ca186(_0x29c614,null,_0x46f7cd)),null;}}const _0x2cfaa0=this['_suggestionFactory'][_0x16f5('0x13c')](_0x16f5('0xf7'),_0x10d626,_0x16f5('0xef'));let _0x519eca=null;for(const _0x1cc416 of this[_0x16f5('0x14')]())if(_0x1cc416[_0x16f5('0x17a')]['id']==_0x1a02a7['id']&&_0x1cc416['isInContent']&&_0x16f5('0xf7')==_0x1cc416[_0x16f5('0x56')]&&_0x1cc416[_0x16f5('0xbc')]==_0x10d626&&Pt(_0x1cc416,_0x46f7cd)&&(_0x2cfaa0(_0x1cc416[_0x16f5('0xc5')](),_0x29c614)||_0x2cfaa0(_0x29c614,_0x1cc416['getRanges']()))){if(_0x519eca){if(_0x1cc416[_0x16f5('0x135')]&&_0x1cc416['commentThread'][_0x16f5('0x146')])continue;for(const _0x437ef2 of _0x1cc416[_0x16f5('0xc5')]())_0x519eca[_0x16f5('0xf1')](_0x437ef2)||_0x519eca[_0x16f5('0x54')](_0x437ef2);_0x1cc416[_0x16f5('0x4f')]();}else{_0x519eca=_0x1cc416;for(const _0xff60a8 of _0x29c614)_0x1cc416[_0x16f5('0xf1')](_0xff60a8)||_0x1cc416[_0x16f5('0x54')](_0xff60a8);}}if(_0x519eca)return _0x519eca;_0x290cd5[_0x16f5('0x13f')]();for(const {suggestion:_0x44bf48,meta:_0x12bf20}of this[_0x16f5('0x9f')](_0x29c614,_0x16f5('0xf7')))_0x12bf20[_0x16f5('0x3d')]&&(this[_0x16f5('0xf0')]||!_0x12bf20['containsRangeInObject']&&!_0x12bf20['isInsideObject'])&&Pt(_0x44bf48,_0x46f7cd)&&_0x290cd5[_0x16f5('0xc9')](_0x44bf48);for(const _0x30307f of _0x290cd5){const _0x1aa16b=_0x30307f[_0x16f5('0xc5')]();if(!_0x46f7cd||!_0x46f7cd[_0x16f5('0x13a')]){if(_0x29c614['every'](_0x3a444e=>_0x1aa16b['some'](_0x95dd12=>_0x95dd12[_0x16f5('0x12f')](_0x3a444e,!0x0))))return _0x30307f;}(!_0x30307f[_0x16f5('0x16d')]||!_0x30307f['attributes'][_0x16f5('0x13a')])&&(_0x1aa16b[_0x16f5('0x23')](_0x343b7c=>_0x29c614[_0x16f5('0x39')](_0x3d1746=>_0x3d1746['containsRange'](_0x343b7c,!0x0)))&&_0x30307f[_0x16f5('0x161')]());}const _0x4788a4=_0x3ea536(),_0x52aa37=_0x1a02a7['id'],_0x37e571=_0x16f5('0x154')+_0x10d626,_0x4d371d=this[_0x16f5('0x133')]({'id':_0x4788a4,'type':_0x37e571,'createdAt':new Date(),'authorId':_0x52aa37,'attributes':_0x46f7cd});for(const _0x265bcb of _0x29c614)_0x265bcb[_0x16f5('0x45')](),_0x265bcb[_0x16f5('0x8d')]||_0x16f5('0xb1')==_0x265bcb[_0x16f5('0x6f')][_0x16f5('0xa9')]||this[_0x16f5('0x74')](_0x37e571,_0x4788a4,_0x52aa37,_0x265bcb,_0x2160f9[_0x16f5('0x171')]());return _0x4d371d;}[_0x16f5('0x96')](_0x226f40,_0x4ddd28,_0x3d905b,_0x3a5190,_0x1ee36a){if(_0x226f40[_0x16f5('0x8d')])return[];if(_0x16f5('0x7a')===this[_0x16f5('0xcf')])return[];const _0x53210f=this[_0x16f5('0x27')][_0x16f5('0x77')][_0x16f5('0xe5')](_0x16f5('0x18'))['me']['id'],_0x4543d1=Array[_0x16f5('0x9e')](this[_0x16f5('0x15e')]['values']())['filter'](_0x5147a0=>'attribute'==_0x5147a0[_0x16f5('0x56')]&&_0x5147a0[_0x16f5('0x108')][_0x16f5('0xf6')]==_0x4ddd28&&_0x5147a0[_0x16f5('0xf1')](_0x226f40));if(_0x16f5('0x21')===this[_0x16f5('0xcf')]){const _0xe4d905=this['_findSuggestions'](_0x226f40,'insertion')[_0x16f5('0x88')](({meta:_0xefdb35})=>_0xefdb35[_0x16f5('0x3d')]&&!_0xefdb35[_0x16f5('0x17e')]&&!_0xefdb35[_0x16f5('0x166')])[_0x16f5('0x177')](({suggestion:_0x396fb9})=>_0x396fb9);_0x4543d1[_0x16f5('0x62')](..._0xe4d905);}const _0x398234=new Map([[_0x226f40,_0x3d905b]]);for(const _0x9bc5f0 of _0x4543d1){const _0x5877f3=_0x16f5('0xdc')==_0x9bc5f0[_0x16f5('0x56')]?_0x9bc5f0[_0x16f5('0x108')][_0x16f5('0x5')]:void 0x0,_0x3e2da9=_0x9bc5f0[_0x16f5('0x156')](),_0x260345=Array[_0x16f5('0x9e')](_0x398234['keys']())[_0x16f5('0x160')](_0x2a77d8=>_0x2a77d8[_0x16f5('0xb9')](_0x3e2da9));if(!_0x260345)continue;const _0x5213fa=_0x260345[_0x16f5('0xc0')](_0x3e2da9);this['_isBlockAttribute'](_0x4ddd28)&&_0x16f5('0xc7')==_0x9bc5f0[_0x16f5('0x56')]&&0x0!=_0x5213fa[_0x16f5('0x146')]||(_0x398234['delete'](_0x260345),_0x5213fa[_0x16f5('0x10e')](_0x322404=>{_0x398234[_0x16f5('0x123')](_0x322404,_0x3d905b);}),_0x16f5('0xc7')!=_0x9bc5f0[_0x16f5('0x56')]&&_0x5877f3!=_0x3a5190&&_0x398234[_0x16f5('0x123')](_0x260345[_0x16f5('0xd5')](_0x3e2da9),_0x5877f3));}const _0xe64d7d=[];for(const [_0x4f2b5f,_0x578acb]of _0x398234){const _0x32daae=_0x3ea536(),_0x4ce870={'key':_0x4ddd28,'oldValue':_0x578acb,'newValue':_0x3a5190};_0x4ddd28[_0x16f5('0x146')]>0x25&&console[_0x16f5('0xa4')](_0x16f5('0x38'),{'key':_0x4ddd28});const _0x4eb3f8=(_0x16f5('0x103')+(_0x4ddd28+'|'+Et({'newValue':_0x3a5190})))[_0x16f5('0x75')](0x0,0x3c),_0x13cf3c=this[_0x16f5('0x133')]({'id':_0x32daae,'type':_0x4eb3f8,'data':_0x4ce870,'createdAt':new Date(),'authorId':_0x53210f,'attributes':_0x1ee36a});_0xe64d7d[_0x16f5('0x140')](_0x13cf3c),this[_0x16f5('0x74')](_0x4eb3f8,_0x32daae,_0x53210f,_0x4f2b5f);}return _0xe64d7d;}['_registerBlockAttribute'](_0x7a96fc){this['_blockAttributeKeys'][_0x16f5('0xc9')](_0x7a96fc);}[_0x16f5('0x9')](_0x417aea){this[_0x16f5('0x8')]['add'](_0x417aea);}[_0x16f5('0xe4')](_0xb34598,_0xd614ef=[],_0x36663d=[]){this[_0x16f5('0x130')](_0xb34598,(_0x51c38c,..._0x566e72)=>{this[_0x16f5('0x15c')](()=>{_0x51c38c(..._0x566e72);});});for(const _0x15802b of _0xd614ef)this[_0x16f5('0x9')](_0x15802b);for(const _0x7c716b of _0x36663d)this[_0x16f5('0x10b')](_0x7c716b);}[_0x16f5('0xc2')](_0x492859){return'attribute'==_0x492859[_0x16f5('0x56')]?_0x492859[_0x16f5('0xbc')][_0x16f5('0x15d')]('|')[0x0]:null;}[_0x16f5('0xc3')](_0x209e2b,_0x5e3578){const _0x61a46a=_0x209e2b[_0x16f5('0xeb')]();this[_0x16f5('0x47')]['change'](_0x488fdf=>{_0x488fdf['updateMarker'](_0x61a46a,{'range':_0x5e3578});});}[_0x16f5('0x168')](_0x409f1e){const _0x37e2e2=_0x409f1e['id'],_0x1f5b8b=this[_0x16f5('0x27')]['config']['get']('collaboration.channelId');this[_0x16f5('0x32')][_0x16f5('0x5a')](_0x37e2e2)||this['_commentsRepository'][_0x16f5('0x176')]({'channelId':_0x1f5b8b,'threadId':_0x37e2e2,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2ac09f=this[_0x16f5('0x32')][_0x16f5('0x2b')](_0x37e2e2);_0x2ac09f[_0x16f5('0x60')](_0x16f5('0x152')),_0x2ac09f['isRemovable']=!0x1,_0x409f1e[_0x16f5('0x135')]=_0x2ac09f;}['_checkSuggestionCorrectness'](_0x1fb09d,_0x3d7f8b,_0x974a08,_0x553e7e){if(_0x1fb09d['type']!=_0x3d7f8b||_0x1fb09d[_0x16f5('0xbc')]!=_0x974a08||_0x1fb09d[_0x16f5('0xba')]['id']!=_0x553e7e)throw this[_0x16f5('0x27')]['enableReadOnlyMode'](_0x16f5('0x6e')),new _0x37ee43(_0x16f5('0x6e'),this);}[_0x16f5('0x6')](_0x3104e5,_0x581a88){const _0x45e0fe=_0x3104e5[_0x16f5('0x156')]();if(_0x581a88[_0x16f5('0xb5')](_0x45e0fe))_0x3104e5[_0x16f5('0x4f')]();else{if(_0x45e0fe[_0x16f5('0x12f')](_0x581a88)){const _0x30b8d8=this['_model']['createPositionAt'](_0x581a88[_0x16f5('0x61')][_0x16f5('0x87')],_0x16f5('0xcd'));this[_0x16f5('0xc3')](_0x3104e5,this[_0x16f5('0x47')][_0x16f5('0x4a')](_0x45e0fe[_0x16f5('0x61')],_0x30b8d8));const _0xad3daa=_0x3ea536(),_0x5c94cd=_0x3104e5['creator']['id'],_0x4d33b7=_0x3104e5[_0x16f5('0x56')]+':'+_0x3104e5[_0x16f5('0xbc')];this['_setSuggestionData']({'id':_0xad3daa,'type':_0x4d33b7,'createdAt':new Date(),'authorId':_0x5c94cd,'data':_0x3104e5[_0x16f5('0x108')],'attributes':_0x3104e5[_0x16f5('0x16d')]});const _0x18681b=this[_0x16f5('0x47')][_0x16f5('0xcb')](_0x581a88['end'][_0x16f5('0x131')],_0x16f5('0xd0')),_0x57d392=this[_0x16f5('0x47')][_0x16f5('0x4a')](_0x18681b,_0x45e0fe[_0x16f5('0xcd')]);this[_0x16f5('0x74')](_0x4d33b7,_0xad3daa,_0x5c94cd,_0x57d392);}else{if(_0x45e0fe['containsPosition'](_0x581a88[_0x16f5('0x61')])){const _0x419b16=this[_0x16f5('0x47')]['createPositionAt'](_0x581a88[_0x16f5('0x61')][_0x16f5('0x87')],'end');this['_setSuggestionRange'](_0x3104e5,this[_0x16f5('0x47')][_0x16f5('0x4a')](_0x45e0fe[_0x16f5('0x61')],_0x419b16));}else{const _0x14782b=this['_model'][_0x16f5('0xcb')](_0x581a88[_0x16f5('0xcd')][_0x16f5('0x131')],_0x16f5('0xd0'));this[_0x16f5('0xc3')](_0x3104e5,this[_0x16f5('0x47')][_0x16f5('0x4a')](_0x14782b,_0x45e0fe[_0x16f5('0xcd')]));}}}}[_0x16f5('0x4')](_0x2c6ca7){for(const {suggestion:_0x426b30,meta:_0x3e53ac}of this['_findSuggestions'](_0x2c6ca7,_0x16f5('0xc7'))){if(!_0x3e53ac[_0x16f5('0x3d')])continue;const _0x54f7d9=_0x426b30[_0x16f5('0xc5')]();for(const _0x7756a7 of _0x54f7d9)if(!_0x2c6ca7['getDifference'](_0x7756a7)[_0x16f5('0x146')])return!0x0;}return!0x1;}[_0x16f5('0x44')](_0x134528){const _0x56e02a=this['editor']['plugins'][_0x16f5('0xe5')](_0x16f5('0x18'))['getUser'](_0x134528);if(!_0x56e02a)throw new _0x37ee43(_0x16f5('0x5b'),this);return _0x56e02a;}[_0x16f5('0x114')](_0x24d984){const _0x5434ce=this[_0x16f5('0x27')][_0x16f5('0x77')][_0x16f5('0xe5')](_0x16f5('0x18')),_0x4ca3f3=_0x4331a1(_0x16f5('0x3a')+_0x24d984),_0x4436cc=_0x5434ce['getUser'](_0x4ca3f3);return _0x4436cc||_0x5434ce[_0x16f5('0x1f')]({'id':_0x4ca3f3,'name':_0x24d984});}[_0x16f5('0x3e')](_0x980521,_0x5c5aa4,_0x592cb0,_0x4ef632,_0x374834){const _0x27876a=this[_0x16f5('0x44')](_0x4ef632),_0x2401f9=this['_suggestionFactory'][_0x16f5('0x105')](_0x980521,_0x5c5aa4,_0x592cb0,_0x27876a,_0x374834,_0x20cf6d=>{this[_0x16f5('0xee')](_0x592cb0,{'attributes':_0x20cf6d});const _0x528234=this[_0x16f5('0x8e')](_0x592cb0);this[_0x16f5('0x8f')](new Set([_0x528234])),this[_0x16f5('0xff')](new Set([_0x528234]));});return this[_0x16f5('0x14e')](_0x2401f9,_0x16f5('0x110'),()=>{this[_0x16f5('0xee')](_0x592cb0,{'state':_0x16f5('0xaf')});},{'priority':_0x16f5('0x17b')}),this[_0x16f5('0x14e')](_0x2401f9,_0x16f5('0x161'),()=>{this[_0x16f5('0xee')](_0x592cb0,{'state':_0x16f5('0x100')});},{'priority':_0x16f5('0x17b')}),this[_0x16f5('0x15e')][_0x16f5('0x123')](_0x592cb0,_0x2401f9),this[_0x16f5('0x22')][_0x16f5('0x123')](_0x2401f9,_0x16f5('0x72')),_0x2401f9;}['_splitMarkerName'](_0x411999){const _0x149edd=_0x411999['split'](':');return{'group':_0x149edd[0x0],'type':_0x149edd[0x1],'subType':_0x149edd['length']>=0x5?_0x149edd[0x2]:null,'id':_0x149edd['length']<0x5?_0x149edd[0x2]:_0x149edd[0x3],'authorId':_0x149edd[_0x16f5('0x146')]<0x5?_0x149edd[0x3]:_0x149edd[0x4],'markerCount':0x6==_0x149edd['length']?_0x149edd[0x5]:null};}['_breakSuggestionMarker'](_0x35a51b,_0x329c7b,_0x3bc5cf){const _0x844cee=_0x35a51b[_0x16f5('0x156')](),_0xfa241e=_0x844cee['start'],_0x3d8f2d=_0x844cee[_0x16f5('0xcd')];this[_0x16f5('0xc3')](_0x35a51b,this[_0x16f5('0x47')][_0x16f5('0x4a')](_0xfa241e,_0x329c7b));const _0x5e16c1=_0x3ea536(),_0x557d1b=_0x35a51b[_0x16f5('0xba')]['id'],_0x2a895d=_0x35a51b['type']+(_0x35a51b[_0x16f5('0xbc')]?':'+_0x35a51b[_0x16f5('0xbc')]:'');this[_0x16f5('0x133')]({'id':_0x5e16c1,'type':_0x2a895d,'createdAt':new Date(),'authorId':_0x557d1b,'originalSuggestionId':_0x35a51b['id'],'attributes':_0x35a51b['attributes'],'data':_0x35a51b[_0x16f5('0x108')]});const _0xb26f22=this[_0x16f5('0xc2')](_0x35a51b);(_0x16f5('0xdb')==_0x35a51b[_0x16f5('0x56')]||_0xb26f22&&this[_0x16f5('0x20')](_0xb26f22))&&(_0x3bc5cf=this[_0x16f5('0x47')][_0x16f5('0x8a')](_0x3bc5cf[_0x16f5('0x131')])),this[_0x16f5('0x74')](_0x2a895d,_0x5e16c1,_0x557d1b,this[_0x16f5('0x47')]['createRange'](_0x3bc5cf,_0x3d8f2d));}[_0x16f5('0x9f')](_0x32c644,_0x2c13b2=null){const _0x51d647=[],_0x288ef7=this[_0x16f5('0x27')][_0x16f5('0x77')][_0x16f5('0xe5')](_0x16f5('0x18'))['me'];Array[_0x16f5('0x104')](_0x32c644)||(_0x32c644=[_0x32c644]);for(const _0x317ec5 of this['getSuggestions']()){if(!_0x317ec5[_0x16f5('0x128')])continue;if(_0x2c13b2&&_0x317ec5['type']!=_0x2c13b2)continue;let _0x844bf2=!0x1;for(const _0x24b759 of _0x317ec5['getRanges']()){for(const _0x50b88d of _0x32c644){const _0x2aef48=_0x50b88d[_0x16f5('0x61')][_0x16f5('0xb5')](_0x24b759[_0x16f5('0xcd')])||_0x50b88d[_0x16f5('0xcd')][_0x16f5('0xb5')](_0x24b759[_0x16f5('0x61')]);if(_0x2aef48||_0x50b88d['getIntersection'](_0x24b759)){const _0x27bda0=_0x50b88d['containsRange'](_0x24b759)&&xt(this[_0x16f5('0x47')][_0x16f5('0x16c')],_0x24b759[_0x16f5('0x61')],_0x50b88d),_0x22a38a=_0x24b759[_0x16f5('0x12f')](_0x50b88d)&&xt(this['_model'][_0x16f5('0x16c')],_0x50b88d[_0x16f5('0x61')],_0x24b759);_0x51d647[_0x16f5('0x140')]({'suggestion':_0x317ec5,'meta':{'isOwn':_0x288ef7==_0x317ec5[_0x16f5('0x17a')],'isNextTo':_0x2aef48,'isInsideObject':_0x27bda0,'containsRangeInObject':_0x22a38a}}),_0x844bf2=!0x0;break;}}if(_0x844bf2)break;}}return _0x51d647;}[_0x16f5('0x74')](_0x1a8f00,_0x56a836,_0x4d5437,_0x46a976,_0x52d0a5){this[_0x16f5('0x47')][_0x16f5('0x172')](_0x1c2968=>{let _0xf06308=_0x16f5('0xb4')+_0x1a8f00+':'+_0x56a836+':'+_0x4d5437;_0x52d0a5&&(_0xf06308=_0xf06308+':'+_0x52d0a5),_0x1c2968[_0x16f5('0xe7')](_0xf06308,{'range':_0x46a976,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x16f5('0xad')](_0x4bab36){const _0x1528ad=_0x4bab36[_0x16f5('0x37')],_0x34bfd3=_0x4bab36[_0x16f5('0x68')];_0x4bab36[_0x16f5('0x37')]=null,_0x4bab36[_0x16f5('0x68')]=null,null!=_0x1528ad&&(_0x1528ad['next']=_0x34bfd3),null!=_0x34bfd3&&(_0x34bfd3[_0x16f5('0x37')]=_0x1528ad),_0x16f5('0xa1')==this[_0x16f5('0x22')][_0x16f5('0xe5')](_0x4bab36)&&(this['_suggestionState'][_0x16f5('0x123')](_0x4bab36,'removed'),this[_0x16f5('0x159')](_0x16f5('0xe'),_0x4bab36,_0x1528ad,_0x34bfd3));}[_0x16f5('0x133')](_0x26a03e){const _0x5d95e8=_0x26a03e['id'],_0x330d54=this[_0x16f5('0x11b')](_0x26a03e);if(this[_0x16f5('0xbb')]&&this[_0x16f5('0xbb')]['addSuggestion']){const _0x4f1e27=this[_0x16f5('0x27')][_0x16f5('0x77')]['get'](_0x16f5('0xd2')),_0x11090b=_0x330d54[_0x16f5('0x11')],_0x4a941c=_0x330d54['subType']?_0x330d54[_0x16f5('0x56')]+':'+_0x330d54[_0x16f5('0xbc')]:_0x330d54['type'],_0x28a999=this[_0x16f5('0x27')][_0x16f5('0x83')],_0x4c2b30=_0x4f1e27[_0x16f5('0xc9')](_0x13ea0f(_0x28a999,_0x16f5('0xf3'))),_0x481544={'id':_0x5d95e8,'type':_0x4a941c,'hasComments':_0x11090b,'data':_0x26a03e['data']||null,'originalSuggestionId':_0x26a03e['originalSuggestionId']||null,'attributes':_0x330d54[_0x16f5('0x16d')]};this['_adapter'][_0x16f5('0xa6')](_0x481544)[_0x16f5('0x102')](_0x12d943=>{_0x330d54[_0x16f5('0x151')]=!0x0,_0x4f1e27[_0x16f5('0x26')](_0x4c2b30),_0x12d943&&_0x12d943['createdAt']&&(this['_suggestions'][_0x16f5('0xe5')](_0x5d95e8)['createdAt']=_0x12d943[_0x16f5('0x89')]);})['catch'](_0x3ebfe0=>{throw _0x32f996('error-saving-suggestion-data-suggestion-discarded'),this[_0x16f5('0x27')]['model'][_0x16f5('0x170')]({'isUndoable':!0x1},()=>{_0x330d54[_0x16f5('0x161')]();}),_0x330d54['stopListening'](),this[_0x16f5('0x15e')][_0x16f5('0x17f')](_0x330d54['id']),this[_0x16f5('0x22')]['delete'](_0x330d54),_0x3ebfe0;});}return _0x330d54;}[_0x16f5('0x20')](_0x257a7f){return this[_0x16f5('0xe9')][_0x16f5('0x11e')](_0x257a7f);}[_0x16f5('0xee')](_0x22236b,_0x28eb6f){const _0x9acd70=this[_0x16f5('0x27')][_0x16f5('0x77')][_0x16f5('0xe5')](_0x16f5('0xd2')),_0x29c1c2=this[_0x16f5('0x8e')](_0x22236b);if(this[_0x16f5('0xbb')]&&this[_0x16f5('0xbb')]['updateSuggestion']){if(_0x29c1c2[_0x16f5('0x151')]){const _0x1610eb=_0x9acd70['add'](_0x13ea0f(this['editor'][_0x16f5('0x83')],_0x16f5('0xf3')));this['_adapter'][_0x16f5('0x28')](_0x22236b,_0x28eb6f)[_0x16f5('0x102')](()=>{_0x9acd70[_0x16f5('0x26')](_0x1610eb);});}else _0x29c1c2['on']('change:_saved',()=>{this[_0x16f5('0xee')](_0x22236b,_0x28eb6f);});}}[_0x16f5('0x6d')](_0x24d0b0){if(!this[_0x16f5('0xbb')]||!this[_0x16f5('0xbb')][_0x16f5('0x8e')])throw new _0x37ee43(_0x16f5('0x14c'),this);return this[_0x16f5('0xbb')]['getSuggestion'](_0x24d0b0);}[_0x16f5('0x124')](_0x474ffd){const {id:_0x3ef171,type:_0x17e8b6,subType:_0x172b36,authorId:_0x522f65}=this[_0x16f5('0x15')](_0x474ffd),_0x3bd700=this[_0x16f5('0x15e')]['get'](_0x3ef171)||this['_createSuggestion'](_0x17e8b6,_0x172b36,_0x3ef171,_0x522f65,{});switch(this['_checkSuggestionCorrectness'](_0x3bd700,_0x17e8b6,_0x172b36,_0x522f65),this['_suggestionState'][_0x16f5('0xe5')](_0x3bd700)){case _0x16f5('0x72'):this['_getSuggestionData'](_0x3ef171)['then'](_0x299e18=>{let _0x30f218=Promise[_0x16f5('0x3f')]();_0x299e18[_0x16f5('0x11')]&&(_0x30f218=this[_0x16f5('0x32')][_0x16f5('0xc1')]({'channelId':this[_0x16f5('0x27')][_0x16f5('0x76')][_0x16f5('0xe5')]('collaboration.channelId'),'threadId':_0x3ef171})),_0x30f218['then'](()=>{this['addSuggestionData'](_0x299e18)['_saved']=!0x0;});}),this[_0x16f5('0x22')][_0x16f5('0x123')](_0x3bd700,_0x16f5('0x49'));break;case _0x16f5('0x106'):this[_0x16f5('0xee')](_0x3ef171,{'state':_0x16f5('0x15a')});case _0x16f5('0xb6'):this['_suggestionState'][_0x16f5('0x123')](_0x3bd700,_0x16f5('0xa1')),this[_0x16f5('0x159')](_0x16f5('0x95'),_0x3bd700);break;case _0x16f5('0xa1'):this[_0x16f5('0x159')](_0x16f5('0xce'),_0x3bd700);}return _0x3bd700['addMarkerName'](_0x474ffd),_0x3bd700;}[_0x16f5('0xff')](_0x24b410){const _0x372dbb=Array[_0x16f5('0x9e')](_0x24b410),_0x2fac61=_0x372dbb[_0x16f5('0x88')](_0x3d0ae3=>_0x16f5('0xdc')==_0x3d0ae3[_0x16f5('0x56')]);this['_refreshAttributeSuggestionsChain'](_0x2fac61);const _0x32164d=_0x372dbb[_0x16f5('0x88')](_0x4a13f8=>!_0x4a13f8['isMultiRange']&&'attribute'!=_0x4a13f8[_0x16f5('0x56')]),_0x456309=this['getSuggestions']({'skipNotAttached':!0x0})[_0x16f5('0x88')](_0x153545=>!_0x153545[_0x16f5('0xbd')]&&_0x16f5('0xdc')!=_0x153545[_0x16f5('0x56')]),_0x25409c=_0x456309[_0x16f5('0x88')](_0x235476=>!_0x24b410[_0x16f5('0x11e')](_0x235476)),_0x335f66=new Map(_0x456309[_0x16f5('0x177')](_0x16ec60=>[_0x16ec60,this[_0x16f5('0x24')][_0x16f5('0x13c')](_0x16ec60[_0x16f5('0x56')],_0x16ec60[_0x16f5('0xbc')],_0x16f5('0x97'))])),_0x30c288=new Map(_0x456309[_0x16f5('0x177')](_0x153df4=>[_0x153df4,_0x153df4[_0x16f5('0x156')]()])),_0x4d3e53=new Set(),_0x5379ef=new Set();for(let _0xd143e4=0x0;_0xd143e4<_0x32164d[_0x16f5('0x146')];_0xd143e4++)_0x4e74c9(_0x32164d[_0xd143e4],_0x32164d,_0xd143e4+0x1);for(let _0x8ef583=0x0;_0x8ef583<_0x32164d[_0x16f5('0x146')];_0x8ef583++)_0x4e74c9(_0x32164d[_0x8ef583],_0x25409c,0x0);const _0x27073a=new Set();for(let _0x44793f=0x0;_0x44793f<_0x32164d['length'];_0x44793f++){const _0x37b986=_0x32164d[_0x44793f];!_0x5379ef[_0x16f5('0x11e')](_0x37b986)&&_0x37b986[_0x16f5('0x37')]&&(_0x27073a['add'](_0x37b986[_0x16f5('0x37')]),_0x37b986[_0x16f5('0x37')][_0x16f5('0x68')]===_0x37b986&&(_0x37b986[_0x16f5('0x37')][_0x16f5('0x68')]=null),_0x37b986[_0x16f5('0x37')]=null),!_0x4d3e53['has'](_0x37b986)&&_0x37b986['next']&&(_0x27073a['add'](_0x37b986[_0x16f5('0x68')]),_0x37b986[_0x16f5('0x68')][_0x16f5('0x37')]===_0x37b986&&(_0x37b986[_0x16f5('0x68')][_0x16f5('0x37')]=null),_0x37b986[_0x16f5('0x68')]=null);}function _0x4e74c9(_0x2a4a93,_0x33381b,_0xbc6456){for(let _0x4586ae=_0xbc6456;_0x4586ae<_0x33381b[_0x16f5('0x146')];_0x4586ae++){const _0xfbc27f=_0x1ae5ed(_0x2a4a93,_0x33381b[_0x4586ae]);_0xfbc27f&&(_0xfbc27f[0x0][_0x16f5('0x68')]=_0xfbc27f[0x1],_0xfbc27f[0x1]['previous']=_0xfbc27f[0x0],_0x4d3e53[_0x16f5('0xc9')](_0xfbc27f[0x0]),_0x5379ef[_0x16f5('0xc9')](_0xfbc27f[0x1]));}}function _0x1ae5ed(_0x5e826e,_0x15e000){if(_0x5e826e[_0x16f5('0x17a')]['id']!==_0x15e000[_0x16f5('0x17a')]['id'])return null;const _0x4117ed=_0x335f66[_0x16f5('0xe5')](_0x5e826e)(_0x5e826e,_0x15e000,_0x30c288[_0x16f5('0xe5')](_0x5e826e),_0x30c288[_0x16f5('0xe5')](_0x15e000));if(!_0x4117ed)return null;return _0x335f66[_0x16f5('0xe5')](_0x15e000)(_0x5e826e,_0x15e000,_0x30c288[_0x16f5('0xe5')](_0x5e826e),_0x30c288['get'](_0x15e000))?_0x4117ed[0x1][_0x16f5('0x135')]&&_0x4117ed[0x1][_0x16f5('0x135')][_0x16f5('0x146')]?null:_0x4117ed:null;}_0x27073a['size']&&this[_0x16f5('0xff')](_0x27073a);}[_0x16f5('0x12')](_0x4c71d9){if(0x0==_0x4c71d9[_0x16f5('0x146')])return;const _0x4af68d=this[_0x16f5('0x14')]({'skipNotAttached':!0x0})['filter'](_0x3622be=>_0x16f5('0xdc')==_0x3622be['type']&&_0x3622be[_0x16f5('0x180')]),_0x17b053=[],_0x2f3223=new Map();for(const _0x5900d4 of _0x4af68d){const _0x133071=_0x4331a1(_0x5900d4[_0x16f5('0x16d')]);_0x2f3223[_0x16f5('0x11e')](_0x133071)||(_0x2f3223[_0x16f5('0x123')](_0x133071,_0x17b053['length']),_0x17b053[_0x16f5('0x140')]([]));const _0x57eee=_0x2f3223[_0x16f5('0xe5')](_0x133071);_0x17b053[_0x57eee][_0x16f5('0x140')](_0x5900d4);}!function(){_0x17b053['sort']((_0x1dbc57,_0xab25cf)=>{const _0x4c1d26=_0x1dbc57[0x0][_0x16f5('0x89')],_0x47ca46=_0xab25cf[0x0][_0x16f5('0x89')];return _0x4c1d26==_0x47ca46?_0x1dbc57[0x0]['attributes'][_0x16f5('0x79')]<_0xab25cf[0x0][_0x16f5('0x16d')][_0x16f5('0x79')]?-0x1:0x1:_0x4c1d26<_0x47ca46?-0x1:0x1;});for(const _0x5f00e6 of _0x17b053)_0x5f00e6[_0x16f5('0x174')]((_0x356380,_0x4cd824)=>_0x356380['id']<_0x4cd824['id']?-0x1:0x1);}();for(let _0x1e294f=0x0;_0x1e294f<_0x17b053[_0x16f5('0x146')];_0x1e294f++){if(0x0==_0x17b053[_0x1e294f][_0x16f5('0x146')])continue;const _0x29ae36=[];for(let _0x3ae8d0=_0x1e294f+0x1;_0x3ae8d0<_0x17b053['length'];_0x3ae8d0++)0x0!=_0x17b053[_0x3ae8d0][_0x16f5('0x146')]&&_0x3c040a(_0x17b053[_0x1e294f],_0x17b053[_0x3ae8d0])&&_0x29ae36[_0x16f5('0x140')](_0x3ae8d0);for(const _0x5f3a37 of _0x29ae36)_0x17b053[_0x1e294f]=_0x17b053[_0x1e294f]['concat'](_0x17b053[_0x5f3a37]),_0x17b053[_0x5f3a37]=[];}for(const _0x3b63d1 of _0x17b053)for(let _0x294654=0x0;_0x294654<_0x3b63d1[_0x16f5('0x146')];_0x294654++)_0x3b63d1[_0x294654][_0x16f5('0x68')]=_0x3b63d1[_0x294654+0x1]||null;for(const _0x51a8fd of _0x17b053)for(let _0x4489bd=0x0;_0x4489bd<_0x51a8fd['length'];_0x4489bd++)_0x51a8fd[_0x4489bd]['previous']=_0x51a8fd[_0x4489bd-0x1]||null;function _0x3c040a(_0x168d02,_0x2dcf19){if(_0x168d02[0x0][_0x16f5('0x16d')][_0x16f5('0x79')]!==_0x2dcf19[0x0][_0x16f5('0x16d')]['groupId']&&_0x168d02[0x0]['author']!==_0x2dcf19[0x0][_0x16f5('0x17a')])return!0x1;if(!function(_0x1b65c5,_0x1e959d){if(!_0x1b65c5[_0x16f5('0x11')]&&!_0x1e959d[_0x16f5('0x11')])return!0x0;if(_0x1b65c5[_0x16f5('0x11')]&&_0x1e959d['hasComments'])return!0x1;if(_0x1b65c5[_0x16f5('0x11')]&&_0x1e959d[_0x16f5('0x89')]<_0x1b65c5[_0x16f5('0x135')][_0x16f5('0xe8')][_0x16f5('0xe5')](0x0)[_0x16f5('0x89')])return!0x0;if(_0x1e959d[_0x16f5('0x11')]&&_0x1b65c5[_0x16f5('0x89')]<_0x1e959d['commentThread'][_0x16f5('0xe8')][_0x16f5('0xe5')](0x0)[_0x16f5('0x89')])return!0x0;return!0x1;}(_0x168d02[0x0],_0x2dcf19[0x0]))return!0x1;const _0x241704=_0x41bede(_0x168d02[0x0][_0x16f5('0x16d')],'groupId'),_0x19cc19=_0x41bede(_0x2dcf19[0x0][_0x16f5('0x16d')],'groupId');if(!_0x5223db(_0x241704,_0x19cc19))return!0x1;return!!_0x168d02[_0x16f5('0x23')](_0x3294ca=>_0x2dcf19[_0x16f5('0x39')](_0x29769c=>_0x3294ca[_0x16f5('0x156')]()[_0x16f5('0xb5')](_0x29769c[_0x16f5('0x156')]())))&&_0x2dcf19[_0x16f5('0x23')](_0x4ec30c=>_0x168d02[_0x16f5('0x39')](_0x1fb8b8=>_0x4ec30c['getFirstRange']()[_0x16f5('0xb5')](_0x1fb8b8[_0x16f5('0x156')]())));}}['_joinWithAdjacentSuggestions'](_0x5805cf){const _0x3d8fa4=Array[_0x16f5('0x9e')](_0x5805cf),_0x812289=this['getSuggestions']({'skipNotAttached':!0x0}),_0x56f7bc=_0x812289[_0x16f5('0x88')](_0x131c42=>!_0x5805cf[_0x16f5('0x11e')](_0x131c42)),_0x53e344=new Map(_0x3d8fa4[_0x16f5('0x177')](_0x5471fa=>[_0x5471fa,this[_0x16f5('0x24')][_0x16f5('0x13c')](_0x5471fa[_0x16f5('0x56')],_0x5471fa['subType'],_0x16f5('0xef'))])),_0x108ecc=new Map(_0x812289['map'](_0x431a3d=>[_0x431a3d,_0x431a3d['getRanges']()]));for(let _0x420941=0x0;_0x420941<_0x3d8fa4[_0x16f5('0x146')];_0x420941++){if(_0x1fc211(this,_0x3d8fa4[_0x420941],_0x3d8fa4,_0x420941+0x1))return!0x0;}for(let _0x2d5f3b=0x0;_0x2d5f3b<_0x3d8fa4[_0x16f5('0x146')];_0x2d5f3b++){if(_0x1fc211(this,_0x3d8fa4[_0x2d5f3b],_0x56f7bc,0x0))return!0x0;}return!0x1;function _0x1fc211(_0x2d991c,_0x343271,_0x220fec,_0x47b2e3){for(let _0xdebac8=_0x47b2e3;_0xdebac8<_0x220fec[_0x16f5('0x146')];_0xdebac8++){const _0x42d9fa=_0x220fec[_0xdebac8];if(_0x42d9fa[_0x16f5('0x56')]!==_0x343271['type']||_0x42d9fa[_0x16f5('0x17a')]['id']!==_0x343271['author']['id']||_0x42d9fa[_0x16f5('0xbc')]!==_0x343271[_0x16f5('0xbc')])continue;if(!Ft(_0x343271,_0x42d9fa,[_0x16f5('0x79')]))continue;if(_0x16f5('0xdc')==_0x343271[_0x16f5('0x56')]&&_0x343271[_0x16f5('0x108')][_0x16f5('0x5')]!=_0x42d9fa[_0x16f5('0x108')][_0x16f5('0x5')])continue;if(_0x16f5('0xdc')==_0x343271[_0x16f5('0x56')]&&_0x2d991c['_isBlockAttribute'](_0x343271[_0x16f5('0x108')][_0x16f5('0xf6')]))continue;if(_0x16f5('0xdb')==_0x343271[_0x16f5('0x56')]){const _0x588bcb=_0x2d991c[_0x16f5('0x27')]['model'],_0x451d11=_0x343271[_0x16f5('0x11a')]();if(_0x451d11&&(_0x588bcb[_0x16f5('0x16c')][_0x16f5('0xa7')](_0x451d11)||_0x588bcb['schema'][_0x16f5('0x2f')](_0x451d11)))continue;}const _0x507b6a=_0x53e344[_0x16f5('0xe5')](_0x343271),_0x2d889c=_0x108ecc['get'](_0x343271),_0x3fdcdc=_0x108ecc[_0x16f5('0xe5')](_0x42d9fa),_0x55407b=_0x343271[_0x16f5('0x135')]&&_0x343271[_0x16f5('0x135')][_0x16f5('0x146')],_0x5265b9=_0x42d9fa[_0x16f5('0x135')]&&_0x42d9fa[_0x16f5('0x135')][_0x16f5('0x146')];if(!_0x55407b&&_0x507b6a(_0x3fdcdc,_0x2d889c))return _0x2d991c[_0x16f5('0xc6')](_0x42d9fa,_0x343271),_0x108ecc[_0x16f5('0x17f')](_0x343271),!0x0;if(!_0x5265b9&&_0x507b6a(_0x2d889c,_0x3fdcdc))return _0x2d991c[_0x16f5('0xc6')](_0x343271,_0x42d9fa),_0x108ecc[_0x16f5('0x17f')](_0x42d9fa),!0x0;}return!0x1;}}[_0x16f5('0xc6')](_0xcf0f18,_0x173ac7){if(_0xcf0f18[_0x16f5('0xbd')])for(const _0x49f978 of _0x173ac7[_0x16f5('0xc5')]())_0xcf0f18['addRange'](_0x49f978);else{const _0x1c671b=_0x173ac7['getFirstRange']()['end'];this[_0x16f5('0xc3')](_0xcf0f18,this[_0x16f5('0x47')][_0x16f5('0x4a')](_0xcf0f18[_0x16f5('0x156')]()[_0x16f5('0x61')],_0x1c671b));}_0x173ac7['removeMarkers']();}[_0x16f5('0x137')](_0x40532a,_0x3ff6e7){const _0x592f59=_0x40532a[_0x16f5('0xfe')]('format')||_0x40532a[_0x16f5('0xfe')](_0x16f5('0xdc'))?'FORMATTING':_0x40532a['toUpperCase']();return _0x13ea0f(this[_0x16f5('0x27')][_0x16f5('0x83')],_0x3ff6e7+'_'+_0x592f59+_0x16f5('0x7e'));}[_0x16f5('0x70')](){const _0x33a1fb=this[_0x16f5('0x27')];_0xafe9cd(this[_0x16f5('0x47')],({left:_0x327ea7,entered:_0x635ef5})=>{const _0x254b0c=[];for(const _0x6d111e of _0x327ea7){const {group:_0x487ca1,type:_0x30de5a}=this[_0x16f5('0x15')](_0x6d111e[_0x16f5('0x81')]);if(_0x16f5('0xa')===_0x487ca1){_0x254b0c[_0x16f5('0x140')](this['_getMarkerAnnouncementText'](_0x30de5a,_0x16f5('0xfd')));break;}}for(const _0x1e4619 of _0x635ef5){const {group:_0x4e5010,type:_0x43b70a}=this[_0x16f5('0x15')](_0x1e4619[_0x16f5('0x81')]);if(_0x16f5('0xa')===_0x4e5010){_0x254b0c[_0x16f5('0x140')](this[_0x16f5('0x137')](_0x43b70a,_0x16f5('0xde')));break;}}_0x254b0c['length']&&_0x33a1fb['ui']['ariaLiveAnnouncer'][_0x16f5('0x35')](_0x16f5('0xb3'),_0x254b0c[_0x16f5('0xef')]('\x20'));});}['_processAttributeChanges'](_0x37e738){if(this[_0x16f5('0x12a')])return!0x1;const _0x36d585=this[_0x16f5('0x27')],_0x2a4490=_0x36d585[_0x16f5('0xb2')][_0x16f5('0xda')][_0x16f5('0x17c')][_0x16f5('0x14d')]();if(0x0==_0x2a4490['length'])return!0x1;const _0xe6934f=[],_0x3e8492=_0x2a4490['filter'](_0x4a0582=>_0x16f5('0xdc')==_0x4a0582[_0x16f5('0x56')]),_0x5e73f1=_0x2a4490[_0x16f5('0x88')](_0xe2a7ce=>_0x16f5('0x13')==_0xe2a7ce[_0x16f5('0x56')]&&_0x16f5('0x0')!=_0xe2a7ce['name']),_0x1e6da4=_0x2a4490[_0x16f5('0x88')](_0xb7dbc6=>_0x16f5('0x26')==_0xb7dbc6['type']&&_0x16f5('0x0')!=_0xb7dbc6[_0x16f5('0x81')]);for(const _0x294a42 of _0x3e8492)_0xe6934f['push']({'key':_0x294a42[_0x16f5('0x12c')],'newValue':_0x294a42['attributeNewValue'],'oldValue':_0x294a42[_0x16f5('0x178')],'range':Ut(_0x294a42[_0x16f5('0x16f')],_0x36d585[_0x16f5('0xb2')])});for(const _0x25b640 of _0x5e73f1){const _0x44fa23=_0x1e6da4[_0x16f5('0x160')](_0x11f04f=>_0x11f04f[_0x16f5('0x2e')][_0x16f5('0xb5')](_0x25b640[_0x16f5('0x2e')]));_0x44fa23&&_0xe6934f['push']({'key':_0x16f5('0x142'),'newValue':_0x25b640[_0x16f5('0x81')],'oldValue':_0x44fa23[_0x16f5('0x81')],'range':_0x36d585[_0x16f5('0xb2')]['createRangeOn'](_0x25b640[_0x16f5('0x2e')][_0x16f5('0x64')])});}return 0x0!=_0xe6934f[_0x16f5('0x146')]&&this[_0x16f5('0xa8')](_0x37e738,_0xe6934f);}[_0x16f5('0xab')](_0x19baee){let _0x543346=!0x1;const _0xf2917c=this[_0x16f5('0x27')][_0x16f5('0xb2')]['document'][_0x16f5('0x17c')][_0x16f5('0x10f')]()[_0x16f5('0x88')](_0x301376=>_0x301376[_0x16f5('0x108')][_0x16f5('0x34')]&&_0x301376[_0x16f5('0x81')][_0x16f5('0xfe')]('suggestion:attribute:'));for(const _0x445f8d of _0xf2917c){const {subType:_0x4cc97a,id:_0x35cc9f}=this[_0x16f5('0x15')](_0x445f8d[_0x16f5('0x81')]),_0x4b24e1=_0x4cc97a[_0x16f5('0x15d')]('|')[0x0];for(const _0x42677c of this[_0x16f5('0x14')]({'skipNotAttached':!0x0}))_0x42677c['id']!=_0x35cc9f&&_0x16f5('0xdc')==_0x42677c['type']&&_0x42677c[_0x16f5('0x108')]&&_0x42677c[_0x16f5('0x108')]['key']==_0x4b24e1&&_0x42677c[_0x16f5('0x156')]()[_0x16f5('0xb9')](_0x445f8d[_0x16f5('0x108')][_0x16f5('0x34')])&&(this['_reduceSuggestionAttributeRange'](_0x42677c,_0x445f8d[_0x16f5('0x108')][_0x16f5('0x34')],_0x19baee),_0x543346=!0x0);}return _0x543346;}['_recordAttributeChanges'](_0x26931c){this[_0x16f5('0x27')],(this[_0x16f5('0x12a')]=!0x0,_0x26931c());}[_0x16f5('0x8b')](_0x4ce3d3){const _0x46dd6e=this[_0x16f5('0x20')](_0x4ce3d3),_0x52bad7=this[_0x16f5('0x8')][_0x16f5('0x11e')](_0x4ce3d3);return _0x46dd6e||_0x52bad7;}['_reduceExistingSuggestions'](_0x64719f,_0x19f8f6){if(0x0==_0x19f8f6[_0x16f5('0x146')])return!0x1;let _0xf2ac68=!0x1;for(const _0x137c1a of _0x19f8f6){const _0x237e24=this[_0x16f5('0x9f')](_0x137c1a[_0x16f5('0x16f')],'attribute')[_0x16f5('0x88')](_0x49d5e6=>!_0x49d5e6['meta'][_0x16f5('0x166')])[_0x16f5('0x177')](_0x50fbb0=>_0x50fbb0[_0x16f5('0xa')]),_0x147f4f=_0x4331a1({'newValue':_0x137c1a[_0x16f5('0x7b')]});_0x237e24['filter'](_0x123697=>{const [_0x45036d,_0xd85ed8]=_0x123697[_0x16f5('0xbc')][_0x16f5('0x15d')]('|');return _0x45036d==_0x137c1a[_0x16f5('0xf6')]&&_0xd85ed8!=_0x147f4f;})[_0x16f5('0x10e')](_0x1ef6d6=>{this[_0x16f5('0x30')](_0x1ef6d6,_0x137c1a[_0x16f5('0x16f')],_0x64719f),_0xf2ac68=!0x0;});}return _0xf2ac68;}['_reduceSuggestionAttributeRange'](_0x2f3731,_0x530cff,_0x14f6a1){const _0x1ea22c=_0x2f3731[_0x16f5('0x156')]()['getDifference'](_0x530cff);0x0!==_0x1ea22c['length']?0x1!==_0x1ea22c[_0x16f5('0x146')]?this['_breakSuggestionMarker'](_0x2f3731,_0x530cff[_0x16f5('0x61')],_0x530cff[_0x16f5('0xcd')]):this[_0x16f5('0xc3')](_0x2f3731,_0x1ea22c[0x0]):_0x14f6a1[_0x16f5('0xb8')](_0x2f3731[_0x16f5('0xeb')]());}}class Bt{constructor(_0xfde03e){this[_0x16f5('0x42')]=_0xfde03e,this[_0x16f5('0x47')]=_0xfde03e['model'],this['_customCallbacks']=new Map(),this[_0x16f5('0xae')]=new Map(),this[_0x16f5('0x4d')]();}[_0x16f5('0x105')](_0x5baf21,_0x116287,_0x7cb7e7,_0x5c119a,_0x459b87,_0x4c71c7){return new _0x2160f9(this[_0x16f5('0x47')],{'type':_0x5baf21,'subType':_0x116287,'id':_0x7cb7e7,'author':_0x5c119a,'creator':_0x5c119a,'attributes':_0x459b87,'onAttributesChange':_0x4c71c7,'onAccept':(..._0x1728fc)=>this[_0x16f5('0x13c')](_0x5baf21,_0x116287,_0x16f5('0x110'))(..._0x1728fc),'onDiscard':(..._0xa97924)=>this[_0x16f5('0x13c')](_0x5baf21,_0x116287,_0x16f5('0x161'))(..._0xa97924)});}[_0x16f5('0x85')](_0x20d49e,_0x5d38f9,_0x1e9b94,_0x357458){const _0x51a2eb=_0x20d49e+':'+_0x5d38f9+':'+_0x1e9b94;this['_customCallbacks'][_0x16f5('0x123')](_0x51a2eb,_0x357458);}[_0x16f5('0x13c')](_0x3ad78c,_0x17e0dd,_0x451575){const _0x150bfa=_0x3ad78c+':'+_0x17e0dd+':'+_0x451575;return this[_0x16f5('0x7c')][_0x16f5('0xe5')](_0x150bfa)||this[_0x16f5('0xae')][_0x16f5('0xe5')](_0x3ad78c+':'+_0x451575);}[_0x16f5('0x4d')](){const _0x432241=()=>!0x1,_0x525bcf=_0x82ed7f=>{_0x82ed7f[_0x16f5('0x174')]((_0x59daad,_0x597b31)=>_0x59daad[_0x16f5('0x61')][_0x16f5('0x112')](_0x597b31[_0x16f5('0x61')])?0x1:-0x1),this[_0x16f5('0x47')]['change'](_0x171ecf=>{for(const _0x14a371 of _0x82ed7f){let _0x39ba3d;_0x39ba3d=_0x14a371[_0x16f5('0xcd')][_0x16f5('0x92')]&&_0x14a371[_0x16f5('0xcd')]['parent']==_0x14a371['start']['nodeAfter']?_0x171ecf['createSelection'](_0x14a371[_0x16f5('0x61')][_0x16f5('0x64')],'on'):_0x171ecf[_0x16f5('0x9b')](_0x14a371),this[_0x16f5('0x47')]['deleteContent'](_0x39ba3d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x58a244=(_0x1eedc9,_0x1d93ca)=>{_0x1d93ca&&this[_0x16f5('0x47')][_0x16f5('0x172')](_0xa3097e=>{const {commandName:_0x4c1827,commandParams:_0x5d8348=[]}=_0x1d93ca,_0x1864f0=_0x1eedc9[_0x16f5('0x177')](_0x256168=>(Rt(_0x256168)&&(_0x256168=this['_model'][_0x16f5('0x4a')](_0x256168['end'])),_0x256168))[_0x16f5('0x88')](_0x133e1b=>_0x16f5('0xb1')!==_0x133e1b[_0x16f5('0x6f')][_0x16f5('0xa9')]);if(_0x1864f0[_0x16f5('0x146')]<0x1)return;const _0x106c18=Array[_0x16f5('0x9e')](this['_model'][_0x16f5('0xda')][_0x16f5('0x14f')][_0x16f5('0xc5')]())[_0x16f5('0x177')](_0xd8e022=>_0x4110f1['fromRange'](_0xd8e022));_0xa3097e[_0x16f5('0x78')](_0x1864f0);for(const _0x574803 of this[_0x16f5('0x42')][_0x16f5('0x17')]['commands']())_0x574803[_0x16f5('0x4e')]();_0x5d8348[_0x16f5('0x140')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x16f5('0x126')](_0x4c1827,..._0x5d8348);const _0x4a5345=_0x106c18['filter'](_0x4bf293=>_0x16f5('0xb1')!=_0x4bf293['root'][_0x16f5('0xa9')]);_0x4a5345['length']>0x0&&_0xa3097e[_0x16f5('0x78')](_0x4a5345);for(const _0x4f7326 of _0x106c18)_0x4f7326['detach']();});},_0x31a020=(_0x5413d3,_0x13689d)=>0x1==_0x5413d3[_0x16f5('0x146')]&&0x1==_0x13689d[_0x16f5('0x146')]&&_0x5413d3[0x0][_0x16f5('0xcd')][_0x16f5('0xb5')](_0x13689d[0x0][_0x16f5('0x61')]),_0x33274a=(_0x57ff43,_0x45e745,_0x45b5ef,_0x3c0a22)=>Gt(_0x57ff43,_0x45e745,_0x45b5ef,_0x3c0a22,this['_model'])?[_0x57ff43,_0x45e745]:Gt(_0x45e745,_0x57ff43,_0x3c0a22,_0x45b5ef,this[_0x16f5('0x47')])?[_0x45e745,_0x57ff43]:null;this[_0x16f5('0xae')]['set']('insertion:accept',_0x432241),this[_0x16f5('0xae')][_0x16f5('0x123')](_0x16f5('0xe6'),_0x525bcf),this[_0x16f5('0xae')][_0x16f5('0x123')](_0x16f5('0x6b'),_0x31a020),this[_0x16f5('0xae')][_0x16f5('0x123')](_0x16f5('0x138'),_0x33274a),this['_defaultCallbacks'][_0x16f5('0x123')](_0x16f5('0x14a'),_0x525bcf),this['_defaultCallbacks'][_0x16f5('0x123')](_0x16f5('0xc'),_0x432241),this[_0x16f5('0xae')][_0x16f5('0x123')](_0x16f5('0x46'),_0x31a020),this['_defaultCallbacks'][_0x16f5('0x123')](_0x16f5('0x116'),_0x33274a),this[_0x16f5('0xae')][_0x16f5('0x123')]('formatInline:accept',_0x58a244),this[_0x16f5('0xae')][_0x16f5('0x123')](_0x16f5('0x2'),_0x432241),this[_0x16f5('0xae')][_0x16f5('0x123')](_0x16f5('0x65'),_0x31a020),this[_0x16f5('0xae')][_0x16f5('0x123')](_0x16f5('0x36'),_0x432241),this[_0x16f5('0xae')][_0x16f5('0x123')](_0x16f5('0x1'),_0x58a244),this['_defaultCallbacks'][_0x16f5('0x123')](_0x16f5('0x9d'),_0x432241),this[_0x16f5('0xae')]['set'](_0x16f5('0x40'),_0x31a020),this[_0x16f5('0xae')][_0x16f5('0x123')](_0x16f5('0xca'),_0x432241),this['_defaultCallbacks'][_0x16f5('0x123')](_0x16f5('0xa5'),_0x432241),this['_defaultCallbacks'][_0x16f5('0x123')]('attribute:discard',(_0xb70782,_0x2e254f)=>{if(!_0x2e254f)return;const _0x10dc0c=this['_editor'][_0x16f5('0x77')][_0x16f5('0xe5')](p);this['_model'][_0x16f5('0x172')](_0x3c776e=>{if(_0x16f5('0x142')==_0x2e254f['key'])for(const _0x28c194 of _0xb70782){const _0x4a27a5=_0x28c194['start']['nodeAfter'],_0xec1620=_0x2e254f[_0x16f5('0x5')];_0x3c776e[_0x16f5('0xfc')](_0x4a27a5,_0xec1620);}else{if(_0x10dc0c[_0x16f5('0x20')](_0x2e254f[_0x16f5('0xf6')]))for(const _0x3b76f0 of _0xb70782)void 0x0!==_0x2e254f[_0x16f5('0x5')]?_0x3c776e['setAttribute'](_0x2e254f[_0x16f5('0xf6')],_0x2e254f['oldValue'],_0x3b76f0[_0x16f5('0x61')]['nodeAfter']):_0x3c776e['removeAttribute'](_0x2e254f[_0x16f5('0xf6')],_0x3b76f0[_0x16f5('0x61')][_0x16f5('0x64')]);else for(const _0x41519f of _0xb70782)_0x2e254f['oldValue']?_0x3c776e[_0x16f5('0x10a')](_0x2e254f[_0x16f5('0xf6')],_0x2e254f['oldValue'],_0x41519f):_0x3c776e['removeAttribute'](_0x2e254f[_0x16f5('0xf6')],_0x41519f);}});}),this[_0x16f5('0xae')][_0x16f5('0x123')](_0x16f5('0x10d'),_0x31a020);}}function xt(_0x525226,_0x23871b,_0x1d85b3){for(const _0x2df25a of _0x23871b[_0x16f5('0x131')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2df25a[_0x16f5('0x6f')]==_0x2df25a)return!0x1;if(!_0x1d85b3[_0x16f5('0x4c')](_0x2df25a))return!0x1;if(_0x525226[_0x16f5('0xa7')](_0x2df25a)||_0x525226['isLimit'](_0x2df25a))return!0x0;}return!0x1;}function Rt(_0x39152b){return _0x39152b[_0x16f5('0xcd')]['parent']==_0x39152b[_0x16f5('0x61')][_0x16f5('0x64')]&&_0x39152b[_0x16f5('0xcd')][_0x16f5('0x50')];}function Tt(_0x41d014,_0xfcba4e,_0x187ca8,_0x17b98a){const _0x1aa52f=_0x2099eb=>!_0x2099eb['item']['is'](_0x16f5('0x99'))&&!_0x17b98a[_0x16f5('0xa7')](_0x2099eb[_0x16f5('0x25')]),_0x25b7e5=_0x41d014[_0x16f5('0x61')][_0x16f5('0x115')](_0x1aa52f),_0x547e7d=_0x41d014[_0x16f5('0xcd')]['getLastMatchingPosition'](_0x1aa52f,{'direction':'backward'});return(!_0x41d014[_0x16f5('0x61')]['isEqual'](_0x25b7e5)||!_0x41d014['end']['isEqual'](_0x547e7d))&&(_0x25b7e5['isBefore'](_0x547e7d)?_0x187ca8[_0x16f5('0xd8')](_0xfcba4e,{'range':_0x187ca8[_0x16f5('0x4a')](_0x25b7e5,_0x547e7d)}):_0x187ca8[_0x16f5('0xb8')](_0xfcba4e),!0x0);}function Et(_0x36187d){return _0x4331a1(_0x36187d);}function Vt(_0x1128ad){const _0x34b7f5=_0x1128ad[_0x16f5('0x61')][_0x16f5('0x64')];return _0x34b7f5&&_0x34b7f5['is'](_0x16f5('0x55'));}function Ut(_0x4a7474,_0x2d943f){return null==_0x4a7474[_0x16f5('0xcd')]['nodeBefore']&&_0x4a7474[_0x16f5('0xcd')][_0x16f5('0x131')]==_0x4a7474['start'][_0x16f5('0x64')]?Ot(_0x4a7474[_0x16f5('0x61')][_0x16f5('0x64')],_0x2d943f):_0x4a7474;}function Ot(_0x17ac89,_0x21d5b4){const _0x1fbb73=_0x21d5b4[_0x16f5('0x16c')]['isObject'](_0x17ac89)||_0x21d5b4[_0x16f5('0x16c')][_0x16f5('0x13e')](_0x17ac89);return _0x21d5b4[_0x16f5('0x4a')](_0x21d5b4[_0x16f5('0xcb')](_0x17ac89,_0x16f5('0x16b')),_0x1fbb73?_0x21d5b4['createPositionAfter'](_0x17ac89):_0x21d5b4['createPositionAt'](_0x17ac89,_0x16f5('0xcd')));}function Gt(_0x2905fa,_0x230758,_0x539abc,_0x37053e,_0x326ce9){if(!Ft(_0x2905fa,_0x230758))return!0x1;if(_0x539abc[_0x16f5('0xcd')][_0x16f5('0xb5')](_0x37053e[_0x16f5('0x61')]))return!0x0;if(_0x2905fa[_0x16f5('0x56')]!=_0x230758['type'])return!0x1;if(!_0x539abc[_0x16f5('0xcd')]['isTouching'](_0x37053e[_0x16f5('0x61')]))return!0x1;const _0x33b8d9=_0x326ce9[_0x16f5('0x4a')](_0x539abc[_0x16f5('0xcd')],_0x37053e[_0x16f5('0x61')])[_0x16f5('0x93')]();for(const _0x241148 of _0x33b8d9)if(['elementStart',_0x16f5('0x66')][_0x16f5('0xa3')](_0x241148[_0x16f5('0x56')])&&_0x326ce9[_0x16f5('0x16c')][_0x16f5('0x2f')](_0x241148[_0x16f5('0x25')]))return!0x1;return!0x0;}function Ft(_0x3a5f2f,_0x2e2cd8,_0x168fab=[]){return!(!_0x3a5f2f[_0x16f5('0x180')]||!_0x2e2cd8[_0x16f5('0x180')])&&_0x5223db(_0x41bede(_0x3a5f2f[_0x16f5('0x16d')],_0x168fab),_0x41bede(_0x2e2cd8[_0x16f5('0x16d')],_0x168fab));}function Pt(_0x2ce943,_0x35925b){const _0xabeec9=Lt(_0x2ce943['attributes']),_0x462a34=Lt(_0x35925b);if(!_0x2ce943[_0x16f5('0x180')])return!0x1;for(const _0x24af04 of Object[_0x16f5('0x2a')](_0x462a34))if(!_0x5223db(_0xabeec9[_0x24af04],_0x462a34[_0x24af04]))return!0x1;return!0x0;}function Lt(_0x1a1806){const _0xccb1c5=Object[_0x16f5('0x82')]({},_0x1a1806);return delete _0xccb1c5[_0x16f5('0x13a')],delete _0xccb1c5[_0x16f5('0xf5')],_0xccb1c5;}
23
+ const _0x5617=['refresh','createPositionAfter','formatBlock','discardAllSuggestions','markDeletion','_joinWithAdjacentSuggestions','deleteContent','get','howMany','_isDataLoaded','_descriptionFactory','getCustomProperty','isUndo','default','setAttribute','ready','getAttribute','isRemovable','remove','markerToHighlight','createRangeIn','move','after','_getMarkerAnnouncementText','removeMarker:suggestion:formatBlock','getLastMatchingPosition','open','addUser','markMultiRangeInsertion','deletion:accept','_trackFormatChanges','@external','_processAttributeSuggestions','track-changes-adapter-missing-getsuggestion','applyOperation','isLimit','addMarkerName','selection','deletion:discard','tablePasteChainId','trackChangesCommand','authoredAt','batch','PENDING_ACTION_SUGGESTION','documentSelection','assign','size','_setSuggestionRange','authorName','insertion:join','never','getShiftedBy','_commentsRepository','updateMarker','nodeBefore','LEAVE','splice','getUser','push','markerNameToElements','_mergeNestedSuggestions','CommentsRepository','removeMarkers','createRangeOn','dataReady','multipleBlocks','meta','isEqual','markInlineFormat','acceptAllSuggestions','isObject','notReady','isAtEnd','updateSuggestion','position','getSuggestions','document','marker-count','element','_adapter','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.','_editor','_setSuggestionData','isIntersectingWithRange','getChanges','PendingActions','_createSuggestion','_findSuggestions','isInContent','set','containsItem','_getAttributeKey','_customCallbacks','data-suggestion','type','getContainedElement','_getSuggestionData','toViewElement','ENTER','parent','_defaultCallbacks','rethrowUnexpectedError','commentThread','containsPosition','from','add','registerPostFixer','reconvertMarker','createElement','oldValue','_rangeIsInLocalUserInsertion','addSuggestionData','_SUGGESTION_ANNOUNCEMENT','getFirstRange','isOwn','setSelection','adapter','commands','isCollapsed','addMarker:suggestion:formatBlock','unshift','collaboration.channelId','getRanges','_refreshAttributeSuggestionsChain','announce','resolve','containsRangeInObject','range','values','backward','isArray','markBlockFormat','value','_model','addCommentThread','createdAt','data','track-changes-command-not-found','newRange','_suggestions','formatInline:join','length','buildSuggestion','_handleNewSuggestionMarker','_addSuggestionMarker','root','change','_addThreadToSuggestion','attribute:','comments','_splitMarkerName','suggestionChanged','pop','formatBlock:','showSuggestionHighlights','forceDefaultExecution','addHighlight','low','formatBlock:join','end','elementStart','formatInline','elementEnd','_registerDefaultCallbacks','track-changes-suggestion-data-mismatch','plugins','map','markMultiRangeBlockFormat','fetchCommentThread','suggestion:','formatInline:accept','highest','splitPosition','containsRange','detach','containerElement','unbind','startsWith','removeMarker','_suggestionFactory','track-changes-enable-command-twice','delete','forEach','addClass','createRange','_processAttributeChanges','attributeOldValue','_suggestionState','getIntersection','_refreshSuggestionsChain','_enabledCommands','rootName','insertion','subType','_joinSuggestions','$elementName','ck-suggestion-marker--active','group','ck-suggestion-marker-formatBlock','markerName','stopListening','deletion','hasComments','creator','editor','_reduceSuggestionAttributeRange','fire','attribute:accept','Users','join','always','formatInline:','_blockAttributeKeys','schema','widget','getCommentThread','split','define','addRange','getSuggestion','isInsideObject','_removeSuggestion','key','_isRegisteredAttribute','mapper','_breakSuggestionMarker','author','acceptSuggestion','attribute','formatInline:chain','getSuggestionCallback','return','some','isLocal','_cutOutSuggestionMarker','hasSuggestion','attributes','activeMarkers','getItems','upcast','attributeKey','$marker','markInsertion','_isForcedDefaultExecutionBlock','originalSuggestionId','moveTargetPosition','catch','isAfter','for','start','formatBlock:accept','getNearestSelectionRange','isBefore','addMarker:suggestion:attribute','discardSuggestion','_registerBlockAttribute','removed','consume','markerReady','deletion:join','sort','ck-suggestion-marker-','model','then','warn','markAttributeChange','addMarker','dataToMarker','getDifference','_saved','enableReadOnlyMode','$textProxy','attributeNewValue','toUpperCase','getFirstMarker','normal','createPositionAt','trackChanges.trackFormatChanges','locale','track-changes-suggestion-not-found','addSuggestion','accept','$graveyard','ck-suggestion-marker','getWalker','_getExternalAuthor','isMultiRange','acceptSelectedSuggestions','change:activeMarkers','removeClass','suggestion:attribute:','stop','createSelection','enableCommand','previous','formatGroupId','deletion:chain','rejected','editingDowncast','ariaLiveAnnouncer','hasCommentThread','nodeAfter','differ','update:suggestion','every','_reduceExistingSuggestions','lowest','forward','addComment','attribute:discard','insertContent','discardSelectedSuggestions','getMultiRangeId','next','chain','removeAttribute','toJSON','config','insert','options','commandName','_recordAttributeSuggestions','enqueueChange','_getAuthorFromId','listenTo','_checkSuggestionCorrectness','external:','_initAriaMarkerChangeAnnouncements','markMultiRangeDeletion','oldRange','getChangedMarkers','_recordAttributeChanges','pluginName','item','suggestionLoaded','skipNestingCheck','dataDowncast','high','markers','isNextTo','writer','registerCustomCallback','createPositionBefore','head','suggestion','ck-suggestion-marker-formatInline','conversion','insertion:discard','getAllAdjacentSuggestions','name','_updateSuggestionData','suggestionUnloaded','find','setTo','getMarkers','discard','filter','keys','execute','consumable','has','$text','groupId','includes','isTouching','_isBlockAttribute','_inlineAttributeKeys','error-saving-suggestion-data-suggestion-discarded'];(function(_0x29657d,_0x56173d){const _0x42fabc=function(_0x23ee14){while(--_0x23ee14){_0x29657d['push'](_0x29657d['shift']());}};_0x42fabc(++_0x56173d);}(_0x5617,0x112));const _0x42fa=function(_0x29657d,_0x56173d){_0x29657d=_0x29657d-0x0;let _0x42fabc=_0x5617[_0x29657d];return _0x42fabc;};import{Plugin as _0x702a56,PendingActions as _0x1cc2dc}from'ckeditor5/src/core.js';import{LiveRange as _0x3f221e}from'ckeditor5/src/engine.js';import{CKEditorError as _0x6b7fca,uid as _0x53d935,priorities as _0x4f77bf,logWarning as _0x4ae81c}from'ckeditor5/src/utils.js';import{toWidget as _0x4bdd67}from'ckeditor5/src/widget.js';import{Users as _0x4082cd,hashObject as _0x1d9dc1,surroundingMarkersDetector as _0x20325c}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x174130 from'./commands/trackchangescommand.js';import _0x2ea012 from'./commands/acceptsuggestioncommand.js';import _0x4aff2c from'./commands/discardsuggestioncommand.js';import _0x52c666 from'./commands/executeonallsuggestionscommand.js';import _0x1c3353 from'./commands/executeonselectedsuggestionscommand.js';import _0x5839fd from'./suggestion.js';import _0x242554 from'./suggestiondescriptionfactory.js';import _0x36e4a8 from'./integrations/aiassistant.js';import _0xbd3303 from'./integrations/alignment.js';import _0x3fdd1 from'./integrations/basicstyles.js';import _0x3e06fe from'./integrations/blockquote.js';import _0xf582a6 from'./integrations/casechange.js';import _0xbb857a from'./integrations/ckbox.js';import _0x1ea921 from'./integrations/codeblock.js';import _0xde1556 from'./integrations/comments.js';import _0x5d36b7 from'./integrations/deletecommand.js';import _0x4710ab from'./integrations/list.js';import _0x3e4c04 from'./integrations/listproperties.js';import _0x123aec from'./integrations/entercommand.js';import _0x8a016a from'./integrations/findandreplace.js';import _0x4a1d6e from'./integrations/font.js';import _0x9d43e8 from'./integrations/formatpainter.js';import _0x4db29a from'./integrations/heading.js';import _0x43d738 from'./integrations/highlight.js';import _0x115afb from'./integrations/horizontalline.js';import _0x2d0a2a from'./integrations/htmlembed.js';import _0x3d1b6b from'./integrations/image.js';import _0x1728ef from'./integrations/imagereplace.js';import _0x1aff20 from'./integrations/imagestyle.js';import _0x5c07fd from'./integrations/importword.js';import _0x2179c3 from'./integrations/indent.js';import _0x166f23 from'./integrations/inputcommand.js';import _0x165ac6 from'./integrations/link.js';import _0x21ccad from'./integrations/legacylist.js';import _0x4fdbcb from'./integrations/legacylistproperties.js';import _0x5a52c3 from'./integrations/mediaembed.js';import _0x54ddc8 from'./integrations/mention.js';import _0x342439 from'./integrations/pagebreak.js';import _0x463b7c from'./integrations/paragraph.js';import _0x154c51 from'./integrations/removeformat.js';import _0x85ce54 from'./integrations/restrictededitingmode.js';import _0x10f0a0 from'./integrations/shiftentercommand.js';import _0x10fa92 from'./integrations/standardeditingmode.js';import _0x2e7994 from'./integrations/style.js';import _0x587b29 from'./integrations/table.js';import _0x3b3541 from'./integrations/tablemergesplit.js';import _0x5ce986 from'./integrations/tableheadings.js';import _0x4458e3 from'./integrations/tableclipboard.js';import _0x43200c from'./integrations/tablecolumnresize.js';import _0x335639 from'./integrations/template.js';import _0x40114e from'./integrations/tableofcontents.js';import _0x296a8b from'./integrations/title.js';import _0x160610 from'./integrations/undo.js';import _0x466c50 from'./integrations/tablecaption.js';import _0x2cb577 from'./integrations/tableproperties.js';import{getTranslation as _0x1a255c}from'./utils/common-translations.js';import{isEqual as _0x3647ed,omit as _0x2fd0ab}from'lodash-es';export const renameAttributeKey=_0x42fa('0x121');export default class p extends _0x702a56{static get['requires'](){return[_0x42fa('0x9b'),_0x4082cd,_0x1cc2dc,_0x36e4a8,_0xbd3303,_0x3fdd1,_0x3e06fe,_0xbb857a,_0xf582a6,_0x1ea921,_0xde1556,_0x5d36b7,_0x123aec,_0x8a016a,_0x4a1d6e,_0x9d43e8,_0x4db29a,_0x43d738,_0x115afb,_0x2d0a2a,_0x3d1b6b,_0x1aff20,_0x1728ef,_0x5c07fd,_0x2179c3,_0x166f23,_0x21ccad,_0x4fdbcb,_0x165ac6,_0x4710ab,_0x3e4c04,_0x5a52c3,_0x54ddc8,_0x342439,_0x463b7c,_0x154c51,_0x85ce54,_0x10f0a0,_0x10fa92,_0x2e7994,_0x587b29,_0x3b3541,_0x5ce986,_0x466c50,_0x4458e3,_0x43200c,_0x40114e,_0x2cb577,_0x335639,_0x296a8b,_0x160610];}static get[_0x42fa('0x3a')](){return'TrackChangesEditing';}constructor(_0x30ebb4){function _0x3c7883(_0x141ddb){return _0x141ddb[_0x42fa('0x104')](_0x1d5c20=>String['fromCharCode'](_0x1d5c20))[_0x42fa('0x12f')]('');}super(_0x30ebb4),this['_recordAttributeSuggestions']=!0x1,this['set'](_0x42fa('0x14b'),[]),this['on'](_0x42fa('0xe'),(_0x222ec8,_0x187613,_0x38f37b,_0x103da9)=>{this['_model'][_0x42fa('0xf0')](()=>{for(const _0x54746c of[..._0x103da9,..._0x38f37b])this['_model'][_0x42fa('0x40')][_0x42fa('0x56')](_0x54746c)&&_0x30ebb4['editing'][_0x42fa('0xc9')](_0x54746c);});}),this[_0x42fa('0x68')]=new _0x242554(this[_0x42fa('0x12a')][_0x42fa('0x164')][_0x42fa('0x133')],this[_0x42fa('0x12a')][_0x42fa('0x4')]),this[_0x42fa('0xad')]=null,this[_0x42fa('0x111')]=new Bt(this[_0x42fa('0x12a')]),this[_0x42fa('0xe9')]=new Map(),this['_commentsRepository']=_0x30ebb4['plugins'][_0x42fa('0x65')](_0x42fa('0x9b')),this['_enabledCommands']=new Set(),this['_model']=this[_0x42fa('0x12a')][_0x42fa('0x164')],this[_0x42fa('0x119')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this[_0x42fa('0x132')]=new Set([_0x42fa('0x121')]),this['_inlineAttributeKeys']=new Set(),_0x30ebb4['config'][_0x42fa('0x137')]('trackChanges.trackFormatChanges',_0x42fa('0x6b')),this[_0x42fa('0x7c')]=_0x30ebb4[_0x42fa('0x2b')][_0x42fa('0x65')](_0x42fa('0x3')),_0x30ebb4['config'][_0x42fa('0x137')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x42fa('0x9a')]=_0x30ebb4[_0x42fa('0x2b')]['get']('trackChanges.mergeNestedSuggestions'),this[_0x42fa('0x86')]=new _0x174130(_0x30ebb4,this[_0x42fa('0x11c')]),this[_0x42fa('0x35')](),this[_0x3c7883([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3c7883([0x34,0x30,0x34,0x38,0x30,0x32,0x33,0x38]);}['init'](){const _0x1edc8e=this[_0x42fa('0x12a')],_0x5b40b0=(_0x542dcf,_0xae8855)=>{if('attribute'!=_0x542dcf)return _0x42fa('0x163')+_0x542dcf;const _0x3e0848=_0xae8855[_0x42fa('0x136')]('|')[0x0];return this[_0x42fa('0x5b')](_0x3e0848)?_0x42fa('0x124'):_0x42fa('0x47');};_0x1edc8e['conversion']['for'](_0x42fa('0x18'))[_0x42fa('0x71')]({'model':_0x42fa('0x46'),'view':_0x23045c=>{const {id:_0x25af38,type:_0x210af5,subType:_0x2d30a4}=this[_0x42fa('0xf4')](_0x23045c['markerName']),_0x3e0472=['ck-suggestion-marker',_0x5b40b0(_0x210af5,_0x2d30a4)];let _0x4f889d=0xbb8;return this[_0x42fa('0x14b')][_0x42fa('0x59')](_0x23045c[_0x42fa('0x125')])&&(_0x3e0472[_0x42fa('0x98')]('ck-suggestion-marker--active'),_0x4f889d=0xbc2),'deletion'==_0x210af5&&(_0x4f889d+=0x5),{'classes':_0x3e0472,'attributes':{'data-suggestion':_0x25af38},'priority':_0x4f889d};}}),_0x1edc8e[_0x42fa('0x48')]['for'](_0x42fa('0x3e'))[_0x42fa('0xc7')](_0x288c3e=>{_0x288c3e['on']('addMarker:suggestion',(_0xe2ec8b,_0x13bb1e,_0x4d5b0d)=>{if(!_0x4d5b0d[_0x42fa('0x2d')][_0x42fa('0xf8')])return;const _0x5625e6=_0x13bb1e[_0x42fa('0x3b')];if(!_0x5625e6)return;const _0x1aa404=_0x4d5b0d[_0x42fa('0x13e')][_0x42fa('0xbf')](_0x5625e6);_0x1edc8e[_0x42fa('0x164')][_0x42fa('0x133')]['isObject'](_0x5625e6)&&_0x1aa404&&!_0x1aa404[_0x42fa('0x69')](_0x42fa('0x134'))&&_0x1aa404['is'](_0x42fa('0x10d'))&&_0x4bdd67(_0x1aa404,_0x4d5b0d[_0x42fa('0x42')]);},{'priority':'high'});}),_0x1edc8e[_0x42fa('0x48')]['for'](_0x42fa('0x3e'))[_0x42fa('0x71')]({'model':_0x42fa('0x46'),'view':(_0x66a9c,_0x3864e5)=>{if(!_0x3864e5['options']['showSuggestionHighlights'])return null;const {type:_0x13ed3b,subType:_0x56dcc1}=this[_0x42fa('0xf4')](_0x66a9c['markerName']);return{'classes':[_0x42fa('0x9'),_0x5b40b0(_0x13ed3b,_0x56dcc1)],'priority':0xbb8};}});const _0x1bfb9b=({showActiveMarkers:_0x3f6566=!0x0,isAttributeSuggestion:_0x26e9a1=!0x1}={})=>(_0x19f1d4,_0x1f24f6,_0xbe50c)=>{if(!_0x1f24f6[_0x42fa('0x3b')])return;const {id:_0x1a9c7c}=this[_0x42fa('0xf4')](_0x1f24f6[_0x42fa('0x125')]);if(_0x26e9a1){const _0x1ec245=this[_0x42fa('0xe9')][_0x42fa('0x65')](_0x1a9c7c),_0x195576=this[_0x42fa('0xb9')](_0x1ec245);if(!this[_0x42fa('0x5b')](_0x195576))return;}if(_0x1f24f6[_0x42fa('0x3b')]['is'](_0x42fa('0x83')))return void _0xbe50c[_0x42fa('0x55')][_0x42fa('0x15f')](_0x1f24f6[_0x42fa('0x3b')],_0x19f1d4[_0x42fa('0x4b')]);const _0x1fa336=_0xbe50c[_0x42fa('0x13e')][_0x42fa('0xbf')](_0x1f24f6['item']);if(_0x1f24f6[_0x42fa('0x3b')]['is'](_0x42fa('0xac'))&&_0x1edc8e[_0x42fa('0x164')][_0x42fa('0x133')]['isBlock'](_0x1f24f6['item'])&&!_0x1fa336[_0x42fa('0x69')](_0x42fa('0xfa'))){_0xbe50c['writer'][_0x42fa('0x115')]([_0x42fa('0x9'),'ck-suggestion-marker-formatBlock'],_0x1fa336),_0xbe50c[_0x42fa('0x42')][_0x42fa('0x6c')](_0x42fa('0xbb'),_0x1a9c7c,_0x1fa336),_0xbe50c[_0x42fa('0x13e')]['bindElementToMarker'](_0x1fa336,_0x1f24f6[_0x42fa('0x125')]),_0x3f6566&&(this[_0x42fa('0x14b')][_0x42fa('0x59')](_0x1f24f6[_0x42fa('0x125')])?_0xbe50c['writer'][_0x42fa('0x115')]('ck-suggestion-marker--active',_0x1fa336):_0xbe50c['writer'][_0x42fa('0xf')](_0x42fa('0x122'),_0x1fa336));for(const _0x540dd4 of _0x1edc8e[_0x42fa('0x164')][_0x42fa('0x72')](_0x1f24f6['item'])[_0x42fa('0x14c')]())_0xbe50c['consumable'][_0x42fa('0x15f')](_0x540dd4,_0x19f1d4[_0x42fa('0x4b')]);_0xbe50c['consumable']['consume'](_0x1f24f6[_0x42fa('0x3b')],_0x19f1d4[_0x42fa('0x4b')]);}};_0x1edc8e[_0x42fa('0x48')]['for'](_0x42fa('0x3e'))[_0x42fa('0xc7')](_0x1c87eb=>{_0x1c87eb['on'](_0x42fa('0xd5'),(_0x289bc8,_0x4f2439,_0xf276fd)=>{_0xf276fd[_0x42fa('0x2d')][_0x42fa('0xf8')]&&_0x1bfb9b({'showActiveMarkers':!0x1})(_0x289bc8,_0x4f2439,_0xf276fd);},{'priority':_0x42fa('0x109')});}),_0x1edc8e[_0x42fa('0x48')]['for'](_0x42fa('0x3e'))[_0x42fa('0xc7')](_0x541a28=>{_0x541a28['on'](_0x42fa('0x15b'),(_0x34ff38,_0x200be7,_0x408aa8)=>{_0x408aa8[_0x42fa('0x2d')]['showSuggestionHighlights']&&_0x1bfb9b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x34ff38,_0x200be7,_0x408aa8);},{'priority':_0x42fa('0x109')});}),_0x1edc8e[_0x42fa('0x48')]['for']('dataDowncast')['markerToData']({'model':_0x42fa('0x46'),'view':(_0x54f702,_0xceb84b)=>_0xceb84b[_0x42fa('0x2d')][_0x42fa('0xf8')]?null:{'group':'suggestion','name':_0x54f702['substr'](0xb)}}),_0x1edc8e[_0x42fa('0x48')][_0x42fa('0x156')](_0x42fa('0x14d'))['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5dbb61,{writer:_0x4756ed})=>{let _0xcd0a28=_0x42fa('0x107')+_0x5dbb61[_0x42fa('0x6e')]('suggestion-type')+':'+_0x5dbb61[_0x42fa('0x6e')]('id');return _0x5dbb61[_0x42fa('0x6e')]('marker-count')&&(_0xcd0a28+=':'+_0x5dbb61['getAttribute'](_0x42fa('0xab'))),_0x4756ed[_0x42fa('0xca')](_0x42fa('0x14f'),{'data-name':_0xcd0a28});}}),_0x1edc8e[_0x42fa('0x48')][_0x42fa('0x156')](_0x42fa('0x14d'))[_0x42fa('0x169')]({'view':_0x42fa('0x46')}),_0x1edc8e[_0x42fa('0x48')][_0x42fa('0x156')]('editingDowncast')[_0x42fa('0xc7')](_0x3efe58=>{_0x3efe58['on'](_0x42fa('0xd5'),_0x1bfb9b(),{'priority':'high'});}),_0x1edc8e[_0x42fa('0x48')]['for'](_0x42fa('0x18'))[_0x42fa('0xc7')](_0x878fe6=>{_0x878fe6['on'](_0x42fa('0x15b'),_0x1bfb9b({'isAttributeSuggestion':!0x0}),{'priority':_0x42fa('0x3f')});}),_0x1edc8e[_0x42fa('0x48')][_0x42fa('0x156')](_0x42fa('0x18'))[_0x42fa('0xc7')](_0x3cb5da=>{_0x3cb5da['on'](_0x42fa('0x76'),(_0x18ab74,_0x4c8d86,_0x3618bb)=>{const _0x244d84=_0x3618bb['mapper'][_0x42fa('0x99')](_0x4c8d86['markerName']);if(_0x244d84)for(const _0x5d4722 of _0x244d84)_0x5d4722[_0x42fa('0x69')](_0x42fa('0xfa'))||(_0x3618bb[_0x42fa('0x42')][_0x42fa('0xf')]([_0x42fa('0x9'),'ck-suggestion-marker-formatBlock',_0x42fa('0x122')],_0x5d4722),_0x3618bb[_0x42fa('0x42')][_0x42fa('0x29')]('data-suggestion',_0x5d4722),_0x3618bb['mapper']['unbindElementFromMarkerName'](_0x5d4722,_0x4c8d86[_0x42fa('0x125')]));},{'priority':_0x42fa('0x3f')});}),_0x1edc8e[_0x42fa('0x48')][_0x42fa('0x156')]('editingDowncast')['add'](_0x161326=>{_0x161326['on']('removeMarker:suggestion:attribute',(_0x500419,_0x2103b5,_0x424550)=>{const _0x69c37a=_0x424550[_0x42fa('0x13e')][_0x42fa('0x99')](_0x2103b5['markerName']);if(!_0x69c37a)return;const {id:_0x1669cc}=this[_0x42fa('0xf4')](_0x2103b5[_0x42fa('0x125')]),_0x164403=this[_0x42fa('0xe9')][_0x42fa('0x65')](_0x1669cc),_0x22e52d=this[_0x42fa('0xb9')](_0x164403);if(this['_isBlockAttribute'](_0x22e52d))for(const _0x1cc1e2 of _0x69c37a)_0x1cc1e2['getCustomProperty'](_0x42fa('0xfa'))||(_0x424550[_0x42fa('0x42')]['removeClass']([_0x42fa('0x9'),'ck-suggestion-marker-formatBlock',_0x42fa('0x122')],_0x1cc1e2),_0x424550[_0x42fa('0x42')][_0x42fa('0x29')](_0x42fa('0xbb'),_0x1cc1e2),_0x424550['mapper']['unbindElementFromMarkerName'](_0x1cc1e2,_0x2103b5[_0x42fa('0x125')]));},{'priority':_0x42fa('0x3f')});}),_0x1edc8e[_0x42fa('0x164')][_0x42fa('0xaa')][_0x42fa('0xc8')](_0x4e2287=>{let _0x63b1e1=!0x1;const _0x24ad6f=Array[_0x42fa('0xc6')](_0x1edc8e[_0x42fa('0x164')][_0x42fa('0xaa')][_0x42fa('0x1c')][_0x42fa('0x38')]()),_0x1b40e4=new Set();for(const {name:_0x55f1e7,data:_0x2a8358}of _0x24ad6f){const {group:_0x3afe7a,type:_0x39220c,subType:_0x1f7e0a,id:_0x4d7ebf}=this[_0x42fa('0xf4')](_0x55f1e7);if(_0x42fa('0x46')!==_0x3afe7a)continue;const _0x22d439=this[_0x42fa('0xe9')][_0x42fa('0x65')](_0x4d7ebf);if(null!=_0x2a8358[_0x42fa('0xe8')]){_0x42fa('0xff')==_0x39220c&&(_0x63b1e1=_0x63b1e1||Tt(_0x2a8358[_0x42fa('0xe8')],_0x55f1e7,_0x4e2287,_0x1edc8e['model'][_0x42fa('0x133')]));const _0x33a450=_0x42fa('0x142')==_0x39220c&&this[_0x42fa('0x5b')](_0x1f7e0a[_0x42fa('0x136')]('|')[0x0]);if(_0x2a8358[_0x42fa('0xe8')]['isCollapsed']||_0x42fa('0x8')==_0x2a8358[_0x42fa('0xe8')][_0x42fa('0xef')][_0x42fa('0x11d')]||_0x42fa('0x60')==_0x39220c&&!Vt(_0x2a8358[_0x42fa('0xe8')])||_0x33a450&&!Vt(_0x2a8358[_0x42fa('0xe8')])||_0x42fa('0x127')==_0x39220c&&!(!Rt(_0x49b005=_0x2a8358[_0x42fa('0xe8')])&&!function(_0x68044e){return _0x68044e[_0x42fa('0x157')][_0x42fa('0xc1')]==_0x68044e[_0x42fa('0xfd')][_0x42fa('0x94')]&&_0x68044e['start'][_0x42fa('0xa6')];}(_0x49b005)))_0x4e2287[_0x42fa('0x110')](_0x55f1e7),_0x63b1e1=!0x0;else{if(!_0x22d439||!_0x22d439[_0x42fa('0xb6')])continue;_0x1b40e4[_0x42fa('0xc7')](_0x22d439);}}}var _0x49b005;return _0x1b40e4[_0x42fa('0x8c')]>0x0&&(_0x63b1e1=!!this[_0x42fa('0x63')](_0x1b40e4)||_0x63b1e1),_0x63b1e1;}),_0x1edc8e[_0x42fa('0x164')][_0x42fa('0xaa')][_0x42fa('0xc8')](_0x1b0761=>{let _0xbb1f5b=!0x1;for(const _0x2e0be4 of _0x1edc8e[_0x42fa('0x164')][_0x42fa('0xaa')][_0x42fa('0x1c')][_0x42fa('0xb2')]())if('insert'==_0x2e0be4[_0x42fa('0xbc')])for(const _0x35b5df of this['_suggestions']['values']()){if(_0x35b5df[_0x42fa('0xc')]||!_0x35b5df['isInContent'])continue;const _0x111fca='formatBlock'==_0x35b5df[_0x42fa('0xbc')],_0x5b3e87=this[_0x42fa('0xb9')](_0x35b5df),_0x5de8bc=_0x5b3e87&&this[_0x42fa('0x5b')](_0x5b3e87);if(!_0x111fca&&!_0x5de8bc)continue;const _0x217ee1=_0x35b5df[_0x42fa('0xcf')]();if(_0x217ee1[_0x42fa('0x157')][_0x42fa('0xc1')]!=_0x217ee1[_0x42fa('0xfd')][_0x42fa('0xc1')]&&!_0x217ee1['end']['isAtEnd']){const _0xd90114=_0x1edc8e[_0x42fa('0x164')]['createPositionAt'](_0x217ee1['start'][_0x42fa('0x1b')],_0x42fa('0xfd')),_0x150ce5=_0x1edc8e[_0x42fa('0x164')][_0x42fa('0x116')](_0x217ee1['start'],_0xd90114);_0x1b0761['updateMarker'](_0x35b5df[_0x42fa('0x0')](),{'range':_0x150ce5}),_0xbb1f5b=!0x0;}}return _0xbb1f5b;}),_0x1edc8e[_0x42fa('0x164')][_0x42fa('0xaa')]['registerPostFixer'](_0x4dccfb=>this[_0x42fa('0x117')](_0x4dccfb)),_0x1edc8e['model'][_0x42fa('0xaa')]['registerPostFixer'](_0x467789=>!_0x467789[_0x42fa('0x88')][_0x42fa('0x147')]&&this['_processAttributeSuggestions'](_0x467789)),_0x1edc8e[_0x42fa('0x164')]['on']('_afterChanges',()=>{this[_0x42fa('0x2f')]=!0x1;}),_0x1edc8e[_0x42fa('0x164')]['document']['on']('change:data',(_0xe6dd3a,_0x205486)=>{if(!_0x205486['isLocal']||_0x205486['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x558f6c=_0x1edc8e[_0x42fa('0x164')]['document']['differ'][_0x42fa('0xb2')]();if(0x0==_0x558f6c['length'])return;const _0xc102bd=[],_0x37f618=_0x558f6c['filter'](_0x22629a=>_0x42fa('0x142')==_0x22629a[_0x42fa('0xbc')]),_0xeac7aa=_0x558f6c['filter'](_0x24ac60=>_0x42fa('0x2c')==_0x24ac60[_0x42fa('0xbc')]&&'$text'!=_0x24ac60[_0x42fa('0x4b')]),_0x40cd09=_0x558f6c['filter'](_0x17b985=>_0x42fa('0x70')==_0x17b985['type']&&'$text'!=_0x17b985[_0x42fa('0x4b')]);for(const _0x1a3e2e of _0x37f618)this[_0x42fa('0x13d')](_0x1a3e2e[_0x42fa('0x14e')])&&_0xc102bd[_0x42fa('0x98')]({'key':_0x1a3e2e[_0x42fa('0x14e')],'newValue':_0x1a3e2e[_0x42fa('0x16e')],'oldValue':_0x1a3e2e[_0x42fa('0x118')],'range':Ut(_0x1a3e2e[_0x42fa('0xdd')],_0x1edc8e[_0x42fa('0x164')])});for(const _0x4831e1 of _0xeac7aa){const _0x5cb1d6=_0x40cd09['find'](_0x234a50=>_0x234a50['_element']===_0x4831e1['_element']);if(_0x5cb1d6){const _0x16e65b=Ot(_0x4831e1[_0x42fa('0xa8')][_0x42fa('0x1b')],_0x1edc8e[_0x42fa('0x164')]);_0x5cb1d6['name']!==_0x4831e1[_0x42fa('0x4b')]&&_0xc102bd[_0x42fa('0x98')]({'key':_0x42fa('0x121'),'newValue':_0x4831e1[_0x42fa('0x4b')],'oldValue':_0x5cb1d6[_0x42fa('0x4b')],'range':_0x16e65b});for(const [_0x5151f0,_0x6c9e0f]of _0x5cb1d6[_0x42fa('0x14a')]){if(!this[_0x42fa('0x13d')](_0x5151f0))continue;const _0xcff039=_0x4831e1[_0x42fa('0x14a')][_0x42fa('0x65')](_0x5151f0);_0x6c9e0f!==_0xcff039&&_0xc102bd[_0x42fa('0x98')]({'key':_0x5151f0,'newValue':_0xcff039,'oldValue':_0x6c9e0f,'range':_0x16e65b});}for(const [_0x29dd07,_0x4ae9e8]of _0x4831e1[_0x42fa('0x14a')])this['_isRegisteredAttribute'](_0x29dd07)&&(_0x5cb1d6[_0x42fa('0x14a')][_0x42fa('0x56')](_0x29dd07)||_0xc102bd['push']({'key':_0x29dd07,'newValue':_0x4ae9e8,'oldValue':null,'range':_0x16e65b}));}}0x0!=_0xc102bd[_0x42fa('0xeb')]&&_0x1edc8e[_0x42fa('0x164')][_0x42fa('0x30')](_0x205486,_0x530d04=>{const _0x538a0a=_0x53d935();for(const {range:_0x715521,key:_0x4d3294,oldValue:_0x2398c3,newValue:_0x2f009b}of _0xc102bd)this['markAttributeChange'](_0x715521,_0x4d3294,_0x2398c3,_0x2f009b,{'groupId':_0x538a0a});this['_reduceExistingSuggestions'](_0x530d04,_0xc102bd);});},{'priority':_0x42fa('0x20')}),_0x1edc8e[_0x42fa('0x164')]['markers']['on'](_0x42fa('0x1d'),(_0xc081cf,_0x8494ee,_0xdc1626)=>{if(null==_0xdc1626){const {id:_0x3ed580}=this[_0x42fa('0xf4')](_0x8494ee['name']),_0x36f889=this[_0x42fa('0xe9')]['get'](_0x3ed580);_0x36f889&&_0x36f889[_0x42fa('0x82')](_0x8494ee[_0x42fa('0x4b')]);}}),_0x1edc8e['model'][_0x42fa('0xaa')]['on']('change:data',()=>{const _0x36a753=Array['from'](_0x1edc8e[_0x42fa('0x164')][_0x42fa('0xaa')][_0x42fa('0x1c')][_0x42fa('0x38')]())[_0x42fa('0x52')](_0xb3b108=>_0x42fa('0x46')===this['_splitMarkerName'](_0xb3b108[_0x42fa('0x4b')])[_0x42fa('0x123')]);if(0x0===_0x36a753[_0x42fa('0xeb')])return;_0x36a753['sort']((_0x50489b,_0x3000d9)=>{const _0x162ae7=_0x50489b[_0x42fa('0xe6')][_0x42fa('0x37')],_0x9f4ed3=_0x3000d9[_0x42fa('0xe6')][_0x42fa('0x37')];return null===_0x162ae7&&null===_0x9f4ed3?0x0:null===_0x162ae7&&null!==_0x9f4ed3?-0x1:null!==_0x162ae7&&null===_0x9f4ed3?0x1:_0x162ae7[_0x42fa('0x157')][_0x42fa('0x15a')](_0x9f4ed3[_0x42fa('0x157')])?-0x1:0x1;});const _0x311f91=new Set(),_0x3220c3=new Set();for(const {name:_0x3b2e1e,data:_0xe296bd}of _0x36a753){const {id:_0x125afa}=this[_0x42fa('0xf4')](_0x3b2e1e);if(null===_0xe296bd[_0x42fa('0x37')]){const _0x357c19=this[_0x42fa('0xed')](_0x3b2e1e);_0x3220c3[_0x42fa('0xc7')](_0x357c19);}else{const _0x5d31ec=this['_suggestions'][_0x42fa('0x65')](_0x125afa);null!==_0xe296bd[_0x42fa('0xe8')]||_0x5d31ec[_0x42fa('0xb6')]?(_0x311f91[_0x42fa('0xc7')](_0x5d31ec[_0x42fa('0x45')]),_0x3220c3[_0x42fa('0xc7')](_0x5d31ec)):this[_0x42fa('0x13b')](_0x5d31ec);}}_0x3220c3[_0x42fa('0x8c')]>0x0&&this[_0x42fa('0x11b')](_0x3220c3);for(const _0x18e634 of _0x311f91)this[_0x42fa('0x12c')](_0x42fa('0xf5'),_0x18e634);}),_0x1edc8e['model']['on'](_0x42fa('0x80'),(_0x257a6e,_0x2a7b30)=>{const _0x472f93=_0x2a7b30[0x0];if(!this['_suggestions'][_0x42fa('0x8c')])return;if(!_0x472f93['isDocumentOperation'])return;if(_0x472f93[_0x42fa('0x88')][_0x42fa('0x6a')]||!_0x472f93[_0x42fa('0x88')][_0x42fa('0x147')])return;let _0x16b2d7,_0x22734e;switch(_0x472f93[_0x42fa('0xbc')]){case _0x42fa('0x2c'):_0x16b2d7=_0x1edc8e[_0x42fa('0x164')][_0x42fa('0x2')](_0x472f93[_0x42fa('0xa8')]),_0x22734e=_0x16b2d7[_0x42fa('0x91')](_0x472f93[_0x42fa('0x66')]);break;case'split':_0x16b2d7=_0x1edc8e[_0x42fa('0x164')][_0x42fa('0x2')](_0x472f93[_0x42fa('0x10a')]),_0x22734e=_0x1edc8e[_0x42fa('0x164')][_0x42fa('0x2')](_0x472f93[_0x42fa('0x153')]);break;case _0x42fa('0x73'):_0x16b2d7=_0x1edc8e['model'][_0x42fa('0x2')](_0x472f93['targetPosition']),_0x22734e=_0x16b2d7[_0x42fa('0x91')](_0x472f93[_0x42fa('0x66')]);break;default:return;}const _0x496b9d=_0x1edc8e[_0x42fa('0x164')][_0x42fa('0x116')](_0x16b2d7,_0x22734e);_0x1edc8e[_0x42fa('0x164')][_0x42fa('0xf0')](()=>{for(const {suggestion:_0x15d52f,meta:_0x59b630}of this[_0x42fa('0xb5')](_0x496b9d)){if(_0x15d52f[_0x42fa('0xc')])continue;if(_0x42fa('0xff')==_0x15d52f[_0x42fa('0xbc')])continue;const _0x44f3c4=this['_getAttributeKey'](_0x15d52f);if(_0x44f3c4&&this[_0x42fa('0x5b')](_0x44f3c4)&&'split'!=_0x472f93['type'])continue;const _0x54ce7e=_0x15d52f[_0x42fa('0xe6')]&&_0x15d52f[_0x42fa('0xe6')][_0x42fa('0x9f')];(_0x42fa('0x60')!=_0x15d52f[_0x42fa('0xbc')]||_0x42fa('0x136')==_0x472f93[_0x42fa('0xbc')]&&!_0x54ce7e)&&(_0x59b630[_0x42fa('0xdc')]||_0x42fa('0x11e')==_0x15d52f[_0x42fa('0xbc')]&&_0x59b630[_0x42fa('0xd0')]||_0x15d52f[_0x42fa('0xcf')]()[_0x42fa('0x10b')](_0x496b9d)&&this[_0x42fa('0x13f')](_0x15d52f,_0x16b2d7,_0x22734e));}});},{'priority':_0x42fa('0x20')}),_0x1edc8e[_0x42fa('0x164')]['on'](_0x42fa('0x64'),(_0x3acee3,_0x38fbe1)=>{const _0x2c931a=_0x38fbe1[0x0],_0x16b64a=_0x38fbe1[0x1];if(_0x16b64a&&_0x16b64a[_0x42fa('0xf9')])return;if(this[_0x42fa('0x151')])return;if(!this[_0x42fa('0x86')][_0x42fa('0xe2')])return;if(_0x2c931a['isCollapsed'])return;const _0x1f7061=_0x1edc8e[_0x42fa('0x164')][_0x42fa('0x133')],{start:_0x23e82c,end:_0x4d8321}=_0x2c931a[_0x42fa('0xcf')](),_0x26da79=_0x23e82c['nodeAfter']&&_0x1f7061['isLimit'](_0x23e82c['nodeAfter'])?null:_0x1f7061[_0x42fa('0x159')](_0x23e82c,_0x42fa('0x21')),_0x7748c3=_0x4d8321[_0x42fa('0x94')]&&_0x1f7061[_0x42fa('0x81')](_0x4d8321['nodeBefore'])?null:_0x1f7061[_0x42fa('0x159')](_0x4d8321,'backward'),_0x116262=_0x1edc8e['model'][_0x42fa('0x116')](_0x26da79?_0x26da79[_0x42fa('0x157')]:_0x23e82c,_0x7748c3?_0x7748c3['end']:_0x4d8321);_0x1edc8e[_0x42fa('0x164')][_0x42fa('0xf0')](_0x4128bb=>{this[_0x42fa('0x62')](_0x116262);const _0x309ed0=_0x1edc8e['model']['schema'][_0x42fa('0x159')](_0x116262['start']);_0x2c931a['is'](_0x42fa('0x8a'))?_0x4128bb[_0x42fa('0xd1')](_0x309ed0):_0x2c931a[_0x42fa('0x4f')](_0x309ed0);}),_0x3acee3[_0x42fa('0x11')]();},{'priority':_0x4f77bf[_0x42fa('0x1')]+0xa}),_0x1edc8e[_0x42fa('0x164')]['on'](_0x42fa('0x24'),(_0x44dfd9,_0x38f299)=>{const _0x3beea2=_0x38f299[_0x38f299[_0x42fa('0xeb')]-0x1];_0x3beea2&&_0x3beea2[_0x42fa('0xf9')]||this[_0x42fa('0x151')]||this['trackChangesCommand'][_0x42fa('0xe2')]&&(_0x1edc8e[_0x42fa('0x164')][_0x42fa('0xf0')](()=>{let _0x5210fb=_0x1edc8e['model'][_0x42fa('0x24')](_0x38f299[0x0],_0x38f299[0x1],_0x38f299[0x2],{'forceDefaultExecution':!0x0});if(!_0x5210fb)return;_0x44dfd9[_0x42fa('0x145')]=_0x5210fb['clone']();const _0x3a63f8=_0x5210fb[_0x42fa('0xfd')]['nodeBefore'],_0x1549aa=_0x1edc8e[_0x42fa('0x164')]['schema'];_0x3a63f8&&_0x1549aa['isBlock'](_0x3a63f8)&&!_0x1549aa[_0x42fa('0xa4')](_0x3a63f8)&&(_0x5210fb=_0x1edc8e[_0x42fa('0x164')][_0x42fa('0x116')](_0x5210fb[_0x42fa('0x157')],_0x1edc8e[_0x42fa('0x164')][_0x42fa('0x2')](_0x3a63f8,_0x42fa('0xfd')))),this[_0x42fa('0x150')](_0x5210fb);}),_0x44dfd9['stop']());},{'priority':'high'}),this[_0x42fa('0x12a')]['commands'][_0x42fa('0xc7')]('trackChanges',this[_0x42fa('0x86')]),this[_0x42fa('0x13')]('trackChanges');const _0x36b7fe=new _0x2ea012(_0x1edc8e,this[_0x42fa('0xe9')]);_0x1edc8e['commands'][_0x42fa('0xc7')]('acceptSuggestion',_0x36b7fe),this[_0x42fa('0x13')]('acceptSuggestion');const _0x3b36d4=new _0x4aff2c(_0x1edc8e,this[_0x42fa('0xe9')]);_0x1edc8e[_0x42fa('0xd3')][_0x42fa('0xc7')](_0x42fa('0x15c'),_0x3b36d4),this[_0x42fa('0x13')](_0x42fa('0x15c')),_0x1edc8e[_0x42fa('0xd3')]['add'](_0x42fa('0xa3'),new _0x52c666(_0x1edc8e,_0x36b7fe,this[_0x42fa('0xe9')])),this['enableCommand'](_0x42fa('0xa3')),_0x1edc8e[_0x42fa('0xd3')][_0x42fa('0xc7')](_0x42fa('0x61'),new _0x52c666(_0x1edc8e,_0x3b36d4,this[_0x42fa('0xe9')])),this['enableCommand'](_0x42fa('0x61')),_0x1edc8e['commands'][_0x42fa('0xc7')](_0x42fa('0xd'),new _0x1c3353(_0x1edc8e,_0x36b7fe,this[_0x42fa('0xe9')])),this['enableCommand'](_0x42fa('0xd')),_0x1edc8e[_0x42fa('0xd3')][_0x42fa('0xc7')](_0x42fa('0x25'),new _0x1c3353(_0x1edc8e,_0x3b36d4,this[_0x42fa('0xe9')])),this[_0x42fa('0x13')](_0x42fa('0x25'));const _0x501a07=_0x1edc8e[_0x42fa('0x103')][_0x42fa('0x65')](_0x42fa('0x9b'));this[_0x42fa('0x32')](_0x501a07,_0x42fa('0x22'),(_0x2f28bb,{threadId:_0x32b741})=>{const _0x3e7a03=this[_0x42fa('0xe9')]['get'](_0x32b741);_0x3e7a03&&_0x3e7a03[_0x42fa('0xc4')]&&0x1===_0x3e7a03[_0x42fa('0xc4')][_0x42fa('0xeb')]&&this[_0x42fa('0x4c')](_0x32b741,{'hasComments':!0x0});},{'priority':_0x42fa('0xfb')}),this['listenTo'](_0x501a07,'removeComment',(_0x138196,{threadId:_0x124aba})=>{const _0x18ab58=this[_0x42fa('0xe9')][_0x42fa('0x65')](_0x124aba);_0x18ab58&&_0x18ab58[_0x42fa('0xc4')]&&!_0x18ab58[_0x42fa('0xc4')]['length']&&this[_0x42fa('0x4c')](_0x124aba,{'hasComments':!0x1});},{'priority':'low'});}set[_0x42fa('0xd2')](_0x39d11d){if(this[_0x42fa('0xad')])throw new _0x6b7fca('track-changes-adapter-already-set',this);this[_0x42fa('0xad')]=_0x39d11d;}get[_0x42fa('0xd2')](){return this['_adapter'];}[_0x42fa('0xa9')]({skipNotAttached:_0x4a9293=!0x1,toJSON:_0x480e86=!0x1}={}){const _0x3c593d=[];for(const _0x2a7f3b of this[_0x42fa('0xe9')][_0x42fa('0xde')]())_0x4a9293&&!_0x2a7f3b[_0x42fa('0xb6')]||_0x3c593d[_0x42fa('0x98')](_0x2a7f3b);return _0x480e86?_0x3c593d[_0x42fa('0x104')](_0x2b3ea5=>_0x2b3ea5[_0x42fa('0x2a')]()):_0x3c593d;}['getSuggestion'](_0x3e78e4){const _0x19a390=this['_suggestions']['get'](_0x3e78e4);if(!_0x19a390)throw new _0x6b7fca(_0x42fa('0x5'),this);return _0x19a390;}[_0x42fa('0x149')](_0x4a1e8b){return this[_0x42fa('0xe9')]['has'](_0x4a1e8b);}[_0x42fa('0xcd')](_0x5126a6){const {authorId:_0x253b8f,id:_0x3e75bc,attributes:_0x295471}=_0x5126a6,[_0xa6830d,_0x508217]=_0x5126a6['type'][_0x42fa('0x136')](':'),_0x4c4a68=this[_0x42fa('0xe9')]['get'](_0x3e75bc)||this[_0x42fa('0xb4')](_0xa6830d,_0x508217,_0x3e75bc,_0x253b8f,_0x295471);if(this[_0x42fa('0xf1')](_0x4c4a68),this[_0x42fa('0x33')](_0x4c4a68,_0xa6830d,_0x508217||null,_0x253b8f),_0x4c4a68[_0x42fa('0xe5')]=_0x5126a6[_0x42fa('0xe5')],_0x4c4a68[_0x42fa('0x67')]=!0x0,_0x295471&&_0x295471[_0x42fa('0x7d')]){const _0x5e8fd7=_0x295471[_0x42fa('0x7d')],_0x4e545e=this[_0x42fa('0xb')](_0x5e8fd7[_0x42fa('0x8e')]);_0x4c4a68[_0x42fa('0x87')]=_0x5e8fd7['createdAt'],_0x4c4a68[_0x42fa('0x140')]=_0x4e545e,_0x4c4a68['isExternal']=!0x0;}else _0x4c4a68[_0x42fa('0x87')]=_0x5126a6[_0x42fa('0xe5')];switch(_0x5126a6[_0x42fa('0xe6')]&&(_0x4c4a68['data']=_0x5126a6[_0x42fa('0xe6')]),_0x5126a6[_0x42fa('0x14a')]&&(_0x4c4a68['attributes']=_0x5126a6[_0x42fa('0x14a')]),this[_0x42fa('0xad')]&&this[_0x42fa('0xad')][_0x42fa('0x6')]||(_0x4c4a68[_0x42fa('0x16b')]=!0x0),this[_0x42fa('0x119')][_0x42fa('0x65')](_0x4c4a68)){case'notReady':this[_0x42fa('0x119')][_0x42fa('0xb7')](_0x4c4a68,_0x42fa('0x9e'));break;case _0x42fa('0x160'):_0x4c4a68[_0x42fa('0xb6')]?(this['_joinWithAdjacentSuggestions'](new Set([_0x4c4a68])),this['_refreshSuggestionsChain'](new Set([_0x4c4a68])),this[_0x42fa('0x119')][_0x42fa('0xb7')](_0x4c4a68,'ready'),this[_0x42fa('0x12c')](_0x42fa('0x3c'),_0x4c4a68)):this[_0x42fa('0x119')]['set'](_0x4c4a68,_0x42fa('0x15e'));}return _0x4c4a68;}[_0x42fa('0x141')](_0x333232){this[_0x42fa('0xf9')](()=>{this[_0x42fa('0x12a')][_0x42fa('0x164')][_0x42fa('0xf0')](()=>{for(const _0x5be272 of _0x333232[_0x42fa('0x4a')]())_0x5be272[_0x42fa('0x7')]();});});}[_0x42fa('0x15c')](_0x36490e){this[_0x42fa('0xf9')](()=>{this[_0x42fa('0x12a')][_0x42fa('0x164')]['change'](()=>{for(const _0x1b68fb of _0x36490e[_0x42fa('0x4a')]())_0x1b68fb[_0x42fa('0x51')]();});});}[_0x42fa('0x13')](_0x3465a0,_0x15a34a){const _0x1334c5=this['editor'][_0x42fa('0xd3')]['get'](_0x3465a0);if(!_0x1334c5)throw new _0x6b7fca(_0x42fa('0xe7'),this,{'commandName':_0x3465a0});if(this[_0x42fa('0x11c')]['has'](_0x1334c5))throw new _0x6b7fca(_0x42fa('0x112'),this,{'commandName':_0x3465a0});this[_0x42fa('0x11c')][_0x42fa('0xc7')](_0x1334c5),_0x15a34a&&_0x1334c5['on']('execute',(_0x39f976,_0x8e446d)=>{this[_0x42fa('0x86')][_0x42fa('0xe2')]&&(this[_0x42fa('0x151')]||(_0x8e446d[_0x42fa('0xeb')]>0x0&&_0x8e446d[_0x8e446d[_0x42fa('0xeb')]-0x1]&&_0x8e446d[_0x8e446d[_0x42fa('0xeb')]-0x1][_0x42fa('0xf9')]?_0x8e446d[_0x42fa('0xf6')]():(_0x39f976[_0x42fa('0x145')]=_0x15a34a((..._0x1a3049)=>_0x1334c5['execute'](..._0x1a3049,{'forceDefaultExecution':!0x0}),..._0x8e446d),_0x39f976['stop']())));},{'priority':'high'});}[_0x42fa('0xf9')](_0x4b2ae9){let _0x4d3172,_0x3d445b;const _0x5a119e=this[_0x42fa('0x151')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4d3172=_0x4b2ae9();}catch(_0x384197){_0x3d445b=_0x384197;}return _0x5a119e||(this[_0x42fa('0x151')]=!0x1),_0x3d445b&&_0x6b7fca[_0x42fa('0xc3')](_0x3d445b,this),_0x4d3172;}[_0x42fa('0x150')](_0xb613b0,_0x4094a3=null,_0x5e0309={}){if(_0xb613b0[_0x42fa('0xd4')])return null;const _0x5ac991=this['editor'][_0x42fa('0x103')][_0x42fa('0x65')]('Users')['me'];for(const {suggestion:_0x377501,meta:_0x34a23c}of this[_0x42fa('0xb5')](_0xb613b0,_0x42fa('0x11e')))if(_0x34a23c[_0x42fa('0xd0')]){if(!_0x34a23c['isNextTo']){if(_0x34a23c[_0x42fa('0xdc')]){if(!this[_0x42fa('0x9a')]||!Pt(_0x377501,_0x5e0309))continue;return _0x377501;}if(Pt(_0x377501,_0x5e0309))return _0x377501;this[_0x42fa('0x13f')](_0x377501,_0xb613b0[_0x42fa('0x157')],_0xb613b0[_0x42fa('0xfd')]);break;}if(_0x4094a3==_0x377501[_0x42fa('0x11f')]&&Pt(_0x377501,_0x5e0309)){const _0x51b263=_0x377501[_0x42fa('0xcf')]();return _0x51b263['start'][_0x42fa('0xa1')](_0xb613b0['end'])?this[_0x42fa('0x8d')](_0x377501,this[_0x42fa('0xe3')][_0x42fa('0x116')](_0xb613b0[_0x42fa('0x157')],_0x51b263['end'])):this[_0x42fa('0x8d')](_0x377501,this[_0x42fa('0xe3')][_0x42fa('0x116')](_0x51b263['start'],_0xb613b0[_0x42fa('0xfd')])),_0x377501;}}const _0x4058de=_0x53d935(),_0x24822a=_0x5ac991['id'],_0x121b7c=_0x4094a3?'insertion:'+_0x4094a3:_0x42fa('0x11e'),_0x181e7c=this[_0x42fa('0xb0')]({'id':_0x4058de,'type':_0x121b7c,'createdAt':new Date(),'authorId':_0x24822a,'attributes':_0x5e0309});return this[_0x42fa('0xee')](_0x121b7c,_0x4058de,_0x24822a,_0xb613b0),_0x181e7c;}[_0x42fa('0x7a')](_0x7bd5a9,_0xc3cf7d='multi',_0x1fa139={}){const _0x2433ca=this['editor'][_0x42fa('0x103')]['get'](_0x42fa('0x12e'))['me'],_0x3ce3fc=this[_0x42fa('0x111')][_0x42fa('0x144')]('insertion',_0xc3cf7d,'join');for(const _0x2bb569 of this[_0x42fa('0xa9')]())if(_0x2bb569['author']['id']==_0x2433ca['id']&&_0x42fa('0x11e')==_0x2bb569['type']&&_0x2bb569[_0x42fa('0x11f')]==_0xc3cf7d&&Pt(_0x2bb569,_0x1fa139)&&(_0x3ce3fc(_0x2bb569[_0x42fa('0xd8')](),_0x7bd5a9)||_0x3ce3fc(_0x7bd5a9,_0x2bb569[_0x42fa('0xd8')]()))){for(const _0x2aed3a of _0x7bd5a9)_0x2bb569[_0x42fa('0x138')](_0x2aed3a);return _0x2bb569;}for(const {suggestion:_0x1924f8,meta:_0x24d1bd}of this[_0x42fa('0xb5')](_0x7bd5a9,'insertion')){if(!_0x24d1bd[_0x42fa('0xd0')])continue;if(!this[_0x42fa('0x9a')]&&_0x24d1bd[_0x42fa('0xdc')])continue;if(!Pt(_0x1924f8,_0x1fa139))continue;let _0x2959b0=!0x0;for(const _0x79da9a of _0x1924f8[_0x42fa('0xd8')]())for(const _0x2da55d of _0x7bd5a9)if(!_0x79da9a[_0x42fa('0x10b')](_0x2da55d)){_0x2959b0=!0x1;break;}if(_0x2959b0)return _0x1924f8;}const _0x5ef322=_0x53d935(),_0x4dd837=_0x2433ca['id'],_0xb4909d='insertion:'+_0xc3cf7d,_0x30b239=this[_0x42fa('0xb0')]({'id':_0x5ef322,'type':_0xb4909d,'createdAt':new Date(),'authorId':_0x4dd837,'attributes':_0x1fa139});for(const _0x2fb64a of _0x7bd5a9)this['_addSuggestionMarker'](_0xb4909d,_0x5ef322,_0x4dd837,_0x2fb64a,_0x5839fd[_0x42fa('0x26')]());return _0x30b239;}[_0x42fa('0xa2')](_0x469888,_0x1a43ef,_0x2462ab=null,_0x14ab74={}){if(_0x2462ab=_0x2462ab||Et(_0x1a43ef),_0x469888[_0x42fa('0xd4')])return null;if(_0x42fa('0x90')===this[_0x42fa('0x7c')]){const _0x3800b6=this[_0x42fa('0x111')][_0x42fa('0x144')]('formatInline',_0x2462ab,_0x42fa('0x7'));return this[_0x42fa('0xf9')](()=>_0x3800b6([_0x469888],_0x1a43ef,_0x14ab74)),null;}const _0xe82007=this[_0x42fa('0x12a')][_0x42fa('0x103')][_0x42fa('0x65')]('Users')['me'],_0x154284=[];if(_0x42fa('0x130')!==this[_0x42fa('0x7c')])for(const {suggestion:_0x3f750c,meta:_0xab24be}of this[_0x42fa('0xb5')](_0x469888,'insertion'))_0xab24be[_0x42fa('0xd0')]&&!_0xab24be['isInsideObject']&&_0x154284[_0x42fa('0x98')](..._0x3f750c[_0x42fa('0xd8')]());const _0x4858b4=function(_0x20979b,_0x3fe9ab){const _0x4b7e10=[];for(const _0x1e1928 of _0x3fe9ab){const _0x45f10c=_0x20979b[_0x42fa('0x11a')](_0x1e1928);_0x45f10c&&_0x4b7e10[_0x42fa('0x98')](_0x45f10c);}return _0x4b7e10;}(_0x469888,_0x154284),_0x63797e=function(_0x404b4b,_0x580a17){const _0x1ff16d=[_0x404b4b];for(const _0x26a95f of _0x580a17){let _0x5b2c4f=0x0;for(;_0x5b2c4f<_0x1ff16d['length'];){const _0x434d2a=_0x1ff16d[_0x5b2c4f][_0x42fa('0x16a')](_0x26a95f);_0x1ff16d['splice'](_0x5b2c4f,0x1,..._0x434d2a),_0x5b2c4f+=_0x434d2a['length'];}}return _0x1ff16d;}(_0x469888,_0x154284);_0x4858b4[_0x42fa('0xeb')]&&this[_0x42fa('0xe3')][_0x42fa('0xf0')](()=>{for(const _0x30d0a5 of _0x4858b4){const _0x390fd8=this[_0x42fa('0x111')][_0x42fa('0x144')]('formatInline',_0x2462ab,_0x42fa('0x7'));this[_0x42fa('0xf9')](()=>_0x390fd8([_0x30d0a5],_0x1a43ef,_0x14ab74));}});for(const _0x5f4af8 of _0x63797e){let _0x42d3b3=null,_0x51aaac=_0x5f4af8[_0x42fa('0x157')],_0x562712=_0x5f4af8[_0x42fa('0xfd')];for(const {suggestion:_0x1d27ae,meta:_0x2dd1d6}of this[_0x42fa('0xb5')](_0x5f4af8,_0x42fa('0xff'))){if(!_0x2dd1d6['isOwn'])continue;if(_0x1d27ae[_0x42fa('0x11f')]!=_0x2462ab)continue;if(!Pt(_0x1d27ae,_0x14ab74))continue;const _0x5775a3=_0x1d27ae['getFirstRange']();if(_0x5775a3['containsRange'](_0x5f4af8,!0x0))return null;_0x51aaac=_0x51aaac[_0x42fa('0x15a')](_0x5775a3[_0x42fa('0x157')])?_0x51aaac:_0x5775a3[_0x42fa('0x157')],_0x562712=_0x562712[_0x42fa('0x155')](_0x5775a3['end'])?_0x562712:_0x5775a3[_0x42fa('0xfd')],_0x42d3b3?_0x5775a3['start'][_0x42fa('0x15a')](_0x42d3b3[_0x42fa('0xcf')]()[_0x42fa('0x157')])?(_0x42d3b3[_0x42fa('0x9c')](),_0x42d3b3=_0x1d27ae):_0x1d27ae[_0x42fa('0x9c')]():_0x42d3b3=_0x1d27ae;}const _0x135fed=this[_0x42fa('0xe3')][_0x42fa('0x116')](_0x51aaac,_0x562712);if(_0x42d3b3)this[_0x42fa('0x8d')](_0x42d3b3,_0x135fed);else{const _0x4623ad=_0x53d935(),_0x550633=_0xe82007['id'];this[_0x42fa('0xb0')]({'id':_0x4623ad,'type':'formatInline:'+_0x2462ab,'data':_0x1a43ef,'createdAt':new Date(),'authorId':_0x550633,'attributes':_0x14ab74}),this['_addSuggestionMarker'](_0x42fa('0x131')+_0x2462ab,_0x4623ad,_0x550633,_0x135fed);}}return null;}[_0x42fa('0xe1')](_0x3bf57d,_0x289b70,_0x4a822c=[],_0x86527a=null,_0x7dd577={}){_0x289b70[_0x42fa('0x15')]||(_0x289b70[_0x42fa('0x15')]=_0x289b70[_0x42fa('0x2e')]),_0x289b70[_0x42fa('0x9f')]=_0x3bf57d['is']('range'),_0x86527a=_0x86527a||Et(_0x289b70);const _0x2f23a6=_0x4a822c['map'](_0x14b324=>Ot(_0x14b324,this[_0x42fa('0xe3')])),_0x3f45ee=_0x3bf57d['is'](_0x42fa('0xdd'))?_0x3bf57d:Ot(_0x3bf57d,this['_model']);if(_0x42fa('0x90')===this['_trackFormatChanges']){const _0x4d9c94=this[_0x42fa('0x111')][_0x42fa('0x144')](_0x42fa('0x60'),_0x86527a,_0x42fa('0x7'));return this['forceDefaultExecution'](()=>_0x4d9c94([_0x3f45ee],_0x289b70,_0x7dd577)),null;}_0x2f23a6['push'](_0x3f45ee);let _0x23c830=!0x0;for(const _0x23269d of _0x2f23a6)if(!this[_0x42fa('0xcc')](_0x23269d)){_0x23c830=!0x1;break;}if(_0x23c830&&_0x42fa('0x130')!==this['_trackFormatChanges']){const _0x11948b=this[_0x42fa('0x111')]['getSuggestionCallback'](_0x42fa('0x60'),_0x86527a,_0x42fa('0x7'));return this[_0x42fa('0xf9')](()=>_0x11948b([_0x3f45ee],_0x289b70,_0x7dd577)),null;}let _0x2caeb7=null,_0x456511=_0x3f45ee[_0x42fa('0x157')],_0x309833=_0x3f45ee['end'];for(const {suggestion:_0x38cff1,meta:_0x3b7332}of this['_findSuggestions'](_0x3f45ee,'formatBlock')){if(!_0x3b7332[_0x42fa('0xd0')])continue;if(_0x3b7332[_0x42fa('0x41')]||_0x3b7332[_0x42fa('0xdc')]||_0x3b7332[_0x42fa('0x13a')])continue;if(_0x38cff1['data'][_0x42fa('0x15')]!=_0x289b70[_0x42fa('0x15')])continue;if(!Pt(_0x38cff1,_0x7dd577))continue;const _0x32a5dc=_0x38cff1[_0x42fa('0xcf')]();if(_0x38cff1[_0x42fa('0x11f')]==_0x86527a){if(_0x32a5dc[_0x42fa('0x10b')](_0x3f45ee,!0x0))return null;_0x456511=_0x456511['isBefore'](_0x32a5dc[_0x42fa('0x157')])?_0x456511:_0x32a5dc[_0x42fa('0x157')],_0x309833=_0x309833['isAfter'](_0x32a5dc[_0x42fa('0xfd')])?_0x309833:_0x32a5dc[_0x42fa('0xfd')],_0x2caeb7?_0x32a5dc[_0x42fa('0x157')]['isBefore'](_0x2caeb7[_0x42fa('0xcf')]()['start'])?(_0x2caeb7[_0x42fa('0x9c')](),_0x2caeb7=_0x38cff1):_0x38cff1['removeMarkers']():_0x2caeb7=_0x38cff1;}else{const _0x1321d1=_0x3f45ee[_0x42fa('0x11a')](_0x32a5dc);this[_0x42fa('0x148')](_0x38cff1,_0x1321d1);}}const _0x43464f=this[_0x42fa('0x12a')]['plugins']['get']('Users')['me'],_0xe26413=_0x53d935(),_0x54e921=_0x43464f['id'];if(_0x2caeb7)return this[_0x42fa('0x8d')](_0x2caeb7,this[_0x42fa('0xe3')][_0x42fa('0x116')](_0x456511,_0x309833)),_0x2caeb7;{const _0x20e43b=this[_0x42fa('0xb0')]({'id':_0xe26413,'type':_0x42fa('0xf7')+_0x86527a,'data':_0x289b70,'createdAt':new Date(),'authorId':_0x54e921,'attributes':_0x7dd577});return this[_0x42fa('0xee')]('formatBlock:'+_0x86527a,_0xe26413,_0x54e921,this[_0x42fa('0xe3')]['createRange'](_0x456511,_0x309833)),_0x20e43b;}}[_0x42fa('0x105')](_0x3fb9fe,_0x417527,_0x5cf33d=[],_0x251b9b=null,_0x4b0ccc={}){_0x417527[_0x42fa('0x15')]||(_0x417527[_0x42fa('0x15')]=_0x417527[_0x42fa('0x2e')]);const _0xf8a0ce=_0x3fb9fe[0x0];_0x417527['multipleBlocks']=_0xf8a0ce['is']('range'),_0x251b9b=_0x251b9b||Et(_0x417527);const _0x5bb01f=_0x5cf33d[_0x42fa('0x104')](_0x3dcd93=>Ot(_0x3dcd93,this['_model'])),_0x36670c=_0xf8a0ce['is']('range')?_0x3fb9fe:_0x3fb9fe[_0x42fa('0x104')](_0x1b11ba=>Ot(_0x1b11ba,this['_model']));if(_0x42fa('0x90')===this[_0x42fa('0x7c')]){const _0xe75cfe=this[_0x42fa('0x111')][_0x42fa('0x144')]('formatBlock',_0x251b9b,_0x42fa('0x7'));return this[_0x42fa('0xf9')](()=>_0xe75cfe(_0x36670c,_0x417527,_0x4b0ccc)),null;}_0x5bb01f[_0x42fa('0x98')](..._0x36670c);let _0x47ca8e=!0x0;for(const _0x18e1ce of _0x5bb01f)if(!this[_0x42fa('0xcc')](_0x18e1ce)){_0x47ca8e=!0x1;break;}if(_0x47ca8e&&_0x42fa('0x130')!==this[_0x42fa('0x7c')]){const _0x1d5d41=this[_0x42fa('0x111')]['getSuggestionCallback'](_0x42fa('0x60'),_0x251b9b,'accept');return this[_0x42fa('0xf9')](()=>_0x1d5d41(_0x36670c,_0x417527,_0x4b0ccc)),null;}const _0x275950=this[_0x42fa('0x12a')][_0x42fa('0x103')][_0x42fa('0x65')](_0x42fa('0x12e'))['me'];for(const _0x4fe255 of this[_0x42fa('0xa9')]()){if(_0x4fe255['author']['id']!=_0x275950['id'])continue;if('formatBlock'!=_0x4fe255[_0x42fa('0xbc')]||_0x4fe255[_0x42fa('0xe6')]['formatGroupId']!=_0x417527['formatGroupId'])continue;if(!Pt(_0x4fe255,_0x4b0ccc))continue;const _0x3f5016=_0x4fe255['subType']==_0x251b9b;for(let _0x162b3d=0x0;_0x162b3d<_0x36670c[_0x42fa('0xeb')];_0x162b3d++){const _0x41bae6=_0x36670c[_0x162b3d];for(const _0x44de42 of _0x4fe255[_0x42fa('0x50')]()){const _0x45b4e1=_0x44de42['getRange']();if(_0x41bae6[_0x42fa('0xa1')](_0x45b4e1)){_0x3f5016?(_0x36670c[_0x42fa('0x96')](_0x162b3d,0x1),_0x162b3d--):_0x4fe255[_0x42fa('0x110')](_0x44de42[_0x42fa('0x4b')]);break;}}}}if(0x0==_0x36670c['length'])return null;const _0x3f40bc=this[_0x42fa('0x111')][_0x42fa('0x144')](_0x42fa('0x60'),_0x251b9b,_0x42fa('0x12f'));for(const _0x3a0e97 of this['getSuggestions']())if(_0x3a0e97[_0x42fa('0x140')]['id']==_0x275950['id']&&_0x42fa('0x60')==_0x3a0e97[_0x42fa('0xbc')]&&_0x3a0e97['data'][_0x42fa('0x15')]==_0x417527[_0x42fa('0x15')]&&_0x3a0e97[_0x42fa('0x11f')]==_0x251b9b&&Pt(_0x3a0e97,_0x4b0ccc)&&(_0x3f40bc(_0x3a0e97[_0x42fa('0xd8')](),_0x36670c)||_0x3f40bc(_0x36670c,_0x3a0e97[_0x42fa('0xd8')]()))){for(const _0xd8c4db of _0x36670c)_0x3a0e97[_0x42fa('0x138')](_0xd8c4db);return _0x3a0e97;}const _0x42aac8=_0x53d935(),_0x1150b9=_0x275950['id'],_0x12346b=_0x42fa('0xf7')+_0x251b9b,_0x4aada1=this[_0x42fa('0xb0')]({'id':_0x42aac8,'type':_0x12346b,'data':_0x417527,'createdAt':new Date(),'authorId':_0x1150b9,'attributes':_0x4b0ccc});for(const _0x5d3df7 of _0x36670c)this[_0x42fa('0xee')](_0x12346b,_0x42aac8,_0x1150b9,_0x5d3df7,_0x5839fd['getMultiRangeId']());return _0x4aada1;}[_0x42fa('0x62')](_0x57403c,_0x560ba3=null,_0x59f171={}){if(_0x57403c[_0x42fa('0xd4')])return null;const _0x435d32=this['editor'][_0x42fa('0x103')][_0x42fa('0x65')]('Users')['me'],_0x529264=new _0x3f221e(_0x57403c[_0x42fa('0x157')],_0x57403c[_0x42fa('0xfd')]);for(const {suggestion:_0x7f3403,meta:_0x157989}of this[_0x42fa('0xb5')](_0x529264,'insertion'))if(_0x157989[_0x42fa('0xd0')]&&!_0x157989[_0x42fa('0x41')]){if(_0x7f3403[_0x42fa('0xc')]){const _0xcf3e12=_0x7f3403[_0x42fa('0xd8')]()[_0x42fa('0x52')](_0x21f7e0=>_0x42fa('0x8')!=_0x21f7e0['root'][_0x42fa('0x11d')]);_0xcf3e12[_0x42fa('0x1e')](_0x1a9662=>_0x529264[_0x42fa('0x10b')](_0x1a9662,!0x0))&&_0x7f3403[_0x42fa('0x51')]();if(_0xcf3e12[_0x42fa('0x146')](_0x281e12=>_0x281e12[_0x42fa('0x10b')](_0x529264,!0x0))){const _0x48c713=this[_0x42fa('0x111')][_0x42fa('0x144')]('deletion',_0x560ba3,_0x42fa('0x7'));return this[_0x42fa('0xf9')](()=>_0x48c713([_0x529264],null,_0x59f171)),null;}}else{const _0x3d1d03=_0x529264[_0x42fa('0x11a')](_0x7f3403[_0x42fa('0xcf')]());null!==_0x3d1d03&&_0x7f3403['_onDiscard']([_0x3d1d03],null,_0x59f171);}}if(_0x529264[_0x42fa('0x10c')](),_0x529264[_0x42fa('0xd4')]||_0x42fa('0x8')==_0x529264[_0x42fa('0xef')][_0x42fa('0x11d')])return null;let _0x2a77a3=null,_0x26803c=_0x529264[_0x42fa('0x157')],_0x39dbbb=_0x529264[_0x42fa('0xfd')];const _0x341d2d=this[_0x42fa('0xb5')](_0x529264,_0x42fa('0x127'));for(const {suggestion:_0x55a590,meta:_0x2b40ee}of _0x341d2d){const _0x52c2ed=this['_model'][_0x42fa('0x116')](_0x26803c,_0x39dbbb);if(_0x2b40ee[_0x42fa('0xd0')]&&(this['_mergeNestedSuggestions']||!_0x2b40ee['containsRangeInObject']&&!_0x2b40ee[_0x42fa('0x13a')])){if(_0x55a590[_0x42fa('0xc')]){if(!Pt(_0x55a590,_0x59f171))continue;let _0x3b9c66=!0x0;for(const _0x6b01f1 of _0x55a590[_0x42fa('0xd8')]()){if(_0x6b01f1[_0x42fa('0x10b')](_0x52c2ed,!0x0))return _0x55a590;_0x52c2ed[_0x42fa('0x10b')](_0x6b01f1)||(_0x3b9c66=!0x1);}_0x3b9c66&&_0x55a590[_0x42fa('0x51')]();}else{const _0x41edc5=_0x55a590[_0x42fa('0xcf')]();if(_0x41edc5[_0x42fa('0x10b')](_0x52c2ed,!0x0))return _0x55a590;if(!Pt(_0x55a590,_0x59f171)){_0x52c2ed[_0x42fa('0x10b')](_0x41edc5)?_0x55a590[_0x42fa('0x9c')]():_0x41edc5[_0x42fa('0xc5')](_0x26803c)?_0x26803c=_0x41edc5[_0x42fa('0xfd')]:_0x41edc5[_0x42fa('0xc5')](_0x39dbbb)&&(_0x39dbbb=_0x41edc5[_0x42fa('0x157')]);continue;}_0x26803c=_0x26803c[_0x42fa('0x15a')](_0x41edc5['start'])?_0x26803c:_0x41edc5[_0x42fa('0x157')],_0x39dbbb=_0x39dbbb[_0x42fa('0x155')](_0x41edc5['end'])?_0x39dbbb:_0x41edc5[_0x42fa('0xfd')],_0x59f171=Object['assign']({},_0x55a590[_0x42fa('0x14a')]),_0x2a77a3?_0x41edc5['start'][_0x42fa('0x15a')](_0x2a77a3[_0x42fa('0xcf')]()[_0x42fa('0x157')])?(_0x2a77a3[_0x42fa('0x9c')](),_0x2a77a3=_0x55a590):_0x55a590[_0x42fa('0x9c')]():_0x2a77a3=_0x55a590;}}}if(_0x2a77a3)return this[_0x42fa('0x8d')](_0x2a77a3,this[_0x42fa('0xe3')]['createRange'](_0x26803c,_0x39dbbb)),_0x2a77a3;{const _0x546b78=_0x53d935(),_0x56d764=this['_model'][_0x42fa('0x116')](_0x26803c,_0x39dbbb),_0x583738=_0x435d32['id'],_0x5c042b=_0x560ba3?'deletion:'+_0x560ba3:_0x42fa('0x127'),_0x36edca=this[_0x42fa('0xb0')]({'id':_0x546b78,'type':_0x5c042b,'createdAt':new Date(),'authorId':_0x583738,'attributes':_0x59f171});return this[_0x42fa('0xee')](_0x5c042b,_0x546b78,_0x583738,_0x56d764),_0x36edca;}}[_0x42fa('0x36')](_0x2171f0,_0x4e3eaa='multi',_0x39ef2d={}){const _0xed06f2=this[_0x42fa('0x12a')][_0x42fa('0x103')][_0x42fa('0x65')](_0x42fa('0x12e'))['me'],_0x3d9367=_0x2171f0[_0x42fa('0x104')](_0x9f0361=>new _0x3f221e(_0x9f0361[_0x42fa('0x157')],_0x9f0361[_0x42fa('0xfd')])),_0x21f650=new Set();for(const {suggestion:_0x38f576,meta:_0x2afd48}of this[_0x42fa('0xb5')](_0x3d9367,'insertion'))_0x2afd48['isOwn']&&!_0x2afd48[_0x42fa('0x41')]&&_0x21f650['add'](_0x38f576);for(const _0x228a84 of _0x21f650)if(_0x228a84[_0x42fa('0xc')]){const _0x131a9b=_0x228a84[_0x42fa('0xd8')]();(!_0x228a84[_0x42fa('0x14a')]||!_0x228a84['attributes'][_0x42fa('0x3d')])&&(_0x131a9b[_0x42fa('0x1e')](_0x252899=>_0x3d9367[_0x42fa('0x146')](_0x384d51=>_0x384d51[_0x42fa('0x10b')](_0x252899,!0x0)))&&_0x228a84[_0x42fa('0x51')]());if(_0x3d9367['every'](_0x1d0118=>_0x131a9b[_0x42fa('0x146')](_0x5af6c1=>_0x5af6c1[_0x42fa('0x10b')](_0x1d0118,!0x0)))){const _0x597792=this[_0x42fa('0x111')][_0x42fa('0x144')](_0x42fa('0x127'),_0x4e3eaa,_0x42fa('0x7'));return this[_0x42fa('0xf9')](()=>_0x597792(_0x2171f0,null,_0x39ef2d)),null;}}else{const _0x28cb76=_0x228a84[_0x42fa('0xcf')]();_0x3d9367['some'](_0x523dda=>_0x523dda[_0x42fa('0x10b')](_0x28cb76,!0x0))&&_0x228a84[_0x42fa('0x51')]();if(_0x3d9367[_0x42fa('0x1e')](_0x4be9b2=>_0x28cb76['containsRange'](_0x4be9b2,!0x0))){const _0x5535aa=this[_0x42fa('0x111')]['getSuggestionCallback'](_0x42fa('0x127'),_0x4e3eaa,_0x42fa('0x7'));return this[_0x42fa('0xf9')](()=>_0x5535aa(_0x3d9367,null,_0x39ef2d)),null;}}const _0x1b3e16=this[_0x42fa('0x111')][_0x42fa('0x144')]('deletion',_0x4e3eaa,'join');let _0x3001c1=null;for(const _0x2bc03d of this[_0x42fa('0xa9')]())if(_0x2bc03d['author']['id']==_0xed06f2['id']&&_0x2bc03d['isInContent']&&_0x42fa('0x127')==_0x2bc03d[_0x42fa('0xbc')]&&_0x2bc03d[_0x42fa('0x11f')]==_0x4e3eaa&&Pt(_0x2bc03d,_0x39ef2d)&&(_0x1b3e16(_0x2bc03d[_0x42fa('0xd8')](),_0x3d9367)||_0x1b3e16(_0x3d9367,_0x2bc03d[_0x42fa('0xd8')]()))){if(_0x3001c1){if(_0x2bc03d[_0x42fa('0xc4')]&&_0x2bc03d[_0x42fa('0xc4')][_0x42fa('0xeb')])continue;for(const _0x4b6063 of _0x2bc03d[_0x42fa('0xd8')]())_0x3001c1[_0x42fa('0xb1')](_0x4b6063)||_0x3001c1[_0x42fa('0x138')](_0x4b6063);_0x2bc03d[_0x42fa('0x9c')]();}else{_0x3001c1=_0x2bc03d;for(const _0x25c429 of _0x3d9367)_0x2bc03d['isIntersectingWithRange'](_0x25c429)||_0x2bc03d['addRange'](_0x25c429);}}if(_0x3001c1)return _0x3001c1;_0x21f650['clear']();for(const {suggestion:_0x472bea,meta:_0x2e80b9}of this[_0x42fa('0xb5')](_0x3d9367,_0x42fa('0x127')))_0x2e80b9[_0x42fa('0xd0')]&&(this[_0x42fa('0x9a')]||!_0x2e80b9[_0x42fa('0xdc')]&&!_0x2e80b9[_0x42fa('0x13a')])&&Pt(_0x472bea,_0x39ef2d)&&_0x21f650['add'](_0x472bea);for(const _0x1fd58c of _0x21f650){const _0x3db348=_0x1fd58c[_0x42fa('0xd8')]();if(!_0x39ef2d||!_0x39ef2d[_0x42fa('0x3d')]){if(_0x3d9367[_0x42fa('0x1e')](_0x573cc5=>_0x3db348[_0x42fa('0x146')](_0x2bd308=>_0x2bd308[_0x42fa('0x10b')](_0x573cc5,!0x0))))return _0x1fd58c;}(!_0x1fd58c[_0x42fa('0x14a')]||!_0x1fd58c['attributes'][_0x42fa('0x3d')])&&(_0x3db348[_0x42fa('0x1e')](_0x5b67a5=>_0x3d9367[_0x42fa('0x146')](_0x40ab73=>_0x40ab73[_0x42fa('0x10b')](_0x5b67a5,!0x0)))&&_0x1fd58c['discard']());}const _0xa6c222=_0x53d935(),_0x51b0cc=_0xed06f2['id'],_0x23e24d='deletion:'+_0x4e3eaa,_0x4ea11b=this[_0x42fa('0xb0')]({'id':_0xa6c222,'type':_0x23e24d,'createdAt':new Date(),'authorId':_0x51b0cc,'attributes':_0x39ef2d});for(const _0x424142 of _0x3d9367)_0x424142[_0x42fa('0x10c')](),_0x424142['isCollapsed']||'$graveyard'==_0x424142['root'][_0x42fa('0x11d')]||this[_0x42fa('0xee')](_0x23e24d,_0xa6c222,_0x51b0cc,_0x424142,_0x5839fd[_0x42fa('0x26')]());return _0x4ea11b;}[_0x42fa('0x167')](_0x311c58,_0x416e6b,_0x563901,_0x253997,_0xbc8314){if(_0x311c58[_0x42fa('0xd4')])return[];if(_0x42fa('0x90')===this[_0x42fa('0x7c')])return[];const _0x23d5be=this[_0x42fa('0x12a')][_0x42fa('0x103')][_0x42fa('0x65')](_0x42fa('0x12e'))['me']['id'],_0x278263=Array[_0x42fa('0xc6')](this[_0x42fa('0xe9')][_0x42fa('0xde')]())[_0x42fa('0x52')](_0x37d0eb=>_0x42fa('0x142')==_0x37d0eb['type']&&_0x37d0eb['data'][_0x42fa('0x13c')]==_0x416e6b&&_0x37d0eb[_0x42fa('0xb1')](_0x311c58));if(_0x42fa('0x6b')===this[_0x42fa('0x7c')]){const _0x17a989=this[_0x42fa('0xb5')](_0x311c58,'insertion')[_0x42fa('0x52')](({meta:_0x525e80})=>_0x525e80[_0x42fa('0xd0')]&&!_0x525e80[_0x42fa('0x13a')]&&!_0x525e80['isNextTo'])[_0x42fa('0x104')](({suggestion:_0x27c804})=>_0x27c804);_0x278263[_0x42fa('0xd6')](..._0x17a989);}const _0x5c6a7c=new Map([[_0x311c58,_0x563901]]);for(const _0x2317d0 of _0x278263){const _0xb3a9ad=_0x42fa('0x142')==_0x2317d0[_0x42fa('0xbc')]?_0x2317d0[_0x42fa('0xe6')][_0x42fa('0xcb')]:void 0x0,_0x44ecfd=_0x2317d0['getFirstRange'](),_0x34171e=Array['from'](_0x5c6a7c[_0x42fa('0x53')]())[_0x42fa('0x4e')](_0xc73032=>_0xc73032['isIntersecting'](_0x44ecfd));if(!_0x34171e)continue;const _0x2410cd=_0x34171e[_0x42fa('0x16a')](_0x44ecfd);this['_isBlockAttribute'](_0x416e6b)&&'insertion'==_0x2317d0['type']&&0x0!=_0x2410cd[_0x42fa('0xeb')]||(_0x5c6a7c['delete'](_0x34171e),_0x2410cd['forEach'](_0x396ee7=>{_0x5c6a7c[_0x42fa('0xb7')](_0x396ee7,_0x563901);}),_0x42fa('0x11e')!=_0x2317d0[_0x42fa('0xbc')]&&_0xb3a9ad!=_0x253997&&_0x5c6a7c[_0x42fa('0xb7')](_0x34171e[_0x42fa('0x11a')](_0x44ecfd),_0xb3a9ad));}const _0x394497=[];for(const [_0x3cc842,_0x581c40]of _0x5c6a7c){const _0x28521e=_0x53d935(),_0x2508c9={'key':_0x416e6b,'oldValue':_0x581c40,'newValue':_0x253997};_0x416e6b[_0x42fa('0xeb')]>0x25&&console[_0x42fa('0x166')](_0x42fa('0xae'),{'key':_0x416e6b});const _0x5bcdfe=(_0x42fa('0xf2')+(_0x416e6b+'|'+Et({'newValue':_0x253997})))['substring'](0x0,0x3c),_0x54e5fb=this['_setSuggestionData']({'id':_0x28521e,'type':_0x5bcdfe,'data':_0x2508c9,'createdAt':new Date(),'authorId':_0x23d5be,'attributes':_0xbc8314});_0x394497[_0x42fa('0x98')](_0x54e5fb),this[_0x42fa('0xee')](_0x5bcdfe,_0x28521e,_0x23d5be,_0x3cc842);}return _0x394497;}[_0x42fa('0x15d')](_0x2246b2){this[_0x42fa('0x132')]['add'](_0x2246b2);}['_registerInlineAttribute'](_0x5a60f9){this['_inlineAttributeKeys'][_0x42fa('0xc7')](_0x5a60f9);}['_enableDefaultAttributesIntegration'](_0x391e66,_0x458f91=[],_0x534a4f=[]){this[_0x42fa('0x13')](_0x391e66,(_0x481ff6,..._0x500d17)=>{this[_0x42fa('0x39')](()=>{_0x481ff6(..._0x500d17);});});for(const _0x553b8c of _0x458f91)this['_registerInlineAttribute'](_0x553b8c);for(const _0x433a8a of _0x534a4f)this[_0x42fa('0x15d')](_0x433a8a);}[_0x42fa('0xb9')](_0x2c9c3e){return _0x42fa('0x142')==_0x2c9c3e['type']?_0x2c9c3e[_0x42fa('0x11f')][_0x42fa('0x136')]('|')[0x0]:null;}[_0x42fa('0x8d')](_0x24353a,_0x2a0b45){const _0x36875b=_0x24353a[_0x42fa('0x0')]();this[_0x42fa('0xe3')]['change'](_0xbc7881=>{_0xbc7881['updateMarker'](_0x36875b,{'range':_0x2a0b45});});}[_0x42fa('0xf1')](_0xcf9134){const _0x587fd9=_0xcf9134['id'],_0x134aa0=this['editor'][_0x42fa('0x2b')]['get']('collaboration.channelId');this[_0x42fa('0x92')][_0x42fa('0x1a')](_0x587fd9)||this[_0x42fa('0x92')][_0x42fa('0xe4')]({'channelId':_0x134aa0,'threadId':_0x587fd9,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1852b1=this[_0x42fa('0x92')][_0x42fa('0x135')](_0x587fd9);_0x1852b1[_0x42fa('0x10e')]('isRemovable'),_0x1852b1[_0x42fa('0x6f')]=!0x1,_0xcf9134[_0x42fa('0xc4')]=_0x1852b1;}['_checkSuggestionCorrectness'](_0xc7cd06,_0x2bb1e5,_0x1d1986,_0x1e8c87){if(_0xc7cd06[_0x42fa('0xbc')]!=_0x2bb1e5||_0xc7cd06[_0x42fa('0x11f')]!=_0x1d1986||_0xc7cd06[_0x42fa('0x129')]['id']!=_0x1e8c87)throw this['editor'][_0x42fa('0x16c')](_0x42fa('0x102')),new _0x6b7fca(_0x42fa('0x102'),this);}[_0x42fa('0x148')](_0x368987,_0x44e73f){const _0x4a8f30=_0x368987[_0x42fa('0xcf')]();if(_0x44e73f[_0x42fa('0xa1')](_0x4a8f30))_0x368987[_0x42fa('0x9c')]();else{if(_0x4a8f30[_0x42fa('0x10b')](_0x44e73f)){const _0x15ba00=this[_0x42fa('0xe3')][_0x42fa('0x2')](_0x44e73f['start']['nodeBefore'],_0x42fa('0xfd'));this['_setSuggestionRange'](_0x368987,this[_0x42fa('0xe3')][_0x42fa('0x116')](_0x4a8f30['start'],_0x15ba00));const _0x32e8d4=_0x53d935(),_0x4502ec=_0x368987['creator']['id'],_0x5dec64=_0x368987['type']+':'+_0x368987[_0x42fa('0x11f')];this['_setSuggestionData']({'id':_0x32e8d4,'type':_0x5dec64,'createdAt':new Date(),'authorId':_0x4502ec,'data':_0x368987[_0x42fa('0xe6')],'attributes':_0x368987[_0x42fa('0x14a')]});const _0x20962b=this['_model'][_0x42fa('0x2')](_0x44e73f[_0x42fa('0xfd')][_0x42fa('0xc1')],_0x42fa('0x74')),_0x205477=this[_0x42fa('0xe3')][_0x42fa('0x116')](_0x20962b,_0x4a8f30['end']);this[_0x42fa('0xee')](_0x5dec64,_0x32e8d4,_0x4502ec,_0x205477);}else{if(_0x4a8f30[_0x42fa('0xc5')](_0x44e73f[_0x42fa('0x157')])){const _0x130c88=this[_0x42fa('0xe3')][_0x42fa('0x2')](_0x44e73f['start'][_0x42fa('0x94')],_0x42fa('0xfd'));this['_setSuggestionRange'](_0x368987,this[_0x42fa('0xe3')][_0x42fa('0x116')](_0x4a8f30[_0x42fa('0x157')],_0x130c88));}else{const _0x28e1c9=this['_model'][_0x42fa('0x2')](_0x44e73f['end']['parent'],_0x42fa('0x74'));this[_0x42fa('0x8d')](_0x368987,this[_0x42fa('0xe3')][_0x42fa('0x116')](_0x28e1c9,_0x4a8f30[_0x42fa('0xfd')]));}}}}[_0x42fa('0xcc')](_0x29c711){for(const {suggestion:_0x700d4b,meta:_0x2da755}of this['_findSuggestions'](_0x29c711,_0x42fa('0x11e'))){if(!_0x2da755[_0x42fa('0xd0')])continue;const _0x5283a1=_0x700d4b['getRanges']();for(const _0x572331 of _0x5283a1)if(!_0x29c711[_0x42fa('0x16a')](_0x572331)['length'])return!0x0;}return!0x1;}[_0x42fa('0x31')](_0x316bd0){const _0x9bda7=this[_0x42fa('0x12a')][_0x42fa('0x103')][_0x42fa('0x65')](_0x42fa('0x12e'))['getUser'](_0x316bd0);if(!_0x9bda7)throw new _0x6b7fca('track-changes-user-not-found',this);return _0x9bda7;}['_getExternalAuthor'](_0x1c178c){const _0x5d2754=this['editor'][_0x42fa('0x103')]['get'](_0x42fa('0x12e')),_0x5ab380=_0x1d9dc1(_0x42fa('0x34')+_0x1c178c),_0x35e506=_0x5d2754[_0x42fa('0x97')](_0x5ab380);return _0x35e506||_0x5d2754[_0x42fa('0x79')]({'id':_0x5ab380,'name':_0x1c178c});}[_0x42fa('0xb4')](_0x2e4981,_0x36d6bd,_0x3ea52d,_0x249b16,_0x40f516){const _0x455517=this[_0x42fa('0x31')](_0x249b16),_0x3fe73a=this[_0x42fa('0x111')][_0x42fa('0xec')](_0x2e4981,_0x36d6bd,_0x3ea52d,_0x455517,_0x40f516,_0x29f320=>{this[_0x42fa('0x4c')](_0x3ea52d,{'attributes':_0x29f320});const _0x286bbd=this[_0x42fa('0x139')](_0x3ea52d);this[_0x42fa('0x63')](new Set([_0x286bbd])),this[_0x42fa('0x11b')](new Set([_0x286bbd]));});return this[_0x42fa('0x32')](_0x3fe73a,_0x42fa('0x7'),()=>{this[_0x42fa('0x4c')](_0x3ea52d,{'state':'accepted'});},{'priority':_0x42fa('0x3f')}),this['listenTo'](_0x3fe73a,_0x42fa('0x51'),()=>{this[_0x42fa('0x4c')](_0x3ea52d,{'state':_0x42fa('0x17')});},{'priority':_0x42fa('0x3f')}),this[_0x42fa('0xe9')][_0x42fa('0xb7')](_0x3ea52d,_0x3fe73a),this[_0x42fa('0x119')][_0x42fa('0xb7')](_0x3fe73a,_0x42fa('0xa5')),_0x3fe73a;}[_0x42fa('0xf4')](_0x4e3eb6){const _0x33c21b=_0x4e3eb6[_0x42fa('0x136')](':');return{'group':_0x33c21b[0x0],'type':_0x33c21b[0x1],'subType':_0x33c21b[_0x42fa('0xeb')]>=0x5?_0x33c21b[0x2]:null,'id':_0x33c21b['length']<0x5?_0x33c21b[0x2]:_0x33c21b[0x3],'authorId':_0x33c21b[_0x42fa('0xeb')]<0x5?_0x33c21b[0x3]:_0x33c21b[0x4],'markerCount':0x6==_0x33c21b[_0x42fa('0xeb')]?_0x33c21b[0x5]:null};}[_0x42fa('0x13f')](_0x596217,_0x1f27d5,_0x561143){const _0x2d40a1=_0x596217['getFirstRange'](),_0x14e67a=_0x2d40a1[_0x42fa('0x157')],_0x82234e=_0x2d40a1[_0x42fa('0xfd')];this[_0x42fa('0x8d')](_0x596217,this[_0x42fa('0xe3')][_0x42fa('0x116')](_0x14e67a,_0x1f27d5));const _0x176d96=_0x53d935(),_0x20ed05=_0x596217[_0x42fa('0x129')]['id'],_0x37b658=_0x596217[_0x42fa('0xbc')]+(_0x596217['subType']?':'+_0x596217['subType']:'');this['_setSuggestionData']({'id':_0x176d96,'type':_0x37b658,'createdAt':new Date(),'authorId':_0x20ed05,'originalSuggestionId':_0x596217['id'],'attributes':_0x596217[_0x42fa('0x14a')],'data':_0x596217[_0x42fa('0xe6')]});const _0x5e3f0b=this[_0x42fa('0xb9')](_0x596217);(_0x42fa('0x60')==_0x596217[_0x42fa('0xbc')]||_0x5e3f0b&&this['_isBlockAttribute'](_0x5e3f0b))&&(_0x561143=this[_0x42fa('0xe3')][_0x42fa('0x44')](_0x561143['parent'])),this['_addSuggestionMarker'](_0x37b658,_0x176d96,_0x20ed05,this[_0x42fa('0xe3')][_0x42fa('0x116')](_0x561143,_0x82234e));}[_0x42fa('0xb5')](_0x41d796,_0x576567=null){const _0x1d4eb5=[],_0x22f34e=this[_0x42fa('0x12a')][_0x42fa('0x103')][_0x42fa('0x65')]('Users')['me'];Array[_0x42fa('0xe0')](_0x41d796)||(_0x41d796=[_0x41d796]);for(const _0x3661c8 of this[_0x42fa('0xa9')]()){if(!_0x3661c8['isInContent'])continue;if(_0x576567&&_0x3661c8[_0x42fa('0xbc')]!=_0x576567)continue;let _0x5ed60d=!0x1;for(const _0x30b55f of _0x3661c8[_0x42fa('0xd8')]()){for(const _0x1e2fa5 of _0x41d796){const _0xa613c0=_0x1e2fa5[_0x42fa('0x157')][_0x42fa('0xa1')](_0x30b55f[_0x42fa('0xfd')])||_0x1e2fa5[_0x42fa('0xfd')][_0x42fa('0xa1')](_0x30b55f[_0x42fa('0x157')]);if(_0xa613c0||_0x1e2fa5[_0x42fa('0x11a')](_0x30b55f)){const _0xfc5a3b=_0x1e2fa5['containsRange'](_0x30b55f)&&xt(this['_model'][_0x42fa('0x133')],_0x30b55f[_0x42fa('0x157')],_0x1e2fa5),_0x305c20=_0x30b55f[_0x42fa('0x10b')](_0x1e2fa5)&&xt(this[_0x42fa('0xe3')][_0x42fa('0x133')],_0x1e2fa5['start'],_0x30b55f);_0x1d4eb5[_0x42fa('0x98')]({'suggestion':_0x3661c8,'meta':{'isOwn':_0x22f34e==_0x3661c8['author'],'isNextTo':_0xa613c0,'isInsideObject':_0xfc5a3b,'containsRangeInObject':_0x305c20}}),_0x5ed60d=!0x0;break;}}if(_0x5ed60d)break;}}return _0x1d4eb5;}[_0x42fa('0xee')](_0x30cc0b,_0x2a165c,_0x2bb3d1,_0x54006e,_0x17b7ed){this[_0x42fa('0xe3')][_0x42fa('0xf0')](_0x29aba1=>{let _0x15160b=_0x42fa('0x107')+_0x30cc0b+':'+_0x2a165c+':'+_0x2bb3d1;_0x17b7ed&&(_0x15160b=_0x15160b+':'+_0x17b7ed),_0x29aba1[_0x42fa('0x168')](_0x15160b,{'range':_0x54006e,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x42fa('0x13b')](_0xc77853){const _0xd72242=_0xc77853[_0x42fa('0x14')],_0x152cb4=_0xc77853[_0x42fa('0x27')];_0xc77853[_0x42fa('0x14')]=null,_0xc77853[_0x42fa('0x27')]=null,null!=_0xd72242&&_0xd72242[_0x42fa('0x27')]==_0xc77853&&(_0xd72242[_0x42fa('0x27')]=_0x152cb4),null!=_0x152cb4&&_0x152cb4[_0x42fa('0x14')]==_0xc77853&&(_0x152cb4[_0x42fa('0x14')]=_0xd72242),_0x42fa('0x6d')==this[_0x42fa('0x119')]['get'](_0xc77853)&&(this['_suggestionState'][_0x42fa('0xb7')](_0xc77853,'removed'),this['fire'](_0x42fa('0x4d'),_0xc77853,_0xd72242,_0x152cb4));}[_0x42fa('0xb0')](_0x584838){const _0xd373bd=_0x584838['id'],_0x273dd4=this[_0x42fa('0xcd')](_0x584838);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3e6d0c=this['editor']['plugins'][_0x42fa('0x65')](_0x42fa('0xb3')),_0x19bfa3=_0x273dd4[_0x42fa('0x128')],_0x1a4902=_0x273dd4['subType']?_0x273dd4['type']+':'+_0x273dd4[_0x42fa('0x11f')]:_0x273dd4[_0x42fa('0xbc')],_0x3c869c=this[_0x42fa('0x12a')][_0x42fa('0x4')],_0x125e0b=_0x3e6d0c[_0x42fa('0xc7')](_0x1a255c(_0x3c869c,'PENDING_ACTION_SUGGESTION')),_0x34e4e3={'id':_0xd373bd,'type':_0x1a4902,'hasComments':_0x19bfa3,'data':_0x584838['data']||null,'originalSuggestionId':_0x584838[_0x42fa('0x152')]||null,'attributes':_0x273dd4[_0x42fa('0x14a')]};this[_0x42fa('0xad')][_0x42fa('0x6')](_0x34e4e3)[_0x42fa('0x165')](_0x5f59df=>{_0x273dd4[_0x42fa('0x16b')]=!0x0,_0x3e6d0c[_0x42fa('0x70')](_0x125e0b),_0x5f59df&&_0x5f59df[_0x42fa('0xe5')]&&(this[_0x42fa('0xe9')][_0x42fa('0x65')](_0xd373bd)[_0x42fa('0xe5')]=_0x5f59df['createdAt']);})[_0x42fa('0x154')](_0x3b3cba=>{throw _0x4ae81c(_0x42fa('0x5d')),this[_0x42fa('0x12a')][_0x42fa('0x164')][_0x42fa('0x30')]({'isUndoable':!0x1},()=>{_0x273dd4[_0x42fa('0x51')]();}),_0x273dd4[_0x42fa('0x126')](),this[_0x42fa('0xe9')][_0x42fa('0x113')](_0x273dd4['id']),this[_0x42fa('0x119')][_0x42fa('0x113')](_0x273dd4),_0x3b3cba;});}return _0x273dd4;}['_isBlockAttribute'](_0x191c10){return this['_blockAttributeKeys'][_0x42fa('0x56')](_0x191c10);}[_0x42fa('0x4c')](_0x412b6f,_0x1a7150){const _0x1227ce=this[_0x42fa('0x12a')]['plugins']['get'](_0x42fa('0xb3')),_0x4a619d=this[_0x42fa('0x139')](_0x412b6f);if(this['_adapter']&&this[_0x42fa('0xad')][_0x42fa('0xa7')]){if(_0x4a619d[_0x42fa('0x16b')]){const _0x47e0f4=_0x1227ce[_0x42fa('0xc7')](_0x1a255c(this['editor']['locale'],_0x42fa('0x89')));this[_0x42fa('0xad')][_0x42fa('0xa7')](_0x412b6f,_0x1a7150)[_0x42fa('0x165')](()=>{_0x1227ce[_0x42fa('0x70')](_0x47e0f4);});}else _0x4a619d['on']('change:_saved',()=>{this[_0x42fa('0x4c')](_0x412b6f,_0x1a7150);});}}[_0x42fa('0xbe')](_0x5920ed){if(!this['_adapter']||!this[_0x42fa('0xad')][_0x42fa('0x139')])throw new _0x6b7fca(_0x42fa('0x7f'),this);return this[_0x42fa('0xad')][_0x42fa('0x139')](_0x5920ed);}[_0x42fa('0xed')](_0x18bca1){const {id:_0x2539f1,type:_0x2bb167,subType:_0x26ee3e,authorId:_0x1bbc2d}=this['_splitMarkerName'](_0x18bca1),_0x29bfbe=this[_0x42fa('0xe9')][_0x42fa('0x65')](_0x2539f1)||this[_0x42fa('0xb4')](_0x2bb167,_0x26ee3e,_0x2539f1,_0x1bbc2d,{});switch(this[_0x42fa('0x33')](_0x29bfbe,_0x2bb167,_0x26ee3e,_0x1bbc2d),this[_0x42fa('0x119')]['get'](_0x29bfbe)){case'notReady':this[_0x42fa('0xbe')](_0x2539f1)[_0x42fa('0x165')](_0x4f00d8=>{let _0x245dd0=Promise[_0x42fa('0xdb')]();_0x4f00d8['hasComments']&&(_0x245dd0=this[_0x42fa('0x92')][_0x42fa('0x106')]({'channelId':this[_0x42fa('0x12a')][_0x42fa('0x2b')][_0x42fa('0x65')](_0x42fa('0xd7')),'threadId':_0x2539f1})),_0x245dd0[_0x42fa('0x165')](()=>{this[_0x42fa('0xcd')](_0x4f00d8)[_0x42fa('0x16b')]=!0x0;});}),this['_suggestionState'][_0x42fa('0xb7')](_0x29bfbe,'markerReady');break;case _0x42fa('0x15e'):this['_updateSuggestionData'](_0x2539f1,{'state':_0x42fa('0x78')});case _0x42fa('0x9e'):this[_0x42fa('0x119')][_0x42fa('0xb7')](_0x29bfbe,_0x42fa('0x6d')),this['fire'](_0x42fa('0x3c'),_0x29bfbe);break;case _0x42fa('0x6d'):this[_0x42fa('0x12c')](_0x42fa('0xf5'),_0x29bfbe);}return _0x29bfbe[_0x42fa('0x82')](_0x18bca1),_0x29bfbe;}[_0x42fa('0x11b')](_0x57ad65){const _0xa5b371=Array[_0x42fa('0xc6')](_0x57ad65),_0x34dc81=_0xa5b371[_0x42fa('0x52')](_0x5aae0d=>'attribute'==_0x5aae0d[_0x42fa('0xbc')]);this[_0x42fa('0xd9')](_0x34dc81);const _0x48ed19=_0xa5b371['filter'](_0x373ed8=>!_0x373ed8[_0x42fa('0xc')]&&_0x42fa('0x142')!=_0x373ed8[_0x42fa('0xbc')]),_0x6b6ad9=this[_0x42fa('0xa9')]({'skipNotAttached':!0x0})[_0x42fa('0x52')](_0x5b8e62=>!_0x5b8e62['isMultiRange']&&'attribute'!=_0x5b8e62[_0x42fa('0xbc')]),_0xa061ee=_0x6b6ad9[_0x42fa('0x52')](_0xd187ad=>!_0x57ad65[_0x42fa('0x56')](_0xd187ad)),_0x30b261=new Map(_0x6b6ad9['map'](_0x406d3e=>[_0x406d3e,this[_0x42fa('0x111')][_0x42fa('0x144')](_0x406d3e[_0x42fa('0xbc')],_0x406d3e['subType'],_0x42fa('0x28'))])),_0x3981a8=new Map(_0x6b6ad9[_0x42fa('0x104')](_0x5f1521=>[_0x5f1521,_0x5f1521[_0x42fa('0xcf')]()])),_0x2421b0=new Set(),_0x4be1d8=new Set();for(let _0x1d48cf=0x0;_0x1d48cf<_0x48ed19[_0x42fa('0xeb')];_0x1d48cf++)_0x5843b2(_0x48ed19[_0x1d48cf],_0x48ed19,_0x1d48cf+0x1);for(let _0x51f7d0=0x0;_0x51f7d0<_0x48ed19[_0x42fa('0xeb')];_0x51f7d0++)_0x5843b2(_0x48ed19[_0x51f7d0],_0xa061ee,0x0);const _0x33cb14=new Set();for(let _0x556033=0x0;_0x556033<_0x48ed19['length'];_0x556033++){const _0x39749c=_0x48ed19[_0x556033];!_0x4be1d8[_0x42fa('0x56')](_0x39749c)&&_0x39749c[_0x42fa('0x14')]&&(_0x33cb14[_0x42fa('0xc7')](_0x39749c[_0x42fa('0x14')]),_0x39749c[_0x42fa('0x14')]['next']===_0x39749c&&(_0x39749c[_0x42fa('0x14')][_0x42fa('0x27')]=null),_0x39749c[_0x42fa('0x14')]=null),!_0x2421b0[_0x42fa('0x56')](_0x39749c)&&_0x39749c[_0x42fa('0x27')]&&(_0x33cb14['add'](_0x39749c[_0x42fa('0x27')]),_0x39749c[_0x42fa('0x27')][_0x42fa('0x14')]===_0x39749c&&(_0x39749c[_0x42fa('0x27')][_0x42fa('0x14')]=null),_0x39749c[_0x42fa('0x27')]=null);}function _0x5843b2(_0x63a70a,_0x1e1f2a,_0x4a7c31){for(let _0x113d55=_0x4a7c31;_0x113d55<_0x1e1f2a[_0x42fa('0xeb')];_0x113d55++){const _0x2dbd00=_0x175351(_0x63a70a,_0x1e1f2a[_0x113d55]);_0x2dbd00&&(_0x2dbd00[0x0][_0x42fa('0x27')]=_0x2dbd00[0x1],_0x2dbd00[0x1][_0x42fa('0x14')]=_0x2dbd00[0x0],_0x2421b0[_0x42fa('0xc7')](_0x2dbd00[0x0]),_0x4be1d8['add'](_0x2dbd00[0x1]));}}function _0x175351(_0x22ea31,_0xa84d5e){if(_0x22ea31[_0x42fa('0x140')]['id']!==_0xa84d5e[_0x42fa('0x140')]['id'])return null;const _0x55f93c=_0x30b261[_0x42fa('0x65')](_0x22ea31)(_0x22ea31,_0xa84d5e,_0x3981a8['get'](_0x22ea31),_0x3981a8[_0x42fa('0x65')](_0xa84d5e));if(!_0x55f93c)return null;return _0x30b261[_0x42fa('0x65')](_0xa84d5e)(_0x22ea31,_0xa84d5e,_0x3981a8[_0x42fa('0x65')](_0x22ea31),_0x3981a8['get'](_0xa84d5e))?_0x55f93c[0x1][_0x42fa('0xc4')]&&_0x55f93c[0x1][_0x42fa('0xc4')][_0x42fa('0xeb')]?null:_0x55f93c:null;}_0x33cb14['size']&&this[_0x42fa('0x11b')](_0x33cb14);}[_0x42fa('0xd9')](_0x5bf5c7){if(0x0==_0x5bf5c7[_0x42fa('0xeb')])return;const _0x1dffca=this[_0x42fa('0xa9')]({'skipNotAttached':!0x0})[_0x42fa('0x52')](_0x4f55e6=>'attribute'==_0x4f55e6['type']&&_0x4f55e6[_0x42fa('0x67')]),_0x2c8e93=[],_0x2c6aea=new Map();for(const _0x38939c of _0x1dffca){const _0x4a730b=_0x1d9dc1(_0x38939c[_0x42fa('0x14a')]);_0x2c6aea[_0x42fa('0x56')](_0x4a730b)||(_0x2c6aea['set'](_0x4a730b,_0x2c8e93[_0x42fa('0xeb')]),_0x2c8e93['push']([]));const _0x11fe36=_0x2c6aea[_0x42fa('0x65')](_0x4a730b);_0x2c8e93[_0x11fe36][_0x42fa('0x98')](_0x38939c);}!function(){_0x2c8e93[_0x42fa('0x162')]((_0x5e6a46,_0x428473)=>{const _0x37239b=_0x5e6a46[0x0][_0x42fa('0xe5')],_0x47e300=_0x428473[0x0]['createdAt'];return _0x37239b==_0x47e300?_0x5e6a46[0x0][_0x42fa('0x14a')]['groupId']<_0x428473[0x0]['attributes'][_0x42fa('0x58')]?-0x1:0x1:_0x37239b<_0x47e300?-0x1:0x1;});for(const _0x521072 of _0x2c8e93)_0x521072['sort']((_0x12481e,_0x21bf54)=>_0x12481e['id']<_0x21bf54['id']?-0x1:0x1);}();for(let _0x3a92b4=0x0;_0x3a92b4<_0x2c8e93[_0x42fa('0xeb')];_0x3a92b4++){if(0x0==_0x2c8e93[_0x3a92b4][_0x42fa('0xeb')])continue;const _0x43b14b=[];for(let _0x5242e5=_0x3a92b4+0x1;_0x5242e5<_0x2c8e93[_0x42fa('0xeb')];_0x5242e5++)0x0!=_0x2c8e93[_0x5242e5][_0x42fa('0xeb')]&&_0x46741c(_0x2c8e93[_0x3a92b4],_0x2c8e93[_0x5242e5])&&_0x43b14b[_0x42fa('0x98')](_0x5242e5);for(const _0x301719 of _0x43b14b)_0x2c8e93[_0x3a92b4]=_0x2c8e93[_0x3a92b4]['concat'](_0x2c8e93[_0x301719]),_0x2c8e93[_0x301719]=[];}for(const _0x202514 of _0x2c8e93)for(let _0x5f49a2=0x0;_0x5f49a2<_0x202514[_0x42fa('0xeb')];_0x5f49a2++)_0x202514[_0x5f49a2][_0x42fa('0x27')]=_0x202514[_0x5f49a2+0x1]||null;for(const _0x2343a3 of _0x2c8e93)for(let _0x277a83=0x0;_0x277a83<_0x2343a3[_0x42fa('0xeb')];_0x277a83++)_0x2343a3[_0x277a83]['previous']=_0x2343a3[_0x277a83-0x1]||null;function _0x46741c(_0x30cdb6,_0x4faea7){if(_0x30cdb6[0x0][_0x42fa('0x14a')][_0x42fa('0x58')]!==_0x4faea7[0x0][_0x42fa('0x14a')][_0x42fa('0x58')]&&_0x30cdb6[0x0][_0x42fa('0x140')]!==_0x4faea7[0x0][_0x42fa('0x140')])return!0x1;if(!function(_0x20de2c,_0x150d19){if(!_0x20de2c[_0x42fa('0x128')]&&!_0x150d19['hasComments'])return!0x0;if(_0x20de2c[_0x42fa('0x128')]&&_0x150d19['hasComments'])return!0x1;if(_0x20de2c[_0x42fa('0x128')]&&_0x150d19[_0x42fa('0xe5')]<_0x20de2c[_0x42fa('0xc4')][_0x42fa('0xf3')][_0x42fa('0x65')](0x0)[_0x42fa('0xe5')])return!0x0;if(_0x150d19[_0x42fa('0x128')]&&_0x20de2c['createdAt']<_0x150d19[_0x42fa('0xc4')][_0x42fa('0xf3')][_0x42fa('0x65')](0x0)[_0x42fa('0xe5')])return!0x0;return!0x1;}(_0x30cdb6[0x0],_0x4faea7[0x0]))return!0x1;const _0x4b21bd=_0x2fd0ab(_0x30cdb6[0x0][_0x42fa('0x14a')],_0x42fa('0x58')),_0xc70f10=_0x2fd0ab(_0x4faea7[0x0]['attributes'],_0x42fa('0x58'));if(!_0x3647ed(_0x4b21bd,_0xc70f10))return!0x1;return!!_0x30cdb6['every'](_0x22204b=>_0x4faea7[_0x42fa('0x146')](_0x1d6882=>_0x22204b[_0x42fa('0xcf')]()[_0x42fa('0xa1')](_0x1d6882['getFirstRange']())))&&_0x4faea7[_0x42fa('0x1e')](_0x9fc9dd=>_0x30cdb6[_0x42fa('0x146')](_0x352dfa=>_0x9fc9dd[_0x42fa('0xcf')]()[_0x42fa('0xa1')](_0x352dfa[_0x42fa('0xcf')]())));}}[_0x42fa('0x63')](_0x432123){const _0x320483=Array[_0x42fa('0xc6')](_0x432123),_0x1a504f=this[_0x42fa('0xa9')]({'skipNotAttached':!0x0}),_0x4699c2=_0x1a504f[_0x42fa('0x52')](_0x4ba90f=>!_0x432123[_0x42fa('0x56')](_0x4ba90f)),_0x528d0a=new Map(_0x320483[_0x42fa('0x104')](_0x3bac0e=>[_0x3bac0e,this[_0x42fa('0x111')][_0x42fa('0x144')](_0x3bac0e[_0x42fa('0xbc')],_0x3bac0e['subType'],_0x42fa('0x12f'))])),_0x49888d=new Map(_0x1a504f[_0x42fa('0x104')](_0xc1f134=>[_0xc1f134,_0xc1f134[_0x42fa('0xd8')]()]));for(let _0x357f2d=0x0;_0x357f2d<_0x320483[_0x42fa('0xeb')];_0x357f2d++){if(_0x3cda7a(this,_0x320483[_0x357f2d],_0x320483,_0x357f2d+0x1))return!0x0;}for(let _0x4a8ac5=0x0;_0x4a8ac5<_0x320483['length'];_0x4a8ac5++){if(_0x3cda7a(this,_0x320483[_0x4a8ac5],_0x4699c2,0x0))return!0x0;}return!0x1;function _0x3cda7a(_0x1753bf,_0x3bac24,_0x538c59,_0x2ba0cd){for(let _0x35c570=_0x2ba0cd;_0x35c570<_0x538c59[_0x42fa('0xeb')];_0x35c570++){const _0x5b7052=_0x538c59[_0x35c570];if(_0x5b7052[_0x42fa('0xbc')]!==_0x3bac24[_0x42fa('0xbc')]||_0x5b7052[_0x42fa('0x140')]['id']!==_0x3bac24[_0x42fa('0x140')]['id']||_0x5b7052['subType']!==_0x3bac24[_0x42fa('0x11f')])continue;if(!Ft(_0x3bac24,_0x5b7052,[_0x42fa('0x58')]))continue;if(_0x42fa('0x142')==_0x3bac24[_0x42fa('0xbc')]&&_0x3bac24[_0x42fa('0xe6')][_0x42fa('0xcb')]!=_0x5b7052[_0x42fa('0xe6')][_0x42fa('0xcb')])continue;if(_0x42fa('0x142')==_0x3bac24[_0x42fa('0xbc')]&&_0x1753bf[_0x42fa('0x5b')](_0x3bac24[_0x42fa('0xe6')][_0x42fa('0x13c')]))continue;if('formatBlock'==_0x3bac24[_0x42fa('0xbc')]){const _0x3c2667=_0x1753bf[_0x42fa('0x12a')][_0x42fa('0x164')],_0x2da4ae=_0x3bac24[_0x42fa('0xbd')]();if(_0x2da4ae&&(_0x3c2667[_0x42fa('0x133')][_0x42fa('0xa4')](_0x2da4ae)||_0x3c2667[_0x42fa('0x133')][_0x42fa('0x81')](_0x2da4ae)))continue;}const _0x4719e9=_0x528d0a['get'](_0x3bac24),_0x312860=_0x49888d[_0x42fa('0x65')](_0x3bac24),_0x3de4e8=_0x49888d[_0x42fa('0x65')](_0x5b7052),_0x4ecceb=_0x3bac24['commentThread']&&_0x3bac24[_0x42fa('0xc4')]['length'],_0x2eb90e=_0x5b7052[_0x42fa('0xc4')]&&_0x5b7052[_0x42fa('0xc4')][_0x42fa('0xeb')];if(!_0x4ecceb&&_0x4719e9(_0x3de4e8,_0x312860))return _0x1753bf[_0x42fa('0x120')](_0x5b7052,_0x3bac24),_0x49888d['delete'](_0x3bac24),!0x0;if(!_0x2eb90e&&_0x4719e9(_0x312860,_0x3de4e8))return _0x1753bf['_joinSuggestions'](_0x3bac24,_0x5b7052),_0x49888d['delete'](_0x5b7052),!0x0;}return!0x1;}}[_0x42fa('0x120')](_0x112667,_0x94e269){if(_0x112667[_0x42fa('0xc')])for(const _0x56a673 of _0x94e269[_0x42fa('0xd8')]())_0x112667[_0x42fa('0x138')](_0x56a673);else{const _0x1cb287=_0x94e269[_0x42fa('0xcf')]()[_0x42fa('0xfd')];this[_0x42fa('0x8d')](_0x112667,this[_0x42fa('0xe3')][_0x42fa('0x116')](_0x112667[_0x42fa('0xcf')]()[_0x42fa('0x157')],_0x1cb287));}_0x94e269[_0x42fa('0x9c')]();}['_getMarkerAnnouncementText'](_0xa16a9,_0xeba3be){const _0x5c0eb1=_0xa16a9['startsWith']('format')||_0xa16a9[_0x42fa('0x10f')]('attribute')?'FORMATTING':_0xa16a9[_0x42fa('0x16f')]();return _0x1a255c(this[_0x42fa('0x12a')][_0x42fa('0x4')],_0xeba3be+'_'+_0x5c0eb1+_0x42fa('0xce'));}[_0x42fa('0x35')](){const _0x2f82c1=this[_0x42fa('0x12a')];_0x20325c(this['_model'],({left:_0x339ff6,entered:_0x3c3a1e})=>{const _0x51e335=[];for(const _0xa224d1 of _0x339ff6){const {group:_0x38ee1d,type:_0x6e0305}=this[_0x42fa('0xf4')](_0xa224d1[_0x42fa('0x4b')]);if(_0x42fa('0x46')===_0x38ee1d){_0x51e335[_0x42fa('0x98')](this[_0x42fa('0x75')](_0x6e0305,_0x42fa('0x95')));break;}}for(const _0xe8e273 of _0x3c3a1e){const {group:_0x375f90,type:_0x4e34d8}=this['_splitMarkerName'](_0xe8e273[_0x42fa('0x4b')]);if(_0x42fa('0x46')===_0x375f90){_0x51e335[_0x42fa('0x98')](this[_0x42fa('0x75')](_0x4e34d8,_0x42fa('0xc0')));break;}}_0x51e335[_0x42fa('0xeb')]&&_0x2f82c1['ui'][_0x42fa('0x19')][_0x42fa('0xda')]('trackChanges',_0x51e335[_0x42fa('0x12f')]('\x20'));});}[_0x42fa('0x117')](_0x4f1a57){if(this[_0x42fa('0x2f')])return!0x1;const _0x498da1=this[_0x42fa('0x12a')],_0x12b65e=_0x498da1[_0x42fa('0x164')]['document'][_0x42fa('0x1c')]['getChanges']();if(0x0==_0x12b65e['length'])return!0x1;const _0x442a50=[],_0x1e772f=_0x12b65e[_0x42fa('0x52')](_0x35c9eb=>_0x42fa('0x142')==_0x35c9eb[_0x42fa('0xbc')]),_0x31ed0c=_0x12b65e[_0x42fa('0x52')](_0x201836=>'insert'==_0x201836[_0x42fa('0xbc')]&&_0x42fa('0x57')!=_0x201836[_0x42fa('0x4b')]),_0x1956fa=_0x12b65e['filter'](_0x2c8226=>'remove'==_0x2c8226[_0x42fa('0xbc')]&&_0x42fa('0x57')!=_0x2c8226['name']);for(const _0x4dd9a1 of _0x1e772f)_0x442a50[_0x42fa('0x98')]({'key':_0x4dd9a1[_0x42fa('0x14e')],'newValue':_0x4dd9a1[_0x42fa('0x16e')],'oldValue':_0x4dd9a1[_0x42fa('0x118')],'range':Ut(_0x4dd9a1[_0x42fa('0xdd')],_0x498da1[_0x42fa('0x164')])});for(const _0x3082f8 of _0x31ed0c){const _0x33ed8e=_0x1956fa[_0x42fa('0x4e')](_0x326f0e=>_0x326f0e[_0x42fa('0xa8')]['isEqual'](_0x3082f8[_0x42fa('0xa8')]));_0x33ed8e&&_0x442a50[_0x42fa('0x98')]({'key':'$elementName','newValue':_0x3082f8[_0x42fa('0x4b')],'oldValue':_0x33ed8e[_0x42fa('0x4b')],'range':_0x498da1['model'][_0x42fa('0x9d')](_0x3082f8[_0x42fa('0xa8')][_0x42fa('0x1b')])});}return 0x0!=_0x442a50[_0x42fa('0xeb')]&&this[_0x42fa('0x1f')](_0x4f1a57,_0x442a50);}[_0x42fa('0x7e')](_0x5d4783){let _0x2a90b6=!0x1;const _0x5655fb=this[_0x42fa('0x12a')][_0x42fa('0x164')][_0x42fa('0xaa')]['differ'][_0x42fa('0x38')]()[_0x42fa('0x52')](_0x2bf84d=>_0x2bf84d[_0x42fa('0xe6')]['newRange']&&_0x2bf84d[_0x42fa('0x4b')][_0x42fa('0x10f')](_0x42fa('0x10')));for(const _0x31b697 of _0x5655fb){const {subType:_0x2e66ca,id:_0x2c02b8}=this[_0x42fa('0xf4')](_0x31b697['name']),_0x59b943=_0x2e66ca[_0x42fa('0x136')]('|')[0x0];for(const _0x4c52ec of this[_0x42fa('0xa9')]({'skipNotAttached':!0x0}))_0x4c52ec['id']!=_0x2c02b8&&_0x42fa('0x142')==_0x4c52ec[_0x42fa('0xbc')]&&_0x4c52ec['data']&&_0x4c52ec[_0x42fa('0xe6')][_0x42fa('0x13c')]==_0x59b943&&_0x4c52ec[_0x42fa('0xcf')]()['isIntersecting'](_0x31b697['data'][_0x42fa('0xe8')])&&(this['_reduceSuggestionAttributeRange'](_0x4c52ec,_0x31b697[_0x42fa('0xe6')]['newRange'],_0x5d4783),_0x2a90b6=!0x0);}return _0x2a90b6;}[_0x42fa('0x39')](_0x3a8c31){this[_0x42fa('0x12a')],(this[_0x42fa('0x2f')]=!0x0,_0x3a8c31());}[_0x42fa('0x13d')](_0x558dca){const _0x3685be=this[_0x42fa('0x5b')](_0x558dca),_0x522163=this[_0x42fa('0x5c')]['has'](_0x558dca);return _0x3685be||_0x522163;}['_reduceExistingSuggestions'](_0x129eed,_0x4f0833){if(0x0==_0x4f0833[_0x42fa('0xeb')])return!0x1;let _0x58ccef=!0x1;for(const _0x41eaca of _0x4f0833){const _0x4997ea=this[_0x42fa('0xb5')](_0x41eaca['range'],_0x42fa('0x142'))[_0x42fa('0x52')](_0x56a6c1=>!_0x56a6c1[_0x42fa('0xa0')][_0x42fa('0x41')])[_0x42fa('0x104')](_0x33a95a=>_0x33a95a['suggestion']),_0x162471=_0x1d9dc1({'newValue':_0x41eaca['newValue']});_0x4997ea[_0x42fa('0x52')](_0x2c51ec=>{const [_0x186a9a,_0x56c5fc]=_0x2c51ec[_0x42fa('0x11f')][_0x42fa('0x136')]('|');return _0x186a9a==_0x41eaca['key']&&_0x56c5fc!=_0x162471;})[_0x42fa('0x114')](_0x46c416=>{this[_0x42fa('0x12b')](_0x46c416,_0x41eaca[_0x42fa('0xdd')],_0x129eed),_0x58ccef=!0x0;});}return _0x58ccef;}['_reduceSuggestionAttributeRange'](_0x45739f,_0x2b3055,_0x6318c6){const _0x3c0522=_0x45739f[_0x42fa('0xcf')]()[_0x42fa('0x16a')](_0x2b3055);0x0!==_0x3c0522['length']?0x1!==_0x3c0522['length']?this['_breakSuggestionMarker'](_0x45739f,_0x2b3055[_0x42fa('0x157')],_0x2b3055['end']):this['_setSuggestionRange'](_0x45739f,_0x3c0522[0x0]):_0x6318c6[_0x42fa('0x110')](_0x45739f[_0x42fa('0x0')]());}}class Bt{constructor(_0x57f55b){this[_0x42fa('0xaf')]=_0x57f55b,this['_model']=_0x57f55b[_0x42fa('0x164')],this[_0x42fa('0xba')]=new Map(),this[_0x42fa('0xc2')]=new Map(),this[_0x42fa('0x101')]();}['buildSuggestion'](_0x41f786,_0x2e9ff3,_0x361862,_0x5c84db,_0x2dff66,_0x209336){return new _0x5839fd(this[_0x42fa('0xe3')],{'type':_0x41f786,'subType':_0x2e9ff3,'id':_0x361862,'author':_0x5c84db,'creator':_0x5c84db,'attributes':_0x2dff66,'onAttributesChange':_0x209336,'onAccept':(..._0x4337e5)=>this[_0x42fa('0x144')](_0x41f786,_0x2e9ff3,_0x42fa('0x7'))(..._0x4337e5),'onDiscard':(..._0x359dfd)=>this[_0x42fa('0x144')](_0x41f786,_0x2e9ff3,_0x42fa('0x51'))(..._0x359dfd)});}[_0x42fa('0x43')](_0x14bdae,_0x42a42a,_0x374df5,_0x1f8c9e){const _0x4e0036=_0x14bdae+':'+_0x42a42a+':'+_0x374df5;this[_0x42fa('0xba')][_0x42fa('0xb7')](_0x4e0036,_0x1f8c9e);}[_0x42fa('0x144')](_0x2a6658,_0x324d72,_0x477605){const _0x8ec7b2=_0x2a6658+':'+_0x324d72+':'+_0x477605;return this[_0x42fa('0xba')]['get'](_0x8ec7b2)||this['_defaultCallbacks']['get'](_0x2a6658+':'+_0x477605);}[_0x42fa('0x101')](){const _0x38380f=()=>!0x1,_0x23986e=_0x27d47f=>{_0x27d47f[_0x42fa('0x162')]((_0x27b701,_0x483979)=>_0x27b701[_0x42fa('0x157')][_0x42fa('0x15a')](_0x483979[_0x42fa('0x157')])?0x1:-0x1),this[_0x42fa('0xe3')]['change'](_0x239246=>{for(const _0x1e3521 of _0x27d47f){let _0x40ef5f;_0x40ef5f=_0x1e3521[_0x42fa('0xfd')][_0x42fa('0xa6')]&&_0x1e3521[_0x42fa('0xfd')][_0x42fa('0xc1')]==_0x1e3521[_0x42fa('0x157')][_0x42fa('0x1b')]?_0x239246[_0x42fa('0x12')](_0x1e3521[_0x42fa('0x157')][_0x42fa('0x1b')],'on'):_0x239246[_0x42fa('0x12')](_0x1e3521),this[_0x42fa('0xe3')]['deleteContent'](_0x40ef5f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x35d6b6=(_0x43d6a4,_0x2b8d05)=>{_0x2b8d05&&this['_model'][_0x42fa('0xf0')](_0x140687=>{const {commandName:_0x2cde07,commandParams:_0x419116=[]}=_0x2b8d05,_0x1f4853=_0x43d6a4['map'](_0x4e0c6d=>(Rt(_0x4e0c6d)&&(_0x4e0c6d=this[_0x42fa('0xe3')][_0x42fa('0x116')](_0x4e0c6d['end'])),_0x4e0c6d))[_0x42fa('0x52')](_0xcf56da=>_0x42fa('0x8')!==_0xcf56da[_0x42fa('0xef')][_0x42fa('0x11d')]);if(_0x1f4853[_0x42fa('0xeb')]<0x1)return;const _0xa46f16=Array[_0x42fa('0xc6')](this[_0x42fa('0xe3')][_0x42fa('0xaa')][_0x42fa('0x83')]['getRanges']())[_0x42fa('0x104')](_0x3f41c3=>_0x3f221e['fromRange'](_0x3f41c3));_0x140687[_0x42fa('0xd1')](_0x1f4853);for(const _0x5d8321 of this[_0x42fa('0xaf')]['commands'][_0x42fa('0xd3')]())_0x5d8321[_0x42fa('0x5e')]();_0x419116[_0x42fa('0x98')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x42fa('0x54')](_0x2cde07,..._0x419116);const _0x4a542d=_0xa46f16['filter'](_0x15e1af=>_0x42fa('0x8')!=_0x15e1af[_0x42fa('0xef')]['rootName']);_0x4a542d[_0x42fa('0xeb')]>0x0&&_0x140687[_0x42fa('0xd1')](_0x4a542d);for(const _0x514dfa of _0xa46f16)_0x514dfa[_0x42fa('0x10c')]();});},_0x857449=(_0x195c69,_0x494d5f)=>0x1==_0x195c69[_0x42fa('0xeb')]&&0x1==_0x494d5f[_0x42fa('0xeb')]&&_0x195c69[0x0][_0x42fa('0xfd')][_0x42fa('0xa1')](_0x494d5f[0x0]['start']),_0x2b896c=(_0x57109e,_0x1fb6a0,_0x387941,_0x1ceeb7)=>Gt(_0x57109e,_0x1fb6a0,_0x387941,_0x1ceeb7,this['_model'])?[_0x57109e,_0x1fb6a0]:Gt(_0x1fb6a0,_0x57109e,_0x1ceeb7,_0x387941,this[_0x42fa('0xe3')])?[_0x1fb6a0,_0x57109e]:null;this[_0x42fa('0xc2')][_0x42fa('0xb7')]('insertion:accept',_0x38380f),this[_0x42fa('0xc2')][_0x42fa('0xb7')](_0x42fa('0x49'),_0x23986e),this[_0x42fa('0xc2')][_0x42fa('0xb7')](_0x42fa('0x8f'),_0x857449),this['_defaultCallbacks'][_0x42fa('0xb7')]('insertion:chain',_0x2b896c),this[_0x42fa('0xc2')][_0x42fa('0xb7')](_0x42fa('0x7b'),_0x23986e),this[_0x42fa('0xc2')]['set'](_0x42fa('0x84'),_0x38380f),this['_defaultCallbacks'][_0x42fa('0xb7')](_0x42fa('0x161'),_0x857449),this[_0x42fa('0xc2')][_0x42fa('0xb7')](_0x42fa('0x16'),_0x2b896c),this['_defaultCallbacks'][_0x42fa('0xb7')](_0x42fa('0x108'),_0x35d6b6),this['_defaultCallbacks'][_0x42fa('0xb7')]('formatInline:discard',_0x38380f),this['_defaultCallbacks']['set'](_0x42fa('0xea'),_0x857449),this[_0x42fa('0xc2')][_0x42fa('0xb7')](_0x42fa('0x143'),_0x38380f),this[_0x42fa('0xc2')]['set'](_0x42fa('0x158'),_0x35d6b6),this[_0x42fa('0xc2')][_0x42fa('0xb7')]('formatBlock:discard',_0x38380f),this[_0x42fa('0xc2')]['set'](_0x42fa('0xfc'),_0x857449),this['_defaultCallbacks'][_0x42fa('0xb7')]('formatBlock:chain',_0x38380f),this[_0x42fa('0xc2')]['set'](_0x42fa('0x12d'),_0x38380f),this[_0x42fa('0xc2')][_0x42fa('0xb7')](_0x42fa('0x23'),(_0x244766,_0x41e429)=>{if(!_0x41e429)return;const _0x406894=this[_0x42fa('0xaf')][_0x42fa('0x103')]['get'](p);this['_model'][_0x42fa('0xf0')](_0x8d7dac=>{if('$elementName'==_0x41e429[_0x42fa('0x13c')])for(const _0x9e1a0e of _0x244766){const _0x30f8fd=_0x9e1a0e['start'][_0x42fa('0x1b')],_0x2952a6=_0x41e429[_0x42fa('0xcb')];_0x8d7dac['rename'](_0x30f8fd,_0x2952a6);}else{if(_0x406894[_0x42fa('0x5b')](_0x41e429['key']))for(const _0x1df8ad of _0x244766)void 0x0!==_0x41e429['oldValue']?_0x8d7dac[_0x42fa('0x6c')](_0x41e429['key'],_0x41e429[_0x42fa('0xcb')],_0x1df8ad['start']['nodeAfter']):_0x8d7dac[_0x42fa('0x29')](_0x41e429[_0x42fa('0x13c')],_0x1df8ad[_0x42fa('0x157')]['nodeAfter']);else for(const _0x4613e4 of _0x244766)_0x41e429[_0x42fa('0xcb')]?_0x8d7dac[_0x42fa('0x6c')](_0x41e429[_0x42fa('0x13c')],_0x41e429[_0x42fa('0xcb')],_0x4613e4):_0x8d7dac[_0x42fa('0x29')](_0x41e429[_0x42fa('0x13c')],_0x4613e4);}});}),this[_0x42fa('0xc2')][_0x42fa('0xb7')]('attribute:join',_0x857449);}}function xt(_0x4e3eb2,_0x3f9fd8,_0x1ca750){for(const _0x4107f7 of _0x3f9fd8['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4107f7[_0x42fa('0xef')]==_0x4107f7)return!0x1;if(!_0x1ca750[_0x42fa('0xb8')](_0x4107f7))return!0x1;if(_0x4e3eb2['isObject'](_0x4107f7)||_0x4e3eb2[_0x42fa('0x81')](_0x4107f7))return!0x0;}return!0x1;}function Rt(_0x5c2629){return _0x5c2629[_0x42fa('0xfd')][_0x42fa('0xc1')]==_0x5c2629['start'][_0x42fa('0x1b')]&&_0x5c2629['end']['isAtStart'];}function Tt(_0x41777e,_0x4591a7,_0x56302a,_0x474918){const _0x577bb3=_0x1c66ef=>!_0x1c66ef[_0x42fa('0x3b')]['is'](_0x42fa('0x16d'))&&!_0x474918['isObject'](_0x1c66ef[_0x42fa('0x3b')]),_0x4aa409=_0x41777e[_0x42fa('0x157')][_0x42fa('0x77')](_0x577bb3),_0x342f12=_0x41777e[_0x42fa('0xfd')][_0x42fa('0x77')](_0x577bb3,{'direction':_0x42fa('0xdf')});return(!_0x41777e[_0x42fa('0x157')][_0x42fa('0xa1')](_0x4aa409)||!_0x41777e[_0x42fa('0xfd')]['isEqual'](_0x342f12))&&(_0x4aa409[_0x42fa('0x15a')](_0x342f12)?_0x56302a[_0x42fa('0x93')](_0x4591a7,{'range':_0x56302a[_0x42fa('0x116')](_0x4aa409,_0x342f12)}):_0x56302a[_0x42fa('0x110')](_0x4591a7),!0x0);}function Et(_0x351918){return _0x1d9dc1(_0x351918);}function Vt(_0x35ef8c){const _0x388796=_0x35ef8c['start'][_0x42fa('0x1b')];return _0x388796&&_0x388796['is'](_0x42fa('0xac'));}function Ut(_0x528557,_0xc3d5cf){return null==_0x528557['end']['nodeBefore']&&_0x528557[_0x42fa('0xfd')][_0x42fa('0xc1')]==_0x528557[_0x42fa('0x157')][_0x42fa('0x1b')]?Ot(_0x528557[_0x42fa('0x157')]['nodeAfter'],_0xc3d5cf):_0x528557;}function Ot(_0x2d7368,_0x1df092){const _0x39f818=_0x1df092[_0x42fa('0x133')]['isObject'](_0x2d7368)||_0x1df092[_0x42fa('0x133')]['isSelectable'](_0x2d7368);return _0x1df092[_0x42fa('0x116')](_0x1df092['createPositionAt'](_0x2d7368,'before'),_0x39f818?_0x1df092[_0x42fa('0x5f')](_0x2d7368):_0x1df092['createPositionAt'](_0x2d7368,_0x42fa('0xfd')));}function Gt(_0x42b038,_0x5bbbd2,_0x112582,_0x436cbc,_0x2d89bc){if(!Ft(_0x42b038,_0x5bbbd2))return!0x1;if(_0x112582['end']['isEqual'](_0x436cbc[_0x42fa('0x157')]))return!0x0;if(_0x42b038[_0x42fa('0xbc')]!=_0x5bbbd2['type'])return!0x1;if(!_0x112582[_0x42fa('0xfd')][_0x42fa('0x5a')](_0x436cbc[_0x42fa('0x157')]))return!0x1;const _0x597f39=_0x2d89bc[_0x42fa('0x116')](_0x112582[_0x42fa('0xfd')],_0x436cbc[_0x42fa('0x157')])[_0x42fa('0xa')]();for(const _0x38c3a5 of _0x597f39)if([_0x42fa('0xfe'),_0x42fa('0x100')][_0x42fa('0x59')](_0x38c3a5[_0x42fa('0xbc')])&&_0x2d89bc['schema'][_0x42fa('0x81')](_0x38c3a5[_0x42fa('0x3b')]))return!0x1;return!0x0;}function Ft(_0x3f51ac,_0x3b1425,_0x15067e=[]){return!(!_0x3f51ac[_0x42fa('0x67')]||!_0x3b1425[_0x42fa('0x67')])&&_0x3647ed(_0x2fd0ab(_0x3f51ac[_0x42fa('0x14a')],_0x15067e),_0x2fd0ab(_0x3b1425['attributes'],_0x15067e));}function Pt(_0x49d89c,_0x565194){const _0x21e608=Lt(_0x49d89c['attributes']),_0x181c25=Lt(_0x565194);if(!_0x49d89c[_0x42fa('0x67')])return!0x1;for(const _0x44ed89 of Object[_0x42fa('0x53')](_0x181c25))if(!_0x3647ed(_0x21e608[_0x44ed89],_0x181c25[_0x44ed89]))return!0x1;return!0x0;}function Lt(_0x3caa2d){const _0x26d413=Object[_0x42fa('0x8b')]({},_0x3caa2d);return delete _0x26d413[_0x42fa('0x3d')],delete _0x26d413[_0x42fa('0x85')],_0x26d413;}